{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clarify/json-schema/clarify-init-recording-media-dto-schema.json",
  "title": "InitRecordingMediaDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clarify-meetingrecordings-api-openapi.yml#/components/schemas/InitRecordingMediaDto",
  "type": "object",
  "properties": {
    "recordingId": {
      "type": "string",
      "format": "uuid",
      "description": "A completed manual-upload recording to overwrite. When omitted, a new recording is created on the meeting. Only the artifacts supplied in this request are overwritten; other stored artifacts are left intact."
    },
    "contentType": {
      "type": "string",
      "pattern": "^(audio|video)\\/",
      "description": "The MIME type of the media file to upload; must be an `audio/*` or `video/*` type. Uploaded media is stored for playback and is not transcribed."
    },
    "transcript": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "words": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string",
                  "description": "The transcribed word."
                },
                "start_timestamp": {
                  "type": "number",
                  "description": "The start time of the word, in seconds from the beginning of the recording."
                },
                "end_timestamp": {
                  "type": "number",
                  "description": "The end time of the word, in seconds from the beginning of the recording."
                },
                "language": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The detected language of the word as an ISO code, or `null` if unknown."
                },
                "confidence": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "The transcription confidence for the word, from 0 to 1, or `null` if unavailable."
                }
              },
              "required": [
                "text",
                "start_timestamp",
                "end_timestamp",
                "language",
                "confidence"
              ]
            },
            "description": "The words spoken in this segment."
          },
          "speaker": {
            "type": [
              "string",
              "null"
            ],
            "description": "The display name of the speaker, or `null` if unattributed."
          },
          "speaker_id": {
            "type": [
              "number",
              "null"
            ],
            "description": "The numeric ID of the speaker, or `null` if unattributed."
          },
          "language": {
            "type": "string",
            "description": "The primary language of the segment as an ISO code."
          }
        },
        "required": [
          "words",
          "speaker",
          "speaker_id",
          "language"
        ]
      },
      "description": "An optional transcript to attach to the same recording as the media, so one recording carries both. Applied to the recording when the upload is confirmed, then used to generate the summary."
    }
  },
  "required": [
    "contentType"
  ]
}