{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-umbrella/json-schema/cisco-umbrella-top-identity-schema.json",
  "title": "TopIdentity",
  "description": "The information about the top identity requests.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-umbrella-top-identities-api-openapi.yml#/components/schemas/TopIdentity",
  "type": "object",
  "properties": {
    "requests": {
      "type": "number",
      "description": "The total number of requests made by this identity."
    },
    "bandwidth": {
      "$ref": "#/$defs/bandwidth"
    },
    "identity": {
      "$ref": "#/$defs/Identity"
    },
    "counts": {
      "$ref": "#/$defs/RequestCounts"
    },
    "rank": {
      "$ref": "#/$defs/rank"
    }
  },
  "required": [
    "bandwidth",
    "counts",
    "identity",
    "rank",
    "requests"
  ],
  "$defs": {
    "Identity": {
      "type": "object",
      "description": "The information about the identity.",
      "properties": {
        "id": {
          "type": "number",
          "description": "The ID of the identity."
        },
        "label": {
          "type": "string",
          "description": "The descriptive label for the identity."
        },
        "type": {
          "$ref": "#/$defs/IdentityType"
        },
        "deleted": {
          "type": "boolean",
          "description": "Indicates whether the identity was deleted."
        }
      },
      "required": [
        "id",
        "label",
        "type",
        "deleted"
      ]
    },
    "IdentityType": {
      "type": "object",
      "description": "The information about the identity including the type.",
      "properties": {
        "id": {
          "type": "number",
          "description": "The ID of the origin type for the identity."
        },
        "label": {
          "type": "string",
          "description": "The label of the origin type for the identity."
        },
        "type": {
          "type": "string",
          "description": "The name of the origin type for the identity."
        }
      }
    },
    "RequestCounts": {
      "type": "object",
      "description": "The information about the requests.",
      "properties": {
        "requests": {
          "type": "number",
          "description": "The total number of requests."
        },
        "allowedrequests": {
          "type": "number",
          "description": "The number of requests that were allowed."
        },
        "blockedrequests": {
          "type": "number",
          "description": "The number of requests that were blocked."
        }
      }
    },
    "bandwidth": {
      "type": [
        "number",
        "null"
      ],
      "description": "The amount of bandwidth"
    },
    "rank": {
      "type": "number",
      "description": "The rank of the result based on the number of requests."
    }
  }
}