{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hummingdeck/json-schema/hummingdeck-uploaded-document-schema.json",
  "title": "UploadedDocument",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hummingdeck-decks-api-openapi.yml#/components/schemas/UploadedDocument",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the document"
    },
    "title": {
      "type": "string",
      "description": "Document title"
    },
    "fileType": {
      "type": "string",
      "description": "MIME type of the document"
    },
    "processingStatus": {
      "type": "string",
      "enum": [
        "pending",
        "processing",
        "completed",
        "failed"
      ],
      "description": "Previewable uploads and replacements can return pending while processing continues. A download-only replacement returns completed. Check status before relying on the preview."
    },
    "processingErrorCode": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why processing failed, when processingStatus is failed."
    }
  },
  "required": [
    "id",
    "title",
    "fileType",
    "processingStatus",
    "processingErrorCode"
  ],
  "additionalProperties": false
}