@commet/node 9.4.0 → 9.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/dist/index.d.mts +41 -41
  2. package/dist/index.d.ts +41 -41
  3. package/dist/index.js +3 -3
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +3 -3
  6. package/dist/index.mjs.map +1 -1
  7. package/docs/ai-onboarding/ai-onboarding.md +2 -3
  8. package/docs/ai-onboarding/billing-best-practices-skill.md +2 -3
  9. package/docs/ai-onboarding/commet-skill.md +4 -5
  10. package/docs/ai-onboarding/mcp-server.md +8 -9
  11. package/docs/ai-onboarding/pricing-models-skill.md +2 -3
  12. package/docs/ai-onboarding/subscription-patterns-skill.md +2 -3
  13. package/docs/api-reference/offers.md +2 -2
  14. package/docs/api-reference/plans.md +1 -1
  15. package/docs/api-reference/promo-codes.md +3 -3
  16. package/docs/api-reference/subscriptions.md +4 -4
  17. package/docs/documentation/api-versioning.md +2 -2
  18. package/docs/documentation/better-auth.md +0 -1
  19. package/docs/documentation/choose-a-billing-model.md +14 -8
  20. package/docs/documentation/cli.md +14 -15
  21. package/docs/documentation/create-api-key.md +0 -1
  22. package/docs/documentation/customers/customer-credits.md +0 -1
  23. package/docs/documentation/customers/customer-portal.md +14 -2
  24. package/docs/documentation/customers/manage-customers.md +1 -2
  25. package/docs/documentation/error-handling.md +1 -2
  26. package/docs/documentation/examples.md +0 -1
  27. package/docs/documentation/finance/acceptable-use.md +0 -1
  28. package/docs/documentation/finance/finance-overview.md +0 -1
  29. package/docs/documentation/finance/local-currency-taxes.md +0 -1
  30. package/docs/documentation/finance/merchant-of-record.md +0 -1
  31. package/docs/documentation/finance/payouts-verification.md +6 -3
  32. package/docs/documentation/finance/payouts.md +0 -1
  33. package/docs/documentation/finance/supported-countries.md +0 -1
  34. package/docs/documentation/go/integrate-with-encore.md +7 -8
  35. package/docs/documentation/go/integrate-with-go.md +8 -9
  36. package/docs/documentation/introduction.md +3 -4
  37. package/docs/documentation/invoicing/handle-failed-payments.md +9 -4
  38. package/docs/documentation/invoicing/invoices-and-billing-cycles.md +10 -10
  39. package/docs/documentation/invoicing/manage-invoices.md +0 -1
  40. package/docs/documentation/java/integrate-with-java.md +6 -7
  41. package/docs/documentation/nodejs/integrate-with-astro.md +6 -7
  42. package/docs/documentation/nodejs/integrate-with-bun.md +6 -7
  43. package/docs/documentation/nodejs/integrate-with-express.md +7 -8
  44. package/docs/documentation/nodejs/integrate-with-hono.md +7 -8
  45. package/docs/documentation/nodejs/integrate-with-nextjs.md +6 -7
  46. package/docs/documentation/nodejs/integrate-with-nuxt.md +6 -7
  47. package/docs/documentation/nodejs/integrate-with-remix.md +6 -7
  48. package/docs/documentation/nodejs/integrate-with-sveltekit.md +6 -7
  49. package/docs/documentation/payments/accept-one-time-payments.md +0 -1
  50. package/docs/documentation/payments/payment-orchestration.md +0 -1
  51. package/docs/documentation/payments/payment-providers.md +0 -1
  52. package/docs/documentation/payments/transactions-refunds-and-retries.md +2 -1
  53. package/docs/documentation/php/integrate-with-laravel.md +8 -9
  54. package/docs/documentation/php/integrate-with-php.md +6 -7
  55. package/docs/documentation/php/integrate-with-symfony.md +7 -8
  56. package/docs/documentation/plans/add-ons.md +0 -1
  57. package/docs/documentation/plans/balance-and-top-ups.md +1 -2
  58. package/docs/documentation/plans/configure-features.md +0 -1
  59. package/docs/documentation/plans/consumption-models.md +7 -8
  60. package/docs/documentation/plans/create-plans.md +0 -1
  61. package/docs/documentation/plans/credit-packs.md +0 -1
  62. package/docs/documentation/plans/one-time-payments.md +0 -1
  63. package/docs/documentation/plans/plan-groups.md +0 -1
  64. package/docs/documentation/platform/custom-domains.md +0 -1
  65. package/docs/documentation/platform/dashboard-metrics-and-events.md +0 -1
  66. package/docs/documentation/platform/members-and-permissions.md +0 -1
  67. package/docs/documentation/platform/organization-settings.md +0 -1
  68. package/docs/documentation/python/integrate-with-django.md +8 -9
  69. package/docs/documentation/python/integrate-with-fastapi.md +8 -9
  70. package/docs/documentation/python/integrate-with-flask.md +8 -9
  71. package/docs/documentation/python/integrate-with-python.md +6 -7
  72. package/docs/documentation/sales/card-promotions.md +0 -1
  73. package/docs/documentation/sales/introductory-offers.md +0 -1
  74. package/docs/documentation/sales/offers.md +0 -1
  75. package/docs/documentation/sales/promo-codes.md +19 -5
  76. package/docs/documentation/sales/promotional-offers.md +1 -2
  77. package/docs/documentation/sales/regional-prices.md +0 -1
  78. package/docs/documentation/sales/trial-periods.md +8 -8
  79. package/docs/documentation/sdk-reference.md +1 -2
  80. package/docs/documentation/subscriptions/manage-subscriptions.md +2 -1
  81. package/docs/documentation/subscriptions/plan-grants.md +0 -1
  82. package/docs/documentation/subscriptions/upgrade-and-downgrade-plans.md +0 -1
  83. package/docs/documentation/testing-sandbox.md +0 -1
  84. package/docs/documentation/usage/ai-token-billing.md +0 -1
  85. package/docs/documentation/usage/quota-management.md +0 -1
  86. package/docs/documentation/usage/seat-management.md +0 -1
  87. package/docs/documentation/usage/track-usage.md +0 -1
  88. package/docs/knowledge-base/how-do-balance-and-top-ups-work.md +1 -2
  89. package/docs/knowledge-base/how-do-credits-credit-packs-and-customer-credits-differ.md +0 -1
  90. package/docs/knowledge-base/how-do-discounts-work.md +0 -1
  91. package/docs/knowledge-base/how-do-free-plans-work-without-payment.md +8 -9
  92. package/docs/knowledge-base/how-do-monthly-quarterly-and-yearly-billing-work.md +6 -7
  93. package/docs/knowledge-base/how-do-offers-promo-codes-and-card-promotions-work-together.md +0 -1
  94. package/docs/knowledge-base/how-do-trial-periods-work.md +0 -1
  95. package/docs/knowledge-base/how-does-billing-work.md +0 -1
  96. package/docs/knowledge-base/how-does-payment-routing-work.md +0 -1
  97. package/docs/knowledge-base/how-does-quota-based-billing-work.md +0 -1
  98. package/docs/knowledge-base/how-does-seat-based-billing-work.md +0 -1
  99. package/docs/knowledge-base/how-is-proration-calculated-when-changing-plans.md +1 -2
  100. package/docs/knowledge-base/what-happens-when-a-customer-changes-plans.md +2 -1
  101. package/docs/knowledge-base/what-happens-when-a-payment-fails.md +0 -1
  102. package/docs/knowledge-base/what-happens-when-you-change-your-prices.md +0 -1
  103. package/docs/knowledge-base/what-happens-when-you-refund-or-retry-a-transaction.md +0 -1
  104. package/docs/knowledge-base/what-invoices-do-customers-receive-and-when.md +13 -14
  105. package/docs/manifest.json +72 -157
  106. package/docs/platform-documentation.md +69 -155
  107. package/docs/schemas.md +10 -9
  108. package/docs/webhooks/introduction.md +0 -1
  109. package/docs/webhooks.md +2 -0
  110. package/docs/webhooks.openapi.json +11058 -0
  111. package/package.json +1 -1
  112. package/docs/ai-onboarding/meta.json +0 -17
  113. package/docs/api-reference/meta.json +0 -7
  114. package/docs/documentation/customers/meta.json +0 -5
  115. package/docs/documentation/finance/meta.json +0 -13
  116. package/docs/documentation/go/meta.json +0 -5
  117. package/docs/documentation/invoicing/meta.json +0 -9
  118. package/docs/documentation/java/meta.json +0 -5
  119. package/docs/documentation/meta.json +0 -36
  120. package/docs/documentation/nodejs/meta.json +0 -14
  121. package/docs/documentation/payments/meta.json +0 -10
  122. package/docs/documentation/php/meta.json +0 -9
  123. package/docs/documentation/plans/meta.json +0 -14
  124. package/docs/documentation/platform/meta.json +0 -10
  125. package/docs/documentation/python/meta.json +0 -10
  126. package/docs/documentation/sales/meta.json +0 -13
  127. package/docs/documentation/subscriptions/meta.json +0 -9
  128. package/docs/documentation/usage/meta.json +0 -10
  129. package/docs/knowledge-base/meta.json +0 -29
  130. package/docs/meta.json +0 -11
  131. package/docs/webhooks/addon-activated.md +0 -44
  132. package/docs/webhooks/addon-deactivated.md +0 -40
  133. package/docs/webhooks/balance-depleted.md +0 -37
  134. package/docs/webhooks/balance-low.md +0 -39
  135. package/docs/webhooks/balance-topped-up.md +0 -41
  136. package/docs/webhooks/checkout-ready.md +0 -43
  137. package/docs/webhooks/credits-depleted.md +0 -35
  138. package/docs/webhooks/credits-expired.md +0 -35
  139. package/docs/webhooks/credits-granted.md +0 -37
  140. package/docs/webhooks/credits-low.md +0 -39
  141. package/docs/webhooks/credits-purchased.md +0 -41
  142. package/docs/webhooks/customer-created.md +0 -49
  143. package/docs/webhooks/customer-state-changed.md +0 -134
  144. package/docs/webhooks/customer-updated.md +0 -49
  145. package/docs/webhooks/invoice-created.md +0 -45
  146. package/docs/webhooks/invoice-overdue.md +0 -53
  147. package/docs/webhooks/invoice-upcoming.md +0 -43
  148. package/docs/webhooks/invoice-voided.md +0 -53
  149. package/docs/webhooks/meta.json +0 -89
  150. package/docs/webhooks/payment-dispute-resolved.md +0 -52
  151. package/docs/webhooks/payment-disputed.md +0 -49
  152. package/docs/webhooks/payment-failed.md +0 -178
  153. package/docs/webhooks/payment-link-canceled.md +0 -41
  154. package/docs/webhooks/payment-link-completed.md +0 -89
  155. package/docs/webhooks/payment-link-created.md +0 -41
  156. package/docs/webhooks/payment-link-failed.md +0 -87
  157. package/docs/webhooks/payment-method-attached.md +0 -44
  158. package/docs/webhooks/payment-method-updated.md +0 -37
  159. package/docs/webhooks/payment-received.md +0 -202
  160. package/docs/webhooks/payment-recovered.md +0 -43
  161. package/docs/webhooks/payment-refunded.md +0 -47
  162. package/docs/webhooks/payment-retry-failed.md +0 -39
  163. package/docs/webhooks/payout-available.md +0 -33
  164. package/docs/webhooks/payout-created.md +0 -48
  165. package/docs/webhooks/payout-failed.md +0 -52
  166. package/docs/webhooks/payout-paid.md +0 -48
  167. package/docs/webhooks/plan-grant-created.md +0 -74
  168. package/docs/webhooks/plan-grant-expired.md +0 -86
  169. package/docs/webhooks/plan-grant-revoked.md +0 -86
  170. package/docs/webhooks/plan-grant-updated.md +0 -86
  171. package/docs/webhooks/quota-exceeded.md +0 -44
  172. package/docs/webhooks/quota-threshold-reached.md +0 -41
  173. package/docs/webhooks/seats-limit-reached.md +0 -39
  174. package/docs/webhooks/seats-updated.md +0 -39
  175. package/docs/webhooks/subscription-activated.md +0 -43
  176. package/docs/webhooks/subscription-canceled.md +0 -58
  177. package/docs/webhooks/subscription-cancellation-revoked.md +0 -37
  178. package/docs/webhooks/subscription-cancellation-scheduled.md +0 -45
  179. package/docs/webhooks/subscription-created.md +0 -35
  180. package/docs/webhooks/subscription-past-due.md +0 -43
  181. package/docs/webhooks/subscription-pause-revoked.md +0 -27
  182. package/docs/webhooks/subscription-pause-scheduled.md +0 -35
  183. package/docs/webhooks/subscription-pause-updated.md +0 -31
  184. package/docs/webhooks/subscription-paused.md +0 -35
  185. package/docs/webhooks/subscription-plan-change-revoked.md +0 -50
  186. package/docs/webhooks/subscription-plan-change-scheduled.md +0 -55
  187. package/docs/webhooks/subscription-plan-changed.md +0 -43
  188. package/docs/webhooks/subscription-reactivated.md +0 -53
  189. package/docs/webhooks/subscription-resume-failed.md +0 -33
  190. package/docs/webhooks/subscription-resumed.md +0 -35
  191. package/docs/webhooks/subscription-updated.md +0 -39
  192. package/docs/webhooks/trial-checkout-ready.md +0 -39
  193. package/docs/webhooks/trial-converted.md +0 -39
  194. package/docs/webhooks/trial-expired.md +0 -39
  195. package/docs/webhooks/trial-started.md +0 -46
  196. package/docs/webhooks/trial-will-end.md +0 -41
  197. package/docs/webhooks/usage-recorded.md +0 -41
