{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vera-health/json-schema/vera-health-quotas-response-schema.json",
  "title": "QuotasResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vera-health-openapi.json#/components/schemas/QuotasResponse",
  "type": "object",
  "required": [
    "quotas"
  ],
  "properties": {
    "quotas": {
      "type": "array",
      "description": "Every configured limit — key-level and identity-level alike, not deduplicated.",
      "items": {
        "$ref": "#/$defs/QuotaEntry"
      }
    }
  },
  "$defs": {
    "QuotaEntry": {
      "type": "object",
      "description": "One rate limit configured on the calling API key.",
      "required": [
        "label",
        "unit",
        "limit",
        "remaining",
        "reset",
        "duration"
      ],
      "properties": {
        "label": {
          "type": "string",
          "description": "Name of the limit as configured for your key."
        },
        "unit": {
          "type": "string",
          "enum": [
            "requests"
          ],
          "description": "What the limit counts. Always `requests` — this API does not meter tokens."
        },
        "limit": {
          "type": "integer",
          "description": "Ceiling for this limit's window."
        },
        "remaining": {
          "type": "integer",
          "minimum": 0,
          "description": "Requests left in the current window."
        },
        "reset": {
          "type": "integer",
          "description": "Absolute Unix timestamp in **milliseconds** at which the current window resets. Not a duration."
        },
        "duration": {
          "type": "integer",
          "description": "Window length in milliseconds."
        }
      }
    }
  }
}