{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/quillhub-ai/json-schema/quillhub-ai-public-transcript-response-schema.json",
  "title": "PublicTranscriptResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/quillhub-ai-openapi.json#/components/schemas/PublicTranscriptResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "duration_seconds": {
      "type": [
        "number",
        "null"
      ]
    },
    "language": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "share_enabled_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "result": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "segments": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "start": {
                "type": "number"
              },
              "end": {
                "type": "number"
              },
              "text": {
                "type": "string"
              },
              "speaker": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "start",
              "end",
              "text"
            ]
          }
        },
        "structured": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "title": {
              "type": [
                "string",
                "null"
              ]
            },
            "summary": {
              "type": [
                "string",
                "null"
              ]
            },
            "language": {
              "type": [
                "string",
                "null"
              ]
            },
            "toc": {
              "type": "array",
              "items": {
                "nullable": true
              }
            },
            "chapters": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "start_time": {
                    "type": "number"
                  },
                  "title": {
                    "type": "string"
                  },
                  "summary": {
                    "type": "string"
                  },
                  "paragraphs": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {
                            "nullable": true
                          }
                        }
                      ]
                    }
                  }
                }
              }
            },
            "paragraphs": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "start_time": {
                    "type": "number"
                  },
                  "paragraph_text": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string"
                  }
                }
              }
            },
            "highlights": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "key_theses": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "terms": {
              "type": "array",
              "items": {
                "nullable": true
              }
            },
            "action_items": {
              "type": "array",
              "items": {
                "nullable": true
              }
            },
            "decisions": {
              "type": "array",
              "items": {
                "nullable": true
              }
            },
            "topics": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "chat_suggestions": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "toc",
            "chapters",
            "paragraphs",
            "highlights",
            "key_theses",
            "terms",
            "action_items",
            "decisions",
            "topics"
          ]
        },
        "subtitles": {
          "type": "object",
          "properties": {
            "vtt": {
              "type": [
                "string",
                "null"
              ]
            },
            "srt": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "vtt",
            "srt"
          ]
        },
        "speakers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "label",
              "name"
            ]
          }
        }
      },
      "required": [
        "text",
        "segments",
        "structured",
        "subtitles"
      ]
    },
    "translations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "id",
    "title",
    "duration_seconds",
    "language",
    "created_at",
    "completed_at",
    "share_enabled_at",
    "result"
  ]
}