package/docs/schemas.md CHANGED
@@ -9,6 +9,7 @@ Generated from Commet API version `2026-08-27`.
9
9
  - `"weekly"`
10
10
  - `"monthly"`
11
11
  - `"quarterly"`
12
+ - `"semiannual"`
12
13
  - `"yearly"`
13
14
  - `"one_time"`
14
15
 
@@ -424,7 +425,7 @@ Variants:
424
425
 
425
426
  - `id` (`string`, required)
426
427
  - `name` (`string`, required)
427
- - `phases` (`Array<{ type: "free_trial"; durationDays: number } | { type: "percentage"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; percentage: number } | { type: "amount_off"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; amounts: Array<{ currency: string; amount: number }> } | { type: "fixed_price"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; prices: Array<{ currency: string; amount: number }> }>`, required)
428
+ - `phases` (`Array<{ type: "free_trial"; durationDays: number } | { type: "percentage"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; percentage: number } | { type: "amount_off"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; amounts: Array<{ currency: string; amount: number }> } | { type: "fixed_price"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; prices: Array<{ currency: string; amount: number }> }>`, required)
428
429
  - `metadata` (`Record<string, unknown>`, required)
429
430
  - `startsAt` (`string | null`, required)
430
431
  - `endsAt` (`string | null`, required)
