{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CallTranscript",
  "title": "CallTranscript",
  "type": "object",
  "properties": {
    "callId": {
      "type": "string",
      "description": "The call ID this transcript belongs to."
    },
    "transcript": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "speakerId": {
            "type": "string",
            "description": "ID of the speaker."
          },
          "topic": {
            "type": "string",
            "description": "Topic of the segment."
          },
          "sentences": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "start": {
                  "type": "number",
                  "description": "Start time in seconds."
                },
                "end": {
                  "type": "number",
                  "description": "End time in seconds."
                },
                "text": {
                  "type": "string",
                  "description": "The transcribed text."
                }
              }
            }
          }
        }
      },
      "description": "Transcript segments with speaker and timing data."
    }
  }
}