{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxforagents/json-schema/faxforagents-budget-schema.json",
  "title": "Budget",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxforagents-billing-api-openapi.yml#/components/schemas/Budget",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "environment": {
      "type": "string",
      "enum": [
        "live",
        "test"
      ],
      "title": "Environment"
    },
    "scope": {
      "type": "string",
      "enum": [
        "organization",
        "project",
        "agent"
      ],
      "title": "Scope"
    },
    "project_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Project Id"
    },
    "agent_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Id"
    },
    "period": {
      "type": "string",
      "enum": [
        "daily",
        "monthly"
      ],
      "title": "Period"
    },
    "limit_micro": {
      "type": "integer",
      "title": "Limit Micro"
    },
    "spent_micro": {
      "type": "integer",
      "title": "Spent Micro"
    },
    "remaining_micro": {
      "type": "integer",
      "title": "Remaining Micro"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "disabled"
      ],
      "title": "Status"
    },
    "resets_at": {
      "type": "string",
      "title": "Resets At"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "title": "Updated At"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "id",
    "environment",
    "scope",
    "project_id",
    "agent_id",
    "period",
    "limit_micro",
    "spent_micro",
    "remaining_micro",
    "status",
    "resets_at",
    "created_at",
    "updated_at"
  ]
}