{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cueframe-ai/json-schema/cueframe-ai-billing-plans-response-schema.json",
  "title": "BillingPlansResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cueframe-ai-billing-api-openapi.yml#/components/schemas/BillingPlansResponse",
  "type": "object",
  "properties": {
    "plans": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BillingPlanEntry"
      },
      "description": "Every purchasable {tier, interval} and its product id."
    },
    "billingConfigured": {
      "type": "boolean"
    }
  },
  "required": [
    "plans",
    "billingConfigured"
  ],
  "additionalProperties": false,
  "$defs": {
    "BillingPlanEntry": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Billing catalog product id (e.g. pro, pro_yearly)."
        },
        "tier": {
          "type": "string",
          "description": "Plan tier: pro | business | studio."
        },
        "name": {
          "type": "string"
        },
        "interval": {
          "type": "string",
          "description": "month | year."
        },
        "priceUsd": {
          "type": "number",
          "description": "Price in USD for the interval."
        }
      },
      "required": [
        "id",
        "tier",
        "name",
        "interval",
        "priceUsd"
      ],
      "additionalProperties": false
    }
  }
}