{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-apply-edits-request-schema.json",
  "title": "ApplyEditsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-firefly-lightroom-openapi.yml#/components/schemas/ApplyEditsRequest",
  "type": "object",
  "required": [
    "inputs",
    "options",
    "outputs"
  ],
  "properties": {
    "inputs": {
      "type": "object",
      "description": "A hash describing an input image to edit. The input object will be one of 'external', 'azure', or 'dropbox'.",
      "required": [
        "source"
      ],
      "properties": {
        "source": {
          "$ref": "#/$defs/StorageDetails"
        }
      }
    },
    "options": {
      "$ref": "#/$defs/EditOptions"
    },
    "outputs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LrOutputDetails"
      },
      "description": "Edit photo output parameters."
    }
  },
  "$defs": {
    "EditOptions": {
      "title": "EditOptions",
      "type": "object",
      "properties": {
        "Contrast": {
          "maximum": 100.0,
          "minimum": -100.0,
          "type": "integer",
          "format": "int32"
        },
        "Saturation": {
          "maximum": 100.0,
          "minimum": -100.0,
          "type": "integer",
          "format": "int32"
        },
        "VignetteAmount": {
          "maximum": 100.0,
          "minimum": -100.0,
          "type": "integer",
          "format": "int32"
        },
        "Vibrance": {
          "maximum": 100.0,
          "minimum": -100.0,
          "type": "integer",
          "format": "int32"
        },
        "Highlights": {
          "maximum": 100.0,
          "minimum": -100.0,
          "type": "integer",
          "format": "int32"
        },
        "Shadows": {
          "maximum": 100.0,
          "minimum": -100.0,
          "type": "integer",
          "format": "int32"
        },
        "Whites": {
          "maximum": 100.0,
          "minimum": -100.0,
          "type": "integer",
          "format": "int32"
        },
        "Blacks": {
          "maximum": 100.0,
          "minimum": -100.0,
          "type": "integer",
          "format": "int32"
        },
        "Clarity": {
          "maximum": 100.0,
          "minimum": -100.0,
          "type": "integer",
          "format": "int32"
        },
        "Dehaze": {
          "maximum": 100.0,
          "minimum": -100.0,
          "type": "integer",
          "format": "int32"
        },
        "Texture": {
          "maximum": 100.0,
          "minimum": -100.0,
          "type": "integer",
          "format": "int32"
        },
        "Sharpness": {
          "maximum": 150.0,
          "minimum": 0.0,
          "type": "integer",
          "format": "int32"
        },
        "ColorNoiseReduction": {
          "maximum": 100.0,
          "minimum": 0.0,
          "type": "integer",
          "format": "int32"
        },
        "NoiseReduction": {
          "maximum": 100.0,
          "minimum": 0.0,
          "type": "integer",
          "format": "int32"
        },
        "SharpenDetail": {
          "maximum": 100.0,
          "minimum": 0.0,
          "type": "integer",
          "format": "int32"
        },
        "SharpenEdgeMasking": {
          "maximum": 10.0,
          "minimum": 0.0,
          "type": "integer",
          "format": "int32"
        },
        "Exposure": {
          "maximum": 5.0,
          "minimum": -5.0,
          "type": "number"
        },
        "SharpenRadius": {
          "maximum": 3.0,
          "minimum": 0.5,
          "type": "number"
        },
        "WhiteBalance": {
          "$ref": "#/$defs/WhiteBalance"
        }
      }
    },
    "ImageFormatType": {
      "title": "ImageFormatType",
      "enum": [
        "image/jpeg",
        "image/png",
        "image/x-adobe-dng",
        "application/rdf+xml"
      ],
      "type": "string",
      "description": "Desired output image format."
    },
    "LrOutputDetails": {
      "title": "LrOutputDetails",
      "type": "object",
      "required": [
        "href",
        "storage",
        "type"
      ],
      "properties": {
        "href": {
          "type": "string",
          "description": "Pre-signed POST URL to the output file."
        },
        "storage": {
          "$ref": "#/$defs/StorageType"
        },
        "type": {
          "$ref": "#/$defs/ImageFormatType"
        },
        "overwrite": {
          "type": "boolean",
          "default": true,
          "description": "Determines if the output file should be overwritten if it already exists. This flag is used only for Adobe cloud storage."
        },
        "quality": {
          "maximum": 12,
          "minimum": 1,
          "type": "integer",
          "default": 12,
          "description": "Quality of the JPEG outputs (will be ignored for other output types). Ranges from 1 to 12, with 12 as the highest quality."
        }
      }
    },
    "StorageDetails": {
      "title": "StorageDetails",
      "type": "object",
      "required": [
        "href",
        "storage"
      ],
      "properties": {
        "href": {
          "type": "string",
          "description": "Pre-signed GET URL for the source asset."
        },
        "storage": {
          "$ref": "#/$defs/StorageType"
        }
      },
      "description": "File on Adobe's cloud or an external service (like AWS S3, Azure, Dropbox)."
    },
    "StorageType": {
      "title": "StorageType",
      "enum": [
        "external",
        "azure",
        "dropbox"
      ],
      "type": "string",
      "description": "Storage location."
    },
    "WhiteBalance": {
      "title": "WhiteBalance",
      "description": "White balance settings.",
      "enum": [
        "As Shot",
        "Auto",
        "Cloudy",
        "Custom",
        "Daylight",
        "Flash",
        "Fluorescent",
        "Shade",
        "Tungsten"
      ],
      "type": "string"
    }
  }
}