{
  "openapi": "3.1.0",
  "info": {
    "title": "Fishbowl Managed Mobile Loyalty API",
    "version": "1.0.0",
    "description": "Secretless, guest-owned loyalty API for Fishbowl-managed native applications. The URL carries the contract version; clients do not send a date-version header."
  },
  "servers": [
    {
      "url": "https://api.fishbowl.com/api/loyalty/mobile/v1",
      "description": "Fishbowl production API"
    },
    {
      "url": "https://api-staging.fishbowl.com/api/loyalty/mobile/v1",
      "description": "Fishbowl certification API; uses the same registrations and loyalty data"
    }
  ],
  "security": [{ "bearerAuth": [] }],
  "paths": {
    "/auth/start": {
      "post": {
        "operationId": "startGuestAuthentication",
        "summary": "Send a verification code to a guest",
        "security": [],
        "requestBody": { "$ref": "#/components/requestBodies/StartAuth" },
        "responses": {
          "200": { "description": "Authentication challenge created", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthChallengeResponse" } } } },
          "400": { "$ref": "#/components/responses/Error" },
          "403": { "$ref": "#/components/responses/Error" },
          "429": { "$ref": "#/components/responses/Error" }
        }
      }
    },
    "/auth/verify": {
      "post": {
        "operationId": "verifyGuestAuthentication",
        "summary": "Verify a contact and issue a code when all submitted contacts are verified",
        "security": [],
        "requestBody": { "$ref": "#/components/requestBodies/VerifyAuth" },
        "responses": {
          "200": { "description": "Authorization approved", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthVerificationResponse" } } } },
          "400": { "$ref": "#/components/responses/Error" },
          "401": { "$ref": "#/components/responses/Error" },
          "403": { "$ref": "#/components/responses/Error" },
          "409": { "$ref": "#/components/responses/Error" }
        }
      }
    },
    "/oauth/token": {
      "post": {
        "operationId": "exchangeGuestAuthorizationCode",
        "summary": "Exchange an authorization code using S256 PKCE",
        "security": [],
        "requestBody": { "$ref": "#/components/requestBodies/TokenExchange" },
        "responses": {
          "200": { "description": "One-hour guest token issued", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenResponse" } } } },
          "400": { "$ref": "#/components/responses/Error" },
          "401": { "$ref": "#/components/responses/Error" },
          "403": { "$ref": "#/components/responses/Error" }
        }
      }
    },
    "/mobile-promotions": {
      "get": {
        "operationId": "listMobilePromotions",
        "summary": "List currently scheduled promotional images for a selected store",
        "parameters": [{ "$ref": "#/components/parameters/StoreId" }],
        "responses": {
          "200": { "description": "Active promotions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PromotionListResponse" } } } },
          "401": { "$ref": "#/components/responses/Error" },
          "403": { "$ref": "#/components/responses/Error" },
          "404": { "$ref": "#/components/responses/Error" }
        }
      }
    },
    "/participating-stores": {
      "get": {
        "operationId": "listParticipatingStores",
        "summary": "List explicitly participating stores by client/brand loyalty program",
        "responses": {
          "200": { "description": "Participating stores", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ParticipationListResponse" } } } },
          "401": { "$ref": "#/components/responses/Error" },
          "403": { "$ref": "#/components/responses/Error" }
        }
      }
    },
    "/accounts": {
      "get": {
        "operationId": "listGuestAccounts",
        "summary": "List loyalty accounts belonging to the verified guest",
        "responses": {
          "200": { "description": "Accounts loaded", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountListResponse" } } } },
          "401": { "$ref": "#/components/responses/Error" },
          "403": { "$ref": "#/components/responses/Error" }
        }
      },
      "post": {
        "operationId": "enrollGuestAccount",
        "summary": "Enroll the verified guest in a client-owned loyalty program",
        "requestBody": { "$ref": "#/components/requestBodies/Enrollment" },
        "responses": {
          "200": { "description": "Existing account linked", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountResponse" } } } },
          "201": { "description": "Account created", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountResponse" } } } },
          "400": { "$ref": "#/components/responses/Error" },
          "401": { "$ref": "#/components/responses/Error" },
          "403": { "$ref": "#/components/responses/Error" },
          "409": { "$ref": "#/components/responses/Error" }
        }
      }
    },
    "/accounts/{accountId}": {
      "parameters": [{ "$ref": "#/components/parameters/AccountId" }],
      "get": {
        "operationId": "getGuestAccount",
        "summary": "Read the verified guest's allowed loyalty profile",
        "responses": {
          "200": { "description": "Account loaded", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountResponse" } } } },
          "401": { "$ref": "#/components/responses/Error" },
          "403": { "$ref": "#/components/responses/Error" },
          "404": { "$ref": "#/components/responses/Error" }
        }
      },
      "patch": {
        "operationId": "updateGuestProfile",
        "summary": "Update the guest's non-identity profile fields",
        "requestBody": { "$ref": "#/components/requestBodies/ProfileUpdate" },
        "responses": {
          "200": { "description": "Profile updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountResponse" } } } },
          "400": { "$ref": "#/components/responses/Error" },
          "401": { "$ref": "#/components/responses/Error" },
          "403": { "$ref": "#/components/responses/Error" },
          "404": { "$ref": "#/components/responses/Error" },
          "409": { "$ref": "#/components/responses/Error" }
        }
      }
    },
    "/accounts/{accountId}/contacts/start": {
      "post": {
        "operationId": "startGuestContactVerification",
        "summary": "Send an OTP to a second phone or email for an owned account",
        "parameters": [{ "$ref": "#/components/parameters/AccountId" }],
        "requestBody": { "$ref": "#/components/requestBodies/ContactStart" },
        "responses": {
          "200": { "description": "Contact challenge created", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthChallengeResponse" } } } },
          "400": { "$ref": "#/components/responses/Error" },
          "401": { "$ref": "#/components/responses/Error" },
          "403": { "$ref": "#/components/responses/Error" },
          "404": { "$ref": "#/components/responses/Error" },
          "429": { "$ref": "#/components/responses/Error" }
        }
      }
    },
    "/accounts/{accountId}/contacts/verify": {
      "post": {
        "operationId": "verifyGuestContact",
        "summary": "Verify and save a second contact on an owned account",
        "parameters": [{ "$ref": "#/components/parameters/AccountId" }],
        "requestBody": { "$ref": "#/components/requestBodies/ContactVerify" },
        "responses": {
          "200": { "description": "Contact verified and saved", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountResponse" } } } },
          "400": { "$ref": "#/components/responses/Error" },
          "401": { "$ref": "#/components/responses/Error" },
          "403": { "$ref": "#/components/responses/Error" },
          "404": { "$ref": "#/components/responses/Error" },
          "409": { "$ref": "#/components/responses/Error" }
        }
      }
    },
    "/accounts/{accountId}/summary": {
      "get": {
        "operationId": "getGuestLoyaltySummary",
        "summary": "Read points, rewards, and tier progress",
        "parameters": [{ "$ref": "#/components/parameters/AccountId" }],
        "responses": {
          "200": { "description": "Summary loaded", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SummaryResponse" } } } },
          "401": { "$ref": "#/components/responses/Error" },
          "403": { "$ref": "#/components/responses/Error" },
          "404": { "$ref": "#/components/responses/Error" }
        }
      }
    },
    "/accounts/{accountId}/games": {
      "get": {
        "operationId": "listMemberGames",
        "summary": "List games available at a selected store to an enrolled member",
        "parameters": [{ "$ref": "#/components/parameters/AccountId" }, { "$ref": "#/components/parameters/StoreId" }],
        "responses": {
          "200": { "description": "Available games and play eligibility", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GameListResponse" } } } },
          "401": { "$ref": "#/components/responses/Error" },
          "403": { "$ref": "#/components/responses/Error" },
          "404": { "$ref": "#/components/responses/Error" }
        }
      }
    },
    "/accounts/{accountId}/games/{gameId}/plays": {
      "post": {
        "operationId": "playMemberGame",
        "summary": "Reserve and return a backend-drawn game result",
        "description": "Fishbowl selects and records the outcome. Persist and reuse the same Idempotency-Key for retries; never submit an outcome ID from the device.",
        "parameters": [{ "$ref": "#/components/parameters/AccountId" }, { "$ref": "#/components/parameters/GameId" }, { "$ref": "#/components/parameters/PlayIdempotencyKey" }],
        "requestBody": { "$ref": "#/components/requestBodies/GamePlay" },
        "responses": {
          "201": { "description": "Recorded result (including a replay)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GamePlayResponse" } } } },
          "400": { "$ref": "#/components/responses/Error" },
          "401": { "$ref": "#/components/responses/Error" },
          "403": { "$ref": "#/components/responses/Error" },
          "404": { "$ref": "#/components/responses/Error" },
          "409": { "$ref": "#/components/responses/Error" },
          "429": { "$ref": "#/components/responses/Error" }
        }
      }
    },
    "/accounts/{accountId}/inquiries": {
      "post": {
        "operationId": "inquireGuestOrder",
        "summary": "Preview rewards for an order without changing the ledger",
        "parameters": [{ "$ref": "#/components/parameters/AccountId" }],
        "requestBody": { "$ref": "#/components/requestBodies/Inquiry" },
        "responses": {
          "200": { "description": "Inquiry completed", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InquiryResponse" } } } },
          "400": { "$ref": "#/components/responses/Error" },
          "401": { "$ref": "#/components/responses/Error" },
          "403": { "$ref": "#/components/responses/Error" },
          "404": { "$ref": "#/components/responses/Error" }
        }
      }
    },
    "/accounts/{accountId}/redemption-intents": {
      "post": {
        "operationId": "createGuestRedemptionIntent",
        "summary": "Create a short-lived guest-owned redemption intent",
        "parameters": [{ "$ref": "#/components/parameters/AccountId" }],
        "requestBody": { "$ref": "#/components/requestBodies/RedemptionIntent" },
        "responses": {
          "201": { "description": "Redemption intent created", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RedemptionIntentResponse" } } } },
          "400": { "$ref": "#/components/responses/Error" },
          "401": { "$ref": "#/components/responses/Error" },
          "403": { "$ref": "#/components/responses/Error" },
          "404": { "$ref": "#/components/responses/Error" }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "JWT" }
    },
    "parameters": {
      "AccountId": { "name": "accountId", "in": "path", "required": true, "description": "Stable account ID returned by account listing or enrollment.", "schema": { "type": "string", "format": "uuid" } },
      "GameId": { "name": "gameId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } },
      "StoreId": { "name": "storeId", "in": "query", "required": true, "description": "Selected store UUID from the existing store API.", "schema": { "type": "string", "format": "uuid" } },
      "PlayIdempotencyKey": { "name": "Idempotency-Key", "in": "header", "required": true, "description": "Stable 8-200 character key for one play attempt. Reuse across retries, including after app restart.", "schema": { "type": "string", "minLength": 8, "maxLength": 200 } }
    },
    "requestBodies": {
      "StartAuth": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StartAuthRequest" } } } },
      "VerifyAuth": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VerifyAuthRequest" } } } },
      "TokenExchange": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenRequest" } } } },
      "Enrollment": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnrollmentRequest" } } } },
      "ContactStart": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContactStartRequest" } } } },
      "ContactVerify": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContactVerifyRequest" } } } },
      "ProfileUpdate": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProfileUpdateRequest" } } } },
      "Inquiry": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InquiryRequest" } } } },
      "RedemptionIntent": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RedemptionIntentRequest" } } } },
      "GamePlay": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GamePlayRequest" } } } }
    },
    "responses": {
      "Error": { "description": "Request rejected", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }
    },
    "schemas": {
      "StartAuthRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": ["applicationId", "redirectUri", "codeChallenge", "codeChallengeMethod"],
        "anyOf": [{ "required": ["phoneNumber"] }, { "required": ["emailAddress"] }],
        "properties": {
          "applicationId": { "type": "string", "format": "uuid" },
          "redirectUri": { "type": "string", "format": "uri" },
          "phoneNumber": { "type": "string", "description": "Guest phone number. May be supplied together with emailAddress." },
          "emailAddress": { "type": "string", "format": "email", "description": "Guest email. May be supplied together with phoneNumber." },
          "codeChallenge": { "type": "string", "minLength": 43, "maxLength": 128 },
          "codeChallengeMethod": { "const": "S256" }
        }
      },
      "VerifyAuthRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": ["applicationId", "challengeId", "code"],
        "anyOf": [{ "required": ["sessionId"] }, { "required": ["phoneNumber"] }, { "required": ["emailAddress"] }],
        "properties": {
          "applicationId": { "type": "string", "format": "uuid" },
          "sessionId": { "type": "string", "format": "uuid", "description": "Required for a dual-contact start; use the same session for each contact OTP." },
          "challengeId": { "type": "string", "format": "uuid" },
          "code": { "type": "string" },
          "phoneNumber": { "type": "string" },
          "emailAddress": { "type": "string", "format": "email" }
        }
      },
      "TokenRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": ["grant_type", "client_id", "redirect_uri", "code", "code_verifier"],
        "properties": {
          "grant_type": { "const": "authorization_code" },
          "client_id": { "type": "string", "format": "uuid", "description": "The public applicationId. No client secret is used." },
          "redirect_uri": { "type": "string", "format": "uri" },
          "code": { "type": "string" },
          "code_verifier": { "type": "string", "minLength": 43, "maxLength": 128 }
        }
      },
      "EnrollmentRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": ["programId"],
        "properties": {
          "programId": { "type": "string", "format": "uuid" },
          "phoneNumber": { "type": "string", "description": "Optional; must match a verified phone on this guest principal." },
          "emailAddress": { "type": "string", "format": "email", "description": "Optional; must match a verified email on this guest principal." },
          "firstName": { "type": "string", "maxLength": 100 },
          "lastName": { "type": "string", "maxLength": 100 },
          "birthdate": { "type": "string", "format": "date" }
        }
      },
      "ContactStartRequest": {
        "type": "object", "additionalProperties": false,
        "oneOf": [{ "required": ["phoneNumber"] }, { "required": ["emailAddress"] }],
        "properties": {
          "phoneNumber": { "type": "string", "description": "Phone to verify with an SMS code." },
          "emailAddress": { "type": "string", "format": "email", "description": "Email to verify with a code." }
        }
      },
      "ContactVerifyRequest": {
        "type": "object", "additionalProperties": false,
        "required": ["challengeId", "code"],
        "properties": {
          "challengeId": { "type": "string", "format": "uuid" },
          "code": { "type": "string" }
        }
      },
      "ProfileUpdateRequest": {
        "type": "object",
        "additionalProperties": false,
        "minProperties": 1,
        "properties": {
          "firstName": { "type": "string", "maxLength": 100 },
          "lastName": { "type": "string", "maxLength": 100 },
          "birthdate": { "type": "string", "format": "date" }
        }
      },
      "InquiryRequest": { "type": "object", "description": "Canonical order context used to evaluate rewards.", "additionalProperties": true },
      "RedemptionIntentRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": ["rewardUuid"],
        "properties": {
          "rewardUuid": { "type": "string", "format": "uuid" },
          "quantity": { "type": "integer", "minimum": 1, "maximum": 100, "default": 1 }
        }
      },
      "GamePlayRequest": { "type": "object", "additionalProperties": false, "required": ["storeId"], "properties": { "storeId": { "type": "string", "format": "uuid" } } },
      "MobilePromotion": { "type": "object", "required": ["id", "title", "imageUrl", "startsAt", "endsAt", "displayOrder"], "properties": { "id": { "type": "string", "format": "uuid" }, "title": { "type": "string" }, "imageUrl": { "type": "string", "format": "uri" }, "destinationUrl": { "type": ["string", "null"], "format": "uri" }, "startsAt": { "type": "string", "format": "date-time" }, "endsAt": { "type": "string", "format": "date-time" }, "displayOrder": { "type": "integer" }, "storeIds": { "type": "array", "items": { "type": "string", "format": "uuid" } } } },
      "ProgramParticipation": { "type": "object", "required": ["programId", "storeIds"], "properties": { "programId": { "type": "string", "format": "uuid" }, "brandId": { "type": ["string", "null"], "format": "uuid" }, "storeIds": { "type": "array", "items": { "type": "string", "format": "uuid" } } } },
      "MobileGameOutcome": { "type": "object", "required": ["id", "label", "outcomeType", "weight", "displayOrder"], "properties": { "id": { "type": "string", "format": "uuid" }, "label": { "type": "string" }, "outcomeType": { "enum": ["reward", "points", "no_win"] }, "weight": { "type": "integer" }, "displayOrder": { "type": "integer" }, "color": { "type": ["string", "null"] }, "imageUrl": { "type": ["string", "null"], "format": "uri" } } },
      "MobileGame": { "type": "object", "required": ["id", "programId", "title", "gameType", "startsAt", "endsAt", "playLimitType", "maxPlaysPerPeriod", "outcomes", "eligibility"], "properties": { "id": { "type": "string", "format": "uuid" }, "programId": { "type": "string", "format": "uuid" }, "title": { "type": "string" }, "gameType": { "enum": ["wheel", "scratch"] }, "startsAt": { "type": "string", "format": "date-time" }, "endsAt": { "type": "string", "format": "date-time" }, "playLimitType": { "enum": ["rolling_24h", "store_day"] }, "maxPlaysPerPeriod": { "type": "integer" }, "outcomes": { "type": "array", "items": { "$ref": "#/components/schemas/MobileGameOutcome" } }, "eligibility": { "type": "object", "required": ["canPlay", "nextPlayAt"], "properties": { "canPlay": { "type": "boolean" }, "nextPlayAt": { "type": ["string", "null"], "format": "date-time" } } } } },
      "MobileGamePlay": { "type": "object", "required": ["playId", "gameId", "outcomeId", "status", "playedAt", "outcomeType"], "properties": { "playId": { "type": "string", "format": "uuid" }, "gameId": { "type": "string", "format": "uuid" }, "outcomeId": { "type": "string", "format": "uuid" }, "status": { "const": "applied" }, "playedAt": { "type": "string", "format": "date-time" }, "outcomeType": { "enum": ["reward", "points", "no_win"] } } },
      "Account": {
        "type": "object",
        "required": ["accountId"],
        "properties": {
          "accountId": { "type": "string", "format": "uuid" },
          "clientId": { "type": "string", "format": "uuid" },
          "brandId": { "type": "string", "format": "uuid" },
          "programId": { "type": "string", "format": "uuid" },
          "loyaltyId": { "type": "string", "description": "Opaque loyalty-system identifier." },
          "posLookupValue": { "type": "string", "description": "Opaque value to render in the member QR code." },
          "profile": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "firstName": { "type": ["string", "null"] },
              "lastName": { "type": ["string", "null"] },
              "emailAddress": { "type": ["string", "null"], "format": "email" },
              "phoneNumber": { "type": ["string", "null"] },
              "birthdate": { "type": ["string", "null"], "format": "date" }
            }
          },
          "contactVerification": { "type": "object", "required": ["emailVerified", "phoneVerified"], "properties": { "emailVerified": { "type": "boolean" }, "phoneVerified": { "type": "boolean" } } },
          "verifiedContact": { "type": "string", "enum": ["email", "phone"], "description": "Present immediately after successful second-contact verification." },
          "created": { "type": "boolean" }
        },
        "additionalProperties": true
      },
      "AuthChallenge": { "type": "object", "required": ["challengeId"], "properties": { "challengeId": { "type": "string", "format": "uuid" }, "delivery": { "type": "object", "additionalProperties": true } } },
      "DualAuthChallenge": { "type": "object", "required": ["sessionId", "phone", "email"], "properties": { "sessionId": { "type": "string", "format": "uuid" }, "phone": { "$ref": "#/components/schemas/AuthChallenge" }, "email": { "$ref": "#/components/schemas/AuthChallenge" } } },
      "AuthVerification": { "type": "object", "required": ["authorizationCode", "redirectUri"], "properties": { "authorizationCode": { "type": "string" }, "redirectUri": { "type": "string", "format": "uri" }, "accounts": { "type": "array", "items": { "$ref": "#/components/schemas/Account" } } } },
      "PendingContactVerification": { "type": "object", "required": ["pending", "verifiedContact"], "properties": { "pending": { "const": true }, "verifiedContact": { "type": "string", "enum": ["email", "phone"] } } },
      "TokenResponse": { "type": "object", "required": ["access_token", "token_type", "expires_in", "scope"], "properties": { "access_token": { "type": "string" }, "token_type": { "const": "Bearer" }, "expires_in": { "type": "integer", "const": 3600 }, "scope": { "type": "string" } } },
      "PunchCard": {
        "type": "object",
        "additionalProperties": false,
        "required": ["rewardId", "name", "currentPunches", "targetPunches", "availableRewards"],
        "properties": {
          "rewardId": { "type": "string", "format": "uuid", "description": "Reward definition that owns this configurable punch program." },
          "name": { "type": "string" },
          "currentPunches": { "type": "number", "minimum": 0, "description": "Qualifying quantity accumulated toward the next reward after earned grants are accounted for." },
          "targetPunches": { "type": "number", "exclusiveMinimum": 0 },
          "availableRewards": { "type": "integer", "minimum": 0, "description": "Earned, unredeemed, active wallet rewards for this punch program." }
        }
      },
      "Summary": {
        "type": "object",
        "description": "Guest loyalty balance, available rewards, POS lookup value, tier progress, and configured punch-card progress.",
        "required": ["punchCards"],
        "properties": {
          "punchCards": { "type": "array", "items": { "$ref": "#/components/schemas/PunchCard" } }
        },
        "additionalProperties": true
      },
      "InquiryResult": { "type": "object", "description": "Read-only reward eligibility result for the supplied order.", "additionalProperties": true },
      "RedemptionIntent": { "type": "object", "required": ["intentUuid", "claimCode", "expiresIn"], "properties": { "intentUuid": { "type": "string", "format": "uuid" }, "claimCode": { "type": "string" }, "expiresIn": { "type": "integer", "const": 300 } } },
      "SuccessResponse": { "type": "object", "required": ["success", "message", "data"], "properties": { "success": { "const": true }, "message": { "type": "string" }, "data": {} } },
      "AuthChallengeResponse": { "allOf": [{ "$ref": "#/components/schemas/SuccessResponse" }, { "type": "object", "properties": { "data": { "oneOf": [{ "$ref": "#/components/schemas/AuthChallenge" }, { "$ref": "#/components/schemas/DualAuthChallenge" }] } } }] },
      "AuthVerificationResponse": { "allOf": [{ "$ref": "#/components/schemas/SuccessResponse" }, { "type": "object", "properties": { "data": { "oneOf": [{ "$ref": "#/components/schemas/PendingContactVerification" }, { "$ref": "#/components/schemas/AuthVerification" }] } } }] },
      "AccountListResponse": { "allOf": [{ "$ref": "#/components/schemas/SuccessResponse" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Account" } } } }] },
      "AccountResponse": { "allOf": [{ "$ref": "#/components/schemas/SuccessResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/components/schemas/Account" } } }] },
      "SummaryResponse": { "allOf": [{ "$ref": "#/components/schemas/SuccessResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/components/schemas/Summary" } } }] },
      "InquiryResponse": { "allOf": [{ "$ref": "#/components/schemas/SuccessResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/components/schemas/InquiryResult" } } }] },
      "RedemptionIntentResponse": { "allOf": [{ "$ref": "#/components/schemas/SuccessResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/components/schemas/RedemptionIntent" } } }] },
      "PromotionListResponse": { "allOf": [{ "$ref": "#/components/schemas/SuccessResponse" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/MobilePromotion" } } } }] },
      "ParticipationListResponse": { "allOf": [{ "$ref": "#/components/schemas/SuccessResponse" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/ProgramParticipation" } } } }] },
      "GameListResponse": { "allOf": [{ "$ref": "#/components/schemas/SuccessResponse" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/MobileGame" } } } }] },
      "GamePlayResponse": { "allOf": [{ "$ref": "#/components/schemas/SuccessResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/components/schemas/MobileGamePlay" } } }] },
      "ErrorResponse": { "type": "object", "required": ["success", "message"], "properties": { "success": { "const": false }, "message": { "type": "string" }, "details": { "type": "object", "additionalProperties": true } } }
    }
  }
}
