{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/narrareach-com/json-schema/narrareach-com-create-transcript-request-schema.json",
  "title": "CreateTranscriptRequest",
  "description": "Send exactly one of url or uploadUrl. Strings are trimmed; null is the same as leaving a field out, and a string of only spaces is refused.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/narrareach-com-openapi.json#/components/schemas/CreateTranscriptRequest",
  "type": "object",
  "additionalProperties": false,
  "oneOf": [
    {
      "required": [
        "url"
      ],
      "properties": {
        "url": {
          "type": "string"
        }
      },
      "not": {
        "required": [
          "uploadUrl"
        ],
        "properties": {
          "uploadUrl": {
            "type": "string"
          }
        }
      }
    },
    {
      "required": [
        "uploadUrl"
      ],
      "properties": {
        "uploadUrl": {
          "type": "string"
        }
      },
      "not": {
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string"
          }
        }
      }
    }
  ],
  "properties": {
    "url": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 2048,
      "pattern": "\\S",
      "description": "A YouTube video, podcast feed or episode, Apple Podcasts link, or direct https link to an audio file."
    },
    "uploadUrl": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 2048,
      "pattern": "\\S",
      "description": "The URL of a file uploaded to Narrareach. Only its uploader can read the transcript."
    },
    "episode": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 500,
      "pattern": "\\S",
      "description": "For a podcast feed or show: the episode title or guid. Defaults to the latest episode."
    },
    "maxChars": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 500,
      "maximum": 400000,
      "description": "Characters of transcript text to return. Defaults to 60000."
    }
  }
}