{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mediacaption-api/json-schema/mediacaption-api-transcript-response-schema.json",
  "title": "TranscriptResponse",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mediacaption-api-transcripts-api-openapi.yml#/components/schemas/TranscriptResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "transcriptionId",
    "source",
    "language",
    "durationSec",
    "expiresAt",
    "transcript",
    "creditsFrozen",
    "creditsCharged"
  ],
  "properties": {
    "transcriptionId": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "enum": [
        "public"
      ]
    },
    "language": {
      "type": "string"
    },
    "durationSec": {
      "type": "number"
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "transcript": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TranscriptSegment"
      }
    },
    "creditsFrozen": {
      "type": "integer"
    },
    "creditsCharged": {
      "type": "integer"
    }
  },
  "$defs": {
    "TranscriptSegment": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "startSec",
        "durationSec",
        "text"
      ],
      "properties": {
        "startSec": {
          "type": "number",
          "minimum": 0
        },
        "durationSec": {
          "type": "number",
          "minimum": 0
        },
        "text": {
          "type": "string"
        }
      }
    }
  }
}