{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/insightsocial-app/json-schema/insightsocial-app-transcript-one-schema.json",
  "title": "TranscriptOne",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/insightsocial-app-openapi.json#/components/schemas/TranscriptOne",
  "type": "object",
  "properties": {
    "transcript": {
      "$ref": "#/$defs/Transcript"
    }
  },
  "required": [
    "transcript"
  ],
  "additionalProperties": false,
  "$defs": {
    "Transcript": {
      "type": "object",
      "properties": {
        "language": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 2,
              "description": "The content's language as the platform states it, e.g. en, pt-BR. Detected languages come later (§7.1)."
            },
            {
              "type": "null"
            }
          ]
        },
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "segments": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  },
                  "start_seconds": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "duration_seconds": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "text",
                  "start_seconds",
                  "duration_seconds"
                ],
                "additionalProperties": false
              }
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "language",
        "text",
        "segments"
      ],
      "additionalProperties": false
    }
  }
}