"""
Why a sign-in code or link was refused (akin-travel/issues#6816). WRONG_CODE: the code is wrong and the member may try again. CODE_EXPIRED: the code is dead (used, expired, replaced by a newer email, or never sent) — request a new one. CODE_LOCKED: too many tries — request a new code. LINK_ALREADY_USED: the link (or its code) has already been used. CODE_DAILY_LIMIT: too many code tries for this address today — the link in the email still works (akin-travel/issues#6748). CODE_SUPERSEDED: a newer email for this address replaced the code — use the code in the newest email (akin-travel/issues#8929)
"""
enum AuthRefusal {
  CODE_DAILY_LIMIT
  CODE_EXPIRED
  CODE_LOCKED
  CODE_SUPERSEDED
  LINK_ALREADY_USED
  WRONG_CODE
}

"""Result of token verification"""
type AuthTokenResult {
  """Firebase custom token for sign-in"""
  customToken: String

  """Error message if failed"""
  error: String

  """
  Always null — the welcome sync was removed. Kept for installed mobile builds that select it
  """
  initialSync: InitialSyncSummary

  """Whether this is a new user (first verification)"""
  isNewUser: Boolean

  """
  True when the signed-in member has recorded no Terms or Privacy acceptance at all — a member created at this sign-in, or one synced from a PMS without signing up (akin-travel/issues#6555). A client then shows the member the same Terms + Privacy clickwrap as sign-up (on the web, at magic-link sign-in, before the page continues) and records it with reacceptLegalTerms, which stamps the in-force versions server-side. It is advisory, not a gate: no operation is refused without it (akin-travel/issues#3855). False for a member who has accepted any version, and for a sign-up, which records both versions itself
  """
  legalAcceptanceRequired: Boolean

  """Member data if user is a member"""
  memberData: Member

  """
  True when the link was sent from a white-label Program's site and the signed-in member's ACTIVE enrolment in that Program records no accepted Program Terms version — a member created at this sign-in, or one who joined before Row 1 shipped (akin-travel/issues#6602). False for a member not yet in the Program: the link enrols them only when a partner key or an existing link proves the partner (akin-travel/issues#8435), and the white-label page asks its consent step, which enrols them. A white-label client then shows Row 1 of the sign-up consent screen and records it with acceptProgramTerms, which resolves the version server-side. Read it beside legalAcceptanceRequired: Row 1's one tickbox covers the AKIN Terms and Privacy Policy too. Advisory, like legalAcceptanceRequired. False for a link with no partner, AKIN, a partner with no white-label Program, and a join. The website ignores it: its sign-in step has no Program Terms
  """
  programTermsAcceptanceRequired: Boolean

  """
  Why the code or link was refused, for a client to branch on instead of matching `error` (akin-travel/issues#6816). Set on every verifyAuthCode refusal and on the link replay refusal; null on success and on every other failure
  """
  refusal: AuthRefusal

  """Whether passkey setup is required"""
  requiresPasskey: Boolean

  """
  True only when this verify created a member from a join link and the API sent its GA4 sign_up with the asking browser's consent and client id (akin-travel/issues#8941). The client then sends login, not sign_up
  """
  serverSignUpSent: Boolean

  """Whether verification was successful"""
  success: Boolean!

  """Tenant ID used when creating the custom token"""
  tenantId: String

  """User ID"""
  userId: String

  """User type: MEMBER or DASHBOARD_USER"""
  userType: String
}

