@commet/node 9.1.1 → 9.3.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.
package/dist/index.d.mts CHANGED
@@ -426,6 +426,9 @@ type FeatureAccess = {
426
426
  type: "boolean";
427
427
  /** Whether the feature is enabled. */
428
428
  enabled: boolean;
429
+ baseAccess?: {
430
+ enabled: boolean;
431
+ } | null;
429
432
  object: "feature_access";
430
433
  livemode: boolean;
431
434
  } | {
@@ -538,6 +541,10 @@ type FeatureAccess = {
538
541
  scale: 10000;
539
542
  };
540
543
  };
544
+ baseAccess?: {
545
+ includedUnits: number;
546
+ unlimited: boolean;
547
+ } | null;
541
548
  object: "feature_access";
542
549
  livemode: boolean;
543
550
  } | {
@@ -588,6 +595,10 @@ type FeatureAccess = {
588
595
  };
589
596
  };
590
597
  };
598
+ baseAccess?: {
599
+ includedUnits: number;
600
+ unlimited: boolean;
601
+ } | null;
591
602
  object: "feature_access";
592
603
  livemode: boolean;
593
604
  } | {
@@ -640,6 +651,10 @@ type FeatureAccess = {
640
651
  /** Highest quota reached during the period and used for billing. */
641
652
  billedUnits: number;
642
653
  };
654
+ baseAccess?: {
655
+ includedUnits: number;
656
+ unlimited: boolean;
657
+ } | null;
643
658
  object: "feature_access";
644
659
  livemode: boolean;
645
660
  };
