{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-create-composite-request-schema.json",
  "title": "CreateCompositeRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-photoshop-v2-openapi.yml#/components/schemas/CreateCompositeRequest",
  "type": "object",
  "properties": {
    "edits": {
      "$ref": "#/$defs/Edits",
      "description": "Edits to be applied to the input asset. Optional."
    },
    "fontOptions": {
      "$ref": "#/$defs/FontOptions",
      "description": "Font options to be applied. Optional."
    },
    "image": {
      "description": "The image input for the composite operation. Required.",
      "oneOf": [
        {
          "$ref": "#/$defs/ImageParameters"
        },
        {
          "$ref": "#/$defs/ImageSource"
        }
      ]
    },
    "outputs": {
      "type": "array",
      "description": "List of output asset details. Required. Maximum of 25 outputs allowed.",
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/JpegOutputWithScan"
          },
          {
            "$ref": "#/$defs/JsonOutput"
          },
          {
            "$ref": "#/$defs/PngOutput"
          },
          {
            "$ref": "#/$defs/PsdOutput"
          },
          {
            "$ref": "#/$defs/PsdcOutput"
          },
          {
            "$ref": "#/$defs/TiffOutput"
          }
        ]
      },
      "maxItems": 25,
      "minItems": 1
    }
  },
  "required": [
    "image",
    "outputs"
  ],
  "$defs": {
    "AddAdjustmentLayer": {
      "allOf": [
        {
          "$ref": "#/$defs/OperationBase"
        },
        {
          "type": "object",
          "properties": {
            "adjustments": {
              "description": "Adjustment settings to apply. Must specify exactly one adjustment type (brightness_contrast, hue_saturation, exposure, or color_balance).",
              "oneOf": [
                {
                  "$ref": "#/$defs/BrightnessContrastAdjustments"
                },
                {
                  "$ref": "#/$defs/ColorBalanceAdjustments"
                },
                {
                  "$ref": "#/$defs/ExposureAdjustments"
                },
                {
                  "$ref": "#/$defs/HueSaturationAdjustments"
                }
              ]
            },
            "blendOptions": {
              "$ref": "#/$defs/BlendOptions",
              "description": "Blend options for the layer"
            },
            "isClipped": {
              "type": "boolean",
              "description": "Whether the layer is clipped. Defaults to false when adding layers."
            },
            "isVisible": {
              "type": "boolean",
              "description": "Whether the layer is visible. Defaults to true when adding layers. Optional for edits."
            },
            "layerEffects": {
              "$ref": "#/$defs/LayerEffects",
              "description": "Layer Style effects applied to the layer (e.g. drop shadow). Optional."
            },
            "pixelMask": {
              "$ref": "#/$defs/PixelMask",
              "description": "Pixel mask applied to the layer."
            },
            "protection": {
              "type": "array",
              "description": "Protection flags for the layer (e.g. none, all, transparency, composite, position, artboard_autonest). Defaults to 'none' when adding layers. Optional for edits; omit, null, or empty array [] mean 'don't change'. When 'none' or 'all' is used, the array must contain only that element.",
              "items": {
                "type": "string",
                "description": "Protection flag for layer. Used in protection array.",
                "enum": [
                  "none",
                  "all",
                  "transparency",
                  "composite",
                  "position",
                  "artboard_autonest"
                ]
              }
            },
            "transform": {
              "$ref": "#/$defs/Transform",
              "description": "Transform applied to the layer"
            },
            "transformMode": {
              "type": "string",
              "description": "Transform mode applied to the layer. Defaults to 'none' when adding layers. Optional for edits. Modes: 'none' — applies no scaling. 'fit' — scales the layer uniformly to fit within the canvas bounds while preserving aspect ratio. 'fill' — scales the layer uniformly to fill the canvas bounds while preserving aspect ratio, cropping overflow if the layer's aspect ratio differs from the canvas. 'custom' — applies the exact width and height from the Transform without preserving aspect ratio. Important for text layers: Any mode other than 'none' (or any non-identity scale on the Transform) causes the type engine to render glyphs and leading multiplied by the layer's scale factors. fontSize and lineHeight in CharacterStyle are stored unscaled. The rendered output becomes: fontSize x horizontalScale and lineHeight x verticalScale. To produce text at exact pixel sizes, use transformMode 'none' and avoid scaling Transforms on text layers.",
              "enum": [
                "fit",
                "fill",
                "custom",
                "none"
              ]
            },
            "type": {
              "type": "string",
              "description": "Type of layer.  Required for add/edit operations, optional for delete/move.",
              "enum": [
                "layer",
                "solid_color_layer",
                "text_layer",
                "smart_object_layer",
                "adjustment_layer",
                "group_layer",
                "background_layer"
              ]
            }
          }
        }
      ],
      "description": "Adjustment layer for applying image adjustments like brightness, contrast, hue/saturation, etc.",
      "required": [
        "adjustments",
        "operation"
      ]
    },
    "AddBackgroundLayer": {
      "allOf": [
        {
          "$ref": "#/$defs/OperationBase"
        },
        {
          "type": "object",
          "properties": {
            "blendOptions": {
              "$ref": "#/$defs/BlendOptions",
              "description": "Blend options for the layer"
            },
            "image": {
              "$ref": "#/$defs/ImageSource",
              "description": "Image content including source URL for the background layer pixel content. Optional."
            },
            "isVisible": {
              "type": "boolean",
              "description": "Whether the layer is visible. Defaults to true when adding layers. Optional for edits."
            },
            "layerEffects": {
              "$ref": "#/$defs/LayerEffects",
              "description": "Layer Style effects applied to the layer (e.g. drop shadow). Optional."
            },
            "pixelMask": {
              "$ref": "#/$defs/PixelMask",
              "description": "Pixel mask applied to the layer."
            },
            "protection": {
              "type": "array",
              "description": "Protection flags for the layer (e.g. none, all, transparency, composite, position, artboard_autonest). Defaults to 'none' when adding layers. Optional for edits; omit, null, or empty array [] mean 'don't change'. When 'none' or 'all' is used, the array must contain only that element.",
              "items": {
                "type": "string",
                "description": "Protection flag for layer. Used in protection array.",
                "enum": [
                  "none",
                  "all",
                  "transparency",
                  "composite",
                  "position",
                  "artboard_autonest"
                ]
              }
            },
            "transform": {
              "$ref": "#/$defs/Transform",
              "description": "Transform applied to the layer"
            },
            "transformMode": {
              "type": "string",
              "description": "Transform mode applied to the layer. Defaults to 'none' when adding layers. Optional for edits. Modes: 'none' — applies no scaling. 'fit' — scales the layer uniformly to fit within the canvas bounds while preserving aspect ratio. 'fill' — scales the layer uniformly to fill the canvas bounds while preserving aspect ratio, cropping overflow if the layer's aspect ratio differs from the canvas. 'custom' — applies the exact width and height from the Transform without preserving aspect ratio. Important for text layers: Any mode other than 'none' (or any non-identity scale on the Transform) causes the type engine to render glyphs and leading multiplied by the layer's scale factors. fontSize and lineHeight in CharacterStyle are stored unscaled. The rendered output becomes: fontSize x horizontalScale and lineHeight x verticalScale. To produce text at exact pixel sizes, use transformMode 'none' and avoid scaling Transforms on text layers.",
              "enum": [
                "fit",
                "fill",
                "custom",
                "none"
              ]
            },
            "type": {
              "type": "string",
              "description": "Type of layer.  Required for add/edit operations, optional for delete/move.",
              "enum": [
                "layer",
                "solid_color_layer",
                "text_layer",
                "smart_object_layer",
                "adjustment_layer",
                "group_layer",
                "background_layer"
              ]
            }
          }
        }
      ],
      "description": "Background layer for adding a background to the document.",
      "required": [
        "operation"
      ]
    },
    "AddLayer": {
      "allOf": [
        {
          "$ref": "#/$defs/OperationBase"
        },
        {
          "type": "object",
          "properties": {
            "blendOptions": {
              "$ref": "#/$defs/BlendOptions",
              "description": "Blend options for the layer"
            },
            "image": {
              "$ref": "#/$defs/ImageSource",
              "description": "Image content including source URL. Supported file formats: PSD, PNG, JPEG, SVG. Required when adding a layer."
            },
            "isClipped": {
              "type": "boolean",
              "description": "Whether the layer is clipped. Defaults to false when adding layers."
            },
            "isVisible": {
              "type": "boolean",
              "description": "Whether the layer is visible. Defaults to true when adding layers. Optional for edits."
            },
            "layerEffects": {
              "$ref": "#/$defs/LayerEffects",
              "description": "Layer Style effects applied to the layer (e.g. drop shadow). Optional."
            },
            "pixelMask": {
              "$ref": "#/$defs/PixelMask",
              "description": "Pixel mask applied to the layer."
            },
            "protection": {
              "type": "array",
              "description": "Protection flags for the layer (e.g. none, all, transparency, composite, position, artboard_autonest). Defaults to 'none' when adding layers. Optional for edits; omit, null, or empty array [] mean 'don't change'. When 'none' or 'all' is used, the array must contain only that element.",
              "items": {
                "type": "string",
                "description": "Protection flag for layer. Used in protection array.",
                "enum": [
                  "none",
                  "all",
                  "transparency",
                  "composite",
                  "position",
                  "artboard_autonest"
                ]
              }
            },
            "transform": {
              "$ref": "#/$defs/Transform",
              "description": "Transform applied to the layer"
            },
            "transformMode": {
              "type": "string",
              "description": "Transform mode applied to the layer. Defaults to 'none' when adding layers. Optional for edits. Modes: 'none' — applies no scaling. 'fit' — scales the layer uniformly to fit within the canvas bounds while preserving aspect ratio. 'fill' — scales the layer uniformly to fill the canvas bounds while preserving aspect ratio, cropping overflow if the layer's aspect ratio differs from the canvas. 'custom' — applies the exact width and height from the Transform without preserving aspect ratio. Important for text layers: Any mode other than 'none' (or any non-identity scale on the Transform) causes the type engine to render glyphs and leading multiplied by the layer's scale factors. fontSize and lineHeight in CharacterStyle are stored unscaled. The rendered output becomes: fontSize x horizontalScale and lineHeight x verticalScale. To produce text at exact pixel sizes, use transformMode 'none' and avoid scaling Transforms on text layers.",
              "enum": [
                "fit",
                "fill",
                "custom",
                "none"
              ]
            },
            "type": {
              "type": "string",
              "description": "Type of layer.  Required for add/edit operations, optional for delete/move.",
              "enum": [
                "layer",
                "solid_color_layer",
                "text_layer",
                "smart_object_layer",
                "adjustment_layer",
                "group_layer",
                "background_layer"
              ]
            }
          }
        }
      ],
      "description": "Image layer for adding raster images to the document.",
      "required": [
        "image",
        "operation"
      ]
    },
    "AddOperation": {
      "allOf": [
        {
          "$ref": "#/$defs/Operation"
        },
        {
          "type": "object",
          "properties": {
            "placement": {
              "$ref": "#/$defs/Placement",
              "description": "Placement settings for the add operation. Required for non-background layers."
            }
          }
        }
      ],
      "description": "Add operation for adding layers.",
      "required": [
        "placement",
        "type"
      ]
    },
    "AddSmartObjectLayer": {
      "allOf": [
        {
          "$ref": "#/$defs/OperationBase"
        },
        {
          "type": "object",
          "properties": {
            "blendOptions": {
              "$ref": "#/$defs/BlendOptions",
              "description": "Blend options for the layer"
            },
            "isClipped": {
              "type": "boolean",
              "description": "Whether the layer is clipped. Defaults to false when adding layers."
            },
            "isVisible": {
              "type": "boolean",
              "description": "Whether the layer is visible. Defaults to true when adding layers. Optional for edits."
            },
            "layerEffects": {
              "$ref": "#/$defs/LayerEffects",
              "description": "Layer Style effects applied to the layer (e.g. drop shadow). Optional."
            },
            "pixelMask": {
              "$ref": "#/$defs/PixelMask",
              "description": "Pixel mask applied to the layer."
            },
            "protection": {
              "type": "array",
              "description": "Protection flags for the layer (e.g. none, all, transparency, composite, position, artboard_autonest). Defaults to 'none' when adding layers. Optional for edits; omit, null, or empty array [] mean 'don't change'. When 'none' or 'all' is used, the array must contain only that element.",
              "items": {
                "type": "string",
                "description": "Protection flag for layer. Used in protection array.",
                "enum": [
                  "none",
                  "all",
                  "transparency",
                  "composite",
                  "position",
                  "artboard_autonest"
                ]
              }
            },
            "smartObject": {
              "$ref": "#/$defs/SmartObject",
              "description": "Smart object settings and file reference. Required."
            },
            "transform": {
              "$ref": "#/$defs/Transform",
              "description": "Transform applied to the layer"
            },
            "transformMode": {
              "type": "string",
              "description": "Transform mode applied to the layer. Defaults to 'none' when adding layers. Optional for edits. Modes: 'none' — applies no scaling. 'fit' — scales the layer uniformly to fit within the canvas bounds while preserving aspect ratio. 'fill' — scales the layer uniformly to fill the canvas bounds while preserving aspect ratio, cropping overflow if the layer's aspect ratio differs from the canvas. 'custom' — applies the exact width and height from the Transform without preserving aspect ratio. Important for text layers: Any mode other than 'none' (or any non-identity scale on the Transform) causes the type engine to render glyphs and leading multiplied by the layer's scale factors. fontSize and lineHeight in CharacterStyle are stored unscaled. The rendered output becomes: fontSize x horizontalScale and lineHeight x verticalScale. To produce text at exact pixel sizes, use transformMode 'none' and avoid scaling Transforms on text layers.",
              "enum": [
                "fit",
                "fill",
                "custom",
                "none"
              ]
            },
            "type": {
              "type": "string",
              "description": "Type of layer.  Required for add/edit operations, optional for delete/move.",
              "enum": [
                "layer",
                "solid_color_layer",
                "text_layer",
                "smart_object_layer",
                "adjustment_layer",
                "group_layer",
                "background_layer"
              ]
            }
          }
        }
      ],
      "description": "Smart object layer for embedding external files or vector graphics.",
      "required": [
        "operation",
        "smartObject"
      ]
    },
    "AddSolidColorLayer": {
      "allOf": [
        {
          "$ref": "#/$defs/OperationBase"
        },
        {
          "type": "object",
          "properties": {
            "blendOptions": {
              "$ref": "#/$defs/BlendOptions",
              "description": "Blend options for the layer"
            },
            "fill": {
              "$ref": "#/$defs/Fill",
              "description": "Fill settings including color. Required."
            },
            "isClipped": {
              "type": "boolean",
              "description": "Whether the layer is clipped. Defaults to false when adding layers."
            },
            "isVisible": {
              "type": "boolean",
              "description": "Whether the layer is visible. Defaults to true when adding layers. Optional for edits."
            },
            "layerEffects": {
              "$ref": "#/$defs/LayerEffects",
              "description": "Layer Style effects applied to the layer (e.g. drop shadow). Optional."
            },
            "pixelMask": {
              "$ref": "#/$defs/PixelMask",
              "description": "Pixel mask applied to the layer."
            },
            "protection": {
              "type": "array",
              "description": "Protection flags for the layer (e.g. none, all, transparency, composite, position, artboard_autonest). Defaults to 'none' when adding layers. Optional for edits; omit, null, or empty array [] mean 'don't change'. When 'none' or 'all' is used, the array must contain only that element.",
              "items": {
                "type": "string",
                "description": "Protection flag for layer. Used in protection array.",
                "enum": [
                  "none",
                  "all",
                  "transparency",
                  "composite",
                  "position",
                  "artboard_autonest"
                ]
              }
            },
            "transform": {
              "$ref": "#/$defs/Transform",
              "description": "Transform applied to the layer"
            },
            "transformMode": {
              "type": "string",
              "description": "Transform mode applied to the layer. Defaults to 'none' when adding layers. Optional for edits. Modes: 'none' — applies no scaling. 'fit' — scales the layer uniformly to fit within the canvas bounds while preserving aspect ratio. 'fill' — scales the layer uniformly to fill the canvas bounds while preserving aspect ratio, cropping overflow if the layer's aspect ratio differs from the canvas. 'custom' — applies the exact width and height from the Transform without preserving aspect ratio. Important for text layers: Any mode other than 'none' (or any non-identity scale on the Transform) causes the type engine to render glyphs and leading multiplied by the layer's scale factors. fontSize and lineHeight in CharacterStyle are stored unscaled. The rendered output becomes: fontSize x horizontalScale and lineHeight x verticalScale. To produce text at exact pixel sizes, use transformMode 'none' and avoid scaling Transforms on text layers.",
              "enum": [
                "fit",
                "fill",
                "custom",
                "none"
              ]
            },
            "type": {
              "type": "string",
              "description": "Type of layer.  Required for add/edit operations, optional for delete/move.",
              "enum": [
                "layer",
                "solid_color_layer",
                "text_layer",
                "smart_object_layer",
                "adjustment_layer",
                "group_layer",
                "background_layer"
              ]
            }
          }
        }
      ],
      "description": "Fill layer for adding solid color layer.",
      "required": [
        "fill",
        "operation"
      ]
    },
    "AddTextLayer": {
      "allOf": [
        {
          "$ref": "#/$defs/OperationBase"
        },
        {
          "type": "object",
          "properties": {
            "blendOptions": {
              "$ref": "#/$defs/BlendOptions",
              "description": "Blend options for the layer"
            },
            "isClipped": {
              "type": "boolean",
              "description": "Whether the layer is clipped. Defaults to false when adding layers."
            },
            "isVisible": {
              "type": "boolean",
              "description": "Whether the layer is visible. Defaults to true when adding layers. Optional for edits."
            },
            "layerEffects": {
              "$ref": "#/$defs/LayerEffects",
              "description": "Layer Style effects applied to the layer (e.g. drop shadow). Optional."
            },
            "pixelMask": {
              "$ref": "#/$defs/PixelMask",
              "description": "Pixel mask applied to the layer."
            },
            "protection": {
              "type": "array",
              "description": "Protection flags for the layer (e.g. none, all, transparency, composite, position, artboard_autonest). Defaults to 'none' when adding layers. Optional for edits; omit, null, or empty array [] mean 'don't change'. When 'none' or 'all' is used, the array must contain only that element.",
              "items": {
                "type": "string",
                "description": "Protection flag for layer. Used in protection array.",
                "enum": [
                  "none",
                  "all",
                  "transparency",
                  "composite",
                  "position",
                  "artboard_autonest"
                ]
              }
            },
            "text": {
              "$ref": "#/$defs/Text",
              "description": "Text content and formatting settings for this text layer."
            },
            "transform": {
              "$ref": "#/$defs/Transform",
              "description": "Transform applied to the layer"
            },
            "transformMode": {
              "type": "string",
              "description": "Transform mode applied to the layer. Defaults to 'none' when adding layers. Optional for edits. Modes: 'none' — applies no scaling. 'fit' — scales the layer uniformly to fit within the canvas bounds while preserving aspect ratio. 'fill' — scales the layer uniformly to fill the canvas bounds while preserving aspect ratio, cropping overflow if the layer's aspect ratio differs from the canvas. 'custom' — applies the exact width and height from the Transform without preserving aspect ratio. Important for text layers: Any mode other than 'none' (or any non-identity scale on the Transform) causes the type engine to render glyphs and leading multiplied by the layer's scale factors. fontSize and lineHeight in CharacterStyle are stored unscaled. The rendered output becomes: fontSize x horizontalScale and lineHeight x verticalScale. To produce text at exact pixel sizes, use transformMode 'none' and avoid scaling Transforms on text layers.",
              "enum": [
                "fit",
                "fill",
                "custom",
                "none"
              ]
            },
            "type": {
              "type": "string",
              "description": "Type of layer.  Required for add/edit operations, optional for delete/move.",
              "enum": [
                "layer",
                "solid_color_layer",
                "text_layer",
                "smart_object_layer",
                "adjustment_layer",
                "group_layer",
                "background_layer"
              ]
            }
          }
        }
      ],
      "description": "Text layer for adding text content in the document.",
      "required": [
        "operation",
        "text"
      ]
    },
    "AdditionalFont": {
      "type": "object",
      "properties": {
        "source": {
          "$ref": "#/$defs/PortableFileResourceInput",
          "description": "Source of the font file. Must be a URL, Creative Cloud path, or Creative Cloud file ID. Lightroom resources are not supported for fonts. Required."
        }
      }
    },
    "Anchor": {
      "type": "object",
      "description": "Anchor point coordinates for transformations and positioning.",
      "properties": {
        "horizontal": {
          "type": "number",
          "format": "double",
          "description": "Horizontal anchor position. Required."
        },
        "vertical": {
          "type": "number",
          "format": "double",
          "description": "Vertical anchor position. Required."
        }
      },
      "required": [
        "horizontal",
        "vertical"
      ]
    },
    "Apply": {
      "type": "object",
      "description": "Inclusive range (from/to) for character or paragraph styling. When present, both 'from' and 'to' are required.",
      "properties": {
        "from": {
          "type": "integer",
          "format": "int32",
          "description": "From value. Required.",
          "minimum": 0
        },
        "to": {
          "type": "integer",
          "format": "int32",
          "description": "To value. Required.",
          "minimum": 0
        }
      },
      "required": [
        "from",
        "to"
      ]
    },
    "AreaFrame": {
      "allOf": [
        {
          "$ref": "#/$defs/TextFrame"
        },
        {
          "type": "object",
          "properties": {
            "bounds": {
              "$ref": "#/$defs/Bounds",
              "description": "Area boundaries"
            }
          }
        }
      ],
      "description": "Area text frame defining a bounded rectangular region for text content. Text will wrap within the specified bounds",
      "required": [
        "type"
      ]
    },
    "BaseAdjustment": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of adjustment. Must match one of the supported types: hue_saturation, brightness_contrast, exposure, or color_balance.",
          "enum": [
            "hue_saturation",
            "brightness_contrast",
            "exposure",
            "color_balance"
          ]
        }
      },
      "required": [
        "type"
      ]
    },
    "BlendOptions": {
      "type": "object",
      "description": "Blend options for layer effects, including opacity settings.",
      "properties": {
        "blendMode": {
          "type": "string",
          "description": "Blend mode for the layer. Defaults to normal when adding new layers. Optional for edits.",
          "enum": [
            "normal",
            "dissolve",
            "darken",
            "multiply",
            "color_burn",
            "linear_burn",
            "darker_color",
            "lighten",
            "screen",
            "color_dodge",
            "linear_dodge",
            "lighter_color",
            "overlay",
            "soft_light",
            "hard_light",
            "vivid_light",
            "pin_light",
            "hard_mix",
            "difference",
            "exclusion",
            "divide",
            "hue",
            "saturation",
            "color",
            "luminosity"
          ]
        },
        "opacity": {
          "type": "integer",
          "format": "int32",
          "description": "Opacity percentage for the blend effect. Range: 0-100. Defaults to 100 when adding new layers. Optional for edits.",
          "maximum": 100,
          "minimum": 0
        }
      }
    },
    "Bounds": {
      "type": "object",
      "properties": {
        "bottom": {
          "type": "integer",
          "format": "int32",
          "description": "Bottom coordinate in pixels. Optional."
        },
        "left": {
          "type": "integer",
          "format": "int32",
          "description": "Left coordinate in pixels. Optional."
        },
        "right": {
          "type": "integer",
          "format": "int32",
          "description": "Right coordinate in pixels. Optional."
        },
        "top": {
          "type": "integer",
          "format": "int32",
          "description": "Top coordinate in pixels. Optional."
        }
      }
    },
    "BrightnessContrast": {
      "type": "object",
      "properties": {
        "brightness": {
          "type": "integer",
          "format": "int32",
          "description": "The adjustment layer's brightness. Range: -150 to 150. Defaults to 0 when adding new layers. Optional for edits",
          "maximum": 150,
          "minimum": -150
        },
        "contrast": {
          "type": "integer",
          "format": "int32",
          "description": "The adjustment layer's contrast. Range: -150 to 150. Defaults to 0 when adding new layers. Optional for edits",
          "maximum": 150,
          "minimum": -150
        }
      }
    },
    "BrightnessContrastAdjustments": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseAdjustment"
        },
        {
          "type": "object",
          "properties": {
            "brightnessContrast": {
              "$ref": "#/$defs/BrightnessContrast",
              "description": "Brightness and contrast adjustment settings"
            }
          }
        }
      ],
      "description": "Brightness and contrast adjustment",
      "required": [
        "brightnessContrast",
        "type"
      ]
    },
    "CharacterStyle": {
      "type": "object",
      "description": "Character-level styling properties for text.",
      "properties": {
        "autoLeading": {
          "type": "boolean",
          "default": false,
          "description": "When true, line height is calculated automatically based on the font size. When false, custom lineHeight is applied. Optional."
        },
        "capsOption": {
          "type": "string",
          "description": "Caps option for text. Optional. Default is normal_caps.",
          "enum": [
            "normal_caps",
            "small_caps",
            "all_caps",
            "all_small_caps"
          ]
        },
        "font": {
          "$ref": "#/$defs/Font",
          "description": "Font definition. Optional."
        },
        "fontAlpha": {
          "type": "number",
          "format": "double",
          "description": "Font alpha/transparency value. Optional. Default is 1.0.",
          "maximum": 1,
          "minimum": 0
        },
        "fontColor": {
          "$ref": "#/$defs/FontColor",
          "description": "Font color settings. Optional. Default is black in RGB."
        },
        "fontSize": {
          "type": "number",
          "format": "double",
          "description": "Font size in pixels. Optional. Default is 30."
        },
        "letterSpacing": {
          "type": "number",
          "format": "double",
          "description": "Letter spacing in pixels. Optional. Default is 0."
        },
        "lineHeight": {
          "type": "number",
          "format": "double",
          "default": 36,
          "description": "Line height (leading) in pixels. Optional. This value represents the unscaled leading stored on the character style. If the text layer carries a non-identity transform, for example because the bounding box was resized in Photoshop, the rendered leading becomes lineHeight x the layer's vertical scale factor. To get exact rendered pixel leading, ensure the layer has no residual scaling (transformMode: none with no scaling Transform applied), or pre-divide the desired rendered leading by the layer's current vertical scale. The same scaling behavior applies to fontSize."
        },
        "syntheticBold": {
          "type": "boolean",
          "description": "Whether to apply synthetic bold. Optional. Default is false."
        },
        "syntheticItalic": {
          "type": "boolean",
          "description": "Whether to apply synthetic italic. Optional. Default is false."
        },
        "underline": {
          "type": "boolean",
          "description": "Whether to apply underline. Optional. Default is false."
        }
      }
    },
    "CharacterStyleRange": {
      "type": "object",
      "description": "Character style range defining styling for specific text ranges.",
      "properties": {
        "apply": {
          "$ref": "#/$defs/Apply",
          "description": "Range of characters to apply styling to. Optional."
        },
        "characterStyle": {
          "$ref": "#/$defs/CharacterStyle",
          "description": "Character style settings. Optional."
        }
      }
    },
    "ColorBalance": {
      "type": "object",
      "properties": {
        "highlightLevels": {
          "type": "array",
          "description": "Array of 3 integers for highlight levels. Each value must be between -100 and 100. Defaults to [0, 0, 0] when adding new layers. Optional for edits",
          "items": {
            "type": "integer",
            "format": "int32",
            "maximum": 100,
            "minimum": -100
          },
          "maxItems": 3,
          "minItems": 3
        },
        "midtoneLevels": {
          "type": "array",
          "description": "Array of 3 integers for midtone levels. Each value must be between -100 and 100. Defaults to [0, 0, 0] when adding new layers. Optional for edits",
          "items": {
            "type": "integer",
            "format": "int32",
            "maximum": 100,
            "minimum": -100
          },
          "maxItems": 3,
          "minItems": 3
        },
        "preserveLuminosity": {
          "type": "boolean",
          "description": "Whether to preserve luminosity. Defaults to true when adding new layers. Optional for edits"
        },
        "shadowLevels": {
          "type": "array",
          "description": "Array of 3 integers for shadow levels. Each value must be between -100 and 100. Defaults to [0, 0, 0] when adding new layers. Optional for edits",
          "items": {
            "type": "integer",
            "format": "int32",
            "maximum": 100,
            "minimum": -100
          },
          "maxItems": 3,
          "minItems": 3
        }
      }
    },
    "ColorBalanceAdjustments": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseAdjustment"
        },
        {
          "type": "object",
          "properties": {
            "colorBalance": {
              "$ref": "#/$defs/ColorBalance",
              "description": "Color balance adjustment settings"
            }
          }
        }
      ],
      "description": "Color balance adjustment",
      "required": [
        "colorBalance",
        "type"
      ]
    },
    "CreativeCloudDestination": {
      "allOf": [
        {
          "$ref": "#/$defs/Destination"
        },
        {
          "type": "object",
          "properties": {
            "creativeCloudPath": {
              "type": "string",
              "description": "Path to Creative Cloud storage. Required.",
              "minLength": 1
            },
            "creativeCloudProjectId": {
              "type": "string",
              "description": "The Creative Cloud project ID. Optional. Must be a valid URN starting with 'urn:aaid:sc:'. Example: urn:aaid:sc:US:a21c8629-413f-55d9-...",
              "pattern": "^urn:aaid:.*"
            }
          }
        }
      ],
      "required": [
        "creativeCloudPath"
      ]
    },
    "CreativeCloudFileIdResourceInput": {
      "allOf": [
        {
          "$ref": "#/$defs/ResourceInput"
        },
        {
          "type": "object",
          "properties": {
            "creativeCloudFileId": {
              "type": "string",
              "description": "The file ID of the asset in Creative Cloud. Required. Must start with 'urn:aaid' (case-insensitive).",
              "minLength": 1,
              "pattern": "^urn:aaid:.*"
            }
          }
        }
      ],
      "description": "Creative Cloud file ID resource input. References a resource via Creative Cloud file ID (URN).",
      "required": [
        "creativeCloudFileId"
      ]
    },
    "CreativeCloudResourceInput": {
      "allOf": [
        {
          "$ref": "#/$defs/ResourceInput"
        },
        {
          "type": "object",
          "properties": {
            "creativeCloudPath": {
              "type": "string",
              "description": "The path to the asset in Creative Cloud. Required.",
              "minLength": 1
            },
            "creativeCloudProjectId": {
              "type": "string",
              "description": "The Creative Cloud project ID. Optional. Must be a valid URN starting with 'urn:aaid:sc:'. Example: urn:aaid:sc:US:a21c8629-413f-55d9-...",
              "pattern": "^urn:aaid:.*"
            }
          }
        }
      ],
      "description": "Creative Cloud resource input. References a resource via Creative Cloud path.",
      "required": [
        "creativeCloudPath"
      ]
    },
    "Crop": {
      "type": "object",
      "description": "Options for cropping a document, specifying the bounds to crop to.",
      "properties": {
        "bounds": {
          "$ref": "#/$defs/Bounds",
          "description": "The bounds to crop the document to"
        },
        "hide": {
          "type": "boolean",
          "description": "When true, hides pixels outside the crop bounds (non-destructive). When false, permanently deletes pixels outside the crop bounds (destructive). Defaults to false."
        }
      },
      "required": [
        "bounds"
      ]
    },
    "CurvePoint": {
      "type": "object",
      "description": "A single point on a contour curve.",
      "properties": {
        "continuity": {
          "type": "boolean",
          "description": "Whether the curve point is smooth (true) or a corner (false). Required."
        },
        "horizontal": {
          "type": "number",
          "format": "double",
          "description": "Horizontal position of the curve point. Range: 0-255. Required.",
          "maximum": 255,
          "minimum": 0
        },
        "vertical": {
          "type": "number",
          "format": "double",
          "description": "Vertical position of the curve point. Range: 0-255. Required.",
          "maximum": 255,
          "minimum": 0
        }
      },
      "required": [
        "continuity",
        "horizontal",
        "vertical"
      ]
    },
    "CustomIccProfile": {
      "allOf": [
        {
          "$ref": "#/$defs/IccProfile"
        },
        {
          "type": "object",
          "properties": {
            "imageMode": {
              "type": "string",
              "description": "Image mode for custom ICC profiles. Allowed values: rgb, grayscale, cmyk. Optional",
              "enum": [
                "rgb",
                "grayscale",
                "cmyk"
              ]
            },
            "name": {
              "type": "string",
              "description": "Custom ICC profile name. Provide a descriptive name (max 255 characters). Required.",
              "maxLength": 255,
              "minLength": 0
            },
            "source": {
              "$ref": "#/$defs/FileResourceInput",
              "description": "Resource input for custom ICC profile file. Required. Must point to a valid .icc or .icm file. Supports URL, Creative Cloud, and other resource types.",
              "oneOf": [
                {
                  "$ref": "#/$defs/UrlResourceInput"
                },
                {
                  "$ref": "#/$defs/CreativeCloudResourceInput"
                },
                {
                  "$ref": "#/$defs/CreativeCloudFileIdResourceInput"
                }
              ]
            }
          }
        }
      ],
      "description": "Custom ICC profile with user-provided profile file",
      "required": [
        "name",
        "source",
        "type"
      ]
    },
    "DeleteLayer": {
      "allOf": [
        {
          "$ref": "#/$defs/OperationBase"
        }
      ],
      "description": "Layer for delete operations",
      "required": [
        "operation"
      ]
    },
    "DeleteOperation": {
      "allOf": [
        {
          "$ref": "#/$defs/Operation"
        },
        {
          "type": "object",
          "properties": {
            "shouldIncludeChildren": {
              "type": "boolean",
              "description": "Whether to include child layers in the deletion. Optional. Default - true"
            }
          }
        }
      ],
      "description": "Delete operation for removing layers.",
      "required": [
        "type"
      ]
    },
    "Destination": {
      "description": "Destination for output files. Can be either a URL with optional storage type or a Creative Cloud path."
    },
    "Dimension": {
      "type": "object",
      "description": "Offset coordinates for positioning elements.",
      "properties": {
        "height": {
          "type": "integer",
          "format": "int32",
          "description": "Height after transformation. Optional.",
          "maximum": 32000,
          "minimum": 0
        },
        "unit": {
          "type": "string",
          "default": "pixels_unit",
          "description": "Unit for width and height. Accepted values for transform dimensions: 'pixels_unit' (default) and 'points_unit'. Optional — omitting this field defaults to pixels_unit.",
          "enum": [
            "pixels_unit",
            "points_unit"
          ]
        },
        "width": {
          "type": "integer",
          "format": "int32",
          "description": "Width after transformation. Optional.",
          "maximum": 32000,
          "minimum": 0
        }
      }
    },
    "DimensionMeasurement": {
      "type": "object",
      "description": "Represents a dimension measurement for width or height with appropriate units.",
      "properties": {
        "unit": {
          "type": "string",
          "default": "pixels_unit",
          "description": "The unit of measurement for the dimension. 'pixels_unit' for absolute pixel measurements (default), 'percent_unit' for percentage-based scaling, 'distance_unit' for physical measurements, 'points_unit' for typographic points — converted to pixels using pixels = round(value × dpi / 72) before processing. Defaults to pixels_unit when omitted.",
          "enum": [
            "pixels_unit",
            "percent_unit",
            "distance_unit",
            "points_unit"
          ]
        },
        "value": {
          "type": "integer",
          "format": "int32",
          "description": "The value of the dimension. Must be greater than or equal to 0.",
          "minimum": 0
        }
      },
      "required": [
        "unit"
      ]
    },
    "Document": {
      "type": "object",
      "description": "Represents the editable document structure, including resize, crop and trim options. Each field corresponds to a specific type of document edit operation.",
      "properties": {
        "crop": {
          "$ref": "#/$defs/Crop",
          "description": "Crop options for the document. Includes bounds for cropping."
        },
        "resize": {
          "$ref": "#/$defs/Resize",
          "description": "Resize options for the document. Includes width, height, resolution, resample type, and booleans for constraining proportions, scaling styles, and rasterizing."
        },
        "trim": {
          "$ref": "#/$defs/Trim",
          "description": "Trim options for the document. Includes a 'basedOn' field to specify the trim basis."
        }
      }
    },
    "DropShadow": {
      "type": "object",
      "description": "Drop shadow layer effect.",
      "properties": {
        "angle": {
          "type": "integer",
          "format": "int32",
          "description": "Local lighting angle in degrees. Used when useGlobalLight is false. Range: -180 to 180. Optional.",
          "maximum": 180,
          "minimum": -180
        },
        "antiAliased": {
          "type": "boolean",
          "description": "Whether anti-aliasing is applied to the drop shadow contour. Optional."
        },
        "blendMode": {
          "type": "string",
          "description": "Blend mode for the drop shadow. Optional.",
          "enum": [
            "normal",
            "dissolve",
            "darken",
            "multiply",
            "color_burn",
            "linear_burn",
            "darker_color",
            "lighten",
            "screen",
            "color_dodge",
            "linear_dodge",
            "lighter_color",
            "overlay",
            "soft_light",
            "hard_light",
            "vivid_light",
            "pin_light",
            "hard_mix",
            "difference",
            "exclusion",
            "divide",
            "hue",
            "saturation",
            "color",
            "luminosity"
          ]
        },
        "color": {
          "$ref": "#/$defs/EffectColor",
          "description": "Color of the drop shadow. Optional."
        },
        "contour": {
          "$ref": "#/$defs/TransparencyShape",
          "description": "Contour applied to the drop shadow. Optional."
        },
        "distance": {
          "type": "integer",
          "format": "int32",
          "description": "Distance of the drop shadow in pixels. Range: 0-30000. Optional.",
          "maximum": 30000,
          "minimum": 0
        },
        "enabled": {
          "type": "boolean",
          "description": "Whether the drop shadow effect is enabled. Optional."
        },
        "layerKnocksOut": {
          "type": "boolean",
          "description": "Whether the layer's content knocks out (hides) the drop shadow beneath it. Optional."
        },
        "noise": {
          "type": "integer",
          "format": "int32",
          "description": "Noise applied to the drop shadow as a percentage. Range: 0-100. Optional.",
          "maximum": 100,
          "minimum": 0
        },
        "opacity": {
          "type": "integer",
          "format": "int32",
          "description": "Opacity of the drop shadow as a percentage. Range: 0-100. Optional.",
          "maximum": 100,
          "minimum": 0
        },
        "size": {
          "type": "integer",
          "format": "int32",
          "description": "Size of the drop shadow in pixels. Range: 0-250. Optional.",
          "maximum": 250,
          "minimum": 0
        },
        "spread": {
          "type": "integer",
          "format": "int32",
          "description": "Spread of the drop shadow as a percentage. Range: 0-100. Optional.",
          "maximum": 100,
          "minimum": 0
        },
        "useGlobalLight": {
          "type": "boolean",
          "description": "Whether to use the document's global light angle. Optional."
        }
      }
    },
    "EditAdjustmentLayer": {
      "allOf": [
        {
          "$ref": "#/$defs/OperationBase"
        },
        {
          "type": "object",
          "properties": {
            "adjustments": {
              "description": "Adjustment settings to apply. Must specify exactly one adjustment type (brightness_contrast, hue_saturation, exposure, or color_balance).",
              "oneOf": [
                {
                  "$ref": "#/$defs/BrightnessContrastAdjustments"
                },
                {
                  "$ref": "#/$defs/ColorBalanceAdjustments"
                },
                {
                  "$ref": "#/$defs/ExposureAdjustments"
                },
                {
                  "$ref": "#/$defs/HueSaturationAdjustments"
                }
              ]
            },
            "blendOptions": {
              "$ref": "#/$defs/BlendOptions",
              "description": "Blend options for the layer"
            },
            "isClipped": {
              "type": "boolean",
              "description": "Whether the layer is clipped. Optional for edits."
            },
            "isVisible": {
              "type": "boolean",
              "description": "Whether the layer is visible. Defaults to true when adding layers. Optional for edits."
            },
            "layerEffects": {
              "$ref": "#/$defs/LayerEffects",
              "description": "Layer Style effects applied to the layer (e.g. drop shadow). Optional."
            },
            "pixelMask": {
              "$ref": "#/$defs/EditPixelMask",
              "description": "Pixel mask applied to the layer. Supports delete for edit operations."
            },
            "protection": {
              "type": "array",
              "description": "Protection flags for the layer (e.g. none, all, transparency, composite, position, artboard_autonest). Defaults to 'none' when adding layers. Optional for edits; omit, null, or empty array [] mean 'don't change'. When 'none' or 'all' is used, the array must contain only that element.",
              "items": {
                "type": "string",
                "description": "Protection flag for layer. Used in protection array.",
                "enum": [
                  "none",
                  "all",
                  "transparency",
                  "composite",
                  "position",
                  "artboard_autonest"
                ]
              }
            },
            "transform": {
              "$ref": "#/$defs/Transform",
              "description": "Transform applied to the layer"
            },
            "transformMode": {
              "type": "string",
              "description": "Transform mode applied to the layer. Defaults to 'none' when adding layers. Optional for edits. Modes: 'none' — applies no scaling. 'fit' — scales the layer uniformly to fit within the canvas bounds while preserving aspect ratio. 'fill' — scales the layer uniformly to fill the canvas bounds while preserving aspect ratio, cropping overflow if the layer's aspect ratio differs from the canvas. 'custom' — applies the exact width and height from the Transform without preserving aspect ratio. Important for text layers: Any mode other than 'none' (or any non-identity scale on the Transform) causes the type engine to render glyphs and leading multiplied by the layer's scale factors. fontSize and lineHeight in CharacterStyle are stored unscaled. The rendered output becomes: fontSize x horizontalScale and lineHeight x verticalScale. To produce text at exact pixel sizes, use transformMode 'none' and avoid scaling Transforms on text layers.",
              "enum": [
                "fit",
                "fill",
                "custom",
                "none"
              ]
            },
            "type": {
              "type": "string",
              "description": "Type of layer.  Required for add/edit operations, optional for delete/move.",
              "enum": [
                "layer",
                "solid_color_layer",
                "text_layer",
                "smart_object_layer",
                "adjustment_layer",
                "group_layer",
                "background_layer"
              ]
            }
          }
        }
      ],
      "description": "Adjustment layer for applying image adjustments like brightness, contrast, hue/saturation, etc.",
      "required": [
        "operation"
      ]
    },
    "EditBackgroundLayer": {
      "allOf": [
        {
          "$ref": "#/$defs/OperationBase"
        },
        {
          "type": "object",
          "properties": {
            "blendOptions": {
              "$ref": "#/$defs/BlendOptions",
              "description": "Blend options for the layer"
            },
            "convertToLayer": {
              "type": "boolean",
              "description": "When true, promotes the background layer to a regular layer. Mutually exclusive with image."
            },
            "convertedLayerName": {
              "type": "string",
              "description": "Name to set on the layer after conversion. Only applicable when convertToLayer is true. Optional."
            },
            "image": {
              "$ref": "#/$defs/ImageSource",
              "description": "Image content for pixel replacement of the background layer. Mutually exclusive with convertToLayer."
            },
            "isVisible": {
              "type": "boolean",
              "description": "Whether the layer is visible. Defaults to true when adding layers. Optional for edits."
            },
            "layerEffects": {
              "$ref": "#/$defs/LayerEffects",
              "description": "Layer Style effects applied to the layer (e.g. drop shadow). Optional."
            },
            "pixelMask": {
              "$ref": "#/$defs/EditPixelMask",
              "description": "Pixel mask applied to the layer. Supports delete for edit operations."
            },
            "protection": {
              "type": "array",
              "description": "Protection flags for the layer (e.g. none, all, transparency, composite, position, artboard_autonest). Defaults to 'none' when adding layers. Optional for edits; omit, null, or empty array [] mean 'don't change'. When 'none' or 'all' is used, the array must contain only that element.",
              "items": {
                "type": "string",
                "description": "Protection flag for layer. Used in protection array.",
                "enum": [
                  "none",
                  "all",
                  "transparency",
                  "composite",
                  "position",
                  "artboard_autonest"
                ]
              }
            },
            "transform": {
              "$ref": "#/$defs/Transform",
              "description": "Transform applied to the layer"
            },
            "transformMode": {
              "type": "string",
              "description": "Transform mode applied to the layer. Defaults to 'none' when adding layers. Optional for edits. Modes: 'none' — applies no scaling. 'fit' — scales the layer uniformly to fit within the canvas bounds while preserving aspect ratio. 'fill' — scales the layer uniformly to fill the canvas bounds while preserving aspect ratio, cropping overflow if the layer's aspect ratio differs from the canvas. 'custom' — applies the exact width and height from the Transform without preserving aspect ratio. Important for text layers: Any mode other than 'none' (or any non-identity scale on the Transform) causes the type engine to render glyphs and leading multiplied by the layer's scale factors. fontSize and lineHeight in CharacterStyle are stored unscaled. The rendered output becomes: fontSize x horizontalScale and lineHeight x verticalScale. To produce text at exact pixel sizes, use transformMode 'none' and avoid scaling Transforms on text layers.",
              "enum": [
                "fit",
                "fill",
                "custom",
                "none"
              ]
            },
            "type": {
              "type": "string",
              "description": "Type of layer.  Required for add/edit operations, optional for delete/move.",
              "enum": [
                "layer",
                "solid_color_layer",
                "text_layer",
                "smart_object_layer",
                "adjustment_layer",
                "group_layer",
                "background_layer"
              ]
            }
          }
        }
      ],
      "description": "Background layer for editing an existing background layer.",
      "required": [
        "operation"
      ]
    },
    "EditGroupLayer": {
      "allOf": [
        {
          "$ref": "#/$defs/OperationBase"
        },
        {
          "type": "object",
          "properties": {
            "blendOptions": {
              "$ref": "#/$defs/BlendOptions",
              "description": "Blend options for the layer"
            },
            "isVisible": {
              "type": "boolean",
              "description": "Whether the layer is visible. Defaults to true when adding layers. Optional for edits."
            },
            "layerEffects": {
              "$ref": "#/$defs/LayerEffects",
              "description": "Layer Style effects applied to the layer (e.g. drop shadow). Optional."
            },
            "pixelMask": {
              "$ref": "#/$defs/EditPixelMask",
              "description": "Pixel mask applied to the layer. Supports delete for edit operations."
            },
            "protection": {
              "type": "array",
              "description": "Protection flags for the layer (e.g. none, all, transparency, composite, position, artboard_autonest). Defaults to 'none' when adding layers. Optional for edits; omit, null, or empty array [] mean 'don't change'. When 'none' or 'all' is used, the array must contain only that element.",
              "items": {
                "type": "string",
                "description": "Protection flag for layer. Used in protection array.",
                "enum": [
                  "none",
                  "all",
                  "transparency",
                  "composite",
                  "position",
                  "artboard_autonest"
                ]
              }
            },
            "transform": {
              "$ref": "#/$defs/Transform",
              "description": "Transform applied to the layer"
            },
            "transformMode": {
              "type": "string",
              "description": "Transform mode applied to the layer. Defaults to 'none' when adding layers. Optional for edits. Modes: 'none' — applies no scaling. 'fit' — scales the layer uniformly to fit within the canvas bounds while preserving aspect ratio. 'fill' — scales the layer uniformly to fill the canvas bounds while preserving aspect ratio, cropping overflow if the layer's aspect ratio differs from the canvas. 'custom' — applies the exact width and height from the Transform without preserving aspect ratio. Important for text layers: Any mode other than 'none' (or any non-identity scale on the Transform) causes the type engine to render glyphs and leading multiplied by the layer's scale factors. fontSize and lineHeight in CharacterStyle are stored unscaled. The rendered output becomes: fontSize x horizontalScale and lineHeight x verticalScale. To produce text at exact pixel sizes, use transformMode 'none' and avoid scaling Transforms on text layers.",
              "enum": [
                "fit",
                "fill",
                "custom",
                "none"
              ]
            },
            "type": {
              "type": "string",
              "description": "Type of layer.  Required for add/edit operations, optional for delete/move.",
              "enum": [
                "layer",
                "solid_color_layer",
                "text_layer",
                "smart_object_layer",
                "adjustment_layer",
                "group_layer",
                "background_layer"
              ]
            }
          }
        }
      ],
      "description": "Group layer for organizing layers hierarchically.",
      "required": [
        "operation"
      ]
    },
    "EditLayer": {
      "allOf": [
        {
          "$ref": "#/$defs/OperationBase"
        },
        {
          "type": "object",
          "properties": {
            "blendOptions": {
              "$ref": "#/$defs/BlendOptions",
              "description": "Blend options for the layer"
            },
            "image": {
              "$ref": "#/$defs/ImageSource",
              "description": "Image content including source URL. Supported file formats: PSD, PNG, JPEG, SVG."
            },
            "isClipped": {
              "type": "boolean",
              "description": "Whether the layer is clipped. Optional for edits."
            },
            "isVisible": {
              "type": "boolean",
              "description": "Whether the layer is visible. Defaults to true when adding layers. Optional for edits."
            },
            "layerEffects": {
              "$ref": "#/$defs/LayerEffects",
              "description": "Layer Style effects applied to the layer (e.g. drop shadow). Optional."
            },
            "pixelMask": {
              "$ref": "#/$defs/EditPixelMask",
              "description": "Pixel mask applied to the layer. Supports delete for edit operations."
            },
            "protection": {
              "type": "array",
              "description": "Protection flags for the layer (e.g. none, all, transparency, composite, position, artboard_autonest). Defaults to 'none' when adding layers. Optional for edits; omit, null, or empty array [] mean 'don't change'. When 'none' or 'all' is used, the array must contain only that element.",
              "items": {
                "type": "string",
                "description": "Protection flag for layer. Used in protection array.",
                "enum": [
                  "none",
                  "all",
                  "transparency",
                  "composite",
                  "position",
                  "artboard_autonest"
                ]
              }
            },
            "transform": {
              "$ref": "#/$defs/Transform",
              "description": "Transform applied to the layer"
            },
            "transformMode": {
              "type": "string",
              "description": "Transform mode applied to the layer. Defaults to 'none' when adding layers. Optional for edits. Modes: 'none' — applies no scaling. 'fit' — scales the layer uniformly to fit within the canvas bounds while preserving aspect ratio. 'fill' — scales the layer uniformly to fill the canvas bounds while preserving aspect ratio, cropping overflow if the layer's aspect ratio differs from the canvas. 'custom' — applies the exact width and height from the Transform without preserving aspect ratio. Important for text layers: Any mode other than 'none' (or any non-identity scale on the Transform) causes the type engine to render glyphs and leading multiplied by the layer's scale factors. fontSize and lineHeight in CharacterStyle are stored unscaled. The rendered output becomes: fontSize x horizontalScale and lineHeight x verticalScale. To produce text at exact pixel sizes, use transformMode 'none' and avoid scaling Transforms on text layers.",
              "enum": [
                "fit",
                "fill",
                "custom",
                "none"
              ]
            },
            "type": {
              "type": "string",
              "description": "Type of layer.  Required for add/edit operations, optional for delete/move.",
              "enum": [
                "layer",
                "solid_color_layer",
                "text_layer",
                "smart_object_layer",
                "adjustment_layer",
                "group_layer",
                "background_layer"
              ]
            }
          }
        }
      ],
      "description": "Image layer for editing existing image layers.",
      "required": [
        "operation"
      ]
    },
    "EditOperation": {
      "allOf": [
        {
          "$ref": "#/$defs/Operation"
        }
      ],
      "description": "Edit operation for modifying existing layer properties",
      "required": [
        "type"
      ]
    },
    "EditPixelMask": {
      "type": "object",
      "description": "Pixel mask settings for edit operations. Extends PixelMask with the ability to delete the mask.",
      "properties": {
        "delete": {
          "type": "boolean",
          "description": "When true, removes the pixel mask from the layer. Takes precedence over all other options. Defaults to false."
        },
        "isEnabled": {
          "type": "boolean",
          "description": "Whether the pixel mask is enabled. Optional. Defaults to true when adding new layers. Optional for edits"
        },
        "isLinked": {
          "type": "boolean",
          "description": "Whether the pixel mask is linked to the layer. Optional. Defaults to true when adding new layers. Optional for edits"
        },
        "offset": {
          "$ref": "#/$defs/Offset",
          "description": "Offset position for the pixel mask. Optional."
        },
        "source": {
          "$ref": "#/$defs/FileResourceInput",
          "description": "Source input for the pixel mask. Must be an external file reference (URL, Creative Cloud path, or asset ID). Inline content is not supported. Optional."
        }
      },
      "required": [
        "delete"
      ]
    },
    "EditSmartObject": {
      "type": "object",
      "description": "Smart object settings and file reference for edit operations.",
      "properties": {
        "autoResize": {
          "type": "boolean",
          "default": true,
          "description": "Controls how the embedded smart object content is sized when a replacement file is provided. Only applies to embedded smart objects (isLinked=false) with raster (PNG, JPEG, TIFF, PSD) or PDF/AI replacement files. SVG, vector formats without intrinsic dimensions, and linked smart objects are unaffected. true (default): scales the replacement to match the original smart object's canvas dimensions and resolution. false: preserves the replacement file's native dimensions and dpi."
        },
        "contentPlacement": {
          "$ref": "#/$defs/SmartObjectContentPlacement",
          "description": "Optional frame-contained replacement policy for an existing embedded smart object. Requires smartObjectFile.source and isLinked=false. Omit autoResize, transformMode and transform when using this option. Omitting contentPlacement preserves the existing replacement behavior."
        },
        "isLinked": {
          "type": "boolean",
          "default": false,
          "description": "Whether the smart object is linked to the layer."
        },
        "smartObjectFile": {
          "$ref": "#/$defs/SmartObjectFile",
          "description": "File reference for the smart object. Supported file formats: PSD, PNG, JPEG, TIFF, SVG, PDF, AI. Optional."
        }
      }
    },
    "EditSmartObjectLayer": {
      "allOf": [
        {
          "$ref": "#/$defs/OperationBase"
        },
        {
          "type": "object",
          "properties": {
            "blendOptions": {
              "$ref": "#/$defs/BlendOptions",
              "description": "Blend options for the layer"
            },
            "isClipped": {
              "type": "boolean",
              "description": "Whether the layer is clipped. Optional for edits."
            },
            "isVisible": {
              "type": "boolean",
              "description": "Whether the layer is visible. Defaults to true when adding layers. Optional for edits."
            },
            "layerEffects": {
              "$ref": "#/$defs/LayerEffects",
              "description": "Layer Style effects applied to the layer (e.g. drop shadow). Optional."
            },
            "pixelMask": {
              "$ref": "#/$defs/EditPixelMask",
              "description": "Pixel mask applied to the layer. Supports delete for edit operations."
            },
            "protection": {
              "type": "array",
              "description": "Protection flags for the layer (e.g. none, all, transparency, composite, position, artboard_autonest). Defaults to 'none' when adding layers. Optional for edits; omit, null, or empty array [] mean 'don't change'. When 'none' or 'all' is used, the array must contain only that element.",
              "items": {
                "type": "string",
                "description": "Protection flag for layer. Used in protection array.",
                "enum": [
                  "none",
                  "all",
                  "transparency",
                  "composite",
                  "position",
                  "artboard_autonest"
                ]
              }
            },
            "smartObject": {
              "$ref": "#/$defs/EditSmartObject",
              "description": "Smart object settings and file reference."
            },
            "transform": {
              "$ref": "#/$defs/Transform",
              "description": "Transform applied to the layer"
            },
            "transformMode": {
              "type": "string",
              "description": "Transform mode applied to the layer. Defaults to 'none' when adding layers. Optional for edits. Modes: 'none' — applies no scaling. 'fit' — scales the layer uniformly to fit within the canvas bounds while preserving aspect ratio. 'fill' — scales the layer uniformly to fill the canvas bounds while preserving aspect ratio, cropping overflow if the layer's aspect ratio differs from the canvas. 'custom' — applies the exact width and height from the Transform without preserving aspect ratio. Important for text layers: Any mode other than 'none' (or any non-identity scale on the Transform) causes the type engine to render glyphs and leading multiplied by the layer's scale factors. fontSize and lineHeight in CharacterStyle are stored unscaled. The rendered output becomes: fontSize x horizontalScale and lineHeight x verticalScale. To produce text at exact pixel sizes, use transformMode 'none' and avoid scaling Transforms on text layers.",
              "enum": [
                "fit",
                "fill",
                "custom",
                "none"
              ]
            },
            "type": {
              "type": "string",
              "description": "Type of layer.  Required for add/edit operations, optional for delete/move.",
              "enum": [
                "layer",
                "solid_color_layer",
                "text_layer",
                "smart_object_layer",
                "adjustment_layer",
                "group_layer",
                "background_layer"
              ]
            }
          }
        }
      ],
      "description": "Smart object layer for embedding external files or vector graphics.",
      "required": [
        "operation"
      ]
    },
    "EditSolidColorLayer": {
      "allOf": [
        {
          "$ref": "#/$defs/OperationBase"
        },
        {
          "type": "object",
          "properties": {
            "blendOptions": {
              "$ref": "#/$defs/BlendOptions",
              "description": "Blend options for the layer"
            },
            "fill": {
              "$ref": "#/$defs/Fill",
              "description": "Fill settings including color."
            },
            "isClipped": {
              "type": "boolean",
              "description": "Whether the layer is clipped. Optional for edits."
            },
            "isVisible": {
              "type": "boolean",
              "description": "Whether the layer is visible. Defaults to true when adding layers. Optional for edits."
            },
            "layerEffects": {
              "$ref": "#/$defs/LayerEffects",
              "description": "Layer Style effects applied to the layer (e.g. drop shadow). Optional."
            },
            "pixelMask": {
              "$ref": "#/$defs/EditPixelMask",
              "description": "Pixel mask applied to the layer. Supports delete for edit operations."
            },
            "protection": {
              "type": "array",
              "description": "Protection flags for the layer (e.g. none, all, transparency, composite, position, artboard_autonest). Defaults to 'none' when adding layers. Optional for edits; omit, null, or empty array [] mean 'don't change'. When 'none' or 'all' is used, the array must contain only that element.",
              "items": {
                "type": "string",
                "description": "Protection flag for layer. Used in protection array.",
                "enum": [
                  "none",
                  "all",
                  "transparency",
                  "composite",
                  "position",
                  "artboard_autonest"
                ]
              }
            },
            "transform": {
              "$ref": "#/$defs/Transform",
              "description": "Transform applied to the layer"
            },
            "transformMode": {
              "type": "string",
              "description": "Transform mode applied to the layer. Defaults to 'none' when adding layers. Optional for edits. Modes: 'none' — applies no scaling. 'fit' — scales the layer uniformly to fit within the canvas bounds while preserving aspect ratio. 'fill' — scales the layer uniformly to fill the canvas bounds while preserving aspect ratio, cropping overflow if the layer's aspect ratio differs from the canvas. 'custom' — applies the exact width and height from the Transform without preserving aspect ratio. Important for text layers: Any mode other than 'none' (or any non-identity scale on the Transform) causes the type engine to render glyphs and leading multiplied by the layer's scale factors. fontSize and lineHeight in CharacterStyle are stored unscaled. The rendered output becomes: fontSize x horizontalScale and lineHeight x verticalScale. To produce text at exact pixel sizes, use transformMode 'none' and avoid scaling Transforms on text layers.",
              "enum": [
                "fit",
                "fill",
                "custom",
                "none"
              ]
            },
            "type": {
              "type": "string",
              "description": "Type of layer.  Required for add/edit operations, optional for delete/move.",
              "enum": [
                "layer",
                "solid_color_layer",
                "text_layer",
                "smart_object_layer",
                "adjustment_layer",
                "group_layer",
                "background_layer"
              ]
            }
          }
        }
      ],
      "description": "Fill layer for editing solid color layer.",
      "required": [
        "operation"
      ]
    },
    "EditTextLayer": {
      "allOf": [
        {
          "$ref": "#/$defs/OperationBase"
        },
        {
          "type": "object",
          "properties": {
            "blendOptions": {
              "$ref": "#/$defs/BlendOptions",
              "description": "Blend options for the layer"
            },
            "isClipped": {
              "type": "boolean",
              "description": "Whether the layer is clipped. Optional for edits."
            },
            "isVisible": {
              "type": "boolean",
              "description": "Whether the layer is visible. Defaults to true when adding layers. Optional for edits."
            },
            "layerEffects": {
              "$ref": "#/$defs/LayerEffects",
              "description": "Layer Style effects applied to the layer (e.g. drop shadow). Optional."
            },
            "pixelMask": {
              "$ref": "#/$defs/EditPixelMask",
              "description": "Pixel mask applied to the layer. Supports delete for edit operations."
            },
            "protection": {
              "type": "array",
              "description": "Protection flags for the layer (e.g. none, all, transparency, composite, position, artboard_autonest). Defaults to 'none' when adding layers. Optional for edits; omit, null, or empty array [] mean 'don't change'. When 'none' or 'all' is used, the array must contain only that element.",
              "items": {
                "type": "string",
                "description": "Protection flag for layer. Used in protection array.",
                "enum": [
                  "none",
                  "all",
                  "transparency",
                  "composite",
                  "position",
                  "artboard_autonest"
                ]
              }
            },
            "text": {
              "$ref": "#/$defs/Text",
              "description": "Text content and formatting settings for this text layer. Optional."
            },
            "transform": {
              "$ref": "#/$defs/Transform",
              "description": "Transform applied to the layer"
            },
            "transformMode": {
              "type": "string",
              "description": "Transform mode applied to the layer. Defaults to 'none' when adding layers. Optional for edits. Modes: 'none' — applies no scaling. 'fit' — scales the layer uniformly to fit within the canvas bounds while preserving aspect ratio. 'fill' — scales the layer uniformly to fill the canvas bounds while preserving aspect ratio, cropping overflow if the layer's aspect ratio differs from the canvas. 'custom' — applies the exact width and height from the Transform without preserving aspect ratio. Important for text layers: Any mode other than 'none' (or any non-identity scale on the Transform) causes the type engine to render glyphs and leading multiplied by the layer's scale factors. fontSize and lineHeight in CharacterStyle are stored unscaled. The rendered output becomes: fontSize x horizontalScale and lineHeight x verticalScale. To produce text at exact pixel sizes, use transformMode 'none' and avoid scaling Transforms on text layers.",
              "enum": [
                "fit",
                "fill",
                "custom",
                "none"
              ]
            },
            "type": {
              "type": "string",
              "description": "Type of layer.  Required for add/edit operations, optional for delete/move.",
              "enum": [
                "layer",
                "solid_color_layer",
                "text_layer",
                "smart_object_layer",
                "adjustment_layer",
                "group_layer",
                "background_layer"
              ]
            }
          }
        }
      ],
      "description": "Text layer for adding text content in the document.",
      "required": [
        "operation"
      ]
    },
    "Edits": {
      "type": "object",
      "properties": {
        "document": {
          "$ref": "#/$defs/Document",
          "description": "Document-level edits such as resize, crop, trim, etc. Optional."
        },
        "layers": {
          "type": "array",
          "description": "Array of layer edits to be applied. Optional.",
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/AddAdjustmentLayer"
              },
              {
                "$ref": "#/$defs/AddBackgroundLayer"
              },
              {
                "$ref": "#/$defs/AddLayer"
              },
              {
                "$ref": "#/$defs/AddSmartObjectLayer"
              },
              {
                "$ref": "#/$defs/AddSolidColorLayer"
              },
              {
                "$ref": "#/$defs/AddTextLayer"
              },
              {
                "$ref": "#/$defs/DeleteLayer"
              },
              {
                "$ref": "#/$defs/EditAdjustmentLayer"
              },
              {
                "$ref": "#/$defs/EditBackgroundLayer"
              },
              {
                "$ref": "#/$defs/EditGroupLayer"
              },
              {
                "$ref": "#/$defs/EditLayer"
              },
              {
                "$ref": "#/$defs/EditSmartObjectLayer"
              },
              {
                "$ref": "#/$defs/EditSolidColorLayer"
              },
              {
                "$ref": "#/$defs/EditTextLayer"
              },
              {
                "$ref": "#/$defs/MoveLayer"
              }
            ]
          }
        }
      }
    },
    "EffectColor": {
      "type": "object",
      "description": "Color for a layer effect.",
      "properties": {
        "rgb": {
          "$ref": "#/$defs/Rgb",
          "description": "RGB color values."
        }
      },
      "required": [
        "rgb"
      ]
    },
    "EmbeddedDestination": {
      "allOf": [
        {
          "$ref": "#/$defs/Destination"
        },
        {
          "type": "object",
          "properties": {
            "embedded": {
              "type": "string",
              "default": "string",
              "description": "Embedded format (string, base64, or json). Defaults to string when omitted.",
              "enum": [
                "string",
                "base64",
                "json"
              ]
            }
          }
        }
      ],
      "required": [
        "embedded"
      ]
    },
    "ExportReferenceLayer": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "name": {
          "type": "string"
        },
        "shouldIncludeChildren": {
          "type": "boolean",
          "default": true,
          "description": "When this layer is a group, whether to include its children in the export. Defaults to true. Optional."
        }
      }
    },
    "Exposure": {
      "type": "object",
      "properties": {
        "exposureValue": {
          "type": "number",
          "format": "double",
          "description": "The layer's exposure value. Range: -20 to 20. Defaults to 0.0 when adding new layers. Optional for edits",
          "maximum": 20.0,
          "minimum": -20.0
        },
        "gammaCorrection": {
          "type": "number",
          "format": "double",
          "description": "The layer's gamma correction value. Range: 0.01 to 9.99. Defaults to 1.0 when adding new layers. Optional for edits",
          "maximum": 9.99,
          "minimum": 0.01
        },
        "offset": {
          "type": "number",
          "format": "double",
          "description": "The layer's offset value. Range: -0.5 to 0.5. Defaults to 0.0 when adding new layers. Optional for edits",
          "maximum": 0.5,
          "minimum": -0.5
        }
      }
    },
    "ExposureAdjustments": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseAdjustment"
        },
        {
          "type": "object",
          "properties": {
            "exposure": {
              "$ref": "#/$defs/Exposure",
              "description": "Exposure adjustment settings"
            }
          }
        }
      ],
      "description": "Exposure adjustment",
      "required": [
        "exposure",
        "type"
      ]
    },
    "ExtendedPhotoshopOutput": {
      "description": "Export options for a single output.",
      "properties": {
        "mediaType": {
          "type": "string"
        }
      },
      "required": [
        "mediaType"
      ]
    },
    "FileResourceInput": {},
    "Fill": {
      "type": "object",
      "description": "Fill settings for layers.",
      "properties": {
        "solidColor": {
          "$ref": "#/$defs/SolidColor",
          "description": "Solid color fill settings. Optional."
        }
      }
    },
    "Font": {
      "type": "object",
      "description": "Font definition with PostScript name.",
      "properties": {
        "postScriptName": {
          "type": "string",
          "description": "PostScript name of the font for precise identification. Optional."
        }
      }
    },
    "FontColor": {
      "description": "Font color definition supporting RGB, CMYK, LAB, and Grayscale color models in 16-bit depth."
    },
    "FontOptions": {
      "type": "object",
      "properties": {
        "additionalFonts": {
          "type": "array",
          "description": "Array of custom fonts needed in this document. Optional.",
          "items": {
            "$ref": "#/$defs/AdditionalFont"
          }
        },
        "defaultFontPostScriptName": {
          "type": "string",
          "description": "The full postscript name of the font to be used as the global default for the document. Optional."
        },
        "missingFontStrategy": {
          "type": "string",
          "description": "Action to take if there are missing fonts. Optional.",
          "enum": [
            "fail",
            "use_default"
          ]
        }
      }
    },
    "HostedDestination": {
      "allOf": [
        {
          "$ref": "#/$defs/Destination"
        },
        {
          "type": "object",
          "properties": {
            "validityPeriod": {
              "type": "integer",
              "format": "int32",
              "default": 3600,
              "description": "Validity period in seconds. Minimum: 60 seconds (1 minute). Maximum: 86400 seconds (1 day). Defaults to 3600 seconds (1 hour) when omitted.",
              "maximum": 86400,
              "minimum": 60
            }
          }
        }
      ],
      "required": [
        "validityPeriod"
      ]
    },
    "HueSaturation": {
      "type": "object",
      "description": "Hue/Saturation adjustment settings. When colorize is true, LocalRange cannot be used. When colorize is false, LocalRange can only be used for non-master channels (reds, yellows, greens, cyans, blues, magentas).",
      "properties": {
        "colorize": {
          "type": "boolean",
          "description": "Whether to colorize the layer. When true, LocalRange cannot be used in any adjustment. Defaults to false when adding new layers. Optional for edits"
        },
        "hueSaturationAdjustments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/HueSaturationAdjustment",
            "description": "Array of hue/saturation adjustments. For master channel, LocalRange is not applicable."
          },
          "maxItems": 2147483647,
          "minItems": 1
        }
      }
    },
    "HueSaturationAdjustment": {
      "type": "object",
      "properties": {
        "hue": {
          "type": "integer",
          "format": "int32",
          "description": "The hue adjustment value. When colorize=false: -180 to 180. When colorize=true: 0 to 360. Defaults to 0 when adding new layers. Optional for edits"
        },
        "lightness": {
          "type": "integer",
          "format": "int32",
          "description": "The lightness adjustment value. When colorize=false: -100 to 100. When colorize=true: 0 to 100. Defaults to 0 when adding new layers. Optional for edits"
        },
        "localRange": {
          "$ref": "#/$defs/LocalRange",
          "description": "The local range for targeted color adjustments. Only applicable when colorize is false. Contains channel (reds, yellows, greens, cyans, blues, magentas) to specify target channel. If localRange is not present, adjustment applies to master channel (full hue wheel)."
        },
        "saturation": {
          "type": "integer",
          "format": "int32",
          "description": "The saturation adjustment value. When colorize=false: -100 to 100. When colorize=true: 0 to 100. Defaults to 0 when adding new layers. Optional for edits"
        }
      }
    },
    "HueSaturationAdjustments": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseAdjustment"
        },
        {
          "type": "object",
          "properties": {
            "hueSaturation": {
              "$ref": "#/$defs/HueSaturation",
              "description": "Hue and saturation adjustment settings"
            }
          }
        }
      ],
      "description": "Hue and saturation adjustment",
      "required": [
        "hueSaturation",
        "type"
      ]
    },
    "IccProfile": {
      "type": "object",
      "description": "ICC profile configuration for color management",
      "properties": {
        "type": {
          "type": "string",
          "default": "standard",
          "description": "Type of ICC profile. 'standard' for predefined profiles, 'custom' for user-provided profiles. Defaults to standard when omitted; explicit null is invalid.",
          "enum": [
            "standard",
            "custom"
          ]
        }
      },
      "required": [
        "type"
      ]
    },
    "ImageInput": {
      "description": "Image input configuration. Can be either a source image or parameters to create a new image."
    },
    "ImageParameters": {
      "allOf": [
        {
          "$ref": "#/$defs/ImageInput"
        },
        {
          "type": "object",
          "properties": {
            "depth": {
              "type": "integer",
              "format": "int32",
              "description": "Bit depth. Optional. Supported: 1, 8, 16, 32. Valid per mode: rgb/hsb/grayscale(8,16,32), cmyk/lab(8,16), indexed/multichannel/duotone(8), bitmap(1).",
              "enum": [
                1,
                8,
                16,
                32
              ]
            },
            "fill": {
              "type": "string",
              "description": "Fill color for the background. Optional.",
              "enum": [
                "white",
                "background_color",
                "transparent"
              ]
            },
            "height": {
              "type": "integer",
              "format": "int32",
              "default": 100,
              "description": "Height of the canvas in pixels (or points when unit is points_unit). Defaults to 100.",
              "maximum": 32000,
              "minimum": 1
            },
            "iccProfile": {
              "description": "ICC profile configuration for color management. Optional. Supports standard named profiles (e.g. sRGB, Adobe RGB 1998) and custom ICC profile files.",
              "oneOf": [
                {
                  "$ref": "#/$defs/StandardIccProfile"
                },
                {
                  "$ref": "#/$defs/CustomIccProfile"
                }
              ]
            },
            "mode": {
              "type": "string",
              "description": "Color mode. Optional. Supported: rgb, bitmap, grayscale, indexed, cmyk, lab, hsb, duotone, multichannel. Defaults to rgb. Depth constraints per mode: bitmap(omit depth), grayscale(8,16,32), indexed(8), rgb/hsb(8,16,32), cmyk/lab(8,16), multichannel(8,16), duotone(8).",
              "enum": [
                "rgb",
                "bitmap",
                "grayscale",
                "indexed",
                "hsb",
                "cmyk",
                "lab",
                "duotone",
                "multichannel"
              ]
            },
            "name": {
              "type": "string",
              "description": "Name/title of the document. Optional. Maximum 255 characters.",
              "maxLength": 255,
              "minLength": 0
            },
            "pixelScaleFactor": {
              "type": "number",
              "format": "double",
              "default": "1.0",
              "description": "Pixel scale factor. Optional. Must be positive (minimum 0.1).",
              "minimum": 0.1
            },
            "resolution": {
              "$ref": "#/$defs/ResolutionMeasurement",
              "default": {
                "value": 72,
                "unit": "density_unit"
              },
              "description": "Resolution with value and unit. Optional. When specified, value must be a positive number (density_unit)."
            },
            "unit": {
              "type": "string",
              "default": "pixels_unit",
              "description": "Unit applied to width and height values. Use 'points_unit' when dimensions are in typographic points. Defaults to pixels_unit.",
              "enum": [
                "pixels_unit",
                "percent_unit",
                "distance_unit",
                "points_unit"
              ]
            },
            "width": {
              "type": "integer",
              "format": "int32",
              "default": 100,
              "description": "Width of the canvas in pixels (or points when unit is points_unit). Defaults to 100.",
              "maximum": 32000,
              "minimum": 1
            }
          }
        }
      ],
      "required": [
        "height",
        "width"
      ]
    },
    "ImageSource": {
      "type": "object",
      "properties": {
        "source": {
          "$ref": "#/$defs/FileResourceInput",
          "description": "The resource input for the image. Required. Must be an external file reference (URL, Creative Cloud, etc.). Inline content is not supported.",
          "oneOf": [
            {
              "$ref": "#/$defs/UrlResourceInput"
            },
            {
              "$ref": "#/$defs/CreativeCloudResourceInput"
            },
            {
              "$ref": "#/$defs/CreativeCloudFileIdResourceInput"
            },
            {
              "$ref": "#/$defs/LightroomResourceInput"
            }
          ]
        }
      },
      "required": [
        "source"
      ]
    },
    "JpegOutputWithScan": {
      "allOf": [
        {
          "$ref": "#/$defs/ExtendedPhotoshopOutput"
        },
        {
          "type": "object",
          "properties": {
            "cropMode": {
              "type": "string",
              "description": "Crop mode for export output. Optional.",
              "enum": [
                "trim_to_transparency",
                "document_bounds",
                "layer_bounds"
              ]
            },
            "destination": {
              "description": "The destination details for the output file. Required. When scriptOutputPattern is used, only EmbeddedDestination and HostedDestination are supported. URL destinations (presigned URLs) and Creative Cloud destinations cannot be used with scriptOutputPattern because they require pre-knowledge of file names and counts.",
              "oneOf": [
                {
                  "$ref": "#/$defs/CreativeCloudDestination"
                },
                {
                  "$ref": "#/$defs/EmbeddedDestination"
                },
                {
                  "$ref": "#/$defs/HostedDestination"
                },
                {
                  "$ref": "#/$defs/UrlDestination"
                }
              ]
            },
            "height": {
              "type": "integer",
              "format": "int32",
              "description": "Height in pixels. Must be >= 0. Optional.",
              "minimum": 0
            },
            "iccProfile": {
              "description": "ICC profile configuration for color management. Allows specifying standard ICC profiles (e.g., sRGB, Adobe RGB) or custom ICC profile files. Supported output formats: JPEG, PNG, TIFF, PSD. Not supported for PSDC (document/vnd.adobe.cpsd+dcxucf, document/vnd.adobe.cpsd+dcx). Optional.",
              "oneOf": [
                {
                  "$ref": "#/$defs/StandardIccProfile"
                },
                {
                  "$ref": "#/$defs/CustomIccProfile"
                }
              ]
            },
            "layers": {
              "type": "array",
              "description": "Layers to export. Specify layers by id, name, or both. Optional.",
              "items": {
                "$ref": "#/$defs/ExportReferenceLayer"
              },
              "maxItems": 100,
              "minItems": 0
            },
            "maxWidth": {
              "type": "integer",
              "format": "int32",
              "description": "Maximum width constraint in pixels. Must be >= 0. If specified and (width > maxWidth OR documentWidth > maxWidth), the output will be constrained to maxWidth. Optional.",
              "minimum": 0
            },
            "mediaType": {
              "type": "string",
              "default": "image/jpeg",
              "description": "The desired output format. Supported formats: image/jpeg, image/png, image/tiff, image/vnd.adobe.photoshop, document/vnd.adobe.cpsd+dcxucf, document/vnd.adobe.cpsd+dcx and application/json. Defaults to image/jpeg when omitted.",
              "enum": [
                "image/jpeg",
                "image/png",
                "image/tiff",
                "image/vnd.adobe.photoshop",
                "document/vnd.adobe.cpsd+dcxucf",
                "document/vnd.adobe.cpsd+dcx",
                "application/json"
              ]
            },
            "quality": {
              "type": "string",
              "description": "JPEG quality setting. Optional.",
              "enum": [
                "very_poor",
                "poor",
                "low",
                "medium",
                "high",
                "maximum",
                "photoshop_max"
              ]
            },
            "resample": {
              "type": "string",
              "description": "Resampling algorithm used when resizing output to a target width. Valid values: nearest_neighbor, bilinear, bicubic, bicubic_smoother, bicubic_sharper. Defaults to bicubic_sharper when width or maxWidth is specified and this field is omitted. Optional.",
              "enum": [
                "nearest_neighbor",
                "bilinear",
                "bicubic",
                "bicubic_smoother",
                "bicubic_sharper"
              ]
            },
            "scan": {
              "$ref": "#/$defs/JpegScanOptions"
            },
            "scriptOutputPattern": {
              "type": "string",
              "description": "Pattern for matching script output files in the UXP output directory. Supports both exact filenames and glob patterns. Examples: 'output.json' (matches single specific file), '*.json' (matches all JSON files), 'result-*.png' (matches result-1.png, result-2.png, etc.). Files are filtered based on the mediaType of this output definition. Only files with extensions matching the mediaType will be included. When a pattern matches multiple files, one output entry is created per file. When present, skips normal rendering/export and uses matched files instead. Output parameters like quality, compression, width, and height are ignored when this field is present. Only applicable for /v2/execute-actions endpoint. Optional, nullable.",
              "maxLength": 255,
              "minLength": 0
            },
            "shouldOverwrite": {
              "type": "boolean",
              "description": "Whether to overwrite existing files. Optional."
            },
            "width": {
              "type": "integer",
              "format": "int32",
              "description": "Width in pixels. Must be >= 0. Optional.",
              "minimum": 0
            }
          }
        }
      ],
      "required": [
        "destination",
        "mediaType"
      ]
    },
    "JpegScanOptions": {
      "type": "object",
      "description": "JPEG scan/encoding options (baseline vs progressive). Only supported on the create-composite, create-artboard, and generate-manifest endpoints. Optional; defaults to baseline standard encoding when omitted.",
      "properties": {
        "optimized": {
          "type": "boolean",
          "default": false,
          "description": "Whether to use baseline-optimized encoding. Only valid when type is baseline."
        },
        "scans": {
          "type": "integer",
          "format": "int32",
          "description": "Number of progressive scans. Only valid when type is progressive. Allowed values: 3, 4, 5.",
          "maximum": 5,
          "minimum": 3
        },
        "type": {
          "type": "string",
          "default": "baseline",
          "description": "JPEG scan type.",
          "enum": [
            "baseline",
            "progressive"
          ]
        }
      }
    },
    "JsonOutput": {
      "allOf": [
        {
          "$ref": "#/$defs/PhotoshopOutput"
        },
        {
          "$ref": "#/$defs/ExtendedPhotoshopOutput"
        }
      ],
      "description": "JSON output configuration",
      "required": [
        "destination",
        "mediaType"
      ]
    },
    "LayerEffects": {
      "type": "object",
      "description": "Layer Style effects applied to the layer.",
      "properties": {
        "dropShadow": {
          "type": "array",
          "description": "One or more drop shadow effects. Between 1 and 10 per layer. Optional.",
          "items": {
            "$ref": "#/$defs/DropShadow"
          },
          "maxItems": 10,
          "minItems": 1
        }
      }
    },
    "LightroomResourceInput": {
      "allOf": [
        {
          "$ref": "#/$defs/ResourceInput"
        },
        {
          "type": "object",
          "properties": {
            "lightroomPath": {
              "type": "string",
              "description": "The path to the asset in Lightroom. Required. Must be a partial path that starts with '/v2/', e.g. '/v2/catalogs/{catalogId}/assets/{assetId}/revisions/{revisionId}/proxies/{proxyId}'. The host/domain is always fixed server-side and cannot be supplied by the caller. Only letters, digits, '.', '_', '-' and '/' are allowed — query strings, fragments, schemes, hosts, percent-encoding, and '..' path segments are all rejected.",
              "minLength": 1,
              "pattern": "^/v2/[A-Za-z0-9_.-]+(?:/[A-Za-z0-9_.-]+)*$"
            }
          }
        }
      ],
      "description": "Lightroom resource input. References a resource via Lightroom path.",
      "required": [
        "lightroomPath"
      ]
    },
    "LocalRange": {
      "type": "object",
      "description": "Local range settings for targeted color adjustments. Defines the hue range boundaries for the adjustment.",
      "properties": {
        "beginRamp": {
          "type": "integer",
          "format": "int32",
          "description": "The beginning of the ramp (feather start). Range: 0-360 degrees.",
          "maximum": 360,
          "minimum": 0
        },
        "beginSustain": {
          "type": "integer",
          "format": "int32",
          "description": "The beginning of the sustain (full effect start). Range: 0-360 degrees.",
          "maximum": 360,
          "minimum": 0
        },
        "channelId": {
          "type": "string",
          "default": "REDS",
          "description": "The channel for this local range adjustment. Allowed values: REDS, YELLOWS, GREENS, CYANS, BLUES, MAGENTAS. Defaults to REDS when omitted.",
          "enum": [
            "REDS",
            "YELLOWS",
            "GREENS",
            "CYANS",
            "BLUES",
            "MAGENTAS"
          ]
        },
        "endRamp": {
          "type": "integer",
          "format": "int32",
          "description": "The end of the ramp (feather end). Range: 0-360 degrees.",
          "maximum": 360,
          "minimum": 0
        },
        "endSustain": {
          "type": "integer",
          "format": "int32",
          "description": "The end of the sustain (full effect end). Range: 0-360 degrees.",
          "maximum": 360,
          "minimum": 0
        }
      },
      "required": [
        "channelId"
      ]
    },
    "MoveLayer": {
      "allOf": [
        {
          "$ref": "#/$defs/OperationBase"
        }
      ],
      "description": "Layer for move operations",
      "required": [
        "operation"
      ]
    },
    "MoveOperation": {
      "allOf": [
        {
          "$ref": "#/$defs/Operation"
        },
        {
          "type": "object",
          "properties": {
            "placement": {
              "$ref": "#/$defs/Placement",
              "description": "Placement settings for the move operation. Required."
            },
            "shouldIncludeChildren": {
              "type": "boolean",
              "description": "Whether to include child layers in the move. Optional."
            }
          }
        }
      ],
      "description": "Move operation for moving layers.",
      "required": [
        "placement",
        "type"
      ]
    },
    "Offset": {
      "type": "object",
      "description": "Offset coordinates for positioning elements.",
      "properties": {
        "horizontal": {
          "type": "integer",
          "format": "int32",
          "description": "Horizontal offset in pixels. Defaults to 0 when adding new layers. Optional for edits."
        },
        "vertical": {
          "type": "integer",
          "format": "int32",
          "description": "Vertical offset in pixels. Defaults to 0 when adding new layers. Optional for edits."
        }
      }
    },
    "Operation": {
      "type": "object",
      "description": "Layer operation settings including placement, delete, move and edit operations.",
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of operation. Required.",
          "enum": [
            "add",
            "edit",
            "delete",
            "move"
          ]
        }
      },
      "required": [
        "type"
      ]
    },
    "OperationBase": {
      "type": "object",
      "description": "Base for a single layer edit. When present, the 'operation' field is required.",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32",
          "description": "Layer ID"
        },
        "name": {
          "type": "string",
          "description": "Layer name"
        },
        "operation": {
          "description": "Operation to perform on the layer. Required.",
          "oneOf": [
            {
              "$ref": "#/$defs/AddOperation"
            },
            {
              "$ref": "#/$defs/DeleteOperation"
            },
            {
              "$ref": "#/$defs/EditOperation"
            },
            {
              "$ref": "#/$defs/MoveOperation"
            }
          ]
        }
      },
      "required": [
        "operation"
      ]
    },
    "Origin": {
      "type": "object",
      "description": "2D point coordinates",
      "properties": {
        "x": {
          "type": "integer",
          "format": "int32",
          "description": "X coordinate"
        },
        "y": {
          "type": "integer",
          "format": "int32",
          "description": "Y coordinate"
        }
      }
    },
    "ParagraphStyle": {
      "type": "object",
      "description": "Paragraph style properties.",
      "properties": {
        "alignment": {
          "type": "string",
          "description": "Text alignment. Optional. Default is left.",
          "enum": [
            "left",
            "center",
            "right",
            "justify",
            "justify_left",
            "justify_right",
            "justify_center"
          ]
        },
        "endIndent": {
          "type": "number",
          "format": "double",
          "description": "End indent in pixels. Optional. Default is 0."
        },
        "firstLineIndent": {
          "type": "number",
          "format": "double",
          "description": "First line indent in pixels. Optional. Default is 0."
        },
        "spaceAfter": {
          "type": "number",
          "format": "double",
          "description": "Space after paragraph in pixels. Optional. Default is 0."
        },
        "spaceBefore": {
          "type": "number",
          "format": "double",
          "description": "Space before paragraph in pixels. Optional. Default is 0."
        },
        "startIndent": {
          "type": "number",
          "format": "double",
          "description": "Start indent in pixels. Optional. Default is 0."
        },
        "writingDirection": {
          "type": "string",
          "description": "Writing direction. Optional. Default is left_to_right.",
          "enum": [
            "left_to_right",
            "right_to_left"
          ]
        }
      }
    },
    "ParagraphStyleRange": {
      "type": "object",
      "description": "Paragraph style range defining paragraph formatting for specific text ranges.",
      "properties": {
        "apply": {
          "$ref": "#/$defs/Apply",
          "description": "Range of paragraphs to apply styling to. Optional."
        },
        "paragraphStyle": {
          "$ref": "#/$defs/ParagraphStyle",
          "description": "Paragraph style settings. Optional."
        }
      }
    },
    "PhotoshopOutput": {
      "type": "object",
      "description": "Export options for a single output.",
      "properties": {
        "cropMode": {
          "type": "string",
          "description": "Crop mode for export output. Optional.",
          "enum": [
            "trim_to_transparency",
            "document_bounds",
            "layer_bounds"
          ]
        },
        "destination": {
          "description": "The destination details for the output file. Required. When scriptOutputPattern is used, only EmbeddedDestination and HostedDestination are supported. URL destinations (presigned URLs) and Creative Cloud destinations cannot be used with scriptOutputPattern because they require pre-knowledge of file names and counts.",
          "oneOf": [
            {
              "$ref": "#/$defs/CreativeCloudDestination"
            },
            {
              "$ref": "#/$defs/EmbeddedDestination"
            },
            {
              "$ref": "#/$defs/HostedDestination"
            },
            {
              "$ref": "#/$defs/UrlDestination"
            }
          ]
        },
        "height": {
          "type": "integer",
          "format": "int32",
          "description": "Height in pixels. Must be >= 0. Optional.",
          "minimum": 0
        },
        "iccProfile": {
          "description": "ICC profile configuration for color management. Allows specifying standard ICC profiles (e.g., sRGB, Adobe RGB) or custom ICC profile files. Supported output formats: JPEG, PNG, TIFF, PSD. Not supported for PSDC (document/vnd.adobe.cpsd+dcxucf, document/vnd.adobe.cpsd+dcx). Optional.",
          "oneOf": [
            {
              "$ref": "#/$defs/StandardIccProfile"
            },
            {
              "$ref": "#/$defs/CustomIccProfile"
            }
          ]
        },
        "layers": {
          "type": "array",
          "description": "Layers to export. Specify layers by id, name, or both. Optional.",
          "items": {
            "$ref": "#/$defs/ExportReferenceLayer"
          },
          "maxItems": 100,
          "minItems": 0
        },
        "maxWidth": {
          "type": "integer",
          "format": "int32",
          "description": "Maximum width constraint in pixels. Must be >= 0. If specified and (width > maxWidth OR documentWidth > maxWidth), the output will be constrained to maxWidth. Optional.",
          "minimum": 0
        },
        "mediaType": {
          "type": "string",
          "default": "image/jpeg",
          "description": "The desired output format. Supported formats: image/jpeg, image/png, image/tiff, image/vnd.adobe.photoshop, document/vnd.adobe.cpsd+dcxucf, document/vnd.adobe.cpsd+dcx and application/json. Defaults to image/jpeg when omitted.",
          "enum": [
            "image/jpeg",
            "image/png",
            "image/tiff",
            "image/vnd.adobe.photoshop",
            "document/vnd.adobe.cpsd+dcxucf",
            "document/vnd.adobe.cpsd+dcx",
            "application/json"
          ]
        },
        "resample": {
          "type": "string",
          "description": "Resampling algorithm used when resizing output to a target width. Valid values: nearest_neighbor, bilinear, bicubic, bicubic_smoother, bicubic_sharper. Defaults to bicubic_sharper when width or maxWidth is specified and this field is omitted. Optional.",
          "enum": [
            "nearest_neighbor",
            "bilinear",
            "bicubic",
            "bicubic_smoother",
            "bicubic_sharper"
          ]
        },
        "scriptOutputPattern": {
          "type": "string",
          "description": "Pattern for matching script output files in the UXP output directory. Supports both exact filenames and glob patterns. Examples: 'output.json' (matches single specific file), '*.json' (matches all JSON files), 'result-*.png' (matches result-1.png, result-2.png, etc.). Files are filtered based on the mediaType of this output definition. Only files with extensions matching the mediaType will be included. When a pattern matches multiple files, one output entry is created per file. When present, skips normal rendering/export and uses matched files instead. Output parameters like quality, compression, width, and height are ignored when this field is present. Only applicable for /v2/execute-actions endpoint. Optional, nullable.",
          "maxLength": 255,
          "minLength": 0
        },
        "shouldOverwrite": {
          "type": "boolean",
          "description": "Whether to overwrite existing files. Optional."
        },
        "width": {
          "type": "integer",
          "format": "int32",
          "description": "Width in pixels. Must be >= 0. Optional.",
          "minimum": 0
        }
      },
      "required": [
        "destination",
        "mediaType"
      ]
    },
    "PixelMask": {
      "type": "object",
      "description": "Pixel mask settings for layer operations, including source input and pixel mask properties.",
      "properties": {
        "isEnabled": {
          "type": "boolean",
          "description": "Whether the pixel mask is enabled. Optional. Defaults to true when adding new layers. Optional for edits"
        },
        "isLinked": {
          "type": "boolean",
          "description": "Whether the pixel mask is linked to the layer. Optional. Defaults to true when adding new layers. Optional for edits"
        },
        "offset": {
          "$ref": "#/$defs/Offset",
          "description": "Offset position for the pixel mask. Optional."
        },
        "source": {
          "$ref": "#/$defs/FileResourceInput",
          "description": "Source input for the pixel mask. Must be an external file reference (URL, Creative Cloud path, or asset ID). Inline content is not supported. Optional."
        }
      }
    },
    "Placement": {
      "type": "object",
      "description": "Placement settings for positioning elements with alignment and insertion point.",
      "properties": {
        "referenceLayer": {
          "$ref": "#/$defs/ReferenceLayer"
        },
        "type": {
          "type": "string",
          "default": "top",
          "description": "Type of placement operation (below, into, top, bottom, above). Defaults to top when omitted.",
          "enum": [
            "below",
            "into",
            "top",
            "bottom",
            "above"
          ]
        }
      },
      "required": [
        "type"
      ]
    },
    "PngOutput": {
      "allOf": [
        {
          "$ref": "#/$defs/PhotoshopOutput"
        },
        {
          "type": "object",
          "properties": {
            "compression": {
              "type": "string",
              "description": "PNG compression level. Optional.",
              "enum": [
                "none",
                "very_low",
                "low",
                "medium_low",
                "medium",
                "medium_high",
                "default",
                "high",
                "very_high",
                "maximum"
              ]
            }
          }
        },
        {
          "$ref": "#/$defs/ExtendedPhotoshopOutput"
        }
      ],
      "required": [
        "destination",
        "mediaType"
      ]
    },
    "PointFrame": {
      "allOf": [
        {
          "$ref": "#/$defs/TextFrame"
        },
        {
          "type": "object",
          "properties": {
            "origin": {
              "$ref": "#/$defs/Origin",
              "description": "Starting origin coordinates"
            }
          }
        }
      ],
      "description": "Point frame for text starting at a single point",
      "required": [
        "type"
      ]
    },
    "PortableFileResourceInput": {
      "description": "External file reference. Must be a URL, Creative Cloud path, or Creative Cloud file ID. Lightroom resources are not supported.",
      "oneOf": [
        {
          "$ref": "#/$defs/UrlResourceInput"
        },
        {
          "$ref": "#/$defs/CreativeCloudResourceInput"
        },
        {
          "$ref": "#/$defs/CreativeCloudFileIdResourceInput"
        }
      ]
    },
    "PsdOutput": {
      "allOf": [
        {
          "$ref": "#/$defs/PhotoshopOutput"
        },
        {
          "$ref": "#/$defs/ExtendedPhotoshopOutput"
        }
      ],
      "required": [
        "destination",
        "mediaType"
      ]
    },
    "PsdcOutput": {
      "allOf": [
        {
          "$ref": "#/$defs/PhotoshopOutput"
        },
        {
          "$ref": "#/$defs/ExtendedPhotoshopOutput"
        }
      ],
      "required": [
        "destination",
        "mediaType"
      ]
    },
    "ReferenceLayer": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "Resize": {
      "type": "object",
      "description": "Options for resizing a document, including width, height, resolution, resample type, and additional flags.",
      "properties": {
        "constrainProportions": {
          "type": "boolean",
          "default": true,
          "description": "Whether to constrain proportions during resizing."
        },
        "height": {
          "$ref": "#/$defs/DimensionMeasurement",
          "description": "The target height for resizing. Optional."
        },
        "rasterize": {
          "type": "boolean",
          "description": "Whether to rasterize the image during resizing. Optional."
        },
        "resample": {
          "type": "string",
          "default": "bilinear",
          "description": "The resampling method to use when resizing.",
          "enum": [
            "nearest_neighbor",
            "bilinear",
            "bicubic",
            "bicubic_smoother",
            "bicubic_sharper"
          ]
        },
        "resolution": {
          "$ref": "#/$defs/ResolutionMeasurement",
          "description": "The target resolution for resizing. Optional."
        },
        "scaleStyles": {
          "type": "boolean",
          "default": true,
          "description": "Whether to scale styles during resizing."
        },
        "width": {
          "$ref": "#/$defs/DimensionMeasurement",
          "description": "The target width for resizing. Optional."
        }
      }
    },
    "ResolutionMeasurement": {
      "type": "object",
      "description": "Represents a resolution measurement with density unit.",
      "properties": {
        "unit": {
          "type": "string",
          "default": "density_unit",
          "description": "The unit of measurement for resolution. 'density_unit' represents pixel density measurements like DPI (dots per inch) or PPI (pixels per inch). Defaults to density_unit when omitted.",
          "enum": [
            "density_unit"
          ]
        },
        "value": {
          "type": "integer",
          "format": "int32",
          "description": "The value of the resolution. Must be greater than or equal to 1.",
          "minimum": 1
        }
      },
      "required": [
        "unit"
      ]
    },
    "ResourceInput": {},
    "Rgb": {
      "type": "object",
      "description": "RGB color values with red, green, and blue components.",
      "properties": {
        "blue": {
          "type": "integer",
          "format": "int32",
          "default": 0,
          "description": "Blue component value (0-255). Defaults to 0 when omitted.",
          "maximum": 255,
          "minimum": 0
        },
        "green": {
          "type": "integer",
          "format": "int32",
          "default": 0,
          "description": "Green component value (0-255). Defaults to 0 when omitted.",
          "maximum": 255,
          "minimum": 0
        },
        "red": {
          "type": "integer",
          "format": "int32",
          "default": 0,
          "description": "Red component value (0-255). Defaults to 0 when omitted.",
          "maximum": 255,
          "minimum": 0
        }
      },
      "required": [
        "blue",
        "green",
        "red"
      ]
    },
    "Skew": {
      "type": "object",
      "description": "Skew transformation settings for horizontal and vertical distortion.",
      "properties": {
        "horizontal": {
          "type": "integer",
          "format": "int32",
          "description": "Horizontal skew. Required."
        },
        "vertical": {
          "type": "integer",
          "format": "int32",
          "description": "Vertical skew. Required."
        }
      },
      "required": [
        "horizontal",
        "vertical"
      ]
    },
    "SmartObject": {
      "type": "object",
      "description": "Smart object settings and file reference.",
      "properties": {
        "isLinked": {
          "type": "boolean",
          "default": false,
          "description": "Whether the smart object is linked to the layer."
        },
        "smartObjectFile": {
          "$ref": "#/$defs/SmartObjectFile",
          "description": "File reference for the smart object. Supported file formats: PSD, PNG, JPEG, TIFF, SVG, PDF, AI. Optional."
        }
      }
    },
    "SmartObjectContentPlacement": {
      "type": "object",
      "description": "Opt-in, non-destructive replacement within an existing embedded smart object's frame. The ingredient is retained inside a nested smart object. Alignment is relative to the frame, not the document canvas. Linked, skewed/perspective and pixel-masked rotated frames are unsupported.",
      "properties": {
        "horizontalAlign": {
          "type": "string",
          "default": "left",
          "description": "Horizontal alignment within the smart object's frame.",
          "enum": [
            "left",
            "center",
            "right"
          ]
        },
        "mode": {
          "type": "string",
          "description": "fit contains the full ingredient; fill covers the frame and clips visible overflow while retaining the source.",
          "enum": [
            "fit",
            "fill"
          ]
        },
        "verticalAlign": {
          "type": "string",
          "default": "top",
          "description": "Vertical alignment within the smart object's frame.",
          "enum": [
            "top",
            "center",
            "bottom"
          ]
        }
      },
      "required": [
        "mode"
      ]
    },
    "SmartObjectFile": {
      "type": "object",
      "properties": {
        "source": {
          "$ref": "#/$defs/FileResourceInput",
          "description": "Source for the smart object file. Must be an external file reference. Inline content is not supported."
        }
      }
    },
    "SolidColor": {
      "type": "object",
      "description": "Solid color definition using RGB values.",
      "properties": {
        "rgb": {
          "$ref": "#/$defs/Rgb",
          "description": "RGB color values. Required."
        }
      },
      "required": [
        "rgb"
      ]
    },
    "StandardIccProfile": {
      "allOf": [
        {
          "$ref": "#/$defs/IccProfile"
        },
        {
          "type": "object",
          "properties": {
            "imageMode": {
              "type": "string",
              "description": "Image mode for standard ICC profiles. Allowed values: rgb, grayscale. Optional",
              "enum": [
                "rgb",
                "grayscale"
              ]
            },
            "name": {
              "type": "string",
              "default": "sRGB IEC61966-2.1",
              "description": "Standard ICC profile name. Must be one of the predefined values: Adobe RGB (1998), Apple RGB, ColorMatch RGB, sRGB IEC61966-2.1, Dot Gain 10%, Dot Gain 15%, Dot Gain 20%, Dot Gain 25%, Dot Gain 30%, Gray Gamma 1.8, Gray Gamma 2.2. Defaults to sRGB IEC61966-2.1 when omitted; explicit null is invalid.",
              "enum": [
                "Adobe RGB (1998)",
                "Apple RGB",
                "ColorMatch RGB",
                "sRGB IEC61966-2.1",
                "Dot Gain 10%",
                "Dot Gain 15%",
                "Dot Gain 20%",
                "Dot Gain 25%",
                "Dot Gain 30%",
                "Gray Gamma 1.8",
                "Gray Gamma 2.2"
              ]
            }
          }
        }
      ],
      "description": "Standard ICC profile with predefined profile names",
      "required": [
        "name",
        "type"
      ]
    },
    "Text": {
      "type": "object",
      "description": "Text content and formatting settings for text layers.",
      "properties": {
        "antiAliasing": {
          "type": "string",
          "description": "Anti-aliasing setting for text. Optional.",
          "enum": [
            "none",
            "sharp",
            "crisp",
            "strong",
            "smooth"
          ]
        },
        "characterStyles": {
          "type": "array",
          "description": "Character styles applied to text ranges. Optional.",
          "items": {
            "$ref": "#/$defs/CharacterStyleRange"
          }
        },
        "content": {
          "type": "string",
          "description": "The text content. Optional."
        },
        "frame": {
          "description": "Frame configuration contains frameType and frame-specific properties. Optional.",
          "oneOf": [
            {
              "$ref": "#/$defs/AreaFrame"
            },
            {
              "$ref": "#/$defs/PointFrame"
            }
          ]
        },
        "paragraphStyles": {
          "type": "array",
          "description": "Paragraph styles applied to text ranges. Optional.",
          "items": {
            "$ref": "#/$defs/ParagraphStyleRange"
          }
        },
        "textOrientation": {
          "type": "string",
          "description": "Text orientation. Optional.",
          "enum": [
            "horizontal",
            "vertical"
          ]
        }
      }
    },
    "TextFrame": {
      "type": "object",
      "description": "Frame configuration for text layers",
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of frame",
          "enum": [
            "point",
            "area"
          ]
        }
      },
      "required": [
        "type"
      ]
    },
    "TiffOutput": {
      "allOf": [
        {
          "$ref": "#/$defs/PhotoshopOutput"
        },
        {
          "$ref": "#/$defs/ExtendedPhotoshopOutput"
        }
      ],
      "required": [
        "destination",
        "mediaType"
      ]
    },
    "Transform": {
      "type": "object",
      "description": "Transformation applied to the smart object or layer, optional",
      "properties": {
        "anchor": {
          "$ref": "#/$defs/Anchor",
          "description": "Anchor point for transformation"
        },
        "angle": {
          "type": "number",
          "format": "double",
          "description": "Rotation angle in degrees"
        },
        "dimension": {
          "$ref": "#/$defs/Dimension",
          "description": "Dimension after transformation"
        },
        "horizontalAlign": {
          "type": "string",
          "description": "Horizontal alignment",
          "enum": [
            "left",
            "center",
            "right"
          ]
        },
        "offset": {
          "$ref": "#/$defs/Offset",
          "description": "Offset for transformation"
        },
        "skew": {
          "$ref": "#/$defs/Skew",
          "description": "Skew transformation"
        },
        "verticalAlign": {
          "type": "string",
          "description": "Vertical alignment",
          "enum": [
            "top",
            "center",
            "bottom"
          ]
        }
      }
    },
    "TransparencyShape": {
      "type": "object",
      "description": "Contour (transparency shape) applied to a layer effect. Name is required; curve is required when name is Custom.",
      "properties": {
        "curve": {
          "type": "array",
          "description": "Curve points defining the contour shape. Required when name is Custom.",
          "items": {
            "$ref": "#/$defs/CurvePoint"
          }
        },
        "name": {
          "type": "string",
          "description": "Name of the contour preset. Required. Only \"Custom\" is supported currently.",
          "enum": [
            "Custom"
          ]
        }
      },
      "required": [
        "curve",
        "name"
      ]
    },
    "Trim": {
      "type": "object",
      "description": "Options for trimming a document, specifying the basis for the trim operation.",
      "properties": {
        "trimUpon": {
          "type": "string",
          "description": "The basis for the trim operation (background or transparent). Optional.",
          "enum": [
            "transparent_pixels"
          ]
        }
      }
    },
    "UrlDestination": {
      "allOf": [
        {
          "$ref": "#/$defs/Destination"
        },
        {
          "type": "object",
          "properties": {
            "storageType": {
              "type": "string",
              "description": "Storage type for the destination. Optional.",
              "enum": [
                "azure",
                "dropbox"
              ]
            },
            "url": {
              "type": "string",
              "description": "Pre-signed URL for external storage. Must be HTTPS. Required.",
              "minLength": 1
            }
          }
        }
      ],
      "required": [
        "url"
      ]
    },
    "UrlResourceInput": {
      "allOf": [
        {
          "$ref": "#/$defs/ResourceInput"
        },
        {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "description": "The pre-signed URL of the resource. Required.",
              "minLength": 1
            }
          }
        }
      ],
      "description": "URL resource input. References a resource via a pre-signed URL.",
      "required": [
        "url"
      ]
    }
  }
}