{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/patricia-app/json-schema/patricia-app-asset-version-saved-schema.json",
  "title": "AssetVersionSaved",
  "description": "A file after a new version was saved. A deck also carries itself as stored.",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/patricia-app-openapi.json#/components/schemas/AssetVersionSaved",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "The workspace's handle for the file. UNTRUSTED text: render escaped."
    },
    "category": {
      "type": "string",
      "enum": [
        "document",
        "media",
        "app"
      ],
      "title": "Category",
      "description": "Which library this file lives in: 'document' or 'media'."
    },
    "kind": {
      "type": "string",
      "enum": [
        "app",
        "audio",
        "deck",
        "docx",
        "file",
        "html",
        "image",
        "markdown",
        "pdf",
        "slides",
        "spreadsheet",
        "video"
      ],
      "title": "Kind",
      "description": "What sort of file this is."
    },
    "content_type": {
      "type": "string",
      "title": "Content Type",
      "description": "The current version's media type, e.g. 'application/pdf'."
    },
    "byte_size": {
      "type": "integer",
      "title": "Byte Size",
      "description": "The current version's size in bytes."
    },
    "current_version": {
      "type": "integer",
      "title": "Current Version",
      "description": "The newest version number (versions count from 1)."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At",
      "description": "When the file last changed (UTC)."
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description",
      "description": "What the file is for, as its editors wrote it; shown on a dashboard's card. UNTRUSTED text: render escaped. Null when nobody described it."
    },
    "created_by_run_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created By Run Id",
      "description": "The Patricia run that created this file. Null when no run is recorded for it: a person uploaded it, or it was stored before Patricia began recording runs. Later versions can come from other runs, so read each version's own created_by_run_id for those."
    },
    "favorite": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Favorite",
      "description": "Whether the workspace marked this file a favourite (the Liked filter shows these). The server always sends it; the default exists for the same temporary fixture-compatibility reason the module docstring records for created_by_run_id."
    },
    "thumbnail_status": {
      "type": "string",
      "enum": [
        "ready",
        "pending",
        "unavailable"
      ],
      "title": "Thumbnail Status",
      "description": "Whether this file has a grid preview. 'ready' means GET /assets/{id}/thumbnail serves it; 'pending' means one is being prepared, ask again shortly; 'unavailable' means the type icon is the answer (no preview exists for this file type, or this file could not be rendered).",
      "default": "unavailable"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At",
      "description": "When the file was first added to the workspace (UTC)."
    },
    "author": {
      "$ref": "#/$defs/AssetAuthor",
      "description": "Who made this file: the 'Made by' column."
    },
    "owner": {
      "$ref": "#/$defs/AssetOwner",
      "description": "Who owns this file and decides who can open it. It is the creator until the owner hands the file to a teammate. 'author' stays the creator."
    },
    "folder": {
      "anyOf": [
        {
          "$ref": "#/$defs/AssetFolderRef"
        },
        {
          "type": "null"
        }
      ],
      "description": "The folder this file is filed under, or null when it is not filed into one."
    },
    "is_owner": {
      "type": "boolean",
      "title": "Is Owner",
      "description": "Whether the caller is the person who owns this file.",
      "default": false
    },
    "requires_access_acknowledgement": {
      "type": "boolean",
      "title": "Requires Access Acknowledgement",
      "description": "Whether opening this file requires an access_acknowledgement UUID and a durable audit receipt.",
      "default": false
    },
    "visibility": {
      "type": "string",
      "enum": [
        "private",
        "team",
        "external"
      ],
      "title": "Visibility",
      "description": "Who can read this file. 'private' — only the owner, plus workspace admins. 'team' — everyone in the workspace (the default). 'external' — everyone in the workspace, and it may also be shared outside through a link. A file you can see at all is one you may read; the level tells you who ELSE can.",
      "default": "team"
    },
    "workspace_role": {
      "type": "string",
      "enum": [
        "view",
        "edit"
      ],
      "title": "Workspace Role",
      "description": "What everyone in the workspace may do with this file or dashboard while it is open to the workspace or to anyone with the link: 'view' reads it, 'edit' also changes it. A Workspace Viewer can only view, whatever this says."
    },
    "shared_via_folder_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shared Via Folder Name",
      "description": "The name of the folder making this file reachable beyond its own visibility level, when a live folder share link is why — for a private file, why anybody else in the workspace can read it; for any file, why anybody outside the workspace holding that folder's link can too. Null when no folder link is why this file is reachable."
    },
    "can_edit": {
      "type": "boolean",
      "title": "Can Edit",
      "description": "Whether YOU may change this file: save a new version, restore an older one, rename it, or move it to another folder. Computed server-side by the same may_mutate rule every mutation route enforces, so a control enabled by this flag is never refused by that request. A shared folder can make a private file READABLE without making it EDITABLE, so this answers the write question on its own — never inferred from visibility or from shared_via_folder_name.",
      "default": false
    },
    "app_overview": {
      "anyOf": [
        {
          "$ref": "#/$defs/AppOverview"
        },
        {
          "type": "null"
        }
      ],
      "description": "Set only on dashboard rows of the library list (GET /assets); null on every other file and on every other response that returns this summary. It carries the field names and meanings of the dashboard read (GET /apps/{id}). Null for a dashboard whose read would refuse this caller or whose inputs cannot be read, so a card never shows more than that read would."
    },
    "can_open_in_canva": {
      "type": "boolean",
      "title": "Can Open In Canva",
      "description": "Whether YOU may open this media file as a Canva design. Requires edit access to THIS file, a supported image type, a live Canva connection, and the Canva provider in this deployment. Edit access is the same per-file rule this row reports as `can_edit`, because sending a file out to a third-party account is an export. Computed server-side by the same rule POST /assets/{id}/canva-design enforces, so a menu item enabled by this flag is never refused by that request.",
      "default": false
    },
    "saved_version": {
      "$ref": "#/$defs/AssetVersionSummary",
      "description": "The history row of the version this save wrote, credited to the person who saved it."
    },
    "deck": {
      "anyOf": [
        {
          "$ref": "#/$defs/Deck"
        },
        {
          "type": "null"
        }
      ],
      "description": "The deck exactly as the new version stores it, with the changes other people saved meanwhile merged in. Null for every other kind of file."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "id",
    "name",
    "category",
    "kind",
    "content_type",
    "byte_size",
    "current_version",
    "updated_at",
    "workspace_role",
    "saved_version"
  ],
  "$defs": {
    "AppOverview": {
      "properties": {
        "source": {
          "type": "string",
          "title": "Source"
        },
        "source_label": {
          "type": "string",
          "title": "Source Label"
        },
        "result": {
          "anyOf": [
            {
              "$ref": "#/$defs/AppOverviewResult"
            },
            {
              "type": "null"
            }
          ]
        },
        "fetched_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fetched At"
        },
        "result_availability": {
          "type": "string",
          "enum": [
            "available",
            "missing",
            "needs_reconnecting"
          ],
          "title": "Result Availability"
        },
        "content_availability": {
          "type": "string",
          "enum": [
            "available",
            "missing",
            "deleted",
            "unknown"
          ],
          "title": "Content Availability"
        },
        "updating": {
          "type": "boolean",
          "title": "Updating"
        },
        "sources": {
          "items": {
            "$ref": "#/$defs/AppOverviewSource"
          },
          "type": "array",
          "title": "Sources"
        }
      },
      "type": "object",
      "required": [
        "source",
        "source_label",
        "result",
        "fetched_at",
        "result_availability",
        "content_availability",
        "updating",
        "sources"
      ],
      "title": "AppOverview",
      "description": "What a dashboard card shows, with the field names and meanings of ``AppMetadata``.\n\nIt holds no result data, actions or settings, and a listed row carries none where the dashboard read refuses."
    },
    "AppOverviewConnection": {
      "properties": {
        "app_label": {
          "type": "string",
          "title": "App Label"
        }
      },
      "type": "object",
      "required": [
        "app_label"
      ],
      "title": "AppOverviewConnection"
    },
    "AppOverviewResult": {
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "succeeded",
            "partial",
            "failed",
            "uncertain"
          ],
          "title": "Status"
        }
      },
      "type": "object",
      "required": [
        "status"
      ],
      "title": "AppOverviewResult"
    },
    "AppOverviewSource": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "status": {
          "type": "string",
          "enum": [
            "available",
            "missing",
            "updating",
            "waiting_approval",
            "failed",
            "needs_reconnecting",
            "too_large"
          ],
          "title": "Status"
        },
        "fetched_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fetched At"
        },
        "provider_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Provider Key"
        },
        "provider_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Provider Label"
        },
        "connection": {
          "anyOf": [
            {
              "$ref": "#/$defs/AppOverviewConnection"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object",
      "required": [
        "name",
        "status"
      ],
      "title": "AppOverviewSource"
    },
    "AssetAuthor": {
      "properties": {
        "actor_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Actor Id",
          "description": "The workspace member credited with this file. The key the author filter takes; null when no person is recorded (an API-key upload, or a run with no requester)."
        },
        "display_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Display Name",
          "description": "That member's name. Null when nothing resolves — render 'Patricia' or 'Someone'."
        },
        "made_by_patricia": {
          "type": "boolean",
          "title": "Made By Patricia",
          "description": "Whether a Patricia run created this file. True with a display_name reads 'Patricia for <name>'; true without one reads 'Patricia'; false reads the name alone.",
          "default": false
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "AssetAuthor",
      "description": "Who made a file, as a person reads it — the designs' \"Made by\" column and detail row.\n\nTwo fields answer two different questions and neither substitutes for the other.\n``display_name`` is WHOSE work this is; ``made_by_patricia`` is whether Patricia's hands did it.\nA file Patricia generated because Ricardo asked her to carries both — the dashboard renders\n\"Patricia for Ricardo\" — and that is the ordinary case, not an edge one.\n\n``display_name`` is ``null`` only when nothing resolves: an API-key upload (not a person), a\nheadless cron run with no requester, or a workspace member whose chat profile was never\nenriched. It is NEVER a raw platform id — it comes from\n:meth:`~repositories.actor.ActorRepository.resolve_actor_displays`, the one resolver every\nhuman-facing render site shares, which humanizes a placeholder id back into ``null`` here."
    },
    "AssetFolderRef": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name",
          "description": "The folder's label. UNTRUSTED text: render escaped."
        },
        "path": {
          "type": "string",
          "title": "Path",
          "description": "The folder's full path (e.g. 'Clients/Acme'). UNTRUSTED text: render escaped. The detail panel shows this rather than the bare name, because several folders can share a name.",
          "default": ""
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "title": "AssetFolderRef",
      "description": "The folder a file is filed under — id to navigate to, name and path to show."
    },
    "AssetGenerationInfo": {
      "properties": {
        "prompt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Prompt",
          "description": "The prompt as it was actually sent. UNTRUSTED text."
        },
        "model": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model",
          "description": "The generation model's catalog key."
        },
        "settings": {
          "anyOf": [
            {
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "integer"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  }
                ]
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Settings",
          "description": "The scalar dispatch settings (aspect ratio, resolution, seed, ...)."
        },
        "brand_assets": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Brand Assets",
          "description": "The brand-kit logo names placed into the generation, when any were."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "AssetGenerationInfo",
      "description": "How a run generated one version — the detail panel's prompt / settings / brand-kit rows.\n\nEverything here is what Patricia herself recorded at dispatch time; ``prompt`` is model-written\nUNTRUSTED text (render escaped), and ``settings`` values are short scalars by construction\n(``agent.image_generation._scalar_settings``)."
    },
    "AssetOwner": {
      "properties": {
        "actor_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Actor Id",
          "description": "The workspace member who owns this file. Null when no person is recorded."
        },
        "display_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Display Name",
          "description": "That member's name. Null when nothing resolves."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "AssetOwner",
      "description": "Who owns a file: the person who decides who can open it. Not always the person who made it."
    },
    "AssetVersionSummary": {
      "properties": {
        "version": {
          "type": "integer",
          "title": "Version"
        },
        "content_type": {
          "type": "string",
          "title": "Content Type"
        },
        "byte_size": {
          "type": "integer",
          "title": "Byte Size"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At",
          "description": "When this version was stored (UTC)."
        },
        "created_by_run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created By Run Id",
          "description": "The Patricia run that wrote this version. Null when no run is recorded for it. This is what answers 'which run replaced the file', version by version."
        },
        "author": {
          "$ref": "#/$defs/AssetAuthor",
          "description": "Who wrote THIS version. Deliberately per version, not inherited from the file: a report Patricia generated and a person then revised has two different answers, and the version history is the only place that difference is visible."
        },
        "generation": {
          "anyOf": [
            {
              "$ref": "#/$defs/AssetGenerationInfo"
            },
            {
              "type": "null"
            }
          ],
          "description": "How this version was generated (prompt, model, settings, brand assets), when a run generated it. Null for uploads, document renders, and versions stored before generation provenance was recorded."
        },
        "layout": {
          "anyOf": [
            {
              "$ref": "#/$defs/DashboardLayout"
            },
            {
              "type": "null"
            }
          ],
          "description": "The tile arrangement a person saved for this dashboard version. Null means the version uses the layout authored in its page."
        },
        "changed_slides": {
          "anyOf": [
            {
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Changed Slides",
          "description": "For a deck, the numbers of the slides this version changed against the version before it. Null for every other kind of file, and for a deck whose history is withheld (a private file opened without the acknowledgement) or whose version could not be read."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "content_type",
        "byte_size",
        "created_at"
      ],
      "title": "AssetVersionSummary",
      "description": "One stored revision of an asset."
    },
    "Border": {
      "properties": {
        "style": {
          "type": "string",
          "enum": [
            "none",
            "solid",
            "dashed",
            "dotted"
          ],
          "title": "Style",
          "default": "none"
        },
        "width": {
          "type": "number",
          "title": "Width",
          "default": 0
        },
        "color": {
          "type": "string",
          "title": "Color",
          "default": "#000000"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "Border"
    },
    "ChartPart": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "x": {
          "type": "number",
          "title": "X"
        },
        "y": {
          "type": "number",
          "title": "Y"
        },
        "width": {
          "type": "number",
          "title": "Width"
        },
        "height": {
          "type": "number",
          "title": "Height"
        },
        "rotation": {
          "type": "number",
          "title": "Rotation",
          "default": 0
        },
        "flipH": {
          "type": "boolean",
          "title": "Fliph"
        },
        "flipV": {
          "type": "boolean",
          "title": "Flipv"
        },
        "opacity": {
          "type": "number",
          "title": "Opacity",
          "default": 1
        },
        "radius": {
          "type": "number",
          "title": "Radius",
          "default": 0
        },
        "border": {
          "$ref": "#/$defs/Border",
          "default": {
            "style": "none",
            "width": 0.0,
            "color": "#000000"
          }
        },
        "fill": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fill"
        },
        "padding": {
          "type": "number",
          "title": "Padding",
          "default": 0
        },
        "shadow": {
          "type": "string",
          "enum": [
            "none",
            "small",
            "medium"
          ],
          "title": "Shadow",
          "default": "none"
        },
        "groupId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Groupid"
        },
        "revision": {
          "type": "integer",
          "title": "Revision",
          "default": 1
        },
        "type": {
          "type": "string",
          "const": "chart",
          "title": "Type",
          "default": "chart"
        },
        "chartType": {
          "type": "string",
          "enum": [
            "bar",
            "line",
            "pie"
          ],
          "title": "Charttype"
        },
        "barDirection": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "column",
                "bar"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Bardirection"
        },
        "barGrouping": {
          "type": "string",
          "enum": [
            "clustered",
            "stacked",
            "percentStacked"
          ],
          "title": "Bargrouping"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "categories": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Categories"
        },
        "series": {
          "items": {
            "$ref": "#/$defs/ChartSeries"
          },
          "type": "array",
          "title": "Series"
        },
        "showLegend": {
          "type": "boolean",
          "title": "Showlegend",
          "default": true
        },
        "showValues": {
          "type": "boolean",
          "title": "Showvalues",
          "default": false
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "x",
        "y",
        "width",
        "height",
        "chartType",
        "categories",
        "series"
      ],
      "title": "ChartPart"
    },
    "ChartSeries": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "values": {
          "items": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "type": "array",
          "title": "Values"
        },
        "color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Color"
        },
        "chartType": {
          "anyOf": [
            {
              "type": "string",
              "const": "line"
            },
            {
              "type": "null"
            }
          ],
          "title": "Charttype"
        },
        "secondaryAxis": {
          "type": "boolean",
          "title": "Secondaryaxis"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "name",
        "values"
      ],
      "title": "ChartSeries"
    },
    "Crop": {
      "properties": {
        "left": {
          "type": "number",
          "title": "Left",
          "default": 0
        },
        "top": {
          "type": "number",
          "title": "Top",
          "default": 0
        },
        "right": {
          "type": "number",
          "title": "Right",
          "default": 0
        },
        "bottom": {
          "type": "number",
          "title": "Bottom",
          "default": 0
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "Crop"
    },
    "DashboardLayout": {
      "properties": {
        "tiles": {
          "items": {
            "$ref": "#/$defs/DashboardLayoutTile"
          },
          "type": "array",
          "maxItems": 200,
          "title": "Tiles"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "tiles"
      ],
      "title": "DashboardLayout",
      "description": "A dashboard version's arrangement. A version with no layout keeps its authored one."
    },
    "DashboardLayoutTile": {
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,64}$",
          "title": "Id"
        },
        "column": {
          "type": "integer",
          "maximum": 12.0,
          "minimum": 1.0,
          "title": "Column"
        },
        "width": {
          "type": "integer",
          "maximum": 12.0,
          "minimum": 1.0,
          "title": "Width"
        },
        "row": {
          "type": "integer",
          "maximum": 500.0,
          "minimum": 1.0,
          "title": "Row"
        },
        "height": {
          "type": "integer",
          "maximum": 100.0,
          "minimum": 1.0,
          "title": "Height"
        },
        "hidden": {
          "type": "boolean",
          "title": "Hidden",
          "default": false
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "column",
        "width",
        "row",
        "height"
      ],
      "title": "DashboardLayoutTile",
      "description": "One tile's place: columns and rows count from 1."
    },
    "Deck": {
      "properties": {
        "format": {
          "type": "string",
          "const": "patricia.deck",
          "title": "Format",
          "default": "patricia.deck"
        },
        "version": {
          "type": "integer",
          "const": 1,
          "title": "Version",
          "default": 1
        },
        "size": {
          "$ref": "#/$defs/DeckSize"
        },
        "theme": {
          "$ref": "#/$defs/DeckTheme"
        },
        "sections": {
          "items": {
            "$ref": "#/$defs/DeckSection"
          },
          "type": "array",
          "title": "Sections"
        },
        "slides": {
          "items": {
            "$ref": "#/$defs/DeckSlide"
          },
          "type": "array",
          "title": "Slides"
        },
        "thumbnailSlideId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Thumbnailslideid"
        },
        "orderRevision": {
          "type": "integer",
          "title": "Orderrevision",
          "default": 1
        },
        "lineSpacingUnit": {
          "anyOf": [
            {
              "type": "string",
              "const": "font_size_css"
            },
            {
              "type": "null"
            }
          ],
          "title": "Linespacingunit",
          "description": "The CSS unit for lineSpacing; an absent value keeps legacy PowerPoint multiples."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "size",
        "theme",
        "sections",
        "slides"
      ],
      "title": "Deck"
    },
    "DeckSection": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "revision": {
          "type": "integer",
          "title": "Revision",
          "default": 1
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "title": "DeckSection"
    },
    "DeckSize": {
      "properties": {
        "width": {
          "type": "integer",
          "title": "Width"
        },
        "height": {
          "type": "integer",
          "title": "Height"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "width",
        "height"
      ],
      "title": "DeckSize"
    },
    "DeckSlide": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "sectionId": {
          "type": "string",
          "title": "Sectionid"
        },
        "layout": {
          "type": "string",
          "enum": [
            "title",
            "titleAndText",
            "twoColumns",
            "bigNumber",
            "pictureAndText",
            "blank",
            "imported"
          ],
          "title": "Layout",
          "default": "imported"
        },
        "skipped": {
          "type": "boolean",
          "title": "Skipped",
          "default": false
        },
        "background": {
          "$ref": "#/$defs/SlideBackground",
          "default": {}
        },
        "transition": {
          "type": "string",
          "enum": [
            "none",
            "fade"
          ],
          "title": "Transition",
          "default": "none"
        },
        "notes": {
          "type": "string",
          "title": "Notes",
          "default": ""
        },
        "revision": {
          "type": "integer",
          "title": "Revision",
          "default": 1
        },
        "partsOrderRevision": {
          "type": "integer",
          "title": "Partsorderrevision",
          "default": 1
        },
        "parts": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/TextPart"
              },
              {
                "$ref": "#/$defs/TablePart"
              },
              {
                "$ref": "#/$defs/ImagePart"
              },
              {
                "$ref": "#/$defs/ShapePart"
              },
              {
                "$ref": "#/$defs/ChartPart"
              }
            ]
          },
          "type": "array",
          "title": "Parts"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "sectionId",
        "parts"
      ],
      "title": "DeckSlide"
    },
    "DeckTheme": {
      "properties": {
        "headingFont": {
          "type": "string",
          "title": "Headingfont"
        },
        "bodyFont": {
          "type": "string",
          "title": "Bodyfont"
        },
        "colors": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Colors"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "headingFont",
        "bodyFont",
        "colors"
      ],
      "title": "DeckTheme"
    },
    "ImagePart": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "x": {
          "type": "number",
          "title": "X"
        },
        "y": {
          "type": "number",
          "title": "Y"
        },
        "width": {
          "type": "number",
          "title": "Width"
        },
        "height": {
          "type": "number",
          "title": "Height"
        },
        "rotation": {
          "type": "number",
          "title": "Rotation",
          "default": 0
        },
        "flipH": {
          "type": "boolean",
          "title": "Fliph"
        },
        "flipV": {
          "type": "boolean",
          "title": "Flipv"
        },
        "opacity": {
          "type": "number",
          "title": "Opacity",
          "default": 1
        },
        "radius": {
          "type": "number",
          "title": "Radius",
          "default": 0
        },
        "border": {
          "$ref": "#/$defs/Border",
          "default": {
            "style": "none",
            "width": 0.0,
            "color": "#000000"
          }
        },
        "fill": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fill"
        },
        "padding": {
          "type": "number",
          "title": "Padding",
          "default": 0
        },
        "shadow": {
          "type": "string",
          "enum": [
            "none",
            "small",
            "medium"
          ],
          "title": "Shadow",
          "default": "none"
        },
        "groupId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Groupid"
        },
        "revision": {
          "type": "integer",
          "title": "Revision",
          "default": 1
        },
        "type": {
          "type": "string",
          "const": "image",
          "title": "Type",
          "default": "image"
        },
        "picture": {
          "type": "string",
          "title": "Picture"
        },
        "fit": {
          "type": "string",
          "enum": [
            "cover",
            "contain"
          ],
          "title": "Fit",
          "default": "cover"
        },
        "crop": {
          "$ref": "#/$defs/Crop",
          "default": {
            "left": 0.0,
            "top": 0.0,
            "right": 0.0,
            "bottom": 0.0
          }
        },
        "altText": {
          "type": "string",
          "title": "Alttext",
          "default": ""
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "x",
        "y",
        "width",
        "height",
        "picture"
      ],
      "title": "ImagePart"
    },
    "Paragraph": {
      "properties": {
        "align": {
          "type": "string",
          "enum": [
            "left",
            "center",
            "right",
            "justify"
          ],
          "title": "Align",
          "default": "left"
        },
        "lineSpacing": {
          "type": "number",
          "title": "Linespacing",
          "default": 1
        },
        "lineHeight": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lineheight",
          "description": "An exact line pitch in pixels that replaces lineSpacing while it is set."
        },
        "spaceBefore": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Spacebefore",
          "description": "Space before the paragraph in pixels; an absent value means no space."
        },
        "spaceAfter": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Spaceafter",
          "description": "Space after the paragraph in pixels; an absent value means no space."
        },
        "letterSpacing": {
          "type": "number",
          "title": "Letterspacing",
          "default": 0
        },
        "bullet": {
          "type": "string",
          "enum": [
            "none",
            "dot",
            "number"
          ],
          "title": "Bullet",
          "default": "none"
        },
        "level": {
          "type": "integer",
          "title": "Level",
          "default": 0
        },
        "runs": {
          "items": {
            "$ref": "#/$defs/TextRun"
          },
          "type": "array",
          "title": "Runs"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "runs"
      ],
      "title": "Paragraph"
    },
    "Point": {
      "properties": {
        "x": {
          "type": "number",
          "title": "X"
        },
        "y": {
          "type": "number",
          "title": "Y"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "x",
        "y"
      ],
      "title": "Point"
    },
    "ShapePart": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "x": {
          "type": "number",
          "title": "X"
        },
        "y": {
          "type": "number",
          "title": "Y"
        },
        "width": {
          "type": "number",
          "title": "Width"
        },
        "height": {
          "type": "number",
          "title": "Height"
        },
        "rotation": {
          "type": "number",
          "title": "Rotation",
          "default": 0
        },
        "flipH": {
          "type": "boolean",
          "title": "Fliph"
        },
        "flipV": {
          "type": "boolean",
          "title": "Flipv"
        },
        "opacity": {
          "type": "number",
          "title": "Opacity",
          "default": 1
        },
        "radius": {
          "type": "number",
          "title": "Radius",
          "default": 0
        },
        "border": {
          "$ref": "#/$defs/Border",
          "default": {
            "style": "none",
            "width": 0.0,
            "color": "#000000"
          }
        },
        "fill": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fill"
        },
        "padding": {
          "type": "number",
          "title": "Padding",
          "default": 0
        },
        "shadow": {
          "type": "string",
          "enum": [
            "none",
            "small",
            "medium"
          ],
          "title": "Shadow",
          "default": "none"
        },
        "groupId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Groupid"
        },
        "revision": {
          "type": "integer",
          "title": "Revision",
          "default": 1
        },
        "type": {
          "type": "string",
          "const": "shape",
          "title": "Type",
          "default": "shape"
        },
        "shape": {
          "type": "string",
          "enum": [
            "rectangle",
            "roundedRectangle",
            "ellipse",
            "diamond",
            "arrowRight",
            "arrowLeft",
            "arrowUp",
            "arrowDown",
            "line",
            "connector"
          ],
          "title": "Shape"
        },
        "start": {
          "anyOf": [
            {
              "$ref": "#/$defs/Point"
            },
            {
              "type": "null"
            }
          ]
        },
        "end": {
          "anyOf": [
            {
              "$ref": "#/$defs/Point"
            },
            {
              "type": "null"
            }
          ]
        },
        "from": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "From"
        },
        "to": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "To"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "x",
        "y",
        "width",
        "height",
        "shape"
      ],
      "title": "ShapePart"
    },
    "SlideBackground": {
      "properties": {
        "color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Color"
        },
        "picture": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Picture"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "SlideBackground"
    },
    "TableCell": {
      "properties": {
        "paragraphs": {
          "items": {
            "$ref": "#/$defs/Paragraph"
          },
          "type": "array",
          "title": "Paragraphs"
        },
        "fill": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fill"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "paragraphs"
      ],
      "title": "TableCell"
    },
    "TablePart": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "x": {
          "type": "number",
          "title": "X"
        },
        "y": {
          "type": "number",
          "title": "Y"
        },
        "width": {
          "type": "number",
          "title": "Width"
        },
        "height": {
          "type": "number",
          "title": "Height"
        },
        "rotation": {
          "type": "number",
          "title": "Rotation",
          "default": 0
        },
        "flipH": {
          "type": "boolean",
          "title": "Fliph"
        },
        "flipV": {
          "type": "boolean",
          "title": "Flipv"
        },
        "opacity": {
          "type": "number",
          "title": "Opacity",
          "default": 1
        },
        "radius": {
          "type": "number",
          "title": "Radius",
          "default": 0
        },
        "border": {
          "$ref": "#/$defs/Border",
          "default": {
            "style": "none",
            "width": 0.0,
            "color": "#000000"
          }
        },
        "fill": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fill"
        },
        "padding": {
          "type": "number",
          "title": "Padding",
          "default": 0
        },
        "shadow": {
          "type": "string",
          "enum": [
            "none",
            "small",
            "medium"
          ],
          "title": "Shadow",
          "default": "none"
        },
        "groupId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Groupid"
        },
        "revision": {
          "type": "integer",
          "title": "Revision",
          "default": 1
        },
        "type": {
          "type": "string",
          "const": "table",
          "title": "Type",
          "default": "table"
        },
        "columns": {
          "items": {
            "type": "number"
          },
          "type": "array",
          "title": "Columns"
        },
        "rows": {
          "items": {
            "$ref": "#/$defs/TableRow"
          },
          "type": "array",
          "title": "Rows"
        },
        "headerRow": {
          "type": "boolean",
          "title": "Headerrow",
          "default": false
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "x",
        "y",
        "width",
        "height",
        "columns",
        "rows"
      ],
      "title": "TablePart"
    },
    "TableRow": {
      "properties": {
        "height": {
          "type": "number",
          "title": "Height"
        },
        "cells": {
          "items": {
            "$ref": "#/$defs/TableCell"
          },
          "type": "array",
          "title": "Cells"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "height",
        "cells"
      ],
      "title": "TableRow"
    },
    "TextInsets": {
      "properties": {
        "left": {
          "type": "number",
          "title": "Left"
        },
        "top": {
          "type": "number",
          "title": "Top"
        },
        "right": {
          "type": "number",
          "title": "Right"
        },
        "bottom": {
          "type": "number",
          "title": "Bottom"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "left",
        "top",
        "right",
        "bottom"
      ],
      "title": "TextInsets"
    },
    "TextPart": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "x": {
          "type": "number",
          "title": "X"
        },
        "y": {
          "type": "number",
          "title": "Y"
        },
        "width": {
          "type": "number",
          "title": "Width"
        },
        "height": {
          "type": "number",
          "title": "Height"
        },
        "rotation": {
          "type": "number",
          "title": "Rotation",
          "default": 0
        },
        "flipH": {
          "type": "boolean",
          "title": "Fliph"
        },
        "flipV": {
          "type": "boolean",
          "title": "Flipv"
        },
        "opacity": {
          "type": "number",
          "title": "Opacity",
          "default": 1
        },
        "radius": {
          "type": "number",
          "title": "Radius",
          "default": 0
        },
        "border": {
          "$ref": "#/$defs/Border",
          "default": {
            "style": "none",
            "width": 0.0,
            "color": "#000000"
          }
        },
        "fill": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fill"
        },
        "padding": {
          "type": "number",
          "title": "Padding",
          "default": 0
        },
        "shadow": {
          "type": "string",
          "enum": [
            "none",
            "small",
            "medium"
          ],
          "title": "Shadow",
          "default": "none"
        },
        "groupId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Groupid"
        },
        "revision": {
          "type": "integer",
          "title": "Revision",
          "default": 1
        },
        "type": {
          "type": "string",
          "const": "text",
          "title": "Type",
          "default": "text"
        },
        "paragraphs": {
          "items": {
            "$ref": "#/$defs/Paragraph"
          },
          "type": "array",
          "title": "Paragraphs"
        },
        "textStyle": {
          "type": "string",
          "enum": [
            "display",
            "heading",
            "body",
            "caption",
            "custom"
          ],
          "title": "Textstyle",
          "default": "custom"
        },
        "resize": {
          "type": "string",
          "enum": [
            "shrink",
            "fixed",
            "grow"
          ],
          "title": "Resize",
          "default": "fixed"
        },
        "shrinkScale": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Shrinkscale"
        },
        "shrinkLineReduction": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Shrinklinereduction",
          "description": "The share of line spacing removed by autofit."
        },
        "textDirection": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "horizontal",
                "rotate90",
                "rotate270",
                "stacked"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Textdirection",
          "description": "The direction of the text; an absent value means horizontal."
        },
        "columns": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Columns",
          "description": "The number of text columns; an absent value means one column."
        },
        "columnGap": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Columngap",
          "description": "The gap between text columns in pixels; an absent value means no gap."
        },
        "verticalAnchor": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "top",
                "center",
                "bottom"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Verticalanchor",
          "description": "An absent anchor places text at the top."
        },
        "insets": {
          "anyOf": [
            {
              "$ref": "#/$defs/TextInsets"
            },
            {
              "type": "null"
            }
          ],
          "description": "Padding has no effect on a text part while insets is present."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "x",
        "y",
        "width",
        "height",
        "paragraphs"
      ],
      "title": "TextPart"
    },
    "TextRun": {
      "properties": {
        "text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Text"
        },
        "field": {
          "anyOf": [
            {
              "type": "string",
              "const": "slideNumber"
            },
            {
              "type": "null"
            }
          ],
          "title": "Field"
        },
        "font": {
          "type": "string",
          "title": "Font"
        },
        "weight": {
          "type": "integer",
          "title": "Weight",
          "default": 400
        },
        "size": {
          "type": "number",
          "title": "Size"
        },
        "italic": {
          "type": "boolean",
          "title": "Italic",
          "default": false
        },
        "underline": {
          "type": "boolean",
          "title": "Underline",
          "default": false
        },
        "color": {
          "type": "string",
          "title": "Color",
          "default": "#000000"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Link"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "font",
        "size"
      ],
      "title": "TextRun"
    }
  }
}