{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lumdeck-com/json-schema/lumdeck-com-presentation-schema.json",
  "title": "Presentation",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lumdeck-com-openapi.json#/components/schemas/Presentation",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "appUrl": {
      "type": "string",
      "format": "uri"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "versionCount": {
      "type": "integer"
    },
    "current": {
      "oneOf": [
        {
          "$ref": "#/$defs/Version"
        },
        {
          "type": "null"
        }
      ]
    },
    "latest": {
      "oneOf": [
        {
          "$ref": "#/$defs/Version"
        },
        {
          "type": "null"
        }
      ]
    },
    "preview": {
      "type": "object",
      "description": "The deck picture: an uploaded cover, else a screenshot of slide 1 of the current version. Fetch `url` with the same API key.",
      "properties": {
        "url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "source": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "cover",
            "screenshot",
            null
          ]
        },
        "screenshot": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "pending",
            "ready",
            "failed",
            null
          ]
        }
      }
    }
  },
  "$defs": {
    "Version": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "number": {
          "type": "integer"
        },
        "status": {
          "type": "string",
          "enum": [
            "processing",
            "ready",
            "rejected"
          ]
        },
        "progress": {
          "type": "object",
          "properties": {
            "done": {
              "type": "integer"
            },
            "total": {
              "type": "integer"
            }
          }
        },
        "filename": {
          "type": "string"
        },
        "sizeBytes": {
          "type": "integer"
        },
        "fileCount": {
          "type": "integer"
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "readyAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "issues": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "path": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            }
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}