{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scribiz/json-schema/scribiz-upload-schema.json",
  "title": "Upload",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scribiz-uploads-api-openapi.yml#/components/schemas/Upload",
  "properties": {
    "bytes": {
      "type": "integer"
    },
    "duration_seconds": {
      "type": [
        "number",
        "null"
      ]
    },
    "expires_at": {
      "type": "integer"
    },
    "file_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "has_audio": {
      "type": "boolean"
    },
    "has_video": {
      "type": "boolean"
    },
    "mime": {
      "type": [
        "string",
        "null"
      ]
    },
    "offset": {
      "type": "integer"
    },
    "reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "sha256": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "enum": [
        "receiving",
        "probing",
        "ready",
        "failed"
      ]
    },
    "upload_id": {
      "type": "string"
    }
  },
  "required": [
    "upload_id",
    "status",
    "offset",
    "bytes",
    "has_audio",
    "has_video",
    "expires_at"
  ],
  "type": "object"
}