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
|
@@ -556,6 +556,10 @@ type AttachItemPlanItem = {
|
|
|
556
556
|
* If true, customer has unlimited access to this feature.
|
|
557
557
|
*/
|
|
558
558
|
unlimited?: boolean | undefined;
|
|
559
|
+
/**
|
|
560
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
561
|
+
*/
|
|
562
|
+
pooled?: boolean | undefined;
|
|
559
563
|
/**
|
|
560
564
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
561
565
|
*/
|
|
@@ -794,6 +798,10 @@ type AttachAddItemPlanItem = {
|
|
|
794
798
|
* If true, customer has unlimited access to this feature.
|
|
795
799
|
*/
|
|
796
800
|
unlimited?: boolean | undefined;
|
|
801
|
+
/**
|
|
802
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
803
|
+
*/
|
|
804
|
+
pooled?: boolean | undefined;
|
|
797
805
|
/**
|
|
798
806
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
799
807
|
*/
|
|
@@ -1367,6 +1375,10 @@ type AttachUpsertLicensePlanItem = {
|
|
|
1367
1375
|
* If true, customer has unlimited access to this feature.
|
|
1368
1376
|
*/
|
|
1369
1377
|
unlimited?: boolean | undefined;
|
|
1378
|
+
/**
|
|
1379
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
1380
|
+
*/
|
|
1381
|
+
pooled?: boolean | undefined;
|
|
1370
1382
|
/**
|
|
1371
1383
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
1372
1384
|
*/
|
|
@@ -2433,6 +2445,10 @@ type BillingUpdateItemPlanItem = {
|
|
|
2433
2445
|
* If true, customer has unlimited access to this feature.
|
|
2434
2446
|
*/
|
|
2435
2447
|
unlimited?: boolean | undefined;
|
|
2448
|
+
/**
|
|
2449
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
2450
|
+
*/
|
|
2451
|
+
pooled?: boolean | undefined;
|
|
2436
2452
|
/**
|
|
2437
2453
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
2438
2454
|
*/
|
|
@@ -2671,6 +2687,10 @@ type BillingUpdateAddItemPlanItem = {
|
|
|
2671
2687
|
* If true, customer has unlimited access to this feature.
|
|
2672
2688
|
*/
|
|
2673
2689
|
unlimited?: boolean | undefined;
|
|
2690
|
+
/**
|
|
2691
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
2692
|
+
*/
|
|
2693
|
+
pooled?: boolean | undefined;
|
|
2674
2694
|
/**
|
|
2675
2695
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
2676
2696
|
*/
|
|
@@ -3244,6 +3264,10 @@ type BillingUpdateUpsertLicensePlanItem = {
|
|
|
3244
3264
|
* If true, customer has unlimited access to this feature.
|
|
3245
3265
|
*/
|
|
3246
3266
|
unlimited?: boolean | undefined;
|
|
3267
|
+
/**
|
|
3268
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
3269
|
+
*/
|
|
3270
|
+
pooled?: boolean | undefined;
|
|
3247
3271
|
/**
|
|
3248
3272
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
3249
3273
|
*/
|
|
@@ -5750,6 +5774,10 @@ type Item = {
|
|
|
5750
5774
|
* Whether the customer has unlimited access to this feature.
|
|
5751
5775
|
*/
|
|
5752
5776
|
unlimited: boolean;
|
|
5777
|
+
/**
|
|
5778
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
5779
|
+
*/
|
|
5780
|
+
pooled: boolean;
|
|
5753
5781
|
/**
|
|
5754
5782
|
* Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
|
|
5755
5783
|
*/
|
|
@@ -6080,6 +6108,10 @@ type PlanItem = {
|
|
|
6080
6108
|
* If true, customer has unlimited access to this feature.
|
|
6081
6109
|
*/
|
|
6082
6110
|
unlimited?: boolean | undefined;
|
|
6111
|
+
/**
|
|
6112
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
6113
|
+
*/
|
|
6114
|
+
pooled: boolean;
|
|
6083
6115
|
/**
|
|
6084
6116
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
6085
6117
|
*/
|
|
@@ -7924,6 +7956,10 @@ type CreatePlanItemPlanItem = {
|
|
|
7924
7956
|
* If true, customer has unlimited access to this feature.
|
|
7925
7957
|
*/
|
|
7926
7958
|
unlimited?: boolean | undefined;
|
|
7959
|
+
/**
|
|
7960
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
7961
|
+
*/
|
|
7962
|
+
pooled?: boolean | undefined;
|
|
7927
7963
|
/**
|
|
7928
7964
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
7929
7965
|
*/
|
|
@@ -8199,6 +8235,10 @@ type CreatePlanLicensePlanItem = {
|
|
|
8199
8235
|
* If true, customer has unlimited access to this feature.
|
|
8200
8236
|
*/
|
|
8201
8237
|
unlimited?: boolean | undefined;
|
|
8238
|
+
/**
|
|
8239
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
8240
|
+
*/
|
|
8241
|
+
pooled?: boolean | undefined;
|
|
8202
8242
|
/**
|
|
8203
8243
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
8204
8244
|
*/
|
|
@@ -8909,6 +8949,10 @@ type CreatePlanItem = {
|
|
|
8909
8949
|
* Whether the customer has unlimited access to this feature.
|
|
8910
8950
|
*/
|
|
8911
8951
|
unlimited: boolean;
|
|
8952
|
+
/**
|
|
8953
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
8954
|
+
*/
|
|
8955
|
+
pooled: boolean;
|
|
8912
8956
|
/**
|
|
8913
8957
|
* Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
|
|
8914
8958
|
*/
|
|
@@ -9239,6 +9283,10 @@ type CreatePlanPlanItemResponse = {
|
|
|
9239
9283
|
* If true, customer has unlimited access to this feature.
|
|
9240
9284
|
*/
|
|
9241
9285
|
unlimited?: boolean | undefined;
|
|
9286
|
+
/**
|
|
9287
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
9288
|
+
*/
|
|
9289
|
+
pooled: boolean;
|
|
9242
9290
|
/**
|
|
9243
9291
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
9244
9292
|
*/
|
|
@@ -10310,6 +10358,10 @@ type CreateScheduleItemPlanItem2 = {
|
|
|
10310
10358
|
* If true, customer has unlimited access to this feature.
|
|
10311
10359
|
*/
|
|
10312
10360
|
unlimited?: boolean | undefined;
|
|
10361
|
+
/**
|
|
10362
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
10363
|
+
*/
|
|
10364
|
+
pooled?: boolean | undefined;
|
|
10313
10365
|
/**
|
|
10314
10366
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
10315
10367
|
*/
|
|
@@ -10525,6 +10577,10 @@ type CreateScheduleAddItemPlanItem2 = {
|
|
|
10525
10577
|
* If true, customer has unlimited access to this feature.
|
|
10526
10578
|
*/
|
|
10527
10579
|
unlimited?: boolean | undefined;
|
|
10580
|
+
/**
|
|
10581
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
10582
|
+
*/
|
|
10583
|
+
pooled?: boolean | undefined;
|
|
10528
10584
|
/**
|
|
10529
10585
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
10530
10586
|
*/
|
|
@@ -14021,6 +14077,10 @@ type GetPlanItem = {
|
|
|
14021
14077
|
* Whether the customer has unlimited access to this feature.
|
|
14022
14078
|
*/
|
|
14023
14079
|
unlimited: boolean;
|
|
14080
|
+
/**
|
|
14081
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
14082
|
+
*/
|
|
14083
|
+
pooled: boolean;
|
|
14024
14084
|
/**
|
|
14025
14085
|
* Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
|
|
14026
14086
|
*/
|
|
@@ -14351,6 +14411,10 @@ type GetPlanPlanItem = {
|
|
|
14351
14411
|
* If true, customer has unlimited access to this feature.
|
|
14352
14412
|
*/
|
|
14353
14413
|
unlimited?: boolean | undefined;
|
|
14414
|
+
/**
|
|
14415
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
14416
|
+
*/
|
|
14417
|
+
pooled: boolean;
|
|
14354
14418
|
/**
|
|
14355
14419
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
14356
14420
|
*/
|
|
@@ -17645,6 +17709,10 @@ type ListPlansItem = {
|
|
|
17645
17709
|
* Whether the customer has unlimited access to this feature.
|
|
17646
17710
|
*/
|
|
17647
17711
|
unlimited: boolean;
|
|
17712
|
+
/**
|
|
17713
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
17714
|
+
*/
|
|
17715
|
+
pooled: boolean;
|
|
17648
17716
|
/**
|
|
17649
17717
|
* Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
|
|
17650
17718
|
*/
|
|
@@ -17961,6 +18029,10 @@ type ListPlansPlanItem = {
|
|
|
17961
18029
|
* If true, customer has unlimited access to this feature.
|
|
17962
18030
|
*/
|
|
17963
18031
|
unlimited?: boolean | undefined;
|
|
18032
|
+
/**
|
|
18033
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
18034
|
+
*/
|
|
18035
|
+
pooled: boolean;
|
|
17964
18036
|
/**
|
|
17965
18037
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
17966
18038
|
*/
|
|
@@ -19123,6 +19195,10 @@ type MultiAttachPlanItem = {
|
|
|
19123
19195
|
* If true, customer has unlimited access to this feature.
|
|
19124
19196
|
*/
|
|
19125
19197
|
unlimited?: boolean | undefined;
|
|
19198
|
+
/**
|
|
19199
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
19200
|
+
*/
|
|
19201
|
+
pooled?: boolean | undefined;
|
|
19126
19202
|
/**
|
|
19127
19203
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
19128
19204
|
*/
|
|
@@ -20024,6 +20100,10 @@ type PreviewAttachItemPlanItem = {
|
|
|
20024
20100
|
* If true, customer has unlimited access to this feature.
|
|
20025
20101
|
*/
|
|
20026
20102
|
unlimited?: boolean | undefined;
|
|
20103
|
+
/**
|
|
20104
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
20105
|
+
*/
|
|
20106
|
+
pooled?: boolean | undefined;
|
|
20027
20107
|
/**
|
|
20028
20108
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
20029
20109
|
*/
|
|
@@ -20262,6 +20342,10 @@ type PreviewAttachAddItemPlanItem = {
|
|
|
20262
20342
|
* If true, customer has unlimited access to this feature.
|
|
20263
20343
|
*/
|
|
20264
20344
|
unlimited?: boolean | undefined;
|
|
20345
|
+
/**
|
|
20346
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
20347
|
+
*/
|
|
20348
|
+
pooled?: boolean | undefined;
|
|
20265
20349
|
/**
|
|
20266
20350
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
20267
20351
|
*/
|
|
@@ -20835,6 +20919,10 @@ type PreviewAttachUpsertLicensePlanItem = {
|
|
|
20835
20919
|
* If true, customer has unlimited access to this feature.
|
|
20836
20920
|
*/
|
|
20837
20921
|
unlimited?: boolean | undefined;
|
|
20922
|
+
/**
|
|
20923
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
20924
|
+
*/
|
|
20925
|
+
pooled?: boolean | undefined;
|
|
20838
20926
|
/**
|
|
20839
20927
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
20840
20928
|
*/
|
|
@@ -21795,6 +21883,10 @@ type PreviewMultiAttachPlanItem = {
|
|
|
21795
21883
|
* If true, customer has unlimited access to this feature.
|
|
21796
21884
|
*/
|
|
21797
21885
|
unlimited?: boolean | undefined;
|
|
21886
|
+
/**
|
|
21887
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
21888
|
+
*/
|
|
21889
|
+
pooled?: boolean | undefined;
|
|
21798
21890
|
/**
|
|
21799
21891
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
21800
21892
|
*/
|
|
@@ -23159,6 +23251,10 @@ type PreviewUpdateItemPlanItem = {
|
|
|
23159
23251
|
* If true, customer has unlimited access to this feature.
|
|
23160
23252
|
*/
|
|
23161
23253
|
unlimited?: boolean | undefined;
|
|
23254
|
+
/**
|
|
23255
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
23256
|
+
*/
|
|
23257
|
+
pooled?: boolean | undefined;
|
|
23162
23258
|
/**
|
|
23163
23259
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
23164
23260
|
*/
|
|
@@ -23397,6 +23493,10 @@ type PreviewUpdateAddItemPlanItem = {
|
|
|
23397
23493
|
* If true, customer has unlimited access to this feature.
|
|
23398
23494
|
*/
|
|
23399
23495
|
unlimited?: boolean | undefined;
|
|
23496
|
+
/**
|
|
23497
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
23498
|
+
*/
|
|
23499
|
+
pooled?: boolean | undefined;
|
|
23400
23500
|
/**
|
|
23401
23501
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
23402
23502
|
*/
|
|
@@ -23970,6 +24070,10 @@ type PreviewUpdateUpsertLicensePlanItem = {
|
|
|
23970
24070
|
* If true, customer has unlimited access to this feature.
|
|
23971
24071
|
*/
|
|
23972
24072
|
unlimited?: boolean | undefined;
|
|
24073
|
+
/**
|
|
24074
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
24075
|
+
*/
|
|
24076
|
+
pooled?: boolean | undefined;
|
|
23973
24077
|
/**
|
|
23974
24078
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
23975
24079
|
*/
|
|
@@ -25022,6 +25126,10 @@ type SetupPaymentItemPlanItem = {
|
|
|
25022
25126
|
* If true, customer has unlimited access to this feature.
|
|
25023
25127
|
*/
|
|
25024
25128
|
unlimited?: boolean | undefined;
|
|
25129
|
+
/**
|
|
25130
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
25131
|
+
*/
|
|
25132
|
+
pooled?: boolean | undefined;
|
|
25025
25133
|
/**
|
|
25026
25134
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
25027
25135
|
*/
|
|
@@ -25260,6 +25368,10 @@ type SetupPaymentAddItemPlanItem = {
|
|
|
25260
25368
|
* If true, customer has unlimited access to this feature.
|
|
25261
25369
|
*/
|
|
25262
25370
|
unlimited?: boolean | undefined;
|
|
25371
|
+
/**
|
|
25372
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
25373
|
+
*/
|
|
25374
|
+
pooled?: boolean | undefined;
|
|
25263
25375
|
/**
|
|
25264
25376
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
25265
25377
|
*/
|
|
@@ -25833,6 +25945,10 @@ type SetupPaymentUpsertLicensePlanItem = {
|
|
|
25833
25945
|
* If true, customer has unlimited access to this feature.
|
|
25834
25946
|
*/
|
|
25835
25947
|
unlimited?: boolean | undefined;
|
|
25948
|
+
/**
|
|
25949
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
25950
|
+
*/
|
|
25951
|
+
pooled?: boolean | undefined;
|
|
25836
25952
|
/**
|
|
25837
25953
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
25838
25954
|
*/
|
|
@@ -28893,6 +29009,10 @@ type UpdatePlanItemPlanItem = {
|
|
|
28893
29009
|
* If true, customer has unlimited access to this feature.
|
|
28894
29010
|
*/
|
|
28895
29011
|
unlimited?: boolean | undefined;
|
|
29012
|
+
/**
|
|
29013
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
29014
|
+
*/
|
|
29015
|
+
pooled?: boolean | undefined;
|
|
28896
29016
|
/**
|
|
28897
29017
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
28898
29018
|
*/
|
|
@@ -29168,6 +29288,10 @@ type UpdatePlanLicensePlanItem = {
|
|
|
29168
29288
|
* If true, customer has unlimited access to this feature.
|
|
29169
29289
|
*/
|
|
29170
29290
|
unlimited?: boolean | undefined;
|
|
29291
|
+
/**
|
|
29292
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
29293
|
+
*/
|
|
29294
|
+
pooled?: boolean | undefined;
|
|
29171
29295
|
/**
|
|
29172
29296
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
29173
29297
|
*/
|
|
@@ -29777,6 +29901,10 @@ type VariantPlanItem = {
|
|
|
29777
29901
|
* If true, customer has unlimited access to this feature.
|
|
29778
29902
|
*/
|
|
29779
29903
|
unlimited?: boolean | undefined;
|
|
29904
|
+
/**
|
|
29905
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
29906
|
+
*/
|
|
29907
|
+
pooled?: boolean | undefined;
|
|
29780
29908
|
/**
|
|
29781
29909
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
29782
29910
|
*/
|
|
@@ -30552,6 +30680,10 @@ type UpdatePlanItem = {
|
|
|
30552
30680
|
* Whether the customer has unlimited access to this feature.
|
|
30553
30681
|
*/
|
|
30554
30682
|
unlimited: boolean;
|
|
30683
|
+
/**
|
|
30684
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
30685
|
+
*/
|
|
30686
|
+
pooled: boolean;
|
|
30555
30687
|
/**
|
|
30556
30688
|
* Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
|
|
30557
30689
|
*/
|
|
@@ -30882,6 +31014,10 @@ type UpdatePlanPlanItemResponse = {
|
|
|
30882
31014
|
* If true, customer has unlimited access to this feature.
|
|
30883
31015
|
*/
|
|
30884
31016
|
unlimited?: boolean | undefined;
|
|
31017
|
+
/**
|
|
31018
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
31019
|
+
*/
|
|
31020
|
+
pooled: boolean;
|
|
30885
31021
|
/**
|
|
30886
31022
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
30887
31023
|
*/
|
|
@@ -31833,7 +31969,7 @@ declare class Billing extends ClientSDK {
|
|
|
31833
31969
|
* @example
|
|
31834
31970
|
* ```typescript
|
|
31835
31971
|
* // Schedule a transition from a trial plan to a paid plan
|
|
31836
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
31972
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1785242875734,"plans":[{"planId":"trial_plan"}]},{"startsAt":1786452475734,"plans":[{"planId":"pro_plan"}]}] });
|
|
31837
31973
|
* ```
|
|
31838
31974
|
*
|
|
31839
31975
|
* @param customerId - The ID of the customer to create the schedule for.
|