@@ -517,9 +518,9 @@ Variants:
517
518
 
518
519
  Variants:
519
520
 
520
- - `{ outcome: "requires_checkout"; requiresCheckout: true; checkoutUrl: string; offerApplication?: { id: string; offerId: string; name: string; currency: string; subtotal: number; discountAmount: number; total: number; phases: Array<{ type: "free_trial"; durationDays: number; startsAt: string | null; endsAt: string | null } | { type: "percentage"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; startsAt: string | null; endsAt: string | null; percentage: number } | { type: "amount_off"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; startsAt: string | null; endsAt: string | null; amount: number } | { type: "fixed_price"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; startsAt: string | null; endsAt: string | null; price: number }>; appliesTo: { type: "plan_price"; id: string } | { type: "addon"; id: string } | { type: "credit_pack"; id: string } }; object: "plan_change"; livemode: boolean }`
521
+ - `{ outcome: "requires_checkout"; requiresCheckout: true; checkoutUrl: string; offerApplication?: { id: string; offerId: string; name: string; currency: string; subtotal: number; discountAmount: number; total: number; phases: Array<{ type: "free_trial"; durationDays: number; startsAt: string | null; endsAt: string | null } | { type: "percentage"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; startsAt: string | null; endsAt: string | null; percentage: number } | { type: "amount_off"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; startsAt: string | null; endsAt: string | null; amount: number } | { type: "fixed_price"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; startsAt: string | null; endsAt: string | null; price: number }>; appliesTo: { type: "plan_price"; id: string } | { type: "addon"; id: string } | { type: "credit_pack"; id: string } }; object: "plan_change"; livemode: boolean }`
521
522
  - `{ outcome: "scheduled"; id: string; scheduled: true; scheduledFor: string; changeType: "subscription.plan_downgrade" | "subscription.interval_change" | "subscription.cancel"; customerId: string; newPlanId?: string; newPlanName?: string; newBillingInterval?: string; seatLimitWarning?: { featureCode: string; featureName: string; currentSeats: number; included: number; newPlanName: string; effectiveDate: string }; object: "plan_change"; livemode: boolean }`
