autumn-js 1.2.2 → 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 +333 -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 +333 -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 +333 -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 +333 -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 +333 -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-C5ZDQJPP.mjs → chunk-2YEMC57K.mjs} +1 -1
- package/dist/backend/{chunk-6BVI5XZX.mjs → chunk-CCEZMERA.mjs} +277 -24
- package/dist/backend/{chunk-GLPHS5KF.mjs → chunk-ETHQSA52.mjs} +7 -7
- package/dist/backend/{chunk-OB47KG2H.mjs → chunk-FRKRWJ5S.mjs} +1 -1
- package/dist/backend/{chunk-GENKYO6B.mjs → chunk-IFFSWLXT.mjs} +1 -1
- package/dist/backend/{chunk-SX3CNUF5.mjs → chunk-IUFWKMTJ.mjs} +1 -1
- package/dist/backend/{chunk-XU4OGYDV.mjs → chunk-N62MDT7U.mjs} +56 -5
- package/dist/backend/{chunk-3QNAZFQH.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 +333 -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 +333 -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 +333 -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 +333 -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 +56 -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 +56 -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 +333 -29
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-Che2nkqv.d.ts → routeTypes-BkSHRiCI.d.ts} +227 -2
- package/dist/backend/{routeTypes-RMeyKg5T.d.mts → routeTypes-C1hUtfD8.d.mts} +227 -2
- package/dist/better-auth/{chunk-6TAYCQUD.mjs → chunk-2PRVJULJ.mjs} +56 -5
- package/dist/better-auth/{chunk-5F3J4ZQQ.mjs → chunk-6J74ZVNY.mjs} +278 -25
- package/dist/better-auth/{chunk-IODRHT4E.mjs → chunk-IY7FPOWF.mjs} +1 -1
- package/dist/better-auth/index.js +333 -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 +56 -5
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +333 -29
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +333 -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-CnOvYjqJ.d.ts → params-CheyAQ0-.d.mts} +87 -2
- package/dist/react/{params-Cdkj83CV.d.mts → params-yCtJ7lOA.d.ts} +87 -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 +333 -4
- package/dist/sdk/index.d.ts +333 -4
- package/dist/sdk/index.js +382 -24
- package/dist/sdk/index.mjs +357 -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;
|
|
@@ -171,6 +171,7 @@ var attachProrationOutboundSchema = import_v42.z.object({
|
|
|
171
171
|
});
|
|
172
172
|
var attachRolloverOutboundSchema = import_v42.z.object({
|
|
173
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(),
|
|
174
175
|
expiry_duration_type: import_v42.z.string(),
|
|
175
176
|
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
176
177
|
});
|
|
@@ -271,6 +272,7 @@ var attachProrationSchema = import_v42.z.object({
|
|
|
271
272
|
var attachExpiryDurationTypeSchema = closedEnumSchema2;
|
|
272
273
|
var attachRolloverSchema = import_v42.z.object({
|
|
273
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(),
|
|
274
276
|
expiryDurationType: attachExpiryDurationTypeSchema,
|
|
275
277
|
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
276
278
|
});
|
|
@@ -361,6 +363,10 @@ var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
|
|
|
361
363
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
362
364
|
overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
363
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
|
+
});
|
|
364
370
|
var getOrCreateCustomerPurchaseLimitOutboundSchema = import_v44.z.object({
|
|
365
371
|
interval: import_v44.z.string(),
|
|
366
372
|
interval_count: import_v44.z.number(),
|
|
@@ -385,6 +391,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = import_v44.z.object({
|
|
|
385
391
|
threshold_type: import_v44.z.string(),
|
|
386
392
|
name: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
|
|
387
393
|
});
|
|
394
|
+
var getOrCreateCustomerOverageAllowedOutboundSchema = import_v44.z.object({
|
|
395
|
+
feature_id: import_v44.z.string(),
|
|
396
|
+
enabled: import_v44.z.boolean()
|
|
397
|
+
});
|
|
388
398
|
var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
389
399
|
auto_topups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupOutboundSchema), import_v44.z.undefined()]).optional(),
|
|
390
400
|
spend_limits: import_v44.z.union([
|
|
@@ -394,6 +404,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
|
394
404
|
usage_alerts: import_v44.z.union([
|
|
395
405
|
import_v44.z.array(getOrCreateCustomerUsageAlertOutboundSchema),
|
|
396
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()
|
|
397
411
|
]).optional()
|
|
398
412
|
});
|
|
399
413
|
var getOrCreateCustomerParamsOutboundSchema = import_v44.z.object({
|
|
@@ -434,7 +448,8 @@ var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
|
434
448
|
var getOrCreateCustomerBillingControlsSchema = import_v44.z.object({
|
|
435
449
|
autoTopups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupSchema), import_v44.z.undefined()]).optional(),
|
|
436
450
|
spendLimits: import_v44.z.union([import_v44.z.array(getOrCreateCustomerSpendLimitSchema), import_v44.z.undefined()]).optional(),
|
|
437
|
-
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()
|
|
438
453
|
});
|
|
439
454
|
var getOrCreateCustomerParamsSchema = import_v44.z.object({
|
|
440
455
|
customerId: import_v44.z.string().nullable(),
|
|
@@ -573,6 +588,7 @@ var listPlansItemPriceSchema = import_v46.z.object({
|
|
|
573
588
|
var listPlansExpiryDurationTypeSchema = openEnumSchema2;
|
|
574
589
|
var listPlansRolloverSchema = import_v46.z.object({
|
|
575
590
|
max: import_v46.z.number().nullable(),
|
|
591
|
+
maxPercentage: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional().nullable(),
|
|
576
592
|
expiryDurationType: listPlansExpiryDurationTypeSchema,
|
|
577
593
|
expiryDurationLength: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
|
|
578
594
|
});
|
|
@@ -653,6 +669,10 @@ var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
|
653
669
|
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
654
670
|
overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
655
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
|
+
});
|
|
656
676
|
var multiAttachInvoiceSchema = import_v47.z.object({
|
|
657
677
|
status: import_v47.z.string().nullable(),
|
|
658
678
|
stripeId: import_v47.z.string(),
|
|
@@ -691,6 +711,7 @@ var multiAttachProrationOutboundSchema = import_v47.z.object({
|
|
|
691
711
|
});
|
|
692
712
|
var multiAttachRolloverOutboundSchema = import_v47.z.object({
|
|
693
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(),
|
|
694
715
|
expiry_duration_type: import_v47.z.string(),
|
|
695
716
|
expiry_duration_length: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
696
717
|
});
|
|
@@ -745,9 +766,14 @@ var multiAttachUsageAlertOutboundSchema = import_v47.z.object({
|
|
|
745
766
|
threshold_type: import_v47.z.string(),
|
|
746
767
|
name: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
747
768
|
});
|
|
769
|
+
var multiAttachOverageAllowedOutboundSchema = import_v47.z.object({
|
|
770
|
+
feature_id: import_v47.z.string(),
|
|
771
|
+
enabled: import_v47.z.boolean()
|
|
772
|
+
});
|
|
748
773
|
var multiAttachBillingControlsOutboundSchema = import_v47.z.object({
|
|
749
774
|
spend_limits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
750
|
-
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()
|
|
751
777
|
});
|
|
752
778
|
var multiAttachEntityDataOutboundSchema = import_v47.z.object({
|
|
753
779
|
feature_id: import_v47.z.string(),
|
|
@@ -791,6 +817,7 @@ var multiAttachProrationSchema = import_v47.z.object({
|
|
|
791
817
|
var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
|
|
792
818
|
var multiAttachRolloverSchema = import_v47.z.object({
|
|
793
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(),
|
|
794
821
|
expiryDurationType: multiAttachExpiryDurationTypeSchema,
|
|
795
822
|
expiryDurationLength: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
796
823
|
});
|
|
@@ -831,7 +858,8 @@ var multiAttachUsageAlertSchema = import_v47.z.object({
|
|
|
831
858
|
});
|
|
832
859
|
var multiAttachBillingControlsSchema = import_v47.z.object({
|
|
833
860
|
spendLimits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitSchema), import_v47.z.undefined()]).optional(),
|
|
834
|
-
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()
|
|
835
863
|
});
|
|
836
864
|
var multiAttachEntityDataSchema = import_v47.z.object({
|
|
837
865
|
featureId: import_v47.z.string(),
|
|
@@ -1039,6 +1067,7 @@ var previewAttachProrationOutboundSchema = import_v49.z.object({
|
|
|
1039
1067
|
});
|
|
1040
1068
|
var previewAttachRolloverOutboundSchema = import_v49.z.object({
|
|
1041
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(),
|
|
1042
1071
|
expiry_duration_type: import_v49.z.string(),
|
|
1043
1072
|
expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
1044
1073
|
});
|
|
@@ -1143,6 +1172,7 @@ var previewAttachProrationSchema = import_v49.z.object({
|
|
|
1143
1172
|
var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
|
|
1144
1173
|
var previewAttachRolloverSchema = import_v49.z.object({
|
|
1145
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(),
|
|
1146
1176
|
expiryDurationType: previewAttachExpiryDurationTypeSchema,
|
|
1147
1177
|
expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
1148
1178
|
});
|
|
@@ -1252,6 +1282,10 @@ var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
|
1252
1282
|
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
1253
1283
|
overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
1254
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
|
+
});
|
|
1255
1289
|
var previewMultiAttachDiscountSchema = import_v410.z.object({
|
|
1256
1290
|
amountOff: import_v410.z.number(),
|
|
1257
1291
|
percentOff: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
@@ -1353,6 +1387,7 @@ var previewMultiAttachProrationOutboundSchema = import_v410.z.object({
|
|
|
1353
1387
|
});
|
|
1354
1388
|
var previewMultiAttachRolloverOutboundSchema = import_v410.z.object({
|
|
1355
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(),
|
|
1356
1391
|
expiry_duration_type: import_v410.z.string(),
|
|
1357
1392
|
expiry_duration_length: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
1358
1393
|
});
|
|
@@ -1410,9 +1445,17 @@ var previewMultiAttachUsageAlertOutboundSchema = import_v410.z.object({
|
|
|
1410
1445
|
threshold_type: import_v410.z.string(),
|
|
1411
1446
|
name: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
1412
1447
|
});
|
|
1448
|
+
var previewMultiAttachOverageAllowedOutboundSchema = import_v410.z.object({
|
|
1449
|
+
feature_id: import_v410.z.string(),
|
|
1450
|
+
enabled: import_v410.z.boolean()
|
|
1451
|
+
});
|
|
1413
1452
|
var previewMultiAttachBillingControlsOutboundSchema = import_v410.z.object({
|
|
1414
1453
|
spend_limits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
1415
|
-
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()
|
|
1416
1459
|
});
|
|
1417
1460
|
var previewMultiAttachEntityDataOutboundSchema = import_v410.z.object({
|
|
1418
1461
|
feature_id: import_v410.z.string(),
|
|
@@ -1457,6 +1500,7 @@ var previewMultiAttachProrationSchema = import_v410.z.object({
|
|
|
1457
1500
|
var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
|
|
1458
1501
|
var previewMultiAttachRolloverSchema = import_v410.z.object({
|
|
1459
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(),
|
|
1460
1504
|
expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
|
|
1461
1505
|
expiryDurationLength: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
1462
1506
|
});
|
|
@@ -1500,7 +1544,8 @@ var previewMultiAttachUsageAlertSchema = import_v410.z.object({
|
|
|
1500
1544
|
});
|
|
1501
1545
|
var previewMultiAttachBillingControlsSchema = import_v410.z.object({
|
|
1502
1546
|
spendLimits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitSchema), import_v410.z.undefined()]).optional(),
|
|
1503
|
-
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()
|
|
1504
1549
|
});
|
|
1505
1550
|
var previewMultiAttachEntityDataSchema = import_v410.z.object({
|
|
1506
1551
|
featureId: import_v410.z.string(),
|
|
@@ -1696,6 +1741,7 @@ var previewUpdateProrationOutboundSchema = import_v411.z.object({
|
|
|
1696
1741
|
});
|
|
1697
1742
|
var previewUpdateRolloverOutboundSchema = import_v411.z.object({
|
|
1698
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(),
|
|
1699
1745
|
expiry_duration_type: import_v411.z.string(),
|
|
1700
1746
|
expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
1701
1747
|
});
|
|
@@ -1780,6 +1826,7 @@ var previewUpdateProrationSchema = import_v411.z.object({
|
|
|
1780
1826
|
var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
|
|
1781
1827
|
var previewUpdateRolloverSchema = import_v411.z.object({
|
|
1782
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(),
|
|
1783
1830
|
expiryDurationType: previewUpdateExpiryDurationTypeSchema,
|
|
1784
1831
|
expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
1785
1832
|
});
|
|
@@ -1943,6 +1990,7 @@ var setupPaymentProrationOutboundSchema = import_v413.z.object({
|
|
|
1943
1990
|
});
|
|
1944
1991
|
var setupPaymentRolloverOutboundSchema = import_v413.z.object({
|
|
1945
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(),
|
|
1946
1994
|
expiry_duration_type: import_v413.z.string(),
|
|
1947
1995
|
expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
1948
1996
|
});
|
|
@@ -2033,6 +2081,7 @@ var setupPaymentProrationSchema = import_v413.z.object({
|
|
|
2033
2081
|
var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
|
|
2034
2082
|
var setupPaymentRolloverSchema = import_v413.z.object({
|
|
2035
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(),
|
|
2036
2085
|
expiryDurationType: setupPaymentExpiryDurationTypeSchema,
|
|
2037
2086
|
expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
2038
2087
|
});
|
|
@@ -2143,6 +2192,7 @@ var billingUpdateProrationOutboundSchema = import_v414.z.object({
|
|
|
2143
2192
|
});
|
|
2144
2193
|
var billingUpdateRolloverOutboundSchema = import_v414.z.object({
|
|
2145
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(),
|
|
2146
2196
|
expiry_duration_type: import_v414.z.string(),
|
|
2147
2197
|
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
2148
2198
|
});
|
|
@@ -2223,6 +2273,7 @@ var billingUpdateProrationSchema = import_v414.z.object({
|
|
|
2223
2273
|
var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
|
|
2224
2274
|
var billingUpdateRolloverSchema = import_v414.z.object({
|
|
2225
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(),
|
|
2226
2277
|
expiryDurationType: billingUpdateExpiryDurationTypeSchema,
|
|
2227
2278
|
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
2228
2279
|
});
|