{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://atlas.local/schemas/streaming-event.schema.json",
  "title": "Atlas streaming event record",
  "type": "object",
  "required": [
    "provider",
    "api",
    "event",
    "direction"
  ],
  "properties": {
    "provider": {
      "enum": [
        "openai",
        "anthropic",
        "xai",
        "gemini"
      ]
    },
    "api": {
      "type": "string",
      "description": "responses | chat_completions | realtime | live | transcription | images | agents | messages | managed_agents | batches"
    },
    "direction": {
      "type": "string",
      "description": "server\u2192client | client\u2192server | server\u2192client (webhook) | bidirectional"
    },
    "event": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "schema": {},
    "example": {},
    "order_hint": {
      "type": [
        "string",
        "integer",
        "null"
      ]
    },
    "status": {
      "type": [
        "array",
        "null"
      ]
    },
    "source": {
      "type": [
        "string",
        "object",
        "array",
        "null"
      ]
    }
  }
}