"""Booking/reservation record"""
type Booking {
  adultCount: Int

  """
  Average nightly rate (total price / nights), in the booking currency — cents preserved
  """
  averageNightlyRate: Float!

  """
  Balance the guest owes the property on arrival: stay total − the AKIN 15% reservation deposit (bookingFee). NULL when no AKIN deposit was collected (a PMS-synced reservation where the property takes the whole amount at the desk) — clients render NULL as a fallback (the dashboard uses "—").
  """
  balanceOwed: Float
  bookingDate: DateTimeISO

  """Booking fee amount (10% of total)"""
  bookingFee: Float

  """Whether the booking fee has been paid"""
  bookingFeePaid: Boolean!

  """When the booking fee was confirmed paid"""
  bookingFeePaidAt: DateTimeISO

  """FK to booking_sources table for channel attribution"""
  bookingSourceId: String

  """
  The site the booking was made on — AKIN or WHITE_LABEL, read from its trip. NULL for a booking with no trip (a PMS or channel import). Populated by the bookings list query only
  """
  bookingSurface: String

  """
  AKIN, or the name of the partner whose site took the booking. NULL for a booking with no trip. Populated by the bookings list query only
  """
  bookingSurfaceName: String

  """
  Actual cash Stripe collected for this booking (the 15% deposit minus any travel credit applied), in the booking currency. Computed by the Stripe webhook as booking_fee * (chargeAmount / baseChargeAmount). The PMS push orchestrator posts THIS to the Cloudbeds folio instead of total_price, so the folio matches what AKIN charged the card. NULL = not recorded; 0 = travel credit covered the full deposit.
  """
  cashDepositCollected: Float

  """
  OTA guest-facing confirmation number (e.g. Booking.com 6044.913.102 the guest sees on their confirmation email). Distinct from pms_confirmation_number, which carries the channel-feed property-facing reservation id. Populated for OTA-channel bookings only. See akin-travel/issues#1551.
  """
  channelGuestConfirmationNumber: String

  """
  Booking channel from PMS (e.g., Direct, Booking.com, Expedia). Used for loyalty eligibility.
  """
  channelName: String

  """
  Check-in date (YYYY-MM-DD, property-local). NULL for bad-data rows with no recorded check-in.
  """
  checkIn: String

  """
  Check-out date (YYYY-MM-DD, property-local). NULL for bad-data rows with no recorded check-out.
  """
  checkOut: String
  childCount: Int
  confirmationNumber: String

  """Array of original booking IDs that were merged into this one"""
  consolidatedFrom: [String!]
  createdAt: DateTimeISO!
  currency: String

  """
  Deposit amount refunded on an in-window (flexible-rate) cancellation, in depositRefundCurrency
  """
  depositRefundAmount: Float

  """ISO currency of the deposit refund"""
  depositRefundCurrency: String

  """
  How the deposit refund was issued: CASH (Stripe) or CREDIT (travel credit)
  """
  depositRefundType: DepositRefundType

  """When the deposit refund was issued"""
  depositRefundedAt: DateTimeISO

  """
  Deprecated alias of eligibilityReasonCode. Populated identically during migration.
  """
  eligibilityReason: String @deprecated(reason: "Sunset 2026-12-08: Use eligibilityReasonCode and translate client-side. Removal is blocked by GET_MEMBER_PROFILE (packages/api-client/src/operations/member.ts), which the dashboard member page fetches for BookingHistoryTable — akin-travel/issues#5572")

  """USD exchange rate used for conversion"""
  exchangeRate: Float
  fees: Float

  """
  PMS-side id of the stored guarantee card — for Mews the creditCards/getAll Id, i.e. the paymentMethodId the Checkout embed returns. A vault reference, never card data: AKIN never sees a PAN. It may be set with guaranteeCollectedAt still NULL, and that combination is meaningful rather than inconsistent (akin-travel/issues#5535): the status poll stamps this reference as soon as it VERIFIES a card, because AKIN cannot delete a stored Mews card and this row is the only durable trace of one it caused to be stored, while guaranteeCollectedAt is written only by the confirm and is what marks a booking GUARANTEED. So this field alone means OBSERVED, not collected — never read it as evidence of a guarantee, and never as evidence a booking confirmed.
  """
  guaranteeCardReference: String

  """
  When the guest's card was stored as a guarantee for this booking — no charge was taken (akin-travel/issues#4586). NOT NULL means AKIN collected no deposit by design: bookingFee and cashDepositCollected are legitimately NULL, and balanceOwed is therefore NULL (the guest owes the property the whole stay). NULL on every deposit-model and PMS-imported booking.
  """
  guaranteeCollectedAt: DateTimeISO

  """Guest email for non-member bookings (for future member linking)"""
  guestEmail: String

  """
  True when guest identity on this row was withheld by the Customer Data Availability Policy post-stay cutoff (the stay checked out over 60 days ago and the caller is partner/property staff). NULL = the policy did not act. Read this instead of inferring 'not linked' from a blank memberId — a withheld row and a genuinely member-less row look identical otherwise. Discloses nothing about whether a member is attached: every lapsed row is anonymised, linked or not.
  """
  guestIdentityWithheld: Boolean

  """
  Guest phone (E.164) for non-member bookings — orphan-link signal alongside guest_email
  """
  guestPhone: String
  guests: Int
  id: ID!

  """
  True when AKIN owns this booking's lifecycle — created through AKIN direct-booking checkout (source=WEBSITE / trip flow) — vs a reservation synced in from the property PMS. Member-facing cancel / perks / edit controls gate on this so a synced reservation can't be cancelled or have rewards changed through AKIN. See akin-travel/issues#1925.
  """
  isAkinManaged: Boolean!

  """True if this booking was created by merging manual + PMS bookings"""
  isConsolidated: Boolean!

  """
  True when the booking is linked to a member account (memberId is set). False = OTA/non-member booking.
  """
  isLinked: Boolean!

  """
  True if booking is at member origin partner (members.origin_partner_id == property.partnerId). Never the vestigial members.partner_id — akin-travel/issues#4857
  """
  isOriginBooking: Boolean!

  """
  The forfeited share behind loyaltyForfeitVerdict, 0-1: (0, 1] on EARNS, exactly 0 on FORFEITS, NULL on HELD and on every unstamped row (akin-travel/issues#5686). Points are round(fraction × spend_usd) and Travel Credit is fraction × the booking's 2.5%, so a fraction below 1 is the pro-rata line the activity statement shows.
  """
  loyaltyForfeitFraction: Float

  """
  Which way this booking's loyalty went on a cancel or no-show (akin-travel/issues#5686, epic #5683): EARNS (the member forfeited money and keeps the Points and Travel Credit on the forfeited share), FORFEITS (nothing was forfeited, nothing earns) or HELD (undecidable from the data — the folio settlement sweep or a human decides). NULL on every booking that has not been cancelled or no-showed since LOYALTY_ON_FORFEIT went live, and on every PMS-imported one. Read forfeitPreview for the copy a member sees BEFORE cancelling.
  """
  loyaltyForfeitVerdict: String

  """
  The money memberDiscountRateApplied comes to on this booking's CURRENT totalPrice, in the booking's own currency. Written at checkout and rewritten by every date change: the change re-prices at the tier in effect at the time of the change and writes the rate it applied and the discount that rate came to on the new dates in the same statement, so this is always the saving on the stay the member now holds. 0 when the rate took nothing off it (the rate is 0, or the rail could not carry an AKIN price); NULL exactly when memberDiscountRateApplied is NULL.
  """
  memberDiscountAmount: Float

  """
  The member discount fraction AKIN last applied to this booking: stamped at checkout from the tier the member held then, and rewritten by every date change from the tier the member holds at the time of the change, up or down (akin-travel/issues#5997). 0.15 is 15%. 0 = the per-tier path ran and applied nothing (a guest, no partner rate, a rail that cannot carry one, a plan excluded from the member rate, or a plan that already carried the discount). NULL = the path has not run for this booking, because ENABLE_TIER_MEMBER_RATE was off at booking and at every date change since.
  """
  memberDiscountRateApplied: Float

  """Member ID (null for non-member OTA bookings)"""
  memberId: String

  """
  Loyalty tier code the member held on arrival for this stay (e.g. TIER2), stamped once by the database on first CHECKED_IN/CHECKED_OUT/COMPLETED. Read-only. NULL = unknown, not a tier.
  """
  memberTierAtStay: String

  """
  Membership year (-1 = pre-membership, 1+ = membership years, null = unknown). Computed, not stored.
  """
  membershipYear: Int

  """If this booking was merged, points to the consolidated booking ID"""
  mergedIntoBookingId: String

  """Booking metadata"""
  metadata: BookingMetadata

  """Number of nights (minimum 1 for same-day stays)"""
  nights: Int!
  paymentStatus: PaymentStatus
  pmsBookingId: String

  """Outbound PMS cancel push state — tracked separately from create"""
  pmsCancelStatus: String

  """PMS confirmation number (from property management system)"""
  pmsConfirmationNumber: String

  """Guest ID in the PMS (Mews CustomerId etc.)"""
  pmsCustomerId: String

  """Most recent PMS push error message"""
  pmsLastError: String

  """Last successful PMS push timestamp"""
  pmsLastSyncedAt: DateTimeISO

  """
  When the Stripe-collected payment was posted to the PMS folio (Cloudbeds postPayment). NULL = not yet posted. Guards against double-post on retry. Set ONLY after a confirmed post (akin-travel/issues#1909), so a crash before the post leaves this NULL and the deposit stays retryable.
  """
  pmsPaymentPostedAt: DateTimeISO

  """
  What the PMS last reported this AKIN-managed booking costs, in the booking currency, once it has differed from totalPrice (akin-travel/issues#6309). AKIN keeps totalPrice/subtotal/taxes/fees (the checkout figures and the commission basis); a genuine PMS modification lands its total here instead. NULL when the PMS never reported a differing total, or the booking is PMS-imported and totalPrice follows the PMS.
  """
  pmsReportedTotal: Float

  """
  When the PMS report in pmsReportedTotal was received (akin-travel/issues#6309). NULL exactly when pmsReportedTotal is NULL.
  """
  pmsReportedTotalAt: DateTimeISO

  """Number of attempts made to push this booking to the PMS"""
  pmsSyncAttempts: Int

  """
  Outbound PMS push state: NOT_APPLICABLE, PENDING, SYNCING, SYNCED, FAILED
  """
  pmsSyncStatus: String

  """
  Points earned from this booking (derived from total_price + currency exchange rate)
  """
  pointsEarned: Int
  propertyId: String!

  """Currency of the rate charged (from availability)"""
  rateCurrency: String

  """Rate plan ID"""
  ratePlanId: String

  """
  The refundability label the member was shown at checkout, frozen at booking (akin-travel/issues#5685, exposed by akin-travel/issues#6334): REFUNDABLE, NON_REFUNDABLE or UNKNOWN (the rate said nothing either way). NULL means NO LABEL WAS RECORDED — every PMS-imported booking and every checkout before the column existed — and must never be read as non-refundable. Read it behind freeCancellationDeadline: a recorded deadline is the more precise answer. It describes the rate, it does not decide a change or a cancellation — the server's quote does.
  """
  refundabilityAtCheckout: RatePlanRefundability
  roomCount: Int

  """Room type ID"""
  roomTypeId: String
  source: String
  specialRequests: String

  """Spend converted to USD via exchange rate"""
  spendUsd: Float
  status: BookingStatus

  """
  The pre-tax portion of stayTotal, resolved on the SAME basis. Render this — never the raw `subtotal` column — above a taxesFeesTotal row: the raw columns hold the checkout QUOTE, which at a Colombian property is a tax the folio does not charge, so stacking them under stayTotal shows a sum that does not add up.
  """
  staySubtotal: Float

  """
  The full tax-inclusive stay total. Resolved folio-first (the property PMS is authoritative), falling back to the persisted subtotal+taxes+fees, then to the pre-tax total_price. Use this, not totalPrice, for any member-facing "what this stay costs" figure.
  """
  stayTotal: Float

  """Stripe PaymentIntent ID for booking fee"""
  stripePaymentIntentId: String
  subtotal: Float

  """
  Whether the stay total genuinely accounts for tax. False means no tax was ever established for this booking (non-Cloudbeds property, no connection, failed quote, or a pre-#4904 row), so surfaces must disclose that property taxes may apply on top. A genuinely quoted zero is TRUE with a zero tax figure — the two are not the same fact.
  """
  taxIncluded: Boolean!

  """
  Provenance of subtotal/taxes/fees: PMS_QUOTE = quoted from the property PMS at checkout (the figure the deposit was sized off); UNQUOTED = no quote was obtainable, so the deposit fell back to pre-tax. NULL on rows predating akin-travel/issues#4904 — read as unknown, NEVER as zero-tax.
  """
  taxQuoteSource: String
  taxes: Float

  """
  Tax + fees inside stayTotal. Zero both when tax is genuinely zero and when it was never established — read taxIncluded to tell those apart.
  """
  taxesFeesTotal: Float!
  totalPrice: Float

  """Trip ID (when booked via trip flow)"""
  tripId: String
  updatedAt: DateTimeISO!
}

"""Booking metadata"""
type BookingMetadata {
  confirmationSent: Boolean
  internalNotes: String
  notes: String
  reminderSent: Boolean
  source: String
}

enum BookingStatus {
  CANCELLED
  CHECKED_IN
  CHECKED_OUT
  COMPLETED
  CONFIRMED
  MERGED
  NO_SHOW
  PENDING
}

"""
A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.This scalar is serialized to a string in ISO 8601 format and parsed from a string in ISO 8601 format.
"""
scalar DateTimeISO

enum DepositRefundType {
  CASH
  CREDIT
}

"""Device information for session tracking"""
input DeviceInfoInput {
  browser: String
  device: String
  ipAddress: String
  os: String
  userAgent: String
}

"""Server-to-server member enrollment by a partner"""
input EnrollMemberInput {
  """Member email (matched case-insensitively for idempotency)"""
  email: String!

  """
  Partner's own loyalty key for this member on their side. Unique per partner.
  """
  externalId: String
  firstName: String!
  lastName: String!

  """
  The property the person signed up at. Must be one of your properties, or the call is refused with PROPERTY_NOT_FOUND and nothing is created. Set on a new member only; an existing member keeps its property.
  """
  propertyId: String
}

"""Result of a partner server-to-server member enrollment"""
type EnrollMemberResult {
  """True if a new member account was created (vs an existing one reused)"""
  created: Boolean!

  """True if the partner enrollment was newly created or reactivated"""
  enrollmentChanged: Boolean!

  """AKIN member id for the partner to persist"""
  memberId: ID!
}

enum EnrollmentSource {
  DASHBOARD
  MANUAL
  MIGRATION
  SDK
  SIGNUP
  URL_PARAM
  WHITE_LABEL
}

"""GIP member authentication payload"""
type GIPMemberAuthPayload {
  """Loyalty member data"""
  memberData: Member!

  """GIP user information"""
  user: MemberUser!
}

"""Summary of initial signup sync (past + future stays)"""
type InitialSyncSummary {
  """
  Stays that failed to import and were skipped. Never populated: the welcome sync was removed
  """
  failedStaysCount: Int!

  """Future stays (no points yet)"""
  futureStays: [SyncedStay!]!

  """Number of future stays synced"""
  futureStaysCount: Int!

  """Summary message"""
  message: String

  """Past stays with points awarded"""
  pastStays: [SyncedStay!]!

  """Number of past stays synced"""
  pastStaysCount: Int!

  """Total points awarded from past stays"""
  pointsAwarded: Int!

  """Whether sync was successful"""
  success: Boolean!
}

