{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autoshort-org/json-schema/autoshort-org-draft-view-schema.json",
  "title": "DraftView",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autoshort-org-openapi.json#/components/schemas/DraftView",
  "type": "object",
  "properties": {
    "draftId": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "language": {
      "type": "string"
    },
    "artStyle": {
      "type": "string"
    },
    "aspectRatio": {
      "type": [
        "string",
        "null"
      ]
    },
    "targetDuration": {
      "type": [
        "integer",
        "null"
      ]
    },
    "estimatedDurationSeconds": {
      "type": "number"
    },
    "estimatedCredits": {
      "type": "integer",
      "description": "What rendering this draft will cost."
    },
    "narrationIsVerbatim": {
      "type": "boolean",
      "const": true
    },
    "scenes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "scene": {
            "type": "integer"
          },
          "narration": {
            "type": "string"
          },
          "visual": {
            "type": [
              "string",
              "null"
            ]
          },
          "seconds": {
            "type": "number"
          },
          "words": {
            "type": "integer"
          },
          "estimatedSeconds": {
            "type": "number"
          },
          "imageSource": {
            "type": "string"
          },
          "autoImagePrompt": {
            "type": "string"
          }
        }
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "DURATION_MISMATCH",
              "SCENE_TIMING",
              "LONG_NARRATION"
            ]
          },
          "message": {
            "type": "string"
          },
          "scene": {
            "type": "integer"
          },
          "suggestedWords": {
            "type": "integer"
          }
        }
      }
    },
    "nextStep": {
      "type": "string"
    }
  }
}