autumn-js 1.2.44 → 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.
- package/dist/backend/adapters/express.js +71 -1
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.js +71 -1
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.js +71 -1
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.js +71 -1
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.js +71 -1
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{chunk-HMEVH6GK.mjs → chunk-5DLBV5WP.mjs} +2 -2
- package/dist/backend/{chunk-43PV6A4J.mjs → chunk-67LHAREL.mjs} +1 -1
- package/dist/backend/{chunk-PKU2QG3V.mjs → chunk-DY6WMOCT.mjs} +2 -2
- package/dist/backend/{chunk-W2L6YF67.mjs → chunk-J2VZ3UZS.mjs} +1 -1
- package/dist/backend/{chunk-GRPW7PMD.mjs → chunk-L7N6FVEE.mjs} +1 -1
- package/dist/backend/{chunk-YOZEZHQY.mjs → chunk-P2TFPTAM.mjs} +1 -1
- package/dist/backend/{chunk-UBDJHK2I.mjs → chunk-PVDDMLWT.mjs} +35 -1
- package/dist/backend/{chunk-NX26QVC6.mjs → chunk-YKRFY5TK.mjs} +36 -0
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +71 -1
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +71 -1
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +71 -1
- package/dist/backend/core/handlers/index.mjs +4 -4
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +71 -1
- package/dist/backend/core/index.mjs +4 -4
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.js +36 -0
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +36 -0
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +71 -1
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-CODz5Cb_.d.ts → routeTypes-COLvwrcx.d.ts} +137 -1
- package/dist/backend/{routeTypes-CJ1KepjZ.d.mts → routeTypes-UN48tvoc.d.mts} +137 -1
- package/dist/better-auth/{chunk-W2AEIA6U.mjs → chunk-3LKXO3EE.mjs} +1 -1
- package/dist/better-auth/{chunk-7LUOWWZI.mjs → chunk-J3W4EO5H.mjs} +36 -0
- package/dist/better-auth/{chunk-XME6A73W.mjs → chunk-MOCG3CBD.mjs} +36 -2
- package/dist/better-auth/index.js +71 -1
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +36 -0
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +71 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +71 -1
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +7 -4
- package/dist/react/AutumnContext.d.ts +7 -4
- package/dist/react/client/AutumnClient.d.mts +4 -4
- package/dist/react/client/AutumnClient.d.ts +4 -4
- package/dist/react/client/IAutumnClient.d.mts +4 -4
- package/dist/react/client/IAutumnClient.d.ts +4 -4
- package/dist/react/client/index.d.mts +4 -4
- package/dist/react/client/index.d.ts +4 -4
- package/dist/react/{customer-2LdIXsvH.d.ts → customer-CNfSCDv_.d.ts} +1 -1
- package/dist/react/{customer-VoTRBlpB.d.mts → customer-VD6pkmpz.d.mts} +1 -1
- package/dist/react/hooks/index.d.mts +4 -4
- package/dist/react/hooks/index.d.ts +4 -4
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +7 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +7 -4
- package/dist/react/hooks/useAggregateEvents.d.mts +5 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +5 -2
- package/dist/react/hooks/useCustomer.d.mts +4 -3
- package/dist/react/hooks/useCustomer.d.ts +4 -3
- package/dist/react/hooks/useEntity.d.mts +3 -2
- package/dist/react/hooks/useEntity.d.ts +3 -2
- package/dist/react/hooks/useListEvents.d.mts +5 -2
- package/dist/react/hooks/useListEvents.d.ts +5 -2
- package/dist/react/hooks/useListPlans.d.mts +6 -3
- package/dist/react/hooks/useListPlans.d.ts +6 -3
- package/dist/react/hooks/useReferrals.d.mts +3 -2
- package/dist/react/hooks/useReferrals.d.ts +3 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.d.ts +4 -4
- package/dist/react/{list-plans-op-Bv7x0N22.d.ts → list-plans-op-B87IUSZR.d.ts} +9 -1
- package/dist/react/{list-plans-op-Cj9hlzsX.d.mts → list-plans-op-CvGXtKAO.d.mts} +9 -1
- package/dist/react/{params-5C7THGzd.d.mts → params-ChMwkOJA.d.ts} +69 -1
- package/dist/react/{params-B1og9_ES.d.ts → params-DlzWLPN2.d.mts} +69 -1
- package/dist/react/{plan-Kbxmz27V.d.mts → plan-DBswUtWr.d.mts} +8 -0
- package/dist/react/{plan-Kbxmz27V.d.ts → plan-DBswUtWr.d.ts} +8 -0
- package/dist/sdk/index.d.mts +161 -1
- package/dist/sdk/index.d.ts +161 -1
- package/dist/sdk/index.js +35 -1
- package/dist/sdk/index.mjs +35 -1
- package/package.json +1 -1
package/dist/sdk/index.d.ts
CHANGED
|
@@ -715,6 +715,10 @@ type AttachItemPlanItem = {
|
|
|
715
715
|
* If true, customer has unlimited access to this feature.
|
|
716
716
|
*/
|
|
717
717
|
unlimited?: boolean | undefined;
|
|
718
|
+
/**
|
|
719
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
720
|
+
*/
|
|
721
|
+
pooled?: boolean | undefined;
|
|
718
722
|
/**
|
|
719
723
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
720
724
|
*/
|
|
@@ -954,6 +958,10 @@ type AttachAddItemPlanItem = {
|
|
|
954
958
|
* If true, customer has unlimited access to this feature.
|
|
955
959
|
*/
|
|
956
960
|
unlimited?: boolean | undefined;
|
|
961
|
+
/**
|
|
962
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
963
|
+
*/
|
|
964
|
+
pooled?: boolean | undefined;
|
|
957
965
|
/**
|
|
958
966
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
959
967
|
*/
|
|
@@ -1532,6 +1540,10 @@ type AttachUpsertLicensePlanItem = {
|
|
|
1532
1540
|
* If true, customer has unlimited access to this feature.
|
|
1533
1541
|
*/
|
|
1534
1542
|
unlimited?: boolean | undefined;
|
|
1543
|
+
/**
|
|
1544
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
1545
|
+
*/
|
|
1546
|
+
pooled?: boolean | undefined;
|
|
1535
1547
|
/**
|
|
1536
1548
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
1537
1549
|
*/
|
|
@@ -2090,6 +2102,7 @@ type AttachItemPlanItem$Outbound = {
|
|
|
2090
2102
|
feature_id: string;
|
|
2091
2103
|
included?: number | undefined;
|
|
2092
2104
|
unlimited?: boolean | undefined;
|
|
2105
|
+
pooled: boolean;
|
|
2093
2106
|
reset?: AttachItemReset$Outbound | undefined;
|
|
2094
2107
|
price?: AttachItemPrice$Outbound | undefined;
|
|
2095
2108
|
proration?: AttachItemProration$Outbound | undefined;
|
|
@@ -2190,6 +2203,7 @@ type AttachAddItemPlanItem$Outbound = {
|
|
|
2190
2203
|
feature_id: string;
|
|
2191
2204
|
included?: number | undefined;
|
|
2192
2205
|
unlimited?: boolean | undefined;
|
|
2206
|
+
pooled: boolean;
|
|
2193
2207
|
reset?: AttachAddItemReset$Outbound | undefined;
|
|
2194
2208
|
price?: AttachAddItemPrice$Outbound | undefined;
|
|
2195
2209
|
proration?: AttachAddItemProration$Outbound | undefined;
|
|
@@ -2427,6 +2441,7 @@ type AttachUpsertLicensePlanItem$Outbound = {
|
|
|
2427
2441
|
feature_id: string;
|
|
2428
2442
|
included?: number | undefined;
|
|
2429
2443
|
unlimited?: boolean | undefined;
|
|
2444
|
+
pooled: boolean;
|
|
2430
2445
|
reset?: AttachUpsertLicenseReset$Outbound | undefined;
|
|
2431
2446
|
price?: AttachUpsertLicensePrice$Outbound | undefined;
|
|
2432
2447
|
proration?: AttachUpsertLicenseProration$Outbound | undefined;
|
|
@@ -3350,6 +3365,10 @@ type BillingUpdateItemPlanItem = {
|
|
|
3350
3365
|
* If true, customer has unlimited access to this feature.
|
|
3351
3366
|
*/
|
|
3352
3367
|
unlimited?: boolean | undefined;
|
|
3368
|
+
/**
|
|
3369
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
3370
|
+
*/
|
|
3371
|
+
pooled?: boolean | undefined;
|
|
3353
3372
|
/**
|
|
3354
3373
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
3355
3374
|
*/
|
|
@@ -3589,6 +3608,10 @@ type BillingUpdateAddItemPlanItem = {
|
|
|
3589
3608
|
* If true, customer has unlimited access to this feature.
|
|
3590
3609
|
*/
|
|
3591
3610
|
unlimited?: boolean | undefined;
|
|
3611
|
+
/**
|
|
3612
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
3613
|
+
*/
|
|
3614
|
+
pooled?: boolean | undefined;
|
|
3592
3615
|
/**
|
|
3593
3616
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
3594
3617
|
*/
|
|
@@ -4167,6 +4190,10 @@ type BillingUpdateUpsertLicensePlanItem = {
|
|
|
4167
4190
|
* If true, customer has unlimited access to this feature.
|
|
4168
4191
|
*/
|
|
4169
4192
|
unlimited?: boolean | undefined;
|
|
4193
|
+
/**
|
|
4194
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
4195
|
+
*/
|
|
4196
|
+
pooled?: boolean | undefined;
|
|
4170
4197
|
/**
|
|
4171
4198
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
4172
4199
|
*/
|
|
@@ -4675,6 +4702,7 @@ type BillingUpdateItemPlanItem$Outbound = {
|
|
|
4675
4702
|
feature_id: string;
|
|
4676
4703
|
included?: number | undefined;
|
|
4677
4704
|
unlimited?: boolean | undefined;
|
|
4705
|
+
pooled: boolean;
|
|
4678
4706
|
reset?: BillingUpdateItemReset$Outbound | undefined;
|
|
4679
4707
|
price?: BillingUpdateItemPrice$Outbound | undefined;
|
|
4680
4708
|
proration?: BillingUpdateItemProration$Outbound | undefined;
|
|
@@ -4775,6 +4803,7 @@ type BillingUpdateAddItemPlanItem$Outbound = {
|
|
|
4775
4803
|
feature_id: string;
|
|
4776
4804
|
included?: number | undefined;
|
|
4777
4805
|
unlimited?: boolean | undefined;
|
|
4806
|
+
pooled: boolean;
|
|
4778
4807
|
reset?: BillingUpdateAddItemReset$Outbound | undefined;
|
|
4779
4808
|
price?: BillingUpdateAddItemPrice$Outbound | undefined;
|
|
4780
4809
|
proration?: BillingUpdateAddItemProration$Outbound | undefined;
|
|
@@ -5012,6 +5041,7 @@ type BillingUpdateUpsertLicensePlanItem$Outbound = {
|
|
|
5012
5041
|
feature_id: string;
|
|
5013
5042
|
included?: number | undefined;
|
|
5014
5043
|
unlimited?: boolean | undefined;
|
|
5044
|
+
pooled: boolean;
|
|
5015
5045
|
reset?: BillingUpdateUpsertLicenseReset$Outbound | undefined;
|
|
5016
5046
|
price?: BillingUpdateUpsertLicensePrice$Outbound | undefined;
|
|
5017
5047
|
proration?: BillingUpdateUpsertLicenseProration$Outbound | undefined;
|
|
@@ -7702,6 +7732,10 @@ type Item = {
|
|
|
7702
7732
|
* Whether the customer has unlimited access to this feature.
|
|
7703
7733
|
*/
|
|
7704
7734
|
unlimited: boolean;
|
|
7735
|
+
/**
|
|
7736
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
7737
|
+
*/
|
|
7738
|
+
pooled: boolean;
|
|
7705
7739
|
/**
|
|
7706
7740
|
* Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
|
|
7707
7741
|
*/
|
|
@@ -8033,6 +8067,10 @@ type PlanItem = {
|
|
|
8033
8067
|
* If true, customer has unlimited access to this feature.
|
|
8034
8068
|
*/
|
|
8035
8069
|
unlimited?: boolean | undefined;
|
|
8070
|
+
/**
|
|
8071
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
8072
|
+
*/
|
|
8073
|
+
pooled: boolean;
|
|
8036
8074
|
/**
|
|
8037
8075
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
8038
8076
|
*/
|
|
@@ -10339,6 +10377,10 @@ type CreatePlanItemPlanItem = {
|
|
|
10339
10377
|
* If true, customer has unlimited access to this feature.
|
|
10340
10378
|
*/
|
|
10341
10379
|
unlimited?: boolean | undefined;
|
|
10380
|
+
/**
|
|
10381
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
10382
|
+
*/
|
|
10383
|
+
pooled?: boolean | undefined;
|
|
10342
10384
|
/**
|
|
10343
10385
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
10344
10386
|
*/
|
|
@@ -10615,6 +10657,10 @@ type CreatePlanLicensePlanItem = {
|
|
|
10615
10657
|
* If true, customer has unlimited access to this feature.
|
|
10616
10658
|
*/
|
|
10617
10659
|
unlimited?: boolean | undefined;
|
|
10660
|
+
/**
|
|
10661
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
10662
|
+
*/
|
|
10663
|
+
pooled?: boolean | undefined;
|
|
10618
10664
|
/**
|
|
10619
10665
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
10620
10666
|
*/
|
|
@@ -11331,6 +11377,10 @@ type CreatePlanItem = {
|
|
|
11331
11377
|
* Whether the customer has unlimited access to this feature.
|
|
11332
11378
|
*/
|
|
11333
11379
|
unlimited: boolean;
|
|
11380
|
+
/**
|
|
11381
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
11382
|
+
*/
|
|
11383
|
+
pooled: boolean;
|
|
11334
11384
|
/**
|
|
11335
11385
|
* Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
|
|
11336
11386
|
*/
|
|
@@ -11662,6 +11712,10 @@ type CreatePlanPlanItemResponse = {
|
|
|
11662
11712
|
* If true, customer has unlimited access to this feature.
|
|
11663
11713
|
*/
|
|
11664
11714
|
unlimited?: boolean | undefined;
|
|
11715
|
+
/**
|
|
11716
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
11717
|
+
*/
|
|
11718
|
+
pooled: boolean;
|
|
11665
11719
|
/**
|
|
11666
11720
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
11667
11721
|
*/
|
|
@@ -12474,6 +12528,7 @@ type CreatePlanItemPlanItem$Outbound = {
|
|
|
12474
12528
|
feature_id: string;
|
|
12475
12529
|
included?: number | undefined;
|
|
12476
12530
|
unlimited?: boolean | undefined;
|
|
12531
|
+
pooled: boolean;
|
|
12477
12532
|
reset?: CreatePlanItemResetRequestBody$Outbound | undefined;
|
|
12478
12533
|
price?: CreatePlanItemPriceRequestBody$Outbound | undefined;
|
|
12479
12534
|
proration?: CreatePlanItemProration$Outbound | undefined;
|
|
@@ -12594,6 +12649,7 @@ type CreatePlanLicensePlanItem$Outbound = {
|
|
|
12594
12649
|
feature_id: string;
|
|
12595
12650
|
included?: number | undefined;
|
|
12596
12651
|
unlimited?: boolean | undefined;
|
|
12652
|
+
pooled: boolean;
|
|
12597
12653
|
reset?: CreatePlanLicenseReset$Outbound | undefined;
|
|
12598
12654
|
price?: CreatePlanLicensePrice$Outbound | undefined;
|
|
12599
12655
|
proration?: CreatePlanLicenseProration$Outbound | undefined;
|
|
@@ -13399,6 +13455,10 @@ type CreateScheduleItemPlanItem2 = {
|
|
|
13399
13455
|
* If true, customer has unlimited access to this feature.
|
|
13400
13456
|
*/
|
|
13401
13457
|
unlimited?: boolean | undefined;
|
|
13458
|
+
/**
|
|
13459
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
13460
|
+
*/
|
|
13461
|
+
pooled?: boolean | undefined;
|
|
13402
13462
|
/**
|
|
13403
13463
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
13404
13464
|
*/
|
|
@@ -13614,6 +13674,10 @@ type CreateScheduleAddItemPlanItem2 = {
|
|
|
13614
13674
|
* If true, customer has unlimited access to this feature.
|
|
13615
13675
|
*/
|
|
13616
13676
|
unlimited?: boolean | undefined;
|
|
13677
|
+
/**
|
|
13678
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
13679
|
+
*/
|
|
13680
|
+
pooled?: boolean | undefined;
|
|
13617
13681
|
/**
|
|
13618
13682
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
13619
13683
|
*/
|
|
@@ -14270,6 +14334,7 @@ type CreateScheduleItemPlanItem2$Outbound = {
|
|
|
14270
14334
|
feature_id: string;
|
|
14271
14335
|
included?: number | undefined;
|
|
14272
14336
|
unlimited?: boolean | undefined;
|
|
14337
|
+
pooled: boolean;
|
|
14273
14338
|
reset?: CreateScheduleItemReset2$Outbound | undefined;
|
|
14274
14339
|
price?: CreateScheduleItemPrice2$Outbound | undefined;
|
|
14275
14340
|
proration?: CreateScheduleItemProration2$Outbound | undefined;
|
|
@@ -14356,6 +14421,7 @@ type CreateScheduleAddItemPlanItem2$Outbound = {
|
|
|
14356
14421
|
feature_id: string;
|
|
14357
14422
|
included?: number | undefined;
|
|
14358
14423
|
unlimited?: boolean | undefined;
|
|
14424
|
+
pooled: boolean;
|
|
14359
14425
|
reset?: CreateScheduleAddItemReset2$Outbound | undefined;
|
|
14360
14426
|
price?: CreateScheduleAddItemPrice2$Outbound | undefined;
|
|
14361
14427
|
proration?: CreateScheduleAddItemProration2$Outbound | undefined;
|
|
@@ -18463,6 +18529,10 @@ type GetPlanItem = {
|
|
|
18463
18529
|
* Whether the customer has unlimited access to this feature.
|
|
18464
18530
|
*/
|
|
18465
18531
|
unlimited: boolean;
|
|
18532
|
+
/**
|
|
18533
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
18534
|
+
*/
|
|
18535
|
+
pooled: boolean;
|
|
18466
18536
|
/**
|
|
18467
18537
|
* Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
|
|
18468
18538
|
*/
|
|
@@ -18794,6 +18864,10 @@ type GetPlanPlanItem = {
|
|
|
18794
18864
|
* If true, customer has unlimited access to this feature.
|
|
18795
18865
|
*/
|
|
18796
18866
|
unlimited?: boolean | undefined;
|
|
18867
|
+
/**
|
|
18868
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
18869
|
+
*/
|
|
18870
|
+
pooled: boolean;
|
|
18797
18871
|
/**
|
|
18798
18872
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
18799
18873
|
*/
|
|
@@ -22859,6 +22933,10 @@ type ListPlansItem = {
|
|
|
22859
22933
|
* Whether the customer has unlimited access to this feature.
|
|
22860
22934
|
*/
|
|
22861
22935
|
unlimited: boolean;
|
|
22936
|
+
/**
|
|
22937
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
22938
|
+
*/
|
|
22939
|
+
pooled: boolean;
|
|
22862
22940
|
/**
|
|
22863
22941
|
* Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
|
|
22864
22942
|
*/
|
|
@@ -23175,6 +23253,10 @@ type ListPlansPlanItem = {
|
|
|
23175
23253
|
* If true, customer has unlimited access to this feature.
|
|
23176
23254
|
*/
|
|
23177
23255
|
unlimited?: boolean | undefined;
|
|
23256
|
+
/**
|
|
23257
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
23258
|
+
*/
|
|
23259
|
+
pooled: boolean;
|
|
23178
23260
|
/**
|
|
23179
23261
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
23180
23262
|
*/
|
|
@@ -24623,6 +24705,10 @@ type MultiAttachPlanItem = {
|
|
|
24623
24705
|
* If true, customer has unlimited access to this feature.
|
|
24624
24706
|
*/
|
|
24625
24707
|
unlimited?: boolean | undefined;
|
|
24708
|
+
/**
|
|
24709
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
24710
|
+
*/
|
|
24711
|
+
pooled?: boolean | undefined;
|
|
24626
24712
|
/**
|
|
24627
24713
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
24628
24714
|
*/
|
|
@@ -25188,6 +25274,7 @@ type MultiAttachPlanItem$Outbound = {
|
|
|
25188
25274
|
feature_id: string;
|
|
25189
25275
|
included?: number | undefined;
|
|
25190
25276
|
unlimited?: boolean | undefined;
|
|
25277
|
+
pooled: boolean;
|
|
25191
25278
|
reset?: MultiAttachReset$Outbound | undefined;
|
|
25192
25279
|
price?: MultiAttachPrice$Outbound | undefined;
|
|
25193
25280
|
proration?: MultiAttachProration$Outbound | undefined;
|
|
@@ -25878,6 +25965,10 @@ type PreviewAttachItemPlanItem = {
|
|
|
25878
25965
|
* If true, customer has unlimited access to this feature.
|
|
25879
25966
|
*/
|
|
25880
25967
|
unlimited?: boolean | undefined;
|
|
25968
|
+
/**
|
|
25969
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
25970
|
+
*/
|
|
25971
|
+
pooled?: boolean | undefined;
|
|
25881
25972
|
/**
|
|
25882
25973
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
25883
25974
|
*/
|
|
@@ -26117,6 +26208,10 @@ type PreviewAttachAddItemPlanItem = {
|
|
|
26117
26208
|
* If true, customer has unlimited access to this feature.
|
|
26118
26209
|
*/
|
|
26119
26210
|
unlimited?: boolean | undefined;
|
|
26211
|
+
/**
|
|
26212
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
26213
|
+
*/
|
|
26214
|
+
pooled?: boolean | undefined;
|
|
26120
26215
|
/**
|
|
26121
26216
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
26122
26217
|
*/
|
|
@@ -26695,6 +26790,10 @@ type PreviewAttachUpsertLicensePlanItem = {
|
|
|
26695
26790
|
* If true, customer has unlimited access to this feature.
|
|
26696
26791
|
*/
|
|
26697
26792
|
unlimited?: boolean | undefined;
|
|
26793
|
+
/**
|
|
26794
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
26795
|
+
*/
|
|
26796
|
+
pooled?: boolean | undefined;
|
|
26698
26797
|
/**
|
|
26699
26798
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
26700
26799
|
*/
|
|
@@ -27521,6 +27620,7 @@ type PreviewAttachItemPlanItem$Outbound = {
|
|
|
27521
27620
|
feature_id: string;
|
|
27522
27621
|
included?: number | undefined;
|
|
27523
27622
|
unlimited?: boolean | undefined;
|
|
27623
|
+
pooled: boolean;
|
|
27524
27624
|
reset?: PreviewAttachItemReset$Outbound | undefined;
|
|
27525
27625
|
price?: PreviewAttachItemPrice$Outbound | undefined;
|
|
27526
27626
|
proration?: PreviewAttachItemProration$Outbound | undefined;
|
|
@@ -27621,6 +27721,7 @@ type PreviewAttachAddItemPlanItem$Outbound = {
|
|
|
27621
27721
|
feature_id: string;
|
|
27622
27722
|
included?: number | undefined;
|
|
27623
27723
|
unlimited?: boolean | undefined;
|
|
27724
|
+
pooled: boolean;
|
|
27624
27725
|
reset?: PreviewAttachAddItemReset$Outbound | undefined;
|
|
27625
27726
|
price?: PreviewAttachAddItemPrice$Outbound | undefined;
|
|
27626
27727
|
proration?: PreviewAttachAddItemProration$Outbound | undefined;
|
|
@@ -27858,6 +27959,7 @@ type PreviewAttachUpsertLicensePlanItem$Outbound = {
|
|
|
27858
27959
|
feature_id: string;
|
|
27859
27960
|
included?: number | undefined;
|
|
27860
27961
|
unlimited?: boolean | undefined;
|
|
27962
|
+
pooled: boolean;
|
|
27861
27963
|
reset?: PreviewAttachUpsertLicenseReset$Outbound | undefined;
|
|
27862
27964
|
price?: PreviewAttachUpsertLicensePrice$Outbound | undefined;
|
|
27863
27965
|
proration?: PreviewAttachUpsertLicenseProration$Outbound | undefined;
|
|
@@ -28333,6 +28435,10 @@ type PreviewMultiAttachPlanItem = {
|
|
|
28333
28435
|
* If true, customer has unlimited access to this feature.
|
|
28334
28436
|
*/
|
|
28335
28437
|
unlimited?: boolean | undefined;
|
|
28438
|
+
/**
|
|
28439
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
28440
|
+
*/
|
|
28441
|
+
pooled?: boolean | undefined;
|
|
28336
28442
|
/**
|
|
28337
28443
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
28338
28444
|
*/
|
|
@@ -29166,6 +29272,7 @@ type PreviewMultiAttachPlanItem$Outbound = {
|
|
|
29166
29272
|
feature_id: string;
|
|
29167
29273
|
included?: number | undefined;
|
|
29168
29274
|
unlimited?: boolean | undefined;
|
|
29275
|
+
pooled: boolean;
|
|
29169
29276
|
reset?: PreviewMultiAttachReset$Outbound | undefined;
|
|
29170
29277
|
price?: PreviewMultiAttachPrice$Outbound | undefined;
|
|
29171
29278
|
proration?: PreviewMultiAttachProration$Outbound | undefined;
|
|
@@ -30111,6 +30218,10 @@ type PreviewUpdateItemPlanItem = {
|
|
|
30111
30218
|
* If true, customer has unlimited access to this feature.
|
|
30112
30219
|
*/
|
|
30113
30220
|
unlimited?: boolean | undefined;
|
|
30221
|
+
/**
|
|
30222
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
30223
|
+
*/
|
|
30224
|
+
pooled?: boolean | undefined;
|
|
30114
30225
|
/**
|
|
30115
30226
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
30116
30227
|
*/
|
|
@@ -30350,6 +30461,10 @@ type PreviewUpdateAddItemPlanItem = {
|
|
|
30350
30461
|
* If true, customer has unlimited access to this feature.
|
|
30351
30462
|
*/
|
|
30352
30463
|
unlimited?: boolean | undefined;
|
|
30464
|
+
/**
|
|
30465
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
30466
|
+
*/
|
|
30467
|
+
pooled?: boolean | undefined;
|
|
30353
30468
|
/**
|
|
30354
30469
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
30355
30470
|
*/
|
|
@@ -30928,6 +31043,10 @@ type PreviewUpdateUpsertLicensePlanItem = {
|
|
|
30928
31043
|
* If true, customer has unlimited access to this feature.
|
|
30929
31044
|
*/
|
|
30930
31045
|
unlimited?: boolean | undefined;
|
|
31046
|
+
/**
|
|
31047
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
31048
|
+
*/
|
|
31049
|
+
pooled?: boolean | undefined;
|
|
30931
31050
|
/**
|
|
30932
31051
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
30933
31052
|
*/
|
|
@@ -31704,6 +31823,7 @@ type PreviewUpdateItemPlanItem$Outbound = {
|
|
|
31704
31823
|
feature_id: string;
|
|
31705
31824
|
included?: number | undefined;
|
|
31706
31825
|
unlimited?: boolean | undefined;
|
|
31826
|
+
pooled: boolean;
|
|
31707
31827
|
reset?: PreviewUpdateItemReset$Outbound | undefined;
|
|
31708
31828
|
price?: PreviewUpdateItemPrice$Outbound | undefined;
|
|
31709
31829
|
proration?: PreviewUpdateItemProration$Outbound | undefined;
|
|
@@ -31804,6 +31924,7 @@ type PreviewUpdateAddItemPlanItem$Outbound = {
|
|
|
31804
31924
|
feature_id: string;
|
|
31805
31925
|
included?: number | undefined;
|
|
31806
31926
|
unlimited?: boolean | undefined;
|
|
31927
|
+
pooled: boolean;
|
|
31807
31928
|
reset?: PreviewUpdateAddItemReset$Outbound | undefined;
|
|
31808
31929
|
price?: PreviewUpdateAddItemPrice$Outbound | undefined;
|
|
31809
31930
|
proration?: PreviewUpdateAddItemProration$Outbound | undefined;
|
|
@@ -32041,6 +32162,7 @@ type PreviewUpdateUpsertLicensePlanItem$Outbound = {
|
|
|
32041
32162
|
feature_id: string;
|
|
32042
32163
|
included?: number | undefined;
|
|
32043
32164
|
unlimited?: boolean | undefined;
|
|
32165
|
+
pooled: boolean;
|
|
32044
32166
|
reset?: PreviewUpdateUpsertLicenseReset$Outbound | undefined;
|
|
32045
32167
|
price?: PreviewUpdateUpsertLicensePrice$Outbound | undefined;
|
|
32046
32168
|
proration?: PreviewUpdateUpsertLicenseProration$Outbound | undefined;
|
|
@@ -32742,6 +32864,10 @@ type SetupPaymentItemPlanItem = {
|
|
|
32742
32864
|
* If true, customer has unlimited access to this feature.
|
|
32743
32865
|
*/
|
|
32744
32866
|
unlimited?: boolean | undefined;
|
|
32867
|
+
/**
|
|
32868
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
32869
|
+
*/
|
|
32870
|
+
pooled?: boolean | undefined;
|
|
32745
32871
|
/**
|
|
32746
32872
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
32747
32873
|
*/
|
|
@@ -32981,6 +33107,10 @@ type SetupPaymentAddItemPlanItem = {
|
|
|
32981
33107
|
* If true, customer has unlimited access to this feature.
|
|
32982
33108
|
*/
|
|
32983
33109
|
unlimited?: boolean | undefined;
|
|
33110
|
+
/**
|
|
33111
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
33112
|
+
*/
|
|
33113
|
+
pooled?: boolean | undefined;
|
|
32984
33114
|
/**
|
|
32985
33115
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
32986
33116
|
*/
|
|
@@ -33559,6 +33689,10 @@ type SetupPaymentUpsertLicensePlanItem = {
|
|
|
33559
33689
|
* If true, customer has unlimited access to this feature.
|
|
33560
33690
|
*/
|
|
33561
33691
|
unlimited?: boolean | undefined;
|
|
33692
|
+
/**
|
|
33693
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
33694
|
+
*/
|
|
33695
|
+
pooled?: boolean | undefined;
|
|
33562
33696
|
/**
|
|
33563
33697
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
33564
33698
|
*/
|
|
@@ -33990,6 +34124,7 @@ type SetupPaymentItemPlanItem$Outbound = {
|
|
|
33990
34124
|
feature_id: string;
|
|
33991
34125
|
included?: number | undefined;
|
|
33992
34126
|
unlimited?: boolean | undefined;
|
|
34127
|
+
pooled: boolean;
|
|
33993
34128
|
reset?: SetupPaymentItemReset$Outbound | undefined;
|
|
33994
34129
|
price?: SetupPaymentItemPrice$Outbound | undefined;
|
|
33995
34130
|
proration?: SetupPaymentItemProration$Outbound | undefined;
|
|
@@ -34090,6 +34225,7 @@ type SetupPaymentAddItemPlanItem$Outbound = {
|
|
|
34090
34225
|
feature_id: string;
|
|
34091
34226
|
included?: number | undefined;
|
|
34092
34227
|
unlimited?: boolean | undefined;
|
|
34228
|
+
pooled: boolean;
|
|
34093
34229
|
reset?: SetupPaymentAddItemReset$Outbound | undefined;
|
|
34094
34230
|
price?: SetupPaymentAddItemPrice$Outbound | undefined;
|
|
34095
34231
|
proration?: SetupPaymentAddItemProration$Outbound | undefined;
|
|
@@ -34327,6 +34463,7 @@ type SetupPaymentUpsertLicensePlanItem$Outbound = {
|
|
|
34327
34463
|
feature_id: string;
|
|
34328
34464
|
included?: number | undefined;
|
|
34329
34465
|
unlimited?: boolean | undefined;
|
|
34466
|
+
pooled: boolean;
|
|
34330
34467
|
reset?: SetupPaymentUpsertLicenseReset$Outbound | undefined;
|
|
34331
34468
|
price?: SetupPaymentUpsertLicensePrice$Outbound | undefined;
|
|
34332
34469
|
proration?: SetupPaymentUpsertLicenseProration$Outbound | undefined;
|
|
@@ -37892,6 +38029,10 @@ type UpdatePlanItemPlanItem = {
|
|
|
37892
38029
|
* If true, customer has unlimited access to this feature.
|
|
37893
38030
|
*/
|
|
37894
38031
|
unlimited?: boolean | undefined;
|
|
38032
|
+
/**
|
|
38033
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
38034
|
+
*/
|
|
38035
|
+
pooled?: boolean | undefined;
|
|
37895
38036
|
/**
|
|
37896
38037
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
37897
38038
|
*/
|
|
@@ -38168,6 +38309,10 @@ type UpdatePlanLicensePlanItem = {
|
|
|
38168
38309
|
* If true, customer has unlimited access to this feature.
|
|
38169
38310
|
*/
|
|
38170
38311
|
unlimited?: boolean | undefined;
|
|
38312
|
+
/**
|
|
38313
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
38314
|
+
*/
|
|
38315
|
+
pooled?: boolean | undefined;
|
|
38171
38316
|
/**
|
|
38172
38317
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
38173
38318
|
*/
|
|
@@ -38783,6 +38928,10 @@ type VariantPlanItem = {
|
|
|
38783
38928
|
* If true, customer has unlimited access to this feature.
|
|
38784
38929
|
*/
|
|
38785
38930
|
unlimited?: boolean | undefined;
|
|
38931
|
+
/**
|
|
38932
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
38933
|
+
*/
|
|
38934
|
+
pooled?: boolean | undefined;
|
|
38786
38935
|
/**
|
|
38787
38936
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
38788
38937
|
*/
|
|
@@ -39564,6 +39713,10 @@ type UpdatePlanItem = {
|
|
|
39564
39713
|
* Whether the customer has unlimited access to this feature.
|
|
39565
39714
|
*/
|
|
39566
39715
|
unlimited: boolean;
|
|
39716
|
+
/**
|
|
39717
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
39718
|
+
*/
|
|
39719
|
+
pooled: boolean;
|
|
39567
39720
|
/**
|
|
39568
39721
|
* Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
|
|
39569
39722
|
*/
|
|
@@ -39895,6 +40048,10 @@ type UpdatePlanPlanItemResponse = {
|
|
|
39895
40048
|
* If true, customer has unlimited access to this feature.
|
|
39896
40049
|
*/
|
|
39897
40050
|
unlimited?: boolean | undefined;
|
|
40051
|
+
/**
|
|
40052
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
40053
|
+
*/
|
|
40054
|
+
pooled: boolean;
|
|
39898
40055
|
/**
|
|
39899
40056
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
39900
40057
|
*/
|
|
@@ -40707,6 +40864,7 @@ type UpdatePlanItemPlanItem$Outbound = {
|
|
|
40707
40864
|
feature_id: string;
|
|
40708
40865
|
included?: number | undefined;
|
|
40709
40866
|
unlimited?: boolean | undefined;
|
|
40867
|
+
pooled: boolean;
|
|
40710
40868
|
reset?: UpdatePlanItemResetRequestBody$Outbound | undefined;
|
|
40711
40869
|
price?: UpdatePlanItemPriceRequestBody$Outbound | undefined;
|
|
40712
40870
|
proration?: UpdatePlanItemProration$Outbound | undefined;
|
|
@@ -40827,6 +40985,7 @@ type UpdatePlanLicensePlanItem$Outbound = {
|
|
|
40827
40985
|
feature_id: string;
|
|
40828
40986
|
included?: number | undefined;
|
|
40829
40987
|
unlimited?: boolean | undefined;
|
|
40988
|
+
pooled: boolean;
|
|
40830
40989
|
reset?: UpdatePlanLicenseReset$Outbound | undefined;
|
|
40831
40990
|
price?: UpdatePlanLicensePrice$Outbound | undefined;
|
|
40832
40991
|
proration?: UpdatePlanLicenseProration$Outbound | undefined;
|
|
@@ -41123,6 +41282,7 @@ type VariantPlanItem$Outbound = {
|
|
|
41123
41282
|
feature_id: string;
|
|
41124
41283
|
included?: number | undefined;
|
|
41125
41284
|
unlimited?: boolean | undefined;
|
|
41285
|
+
pooled: boolean;
|
|
41126
41286
|
reset?: VariantReset$Outbound | undefined;
|
|
41127
41287
|
price?: VariantPrice$Outbound | undefined;
|
|
41128
41288
|
proration?: VariantProration$Outbound | undefined;
|
|
@@ -41801,7 +41961,7 @@ declare class Billing extends ClientSDK {
|
|
|
41801
41961
|
* @example
|
|
41802
41962
|
* ```typescript
|
|
41803
41963
|
* // Schedule a transition from a trial plan to a paid plan
|
|
41804
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
41964
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1785242875734,"plans":[{"planId":"trial_plan"}]},{"startsAt":1786452475734,"plans":[{"planId":"pro_plan"}]}] });
|
|
41805
41965
|
* ```
|
|
41806
41966
|
*
|
|
41807
41967
|
* @param customerId - The ID of the customer to create the schedule for.
|