{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-import-job-accepted-status-schema.json",
  "title": "ImportJobAcceptedStatus",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-aem-assets-author-openapi.yml#/components/schemas/ImportJobAcceptedStatus",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/ImportJobId"
    },
    "operation": {
      "$ref": "#/$defs/ImportOperation"
    },
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/ImportJobId"
        },
        "config": {
          "type": "object",
          "required": [
            "folder",
            "items"
          ],
          "properties": {
            "assetMetadata": {
              "$ref": "#/$defs/ImportAssetMetadata"
            },
            "folder": {
              "$ref": "#/$defs/ImportTargetFolder"
            },
            "items": {
              "type": "array",
              "uniqueItems": true,
              "minItems": 1,
              "description": "The list of items to import",
              "items": {
                "type": "string",
                "description": "URL from which to import",
                "minLength": 1,
                "format": "string"
              }
            }
          }
        },
        "processedFiles": {
          "type": "array",
          "description": "List of files that have been processed by the import job",
          "items": {
            "type": "object"
          }
        },
        "progress": {
          "$ref": "#/$defs/ImportJobProgress"
        }
      },
      "required": [
        "id",
        "config",
        "progress"
      ]
    },
    "errors": {
      "$ref": "#/$defs/errors"
    },
    "warnings": {
      "$ref": "#/$defs/warnings"
    },
    "state": {
      "$ref": "#/$defs/ImportJobState"
    }
  },
  "$defs": {
    "CommandResultMessage": {
      "description": "CommandResultMessage Object to encapsulate the result of a command.",
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "A URI reference [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) that identifies the message type.",
          "minLength": 1
        },
        "title": {
          "type": "string",
          "description": "A short, human-readable summary of the problem type.",
          "minLength": 1
        },
        "detail": {
          "type": "string",
          "description": "A human-readable explanation specific to this occurrence of the problem."
        },
        "context": {
          "type": "object",
          "description": "An optional object containing additional context information about the problem.\n\nEach command MUST provide its own schema definition for this object, by defining all the properties a client is\nexpected to encounter.\n"
        }
      },
      "required": [
        "type",
        "title"
      ]
    },
    "ImportAssetMetadata": {
      "description": "Metadata properties and values that should be applied to assets that are part of the import.\nClient should use the assetMetadata properties as exposed by the metadata API endpoints.\n",
      "type": "object",
      "additionalProperties": true
    },
    "ImportJobId": {
      "description": "The identifier for an import job",
      "type": "string",
      "minLength": 1
    },
    "ImportJobProgress": {
      "type": "object",
      "properties": {
        "failed": {
          "type": "integer",
          "minimum": 0,
          "description": "The number of assets that failed to import"
        },
        "imported": {
          "type": "integer",
          "minimum": 0,
          "description": "The number of assets that have been imported"
        },
        "lastImported": {
          "type": "string",
          "description": "The name of the last imported asset"
        },
        "lastUpdated": {
          "type": "string",
          "minLength": 1,
          "format": "date-time",
          "description": "The date/time the import job was last updated"
        },
        "skipped": {
          "type": "number",
          "minimum": 0,
          "description": "The number of assets which were skipped during import"
        },
        "started": {
          "type": "string",
          "minLength": 1,
          "format": "date-time",
          "description": "The date/time the import job started"
        },
        "total": {
          "type": "number",
          "format": "int64",
          "minimum": 1,
          "description": "The total number of assets to import"
        },
        "size": {
          "type": "number",
          "format": "int64",
          "minimum": 0,
          "description": "The total size, in bytes, of the assets to import"
        },
        "step": {
          "description": "the current import step",
          "type": "string",
          "minLength": 4,
          "enum": [
            "QUEUED",
            "SCANNING",
            "IMPORTING",
            "DONE"
          ]
        },
        "transferred": {
          "type": "number",
          "format": "int64",
          "minimum": 0,
          "description": "The total size, in bytes, of the assets that have been transferred"
        }
      },
      "required": [
        "failed",
        "imported",
        "lastUpdated",
        "skipped",
        "started",
        "size",
        "step",
        "total",
        "transferred"
      ]
    },
    "ImportJobState": {
      "description": "The state of the import job.",
      "type": "string",
      "enum": [
        "PROCESSING",
        "COMPLETED",
        "FAILED"
      ]
    },
    "ImportOperation": {
      "type": "string",
      "enum": [
        "aem.assets.import.fromurl"
      ]
    },
    "ImportTargetFolder": {
      "type": "string",
      "description": "The ID or path for the folder into which to import the assets in AEM.",
      "minLength": 1
    },
    "errors": {
      "type": "array",
      "description": "An optional array of errors that occurred during the operation.",
      "items": {
        "$ref": "#/$defs/CommandResultMessage"
      }
    },
    "warnings": {
      "type": "array",
      "description": "An optional array of warnings that occurred during the operation.",
      "items": {
        "$ref": "#/$defs/CommandResultMessage"
      }
    }
  }
}