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
|
@@ -183,6 +183,7 @@ var attachProrationOutboundSchema = import_v42.z.object({
|
|
|
183
183
|
});
|
|
184
184
|
var attachRolloverOutboundSchema = import_v42.z.object({
|
|
185
185
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
186
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
186
187
|
expiry_duration_type: import_v42.z.string(),
|
|
187
188
|
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
188
189
|
});
|
|
@@ -283,6 +284,7 @@ var attachProrationSchema = import_v42.z.object({
|
|
|
283
284
|
var attachExpiryDurationTypeSchema = closedEnumSchema2;
|
|
284
285
|
var attachRolloverSchema = import_v42.z.object({
|
|
285
286
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
287
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
286
288
|
expiryDurationType: attachExpiryDurationTypeSchema,
|
|
287
289
|
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
288
290
|
});
|
|
@@ -373,6 +375,10 @@ var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
|
|
|
373
375
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
374
376
|
overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
375
377
|
});
|
|
378
|
+
var getOrCreateCustomerOverageAllowedSchema = import_v44.z.object({
|
|
379
|
+
featureId: import_v44.z.string(),
|
|
380
|
+
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
381
|
+
});
|
|
376
382
|
var getOrCreateCustomerPurchaseLimitOutboundSchema = import_v44.z.object({
|
|
377
383
|
interval: import_v44.z.string(),
|
|
378
384
|
interval_count: import_v44.z.number(),
|
|
@@ -397,6 +403,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = import_v44.z.object({
|
|
|
397
403
|
threshold_type: import_v44.z.string(),
|
|
398
404
|
name: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
|
|
399
405
|
});
|
|
406
|
+
var getOrCreateCustomerOverageAllowedOutboundSchema = import_v44.z.object({
|
|
407
|
+
feature_id: import_v44.z.string(),
|
|
408
|
+
enabled: import_v44.z.boolean()
|
|
409
|
+
});
|
|
400
410
|
var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
401
411
|
auto_topups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupOutboundSchema), import_v44.z.undefined()]).optional(),
|
|
402
412
|
spend_limits: import_v44.z.union([
|
|
@@ -406,6 +416,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
|
406
416
|
usage_alerts: import_v44.z.union([
|
|
407
417
|
import_v44.z.array(getOrCreateCustomerUsageAlertOutboundSchema),
|
|
408
418
|
import_v44.z.undefined()
|
|
419
|
+
]).optional(),
|
|
420
|
+
overage_allowed: import_v44.z.union([
|
|
421
|
+
import_v44.z.array(getOrCreateCustomerOverageAllowedOutboundSchema),
|
|
422
|
+
import_v44.z.undefined()
|
|
409
423
|
]).optional()
|
|
410
424
|
});
|
|
411
425
|
var getOrCreateCustomerParamsOutboundSchema = import_v44.z.object({
|
|
@@ -446,7 +460,8 @@ var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
|
446
460
|
var getOrCreateCustomerBillingControlsSchema = import_v44.z.object({
|
|
447
461
|
autoTopups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupSchema), import_v44.z.undefined()]).optional(),
|
|
448
462
|
spendLimits: import_v44.z.union([import_v44.z.array(getOrCreateCustomerSpendLimitSchema), import_v44.z.undefined()]).optional(),
|
|
449
|
-
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional()
|
|
463
|
+
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional(),
|
|
464
|
+
overageAllowed: import_v44.z.union([import_v44.z.array(getOrCreateCustomerOverageAllowedSchema), import_v44.z.undefined()]).optional()
|
|
450
465
|
});
|
|
451
466
|
var getOrCreateCustomerParamsSchema = import_v44.z.object({
|
|
452
467
|
customerId: import_v44.z.string().nullable(),
|
|
@@ -585,6 +600,7 @@ var listPlansItemPriceSchema = import_v46.z.object({
|
|
|
585
600
|
var listPlansExpiryDurationTypeSchema = openEnumSchema2;
|
|
586
601
|
var listPlansRolloverSchema = import_v46.z.object({
|
|
587
602
|
max: import_v46.z.number().nullable(),
|
|
603
|
+
maxPercentage: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional().nullable(),
|
|
588
604
|
expiryDurationType: listPlansExpiryDurationTypeSchema,
|
|
589
605
|
expiryDurationLength: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
|
|
590
606
|
});
|
|
@@ -665,6 +681,10 @@ var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
|
665
681
|
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
666
682
|
overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
667
683
|
});
|
|
684
|
+
var multiAttachOverageAllowedSchema = import_v47.z.object({
|
|
685
|
+
featureId: import_v47.z.string(),
|
|
686
|
+
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
|
|
687
|
+
});
|
|
668
688
|
var multiAttachInvoiceSchema = import_v47.z.object({
|
|
669
689
|
status: import_v47.z.string().nullable(),
|
|
670
690
|
stripeId: import_v47.z.string(),
|
|
@@ -703,6 +723,7 @@ var multiAttachProrationOutboundSchema = import_v47.z.object({
|
|
|
703
723
|
});
|
|
704
724
|
var multiAttachRolloverOutboundSchema = import_v47.z.object({
|
|
705
725
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
726
|
+
max_percentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
706
727
|
expiry_duration_type: import_v47.z.string(),
|
|
707
728
|
expiry_duration_length: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
708
729
|
});
|
|
@@ -757,9 +778,14 @@ var multiAttachUsageAlertOutboundSchema = import_v47.z.object({
|
|
|
757
778
|
threshold_type: import_v47.z.string(),
|
|
758
779
|
name: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
759
780
|
});
|
|
781
|
+
var multiAttachOverageAllowedOutboundSchema = import_v47.z.object({
|
|
782
|
+
feature_id: import_v47.z.string(),
|
|
783
|
+
enabled: import_v47.z.boolean()
|
|
784
|
+
});
|
|
760
785
|
var multiAttachBillingControlsOutboundSchema = import_v47.z.object({
|
|
761
786
|
spend_limits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
762
|
-
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional()
|
|
787
|
+
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
788
|
+
overage_allowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedOutboundSchema), import_v47.z.undefined()]).optional()
|
|
763
789
|
});
|
|
764
790
|
var multiAttachEntityDataOutboundSchema = import_v47.z.object({
|
|
765
791
|
feature_id: import_v47.z.string(),
|
|
@@ -803,6 +829,7 @@ var multiAttachProrationSchema = import_v47.z.object({
|
|
|
803
829
|
var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
|
|
804
830
|
var multiAttachRolloverSchema = import_v47.z.object({
|
|
805
831
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
832
|
+
maxPercentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
806
833
|
expiryDurationType: multiAttachExpiryDurationTypeSchema,
|
|
807
834
|
expiryDurationLength: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
808
835
|
});
|
|
@@ -843,7 +870,8 @@ var multiAttachUsageAlertSchema = import_v47.z.object({
|
|
|
843
870
|
});
|
|
844
871
|
var multiAttachBillingControlsSchema = import_v47.z.object({
|
|
845
872
|
spendLimits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitSchema), import_v47.z.undefined()]).optional(),
|
|
846
|
-
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional()
|
|
873
|
+
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional(),
|
|
874
|
+
overageAllowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedSchema), import_v47.z.undefined()]).optional()
|
|
847
875
|
});
|
|
848
876
|
var multiAttachEntityDataSchema = import_v47.z.object({
|
|
849
877
|
featureId: import_v47.z.string(),
|
|
@@ -1051,6 +1079,7 @@ var previewAttachProrationOutboundSchema = import_v49.z.object({
|
|
|
1051
1079
|
});
|
|
1052
1080
|
var previewAttachRolloverOutboundSchema = import_v49.z.object({
|
|
1053
1081
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
1082
|
+
max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
1054
1083
|
expiry_duration_type: import_v49.z.string(),
|
|
1055
1084
|
expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
1056
1085
|
});
|
|
@@ -1155,6 +1184,7 @@ var previewAttachProrationSchema = import_v49.z.object({
|
|
|
1155
1184
|
var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
|
|
1156
1185
|
var previewAttachRolloverSchema = import_v49.z.object({
|
|
1157
1186
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
1187
|
+
maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
1158
1188
|
expiryDurationType: previewAttachExpiryDurationTypeSchema,
|
|
1159
1189
|
expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
1160
1190
|
});
|
|
@@ -1264,6 +1294,10 @@ var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
|
1264
1294
|
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
1265
1295
|
overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
1266
1296
|
});
|
|
1297
|
+
var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
|
|
1298
|
+
featureId: import_v410.z.string(),
|
|
1299
|
+
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
|
|
1300
|
+
});
|
|
1267
1301
|
var previewMultiAttachDiscountSchema = import_v410.z.object({
|
|
1268
1302
|
amountOff: import_v410.z.number(),
|
|
1269
1303
|
percentOff: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
@@ -1365,6 +1399,7 @@ var previewMultiAttachProrationOutboundSchema = import_v410.z.object({
|
|
|
1365
1399
|
});
|
|
1366
1400
|
var previewMultiAttachRolloverOutboundSchema = import_v410.z.object({
|
|
1367
1401
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
1402
|
+
max_percentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
1368
1403
|
expiry_duration_type: import_v410.z.string(),
|
|
1369
1404
|
expiry_duration_length: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
1370
1405
|
});
|
|
@@ -1422,9 +1457,17 @@ var previewMultiAttachUsageAlertOutboundSchema = import_v410.z.object({
|
|
|
1422
1457
|
threshold_type: import_v410.z.string(),
|
|
1423
1458
|
name: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
1424
1459
|
});
|
|
1460
|
+
var previewMultiAttachOverageAllowedOutboundSchema = import_v410.z.object({
|
|
1461
|
+
feature_id: import_v410.z.string(),
|
|
1462
|
+
enabled: import_v410.z.boolean()
|
|
1463
|
+
});
|
|
1425
1464
|
var previewMultiAttachBillingControlsOutboundSchema = import_v410.z.object({
|
|
1426
1465
|
spend_limits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
1427
|
-
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional()
|
|
1466
|
+
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
1467
|
+
overage_allowed: import_v410.z.union([
|
|
1468
|
+
import_v410.z.array(previewMultiAttachOverageAllowedOutboundSchema),
|
|
1469
|
+
import_v410.z.undefined()
|
|
1470
|
+
]).optional()
|
|
1428
1471
|
});
|
|
1429
1472
|
var previewMultiAttachEntityDataOutboundSchema = import_v410.z.object({
|
|
1430
1473
|
feature_id: import_v410.z.string(),
|
|
@@ -1469,6 +1512,7 @@ var previewMultiAttachProrationSchema = import_v410.z.object({
|
|
|
1469
1512
|
var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
|
|
1470
1513
|
var previewMultiAttachRolloverSchema = import_v410.z.object({
|
|
1471
1514
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
1515
|
+
maxPercentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
1472
1516
|
expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
|
|
1473
1517
|
expiryDurationLength: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
1474
1518
|
});
|
|
@@ -1512,7 +1556,8 @@ var previewMultiAttachUsageAlertSchema = import_v410.z.object({
|
|
|
1512
1556
|
});
|
|
1513
1557
|
var previewMultiAttachBillingControlsSchema = import_v410.z.object({
|
|
1514
1558
|
spendLimits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitSchema), import_v410.z.undefined()]).optional(),
|
|
1515
|
-
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional()
|
|
1559
|
+
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional(),
|
|
1560
|
+
overageAllowed: import_v410.z.union([import_v410.z.array(previewMultiAttachOverageAllowedSchema), import_v410.z.undefined()]).optional()
|
|
1516
1561
|
});
|
|
1517
1562
|
var previewMultiAttachEntityDataSchema = import_v410.z.object({
|
|
1518
1563
|
featureId: import_v410.z.string(),
|
|
@@ -1708,6 +1753,7 @@ var previewUpdateProrationOutboundSchema = import_v411.z.object({
|
|
|
1708
1753
|
});
|
|
1709
1754
|
var previewUpdateRolloverOutboundSchema = import_v411.z.object({
|
|
1710
1755
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
1756
|
+
max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
1711
1757
|
expiry_duration_type: import_v411.z.string(),
|
|
1712
1758
|
expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
1713
1759
|
});
|
|
@@ -1792,6 +1838,7 @@ var previewUpdateProrationSchema = import_v411.z.object({
|
|
|
1792
1838
|
var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
|
|
1793
1839
|
var previewUpdateRolloverSchema = import_v411.z.object({
|
|
1794
1840
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
1841
|
+
maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
1795
1842
|
expiryDurationType: previewUpdateExpiryDurationTypeSchema,
|
|
1796
1843
|
expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
1797
1844
|
});
|
|
@@ -1955,6 +2002,7 @@ var setupPaymentProrationOutboundSchema = import_v413.z.object({
|
|
|
1955
2002
|
});
|
|
1956
2003
|
var setupPaymentRolloverOutboundSchema = import_v413.z.object({
|
|
1957
2004
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
2005
|
+
max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
1958
2006
|
expiry_duration_type: import_v413.z.string(),
|
|
1959
2007
|
expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
1960
2008
|
});
|
|
@@ -2045,6 +2093,7 @@ var setupPaymentProrationSchema = import_v413.z.object({
|
|
|
2045
2093
|
var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
|
|
2046
2094
|
var setupPaymentRolloverSchema = import_v413.z.object({
|
|
2047
2095
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
2096
|
+
maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
2048
2097
|
expiryDurationType: setupPaymentExpiryDurationTypeSchema,
|
|
2049
2098
|
expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
2050
2099
|
});
|
|
@@ -2155,6 +2204,7 @@ var billingUpdateProrationOutboundSchema = import_v414.z.object({
|
|
|
2155
2204
|
});
|
|
2156
2205
|
var billingUpdateRolloverOutboundSchema = import_v414.z.object({
|
|
2157
2206
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
2207
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
2158
2208
|
expiry_duration_type: import_v414.z.string(),
|
|
2159
2209
|
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
2160
2210
|
});
|
|
@@ -2235,6 +2285,7 @@ var billingUpdateProrationSchema = import_v414.z.object({
|
|
|
2235
2285
|
var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
|
|
2236
2286
|
var billingUpdateRolloverSchema = import_v414.z.object({
|
|
2237
2287
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
2288
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
2238
2289
|
expiryDurationType: billingUpdateExpiryDurationTypeSchema,
|
|
2239
2290
|
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
2240
2291
|
});
|
|
@@ -2574,8 +2625,8 @@ var SDK_METADATA = {
|
|
|
2574
2625
|
language: "typescript",
|
|
2575
2626
|
openapiDocVersion: "2.2.0",
|
|
2576
2627
|
sdkVersion: "0.10.17",
|
|
2577
|
-
genVersion: "2.
|
|
2578
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.
|
|
2628
|
+
genVersion: "2.879.1",
|
|
2629
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.1 2.2.0 @useautumn/sdk"
|
|
2579
2630
|
};
|
|
2580
2631
|
|
|
2581
2632
|
// ../sdk/src/lib/http.ts
|
|
@@ -3497,8 +3548,8 @@ function applyBearer(state, spec) {
|
|
|
3497
3548
|
state.headers[spec.fieldName] = value;
|
|
3498
3549
|
}
|
|
3499
3550
|
}
|
|
3500
|
-
function resolveGlobalSecurity(security) {
|
|
3501
|
-
|
|
3551
|
+
function resolveGlobalSecurity(security, allowedFields) {
|
|
3552
|
+
let inputs = [
|
|
3502
3553
|
[
|
|
3503
3554
|
{
|
|
3504
3555
|
fieldName: "Authorization",
|
|
@@ -3506,7 +3557,16 @@ function resolveGlobalSecurity(security) {
|
|
|
3506
3557
|
value: security?.secretKey ?? env().AUTUMN_SECRET_KEY
|
|
3507
3558
|
}
|
|
3508
3559
|
]
|
|
3509
|
-
|
|
3560
|
+
];
|
|
3561
|
+
if (allowedFields) {
|
|
3562
|
+
inputs = allowedFields.map((i) => {
|
|
3563
|
+
if (i < 0 || i >= inputs.length) {
|
|
3564
|
+
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
3565
|
+
}
|
|
3566
|
+
return inputs[i];
|
|
3567
|
+
});
|
|
3568
|
+
}
|
|
3569
|
+
return resolveSecurity(...inputs);
|
|
3510
3570
|
}
|
|
3511
3571
|
async function extractSecurity(sec) {
|
|
3512
3572
|
if (sec == null) {
|
|
@@ -4053,11 +4113,13 @@ var AttachExpiryDurationType$outboundSchema = z26.enum(AttachExpiryDurationType)
|
|
|
4053
4113
|
var AttachRollover$outboundSchema = z26.pipe(
|
|
4054
4114
|
z26.object({
|
|
4055
4115
|
max: z26.optional(z26.number()),
|
|
4116
|
+
maxPercentage: z26.optional(z26.number()),
|
|
4056
4117
|
expiryDurationType: AttachExpiryDurationType$outboundSchema,
|
|
4057
4118
|
expiryDurationLength: z26.optional(z26.number())
|
|
4058
4119
|
}),
|
|
4059
4120
|
z26.transform((v) => {
|
|
4060
4121
|
return remap(v, {
|
|
4122
|
+
maxPercentage: "max_percentage",
|
|
4061
4123
|
expiryDurationType: "expiry_duration_type",
|
|
4062
4124
|
expiryDurationLength: "expiry_duration_length"
|
|
4063
4125
|
});
|
|
@@ -4582,11 +4644,13 @@ var BillingUpdateExpiryDurationType$outboundSchema = z28.enum(BillingUpdateExpir
|
|
|
4582
4644
|
var BillingUpdateRollover$outboundSchema = z28.pipe(
|
|
4583
4645
|
z28.object({
|
|
4584
4646
|
max: z28.optional(z28.number()),
|
|
4647
|
+
maxPercentage: z28.optional(z28.number()),
|
|
4585
4648
|
expiryDurationType: BillingUpdateExpiryDurationType$outboundSchema,
|
|
4586
4649
|
expiryDurationLength: z28.optional(z28.number())
|
|
4587
4650
|
}),
|
|
4588
4651
|
z28.transform((v) => {
|
|
4589
4652
|
return remap(v, {
|
|
4653
|
+
maxPercentage: "max_percentage",
|
|
4590
4654
|
expiryDurationType: "expiry_duration_type",
|
|
4591
4655
|
expiryDurationLength: "expiry_duration_length"
|
|
4592
4656
|
});
|
|
@@ -4928,11 +4992,19 @@ var ProductDisplay$inboundSchema = z29.pipe(
|
|
|
4928
4992
|
})
|
|
4929
4993
|
);
|
|
4930
4994
|
var RolloverDuration$inboundSchema = inboundSchema(RolloverDuration);
|
|
4931
|
-
var CheckRollover$inboundSchema = z29.
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4995
|
+
var CheckRollover$inboundSchema = z29.pipe(
|
|
4996
|
+
z29.object({
|
|
4997
|
+
max: z29.optional(z29.nullable(number2())),
|
|
4998
|
+
max_percentage: z29.optional(z29.nullable(number2())),
|
|
4999
|
+
duration: z29._default(RolloverDuration$inboundSchema, "month"),
|
|
5000
|
+
length: number2()
|
|
5001
|
+
}),
|
|
5002
|
+
z29.transform((v) => {
|
|
5003
|
+
return remap(v, {
|
|
5004
|
+
"max_percentage": "maxPercentage"
|
|
5005
|
+
});
|
|
5006
|
+
})
|
|
5007
|
+
);
|
|
4936
5008
|
var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
|
|
4937
5009
|
var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
|
|
4938
5010
|
var Config$inboundSchema = z29.pipe(
|
|
@@ -5209,6 +5281,17 @@ var CustomerDataUsageAlert$outboundSchema = z31.pipe(
|
|
|
5209
5281
|
});
|
|
5210
5282
|
})
|
|
5211
5283
|
);
|
|
5284
|
+
var CustomerDataOverageAllowed$outboundSchema = z31.pipe(
|
|
5285
|
+
z31.object({
|
|
5286
|
+
featureId: z31.string(),
|
|
5287
|
+
enabled: z31._default(z31.boolean(), false)
|
|
5288
|
+
}),
|
|
5289
|
+
z31.transform((v) => {
|
|
5290
|
+
return remap(v, {
|
|
5291
|
+
featureId: "feature_id"
|
|
5292
|
+
});
|
|
5293
|
+
})
|
|
5294
|
+
);
|
|
5212
5295
|
var CustomerDataBillingControls$outboundSchema = z31.pipe(
|
|
5213
5296
|
z31.object({
|
|
5214
5297
|
autoTopups: z31.optional(
|
|
@@ -5219,13 +5302,17 @@ var CustomerDataBillingControls$outboundSchema = z31.pipe(
|
|
|
5219
5302
|
),
|
|
5220
5303
|
usageAlerts: z31.optional(
|
|
5221
5304
|
z31.array(z31.lazy(() => CustomerDataUsageAlert$outboundSchema))
|
|
5305
|
+
),
|
|
5306
|
+
overageAllowed: z31.optional(
|
|
5307
|
+
z31.array(z31.lazy(() => CustomerDataOverageAllowed$outboundSchema))
|
|
5222
5308
|
)
|
|
5223
5309
|
}),
|
|
5224
5310
|
z31.transform((v) => {
|
|
5225
5311
|
return remap(v, {
|
|
5226
5312
|
autoTopups: "auto_topups",
|
|
5227
5313
|
spendLimits: "spend_limits",
|
|
5228
|
-
usageAlerts: "usage_alerts"
|
|
5314
|
+
usageAlerts: "usage_alerts",
|
|
5315
|
+
overageAllowed: "overage_allowed"
|
|
5229
5316
|
});
|
|
5230
5317
|
})
|
|
5231
5318
|
);
|
|
@@ -5436,11 +5523,13 @@ var ExpiryDurationType$inboundSchema = inboundSchema(ExpiryDurationType);
|
|
|
5436
5523
|
var PlanRollover$inboundSchema = z32.pipe(
|
|
5437
5524
|
z32.object({
|
|
5438
5525
|
max: nullable(number2()),
|
|
5526
|
+
max_percentage: z32.optional(z32.nullable(number2())),
|
|
5439
5527
|
expiry_duration_type: ExpiryDurationType$inboundSchema,
|
|
5440
5528
|
expiry_duration_length: optional2(number2())
|
|
5441
5529
|
}),
|
|
5442
5530
|
z32.transform((v) => {
|
|
5443
5531
|
return remap(v, {
|
|
5532
|
+
"max_percentage": "maxPercentage",
|
|
5444
5533
|
"expiry_duration_type": "expiryDurationType",
|
|
5445
5534
|
"expiry_duration_length": "expiryDurationLength"
|
|
5446
5535
|
});
|
|
@@ -5579,6 +5668,17 @@ var CreateEntityUsageAlertRequestBody$outboundSchema = z33.pipe(
|
|
|
5579
5668
|
});
|
|
5580
5669
|
})
|
|
5581
5670
|
);
|
|
5671
|
+
var CreateEntityOverageAllowedRequest$outboundSchema = z33.pipe(
|
|
5672
|
+
z33.object({
|
|
5673
|
+
featureId: z33.string(),
|
|
5674
|
+
enabled: z33._default(z33.boolean(), false)
|
|
5675
|
+
}),
|
|
5676
|
+
z33.transform((v) => {
|
|
5677
|
+
return remap(v, {
|
|
5678
|
+
featureId: "feature_id"
|
|
5679
|
+
});
|
|
5680
|
+
})
|
|
5681
|
+
);
|
|
5582
5682
|
var CreateEntityBillingControlsRequest$outboundSchema = z33.pipe(
|
|
5583
5683
|
z33.object({
|
|
5584
5684
|
spendLimits: z33.optional(
|
|
@@ -5586,12 +5686,16 @@ var CreateEntityBillingControlsRequest$outboundSchema = z33.pipe(
|
|
|
5586
5686
|
),
|
|
5587
5687
|
usageAlerts: z33.optional(
|
|
5588
5688
|
z33.array(z33.lazy(() => CreateEntityUsageAlertRequestBody$outboundSchema))
|
|
5689
|
+
),
|
|
5690
|
+
overageAllowed: z33.optional(
|
|
5691
|
+
z33.array(z33.lazy(() => CreateEntityOverageAllowedRequest$outboundSchema))
|
|
5589
5692
|
)
|
|
5590
5693
|
}),
|
|
5591
5694
|
z33.transform((v) => {
|
|
5592
5695
|
return remap(v, {
|
|
5593
5696
|
spendLimits: "spend_limits",
|
|
5594
|
-
usageAlerts: "usage_alerts"
|
|
5697
|
+
usageAlerts: "usage_alerts",
|
|
5698
|
+
overageAllowed: "overage_allowed"
|
|
5595
5699
|
});
|
|
5596
5700
|
})
|
|
5597
5701
|
);
|
|
@@ -5748,6 +5852,17 @@ var CreateEntityUsageAlertResponse$inboundSchema = z33.pipe(
|
|
|
5748
5852
|
});
|
|
5749
5853
|
})
|
|
5750
5854
|
);
|
|
5855
|
+
var CreateEntityOverageAllowedResponse$inboundSchema = z33.pipe(
|
|
5856
|
+
z33.object({
|
|
5857
|
+
feature_id: string4(),
|
|
5858
|
+
enabled: z33._default(boolean2(), false)
|
|
5859
|
+
}),
|
|
5860
|
+
z33.transform((v) => {
|
|
5861
|
+
return remap(v, {
|
|
5862
|
+
"feature_id": "featureId"
|
|
5863
|
+
});
|
|
5864
|
+
})
|
|
5865
|
+
);
|
|
5751
5866
|
var CreateEntityBillingControlsResponse$inboundSchema = z33.pipe(
|
|
5752
5867
|
z33.object({
|
|
5753
5868
|
spend_limits: optional2(
|
|
@@ -5755,12 +5870,16 @@ var CreateEntityBillingControlsResponse$inboundSchema = z33.pipe(
|
|
|
5755
5870
|
),
|
|
5756
5871
|
usage_alerts: optional2(
|
|
5757
5872
|
z33.array(z33.lazy(() => CreateEntityUsageAlertResponse$inboundSchema))
|
|
5873
|
+
),
|
|
5874
|
+
overage_allowed: optional2(
|
|
5875
|
+
z33.array(z33.lazy(() => CreateEntityOverageAllowedResponse$inboundSchema))
|
|
5758
5876
|
)
|
|
5759
5877
|
}),
|
|
5760
5878
|
z33.transform((v) => {
|
|
5761
5879
|
return remap(v, {
|
|
5762
5880
|
"spend_limits": "spendLimits",
|
|
5763
|
-
"usage_alerts": "usageAlerts"
|
|
5881
|
+
"usage_alerts": "usageAlerts",
|
|
5882
|
+
"overage_allowed": "overageAllowed"
|
|
5764
5883
|
});
|
|
5765
5884
|
})
|
|
5766
5885
|
);
|
|
@@ -6110,11 +6229,13 @@ var CreatePlanExpiryDurationTypeRequest$outboundSchema = z35.enum(CreatePlanExpi
|
|
|
6110
6229
|
var CreatePlanRolloverRequest$outboundSchema = z35.pipe(
|
|
6111
6230
|
z35.object({
|
|
6112
6231
|
max: z35.optional(z35.number()),
|
|
6232
|
+
maxPercentage: z35.optional(z35.number()),
|
|
6113
6233
|
expiryDurationType: CreatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
6114
6234
|
expiryDurationLength: z35.optional(z35.number())
|
|
6115
6235
|
}),
|
|
6116
6236
|
z35.transform((v) => {
|
|
6117
6237
|
return remap(v, {
|
|
6238
|
+
maxPercentage: "max_percentage",
|
|
6118
6239
|
expiryDurationType: "expiry_duration_type",
|
|
6119
6240
|
expiryDurationLength: "expiry_duration_length"
|
|
6120
6241
|
});
|
|
@@ -6291,11 +6412,13 @@ var CreatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePla
|
|
|
6291
6412
|
var CreatePlanRolloverResponse$inboundSchema = z35.pipe(
|
|
6292
6413
|
z35.object({
|
|
6293
6414
|
max: nullable(number2()),
|
|
6415
|
+
max_percentage: z35.optional(z35.nullable(number2())),
|
|
6294
6416
|
expiry_duration_type: CreatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
6295
6417
|
expiry_duration_length: optional2(number2())
|
|
6296
6418
|
}),
|
|
6297
6419
|
z35.transform((v) => {
|
|
6298
6420
|
return remap(v, {
|
|
6421
|
+
"max_percentage": "maxPercentage",
|
|
6299
6422
|
"expiry_duration_type": "expiryDurationType",
|
|
6300
6423
|
"expiry_duration_length": "expiryDurationLength"
|
|
6301
6424
|
});
|
|
@@ -6517,6 +6640,17 @@ var CustomerUsageAlert$inboundSchema = z37.pipe(
|
|
|
6517
6640
|
});
|
|
6518
6641
|
})
|
|
6519
6642
|
);
|
|
6643
|
+
var CustomerOverageAllowed$inboundSchema = z37.pipe(
|
|
6644
|
+
z37.object({
|
|
6645
|
+
feature_id: string4(),
|
|
6646
|
+
enabled: z37._default(boolean2(), false)
|
|
6647
|
+
}),
|
|
6648
|
+
z37.transform((v) => {
|
|
6649
|
+
return remap(v, {
|
|
6650
|
+
"feature_id": "featureId"
|
|
6651
|
+
});
|
|
6652
|
+
})
|
|
6653
|
+
);
|
|
6520
6654
|
var CustomerBillingControls$inboundSchema = z37.pipe(
|
|
6521
6655
|
z37.object({
|
|
6522
6656
|
auto_topups: optional2(
|
|
@@ -6527,13 +6661,17 @@ var CustomerBillingControls$inboundSchema = z37.pipe(
|
|
|
6527
6661
|
),
|
|
6528
6662
|
usage_alerts: optional2(
|
|
6529
6663
|
z37.array(z37.lazy(() => CustomerUsageAlert$inboundSchema))
|
|
6664
|
+
),
|
|
6665
|
+
overage_allowed: optional2(
|
|
6666
|
+
z37.array(z37.lazy(() => CustomerOverageAllowed$inboundSchema))
|
|
6530
6667
|
)
|
|
6531
6668
|
}),
|
|
6532
6669
|
z37.transform((v) => {
|
|
6533
6670
|
return remap(v, {
|
|
6534
6671
|
"auto_topups": "autoTopups",
|
|
6535
6672
|
"spend_limits": "spendLimits",
|
|
6536
|
-
"usage_alerts": "usageAlerts"
|
|
6673
|
+
"usage_alerts": "usageAlerts",
|
|
6674
|
+
"overage_allowed": "overageAllowed"
|
|
6537
6675
|
});
|
|
6538
6676
|
})
|
|
6539
6677
|
);
|
|
@@ -7072,6 +7210,17 @@ var GetEntityUsageAlert$inboundSchema = z44.pipe(
|
|
|
7072
7210
|
});
|
|
7073
7211
|
})
|
|
7074
7212
|
);
|
|
7213
|
+
var GetEntityOverageAllowed$inboundSchema = z44.pipe(
|
|
7214
|
+
z44.object({
|
|
7215
|
+
feature_id: string4(),
|
|
7216
|
+
enabled: z44._default(boolean2(), false)
|
|
7217
|
+
}),
|
|
7218
|
+
z44.transform((v) => {
|
|
7219
|
+
return remap(v, {
|
|
7220
|
+
"feature_id": "featureId"
|
|
7221
|
+
});
|
|
7222
|
+
})
|
|
7223
|
+
);
|
|
7075
7224
|
var GetEntityBillingControls$inboundSchema = z44.pipe(
|
|
7076
7225
|
z44.object({
|
|
7077
7226
|
spend_limits: optional2(
|
|
@@ -7079,12 +7228,16 @@ var GetEntityBillingControls$inboundSchema = z44.pipe(
|
|
|
7079
7228
|
),
|
|
7080
7229
|
usage_alerts: optional2(
|
|
7081
7230
|
z44.array(z44.lazy(() => GetEntityUsageAlert$inboundSchema))
|
|
7231
|
+
),
|
|
7232
|
+
overage_allowed: optional2(
|
|
7233
|
+
z44.array(z44.lazy(() => GetEntityOverageAllowed$inboundSchema))
|
|
7082
7234
|
)
|
|
7083
7235
|
}),
|
|
7084
7236
|
z44.transform((v) => {
|
|
7085
7237
|
return remap(v, {
|
|
7086
7238
|
"spend_limits": "spendLimits",
|
|
7087
|
-
"usage_alerts": "usageAlerts"
|
|
7239
|
+
"usage_alerts": "usageAlerts",
|
|
7240
|
+
"overage_allowed": "overageAllowed"
|
|
7088
7241
|
});
|
|
7089
7242
|
})
|
|
7090
7243
|
);
|
|
@@ -7262,6 +7415,17 @@ var GetOrCreateCustomerUsageAlert$outboundSchema = z46.pipe(
|
|
|
7262
7415
|
});
|
|
7263
7416
|
})
|
|
7264
7417
|
);
|
|
7418
|
+
var GetOrCreateCustomerOverageAllowed$outboundSchema = z46.pipe(
|
|
7419
|
+
z46.object({
|
|
7420
|
+
featureId: z46.string(),
|
|
7421
|
+
enabled: z46._default(z46.boolean(), false)
|
|
7422
|
+
}),
|
|
7423
|
+
z46.transform((v) => {
|
|
7424
|
+
return remap(v, {
|
|
7425
|
+
featureId: "feature_id"
|
|
7426
|
+
});
|
|
7427
|
+
})
|
|
7428
|
+
);
|
|
7265
7429
|
var GetOrCreateCustomerBillingControls$outboundSchema = z46.pipe(
|
|
7266
7430
|
z46.object({
|
|
7267
7431
|
autoTopups: z46.optional(
|
|
@@ -7272,13 +7436,17 @@ var GetOrCreateCustomerBillingControls$outboundSchema = z46.pipe(
|
|
|
7272
7436
|
),
|
|
7273
7437
|
usageAlerts: z46.optional(
|
|
7274
7438
|
z46.array(z46.lazy(() => GetOrCreateCustomerUsageAlert$outboundSchema))
|
|
7439
|
+
),
|
|
7440
|
+
overageAllowed: z46.optional(
|
|
7441
|
+
z46.array(z46.lazy(() => GetOrCreateCustomerOverageAllowed$outboundSchema))
|
|
7275
7442
|
)
|
|
7276
7443
|
}),
|
|
7277
7444
|
z46.transform((v) => {
|
|
7278
7445
|
return remap(v, {
|
|
7279
7446
|
autoTopups: "auto_topups",
|
|
7280
7447
|
spendLimits: "spend_limits",
|
|
7281
|
-
usageAlerts: "usage_alerts"
|
|
7448
|
+
usageAlerts: "usage_alerts",
|
|
7449
|
+
overageAllowed: "overage_allowed"
|
|
7282
7450
|
});
|
|
7283
7451
|
})
|
|
7284
7452
|
);
|
|
@@ -7503,11 +7671,13 @@ var GetPlanExpiryDurationType$inboundSchema = inboundSchema(GetPlanExpiryDuratio
|
|
|
7503
7671
|
var GetPlanRollover$inboundSchema = z47.pipe(
|
|
7504
7672
|
z47.object({
|
|
7505
7673
|
max: nullable(number2()),
|
|
7674
|
+
max_percentage: z47.optional(z47.nullable(number2())),
|
|
7506
7675
|
expiry_duration_type: GetPlanExpiryDurationType$inboundSchema,
|
|
7507
7676
|
expiry_duration_length: optional2(number2())
|
|
7508
7677
|
}),
|
|
7509
7678
|
z47.transform((v) => {
|
|
7510
7679
|
return remap(v, {
|
|
7680
|
+
"max_percentage": "maxPercentage",
|
|
7511
7681
|
"expiry_duration_type": "expiryDurationType",
|
|
7512
7682
|
"expiry_duration_length": "expiryDurationLength"
|
|
7513
7683
|
});
|
|
@@ -7735,6 +7905,17 @@ var ListCustomersUsageAlert$inboundSchema = z48.pipe(
|
|
|
7735
7905
|
});
|
|
7736
7906
|
})
|
|
7737
7907
|
);
|
|
7908
|
+
var ListCustomersOverageAllowed$inboundSchema = z48.pipe(
|
|
7909
|
+
z48.object({
|
|
7910
|
+
feature_id: string4(),
|
|
7911
|
+
enabled: z48._default(boolean2(), false)
|
|
7912
|
+
}),
|
|
7913
|
+
z48.transform((v) => {
|
|
7914
|
+
return remap(v, {
|
|
7915
|
+
"feature_id": "featureId"
|
|
7916
|
+
});
|
|
7917
|
+
})
|
|
7918
|
+
);
|
|
7738
7919
|
var ListCustomersBillingControls$inboundSchema = z48.pipe(
|
|
7739
7920
|
z48.object({
|
|
7740
7921
|
auto_topups: optional2(
|
|
@@ -7745,13 +7926,17 @@ var ListCustomersBillingControls$inboundSchema = z48.pipe(
|
|
|
7745
7926
|
),
|
|
7746
7927
|
usage_alerts: optional2(
|
|
7747
7928
|
z48.array(z48.lazy(() => ListCustomersUsageAlert$inboundSchema))
|
|
7929
|
+
),
|
|
7930
|
+
overage_allowed: optional2(
|
|
7931
|
+
z48.array(z48.lazy(() => ListCustomersOverageAllowed$inboundSchema))
|
|
7748
7932
|
)
|
|
7749
7933
|
}),
|
|
7750
7934
|
z48.transform((v) => {
|
|
7751
7935
|
return remap(v, {
|
|
7752
7936
|
"auto_topups": "autoTopups",
|
|
7753
7937
|
"spend_limits": "spendLimits",
|
|
7754
|
-
"usage_alerts": "usageAlerts"
|
|
7938
|
+
"usage_alerts": "usageAlerts",
|
|
7939
|
+
"overage_allowed": "overageAllowed"
|
|
7755
7940
|
});
|
|
7756
7941
|
})
|
|
7757
7942
|
);
|
|
@@ -8206,11 +8391,13 @@ var ListPlansExpiryDurationType$inboundSchema = inboundSchema(ListPlansExpiryDur
|
|
|
8206
8391
|
var ListPlansRollover$inboundSchema = z51.pipe(
|
|
8207
8392
|
z51.object({
|
|
8208
8393
|
max: nullable(number2()),
|
|
8394
|
+
max_percentage: z51.optional(z51.nullable(number2())),
|
|
8209
8395
|
expiry_duration_type: ListPlansExpiryDurationType$inboundSchema,
|
|
8210
8396
|
expiry_duration_length: optional2(number2())
|
|
8211
8397
|
}),
|
|
8212
8398
|
z51.transform((v) => {
|
|
8213
8399
|
return remap(v, {
|
|
8400
|
+
"max_percentage": "maxPercentage",
|
|
8214
8401
|
"expiry_duration_type": "expiryDurationType",
|
|
8215
8402
|
"expiry_duration_length": "expiryDurationLength"
|
|
8216
8403
|
});
|
|
@@ -8454,11 +8641,13 @@ var MultiAttachExpiryDurationType$outboundSchema = z52.enum(MultiAttachExpiryDur
|
|
|
8454
8641
|
var MultiAttachRollover$outboundSchema = z52.pipe(
|
|
8455
8642
|
z52.object({
|
|
8456
8643
|
max: z52.optional(z52.number()),
|
|
8644
|
+
maxPercentage: z52.optional(z52.number()),
|
|
8457
8645
|
expiryDurationType: MultiAttachExpiryDurationType$outboundSchema,
|
|
8458
8646
|
expiryDurationLength: z52.optional(z52.number())
|
|
8459
8647
|
}),
|
|
8460
8648
|
z52.transform((v) => {
|
|
8461
8649
|
return remap(v, {
|
|
8650
|
+
maxPercentage: "max_percentage",
|
|
8462
8651
|
expiryDurationType: "expiry_duration_type",
|
|
8463
8652
|
expiryDurationLength: "expiry_duration_length"
|
|
8464
8653
|
});
|
|
@@ -8585,6 +8774,17 @@ var MultiAttachUsageAlert$outboundSchema = z52.pipe(
|
|
|
8585
8774
|
});
|
|
8586
8775
|
})
|
|
8587
8776
|
);
|
|
8777
|
+
var MultiAttachOverageAllowed$outboundSchema = z52.pipe(
|
|
8778
|
+
z52.object({
|
|
8779
|
+
featureId: z52.string(),
|
|
8780
|
+
enabled: z52._default(z52.boolean(), false)
|
|
8781
|
+
}),
|
|
8782
|
+
z52.transform((v) => {
|
|
8783
|
+
return remap(v, {
|
|
8784
|
+
featureId: "feature_id"
|
|
8785
|
+
});
|
|
8786
|
+
})
|
|
8787
|
+
);
|
|
8588
8788
|
var MultiAttachBillingControls$outboundSchema = z52.pipe(
|
|
8589
8789
|
z52.object({
|
|
8590
8790
|
spendLimits: z52.optional(
|
|
@@ -8592,12 +8792,16 @@ var MultiAttachBillingControls$outboundSchema = z52.pipe(
|
|
|
8592
8792
|
),
|
|
8593
8793
|
usageAlerts: z52.optional(
|
|
8594
8794
|
z52.array(z52.lazy(() => MultiAttachUsageAlert$outboundSchema))
|
|
8795
|
+
),
|
|
8796
|
+
overageAllowed: z52.optional(
|
|
8797
|
+
z52.array(z52.lazy(() => MultiAttachOverageAllowed$outboundSchema))
|
|
8595
8798
|
)
|
|
8596
8799
|
}),
|
|
8597
8800
|
z52.transform((v) => {
|
|
8598
8801
|
return remap(v, {
|
|
8599
8802
|
spendLimits: "spend_limits",
|
|
8600
|
-
usageAlerts: "usage_alerts"
|
|
8803
|
+
usageAlerts: "usage_alerts",
|
|
8804
|
+
overageAllowed: "overage_allowed"
|
|
8601
8805
|
});
|
|
8602
8806
|
})
|
|
8603
8807
|
);
|
|
@@ -8891,11 +9095,13 @@ var PreviewAttachExpiryDurationType$outboundSchema = z54.enum(PreviewAttachExpir
|
|
|
8891
9095
|
var PreviewAttachRollover$outboundSchema = z54.pipe(
|
|
8892
9096
|
z54.object({
|
|
8893
9097
|
max: z54.optional(z54.number()),
|
|
9098
|
+
maxPercentage: z54.optional(z54.number()),
|
|
8894
9099
|
expiryDurationType: PreviewAttachExpiryDurationType$outboundSchema,
|
|
8895
9100
|
expiryDurationLength: z54.optional(z54.number())
|
|
8896
9101
|
}),
|
|
8897
9102
|
z54.transform((v) => {
|
|
8898
9103
|
return remap(v, {
|
|
9104
|
+
maxPercentage: "max_percentage",
|
|
8899
9105
|
expiryDurationType: "expiry_duration_type",
|
|
8900
9106
|
expiryDurationLength: "expiry_duration_length"
|
|
8901
9107
|
});
|
|
@@ -9439,11 +9645,13 @@ var PreviewMultiAttachExpiryDurationType$outboundSchema = z55.enum(PreviewMultiA
|
|
|
9439
9645
|
var PreviewMultiAttachRollover$outboundSchema = z55.pipe(
|
|
9440
9646
|
z55.object({
|
|
9441
9647
|
max: z55.optional(z55.number()),
|
|
9648
|
+
maxPercentage: z55.optional(z55.number()),
|
|
9442
9649
|
expiryDurationType: PreviewMultiAttachExpiryDurationType$outboundSchema,
|
|
9443
9650
|
expiryDurationLength: z55.optional(z55.number())
|
|
9444
9651
|
}),
|
|
9445
9652
|
z55.transform((v) => {
|
|
9446
9653
|
return remap(v, {
|
|
9654
|
+
maxPercentage: "max_percentage",
|
|
9447
9655
|
expiryDurationType: "expiry_duration_type",
|
|
9448
9656
|
expiryDurationLength: "expiry_duration_length"
|
|
9449
9657
|
});
|
|
@@ -9583,6 +9791,17 @@ var PreviewMultiAttachUsageAlert$outboundSchema = z55.pipe(
|
|
|
9583
9791
|
});
|
|
9584
9792
|
})
|
|
9585
9793
|
);
|
|
9794
|
+
var PreviewMultiAttachOverageAllowed$outboundSchema = z55.pipe(
|
|
9795
|
+
z55.object({
|
|
9796
|
+
featureId: z55.string(),
|
|
9797
|
+
enabled: z55._default(z55.boolean(), false)
|
|
9798
|
+
}),
|
|
9799
|
+
z55.transform((v) => {
|
|
9800
|
+
return remap(v, {
|
|
9801
|
+
featureId: "feature_id"
|
|
9802
|
+
});
|
|
9803
|
+
})
|
|
9804
|
+
);
|
|
9586
9805
|
var PreviewMultiAttachBillingControls$outboundSchema = z55.pipe(
|
|
9587
9806
|
z55.object({
|
|
9588
9807
|
spendLimits: z55.optional(
|
|
@@ -9590,12 +9809,16 @@ var PreviewMultiAttachBillingControls$outboundSchema = z55.pipe(
|
|
|
9590
9809
|
),
|
|
9591
9810
|
usageAlerts: z55.optional(
|
|
9592
9811
|
z55.array(z55.lazy(() => PreviewMultiAttachUsageAlert$outboundSchema))
|
|
9812
|
+
),
|
|
9813
|
+
overageAllowed: z55.optional(
|
|
9814
|
+
z55.array(z55.lazy(() => PreviewMultiAttachOverageAllowed$outboundSchema))
|
|
9593
9815
|
)
|
|
9594
9816
|
}),
|
|
9595
9817
|
z55.transform((v) => {
|
|
9596
9818
|
return remap(v, {
|
|
9597
9819
|
spendLimits: "spend_limits",
|
|
9598
|
-
usageAlerts: "usage_alerts"
|
|
9820
|
+
usageAlerts: "usage_alerts",
|
|
9821
|
+
overageAllowed: "overage_allowed"
|
|
9599
9822
|
});
|
|
9600
9823
|
})
|
|
9601
9824
|
);
|
|
@@ -10051,11 +10274,13 @@ var PreviewUpdateExpiryDurationType$outboundSchema = z56.enum(PreviewUpdateExpir
|
|
|
10051
10274
|
var PreviewUpdateRollover$outboundSchema = z56.pipe(
|
|
10052
10275
|
z56.object({
|
|
10053
10276
|
max: z56.optional(z56.number()),
|
|
10277
|
+
maxPercentage: z56.optional(z56.number()),
|
|
10054
10278
|
expiryDurationType: PreviewUpdateExpiryDurationType$outboundSchema,
|
|
10055
10279
|
expiryDurationLength: z56.optional(z56.number())
|
|
10056
10280
|
}),
|
|
10057
10281
|
z56.transform((v) => {
|
|
10058
10282
|
return remap(v, {
|
|
10283
|
+
maxPercentage: "max_percentage",
|
|
10059
10284
|
expiryDurationType: "expiry_duration_type",
|
|
10060
10285
|
expiryDurationLength: "expiry_duration_length"
|
|
10061
10286
|
});
|
|
@@ -10571,11 +10796,13 @@ var SetupPaymentExpiryDurationType$outboundSchema = z58.enum(SetupPaymentExpiryD
|
|
|
10571
10796
|
var SetupPaymentRollover$outboundSchema = z58.pipe(
|
|
10572
10797
|
z58.object({
|
|
10573
10798
|
max: z58.optional(z58.number()),
|
|
10799
|
+
maxPercentage: z58.optional(z58.number()),
|
|
10574
10800
|
expiryDurationType: SetupPaymentExpiryDurationType$outboundSchema,
|
|
10575
10801
|
expiryDurationLength: z58.optional(z58.number())
|
|
10576
10802
|
}),
|
|
10577
10803
|
z58.transform((v) => {
|
|
10578
10804
|
return remap(v, {
|
|
10805
|
+
maxPercentage: "max_percentage",
|
|
10579
10806
|
expiryDurationType: "expiry_duration_type",
|
|
10580
10807
|
expiryDurationLength: "expiry_duration_length"
|
|
10581
10808
|
});
|
|
@@ -10920,6 +11147,17 @@ var UpdateCustomerUsageAlertRequestBody$outboundSchema = z61.pipe(
|
|
|
10920
11147
|
});
|
|
10921
11148
|
})
|
|
10922
11149
|
);
|
|
11150
|
+
var UpdateCustomerOverageAllowedRequest$outboundSchema = z61.pipe(
|
|
11151
|
+
z61.object({
|
|
11152
|
+
featureId: z61.string(),
|
|
11153
|
+
enabled: z61._default(z61.boolean(), false)
|
|
11154
|
+
}),
|
|
11155
|
+
z61.transform((v) => {
|
|
11156
|
+
return remap(v, {
|
|
11157
|
+
featureId: "feature_id"
|
|
11158
|
+
});
|
|
11159
|
+
})
|
|
11160
|
+
);
|
|
10923
11161
|
var UpdateCustomerBillingControlsRequest$outboundSchema = z61.pipe(
|
|
10924
11162
|
z61.object({
|
|
10925
11163
|
autoTopups: z61.optional(
|
|
@@ -10930,13 +11168,17 @@ var UpdateCustomerBillingControlsRequest$outboundSchema = z61.pipe(
|
|
|
10930
11168
|
),
|
|
10931
11169
|
usageAlerts: z61.optional(
|
|
10932
11170
|
z61.array(z61.lazy(() => UpdateCustomerUsageAlertRequestBody$outboundSchema))
|
|
11171
|
+
),
|
|
11172
|
+
overageAllowed: z61.optional(
|
|
11173
|
+
z61.array(z61.lazy(() => UpdateCustomerOverageAllowedRequest$outboundSchema))
|
|
10933
11174
|
)
|
|
10934
11175
|
}),
|
|
10935
11176
|
z61.transform((v) => {
|
|
10936
11177
|
return remap(v, {
|
|
10937
11178
|
autoTopups: "auto_topups",
|
|
10938
11179
|
spendLimits: "spend_limits",
|
|
10939
|
-
usageAlerts: "usage_alerts"
|
|
11180
|
+
usageAlerts: "usage_alerts",
|
|
11181
|
+
overageAllowed: "overage_allowed"
|
|
10940
11182
|
});
|
|
10941
11183
|
})
|
|
10942
11184
|
);
|
|
@@ -11024,6 +11266,17 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z61.pipe(
|
|
|
11024
11266
|
});
|
|
11025
11267
|
})
|
|
11026
11268
|
);
|
|
11269
|
+
var UpdateCustomerOverageAllowedResponse$inboundSchema = z61.pipe(
|
|
11270
|
+
z61.object({
|
|
11271
|
+
feature_id: string4(),
|
|
11272
|
+
enabled: z61._default(boolean2(), false)
|
|
11273
|
+
}),
|
|
11274
|
+
z61.transform((v) => {
|
|
11275
|
+
return remap(v, {
|
|
11276
|
+
"feature_id": "featureId"
|
|
11277
|
+
});
|
|
11278
|
+
})
|
|
11279
|
+
);
|
|
11027
11280
|
var UpdateCustomerBillingControlsResponse$inboundSchema = z61.pipe(
|
|
11028
11281
|
z61.object({
|
|
11029
11282
|
auto_topups: optional2(
|
|
@@ -11034,13 +11287,17 @@ var UpdateCustomerBillingControlsResponse$inboundSchema = z61.pipe(
|
|
|
11034
11287
|
),
|
|
11035
11288
|
usage_alerts: optional2(
|
|
11036
11289
|
z61.array(z61.lazy(() => UpdateCustomerUsageAlertResponse$inboundSchema))
|
|
11290
|
+
),
|
|
11291
|
+
overage_allowed: optional2(
|
|
11292
|
+
z61.array(z61.lazy(() => UpdateCustomerOverageAllowedResponse$inboundSchema))
|
|
11037
11293
|
)
|
|
11038
11294
|
}),
|
|
11039
11295
|
z61.transform((v) => {
|
|
11040
11296
|
return remap(v, {
|
|
11041
11297
|
"auto_topups": "autoTopups",
|
|
11042
11298
|
"spend_limits": "spendLimits",
|
|
11043
|
-
"usage_alerts": "usageAlerts"
|
|
11299
|
+
"usage_alerts": "usageAlerts",
|
|
11300
|
+
"overage_allowed": "overageAllowed"
|
|
11044
11301
|
});
|
|
11045
11302
|
})
|
|
11046
11303
|
);
|
|
@@ -11232,6 +11489,17 @@ var UpdateEntityUsageAlertRequestBody$outboundSchema = z62.pipe(
|
|
|
11232
11489
|
});
|
|
11233
11490
|
})
|
|
11234
11491
|
);
|
|
11492
|
+
var UpdateEntityOverageAllowedRequest$outboundSchema = z62.pipe(
|
|
11493
|
+
z62.object({
|
|
11494
|
+
featureId: z62.string(),
|
|
11495
|
+
enabled: z62._default(z62.boolean(), false)
|
|
11496
|
+
}),
|
|
11497
|
+
z62.transform((v) => {
|
|
11498
|
+
return remap(v, {
|
|
11499
|
+
featureId: "feature_id"
|
|
11500
|
+
});
|
|
11501
|
+
})
|
|
11502
|
+
);
|
|
11235
11503
|
var UpdateEntityBillingControlsRequest$outboundSchema = z62.pipe(
|
|
11236
11504
|
z62.object({
|
|
11237
11505
|
spendLimits: z62.optional(
|
|
@@ -11239,12 +11507,16 @@ var UpdateEntityBillingControlsRequest$outboundSchema = z62.pipe(
|
|
|
11239
11507
|
),
|
|
11240
11508
|
usageAlerts: z62.optional(
|
|
11241
11509
|
z62.array(z62.lazy(() => UpdateEntityUsageAlertRequestBody$outboundSchema))
|
|
11510
|
+
),
|
|
11511
|
+
overageAllowed: z62.optional(
|
|
11512
|
+
z62.array(z62.lazy(() => UpdateEntityOverageAllowedRequest$outboundSchema))
|
|
11242
11513
|
)
|
|
11243
11514
|
}),
|
|
11244
11515
|
z62.transform((v) => {
|
|
11245
11516
|
return remap(v, {
|
|
11246
11517
|
spendLimits: "spend_limits",
|
|
11247
|
-
usageAlerts: "usage_alerts"
|
|
11518
|
+
usageAlerts: "usage_alerts",
|
|
11519
|
+
overageAllowed: "overage_allowed"
|
|
11248
11520
|
});
|
|
11249
11521
|
})
|
|
11250
11522
|
);
|
|
@@ -11396,6 +11668,17 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z62.pipe(
|
|
|
11396
11668
|
});
|
|
11397
11669
|
})
|
|
11398
11670
|
);
|
|
11671
|
+
var UpdateEntityOverageAllowedResponse$inboundSchema = z62.pipe(
|
|
11672
|
+
z62.object({
|
|
11673
|
+
feature_id: string4(),
|
|
11674
|
+
enabled: z62._default(boolean2(), false)
|
|
11675
|
+
}),
|
|
11676
|
+
z62.transform((v) => {
|
|
11677
|
+
return remap(v, {
|
|
11678
|
+
"feature_id": "featureId"
|
|
11679
|
+
});
|
|
11680
|
+
})
|
|
11681
|
+
);
|
|
11399
11682
|
var UpdateEntityBillingControlsResponse$inboundSchema = z62.pipe(
|
|
11400
11683
|
z62.object({
|
|
11401
11684
|
spend_limits: optional2(
|
|
@@ -11403,12 +11686,16 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z62.pipe(
|
|
|
11403
11686
|
),
|
|
11404
11687
|
usage_alerts: optional2(
|
|
11405
11688
|
z62.array(z62.lazy(() => UpdateEntityUsageAlertResponse$inboundSchema))
|
|
11689
|
+
),
|
|
11690
|
+
overage_allowed: optional2(
|
|
11691
|
+
z62.array(z62.lazy(() => UpdateEntityOverageAllowedResponse$inboundSchema))
|
|
11406
11692
|
)
|
|
11407
11693
|
}),
|
|
11408
11694
|
z62.transform((v) => {
|
|
11409
11695
|
return remap(v, {
|
|
11410
11696
|
"spend_limits": "spendLimits",
|
|
11411
|
-
"usage_alerts": "usageAlerts"
|
|
11697
|
+
"usage_alerts": "usageAlerts",
|
|
11698
|
+
"overage_allowed": "overageAllowed"
|
|
11412
11699
|
});
|
|
11413
11700
|
})
|
|
11414
11701
|
);
|
|
@@ -11761,11 +12048,13 @@ var UpdatePlanExpiryDurationTypeRequest$outboundSchema = z64.enum(UpdatePlanExpi
|
|
|
11761
12048
|
var UpdatePlanRolloverRequest$outboundSchema = z64.pipe(
|
|
11762
12049
|
z64.object({
|
|
11763
12050
|
max: z64.optional(z64.number()),
|
|
12051
|
+
maxPercentage: z64.optional(z64.number()),
|
|
11764
12052
|
expiryDurationType: UpdatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
11765
12053
|
expiryDurationLength: z64.optional(z64.number())
|
|
11766
12054
|
}),
|
|
11767
12055
|
z64.transform((v) => {
|
|
11768
12056
|
return remap(v, {
|
|
12057
|
+
maxPercentage: "max_percentage",
|
|
11769
12058
|
expiryDurationType: "expiry_duration_type",
|
|
11770
12059
|
expiryDurationLength: "expiry_duration_length"
|
|
11771
12060
|
});
|
|
@@ -11950,11 +12239,13 @@ var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePla
|
|
|
11950
12239
|
var UpdatePlanRolloverResponse$inboundSchema = z64.pipe(
|
|
11951
12240
|
z64.object({
|
|
11952
12241
|
max: nullable(number2()),
|
|
12242
|
+
max_percentage: z64.optional(z64.nullable(number2())),
|
|
11953
12243
|
expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
11954
12244
|
expiry_duration_length: optional2(number2())
|
|
11955
12245
|
}),
|
|
11956
12246
|
z64.transform((v) => {
|
|
11957
12247
|
return remap(v, {
|
|
12248
|
+
"max_percentage": "maxPercentage",
|
|
11958
12249
|
"expiry_duration_type": "expiryDurationType",
|
|
11959
12250
|
"expiry_duration_length": "expiryDurationLength"
|
|
11960
12251
|
});
|
|
@@ -12231,7 +12522,8 @@ async function $do2(client, request, options) {
|
|
|
12231
12522
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set([
|
|
12232
12523
|
"check",
|
|
12233
12524
|
"track",
|
|
12234
|
-
"getOrCreateCustomer"
|
|
12525
|
+
"getOrCreateCustomer",
|
|
12526
|
+
"getEntity"
|
|
12235
12527
|
]);
|
|
12236
12528
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
12237
12529
|
var FAIL_OPEN_BODIES = {
|
|
@@ -12261,6 +12553,18 @@ var FAIL_OPEN_BODIES = {
|
|
|
12261
12553
|
purchases: [],
|
|
12262
12554
|
balances: {},
|
|
12263
12555
|
flags: {}
|
|
12556
|
+
},
|
|
12557
|
+
getEntity: {
|
|
12558
|
+
id: null,
|
|
12559
|
+
name: null,
|
|
12560
|
+
customer_id: null,
|
|
12561
|
+
feature_id: null,
|
|
12562
|
+
created_at: 0,
|
|
12563
|
+
env: "live",
|
|
12564
|
+
subscriptions: [],
|
|
12565
|
+
purchases: [],
|
|
12566
|
+
balances: {},
|
|
12567
|
+
flags: {}
|
|
12264
12568
|
}
|
|
12265
12569
|
};
|
|
12266
12570
|
var FailOpenHook = class {
|