{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elav8-ai/json-schema/elav8-ai-voice-token-schema.json",
  "title": "VoiceToken",
  "description": "Ephemeral credentials for the server-chosen realtime voice engine.",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fala-openapi.json#/components/schemas/VoiceToken",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "provider",
    "token",
    "conversationId"
  ],
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "grok",
        "gemini"
      ]
    },
    "model": {
      "type": "string"
    },
    "token": {
      "type": "string"
    },
    "greeting": {
      "type": "string"
    },
    "conversationId": {
      "type": "string"
    },
    "audio": {
      "type": "object",
      "additionalProperties": true
    },
    "failover": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "connectTimeoutMs": {
      "type": "integer"
    },
    "prefetchMaxAgeMs": {
      "type": "integer"
    }
  }
}