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
|
@@ -78,8 +78,8 @@ var SDK_METADATA = {
|
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "2.2.0",
|
|
80
80
|
sdkVersion: "0.10.17",
|
|
81
|
-
genVersion: "2.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.
|
|
81
|
+
genVersion: "2.879.1",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.1 2.2.0 @useautumn/sdk"
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
// ../sdk/src/lib/http.ts
|
|
@@ -1001,8 +1001,8 @@ function applyBearer(state, spec) {
|
|
|
1001
1001
|
state.headers[spec.fieldName] = value;
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
|
-
function resolveGlobalSecurity(security) {
|
|
1005
|
-
|
|
1004
|
+
function resolveGlobalSecurity(security, allowedFields) {
|
|
1005
|
+
let inputs = [
|
|
1006
1006
|
[
|
|
1007
1007
|
{
|
|
1008
1008
|
fieldName: "Authorization",
|
|
@@ -1010,7 +1010,16 @@ function resolveGlobalSecurity(security) {
|
|
|
1010
1010
|
value: security?.secretKey ?? env().AUTUMN_SECRET_KEY
|
|
1011
1011
|
}
|
|
1012
1012
|
]
|
|
1013
|
-
|
|
1013
|
+
];
|
|
1014
|
+
if (allowedFields) {
|
|
1015
|
+
inputs = allowedFields.map((i) => {
|
|
1016
|
+
if (i < 0 || i >= inputs.length) {
|
|
1017
|
+
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
1018
|
+
}
|
|
1019
|
+
return inputs[i];
|
|
1020
|
+
});
|
|
1021
|
+
}
|
|
1022
|
+
return resolveSecurity(...inputs);
|
|
1014
1023
|
}
|
|
1015
1024
|
async function extractSecurity(sec) {
|
|
1016
1025
|
if (sec == null) {
|
|
@@ -1557,11 +1566,13 @@ var AttachExpiryDurationType$outboundSchema = z10.enum(AttachExpiryDurationType)
|
|
|
1557
1566
|
var AttachRollover$outboundSchema = z10.pipe(
|
|
1558
1567
|
z10.object({
|
|
1559
1568
|
max: z10.optional(z10.number()),
|
|
1569
|
+
maxPercentage: z10.optional(z10.number()),
|
|
1560
1570
|
expiryDurationType: AttachExpiryDurationType$outboundSchema,
|
|
1561
1571
|
expiryDurationLength: z10.optional(z10.number())
|
|
1562
1572
|
}),
|
|
1563
1573
|
z10.transform((v) => {
|
|
1564
1574
|
return remap(v, {
|
|
1575
|
+
maxPercentage: "max_percentage",
|
|
1565
1576
|
expiryDurationType: "expiry_duration_type",
|
|
1566
1577
|
expiryDurationLength: "expiry_duration_length"
|
|
1567
1578
|
});
|
|
@@ -2086,11 +2097,13 @@ var BillingUpdateExpiryDurationType$outboundSchema = z12.enum(BillingUpdateExpir
|
|
|
2086
2097
|
var BillingUpdateRollover$outboundSchema = z12.pipe(
|
|
2087
2098
|
z12.object({
|
|
2088
2099
|
max: z12.optional(z12.number()),
|
|
2100
|
+
maxPercentage: z12.optional(z12.number()),
|
|
2089
2101
|
expiryDurationType: BillingUpdateExpiryDurationType$outboundSchema,
|
|
2090
2102
|
expiryDurationLength: z12.optional(z12.number())
|
|
2091
2103
|
}),
|
|
2092
2104
|
z12.transform((v) => {
|
|
2093
2105
|
return remap(v, {
|
|
2106
|
+
maxPercentage: "max_percentage",
|
|
2094
2107
|
expiryDurationType: "expiry_duration_type",
|
|
2095
2108
|
expiryDurationLength: "expiry_duration_length"
|
|
2096
2109
|
});
|
|
@@ -2432,11 +2445,19 @@ var ProductDisplay$inboundSchema = z13.pipe(
|
|
|
2432
2445
|
})
|
|
2433
2446
|
);
|
|
2434
2447
|
var RolloverDuration$inboundSchema = inboundSchema(RolloverDuration);
|
|
2435
|
-
var CheckRollover$inboundSchema = z13.
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2448
|
+
var CheckRollover$inboundSchema = z13.pipe(
|
|
2449
|
+
z13.object({
|
|
2450
|
+
max: z13.optional(z13.nullable(number2())),
|
|
2451
|
+
max_percentage: z13.optional(z13.nullable(number2())),
|
|
2452
|
+
duration: z13._default(RolloverDuration$inboundSchema, "month"),
|
|
2453
|
+
length: number2()
|
|
2454
|
+
}),
|
|
2455
|
+
z13.transform((v) => {
|
|
2456
|
+
return remap(v, {
|
|
2457
|
+
"max_percentage": "maxPercentage"
|
|
2458
|
+
});
|
|
2459
|
+
})
|
|
2460
|
+
);
|
|
2440
2461
|
var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
|
|
2441
2462
|
var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
|
|
2442
2463
|
var Config$inboundSchema = z13.pipe(
|
|
@@ -2713,6 +2734,17 @@ var CustomerDataUsageAlert$outboundSchema = z15.pipe(
|
|
|
2713
2734
|
});
|
|
2714
2735
|
})
|
|
2715
2736
|
);
|
|
2737
|
+
var CustomerDataOverageAllowed$outboundSchema = z15.pipe(
|
|
2738
|
+
z15.object({
|
|
2739
|
+
featureId: z15.string(),
|
|
2740
|
+
enabled: z15._default(z15.boolean(), false)
|
|
2741
|
+
}),
|
|
2742
|
+
z15.transform((v) => {
|
|
2743
|
+
return remap(v, {
|
|
2744
|
+
featureId: "feature_id"
|
|
2745
|
+
});
|
|
2746
|
+
})
|
|
2747
|
+
);
|
|
2716
2748
|
var CustomerDataBillingControls$outboundSchema = z15.pipe(
|
|
2717
2749
|
z15.object({
|
|
2718
2750
|
autoTopups: z15.optional(
|
|
@@ -2723,13 +2755,17 @@ var CustomerDataBillingControls$outboundSchema = z15.pipe(
|
|
|
2723
2755
|
),
|
|
2724
2756
|
usageAlerts: z15.optional(
|
|
2725
2757
|
z15.array(z15.lazy(() => CustomerDataUsageAlert$outboundSchema))
|
|
2758
|
+
),
|
|
2759
|
+
overageAllowed: z15.optional(
|
|
2760
|
+
z15.array(z15.lazy(() => CustomerDataOverageAllowed$outboundSchema))
|
|
2726
2761
|
)
|
|
2727
2762
|
}),
|
|
2728
2763
|
z15.transform((v) => {
|
|
2729
2764
|
return remap(v, {
|
|
2730
2765
|
autoTopups: "auto_topups",
|
|
2731
2766
|
spendLimits: "spend_limits",
|
|
2732
|
-
usageAlerts: "usage_alerts"
|
|
2767
|
+
usageAlerts: "usage_alerts",
|
|
2768
|
+
overageAllowed: "overage_allowed"
|
|
2733
2769
|
});
|
|
2734
2770
|
})
|
|
2735
2771
|
);
|
|
@@ -2940,11 +2976,13 @@ var ExpiryDurationType$inboundSchema = inboundSchema(ExpiryDurationType);
|
|
|
2940
2976
|
var PlanRollover$inboundSchema = z16.pipe(
|
|
2941
2977
|
z16.object({
|
|
2942
2978
|
max: nullable(number2()),
|
|
2979
|
+
max_percentage: z16.optional(z16.nullable(number2())),
|
|
2943
2980
|
expiry_duration_type: ExpiryDurationType$inboundSchema,
|
|
2944
2981
|
expiry_duration_length: optional2(number2())
|
|
2945
2982
|
}),
|
|
2946
2983
|
z16.transform((v) => {
|
|
2947
2984
|
return remap(v, {
|
|
2985
|
+
"max_percentage": "maxPercentage",
|
|
2948
2986
|
"expiry_duration_type": "expiryDurationType",
|
|
2949
2987
|
"expiry_duration_length": "expiryDurationLength"
|
|
2950
2988
|
});
|
|
@@ -3083,6 +3121,17 @@ var CreateEntityUsageAlertRequestBody$outboundSchema = z17.pipe(
|
|
|
3083
3121
|
});
|
|
3084
3122
|
})
|
|
3085
3123
|
);
|
|
3124
|
+
var CreateEntityOverageAllowedRequest$outboundSchema = z17.pipe(
|
|
3125
|
+
z17.object({
|
|
3126
|
+
featureId: z17.string(),
|
|
3127
|
+
enabled: z17._default(z17.boolean(), false)
|
|
3128
|
+
}),
|
|
3129
|
+
z17.transform((v) => {
|
|
3130
|
+
return remap(v, {
|
|
3131
|
+
featureId: "feature_id"
|
|
3132
|
+
});
|
|
3133
|
+
})
|
|
3134
|
+
);
|
|
3086
3135
|
var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
|
|
3087
3136
|
z17.object({
|
|
3088
3137
|
spendLimits: z17.optional(
|
|
@@ -3090,12 +3139,16 @@ var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
|
|
|
3090
3139
|
),
|
|
3091
3140
|
usageAlerts: z17.optional(
|
|
3092
3141
|
z17.array(z17.lazy(() => CreateEntityUsageAlertRequestBody$outboundSchema))
|
|
3142
|
+
),
|
|
3143
|
+
overageAllowed: z17.optional(
|
|
3144
|
+
z17.array(z17.lazy(() => CreateEntityOverageAllowedRequest$outboundSchema))
|
|
3093
3145
|
)
|
|
3094
3146
|
}),
|
|
3095
3147
|
z17.transform((v) => {
|
|
3096
3148
|
return remap(v, {
|
|
3097
3149
|
spendLimits: "spend_limits",
|
|
3098
|
-
usageAlerts: "usage_alerts"
|
|
3150
|
+
usageAlerts: "usage_alerts",
|
|
3151
|
+
overageAllowed: "overage_allowed"
|
|
3099
3152
|
});
|
|
3100
3153
|
})
|
|
3101
3154
|
);
|
|
@@ -3252,6 +3305,17 @@ var CreateEntityUsageAlertResponse$inboundSchema = z17.pipe(
|
|
|
3252
3305
|
});
|
|
3253
3306
|
})
|
|
3254
3307
|
);
|
|
3308
|
+
var CreateEntityOverageAllowedResponse$inboundSchema = z17.pipe(
|
|
3309
|
+
z17.object({
|
|
3310
|
+
feature_id: string4(),
|
|
3311
|
+
enabled: z17._default(boolean2(), false)
|
|
3312
|
+
}),
|
|
3313
|
+
z17.transform((v) => {
|
|
3314
|
+
return remap(v, {
|
|
3315
|
+
"feature_id": "featureId"
|
|
3316
|
+
});
|
|
3317
|
+
})
|
|
3318
|
+
);
|
|
3255
3319
|
var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
|
|
3256
3320
|
z17.object({
|
|
3257
3321
|
spend_limits: optional2(
|
|
@@ -3259,12 +3323,16 @@ var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
|
|
|
3259
3323
|
),
|
|
3260
3324
|
usage_alerts: optional2(
|
|
3261
3325
|
z17.array(z17.lazy(() => CreateEntityUsageAlertResponse$inboundSchema))
|
|
3326
|
+
),
|
|
3327
|
+
overage_allowed: optional2(
|
|
3328
|
+
z17.array(z17.lazy(() => CreateEntityOverageAllowedResponse$inboundSchema))
|
|
3262
3329
|
)
|
|
3263
3330
|
}),
|
|
3264
3331
|
z17.transform((v) => {
|
|
3265
3332
|
return remap(v, {
|
|
3266
3333
|
"spend_limits": "spendLimits",
|
|
3267
|
-
"usage_alerts": "usageAlerts"
|
|
3334
|
+
"usage_alerts": "usageAlerts",
|
|
3335
|
+
"overage_allowed": "overageAllowed"
|
|
3268
3336
|
});
|
|
3269
3337
|
})
|
|
3270
3338
|
);
|
|
@@ -3614,11 +3682,13 @@ var CreatePlanExpiryDurationTypeRequest$outboundSchema = z19.enum(CreatePlanExpi
|
|
|
3614
3682
|
var CreatePlanRolloverRequest$outboundSchema = z19.pipe(
|
|
3615
3683
|
z19.object({
|
|
3616
3684
|
max: z19.optional(z19.number()),
|
|
3685
|
+
maxPercentage: z19.optional(z19.number()),
|
|
3617
3686
|
expiryDurationType: CreatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
3618
3687
|
expiryDurationLength: z19.optional(z19.number())
|
|
3619
3688
|
}),
|
|
3620
3689
|
z19.transform((v) => {
|
|
3621
3690
|
return remap(v, {
|
|
3691
|
+
maxPercentage: "max_percentage",
|
|
3622
3692
|
expiryDurationType: "expiry_duration_type",
|
|
3623
3693
|
expiryDurationLength: "expiry_duration_length"
|
|
3624
3694
|
});
|
|
@@ -3795,11 +3865,13 @@ var CreatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePla
|
|
|
3795
3865
|
var CreatePlanRolloverResponse$inboundSchema = z19.pipe(
|
|
3796
3866
|
z19.object({
|
|
3797
3867
|
max: nullable(number2()),
|
|
3868
|
+
max_percentage: z19.optional(z19.nullable(number2())),
|
|
3798
3869
|
expiry_duration_type: CreatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
3799
3870
|
expiry_duration_length: optional2(number2())
|
|
3800
3871
|
}),
|
|
3801
3872
|
z19.transform((v) => {
|
|
3802
3873
|
return remap(v, {
|
|
3874
|
+
"max_percentage": "maxPercentage",
|
|
3803
3875
|
"expiry_duration_type": "expiryDurationType",
|
|
3804
3876
|
"expiry_duration_length": "expiryDurationLength"
|
|
3805
3877
|
});
|
|
@@ -4021,6 +4093,17 @@ var CustomerUsageAlert$inboundSchema = z21.pipe(
|
|
|
4021
4093
|
});
|
|
4022
4094
|
})
|
|
4023
4095
|
);
|
|
4096
|
+
var CustomerOverageAllowed$inboundSchema = z21.pipe(
|
|
4097
|
+
z21.object({
|
|
4098
|
+
feature_id: string4(),
|
|
4099
|
+
enabled: z21._default(boolean2(), false)
|
|
4100
|
+
}),
|
|
4101
|
+
z21.transform((v) => {
|
|
4102
|
+
return remap(v, {
|
|
4103
|
+
"feature_id": "featureId"
|
|
4104
|
+
});
|
|
4105
|
+
})
|
|
4106
|
+
);
|
|
4024
4107
|
var CustomerBillingControls$inboundSchema = z21.pipe(
|
|
4025
4108
|
z21.object({
|
|
4026
4109
|
auto_topups: optional2(
|
|
@@ -4031,13 +4114,17 @@ var CustomerBillingControls$inboundSchema = z21.pipe(
|
|
|
4031
4114
|
),
|
|
4032
4115
|
usage_alerts: optional2(
|
|
4033
4116
|
z21.array(z21.lazy(() => CustomerUsageAlert$inboundSchema))
|
|
4117
|
+
),
|
|
4118
|
+
overage_allowed: optional2(
|
|
4119
|
+
z21.array(z21.lazy(() => CustomerOverageAllowed$inboundSchema))
|
|
4034
4120
|
)
|
|
4035
4121
|
}),
|
|
4036
4122
|
z21.transform((v) => {
|
|
4037
4123
|
return remap(v, {
|
|
4038
4124
|
"auto_topups": "autoTopups",
|
|
4039
4125
|
"spend_limits": "spendLimits",
|
|
4040
|
-
"usage_alerts": "usageAlerts"
|
|
4126
|
+
"usage_alerts": "usageAlerts",
|
|
4127
|
+
"overage_allowed": "overageAllowed"
|
|
4041
4128
|
});
|
|
4042
4129
|
})
|
|
4043
4130
|
);
|
|
@@ -4576,6 +4663,17 @@ var GetEntityUsageAlert$inboundSchema = z28.pipe(
|
|
|
4576
4663
|
});
|
|
4577
4664
|
})
|
|
4578
4665
|
);
|
|
4666
|
+
var GetEntityOverageAllowed$inboundSchema = z28.pipe(
|
|
4667
|
+
z28.object({
|
|
4668
|
+
feature_id: string4(),
|
|
4669
|
+
enabled: z28._default(boolean2(), false)
|
|
4670
|
+
}),
|
|
4671
|
+
z28.transform((v) => {
|
|
4672
|
+
return remap(v, {
|
|
4673
|
+
"feature_id": "featureId"
|
|
4674
|
+
});
|
|
4675
|
+
})
|
|
4676
|
+
);
|
|
4579
4677
|
var GetEntityBillingControls$inboundSchema = z28.pipe(
|
|
4580
4678
|
z28.object({
|
|
4581
4679
|
spend_limits: optional2(
|
|
@@ -4583,12 +4681,16 @@ var GetEntityBillingControls$inboundSchema = z28.pipe(
|
|
|
4583
4681
|
),
|
|
4584
4682
|
usage_alerts: optional2(
|
|
4585
4683
|
z28.array(z28.lazy(() => GetEntityUsageAlert$inboundSchema))
|
|
4684
|
+
),
|
|
4685
|
+
overage_allowed: optional2(
|
|
4686
|
+
z28.array(z28.lazy(() => GetEntityOverageAllowed$inboundSchema))
|
|
4586
4687
|
)
|
|
4587
4688
|
}),
|
|
4588
4689
|
z28.transform((v) => {
|
|
4589
4690
|
return remap(v, {
|
|
4590
4691
|
"spend_limits": "spendLimits",
|
|
4591
|
-
"usage_alerts": "usageAlerts"
|
|
4692
|
+
"usage_alerts": "usageAlerts",
|
|
4693
|
+
"overage_allowed": "overageAllowed"
|
|
4592
4694
|
});
|
|
4593
4695
|
})
|
|
4594
4696
|
);
|
|
@@ -4766,6 +4868,17 @@ var GetOrCreateCustomerUsageAlert$outboundSchema = z30.pipe(
|
|
|
4766
4868
|
});
|
|
4767
4869
|
})
|
|
4768
4870
|
);
|
|
4871
|
+
var GetOrCreateCustomerOverageAllowed$outboundSchema = z30.pipe(
|
|
4872
|
+
z30.object({
|
|
4873
|
+
featureId: z30.string(),
|
|
4874
|
+
enabled: z30._default(z30.boolean(), false)
|
|
4875
|
+
}),
|
|
4876
|
+
z30.transform((v) => {
|
|
4877
|
+
return remap(v, {
|
|
4878
|
+
featureId: "feature_id"
|
|
4879
|
+
});
|
|
4880
|
+
})
|
|
4881
|
+
);
|
|
4769
4882
|
var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
|
|
4770
4883
|
z30.object({
|
|
4771
4884
|
autoTopups: z30.optional(
|
|
@@ -4776,13 +4889,17 @@ var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
|
|
|
4776
4889
|
),
|
|
4777
4890
|
usageAlerts: z30.optional(
|
|
4778
4891
|
z30.array(z30.lazy(() => GetOrCreateCustomerUsageAlert$outboundSchema))
|
|
4892
|
+
),
|
|
4893
|
+
overageAllowed: z30.optional(
|
|
4894
|
+
z30.array(z30.lazy(() => GetOrCreateCustomerOverageAllowed$outboundSchema))
|
|
4779
4895
|
)
|
|
4780
4896
|
}),
|
|
4781
4897
|
z30.transform((v) => {
|
|
4782
4898
|
return remap(v, {
|
|
4783
4899
|
autoTopups: "auto_topups",
|
|
4784
4900
|
spendLimits: "spend_limits",
|
|
4785
|
-
usageAlerts: "usage_alerts"
|
|
4901
|
+
usageAlerts: "usage_alerts",
|
|
4902
|
+
overageAllowed: "overage_allowed"
|
|
4786
4903
|
});
|
|
4787
4904
|
})
|
|
4788
4905
|
);
|
|
@@ -5007,11 +5124,13 @@ var GetPlanExpiryDurationType$inboundSchema = inboundSchema(GetPlanExpiryDuratio
|
|
|
5007
5124
|
var GetPlanRollover$inboundSchema = z31.pipe(
|
|
5008
5125
|
z31.object({
|
|
5009
5126
|
max: nullable(number2()),
|
|
5127
|
+
max_percentage: z31.optional(z31.nullable(number2())),
|
|
5010
5128
|
expiry_duration_type: GetPlanExpiryDurationType$inboundSchema,
|
|
5011
5129
|
expiry_duration_length: optional2(number2())
|
|
5012
5130
|
}),
|
|
5013
5131
|
z31.transform((v) => {
|
|
5014
5132
|
return remap(v, {
|
|
5133
|
+
"max_percentage": "maxPercentage",
|
|
5015
5134
|
"expiry_duration_type": "expiryDurationType",
|
|
5016
5135
|
"expiry_duration_length": "expiryDurationLength"
|
|
5017
5136
|
});
|
|
@@ -5239,6 +5358,17 @@ var ListCustomersUsageAlert$inboundSchema = z32.pipe(
|
|
|
5239
5358
|
});
|
|
5240
5359
|
})
|
|
5241
5360
|
);
|
|
5361
|
+
var ListCustomersOverageAllowed$inboundSchema = z32.pipe(
|
|
5362
|
+
z32.object({
|
|
5363
|
+
feature_id: string4(),
|
|
5364
|
+
enabled: z32._default(boolean2(), false)
|
|
5365
|
+
}),
|
|
5366
|
+
z32.transform((v) => {
|
|
5367
|
+
return remap(v, {
|
|
5368
|
+
"feature_id": "featureId"
|
|
5369
|
+
});
|
|
5370
|
+
})
|
|
5371
|
+
);
|
|
5242
5372
|
var ListCustomersBillingControls$inboundSchema = z32.pipe(
|
|
5243
5373
|
z32.object({
|
|
5244
5374
|
auto_topups: optional2(
|
|
@@ -5249,13 +5379,17 @@ var ListCustomersBillingControls$inboundSchema = z32.pipe(
|
|
|
5249
5379
|
),
|
|
5250
5380
|
usage_alerts: optional2(
|
|
5251
5381
|
z32.array(z32.lazy(() => ListCustomersUsageAlert$inboundSchema))
|
|
5382
|
+
),
|
|
5383
|
+
overage_allowed: optional2(
|
|
5384
|
+
z32.array(z32.lazy(() => ListCustomersOverageAllowed$inboundSchema))
|
|
5252
5385
|
)
|
|
5253
5386
|
}),
|
|
5254
5387
|
z32.transform((v) => {
|
|
5255
5388
|
return remap(v, {
|
|
5256
5389
|
"auto_topups": "autoTopups",
|
|
5257
5390
|
"spend_limits": "spendLimits",
|
|
5258
|
-
"usage_alerts": "usageAlerts"
|
|
5391
|
+
"usage_alerts": "usageAlerts",
|
|
5392
|
+
"overage_allowed": "overageAllowed"
|
|
5259
5393
|
});
|
|
5260
5394
|
})
|
|
5261
5395
|
);
|
|
@@ -5710,11 +5844,13 @@ var ListPlansExpiryDurationType$inboundSchema = inboundSchema(ListPlansExpiryDur
|
|
|
5710
5844
|
var ListPlansRollover$inboundSchema = z35.pipe(
|
|
5711
5845
|
z35.object({
|
|
5712
5846
|
max: nullable(number2()),
|
|
5847
|
+
max_percentage: z35.optional(z35.nullable(number2())),
|
|
5713
5848
|
expiry_duration_type: ListPlansExpiryDurationType$inboundSchema,
|
|
5714
5849
|
expiry_duration_length: optional2(number2())
|
|
5715
5850
|
}),
|
|
5716
5851
|
z35.transform((v) => {
|
|
5717
5852
|
return remap(v, {
|
|
5853
|
+
"max_percentage": "maxPercentage",
|
|
5718
5854
|
"expiry_duration_type": "expiryDurationType",
|
|
5719
5855
|
"expiry_duration_length": "expiryDurationLength"
|
|
5720
5856
|
});
|
|
@@ -5958,11 +6094,13 @@ var MultiAttachExpiryDurationType$outboundSchema = z36.enum(MultiAttachExpiryDur
|
|
|
5958
6094
|
var MultiAttachRollover$outboundSchema = z36.pipe(
|
|
5959
6095
|
z36.object({
|
|
5960
6096
|
max: z36.optional(z36.number()),
|
|
6097
|
+
maxPercentage: z36.optional(z36.number()),
|
|
5961
6098
|
expiryDurationType: MultiAttachExpiryDurationType$outboundSchema,
|
|
5962
6099
|
expiryDurationLength: z36.optional(z36.number())
|
|
5963
6100
|
}),
|
|
5964
6101
|
z36.transform((v) => {
|
|
5965
6102
|
return remap(v, {
|
|
6103
|
+
maxPercentage: "max_percentage",
|
|
5966
6104
|
expiryDurationType: "expiry_duration_type",
|
|
5967
6105
|
expiryDurationLength: "expiry_duration_length"
|
|
5968
6106
|
});
|
|
@@ -6089,6 +6227,17 @@ var MultiAttachUsageAlert$outboundSchema = z36.pipe(
|
|
|
6089
6227
|
});
|
|
6090
6228
|
})
|
|
6091
6229
|
);
|
|
6230
|
+
var MultiAttachOverageAllowed$outboundSchema = z36.pipe(
|
|
6231
|
+
z36.object({
|
|
6232
|
+
featureId: z36.string(),
|
|
6233
|
+
enabled: z36._default(z36.boolean(), false)
|
|
6234
|
+
}),
|
|
6235
|
+
z36.transform((v) => {
|
|
6236
|
+
return remap(v, {
|
|
6237
|
+
featureId: "feature_id"
|
|
6238
|
+
});
|
|
6239
|
+
})
|
|
6240
|
+
);
|
|
6092
6241
|
var MultiAttachBillingControls$outboundSchema = z36.pipe(
|
|
6093
6242
|
z36.object({
|
|
6094
6243
|
spendLimits: z36.optional(
|
|
@@ -6096,12 +6245,16 @@ var MultiAttachBillingControls$outboundSchema = z36.pipe(
|
|
|
6096
6245
|
),
|
|
6097
6246
|
usageAlerts: z36.optional(
|
|
6098
6247
|
z36.array(z36.lazy(() => MultiAttachUsageAlert$outboundSchema))
|
|
6248
|
+
),
|
|
6249
|
+
overageAllowed: z36.optional(
|
|
6250
|
+
z36.array(z36.lazy(() => MultiAttachOverageAllowed$outboundSchema))
|
|
6099
6251
|
)
|
|
6100
6252
|
}),
|
|
6101
6253
|
z36.transform((v) => {
|
|
6102
6254
|
return remap(v, {
|
|
6103
6255
|
spendLimits: "spend_limits",
|
|
6104
|
-
usageAlerts: "usage_alerts"
|
|
6256
|
+
usageAlerts: "usage_alerts",
|
|
6257
|
+
overageAllowed: "overage_allowed"
|
|
6105
6258
|
});
|
|
6106
6259
|
})
|
|
6107
6260
|
);
|
|
@@ -6395,11 +6548,13 @@ var PreviewAttachExpiryDurationType$outboundSchema = z38.enum(PreviewAttachExpir
|
|
|
6395
6548
|
var PreviewAttachRollover$outboundSchema = z38.pipe(
|
|
6396
6549
|
z38.object({
|
|
6397
6550
|
max: z38.optional(z38.number()),
|
|
6551
|
+
maxPercentage: z38.optional(z38.number()),
|
|
6398
6552
|
expiryDurationType: PreviewAttachExpiryDurationType$outboundSchema,
|
|
6399
6553
|
expiryDurationLength: z38.optional(z38.number())
|
|
6400
6554
|
}),
|
|
6401
6555
|
z38.transform((v) => {
|
|
6402
6556
|
return remap(v, {
|
|
6557
|
+
maxPercentage: "max_percentage",
|
|
6403
6558
|
expiryDurationType: "expiry_duration_type",
|
|
6404
6559
|
expiryDurationLength: "expiry_duration_length"
|
|
6405
6560
|
});
|
|
@@ -6943,11 +7098,13 @@ var PreviewMultiAttachExpiryDurationType$outboundSchema = z39.enum(PreviewMultiA
|
|
|
6943
7098
|
var PreviewMultiAttachRollover$outboundSchema = z39.pipe(
|
|
6944
7099
|
z39.object({
|
|
6945
7100
|
max: z39.optional(z39.number()),
|
|
7101
|
+
maxPercentage: z39.optional(z39.number()),
|
|
6946
7102
|
expiryDurationType: PreviewMultiAttachExpiryDurationType$outboundSchema,
|
|
6947
7103
|
expiryDurationLength: z39.optional(z39.number())
|
|
6948
7104
|
}),
|
|
6949
7105
|
z39.transform((v) => {
|
|
6950
7106
|
return remap(v, {
|
|
7107
|
+
maxPercentage: "max_percentage",
|
|
6951
7108
|
expiryDurationType: "expiry_duration_type",
|
|
6952
7109
|
expiryDurationLength: "expiry_duration_length"
|
|
6953
7110
|
});
|
|
@@ -7087,6 +7244,17 @@ var PreviewMultiAttachUsageAlert$outboundSchema = z39.pipe(
|
|
|
7087
7244
|
});
|
|
7088
7245
|
})
|
|
7089
7246
|
);
|
|
7247
|
+
var PreviewMultiAttachOverageAllowed$outboundSchema = z39.pipe(
|
|
7248
|
+
z39.object({
|
|
7249
|
+
featureId: z39.string(),
|
|
7250
|
+
enabled: z39._default(z39.boolean(), false)
|
|
7251
|
+
}),
|
|
7252
|
+
z39.transform((v) => {
|
|
7253
|
+
return remap(v, {
|
|
7254
|
+
featureId: "feature_id"
|
|
7255
|
+
});
|
|
7256
|
+
})
|
|
7257
|
+
);
|
|
7090
7258
|
var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
|
|
7091
7259
|
z39.object({
|
|
7092
7260
|
spendLimits: z39.optional(
|
|
@@ -7094,12 +7262,16 @@ var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
|
|
|
7094
7262
|
),
|
|
7095
7263
|
usageAlerts: z39.optional(
|
|
7096
7264
|
z39.array(z39.lazy(() => PreviewMultiAttachUsageAlert$outboundSchema))
|
|
7265
|
+
),
|
|
7266
|
+
overageAllowed: z39.optional(
|
|
7267
|
+
z39.array(z39.lazy(() => PreviewMultiAttachOverageAllowed$outboundSchema))
|
|
7097
7268
|
)
|
|
7098
7269
|
}),
|
|
7099
7270
|
z39.transform((v) => {
|
|
7100
7271
|
return remap(v, {
|
|
7101
7272
|
spendLimits: "spend_limits",
|
|
7102
|
-
usageAlerts: "usage_alerts"
|
|
7273
|
+
usageAlerts: "usage_alerts",
|
|
7274
|
+
overageAllowed: "overage_allowed"
|
|
7103
7275
|
});
|
|
7104
7276
|
})
|
|
7105
7277
|
);
|
|
@@ -7555,11 +7727,13 @@ var PreviewUpdateExpiryDurationType$outboundSchema = z40.enum(PreviewUpdateExpir
|
|
|
7555
7727
|
var PreviewUpdateRollover$outboundSchema = z40.pipe(
|
|
7556
7728
|
z40.object({
|
|
7557
7729
|
max: z40.optional(z40.number()),
|
|
7730
|
+
maxPercentage: z40.optional(z40.number()),
|
|
7558
7731
|
expiryDurationType: PreviewUpdateExpiryDurationType$outboundSchema,
|
|
7559
7732
|
expiryDurationLength: z40.optional(z40.number())
|
|
7560
7733
|
}),
|
|
7561
7734
|
z40.transform((v) => {
|
|
7562
7735
|
return remap(v, {
|
|
7736
|
+
maxPercentage: "max_percentage",
|
|
7563
7737
|
expiryDurationType: "expiry_duration_type",
|
|
7564
7738
|
expiryDurationLength: "expiry_duration_length"
|
|
7565
7739
|
});
|
|
@@ -8075,11 +8249,13 @@ var SetupPaymentExpiryDurationType$outboundSchema = z42.enum(SetupPaymentExpiryD
|
|
|
8075
8249
|
var SetupPaymentRollover$outboundSchema = z42.pipe(
|
|
8076
8250
|
z42.object({
|
|
8077
8251
|
max: z42.optional(z42.number()),
|
|
8252
|
+
maxPercentage: z42.optional(z42.number()),
|
|
8078
8253
|
expiryDurationType: SetupPaymentExpiryDurationType$outboundSchema,
|
|
8079
8254
|
expiryDurationLength: z42.optional(z42.number())
|
|
8080
8255
|
}),
|
|
8081
8256
|
z42.transform((v) => {
|
|
8082
8257
|
return remap(v, {
|
|
8258
|
+
maxPercentage: "max_percentage",
|
|
8083
8259
|
expiryDurationType: "expiry_duration_type",
|
|
8084
8260
|
expiryDurationLength: "expiry_duration_length"
|
|
8085
8261
|
});
|
|
@@ -8424,6 +8600,17 @@ var UpdateCustomerUsageAlertRequestBody$outboundSchema = z45.pipe(
|
|
|
8424
8600
|
});
|
|
8425
8601
|
})
|
|
8426
8602
|
);
|
|
8603
|
+
var UpdateCustomerOverageAllowedRequest$outboundSchema = z45.pipe(
|
|
8604
|
+
z45.object({
|
|
8605
|
+
featureId: z45.string(),
|
|
8606
|
+
enabled: z45._default(z45.boolean(), false)
|
|
8607
|
+
}),
|
|
8608
|
+
z45.transform((v) => {
|
|
8609
|
+
return remap(v, {
|
|
8610
|
+
featureId: "feature_id"
|
|
8611
|
+
});
|
|
8612
|
+
})
|
|
8613
|
+
);
|
|
8427
8614
|
var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
|
|
8428
8615
|
z45.object({
|
|
8429
8616
|
autoTopups: z45.optional(
|
|
@@ -8434,13 +8621,17 @@ var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
|
|
|
8434
8621
|
),
|
|
8435
8622
|
usageAlerts: z45.optional(
|
|
8436
8623
|
z45.array(z45.lazy(() => UpdateCustomerUsageAlertRequestBody$outboundSchema))
|
|
8624
|
+
),
|
|
8625
|
+
overageAllowed: z45.optional(
|
|
8626
|
+
z45.array(z45.lazy(() => UpdateCustomerOverageAllowedRequest$outboundSchema))
|
|
8437
8627
|
)
|
|
8438
8628
|
}),
|
|
8439
8629
|
z45.transform((v) => {
|
|
8440
8630
|
return remap(v, {
|
|
8441
8631
|
autoTopups: "auto_topups",
|
|
8442
8632
|
spendLimits: "spend_limits",
|
|
8443
|
-
usageAlerts: "usage_alerts"
|
|
8633
|
+
usageAlerts: "usage_alerts",
|
|
8634
|
+
overageAllowed: "overage_allowed"
|
|
8444
8635
|
});
|
|
8445
8636
|
})
|
|
8446
8637
|
);
|
|
@@ -8528,6 +8719,17 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z45.pipe(
|
|
|
8528
8719
|
});
|
|
8529
8720
|
})
|
|
8530
8721
|
);
|
|
8722
|
+
var UpdateCustomerOverageAllowedResponse$inboundSchema = z45.pipe(
|
|
8723
|
+
z45.object({
|
|
8724
|
+
feature_id: string4(),
|
|
8725
|
+
enabled: z45._default(boolean2(), false)
|
|
8726
|
+
}),
|
|
8727
|
+
z45.transform((v) => {
|
|
8728
|
+
return remap(v, {
|
|
8729
|
+
"feature_id": "featureId"
|
|
8730
|
+
});
|
|
8731
|
+
})
|
|
8732
|
+
);
|
|
8531
8733
|
var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
|
|
8532
8734
|
z45.object({
|
|
8533
8735
|
auto_topups: optional2(
|
|
@@ -8538,13 +8740,17 @@ var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
|
|
|
8538
8740
|
),
|
|
8539
8741
|
usage_alerts: optional2(
|
|
8540
8742
|
z45.array(z45.lazy(() => UpdateCustomerUsageAlertResponse$inboundSchema))
|
|
8743
|
+
),
|
|
8744
|
+
overage_allowed: optional2(
|
|
8745
|
+
z45.array(z45.lazy(() => UpdateCustomerOverageAllowedResponse$inboundSchema))
|
|
8541
8746
|
)
|
|
8542
8747
|
}),
|
|
8543
8748
|
z45.transform((v) => {
|
|
8544
8749
|
return remap(v, {
|
|
8545
8750
|
"auto_topups": "autoTopups",
|
|
8546
8751
|
"spend_limits": "spendLimits",
|
|
8547
|
-
"usage_alerts": "usageAlerts"
|
|
8752
|
+
"usage_alerts": "usageAlerts",
|
|
8753
|
+
"overage_allowed": "overageAllowed"
|
|
8548
8754
|
});
|
|
8549
8755
|
})
|
|
8550
8756
|
);
|
|
@@ -8736,6 +8942,17 @@ var UpdateEntityUsageAlertRequestBody$outboundSchema = z46.pipe(
|
|
|
8736
8942
|
});
|
|
8737
8943
|
})
|
|
8738
8944
|
);
|
|
8945
|
+
var UpdateEntityOverageAllowedRequest$outboundSchema = z46.pipe(
|
|
8946
|
+
z46.object({
|
|
8947
|
+
featureId: z46.string(),
|
|
8948
|
+
enabled: z46._default(z46.boolean(), false)
|
|
8949
|
+
}),
|
|
8950
|
+
z46.transform((v) => {
|
|
8951
|
+
return remap(v, {
|
|
8952
|
+
featureId: "feature_id"
|
|
8953
|
+
});
|
|
8954
|
+
})
|
|
8955
|
+
);
|
|
8739
8956
|
var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
|
|
8740
8957
|
z46.object({
|
|
8741
8958
|
spendLimits: z46.optional(
|
|
@@ -8743,12 +8960,16 @@ var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
|
|
|
8743
8960
|
),
|
|
8744
8961
|
usageAlerts: z46.optional(
|
|
8745
8962
|
z46.array(z46.lazy(() => UpdateEntityUsageAlertRequestBody$outboundSchema))
|
|
8963
|
+
),
|
|
8964
|
+
overageAllowed: z46.optional(
|
|
8965
|
+
z46.array(z46.lazy(() => UpdateEntityOverageAllowedRequest$outboundSchema))
|
|
8746
8966
|
)
|
|
8747
8967
|
}),
|
|
8748
8968
|
z46.transform((v) => {
|
|
8749
8969
|
return remap(v, {
|
|
8750
8970
|
spendLimits: "spend_limits",
|
|
8751
|
-
usageAlerts: "usage_alerts"
|
|
8971
|
+
usageAlerts: "usage_alerts",
|
|
8972
|
+
overageAllowed: "overage_allowed"
|
|
8752
8973
|
});
|
|
8753
8974
|
})
|
|
8754
8975
|
);
|
|
@@ -8900,6 +9121,17 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z46.pipe(
|
|
|
8900
9121
|
});
|
|
8901
9122
|
})
|
|
8902
9123
|
);
|
|
9124
|
+
var UpdateEntityOverageAllowedResponse$inboundSchema = z46.pipe(
|
|
9125
|
+
z46.object({
|
|
9126
|
+
feature_id: string4(),
|
|
9127
|
+
enabled: z46._default(boolean2(), false)
|
|
9128
|
+
}),
|
|
9129
|
+
z46.transform((v) => {
|
|
9130
|
+
return remap(v, {
|
|
9131
|
+
"feature_id": "featureId"
|
|
9132
|
+
});
|
|
9133
|
+
})
|
|
9134
|
+
);
|
|
8903
9135
|
var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
|
|
8904
9136
|
z46.object({
|
|
8905
9137
|
spend_limits: optional2(
|
|
@@ -8907,12 +9139,16 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
|
|
|
8907
9139
|
),
|
|
8908
9140
|
usage_alerts: optional2(
|
|
8909
9141
|
z46.array(z46.lazy(() => UpdateEntityUsageAlertResponse$inboundSchema))
|
|
9142
|
+
),
|
|
9143
|
+
overage_allowed: optional2(
|
|
9144
|
+
z46.array(z46.lazy(() => UpdateEntityOverageAllowedResponse$inboundSchema))
|
|
8910
9145
|
)
|
|
8911
9146
|
}),
|
|
8912
9147
|
z46.transform((v) => {
|
|
8913
9148
|
return remap(v, {
|
|
8914
9149
|
"spend_limits": "spendLimits",
|
|
8915
|
-
"usage_alerts": "usageAlerts"
|
|
9150
|
+
"usage_alerts": "usageAlerts",
|
|
9151
|
+
"overage_allowed": "overageAllowed"
|
|
8916
9152
|
});
|
|
8917
9153
|
})
|
|
8918
9154
|
);
|
|
@@ -9265,11 +9501,13 @@ var UpdatePlanExpiryDurationTypeRequest$outboundSchema = z48.enum(UpdatePlanExpi
|
|
|
9265
9501
|
var UpdatePlanRolloverRequest$outboundSchema = z48.pipe(
|
|
9266
9502
|
z48.object({
|
|
9267
9503
|
max: z48.optional(z48.number()),
|
|
9504
|
+
maxPercentage: z48.optional(z48.number()),
|
|
9268
9505
|
expiryDurationType: UpdatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
9269
9506
|
expiryDurationLength: z48.optional(z48.number())
|
|
9270
9507
|
}),
|
|
9271
9508
|
z48.transform((v) => {
|
|
9272
9509
|
return remap(v, {
|
|
9510
|
+
maxPercentage: "max_percentage",
|
|
9273
9511
|
expiryDurationType: "expiry_duration_type",
|
|
9274
9512
|
expiryDurationLength: "expiry_duration_length"
|
|
9275
9513
|
});
|
|
@@ -9454,11 +9692,13 @@ var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePla
|
|
|
9454
9692
|
var UpdatePlanRolloverResponse$inboundSchema = z48.pipe(
|
|
9455
9693
|
z48.object({
|
|
9456
9694
|
max: nullable(number2()),
|
|
9695
|
+
max_percentage: z48.optional(z48.nullable(number2())),
|
|
9457
9696
|
expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
9458
9697
|
expiry_duration_length: optional2(number2())
|
|
9459
9698
|
}),
|
|
9460
9699
|
z48.transform((v) => {
|
|
9461
9700
|
return remap(v, {
|
|
9701
|
+
"max_percentage": "maxPercentage",
|
|
9462
9702
|
"expiry_duration_type": "expiryDurationType",
|
|
9463
9703
|
"expiry_duration_length": "expiryDurationLength"
|
|
9464
9704
|
});
|
|
@@ -9735,7 +9975,8 @@ async function $do2(client, request, options) {
|
|
|
9735
9975
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set([
|
|
9736
9976
|
"check",
|
|
9737
9977
|
"track",
|
|
9738
|
-
"getOrCreateCustomer"
|
|
9978
|
+
"getOrCreateCustomer",
|
|
9979
|
+
"getEntity"
|
|
9739
9980
|
]);
|
|
9740
9981
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
9741
9982
|
var FAIL_OPEN_BODIES = {
|
|
@@ -9765,6 +10006,18 @@ var FAIL_OPEN_BODIES = {
|
|
|
9765
10006
|
purchases: [],
|
|
9766
10007
|
balances: {},
|
|
9767
10008
|
flags: {}
|
|
10009
|
+
},
|
|
10010
|
+
getEntity: {
|
|
10011
|
+
id: null,
|
|
10012
|
+
name: null,
|
|
10013
|
+
customer_id: null,
|
|
10014
|
+
feature_id: null,
|
|
10015
|
+
created_at: 0,
|
|
10016
|
+
env: "live",
|
|
10017
|
+
subscriptions: [],
|
|
10018
|
+
purchases: [],
|
|
10019
|
+
balances: {},
|
|
10020
|
+
flags: {}
|
|
9768
10021
|
}
|
|
9769
10022
|
};
|
|
9770
10023
|
var FailOpenHook = class {
|
|
@@ -14123,6 +14376,7 @@ var attachProrationOutboundSchema = import_v42.z.object({
|
|
|
14123
14376
|
});
|
|
14124
14377
|
var attachRolloverOutboundSchema = import_v42.z.object({
|
|
14125
14378
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14379
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14126
14380
|
expiry_duration_type: import_v42.z.string(),
|
|
14127
14381
|
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
14128
14382
|
});
|
|
@@ -14223,6 +14477,7 @@ var attachProrationSchema = import_v42.z.object({
|
|
|
14223
14477
|
var attachExpiryDurationTypeSchema = closedEnumSchema2;
|
|
14224
14478
|
var attachRolloverSchema = import_v42.z.object({
|
|
14225
14479
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14480
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14226
14481
|
expiryDurationType: attachExpiryDurationTypeSchema,
|
|
14227
14482
|
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
14228
14483
|
});
|
|
@@ -14313,6 +14568,10 @@ var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
|
|
|
14313
14568
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
14314
14569
|
overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
14315
14570
|
});
|
|
14571
|
+
var getOrCreateCustomerOverageAllowedSchema = import_v44.z.object({
|
|
14572
|
+
featureId: import_v44.z.string(),
|
|
14573
|
+
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
14574
|
+
});
|
|
14316
14575
|
var getOrCreateCustomerPurchaseLimitOutboundSchema = import_v44.z.object({
|
|
14317
14576
|
interval: import_v44.z.string(),
|
|
14318
14577
|
interval_count: import_v44.z.number(),
|
|
@@ -14337,6 +14596,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = import_v44.z.object({
|
|
|
14337
14596
|
threshold_type: import_v44.z.string(),
|
|
14338
14597
|
name: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
|
|
14339
14598
|
});
|
|
14599
|
+
var getOrCreateCustomerOverageAllowedOutboundSchema = import_v44.z.object({
|
|
14600
|
+
feature_id: import_v44.z.string(),
|
|
14601
|
+
enabled: import_v44.z.boolean()
|
|
14602
|
+
});
|
|
14340
14603
|
var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
14341
14604
|
auto_topups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupOutboundSchema), import_v44.z.undefined()]).optional(),
|
|
14342
14605
|
spend_limits: import_v44.z.union([
|
|
@@ -14346,6 +14609,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
|
14346
14609
|
usage_alerts: import_v44.z.union([
|
|
14347
14610
|
import_v44.z.array(getOrCreateCustomerUsageAlertOutboundSchema),
|
|
14348
14611
|
import_v44.z.undefined()
|
|
14612
|
+
]).optional(),
|
|
14613
|
+
overage_allowed: import_v44.z.union([
|
|
14614
|
+
import_v44.z.array(getOrCreateCustomerOverageAllowedOutboundSchema),
|
|
14615
|
+
import_v44.z.undefined()
|
|
14349
14616
|
]).optional()
|
|
14350
14617
|
});
|
|
14351
14618
|
var getOrCreateCustomerParamsOutboundSchema = import_v44.z.object({
|
|
@@ -14386,7 +14653,8 @@ var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
|
14386
14653
|
var getOrCreateCustomerBillingControlsSchema = import_v44.z.object({
|
|
14387
14654
|
autoTopups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupSchema), import_v44.z.undefined()]).optional(),
|
|
14388
14655
|
spendLimits: import_v44.z.union([import_v44.z.array(getOrCreateCustomerSpendLimitSchema), import_v44.z.undefined()]).optional(),
|
|
14389
|
-
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional()
|
|
14656
|
+
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional(),
|
|
14657
|
+
overageAllowed: import_v44.z.union([import_v44.z.array(getOrCreateCustomerOverageAllowedSchema), import_v44.z.undefined()]).optional()
|
|
14390
14658
|
});
|
|
14391
14659
|
var getOrCreateCustomerParamsSchema = import_v44.z.object({
|
|
14392
14660
|
customerId: import_v44.z.string().nullable(),
|
|
@@ -14525,6 +14793,7 @@ var listPlansItemPriceSchema = import_v46.z.object({
|
|
|
14525
14793
|
var listPlansExpiryDurationTypeSchema = openEnumSchema2;
|
|
14526
14794
|
var listPlansRolloverSchema = import_v46.z.object({
|
|
14527
14795
|
max: import_v46.z.number().nullable(),
|
|
14796
|
+
maxPercentage: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional().nullable(),
|
|
14528
14797
|
expiryDurationType: listPlansExpiryDurationTypeSchema,
|
|
14529
14798
|
expiryDurationLength: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
|
|
14530
14799
|
});
|
|
@@ -14605,6 +14874,10 @@ var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
|
14605
14874
|
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
14606
14875
|
overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14607
14876
|
});
|
|
14877
|
+
var multiAttachOverageAllowedSchema = import_v47.z.object({
|
|
14878
|
+
featureId: import_v47.z.string(),
|
|
14879
|
+
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
|
|
14880
|
+
});
|
|
14608
14881
|
var multiAttachInvoiceSchema = import_v47.z.object({
|
|
14609
14882
|
status: import_v47.z.string().nullable(),
|
|
14610
14883
|
stripeId: import_v47.z.string(),
|
|
@@ -14643,6 +14916,7 @@ var multiAttachProrationOutboundSchema = import_v47.z.object({
|
|
|
14643
14916
|
});
|
|
14644
14917
|
var multiAttachRolloverOutboundSchema = import_v47.z.object({
|
|
14645
14918
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14919
|
+
max_percentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14646
14920
|
expiry_duration_type: import_v47.z.string(),
|
|
14647
14921
|
expiry_duration_length: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14648
14922
|
});
|
|
@@ -14697,9 +14971,14 @@ var multiAttachUsageAlertOutboundSchema = import_v47.z.object({
|
|
|
14697
14971
|
threshold_type: import_v47.z.string(),
|
|
14698
14972
|
name: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
14699
14973
|
});
|
|
14974
|
+
var multiAttachOverageAllowedOutboundSchema = import_v47.z.object({
|
|
14975
|
+
feature_id: import_v47.z.string(),
|
|
14976
|
+
enabled: import_v47.z.boolean()
|
|
14977
|
+
});
|
|
14700
14978
|
var multiAttachBillingControlsOutboundSchema = import_v47.z.object({
|
|
14701
14979
|
spend_limits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
14702
|
-
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional()
|
|
14980
|
+
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
14981
|
+
overage_allowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedOutboundSchema), import_v47.z.undefined()]).optional()
|
|
14703
14982
|
});
|
|
14704
14983
|
var multiAttachEntityDataOutboundSchema = import_v47.z.object({
|
|
14705
14984
|
feature_id: import_v47.z.string(),
|
|
@@ -14743,6 +15022,7 @@ var multiAttachProrationSchema = import_v47.z.object({
|
|
|
14743
15022
|
var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
|
|
14744
15023
|
var multiAttachRolloverSchema = import_v47.z.object({
|
|
14745
15024
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
15025
|
+
maxPercentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14746
15026
|
expiryDurationType: multiAttachExpiryDurationTypeSchema,
|
|
14747
15027
|
expiryDurationLength: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14748
15028
|
});
|
|
@@ -14783,7 +15063,8 @@ var multiAttachUsageAlertSchema = import_v47.z.object({
|
|
|
14783
15063
|
});
|
|
14784
15064
|
var multiAttachBillingControlsSchema = import_v47.z.object({
|
|
14785
15065
|
spendLimits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitSchema), import_v47.z.undefined()]).optional(),
|
|
14786
|
-
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional()
|
|
15066
|
+
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional(),
|
|
15067
|
+
overageAllowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedSchema), import_v47.z.undefined()]).optional()
|
|
14787
15068
|
});
|
|
14788
15069
|
var multiAttachEntityDataSchema = import_v47.z.object({
|
|
14789
15070
|
featureId: import_v47.z.string(),
|
|
@@ -14991,6 +15272,7 @@ var previewAttachProrationOutboundSchema = import_v49.z.object({
|
|
|
14991
15272
|
});
|
|
14992
15273
|
var previewAttachRolloverOutboundSchema = import_v49.z.object({
|
|
14993
15274
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15275
|
+
max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
14994
15276
|
expiry_duration_type: import_v49.z.string(),
|
|
14995
15277
|
expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
14996
15278
|
});
|
|
@@ -15095,6 +15377,7 @@ var previewAttachProrationSchema = import_v49.z.object({
|
|
|
15095
15377
|
var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
|
|
15096
15378
|
var previewAttachRolloverSchema = import_v49.z.object({
|
|
15097
15379
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15380
|
+
maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15098
15381
|
expiryDurationType: previewAttachExpiryDurationTypeSchema,
|
|
15099
15382
|
expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
15100
15383
|
});
|
|
@@ -15204,6 +15487,10 @@ var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
|
15204
15487
|
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
15205
15488
|
overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15206
15489
|
});
|
|
15490
|
+
var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
|
|
15491
|
+
featureId: import_v410.z.string(),
|
|
15492
|
+
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
|
|
15493
|
+
});
|
|
15207
15494
|
var previewMultiAttachDiscountSchema = import_v410.z.object({
|
|
15208
15495
|
amountOff: import_v410.z.number(),
|
|
15209
15496
|
percentOff: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
@@ -15305,6 +15592,7 @@ var previewMultiAttachProrationOutboundSchema = import_v410.z.object({
|
|
|
15305
15592
|
});
|
|
15306
15593
|
var previewMultiAttachRolloverOutboundSchema = import_v410.z.object({
|
|
15307
15594
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15595
|
+
max_percentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15308
15596
|
expiry_duration_type: import_v410.z.string(),
|
|
15309
15597
|
expiry_duration_length: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15310
15598
|
});
|
|
@@ -15362,9 +15650,17 @@ var previewMultiAttachUsageAlertOutboundSchema = import_v410.z.object({
|
|
|
15362
15650
|
threshold_type: import_v410.z.string(),
|
|
15363
15651
|
name: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
15364
15652
|
});
|
|
15653
|
+
var previewMultiAttachOverageAllowedOutboundSchema = import_v410.z.object({
|
|
15654
|
+
feature_id: import_v410.z.string(),
|
|
15655
|
+
enabled: import_v410.z.boolean()
|
|
15656
|
+
});
|
|
15365
15657
|
var previewMultiAttachBillingControlsOutboundSchema = import_v410.z.object({
|
|
15366
15658
|
spend_limits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
15367
|
-
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional()
|
|
15659
|
+
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
15660
|
+
overage_allowed: import_v410.z.union([
|
|
15661
|
+
import_v410.z.array(previewMultiAttachOverageAllowedOutboundSchema),
|
|
15662
|
+
import_v410.z.undefined()
|
|
15663
|
+
]).optional()
|
|
15368
15664
|
});
|
|
15369
15665
|
var previewMultiAttachEntityDataOutboundSchema = import_v410.z.object({
|
|
15370
15666
|
feature_id: import_v410.z.string(),
|
|
@@ -15409,6 +15705,7 @@ var previewMultiAttachProrationSchema = import_v410.z.object({
|
|
|
15409
15705
|
var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
|
|
15410
15706
|
var previewMultiAttachRolloverSchema = import_v410.z.object({
|
|
15411
15707
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15708
|
+
maxPercentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15412
15709
|
expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
|
|
15413
15710
|
expiryDurationLength: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15414
15711
|
});
|
|
@@ -15452,7 +15749,8 @@ var previewMultiAttachUsageAlertSchema = import_v410.z.object({
|
|
|
15452
15749
|
});
|
|
15453
15750
|
var previewMultiAttachBillingControlsSchema = import_v410.z.object({
|
|
15454
15751
|
spendLimits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitSchema), import_v410.z.undefined()]).optional(),
|
|
15455
|
-
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional()
|
|
15752
|
+
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional(),
|
|
15753
|
+
overageAllowed: import_v410.z.union([import_v410.z.array(previewMultiAttachOverageAllowedSchema), import_v410.z.undefined()]).optional()
|
|
15456
15754
|
});
|
|
15457
15755
|
var previewMultiAttachEntityDataSchema = import_v410.z.object({
|
|
15458
15756
|
featureId: import_v410.z.string(),
|
|
@@ -15648,6 +15946,7 @@ var previewUpdateProrationOutboundSchema = import_v411.z.object({
|
|
|
15648
15946
|
});
|
|
15649
15947
|
var previewUpdateRolloverOutboundSchema = import_v411.z.object({
|
|
15650
15948
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15949
|
+
max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15651
15950
|
expiry_duration_type: import_v411.z.string(),
|
|
15652
15951
|
expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
15653
15952
|
});
|
|
@@ -15732,6 +16031,7 @@ var previewUpdateProrationSchema = import_v411.z.object({
|
|
|
15732
16031
|
var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
|
|
15733
16032
|
var previewUpdateRolloverSchema = import_v411.z.object({
|
|
15734
16033
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
16034
|
+
maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15735
16035
|
expiryDurationType: previewUpdateExpiryDurationTypeSchema,
|
|
15736
16036
|
expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
15737
16037
|
});
|
|
@@ -15895,6 +16195,7 @@ var setupPaymentProrationOutboundSchema = import_v413.z.object({
|
|
|
15895
16195
|
});
|
|
15896
16196
|
var setupPaymentRolloverOutboundSchema = import_v413.z.object({
|
|
15897
16197
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16198
|
+
max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
15898
16199
|
expiry_duration_type: import_v413.z.string(),
|
|
15899
16200
|
expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
15900
16201
|
});
|
|
@@ -15985,6 +16286,7 @@ var setupPaymentProrationSchema = import_v413.z.object({
|
|
|
15985
16286
|
var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
|
|
15986
16287
|
var setupPaymentRolloverSchema = import_v413.z.object({
|
|
15987
16288
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16289
|
+
maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
15988
16290
|
expiryDurationType: setupPaymentExpiryDurationTypeSchema,
|
|
15989
16291
|
expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
15990
16292
|
});
|
|
@@ -16095,6 +16397,7 @@ var billingUpdateProrationOutboundSchema = import_v414.z.object({
|
|
|
16095
16397
|
});
|
|
16096
16398
|
var billingUpdateRolloverOutboundSchema = import_v414.z.object({
|
|
16097
16399
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16400
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16098
16401
|
expiry_duration_type: import_v414.z.string(),
|
|
16099
16402
|
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
16100
16403
|
});
|
|
@@ -16175,6 +16478,7 @@ var billingUpdateProrationSchema = import_v414.z.object({
|
|
|
16175
16478
|
var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
|
|
16176
16479
|
var billingUpdateRolloverSchema = import_v414.z.object({
|
|
16177
16480
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16481
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16178
16482
|
expiryDurationType: billingUpdateExpiryDurationTypeSchema,
|
|
16179
16483
|
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
16180
16484
|
});
|