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
|
@@ -3604,6 +3604,10 @@ var BalanceBillingMethod = {
|
|
|
3604
3604
|
Prepaid: "prepaid",
|
|
3605
3605
|
UsageBased: "usage_based"
|
|
3606
3606
|
};
|
|
3607
|
+
var BalanceSource = {
|
|
3608
|
+
Customer: "customer",
|
|
3609
|
+
Entity: "entity"
|
|
3610
|
+
};
|
|
3607
3611
|
var BalanceType$inboundSchema = inboundSchema(BalanceType);
|
|
3608
3612
|
var BalanceDimensions6$inboundSchema = z15.pipe(
|
|
3609
3613
|
z15.object({
|
|
@@ -3964,6 +3968,10 @@ var BalancePrice$inboundSchema = z15.pipe(
|
|
|
3964
3968
|
});
|
|
3965
3969
|
})
|
|
3966
3970
|
);
|
|
3971
|
+
var BalanceSource$inboundSchema = inboundSchema(BalanceSource);
|
|
3972
|
+
var Allocation$inboundSchema = z15.object({
|
|
3973
|
+
amount: number2()
|
|
3974
|
+
});
|
|
3967
3975
|
var Breakdown$inboundSchema = z15.pipe(
|
|
3968
3976
|
z15.object({
|
|
3969
3977
|
id: z15._default(string5(), ""),
|
|
@@ -3975,7 +3983,11 @@ var Breakdown$inboundSchema = z15.pipe(
|
|
|
3975
3983
|
unlimited: boolean2(),
|
|
3976
3984
|
reset: nullable(z15.lazy(() => BalanceReset$inboundSchema)),
|
|
3977
3985
|
price: nullable(z15.lazy(() => BalancePrice$inboundSchema)),
|
|
3978
|
-
expires_at: nullable(number2())
|
|
3986
|
+
expires_at: nullable(number2()),
|
|
3987
|
+
source: optional3(BalanceSource$inboundSchema),
|
|
3988
|
+
allocation: z15.optional(
|
|
3989
|
+
z15.nullable(z15.lazy(() => Allocation$inboundSchema))
|
|
3990
|
+
)
|
|
3979
3991
|
}),
|
|
3980
3992
|
z15.transform((v) => {
|
|
3981
3993
|
return remap(v, {
|
|
@@ -4012,7 +4024,9 @@ var Balance$inboundSchema = z15.pipe(
|
|
|
4012
4024
|
breakdown: optional3(z15.array(z15.lazy(() => Breakdown$inboundSchema))),
|
|
4013
4025
|
rollovers: optional3(z15.array(z15.lazy(
|
|
4014
4026
|
() => BalanceRollover$inboundSchema
|
|
4015
|
-
)))
|
|
4027
|
+
))),
|
|
4028
|
+
allocated: optional3(number2()),
|
|
4029
|
+
unallocated: optional3(number2())
|
|
4016
4030
|
}),
|
|
4017
4031
|
z15.transform((v) => {
|
|
4018
4032
|
return remap(v, {
|
|
@@ -21069,7 +21083,7 @@ var CustomerAutoTopupInterval1 = {
|
|
|
21069
21083
|
Week: "week",
|
|
21070
21084
|
Month: "month"
|
|
21071
21085
|
};
|
|
21072
|
-
var
|
|
21086
|
+
var CustomerAutoTopupSource = {
|
|
21073
21087
|
Customer: "customer",
|
|
21074
21088
|
Plan: "plan"
|
|
21075
21089
|
};
|
|
@@ -21077,7 +21091,7 @@ var CustomerLimitType = {
|
|
|
21077
21091
|
Absolute: "absolute",
|
|
21078
21092
|
UsagePercentage: "usage_percentage"
|
|
21079
21093
|
};
|
|
21080
|
-
var
|
|
21094
|
+
var CustomerSpendLimitSource = {
|
|
21081
21095
|
Customer: "customer",
|
|
21082
21096
|
Plan: "plan"
|
|
21083
21097
|
};
|
|
@@ -21091,7 +21105,7 @@ var CustomerAnchor = {
|
|
|
21091
21105
|
BillingCycle: "billing_cycle",
|
|
21092
21106
|
Utc: "utc"
|
|
21093
21107
|
};
|
|
21094
|
-
var
|
|
21108
|
+
var CustomerUsageLimitSource = {
|
|
21095
21109
|
Customer: "customer",
|
|
21096
21110
|
Plan: "plan"
|
|
21097
21111
|
};
|
|
@@ -21107,11 +21121,11 @@ var CustomerBasis = {
|
|
|
21107
21121
|
Recurring: "recurring",
|
|
21108
21122
|
UsageLimit: "usage_limit"
|
|
21109
21123
|
};
|
|
21110
|
-
var
|
|
21124
|
+
var CustomerUsageAlertSource = {
|
|
21111
21125
|
Customer: "customer",
|
|
21112
21126
|
Plan: "plan"
|
|
21113
21127
|
};
|
|
21114
|
-
var
|
|
21128
|
+
var CustomerOverageAllowedSource = {
|
|
21115
21129
|
Customer: "customer",
|
|
21116
21130
|
Plan: "plan"
|
|
21117
21131
|
};
|
|
@@ -21204,7 +21218,7 @@ var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
|
21204
21218
|
z39.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
21205
21219
|
z39.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
21206
21220
|
]);
|
|
21207
|
-
var
|
|
21221
|
+
var CustomerAutoTopupSource$inboundSchema = inboundSchema(CustomerAutoTopupSource);
|
|
21208
21222
|
var CustomerAutoTopup$inboundSchema = z39.pipe(
|
|
21209
21223
|
z39.object({
|
|
21210
21224
|
feature_id: string5(),
|
|
@@ -21216,7 +21230,7 @@ var CustomerAutoTopup$inboundSchema = z39.pipe(
|
|
|
21216
21230
|
z39.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
21217
21231
|
])),
|
|
21218
21232
|
invoice_mode: optional3(boolean2()),
|
|
21219
|
-
source: optional3(
|
|
21233
|
+
source: optional3(CustomerAutoTopupSource$inboundSchema)
|
|
21220
21234
|
}),
|
|
21221
21235
|
z39.transform((v) => {
|
|
21222
21236
|
return remap(v, {
|
|
@@ -21227,7 +21241,7 @@ var CustomerAutoTopup$inboundSchema = z39.pipe(
|
|
|
21227
21241
|
})
|
|
21228
21242
|
);
|
|
21229
21243
|
var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
|
|
21230
|
-
var
|
|
21244
|
+
var CustomerSpendLimitSource$inboundSchema = inboundSchema(CustomerSpendLimitSource);
|
|
21231
21245
|
var CustomerSpendLimit$inboundSchema = z39.pipe(
|
|
21232
21246
|
z39.object({
|
|
21233
21247
|
feature_id: optional3(string5()),
|
|
@@ -21235,7 +21249,7 @@ var CustomerSpendLimit$inboundSchema = z39.pipe(
|
|
|
21235
21249
|
limit_type: optional3(CustomerLimitType$inboundSchema),
|
|
21236
21250
|
overage_limit: optional3(number2()),
|
|
21237
21251
|
skip_overage_billing: optional3(boolean2()),
|
|
21238
|
-
source: optional3(
|
|
21252
|
+
source: optional3(CustomerSpendLimitSource$inboundSchema)
|
|
21239
21253
|
}),
|
|
21240
21254
|
z39.transform((v) => {
|
|
21241
21255
|
return remap(v, {
|
|
@@ -21251,7 +21265,7 @@ var CustomerAnchor$inboundSchema = inboundSchema(CustomerAnchor);
|
|
|
21251
21265
|
var CustomerUsageLimitFilter$inboundSchema = z39.object({
|
|
21252
21266
|
properties: z39.record(z39.string(), string5())
|
|
21253
21267
|
});
|
|
21254
|
-
var
|
|
21268
|
+
var CustomerUsageLimitSource$inboundSchema = inboundSchema(CustomerUsageLimitSource);
|
|
21255
21269
|
var CustomerUsageLimit$inboundSchema = z39.pipe(
|
|
21256
21270
|
z39.object({
|
|
21257
21271
|
feature_id: string5(),
|
|
@@ -21263,7 +21277,7 @@ var CustomerUsageLimit$inboundSchema = z39.pipe(
|
|
|
21263
21277
|
z39.lazy(() => CustomerUsageLimitFilter$inboundSchema)
|
|
21264
21278
|
),
|
|
21265
21279
|
usage: optional3(number2()),
|
|
21266
|
-
source: optional3(
|
|
21280
|
+
source: optional3(CustomerUsageLimitSource$inboundSchema)
|
|
21267
21281
|
}),
|
|
21268
21282
|
z39.transform((v) => {
|
|
21269
21283
|
return remap(v, {
|
|
@@ -21276,7 +21290,7 @@ var CustomerBasis$inboundSchema = inboundSchema(CustomerBasis);
|
|
|
21276
21290
|
var CustomerUsageAlertFilter$inboundSchema = z39.object({
|
|
21277
21291
|
properties: z39.record(z39.string(), string5())
|
|
21278
21292
|
});
|
|
21279
|
-
var
|
|
21293
|
+
var CustomerUsageAlertSource$inboundSchema = inboundSchema(CustomerUsageAlertSource);
|
|
21280
21294
|
var CustomerUsageAlert$inboundSchema = z39.pipe(
|
|
21281
21295
|
z39.object({
|
|
21282
21296
|
feature_id: optional3(string5()),
|
|
@@ -21288,7 +21302,7 @@ var CustomerUsageAlert$inboundSchema = z39.pipe(
|
|
|
21288
21302
|
z39.lazy(() => CustomerUsageAlertFilter$inboundSchema)
|
|
21289
21303
|
),
|
|
21290
21304
|
name: optional3(string5()),
|
|
21291
|
-
source: optional3(
|
|
21305
|
+
source: optional3(CustomerUsageAlertSource$inboundSchema)
|
|
21292
21306
|
}),
|
|
21293
21307
|
z39.transform((v) => {
|
|
21294
21308
|
return remap(v, {
|
|
@@ -21297,12 +21311,12 @@ var CustomerUsageAlert$inboundSchema = z39.pipe(
|
|
|
21297
21311
|
});
|
|
21298
21312
|
})
|
|
21299
21313
|
);
|
|
21300
|
-
var
|
|
21314
|
+
var CustomerOverageAllowedSource$inboundSchema = inboundSchema(CustomerOverageAllowedSource);
|
|
21301
21315
|
var CustomerOverageAllowed$inboundSchema = z39.pipe(
|
|
21302
21316
|
z39.object({
|
|
21303
21317
|
feature_id: string5(),
|
|
21304
21318
|
enabled: z39._default(boolean2(), false),
|
|
21305
|
-
source: optional3(
|
|
21319
|
+
source: optional3(CustomerOverageAllowedSource$inboundSchema)
|
|
21306
21320
|
}),
|
|
21307
21321
|
z39.transform((v) => {
|
|
21308
21322
|
return remap(v, {
|
|
@@ -28075,6 +28089,10 @@ var ListBalancesBillingMethod = {
|
|
|
28075
28089
|
Prepaid: "prepaid",
|
|
28076
28090
|
UsageBased: "usage_based"
|
|
28077
28091
|
};
|
|
28092
|
+
var ListBalancesSource = {
|
|
28093
|
+
Customer: "customer",
|
|
28094
|
+
Entity: "entity"
|
|
28095
|
+
};
|
|
28078
28096
|
var ListBalancesListStatus = {
|
|
28079
28097
|
Active: "active",
|
|
28080
28098
|
Expired: "expired"
|
|
@@ -28153,6 +28171,10 @@ var ListBalancesPrice$inboundSchema = z66.pipe(
|
|
|
28153
28171
|
});
|
|
28154
28172
|
})
|
|
28155
28173
|
);
|
|
28174
|
+
var ListBalancesSource$inboundSchema = inboundSchema(ListBalancesSource);
|
|
28175
|
+
var ListBalancesAllocation$inboundSchema = z66.object({
|
|
28176
|
+
amount: number2()
|
|
28177
|
+
});
|
|
28156
28178
|
var ListBalancesListStatus$inboundSchema = inboundSchema(ListBalancesListStatus);
|
|
28157
28179
|
var ListBalancesRollover$inboundSchema = z66.pipe(
|
|
28158
28180
|
z66.object({
|
|
@@ -28178,6 +28200,10 @@ var ListBalancesList$inboundSchema = z66.pipe(
|
|
|
28178
28200
|
reset: nullable(z66.lazy(() => ListBalancesReset$inboundSchema)),
|
|
28179
28201
|
price: nullable(z66.lazy(() => ListBalancesPrice$inboundSchema)),
|
|
28180
28202
|
expires_at: nullable(number2()),
|
|
28203
|
+
source: optional3(ListBalancesSource$inboundSchema),
|
|
28204
|
+
allocation: z66.optional(
|
|
28205
|
+
z66.nullable(z66.lazy(() => ListBalancesAllocation$inboundSchema))
|
|
28206
|
+
),
|
|
28181
28207
|
feature_id: string5(),
|
|
28182
28208
|
status: ListBalancesListStatus$inboundSchema,
|
|
28183
28209
|
rollovers: z66.array(z66.lazy(() => ListBalancesRollover$inboundSchema)),
|
|
@@ -58669,7 +58695,7 @@ var Billing = class extends ClientSDK {
|
|
|
58669
58695
|
* @param noBillingChanges - If true, skips any billing changes for the schedule. (optional)
|
|
58670
58696
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle anchor of the immediate phase to the current time. (optional)
|
|
58671
58697
|
* @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)
|
|
58672
|
-
* @param preserveAddOns - Deprecated and ignored. Active plans the schedule does not
|
|
58698
|
+
* @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)
|
|
58673
58699
|
* @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)
|
|
58674
58700
|
* @param phases - Ordered phase definitions for the schedule.
|
|
58675
58701
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.mjs';
|
|
2
2
|
import '../../authTypes-TPWTIfcM.mjs';
|
|
3
|
-
import '../../routeTypes-
|
|
3
|
+
import '../../routeTypes-DAI_E67X.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.mjs';
|
|
6
6
|
import '../types/responseTypes.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.js';
|
|
2
2
|
import '../../authTypes-TPWTIfcM.js';
|
|
3
|
-
import '../../routeTypes-
|
|
3
|
+
import '../../routeTypes-4TatmvQY.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.js';
|
|
6
6
|
import '../types/responseTypes.js';
|
|
@@ -3687,6 +3687,10 @@ var BalanceBillingMethod = {
|
|
|
3687
3687
|
Prepaid: "prepaid",
|
|
3688
3688
|
UsageBased: "usage_based"
|
|
3689
3689
|
};
|
|
3690
|
+
var BalanceSource = {
|
|
3691
|
+
Customer: "customer",
|
|
3692
|
+
Entity: "entity"
|
|
3693
|
+
};
|
|
3690
3694
|
var BalanceType$inboundSchema = inboundSchema(BalanceType);
|
|
3691
3695
|
var BalanceDimensions6$inboundSchema = z15.pipe(
|
|
3692
3696
|
z15.object({
|
|
@@ -4047,6 +4051,10 @@ var BalancePrice$inboundSchema = z15.pipe(
|
|
|
4047
4051
|
});
|
|
4048
4052
|
})
|
|
4049
4053
|
);
|
|
4054
|
+
var BalanceSource$inboundSchema = inboundSchema(BalanceSource);
|
|
4055
|
+
var Allocation$inboundSchema = z15.object({
|
|
4056
|
+
amount: number2()
|
|
4057
|
+
});
|
|
4050
4058
|
var Breakdown$inboundSchema = z15.pipe(
|
|
4051
4059
|
z15.object({
|
|
4052
4060
|
id: z15._default(string5(), ""),
|
|
@@ -4058,7 +4066,11 @@ var Breakdown$inboundSchema = z15.pipe(
|
|
|
4058
4066
|
unlimited: boolean2(),
|
|
4059
4067
|
reset: nullable(z15.lazy(() => BalanceReset$inboundSchema)),
|
|
4060
4068
|
price: nullable(z15.lazy(() => BalancePrice$inboundSchema)),
|
|
4061
|
-
expires_at: nullable(number2())
|
|
4069
|
+
expires_at: nullable(number2()),
|
|
4070
|
+
source: optional3(BalanceSource$inboundSchema),
|
|
4071
|
+
allocation: z15.optional(
|
|
4072
|
+
z15.nullable(z15.lazy(() => Allocation$inboundSchema))
|
|
4073
|
+
)
|
|
4062
4074
|
}),
|
|
4063
4075
|
z15.transform((v) => {
|
|
4064
4076
|
return remap(v, {
|
|
@@ -4095,7 +4107,9 @@ var Balance$inboundSchema = z15.pipe(
|
|
|
4095
4107
|
breakdown: optional3(z15.array(z15.lazy(() => Breakdown$inboundSchema))),
|
|
4096
4108
|
rollovers: optional3(z15.array(z15.lazy(
|
|
4097
4109
|
() => BalanceRollover$inboundSchema
|
|
4098
|
-
)))
|
|
4110
|
+
))),
|
|
4111
|
+
allocated: optional3(number2()),
|
|
4112
|
+
unallocated: optional3(number2())
|
|
4099
4113
|
}),
|
|
4100
4114
|
z15.transform((v) => {
|
|
4101
4115
|
return remap(v, {
|
|
@@ -21152,7 +21166,7 @@ var CustomerAutoTopupInterval1 = {
|
|
|
21152
21166
|
Week: "week",
|
|
21153
21167
|
Month: "month"
|
|
21154
21168
|
};
|
|
21155
|
-
var
|
|
21169
|
+
var CustomerAutoTopupSource = {
|
|
21156
21170
|
Customer: "customer",
|
|
21157
21171
|
Plan: "plan"
|
|
21158
21172
|
};
|
|
@@ -21160,7 +21174,7 @@ var CustomerLimitType = {
|
|
|
21160
21174
|
Absolute: "absolute",
|
|
21161
21175
|
UsagePercentage: "usage_percentage"
|
|
21162
21176
|
};
|
|
21163
|
-
var
|
|
21177
|
+
var CustomerSpendLimitSource = {
|
|
21164
21178
|
Customer: "customer",
|
|
21165
21179
|
Plan: "plan"
|
|
21166
21180
|
};
|
|
@@ -21174,7 +21188,7 @@ var CustomerAnchor = {
|
|
|
21174
21188
|
BillingCycle: "billing_cycle",
|
|
21175
21189
|
Utc: "utc"
|
|
21176
21190
|
};
|
|
21177
|
-
var
|
|
21191
|
+
var CustomerUsageLimitSource = {
|
|
21178
21192
|
Customer: "customer",
|
|
21179
21193
|
Plan: "plan"
|
|
21180
21194
|
};
|
|
@@ -21190,11 +21204,11 @@ var CustomerBasis = {
|
|
|
21190
21204
|
Recurring: "recurring",
|
|
21191
21205
|
UsageLimit: "usage_limit"
|
|
21192
21206
|
};
|
|
21193
|
-
var
|
|
21207
|
+
var CustomerUsageAlertSource = {
|
|
21194
21208
|
Customer: "customer",
|
|
21195
21209
|
Plan: "plan"
|
|
21196
21210
|
};
|
|
21197
|
-
var
|
|
21211
|
+
var CustomerOverageAllowedSource = {
|
|
21198
21212
|
Customer: "customer",
|
|
21199
21213
|
Plan: "plan"
|
|
21200
21214
|
};
|
|
@@ -21287,7 +21301,7 @@ var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
|
21287
21301
|
z39.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
21288
21302
|
z39.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
21289
21303
|
]);
|
|
21290
|
-
var
|
|
21304
|
+
var CustomerAutoTopupSource$inboundSchema = inboundSchema(CustomerAutoTopupSource);
|
|
21291
21305
|
var CustomerAutoTopup$inboundSchema = z39.pipe(
|
|
21292
21306
|
z39.object({
|
|
21293
21307
|
feature_id: string5(),
|
|
@@ -21299,7 +21313,7 @@ var CustomerAutoTopup$inboundSchema = z39.pipe(
|
|
|
21299
21313
|
z39.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
21300
21314
|
])),
|
|
21301
21315
|
invoice_mode: optional3(boolean2()),
|
|
21302
|
-
source: optional3(
|
|
21316
|
+
source: optional3(CustomerAutoTopupSource$inboundSchema)
|
|
21303
21317
|
}),
|
|
21304
21318
|
z39.transform((v) => {
|
|
21305
21319
|
return remap(v, {
|
|
@@ -21310,7 +21324,7 @@ var CustomerAutoTopup$inboundSchema = z39.pipe(
|
|
|
21310
21324
|
})
|
|
21311
21325
|
);
|
|
21312
21326
|
var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
|
|
21313
|
-
var
|
|
21327
|
+
var CustomerSpendLimitSource$inboundSchema = inboundSchema(CustomerSpendLimitSource);
|
|
21314
21328
|
var CustomerSpendLimit$inboundSchema = z39.pipe(
|
|
21315
21329
|
z39.object({
|
|
21316
21330
|
feature_id: optional3(string5()),
|
|
@@ -21318,7 +21332,7 @@ var CustomerSpendLimit$inboundSchema = z39.pipe(
|
|
|
21318
21332
|
limit_type: optional3(CustomerLimitType$inboundSchema),
|
|
21319
21333
|
overage_limit: optional3(number2()),
|
|
21320
21334
|
skip_overage_billing: optional3(boolean2()),
|
|
21321
|
-
source: optional3(
|
|
21335
|
+
source: optional3(CustomerSpendLimitSource$inboundSchema)
|
|
21322
21336
|
}),
|
|
21323
21337
|
z39.transform((v) => {
|
|
21324
21338
|
return remap(v, {
|
|
@@ -21334,7 +21348,7 @@ var CustomerAnchor$inboundSchema = inboundSchema(CustomerAnchor);
|
|
|
21334
21348
|
var CustomerUsageLimitFilter$inboundSchema = z39.object({
|
|
21335
21349
|
properties: z39.record(z39.string(), string5())
|
|
21336
21350
|
});
|
|
21337
|
-
var
|
|
21351
|
+
var CustomerUsageLimitSource$inboundSchema = inboundSchema(CustomerUsageLimitSource);
|
|
21338
21352
|
var CustomerUsageLimit$inboundSchema = z39.pipe(
|
|
21339
21353
|
z39.object({
|
|
21340
21354
|
feature_id: string5(),
|
|
@@ -21346,7 +21360,7 @@ var CustomerUsageLimit$inboundSchema = z39.pipe(
|
|
|
21346
21360
|
z39.lazy(() => CustomerUsageLimitFilter$inboundSchema)
|
|
21347
21361
|
),
|
|
21348
21362
|
usage: optional3(number2()),
|
|
21349
|
-
source: optional3(
|
|
21363
|
+
source: optional3(CustomerUsageLimitSource$inboundSchema)
|
|
21350
21364
|
}),
|
|
21351
21365
|
z39.transform((v) => {
|
|
21352
21366
|
return remap(v, {
|
|
@@ -21359,7 +21373,7 @@ var CustomerBasis$inboundSchema = inboundSchema(CustomerBasis);
|
|
|
21359
21373
|
var CustomerUsageAlertFilter$inboundSchema = z39.object({
|
|
21360
21374
|
properties: z39.record(z39.string(), string5())
|
|
21361
21375
|
});
|
|
21362
|
-
var
|
|
21376
|
+
var CustomerUsageAlertSource$inboundSchema = inboundSchema(CustomerUsageAlertSource);
|
|
21363
21377
|
var CustomerUsageAlert$inboundSchema = z39.pipe(
|
|
21364
21378
|
z39.object({
|
|
21365
21379
|
feature_id: optional3(string5()),
|
|
@@ -21371,7 +21385,7 @@ var CustomerUsageAlert$inboundSchema = z39.pipe(
|
|
|
21371
21385
|
z39.lazy(() => CustomerUsageAlertFilter$inboundSchema)
|
|
21372
21386
|
),
|
|
21373
21387
|
name: optional3(string5()),
|
|
21374
|
-
source: optional3(
|
|
21388
|
+
source: optional3(CustomerUsageAlertSource$inboundSchema)
|
|
21375
21389
|
}),
|
|
21376
21390
|
z39.transform((v) => {
|
|
21377
21391
|
return remap(v, {
|
|
@@ -21380,12 +21394,12 @@ var CustomerUsageAlert$inboundSchema = z39.pipe(
|
|
|
21380
21394
|
});
|
|
21381
21395
|
})
|
|
21382
21396
|
);
|
|
21383
|
-
var
|
|
21397
|
+
var CustomerOverageAllowedSource$inboundSchema = inboundSchema(CustomerOverageAllowedSource);
|
|
21384
21398
|
var CustomerOverageAllowed$inboundSchema = z39.pipe(
|
|
21385
21399
|
z39.object({
|
|
21386
21400
|
feature_id: string5(),
|
|
21387
21401
|
enabled: z39._default(boolean2(), false),
|
|
21388
|
-
source: optional3(
|
|
21402
|
+
source: optional3(CustomerOverageAllowedSource$inboundSchema)
|
|
21389
21403
|
}),
|
|
21390
21404
|
z39.transform((v) => {
|
|
21391
21405
|
return remap(v, {
|
|
@@ -28158,6 +28172,10 @@ var ListBalancesBillingMethod = {
|
|
|
28158
28172
|
Prepaid: "prepaid",
|
|
28159
28173
|
UsageBased: "usage_based"
|
|
28160
28174
|
};
|
|
28175
|
+
var ListBalancesSource = {
|
|
28176
|
+
Customer: "customer",
|
|
28177
|
+
Entity: "entity"
|
|
28178
|
+
};
|
|
28161
28179
|
var ListBalancesListStatus = {
|
|
28162
28180
|
Active: "active",
|
|
28163
28181
|
Expired: "expired"
|
|
@@ -28236,6 +28254,10 @@ var ListBalancesPrice$inboundSchema = z66.pipe(
|
|
|
28236
28254
|
});
|
|
28237
28255
|
})
|
|
28238
28256
|
);
|
|
28257
|
+
var ListBalancesSource$inboundSchema = inboundSchema(ListBalancesSource);
|
|
28258
|
+
var ListBalancesAllocation$inboundSchema = z66.object({
|
|
28259
|
+
amount: number2()
|
|
28260
|
+
});
|
|
28239
28261
|
var ListBalancesListStatus$inboundSchema = inboundSchema(ListBalancesListStatus);
|
|
28240
28262
|
var ListBalancesRollover$inboundSchema = z66.pipe(
|
|
28241
28263
|
z66.object({
|
|
@@ -28261,6 +28283,10 @@ var ListBalancesList$inboundSchema = z66.pipe(
|
|
|
28261
28283
|
reset: nullable(z66.lazy(() => ListBalancesReset$inboundSchema)),
|
|
28262
28284
|
price: nullable(z66.lazy(() => ListBalancesPrice$inboundSchema)),
|
|
28263
28285
|
expires_at: nullable(number2()),
|
|
28286
|
+
source: optional3(ListBalancesSource$inboundSchema),
|
|
28287
|
+
allocation: z66.optional(
|
|
28288
|
+
z66.nullable(z66.lazy(() => ListBalancesAllocation$inboundSchema))
|
|
28289
|
+
),
|
|
28264
28290
|
feature_id: string5(),
|
|
28265
28291
|
status: ListBalancesListStatus$inboundSchema,
|
|
28266
28292
|
rollovers: z66.array(z66.lazy(() => ListBalancesRollover$inboundSchema)),
|
|
@@ -58724,7 +58750,7 @@ var Billing = class extends ClientSDK {
|
|
|
58724
58750
|
* @param noBillingChanges - If true, skips any billing changes for the schedule. (optional)
|
|
58725
58751
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle anchor of the immediate phase to the current time. (optional)
|
|
58726
58752
|
* @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)
|
|
58727
|
-
* @param preserveAddOns - Deprecated and ignored. Active plans the schedule does not
|
|
58753
|
+
* @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)
|
|
58728
58754
|
* @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)
|
|
58729
58755
|
* @param phases - Ordered phase definitions for the schedule.
|
|
58730
58756
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCoreHandler
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-ZFFEG27F.mjs";
|
|
4
|
+
import "../../chunk-KSYN5FLV.mjs";
|
|
5
5
|
import "../../chunk-MOHYGUMA.mjs";
|
|
6
6
|
import "../../chunk-TBQ27LIK.mjs";
|
|
7
7
|
import "../../chunk-J44WR3QZ.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-
|
|
1
|
+
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-DAI_E67X.mjs';
|
|
2
2
|
import { A as AuthResult } from '../../authTypes-TPWTIfcM.mjs';
|
|
3
3
|
import { BackendResult } from '../types/responseTypes.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-
|
|
1
|
+
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-4TatmvQY.js';
|
|
2
2
|
import { A as AuthResult } from '../../authTypes-TPWTIfcM.js';
|
|
3
3
|
import { BackendResult } from '../types/responseTypes.js';
|
|
4
4
|
import 'zod/v4';
|