"""
The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
"""
scalar JSONObject

"""
With createIfMissing: the asking browser's analytics consent and GA4 client id, for the server-sent GA4 sign_up of a join (akin-travel/issues#8941). Ignored without createIfMissing, and for an address that has an account
"""
input JoinAnalyticsContextInput {
  """
  True only when the browser has granted analytics consent. Anything else is stored as no consent
  """
  analyticsConsent: Boolean

  """
  The GA4 client id (`<digits>.<digits>`, from the `_ga` cookie), sent only with consent. Dropped without consent; a value of another shape is stored as none
  """
  gaClientId: String
}

"""
GIP (Google Identity Platform) authentication input for website members
"""
input LoginMemberGIPInput {
  """Country code (e.g., AU, US, GB)"""
  countryCode: String

  """
  Date of birth, YYYY-MM-DD, 18 or over (Customer Terms §3.1). Read only when this sign-in CREATES the member (a GIP user with no member row), and required for that create: without it the create is refused with the dateOfBirth field error signUpPasswordless gives. Never written to an existing member. See akin-travel/issues#7230, #7870
  """
  dateOfBirth: String
  deviceInfo: DeviceInfoInput

  """
  Where the sign-in originated from (white-label site, URL param, SDK, etc.). Used to tag partner enrollments for existing members signing in with a new partner context. Defaults to WHITE_LABEL when partnerId is set and this is omitted, or SDK when the request is partner-SDK-authenticated. Issue #1160.
  """
  enrollmentSource: EnrollmentSource

  """First name for new member registration"""
  firstName: String

  """
  Gender, one of FEMALE, MALE, NON_BINARY, SELF_DESCRIBED, PREFER_NOT_TO_SAY ("Prefer not to say" is an answer). Read only when this sign-in creates the member, and required for that create, as the date of birth is: without it the create is refused with the gender field error. Never written to an existing member. See akin-travel/issues#8402
  """
  gender: String

  """
  The member's own words for their gender, up to 80 characters, with gender SELF_DESCRIBED. Read only when this sign-in creates the member. See akin-travel/issues#8402
  """
  genderSelfDescription: String

  """GIP ID token from client authentication"""
  idToken: String!

  """Last name for new member registration"""
  lastName: String

  """Marketing email opt-in preference"""
  marketingOptIn: Boolean

  """
  Nationality (citizenship) as an ISO 3166-1 alpha-2 code — NOT `countryCode`, the phone's dial country. Read only when this sign-in creates the member; optional, and validated when sent. See akin-travel/issues#7230, #7870
  """
  nationality: String

  """Partner ID for attribution tracking"""
  partnerId: String

  """Phone number for SMS/MFA"""
  phone: String

  """Terms and conditions acceptance"""
  termsAccepted: Boolean
}

"""Loyalty tier configuration"""
type LoyaltyTierConfig {
  active: Boolean!
  cardBodyData: String
  cardFooterData: String
  createdAt: DateTimeISO!

  """
  Fraction off the direct-booking price for a member holding this tier, on a rail that carries a price (the Mews channel-manager push). 0.15 is 15%; the stored value is range-checked to [0,1]. NULL means the rung is unset — NOT a zero-discount rung.
  """
  directBookingDiscountRate: Float

  """
  Name of the PMS rate plan a member holding this tier books, resolved per property by name at quote time (the Cloudbeds delivery, where the property prices the stay). A name rather than a rate plan id because one rung serves every property in the partner. NULL means this rung delivers no tagged plan.
  """
  directBookingRatePlanName: String
  displayName: String!

  """
  Ladder position, 1-based ascending. NOTE: backed by `loyalty_tier_configs.tier_level`, NOT the table's `display_order` column. Sort ladder axes on this.
  """
  displayOrder: Int!
  eligibility: String
  id: ID!
  maxPerksAllowed: Int!
  partnerId: String

  """
  Secret benefits — hide benefit details unless member has reached this tier
  """
  secretBenefits: Boolean!

  """
  BCP-47 locale this tier config was authored in. Drives the source language used by translation.service.
  """
  sourceLocale: String!
  tierByline: String
  tierColor: String
  tierIcon: String
  tierName: TierName!
  tierTextColor: String
  tierType: TierType!

  """Auto-translated content per locale"""
  translations: JSONObject
  updatedAt: DateTimeISO!
}

"""Loyalty points transaction record"""
type LoyaltyTransaction {
  balanceAfter: Int @deprecated(reason: "Sunset 2027-03-08: No longer computed. Use getMemberBalance query instead. Removal is blocked by the published @akin-travel/sdk-core 0.1.0, 0.1.1 and 0.2.0 (live in apps/api/deployed-client-operations/registry.json; their frozen snapshots select it), by Android 1.1.3 (10103), live on Play with no snapshot, whose GetLoyaltyTransactions selected it, by the partner SDK document GET_LOYALTY_TRANSACTIONS_WITH_METRICS (packages/sdk-core/src/graphql/server-operations.ts), and by GET_LOYALTY_TRANSACTIONS_WITH_METRICS, GET_ACCOUNT_PAGE_DATA, GET_WHITE_LABEL_LOYALTY_DATA and GET_LOYALTY_TRANSACTIONS_BY_MEMBER (packages/api-client/src/operations/member.ts). GET_LOYALTY_TRANSACTIONS (member.ts) and the LOYALTY_TRANSACTION_FIELDS fragment (packages/api-client/src/fragments/booking.fragments.ts) also select it but nothing uses them; delete them with the field. akin-travel/issues#9038 clears these consumers")

  """Booking channel from PMS (e.g., Direct, Booking.com)"""
  bookingChannelName: String

  """Booking check-in date YYYY-MM-DD (for booking transactions)"""
  bookingCheckIn: String

  """
  Booking check-out date YYYY-MM-DD (for booking transactions). With bookingStatus, it is what the member activity statement leads a row by when no stay describes it: a future check-out is an upcoming stay, never a completed one (akin-travel/issues#6938).
  """
  bookingCheckOut: String
  bookingId: String

  """
  Booking source type (web_direct, admin_direct, direct, pms, consolidated)
  """
  bookingSourceType: String

  """
  The booking's own status (CONFIRMED, CANCELLED, NO_SHOW, CHECKED_OUT, ...) for booking transactions, null elsewhere (akin-travel/issues#6938). Display only: the earn label still keys on earnBasis.
  """
  bookingStatus: String
  createdAt: DateTimeISO!

  """Original booking currency code"""
  currency: String
  description: String

  """
  The nights a shortened stay dropped, behind an AMENDMENT_FORFEIT earnBasis (akin-travel/issues#5869, epic #5862) — read through the leg's forfeit event, since that leg carries no booking. The statement renders 'Shortened stay · {property} · 2 nights'. NULL on every other leg. Populated only by loyaltyTransactionsWithMetrics and accountPageData (activityLog); always null on the loyaltyTransaction, loyaltyTransactions and loyaltyTransactionsByMember reads (akin-travel/issues#7752).
  """
  droppedNights: Int

  """
  What this BOOKING leg is earned on (akin-travel/issues#5688, epic #5683): FORFEIT for a cancel / no-show whose loyalty_forfeit_verdict is EARNS — the member forfeited money and keeps the Points on the forfeited share, dated at the forfeit — or COMPLETED_STAY for every other booking leg, including one that earns nothing. NULL on the referral and adjustment legs. The activity-statement label ('Forfeited booking' vs 'Completed stay') keys on this, never on bookingStatus.
  """
  earnBasis: String

  """
  Eligibility reason code for BOOKING transactions (null = eligible). Codes: BOOKING_CANCELLED, STATUS_NOT_COMPLETED, PRE_MEMBERSHIP_OUTSIDE_WINDOW, OTA_NOT_ELIGIBLE, NON_REVENUE_CHANNEL. Null on another partner's stay for a partner-facing reader, whatever the code: the code names the stay's lifecycle (akin-travel/issues#8242).
  """
  eligibilityReasonCode: String

  """Exchange rate to USD at time of booking"""
  exchangeRate: Float

  """When these points expire (null = never)"""
  expiresAt: DateTimeISO
  id: ID!

  """
  True when this transaction is a same-day same-property duplicate of another transaction for this member — computed server-side via ROW_NUMBER so pagination cannot split a duplicate group across pages (akin-travel/issues#1231).
  """
  isDuplicate: Boolean

  """
  True on the BOOKING leg of a MERGED booking — a duplicate import folded into a surviving booking, which carries its points (akin-travel/issues#7860). Never withheld, so a reader without the survivor's reference still sees the row as merged, not pending. False on every other row.
  """
  isMergedDuplicate: Boolean

  """True if points never expire (tattoo, etc.)"""
  isPermanent: Boolean

  """
  The forfeited share behind a FORFEIT earnBasis, 0-1 (akin-travel/issues#5686): below 1 the statement adds a pro-rata line ('25% of the stay was charged'). NULL on every other leg. Populated only by loyaltyTransactionsWithMetrics and accountPageData (activityLog); always null on the loyaltyTransaction, loyaltyTransactions and loyaltyTransactionsByMember reads (akin-travel/issues#7752).
  """
  loyaltyForfeitFraction: Float
  memberId: String!

  """
  Membership year (-1 = pre-membership, 1+ = membership years, null = unknown)
  """
  membershipYear: Int

  """
  The surviving booking's reference (its PMS confirmation number, else its AKIN confirmation number, else '#' and the first 8 characters of its id) on the BOOKING leg of a MERGED booking, a duplicate import the cross-rail merge folded into that survivor; null on every other row (akin-travel/issues#7860). The admin activity statement says 'Merged into <reference>' instead of the pending copy the view's STATUS_NOT_COMPLETED code would give it. Withheld from a reader outside the survivor's tenancy (partner staff outside its partner, property staff outside its property), as Booking is; isMergedDuplicate still says the row is merged.
  """
  mergedIntoBookingReference: String

  """Nights (member origin scope)"""
  nightsMemberOrigin: Int

  """Nights (network scope)"""
  nightsNetwork: Int

  """Nights (partner scope - requires context)"""
  nightsPartner: Int
  pointsChange: Int!

  """Distinct properties (member origin scope)"""
  propertiesMemberOrigin: Int

  """Distinct properties (network scope)"""
  propertiesNetwork: Int

  """Distinct properties (partner scope - requires context)"""
  propertiesPartner: Int

  """
  Property ID of the booking that produced this transaction (populated only via loyaltyTransactionsWithMetrics; null on the plain ledger query)
  """
  propertyId: String
  reason: String

  """Obfuscated email of the related member (for referral transactions)"""
  relatedMemberEmail: String

  """Source of this transaction (booking, referral, preference, adjustment)"""
  source: String

  """Spend in USD (member origin scope)"""
  spendMemberOrigin: Float

  """Spend in USD (network scope)"""
  spendNetwork: Float

  """Spend in original booking currency"""
  spendOriginal: Float

  """Spend in USD (partner scope - requires context)"""
  spendPartner: Float

  """
  Stays (member origin scope). Null on another partner's booking for a partner-facing reader, as staysNetwork (akin-travel/issues#8242).
  """
  staysMemberOrigin: Int

  """
  Stays (network scope). 0 on a cancelled or no-show booking. Null on another partner's booking for a partner-facing reader, where the count would say the stay was cancelled (akin-travel/issues#8242).
  """
  staysNetwork: Int

  """Stays (partner scope - requires context)"""
  staysPartner: Int
  transactionType: LoyaltyTransactionType!
}

