{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alert-camp/json-schema/alert-camp-firebase-session-request-schema.json",
  "title": "FirebaseSessionRequest",
  "description": "Schema for the web app's social sign-in.\n\nThe browser signs in with the Firebase JS SDK (Google/Apple/Facebook\npopup) and hands the resulting Firebase session to the backend, which\nprovisions the user exactly like the mobile social endpoints do.",
  "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/FirebaseSessionRequest",
  "properties": {
    "id_token": {
      "type": "string",
      "minLength": 1,
      "title": "Id Token",
      "description": "Firebase ID token"
    },
    "refresh_token": {
      "type": "string",
      "minLength": 1,
      "title": "Refresh Token",
      "description": "Firebase refresh token"
    },
    "language": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(fr|en|es|zh|pt|it|ht|ro|vi|el|tl|ru|hi|ko|pa|pl|de)$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Language"
    }
  },
  "type": "object",
  "required": [
    "id_token",
    "refresh_token"
  ]
}