{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gen-pro/json-schema/gen-pro-transcription-data-schema.json",
  "title": "TranscriptionData",
  "description": "The source to transcribe. Pass exactly one of `audio`, `video`, or\n`content_resource_id`. `audio` and `video` are mutually exclusive;\n`trim` may accompany either.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gen-pro-generations-api-openapi.yml#/components/schemas/TranscriptionData",
  "type": "object",
  "oneOf": [
    {
      "type": "object",
      "required": [
        "audio"
      ],
      "additionalProperties": false,
      "properties": {
        "audio": {
          "$ref": "#/$defs/TranscriptionSource"
        },
        "trim": {
          "$ref": "#/$defs/TranscriptionTrim"
        }
      }
    },
    {
      "type": "object",
      "required": [
        "video"
      ],
      "additionalProperties": false,
      "properties": {
        "video": {
          "$ref": "#/$defs/TranscriptionSource"
        },
        "trim": {
          "$ref": "#/$defs/TranscriptionTrim"
        }
      }
    },
    {
      "type": "object",
      "required": [
        "content_resource_id"
      ],
      "properties": {
        "content_resource_id": {
          "type": "string",
          "description": "ID of an audio or video content resource already uploaded to the agent."
        }
      }
    }
  ],
  "$defs": {
    "TranscriptionSource": {
      "type": "object",
      "required": [
        "value"
      ],
      "properties": {
        "value": {
          "type": "string",
          "format": "uri",
          "description": "Publicly reachable URL of the media to transcribe."
        },
        "key": {
          "type": "string",
          "description": "Optional storage key for the media."
        }
      }
    },
    "TranscriptionTrim": {
      "type": "object",
      "required": [
        "start_seconds",
        "duration_seconds"
      ],
      "description": "Transcribe only part of the source.",
      "properties": {
        "start_seconds": {
          "type": "number",
          "minimum": 0,
          "description": "Offset to start transcribing from."
        },
        "duration_seconds": {
          "type": "number",
          "exclusiveMinimum": 0,
          "description": "How many seconds to transcribe."
        }
      }
    }
  }
}