{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alert-camp/json-schema/alert-camp-direct-token-response-schema.json",
  "title": "DirectTokenResponse",
  "description": "Response containing Firebase tokens for direct auth (no SDK needed).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alert-camp-auth-api-openapi.yml#/components/schemas/DirectTokenResponse",
  "properties": {
    "id_token": {
      "type": "string",
      "title": "Id Token"
    },
    "refresh_token": {
      "type": "string",
      "title": "Refresh Token"
    },
    "user_id": {
      "type": "string",
      "title": "User Id"
    },
    "email": {
      "type": "string",
      "title": "Email"
    },
    "display_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Display Name"
    },
    "email_verified": {
      "type": "boolean",
      "title": "Email Verified",
      "default": false
    },
    "terms_accepted": {
      "type": "boolean",
      "title": "Terms Accepted",
      "default": false
    },
    "terms_previously_accepted": {
      "type": "boolean",
      "title": "Terms Previously Accepted",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "id_token",
    "refresh_token",
    "user_id",
    "email"
  ]
}