{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/animgen-com/json-schema/animgen-com-google-auth-request-schema.json",
  "title": "GoogleAuthRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/animgen-com-auth-api-openapi.yml#/components/schemas/GoogleAuthRequest",
  "properties": {
    "credential": {
      "type": "string",
      "maxLength": 16000,
      "minLength": 100,
      "title": "Credential"
    },
    "legalAcceptance": {
      "anyOf": [
        {
          "$ref": "#/$defs/LegalAcceptanceChoice"
        },
        {
          "type": "null"
        }
      ]
    },
    "researchConsent": {
      "anyOf": [
        {
          "$ref": "#/$defs/ResearchConsentChoice"
        },
        {
          "type": "null"
        }
      ]
    },
    "attribution": {
      "anyOf": [
        {
          "$ref": "#/$defs/RegistrationAttribution"
        },
        {
          "type": "null"
        }
      ]
    },
    "turnstileToken": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2048
        },
        {
          "type": "null"
        }
      ],
      "title": "Turnstiletoken"
    },
    "fingerprintProof": {
      "anyOf": [
        {
          "$ref": "#/$defs/FingerprintProof"
        },
        {
          "type": "null"
        }
      ]
    },
    "fingerprintDiagnostic": {
      "anyOf": [
        {
          "$ref": "#/$defs/FingerprintClientDiagnostic"
        },
        {
          "type": "null"
        }
      ]
    },
    "analyticsAnonymousId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Analyticsanonymousid"
    }
  },
  "type": "object",
  "required": [
    "credential"
  ],
  "$defs": {
    "AcquisitionContext": {
      "properties": {
        "version": {
          "type": "integer",
          "const": 1,
          "title": "Version"
        },
        "first": {
          "$ref": "#/$defs/AcquisitionTouch"
        },
        "session": {
          "$ref": "#/$defs/AcquisitionTouch"
        },
        "last_non_direct": {
          "anyOf": [
            {
              "$ref": "#/$defs/AcquisitionTouch"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "first",
        "session"
      ],
      "title": "AcquisitionContext"
    },
    "AcquisitionTouch": {
      "properties": {
        "source": {
          "type": "string",
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]*$",
          "title": "Source"
        },
        "channel": {
          "type": "string",
          "enum": [
            "organic_search",
            "paid_search",
            "paid_social",
            "paid_other",
            "social",
            "email",
            "ai",
            "referral",
            "campaign",
            "direct_unknown",
            "internal",
            "payment_return",
            "auth_return"
          ],
          "title": "Channel"
        },
        "referrer_host": {
          "type": "string",
          "maxLength": 253,
          "title": "Referrer Host",
          "default": ""
        },
        "landing_path": {
          "type": "string",
          "maxLength": 512,
          "minLength": 1,
          "pattern": "^/[a-zA-Z0-9/_~.-]*$",
          "title": "Landing Path"
        },
        "captured_at": {
          "type": "string",
          "maxLength": 40,
          "minLength": 20,
          "title": "Captured At"
        },
        "evidence": {
          "type": "string",
          "enum": [
            "utm",
            "click_id",
            "referrer",
            "none"
          ],
          "title": "Evidence"
        },
        "click_platform": {
          "type": "string",
          "enum": [
            "google",
            "microsoft",
            "meta",
            "tiktok",
            "linkedin",
            "none"
          ],
          "title": "Click Platform"
        },
        "utm_source": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Utm Source"
        },
        "utm_medium": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Utm Medium"
        },
        "utm_campaign": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Utm Campaign"
        },
        "utm_content": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Utm Content"
        },
        "utm_term": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Utm Term"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "source",
        "channel",
        "landing_path",
        "captured_at",
        "evidence",
        "click_platform"
      ],
      "title": "AcquisitionTouch",
      "description": "Bounded campaign labels and host/path only; never raw click IDs or URLs."
    },
    "FingerprintClientDiagnostic": {
      "properties": {
        "stage": {
          "type": "string",
          "enum": [
            "challenge",
            "config",
            "script_load",
            "agent_start",
            "signal_collection",
            "identify",
            "response",
            "complete"
          ],
          "title": "Stage"
        },
        "errorCode": {
          "type": "string",
          "enum": [
            "none",
            "challenge_request_failed",
            "invalid_config",
            "invalid_response",
            "collection_timeout",
            "unknown_error",
            "api_key_missing",
            "api_key_invalid",
            "endpoints_misconfigured",
            "invalid_endpoint",
            "cache_misconfigured",
            "wrong_worker_option",
            "script_load_fail",
            "csp_block",
            "sandboxed_iframe",
            "client_timeout",
            "network_connection",
            "network_abort",
            "bad_response_format"
          ],
          "title": "Errorcode"
        },
        "durationMs": {
          "type": "integer",
          "maximum": 60000.0,
          "minimum": 0.0,
          "title": "Durationms"
        }
      },
      "type": "object",
      "required": [
        "stage",
        "errorCode",
        "durationMs"
      ],
      "title": "FingerprintClientDiagnostic",
      "description": "Untrusted, allowlisted telemetry. Never an input to promo eligibility."
    },
    "FingerprintProof": {
      "properties": {
        "version": {
          "type": "string",
          "const": "fingerprint-v4",
          "title": "Version",
          "default": "fingerprint-v4"
        },
        "challenge": {
          "type": "string",
          "maxLength": 256,
          "title": "Challenge"
        },
        "eventId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9._-]{8,128}$",
          "title": "Eventid"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "challenge",
        "eventId"
      ],
      "title": "FingerprintProof"
    },
    "LegalAcceptanceChoice": {
      "properties": {
        "accepted": {
          "type": "boolean",
          "title": "Accepted"
        },
        "termsVersion": {
          "type": "string",
          "maxLength": 64,
          "minLength": 1,
          "title": "Termsversion"
        },
        "privacyVersion": {
          "type": "string",
          "maxLength": 64,
          "minLength": 1,
          "title": "Privacyversion"
        },
        "locale": {
          "type": "string",
          "enum": [
            "en",
            "zh",
            "ja",
            "ko",
            "zh-Hant",
            "de"
          ],
          "title": "Locale"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "accepted",
        "termsVersion",
        "privacyVersion",
        "locale"
      ],
      "title": "LegalAcceptanceChoice"
    },
    "RegistrationAttribution": {
      "properties": {
        "acquisition": {
          "anyOf": [
            {
              "$ref": "#/$defs/AcquisitionContext"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_surface": {
          "type": "string",
          "enum": [
            "public_marketing",
            "documentation",
            "app_entry"
          ],
          "title": "Source Surface"
        },
        "acquisition_channel": {
          "type": "string",
          "enum": [
            "organic_search",
            "paid_search",
            "email",
            "social",
            "referral",
            "internal",
            "direct",
            "unknown"
          ],
          "title": "Acquisition Channel"
        },
        "acquisition_surface": {
          "type": "string",
          "enum": [
            "web_citation",
            "web_search",
            "web_campaign",
            "web_referral",
            "direct",
            "internal",
            "unknown"
          ],
          "title": "Acquisition Surface"
        },
        "ai_referrer": {
          "type": "string",
          "enum": [
            "chatgpt",
            "claude",
            "perplexity",
            "gemini",
            "copilot",
            "yandex_alice",
            "other_ai",
            "none"
          ],
          "title": "Ai Referrer"
        },
        "is_organic_search": {
          "type": "boolean",
          "title": "Is Organic Search"
        },
        "landing_path": {
          "type": "string",
          "maxLength": 512,
          "minLength": 1,
          "title": "Landing Path"
        },
        "landing_referrer_host": {
          "type": "string",
          "maxLength": 253,
          "title": "Landing Referrer Host",
          "default": ""
        },
        "captured_at": {
          "type": "string",
          "maxLength": 40,
          "minLength": 20,
          "title": "Captured At"
        },
        "cta_placement": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 80,
              "minLength": 1,
              "pattern": "^[a-zA-Z0-9._~-]+$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cta Placement"
        },
        "cta_intent": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "signup",
                "start_generation"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Cta Intent"
        },
        "destination": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 512,
              "minLength": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Destination"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "source_surface",
        "acquisition_channel",
        "acquisition_surface",
        "ai_referrer",
        "is_organic_search",
        "landing_path",
        "captured_at"
      ],
      "title": "RegistrationAttribution",
      "description": "Privacy-safe, allowlisted web acquisition context for a new account."
    },
    "ResearchConsentChoice": {
      "properties": {
        "optIn": {
          "type": "boolean",
          "title": "Optin"
        },
        "version": {
          "type": "string",
          "maxLength": 64,
          "title": "Version"
        },
        "locale": {
          "type": "string",
          "enum": [
            "en",
            "zh",
            "ja",
            "ko",
            "zh-Hant",
            "de"
          ],
          "title": "Locale"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "optIn",
        "version",
        "locale"
      ],
      "title": "ResearchConsentChoice"
    }
  }
}