{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scribetoany-com/json-schema/scribetoany-com-transcription-schema.json",
  "title": "Transcription",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scribetoany-com-openapi.json#/components/schemas/Transcription",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "transcribing",
        "done",
        "failed"
      ]
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    },
    "language": {
      "type": [
        "string",
        "null"
      ]
    },
    "durationSec": {
      "type": [
        "number",
        "null"
      ]
    },
    "planLimit": {
      "description": "Set when only the start of the file was transcribed because of the plan's per-file limit.",
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "object",
          "properties": {
            "transcribedSec": {
              "type": "number"
            },
            "fullDurationSec": {
              "type": "number"
            },
            "message": {
              "type": "string"
            }
          }
        }
      ]
    },
    "sourceType": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The transcript page on scribetoany.com."
    }
  },
  "required": [
    "id",
    "name",
    "status",
    "createdAt",
    "url"
  ]
}