{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cloudflare/main/json-schema/cloudflare-video-list-response-schema.json",
  "title": "VideoListResponse",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudflare-videos-api-openapi.yml#/components/schemas/VideoListResponse",
  "type": "object",
  "properties": {
    "result": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Video"
      }
    },
    "success": {
      "type": "boolean"
    }
  },
  "$defs": {
    "Video": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string",
          "description": "The unique identifier of the video."
        },
        "thumbnail": {
          "type": "string",
          "format": "uri",
          "description": "URL of the video thumbnail."
        },
        "playback": {
          "type": "object",
          "properties": {
            "hls": {
              "type": "string",
              "format": "uri",
              "description": "HLS playback URL."
            },
            "dash": {
              "type": "string",
              "format": "uri",
              "description": "DASH playback URL."
            }
          }
        },
        "status": {
          "type": "object",
          "properties": {
            "state": {
              "type": "string",
              "enum": [
                "pendingupload",
                "downloading",
                "queued",
                "inprogress",
                "ready",
                "error"
              ]
            },
            "pctComplete": {
              "type": "string"
            }
          }
        },
        "meta": {
          "type": "object",
          "description": "User-defined metadata."
        },
        "created": {
          "type": "string",
          "format": "date-time"
        },
        "modified": {
          "type": "string",
          "format": "date-time"
        },
        "duration": {
          "type": "number",
          "description": "Duration of the video in seconds."
        },
        "size": {
          "type": "integer",
          "description": "Size of the video in bytes."
        },
        "requireSignedURLs": {
          "type": "boolean"
        },
        "allowedOrigins": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}