autumn-js 1.3.48 → 1.3.49
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 +214 -17
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +214 -17
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +214 -17
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +214 -17
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +214 -17
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-JJEEJKM7.mjs → chunk-5CDM4XIN.mjs} +4 -4
- package/dist/backend/{chunk-5D6J5UMK.mjs → chunk-5DMQUWII.mjs} +1 -1
- package/dist/backend/{chunk-3T6FAZDO.mjs → chunk-BZ54HK66.mjs} +1 -1
- package/dist/backend/{chunk-RVOZXEI3.mjs → chunk-HLYVCB6M.mjs} +1 -1
- package/dist/backend/{chunk-KSYN5FLV.mjs → chunk-JPQERXWV.mjs} +214 -17
- package/dist/backend/{chunk-GBISDPPO.mjs → chunk-SS7EKOGZ.mjs} +6 -6
- package/dist/backend/{chunk-WXLAGRC4.mjs → chunk-ZJSWDKBL.mjs} +1 -1
- 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 +214 -17
- 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 +214 -17
- 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 +214 -17
- 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 +214 -17
- 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 +214 -17
- package/dist/backend/index.mjs +9 -9
- package/dist/backend/{routeTypes-DAI_E67X.d.mts → routeTypes-Czot4Qi-.d.mts} +232 -2
- package/dist/backend/{routeTypes-4TatmvQY.d.ts → routeTypes-D4pVj85I.d.ts} +232 -2
- package/dist/better-auth/{chunk-R7IEJQOY.mjs → chunk-57PPCUDF.mjs} +214 -17
- package/dist/better-auth/index.js +214 -17
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +214 -17
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +214 -17
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/react/AutumnContext.d.mts +4 -4
- package/dist/react/AutumnContext.d.ts +4 -4
- package/dist/react/client/AutumnClient.d.mts +4 -4
- package/dist/react/client/AutumnClient.d.ts +4 -4
- package/dist/react/client/IAutumnClient.d.mts +4 -4
- package/dist/react/client/IAutumnClient.d.ts +4 -4
- package/dist/react/client/index.d.mts +4 -4
- package/dist/react/client/index.d.ts +4 -4
- package/dist/react/{customer-DfpvnPRk.d.mts → customer-CZn6Nd7a.d.mts} +47 -1
- package/dist/react/{customer-B0KAd7eZ.d.ts → customer-Dt0OdihJ.d.ts} +47 -1
- package/dist/react/hooks/index.d.mts +4 -4
- package/dist/react/hooks/index.d.ts +4 -4
- 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 +4 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
- 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 +3 -3
- package/dist/react/hooks/useListPlans.d.ts +3 -3
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.d.ts +4 -4
- package/dist/react/{list-plans-response-6iUDTnPQ.d.ts → list-plans-response-Bx4e7rvw.d.ts} +1 -1
- package/dist/react/{list-plans-response-BzsqJlxN.d.mts → list-plans-response-ibIt0k4N.d.mts} +1 -1
- package/dist/react/{params-CMcoADwO.d.ts → params-BGpmxI8B.d.mts} +1 -1
- package/dist/react/{params-vAoGWtk9.d.mts → params-C7_vr_BA.d.ts} +1 -1
- package/dist/react/{plan-Ct5TGTnS.d.mts → plan-CvxFKlF7.d.mts} +2 -2
- package/dist/react/{plan-Ct5TGTnS.d.ts → plan-CvxFKlF7.d.ts} +2 -2
- package/dist/sdk/index.d.mts +287 -5
- package/dist/sdk/index.d.ts +287 -5
- package/dist/sdk/index.js +317 -22
- package/dist/sdk/index.mjs +286 -21
- package/package.json +2 -2
- package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -4060,7 +4060,7 @@ var BalancePrice$inboundSchema = z15.pipe(
|
|
|
4060
4060
|
})
|
|
4061
4061
|
);
|
|
4062
4062
|
var BalanceSource$inboundSchema = inboundSchema(BalanceSource);
|
|
4063
|
-
var
|
|
4063
|
+
var BalanceAllocation$inboundSchema = z15.object({
|
|
4064
4064
|
amount: number2()
|
|
4065
4065
|
});
|
|
4066
4066
|
var Breakdown$inboundSchema = z15.pipe(
|
|
@@ -4077,7 +4077,7 @@ var Breakdown$inboundSchema = z15.pipe(
|
|
|
4077
4077
|
expires_at: nullable(number2()),
|
|
4078
4078
|
source: optional3(BalanceSource$inboundSchema),
|
|
4079
4079
|
allocation: z15.optional(
|
|
4080
|
-
z15.nullable(z15.lazy(() =>
|
|
4080
|
+
z15.nullable(z15.lazy(() => BalanceAllocation$inboundSchema))
|
|
4081
4081
|
)
|
|
4082
4082
|
}),
|
|
4083
4083
|
z15.transform((v) => {
|
|
@@ -21162,6 +21162,17 @@ var CustomerEnv = {
|
|
|
21162
21162
|
Sandbox: "sandbox",
|
|
21163
21163
|
Live: "live"
|
|
21164
21164
|
};
|
|
21165
|
+
var CustomerBalanceAllocationInterval = {
|
|
21166
|
+
OneOff: "one_off",
|
|
21167
|
+
Minute: "minute",
|
|
21168
|
+
Hour: "hour",
|
|
21169
|
+
Day: "day",
|
|
21170
|
+
Week: "week",
|
|
21171
|
+
Month: "month",
|
|
21172
|
+
Quarter: "quarter",
|
|
21173
|
+
SemiAnnual: "semi_annual",
|
|
21174
|
+
Year: "year"
|
|
21175
|
+
};
|
|
21165
21176
|
var CustomerAutoTopupInterval2 = {
|
|
21166
21177
|
Hour: "hour",
|
|
21167
21178
|
Day: "day",
|
|
@@ -21276,6 +21287,30 @@ var TaxExempt = {
|
|
|
21276
21287
|
Reverse: "reverse"
|
|
21277
21288
|
};
|
|
21278
21289
|
var CustomerEnv$inboundSchema = inboundSchema(CustomerEnv);
|
|
21290
|
+
var CustomerBalanceAllocationInterval$inboundSchema = inboundSchema(CustomerBalanceAllocationInterval);
|
|
21291
|
+
var CustomerAllocation$inboundSchema = z39.pipe(
|
|
21292
|
+
z39.object({
|
|
21293
|
+
entity_id: string5(),
|
|
21294
|
+
amount: number2()
|
|
21295
|
+
}),
|
|
21296
|
+
z39.transform((v) => {
|
|
21297
|
+
return remap(v, {
|
|
21298
|
+
"entity_id": "entityId"
|
|
21299
|
+
});
|
|
21300
|
+
})
|
|
21301
|
+
);
|
|
21302
|
+
var CustomerBalanceAllocation$inboundSchema = z39.pipe(
|
|
21303
|
+
z39.object({
|
|
21304
|
+
feature_id: string5(),
|
|
21305
|
+
interval: CustomerBalanceAllocationInterval$inboundSchema,
|
|
21306
|
+
allocations: z39.array(z39.lazy(() => CustomerAllocation$inboundSchema))
|
|
21307
|
+
}),
|
|
21308
|
+
z39.transform((v) => {
|
|
21309
|
+
return remap(v, {
|
|
21310
|
+
"feature_id": "featureId"
|
|
21311
|
+
});
|
|
21312
|
+
})
|
|
21313
|
+
);
|
|
21279
21314
|
var CustomerAutoTopupInterval2$inboundSchema = inboundSchema(CustomerAutoTopupInterval2);
|
|
21280
21315
|
var CustomerPurchaseLimit2$inboundSchema = z39.pipe(
|
|
21281
21316
|
z39.object({
|
|
@@ -21417,6 +21452,9 @@ var CustomerOverageAllowed$inboundSchema = z39.pipe(
|
|
|
21417
21452
|
);
|
|
21418
21453
|
var CustomerBillingControls$inboundSchema = z39.pipe(
|
|
21419
21454
|
z39.object({
|
|
21455
|
+
balance_allocations: optional3(
|
|
21456
|
+
z39.array(z39.lazy(() => CustomerBalanceAllocation$inboundSchema))
|
|
21457
|
+
),
|
|
21420
21458
|
auto_topups: optional3(
|
|
21421
21459
|
z39.array(z39.lazy(() => CustomerAutoTopup$inboundSchema))
|
|
21422
21460
|
),
|
|
@@ -21435,6 +21473,7 @@ var CustomerBillingControls$inboundSchema = z39.pipe(
|
|
|
21435
21473
|
}),
|
|
21436
21474
|
z39.transform((v) => {
|
|
21437
21475
|
return remap(v, {
|
|
21476
|
+
"balance_allocations": "balanceAllocations",
|
|
21438
21477
|
"auto_topups": "autoTopups",
|
|
21439
21478
|
"spend_limits": "spendLimits",
|
|
21440
21479
|
"usage_limits": "usageLimits",
|
|
@@ -22447,6 +22486,17 @@ var GetCustomerEnv = {
|
|
|
22447
22486
|
Sandbox: "sandbox",
|
|
22448
22487
|
Live: "live"
|
|
22449
22488
|
};
|
|
22489
|
+
var GetCustomerBalanceAllocationInterval = {
|
|
22490
|
+
OneOff: "one_off",
|
|
22491
|
+
Minute: "minute",
|
|
22492
|
+
Hour: "hour",
|
|
22493
|
+
Day: "day",
|
|
22494
|
+
Week: "week",
|
|
22495
|
+
Month: "month",
|
|
22496
|
+
Quarter: "quarter",
|
|
22497
|
+
SemiAnnual: "semi_annual",
|
|
22498
|
+
Year: "year"
|
|
22499
|
+
};
|
|
22450
22500
|
var GetCustomerAutoTopupInterval2 = {
|
|
22451
22501
|
Hour: "hour",
|
|
22452
22502
|
Day: "day",
|
|
@@ -22572,6 +22622,30 @@ var GetCustomerParams$outboundSchema = z52.pipe(
|
|
|
22572
22622
|
})
|
|
22573
22623
|
);
|
|
22574
22624
|
var GetCustomerEnv$inboundSchema = inboundSchema(GetCustomerEnv);
|
|
22625
|
+
var GetCustomerBalanceAllocationInterval$inboundSchema = inboundSchema(GetCustomerBalanceAllocationInterval);
|
|
22626
|
+
var GetCustomerAllocation$inboundSchema = z52.pipe(
|
|
22627
|
+
z52.object({
|
|
22628
|
+
entity_id: string5(),
|
|
22629
|
+
amount: number2()
|
|
22630
|
+
}),
|
|
22631
|
+
z52.transform((v) => {
|
|
22632
|
+
return remap(v, {
|
|
22633
|
+
"entity_id": "entityId"
|
|
22634
|
+
});
|
|
22635
|
+
})
|
|
22636
|
+
);
|
|
22637
|
+
var GetCustomerBalanceAllocation$inboundSchema = z52.pipe(
|
|
22638
|
+
z52.object({
|
|
22639
|
+
feature_id: string5(),
|
|
22640
|
+
interval: GetCustomerBalanceAllocationInterval$inboundSchema,
|
|
22641
|
+
allocations: z52.array(z52.lazy(() => GetCustomerAllocation$inboundSchema))
|
|
22642
|
+
}),
|
|
22643
|
+
z52.transform((v) => {
|
|
22644
|
+
return remap(v, {
|
|
22645
|
+
"feature_id": "featureId"
|
|
22646
|
+
});
|
|
22647
|
+
})
|
|
22648
|
+
);
|
|
22575
22649
|
var GetCustomerAutoTopupInterval2$inboundSchema = inboundSchema(GetCustomerAutoTopupInterval2);
|
|
22576
22650
|
var GetCustomerPurchaseLimit2$inboundSchema = z52.pipe(
|
|
22577
22651
|
z52.object({
|
|
@@ -22713,6 +22787,9 @@ var GetCustomerOverageAllowed$inboundSchema = z52.pipe(
|
|
|
22713
22787
|
);
|
|
22714
22788
|
var GetCustomerBillingControls$inboundSchema = z52.pipe(
|
|
22715
22789
|
z52.object({
|
|
22790
|
+
balance_allocations: optional3(
|
|
22791
|
+
z52.array(z52.lazy(() => GetCustomerBalanceAllocation$inboundSchema))
|
|
22792
|
+
),
|
|
22716
22793
|
auto_topups: optional3(
|
|
22717
22794
|
z52.array(z52.lazy(() => GetCustomerAutoTopup$inboundSchema))
|
|
22718
22795
|
),
|
|
@@ -22731,6 +22808,7 @@ var GetCustomerBillingControls$inboundSchema = z52.pipe(
|
|
|
22731
22808
|
}),
|
|
22732
22809
|
z52.transform((v) => {
|
|
22733
22810
|
return remap(v, {
|
|
22811
|
+
"balance_allocations": "balanceAllocations",
|
|
22734
22812
|
"auto_topups": "autoTopups",
|
|
22735
22813
|
"spend_limits": "spendLimits",
|
|
22736
22814
|
"usage_limits": "usageLimits",
|
|
@@ -28348,6 +28426,17 @@ var ListCustomersEnv = {
|
|
|
28348
28426
|
Sandbox: "sandbox",
|
|
28349
28427
|
Live: "live"
|
|
28350
28428
|
};
|
|
28429
|
+
var ListCustomersBalanceAllocationInterval = {
|
|
28430
|
+
OneOff: "one_off",
|
|
28431
|
+
Minute: "minute",
|
|
28432
|
+
Hour: "hour",
|
|
28433
|
+
Day: "day",
|
|
28434
|
+
Week: "week",
|
|
28435
|
+
Month: "month",
|
|
28436
|
+
Quarter: "quarter",
|
|
28437
|
+
SemiAnnual: "semi_annual",
|
|
28438
|
+
Year: "year"
|
|
28439
|
+
};
|
|
28351
28440
|
var ListCustomersAutoTopupInterval2 = {
|
|
28352
28441
|
Hour: "hour",
|
|
28353
28442
|
Day: "day",
|
|
@@ -28472,6 +28561,30 @@ var ListCustomersParams$outboundSchema = z67.pipe(
|
|
|
28472
28561
|
})
|
|
28473
28562
|
);
|
|
28474
28563
|
var ListCustomersEnv$inboundSchema = inboundSchema(ListCustomersEnv);
|
|
28564
|
+
var ListCustomersBalanceAllocationInterval$inboundSchema = inboundSchema(ListCustomersBalanceAllocationInterval);
|
|
28565
|
+
var ListCustomersAllocation$inboundSchema = z67.pipe(
|
|
28566
|
+
z67.object({
|
|
28567
|
+
entity_id: string5(),
|
|
28568
|
+
amount: number2()
|
|
28569
|
+
}),
|
|
28570
|
+
z67.transform((v) => {
|
|
28571
|
+
return remap(v, {
|
|
28572
|
+
"entity_id": "entityId"
|
|
28573
|
+
});
|
|
28574
|
+
})
|
|
28575
|
+
);
|
|
28576
|
+
var ListCustomersBalanceAllocation$inboundSchema = z67.pipe(
|
|
28577
|
+
z67.object({
|
|
28578
|
+
feature_id: string5(),
|
|
28579
|
+
interval: ListCustomersBalanceAllocationInterval$inboundSchema,
|
|
28580
|
+
allocations: z67.array(z67.lazy(() => ListCustomersAllocation$inboundSchema))
|
|
28581
|
+
}),
|
|
28582
|
+
z67.transform((v) => {
|
|
28583
|
+
return remap(v, {
|
|
28584
|
+
"feature_id": "featureId"
|
|
28585
|
+
});
|
|
28586
|
+
})
|
|
28587
|
+
);
|
|
28475
28588
|
var ListCustomersAutoTopupInterval2$inboundSchema = inboundSchema(ListCustomersAutoTopupInterval2);
|
|
28476
28589
|
var ListCustomersPurchaseLimit2$inboundSchema = z67.pipe(
|
|
28477
28590
|
z67.object({
|
|
@@ -28613,6 +28726,9 @@ var ListCustomersOverageAllowed$inboundSchema = z67.pipe(
|
|
|
28613
28726
|
);
|
|
28614
28727
|
var ListCustomersBillingControls$inboundSchema = z67.pipe(
|
|
28615
28728
|
z67.object({
|
|
28729
|
+
balance_allocations: optional3(
|
|
28730
|
+
z67.array(z67.lazy(() => ListCustomersBalanceAllocation$inboundSchema))
|
|
28731
|
+
),
|
|
28616
28732
|
auto_topups: optional3(
|
|
28617
28733
|
z67.array(z67.lazy(() => ListCustomersAutoTopup$inboundSchema))
|
|
28618
28734
|
),
|
|
@@ -28631,6 +28747,7 @@ var ListCustomersBillingControls$inboundSchema = z67.pipe(
|
|
|
28631
28747
|
}),
|
|
28632
28748
|
z67.transform((v) => {
|
|
28633
28749
|
return remap(v, {
|
|
28750
|
+
"balance_allocations": "balanceAllocations",
|
|
28634
28751
|
"auto_topups": "autoTopups",
|
|
28635
28752
|
"spend_limits": "spendLimits",
|
|
28636
28753
|
"usage_limits": "usageLimits",
|
|
@@ -46788,6 +46905,17 @@ var UpdateBalanceResponse$inboundSchema = z109.object({
|
|
|
46788
46905
|
|
|
46789
46906
|
// ../sdk/src/models/update-customer-op.ts
|
|
46790
46907
|
var z110 = __toESM(require("zod/v4-mini"), 1);
|
|
46908
|
+
var BalanceAllocationIntervalRequestBody = {
|
|
46909
|
+
OneOff: "one_off",
|
|
46910
|
+
Minute: "minute",
|
|
46911
|
+
Hour: "hour",
|
|
46912
|
+
Day: "day",
|
|
46913
|
+
Week: "week",
|
|
46914
|
+
Month: "month",
|
|
46915
|
+
Quarter: "quarter",
|
|
46916
|
+
SemiAnnual: "semi_annual",
|
|
46917
|
+
Year: "year"
|
|
46918
|
+
};
|
|
46791
46919
|
var UpdateCustomerAutoTopupIntervalRequestBody = {
|
|
46792
46920
|
Hour: "hour",
|
|
46793
46921
|
Day: "day",
|
|
@@ -46837,6 +46965,17 @@ var UpdateCustomerEnv = {
|
|
|
46837
46965
|
Sandbox: "sandbox",
|
|
46838
46966
|
Live: "live"
|
|
46839
46967
|
};
|
|
46968
|
+
var UpdateCustomerBalanceAllocationIntervalResponse = {
|
|
46969
|
+
OneOff: "one_off",
|
|
46970
|
+
Minute: "minute",
|
|
46971
|
+
Hour: "hour",
|
|
46972
|
+
Day: "day",
|
|
46973
|
+
Week: "week",
|
|
46974
|
+
Month: "month",
|
|
46975
|
+
Quarter: "quarter",
|
|
46976
|
+
SemiAnnual: "semi_annual",
|
|
46977
|
+
Year: "year"
|
|
46978
|
+
};
|
|
46840
46979
|
var UpdateCustomerAutoTopupIntervalResponse2 = {
|
|
46841
46980
|
Hour: "hour",
|
|
46842
46981
|
Day: "day",
|
|
@@ -46925,6 +47064,30 @@ var UpdateCustomerDimensionsToEnum1 = {
|
|
|
46925
47064
|
var UpdateCustomerToEnum = {
|
|
46926
47065
|
Inf: "inf"
|
|
46927
47066
|
};
|
|
47067
|
+
var BalanceAllocationIntervalRequestBody$outboundSchema = z110.enum(BalanceAllocationIntervalRequestBody);
|
|
47068
|
+
var AllocationRequest$outboundSchema = z110.pipe(
|
|
47069
|
+
z110.object({
|
|
47070
|
+
entityId: z110.string(),
|
|
47071
|
+
amount: z110.number()
|
|
47072
|
+
}),
|
|
47073
|
+
z110.transform((v) => {
|
|
47074
|
+
return remap(v, {
|
|
47075
|
+
entityId: "entity_id"
|
|
47076
|
+
});
|
|
47077
|
+
})
|
|
47078
|
+
);
|
|
47079
|
+
var BalanceAllocationRequest$outboundSchema = z110.pipe(
|
|
47080
|
+
z110.object({
|
|
47081
|
+
featureId: z110.string(),
|
|
47082
|
+
interval: BalanceAllocationIntervalRequestBody$outboundSchema,
|
|
47083
|
+
allocations: z110.array(z110.lazy(() => AllocationRequest$outboundSchema))
|
|
47084
|
+
}),
|
|
47085
|
+
z110.transform((v) => {
|
|
47086
|
+
return remap(v, {
|
|
47087
|
+
featureId: "feature_id"
|
|
47088
|
+
});
|
|
47089
|
+
})
|
|
47090
|
+
);
|
|
46928
47091
|
var UpdateCustomerAutoTopupIntervalRequestBody$outboundSchema = z110.enum(
|
|
46929
47092
|
UpdateCustomerAutoTopupIntervalRequestBody
|
|
46930
47093
|
);
|
|
@@ -47079,6 +47242,9 @@ var UpdateCustomerOverageAllowedRequestBody$outboundSchema = z110.pipe(
|
|
|
47079
47242
|
);
|
|
47080
47243
|
var UpdateCustomerBillingControlsRequestBody$outboundSchema = z110.pipe(
|
|
47081
47244
|
z110.object({
|
|
47245
|
+
balanceAllocations: z110.optional(
|
|
47246
|
+
z110.array(z110.lazy(() => BalanceAllocationRequest$outboundSchema))
|
|
47247
|
+
),
|
|
47082
47248
|
autoTopups: z110.optional(
|
|
47083
47249
|
z110.array(
|
|
47084
47250
|
z110.lazy(() => UpdateCustomerAutoTopupRequestBody$outboundSchema)
|
|
@@ -47110,6 +47276,7 @@ var UpdateCustomerBillingControlsRequestBody$outboundSchema = z110.pipe(
|
|
|
47110
47276
|
}),
|
|
47111
47277
|
z110.transform((v) => {
|
|
47112
47278
|
return remap(v, {
|
|
47279
|
+
balanceAllocations: "balance_allocations",
|
|
47113
47280
|
autoTopups: "auto_topups",
|
|
47114
47281
|
spendLimits: "spend_limits",
|
|
47115
47282
|
usageLimits: "usage_limits",
|
|
@@ -47234,6 +47401,32 @@ var UpdateCustomerParams$outboundSchema = z110.pipe(
|
|
|
47234
47401
|
})
|
|
47235
47402
|
);
|
|
47236
47403
|
var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
|
|
47404
|
+
var UpdateCustomerBalanceAllocationIntervalResponse$inboundSchema = inboundSchema(UpdateCustomerBalanceAllocationIntervalResponse);
|
|
47405
|
+
var UpdateCustomerAllocationResponse$inboundSchema = z110.pipe(
|
|
47406
|
+
z110.object({
|
|
47407
|
+
entity_id: string5(),
|
|
47408
|
+
amount: number2()
|
|
47409
|
+
}),
|
|
47410
|
+
z110.transform((v) => {
|
|
47411
|
+
return remap(v, {
|
|
47412
|
+
"entity_id": "entityId"
|
|
47413
|
+
});
|
|
47414
|
+
})
|
|
47415
|
+
);
|
|
47416
|
+
var UpdateCustomerBalanceAllocationResponse$inboundSchema = z110.pipe(
|
|
47417
|
+
z110.object({
|
|
47418
|
+
feature_id: string5(),
|
|
47419
|
+
interval: UpdateCustomerBalanceAllocationIntervalResponse$inboundSchema,
|
|
47420
|
+
allocations: z110.array(z110.lazy(
|
|
47421
|
+
() => UpdateCustomerAllocationResponse$inboundSchema
|
|
47422
|
+
))
|
|
47423
|
+
}),
|
|
47424
|
+
z110.transform((v) => {
|
|
47425
|
+
return remap(v, {
|
|
47426
|
+
"feature_id": "featureId"
|
|
47427
|
+
});
|
|
47428
|
+
})
|
|
47429
|
+
);
|
|
47237
47430
|
var UpdateCustomerAutoTopupIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerAutoTopupIntervalResponse2);
|
|
47238
47431
|
var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z110.pipe(
|
|
47239
47432
|
z110.object({
|
|
@@ -47379,24 +47572,28 @@ var UpdateCustomerOverageAllowedResponse$inboundSchema = z110.pipe(
|
|
|
47379
47572
|
);
|
|
47380
47573
|
var UpdateCustomerBillingControlsResponse$inboundSchema = z110.pipe(
|
|
47381
47574
|
z110.object({
|
|
47382
|
-
|
|
47383
|
-
|
|
47384
|
-
),
|
|
47385
|
-
|
|
47386
|
-
|
|
47387
|
-
),
|
|
47388
|
-
|
|
47389
|
-
|
|
47390
|
-
),
|
|
47391
|
-
|
|
47392
|
-
|
|
47393
|
-
),
|
|
47394
|
-
|
|
47395
|
-
|
|
47396
|
-
)
|
|
47575
|
+
balance_allocations: optional3(z110.array(z110.lazy(
|
|
47576
|
+
() => UpdateCustomerBalanceAllocationResponse$inboundSchema
|
|
47577
|
+
))),
|
|
47578
|
+
auto_topups: optional3(z110.array(z110.lazy(
|
|
47579
|
+
() => UpdateCustomerAutoTopupResponse$inboundSchema
|
|
47580
|
+
))),
|
|
47581
|
+
spend_limits: optional3(z110.array(z110.lazy(
|
|
47582
|
+
() => UpdateCustomerSpendLimitResponse$inboundSchema
|
|
47583
|
+
))),
|
|
47584
|
+
usage_limits: optional3(z110.array(z110.lazy(
|
|
47585
|
+
() => UpdateCustomerUsageLimitResponse$inboundSchema
|
|
47586
|
+
))),
|
|
47587
|
+
usage_alerts: optional3(z110.array(z110.lazy(
|
|
47588
|
+
() => UpdateCustomerUsageAlertResponse$inboundSchema
|
|
47589
|
+
))),
|
|
47590
|
+
overage_allowed: optional3(z110.array(z110.lazy(
|
|
47591
|
+
() => UpdateCustomerOverageAllowedResponse$inboundSchema
|
|
47592
|
+
)))
|
|
47397
47593
|
}),
|
|
47398
47594
|
z110.transform((v) => {
|
|
47399
47595
|
return remap(v, {
|
|
47596
|
+
"balance_allocations": "balanceAllocations",
|
|
47400
47597
|
"auto_topups": "autoTopups",
|
|
47401
47598
|
"spend_limits": "spendLimits",
|
|
47402
47599
|
"usage_limits": "usageLimits",
|
|
@@ -2,28 +2,28 @@ import "../chunk-WYDGEDEU.mjs";
|
|
|
2
2
|
import "../chunk-VXND2UDT.mjs";
|
|
3
3
|
import {
|
|
4
4
|
handleRouteByName
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-5CDM4XIN.mjs";
|
|
6
6
|
import {
|
|
7
7
|
createCoreHandler
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-SS7EKOGZ.mjs";
|
|
9
|
+
import "../chunk-JPQERXWV.mjs";
|
|
10
|
+
import "../chunk-MOHYGUMA.mjs";
|
|
11
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
12
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
9
13
|
import "../chunk-TSF4YCUO.mjs";
|
|
10
14
|
import {
|
|
11
15
|
buildRouter
|
|
12
16
|
} from "../chunk-UAR3TMWI.mjs";
|
|
13
|
-
import "../chunk-KSYN5FLV.mjs";
|
|
14
17
|
import {
|
|
15
18
|
routeConfigs
|
|
16
19
|
} from "../chunk-IQQQ5P6R.mjs";
|
|
17
|
-
import "../chunk-IXUCY7AU.mjs";
|
|
18
20
|
import "../chunk-OTXV5FY7.mjs";
|
|
19
|
-
import {
|
|
20
|
-
sanitizeBody
|
|
21
|
-
} from "../chunk-I7CD6EB6.mjs";
|
|
22
21
|
import {
|
|
23
22
|
secretKeyCheck
|
|
24
23
|
} from "../chunk-VZIMT7AO.mjs";
|
|
25
|
-
import
|
|
26
|
-
|
|
24
|
+
import {
|
|
25
|
+
sanitizeBody
|
|
26
|
+
} from "../chunk-I7CD6EB6.mjs";
|
|
27
27
|
import {
|
|
28
28
|
backendError,
|
|
29
29
|
backendSuccess,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { RouteMatch, buildRouter } from './routeBuilder.mjs';
|
|
2
2
|
export { routeConfigs } from './routeConfigs.mjs';
|
|
3
3
|
import 'rou3';
|
|
4
|
-
import '../../routeTypes-
|
|
4
|
+
import '../../routeTypes-Czot4Qi-.mjs';
|
|
5
5
|
import '../../authTypes-TPWTIfcM.mjs';
|
|
6
6
|
import 'zod/v4';
|
|
7
7
|
import '../utils/sanitizeBody.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { RouteMatch, buildRouter } from './routeBuilder.js';
|
|
2
2
|
export { routeConfigs } from './routeConfigs.js';
|
|
3
3
|
import 'rou3';
|
|
4
|
-
import '../../routeTypes-
|
|
4
|
+
import '../../routeTypes-D4pVj85I.js';
|
|
5
5
|
import '../../authTypes-TPWTIfcM.js';
|
|
6
6
|
import 'zod/v4';
|
|
7
7
|
import '../utils/sanitizeBody.js';
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
routeConfigs
|
|
7
7
|
} from "../../chunk-IQQQ5P6R.mjs";
|
|
8
8
|
import "../../chunk-OTXV5FY7.mjs";
|
|
9
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
10
9
|
import "../../chunk-VZIMT7AO.mjs";
|
|
10
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
11
11
|
import "../../chunk-N7NFYY54.mjs";
|
|
12
12
|
export {
|
|
13
13
|
buildRouter,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RouterContext } from 'rou3';
|
|
2
|
-
import { R as RouteDefinition } from '../../routeTypes-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-Czot4Qi-.mjs';
|
|
3
3
|
import '../../authTypes-TPWTIfcM.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RouterContext } from 'rou3';
|
|
2
|
-
import { R as RouteDefinition } from '../../routeTypes-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-D4pVj85I.js';
|
|
3
3
|
import '../../authTypes-TPWTIfcM.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.js';
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
routeConfigs
|
|
3
3
|
} from "../../chunk-IQQQ5P6R.mjs";
|
|
4
4
|
import "../../chunk-OTXV5FY7.mjs";
|
|
5
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
6
5
|
import "../../chunk-VZIMT7AO.mjs";
|
|
6
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
7
7
|
import "../../chunk-N7NFYY54.mjs";
|
|
8
8
|
export {
|
|
9
9
|
routeConfigs
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AuthResult } from '../../authTypes-TPWTIfcM.mjs';
|
|
2
|
-
import { R as RouteDefinition } from '../../routeTypes-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-Czot4Qi-.mjs';
|
|
3
3
|
import './responseTypes.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AuthResult } from '../../authTypes-TPWTIfcM.js';
|
|
2
|
-
import { R as RouteDefinition } from '../../routeTypes-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-D4pVj85I.js';
|
|
3
3
|
import './responseTypes.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-TPWTIfcM.mjs';
|
|
2
2
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.mjs';
|
|
3
3
|
export { BackendErrorBody, BackendResult } from './responseTypes.mjs';
|
|
4
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-
|
|
4
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-Czot4Qi-.mjs';
|
|
5
5
|
import 'zod/v4';
|
|
6
6
|
import '../utils/sanitizeBody.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-TPWTIfcM.js';
|
|
2
2
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.js';
|
|
3
3
|
export { BackendErrorBody, BackendResult } from './responseTypes.js';
|
|
4
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-
|
|
4
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-D4pVj85I.js';
|
|
5
5
|
import 'zod/v4';
|
|
6
6
|
import '../utils/sanitizeBody.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-
|
|
1
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-Czot4Qi-.mjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import '../utils/sanitizeBody.mjs';
|
|
4
4
|
import '../../authTypes-TPWTIfcM.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-
|
|
1
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-D4pVj85I.js';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import '../utils/sanitizeBody.js';
|
|
4
4
|
import '../../authTypes-TPWTIfcM.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../chunk-OTXV5FY7.mjs";
|
|
2
|
+
import {
|
|
3
|
+
secretKeyCheck
|
|
4
|
+
} from "../../chunk-VZIMT7AO.mjs";
|
|
2
5
|
import {
|
|
3
6
|
CUSTOMER_PROTECTED_BODY_FIELDS,
|
|
4
7
|
DEFAULT_PROTECTED_BODY_FIELDS,
|
|
5
8
|
sanitizeBody
|
|
6
9
|
} from "../../chunk-I7CD6EB6.mjs";
|
|
7
|
-
import {
|
|
8
|
-
secretKeyCheck
|
|
9
|
-
} from "../../chunk-VZIMT7AO.mjs";
|
|
10
10
|
import {
|
|
11
11
|
backendError,
|
|
12
12
|
backendSuccess,
|
package/dist/backend/index.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ import { C as CustomerData } from './authTypes-TPWTIfcM.mjs';
|
|
|
3
3
|
export { A as AuthResult, a as CustomerId, R as ResolvedIdentity } from './authTypes-TPWTIfcM.mjs';
|
|
4
4
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './core/types/handlerTypes.mjs';
|
|
5
5
|
export { BackendErrorBody, BackendResult } from './core/types/responseTypes.mjs';
|
|
6
|
-
import { R as RouteDefinition } from './routeTypes-
|
|
7
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-
|
|
6
|
+
import { R as RouteDefinition } from './routeTypes-Czot4Qi-.mjs';
|
|
7
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-Czot4Qi-.mjs';
|
|
8
8
|
export { buildRouter } from './core/routes/routeBuilder.mjs';
|
|
9
9
|
export { routeConfigs } from './core/routes/routeConfigs.mjs';
|
|
10
10
|
export { secretKeyCheck } from './core/utils/secretKeyCheck.mjs';
|
package/dist/backend/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { C as CustomerData } from './authTypes-TPWTIfcM.js';
|
|
|
3
3
|
export { A as AuthResult, a as CustomerId, R as ResolvedIdentity } from './authTypes-TPWTIfcM.js';
|
|
4
4
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './core/types/handlerTypes.js';
|
|
5
5
|
export { BackendErrorBody, BackendResult } from './core/types/responseTypes.js';
|
|
6
|
-
import { R as RouteDefinition } from './routeTypes-
|
|
7
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-
|
|
6
|
+
import { R as RouteDefinition } from './routeTypes-D4pVj85I.js';
|
|
7
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-D4pVj85I.js';
|
|
8
8
|
export { buildRouter } from './core/routes/routeBuilder.js';
|
|
9
9
|
export { routeConfigs } from './core/routes/routeConfigs.js';
|
|
10
10
|
export { secretKeyCheck } from './core/utils/secretKeyCheck.js';
|