{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloro-dev/json-schema/cloro-dev-credits-response-schema.json",
  "title": "CreditsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloro-dev-credits-api-openapi.yml#/components/schemas/CreditsResponse",
  "type": "object",
  "required": [
    "remaining",
    "perCycle",
    "cycleResetsAt"
  ],
  "properties": {
    "remaining": {
      "type": "integer",
      "description": "Credits currently remaining for your organization."
    },
    "perCycle": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Credits granted per billing cycle. Null for free-tier organizations with no active subscription."
    },
    "cycleResetsAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the current billing cycle ends and credits reset. Null for free-tier organizations with no active subscription."
    }
  }
}