"""Direction of a server-to-server partner points write"""
enum LoyaltyTransactionDirection {
  CREDIT
  DEBIT
}

"""Type of loyalty transaction"""
enum LoyaltyTransactionType {
  ADJUSTED
  ADJUSTMENT
  AMENDMENT_FORFEIT
  BONUS
  BOOKING
  EARN
  EARNED
  EXPIRATION
  EXPIRED
  REDEMPTION
  REFERRAL
  REFERRAL_REFERRED
  REFERRAL_REFERRER
  SPENT
}

"""Paginated loyalty transactions with tier metrics"""
type LoyaltyTransactionsWithMetricsResult {
  items: [LoyaltyTransaction!]!
  totalCount: Int!
}

"""Member of the loyalty program"""
type Member {
  """
  Member-supplied accessibility needs, free text (may be GDPR Art. 9 health data — optional, never inferred).
  """
  accessibilityNeeds: String

  """Postal address — city."""
  addressCity: String

  """Postal address — ISO 3166-1 alpha-2 country code, upper-case."""
  addressCountryCode: String

  """Postal address — line 1."""
  addressLine1: String

  """Postal address — line 2."""
  addressLine2: String

  """Postal address — postal code."""
  addressPostalCode: String

  """Postal address — state / region."""
  addressRegion: String

  """
  Why this member is in the viewing partner's cohort, and until when. NULL means not resolved for this viewer (GLOBAL scope / policy dark) — it is NOT a tie and must never render as a default one
  """
  attribution: MemberAttribution

  """Avatar moderation status: null (pending), approved, rejected"""
  avatarModeration: String

  """URL of member profile avatar image"""
  avatarUrl: String

  """
  When the member closed their account (soft-delete); row is hard-purged 3 years after this
  """
  closedAt: DateTimeISO
  countryCode: String
  createdAt: DateTimeISO!
  email: String!

  """
  Per-template-code email opt-in/out map. Shape: { "<templateCode>": boolean }. Absent entry = use default (transactional always on; marketing falls back to marketing_opt_in). See akin-travel/issues#1563
  """
  emailPreferences: JSONObject

  """Emergency contact — name."""
  emergencyContactName: String

  """Emergency contact — phone number, validated like the member phone."""
  emergencyContactPhone: String
  firstName: String
  id: ID!

  """When initial signup sync was performed (one-time bonus)"""
  initialBonusAwardedAt: DateTimeISO
  lastName: String
  loyaltyNumber: String
  marketingOptIn: Boolean

  """When member network year began (for annual reset)"""
  networkYearStart: DateTimeISO

  """Partner where member originally signed up"""
  originPartnerId: String

  """Property where member originally signed up (for QR code tracking)"""
  originPropertyId: String
  perkPreferences: [String!]
  phone: String
  placeTypePreferences: [String!]

  """
  Points the one-time travel-preferences bonus paid on THIS updateMember write; null on every other write and every other read
  """
  preferencesBonusAwarded: Int

  """
  Display currency the member chose (ISO 4217, one of DISPLAY_CURRENCY_CODES). Null when never chosen — the client keeps the browser's stored choice.
  """
  preferredCurrency: String
  preferredLanguage: String

  """Server-stamped time the member accepted the Privacy Policy"""
  privacyAcceptedAt: DateTimeISO

  """
  Published Privacy Policy version the member accepted (e.g. v24.05.2026). See akin-travel/issues#1820
  """
  privacyAcceptedVersion: String

  """
  GDPR Art. 21 (AKIN-1023#AKIN-1039): when a staff-upheld objection to legitimate-interests processing took effect. Non-NULL suppresses every MARKETING-category email at the send-time gate, ahead of marketingOptIn and emailPreferences. NULL = no active objection. Set only by resolveProcessingObjection, never by the member.
  """
  processingObjectionAt: DateTimeISO

  """
  Dashboard/staff user who enrolled this member (for staff competition leaderboard)
  """
  signedUpByUserId: String

  """Where the member originally signed up"""
  signupLocation: SignupLocation
  status: MemberStatus
  termsAccepted: Boolean

  """Server-stamped time the member accepted the Customer T&C"""
  termsAcceptedAt: DateTimeISO

  """
  Published Customer T&C version the member accepted (e.g. v24.05.2026); pre-v24.05.2026 for legacy rows. See akin-travel/issues#1820
  """
  termsAcceptedVersion: String
  updatedAt: DateTimeISO!

  """UTM campaign parameter captured at signup (e.g., spring2026)"""
  utmCampaign: String

  """UTM medium parameter captured at signup (e.g., newsletter, cpc)"""
  utmMedium: String

  """UTM source parameter captured at signup (e.g., email, google)"""
  utmSource: String
  vibePreference: String
}

"""Why a member is in the viewing partner's cohort, and when that ceases"""
type MemberAttribution {
  """
  Check-in of the booking behind the tie (YYYY-MM-DD). Null for WHITE_LABEL — a standing enrolment owns no booking
  """
  checkIn: String

  """
  Check-out of the booking behind the tie (YYYY-MM-DD). Null for WHITE_LABEL
  """
  checkOut: String

  """The member's strongest qualifying tie to the viewing partner"""
  tie: MemberQualifyingTie!

  """
  Last day this tie keeps the member in the cohort (YYYY-MM-DD): check-in for CANCELLED_UPCOMING, check-out + 60 days for POST_STAY_WINDOW. Null when the tie has no date-bounded expiry (BOOKING_WINDOW rolls into the post-stay window; WHITE_LABEL is standing) — never a guess
  """
  visibleUntil: String
}

"""Comprehensive member profile with statistics"""
type MemberProfile {
  """Booking history for this member"""
  bookingHistory: [Booking!]!

  """Most frequently selected reward/perk"""
  favoriteReward: String

  """Lifetime statistics"""
  lifetimeStats: MemberStats!

  """Core member data"""
  member: Member!

  """Statistics for current membership year (from join date anniversary)"""
  membershipYearStats: MemberStats!

  """Name of origin partner"""
  originPartnerName: String

  """Name of origin property (for QR code tracking)"""
  originPropertyName: String
}

enum MemberQualifyingTie {
  BOOKING_WINDOW
  CANCELLED_UPCOMING
  POST_STAY_WINDOW
  WHITE_LABEL
}

"""Member statistics for a time period"""
type MemberStats {
  """
  AKIN points in this period (derived from bookings; masked to 0 for partner staff when the Data Availability Policy withholds it)
  """
  akinPoints: Float!

  """Number of stays at origin partner"""
  originStays: Int!

  """Total number of nights across all properties"""
  totalNights: Int!

  """Total number of stays"""
  totalStays: Int!
}

enum MemberStatus {
  ACTIVE
  BLOCKED
  CLOSED
  INACTIVE
  VIP
}

"""Member tier change audit record"""
type MemberTierHistory {
  changeReason: TierChangeReason!
  createdAt: DateTimeISO!
  id: ID!
  memberId: String!
  metadata: String
  newTier: String!
  oldTier: String!

  """
  Points balance snapshot at the tier change. Withheld (null) from partner-facing reads under Data Availability Policy §4 — null means withheld, not zero.
  """
  pointsAtChange: Int
  staysAtChange: Int!
}

type MemberTierHistoryConnection {
  edges: [MemberTierHistoryEdge!]!
  pageInfo: PageInfo!
  totalCount: Int!
}

type MemberTierHistoryEdge {
  cursor: String!
  node: MemberTierHistory!
}