@@ -1470,12 +1485,26 @@ interface Subscription {
1470
1485
  /** @format date-time */
1471
1486
  updatedAt: string;
1472
1487
  offerApplications: Array<SubscriptionOfferApplication>;
1488
+ planGrant?: {
1489
+ /** The active Plan Grant ID. */
1490
+ id: string;
1491
+ /** The higher plan whose access is temporarily applied. */
1492
+ plan: {
1493
+ id: string;
1494
+ name: string;
1495
+ };
1496
+ /** When the temporary access ends, or null when it lasts until revoked. */
1497
+ expiresAt: string | null;
1498
+ };
1473
1499
  consumptionModel: ConsumptionModel | null;
1474
1500
  features: Array<{
1475
1501
  code: string;
1476
1502
  name: string;
1477
1503
  type: "boolean";
1478
1504
  enabled: boolean;
1505
+ baseAccess?: {
1506
+ enabled: boolean;
1507
+ } | null;
1479
1508
  } | {
1480
1509
  code: string;
1481
1510
  name: string;
@@ -1485,7 +1514,12 @@ interface Subscription {
1485
1514
  included: number;
1486
1515
  overageQuantity: number;
1487
1516
  overageUnitPrice?: number;
1517
+ unlimited?: boolean;
1488
1518
  };
1519
+ baseAccess?: {
1520
+ included: number;
1521
+ unlimited: boolean;
1522
+ } | null;
1489
1523
  } | {
1490
1524
  code: string;
1491
1525
  name: string;
@@ -1495,11 +1529,27 @@ interface Subscription {
1495
1529
  included: number;
1496
1530
  overageQuantity: number;
1497
1531
  overageUnitPrice?: number;
1532
+ unlimited?: boolean;
1498
1533
  };
1534
+ baseAccess?: {
1535
+ included: number;
1536
+ unlimited: boolean;
1537
+ } | null;
1499
1538
  } | {
1500
1539
  code: string;
1501
1540
  name: string;
1502
1541
  type: "quota";
1542
+ usage?: {
1543
+ current: number;
1544
+ included: number;
1545
+ overageQuantity: number;
1546
+ overageUnitPrice?: number;
1547
+ unlimited?: boolean;
1548
+ };
1549
+ baseAccess?: {
1550
+ included: number;
1551
+ unlimited: boolean;
1552
+ } | null;
1503
1553
  }>;
1504
1554
  credits: {
1505
1555
  remaining: number;
@@ -1886,6 +1936,31 @@ interface WebhookCreditsBalance {
1886
1936
  purchasedCredits: number;
1887
1937
  totalCredits: number;
1888
1938
  }
1939
+ interface WebhookPlanGrantTimelineEvent {
1940
+ /** The public ID of this plan grant event. */
1941
+ id: string;
1942
+ /** The durable lifecycle transition recorded by this event. */
1943
+ type: "created" | "updated" | "expired" | "revoked";
1944
+ /** The reason recorded for this transition. */
1945
+ reason: string;
1946
+ /** Where this transition originated. */
1947
+ source: "dashboard" | "api" | "system";
1948
+ /** The prior expiration deadline for an update, otherwise null. */
1949
+ previousExpiresAt: string | null;
1950
+ /** The expiration deadline after this transition, if any. */
1951
+ expiresAt: string | null;
1952
+ /** The duration selected by a create or update event. */
1953
+ duration: "cycles" | "until_date" | "until_revoked" | null;
1954
+ /** The selected cycle count when duration is cycles. */
1955
+ durationCycles: number | null;
1956
+ /** The requested deadline when duration is until_date. */
1957
+ requestedExpiresAt: string | null;
1958
+ /**
1959
+ * When this transition occurred.
1960
+ * @format date-time
1961
+ */
1962
+ createdAt: string;
1963
+ }
1889
1964
  interface WebhookPlanRef {
1890
1965
  id: string;
1891
1966
  name: string;
@@ -2088,7 +2163,7 @@ interface CreateCustomerCreditParams {
2088
2163
  id: string;
2089
2164
  /** Amount in the currency's smallest unit. */
2090
2165
  amount: number;
2091
- currency: "usd" | "ars" | "brl" | "clp" | "cop" | "pen" | "uyu" | "pyg" | "bob" | "mxn" | "cad" | "eur" | "jpy" | "cny" | "krw" | "hkd" | "sgd" | "twd" | "inr" | "thb";
2166
+ currency: "usd" | "ars" | "brl" | "clp" | "cop" | "pen" | "uyu" | "pyg" | "bob" | "mxn" | "cad" | "eur" | "gbp" | "jpy" | "cny" | "krw" | "hkd" | "sgd" | "twd" | "inr" | "thb";
2092
2167
  reason: string;
2093
2168
  expiresAt?: string | null;
2094
2169
  }
@@ -2693,7 +2768,7 @@ interface UpdatePlanPriceParams {
2693
2768
  metadata?: Record<string, unknown>;
2694
2769
  marketPrices?: Array<{
2695
2770
  marketGroupId: string;
2696
- currency: "usd" | "ars" | "brl" | "clp" | "cop" | "pen" | "uyu" | "pyg" | "bob" | "mxn" | "cad" | "eur" | "jpy" | "cny" | "krw" | "hkd" | "sgd" | "twd" | "inr" | "thb";
2771
+ currency: "usd" | "ars" | "brl" | "clp" | "cop" | "pen" | "uyu" | "pyg" | "bob" | "mxn" | "cad" | "eur" | "gbp" | "jpy" | "cny" | "krw" | "hkd" | "sgd" | "twd" | "inr" | "thb";
2697
2772
  price: number;
2698
2773
  }>;
2699
2774
  }
@@ -2714,7 +2789,7 @@ type AddPlanPriceParams = {
2714
2789
  /** Public ID of a reusable pricing market group. */
2715
2790
  marketGroupId: string;
2716
2791
  /** Presentment currency configured for this plan and market. */
2717
- currency: "usd" | "ars" | "brl" | "clp" | "cop" | "pen" | "uyu" | "pyg" | "bob" | "mxn" | "cad" | "eur" | "jpy" | "cny" | "krw" | "hkd" | "sgd" | "twd" | "inr" | "thb";
2792
+ currency: "usd" | "ars" | "brl" | "clp" | "cop" | "pen" | "uyu" | "pyg" | "bob" | "mxn" | "cad" | "eur" | "gbp" | "jpy" | "cny" | "krw" | "hkd" | "sgd" | "twd" | "inr" | "thb";
2718
2793
  /** Market price in the currency's minor unit. */
2719
2794
  price: number;
2720
2795
  }>;
@@ -2727,14 +2802,14 @@ type AddPlanPriceParams = {
2727
2802
  /** Public ID of a reusable pricing market group. */
2728
2803
  marketGroupId: string;
2729
2804
  /** Presentment currency configured for this plan and market. */
2730
- currency: "usd" | "ars" | "brl" | "clp" | "cop" | "pen" | "uyu" | "pyg" | "bob" | "mxn" | "cad" | "eur" | "jpy" | "cny" | "krw" | "hkd" | "sgd" | "twd" | "inr" | "thb";
2805
+ currency: "usd" | "ars" | "brl" | "clp" | "cop" | "pen" | "uyu" | "pyg" | "bob" | "mxn" | "cad" | "eur" | "gbp" | "jpy" | "cny" | "krw" | "hkd" | "sgd" | "twd" | "inr" | "thb";
2731
2806
  /** Market price in the currency's minor unit. */
2732
2807
  price: number;
2733
2808
  }>;
2734
2809
  };
2735
2810
  interface SetPlanRegionalPricingParams {
2736
2811
  id: string;
2737
- currency: "usd" | "ars" | "brl" | "clp" | "cop" | "pen" | "uyu" | "pyg" | "bob" | "mxn" | "cad" | "eur" | "jpy" | "cny" | "krw" | "hkd" | "sgd" | "twd" | "inr" | "thb";
2812
+ currency: "usd" | "ars" | "brl" | "clp" | "cop" | "pen" | "uyu" | "pyg" | "bob" | "mxn" | "cad" | "eur" | "gbp" | "jpy" | "cny" | "krw" | "hkd" | "sgd" | "twd" | "inr" | "thb";
2738
2813
  exchangeRate: number;
2739
2814
  prices?: Array<{
2740
2815
  priceId: string;
@@ -3181,7 +3256,7 @@ declare class SubscriptionsResource {
3181
3256
  changePlan(params: ChangePlanParams, options?: RequestOptions): Promise<PlanChange>;
3182
3257
  /** Purchase a credit pack for a subscription. Charges the customer and adds credits to their balance. */
3183
3258
  purchaseCredits(params: PurchaseCreditsParams, options?: RequestOptions): Promise<CreditGrant>;
3184
- /** Apply or replace a direct Offer on a subscription's pending payment checkout. The existing checkout URL remains unchanged. Offers whose first phase is a free trial cannot be applied after checkout creation. */
3259
+ /** Apply a direct Offer to a subscription. On a pending payment checkout it quotes or replaces the checkout discount and the existing checkout URL remains unchanged. On an active subscription it applies the Offer immediately with its discount phases starting at the next billing cycle; the call is rejected while another applied Offer still has active or upcoming discount phases. Offers with a free trial phase cannot be applied after checkout creation. */
3185
3260
  applyOffer(params: ApplySubscriptionOfferParams, options?: RequestOptions): Promise<Subscription>;
3186
3261
  /** Remove the quoted direct Offer from a subscription's pending payment checkout. The existing checkout URL remains unchanged and returns to its undiscounted price. */
3187
3262
  removeOffer(params: RemoveSubscriptionOfferParams, options?: RequestOptions): Promise<Subscription>;
@@ -3344,7 +3419,7 @@ declare class GeneratedResources {
3344
3419
  protected initResources(http: CommetHTTPClient): void;
3345
3420
  }
3346
3421
 
3347
- type WebhookEvent = "subscription.created" | "subscription.activated" | "subscription.reactivated" | "subscription.canceled" | "subscription.updated" | "subscription.plan_changed" | "subscription.cancellation_scheduled" | "subscription.cancellation_revoked" | "subscription.plan_change_scheduled" | "subscription.plan_change_revoked" | "subscription.past_due" | "trial.started" | "trial.converted" | "trial.expired" | "trial.will_end" | "trial.checkout_ready" | "checkout.ready" | "payment.received" | "payment.failed" | "payment.recovered" | "payment.retry_failed" | "payment.refunded" | "payment.disputed" | "payment.dispute_resolved" | "payment_link.created" | "payment_link.completed" | "payment_link.failed" | "payment_link.canceled" | "invoice.created" | "invoice.voided" | "invoice.overdue" | "invoice.upcoming" | "payment_method.attached" | "payment_method.updated" | "customer.created" | "customer.updated" | "customer.state_changed" | "credits.granted" | "credits.purchased" | "credits.low" | "credits.depleted" | "credits.expired" | "balance.topped_up" | "balance.low" | "balance.depleted" | "quota.threshold_reached" | "quota.exceeded" | "seats.updated" | "seats.limit_reached" | "addon.activated" | "addon.deactivated" | "usage.recorded" | "payout.available" | "payout.created" | "payout.paid" | "payout.failed";
3422
+ type WebhookEvent = "subscription.created" | "subscription.activated" | "subscription.reactivated" | "subscription.canceled" | "subscription.updated" | "subscription.plan_changed" | "subscription.cancellation_scheduled" | "subscription.cancellation_revoked" | "subscription.plan_change_scheduled" | "subscription.plan_change_revoked" | "subscription.past_due" | "trial.started" | "trial.converted" | "trial.expired" | "trial.will_end" | "trial.checkout_ready" | "checkout.ready" | "payment.received" | "payment.failed" | "payment.recovered" | "payment.retry_failed" | "payment.refunded" | "payment.disputed" | "payment.dispute_resolved" | "payment_link.created" | "payment_link.completed" | "payment_link.failed" | "payment_link.canceled" | "invoice.created" | "invoice.voided" | "invoice.overdue" | "invoice.upcoming" | "payment_method.attached" | "payment_method.updated" | "customer.created" | "customer.updated" | "customer.state_changed" | "plan_grant.created" | "plan_grant.updated" | "plan_grant.expired" | "plan_grant.revoked" | "credits.granted" | "credits.purchased" | "credits.low" | "credits.depleted" | "credits.expired" | "balance.topped_up" | "balance.low" | "balance.depleted" | "quota.threshold_reached" | "quota.exceeded" | "seats.updated" | "seats.limit_reached" | "addon.activated" | "addon.deactivated" | "usage.recorded" | "payout.available" | "payout.created" | "payout.paid" | "payout.failed";
3348
3423
  /** 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. */
3349
3424
  interface SubscriptionCreatedData {
3350
3425
  /** The subscription ID. */
@@ -4244,6 +4319,190 @@ interface CustomerStateChangedData {
4244
4319
  /** For balance plans: currentBalance in rate scale (10000 = $1.00). Null otherwise. */
4245
4320
  balance: WebhookBalance | null;
4246
4321
  }
4322
+ /** Fired after a plan grant is durably created. The payload is the grant snapshot at creation. */
4323
+ interface PlanGrantCreatedData {
4324
+ /** The public plan grant ID. */
4325
+ id: string;
4326
+ /** The public customer ID. */
4327
+ customerId: string;
4328
+ /** The public subscription ID. */
4329
+ subscriptionId: string;
4330
+ /** The public ID of the subscribed base plan. */
4331
+ basePlanId: string;
4332
+ /** The public ID of the plan whose access was granted. */
4333
+ targetPlanId: string;
4334
+ /** The public ID of the immutable target plan release. */
4335
+ targetPlanReleaseId: string;
4336
+ /** The plan grant status at this transition. */
4337
+ status: "active" | "expired" | "revoked";
4338
+ /** How the plan grant duration is defined at this transition. */
4339
+ duration: "cycles" | "until_date" | "until_revoked";
4340
+ /** The cycle count when duration is cycles. */
4341
+ durationCycles: number | null;
4342
+ /**
4343
+ * When the plan grant started.
4344
+ * @format date-time
4345
+ */
4346
+ startsAt: string;
4347
+ /** The effective expiration deadline, if any. */
4348
+ expiresAt: string | null;
4349
+ /** The reason recorded for this transition. */
4350
+ reason: string;
4351
+ /** Where this transition originated. */
4352
+ source: "dashboard" | "api" | "system";
4353
+ /** When the plan grant was revoked, otherwise null. */
4354
+ revokedAt: string | null;
4355
+ /**
4356
+ * When the plan grant was created.
4357
+ * @format date-time
4358
+ */
4359
+ createdAt: string;
4360
+ /**
4361
+ * When the represented transition occurred.
4362
+ * @format date-time
4363
+ */
4364
+ updatedAt: string;
4365
+ /** The grant timeline through the represented transition. */
4366
+ events: Array<WebhookPlanGrantTimelineEvent>;
4367
+ }
4368
+ /** Fired after a plan grant duration or deadline is durably changed. The payload is the grant snapshot at that update. */
4369
+ interface PlanGrantUpdatedData {
4370
+ /** The public plan grant ID. */
4371
+ id: string;
4372
+ /** The public customer ID. */
4373
+ customerId: string;
4374
+ /** The public subscription ID. */
4375
+ subscriptionId: string;
4376
+ /** The public ID of the subscribed base plan. */
4377
+ basePlanId: string;
4378
+ /** The public ID of the plan whose access was granted. */
4379
+ targetPlanId: string;
4380
+ /** The public ID of the immutable target plan release. */
4381
+ targetPlanReleaseId: string;
4382
+ /** The plan grant status at this transition. */
4383
+ status: "active" | "expired" | "revoked";
4384
+ /** How the plan grant duration is defined at this transition. */
4385
+ duration: "cycles" | "until_date" | "until_revoked";
4386
+ /** The cycle count when duration is cycles. */
4387
+ durationCycles: number | null;
4388
+ /**
4389
+ * When the plan grant started.
4390
+ * @format date-time
4391
+ */
4392
+ startsAt: string;
4393
+ /** The effective expiration deadline, if any. */
4394
+ expiresAt: string | null;
4395
+ /** The reason recorded for this transition. */
4396
+ reason: string;
4397
+ /** Where this transition originated. */
4398
+ source: "dashboard" | "api" | "system";
4399
+ /** When the plan grant was revoked, otherwise null. */
4400
+ revokedAt: string | null;
4401
+ /**
4402
+ * When the plan grant was created.
4403
+ * @format date-time
4404
+ */
4405
+ createdAt: string;
4406
+ /**
4407
+ * When the represented transition occurred.
4408
+ * @format date-time
4409
+ */
4410
+ updatedAt: string;
4411
+ /** The grant timeline through the represented transition. */
4412
+ events: Array<WebhookPlanGrantTimelineEvent>;
4413
+ }
4414
+ /** Fired after a plan grant is durably expired, whether discovered automatically or while replacing an expired grant. */
4415
+ interface PlanGrantExpiredData {
4416
+ /** The public plan grant ID. */
4417
+ id: string;
4418
+ /** The public customer ID. */
4419
+ customerId: string;
4420
+ /** The public subscription ID. */
4421
+ subscriptionId: string;
4422
+ /** The public ID of the subscribed base plan. */
4423
+ basePlanId: string;
4424
+ /** The public ID of the plan whose access was granted. */
4425
+ targetPlanId: string;
4426
+ /** The public ID of the immutable target plan release. */
4427
+ targetPlanReleaseId: string;
4428
+ /** The plan grant status at this transition. */
4429
+ status: "active" | "expired" | "revoked";
4430
+ /** How the plan grant duration is defined at this transition. */
4431
+ duration: "cycles" | "until_date" | "until_revoked";
4432
+ /** The cycle count when duration is cycles. */
4433
+ durationCycles: number | null;
4434
+ /**
4435
+ * When the plan grant started.
4436
+ * @format date-time
4437
+ */
4438
+ startsAt: string;
4439
+ /** The effective expiration deadline, if any. */
4440
+ expiresAt: string | null;
4441
+ /** The reason recorded for this transition. */
4442
+ reason: string;
4443
+ /** Where this transition originated. */
4444
+ source: "dashboard" | "api" | "system";
4445
+ /** When the plan grant was revoked, otherwise null. */
4446
+ revokedAt: string | null;
4447
+ /**
4448
+ * When the plan grant was created.
4449
+ * @format date-time
4450
+ */
4451
+ createdAt: string;
4452
+ /**
4453
+ * When the represented transition occurred.
4454
+ * @format date-time
4455
+ */
4456
+ updatedAt: string;
4457
+ /** The grant timeline through the represented transition. */
4458
+ events: Array<WebhookPlanGrantTimelineEvent>;
4459
+ }
4460
+ /** Fired after an active plan grant is durably revoked. The payload is the grant snapshot at revocation. */
4461
+ interface PlanGrantRevokedData {
4462
+ /** The public plan grant ID. */
4463
+ id: string;
4464
+ /** The public customer ID. */
4465
+ customerId: string;
4466
+ /** The public subscription ID. */
4467
+ subscriptionId: string;
4468
+ /** The public ID of the subscribed base plan. */
4469
+ basePlanId: string;
4470
+ /** The public ID of the plan whose access was granted. */
4471
+ targetPlanId: string;
4472
+ /** The public ID of the immutable target plan release. */
4473
+ targetPlanReleaseId: string;
4474
+ /** The plan grant status at this transition. */
4475
+ status: "active" | "expired" | "revoked";
4476
+ /** How the plan grant duration is defined at this transition. */
4477
+ duration: "cycles" | "until_date" | "until_revoked";
4478
+ /** The cycle count when duration is cycles. */
4479
+ durationCycles: number | null;
4480
+ /**
4481
+ * When the plan grant started.
4482
+ * @format date-time
4483
+ */
4484
+ startsAt: string;
4485
+ /** The effective expiration deadline, if any. */
4486
+ expiresAt: string | null;
4487
+ /** The reason recorded for this transition. */
4488
+ reason: string;
4489
+ /** Where this transition originated. */
4490
+ source: "dashboard" | "api" | "system";
4491
+ /** When the plan grant was revoked, otherwise null. */
4492
+ revokedAt: string | null;
4493
+ /**
4494
+ * When the plan grant was created.
4495
+ * @format date-time
4496
+ */
4497
+ createdAt: string;
4498
+ /**
4499
+ * When the represented transition occurred.
4500
+ * @format date-time
4501
+ */
4502
+ updatedAt: string;
4503
+ /** The grant timeline through the represented transition. */
4504
+ events: Array<WebhookPlanGrantTimelineEvent>;
4505
+ }
4247
4506
  /** Fired when non-purchase credits are granted to a subscription: plan-included credits at the start of each billing period, or a manual adjustment from the dashboard. Credit pack purchases fire credits.purchased instead. */
4248
4507
  interface CreditsGrantedData {
4249
4508
  /** The subscription ID. */
@@ -4516,7 +4775,7 @@ interface WebhookEventEnvelope<E extends WebhookEvent, D> {
4516
4775
  apiVersion: string;
4517
4776
  data: D;
4518
4777
  }
4519
- type WebhookEventPayload = WebhookEventEnvelope<"subscription.created", SubscriptionCreatedData> | WebhookEventEnvelope<"subscription.activated", SubscriptionActivatedData> | WebhookEventEnvelope<"subscription.reactivated", SubscriptionReactivatedData> | WebhookEventEnvelope<"subscription.canceled", SubscriptionCanceledData> | WebhookEventEnvelope<"subscription.updated", SubscriptionUpdatedData> | WebhookEventEnvelope<"subscription.plan_changed", SubscriptionPlanChangedData> | WebhookEventEnvelope<"subscription.cancellation_scheduled", SubscriptionCancellationScheduledData> | WebhookEventEnvelope<"subscription.cancellation_revoked", SubscriptionCancellationRevokedData> | WebhookEventEnvelope<"subscription.plan_change_scheduled", SubscriptionPlanChangeScheduledData> | WebhookEventEnvelope<"subscription.plan_change_revoked", SubscriptionPlanChangeRevokedData> | WebhookEventEnvelope<"subscription.past_due", SubscriptionPastDueData> | WebhookEventEnvelope<"trial.started", TrialStartedData> | WebhookEventEnvelope<"trial.converted", TrialConvertedData> | WebhookEventEnvelope<"trial.expired", TrialExpiredData> | WebhookEventEnvelope<"trial.will_end", TrialWillEndData> | WebhookEventEnvelope<"trial.checkout_ready", TrialCheckoutReadyData> | WebhookEventEnvelope<"checkout.ready", CheckoutReadyData> | WebhookEventEnvelope<"payment.received", PaymentReceivedData> | WebhookEventEnvelope<"payment.failed", PaymentFailedData> | WebhookEventEnvelope<"payment.recovered", PaymentRecoveredData> | WebhookEventEnvelope<"payment.retry_failed", PaymentRetryFailedData> | WebhookEventEnvelope<"payment.refunded", PaymentRefundedData> | WebhookEventEnvelope<"payment.disputed", PaymentDisputedData> | WebhookEventEnvelope<"payment.dispute_resolved", PaymentDisputeResolvedData> | WebhookEventEnvelope<"payment_link.created", PaymentLinkCreatedData> | WebhookEventEnvelope<"payment_link.completed", PaymentLinkCompletedData> | WebhookEventEnvelope<"payment_link.failed", PaymentLinkFailedData> | WebhookEventEnvelope<"payment_link.canceled", PaymentLinkCanceledData> | WebhookEventEnvelope<"invoice.created", InvoiceCreatedData> | WebhookEventEnvelope<"invoice.voided", InvoiceVoidedData> | WebhookEventEnvelope<"invoice.overdue", InvoiceOverdueData> | WebhookEventEnvelope<"invoice.upcoming", InvoiceUpcomingData> | WebhookEventEnvelope<"payment_method.attached", PaymentMethodAttachedData> | WebhookEventEnvelope<"payment_method.updated", PaymentMethodUpdatedData> | WebhookEventEnvelope<"customer.created", CustomerCreatedData> | WebhookEventEnvelope<"customer.updated", CustomerUpdatedData> | WebhookEventEnvelope<"customer.state_changed", CustomerStateChangedData> | WebhookEventEnvelope<"credits.granted", CreditsGrantedData> | WebhookEventEnvelope<"credits.purchased", CreditsPurchasedData> | WebhookEventEnvelope<"credits.low", CreditsLowData> | WebhookEventEnvelope<"credits.depleted", CreditsDepletedData> | WebhookEventEnvelope<"credits.expired", CreditsExpiredData> | WebhookEventEnvelope<"balance.topped_up", BalanceToppedUpData> | WebhookEventEnvelope<"balance.low", BalanceLowData> | WebhookEventEnvelope<"balance.depleted", BalanceDepletedData> | WebhookEventEnvelope<"quota.threshold_reached", QuotaThresholdReachedData> | WebhookEventEnvelope<"quota.exceeded", QuotaExceededData> | WebhookEventEnvelope<"seats.updated", SeatsUpdatedData> | WebhookEventEnvelope<"seats.limit_reached", SeatsLimitReachedData> | WebhookEventEnvelope<"addon.activated", AddonActivatedData> | WebhookEventEnvelope<"addon.deactivated", AddonDeactivatedData> | WebhookEventEnvelope<"usage.recorded", UsageRecordedData> | WebhookEventEnvelope<"payout.available", PayoutAvailableData> | WebhookEventEnvelope<"payout.created", PayoutCreatedData> | WebhookEventEnvelope<"payout.paid", PayoutPaidData> | WebhookEventEnvelope<"payout.failed", PayoutFailedData>;
4778
+ type WebhookEventPayload = WebhookEventEnvelope<"subscription.created", SubscriptionCreatedData> | WebhookEventEnvelope<"subscription.activated", SubscriptionActivatedData> | WebhookEventEnvelope<"subscription.reactivated", SubscriptionReactivatedData> | WebhookEventEnvelope<"subscription.canceled", SubscriptionCanceledData> | WebhookEventEnvelope<"subscription.updated", SubscriptionUpdatedData> | WebhookEventEnvelope<"subscription.plan_changed", SubscriptionPlanChangedData> | WebhookEventEnvelope<"subscription.cancellation_scheduled", SubscriptionCancellationScheduledData> | WebhookEventEnvelope<"subscription.cancellation_revoked", SubscriptionCancellationRevokedData> | WebhookEventEnvelope<"subscription.plan_change_scheduled", SubscriptionPlanChangeScheduledData> | WebhookEventEnvelope<"subscription.plan_change_revoked", SubscriptionPlanChangeRevokedData> | WebhookEventEnvelope<"subscription.past_due", SubscriptionPastDueData> | WebhookEventEnvelope<"trial.started", TrialStartedData> | WebhookEventEnvelope<"trial.converted", TrialConvertedData> | WebhookEventEnvelope<"trial.expired", TrialExpiredData> | WebhookEventEnvelope<"trial.will_end", TrialWillEndData> | WebhookEventEnvelope<"trial.checkout_ready", TrialCheckoutReadyData> | WebhookEventEnvelope<"checkout.ready", CheckoutReadyData> | WebhookEventEnvelope<"payment.received", PaymentReceivedData> | WebhookEventEnvelope<"payment.failed", PaymentFailedData> | WebhookEventEnvelope<"payment.recovered", PaymentRecoveredData> | WebhookEventEnvelope<"payment.retry_failed", PaymentRetryFailedData> | WebhookEventEnvelope<"payment.refunded", PaymentRefundedData> | WebhookEventEnvelope<"payment.disputed", PaymentDisputedData> | WebhookEventEnvelope<"payment.dispute_resolved", PaymentDisputeResolvedData> | WebhookEventEnvelope<"payment_link.created", PaymentLinkCreatedData> | WebhookEventEnvelope<"payment_link.completed", PaymentLinkCompletedData> | WebhookEventEnvelope<"payment_link.failed", PaymentLinkFailedData> | WebhookEventEnvelope<"payment_link.canceled", PaymentLinkCanceledData> | WebhookEventEnvelope<"invoice.created", InvoiceCreatedData> | WebhookEventEnvelope<"invoice.voided", InvoiceVoidedData> | WebhookEventEnvelope<"invoice.overdue", InvoiceOverdueData> | WebhookEventEnvelope<"invoice.upcoming", InvoiceUpcomingData> | WebhookEventEnvelope<"payment_method.attached", PaymentMethodAttachedData> | WebhookEventEnvelope<"payment_method.updated", PaymentMethodUpdatedData> | WebhookEventEnvelope<"customer.created", CustomerCreatedData> | WebhookEventEnvelope<"customer.updated", CustomerUpdatedData> | WebhookEventEnvelope<"customer.state_changed", CustomerStateChangedData> | WebhookEventEnvelope<"plan_grant.created", PlanGrantCreatedData> | WebhookEventEnvelope<"plan_grant.updated", PlanGrantUpdatedData> | WebhookEventEnvelope<"plan_grant.expired", PlanGrantExpiredData> | WebhookEventEnvelope<"plan_grant.revoked", PlanGrantRevokedData> | WebhookEventEnvelope<"credits.granted", CreditsGrantedData> | WebhookEventEnvelope<"credits.purchased", CreditsPurchasedData> | WebhookEventEnvelope<"credits.low", CreditsLowData> | WebhookEventEnvelope<"credits.depleted", CreditsDepletedData> | WebhookEventEnvelope<"credits.expired", CreditsExpiredData> | WebhookEventEnvelope<"balance.topped_up", BalanceToppedUpData> | WebhookEventEnvelope<"balance.low", BalanceLowData> | WebhookEventEnvelope<"balance.depleted", BalanceDepletedData> | WebhookEventEnvelope<"quota.threshold_reached", QuotaThresholdReachedData> | WebhookEventEnvelope<"quota.exceeded", QuotaExceededData> | WebhookEventEnvelope<"seats.updated", SeatsUpdatedData> | WebhookEventEnvelope<"seats.limit_reached", SeatsLimitReachedData> | WebhookEventEnvelope<"addon.activated", AddonActivatedData> | WebhookEventEnvelope<"addon.deactivated", AddonDeactivatedData> | WebhookEventEnvelope<"usage.recorded", UsageRecordedData> | WebhookEventEnvelope<"payout.available", PayoutAvailableData> | WebhookEventEnvelope<"payout.created", PayoutCreatedData> | WebhookEventEnvelope<"payout.paid", PayoutPaidData> | WebhookEventEnvelope<"payout.failed", PayoutFailedData>;
4520
4779
  interface WebhookEventDataMap {
4521
4780
  "subscription.created": SubscriptionCreatedData;
4522
4781
  "subscription.activated": SubscriptionActivatedData;
@@ -4555,6 +4814,10 @@ interface WebhookEventDataMap {
4555
4814
  "customer.created": CustomerCreatedData;
4556
4815
  "customer.updated": CustomerUpdatedData;
4557
4816
  "customer.state_changed": CustomerStateChangedData;
4817
+ "plan_grant.created": PlanGrantCreatedData;
4818
+ "plan_grant.updated": PlanGrantUpdatedData;
4819
+ "plan_grant.expired": PlanGrantExpiredData;
4820
+ "plan_grant.revoked": PlanGrantRevokedData;
4558
4821
  "credits.granted": CreditsGrantedData;
4559
4822
  "credits.purchased": CreditsPurchasedData;
4560
4823
  "credits.low": CreditsLowData;
@@ -4606,7 +4869,7 @@ interface GetWebhookEndpointParams {
4606
4869
  interface UpdateWebhookEndpointParams {
4607
4870
  id: string;
4608
4871
  url?: string;
4609
- events?: Array<"subscription.created" | "subscription.activated" | "subscription.reactivated" | "subscription.canceled" | "subscription.updated" | "subscription.plan_changed" | "subscription.cancellation_scheduled" | "subscription.cancellation_revoked" | "subscription.plan_change_scheduled" | "subscription.plan_change_revoked" | "subscription.past_due" | "trial.started" | "trial.converted" | "trial.expired" | "trial.will_end" | "trial.checkout_ready" | "checkout.ready" | "payment.received" | "payment.failed" | "payment.recovered" | "payment.retry_failed" | "payment.refunded" | "payment.disputed" | "payment.dispute_resolved" | "payment_link.created" | "payment_link.completed" | "payment_link.failed" | "payment_link.canceled" | "invoice.created" | "invoice.voided" | "invoice.overdue" | "invoice.upcoming" | "payment_method.attached" | "payment_method.updated" | "customer.created" | "customer.updated" | "customer.state_changed" | "credits.granted" | "credits.purchased" | "credits.low" | "credits.depleted" | "credits.expired" | "balance.topped_up" | "balance.low" | "balance.depleted" | "quota.threshold_reached" | "quota.exceeded" | "seats.updated" | "seats.limit_reached" | "addon.activated" | "addon.deactivated" | "usage.recorded" | "payout.available" | "payout.created" | "payout.paid" | "payout.failed">;
4872
+ events?: Array<"subscription.created" | "subscription.activated" | "subscription.reactivated" | "subscription.canceled" | "subscription.updated" | "subscription.plan_changed" | "subscription.cancellation_scheduled" | "subscription.cancellation_revoked" | "subscription.plan_change_scheduled" | "subscription.plan_change_revoked" | "subscription.past_due" | "trial.started" | "trial.converted" | "trial.expired" | "trial.will_end" | "trial.checkout_ready" | "checkout.ready" | "payment.received" | "payment.failed" | "payment.recovered" | "payment.retry_failed" | "payment.refunded" | "payment.disputed" | "payment.dispute_resolved" | "payment_link.created" | "payment_link.completed" | "payment_link.failed" | "payment_link.canceled" | "invoice.created" | "invoice.voided" | "invoice.overdue" | "invoice.upcoming" | "payment_method.attached" | "payment_method.updated" | "customer.created" | "customer.updated" | "customer.state_changed" | "plan_grant.created" | "plan_grant.updated" | "plan_grant.expired" | "plan_grant.revoked" | "credits.granted" | "credits.purchased" | "credits.low" | "credits.depleted" | "credits.expired" | "balance.topped_up" | "balance.low" | "balance.depleted" | "quota.threshold_reached" | "quota.exceeded" | "seats.updated" | "seats.limit_reached" | "addon.activated" | "addon.deactivated" | "usage.recorded" | "payout.available" | "payout.created" | "payout.paid" | "payout.failed">;
4610
4873
  description?: string | null;
4611
4874
  isActive?: boolean;
4612
4875
  apiVersion?: string;
@@ -4623,7 +4886,7 @@ interface ListWebhookEndpointsParams {
4623
4886
  }
4624
4887
  interface CreateWebhookEndpointParams {
4625
4888
  url: string;
4626
- events: Array<"subscription.created" | "subscription.activated" | "subscription.reactivated" | "subscription.canceled" | "subscription.updated" | "subscription.plan_changed" | "subscription.cancellation_scheduled" | "subscription.cancellation_revoked" | "subscription.plan_change_scheduled" | "subscription.plan_change_revoked" | "subscription.past_due" | "trial.started" | "trial.converted" | "trial.expired" | "trial.will_end" | "trial.checkout_ready" | "checkout.ready" | "payment.received" | "payment.failed" | "payment.recovered" | "payment.retry_failed" | "payment.refunded" | "payment.disputed" | "payment.dispute_resolved" | "payment_link.created" | "payment_link.completed" | "payment_link.failed" | "payment_link.canceled" | "invoice.created" | "invoice.voided" | "invoice.overdue" | "invoice.upcoming" | "payment_method.attached" | "payment_method.updated" | "customer.created" | "customer.updated" | "customer.state_changed" | "credits.granted" | "credits.purchased" | "credits.low" | "credits.depleted" | "credits.expired" | "balance.topped_up" | "balance.low" | "balance.depleted" | "quota.threshold_reached" | "quota.exceeded" | "seats.updated" | "seats.limit_reached" | "addon.activated" | "addon.deactivated" | "usage.recorded" | "payout.available" | "payout.created" | "payout.paid" | "payout.failed">;
4889
+ events: Array<"subscription.created" | "subscription.activated" | "subscription.reactivated" | "subscription.canceled" | "subscription.updated" | "subscription.plan_changed" | "subscription.cancellation_scheduled" | "subscription.cancellation_revoked" | "subscription.plan_change_scheduled" | "subscription.plan_change_revoked" | "subscription.past_due" | "trial.started" | "trial.converted" | "trial.expired" | "trial.will_end" | "trial.checkout_ready" | "checkout.ready" | "payment.received" | "payment.failed" | "payment.recovered" | "payment.retry_failed" | "payment.refunded" | "payment.disputed" | "payment.dispute_resolved" | "payment_link.created" | "payment_link.completed" | "payment_link.failed" | "payment_link.canceled" | "invoice.created" | "invoice.voided" | "invoice.overdue" | "invoice.upcoming" | "payment_method.attached" | "payment_method.updated" | "customer.created" | "customer.updated" | "customer.state_changed" | "plan_grant.created" | "plan_grant.updated" | "plan_grant.expired" | "plan_grant.revoked" | "credits.granted" | "credits.purchased" | "credits.low" | "credits.depleted" | "credits.expired" | "balance.topped_up" | "balance.low" | "balance.depleted" | "quota.threshold_reached" | "quota.exceeded" | "seats.updated" | "seats.limit_reached" | "addon.activated" | "addon.deactivated" | "usage.recorded" | "payout.available" | "payout.created" | "payout.paid" | "payout.failed">;
4627
4890
  description?: string;
4628
4891
  apiVersion?: string;
4629
4892
  }
@@ -4661,4 +4924,4 @@ declare function registerIntegration(name: string, version: string): void;
4661
4924
  declare const API_VERSION = "2026-07-31";
4662
4925
  declare const SDK_VERSION: string;
4663
4926
 
4664
- export { API_VERSION, type ActivateAddonParams, type ActiveAddon, type AddPayoutBankAccountParams, type AddPlanFeatureParams, type AddPlanPriceParams, type AddPlanToGroupParams, type AddQuotaParams, type AddSeatsParams, type AddedPlanToGroup, type Addon, type AddonActivatedData, type AddonDeactivatedData, type AdjustBalanceParams, type AdvanceTestClockParams, type ApiErrorDetail, type ApiKey, type ApplySubscriptionOfferParams, type BalanceAdjustment, type BalanceDepletedData, type BalanceLowData, type BalanceToppedUpData, type BalanceTopup, type BatchCreateCustomersParams, type BillingConfig, type BillingInterval, type BulkSetSeatsParams, type CancelPaymentParams, type CancelSubscriptionParams, type ChangePlanParams, type ChargePaymentParams, type CheckUsageAvailabilityParams, type CheckoutReadyData, type ClaimLink, Commet, CommetAPIError, type CommetClientOptions, CommetError, type CommetErrorContext, CommetValidationError, type ConsumptionModel, type CreateAddonParams, type CreateAdjustmentInvoiceParams, type CreateApiKeyParams, type CreateCreditPackParams, type CreateCustomerCreditParams, type CreateCustomerParams, type CreateFeatureParams, type CreateMarketParams, type CreateOfferParams, type CreatePaymentParams, type CreatePlanGrantParams, type CreatePlanGroupParams, type CreatePlanParams, type CreatePromoCodeParams, type CreateSubscriptionParams, type CreateSubscriptionRecoveryLinkParams, type CreateWebhookEndpointParams, type CreatedApiKey, type CreatedSubscription, type CreatedWebhook, type CreditGrant, type CreditPack, type CreditPackListItem, type CreditsDepletedData, type CreditsExpiredData, type CreditsGrantedData, type CreditsLowData, type CreditsPurchasedData, type Customer, type CustomerBatch, type CustomerCreatedData, type CustomerCredit, type CustomerCreditRevocation, type CustomerStateChangedData, type CustomerUpdatedData, type DeactivateAddonParams, type DeleteAddonParams, type DeleteApiKeyParams, type DeleteCreditPackParams, type DeleteFeatureParams, type DeleteMarketParams, type DeleteOfferParams, type DeletePlanGroupParams, type DeletePlanParams, type DeletePlanPriceParams, type DeleteRegionalPricesParams, type DeleteWebhookEndpointParams, type DeletedObject, type DeletedOffer, type DeletedPlanRegionalPricing, type DeletedSubscriptionAddon, type DownloadInvoiceParams, type Feature, type FeatureAccess, type FeatureDef, type FeatureType, type GetActiveSubscriptionParams, type GetAddonParams, type GetAllQuotaAllowancesParams, type GetAllSeatBalancesParams, type GetCustomerParams, type GetFeatureAccessParams, type GetFeatureParams, type GetInvoiceParams, type GetMarketParams, type GetOfferParams, type GetPaymentParams, type GetPlanGroupParams, type GetPlanParams, type GetPromoCodeParams, type GetQuotaAllowanceParams, type GetSeatBalanceParams, type GetSubscriptionParams, type GetTransactionParams, type GetWebhookEndpointParams, type InferFeatureCodes, type InferPlanCodes, type InferSeatCodes, type InferUsageCodes, type Invoice, type InvoiceCreatedData, type InvoiceDownload, type InvoiceListItem, type InvoiceOverdueData, type InvoiceType, type InvoiceUpcomingData, type InvoiceVoidedData, type ListActiveAddonsParams, type ListAddonsParams, type ListApiKeysParams, type ListCustomerCreditsParams, type ListCustomersParams, type ListFeatureAccessParams, type ListInvoicesParams, type ListOffersParams, type ListPaymentsParams, type ListPlanGrantsParams, type ListPlanGroupsParams, type ListPlansParams, type ListPromoCodesParams, type ListSubscriptionsParams, type ListTransactionsParams, type ListWebhookEndpointsParams, type Market, type Offer, type Payment, type PaymentDisputeResolvedData, type PaymentDisputedData, type PaymentFailedData, type PaymentLinkCanceledData, type PaymentLinkCompletedData, type PaymentLinkCreatedData, type PaymentLinkFailedData, type PaymentMethodAttachedData, type PaymentMethodUpdateCheckout, type PaymentMethodUpdatedData, type PaymentProvider, type PaymentReceivedData, type PaymentRecoveredData, type PaymentRefundedData, type PaymentRetryFailedData, type Payout, type PayoutAvailableData, type PayoutBankAccount, type PayoutCreatedData, type PayoutFailedData, type PayoutPaidData, type Plan, type PlanChange, type PlanDef, type PlanFeature, type PlanFeatureValue, type PlanGrant, type PlanGroup, type PlanGroupDetail, type PlanPrice, type PlanRegionalPricing, type PlanRegionalPricingResult, type PortalAccess, type PreviewChange, type PreviewChangePlanParams, type PriceDef, type PromoCode, type PurchaseCreditsParams, type QuotaExceededData, type QuotaThresholdReachedData, type ReactivateSubscriptionParams, type ReactivatedSubscription, type RecoveryLink, type Refund, type RefundTransactionParams, type RemovePlanFeatureParams, type RemovePlanFromGroupParams, type RemoveQuotaParams, type RemoveSeatsParams, type RemoveSubscriptionOfferParams, type RemovedPlanFeature, type RemovedPlanFromGroup, type ReorderPlansInGroupParams, type ReorderedPlans, type RequestOptions, type RequestPayoutParams, type RequestPortalAccessParams, type ResolvedFeatureCode, type ResolvedPlanCode, type ResolvedSeatCode, type ResolvedUsageCode, type RetryTransactionParams, type RevokeCustomerCreditParams, type RevokePlanGrantParams, SDK_VERSION, type SeatBalance, type SeatBalanceCollection, type SeatEvent, type SeatsLimitReachedData, type SeatsUpdatedData, type SendInvoiceParams, type SentInvoice, type SetDefaultPlanPriceParams, type SetPlanRegionalPricingParams, type SetPlanVisibilityParams, type SetQuotaParams, type SetSeatsParams, type SetUsageParams, type Subscription, type SubscriptionActivatedData, type SubscriptionAddon, type SubscriptionCanceledData, type SubscriptionCancellationRevokedData, type SubscriptionCancellationScheduledData, type SubscriptionCreatedData, type SubscriptionOfferApplication, type SubscriptionOfferApplicationPhase, type SubscriptionPastDueData, type SubscriptionPlanChangeRevokedData, type SubscriptionPlanChangeScheduledData, type SubscriptionPlanChangedData, type SubscriptionReactivatedData, type SubscriptionStatus, type SubscriptionSummary, type SubscriptionUpdatedData, type TestClock, type TestClockRun, type TestWebhookEndpointParams, type Timezone, type TopupBalanceParams, type TrackUsageParams, type Transaction, type TransactionListItem, type TransactionRetry, type TransactionStatus, type TrialCheckoutReadyData, type TrialConvertedData, type TrialExpiredData, type TrialStartedData, type TrialWillEndData, type UncancelSubscriptionParams, type UpdateAddonParams, type UpdateCreditPackParams, type UpdateCustomerParams, type UpdateFeatureParams, type UpdateInvoiceStatusParams, type UpdateMarketParams, type UpdateOfferParams, type UpdatePaymentMethodParams, type UpdatePlanFeatureParams, type UpdatePlanGrantParams, type UpdatePlanGroupParams, type UpdatePlanParams, type UpdatePlanPriceParams, type UpdatePromoCodeParams, type UpdateWebhookEndpointParams, type UpsertRegionalPricesParams, type UsageAdjustment, type UsageCheck, type UsageEvent, type UsageQuota, type UsageQuotaEvent, type UsageRecordedData, type Webhook, type WebhookAddonRef, type WebhookBalance, type WebhookBankRef, type WebhookCardInfo, type WebhookCreditsBalance, type WebhookData, type WebhookEvent, type WebhookEventDataMap, type WebhookEventEnvelope, type WebhookEventHandler, type WebhookEventPayload, type WebhookPayload, type WebhookPlanRef, type WebhookSeatSummary, type WebhookTest, Webhooks, createCommet, Commet as default, defineConfig, registerIntegration };
4927
+ export { API_VERSION, type ActivateAddonParams, type ActiveAddon, type AddPayoutBankAccountParams, type AddPlanFeatureParams, type AddPlanPriceParams, type AddPlanToGroupParams, type AddQuotaParams, type AddSeatsParams, type AddedPlanToGroup, type Addon, type AddonActivatedData, type AddonDeactivatedData, type AdjustBalanceParams, type AdvanceTestClockParams, type ApiErrorDetail, type ApiKey, type ApplySubscriptionOfferParams, type BalanceAdjustment, type BalanceDepletedData, type BalanceLowData, type BalanceToppedUpData, type BalanceTopup, type BatchCreateCustomersParams, type BillingConfig, type BillingInterval, type BulkSetSeatsParams, type CancelPaymentParams, type CancelSubscriptionParams, type ChangePlanParams, type ChargePaymentParams, type CheckUsageAvailabilityParams, type CheckoutReadyData, type ClaimLink, Commet, CommetAPIError, type CommetClientOptions, CommetError, type CommetErrorContext, CommetValidationError, type ConsumptionModel, type CreateAddonParams, type CreateAdjustmentInvoiceParams, type CreateApiKeyParams, type CreateCreditPackParams, type CreateCustomerCreditParams, type CreateCustomerParams, type CreateFeatureParams, type CreateMarketParams, type CreateOfferParams, type CreatePaymentParams, type CreatePlanGrantParams, type CreatePlanGroupParams, type CreatePlanParams, type CreatePromoCodeParams, type CreateSubscriptionParams, type CreateSubscriptionRecoveryLinkParams, type CreateWebhookEndpointParams, type CreatedApiKey, type CreatedSubscription, type CreatedWebhook, type CreditGrant, type CreditPack, type CreditPackListItem, type CreditsDepletedData, type CreditsExpiredData, type CreditsGrantedData, type CreditsLowData, type CreditsPurchasedData, type Customer, type CustomerBatch, type CustomerCreatedData, type CustomerCredit, type CustomerCreditRevocation, type CustomerStateChangedData, type CustomerUpdatedData, type DeactivateAddonParams, type DeleteAddonParams, type DeleteApiKeyParams, type DeleteCreditPackParams, type DeleteFeatureParams, type DeleteMarketParams, type DeleteOfferParams, type DeletePlanGroupParams, type DeletePlanParams, type DeletePlanPriceParams, type DeleteRegionalPricesParams, type DeleteWebhookEndpointParams, type DeletedObject, type DeletedOffer, type DeletedPlanRegionalPricing, type DeletedSubscriptionAddon, type DownloadInvoiceParams, type Feature, type FeatureAccess, type FeatureDef, type FeatureType, type GetActiveSubscriptionParams, type GetAddonParams, type GetAllQuotaAllowancesParams, type GetAllSeatBalancesParams, type GetCustomerParams, type GetFeatureAccessParams, type GetFeatureParams, type GetInvoiceParams, type GetMarketParams, type GetOfferParams, type GetPaymentParams, type GetPlanGroupParams, type GetPlanParams, type GetPromoCodeParams, type GetQuotaAllowanceParams, type GetSeatBalanceParams, type GetSubscriptionParams, type GetTransactionParams, type GetWebhookEndpointParams, type InferFeatureCodes, type InferPlanCodes, type InferSeatCodes, type InferUsageCodes, type Invoice, type InvoiceCreatedData, type InvoiceDownload, type InvoiceListItem, type InvoiceOverdueData, type InvoiceType, type InvoiceUpcomingData, type InvoiceVoidedData, type ListActiveAddonsParams, type ListAddonsParams, type ListApiKeysParams, type ListCustomerCreditsParams, type ListCustomersParams, type ListFeatureAccessParams, type ListInvoicesParams, type ListOffersParams, type ListPaymentsParams, type ListPlanGrantsParams, type ListPlanGroupsParams, type ListPlansParams, type ListPromoCodesParams, type ListSubscriptionsParams, type ListTransactionsParams, type ListWebhookEndpointsParams, type Market, type Offer, type Payment, type PaymentDisputeResolvedData, type PaymentDisputedData, type PaymentFailedData, type PaymentLinkCanceledData, type PaymentLinkCompletedData, type PaymentLinkCreatedData, type PaymentLinkFailedData, type PaymentMethodAttachedData, type PaymentMethodUpdateCheckout, type PaymentMethodUpdatedData, type PaymentProvider, type PaymentReceivedData, type PaymentRecoveredData, type PaymentRefundedData, type PaymentRetryFailedData, type Payout, type PayoutAvailableData, type PayoutBankAccount, type PayoutCreatedData, type PayoutFailedData, type PayoutPaidData, type Plan, type PlanChange, type PlanDef, type PlanFeature, type PlanFeatureValue, type PlanGrant, type PlanGrantCreatedData, type PlanGrantExpiredData, type PlanGrantRevokedData, type PlanGrantUpdatedData, type PlanGroup, type PlanGroupDetail, type PlanPrice, type PlanRegionalPricing, type PlanRegionalPricingResult, type PortalAccess, type PreviewChange, type PreviewChangePlanParams, type PriceDef, type PromoCode, type PurchaseCreditsParams, type QuotaExceededData, type QuotaThresholdReachedData, type ReactivateSubscriptionParams, type ReactivatedSubscription, type RecoveryLink, type Refund, type RefundTransactionParams, type RemovePlanFeatureParams, type RemovePlanFromGroupParams, type RemoveQuotaParams, type RemoveSeatsParams, type RemoveSubscriptionOfferParams, type RemovedPlanFeature, type RemovedPlanFromGroup, type ReorderPlansInGroupParams, type ReorderedPlans, type RequestOptions, type RequestPayoutParams, type RequestPortalAccessParams, type ResolvedFeatureCode, type ResolvedPlanCode, type ResolvedSeatCode, type ResolvedUsageCode, type RetryTransactionParams, type RevokeCustomerCreditParams, type RevokePlanGrantParams, SDK_VERSION, type SeatBalance, type SeatBalanceCollection, type SeatEvent, type SeatsLimitReachedData, type SeatsUpdatedData, type SendInvoiceParams, type SentInvoice, type SetDefaultPlanPriceParams, type SetPlanRegionalPricingParams, type SetPlanVisibilityParams, type SetQuotaParams, type SetSeatsParams, type SetUsageParams, type Subscription, type SubscriptionActivatedData, type SubscriptionAddon, type SubscriptionCanceledData, type SubscriptionCancellationRevokedData, type SubscriptionCancellationScheduledData, type SubscriptionCreatedData, type SubscriptionOfferApplication, type SubscriptionOfferApplicationPhase, type SubscriptionPastDueData, type SubscriptionPlanChangeRevokedData, type SubscriptionPlanChangeScheduledData, type SubscriptionPlanChangedData, type SubscriptionReactivatedData, type SubscriptionStatus, type SubscriptionSummary, type SubscriptionUpdatedData, type TestClock, type TestClockRun, type TestWebhookEndpointParams, type Timezone, type TopupBalanceParams, type TrackUsageParams, type Transaction, type TransactionListItem, type TransactionRetry, type TransactionStatus, type TrialCheckoutReadyData, type TrialConvertedData, type TrialExpiredData, type TrialStartedData, type TrialWillEndData, type UncancelSubscriptionParams, type UpdateAddonParams, type UpdateCreditPackParams, type UpdateCustomerParams, type UpdateFeatureParams, type UpdateInvoiceStatusParams, type UpdateMarketParams, type UpdateOfferParams, type UpdatePaymentMethodParams, type UpdatePlanFeatureParams, type UpdatePlanGrantParams, type UpdatePlanGroupParams, type UpdatePlanParams, type UpdatePlanPriceParams, type UpdatePromoCodeParams, type UpdateWebhookEndpointParams, type UpsertRegionalPricesParams, type UsageAdjustment, type UsageCheck, type UsageEvent, type UsageQuota, type UsageQuotaEvent, type UsageRecordedData, type Webhook, type WebhookAddonRef, type WebhookBalance, type WebhookBankRef, type WebhookCardInfo, type WebhookCreditsBalance, type WebhookData, type WebhookEvent, type WebhookEventDataMap, type WebhookEventEnvelope, type WebhookEventHandler, type WebhookEventPayload, type WebhookPayload, type WebhookPlanGrantTimelineEvent, type WebhookPlanRef, type WebhookSeatSummary, type WebhookTest, Webhooks, createCommet, Commet as default, defineConfig, registerIntegration };