{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codex-reset-com/json-schema/codex-reset-com-usage-reference-schema.json",
  "title": "UsageReference",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codex-reset-com-openapi.yml#/components/schemas/UsageReference",
  "type": "object",
  "required": [
    "fresh",
    "days"
  ],
  "properties": {
    "fresh": {
      "type": "boolean",
      "description": "false while the usage verifier is dormant (data older than 36 h); then show nothing."
    },
    "updated_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "days": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "day_of_cycle",
          "percent_remaining"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "day_of_cycle": {
            "type": "number"
          },
          "percent_remaining": {
            "type": "number"
          }
        }
      }
    }
  }
}