{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alert-camp/json-schema/alert-camp-subscription-plans-response-schema.json",
  "title": "SubscriptionPlansResponse",
  "description": "Schema for available subscription plans.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alert-camp-subscriptions-api-openapi.yml#/components/schemas/SubscriptionPlansResponse",
  "properties": {
    "plans": {
      "items": {
        "$ref": "#/$defs/SubscriptionPlanInfo"
      },
      "type": "array",
      "title": "Plans"
    },
    "trial_days": {
      "type": "integer",
      "title": "Trial Days",
      "default": 0
    }
  },
  "type": "object",
  "$defs": {
    "SubscriptionPlanInfo": {
      "properties": {
        "tier": {
          "$ref": "#/$defs/SubscriptionTierEnum"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "description": {
          "type": "string",
          "title": "Description"
        },
        "price_cad": {
          "type": "number",
          "title": "Price Cad"
        },
        "interval": {
          "type": "string",
          "title": "Interval",
          "default": "month"
        },
        "features": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Features"
        },
        "capacity": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Capacity"
        },
        "current_subscribers": {
          "type": "integer",
          "title": "Current Subscribers",
          "default": 0
        },
        "available_spots": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Available Spots"
        },
        "is_available": {
          "type": "boolean",
          "title": "Is Available",
          "default": true
        }
      },
      "type": "object",
      "required": [
        "tier",
        "name",
        "description",
        "price_cad",
        "features"
      ],
      "title": "SubscriptionPlanInfo",
      "description": "Schema for subscription plan information."
    },
    "SubscriptionTierEnum": {
      "type": "string",
      "enum": [
        "essai",
        "regular",
        "pro"
      ],
      "title": "SubscriptionTierEnum",
      "description": "Subscription tier levels."
    }
  }
}