522
- - `{ outcome: "completed"; id: string; scheduled: false; customerId: string; previousPlan: { id: string; name: string }; currentPlan: { id: string; name: string; price: number }; billingInterval: string; billing: { credit: number; creditsApplied: number; charge: number; taxAmount: number; netAmount: number; totalCharged: number; remainingCreditBalance: number }; invoiceId?: string; offerApplication?: { id: string; offerId: string; name: string; currency: string; subtotal: number; discountAmount: number; total: number; phases: Array<{ type: "free_trial"; durationDays: number; startsAt: string | null; endsAt: string | null } | { type: "percentage"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; startsAt: string | null; endsAt: string | null; percentage: number } | { type: "amount_off"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; startsAt: string | null; endsAt: string | null; amount: number } | { type: "fixed_price"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; startsAt: string | null; endsAt: string | null; price: number }>; appliesTo: { type: "plan_price"; id: string } | { type: "addon"; id: string } | { type: "credit_pack"; id: string } }; object: "plan_change"; livemode: boolean }`
523
+ - `{ outcome: "completed"; id: string; scheduled: false; customerId: string; previousPlan: { id: string; name: string }; currentPlan: { id: string; name: string; price: number }; billingInterval: string; billing: { credit: number; creditsApplied: number; charge: number; taxAmount: number; netAmount: number; totalCharged: number; remainingCreditBalance: number }; invoiceId?: string; offerApplication?: { id: string; offerId: string; name: string; currency: string; subtotal: number; discountAmount: number; total: number; phases: Array<{ type: "free_trial"; durationDays: number; startsAt: string | null; endsAt: string | null } | { type: "percentage"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; startsAt: string | null; endsAt: string | null; percentage: number } | { type: "amount_off"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; startsAt: string | null; endsAt: string | null; amount: number } | { type: "fixed_price"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; startsAt: string | null; endsAt: string | null; price: number }>; appliesTo: { type: "plan_price"; id: string } | { type: "addon"; id: string } | { type: "credit_pack"; id: string } }; object: "plan_change"; livemode: boolean }`
523
524
 
