{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usewrit-app/json-schema/usewrit-app-ws-ticket-request-schema.json",
  "title": "WsTicketRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usewrit-app-ws-ticket-api-openapi.yml#/components/schemas/WsTicketRequest",
  "type": "object",
  "required": [
    "route"
  ],
  "properties": {
    "route": {
      "type": "string",
      "enum": [
        "record",
        "ai-preview"
      ],
      "description": "The WebSocket route the ticket is scoped to."
    },
    "channel": {
      "type": [
        "string",
        "null"
      ],
      "description": "The `ai-preview` channel key (`ai-{id}` / `concierge-{id}` / `streaming-{key}`). REQUIRED for `ai-preview`; ignored for `record`."
    }
  }
}