autumn-js 1.2.0 → 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 +337 -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 +337 -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 +337 -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 +337 -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 +337 -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-6YVVHFAT.mjs → chunk-2YEMC57K.mjs} +1 -1
- package/dist/backend/{chunk-MJBKNDWD.mjs → chunk-CCEZMERA.mjs} +279 -24
- package/dist/backend/{chunk-VR35K2UZ.mjs → chunk-ETHQSA52.mjs} +7 -7
- package/dist/backend/{chunk-RYP3CVST.mjs → chunk-FRKRWJ5S.mjs} +1 -1
- package/dist/backend/{chunk-5TDPAYPN.mjs → chunk-IFFSWLXT.mjs} +1 -1
- package/dist/backend/{chunk-3YYODLUY.mjs → chunk-IUFWKMTJ.mjs} +1 -1
- package/dist/backend/{chunk-BSY23UM3.mjs → chunk-N62MDT7U.mjs} +58 -5
- package/dist/backend/{chunk-JDL37I7Y.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 +337 -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 +337 -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 +337 -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 +337 -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 +58 -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 +58 -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 +337 -29
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-B7YXq83l.d.ts → routeTypes-BkSHRiCI.d.ts} +233 -2
- package/dist/backend/{routeTypes-BglWygTb.d.mts → routeTypes-C1hUtfD8.d.mts} +233 -2
- package/dist/better-auth/{chunk-LHA6NFFS.mjs → chunk-2PRVJULJ.mjs} +58 -5
- package/dist/better-auth/{chunk-I4LI2AOX.mjs → chunk-6J74ZVNY.mjs} +280 -25
- package/dist/better-auth/{chunk-TDX4NREA.mjs → chunk-IY7FPOWF.mjs} +1 -1
- package/dist/better-auth/index.js +337 -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 +58 -5
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +337 -29
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +337 -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-BmtAnULw.d.mts → params-CheyAQ0-.d.mts} +93 -2
- package/dist/react/{params-CL0lZNfr.d.ts → params-yCtJ7lOA.d.ts} +93 -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 +342 -4
- package/dist/sdk/index.d.ts +342 -4
- package/dist/sdk/index.js +384 -24
- package/dist/sdk/index.mjs +359 -25
- package/package.json +1 -1
- package/dist/backend/{chunk-55C2WWXQ.mjs → chunk-S5HPMJ4U.mjs} +3 -3
|
@@ -78,8 +78,8 @@ var SDK_METADATA = {
|
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "2.2.0",
|
|
80
80
|
sdkVersion: "0.10.17",
|
|
81
|
-
genVersion: "2.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.
|
|
81
|
+
genVersion: "2.879.1",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.1 2.2.0 @useautumn/sdk"
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
// ../sdk/src/lib/http.ts
|
|
@@ -1001,8 +1001,8 @@ function applyBearer(state, spec) {
|
|
|
1001
1001
|
state.headers[spec.fieldName] = value;
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
|
-
function resolveGlobalSecurity(security) {
|
|
1005
|
-
|
|
1004
|
+
function resolveGlobalSecurity(security, allowedFields) {
|
|
1005
|
+
let inputs = [
|
|
1006
1006
|
[
|
|
1007
1007
|
{
|
|
1008
1008
|
fieldName: "Authorization",
|
|
@@ -1010,7 +1010,16 @@ function resolveGlobalSecurity(security) {
|
|
|
1010
1010
|
value: security?.secretKey ?? env().AUTUMN_SECRET_KEY
|
|
1011
1011
|
}
|
|
1012
1012
|
]
|
|
1013
|
-
|
|
1013
|
+
];
|
|
1014
|
+
if (allowedFields) {
|
|
1015
|
+
inputs = allowedFields.map((i) => {
|
|
1016
|
+
if (i < 0 || i >= inputs.length) {
|
|
1017
|
+
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
1018
|
+
}
|
|
1019
|
+
return inputs[i];
|
|
1020
|
+
});
|
|
1021
|
+
}
|
|
1022
|
+
return resolveSecurity(...inputs);
|
|
1014
1023
|
}
|
|
1015
1024
|
async function extractSecurity(sec) {
|
|
1016
1025
|
if (sec == null) {
|
|
@@ -1337,6 +1346,7 @@ var EventsAggregateParams$outboundSchema = z8.pipe(
|
|
|
1337
1346
|
customRange: z8.optional(
|
|
1338
1347
|
z8.lazy(() => AggregateEventsCustomRange$outboundSchema)
|
|
1339
1348
|
),
|
|
1349
|
+
filterBy: z8.optional(z8.record(z8.string(), z8.string())),
|
|
1340
1350
|
maxGroups: z8.optional(z8.int())
|
|
1341
1351
|
}),
|
|
1342
1352
|
z8.transform((v) => {
|
|
@@ -1347,6 +1357,7 @@ var EventsAggregateParams$outboundSchema = z8.pipe(
|
|
|
1347
1357
|
groupBy: "group_by",
|
|
1348
1358
|
binSize: "bin_size",
|
|
1349
1359
|
customRange: "custom_range",
|
|
1360
|
+
filterBy: "filter_by",
|
|
1350
1361
|
maxGroups: "max_groups"
|
|
1351
1362
|
});
|
|
1352
1363
|
})
|
|
@@ -1555,11 +1566,13 @@ var AttachExpiryDurationType$outboundSchema = z10.enum(AttachExpiryDurationType)
|
|
|
1555
1566
|
var AttachRollover$outboundSchema = z10.pipe(
|
|
1556
1567
|
z10.object({
|
|
1557
1568
|
max: z10.optional(z10.number()),
|
|
1569
|
+
maxPercentage: z10.optional(z10.number()),
|
|
1558
1570
|
expiryDurationType: AttachExpiryDurationType$outboundSchema,
|
|
1559
1571
|
expiryDurationLength: z10.optional(z10.number())
|
|
1560
1572
|
}),
|
|
1561
1573
|
z10.transform((v) => {
|
|
1562
1574
|
return remap(v, {
|
|
1575
|
+
maxPercentage: "max_percentage",
|
|
1563
1576
|
expiryDurationType: "expiry_duration_type",
|
|
1564
1577
|
expiryDurationLength: "expiry_duration_length"
|
|
1565
1578
|
});
|
|
@@ -2084,11 +2097,13 @@ var BillingUpdateExpiryDurationType$outboundSchema = z12.enum(BillingUpdateExpir
|
|
|
2084
2097
|
var BillingUpdateRollover$outboundSchema = z12.pipe(
|
|
2085
2098
|
z12.object({
|
|
2086
2099
|
max: z12.optional(z12.number()),
|
|
2100
|
+
maxPercentage: z12.optional(z12.number()),
|
|
2087
2101
|
expiryDurationType: BillingUpdateExpiryDurationType$outboundSchema,
|
|
2088
2102
|
expiryDurationLength: z12.optional(z12.number())
|
|
2089
2103
|
}),
|
|
2090
2104
|
z12.transform((v) => {
|
|
2091
2105
|
return remap(v, {
|
|
2106
|
+
maxPercentage: "max_percentage",
|
|
2092
2107
|
expiryDurationType: "expiry_duration_type",
|
|
2093
2108
|
expiryDurationLength: "expiry_duration_length"
|
|
2094
2109
|
});
|
|
@@ -2430,11 +2445,19 @@ var ProductDisplay$inboundSchema = z13.pipe(
|
|
|
2430
2445
|
})
|
|
2431
2446
|
);
|
|
2432
2447
|
var RolloverDuration$inboundSchema = inboundSchema(RolloverDuration);
|
|
2433
|
-
var CheckRollover$inboundSchema = z13.
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2448
|
+
var CheckRollover$inboundSchema = z13.pipe(
|
|
2449
|
+
z13.object({
|
|
2450
|
+
max: z13.optional(z13.nullable(number2())),
|
|
2451
|
+
max_percentage: z13.optional(z13.nullable(number2())),
|
|
2452
|
+
duration: z13._default(RolloverDuration$inboundSchema, "month"),
|
|
2453
|
+
length: number2()
|
|
2454
|
+
}),
|
|
2455
|
+
z13.transform((v) => {
|
|
2456
|
+
return remap(v, {
|
|
2457
|
+
"max_percentage": "maxPercentage"
|
|
2458
|
+
});
|
|
2459
|
+
})
|
|
2460
|
+
);
|
|
2438
2461
|
var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
|
|
2439
2462
|
var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
|
|
2440
2463
|
var Config$inboundSchema = z13.pipe(
|
|
@@ -2711,6 +2734,17 @@ var CustomerDataUsageAlert$outboundSchema = z15.pipe(
|
|
|
2711
2734
|
});
|
|
2712
2735
|
})
|
|
2713
2736
|
);
|
|
2737
|
+
var CustomerDataOverageAllowed$outboundSchema = z15.pipe(
|
|
2738
|
+
z15.object({
|
|
2739
|
+
featureId: z15.string(),
|
|
2740
|
+
enabled: z15._default(z15.boolean(), false)
|
|
2741
|
+
}),
|
|
2742
|
+
z15.transform((v) => {
|
|
2743
|
+
return remap(v, {
|
|
2744
|
+
featureId: "feature_id"
|
|
2745
|
+
});
|
|
2746
|
+
})
|
|
2747
|
+
);
|
|
2714
2748
|
var CustomerDataBillingControls$outboundSchema = z15.pipe(
|
|
2715
2749
|
z15.object({
|
|
2716
2750
|
autoTopups: z15.optional(
|
|
@@ -2721,13 +2755,17 @@ var CustomerDataBillingControls$outboundSchema = z15.pipe(
|
|
|
2721
2755
|
),
|
|
2722
2756
|
usageAlerts: z15.optional(
|
|
2723
2757
|
z15.array(z15.lazy(() => CustomerDataUsageAlert$outboundSchema))
|
|
2758
|
+
),
|
|
2759
|
+
overageAllowed: z15.optional(
|
|
2760
|
+
z15.array(z15.lazy(() => CustomerDataOverageAllowed$outboundSchema))
|
|
2724
2761
|
)
|
|
2725
2762
|
}),
|
|
2726
2763
|
z15.transform((v) => {
|
|
2727
2764
|
return remap(v, {
|
|
2728
2765
|
autoTopups: "auto_topups",
|
|
2729
2766
|
spendLimits: "spend_limits",
|
|
2730
|
-
usageAlerts: "usage_alerts"
|
|
2767
|
+
usageAlerts: "usage_alerts",
|
|
2768
|
+
overageAllowed: "overage_allowed"
|
|
2731
2769
|
});
|
|
2732
2770
|
})
|
|
2733
2771
|
);
|
|
@@ -2938,11 +2976,13 @@ var ExpiryDurationType$inboundSchema = inboundSchema(ExpiryDurationType);
|
|
|
2938
2976
|
var PlanRollover$inboundSchema = z16.pipe(
|
|
2939
2977
|
z16.object({
|
|
2940
2978
|
max: nullable(number2()),
|
|
2979
|
+
max_percentage: z16.optional(z16.nullable(number2())),
|
|
2941
2980
|
expiry_duration_type: ExpiryDurationType$inboundSchema,
|
|
2942
2981
|
expiry_duration_length: optional2(number2())
|
|
2943
2982
|
}),
|
|
2944
2983
|
z16.transform((v) => {
|
|
2945
2984
|
return remap(v, {
|
|
2985
|
+
"max_percentage": "maxPercentage",
|
|
2946
2986
|
"expiry_duration_type": "expiryDurationType",
|
|
2947
2987
|
"expiry_duration_length": "expiryDurationLength"
|
|
2948
2988
|
});
|
|
@@ -3081,6 +3121,17 @@ var CreateEntityUsageAlertRequestBody$outboundSchema = z17.pipe(
|
|
|
3081
3121
|
});
|
|
3082
3122
|
})
|
|
3083
3123
|
);
|
|
3124
|
+
var CreateEntityOverageAllowedRequest$outboundSchema = z17.pipe(
|
|
3125
|
+
z17.object({
|
|
3126
|
+
featureId: z17.string(),
|
|
3127
|
+
enabled: z17._default(z17.boolean(), false)
|
|
3128
|
+
}),
|
|
3129
|
+
z17.transform((v) => {
|
|
3130
|
+
return remap(v, {
|
|
3131
|
+
featureId: "feature_id"
|
|
3132
|
+
});
|
|
3133
|
+
})
|
|
3134
|
+
);
|
|
3084
3135
|
var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
|
|
3085
3136
|
z17.object({
|
|
3086
3137
|
spendLimits: z17.optional(
|
|
@@ -3088,12 +3139,16 @@ var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
|
|
|
3088
3139
|
),
|
|
3089
3140
|
usageAlerts: z17.optional(
|
|
3090
3141
|
z17.array(z17.lazy(() => CreateEntityUsageAlertRequestBody$outboundSchema))
|
|
3142
|
+
),
|
|
3143
|
+
overageAllowed: z17.optional(
|
|
3144
|
+
z17.array(z17.lazy(() => CreateEntityOverageAllowedRequest$outboundSchema))
|
|
3091
3145
|
)
|
|
3092
3146
|
}),
|
|
3093
3147
|
z17.transform((v) => {
|
|
3094
3148
|
return remap(v, {
|
|
3095
3149
|
spendLimits: "spend_limits",
|
|
3096
|
-
usageAlerts: "usage_alerts"
|
|
3150
|
+
usageAlerts: "usage_alerts",
|
|
3151
|
+
overageAllowed: "overage_allowed"
|
|
3097
3152
|
});
|
|
3098
3153
|
})
|
|
3099
3154
|
);
|
|
@@ -3250,6 +3305,17 @@ var CreateEntityUsageAlertResponse$inboundSchema = z17.pipe(
|
|
|
3250
3305
|
});
|
|
3251
3306
|
})
|
|
3252
3307
|
);
|
|
3308
|
+
var CreateEntityOverageAllowedResponse$inboundSchema = z17.pipe(
|
|
3309
|
+
z17.object({
|
|
3310
|
+
feature_id: string4(),
|
|
3311
|
+
enabled: z17._default(boolean2(), false)
|
|
3312
|
+
}),
|
|
3313
|
+
z17.transform((v) => {
|
|
3314
|
+
return remap(v, {
|
|
3315
|
+
"feature_id": "featureId"
|
|
3316
|
+
});
|
|
3317
|
+
})
|
|
3318
|
+
);
|
|
3253
3319
|
var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
|
|
3254
3320
|
z17.object({
|
|
3255
3321
|
spend_limits: optional2(
|
|
@@ -3257,12 +3323,16 @@ var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
|
|
|
3257
3323
|
),
|
|
3258
3324
|
usage_alerts: optional2(
|
|
3259
3325
|
z17.array(z17.lazy(() => CreateEntityUsageAlertResponse$inboundSchema))
|
|
3326
|
+
),
|
|
3327
|
+
overage_allowed: optional2(
|
|
3328
|
+
z17.array(z17.lazy(() => CreateEntityOverageAllowedResponse$inboundSchema))
|
|
3260
3329
|
)
|
|
3261
3330
|
}),
|
|
3262
3331
|
z17.transform((v) => {
|
|
3263
3332
|
return remap(v, {
|
|
3264
3333
|
"spend_limits": "spendLimits",
|
|
3265
|
-
"usage_alerts": "usageAlerts"
|
|
3334
|
+
"usage_alerts": "usageAlerts",
|
|
3335
|
+
"overage_allowed": "overageAllowed"
|
|
3266
3336
|
});
|
|
3267
3337
|
})
|
|
3268
3338
|
);
|
|
@@ -3612,11 +3682,13 @@ var CreatePlanExpiryDurationTypeRequest$outboundSchema = z19.enum(CreatePlanExpi
|
|
|
3612
3682
|
var CreatePlanRolloverRequest$outboundSchema = z19.pipe(
|
|
3613
3683
|
z19.object({
|
|
3614
3684
|
max: z19.optional(z19.number()),
|
|
3685
|
+
maxPercentage: z19.optional(z19.number()),
|
|
3615
3686
|
expiryDurationType: CreatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
3616
3687
|
expiryDurationLength: z19.optional(z19.number())
|
|
3617
3688
|
}),
|
|
3618
3689
|
z19.transform((v) => {
|
|
3619
3690
|
return remap(v, {
|
|
3691
|
+
maxPercentage: "max_percentage",
|
|
3620
3692
|
expiryDurationType: "expiry_duration_type",
|
|
3621
3693
|
expiryDurationLength: "expiry_duration_length"
|
|
3622
3694
|
});
|
|
@@ -3793,11 +3865,13 @@ var CreatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePla
|
|
|
3793
3865
|
var CreatePlanRolloverResponse$inboundSchema = z19.pipe(
|
|
3794
3866
|
z19.object({
|
|
3795
3867
|
max: nullable(number2()),
|
|
3868
|
+
max_percentage: z19.optional(z19.nullable(number2())),
|
|
3796
3869
|
expiry_duration_type: CreatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
3797
3870
|
expiry_duration_length: optional2(number2())
|
|
3798
3871
|
}),
|
|
3799
3872
|
z19.transform((v) => {
|
|
3800
3873
|
return remap(v, {
|
|
3874
|
+
"max_percentage": "maxPercentage",
|
|
3801
3875
|
"expiry_duration_type": "expiryDurationType",
|
|
3802
3876
|
"expiry_duration_length": "expiryDurationLength"
|
|
3803
3877
|
});
|
|
@@ -4019,6 +4093,17 @@ var CustomerUsageAlert$inboundSchema = z21.pipe(
|
|
|
4019
4093
|
});
|
|
4020
4094
|
})
|
|
4021
4095
|
);
|
|
4096
|
+
var CustomerOverageAllowed$inboundSchema = z21.pipe(
|
|
4097
|
+
z21.object({
|
|
4098
|
+
feature_id: string4(),
|
|
4099
|
+
enabled: z21._default(boolean2(), false)
|
|
4100
|
+
}),
|
|
4101
|
+
z21.transform((v) => {
|
|
4102
|
+
return remap(v, {
|
|
4103
|
+
"feature_id": "featureId"
|
|
4104
|
+
});
|
|
4105
|
+
})
|
|
4106
|
+
);
|
|
4022
4107
|
var CustomerBillingControls$inboundSchema = z21.pipe(
|
|
4023
4108
|
z21.object({
|
|
4024
4109
|
auto_topups: optional2(
|
|
@@ -4029,13 +4114,17 @@ var CustomerBillingControls$inboundSchema = z21.pipe(
|
|
|
4029
4114
|
),
|
|
4030
4115
|
usage_alerts: optional2(
|
|
4031
4116
|
z21.array(z21.lazy(() => CustomerUsageAlert$inboundSchema))
|
|
4117
|
+
),
|
|
4118
|
+
overage_allowed: optional2(
|
|
4119
|
+
z21.array(z21.lazy(() => CustomerOverageAllowed$inboundSchema))
|
|
4032
4120
|
)
|
|
4033
4121
|
}),
|
|
4034
4122
|
z21.transform((v) => {
|
|
4035
4123
|
return remap(v, {
|
|
4036
4124
|
"auto_topups": "autoTopups",
|
|
4037
4125
|
"spend_limits": "spendLimits",
|
|
4038
|
-
"usage_alerts": "usageAlerts"
|
|
4126
|
+
"usage_alerts": "usageAlerts",
|
|
4127
|
+
"overage_allowed": "overageAllowed"
|
|
4039
4128
|
});
|
|
4040
4129
|
})
|
|
4041
4130
|
);
|
|
@@ -4574,6 +4663,17 @@ var GetEntityUsageAlert$inboundSchema = z28.pipe(
|
|
|
4574
4663
|
});
|
|
4575
4664
|
})
|
|
4576
4665
|
);
|
|
4666
|
+
var GetEntityOverageAllowed$inboundSchema = z28.pipe(
|
|
4667
|
+
z28.object({
|
|
4668
|
+
feature_id: string4(),
|
|
4669
|
+
enabled: z28._default(boolean2(), false)
|
|
4670
|
+
}),
|
|
4671
|
+
z28.transform((v) => {
|
|
4672
|
+
return remap(v, {
|
|
4673
|
+
"feature_id": "featureId"
|
|
4674
|
+
});
|
|
4675
|
+
})
|
|
4676
|
+
);
|
|
4577
4677
|
var GetEntityBillingControls$inboundSchema = z28.pipe(
|
|
4578
4678
|
z28.object({
|
|
4579
4679
|
spend_limits: optional2(
|
|
@@ -4581,12 +4681,16 @@ var GetEntityBillingControls$inboundSchema = z28.pipe(
|
|
|
4581
4681
|
),
|
|
4582
4682
|
usage_alerts: optional2(
|
|
4583
4683
|
z28.array(z28.lazy(() => GetEntityUsageAlert$inboundSchema))
|
|
4684
|
+
),
|
|
4685
|
+
overage_allowed: optional2(
|
|
4686
|
+
z28.array(z28.lazy(() => GetEntityOverageAllowed$inboundSchema))
|
|
4584
4687
|
)
|
|
4585
4688
|
}),
|
|
4586
4689
|
z28.transform((v) => {
|
|
4587
4690
|
return remap(v, {
|
|
4588
4691
|
"spend_limits": "spendLimits",
|
|
4589
|
-
"usage_alerts": "usageAlerts"
|
|
4692
|
+
"usage_alerts": "usageAlerts",
|
|
4693
|
+
"overage_allowed": "overageAllowed"
|
|
4590
4694
|
});
|
|
4591
4695
|
})
|
|
4592
4696
|
);
|
|
@@ -4764,6 +4868,17 @@ var GetOrCreateCustomerUsageAlert$outboundSchema = z30.pipe(
|
|
|
4764
4868
|
});
|
|
4765
4869
|
})
|
|
4766
4870
|
);
|
|
4871
|
+
var GetOrCreateCustomerOverageAllowed$outboundSchema = z30.pipe(
|
|
4872
|
+
z30.object({
|
|
4873
|
+
featureId: z30.string(),
|
|
4874
|
+
enabled: z30._default(z30.boolean(), false)
|
|
4875
|
+
}),
|
|
4876
|
+
z30.transform((v) => {
|
|
4877
|
+
return remap(v, {
|
|
4878
|
+
featureId: "feature_id"
|
|
4879
|
+
});
|
|
4880
|
+
})
|
|
4881
|
+
);
|
|
4767
4882
|
var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
|
|
4768
4883
|
z30.object({
|
|
4769
4884
|
autoTopups: z30.optional(
|
|
@@ -4774,13 +4889,17 @@ var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
|
|
|
4774
4889
|
),
|
|
4775
4890
|
usageAlerts: z30.optional(
|
|
4776
4891
|
z30.array(z30.lazy(() => GetOrCreateCustomerUsageAlert$outboundSchema))
|
|
4892
|
+
),
|
|
4893
|
+
overageAllowed: z30.optional(
|
|
4894
|
+
z30.array(z30.lazy(() => GetOrCreateCustomerOverageAllowed$outboundSchema))
|
|
4777
4895
|
)
|
|
4778
4896
|
}),
|
|
4779
4897
|
z30.transform((v) => {
|
|
4780
4898
|
return remap(v, {
|
|
4781
4899
|
autoTopups: "auto_topups",
|
|
4782
4900
|
spendLimits: "spend_limits",
|
|
4783
|
-
usageAlerts: "usage_alerts"
|
|
4901
|
+
usageAlerts: "usage_alerts",
|
|
4902
|
+
overageAllowed: "overage_allowed"
|
|
4784
4903
|
});
|
|
4785
4904
|
})
|
|
4786
4905
|
);
|
|
@@ -5005,11 +5124,13 @@ var GetPlanExpiryDurationType$inboundSchema = inboundSchema(GetPlanExpiryDuratio
|
|
|
5005
5124
|
var GetPlanRollover$inboundSchema = z31.pipe(
|
|
5006
5125
|
z31.object({
|
|
5007
5126
|
max: nullable(number2()),
|
|
5127
|
+
max_percentage: z31.optional(z31.nullable(number2())),
|
|
5008
5128
|
expiry_duration_type: GetPlanExpiryDurationType$inboundSchema,
|
|
5009
5129
|
expiry_duration_length: optional2(number2())
|
|
5010
5130
|
}),
|
|
5011
5131
|
z31.transform((v) => {
|
|
5012
5132
|
return remap(v, {
|
|
5133
|
+
"max_percentage": "maxPercentage",
|
|
5013
5134
|
"expiry_duration_type": "expiryDurationType",
|
|
5014
5135
|
"expiry_duration_length": "expiryDurationLength"
|
|
5015
5136
|
});
|
|
@@ -5237,6 +5358,17 @@ var ListCustomersUsageAlert$inboundSchema = z32.pipe(
|
|
|
5237
5358
|
});
|
|
5238
5359
|
})
|
|
5239
5360
|
);
|
|
5361
|
+
var ListCustomersOverageAllowed$inboundSchema = z32.pipe(
|
|
5362
|
+
z32.object({
|
|
5363
|
+
feature_id: string4(),
|
|
5364
|
+
enabled: z32._default(boolean2(), false)
|
|
5365
|
+
}),
|
|
5366
|
+
z32.transform((v) => {
|
|
5367
|
+
return remap(v, {
|
|
5368
|
+
"feature_id": "featureId"
|
|
5369
|
+
});
|
|
5370
|
+
})
|
|
5371
|
+
);
|
|
5240
5372
|
var ListCustomersBillingControls$inboundSchema = z32.pipe(
|
|
5241
5373
|
z32.object({
|
|
5242
5374
|
auto_topups: optional2(
|
|
@@ -5247,13 +5379,17 @@ var ListCustomersBillingControls$inboundSchema = z32.pipe(
|
|
|
5247
5379
|
),
|
|
5248
5380
|
usage_alerts: optional2(
|
|
5249
5381
|
z32.array(z32.lazy(() => ListCustomersUsageAlert$inboundSchema))
|
|
5382
|
+
),
|
|
5383
|
+
overage_allowed: optional2(
|
|
5384
|
+
z32.array(z32.lazy(() => ListCustomersOverageAllowed$inboundSchema))
|
|
5250
5385
|
)
|
|
5251
5386
|
}),
|
|
5252
5387
|
z32.transform((v) => {
|
|
5253
5388
|
return remap(v, {
|
|
5254
5389
|
"auto_topups": "autoTopups",
|
|
5255
5390
|
"spend_limits": "spendLimits",
|
|
5256
|
-
"usage_alerts": "usageAlerts"
|
|
5391
|
+
"usage_alerts": "usageAlerts",
|
|
5392
|
+
"overage_allowed": "overageAllowed"
|
|
5257
5393
|
});
|
|
5258
5394
|
})
|
|
5259
5395
|
);
|
|
@@ -5708,11 +5844,13 @@ var ListPlansExpiryDurationType$inboundSchema = inboundSchema(ListPlansExpiryDur
|
|
|
5708
5844
|
var ListPlansRollover$inboundSchema = z35.pipe(
|
|
5709
5845
|
z35.object({
|
|
5710
5846
|
max: nullable(number2()),
|
|
5847
|
+
max_percentage: z35.optional(z35.nullable(number2())),
|
|
5711
5848
|
expiry_duration_type: ListPlansExpiryDurationType$inboundSchema,
|
|
5712
5849
|
expiry_duration_length: optional2(number2())
|
|
5713
5850
|
}),
|
|
5714
5851
|
z35.transform((v) => {
|
|
5715
5852
|
return remap(v, {
|
|
5853
|
+
"max_percentage": "maxPercentage",
|
|
5716
5854
|
"expiry_duration_type": "expiryDurationType",
|
|
5717
5855
|
"expiry_duration_length": "expiryDurationLength"
|
|
5718
5856
|
});
|
|
@@ -5956,11 +6094,13 @@ var MultiAttachExpiryDurationType$outboundSchema = z36.enum(MultiAttachExpiryDur
|
|
|
5956
6094
|
var MultiAttachRollover$outboundSchema = z36.pipe(
|
|
5957
6095
|
z36.object({
|
|
5958
6096
|
max: z36.optional(z36.number()),
|
|
6097
|
+
maxPercentage: z36.optional(z36.number()),
|
|
5959
6098
|
expiryDurationType: MultiAttachExpiryDurationType$outboundSchema,
|
|
5960
6099
|
expiryDurationLength: z36.optional(z36.number())
|
|
5961
6100
|
}),
|
|
5962
6101
|
z36.transform((v) => {
|
|
5963
6102
|
return remap(v, {
|
|
6103
|
+
maxPercentage: "max_percentage",
|
|
5964
6104
|
expiryDurationType: "expiry_duration_type",
|
|
5965
6105
|
expiryDurationLength: "expiry_duration_length"
|
|
5966
6106
|
});
|
|
@@ -6087,6 +6227,17 @@ var MultiAttachUsageAlert$outboundSchema = z36.pipe(
|
|
|
6087
6227
|
});
|
|
6088
6228
|
})
|
|
6089
6229
|
);
|
|
6230
|
+
var MultiAttachOverageAllowed$outboundSchema = z36.pipe(
|
|
6231
|
+
z36.object({
|
|
6232
|
+
featureId: z36.string(),
|
|
6233
|
+
enabled: z36._default(z36.boolean(), false)
|
|
6234
|
+
}),
|
|
6235
|
+
z36.transform((v) => {
|
|
6236
|
+
return remap(v, {
|
|
6237
|
+
featureId: "feature_id"
|
|
6238
|
+
});
|
|
6239
|
+
})
|
|
6240
|
+
);
|
|
6090
6241
|
var MultiAttachBillingControls$outboundSchema = z36.pipe(
|
|
6091
6242
|
z36.object({
|
|
6092
6243
|
spendLimits: z36.optional(
|
|
@@ -6094,12 +6245,16 @@ var MultiAttachBillingControls$outboundSchema = z36.pipe(
|
|
|
6094
6245
|
),
|
|
6095
6246
|
usageAlerts: z36.optional(
|
|
6096
6247
|
z36.array(z36.lazy(() => MultiAttachUsageAlert$outboundSchema))
|
|
6248
|
+
),
|
|
6249
|
+
overageAllowed: z36.optional(
|
|
6250
|
+
z36.array(z36.lazy(() => MultiAttachOverageAllowed$outboundSchema))
|
|
6097
6251
|
)
|
|
6098
6252
|
}),
|
|
6099
6253
|
z36.transform((v) => {
|
|
6100
6254
|
return remap(v, {
|
|
6101
6255
|
spendLimits: "spend_limits",
|
|
6102
|
-
usageAlerts: "usage_alerts"
|
|
6256
|
+
usageAlerts: "usage_alerts",
|
|
6257
|
+
overageAllowed: "overage_allowed"
|
|
6103
6258
|
});
|
|
6104
6259
|
})
|
|
6105
6260
|
);
|
|
@@ -6393,11 +6548,13 @@ var PreviewAttachExpiryDurationType$outboundSchema = z38.enum(PreviewAttachExpir
|
|
|
6393
6548
|
var PreviewAttachRollover$outboundSchema = z38.pipe(
|
|
6394
6549
|
z38.object({
|
|
6395
6550
|
max: z38.optional(z38.number()),
|
|
6551
|
+
maxPercentage: z38.optional(z38.number()),
|
|
6396
6552
|
expiryDurationType: PreviewAttachExpiryDurationType$outboundSchema,
|
|
6397
6553
|
expiryDurationLength: z38.optional(z38.number())
|
|
6398
6554
|
}),
|
|
6399
6555
|
z38.transform((v) => {
|
|
6400
6556
|
return remap(v, {
|
|
6557
|
+
maxPercentage: "max_percentage",
|
|
6401
6558
|
expiryDurationType: "expiry_duration_type",
|
|
6402
6559
|
expiryDurationLength: "expiry_duration_length"
|
|
6403
6560
|
});
|
|
@@ -6941,11 +7098,13 @@ var PreviewMultiAttachExpiryDurationType$outboundSchema = z39.enum(PreviewMultiA
|
|
|
6941
7098
|
var PreviewMultiAttachRollover$outboundSchema = z39.pipe(
|
|
6942
7099
|
z39.object({
|
|
6943
7100
|
max: z39.optional(z39.number()),
|
|
7101
|
+
maxPercentage: z39.optional(z39.number()),
|
|
6944
7102
|
expiryDurationType: PreviewMultiAttachExpiryDurationType$outboundSchema,
|
|
6945
7103
|
expiryDurationLength: z39.optional(z39.number())
|
|
6946
7104
|
}),
|
|
6947
7105
|
z39.transform((v) => {
|
|
6948
7106
|
return remap(v, {
|
|
7107
|
+
maxPercentage: "max_percentage",
|
|
6949
7108
|
expiryDurationType: "expiry_duration_type",
|
|
6950
7109
|
expiryDurationLength: "expiry_duration_length"
|
|
6951
7110
|
});
|
|
@@ -7085,6 +7244,17 @@ var PreviewMultiAttachUsageAlert$outboundSchema = z39.pipe(
|
|
|
7085
7244
|
});
|
|
7086
7245
|
})
|
|
7087
7246
|
);
|
|
7247
|
+
var PreviewMultiAttachOverageAllowed$outboundSchema = z39.pipe(
|
|
7248
|
+
z39.object({
|
|
7249
|
+
featureId: z39.string(),
|
|
7250
|
+
enabled: z39._default(z39.boolean(), false)
|
|
7251
|
+
}),
|
|
7252
|
+
z39.transform((v) => {
|
|
7253
|
+
return remap(v, {
|
|
7254
|
+
featureId: "feature_id"
|
|
7255
|
+
});
|
|
7256
|
+
})
|
|
7257
|
+
);
|
|
7088
7258
|
var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
|
|
7089
7259
|
z39.object({
|
|
7090
7260
|
spendLimits: z39.optional(
|
|
@@ -7092,12 +7262,16 @@ var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
|
|
|
7092
7262
|
),
|
|
7093
7263
|
usageAlerts: z39.optional(
|
|
7094
7264
|
z39.array(z39.lazy(() => PreviewMultiAttachUsageAlert$outboundSchema))
|
|
7265
|
+
),
|
|
7266
|
+
overageAllowed: z39.optional(
|
|
7267
|
+
z39.array(z39.lazy(() => PreviewMultiAttachOverageAllowed$outboundSchema))
|
|
7095
7268
|
)
|
|
7096
7269
|
}),
|
|
7097
7270
|
z39.transform((v) => {
|
|
7098
7271
|
return remap(v, {
|
|
7099
7272
|
spendLimits: "spend_limits",
|
|
7100
|
-
usageAlerts: "usage_alerts"
|
|
7273
|
+
usageAlerts: "usage_alerts",
|
|
7274
|
+
overageAllowed: "overage_allowed"
|
|
7101
7275
|
});
|
|
7102
7276
|
})
|
|
7103
7277
|
);
|
|
@@ -7553,11 +7727,13 @@ var PreviewUpdateExpiryDurationType$outboundSchema = z40.enum(PreviewUpdateExpir
|
|
|
7553
7727
|
var PreviewUpdateRollover$outboundSchema = z40.pipe(
|
|
7554
7728
|
z40.object({
|
|
7555
7729
|
max: z40.optional(z40.number()),
|
|
7730
|
+
maxPercentage: z40.optional(z40.number()),
|
|
7556
7731
|
expiryDurationType: PreviewUpdateExpiryDurationType$outboundSchema,
|
|
7557
7732
|
expiryDurationLength: z40.optional(z40.number())
|
|
7558
7733
|
}),
|
|
7559
7734
|
z40.transform((v) => {
|
|
7560
7735
|
return remap(v, {
|
|
7736
|
+
maxPercentage: "max_percentage",
|
|
7561
7737
|
expiryDurationType: "expiry_duration_type",
|
|
7562
7738
|
expiryDurationLength: "expiry_duration_length"
|
|
7563
7739
|
});
|
|
@@ -8073,11 +8249,13 @@ var SetupPaymentExpiryDurationType$outboundSchema = z42.enum(SetupPaymentExpiryD
|
|
|
8073
8249
|
var SetupPaymentRollover$outboundSchema = z42.pipe(
|
|
8074
8250
|
z42.object({
|
|
8075
8251
|
max: z42.optional(z42.number()),
|
|
8252
|
+
maxPercentage: z42.optional(z42.number()),
|
|
8076
8253
|
expiryDurationType: SetupPaymentExpiryDurationType$outboundSchema,
|
|
8077
8254
|
expiryDurationLength: z42.optional(z42.number())
|
|
8078
8255
|
}),
|
|
8079
8256
|
z42.transform((v) => {
|
|
8080
8257
|
return remap(v, {
|
|
8258
|
+
maxPercentage: "max_percentage",
|
|
8081
8259
|
expiryDurationType: "expiry_duration_type",
|
|
8082
8260
|
expiryDurationLength: "expiry_duration_length"
|
|
8083
8261
|
});
|
|
@@ -8422,6 +8600,17 @@ var UpdateCustomerUsageAlertRequestBody$outboundSchema = z45.pipe(
|
|
|
8422
8600
|
});
|
|
8423
8601
|
})
|
|
8424
8602
|
);
|
|
8603
|
+
var UpdateCustomerOverageAllowedRequest$outboundSchema = z45.pipe(
|
|
8604
|
+
z45.object({
|
|
8605
|
+
featureId: z45.string(),
|
|
8606
|
+
enabled: z45._default(z45.boolean(), false)
|
|
8607
|
+
}),
|
|
8608
|
+
z45.transform((v) => {
|
|
8609
|
+
return remap(v, {
|
|
8610
|
+
featureId: "feature_id"
|
|
8611
|
+
});
|
|
8612
|
+
})
|
|
8613
|
+
);
|
|
8425
8614
|
var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
|
|
8426
8615
|
z45.object({
|
|
8427
8616
|
autoTopups: z45.optional(
|
|
@@ -8432,13 +8621,17 @@ var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
|
|
|
8432
8621
|
),
|
|
8433
8622
|
usageAlerts: z45.optional(
|
|
8434
8623
|
z45.array(z45.lazy(() => UpdateCustomerUsageAlertRequestBody$outboundSchema))
|
|
8624
|
+
),
|
|
8625
|
+
overageAllowed: z45.optional(
|
|
8626
|
+
z45.array(z45.lazy(() => UpdateCustomerOverageAllowedRequest$outboundSchema))
|
|
8435
8627
|
)
|
|
8436
8628
|
}),
|
|
8437
8629
|
z45.transform((v) => {
|
|
8438
8630
|
return remap(v, {
|
|
8439
8631
|
autoTopups: "auto_topups",
|
|
8440
8632
|
spendLimits: "spend_limits",
|
|
8441
|
-
usageAlerts: "usage_alerts"
|
|
8633
|
+
usageAlerts: "usage_alerts",
|
|
8634
|
+
overageAllowed: "overage_allowed"
|
|
8442
8635
|
});
|
|
8443
8636
|
})
|
|
8444
8637
|
);
|
|
@@ -8526,6 +8719,17 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z45.pipe(
|
|
|
8526
8719
|
});
|
|
8527
8720
|
})
|
|
8528
8721
|
);
|
|
8722
|
+
var UpdateCustomerOverageAllowedResponse$inboundSchema = z45.pipe(
|
|
8723
|
+
z45.object({
|
|
8724
|
+
feature_id: string4(),
|
|
8725
|
+
enabled: z45._default(boolean2(), false)
|
|
8726
|
+
}),
|
|
8727
|
+
z45.transform((v) => {
|
|
8728
|
+
return remap(v, {
|
|
8729
|
+
"feature_id": "featureId"
|
|
8730
|
+
});
|
|
8731
|
+
})
|
|
8732
|
+
);
|
|
8529
8733
|
var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
|
|
8530
8734
|
z45.object({
|
|
8531
8735
|
auto_topups: optional2(
|
|
@@ -8536,13 +8740,17 @@ var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
|
|
|
8536
8740
|
),
|
|
8537
8741
|
usage_alerts: optional2(
|
|
8538
8742
|
z45.array(z45.lazy(() => UpdateCustomerUsageAlertResponse$inboundSchema))
|
|
8743
|
+
),
|
|
8744
|
+
overage_allowed: optional2(
|
|
8745
|
+
z45.array(z45.lazy(() => UpdateCustomerOverageAllowedResponse$inboundSchema))
|
|
8539
8746
|
)
|
|
8540
8747
|
}),
|
|
8541
8748
|
z45.transform((v) => {
|
|
8542
8749
|
return remap(v, {
|
|
8543
8750
|
"auto_topups": "autoTopups",
|
|
8544
8751
|
"spend_limits": "spendLimits",
|
|
8545
|
-
"usage_alerts": "usageAlerts"
|
|
8752
|
+
"usage_alerts": "usageAlerts",
|
|
8753
|
+
"overage_allowed": "overageAllowed"
|
|
8546
8754
|
});
|
|
8547
8755
|
})
|
|
8548
8756
|
);
|
|
@@ -8734,6 +8942,17 @@ var UpdateEntityUsageAlertRequestBody$outboundSchema = z46.pipe(
|
|
|
8734
8942
|
});
|
|
8735
8943
|
})
|
|
8736
8944
|
);
|
|
8945
|
+
var UpdateEntityOverageAllowedRequest$outboundSchema = z46.pipe(
|
|
8946
|
+
z46.object({
|
|
8947
|
+
featureId: z46.string(),
|
|
8948
|
+
enabled: z46._default(z46.boolean(), false)
|
|
8949
|
+
}),
|
|
8950
|
+
z46.transform((v) => {
|
|
8951
|
+
return remap(v, {
|
|
8952
|
+
featureId: "feature_id"
|
|
8953
|
+
});
|
|
8954
|
+
})
|
|
8955
|
+
);
|
|
8737
8956
|
var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
|
|
8738
8957
|
z46.object({
|
|
8739
8958
|
spendLimits: z46.optional(
|
|
@@ -8741,12 +8960,16 @@ var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
|
|
|
8741
8960
|
),
|
|
8742
8961
|
usageAlerts: z46.optional(
|
|
8743
8962
|
z46.array(z46.lazy(() => UpdateEntityUsageAlertRequestBody$outboundSchema))
|
|
8963
|
+
),
|
|
8964
|
+
overageAllowed: z46.optional(
|
|
8965
|
+
z46.array(z46.lazy(() => UpdateEntityOverageAllowedRequest$outboundSchema))
|
|
8744
8966
|
)
|
|
8745
8967
|
}),
|
|
8746
8968
|
z46.transform((v) => {
|
|
8747
8969
|
return remap(v, {
|
|
8748
8970
|
spendLimits: "spend_limits",
|
|
8749
|
-
usageAlerts: "usage_alerts"
|
|
8971
|
+
usageAlerts: "usage_alerts",
|
|
8972
|
+
overageAllowed: "overage_allowed"
|
|
8750
8973
|
});
|
|
8751
8974
|
})
|
|
8752
8975
|
);
|
|
@@ -8898,6 +9121,17 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z46.pipe(
|
|
|
8898
9121
|
});
|
|
8899
9122
|
})
|
|
8900
9123
|
);
|
|
9124
|
+
var UpdateEntityOverageAllowedResponse$inboundSchema = z46.pipe(
|
|
9125
|
+
z46.object({
|
|
9126
|
+
feature_id: string4(),
|
|
9127
|
+
enabled: z46._default(boolean2(), false)
|
|
9128
|
+
}),
|
|
9129
|
+
z46.transform((v) => {
|
|
9130
|
+
return remap(v, {
|
|
9131
|
+
"feature_id": "featureId"
|
|
9132
|
+
});
|
|
9133
|
+
})
|
|
9134
|
+
);
|
|
8901
9135
|
var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
|
|
8902
9136
|
z46.object({
|
|
8903
9137
|
spend_limits: optional2(
|
|
@@ -8905,12 +9139,16 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
|
|
|
8905
9139
|
),
|
|
8906
9140
|
usage_alerts: optional2(
|
|
8907
9141
|
z46.array(z46.lazy(() => UpdateEntityUsageAlertResponse$inboundSchema))
|
|
9142
|
+
),
|
|
9143
|
+
overage_allowed: optional2(
|
|
9144
|
+
z46.array(z46.lazy(() => UpdateEntityOverageAllowedResponse$inboundSchema))
|
|
8908
9145
|
)
|
|
8909
9146
|
}),
|
|
8910
9147
|
z46.transform((v) => {
|
|
8911
9148
|
return remap(v, {
|
|
8912
9149
|
"spend_limits": "spendLimits",
|
|
8913
|
-
"usage_alerts": "usageAlerts"
|
|
9150
|
+
"usage_alerts": "usageAlerts",
|
|
9151
|
+
"overage_allowed": "overageAllowed"
|
|
8914
9152
|
});
|
|
8915
9153
|
})
|
|
8916
9154
|
);
|
|
@@ -9263,11 +9501,13 @@ var UpdatePlanExpiryDurationTypeRequest$outboundSchema = z48.enum(UpdatePlanExpi
|
|
|
9263
9501
|
var UpdatePlanRolloverRequest$outboundSchema = z48.pipe(
|
|
9264
9502
|
z48.object({
|
|
9265
9503
|
max: z48.optional(z48.number()),
|
|
9504
|
+
maxPercentage: z48.optional(z48.number()),
|
|
9266
9505
|
expiryDurationType: UpdatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
9267
9506
|
expiryDurationLength: z48.optional(z48.number())
|
|
9268
9507
|
}),
|
|
9269
9508
|
z48.transform((v) => {
|
|
9270
9509
|
return remap(v, {
|
|
9510
|
+
maxPercentage: "max_percentage",
|
|
9271
9511
|
expiryDurationType: "expiry_duration_type",
|
|
9272
9512
|
expiryDurationLength: "expiry_duration_length"
|
|
9273
9513
|
});
|
|
@@ -9452,11 +9692,13 @@ var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePla
|
|
|
9452
9692
|
var UpdatePlanRolloverResponse$inboundSchema = z48.pipe(
|
|
9453
9693
|
z48.object({
|
|
9454
9694
|
max: nullable(number2()),
|
|
9695
|
+
max_percentage: z48.optional(z48.nullable(number2())),
|
|
9455
9696
|
expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
9456
9697
|
expiry_duration_length: optional2(number2())
|
|
9457
9698
|
}),
|
|
9458
9699
|
z48.transform((v) => {
|
|
9459
9700
|
return remap(v, {
|
|
9701
|
+
"max_percentage": "maxPercentage",
|
|
9460
9702
|
"expiry_duration_type": "expiryDurationType",
|
|
9461
9703
|
"expiry_duration_length": "expiryDurationLength"
|
|
9462
9704
|
});
|
|
@@ -9733,7 +9975,8 @@ async function $do2(client, request, options) {
|
|
|
9733
9975
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set([
|
|
9734
9976
|
"check",
|
|
9735
9977
|
"track",
|
|
9736
|
-
"getOrCreateCustomer"
|
|
9978
|
+
"getOrCreateCustomer",
|
|
9979
|
+
"getEntity"
|
|
9737
9980
|
]);
|
|
9738
9981
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
9739
9982
|
var FAIL_OPEN_BODIES = {
|
|
@@ -9763,6 +10006,18 @@ var FAIL_OPEN_BODIES = {
|
|
|
9763
10006
|
purchases: [],
|
|
9764
10007
|
balances: {},
|
|
9765
10008
|
flags: {}
|
|
10009
|
+
},
|
|
10010
|
+
getEntity: {
|
|
10011
|
+
id: null,
|
|
10012
|
+
name: null,
|
|
10013
|
+
customer_id: null,
|
|
10014
|
+
feature_id: null,
|
|
10015
|
+
created_at: 0,
|
|
10016
|
+
env: "live",
|
|
10017
|
+
subscriptions: [],
|
|
10018
|
+
purchases: [],
|
|
10019
|
+
balances: {},
|
|
10020
|
+
flags: {}
|
|
9766
10021
|
}
|
|
9767
10022
|
};
|
|
9768
10023
|
var FailOpenHook = class {
|
|
@@ -14023,6 +14278,7 @@ var eventsAggregateParamsOutboundSchema = import_v4.z.object({
|
|
|
14023
14278
|
range: import_v4.z.union([import_v4.z.string(), import_v4.z.undefined()]).optional(),
|
|
14024
14279
|
bin_size: import_v4.z.string(),
|
|
14025
14280
|
custom_range: import_v4.z.union([aggregateEventsCustomRangeOutboundSchema, import_v4.z.undefined()]).optional(),
|
|
14281
|
+
filter_by: import_v4.z.union([import_v4.z.record(import_v4.z.string(), import_v4.z.string()), import_v4.z.undefined()]).optional(),
|
|
14026
14282
|
max_groups: import_v4.z.union([import_v4.z.number(), import_v4.z.undefined()]).optional()
|
|
14027
14283
|
});
|
|
14028
14284
|
var closedEnumSchema = import_v4.z.any();
|
|
@@ -14036,6 +14292,7 @@ var eventsAggregateParamsSchema = import_v4.z.object({
|
|
|
14036
14292
|
range: import_v4.z.union([rangeSchema, import_v4.z.undefined()]).optional(),
|
|
14037
14293
|
binSize: import_v4.z.union([binSizeSchema, import_v4.z.undefined()]).optional(),
|
|
14038
14294
|
customRange: import_v4.z.union([aggregateEventsCustomRangeSchema, import_v4.z.undefined()]).optional(),
|
|
14295
|
+
filterBy: import_v4.z.union([import_v4.z.record(import_v4.z.string(), import_v4.z.string()), import_v4.z.undefined()]).optional(),
|
|
14039
14296
|
maxGroups: import_v4.z.union([import_v4.z.number(), import_v4.z.undefined()]).optional()
|
|
14040
14297
|
});
|
|
14041
14298
|
|
|
@@ -14119,6 +14376,7 @@ var attachProrationOutboundSchema = import_v42.z.object({
|
|
|
14119
14376
|
});
|
|
14120
14377
|
var attachRolloverOutboundSchema = import_v42.z.object({
|
|
14121
14378
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14379
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14122
14380
|
expiry_duration_type: import_v42.z.string(),
|
|
14123
14381
|
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
14124
14382
|
});
|
|
@@ -14219,6 +14477,7 @@ var attachProrationSchema = import_v42.z.object({
|
|
|
14219
14477
|
var attachExpiryDurationTypeSchema = closedEnumSchema2;
|
|
14220
14478
|
var attachRolloverSchema = import_v42.z.object({
|
|
14221
14479
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14480
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14222
14481
|
expiryDurationType: attachExpiryDurationTypeSchema,
|
|
14223
14482
|
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
14224
14483
|
});
|
|
@@ -14309,6 +14568,10 @@ var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
|
|
|
14309
14568
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
14310
14569
|
overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
14311
14570
|
});
|
|
14571
|
+
var getOrCreateCustomerOverageAllowedSchema = import_v44.z.object({
|
|
14572
|
+
featureId: import_v44.z.string(),
|
|
14573
|
+
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
14574
|
+
});
|
|
14312
14575
|
var getOrCreateCustomerPurchaseLimitOutboundSchema = import_v44.z.object({
|
|
14313
14576
|
interval: import_v44.z.string(),
|
|
14314
14577
|
interval_count: import_v44.z.number(),
|
|
@@ -14333,6 +14596,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = import_v44.z.object({
|
|
|
14333
14596
|
threshold_type: import_v44.z.string(),
|
|
14334
14597
|
name: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
|
|
14335
14598
|
});
|
|
14599
|
+
var getOrCreateCustomerOverageAllowedOutboundSchema = import_v44.z.object({
|
|
14600
|
+
feature_id: import_v44.z.string(),
|
|
14601
|
+
enabled: import_v44.z.boolean()
|
|
14602
|
+
});
|
|
14336
14603
|
var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
14337
14604
|
auto_topups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupOutboundSchema), import_v44.z.undefined()]).optional(),
|
|
14338
14605
|
spend_limits: import_v44.z.union([
|
|
@@ -14342,6 +14609,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
|
14342
14609
|
usage_alerts: import_v44.z.union([
|
|
14343
14610
|
import_v44.z.array(getOrCreateCustomerUsageAlertOutboundSchema),
|
|
14344
14611
|
import_v44.z.undefined()
|
|
14612
|
+
]).optional(),
|
|
14613
|
+
overage_allowed: import_v44.z.union([
|
|
14614
|
+
import_v44.z.array(getOrCreateCustomerOverageAllowedOutboundSchema),
|
|
14615
|
+
import_v44.z.undefined()
|
|
14345
14616
|
]).optional()
|
|
14346
14617
|
});
|
|
14347
14618
|
var getOrCreateCustomerParamsOutboundSchema = import_v44.z.object({
|
|
@@ -14382,7 +14653,8 @@ var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
|
14382
14653
|
var getOrCreateCustomerBillingControlsSchema = import_v44.z.object({
|
|
14383
14654
|
autoTopups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupSchema), import_v44.z.undefined()]).optional(),
|
|
14384
14655
|
spendLimits: import_v44.z.union([import_v44.z.array(getOrCreateCustomerSpendLimitSchema), import_v44.z.undefined()]).optional(),
|
|
14385
|
-
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional()
|
|
14656
|
+
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional(),
|
|
14657
|
+
overageAllowed: import_v44.z.union([import_v44.z.array(getOrCreateCustomerOverageAllowedSchema), import_v44.z.undefined()]).optional()
|
|
14386
14658
|
});
|
|
14387
14659
|
var getOrCreateCustomerParamsSchema = import_v44.z.object({
|
|
14388
14660
|
customerId: import_v44.z.string().nullable(),
|
|
@@ -14521,6 +14793,7 @@ var listPlansItemPriceSchema = import_v46.z.object({
|
|
|
14521
14793
|
var listPlansExpiryDurationTypeSchema = openEnumSchema2;
|
|
14522
14794
|
var listPlansRolloverSchema = import_v46.z.object({
|
|
14523
14795
|
max: import_v46.z.number().nullable(),
|
|
14796
|
+
maxPercentage: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional().nullable(),
|
|
14524
14797
|
expiryDurationType: listPlansExpiryDurationTypeSchema,
|
|
14525
14798
|
expiryDurationLength: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
|
|
14526
14799
|
});
|
|
@@ -14601,6 +14874,10 @@ var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
|
14601
14874
|
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
14602
14875
|
overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14603
14876
|
});
|
|
14877
|
+
var multiAttachOverageAllowedSchema = import_v47.z.object({
|
|
14878
|
+
featureId: import_v47.z.string(),
|
|
14879
|
+
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
|
|
14880
|
+
});
|
|
14604
14881
|
var multiAttachInvoiceSchema = import_v47.z.object({
|
|
14605
14882
|
status: import_v47.z.string().nullable(),
|
|
14606
14883
|
stripeId: import_v47.z.string(),
|
|
@@ -14639,6 +14916,7 @@ var multiAttachProrationOutboundSchema = import_v47.z.object({
|
|
|
14639
14916
|
});
|
|
14640
14917
|
var multiAttachRolloverOutboundSchema = import_v47.z.object({
|
|
14641
14918
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14919
|
+
max_percentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14642
14920
|
expiry_duration_type: import_v47.z.string(),
|
|
14643
14921
|
expiry_duration_length: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14644
14922
|
});
|
|
@@ -14693,9 +14971,14 @@ var multiAttachUsageAlertOutboundSchema = import_v47.z.object({
|
|
|
14693
14971
|
threshold_type: import_v47.z.string(),
|
|
14694
14972
|
name: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
14695
14973
|
});
|
|
14974
|
+
var multiAttachOverageAllowedOutboundSchema = import_v47.z.object({
|
|
14975
|
+
feature_id: import_v47.z.string(),
|
|
14976
|
+
enabled: import_v47.z.boolean()
|
|
14977
|
+
});
|
|
14696
14978
|
var multiAttachBillingControlsOutboundSchema = import_v47.z.object({
|
|
14697
14979
|
spend_limits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
14698
|
-
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional()
|
|
14980
|
+
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
14981
|
+
overage_allowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedOutboundSchema), import_v47.z.undefined()]).optional()
|
|
14699
14982
|
});
|
|
14700
14983
|
var multiAttachEntityDataOutboundSchema = import_v47.z.object({
|
|
14701
14984
|
feature_id: import_v47.z.string(),
|
|
@@ -14739,6 +15022,7 @@ var multiAttachProrationSchema = import_v47.z.object({
|
|
|
14739
15022
|
var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
|
|
14740
15023
|
var multiAttachRolloverSchema = import_v47.z.object({
|
|
14741
15024
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
15025
|
+
maxPercentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14742
15026
|
expiryDurationType: multiAttachExpiryDurationTypeSchema,
|
|
14743
15027
|
expiryDurationLength: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14744
15028
|
});
|
|
@@ -14779,7 +15063,8 @@ var multiAttachUsageAlertSchema = import_v47.z.object({
|
|
|
14779
15063
|
});
|
|
14780
15064
|
var multiAttachBillingControlsSchema = import_v47.z.object({
|
|
14781
15065
|
spendLimits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitSchema), import_v47.z.undefined()]).optional(),
|
|
14782
|
-
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional()
|
|
15066
|
+
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional(),
|
|
15067
|
+
overageAllowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedSchema), import_v47.z.undefined()]).optional()
|
|
14783
15068
|
});
|
|
14784
15069
|
var multiAttachEntityDataSchema = import_v47.z.object({
|
|
14785
15070
|
featureId: import_v47.z.string(),
|
|
@@ -14987,6 +15272,7 @@ var previewAttachProrationOutboundSchema = import_v49.z.object({
|
|
|
14987
15272
|
});
|
|
14988
15273
|
var previewAttachRolloverOutboundSchema = import_v49.z.object({
|
|
14989
15274
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15275
|
+
max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
14990
15276
|
expiry_duration_type: import_v49.z.string(),
|
|
14991
15277
|
expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
14992
15278
|
});
|
|
@@ -15091,6 +15377,7 @@ var previewAttachProrationSchema = import_v49.z.object({
|
|
|
15091
15377
|
var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
|
|
15092
15378
|
var previewAttachRolloverSchema = import_v49.z.object({
|
|
15093
15379
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15380
|
+
maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15094
15381
|
expiryDurationType: previewAttachExpiryDurationTypeSchema,
|
|
15095
15382
|
expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
15096
15383
|
});
|
|
@@ -15200,6 +15487,10 @@ var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
|
15200
15487
|
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
15201
15488
|
overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15202
15489
|
});
|
|
15490
|
+
var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
|
|
15491
|
+
featureId: import_v410.z.string(),
|
|
15492
|
+
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
|
|
15493
|
+
});
|
|
15203
15494
|
var previewMultiAttachDiscountSchema = import_v410.z.object({
|
|
15204
15495
|
amountOff: import_v410.z.number(),
|
|
15205
15496
|
percentOff: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
@@ -15301,6 +15592,7 @@ var previewMultiAttachProrationOutboundSchema = import_v410.z.object({
|
|
|
15301
15592
|
});
|
|
15302
15593
|
var previewMultiAttachRolloverOutboundSchema = import_v410.z.object({
|
|
15303
15594
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15595
|
+
max_percentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15304
15596
|
expiry_duration_type: import_v410.z.string(),
|
|
15305
15597
|
expiry_duration_length: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15306
15598
|
});
|
|
@@ -15358,9 +15650,17 @@ var previewMultiAttachUsageAlertOutboundSchema = import_v410.z.object({
|
|
|
15358
15650
|
threshold_type: import_v410.z.string(),
|
|
15359
15651
|
name: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
15360
15652
|
});
|
|
15653
|
+
var previewMultiAttachOverageAllowedOutboundSchema = import_v410.z.object({
|
|
15654
|
+
feature_id: import_v410.z.string(),
|
|
15655
|
+
enabled: import_v410.z.boolean()
|
|
15656
|
+
});
|
|
15361
15657
|
var previewMultiAttachBillingControlsOutboundSchema = import_v410.z.object({
|
|
15362
15658
|
spend_limits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
15363
|
-
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional()
|
|
15659
|
+
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
15660
|
+
overage_allowed: import_v410.z.union([
|
|
15661
|
+
import_v410.z.array(previewMultiAttachOverageAllowedOutboundSchema),
|
|
15662
|
+
import_v410.z.undefined()
|
|
15663
|
+
]).optional()
|
|
15364
15664
|
});
|
|
15365
15665
|
var previewMultiAttachEntityDataOutboundSchema = import_v410.z.object({
|
|
15366
15666
|
feature_id: import_v410.z.string(),
|
|
@@ -15405,6 +15705,7 @@ var previewMultiAttachProrationSchema = import_v410.z.object({
|
|
|
15405
15705
|
var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
|
|
15406
15706
|
var previewMultiAttachRolloverSchema = import_v410.z.object({
|
|
15407
15707
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15708
|
+
maxPercentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15408
15709
|
expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
|
|
15409
15710
|
expiryDurationLength: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15410
15711
|
});
|
|
@@ -15448,7 +15749,8 @@ var previewMultiAttachUsageAlertSchema = import_v410.z.object({
|
|
|
15448
15749
|
});
|
|
15449
15750
|
var previewMultiAttachBillingControlsSchema = import_v410.z.object({
|
|
15450
15751
|
spendLimits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitSchema), import_v410.z.undefined()]).optional(),
|
|
15451
|
-
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional()
|
|
15752
|
+
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional(),
|
|
15753
|
+
overageAllowed: import_v410.z.union([import_v410.z.array(previewMultiAttachOverageAllowedSchema), import_v410.z.undefined()]).optional()
|
|
15452
15754
|
});
|
|
15453
15755
|
var previewMultiAttachEntityDataSchema = import_v410.z.object({
|
|
15454
15756
|
featureId: import_v410.z.string(),
|
|
@@ -15644,6 +15946,7 @@ var previewUpdateProrationOutboundSchema = import_v411.z.object({
|
|
|
15644
15946
|
});
|
|
15645
15947
|
var previewUpdateRolloverOutboundSchema = import_v411.z.object({
|
|
15646
15948
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15949
|
+
max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15647
15950
|
expiry_duration_type: import_v411.z.string(),
|
|
15648
15951
|
expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
15649
15952
|
});
|
|
@@ -15728,6 +16031,7 @@ var previewUpdateProrationSchema = import_v411.z.object({
|
|
|
15728
16031
|
var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
|
|
15729
16032
|
var previewUpdateRolloverSchema = import_v411.z.object({
|
|
15730
16033
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
16034
|
+
maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15731
16035
|
expiryDurationType: previewUpdateExpiryDurationTypeSchema,
|
|
15732
16036
|
expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
15733
16037
|
});
|
|
@@ -15891,6 +16195,7 @@ var setupPaymentProrationOutboundSchema = import_v413.z.object({
|
|
|
15891
16195
|
});
|
|
15892
16196
|
var setupPaymentRolloverOutboundSchema = import_v413.z.object({
|
|
15893
16197
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16198
|
+
max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
15894
16199
|
expiry_duration_type: import_v413.z.string(),
|
|
15895
16200
|
expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
15896
16201
|
});
|
|
@@ -15981,6 +16286,7 @@ var setupPaymentProrationSchema = import_v413.z.object({
|
|
|
15981
16286
|
var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
|
|
15982
16287
|
var setupPaymentRolloverSchema = import_v413.z.object({
|
|
15983
16288
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16289
|
+
maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
15984
16290
|
expiryDurationType: setupPaymentExpiryDurationTypeSchema,
|
|
15985
16291
|
expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
15986
16292
|
});
|
|
@@ -16091,6 +16397,7 @@ var billingUpdateProrationOutboundSchema = import_v414.z.object({
|
|
|
16091
16397
|
});
|
|
16092
16398
|
var billingUpdateRolloverOutboundSchema = import_v414.z.object({
|
|
16093
16399
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16400
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16094
16401
|
expiry_duration_type: import_v414.z.string(),
|
|
16095
16402
|
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
16096
16403
|
});
|
|
@@ -16171,6 +16478,7 @@ var billingUpdateProrationSchema = import_v414.z.object({
|
|
|
16171
16478
|
var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
|
|
16172
16479
|
var billingUpdateRolloverSchema = import_v414.z.object({
|
|
16173
16480
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16481
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16174
16482
|
expiryDurationType: billingUpdateExpiryDurationTypeSchema,
|
|
16175
16483
|
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
16176
16484
|
});
|