"""Member user info from GIP"""
type MemberUser {
  countryCode: String
  email: String!
  emailVerified: String!
  firstName: String
  id: ID!
  lastName: String
  marketingOptIn: String
  name: String!
  phone: String
  phoneVerified: Boolean!
  termsAccepted: String
  termsAcceptedAt: String
}

type Mutation {
  """
  Partner SDK: enrol a member by email + profile (server-to-server, no user login). Creates the AKIN member when no member holds the email (created: true); an existing member is enrolled as is (created: false). Requires a partner API key with the member:write scope.
  """
  enrollMember(input: EnrollMemberInput!): EnrollMemberResult!

  """Website member login via GIP (Google Identity Platform)"""
  loginMemberGIP(input: LoginMemberGIPInput!): GIPMemberAuthPayload!

  """
  Verify passkey authentication and return Firebase custom token with tenant ID
  """
  passkeyAuthenticate(authenticationResponse: JSONObject!, expectedChallenge: String @deprecated(reason: "Ignored — the server uses its own stored single-use challenge (akin-travel/issues#2117).")): PasskeyAuthResponse!

  """Generate WebAuthn authentication options"""
  passkeyAuthenticationOptions(tenantId: String, userEmail: String, userId: String, userType: String): JSONObject!

  """
  Partner SDK: credit or debit a member's AKIN points (server-to-server, idempotent). Requires a partner API key with the loyalty:write scope.
  """
  recordLoyaltyTransaction(input: RecordLoyaltyTransactionInput!): RecordLoyaltyTransactionResult!

  """
  Partner SDK: record that a member redeemed one of the partner's rewards (server-to-server, idempotent). Requires a partner API key with the loyalty:write scope.
  """
  redeemReward(input: RedeemRewardInput!): RedeemRewardResult!

  """
  Request a magic link for login. Sends email to existing users. With createIfMissing (the apps, akin-travel/issues#6745), an address with no account gets a join link instead, and both emails carry a 6-digit code for verifyAuthCode; the response is the same either way.
  """
  requestMagicLink(
    """
    With createIfMissing: the asking browser's analytics consent and GA4 client id (akin-travel/issues#8941). Stored with the join; when its link creates a new member and the browser had consented, the API sends that join's GA4 sign_up and answers serverSignUpSent. Ignored for an address that has an account
    """
    analyticsContext: JoinAnalyticsContextInput

    """
    Accepted for parity with signUpPasswordless and never stored (akin-travel/issues#7206). It vouches for a white-label partner consent, and a join records no partner consent
    """
    attributionToken: String

    """
    Cloudflare Turnstile token from the shared invisible widget (akin-travel/issues#3199). Transport-only — consumed by the RequireCaptcha middleware before this resolver runs. Nullable while enforcement is dark-launched behind ENABLE_AUTH_CAPTCHA
    """
    captchaToken: String

    """
    One sign-in screen for log-in and join (akin-travel/issues#6745). An address with no account gets a "confirm your email to join" link instead of nothing, and the account is created when that link (or its code) is used — never when the email is sent. Both that email and the usual log-in email then carry a 6-digit code for verifyAuthCode. The response is identical whether or not the address has an account. Members only: refused unless signupLocation is IOS, ANDROID, WEBSITE or WHITE_LABEL (akin-travel/issues#6748, #8055). A partner is ignored on a join, except on WHITE_LABEL, where the link is scoped to the partner and its Program Terms are asked on the verify page. The member is enrolled at verify only when a partner API key proved the partner, or a member row that already holds the address is linked to it; with only the request Origin as proof, the Row 1 tick (acceptWhiteLabelJoinConsent) enrols them (akin-travel/issues#8459)
    """
    createIfMissing: Boolean

    """
    With createIfMissing: the new member's date of birth, YYYY-MM-DD, 18 or over (Customer Terms §3.1), written to the member row the join link creates (akin-travel/issues#7230). Required for a join: an address with no account is refused without it, with the dateOfBirth field error signUpPasswordless gives, and no link is sent. The native apps (signupLocation IOS or ANDROID) ask it on their "Set up your account" step instead (akin-travel/issues#8080), and the web join (WEBSITE or WHITE_LABEL) asks it on the verify page (akin-travel/issues#8055), so neither sends it. A log-in needs neither field. A value that is sent is validated before the address is looked up. Ignored without createIfMissing
    """
    dateOfBirth: String
    email: String!

    """
    The native app is asking for this link (akin-travel/issues#6652). The link then carries the one path the apps claim (`/{locale}/auth/app-verify`) instead of the web path, so it opens the app on a phone that has one; the website forwards the app path to the web sign-in page, so a phone without the app still signs in. Omit it on the web: a web link must open in the browser
    """
    forApp: Boolean

    """User locale for email links (e.g., en, de, fr)"""
    locale: String

    """
    With createIfMissing: the new member's nationality (citizenship) as an ISO 3166-1 alpha-2 code, written to the member row the join link creates — NOT the phone's dial country (akin-travel/issues#7230). Optional; validated when sent (akin-travel/issues#7870). Ignored without createIfMissing
    """
    nationality: String
    partnerId: ID

    """Partner slug for URL building (preferred over partnerId)"""
    partnerSlug: String

    """
    With createIfMissing: the property the join started from (a property page or QR link), written to the new member row as origin_property_id when the property exists. The join stays an AKIN account: origin_partner_id stays AKIN and no partner is enrolled. Ignored for an address that has an account (akin-travel/issues#7206)
    """
    propertyId: ID

    """
    Custom verification page URL for SDK integrations (e.g., https://viajero.com/auth/verify)
    """
    redirectUrl: String

    """
    With createIfMissing: the referral code the new member was referred with. The join link (or its code) records the same PENDING referral signUpPasswordless records. Ignored for an address that has an account (akin-travel/issues#7206)
    """
    referralCode: String

    """
    Post-auth destination to carry ON the emailed link (akin-travel/issues#5574), so it survives a click in a different browser from the one that requested it. Must be a same-origin relative path; an off-origin value is dropped and the link still sends. Ignored when redirectUrl is set — the SDK callback owns that flow
    """
    returnUrl: String

    """
    With createIfMissing: the surface asking, IOS, ANDROID, WEBSITE or WHITE_LABEL, written to the new member row when the join link is used (akin-travel/issues#6745, #6748, #8055)
    """
    signupLocation: SignupLocation
    userType: String! = "MEMBER"

    """
    With createIfMissing: the UTM campaign, written to the new member row. Ignored for an address that has an account (akin-travel/issues#7206)
    """
    utmCampaign: String

    """
    With createIfMissing: the UTM medium, written to the new member row. Ignored for an address that has an account (akin-travel/issues#7206)
    """
    utmMedium: String

    """
    With createIfMissing: the UTM source, written to the new member row. Ignored for an address that has an account (akin-travel/issues#7206)
    """
    utmSource: String

    """
    With createIfMissing: the readable QR handle (`via`) credited for the join, written as signed_up_by_user_id only when the handle's user belongs to the partner the join is attributed to, as on signUpPasswordless. Ignored for an address that has an account (akin-travel/issues#7206)
    """
    viaHandle: String
  ): RequestMagicLinkResult!

  """
  A partner bot asks AKIN to email a member a 6-digit sign-in code (akin-travel/issues#8170). Needs a SECRET partner API key. An address with an account gets the log-in email, branded for the key's partner, with a code for verifyPartnerBotSignInCode; an address AKIN does not know gets nothing — no account, no join email — and the SAME answer. Sign in only, never join
  """
  requestPartnerBotSignInCode(
    """The member's email address, as the guest typed it"""
    email: String!

    """
    The language of the email (e.g. en, es). Omitted: the member's own, else English
    """
    locale: String
  ): PartnerBotSignInCodeResult!

  """
  Creates a member account via an email verification link (website/white-label). NOT the passkey flow (passkeys are enrolled post-signup); NOT the removed iOS OTP login.
  """
  signUpPasswordless(input: SignUpPasswordlessInput!): SignUpResult!

  """Update member"""
  updateMember(id: ID!, input: UpdateMemberInput!): Member!

  """
  Verify auth token from email link and return Firebase custom token for sign-in.
  """
  verifyAuthToken(token: String!): AuthTokenResult!

  """
  A partner bot swaps the 6-digit code a member received for a READ-ONLY token for that member (akin-travel/issues#8170). Needs the same SECRET partner API key, and only a code that key's partner asked for. The code and the link in its email are one credential: whichever is used first, the other is refused. Returns an AKIN-signed bearer carrying the partner-bot read scope — every write tool on /mcp and every mutation on /graphql refuses it, and it is not a Firebase credential — or a typed refusal. A sign-in that needs a step a chat cannot finish answers SIGN_IN_ON_WEBSITE and no token. Never creates an account
  """
  verifyPartnerBotSignInCode(
    """The 6-digit code from the email"""
    code: String!

    """The address the code was sent to"""
    email: String!
  ): PartnerBotSignInResult!
}

type PageInfo {
  endCursor: String
  hasNextPage: Boolean!
  hasPreviousPage: Boolean!
  startCursor: String
}

input PaginationInput {
  after: String
  before: String
  first: Int
  offset: Int
}

"""A perk on an arriving booking"""
type PartnerArrivalPerk {
  """The fulfilment status: PENDING, FULFILLED, …"""
  status: String!
  text: String!

  """The tier key the perk belongs to, when it has one"""
  tier: String
}

"""
A reward the member can use at this partner, from the partner's own catalogue
"""
type PartnerArrivalReward {
  category: String
  name: String!

  """The reward template id"""
  rewardId: ID!
}

