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
|
@@ -3690,6 +3690,10 @@ var BalanceBillingMethod = {
|
|
|
3690
3690
|
Prepaid: "prepaid",
|
|
3691
3691
|
UsageBased: "usage_based"
|
|
3692
3692
|
};
|
|
3693
|
+
var BalanceSource = {
|
|
3694
|
+
Customer: "customer",
|
|
3695
|
+
Entity: "entity"
|
|
3696
|
+
};
|
|
3693
3697
|
var BalanceType$inboundSchema = inboundSchema(BalanceType);
|
|
3694
3698
|
var BalanceDimensions6$inboundSchema = z15.pipe(
|
|
3695
3699
|
z15.object({
|
|
@@ -4050,6 +4054,10 @@ var BalancePrice$inboundSchema = z15.pipe(
|
|
|
4050
4054
|
});
|
|
4051
4055
|
})
|
|
4052
4056
|
);
|
|
4057
|
+
var BalanceSource$inboundSchema = inboundSchema(BalanceSource);
|
|
4058
|
+
var Allocation$inboundSchema = z15.object({
|
|
4059
|
+
amount: number2()
|
|
4060
|
+
});
|
|
4053
4061
|
var Breakdown$inboundSchema = z15.pipe(
|
|
4054
4062
|
z15.object({
|
|
4055
4063
|
id: z15._default(string5(), ""),
|
|
@@ -4061,7 +4069,11 @@ var Breakdown$inboundSchema = z15.pipe(
|
|
|
4061
4069
|
unlimited: boolean2(),
|
|
4062
4070
|
reset: nullable(z15.lazy(() => BalanceReset$inboundSchema)),
|
|
4063
4071
|
price: nullable(z15.lazy(() => BalancePrice$inboundSchema)),
|
|
4064
|
-
expires_at: nullable(number2())
|
|
4072
|
+
expires_at: nullable(number2()),
|
|
4073
|
+
source: optional3(BalanceSource$inboundSchema),
|
|
4074
|
+
allocation: z15.optional(
|
|
4075
|
+
z15.nullable(z15.lazy(() => Allocation$inboundSchema))
|
|
4076
|
+
)
|
|
4065
4077
|
}),
|
|
4066
4078
|
z15.transform((v) => {
|
|
4067
4079
|
return remap(v, {
|
|
@@ -4098,7 +4110,9 @@ var Balance$inboundSchema = z15.pipe(
|
|
|
4098
4110
|
breakdown: optional3(z15.array(z15.lazy(() => Breakdown$inboundSchema))),
|
|
4099
4111
|
rollovers: optional3(z15.array(z15.lazy(
|
|
4100
4112
|
() => BalanceRollover$inboundSchema
|
|
4101
|
-
)))
|
|
4113
|
+
))),
|
|
4114
|
+
allocated: optional3(number2()),
|
|
4115
|
+
unallocated: optional3(number2())
|
|
4102
4116
|
}),
|
|
4103
4117
|
z15.transform((v) => {
|
|
4104
4118
|
return remap(v, {
|
|
@@ -21155,7 +21169,7 @@ var CustomerAutoTopupInterval1 = {
|
|
|
21155
21169
|
Week: "week",
|
|
21156
21170
|
Month: "month"
|
|
21157
21171
|
};
|
|
21158
|
-
var
|
|
21172
|
+
var CustomerAutoTopupSource = {
|
|
21159
21173
|
Customer: "customer",
|
|
21160
21174
|
Plan: "plan"
|
|
21161
21175
|
};
|
|
@@ -21163,7 +21177,7 @@ var CustomerLimitType = {
|
|
|
21163
21177
|
Absolute: "absolute",
|
|
21164
21178
|
UsagePercentage: "usage_percentage"
|
|
21165
21179
|
};
|
|
21166
|
-
var
|
|
21180
|
+
var CustomerSpendLimitSource = {
|
|
21167
21181
|
Customer: "customer",
|
|
21168
21182
|
Plan: "plan"
|
|
21169
21183
|
};
|
|
@@ -21177,7 +21191,7 @@ var CustomerAnchor = {
|
|
|
21177
21191
|
BillingCycle: "billing_cycle",
|
|
21178
21192
|
Utc: "utc"
|
|
21179
21193
|
};
|
|
21180
|
-
var
|
|
21194
|
+
var CustomerUsageLimitSource = {
|
|
21181
21195
|
Customer: "customer",
|
|
21182
21196
|
Plan: "plan"
|
|
21183
21197
|
};
|
|
@@ -21193,11 +21207,11 @@ var CustomerBasis = {
|
|
|
21193
21207
|
Recurring: "recurring",
|
|
21194
21208
|
UsageLimit: "usage_limit"
|
|
21195
21209
|
};
|
|
21196
|
-
var
|
|
21210
|
+
var CustomerUsageAlertSource = {
|
|
21197
21211
|
Customer: "customer",
|
|
21198
21212
|
Plan: "plan"
|
|
21199
21213
|
};
|
|
21200
|
-
var
|
|
21214
|
+
var CustomerOverageAllowedSource = {
|
|
21201
21215
|
Customer: "customer",
|
|
21202
21216
|
Plan: "plan"
|
|
21203
21217
|
};
|
|
@@ -21290,7 +21304,7 @@ var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
|
21290
21304
|
z39.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
21291
21305
|
z39.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
21292
21306
|
]);
|
|
21293
|
-
var
|
|
21307
|
+
var CustomerAutoTopupSource$inboundSchema = inboundSchema(CustomerAutoTopupSource);
|
|
21294
21308
|
var CustomerAutoTopup$inboundSchema = z39.pipe(
|
|
21295
21309
|
z39.object({
|
|
21296
21310
|
feature_id: string5(),
|
|
@@ -21302,7 +21316,7 @@ var CustomerAutoTopup$inboundSchema = z39.pipe(
|
|
|
21302
21316
|
z39.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
21303
21317
|
])),
|
|
21304
21318
|
invoice_mode: optional3(boolean2()),
|
|
21305
|
-
source: optional3(
|
|
21319
|
+
source: optional3(CustomerAutoTopupSource$inboundSchema)
|
|
21306
21320
|
}),
|
|
21307
21321
|
z39.transform((v) => {
|
|
21308
21322
|
return remap(v, {
|
|
@@ -21313,7 +21327,7 @@ var CustomerAutoTopup$inboundSchema = z39.pipe(
|
|
|
21313
21327
|
})
|
|
21314
21328
|
);
|
|
21315
21329
|
var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
|
|
21316
|
-
var
|
|
21330
|
+
var CustomerSpendLimitSource$inboundSchema = inboundSchema(CustomerSpendLimitSource);
|
|
21317
21331
|
var CustomerSpendLimit$inboundSchema = z39.pipe(
|
|
21318
21332
|
z39.object({
|
|
21319
21333
|
feature_id: optional3(string5()),
|
|
@@ -21321,7 +21335,7 @@ var CustomerSpendLimit$inboundSchema = z39.pipe(
|
|
|
21321
21335
|
limit_type: optional3(CustomerLimitType$inboundSchema),
|
|
21322
21336
|
overage_limit: optional3(number2()),
|
|
21323
21337
|
skip_overage_billing: optional3(boolean2()),
|
|
21324
|
-
source: optional3(
|
|
21338
|
+
source: optional3(CustomerSpendLimitSource$inboundSchema)
|
|
21325
21339
|
}),
|
|
21326
21340
|
z39.transform((v) => {
|
|
21327
21341
|
return remap(v, {
|
|
@@ -21337,7 +21351,7 @@ var CustomerAnchor$inboundSchema = inboundSchema(CustomerAnchor);
|
|
|
21337
21351
|
var CustomerUsageLimitFilter$inboundSchema = z39.object({
|
|
21338
21352
|
properties: z39.record(z39.string(), string5())
|
|
21339
21353
|
});
|
|
21340
|
-
var
|
|
21354
|
+
var CustomerUsageLimitSource$inboundSchema = inboundSchema(CustomerUsageLimitSource);
|
|
21341
21355
|
var CustomerUsageLimit$inboundSchema = z39.pipe(
|
|
21342
21356
|
z39.object({
|
|
21343
21357
|
feature_id: string5(),
|
|
@@ -21349,7 +21363,7 @@ var CustomerUsageLimit$inboundSchema = z39.pipe(
|
|
|
21349
21363
|
z39.lazy(() => CustomerUsageLimitFilter$inboundSchema)
|
|
21350
21364
|
),
|
|
21351
21365
|
usage: optional3(number2()),
|
|
21352
|
-
source: optional3(
|
|
21366
|
+
source: optional3(CustomerUsageLimitSource$inboundSchema)
|
|
21353
21367
|
}),
|
|
21354
21368
|
z39.transform((v) => {
|
|
21355
21369
|
return remap(v, {
|
|
@@ -21362,7 +21376,7 @@ var CustomerBasis$inboundSchema = inboundSchema(CustomerBasis);
|
|
|
21362
21376
|
var CustomerUsageAlertFilter$inboundSchema = z39.object({
|
|
21363
21377
|
properties: z39.record(z39.string(), string5())
|
|
21364
21378
|
});
|
|
21365
|
-
var
|
|
21379
|
+
var CustomerUsageAlertSource$inboundSchema = inboundSchema(CustomerUsageAlertSource);
|
|
21366
21380
|
var CustomerUsageAlert$inboundSchema = z39.pipe(
|
|
21367
21381
|
z39.object({
|
|
21368
21382
|
feature_id: optional3(string5()),
|
|
@@ -21374,7 +21388,7 @@ var CustomerUsageAlert$inboundSchema = z39.pipe(
|
|
|
21374
21388
|
z39.lazy(() => CustomerUsageAlertFilter$inboundSchema)
|
|
21375
21389
|
),
|
|
21376
21390
|
name: optional3(string5()),
|
|
21377
|
-
source: optional3(
|
|
21391
|
+
source: optional3(CustomerUsageAlertSource$inboundSchema)
|
|
21378
21392
|
}),
|
|
21379
21393
|
z39.transform((v) => {
|
|
21380
21394
|
return remap(v, {
|
|
@@ -21383,12 +21397,12 @@ var CustomerUsageAlert$inboundSchema = z39.pipe(
|
|
|
21383
21397
|
});
|
|
21384
21398
|
})
|
|
21385
21399
|
);
|
|
21386
|
-
var
|
|
21400
|
+
var CustomerOverageAllowedSource$inboundSchema = inboundSchema(CustomerOverageAllowedSource);
|
|
21387
21401
|
var CustomerOverageAllowed$inboundSchema = z39.pipe(
|
|
21388
21402
|
z39.object({
|
|
21389
21403
|
feature_id: string5(),
|
|
21390
21404
|
enabled: z39._default(boolean2(), false),
|
|
21391
|
-
source: optional3(
|
|
21405
|
+
source: optional3(CustomerOverageAllowedSource$inboundSchema)
|
|
21392
21406
|
}),
|
|
21393
21407
|
z39.transform((v) => {
|
|
21394
21408
|
return remap(v, {
|
|
@@ -28161,6 +28175,10 @@ var ListBalancesBillingMethod = {
|
|
|
28161
28175
|
Prepaid: "prepaid",
|
|
28162
28176
|
UsageBased: "usage_based"
|
|
28163
28177
|
};
|
|
28178
|
+
var ListBalancesSource = {
|
|
28179
|
+
Customer: "customer",
|
|
28180
|
+
Entity: "entity"
|
|
28181
|
+
};
|
|
28164
28182
|
var ListBalancesListStatus = {
|
|
28165
28183
|
Active: "active",
|
|
28166
28184
|
Expired: "expired"
|
|
@@ -28239,6 +28257,10 @@ var ListBalancesPrice$inboundSchema = z66.pipe(
|
|
|
28239
28257
|
});
|
|
28240
28258
|
})
|
|
28241
28259
|
);
|
|
28260
|
+
var ListBalancesSource$inboundSchema = inboundSchema(ListBalancesSource);
|
|
28261
|
+
var ListBalancesAllocation$inboundSchema = z66.object({
|
|
28262
|
+
amount: number2()
|
|
28263
|
+
});
|
|
28242
28264
|
var ListBalancesListStatus$inboundSchema = inboundSchema(ListBalancesListStatus);
|
|
28243
28265
|
var ListBalancesRollover$inboundSchema = z66.pipe(
|
|
28244
28266
|
z66.object({
|
|
@@ -28264,6 +28286,10 @@ var ListBalancesList$inboundSchema = z66.pipe(
|
|
|
28264
28286
|
reset: nullable(z66.lazy(() => ListBalancesReset$inboundSchema)),
|
|
28265
28287
|
price: nullable(z66.lazy(() => ListBalancesPrice$inboundSchema)),
|
|
28266
28288
|
expires_at: nullable(number2()),
|
|
28289
|
+
source: optional3(ListBalancesSource$inboundSchema),
|
|
28290
|
+
allocation: z66.optional(
|
|
28291
|
+
z66.nullable(z66.lazy(() => ListBalancesAllocation$inboundSchema))
|
|
28292
|
+
),
|
|
28267
28293
|
feature_id: string5(),
|
|
28268
28294
|
status: ListBalancesListStatus$inboundSchema,
|
|
28269
28295
|
rollovers: z66.array(z66.lazy(() => ListBalancesRollover$inboundSchema)),
|
|
@@ -58727,7 +58753,7 @@ var Billing = class extends ClientSDK {
|
|
|
58727
58753
|
* @param noBillingChanges - If true, skips any billing changes for the schedule. (optional)
|
|
58728
58754
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle anchor of the immediate phase to the current time. (optional)
|
|
58729
58755
|
* @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)
|
|
58730
|
-
* @param preserveAddOns - Deprecated and ignored. Active plans the schedule does not
|
|
58756
|
+
* @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)
|
|
58731
58757
|
* @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)
|
|
58732
58758
|
* @param phases - Ordered phase definitions for the schedule.
|
|
58733
58759
|
*
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-NOJP6FIN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
autumnHandler as autumnHandler2
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-C4IENXIG.mjs";
|
|
7
7
|
import {
|
|
8
8
|
autumnHandler as autumnHandler3
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-DZBBXOKT.mjs";
|
|
10
10
|
import {
|
|
11
11
|
autumnHandler as autumnHandler4
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-ESSDMDXJ.mjs";
|
|
13
13
|
import "../chunk-WYDGEDEU.mjs";
|
|
14
14
|
import "../chunk-VXND2UDT.mjs";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-6RGLO6FV.mjs";
|
|
16
|
+
import "../chunk-ZFFEG27F.mjs";
|
|
17
|
+
import "../chunk-KSYN5FLV.mjs";
|
|
18
18
|
import "../chunk-MOHYGUMA.mjs";
|
|
19
19
|
import "../chunk-TBQ27LIK.mjs";
|
|
20
20
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -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
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ESSDMDXJ.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-6RGLO6FV.mjs";
|
|
7
|
+
import "../chunk-ZFFEG27F.mjs";
|
|
8
|
+
import "../chunk-KSYN5FLV.mjs";
|
|
9
9
|
import "../chunk-MOHYGUMA.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|