{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arpi-ai/json-schema/arpi-ai-usage-summary-response-schema.json",
  "title": "UsageSummaryResponse",
  "description": "Usage summary for a given time range",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arpi-ai-openapi.json#/components/schemas/UsageSummaryResponse",
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "format": "date-time",
      "description": "Start of the queried time range (ISO-8601 UTC)"
    },
    "to": {
      "type": "string",
      "format": "date-time",
      "description": "End of the queried time range (ISO-8601 UTC)"
    },
    "count": {
      "type": "integer",
      "format": "int64",
      "description": "Total number of analysis requests submitted in the time range"
    },
    "analysisTypes": {
      "type": "array",
      "description": "Analysis type filters applied. Empty means total across all types.",
      "items": {
        "type": "string"
      }
    },
    "statuses": {
      "type": "array",
      "description": "Status filters applied. Empty means all statuses.",
      "items": {
        "type": "string"
      }
    },
    "appName": {
      "type": "string",
      "description": "App filter applied. Null means total across all apps."
    },
    "requesterId": {
      "type": "string",
      "description": "Requester filter echoed back. Null means all requesters."
    },
    "userType": {
      "type": "string",
      "description": "User type filter echoed back. Null means all user types.",
      "enum": [
        "INDIVIDUAL",
        "HOSPITAL"
      ]
    }
  },
  "required": [
    "analysisTypes",
    "count",
    "from",
    "statuses",
    "to"
  ]
}