{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reqbeat-com/json-schema/reqbeat-com-usage-dashboard-response-schema.json",
  "title": "UsageDashboardResponse",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reqbeat-com-openapi.json#/components/schemas/UsageDashboardResponse",
  "properties": {
    "keys": {
      "items": {
        "$ref": "#/$defs/KeyUsageOut"
      },
      "type": "array",
      "title": "Keys"
    },
    "account_used": {
      "type": "integer",
      "title": "Account Used"
    },
    "account_hard_cap": {
      "type": "integer",
      "title": "Account Hard Cap"
    },
    "account_soft_cap": {
      "type": "integer",
      "title": "Account Soft Cap"
    },
    "sla_credit_units": {
      "type": "integer",
      "title": "Sla Credit Units"
    },
    "referral_credit_units": {
      "type": "integer",
      "title": "Referral Credit Units"
    },
    "account_status": {
      "type": "string",
      "title": "Account Status"
    },
    "expansion_nudge_triggered": {
      "type": "boolean",
      "title": "Expansion Nudge Triggered"
    },
    "upgrade_prompt": {
      "anyOf": [
        {
          "$ref": "#/$defs/UpgradePromptOut"
        },
        {
          "type": "null"
        }
      ]
    },
    "free_tier": {
      "anyOf": [
        {
          "$ref": "#/$defs/FreeTierAllowanceOut"
        },
        {
          "type": "null"
        }
      ]
    },
    "blocked_deliveries": {
      "$ref": "#/$defs/BlockedDeliveriesOut"
    }
  },
  "type": "object",
  "required": [
    "keys",
    "account_used",
    "account_hard_cap",
    "account_soft_cap",
    "sla_credit_units",
    "referral_credit_units",
    "account_status",
    "expansion_nudge_triggered",
    "upgrade_prompt",
    "free_tier",
    "blocked_deliveries"
  ],
  "$defs": {
    "BlockedDeliveriesOut": {
      "properties": {
        "wall_blocked": {
          "type": "integer",
          "title": "Wall Blocked"
        },
        "cap_blocked": {
          "type": "integer",
          "title": "Cap Blocked"
        },
        "since": {
          "type": "string",
          "format": "date-time",
          "title": "Since"
        }
      },
      "type": "object",
      "required": [
        "wall_blocked",
        "cap_blocked",
        "since"
      ],
      "title": "BlockedDeliveriesOut"
    },
    "FreeTierAllowanceOut": {
      "properties": {
        "watches_used": {
          "type": "integer",
          "title": "Watches Used"
        },
        "watches_allowance": {
          "type": "integer",
          "title": "Watches Allowance"
        },
        "changes_used": {
          "type": "integer",
          "title": "Changes Used"
        },
        "changes_allowance": {
          "type": "integer",
          "title": "Changes Allowance"
        },
        "changes_wall_reached": {
          "type": "boolean",
          "title": "Changes Wall Reached"
        }
      },
      "type": "object",
      "required": [
        "watches_used",
        "watches_allowance",
        "changes_used",
        "changes_allowance",
        "changes_wall_reached"
      ],
      "title": "FreeTierAllowanceOut"
    },
    "KeyUsageOut": {
      "properties": {
        "key_id": {
          "type": "integer",
          "title": "Key Id"
        },
        "tier": {
          "type": "string",
          "title": "Tier"
        },
        "used": {
          "type": "integer",
          "title": "Used"
        },
        "quota": {
          "type": "integer",
          "title": "Quota"
        },
        "status": {
          "type": "string",
          "title": "Status"
        }
      },
      "type": "object",
      "required": [
        "key_id",
        "tier",
        "used",
        "quota",
        "status"
      ],
      "title": "KeyUsageOut"
    },
    "UpgradePromptOut": {
      "properties": {
        "reason": {
          "type": "string",
          "title": "Reason"
        },
        "upgrade_url": {
          "type": "string",
          "title": "Upgrade Url"
        }
      },
      "type": "object",
      "required": [
        "reason",
        "upgrade_url"
      ],
      "title": "UpgradePromptOut"
    }
  }
}