{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-entra/json-schema/microsoft-entra-microsoft-graph-custom-data-provided-resource-upload-session-schema.json",
  "title": "microsoft.graph.customDataProvidedResourceUploadSession",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-entra-identitygovernance-accesspackagecatalog-api-openapi.yml#/components/schemas/microsoft.graph.customDataProvidedResourceUploadSession",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "customDataProvidedResourceUploadSession",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "createdDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": "string",
          "description": "DateTime when the upload session was created. Read-only. Supports $orderby.",
          "format": "date-time"
        },
        "data": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.customDataProvidedResourcePayloads.data"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "An object containing the context for which this data is being uploaded."
        },
        "isUploadDone": {
          "type": "boolean",
          "description": "Indicates if all the necessary files have been uploaded to this session."
        },
        "referenceId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The ID of the context for which data is being uploaded, for example, the Access Review instance ID. Supports $filter (eq)."
        },
        "stats": {
          "$ref": "#/$defs/microsoft.graph.customDataProvidedResourceUploadStats"
        },
        "status": {
          "$ref": "#/$defs/microsoft.graph.customDataProvidedResourceUploadStatus"
        },
        "files": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.customDataProvidedResourceFile"
          },
          "description": "The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby.",
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "$defs": {
    "microsoft.graph.customDataProvidedResourceFile": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "customDataProvidedResourceFile",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "Name of the uploaded file, including the file extension. Required.  Supports $filter (eq, ne)  and $orderby."
            },
            "size": {
              "type": "number",
              "description": "Size of the file in bytes. Read-only.  Supports $filter (eq, ne, gt, ge, lt, le) and $orderby.",
              "format": "int64"
            },
            "uploadedDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": "string",
              "description": "Timestamp when the file was uploaded. Read-only.  Supports $filter (eq, ne, gt, ge, lt, le) and $orderby.",
              "format": "date-time"
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.customDataProvidedResourceFile"
    },
    "microsoft.graph.customDataProvidedResourcePayloads.data": {
      "title": "data",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.customDataProvidedResourceUploadStats": {
      "title": "customDataProvidedResourceUploadStats",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "filesUploaded": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": "number",
          "description": "Number of files uploaded in this session.",
          "format": "int32"
        },
        "totalBytesUploaded": {
          "type": "number",
          "description": "Total bytes uploaded in this session.",
          "format": "int64"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.customDataProvidedResourceUploadStatus": {
      "title": "customDataProvidedResourceUploadStatus",
      "enum": [
        "active",
        "complete",
        "expired",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.entity": {
      "title": "entity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  }
}