{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atlas-compiler-com/json-schema/atlas-compiler-com-plan-catalog-schema.json",
  "title": "PlanCatalog",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atlas-compiler-com-openapi.json#/components/schemas/PlanCatalog",
  "items": {
    "$ref": "#/$defs/PlanCatalogEntry"
  },
  "type": "array",
  "$defs": {
    "PlanCatalogEntry": {
      "additionalProperties": false,
      "properties": {
        "annualAmountCents": {
          "description": "The annual price in cents, or null for custom pricing",
          "type": [
            "integer",
            "null"
          ]
        },
        "code": {
          "description": "The unique plan code (e.g., free, starter, pro)",
          "type": "string"
        },
        "currency": {
          "description": "The 3-letter currency code, typically usd",
          "type": "string"
        },
        "features": {
          "description": "List of feature keys enabled for this plan",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "highlightBadge": {
          "description": "An optional badge to display (e.g., Custom)",
          "type": [
            "string",
            "null"
          ]
        },
        "includedCredits": {
          "description": "The monthly credit allowance included with this plan",
          "type": "integer"
        },
        "limits": {
          "description": "List of quantitative limits applied to this plan",
          "items": {
            "$ref": "#/$defs/PlanLimit"
          },
          "type": "array"
        },
        "marketingBlurb": {
          "description": "A short description of the plan for marketing",
          "type": "string"
        },
        "monthlyAmountCents": {
          "description": "The monthly price in cents, or null for custom pricing",
          "type": [
            "integer",
            "null"
          ]
        },
        "version": {
          "description": "The current version of this plan",
          "type": "integer"
        }
      },
      "required": [
        "code",
        "version",
        "currency",
        "monthlyAmountCents",
        "annualAmountCents",
        "marketingBlurb",
        "includedCredits",
        "features",
        "limits"
      ],
      "type": "object"
    },
    "PlanLimit": {
      "additionalProperties": false,
      "properties": {
        "key": {
          "description": "The identifier of the limit (e.g., maxConcurrentJobs)",
          "type": "string"
        },
        "unit": {
          "description": "The unit of the limit (e.g., req, job, page)",
          "type": "string"
        },
        "value": {
          "description": "The allowed value, or null if unlimited",
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "key",
        "value",
        "unit"
      ],
      "type": "object"
    }
  }
}