{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cayra-io/json-schema/cayra-io-usage-balance-response-schema.json",
  "title": "UsageBalanceResponse",
  "description": "Response wrapper for balance endpoint.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cayra-io-usage-api-openapi.yml#/components/schemas/UsageBalanceResponse",
  "properties": {
    "balance": {
      "$ref": "#/$defs/UsageBalanceSummary"
    }
  },
  "type": "object",
  "required": [
    "balance"
  ],
  "$defs": {
    "UsageBalanceSummary": {
      "properties": {
        "license_id": {
          "type": "string",
          "format": "uuid",
          "title": "License Id"
        },
        "current_balance": {
          "type": "number",
          "title": "Current Balance"
        },
        "currency": {
          "type": "string",
          "title": "Currency"
        },
        "allow_external_api": {
          "type": "boolean",
          "title": "Allow External Api"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "title": "Updated At"
        }
      },
      "type": "object",
      "required": [
        "license_id",
        "current_balance",
        "currency",
        "allow_external_api",
        "updated_at"
      ],
      "title": "UsageBalanceSummary",
      "description": "Balance information for a license."
    }
  }
}