"""One arrival at the partner's property. Never a name, phone or address"""
type PartnerArrivalRow {
  bookingId: ID!

  """The booking status: CONFIRMED or PENDING"""
  bookingStatus: String!

  """Check-in day, YYYY-MM-DD"""
  checkIn: String!

  """Check-out day, YYYY-MM-DD"""
  checkOut: String!
  confirmationNumber: String!

  """
  The member's email — only when the member is enrolled with this partner, or the booking is current, upcoming or ended within 60 days. Otherwise null, and always null for an erased or closed member and for a member under a processing restriction or objection
  """
  email: String

  """
  How the member enrolled with this partner (SIGNUP, WHITE_LABEL, SDK, …). Null when not enrolled
  """
  enrollmentSource: String
  guests: Int!

  """The member is enrolled with this partner"""
  isEnrolledMember: Boolean!

  """The AKIN member id. Always set"""
  memberId: ID!
  nights: Int!

  """
  The property the member joined at — only when it is one of this partner's
  """
  originPropertyId: ID
  perks: [PartnerArrivalPerk!]!

  """
  Always null for a partner API key: no partner sees a member's points balance (Customer Data Availability Policy §2.1/§4). Set only where the points rule allows it (an AKIN admin, or the member's own read), and then only for a member enrolled with this partner
  """
  pointsBalance: Float

  """
  Completed stays at this partner's properties before this check-in. Never stays elsewhere
  """
  priorStaysAtPartner: Int!

  """The PMS rate code on the booking"""
  rateCode: String

  """The rate plan name for that code, when the property has one"""
  rateName: String

  """Rewards the member can use at this partner, at the member's tier"""
  rewardsUsable: [PartnerArrivalReward!]!
  roomCount: Int!

  """The member's tier name in this partner's programme"""
  tier: String
}

"""A property's arrivals for one day"""
type PartnerArrivalsReport {
  """The property's local day, YYYY-MM-DD"""
  date: String!
  propertyId: ID!

  """The most rows one call returns"""
  rowCap: Int!
  rows: [PartnerArrivalRow!]!

  """
  True when the day has more arrivals than rowCap; the rows are the first rowCap
  """
  truncated: Boolean!
}

"""
The answer to requestPartnerBotSignInCode (akin-travel/issues#8170). Identical for an address with an account and one without
"""
type PartnerBotSignInCodeResult {
  """Why the request itself failed (a server error). Null on success"""
  error: String

  """
  True when the request was accepted. It says nothing about whether the address has an account
  """
  success: Boolean!
}

"""
Why verifyPartnerBotSignInCode refused (akin-travel/issues#8170). CODE_REFUSED: not a code that works — wrong, expired, locked after too many tries, or never sent; ask the member again, and after a few tries send a new code. It never says whether the address has an account. CODE_DAILY_LIMIT: too many tries for this address today — try again tomorrow. LINK_ALREADY_USED: the code, or the link in the same email, was already used — send a new code. SIGN_IN_ON_WEBSITE: the code was right, but this sign-in needs a step a chat cannot finish (legal acceptance, Program Terms, a passkey, or an account the app must set up) — ask the member to sign in on the website or in the app, then come back. CANNOT_SIGN_IN: this address cannot sign in through a bot at all (for example a closed account) — do not send another code
"""
enum PartnerBotSignInRefusal {
  CANNOT_SIGN_IN
  CODE_DAILY_LIMIT
  CODE_REFUSED
  LINK_ALREADY_USED
  SIGN_IN_ON_WEBSITE
}

"""The answer to verifyPartnerBotSignInCode (akin-travel/issues#8170)"""
type PartnerBotSignInResult {
  """
  English copy for the refusal, for a bot that reads only text. Null on success
  """
  error: String

  """How long the token is valid, in seconds, from now. Null on a refusal"""
  expiresInSeconds: Int

  """
  Why the code was refused, for the bot to branch on instead of matching `error`. Null on success
  """
  refusal: PartnerBotSignInRefusal

  """True when the code was accepted and a token is returned"""
  success: Boolean!

  """
  An AKIN-signed READ-ONLY bearer for the confirmed member: send it as Authorization: Bearer to /mcp and /graphql. It is not a Firebase token and needs no exchange. Every write tool and mutation refuses it, and it carries no staff access. Expires after expiresInSeconds; there is no refresh — send a new code. Null on a refusal
  """
  token: String
}

"""Partner-scoped member identity + current loyalty standing (tier)."""
type PartnerMemberRead {
  email: String!
  firstName: String
  lastName: String

  """AKIN member ID"""
  memberId: ID!

  """
  Member's current calculated tier with this partner (current membership year)
  """
  tier: TierName
}

"""
One member who signed up with the partner. Never a name, phone or address
"""
type PartnerMemberSignup {
  """
  The member email — only when the member is enrolled with this partner (an ACTIVE enrolment). Null otherwise, and always null for an erased or closed member and for a member under a processing restriction or objection
  """
  email: String

  """
  How the member enrolled with this partner (SIGNUP, WHITE_LABEL, SDK, DASHBOARD, URL_PARAM, MANUAL, MIGRATION). Null when the member is not enrolled with this partner
  """
  enrollmentSource: String

  """The member id"""
  memberId: ID!

  """The check-in date (YYYY-MM-DD) of that next booking"""
  nextBookingCheckIn: String

  """
  The property of the member's first booking at this partner's properties after signing up. Not the stay they signed up on, and not an extension of an earlier stay. Null when there is none
  """
  nextBookingPropertyId: ID

  """
  The property the member signed up at. Null when it is not one of this partner's properties
  """
  originPropertyId: ID

  """
  When the member signed up with AKIN through this partner (the member account was created)
  """
  signedUpAt: DateTimeISO!
}

"""A page of the partner's member sign-ups"""
type PartnerMemberSignupConnection {
  """Sign-ups in sign-up order, oldest first"""
  nodes: [PartnerMemberSignup!]!

  """Pass endCursor as after to read the next page"""
  pageInfo: PageInfo!
}

"""
How one partnerMetrics figure is defined. Built from the AKIN metric registry
"""
type PartnerMetricDefinition {
  """What the figure counts, in plain English"""
  definition: String!

  """The PartnerMetricsReport field this describes"""
  field: String!

  """The registry id, e.g. partnerReporting.repeatGuests"""
  id: String!

  """ADDITIVE, SEMI_ADDITIVE or POINT_IN_TIME"""
  measureClass: String!
  name: String!

  """
  True when the figures of single days add up to the figure of the window
  """
  summableAcrossDays: Boolean!

  """count, ratio (0–1), USD or nights"""
  unit: String!
}

"""A partnerMetrics figure that is withheld. The figure itself is null"""
type PartnerMetricSuppression {
  """The PartnerMetricsReport field that is null"""
  field: String!
  reason: String!

  """The small-cohort rule that withheld it"""
  rule: String!

  """Always true"""
  suppressed: Boolean!
}

"""
Partner Reporting API: the partner's headline figures for one window, over its own properties
"""
type PartnerMetricsReport {
  """
  Nights per member booking. Null when withheld: fewer than 5 member bookings behind it
  """
  averageLengthOfStay: Float

  """Member bookings cancelled or no-show"""
  cancellations: Int!

  """The definition of every figure on this payload"""
  definitions: [PartnerMetricDefinition!]!

  """Share of bookings made through a direct channel, 0–1"""
  directBookingRate: Float

  """First day of the window (UTC)"""
  from: DateTimeISO!

  """Share of stays made by members enrolled with the partner, 0–1"""
  loyaltyMemberStayRate: Float

  """Members who signed up in the window. Null when withheld"""
  loyaltySignups: Int

  """Revenue in USD from direct member bookings made after joining"""
  memberRevenueUsd: Float!

  """
  Member bookings with status NO_SHOW. Part of cancellations. Null when withheld: 1–4 no-shows
  """
  noShows: Int

  """The property the figures are for; null = every property of the partner"""
  propertyId: ID

  """
  Share of members with a post-join reservation who made a return visit, 0–1
  """
  repeatGuestRate: Float

  """Members with a return visit made in the window. Null when withheld"""
  repeatGuests: Int

  """Revenue in USD attributed to a reward redemption. Null when withheld"""
  rewardsAttributedRevenueUsd: Float

  """One row per figure that is withheld"""
  suppressed: [PartnerMetricSuppression!]!

  """Last day of the window (UTC), included"""
  to: DateTimeISO!
}

"""What a partner API key may do on the Partner Reporting API"""
type PartnerReportingAccess {
  """
  The Partner Reporting API flag. Always true here: while the flag is off, every reporting query refuses
  """
  flagEnabled: Boolean!

  """
  The partner the key is pinned to. Every reporting query reads this partner only
  """
  partnerId: ID!

  """Reporting calls one key may make in a minute"""
  requestsPerMinute: Int!

  """
  Reporting calls left in this minute, after this one. Null when the limiter could not answer
  """
  requestsRemaining: Int

  """When the minute window resets, at the latest"""
  resetsAt: DateTimeISO!

  """The scope the key holds for reporting: reporting:read"""
  scope: String!
}

"""Passkey authentication response"""
type PasskeyAuthResponse {
  """Firebase custom token for authentication"""
  customToken: String!

  """GIP tenant ID the token was created for"""
  tenantId: String!
}

enum PaymentStatus {
  FAILED
  PAID
  PENDING
  REFUNDED
}

