{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-ad/json-schema/azure-ad-microsoft-graph-used-insight-schema.json",
  "title": "microsoft.graph.usedInsight",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-ad-users-iteminsights-api-openapi.yml#/components/schemas/microsoft.graph.usedInsight",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "usedInsight",
      "type": "object",
      "properties": {
        "lastUsed": {
          "$ref": "#/$defs/microsoft.graph.usageDetails"
        },
        "resourceReference": {
          "$ref": "#/$defs/microsoft.graph.resourceReference"
        },
        "resourceVisualization": {
          "$ref": "#/$defs/microsoft.graph.resourceVisualization"
        },
        "resource": {
          "$ref": "#/$defs/microsoft.graph.entity"
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    }
  ],
  "$defs": {
    "microsoft.graph.entity": {
      "title": "entity",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.resourceReference": {
      "title": "resourceReference",
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The item's unique identifier."
        },
        "type": {
          "type": [
            "string",
            "null"
          ],
          "description": "A string value that can be used to classify the item, such as 'microsoft.graph.driveItem'"
        },
        "webUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "A URL leading to the referenced item."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.resourceVisualization": {
      "title": "resourceVisualization",
      "type": "object",
      "properties": {
        "containerDisplayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "A string describing where the item is stored. For example, the name of a SharePoint site or the user name identifying the owner of the OneDrive storing the item."
        },
        "containerType": {
          "type": [
            "string",
            "null"
          ],
          "description": "Can be used for filtering by the type of container in which the file is stored. Such as Site or OneDriveBusiness."
        },
        "containerWebUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "A path leading to the folder in which the item is stored."
        },
        "mediaType": {
          "type": [
            "string",
            "null"
          ],
          "description": "The item's media type. Can be used for filtering for a specific type of file based on supported IANA Media Mime Types. Not all Media Mime Types are supported."
        },
        "previewImageUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "A URL leading to the preview image for the item."
        },
        "previewText": {
          "type": [
            "string",
            "null"
          ],
          "description": "A preview text for the item."
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "The item's title text."
        },
        "type": {
          "type": [
            "string",
            "null"
          ],
          "description": "The item's media type. Can be used for filtering for a specific file based on a specific type. See the section Type property values for supported types."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.usageDetails": {
      "title": "usageDetails",
      "type": "object",
      "properties": {
        "lastAccessedDateTime": {
          "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",
            "null"
          ],
          "description": "The date and time the resource was last accessed by the user. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.",
          "format": "date-time"
        },
        "lastModifiedDateTime": {
          "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",
            "null"
          ],
          "description": "The date and time the resource was last modified by the user. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.",
          "format": "date-time"
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    }
  }
}