{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-ai-foundry/json-schema/azure-ai-foundry-paged-document-intelligence-operation-details-schema.json",
  "title": "PagedDocumentIntelligenceOperationDetails",
  "description": "Paged collection of DocumentIntelligenceOperationDetails items",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/azure-ai-foundry-operations-api-openapi.yml#/components/schemas/PagedDocumentIntelligenceOperationDetails",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The DocumentIntelligenceOperationDetails items on this page",
      "items": {
        "$ref": "#/$defs/DocumentIntelligenceOperationDetails"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "DocumentIntelligenceError": {
      "type": "object",
      "description": "The error object.",
      "properties": {
        "code": {
          "type": "string",
          "description": "One of a server-defined set of error codes."
        },
        "message": {
          "type": "string",
          "description": "A human-readable representation of the error."
        },
        "target": {
          "type": "string",
          "description": "The target of the error."
        },
        "details": {
          "type": "array",
          "description": "An array of details about specific errors that led to this reported error.",
          "items": {
            "$ref": "#/$defs/DocumentIntelligenceError"
          }
        },
        "innererror": {
          "$ref": "#/$defs/DocumentIntelligenceInnerError",
          "description": "An object containing more specific information than the current object about the error."
        }
      },
      "required": [
        "code",
        "message"
      ]
    },
    "DocumentIntelligenceInnerError": {
      "type": "object",
      "description": "An object containing more specific information about the error.",
      "properties": {
        "code": {
          "type": "string",
          "description": "One of a server-defined set of error codes."
        },
        "message": {
          "type": "string",
          "description": "A human-readable representation of the error."
        },
        "innererror": {
          "$ref": "#/$defs/DocumentIntelligenceInnerError",
          "description": "Inner error."
        }
      }
    },
    "DocumentIntelligenceOperationDetails": {
      "type": "object",
      "description": "Operation info.",
      "properties": {
        "operationId": {
          "type": "string",
          "description": "Operation ID",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        },
        "status": {
          "$ref": "#/$defs/DocumentIntelligenceOperationStatus",
          "description": "Operation status.  notStarted, running, completed, or failed"
        },
        "percentCompleted": {
          "type": "integer",
          "format": "int32",
          "description": "Operation progress (0-100).",
          "minimum": 0,
          "maximum": 100
        },
        "createdDateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time (UTC) when the operation was created."
        },
        "lastUpdatedDateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time (UTC) when the status was last updated."
        },
        "kind": {
          "$ref": "#/$defs/OperationKind",
          "description": "Type of operation."
        },
        "resourceLocation": {
          "type": "string",
          "format": "uri",
          "description": "URL of the resource targeted by this operation."
        },
        "apiVersion": {
          "type": "string",
          "description": "API version used to create this operation."
        },
        "tags": {
          "type": "object",
          "description": "List of key-value tag attributes associated with the document model.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "error": {
          "$ref": "#/$defs/DocumentIntelligenceError",
          "description": "Encountered error."
        }
      },
      "required": [
        "operationId",
        "status",
        "createdDateTime",
        "lastUpdatedDateTime",
        "kind",
        "resourceLocation"
      ]
    },
    "DocumentIntelligenceOperationStatus": {
      "type": "string",
      "description": "Operation status.",
      "enum": [
        "notStarted",
        "running",
        "failed",
        "succeeded",
        "canceled",
        "skipped"
      ],
      "x-ms-enum": {
        "name": "DocumentIntelligenceOperationStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "notStarted",
            "value": "notStarted",
            "description": "The operation has not started yet."
          },
          {
            "name": "running",
            "value": "running",
            "description": "The operation is in progress."
          },
          {
            "name": "failed",
            "value": "failed",
            "description": "The operation has failed."
          },
          {
            "name": "succeeded",
            "value": "succeeded",
            "description": "The operation has succeeded."
          },
          {
            "name": "canceled",
            "value": "canceled",
            "description": "The operation has been canceled."
          },
          {
            "name": "skipped",
            "value": "skipped",
            "description": "The operation has been skipped."
          }
        ]
      }
    },
    "OperationKind": {
      "type": "string",
      "description": "Type of operation.",
      "enum": [
        "documentModelBuild",
        "documentModelCompose",
        "documentModelCopyTo",
        "documentClassifierCopyTo",
        "documentClassifierBuild"
      ],
      "x-ms-enum": {
        "name": "OperationKind",
        "modelAsString": true,
        "values": [
          {
            "name": "documentModelBuild",
            "value": "documentModelBuild",
            "description": "Build a new custom document model."
          },
          {
            "name": "documentModelCompose",
            "value": "documentModelCompose",
            "description": "Compose a new custom document model from existing models."
          },
          {
            "name": "documentModelCopyTo",
            "value": "documentModelCopyTo",
            "description": "Copy an existing document model to potentially a different resource, region, or\nsubscription."
          },
          {
            "name": "documentClassifierCopyTo",
            "value": "documentClassifierCopyTo",
            "description": "Copy an existing document classifier to potentially a different resource, region, or\nsubscription."
          },
          {
            "name": "documentClassifierBuild",
            "value": "documentClassifierBuild",
            "description": "Build a new custom classifier model."
          }
        ]
      }
    }
  }
}