type Query {
  """Get bookings by member"""
  bookingsByMember(limit: Int = 100, memberId: String!, offset: Int = 0): [Booking!]!

  """Get loyalty transactions with tier metrics from v_booking_metrics view"""
  loyaltyTransactionsWithMetrics(
    """
    When true, server filters out duplicate imports (a booking merged into its twin, or the unmerged same-day twin of a PMS import; a booking made through AKIN checkout is never folded by day) AND totalCount reflects the deduped total. Consumer surfaces (website, white-label) should pass true so pagination footers add up. Admin (dashboard) should pass false so every row is visible with the isDuplicate flag.
    """
    excludeDuplicates: Boolean = false
    limit: Int = 100
    memberId: String!
    offset: Int = 0

    """Partner context for *_partner columns"""
    partnerId: String
  ): LoyaltyTransactionsWithMetricsResult!

  """
  Partner-scoped server-to-server read: member identity + tier by email. Requires a partner API key; limited to members the calling partner holds a qualifying tie to.
  """
  memberByEmail(email: String!): PartnerMemberRead!

  """
  Partner-scoped server-to-server read: member identity + tier by the partner's own external ID. Requires a partner API key; limited to members enrolled with that partner.
  """
  memberByExternalId(externalId: String!): PartnerMemberRead!

  """Get comprehensive member profile with statistics"""
  memberProfile(id: ID!): MemberProfile

  """Get member tier change history"""
  memberTierHistory(memberId: String!, pagination: PaginationInput): MemberTierHistoryConnection!

  """
  Partner Reporting API: a property's arrivals for one local day (today − 366 to today + 30), up to 500 rows. Requires a SECRET partner API key with the reporting:read scope; the property must be the key partner's
  """
  partnerArrivals(
    """The property's local day, YYYY-MM-DD"""
    date: String!
    propertyId: ID!
  ): PartnerArrivalsReport!

  """
  Partner Reporting API: the members who signed up with the key's partner from the UTC day `from` to the UTC day `to`, both included, with the enrolment source, origin property and next booking. The count for a window equals the dashboard sign-ups figure. Window at most 366 days; first at most 500. Requires a SECRET partner API key with the reporting:read scope, on a partner with the reporting grant
  """
  partnerMemberSignups(
    """The endCursor of the previous page"""
    after: String

    """Page size, 1 to 500"""
    first: Int! = 100

    """First day of the window (UTC day)"""
    from: DateTimeISO!

    """Last day of the window, included (UTC day)"""
    to: DateTimeISO!
  ): PartnerMemberSignupConnection!

  """
  Partner Reporting API: the partner's headline figures for a window of at most 366 days, over its own properties or one of them. Each figure equals the AKIN dashboard's figure for the same partner, property and window. Requires a SECRET partner API key with the reporting:read scope
  """
  partnerMetrics(
    """First day of the window (UTC day)"""
    from: DateTimeISO!

    """One of the partner's own properties"""
    propertyId: ID

    """Last day of the window, included (UTC day)"""
    to: DateTimeISO!
  ): PartnerMetricsReport!

  """
  Partner Reporting API: check a key. Answers the partner the key is pinned to, its reporting scope and the reporting rate limit. Requires a SECRET partner API key with the reporting:read scope, on a partner with the reporting grant
  """
  partnerReportingAccess: PartnerReportingAccess!

  """
  Partner Reporting API: sign-ups by team member at the key's partner, one row per team member and property, with property totals, from the UTC day `from` to the UTC day `to`, both included. The numbers equal the dashboard's Sign-ups by team member report. Window at most 366 days. Requires a SECRET partner API key with the reporting:read scope, on a partner with the reporting grant
  """
  partnerStaffSignups(
    """First day of the window (UTC day)"""
    from: DateTimeISO!

    """One of the partner's own properties"""
    propertyId: ID

    """Last day of the window, included (UTC day)"""
    to: DateTimeISO!
  ): StaffSignupsReport!

  """
  Get all tier benefits for a partner - rewards grouped by tier and scope
  """
  tierBenefits(locale: String, originPartnerId: String, partnerId: String!): [TierBenefits!]!

  """
  Get tier configs for a partner (with global fallback) or global configs if no partnerId
  """
  tierConfigs(locale: String = "en", partnerId: String): [LoyaltyTierConfig!]!
}

enum RatePlanRefundability {
  NON_REFUNDABLE
  REFUNDABLE
  UNKNOWN
}

"""Server-to-server partner points credit/debit"""
input RecordLoyaltyTransactionInput {
  """Optional longer description"""
  description: String

  """Member email (matched case-insensitively)"""
  email: String

  """Partner's own external id for the member (as set on enrollment)"""
  externalId: String

  """
  Idempotency token. A retry with the same token returns the original transaction and writes nothing.
  """
  idempotencyKey: String!

  """AKIN member id"""
  memberId: ID

  """Positive points magnitude to credit or debit"""
  points: Int!

  """Short reason, surfaced in the member activity statement"""
  reason: String!
  type: LoyaltyTransactionDirection!
}

"""Result of a server-to-server partner points write"""
type RecordLoyaltyTransactionResult {
  """
  Member's network-wide points balance after the write. Withheld (null) from server-to-server partner-key callers under Data Availability Policy §4 — null means withheld, not zero.
  """
  balance: Float

  """True when this matched a prior idempotency key — no new write happened"""
  idempotentReplay: Boolean!

  """AKIN member id the points were applied to"""
  memberId: ID!

  """Signed delta applied (+credit / -debit)"""
  pointsChange: Int!

  """The loyalty transaction (adjustment) id"""
  transactionId: ID!
  type: LoyaltyTransactionDirection!
}

"""Server-to-server partner reward redemption"""
input RedeemRewardInput {
  """Member email (matched case-insensitively)"""
  email: String

  """Partner's own external id for the member (as set on enrollment)"""
  externalId: String

  """
  Idempotency token. A retry with the same token returns the original redemption and writes nothing.
  """
  idempotencyKey: String!

  """AKIN member id"""
  memberId: ID

  """Optional note stored with the claim"""
  note: String

  """
  Property where the reward was redeemed. Must belong to the key's partner.
  """
  propertyId: ID!

  """Reward instance id — the `id` returned by `rewardInstancesForTier`"""
  rewardInstanceId: ID!
}

"""Result of a server-to-server partner reward redemption"""
type RedeemRewardResult {
  """True when this matched a prior idempotency key — no new write happened"""
  idempotentReplay: Boolean!

  """AKIN member id the reward was recorded against"""
  memberId: ID!

  """Property the redemption was recorded against"""
  propertyId: ID!

  """When the redemption was recorded"""
  redeemedAt: DateTimeISO!

  """The member activity (REWARD_CLAIM) id"""
  redemptionId: ID!

  """
  Redemptions of this reward still available to the member under the tightest limit enforced on this claim. Null when no limit is enforced.
  """
  remainingRedemptions: Int

  """
  The underlying reward template id — the identity network limits are counted on
  """
  rewardId: ID!

  """The reward instance that was redeemed"""
  rewardInstanceId: ID!

  """Effective reward name at redemption time"""
  rewardName: String

  """Member's tier at redemption time"""
  tier: String
}

"""Result of magic link request"""
type RequestMagicLinkResult {
  """Error message if failed"""
  error: String

  """Whether the request was successful"""
  success: Boolean!

  """
  Verification URL (E2E testing only - returned when E2E_AUTO_CONFIRM=true)
  """
  verificationUrl: String
}

"""
Why a sign-up was refused. LEGAL_VERSION_STALE: a legal version is no longer in force — read currentLegalVersions again and ask the member to confirm. LEGAL_ACCEPTANCE_REQUIRED: one or both legal versions are missing (akin-travel/issues#6734)
"""
enum SignUpErrorCode {
  LEGAL_ACCEPTANCE_REQUIRED
  LEGAL_VERSION_STALE
}

