{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cliponit-app/json-schema/cliponit-app-plan-schema.json",
  "title": "Plan",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cliponit-app-billing-api-openapi.yml#/components/schemas/Plan",
  "type": "object",
  "required": [
    "id",
    "name",
    "price_monthly",
    "price_yearly",
    "limits"
  ],
  "properties": {
    "id": {
      "$ref": "#/$defs/PlanId"
    },
    "name": {
      "type": "string"
    },
    "badge": {
      "type": [
        "string",
        "null"
      ]
    },
    "price_monthly": {
      "type": "integer",
      "description": "USD"
    },
    "price_yearly": {
      "type": "integer",
      "description": "USD (10 × monthly)"
    },
    "strike_monthly": {
      "type": [
        "integer",
        "null"
      ]
    },
    "limits": {
      "$ref": "#/$defs/PlanLimits"
    },
    "headline_key": {
      "type": "string"
    },
    "features": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "included": {
            "type": "boolean"
          }
        }
      }
    },
    "feature_keys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "PlanId": {
      "type": "string",
      "enum": [
        "free",
        "starter",
        "pro",
        "business"
      ]
    },
    "PlanLimits": {
      "type": "object",
      "properties": {
        "videos_month": {
          "type": "integer"
        },
        "max_bytes": {
          "type": "integer"
        },
        "retention_days": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Days before automatic deletion; null on paid plans (nothing expires while the subscription is active)"
        },
        "watermark": {
          "type": "boolean"
        },
        "logo": {
          "type": "boolean"
        },
        "premiere_xml": {
          "type": "boolean"
        },
        "edit_captions": {
          "type": "boolean"
        },
        "translate": {
          "type": "boolean"
        },
        "broll_music": {
          "type": "boolean"
        },
        "api_mcp": {
          "type": "boolean"
        },
        "seats": {
          "type": "integer"
        },
        "max_video_s": {
          "type": [
            "number",
            "null"
          ]
        },
        "searches_day": {
          "type": [
            "integer",
            "null"
          ]
        }
      }
    }
  }
}