autumn-js 1.2.2 → 1.2.4
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.d.mts +1 -1
- package/dist/backend/adapters/express.d.ts +1 -1
- package/dist/backend/adapters/express.js +361 -43
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.d.mts +1 -1
- package/dist/backend/adapters/fetch.d.ts +1 -1
- package/dist/backend/adapters/fetch.js +361 -43
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.d.mts +1 -1
- package/dist/backend/adapters/hono.d.ts +1 -1
- package/dist/backend/adapters/hono.js +361 -43
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.d.mts +1 -1
- package/dist/backend/adapters/index.d.ts +1 -1
- package/dist/backend/adapters/index.js +361 -43
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.d.mts +1 -1
- package/dist/backend/adapters/next.d.ts +1 -1
- package/dist/backend/adapters/next.js +361 -43
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{authTypes-BCoyMOAj.d.mts → authTypes-Bdpu8A6G.d.mts} +18 -0
- package/dist/backend/{authTypes-BCoyMOAj.d.ts → authTypes-Bdpu8A6G.d.ts} +18 -0
- package/dist/backend/{chunk-XU4OGYDV.mjs → chunk-3RN6TO3T.mjs} +60 -7
- package/dist/backend/{chunk-3QNAZFQH.mjs → chunk-AA2HLIP7.mjs} +2 -2
- package/dist/backend/{chunk-SX3CNUF5.mjs → chunk-AIKOHUUL.mjs} +1 -1
- package/dist/backend/{chunk-6BVI5XZX.mjs → chunk-BGGTI77T.mjs} +301 -36
- package/dist/backend/{chunk-OB47KG2H.mjs → chunk-MHFVVQCC.mjs} +1 -1
- package/dist/backend/{chunk-GLPHS5KF.mjs → chunk-OZRCCZTP.mjs} +2 -2
- package/dist/backend/{chunk-GENKYO6B.mjs → chunk-SCDE7Y52.mjs} +1 -1
- package/dist/backend/{chunk-C5ZDQJPP.mjs → chunk-UUMOHEAD.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +2 -2
- package/dist/backend/core/handlers/coreHandler.d.ts +2 -2
- package/dist/backend/core/handlers/coreHandler.js +361 -43
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- package/dist/backend/core/handlers/executeRoute.d.mts +2 -2
- package/dist/backend/core/handlers/executeRoute.d.ts +2 -2
- package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +361 -43
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- package/dist/backend/core/handlers/index.d.mts +2 -2
- package/dist/backend/core/handlers/index.d.ts +2 -2
- package/dist/backend/core/handlers/index.js +361 -43
- package/dist/backend/core/handlers/index.mjs +4 -4
- package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
- package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
- package/dist/backend/core/index.d.mts +2 -2
- package/dist/backend/core/index.d.ts +2 -2
- package/dist/backend/core/index.js +361 -43
- package/dist/backend/core/index.mjs +4 -4
- package/dist/backend/core/routes/index.d.mts +2 -2
- package/dist/backend/core/routes/index.d.ts +2 -2
- package/dist/backend/core/routes/index.js +60 -7
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
- package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.js +60 -7
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/authTypes.d.mts +1 -1
- package/dist/backend/core/types/authTypes.d.ts +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +2 -2
- package/dist/backend/core/types/handlerTypes.d.ts +2 -2
- package/dist/backend/core/types/index.d.mts +2 -2
- package/dist/backend/core/types/index.d.ts +2 -2
- package/dist/backend/core/types/routeTypes.d.mts +2 -2
- package/dist/backend/core/types/routeTypes.d.ts +2 -2
- package/dist/backend/index.d.mts +4 -4
- package/dist/backend/index.d.ts +4 -4
- package/dist/backend/index.js +361 -43
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-Che2nkqv.d.ts → routeTypes-DpH9YHyt.d.ts} +247 -2
- package/dist/backend/{routeTypes-RMeyKg5T.d.mts → routeTypes-mIP4rSxp.d.mts} +247 -2
- package/dist/better-auth/{chunk-5F3J4ZQQ.mjs → chunk-3C2VGNW3.mjs} +302 -37
- package/dist/better-auth/{chunk-6TAYCQUD.mjs → chunk-CG3LL2TQ.mjs} +60 -7
- package/dist/better-auth/{chunk-IODRHT4E.mjs → chunk-UCMJFTKD.mjs} +1 -1
- package/dist/better-auth/index.js +361 -43
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/types.d.mts +18 -0
- package/dist/better-auth/types.d.ts +18 -0
- package/dist/better-auth/utils/createAutumnEndpoint.js +60 -7
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +361 -43
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +361 -43
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +3 -3
- package/dist/react/AutumnContext.d.ts +3 -3
- package/dist/react/AutumnProvider.d.mts +2 -1
- package/dist/react/AutumnProvider.d.ts +2 -1
- package/dist/react/AutumnProvider.js +18 -8
- package/dist/react/AutumnProvider.mjs +3 -3
- package/dist/react/{chunk-R7I3UPL4.mjs → chunk-26CKSAPZ.mjs} +6 -4
- package/dist/react/{chunk-QEJLIFBC.mjs → chunk-QOFGTXEX.mjs} +3 -2
- package/dist/react/{chunk-M34U5F2H.mjs → chunk-SCDO26YC.mjs} +11 -4
- package/dist/react/client/AutumnClient.d.mts +4 -3
- package/dist/react/client/AutumnClient.d.ts +4 -3
- package/dist/react/client/AutumnClient.js +13 -5
- package/dist/react/client/AutumnClient.mjs +2 -2
- package/dist/react/client/IAutumnClient.d.mts +7 -3
- package/dist/react/client/IAutumnClient.d.ts +7 -3
- package/dist/react/client/index.d.mts +3 -3
- package/dist/react/client/index.d.ts +3 -3
- package/dist/react/client/index.js +13 -5
- package/dist/react/client/index.mjs +2 -2
- package/dist/react/client/internal/httpClient.d.mts +1 -0
- package/dist/react/client/internal/httpClient.d.ts +1 -0
- package/dist/react/client/internal/httpClient.js +11 -4
- package/dist/react/client/internal/httpClient.mjs +1 -1
- package/dist/react/{customer-CMAtwbJl.d.ts → customer-BPHnUS4N.d.ts} +19 -1
- package/dist/react/{customer-CNvpHhpS.d.mts → customer-DDRi84Zq.d.mts} +19 -1
- package/dist/react/hooks/index.d.mts +3 -3
- package/dist/react/hooks/index.d.ts +3 -3
- 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 +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -3
- 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 +2 -2
- package/dist/react/hooks/useListPlans.d.ts +2 -2
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/index.d.mts +3 -3
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +18 -8
- package/dist/react/index.mjs +3 -3
- package/dist/react/{params-Cdkj83CV.d.mts → params-Bj6uyOX1.d.mts} +91 -2
- package/dist/react/{params-CnOvYjqJ.d.ts → params-DAVIR4YX.d.ts} +91 -2
- package/dist/react/{plan-BoMslu_O.d.mts → plan-CqxFGNk2.d.mts} +4 -0
- package/dist/react/{plan-BoMslu_O.d.ts → plan-CqxFGNk2.d.ts} +4 -0
- package/dist/sdk/index.d.mts +360 -4
- package/dist/sdk/index.d.ts +360 -4
- package/dist/sdk/index.js +406 -36
- package/dist/sdk/index.mjs +381 -37
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-MHFVVQCC.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-AA2HLIP7.mjs";
|
|
7
|
+
import "../chunk-OZRCCZTP.mjs";
|
|
8
|
+
import "../chunk-BGGTI77T.mjs";
|
|
9
9
|
import "../chunk-55C2WWXQ.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
12
12
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-3RN6TO3T.mjs";
|
|
15
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
16
|
import "../chunk-VZIMT7AO.mjs";
|
|
17
17
|
import "../chunk-Z6QP3YEA.mjs";
|
|
@@ -57,6 +57,10 @@ type GetOrCreateCustomerAutoTopup = {
|
|
|
57
57
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
58
58
|
*/
|
|
59
59
|
purchaseLimit?: GetOrCreateCustomerPurchaseLimit | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
62
|
+
*/
|
|
63
|
+
invoiceMode?: boolean | undefined;
|
|
60
64
|
};
|
|
61
65
|
type GetOrCreateCustomerSpendLimit = {
|
|
62
66
|
/**
|
|
@@ -105,6 +109,16 @@ type GetOrCreateCustomerUsageAlert = {
|
|
|
105
109
|
*/
|
|
106
110
|
name?: string | undefined;
|
|
107
111
|
};
|
|
112
|
+
type GetOrCreateCustomerOverageAllowed = {
|
|
113
|
+
/**
|
|
114
|
+
* The feature ID this overage allowed control applies to.
|
|
115
|
+
*/
|
|
116
|
+
featureId: string;
|
|
117
|
+
/**
|
|
118
|
+
* Whether overage is allowed for this feature.
|
|
119
|
+
*/
|
|
120
|
+
enabled?: boolean | undefined;
|
|
121
|
+
};
|
|
108
122
|
/**
|
|
109
123
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
110
124
|
*/
|
|
@@ -121,6 +135,10 @@ type GetOrCreateCustomerBillingControls = {
|
|
|
121
135
|
* List of usage alert configurations per feature.
|
|
122
136
|
*/
|
|
123
137
|
usageAlerts?: Array<GetOrCreateCustomerUsageAlert> | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* List of overage allowed controls per feature. When enabled, usage can exceed balance.
|
|
140
|
+
*/
|
|
141
|
+
overageAllowed?: Array<GetOrCreateCustomerOverageAllowed> | undefined;
|
|
124
142
|
};
|
|
125
143
|
type GetOrCreateCustomerParams = {
|
|
126
144
|
customerId: string | null;
|
|
@@ -57,6 +57,10 @@ type GetOrCreateCustomerAutoTopup = {
|
|
|
57
57
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
58
58
|
*/
|
|
59
59
|
purchaseLimit?: GetOrCreateCustomerPurchaseLimit | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
62
|
+
*/
|
|
63
|
+
invoiceMode?: boolean | undefined;
|
|
60
64
|
};
|
|
61
65
|
type GetOrCreateCustomerSpendLimit = {
|
|
62
66
|
/**
|
|
@@ -105,6 +109,16 @@ type GetOrCreateCustomerUsageAlert = {
|
|
|
105
109
|
*/
|
|
106
110
|
name?: string | undefined;
|
|
107
111
|
};
|
|
112
|
+
type GetOrCreateCustomerOverageAllowed = {
|
|
113
|
+
/**
|
|
114
|
+
* The feature ID this overage allowed control applies to.
|
|
115
|
+
*/
|
|
116
|
+
featureId: string;
|
|
117
|
+
/**
|
|
118
|
+
* Whether overage is allowed for this feature.
|
|
119
|
+
*/
|
|
120
|
+
enabled?: boolean | undefined;
|
|
121
|
+
};
|
|
108
122
|
/**
|
|
109
123
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
110
124
|
*/
|
|
@@ -121,6 +135,10 @@ type GetOrCreateCustomerBillingControls = {
|
|
|
121
135
|
* List of usage alert configurations per feature.
|
|
122
136
|
*/
|
|
123
137
|
usageAlerts?: Array<GetOrCreateCustomerUsageAlert> | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* List of overage allowed controls per feature. When enabled, usage can exceed balance.
|
|
140
|
+
*/
|
|
141
|
+
overageAllowed?: Array<GetOrCreateCustomerOverageAllowed> | undefined;
|
|
124
142
|
};
|
|
125
143
|
type GetOrCreateCustomerParams = {
|
|
126
144
|
customerId: string | null;
|
|
@@ -152,6 +152,7 @@ var attachProrationOutboundSchema = z2.object({
|
|
|
152
152
|
});
|
|
153
153
|
var attachRolloverOutboundSchema = z2.object({
|
|
154
154
|
max: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
155
|
+
max_percentage: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
155
156
|
expiry_duration_type: z2.string(),
|
|
156
157
|
expiry_duration_length: z2.union([z2.number(), z2.undefined()]).optional()
|
|
157
158
|
});
|
|
@@ -252,6 +253,7 @@ var attachProrationSchema = z2.object({
|
|
|
252
253
|
var attachExpiryDurationTypeSchema = closedEnumSchema2;
|
|
253
254
|
var attachRolloverSchema = z2.object({
|
|
254
255
|
max: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
256
|
+
maxPercentage: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
255
257
|
expiryDurationType: attachExpiryDurationTypeSchema,
|
|
256
258
|
expiryDurationLength: z2.union([z2.number(), z2.undefined()]).optional()
|
|
257
259
|
});
|
|
@@ -342,6 +344,10 @@ var getOrCreateCustomerSpendLimitSchema = z4.object({
|
|
|
342
344
|
enabled: z4.union([z4.boolean(), z4.undefined()]).optional(),
|
|
343
345
|
overageLimit: z4.union([z4.number(), z4.undefined()]).optional()
|
|
344
346
|
});
|
|
347
|
+
var getOrCreateCustomerOverageAllowedSchema = z4.object({
|
|
348
|
+
featureId: z4.string(),
|
|
349
|
+
enabled: z4.union([z4.boolean(), z4.undefined()]).optional()
|
|
350
|
+
});
|
|
345
351
|
var getOrCreateCustomerPurchaseLimitOutboundSchema = z4.object({
|
|
346
352
|
interval: z4.string(),
|
|
347
353
|
interval_count: z4.number(),
|
|
@@ -352,7 +358,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = z4.object({
|
|
|
352
358
|
enabled: z4.boolean(),
|
|
353
359
|
threshold: z4.number(),
|
|
354
360
|
quantity: z4.number(),
|
|
355
|
-
purchase_limit: z4.union([getOrCreateCustomerPurchaseLimitOutboundSchema, z4.undefined()]).optional()
|
|
361
|
+
purchase_limit: z4.union([getOrCreateCustomerPurchaseLimitOutboundSchema, z4.undefined()]).optional(),
|
|
362
|
+
invoice_mode: z4.union([z4.boolean(), z4.undefined()]).optional()
|
|
356
363
|
});
|
|
357
364
|
var getOrCreateCustomerSpendLimitOutboundSchema = z4.object({
|
|
358
365
|
feature_id: z4.union([z4.string(), z4.undefined()]).optional(),
|
|
@@ -366,6 +373,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = z4.object({
|
|
|
366
373
|
threshold_type: z4.string(),
|
|
367
374
|
name: z4.union([z4.string(), z4.undefined()]).optional()
|
|
368
375
|
});
|
|
376
|
+
var getOrCreateCustomerOverageAllowedOutboundSchema = z4.object({
|
|
377
|
+
feature_id: z4.string(),
|
|
378
|
+
enabled: z4.boolean()
|
|
379
|
+
});
|
|
369
380
|
var getOrCreateCustomerBillingControlsOutboundSchema = z4.object({
|
|
370
381
|
auto_topups: z4.union([z4.array(getOrCreateCustomerAutoTopupOutboundSchema), z4.undefined()]).optional(),
|
|
371
382
|
spend_limits: z4.union([
|
|
@@ -375,6 +386,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = z4.object({
|
|
|
375
386
|
usage_alerts: z4.union([
|
|
376
387
|
z4.array(getOrCreateCustomerUsageAlertOutboundSchema),
|
|
377
388
|
z4.undefined()
|
|
389
|
+
]).optional(),
|
|
390
|
+
overage_allowed: z4.union([
|
|
391
|
+
z4.array(getOrCreateCustomerOverageAllowedOutboundSchema),
|
|
392
|
+
z4.undefined()
|
|
378
393
|
]).optional()
|
|
379
394
|
});
|
|
380
395
|
var getOrCreateCustomerParamsOutboundSchema = z4.object({
|
|
@@ -402,7 +417,8 @@ var getOrCreateCustomerAutoTopupSchema = z4.object({
|
|
|
402
417
|
enabled: z4.union([z4.boolean(), z4.undefined()]).optional(),
|
|
403
418
|
threshold: z4.number(),
|
|
404
419
|
quantity: z4.number(),
|
|
405
|
-
purchaseLimit: z4.union([getOrCreateCustomerPurchaseLimitSchema, z4.undefined()]).optional()
|
|
420
|
+
purchaseLimit: z4.union([getOrCreateCustomerPurchaseLimitSchema, z4.undefined()]).optional(),
|
|
421
|
+
invoiceMode: z4.union([z4.boolean(), z4.undefined()]).optional()
|
|
406
422
|
});
|
|
407
423
|
var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
|
|
408
424
|
var getOrCreateCustomerUsageAlertSchema = z4.object({
|
|
@@ -415,7 +431,8 @@ var getOrCreateCustomerUsageAlertSchema = z4.object({
|
|
|
415
431
|
var getOrCreateCustomerBillingControlsSchema = z4.object({
|
|
416
432
|
autoTopups: z4.union([z4.array(getOrCreateCustomerAutoTopupSchema), z4.undefined()]).optional(),
|
|
417
433
|
spendLimits: z4.union([z4.array(getOrCreateCustomerSpendLimitSchema), z4.undefined()]).optional(),
|
|
418
|
-
usageAlerts: z4.union([z4.array(getOrCreateCustomerUsageAlertSchema), z4.undefined()]).optional()
|
|
434
|
+
usageAlerts: z4.union([z4.array(getOrCreateCustomerUsageAlertSchema), z4.undefined()]).optional(),
|
|
435
|
+
overageAllowed: z4.union([z4.array(getOrCreateCustomerOverageAllowedSchema), z4.undefined()]).optional()
|
|
419
436
|
});
|
|
420
437
|
var getOrCreateCustomerParamsSchema = z4.object({
|
|
421
438
|
customerId: z4.string().nullable(),
|
|
@@ -554,6 +571,7 @@ var listPlansItemPriceSchema = z6.object({
|
|
|
554
571
|
var listPlansExpiryDurationTypeSchema = openEnumSchema2;
|
|
555
572
|
var listPlansRolloverSchema = z6.object({
|
|
556
573
|
max: z6.number().nullable(),
|
|
574
|
+
maxPercentage: z6.union([z6.number(), z6.undefined()]).optional().nullable(),
|
|
557
575
|
expiryDurationType: listPlansExpiryDurationTypeSchema,
|
|
558
576
|
expiryDurationLength: z6.union([z6.number(), z6.undefined()]).optional()
|
|
559
577
|
});
|
|
@@ -634,6 +652,10 @@ var multiAttachSpendLimitSchema = z7.object({
|
|
|
634
652
|
enabled: z7.union([z7.boolean(), z7.undefined()]).optional(),
|
|
635
653
|
overageLimit: z7.union([z7.number(), z7.undefined()]).optional()
|
|
636
654
|
});
|
|
655
|
+
var multiAttachOverageAllowedSchema = z7.object({
|
|
656
|
+
featureId: z7.string(),
|
|
657
|
+
enabled: z7.union([z7.boolean(), z7.undefined()]).optional()
|
|
658
|
+
});
|
|
637
659
|
var multiAttachInvoiceSchema = z7.object({
|
|
638
660
|
status: z7.string().nullable(),
|
|
639
661
|
stripeId: z7.string(),
|
|
@@ -672,6 +694,7 @@ var multiAttachProrationOutboundSchema = z7.object({
|
|
|
672
694
|
});
|
|
673
695
|
var multiAttachRolloverOutboundSchema = z7.object({
|
|
674
696
|
max: z7.union([z7.number(), z7.undefined()]).optional(),
|
|
697
|
+
max_percentage: z7.union([z7.number(), z7.undefined()]).optional(),
|
|
675
698
|
expiry_duration_type: z7.string(),
|
|
676
699
|
expiry_duration_length: z7.union([z7.number(), z7.undefined()]).optional()
|
|
677
700
|
});
|
|
@@ -726,9 +749,14 @@ var multiAttachUsageAlertOutboundSchema = z7.object({
|
|
|
726
749
|
threshold_type: z7.string(),
|
|
727
750
|
name: z7.union([z7.string(), z7.undefined()]).optional()
|
|
728
751
|
});
|
|
752
|
+
var multiAttachOverageAllowedOutboundSchema = z7.object({
|
|
753
|
+
feature_id: z7.string(),
|
|
754
|
+
enabled: z7.boolean()
|
|
755
|
+
});
|
|
729
756
|
var multiAttachBillingControlsOutboundSchema = z7.object({
|
|
730
757
|
spend_limits: z7.union([z7.array(multiAttachSpendLimitOutboundSchema), z7.undefined()]).optional(),
|
|
731
|
-
usage_alerts: z7.union([z7.array(multiAttachUsageAlertOutboundSchema), z7.undefined()]).optional()
|
|
758
|
+
usage_alerts: z7.union([z7.array(multiAttachUsageAlertOutboundSchema), z7.undefined()]).optional(),
|
|
759
|
+
overage_allowed: z7.union([z7.array(multiAttachOverageAllowedOutboundSchema), z7.undefined()]).optional()
|
|
732
760
|
});
|
|
733
761
|
var multiAttachEntityDataOutboundSchema = z7.object({
|
|
734
762
|
feature_id: z7.string(),
|
|
@@ -772,6 +800,7 @@ var multiAttachProrationSchema = z7.object({
|
|
|
772
800
|
var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
|
|
773
801
|
var multiAttachRolloverSchema = z7.object({
|
|
774
802
|
max: z7.union([z7.number(), z7.undefined()]).optional(),
|
|
803
|
+
maxPercentage: z7.union([z7.number(), z7.undefined()]).optional(),
|
|
775
804
|
expiryDurationType: multiAttachExpiryDurationTypeSchema,
|
|
776
805
|
expiryDurationLength: z7.union([z7.number(), z7.undefined()]).optional()
|
|
777
806
|
});
|
|
@@ -812,7 +841,8 @@ var multiAttachUsageAlertSchema = z7.object({
|
|
|
812
841
|
});
|
|
813
842
|
var multiAttachBillingControlsSchema = z7.object({
|
|
814
843
|
spendLimits: z7.union([z7.array(multiAttachSpendLimitSchema), z7.undefined()]).optional(),
|
|
815
|
-
usageAlerts: z7.union([z7.array(multiAttachUsageAlertSchema), z7.undefined()]).optional()
|
|
844
|
+
usageAlerts: z7.union([z7.array(multiAttachUsageAlertSchema), z7.undefined()]).optional(),
|
|
845
|
+
overageAllowed: z7.union([z7.array(multiAttachOverageAllowedSchema), z7.undefined()]).optional()
|
|
816
846
|
});
|
|
817
847
|
var multiAttachEntityDataSchema = z7.object({
|
|
818
848
|
featureId: z7.string(),
|
|
@@ -1020,6 +1050,7 @@ var previewAttachProrationOutboundSchema = z9.object({
|
|
|
1020
1050
|
});
|
|
1021
1051
|
var previewAttachRolloverOutboundSchema = z9.object({
|
|
1022
1052
|
max: z9.union([z9.number(), z9.undefined()]).optional(),
|
|
1053
|
+
max_percentage: z9.union([z9.number(), z9.undefined()]).optional(),
|
|
1023
1054
|
expiry_duration_type: z9.string(),
|
|
1024
1055
|
expiry_duration_length: z9.union([z9.number(), z9.undefined()]).optional()
|
|
1025
1056
|
});
|
|
@@ -1124,6 +1155,7 @@ var previewAttachProrationSchema = z9.object({
|
|
|
1124
1155
|
var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
|
|
1125
1156
|
var previewAttachRolloverSchema = z9.object({
|
|
1126
1157
|
max: z9.union([z9.number(), z9.undefined()]).optional(),
|
|
1158
|
+
maxPercentage: z9.union([z9.number(), z9.undefined()]).optional(),
|
|
1127
1159
|
expiryDurationType: previewAttachExpiryDurationTypeSchema,
|
|
1128
1160
|
expiryDurationLength: z9.union([z9.number(), z9.undefined()]).optional()
|
|
1129
1161
|
});
|
|
@@ -1233,6 +1265,10 @@ var previewMultiAttachSpendLimitSchema = z10.object({
|
|
|
1233
1265
|
enabled: z10.union([z10.boolean(), z10.undefined()]).optional(),
|
|
1234
1266
|
overageLimit: z10.union([z10.number(), z10.undefined()]).optional()
|
|
1235
1267
|
});
|
|
1268
|
+
var previewMultiAttachOverageAllowedSchema = z10.object({
|
|
1269
|
+
featureId: z10.string(),
|
|
1270
|
+
enabled: z10.union([z10.boolean(), z10.undefined()]).optional()
|
|
1271
|
+
});
|
|
1236
1272
|
var previewMultiAttachDiscountSchema = z10.object({
|
|
1237
1273
|
amountOff: z10.number(),
|
|
1238
1274
|
percentOff: z10.union([z10.number(), z10.undefined()]).optional(),
|
|
@@ -1334,6 +1370,7 @@ var previewMultiAttachProrationOutboundSchema = z10.object({
|
|
|
1334
1370
|
});
|
|
1335
1371
|
var previewMultiAttachRolloverOutboundSchema = z10.object({
|
|
1336
1372
|
max: z10.union([z10.number(), z10.undefined()]).optional(),
|
|
1373
|
+
max_percentage: z10.union([z10.number(), z10.undefined()]).optional(),
|
|
1337
1374
|
expiry_duration_type: z10.string(),
|
|
1338
1375
|
expiry_duration_length: z10.union([z10.number(), z10.undefined()]).optional()
|
|
1339
1376
|
});
|
|
@@ -1391,9 +1428,17 @@ var previewMultiAttachUsageAlertOutboundSchema = z10.object({
|
|
|
1391
1428
|
threshold_type: z10.string(),
|
|
1392
1429
|
name: z10.union([z10.string(), z10.undefined()]).optional()
|
|
1393
1430
|
});
|
|
1431
|
+
var previewMultiAttachOverageAllowedOutboundSchema = z10.object({
|
|
1432
|
+
feature_id: z10.string(),
|
|
1433
|
+
enabled: z10.boolean()
|
|
1434
|
+
});
|
|
1394
1435
|
var previewMultiAttachBillingControlsOutboundSchema = z10.object({
|
|
1395
1436
|
spend_limits: z10.union([z10.array(previewMultiAttachSpendLimitOutboundSchema), z10.undefined()]).optional(),
|
|
1396
|
-
usage_alerts: z10.union([z10.array(previewMultiAttachUsageAlertOutboundSchema), z10.undefined()]).optional()
|
|
1437
|
+
usage_alerts: z10.union([z10.array(previewMultiAttachUsageAlertOutboundSchema), z10.undefined()]).optional(),
|
|
1438
|
+
overage_allowed: z10.union([
|
|
1439
|
+
z10.array(previewMultiAttachOverageAllowedOutboundSchema),
|
|
1440
|
+
z10.undefined()
|
|
1441
|
+
]).optional()
|
|
1397
1442
|
});
|
|
1398
1443
|
var previewMultiAttachEntityDataOutboundSchema = z10.object({
|
|
1399
1444
|
feature_id: z10.string(),
|
|
@@ -1438,6 +1483,7 @@ var previewMultiAttachProrationSchema = z10.object({
|
|
|
1438
1483
|
var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
|
|
1439
1484
|
var previewMultiAttachRolloverSchema = z10.object({
|
|
1440
1485
|
max: z10.union([z10.number(), z10.undefined()]).optional(),
|
|
1486
|
+
maxPercentage: z10.union([z10.number(), z10.undefined()]).optional(),
|
|
1441
1487
|
expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
|
|
1442
1488
|
expiryDurationLength: z10.union([z10.number(), z10.undefined()]).optional()
|
|
1443
1489
|
});
|
|
@@ -1481,7 +1527,8 @@ var previewMultiAttachUsageAlertSchema = z10.object({
|
|
|
1481
1527
|
});
|
|
1482
1528
|
var previewMultiAttachBillingControlsSchema = z10.object({
|
|
1483
1529
|
spendLimits: z10.union([z10.array(previewMultiAttachSpendLimitSchema), z10.undefined()]).optional(),
|
|
1484
|
-
usageAlerts: z10.union([z10.array(previewMultiAttachUsageAlertSchema), z10.undefined()]).optional()
|
|
1530
|
+
usageAlerts: z10.union([z10.array(previewMultiAttachUsageAlertSchema), z10.undefined()]).optional(),
|
|
1531
|
+
overageAllowed: z10.union([z10.array(previewMultiAttachOverageAllowedSchema), z10.undefined()]).optional()
|
|
1485
1532
|
});
|
|
1486
1533
|
var previewMultiAttachEntityDataSchema = z10.object({
|
|
1487
1534
|
featureId: z10.string(),
|
|
@@ -1677,6 +1724,7 @@ var previewUpdateProrationOutboundSchema = z11.object({
|
|
|
1677
1724
|
});
|
|
1678
1725
|
var previewUpdateRolloverOutboundSchema = z11.object({
|
|
1679
1726
|
max: z11.union([z11.number(), z11.undefined()]).optional(),
|
|
1727
|
+
max_percentage: z11.union([z11.number(), z11.undefined()]).optional(),
|
|
1680
1728
|
expiry_duration_type: z11.string(),
|
|
1681
1729
|
expiry_duration_length: z11.union([z11.number(), z11.undefined()]).optional()
|
|
1682
1730
|
});
|
|
@@ -1761,6 +1809,7 @@ var previewUpdateProrationSchema = z11.object({
|
|
|
1761
1809
|
var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
|
|
1762
1810
|
var previewUpdateRolloverSchema = z11.object({
|
|
1763
1811
|
max: z11.union([z11.number(), z11.undefined()]).optional(),
|
|
1812
|
+
maxPercentage: z11.union([z11.number(), z11.undefined()]).optional(),
|
|
1764
1813
|
expiryDurationType: previewUpdateExpiryDurationTypeSchema,
|
|
1765
1814
|
expiryDurationLength: z11.union([z11.number(), z11.undefined()]).optional()
|
|
1766
1815
|
});
|
|
@@ -1924,6 +1973,7 @@ var setupPaymentProrationOutboundSchema = z13.object({
|
|
|
1924
1973
|
});
|
|
1925
1974
|
var setupPaymentRolloverOutboundSchema = z13.object({
|
|
1926
1975
|
max: z13.union([z13.number(), z13.undefined()]).optional(),
|
|
1976
|
+
max_percentage: z13.union([z13.number(), z13.undefined()]).optional(),
|
|
1927
1977
|
expiry_duration_type: z13.string(),
|
|
1928
1978
|
expiry_duration_length: z13.union([z13.number(), z13.undefined()]).optional()
|
|
1929
1979
|
});
|
|
@@ -2014,6 +2064,7 @@ var setupPaymentProrationSchema = z13.object({
|
|
|
2014
2064
|
var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
|
|
2015
2065
|
var setupPaymentRolloverSchema = z13.object({
|
|
2016
2066
|
max: z13.union([z13.number(), z13.undefined()]).optional(),
|
|
2067
|
+
maxPercentage: z13.union([z13.number(), z13.undefined()]).optional(),
|
|
2017
2068
|
expiryDurationType: setupPaymentExpiryDurationTypeSchema,
|
|
2018
2069
|
expiryDurationLength: z13.union([z13.number(), z13.undefined()]).optional()
|
|
2019
2070
|
});
|
|
@@ -2124,6 +2175,7 @@ var billingUpdateProrationOutboundSchema = z14.object({
|
|
|
2124
2175
|
});
|
|
2125
2176
|
var billingUpdateRolloverOutboundSchema = z14.object({
|
|
2126
2177
|
max: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
2178
|
+
max_percentage: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
2127
2179
|
expiry_duration_type: z14.string(),
|
|
2128
2180
|
expiry_duration_length: z14.union([z14.number(), z14.undefined()]).optional()
|
|
2129
2181
|
});
|
|
@@ -2204,6 +2256,7 @@ var billingUpdateProrationSchema = z14.object({
|
|
|
2204
2256
|
var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
|
|
2205
2257
|
var billingUpdateRolloverSchema = z14.object({
|
|
2206
2258
|
max: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
2259
|
+
maxPercentage: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
2207
2260
|
expiryDurationType: billingUpdateExpiryDurationTypeSchema,
|
|
2208
2261
|
expiryDurationLength: z14.union([z14.number(), z14.undefined()]).optional()
|
|
2209
2262
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Autumn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BGGTI77T.mjs";
|
|
4
4
|
import {
|
|
5
5
|
executeRoute
|
|
6
6
|
} from "./chunk-55C2WWXQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
routeConfigs
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3RN6TO3T.mjs";
|
|
10
10
|
import {
|
|
11
11
|
secretKeyCheck
|
|
12
12
|
} from "./chunk-VZIMT7AO.mjs";
|