524
525
  ### PlanFeature
525
526
 
@@ -632,7 +633,7 @@ Variants:
632
633
  - `daysRemaining` (`number`, required)
633
634
  - `totalDays` (`number`, required)
634
635
  - `isUpgrade` (`boolean`, required)
635
- - `offerApplication` (`{ id: string; offerId: string; name: string; currency: string; subtotal: number; discountAmount: number; total: number; phases: Array<{ type: "free_trial"; durationDays: number; startsAt: string | null; endsAt: string | null } | { type: "percentage"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; startsAt: string | null; endsAt: string | null; percentage: number } | { type: "amount_off"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; startsAt: string | null; endsAt: string | null; amount: number } | { type: "fixed_price"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; startsAt: string | null; endsAt: string | null; price: number }>; appliesTo: { type: "plan_price"; id: string } | { type: "addon"; id: string } | { type: "credit_pack"; id: string } }`, optional)
636
+ - `offerApplication` (`{ id: string; offerId: string; name: string; currency: string; subtotal: number; discountAmount: number; total: number; phases: Array<{ type: "free_trial"; durationDays: number; startsAt: string | null; endsAt: string | null } | { type: "percentage"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; startsAt: string | null; endsAt: string | null; percentage: number } | { type: "amount_off"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; startsAt: string | null; endsAt: string | null; amount: number } | { type: "fixed_price"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; startsAt: string | null; endsAt: string | null; price: number }>; appliesTo: { type: "plan_price"; id: string } | { type: "addon"; id: string } | { type: "credit_pack"; id: string } }`, optional)
636
637
  - `object` (`"plan_change_preview"`, required)
