{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-lr-job-api-response-schema.json",
  "title": "Lightroom Job Status Response",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-firefly-lightroom-openapi.yml#/components/schemas/LrJobApiResponse",
  "type": "object",
  "properties": {
    "jobId": {
      "type": "string",
      "description": "The job's ID requested."
    },
    "created": {
      "type": "string",
      "description": "Created timestamp of the job."
    },
    "modified": {
      "type": "string",
      "description": "Modified timestamp of the job."
    },
    "outputs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/JobOutputDetails"
      },
      "description": "Output parameters for the job."
    },
    "_links": {
      "$ref": "#/$defs/JobStatusLink"
    }
  },
  "$defs": {
    "JobOutputDetails": {
      "title": "JobOutputDetails",
      "type": "object",
      "properties": {
        "input": {
          "type": "string",
          "description": "The original input file path."
        },
        "status": {
          "$ref": "#/$defs/JobStatus"
        },
        "_links": {
          "$ref": "#/$defs/Links"
        },
        "details": {
          "type": "string",
          "description": "Description of the exact error that is reported by the requested job. Will appear in the response only if there is an error."
        }
      }
    },
    "JobStatus": {
      "title": "JobStatus",
      "enum": [
        "pending",
        "running",
        "succeeded",
        "failed"
      ],
      "type": "string",
      "description": "Status of the job."
    },
    "JobStatusLink": {
      "title": "Job Status Link",
      "type": "object",
      "properties": {
        "self": {
          "$ref": "#/$defs/SelfLink"
        }
      }
    },
    "Links": {
      "title": "Links",
      "type": "object",
      "properties": {
        "self": {
          "$ref": "#/$defs/StorageDetails"
        }
      }
    },
    "SelfLink": {
      "title": "SelfLink",
      "type": "object",
      "description": "Self link for the job status.",
      "properties": {
        "href": {
          "type": "string",
          "description": "Job Status URL."
        }
      }
    },
    "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."
    }
  }
}