{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-generate-variation-response-schema.json",
  "title": "GenerateVariationResponse",
  "description": "Response payload for the \"generate-variation\" API.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-express-openapi.yml#/components/schemas/GenerateVariationResponse",
  "type": "object",
  "properties": {
    "document": {
      "$ref": "#/$defs/ExpressDocument",
      "description": "Specifies the details of the generated variation."
    },
    "jobId": {
      "description": "The identifier of the job.",
      "type": "string"
    },
    "status": {
      "$ref": "#/$defs/JobStatus",
      "description": "The status of the job."
    }
  },
  "required": [
    "document",
    "jobId",
    "status"
  ],
  "$defs": {
    "ExpressDocument": {
      "description": "Details of the Express document.",
      "type": "object",
      "properties": {
        "id": {
          "description": "The unique identifier of the document.",
          "type": "string"
        },
        "name": {
          "description": "The name or title of the document.",
          "type": "string"
        },
        "thumbnailUrl": {
          "description": "Pre-signed URL for the Document's thumbnail rendition.\nThe size of the rendition will be `640 pixels` along the longest side. The format of the rendition will be a `PNG` image.",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "thumbnailUrl"
      ]
    },
    "JobStatus": {
      "description": "Various statuses of a job.",
      "enum": [
        "cancel_requested",
        "cancelled",
        "failed",
        "partially_succeeded",
        "pending",
        "running",
        "succeeded"
      ],
      "type": "string"
    }
  }
}