{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prizmad-com/json-schema/prizmad-com-video-status-schema.json",
  "title": "VideoStatus",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prizmad-com-openapi.json#/components/schemas/VideoStatus",
  "type": "object",
  "properties": {
    "videoId": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "parsing",
        "parsed",
        "scripting",
        "script_ready",
        "generating",
        "compositing",
        "completed",
        "failed"
      ]
    },
    "progress": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "videoUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "thumbnailUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "steps": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "step": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "running",
              "completed",
              "failed"
            ]
          }
        }
      }
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "completedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "errorMessage": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}