{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "input": {
      "type": "string",
      "minLength": 1,
      "description": "Path to the current PPTX.",
      "x-tiwater-file-role": "read", "x-tiwater-document-revision-role": "current"
    },
    "changes": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slideNumber": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "shapeId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 4294967295
          },
          "image": {
            "type": "string",
            "minLength": 1,
            "x-tiwater-file-role": "read"
          }
        },
        "required": [
          "slideNumber",
          "shapeId",
          "image"
        ],
        "additionalProperties": false
      }
    },
    "output": {
      "type": "string",
      "minLength": 1,
      "description": "Output PPTX path; may equal input for an atomic in-place update.",
      "x-tiwater-file-role": "write"
    },
    "receiptOutput": {
      "type": "string",
      "minLength": 1,
      "description": "New JSON receipt path. Existing files are never overwritten.",
      "x-tiwater-file-role": "write",
      "x-tiwater-file-effect": false
    }
  },
  "required": [
    "input",
    "changes",
    "output",
    "receiptOutput"
  ],
  "additionalProperties": false
}
