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 {
|
|
@@ -14140,6 +14393,7 @@ var attachProrationOutboundSchema = import_v42.z.object({
|
|
|
14140
14393
|
});
|
|
14141
14394
|
var attachRolloverOutboundSchema = import_v42.z.object({
|
|
14142
14395
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14396
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14143
14397
|
expiry_duration_type: import_v42.z.string(),
|
|
14144
14398
|
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
14145
14399
|
});
|
|
@@ -14240,6 +14494,7 @@ var attachProrationSchema = import_v42.z.object({
|
|
|
14240
14494
|
var attachExpiryDurationTypeSchema = closedEnumSchema2;
|
|
14241
14495
|
var attachRolloverSchema = import_v42.z.object({
|
|
14242
14496
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14497
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14243
14498
|
expiryDurationType: attachExpiryDurationTypeSchema,
|
|
14244
14499
|
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
14245
14500
|
});
|
|
@@ -14330,6 +14585,10 @@ var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
|
|
|
14330
14585
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
14331
14586
|
overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
14332
14587
|
});
|
|
14588
|
+
var getOrCreateCustomerOverageAllowedSchema = import_v44.z.object({
|
|
14589
|
+
featureId: import_v44.z.string(),
|
|
14590
|
+
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
14591
|
+
});
|
|
14333
14592
|
var getOrCreateCustomerPurchaseLimitOutboundSchema = import_v44.z.object({
|
|
14334
14593
|
interval: import_v44.z.string(),
|
|
14335
14594
|
interval_count: import_v44.z.number(),
|
|
@@ -14354,6 +14613,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = import_v44.z.object({
|
|
|
14354
14613
|
threshold_type: import_v44.z.string(),
|
|
14355
14614
|
name: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
|
|
14356
14615
|
});
|
|
14616
|
+
var getOrCreateCustomerOverageAllowedOutboundSchema = import_v44.z.object({
|
|
14617
|
+
feature_id: import_v44.z.string(),
|
|
14618
|
+
enabled: import_v44.z.boolean()
|
|
14619
|
+
});
|
|
14357
14620
|
var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
14358
14621
|
auto_topups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupOutboundSchema), import_v44.z.undefined()]).optional(),
|
|
14359
14622
|
spend_limits: import_v44.z.union([
|
|
@@ -14363,6 +14626,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
|
14363
14626
|
usage_alerts: import_v44.z.union([
|
|
14364
14627
|
import_v44.z.array(getOrCreateCustomerUsageAlertOutboundSchema),
|
|
14365
14628
|
import_v44.z.undefined()
|
|
14629
|
+
]).optional(),
|
|
14630
|
+
overage_allowed: import_v44.z.union([
|
|
14631
|
+
import_v44.z.array(getOrCreateCustomerOverageAllowedOutboundSchema),
|
|
14632
|
+
import_v44.z.undefined()
|
|
14366
14633
|
]).optional()
|
|
14367
14634
|
});
|
|
14368
14635
|
var getOrCreateCustomerParamsOutboundSchema = import_v44.z.object({
|
|
@@ -14403,7 +14670,8 @@ var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
|
14403
14670
|
var getOrCreateCustomerBillingControlsSchema = import_v44.z.object({
|
|
14404
14671
|
autoTopups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupSchema), import_v44.z.undefined()]).optional(),
|
|
14405
14672
|
spendLimits: import_v44.z.union([import_v44.z.array(getOrCreateCustomerSpendLimitSchema), import_v44.z.undefined()]).optional(),
|
|
14406
|
-
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional()
|
|
14673
|
+
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional(),
|
|
14674
|
+
overageAllowed: import_v44.z.union([import_v44.z.array(getOrCreateCustomerOverageAllowedSchema), import_v44.z.undefined()]).optional()
|
|
14407
14675
|
});
|
|
14408
14676
|
var getOrCreateCustomerParamsSchema = import_v44.z.object({
|
|
14409
14677
|
customerId: import_v44.z.string().nullable(),
|
|
@@ -14542,6 +14810,7 @@ var listPlansItemPriceSchema = import_v46.z.object({
|
|
|
14542
14810
|
var listPlansExpiryDurationTypeSchema = openEnumSchema2;
|
|
14543
14811
|
var listPlansRolloverSchema = import_v46.z.object({
|
|
14544
14812
|
max: import_v46.z.number().nullable(),
|
|
14813
|
+
maxPercentage: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional().nullable(),
|
|
14545
14814
|
expiryDurationType: listPlansExpiryDurationTypeSchema,
|
|
14546
14815
|
expiryDurationLength: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
|
|
14547
14816
|
});
|
|
@@ -14622,6 +14891,10 @@ var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
|
14622
14891
|
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
14623
14892
|
overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14624
14893
|
});
|
|
14894
|
+
var multiAttachOverageAllowedSchema = import_v47.z.object({
|
|
14895
|
+
featureId: import_v47.z.string(),
|
|
14896
|
+
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
|
|
14897
|
+
});
|
|
14625
14898
|
var multiAttachInvoiceSchema = import_v47.z.object({
|
|
14626
14899
|
status: import_v47.z.string().nullable(),
|
|
14627
14900
|
stripeId: import_v47.z.string(),
|
|
@@ -14660,6 +14933,7 @@ var multiAttachProrationOutboundSchema = import_v47.z.object({
|
|
|
14660
14933
|
});
|
|
14661
14934
|
var multiAttachRolloverOutboundSchema = import_v47.z.object({
|
|
14662
14935
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14936
|
+
max_percentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14663
14937
|
expiry_duration_type: import_v47.z.string(),
|
|
14664
14938
|
expiry_duration_length: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14665
14939
|
});
|
|
@@ -14714,9 +14988,14 @@ var multiAttachUsageAlertOutboundSchema = import_v47.z.object({
|
|
|
14714
14988
|
threshold_type: import_v47.z.string(),
|
|
14715
14989
|
name: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
14716
14990
|
});
|
|
14991
|
+
var multiAttachOverageAllowedOutboundSchema = import_v47.z.object({
|
|
14992
|
+
feature_id: import_v47.z.string(),
|
|
14993
|
+
enabled: import_v47.z.boolean()
|
|
14994
|
+
});
|
|
14717
14995
|
var multiAttachBillingControlsOutboundSchema = import_v47.z.object({
|
|
14718
14996
|
spend_limits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
14719
|
-
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional()
|
|
14997
|
+
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
14998
|
+
overage_allowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedOutboundSchema), import_v47.z.undefined()]).optional()
|
|
14720
14999
|
});
|
|
14721
15000
|
var multiAttachEntityDataOutboundSchema = import_v47.z.object({
|
|
14722
15001
|
feature_id: import_v47.z.string(),
|
|
@@ -14760,6 +15039,7 @@ var multiAttachProrationSchema = import_v47.z.object({
|
|
|
14760
15039
|
var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
|
|
14761
15040
|
var multiAttachRolloverSchema = import_v47.z.object({
|
|
14762
15041
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
15042
|
+
maxPercentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14763
15043
|
expiryDurationType: multiAttachExpiryDurationTypeSchema,
|
|
14764
15044
|
expiryDurationLength: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14765
15045
|
});
|
|
@@ -14800,7 +15080,8 @@ var multiAttachUsageAlertSchema = import_v47.z.object({
|
|
|
14800
15080
|
});
|
|
14801
15081
|
var multiAttachBillingControlsSchema = import_v47.z.object({
|
|
14802
15082
|
spendLimits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitSchema), import_v47.z.undefined()]).optional(),
|
|
14803
|
-
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional()
|
|
15083
|
+
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional(),
|
|
15084
|
+
overageAllowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedSchema), import_v47.z.undefined()]).optional()
|
|
14804
15085
|
});
|
|
14805
15086
|
var multiAttachEntityDataSchema = import_v47.z.object({
|
|
14806
15087
|
featureId: import_v47.z.string(),
|
|
@@ -15008,6 +15289,7 @@ var previewAttachProrationOutboundSchema = import_v49.z.object({
|
|
|
15008
15289
|
});
|
|
15009
15290
|
var previewAttachRolloverOutboundSchema = import_v49.z.object({
|
|
15010
15291
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15292
|
+
max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15011
15293
|
expiry_duration_type: import_v49.z.string(),
|
|
15012
15294
|
expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
15013
15295
|
});
|
|
@@ -15112,6 +15394,7 @@ var previewAttachProrationSchema = import_v49.z.object({
|
|
|
15112
15394
|
var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
|
|
15113
15395
|
var previewAttachRolloverSchema = import_v49.z.object({
|
|
15114
15396
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15397
|
+
maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15115
15398
|
expiryDurationType: previewAttachExpiryDurationTypeSchema,
|
|
15116
15399
|
expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
15117
15400
|
});
|
|
@@ -15221,6 +15504,10 @@ var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
|
15221
15504
|
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
15222
15505
|
overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15223
15506
|
});
|
|
15507
|
+
var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
|
|
15508
|
+
featureId: import_v410.z.string(),
|
|
15509
|
+
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
|
|
15510
|
+
});
|
|
15224
15511
|
var previewMultiAttachDiscountSchema = import_v410.z.object({
|
|
15225
15512
|
amountOff: import_v410.z.number(),
|
|
15226
15513
|
percentOff: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
@@ -15322,6 +15609,7 @@ var previewMultiAttachProrationOutboundSchema = import_v410.z.object({
|
|
|
15322
15609
|
});
|
|
15323
15610
|
var previewMultiAttachRolloverOutboundSchema = import_v410.z.object({
|
|
15324
15611
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15612
|
+
max_percentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15325
15613
|
expiry_duration_type: import_v410.z.string(),
|
|
15326
15614
|
expiry_duration_length: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15327
15615
|
});
|
|
@@ -15379,9 +15667,17 @@ var previewMultiAttachUsageAlertOutboundSchema = import_v410.z.object({
|
|
|
15379
15667
|
threshold_type: import_v410.z.string(),
|
|
15380
15668
|
name: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
15381
15669
|
});
|
|
15670
|
+
var previewMultiAttachOverageAllowedOutboundSchema = import_v410.z.object({
|
|
15671
|
+
feature_id: import_v410.z.string(),
|
|
15672
|
+
enabled: import_v410.z.boolean()
|
|
15673
|
+
});
|
|
15382
15674
|
var previewMultiAttachBillingControlsOutboundSchema = import_v410.z.object({
|
|
15383
15675
|
spend_limits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
15384
|
-
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional()
|
|
15676
|
+
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
15677
|
+
overage_allowed: import_v410.z.union([
|
|
15678
|
+
import_v410.z.array(previewMultiAttachOverageAllowedOutboundSchema),
|
|
15679
|
+
import_v410.z.undefined()
|
|
15680
|
+
]).optional()
|
|
15385
15681
|
});
|
|
15386
15682
|
var previewMultiAttachEntityDataOutboundSchema = import_v410.z.object({
|
|
15387
15683
|
feature_id: import_v410.z.string(),
|
|
@@ -15426,6 +15722,7 @@ var previewMultiAttachProrationSchema = import_v410.z.object({
|
|
|
15426
15722
|
var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
|
|
15427
15723
|
var previewMultiAttachRolloverSchema = import_v410.z.object({
|
|
15428
15724
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15725
|
+
maxPercentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15429
15726
|
expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
|
|
15430
15727
|
expiryDurationLength: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15431
15728
|
});
|
|
@@ -15469,7 +15766,8 @@ var previewMultiAttachUsageAlertSchema = import_v410.z.object({
|
|
|
15469
15766
|
});
|
|
15470
15767
|
var previewMultiAttachBillingControlsSchema = import_v410.z.object({
|
|
15471
15768
|
spendLimits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitSchema), import_v410.z.undefined()]).optional(),
|
|
15472
|
-
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional()
|
|
15769
|
+
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional(),
|
|
15770
|
+
overageAllowed: import_v410.z.union([import_v410.z.array(previewMultiAttachOverageAllowedSchema), import_v410.z.undefined()]).optional()
|
|
15473
15771
|
});
|
|
15474
15772
|
var previewMultiAttachEntityDataSchema = import_v410.z.object({
|
|
15475
15773
|
featureId: import_v410.z.string(),
|
|
@@ -15665,6 +15963,7 @@ var previewUpdateProrationOutboundSchema = import_v411.z.object({
|
|
|
15665
15963
|
});
|
|
15666
15964
|
var previewUpdateRolloverOutboundSchema = import_v411.z.object({
|
|
15667
15965
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15966
|
+
max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15668
15967
|
expiry_duration_type: import_v411.z.string(),
|
|
15669
15968
|
expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
15670
15969
|
});
|
|
@@ -15749,6 +16048,7 @@ var previewUpdateProrationSchema = import_v411.z.object({
|
|
|
15749
16048
|
var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
|
|
15750
16049
|
var previewUpdateRolloverSchema = import_v411.z.object({
|
|
15751
16050
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
16051
|
+
maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15752
16052
|
expiryDurationType: previewUpdateExpiryDurationTypeSchema,
|
|
15753
16053
|
expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
15754
16054
|
});
|
|
@@ -15912,6 +16212,7 @@ var setupPaymentProrationOutboundSchema = import_v413.z.object({
|
|
|
15912
16212
|
});
|
|
15913
16213
|
var setupPaymentRolloverOutboundSchema = import_v413.z.object({
|
|
15914
16214
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16215
|
+
max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
15915
16216
|
expiry_duration_type: import_v413.z.string(),
|
|
15916
16217
|
expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
15917
16218
|
});
|
|
@@ -16002,6 +16303,7 @@ var setupPaymentProrationSchema = import_v413.z.object({
|
|
|
16002
16303
|
var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
|
|
16003
16304
|
var setupPaymentRolloverSchema = import_v413.z.object({
|
|
16004
16305
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16306
|
+
maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16005
16307
|
expiryDurationType: setupPaymentExpiryDurationTypeSchema,
|
|
16006
16308
|
expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
16007
16309
|
});
|
|
@@ -16112,6 +16414,7 @@ var billingUpdateProrationOutboundSchema = import_v414.z.object({
|
|
|
16112
16414
|
});
|
|
16113
16415
|
var billingUpdateRolloverOutboundSchema = import_v414.z.object({
|
|
16114
16416
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16417
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16115
16418
|
expiry_duration_type: import_v414.z.string(),
|
|
16116
16419
|
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
16117
16420
|
});
|
|
@@ -16192,6 +16495,7 @@ var billingUpdateProrationSchema = import_v414.z.object({
|
|
|
16192
16495
|
var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
|
|
16193
16496
|
var billingUpdateRolloverSchema = import_v414.z.object({
|
|
16194
16497
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16498
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16195
16499
|
expiryDurationType: billingUpdateExpiryDurationTypeSchema,
|
|
16196
16500
|
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
16197
16501
|
});
|