autumn-js 1.2.2 → 1.2.4
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 +361 -43
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.d.mts +1 -1
- package/dist/backend/adapters/fetch.d.ts +1 -1
- package/dist/backend/adapters/fetch.js +361 -43
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.d.mts +1 -1
- package/dist/backend/adapters/hono.d.ts +1 -1
- package/dist/backend/adapters/hono.js +361 -43
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.d.mts +1 -1
- package/dist/backend/adapters/index.d.ts +1 -1
- package/dist/backend/adapters/index.js +361 -43
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.d.mts +1 -1
- package/dist/backend/adapters/next.d.ts +1 -1
- package/dist/backend/adapters/next.js +361 -43
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{authTypes-BCoyMOAj.d.mts → authTypes-Bdpu8A6G.d.mts} +18 -0
- package/dist/backend/{authTypes-BCoyMOAj.d.ts → authTypes-Bdpu8A6G.d.ts} +18 -0
- package/dist/backend/{chunk-XU4OGYDV.mjs → chunk-3RN6TO3T.mjs} +60 -7
- package/dist/backend/{chunk-3QNAZFQH.mjs → chunk-AA2HLIP7.mjs} +2 -2
- package/dist/backend/{chunk-SX3CNUF5.mjs → chunk-AIKOHUUL.mjs} +1 -1
- package/dist/backend/{chunk-6BVI5XZX.mjs → chunk-BGGTI77T.mjs} +301 -36
- package/dist/backend/{chunk-OB47KG2H.mjs → chunk-MHFVVQCC.mjs} +1 -1
- package/dist/backend/{chunk-GLPHS5KF.mjs → chunk-OZRCCZTP.mjs} +2 -2
- package/dist/backend/{chunk-GENKYO6B.mjs → chunk-SCDE7Y52.mjs} +1 -1
- package/dist/backend/{chunk-C5ZDQJPP.mjs → chunk-UUMOHEAD.mjs} +1 -1
- 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 +361 -43
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- 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/handleRouteByName.d.mts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +361 -43
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- 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 +361 -43
- package/dist/backend/core/handlers/index.mjs +4 -4
- 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 +361 -43
- package/dist/backend/core/index.mjs +4 -4
- 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 +60 -7
- package/dist/backend/core/routes/index.mjs +1 -1
- 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 +60 -7
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- 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/index.d.mts +4 -4
- package/dist/backend/index.d.ts +4 -4
- package/dist/backend/index.js +361 -43
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-Che2nkqv.d.ts → routeTypes-DpH9YHyt.d.ts} +247 -2
- package/dist/backend/{routeTypes-RMeyKg5T.d.mts → routeTypes-mIP4rSxp.d.mts} +247 -2
- package/dist/better-auth/{chunk-5F3J4ZQQ.mjs → chunk-3C2VGNW3.mjs} +302 -37
- package/dist/better-auth/{chunk-6TAYCQUD.mjs → chunk-CG3LL2TQ.mjs} +60 -7
- package/dist/better-auth/{chunk-IODRHT4E.mjs → chunk-UCMJFTKD.mjs} +1 -1
- package/dist/better-auth/index.js +361 -43
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/types.d.mts +18 -0
- package/dist/better-auth/types.d.ts +18 -0
- package/dist/better-auth/utils/createAutumnEndpoint.js +60 -7
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +361 -43
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +361 -43
- 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/AutumnProvider.d.mts +2 -1
- package/dist/react/AutumnProvider.d.ts +2 -1
- package/dist/react/AutumnProvider.js +18 -8
- package/dist/react/AutumnProvider.mjs +3 -3
- package/dist/react/{chunk-R7I3UPL4.mjs → chunk-26CKSAPZ.mjs} +6 -4
- package/dist/react/{chunk-QEJLIFBC.mjs → chunk-QOFGTXEX.mjs} +3 -2
- package/dist/react/{chunk-M34U5F2H.mjs → chunk-SCDO26YC.mjs} +11 -4
- package/dist/react/client/AutumnClient.d.mts +4 -3
- package/dist/react/client/AutumnClient.d.ts +4 -3
- package/dist/react/client/AutumnClient.js +13 -5
- package/dist/react/client/AutumnClient.mjs +2 -2
- 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/client/index.js +13 -5
- package/dist/react/client/index.mjs +2 -2
- package/dist/react/client/internal/httpClient.d.mts +1 -0
- package/dist/react/client/internal/httpClient.d.ts +1 -0
- package/dist/react/client/internal/httpClient.js +11 -4
- package/dist/react/client/internal/httpClient.mjs +1 -1
- package/dist/react/{customer-CMAtwbJl.d.ts → customer-BPHnUS4N.d.ts} +19 -1
- package/dist/react/{customer-CNvpHhpS.d.mts → customer-DDRi84Zq.d.mts} +19 -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/index.js +18 -8
- package/dist/react/index.mjs +3 -3
- package/dist/react/{params-Cdkj83CV.d.mts → params-Bj6uyOX1.d.mts} +91 -2
- package/dist/react/{params-CnOvYjqJ.d.ts → params-DAVIR4YX.d.ts} +91 -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 +360 -4
- package/dist/sdk/index.d.ts +360 -4
- package/dist/sdk/index.js +406 -36
- package/dist/sdk/index.mjs +381 -37
- package/package.json +1 -1
|
@@ -79,8 +79,8 @@ var SDK_METADATA = {
|
|
|
79
79
|
language: "typescript",
|
|
80
80
|
openapiDocVersion: "2.2.0",
|
|
81
81
|
sdkVersion: "0.10.17",
|
|
82
|
-
genVersion: "2.
|
|
83
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.
|
|
82
|
+
genVersion: "2.879.6",
|
|
83
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
// ../sdk/src/lib/http.ts
|
|
@@ -1002,8 +1002,8 @@ function applyBearer(state, spec) {
|
|
|
1002
1002
|
state.headers[spec.fieldName] = value;
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
|
-
function resolveGlobalSecurity(security) {
|
|
1006
|
-
|
|
1005
|
+
function resolveGlobalSecurity(security, allowedFields) {
|
|
1006
|
+
let inputs = [
|
|
1007
1007
|
[
|
|
1008
1008
|
{
|
|
1009
1009
|
fieldName: "Authorization",
|
|
@@ -1011,7 +1011,16 @@ function resolveGlobalSecurity(security) {
|
|
|
1011
1011
|
value: security?.secretKey ?? env().AUTUMN_SECRET_KEY
|
|
1012
1012
|
}
|
|
1013
1013
|
]
|
|
1014
|
-
|
|
1014
|
+
];
|
|
1015
|
+
if (allowedFields) {
|
|
1016
|
+
inputs = allowedFields.map((i) => {
|
|
1017
|
+
if (i < 0 || i >= inputs.length) {
|
|
1018
|
+
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
1019
|
+
}
|
|
1020
|
+
return inputs[i];
|
|
1021
|
+
});
|
|
1022
|
+
}
|
|
1023
|
+
return resolveSecurity(...inputs);
|
|
1015
1024
|
}
|
|
1016
1025
|
async function extractSecurity(sec) {
|
|
1017
1026
|
if (sec == null) {
|
|
@@ -1558,11 +1567,13 @@ var AttachExpiryDurationType$outboundSchema = z10.enum(AttachExpiryDurationType)
|
|
|
1558
1567
|
var AttachRollover$outboundSchema = z10.pipe(
|
|
1559
1568
|
z10.object({
|
|
1560
1569
|
max: z10.optional(z10.number()),
|
|
1570
|
+
maxPercentage: z10.optional(z10.number()),
|
|
1561
1571
|
expiryDurationType: AttachExpiryDurationType$outboundSchema,
|
|
1562
1572
|
expiryDurationLength: z10.optional(z10.number())
|
|
1563
1573
|
}),
|
|
1564
1574
|
z10.transform((v) => {
|
|
1565
1575
|
return remap(v, {
|
|
1576
|
+
maxPercentage: "max_percentage",
|
|
1566
1577
|
expiryDurationType: "expiry_duration_type",
|
|
1567
1578
|
expiryDurationLength: "expiry_duration_length"
|
|
1568
1579
|
});
|
|
@@ -2087,11 +2098,13 @@ var BillingUpdateExpiryDurationType$outboundSchema = z12.enum(BillingUpdateExpir
|
|
|
2087
2098
|
var BillingUpdateRollover$outboundSchema = z12.pipe(
|
|
2088
2099
|
z12.object({
|
|
2089
2100
|
max: z12.optional(z12.number()),
|
|
2101
|
+
maxPercentage: z12.optional(z12.number()),
|
|
2090
2102
|
expiryDurationType: BillingUpdateExpiryDurationType$outboundSchema,
|
|
2091
2103
|
expiryDurationLength: z12.optional(z12.number())
|
|
2092
2104
|
}),
|
|
2093
2105
|
z12.transform((v) => {
|
|
2094
2106
|
return remap(v, {
|
|
2107
|
+
maxPercentage: "max_percentage",
|
|
2095
2108
|
expiryDurationType: "expiry_duration_type",
|
|
2096
2109
|
expiryDurationLength: "expiry_duration_length"
|
|
2097
2110
|
});
|
|
@@ -2433,11 +2446,19 @@ var ProductDisplay$inboundSchema = z13.pipe(
|
|
|
2433
2446
|
})
|
|
2434
2447
|
);
|
|
2435
2448
|
var RolloverDuration$inboundSchema = inboundSchema(RolloverDuration);
|
|
2436
|
-
var CheckRollover$inboundSchema = z13.
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2449
|
+
var CheckRollover$inboundSchema = z13.pipe(
|
|
2450
|
+
z13.object({
|
|
2451
|
+
max: z13.optional(z13.nullable(number2())),
|
|
2452
|
+
max_percentage: z13.optional(z13.nullable(number2())),
|
|
2453
|
+
duration: z13._default(RolloverDuration$inboundSchema, "month"),
|
|
2454
|
+
length: number2()
|
|
2455
|
+
}),
|
|
2456
|
+
z13.transform((v) => {
|
|
2457
|
+
return remap(v, {
|
|
2458
|
+
"max_percentage": "maxPercentage"
|
|
2459
|
+
});
|
|
2460
|
+
})
|
|
2461
|
+
);
|
|
2441
2462
|
var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
|
|
2442
2463
|
var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
|
|
2443
2464
|
var Config$inboundSchema = z13.pipe(
|
|
@@ -2676,12 +2697,14 @@ var CustomerDataAutoTopup$outboundSchema = z15.pipe(
|
|
|
2676
2697
|
quantity: z15.number(),
|
|
2677
2698
|
purchaseLimit: z15.optional(
|
|
2678
2699
|
z15.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
|
|
2679
|
-
)
|
|
2700
|
+
),
|
|
2701
|
+
invoiceMode: z15.optional(z15.boolean())
|
|
2680
2702
|
}),
|
|
2681
2703
|
z15.transform((v) => {
|
|
2682
2704
|
return remap(v, {
|
|
2683
2705
|
featureId: "feature_id",
|
|
2684
|
-
purchaseLimit: "purchase_limit"
|
|
2706
|
+
purchaseLimit: "purchase_limit",
|
|
2707
|
+
invoiceMode: "invoice_mode"
|
|
2685
2708
|
});
|
|
2686
2709
|
})
|
|
2687
2710
|
);
|
|
@@ -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
|
});
|
|
@@ -3984,12 +4058,14 @@ var CustomerAutoTopup$inboundSchema = z21.pipe(
|
|
|
3984
4058
|
quantity: number2(),
|
|
3985
4059
|
purchase_limit: optional2(
|
|
3986
4060
|
z21.lazy(() => CustomerPurchaseLimit$inboundSchema)
|
|
3987
|
-
)
|
|
4061
|
+
),
|
|
4062
|
+
invoice_mode: optional2(boolean2())
|
|
3988
4063
|
}),
|
|
3989
4064
|
z21.transform((v) => {
|
|
3990
4065
|
return remap(v, {
|
|
3991
4066
|
"feature_id": "featureId",
|
|
3992
|
-
"purchase_limit": "purchaseLimit"
|
|
4067
|
+
"purchase_limit": "purchaseLimit",
|
|
4068
|
+
"invoice_mode": "invoiceMode"
|
|
3993
4069
|
});
|
|
3994
4070
|
})
|
|
3995
4071
|
);
|
|
@@ -4022,6 +4098,17 @@ var CustomerUsageAlert$inboundSchema = z21.pipe(
|
|
|
4022
4098
|
});
|
|
4023
4099
|
})
|
|
4024
4100
|
);
|
|
4101
|
+
var CustomerOverageAllowed$inboundSchema = z21.pipe(
|
|
4102
|
+
z21.object({
|
|
4103
|
+
feature_id: string4(),
|
|
4104
|
+
enabled: z21._default(boolean2(), false)
|
|
4105
|
+
}),
|
|
4106
|
+
z21.transform((v) => {
|
|
4107
|
+
return remap(v, {
|
|
4108
|
+
"feature_id": "featureId"
|
|
4109
|
+
});
|
|
4110
|
+
})
|
|
4111
|
+
);
|
|
4025
4112
|
var CustomerBillingControls$inboundSchema = z21.pipe(
|
|
4026
4113
|
z21.object({
|
|
4027
4114
|
auto_topups: optional2(
|
|
@@ -4032,13 +4119,17 @@ var CustomerBillingControls$inboundSchema = z21.pipe(
|
|
|
4032
4119
|
),
|
|
4033
4120
|
usage_alerts: optional2(
|
|
4034
4121
|
z21.array(z21.lazy(() => CustomerUsageAlert$inboundSchema))
|
|
4122
|
+
),
|
|
4123
|
+
overage_allowed: optional2(
|
|
4124
|
+
z21.array(z21.lazy(() => CustomerOverageAllowed$inboundSchema))
|
|
4035
4125
|
)
|
|
4036
4126
|
}),
|
|
4037
4127
|
z21.transform((v) => {
|
|
4038
4128
|
return remap(v, {
|
|
4039
4129
|
"auto_topups": "autoTopups",
|
|
4040
4130
|
"spend_limits": "spendLimits",
|
|
4041
|
-
"usage_alerts": "usageAlerts"
|
|
4131
|
+
"usage_alerts": "usageAlerts",
|
|
4132
|
+
"overage_allowed": "overageAllowed"
|
|
4042
4133
|
});
|
|
4043
4134
|
})
|
|
4044
4135
|
);
|
|
@@ -4577,6 +4668,17 @@ var GetEntityUsageAlert$inboundSchema = z28.pipe(
|
|
|
4577
4668
|
});
|
|
4578
4669
|
})
|
|
4579
4670
|
);
|
|
4671
|
+
var GetEntityOverageAllowed$inboundSchema = z28.pipe(
|
|
4672
|
+
z28.object({
|
|
4673
|
+
feature_id: string4(),
|
|
4674
|
+
enabled: z28._default(boolean2(), false)
|
|
4675
|
+
}),
|
|
4676
|
+
z28.transform((v) => {
|
|
4677
|
+
return remap(v, {
|
|
4678
|
+
"feature_id": "featureId"
|
|
4679
|
+
});
|
|
4680
|
+
})
|
|
4681
|
+
);
|
|
4580
4682
|
var GetEntityBillingControls$inboundSchema = z28.pipe(
|
|
4581
4683
|
z28.object({
|
|
4582
4684
|
spend_limits: optional2(
|
|
@@ -4584,12 +4686,16 @@ var GetEntityBillingControls$inboundSchema = z28.pipe(
|
|
|
4584
4686
|
),
|
|
4585
4687
|
usage_alerts: optional2(
|
|
4586
4688
|
z28.array(z28.lazy(() => GetEntityUsageAlert$inboundSchema))
|
|
4689
|
+
),
|
|
4690
|
+
overage_allowed: optional2(
|
|
4691
|
+
z28.array(z28.lazy(() => GetEntityOverageAllowed$inboundSchema))
|
|
4587
4692
|
)
|
|
4588
4693
|
}),
|
|
4589
4694
|
z28.transform((v) => {
|
|
4590
4695
|
return remap(v, {
|
|
4591
4696
|
"spend_limits": "spendLimits",
|
|
4592
|
-
"usage_alerts": "usageAlerts"
|
|
4697
|
+
"usage_alerts": "usageAlerts",
|
|
4698
|
+
"overage_allowed": "overageAllowed"
|
|
4593
4699
|
});
|
|
4594
4700
|
})
|
|
4595
4701
|
);
|
|
@@ -4729,12 +4835,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z30.pipe(
|
|
|
4729
4835
|
quantity: z30.number(),
|
|
4730
4836
|
purchaseLimit: z30.optional(
|
|
4731
4837
|
z30.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
|
|
4732
|
-
)
|
|
4838
|
+
),
|
|
4839
|
+
invoiceMode: z30.optional(z30.boolean())
|
|
4733
4840
|
}),
|
|
4734
4841
|
z30.transform((v) => {
|
|
4735
4842
|
return remap(v, {
|
|
4736
4843
|
featureId: "feature_id",
|
|
4737
|
-
purchaseLimit: "purchase_limit"
|
|
4844
|
+
purchaseLimit: "purchase_limit",
|
|
4845
|
+
invoiceMode: "invoice_mode"
|
|
4738
4846
|
});
|
|
4739
4847
|
})
|
|
4740
4848
|
);
|
|
@@ -4767,6 +4875,17 @@ var GetOrCreateCustomerUsageAlert$outboundSchema = z30.pipe(
|
|
|
4767
4875
|
});
|
|
4768
4876
|
})
|
|
4769
4877
|
);
|
|
4878
|
+
var GetOrCreateCustomerOverageAllowed$outboundSchema = z30.pipe(
|
|
4879
|
+
z30.object({
|
|
4880
|
+
featureId: z30.string(),
|
|
4881
|
+
enabled: z30._default(z30.boolean(), false)
|
|
4882
|
+
}),
|
|
4883
|
+
z30.transform((v) => {
|
|
4884
|
+
return remap(v, {
|
|
4885
|
+
featureId: "feature_id"
|
|
4886
|
+
});
|
|
4887
|
+
})
|
|
4888
|
+
);
|
|
4770
4889
|
var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
|
|
4771
4890
|
z30.object({
|
|
4772
4891
|
autoTopups: z30.optional(
|
|
@@ -4777,13 +4896,17 @@ var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
|
|
|
4777
4896
|
),
|
|
4778
4897
|
usageAlerts: z30.optional(
|
|
4779
4898
|
z30.array(z30.lazy(() => GetOrCreateCustomerUsageAlert$outboundSchema))
|
|
4899
|
+
),
|
|
4900
|
+
overageAllowed: z30.optional(
|
|
4901
|
+
z30.array(z30.lazy(() => GetOrCreateCustomerOverageAllowed$outboundSchema))
|
|
4780
4902
|
)
|
|
4781
4903
|
}),
|
|
4782
4904
|
z30.transform((v) => {
|
|
4783
4905
|
return remap(v, {
|
|
4784
4906
|
autoTopups: "auto_topups",
|
|
4785
4907
|
spendLimits: "spend_limits",
|
|
4786
|
-
usageAlerts: "usage_alerts"
|
|
4908
|
+
usageAlerts: "usage_alerts",
|
|
4909
|
+
overageAllowed: "overage_allowed"
|
|
4787
4910
|
});
|
|
4788
4911
|
})
|
|
4789
4912
|
);
|
|
@@ -5008,11 +5131,13 @@ var GetPlanExpiryDurationType$inboundSchema = inboundSchema(GetPlanExpiryDuratio
|
|
|
5008
5131
|
var GetPlanRollover$inboundSchema = z31.pipe(
|
|
5009
5132
|
z31.object({
|
|
5010
5133
|
max: nullable(number2()),
|
|
5134
|
+
max_percentage: z31.optional(z31.nullable(number2())),
|
|
5011
5135
|
expiry_duration_type: GetPlanExpiryDurationType$inboundSchema,
|
|
5012
5136
|
expiry_duration_length: optional2(number2())
|
|
5013
5137
|
}),
|
|
5014
5138
|
z31.transform((v) => {
|
|
5015
5139
|
return remap(v, {
|
|
5140
|
+
"max_percentage": "maxPercentage",
|
|
5016
5141
|
"expiry_duration_type": "expiryDurationType",
|
|
5017
5142
|
"expiry_duration_length": "expiryDurationLength"
|
|
5018
5143
|
});
|
|
@@ -5202,12 +5327,14 @@ var ListCustomersAutoTopup$inboundSchema = z32.pipe(
|
|
|
5202
5327
|
quantity: number2(),
|
|
5203
5328
|
purchase_limit: optional2(
|
|
5204
5329
|
z32.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
|
|
5205
|
-
)
|
|
5330
|
+
),
|
|
5331
|
+
invoice_mode: optional2(boolean2())
|
|
5206
5332
|
}),
|
|
5207
5333
|
z32.transform((v) => {
|
|
5208
5334
|
return remap(v, {
|
|
5209
5335
|
"feature_id": "featureId",
|
|
5210
|
-
"purchase_limit": "purchaseLimit"
|
|
5336
|
+
"purchase_limit": "purchaseLimit",
|
|
5337
|
+
"invoice_mode": "invoiceMode"
|
|
5211
5338
|
});
|
|
5212
5339
|
})
|
|
5213
5340
|
);
|
|
@@ -5240,6 +5367,17 @@ var ListCustomersUsageAlert$inboundSchema = z32.pipe(
|
|
|
5240
5367
|
});
|
|
5241
5368
|
})
|
|
5242
5369
|
);
|
|
5370
|
+
var ListCustomersOverageAllowed$inboundSchema = z32.pipe(
|
|
5371
|
+
z32.object({
|
|
5372
|
+
feature_id: string4(),
|
|
5373
|
+
enabled: z32._default(boolean2(), false)
|
|
5374
|
+
}),
|
|
5375
|
+
z32.transform((v) => {
|
|
5376
|
+
return remap(v, {
|
|
5377
|
+
"feature_id": "featureId"
|
|
5378
|
+
});
|
|
5379
|
+
})
|
|
5380
|
+
);
|
|
5243
5381
|
var ListCustomersBillingControls$inboundSchema = z32.pipe(
|
|
5244
5382
|
z32.object({
|
|
5245
5383
|
auto_topups: optional2(
|
|
@@ -5250,13 +5388,17 @@ var ListCustomersBillingControls$inboundSchema = z32.pipe(
|
|
|
5250
5388
|
),
|
|
5251
5389
|
usage_alerts: optional2(
|
|
5252
5390
|
z32.array(z32.lazy(() => ListCustomersUsageAlert$inboundSchema))
|
|
5391
|
+
),
|
|
5392
|
+
overage_allowed: optional2(
|
|
5393
|
+
z32.array(z32.lazy(() => ListCustomersOverageAllowed$inboundSchema))
|
|
5253
5394
|
)
|
|
5254
5395
|
}),
|
|
5255
5396
|
z32.transform((v) => {
|
|
5256
5397
|
return remap(v, {
|
|
5257
5398
|
"auto_topups": "autoTopups",
|
|
5258
5399
|
"spend_limits": "spendLimits",
|
|
5259
|
-
"usage_alerts": "usageAlerts"
|
|
5400
|
+
"usage_alerts": "usageAlerts",
|
|
5401
|
+
"overage_allowed": "overageAllowed"
|
|
5260
5402
|
});
|
|
5261
5403
|
})
|
|
5262
5404
|
);
|
|
@@ -5711,11 +5853,13 @@ var ListPlansExpiryDurationType$inboundSchema = inboundSchema(ListPlansExpiryDur
|
|
|
5711
5853
|
var ListPlansRollover$inboundSchema = z35.pipe(
|
|
5712
5854
|
z35.object({
|
|
5713
5855
|
max: nullable(number2()),
|
|
5856
|
+
max_percentage: z35.optional(z35.nullable(number2())),
|
|
5714
5857
|
expiry_duration_type: ListPlansExpiryDurationType$inboundSchema,
|
|
5715
5858
|
expiry_duration_length: optional2(number2())
|
|
5716
5859
|
}),
|
|
5717
5860
|
z35.transform((v) => {
|
|
5718
5861
|
return remap(v, {
|
|
5862
|
+
"max_percentage": "maxPercentage",
|
|
5719
5863
|
"expiry_duration_type": "expiryDurationType",
|
|
5720
5864
|
"expiry_duration_length": "expiryDurationLength"
|
|
5721
5865
|
});
|
|
@@ -5959,11 +6103,13 @@ var MultiAttachExpiryDurationType$outboundSchema = z36.enum(MultiAttachExpiryDur
|
|
|
5959
6103
|
var MultiAttachRollover$outboundSchema = z36.pipe(
|
|
5960
6104
|
z36.object({
|
|
5961
6105
|
max: z36.optional(z36.number()),
|
|
6106
|
+
maxPercentage: z36.optional(z36.number()),
|
|
5962
6107
|
expiryDurationType: MultiAttachExpiryDurationType$outboundSchema,
|
|
5963
6108
|
expiryDurationLength: z36.optional(z36.number())
|
|
5964
6109
|
}),
|
|
5965
6110
|
z36.transform((v) => {
|
|
5966
6111
|
return remap(v, {
|
|
6112
|
+
maxPercentage: "max_percentage",
|
|
5967
6113
|
expiryDurationType: "expiry_duration_type",
|
|
5968
6114
|
expiryDurationLength: "expiry_duration_length"
|
|
5969
6115
|
});
|
|
@@ -6090,6 +6236,17 @@ var MultiAttachUsageAlert$outboundSchema = z36.pipe(
|
|
|
6090
6236
|
});
|
|
6091
6237
|
})
|
|
6092
6238
|
);
|
|
6239
|
+
var MultiAttachOverageAllowed$outboundSchema = z36.pipe(
|
|
6240
|
+
z36.object({
|
|
6241
|
+
featureId: z36.string(),
|
|
6242
|
+
enabled: z36._default(z36.boolean(), false)
|
|
6243
|
+
}),
|
|
6244
|
+
z36.transform((v) => {
|
|
6245
|
+
return remap(v, {
|
|
6246
|
+
featureId: "feature_id"
|
|
6247
|
+
});
|
|
6248
|
+
})
|
|
6249
|
+
);
|
|
6093
6250
|
var MultiAttachBillingControls$outboundSchema = z36.pipe(
|
|
6094
6251
|
z36.object({
|
|
6095
6252
|
spendLimits: z36.optional(
|
|
@@ -6097,12 +6254,16 @@ var MultiAttachBillingControls$outboundSchema = z36.pipe(
|
|
|
6097
6254
|
),
|
|
6098
6255
|
usageAlerts: z36.optional(
|
|
6099
6256
|
z36.array(z36.lazy(() => MultiAttachUsageAlert$outboundSchema))
|
|
6257
|
+
),
|
|
6258
|
+
overageAllowed: z36.optional(
|
|
6259
|
+
z36.array(z36.lazy(() => MultiAttachOverageAllowed$outboundSchema))
|
|
6100
6260
|
)
|
|
6101
6261
|
}),
|
|
6102
6262
|
z36.transform((v) => {
|
|
6103
6263
|
return remap(v, {
|
|
6104
6264
|
spendLimits: "spend_limits",
|
|
6105
|
-
usageAlerts: "usage_alerts"
|
|
6265
|
+
usageAlerts: "usage_alerts",
|
|
6266
|
+
overageAllowed: "overage_allowed"
|
|
6106
6267
|
});
|
|
6107
6268
|
})
|
|
6108
6269
|
);
|
|
@@ -6396,11 +6557,13 @@ var PreviewAttachExpiryDurationType$outboundSchema = z38.enum(PreviewAttachExpir
|
|
|
6396
6557
|
var PreviewAttachRollover$outboundSchema = z38.pipe(
|
|
6397
6558
|
z38.object({
|
|
6398
6559
|
max: z38.optional(z38.number()),
|
|
6560
|
+
maxPercentage: z38.optional(z38.number()),
|
|
6399
6561
|
expiryDurationType: PreviewAttachExpiryDurationType$outboundSchema,
|
|
6400
6562
|
expiryDurationLength: z38.optional(z38.number())
|
|
6401
6563
|
}),
|
|
6402
6564
|
z38.transform((v) => {
|
|
6403
6565
|
return remap(v, {
|
|
6566
|
+
maxPercentage: "max_percentage",
|
|
6404
6567
|
expiryDurationType: "expiry_duration_type",
|
|
6405
6568
|
expiryDurationLength: "expiry_duration_length"
|
|
6406
6569
|
});
|
|
@@ -6944,11 +7107,13 @@ var PreviewMultiAttachExpiryDurationType$outboundSchema = z39.enum(PreviewMultiA
|
|
|
6944
7107
|
var PreviewMultiAttachRollover$outboundSchema = z39.pipe(
|
|
6945
7108
|
z39.object({
|
|
6946
7109
|
max: z39.optional(z39.number()),
|
|
7110
|
+
maxPercentage: z39.optional(z39.number()),
|
|
6947
7111
|
expiryDurationType: PreviewMultiAttachExpiryDurationType$outboundSchema,
|
|
6948
7112
|
expiryDurationLength: z39.optional(z39.number())
|
|
6949
7113
|
}),
|
|
6950
7114
|
z39.transform((v) => {
|
|
6951
7115
|
return remap(v, {
|
|
7116
|
+
maxPercentage: "max_percentage",
|
|
6952
7117
|
expiryDurationType: "expiry_duration_type",
|
|
6953
7118
|
expiryDurationLength: "expiry_duration_length"
|
|
6954
7119
|
});
|
|
@@ -7088,6 +7253,17 @@ var PreviewMultiAttachUsageAlert$outboundSchema = z39.pipe(
|
|
|
7088
7253
|
});
|
|
7089
7254
|
})
|
|
7090
7255
|
);
|
|
7256
|
+
var PreviewMultiAttachOverageAllowed$outboundSchema = z39.pipe(
|
|
7257
|
+
z39.object({
|
|
7258
|
+
featureId: z39.string(),
|
|
7259
|
+
enabled: z39._default(z39.boolean(), false)
|
|
7260
|
+
}),
|
|
7261
|
+
z39.transform((v) => {
|
|
7262
|
+
return remap(v, {
|
|
7263
|
+
featureId: "feature_id"
|
|
7264
|
+
});
|
|
7265
|
+
})
|
|
7266
|
+
);
|
|
7091
7267
|
var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
|
|
7092
7268
|
z39.object({
|
|
7093
7269
|
spendLimits: z39.optional(
|
|
@@ -7095,12 +7271,16 @@ var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
|
|
|
7095
7271
|
),
|
|
7096
7272
|
usageAlerts: z39.optional(
|
|
7097
7273
|
z39.array(z39.lazy(() => PreviewMultiAttachUsageAlert$outboundSchema))
|
|
7274
|
+
),
|
|
7275
|
+
overageAllowed: z39.optional(
|
|
7276
|
+
z39.array(z39.lazy(() => PreviewMultiAttachOverageAllowed$outboundSchema))
|
|
7098
7277
|
)
|
|
7099
7278
|
}),
|
|
7100
7279
|
z39.transform((v) => {
|
|
7101
7280
|
return remap(v, {
|
|
7102
7281
|
spendLimits: "spend_limits",
|
|
7103
|
-
usageAlerts: "usage_alerts"
|
|
7282
|
+
usageAlerts: "usage_alerts",
|
|
7283
|
+
overageAllowed: "overage_allowed"
|
|
7104
7284
|
});
|
|
7105
7285
|
})
|
|
7106
7286
|
);
|
|
@@ -7556,11 +7736,13 @@ var PreviewUpdateExpiryDurationType$outboundSchema = z40.enum(PreviewUpdateExpir
|
|
|
7556
7736
|
var PreviewUpdateRollover$outboundSchema = z40.pipe(
|
|
7557
7737
|
z40.object({
|
|
7558
7738
|
max: z40.optional(z40.number()),
|
|
7739
|
+
maxPercentage: z40.optional(z40.number()),
|
|
7559
7740
|
expiryDurationType: PreviewUpdateExpiryDurationType$outboundSchema,
|
|
7560
7741
|
expiryDurationLength: z40.optional(z40.number())
|
|
7561
7742
|
}),
|
|
7562
7743
|
z40.transform((v) => {
|
|
7563
7744
|
return remap(v, {
|
|
7745
|
+
maxPercentage: "max_percentage",
|
|
7564
7746
|
expiryDurationType: "expiry_duration_type",
|
|
7565
7747
|
expiryDurationLength: "expiry_duration_length"
|
|
7566
7748
|
});
|
|
@@ -8076,11 +8258,13 @@ var SetupPaymentExpiryDurationType$outboundSchema = z42.enum(SetupPaymentExpiryD
|
|
|
8076
8258
|
var SetupPaymentRollover$outboundSchema = z42.pipe(
|
|
8077
8259
|
z42.object({
|
|
8078
8260
|
max: z42.optional(z42.number()),
|
|
8261
|
+
maxPercentage: z42.optional(z42.number()),
|
|
8079
8262
|
expiryDurationType: SetupPaymentExpiryDurationType$outboundSchema,
|
|
8080
8263
|
expiryDurationLength: z42.optional(z42.number())
|
|
8081
8264
|
}),
|
|
8082
8265
|
z42.transform((v) => {
|
|
8083
8266
|
return remap(v, {
|
|
8267
|
+
maxPercentage: "max_percentage",
|
|
8084
8268
|
expiryDurationType: "expiry_duration_type",
|
|
8085
8269
|
expiryDurationLength: "expiry_duration_length"
|
|
8086
8270
|
});
|
|
@@ -8385,12 +8569,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z45.pipe(
|
|
|
8385
8569
|
quantity: z45.number(),
|
|
8386
8570
|
purchaseLimit: z45.optional(
|
|
8387
8571
|
z45.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
|
|
8388
|
-
)
|
|
8572
|
+
),
|
|
8573
|
+
invoiceMode: z45.optional(z45.boolean())
|
|
8389
8574
|
}),
|
|
8390
8575
|
z45.transform((v) => {
|
|
8391
8576
|
return remap(v, {
|
|
8392
8577
|
featureId: "feature_id",
|
|
8393
|
-
purchaseLimit: "purchase_limit"
|
|
8578
|
+
purchaseLimit: "purchase_limit",
|
|
8579
|
+
invoiceMode: "invoice_mode"
|
|
8394
8580
|
});
|
|
8395
8581
|
})
|
|
8396
8582
|
);
|
|
@@ -8425,6 +8611,17 @@ var UpdateCustomerUsageAlertRequestBody$outboundSchema = z45.pipe(
|
|
|
8425
8611
|
});
|
|
8426
8612
|
})
|
|
8427
8613
|
);
|
|
8614
|
+
var UpdateCustomerOverageAllowedRequest$outboundSchema = z45.pipe(
|
|
8615
|
+
z45.object({
|
|
8616
|
+
featureId: z45.string(),
|
|
8617
|
+
enabled: z45._default(z45.boolean(), false)
|
|
8618
|
+
}),
|
|
8619
|
+
z45.transform((v) => {
|
|
8620
|
+
return remap(v, {
|
|
8621
|
+
featureId: "feature_id"
|
|
8622
|
+
});
|
|
8623
|
+
})
|
|
8624
|
+
);
|
|
8428
8625
|
var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
|
|
8429
8626
|
z45.object({
|
|
8430
8627
|
autoTopups: z45.optional(
|
|
@@ -8435,13 +8632,17 @@ var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
|
|
|
8435
8632
|
),
|
|
8436
8633
|
usageAlerts: z45.optional(
|
|
8437
8634
|
z45.array(z45.lazy(() => UpdateCustomerUsageAlertRequestBody$outboundSchema))
|
|
8635
|
+
),
|
|
8636
|
+
overageAllowed: z45.optional(
|
|
8637
|
+
z45.array(z45.lazy(() => UpdateCustomerOverageAllowedRequest$outboundSchema))
|
|
8438
8638
|
)
|
|
8439
8639
|
}),
|
|
8440
8640
|
z45.transform((v) => {
|
|
8441
8641
|
return remap(v, {
|
|
8442
8642
|
autoTopups: "auto_topups",
|
|
8443
8643
|
spendLimits: "spend_limits",
|
|
8444
|
-
usageAlerts: "usage_alerts"
|
|
8644
|
+
usageAlerts: "usage_alerts",
|
|
8645
|
+
overageAllowed: "overage_allowed"
|
|
8445
8646
|
});
|
|
8446
8647
|
})
|
|
8447
8648
|
);
|
|
@@ -8491,12 +8692,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
|
|
|
8491
8692
|
quantity: number2(),
|
|
8492
8693
|
purchase_limit: optional2(
|
|
8493
8694
|
z45.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
|
|
8494
|
-
)
|
|
8695
|
+
),
|
|
8696
|
+
invoice_mode: optional2(boolean2())
|
|
8495
8697
|
}),
|
|
8496
8698
|
z45.transform((v) => {
|
|
8497
8699
|
return remap(v, {
|
|
8498
8700
|
"feature_id": "featureId",
|
|
8499
|
-
"purchase_limit": "purchaseLimit"
|
|
8701
|
+
"purchase_limit": "purchaseLimit",
|
|
8702
|
+
"invoice_mode": "invoiceMode"
|
|
8500
8703
|
});
|
|
8501
8704
|
})
|
|
8502
8705
|
);
|
|
@@ -8529,6 +8732,17 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z45.pipe(
|
|
|
8529
8732
|
});
|
|
8530
8733
|
})
|
|
8531
8734
|
);
|
|
8735
|
+
var UpdateCustomerOverageAllowedResponse$inboundSchema = z45.pipe(
|
|
8736
|
+
z45.object({
|
|
8737
|
+
feature_id: string4(),
|
|
8738
|
+
enabled: z45._default(boolean2(), false)
|
|
8739
|
+
}),
|
|
8740
|
+
z45.transform((v) => {
|
|
8741
|
+
return remap(v, {
|
|
8742
|
+
"feature_id": "featureId"
|
|
8743
|
+
});
|
|
8744
|
+
})
|
|
8745
|
+
);
|
|
8532
8746
|
var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
|
|
8533
8747
|
z45.object({
|
|
8534
8748
|
auto_topups: optional2(
|
|
@@ -8539,13 +8753,17 @@ var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
|
|
|
8539
8753
|
),
|
|
8540
8754
|
usage_alerts: optional2(
|
|
8541
8755
|
z45.array(z45.lazy(() => UpdateCustomerUsageAlertResponse$inboundSchema))
|
|
8756
|
+
),
|
|
8757
|
+
overage_allowed: optional2(
|
|
8758
|
+
z45.array(z45.lazy(() => UpdateCustomerOverageAllowedResponse$inboundSchema))
|
|
8542
8759
|
)
|
|
8543
8760
|
}),
|
|
8544
8761
|
z45.transform((v) => {
|
|
8545
8762
|
return remap(v, {
|
|
8546
8763
|
"auto_topups": "autoTopups",
|
|
8547
8764
|
"spend_limits": "spendLimits",
|
|
8548
|
-
"usage_alerts": "usageAlerts"
|
|
8765
|
+
"usage_alerts": "usageAlerts",
|
|
8766
|
+
"overage_allowed": "overageAllowed"
|
|
8549
8767
|
});
|
|
8550
8768
|
})
|
|
8551
8769
|
);
|
|
@@ -8737,6 +8955,17 @@ var UpdateEntityUsageAlertRequestBody$outboundSchema = z46.pipe(
|
|
|
8737
8955
|
});
|
|
8738
8956
|
})
|
|
8739
8957
|
);
|
|
8958
|
+
var UpdateEntityOverageAllowedRequest$outboundSchema = z46.pipe(
|
|
8959
|
+
z46.object({
|
|
8960
|
+
featureId: z46.string(),
|
|
8961
|
+
enabled: z46._default(z46.boolean(), false)
|
|
8962
|
+
}),
|
|
8963
|
+
z46.transform((v) => {
|
|
8964
|
+
return remap(v, {
|
|
8965
|
+
featureId: "feature_id"
|
|
8966
|
+
});
|
|
8967
|
+
})
|
|
8968
|
+
);
|
|
8740
8969
|
var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
|
|
8741
8970
|
z46.object({
|
|
8742
8971
|
spendLimits: z46.optional(
|
|
@@ -8744,12 +8973,16 @@ var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
|
|
|
8744
8973
|
),
|
|
8745
8974
|
usageAlerts: z46.optional(
|
|
8746
8975
|
z46.array(z46.lazy(() => UpdateEntityUsageAlertRequestBody$outboundSchema))
|
|
8976
|
+
),
|
|
8977
|
+
overageAllowed: z46.optional(
|
|
8978
|
+
z46.array(z46.lazy(() => UpdateEntityOverageAllowedRequest$outboundSchema))
|
|
8747
8979
|
)
|
|
8748
8980
|
}),
|
|
8749
8981
|
z46.transform((v) => {
|
|
8750
8982
|
return remap(v, {
|
|
8751
8983
|
spendLimits: "spend_limits",
|
|
8752
|
-
usageAlerts: "usage_alerts"
|
|
8984
|
+
usageAlerts: "usage_alerts",
|
|
8985
|
+
overageAllowed: "overage_allowed"
|
|
8753
8986
|
});
|
|
8754
8987
|
})
|
|
8755
8988
|
);
|
|
@@ -8901,6 +9134,17 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z46.pipe(
|
|
|
8901
9134
|
});
|
|
8902
9135
|
})
|
|
8903
9136
|
);
|
|
9137
|
+
var UpdateEntityOverageAllowedResponse$inboundSchema = z46.pipe(
|
|
9138
|
+
z46.object({
|
|
9139
|
+
feature_id: string4(),
|
|
9140
|
+
enabled: z46._default(boolean2(), false)
|
|
9141
|
+
}),
|
|
9142
|
+
z46.transform((v) => {
|
|
9143
|
+
return remap(v, {
|
|
9144
|
+
"feature_id": "featureId"
|
|
9145
|
+
});
|
|
9146
|
+
})
|
|
9147
|
+
);
|
|
8904
9148
|
var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
|
|
8905
9149
|
z46.object({
|
|
8906
9150
|
spend_limits: optional2(
|
|
@@ -8908,12 +9152,16 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
|
|
|
8908
9152
|
),
|
|
8909
9153
|
usage_alerts: optional2(
|
|
8910
9154
|
z46.array(z46.lazy(() => UpdateEntityUsageAlertResponse$inboundSchema))
|
|
9155
|
+
),
|
|
9156
|
+
overage_allowed: optional2(
|
|
9157
|
+
z46.array(z46.lazy(() => UpdateEntityOverageAllowedResponse$inboundSchema))
|
|
8911
9158
|
)
|
|
8912
9159
|
}),
|
|
8913
9160
|
z46.transform((v) => {
|
|
8914
9161
|
return remap(v, {
|
|
8915
9162
|
"spend_limits": "spendLimits",
|
|
8916
|
-
"usage_alerts": "usageAlerts"
|
|
9163
|
+
"usage_alerts": "usageAlerts",
|
|
9164
|
+
"overage_allowed": "overageAllowed"
|
|
8917
9165
|
});
|
|
8918
9166
|
})
|
|
8919
9167
|
);
|
|
@@ -9266,11 +9514,13 @@ var UpdatePlanExpiryDurationTypeRequest$outboundSchema = z48.enum(UpdatePlanExpi
|
|
|
9266
9514
|
var UpdatePlanRolloverRequest$outboundSchema = z48.pipe(
|
|
9267
9515
|
z48.object({
|
|
9268
9516
|
max: z48.optional(z48.number()),
|
|
9517
|
+
maxPercentage: z48.optional(z48.number()),
|
|
9269
9518
|
expiryDurationType: UpdatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
9270
9519
|
expiryDurationLength: z48.optional(z48.number())
|
|
9271
9520
|
}),
|
|
9272
9521
|
z48.transform((v) => {
|
|
9273
9522
|
return remap(v, {
|
|
9523
|
+
maxPercentage: "max_percentage",
|
|
9274
9524
|
expiryDurationType: "expiry_duration_type",
|
|
9275
9525
|
expiryDurationLength: "expiry_duration_length"
|
|
9276
9526
|
});
|
|
@@ -9455,11 +9705,13 @@ var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePla
|
|
|
9455
9705
|
var UpdatePlanRolloverResponse$inboundSchema = z48.pipe(
|
|
9456
9706
|
z48.object({
|
|
9457
9707
|
max: nullable(number2()),
|
|
9708
|
+
max_percentage: z48.optional(z48.nullable(number2())),
|
|
9458
9709
|
expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
9459
9710
|
expiry_duration_length: optional2(number2())
|
|
9460
9711
|
}),
|
|
9461
9712
|
z48.transform((v) => {
|
|
9462
9713
|
return remap(v, {
|
|
9714
|
+
"max_percentage": "maxPercentage",
|
|
9463
9715
|
"expiry_duration_type": "expiryDurationType",
|
|
9464
9716
|
"expiry_duration_length": "expiryDurationLength"
|
|
9465
9717
|
});
|
|
@@ -9736,7 +9988,8 @@ async function $do2(client, request, options) {
|
|
|
9736
9988
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set([
|
|
9737
9989
|
"check",
|
|
9738
9990
|
"track",
|
|
9739
|
-
"getOrCreateCustomer"
|
|
9991
|
+
"getOrCreateCustomer",
|
|
9992
|
+
"getEntity"
|
|
9740
9993
|
]);
|
|
9741
9994
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
9742
9995
|
var FAIL_OPEN_BODIES = {
|
|
@@ -9766,6 +10019,18 @@ var FAIL_OPEN_BODIES = {
|
|
|
9766
10019
|
purchases: [],
|
|
9767
10020
|
balances: {},
|
|
9768
10021
|
flags: {}
|
|
10022
|
+
},
|
|
10023
|
+
getEntity: {
|
|
10024
|
+
id: null,
|
|
10025
|
+
name: null,
|
|
10026
|
+
customer_id: null,
|
|
10027
|
+
feature_id: null,
|
|
10028
|
+
created_at: 0,
|
|
10029
|
+
env: "live",
|
|
10030
|
+
subscriptions: [],
|
|
10031
|
+
purchases: [],
|
|
10032
|
+
balances: {},
|
|
10033
|
+
flags: {}
|
|
9769
10034
|
}
|
|
9770
10035
|
};
|
|
9771
10036
|
var FailOpenHook = class {
|
|
@@ -14141,6 +14406,7 @@ var attachProrationOutboundSchema = import_v42.z.object({
|
|
|
14141
14406
|
});
|
|
14142
14407
|
var attachRolloverOutboundSchema = import_v42.z.object({
|
|
14143
14408
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14409
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14144
14410
|
expiry_duration_type: import_v42.z.string(),
|
|
14145
14411
|
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
14146
14412
|
});
|
|
@@ -14241,6 +14507,7 @@ var attachProrationSchema = import_v42.z.object({
|
|
|
14241
14507
|
var attachExpiryDurationTypeSchema = closedEnumSchema2;
|
|
14242
14508
|
var attachRolloverSchema = import_v42.z.object({
|
|
14243
14509
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14510
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
14244
14511
|
expiryDurationType: attachExpiryDurationTypeSchema,
|
|
14245
14512
|
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
14246
14513
|
});
|
|
@@ -14331,6 +14598,10 @@ var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
|
|
|
14331
14598
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
14332
14599
|
overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
14333
14600
|
});
|
|
14601
|
+
var getOrCreateCustomerOverageAllowedSchema = import_v44.z.object({
|
|
14602
|
+
featureId: import_v44.z.string(),
|
|
14603
|
+
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
14604
|
+
});
|
|
14334
14605
|
var getOrCreateCustomerPurchaseLimitOutboundSchema = import_v44.z.object({
|
|
14335
14606
|
interval: import_v44.z.string(),
|
|
14336
14607
|
interval_count: import_v44.z.number(),
|
|
@@ -14341,7 +14612,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = import_v44.z.object({
|
|
|
14341
14612
|
enabled: import_v44.z.boolean(),
|
|
14342
14613
|
threshold: import_v44.z.number(),
|
|
14343
14614
|
quantity: import_v44.z.number(),
|
|
14344
|
-
purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional()
|
|
14615
|
+
purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional(),
|
|
14616
|
+
invoice_mode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
14345
14617
|
});
|
|
14346
14618
|
var getOrCreateCustomerSpendLimitOutboundSchema = import_v44.z.object({
|
|
14347
14619
|
feature_id: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
|
|
@@ -14355,6 +14627,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = import_v44.z.object({
|
|
|
14355
14627
|
threshold_type: import_v44.z.string(),
|
|
14356
14628
|
name: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
|
|
14357
14629
|
});
|
|
14630
|
+
var getOrCreateCustomerOverageAllowedOutboundSchema = import_v44.z.object({
|
|
14631
|
+
feature_id: import_v44.z.string(),
|
|
14632
|
+
enabled: import_v44.z.boolean()
|
|
14633
|
+
});
|
|
14358
14634
|
var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
14359
14635
|
auto_topups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupOutboundSchema), import_v44.z.undefined()]).optional(),
|
|
14360
14636
|
spend_limits: import_v44.z.union([
|
|
@@ -14364,6 +14640,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
|
14364
14640
|
usage_alerts: import_v44.z.union([
|
|
14365
14641
|
import_v44.z.array(getOrCreateCustomerUsageAlertOutboundSchema),
|
|
14366
14642
|
import_v44.z.undefined()
|
|
14643
|
+
]).optional(),
|
|
14644
|
+
overage_allowed: import_v44.z.union([
|
|
14645
|
+
import_v44.z.array(getOrCreateCustomerOverageAllowedOutboundSchema),
|
|
14646
|
+
import_v44.z.undefined()
|
|
14367
14647
|
]).optional()
|
|
14368
14648
|
});
|
|
14369
14649
|
var getOrCreateCustomerParamsOutboundSchema = import_v44.z.object({
|
|
@@ -14391,7 +14671,8 @@ var getOrCreateCustomerAutoTopupSchema = import_v44.z.object({
|
|
|
14391
14671
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
14392
14672
|
threshold: import_v44.z.number(),
|
|
14393
14673
|
quantity: import_v44.z.number(),
|
|
14394
|
-
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional()
|
|
14674
|
+
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional(),
|
|
14675
|
+
invoiceMode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
14395
14676
|
});
|
|
14396
14677
|
var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
|
|
14397
14678
|
var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
@@ -14404,7 +14685,8 @@ var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
|
14404
14685
|
var getOrCreateCustomerBillingControlsSchema = import_v44.z.object({
|
|
14405
14686
|
autoTopups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupSchema), import_v44.z.undefined()]).optional(),
|
|
14406
14687
|
spendLimits: import_v44.z.union([import_v44.z.array(getOrCreateCustomerSpendLimitSchema), import_v44.z.undefined()]).optional(),
|
|
14407
|
-
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional()
|
|
14688
|
+
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional(),
|
|
14689
|
+
overageAllowed: import_v44.z.union([import_v44.z.array(getOrCreateCustomerOverageAllowedSchema), import_v44.z.undefined()]).optional()
|
|
14408
14690
|
});
|
|
14409
14691
|
var getOrCreateCustomerParamsSchema = import_v44.z.object({
|
|
14410
14692
|
customerId: import_v44.z.string().nullable(),
|
|
@@ -14543,6 +14825,7 @@ var listPlansItemPriceSchema = import_v46.z.object({
|
|
|
14543
14825
|
var listPlansExpiryDurationTypeSchema = openEnumSchema2;
|
|
14544
14826
|
var listPlansRolloverSchema = import_v46.z.object({
|
|
14545
14827
|
max: import_v46.z.number().nullable(),
|
|
14828
|
+
maxPercentage: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional().nullable(),
|
|
14546
14829
|
expiryDurationType: listPlansExpiryDurationTypeSchema,
|
|
14547
14830
|
expiryDurationLength: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
|
|
14548
14831
|
});
|
|
@@ -14623,6 +14906,10 @@ var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
|
14623
14906
|
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
14624
14907
|
overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14625
14908
|
});
|
|
14909
|
+
var multiAttachOverageAllowedSchema = import_v47.z.object({
|
|
14910
|
+
featureId: import_v47.z.string(),
|
|
14911
|
+
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
|
|
14912
|
+
});
|
|
14626
14913
|
var multiAttachInvoiceSchema = import_v47.z.object({
|
|
14627
14914
|
status: import_v47.z.string().nullable(),
|
|
14628
14915
|
stripeId: import_v47.z.string(),
|
|
@@ -14661,6 +14948,7 @@ var multiAttachProrationOutboundSchema = import_v47.z.object({
|
|
|
14661
14948
|
});
|
|
14662
14949
|
var multiAttachRolloverOutboundSchema = import_v47.z.object({
|
|
14663
14950
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14951
|
+
max_percentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14664
14952
|
expiry_duration_type: import_v47.z.string(),
|
|
14665
14953
|
expiry_duration_length: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14666
14954
|
});
|
|
@@ -14715,9 +15003,14 @@ var multiAttachUsageAlertOutboundSchema = import_v47.z.object({
|
|
|
14715
15003
|
threshold_type: import_v47.z.string(),
|
|
14716
15004
|
name: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
14717
15005
|
});
|
|
15006
|
+
var multiAttachOverageAllowedOutboundSchema = import_v47.z.object({
|
|
15007
|
+
feature_id: import_v47.z.string(),
|
|
15008
|
+
enabled: import_v47.z.boolean()
|
|
15009
|
+
});
|
|
14718
15010
|
var multiAttachBillingControlsOutboundSchema = import_v47.z.object({
|
|
14719
15011
|
spend_limits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
14720
|
-
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional()
|
|
15012
|
+
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
15013
|
+
overage_allowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedOutboundSchema), import_v47.z.undefined()]).optional()
|
|
14721
15014
|
});
|
|
14722
15015
|
var multiAttachEntityDataOutboundSchema = import_v47.z.object({
|
|
14723
15016
|
feature_id: import_v47.z.string(),
|
|
@@ -14761,6 +15054,7 @@ var multiAttachProrationSchema = import_v47.z.object({
|
|
|
14761
15054
|
var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
|
|
14762
15055
|
var multiAttachRolloverSchema = import_v47.z.object({
|
|
14763
15056
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
15057
|
+
maxPercentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
14764
15058
|
expiryDurationType: multiAttachExpiryDurationTypeSchema,
|
|
14765
15059
|
expiryDurationLength: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
14766
15060
|
});
|
|
@@ -14801,7 +15095,8 @@ var multiAttachUsageAlertSchema = import_v47.z.object({
|
|
|
14801
15095
|
});
|
|
14802
15096
|
var multiAttachBillingControlsSchema = import_v47.z.object({
|
|
14803
15097
|
spendLimits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitSchema), import_v47.z.undefined()]).optional(),
|
|
14804
|
-
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional()
|
|
15098
|
+
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional(),
|
|
15099
|
+
overageAllowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedSchema), import_v47.z.undefined()]).optional()
|
|
14805
15100
|
});
|
|
14806
15101
|
var multiAttachEntityDataSchema = import_v47.z.object({
|
|
14807
15102
|
featureId: import_v47.z.string(),
|
|
@@ -15009,6 +15304,7 @@ var previewAttachProrationOutboundSchema = import_v49.z.object({
|
|
|
15009
15304
|
});
|
|
15010
15305
|
var previewAttachRolloverOutboundSchema = import_v49.z.object({
|
|
15011
15306
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15307
|
+
max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15012
15308
|
expiry_duration_type: import_v49.z.string(),
|
|
15013
15309
|
expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
15014
15310
|
});
|
|
@@ -15113,6 +15409,7 @@ var previewAttachProrationSchema = import_v49.z.object({
|
|
|
15113
15409
|
var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
|
|
15114
15410
|
var previewAttachRolloverSchema = import_v49.z.object({
|
|
15115
15411
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15412
|
+
maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
15116
15413
|
expiryDurationType: previewAttachExpiryDurationTypeSchema,
|
|
15117
15414
|
expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
15118
15415
|
});
|
|
@@ -15222,6 +15519,10 @@ var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
|
15222
15519
|
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
15223
15520
|
overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15224
15521
|
});
|
|
15522
|
+
var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
|
|
15523
|
+
featureId: import_v410.z.string(),
|
|
15524
|
+
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
|
|
15525
|
+
});
|
|
15225
15526
|
var previewMultiAttachDiscountSchema = import_v410.z.object({
|
|
15226
15527
|
amountOff: import_v410.z.number(),
|
|
15227
15528
|
percentOff: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
@@ -15323,6 +15624,7 @@ var previewMultiAttachProrationOutboundSchema = import_v410.z.object({
|
|
|
15323
15624
|
});
|
|
15324
15625
|
var previewMultiAttachRolloverOutboundSchema = import_v410.z.object({
|
|
15325
15626
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15627
|
+
max_percentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15326
15628
|
expiry_duration_type: import_v410.z.string(),
|
|
15327
15629
|
expiry_duration_length: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15328
15630
|
});
|
|
@@ -15380,9 +15682,17 @@ var previewMultiAttachUsageAlertOutboundSchema = import_v410.z.object({
|
|
|
15380
15682
|
threshold_type: import_v410.z.string(),
|
|
15381
15683
|
name: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
15382
15684
|
});
|
|
15685
|
+
var previewMultiAttachOverageAllowedOutboundSchema = import_v410.z.object({
|
|
15686
|
+
feature_id: import_v410.z.string(),
|
|
15687
|
+
enabled: import_v410.z.boolean()
|
|
15688
|
+
});
|
|
15383
15689
|
var previewMultiAttachBillingControlsOutboundSchema = import_v410.z.object({
|
|
15384
15690
|
spend_limits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
15385
|
-
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional()
|
|
15691
|
+
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
15692
|
+
overage_allowed: import_v410.z.union([
|
|
15693
|
+
import_v410.z.array(previewMultiAttachOverageAllowedOutboundSchema),
|
|
15694
|
+
import_v410.z.undefined()
|
|
15695
|
+
]).optional()
|
|
15386
15696
|
});
|
|
15387
15697
|
var previewMultiAttachEntityDataOutboundSchema = import_v410.z.object({
|
|
15388
15698
|
feature_id: import_v410.z.string(),
|
|
@@ -15427,6 +15737,7 @@ var previewMultiAttachProrationSchema = import_v410.z.object({
|
|
|
15427
15737
|
var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
|
|
15428
15738
|
var previewMultiAttachRolloverSchema = import_v410.z.object({
|
|
15429
15739
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15740
|
+
maxPercentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
15430
15741
|
expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
|
|
15431
15742
|
expiryDurationLength: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
15432
15743
|
});
|
|
@@ -15470,7 +15781,8 @@ var previewMultiAttachUsageAlertSchema = import_v410.z.object({
|
|
|
15470
15781
|
});
|
|
15471
15782
|
var previewMultiAttachBillingControlsSchema = import_v410.z.object({
|
|
15472
15783
|
spendLimits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitSchema), import_v410.z.undefined()]).optional(),
|
|
15473
|
-
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional()
|
|
15784
|
+
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional(),
|
|
15785
|
+
overageAllowed: import_v410.z.union([import_v410.z.array(previewMultiAttachOverageAllowedSchema), import_v410.z.undefined()]).optional()
|
|
15474
15786
|
});
|
|
15475
15787
|
var previewMultiAttachEntityDataSchema = import_v410.z.object({
|
|
15476
15788
|
featureId: import_v410.z.string(),
|
|
@@ -15666,6 +15978,7 @@ var previewUpdateProrationOutboundSchema = import_v411.z.object({
|
|
|
15666
15978
|
});
|
|
15667
15979
|
var previewUpdateRolloverOutboundSchema = import_v411.z.object({
|
|
15668
15980
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15981
|
+
max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15669
15982
|
expiry_duration_type: import_v411.z.string(),
|
|
15670
15983
|
expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
15671
15984
|
});
|
|
@@ -15750,6 +16063,7 @@ var previewUpdateProrationSchema = import_v411.z.object({
|
|
|
15750
16063
|
var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
|
|
15751
16064
|
var previewUpdateRolloverSchema = import_v411.z.object({
|
|
15752
16065
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
16066
|
+
maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
15753
16067
|
expiryDurationType: previewUpdateExpiryDurationTypeSchema,
|
|
15754
16068
|
expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
15755
16069
|
});
|
|
@@ -15913,6 +16227,7 @@ var setupPaymentProrationOutboundSchema = import_v413.z.object({
|
|
|
15913
16227
|
});
|
|
15914
16228
|
var setupPaymentRolloverOutboundSchema = import_v413.z.object({
|
|
15915
16229
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16230
|
+
max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
15916
16231
|
expiry_duration_type: import_v413.z.string(),
|
|
15917
16232
|
expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
15918
16233
|
});
|
|
@@ -16003,6 +16318,7 @@ var setupPaymentProrationSchema = import_v413.z.object({
|
|
|
16003
16318
|
var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
|
|
16004
16319
|
var setupPaymentRolloverSchema = import_v413.z.object({
|
|
16005
16320
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16321
|
+
maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
16006
16322
|
expiryDurationType: setupPaymentExpiryDurationTypeSchema,
|
|
16007
16323
|
expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
16008
16324
|
});
|
|
@@ -16113,6 +16429,7 @@ var billingUpdateProrationOutboundSchema = import_v414.z.object({
|
|
|
16113
16429
|
});
|
|
16114
16430
|
var billingUpdateRolloverOutboundSchema = import_v414.z.object({
|
|
16115
16431
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16432
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16116
16433
|
expiry_duration_type: import_v414.z.string(),
|
|
16117
16434
|
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
16118
16435
|
});
|
|
@@ -16193,6 +16510,7 @@ var billingUpdateProrationSchema = import_v414.z.object({
|
|
|
16193
16510
|
var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
|
|
16194
16511
|
var billingUpdateRolloverSchema = import_v414.z.object({
|
|
16195
16512
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16513
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
16196
16514
|
expiryDurationType: billingUpdateExpiryDurationTypeSchema,
|
|
16197
16515
|
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
16198
16516
|
});
|