{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-apply-preset-request-schema.json",
  "title": "ApplyPresetRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-firefly-lightroom-openapi.yml#/components/schemas/ApplyPresetRequest",
  "type": "object",
  "required": [
    "inputs",
    "outputs"
  ],
  "properties": {
    "inputs": {
      "$ref": "#/$defs/ApplyPresetInput"
    },
    "outputs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LrOutputDetails"
      },
      "description": "Apply preset output parameters."
    }
  },
  "$defs": {
    "ApplyPresetInput": {
      "title": "ApplyPresetInput",
      "type": "object",
      "required": [
        "source",
        "presets"
      ],
      "properties": {
        "source": {
          "$ref": "#/$defs/StorageDetails"
        },
        "presets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorageDetails"
          },
          "description": "An array describing the list of presets to apply. The preset objects will be one of 'external', 'azure', or 'dropbox'."
        }
      }
    },
    "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."
    }
  }
}