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
|
@@ -81,8 +81,8 @@ var SDK_METADATA = {
|
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "2.2.0",
|
|
83
83
|
sdkVersion: "0.10.17",
|
|
84
|
-
genVersion: "2.
|
|
85
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.
|
|
84
|
+
genVersion: "2.879.1",
|
|
85
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.1 2.2.0 @useautumn/sdk"
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
// ../sdk/src/lib/http.ts
|
|
@@ -1004,8 +1004,8 @@ function applyBearer(state, spec) {
|
|
|
1004
1004
|
state.headers[spec.fieldName] = value;
|
|
1005
1005
|
}
|
|
1006
1006
|
}
|
|
1007
|
-
function resolveGlobalSecurity(security) {
|
|
1008
|
-
|
|
1007
|
+
function resolveGlobalSecurity(security, allowedFields) {
|
|
1008
|
+
let inputs = [
|
|
1009
1009
|
[
|
|
1010
1010
|
{
|
|
1011
1011
|
fieldName: "Authorization",
|
|
@@ -1013,7 +1013,16 @@ function resolveGlobalSecurity(security) {
|
|
|
1013
1013
|
value: security?.secretKey ?? env().AUTUMN_SECRET_KEY
|
|
1014
1014
|
}
|
|
1015
1015
|
]
|
|
1016
|
-
|
|
1016
|
+
];
|
|
1017
|
+
if (allowedFields) {
|
|
1018
|
+
inputs = allowedFields.map((i) => {
|
|
1019
|
+
if (i < 0 || i >= inputs.length) {
|
|
1020
|
+
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
1021
|
+
}
|
|
1022
|
+
return inputs[i];
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1025
|
+
return resolveSecurity(...inputs);
|
|
1017
1026
|
}
|
|
1018
1027
|
async function extractSecurity(sec) {
|
|
1019
1028
|
if (sec == null) {
|
|
@@ -1340,6 +1349,7 @@ var EventsAggregateParams$outboundSchema = z8.pipe(
|
|
|
1340
1349
|
customRange: z8.optional(
|
|
1341
1350
|
z8.lazy(() => AggregateEventsCustomRange$outboundSchema)
|
|
1342
1351
|
),
|
|
1352
|
+
filterBy: z8.optional(z8.record(z8.string(), z8.string())),
|
|
1343
1353
|
maxGroups: z8.optional(z8.int())
|
|
1344
1354
|
}),
|
|
1345
1355
|
z8.transform((v) => {
|
|
@@ -1350,6 +1360,7 @@ var EventsAggregateParams$outboundSchema = z8.pipe(
|
|
|
1350
1360
|
groupBy: "group_by",
|
|
1351
1361
|
binSize: "bin_size",
|
|
1352
1362
|
customRange: "custom_range",
|
|
1363
|
+
filterBy: "filter_by",
|
|
1353
1364
|
maxGroups: "max_groups"
|
|
1354
1365
|
});
|
|
1355
1366
|
})
|
|
@@ -1558,11 +1569,13 @@ var AttachExpiryDurationType$outboundSchema = z10.enum(AttachExpiryDurationType)
|
|
|
1558
1569
|
var AttachRollover$outboundSchema = z10.pipe(
|
|
1559
1570
|
z10.object({
|
|
1560
1571
|
max: z10.optional(z10.number()),
|
|
1572
|
+
maxPercentage: z10.optional(z10.number()),
|
|
1561
1573
|
expiryDurationType: AttachExpiryDurationType$outboundSchema,
|
|
1562
1574
|
expiryDurationLength: z10.optional(z10.number())
|
|
1563
1575
|
}),
|
|
1564
1576
|
z10.transform((v) => {
|
|
1565
1577
|
return remap(v, {
|
|
1578
|
+
maxPercentage: "max_percentage",
|
|
1566
1579
|
expiryDurationType: "expiry_duration_type",
|
|
1567
1580
|
expiryDurationLength: "expiry_duration_length"
|
|
1568
1581
|
});
|
|
@@ -2087,11 +2100,13 @@ var BillingUpdateExpiryDurationType$outboundSchema = z12.enum(BillingUpdateExpir
|
|
|
2087
2100
|
var BillingUpdateRollover$outboundSchema = z12.pipe(
|
|
2088
2101
|
z12.object({
|
|
2089
2102
|
max: z12.optional(z12.number()),
|
|
2103
|
+
maxPercentage: z12.optional(z12.number()),
|
|
2090
2104
|
expiryDurationType: BillingUpdateExpiryDurationType$outboundSchema,
|
|
2091
2105
|
expiryDurationLength: z12.optional(z12.number())
|
|
2092
2106
|
}),
|
|
2093
2107
|
z12.transform((v) => {
|
|
2094
2108
|
return remap(v, {
|
|
2109
|
+
maxPercentage: "max_percentage",
|
|
2095
2110
|
expiryDurationType: "expiry_duration_type",
|
|
2096
2111
|
expiryDurationLength: "expiry_duration_length"
|
|
2097
2112
|
});
|
|
@@ -2433,11 +2448,19 @@ var ProductDisplay$inboundSchema = z13.pipe(
|
|
|
2433
2448
|
})
|
|
2434
2449
|
);
|
|
2435
2450
|
var RolloverDuration$inboundSchema = inboundSchema(RolloverDuration);
|
|
2436
|
-
var CheckRollover$inboundSchema = z13.
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2451
|
+
var CheckRollover$inboundSchema = z13.pipe(
|
|
2452
|
+
z13.object({
|
|
2453
|
+
max: z13.optional(z13.nullable(number2())),
|
|
2454
|
+
max_percentage: z13.optional(z13.nullable(number2())),
|
|
2455
|
+
duration: z13._default(RolloverDuration$inboundSchema, "month"),
|
|
2456
|
+
length: number2()
|
|
2457
|
+
}),
|
|
2458
|
+
z13.transform((v) => {
|
|
2459
|
+
return remap(v, {
|
|
2460
|
+
"max_percentage": "maxPercentage"
|
|
2461
|
+
});
|
|
2462
|
+
})
|
|
2463
|
+
);
|
|
2441
2464
|
var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
|
|
2442
2465
|
var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
|
|
2443
2466
|
var Config$inboundSchema = z13.pipe(
|
|
@@ -2714,6 +2737,17 @@ var CustomerDataUsageAlert$outboundSchema = z15.pipe(
|
|
|
2714
2737
|
});
|
|
2715
2738
|
})
|
|
2716
2739
|
);
|
|
2740
|
+
var CustomerDataOverageAllowed$outboundSchema = z15.pipe(
|
|
2741
|
+
z15.object({
|
|
2742
|
+
featureId: z15.string(),
|
|
2743
|
+
enabled: z15._default(z15.boolean(), false)
|
|
2744
|
+
}),
|
|
2745
|
+
z15.transform((v) => {
|
|
2746
|
+
return remap(v, {
|
|
2747
|
+
featureId: "feature_id"
|
|
2748
|
+
});
|
|
2749
|
+
})
|
|
2750
|
+
);
|
|
2717
2751
|
var CustomerDataBillingControls$outboundSchema = z15.pipe(
|
|
2718
2752
|
z15.object({
|
|
2719
2753
|
autoTopups: z15.optional(
|
|
@@ -2724,13 +2758,17 @@ var CustomerDataBillingControls$outboundSchema = z15.pipe(
|
|
|
2724
2758
|
),
|
|
2725
2759
|
usageAlerts: z15.optional(
|
|
2726
2760
|
z15.array(z15.lazy(() => CustomerDataUsageAlert$outboundSchema))
|
|
2761
|
+
),
|
|
2762
|
+
overageAllowed: z15.optional(
|
|
2763
|
+
z15.array(z15.lazy(() => CustomerDataOverageAllowed$outboundSchema))
|
|
2727
2764
|
)
|
|
2728
2765
|
}),
|
|
2729
2766
|
z15.transform((v) => {
|
|
2730
2767
|
return remap(v, {
|
|
2731
2768
|
autoTopups: "auto_topups",
|
|
2732
2769
|
spendLimits: "spend_limits",
|
|
2733
|
-
usageAlerts: "usage_alerts"
|
|
2770
|
+
usageAlerts: "usage_alerts",
|
|
2771
|
+
overageAllowed: "overage_allowed"
|
|
2734
2772
|
});
|
|
2735
2773
|
})
|
|
2736
2774
|
);
|
|
@@ -2941,11 +2979,13 @@ var ExpiryDurationType$inboundSchema = inboundSchema(ExpiryDurationType);
|
|
|
2941
2979
|
var PlanRollover$inboundSchema = z16.pipe(
|
|
2942
2980
|
z16.object({
|
|
2943
2981
|
max: nullable(number2()),
|
|
2982
|
+
max_percentage: z16.optional(z16.nullable(number2())),
|
|
2944
2983
|
expiry_duration_type: ExpiryDurationType$inboundSchema,
|
|
2945
2984
|
expiry_duration_length: optional2(number2())
|
|
2946
2985
|
}),
|
|
2947
2986
|
z16.transform((v) => {
|
|
2948
2987
|
return remap(v, {
|
|
2988
|
+
"max_percentage": "maxPercentage",
|
|
2949
2989
|
"expiry_duration_type": "expiryDurationType",
|
|
2950
2990
|
"expiry_duration_length": "expiryDurationLength"
|
|
2951
2991
|
});
|
|
@@ -3084,6 +3124,17 @@ var CreateEntityUsageAlertRequestBody$outboundSchema = z17.pipe(
|
|
|
3084
3124
|
});
|
|
3085
3125
|
})
|
|
3086
3126
|
);
|
|
3127
|
+
var CreateEntityOverageAllowedRequest$outboundSchema = z17.pipe(
|
|
3128
|
+
z17.object({
|
|
3129
|
+
featureId: z17.string(),
|
|
3130
|
+
enabled: z17._default(z17.boolean(), false)
|
|
3131
|
+
}),
|
|
3132
|
+
z17.transform((v) => {
|
|
3133
|
+
return remap(v, {
|
|
3134
|
+
featureId: "feature_id"
|
|
3135
|
+
});
|
|
3136
|
+
})
|
|
3137
|
+
);
|
|
3087
3138
|
var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
|
|
3088
3139
|
z17.object({
|
|
3089
3140
|
spendLimits: z17.optional(
|
|
@@ -3091,12 +3142,16 @@ var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
|
|
|
3091
3142
|
),
|
|
3092
3143
|
usageAlerts: z17.optional(
|
|
3093
3144
|
z17.array(z17.lazy(() => CreateEntityUsageAlertRequestBody$outboundSchema))
|
|
3145
|
+
),
|
|
3146
|
+
overageAllowed: z17.optional(
|
|
3147
|
+
z17.array(z17.lazy(() => CreateEntityOverageAllowedRequest$outboundSchema))
|
|
3094
3148
|
)
|
|
3095
3149
|
}),
|
|
3096
3150
|
z17.transform((v) => {
|
|
3097
3151
|
return remap(v, {
|
|
3098
3152
|
spendLimits: "spend_limits",
|
|
3099
|
-
usageAlerts: "usage_alerts"
|
|
3153
|
+
usageAlerts: "usage_alerts",
|
|
3154
|
+
overageAllowed: "overage_allowed"
|
|
3100
3155
|
});
|
|
3101
3156
|
})
|
|
3102
3157
|
);
|
|
@@ -3253,6 +3308,17 @@ var CreateEntityUsageAlertResponse$inboundSchema = z17.pipe(
|
|
|
3253
3308
|
});
|
|
3254
3309
|
})
|
|
3255
3310
|
);
|
|
3311
|
+
var CreateEntityOverageAllowedResponse$inboundSchema = z17.pipe(
|
|
3312
|
+
z17.object({
|
|
3313
|
+
feature_id: string4(),
|
|
3314
|
+
enabled: z17._default(boolean2(), false)
|
|
3315
|
+
}),
|
|
3316
|
+
z17.transform((v) => {
|
|
3317
|
+
return remap(v, {
|
|
3318
|
+
"feature_id": "featureId"
|
|
3319
|
+
});
|
|
3320
|
+
})
|
|
3321
|
+
);
|
|
3256
3322
|
var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
|
|
3257
3323
|
z17.object({
|
|
3258
3324
|
spend_limits: optional2(
|
|
@@ -3260,12 +3326,16 @@ var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
|
|
|
3260
3326
|
),
|
|
3261
3327
|
usage_alerts: optional2(
|
|
3262
3328
|
z17.array(z17.lazy(() => CreateEntityUsageAlertResponse$inboundSchema))
|
|
3329
|
+
),
|
|
3330
|
+
overage_allowed: optional2(
|
|
3331
|
+
z17.array(z17.lazy(() => CreateEntityOverageAllowedResponse$inboundSchema))
|
|
3263
3332
|
)
|
|
3264
3333
|
}),
|
|
3265
3334
|
z17.transform((v) => {
|
|
3266
3335
|
return remap(v, {
|
|
3267
3336
|
"spend_limits": "spendLimits",
|
|
3268
|
-
"usage_alerts": "usageAlerts"
|
|
3337
|
+
"usage_alerts": "usageAlerts",
|
|
3338
|
+
"overage_allowed": "overageAllowed"
|
|
3269
3339
|
});
|
|
3270
3340
|
})
|
|
3271
3341
|
);
|
|
@@ -3615,11 +3685,13 @@ var CreatePlanExpiryDurationTypeRequest$outboundSchema = z19.enum(CreatePlanExpi
|
|
|
3615
3685
|
var CreatePlanRolloverRequest$outboundSchema = z19.pipe(
|
|
3616
3686
|
z19.object({
|
|
3617
3687
|
max: z19.optional(z19.number()),
|
|
3688
|
+
maxPercentage: z19.optional(z19.number()),
|
|
3618
3689
|
expiryDurationType: CreatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
3619
3690
|
expiryDurationLength: z19.optional(z19.number())
|
|
3620
3691
|
}),
|
|
3621
3692
|
z19.transform((v) => {
|
|
3622
3693
|
return remap(v, {
|
|
3694
|
+
maxPercentage: "max_percentage",
|
|
3623
3695
|
expiryDurationType: "expiry_duration_type",
|
|
3624
3696
|
expiryDurationLength: "expiry_duration_length"
|
|
3625
3697
|
});
|
|
@@ -3796,11 +3868,13 @@ var CreatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePla
|
|
|
3796
3868
|
var CreatePlanRolloverResponse$inboundSchema = z19.pipe(
|
|
3797
3869
|
z19.object({
|
|
3798
3870
|
max: nullable(number2()),
|
|
3871
|
+
max_percentage: z19.optional(z19.nullable(number2())),
|
|
3799
3872
|
expiry_duration_type: CreatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
3800
3873
|
expiry_duration_length: optional2(number2())
|
|
3801
3874
|
}),
|
|
3802
3875
|
z19.transform((v) => {
|
|
3803
3876
|
return remap(v, {
|
|
3877
|
+
"max_percentage": "maxPercentage",
|
|
3804
3878
|
"expiry_duration_type": "expiryDurationType",
|
|
3805
3879
|
"expiry_duration_length": "expiryDurationLength"
|
|
3806
3880
|
});
|
|
@@ -4022,6 +4096,17 @@ var CustomerUsageAlert$inboundSchema = z21.pipe(
|
|
|
4022
4096
|
});
|
|
4023
4097
|
})
|
|
4024
4098
|
);
|
|
4099
|
+
var CustomerOverageAllowed$inboundSchema = z21.pipe(
|
|
4100
|
+
z21.object({
|
|
4101
|
+
feature_id: string4(),
|
|
4102
|
+
enabled: z21._default(boolean2(), false)
|
|
4103
|
+
}),
|
|
4104
|
+
z21.transform((v) => {
|
|
4105
|
+
return remap(v, {
|
|
4106
|
+
"feature_id": "featureId"
|
|
4107
|
+
});
|
|
4108
|
+
})
|
|
4109
|
+
);
|
|
4025
4110
|
var CustomerBillingControls$inboundSchema = z21.pipe(
|
|
4026
4111
|
z21.object({
|
|
4027
4112
|
auto_topups: optional2(
|
|
@@ -4032,13 +4117,17 @@ var CustomerBillingControls$inboundSchema = z21.pipe(
|
|
|
4032
4117
|
),
|
|
4033
4118
|
usage_alerts: optional2(
|
|
4034
4119
|
z21.array(z21.lazy(() => CustomerUsageAlert$inboundSchema))
|
|
4120
|
+
),
|
|
4121
|
+
overage_allowed: optional2(
|
|
4122
|
+
z21.array(z21.lazy(() => CustomerOverageAllowed$inboundSchema))
|
|
4035
4123
|
)
|
|
4036
4124
|
}),
|
|
4037
4125
|
z21.transform((v) => {
|
|
4038
4126
|
return remap(v, {
|
|
4039
4127
|
"auto_topups": "autoTopups",
|
|
4040
4128
|
"spend_limits": "spendLimits",
|
|
4041
|
-
"usage_alerts": "usageAlerts"
|
|
4129
|
+
"usage_alerts": "usageAlerts",
|
|
4130
|
+
"overage_allowed": "overageAllowed"
|
|
4042
4131
|
});
|
|
4043
4132
|
})
|
|
4044
4133
|
);
|
|
@@ -4577,6 +4666,17 @@ var GetEntityUsageAlert$inboundSchema = z28.pipe(
|
|
|
4577
4666
|
});
|
|
4578
4667
|
})
|
|
4579
4668
|
);
|
|
4669
|
+
var GetEntityOverageAllowed$inboundSchema = z28.pipe(
|
|
4670
|
+
z28.object({
|
|
4671
|
+
feature_id: string4(),
|
|
4672
|
+
enabled: z28._default(boolean2(), false)
|
|
4673
|
+
}),
|
|
4674
|
+
z28.transform((v) => {
|
|
4675
|
+
return remap(v, {
|
|
4676
|
+
"feature_id": "featureId"
|
|
4677
|
+
});
|
|
4678
|
+
})
|
|
4679
|
+
);
|
|
4580
4680
|
var GetEntityBillingControls$inboundSchema = z28.pipe(
|
|
4581
4681
|
z28.object({
|
|
4582
4682
|
spend_limits: optional2(
|
|
@@ -4584,12 +4684,16 @@ var GetEntityBillingControls$inboundSchema = z28.pipe(
|
|
|
4584
4684
|
),
|
|
4585
4685
|
usage_alerts: optional2(
|
|
4586
4686
|
z28.array(z28.lazy(() => GetEntityUsageAlert$inboundSchema))
|
|
4687
|
+
),
|
|
4688
|
+
overage_allowed: optional2(
|
|
4689
|
+
z28.array(z28.lazy(() => GetEntityOverageAllowed$inboundSchema))
|
|
4587
4690
|
)
|
|
4588
4691
|
}),
|
|
4589
4692
|
z28.transform((v) => {
|
|
4590
4693
|
return remap(v, {
|
|
4591
4694
|
"spend_limits": "spendLimits",
|
|
4592
|
-
"usage_alerts": "usageAlerts"
|
|
4695
|
+
"usage_alerts": "usageAlerts",
|
|
4696
|
+
"overage_allowed": "overageAllowed"
|
|
4593
4697
|
});
|
|
4594
4698
|
})
|
|
4595
4699
|
);
|
|
@@ -4767,6 +4871,17 @@ var GetOrCreateCustomerUsageAlert$outboundSchema = z30.pipe(
|
|
|
4767
4871
|
});
|
|
4768
4872
|
})
|
|
4769
4873
|
);
|
|
4874
|
+
var GetOrCreateCustomerOverageAllowed$outboundSchema = z30.pipe(
|
|
4875
|
+
z30.object({
|
|
4876
|
+
featureId: z30.string(),
|
|
4877
|
+
enabled: z30._default(z30.boolean(), false)
|
|
4878
|
+
}),
|
|
4879
|
+
z30.transform((v) => {
|
|
4880
|
+
return remap(v, {
|
|
4881
|
+
featureId: "feature_id"
|
|
4882
|
+
});
|
|
4883
|
+
})
|
|
4884
|
+
);
|
|
4770
4885
|
var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
|
|
4771
4886
|
z30.object({
|
|
4772
4887
|
autoTopups: z30.optional(
|
|
@@ -4777,13 +4892,17 @@ var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
|
|
|
4777
4892
|
),
|
|
4778
4893
|
usageAlerts: z30.optional(
|
|
4779
4894
|
z30.array(z30.lazy(() => GetOrCreateCustomerUsageAlert$outboundSchema))
|
|
4895
|
+
),
|
|
4896
|
+
overageAllowed: z30.optional(
|
|
4897
|
+
z30.array(z30.lazy(() => GetOrCreateCustomerOverageAllowed$outboundSchema))
|
|
4780
4898
|
)
|
|
4781
4899
|
}),
|
|
4782
4900
|
z30.transform((v) => {
|
|
4783
4901
|
return remap(v, {
|
|
4784
4902
|
autoTopups: "auto_topups",
|
|
4785
4903
|
spendLimits: "spend_limits",
|
|
4786
|
-
usageAlerts: "usage_alerts"
|
|
4904
|
+
usageAlerts: "usage_alerts",
|
|
4905
|
+
overageAllowed: "overage_allowed"
|
|
4787
4906
|
});
|
|
4788
4907
|
})
|
|
4789
4908
|
);
|
|
@@ -5008,11 +5127,13 @@ var GetPlanExpiryDurationType$inboundSchema = inboundSchema(GetPlanExpiryDuratio
|
|
|
5008
5127
|
var GetPlanRollover$inboundSchema = z31.pipe(
|
|
5009
5128
|
z31.object({
|
|
5010
5129
|
max: nullable(number2()),
|
|
5130
|
+
max_percentage: z31.optional(z31.nullable(number2())),
|
|
5011
5131
|
expiry_duration_type: GetPlanExpiryDurationType$inboundSchema,
|
|
5012
5132
|
expiry_duration_length: optional2(number2())
|
|
5013
5133
|
}),
|
|
5014
5134
|
z31.transform((v) => {
|
|
5015
5135
|
return remap(v, {
|
|
5136
|
+
"max_percentage": "maxPercentage",
|
|
5016
5137
|
"expiry_duration_type": "expiryDurationType",
|
|
5017
5138
|
"expiry_duration_length": "expiryDurationLength"
|
|
5018
5139
|
});
|
|
@@ -5240,6 +5361,17 @@ var ListCustomersUsageAlert$inboundSchema = z32.pipe(
|
|
|
5240
5361
|
});
|
|
5241
5362
|
})
|
|
5242
5363
|
);
|
|
5364
|
+
var ListCustomersOverageAllowed$inboundSchema = z32.pipe(
|
|
5365
|
+
z32.object({
|
|
5366
|
+
feature_id: string4(),
|
|
5367
|
+
enabled: z32._default(boolean2(), false)
|
|
5368
|
+
}),
|
|
5369
|
+
z32.transform((v) => {
|
|
5370
|
+
return remap(v, {
|
|
5371
|
+
"feature_id": "featureId"
|
|
5372
|
+
});
|
|
5373
|
+
})
|
|
5374
|
+
);
|
|
5243
5375
|
var ListCustomersBillingControls$inboundSchema = z32.pipe(
|
|
5244
5376
|
z32.object({
|
|
5245
5377
|
auto_topups: optional2(
|
|
@@ -5250,13 +5382,17 @@ var ListCustomersBillingControls$inboundSchema = z32.pipe(
|
|
|
5250
5382
|
),
|
|
5251
5383
|
usage_alerts: optional2(
|
|
5252
5384
|
z32.array(z32.lazy(() => ListCustomersUsageAlert$inboundSchema))
|
|
5385
|
+
),
|
|
5386
|
+
overage_allowed: optional2(
|
|
5387
|
+
z32.array(z32.lazy(() => ListCustomersOverageAllowed$inboundSchema))
|
|
5253
5388
|
)
|
|
5254
5389
|
}),
|
|
5255
5390
|
z32.transform((v) => {
|
|
5256
5391
|
return remap(v, {
|
|
5257
5392
|
"auto_topups": "autoTopups",
|
|
5258
5393
|
"spend_limits": "spendLimits",
|
|
5259
|
-
"usage_alerts": "usageAlerts"
|
|
5394
|
+
"usage_alerts": "usageAlerts",
|
|
5395
|
+
"overage_allowed": "overageAllowed"
|
|
5260
5396
|
});
|
|
5261
5397
|
})
|
|
5262
5398
|
);
|
|
@@ -5711,11 +5847,13 @@ var ListPlansExpiryDurationType$inboundSchema = inboundSchema(ListPlansExpiryDur
|
|
|
5711
5847
|
var ListPlansRollover$inboundSchema = z35.pipe(
|
|
5712
5848
|
z35.object({
|
|
5713
5849
|
max: nullable(number2()),
|
|
5850
|
+
max_percentage: z35.optional(z35.nullable(number2())),
|
|
5714
5851
|
expiry_duration_type: ListPlansExpiryDurationType$inboundSchema,
|
|
5715
5852
|
expiry_duration_length: optional2(number2())
|
|
5716
5853
|
}),
|
|
5717
5854
|
z35.transform((v) => {
|
|
5718
5855
|
return remap(v, {
|
|
5856
|
+
"max_percentage": "maxPercentage",
|
|
5719
5857
|
"expiry_duration_type": "expiryDurationType",
|
|
5720
5858
|
"expiry_duration_length": "expiryDurationLength"
|
|
5721
5859
|
});
|
|
@@ -5959,11 +6097,13 @@ var MultiAttachExpiryDurationType$outboundSchema = z36.enum(MultiAttachExpiryDur
|
|
|
5959
6097
|
var MultiAttachRollover$outboundSchema = z36.pipe(
|
|
5960
6098
|
z36.object({
|
|
5961
6099
|
max: z36.optional(z36.number()),
|
|
6100
|
+
maxPercentage: z36.optional(z36.number()),
|
|
5962
6101
|
expiryDurationType: MultiAttachExpiryDurationType$outboundSchema,
|
|
5963
6102
|
expiryDurationLength: z36.optional(z36.number())
|
|
5964
6103
|
}),
|
|
5965
6104
|
z36.transform((v) => {
|
|
5966
6105
|
return remap(v, {
|
|
6106
|
+
maxPercentage: "max_percentage",
|
|
5967
6107
|
expiryDurationType: "expiry_duration_type",
|
|
5968
6108
|
expiryDurationLength: "expiry_duration_length"
|
|
5969
6109
|
});
|
|
@@ -6090,6 +6230,17 @@ var MultiAttachUsageAlert$outboundSchema = z36.pipe(
|
|
|
6090
6230
|
});
|
|
6091
6231
|
})
|
|
6092
6232
|
);
|
|
6233
|
+
var MultiAttachOverageAllowed$outboundSchema = z36.pipe(
|
|
6234
|
+
z36.object({
|
|
6235
|
+
featureId: z36.string(),
|
|
6236
|
+
enabled: z36._default(z36.boolean(), false)
|
|
6237
|
+
}),
|
|
6238
|
+
z36.transform((v) => {
|
|
6239
|
+
return remap(v, {
|
|
6240
|
+
featureId: "feature_id"
|
|
6241
|
+
});
|
|
6242
|
+
})
|
|
6243
|
+
);
|
|
6093
6244
|
var MultiAttachBillingControls$outboundSchema = z36.pipe(
|
|
6094
6245
|
z36.object({
|
|
6095
6246
|
spendLimits: z36.optional(
|
|
@@ -6097,12 +6248,16 @@ var MultiAttachBillingControls$outboundSchema = z36.pipe(
|
|
|
6097
6248
|
),
|
|
6098
6249
|
usageAlerts: z36.optional(
|
|
6099
6250
|
z36.array(z36.lazy(() => MultiAttachUsageAlert$outboundSchema))
|
|
6251
|
+
),
|
|
6252
|
+
overageAllowed: z36.optional(
|
|
6253
|
+
z36.array(z36.lazy(() => MultiAttachOverageAllowed$outboundSchema))
|
|
6100
6254
|
)
|
|
6101
6255
|
}),
|
|
6102
6256
|
z36.transform((v) => {
|
|
6103
6257
|
return remap(v, {
|
|
6104
6258
|
spendLimits: "spend_limits",
|
|
6105
|
-
usageAlerts: "usage_alerts"
|
|
6259
|
+
usageAlerts: "usage_alerts",
|
|
6260
|
+
overageAllowed: "overage_allowed"
|
|
6106
6261
|
});
|
|
6107
6262
|
})
|
|
6108
6263
|
);
|
|
@@ -6396,11 +6551,13 @@ var PreviewAttachExpiryDurationType$outboundSchema = z38.enum(PreviewAttachExpir
|
|
|
6396
6551
|
var PreviewAttachRollover$outboundSchema = z38.pipe(
|
|
6397
6552
|
z38.object({
|
|
6398
6553
|
max: z38.optional(z38.number()),
|
|
6554
|
+
maxPercentage: z38.optional(z38.number()),
|
|
6399
6555
|
expiryDurationType: PreviewAttachExpiryDurationType$outboundSchema,
|
|
6400
6556
|
expiryDurationLength: z38.optional(z38.number())
|
|
6401
6557
|
}),
|
|
6402
6558
|
z38.transform((v) => {
|
|
6403
6559
|
return remap(v, {
|
|
6560
|
+
maxPercentage: "max_percentage",
|
|
6404
6561
|
expiryDurationType: "expiry_duration_type",
|
|
6405
6562
|
expiryDurationLength: "expiry_duration_length"
|
|
6406
6563
|
});
|
|
@@ -6944,11 +7101,13 @@ var PreviewMultiAttachExpiryDurationType$outboundSchema = z39.enum(PreviewMultiA
|
|
|
6944
7101
|
var PreviewMultiAttachRollover$outboundSchema = z39.pipe(
|
|
6945
7102
|
z39.object({
|
|
6946
7103
|
max: z39.optional(z39.number()),
|
|
7104
|
+
maxPercentage: z39.optional(z39.number()),
|
|
6947
7105
|
expiryDurationType: PreviewMultiAttachExpiryDurationType$outboundSchema,
|
|
6948
7106
|
expiryDurationLength: z39.optional(z39.number())
|
|
6949
7107
|
}),
|
|
6950
7108
|
z39.transform((v) => {
|
|
6951
7109
|
return remap(v, {
|
|
7110
|
+
maxPercentage: "max_percentage",
|
|
6952
7111
|
expiryDurationType: "expiry_duration_type",
|
|
6953
7112
|
expiryDurationLength: "expiry_duration_length"
|
|
6954
7113
|
});
|
|
@@ -7088,6 +7247,17 @@ var PreviewMultiAttachUsageAlert$outboundSchema = z39.pipe(
|
|
|
7088
7247
|
});
|
|
7089
7248
|
})
|
|
7090
7249
|
);
|
|
7250
|
+
var PreviewMultiAttachOverageAllowed$outboundSchema = z39.pipe(
|
|
7251
|
+
z39.object({
|
|
7252
|
+
featureId: z39.string(),
|
|
7253
|
+
enabled: z39._default(z39.boolean(), false)
|
|
7254
|
+
}),
|
|
7255
|
+
z39.transform((v) => {
|
|
7256
|
+
return remap(v, {
|
|
7257
|
+
featureId: "feature_id"
|
|
7258
|
+
});
|
|
7259
|
+
})
|
|
7260
|
+
);
|
|
7091
7261
|
var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
|
|
7092
7262
|
z39.object({
|
|
7093
7263
|
spendLimits: z39.optional(
|
|
@@ -7095,12 +7265,16 @@ var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
|
|
|
7095
7265
|
),
|
|
7096
7266
|
usageAlerts: z39.optional(
|
|
7097
7267
|
z39.array(z39.lazy(() => PreviewMultiAttachUsageAlert$outboundSchema))
|
|
7268
|
+
),
|
|
7269
|
+
overageAllowed: z39.optional(
|
|
7270
|
+
z39.array(z39.lazy(() => PreviewMultiAttachOverageAllowed$outboundSchema))
|
|
7098
7271
|
)
|
|
7099
7272
|
}),
|
|
7100
7273
|
z39.transform((v) => {
|
|
7101
7274
|
return remap(v, {
|
|
7102
7275
|
spendLimits: "spend_limits",
|
|
7103
|
-
usageAlerts: "usage_alerts"
|
|
7276
|
+
usageAlerts: "usage_alerts",
|
|
7277
|
+
overageAllowed: "overage_allowed"
|
|
7104
7278
|
});
|
|
7105
7279
|
})
|
|
7106
7280
|
);
|
|
@@ -7556,11 +7730,13 @@ var PreviewUpdateExpiryDurationType$outboundSchema = z40.enum(PreviewUpdateExpir
|
|
|
7556
7730
|
var PreviewUpdateRollover$outboundSchema = z40.pipe(
|
|
7557
7731
|
z40.object({
|
|
7558
7732
|
max: z40.optional(z40.number()),
|
|
7733
|
+
maxPercentage: z40.optional(z40.number()),
|
|
7559
7734
|
expiryDurationType: PreviewUpdateExpiryDurationType$outboundSchema,
|
|
7560
7735
|
expiryDurationLength: z40.optional(z40.number())
|
|
7561
7736
|
}),
|
|
7562
7737
|
z40.transform((v) => {
|
|
7563
7738
|
return remap(v, {
|
|
7739
|
+
maxPercentage: "max_percentage",
|
|
7564
7740
|
expiryDurationType: "expiry_duration_type",
|
|
7565
7741
|
expiryDurationLength: "expiry_duration_length"
|
|
7566
7742
|
});
|
|
@@ -8076,11 +8252,13 @@ var SetupPaymentExpiryDurationType$outboundSchema = z42.enum(SetupPaymentExpiryD
|
|
|
8076
8252
|
var SetupPaymentRollover$outboundSchema = z42.pipe(
|
|
8077
8253
|
z42.object({
|
|
8078
8254
|
max: z42.optional(z42.number()),
|
|
8255
|
+
maxPercentage: z42.optional(z42.number()),
|
|
8079
8256
|
expiryDurationType: SetupPaymentExpiryDurationType$outboundSchema,
|
|
8080
8257
|
expiryDurationLength: z42.optional(z42.number())
|
|
8081
8258
|
}),
|
|
8082
8259
|
z42.transform((v) => {
|
|
8083
8260
|
return remap(v, {
|
|
8261
|
+
maxPercentage: "max_percentage",
|
|
8084
8262
|
expiryDurationType: "expiry_duration_type",
|
|
8085
8263
|
expiryDurationLength: "expiry_duration_length"
|
|
8086
8264
|
});
|
|
@@ -8425,6 +8603,17 @@ var UpdateCustomerUsageAlertRequestBody$outboundSchema = z45.pipe(
|
|
|
8425
8603
|
});
|
|
8426
8604
|
})
|
|
8427
8605
|
);
|
|
8606
|
+
var UpdateCustomerOverageAllowedRequest$outboundSchema = z45.pipe(
|
|
8607
|
+
z45.object({
|
|
8608
|
+
featureId: z45.string(),
|
|
8609
|
+
enabled: z45._default(z45.boolean(), false)
|
|
8610
|
+
}),
|
|
8611
|
+
z45.transform((v) => {
|
|
8612
|
+
return remap(v, {
|
|
8613
|
+
featureId: "feature_id"
|
|
8614
|
+
});
|
|
8615
|
+
})
|
|
8616
|
+
);
|
|
8428
8617
|
var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
|
|
8429
8618
|
z45.object({
|
|
8430
8619
|
autoTopups: z45.optional(
|
|
@@ -8435,13 +8624,17 @@ var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
|
|
|
8435
8624
|
),
|
|
8436
8625
|
usageAlerts: z45.optional(
|
|
8437
8626
|
z45.array(z45.lazy(() => UpdateCustomerUsageAlertRequestBody$outboundSchema))
|
|
8627
|
+
),
|
|
8628
|
+
overageAllowed: z45.optional(
|
|
8629
|
+
z45.array(z45.lazy(() => UpdateCustomerOverageAllowedRequest$outboundSchema))
|
|
8438
8630
|
)
|
|
8439
8631
|
}),
|
|
8440
8632
|
z45.transform((v) => {
|
|
8441
8633
|
return remap(v, {
|
|
8442
8634
|
autoTopups: "auto_topups",
|
|
8443
8635
|
spendLimits: "spend_limits",
|
|
8444
|
-
usageAlerts: "usage_alerts"
|
|
8636
|
+
usageAlerts: "usage_alerts",
|
|
8637
|
+
overageAllowed: "overage_allowed"
|
|
8445
8638
|
});
|
|
8446
8639
|
})
|
|
8447
8640
|
);
|
|
@@ -8529,6 +8722,17 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z45.pipe(
|
|
|
8529
8722
|
});
|
|
8530
8723
|
})
|
|
8531
8724
|
);
|
|
8725
|
+
var UpdateCustomerOverageAllowedResponse$inboundSchema = z45.pipe(
|
|
8726
|
+
z45.object({
|
|
8727
|
+
feature_id: string4(),
|
|
8728
|
+
enabled: z45._default(boolean2(), false)
|
|
8729
|
+
}),
|
|
8730
|
+
z45.transform((v) => {
|
|
8731
|
+
return remap(v, {
|
|
8732
|
+
"feature_id": "featureId"
|
|
8733
|
+
});
|
|
8734
|
+
})
|
|
8735
|
+
);
|
|
8532
8736
|
var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
|
|
8533
8737
|
z45.object({
|
|
8534
8738
|
auto_topups: optional2(
|
|
@@ -8539,13 +8743,17 @@ var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
|
|
|
8539
8743
|
),
|
|
8540
8744
|
usage_alerts: optional2(
|
|
8541
8745
|
z45.array(z45.lazy(() => UpdateCustomerUsageAlertResponse$inboundSchema))
|
|
8746
|
+
),
|
|
8747
|
+
overage_allowed: optional2(
|
|
8748
|
+
z45.array(z45.lazy(() => UpdateCustomerOverageAllowedResponse$inboundSchema))
|
|
8542
8749
|
)
|
|
8543
8750
|
}),
|
|
8544
8751
|
z45.transform((v) => {
|
|
8545
8752
|
return remap(v, {
|
|
8546
8753
|
"auto_topups": "autoTopups",
|
|
8547
8754
|
"spend_limits": "spendLimits",
|
|
8548
|
-
"usage_alerts": "usageAlerts"
|
|
8755
|
+
"usage_alerts": "usageAlerts",
|
|
8756
|
+
"overage_allowed": "overageAllowed"
|
|
8549
8757
|
});
|
|
8550
8758
|
})
|
|
8551
8759
|
);
|
|
@@ -8737,6 +8945,17 @@ var UpdateEntityUsageAlertRequestBody$outboundSchema = z46.pipe(
|
|
|
8737
8945
|
});
|
|
8738
8946
|
})
|
|
8739
8947
|
);
|
|
8948
|
+
var UpdateEntityOverageAllowedRequest$outboundSchema = z46.pipe(
|
|
8949
|
+
z46.object({
|
|
8950
|
+
featureId: z46.string(),
|
|
8951
|
+
enabled: z46._default(z46.boolean(), false)
|
|
8952
|
+
}),
|
|
8953
|
+
z46.transform((v) => {
|
|
8954
|
+
return remap(v, {
|
|
8955
|
+
featureId: "feature_id"
|
|
8956
|
+
});
|
|
8957
|
+
})
|
|
8958
|
+
);
|
|
8740
8959
|
var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
|
|
8741
8960
|
z46.object({
|
|
8742
8961
|
spendLimits: z46.optional(
|
|
@@ -8744,12 +8963,16 @@ var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
|
|
|
8744
8963
|
),
|
|
8745
8964
|
usageAlerts: z46.optional(
|
|
8746
8965
|
z46.array(z46.lazy(() => UpdateEntityUsageAlertRequestBody$outboundSchema))
|
|
8966
|
+
),
|
|
8967
|
+
overageAllowed: z46.optional(
|
|
8968
|
+
z46.array(z46.lazy(() => UpdateEntityOverageAllowedRequest$outboundSchema))
|
|
8747
8969
|
)
|
|
8748
8970
|
}),
|
|
8749
8971
|
z46.transform((v) => {
|
|
8750
8972
|
return remap(v, {
|
|
8751
8973
|
spendLimits: "spend_limits",
|
|
8752
|
-
usageAlerts: "usage_alerts"
|
|
8974
|
+
usageAlerts: "usage_alerts",
|
|
8975
|
+
overageAllowed: "overage_allowed"
|
|
8753
8976
|
});
|
|
8754
8977
|
})
|
|
8755
8978
|
);
|
|
@@ -8901,6 +9124,17 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z46.pipe(
|
|
|
8901
9124
|
});
|
|
8902
9125
|
})
|
|
8903
9126
|
);
|
|
9127
|
+
var UpdateEntityOverageAllowedResponse$inboundSchema = z46.pipe(
|
|
9128
|
+
z46.object({
|
|
9129
|
+
feature_id: string4(),
|
|
9130
|
+
enabled: z46._default(boolean2(), false)
|
|
9131
|
+
}),
|
|
9132
|
+
z46.transform((v) => {
|
|
9133
|
+
return remap(v, {
|
|
9134
|
+
"feature_id": "featureId"
|
|
9135
|
+
});
|
|
9136
|
+
})
|
|
9137
|
+
);
|
|
8904
9138
|
var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
|
|
8905
9139
|
z46.object({
|
|
8906
9140
|
spend_limits: optional2(
|
|
@@ -8908,12 +9142,16 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
|
|
|
8908
9142
|
),
|
|
8909
9143
|
usage_alerts: optional2(
|
|
8910
9144
|
z46.array(z46.lazy(() => UpdateEntityUsageAlertResponse$inboundSchema))
|
|
9145
|
+
),
|
|
9146
|
+
overage_allowed: optional2(
|
|
9147
|
+
z46.array(z46.lazy(() => UpdateEntityOverageAllowedResponse$inboundSchema))
|
|
8911
9148
|
)
|
|
8912
9149
|
}),
|
|
8913
9150
|
z46.transform((v) => {
|
|
8914
9151
|
return remap(v, {
|
|
8915
9152
|
"spend_limits": "spendLimits",
|
|
8916
|
-
"usage_alerts": "usageAlerts"
|
|
9153
|
+
"usage_alerts": "usageAlerts",
|
|
9154
|
+
"overage_allowed": "overageAllowed"
|
|
8917
9155
|
});
|
|
8918
9156
|
})
|
|
8919
9157
|
);
|
|
@@ -9266,11 +9504,13 @@ var UpdatePlanExpiryDurationTypeRequest$outboundSchema = z48.enum(UpdatePlanExpi
|
|
|
9266
9504
|
var UpdatePlanRolloverRequest$outboundSchema = z48.pipe(
|
|
9267
9505
|
z48.object({
|
|
9268
9506
|
max: z48.optional(z48.number()),
|
|
9507
|
+
maxPercentage: z48.optional(z48.number()),
|
|
9269
9508
|
expiryDurationType: UpdatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
9270
9509
|
expiryDurationLength: z48.optional(z48.number())
|
|
9271
9510
|
}),
|
|
9272
9511
|
z48.transform((v) => {
|
|
9273
9512
|
return remap(v, {
|
|
9513
|
+
maxPercentage: "max_percentage",
|
|
9274
9514
|
expiryDurationType: "expiry_duration_type",
|
|
9275
9515
|
expiryDurationLength: "expiry_duration_length"
|
|
9276
9516
|
});
|
|
@@ -9455,11 +9695,13 @@ var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePla
|
|
|
9455
9695
|
var UpdatePlanRolloverResponse$inboundSchema = z48.pipe(
|
|
9456
9696
|
z48.object({
|
|
9457
9697
|
max: nullable(number2()),
|
|
9698
|
+
max_percentage: z48.optional(z48.nullable(number2())),
|
|
9458
9699
|
expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
9459
9700
|
expiry_duration_length: optional2(number2())
|
|
9460
9701
|
}),
|
|
9461
9702
|
z48.transform((v) => {
|
|
9462
9703
|
return remap(v, {
|
|
9704
|
+
"max_percentage": "maxPercentage",
|
|
9463
9705
|
"expiry_duration_type": "expiryDurationType",
|
|
9464
9706
|
"expiry_duration_length": "expiryDurationLength"
|
|
9465
9707
|
});
|
|
@@ -9736,7 +9978,8 @@ async function $do2(client, request, options) {
|
|
|
9736
9978
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set([
|
|
9737
9979
|
"check",
|
|
9738
9980
|
"track",
|
|
9739
|
-
"getOrCreateCustomer"
|
|
9981
|
+
"getOrCreateCustomer",
|
|
9982
|
+
"getEntity"
|
|
9740
9983
|
]);
|
|
9741
9984
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
9742
9985
|
var FAIL_OPEN_BODIES = {
|
|
@@ -9766,6 +10009,18 @@ var FAIL_OPEN_BODIES = {
|
|
|
9766
10009
|
purchases: [],
|
|
9767
10010
|
balances: {},
|
|
9768
10011
|
flags: {}
|
|
10012
|
+
},
|
|
10013
|
+
getEntity: {
|
|
10014
|
+
id: null,
|
|
10015
|
+
name: null,
|
|
10016
|
+
customer_id: null,
|
|
10017
|
+
feature_id: null,
|
|
10018
|
+
created_at: 0,
|
|
10019
|
+
env: "live",
|
|
10020
|
+
subscriptions: [],
|
|
10021
|
+
purchases: [],
|
|
10022
|
+
balances: {},
|
|
10023
|
+
flags: {}
|
|
9769
10024
|
}
|
|
9770
10025
|
};
|
|
9771
10026
|
var FailOpenHook = class {
|
|
@@ -14043,6 +14298,7 @@ var eventsAggregateParamsOutboundSchema = import_v4.z.object({
|
|
|
14043
14298
|
range: import_v4.z.union([import_v4.z.string(), import_v4.z.undefined()]).optional(),
|
|
14044
14299
|
bin_size: import_v4.z.string(),
|
|
14045
14300
|
custom_range: import_v4.z.union([aggregateEventsCustomRangeOutboundSchema, import_v4.z.undefined()]).optional(),
|
|
14301
|
+
filter_by: import_v4.z.union([import_v4.z.record(import_v4.z.string(), import_v4.z.string()), import_v4.z.undefined()]).optional(),
|
|
14046
14302
|
max_groups: import_v4.z.union([import_v4.z.number(), import_v4.z.undefined()]).optional()
|
|
14047
14303
|
});
|
|
14048
14304
|
var closedEnumSchema = import_v4.z.any();
|
|
@@ -14056,6 +14312,7 @@ var eventsAggregateParamsSchema = import_v4.z.object({
|
|
|
14056
14312
|
range: import_v4.z.union([rangeSchema, import_v4.z.undefined()]).optional(),
|
|
14057
14313
|
binSize: import_v4.z.union([binSizeSchema, import_v4.z.undefined()]).optional(),
|
|
14058
14314
|
customRange: import_v4.z.union([aggregateEventsCustomRangeSchema, import_v4.z.undefined()]).optional(),
|
|
14315
|
+
filterBy: import_v4.z.union([import_v4.z.record(import_v4.z.string(), import_v4.z.string()), import_v4.z.undefined()]).optional(),
|
|
14059
14316
|
maxGroups: import_v4.z.union([import_v4.z.number(), import_v4.z.undefined()]).optional()
|
|
14060
14317
|
});
|
|
14061
14318
|
|
|
@@ -14139,6 +14396,7 @@ var attachProrationOutboundSchema = import_v42.z.object({
|
|
|
14139
14396
|
});
|
|
14140
14397
|
var attachRolloverOutboundSchema = import_v42.z.object({
|
|
14141
14398
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14399
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14142
14400
|
expiry_duration_type: import_v42.z.string(),
|
|
14143
14401
|
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
14144
14402
|
});
|
|
@@ -14239,6 +14497,7 @@ var attachProrationSchema = import_v42.z.object({
|
|
|
14239
14497
|
var attachExpiryDurationTypeSchema = closedEnumSchema2;
|
|
14240
14498
|
var attachRolloverSchema = import_v42.z.object({
|
|
14241
14499
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14500
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14242
14501
|
expiryDurationType: attachExpiryDurationTypeSchema,
|
|
14243
14502
|
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
14244
14503
|
});
|
|
@@ -14329,6 +14588,10 @@ var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
|
|
|
14329
14588
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
14330
14589
|
overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
14331
14590
|
});
|
|
14591
|
+
var getOrCreateCustomerOverageAllowedSchema = import_v44.z.object({
|
|
14592
|
+
featureId: import_v44.z.string(),
|
|
14593
|
+
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
14594
|
+
});
|
|
14332
14595
|
var getOrCreateCustomerPurchaseLimitOutboundSchema = import_v44.z.object({
|
|
14333
14596
|
interval: import_v44.z.string(),
|
|
14334
14597
|
interval_count: import_v44.z.number(),
|
|
@@ -14353,6 +14616,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = import_v44.z.object({
|
|
|
14353
14616
|
threshold_type: import_v44.z.string(),
|
|
14354
14617
|
name: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
|
|
14355
14618
|
});
|
|
14619
|
+
var getOrCreateCustomerOverageAllowedOutboundSchema = import_v44.z.object({
|
|
14620
|
+
feature_id: import_v44.z.string(),
|
|
14621
|
+
enabled: import_v44.z.boolean()
|
|
14622
|
+
});
|
|
14356
14623
|
var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
14357
14624
|
auto_topups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupOutboundSchema), import_v44.z.undefined()]).optional(),
|
|
14358
14625
|
spend_limits: import_v44.z.union([
|
|
@@ -14362,6 +14629,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
|
14362
14629
|
usage_alerts: import_v44.z.union([
|
|
14363
14630
|
import_v44.z.array(getOrCreateCustomerUsageAlertOutboundSchema),
|
|
14364
14631
|
import_v44.z.undefined()
|
|
14632
|
+
]).optional(),
|
|
14633
|
+
overage_allowed: import_v44.z.union([
|
|
14634
|
+
import_v44.z.array(getOrCreateCustomerOverageAllowedOutboundSchema),
|
|
14635
|
+
import_v44.z.undefined()
|
|
14365
14636
|
]).optional()
|
|
14366
14637
|
});
|
|
14367
14638
|
var getOrCreateCustomerParamsOutboundSchema = import_v44.z.object({
|
|
@@ -14402,7 +14673,8 @@ var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
|
14402
14673
|
var getOrCreateCustomerBillingControlsSchema = import_v44.z.object({
|
|
14403
14674
|
autoTopups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupSchema), import_v44.z.undefined()]).optional(),
|
|
14404
14675
|
spendLimits: import_v44.z.union([import_v44.z.array(getOrCreateCustomerSpendLimitSchema), import_v44.z.undefined()]).optional(),
|
|
14405
|
-
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional()
|
|
14676
|
+
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional(),
|
|
14677
|
+
overageAllowed: import_v44.z.union([import_v44.z.array(getOrCreateCustomerOverageAllowedSchema), import_v44.z.undefined()]).optional()
|
|
14406
14678
|
});
|
|
14407
14679
|
var getOrCreateCustomerParamsSchema = import_v44.z.object({
|
|
14408
14680
|
customerId: import_v44.z.string().nullable(),
|
|
@@ -14541,6 +14813,7 @@ var listPlansItemPriceSchema = import_v46.z.object({
|
|
|
14541
14813
|
var listPlansExpiryDurationTypeSchema = openEnumSchema2;
|
|
14542
14814
|
var listPlansRolloverSchema = import_v46.z.object({
|
|
14543
14815
|
max: import_v46.z.number().nullable(),
|
|
14816
|
+
maxPercentage: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional().nullable(),
|
|
14544
14817
|
expiryDurationType: listPlansExpiryDurationTypeSchema,
|
|
14545
14818
|
expiryDurationLength: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
|
|
14546
14819
|
});
|
|
@@ -14621,6 +14894,10 @@ var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
|
14621
14894
|
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
14622
14895
|
overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14623
14896
|
});
|
|
14897
|
+
var multiAttachOverageAllowedSchema = import_v47.z.object({
|
|
14898
|
+
featureId: import_v47.z.string(),
|
|
14899
|
+
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
|
|
14900
|
+
});
|
|
14624
14901
|
var multiAttachInvoiceSchema = import_v47.z.object({
|
|
14625
14902
|
status: import_v47.z.string().nullable(),
|
|
14626
14903
|
stripeId: import_v47.z.string(),
|
|
@@ -14659,6 +14936,7 @@ var multiAttachProrationOutboundSchema = import_v47.z.object({
|
|
|
14659
14936
|
});
|
|
14660
14937
|
var multiAttachRolloverOutboundSchema = import_v47.z.object({
|
|
14661
14938
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14939
|
+
max_percentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14662
14940
|
expiry_duration_type: import_v47.z.string(),
|
|
14663
14941
|
expiry_duration_length: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14664
14942
|
});
|
|
@@ -14713,9 +14991,14 @@ var multiAttachUsageAlertOutboundSchema = import_v47.z.object({
|
|
|
14713
14991
|
threshold_type: import_v47.z.string(),
|
|
14714
14992
|
name: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
14715
14993
|
});
|
|
14994
|
+
var multiAttachOverageAllowedOutboundSchema = import_v47.z.object({
|
|
14995
|
+
feature_id: import_v47.z.string(),
|
|
14996
|
+
enabled: import_v47.z.boolean()
|
|
14997
|
+
});
|
|
14716
14998
|
var multiAttachBillingControlsOutboundSchema = import_v47.z.object({
|
|
14717
14999
|
spend_limits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
14718
|
-
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional()
|
|
15000
|
+
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
15001
|
+
overage_allowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedOutboundSchema), import_v47.z.undefined()]).optional()
|
|
14719
15002
|
});
|
|
14720
15003
|
var multiAttachEntityDataOutboundSchema = import_v47.z.object({
|
|
14721
15004
|
feature_id: import_v47.z.string(),
|
|
@@ -14759,6 +15042,7 @@ var multiAttachProrationSchema = import_v47.z.object({
|
|
|
14759
15042
|
var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
|
|
14760
15043
|
var multiAttachRolloverSchema = import_v47.z.object({
|
|
14761
15044
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
15045
|
+
maxPercentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14762
15046
|
expiryDurationType: multiAttachExpiryDurationTypeSchema,
|
|
14763
15047
|
expiryDurationLength: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14764
15048
|
});
|
|
@@ -14799,7 +15083,8 @@ var multiAttachUsageAlertSchema = import_v47.z.object({
|
|
|
14799
15083
|
});
|
|
14800
15084
|
var multiAttachBillingControlsSchema = import_v47.z.object({
|
|
14801
15085
|
spendLimits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitSchema), import_v47.z.undefined()]).optional(),
|
|
14802
|
-
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional()
|
|
15086
|
+
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional(),
|
|
15087
|
+
overageAllowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedSchema), import_v47.z.undefined()]).optional()
|
|
14803
15088
|
});
|
|
14804
15089
|
var multiAttachEntityDataSchema = import_v47.z.object({
|
|
14805
15090
|
featureId: import_v47.z.string(),
|
|
@@ -15007,6 +15292,7 @@ var previewAttachProrationOutboundSchema = import_v49.z.object({
|
|
|
15007
15292
|
});
|
|
15008
15293
|
var previewAttachRolloverOutboundSchema = import_v49.z.object({
|
|
15009
15294
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15295
|
+
max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15010
15296
|
expiry_duration_type: import_v49.z.string(),
|
|
15011
15297
|
expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
15012
15298
|
});
|
|
@@ -15111,6 +15397,7 @@ var previewAttachProrationSchema = import_v49.z.object({
|
|
|
15111
15397
|
var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
|
|
15112
15398
|
var previewAttachRolloverSchema = import_v49.z.object({
|
|
15113
15399
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15400
|
+
maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15114
15401
|
expiryDurationType: previewAttachExpiryDurationTypeSchema,
|
|
15115
15402
|
expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
15116
15403
|
});
|
|
@@ -15220,6 +15507,10 @@ var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
|
15220
15507
|
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
15221
15508
|
overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15222
15509
|
});
|
|
15510
|
+
var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
|
|
15511
|
+
featureId: import_v410.z.string(),
|
|
15512
|
+
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
|
|
15513
|
+
});
|
|
15223
15514
|
var previewMultiAttachDiscountSchema = import_v410.z.object({
|
|
15224
15515
|
amountOff: import_v410.z.number(),
|
|
15225
15516
|
percentOff: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
@@ -15321,6 +15612,7 @@ var previewMultiAttachProrationOutboundSchema = import_v410.z.object({
|
|
|
15321
15612
|
});
|
|
15322
15613
|
var previewMultiAttachRolloverOutboundSchema = import_v410.z.object({
|
|
15323
15614
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15615
|
+
max_percentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15324
15616
|
expiry_duration_type: import_v410.z.string(),
|
|
15325
15617
|
expiry_duration_length: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15326
15618
|
});
|
|
@@ -15378,9 +15670,17 @@ var previewMultiAttachUsageAlertOutboundSchema = import_v410.z.object({
|
|
|
15378
15670
|
threshold_type: import_v410.z.string(),
|
|
15379
15671
|
name: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
15380
15672
|
});
|
|
15673
|
+
var previewMultiAttachOverageAllowedOutboundSchema = import_v410.z.object({
|
|
15674
|
+
feature_id: import_v410.z.string(),
|
|
15675
|
+
enabled: import_v410.z.boolean()
|
|
15676
|
+
});
|
|
15381
15677
|
var previewMultiAttachBillingControlsOutboundSchema = import_v410.z.object({
|
|
15382
15678
|
spend_limits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
15383
|
-
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional()
|
|
15679
|
+
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
15680
|
+
overage_allowed: import_v410.z.union([
|
|
15681
|
+
import_v410.z.array(previewMultiAttachOverageAllowedOutboundSchema),
|
|
15682
|
+
import_v410.z.undefined()
|
|
15683
|
+
]).optional()
|
|
15384
15684
|
});
|
|
15385
15685
|
var previewMultiAttachEntityDataOutboundSchema = import_v410.z.object({
|
|
15386
15686
|
feature_id: import_v410.z.string(),
|
|
@@ -15425,6 +15725,7 @@ var previewMultiAttachProrationSchema = import_v410.z.object({
|
|
|
15425
15725
|
var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
|
|
15426
15726
|
var previewMultiAttachRolloverSchema = import_v410.z.object({
|
|
15427
15727
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15728
|
+
maxPercentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15428
15729
|
expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
|
|
15429
15730
|
expiryDurationLength: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15430
15731
|
});
|
|
@@ -15468,7 +15769,8 @@ var previewMultiAttachUsageAlertSchema = import_v410.z.object({
|
|
|
15468
15769
|
});
|
|
15469
15770
|
var previewMultiAttachBillingControlsSchema = import_v410.z.object({
|
|
15470
15771
|
spendLimits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitSchema), import_v410.z.undefined()]).optional(),
|
|
15471
|
-
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional()
|
|
15772
|
+
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional(),
|
|
15773
|
+
overageAllowed: import_v410.z.union([import_v410.z.array(previewMultiAttachOverageAllowedSchema), import_v410.z.undefined()]).optional()
|
|
15472
15774
|
});
|
|
15473
15775
|
var previewMultiAttachEntityDataSchema = import_v410.z.object({
|
|
15474
15776
|
featureId: import_v410.z.string(),
|
|
@@ -15664,6 +15966,7 @@ var previewUpdateProrationOutboundSchema = import_v411.z.object({
|
|
|
15664
15966
|
});
|
|
15665
15967
|
var previewUpdateRolloverOutboundSchema = import_v411.z.object({
|
|
15666
15968
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15969
|
+
max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15667
15970
|
expiry_duration_type: import_v411.z.string(),
|
|
15668
15971
|
expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
15669
15972
|
});
|
|
@@ -15748,6 +16051,7 @@ var previewUpdateProrationSchema = import_v411.z.object({
|
|
|
15748
16051
|
var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
|
|
15749
16052
|
var previewUpdateRolloverSchema = import_v411.z.object({
|
|
15750
16053
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
16054
|
+
maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15751
16055
|
expiryDurationType: previewUpdateExpiryDurationTypeSchema,
|
|
15752
16056
|
expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
15753
16057
|
});
|
|
@@ -15911,6 +16215,7 @@ var setupPaymentProrationOutboundSchema = import_v413.z.object({
|
|
|
15911
16215
|
});
|
|
15912
16216
|
var setupPaymentRolloverOutboundSchema = import_v413.z.object({
|
|
15913
16217
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16218
|
+
max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
15914
16219
|
expiry_duration_type: import_v413.z.string(),
|
|
15915
16220
|
expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
15916
16221
|
});
|
|
@@ -16001,6 +16306,7 @@ var setupPaymentProrationSchema = import_v413.z.object({
|
|
|
16001
16306
|
var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
|
|
16002
16307
|
var setupPaymentRolloverSchema = import_v413.z.object({
|
|
16003
16308
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16309
|
+
maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16004
16310
|
expiryDurationType: setupPaymentExpiryDurationTypeSchema,
|
|
16005
16311
|
expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
16006
16312
|
});
|
|
@@ -16111,6 +16417,7 @@ var billingUpdateProrationOutboundSchema = import_v414.z.object({
|
|
|
16111
16417
|
});
|
|
16112
16418
|
var billingUpdateRolloverOutboundSchema = import_v414.z.object({
|
|
16113
16419
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16420
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16114
16421
|
expiry_duration_type: import_v414.z.string(),
|
|
16115
16422
|
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
16116
16423
|
});
|
|
@@ -16191,6 +16498,7 @@ var billingUpdateProrationSchema = import_v414.z.object({
|
|
|
16191
16498
|
var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
|
|
16192
16499
|
var billingUpdateRolloverSchema = import_v414.z.object({
|
|
16193
16500
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16501
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16194
16502
|
expiryDurationType: billingUpdateExpiryDurationTypeSchema,
|
|
16195
16503
|
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
16196
16504
|
});
|