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,12 +1,12 @@
|
|
|
1
1
|
import "./chunk-HIWOK3G6.mjs";
|
|
2
2
|
import {
|
|
3
3
|
createAutumnEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UCMJFTKD.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createHandleBetterAuthRoute
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3C2VGNW3.mjs";
|
|
8
8
|
import "./chunk-J2WYVGHS.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-CG3LL2TQ.mjs";
|
|
10
10
|
import "./chunk-BT3EAYVW.mjs";
|
|
11
11
|
import "./chunk-GJAMWZNZ.mjs";
|
|
12
12
|
|
|
@@ -51,6 +51,10 @@ type GetOrCreateCustomerAutoTopup = {
|
|
|
51
51
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
52
52
|
*/
|
|
53
53
|
purchaseLimit?: GetOrCreateCustomerPurchaseLimit | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
56
|
+
*/
|
|
57
|
+
invoiceMode?: boolean | undefined;
|
|
54
58
|
};
|
|
55
59
|
type GetOrCreateCustomerSpendLimit = {
|
|
56
60
|
/**
|
|
@@ -99,6 +103,16 @@ type GetOrCreateCustomerUsageAlert = {
|
|
|
99
103
|
*/
|
|
100
104
|
name?: string | undefined;
|
|
101
105
|
};
|
|
106
|
+
type GetOrCreateCustomerOverageAllowed = {
|
|
107
|
+
/**
|
|
108
|
+
* The feature ID this overage allowed control applies to.
|
|
109
|
+
*/
|
|
110
|
+
featureId: string;
|
|
111
|
+
/**
|
|
112
|
+
* Whether overage is allowed for this feature.
|
|
113
|
+
*/
|
|
114
|
+
enabled?: boolean | undefined;
|
|
115
|
+
};
|
|
102
116
|
/**
|
|
103
117
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
104
118
|
*/
|
|
@@ -115,6 +129,10 @@ type GetOrCreateCustomerBillingControls = {
|
|
|
115
129
|
* List of usage alert configurations per feature.
|
|
116
130
|
*/
|
|
117
131
|
usageAlerts?: Array<GetOrCreateCustomerUsageAlert> | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* List of overage allowed controls per feature. When enabled, usage can exceed balance.
|
|
134
|
+
*/
|
|
135
|
+
overageAllowed?: Array<GetOrCreateCustomerOverageAllowed> | undefined;
|
|
118
136
|
};
|
|
119
137
|
type GetOrCreateCustomerParams = {
|
|
120
138
|
customerId: string | null;
|
|
@@ -51,6 +51,10 @@ type GetOrCreateCustomerAutoTopup = {
|
|
|
51
51
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
52
52
|
*/
|
|
53
53
|
purchaseLimit?: GetOrCreateCustomerPurchaseLimit | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
56
|
+
*/
|
|
57
|
+
invoiceMode?: boolean | undefined;
|
|
54
58
|
};
|
|
55
59
|
type GetOrCreateCustomerSpendLimit = {
|
|
56
60
|
/**
|
|
@@ -99,6 +103,16 @@ type GetOrCreateCustomerUsageAlert = {
|
|
|
99
103
|
*/
|
|
100
104
|
name?: string | undefined;
|
|
101
105
|
};
|
|
106
|
+
type GetOrCreateCustomerOverageAllowed = {
|
|
107
|
+
/**
|
|
108
|
+
* The feature ID this overage allowed control applies to.
|
|
109
|
+
*/
|
|
110
|
+
featureId: string;
|
|
111
|
+
/**
|
|
112
|
+
* Whether overage is allowed for this feature.
|
|
113
|
+
*/
|
|
114
|
+
enabled?: boolean | undefined;
|
|
115
|
+
};
|
|
102
116
|
/**
|
|
103
117
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
104
118
|
*/
|
|
@@ -115,6 +129,10 @@ type GetOrCreateCustomerBillingControls = {
|
|
|
115
129
|
* List of usage alert configurations per feature.
|
|
116
130
|
*/
|
|
117
131
|
usageAlerts?: Array<GetOrCreateCustomerUsageAlert> | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* List of overage allowed controls per feature. When enabled, usage can exceed balance.
|
|
134
|
+
*/
|
|
135
|
+
overageAllowed?: Array<GetOrCreateCustomerOverageAllowed> | undefined;
|
|
118
136
|
};
|
|
119
137
|
type GetOrCreateCustomerParams = {
|
|
120
138
|
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(),
|
|
@@ -371,7 +377,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = import_v44.z.object({
|
|
|
371
377
|
enabled: import_v44.z.boolean(),
|
|
372
378
|
threshold: import_v44.z.number(),
|
|
373
379
|
quantity: import_v44.z.number(),
|
|
374
|
-
purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional()
|
|
380
|
+
purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional(),
|
|
381
|
+
invoice_mode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
375
382
|
});
|
|
376
383
|
var getOrCreateCustomerSpendLimitOutboundSchema = import_v44.z.object({
|
|
377
384
|
feature_id: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
|
|
@@ -385,6 +392,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = import_v44.z.object({
|
|
|
385
392
|
threshold_type: import_v44.z.string(),
|
|
386
393
|
name: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
|
|
387
394
|
});
|
|
395
|
+
var getOrCreateCustomerOverageAllowedOutboundSchema = import_v44.z.object({
|
|
396
|
+
feature_id: import_v44.z.string(),
|
|
397
|
+
enabled: import_v44.z.boolean()
|
|
398
|
+
});
|
|
388
399
|
var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
389
400
|
auto_topups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupOutboundSchema), import_v44.z.undefined()]).optional(),
|
|
390
401
|
spend_limits: import_v44.z.union([
|
|
@@ -394,6 +405,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
|
394
405
|
usage_alerts: import_v44.z.union([
|
|
395
406
|
import_v44.z.array(getOrCreateCustomerUsageAlertOutboundSchema),
|
|
396
407
|
import_v44.z.undefined()
|
|
408
|
+
]).optional(),
|
|
409
|
+
overage_allowed: import_v44.z.union([
|
|
410
|
+
import_v44.z.array(getOrCreateCustomerOverageAllowedOutboundSchema),
|
|
411
|
+
import_v44.z.undefined()
|
|
397
412
|
]).optional()
|
|
398
413
|
});
|
|
399
414
|
var getOrCreateCustomerParamsOutboundSchema = import_v44.z.object({
|
|
@@ -421,7 +436,8 @@ var getOrCreateCustomerAutoTopupSchema = import_v44.z.object({
|
|
|
421
436
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
422
437
|
threshold: import_v44.z.number(),
|
|
423
438
|
quantity: import_v44.z.number(),
|
|
424
|
-
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional()
|
|
439
|
+
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional(),
|
|
440
|
+
invoiceMode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
425
441
|
});
|
|
426
442
|
var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
|
|
427
443
|
var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
@@ -434,7 +450,8 @@ var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
|
434
450
|
var getOrCreateCustomerBillingControlsSchema = import_v44.z.object({
|
|
435
451
|
autoTopups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupSchema), import_v44.z.undefined()]).optional(),
|
|
436
452
|
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()
|
|
453
|
+
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional(),
|
|
454
|
+
overageAllowed: import_v44.z.union([import_v44.z.array(getOrCreateCustomerOverageAllowedSchema), import_v44.z.undefined()]).optional()
|
|
438
455
|
});
|
|
439
456
|
var getOrCreateCustomerParamsSchema = import_v44.z.object({
|
|
440
457
|
customerId: import_v44.z.string().nullable(),
|
|
@@ -573,6 +590,7 @@ var listPlansItemPriceSchema = import_v46.z.object({
|
|
|
573
590
|
var listPlansExpiryDurationTypeSchema = openEnumSchema2;
|
|
574
591
|
var listPlansRolloverSchema = import_v46.z.object({
|
|
575
592
|
max: import_v46.z.number().nullable(),
|
|
593
|
+
maxPercentage: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional().nullable(),
|
|
576
594
|
expiryDurationType: listPlansExpiryDurationTypeSchema,
|
|
577
595
|
expiryDurationLength: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
|
|
578
596
|
});
|
|
@@ -653,6 +671,10 @@ var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
|
653
671
|
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
654
672
|
overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
655
673
|
});
|
|
674
|
+
var multiAttachOverageAllowedSchema = import_v47.z.object({
|
|
675
|
+
featureId: import_v47.z.string(),
|
|
676
|
+
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
|
|
677
|
+
});
|
|
656
678
|
var multiAttachInvoiceSchema = import_v47.z.object({
|
|
657
679
|
status: import_v47.z.string().nullable(),
|
|
658
680
|
stripeId: import_v47.z.string(),
|
|
@@ -691,6 +713,7 @@ var multiAttachProrationOutboundSchema = import_v47.z.object({
|
|
|
691
713
|
});
|
|
692
714
|
var multiAttachRolloverOutboundSchema = import_v47.z.object({
|
|
693
715
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
716
|
+
max_percentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
694
717
|
expiry_duration_type: import_v47.z.string(),
|
|
695
718
|
expiry_duration_length: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
696
719
|
});
|
|
@@ -745,9 +768,14 @@ var multiAttachUsageAlertOutboundSchema = import_v47.z.object({
|
|
|
745
768
|
threshold_type: import_v47.z.string(),
|
|
746
769
|
name: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
747
770
|
});
|
|
771
|
+
var multiAttachOverageAllowedOutboundSchema = import_v47.z.object({
|
|
772
|
+
feature_id: import_v47.z.string(),
|
|
773
|
+
enabled: import_v47.z.boolean()
|
|
774
|
+
});
|
|
748
775
|
var multiAttachBillingControlsOutboundSchema = import_v47.z.object({
|
|
749
776
|
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()
|
|
777
|
+
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
778
|
+
overage_allowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedOutboundSchema), import_v47.z.undefined()]).optional()
|
|
751
779
|
});
|
|
752
780
|
var multiAttachEntityDataOutboundSchema = import_v47.z.object({
|
|
753
781
|
feature_id: import_v47.z.string(),
|
|
@@ -791,6 +819,7 @@ var multiAttachProrationSchema = import_v47.z.object({
|
|
|
791
819
|
var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
|
|
792
820
|
var multiAttachRolloverSchema = import_v47.z.object({
|
|
793
821
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
822
|
+
maxPercentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
794
823
|
expiryDurationType: multiAttachExpiryDurationTypeSchema,
|
|
795
824
|
expiryDurationLength: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
796
825
|
});
|
|
@@ -831,7 +860,8 @@ var multiAttachUsageAlertSchema = import_v47.z.object({
|
|
|
831
860
|
});
|
|
832
861
|
var multiAttachBillingControlsSchema = import_v47.z.object({
|
|
833
862
|
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()
|
|
863
|
+
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional(),
|
|
864
|
+
overageAllowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedSchema), import_v47.z.undefined()]).optional()
|
|
835
865
|
});
|
|
836
866
|
var multiAttachEntityDataSchema = import_v47.z.object({
|
|
837
867
|
featureId: import_v47.z.string(),
|
|
@@ -1039,6 +1069,7 @@ var previewAttachProrationOutboundSchema = import_v49.z.object({
|
|
|
1039
1069
|
});
|
|
1040
1070
|
var previewAttachRolloverOutboundSchema = import_v49.z.object({
|
|
1041
1071
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
1072
|
+
max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
1042
1073
|
expiry_duration_type: import_v49.z.string(),
|
|
1043
1074
|
expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
1044
1075
|
});
|
|
@@ -1143,6 +1174,7 @@ var previewAttachProrationSchema = import_v49.z.object({
|
|
|
1143
1174
|
var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
|
|
1144
1175
|
var previewAttachRolloverSchema = import_v49.z.object({
|
|
1145
1176
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
1177
|
+
maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
1146
1178
|
expiryDurationType: previewAttachExpiryDurationTypeSchema,
|
|
1147
1179
|
expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
1148
1180
|
});
|
|
@@ -1252,6 +1284,10 @@ var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
|
1252
1284
|
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
1253
1285
|
overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
1254
1286
|
});
|
|
1287
|
+
var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
|
|
1288
|
+
featureId: import_v410.z.string(),
|
|
1289
|
+
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
|
|
1290
|
+
});
|
|
1255
1291
|
var previewMultiAttachDiscountSchema = import_v410.z.object({
|
|
1256
1292
|
amountOff: import_v410.z.number(),
|
|
1257
1293
|
percentOff: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
@@ -1353,6 +1389,7 @@ var previewMultiAttachProrationOutboundSchema = import_v410.z.object({
|
|
|
1353
1389
|
});
|
|
1354
1390
|
var previewMultiAttachRolloverOutboundSchema = import_v410.z.object({
|
|
1355
1391
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
1392
|
+
max_percentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
1356
1393
|
expiry_duration_type: import_v410.z.string(),
|
|
1357
1394
|
expiry_duration_length: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
1358
1395
|
});
|
|
@@ -1410,9 +1447,17 @@ var previewMultiAttachUsageAlertOutboundSchema = import_v410.z.object({
|
|
|
1410
1447
|
threshold_type: import_v410.z.string(),
|
|
1411
1448
|
name: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
1412
1449
|
});
|
|
1450
|
+
var previewMultiAttachOverageAllowedOutboundSchema = import_v410.z.object({
|
|
1451
|
+
feature_id: import_v410.z.string(),
|
|
1452
|
+
enabled: import_v410.z.boolean()
|
|
1453
|
+
});
|
|
1413
1454
|
var previewMultiAttachBillingControlsOutboundSchema = import_v410.z.object({
|
|
1414
1455
|
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()
|
|
1456
|
+
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
1457
|
+
overage_allowed: import_v410.z.union([
|
|
1458
|
+
import_v410.z.array(previewMultiAttachOverageAllowedOutboundSchema),
|
|
1459
|
+
import_v410.z.undefined()
|
|
1460
|
+
]).optional()
|
|
1416
1461
|
});
|
|
1417
1462
|
var previewMultiAttachEntityDataOutboundSchema = import_v410.z.object({
|
|
1418
1463
|
feature_id: import_v410.z.string(),
|
|
@@ -1457,6 +1502,7 @@ var previewMultiAttachProrationSchema = import_v410.z.object({
|
|
|
1457
1502
|
var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
|
|
1458
1503
|
var previewMultiAttachRolloverSchema = import_v410.z.object({
|
|
1459
1504
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
1505
|
+
maxPercentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
1460
1506
|
expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
|
|
1461
1507
|
expiryDurationLength: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
1462
1508
|
});
|
|
@@ -1500,7 +1546,8 @@ var previewMultiAttachUsageAlertSchema = import_v410.z.object({
|
|
|
1500
1546
|
});
|
|
1501
1547
|
var previewMultiAttachBillingControlsSchema = import_v410.z.object({
|
|
1502
1548
|
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()
|
|
1549
|
+
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional(),
|
|
1550
|
+
overageAllowed: import_v410.z.union([import_v410.z.array(previewMultiAttachOverageAllowedSchema), import_v410.z.undefined()]).optional()
|
|
1504
1551
|
});
|
|
1505
1552
|
var previewMultiAttachEntityDataSchema = import_v410.z.object({
|
|
1506
1553
|
featureId: import_v410.z.string(),
|
|
@@ -1696,6 +1743,7 @@ var previewUpdateProrationOutboundSchema = import_v411.z.object({
|
|
|
1696
1743
|
});
|
|
1697
1744
|
var previewUpdateRolloverOutboundSchema = import_v411.z.object({
|
|
1698
1745
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
1746
|
+
max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
1699
1747
|
expiry_duration_type: import_v411.z.string(),
|
|
1700
1748
|
expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
1701
1749
|
});
|
|
@@ -1780,6 +1828,7 @@ var previewUpdateProrationSchema = import_v411.z.object({
|
|
|
1780
1828
|
var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
|
|
1781
1829
|
var previewUpdateRolloverSchema = import_v411.z.object({
|
|
1782
1830
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
1831
|
+
maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
1783
1832
|
expiryDurationType: previewUpdateExpiryDurationTypeSchema,
|
|
1784
1833
|
expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
1785
1834
|
});
|
|
@@ -1943,6 +1992,7 @@ var setupPaymentProrationOutboundSchema = import_v413.z.object({
|
|
|
1943
1992
|
});
|
|
1944
1993
|
var setupPaymentRolloverOutboundSchema = import_v413.z.object({
|
|
1945
1994
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
1995
|
+
max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
1946
1996
|
expiry_duration_type: import_v413.z.string(),
|
|
1947
1997
|
expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
1948
1998
|
});
|
|
@@ -2033,6 +2083,7 @@ var setupPaymentProrationSchema = import_v413.z.object({
|
|
|
2033
2083
|
var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
|
|
2034
2084
|
var setupPaymentRolloverSchema = import_v413.z.object({
|
|
2035
2085
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
2086
|
+
maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
2036
2087
|
expiryDurationType: setupPaymentExpiryDurationTypeSchema,
|
|
2037
2088
|
expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
2038
2089
|
});
|
|
@@ -2143,6 +2194,7 @@ var billingUpdateProrationOutboundSchema = import_v414.z.object({
|
|
|
2143
2194
|
});
|
|
2144
2195
|
var billingUpdateRolloverOutboundSchema = import_v414.z.object({
|
|
2145
2196
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
2197
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
2146
2198
|
expiry_duration_type: import_v414.z.string(),
|
|
2147
2199
|
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
2148
2200
|
});
|
|
@@ -2223,6 +2275,7 @@ var billingUpdateProrationSchema = import_v414.z.object({
|
|
|
2223
2275
|
var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
|
|
2224
2276
|
var billingUpdateRolloverSchema = import_v414.z.object({
|
|
2225
2277
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
2278
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
2226
2279
|
expiryDurationType: billingUpdateExpiryDurationTypeSchema,
|
|
2227
2280
|
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
2228
2281
|
});
|