{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/carbon-arc/json-schema/carbon-arc-transcript-detail-item-schema.json",
  "title": "TranscriptDetailItem",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/carbon-arc-transcripts-api-openapi.yml#/components/schemas/TranscriptDetailItem",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "interview_date": {
      "type": "string",
      "format": "date",
      "title": "Interview Date"
    },
    "duration_minutes": {
      "type": "integer",
      "title": "Duration Minutes"
    },
    "transcript_type": {
      "type": "string",
      "title": "Transcript Type"
    },
    "language": {
      "type": "string",
      "title": "Language"
    },
    "region": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Region"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "published_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Published At"
    },
    "entities": {
      "items": {
        "$ref": "#/$defs/TranscriptEntity"
      },
      "type": "array",
      "title": "Entities"
    },
    "is_purchased": {
      "type": "boolean",
      "title": "Is Purchased"
    },
    "price": {
      "type": "number",
      "title": "Price"
    },
    "expert_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expert Id"
    }
  },
  "type": "object",
  "required": [
    "id",
    "title",
    "interview_date",
    "duration_minutes",
    "transcript_type",
    "language",
    "is_purchased",
    "price"
  ],
  "$defs": {
    "TranscriptEntity": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "entity_representation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Entity Representation"
        },
        "entity_representation_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Entity Representation Label"
        }
      },
      "type": "object",
      "required": [
        "id",
        "label"
      ],
      "title": "TranscriptEntity",
      "description": "Ontology entity tag from the upload UI — identifier + display label.\n\n``entity_representation``/``entity_representation_label`` (naming matches\n``EntityResponseItem`` in ``schemas/ontology.py``) are populated from the\nstored entity when present, otherwise read from the resident ``entity_store``\nsnapshot — no per-request Neo4j call. Null when neither source provides the\nrepresentation (store unavailable, id not found) (PRO-3002)."
    }
  }
}