{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nashboard-ai/json-schema/nashboard-ai-usage-response-schema.json",
  "title": "UsageResponse",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nashboard-ai-openapi.json#/components/schemas/UsageResponse",
  "type": "object",
  "required": [
    "period_start",
    "period_end",
    "plan",
    "call_count",
    "quota",
    "quota_remaining"
  ],
  "properties": {
    "period_start": {
      "type": "string",
      "format": "date-time"
    },
    "period_end": {
      "type": "string",
      "format": "date-time"
    },
    "plan": {
      "type": "string",
      "description": "Tenant plan tier (e.g. free, starter, growth, enterprise)."
    },
    "call_count": {
      "type": "integer",
      "description": "Billable API calls in the current calendar month."
    },
    "quota": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Monthly call quota; null for unlimited plans."
    },
    "quota_remaining": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Remaining quota; null for unlimited plans."
    }
  },
  "additionalProperties": false
}