{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vidnotes-app/json-schema/vidnotes-app-video-analyze-response-output-schema.json",
  "title": "VideoAnalyzeResponse",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vidnotes-app-openapi.json#/components/schemas/VideoAnalyzeResponse-Output",
  "properties": {
    "status": {
      "type": "string",
      "const": "completed",
      "title": "Status",
      "default": "completed"
    },
    "video": {
      "$ref": "#/$defs/VideoSource"
    },
    "transcript": {
      "anyOf": [
        {
          "$ref": "#/$defs/TranscriptPayload"
        },
        {
          "type": "null"
        }
      ]
    },
    "summary": {
      "anyOf": [
        {
          "$ref": "#/$defs/SummaryPayload"
        },
        {
          "type": "null"
        }
      ]
    },
    "chapters": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/ChapterPayload"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Chapters"
    },
    "studyGuide": {
      "anyOf": [
        {
          "$ref": "#/$defs/StudyGuidePayload"
        },
        {
          "type": "null"
        }
      ]
    },
    "faq": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/FAQItemPayload"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Faq"
    },
    "glossary": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/GlossaryTermPayload"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Glossary"
    },
    "quotes": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/QuotePayloadItem"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Quotes"
    },
    "moments": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/MomentCandidatePayload"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Moments"
    },
    "timeline": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/TimelineEventPayload"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Timeline"
    },
    "structuredNotes": {
      "anyOf": [
        {
          "$ref": "#/$defs/StructuredNotesPayload"
        },
        {
          "type": "null"
        }
      ]
    },
    "actionItems": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/ActionItemPayload"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Actionitems"
    },
    "flashcards": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/FlashcardPayload"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Flashcards"
    },
    "quizzes": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/QuizQuestionPayload"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Quizzes"
    }
  },
  "type": "object",
  "required": [
    "video"
  ],
  "$defs": {
    "ActionItemPayload": {
      "properties": {
        "text": {
          "type": "string",
          "title": "Text"
        },
        "priority": {
          "type": "string",
          "title": "Priority",
          "default": "normal"
        },
        "timestamp": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Timestamp"
        }
      },
      "type": "object",
      "required": [
        "text"
      ],
      "title": "ActionItemPayload"
    },
    "ChapterPayload": {
      "properties": {
        "start": {
          "type": "number",
          "title": "Start"
        },
        "end": {
          "type": "number",
          "title": "End"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "summary": {
          "type": "string",
          "title": "Summary"
        }
      },
      "type": "object",
      "required": [
        "start",
        "end",
        "title",
        "summary"
      ],
      "title": "ChapterPayload"
    },
    "FAQItemPayload": {
      "properties": {
        "question": {
          "type": "string",
          "title": "Question"
        },
        "answer": {
          "type": "string",
          "title": "Answer"
        }
      },
      "type": "object",
      "required": [
        "question",
        "answer"
      ],
      "title": "FAQItemPayload"
    },
    "FlashcardPayload": {
      "properties": {
        "question": {
          "type": "string",
          "title": "Question"
        },
        "answer": {
          "type": "string",
          "title": "Answer"
        },
        "sourceText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sourcetext"
        },
        "timestamp": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Timestamp"
        },
        "difficulty": {
          "type": "string",
          "title": "Difficulty",
          "default": "normal"
        }
      },
      "type": "object",
      "required": [
        "question",
        "answer"
      ],
      "title": "FlashcardPayload"
    },
    "GlossaryTermPayload": {
      "properties": {
        "term": {
          "type": "string",
          "title": "Term"
        },
        "definition": {
          "type": "string",
          "title": "Definition"
        },
        "timestamp": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Timestamp"
        }
      },
      "type": "object",
      "required": [
        "term",
        "definition"
      ],
      "title": "GlossaryTermPayload"
    },
    "MomentCandidatePayload": {
      "properties": {
        "kind": {
          "type": "string",
          "title": "Kind"
        },
        "text": {
          "type": "string",
          "title": "Text"
        },
        "start": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Start"
        },
        "end": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "End"
        },
        "reason": {
          "type": "string",
          "title": "Reason"
        },
        "provenance": {
          "type": "string",
          "title": "Provenance"
        }
      },
      "type": "object",
      "required": [
        "kind",
        "text",
        "reason",
        "provenance"
      ],
      "title": "MomentCandidatePayload"
    },
    "PlatformTranscriptSegment": {
      "properties": {
        "start": {
          "type": "number",
          "title": "Start"
        },
        "end": {
          "type": "number",
          "title": "End"
        },
        "text": {
          "type": "string",
          "title": "Text"
        },
        "words": {
          "items": {
            "type": "object"
          },
          "type": "array",
          "title": "Words"
        }
      },
      "type": "object",
      "required": [
        "start",
        "end",
        "text"
      ],
      "title": "PlatformTranscriptSegment"
    },
    "QuizQuestionPayload": {
      "properties": {
        "question": {
          "type": "string",
          "title": "Question"
        },
        "options": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Options"
        },
        "correctIndex": {
          "type": "integer",
          "title": "Correctindex",
          "default": 0
        },
        "explanation": {
          "type": "string",
          "title": "Explanation",
          "default": ""
        },
        "sourceText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sourcetext"
        },
        "timestamp": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Timestamp"
        },
        "difficulty": {
          "type": "string",
          "title": "Difficulty",
          "default": "normal"
        },
        "questionType": {
          "type": "string",
          "title": "Questiontype",
          "default": "multiple_choice"
        }
      },
      "type": "object",
      "required": [
        "question",
        "options"
      ],
      "title": "QuizQuestionPayload"
    },
    "QuotePayloadItem": {
      "properties": {
        "text": {
          "type": "string",
          "title": "Text"
        },
        "start": {
          "type": "number",
          "title": "Start"
        },
        "end": {
          "type": "number",
          "title": "End"
        },
        "reason": {
          "type": "string",
          "title": "Reason"
        }
      },
      "type": "object",
      "required": [
        "text",
        "start",
        "end",
        "reason"
      ],
      "title": "QuotePayloadItem"
    },
    "StructuredNotesPayload": {
      "properties": {
        "title": {
          "type": "string",
          "title": "Title"
        },
        "markdown": {
          "type": "string",
          "title": "Markdown"
        }
      },
      "type": "object",
      "required": [
        "title",
        "markdown"
      ],
      "title": "StructuredNotesPayload"
    },
    "StudyGuidePayload": {
      "properties": {
        "title": {
          "type": "string",
          "title": "Title"
        },
        "sections": {
          "items": {
            "$ref": "#/$defs/StudyGuideSectionPayload"
          },
          "type": "array",
          "title": "Sections"
        },
        "reviewQuestions": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Reviewquestions"
        }
      },
      "type": "object",
      "required": [
        "title"
      ],
      "title": "StudyGuidePayload"
    },
    "StudyGuideSectionPayload": {
      "properties": {
        "heading": {
          "type": "string",
          "title": "Heading"
        },
        "contentMarkdown": {
          "type": "string",
          "title": "Contentmarkdown"
        }
      },
      "type": "object",
      "required": [
        "heading",
        "contentMarkdown"
      ],
      "title": "StudyGuideSectionPayload"
    },
    "SummaryPayload": {
      "properties": {
        "short": {
          "type": "string",
          "title": "Short"
        },
        "keyPoints": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Keypoints"
        },
        "actionItems": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Actionitems"
        },
        "quotes": {
          "items": {
            "type": "object"
          },
          "type": "array",
          "title": "Quotes"
        },
        "topics": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Topics"
        }
      },
      "type": "object",
      "required": [
        "short"
      ],
      "title": "SummaryPayload"
    },
    "TimelineEventPayload": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label"
        },
        "description": {
          "type": "string",
          "title": "Description",
          "default": ""
        },
        "timestamp": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Timestamp"
        }
      },
      "type": "object",
      "required": [
        "label"
      ],
      "title": "TimelineEventPayload"
    },
    "TranscriptPayload": {
      "properties": {
        "language": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Language"
        },
        "text": {
          "type": "string",
          "title": "Text"
        },
        "segments": {
          "items": {
            "$ref": "#/$defs/PlatformTranscriptSegment"
          },
          "type": "array",
          "title": "Segments"
        }
      },
      "type": "object",
      "required": [
        "text"
      ],
      "title": "TranscriptPayload"
    },
    "VideoSource": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "sourceUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sourceurl"
        },
        "sourceType": {
          "type": "string",
          "title": "Sourcetype",
          "default": "unknown"
        },
        "transcriptProvider": {
          "type": "string",
          "title": "Transcriptprovider",
          "default": "unknown"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "author": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Author"
        },
        "durationSeconds": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Durationseconds"
        },
        "publishedAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Publishedat"
        }
      },
      "type": "object",
      "required": [
        "id"
      ],
      "title": "VideoSource"
    }
  }
}