{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-generate-manifest-request-schema.json",
  "title": "GenerateManifestRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-photoshop-v2-openapi.yml#/components/schemas/GenerateManifestRequest",
  "type": "object",
  "properties": {
    "exportOptions": {
      "description": "Optional. Export options for the image.",
      "oneOf": [
        {
          "$ref": "#/$defs/JpegExportOptions"
        },
        {
          "$ref": "#/$defs/PngExportOptions"
        }
      ]
    },
    "extractSmartObjectData": {
      "type": "boolean",
      "default": false,
      "description": "Optional. Extract embedded smart objects and include presigned URLs in the manifest. Only applies to embedded (non-linked) smart objects. Default is false."
    },
    "image": {
      "$ref": "#/$defs/Image",
      "description": "The image input, which contains a source field of type ResourceInput. Required."
    },
    "includeLayerThumbnails": {
      "type": "boolean",
      "default": false,
      "description": "Optional. Indicates whether to generate renditions. Default is false."
    },
    "includeXmp": {
      "type": "boolean",
      "default": false,
      "description": "Optional. Include the XMP metadata in the response."
    },
    "maximumThumbnailDepth": {
      "type": "integer",
      "format": "int32",
      "description": "Optional. Depth for layer renditions. If provided, must be greater than or equal to 0. 0 signifies no limit.",
      "minimum": 0
    },
    "outputs": {
      "type": "array",
      "description": "List of output destinations for the manifest. Required. Maximum of 25 outputs allowed.",
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/ManifestJsonOutput"
          }
        ]
      },
      "maxItems": 25,
      "minItems": 1
    },
    "trimToTransparency": {
      "type": "boolean",
      "default": false,
      "description": "Optional. Trim the layer to remove the transparent pixels."
    }
  },
  "required": [
    "image",
    "outputs"
  ],
  "$defs": {
    "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"
      ]
    },
    "Destination": {
      "description": "Destination for output files. Can be either a URL with optional storage type or a Creative Cloud path."
    },
    "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"
      ]
    },
    "ExportOptions": {
      "type": "object",
      "description": "Export options for the image.",
      "properties": {
        "mediaType": {
          "type": "string",
          "description": "The desired output format. Required. Supported formats: image/jpeg, image/png",
          "enum": [
            "image/jpeg",
            "image/png",
            "image/tiff",
            "image/vnd.adobe.photoshop",
            "document/vnd.adobe.cpsd+dcxucf",
            "document/vnd.adobe.cpsd+dcx",
            "application/json"
          ]
        }
      },
      "required": [
        "mediaType"
      ]
    },
    "FileResourceInput": {},
    "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"
      ]
    },
    "Image": {
      "type": "object",
      "properties": {
        "source": {
          "$ref": "#/$defs/FileResourceInput",
          "description": "The resource input for the image. Required. Must be a valid FileResourceInput subtype: UrlResourceInput, CreativeCloudResourceInput, CreativeCloudFileIdResourceInput, or LightroomResourceInput.",
          "oneOf": [
            {
              "$ref": "#/$defs/UrlResourceInput"
            },
            {
              "$ref": "#/$defs/CreativeCloudResourceInput"
            },
            {
              "$ref": "#/$defs/CreativeCloudFileIdResourceInput"
            },
            {
              "$ref": "#/$defs/LightroomResourceInput"
            }
          ]
        }
      },
      "required": [
        "source"
      ]
    },
    "JpegExportOptions": {
      "allOf": [
        {
          "$ref": "#/$defs/ExportOptions"
        },
        {
          "type": "object",
          "properties": {
            "quality": {
              "type": "string",
              "description": "Optional. The quality of the JPEG export.",
              "enum": [
                "very_poor",
                "poor",
                "low",
                "medium",
                "high",
                "maximum",
                "photoshop_max"
              ]
            },
            "scan": {
              "$ref": "#/$defs/JpegScanOptions"
            }
          }
        }
      ],
      "description": "Jpeg Export options for the image.",
      "required": [
        "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"
          ]
        }
      }
    },
    "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"
      ]
    },
    "ManifestJsonOutput": {
      "allOf": [
        {
          "$ref": "#/$defs/ManifestOutput"
        }
      ],
      "description": "JSON manifest output configuration",
      "required": [
        "destination",
        "mediaType"
      ]
    },
    "ManifestOutput": {
      "type": "object",
      "description": "Export options for manifest output.",
      "properties": {
        "destination": {
          "description": "The destination details for the output file. Required.",
          "oneOf": [
            {
              "$ref": "#/$defs/CreativeCloudDestination"
            },
            {
              "$ref": "#/$defs/EmbeddedDestination"
            },
            {
              "$ref": "#/$defs/HostedDestination"
            },
            {
              "$ref": "#/$defs/UrlDestination"
            }
          ]
        },
        "mediaType": {
          "type": "string",
          "default": "application/json",
          "description": "The manifest output type. Supported types: application/json. Defaults to application/json when omitted.",
          "enum": [
            "application/json"
          ]
        }
      },
      "required": [
        "destination",
        "mediaType"
      ]
    },
    "PngExportOptions": {
      "allOf": [
        {
          "$ref": "#/$defs/ExportOptions"
        },
        {
          "type": "object",
          "properties": {
            "compression": {
              "type": "string",
              "description": "Optional. The compression level of the PNG export.",
              "enum": [
                "none",
                "very_low",
                "low",
                "medium_low",
                "medium",
                "medium_high",
                "default",
                "high",
                "very_high",
                "maximum"
              ]
            }
          }
        }
      ],
      "description": "Png Export options for the image.",
      "required": [
        "mediaType"
      ]
    },
    "ResourceInput": {},
    "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"
      ]
    }
  }
}