{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/subcue-ai/json-schema/subcue-ai-plans-response-schema.json",
  "title": "PlansResponse",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/subcue-ai-openapi.yml#/components/schemas/PlansResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "currency",
    "cycles",
    "plans"
  ],
  "properties": {
    "currency": {
      "type": "string"
    },
    "cycles": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BillingCycle"
      }
    },
    "plans": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Plan"
      }
    }
  },
  "$defs": {
    "BillingCycle": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "key",
        "durationMonths",
        "labelKey",
        "savingBadge"
      ],
      "properties": {
        "key": {
          "type": "string"
        },
        "durationMonths": {
          "type": "integer",
          "minimum": 1
        },
        "labelKey": {
          "type": "string"
        },
        "savingBadge": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Plan": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "popular",
        "prices",
        "monthlyPrice",
        "annualPrice",
        "creditsMonthly"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "popular": {
          "type": "boolean"
        },
        "prices": {
          "type": "object",
          "additionalProperties": {
            "type": "number",
            "minimum": 0
          }
        },
        "monthlyPrice": {
          "type": "number",
          "minimum": 0
        },
        "annualPrice": {
          "type": "number",
          "minimum": 0
        },
        "creditsMonthly": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        }
      }
    }
  }
}