autumn-js 1.2.38 → 1.2.39
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.js +319 -101
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +319 -101
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +319 -101
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +319 -101
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +319 -101
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-CEUAUTNB.mjs → chunk-5IUIFE55.mjs} +1 -1
- package/dist/backend/{chunk-ZR5K6VMA.mjs → chunk-GL2SBEQ5.mjs} +1 -1
- package/dist/backend/{chunk-Y3AJLHVL.mjs → chunk-KJP3DHPM.mjs} +1 -1
- package/dist/backend/{chunk-N52JKSJ7.mjs → chunk-KM5AXZWJ.mjs} +4 -4
- package/dist/backend/{chunk-5C7KP2BU.mjs → chunk-MSMJS42G.mjs} +319 -101
- package/dist/backend/{chunk-TIFFBW34.mjs → chunk-UMTASWZL.mjs} +1 -1
- package/dist/backend/{chunk-PKM7CEE3.mjs → chunk-V32P22RC.mjs} +6 -6
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +319 -101
- package/dist/backend/core/handlers/coreHandler.mjs +6 -6
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.js +319 -101
- package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +319 -101
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +319 -101
- package/dist/backend/core/index.mjs +9 -9
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +319 -101
- package/dist/backend/index.mjs +9 -9
- package/dist/backend/{routeTypes-gWhxv6xo.d.mts → routeTypes-CIqS7yVo.d.mts} +641 -97
- package/dist/backend/{routeTypes-C8YKwtFL.d.ts → routeTypes-uWaE8YYa.d.ts} +641 -97
- package/dist/better-auth/{chunk-A3ZOJU54.mjs → chunk-LLBM6UQN.mjs} +319 -101
- package/dist/better-auth/index.js +319 -101
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +319 -101
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +319 -101
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/react/AutumnContext.d.mts +2 -2
- package/dist/react/AutumnContext.d.ts +2 -2
- package/dist/react/client/AutumnClient.d.mts +2 -2
- package/dist/react/client/AutumnClient.d.ts +2 -2
- package/dist/react/client/IAutumnClient.d.mts +2 -2
- package/dist/react/client/IAutumnClient.d.ts +2 -2
- package/dist/react/client/index.d.mts +2 -2
- package/dist/react/client/index.d.ts +2 -2
- package/dist/react/{customer-D811_jP2.d.ts → customer-CrxRrY4o.d.ts} +99 -24
- package/dist/react/{customer-CkuydPCd.d.mts → customer-DM044m1a.d.mts} +99 -24
- package/dist/react/hooks/index.d.mts +2 -2
- package/dist/react/hooks/index.d.ts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useCustomer.d.mts +2 -2
- package/dist/react/hooks/useCustomer.d.ts +2 -2
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/index.d.mts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/{params-CaUBdt-x.d.ts → params-B-1vi9za.d.ts} +60 -0
- package/dist/react/{params-C0cH2cYK.d.mts → params-Bf18ATYi.d.mts} +60 -0
- package/dist/sdk/index.d.mts +723 -106
- package/dist/sdk/index.d.ts +723 -106
- package/dist/sdk/index.js +391 -101
- package/dist/sdk/index.mjs +320 -102
- package/package.json +1 -1
- package/dist/backend/{chunk-MOHYGUMA.mjs → chunk-IXUCY7AU.mjs} +3 -3
|
@@ -9684,18 +9684,34 @@ var CreateEntityLimitTypeResponse = {
|
|
|
9684
9684
|
Absolute: "absolute",
|
|
9685
9685
|
UsagePercentage: "usage_percentage"
|
|
9686
9686
|
};
|
|
9687
|
+
var CreateEntitySpendLimitSource = {
|
|
9688
|
+
Customer: "customer",
|
|
9689
|
+
Plan: "plan"
|
|
9690
|
+
};
|
|
9687
9691
|
var CreateEntityIntervalResponse = {
|
|
9688
9692
|
Day: "day",
|
|
9689
9693
|
Week: "week",
|
|
9690
9694
|
Month: "month",
|
|
9691
9695
|
Year: "year"
|
|
9692
9696
|
};
|
|
9697
|
+
var CreateEntityUsageLimitSource = {
|
|
9698
|
+
Customer: "customer",
|
|
9699
|
+
Plan: "plan"
|
|
9700
|
+
};
|
|
9693
9701
|
var CreateEntityThresholdTypeResponse = {
|
|
9694
9702
|
Usage: "usage",
|
|
9695
9703
|
UsagePercentage: "usage_percentage",
|
|
9696
9704
|
Remaining: "remaining",
|
|
9697
9705
|
RemainingPercentage: "remaining_percentage"
|
|
9698
9706
|
};
|
|
9707
|
+
var CreateEntityUsageAlertSource = {
|
|
9708
|
+
Customer: "customer",
|
|
9709
|
+
Plan: "plan"
|
|
9710
|
+
};
|
|
9711
|
+
var CreateEntityOverageAllowedSource = {
|
|
9712
|
+
Customer: "customer",
|
|
9713
|
+
Plan: "plan"
|
|
9714
|
+
};
|
|
9699
9715
|
var CreateEntityProcessorType = {
|
|
9700
9716
|
Stripe: "stripe",
|
|
9701
9717
|
Revenuecat: "revenuecat"
|
|
@@ -9950,13 +9966,15 @@ var CreateEntityFlags$inboundSchema = z34.pipe(
|
|
|
9950
9966
|
})
|
|
9951
9967
|
);
|
|
9952
9968
|
var CreateEntityLimitTypeResponse$inboundSchema = inboundSchema(CreateEntityLimitTypeResponse);
|
|
9969
|
+
var CreateEntitySpendLimitSource$inboundSchema = inboundSchema(CreateEntitySpendLimitSource);
|
|
9953
9970
|
var CreateEntitySpendLimitResponse$inboundSchema = z34.pipe(
|
|
9954
9971
|
z34.object({
|
|
9955
9972
|
feature_id: optional3(string4()),
|
|
9956
9973
|
enabled: z34._default(boolean2(), false),
|
|
9957
9974
|
limit_type: optional3(CreateEntityLimitTypeResponse$inboundSchema),
|
|
9958
9975
|
overage_limit: optional3(number2()),
|
|
9959
|
-
skip_overage_billing: optional3(boolean2())
|
|
9976
|
+
skip_overage_billing: optional3(boolean2()),
|
|
9977
|
+
source: optional3(CreateEntitySpendLimitSource$inboundSchema)
|
|
9960
9978
|
}),
|
|
9961
9979
|
z34.transform((v) => {
|
|
9962
9980
|
return remap(v, {
|
|
@@ -9971,6 +9989,7 @@ var CreateEntityIntervalResponse$inboundSchema = inboundSchema(CreateEntityInter
|
|
|
9971
9989
|
var CreateEntityFilterResponse$inboundSchema = z34.object({
|
|
9972
9990
|
properties: z34.record(z34.string(), z34.any())
|
|
9973
9991
|
});
|
|
9992
|
+
var CreateEntityUsageLimitSource$inboundSchema = inboundSchema(CreateEntityUsageLimitSource);
|
|
9974
9993
|
var CreateEntityUsageLimitResponse$inboundSchema = z34.pipe(
|
|
9975
9994
|
z34.object({
|
|
9976
9995
|
feature_id: string4(),
|
|
@@ -9980,7 +9999,8 @@ var CreateEntityUsageLimitResponse$inboundSchema = z34.pipe(
|
|
|
9980
9999
|
filter: optional3(
|
|
9981
10000
|
z34.lazy(() => CreateEntityFilterResponse$inboundSchema)
|
|
9982
10001
|
),
|
|
9983
|
-
usage: optional3(number2())
|
|
10002
|
+
usage: optional3(number2()),
|
|
10003
|
+
source: optional3(CreateEntityUsageLimitSource$inboundSchema)
|
|
9984
10004
|
}),
|
|
9985
10005
|
z34.transform((v) => {
|
|
9986
10006
|
return remap(v, {
|
|
@@ -9989,13 +10009,15 @@ var CreateEntityUsageLimitResponse$inboundSchema = z34.pipe(
|
|
|
9989
10009
|
})
|
|
9990
10010
|
);
|
|
9991
10011
|
var CreateEntityThresholdTypeResponse$inboundSchema = inboundSchema(CreateEntityThresholdTypeResponse);
|
|
10012
|
+
var CreateEntityUsageAlertSource$inboundSchema = inboundSchema(CreateEntityUsageAlertSource);
|
|
9992
10013
|
var CreateEntityUsageAlertResponse$inboundSchema = z34.pipe(
|
|
9993
10014
|
z34.object({
|
|
9994
10015
|
feature_id: optional3(string4()),
|
|
9995
10016
|
enabled: z34._default(boolean2(), true),
|
|
9996
10017
|
threshold: number2(),
|
|
9997
10018
|
threshold_type: CreateEntityThresholdTypeResponse$inboundSchema,
|
|
9998
|
-
name: optional3(string4())
|
|
10019
|
+
name: optional3(string4()),
|
|
10020
|
+
source: optional3(CreateEntityUsageAlertSource$inboundSchema)
|
|
9999
10021
|
}),
|
|
10000
10022
|
z34.transform((v) => {
|
|
10001
10023
|
return remap(v, {
|
|
@@ -10004,10 +10026,12 @@ var CreateEntityUsageAlertResponse$inboundSchema = z34.pipe(
|
|
|
10004
10026
|
});
|
|
10005
10027
|
})
|
|
10006
10028
|
);
|
|
10029
|
+
var CreateEntityOverageAllowedSource$inboundSchema = inboundSchema(CreateEntityOverageAllowedSource);
|
|
10007
10030
|
var CreateEntityOverageAllowedResponse$inboundSchema = z34.pipe(
|
|
10008
10031
|
z34.object({
|
|
10009
10032
|
feature_id: string4(),
|
|
10010
|
-
enabled: z34._default(boolean2(), false)
|
|
10033
|
+
enabled: z34._default(boolean2(), false),
|
|
10034
|
+
source: optional3(CreateEntityOverageAllowedSource$inboundSchema)
|
|
10011
10035
|
}),
|
|
10012
10036
|
z34.transform((v) => {
|
|
10013
10037
|
return remap(v, {
|
|
@@ -12379,22 +12403,42 @@ var CustomerPurchaseLimitInterval1 = {
|
|
|
12379
12403
|
Week: "week",
|
|
12380
12404
|
Month: "month"
|
|
12381
12405
|
};
|
|
12406
|
+
var AutoTopupSource = {
|
|
12407
|
+
Customer: "customer",
|
|
12408
|
+
Plan: "plan"
|
|
12409
|
+
};
|
|
12382
12410
|
var CustomerLimitType = {
|
|
12383
12411
|
Absolute: "absolute",
|
|
12384
12412
|
UsagePercentage: "usage_percentage"
|
|
12385
12413
|
};
|
|
12414
|
+
var SpendLimitSource = {
|
|
12415
|
+
Customer: "customer",
|
|
12416
|
+
Plan: "plan"
|
|
12417
|
+
};
|
|
12386
12418
|
var CustomerUsageLimitInterval = {
|
|
12387
12419
|
Day: "day",
|
|
12388
12420
|
Week: "week",
|
|
12389
12421
|
Month: "month",
|
|
12390
12422
|
Year: "year"
|
|
12391
12423
|
};
|
|
12424
|
+
var UsageLimitSource = {
|
|
12425
|
+
Customer: "customer",
|
|
12426
|
+
Plan: "plan"
|
|
12427
|
+
};
|
|
12392
12428
|
var CustomerThresholdType = {
|
|
12393
12429
|
Usage: "usage",
|
|
12394
12430
|
UsagePercentage: "usage_percentage",
|
|
12395
12431
|
Remaining: "remaining",
|
|
12396
12432
|
RemainingPercentage: "remaining_percentage"
|
|
12397
12433
|
};
|
|
12434
|
+
var UsageAlertSource = {
|
|
12435
|
+
Customer: "customer",
|
|
12436
|
+
Plan: "plan"
|
|
12437
|
+
};
|
|
12438
|
+
var OverageAllowedSource = {
|
|
12439
|
+
Customer: "customer",
|
|
12440
|
+
Plan: "plan"
|
|
12441
|
+
};
|
|
12398
12442
|
var CustomerStatus = {
|
|
12399
12443
|
Active: "active",
|
|
12400
12444
|
Scheduled: "scheduled"
|
|
@@ -12437,36 +12481,37 @@ var CustomerEnv$inboundSchema = inboundSchema(CustomerEnv);
|
|
|
12437
12481
|
var CustomerPurchaseLimitInterval2$inboundSchema = inboundSchema(CustomerPurchaseLimitInterval2);
|
|
12438
12482
|
var CustomerPurchaseLimit2$inboundSchema = z40.pipe(
|
|
12439
12483
|
z40.object({
|
|
12440
|
-
interval:
|
|
12441
|
-
interval_count:
|
|
12442
|
-
limit:
|
|
12443
|
-
count: number2(),
|
|
12444
|
-
next_reset_at: number2()
|
|
12484
|
+
interval: CustomerPurchaseLimitInterval2$inboundSchema,
|
|
12485
|
+
interval_count: z40._default(number2(), 1),
|
|
12486
|
+
limit: number2()
|
|
12445
12487
|
}),
|
|
12446
12488
|
z40.transform((v) => {
|
|
12447
12489
|
return remap(v, {
|
|
12448
|
-
"interval_count": "intervalCount"
|
|
12449
|
-
"next_reset_at": "nextResetAt"
|
|
12490
|
+
"interval_count": "intervalCount"
|
|
12450
12491
|
});
|
|
12451
12492
|
})
|
|
12452
12493
|
);
|
|
12453
12494
|
var CustomerPurchaseLimitInterval1$inboundSchema = inboundSchema(CustomerPurchaseLimitInterval1);
|
|
12454
12495
|
var CustomerPurchaseLimit1$inboundSchema = z40.pipe(
|
|
12455
12496
|
z40.object({
|
|
12456
|
-
interval: CustomerPurchaseLimitInterval1$inboundSchema,
|
|
12457
|
-
interval_count:
|
|
12458
|
-
limit: number2()
|
|
12497
|
+
interval: nullable(CustomerPurchaseLimitInterval1$inboundSchema),
|
|
12498
|
+
interval_count: nullable(number2()),
|
|
12499
|
+
limit: nullable(number2()),
|
|
12500
|
+
count: number2(),
|
|
12501
|
+
next_reset_at: number2()
|
|
12459
12502
|
}),
|
|
12460
12503
|
z40.transform((v) => {
|
|
12461
12504
|
return remap(v, {
|
|
12462
|
-
"interval_count": "intervalCount"
|
|
12505
|
+
"interval_count": "intervalCount",
|
|
12506
|
+
"next_reset_at": "nextResetAt"
|
|
12463
12507
|
});
|
|
12464
12508
|
})
|
|
12465
12509
|
);
|
|
12466
12510
|
var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
12467
|
-
z40.lazy(() =>
|
|
12468
|
-
z40.lazy(() =>
|
|
12511
|
+
z40.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
12512
|
+
z40.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
12469
12513
|
]);
|
|
12514
|
+
var AutoTopupSource$inboundSchema = inboundSchema(AutoTopupSource);
|
|
12470
12515
|
var CustomerAutoTopup$inboundSchema = z40.pipe(
|
|
12471
12516
|
z40.object({
|
|
12472
12517
|
feature_id: string4(),
|
|
@@ -12474,10 +12519,11 @@ var CustomerAutoTopup$inboundSchema = z40.pipe(
|
|
|
12474
12519
|
threshold: number2(),
|
|
12475
12520
|
quantity: number2(),
|
|
12476
12521
|
purchase_limit: optional3(smartUnion([
|
|
12477
|
-
z40.lazy(() =>
|
|
12478
|
-
z40.lazy(() =>
|
|
12522
|
+
z40.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
12523
|
+
z40.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
12479
12524
|
])),
|
|
12480
|
-
invoice_mode: optional3(boolean2())
|
|
12525
|
+
invoice_mode: optional3(boolean2()),
|
|
12526
|
+
source: optional3(AutoTopupSource$inboundSchema)
|
|
12481
12527
|
}),
|
|
12482
12528
|
z40.transform((v) => {
|
|
12483
12529
|
return remap(v, {
|
|
@@ -12488,13 +12534,15 @@ var CustomerAutoTopup$inboundSchema = z40.pipe(
|
|
|
12488
12534
|
})
|
|
12489
12535
|
);
|
|
12490
12536
|
var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
|
|
12537
|
+
var SpendLimitSource$inboundSchema = inboundSchema(SpendLimitSource);
|
|
12491
12538
|
var CustomerSpendLimit$inboundSchema = z40.pipe(
|
|
12492
12539
|
z40.object({
|
|
12493
12540
|
feature_id: optional3(string4()),
|
|
12494
12541
|
enabled: z40._default(boolean2(), false),
|
|
12495
12542
|
limit_type: optional3(CustomerLimitType$inboundSchema),
|
|
12496
12543
|
overage_limit: optional3(number2()),
|
|
12497
|
-
skip_overage_billing: optional3(boolean2())
|
|
12544
|
+
skip_overage_billing: optional3(boolean2()),
|
|
12545
|
+
source: optional3(SpendLimitSource$inboundSchema)
|
|
12498
12546
|
}),
|
|
12499
12547
|
z40.transform((v) => {
|
|
12500
12548
|
return remap(v, {
|
|
@@ -12509,6 +12557,7 @@ var CustomerUsageLimitInterval$inboundSchema = inboundSchema(CustomerUsageLimitI
|
|
|
12509
12557
|
var CustomerFilter$inboundSchema = z40.object({
|
|
12510
12558
|
properties: z40.record(z40.string(), z40.any())
|
|
12511
12559
|
});
|
|
12560
|
+
var UsageLimitSource$inboundSchema = inboundSchema(UsageLimitSource);
|
|
12512
12561
|
var CustomerUsageLimit$inboundSchema = z40.pipe(
|
|
12513
12562
|
z40.object({
|
|
12514
12563
|
feature_id: string4(),
|
|
@@ -12516,7 +12565,8 @@ var CustomerUsageLimit$inboundSchema = z40.pipe(
|
|
|
12516
12565
|
limit: number2(),
|
|
12517
12566
|
interval: CustomerUsageLimitInterval$inboundSchema,
|
|
12518
12567
|
filter: optional3(z40.lazy(() => CustomerFilter$inboundSchema)),
|
|
12519
|
-
usage: optional3(number2())
|
|
12568
|
+
usage: optional3(number2()),
|
|
12569
|
+
source: optional3(UsageLimitSource$inboundSchema)
|
|
12520
12570
|
}),
|
|
12521
12571
|
z40.transform((v) => {
|
|
12522
12572
|
return remap(v, {
|
|
@@ -12525,13 +12575,15 @@ var CustomerUsageLimit$inboundSchema = z40.pipe(
|
|
|
12525
12575
|
})
|
|
12526
12576
|
);
|
|
12527
12577
|
var CustomerThresholdType$inboundSchema = inboundSchema(CustomerThresholdType);
|
|
12578
|
+
var UsageAlertSource$inboundSchema = inboundSchema(UsageAlertSource);
|
|
12528
12579
|
var CustomerUsageAlert$inboundSchema = z40.pipe(
|
|
12529
12580
|
z40.object({
|
|
12530
12581
|
feature_id: optional3(string4()),
|
|
12531
12582
|
enabled: z40._default(boolean2(), true),
|
|
12532
12583
|
threshold: number2(),
|
|
12533
12584
|
threshold_type: CustomerThresholdType$inboundSchema,
|
|
12534
|
-
name: optional3(string4())
|
|
12585
|
+
name: optional3(string4()),
|
|
12586
|
+
source: optional3(UsageAlertSource$inboundSchema)
|
|
12535
12587
|
}),
|
|
12536
12588
|
z40.transform((v) => {
|
|
12537
12589
|
return remap(v, {
|
|
@@ -12540,10 +12592,12 @@ var CustomerUsageAlert$inboundSchema = z40.pipe(
|
|
|
12540
12592
|
});
|
|
12541
12593
|
})
|
|
12542
12594
|
);
|
|
12595
|
+
var OverageAllowedSource$inboundSchema = inboundSchema(OverageAllowedSource);
|
|
12543
12596
|
var CustomerOverageAllowed$inboundSchema = z40.pipe(
|
|
12544
12597
|
z40.object({
|
|
12545
12598
|
feature_id: string4(),
|
|
12546
|
-
enabled: z40._default(boolean2(), false)
|
|
12599
|
+
enabled: z40._default(boolean2(), false),
|
|
12600
|
+
source: optional3(OverageAllowedSource$inboundSchema)
|
|
12547
12601
|
}),
|
|
12548
12602
|
z40.transform((v) => {
|
|
12549
12603
|
return remap(v, {
|
|
@@ -13048,22 +13102,42 @@ var GetCustomerPurchaseLimitInterval1 = {
|
|
|
13048
13102
|
Week: "week",
|
|
13049
13103
|
Month: "month"
|
|
13050
13104
|
};
|
|
13105
|
+
var GetCustomerAutoTopupSource = {
|
|
13106
|
+
Customer: "customer",
|
|
13107
|
+
Plan: "plan"
|
|
13108
|
+
};
|
|
13051
13109
|
var GetCustomerLimitType = {
|
|
13052
13110
|
Absolute: "absolute",
|
|
13053
13111
|
UsagePercentage: "usage_percentage"
|
|
13054
13112
|
};
|
|
13113
|
+
var GetCustomerSpendLimitSource = {
|
|
13114
|
+
Customer: "customer",
|
|
13115
|
+
Plan: "plan"
|
|
13116
|
+
};
|
|
13055
13117
|
var GetCustomerUsageLimitInterval = {
|
|
13056
13118
|
Day: "day",
|
|
13057
13119
|
Week: "week",
|
|
13058
13120
|
Month: "month",
|
|
13059
13121
|
Year: "year"
|
|
13060
13122
|
};
|
|
13123
|
+
var GetCustomerUsageLimitSource = {
|
|
13124
|
+
Customer: "customer",
|
|
13125
|
+
Plan: "plan"
|
|
13126
|
+
};
|
|
13061
13127
|
var GetCustomerThresholdType = {
|
|
13062
13128
|
Usage: "usage",
|
|
13063
13129
|
UsagePercentage: "usage_percentage",
|
|
13064
13130
|
Remaining: "remaining",
|
|
13065
13131
|
RemainingPercentage: "remaining_percentage"
|
|
13066
13132
|
};
|
|
13133
|
+
var GetCustomerUsageAlertSource = {
|
|
13134
|
+
Customer: "customer",
|
|
13135
|
+
Plan: "plan"
|
|
13136
|
+
};
|
|
13137
|
+
var GetCustomerOverageAllowedSource = {
|
|
13138
|
+
Customer: "customer",
|
|
13139
|
+
Plan: "plan"
|
|
13140
|
+
};
|
|
13067
13141
|
var GetCustomerStatus = {
|
|
13068
13142
|
Active: "active",
|
|
13069
13143
|
Scheduled: "scheduled"
|
|
@@ -13117,36 +13191,37 @@ var GetCustomerEnv$inboundSchema = inboundSchema(GetCustomerEnv);
|
|
|
13117
13191
|
var GetCustomerPurchaseLimitInterval2$inboundSchema = inboundSchema(GetCustomerPurchaseLimitInterval2);
|
|
13118
13192
|
var GetCustomerPurchaseLimit2$inboundSchema = z47.pipe(
|
|
13119
13193
|
z47.object({
|
|
13120
|
-
interval:
|
|
13121
|
-
interval_count:
|
|
13122
|
-
limit:
|
|
13123
|
-
count: number2(),
|
|
13124
|
-
next_reset_at: number2()
|
|
13194
|
+
interval: GetCustomerPurchaseLimitInterval2$inboundSchema,
|
|
13195
|
+
interval_count: z47._default(number2(), 1),
|
|
13196
|
+
limit: number2()
|
|
13125
13197
|
}),
|
|
13126
13198
|
z47.transform((v) => {
|
|
13127
13199
|
return remap(v, {
|
|
13128
|
-
"interval_count": "intervalCount"
|
|
13129
|
-
"next_reset_at": "nextResetAt"
|
|
13200
|
+
"interval_count": "intervalCount"
|
|
13130
13201
|
});
|
|
13131
13202
|
})
|
|
13132
13203
|
);
|
|
13133
13204
|
var GetCustomerPurchaseLimitInterval1$inboundSchema = inboundSchema(GetCustomerPurchaseLimitInterval1);
|
|
13134
13205
|
var GetCustomerPurchaseLimit1$inboundSchema = z47.pipe(
|
|
13135
13206
|
z47.object({
|
|
13136
|
-
interval: GetCustomerPurchaseLimitInterval1$inboundSchema,
|
|
13137
|
-
interval_count:
|
|
13138
|
-
limit: number2()
|
|
13207
|
+
interval: nullable(GetCustomerPurchaseLimitInterval1$inboundSchema),
|
|
13208
|
+
interval_count: nullable(number2()),
|
|
13209
|
+
limit: nullable(number2()),
|
|
13210
|
+
count: number2(),
|
|
13211
|
+
next_reset_at: number2()
|
|
13139
13212
|
}),
|
|
13140
13213
|
z47.transform((v) => {
|
|
13141
13214
|
return remap(v, {
|
|
13142
|
-
"interval_count": "intervalCount"
|
|
13215
|
+
"interval_count": "intervalCount",
|
|
13216
|
+
"next_reset_at": "nextResetAt"
|
|
13143
13217
|
});
|
|
13144
13218
|
})
|
|
13145
13219
|
);
|
|
13146
13220
|
var GetCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
13147
|
-
z47.lazy(() =>
|
|
13148
|
-
z47.lazy(() =>
|
|
13221
|
+
z47.lazy(() => GetCustomerPurchaseLimit1$inboundSchema),
|
|
13222
|
+
z47.lazy(() => GetCustomerPurchaseLimit2$inboundSchema)
|
|
13149
13223
|
]);
|
|
13224
|
+
var GetCustomerAutoTopupSource$inboundSchema = inboundSchema(GetCustomerAutoTopupSource);
|
|
13150
13225
|
var GetCustomerAutoTopup$inboundSchema = z47.pipe(
|
|
13151
13226
|
z47.object({
|
|
13152
13227
|
feature_id: string4(),
|
|
@@ -13154,10 +13229,11 @@ var GetCustomerAutoTopup$inboundSchema = z47.pipe(
|
|
|
13154
13229
|
threshold: number2(),
|
|
13155
13230
|
quantity: number2(),
|
|
13156
13231
|
purchase_limit: optional3(smartUnion([
|
|
13157
|
-
z47.lazy(() =>
|
|
13158
|
-
z47.lazy(() =>
|
|
13232
|
+
z47.lazy(() => GetCustomerPurchaseLimit1$inboundSchema),
|
|
13233
|
+
z47.lazy(() => GetCustomerPurchaseLimit2$inboundSchema)
|
|
13159
13234
|
])),
|
|
13160
|
-
invoice_mode: optional3(boolean2())
|
|
13235
|
+
invoice_mode: optional3(boolean2()),
|
|
13236
|
+
source: optional3(GetCustomerAutoTopupSource$inboundSchema)
|
|
13161
13237
|
}),
|
|
13162
13238
|
z47.transform((v) => {
|
|
13163
13239
|
return remap(v, {
|
|
@@ -13168,13 +13244,15 @@ var GetCustomerAutoTopup$inboundSchema = z47.pipe(
|
|
|
13168
13244
|
})
|
|
13169
13245
|
);
|
|
13170
13246
|
var GetCustomerLimitType$inboundSchema = inboundSchema(GetCustomerLimitType);
|
|
13247
|
+
var GetCustomerSpendLimitSource$inboundSchema = inboundSchema(GetCustomerSpendLimitSource);
|
|
13171
13248
|
var GetCustomerSpendLimit$inboundSchema = z47.pipe(
|
|
13172
13249
|
z47.object({
|
|
13173
13250
|
feature_id: optional3(string4()),
|
|
13174
13251
|
enabled: z47._default(boolean2(), false),
|
|
13175
13252
|
limit_type: optional3(GetCustomerLimitType$inboundSchema),
|
|
13176
13253
|
overage_limit: optional3(number2()),
|
|
13177
|
-
skip_overage_billing: optional3(boolean2())
|
|
13254
|
+
skip_overage_billing: optional3(boolean2()),
|
|
13255
|
+
source: optional3(GetCustomerSpendLimitSource$inboundSchema)
|
|
13178
13256
|
}),
|
|
13179
13257
|
z47.transform((v) => {
|
|
13180
13258
|
return remap(v, {
|
|
@@ -13189,6 +13267,7 @@ var GetCustomerUsageLimitInterval$inboundSchema = inboundSchema(GetCustomerUsage
|
|
|
13189
13267
|
var GetCustomerFilter$inboundSchema = z47.object({
|
|
13190
13268
|
properties: z47.record(z47.string(), z47.any())
|
|
13191
13269
|
});
|
|
13270
|
+
var GetCustomerUsageLimitSource$inboundSchema = inboundSchema(GetCustomerUsageLimitSource);
|
|
13192
13271
|
var GetCustomerUsageLimit$inboundSchema = z47.pipe(
|
|
13193
13272
|
z47.object({
|
|
13194
13273
|
feature_id: string4(),
|
|
@@ -13196,7 +13275,8 @@ var GetCustomerUsageLimit$inboundSchema = z47.pipe(
|
|
|
13196
13275
|
limit: number2(),
|
|
13197
13276
|
interval: GetCustomerUsageLimitInterval$inboundSchema,
|
|
13198
13277
|
filter: optional3(z47.lazy(() => GetCustomerFilter$inboundSchema)),
|
|
13199
|
-
usage: optional3(number2())
|
|
13278
|
+
usage: optional3(number2()),
|
|
13279
|
+
source: optional3(GetCustomerUsageLimitSource$inboundSchema)
|
|
13200
13280
|
}),
|
|
13201
13281
|
z47.transform((v) => {
|
|
13202
13282
|
return remap(v, {
|
|
@@ -13205,13 +13285,15 @@ var GetCustomerUsageLimit$inboundSchema = z47.pipe(
|
|
|
13205
13285
|
})
|
|
13206
13286
|
);
|
|
13207
13287
|
var GetCustomerThresholdType$inboundSchema = inboundSchema(GetCustomerThresholdType);
|
|
13288
|
+
var GetCustomerUsageAlertSource$inboundSchema = inboundSchema(GetCustomerUsageAlertSource);
|
|
13208
13289
|
var GetCustomerUsageAlert$inboundSchema = z47.pipe(
|
|
13209
13290
|
z47.object({
|
|
13210
13291
|
feature_id: optional3(string4()),
|
|
13211
13292
|
enabled: z47._default(boolean2(), true),
|
|
13212
13293
|
threshold: number2(),
|
|
13213
13294
|
threshold_type: GetCustomerThresholdType$inboundSchema,
|
|
13214
|
-
name: optional3(string4())
|
|
13295
|
+
name: optional3(string4()),
|
|
13296
|
+
source: optional3(GetCustomerUsageAlertSource$inboundSchema)
|
|
13215
13297
|
}),
|
|
13216
13298
|
z47.transform((v) => {
|
|
13217
13299
|
return remap(v, {
|
|
@@ -13220,10 +13302,12 @@ var GetCustomerUsageAlert$inboundSchema = z47.pipe(
|
|
|
13220
13302
|
});
|
|
13221
13303
|
})
|
|
13222
13304
|
);
|
|
13305
|
+
var GetCustomerOverageAllowedSource$inboundSchema = inboundSchema(GetCustomerOverageAllowedSource);
|
|
13223
13306
|
var GetCustomerOverageAllowed$inboundSchema = z47.pipe(
|
|
13224
13307
|
z47.object({
|
|
13225
13308
|
feature_id: string4(),
|
|
13226
|
-
enabled: z47._default(boolean2(), false)
|
|
13309
|
+
enabled: z47._default(boolean2(), false),
|
|
13310
|
+
source: optional3(GetCustomerOverageAllowedSource$inboundSchema)
|
|
13227
13311
|
}),
|
|
13228
13312
|
z47.transform((v) => {
|
|
13229
13313
|
return remap(v, {
|
|
@@ -13612,18 +13696,34 @@ var GetEntityLimitType = {
|
|
|
13612
13696
|
Absolute: "absolute",
|
|
13613
13697
|
UsagePercentage: "usage_percentage"
|
|
13614
13698
|
};
|
|
13699
|
+
var GetEntitySpendLimitSource = {
|
|
13700
|
+
Customer: "customer",
|
|
13701
|
+
Plan: "plan"
|
|
13702
|
+
};
|
|
13615
13703
|
var GetEntityInterval = {
|
|
13616
13704
|
Day: "day",
|
|
13617
13705
|
Week: "week",
|
|
13618
13706
|
Month: "month",
|
|
13619
13707
|
Year: "year"
|
|
13620
13708
|
};
|
|
13709
|
+
var GetEntityUsageLimitSource = {
|
|
13710
|
+
Customer: "customer",
|
|
13711
|
+
Plan: "plan"
|
|
13712
|
+
};
|
|
13621
13713
|
var GetEntityThresholdType = {
|
|
13622
13714
|
Usage: "usage",
|
|
13623
13715
|
UsagePercentage: "usage_percentage",
|
|
13624
13716
|
Remaining: "remaining",
|
|
13625
13717
|
RemainingPercentage: "remaining_percentage"
|
|
13626
13718
|
};
|
|
13719
|
+
var GetEntityUsageAlertSource = {
|
|
13720
|
+
Customer: "customer",
|
|
13721
|
+
Plan: "plan"
|
|
13722
|
+
};
|
|
13723
|
+
var GetEntityOverageAllowedSource = {
|
|
13724
|
+
Customer: "customer",
|
|
13725
|
+
Plan: "plan"
|
|
13726
|
+
};
|
|
13627
13727
|
var GetEntityProcessorType = {
|
|
13628
13728
|
Stripe: "stripe",
|
|
13629
13729
|
Revenuecat: "revenuecat"
|
|
@@ -13778,13 +13878,15 @@ var GetEntityFlags$inboundSchema = z48.pipe(
|
|
|
13778
13878
|
})
|
|
13779
13879
|
);
|
|
13780
13880
|
var GetEntityLimitType$inboundSchema = inboundSchema(GetEntityLimitType);
|
|
13881
|
+
var GetEntitySpendLimitSource$inboundSchema = inboundSchema(GetEntitySpendLimitSource);
|
|
13781
13882
|
var GetEntitySpendLimit$inboundSchema = z48.pipe(
|
|
13782
13883
|
z48.object({
|
|
13783
13884
|
feature_id: optional3(string4()),
|
|
13784
13885
|
enabled: z48._default(boolean2(), false),
|
|
13785
13886
|
limit_type: optional3(GetEntityLimitType$inboundSchema),
|
|
13786
13887
|
overage_limit: optional3(number2()),
|
|
13787
|
-
skip_overage_billing: optional3(boolean2())
|
|
13888
|
+
skip_overage_billing: optional3(boolean2()),
|
|
13889
|
+
source: optional3(GetEntitySpendLimitSource$inboundSchema)
|
|
13788
13890
|
}),
|
|
13789
13891
|
z48.transform((v) => {
|
|
13790
13892
|
return remap(v, {
|
|
@@ -13799,6 +13901,7 @@ var GetEntityInterval$inboundSchema = inboundSchema(GetEntityInterval);
|
|
|
13799
13901
|
var GetEntityFilter$inboundSchema = z48.object({
|
|
13800
13902
|
properties: z48.record(z48.string(), z48.any())
|
|
13801
13903
|
});
|
|
13904
|
+
var GetEntityUsageLimitSource$inboundSchema = inboundSchema(GetEntityUsageLimitSource);
|
|
13802
13905
|
var GetEntityUsageLimit$inboundSchema = z48.pipe(
|
|
13803
13906
|
z48.object({
|
|
13804
13907
|
feature_id: string4(),
|
|
@@ -13806,7 +13909,8 @@ var GetEntityUsageLimit$inboundSchema = z48.pipe(
|
|
|
13806
13909
|
limit: number2(),
|
|
13807
13910
|
interval: GetEntityInterval$inboundSchema,
|
|
13808
13911
|
filter: optional3(z48.lazy(() => GetEntityFilter$inboundSchema)),
|
|
13809
|
-
usage: optional3(number2())
|
|
13912
|
+
usage: optional3(number2()),
|
|
13913
|
+
source: optional3(GetEntityUsageLimitSource$inboundSchema)
|
|
13810
13914
|
}),
|
|
13811
13915
|
z48.transform((v) => {
|
|
13812
13916
|
return remap(v, {
|
|
@@ -13815,13 +13919,15 @@ var GetEntityUsageLimit$inboundSchema = z48.pipe(
|
|
|
13815
13919
|
})
|
|
13816
13920
|
);
|
|
13817
13921
|
var GetEntityThresholdType$inboundSchema = inboundSchema(GetEntityThresholdType);
|
|
13922
|
+
var GetEntityUsageAlertSource$inboundSchema = inboundSchema(GetEntityUsageAlertSource);
|
|
13818
13923
|
var GetEntityUsageAlert$inboundSchema = z48.pipe(
|
|
13819
13924
|
z48.object({
|
|
13820
13925
|
feature_id: optional3(string4()),
|
|
13821
13926
|
enabled: z48._default(boolean2(), true),
|
|
13822
13927
|
threshold: number2(),
|
|
13823
13928
|
threshold_type: GetEntityThresholdType$inboundSchema,
|
|
13824
|
-
name: optional3(string4())
|
|
13929
|
+
name: optional3(string4()),
|
|
13930
|
+
source: optional3(GetEntityUsageAlertSource$inboundSchema)
|
|
13825
13931
|
}),
|
|
13826
13932
|
z48.transform((v) => {
|
|
13827
13933
|
return remap(v, {
|
|
@@ -13830,10 +13936,12 @@ var GetEntityUsageAlert$inboundSchema = z48.pipe(
|
|
|
13830
13936
|
});
|
|
13831
13937
|
})
|
|
13832
13938
|
);
|
|
13939
|
+
var GetEntityOverageAllowedSource$inboundSchema = inboundSchema(GetEntityOverageAllowedSource);
|
|
13833
13940
|
var GetEntityOverageAllowed$inboundSchema = z48.pipe(
|
|
13834
13941
|
z48.object({
|
|
13835
13942
|
feature_id: string4(),
|
|
13836
|
-
enabled: z48._default(boolean2(), false)
|
|
13943
|
+
enabled: z48._default(boolean2(), false),
|
|
13944
|
+
source: optional3(GetEntityOverageAllowedSource$inboundSchema)
|
|
13837
13945
|
}),
|
|
13838
13946
|
z48.transform((v) => {
|
|
13839
13947
|
return remap(v, {
|
|
@@ -15440,22 +15548,42 @@ var ListCustomersPurchaseLimitInterval1 = {
|
|
|
15440
15548
|
Week: "week",
|
|
15441
15549
|
Month: "month"
|
|
15442
15550
|
};
|
|
15551
|
+
var ListCustomersAutoTopupSource = {
|
|
15552
|
+
Customer: "customer",
|
|
15553
|
+
Plan: "plan"
|
|
15554
|
+
};
|
|
15443
15555
|
var ListCustomersLimitType = {
|
|
15444
15556
|
Absolute: "absolute",
|
|
15445
15557
|
UsagePercentage: "usage_percentage"
|
|
15446
15558
|
};
|
|
15559
|
+
var ListCustomersSpendLimitSource = {
|
|
15560
|
+
Customer: "customer",
|
|
15561
|
+
Plan: "plan"
|
|
15562
|
+
};
|
|
15447
15563
|
var ListCustomersUsageLimitInterval = {
|
|
15448
15564
|
Day: "day",
|
|
15449
15565
|
Week: "week",
|
|
15450
15566
|
Month: "month",
|
|
15451
15567
|
Year: "year"
|
|
15452
15568
|
};
|
|
15569
|
+
var ListCustomersUsageLimitSource = {
|
|
15570
|
+
Customer: "customer",
|
|
15571
|
+
Plan: "plan"
|
|
15572
|
+
};
|
|
15453
15573
|
var ListCustomersThresholdType = {
|
|
15454
15574
|
Usage: "usage",
|
|
15455
15575
|
UsagePercentage: "usage_percentage",
|
|
15456
15576
|
Remaining: "remaining",
|
|
15457
15577
|
RemainingPercentage: "remaining_percentage"
|
|
15458
15578
|
};
|
|
15579
|
+
var ListCustomersUsageAlertSource = {
|
|
15580
|
+
Customer: "customer",
|
|
15581
|
+
Plan: "plan"
|
|
15582
|
+
};
|
|
15583
|
+
var ListCustomersOverageAllowedSource = {
|
|
15584
|
+
Customer: "customer",
|
|
15585
|
+
Plan: "plan"
|
|
15586
|
+
};
|
|
15459
15587
|
var ListCustomersStatus = {
|
|
15460
15588
|
Active: "active",
|
|
15461
15589
|
Scheduled: "scheduled"
|
|
@@ -15502,36 +15630,37 @@ var ListCustomersEnv$inboundSchema = inboundSchema(ListCustomersEnv);
|
|
|
15502
15630
|
var ListCustomersPurchaseLimitInterval2$inboundSchema = inboundSchema(ListCustomersPurchaseLimitInterval2);
|
|
15503
15631
|
var ListCustomersPurchaseLimit2$inboundSchema = z55.pipe(
|
|
15504
15632
|
z55.object({
|
|
15505
|
-
interval:
|
|
15506
|
-
interval_count:
|
|
15507
|
-
limit:
|
|
15508
|
-
count: number2(),
|
|
15509
|
-
next_reset_at: number2()
|
|
15633
|
+
interval: ListCustomersPurchaseLimitInterval2$inboundSchema,
|
|
15634
|
+
interval_count: z55._default(number2(), 1),
|
|
15635
|
+
limit: number2()
|
|
15510
15636
|
}),
|
|
15511
15637
|
z55.transform((v) => {
|
|
15512
15638
|
return remap(v, {
|
|
15513
|
-
"interval_count": "intervalCount"
|
|
15514
|
-
"next_reset_at": "nextResetAt"
|
|
15639
|
+
"interval_count": "intervalCount"
|
|
15515
15640
|
});
|
|
15516
15641
|
})
|
|
15517
15642
|
);
|
|
15518
15643
|
var ListCustomersPurchaseLimitInterval1$inboundSchema = inboundSchema(ListCustomersPurchaseLimitInterval1);
|
|
15519
15644
|
var ListCustomersPurchaseLimit1$inboundSchema = z55.pipe(
|
|
15520
15645
|
z55.object({
|
|
15521
|
-
interval: ListCustomersPurchaseLimitInterval1$inboundSchema,
|
|
15522
|
-
interval_count:
|
|
15523
|
-
limit: number2()
|
|
15646
|
+
interval: nullable(ListCustomersPurchaseLimitInterval1$inboundSchema),
|
|
15647
|
+
interval_count: nullable(number2()),
|
|
15648
|
+
limit: nullable(number2()),
|
|
15649
|
+
count: number2(),
|
|
15650
|
+
next_reset_at: number2()
|
|
15524
15651
|
}),
|
|
15525
15652
|
z55.transform((v) => {
|
|
15526
15653
|
return remap(v, {
|
|
15527
|
-
"interval_count": "intervalCount"
|
|
15654
|
+
"interval_count": "intervalCount",
|
|
15655
|
+
"next_reset_at": "nextResetAt"
|
|
15528
15656
|
});
|
|
15529
15657
|
})
|
|
15530
15658
|
);
|
|
15531
15659
|
var ListCustomersPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
15532
|
-
z55.lazy(() =>
|
|
15533
|
-
z55.lazy(() =>
|
|
15660
|
+
z55.lazy(() => ListCustomersPurchaseLimit1$inboundSchema),
|
|
15661
|
+
z55.lazy(() => ListCustomersPurchaseLimit2$inboundSchema)
|
|
15534
15662
|
]);
|
|
15663
|
+
var ListCustomersAutoTopupSource$inboundSchema = inboundSchema(ListCustomersAutoTopupSource);
|
|
15535
15664
|
var ListCustomersAutoTopup$inboundSchema = z55.pipe(
|
|
15536
15665
|
z55.object({
|
|
15537
15666
|
feature_id: string4(),
|
|
@@ -15539,10 +15668,11 @@ var ListCustomersAutoTopup$inboundSchema = z55.pipe(
|
|
|
15539
15668
|
threshold: number2(),
|
|
15540
15669
|
quantity: number2(),
|
|
15541
15670
|
purchase_limit: optional3(smartUnion([
|
|
15542
|
-
z55.lazy(() =>
|
|
15543
|
-
z55.lazy(() =>
|
|
15671
|
+
z55.lazy(() => ListCustomersPurchaseLimit1$inboundSchema),
|
|
15672
|
+
z55.lazy(() => ListCustomersPurchaseLimit2$inboundSchema)
|
|
15544
15673
|
])),
|
|
15545
|
-
invoice_mode: optional3(boolean2())
|
|
15674
|
+
invoice_mode: optional3(boolean2()),
|
|
15675
|
+
source: optional3(ListCustomersAutoTopupSource$inboundSchema)
|
|
15546
15676
|
}),
|
|
15547
15677
|
z55.transform((v) => {
|
|
15548
15678
|
return remap(v, {
|
|
@@ -15553,13 +15683,15 @@ var ListCustomersAutoTopup$inboundSchema = z55.pipe(
|
|
|
15553
15683
|
})
|
|
15554
15684
|
);
|
|
15555
15685
|
var ListCustomersLimitType$inboundSchema = inboundSchema(ListCustomersLimitType);
|
|
15686
|
+
var ListCustomersSpendLimitSource$inboundSchema = inboundSchema(ListCustomersSpendLimitSource);
|
|
15556
15687
|
var ListCustomersSpendLimit$inboundSchema = z55.pipe(
|
|
15557
15688
|
z55.object({
|
|
15558
15689
|
feature_id: optional3(string4()),
|
|
15559
15690
|
enabled: z55._default(boolean2(), false),
|
|
15560
15691
|
limit_type: optional3(ListCustomersLimitType$inboundSchema),
|
|
15561
15692
|
overage_limit: optional3(number2()),
|
|
15562
|
-
skip_overage_billing: optional3(boolean2())
|
|
15693
|
+
skip_overage_billing: optional3(boolean2()),
|
|
15694
|
+
source: optional3(ListCustomersSpendLimitSource$inboundSchema)
|
|
15563
15695
|
}),
|
|
15564
15696
|
z55.transform((v) => {
|
|
15565
15697
|
return remap(v, {
|
|
@@ -15574,6 +15706,7 @@ var ListCustomersUsageLimitInterval$inboundSchema = inboundSchema(ListCustomersU
|
|
|
15574
15706
|
var ListCustomersFilter$inboundSchema = z55.object({
|
|
15575
15707
|
properties: z55.record(z55.string(), z55.any())
|
|
15576
15708
|
});
|
|
15709
|
+
var ListCustomersUsageLimitSource$inboundSchema = inboundSchema(ListCustomersUsageLimitSource);
|
|
15577
15710
|
var ListCustomersUsageLimit$inboundSchema = z55.pipe(
|
|
15578
15711
|
z55.object({
|
|
15579
15712
|
feature_id: string4(),
|
|
@@ -15581,7 +15714,8 @@ var ListCustomersUsageLimit$inboundSchema = z55.pipe(
|
|
|
15581
15714
|
limit: number2(),
|
|
15582
15715
|
interval: ListCustomersUsageLimitInterval$inboundSchema,
|
|
15583
15716
|
filter: optional3(z55.lazy(() => ListCustomersFilter$inboundSchema)),
|
|
15584
|
-
usage: optional3(number2())
|
|
15717
|
+
usage: optional3(number2()),
|
|
15718
|
+
source: optional3(ListCustomersUsageLimitSource$inboundSchema)
|
|
15585
15719
|
}),
|
|
15586
15720
|
z55.transform((v) => {
|
|
15587
15721
|
return remap(v, {
|
|
@@ -15590,13 +15724,15 @@ var ListCustomersUsageLimit$inboundSchema = z55.pipe(
|
|
|
15590
15724
|
})
|
|
15591
15725
|
);
|
|
15592
15726
|
var ListCustomersThresholdType$inboundSchema = inboundSchema(ListCustomersThresholdType);
|
|
15727
|
+
var ListCustomersUsageAlertSource$inboundSchema = inboundSchema(ListCustomersUsageAlertSource);
|
|
15593
15728
|
var ListCustomersUsageAlert$inboundSchema = z55.pipe(
|
|
15594
15729
|
z55.object({
|
|
15595
15730
|
feature_id: optional3(string4()),
|
|
15596
15731
|
enabled: z55._default(boolean2(), true),
|
|
15597
15732
|
threshold: number2(),
|
|
15598
15733
|
threshold_type: ListCustomersThresholdType$inboundSchema,
|
|
15599
|
-
name: optional3(string4())
|
|
15734
|
+
name: optional3(string4()),
|
|
15735
|
+
source: optional3(ListCustomersUsageAlertSource$inboundSchema)
|
|
15600
15736
|
}),
|
|
15601
15737
|
z55.transform((v) => {
|
|
15602
15738
|
return remap(v, {
|
|
@@ -15605,10 +15741,12 @@ var ListCustomersUsageAlert$inboundSchema = z55.pipe(
|
|
|
15605
15741
|
});
|
|
15606
15742
|
})
|
|
15607
15743
|
);
|
|
15744
|
+
var ListCustomersOverageAllowedSource$inboundSchema = inboundSchema(ListCustomersOverageAllowedSource);
|
|
15608
15745
|
var ListCustomersOverageAllowed$inboundSchema = z55.pipe(
|
|
15609
15746
|
z55.object({
|
|
15610
15747
|
feature_id: string4(),
|
|
15611
|
-
enabled: z55._default(boolean2(), false)
|
|
15748
|
+
enabled: z55._default(boolean2(), false),
|
|
15749
|
+
source: optional3(ListCustomersOverageAllowedSource$inboundSchema)
|
|
15612
15750
|
}),
|
|
15613
15751
|
z55.transform((v) => {
|
|
15614
15752
|
return remap(v, {
|
|
@@ -15898,18 +16036,34 @@ var ListEntitiesLimitType = {
|
|
|
15898
16036
|
Absolute: "absolute",
|
|
15899
16037
|
UsagePercentage: "usage_percentage"
|
|
15900
16038
|
};
|
|
16039
|
+
var ListEntitiesSpendLimitSource = {
|
|
16040
|
+
Customer: "customer",
|
|
16041
|
+
Plan: "plan"
|
|
16042
|
+
};
|
|
15901
16043
|
var ListEntitiesInterval = {
|
|
15902
16044
|
Day: "day",
|
|
15903
16045
|
Week: "week",
|
|
15904
16046
|
Month: "month",
|
|
15905
16047
|
Year: "year"
|
|
15906
16048
|
};
|
|
16049
|
+
var ListEntitiesUsageLimitSource = {
|
|
16050
|
+
Customer: "customer",
|
|
16051
|
+
Plan: "plan"
|
|
16052
|
+
};
|
|
15907
16053
|
var ListEntitiesThresholdType = {
|
|
15908
16054
|
Usage: "usage",
|
|
15909
16055
|
UsagePercentage: "usage_percentage",
|
|
15910
16056
|
Remaining: "remaining",
|
|
15911
16057
|
RemainingPercentage: "remaining_percentage"
|
|
15912
16058
|
};
|
|
16059
|
+
var ListEntitiesUsageAlertSource = {
|
|
16060
|
+
Customer: "customer",
|
|
16061
|
+
Plan: "plan"
|
|
16062
|
+
};
|
|
16063
|
+
var ListEntitiesOverageAllowedSource = {
|
|
16064
|
+
Customer: "customer",
|
|
16065
|
+
Plan: "plan"
|
|
16066
|
+
};
|
|
15913
16067
|
var ListEntitiesProcessorType = {
|
|
15914
16068
|
Stripe: "stripe",
|
|
15915
16069
|
Revenuecat: "revenuecat"
|
|
@@ -16078,13 +16232,15 @@ var ListEntitiesFlags$inboundSchema = z56.pipe(
|
|
|
16078
16232
|
})
|
|
16079
16233
|
);
|
|
16080
16234
|
var ListEntitiesLimitType$inboundSchema = inboundSchema(ListEntitiesLimitType);
|
|
16235
|
+
var ListEntitiesSpendLimitSource$inboundSchema = inboundSchema(ListEntitiesSpendLimitSource);
|
|
16081
16236
|
var ListEntitiesSpendLimit$inboundSchema = z56.pipe(
|
|
16082
16237
|
z56.object({
|
|
16083
16238
|
feature_id: optional3(string4()),
|
|
16084
16239
|
enabled: z56._default(boolean2(), false),
|
|
16085
16240
|
limit_type: optional3(ListEntitiesLimitType$inboundSchema),
|
|
16086
16241
|
overage_limit: optional3(number2()),
|
|
16087
|
-
skip_overage_billing: optional3(boolean2())
|
|
16242
|
+
skip_overage_billing: optional3(boolean2()),
|
|
16243
|
+
source: optional3(ListEntitiesSpendLimitSource$inboundSchema)
|
|
16088
16244
|
}),
|
|
16089
16245
|
z56.transform((v) => {
|
|
16090
16246
|
return remap(v, {
|
|
@@ -16099,6 +16255,7 @@ var ListEntitiesInterval$inboundSchema = inboundSchema(ListEntitiesInterval);
|
|
|
16099
16255
|
var ListEntitiesFilter$inboundSchema = z56.object({
|
|
16100
16256
|
properties: z56.record(z56.string(), z56.any())
|
|
16101
16257
|
});
|
|
16258
|
+
var ListEntitiesUsageLimitSource$inboundSchema = inboundSchema(ListEntitiesUsageLimitSource);
|
|
16102
16259
|
var ListEntitiesUsageLimit$inboundSchema = z56.pipe(
|
|
16103
16260
|
z56.object({
|
|
16104
16261
|
feature_id: string4(),
|
|
@@ -16106,7 +16263,8 @@ var ListEntitiesUsageLimit$inboundSchema = z56.pipe(
|
|
|
16106
16263
|
limit: number2(),
|
|
16107
16264
|
interval: ListEntitiesInterval$inboundSchema,
|
|
16108
16265
|
filter: optional3(z56.lazy(() => ListEntitiesFilter$inboundSchema)),
|
|
16109
|
-
usage: optional3(number2())
|
|
16266
|
+
usage: optional3(number2()),
|
|
16267
|
+
source: optional3(ListEntitiesUsageLimitSource$inboundSchema)
|
|
16110
16268
|
}),
|
|
16111
16269
|
z56.transform((v) => {
|
|
16112
16270
|
return remap(v, {
|
|
@@ -16115,13 +16273,15 @@ var ListEntitiesUsageLimit$inboundSchema = z56.pipe(
|
|
|
16115
16273
|
})
|
|
16116
16274
|
);
|
|
16117
16275
|
var ListEntitiesThresholdType$inboundSchema = inboundSchema(ListEntitiesThresholdType);
|
|
16276
|
+
var ListEntitiesUsageAlertSource$inboundSchema = inboundSchema(ListEntitiesUsageAlertSource);
|
|
16118
16277
|
var ListEntitiesUsageAlert$inboundSchema = z56.pipe(
|
|
16119
16278
|
z56.object({
|
|
16120
16279
|
feature_id: optional3(string4()),
|
|
16121
16280
|
enabled: z56._default(boolean2(), true),
|
|
16122
16281
|
threshold: number2(),
|
|
16123
16282
|
threshold_type: ListEntitiesThresholdType$inboundSchema,
|
|
16124
|
-
name: optional3(string4())
|
|
16283
|
+
name: optional3(string4()),
|
|
16284
|
+
source: optional3(ListEntitiesUsageAlertSource$inboundSchema)
|
|
16125
16285
|
}),
|
|
16126
16286
|
z56.transform((v) => {
|
|
16127
16287
|
return remap(v, {
|
|
@@ -16130,10 +16290,12 @@ var ListEntitiesUsageAlert$inboundSchema = z56.pipe(
|
|
|
16130
16290
|
});
|
|
16131
16291
|
})
|
|
16132
16292
|
);
|
|
16293
|
+
var ListEntitiesOverageAllowedSource$inboundSchema = inboundSchema(ListEntitiesOverageAllowedSource);
|
|
16133
16294
|
var ListEntitiesOverageAllowed$inboundSchema = z56.pipe(
|
|
16134
16295
|
z56.object({
|
|
16135
16296
|
feature_id: string4(),
|
|
16136
|
-
enabled: z56._default(boolean2(), false)
|
|
16297
|
+
enabled: z56._default(boolean2(), false),
|
|
16298
|
+
source: optional3(ListEntitiesOverageAllowedSource$inboundSchema)
|
|
16137
16299
|
}),
|
|
16138
16300
|
z56.transform((v) => {
|
|
16139
16301
|
return remap(v, {
|
|
@@ -22228,7 +22390,8 @@ var UpdateBalanceParams$outboundSchema = z77.pipe(
|
|
|
22228
22390
|
interval: z77.optional(UpdateBalanceInterval$outboundSchema),
|
|
22229
22391
|
includedGrant: z77.optional(z77.number()),
|
|
22230
22392
|
balanceId: z77.optional(z77.string()),
|
|
22231
|
-
nextResetAt: z77.optional(z77.number())
|
|
22393
|
+
nextResetAt: z77.optional(z77.number()),
|
|
22394
|
+
expiresAt: z77.optional(z77.number())
|
|
22232
22395
|
}),
|
|
22233
22396
|
z77.transform((v) => {
|
|
22234
22397
|
return remap(v, {
|
|
@@ -22238,7 +22401,8 @@ var UpdateBalanceParams$outboundSchema = z77.pipe(
|
|
|
22238
22401
|
addToBalance: "add_to_balance",
|
|
22239
22402
|
includedGrant: "included_grant",
|
|
22240
22403
|
balanceId: "balance_id",
|
|
22241
|
-
nextResetAt: "next_reset_at"
|
|
22404
|
+
nextResetAt: "next_reset_at",
|
|
22405
|
+
expiresAt: "expires_at"
|
|
22242
22406
|
});
|
|
22243
22407
|
})
|
|
22244
22408
|
);
|
|
@@ -22286,22 +22450,42 @@ var UpdateCustomerPurchaseLimitIntervalResponse1 = {
|
|
|
22286
22450
|
Week: "week",
|
|
22287
22451
|
Month: "month"
|
|
22288
22452
|
};
|
|
22453
|
+
var UpdateCustomerAutoTopupSource = {
|
|
22454
|
+
Customer: "customer",
|
|
22455
|
+
Plan: "plan"
|
|
22456
|
+
};
|
|
22289
22457
|
var UpdateCustomerLimitTypeResponse = {
|
|
22290
22458
|
Absolute: "absolute",
|
|
22291
22459
|
UsagePercentage: "usage_percentage"
|
|
22292
22460
|
};
|
|
22461
|
+
var UpdateCustomerSpendLimitSource = {
|
|
22462
|
+
Customer: "customer",
|
|
22463
|
+
Plan: "plan"
|
|
22464
|
+
};
|
|
22293
22465
|
var UpdateCustomerUsageLimitIntervalResponse = {
|
|
22294
22466
|
Day: "day",
|
|
22295
22467
|
Week: "week",
|
|
22296
22468
|
Month: "month",
|
|
22297
22469
|
Year: "year"
|
|
22298
22470
|
};
|
|
22471
|
+
var UpdateCustomerUsageLimitSource = {
|
|
22472
|
+
Customer: "customer",
|
|
22473
|
+
Plan: "plan"
|
|
22474
|
+
};
|
|
22299
22475
|
var UpdateCustomerThresholdTypeResponse = {
|
|
22300
22476
|
Usage: "usage",
|
|
22301
22477
|
UsagePercentage: "usage_percentage",
|
|
22302
22478
|
Remaining: "remaining",
|
|
22303
22479
|
RemainingPercentage: "remaining_percentage"
|
|
22304
22480
|
};
|
|
22481
|
+
var UpdateCustomerUsageAlertSource = {
|
|
22482
|
+
Customer: "customer",
|
|
22483
|
+
Plan: "plan"
|
|
22484
|
+
};
|
|
22485
|
+
var UpdateCustomerOverageAllowedSource = {
|
|
22486
|
+
Customer: "customer",
|
|
22487
|
+
Plan: "plan"
|
|
22488
|
+
};
|
|
22305
22489
|
var UpdateCustomerStatus = {
|
|
22306
22490
|
Active: "active",
|
|
22307
22491
|
Scheduled: "scheduled"
|
|
@@ -22498,38 +22682,39 @@ var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
|
|
|
22498
22682
|
var UpdateCustomerPurchaseLimitIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerPurchaseLimitIntervalResponse2);
|
|
22499
22683
|
var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z78.pipe(
|
|
22500
22684
|
z78.object({
|
|
22501
|
-
interval:
|
|
22502
|
-
|
|
22503
|
-
)
|
|
22504
|
-
interval_count: nullable(number2()),
|
|
22505
|
-
limit: nullable(number2()),
|
|
22506
|
-
count: number2(),
|
|
22507
|
-
next_reset_at: number2()
|
|
22685
|
+
interval: UpdateCustomerPurchaseLimitIntervalResponse2$inboundSchema,
|
|
22686
|
+
interval_count: z78._default(number2(), 1),
|
|
22687
|
+
limit: number2()
|
|
22508
22688
|
}),
|
|
22509
22689
|
z78.transform((v) => {
|
|
22510
22690
|
return remap(v, {
|
|
22511
|
-
"interval_count": "intervalCount"
|
|
22512
|
-
"next_reset_at": "nextResetAt"
|
|
22691
|
+
"interval_count": "intervalCount"
|
|
22513
22692
|
});
|
|
22514
22693
|
})
|
|
22515
22694
|
);
|
|
22516
22695
|
var UpdateCustomerPurchaseLimitIntervalResponse1$inboundSchema = inboundSchema(UpdateCustomerPurchaseLimitIntervalResponse1);
|
|
22517
22696
|
var UpdateCustomerPurchaseLimitResponse1$inboundSchema = z78.pipe(
|
|
22518
22697
|
z78.object({
|
|
22519
|
-
interval:
|
|
22520
|
-
|
|
22521
|
-
|
|
22698
|
+
interval: nullable(
|
|
22699
|
+
UpdateCustomerPurchaseLimitIntervalResponse1$inboundSchema
|
|
22700
|
+
),
|
|
22701
|
+
interval_count: nullable(number2()),
|
|
22702
|
+
limit: nullable(number2()),
|
|
22703
|
+
count: number2(),
|
|
22704
|
+
next_reset_at: number2()
|
|
22522
22705
|
}),
|
|
22523
22706
|
z78.transform((v) => {
|
|
22524
22707
|
return remap(v, {
|
|
22525
|
-
"interval_count": "intervalCount"
|
|
22708
|
+
"interval_count": "intervalCount",
|
|
22709
|
+
"next_reset_at": "nextResetAt"
|
|
22526
22710
|
});
|
|
22527
22711
|
})
|
|
22528
22712
|
);
|
|
22529
22713
|
var UpdateCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
22530
|
-
z78.lazy(() =>
|
|
22531
|
-
z78.lazy(() =>
|
|
22714
|
+
z78.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema),
|
|
22715
|
+
z78.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema)
|
|
22532
22716
|
]);
|
|
22717
|
+
var UpdateCustomerAutoTopupSource$inboundSchema = inboundSchema(UpdateCustomerAutoTopupSource);
|
|
22533
22718
|
var UpdateCustomerAutoTopupResponse$inboundSchema = z78.pipe(
|
|
22534
22719
|
z78.object({
|
|
22535
22720
|
feature_id: string4(),
|
|
@@ -22537,10 +22722,11 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z78.pipe(
|
|
|
22537
22722
|
threshold: number2(),
|
|
22538
22723
|
quantity: number2(),
|
|
22539
22724
|
purchase_limit: optional3(smartUnion([
|
|
22540
|
-
z78.lazy(() =>
|
|
22541
|
-
z78.lazy(() =>
|
|
22725
|
+
z78.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema),
|
|
22726
|
+
z78.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema)
|
|
22542
22727
|
])),
|
|
22543
|
-
invoice_mode: optional3(boolean2())
|
|
22728
|
+
invoice_mode: optional3(boolean2()),
|
|
22729
|
+
source: optional3(UpdateCustomerAutoTopupSource$inboundSchema)
|
|
22544
22730
|
}),
|
|
22545
22731
|
z78.transform((v) => {
|
|
22546
22732
|
return remap(v, {
|
|
@@ -22551,13 +22737,15 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z78.pipe(
|
|
|
22551
22737
|
})
|
|
22552
22738
|
);
|
|
22553
22739
|
var UpdateCustomerLimitTypeResponse$inboundSchema = inboundSchema(UpdateCustomerLimitTypeResponse);
|
|
22740
|
+
var UpdateCustomerSpendLimitSource$inboundSchema = inboundSchema(UpdateCustomerSpendLimitSource);
|
|
22554
22741
|
var UpdateCustomerSpendLimitResponse$inboundSchema = z78.pipe(
|
|
22555
22742
|
z78.object({
|
|
22556
22743
|
feature_id: optional3(string4()),
|
|
22557
22744
|
enabled: z78._default(boolean2(), false),
|
|
22558
22745
|
limit_type: optional3(UpdateCustomerLimitTypeResponse$inboundSchema),
|
|
22559
22746
|
overage_limit: optional3(number2()),
|
|
22560
|
-
skip_overage_billing: optional3(boolean2())
|
|
22747
|
+
skip_overage_billing: optional3(boolean2()),
|
|
22748
|
+
source: optional3(UpdateCustomerSpendLimitSource$inboundSchema)
|
|
22561
22749
|
}),
|
|
22562
22750
|
z78.transform((v) => {
|
|
22563
22751
|
return remap(v, {
|
|
@@ -22572,6 +22760,7 @@ var UpdateCustomerUsageLimitIntervalResponse$inboundSchema = inboundSchema(Updat
|
|
|
22572
22760
|
var UpdateCustomerFilterResponse$inboundSchema = z78.object({
|
|
22573
22761
|
properties: z78.record(z78.string(), z78.any())
|
|
22574
22762
|
});
|
|
22763
|
+
var UpdateCustomerUsageLimitSource$inboundSchema = inboundSchema(UpdateCustomerUsageLimitSource);
|
|
22575
22764
|
var UpdateCustomerUsageLimitResponse$inboundSchema = z78.pipe(
|
|
22576
22765
|
z78.object({
|
|
22577
22766
|
feature_id: string4(),
|
|
@@ -22581,7 +22770,8 @@ var UpdateCustomerUsageLimitResponse$inboundSchema = z78.pipe(
|
|
|
22581
22770
|
filter: optional3(
|
|
22582
22771
|
z78.lazy(() => UpdateCustomerFilterResponse$inboundSchema)
|
|
22583
22772
|
),
|
|
22584
|
-
usage: optional3(number2())
|
|
22773
|
+
usage: optional3(number2()),
|
|
22774
|
+
source: optional3(UpdateCustomerUsageLimitSource$inboundSchema)
|
|
22585
22775
|
}),
|
|
22586
22776
|
z78.transform((v) => {
|
|
22587
22777
|
return remap(v, {
|
|
@@ -22590,13 +22780,15 @@ var UpdateCustomerUsageLimitResponse$inboundSchema = z78.pipe(
|
|
|
22590
22780
|
})
|
|
22591
22781
|
);
|
|
22592
22782
|
var UpdateCustomerThresholdTypeResponse$inboundSchema = inboundSchema(UpdateCustomerThresholdTypeResponse);
|
|
22783
|
+
var UpdateCustomerUsageAlertSource$inboundSchema = inboundSchema(UpdateCustomerUsageAlertSource);
|
|
22593
22784
|
var UpdateCustomerUsageAlertResponse$inboundSchema = z78.pipe(
|
|
22594
22785
|
z78.object({
|
|
22595
22786
|
feature_id: optional3(string4()),
|
|
22596
22787
|
enabled: z78._default(boolean2(), true),
|
|
22597
22788
|
threshold: number2(),
|
|
22598
22789
|
threshold_type: UpdateCustomerThresholdTypeResponse$inboundSchema,
|
|
22599
|
-
name: optional3(string4())
|
|
22790
|
+
name: optional3(string4()),
|
|
22791
|
+
source: optional3(UpdateCustomerUsageAlertSource$inboundSchema)
|
|
22600
22792
|
}),
|
|
22601
22793
|
z78.transform((v) => {
|
|
22602
22794
|
return remap(v, {
|
|
@@ -22605,10 +22797,12 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z78.pipe(
|
|
|
22605
22797
|
});
|
|
22606
22798
|
})
|
|
22607
22799
|
);
|
|
22800
|
+
var UpdateCustomerOverageAllowedSource$inboundSchema = inboundSchema(UpdateCustomerOverageAllowedSource);
|
|
22608
22801
|
var UpdateCustomerOverageAllowedResponse$inboundSchema = z78.pipe(
|
|
22609
22802
|
z78.object({
|
|
22610
22803
|
feature_id: string4(),
|
|
22611
|
-
enabled: z78._default(boolean2(), false)
|
|
22804
|
+
enabled: z78._default(boolean2(), false),
|
|
22805
|
+
source: optional3(UpdateCustomerOverageAllowedSource$inboundSchema)
|
|
22612
22806
|
}),
|
|
22613
22807
|
z78.transform((v) => {
|
|
22614
22808
|
return remap(v, {
|
|
@@ -22901,18 +23095,34 @@ var UpdateEntityLimitTypeResponse = {
|
|
|
22901
23095
|
Absolute: "absolute",
|
|
22902
23096
|
UsagePercentage: "usage_percentage"
|
|
22903
23097
|
};
|
|
23098
|
+
var UpdateEntitySpendLimitSource = {
|
|
23099
|
+
Customer: "customer",
|
|
23100
|
+
Plan: "plan"
|
|
23101
|
+
};
|
|
22904
23102
|
var UpdateEntityIntervalResponse = {
|
|
22905
23103
|
Day: "day",
|
|
22906
23104
|
Week: "week",
|
|
22907
23105
|
Month: "month",
|
|
22908
23106
|
Year: "year"
|
|
22909
23107
|
};
|
|
23108
|
+
var UpdateEntityUsageLimitSource = {
|
|
23109
|
+
Customer: "customer",
|
|
23110
|
+
Plan: "plan"
|
|
23111
|
+
};
|
|
22910
23112
|
var UpdateEntityThresholdTypeResponse = {
|
|
22911
23113
|
Usage: "usage",
|
|
22912
23114
|
UsagePercentage: "usage_percentage",
|
|
22913
23115
|
Remaining: "remaining",
|
|
22914
23116
|
RemainingPercentage: "remaining_percentage"
|
|
22915
23117
|
};
|
|
23118
|
+
var UpdateEntityUsageAlertSource = {
|
|
23119
|
+
Customer: "customer",
|
|
23120
|
+
Plan: "plan"
|
|
23121
|
+
};
|
|
23122
|
+
var UpdateEntityOverageAllowedSource = {
|
|
23123
|
+
Customer: "customer",
|
|
23124
|
+
Plan: "plan"
|
|
23125
|
+
};
|
|
22916
23126
|
var UpdateEntityProcessorType = {
|
|
22917
23127
|
Stripe: "stripe",
|
|
22918
23128
|
Revenuecat: "revenuecat"
|
|
@@ -23162,13 +23372,15 @@ var UpdateEntityFlags$inboundSchema = z79.pipe(
|
|
|
23162
23372
|
})
|
|
23163
23373
|
);
|
|
23164
23374
|
var UpdateEntityLimitTypeResponse$inboundSchema = inboundSchema(UpdateEntityLimitTypeResponse);
|
|
23375
|
+
var UpdateEntitySpendLimitSource$inboundSchema = inboundSchema(UpdateEntitySpendLimitSource);
|
|
23165
23376
|
var UpdateEntitySpendLimitResponse$inboundSchema = z79.pipe(
|
|
23166
23377
|
z79.object({
|
|
23167
23378
|
feature_id: optional3(string4()),
|
|
23168
23379
|
enabled: z79._default(boolean2(), false),
|
|
23169
23380
|
limit_type: optional3(UpdateEntityLimitTypeResponse$inboundSchema),
|
|
23170
23381
|
overage_limit: optional3(number2()),
|
|
23171
|
-
skip_overage_billing: optional3(boolean2())
|
|
23382
|
+
skip_overage_billing: optional3(boolean2()),
|
|
23383
|
+
source: optional3(UpdateEntitySpendLimitSource$inboundSchema)
|
|
23172
23384
|
}),
|
|
23173
23385
|
z79.transform((v) => {
|
|
23174
23386
|
return remap(v, {
|
|
@@ -23183,6 +23395,7 @@ var UpdateEntityIntervalResponse$inboundSchema = inboundSchema(UpdateEntityInter
|
|
|
23183
23395
|
var UpdateEntityFilterResponse$inboundSchema = z79.object({
|
|
23184
23396
|
properties: z79.record(z79.string(), z79.any())
|
|
23185
23397
|
});
|
|
23398
|
+
var UpdateEntityUsageLimitSource$inboundSchema = inboundSchema(UpdateEntityUsageLimitSource);
|
|
23186
23399
|
var UpdateEntityUsageLimitResponse$inboundSchema = z79.pipe(
|
|
23187
23400
|
z79.object({
|
|
23188
23401
|
feature_id: string4(),
|
|
@@ -23192,7 +23405,8 @@ var UpdateEntityUsageLimitResponse$inboundSchema = z79.pipe(
|
|
|
23192
23405
|
filter: optional3(
|
|
23193
23406
|
z79.lazy(() => UpdateEntityFilterResponse$inboundSchema)
|
|
23194
23407
|
),
|
|
23195
|
-
usage: optional3(number2())
|
|
23408
|
+
usage: optional3(number2()),
|
|
23409
|
+
source: optional3(UpdateEntityUsageLimitSource$inboundSchema)
|
|
23196
23410
|
}),
|
|
23197
23411
|
z79.transform((v) => {
|
|
23198
23412
|
return remap(v, {
|
|
@@ -23201,13 +23415,15 @@ var UpdateEntityUsageLimitResponse$inboundSchema = z79.pipe(
|
|
|
23201
23415
|
})
|
|
23202
23416
|
);
|
|
23203
23417
|
var UpdateEntityThresholdTypeResponse$inboundSchema = inboundSchema(UpdateEntityThresholdTypeResponse);
|
|
23418
|
+
var UpdateEntityUsageAlertSource$inboundSchema = inboundSchema(UpdateEntityUsageAlertSource);
|
|
23204
23419
|
var UpdateEntityUsageAlertResponse$inboundSchema = z79.pipe(
|
|
23205
23420
|
z79.object({
|
|
23206
23421
|
feature_id: optional3(string4()),
|
|
23207
23422
|
enabled: z79._default(boolean2(), true),
|
|
23208
23423
|
threshold: number2(),
|
|
23209
23424
|
threshold_type: UpdateEntityThresholdTypeResponse$inboundSchema,
|
|
23210
|
-
name: optional3(string4())
|
|
23425
|
+
name: optional3(string4()),
|
|
23426
|
+
source: optional3(UpdateEntityUsageAlertSource$inboundSchema)
|
|
23211
23427
|
}),
|
|
23212
23428
|
z79.transform((v) => {
|
|
23213
23429
|
return remap(v, {
|
|
@@ -23216,10 +23432,12 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z79.pipe(
|
|
|
23216
23432
|
});
|
|
23217
23433
|
})
|
|
23218
23434
|
);
|
|
23435
|
+
var UpdateEntityOverageAllowedSource$inboundSchema = inboundSchema(UpdateEntityOverageAllowedSource);
|
|
23219
23436
|
var UpdateEntityOverageAllowedResponse$inboundSchema = z79.pipe(
|
|
23220
23437
|
z79.object({
|
|
23221
23438
|
feature_id: string4(),
|
|
23222
|
-
enabled: z79._default(boolean2(), false)
|
|
23439
|
+
enabled: z79._default(boolean2(), false),
|
|
23440
|
+
source: optional3(UpdateEntityOverageAllowedSource$inboundSchema)
|
|
23223
23441
|
}),
|
|
23224
23442
|
z79.transform((v) => {
|
|
23225
23443
|
return remap(v, {
|
|
@@ -27564,7 +27782,7 @@ var Billing = class extends ClientSDK {
|
|
|
27564
27782
|
* @example
|
|
27565
27783
|
* ```typescript
|
|
27566
27784
|
* // Schedule a transition from a trial plan to a paid plan
|
|
27567
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
27785
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783701939170,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784911539170,"plans":[{"planId":"pro_plan"}]}] });
|
|
27568
27786
|
* ```
|
|
27569
27787
|
*
|
|
27570
27788
|
* @param customerId - The ID of the customer to create the schedule for.
|