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
|
@@ -10517,6 +10517,10 @@ var BalanceBillingMethod = {
|
|
|
10517
10517
|
Prepaid: "prepaid",
|
|
10518
10518
|
UsageBased: "usage_based"
|
|
10519
10519
|
};
|
|
10520
|
+
var BalanceSource = {
|
|
10521
|
+
Customer: "customer",
|
|
10522
|
+
Entity: "entity"
|
|
10523
|
+
};
|
|
10520
10524
|
var BalanceType$inboundSchema = inboundSchema(BalanceType);
|
|
10521
10525
|
var BalanceDimensions6$inboundSchema = z34.pipe(
|
|
10522
10526
|
z34.object({
|
|
@@ -10877,6 +10881,10 @@ var BalancePrice$inboundSchema = z34.pipe(
|
|
|
10877
10881
|
});
|
|
10878
10882
|
})
|
|
10879
10883
|
);
|
|
10884
|
+
var BalanceSource$inboundSchema = inboundSchema(BalanceSource);
|
|
10885
|
+
var Allocation$inboundSchema = z34.object({
|
|
10886
|
+
amount: number2()
|
|
10887
|
+
});
|
|
10880
10888
|
var Breakdown$inboundSchema = z34.pipe(
|
|
10881
10889
|
z34.object({
|
|
10882
10890
|
id: z34._default(string5(), ""),
|
|
@@ -10888,7 +10896,11 @@ var Breakdown$inboundSchema = z34.pipe(
|
|
|
10888
10896
|
unlimited: boolean2(),
|
|
10889
10897
|
reset: nullable(z34.lazy(() => BalanceReset$inboundSchema)),
|
|
10890
10898
|
price: nullable(z34.lazy(() => BalancePrice$inboundSchema)),
|
|
10891
|
-
expires_at: nullable(number2())
|
|
10899
|
+
expires_at: nullable(number2()),
|
|
10900
|
+
source: optional3(BalanceSource$inboundSchema),
|
|
10901
|
+
allocation: z34.optional(
|
|
10902
|
+
z34.nullable(z34.lazy(() => Allocation$inboundSchema))
|
|
10903
|
+
)
|
|
10892
10904
|
}),
|
|
10893
10905
|
z34.transform((v) => {
|
|
10894
10906
|
return remap(v, {
|
|
@@ -10925,7 +10937,9 @@ var Balance$inboundSchema = z34.pipe(
|
|
|
10925
10937
|
breakdown: optional3(z34.array(z34.lazy(() => Breakdown$inboundSchema))),
|
|
10926
10938
|
rollovers: optional3(z34.array(z34.lazy(
|
|
10927
10939
|
() => BalanceRollover$inboundSchema
|
|
10928
|
-
)))
|
|
10940
|
+
))),
|
|
10941
|
+
allocated: optional3(number2()),
|
|
10942
|
+
unallocated: optional3(number2())
|
|
10929
10943
|
}),
|
|
10930
10944
|
z34.transform((v) => {
|
|
10931
10945
|
return remap(v, {
|
|
@@ -27982,7 +27996,7 @@ var CustomerAutoTopupInterval1 = {
|
|
|
27982
27996
|
Week: "week",
|
|
27983
27997
|
Month: "month"
|
|
27984
27998
|
};
|
|
27985
|
-
var
|
|
27999
|
+
var CustomerAutoTopupSource = {
|
|
27986
28000
|
Customer: "customer",
|
|
27987
28001
|
Plan: "plan"
|
|
27988
28002
|
};
|
|
@@ -27990,7 +28004,7 @@ var CustomerLimitType = {
|
|
|
27990
28004
|
Absolute: "absolute",
|
|
27991
28005
|
UsagePercentage: "usage_percentage"
|
|
27992
28006
|
};
|
|
27993
|
-
var
|
|
28007
|
+
var CustomerSpendLimitSource = {
|
|
27994
28008
|
Customer: "customer",
|
|
27995
28009
|
Plan: "plan"
|
|
27996
28010
|
};
|
|
@@ -28004,7 +28018,7 @@ var CustomerAnchor = {
|
|
|
28004
28018
|
BillingCycle: "billing_cycle",
|
|
28005
28019
|
Utc: "utc"
|
|
28006
28020
|
};
|
|
28007
|
-
var
|
|
28021
|
+
var CustomerUsageLimitSource = {
|
|
28008
28022
|
Customer: "customer",
|
|
28009
28023
|
Plan: "plan"
|
|
28010
28024
|
};
|
|
@@ -28020,11 +28034,11 @@ var CustomerBasis = {
|
|
|
28020
28034
|
Recurring: "recurring",
|
|
28021
28035
|
UsageLimit: "usage_limit"
|
|
28022
28036
|
};
|
|
28023
|
-
var
|
|
28037
|
+
var CustomerUsageAlertSource = {
|
|
28024
28038
|
Customer: "customer",
|
|
28025
28039
|
Plan: "plan"
|
|
28026
28040
|
};
|
|
28027
|
-
var
|
|
28041
|
+
var CustomerOverageAllowedSource = {
|
|
28028
28042
|
Customer: "customer",
|
|
28029
28043
|
Plan: "plan"
|
|
28030
28044
|
};
|
|
@@ -28117,7 +28131,7 @@ var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
|
28117
28131
|
z58.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
28118
28132
|
z58.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
28119
28133
|
]);
|
|
28120
|
-
var
|
|
28134
|
+
var CustomerAutoTopupSource$inboundSchema = inboundSchema(CustomerAutoTopupSource);
|
|
28121
28135
|
var CustomerAutoTopup$inboundSchema = z58.pipe(
|
|
28122
28136
|
z58.object({
|
|
28123
28137
|
feature_id: string5(),
|
|
@@ -28129,7 +28143,7 @@ var CustomerAutoTopup$inboundSchema = z58.pipe(
|
|
|
28129
28143
|
z58.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
28130
28144
|
])),
|
|
28131
28145
|
invoice_mode: optional3(boolean2()),
|
|
28132
|
-
source: optional3(
|
|
28146
|
+
source: optional3(CustomerAutoTopupSource$inboundSchema)
|
|
28133
28147
|
}),
|
|
28134
28148
|
z58.transform((v) => {
|
|
28135
28149
|
return remap(v, {
|
|
@@ -28140,7 +28154,7 @@ var CustomerAutoTopup$inboundSchema = z58.pipe(
|
|
|
28140
28154
|
})
|
|
28141
28155
|
);
|
|
28142
28156
|
var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
|
|
28143
|
-
var
|
|
28157
|
+
var CustomerSpendLimitSource$inboundSchema = inboundSchema(CustomerSpendLimitSource);
|
|
28144
28158
|
var CustomerSpendLimit$inboundSchema = z58.pipe(
|
|
28145
28159
|
z58.object({
|
|
28146
28160
|
feature_id: optional3(string5()),
|
|
@@ -28148,7 +28162,7 @@ var CustomerSpendLimit$inboundSchema = z58.pipe(
|
|
|
28148
28162
|
limit_type: optional3(CustomerLimitType$inboundSchema),
|
|
28149
28163
|
overage_limit: optional3(number2()),
|
|
28150
28164
|
skip_overage_billing: optional3(boolean2()),
|
|
28151
|
-
source: optional3(
|
|
28165
|
+
source: optional3(CustomerSpendLimitSource$inboundSchema)
|
|
28152
28166
|
}),
|
|
28153
28167
|
z58.transform((v) => {
|
|
28154
28168
|
return remap(v, {
|
|
@@ -28164,7 +28178,7 @@ var CustomerAnchor$inboundSchema = inboundSchema(CustomerAnchor);
|
|
|
28164
28178
|
var CustomerUsageLimitFilter$inboundSchema = z58.object({
|
|
28165
28179
|
properties: z58.record(z58.string(), string5())
|
|
28166
28180
|
});
|
|
28167
|
-
var
|
|
28181
|
+
var CustomerUsageLimitSource$inboundSchema = inboundSchema(CustomerUsageLimitSource);
|
|
28168
28182
|
var CustomerUsageLimit$inboundSchema = z58.pipe(
|
|
28169
28183
|
z58.object({
|
|
28170
28184
|
feature_id: string5(),
|
|
@@ -28176,7 +28190,7 @@ var CustomerUsageLimit$inboundSchema = z58.pipe(
|
|
|
28176
28190
|
z58.lazy(() => CustomerUsageLimitFilter$inboundSchema)
|
|
28177
28191
|
),
|
|
28178
28192
|
usage: optional3(number2()),
|
|
28179
|
-
source: optional3(
|
|
28193
|
+
source: optional3(CustomerUsageLimitSource$inboundSchema)
|
|
28180
28194
|
}),
|
|
28181
28195
|
z58.transform((v) => {
|
|
28182
28196
|
return remap(v, {
|
|
@@ -28189,7 +28203,7 @@ var CustomerBasis$inboundSchema = inboundSchema(CustomerBasis);
|
|
|
28189
28203
|
var CustomerUsageAlertFilter$inboundSchema = z58.object({
|
|
28190
28204
|
properties: z58.record(z58.string(), string5())
|
|
28191
28205
|
});
|
|
28192
|
-
var
|
|
28206
|
+
var CustomerUsageAlertSource$inboundSchema = inboundSchema(CustomerUsageAlertSource);
|
|
28193
28207
|
var CustomerUsageAlert$inboundSchema = z58.pipe(
|
|
28194
28208
|
z58.object({
|
|
28195
28209
|
feature_id: optional3(string5()),
|
|
@@ -28201,7 +28215,7 @@ var CustomerUsageAlert$inboundSchema = z58.pipe(
|
|
|
28201
28215
|
z58.lazy(() => CustomerUsageAlertFilter$inboundSchema)
|
|
28202
28216
|
),
|
|
28203
28217
|
name: optional3(string5()),
|
|
28204
|
-
source: optional3(
|
|
28218
|
+
source: optional3(CustomerUsageAlertSource$inboundSchema)
|
|
28205
28219
|
}),
|
|
28206
28220
|
z58.transform((v) => {
|
|
28207
28221
|
return remap(v, {
|
|
@@ -28210,12 +28224,12 @@ var CustomerUsageAlert$inboundSchema = z58.pipe(
|
|
|
28210
28224
|
});
|
|
28211
28225
|
})
|
|
28212
28226
|
);
|
|
28213
|
-
var
|
|
28227
|
+
var CustomerOverageAllowedSource$inboundSchema = inboundSchema(CustomerOverageAllowedSource);
|
|
28214
28228
|
var CustomerOverageAllowed$inboundSchema = z58.pipe(
|
|
28215
28229
|
z58.object({
|
|
28216
28230
|
feature_id: string5(),
|
|
28217
28231
|
enabled: z58._default(boolean2(), false),
|
|
28218
|
-
source: optional3(
|
|
28232
|
+
source: optional3(CustomerOverageAllowedSource$inboundSchema)
|
|
28219
28233
|
}),
|
|
28220
28234
|
z58.transform((v) => {
|
|
28221
28235
|
return remap(v, {
|
|
@@ -34988,6 +35002,10 @@ var ListBalancesBillingMethod = {
|
|
|
34988
35002
|
Prepaid: "prepaid",
|
|
34989
35003
|
UsageBased: "usage_based"
|
|
34990
35004
|
};
|
|
35005
|
+
var ListBalancesSource = {
|
|
35006
|
+
Customer: "customer",
|
|
35007
|
+
Entity: "entity"
|
|
35008
|
+
};
|
|
34991
35009
|
var ListBalancesListStatus = {
|
|
34992
35010
|
Active: "active",
|
|
34993
35011
|
Expired: "expired"
|
|
@@ -35066,6 +35084,10 @@ var ListBalancesPrice$inboundSchema = z85.pipe(
|
|
|
35066
35084
|
});
|
|
35067
35085
|
})
|
|
35068
35086
|
);
|
|
35087
|
+
var ListBalancesSource$inboundSchema = inboundSchema(ListBalancesSource);
|
|
35088
|
+
var ListBalancesAllocation$inboundSchema = z85.object({
|
|
35089
|
+
amount: number2()
|
|
35090
|
+
});
|
|
35069
35091
|
var ListBalancesListStatus$inboundSchema = inboundSchema(ListBalancesListStatus);
|
|
35070
35092
|
var ListBalancesRollover$inboundSchema = z85.pipe(
|
|
35071
35093
|
z85.object({
|
|
@@ -35091,6 +35113,10 @@ var ListBalancesList$inboundSchema = z85.pipe(
|
|
|
35091
35113
|
reset: nullable(z85.lazy(() => ListBalancesReset$inboundSchema)),
|
|
35092
35114
|
price: nullable(z85.lazy(() => ListBalancesPrice$inboundSchema)),
|
|
35093
35115
|
expires_at: nullable(number2()),
|
|
35116
|
+
source: optional3(ListBalancesSource$inboundSchema),
|
|
35117
|
+
allocation: z85.optional(
|
|
35118
|
+
z85.nullable(z85.lazy(() => ListBalancesAllocation$inboundSchema))
|
|
35119
|
+
),
|
|
35094
35120
|
feature_id: string5(),
|
|
35095
35121
|
status: ListBalancesListStatus$inboundSchema,
|
|
35096
35122
|
rollovers: z85.array(z85.lazy(() => ListBalancesRollover$inboundSchema)),
|
|
@@ -65554,7 +65580,7 @@ var Billing = class extends ClientSDK {
|
|
|
65554
65580
|
* @param noBillingChanges - If true, skips any billing changes for the schedule. (optional)
|
|
65555
65581
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle anchor of the immediate phase to the current time. (optional)
|
|
65556
65582
|
* @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)
|
|
65557
|
-
* @param preserveAddOns - Deprecated and ignored. Active plans the schedule does not
|
|
65583
|
+
* @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)
|
|
65558
65584
|
* @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)
|
|
65559
65585
|
* @param phases - Ordered phase definitions for the schedule.
|
|
65560
65586
|
*
|
|
@@ -3688,6 +3688,10 @@ var BalanceBillingMethod = {
|
|
|
3688
3688
|
Prepaid: "prepaid",
|
|
3689
3689
|
UsageBased: "usage_based"
|
|
3690
3690
|
};
|
|
3691
|
+
var BalanceSource = {
|
|
3692
|
+
Customer: "customer",
|
|
3693
|
+
Entity: "entity"
|
|
3694
|
+
};
|
|
3691
3695
|
var BalanceType$inboundSchema = inboundSchema(BalanceType);
|
|
3692
3696
|
var BalanceDimensions6$inboundSchema = z15.pipe(
|
|
3693
3697
|
z15.object({
|
|
@@ -4048,6 +4052,10 @@ var BalancePrice$inboundSchema = z15.pipe(
|
|
|
4048
4052
|
});
|
|
4049
4053
|
})
|
|
4050
4054
|
);
|
|
4055
|
+
var BalanceSource$inboundSchema = inboundSchema(BalanceSource);
|
|
4056
|
+
var Allocation$inboundSchema = z15.object({
|
|
4057
|
+
amount: number2()
|
|
4058
|
+
});
|
|
4051
4059
|
var Breakdown$inboundSchema = z15.pipe(
|
|
4052
4060
|
z15.object({
|
|
4053
4061
|
id: z15._default(string5(), ""),
|
|
@@ -4059,7 +4067,11 @@ var Breakdown$inboundSchema = z15.pipe(
|
|
|
4059
4067
|
unlimited: boolean2(),
|
|
4060
4068
|
reset: nullable(z15.lazy(() => BalanceReset$inboundSchema)),
|
|
4061
4069
|
price: nullable(z15.lazy(() => BalancePrice$inboundSchema)),
|
|
4062
|
-
expires_at: nullable(number2())
|
|
4070
|
+
expires_at: nullable(number2()),
|
|
4071
|
+
source: optional3(BalanceSource$inboundSchema),
|
|
4072
|
+
allocation: z15.optional(
|
|
4073
|
+
z15.nullable(z15.lazy(() => Allocation$inboundSchema))
|
|
4074
|
+
)
|
|
4063
4075
|
}),
|
|
4064
4076
|
z15.transform((v) => {
|
|
4065
4077
|
return remap(v, {
|
|
@@ -4096,7 +4108,9 @@ var Balance$inboundSchema = z15.pipe(
|
|
|
4096
4108
|
breakdown: optional3(z15.array(z15.lazy(() => Breakdown$inboundSchema))),
|
|
4097
4109
|
rollovers: optional3(z15.array(z15.lazy(
|
|
4098
4110
|
() => BalanceRollover$inboundSchema
|
|
4099
|
-
)))
|
|
4111
|
+
))),
|
|
4112
|
+
allocated: optional3(number2()),
|
|
4113
|
+
unallocated: optional3(number2())
|
|
4100
4114
|
}),
|
|
4101
4115
|
z15.transform((v) => {
|
|
4102
4116
|
return remap(v, {
|
|
@@ -21153,7 +21167,7 @@ var CustomerAutoTopupInterval1 = {
|
|
|
21153
21167
|
Week: "week",
|
|
21154
21168
|
Month: "month"
|
|
21155
21169
|
};
|
|
21156
|
-
var
|
|
21170
|
+
var CustomerAutoTopupSource = {
|
|
21157
21171
|
Customer: "customer",
|
|
21158
21172
|
Plan: "plan"
|
|
21159
21173
|
};
|
|
@@ -21161,7 +21175,7 @@ var CustomerLimitType = {
|
|
|
21161
21175
|
Absolute: "absolute",
|
|
21162
21176
|
UsagePercentage: "usage_percentage"
|
|
21163
21177
|
};
|
|
21164
|
-
var
|
|
21178
|
+
var CustomerSpendLimitSource = {
|
|
21165
21179
|
Customer: "customer",
|
|
21166
21180
|
Plan: "plan"
|
|
21167
21181
|
};
|
|
@@ -21175,7 +21189,7 @@ var CustomerAnchor = {
|
|
|
21175
21189
|
BillingCycle: "billing_cycle",
|
|
21176
21190
|
Utc: "utc"
|
|
21177
21191
|
};
|
|
21178
|
-
var
|
|
21192
|
+
var CustomerUsageLimitSource = {
|
|
21179
21193
|
Customer: "customer",
|
|
21180
21194
|
Plan: "plan"
|
|
21181
21195
|
};
|
|
@@ -21191,11 +21205,11 @@ var CustomerBasis = {
|
|
|
21191
21205
|
Recurring: "recurring",
|
|
21192
21206
|
UsageLimit: "usage_limit"
|
|
21193
21207
|
};
|
|
21194
|
-
var
|
|
21208
|
+
var CustomerUsageAlertSource = {
|
|
21195
21209
|
Customer: "customer",
|
|
21196
21210
|
Plan: "plan"
|
|
21197
21211
|
};
|
|
21198
|
-
var
|
|
21212
|
+
var CustomerOverageAllowedSource = {
|
|
21199
21213
|
Customer: "customer",
|
|
21200
21214
|
Plan: "plan"
|
|
21201
21215
|
};
|
|
@@ -21288,7 +21302,7 @@ var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
|
21288
21302
|
z39.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
21289
21303
|
z39.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
21290
21304
|
]);
|
|
21291
|
-
var
|
|
21305
|
+
var CustomerAutoTopupSource$inboundSchema = inboundSchema(CustomerAutoTopupSource);
|
|
21292
21306
|
var CustomerAutoTopup$inboundSchema = z39.pipe(
|
|
21293
21307
|
z39.object({
|
|
21294
21308
|
feature_id: string5(),
|
|
@@ -21300,7 +21314,7 @@ var CustomerAutoTopup$inboundSchema = z39.pipe(
|
|
|
21300
21314
|
z39.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
21301
21315
|
])),
|
|
21302
21316
|
invoice_mode: optional3(boolean2()),
|
|
21303
|
-
source: optional3(
|
|
21317
|
+
source: optional3(CustomerAutoTopupSource$inboundSchema)
|
|
21304
21318
|
}),
|
|
21305
21319
|
z39.transform((v) => {
|
|
21306
21320
|
return remap(v, {
|
|
@@ -21311,7 +21325,7 @@ var CustomerAutoTopup$inboundSchema = z39.pipe(
|
|
|
21311
21325
|
})
|
|
21312
21326
|
);
|
|
21313
21327
|
var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
|
|
21314
|
-
var
|
|
21328
|
+
var CustomerSpendLimitSource$inboundSchema = inboundSchema(CustomerSpendLimitSource);
|
|
21315
21329
|
var CustomerSpendLimit$inboundSchema = z39.pipe(
|
|
21316
21330
|
z39.object({
|
|
21317
21331
|
feature_id: optional3(string5()),
|
|
@@ -21319,7 +21333,7 @@ var CustomerSpendLimit$inboundSchema = z39.pipe(
|
|
|
21319
21333
|
limit_type: optional3(CustomerLimitType$inboundSchema),
|
|
21320
21334
|
overage_limit: optional3(number2()),
|
|
21321
21335
|
skip_overage_billing: optional3(boolean2()),
|
|
21322
|
-
source: optional3(
|
|
21336
|
+
source: optional3(CustomerSpendLimitSource$inboundSchema)
|
|
21323
21337
|
}),
|
|
21324
21338
|
z39.transform((v) => {
|
|
21325
21339
|
return remap(v, {
|
|
@@ -21335,7 +21349,7 @@ var CustomerAnchor$inboundSchema = inboundSchema(CustomerAnchor);
|
|
|
21335
21349
|
var CustomerUsageLimitFilter$inboundSchema = z39.object({
|
|
21336
21350
|
properties: z39.record(z39.string(), string5())
|
|
21337
21351
|
});
|
|
21338
|
-
var
|
|
21352
|
+
var CustomerUsageLimitSource$inboundSchema = inboundSchema(CustomerUsageLimitSource);
|
|
21339
21353
|
var CustomerUsageLimit$inboundSchema = z39.pipe(
|
|
21340
21354
|
z39.object({
|
|
21341
21355
|
feature_id: string5(),
|
|
@@ -21347,7 +21361,7 @@ var CustomerUsageLimit$inboundSchema = z39.pipe(
|
|
|
21347
21361
|
z39.lazy(() => CustomerUsageLimitFilter$inboundSchema)
|
|
21348
21362
|
),
|
|
21349
21363
|
usage: optional3(number2()),
|
|
21350
|
-
source: optional3(
|
|
21364
|
+
source: optional3(CustomerUsageLimitSource$inboundSchema)
|
|
21351
21365
|
}),
|
|
21352
21366
|
z39.transform((v) => {
|
|
21353
21367
|
return remap(v, {
|
|
@@ -21360,7 +21374,7 @@ var CustomerBasis$inboundSchema = inboundSchema(CustomerBasis);
|
|
|
21360
21374
|
var CustomerUsageAlertFilter$inboundSchema = z39.object({
|
|
21361
21375
|
properties: z39.record(z39.string(), string5())
|
|
21362
21376
|
});
|
|
21363
|
-
var
|
|
21377
|
+
var CustomerUsageAlertSource$inboundSchema = inboundSchema(CustomerUsageAlertSource);
|
|
21364
21378
|
var CustomerUsageAlert$inboundSchema = z39.pipe(
|
|
21365
21379
|
z39.object({
|
|
21366
21380
|
feature_id: optional3(string5()),
|
|
@@ -21372,7 +21386,7 @@ var CustomerUsageAlert$inboundSchema = z39.pipe(
|
|
|
21372
21386
|
z39.lazy(() => CustomerUsageAlertFilter$inboundSchema)
|
|
21373
21387
|
),
|
|
21374
21388
|
name: optional3(string5()),
|
|
21375
|
-
source: optional3(
|
|
21389
|
+
source: optional3(CustomerUsageAlertSource$inboundSchema)
|
|
21376
21390
|
}),
|
|
21377
21391
|
z39.transform((v) => {
|
|
21378
21392
|
return remap(v, {
|
|
@@ -21381,12 +21395,12 @@ var CustomerUsageAlert$inboundSchema = z39.pipe(
|
|
|
21381
21395
|
});
|
|
21382
21396
|
})
|
|
21383
21397
|
);
|
|
21384
|
-
var
|
|
21398
|
+
var CustomerOverageAllowedSource$inboundSchema = inboundSchema(CustomerOverageAllowedSource);
|
|
21385
21399
|
var CustomerOverageAllowed$inboundSchema = z39.pipe(
|
|
21386
21400
|
z39.object({
|
|
21387
21401
|
feature_id: string5(),
|
|
21388
21402
|
enabled: z39._default(boolean2(), false),
|
|
21389
|
-
source: optional3(
|
|
21403
|
+
source: optional3(CustomerOverageAllowedSource$inboundSchema)
|
|
21390
21404
|
}),
|
|
21391
21405
|
z39.transform((v) => {
|
|
21392
21406
|
return remap(v, {
|
|
@@ -28159,6 +28173,10 @@ var ListBalancesBillingMethod = {
|
|
|
28159
28173
|
Prepaid: "prepaid",
|
|
28160
28174
|
UsageBased: "usage_based"
|
|
28161
28175
|
};
|
|
28176
|
+
var ListBalancesSource = {
|
|
28177
|
+
Customer: "customer",
|
|
28178
|
+
Entity: "entity"
|
|
28179
|
+
};
|
|
28162
28180
|
var ListBalancesListStatus = {
|
|
28163
28181
|
Active: "active",
|
|
28164
28182
|
Expired: "expired"
|
|
@@ -28237,6 +28255,10 @@ var ListBalancesPrice$inboundSchema = z66.pipe(
|
|
|
28237
28255
|
});
|
|
28238
28256
|
})
|
|
28239
28257
|
);
|
|
28258
|
+
var ListBalancesSource$inboundSchema = inboundSchema(ListBalancesSource);
|
|
28259
|
+
var ListBalancesAllocation$inboundSchema = z66.object({
|
|
28260
|
+
amount: number2()
|
|
28261
|
+
});
|
|
28240
28262
|
var ListBalancesListStatus$inboundSchema = inboundSchema(ListBalancesListStatus);
|
|
28241
28263
|
var ListBalancesRollover$inboundSchema = z66.pipe(
|
|
28242
28264
|
z66.object({
|
|
@@ -28262,6 +28284,10 @@ var ListBalancesList$inboundSchema = z66.pipe(
|
|
|
28262
28284
|
reset: nullable(z66.lazy(() => ListBalancesReset$inboundSchema)),
|
|
28263
28285
|
price: nullable(z66.lazy(() => ListBalancesPrice$inboundSchema)),
|
|
28264
28286
|
expires_at: nullable(number2()),
|
|
28287
|
+
source: optional3(ListBalancesSource$inboundSchema),
|
|
28288
|
+
allocation: z66.optional(
|
|
28289
|
+
z66.nullable(z66.lazy(() => ListBalancesAllocation$inboundSchema))
|
|
28290
|
+
),
|
|
28265
28291
|
feature_id: string5(),
|
|
28266
28292
|
status: ListBalancesListStatus$inboundSchema,
|
|
28267
28293
|
rollovers: z66.array(z66.lazy(() => ListBalancesRollover$inboundSchema)),
|
|
@@ -58725,7 +58751,7 @@ var Billing = class extends ClientSDK {
|
|
|
58725
58751
|
* @param noBillingChanges - If true, skips any billing changes for the schedule. (optional)
|
|
58726
58752
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle anchor of the immediate phase to the current time. (optional)
|
|
58727
58753
|
* @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)
|
|
58728
|
-
* @param preserveAddOns - Deprecated and ignored. Active plans the schedule does not
|
|
58754
|
+
* @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)
|
|
58729
58755
|
* @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)
|
|
58730
58756
|
* @param phases - Ordered phase definitions for the schedule.
|
|
58731
58757
|
*
|
|
@@ -10521,6 +10521,10 @@ var BalanceBillingMethod = {
|
|
|
10521
10521
|
Prepaid: "prepaid",
|
|
10522
10522
|
UsageBased: "usage_based"
|
|
10523
10523
|
};
|
|
10524
|
+
var BalanceSource = {
|
|
10525
|
+
Customer: "customer",
|
|
10526
|
+
Entity: "entity"
|
|
10527
|
+
};
|
|
10524
10528
|
var BalanceType$inboundSchema = inboundSchema(BalanceType);
|
|
10525
10529
|
var BalanceDimensions6$inboundSchema = z34.pipe(
|
|
10526
10530
|
z34.object({
|
|
@@ -10881,6 +10885,10 @@ var BalancePrice$inboundSchema = z34.pipe(
|
|
|
10881
10885
|
});
|
|
10882
10886
|
})
|
|
10883
10887
|
);
|
|
10888
|
+
var BalanceSource$inboundSchema = inboundSchema(BalanceSource);
|
|
10889
|
+
var Allocation$inboundSchema = z34.object({
|
|
10890
|
+
amount: number2()
|
|
10891
|
+
});
|
|
10884
10892
|
var Breakdown$inboundSchema = z34.pipe(
|
|
10885
10893
|
z34.object({
|
|
10886
10894
|
id: z34._default(string5(), ""),
|
|
@@ -10892,7 +10900,11 @@ var Breakdown$inboundSchema = z34.pipe(
|
|
|
10892
10900
|
unlimited: boolean2(),
|
|
10893
10901
|
reset: nullable(z34.lazy(() => BalanceReset$inboundSchema)),
|
|
10894
10902
|
price: nullable(z34.lazy(() => BalancePrice$inboundSchema)),
|
|
10895
|
-
expires_at: nullable(number2())
|
|
10903
|
+
expires_at: nullable(number2()),
|
|
10904
|
+
source: optional3(BalanceSource$inboundSchema),
|
|
10905
|
+
allocation: z34.optional(
|
|
10906
|
+
z34.nullable(z34.lazy(() => Allocation$inboundSchema))
|
|
10907
|
+
)
|
|
10896
10908
|
}),
|
|
10897
10909
|
z34.transform((v) => {
|
|
10898
10910
|
return remap(v, {
|
|
@@ -10929,7 +10941,9 @@ var Balance$inboundSchema = z34.pipe(
|
|
|
10929
10941
|
breakdown: optional3(z34.array(z34.lazy(() => Breakdown$inboundSchema))),
|
|
10930
10942
|
rollovers: optional3(z34.array(z34.lazy(
|
|
10931
10943
|
() => BalanceRollover$inboundSchema
|
|
10932
|
-
)))
|
|
10944
|
+
))),
|
|
10945
|
+
allocated: optional3(number2()),
|
|
10946
|
+
unallocated: optional3(number2())
|
|
10933
10947
|
}),
|
|
10934
10948
|
z34.transform((v) => {
|
|
10935
10949
|
return remap(v, {
|
|
@@ -27986,7 +28000,7 @@ var CustomerAutoTopupInterval1 = {
|
|
|
27986
28000
|
Week: "week",
|
|
27987
28001
|
Month: "month"
|
|
27988
28002
|
};
|
|
27989
|
-
var
|
|
28003
|
+
var CustomerAutoTopupSource = {
|
|
27990
28004
|
Customer: "customer",
|
|
27991
28005
|
Plan: "plan"
|
|
27992
28006
|
};
|
|
@@ -27994,7 +28008,7 @@ var CustomerLimitType = {
|
|
|
27994
28008
|
Absolute: "absolute",
|
|
27995
28009
|
UsagePercentage: "usage_percentage"
|
|
27996
28010
|
};
|
|
27997
|
-
var
|
|
28011
|
+
var CustomerSpendLimitSource = {
|
|
27998
28012
|
Customer: "customer",
|
|
27999
28013
|
Plan: "plan"
|
|
28000
28014
|
};
|
|
@@ -28008,7 +28022,7 @@ var CustomerAnchor = {
|
|
|
28008
28022
|
BillingCycle: "billing_cycle",
|
|
28009
28023
|
Utc: "utc"
|
|
28010
28024
|
};
|
|
28011
|
-
var
|
|
28025
|
+
var CustomerUsageLimitSource = {
|
|
28012
28026
|
Customer: "customer",
|
|
28013
28027
|
Plan: "plan"
|
|
28014
28028
|
};
|
|
@@ -28024,11 +28038,11 @@ var CustomerBasis = {
|
|
|
28024
28038
|
Recurring: "recurring",
|
|
28025
28039
|
UsageLimit: "usage_limit"
|
|
28026
28040
|
};
|
|
28027
|
-
var
|
|
28041
|
+
var CustomerUsageAlertSource = {
|
|
28028
28042
|
Customer: "customer",
|
|
28029
28043
|
Plan: "plan"
|
|
28030
28044
|
};
|
|
28031
|
-
var
|
|
28045
|
+
var CustomerOverageAllowedSource = {
|
|
28032
28046
|
Customer: "customer",
|
|
28033
28047
|
Plan: "plan"
|
|
28034
28048
|
};
|
|
@@ -28121,7 +28135,7 @@ var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
|
28121
28135
|
z58.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
28122
28136
|
z58.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
28123
28137
|
]);
|
|
28124
|
-
var
|
|
28138
|
+
var CustomerAutoTopupSource$inboundSchema = inboundSchema(CustomerAutoTopupSource);
|
|
28125
28139
|
var CustomerAutoTopup$inboundSchema = z58.pipe(
|
|
28126
28140
|
z58.object({
|
|
28127
28141
|
feature_id: string5(),
|
|
@@ -28133,7 +28147,7 @@ var CustomerAutoTopup$inboundSchema = z58.pipe(
|
|
|
28133
28147
|
z58.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
28134
28148
|
])),
|
|
28135
28149
|
invoice_mode: optional3(boolean2()),
|
|
28136
|
-
source: optional3(
|
|
28150
|
+
source: optional3(CustomerAutoTopupSource$inboundSchema)
|
|
28137
28151
|
}),
|
|
28138
28152
|
z58.transform((v) => {
|
|
28139
28153
|
return remap(v, {
|
|
@@ -28144,7 +28158,7 @@ var CustomerAutoTopup$inboundSchema = z58.pipe(
|
|
|
28144
28158
|
})
|
|
28145
28159
|
);
|
|
28146
28160
|
var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
|
|
28147
|
-
var
|
|
28161
|
+
var CustomerSpendLimitSource$inboundSchema = inboundSchema(CustomerSpendLimitSource);
|
|
28148
28162
|
var CustomerSpendLimit$inboundSchema = z58.pipe(
|
|
28149
28163
|
z58.object({
|
|
28150
28164
|
feature_id: optional3(string5()),
|
|
@@ -28152,7 +28166,7 @@ var CustomerSpendLimit$inboundSchema = z58.pipe(
|
|
|
28152
28166
|
limit_type: optional3(CustomerLimitType$inboundSchema),
|
|
28153
28167
|
overage_limit: optional3(number2()),
|
|
28154
28168
|
skip_overage_billing: optional3(boolean2()),
|
|
28155
|
-
source: optional3(
|
|
28169
|
+
source: optional3(CustomerSpendLimitSource$inboundSchema)
|
|
28156
28170
|
}),
|
|
28157
28171
|
z58.transform((v) => {
|
|
28158
28172
|
return remap(v, {
|
|
@@ -28168,7 +28182,7 @@ var CustomerAnchor$inboundSchema = inboundSchema(CustomerAnchor);
|
|
|
28168
28182
|
var CustomerUsageLimitFilter$inboundSchema = z58.object({
|
|
28169
28183
|
properties: z58.record(z58.string(), string5())
|
|
28170
28184
|
});
|
|
28171
|
-
var
|
|
28185
|
+
var CustomerUsageLimitSource$inboundSchema = inboundSchema(CustomerUsageLimitSource);
|
|
28172
28186
|
var CustomerUsageLimit$inboundSchema = z58.pipe(
|
|
28173
28187
|
z58.object({
|
|
28174
28188
|
feature_id: string5(),
|
|
@@ -28180,7 +28194,7 @@ var CustomerUsageLimit$inboundSchema = z58.pipe(
|
|
|
28180
28194
|
z58.lazy(() => CustomerUsageLimitFilter$inboundSchema)
|
|
28181
28195
|
),
|
|
28182
28196
|
usage: optional3(number2()),
|
|
28183
|
-
source: optional3(
|
|
28197
|
+
source: optional3(CustomerUsageLimitSource$inboundSchema)
|
|
28184
28198
|
}),
|
|
28185
28199
|
z58.transform((v) => {
|
|
28186
28200
|
return remap(v, {
|
|
@@ -28193,7 +28207,7 @@ var CustomerBasis$inboundSchema = inboundSchema(CustomerBasis);
|
|
|
28193
28207
|
var CustomerUsageAlertFilter$inboundSchema = z58.object({
|
|
28194
28208
|
properties: z58.record(z58.string(), string5())
|
|
28195
28209
|
});
|
|
28196
|
-
var
|
|
28210
|
+
var CustomerUsageAlertSource$inboundSchema = inboundSchema(CustomerUsageAlertSource);
|
|
28197
28211
|
var CustomerUsageAlert$inboundSchema = z58.pipe(
|
|
28198
28212
|
z58.object({
|
|
28199
28213
|
feature_id: optional3(string5()),
|
|
@@ -28205,7 +28219,7 @@ var CustomerUsageAlert$inboundSchema = z58.pipe(
|
|
|
28205
28219
|
z58.lazy(() => CustomerUsageAlertFilter$inboundSchema)
|
|
28206
28220
|
),
|
|
28207
28221
|
name: optional3(string5()),
|
|
28208
|
-
source: optional3(
|
|
28222
|
+
source: optional3(CustomerUsageAlertSource$inboundSchema)
|
|
28209
28223
|
}),
|
|
28210
28224
|
z58.transform((v) => {
|
|
28211
28225
|
return remap(v, {
|
|
@@ -28214,12 +28228,12 @@ var CustomerUsageAlert$inboundSchema = z58.pipe(
|
|
|
28214
28228
|
});
|
|
28215
28229
|
})
|
|
28216
28230
|
);
|
|
28217
|
-
var
|
|
28231
|
+
var CustomerOverageAllowedSource$inboundSchema = inboundSchema(CustomerOverageAllowedSource);
|
|
28218
28232
|
var CustomerOverageAllowed$inboundSchema = z58.pipe(
|
|
28219
28233
|
z58.object({
|
|
28220
28234
|
feature_id: string5(),
|
|
28221
28235
|
enabled: z58._default(boolean2(), false),
|
|
28222
|
-
source: optional3(
|
|
28236
|
+
source: optional3(CustomerOverageAllowedSource$inboundSchema)
|
|
28223
28237
|
}),
|
|
28224
28238
|
z58.transform((v) => {
|
|
28225
28239
|
return remap(v, {
|
|
@@ -34992,6 +35006,10 @@ var ListBalancesBillingMethod = {
|
|
|
34992
35006
|
Prepaid: "prepaid",
|
|
34993
35007
|
UsageBased: "usage_based"
|
|
34994
35008
|
};
|
|
35009
|
+
var ListBalancesSource = {
|
|
35010
|
+
Customer: "customer",
|
|
35011
|
+
Entity: "entity"
|
|
35012
|
+
};
|
|
34995
35013
|
var ListBalancesListStatus = {
|
|
34996
35014
|
Active: "active",
|
|
34997
35015
|
Expired: "expired"
|
|
@@ -35070,6 +35088,10 @@ var ListBalancesPrice$inboundSchema = z85.pipe(
|
|
|
35070
35088
|
});
|
|
35071
35089
|
})
|
|
35072
35090
|
);
|
|
35091
|
+
var ListBalancesSource$inboundSchema = inboundSchema(ListBalancesSource);
|
|
35092
|
+
var ListBalancesAllocation$inboundSchema = z85.object({
|
|
35093
|
+
amount: number2()
|
|
35094
|
+
});
|
|
35073
35095
|
var ListBalancesListStatus$inboundSchema = inboundSchema(ListBalancesListStatus);
|
|
35074
35096
|
var ListBalancesRollover$inboundSchema = z85.pipe(
|
|
35075
35097
|
z85.object({
|
|
@@ -35095,6 +35117,10 @@ var ListBalancesList$inboundSchema = z85.pipe(
|
|
|
35095
35117
|
reset: nullable(z85.lazy(() => ListBalancesReset$inboundSchema)),
|
|
35096
35118
|
price: nullable(z85.lazy(() => ListBalancesPrice$inboundSchema)),
|
|
35097
35119
|
expires_at: nullable(number2()),
|
|
35120
|
+
source: optional3(ListBalancesSource$inboundSchema),
|
|
35121
|
+
allocation: z85.optional(
|
|
35122
|
+
z85.nullable(z85.lazy(() => ListBalancesAllocation$inboundSchema))
|
|
35123
|
+
),
|
|
35098
35124
|
feature_id: string5(),
|
|
35099
35125
|
status: ListBalancesListStatus$inboundSchema,
|
|
35100
35126
|
rollovers: z85.array(z85.lazy(() => ListBalancesRollover$inboundSchema)),
|
|
@@ -65558,7 +65584,7 @@ var Billing = class extends ClientSDK {
|
|
|
65558
65584
|
* @param noBillingChanges - If true, skips any billing changes for the schedule. (optional)
|
|
65559
65585
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle anchor of the immediate phase to the current time. (optional)
|
|
65560
65586
|
* @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)
|
|
65561
|
-
* @param preserveAddOns - Deprecated and ignored. Active plans the schedule does not
|
|
65587
|
+
* @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)
|
|
65562
65588
|
* @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)
|
|
65563
65589
|
* @param phases - Ordered phase definitions for the schedule.
|
|
65564
65590
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { IAutumnClient } from './client/IAutumnClient.mjs';
|
|
3
|
-
import './params-
|
|
4
|
-
import './plan-
|
|
5
|
-
import './customer-
|
|
6
|
-
import './list-plans-response-
|
|
3
|
+
import './params-vAoGWtk9.mjs';
|
|
4
|
+
import './plan-Ct5TGTnS.mjs';
|
|
5
|
+
import './customer-DfpvnPRk.mjs';
|
|
6
|
+
import './list-plans-response-BzsqJlxN.mjs';
|
|
7
7
|
|
|
8
8
|
type AutumnContextValue = {
|
|
9
9
|
client: IAutumnClient;
|