{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/commareports-com/json-schema/commareports-com-plan-caps-schema.json",
  "title": "PlanCaps",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/commareports-com-account-api-openapi.yml#/components/schemas/PlanCaps",
  "type": "object",
  "properties": {
    "plan": {
      "type": "string"
    },
    "min_routine_interval_minutes": {
      "type": [
        "integer",
        "null"
      ],
      "description": "null = any cadence."
    },
    "max_routines": {
      "type": [
        "integer",
        "null"
      ],
      "description": "null = unlimited."
    },
    "per_run_usd_cap": {
      "type": [
        "number",
        "null"
      ]
    },
    "bedrock_byok_enabled": {
      "type": "boolean"
    },
    "monthly_usd_cap": {
      "type": [
        "number",
        "null"
      ]
    },
    "markup_pct": {
      "type": [
        "number",
        "null"
      ]
    },
    "monthly_credit_usd": {
      "type": [
        "number",
        "null"
      ]
    },
    "monthly_base_usd": {
      "type": [
        "number",
        "null"
      ]
    },
    "monthly_usage_usd": {
      "type": "number"
    },
    "monthly_headroom_usd": {
      "type": [
        "number",
        "null"
      ]
    }
  },
  "required": [
    "plan",
    "bedrock_byok_enabled",
    "monthly_usage_usd"
  ]
}