{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clypmint-com/json-schema/clypmint-com-video-status-schema.json",
  "title": "VideoStatus",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clypmint-com-openapi.yml#/components/schemas/VideoStatus",
  "type": "object",
  "properties": {
    "import_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "video_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "title": {
      "type": "string"
    },
    "state": {
      "type": "string",
      "enum": [
        "waiting",
        "uploading",
        "editing",
        "ready",
        "failed"
      ],
      "description": "waiting: the private upload link is open. uploading: the video is arriving. editing: Clypmint is editing it."
    },
    "progress": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "duration": {
      "type": [
        "number",
        "null"
      ]
    },
    "ready": {
      "type": "boolean"
    },
    "problem": {
      "type": [
        "string",
        "null"
      ]
    },
    "next_step": {
      "type": "string",
      "description": "For a failed video: what to do now."
    },
    "message": {
      "type": "string"
    },
    "upload_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Open in a browser, or upload to it, to send the video. Works once, for 15 minutes."
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "studio_url": {
      "type": "string",
      "format": "uri"
    },
    "share_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "A public page for the video; null until Clypmint has public pages."
    },
    "cost": {
      "$ref": "#/$defs/Cost"
    },
    "media": {
      "$ref": "#/$defs/Media"
    }
  },
  "required": [
    "state",
    "ready"
  ],
  "$defs": {
    "Cost": {
      "type": "object",
      "properties": {
        "credits": {
          "type": [
            "number",
            "null"
          ],
          "description": "Null until the footage length is known."
        },
        "how": {
          "type": "string"
        }
      }
    },
    "Media": {
      "type": "object",
      "description": "Signed links that expire. Fetch them again with GET /videos/{id}.",
      "properties": {
        "playback_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "download_url": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}