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
|
@@ -3305,7 +3305,7 @@ declare const BalanceSource: {
|
|
|
3305
3305
|
* Where this row's credits come from: shared at the customer level, or owned by the entity.
|
|
3306
3306
|
*/
|
|
3307
3307
|
type BalanceSource = OpenEnum<typeof BalanceSource>;
|
|
3308
|
-
type
|
|
3308
|
+
type BalanceAllocation = {
|
|
3309
3309
|
/**
|
|
3310
3310
|
* The amount allocated to this entity.
|
|
3311
3311
|
*/
|
|
@@ -3359,7 +3359,7 @@ type Breakdown = {
|
|
|
3359
3359
|
/**
|
|
3360
3360
|
* Set when this row's numbers are the entity's allocated share of the customer's credits.
|
|
3361
3361
|
*/
|
|
3362
|
-
allocation?:
|
|
3362
|
+
allocation?: BalanceAllocation | null | undefined;
|
|
3363
3363
|
};
|
|
3364
3364
|
type BalanceRollover = {
|
|
3365
3365
|
/**
|
|
@@ -23472,6 +23472,48 @@ declare const CustomerEnv: {
|
|
|
23472
23472
|
* The environment this customer was created in.
|
|
23473
23473
|
*/
|
|
23474
23474
|
type CustomerEnv = OpenEnum<typeof CustomerEnv>;
|
|
23475
|
+
/**
|
|
23476
|
+
* The reset interval of the shared credits being allocated.
|
|
23477
|
+
*/
|
|
23478
|
+
declare const CustomerBalanceAllocationInterval: {
|
|
23479
|
+
readonly OneOff: "one_off";
|
|
23480
|
+
readonly Minute: "minute";
|
|
23481
|
+
readonly Hour: "hour";
|
|
23482
|
+
readonly Day: "day";
|
|
23483
|
+
readonly Week: "week";
|
|
23484
|
+
readonly Month: "month";
|
|
23485
|
+
readonly Quarter: "quarter";
|
|
23486
|
+
readonly SemiAnnual: "semi_annual";
|
|
23487
|
+
readonly Year: "year";
|
|
23488
|
+
};
|
|
23489
|
+
/**
|
|
23490
|
+
* The reset interval of the shared credits being allocated.
|
|
23491
|
+
*/
|
|
23492
|
+
type CustomerBalanceAllocationInterval = OpenEnum<typeof CustomerBalanceAllocationInterval>;
|
|
23493
|
+
type CustomerAllocation = {
|
|
23494
|
+
/**
|
|
23495
|
+
* The public entity ID.
|
|
23496
|
+
*/
|
|
23497
|
+
entityId: string;
|
|
23498
|
+
/**
|
|
23499
|
+
* Requested credits per cycle, before proportional scaling. 0 releases the allocation.
|
|
23500
|
+
*/
|
|
23501
|
+
amount: number;
|
|
23502
|
+
};
|
|
23503
|
+
type CustomerBalanceAllocation = {
|
|
23504
|
+
/**
|
|
23505
|
+
* The feature whose shared customer credits are allocated.
|
|
23506
|
+
*/
|
|
23507
|
+
featureId: string;
|
|
23508
|
+
/**
|
|
23509
|
+
* The reset interval of the shared credits being allocated.
|
|
23510
|
+
*/
|
|
23511
|
+
interval: CustomerBalanceAllocationInterval;
|
|
23512
|
+
/**
|
|
23513
|
+
* Complete list of entity allocations for this feature. Omitted entities release their shares.
|
|
23514
|
+
*/
|
|
23515
|
+
allocations: Array<CustomerAllocation>;
|
|
23516
|
+
};
|
|
23475
23517
|
/**
|
|
23476
23518
|
* The time interval for the purchase limit window.
|
|
23477
23519
|
*/
|
|
@@ -23802,6 +23844,10 @@ type CustomerOverageAllowed = {
|
|
|
23802
23844
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
23803
23845
|
*/
|
|
23804
23846
|
type CustomerBillingControls = {
|
|
23847
|
+
/**
|
|
23848
|
+
* Customer-level entity allocations of shared credits. Amounts are requested shares before proportional scaling.
|
|
23849
|
+
*/
|
|
23850
|
+
balanceAllocations?: Array<CustomerBalanceAllocation> | undefined;
|
|
23805
23851
|
/**
|
|
23806
23852
|
* List of auto top-up configurations per feature.
|
|
23807
23853
|
*/
|
|
@@ -25244,6 +25290,48 @@ declare const GetCustomerEnv: {
|
|
|
25244
25290
|
* The environment this customer was created in.
|
|
25245
25291
|
*/
|
|
25246
25292
|
type GetCustomerEnv = OpenEnum<typeof GetCustomerEnv>;
|
|
25293
|
+
/**
|
|
25294
|
+
* The reset interval of the shared credits being allocated.
|
|
25295
|
+
*/
|
|
25296
|
+
declare const GetCustomerBalanceAllocationInterval: {
|
|
25297
|
+
readonly OneOff: "one_off";
|
|
25298
|
+
readonly Minute: "minute";
|
|
25299
|
+
readonly Hour: "hour";
|
|
25300
|
+
readonly Day: "day";
|
|
25301
|
+
readonly Week: "week";
|
|
25302
|
+
readonly Month: "month";
|
|
25303
|
+
readonly Quarter: "quarter";
|
|
25304
|
+
readonly SemiAnnual: "semi_annual";
|
|
25305
|
+
readonly Year: "year";
|
|
25306
|
+
};
|
|
25307
|
+
/**
|
|
25308
|
+
* The reset interval of the shared credits being allocated.
|
|
25309
|
+
*/
|
|
25310
|
+
type GetCustomerBalanceAllocationInterval = OpenEnum<typeof GetCustomerBalanceAllocationInterval>;
|
|
25311
|
+
type GetCustomerAllocation = {
|
|
25312
|
+
/**
|
|
25313
|
+
* The public entity ID.
|
|
25314
|
+
*/
|
|
25315
|
+
entityId: string;
|
|
25316
|
+
/**
|
|
25317
|
+
* Requested credits per cycle, before proportional scaling. 0 releases the allocation.
|
|
25318
|
+
*/
|
|
25319
|
+
amount: number;
|
|
25320
|
+
};
|
|
25321
|
+
type GetCustomerBalanceAllocation = {
|
|
25322
|
+
/**
|
|
25323
|
+
* The feature whose shared customer credits are allocated.
|
|
25324
|
+
*/
|
|
25325
|
+
featureId: string;
|
|
25326
|
+
/**
|
|
25327
|
+
* The reset interval of the shared credits being allocated.
|
|
25328
|
+
*/
|
|
25329
|
+
interval: GetCustomerBalanceAllocationInterval;
|
|
25330
|
+
/**
|
|
25331
|
+
* Complete list of entity allocations for this feature. Omitted entities release their shares.
|
|
25332
|
+
*/
|
|
25333
|
+
allocations: Array<GetCustomerAllocation>;
|
|
25334
|
+
};
|
|
25247
25335
|
/**
|
|
25248
25336
|
* The time interval for the purchase limit window.
|
|
25249
25337
|
*/
|
|
@@ -25574,6 +25662,10 @@ type GetCustomerOverageAllowed = {
|
|
|
25574
25662
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
25575
25663
|
*/
|
|
25576
25664
|
type GetCustomerBillingControls = {
|
|
25665
|
+
/**
|
|
25666
|
+
* Customer-level entity allocations of shared credits. Amounts are requested shares before proportional scaling.
|
|
25667
|
+
*/
|
|
25668
|
+
balanceAllocations?: Array<GetCustomerBalanceAllocation> | undefined;
|
|
25577
25669
|
/**
|
|
25578
25670
|
* List of auto top-up configurations per feature.
|
|
25579
25671
|
*/
|
|
@@ -32361,6 +32453,48 @@ declare const ListCustomersEnv: {
|
|
|
32361
32453
|
* The environment this customer was created in.
|
|
32362
32454
|
*/
|
|
32363
32455
|
type ListCustomersEnv = OpenEnum<typeof ListCustomersEnv>;
|
|
32456
|
+
/**
|
|
32457
|
+
* The reset interval of the shared credits being allocated.
|
|
32458
|
+
*/
|
|
32459
|
+
declare const ListCustomersBalanceAllocationInterval: {
|
|
32460
|
+
readonly OneOff: "one_off";
|
|
32461
|
+
readonly Minute: "minute";
|
|
32462
|
+
readonly Hour: "hour";
|
|
32463
|
+
readonly Day: "day";
|
|
32464
|
+
readonly Week: "week";
|
|
32465
|
+
readonly Month: "month";
|
|
32466
|
+
readonly Quarter: "quarter";
|
|
32467
|
+
readonly SemiAnnual: "semi_annual";
|
|
32468
|
+
readonly Year: "year";
|
|
32469
|
+
};
|
|
32470
|
+
/**
|
|
32471
|
+
* The reset interval of the shared credits being allocated.
|
|
32472
|
+
*/
|
|
32473
|
+
type ListCustomersBalanceAllocationInterval = OpenEnum<typeof ListCustomersBalanceAllocationInterval>;
|
|
32474
|
+
type ListCustomersAllocation = {
|
|
32475
|
+
/**
|
|
32476
|
+
* The public entity ID.
|
|
32477
|
+
*/
|
|
32478
|
+
entityId: string;
|
|
32479
|
+
/**
|
|
32480
|
+
* Requested credits per cycle, before proportional scaling. 0 releases the allocation.
|
|
32481
|
+
*/
|
|
32482
|
+
amount: number;
|
|
32483
|
+
};
|
|
32484
|
+
type ListCustomersBalanceAllocation = {
|
|
32485
|
+
/**
|
|
32486
|
+
* The feature whose shared customer credits are allocated.
|
|
32487
|
+
*/
|
|
32488
|
+
featureId: string;
|
|
32489
|
+
/**
|
|
32490
|
+
* The reset interval of the shared credits being allocated.
|
|
32491
|
+
*/
|
|
32492
|
+
interval: ListCustomersBalanceAllocationInterval;
|
|
32493
|
+
/**
|
|
32494
|
+
* Complete list of entity allocations for this feature. Omitted entities release their shares.
|
|
32495
|
+
*/
|
|
32496
|
+
allocations: Array<ListCustomersAllocation>;
|
|
32497
|
+
};
|
|
32364
32498
|
/**
|
|
32365
32499
|
* The time interval for the purchase limit window.
|
|
32366
32500
|
*/
|
|
@@ -32691,6 +32825,10 @@ type ListCustomersOverageAllowed = {
|
|
|
32691
32825
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
32692
32826
|
*/
|
|
32693
32827
|
type ListCustomersBillingControls = {
|
|
32828
|
+
/**
|
|
32829
|
+
* Customer-level entity allocations of shared credits. Amounts are requested shares before proportional scaling.
|
|
32830
|
+
*/
|
|
32831
|
+
balanceAllocations?: Array<ListCustomersBalanceAllocation> | undefined;
|
|
32694
32832
|
/**
|
|
32695
32833
|
* List of auto top-up configurations per feature.
|
|
32696
32834
|
*/
|
|
@@ -54772,6 +54910,48 @@ type UpdateBalanceResponse = {
|
|
|
54772
54910
|
success: boolean;
|
|
54773
54911
|
};
|
|
54774
54912
|
|
|
54913
|
+
/**
|
|
54914
|
+
* The reset interval of the shared credits being allocated.
|
|
54915
|
+
*/
|
|
54916
|
+
declare const BalanceAllocationIntervalRequestBody: {
|
|
54917
|
+
readonly OneOff: "one_off";
|
|
54918
|
+
readonly Minute: "minute";
|
|
54919
|
+
readonly Hour: "hour";
|
|
54920
|
+
readonly Day: "day";
|
|
54921
|
+
readonly Week: "week";
|
|
54922
|
+
readonly Month: "month";
|
|
54923
|
+
readonly Quarter: "quarter";
|
|
54924
|
+
readonly SemiAnnual: "semi_annual";
|
|
54925
|
+
readonly Year: "year";
|
|
54926
|
+
};
|
|
54927
|
+
/**
|
|
54928
|
+
* The reset interval of the shared credits being allocated.
|
|
54929
|
+
*/
|
|
54930
|
+
type BalanceAllocationIntervalRequestBody = ClosedEnum<typeof BalanceAllocationIntervalRequestBody>;
|
|
54931
|
+
type AllocationRequest = {
|
|
54932
|
+
/**
|
|
54933
|
+
* The public entity ID.
|
|
54934
|
+
*/
|
|
54935
|
+
entityId: string;
|
|
54936
|
+
/**
|
|
54937
|
+
* Requested credits per cycle, before proportional scaling. 0 releases the allocation.
|
|
54938
|
+
*/
|
|
54939
|
+
amount: number;
|
|
54940
|
+
};
|
|
54941
|
+
type BalanceAllocationRequest = {
|
|
54942
|
+
/**
|
|
54943
|
+
* The feature whose shared customer credits are allocated.
|
|
54944
|
+
*/
|
|
54945
|
+
featureId: string;
|
|
54946
|
+
/**
|
|
54947
|
+
* The reset interval of the shared credits being allocated.
|
|
54948
|
+
*/
|
|
54949
|
+
interval: BalanceAllocationIntervalRequestBody;
|
|
54950
|
+
/**
|
|
54951
|
+
* Complete list of entity allocations for this feature. Omitted entities release their shares.
|
|
54952
|
+
*/
|
|
54953
|
+
allocations: Array<AllocationRequest>;
|
|
54954
|
+
};
|
|
54775
54955
|
/**
|
|
54776
54956
|
* The time interval for the purchase limit window.
|
|
54777
54957
|
*/
|
|
@@ -55054,6 +55234,10 @@ type UpdateCustomerOverageAllowedRequestBody = {
|
|
|
55054
55234
|
enabled?: boolean | undefined;
|
|
55055
55235
|
};
|
|
55056
55236
|
type UpdateCustomerBillingControlsRequestBody = {
|
|
55237
|
+
/**
|
|
55238
|
+
* Replace all customer-level balance allocations. Omit to keep existing allocations; pass [] to release all. Available only when updating an existing customer.
|
|
55239
|
+
*/
|
|
55240
|
+
balanceAllocations?: Array<BalanceAllocationRequest> | undefined;
|
|
55057
55241
|
/**
|
|
55058
55242
|
* List of auto top-up configurations per feature.
|
|
55059
55243
|
*/
|
|
@@ -55235,6 +55419,48 @@ declare const UpdateCustomerEnv: {
|
|
|
55235
55419
|
* The environment this customer was created in.
|
|
55236
55420
|
*/
|
|
55237
55421
|
type UpdateCustomerEnv = OpenEnum<typeof UpdateCustomerEnv>;
|
|
55422
|
+
/**
|
|
55423
|
+
* The reset interval of the shared credits being allocated.
|
|
55424
|
+
*/
|
|
55425
|
+
declare const UpdateCustomerBalanceAllocationIntervalResponse: {
|
|
55426
|
+
readonly OneOff: "one_off";
|
|
55427
|
+
readonly Minute: "minute";
|
|
55428
|
+
readonly Hour: "hour";
|
|
55429
|
+
readonly Day: "day";
|
|
55430
|
+
readonly Week: "week";
|
|
55431
|
+
readonly Month: "month";
|
|
55432
|
+
readonly Quarter: "quarter";
|
|
55433
|
+
readonly SemiAnnual: "semi_annual";
|
|
55434
|
+
readonly Year: "year";
|
|
55435
|
+
};
|
|
55436
|
+
/**
|
|
55437
|
+
* The reset interval of the shared credits being allocated.
|
|
55438
|
+
*/
|
|
55439
|
+
type UpdateCustomerBalanceAllocationIntervalResponse = OpenEnum<typeof UpdateCustomerBalanceAllocationIntervalResponse>;
|
|
55440
|
+
type UpdateCustomerAllocationResponse = {
|
|
55441
|
+
/**
|
|
55442
|
+
* The public entity ID.
|
|
55443
|
+
*/
|
|
55444
|
+
entityId: string;
|
|
55445
|
+
/**
|
|
55446
|
+
* Requested credits per cycle, before proportional scaling. 0 releases the allocation.
|
|
55447
|
+
*/
|
|
55448
|
+
amount: number;
|
|
55449
|
+
};
|
|
55450
|
+
type UpdateCustomerBalanceAllocationResponse = {
|
|
55451
|
+
/**
|
|
55452
|
+
* The feature whose shared customer credits are allocated.
|
|
55453
|
+
*/
|
|
55454
|
+
featureId: string;
|
|
55455
|
+
/**
|
|
55456
|
+
* The reset interval of the shared credits being allocated.
|
|
55457
|
+
*/
|
|
55458
|
+
interval: UpdateCustomerBalanceAllocationIntervalResponse;
|
|
55459
|
+
/**
|
|
55460
|
+
* Complete list of entity allocations for this feature. Omitted entities release their shares.
|
|
55461
|
+
*/
|
|
55462
|
+
allocations: Array<UpdateCustomerAllocationResponse>;
|
|
55463
|
+
};
|
|
55238
55464
|
/**
|
|
55239
55465
|
* The time interval for the purchase limit window.
|
|
55240
55466
|
*/
|
|
@@ -55565,6 +55791,10 @@ type UpdateCustomerOverageAllowedResponse = {
|
|
|
55565
55791
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
55566
55792
|
*/
|
|
55567
55793
|
type UpdateCustomerBillingControlsResponse = {
|
|
55794
|
+
/**
|
|
55795
|
+
* Customer-level entity allocations of shared credits. Amounts are requested shares before proportional scaling.
|
|
55796
|
+
*/
|
|
55797
|
+
balanceAllocations?: Array<UpdateCustomerBalanceAllocationResponse> | undefined;
|
|
55568
55798
|
/**
|
|
55569
55799
|
* List of auto top-up configurations per feature.
|
|
55570
55800
|
*/
|
|
@@ -3305,7 +3305,7 @@ declare const BalanceSource: {
|
|
|
3305
3305
|
* Where this row's credits come from: shared at the customer level, or owned by the entity.
|
|
3306
3306
|
*/
|
|
3307
3307
|
type BalanceSource = OpenEnum<typeof BalanceSource>;
|
|
3308
|
-
type
|
|
3308
|
+
type BalanceAllocation = {
|
|
3309
3309
|
/**
|
|
3310
3310
|
* The amount allocated to this entity.
|
|
3311
3311
|
*/
|
|
@@ -3359,7 +3359,7 @@ type Breakdown = {
|
|
|
3359
3359
|
/**
|
|
3360
3360
|
* Set when this row's numbers are the entity's allocated share of the customer's credits.
|
|
3361
3361
|
*/
|
|
3362
|
-
allocation?:
|
|
3362
|
+
allocation?: BalanceAllocation | null | undefined;
|
|
3363
3363
|
};
|
|
3364
3364
|
type BalanceRollover = {
|
|
3365
3365
|
/**
|
|
@@ -23472,6 +23472,48 @@ declare const CustomerEnv: {
|
|
|
23472
23472
|
* The environment this customer was created in.
|
|
23473
23473
|
*/
|
|
23474
23474
|
type CustomerEnv = OpenEnum<typeof CustomerEnv>;
|
|
23475
|
+
/**
|
|
23476
|
+
* The reset interval of the shared credits being allocated.
|
|
23477
|
+
*/
|
|
23478
|
+
declare const CustomerBalanceAllocationInterval: {
|
|
23479
|
+
readonly OneOff: "one_off";
|
|
23480
|
+
readonly Minute: "minute";
|
|
23481
|
+
readonly Hour: "hour";
|
|
23482
|
+
readonly Day: "day";
|
|
23483
|
+
readonly Week: "week";
|
|
23484
|
+
readonly Month: "month";
|
|
23485
|
+
readonly Quarter: "quarter";
|
|
23486
|
+
readonly SemiAnnual: "semi_annual";
|
|
23487
|
+
readonly Year: "year";
|
|
23488
|
+
};
|
|
23489
|
+
/**
|
|
23490
|
+
* The reset interval of the shared credits being allocated.
|
|
23491
|
+
*/
|
|
23492
|
+
type CustomerBalanceAllocationInterval = OpenEnum<typeof CustomerBalanceAllocationInterval>;
|
|
23493
|
+
type CustomerAllocation = {
|
|
23494
|
+
/**
|
|
23495
|
+
* The public entity ID.
|
|
23496
|
+
*/
|
|
23497
|
+
entityId: string;
|
|
23498
|
+
/**
|
|
23499
|
+
* Requested credits per cycle, before proportional scaling. 0 releases the allocation.
|
|
23500
|
+
*/
|
|
23501
|
+
amount: number;
|
|
23502
|
+
};
|
|
23503
|
+
type CustomerBalanceAllocation = {
|
|
23504
|
+
/**
|
|
23505
|
+
* The feature whose shared customer credits are allocated.
|
|
23506
|
+
*/
|
|
23507
|
+
featureId: string;
|
|
23508
|
+
/**
|
|
23509
|
+
* The reset interval of the shared credits being allocated.
|
|
23510
|
+
*/
|
|
23511
|
+
interval: CustomerBalanceAllocationInterval;
|
|
23512
|
+
/**
|
|
23513
|
+
* Complete list of entity allocations for this feature. Omitted entities release their shares.
|
|
23514
|
+
*/
|
|
23515
|
+
allocations: Array<CustomerAllocation>;
|
|
23516
|
+
};
|
|
23475
23517
|
/**
|
|
23476
23518
|
* The time interval for the purchase limit window.
|
|
23477
23519
|
*/
|
|
@@ -23802,6 +23844,10 @@ type CustomerOverageAllowed = {
|
|
|
23802
23844
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
23803
23845
|
*/
|
|
23804
23846
|
type CustomerBillingControls = {
|
|
23847
|
+
/**
|
|
23848
|
+
* Customer-level entity allocations of shared credits. Amounts are requested shares before proportional scaling.
|
|
23849
|
+
*/
|
|
23850
|
+
balanceAllocations?: Array<CustomerBalanceAllocation> | undefined;
|
|
23805
23851
|
/**
|
|
23806
23852
|
* List of auto top-up configurations per feature.
|
|
23807
23853
|
*/
|
|
@@ -25244,6 +25290,48 @@ declare const GetCustomerEnv: {
|
|
|
25244
25290
|
* The environment this customer was created in.
|
|
25245
25291
|
*/
|
|
25246
25292
|
type GetCustomerEnv = OpenEnum<typeof GetCustomerEnv>;
|
|
25293
|
+
/**
|
|
25294
|
+
* The reset interval of the shared credits being allocated.
|
|
25295
|
+
*/
|
|
25296
|
+
declare const GetCustomerBalanceAllocationInterval: {
|
|
25297
|
+
readonly OneOff: "one_off";
|
|
25298
|
+
readonly Minute: "minute";
|
|
25299
|
+
readonly Hour: "hour";
|
|
25300
|
+
readonly Day: "day";
|
|
25301
|
+
readonly Week: "week";
|
|
25302
|
+
readonly Month: "month";
|
|
25303
|
+
readonly Quarter: "quarter";
|
|
25304
|
+
readonly SemiAnnual: "semi_annual";
|
|
25305
|
+
readonly Year: "year";
|
|
25306
|
+
};
|
|
25307
|
+
/**
|
|
25308
|
+
* The reset interval of the shared credits being allocated.
|
|
25309
|
+
*/
|
|
25310
|
+
type GetCustomerBalanceAllocationInterval = OpenEnum<typeof GetCustomerBalanceAllocationInterval>;
|
|
25311
|
+
type GetCustomerAllocation = {
|
|
25312
|
+
/**
|
|
25313
|
+
* The public entity ID.
|
|
25314
|
+
*/
|
|
25315
|
+
entityId: string;
|
|
25316
|
+
/**
|
|
25317
|
+
* Requested credits per cycle, before proportional scaling. 0 releases the allocation.
|
|
25318
|
+
*/
|
|
25319
|
+
amount: number;
|
|
25320
|
+
};
|
|
25321
|
+
type GetCustomerBalanceAllocation = {
|
|
25322
|
+
/**
|
|
25323
|
+
* The feature whose shared customer credits are allocated.
|
|
25324
|
+
*/
|
|
25325
|
+
featureId: string;
|
|
25326
|
+
/**
|
|
25327
|
+
* The reset interval of the shared credits being allocated.
|
|
25328
|
+
*/
|
|
25329
|
+
interval: GetCustomerBalanceAllocationInterval;
|
|
25330
|
+
/**
|
|
25331
|
+
* Complete list of entity allocations for this feature. Omitted entities release their shares.
|
|
25332
|
+
*/
|
|
25333
|
+
allocations: Array<GetCustomerAllocation>;
|
|
25334
|
+
};
|
|
25247
25335
|
/**
|
|
25248
25336
|
* The time interval for the purchase limit window.
|
|
25249
25337
|
*/
|
|
@@ -25574,6 +25662,10 @@ type GetCustomerOverageAllowed = {
|
|
|
25574
25662
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
25575
25663
|
*/
|
|
25576
25664
|
type GetCustomerBillingControls = {
|
|
25665
|
+
/**
|
|
25666
|
+
* Customer-level entity allocations of shared credits. Amounts are requested shares before proportional scaling.
|
|
25667
|
+
*/
|
|
25668
|
+
balanceAllocations?: Array<GetCustomerBalanceAllocation> | undefined;
|
|
25577
25669
|
/**
|
|
25578
25670
|
* List of auto top-up configurations per feature.
|
|
25579
25671
|
*/
|
|
@@ -32361,6 +32453,48 @@ declare const ListCustomersEnv: {
|
|
|
32361
32453
|
* The environment this customer was created in.
|
|
32362
32454
|
*/
|
|
32363
32455
|
type ListCustomersEnv = OpenEnum<typeof ListCustomersEnv>;
|
|
32456
|
+
/**
|
|
32457
|
+
* The reset interval of the shared credits being allocated.
|
|
32458
|
+
*/
|
|
32459
|
+
declare const ListCustomersBalanceAllocationInterval: {
|
|
32460
|
+
readonly OneOff: "one_off";
|
|
32461
|
+
readonly Minute: "minute";
|
|
32462
|
+
readonly Hour: "hour";
|
|
32463
|
+
readonly Day: "day";
|
|
32464
|
+
readonly Week: "week";
|
|
32465
|
+
readonly Month: "month";
|
|
32466
|
+
readonly Quarter: "quarter";
|
|
32467
|
+
readonly SemiAnnual: "semi_annual";
|
|
32468
|
+
readonly Year: "year";
|
|
32469
|
+
};
|
|
32470
|
+
/**
|
|
32471
|
+
* The reset interval of the shared credits being allocated.
|
|
32472
|
+
*/
|
|
32473
|
+
type ListCustomersBalanceAllocationInterval = OpenEnum<typeof ListCustomersBalanceAllocationInterval>;
|
|
32474
|
+
type ListCustomersAllocation = {
|
|
32475
|
+
/**
|
|
32476
|
+
* The public entity ID.
|
|
32477
|
+
*/
|
|
32478
|
+
entityId: string;
|
|
32479
|
+
/**
|
|
32480
|
+
* Requested credits per cycle, before proportional scaling. 0 releases the allocation.
|
|
32481
|
+
*/
|
|
32482
|
+
amount: number;
|
|
32483
|
+
};
|
|
32484
|
+
type ListCustomersBalanceAllocation = {
|
|
32485
|
+
/**
|
|
32486
|
+
* The feature whose shared customer credits are allocated.
|
|
32487
|
+
*/
|
|
32488
|
+
featureId: string;
|
|
32489
|
+
/**
|
|
32490
|
+
* The reset interval of the shared credits being allocated.
|
|
32491
|
+
*/
|
|
32492
|
+
interval: ListCustomersBalanceAllocationInterval;
|
|
32493
|
+
/**
|
|
32494
|
+
* Complete list of entity allocations for this feature. Omitted entities release their shares.
|
|
32495
|
+
*/
|
|
32496
|
+
allocations: Array<ListCustomersAllocation>;
|
|
32497
|
+
};
|
|
32364
32498
|
/**
|
|
32365
32499
|
* The time interval for the purchase limit window.
|
|
32366
32500
|
*/
|
|
@@ -32691,6 +32825,10 @@ type ListCustomersOverageAllowed = {
|
|
|
32691
32825
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
32692
32826
|
*/
|
|
32693
32827
|
type ListCustomersBillingControls = {
|
|
32828
|
+
/**
|
|
32829
|
+
* Customer-level entity allocations of shared credits. Amounts are requested shares before proportional scaling.
|
|
32830
|
+
*/
|
|
32831
|
+
balanceAllocations?: Array<ListCustomersBalanceAllocation> | undefined;
|
|
32694
32832
|
/**
|
|
32695
32833
|
* List of auto top-up configurations per feature.
|
|
32696
32834
|
*/
|
|
@@ -54772,6 +54910,48 @@ type UpdateBalanceResponse = {
|
|
|
54772
54910
|
success: boolean;
|
|
54773
54911
|
};
|
|
54774
54912
|
|
|
54913
|
+
/**
|
|
54914
|
+
* The reset interval of the shared credits being allocated.
|
|
54915
|
+
*/
|
|
54916
|
+
declare const BalanceAllocationIntervalRequestBody: {
|
|
54917
|
+
readonly OneOff: "one_off";
|
|
54918
|
+
readonly Minute: "minute";
|
|
54919
|
+
readonly Hour: "hour";
|
|
54920
|
+
readonly Day: "day";
|
|
54921
|
+
readonly Week: "week";
|
|
54922
|
+
readonly Month: "month";
|
|
54923
|
+
readonly Quarter: "quarter";
|
|
54924
|
+
readonly SemiAnnual: "semi_annual";
|
|
54925
|
+
readonly Year: "year";
|
|
54926
|
+
};
|
|
54927
|
+
/**
|
|
54928
|
+
* The reset interval of the shared credits being allocated.
|
|
54929
|
+
*/
|
|
54930
|
+
type BalanceAllocationIntervalRequestBody = ClosedEnum<typeof BalanceAllocationIntervalRequestBody>;
|
|
54931
|
+
type AllocationRequest = {
|
|
54932
|
+
/**
|
|
54933
|
+
* The public entity ID.
|
|
54934
|
+
*/
|
|
54935
|
+
entityId: string;
|
|
54936
|
+
/**
|
|
54937
|
+
* Requested credits per cycle, before proportional scaling. 0 releases the allocation.
|
|
54938
|
+
*/
|
|
54939
|
+
amount: number;
|
|
54940
|
+
};
|
|
54941
|
+
type BalanceAllocationRequest = {
|
|
54942
|
+
/**
|
|
54943
|
+
* The feature whose shared customer credits are allocated.
|
|
54944
|
+
*/
|
|
54945
|
+
featureId: string;
|
|
54946
|
+
/**
|
|
54947
|
+
* The reset interval of the shared credits being allocated.
|
|
54948
|
+
*/
|
|
54949
|
+
interval: BalanceAllocationIntervalRequestBody;
|
|
54950
|
+
/**
|
|
54951
|
+
* Complete list of entity allocations for this feature. Omitted entities release their shares.
|
|
54952
|
+
*/
|
|
54953
|
+
allocations: Array<AllocationRequest>;
|
|
54954
|
+
};
|
|
54775
54955
|
/**
|
|
54776
54956
|
* The time interval for the purchase limit window.
|
|
54777
54957
|
*/
|
|
@@ -55054,6 +55234,10 @@ type UpdateCustomerOverageAllowedRequestBody = {
|
|
|
55054
55234
|
enabled?: boolean | undefined;
|
|
55055
55235
|
};
|
|
55056
55236
|
type UpdateCustomerBillingControlsRequestBody = {
|
|
55237
|
+
/**
|
|
55238
|
+
* Replace all customer-level balance allocations. Omit to keep existing allocations; pass [] to release all. Available only when updating an existing customer.
|
|
55239
|
+
*/
|
|
55240
|
+
balanceAllocations?: Array<BalanceAllocationRequest> | undefined;
|
|
55057
55241
|
/**
|
|
55058
55242
|
* List of auto top-up configurations per feature.
|
|
55059
55243
|
*/
|
|
@@ -55235,6 +55419,48 @@ declare const UpdateCustomerEnv: {
|
|
|
55235
55419
|
* The environment this customer was created in.
|
|
55236
55420
|
*/
|
|
55237
55421
|
type UpdateCustomerEnv = OpenEnum<typeof UpdateCustomerEnv>;
|
|
55422
|
+
/**
|
|
55423
|
+
* The reset interval of the shared credits being allocated.
|
|
55424
|
+
*/
|
|
55425
|
+
declare const UpdateCustomerBalanceAllocationIntervalResponse: {
|
|
55426
|
+
readonly OneOff: "one_off";
|
|
55427
|
+
readonly Minute: "minute";
|
|
55428
|
+
readonly Hour: "hour";
|
|
55429
|
+
readonly Day: "day";
|
|
55430
|
+
readonly Week: "week";
|
|
55431
|
+
readonly Month: "month";
|
|
55432
|
+
readonly Quarter: "quarter";
|
|
55433
|
+
readonly SemiAnnual: "semi_annual";
|
|
55434
|
+
readonly Year: "year";
|
|
55435
|
+
};
|
|
55436
|
+
/**
|
|
55437
|
+
* The reset interval of the shared credits being allocated.
|
|
55438
|
+
*/
|
|
55439
|
+
type UpdateCustomerBalanceAllocationIntervalResponse = OpenEnum<typeof UpdateCustomerBalanceAllocationIntervalResponse>;
|
|
55440
|
+
type UpdateCustomerAllocationResponse = {
|
|
55441
|
+
/**
|
|
55442
|
+
* The public entity ID.
|
|
55443
|
+
*/
|
|
55444
|
+
entityId: string;
|
|
55445
|
+
/**
|
|
55446
|
+
* Requested credits per cycle, before proportional scaling. 0 releases the allocation.
|
|
55447
|
+
*/
|
|
55448
|
+
amount: number;
|
|
55449
|
+
};
|
|
55450
|
+
type UpdateCustomerBalanceAllocationResponse = {
|
|
55451
|
+
/**
|
|
55452
|
+
* The feature whose shared customer credits are allocated.
|
|
55453
|
+
*/
|
|
55454
|
+
featureId: string;
|
|
55455
|
+
/**
|
|
55456
|
+
* The reset interval of the shared credits being allocated.
|
|
55457
|
+
*/
|
|
55458
|
+
interval: UpdateCustomerBalanceAllocationIntervalResponse;
|
|
55459
|
+
/**
|
|
55460
|
+
* Complete list of entity allocations for this feature. Omitted entities release their shares.
|
|
55461
|
+
*/
|
|
55462
|
+
allocations: Array<UpdateCustomerAllocationResponse>;
|
|
55463
|
+
};
|
|
55238
55464
|
/**
|
|
55239
55465
|
* The time interval for the purchase limit window.
|
|
55240
55466
|
*/
|
|
@@ -55565,6 +55791,10 @@ type UpdateCustomerOverageAllowedResponse = {
|
|
|
55565
55791
|
* Billing controls for the customer (auto top-ups, etc.)
|
|
55566
55792
|
*/
|
|
55567
55793
|
type UpdateCustomerBillingControlsResponse = {
|
|
55794
|
+
/**
|
|
55795
|
+
* Customer-level entity allocations of shared credits. Amounts are requested shares before proportional scaling.
|
|
55796
|
+
*/
|
|
55797
|
+
balanceAllocations?: Array<UpdateCustomerBalanceAllocationResponse> | undefined;
|
|
55568
55798
|
/**
|
|
55569
55799
|
* List of auto top-up configurations per feature.
|
|
55570
55800
|
*/
|