{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/snow-software/json-schema/snow-software-applications-kpi-schema.json",
  "title": "ApplicationsKPI",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snow-software-applications-api-openapi.yml#/components/schemas/ApplicationsKPI",
  "type": "object",
  "properties": {
    "totalApplications": {
      "type": "integer",
      "format": "int32",
      "description": "Total number of applications."
    },
    "totalApplicationsTrend": {
      "type": "integer",
      "format": "int32",
      "description": "Trend of total number of applications."
    },
    "unsanctioned": {
      "type": "integer",
      "format": "int32",
      "description": "Number of unsanctioned applications."
    },
    "appCategories": {
      "type": "array",
      "description": "A collection of application categories.",
      "items": {
        "$ref": "#/$defs/ApplicationsCategory"
      }
    },
    "aiAppCategories": {
      "type": "array",
      "description": "A collection of application AI categories.",
      "items": {
        "$ref": "#/$defs/ApplicationsCategory"
      }
    },
    "appCategoriesUnsanctioned": {
      "type": "array",
      "description": "A collection of categories of unsanctioned applications.",
      "items": {
        "$ref": "#/$defs/ApplicationsCategory"
      }
    },
    "aiAppCategoriesUnsanctioned": {
      "type": "array",
      "description": "A collection of AI categories of unsanctioned applications.",
      "items": {
        "$ref": "#/$defs/ApplicationsCategory"
      }
    },
    "activeUserApplications": {
      "type": "array",
      "description": "A collection of user counts for each application.",
      "items": {
        "$ref": "#/$defs/ApplicationsUserCount"
      }
    },
    "activeUserApplicationsUnsanctioned": {
      "type": "array",
      "description": "A collection of user counts for each unsanctioned application.",
      "items": {
        "$ref": "#/$defs/ApplicationsUserCount"
      }
    }
  },
  "required": [
    "totalApplications",
    "totalApplicationsTrend",
    "unsanctioned",
    "appCategories",
    "aiAppCategories",
    "appCategoriesUnsanctioned",
    "aiAppCategoriesUnsanctioned",
    "activeUserApplications",
    "activeUserApplicationsUnsanctioned"
  ],
  "$defs": {
    "ApplicationsCategory": {
      "title": "ApplicationsCategory",
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of category."
        },
        "total": {
          "type": "integer",
          "format": "int32",
          "description": "Total number of categories for stated application."
        }
      },
      "required": [
        "name",
        "total"
      ]
    },
    "ApplicationsUserCount": {
      "title": "ApplicationsCategory",
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of application."
        },
        "totalUsers": {
          "type": "integer",
          "format": "int32",
          "description": "Total number of users of stated application."
        }
      },
      "required": [
        "name",
        "totalUsers"
      ]
    }
  }
}