{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/magicslides-app/json-schema/magicslides-app-presentation-result-schema.json",
  "title": "PresentationResult",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/magicslides-app-openapi.json#/components/schemas/PresentationResult",
  "type": "object",
  "required": [
    "status",
    "url"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "success",
        "failed"
      ]
    },
    "success": {
      "type": "boolean"
    },
    "message": {
      "type": "string"
    },
    "inputType": {
      "type": "string",
      "enum": [
        "topic",
        "summary",
        "youtube",
        "website",
        "pdf",
        "docx"
      ]
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Download URL of the generated PPTX."
    },
    "pdfUrl": {
      "type": "string",
      "format": "uri",
      "description": "Download URL of the PDF export."
    },
    "pptId": {
      "type": "string",
      "description": "Presentation ID — open at https://www.magicslides.app/ppt/{pptId}."
    },
    "json": {
      "type": "object",
      "description": "Slide-by-slide content as JSON."
    },
    "metadata": {
      "type": "object",
      "properties": {
        "slideCount": {
          "type": "integer"
        },
        "generatedAt": {
          "type": "string",
          "format": "date-time"
        },
        "fileSize": {
          "type": "integer",
          "description": "Bytes."
        }
      }
    }
  }
}