autumn-js 1.2.43 → 1.2.45

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 (138) hide show
  1. package/dist/backend/adapters/express.d.mts +1 -1
  2. package/dist/backend/adapters/express.d.ts +1 -1
  3. package/dist/backend/adapters/express.js +4338 -4046
  4. package/dist/backend/adapters/express.mjs +8 -8
  5. package/dist/backend/adapters/fetch.d.mts +1 -1
  6. package/dist/backend/adapters/fetch.d.ts +1 -1
  7. package/dist/backend/adapters/fetch.js +4338 -4046
  8. package/dist/backend/adapters/fetch.mjs +8 -8
  9. package/dist/backend/adapters/hono.d.mts +1 -1
  10. package/dist/backend/adapters/hono.d.ts +1 -1
  11. package/dist/backend/adapters/hono.js +4338 -4046
  12. package/dist/backend/adapters/hono.mjs +8 -8
  13. package/dist/backend/adapters/index.d.mts +1 -1
  14. package/dist/backend/adapters/index.d.ts +1 -1
  15. package/dist/backend/adapters/index.js +4338 -4046
  16. package/dist/backend/adapters/index.mjs +11 -11
  17. package/dist/backend/adapters/next.d.mts +1 -1
  18. package/dist/backend/adapters/next.d.ts +1 -1
  19. package/dist/backend/adapters/next.js +4338 -4046
  20. package/dist/backend/adapters/next.mjs +8 -8
  21. package/dist/backend/{authTypes-B2FK_0xh.d.mts → authTypes-COW88tnI.d.mts} +6 -2
  22. package/dist/backend/{authTypes-B2FK_0xh.d.ts → authTypes-COW88tnI.d.ts} +6 -2
  23. package/dist/backend/{chunk-PUITHPYB.mjs → chunk-5DLBV5WP.mjs} +7 -7
  24. package/dist/backend/{chunk-P2VDVARN.mjs → chunk-67LHAREL.mjs} +1 -1
  25. package/dist/backend/{chunk-BFEYTUTD.mjs → chunk-DY6WMOCT.mjs} +5 -5
  26. package/dist/backend/{chunk-F7UCOH2H.mjs → chunk-J2VZ3UZS.mjs} +1 -1
  27. package/dist/backend/{chunk-PMJU66BZ.mjs → chunk-L7N6FVEE.mjs} +1 -1
  28. package/dist/backend/{chunk-A4CQFLP2.mjs → chunk-P2TFPTAM.mjs} +1 -1
  29. package/dist/backend/{chunk-6JWKVTW6.mjs → chunk-PVDDMLWT.mjs} +4064 -3821
  30. package/dist/backend/{chunk-VWRIO2AZ.mjs → chunk-YKRFY5TK.mjs} +62 -13
  31. package/dist/backend/core/handlers/coreHandler.d.mts +2 -2
  32. package/dist/backend/core/handlers/coreHandler.d.ts +2 -2
  33. package/dist/backend/core/handlers/coreHandler.js +4338 -4046
  34. package/dist/backend/core/handlers/coreHandler.mjs +6 -6
  35. package/dist/backend/core/handlers/executeRoute.d.mts +2 -2
  36. package/dist/backend/core/handlers/executeRoute.d.ts +2 -2
  37. package/dist/backend/core/handlers/executeRoute.mjs +3 -3
  38. package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
  39. package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
  40. package/dist/backend/core/handlers/handleRouteByName.js +4338 -4046
  41. package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
  42. package/dist/backend/core/handlers/index.d.mts +2 -2
  43. package/dist/backend/core/handlers/index.d.ts +2 -2
  44. package/dist/backend/core/handlers/index.js +4338 -4046
  45. package/dist/backend/core/handlers/index.mjs +10 -10
  46. package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
  47. package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
  48. package/dist/backend/core/index.d.mts +2 -2
  49. package/dist/backend/core/index.d.ts +2 -2
  50. package/dist/backend/core/index.js +4338 -4046
  51. package/dist/backend/core/index.mjs +7 -7
  52. package/dist/backend/core/routes/index.d.mts +2 -2
  53. package/dist/backend/core/routes/index.d.ts +2 -2
  54. package/dist/backend/core/routes/index.js +62 -13
  55. package/dist/backend/core/routes/index.mjs +1 -1
  56. package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
  57. package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
  58. package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
  59. package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
  60. package/dist/backend/core/routes/routeConfigs.js +62 -13
  61. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  62. package/dist/backend/core/types/authTypes.d.mts +1 -1
  63. package/dist/backend/core/types/authTypes.d.ts +1 -1
  64. package/dist/backend/core/types/handlerTypes.d.mts +2 -2
  65. package/dist/backend/core/types/handlerTypes.d.ts +2 -2
  66. package/dist/backend/core/types/index.d.mts +2 -2
  67. package/dist/backend/core/types/index.d.ts +2 -2
  68. package/dist/backend/core/types/routeTypes.d.mts +2 -2
  69. package/dist/backend/core/types/routeTypes.d.ts +2 -2
  70. package/dist/backend/index.d.mts +4 -4
  71. package/dist/backend/index.d.ts +4 -4
  72. package/dist/backend/index.js +4338 -4046
  73. package/dist/backend/index.mjs +7 -7
  74. package/dist/backend/{routeTypes-Dx6n-_1-.d.ts → routeTypes-COLvwrcx.d.ts} +398 -45
  75. package/dist/backend/{routeTypes-BbDgUCjQ.d.mts → routeTypes-UN48tvoc.d.mts} +398 -45
  76. package/dist/better-auth/{chunk-46KXUK2V.mjs → chunk-3LKXO3EE.mjs} +1 -1
  77. package/dist/better-auth/{chunk-5XFPQFRG.mjs → chunk-J3W4EO5H.mjs} +62 -13
  78. package/dist/better-auth/{chunk-GBZQDO7C.mjs → chunk-MOCG3CBD.mjs} +4065 -3822
  79. package/dist/better-auth/index.js +4338 -4046
  80. package/dist/better-auth/index.mjs +3 -3
  81. package/dist/better-auth/types.d.mts +6 -2
  82. package/dist/better-auth/types.d.ts +6 -2
  83. package/dist/better-auth/utils/createAutumnEndpoint.js +62 -13
  84. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  85. package/dist/better-auth/utils/handleBetterAuthRoute.js +4338 -4046
  86. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  87. package/dist/better-auth/utils/index.js +4338 -4046
  88. package/dist/better-auth/utils/index.mjs +3 -3
  89. package/dist/react/AutumnContext.d.mts +7 -4
  90. package/dist/react/AutumnContext.d.ts +7 -4
  91. package/dist/react/client/AutumnClient.d.mts +4 -4
  92. package/dist/react/client/AutumnClient.d.ts +4 -4
  93. package/dist/react/client/IAutumnClient.d.mts +4 -4
  94. package/dist/react/client/IAutumnClient.d.ts +4 -4
  95. package/dist/react/client/index.d.mts +4 -4
  96. package/dist/react/client/index.d.ts +4 -4
  97. package/dist/react/{customer-DWsFqhDO.d.ts → customer-CNfSCDv_.d.ts} +1 -1
  98. package/dist/react/{customer-DUVEYKmJ.d.mts → customer-VD6pkmpz.d.mts} +1 -1
  99. package/dist/react/hooks/index.d.mts +4 -4
  100. package/dist/react/hooks/index.d.ts +4 -4
  101. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  102. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  103. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  104. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  105. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  106. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  107. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  108. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  109. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  110. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  111. package/dist/react/hooks/internal/useCustomerActions.d.mts +7 -4
  112. package/dist/react/hooks/internal/useCustomerActions.d.ts +7 -4
  113. package/dist/react/hooks/useAggregateEvents.d.mts +5 -2
  114. package/dist/react/hooks/useAggregateEvents.d.ts +5 -2
  115. package/dist/react/hooks/useCustomer.d.mts +4 -3
  116. package/dist/react/hooks/useCustomer.d.ts +4 -3
  117. package/dist/react/hooks/useEntity.d.mts +3 -2
  118. package/dist/react/hooks/useEntity.d.ts +3 -2
  119. package/dist/react/hooks/useListEvents.d.mts +5 -2
  120. package/dist/react/hooks/useListEvents.d.ts +5 -2
  121. package/dist/react/hooks/useListPlans.d.mts +6 -3
  122. package/dist/react/hooks/useListPlans.d.ts +6 -3
  123. package/dist/react/hooks/useReferrals.d.mts +3 -2
  124. package/dist/react/hooks/useReferrals.d.ts +3 -2
  125. package/dist/react/index.d.mts +4 -4
  126. package/dist/react/index.d.ts +4 -4
  127. package/dist/react/{list-plans-op-BpypCKd4.d.ts → list-plans-op-B87IUSZR.d.ts} +15 -3
  128. package/dist/react/{list-plans-op-qIIJzne_.d.mts → list-plans-op-CvGXtKAO.d.mts} +15 -3
  129. package/dist/react/{params-C-0Z0NXW.d.mts → params-ChMwkOJA.d.ts} +105 -13
  130. package/dist/react/{params-DGCHegZ2.d.ts → params-DlzWLPN2.d.mts} +105 -13
  131. package/dist/react/{plan-Cv3WkiHC.d.mts → plan-DBswUtWr.d.mts} +14 -2
  132. package/dist/react/{plan-Cv3WkiHC.d.ts → plan-DBswUtWr.d.ts} +14 -2
  133. package/dist/sdk/index.d.mts +489 -50
  134. package/dist/sdk/index.d.ts +489 -50
  135. package/dist/sdk/index.js +7351 -7069
  136. package/dist/sdk/index.mjs +7333 -7067
  137. package/package.json +1 -1
  138. package/dist/backend/{chunk-MOHYGUMA.mjs → chunk-IXUCY7AU.mjs} +3 -3