637
638
  - `livemode` (`boolean`, required)
638
639
 
@@ -656,7 +657,7 @@ Variants:
656
657
  - `subscriptionId` (`string`, required)
657
658
  - `invoiceId` (`string`, required)
658
659
  - `status` (`"processing" | "succeeded"`, required)
659
- - `offerApplication` (`{ id: string; offerId: string; name: string; currency: string; subtotal: number; discountAmount: number; total: number; phases: Array<{ type: "free_trial"; durationDays: number; startsAt: string | null; endsAt: string | null } | { type: "percentage"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; startsAt: string | null; endsAt: string | null; percentage: number } | { type: "amount_off"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; startsAt: string | null; endsAt: string | null; amount: number } | { type: "fixed_price"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; startsAt: string | null; endsAt: string | null; price: number }>; appliesTo: { type: "plan_price"; id: string } | { type: "addon"; id: string } | { type: "credit_pack"; id: string } }`, optional)
660
+ - `offerApplication` (`{ id: string; offerId: string; name: string; currency: string; subtotal: number; discountAmount: number; total: number; phases: Array<{ type: "free_trial"; durationDays: number; startsAt: string | null; endsAt: string | null } | { type: "percentage"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; startsAt: string | null; endsAt: string | null; percentage: number } | { type: "amount_off"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; startsAt: string | null; endsAt: string | null; amount: number } | { type: "fixed_price"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; startsAt: string | null; endsAt: string | null; price: number }>; appliesTo: { type: "plan_price"; id: string } | { type: "addon"; id: string } | { type: "credit_pack"; id: string } }`, optional)
660
661
  - `object` (`"subscription_reactivation"`, required)
661
662
  - `livemode` (`boolean`, required)
662
663
 
@@ -792,10 +793,10 @@ Variants:
792
793
 
793
794
  Variants:
794
795
 
795
- - `{ type: "free_trial"; durationDays: number; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; startsAt: string | null; endsAt: string | null }`
796
- - `{ type: "percentage"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; percentage: number; startsAt: string | null; endsAt: string | null }`
797
- - `{ type: "amount_off"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; amount: number; startsAt: string | null; endsAt: string | null }`
798
- - `{ type: "fixed_price"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; price: number; startsAt: string | null; endsAt: string | null }`
796
+ - `{ type: "free_trial"; durationDays: number; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; startsAt: string | null; endsAt: string | null }`
797
+ - `{ type: "percentage"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; percentage: number; startsAt: string | null; endsAt: string | null }`
798
+ - `{ type: "amount_off"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; amount: number; startsAt: string | null; endsAt: string | null }`
799
+ - `{ type: "fixed_price"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; price: number; startsAt: string | null; endsAt: string | null }`
799
800
 
800
801
  ### SubscriptionResume
801
802
 
@@ -1,5 +1,4 @@
1
1
  ---
2
- lastModified: 2026-07-31
3
2
  title: Introduction
4
3
  description: Receive real-time notifications when events happen in your Commet account.
5
4
  ---
package/docs/webhooks.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Generated from Commet API version `2026-08-27`.
4
4
 
5
+ The complete contract, with every field description and example, is in [webhooks.openapi.json](./webhooks.openapi.json).
6
+
5
7
  ## subscription.created
6
8
 
7
9
  Fired when a subscription record is created with status pending_payment. The first charge has not been confirmed yet — do NOT grant access here. Wait for subscription.activated.