{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axonflow/json-schema/axonflow-budget-check-response-schema.json",
  "title": "BudgetCheckResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axonflow-cost-controls-api-openapi.yml#/components/schemas/BudgetCheckResponse",
  "type": "object",
  "properties": {
    "allowed": {
      "type": "boolean",
      "description": "Whether the request should be allowed"
    },
    "action": {
      "type": "string",
      "enum": [
        "warn",
        "block",
        "downgrade"
      ],
      "description": "Action that was taken (if budget exceeded)"
    },
    "budget_id": {
      "type": "string",
      "description": "ID of the budget that blocked the request"
    },
    "budget_name": {
      "type": "string"
    },
    "used_usd": {
      "type": "number",
      "format": "double"
    },
    "limit_usd": {
      "type": "number",
      "format": "double"
    },
    "percentage": {
      "type": "number",
      "format": "double"
    },
    "message": {
      "type": "string"
    }
  }
}