{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/snow-software/json-schema/snow-software-application-user-consumption-schema.json",
  "title": "ApplicationUserConsumption",
  "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/ApplicationUserConsumption",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique ID of the application."
    },
    "createdDate": {
      "type": "string",
      "format": "date",
      "description": "Date of created Date."
    },
    "discoveryTypes": {
      "type": "array",
      "description": "A collection of discovery types.",
      "items": {
        "type": "integer",
        "format": "int32"
      }
    },
    "isOnline": {
      "type": "boolean",
      "description": "```true``` if user should be online; otherwise, ```false```."
    },
    "lastActiveValueType": {
      "type": "integer",
      "description": "User last active value type."
    },
    "userCostPerMonth": {
      "description": "The monthly cost of the user entitlements.",
      "type": "number",
      "format": "double"
    },
    "displayName": {
      "type": "string",
      "description": "Display name of the user."
    },
    "isInReview": {
      "type": "boolean",
      "description": "```true``` if user should be reviewed; otherwise, ```false```."
    },
    "lastActive": {
      "type": "string",
      "format": "date-time",
      "description": "Time of last user activity in relevant applications."
    },
    "lastActiveValueInInt": {
      "type": "integer",
      "format": "int32",
      "description": "Last active value in int."
    },
    "status": {
      "type": "string",
      "description": "Status of the user."
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The list of roles user is assigned to."
    },
    "isMonitored": {
      "description": "```true``` if user should be Monitored; otherwise, ```false```.",
      "type": "boolean"
    },
    "department": {
      "type": "string",
      "description": "Department of the user."
    },
    "email": {
      "description": "The email address of the user.",
      "type": "string"
    },
    "isQualified": {
      "description": "```true``` if has been marked to be included in Snow's services which incur a cost; otherwise, ```false```.",
      "type": "boolean"
    },
    "potentialSavings": {
      "description": "The monthly subscription costs for users who are inactive or have no activity.",
      "type": "number",
      "format": "double"
    },
    "envelopeusage": {
      "description": "The usage of the subscription by the user.",
      "type": "integer",
      "format": "int32"
    }
  },
  "required": [
    "createdDate",
    "discoveryTypes",
    "isOnline",
    "lastActiveValueType",
    "userCostPerMonth",
    "displayName",
    "isInReview",
    "lastActive",
    "lastActiveValueInInt",
    "status",
    "role",
    "isMonitored",
    "department",
    "email",
    "id",
    "isQualified",
    "potentialSavings",
    "envelopeusage"
  ]
}