autumn-js 1.2.0 → 1.2.3
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 +337 -29
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.d.mts +1 -1
- package/dist/backend/adapters/fetch.d.ts +1 -1
- package/dist/backend/adapters/fetch.js +337 -29
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.d.mts +1 -1
- package/dist/backend/adapters/hono.d.ts +1 -1
- package/dist/backend/adapters/hono.js +337 -29
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.d.mts +1 -1
- package/dist/backend/adapters/index.d.ts +1 -1
- package/dist/backend/adapters/index.js +337 -29
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.d.mts +1 -1
- package/dist/backend/adapters/next.d.ts +1 -1
- package/dist/backend/adapters/next.js +337 -29
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{authTypes-BCoyMOAj.d.mts → authTypes-B5VxPaMo.d.mts} +14 -0
- package/dist/backend/{authTypes-BCoyMOAj.d.ts → authTypes-B5VxPaMo.d.ts} +14 -0
- package/dist/backend/{chunk-6YVVHFAT.mjs → chunk-2YEMC57K.mjs} +1 -1
- package/dist/backend/{chunk-MJBKNDWD.mjs → chunk-CCEZMERA.mjs} +279 -24
- package/dist/backend/{chunk-VR35K2UZ.mjs → chunk-ETHQSA52.mjs} +7 -7
- package/dist/backend/{chunk-RYP3CVST.mjs → chunk-FRKRWJ5S.mjs} +1 -1
- package/dist/backend/{chunk-5TDPAYPN.mjs → chunk-IFFSWLXT.mjs} +1 -1
- package/dist/backend/{chunk-3YYODLUY.mjs → chunk-IUFWKMTJ.mjs} +1 -1
- package/dist/backend/{chunk-BSY23UM3.mjs → chunk-N62MDT7U.mjs} +58 -5
- package/dist/backend/{chunk-JDL37I7Y.mjs → chunk-OLHAIHAX.mjs} +5 -5
- 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 +337 -29
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- 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/executeRoute.mjs +4 -4
- 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 +337 -29
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- 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 +337 -29
- package/dist/backend/core/handlers/index.mjs +10 -10
- 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 +337 -29
- package/dist/backend/core/index.mjs +10 -10
- 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 +58 -5
- package/dist/backend/core/routes/index.mjs +2 -2
- 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 +58 -5
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- 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/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +4 -4
- package/dist/backend/index.d.ts +4 -4
- package/dist/backend/index.js +337 -29
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-B7YXq83l.d.ts → routeTypes-BkSHRiCI.d.ts} +233 -2
- package/dist/backend/{routeTypes-BglWygTb.d.mts → routeTypes-C1hUtfD8.d.mts} +233 -2
- package/dist/better-auth/{chunk-LHA6NFFS.mjs → chunk-2PRVJULJ.mjs} +58 -5
- package/dist/better-auth/{chunk-I4LI2AOX.mjs → chunk-6J74ZVNY.mjs} +280 -25
- package/dist/better-auth/{chunk-TDX4NREA.mjs → chunk-IY7FPOWF.mjs} +1 -1
- package/dist/better-auth/index.js +337 -29
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/types.d.mts +14 -0
- package/dist/better-auth/types.d.ts +14 -0
- package/dist/better-auth/utils/createAutumnEndpoint.js +58 -5
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +337 -29
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +337 -29
- 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/client/AutumnClient.d.mts +3 -3
- package/dist/react/client/AutumnClient.d.ts +3 -3
- 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/{customer-CNvpHhpS.d.mts → customer-Bb7J-_p_.d.mts} +15 -1
- package/dist/react/{customer-CMAtwbJl.d.ts → customer-CJSDgQMF.d.ts} +15 -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/{params-BmtAnULw.d.mts → params-CheyAQ0-.d.mts} +93 -2
- package/dist/react/{params-CL0lZNfr.d.ts → params-yCtJ7lOA.d.ts} +93 -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 +342 -4
- package/dist/sdk/index.d.ts +342 -4
- package/dist/sdk/index.js +384 -24
- package/dist/sdk/index.mjs +359 -25
- package/package.json +1 -1
- package/dist/backend/{chunk-55C2WWXQ.mjs → chunk-S5HPMJ4U.mjs} +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./chunk-HIWOK3G6.mjs";
|
|
2
2
|
import {
|
|
3
3
|
createAutumnEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IY7FPOWF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createHandleBetterAuthRoute
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6J74ZVNY.mjs";
|
|
8
8
|
import "./chunk-J2WYVGHS.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-2PRVJULJ.mjs";
|
|
10
10
|
import "./chunk-BT3EAYVW.mjs";
|
|
11
11
|
import "./chunk-GJAMWZNZ.mjs";
|
|
12
12
|
|
|
@@ -99,6 +99,16 @@ type GetOrCreateCustomerUsageAlert = {
|
|
|
99
99
|
*/
|
|
100
100
|
name?: string | undefined;
|
|
101
101
|
};
|
|
102
|
+
type GetOrCreateCustomerOverageAllowed = {
|
|
103
|
+
/**
|
|
104
|
+
* The feature ID this overage allowed control applies to.
|
|
105
|
+
*/
|
|
106
|
+
featureId: string;
|
|
107
|
+
/**
|
|
108
|
+
* Whether overage is allowed for this feature.
|
|
109
|
+
*/
|
|
110
|
+
enabled?: boolean | undefined;
|
|
111
|
+
};
|
|
102
112
|
/**
|
|
103
113
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
104
114
|
*/
|
|
@@ -115,6 +125,10 @@ type GetOrCreateCustomerBillingControls = {
|
|
|
115
125
|
* List of usage alert configurations per feature.
|
|
116
126
|
*/
|
|
117
127
|
usageAlerts?: Array<GetOrCreateCustomerUsageAlert> | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* List of overage allowed controls per feature. When enabled, usage can exceed balance.
|
|
130
|
+
*/
|
|
131
|
+
overageAllowed?: Array<GetOrCreateCustomerOverageAllowed> | undefined;
|
|
118
132
|
};
|
|
119
133
|
type GetOrCreateCustomerParams = {
|
|
120
134
|
customerId: string | null;
|
|
@@ -99,6 +99,16 @@ type GetOrCreateCustomerUsageAlert = {
|
|
|
99
99
|
*/
|
|
100
100
|
name?: string | undefined;
|
|
101
101
|
};
|
|
102
|
+
type GetOrCreateCustomerOverageAllowed = {
|
|
103
|
+
/**
|
|
104
|
+
* The feature ID this overage allowed control applies to.
|
|
105
|
+
*/
|
|
106
|
+
featureId: string;
|
|
107
|
+
/**
|
|
108
|
+
* Whether overage is allowed for this feature.
|
|
109
|
+
*/
|
|
110
|
+
enabled?: boolean | undefined;
|
|
111
|
+
};
|
|
102
112
|
/**
|
|
103
113
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
104
114
|
*/
|
|
@@ -115,6 +125,10 @@ type GetOrCreateCustomerBillingControls = {
|
|
|
115
125
|
* List of usage alert configurations per feature.
|
|
116
126
|
*/
|
|
117
127
|
usageAlerts?: Array<GetOrCreateCustomerUsageAlert> | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* List of overage allowed controls per feature. When enabled, usage can exceed balance.
|
|
130
|
+
*/
|
|
131
|
+
overageAllowed?: Array<GetOrCreateCustomerOverageAllowed> | undefined;
|
|
118
132
|
};
|
|
119
133
|
type GetOrCreateCustomerParams = {
|
|
120
134
|
customerId: string | null;
|
|
@@ -73,6 +73,7 @@ var eventsAggregateParamsOutboundSchema = import_v4.z.object({
|
|
|
73
73
|
range: import_v4.z.union([import_v4.z.string(), import_v4.z.undefined()]).optional(),
|
|
74
74
|
bin_size: import_v4.z.string(),
|
|
75
75
|
custom_range: import_v4.z.union([aggregateEventsCustomRangeOutboundSchema, import_v4.z.undefined()]).optional(),
|
|
76
|
+
filter_by: import_v4.z.union([import_v4.z.record(import_v4.z.string(), import_v4.z.string()), import_v4.z.undefined()]).optional(),
|
|
76
77
|
max_groups: import_v4.z.union([import_v4.z.number(), import_v4.z.undefined()]).optional()
|
|
77
78
|
});
|
|
78
79
|
var closedEnumSchema = import_v4.z.any();
|
|
@@ -86,6 +87,7 @@ var eventsAggregateParamsSchema = import_v4.z.object({
|
|
|
86
87
|
range: import_v4.z.union([rangeSchema, import_v4.z.undefined()]).optional(),
|
|
87
88
|
binSize: import_v4.z.union([binSizeSchema, import_v4.z.undefined()]).optional(),
|
|
88
89
|
customRange: import_v4.z.union([aggregateEventsCustomRangeSchema, import_v4.z.undefined()]).optional(),
|
|
90
|
+
filterBy: import_v4.z.union([import_v4.z.record(import_v4.z.string(), import_v4.z.string()), import_v4.z.undefined()]).optional(),
|
|
89
91
|
maxGroups: import_v4.z.union([import_v4.z.number(), import_v4.z.undefined()]).optional()
|
|
90
92
|
});
|
|
91
93
|
|
|
@@ -169,6 +171,7 @@ var attachProrationOutboundSchema = import_v42.z.object({
|
|
|
169
171
|
});
|
|
170
172
|
var attachRolloverOutboundSchema = import_v42.z.object({
|
|
171
173
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
174
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
172
175
|
expiry_duration_type: import_v42.z.string(),
|
|
173
176
|
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
174
177
|
});
|
|
@@ -269,6 +272,7 @@ var attachProrationSchema = import_v42.z.object({
|
|
|
269
272
|
var attachExpiryDurationTypeSchema = closedEnumSchema2;
|
|
270
273
|
var attachRolloverSchema = import_v42.z.object({
|
|
271
274
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
275
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
272
276
|
expiryDurationType: attachExpiryDurationTypeSchema,
|
|
273
277
|
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
274
278
|
});
|
|
@@ -359,6 +363,10 @@ var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
|
|
|
359
363
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
360
364
|
overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
361
365
|
});
|
|
366
|
+
var getOrCreateCustomerOverageAllowedSchema = import_v44.z.object({
|
|
367
|
+
featureId: import_v44.z.string(),
|
|
368
|
+
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
369
|
+
});
|
|
362
370
|
var getOrCreateCustomerPurchaseLimitOutboundSchema = import_v44.z.object({
|
|
363
371
|
interval: import_v44.z.string(),
|
|
364
372
|
interval_count: import_v44.z.number(),
|
|
@@ -383,6 +391,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = import_v44.z.object({
|
|
|
383
391
|
threshold_type: import_v44.z.string(),
|
|
384
392
|
name: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
|
|
385
393
|
});
|
|
394
|
+
var getOrCreateCustomerOverageAllowedOutboundSchema = import_v44.z.object({
|
|
395
|
+
feature_id: import_v44.z.string(),
|
|
396
|
+
enabled: import_v44.z.boolean()
|
|
397
|
+
});
|
|
386
398
|
var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
387
399
|
auto_topups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupOutboundSchema), import_v44.z.undefined()]).optional(),
|
|
388
400
|
spend_limits: import_v44.z.union([
|
|
@@ -392,6 +404,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
|
392
404
|
usage_alerts: import_v44.z.union([
|
|
393
405
|
import_v44.z.array(getOrCreateCustomerUsageAlertOutboundSchema),
|
|
394
406
|
import_v44.z.undefined()
|
|
407
|
+
]).optional(),
|
|
408
|
+
overage_allowed: import_v44.z.union([
|
|
409
|
+
import_v44.z.array(getOrCreateCustomerOverageAllowedOutboundSchema),
|
|
410
|
+
import_v44.z.undefined()
|
|
395
411
|
]).optional()
|
|
396
412
|
});
|
|
397
413
|
var getOrCreateCustomerParamsOutboundSchema = import_v44.z.object({
|
|
@@ -432,7 +448,8 @@ var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
|
432
448
|
var getOrCreateCustomerBillingControlsSchema = import_v44.z.object({
|
|
433
449
|
autoTopups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupSchema), import_v44.z.undefined()]).optional(),
|
|
434
450
|
spendLimits: import_v44.z.union([import_v44.z.array(getOrCreateCustomerSpendLimitSchema), import_v44.z.undefined()]).optional(),
|
|
435
|
-
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional()
|
|
451
|
+
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional(),
|
|
452
|
+
overageAllowed: import_v44.z.union([import_v44.z.array(getOrCreateCustomerOverageAllowedSchema), import_v44.z.undefined()]).optional()
|
|
436
453
|
});
|
|
437
454
|
var getOrCreateCustomerParamsSchema = import_v44.z.object({
|
|
438
455
|
customerId: import_v44.z.string().nullable(),
|
|
@@ -571,6 +588,7 @@ var listPlansItemPriceSchema = import_v46.z.object({
|
|
|
571
588
|
var listPlansExpiryDurationTypeSchema = openEnumSchema2;
|
|
572
589
|
var listPlansRolloverSchema = import_v46.z.object({
|
|
573
590
|
max: import_v46.z.number().nullable(),
|
|
591
|
+
maxPercentage: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional().nullable(),
|
|
574
592
|
expiryDurationType: listPlansExpiryDurationTypeSchema,
|
|
575
593
|
expiryDurationLength: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
|
|
576
594
|
});
|
|
@@ -651,6 +669,10 @@ var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
|
651
669
|
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
652
670
|
overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
653
671
|
});
|
|
672
|
+
var multiAttachOverageAllowedSchema = import_v47.z.object({
|
|
673
|
+
featureId: import_v47.z.string(),
|
|
674
|
+
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
|
|
675
|
+
});
|
|
654
676
|
var multiAttachInvoiceSchema = import_v47.z.object({
|
|
655
677
|
status: import_v47.z.string().nullable(),
|
|
656
678
|
stripeId: import_v47.z.string(),
|
|
@@ -689,6 +711,7 @@ var multiAttachProrationOutboundSchema = import_v47.z.object({
|
|
|
689
711
|
});
|
|
690
712
|
var multiAttachRolloverOutboundSchema = import_v47.z.object({
|
|
691
713
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
714
|
+
max_percentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
692
715
|
expiry_duration_type: import_v47.z.string(),
|
|
693
716
|
expiry_duration_length: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
694
717
|
});
|
|
@@ -743,9 +766,14 @@ var multiAttachUsageAlertOutboundSchema = import_v47.z.object({
|
|
|
743
766
|
threshold_type: import_v47.z.string(),
|
|
744
767
|
name: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
745
768
|
});
|
|
769
|
+
var multiAttachOverageAllowedOutboundSchema = import_v47.z.object({
|
|
770
|
+
feature_id: import_v47.z.string(),
|
|
771
|
+
enabled: import_v47.z.boolean()
|
|
772
|
+
});
|
|
746
773
|
var multiAttachBillingControlsOutboundSchema = import_v47.z.object({
|
|
747
774
|
spend_limits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
748
|
-
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional()
|
|
775
|
+
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
776
|
+
overage_allowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedOutboundSchema), import_v47.z.undefined()]).optional()
|
|
749
777
|
});
|
|
750
778
|
var multiAttachEntityDataOutboundSchema = import_v47.z.object({
|
|
751
779
|
feature_id: import_v47.z.string(),
|
|
@@ -789,6 +817,7 @@ var multiAttachProrationSchema = import_v47.z.object({
|
|
|
789
817
|
var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
|
|
790
818
|
var multiAttachRolloverSchema = import_v47.z.object({
|
|
791
819
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
820
|
+
maxPercentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
792
821
|
expiryDurationType: multiAttachExpiryDurationTypeSchema,
|
|
793
822
|
expiryDurationLength: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
794
823
|
});
|
|
@@ -829,7 +858,8 @@ var multiAttachUsageAlertSchema = import_v47.z.object({
|
|
|
829
858
|
});
|
|
830
859
|
var multiAttachBillingControlsSchema = import_v47.z.object({
|
|
831
860
|
spendLimits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitSchema), import_v47.z.undefined()]).optional(),
|
|
832
|
-
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional()
|
|
861
|
+
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional(),
|
|
862
|
+
overageAllowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedSchema), import_v47.z.undefined()]).optional()
|
|
833
863
|
});
|
|
834
864
|
var multiAttachEntityDataSchema = import_v47.z.object({
|
|
835
865
|
featureId: import_v47.z.string(),
|
|
@@ -1037,6 +1067,7 @@ var previewAttachProrationOutboundSchema = import_v49.z.object({
|
|
|
1037
1067
|
});
|
|
1038
1068
|
var previewAttachRolloverOutboundSchema = import_v49.z.object({
|
|
1039
1069
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
1070
|
+
max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
1040
1071
|
expiry_duration_type: import_v49.z.string(),
|
|
1041
1072
|
expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
1042
1073
|
});
|
|
@@ -1141,6 +1172,7 @@ var previewAttachProrationSchema = import_v49.z.object({
|
|
|
1141
1172
|
var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
|
|
1142
1173
|
var previewAttachRolloverSchema = import_v49.z.object({
|
|
1143
1174
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
1175
|
+
maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
1144
1176
|
expiryDurationType: previewAttachExpiryDurationTypeSchema,
|
|
1145
1177
|
expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
1146
1178
|
});
|
|
@@ -1250,6 +1282,10 @@ var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
|
1250
1282
|
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
1251
1283
|
overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
1252
1284
|
});
|
|
1285
|
+
var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
|
|
1286
|
+
featureId: import_v410.z.string(),
|
|
1287
|
+
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
|
|
1288
|
+
});
|
|
1253
1289
|
var previewMultiAttachDiscountSchema = import_v410.z.object({
|
|
1254
1290
|
amountOff: import_v410.z.number(),
|
|
1255
1291
|
percentOff: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
@@ -1351,6 +1387,7 @@ var previewMultiAttachProrationOutboundSchema = import_v410.z.object({
|
|
|
1351
1387
|
});
|
|
1352
1388
|
var previewMultiAttachRolloverOutboundSchema = import_v410.z.object({
|
|
1353
1389
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
1390
|
+
max_percentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
1354
1391
|
expiry_duration_type: import_v410.z.string(),
|
|
1355
1392
|
expiry_duration_length: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
1356
1393
|
});
|
|
@@ -1408,9 +1445,17 @@ var previewMultiAttachUsageAlertOutboundSchema = import_v410.z.object({
|
|
|
1408
1445
|
threshold_type: import_v410.z.string(),
|
|
1409
1446
|
name: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
1410
1447
|
});
|
|
1448
|
+
var previewMultiAttachOverageAllowedOutboundSchema = import_v410.z.object({
|
|
1449
|
+
feature_id: import_v410.z.string(),
|
|
1450
|
+
enabled: import_v410.z.boolean()
|
|
1451
|
+
});
|
|
1411
1452
|
var previewMultiAttachBillingControlsOutboundSchema = import_v410.z.object({
|
|
1412
1453
|
spend_limits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
1413
|
-
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional()
|
|
1454
|
+
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
1455
|
+
overage_allowed: import_v410.z.union([
|
|
1456
|
+
import_v410.z.array(previewMultiAttachOverageAllowedOutboundSchema),
|
|
1457
|
+
import_v410.z.undefined()
|
|
1458
|
+
]).optional()
|
|
1414
1459
|
});
|
|
1415
1460
|
var previewMultiAttachEntityDataOutboundSchema = import_v410.z.object({
|
|
1416
1461
|
feature_id: import_v410.z.string(),
|
|
@@ -1455,6 +1500,7 @@ var previewMultiAttachProrationSchema = import_v410.z.object({
|
|
|
1455
1500
|
var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
|
|
1456
1501
|
var previewMultiAttachRolloverSchema = import_v410.z.object({
|
|
1457
1502
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
1503
|
+
maxPercentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
1458
1504
|
expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
|
|
1459
1505
|
expiryDurationLength: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
1460
1506
|
});
|
|
@@ -1498,7 +1544,8 @@ var previewMultiAttachUsageAlertSchema = import_v410.z.object({
|
|
|
1498
1544
|
});
|
|
1499
1545
|
var previewMultiAttachBillingControlsSchema = import_v410.z.object({
|
|
1500
1546
|
spendLimits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitSchema), import_v410.z.undefined()]).optional(),
|
|
1501
|
-
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional()
|
|
1547
|
+
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional(),
|
|
1548
|
+
overageAllowed: import_v410.z.union([import_v410.z.array(previewMultiAttachOverageAllowedSchema), import_v410.z.undefined()]).optional()
|
|
1502
1549
|
});
|
|
1503
1550
|
var previewMultiAttachEntityDataSchema = import_v410.z.object({
|
|
1504
1551
|
featureId: import_v410.z.string(),
|
|
@@ -1694,6 +1741,7 @@ var previewUpdateProrationOutboundSchema = import_v411.z.object({
|
|
|
1694
1741
|
});
|
|
1695
1742
|
var previewUpdateRolloverOutboundSchema = import_v411.z.object({
|
|
1696
1743
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
1744
|
+
max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
1697
1745
|
expiry_duration_type: import_v411.z.string(),
|
|
1698
1746
|
expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
1699
1747
|
});
|
|
@@ -1778,6 +1826,7 @@ var previewUpdateProrationSchema = import_v411.z.object({
|
|
|
1778
1826
|
var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
|
|
1779
1827
|
var previewUpdateRolloverSchema = import_v411.z.object({
|
|
1780
1828
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
1829
|
+
maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
1781
1830
|
expiryDurationType: previewUpdateExpiryDurationTypeSchema,
|
|
1782
1831
|
expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
1783
1832
|
});
|
|
@@ -1941,6 +1990,7 @@ var setupPaymentProrationOutboundSchema = import_v413.z.object({
|
|
|
1941
1990
|
});
|
|
1942
1991
|
var setupPaymentRolloverOutboundSchema = import_v413.z.object({
|
|
1943
1992
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
1993
|
+
max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
1944
1994
|
expiry_duration_type: import_v413.z.string(),
|
|
1945
1995
|
expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
1946
1996
|
});
|
|
@@ -2031,6 +2081,7 @@ var setupPaymentProrationSchema = import_v413.z.object({
|
|
|
2031
2081
|
var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
|
|
2032
2082
|
var setupPaymentRolloverSchema = import_v413.z.object({
|
|
2033
2083
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
2084
|
+
maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
2034
2085
|
expiryDurationType: setupPaymentExpiryDurationTypeSchema,
|
|
2035
2086
|
expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
2036
2087
|
});
|
|
@@ -2141,6 +2192,7 @@ var billingUpdateProrationOutboundSchema = import_v414.z.object({
|
|
|
2141
2192
|
});
|
|
2142
2193
|
var billingUpdateRolloverOutboundSchema = import_v414.z.object({
|
|
2143
2194
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
2195
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
2144
2196
|
expiry_duration_type: import_v414.z.string(),
|
|
2145
2197
|
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
2146
2198
|
});
|
|
@@ -2221,6 +2273,7 @@ var billingUpdateProrationSchema = import_v414.z.object({
|
|
|
2221
2273
|
var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
|
|
2222
2274
|
var billingUpdateRolloverSchema = import_v414.z.object({
|
|
2223
2275
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
2276
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
2224
2277
|
expiryDurationType: billingUpdateExpiryDurationTypeSchema,
|
|
2225
2278
|
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
2226
2279
|
});
|