{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cavuno-com/json-schema/cavuno-com-billing-subscription-schema.json",
  "title": "BillingSubscription",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cavuno-com-billing-api-openapi.yml#/components/schemas/BillingSubscription",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "billing_subscription"
      ]
    },
    "active": {
      "type": "boolean"
    },
    "status": {
      "type": [
        "string",
        "null"
      ]
    },
    "planKey": {
      "type": [
        "string",
        "null"
      ]
    },
    "currentPeriodEnd": {
      "type": [
        "number",
        "null"
      ],
      "description": "Subscription period end as a millisecond epoch."
    },
    "cancelAtPeriodEnd": {
      "type": "boolean"
    },
    "capabilities": {
      "type": "object",
      "properties": {
        "activeJobsLimit": {
          "type": [
            "number",
            "null"
          ]
        },
        "subscriberLimit": {
          "type": [
            "number",
            "null"
          ]
        },
        "teamSeatLimit": {
          "type": [
            "number",
            "null"
          ]
        },
        "canBePublic": {
          "type": "boolean"
        },
        "canRemoveBranding": {
          "type": "boolean"
        },
        "apiAccess": {
          "type": "boolean"
        }
      },
      "required": [
        "activeJobsLimit",
        "subscriberLimit",
        "teamSeatLimit",
        "canBePublic",
        "canRemoveBranding",
        "apiAccess"
      ]
    }
  },
  "required": [
    "object",
    "active",
    "status",
    "planKey",
    "currentPeriodEnd",
    "cancelAtPeriodEnd",
    "capabilities"
  ]
}