{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/actionbox-cloud/json-schema/actionbox-cloud-apple-authorization-code-login-request-schema.json",
  "title": "AppleAuthorizationCodeLoginRequest",
  "description": "Apple web/Android authorization-code exchange request.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/actionbox-cloud-auth-api-openapi.yml#/components/schemas/AppleAuthorizationCodeLoginRequest",
  "properties": {
    "authorization_code": {
      "type": "string",
      "maxLength": 4096,
      "minLength": 10,
      "title": "Authorization Code"
    },
    "challenge_id": {
      "type": "string",
      "maxLength": 64,
      "minLength": 8,
      "pattern": "^nac_[a-f0-9]{32}$",
      "title": "Challenge Id"
    },
    "email": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 320,
          "minLength": 3
        },
        {
          "type": "null"
        }
      ],
      "title": "Email"
    },
    "display_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Display Name"
    }
  },
  "type": "object",
  "required": [
    "authorization_code",
    "challenge_id"
  ]
}