@@ -1,4 +1,4 @@
1
- import { O as OpenEnum } from './plan-Cv3WkiHC.js';
1
+ import { O as OpenEnum } from './plan-DBswUtWr.js';
2
2
 
3
3
  type ListPlansAdditionalCurrency = {
4
4
  /**
@@ -310,6 +310,10 @@ type ListPlansItem = {
310
310
  * Whether the customer has unlimited access to this feature.
311
311
  */
312
312
  unlimited: boolean;
313
+ /**
314
+ * Whether entity-level grants contribute to a shared customer balance.
315
+ */
316
+ pooled: boolean;
313
317
  /**
314
318
  * Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
315
319
  */
@@ -626,6 +630,10 @@ type ListPlansPlanItem = {
626
630
  * If true, customer has unlimited access to this feature.
627
631
  */
628
632
  unlimited?: boolean | undefined;
633
+ /**
634
+ * Whether entity-level grants contribute to a shared customer balance.
635
+ */
636
+ pooled: boolean;
629
637
  /**
630
638
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
631
639
  */
@@ -754,7 +762,7 @@ declare const ListPlansVariantDetailsPurchaseLimitInterval: {
754
762
  */
755
763
  type ListPlansVariantDetailsPurchaseLimitInterval = OpenEnum<typeof ListPlansVariantDetailsPurchaseLimitInterval>;
756
764
  /**
757
- * Optional rate limit to cap how often auto top-ups occur.
765
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
758
766
  */
759
767
  type ListPlansVariantDetailsPurchaseLimit = {
760
768
  /**
@@ -769,6 +777,10 @@ type ListPlansVariantDetailsPurchaseLimit = {
769
777
  * Maximum number of auto top-ups allowed within the interval.
770
778
  */
771
779
  limit: number;
780
+ /**
781
+ * Set the current window's consumed auto top-up count. Omit to leave runtime state unchanged.
782
+ */
783
+ count?: number | undefined;
772
784
  };
773
785
  type ListPlansVariantDetailsAutoTopup = {
774
786
  /**
@@ -788,7 +800,7 @@ type ListPlansVariantDetailsAutoTopup = {
788
800
  */
789
801
  quantity: number;
790
802
  /**
791
- * Optional rate limit to cap how often auto top-ups occur.
803
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
792
804
  */
793
805
  purchaseLimit?: ListPlansVariantDetailsPurchaseLimit | undefined;
794
806
  /**
@@ -1,4 +1,4 @@
1
- import { O as OpenEnum } from './plan-Cv3WkiHC.mjs';
1
+ import { O as OpenEnum } from './plan-DBswUtWr.mjs';
2
2
 
3
3
  type ListPlansAdditionalCurrency = {
4
4
  /**
@@ -310,6 +310,10 @@ type ListPlansItem = {
310
310
  * Whether the customer has unlimited access to this feature.
311
311
  */
312
312
  unlimited: boolean;
313
+ /**
314
+ * Whether entity-level grants contribute to a shared customer balance.
315
+ */
316
+ pooled: boolean;
313
317
  /**
314
318
  * Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
315
319
  */
@@ -626,6 +630,10 @@ type ListPlansPlanItem = {
626
630
  * If true, customer has unlimited access to this feature.
627
631
  */
628
632
  unlimited?: boolean | undefined;
633
+ /**
634
+ * Whether entity-level grants contribute to a shared customer balance.
635
+ */
636
+ pooled: boolean;
629
637
  /**
630
638
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
631
639
  */
@@ -754,7 +762,7 @@ declare const ListPlansVariantDetailsPurchaseLimitInterval: {
754
762
  */
755
763
  type ListPlansVariantDetailsPurchaseLimitInterval = OpenEnum<typeof ListPlansVariantDetailsPurchaseLimitInterval>;
756
764
  /**
757
- * Optional rate limit to cap how often auto top-ups occur.
765
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
758
766
  */
759
767
  type ListPlansVariantDetailsPurchaseLimit = {
760
768
  /**
@@ -769,6 +777,10 @@ type ListPlansVariantDetailsPurchaseLimit = {
769
777
  * Maximum number of auto top-ups allowed within the interval.
770
778
  */
771
779
  limit: number;
780
+ /**
781
+ * Set the current window's consumed auto top-up count. Omit to leave runtime state unchanged.
782
+ */
783
+ count?: number | undefined;
772
784
  };
773
785
  type ListPlansVariantDetailsAutoTopup = {
774
786
  /**
@@ -788,7 +800,7 @@ type ListPlansVariantDetailsAutoTopup = {
788
800
  */
789
801
  quantity: number;
790
802
  /**
791
- * Optional rate limit to cap how often auto top-ups occur.
803
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
792
804
  */
793
805
  purchaseLimit?: ListPlansVariantDetailsPurchaseLimit | undefined;
794
806
  /**
@@ -1,4 +1,4 @@
1
- import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-Cv3WkiHC.mjs';
1
+ import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-DBswUtWr.js';
2
2
 
3
3
  /**
4
4
  * Time range to aggregate events for. Either range or custom_range must be provided
@@ -406,6 +406,10 @@ type AttachItemPlanItem = {
406
406
  * If true, customer has unlimited access to this feature.
407
407
  */
408
408
  unlimited?: boolean | undefined;
409
+ /**
410
+ * Whether entity-level grants contribute to a shared customer balance.
411
+ */
412
+ pooled?: boolean | undefined;
409
413
  /**
410
414
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
411
415
  */
@@ -644,6 +648,10 @@ type AttachAddItemPlanItem = {
644
648
  * If true, customer has unlimited access to this feature.
645
649
  */
646
650
  unlimited?: boolean | undefined;
651
+ /**
652
+ * Whether entity-level grants contribute to a shared customer balance.
653
+ */
654
+ pooled?: boolean | undefined;
647
655
  /**
648
656
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
649
657
  */
@@ -772,7 +780,7 @@ declare const AttachPurchaseLimitInterval: {
772
780
  */
773
781
  type AttachPurchaseLimitInterval = ClosedEnum<typeof AttachPurchaseLimitInterval>;
774
782
  /**
775
- * Optional rate limit to cap how often auto top-ups occur.
783
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
776
784
  */
777
785
  type AttachPurchaseLimit = {
778
786
  /**
@@ -787,6 +795,10 @@ type AttachPurchaseLimit = {
787
795
  * Maximum number of auto top-ups allowed within the interval.
788
796
  */
789
797
  limit: number;
798
+ /**
799
+ * Set the current window's consumed auto top-up count. Omit to leave runtime state unchanged.
800
+ */
801
+ count?: number | undefined;
790
802
  };
791
803
  type AttachAutoTopup = {
792
804
  /**
@@ -806,7 +818,7 @@ type AttachAutoTopup = {
806
818
  */
807
819
  quantity: number;
808
820
  /**
809
- * Optional rate limit to cap how often auto top-ups occur.
821
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
810
822
  */
811
823
  purchaseLimit?: AttachPurchaseLimit | undefined;
812
824
  /**
@@ -1213,6 +1225,10 @@ type AttachUpsertLicensePlanItem = {
1213
1225
  * If true, customer has unlimited access to this feature.
1214
1226
  */
1215
1227
  unlimited?: boolean | undefined;
1228
+ /**
1229
+ * Whether entity-level grants contribute to a shared customer balance.
1230
+ */
1231
+ pooled?: boolean | undefined;
1216
1232
  /**
1217
1233
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
1218
1234
  */
@@ -1931,6 +1947,10 @@ type BillingUpdateItemPlanItem = {
1931
1947
  * If true, customer has unlimited access to this feature.
1932
1948
  */
1933
1949
  unlimited?: boolean | undefined;
1950
+ /**
1951
+ * Whether entity-level grants contribute to a shared customer balance.
1952
+ */
1953
+ pooled?: boolean | undefined;
1934
1954
  /**
1935
1955
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
1936
1956
  */
@@ -2169,6 +2189,10 @@ type BillingUpdateAddItemPlanItem = {
2169
2189
  * If true, customer has unlimited access to this feature.
2170
2190
  */
2171
2191
  unlimited?: boolean | undefined;
2192
+ /**
2193
+ * Whether entity-level grants contribute to a shared customer balance.
2194
+ */
2195
+ pooled?: boolean | undefined;
2172
2196
  /**
2173
2197
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
2174
2198
  */
@@ -2297,7 +2321,7 @@ declare const BillingUpdatePurchaseLimitInterval: {
2297
2321
  */
2298
2322
  type BillingUpdatePurchaseLimitInterval = ClosedEnum<typeof BillingUpdatePurchaseLimitInterval>;
2299
2323
  /**
2300
- * Optional rate limit to cap how often auto top-ups occur.
2324
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
2301
2325
  */
2302
2326
  type BillingUpdatePurchaseLimit = {
2303
2327
  /**
@@ -2312,6 +2336,10 @@ type BillingUpdatePurchaseLimit = {
2312
2336
  * Maximum number of auto top-ups allowed within the interval.
2313
2337
  */
2314
2338
  limit: number;
2339
+ /**
2340
+ * Set the current window's consumed auto top-up count. Omit to leave runtime state unchanged.
2341
+ */
2342
+ count?: number | undefined;
2315
2343
  };
2316
2344
  type BillingUpdateAutoTopup = {
2317
2345
  /**
@@ -2331,7 +2359,7 @@ type BillingUpdateAutoTopup = {
2331
2359
  */
2332
2360
  quantity: number;
2333
2361
  /**
2334
- * Optional rate limit to cap how often auto top-ups occur.
2362
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
2335
2363
  */
2336
2364
  purchaseLimit?: BillingUpdatePurchaseLimit | undefined;
2337
2365
  /**
@@ -2738,6 +2766,10 @@ type BillingUpdateUpsertLicensePlanItem = {
2738
2766
  * If true, customer has unlimited access to this feature.
2739
2767
  */
2740
2768
  unlimited?: boolean | undefined;
2769
+ /**
2770
+ * Whether entity-level grants contribute to a shared customer balance.
2771
+ */
2772
+ pooled?: boolean | undefined;
2741
2773
  /**
2742
2774
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
2743
2775
  */
@@ -4583,7 +4615,7 @@ declare const CustomerDataPurchaseLimitInterval: {
4583
4615
  */
4584
4616
  type CustomerDataPurchaseLimitInterval = ClosedEnum<typeof CustomerDataPurchaseLimitInterval>;
4585
4617
  /**
4586
- * Optional rate limit to cap how often auto top-ups occur.
4618
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
4587
4619
  */
4588
4620
  type CustomerDataPurchaseLimit = {
4589
4621
  /**
@@ -4598,6 +4630,10 @@ type CustomerDataPurchaseLimit = {
4598
4630
  * Maximum number of auto top-ups allowed within the interval.
4599
4631
  */
4600
4632
  limit: number;
4633
+ /**
4634
+ * Set the current window's consumed auto top-up count. Omit to leave runtime state unchanged.
4635
+ */
4636
+ count?: number | undefined;
4601
4637
  };
4602
4638
  type CustomerDataAutoTopup = {
4603
4639
  /**
@@ -4617,7 +4653,7 @@ type CustomerDataAutoTopup = {
4617
4653
  */
4618
4654
  quantity: number;
4619
4655
  /**
4620
- * Optional rate limit to cap how often auto top-ups occur.
4656
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
4621
4657
  */
4622
4658
  purchaseLimit?: CustomerDataPurchaseLimit | undefined;
4623
4659
  /**
@@ -5807,6 +5843,10 @@ type MultiAttachPlanItem = {
5807
5843
  * If true, customer has unlimited access to this feature.
5808
5844
  */
5809
5845
  unlimited?: boolean | undefined;
5846
+ /**
5847
+ * Whether entity-level grants contribute to a shared customer balance.
5848
+ */
5849
+ pooled?: boolean | undefined;
5810
5850
  /**
5811
5851
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
5812
5852
  */
@@ -6572,6 +6612,10 @@ type PreviewAttachItemPlanItem = {
6572
6612
  * If true, customer has unlimited access to this feature.
6573
6613
  */
6574
6614
  unlimited?: boolean | undefined;
6615
+ /**
6616
+ * Whether entity-level grants contribute to a shared customer balance.
6617
+ */
6618
+ pooled?: boolean | undefined;
6575
6619
  /**
6576
6620
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
6577
6621
  */
@@ -6810,6 +6854,10 @@ type PreviewAttachAddItemPlanItem = {
6810
6854
  * If true, customer has unlimited access to this feature.
6811
6855
  */
6812
6856
  unlimited?: boolean | undefined;
6857
+ /**
6858
+ * Whether entity-level grants contribute to a shared customer balance.
6859
+ */
6860
+ pooled?: boolean | undefined;
6813
6861
  /**
6814
6862
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
6815
6863
  */
@@ -6938,7 +6986,7 @@ declare const PreviewAttachPurchaseLimitInterval: {
6938
6986
  */
6939
6987
  type PreviewAttachPurchaseLimitInterval = ClosedEnum<typeof PreviewAttachPurchaseLimitInterval>;
6940
6988
  /**
6941
- * Optional rate limit to cap how often auto top-ups occur.
6989
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
6942
6990
  */
6943
6991
  type PreviewAttachPurchaseLimit = {
6944
6992
  /**
@@ -6953,6 +7001,10 @@ type PreviewAttachPurchaseLimit = {
6953
7001
  * Maximum number of auto top-ups allowed within the interval.
6954
7002
  */
6955
7003
  limit: number;
7004
+ /**
7005
+ * Set the current window's consumed auto top-up count. Omit to leave runtime state unchanged.
7006
+ */
7007
+ count?: number | undefined;
6956
7008
  };
6957
7009
  type PreviewAttachAutoTopup = {
6958
7010
  /**
@@ -6972,7 +7024,7 @@ type PreviewAttachAutoTopup = {
6972
7024
  */
6973
7025
  quantity: number;
6974
7026
  /**
6975
- * Optional rate limit to cap how often auto top-ups occur.
7027
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
6976
7028
  */
6977
7029
  purchaseLimit?: PreviewAttachPurchaseLimit | undefined;
6978
7030
  /**
@@ -7379,6 +7431,10 @@ type PreviewAttachUpsertLicensePlanItem = {
7379
7431
  * If true, customer has unlimited access to this feature.
7380
7432
  */
7381
7433
  unlimited?: boolean | undefined;
7434
+ /**
7435
+ * Whether entity-level grants contribute to a shared customer balance.
7436
+ */
7437
+ pooled?: boolean | undefined;
7382
7438
  /**
7383
7439
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
7384
7440
  */
@@ -8339,6 +8395,10 @@ type PreviewMultiAttachPlanItem = {
8339
8395
  * If true, customer has unlimited access to this feature.
8340
8396
  */
8341
8397
  unlimited?: boolean | undefined;
8398
+ /**
8399
+ * Whether entity-level grants contribute to a shared customer balance.
8400
+ */
8401
+ pooled?: boolean | undefined;
8342
8402
  /**
8343
8403
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
8344
8404
  */
@@ -9344,6 +9404,10 @@ type PreviewUpdateItemPlanItem = {
9344
9404
  * If true, customer has unlimited access to this feature.
9345
9405
  */
9346
9406
  unlimited?: boolean | undefined;
9407
+ /**
9408
+ * Whether entity-level grants contribute to a shared customer balance.
9409
+ */
9410
+ pooled?: boolean | undefined;
9347
9411
  /**
9348
9412
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
9349
9413
  */
@@ -9582,6 +9646,10 @@ type PreviewUpdateAddItemPlanItem = {
9582
9646
  * If true, customer has unlimited access to this feature.
9583
9647
  */
9584
9648
  unlimited?: boolean | undefined;
9649
+ /**
9650
+ * Whether entity-level grants contribute to a shared customer balance.
9651
+ */
9652
+ pooled?: boolean | undefined;
9585
9653
  /**
9586
9654
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
9587
9655
  */
@@ -9710,7 +9778,7 @@ declare const PreviewUpdatePurchaseLimitInterval: {
9710
9778
  */
9711
9779
  type PreviewUpdatePurchaseLimitInterval = ClosedEnum<typeof PreviewUpdatePurchaseLimitInterval>;
9712
9780
  /**
9713
- * Optional rate limit to cap how often auto top-ups occur.
9781
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
9714
9782
  */
9715
9783
  type PreviewUpdatePurchaseLimit = {
9716
9784
  /**
@@ -9725,6 +9793,10 @@ type PreviewUpdatePurchaseLimit = {
9725
9793
  * Maximum number of auto top-ups allowed within the interval.
9726
9794
  */
9727
9795
  limit: number;
9796
+ /**
9797
+ * Set the current window's consumed auto top-up count. Omit to leave runtime state unchanged.
9798
+ */
9799
+ count?: number | undefined;
9728
9800
  };
9729
9801
  type PreviewUpdateAutoTopup = {
9730
9802
  /**
@@ -9744,7 +9816,7 @@ type PreviewUpdateAutoTopup = {
9744
9816
  */
9745
9817
  quantity: number;
9746
9818
  /**
9747
- * Optional rate limit to cap how often auto top-ups occur.
9819
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
9748
9820
  */
9749
9821
  purchaseLimit?: PreviewUpdatePurchaseLimit | undefined;
9750
9822
  /**
@@ -10151,6 +10223,10 @@ type PreviewUpdateUpsertLicensePlanItem = {
10151
10223
  * If true, customer has unlimited access to this feature.
10152
10224
  */
10153
10225
  unlimited?: boolean | undefined;
10226
+ /**
10227
+ * Whether entity-level grants contribute to a shared customer balance.
10228
+ */
10229
+ pooled?: boolean | undefined;
10154
10230
  /**
10155
10231
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
10156
10232
  */
@@ -11115,6 +11191,10 @@ type SetupPaymentItemPlanItem = {
11115
11191
  * If true, customer has unlimited access to this feature.
11116
11192
  */
11117
11193
  unlimited?: boolean | undefined;
11194
+ /**
11195
+ * Whether entity-level grants contribute to a shared customer balance.
11196
+ */
11197
+ pooled?: boolean | undefined;
11118
11198
  /**
11119
11199
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
11120
11200
  */
@@ -11353,6 +11433,10 @@ type SetupPaymentAddItemPlanItem = {
11353
11433
  * If true, customer has unlimited access to this feature.
11354
11434
  */
11355
11435
  unlimited?: boolean | undefined;
11436
+ /**
11437
+ * Whether entity-level grants contribute to a shared customer balance.
11438
+ */
11439
+ pooled?: boolean | undefined;
11356
11440
  /**
11357
11441
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
11358
11442
  */
@@ -11481,7 +11565,7 @@ declare const SetupPaymentPurchaseLimitInterval: {
11481
11565
  */
11482
11566
  type SetupPaymentPurchaseLimitInterval = ClosedEnum<typeof SetupPaymentPurchaseLimitInterval>;
11483
11567
  /**
11484
- * Optional rate limit to cap how often auto top-ups occur.
11568
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
11485
11569
  */
11486
11570
  type SetupPaymentPurchaseLimit = {
11487
11571
  /**
@@ -11496,6 +11580,10 @@ type SetupPaymentPurchaseLimit = {
11496
11580
  * Maximum number of auto top-ups allowed within the interval.
11497
11581
  */
11498
11582
  limit: number;
11583
+ /**
11584
+ * Set the current window's consumed auto top-up count. Omit to leave runtime state unchanged.
11585
+ */
11586
+ count?: number | undefined;
11499
11587
  };
11500
11588
  type SetupPaymentAutoTopup = {
11501
11589
  /**
@@ -11515,7 +11603,7 @@ type SetupPaymentAutoTopup = {
11515
11603
  */
11516
11604
  quantity: number;
11517
11605
  /**
11518
- * Optional rate limit to cap how often auto top-ups occur.
11606
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
11519
11607
  */
11520
11608
  purchaseLimit?: SetupPaymentPurchaseLimit | undefined;
11521
11609
  /**
@@ -11922,6 +12010,10 @@ type SetupPaymentUpsertLicensePlanItem = {
11922
12010
  * If true, customer has unlimited access to this feature.
11923
12011
  */
11924
12012
  unlimited?: boolean | undefined;
12013
+ /**
12014
+ * Whether entity-level grants contribute to a shared customer balance.
12015
+ */
12016
+ pooled?: boolean | undefined;
11925
12017
  /**
11926
12018
  * Reset configuration for consumable features. Omit for non-consumable features like seats.
11927
12019
  */