"""Passwordless signup input for website/white-label members"""
input SignUpPasswordlessInput {
  """
  Time-bounded HMAC-signed assertion, minted by the white-label server, of the partner whose HOST this sign-up came from. Every other partner signal on this input is client-chosen by design (QR / referral / cookie attribution); this is the only one the API can verify, so it is what gates the Row 1 program-terms write — a consent record must not attach to a partner the caller merely named. It expires a day after it is minted, which is a whole sign-up session and not a page render (akin-travel/issues#5570) — what makes a scraped copy useless is the signature, not the clock. Omitted by the website and the SDK, neither of which writes a program-terms version. See akin-travel/issues#3944
  """
  attributionToken: String

  """
  Cloudflare Turnstile token from the shared invisible widget (akin-travel/issues#3199). Transport-only — consumed by the RequireCaptcha middleware before the resolver body runs and never persisted on the member. Nullable because enforcement is dark-launched behind ENABLE_AUTH_CAPTCHA while the native clients have no Turnstile path; a non-null field would break every existing caller on schema validation alone.
  """
  captchaToken: String

  """Country code (e.g., AU, US, GB)"""
  countryCode: String

  """
  Date of birth, YYYY-MM-DD. Members must be 18 or over (Customer Terms §3.1). Required, whatever `signupLocation` says: a sign-up without it is refused with the dateOfBirth field error. Nullable on the wire so an installed client that does not send it gets that field error, not a schema error. See akin-travel/issues#4140, #7870
  """
  dateOfBirth: String

  """Email address"""
  email: String!

  """First name"""
  firstName: String!

  """
  The native app is asking for this link (akin-travel/issues#6652). The link then carries the one path the apps claim (`/{locale}/auth/app-verify`) instead of the web path, so it opens the app on a phone that has one; the website forwards the app path to the web sign-in page, so a phone without the app still signs in. Omit it on the web: a web link must open in the browser
  """
  forApp: Boolean

  """
  Gender, one of FEMALE, MALE, NON_BINARY, SELF_DESCRIBED, PREFER_NOT_TO_SAY ("Prefer not to say" is an answer). Required on a WEBSITE or WHITE_LABEL sign-up, which asks it beside the date of birth: without it the sign-up is refused with the gender field error. Optional on every other surface; a value that is sent is validated. See akin-travel/issues#8402
  """
  gender: String

  """
  The member's own words for their gender, up to 80 characters, kept only with gender SELF_DESCRIBED (dropped with any other token, as on updateMember). See akin-travel/issues#8402
  """
  genderSelfDescription: String

  """Last name"""
  lastName: String!

  """User locale for email links (e.g., en, de, fr)"""
  locale: String

  """
  Row 3 — marketing opt-in for AKIN, across the whole AKIN network (spec §2.3). On the website this is the single marketing opt-in
  """
  marketingOptIn: Boolean

  """
  Nationality (citizenship) as an ISO 3166-1 alpha-2 code — NOT `countryCode`, which is the phone number's dial country. Optional at sign-up; a value that is sent is validated. See akin-travel/issues#4140, #7870
  """
  nationality: String

  """Partner ID for attribution"""
  partnerId: ID

  """
  Row 2 — marketing opt-in for the attributed white-label Partner specifically (spec §2.2). Recorded separately from marketingOptIn: §2.4 forbids collapsing rows 2 and 3 into a single marketing flag. See akin-travel/issues#3427
  """
  partnerMarketingOptIn: Boolean

  """Partner slug for URL building (preferred over partnerId)"""
  partnerSlug: String

  """Phone number"""
  phone: String

  """
  Published Privacy Policy version the member agreed to (must match the current LEGAL_PRIVACY_VERSION). See akin-travel/issues#1820
  """
  privacyAcceptedVersion: String

  """
  Row 1 of the white-label consent screen included this program's WL Program Terms & Conditions (Sign-Up Flow & Consent Spec 18 Jul 2026 §2.1). A boolean, NOT a version: the accepted version is resolved server-side from the attributed program, because the program documents are server-rendered and a client cannot be the authority on which one it showed. See akin-travel/issues#3427
  """
  programTermsAccepted: Boolean

  """Property ID for signup tracking (from QR code links)"""
  propertyId: ID

  """
  Custom verification page URL for SDK integrations (e.g., https://viajero.com/auth/verify)
  """
  redirectUrl: String

  """Referral code from referrer"""
  referralCode: String

  """
  Staff user id credited for this signup (the `su` param on a promotions QR link). Spoofable — server-validated against the attributed partner and dropped to NULL when it does not belong. See akin-travel/issues#3434
  """
  signedUpByUserId: ID

  """
  Surface the signup originated from. Every surface except SDK must send both legal versions (akin-travel/issues#1820, #7502). An SDK sign-up (or one naming no surface) on a request with a verified partner API key may omit them when termsAccepted is true: the server then records the in-force versions as the partner's attestation. Without a verified key an SDK claim earns no relaxation
  """
  signupLocation: SignupLocation

  """Terms and conditions acceptance"""
  termsAccepted: Boolean

  """
  Published Customer T&C version the member agreed to (must match the current LEGAL_TERMS_VERSION). See akin-travel/issues#1820
  """
  termsAcceptedVersion: String

  """UTM campaign parameter for campaign tracking"""
  utmCampaign: String

  """UTM medium parameter for campaign tracking"""
  utmMedium: String

  """UTM source parameter for campaign tracking"""
  utmSource: String

  """
  Readable QR handle credited for this signup (the `via` param on a cascading-QR link, e.g. `paula-diaz`). Resolved to a dashboard user and validated against the attributed partner exactly like `su`; wins over `su` when both are present. See akin-travel/issues#3507
  """
  viaHandle: String
}

"""Result of passwordless signup"""
type SignUpResult {
  """Email address"""
  email: String

  """Error message if failed"""
  error: String

  """
  Typed reason for a refusal, when it has one (akin-travel/issues#6734). Branch on this, not on `error`: LEGAL_VERSION_STALE means read currentLegalVersions again and ask the member to confirm. Null on success and on refusals without a code
  """
  errorCode: SignUpErrorCode

  """Whether signup was successful"""
  success: Boolean!

  """User ID if successful"""
  userId: String

  """
  Verification URL (E2E testing only - returned when E2E_AUTO_CONFIRM=true)
  """
  verificationUrl: String
}

enum SignupLocation {
  ANDROID
  DASHBOARD
  IOS
  SDK
  WEBSITE
  WHITE_LABEL
}

"""The sign-ups at one property, over all its team members"""
type StaffSignupsPropertyTotal {
  eligibleSignups: Int!
  propertyId: ID
  propertyName: String
  signups: Int!

  """
  Team members listed under this property, those with no sign-ups included
  """
  teamMembers: Int!
}

"""Sign-ups by team member for a date range"""
type StaffSignupsReport {
  """First day of the window, YYYY-MM-DD (UTC), included"""
  dateFrom: String!

  """Last day of the window, YYYY-MM-DD (UTC), included"""
  dateTo: String!

  """One total per property, most sign-ups first"""
  properties: [StaffSignupsPropertyTotal!]!

  """
  One row per team member and property. A team member with no sign-ups in the window has a row with zeros
  """
  rows: [StaffSignupsReportRow!]!
  totalEligibleSignups: Int!
  totalSignups: Int!
}

"""Sign-ups one team member made at one property. Never names a member"""
type StaffSignupsReportRow {
  """
  Of those, the members with a non-cancelled stay anywhere in the AKIN network, past, current or future
  """
  eligibleSignups: Int!

  """
  The property the members signed up at. Null when they signed up with no property
  """
  propertyId: ID
  propertyName: String

  """Members this team member signed up at this property in the window"""
  signups: Int!

  """The team member's name. Null for a shared login with no person's name"""
  staffName: String

  """The team member (a staff user)"""
  staffUserId: ID!
}

"""A synced stay from initial signup sync"""
type SyncedStay {
  """Check-in date (YYYY-MM-DD)"""
  checkIn: String!

  """Check-out date (YYYY-MM-DD)"""
  checkOut: String!

  """Confirmation number"""
  confirmationNumber: String

  """Points awarded (0 for future stays)"""
  points: Int!

  """Property name"""
  propertyName: String!

  """Booking source"""
  source: String
}

"""A group of rewards scoped to all properties or a specific property"""
type TierBenefitGroup {
  """Property ID (only when scope=PROPERTY)"""
  propertyId: String

  """Property name (only when scope=PROPERTY)"""
  propertyName: String

  """Reward names in this group"""
  rewardNames: [String!]!

  """ALL_PROPERTIES or PROPERTY"""
  scope: String!
}

"""Tier benefits - rewards available at a specific tier"""
type TierBenefits {
  """Rewards grouped by scope (all properties vs per-property)"""
  groups: [TierBenefitGroup!]

  """Flat list of all reward names at this tier (backward compat)"""
  rewardNames: [String!]!

  """The names in rewardNames a member chooses at this tier (SELECTABLE)"""
  selectableRewardNames: [String!]

  """
  The names in rewardNames that staff give on request at this tier (STAFF_ONLY) rather than apply to every stay
  """
  staffOnlyRewardNames: [String!]
  tierName: String!
}

"""Reason for tier change"""
enum TierChangeReason {
  MANUAL
  POINTS
  PROMOTION
  STAYS
}

"""Loyalty tier levels"""
enum TierName {
  TIER1
  TIER2
  TIER3
  TIER4
  TIER5
}

"""
How a tier can be achieved - POINTS for activity-based progression, INVITATION for manual assignment only
"""
enum TierType {
  INVITATION
  POINTS
}

input UpdateMemberInput {
  accessibilityNeeds: String
  addressCity: String

  """ISO 3166-1 alpha-2; upper-cased on write"""
  addressCountryCode: String
  addressLine1: String
  addressLine2: String
  addressPostalCode: String
  addressRegion: String

  """URL of member profile avatar image"""
  avatarUrl: String
  countryCode: String

  """YYYY-MM-DD; a real past date, member at least 18"""
  dateOfBirth: String
  emergencyContactName: String

  """Validated like the member phone"""
  emergencyContactPhone: String
  firstName: String

  """FEMALE | MALE | NON_BINARY | SELF_DESCRIBED | PREFER_NOT_TO_SAY"""
  gender: String

  """Accepted only with gender = SELF_DESCRIBED; cleared otherwise"""
  genderSelfDescription: String
  lastName: String
  loyaltyNumber: String @deprecated(reason: "Sunset 2026-12-31: refused; the loyalty number is minted by the server and never changes (akin-travel/issues#7567)")
  marketingOptIn: Boolean

  """
  ISO 3166-1 alpha-2 nationality (citizenship); upper-cased on write. Never countryCode, which is the phone country
  """
  nationality: String
  perkPreferences: [String!]
  phone: String
  placeTypePreferences: [String!]

  """
  Display currency (ISO 4217, one of the selectable display currencies); null clears it
  """
  preferredCurrency: String
  preferredLanguage: String

  """
  True only on the sign-up step's save (the web profile step and details prompt, the apps' "Set up your account"). The write is refused without a gender, sent or already on file: VALIDATION_ERROR with context { field: "gender", reason: "REQUIRED" }. Not stored. Every other caller, checkout and the account editors included, leaves it unset and is never asked a gender
  """
  signUpStep: Boolean
  termsAccepted: Boolean
  vibePreference: String
}
