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
|
@@ -187,6 +187,7 @@ var attachProrationOutboundSchema = import_v42.z.object({
|
|
|
187
187
|
});
|
|
188
188
|
var attachRolloverOutboundSchema = import_v42.z.object({
|
|
189
189
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
190
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
190
191
|
expiry_duration_type: import_v42.z.string(),
|
|
191
192
|
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
192
193
|
});
|
|
@@ -287,6 +288,7 @@ var attachProrationSchema = import_v42.z.object({
|
|
|
287
288
|
var attachExpiryDurationTypeSchema = closedEnumSchema2;
|
|
288
289
|
var attachRolloverSchema = import_v42.z.object({
|
|
289
290
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
291
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
290
292
|
expiryDurationType: attachExpiryDurationTypeSchema,
|
|
291
293
|
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
292
294
|
});
|
|
@@ -377,6 +379,10 @@ var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
|
|
|
377
379
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
378
380
|
overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
|
|
379
381
|
});
|
|
382
|
+
var getOrCreateCustomerOverageAllowedSchema = import_v44.z.object({
|
|
383
|
+
featureId: import_v44.z.string(),
|
|
384
|
+
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
385
|
+
});
|
|
380
386
|
var getOrCreateCustomerPurchaseLimitOutboundSchema = import_v44.z.object({
|
|
381
387
|
interval: import_v44.z.string(),
|
|
382
388
|
interval_count: import_v44.z.number(),
|
|
@@ -387,7 +393,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = import_v44.z.object({
|
|
|
387
393
|
enabled: import_v44.z.boolean(),
|
|
388
394
|
threshold: import_v44.z.number(),
|
|
389
395
|
quantity: import_v44.z.number(),
|
|
390
|
-
purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional()
|
|
396
|
+
purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional(),
|
|
397
|
+
invoice_mode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
391
398
|
});
|
|
392
399
|
var getOrCreateCustomerSpendLimitOutboundSchema = import_v44.z.object({
|
|
393
400
|
feature_id: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
|
|
@@ -401,6 +408,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = import_v44.z.object({
|
|
|
401
408
|
threshold_type: import_v44.z.string(),
|
|
402
409
|
name: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
|
|
403
410
|
});
|
|
411
|
+
var getOrCreateCustomerOverageAllowedOutboundSchema = import_v44.z.object({
|
|
412
|
+
feature_id: import_v44.z.string(),
|
|
413
|
+
enabled: import_v44.z.boolean()
|
|
414
|
+
});
|
|
404
415
|
var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
405
416
|
auto_topups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupOutboundSchema), import_v44.z.undefined()]).optional(),
|
|
406
417
|
spend_limits: import_v44.z.union([
|
|
@@ -410,6 +421,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
|
|
|
410
421
|
usage_alerts: import_v44.z.union([
|
|
411
422
|
import_v44.z.array(getOrCreateCustomerUsageAlertOutboundSchema),
|
|
412
423
|
import_v44.z.undefined()
|
|
424
|
+
]).optional(),
|
|
425
|
+
overage_allowed: import_v44.z.union([
|
|
426
|
+
import_v44.z.array(getOrCreateCustomerOverageAllowedOutboundSchema),
|
|
427
|
+
import_v44.z.undefined()
|
|
413
428
|
]).optional()
|
|
414
429
|
});
|
|
415
430
|
var getOrCreateCustomerParamsOutboundSchema = import_v44.z.object({
|
|
@@ -437,7 +452,8 @@ var getOrCreateCustomerAutoTopupSchema = import_v44.z.object({
|
|
|
437
452
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
438
453
|
threshold: import_v44.z.number(),
|
|
439
454
|
quantity: import_v44.z.number(),
|
|
440
|
-
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional()
|
|
455
|
+
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional(),
|
|
456
|
+
invoiceMode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
441
457
|
});
|
|
442
458
|
var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
|
|
443
459
|
var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
@@ -450,7 +466,8 @@ var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
|
450
466
|
var getOrCreateCustomerBillingControlsSchema = import_v44.z.object({
|
|
451
467
|
autoTopups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupSchema), import_v44.z.undefined()]).optional(),
|
|
452
468
|
spendLimits: import_v44.z.union([import_v44.z.array(getOrCreateCustomerSpendLimitSchema), import_v44.z.undefined()]).optional(),
|
|
453
|
-
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional()
|
|
469
|
+
usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional(),
|
|
470
|
+
overageAllowed: import_v44.z.union([import_v44.z.array(getOrCreateCustomerOverageAllowedSchema), import_v44.z.undefined()]).optional()
|
|
454
471
|
});
|
|
455
472
|
var getOrCreateCustomerParamsSchema = import_v44.z.object({
|
|
456
473
|
customerId: import_v44.z.string().nullable(),
|
|
@@ -589,6 +606,7 @@ var listPlansItemPriceSchema = import_v46.z.object({
|
|
|
589
606
|
var listPlansExpiryDurationTypeSchema = openEnumSchema2;
|
|
590
607
|
var listPlansRolloverSchema = import_v46.z.object({
|
|
591
608
|
max: import_v46.z.number().nullable(),
|
|
609
|
+
maxPercentage: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional().nullable(),
|
|
592
610
|
expiryDurationType: listPlansExpiryDurationTypeSchema,
|
|
593
611
|
expiryDurationLength: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
|
|
594
612
|
});
|
|
@@ -669,6 +687,10 @@ var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
|
669
687
|
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
670
688
|
overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
671
689
|
});
|
|
690
|
+
var multiAttachOverageAllowedSchema = import_v47.z.object({
|
|
691
|
+
featureId: import_v47.z.string(),
|
|
692
|
+
enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
|
|
693
|
+
});
|
|
672
694
|
var multiAttachInvoiceSchema = import_v47.z.object({
|
|
673
695
|
status: import_v47.z.string().nullable(),
|
|
674
696
|
stripeId: import_v47.z.string(),
|
|
@@ -707,6 +729,7 @@ var multiAttachProrationOutboundSchema = import_v47.z.object({
|
|
|
707
729
|
});
|
|
708
730
|
var multiAttachRolloverOutboundSchema = import_v47.z.object({
|
|
709
731
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
732
|
+
max_percentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
710
733
|
expiry_duration_type: import_v47.z.string(),
|
|
711
734
|
expiry_duration_length: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
712
735
|
});
|
|
@@ -761,9 +784,14 @@ var multiAttachUsageAlertOutboundSchema = import_v47.z.object({
|
|
|
761
784
|
threshold_type: import_v47.z.string(),
|
|
762
785
|
name: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
763
786
|
});
|
|
787
|
+
var multiAttachOverageAllowedOutboundSchema = import_v47.z.object({
|
|
788
|
+
feature_id: import_v47.z.string(),
|
|
789
|
+
enabled: import_v47.z.boolean()
|
|
790
|
+
});
|
|
764
791
|
var multiAttachBillingControlsOutboundSchema = import_v47.z.object({
|
|
765
792
|
spend_limits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
766
|
-
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional()
|
|
793
|
+
usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
794
|
+
overage_allowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedOutboundSchema), import_v47.z.undefined()]).optional()
|
|
767
795
|
});
|
|
768
796
|
var multiAttachEntityDataOutboundSchema = import_v47.z.object({
|
|
769
797
|
feature_id: import_v47.z.string(),
|
|
@@ -807,6 +835,7 @@ var multiAttachProrationSchema = import_v47.z.object({
|
|
|
807
835
|
var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
|
|
808
836
|
var multiAttachRolloverSchema = import_v47.z.object({
|
|
809
837
|
max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
838
|
+
maxPercentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
810
839
|
expiryDurationType: multiAttachExpiryDurationTypeSchema,
|
|
811
840
|
expiryDurationLength: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
|
|
812
841
|
});
|
|
@@ -847,7 +876,8 @@ var multiAttachUsageAlertSchema = import_v47.z.object({
|
|
|
847
876
|
});
|
|
848
877
|
var multiAttachBillingControlsSchema = import_v47.z.object({
|
|
849
878
|
spendLimits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitSchema), import_v47.z.undefined()]).optional(),
|
|
850
|
-
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional()
|
|
879
|
+
usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional(),
|
|
880
|
+
overageAllowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedSchema), import_v47.z.undefined()]).optional()
|
|
851
881
|
});
|
|
852
882
|
var multiAttachEntityDataSchema = import_v47.z.object({
|
|
853
883
|
featureId: import_v47.z.string(),
|
|
@@ -1055,6 +1085,7 @@ var previewAttachProrationOutboundSchema = import_v49.z.object({
|
|
|
1055
1085
|
});
|
|
1056
1086
|
var previewAttachRolloverOutboundSchema = import_v49.z.object({
|
|
1057
1087
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
1088
|
+
max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
1058
1089
|
expiry_duration_type: import_v49.z.string(),
|
|
1059
1090
|
expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
1060
1091
|
});
|
|
@@ -1159,6 +1190,7 @@ var previewAttachProrationSchema = import_v49.z.object({
|
|
|
1159
1190
|
var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
|
|
1160
1191
|
var previewAttachRolloverSchema = import_v49.z.object({
|
|
1161
1192
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
1193
|
+
maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
1162
1194
|
expiryDurationType: previewAttachExpiryDurationTypeSchema,
|
|
1163
1195
|
expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
1164
1196
|
});
|
|
@@ -1268,6 +1300,10 @@ var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
|
1268
1300
|
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
1269
1301
|
overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
1270
1302
|
});
|
|
1303
|
+
var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
|
|
1304
|
+
featureId: import_v410.z.string(),
|
|
1305
|
+
enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
|
|
1306
|
+
});
|
|
1271
1307
|
var previewMultiAttachDiscountSchema = import_v410.z.object({
|
|
1272
1308
|
amountOff: import_v410.z.number(),
|
|
1273
1309
|
percentOff: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
@@ -1369,6 +1405,7 @@ var previewMultiAttachProrationOutboundSchema = import_v410.z.object({
|
|
|
1369
1405
|
});
|
|
1370
1406
|
var previewMultiAttachRolloverOutboundSchema = import_v410.z.object({
|
|
1371
1407
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
1408
|
+
max_percentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
1372
1409
|
expiry_duration_type: import_v410.z.string(),
|
|
1373
1410
|
expiry_duration_length: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
1374
1411
|
});
|
|
@@ -1426,9 +1463,17 @@ var previewMultiAttachUsageAlertOutboundSchema = import_v410.z.object({
|
|
|
1426
1463
|
threshold_type: import_v410.z.string(),
|
|
1427
1464
|
name: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
1428
1465
|
});
|
|
1466
|
+
var previewMultiAttachOverageAllowedOutboundSchema = import_v410.z.object({
|
|
1467
|
+
feature_id: import_v410.z.string(),
|
|
1468
|
+
enabled: import_v410.z.boolean()
|
|
1469
|
+
});
|
|
1429
1470
|
var previewMultiAttachBillingControlsOutboundSchema = import_v410.z.object({
|
|
1430
1471
|
spend_limits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
1431
|
-
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional()
|
|
1472
|
+
usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional(),
|
|
1473
|
+
overage_allowed: import_v410.z.union([
|
|
1474
|
+
import_v410.z.array(previewMultiAttachOverageAllowedOutboundSchema),
|
|
1475
|
+
import_v410.z.undefined()
|
|
1476
|
+
]).optional()
|
|
1432
1477
|
});
|
|
1433
1478
|
var previewMultiAttachEntityDataOutboundSchema = import_v410.z.object({
|
|
1434
1479
|
feature_id: import_v410.z.string(),
|
|
@@ -1473,6 +1518,7 @@ var previewMultiAttachProrationSchema = import_v410.z.object({
|
|
|
1473
1518
|
var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
|
|
1474
1519
|
var previewMultiAttachRolloverSchema = import_v410.z.object({
|
|
1475
1520
|
max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
1521
|
+
maxPercentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
1476
1522
|
expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
|
|
1477
1523
|
expiryDurationLength: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
|
|
1478
1524
|
});
|
|
@@ -1516,7 +1562,8 @@ var previewMultiAttachUsageAlertSchema = import_v410.z.object({
|
|
|
1516
1562
|
});
|
|
1517
1563
|
var previewMultiAttachBillingControlsSchema = import_v410.z.object({
|
|
1518
1564
|
spendLimits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitSchema), import_v410.z.undefined()]).optional(),
|
|
1519
|
-
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional()
|
|
1565
|
+
usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional(),
|
|
1566
|
+
overageAllowed: import_v410.z.union([import_v410.z.array(previewMultiAttachOverageAllowedSchema), import_v410.z.undefined()]).optional()
|
|
1520
1567
|
});
|
|
1521
1568
|
var previewMultiAttachEntityDataSchema = import_v410.z.object({
|
|
1522
1569
|
featureId: import_v410.z.string(),
|
|
@@ -1712,6 +1759,7 @@ var previewUpdateProrationOutboundSchema = import_v411.z.object({
|
|
|
1712
1759
|
});
|
|
1713
1760
|
var previewUpdateRolloverOutboundSchema = import_v411.z.object({
|
|
1714
1761
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
1762
|
+
max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
1715
1763
|
expiry_duration_type: import_v411.z.string(),
|
|
1716
1764
|
expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
1717
1765
|
});
|
|
@@ -1796,6 +1844,7 @@ var previewUpdateProrationSchema = import_v411.z.object({
|
|
|
1796
1844
|
var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
|
|
1797
1845
|
var previewUpdateRolloverSchema = import_v411.z.object({
|
|
1798
1846
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
1847
|
+
maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
1799
1848
|
expiryDurationType: previewUpdateExpiryDurationTypeSchema,
|
|
1800
1849
|
expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
1801
1850
|
});
|
|
@@ -1959,6 +2008,7 @@ var setupPaymentProrationOutboundSchema = import_v413.z.object({
|
|
|
1959
2008
|
});
|
|
1960
2009
|
var setupPaymentRolloverOutboundSchema = import_v413.z.object({
|
|
1961
2010
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
2011
|
+
max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
1962
2012
|
expiry_duration_type: import_v413.z.string(),
|
|
1963
2013
|
expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
1964
2014
|
});
|
|
@@ -2049,6 +2099,7 @@ var setupPaymentProrationSchema = import_v413.z.object({
|
|
|
2049
2099
|
var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
|
|
2050
2100
|
var setupPaymentRolloverSchema = import_v413.z.object({
|
|
2051
2101
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
2102
|
+
maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
2052
2103
|
expiryDurationType: setupPaymentExpiryDurationTypeSchema,
|
|
2053
2104
|
expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
2054
2105
|
});
|
|
@@ -2159,6 +2210,7 @@ var billingUpdateProrationOutboundSchema = import_v414.z.object({
|
|
|
2159
2210
|
});
|
|
2160
2211
|
var billingUpdateRolloverOutboundSchema = import_v414.z.object({
|
|
2161
2212
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
2213
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
2162
2214
|
expiry_duration_type: import_v414.z.string(),
|
|
2163
2215
|
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
2164
2216
|
});
|
|
@@ -2239,6 +2291,7 @@ var billingUpdateProrationSchema = import_v414.z.object({
|
|
|
2239
2291
|
var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
|
|
2240
2292
|
var billingUpdateRolloverSchema = import_v414.z.object({
|
|
2241
2293
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
2294
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
2242
2295
|
expiryDurationType: billingUpdateExpiryDurationTypeSchema,
|
|
2243
2296
|
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
2244
2297
|
});
|
|
@@ -2578,8 +2631,8 @@ var SDK_METADATA = {
|
|
|
2578
2631
|
language: "typescript",
|
|
2579
2632
|
openapiDocVersion: "2.2.0",
|
|
2580
2633
|
sdkVersion: "0.10.17",
|
|
2581
|
-
genVersion: "2.
|
|
2582
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.
|
|
2634
|
+
genVersion: "2.879.6",
|
|
2635
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
|
|
2583
2636
|
};
|
|
2584
2637
|
|
|
2585
2638
|
// ../sdk/src/lib/http.ts
|
|
@@ -3501,8 +3554,8 @@ function applyBearer(state, spec) {
|
|
|
3501
3554
|
state.headers[spec.fieldName] = value;
|
|
3502
3555
|
}
|
|
3503
3556
|
}
|
|
3504
|
-
function resolveGlobalSecurity(security) {
|
|
3505
|
-
|
|
3557
|
+
function resolveGlobalSecurity(security, allowedFields) {
|
|
3558
|
+
let inputs = [
|
|
3506
3559
|
[
|
|
3507
3560
|
{
|
|
3508
3561
|
fieldName: "Authorization",
|
|
@@ -3510,7 +3563,16 @@ function resolveGlobalSecurity(security) {
|
|
|
3510
3563
|
value: security?.secretKey ?? env().AUTUMN_SECRET_KEY
|
|
3511
3564
|
}
|
|
3512
3565
|
]
|
|
3513
|
-
|
|
3566
|
+
];
|
|
3567
|
+
if (allowedFields) {
|
|
3568
|
+
inputs = allowedFields.map((i) => {
|
|
3569
|
+
if (i < 0 || i >= inputs.length) {
|
|
3570
|
+
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
3571
|
+
}
|
|
3572
|
+
return inputs[i];
|
|
3573
|
+
});
|
|
3574
|
+
}
|
|
3575
|
+
return resolveSecurity(...inputs);
|
|
3514
3576
|
}
|
|
3515
3577
|
async function extractSecurity(sec) {
|
|
3516
3578
|
if (sec == null) {
|
|
@@ -4057,11 +4119,13 @@ var AttachExpiryDurationType$outboundSchema = z26.enum(AttachExpiryDurationType)
|
|
|
4057
4119
|
var AttachRollover$outboundSchema = z26.pipe(
|
|
4058
4120
|
z26.object({
|
|
4059
4121
|
max: z26.optional(z26.number()),
|
|
4122
|
+
maxPercentage: z26.optional(z26.number()),
|
|
4060
4123
|
expiryDurationType: AttachExpiryDurationType$outboundSchema,
|
|
4061
4124
|
expiryDurationLength: z26.optional(z26.number())
|
|
4062
4125
|
}),
|
|
4063
4126
|
z26.transform((v) => {
|
|
4064
4127
|
return remap(v, {
|
|
4128
|
+
maxPercentage: "max_percentage",
|
|
4065
4129
|
expiryDurationType: "expiry_duration_type",
|
|
4066
4130
|
expiryDurationLength: "expiry_duration_length"
|
|
4067
4131
|
});
|
|
@@ -4586,11 +4650,13 @@ var BillingUpdateExpiryDurationType$outboundSchema = z28.enum(BillingUpdateExpir
|
|
|
4586
4650
|
var BillingUpdateRollover$outboundSchema = z28.pipe(
|
|
4587
4651
|
z28.object({
|
|
4588
4652
|
max: z28.optional(z28.number()),
|
|
4653
|
+
maxPercentage: z28.optional(z28.number()),
|
|
4589
4654
|
expiryDurationType: BillingUpdateExpiryDurationType$outboundSchema,
|
|
4590
4655
|
expiryDurationLength: z28.optional(z28.number())
|
|
4591
4656
|
}),
|
|
4592
4657
|
z28.transform((v) => {
|
|
4593
4658
|
return remap(v, {
|
|
4659
|
+
maxPercentage: "max_percentage",
|
|
4594
4660
|
expiryDurationType: "expiry_duration_type",
|
|
4595
4661
|
expiryDurationLength: "expiry_duration_length"
|
|
4596
4662
|
});
|
|
@@ -4932,11 +4998,19 @@ var ProductDisplay$inboundSchema = z29.pipe(
|
|
|
4932
4998
|
})
|
|
4933
4999
|
);
|
|
4934
5000
|
var RolloverDuration$inboundSchema = inboundSchema(RolloverDuration);
|
|
4935
|
-
var CheckRollover$inboundSchema = z29.
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
5001
|
+
var CheckRollover$inboundSchema = z29.pipe(
|
|
5002
|
+
z29.object({
|
|
5003
|
+
max: z29.optional(z29.nullable(number2())),
|
|
5004
|
+
max_percentage: z29.optional(z29.nullable(number2())),
|
|
5005
|
+
duration: z29._default(RolloverDuration$inboundSchema, "month"),
|
|
5006
|
+
length: number2()
|
|
5007
|
+
}),
|
|
5008
|
+
z29.transform((v) => {
|
|
5009
|
+
return remap(v, {
|
|
5010
|
+
"max_percentage": "maxPercentage"
|
|
5011
|
+
});
|
|
5012
|
+
})
|
|
5013
|
+
);
|
|
4940
5014
|
var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
|
|
4941
5015
|
var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
|
|
4942
5016
|
var Config$inboundSchema = z29.pipe(
|
|
@@ -5175,12 +5249,14 @@ var CustomerDataAutoTopup$outboundSchema = z31.pipe(
|
|
|
5175
5249
|
quantity: z31.number(),
|
|
5176
5250
|
purchaseLimit: z31.optional(
|
|
5177
5251
|
z31.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
|
|
5178
|
-
)
|
|
5252
|
+
),
|
|
5253
|
+
invoiceMode: z31.optional(z31.boolean())
|
|
5179
5254
|
}),
|
|
5180
5255
|
z31.transform((v) => {
|
|
5181
5256
|
return remap(v, {
|
|
5182
5257
|
featureId: "feature_id",
|
|
5183
|
-
purchaseLimit: "purchase_limit"
|
|
5258
|
+
purchaseLimit: "purchase_limit",
|
|
5259
|
+
invoiceMode: "invoice_mode"
|
|
5184
5260
|
});
|
|
5185
5261
|
})
|
|
5186
5262
|
);
|
|
@@ -5213,6 +5289,17 @@ var CustomerDataUsageAlert$outboundSchema = z31.pipe(
|
|
|
5213
5289
|
});
|
|
5214
5290
|
})
|
|
5215
5291
|
);
|
|
5292
|
+
var CustomerDataOverageAllowed$outboundSchema = z31.pipe(
|
|
5293
|
+
z31.object({
|
|
5294
|
+
featureId: z31.string(),
|
|
5295
|
+
enabled: z31._default(z31.boolean(), false)
|
|
5296
|
+
}),
|
|
5297
|
+
z31.transform((v) => {
|
|
5298
|
+
return remap(v, {
|
|
5299
|
+
featureId: "feature_id"
|
|
5300
|
+
});
|
|
5301
|
+
})
|
|
5302
|
+
);
|
|
5216
5303
|
var CustomerDataBillingControls$outboundSchema = z31.pipe(
|
|
5217
5304
|
z31.object({
|
|
5218
5305
|
autoTopups: z31.optional(
|
|
@@ -5223,13 +5310,17 @@ var CustomerDataBillingControls$outboundSchema = z31.pipe(
|
|
|
5223
5310
|
),
|
|
5224
5311
|
usageAlerts: z31.optional(
|
|
5225
5312
|
z31.array(z31.lazy(() => CustomerDataUsageAlert$outboundSchema))
|
|
5313
|
+
),
|
|
5314
|
+
overageAllowed: z31.optional(
|
|
5315
|
+
z31.array(z31.lazy(() => CustomerDataOverageAllowed$outboundSchema))
|
|
5226
5316
|
)
|
|
5227
5317
|
}),
|
|
5228
5318
|
z31.transform((v) => {
|
|
5229
5319
|
return remap(v, {
|
|
5230
5320
|
autoTopups: "auto_topups",
|
|
5231
5321
|
spendLimits: "spend_limits",
|
|
5232
|
-
usageAlerts: "usage_alerts"
|
|
5322
|
+
usageAlerts: "usage_alerts",
|
|
5323
|
+
overageAllowed: "overage_allowed"
|
|
5233
5324
|
});
|
|
5234
5325
|
})
|
|
5235
5326
|
);
|
|
@@ -5440,11 +5531,13 @@ var ExpiryDurationType$inboundSchema = inboundSchema(ExpiryDurationType);
|
|
|
5440
5531
|
var PlanRollover$inboundSchema = z32.pipe(
|
|
5441
5532
|
z32.object({
|
|
5442
5533
|
max: nullable(number2()),
|
|
5534
|
+
max_percentage: z32.optional(z32.nullable(number2())),
|
|
5443
5535
|
expiry_duration_type: ExpiryDurationType$inboundSchema,
|
|
5444
5536
|
expiry_duration_length: optional2(number2())
|
|
5445
5537
|
}),
|
|
5446
5538
|
z32.transform((v) => {
|
|
5447
5539
|
return remap(v, {
|
|
5540
|
+
"max_percentage": "maxPercentage",
|
|
5448
5541
|
"expiry_duration_type": "expiryDurationType",
|
|
5449
5542
|
"expiry_duration_length": "expiryDurationLength"
|
|
5450
5543
|
});
|
|
@@ -5583,6 +5676,17 @@ var CreateEntityUsageAlertRequestBody$outboundSchema = z33.pipe(
|
|
|
5583
5676
|
});
|
|
5584
5677
|
})
|
|
5585
5678
|
);
|
|
5679
|
+
var CreateEntityOverageAllowedRequest$outboundSchema = z33.pipe(
|
|
5680
|
+
z33.object({
|
|
5681
|
+
featureId: z33.string(),
|
|
5682
|
+
enabled: z33._default(z33.boolean(), false)
|
|
5683
|
+
}),
|
|
5684
|
+
z33.transform((v) => {
|
|
5685
|
+
return remap(v, {
|
|
5686
|
+
featureId: "feature_id"
|
|
5687
|
+
});
|
|
5688
|
+
})
|
|
5689
|
+
);
|
|
5586
5690
|
var CreateEntityBillingControlsRequest$outboundSchema = z33.pipe(
|
|
5587
5691
|
z33.object({
|
|
5588
5692
|
spendLimits: z33.optional(
|
|
@@ -5590,12 +5694,16 @@ var CreateEntityBillingControlsRequest$outboundSchema = z33.pipe(
|
|
|
5590
5694
|
),
|
|
5591
5695
|
usageAlerts: z33.optional(
|
|
5592
5696
|
z33.array(z33.lazy(() => CreateEntityUsageAlertRequestBody$outboundSchema))
|
|
5697
|
+
),
|
|
5698
|
+
overageAllowed: z33.optional(
|
|
5699
|
+
z33.array(z33.lazy(() => CreateEntityOverageAllowedRequest$outboundSchema))
|
|
5593
5700
|
)
|
|
5594
5701
|
}),
|
|
5595
5702
|
z33.transform((v) => {
|
|
5596
5703
|
return remap(v, {
|
|
5597
5704
|
spendLimits: "spend_limits",
|
|
5598
|
-
usageAlerts: "usage_alerts"
|
|
5705
|
+
usageAlerts: "usage_alerts",
|
|
5706
|
+
overageAllowed: "overage_allowed"
|
|
5599
5707
|
});
|
|
5600
5708
|
})
|
|
5601
5709
|
);
|
|
@@ -5752,6 +5860,17 @@ var CreateEntityUsageAlertResponse$inboundSchema = z33.pipe(
|
|
|
5752
5860
|
});
|
|
5753
5861
|
})
|
|
5754
5862
|
);
|
|
5863
|
+
var CreateEntityOverageAllowedResponse$inboundSchema = z33.pipe(
|
|
5864
|
+
z33.object({
|
|
5865
|
+
feature_id: string4(),
|
|
5866
|
+
enabled: z33._default(boolean2(), false)
|
|
5867
|
+
}),
|
|
5868
|
+
z33.transform((v) => {
|
|
5869
|
+
return remap(v, {
|
|
5870
|
+
"feature_id": "featureId"
|
|
5871
|
+
});
|
|
5872
|
+
})
|
|
5873
|
+
);
|
|
5755
5874
|
var CreateEntityBillingControlsResponse$inboundSchema = z33.pipe(
|
|
5756
5875
|
z33.object({
|
|
5757
5876
|
spend_limits: optional2(
|
|
@@ -5759,12 +5878,16 @@ var CreateEntityBillingControlsResponse$inboundSchema = z33.pipe(
|
|
|
5759
5878
|
),
|
|
5760
5879
|
usage_alerts: optional2(
|
|
5761
5880
|
z33.array(z33.lazy(() => CreateEntityUsageAlertResponse$inboundSchema))
|
|
5881
|
+
),
|
|
5882
|
+
overage_allowed: optional2(
|
|
5883
|
+
z33.array(z33.lazy(() => CreateEntityOverageAllowedResponse$inboundSchema))
|
|
5762
5884
|
)
|
|
5763
5885
|
}),
|
|
5764
5886
|
z33.transform((v) => {
|
|
5765
5887
|
return remap(v, {
|
|
5766
5888
|
"spend_limits": "spendLimits",
|
|
5767
|
-
"usage_alerts": "usageAlerts"
|
|
5889
|
+
"usage_alerts": "usageAlerts",
|
|
5890
|
+
"overage_allowed": "overageAllowed"
|
|
5768
5891
|
});
|
|
5769
5892
|
})
|
|
5770
5893
|
);
|
|
@@ -6114,11 +6237,13 @@ var CreatePlanExpiryDurationTypeRequest$outboundSchema = z35.enum(CreatePlanExpi
|
|
|
6114
6237
|
var CreatePlanRolloverRequest$outboundSchema = z35.pipe(
|
|
6115
6238
|
z35.object({
|
|
6116
6239
|
max: z35.optional(z35.number()),
|
|
6240
|
+
maxPercentage: z35.optional(z35.number()),
|
|
6117
6241
|
expiryDurationType: CreatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
6118
6242
|
expiryDurationLength: z35.optional(z35.number())
|
|
6119
6243
|
}),
|
|
6120
6244
|
z35.transform((v) => {
|
|
6121
6245
|
return remap(v, {
|
|
6246
|
+
maxPercentage: "max_percentage",
|
|
6122
6247
|
expiryDurationType: "expiry_duration_type",
|
|
6123
6248
|
expiryDurationLength: "expiry_duration_length"
|
|
6124
6249
|
});
|
|
@@ -6295,11 +6420,13 @@ var CreatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePla
|
|
|
6295
6420
|
var CreatePlanRolloverResponse$inboundSchema = z35.pipe(
|
|
6296
6421
|
z35.object({
|
|
6297
6422
|
max: nullable(number2()),
|
|
6423
|
+
max_percentage: z35.optional(z35.nullable(number2())),
|
|
6298
6424
|
expiry_duration_type: CreatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
6299
6425
|
expiry_duration_length: optional2(number2())
|
|
6300
6426
|
}),
|
|
6301
6427
|
z35.transform((v) => {
|
|
6302
6428
|
return remap(v, {
|
|
6429
|
+
"max_percentage": "maxPercentage",
|
|
6303
6430
|
"expiry_duration_type": "expiryDurationType",
|
|
6304
6431
|
"expiry_duration_length": "expiryDurationLength"
|
|
6305
6432
|
});
|
|
@@ -6483,12 +6610,14 @@ var CustomerAutoTopup$inboundSchema = z37.pipe(
|
|
|
6483
6610
|
quantity: number2(),
|
|
6484
6611
|
purchase_limit: optional2(
|
|
6485
6612
|
z37.lazy(() => CustomerPurchaseLimit$inboundSchema)
|
|
6486
|
-
)
|
|
6613
|
+
),
|
|
6614
|
+
invoice_mode: optional2(boolean2())
|
|
6487
6615
|
}),
|
|
6488
6616
|
z37.transform((v) => {
|
|
6489
6617
|
return remap(v, {
|
|
6490
6618
|
"feature_id": "featureId",
|
|
6491
|
-
"purchase_limit": "purchaseLimit"
|
|
6619
|
+
"purchase_limit": "purchaseLimit",
|
|
6620
|
+
"invoice_mode": "invoiceMode"
|
|
6492
6621
|
});
|
|
6493
6622
|
})
|
|
6494
6623
|
);
|
|
@@ -6521,6 +6650,17 @@ var CustomerUsageAlert$inboundSchema = z37.pipe(
|
|
|
6521
6650
|
});
|
|
6522
6651
|
})
|
|
6523
6652
|
);
|
|
6653
|
+
var CustomerOverageAllowed$inboundSchema = z37.pipe(
|
|
6654
|
+
z37.object({
|
|
6655
|
+
feature_id: string4(),
|
|
6656
|
+
enabled: z37._default(boolean2(), false)
|
|
6657
|
+
}),
|
|
6658
|
+
z37.transform((v) => {
|
|
6659
|
+
return remap(v, {
|
|
6660
|
+
"feature_id": "featureId"
|
|
6661
|
+
});
|
|
6662
|
+
})
|
|
6663
|
+
);
|
|
6524
6664
|
var CustomerBillingControls$inboundSchema = z37.pipe(
|
|
6525
6665
|
z37.object({
|
|
6526
6666
|
auto_topups: optional2(
|
|
@@ -6531,13 +6671,17 @@ var CustomerBillingControls$inboundSchema = z37.pipe(
|
|
|
6531
6671
|
),
|
|
6532
6672
|
usage_alerts: optional2(
|
|
6533
6673
|
z37.array(z37.lazy(() => CustomerUsageAlert$inboundSchema))
|
|
6674
|
+
),
|
|
6675
|
+
overage_allowed: optional2(
|
|
6676
|
+
z37.array(z37.lazy(() => CustomerOverageAllowed$inboundSchema))
|
|
6534
6677
|
)
|
|
6535
6678
|
}),
|
|
6536
6679
|
z37.transform((v) => {
|
|
6537
6680
|
return remap(v, {
|
|
6538
6681
|
"auto_topups": "autoTopups",
|
|
6539
6682
|
"spend_limits": "spendLimits",
|
|
6540
|
-
"usage_alerts": "usageAlerts"
|
|
6683
|
+
"usage_alerts": "usageAlerts",
|
|
6684
|
+
"overage_allowed": "overageAllowed"
|
|
6541
6685
|
});
|
|
6542
6686
|
})
|
|
6543
6687
|
);
|
|
@@ -7076,6 +7220,17 @@ var GetEntityUsageAlert$inboundSchema = z44.pipe(
|
|
|
7076
7220
|
});
|
|
7077
7221
|
})
|
|
7078
7222
|
);
|
|
7223
|
+
var GetEntityOverageAllowed$inboundSchema = z44.pipe(
|
|
7224
|
+
z44.object({
|
|
7225
|
+
feature_id: string4(),
|
|
7226
|
+
enabled: z44._default(boolean2(), false)
|
|
7227
|
+
}),
|
|
7228
|
+
z44.transform((v) => {
|
|
7229
|
+
return remap(v, {
|
|
7230
|
+
"feature_id": "featureId"
|
|
7231
|
+
});
|
|
7232
|
+
})
|
|
7233
|
+
);
|
|
7079
7234
|
var GetEntityBillingControls$inboundSchema = z44.pipe(
|
|
7080
7235
|
z44.object({
|
|
7081
7236
|
spend_limits: optional2(
|
|
@@ -7083,12 +7238,16 @@ var GetEntityBillingControls$inboundSchema = z44.pipe(
|
|
|
7083
7238
|
),
|
|
7084
7239
|
usage_alerts: optional2(
|
|
7085
7240
|
z44.array(z44.lazy(() => GetEntityUsageAlert$inboundSchema))
|
|
7241
|
+
),
|
|
7242
|
+
overage_allowed: optional2(
|
|
7243
|
+
z44.array(z44.lazy(() => GetEntityOverageAllowed$inboundSchema))
|
|
7086
7244
|
)
|
|
7087
7245
|
}),
|
|
7088
7246
|
z44.transform((v) => {
|
|
7089
7247
|
return remap(v, {
|
|
7090
7248
|
"spend_limits": "spendLimits",
|
|
7091
|
-
"usage_alerts": "usageAlerts"
|
|
7249
|
+
"usage_alerts": "usageAlerts",
|
|
7250
|
+
"overage_allowed": "overageAllowed"
|
|
7092
7251
|
});
|
|
7093
7252
|
})
|
|
7094
7253
|
);
|
|
@@ -7228,12 +7387,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z46.pipe(
|
|
|
7228
7387
|
quantity: z46.number(),
|
|
7229
7388
|
purchaseLimit: z46.optional(
|
|
7230
7389
|
z46.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
|
|
7231
|
-
)
|
|
7390
|
+
),
|
|
7391
|
+
invoiceMode: z46.optional(z46.boolean())
|
|
7232
7392
|
}),
|
|
7233
7393
|
z46.transform((v) => {
|
|
7234
7394
|
return remap(v, {
|
|
7235
7395
|
featureId: "feature_id",
|
|
7236
|
-
purchaseLimit: "purchase_limit"
|
|
7396
|
+
purchaseLimit: "purchase_limit",
|
|
7397
|
+
invoiceMode: "invoice_mode"
|
|
7237
7398
|
});
|
|
7238
7399
|
})
|
|
7239
7400
|
);
|
|
@@ -7266,6 +7427,17 @@ var GetOrCreateCustomerUsageAlert$outboundSchema = z46.pipe(
|
|
|
7266
7427
|
});
|
|
7267
7428
|
})
|
|
7268
7429
|
);
|
|
7430
|
+
var GetOrCreateCustomerOverageAllowed$outboundSchema = z46.pipe(
|
|
7431
|
+
z46.object({
|
|
7432
|
+
featureId: z46.string(),
|
|
7433
|
+
enabled: z46._default(z46.boolean(), false)
|
|
7434
|
+
}),
|
|
7435
|
+
z46.transform((v) => {
|
|
7436
|
+
return remap(v, {
|
|
7437
|
+
featureId: "feature_id"
|
|
7438
|
+
});
|
|
7439
|
+
})
|
|
7440
|
+
);
|
|
7269
7441
|
var GetOrCreateCustomerBillingControls$outboundSchema = z46.pipe(
|
|
7270
7442
|
z46.object({
|
|
7271
7443
|
autoTopups: z46.optional(
|
|
@@ -7276,13 +7448,17 @@ var GetOrCreateCustomerBillingControls$outboundSchema = z46.pipe(
|
|
|
7276
7448
|
),
|
|
7277
7449
|
usageAlerts: z46.optional(
|
|
7278
7450
|
z46.array(z46.lazy(() => GetOrCreateCustomerUsageAlert$outboundSchema))
|
|
7451
|
+
),
|
|
7452
|
+
overageAllowed: z46.optional(
|
|
7453
|
+
z46.array(z46.lazy(() => GetOrCreateCustomerOverageAllowed$outboundSchema))
|
|
7279
7454
|
)
|
|
7280
7455
|
}),
|
|
7281
7456
|
z46.transform((v) => {
|
|
7282
7457
|
return remap(v, {
|
|
7283
7458
|
autoTopups: "auto_topups",
|
|
7284
7459
|
spendLimits: "spend_limits",
|
|
7285
|
-
usageAlerts: "usage_alerts"
|
|
7460
|
+
usageAlerts: "usage_alerts",
|
|
7461
|
+
overageAllowed: "overage_allowed"
|
|
7286
7462
|
});
|
|
7287
7463
|
})
|
|
7288
7464
|
);
|
|
@@ -7507,11 +7683,13 @@ var GetPlanExpiryDurationType$inboundSchema = inboundSchema(GetPlanExpiryDuratio
|
|
|
7507
7683
|
var GetPlanRollover$inboundSchema = z47.pipe(
|
|
7508
7684
|
z47.object({
|
|
7509
7685
|
max: nullable(number2()),
|
|
7686
|
+
max_percentage: z47.optional(z47.nullable(number2())),
|
|
7510
7687
|
expiry_duration_type: GetPlanExpiryDurationType$inboundSchema,
|
|
7511
7688
|
expiry_duration_length: optional2(number2())
|
|
7512
7689
|
}),
|
|
7513
7690
|
z47.transform((v) => {
|
|
7514
7691
|
return remap(v, {
|
|
7692
|
+
"max_percentage": "maxPercentage",
|
|
7515
7693
|
"expiry_duration_type": "expiryDurationType",
|
|
7516
7694
|
"expiry_duration_length": "expiryDurationLength"
|
|
7517
7695
|
});
|
|
@@ -7701,12 +7879,14 @@ var ListCustomersAutoTopup$inboundSchema = z48.pipe(
|
|
|
7701
7879
|
quantity: number2(),
|
|
7702
7880
|
purchase_limit: optional2(
|
|
7703
7881
|
z48.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
|
|
7704
|
-
)
|
|
7882
|
+
),
|
|
7883
|
+
invoice_mode: optional2(boolean2())
|
|
7705
7884
|
}),
|
|
7706
7885
|
z48.transform((v) => {
|
|
7707
7886
|
return remap(v, {
|
|
7708
7887
|
"feature_id": "featureId",
|
|
7709
|
-
"purchase_limit": "purchaseLimit"
|
|
7888
|
+
"purchase_limit": "purchaseLimit",
|
|
7889
|
+
"invoice_mode": "invoiceMode"
|
|
7710
7890
|
});
|
|
7711
7891
|
})
|
|
7712
7892
|
);
|
|
@@ -7739,6 +7919,17 @@ var ListCustomersUsageAlert$inboundSchema = z48.pipe(
|
|
|
7739
7919
|
});
|
|
7740
7920
|
})
|
|
7741
7921
|
);
|
|
7922
|
+
var ListCustomersOverageAllowed$inboundSchema = z48.pipe(
|
|
7923
|
+
z48.object({
|
|
7924
|
+
feature_id: string4(),
|
|
7925
|
+
enabled: z48._default(boolean2(), false)
|
|
7926
|
+
}),
|
|
7927
|
+
z48.transform((v) => {
|
|
7928
|
+
return remap(v, {
|
|
7929
|
+
"feature_id": "featureId"
|
|
7930
|
+
});
|
|
7931
|
+
})
|
|
7932
|
+
);
|
|
7742
7933
|
var ListCustomersBillingControls$inboundSchema = z48.pipe(
|
|
7743
7934
|
z48.object({
|
|
7744
7935
|
auto_topups: optional2(
|
|
@@ -7749,13 +7940,17 @@ var ListCustomersBillingControls$inboundSchema = z48.pipe(
|
|
|
7749
7940
|
),
|
|
7750
7941
|
usage_alerts: optional2(
|
|
7751
7942
|
z48.array(z48.lazy(() => ListCustomersUsageAlert$inboundSchema))
|
|
7943
|
+
),
|
|
7944
|
+
overage_allowed: optional2(
|
|
7945
|
+
z48.array(z48.lazy(() => ListCustomersOverageAllowed$inboundSchema))
|
|
7752
7946
|
)
|
|
7753
7947
|
}),
|
|
7754
7948
|
z48.transform((v) => {
|
|
7755
7949
|
return remap(v, {
|
|
7756
7950
|
"auto_topups": "autoTopups",
|
|
7757
7951
|
"spend_limits": "spendLimits",
|
|
7758
|
-
"usage_alerts": "usageAlerts"
|
|
7952
|
+
"usage_alerts": "usageAlerts",
|
|
7953
|
+
"overage_allowed": "overageAllowed"
|
|
7759
7954
|
});
|
|
7760
7955
|
})
|
|
7761
7956
|
);
|
|
@@ -8210,11 +8405,13 @@ var ListPlansExpiryDurationType$inboundSchema = inboundSchema(ListPlansExpiryDur
|
|
|
8210
8405
|
var ListPlansRollover$inboundSchema = z51.pipe(
|
|
8211
8406
|
z51.object({
|
|
8212
8407
|
max: nullable(number2()),
|
|
8408
|
+
max_percentage: z51.optional(z51.nullable(number2())),
|
|
8213
8409
|
expiry_duration_type: ListPlansExpiryDurationType$inboundSchema,
|
|
8214
8410
|
expiry_duration_length: optional2(number2())
|
|
8215
8411
|
}),
|
|
8216
8412
|
z51.transform((v) => {
|
|
8217
8413
|
return remap(v, {
|
|
8414
|
+
"max_percentage": "maxPercentage",
|
|
8218
8415
|
"expiry_duration_type": "expiryDurationType",
|
|
8219
8416
|
"expiry_duration_length": "expiryDurationLength"
|
|
8220
8417
|
});
|
|
@@ -8458,11 +8655,13 @@ var MultiAttachExpiryDurationType$outboundSchema = z52.enum(MultiAttachExpiryDur
|
|
|
8458
8655
|
var MultiAttachRollover$outboundSchema = z52.pipe(
|
|
8459
8656
|
z52.object({
|
|
8460
8657
|
max: z52.optional(z52.number()),
|
|
8658
|
+
maxPercentage: z52.optional(z52.number()),
|
|
8461
8659
|
expiryDurationType: MultiAttachExpiryDurationType$outboundSchema,
|
|
8462
8660
|
expiryDurationLength: z52.optional(z52.number())
|
|
8463
8661
|
}),
|
|
8464
8662
|
z52.transform((v) => {
|
|
8465
8663
|
return remap(v, {
|
|
8664
|
+
maxPercentage: "max_percentage",
|
|
8466
8665
|
expiryDurationType: "expiry_duration_type",
|
|
8467
8666
|
expiryDurationLength: "expiry_duration_length"
|
|
8468
8667
|
});
|
|
@@ -8589,6 +8788,17 @@ var MultiAttachUsageAlert$outboundSchema = z52.pipe(
|
|
|
8589
8788
|
});
|
|
8590
8789
|
})
|
|
8591
8790
|
);
|
|
8791
|
+
var MultiAttachOverageAllowed$outboundSchema = z52.pipe(
|
|
8792
|
+
z52.object({
|
|
8793
|
+
featureId: z52.string(),
|
|
8794
|
+
enabled: z52._default(z52.boolean(), false)
|
|
8795
|
+
}),
|
|
8796
|
+
z52.transform((v) => {
|
|
8797
|
+
return remap(v, {
|
|
8798
|
+
featureId: "feature_id"
|
|
8799
|
+
});
|
|
8800
|
+
})
|
|
8801
|
+
);
|
|
8592
8802
|
var MultiAttachBillingControls$outboundSchema = z52.pipe(
|
|
8593
8803
|
z52.object({
|
|
8594
8804
|
spendLimits: z52.optional(
|
|
@@ -8596,12 +8806,16 @@ var MultiAttachBillingControls$outboundSchema = z52.pipe(
|
|
|
8596
8806
|
),
|
|
8597
8807
|
usageAlerts: z52.optional(
|
|
8598
8808
|
z52.array(z52.lazy(() => MultiAttachUsageAlert$outboundSchema))
|
|
8809
|
+
),
|
|
8810
|
+
overageAllowed: z52.optional(
|
|
8811
|
+
z52.array(z52.lazy(() => MultiAttachOverageAllowed$outboundSchema))
|
|
8599
8812
|
)
|
|
8600
8813
|
}),
|
|
8601
8814
|
z52.transform((v) => {
|
|
8602
8815
|
return remap(v, {
|
|
8603
8816
|
spendLimits: "spend_limits",
|
|
8604
|
-
usageAlerts: "usage_alerts"
|
|
8817
|
+
usageAlerts: "usage_alerts",
|
|
8818
|
+
overageAllowed: "overage_allowed"
|
|
8605
8819
|
});
|
|
8606
8820
|
})
|
|
8607
8821
|
);
|
|
@@ -8895,11 +9109,13 @@ var PreviewAttachExpiryDurationType$outboundSchema = z54.enum(PreviewAttachExpir
|
|
|
8895
9109
|
var PreviewAttachRollover$outboundSchema = z54.pipe(
|
|
8896
9110
|
z54.object({
|
|
8897
9111
|
max: z54.optional(z54.number()),
|
|
9112
|
+
maxPercentage: z54.optional(z54.number()),
|
|
8898
9113
|
expiryDurationType: PreviewAttachExpiryDurationType$outboundSchema,
|
|
8899
9114
|
expiryDurationLength: z54.optional(z54.number())
|
|
8900
9115
|
}),
|
|
8901
9116
|
z54.transform((v) => {
|
|
8902
9117
|
return remap(v, {
|
|
9118
|
+
maxPercentage: "max_percentage",
|
|
8903
9119
|
expiryDurationType: "expiry_duration_type",
|
|
8904
9120
|
expiryDurationLength: "expiry_duration_length"
|
|
8905
9121
|
});
|
|
@@ -9443,11 +9659,13 @@ var PreviewMultiAttachExpiryDurationType$outboundSchema = z55.enum(PreviewMultiA
|
|
|
9443
9659
|
var PreviewMultiAttachRollover$outboundSchema = z55.pipe(
|
|
9444
9660
|
z55.object({
|
|
9445
9661
|
max: z55.optional(z55.number()),
|
|
9662
|
+
maxPercentage: z55.optional(z55.number()),
|
|
9446
9663
|
expiryDurationType: PreviewMultiAttachExpiryDurationType$outboundSchema,
|
|
9447
9664
|
expiryDurationLength: z55.optional(z55.number())
|
|
9448
9665
|
}),
|
|
9449
9666
|
z55.transform((v) => {
|
|
9450
9667
|
return remap(v, {
|
|
9668
|
+
maxPercentage: "max_percentage",
|
|
9451
9669
|
expiryDurationType: "expiry_duration_type",
|
|
9452
9670
|
expiryDurationLength: "expiry_duration_length"
|
|
9453
9671
|
});
|
|
@@ -9587,6 +9805,17 @@ var PreviewMultiAttachUsageAlert$outboundSchema = z55.pipe(
|
|
|
9587
9805
|
});
|
|
9588
9806
|
})
|
|
9589
9807
|
);
|
|
9808
|
+
var PreviewMultiAttachOverageAllowed$outboundSchema = z55.pipe(
|
|
9809
|
+
z55.object({
|
|
9810
|
+
featureId: z55.string(),
|
|
9811
|
+
enabled: z55._default(z55.boolean(), false)
|
|
9812
|
+
}),
|
|
9813
|
+
z55.transform((v) => {
|
|
9814
|
+
return remap(v, {
|
|
9815
|
+
featureId: "feature_id"
|
|
9816
|
+
});
|
|
9817
|
+
})
|
|
9818
|
+
);
|
|
9590
9819
|
var PreviewMultiAttachBillingControls$outboundSchema = z55.pipe(
|
|
9591
9820
|
z55.object({
|
|
9592
9821
|
spendLimits: z55.optional(
|
|
@@ -9594,12 +9823,16 @@ var PreviewMultiAttachBillingControls$outboundSchema = z55.pipe(
|
|
|
9594
9823
|
),
|
|
9595
9824
|
usageAlerts: z55.optional(
|
|
9596
9825
|
z55.array(z55.lazy(() => PreviewMultiAttachUsageAlert$outboundSchema))
|
|
9826
|
+
),
|
|
9827
|
+
overageAllowed: z55.optional(
|
|
9828
|
+
z55.array(z55.lazy(() => PreviewMultiAttachOverageAllowed$outboundSchema))
|
|
9597
9829
|
)
|
|
9598
9830
|
}),
|
|
9599
9831
|
z55.transform((v) => {
|
|
9600
9832
|
return remap(v, {
|
|
9601
9833
|
spendLimits: "spend_limits",
|
|
9602
|
-
usageAlerts: "usage_alerts"
|
|
9834
|
+
usageAlerts: "usage_alerts",
|
|
9835
|
+
overageAllowed: "overage_allowed"
|
|
9603
9836
|
});
|
|
9604
9837
|
})
|
|
9605
9838
|
);
|
|
@@ -10055,11 +10288,13 @@ var PreviewUpdateExpiryDurationType$outboundSchema = z56.enum(PreviewUpdateExpir
|
|
|
10055
10288
|
var PreviewUpdateRollover$outboundSchema = z56.pipe(
|
|
10056
10289
|
z56.object({
|
|
10057
10290
|
max: z56.optional(z56.number()),
|
|
10291
|
+
maxPercentage: z56.optional(z56.number()),
|
|
10058
10292
|
expiryDurationType: PreviewUpdateExpiryDurationType$outboundSchema,
|
|
10059
10293
|
expiryDurationLength: z56.optional(z56.number())
|
|
10060
10294
|
}),
|
|
10061
10295
|
z56.transform((v) => {
|
|
10062
10296
|
return remap(v, {
|
|
10297
|
+
maxPercentage: "max_percentage",
|
|
10063
10298
|
expiryDurationType: "expiry_duration_type",
|
|
10064
10299
|
expiryDurationLength: "expiry_duration_length"
|
|
10065
10300
|
});
|
|
@@ -10575,11 +10810,13 @@ var SetupPaymentExpiryDurationType$outboundSchema = z58.enum(SetupPaymentExpiryD
|
|
|
10575
10810
|
var SetupPaymentRollover$outboundSchema = z58.pipe(
|
|
10576
10811
|
z58.object({
|
|
10577
10812
|
max: z58.optional(z58.number()),
|
|
10813
|
+
maxPercentage: z58.optional(z58.number()),
|
|
10578
10814
|
expiryDurationType: SetupPaymentExpiryDurationType$outboundSchema,
|
|
10579
10815
|
expiryDurationLength: z58.optional(z58.number())
|
|
10580
10816
|
}),
|
|
10581
10817
|
z58.transform((v) => {
|
|
10582
10818
|
return remap(v, {
|
|
10819
|
+
maxPercentage: "max_percentage",
|
|
10583
10820
|
expiryDurationType: "expiry_duration_type",
|
|
10584
10821
|
expiryDurationLength: "expiry_duration_length"
|
|
10585
10822
|
});
|
|
@@ -10884,12 +11121,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z61.pipe(
|
|
|
10884
11121
|
quantity: z61.number(),
|
|
10885
11122
|
purchaseLimit: z61.optional(
|
|
10886
11123
|
z61.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
|
|
10887
|
-
)
|
|
11124
|
+
),
|
|
11125
|
+
invoiceMode: z61.optional(z61.boolean())
|
|
10888
11126
|
}),
|
|
10889
11127
|
z61.transform((v) => {
|
|
10890
11128
|
return remap(v, {
|
|
10891
11129
|
featureId: "feature_id",
|
|
10892
|
-
purchaseLimit: "purchase_limit"
|
|
11130
|
+
purchaseLimit: "purchase_limit",
|
|
11131
|
+
invoiceMode: "invoice_mode"
|
|
10893
11132
|
});
|
|
10894
11133
|
})
|
|
10895
11134
|
);
|
|
@@ -10924,6 +11163,17 @@ var UpdateCustomerUsageAlertRequestBody$outboundSchema = z61.pipe(
|
|
|
10924
11163
|
});
|
|
10925
11164
|
})
|
|
10926
11165
|
);
|
|
11166
|
+
var UpdateCustomerOverageAllowedRequest$outboundSchema = z61.pipe(
|
|
11167
|
+
z61.object({
|
|
11168
|
+
featureId: z61.string(),
|
|
11169
|
+
enabled: z61._default(z61.boolean(), false)
|
|
11170
|
+
}),
|
|
11171
|
+
z61.transform((v) => {
|
|
11172
|
+
return remap(v, {
|
|
11173
|
+
featureId: "feature_id"
|
|
11174
|
+
});
|
|
11175
|
+
})
|
|
11176
|
+
);
|
|
10927
11177
|
var UpdateCustomerBillingControlsRequest$outboundSchema = z61.pipe(
|
|
10928
11178
|
z61.object({
|
|
10929
11179
|
autoTopups: z61.optional(
|
|
@@ -10934,13 +11184,17 @@ var UpdateCustomerBillingControlsRequest$outboundSchema = z61.pipe(
|
|
|
10934
11184
|
),
|
|
10935
11185
|
usageAlerts: z61.optional(
|
|
10936
11186
|
z61.array(z61.lazy(() => UpdateCustomerUsageAlertRequestBody$outboundSchema))
|
|
11187
|
+
),
|
|
11188
|
+
overageAllowed: z61.optional(
|
|
11189
|
+
z61.array(z61.lazy(() => UpdateCustomerOverageAllowedRequest$outboundSchema))
|
|
10937
11190
|
)
|
|
10938
11191
|
}),
|
|
10939
11192
|
z61.transform((v) => {
|
|
10940
11193
|
return remap(v, {
|
|
10941
11194
|
autoTopups: "auto_topups",
|
|
10942
11195
|
spendLimits: "spend_limits",
|
|
10943
|
-
usageAlerts: "usage_alerts"
|
|
11196
|
+
usageAlerts: "usage_alerts",
|
|
11197
|
+
overageAllowed: "overage_allowed"
|
|
10944
11198
|
});
|
|
10945
11199
|
})
|
|
10946
11200
|
);
|
|
@@ -10990,12 +11244,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z61.pipe(
|
|
|
10990
11244
|
quantity: number2(),
|
|
10991
11245
|
purchase_limit: optional2(
|
|
10992
11246
|
z61.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
|
|
10993
|
-
)
|
|
11247
|
+
),
|
|
11248
|
+
invoice_mode: optional2(boolean2())
|
|
10994
11249
|
}),
|
|
10995
11250
|
z61.transform((v) => {
|
|
10996
11251
|
return remap(v, {
|
|
10997
11252
|
"feature_id": "featureId",
|
|
10998
|
-
"purchase_limit": "purchaseLimit"
|
|
11253
|
+
"purchase_limit": "purchaseLimit",
|
|
11254
|
+
"invoice_mode": "invoiceMode"
|
|
10999
11255
|
});
|
|
11000
11256
|
})
|
|
11001
11257
|
);
|
|
@@ -11028,6 +11284,17 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z61.pipe(
|
|
|
11028
11284
|
});
|
|
11029
11285
|
})
|
|
11030
11286
|
);
|
|
11287
|
+
var UpdateCustomerOverageAllowedResponse$inboundSchema = z61.pipe(
|
|
11288
|
+
z61.object({
|
|
11289
|
+
feature_id: string4(),
|
|
11290
|
+
enabled: z61._default(boolean2(), false)
|
|
11291
|
+
}),
|
|
11292
|
+
z61.transform((v) => {
|
|
11293
|
+
return remap(v, {
|
|
11294
|
+
"feature_id": "featureId"
|
|
11295
|
+
});
|
|
11296
|
+
})
|
|
11297
|
+
);
|
|
11031
11298
|
var UpdateCustomerBillingControlsResponse$inboundSchema = z61.pipe(
|
|
11032
11299
|
z61.object({
|
|
11033
11300
|
auto_topups: optional2(
|
|
@@ -11038,13 +11305,17 @@ var UpdateCustomerBillingControlsResponse$inboundSchema = z61.pipe(
|
|
|
11038
11305
|
),
|
|
11039
11306
|
usage_alerts: optional2(
|
|
11040
11307
|
z61.array(z61.lazy(() => UpdateCustomerUsageAlertResponse$inboundSchema))
|
|
11308
|
+
),
|
|
11309
|
+
overage_allowed: optional2(
|
|
11310
|
+
z61.array(z61.lazy(() => UpdateCustomerOverageAllowedResponse$inboundSchema))
|
|
11041
11311
|
)
|
|
11042
11312
|
}),
|
|
11043
11313
|
z61.transform((v) => {
|
|
11044
11314
|
return remap(v, {
|
|
11045
11315
|
"auto_topups": "autoTopups",
|
|
11046
11316
|
"spend_limits": "spendLimits",
|
|
11047
|
-
"usage_alerts": "usageAlerts"
|
|
11317
|
+
"usage_alerts": "usageAlerts",
|
|
11318
|
+
"overage_allowed": "overageAllowed"
|
|
11048
11319
|
});
|
|
11049
11320
|
})
|
|
11050
11321
|
);
|
|
@@ -11236,6 +11507,17 @@ var UpdateEntityUsageAlertRequestBody$outboundSchema = z62.pipe(
|
|
|
11236
11507
|
});
|
|
11237
11508
|
})
|
|
11238
11509
|
);
|
|
11510
|
+
var UpdateEntityOverageAllowedRequest$outboundSchema = z62.pipe(
|
|
11511
|
+
z62.object({
|
|
11512
|
+
featureId: z62.string(),
|
|
11513
|
+
enabled: z62._default(z62.boolean(), false)
|
|
11514
|
+
}),
|
|
11515
|
+
z62.transform((v) => {
|
|
11516
|
+
return remap(v, {
|
|
11517
|
+
featureId: "feature_id"
|
|
11518
|
+
});
|
|
11519
|
+
})
|
|
11520
|
+
);
|
|
11239
11521
|
var UpdateEntityBillingControlsRequest$outboundSchema = z62.pipe(
|
|
11240
11522
|
z62.object({
|
|
11241
11523
|
spendLimits: z62.optional(
|
|
@@ -11243,12 +11525,16 @@ var UpdateEntityBillingControlsRequest$outboundSchema = z62.pipe(
|
|
|
11243
11525
|
),
|
|
11244
11526
|
usageAlerts: z62.optional(
|
|
11245
11527
|
z62.array(z62.lazy(() => UpdateEntityUsageAlertRequestBody$outboundSchema))
|
|
11528
|
+
),
|
|
11529
|
+
overageAllowed: z62.optional(
|
|
11530
|
+
z62.array(z62.lazy(() => UpdateEntityOverageAllowedRequest$outboundSchema))
|
|
11246
11531
|
)
|
|
11247
11532
|
}),
|
|
11248
11533
|
z62.transform((v) => {
|
|
11249
11534
|
return remap(v, {
|
|
11250
11535
|
spendLimits: "spend_limits",
|
|
11251
|
-
usageAlerts: "usage_alerts"
|
|
11536
|
+
usageAlerts: "usage_alerts",
|
|
11537
|
+
overageAllowed: "overage_allowed"
|
|
11252
11538
|
});
|
|
11253
11539
|
})
|
|
11254
11540
|
);
|
|
@@ -11400,6 +11686,17 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z62.pipe(
|
|
|
11400
11686
|
});
|
|
11401
11687
|
})
|
|
11402
11688
|
);
|
|
11689
|
+
var UpdateEntityOverageAllowedResponse$inboundSchema = z62.pipe(
|
|
11690
|
+
z62.object({
|
|
11691
|
+
feature_id: string4(),
|
|
11692
|
+
enabled: z62._default(boolean2(), false)
|
|
11693
|
+
}),
|
|
11694
|
+
z62.transform((v) => {
|
|
11695
|
+
return remap(v, {
|
|
11696
|
+
"feature_id": "featureId"
|
|
11697
|
+
});
|
|
11698
|
+
})
|
|
11699
|
+
);
|
|
11403
11700
|
var UpdateEntityBillingControlsResponse$inboundSchema = z62.pipe(
|
|
11404
11701
|
z62.object({
|
|
11405
11702
|
spend_limits: optional2(
|
|
@@ -11407,12 +11704,16 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z62.pipe(
|
|
|
11407
11704
|
),
|
|
11408
11705
|
usage_alerts: optional2(
|
|
11409
11706
|
z62.array(z62.lazy(() => UpdateEntityUsageAlertResponse$inboundSchema))
|
|
11707
|
+
),
|
|
11708
|
+
overage_allowed: optional2(
|
|
11709
|
+
z62.array(z62.lazy(() => UpdateEntityOverageAllowedResponse$inboundSchema))
|
|
11410
11710
|
)
|
|
11411
11711
|
}),
|
|
11412
11712
|
z62.transform((v) => {
|
|
11413
11713
|
return remap(v, {
|
|
11414
11714
|
"spend_limits": "spendLimits",
|
|
11415
|
-
"usage_alerts": "usageAlerts"
|
|
11715
|
+
"usage_alerts": "usageAlerts",
|
|
11716
|
+
"overage_allowed": "overageAllowed"
|
|
11416
11717
|
});
|
|
11417
11718
|
})
|
|
11418
11719
|
);
|
|
@@ -11765,11 +12066,13 @@ var UpdatePlanExpiryDurationTypeRequest$outboundSchema = z64.enum(UpdatePlanExpi
|
|
|
11765
12066
|
var UpdatePlanRolloverRequest$outboundSchema = z64.pipe(
|
|
11766
12067
|
z64.object({
|
|
11767
12068
|
max: z64.optional(z64.number()),
|
|
12069
|
+
maxPercentage: z64.optional(z64.number()),
|
|
11768
12070
|
expiryDurationType: UpdatePlanExpiryDurationTypeRequest$outboundSchema,
|
|
11769
12071
|
expiryDurationLength: z64.optional(z64.number())
|
|
11770
12072
|
}),
|
|
11771
12073
|
z64.transform((v) => {
|
|
11772
12074
|
return remap(v, {
|
|
12075
|
+
maxPercentage: "max_percentage",
|
|
11773
12076
|
expiryDurationType: "expiry_duration_type",
|
|
11774
12077
|
expiryDurationLength: "expiry_duration_length"
|
|
11775
12078
|
});
|
|
@@ -11954,11 +12257,13 @@ var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePla
|
|
|
11954
12257
|
var UpdatePlanRolloverResponse$inboundSchema = z64.pipe(
|
|
11955
12258
|
z64.object({
|
|
11956
12259
|
max: nullable(number2()),
|
|
12260
|
+
max_percentage: z64.optional(z64.nullable(number2())),
|
|
11957
12261
|
expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
|
|
11958
12262
|
expiry_duration_length: optional2(number2())
|
|
11959
12263
|
}),
|
|
11960
12264
|
z64.transform((v) => {
|
|
11961
12265
|
return remap(v, {
|
|
12266
|
+
"max_percentage": "maxPercentage",
|
|
11962
12267
|
"expiry_duration_type": "expiryDurationType",
|
|
11963
12268
|
"expiry_duration_length": "expiryDurationLength"
|
|
11964
12269
|
});
|
|
@@ -12235,7 +12540,8 @@ async function $do2(client, request, options) {
|
|
|
12235
12540
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set([
|
|
12236
12541
|
"check",
|
|
12237
12542
|
"track",
|
|
12238
|
-
"getOrCreateCustomer"
|
|
12543
|
+
"getOrCreateCustomer",
|
|
12544
|
+
"getEntity"
|
|
12239
12545
|
]);
|
|
12240
12546
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
12241
12547
|
var FAIL_OPEN_BODIES = {
|
|
@@ -12265,6 +12571,18 @@ var FAIL_OPEN_BODIES = {
|
|
|
12265
12571
|
purchases: [],
|
|
12266
12572
|
balances: {},
|
|
12267
12573
|
flags: {}
|
|
12574
|
+
},
|
|
12575
|
+
getEntity: {
|
|
12576
|
+
id: null,
|
|
12577
|
+
name: null,
|
|
12578
|
+
customer_id: null,
|
|
12579
|
+
feature_id: null,
|
|
12580
|
+
created_at: 0,
|
|
12581
|
+
env: "live",
|
|
12582
|
+
subscriptions: [],
|
|
12583
|
+
purchases: [],
|
|
12584
|
+
balances: {},
|
|
12585
|
+
flags: {}
|
|
12268
12586
|
}
|
|
12269
12587
|
};
|
|
12270
12588
|
var FailOpenHook = class {
|