{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/commercetools/main/json-schema/commercetools-import-operation-paged-query-response-schema.json",
  "title": "ImportOperationPagedQueryResponse",
  "description": "Paginated response containing a list of import operations.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/commercetools-importoperations-api-openapi.yml#/components/schemas/ImportOperationPagedQueryResponse",
  "type": "object",
  "required": [
    "limit",
    "offset",
    "count",
    "total",
    "results"
  ],
  "properties": {
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "count": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ImportOperation"
      }
    }
  },
  "$defs": {
    "ErrorObject": {
      "type": "object",
      "description": "An error object describing a validation or processing failure.",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "Machine-readable error code."
        },
        "message": {
          "type": "string",
          "description": "Human-readable description of the error."
        }
      }
    },
    "ImportOperation": {
      "type": "object",
      "description": "A record tracking the processing status of a single resource within an import request.",
      "required": [
        "version",
        "importContainerKey",
        "resourceKey",
        "state"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "System-generated unique identifier for the operation."
        },
        "version": {
          "type": "integer",
          "description": "Current version of the import operation record."
        },
        "importContainerKey": {
          "type": "string",
          "description": "Key of the container this operation belongs to."
        },
        "resourceKey": {
          "type": "string",
          "description": "User-defined key of the resource being imported."
        },
        "state": {
          "type": "string",
          "enum": [
            "Accepted",
            "ValidationFailed",
            "Unresolved",
            "WaitForMasterVariant",
            "Imported",
            "Rejected",
            "Cancelled"
          ],
          "description": "Current processing state of the import operation."
        },
        "resourceType": {
          "type": "string",
          "description": "The type of resource being imported."
        },
        "errors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ErrorObject"
          },
          "description": "Validation or processing errors if the operation failed."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "ISO 8601 timestamp when the operation was created."
        },
        "lastModifiedAt": {
          "type": "string",
          "format": "date-time",
          "description": "ISO 8601 timestamp when the operation was last modified."
        }
      }
    }
  }
}