autumn-js 1.3.44 → 1.3.46
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 +44 -18
- package/dist/backend/adapters/express.mjs +4 -4
- package/dist/backend/adapters/fetch.js +44 -18
- package/dist/backend/adapters/fetch.mjs +4 -4
- package/dist/backend/adapters/hono.js +44 -18
- package/dist/backend/adapters/hono.mjs +4 -4
- package/dist/backend/adapters/index.js +44 -18
- package/dist/backend/adapters/index.mjs +7 -7
- package/dist/backend/adapters/next.js +44 -18
- package/dist/backend/adapters/next.mjs +4 -4
- package/dist/backend/{chunk-IDGAWOWG.mjs → chunk-6RGLO6FV.mjs} +1 -1
- package/dist/backend/{chunk-JN27ZIEU.mjs → chunk-C4IENXIG.mjs} +1 -1
- package/dist/backend/{chunk-WNSOQEDD.mjs → chunk-DZBBXOKT.mjs} +1 -1
- package/dist/backend/{chunk-FKYHGK3J.mjs → chunk-ESSDMDXJ.mjs} +1 -1
- package/dist/backend/{chunk-POJBSIOX.mjs → chunk-KSYN5FLV.mjs} +44 -18
- package/dist/backend/{chunk-4S63ZJ56.mjs → chunk-NOJP6FIN.mjs} +1 -1
- package/dist/backend/{chunk-UNI5JBUD.mjs → chunk-ZFFEG27F.mjs} +1 -1
- 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 +44 -18
- package/dist/backend/core/handlers/coreHandler.mjs +2 -2
- 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 +44 -18
- package/dist/backend/core/handlers/handleRouteByName.mjs +2 -2
- 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 +44 -18
- package/dist/backend/core/handlers/index.mjs +3 -3
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +44 -18
- package/dist/backend/core/index.mjs +3 -3
- 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/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/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 +44 -18
- package/dist/backend/index.mjs +3 -3
- package/dist/backend/{routeTypes-Dr-THiSK.d.ts → routeTypes-4TatmvQY.d.ts} +75 -17
- package/dist/backend/{routeTypes-C90LbFI_.d.mts → routeTypes-DAI_E67X.d.mts} +75 -17
- package/dist/better-auth/{chunk-CBB6UDNH.mjs → chunk-R7IEJQOY.mjs} +44 -18
- package/dist/better-auth/index.js +44 -18
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +44 -18
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +44 -18
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/react/AutumnContext.d.mts +4 -4
- package/dist/react/AutumnContext.d.ts +4 -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-B0VDWypn.d.ts → customer-B0KAd7eZ.d.ts} +16 -16
- package/dist/react/{customer-BIYGF3IC.d.mts → customer-DfpvnPRk.d.mts} +16 -16
- 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 +4 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
- package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
- package/dist/react/hooks/useCustomer.d.mts +3 -3
- package/dist/react/hooks/useCustomer.d.ts +3 -3
- package/dist/react/hooks/useEntity.d.mts +2 -2
- package/dist/react/hooks/useEntity.d.ts +2 -2
- package/dist/react/hooks/useListEvents.d.mts +2 -2
- package/dist/react/hooks/useListEvents.d.ts +2 -2
- package/dist/react/hooks/useListPlans.d.mts +3 -3
- package/dist/react/hooks/useListPlans.d.ts +3 -3
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.d.ts +4 -4
- package/dist/react/{list-plans-response-kGzo3GRQ.d.ts → list-plans-response-6iUDTnPQ.d.ts} +1 -1
- package/dist/react/{list-plans-response-BqtwCPty.d.mts → list-plans-response-BzsqJlxN.d.mts} +1 -1
- package/dist/react/{params-DP6BNkc0.d.ts → params-CMcoADwO.d.ts} +1 -1
- package/dist/react/{params-DZznA-no.d.mts → params-vAoGWtk9.d.mts} +1 -1
- package/dist/react/{plan-CEOgE_On.d.mts → plan-Ct5TGTnS.d.mts} +33 -0
- package/dist/react/{plan-CEOgE_On.d.ts → plan-Ct5TGTnS.d.ts} +33 -0
- package/dist/sdk/index.d.mts +91 -23
- package/dist/sdk/index.d.ts +91 -23
- package/dist/sdk/index.js +76 -28
- package/dist/sdk/index.mjs +59 -19
- package/package.json +2 -2
|
@@ -3294,6 +3294,23 @@ type BalancePrice = {
|
|
|
3294
3294
|
*/
|
|
3295
3295
|
maxPurchase: number | null;
|
|
3296
3296
|
};
|
|
3297
|
+
/**
|
|
3298
|
+
* Where this row's credits come from: shared at the customer level, or owned by the entity.
|
|
3299
|
+
*/
|
|
3300
|
+
declare const BalanceSource: {
|
|
3301
|
+
readonly Customer: "customer";
|
|
3302
|
+
readonly Entity: "entity";
|
|
3303
|
+
};
|
|
3304
|
+
/**
|
|
3305
|
+
* Where this row's credits come from: shared at the customer level, or owned by the entity.
|
|
3306
|
+
*/
|
|
3307
|
+
type BalanceSource = OpenEnum<typeof BalanceSource>;
|
|
3308
|
+
type Allocation = {
|
|
3309
|
+
/**
|
|
3310
|
+
* The amount allocated to this entity.
|
|
3311
|
+
*/
|
|
3312
|
+
amount: number;
|
|
3313
|
+
};
|
|
3297
3314
|
type Breakdown = {
|
|
3298
3315
|
/**
|
|
3299
3316
|
* The unique identifier for this balance breakdown.
|
|
@@ -3335,6 +3352,14 @@ type Breakdown = {
|
|
|
3335
3352
|
* Timestamp when this balance expires, or null for no expiration.
|
|
3336
3353
|
*/
|
|
3337
3354
|
expiresAt: number | null;
|
|
3355
|
+
/**
|
|
3356
|
+
* Where this row's credits come from: shared at the customer level, or owned by the entity.
|
|
3357
|
+
*/
|
|
3358
|
+
source?: BalanceSource | undefined;
|
|
3359
|
+
/**
|
|
3360
|
+
* Set when this row's numbers are the entity's allocated share of the customer's credits.
|
|
3361
|
+
*/
|
|
3362
|
+
allocation?: Allocation | null | undefined;
|
|
3338
3363
|
};
|
|
3339
3364
|
type BalanceRollover = {
|
|
3340
3365
|
/**
|
|
@@ -3395,6 +3420,14 @@ type Balance = {
|
|
|
3395
3420
|
* Rollover balances carried over from previous periods.
|
|
3396
3421
|
*/
|
|
3397
3422
|
rollovers?: Array<BalanceRollover> | undefined;
|
|
3423
|
+
/**
|
|
3424
|
+
* Shared credits held for entities by allocations; present only when the customer allocates this feature.
|
|
3425
|
+
*/
|
|
3426
|
+
allocated?: number | undefined;
|
|
3427
|
+
/**
|
|
3428
|
+
* Remaining shared credits no allocation holds; any entity may use them.
|
|
3429
|
+
*/
|
|
3430
|
+
unallocated?: number | undefined;
|
|
3398
3431
|
};
|
|
3399
3432
|
|
|
3400
3433
|
/**
|
|
@@ -23227,7 +23260,7 @@ type CreateScheduleParams = {
|
|
|
23227
23260
|
*/
|
|
23228
23261
|
enablePlanImmediately?: boolean | undefined;
|
|
23229
23262
|
/**
|
|
23230
|
-
* Deprecated and ignored. Active plans the schedule does not
|
|
23263
|
+
* Deprecated and ignored. Active plans the schedule does not list keep running until a listed plan in their group replaces them or the schedule ends.
|
|
23231
23264
|
*/
|
|
23232
23265
|
preserveAddOns?: boolean | undefined;
|
|
23233
23266
|
/**
|
|
@@ -23498,14 +23531,14 @@ type CustomerPurchaseLimit1 = {
|
|
|
23498
23531
|
/**
|
|
23499
23532
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23500
23533
|
*/
|
|
23501
|
-
declare const
|
|
23534
|
+
declare const CustomerAutoTopupSource: {
|
|
23502
23535
|
readonly Customer: "customer";
|
|
23503
23536
|
readonly Plan: "plan";
|
|
23504
23537
|
};
|
|
23505
23538
|
/**
|
|
23506
23539
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23507
23540
|
*/
|
|
23508
|
-
type
|
|
23541
|
+
type CustomerAutoTopupSource = OpenEnum<typeof CustomerAutoTopupSource>;
|
|
23509
23542
|
type CustomerAutoTopup = {
|
|
23510
23543
|
/**
|
|
23511
23544
|
* The ID of the feature (credit balance) to auto top-up.
|
|
@@ -23534,7 +23567,7 @@ type CustomerAutoTopup = {
|
|
|
23534
23567
|
/**
|
|
23535
23568
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23536
23569
|
*/
|
|
23537
|
-
source?:
|
|
23570
|
+
source?: CustomerAutoTopupSource | undefined;
|
|
23538
23571
|
};
|
|
23539
23572
|
/**
|
|
23540
23573
|
* How overage_limit is interpreted: an absolute overage cap (default) or a percentage of the main-plan allowance.
|
|
@@ -23550,14 +23583,14 @@ type CustomerLimitType = OpenEnum<typeof CustomerLimitType>;
|
|
|
23550
23583
|
/**
|
|
23551
23584
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23552
23585
|
*/
|
|
23553
|
-
declare const
|
|
23586
|
+
declare const CustomerSpendLimitSource: {
|
|
23554
23587
|
readonly Customer: "customer";
|
|
23555
23588
|
readonly Plan: "plan";
|
|
23556
23589
|
};
|
|
23557
23590
|
/**
|
|
23558
23591
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23559
23592
|
*/
|
|
23560
|
-
type
|
|
23593
|
+
type CustomerSpendLimitSource = OpenEnum<typeof CustomerSpendLimitSource>;
|
|
23561
23594
|
type CustomerSpendLimit = {
|
|
23562
23595
|
/**
|
|
23563
23596
|
* Optional feature ID this spend limit applies to.
|
|
@@ -23582,7 +23615,7 @@ type CustomerSpendLimit = {
|
|
|
23582
23615
|
/**
|
|
23583
23616
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23584
23617
|
*/
|
|
23585
|
-
source?:
|
|
23618
|
+
source?: CustomerSpendLimitSource | undefined;
|
|
23586
23619
|
};
|
|
23587
23620
|
/**
|
|
23588
23621
|
* Interval for the cap, aligned to the customer's billing cycle.
|
|
@@ -23619,14 +23652,14 @@ type CustomerUsageLimitFilter = {
|
|
|
23619
23652
|
/**
|
|
23620
23653
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23621
23654
|
*/
|
|
23622
|
-
declare const
|
|
23655
|
+
declare const CustomerUsageLimitSource: {
|
|
23623
23656
|
readonly Customer: "customer";
|
|
23624
23657
|
readonly Plan: "plan";
|
|
23625
23658
|
};
|
|
23626
23659
|
/**
|
|
23627
23660
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23628
23661
|
*/
|
|
23629
|
-
type
|
|
23662
|
+
type CustomerUsageLimitSource = OpenEnum<typeof CustomerUsageLimitSource>;
|
|
23630
23663
|
type CustomerUsageLimit = {
|
|
23631
23664
|
/**
|
|
23632
23665
|
* The feature this usage limit applies to.
|
|
@@ -23659,7 +23692,7 @@ type CustomerUsageLimit = {
|
|
|
23659
23692
|
/**
|
|
23660
23693
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23661
23694
|
*/
|
|
23662
|
-
source?:
|
|
23695
|
+
source?: CustomerUsageLimitSource | undefined;
|
|
23663
23696
|
};
|
|
23664
23697
|
/**
|
|
23665
23698
|
* Whether the threshold is an absolute count or a percentage of the usage allowance or remaining balance.
|
|
@@ -23698,14 +23731,14 @@ type CustomerUsageAlertFilter = {
|
|
|
23698
23731
|
/**
|
|
23699
23732
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23700
23733
|
*/
|
|
23701
|
-
declare const
|
|
23734
|
+
declare const CustomerUsageAlertSource: {
|
|
23702
23735
|
readonly Customer: "customer";
|
|
23703
23736
|
readonly Plan: "plan";
|
|
23704
23737
|
};
|
|
23705
23738
|
/**
|
|
23706
23739
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23707
23740
|
*/
|
|
23708
|
-
type
|
|
23741
|
+
type CustomerUsageAlertSource = OpenEnum<typeof CustomerUsageAlertSource>;
|
|
23709
23742
|
type CustomerUsageAlert = {
|
|
23710
23743
|
/**
|
|
23711
23744
|
* The feature ID this alert applies to.
|
|
@@ -23738,19 +23771,19 @@ type CustomerUsageAlert = {
|
|
|
23738
23771
|
/**
|
|
23739
23772
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23740
23773
|
*/
|
|
23741
|
-
source?:
|
|
23774
|
+
source?: CustomerUsageAlertSource | undefined;
|
|
23742
23775
|
};
|
|
23743
23776
|
/**
|
|
23744
23777
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23745
23778
|
*/
|
|
23746
|
-
declare const
|
|
23779
|
+
declare const CustomerOverageAllowedSource: {
|
|
23747
23780
|
readonly Customer: "customer";
|
|
23748
23781
|
readonly Plan: "plan";
|
|
23749
23782
|
};
|
|
23750
23783
|
/**
|
|
23751
23784
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23752
23785
|
*/
|
|
23753
|
-
type
|
|
23786
|
+
type CustomerOverageAllowedSource = OpenEnum<typeof CustomerOverageAllowedSource>;
|
|
23754
23787
|
type CustomerOverageAllowed = {
|
|
23755
23788
|
/**
|
|
23756
23789
|
* The feature ID this overage allowed control applies to.
|
|
@@ -23763,7 +23796,7 @@ type CustomerOverageAllowed = {
|
|
|
23763
23796
|
/**
|
|
23764
23797
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23765
23798
|
*/
|
|
23766
|
-
source?:
|
|
23799
|
+
source?: CustomerOverageAllowedSource | undefined;
|
|
23767
23800
|
};
|
|
23768
23801
|
/**
|
|
23769
23802
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
@@ -32104,6 +32137,23 @@ type ListBalancesPrice = {
|
|
|
32104
32137
|
*/
|
|
32105
32138
|
maxPurchase: number | null;
|
|
32106
32139
|
};
|
|
32140
|
+
/**
|
|
32141
|
+
* Where this row's credits come from: shared at the customer level, or owned by the entity.
|
|
32142
|
+
*/
|
|
32143
|
+
declare const ListBalancesSource: {
|
|
32144
|
+
readonly Customer: "customer";
|
|
32145
|
+
readonly Entity: "entity";
|
|
32146
|
+
};
|
|
32147
|
+
/**
|
|
32148
|
+
* Where this row's credits come from: shared at the customer level, or owned by the entity.
|
|
32149
|
+
*/
|
|
32150
|
+
type ListBalancesSource = OpenEnum<typeof ListBalancesSource>;
|
|
32151
|
+
type ListBalancesAllocation = {
|
|
32152
|
+
/**
|
|
32153
|
+
* The amount allocated to this entity.
|
|
32154
|
+
*/
|
|
32155
|
+
amount: number;
|
|
32156
|
+
};
|
|
32107
32157
|
/**
|
|
32108
32158
|
* Whether this balance is active or expired.
|
|
32109
32159
|
*/
|
|
@@ -32170,6 +32220,14 @@ type ListBalancesList = {
|
|
|
32170
32220
|
* Timestamp when this balance expires, or null for no expiration.
|
|
32171
32221
|
*/
|
|
32172
32222
|
expiresAt: number | null;
|
|
32223
|
+
/**
|
|
32224
|
+
* Where this row's credits come from: shared at the customer level, or owned by the entity.
|
|
32225
|
+
*/
|
|
32226
|
+
source?: ListBalancesSource | undefined;
|
|
32227
|
+
/**
|
|
32228
|
+
* Set when this row's numbers are the entity's allocated share of the customer's credits.
|
|
32229
|
+
*/
|
|
32230
|
+
allocation?: ListBalancesAllocation | null | undefined;
|
|
32173
32231
|
/**
|
|
32174
32232
|
* The feature this balance is for.
|
|
32175
32233
|
*/
|
|
@@ -65990,7 +66048,7 @@ declare class Billing extends ClientSDK {
|
|
|
65990
66048
|
* @param noBillingChanges - If true, skips any billing changes for the schedule. (optional)
|
|
65991
66049
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle anchor of the immediate phase to the current time. (optional)
|
|
65992
66050
|
* @param enablePlanImmediately - If true, the immediate-phase cusProducts are activated immediately (and scheduled-phase cusProducts pre-inserted) even when payment is pending via Stripe checkout. The Autumn schedule rows are persisted on checkout.session.completed. (optional)
|
|
65993
|
-
* @param preserveAddOns - Deprecated and ignored. Active plans the schedule does not
|
|
66051
|
+
* @param preserveAddOns - Deprecated and ignored. Active plans the schedule does not list keep running until a listed plan in their group replaces them or the schedule ends. (optional)
|
|
65994
66052
|
* @param unscheduledPlans - Plans billed with the immediate phase that the schedule never expires or replaces. No phase may declare a plan in the same group and scope. (optional)
|
|
65995
66053
|
* @param phases - Ordered phase definitions for the schedule.
|
|
65996
66054
|
*
|
|
@@ -3294,6 +3294,23 @@ type BalancePrice = {
|
|
|
3294
3294
|
*/
|
|
3295
3295
|
maxPurchase: number | null;
|
|
3296
3296
|
};
|
|
3297
|
+
/**
|
|
3298
|
+
* Where this row's credits come from: shared at the customer level, or owned by the entity.
|
|
3299
|
+
*/
|
|
3300
|
+
declare const BalanceSource: {
|
|
3301
|
+
readonly Customer: "customer";
|
|
3302
|
+
readonly Entity: "entity";
|
|
3303
|
+
};
|
|
3304
|
+
/**
|
|
3305
|
+
* Where this row's credits come from: shared at the customer level, or owned by the entity.
|
|
3306
|
+
*/
|
|
3307
|
+
type BalanceSource = OpenEnum<typeof BalanceSource>;
|
|
3308
|
+
type Allocation = {
|
|
3309
|
+
/**
|
|
3310
|
+
* The amount allocated to this entity.
|
|
3311
|
+
*/
|
|
3312
|
+
amount: number;
|
|
3313
|
+
};
|
|
3297
3314
|
type Breakdown = {
|
|
3298
3315
|
/**
|
|
3299
3316
|
* The unique identifier for this balance breakdown.
|
|
@@ -3335,6 +3352,14 @@ type Breakdown = {
|
|
|
3335
3352
|
* Timestamp when this balance expires, or null for no expiration.
|
|
3336
3353
|
*/
|
|
3337
3354
|
expiresAt: number | null;
|
|
3355
|
+
/**
|
|
3356
|
+
* Where this row's credits come from: shared at the customer level, or owned by the entity.
|
|
3357
|
+
*/
|
|
3358
|
+
source?: BalanceSource | undefined;
|
|
3359
|
+
/**
|
|
3360
|
+
* Set when this row's numbers are the entity's allocated share of the customer's credits.
|
|
3361
|
+
*/
|
|
3362
|
+
allocation?: Allocation | null | undefined;
|
|
3338
3363
|
};
|
|
3339
3364
|
type BalanceRollover = {
|
|
3340
3365
|
/**
|
|
@@ -3395,6 +3420,14 @@ type Balance = {
|
|
|
3395
3420
|
* Rollover balances carried over from previous periods.
|
|
3396
3421
|
*/
|
|
3397
3422
|
rollovers?: Array<BalanceRollover> | undefined;
|
|
3423
|
+
/**
|
|
3424
|
+
* Shared credits held for entities by allocations; present only when the customer allocates this feature.
|
|
3425
|
+
*/
|
|
3426
|
+
allocated?: number | undefined;
|
|
3427
|
+
/**
|
|
3428
|
+
* Remaining shared credits no allocation holds; any entity may use them.
|
|
3429
|
+
*/
|
|
3430
|
+
unallocated?: number | undefined;
|
|
3398
3431
|
};
|
|
3399
3432
|
|
|
3400
3433
|
/**
|
|
@@ -23227,7 +23260,7 @@ type CreateScheduleParams = {
|
|
|
23227
23260
|
*/
|
|
23228
23261
|
enablePlanImmediately?: boolean | undefined;
|
|
23229
23262
|
/**
|
|
23230
|
-
* Deprecated and ignored. Active plans the schedule does not
|
|
23263
|
+
* Deprecated and ignored. Active plans the schedule does not list keep running until a listed plan in their group replaces them or the schedule ends.
|
|
23231
23264
|
*/
|
|
23232
23265
|
preserveAddOns?: boolean | undefined;
|
|
23233
23266
|
/**
|
|
@@ -23498,14 +23531,14 @@ type CustomerPurchaseLimit1 = {
|
|
|
23498
23531
|
/**
|
|
23499
23532
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23500
23533
|
*/
|
|
23501
|
-
declare const
|
|
23534
|
+
declare const CustomerAutoTopupSource: {
|
|
23502
23535
|
readonly Customer: "customer";
|
|
23503
23536
|
readonly Plan: "plan";
|
|
23504
23537
|
};
|
|
23505
23538
|
/**
|
|
23506
23539
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23507
23540
|
*/
|
|
23508
|
-
type
|
|
23541
|
+
type CustomerAutoTopupSource = OpenEnum<typeof CustomerAutoTopupSource>;
|
|
23509
23542
|
type CustomerAutoTopup = {
|
|
23510
23543
|
/**
|
|
23511
23544
|
* The ID of the feature (credit balance) to auto top-up.
|
|
@@ -23534,7 +23567,7 @@ type CustomerAutoTopup = {
|
|
|
23534
23567
|
/**
|
|
23535
23568
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23536
23569
|
*/
|
|
23537
|
-
source?:
|
|
23570
|
+
source?: CustomerAutoTopupSource | undefined;
|
|
23538
23571
|
};
|
|
23539
23572
|
/**
|
|
23540
23573
|
* How overage_limit is interpreted: an absolute overage cap (default) or a percentage of the main-plan allowance.
|
|
@@ -23550,14 +23583,14 @@ type CustomerLimitType = OpenEnum<typeof CustomerLimitType>;
|
|
|
23550
23583
|
/**
|
|
23551
23584
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23552
23585
|
*/
|
|
23553
|
-
declare const
|
|
23586
|
+
declare const CustomerSpendLimitSource: {
|
|
23554
23587
|
readonly Customer: "customer";
|
|
23555
23588
|
readonly Plan: "plan";
|
|
23556
23589
|
};
|
|
23557
23590
|
/**
|
|
23558
23591
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23559
23592
|
*/
|
|
23560
|
-
type
|
|
23593
|
+
type CustomerSpendLimitSource = OpenEnum<typeof CustomerSpendLimitSource>;
|
|
23561
23594
|
type CustomerSpendLimit = {
|
|
23562
23595
|
/**
|
|
23563
23596
|
* Optional feature ID this spend limit applies to.
|
|
@@ -23582,7 +23615,7 @@ type CustomerSpendLimit = {
|
|
|
23582
23615
|
/**
|
|
23583
23616
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23584
23617
|
*/
|
|
23585
|
-
source?:
|
|
23618
|
+
source?: CustomerSpendLimitSource | undefined;
|
|
23586
23619
|
};
|
|
23587
23620
|
/**
|
|
23588
23621
|
* Interval for the cap, aligned to the customer's billing cycle.
|
|
@@ -23619,14 +23652,14 @@ type CustomerUsageLimitFilter = {
|
|
|
23619
23652
|
/**
|
|
23620
23653
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23621
23654
|
*/
|
|
23622
|
-
declare const
|
|
23655
|
+
declare const CustomerUsageLimitSource: {
|
|
23623
23656
|
readonly Customer: "customer";
|
|
23624
23657
|
readonly Plan: "plan";
|
|
23625
23658
|
};
|
|
23626
23659
|
/**
|
|
23627
23660
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23628
23661
|
*/
|
|
23629
|
-
type
|
|
23662
|
+
type CustomerUsageLimitSource = OpenEnum<typeof CustomerUsageLimitSource>;
|
|
23630
23663
|
type CustomerUsageLimit = {
|
|
23631
23664
|
/**
|
|
23632
23665
|
* The feature this usage limit applies to.
|
|
@@ -23659,7 +23692,7 @@ type CustomerUsageLimit = {
|
|
|
23659
23692
|
/**
|
|
23660
23693
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23661
23694
|
*/
|
|
23662
|
-
source?:
|
|
23695
|
+
source?: CustomerUsageLimitSource | undefined;
|
|
23663
23696
|
};
|
|
23664
23697
|
/**
|
|
23665
23698
|
* Whether the threshold is an absolute count or a percentage of the usage allowance or remaining balance.
|
|
@@ -23698,14 +23731,14 @@ type CustomerUsageAlertFilter = {
|
|
|
23698
23731
|
/**
|
|
23699
23732
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23700
23733
|
*/
|
|
23701
|
-
declare const
|
|
23734
|
+
declare const CustomerUsageAlertSource: {
|
|
23702
23735
|
readonly Customer: "customer";
|
|
23703
23736
|
readonly Plan: "plan";
|
|
23704
23737
|
};
|
|
23705
23738
|
/**
|
|
23706
23739
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23707
23740
|
*/
|
|
23708
|
-
type
|
|
23741
|
+
type CustomerUsageAlertSource = OpenEnum<typeof CustomerUsageAlertSource>;
|
|
23709
23742
|
type CustomerUsageAlert = {
|
|
23710
23743
|
/**
|
|
23711
23744
|
* The feature ID this alert applies to.
|
|
@@ -23738,19 +23771,19 @@ type CustomerUsageAlert = {
|
|
|
23738
23771
|
/**
|
|
23739
23772
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23740
23773
|
*/
|
|
23741
|
-
source?:
|
|
23774
|
+
source?: CustomerUsageAlertSource | undefined;
|
|
23742
23775
|
};
|
|
23743
23776
|
/**
|
|
23744
23777
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23745
23778
|
*/
|
|
23746
|
-
declare const
|
|
23779
|
+
declare const CustomerOverageAllowedSource: {
|
|
23747
23780
|
readonly Customer: "customer";
|
|
23748
23781
|
readonly Plan: "plan";
|
|
23749
23782
|
};
|
|
23750
23783
|
/**
|
|
23751
23784
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23752
23785
|
*/
|
|
23753
|
-
type
|
|
23786
|
+
type CustomerOverageAllowedSource = OpenEnum<typeof CustomerOverageAllowedSource>;
|
|
23754
23787
|
type CustomerOverageAllowed = {
|
|
23755
23788
|
/**
|
|
23756
23789
|
* The feature ID this overage allowed control applies to.
|
|
@@ -23763,7 +23796,7 @@ type CustomerOverageAllowed = {
|
|
|
23763
23796
|
/**
|
|
23764
23797
|
* Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
|
|
23765
23798
|
*/
|
|
23766
|
-
source?:
|
|
23799
|
+
source?: CustomerOverageAllowedSource | undefined;
|
|
23767
23800
|
};
|
|
23768
23801
|
/**
|
|
23769
23802
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
@@ -32104,6 +32137,23 @@ type ListBalancesPrice = {
|
|
|
32104
32137
|
*/
|
|
32105
32138
|
maxPurchase: number | null;
|
|
32106
32139
|
};
|
|
32140
|
+
/**
|
|
32141
|
+
* Where this row's credits come from: shared at the customer level, or owned by the entity.
|
|
32142
|
+
*/
|
|
32143
|
+
declare const ListBalancesSource: {
|
|
32144
|
+
readonly Customer: "customer";
|
|
32145
|
+
readonly Entity: "entity";
|
|
32146
|
+
};
|
|
32147
|
+
/**
|
|
32148
|
+
* Where this row's credits come from: shared at the customer level, or owned by the entity.
|
|
32149
|
+
*/
|
|
32150
|
+
type ListBalancesSource = OpenEnum<typeof ListBalancesSource>;
|
|
32151
|
+
type ListBalancesAllocation = {
|
|
32152
|
+
/**
|
|
32153
|
+
* The amount allocated to this entity.
|
|
32154
|
+
*/
|
|
32155
|
+
amount: number;
|
|
32156
|
+
};
|
|
32107
32157
|
/**
|
|
32108
32158
|
* Whether this balance is active or expired.
|
|
32109
32159
|
*/
|
|
@@ -32170,6 +32220,14 @@ type ListBalancesList = {
|
|
|
32170
32220
|
* Timestamp when this balance expires, or null for no expiration.
|
|
32171
32221
|
*/
|
|
32172
32222
|
expiresAt: number | null;
|
|
32223
|
+
/**
|
|
32224
|
+
* Where this row's credits come from: shared at the customer level, or owned by the entity.
|
|
32225
|
+
*/
|
|
32226
|
+
source?: ListBalancesSource | undefined;
|
|
32227
|
+
/**
|
|
32228
|
+
* Set when this row's numbers are the entity's allocated share of the customer's credits.
|
|
32229
|
+
*/
|
|
32230
|
+
allocation?: ListBalancesAllocation | null | undefined;
|
|
32173
32231
|
/**
|
|
32174
32232
|
* The feature this balance is for.
|
|
32175
32233
|
*/
|
|
@@ -65990,7 +66048,7 @@ declare class Billing extends ClientSDK {
|
|
|
65990
66048
|
* @param noBillingChanges - If true, skips any billing changes for the schedule. (optional)
|
|
65991
66049
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle anchor of the immediate phase to the current time. (optional)
|
|
65992
66050
|
* @param enablePlanImmediately - If true, the immediate-phase cusProducts are activated immediately (and scheduled-phase cusProducts pre-inserted) even when payment is pending via Stripe checkout. The Autumn schedule rows are persisted on checkout.session.completed. (optional)
|
|
65993
|
-
* @param preserveAddOns - Deprecated and ignored. Active plans the schedule does not
|
|
66051
|
+
* @param preserveAddOns - Deprecated and ignored. Active plans the schedule does not list keep running until a listed plan in their group replaces them or the schedule ends. (optional)
|
|
65994
66052
|
* @param unscheduledPlans - Plans billed with the immediate phase that the schedule never expires or replaces. No phase may declare a plan in the same group and scope. (optional)
|
|
65995
66053
|
* @param phases - Ordered phase definitions for the schedule.
|
|
65996
66054
|
*
|
|
@@ -3669,6 +3669,10 @@ var BalanceBillingMethod = {
|
|
|
3669
3669
|
Prepaid: "prepaid",
|
|
3670
3670
|
UsageBased: "usage_based"
|
|
3671
3671
|
};
|
|
3672
|
+
var BalanceSource = {
|
|
3673
|
+
Customer: "customer",
|
|
3674
|
+
Entity: "entity"
|
|
3675
|
+
};
|
|
3672
3676
|
var BalanceType$inboundSchema = inboundSchema(BalanceType);
|
|
3673
3677
|
var BalanceDimensions6$inboundSchema = z15.pipe(
|
|
3674
3678
|
z15.object({
|
|
@@ -4029,6 +4033,10 @@ var BalancePrice$inboundSchema = z15.pipe(
|
|
|
4029
4033
|
});
|
|
4030
4034
|
})
|
|
4031
4035
|
);
|
|
4036
|
+
var BalanceSource$inboundSchema = inboundSchema(BalanceSource);
|
|
4037
|
+
var Allocation$inboundSchema = z15.object({
|
|
4038
|
+
amount: number2()
|
|
4039
|
+
});
|
|
4032
4040
|
var Breakdown$inboundSchema = z15.pipe(
|
|
4033
4041
|
z15.object({
|
|
4034
4042
|
id: z15._default(string5(), ""),
|
|
@@ -4040,7 +4048,11 @@ var Breakdown$inboundSchema = z15.pipe(
|
|
|
4040
4048
|
unlimited: boolean2(),
|
|
4041
4049
|
reset: nullable(z15.lazy(() => BalanceReset$inboundSchema)),
|
|
4042
4050
|
price: nullable(z15.lazy(() => BalancePrice$inboundSchema)),
|
|
4043
|
-
expires_at: nullable(number2())
|
|
4051
|
+
expires_at: nullable(number2()),
|
|
4052
|
+
source: optional3(BalanceSource$inboundSchema),
|
|
4053
|
+
allocation: z15.optional(
|
|
4054
|
+
z15.nullable(z15.lazy(() => Allocation$inboundSchema))
|
|
4055
|
+
)
|
|
4044
4056
|
}),
|
|
4045
4057
|
z15.transform((v) => {
|
|
4046
4058
|
return remap(v, {
|
|
@@ -4077,7 +4089,9 @@ var Balance$inboundSchema = z15.pipe(
|
|
|
4077
4089
|
breakdown: optional3(z15.array(z15.lazy(() => Breakdown$inboundSchema))),
|
|
4078
4090
|
rollovers: optional3(z15.array(z15.lazy(
|
|
4079
4091
|
() => BalanceRollover$inboundSchema
|
|
4080
|
-
)))
|
|
4092
|
+
))),
|
|
4093
|
+
allocated: optional3(number2()),
|
|
4094
|
+
unallocated: optional3(number2())
|
|
4081
4095
|
}),
|
|
4082
4096
|
z15.transform((v) => {
|
|
4083
4097
|
return remap(v, {
|
|
@@ -21134,7 +21148,7 @@ var CustomerAutoTopupInterval1 = {
|
|
|
21134
21148
|
Week: "week",
|
|
21135
21149
|
Month: "month"
|
|
21136
21150
|
};
|
|
21137
|
-
var
|
|
21151
|
+
var CustomerAutoTopupSource = {
|
|
21138
21152
|
Customer: "customer",
|
|
21139
21153
|
Plan: "plan"
|
|
21140
21154
|
};
|
|
@@ -21142,7 +21156,7 @@ var CustomerLimitType = {
|
|
|
21142
21156
|
Absolute: "absolute",
|
|
21143
21157
|
UsagePercentage: "usage_percentage"
|
|
21144
21158
|
};
|
|
21145
|
-
var
|
|
21159
|
+
var CustomerSpendLimitSource = {
|
|
21146
21160
|
Customer: "customer",
|
|
21147
21161
|
Plan: "plan"
|
|
21148
21162
|
};
|
|
@@ -21156,7 +21170,7 @@ var CustomerAnchor = {
|
|
|
21156
21170
|
BillingCycle: "billing_cycle",
|
|
21157
21171
|
Utc: "utc"
|
|
21158
21172
|
};
|
|
21159
|
-
var
|
|
21173
|
+
var CustomerUsageLimitSource = {
|
|
21160
21174
|
Customer: "customer",
|
|
21161
21175
|
Plan: "plan"
|
|
21162
21176
|
};
|
|
@@ -21172,11 +21186,11 @@ var CustomerBasis = {
|
|
|
21172
21186
|
Recurring: "recurring",
|
|
21173
21187
|
UsageLimit: "usage_limit"
|
|
21174
21188
|
};
|
|
21175
|
-
var
|
|
21189
|
+
var CustomerUsageAlertSource = {
|
|
21176
21190
|
Customer: "customer",
|
|
21177
21191
|
Plan: "plan"
|
|
21178
21192
|
};
|
|
21179
|
-
var
|
|
21193
|
+
var CustomerOverageAllowedSource = {
|
|
21180
21194
|
Customer: "customer",
|
|
21181
21195
|
Plan: "plan"
|
|
21182
21196
|
};
|
|
@@ -21269,7 +21283,7 @@ var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
|
21269
21283
|
z39.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
21270
21284
|
z39.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
21271
21285
|
]);
|
|
21272
|
-
var
|
|
21286
|
+
var CustomerAutoTopupSource$inboundSchema = inboundSchema(CustomerAutoTopupSource);
|
|
21273
21287
|
var CustomerAutoTopup$inboundSchema = z39.pipe(
|
|
21274
21288
|
z39.object({
|
|
21275
21289
|
feature_id: string5(),
|
|
@@ -21281,7 +21295,7 @@ var CustomerAutoTopup$inboundSchema = z39.pipe(
|
|
|
21281
21295
|
z39.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
21282
21296
|
])),
|
|
21283
21297
|
invoice_mode: optional3(boolean2()),
|
|
21284
|
-
source: optional3(
|
|
21298
|
+
source: optional3(CustomerAutoTopupSource$inboundSchema)
|
|
21285
21299
|
}),
|
|
21286
21300
|
z39.transform((v) => {
|
|
21287
21301
|
return remap(v, {
|
|
@@ -21292,7 +21306,7 @@ var CustomerAutoTopup$inboundSchema = z39.pipe(
|
|
|
21292
21306
|
})
|
|
21293
21307
|
);
|
|
21294
21308
|
var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
|
|
21295
|
-
var
|
|
21309
|
+
var CustomerSpendLimitSource$inboundSchema = inboundSchema(CustomerSpendLimitSource);
|
|
21296
21310
|
var CustomerSpendLimit$inboundSchema = z39.pipe(
|
|
21297
21311
|
z39.object({
|
|
21298
21312
|
feature_id: optional3(string5()),
|
|
@@ -21300,7 +21314,7 @@ var CustomerSpendLimit$inboundSchema = z39.pipe(
|
|
|
21300
21314
|
limit_type: optional3(CustomerLimitType$inboundSchema),
|
|
21301
21315
|
overage_limit: optional3(number2()),
|
|
21302
21316
|
skip_overage_billing: optional3(boolean2()),
|
|
21303
|
-
source: optional3(
|
|
21317
|
+
source: optional3(CustomerSpendLimitSource$inboundSchema)
|
|
21304
21318
|
}),
|
|
21305
21319
|
z39.transform((v) => {
|
|
21306
21320
|
return remap(v, {
|
|
@@ -21316,7 +21330,7 @@ var CustomerAnchor$inboundSchema = inboundSchema(CustomerAnchor);
|
|
|
21316
21330
|
var CustomerUsageLimitFilter$inboundSchema = z39.object({
|
|
21317
21331
|
properties: z39.record(z39.string(), string5())
|
|
21318
21332
|
});
|
|
21319
|
-
var
|
|
21333
|
+
var CustomerUsageLimitSource$inboundSchema = inboundSchema(CustomerUsageLimitSource);
|
|
21320
21334
|
var CustomerUsageLimit$inboundSchema = z39.pipe(
|
|
21321
21335
|
z39.object({
|
|
21322
21336
|
feature_id: string5(),
|
|
@@ -21328,7 +21342,7 @@ var CustomerUsageLimit$inboundSchema = z39.pipe(
|
|
|
21328
21342
|
z39.lazy(() => CustomerUsageLimitFilter$inboundSchema)
|
|
21329
21343
|
),
|
|
21330
21344
|
usage: optional3(number2()),
|
|
21331
|
-
source: optional3(
|
|
21345
|
+
source: optional3(CustomerUsageLimitSource$inboundSchema)
|
|
21332
21346
|
}),
|
|
21333
21347
|
z39.transform((v) => {
|
|
21334
21348
|
return remap(v, {
|
|
@@ -21341,7 +21355,7 @@ var CustomerBasis$inboundSchema = inboundSchema(CustomerBasis);
|
|
|
21341
21355
|
var CustomerUsageAlertFilter$inboundSchema = z39.object({
|
|
21342
21356
|
properties: z39.record(z39.string(), string5())
|
|
21343
21357
|
});
|
|
21344
|
-
var
|
|
21358
|
+
var CustomerUsageAlertSource$inboundSchema = inboundSchema(CustomerUsageAlertSource);
|
|
21345
21359
|
var CustomerUsageAlert$inboundSchema = z39.pipe(
|
|
21346
21360
|
z39.object({
|
|
21347
21361
|
feature_id: optional3(string5()),
|
|
@@ -21353,7 +21367,7 @@ var CustomerUsageAlert$inboundSchema = z39.pipe(
|
|
|
21353
21367
|
z39.lazy(() => CustomerUsageAlertFilter$inboundSchema)
|
|
21354
21368
|
),
|
|
21355
21369
|
name: optional3(string5()),
|
|
21356
|
-
source: optional3(
|
|
21370
|
+
source: optional3(CustomerUsageAlertSource$inboundSchema)
|
|
21357
21371
|
}),
|
|
21358
21372
|
z39.transform((v) => {
|
|
21359
21373
|
return remap(v, {
|
|
@@ -21362,12 +21376,12 @@ var CustomerUsageAlert$inboundSchema = z39.pipe(
|
|
|
21362
21376
|
});
|
|
21363
21377
|
})
|
|
21364
21378
|
);
|
|
21365
|
-
var
|
|
21379
|
+
var CustomerOverageAllowedSource$inboundSchema = inboundSchema(CustomerOverageAllowedSource);
|
|
21366
21380
|
var CustomerOverageAllowed$inboundSchema = z39.pipe(
|
|
21367
21381
|
z39.object({
|
|
21368
21382
|
feature_id: string5(),
|
|
21369
21383
|
enabled: z39._default(boolean2(), false),
|
|
21370
|
-
source: optional3(
|
|
21384
|
+
source: optional3(CustomerOverageAllowedSource$inboundSchema)
|
|
21371
21385
|
}),
|
|
21372
21386
|
z39.transform((v) => {
|
|
21373
21387
|
return remap(v, {
|
|
@@ -28140,6 +28154,10 @@ var ListBalancesBillingMethod = {
|
|
|
28140
28154
|
Prepaid: "prepaid",
|
|
28141
28155
|
UsageBased: "usage_based"
|
|
28142
28156
|
};
|
|
28157
|
+
var ListBalancesSource = {
|
|
28158
|
+
Customer: "customer",
|
|
28159
|
+
Entity: "entity"
|
|
28160
|
+
};
|
|
28143
28161
|
var ListBalancesListStatus = {
|
|
28144
28162
|
Active: "active",
|
|
28145
28163
|
Expired: "expired"
|
|
@@ -28218,6 +28236,10 @@ var ListBalancesPrice$inboundSchema = z66.pipe(
|
|
|
28218
28236
|
});
|
|
28219
28237
|
})
|
|
28220
28238
|
);
|
|
28239
|
+
var ListBalancesSource$inboundSchema = inboundSchema(ListBalancesSource);
|
|
28240
|
+
var ListBalancesAllocation$inboundSchema = z66.object({
|
|
28241
|
+
amount: number2()
|
|
28242
|
+
});
|
|
28221
28243
|
var ListBalancesListStatus$inboundSchema = inboundSchema(ListBalancesListStatus);
|
|
28222
28244
|
var ListBalancesRollover$inboundSchema = z66.pipe(
|
|
28223
28245
|
z66.object({
|
|
@@ -28243,6 +28265,10 @@ var ListBalancesList$inboundSchema = z66.pipe(
|
|
|
28243
28265
|
reset: nullable(z66.lazy(() => ListBalancesReset$inboundSchema)),
|
|
28244
28266
|
price: nullable(z66.lazy(() => ListBalancesPrice$inboundSchema)),
|
|
28245
28267
|
expires_at: nullable(number2()),
|
|
28268
|
+
source: optional3(ListBalancesSource$inboundSchema),
|
|
28269
|
+
allocation: z66.optional(
|
|
28270
|
+
z66.nullable(z66.lazy(() => ListBalancesAllocation$inboundSchema))
|
|
28271
|
+
),
|
|
28246
28272
|
feature_id: string5(),
|
|
28247
28273
|
status: ListBalancesListStatus$inboundSchema,
|
|
28248
28274
|
rollovers: z66.array(z66.lazy(() => ListBalancesRollover$inboundSchema)),
|
|
@@ -58706,7 +58732,7 @@ var Billing = class extends ClientSDK {
|
|
|
58706
58732
|
* @param noBillingChanges - If true, skips any billing changes for the schedule. (optional)
|
|
58707
58733
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle anchor of the immediate phase to the current time. (optional)
|
|
58708
58734
|
* @param enablePlanImmediately - If true, the immediate-phase cusProducts are activated immediately (and scheduled-phase cusProducts pre-inserted) even when payment is pending via Stripe checkout. The Autumn schedule rows are persisted on checkout.session.completed. (optional)
|
|
58709
|
-
* @param preserveAddOns - Deprecated and ignored. Active plans the schedule does not
|
|
58735
|
+
* @param preserveAddOns - Deprecated and ignored. Active plans the schedule does not list keep running until a listed plan in their group replaces them or the schedule ends. (optional)
|
|
58710
58736
|
* @param unscheduledPlans - Plans billed with the immediate phase that the schedule never expires or replaces. No phase may declare a plan in the same group and scope. (optional)
|
|
58711
58737
|
* @param phases - Ordered phase definitions for the schedule.
|
|
58712
58738
|
*
|