autumn-js 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/adapters/express.d.mts +1 -1
- package/dist/backend/adapters/express.d.ts +1 -1
- package/dist/backend/adapters/express.js +333 -29
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.d.mts +1 -1
- package/dist/backend/adapters/fetch.d.ts +1 -1
- package/dist/backend/adapters/fetch.js +333 -29
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.d.mts +1 -1
- package/dist/backend/adapters/hono.d.ts +1 -1
- package/dist/backend/adapters/hono.js +333 -29
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.d.mts +1 -1
- package/dist/backend/adapters/index.d.ts +1 -1
- package/dist/backend/adapters/index.js +333 -29
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.d.mts +1 -1
- package/dist/backend/adapters/next.d.ts +1 -1
- package/dist/backend/adapters/next.js +333 -29
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{authTypes-BCoyMOAj.d.mts → authTypes-B5VxPaMo.d.mts} +14 -0
- package/dist/backend/{authTypes-BCoyMOAj.d.ts → authTypes-B5VxPaMo.d.ts} +14 -0
- package/dist/backend/{chunk-C5ZDQJPP.mjs → chunk-2YEMC57K.mjs} +1 -1
- package/dist/backend/{chunk-6BVI5XZX.mjs → chunk-CCEZMERA.mjs} +277 -24
- package/dist/backend/{chunk-GLPHS5KF.mjs → chunk-ETHQSA52.mjs} +7 -7
- package/dist/backend/{chunk-OB47KG2H.mjs → chunk-FRKRWJ5S.mjs} +1 -1
- package/dist/backend/{chunk-GENKYO6B.mjs → chunk-IFFSWLXT.mjs} +1 -1
- package/dist/backend/{chunk-SX3CNUF5.mjs → chunk-IUFWKMTJ.mjs} +1 -1
- package/dist/backend/{chunk-XU4OGYDV.mjs → chunk-N62MDT7U.mjs} +56 -5
- package/dist/backend/{chunk-3QNAZFQH.mjs → chunk-OLHAIHAX.mjs} +5 -5
- package/dist/backend/core/handlers/coreHandler.d.mts +2 -2
- package/dist/backend/core/handlers/coreHandler.d.ts +2 -2
- package/dist/backend/core/handlers/coreHandler.js +333 -29
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- package/dist/backend/core/handlers/executeRoute.d.mts +2 -2
- package/dist/backend/core/handlers/executeRoute.d.ts +2 -2
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +333 -29
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- package/dist/backend/core/handlers/index.d.mts +2 -2
- package/dist/backend/core/handlers/index.d.ts +2 -2
- package/dist/backend/core/handlers/index.js +333 -29
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
- package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
- package/dist/backend/core/index.d.mts +2 -2
- package/dist/backend/core/index.d.ts +2 -2
- package/dist/backend/core/index.js +333 -29
- package/dist/backend/core/index.mjs +10 -10
- package/dist/backend/core/routes/index.d.mts +2 -2
- package/dist/backend/core/routes/index.d.ts +2 -2
- package/dist/backend/core/routes/index.js +56 -5
- package/dist/backend/core/routes/index.mjs +2 -2
- package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
- package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.js +56 -5
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- package/dist/backend/core/types/authTypes.d.mts +1 -1
- package/dist/backend/core/types/authTypes.d.ts +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +2 -2
- package/dist/backend/core/types/handlerTypes.d.ts +2 -2
- package/dist/backend/core/types/index.d.mts +2 -2
- package/dist/backend/core/types/index.d.ts +2 -2
- package/dist/backend/core/types/routeTypes.d.mts +2 -2
- package/dist/backend/core/types/routeTypes.d.ts +2 -2
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +4 -4
- package/dist/backend/index.d.ts +4 -4
- package/dist/backend/index.js +333 -29
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-Che2nkqv.d.ts → routeTypes-BkSHRiCI.d.ts} +227 -2
- package/dist/backend/{routeTypes-RMeyKg5T.d.mts → routeTypes-C1hUtfD8.d.mts} +227 -2
- package/dist/better-auth/{chunk-6TAYCQUD.mjs → chunk-2PRVJULJ.mjs} +56 -5
- package/dist/better-auth/{chunk-5F3J4ZQQ.mjs → chunk-6J74ZVNY.mjs} +278 -25
- package/dist/better-auth/{chunk-IODRHT4E.mjs → chunk-IY7FPOWF.mjs} +1 -1
- package/dist/better-auth/index.js +333 -29
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/types.d.mts +14 -0
- package/dist/better-auth/types.d.ts +14 -0
- package/dist/better-auth/utils/createAutumnEndpoint.js +56 -5
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +333 -29
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +333 -29
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +3 -3
- package/dist/react/AutumnContext.d.ts +3 -3
- package/dist/react/client/AutumnClient.d.mts +3 -3
- package/dist/react/client/AutumnClient.d.ts +3 -3
- package/dist/react/client/IAutumnClient.d.mts +7 -3
- package/dist/react/client/IAutumnClient.d.ts +7 -3
- package/dist/react/client/index.d.mts +3 -3
- package/dist/react/client/index.d.ts +3 -3
- package/dist/react/{customer-CNvpHhpS.d.mts → customer-Bb7J-_p_.d.mts} +15 -1
- package/dist/react/{customer-CMAtwbJl.d.ts → customer-CJSDgQMF.d.ts} +15 -1
- package/dist/react/hooks/index.d.mts +3 -3
- package/dist/react/hooks/index.d.ts +3 -3
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -3
- package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
- package/dist/react/hooks/useCustomer.d.mts +3 -3
- package/dist/react/hooks/useCustomer.d.ts +3 -3
- package/dist/react/hooks/useEntity.d.mts +2 -2
- package/dist/react/hooks/useEntity.d.ts +2 -2
- package/dist/react/hooks/useListEvents.d.mts +2 -2
- package/dist/react/hooks/useListEvents.d.ts +2 -2
- package/dist/react/hooks/useListPlans.d.mts +2 -2
- package/dist/react/hooks/useListPlans.d.ts +2 -2
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/index.d.mts +3 -3
- package/dist/react/index.d.ts +3 -3
- package/dist/react/{params-CnOvYjqJ.d.ts → params-CheyAQ0-.d.mts} +87 -2
- package/dist/react/{params-Cdkj83CV.d.mts → params-yCtJ7lOA.d.ts} +87 -2
- package/dist/react/{plan-BoMslu_O.d.mts → plan-CqxFGNk2.d.mts} +4 -0
- package/dist/react/{plan-BoMslu_O.d.ts → plan-CqxFGNk2.d.ts} +4 -0
- package/dist/sdk/index.d.mts +333 -4
- package/dist/sdk/index.d.ts +333 -4
- package/dist/sdk/index.js +382 -24
- package/dist/sdk/index.mjs +357 -25
- package/package.json +1 -1
- package/dist/backend/{chunk-55C2WWXQ.mjs → chunk-S5HPMJ4U.mjs} +3 -3
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
routeConfigs,
|
|
9
9
|
sanitizeBody,
|
|
10
10
|
secretKeyCheck
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2PRVJULJ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getActiveOrganization
|
|
14
14
|
} from "./chunk-BT3EAYVW.mjs";
|
|
@@ -60,8 +60,8 @@ var SDK_METADATA = {
|
|
|
60
60
|
language: "typescript",
|
|
61
61
|
openapiDocVersion: "2.2.0",
|
|
62
62
|
sdkVersion: "0.10.17",
|
|
63
|
-
genVersion: "2.
|
|
64
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.
|
|
63
|
+
genVersion: "2.879.1",
|
|
64
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.1 2.2.0 @useautumn/sdk"
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
// ../sdk/src/lib/http.ts
|
|
@@ -983,8 +983,8 @@ function applyBearer(state, spec) {
|
|
|
983
983
|
state.headers[spec.fieldName] = value;
|
|
984
984
|
}
|
|
985
985
|
}
|
|
986
|
-
function resolveGlobalSecurity(security) {
|
|
987
|
-
|
|
986
|
+
function resolveGlobalSecurity(security, allowedFields) {
|
|
987
|
+
let inputs = [
|
|
988
988
|
[
|
|
989
989
|
{
|
|
990
990
|
fieldName: "Authorization",
|
|
@@ -992,7 +992,16 @@ function resolveGlobalSecurity(security) {
|
|
|
992
992
|
value: security?.secretKey ?? env().AUTUMN_SECRET_KEY
|
|
993
993
|
}
|
|
994
994
|
]
|
|
995
|
-
|
|
995
|
+
];
|
|
996
|
+
if (allowedFields) {
|
|
997
|
+
inputs = allowedFields.map((i) => {
|
|
998
|
+
if (i < 0 || i >= inputs.length) {
|
|
999
|
+
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
1000
|
+
}
|
|
1001
|
+
return inputs[i];
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
return resolveSecurity(...inputs);
|
|
996
1005
|
}
|
|
997
1006
|
async function extractSecurity(sec) {
|
|
998
1007
|
if (sec == null) {
|
|
@@ -1539,11 +1548,13 @@ var AttachExpiryDurationType$outboundSchema = z10.enum(AttachExpiryDurationType)
|
|
|
1539
1548
|
var AttachRollover$outboundSchema = z10.pipe(
|
|
1540
1549
|
z10.object({
|
|
1541
1550
|
max: z10.optional(z10.number()),
|
|
1551
|
+
maxPercentage: z10.optional(z10.number()),
|
|
1542
1552
|
expiryDurationType: AttachExpiryDurationType$outboundSchema,
|
|
1543
1553
|
expiryDurationLength: z10.optional(z10.number())
|
|
1544
1554
|
}),
|
|
1545
1555
|
z10.transform((v) => {
|
|
1546
1556
|
return remap(v, {
|
|
1557
|
+
maxPercentage: "max_percentage",
|
|
1547
1558
|
expiryDurationType: "expiry_duration_type",
|
|
1548
1559
|
expiryDurationLength: "expiry_duration_length"
|
|
1549
1560
|
});
|
|
@@ -2068,11 +2079,13 @@ var BillingUpdateExpiryDurationType$outboundSchema = z12.enum(BillingUpdateExpir
|
|
|
2068
2079
|
var BillingUpdateRollover$outboundSchema = z12.pipe(
|
|
2069
2080
|
z12.object({
|
|
2070
2081
|
max: z12.optional(z12.number()),
|
|
2082
|
+
maxPercentage: z12.optional(z12.number()),
|
|
2071
2083
|
expiryDurationType: BillingUpdateExpiryDurationType$outboundSchema,
|
|
2072
2084
|
expiryDurationLength: z12.optional(z12.number())
|
|
2073
2085
|
}),
|
|
2074
2086
|
z12.transform((v) => {
|
|
2075
2087
|
return remap(v, {
|
|
2088
|
+
maxPercentage: "max_percentage",
|
|
2076
2089
|
expiryDurationType: "expiry_duration_type",
|
|
2077
2090
|
expiryDurationLength: "expiry_duration_length"
|
|
2078
2091
|
});
|
|
@@ -2414,11 +2427,19 @@ var ProductDisplay$inboundSchema = z13.pipe(
|
|
|
2414
2427
|
})
|
|
2415
2428
|
);
|
|
2416
2429
|
var RolloverDuration$inboundSchema = inboundSchema(RolloverDuration);
|
|
2417
|
-
var CheckRollover$inboundSchema = z13.
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2430
|
+
var CheckRollover$inboundSchema = z13.pipe(
|
|
2431
|
+
z13.object({
|
|
2432
|
+
max: z13.optional(z13.nullable(number2())),
|
|
2433
|
+
max_percentage: z13.optional(z13.nullable(number2())),
|
|
2434
|
+
duration: z13._default(RolloverDuration$inboundSchema, "month"),
|
|
2435
|
+
length: number2()
|
|
2436
|
+
}),
|
|
2437
|
+
z13.transform((v) => {
|
|
2438
|
+
return remap(v, {
|
|
2439
|
+
"max_percentage": "maxPercentage"
|
|
2440
|
+
});
|
|
2441
|
+
})
|
|
2442
|
+
);
|
|
2422
2443
|
var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
|
|
2423
2444
|
var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
|
|
2424
2445
|
var Config$inboundSchema = z13.pipe(
|
|
@@ -2695,6 +2716,17 @@ var CustomerDataUsageAlert$outboundSchema = z15.pipe(
|
|
|
2695
2716
|
});
|
|
2696
2717
|
})
|
|
2697
2718
|
);
|
|
2719
|
+
var CustomerDataOverageAllowed$outboundSchema = z15.pipe(
|
|
2720
|
+
z15.object({
|
|
2721
|
+
featureId: z15.string(),
|
|
2722
|
+
enabled: z15._default(z15.boolean(), false)
|
|
2723
|
+
}),
|
|
2724
|
+
z15.transform((v) => {
|
|
2725
|
+
return remap(v, {
|
|
2726
|
+
featureId: "feature_id"
|
|
2727
|
+
});
|
|
2728
|
+
})
|
|
2729
|
+
);
|
|
2698
2730
|
var CustomerDataBillingControls$outboundSchema = z15.pipe(
|
|
2699
2731
|
z15.object({
|
|
2700
2732
|
autoTopups: z15.optional(
|
|
@@ -2705,13 +2737,17 @@ var CustomerDataBillingControls$outboundSchema = z15.pipe(
|
|
|
2705
2737
|
),
|
|
2706
2738
|
usageAlerts: z15.optional(
|
|
2707
2739
|
z15.array(z15.lazy(() => CustomerDataUsageAlert$outboundSchema))
|
|
2740
|
+
),
|
|
2741
|
+
overageAllowed: z15.optional(
|
|
2742
|
+
z15.array(z15.lazy(() => CustomerDataOverageAllowed$outboundSchema))
|
|
2708
2743
|
)
|
|
2709
2744
|
}),
|
|
2710
2745
|
z15.transform((v) => {
|
|
2711
2746
|
return remap(v, {
|
|
2712
2747
|
autoTopups: "auto_topups",
|
|
2713
2748
|
spendLimits: "spend_limits",
|
|
2714
|
-
usageAlerts: "usage_alerts"
|
|
2749
|
+
usageAlerts: "usage_alerts",
|
|
2750
|
+
overageAllowed: "overage_allowed"
|
|
2715
2751
|
});
|
|
2716
2752
|
})
|
|
2717
2753
|
);
|
|
@@ -2922,11 +2958,13 @@ var ExpiryDurationType$inboundSchema = inboundSchema(ExpiryDurationType);
|
|
|
2922
2958
|
var PlanRollover$inboundSchema = z16.pipe(
|
|
2923
2959
|
z16.object({
|
|
2924
2960
|
max: nullable(number2()),
|
|
2961
|
+
max_percentage: z16.optional(z16.nullable(number2())),
|
|
2925
2962
|
expiry_duration_type: ExpiryDurationType$inboundSchema,
|
|
2926
2963
|
expiry_duration_length: optional2(number2())
|
|
2927
2964
|
}),
|
|
2928
2965
|
z16.transform((v) => {
|
|
2929
2966
|
return remap(v, {
|
|
2967
|
+
"max_percentage": "maxPercentage",
|
|
2930
2968
|
"expiry_duration_type": "expiryDurationType",
|
|
2931
2969
|
"expiry_duration_length": "expiryDurationLength"
|
|
2932
2970
|
});
|
|
@@ -3065,6 +3103,17 @@ var CreateEntityUsageAlertRequestBody$outboundSchema = z17.pipe(
|
|
|
3065
3103
|
});
|
|
3066
3104
|
})
|
|
3067
3105
|
);
|
|
3106
|
+
var CreateEntityOverageAllowedRequest$outboundSchema = z17.pipe(
|
|
3107
|
+
z17.object({
|
|
3108
|
+
featureId: z17.string(),
|
|
3109
|
+
enabled: z17._default(z17.boolean(), false)
|
|
3110
|
+
}),
|
|
3111
|
+
z17.transform((v) => {
|
|
3112
|
+
return remap(v, {
|
|
3113
|
+
featureId: "feature_id"
|
|
3114
|
+
});
|
|
3115
|
+
})
|
|
3116
|
+
);
|
|
3068
3117
|
var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
|
|
3069
3118
|
z17.object({
|
|
3070
3119
|
spendLimits: z17.optional(
|
|
@@ -3072,12 +3121,16 @@ var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
|
|
|
3072
3121
|
),
|
|
3073
3122
|
usageAlerts: z17.optional(
|
|
3074
3123
|
z17.array(z17.lazy(() => CreateEntityUsageAlertRequestBody$outboundSchema))
|
|
3124
|
+
),
|
|
3125
|
+
overageAllowed: z17.optional(
|
|
3126
|
+
z17.array(z17.lazy(() => CreateEntityOverageAllowedRequest$outboundSchema))
|
|
3075
3127
|
)
|
|
3076
3128
|
}),
|
|
3077
3129
|
z17.transform((v) => {
|
|
3078
3130
|
return remap(v, {
|
|
3079
3131
|
spendLimits: "spend_limits",
|
|
3080
|
-
usageAlerts: "usage_alerts"
|
|
3132
|
+
usageAlerts: "usage_alerts",
|
|
3133
|
+
overageAllowed: "overage_allowed"
|
|
3081
3134
|
});
|
|
3082
3135
|
})
|
|
3083
3136
|
);
|
|
@@ -3234,6 +3287,17 @@ var CreateEntityUsageAlertResponse$inboundSchema = z17.pipe(
|
|
|
3234
3287
|
});
|
|
3235
3288
|
})
|
|
3236
3289
|
);
|
|
3290
|
+
var CreateEntityOverageAllowedResponse$inboundSchema = z17.pipe(
|
|
3291
|
+
z17.object({
|
|
3292
|
+
feature_id: string4(),
|
|
3293
|
+
enabled: z17._default(boolean2(), false)
|
|
3294
|
+
}),
|
|
3295
|
+
z17.transform((v) => {
|
|
3296
|
+
return remap(v, {
|
|
3297
|
+
"feature_id": "featureId"
|
|
3298
|
+
});
|
|
3299
|
+
})
|
|
3300
|
+
);
|
|
3237
3301
|
var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
|
|
3238
3302
|
z17.object({
|
|
3239
3303
|
spend_limits: optional2(
|
|
@@ -3241,12 +3305,16 @@ var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
|
|
|
3241
3305
|
),
|
|
3242
3306
|
usage_alerts: optional2(
|
|
3243
3307
|
z17.array(z17.lazy(() => CreateEntityUsageAlertResponse$inboundSchema))
|
|
3308
|
+
),
|
|
3309
|
+
overage_allowed: optional2(
|
|
3310
|
+
z17.array(z17.lazy(() => CreateEntityOverageAllowedResponse$inboundSchema))
|
|
3244
3311
|
)
|
|
3245
3312
|
}),
|
|
3246
3313
|
z17.transform((v) => {
|
|
3247
3314
|
return remap(v, {
|
|
3248
3315
|
"spend_limits": "spendLimits",
|
|
3249
|
-
"usage_alerts": "usageAlerts"
|
|
3316
|
+
"usage_alerts": "usageAlerts",
|
|
3317
|
+
"overage_allowed": "overageAllowed"
|
|
3250
3318
|
});
|
|
3251
3319
|
})
|
|
3252
3320
|
);
|
|
@@ -3596,11 +3664,13 @@ var CreatePlanExpiryDurationTypeRequest$outboundSchema = z19.enum(CreatePlanExpi
|
|
|
3596
3664
|
var CreatePlanRolloverRequest$outboundSchema = z19.pipe(
|
|
3597
3665
|
z19.object({
|
|
3598
3666
|
max: z19.optional(z19.number()),
|
|
3667
|
+
maxPercentage: z19.optional(z19.number()),
|
|
3599
3668
|
expiryDurationType: CreatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
3600
3669
|
expiryDurationLength: z19.optional(z19.number())
|
|
3601
3670
|
}),
|
|
3602
3671
|
z19.transform((v) => {
|
|
3603
3672
|
return remap(v, {
|
|
3673
|
+
maxPercentage: "max_percentage",
|
|
3604
3674
|
expiryDurationType: "expiry_duration_type",
|
|
3605
3675
|
expiryDurationLength: "expiry_duration_length"
|
|
3606
3676
|
});
|
|
@@ -3777,11 +3847,13 @@ var CreatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePla
|
|
|
3777
3847
|
var CreatePlanRolloverResponse$inboundSchema = z19.pipe(
|
|
3778
3848
|
z19.object({
|
|
3779
3849
|
max: nullable(number2()),
|
|
3850
|
+
max_percentage: z19.optional(z19.nullable(number2())),
|
|
3780
3851
|
expiry_duration_type: CreatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
3781
3852
|
expiry_duration_length: optional2(number2())
|
|
3782
3853
|
}),
|
|
3783
3854
|
z19.transform((v) => {
|
|
3784
3855
|
return remap(v, {
|
|
3856
|
+
"max_percentage": "maxPercentage",
|
|
3785
3857
|
"expiry_duration_type": "expiryDurationType",
|
|
3786
3858
|
"expiry_duration_length": "expiryDurationLength"
|
|
3787
3859
|
});
|
|
@@ -4003,6 +4075,17 @@ var CustomerUsageAlert$inboundSchema = z21.pipe(
|
|
|
4003
4075
|
});
|
|
4004
4076
|
})
|
|
4005
4077
|
);
|
|
4078
|
+
var CustomerOverageAllowed$inboundSchema = z21.pipe(
|
|
4079
|
+
z21.object({
|
|
4080
|
+
feature_id: string4(),
|
|
4081
|
+
enabled: z21._default(boolean2(), false)
|
|
4082
|
+
}),
|
|
4083
|
+
z21.transform((v) => {
|
|
4084
|
+
return remap(v, {
|
|
4085
|
+
"feature_id": "featureId"
|
|
4086
|
+
});
|
|
4087
|
+
})
|
|
4088
|
+
);
|
|
4006
4089
|
var CustomerBillingControls$inboundSchema = z21.pipe(
|
|
4007
4090
|
z21.object({
|
|
4008
4091
|
auto_topups: optional2(
|
|
@@ -4013,13 +4096,17 @@ var CustomerBillingControls$inboundSchema = z21.pipe(
|
|
|
4013
4096
|
),
|
|
4014
4097
|
usage_alerts: optional2(
|
|
4015
4098
|
z21.array(z21.lazy(() => CustomerUsageAlert$inboundSchema))
|
|
4099
|
+
),
|
|
4100
|
+
overage_allowed: optional2(
|
|
4101
|
+
z21.array(z21.lazy(() => CustomerOverageAllowed$inboundSchema))
|
|
4016
4102
|
)
|
|
4017
4103
|
}),
|
|
4018
4104
|
z21.transform((v) => {
|
|
4019
4105
|
return remap(v, {
|
|
4020
4106
|
"auto_topups": "autoTopups",
|
|
4021
4107
|
"spend_limits": "spendLimits",
|
|
4022
|
-
"usage_alerts": "usageAlerts"
|
|
4108
|
+
"usage_alerts": "usageAlerts",
|
|
4109
|
+
"overage_allowed": "overageAllowed"
|
|
4023
4110
|
});
|
|
4024
4111
|
})
|
|
4025
4112
|
);
|
|
@@ -4558,6 +4645,17 @@ var GetEntityUsageAlert$inboundSchema = z28.pipe(
|
|
|
4558
4645
|
});
|
|
4559
4646
|
})
|
|
4560
4647
|
);
|
|
4648
|
+
var GetEntityOverageAllowed$inboundSchema = z28.pipe(
|
|
4649
|
+
z28.object({
|
|
4650
|
+
feature_id: string4(),
|
|
4651
|
+
enabled: z28._default(boolean2(), false)
|
|
4652
|
+
}),
|
|
4653
|
+
z28.transform((v) => {
|
|
4654
|
+
return remap(v, {
|
|
4655
|
+
"feature_id": "featureId"
|
|
4656
|
+
});
|
|
4657
|
+
})
|
|
4658
|
+
);
|
|
4561
4659
|
var GetEntityBillingControls$inboundSchema = z28.pipe(
|
|
4562
4660
|
z28.object({
|
|
4563
4661
|
spend_limits: optional2(
|
|
@@ -4565,12 +4663,16 @@ var GetEntityBillingControls$inboundSchema = z28.pipe(
|
|
|
4565
4663
|
),
|
|
4566
4664
|
usage_alerts: optional2(
|
|
4567
4665
|
z28.array(z28.lazy(() => GetEntityUsageAlert$inboundSchema))
|
|
4666
|
+
),
|
|
4667
|
+
overage_allowed: optional2(
|
|
4668
|
+
z28.array(z28.lazy(() => GetEntityOverageAllowed$inboundSchema))
|
|
4568
4669
|
)
|
|
4569
4670
|
}),
|
|
4570
4671
|
z28.transform((v) => {
|
|
4571
4672
|
return remap(v, {
|
|
4572
4673
|
"spend_limits": "spendLimits",
|
|
4573
|
-
"usage_alerts": "usageAlerts"
|
|
4674
|
+
"usage_alerts": "usageAlerts",
|
|
4675
|
+
"overage_allowed": "overageAllowed"
|
|
4574
4676
|
});
|
|
4575
4677
|
})
|
|
4576
4678
|
);
|
|
@@ -4748,6 +4850,17 @@ var GetOrCreateCustomerUsageAlert$outboundSchema = z30.pipe(
|
|
|
4748
4850
|
});
|
|
4749
4851
|
})
|
|
4750
4852
|
);
|
|
4853
|
+
var GetOrCreateCustomerOverageAllowed$outboundSchema = z30.pipe(
|
|
4854
|
+
z30.object({
|
|
4855
|
+
featureId: z30.string(),
|
|
4856
|
+
enabled: z30._default(z30.boolean(), false)
|
|
4857
|
+
}),
|
|
4858
|
+
z30.transform((v) => {
|
|
4859
|
+
return remap(v, {
|
|
4860
|
+
featureId: "feature_id"
|
|
4861
|
+
});
|
|
4862
|
+
})
|
|
4863
|
+
);
|
|
4751
4864
|
var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
|
|
4752
4865
|
z30.object({
|
|
4753
4866
|
autoTopups: z30.optional(
|
|
@@ -4758,13 +4871,17 @@ var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
|
|
|
4758
4871
|
),
|
|
4759
4872
|
usageAlerts: z30.optional(
|
|
4760
4873
|
z30.array(z30.lazy(() => GetOrCreateCustomerUsageAlert$outboundSchema))
|
|
4874
|
+
),
|
|
4875
|
+
overageAllowed: z30.optional(
|
|
4876
|
+
z30.array(z30.lazy(() => GetOrCreateCustomerOverageAllowed$outboundSchema))
|
|
4761
4877
|
)
|
|
4762
4878
|
}),
|
|
4763
4879
|
z30.transform((v) => {
|
|
4764
4880
|
return remap(v, {
|
|
4765
4881
|
autoTopups: "auto_topups",
|
|
4766
4882
|
spendLimits: "spend_limits",
|
|
4767
|
-
usageAlerts: "usage_alerts"
|
|
4883
|
+
usageAlerts: "usage_alerts",
|
|
4884
|
+
overageAllowed: "overage_allowed"
|
|
4768
4885
|
});
|
|
4769
4886
|
})
|
|
4770
4887
|
);
|
|
@@ -4989,11 +5106,13 @@ var GetPlanExpiryDurationType$inboundSchema = inboundSchema(GetPlanExpiryDuratio
|
|
|
4989
5106
|
var GetPlanRollover$inboundSchema = z31.pipe(
|
|
4990
5107
|
z31.object({
|
|
4991
5108
|
max: nullable(number2()),
|
|
5109
|
+
max_percentage: z31.optional(z31.nullable(number2())),
|
|
4992
5110
|
expiry_duration_type: GetPlanExpiryDurationType$inboundSchema,
|
|
4993
5111
|
expiry_duration_length: optional2(number2())
|
|
4994
5112
|
}),
|
|
4995
5113
|
z31.transform((v) => {
|
|
4996
5114
|
return remap(v, {
|
|
5115
|
+
"max_percentage": "maxPercentage",
|
|
4997
5116
|
"expiry_duration_type": "expiryDurationType",
|
|
4998
5117
|
"expiry_duration_length": "expiryDurationLength"
|
|
4999
5118
|
});
|
|
@@ -5221,6 +5340,17 @@ var ListCustomersUsageAlert$inboundSchema = z32.pipe(
|
|
|
5221
5340
|
});
|
|
5222
5341
|
})
|
|
5223
5342
|
);
|
|
5343
|
+
var ListCustomersOverageAllowed$inboundSchema = z32.pipe(
|
|
5344
|
+
z32.object({
|
|
5345
|
+
feature_id: string4(),
|
|
5346
|
+
enabled: z32._default(boolean2(), false)
|
|
5347
|
+
}),
|
|
5348
|
+
z32.transform((v) => {
|
|
5349
|
+
return remap(v, {
|
|
5350
|
+
"feature_id": "featureId"
|
|
5351
|
+
});
|
|
5352
|
+
})
|
|
5353
|
+
);
|
|
5224
5354
|
var ListCustomersBillingControls$inboundSchema = z32.pipe(
|
|
5225
5355
|
z32.object({
|
|
5226
5356
|
auto_topups: optional2(
|
|
@@ -5231,13 +5361,17 @@ var ListCustomersBillingControls$inboundSchema = z32.pipe(
|
|
|
5231
5361
|
),
|
|
5232
5362
|
usage_alerts: optional2(
|
|
5233
5363
|
z32.array(z32.lazy(() => ListCustomersUsageAlert$inboundSchema))
|
|
5364
|
+
),
|
|
5365
|
+
overage_allowed: optional2(
|
|
5366
|
+
z32.array(z32.lazy(() => ListCustomersOverageAllowed$inboundSchema))
|
|
5234
5367
|
)
|
|
5235
5368
|
}),
|
|
5236
5369
|
z32.transform((v) => {
|
|
5237
5370
|
return remap(v, {
|
|
5238
5371
|
"auto_topups": "autoTopups",
|
|
5239
5372
|
"spend_limits": "spendLimits",
|
|
5240
|
-
"usage_alerts": "usageAlerts"
|
|
5373
|
+
"usage_alerts": "usageAlerts",
|
|
5374
|
+
"overage_allowed": "overageAllowed"
|
|
5241
5375
|
});
|
|
5242
5376
|
})
|
|
5243
5377
|
);
|
|
@@ -5692,11 +5826,13 @@ var ListPlansExpiryDurationType$inboundSchema = inboundSchema(ListPlansExpiryDur
|
|
|
5692
5826
|
var ListPlansRollover$inboundSchema = z35.pipe(
|
|
5693
5827
|
z35.object({
|
|
5694
5828
|
max: nullable(number2()),
|
|
5829
|
+
max_percentage: z35.optional(z35.nullable(number2())),
|
|
5695
5830
|
expiry_duration_type: ListPlansExpiryDurationType$inboundSchema,
|
|
5696
5831
|
expiry_duration_length: optional2(number2())
|
|
5697
5832
|
}),
|
|
5698
5833
|
z35.transform((v) => {
|
|
5699
5834
|
return remap(v, {
|
|
5835
|
+
"max_percentage": "maxPercentage",
|
|
5700
5836
|
"expiry_duration_type": "expiryDurationType",
|
|
5701
5837
|
"expiry_duration_length": "expiryDurationLength"
|
|
5702
5838
|
});
|
|
@@ -5940,11 +6076,13 @@ var MultiAttachExpiryDurationType$outboundSchema = z36.enum(MultiAttachExpiryDur
|
|
|
5940
6076
|
var MultiAttachRollover$outboundSchema = z36.pipe(
|
|
5941
6077
|
z36.object({
|
|
5942
6078
|
max: z36.optional(z36.number()),
|
|
6079
|
+
maxPercentage: z36.optional(z36.number()),
|
|
5943
6080
|
expiryDurationType: MultiAttachExpiryDurationType$outboundSchema,
|
|
5944
6081
|
expiryDurationLength: z36.optional(z36.number())
|
|
5945
6082
|
}),
|
|
5946
6083
|
z36.transform((v) => {
|
|
5947
6084
|
return remap(v, {
|
|
6085
|
+
maxPercentage: "max_percentage",
|
|
5948
6086
|
expiryDurationType: "expiry_duration_type",
|
|
5949
6087
|
expiryDurationLength: "expiry_duration_length"
|
|
5950
6088
|
});
|
|
@@ -6071,6 +6209,17 @@ var MultiAttachUsageAlert$outboundSchema = z36.pipe(
|
|
|
6071
6209
|
});
|
|
6072
6210
|
})
|
|
6073
6211
|
);
|
|
6212
|
+
var MultiAttachOverageAllowed$outboundSchema = z36.pipe(
|
|
6213
|
+
z36.object({
|
|
6214
|
+
featureId: z36.string(),
|
|
6215
|
+
enabled: z36._default(z36.boolean(), false)
|
|
6216
|
+
}),
|
|
6217
|
+
z36.transform((v) => {
|
|
6218
|
+
return remap(v, {
|
|
6219
|
+
featureId: "feature_id"
|
|
6220
|
+
});
|
|
6221
|
+
})
|
|
6222
|
+
);
|
|
6074
6223
|
var MultiAttachBillingControls$outboundSchema = z36.pipe(
|
|
6075
6224
|
z36.object({
|
|
6076
6225
|
spendLimits: z36.optional(
|
|
@@ -6078,12 +6227,16 @@ var MultiAttachBillingControls$outboundSchema = z36.pipe(
|
|
|
6078
6227
|
),
|
|
6079
6228
|
usageAlerts: z36.optional(
|
|
6080
6229
|
z36.array(z36.lazy(() => MultiAttachUsageAlert$outboundSchema))
|
|
6230
|
+
),
|
|
6231
|
+
overageAllowed: z36.optional(
|
|
6232
|
+
z36.array(z36.lazy(() => MultiAttachOverageAllowed$outboundSchema))
|
|
6081
6233
|
)
|
|
6082
6234
|
}),
|
|
6083
6235
|
z36.transform((v) => {
|
|
6084
6236
|
return remap(v, {
|
|
6085
6237
|
spendLimits: "spend_limits",
|
|
6086
|
-
usageAlerts: "usage_alerts"
|
|
6238
|
+
usageAlerts: "usage_alerts",
|
|
6239
|
+
overageAllowed: "overage_allowed"
|
|
6087
6240
|
});
|
|
6088
6241
|
})
|
|
6089
6242
|
);
|
|
@@ -6377,11 +6530,13 @@ var PreviewAttachExpiryDurationType$outboundSchema = z38.enum(PreviewAttachExpir
|
|
|
6377
6530
|
var PreviewAttachRollover$outboundSchema = z38.pipe(
|
|
6378
6531
|
z38.object({
|
|
6379
6532
|
max: z38.optional(z38.number()),
|
|
6533
|
+
maxPercentage: z38.optional(z38.number()),
|
|
6380
6534
|
expiryDurationType: PreviewAttachExpiryDurationType$outboundSchema,
|
|
6381
6535
|
expiryDurationLength: z38.optional(z38.number())
|
|
6382
6536
|
}),
|
|
6383
6537
|
z38.transform((v) => {
|
|
6384
6538
|
return remap(v, {
|
|
6539
|
+
maxPercentage: "max_percentage",
|
|
6385
6540
|
expiryDurationType: "expiry_duration_type",
|
|
6386
6541
|
expiryDurationLength: "expiry_duration_length"
|
|
6387
6542
|
});
|
|
@@ -6925,11 +7080,13 @@ var PreviewMultiAttachExpiryDurationType$outboundSchema = z39.enum(PreviewMultiA
|
|
|
6925
7080
|
var PreviewMultiAttachRollover$outboundSchema = z39.pipe(
|
|
6926
7081
|
z39.object({
|
|
6927
7082
|
max: z39.optional(z39.number()),
|
|
7083
|
+
maxPercentage: z39.optional(z39.number()),
|
|
6928
7084
|
expiryDurationType: PreviewMultiAttachExpiryDurationType$outboundSchema,
|
|
6929
7085
|
expiryDurationLength: z39.optional(z39.number())
|
|
6930
7086
|
}),
|
|
6931
7087
|
z39.transform((v) => {
|
|
6932
7088
|
return remap(v, {
|
|
7089
|
+
maxPercentage: "max_percentage",
|
|
6933
7090
|
expiryDurationType: "expiry_duration_type",
|
|
6934
7091
|
expiryDurationLength: "expiry_duration_length"
|
|
6935
7092
|
});
|
|
@@ -7069,6 +7226,17 @@ var PreviewMultiAttachUsageAlert$outboundSchema = z39.pipe(
|
|
|
7069
7226
|
});
|
|
7070
7227
|
})
|
|
7071
7228
|
);
|
|
7229
|
+
var PreviewMultiAttachOverageAllowed$outboundSchema = z39.pipe(
|
|
7230
|
+
z39.object({
|
|
7231
|
+
featureId: z39.string(),
|
|
7232
|
+
enabled: z39._default(z39.boolean(), false)
|
|
7233
|
+
}),
|
|
7234
|
+
z39.transform((v) => {
|
|
7235
|
+
return remap(v, {
|
|
7236
|
+
featureId: "feature_id"
|
|
7237
|
+
});
|
|
7238
|
+
})
|
|
7239
|
+
);
|
|
7072
7240
|
var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
|
|
7073
7241
|
z39.object({
|
|
7074
7242
|
spendLimits: z39.optional(
|
|
@@ -7076,12 +7244,16 @@ var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
|
|
|
7076
7244
|
),
|
|
7077
7245
|
usageAlerts: z39.optional(
|
|
7078
7246
|
z39.array(z39.lazy(() => PreviewMultiAttachUsageAlert$outboundSchema))
|
|
7247
|
+
),
|
|
7248
|
+
overageAllowed: z39.optional(
|
|
7249
|
+
z39.array(z39.lazy(() => PreviewMultiAttachOverageAllowed$outboundSchema))
|
|
7079
7250
|
)
|
|
7080
7251
|
}),
|
|
7081
7252
|
z39.transform((v) => {
|
|
7082
7253
|
return remap(v, {
|
|
7083
7254
|
spendLimits: "spend_limits",
|
|
7084
|
-
usageAlerts: "usage_alerts"
|
|
7255
|
+
usageAlerts: "usage_alerts",
|
|
7256
|
+
overageAllowed: "overage_allowed"
|
|
7085
7257
|
});
|
|
7086
7258
|
})
|
|
7087
7259
|
);
|
|
@@ -7537,11 +7709,13 @@ var PreviewUpdateExpiryDurationType$outboundSchema = z40.enum(PreviewUpdateExpir
|
|
|
7537
7709
|
var PreviewUpdateRollover$outboundSchema = z40.pipe(
|
|
7538
7710
|
z40.object({
|
|
7539
7711
|
max: z40.optional(z40.number()),
|
|
7712
|
+
maxPercentage: z40.optional(z40.number()),
|
|
7540
7713
|
expiryDurationType: PreviewUpdateExpiryDurationType$outboundSchema,
|
|
7541
7714
|
expiryDurationLength: z40.optional(z40.number())
|
|
7542
7715
|
}),
|
|
7543
7716
|
z40.transform((v) => {
|
|
7544
7717
|
return remap(v, {
|
|
7718
|
+
maxPercentage: "max_percentage",
|
|
7545
7719
|
expiryDurationType: "expiry_duration_type",
|
|
7546
7720
|
expiryDurationLength: "expiry_duration_length"
|
|
7547
7721
|
});
|
|
@@ -8057,11 +8231,13 @@ var SetupPaymentExpiryDurationType$outboundSchema = z42.enum(SetupPaymentExpiryD
|
|
|
8057
8231
|
var SetupPaymentRollover$outboundSchema = z42.pipe(
|
|
8058
8232
|
z42.object({
|
|
8059
8233
|
max: z42.optional(z42.number()),
|
|
8234
|
+
maxPercentage: z42.optional(z42.number()),
|
|
8060
8235
|
expiryDurationType: SetupPaymentExpiryDurationType$outboundSchema,
|
|
8061
8236
|
expiryDurationLength: z42.optional(z42.number())
|
|
8062
8237
|
}),
|
|
8063
8238
|
z42.transform((v) => {
|
|
8064
8239
|
return remap(v, {
|
|
8240
|
+
maxPercentage: "max_percentage",
|
|
8065
8241
|
expiryDurationType: "expiry_duration_type",
|
|
8066
8242
|
expiryDurationLength: "expiry_duration_length"
|
|
8067
8243
|
});
|
|
@@ -8406,6 +8582,17 @@ var UpdateCustomerUsageAlertRequestBody$outboundSchema = z45.pipe(
|
|
|
8406
8582
|
});
|
|
8407
8583
|
})
|
|
8408
8584
|
);
|
|
8585
|
+
var UpdateCustomerOverageAllowedRequest$outboundSchema = z45.pipe(
|
|
8586
|
+
z45.object({
|
|
8587
|
+
featureId: z45.string(),
|
|
8588
|
+
enabled: z45._default(z45.boolean(), false)
|
|
8589
|
+
}),
|
|
8590
|
+
z45.transform((v) => {
|
|
8591
|
+
return remap(v, {
|
|
8592
|
+
featureId: "feature_id"
|
|
8593
|
+
});
|
|
8594
|
+
})
|
|
8595
|
+
);
|
|
8409
8596
|
var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
|
|
8410
8597
|
z45.object({
|
|
8411
8598
|
autoTopups: z45.optional(
|
|
@@ -8416,13 +8603,17 @@ var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
|
|
|
8416
8603
|
),
|
|
8417
8604
|
usageAlerts: z45.optional(
|
|
8418
8605
|
z45.array(z45.lazy(() => UpdateCustomerUsageAlertRequestBody$outboundSchema))
|
|
8606
|
+
),
|
|
8607
|
+
overageAllowed: z45.optional(
|
|
8608
|
+
z45.array(z45.lazy(() => UpdateCustomerOverageAllowedRequest$outboundSchema))
|
|
8419
8609
|
)
|
|
8420
8610
|
}),
|
|
8421
8611
|
z45.transform((v) => {
|
|
8422
8612
|
return remap(v, {
|
|
8423
8613
|
autoTopups: "auto_topups",
|
|
8424
8614
|
spendLimits: "spend_limits",
|
|
8425
|
-
usageAlerts: "usage_alerts"
|
|
8615
|
+
usageAlerts: "usage_alerts",
|
|
8616
|
+
overageAllowed: "overage_allowed"
|
|
8426
8617
|
});
|
|
8427
8618
|
})
|
|
8428
8619
|
);
|
|
@@ -8510,6 +8701,17 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z45.pipe(
|
|
|
8510
8701
|
});
|
|
8511
8702
|
})
|
|
8512
8703
|
);
|
|
8704
|
+
var UpdateCustomerOverageAllowedResponse$inboundSchema = z45.pipe(
|
|
8705
|
+
z45.object({
|
|
8706
|
+
feature_id: string4(),
|
|
8707
|
+
enabled: z45._default(boolean2(), false)
|
|
8708
|
+
}),
|
|
8709
|
+
z45.transform((v) => {
|
|
8710
|
+
return remap(v, {
|
|
8711
|
+
"feature_id": "featureId"
|
|
8712
|
+
});
|
|
8713
|
+
})
|
|
8714
|
+
);
|
|
8513
8715
|
var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
|
|
8514
8716
|
z45.object({
|
|
8515
8717
|
auto_topups: optional2(
|
|
@@ -8520,13 +8722,17 @@ var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
|
|
|
8520
8722
|
),
|
|
8521
8723
|
usage_alerts: optional2(
|
|
8522
8724
|
z45.array(z45.lazy(() => UpdateCustomerUsageAlertResponse$inboundSchema))
|
|
8725
|
+
),
|
|
8726
|
+
overage_allowed: optional2(
|
|
8727
|
+
z45.array(z45.lazy(() => UpdateCustomerOverageAllowedResponse$inboundSchema))
|
|
8523
8728
|
)
|
|
8524
8729
|
}),
|
|
8525
8730
|
z45.transform((v) => {
|
|
8526
8731
|
return remap(v, {
|
|
8527
8732
|
"auto_topups": "autoTopups",
|
|
8528
8733
|
"spend_limits": "spendLimits",
|
|
8529
|
-
"usage_alerts": "usageAlerts"
|
|
8734
|
+
"usage_alerts": "usageAlerts",
|
|
8735
|
+
"overage_allowed": "overageAllowed"
|
|
8530
8736
|
});
|
|
8531
8737
|
})
|
|
8532
8738
|
);
|
|
@@ -8718,6 +8924,17 @@ var UpdateEntityUsageAlertRequestBody$outboundSchema = z46.pipe(
|
|
|
8718
8924
|
});
|
|
8719
8925
|
})
|
|
8720
8926
|
);
|
|
8927
|
+
var UpdateEntityOverageAllowedRequest$outboundSchema = z46.pipe(
|
|
8928
|
+
z46.object({
|
|
8929
|
+
featureId: z46.string(),
|
|
8930
|
+
enabled: z46._default(z46.boolean(), false)
|
|
8931
|
+
}),
|
|
8932
|
+
z46.transform((v) => {
|
|
8933
|
+
return remap(v, {
|
|
8934
|
+
featureId: "feature_id"
|
|
8935
|
+
});
|
|
8936
|
+
})
|
|
8937
|
+
);
|
|
8721
8938
|
var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
|
|
8722
8939
|
z46.object({
|
|
8723
8940
|
spendLimits: z46.optional(
|
|
@@ -8725,12 +8942,16 @@ var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
|
|
|
8725
8942
|
),
|
|
8726
8943
|
usageAlerts: z46.optional(
|
|
8727
8944
|
z46.array(z46.lazy(() => UpdateEntityUsageAlertRequestBody$outboundSchema))
|
|
8945
|
+
),
|
|
8946
|
+
overageAllowed: z46.optional(
|
|
8947
|
+
z46.array(z46.lazy(() => UpdateEntityOverageAllowedRequest$outboundSchema))
|
|
8728
8948
|
)
|
|
8729
8949
|
}),
|
|
8730
8950
|
z46.transform((v) => {
|
|
8731
8951
|
return remap(v, {
|
|
8732
8952
|
spendLimits: "spend_limits",
|
|
8733
|
-
usageAlerts: "usage_alerts"
|
|
8953
|
+
usageAlerts: "usage_alerts",
|
|
8954
|
+
overageAllowed: "overage_allowed"
|
|
8734
8955
|
});
|
|
8735
8956
|
})
|
|
8736
8957
|
);
|
|
@@ -8882,6 +9103,17 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z46.pipe(
|
|
|
8882
9103
|
});
|
|
8883
9104
|
})
|
|
8884
9105
|
);
|
|
9106
|
+
var UpdateEntityOverageAllowedResponse$inboundSchema = z46.pipe(
|
|
9107
|
+
z46.object({
|
|
9108
|
+
feature_id: string4(),
|
|
9109
|
+
enabled: z46._default(boolean2(), false)
|
|
9110
|
+
}),
|
|
9111
|
+
z46.transform((v) => {
|
|
9112
|
+
return remap(v, {
|
|
9113
|
+
"feature_id": "featureId"
|
|
9114
|
+
});
|
|
9115
|
+
})
|
|
9116
|
+
);
|
|
8885
9117
|
var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
|
|
8886
9118
|
z46.object({
|
|
8887
9119
|
spend_limits: optional2(
|
|
@@ -8889,12 +9121,16 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
|
|
|
8889
9121
|
),
|
|
8890
9122
|
usage_alerts: optional2(
|
|
8891
9123
|
z46.array(z46.lazy(() => UpdateEntityUsageAlertResponse$inboundSchema))
|
|
9124
|
+
),
|
|
9125
|
+
overage_allowed: optional2(
|
|
9126
|
+
z46.array(z46.lazy(() => UpdateEntityOverageAllowedResponse$inboundSchema))
|
|
8892
9127
|
)
|
|
8893
9128
|
}),
|
|
8894
9129
|
z46.transform((v) => {
|
|
8895
9130
|
return remap(v, {
|
|
8896
9131
|
"spend_limits": "spendLimits",
|
|
8897
|
-
"usage_alerts": "usageAlerts"
|
|
9132
|
+
"usage_alerts": "usageAlerts",
|
|
9133
|
+
"overage_allowed": "overageAllowed"
|
|
8898
9134
|
});
|
|
8899
9135
|
})
|
|
8900
9136
|
);
|
|
@@ -9247,11 +9483,13 @@ var UpdatePlanExpiryDurationTypeRequest$outboundSchema = z48.enum(UpdatePlanExpi
|
|
|
9247
9483
|
var UpdatePlanRolloverRequest$outboundSchema = z48.pipe(
|
|
9248
9484
|
z48.object({
|
|
9249
9485
|
max: z48.optional(z48.number()),
|
|
9486
|
+
maxPercentage: z48.optional(z48.number()),
|
|
9250
9487
|
expiryDurationType: UpdatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
9251
9488
|
expiryDurationLength: z48.optional(z48.number())
|
|
9252
9489
|
}),
|
|
9253
9490
|
z48.transform((v) => {
|
|
9254
9491
|
return remap(v, {
|
|
9492
|
+
maxPercentage: "max_percentage",
|
|
9255
9493
|
expiryDurationType: "expiry_duration_type",
|
|
9256
9494
|
expiryDurationLength: "expiry_duration_length"
|
|
9257
9495
|
});
|
|
@@ -9436,11 +9674,13 @@ var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePla
|
|
|
9436
9674
|
var UpdatePlanRolloverResponse$inboundSchema = z48.pipe(
|
|
9437
9675
|
z48.object({
|
|
9438
9676
|
max: nullable(number2()),
|
|
9677
|
+
max_percentage: z48.optional(z48.nullable(number2())),
|
|
9439
9678
|
expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
9440
9679
|
expiry_duration_length: optional2(number2())
|
|
9441
9680
|
}),
|
|
9442
9681
|
z48.transform((v) => {
|
|
9443
9682
|
return remap(v, {
|
|
9683
|
+
"max_percentage": "maxPercentage",
|
|
9444
9684
|
"expiry_duration_type": "expiryDurationType",
|
|
9445
9685
|
"expiry_duration_length": "expiryDurationLength"
|
|
9446
9686
|
});
|
|
@@ -9717,7 +9957,8 @@ async function $do2(client, request, options) {
|
|
|
9717
9957
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set([
|
|
9718
9958
|
"check",
|
|
9719
9959
|
"track",
|
|
9720
|
-
"getOrCreateCustomer"
|
|
9960
|
+
"getOrCreateCustomer",
|
|
9961
|
+
"getEntity"
|
|
9721
9962
|
]);
|
|
9722
9963
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
9723
9964
|
var FAIL_OPEN_BODIES = {
|
|
@@ -9747,6 +9988,18 @@ var FAIL_OPEN_BODIES = {
|
|
|
9747
9988
|
purchases: [],
|
|
9748
9989
|
balances: {},
|
|
9749
9990
|
flags: {}
|
|
9991
|
+
},
|
|
9992
|
+
getEntity: {
|
|
9993
|
+
id: null,
|
|
9994
|
+
name: null,
|
|
9995
|
+
customer_id: null,
|
|
9996
|
+
feature_id: null,
|
|
9997
|
+
created_at: 0,
|
|
9998
|
+
env: "live",
|
|
9999
|
+
subscriptions: [],
|
|
10000
|
+
purchases: [],
|
|
10001
|
+
balances: {},
|
|
10002
|
+
flags: {}
|
|
9750
10003
|
}
|
|
9751
10004
|
};
|
|
9752
10005
|
var FailOpenHook = class {
|