{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/negativeev-com/json-schema/negativeev-com-usage-schema.json",
  "title": "Caller allowance",
  "description": "How many checks this caller has left in the current window. Anonymous callers are metered per device per day; a signed-in caller per hour.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/negativeev-com-openapi.json#/components/schemas/Usage",
  "type": "object",
  "required": [
    "authed",
    "limit",
    "used",
    "remaining",
    "reset_in"
  ],
  "properties": {
    "authed": {
      "type": "boolean",
      "description": "Whether the call carried a valid bearer token."
    },
    "limit": {
      "type": "integer",
      "description": "Checks allowed in the window."
    },
    "used": {
      "type": "integer",
      "description": "Checks spent in the window so far."
    },
    "remaining": {
      "type": "integer",
      "description": "Checks still available."
    },
    "reset_in": {
      "type": "integer",
      "description": "Seconds until the window resets."
    }
  }
}