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
package/dist/backend/index.js
CHANGED
|
@@ -86,8 +86,8 @@ var SDK_METADATA = {
|
|
|
86
86
|
language: "typescript",
|
|
87
87
|
openapiDocVersion: "2.2.0",
|
|
88
88
|
sdkVersion: "0.10.17",
|
|
89
|
-
genVersion: "2.
|
|
90
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.
|
|
89
|
+
genVersion: "2.879.1",
|
|
90
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.1 2.2.0 @useautumn/sdk"
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
// ../sdk/src/lib/http.ts
|
|
@@ -1009,8 +1009,8 @@ function applyBearer(state, spec) {
|
|
|
1009
1009
|
state.headers[spec.fieldName] = value;
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
|
-
function resolveGlobalSecurity(security) {
|
|
1013
|
-
|
|
1012
|
+
function resolveGlobalSecurity(security, allowedFields) {
|
|
1013
|
+
let inputs = [
|
|
1014
1014
|
[
|
|
1015
1015
|
{
|
|
1016
1016
|
fieldName: "Authorization",
|
|
@@ -1018,7 +1018,16 @@ function resolveGlobalSecurity(security) {
|
|
|
1018
1018
|
value: security?.secretKey ?? env().AUTUMN_SECRET_KEY
|
|
1019
1019
|
}
|
|
1020
1020
|
]
|
|
1021
|
-
|
|
1021
|
+
];
|
|
1022
|
+
if (allowedFields) {
|
|
1023
|
+
inputs = allowedFields.map((i) => {
|
|
1024
|
+
if (i < 0 || i >= inputs.length) {
|
|
1025
|
+
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
1026
|
+
}
|
|
1027
|
+
return inputs[i];
|
|
1028
|
+
});
|
|
1029
|
+
}
|
|
1030
|
+
return resolveSecurity(...inputs);
|
|
1022
1031
|
}
|
|
1023
1032
|
async function extractSecurity(sec) {
|
|
1024
1033
|
if (sec == null) {
|
|
@@ -1565,11 +1574,13 @@ var AttachExpiryDurationType$outboundSchema = z10.enum(AttachExpiryDurationType)
|
|
|
1565
1574
|
var AttachRollover$outboundSchema = z10.pipe(
|
|
1566
1575
|
z10.object({
|
|
1567
1576
|
max: z10.optional(z10.number()),
|
|
1577
|
+
maxPercentage: z10.optional(z10.number()),
|
|
1568
1578
|
expiryDurationType: AttachExpiryDurationType$outboundSchema,
|
|
1569
1579
|
expiryDurationLength: z10.optional(z10.number())
|
|
1570
1580
|
}),
|
|
1571
1581
|
z10.transform((v) => {
|
|
1572
1582
|
return remap(v, {
|
|
1583
|
+
maxPercentage: "max_percentage",
|
|
1573
1584
|
expiryDurationType: "expiry_duration_type",
|
|
1574
1585
|
expiryDurationLength: "expiry_duration_length"
|
|
1575
1586
|
});
|
|
@@ -2094,11 +2105,13 @@ var BillingUpdateExpiryDurationType$outboundSchema = z12.enum(BillingUpdateExpir
|
|
|
2094
2105
|
var BillingUpdateRollover$outboundSchema = z12.pipe(
|
|
2095
2106
|
z12.object({
|
|
2096
2107
|
max: z12.optional(z12.number()),
|
|
2108
|
+
maxPercentage: z12.optional(z12.number()),
|
|
2097
2109
|
expiryDurationType: BillingUpdateExpiryDurationType$outboundSchema,
|
|
2098
2110
|
expiryDurationLength: z12.optional(z12.number())
|
|
2099
2111
|
}),
|
|
2100
2112
|
z12.transform((v) => {
|
|
2101
2113
|
return remap(v, {
|
|
2114
|
+
maxPercentage: "max_percentage",
|
|
2102
2115
|
expiryDurationType: "expiry_duration_type",
|
|
2103
2116
|
expiryDurationLength: "expiry_duration_length"
|
|
2104
2117
|
});
|
|
@@ -2440,11 +2453,19 @@ var ProductDisplay$inboundSchema = z13.pipe(
|
|
|
2440
2453
|
})
|
|
2441
2454
|
);
|
|
2442
2455
|
var RolloverDuration$inboundSchema = inboundSchema(RolloverDuration);
|
|
2443
|
-
var CheckRollover$inboundSchema = z13.
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2456
|
+
var CheckRollover$inboundSchema = z13.pipe(
|
|
2457
|
+
z13.object({
|
|
2458
|
+
max: z13.optional(z13.nullable(number2())),
|
|
2459
|
+
max_percentage: z13.optional(z13.nullable(number2())),
|
|
2460
|
+
duration: z13._default(RolloverDuration$inboundSchema, "month"),
|
|
2461
|
+
length: number2()
|
|
2462
|
+
}),
|
|
2463
|
+
z13.transform((v) => {
|
|
2464
|
+
return remap(v, {
|
|
2465
|
+
"max_percentage": "maxPercentage"
|
|
2466
|
+
});
|
|
2467
|
+
})
|
|
2468
|
+
);
|
|
2448
2469
|
var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
|
|
2449
2470
|
var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
|
|
2450
2471
|
var Config$inboundSchema = z13.pipe(
|
|
@@ -2721,6 +2742,17 @@ var CustomerDataUsageAlert$outboundSchema = z15.pipe(
|
|
|
2721
2742
|
});
|
|
2722
2743
|
})
|
|
2723
2744
|
);
|
|
2745
|
+
var CustomerDataOverageAllowed$outboundSchema = z15.pipe(
|
|
2746
|
+
z15.object({
|
|
2747
|
+
featureId: z15.string(),
|
|
2748
|
+
enabled: z15._default(z15.boolean(), false)
|
|
2749
|
+
}),
|
|
2750
|
+
z15.transform((v) => {
|
|
2751
|
+
return remap(v, {
|
|
2752
|
+
featureId: "feature_id"
|
|
2753
|
+
});
|
|
2754
|
+
})
|
|
2755
|
+
);
|
|
2724
2756
|
var CustomerDataBillingControls$outboundSchema = z15.pipe(
|
|
2725
2757
|
z15.object({
|
|
2726
2758
|
autoTopups: z15.optional(
|
|
@@ -2731,13 +2763,17 @@ var CustomerDataBillingControls$outboundSchema = z15.pipe(
|
|
|
2731
2763
|
),
|
|
2732
2764
|
usageAlerts: z15.optional(
|
|
2733
2765
|
z15.array(z15.lazy(() => CustomerDataUsageAlert$outboundSchema))
|
|
2766
|
+
),
|
|
2767
|
+
overageAllowed: z15.optional(
|
|
2768
|
+
z15.array(z15.lazy(() => CustomerDataOverageAllowed$outboundSchema))
|
|
2734
2769
|
)
|
|
2735
2770
|
}),
|
|
2736
2771
|
z15.transform((v) => {
|
|
2737
2772
|
return remap(v, {
|
|
2738
2773
|
autoTopups: "auto_topups",
|
|
2739
2774
|
spendLimits: "spend_limits",
|
|
2740
|
-
usageAlerts: "usage_alerts"
|
|
2775
|
+
usageAlerts: "usage_alerts",
|
|
2776
|
+
overageAllowed: "overage_allowed"
|
|
2741
2777
|
});
|
|
2742
2778
|
})
|
|
2743
2779
|
);
|
|
@@ -2948,11 +2984,13 @@ var ExpiryDurationType$inboundSchema = inboundSchema(ExpiryDurationType);
|
|
|
2948
2984
|
var PlanRollover$inboundSchema = z16.pipe(
|
|
2949
2985
|
z16.object({
|
|
2950
2986
|
max: nullable(number2()),
|
|
2987
|
+
max_percentage: z16.optional(z16.nullable(number2())),
|
|
2951
2988
|
expiry_duration_type: ExpiryDurationType$inboundSchema,
|
|
2952
2989
|
expiry_duration_length: optional2(number2())
|
|
2953
2990
|
}),
|
|
2954
2991
|
z16.transform((v) => {
|
|
2955
2992
|
return remap(v, {
|
|
2993
|
+
"max_percentage": "maxPercentage",
|
|
2956
2994
|
"expiry_duration_type": "expiryDurationType",
|
|
2957
2995
|
"expiry_duration_length": "expiryDurationLength"
|
|
2958
2996
|
});
|
|
@@ -3091,6 +3129,17 @@ var CreateEntityUsageAlertRequestBody$outboundSchema = z17.pipe(
|
|
|
3091
3129
|
});
|
|
3092
3130
|
})
|
|
3093
3131
|
);
|
|
3132
|
+
var CreateEntityOverageAllowedRequest$outboundSchema = z17.pipe(
|
|
3133
|
+
z17.object({
|
|
3134
|
+
featureId: z17.string(),
|
|
3135
|
+
enabled: z17._default(z17.boolean(), false)
|
|
3136
|
+
}),
|
|
3137
|
+
z17.transform((v) => {
|
|
3138
|
+
return remap(v, {
|
|
3139
|
+
featureId: "feature_id"
|
|
3140
|
+
});
|
|
3141
|
+
})
|
|
3142
|
+
);
|
|
3094
3143
|
var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
|
|
3095
3144
|
z17.object({
|
|
3096
3145
|
spendLimits: z17.optional(
|
|
@@ -3098,12 +3147,16 @@ var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
|
|
|
3098
3147
|
),
|
|
3099
3148
|
usageAlerts: z17.optional(
|
|
3100
3149
|
z17.array(z17.lazy(() => CreateEntityUsageAlertRequestBody$outboundSchema))
|
|
3150
|
+
),
|
|
3151
|
+
overageAllowed: z17.optional(
|
|
3152
|
+
z17.array(z17.lazy(() => CreateEntityOverageAllowedRequest$outboundSchema))
|
|
3101
3153
|
)
|
|
3102
3154
|
}),
|
|
3103
3155
|
z17.transform((v) => {
|
|
3104
3156
|
return remap(v, {
|
|
3105
3157
|
spendLimits: "spend_limits",
|
|
3106
|
-
usageAlerts: "usage_alerts"
|
|
3158
|
+
usageAlerts: "usage_alerts",
|
|
3159
|
+
overageAllowed: "overage_allowed"
|
|
3107
3160
|
});
|
|
3108
3161
|
})
|
|
3109
3162
|
);
|
|
@@ -3260,6 +3313,17 @@ var CreateEntityUsageAlertResponse$inboundSchema = z17.pipe(
|
|
|
3260
3313
|
});
|
|
3261
3314
|
})
|
|
3262
3315
|
);
|
|
3316
|
+
var CreateEntityOverageAllowedResponse$inboundSchema = z17.pipe(
|
|
3317
|
+
z17.object({
|
|
3318
|
+
feature_id: string4(),
|
|
3319
|
+
enabled: z17._default(boolean2(), false)
|
|
3320
|
+
}),
|
|
3321
|
+
z17.transform((v) => {
|
|
3322
|
+
return remap(v, {
|
|
3323
|
+
"feature_id": "featureId"
|
|
3324
|
+
});
|
|
3325
|
+
})
|
|
3326
|
+
);
|
|
3263
3327
|
var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
|
|
3264
3328
|
z17.object({
|
|
3265
3329
|
spend_limits: optional2(
|
|
@@ -3267,12 +3331,16 @@ var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
|
|
|
3267
3331
|
),
|
|
3268
3332
|
usage_alerts: optional2(
|
|
3269
3333
|
z17.array(z17.lazy(() => CreateEntityUsageAlertResponse$inboundSchema))
|
|
3334
|
+
),
|
|
3335
|
+
overage_allowed: optional2(
|
|
3336
|
+
z17.array(z17.lazy(() => CreateEntityOverageAllowedResponse$inboundSchema))
|
|
3270
3337
|
)
|
|
3271
3338
|
}),
|
|
3272
3339
|
z17.transform((v) => {
|
|
3273
3340
|
return remap(v, {
|
|
3274
3341
|
"spend_limits": "spendLimits",
|
|
3275
|
-
"usage_alerts": "usageAlerts"
|
|
3342
|
+
"usage_alerts": "usageAlerts",
|
|
3343
|
+
"overage_allowed": "overageAllowed"
|
|
3276
3344
|
});
|
|
3277
3345
|
})
|
|
3278
3346
|
);
|
|
@@ -3622,11 +3690,13 @@ var CreatePlanExpiryDurationTypeRequest$outboundSchema = z19.enum(CreatePlanExpi
|
|
|
3622
3690
|
var CreatePlanRolloverRequest$outboundSchema = z19.pipe(
|
|
3623
3691
|
z19.object({
|
|
3624
3692
|
max: z19.optional(z19.number()),
|
|
3693
|
+
maxPercentage: z19.optional(z19.number()),
|
|
3625
3694
|
expiryDurationType: CreatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
3626
3695
|
expiryDurationLength: z19.optional(z19.number())
|
|
3627
3696
|
}),
|
|
3628
3697
|
z19.transform((v) => {
|
|
3629
3698
|
return remap(v, {
|
|
3699
|
+
maxPercentage: "max_percentage",
|
|
3630
3700
|
expiryDurationType: "expiry_duration_type",
|
|
3631
3701
|
expiryDurationLength: "expiry_duration_length"
|
|
3632
3702
|
});
|
|
@@ -3803,11 +3873,13 @@ var CreatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePla
|
|
|
3803
3873
|
var CreatePlanRolloverResponse$inboundSchema = z19.pipe(
|
|
3804
3874
|
z19.object({
|
|
3805
3875
|
max: nullable(number2()),
|
|
3876
|
+
max_percentage: z19.optional(z19.nullable(number2())),
|
|
3806
3877
|
expiry_duration_type: CreatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
3807
3878
|
expiry_duration_length: optional2(number2())
|
|
3808
3879
|
}),
|
|
3809
3880
|
z19.transform((v) => {
|
|
3810
3881
|
return remap(v, {
|
|
3882
|
+
"max_percentage": "maxPercentage",
|
|
3811
3883
|
"expiry_duration_type": "expiryDurationType",
|
|
3812
3884
|
"expiry_duration_length": "expiryDurationLength"
|
|
3813
3885
|
});
|
|
@@ -4029,6 +4101,17 @@ var CustomerUsageAlert$inboundSchema = z21.pipe(
|
|
|
4029
4101
|
});
|
|
4030
4102
|
})
|
|
4031
4103
|
);
|
|
4104
|
+
var CustomerOverageAllowed$inboundSchema = z21.pipe(
|
|
4105
|
+
z21.object({
|
|
4106
|
+
feature_id: string4(),
|
|
4107
|
+
enabled: z21._default(boolean2(), false)
|
|
4108
|
+
}),
|
|
4109
|
+
z21.transform((v) => {
|
|
4110
|
+
return remap(v, {
|
|
4111
|
+
"feature_id": "featureId"
|
|
4112
|
+
});
|
|
4113
|
+
})
|
|
4114
|
+
);
|
|
4032
4115
|
var CustomerBillingControls$inboundSchema = z21.pipe(
|
|
4033
4116
|
z21.object({
|
|
4034
4117
|
auto_topups: optional2(
|
|
@@ -4039,13 +4122,17 @@ var CustomerBillingControls$inboundSchema = z21.pipe(
|
|
|
4039
4122
|
),
|
|
4040
4123
|
usage_alerts: optional2(
|
|
4041
4124
|
z21.array(z21.lazy(() => CustomerUsageAlert$inboundSchema))
|
|
4125
|
+
),
|
|
4126
|
+
overage_allowed: optional2(
|
|
4127
|
+
z21.array(z21.lazy(() => CustomerOverageAllowed$inboundSchema))
|
|
4042
4128
|
)
|
|
4043
4129
|
}),
|
|
4044
4130
|
z21.transform((v) => {
|
|
4045
4131
|
return remap(v, {
|
|
4046
4132
|
"auto_topups": "autoTopups",
|
|
4047
4133
|
"spend_limits": "spendLimits",
|
|
4048
|
-
"usage_alerts": "usageAlerts"
|
|
4134
|
+
"usage_alerts": "usageAlerts",
|
|
4135
|
+
"overage_allowed": "overageAllowed"
|
|
4049
4136
|
});
|
|
4050
4137
|
})
|
|
4051
4138
|
);
|
|
@@ -4584,6 +4671,17 @@ var GetEntityUsageAlert$inboundSchema = z28.pipe(
|
|
|
4584
4671
|
});
|
|
4585
4672
|
})
|
|
4586
4673
|
);
|
|
4674
|
+
var GetEntityOverageAllowed$inboundSchema = z28.pipe(
|
|
4675
|
+
z28.object({
|
|
4676
|
+
feature_id: string4(),
|
|
4677
|
+
enabled: z28._default(boolean2(), false)
|
|
4678
|
+
}),
|
|
4679
|
+
z28.transform((v) => {
|
|
4680
|
+
return remap(v, {
|
|
4681
|
+
"feature_id": "featureId"
|
|
4682
|
+
});
|
|
4683
|
+
})
|
|
4684
|
+
);
|
|
4587
4685
|
var GetEntityBillingControls$inboundSchema = z28.pipe(
|
|
4588
4686
|
z28.object({
|
|
4589
4687
|
spend_limits: optional2(
|
|
@@ -4591,12 +4689,16 @@ var GetEntityBillingControls$inboundSchema = z28.pipe(
|
|
|
4591
4689
|
),
|
|
4592
4690
|
usage_alerts: optional2(
|
|
4593
4691
|
z28.array(z28.lazy(() => GetEntityUsageAlert$inboundSchema))
|
|
4692
|
+
),
|
|
4693
|
+
overage_allowed: optional2(
|
|
4694
|
+
z28.array(z28.lazy(() => GetEntityOverageAllowed$inboundSchema))
|
|
4594
4695
|
)
|
|
4595
4696
|
}),
|
|
4596
4697
|
z28.transform((v) => {
|
|
4597
4698
|
return remap(v, {
|
|
4598
4699
|
"spend_limits": "spendLimits",
|
|
4599
|
-
"usage_alerts": "usageAlerts"
|
|
4700
|
+
"usage_alerts": "usageAlerts",
|
|
4701
|
+
"overage_allowed": "overageAllowed"
|
|
4600
4702
|
});
|
|
4601
4703
|
})
|
|
4602
4704
|
);
|
|
@@ -4774,6 +4876,17 @@ var GetOrCreateCustomerUsageAlert$outboundSchema = z30.pipe(
|
|
|
4774
4876
|
});
|
|
4775
4877
|
})
|
|
4776
4878
|
);
|
|
4879
|
+
var GetOrCreateCustomerOverageAllowed$outboundSchema = z30.pipe(
|
|
4880
|
+
z30.object({
|
|
4881
|
+
featureId: z30.string(),
|
|
4882
|
+
enabled: z30._default(z30.boolean(), false)
|
|
4883
|
+
}),
|
|
4884
|
+
z30.transform((v) => {
|
|
4885
|
+
return remap(v, {
|
|
4886
|
+
featureId: "feature_id"
|
|
4887
|
+
});
|
|
4888
|
+
})
|
|
4889
|
+
);
|
|
4777
4890
|
var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
|
|
4778
4891
|
z30.object({
|
|
4779
4892
|
autoTopups: z30.optional(
|
|
@@ -4784,13 +4897,17 @@ var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
|
|
|
4784
4897
|
),
|
|
4785
4898
|
usageAlerts: z30.optional(
|
|
4786
4899
|
z30.array(z30.lazy(() => GetOrCreateCustomerUsageAlert$outboundSchema))
|
|
4900
|
+
),
|
|
4901
|
+
overageAllowed: z30.optional(
|
|
4902
|
+
z30.array(z30.lazy(() => GetOrCreateCustomerOverageAllowed$outboundSchema))
|
|
4787
4903
|
)
|
|
4788
4904
|
}),
|
|
4789
4905
|
z30.transform((v) => {
|
|
4790
4906
|
return remap(v, {
|
|
4791
4907
|
autoTopups: "auto_topups",
|
|
4792
4908
|
spendLimits: "spend_limits",
|
|
4793
|
-
usageAlerts: "usage_alerts"
|
|
4909
|
+
usageAlerts: "usage_alerts",
|
|
4910
|
+
overageAllowed: "overage_allowed"
|
|
4794
4911
|
});
|
|
4795
4912
|
})
|
|
4796
4913
|
);
|
|
@@ -5015,11 +5132,13 @@ var GetPlanExpiryDurationType$inboundSchema = inboundSchema(GetPlanExpiryDuratio
|
|
|
5015
5132
|
var GetPlanRollover$inboundSchema = z31.pipe(
|
|
5016
5133
|
z31.object({
|
|
5017
5134
|
max: nullable(number2()),
|
|
5135
|
+
max_percentage: z31.optional(z31.nullable(number2())),
|
|
5018
5136
|
expiry_duration_type: GetPlanExpiryDurationType$inboundSchema,
|
|
5019
5137
|
expiry_duration_length: optional2(number2())
|
|
5020
5138
|
}),
|
|
5021
5139
|
z31.transform((v) => {
|
|
5022
5140
|
return remap(v, {
|
|
5141
|
+
"max_percentage": "maxPercentage",
|
|
5023
5142
|
"expiry_duration_type": "expiryDurationType",
|
|
5024
5143
|
"expiry_duration_length": "expiryDurationLength"
|
|
5025
5144
|
});
|
|
@@ -5247,6 +5366,17 @@ var ListCustomersUsageAlert$inboundSchema = z32.pipe(
|
|
|
5247
5366
|
});
|
|
5248
5367
|
})
|
|
5249
5368
|
);
|
|
5369
|
+
var ListCustomersOverageAllowed$inboundSchema = z32.pipe(
|
|
5370
|
+
z32.object({
|
|
5371
|
+
feature_id: string4(),
|
|
5372
|
+
enabled: z32._default(boolean2(), false)
|
|
5373
|
+
}),
|
|
5374
|
+
z32.transform((v) => {
|
|
5375
|
+
return remap(v, {
|
|
5376
|
+
"feature_id": "featureId"
|
|
5377
|
+
});
|
|
5378
|
+
})
|
|
5379
|
+
);
|
|
5250
5380
|
var ListCustomersBillingControls$inboundSchema = z32.pipe(
|
|
5251
5381
|
z32.object({
|
|
5252
5382
|
auto_topups: optional2(
|
|
@@ -5257,13 +5387,17 @@ var ListCustomersBillingControls$inboundSchema = z32.pipe(
|
|
|
5257
5387
|
),
|
|
5258
5388
|
usage_alerts: optional2(
|
|
5259
5389
|
z32.array(z32.lazy(() => ListCustomersUsageAlert$inboundSchema))
|
|
5390
|
+
),
|
|
5391
|
+
overage_allowed: optional2(
|
|
5392
|
+
z32.array(z32.lazy(() => ListCustomersOverageAllowed$inboundSchema))
|
|
5260
5393
|
)
|
|
5261
5394
|
}),
|
|
5262
5395
|
z32.transform((v) => {
|
|
5263
5396
|
return remap(v, {
|
|
5264
5397
|
"auto_topups": "autoTopups",
|
|
5265
5398
|
"spend_limits": "spendLimits",
|
|
5266
|
-
"usage_alerts": "usageAlerts"
|
|
5399
|
+
"usage_alerts": "usageAlerts",
|
|
5400
|
+
"overage_allowed": "overageAllowed"
|
|
5267
5401
|
});
|
|
5268
5402
|
})
|
|
5269
5403
|
);
|
|
@@ -5718,11 +5852,13 @@ var ListPlansExpiryDurationType$inboundSchema = inboundSchema(ListPlansExpiryDur
|
|
|
5718
5852
|
var ListPlansRollover$inboundSchema = z35.pipe(
|
|
5719
5853
|
z35.object({
|
|
5720
5854
|
max: nullable(number2()),
|
|
5855
|
+
max_percentage: z35.optional(z35.nullable(number2())),
|
|
5721
5856
|
expiry_duration_type: ListPlansExpiryDurationType$inboundSchema,
|
|
5722
5857
|
expiry_duration_length: optional2(number2())
|
|
5723
5858
|
}),
|
|
5724
5859
|
z35.transform((v) => {
|
|
5725
5860
|
return remap(v, {
|
|
5861
|
+
"max_percentage": "maxPercentage",
|
|
5726
5862
|
"expiry_duration_type": "expiryDurationType",
|
|
5727
5863
|
"expiry_duration_length": "expiryDurationLength"
|
|
5728
5864
|
});
|
|
@@ -5966,11 +6102,13 @@ var MultiAttachExpiryDurationType$outboundSchema = z36.enum(MultiAttachExpiryDur
|
|
|
5966
6102
|
var MultiAttachRollover$outboundSchema = z36.pipe(
|
|
5967
6103
|
z36.object({
|
|
5968
6104
|
max: z36.optional(z36.number()),
|
|
6105
|
+
maxPercentage: z36.optional(z36.number()),
|
|
5969
6106
|
expiryDurationType: MultiAttachExpiryDurationType$outboundSchema,
|
|
5970
6107
|
expiryDurationLength: z36.optional(z36.number())
|
|
5971
6108
|
}),
|
|
5972
6109
|
z36.transform((v) => {
|
|
5973
6110
|
return remap(v, {
|
|
6111
|
+
maxPercentage: "max_percentage",
|
|
5974
6112
|
expiryDurationType: "expiry_duration_type",
|
|
5975
6113
|
expiryDurationLength: "expiry_duration_length"
|
|
5976
6114
|
});
|
|
@@ -6097,6 +6235,17 @@ var MultiAttachUsageAlert$outboundSchema = z36.pipe(
|
|
|
6097
6235
|
});
|
|
6098
6236
|
})
|
|
6099
6237
|
);
|
|
6238
|
+
var MultiAttachOverageAllowed$outboundSchema = z36.pipe(
|
|
6239
|
+
z36.object({
|
|
6240
|
+
featureId: z36.string(),
|
|
6241
|
+
enabled: z36._default(z36.boolean(), false)
|
|
6242
|
+
}),
|
|
6243
|
+
z36.transform((v) => {
|
|
6244
|
+
return remap(v, {
|
|
6245
|
+
featureId: "feature_id"
|
|
6246
|
+
});
|
|
6247
|
+
})
|
|
6248
|
+
);
|
|
6100
6249
|
var MultiAttachBillingControls$outboundSchema = z36.pipe(
|
|
6101
6250
|
z36.object({
|
|
6102
6251
|
spendLimits: z36.optional(
|
|
@@ -6104,12 +6253,16 @@ var MultiAttachBillingControls$outboundSchema = z36.pipe(
|
|
|
6104
6253
|
),
|
|
6105
6254
|
usageAlerts: z36.optional(
|
|
6106
6255
|
z36.array(z36.lazy(() => MultiAttachUsageAlert$outboundSchema))
|
|
6256
|
+
),
|
|
6257
|
+
overageAllowed: z36.optional(
|
|
6258
|
+
z36.array(z36.lazy(() => MultiAttachOverageAllowed$outboundSchema))
|
|
6107
6259
|
)
|
|
6108
6260
|
}),
|
|
6109
6261
|
z36.transform((v) => {
|
|
6110
6262
|
return remap(v, {
|
|
6111
6263
|
spendLimits: "spend_limits",
|
|
6112
|
-
usageAlerts: "usage_alerts"
|
|
6264
|
+
usageAlerts: "usage_alerts",
|
|
6265
|
+
overageAllowed: "overage_allowed"
|
|
6113
6266
|
});
|
|
6114
6267
|
})
|
|
6115
6268
|
);
|
|
@@ -6403,11 +6556,13 @@ var PreviewAttachExpiryDurationType$outboundSchema = z38.enum(PreviewAttachExpir
|
|
|
6403
6556
|
var PreviewAttachRollover$outboundSchema = z38.pipe(
|
|
6404
6557
|
z38.object({
|
|
6405
6558
|
max: z38.optional(z38.number()),
|
|
6559
|
+
maxPercentage: z38.optional(z38.number()),
|
|
6406
6560
|
expiryDurationType: PreviewAttachExpiryDurationType$outboundSchema,
|
|
6407
6561
|
expiryDurationLength: z38.optional(z38.number())
|
|
6408
6562
|
}),
|
|
6409
6563
|
z38.transform((v) => {
|
|
6410
6564
|
return remap(v, {
|
|
6565
|
+
maxPercentage: "max_percentage",
|
|
6411
6566
|
expiryDurationType: "expiry_duration_type",
|
|
6412
6567
|
expiryDurationLength: "expiry_duration_length"
|
|
6413
6568
|
});
|
|
@@ -6951,11 +7106,13 @@ var PreviewMultiAttachExpiryDurationType$outboundSchema = z39.enum(PreviewMultiA
|
|
|
6951
7106
|
var PreviewMultiAttachRollover$outboundSchema = z39.pipe(
|
|
6952
7107
|
z39.object({
|
|
6953
7108
|
max: z39.optional(z39.number()),
|
|
7109
|
+
maxPercentage: z39.optional(z39.number()),
|
|
6954
7110
|
expiryDurationType: PreviewMultiAttachExpiryDurationType$outboundSchema,
|
|
6955
7111
|
expiryDurationLength: z39.optional(z39.number())
|
|
6956
7112
|
}),
|
|
6957
7113
|
z39.transform((v) => {
|
|
6958
7114
|
return remap(v, {
|
|
7115
|
+
maxPercentage: "max_percentage",
|
|
6959
7116
|
expiryDurationType: "expiry_duration_type",
|
|
6960
7117
|
expiryDurationLength: "expiry_duration_length"
|
|
6961
7118
|
});
|
|
@@ -7095,6 +7252,17 @@ var PreviewMultiAttachUsageAlert$outboundSchema = z39.pipe(
|
|
|
7095
7252
|
});
|
|
7096
7253
|
})
|
|
7097
7254
|
);
|
|
7255
|
+
var PreviewMultiAttachOverageAllowed$outboundSchema = z39.pipe(
|
|
7256
|
+
z39.object({
|
|
7257
|
+
featureId: z39.string(),
|
|
7258
|
+
enabled: z39._default(z39.boolean(), false)
|
|
7259
|
+
}),
|
|
7260
|
+
z39.transform((v) => {
|
|
7261
|
+
return remap(v, {
|
|
7262
|
+
featureId: "feature_id"
|
|
7263
|
+
});
|
|
7264
|
+
})
|
|
7265
|
+
);
|
|
7098
7266
|
var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
|
|
7099
7267
|
z39.object({
|
|
7100
7268
|
spendLimits: z39.optional(
|
|
@@ -7102,12 +7270,16 @@ var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
|
|
|
7102
7270
|
),
|
|
7103
7271
|
usageAlerts: z39.optional(
|
|
7104
7272
|
z39.array(z39.lazy(() => PreviewMultiAttachUsageAlert$outboundSchema))
|
|
7273
|
+
),
|
|
7274
|
+
overageAllowed: z39.optional(
|
|
7275
|
+
z39.array(z39.lazy(() => PreviewMultiAttachOverageAllowed$outboundSchema))
|
|
7105
7276
|
)
|
|
7106
7277
|
}),
|
|
7107
7278
|
z39.transform((v) => {
|
|
7108
7279
|
return remap(v, {
|
|
7109
7280
|
spendLimits: "spend_limits",
|
|
7110
|
-
usageAlerts: "usage_alerts"
|
|
7281
|
+
usageAlerts: "usage_alerts",
|
|
7282
|
+
overageAllowed: "overage_allowed"
|
|
7111
7283
|
});
|
|
7112
7284
|
})
|
|
7113
7285
|
);
|
|
@@ -7563,11 +7735,13 @@ var PreviewUpdateExpiryDurationType$outboundSchema = z40.enum(PreviewUpdateExpir
|
|
|
7563
7735
|
var PreviewUpdateRollover$outboundSchema = z40.pipe(
|
|
7564
7736
|
z40.object({
|
|
7565
7737
|
max: z40.optional(z40.number()),
|
|
7738
|
+
maxPercentage: z40.optional(z40.number()),
|
|
7566
7739
|
expiryDurationType: PreviewUpdateExpiryDurationType$outboundSchema,
|
|
7567
7740
|
expiryDurationLength: z40.optional(z40.number())
|
|
7568
7741
|
}),
|
|
7569
7742
|
z40.transform((v) => {
|
|
7570
7743
|
return remap(v, {
|
|
7744
|
+
maxPercentage: "max_percentage",
|
|
7571
7745
|
expiryDurationType: "expiry_duration_type",
|
|
7572
7746
|
expiryDurationLength: "expiry_duration_length"
|
|
7573
7747
|
});
|
|
@@ -8083,11 +8257,13 @@ var SetupPaymentExpiryDurationType$outboundSchema = z42.enum(SetupPaymentExpiryD
|
|
|
8083
8257
|
var SetupPaymentRollover$outboundSchema = z42.pipe(
|
|
8084
8258
|
z42.object({
|
|
8085
8259
|
max: z42.optional(z42.number()),
|
|
8260
|
+
maxPercentage: z42.optional(z42.number()),
|
|
8086
8261
|
expiryDurationType: SetupPaymentExpiryDurationType$outboundSchema,
|
|
8087
8262
|
expiryDurationLength: z42.optional(z42.number())
|
|
8088
8263
|
}),
|
|
8089
8264
|
z42.transform((v) => {
|
|
8090
8265
|
return remap(v, {
|
|
8266
|
+
maxPercentage: "max_percentage",
|
|
8091
8267
|
expiryDurationType: "expiry_duration_type",
|
|
8092
8268
|
expiryDurationLength: "expiry_duration_length"
|
|
8093
8269
|
});
|
|
@@ -8432,6 +8608,17 @@ var UpdateCustomerUsageAlertRequestBody$outboundSchema = z45.pipe(
|
|
|
8432
8608
|
});
|
|
8433
8609
|
})
|
|
8434
8610
|
);
|
|
8611
|
+
var UpdateCustomerOverageAllowedRequest$outboundSchema = z45.pipe(
|
|
8612
|
+
z45.object({
|
|
8613
|
+
featureId: z45.string(),
|
|
8614
|
+
enabled: z45._default(z45.boolean(), false)
|
|
8615
|
+
}),
|
|
8616
|
+
z45.transform((v) => {
|
|
8617
|
+
return remap(v, {
|
|
8618
|
+
featureId: "feature_id"
|
|
8619
|
+
});
|
|
8620
|
+
})
|
|
8621
|
+
);
|
|
8435
8622
|
var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
|
|
8436
8623
|
z45.object({
|
|
8437
8624
|
autoTopups: z45.optional(
|
|
@@ -8442,13 +8629,17 @@ var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
|
|
|
8442
8629
|
),
|
|
8443
8630
|
usageAlerts: z45.optional(
|
|
8444
8631
|
z45.array(z45.lazy(() => UpdateCustomerUsageAlertRequestBody$outboundSchema))
|
|
8632
|
+
),
|
|
8633
|
+
overageAllowed: z45.optional(
|
|
8634
|
+
z45.array(z45.lazy(() => UpdateCustomerOverageAllowedRequest$outboundSchema))
|
|
8445
8635
|
)
|
|
8446
8636
|
}),
|
|
8447
8637
|
z45.transform((v) => {
|
|
8448
8638
|
return remap(v, {
|
|
8449
8639
|
autoTopups: "auto_topups",
|
|
8450
8640
|
spendLimits: "spend_limits",
|
|
8451
|
-
usageAlerts: "usage_alerts"
|
|
8641
|
+
usageAlerts: "usage_alerts",
|
|
8642
|
+
overageAllowed: "overage_allowed"
|
|
8452
8643
|
});
|
|
8453
8644
|
})
|
|
8454
8645
|
);
|
|
@@ -8536,6 +8727,17 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z45.pipe(
|
|
|
8536
8727
|
});
|
|
8537
8728
|
})
|
|
8538
8729
|
);
|
|
8730
|
+
var UpdateCustomerOverageAllowedResponse$inboundSchema = z45.pipe(
|
|
8731
|
+
z45.object({
|
|
8732
|
+
feature_id: string4(),
|
|
8733
|
+
enabled: z45._default(boolean2(), false)
|
|
8734
|
+
}),
|
|
8735
|
+
z45.transform((v) => {
|
|
8736
|
+
return remap(v, {
|
|
8737
|
+
"feature_id": "featureId"
|
|
8738
|
+
});
|
|
8739
|
+
})
|
|
8740
|
+
);
|
|
8539
8741
|
var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
|
|
8540
8742
|
z45.object({
|
|
8541
8743
|
auto_topups: optional2(
|
|
@@ -8546,13 +8748,17 @@ var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
|
|
|
8546
8748
|
),
|
|
8547
8749
|
usage_alerts: optional2(
|
|
8548
8750
|
z45.array(z45.lazy(() => UpdateCustomerUsageAlertResponse$inboundSchema))
|
|
8751
|
+
),
|
|
8752
|
+
overage_allowed: optional2(
|
|
8753
|
+
z45.array(z45.lazy(() => UpdateCustomerOverageAllowedResponse$inboundSchema))
|
|
8549
8754
|
)
|
|
8550
8755
|
}),
|
|
8551
8756
|
z45.transform((v) => {
|
|
8552
8757
|
return remap(v, {
|
|
8553
8758
|
"auto_topups": "autoTopups",
|
|
8554
8759
|
"spend_limits": "spendLimits",
|
|
8555
|
-
"usage_alerts": "usageAlerts"
|
|
8760
|
+
"usage_alerts": "usageAlerts",
|
|
8761
|
+
"overage_allowed": "overageAllowed"
|
|
8556
8762
|
});
|
|
8557
8763
|
})
|
|
8558
8764
|
);
|
|
@@ -8744,6 +8950,17 @@ var UpdateEntityUsageAlertRequestBody$outboundSchema = z46.pipe(
|
|
|
8744
8950
|
});
|
|
8745
8951
|
})
|
|
8746
8952
|
);
|
|
8953
|
+
var UpdateEntityOverageAllowedRequest$outboundSchema = z46.pipe(
|
|
8954
|
+
z46.object({
|
|
8955
|
+
featureId: z46.string(),
|
|
8956
|
+
enabled: z46._default(z46.boolean(), false)
|
|
8957
|
+
}),
|
|
8958
|
+
z46.transform((v) => {
|
|
8959
|
+
return remap(v, {
|
|
8960
|
+
featureId: "feature_id"
|
|
8961
|
+
});
|
|
8962
|
+
})
|
|
8963
|
+
);
|
|
8747
8964
|
var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
|
|
8748
8965
|
z46.object({
|
|
8749
8966
|
spendLimits: z46.optional(
|
|
@@ -8751,12 +8968,16 @@ var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
|
|
|
8751
8968
|
),
|
|
8752
8969
|
usageAlerts: z46.optional(
|
|
8753
8970
|
z46.array(z46.lazy(() => UpdateEntityUsageAlertRequestBody$outboundSchema))
|
|
8971
|
+
),
|
|
8972
|
+
overageAllowed: z46.optional(
|
|
8973
|
+
z46.array(z46.lazy(() => UpdateEntityOverageAllowedRequest$outboundSchema))
|
|
8754
8974
|
)
|
|
8755
8975
|
}),
|
|
8756
8976
|
z46.transform((v) => {
|
|
8757
8977
|
return remap(v, {
|
|
8758
8978
|
spendLimits: "spend_limits",
|
|
8759
|
-
usageAlerts: "usage_alerts"
|
|
8979
|
+
usageAlerts: "usage_alerts",
|
|
8980
|
+
overageAllowed: "overage_allowed"
|
|
8760
8981
|
});
|
|
8761
8982
|
})
|
|
8762
8983
|
);
|
|
@@ -8908,6 +9129,17 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z46.pipe(
|
|
|
8908
9129
|
});
|
|
8909
9130
|
})
|
|
8910
9131
|
);
|
|
9132
|
+
var UpdateEntityOverageAllowedResponse$inboundSchema = z46.pipe(
|
|
9133
|
+
z46.object({
|
|
9134
|
+
feature_id: string4(),
|
|
9135
|
+
enabled: z46._default(boolean2(), false)
|
|
9136
|
+
}),
|
|
9137
|
+
z46.transform((v) => {
|
|
9138
|
+
return remap(v, {
|
|
9139
|
+
"feature_id": "featureId"
|
|
9140
|
+
});
|
|
9141
|
+
})
|
|
9142
|
+
);
|
|
8911
9143
|
var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
|
|
8912
9144
|
z46.object({
|
|
8913
9145
|
spend_limits: optional2(
|
|
@@ -8915,12 +9147,16 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
|
|
|
8915
9147
|
),
|
|
8916
9148
|
usage_alerts: optional2(
|
|
8917
9149
|
z46.array(z46.lazy(() => UpdateEntityUsageAlertResponse$inboundSchema))
|
|
9150
|
+
),
|
|
9151
|
+
overage_allowed: optional2(
|
|
9152
|
+
z46.array(z46.lazy(() => UpdateEntityOverageAllowedResponse$inboundSchema))
|
|
8918
9153
|
)
|
|
8919
9154
|
}),
|
|
8920
9155
|
z46.transform((v) => {
|
|
8921
9156
|
return remap(v, {
|
|
8922
9157
|
"spend_limits": "spendLimits",
|
|
8923
|
-
"usage_alerts": "usageAlerts"
|
|
9158
|
+
"usage_alerts": "usageAlerts",
|
|
9159
|
+
"overage_allowed": "overageAllowed"
|
|
8924
9160
|
});
|
|
8925
9161
|
})
|
|
8926
9162
|
);
|
|
@@ -9273,11 +9509,13 @@ var UpdatePlanExpiryDurationTypeRequest$outboundSchema = z48.enum(UpdatePlanExpi
|
|
|
9273
9509
|
var UpdatePlanRolloverRequest$outboundSchema = z48.pipe(
|
|
9274
9510
|
z48.object({
|
|
9275
9511
|
max: z48.optional(z48.number()),
|
|
9512
|
+
maxPercentage: z48.optional(z48.number()),
|
|
9276
9513
|
expiryDurationType: UpdatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
9277
9514
|
expiryDurationLength: z48.optional(z48.number())
|
|
9278
9515
|
}),
|
|
9279
9516
|
z48.transform((v) => {
|
|
9280
9517
|
return remap(v, {
|
|
9518
|
+
maxPercentage: "max_percentage",
|
|
9281
9519
|
expiryDurationType: "expiry_duration_type",
|
|
9282
9520
|
expiryDurationLength: "expiry_duration_length"
|
|
9283
9521
|
});
|
|
@@ -9462,11 +9700,13 @@ var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePla
|
|
|
9462
9700
|
var UpdatePlanRolloverResponse$inboundSchema = z48.pipe(
|
|
9463
9701
|
z48.object({
|
|
9464
9702
|
max: nullable(number2()),
|
|
9703
|
+
max_percentage: z48.optional(z48.nullable(number2())),
|
|
9465
9704
|
expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
9466
9705
|
expiry_duration_length: optional2(number2())
|
|
9467
9706
|
}),
|
|
9468
9707
|
z48.transform((v) => {
|
|
9469
9708
|
return remap(v, {
|
|
9709
|
+
"max_percentage": "maxPercentage",
|
|
9470
9710
|
"expiry_duration_type": "expiryDurationType",
|
|
9471
9711
|
"expiry_duration_length": "expiryDurationLength"
|
|
9472
9712
|
});
|
|
@@ -9743,7 +9983,8 @@ async function $do2(client, request, options) {
|
|
|
9743
9983
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set([
|
|
9744
9984
|
"check",
|
|
9745
9985
|
"track",
|
|
9746
|
-
"getOrCreateCustomer"
|
|
9986
|
+
"getOrCreateCustomer",
|
|
9987
|
+
"getEntity"
|
|
9747
9988
|
]);
|
|
9748
9989
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
9749
9990
|
var FAIL_OPEN_BODIES = {
|
|
@@ -9773,6 +10014,18 @@ var FAIL_OPEN_BODIES = {
|
|
|
9773
10014
|
purchases: [],
|
|
9774
10015
|
balances: {},
|
|
9775
10016
|
flags: {}
|
|
10017
|
+
},
|
|
10018
|
+
getEntity: {
|
|
10019
|
+
id: null,
|
|
10020
|
+
name: null,
|
|
10021
|
+
customer_id: null,
|
|
10022
|
+
feature_id: null,
|
|
10023
|
+
created_at: 0,
|
|
10024
|
+
env: "live",
|
|
10025
|
+
subscriptions: [],
|
|
10026
|
+
purchases: [],
|
|
10027
|
+
balances: {},
|
|
10028
|
+
flags: {}
|
|
9776
10029
|
}
|
|
9777
10030
|
};
|
|
9778
10031
|
var FailOpenHook = class {
|
|
@@ -14148,6 +14401,7 @@ var attachProrationOutboundSchema = import_v42.z.object({
|
|
|
14148
14401
|
});
|
|
14149
14402
|
var attachRolloverOutboundSchema = import_v42.z.object({
|
|
14150
14403
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14404
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14151
14405
|
expiry_duration_type: import_v42.z.string(),
|
|
14152
14406
|
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
14153
14407
|
});
|
|
@@ -14248,6 +14502,7 @@ var attachProrationSchema = import_v42.z.object({
|
|
|
14248
14502
|
var attachExpiryDurationTypeSchema = closedEnumSchema2;
|
|
14249
14503
|
var attachRolloverSchema = import_v42.z.object({
|
|
14250
14504
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14505
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14251
14506
|
expiryDurationType: attachExpiryDurationTypeSchema,
|
|
14252
14507
|
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
14253
14508
|
});
|
|
@@ -14338,6 +14593,10 @@ var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
|
|
|
14338
14593
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
14339
14594
|
overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
14340
14595
|
});
|
|
14596
|
+
var getOrCreateCustomerOverageAllowedSchema = import_v44.z.object({
|
|
14597
|
+
featureId: import_v44.z.string(),
|
|
14598
|
+
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
14599
|
+
});
|
|
14341
14600
|
var getOrCreateCustomerPurchaseLimitOutboundSchema = import_v44.z.object({
|
|
14342
14601
|
interval: import_v44.z.string(),
|
|
14343
14602
|
interval_count: import_v44.z.number(),
|
|
@@ -14362,6 +14621,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = import_v44.z.object({
|
|
|
14362
14621
|
threshold_type: import_v44.z.string(),
|
|
14363
14622
|
name: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
|
|
14364
14623
|
});
|
|
14624
|
+
var getOrCreateCustomerOverageAllowedOutboundSchema = import_v44.z.object({
|
|
14625
|
+
feature_id: import_v44.z.string(),
|
|
14626
|
+
enabled: import_v44.z.boolean()
|
|
14627
|
+
});
|
|
14365
14628
|
var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
14366
14629
|
auto_topups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupOutboundSchema), import_v44.z.undefined()]).optional(),
|
|
14367
14630
|
spend_limits: import_v44.z.union([
|
|
@@ -14371,6 +14634,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
|
14371
14634
|
usage_alerts: import_v44.z.union([
|
|
14372
14635
|
import_v44.z.array(getOrCreateCustomerUsageAlertOutboundSchema),
|
|
14373
14636
|
import_v44.z.undefined()
|
|
14637
|
+
]).optional(),
|
|
14638
|
+
overage_allowed: import_v44.z.union([
|
|
14639
|
+
import_v44.z.array(getOrCreateCustomerOverageAllowedOutboundSchema),
|
|
14640
|
+
import_v44.z.undefined()
|
|
14374
14641
|
]).optional()
|
|
14375
14642
|
});
|
|
14376
14643
|
var getOrCreateCustomerParamsOutboundSchema = import_v44.z.object({
|
|
@@ -14411,7 +14678,8 @@ var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
|
14411
14678
|
var getOrCreateCustomerBillingControlsSchema = import_v44.z.object({
|
|
14412
14679
|
autoTopups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupSchema), import_v44.z.undefined()]).optional(),
|
|
14413
14680
|
spendLimits: import_v44.z.union([import_v44.z.array(getOrCreateCustomerSpendLimitSchema), import_v44.z.undefined()]).optional(),
|
|
14414
|
-
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional()
|
|
14681
|
+
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional(),
|
|
14682
|
+
overageAllowed: import_v44.z.union([import_v44.z.array(getOrCreateCustomerOverageAllowedSchema), import_v44.z.undefined()]).optional()
|
|
14415
14683
|
});
|
|
14416
14684
|
var getOrCreateCustomerParamsSchema = import_v44.z.object({
|
|
14417
14685
|
customerId: import_v44.z.string().nullable(),
|
|
@@ -14550,6 +14818,7 @@ var listPlansItemPriceSchema = import_v46.z.object({
|
|
|
14550
14818
|
var listPlansExpiryDurationTypeSchema = openEnumSchema2;
|
|
14551
14819
|
var listPlansRolloverSchema = import_v46.z.object({
|
|
14552
14820
|
max: import_v46.z.number().nullable(),
|
|
14821
|
+
maxPercentage: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional().nullable(),
|
|
14553
14822
|
expiryDurationType: listPlansExpiryDurationTypeSchema,
|
|
14554
14823
|
expiryDurationLength: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
|
|
14555
14824
|
});
|
|
@@ -14630,6 +14899,10 @@ var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
|
14630
14899
|
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
14631
14900
|
overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14632
14901
|
});
|
|
14902
|
+
var multiAttachOverageAllowedSchema = import_v47.z.object({
|
|
14903
|
+
featureId: import_v47.z.string(),
|
|
14904
|
+
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
|
|
14905
|
+
});
|
|
14633
14906
|
var multiAttachInvoiceSchema = import_v47.z.object({
|
|
14634
14907
|
status: import_v47.z.string().nullable(),
|
|
14635
14908
|
stripeId: import_v47.z.string(),
|
|
@@ -14668,6 +14941,7 @@ var multiAttachProrationOutboundSchema = import_v47.z.object({
|
|
|
14668
14941
|
});
|
|
14669
14942
|
var multiAttachRolloverOutboundSchema = import_v47.z.object({
|
|
14670
14943
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14944
|
+
max_percentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14671
14945
|
expiry_duration_type: import_v47.z.string(),
|
|
14672
14946
|
expiry_duration_length: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14673
14947
|
});
|
|
@@ -14722,9 +14996,14 @@ var multiAttachUsageAlertOutboundSchema = import_v47.z.object({
|
|
|
14722
14996
|
threshold_type: import_v47.z.string(),
|
|
14723
14997
|
name: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
14724
14998
|
});
|
|
14999
|
+
var multiAttachOverageAllowedOutboundSchema = import_v47.z.object({
|
|
15000
|
+
feature_id: import_v47.z.string(),
|
|
15001
|
+
enabled: import_v47.z.boolean()
|
|
15002
|
+
});
|
|
14725
15003
|
var multiAttachBillingControlsOutboundSchema = import_v47.z.object({
|
|
14726
15004
|
spend_limits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
14727
|
-
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional()
|
|
15005
|
+
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
15006
|
+
overage_allowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedOutboundSchema), import_v47.z.undefined()]).optional()
|
|
14728
15007
|
});
|
|
14729
15008
|
var multiAttachEntityDataOutboundSchema = import_v47.z.object({
|
|
14730
15009
|
feature_id: import_v47.z.string(),
|
|
@@ -14768,6 +15047,7 @@ var multiAttachProrationSchema = import_v47.z.object({
|
|
|
14768
15047
|
var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
|
|
14769
15048
|
var multiAttachRolloverSchema = import_v47.z.object({
|
|
14770
15049
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
15050
|
+
maxPercentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14771
15051
|
expiryDurationType: multiAttachExpiryDurationTypeSchema,
|
|
14772
15052
|
expiryDurationLength: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14773
15053
|
});
|
|
@@ -14808,7 +15088,8 @@ var multiAttachUsageAlertSchema = import_v47.z.object({
|
|
|
14808
15088
|
});
|
|
14809
15089
|
var multiAttachBillingControlsSchema = import_v47.z.object({
|
|
14810
15090
|
spendLimits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitSchema), import_v47.z.undefined()]).optional(),
|
|
14811
|
-
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional()
|
|
15091
|
+
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional(),
|
|
15092
|
+
overageAllowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedSchema), import_v47.z.undefined()]).optional()
|
|
14812
15093
|
});
|
|
14813
15094
|
var multiAttachEntityDataSchema = import_v47.z.object({
|
|
14814
15095
|
featureId: import_v47.z.string(),
|
|
@@ -15016,6 +15297,7 @@ var previewAttachProrationOutboundSchema = import_v49.z.object({
|
|
|
15016
15297
|
});
|
|
15017
15298
|
var previewAttachRolloverOutboundSchema = import_v49.z.object({
|
|
15018
15299
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15300
|
+
max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15019
15301
|
expiry_duration_type: import_v49.z.string(),
|
|
15020
15302
|
expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
15021
15303
|
});
|
|
@@ -15120,6 +15402,7 @@ var previewAttachProrationSchema = import_v49.z.object({
|
|
|
15120
15402
|
var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
|
|
15121
15403
|
var previewAttachRolloverSchema = import_v49.z.object({
|
|
15122
15404
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15405
|
+
maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15123
15406
|
expiryDurationType: previewAttachExpiryDurationTypeSchema,
|
|
15124
15407
|
expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
15125
15408
|
});
|
|
@@ -15229,6 +15512,10 @@ var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
|
15229
15512
|
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
15230
15513
|
overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15231
15514
|
});
|
|
15515
|
+
var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
|
|
15516
|
+
featureId: import_v410.z.string(),
|
|
15517
|
+
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
|
|
15518
|
+
});
|
|
15232
15519
|
var previewMultiAttachDiscountSchema = import_v410.z.object({
|
|
15233
15520
|
amountOff: import_v410.z.number(),
|
|
15234
15521
|
percentOff: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
@@ -15330,6 +15617,7 @@ var previewMultiAttachProrationOutboundSchema = import_v410.z.object({
|
|
|
15330
15617
|
});
|
|
15331
15618
|
var previewMultiAttachRolloverOutboundSchema = import_v410.z.object({
|
|
15332
15619
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15620
|
+
max_percentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15333
15621
|
expiry_duration_type: import_v410.z.string(),
|
|
15334
15622
|
expiry_duration_length: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15335
15623
|
});
|
|
@@ -15387,9 +15675,17 @@ var previewMultiAttachUsageAlertOutboundSchema = import_v410.z.object({
|
|
|
15387
15675
|
threshold_type: import_v410.z.string(),
|
|
15388
15676
|
name: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
15389
15677
|
});
|
|
15678
|
+
var previewMultiAttachOverageAllowedOutboundSchema = import_v410.z.object({
|
|
15679
|
+
feature_id: import_v410.z.string(),
|
|
15680
|
+
enabled: import_v410.z.boolean()
|
|
15681
|
+
});
|
|
15390
15682
|
var previewMultiAttachBillingControlsOutboundSchema = import_v410.z.object({
|
|
15391
15683
|
spend_limits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
15392
|
-
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional()
|
|
15684
|
+
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
15685
|
+
overage_allowed: import_v410.z.union([
|
|
15686
|
+
import_v410.z.array(previewMultiAttachOverageAllowedOutboundSchema),
|
|
15687
|
+
import_v410.z.undefined()
|
|
15688
|
+
]).optional()
|
|
15393
15689
|
});
|
|
15394
15690
|
var previewMultiAttachEntityDataOutboundSchema = import_v410.z.object({
|
|
15395
15691
|
feature_id: import_v410.z.string(),
|
|
@@ -15434,6 +15730,7 @@ var previewMultiAttachProrationSchema = import_v410.z.object({
|
|
|
15434
15730
|
var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
|
|
15435
15731
|
var previewMultiAttachRolloverSchema = import_v410.z.object({
|
|
15436
15732
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15733
|
+
maxPercentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15437
15734
|
expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
|
|
15438
15735
|
expiryDurationLength: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15439
15736
|
});
|
|
@@ -15477,7 +15774,8 @@ var previewMultiAttachUsageAlertSchema = import_v410.z.object({
|
|
|
15477
15774
|
});
|
|
15478
15775
|
var previewMultiAttachBillingControlsSchema = import_v410.z.object({
|
|
15479
15776
|
spendLimits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitSchema), import_v410.z.undefined()]).optional(),
|
|
15480
|
-
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional()
|
|
15777
|
+
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional(),
|
|
15778
|
+
overageAllowed: import_v410.z.union([import_v410.z.array(previewMultiAttachOverageAllowedSchema), import_v410.z.undefined()]).optional()
|
|
15481
15779
|
});
|
|
15482
15780
|
var previewMultiAttachEntityDataSchema = import_v410.z.object({
|
|
15483
15781
|
featureId: import_v410.z.string(),
|
|
@@ -15673,6 +15971,7 @@ var previewUpdateProrationOutboundSchema = import_v411.z.object({
|
|
|
15673
15971
|
});
|
|
15674
15972
|
var previewUpdateRolloverOutboundSchema = import_v411.z.object({
|
|
15675
15973
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15974
|
+
max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15676
15975
|
expiry_duration_type: import_v411.z.string(),
|
|
15677
15976
|
expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
15678
15977
|
});
|
|
@@ -15757,6 +16056,7 @@ var previewUpdateProrationSchema = import_v411.z.object({
|
|
|
15757
16056
|
var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
|
|
15758
16057
|
var previewUpdateRolloverSchema = import_v411.z.object({
|
|
15759
16058
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
16059
|
+
maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15760
16060
|
expiryDurationType: previewUpdateExpiryDurationTypeSchema,
|
|
15761
16061
|
expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
15762
16062
|
});
|
|
@@ -15920,6 +16220,7 @@ var setupPaymentProrationOutboundSchema = import_v413.z.object({
|
|
|
15920
16220
|
});
|
|
15921
16221
|
var setupPaymentRolloverOutboundSchema = import_v413.z.object({
|
|
15922
16222
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16223
|
+
max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
15923
16224
|
expiry_duration_type: import_v413.z.string(),
|
|
15924
16225
|
expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
15925
16226
|
});
|
|
@@ -16010,6 +16311,7 @@ var setupPaymentProrationSchema = import_v413.z.object({
|
|
|
16010
16311
|
var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
|
|
16011
16312
|
var setupPaymentRolloverSchema = import_v413.z.object({
|
|
16012
16313
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16314
|
+
maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16013
16315
|
expiryDurationType: setupPaymentExpiryDurationTypeSchema,
|
|
16014
16316
|
expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
16015
16317
|
});
|
|
@@ -16120,6 +16422,7 @@ var billingUpdateProrationOutboundSchema = import_v414.z.object({
|
|
|
16120
16422
|
});
|
|
16121
16423
|
var billingUpdateRolloverOutboundSchema = import_v414.z.object({
|
|
16122
16424
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16425
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16123
16426
|
expiry_duration_type: import_v414.z.string(),
|
|
16124
16427
|
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
16125
16428
|
});
|
|
@@ -16200,6 +16503,7 @@ var billingUpdateProrationSchema = import_v414.z.object({
|
|
|
16200
16503
|
var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
|
|
16201
16504
|
var billingUpdateRolloverSchema = import_v414.z.object({
|
|
16202
16505
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16506
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16203
16507
|
expiryDurationType: billingUpdateExpiryDurationTypeSchema,
|
|
16204
16508
|
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
16205
16509
|
});
|