{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beatapi/json-schema/beatapi-shot-media-schema.json",
  "title": "ShotMedia",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beatapi-music-video-api-openapi.yml#/components/schemas/ShotMedia",
  "type": "object",
  "required": [
    "object",
    "task_id",
    "shot_id",
    "index",
    "status",
    "media",
    "created_at",
    "updated_at",
    "request_id"
  ],
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "shot_media"
      ]
    },
    "task_id": {
      "type": "string"
    },
    "shot_id": {
      "type": "string"
    },
    "index": {
      "type": "integer"
    },
    "status": {
      "$ref": "#/$defs/TaskStatus"
    },
    "media": {
      "type": "object",
      "required": [
        "type",
        "url",
        "mime_type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "video"
          ]
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "mime_type": {
          "type": "string"
        }
      }
    },
    "created_at": {
      "type": "integer"
    },
    "updated_at": {
      "type": "integer"
    },
    "request_id": {
      "type": "string"
    }
  },
  "$defs": {
    "TaskStatus": {
      "type": "string",
      "enum": [
        "queued",
        "processing",
        "storyboard_ready",
        "requires_action",
        "editing",
        "composing",
        "succeeded",
        "failed"
      ]
    }
  }
}