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
|
@@ -82,8 +82,8 @@ var SDK_METADATA = {
|
|
|
82
82
|
language: "typescript",
|
|
83
83
|
openapiDocVersion: "2.2.0",
|
|
84
84
|
sdkVersion: "0.10.17",
|
|
85
|
-
genVersion: "2.
|
|
86
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.
|
|
85
|
+
genVersion: "2.879.1",
|
|
86
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.1 2.2.0 @useautumn/sdk"
|
|
87
87
|
};
|
|
88
88
|
|
|
89
89
|
// ../sdk/src/lib/http.ts
|
|
@@ -1005,8 +1005,8 @@ function applyBearer(state, spec) {
|
|
|
1005
1005
|
state.headers[spec.fieldName] = value;
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
1008
|
-
function resolveGlobalSecurity(security) {
|
|
1009
|
-
|
|
1008
|
+
function resolveGlobalSecurity(security, allowedFields) {
|
|
1009
|
+
let inputs = [
|
|
1010
1010
|
[
|
|
1011
1011
|
{
|
|
1012
1012
|
fieldName: "Authorization",
|
|
@@ -1014,7 +1014,16 @@ function resolveGlobalSecurity(security) {
|
|
|
1014
1014
|
value: security?.secretKey ?? env().AUTUMN_SECRET_KEY
|
|
1015
1015
|
}
|
|
1016
1016
|
]
|
|
1017
|
-
|
|
1017
|
+
];
|
|
1018
|
+
if (allowedFields) {
|
|
1019
|
+
inputs = allowedFields.map((i) => {
|
|
1020
|
+
if (i < 0 || i >= inputs.length) {
|
|
1021
|
+
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
1022
|
+
}
|
|
1023
|
+
return inputs[i];
|
|
1024
|
+
});
|
|
1025
|
+
}
|
|
1026
|
+
return resolveSecurity(...inputs);
|
|
1018
1027
|
}
|
|
1019
1028
|
async function extractSecurity(sec) {
|
|
1020
1029
|
if (sec == null) {
|
|
@@ -1561,11 +1570,13 @@ var AttachExpiryDurationType$outboundSchema = z10.enum(AttachExpiryDurationType)
|
|
|
1561
1570
|
var AttachRollover$outboundSchema = z10.pipe(
|
|
1562
1571
|
z10.object({
|
|
1563
1572
|
max: z10.optional(z10.number()),
|
|
1573
|
+
maxPercentage: z10.optional(z10.number()),
|
|
1564
1574
|
expiryDurationType: AttachExpiryDurationType$outboundSchema,
|
|
1565
1575
|
expiryDurationLength: z10.optional(z10.number())
|
|
1566
1576
|
}),
|
|
1567
1577
|
z10.transform((v) => {
|
|
1568
1578
|
return remap(v, {
|
|
1579
|
+
maxPercentage: "max_percentage",
|
|
1569
1580
|
expiryDurationType: "expiry_duration_type",
|
|
1570
1581
|
expiryDurationLength: "expiry_duration_length"
|
|
1571
1582
|
});
|
|
@@ -2090,11 +2101,13 @@ var BillingUpdateExpiryDurationType$outboundSchema = z12.enum(BillingUpdateExpir
|
|
|
2090
2101
|
var BillingUpdateRollover$outboundSchema = z12.pipe(
|
|
2091
2102
|
z12.object({
|
|
2092
2103
|
max: z12.optional(z12.number()),
|
|
2104
|
+
maxPercentage: z12.optional(z12.number()),
|
|
2093
2105
|
expiryDurationType: BillingUpdateExpiryDurationType$outboundSchema,
|
|
2094
2106
|
expiryDurationLength: z12.optional(z12.number())
|
|
2095
2107
|
}),
|
|
2096
2108
|
z12.transform((v) => {
|
|
2097
2109
|
return remap(v, {
|
|
2110
|
+
maxPercentage: "max_percentage",
|
|
2098
2111
|
expiryDurationType: "expiry_duration_type",
|
|
2099
2112
|
expiryDurationLength: "expiry_duration_length"
|
|
2100
2113
|
});
|
|
@@ -2436,11 +2449,19 @@ var ProductDisplay$inboundSchema = z13.pipe(
|
|
|
2436
2449
|
})
|
|
2437
2450
|
);
|
|
2438
2451
|
var RolloverDuration$inboundSchema = inboundSchema(RolloverDuration);
|
|
2439
|
-
var CheckRollover$inboundSchema = z13.
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2452
|
+
var CheckRollover$inboundSchema = z13.pipe(
|
|
2453
|
+
z13.object({
|
|
2454
|
+
max: z13.optional(z13.nullable(number2())),
|
|
2455
|
+
max_percentage: z13.optional(z13.nullable(number2())),
|
|
2456
|
+
duration: z13._default(RolloverDuration$inboundSchema, "month"),
|
|
2457
|
+
length: number2()
|
|
2458
|
+
}),
|
|
2459
|
+
z13.transform((v) => {
|
|
2460
|
+
return remap(v, {
|
|
2461
|
+
"max_percentage": "maxPercentage"
|
|
2462
|
+
});
|
|
2463
|
+
})
|
|
2464
|
+
);
|
|
2444
2465
|
var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
|
|
2445
2466
|
var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
|
|
2446
2467
|
var Config$inboundSchema = z13.pipe(
|
|
@@ -2717,6 +2738,17 @@ var CustomerDataUsageAlert$outboundSchema = z15.pipe(
|
|
|
2717
2738
|
});
|
|
2718
2739
|
})
|
|
2719
2740
|
);
|
|
2741
|
+
var CustomerDataOverageAllowed$outboundSchema = z15.pipe(
|
|
2742
|
+
z15.object({
|
|
2743
|
+
featureId: z15.string(),
|
|
2744
|
+
enabled: z15._default(z15.boolean(), false)
|
|
2745
|
+
}),
|
|
2746
|
+
z15.transform((v) => {
|
|
2747
|
+
return remap(v, {
|
|
2748
|
+
featureId: "feature_id"
|
|
2749
|
+
});
|
|
2750
|
+
})
|
|
2751
|
+
);
|
|
2720
2752
|
var CustomerDataBillingControls$outboundSchema = z15.pipe(
|
|
2721
2753
|
z15.object({
|
|
2722
2754
|
autoTopups: z15.optional(
|
|
@@ -2727,13 +2759,17 @@ var CustomerDataBillingControls$outboundSchema = z15.pipe(
|
|
|
2727
2759
|
),
|
|
2728
2760
|
usageAlerts: z15.optional(
|
|
2729
2761
|
z15.array(z15.lazy(() => CustomerDataUsageAlert$outboundSchema))
|
|
2762
|
+
),
|
|
2763
|
+
overageAllowed: z15.optional(
|
|
2764
|
+
z15.array(z15.lazy(() => CustomerDataOverageAllowed$outboundSchema))
|
|
2730
2765
|
)
|
|
2731
2766
|
}),
|
|
2732
2767
|
z15.transform((v) => {
|
|
2733
2768
|
return remap(v, {
|
|
2734
2769
|
autoTopups: "auto_topups",
|
|
2735
2770
|
spendLimits: "spend_limits",
|
|
2736
|
-
usageAlerts: "usage_alerts"
|
|
2771
|
+
usageAlerts: "usage_alerts",
|
|
2772
|
+
overageAllowed: "overage_allowed"
|
|
2737
2773
|
});
|
|
2738
2774
|
})
|
|
2739
2775
|
);
|
|
@@ -2944,11 +2980,13 @@ var ExpiryDurationType$inboundSchema = inboundSchema(ExpiryDurationType);
|
|
|
2944
2980
|
var PlanRollover$inboundSchema = z16.pipe(
|
|
2945
2981
|
z16.object({
|
|
2946
2982
|
max: nullable(number2()),
|
|
2983
|
+
max_percentage: z16.optional(z16.nullable(number2())),
|
|
2947
2984
|
expiry_duration_type: ExpiryDurationType$inboundSchema,
|
|
2948
2985
|
expiry_duration_length: optional2(number2())
|
|
2949
2986
|
}),
|
|
2950
2987
|
z16.transform((v) => {
|
|
2951
2988
|
return remap(v, {
|
|
2989
|
+
"max_percentage": "maxPercentage",
|
|
2952
2990
|
"expiry_duration_type": "expiryDurationType",
|
|
2953
2991
|
"expiry_duration_length": "expiryDurationLength"
|
|
2954
2992
|
});
|
|
@@ -3087,6 +3125,17 @@ var CreateEntityUsageAlertRequestBody$outboundSchema = z17.pipe(
|
|
|
3087
3125
|
});
|
|
3088
3126
|
})
|
|
3089
3127
|
);
|
|
3128
|
+
var CreateEntityOverageAllowedRequest$outboundSchema = z17.pipe(
|
|
3129
|
+
z17.object({
|
|
3130
|
+
featureId: z17.string(),
|
|
3131
|
+
enabled: z17._default(z17.boolean(), false)
|
|
3132
|
+
}),
|
|
3133
|
+
z17.transform((v) => {
|
|
3134
|
+
return remap(v, {
|
|
3135
|
+
featureId: "feature_id"
|
|
3136
|
+
});
|
|
3137
|
+
})
|
|
3138
|
+
);
|
|
3090
3139
|
var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
|
|
3091
3140
|
z17.object({
|
|
3092
3141
|
spendLimits: z17.optional(
|
|
@@ -3094,12 +3143,16 @@ var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
|
|
|
3094
3143
|
),
|
|
3095
3144
|
usageAlerts: z17.optional(
|
|
3096
3145
|
z17.array(z17.lazy(() => CreateEntityUsageAlertRequestBody$outboundSchema))
|
|
3146
|
+
),
|
|
3147
|
+
overageAllowed: z17.optional(
|
|
3148
|
+
z17.array(z17.lazy(() => CreateEntityOverageAllowedRequest$outboundSchema))
|
|
3097
3149
|
)
|
|
3098
3150
|
}),
|
|
3099
3151
|
z17.transform((v) => {
|
|
3100
3152
|
return remap(v, {
|
|
3101
3153
|
spendLimits: "spend_limits",
|
|
3102
|
-
usageAlerts: "usage_alerts"
|
|
3154
|
+
usageAlerts: "usage_alerts",
|
|
3155
|
+
overageAllowed: "overage_allowed"
|
|
3103
3156
|
});
|
|
3104
3157
|
})
|
|
3105
3158
|
);
|
|
@@ -3256,6 +3309,17 @@ var CreateEntityUsageAlertResponse$inboundSchema = z17.pipe(
|
|
|
3256
3309
|
});
|
|
3257
3310
|
})
|
|
3258
3311
|
);
|
|
3312
|
+
var CreateEntityOverageAllowedResponse$inboundSchema = z17.pipe(
|
|
3313
|
+
z17.object({
|
|
3314
|
+
feature_id: string4(),
|
|
3315
|
+
enabled: z17._default(boolean2(), false)
|
|
3316
|
+
}),
|
|
3317
|
+
z17.transform((v) => {
|
|
3318
|
+
return remap(v, {
|
|
3319
|
+
"feature_id": "featureId"
|
|
3320
|
+
});
|
|
3321
|
+
})
|
|
3322
|
+
);
|
|
3259
3323
|
var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
|
|
3260
3324
|
z17.object({
|
|
3261
3325
|
spend_limits: optional2(
|
|
@@ -3263,12 +3327,16 @@ var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
|
|
|
3263
3327
|
),
|
|
3264
3328
|
usage_alerts: optional2(
|
|
3265
3329
|
z17.array(z17.lazy(() => CreateEntityUsageAlertResponse$inboundSchema))
|
|
3330
|
+
),
|
|
3331
|
+
overage_allowed: optional2(
|
|
3332
|
+
z17.array(z17.lazy(() => CreateEntityOverageAllowedResponse$inboundSchema))
|
|
3266
3333
|
)
|
|
3267
3334
|
}),
|
|
3268
3335
|
z17.transform((v) => {
|
|
3269
3336
|
return remap(v, {
|
|
3270
3337
|
"spend_limits": "spendLimits",
|
|
3271
|
-
"usage_alerts": "usageAlerts"
|
|
3338
|
+
"usage_alerts": "usageAlerts",
|
|
3339
|
+
"overage_allowed": "overageAllowed"
|
|
3272
3340
|
});
|
|
3273
3341
|
})
|
|
3274
3342
|
);
|
|
@@ -3618,11 +3686,13 @@ var CreatePlanExpiryDurationTypeRequest$outboundSchema = z19.enum(CreatePlanExpi
|
|
|
3618
3686
|
var CreatePlanRolloverRequest$outboundSchema = z19.pipe(
|
|
3619
3687
|
z19.object({
|
|
3620
3688
|
max: z19.optional(z19.number()),
|
|
3689
|
+
maxPercentage: z19.optional(z19.number()),
|
|
3621
3690
|
expiryDurationType: CreatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
3622
3691
|
expiryDurationLength: z19.optional(z19.number())
|
|
3623
3692
|
}),
|
|
3624
3693
|
z19.transform((v) => {
|
|
3625
3694
|
return remap(v, {
|
|
3695
|
+
maxPercentage: "max_percentage",
|
|
3626
3696
|
expiryDurationType: "expiry_duration_type",
|
|
3627
3697
|
expiryDurationLength: "expiry_duration_length"
|
|
3628
3698
|
});
|
|
@@ -3799,11 +3869,13 @@ var CreatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePla
|
|
|
3799
3869
|
var CreatePlanRolloverResponse$inboundSchema = z19.pipe(
|
|
3800
3870
|
z19.object({
|
|
3801
3871
|
max: nullable(number2()),
|
|
3872
|
+
max_percentage: z19.optional(z19.nullable(number2())),
|
|
3802
3873
|
expiry_duration_type: CreatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
3803
3874
|
expiry_duration_length: optional2(number2())
|
|
3804
3875
|
}),
|
|
3805
3876
|
z19.transform((v) => {
|
|
3806
3877
|
return remap(v, {
|
|
3878
|
+
"max_percentage": "maxPercentage",
|
|
3807
3879
|
"expiry_duration_type": "expiryDurationType",
|
|
3808
3880
|
"expiry_duration_length": "expiryDurationLength"
|
|
3809
3881
|
});
|
|
@@ -4025,6 +4097,17 @@ var CustomerUsageAlert$inboundSchema = z21.pipe(
|
|
|
4025
4097
|
});
|
|
4026
4098
|
})
|
|
4027
4099
|
);
|
|
4100
|
+
var CustomerOverageAllowed$inboundSchema = z21.pipe(
|
|
4101
|
+
z21.object({
|
|
4102
|
+
feature_id: string4(),
|
|
4103
|
+
enabled: z21._default(boolean2(), false)
|
|
4104
|
+
}),
|
|
4105
|
+
z21.transform((v) => {
|
|
4106
|
+
return remap(v, {
|
|
4107
|
+
"feature_id": "featureId"
|
|
4108
|
+
});
|
|
4109
|
+
})
|
|
4110
|
+
);
|
|
4028
4111
|
var CustomerBillingControls$inboundSchema = z21.pipe(
|
|
4029
4112
|
z21.object({
|
|
4030
4113
|
auto_topups: optional2(
|
|
@@ -4035,13 +4118,17 @@ var CustomerBillingControls$inboundSchema = z21.pipe(
|
|
|
4035
4118
|
),
|
|
4036
4119
|
usage_alerts: optional2(
|
|
4037
4120
|
z21.array(z21.lazy(() => CustomerUsageAlert$inboundSchema))
|
|
4121
|
+
),
|
|
4122
|
+
overage_allowed: optional2(
|
|
4123
|
+
z21.array(z21.lazy(() => CustomerOverageAllowed$inboundSchema))
|
|
4038
4124
|
)
|
|
4039
4125
|
}),
|
|
4040
4126
|
z21.transform((v) => {
|
|
4041
4127
|
return remap(v, {
|
|
4042
4128
|
"auto_topups": "autoTopups",
|
|
4043
4129
|
"spend_limits": "spendLimits",
|
|
4044
|
-
"usage_alerts": "usageAlerts"
|
|
4130
|
+
"usage_alerts": "usageAlerts",
|
|
4131
|
+
"overage_allowed": "overageAllowed"
|
|
4045
4132
|
});
|
|
4046
4133
|
})
|
|
4047
4134
|
);
|
|
@@ -4580,6 +4667,17 @@ var GetEntityUsageAlert$inboundSchema = z28.pipe(
|
|
|
4580
4667
|
});
|
|
4581
4668
|
})
|
|
4582
4669
|
);
|
|
4670
|
+
var GetEntityOverageAllowed$inboundSchema = z28.pipe(
|
|
4671
|
+
z28.object({
|
|
4672
|
+
feature_id: string4(),
|
|
4673
|
+
enabled: z28._default(boolean2(), false)
|
|
4674
|
+
}),
|
|
4675
|
+
z28.transform((v) => {
|
|
4676
|
+
return remap(v, {
|
|
4677
|
+
"feature_id": "featureId"
|
|
4678
|
+
});
|
|
4679
|
+
})
|
|
4680
|
+
);
|
|
4583
4681
|
var GetEntityBillingControls$inboundSchema = z28.pipe(
|
|
4584
4682
|
z28.object({
|
|
4585
4683
|
spend_limits: optional2(
|
|
@@ -4587,12 +4685,16 @@ var GetEntityBillingControls$inboundSchema = z28.pipe(
|
|
|
4587
4685
|
),
|
|
4588
4686
|
usage_alerts: optional2(
|
|
4589
4687
|
z28.array(z28.lazy(() => GetEntityUsageAlert$inboundSchema))
|
|
4688
|
+
),
|
|
4689
|
+
overage_allowed: optional2(
|
|
4690
|
+
z28.array(z28.lazy(() => GetEntityOverageAllowed$inboundSchema))
|
|
4590
4691
|
)
|
|
4591
4692
|
}),
|
|
4592
4693
|
z28.transform((v) => {
|
|
4593
4694
|
return remap(v, {
|
|
4594
4695
|
"spend_limits": "spendLimits",
|
|
4595
|
-
"usage_alerts": "usageAlerts"
|
|
4696
|
+
"usage_alerts": "usageAlerts",
|
|
4697
|
+
"overage_allowed": "overageAllowed"
|
|
4596
4698
|
});
|
|
4597
4699
|
})
|
|
4598
4700
|
);
|
|
@@ -4770,6 +4872,17 @@ var GetOrCreateCustomerUsageAlert$outboundSchema = z30.pipe(
|
|
|
4770
4872
|
});
|
|
4771
4873
|
})
|
|
4772
4874
|
);
|
|
4875
|
+
var GetOrCreateCustomerOverageAllowed$outboundSchema = z30.pipe(
|
|
4876
|
+
z30.object({
|
|
4877
|
+
featureId: z30.string(),
|
|
4878
|
+
enabled: z30._default(z30.boolean(), false)
|
|
4879
|
+
}),
|
|
4880
|
+
z30.transform((v) => {
|
|
4881
|
+
return remap(v, {
|
|
4882
|
+
featureId: "feature_id"
|
|
4883
|
+
});
|
|
4884
|
+
})
|
|
4885
|
+
);
|
|
4773
4886
|
var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
|
|
4774
4887
|
z30.object({
|
|
4775
4888
|
autoTopups: z30.optional(
|
|
@@ -4780,13 +4893,17 @@ var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
|
|
|
4780
4893
|
),
|
|
4781
4894
|
usageAlerts: z30.optional(
|
|
4782
4895
|
z30.array(z30.lazy(() => GetOrCreateCustomerUsageAlert$outboundSchema))
|
|
4896
|
+
),
|
|
4897
|
+
overageAllowed: z30.optional(
|
|
4898
|
+
z30.array(z30.lazy(() => GetOrCreateCustomerOverageAllowed$outboundSchema))
|
|
4783
4899
|
)
|
|
4784
4900
|
}),
|
|
4785
4901
|
z30.transform((v) => {
|
|
4786
4902
|
return remap(v, {
|
|
4787
4903
|
autoTopups: "auto_topups",
|
|
4788
4904
|
spendLimits: "spend_limits",
|
|
4789
|
-
usageAlerts: "usage_alerts"
|
|
4905
|
+
usageAlerts: "usage_alerts",
|
|
4906
|
+
overageAllowed: "overage_allowed"
|
|
4790
4907
|
});
|
|
4791
4908
|
})
|
|
4792
4909
|
);
|
|
@@ -5011,11 +5128,13 @@ var GetPlanExpiryDurationType$inboundSchema = inboundSchema(GetPlanExpiryDuratio
|
|
|
5011
5128
|
var GetPlanRollover$inboundSchema = z31.pipe(
|
|
5012
5129
|
z31.object({
|
|
5013
5130
|
max: nullable(number2()),
|
|
5131
|
+
max_percentage: z31.optional(z31.nullable(number2())),
|
|
5014
5132
|
expiry_duration_type: GetPlanExpiryDurationType$inboundSchema,
|
|
5015
5133
|
expiry_duration_length: optional2(number2())
|
|
5016
5134
|
}),
|
|
5017
5135
|
z31.transform((v) => {
|
|
5018
5136
|
return remap(v, {
|
|
5137
|
+
"max_percentage": "maxPercentage",
|
|
5019
5138
|
"expiry_duration_type": "expiryDurationType",
|
|
5020
5139
|
"expiry_duration_length": "expiryDurationLength"
|
|
5021
5140
|
});
|
|
@@ -5243,6 +5362,17 @@ var ListCustomersUsageAlert$inboundSchema = z32.pipe(
|
|
|
5243
5362
|
});
|
|
5244
5363
|
})
|
|
5245
5364
|
);
|
|
5365
|
+
var ListCustomersOverageAllowed$inboundSchema = z32.pipe(
|
|
5366
|
+
z32.object({
|
|
5367
|
+
feature_id: string4(),
|
|
5368
|
+
enabled: z32._default(boolean2(), false)
|
|
5369
|
+
}),
|
|
5370
|
+
z32.transform((v) => {
|
|
5371
|
+
return remap(v, {
|
|
5372
|
+
"feature_id": "featureId"
|
|
5373
|
+
});
|
|
5374
|
+
})
|
|
5375
|
+
);
|
|
5246
5376
|
var ListCustomersBillingControls$inboundSchema = z32.pipe(
|
|
5247
5377
|
z32.object({
|
|
5248
5378
|
auto_topups: optional2(
|
|
@@ -5253,13 +5383,17 @@ var ListCustomersBillingControls$inboundSchema = z32.pipe(
|
|
|
5253
5383
|
),
|
|
5254
5384
|
usage_alerts: optional2(
|
|
5255
5385
|
z32.array(z32.lazy(() => ListCustomersUsageAlert$inboundSchema))
|
|
5386
|
+
),
|
|
5387
|
+
overage_allowed: optional2(
|
|
5388
|
+
z32.array(z32.lazy(() => ListCustomersOverageAllowed$inboundSchema))
|
|
5256
5389
|
)
|
|
5257
5390
|
}),
|
|
5258
5391
|
z32.transform((v) => {
|
|
5259
5392
|
return remap(v, {
|
|
5260
5393
|
"auto_topups": "autoTopups",
|
|
5261
5394
|
"spend_limits": "spendLimits",
|
|
5262
|
-
"usage_alerts": "usageAlerts"
|
|
5395
|
+
"usage_alerts": "usageAlerts",
|
|
5396
|
+
"overage_allowed": "overageAllowed"
|
|
5263
5397
|
});
|
|
5264
5398
|
})
|
|
5265
5399
|
);
|
|
@@ -5714,11 +5848,13 @@ var ListPlansExpiryDurationType$inboundSchema = inboundSchema(ListPlansExpiryDur
|
|
|
5714
5848
|
var ListPlansRollover$inboundSchema = z35.pipe(
|
|
5715
5849
|
z35.object({
|
|
5716
5850
|
max: nullable(number2()),
|
|
5851
|
+
max_percentage: z35.optional(z35.nullable(number2())),
|
|
5717
5852
|
expiry_duration_type: ListPlansExpiryDurationType$inboundSchema,
|
|
5718
5853
|
expiry_duration_length: optional2(number2())
|
|
5719
5854
|
}),
|
|
5720
5855
|
z35.transform((v) => {
|
|
5721
5856
|
return remap(v, {
|
|
5857
|
+
"max_percentage": "maxPercentage",
|
|
5722
5858
|
"expiry_duration_type": "expiryDurationType",
|
|
5723
5859
|
"expiry_duration_length": "expiryDurationLength"
|
|
5724
5860
|
});
|
|
@@ -5962,11 +6098,13 @@ var MultiAttachExpiryDurationType$outboundSchema = z36.enum(MultiAttachExpiryDur
|
|
|
5962
6098
|
var MultiAttachRollover$outboundSchema = z36.pipe(
|
|
5963
6099
|
z36.object({
|
|
5964
6100
|
max: z36.optional(z36.number()),
|
|
6101
|
+
maxPercentage: z36.optional(z36.number()),
|
|
5965
6102
|
expiryDurationType: MultiAttachExpiryDurationType$outboundSchema,
|
|
5966
6103
|
expiryDurationLength: z36.optional(z36.number())
|
|
5967
6104
|
}),
|
|
5968
6105
|
z36.transform((v) => {
|
|
5969
6106
|
return remap(v, {
|
|
6107
|
+
maxPercentage: "max_percentage",
|
|
5970
6108
|
expiryDurationType: "expiry_duration_type",
|
|
5971
6109
|
expiryDurationLength: "expiry_duration_length"
|
|
5972
6110
|
});
|
|
@@ -6093,6 +6231,17 @@ var MultiAttachUsageAlert$outboundSchema = z36.pipe(
|
|
|
6093
6231
|
});
|
|
6094
6232
|
})
|
|
6095
6233
|
);
|
|
6234
|
+
var MultiAttachOverageAllowed$outboundSchema = z36.pipe(
|
|
6235
|
+
z36.object({
|
|
6236
|
+
featureId: z36.string(),
|
|
6237
|
+
enabled: z36._default(z36.boolean(), false)
|
|
6238
|
+
}),
|
|
6239
|
+
z36.transform((v) => {
|
|
6240
|
+
return remap(v, {
|
|
6241
|
+
featureId: "feature_id"
|
|
6242
|
+
});
|
|
6243
|
+
})
|
|
6244
|
+
);
|
|
6096
6245
|
var MultiAttachBillingControls$outboundSchema = z36.pipe(
|
|
6097
6246
|
z36.object({
|
|
6098
6247
|
spendLimits: z36.optional(
|
|
@@ -6100,12 +6249,16 @@ var MultiAttachBillingControls$outboundSchema = z36.pipe(
|
|
|
6100
6249
|
),
|
|
6101
6250
|
usageAlerts: z36.optional(
|
|
6102
6251
|
z36.array(z36.lazy(() => MultiAttachUsageAlert$outboundSchema))
|
|
6252
|
+
),
|
|
6253
|
+
overageAllowed: z36.optional(
|
|
6254
|
+
z36.array(z36.lazy(() => MultiAttachOverageAllowed$outboundSchema))
|
|
6103
6255
|
)
|
|
6104
6256
|
}),
|
|
6105
6257
|
z36.transform((v) => {
|
|
6106
6258
|
return remap(v, {
|
|
6107
6259
|
spendLimits: "spend_limits",
|
|
6108
|
-
usageAlerts: "usage_alerts"
|
|
6260
|
+
usageAlerts: "usage_alerts",
|
|
6261
|
+
overageAllowed: "overage_allowed"
|
|
6109
6262
|
});
|
|
6110
6263
|
})
|
|
6111
6264
|
);
|
|
@@ -6399,11 +6552,13 @@ var PreviewAttachExpiryDurationType$outboundSchema = z38.enum(PreviewAttachExpir
|
|
|
6399
6552
|
var PreviewAttachRollover$outboundSchema = z38.pipe(
|
|
6400
6553
|
z38.object({
|
|
6401
6554
|
max: z38.optional(z38.number()),
|
|
6555
|
+
maxPercentage: z38.optional(z38.number()),
|
|
6402
6556
|
expiryDurationType: PreviewAttachExpiryDurationType$outboundSchema,
|
|
6403
6557
|
expiryDurationLength: z38.optional(z38.number())
|
|
6404
6558
|
}),
|
|
6405
6559
|
z38.transform((v) => {
|
|
6406
6560
|
return remap(v, {
|
|
6561
|
+
maxPercentage: "max_percentage",
|
|
6407
6562
|
expiryDurationType: "expiry_duration_type",
|
|
6408
6563
|
expiryDurationLength: "expiry_duration_length"
|
|
6409
6564
|
});
|
|
@@ -6947,11 +7102,13 @@ var PreviewMultiAttachExpiryDurationType$outboundSchema = z39.enum(PreviewMultiA
|
|
|
6947
7102
|
var PreviewMultiAttachRollover$outboundSchema = z39.pipe(
|
|
6948
7103
|
z39.object({
|
|
6949
7104
|
max: z39.optional(z39.number()),
|
|
7105
|
+
maxPercentage: z39.optional(z39.number()),
|
|
6950
7106
|
expiryDurationType: PreviewMultiAttachExpiryDurationType$outboundSchema,
|
|
6951
7107
|
expiryDurationLength: z39.optional(z39.number())
|
|
6952
7108
|
}),
|
|
6953
7109
|
z39.transform((v) => {
|
|
6954
7110
|
return remap(v, {
|
|
7111
|
+
maxPercentage: "max_percentage",
|
|
6955
7112
|
expiryDurationType: "expiry_duration_type",
|
|
6956
7113
|
expiryDurationLength: "expiry_duration_length"
|
|
6957
7114
|
});
|
|
@@ -7091,6 +7248,17 @@ var PreviewMultiAttachUsageAlert$outboundSchema = z39.pipe(
|
|
|
7091
7248
|
});
|
|
7092
7249
|
})
|
|
7093
7250
|
);
|
|
7251
|
+
var PreviewMultiAttachOverageAllowed$outboundSchema = z39.pipe(
|
|
7252
|
+
z39.object({
|
|
7253
|
+
featureId: z39.string(),
|
|
7254
|
+
enabled: z39._default(z39.boolean(), false)
|
|
7255
|
+
}),
|
|
7256
|
+
z39.transform((v) => {
|
|
7257
|
+
return remap(v, {
|
|
7258
|
+
featureId: "feature_id"
|
|
7259
|
+
});
|
|
7260
|
+
})
|
|
7261
|
+
);
|
|
7094
7262
|
var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
|
|
7095
7263
|
z39.object({
|
|
7096
7264
|
spendLimits: z39.optional(
|
|
@@ -7098,12 +7266,16 @@ var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
|
|
|
7098
7266
|
),
|
|
7099
7267
|
usageAlerts: z39.optional(
|
|
7100
7268
|
z39.array(z39.lazy(() => PreviewMultiAttachUsageAlert$outboundSchema))
|
|
7269
|
+
),
|
|
7270
|
+
overageAllowed: z39.optional(
|
|
7271
|
+
z39.array(z39.lazy(() => PreviewMultiAttachOverageAllowed$outboundSchema))
|
|
7101
7272
|
)
|
|
7102
7273
|
}),
|
|
7103
7274
|
z39.transform((v) => {
|
|
7104
7275
|
return remap(v, {
|
|
7105
7276
|
spendLimits: "spend_limits",
|
|
7106
|
-
usageAlerts: "usage_alerts"
|
|
7277
|
+
usageAlerts: "usage_alerts",
|
|
7278
|
+
overageAllowed: "overage_allowed"
|
|
7107
7279
|
});
|
|
7108
7280
|
})
|
|
7109
7281
|
);
|
|
@@ -7559,11 +7731,13 @@ var PreviewUpdateExpiryDurationType$outboundSchema = z40.enum(PreviewUpdateExpir
|
|
|
7559
7731
|
var PreviewUpdateRollover$outboundSchema = z40.pipe(
|
|
7560
7732
|
z40.object({
|
|
7561
7733
|
max: z40.optional(z40.number()),
|
|
7734
|
+
maxPercentage: z40.optional(z40.number()),
|
|
7562
7735
|
expiryDurationType: PreviewUpdateExpiryDurationType$outboundSchema,
|
|
7563
7736
|
expiryDurationLength: z40.optional(z40.number())
|
|
7564
7737
|
}),
|
|
7565
7738
|
z40.transform((v) => {
|
|
7566
7739
|
return remap(v, {
|
|
7740
|
+
maxPercentage: "max_percentage",
|
|
7567
7741
|
expiryDurationType: "expiry_duration_type",
|
|
7568
7742
|
expiryDurationLength: "expiry_duration_length"
|
|
7569
7743
|
});
|
|
@@ -8079,11 +8253,13 @@ var SetupPaymentExpiryDurationType$outboundSchema = z42.enum(SetupPaymentExpiryD
|
|
|
8079
8253
|
var SetupPaymentRollover$outboundSchema = z42.pipe(
|
|
8080
8254
|
z42.object({
|
|
8081
8255
|
max: z42.optional(z42.number()),
|
|
8256
|
+
maxPercentage: z42.optional(z42.number()),
|
|
8082
8257
|
expiryDurationType: SetupPaymentExpiryDurationType$outboundSchema,
|
|
8083
8258
|
expiryDurationLength: z42.optional(z42.number())
|
|
8084
8259
|
}),
|
|
8085
8260
|
z42.transform((v) => {
|
|
8086
8261
|
return remap(v, {
|
|
8262
|
+
maxPercentage: "max_percentage",
|
|
8087
8263
|
expiryDurationType: "expiry_duration_type",
|
|
8088
8264
|
expiryDurationLength: "expiry_duration_length"
|
|
8089
8265
|
});
|
|
@@ -8428,6 +8604,17 @@ var UpdateCustomerUsageAlertRequestBody$outboundSchema = z45.pipe(
|
|
|
8428
8604
|
});
|
|
8429
8605
|
})
|
|
8430
8606
|
);
|
|
8607
|
+
var UpdateCustomerOverageAllowedRequest$outboundSchema = z45.pipe(
|
|
8608
|
+
z45.object({
|
|
8609
|
+
featureId: z45.string(),
|
|
8610
|
+
enabled: z45._default(z45.boolean(), false)
|
|
8611
|
+
}),
|
|
8612
|
+
z45.transform((v) => {
|
|
8613
|
+
return remap(v, {
|
|
8614
|
+
featureId: "feature_id"
|
|
8615
|
+
});
|
|
8616
|
+
})
|
|
8617
|
+
);
|
|
8431
8618
|
var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
|
|
8432
8619
|
z45.object({
|
|
8433
8620
|
autoTopups: z45.optional(
|
|
@@ -8438,13 +8625,17 @@ var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
|
|
|
8438
8625
|
),
|
|
8439
8626
|
usageAlerts: z45.optional(
|
|
8440
8627
|
z45.array(z45.lazy(() => UpdateCustomerUsageAlertRequestBody$outboundSchema))
|
|
8628
|
+
),
|
|
8629
|
+
overageAllowed: z45.optional(
|
|
8630
|
+
z45.array(z45.lazy(() => UpdateCustomerOverageAllowedRequest$outboundSchema))
|
|
8441
8631
|
)
|
|
8442
8632
|
}),
|
|
8443
8633
|
z45.transform((v) => {
|
|
8444
8634
|
return remap(v, {
|
|
8445
8635
|
autoTopups: "auto_topups",
|
|
8446
8636
|
spendLimits: "spend_limits",
|
|
8447
|
-
usageAlerts: "usage_alerts"
|
|
8637
|
+
usageAlerts: "usage_alerts",
|
|
8638
|
+
overageAllowed: "overage_allowed"
|
|
8448
8639
|
});
|
|
8449
8640
|
})
|
|
8450
8641
|
);
|
|
@@ -8532,6 +8723,17 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z45.pipe(
|
|
|
8532
8723
|
});
|
|
8533
8724
|
})
|
|
8534
8725
|
);
|
|
8726
|
+
var UpdateCustomerOverageAllowedResponse$inboundSchema = z45.pipe(
|
|
8727
|
+
z45.object({
|
|
8728
|
+
feature_id: string4(),
|
|
8729
|
+
enabled: z45._default(boolean2(), false)
|
|
8730
|
+
}),
|
|
8731
|
+
z45.transform((v) => {
|
|
8732
|
+
return remap(v, {
|
|
8733
|
+
"feature_id": "featureId"
|
|
8734
|
+
});
|
|
8735
|
+
})
|
|
8736
|
+
);
|
|
8535
8737
|
var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
|
|
8536
8738
|
z45.object({
|
|
8537
8739
|
auto_topups: optional2(
|
|
@@ -8542,13 +8744,17 @@ var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
|
|
|
8542
8744
|
),
|
|
8543
8745
|
usage_alerts: optional2(
|
|
8544
8746
|
z45.array(z45.lazy(() => UpdateCustomerUsageAlertResponse$inboundSchema))
|
|
8747
|
+
),
|
|
8748
|
+
overage_allowed: optional2(
|
|
8749
|
+
z45.array(z45.lazy(() => UpdateCustomerOverageAllowedResponse$inboundSchema))
|
|
8545
8750
|
)
|
|
8546
8751
|
}),
|
|
8547
8752
|
z45.transform((v) => {
|
|
8548
8753
|
return remap(v, {
|
|
8549
8754
|
"auto_topups": "autoTopups",
|
|
8550
8755
|
"spend_limits": "spendLimits",
|
|
8551
|
-
"usage_alerts": "usageAlerts"
|
|
8756
|
+
"usage_alerts": "usageAlerts",
|
|
8757
|
+
"overage_allowed": "overageAllowed"
|
|
8552
8758
|
});
|
|
8553
8759
|
})
|
|
8554
8760
|
);
|
|
@@ -8740,6 +8946,17 @@ var UpdateEntityUsageAlertRequestBody$outboundSchema = z46.pipe(
|
|
|
8740
8946
|
});
|
|
8741
8947
|
})
|
|
8742
8948
|
);
|
|
8949
|
+
var UpdateEntityOverageAllowedRequest$outboundSchema = z46.pipe(
|
|
8950
|
+
z46.object({
|
|
8951
|
+
featureId: z46.string(),
|
|
8952
|
+
enabled: z46._default(z46.boolean(), false)
|
|
8953
|
+
}),
|
|
8954
|
+
z46.transform((v) => {
|
|
8955
|
+
return remap(v, {
|
|
8956
|
+
featureId: "feature_id"
|
|
8957
|
+
});
|
|
8958
|
+
})
|
|
8959
|
+
);
|
|
8743
8960
|
var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
|
|
8744
8961
|
z46.object({
|
|
8745
8962
|
spendLimits: z46.optional(
|
|
@@ -8747,12 +8964,16 @@ var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
|
|
|
8747
8964
|
),
|
|
8748
8965
|
usageAlerts: z46.optional(
|
|
8749
8966
|
z46.array(z46.lazy(() => UpdateEntityUsageAlertRequestBody$outboundSchema))
|
|
8967
|
+
),
|
|
8968
|
+
overageAllowed: z46.optional(
|
|
8969
|
+
z46.array(z46.lazy(() => UpdateEntityOverageAllowedRequest$outboundSchema))
|
|
8750
8970
|
)
|
|
8751
8971
|
}),
|
|
8752
8972
|
z46.transform((v) => {
|
|
8753
8973
|
return remap(v, {
|
|
8754
8974
|
spendLimits: "spend_limits",
|
|
8755
|
-
usageAlerts: "usage_alerts"
|
|
8975
|
+
usageAlerts: "usage_alerts",
|
|
8976
|
+
overageAllowed: "overage_allowed"
|
|
8756
8977
|
});
|
|
8757
8978
|
})
|
|
8758
8979
|
);
|
|
@@ -8904,6 +9125,17 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z46.pipe(
|
|
|
8904
9125
|
});
|
|
8905
9126
|
})
|
|
8906
9127
|
);
|
|
9128
|
+
var UpdateEntityOverageAllowedResponse$inboundSchema = z46.pipe(
|
|
9129
|
+
z46.object({
|
|
9130
|
+
feature_id: string4(),
|
|
9131
|
+
enabled: z46._default(boolean2(), false)
|
|
9132
|
+
}),
|
|
9133
|
+
z46.transform((v) => {
|
|
9134
|
+
return remap(v, {
|
|
9135
|
+
"feature_id": "featureId"
|
|
9136
|
+
});
|
|
9137
|
+
})
|
|
9138
|
+
);
|
|
8907
9139
|
var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
|
|
8908
9140
|
z46.object({
|
|
8909
9141
|
spend_limits: optional2(
|
|
@@ -8911,12 +9143,16 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
|
|
|
8911
9143
|
),
|
|
8912
9144
|
usage_alerts: optional2(
|
|
8913
9145
|
z46.array(z46.lazy(() => UpdateEntityUsageAlertResponse$inboundSchema))
|
|
9146
|
+
),
|
|
9147
|
+
overage_allowed: optional2(
|
|
9148
|
+
z46.array(z46.lazy(() => UpdateEntityOverageAllowedResponse$inboundSchema))
|
|
8914
9149
|
)
|
|
8915
9150
|
}),
|
|
8916
9151
|
z46.transform((v) => {
|
|
8917
9152
|
return remap(v, {
|
|
8918
9153
|
"spend_limits": "spendLimits",
|
|
8919
|
-
"usage_alerts": "usageAlerts"
|
|
9154
|
+
"usage_alerts": "usageAlerts",
|
|
9155
|
+
"overage_allowed": "overageAllowed"
|
|
8920
9156
|
});
|
|
8921
9157
|
})
|
|
8922
9158
|
);
|
|
@@ -9269,11 +9505,13 @@ var UpdatePlanExpiryDurationTypeRequest$outboundSchema = z48.enum(UpdatePlanExpi
|
|
|
9269
9505
|
var UpdatePlanRolloverRequest$outboundSchema = z48.pipe(
|
|
9270
9506
|
z48.object({
|
|
9271
9507
|
max: z48.optional(z48.number()),
|
|
9508
|
+
maxPercentage: z48.optional(z48.number()),
|
|
9272
9509
|
expiryDurationType: UpdatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
9273
9510
|
expiryDurationLength: z48.optional(z48.number())
|
|
9274
9511
|
}),
|
|
9275
9512
|
z48.transform((v) => {
|
|
9276
9513
|
return remap(v, {
|
|
9514
|
+
maxPercentage: "max_percentage",
|
|
9277
9515
|
expiryDurationType: "expiry_duration_type",
|
|
9278
9516
|
expiryDurationLength: "expiry_duration_length"
|
|
9279
9517
|
});
|
|
@@ -9458,11 +9696,13 @@ var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePla
|
|
|
9458
9696
|
var UpdatePlanRolloverResponse$inboundSchema = z48.pipe(
|
|
9459
9697
|
z48.object({
|
|
9460
9698
|
max: nullable(number2()),
|
|
9699
|
+
max_percentage: z48.optional(z48.nullable(number2())),
|
|
9461
9700
|
expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
9462
9701
|
expiry_duration_length: optional2(number2())
|
|
9463
9702
|
}),
|
|
9464
9703
|
z48.transform((v) => {
|
|
9465
9704
|
return remap(v, {
|
|
9705
|
+
"max_percentage": "maxPercentage",
|
|
9466
9706
|
"expiry_duration_type": "expiryDurationType",
|
|
9467
9707
|
"expiry_duration_length": "expiryDurationLength"
|
|
9468
9708
|
});
|
|
@@ -9739,7 +9979,8 @@ async function $do2(client, request, options) {
|
|
|
9739
9979
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set([
|
|
9740
9980
|
"check",
|
|
9741
9981
|
"track",
|
|
9742
|
-
"getOrCreateCustomer"
|
|
9982
|
+
"getOrCreateCustomer",
|
|
9983
|
+
"getEntity"
|
|
9743
9984
|
]);
|
|
9744
9985
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
9745
9986
|
var FAIL_OPEN_BODIES = {
|
|
@@ -9769,6 +10010,18 @@ var FAIL_OPEN_BODIES = {
|
|
|
9769
10010
|
purchases: [],
|
|
9770
10011
|
balances: {},
|
|
9771
10012
|
flags: {}
|
|
10013
|
+
},
|
|
10014
|
+
getEntity: {
|
|
10015
|
+
id: null,
|
|
10016
|
+
name: null,
|
|
10017
|
+
customer_id: null,
|
|
10018
|
+
feature_id: null,
|
|
10019
|
+
created_at: 0,
|
|
10020
|
+
env: "live",
|
|
10021
|
+
subscriptions: [],
|
|
10022
|
+
purchases: [],
|
|
10023
|
+
balances: {},
|
|
10024
|
+
flags: {}
|
|
9772
10025
|
}
|
|
9773
10026
|
};
|
|
9774
10027
|
var FailOpenHook = class {
|
|
@@ -14144,6 +14397,7 @@ var attachProrationOutboundSchema = import_v42.z.object({
|
|
|
14144
14397
|
});
|
|
14145
14398
|
var attachRolloverOutboundSchema = import_v42.z.object({
|
|
14146
14399
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14400
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14147
14401
|
expiry_duration_type: import_v42.z.string(),
|
|
14148
14402
|
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
14149
14403
|
});
|
|
@@ -14244,6 +14498,7 @@ var attachProrationSchema = import_v42.z.object({
|
|
|
14244
14498
|
var attachExpiryDurationTypeSchema = closedEnumSchema2;
|
|
14245
14499
|
var attachRolloverSchema = import_v42.z.object({
|
|
14246
14500
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14501
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14247
14502
|
expiryDurationType: attachExpiryDurationTypeSchema,
|
|
14248
14503
|
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
14249
14504
|
});
|
|
@@ -14334,6 +14589,10 @@ var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
|
|
|
14334
14589
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
14335
14590
|
overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
14336
14591
|
});
|
|
14592
|
+
var getOrCreateCustomerOverageAllowedSchema = import_v44.z.object({
|
|
14593
|
+
featureId: import_v44.z.string(),
|
|
14594
|
+
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
14595
|
+
});
|
|
14337
14596
|
var getOrCreateCustomerPurchaseLimitOutboundSchema = import_v44.z.object({
|
|
14338
14597
|
interval: import_v44.z.string(),
|
|
14339
14598
|
interval_count: import_v44.z.number(),
|
|
@@ -14358,6 +14617,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = import_v44.z.object({
|
|
|
14358
14617
|
threshold_type: import_v44.z.string(),
|
|
14359
14618
|
name: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
|
|
14360
14619
|
});
|
|
14620
|
+
var getOrCreateCustomerOverageAllowedOutboundSchema = import_v44.z.object({
|
|
14621
|
+
feature_id: import_v44.z.string(),
|
|
14622
|
+
enabled: import_v44.z.boolean()
|
|
14623
|
+
});
|
|
14361
14624
|
var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
14362
14625
|
auto_topups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupOutboundSchema), import_v44.z.undefined()]).optional(),
|
|
14363
14626
|
spend_limits: import_v44.z.union([
|
|
@@ -14367,6 +14630,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
|
14367
14630
|
usage_alerts: import_v44.z.union([
|
|
14368
14631
|
import_v44.z.array(getOrCreateCustomerUsageAlertOutboundSchema),
|
|
14369
14632
|
import_v44.z.undefined()
|
|
14633
|
+
]).optional(),
|
|
14634
|
+
overage_allowed: import_v44.z.union([
|
|
14635
|
+
import_v44.z.array(getOrCreateCustomerOverageAllowedOutboundSchema),
|
|
14636
|
+
import_v44.z.undefined()
|
|
14370
14637
|
]).optional()
|
|
14371
14638
|
});
|
|
14372
14639
|
var getOrCreateCustomerParamsOutboundSchema = import_v44.z.object({
|
|
@@ -14407,7 +14674,8 @@ var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
|
14407
14674
|
var getOrCreateCustomerBillingControlsSchema = import_v44.z.object({
|
|
14408
14675
|
autoTopups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupSchema), import_v44.z.undefined()]).optional(),
|
|
14409
14676
|
spendLimits: import_v44.z.union([import_v44.z.array(getOrCreateCustomerSpendLimitSchema), import_v44.z.undefined()]).optional(),
|
|
14410
|
-
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional()
|
|
14677
|
+
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional(),
|
|
14678
|
+
overageAllowed: import_v44.z.union([import_v44.z.array(getOrCreateCustomerOverageAllowedSchema), import_v44.z.undefined()]).optional()
|
|
14411
14679
|
});
|
|
14412
14680
|
var getOrCreateCustomerParamsSchema = import_v44.z.object({
|
|
14413
14681
|
customerId: import_v44.z.string().nullable(),
|
|
@@ -14546,6 +14814,7 @@ var listPlansItemPriceSchema = import_v46.z.object({
|
|
|
14546
14814
|
var listPlansExpiryDurationTypeSchema = openEnumSchema2;
|
|
14547
14815
|
var listPlansRolloverSchema = import_v46.z.object({
|
|
14548
14816
|
max: import_v46.z.number().nullable(),
|
|
14817
|
+
maxPercentage: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional().nullable(),
|
|
14549
14818
|
expiryDurationType: listPlansExpiryDurationTypeSchema,
|
|
14550
14819
|
expiryDurationLength: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
|
|
14551
14820
|
});
|
|
@@ -14626,6 +14895,10 @@ var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
|
14626
14895
|
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
14627
14896
|
overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14628
14897
|
});
|
|
14898
|
+
var multiAttachOverageAllowedSchema = import_v47.z.object({
|
|
14899
|
+
featureId: import_v47.z.string(),
|
|
14900
|
+
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
|
|
14901
|
+
});
|
|
14629
14902
|
var multiAttachInvoiceSchema = import_v47.z.object({
|
|
14630
14903
|
status: import_v47.z.string().nullable(),
|
|
14631
14904
|
stripeId: import_v47.z.string(),
|
|
@@ -14664,6 +14937,7 @@ var multiAttachProrationOutboundSchema = import_v47.z.object({
|
|
|
14664
14937
|
});
|
|
14665
14938
|
var multiAttachRolloverOutboundSchema = import_v47.z.object({
|
|
14666
14939
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14940
|
+
max_percentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14667
14941
|
expiry_duration_type: import_v47.z.string(),
|
|
14668
14942
|
expiry_duration_length: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14669
14943
|
});
|
|
@@ -14718,9 +14992,14 @@ var multiAttachUsageAlertOutboundSchema = import_v47.z.object({
|
|
|
14718
14992
|
threshold_type: import_v47.z.string(),
|
|
14719
14993
|
name: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
14720
14994
|
});
|
|
14995
|
+
var multiAttachOverageAllowedOutboundSchema = import_v47.z.object({
|
|
14996
|
+
feature_id: import_v47.z.string(),
|
|
14997
|
+
enabled: import_v47.z.boolean()
|
|
14998
|
+
});
|
|
14721
14999
|
var multiAttachBillingControlsOutboundSchema = import_v47.z.object({
|
|
14722
15000
|
spend_limits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
14723
|
-
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional()
|
|
15001
|
+
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
15002
|
+
overage_allowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedOutboundSchema), import_v47.z.undefined()]).optional()
|
|
14724
15003
|
});
|
|
14725
15004
|
var multiAttachEntityDataOutboundSchema = import_v47.z.object({
|
|
14726
15005
|
feature_id: import_v47.z.string(),
|
|
@@ -14764,6 +15043,7 @@ var multiAttachProrationSchema = import_v47.z.object({
|
|
|
14764
15043
|
var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
|
|
14765
15044
|
var multiAttachRolloverSchema = import_v47.z.object({
|
|
14766
15045
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
15046
|
+
maxPercentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14767
15047
|
expiryDurationType: multiAttachExpiryDurationTypeSchema,
|
|
14768
15048
|
expiryDurationLength: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14769
15049
|
});
|
|
@@ -14804,7 +15084,8 @@ var multiAttachUsageAlertSchema = import_v47.z.object({
|
|
|
14804
15084
|
});
|
|
14805
15085
|
var multiAttachBillingControlsSchema = import_v47.z.object({
|
|
14806
15086
|
spendLimits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitSchema), import_v47.z.undefined()]).optional(),
|
|
14807
|
-
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional()
|
|
15087
|
+
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional(),
|
|
15088
|
+
overageAllowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedSchema), import_v47.z.undefined()]).optional()
|
|
14808
15089
|
});
|
|
14809
15090
|
var multiAttachEntityDataSchema = import_v47.z.object({
|
|
14810
15091
|
featureId: import_v47.z.string(),
|
|
@@ -15012,6 +15293,7 @@ var previewAttachProrationOutboundSchema = import_v49.z.object({
|
|
|
15012
15293
|
});
|
|
15013
15294
|
var previewAttachRolloverOutboundSchema = import_v49.z.object({
|
|
15014
15295
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15296
|
+
max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15015
15297
|
expiry_duration_type: import_v49.z.string(),
|
|
15016
15298
|
expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
15017
15299
|
});
|
|
@@ -15116,6 +15398,7 @@ var previewAttachProrationSchema = import_v49.z.object({
|
|
|
15116
15398
|
var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
|
|
15117
15399
|
var previewAttachRolloverSchema = import_v49.z.object({
|
|
15118
15400
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15401
|
+
maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15119
15402
|
expiryDurationType: previewAttachExpiryDurationTypeSchema,
|
|
15120
15403
|
expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
15121
15404
|
});
|
|
@@ -15225,6 +15508,10 @@ var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
|
15225
15508
|
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
15226
15509
|
overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15227
15510
|
});
|
|
15511
|
+
var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
|
|
15512
|
+
featureId: import_v410.z.string(),
|
|
15513
|
+
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
|
|
15514
|
+
});
|
|
15228
15515
|
var previewMultiAttachDiscountSchema = import_v410.z.object({
|
|
15229
15516
|
amountOff: import_v410.z.number(),
|
|
15230
15517
|
percentOff: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
@@ -15326,6 +15613,7 @@ var previewMultiAttachProrationOutboundSchema = import_v410.z.object({
|
|
|
15326
15613
|
});
|
|
15327
15614
|
var previewMultiAttachRolloverOutboundSchema = import_v410.z.object({
|
|
15328
15615
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15616
|
+
max_percentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15329
15617
|
expiry_duration_type: import_v410.z.string(),
|
|
15330
15618
|
expiry_duration_length: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15331
15619
|
});
|
|
@@ -15383,9 +15671,17 @@ var previewMultiAttachUsageAlertOutboundSchema = import_v410.z.object({
|
|
|
15383
15671
|
threshold_type: import_v410.z.string(),
|
|
15384
15672
|
name: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
15385
15673
|
});
|
|
15674
|
+
var previewMultiAttachOverageAllowedOutboundSchema = import_v410.z.object({
|
|
15675
|
+
feature_id: import_v410.z.string(),
|
|
15676
|
+
enabled: import_v410.z.boolean()
|
|
15677
|
+
});
|
|
15386
15678
|
var previewMultiAttachBillingControlsOutboundSchema = import_v410.z.object({
|
|
15387
15679
|
spend_limits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
15388
|
-
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional()
|
|
15680
|
+
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
15681
|
+
overage_allowed: import_v410.z.union([
|
|
15682
|
+
import_v410.z.array(previewMultiAttachOverageAllowedOutboundSchema),
|
|
15683
|
+
import_v410.z.undefined()
|
|
15684
|
+
]).optional()
|
|
15389
15685
|
});
|
|
15390
15686
|
var previewMultiAttachEntityDataOutboundSchema = import_v410.z.object({
|
|
15391
15687
|
feature_id: import_v410.z.string(),
|
|
@@ -15430,6 +15726,7 @@ var previewMultiAttachProrationSchema = import_v410.z.object({
|
|
|
15430
15726
|
var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
|
|
15431
15727
|
var previewMultiAttachRolloverSchema = import_v410.z.object({
|
|
15432
15728
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15729
|
+
maxPercentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15433
15730
|
expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
|
|
15434
15731
|
expiryDurationLength: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15435
15732
|
});
|
|
@@ -15473,7 +15770,8 @@ var previewMultiAttachUsageAlertSchema = import_v410.z.object({
|
|
|
15473
15770
|
});
|
|
15474
15771
|
var previewMultiAttachBillingControlsSchema = import_v410.z.object({
|
|
15475
15772
|
spendLimits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitSchema), import_v410.z.undefined()]).optional(),
|
|
15476
|
-
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional()
|
|
15773
|
+
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional(),
|
|
15774
|
+
overageAllowed: import_v410.z.union([import_v410.z.array(previewMultiAttachOverageAllowedSchema), import_v410.z.undefined()]).optional()
|
|
15477
15775
|
});
|
|
15478
15776
|
var previewMultiAttachEntityDataSchema = import_v410.z.object({
|
|
15479
15777
|
featureId: import_v410.z.string(),
|
|
@@ -15669,6 +15967,7 @@ var previewUpdateProrationOutboundSchema = import_v411.z.object({
|
|
|
15669
15967
|
});
|
|
15670
15968
|
var previewUpdateRolloverOutboundSchema = import_v411.z.object({
|
|
15671
15969
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15970
|
+
max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15672
15971
|
expiry_duration_type: import_v411.z.string(),
|
|
15673
15972
|
expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
15674
15973
|
});
|
|
@@ -15753,6 +16052,7 @@ var previewUpdateProrationSchema = import_v411.z.object({
|
|
|
15753
16052
|
var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
|
|
15754
16053
|
var previewUpdateRolloverSchema = import_v411.z.object({
|
|
15755
16054
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
16055
|
+
maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15756
16056
|
expiryDurationType: previewUpdateExpiryDurationTypeSchema,
|
|
15757
16057
|
expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
15758
16058
|
});
|
|
@@ -15916,6 +16216,7 @@ var setupPaymentProrationOutboundSchema = import_v413.z.object({
|
|
|
15916
16216
|
});
|
|
15917
16217
|
var setupPaymentRolloverOutboundSchema = import_v413.z.object({
|
|
15918
16218
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16219
|
+
max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
15919
16220
|
expiry_duration_type: import_v413.z.string(),
|
|
15920
16221
|
expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
15921
16222
|
});
|
|
@@ -16006,6 +16307,7 @@ var setupPaymentProrationSchema = import_v413.z.object({
|
|
|
16006
16307
|
var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
|
|
16007
16308
|
var setupPaymentRolloverSchema = import_v413.z.object({
|
|
16008
16309
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16310
|
+
maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16009
16311
|
expiryDurationType: setupPaymentExpiryDurationTypeSchema,
|
|
16010
16312
|
expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
16011
16313
|
});
|
|
@@ -16116,6 +16418,7 @@ var billingUpdateProrationOutboundSchema = import_v414.z.object({
|
|
|
16116
16418
|
});
|
|
16117
16419
|
var billingUpdateRolloverOutboundSchema = import_v414.z.object({
|
|
16118
16420
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16421
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16119
16422
|
expiry_duration_type: import_v414.z.string(),
|
|
16120
16423
|
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
16121
16424
|
});
|
|
@@ -16196,6 +16499,7 @@ var billingUpdateProrationSchema = import_v414.z.object({
|
|
|
16196
16499
|
var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
|
|
16197
16500
|
var billingUpdateRolloverSchema = import_v414.z.object({
|
|
16198
16501
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16502
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16199
16503
|
expiryDurationType: billingUpdateExpiryDurationTypeSchema,
|
|
16200
16504
|
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
16201
16505
|
});
|