{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/githunt-ai/json-schema/githunt-ai-meta-schema.json",
  "title": "Meta",
  "description": "Envelope metadata. `quota.cost` is 0 on endpoints that debit no credits.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/githunt-ai-lists-api-openapi.yml#/components/schemas/Meta",
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string"
    },
    "quota": {
      "$ref": "#/$defs/Quota"
    }
  },
  "$defs": {
    "Quota": {
      "type": "object",
      "properties": {
        "used": {
          "type": "integer"
        },
        "limit": {
          "type": "integer",
          "description": "-1 means unlimited"
        },
        "month": {
          "type": "string"
        },
        "cost": {
          "type": "integer",
          "description": "Credits this request debited (search: 1, get user: 1, evidence report: 3 when a report is returned and 0 while pending, analyze profile: 3, list operations: 0). `used` already reflects this charge."
        },
        "rollover": {
          "type": "integer",
          "description": "Unused credits banked from the previous month and available on top of `limit` this month (`remaining` = limit + rollover - used). Only present on the Team plan, capped at one extra month's allowance (so at most 2x the allowance is usable in a month)."
        }
      }
    }
  }
}