{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axonflow/json-schema/axonflow-budget-create-schema.json",
  "title": "BudgetCreate",
  "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/BudgetCreate",
  "type": "object",
  "required": [
    "id",
    "name",
    "scope",
    "limit_usd",
    "period"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "scope": {
      "type": "string",
      "enum": [
        "organization",
        "team",
        "agent",
        "workflow",
        "user"
      ]
    },
    "scope_id": {
      "type": "string"
    },
    "limit_usd": {
      "type": "number",
      "format": "double"
    },
    "period": {
      "type": "string",
      "enum": [
        "daily",
        "weekly",
        "monthly",
        "quarterly",
        "yearly"
      ]
    },
    "on_exceed": {
      "type": "string",
      "enum": [
        "warn",
        "block",
        "downgrade"
      ],
      "default": "warn"
    },
    "alert_thresholds": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    }
  }
}