autumn-js 1.2.28 → 1.2.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/adapters/express.d.mts +1 -1
- package/dist/backend/adapters/express.d.ts +1 -1
- package/dist/backend/adapters/express.js +2662 -900
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.d.mts +1 -1
- package/dist/backend/adapters/fetch.d.ts +1 -1
- package/dist/backend/adapters/fetch.js +2662 -900
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.d.mts +1 -1
- package/dist/backend/adapters/hono.d.ts +1 -1
- package/dist/backend/adapters/hono.js +2662 -900
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.d.mts +1 -1
- package/dist/backend/adapters/index.d.ts +1 -1
- package/dist/backend/adapters/index.js +2662 -900
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.d.mts +1 -1
- package/dist/backend/adapters/next.d.ts +1 -1
- package/dist/backend/adapters/next.js +2662 -900
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{authTypes-CxFcWXh3.d.mts → authTypes-Bx2brfr_.d.mts} +37 -6
- package/dist/backend/{authTypes-CxFcWXh3.d.ts → authTypes-Bx2brfr_.d.ts} +37 -6
- package/dist/backend/{chunk-PG3VMMBU.mjs → chunk-43AWNK4F.mjs} +1 -1
- package/dist/backend/{chunk-WK4VK7MP.mjs → chunk-4UL3TTQH.mjs} +1 -1
- package/dist/backend/{chunk-RBV55GF7.mjs → chunk-L4H3DDRD.mjs} +7 -7
- package/dist/backend/{chunk-66OVIMBS.mjs → chunk-NTY5YJIP.mjs} +5 -5
- package/dist/backend/{chunk-GTZJYVV6.mjs → chunk-PA2SVXPZ.mjs} +2497 -858
- package/dist/backend/{chunk-JNHJR2RN.mjs → chunk-Q3C6NI3F.mjs} +1 -1
- package/dist/backend/{chunk-N5DL6VA7.mjs → chunk-XCPTPX5N.mjs} +1 -1
- package/dist/backend/{chunk-W6NPZLA5.mjs → chunk-ZMYKADPC.mjs} +165 -42
- package/dist/backend/core/handlers/coreHandler.d.mts +2 -2
- package/dist/backend/core/handlers/coreHandler.d.ts +2 -2
- package/dist/backend/core/handlers/coreHandler.js +2662 -900
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- package/dist/backend/core/handlers/executeRoute.d.mts +2 -2
- package/dist/backend/core/handlers/executeRoute.d.ts +2 -2
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +2662 -900
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- package/dist/backend/core/handlers/index.d.mts +2 -2
- package/dist/backend/core/handlers/index.d.ts +2 -2
- package/dist/backend/core/handlers/index.js +2662 -900
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
- package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
- package/dist/backend/core/index.d.mts +2 -2
- package/dist/backend/core/index.d.ts +2 -2
- package/dist/backend/core/index.js +2662 -900
- package/dist/backend/core/index.mjs +10 -10
- package/dist/backend/core/routes/index.d.mts +2 -2
- package/dist/backend/core/routes/index.d.ts +2 -2
- package/dist/backend/core/routes/index.js +165 -42
- package/dist/backend/core/routes/index.mjs +2 -2
- package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
- package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.js +165 -42
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- package/dist/backend/core/types/authTypes.d.mts +1 -1
- package/dist/backend/core/types/authTypes.d.ts +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +2 -2
- package/dist/backend/core/types/handlerTypes.d.ts +2 -2
- package/dist/backend/core/types/index.d.mts +2 -2
- package/dist/backend/core/types/index.d.ts +2 -2
- package/dist/backend/core/types/routeTypes.d.mts +2 -2
- package/dist/backend/core/types/routeTypes.d.ts +2 -2
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +4 -4
- package/dist/backend/index.d.ts +4 -4
- package/dist/backend/index.js +2662 -900
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-Db2ZFQC4.d.ts → routeTypes-CHBZpc7P.d.ts} +1880 -375
- package/dist/backend/{routeTypes-924R85Bn.d.mts → routeTypes-Dyixv9y9.d.mts} +1880 -375
- package/dist/better-auth/{chunk-NKH2QR2X.mjs → chunk-EBJECIYH.mjs} +165 -42
- package/dist/better-auth/{chunk-ONM42KFR.mjs → chunk-JN6NZZNR.mjs} +1 -1
- package/dist/better-auth/{chunk-4ZDXHHF4.mjs → chunk-PUZS3JJ5.mjs} +2498 -859
- package/dist/better-auth/index.js +2725 -963
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/types.d.mts +36 -5
- package/dist/better-auth/types.d.ts +36 -5
- package/dist/better-auth/utils/createAutumnEndpoint.js +165 -42
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +2662 -900
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +2725 -963
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +3 -3
- package/dist/react/AutumnContext.d.ts +3 -3
- package/dist/react/AutumnProvider.d.mts +2 -2
- package/dist/react/AutumnProvider.d.ts +2 -2
- package/dist/react/AutumnProvider.js +1 -1
- package/dist/react/AutumnProvider.mjs +2 -2
- package/dist/react/{chunk-P23DM4IS.mjs → chunk-3CXPC6AS.mjs} +1 -1
- package/dist/react/{chunk-HSQUB3BZ.mjs → chunk-4TB3RHNC.mjs} +1 -1
- package/dist/react/{chunk-KB72KQKN.mjs → chunk-C4DMB2FQ.mjs} +1 -1
- package/dist/react/{chunk-26CKSAPZ.mjs → chunk-N2L457YE.mjs} +1 -1
- package/dist/react/{chunk-XJZH5NMZ.mjs → chunk-P23GII4V.mjs} +8 -8
- package/dist/react/{chunk-CHU7CIWP.mjs → chunk-PVCGOFQF.mjs} +1 -1
- package/dist/react/{chunk-ZGPE4R6H.mjs → chunk-Q3SFYOOM.mjs} +2 -2
- package/dist/react/{chunk-OXQG65ZT.mjs → chunk-X7BHGQHX.mjs} +1 -1
- package/dist/react/{chunk-G7FTQLT7.mjs → chunk-ZLGDHFMS.mjs} +1 -1
- package/dist/react/client/AutumnClient.d.mts +3 -3
- package/dist/react/client/AutumnClient.d.ts +3 -3
- package/dist/react/client/IAutumnClient.d.mts +10 -4
- package/dist/react/client/IAutumnClient.d.ts +10 -4
- package/dist/react/client/index.d.mts +3 -3
- package/dist/react/client/index.d.ts +3 -3
- package/dist/react/{customer-DPMyc3yN.d.mts → customer-BbU458Gc.d.ts} +72 -12
- package/dist/react/{customer-Dr6WZsA2.d.ts → customer-DjiQ6w1e.d.mts} +72 -12
- package/dist/react/hooks/index.d.mts +3 -3
- package/dist/react/hooks/index.d.ts +3 -3
- package/dist/react/hooks/index.js +7 -7
- package/dist/react/hooks/index.mjs +8 -8
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.js +1 -1
- package/dist/react/hooks/internal/useCustomerActions.mjs +2 -2
- package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
- package/dist/react/hooks/useAggregateEvents.js +7 -7
- package/dist/react/hooks/useAggregateEvents.mjs +2 -2
- package/dist/react/hooks/useCustomer.d.mts +3 -3
- package/dist/react/hooks/useCustomer.d.ts +3 -3
- package/dist/react/hooks/useCustomer.js +7 -7
- package/dist/react/hooks/useCustomer.mjs +3 -3
- package/dist/react/hooks/useEntity.d.mts +2 -2
- package/dist/react/hooks/useEntity.d.ts +2 -2
- package/dist/react/hooks/useEntity.js +7 -7
- package/dist/react/hooks/useEntity.mjs +2 -2
- package/dist/react/hooks/useListEvents.d.mts +2 -2
- package/dist/react/hooks/useListEvents.d.ts +2 -2
- package/dist/react/hooks/useListEvents.js +7 -7
- package/dist/react/hooks/useListEvents.mjs +2 -2
- package/dist/react/hooks/useListPlans.d.mts +2 -2
- package/dist/react/hooks/useListPlans.d.ts +2 -2
- package/dist/react/hooks/useListPlans.js +7 -7
- package/dist/react/hooks/useListPlans.mjs +2 -2
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/hooks/useReferrals.js +7 -7
- package/dist/react/hooks/useReferrals.mjs +2 -2
- package/dist/react/index.d.mts +3 -4
- package/dist/react/index.d.ts +3 -4
- package/dist/react/index.js +7 -7
- package/dist/react/index.mjs +9 -9
- package/dist/react/{params-CeTb8jcT.d.mts → params-DiohUULB.d.ts} +355 -101
- package/dist/react/{params-Dl_h1rsu.d.ts → params-LJh-duAf.d.mts} +355 -101
- package/dist/react/{plan-CRa-NBw0.d.mts → plan-2RG0aPsm.d.mts} +42 -6
- package/dist/react/{plan-CRa-NBw0.d.ts → plan-2RG0aPsm.d.ts} +42 -6
- package/dist/sdk/index.d.mts +2627 -563
- package/dist/sdk/index.d.ts +2627 -563
- package/dist/sdk/index.js +3013 -558
- package/dist/sdk/index.mjs +2664 -441
- package/package.json +127 -142
- package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ClosedEnum, O as OpenEnum,
|
|
1
|
+
import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-2RG0aPsm.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Time range to aggregate events for. Either range or custom_range must be provided
|
|
@@ -22,6 +22,7 @@ type Range = ClosedEnum<typeof Range>;
|
|
|
22
22
|
declare const BinSize: {
|
|
23
23
|
readonly Day: "day";
|
|
24
24
|
readonly Hour: "hour";
|
|
25
|
+
readonly Week: "week";
|
|
25
26
|
readonly Month: "month";
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
@@ -267,9 +268,9 @@ type AttachItemPrice = {
|
|
|
267
268
|
*/
|
|
268
269
|
billingMethod: AttachItemBillingMethod;
|
|
269
270
|
/**
|
|
270
|
-
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total.
|
|
271
|
+
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total. Null for no limit.
|
|
271
272
|
*/
|
|
272
|
-
maxPurchase?: number | undefined;
|
|
273
|
+
maxPurchase?: number | null | undefined;
|
|
273
274
|
};
|
|
274
275
|
/**
|
|
275
276
|
* Billing behavior when quantity increases mid-cycle.
|
|
@@ -473,9 +474,9 @@ type AttachAddItemPrice = {
|
|
|
473
474
|
*/
|
|
474
475
|
billingMethod: AttachAddItemBillingMethod;
|
|
475
476
|
/**
|
|
476
|
-
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total.
|
|
477
|
+
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total. Null for no limit.
|
|
477
478
|
*/
|
|
478
|
-
maxPurchase?: number | undefined;
|
|
479
|
+
maxPurchase?: number | null | undefined;
|
|
479
480
|
};
|
|
480
481
|
/**
|
|
481
482
|
* Billing behavior when quantity increases mid-cycle.
|
|
@@ -593,21 +594,27 @@ declare const AttachRemoveItemBillingMethod: {
|
|
|
593
594
|
* Match items with this billing method (prepaid or usage_based).
|
|
594
595
|
*/
|
|
595
596
|
type AttachRemoveItemBillingMethod = ClosedEnum<typeof AttachRemoveItemBillingMethod>;
|
|
596
|
-
|
|
597
|
-
* Match items with this interval.
|
|
598
|
-
*/
|
|
599
|
-
declare const AttachRemoveItemInterval: {
|
|
597
|
+
declare const AttachIntervalRemoveItemEnum2: {
|
|
600
598
|
readonly OneOff: "one_off";
|
|
599
|
+
readonly Minute: "minute";
|
|
600
|
+
readonly Hour: "hour";
|
|
601
|
+
readonly Day: "day";
|
|
601
602
|
readonly Week: "week";
|
|
602
603
|
readonly Month: "month";
|
|
603
604
|
readonly Quarter: "quarter";
|
|
604
605
|
readonly SemiAnnual: "semi_annual";
|
|
605
606
|
readonly Year: "year";
|
|
606
607
|
};
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
608
|
+
type AttachIntervalRemoveItemEnum2 = ClosedEnum<typeof AttachIntervalRemoveItemEnum2>;
|
|
609
|
+
declare const AttachIntervalRemoveItemEnum1: {
|
|
610
|
+
readonly OneOff: "one_off";
|
|
611
|
+
readonly Week: "week";
|
|
612
|
+
readonly Month: "month";
|
|
613
|
+
readonly Quarter: "quarter";
|
|
614
|
+
readonly SemiAnnual: "semi_annual";
|
|
615
|
+
readonly Year: "year";
|
|
616
|
+
};
|
|
617
|
+
type AttachIntervalRemoveItemEnum1 = ClosedEnum<typeof AttachIntervalRemoveItemEnum1>;
|
|
611
618
|
/**
|
|
612
619
|
* Filter for matching plan items. All provided fields must match (AND).
|
|
613
620
|
*/
|
|
@@ -621,9 +628,13 @@ type AttachPlanItemFilter = {
|
|
|
621
628
|
*/
|
|
622
629
|
billingMethod?: AttachRemoveItemBillingMethod | undefined;
|
|
623
630
|
/**
|
|
624
|
-
* Match items with this interval.
|
|
631
|
+
* Match items with this interval. Accepts either a BillingInterval (price-side) or a ResetInterval (reset-side, includes day/hour/minute) so price-less items keyed by reset.interval can be disambiguated.
|
|
632
|
+
*/
|
|
633
|
+
interval?: AttachIntervalRemoveItemEnum1 | AttachIntervalRemoveItemEnum2 | undefined;
|
|
634
|
+
/**
|
|
635
|
+
* Match items with this interval_count. Disambiguates between items that share an interval but differ in count.
|
|
625
636
|
*/
|
|
626
|
-
|
|
637
|
+
intervalCount?: number | undefined;
|
|
627
638
|
};
|
|
628
639
|
/**
|
|
629
640
|
* Unit of time for the trial ('day', 'month', 'year').
|
|
@@ -678,7 +689,7 @@ type AttachCustomize = {
|
|
|
678
689
|
*/
|
|
679
690
|
price?: AttachBasePrice | null | undefined;
|
|
680
691
|
/**
|
|
681
|
-
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / update_items.
|
|
692
|
+
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / deprecated update_items.
|
|
682
693
|
*/
|
|
683
694
|
items?: Array<AttachItemPlanItem> | undefined;
|
|
684
695
|
/**
|
|
@@ -1134,9 +1145,9 @@ type BillingUpdateItemPrice = {
|
|
|
1134
1145
|
*/
|
|
1135
1146
|
billingMethod: BillingUpdateItemBillingMethod;
|
|
1136
1147
|
/**
|
|
1137
|
-
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total.
|
|
1148
|
+
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total. Null for no limit.
|
|
1138
1149
|
*/
|
|
1139
|
-
maxPurchase?: number | undefined;
|
|
1150
|
+
maxPurchase?: number | null | undefined;
|
|
1140
1151
|
};
|
|
1141
1152
|
/**
|
|
1142
1153
|
* Billing behavior when quantity increases mid-cycle.
|
|
@@ -1340,9 +1351,9 @@ type BillingUpdateAddItemPrice = {
|
|
|
1340
1351
|
*/
|
|
1341
1352
|
billingMethod: BillingUpdateAddItemBillingMethod;
|
|
1342
1353
|
/**
|
|
1343
|
-
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total.
|
|
1354
|
+
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total. Null for no limit.
|
|
1344
1355
|
*/
|
|
1345
|
-
maxPurchase?: number | undefined;
|
|
1356
|
+
maxPurchase?: number | null | undefined;
|
|
1346
1357
|
};
|
|
1347
1358
|
/**
|
|
1348
1359
|
* Billing behavior when quantity increases mid-cycle.
|
|
@@ -1460,21 +1471,27 @@ declare const BillingUpdateRemoveItemBillingMethod: {
|
|
|
1460
1471
|
* Match items with this billing method (prepaid or usage_based).
|
|
1461
1472
|
*/
|
|
1462
1473
|
type BillingUpdateRemoveItemBillingMethod = ClosedEnum<typeof BillingUpdateRemoveItemBillingMethod>;
|
|
1463
|
-
|
|
1464
|
-
* Match items with this interval.
|
|
1465
|
-
*/
|
|
1466
|
-
declare const BillingUpdateRemoveItemInterval: {
|
|
1474
|
+
declare const BillingUpdateIntervalRemoveItemEnum2: {
|
|
1467
1475
|
readonly OneOff: "one_off";
|
|
1476
|
+
readonly Minute: "minute";
|
|
1477
|
+
readonly Hour: "hour";
|
|
1478
|
+
readonly Day: "day";
|
|
1468
1479
|
readonly Week: "week";
|
|
1469
1480
|
readonly Month: "month";
|
|
1470
1481
|
readonly Quarter: "quarter";
|
|
1471
1482
|
readonly SemiAnnual: "semi_annual";
|
|
1472
1483
|
readonly Year: "year";
|
|
1473
1484
|
};
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1485
|
+
type BillingUpdateIntervalRemoveItemEnum2 = ClosedEnum<typeof BillingUpdateIntervalRemoveItemEnum2>;
|
|
1486
|
+
declare const BillingUpdateIntervalRemoveItemEnum1: {
|
|
1487
|
+
readonly OneOff: "one_off";
|
|
1488
|
+
readonly Week: "week";
|
|
1489
|
+
readonly Month: "month";
|
|
1490
|
+
readonly Quarter: "quarter";
|
|
1491
|
+
readonly SemiAnnual: "semi_annual";
|
|
1492
|
+
readonly Year: "year";
|
|
1493
|
+
};
|
|
1494
|
+
type BillingUpdateIntervalRemoveItemEnum1 = ClosedEnum<typeof BillingUpdateIntervalRemoveItemEnum1>;
|
|
1478
1495
|
/**
|
|
1479
1496
|
* Filter for matching plan items. All provided fields must match (AND).
|
|
1480
1497
|
*/
|
|
@@ -1488,9 +1505,13 @@ type BillingUpdatePlanItemFilter = {
|
|
|
1488
1505
|
*/
|
|
1489
1506
|
billingMethod?: BillingUpdateRemoveItemBillingMethod | undefined;
|
|
1490
1507
|
/**
|
|
1491
|
-
* Match items with this interval.
|
|
1508
|
+
* Match items with this interval. Accepts either a BillingInterval (price-side) or a ResetInterval (reset-side, includes day/hour/minute) so price-less items keyed by reset.interval can be disambiguated.
|
|
1492
1509
|
*/
|
|
1493
|
-
interval?:
|
|
1510
|
+
interval?: BillingUpdateIntervalRemoveItemEnum1 | BillingUpdateIntervalRemoveItemEnum2 | undefined;
|
|
1511
|
+
/**
|
|
1512
|
+
* Match items with this interval_count. Disambiguates between items that share an interval but differ in count.
|
|
1513
|
+
*/
|
|
1514
|
+
intervalCount?: number | undefined;
|
|
1494
1515
|
};
|
|
1495
1516
|
/**
|
|
1496
1517
|
* Unit of time for the trial ('day', 'month', 'year').
|
|
@@ -1545,7 +1566,7 @@ type BillingUpdateCustomize = {
|
|
|
1545
1566
|
*/
|
|
1546
1567
|
price?: BillingUpdateBasePrice | null | undefined;
|
|
1547
1568
|
/**
|
|
1548
|
-
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / update_items.
|
|
1569
|
+
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / deprecated update_items.
|
|
1549
1570
|
*/
|
|
1550
1571
|
items?: Array<BillingUpdateItemPlanItem> | undefined;
|
|
1551
1572
|
/**
|
|
@@ -1835,15 +1856,16 @@ type CheckParams = {
|
|
|
1835
1856
|
withPreview?: boolean | undefined;
|
|
1836
1857
|
};
|
|
1837
1858
|
/**
|
|
1838
|
-
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools.
|
|
1859
|
+
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools, 'ai_credit_system' for model-based token pricing.
|
|
1839
1860
|
*/
|
|
1840
1861
|
declare const FlagType2: {
|
|
1841
1862
|
readonly Boolean: "boolean";
|
|
1842
1863
|
readonly Metered: "metered";
|
|
1843
1864
|
readonly CreditSystem: "credit_system";
|
|
1865
|
+
readonly AiCreditSystem: "ai_credit_system";
|
|
1844
1866
|
};
|
|
1845
1867
|
/**
|
|
1846
|
-
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools.
|
|
1868
|
+
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools, 'ai_credit_system' for model-based token pricing.
|
|
1847
1869
|
*/
|
|
1848
1870
|
type FlagType2 = OpenEnum<typeof FlagType2>;
|
|
1849
1871
|
type CheckCreditSchema2 = {
|
|
@@ -1856,6 +1878,14 @@ type CheckCreditSchema2 = {
|
|
|
1856
1878
|
*/
|
|
1857
1879
|
creditCost: number;
|
|
1858
1880
|
};
|
|
1881
|
+
type CheckModelMarkups2 = {
|
|
1882
|
+
markup?: number | undefined;
|
|
1883
|
+
inputCost?: number | undefined;
|
|
1884
|
+
outputCost?: number | undefined;
|
|
1885
|
+
};
|
|
1886
|
+
type CheckProviderMarkups2 = {
|
|
1887
|
+
markup: number;
|
|
1888
|
+
};
|
|
1859
1889
|
/**
|
|
1860
1890
|
* Display names for the feature in billing UI and customer-facing components.
|
|
1861
1891
|
*/
|
|
@@ -1882,7 +1912,7 @@ type CheckFeature2 = {
|
|
|
1882
1912
|
*/
|
|
1883
1913
|
name: string;
|
|
1884
1914
|
/**
|
|
1885
|
-
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools.
|
|
1915
|
+
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools, 'ai_credit_system' for model-based token pricing.
|
|
1886
1916
|
*/
|
|
1887
1917
|
type: FlagType2;
|
|
1888
1918
|
/**
|
|
@@ -1897,6 +1927,22 @@ type CheckFeature2 = {
|
|
|
1897
1927
|
* For credit_system features: maps metered features to their credit costs.
|
|
1898
1928
|
*/
|
|
1899
1929
|
creditSchema?: Array<CheckCreditSchema2> | undefined;
|
|
1930
|
+
/**
|
|
1931
|
+
* Per-model markup overrides for AI credit systems.
|
|
1932
|
+
*/
|
|
1933
|
+
modelMarkups?: {
|
|
1934
|
+
[k: string]: CheckModelMarkups2;
|
|
1935
|
+
} | null | undefined;
|
|
1936
|
+
/**
|
|
1937
|
+
* Default percentage markup for AI credit systems. Use -100 to make usage free.
|
|
1938
|
+
*/
|
|
1939
|
+
defaultMarkup?: number | undefined;
|
|
1940
|
+
/**
|
|
1941
|
+
* Per-provider default markup percentages for AI credit systems.
|
|
1942
|
+
*/
|
|
1943
|
+
providerMarkups?: {
|
|
1944
|
+
[k: string]: CheckProviderMarkups2;
|
|
1945
|
+
} | null | undefined;
|
|
1900
1946
|
/**
|
|
1901
1947
|
* Display names for the feature in billing UI and customer-facing components.
|
|
1902
1948
|
*/
|
|
@@ -2300,15 +2346,16 @@ type CheckResponseBody2 = {
|
|
|
2300
2346
|
preview?: Preview2 | undefined;
|
|
2301
2347
|
};
|
|
2302
2348
|
/**
|
|
2303
|
-
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools.
|
|
2349
|
+
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools, 'ai_credit_system' for model-based token pricing.
|
|
2304
2350
|
*/
|
|
2305
2351
|
declare const FlagType1: {
|
|
2306
2352
|
readonly Boolean: "boolean";
|
|
2307
2353
|
readonly Metered: "metered";
|
|
2308
2354
|
readonly CreditSystem: "credit_system";
|
|
2355
|
+
readonly AiCreditSystem: "ai_credit_system";
|
|
2309
2356
|
};
|
|
2310
2357
|
/**
|
|
2311
|
-
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools.
|
|
2358
|
+
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools, 'ai_credit_system' for model-based token pricing.
|
|
2312
2359
|
*/
|
|
2313
2360
|
type FlagType1 = OpenEnum<typeof FlagType1>;
|
|
2314
2361
|
type CheckCreditSchema1 = {
|
|
@@ -2321,6 +2368,14 @@ type CheckCreditSchema1 = {
|
|
|
2321
2368
|
*/
|
|
2322
2369
|
creditCost: number;
|
|
2323
2370
|
};
|
|
2371
|
+
type CheckModelMarkups1 = {
|
|
2372
|
+
markup?: number | undefined;
|
|
2373
|
+
inputCost?: number | undefined;
|
|
2374
|
+
outputCost?: number | undefined;
|
|
2375
|
+
};
|
|
2376
|
+
type CheckProviderMarkups1 = {
|
|
2377
|
+
markup: number;
|
|
2378
|
+
};
|
|
2324
2379
|
/**
|
|
2325
2380
|
* Display names for the feature in billing UI and customer-facing components.
|
|
2326
2381
|
*/
|
|
@@ -2347,7 +2402,7 @@ type CheckFeature1 = {
|
|
|
2347
2402
|
*/
|
|
2348
2403
|
name: string;
|
|
2349
2404
|
/**
|
|
2350
|
-
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools.
|
|
2405
|
+
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools, 'ai_credit_system' for model-based token pricing.
|
|
2351
2406
|
*/
|
|
2352
2407
|
type: FlagType1;
|
|
2353
2408
|
/**
|
|
@@ -2362,6 +2417,22 @@ type CheckFeature1 = {
|
|
|
2362
2417
|
* For credit_system features: maps metered features to their credit costs.
|
|
2363
2418
|
*/
|
|
2364
2419
|
creditSchema?: Array<CheckCreditSchema1> | undefined;
|
|
2420
|
+
/**
|
|
2421
|
+
* Per-model markup overrides for AI credit systems.
|
|
2422
|
+
*/
|
|
2423
|
+
modelMarkups?: {
|
|
2424
|
+
[k: string]: CheckModelMarkups1;
|
|
2425
|
+
} | null | undefined;
|
|
2426
|
+
/**
|
|
2427
|
+
* Default percentage markup for AI credit systems. Use -100 to make usage free.
|
|
2428
|
+
*/
|
|
2429
|
+
defaultMarkup?: number | undefined;
|
|
2430
|
+
/**
|
|
2431
|
+
* Per-provider default markup percentages for AI credit systems.
|
|
2432
|
+
*/
|
|
2433
|
+
providerMarkups?: {
|
|
2434
|
+
[k: string]: CheckProviderMarkups1;
|
|
2435
|
+
} | null | undefined;
|
|
2365
2436
|
/**
|
|
2366
2437
|
* Display names for the feature in billing UI and customer-facing components.
|
|
2367
2438
|
*/
|
|
@@ -2769,7 +2840,7 @@ type CheckResponse = CheckResponseBody1 | CheckResponseBody2;
|
|
|
2769
2840
|
/**
|
|
2770
2841
|
* The time interval for the purchase limit window.
|
|
2771
2842
|
*/
|
|
2772
|
-
declare const
|
|
2843
|
+
declare const CustomerDataPurchaseLimitInterval: {
|
|
2773
2844
|
readonly Hour: "hour";
|
|
2774
2845
|
readonly Day: "day";
|
|
2775
2846
|
readonly Week: "week";
|
|
@@ -2778,7 +2849,7 @@ declare const CustomerDataInterval: {
|
|
|
2778
2849
|
/**
|
|
2779
2850
|
* The time interval for the purchase limit window.
|
|
2780
2851
|
*/
|
|
2781
|
-
type
|
|
2852
|
+
type CustomerDataPurchaseLimitInterval = ClosedEnum<typeof CustomerDataPurchaseLimitInterval>;
|
|
2782
2853
|
/**
|
|
2783
2854
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
2784
2855
|
*/
|
|
@@ -2786,7 +2857,7 @@ type CustomerDataPurchaseLimit = {
|
|
|
2786
2857
|
/**
|
|
2787
2858
|
* The time interval for the purchase limit window.
|
|
2788
2859
|
*/
|
|
2789
|
-
interval:
|
|
2860
|
+
interval: CustomerDataPurchaseLimitInterval;
|
|
2790
2861
|
/**
|
|
2791
2862
|
* Number of intervals in the purchase limit window.
|
|
2792
2863
|
*/
|
|
@@ -2828,7 +2899,7 @@ type CustomerDataSpendLimit = {
|
|
|
2828
2899
|
*/
|
|
2829
2900
|
featureId?: string | undefined;
|
|
2830
2901
|
/**
|
|
2831
|
-
* Whether
|
|
2902
|
+
* Whether the overage spend limit is enabled.
|
|
2832
2903
|
*/
|
|
2833
2904
|
enabled?: boolean | undefined;
|
|
2834
2905
|
/**
|
|
@@ -2836,6 +2907,33 @@ type CustomerDataSpendLimit = {
|
|
|
2836
2907
|
*/
|
|
2837
2908
|
overageLimit?: number | undefined;
|
|
2838
2909
|
};
|
|
2910
|
+
/**
|
|
2911
|
+
* Interval for the cap, aligned to the customer's billing cycle.
|
|
2912
|
+
*/
|
|
2913
|
+
declare const CustomerDataUsageLimitInterval: {
|
|
2914
|
+
readonly Day: "day";
|
|
2915
|
+
readonly Week: "week";
|
|
2916
|
+
readonly Month: "month";
|
|
2917
|
+
readonly Year: "year";
|
|
2918
|
+
};
|
|
2919
|
+
/**
|
|
2920
|
+
* Interval for the cap, aligned to the customer's billing cycle.
|
|
2921
|
+
*/
|
|
2922
|
+
type CustomerDataUsageLimitInterval = ClosedEnum<typeof CustomerDataUsageLimitInterval>;
|
|
2923
|
+
type CustomerDataUsageLimit = {
|
|
2924
|
+
/**
|
|
2925
|
+
* The feature this usage limit applies to.
|
|
2926
|
+
*/
|
|
2927
|
+
featureId: string;
|
|
2928
|
+
/**
|
|
2929
|
+
* Maximum units allowed per interval.
|
|
2930
|
+
*/
|
|
2931
|
+
limit: number;
|
|
2932
|
+
/**
|
|
2933
|
+
* Interval for the cap, aligned to the customer's billing cycle.
|
|
2934
|
+
*/
|
|
2935
|
+
interval: CustomerDataUsageLimitInterval;
|
|
2936
|
+
};
|
|
2839
2937
|
/**
|
|
2840
2938
|
* Whether the threshold is an absolute count or a percentage of the usage allowance or remaining balance.
|
|
2841
2939
|
*/
|
|
@@ -2890,9 +2988,13 @@ type CustomerDataBillingControls = {
|
|
|
2890
2988
|
*/
|
|
2891
2989
|
autoTopups?: Array<CustomerDataAutoTopup> | undefined;
|
|
2892
2990
|
/**
|
|
2893
|
-
* List of overage spend limits per feature.
|
|
2991
|
+
* List of overage spend limits per feature (caps overage spend).
|
|
2894
2992
|
*/
|
|
2895
2993
|
spendLimits?: Array<CustomerDataSpendLimit> | undefined;
|
|
2994
|
+
/**
|
|
2995
|
+
* List of hard usage caps per feature (max units per interval).
|
|
2996
|
+
*/
|
|
2997
|
+
usageLimits?: Array<CustomerDataUsageLimit> | undefined;
|
|
2896
2998
|
/**
|
|
2897
2999
|
* List of usage alert configurations per feature.
|
|
2898
3000
|
*/
|
|
@@ -3124,15 +3226,16 @@ type GetEntityPurchase = {
|
|
|
3124
3226
|
scope?: GetEntityPurchaseScope | undefined;
|
|
3125
3227
|
};
|
|
3126
3228
|
/**
|
|
3127
|
-
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools.
|
|
3229
|
+
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools, 'ai_credit_system' for model-based token pricing.
|
|
3128
3230
|
*/
|
|
3129
3231
|
declare const GetEntityType: {
|
|
3130
3232
|
readonly Boolean: "boolean";
|
|
3131
3233
|
readonly Metered: "metered";
|
|
3132
3234
|
readonly CreditSystem: "credit_system";
|
|
3235
|
+
readonly AiCreditSystem: "ai_credit_system";
|
|
3133
3236
|
};
|
|
3134
3237
|
/**
|
|
3135
|
-
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools.
|
|
3238
|
+
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools, 'ai_credit_system' for model-based token pricing.
|
|
3136
3239
|
*/
|
|
3137
3240
|
type GetEntityType = OpenEnum<typeof GetEntityType>;
|
|
3138
3241
|
type GetEntityCreditSchema = {
|
|
@@ -3145,6 +3248,14 @@ type GetEntityCreditSchema = {
|
|
|
3145
3248
|
*/
|
|
3146
3249
|
creditCost: number;
|
|
3147
3250
|
};
|
|
3251
|
+
type GetEntityModelMarkups = {
|
|
3252
|
+
markup?: number | undefined;
|
|
3253
|
+
inputCost?: number | undefined;
|
|
3254
|
+
outputCost?: number | undefined;
|
|
3255
|
+
};
|
|
3256
|
+
type GetEntityProviderMarkups = {
|
|
3257
|
+
markup: number;
|
|
3258
|
+
};
|
|
3148
3259
|
/**
|
|
3149
3260
|
* Display names for the feature in billing UI and customer-facing components.
|
|
3150
3261
|
*/
|
|
@@ -3171,7 +3282,7 @@ type GetEntityFeature = {
|
|
|
3171
3282
|
*/
|
|
3172
3283
|
name: string;
|
|
3173
3284
|
/**
|
|
3174
|
-
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools.
|
|
3285
|
+
* Feature type: 'boolean' for on/off access, 'metered' for usage-tracked features, 'credit_system' for unified credit pools, 'ai_credit_system' for model-based token pricing.
|
|
3175
3286
|
*/
|
|
3176
3287
|
type: GetEntityType;
|
|
3177
3288
|
/**
|
|
@@ -3186,6 +3297,22 @@ type GetEntityFeature = {
|
|
|
3186
3297
|
* For credit_system features: maps metered features to their credit costs.
|
|
3187
3298
|
*/
|
|
3188
3299
|
creditSchema?: Array<GetEntityCreditSchema> | undefined;
|
|
3300
|
+
/**
|
|
3301
|
+
* Per-model markup overrides for AI credit systems.
|
|
3302
|
+
*/
|
|
3303
|
+
modelMarkups?: {
|
|
3304
|
+
[k: string]: GetEntityModelMarkups;
|
|
3305
|
+
} | null | undefined;
|
|
3306
|
+
/**
|
|
3307
|
+
* Default percentage markup for AI credit systems. Use -100 to make usage free.
|
|
3308
|
+
*/
|
|
3309
|
+
defaultMarkup?: number | undefined;
|
|
3310
|
+
/**
|
|
3311
|
+
* Per-provider default markup percentages for AI credit systems.
|
|
3312
|
+
*/
|
|
3313
|
+
providerMarkups?: {
|
|
3314
|
+
[k: string]: GetEntityProviderMarkups;
|
|
3315
|
+
} | null | undefined;
|
|
3189
3316
|
/**
|
|
3190
3317
|
* Display names for the feature in billing UI and customer-facing components.
|
|
3191
3318
|
*/
|
|
@@ -3223,7 +3350,7 @@ type GetEntitySpendLimit = {
|
|
|
3223
3350
|
*/
|
|
3224
3351
|
featureId?: string | undefined;
|
|
3225
3352
|
/**
|
|
3226
|
-
* Whether
|
|
3353
|
+
* Whether the overage spend limit is enabled.
|
|
3227
3354
|
*/
|
|
3228
3355
|
enabled: boolean;
|
|
3229
3356
|
/**
|
|
@@ -3231,6 +3358,37 @@ type GetEntitySpendLimit = {
|
|
|
3231
3358
|
*/
|
|
3232
3359
|
overageLimit?: number | undefined;
|
|
3233
3360
|
};
|
|
3361
|
+
/**
|
|
3362
|
+
* Interval for the cap, aligned to the customer's billing cycle.
|
|
3363
|
+
*/
|
|
3364
|
+
declare const GetEntityInterval: {
|
|
3365
|
+
readonly Day: "day";
|
|
3366
|
+
readonly Week: "week";
|
|
3367
|
+
readonly Month: "month";
|
|
3368
|
+
readonly Year: "year";
|
|
3369
|
+
};
|
|
3370
|
+
/**
|
|
3371
|
+
* Interval for the cap, aligned to the customer's billing cycle.
|
|
3372
|
+
*/
|
|
3373
|
+
type GetEntityInterval = OpenEnum<typeof GetEntityInterval>;
|
|
3374
|
+
type GetEntityUsageLimit = {
|
|
3375
|
+
/**
|
|
3376
|
+
* The feature this usage limit applies to.
|
|
3377
|
+
*/
|
|
3378
|
+
featureId: string;
|
|
3379
|
+
/**
|
|
3380
|
+
* Maximum units allowed per interval.
|
|
3381
|
+
*/
|
|
3382
|
+
limit: number;
|
|
3383
|
+
/**
|
|
3384
|
+
* Interval for the cap, aligned to the customer's billing cycle.
|
|
3385
|
+
*/
|
|
3386
|
+
interval: GetEntityInterval;
|
|
3387
|
+
/**
|
|
3388
|
+
* Current usage already consumed in the active interval. Response-only; not stored on billing controls.
|
|
3389
|
+
*/
|
|
3390
|
+
usage?: number | undefined;
|
|
3391
|
+
};
|
|
3234
3392
|
/**
|
|
3235
3393
|
* Whether the threshold is an absolute count or a percentage of the usage allowance or remaining balance.
|
|
3236
3394
|
*/
|
|
@@ -3281,9 +3439,13 @@ type GetEntityOverageAllowed = {
|
|
|
3281
3439
|
*/
|
|
3282
3440
|
type GetEntityBillingControls = {
|
|
3283
3441
|
/**
|
|
3284
|
-
* List of
|
|
3442
|
+
* List of spend limits per feature. Each entry caps overage (overage_limit) and/or per-interval usage (usage_limit).
|
|
3285
3443
|
*/
|
|
3286
3444
|
spendLimits?: Array<GetEntitySpendLimit> | undefined;
|
|
3445
|
+
/**
|
|
3446
|
+
* List of hard usage caps per feature for this entity. An entity entry overrides the customer's for that feature.
|
|
3447
|
+
*/
|
|
3448
|
+
usageLimits?: Array<GetEntityUsageLimit> | undefined;
|
|
3287
3449
|
/**
|
|
3288
3450
|
* List of usage alert configurations per feature.
|
|
3289
3451
|
*/
|
|
@@ -3646,9 +3808,9 @@ type MultiAttachPrice = {
|
|
|
3646
3808
|
*/
|
|
3647
3809
|
billingMethod: MultiAttachBillingMethod;
|
|
3648
3810
|
/**
|
|
3649
|
-
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total.
|
|
3811
|
+
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total. Null for no limit.
|
|
3650
3812
|
*/
|
|
3651
|
-
maxPurchase?: number | undefined;
|
|
3813
|
+
maxPurchase?: number | null | undefined;
|
|
3652
3814
|
};
|
|
3653
3815
|
/**
|
|
3654
3816
|
* Billing behavior when quantity increases mid-cycle.
|
|
@@ -3907,7 +4069,7 @@ type MultiAttachSpendLimit = {
|
|
|
3907
4069
|
*/
|
|
3908
4070
|
featureId?: string | undefined;
|
|
3909
4071
|
/**
|
|
3910
|
-
* Whether
|
|
4072
|
+
* Whether the overage spend limit is enabled.
|
|
3911
4073
|
*/
|
|
3912
4074
|
enabled?: boolean | undefined;
|
|
3913
4075
|
/**
|
|
@@ -3915,6 +4077,33 @@ type MultiAttachSpendLimit = {
|
|
|
3915
4077
|
*/
|
|
3916
4078
|
overageLimit?: number | undefined;
|
|
3917
4079
|
};
|
|
4080
|
+
/**
|
|
4081
|
+
* Interval for the cap, aligned to the customer's billing cycle.
|
|
4082
|
+
*/
|
|
4083
|
+
declare const MultiAttachEntityDataInterval: {
|
|
4084
|
+
readonly Day: "day";
|
|
4085
|
+
readonly Week: "week";
|
|
4086
|
+
readonly Month: "month";
|
|
4087
|
+
readonly Year: "year";
|
|
4088
|
+
};
|
|
4089
|
+
/**
|
|
4090
|
+
* Interval for the cap, aligned to the customer's billing cycle.
|
|
4091
|
+
*/
|
|
4092
|
+
type MultiAttachEntityDataInterval = ClosedEnum<typeof MultiAttachEntityDataInterval>;
|
|
4093
|
+
type MultiAttachUsageLimit = {
|
|
4094
|
+
/**
|
|
4095
|
+
* The feature this usage limit applies to.
|
|
4096
|
+
*/
|
|
4097
|
+
featureId: string;
|
|
4098
|
+
/**
|
|
4099
|
+
* Maximum units allowed per interval.
|
|
4100
|
+
*/
|
|
4101
|
+
limit: number;
|
|
4102
|
+
/**
|
|
4103
|
+
* Interval for the cap, aligned to the customer's billing cycle.
|
|
4104
|
+
*/
|
|
4105
|
+
interval: MultiAttachEntityDataInterval;
|
|
4106
|
+
};
|
|
3918
4107
|
/**
|
|
3919
4108
|
* Whether the threshold is an absolute count or a percentage of the usage allowance or remaining balance.
|
|
3920
4109
|
*/
|
|
@@ -3965,9 +4154,13 @@ type MultiAttachOverageAllowed = {
|
|
|
3965
4154
|
*/
|
|
3966
4155
|
type MultiAttachBillingControls = {
|
|
3967
4156
|
/**
|
|
3968
|
-
* List of
|
|
4157
|
+
* List of spend limits per feature. Each entry caps overage (overage_limit) and/or per-interval usage (usage_limit).
|
|
3969
4158
|
*/
|
|
3970
4159
|
spendLimits?: Array<MultiAttachSpendLimit> | undefined;
|
|
4160
|
+
/**
|
|
4161
|
+
* List of hard usage caps per feature for this entity. An entity entry overrides the customer's for that feature.
|
|
4162
|
+
*/
|
|
4163
|
+
usageLimits?: Array<MultiAttachUsageLimit> | undefined;
|
|
3971
4164
|
/**
|
|
3972
4165
|
* List of usage alert configurations per feature.
|
|
3973
4166
|
*/
|
|
@@ -4294,9 +4487,9 @@ type PreviewAttachItemPrice = {
|
|
|
4294
4487
|
*/
|
|
4295
4488
|
billingMethod: PreviewAttachItemBillingMethod;
|
|
4296
4489
|
/**
|
|
4297
|
-
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total.
|
|
4490
|
+
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total. Null for no limit.
|
|
4298
4491
|
*/
|
|
4299
|
-
maxPurchase?: number | undefined;
|
|
4492
|
+
maxPurchase?: number | null | undefined;
|
|
4300
4493
|
};
|
|
4301
4494
|
/**
|
|
4302
4495
|
* Billing behavior when quantity increases mid-cycle.
|
|
@@ -4500,9 +4693,9 @@ type PreviewAttachAddItemPrice = {
|
|
|
4500
4693
|
*/
|
|
4501
4694
|
billingMethod: PreviewAttachAddItemBillingMethod;
|
|
4502
4695
|
/**
|
|
4503
|
-
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total.
|
|
4696
|
+
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total. Null for no limit.
|
|
4504
4697
|
*/
|
|
4505
|
-
maxPurchase?: number | undefined;
|
|
4698
|
+
maxPurchase?: number | null | undefined;
|
|
4506
4699
|
};
|
|
4507
4700
|
/**
|
|
4508
4701
|
* Billing behavior when quantity increases mid-cycle.
|
|
@@ -4620,21 +4813,27 @@ declare const PreviewAttachRemoveItemBillingMethod: {
|
|
|
4620
4813
|
* Match items with this billing method (prepaid or usage_based).
|
|
4621
4814
|
*/
|
|
4622
4815
|
type PreviewAttachRemoveItemBillingMethod = ClosedEnum<typeof PreviewAttachRemoveItemBillingMethod>;
|
|
4623
|
-
|
|
4624
|
-
* Match items with this interval.
|
|
4625
|
-
*/
|
|
4626
|
-
declare const PreviewAttachRemoveItemInterval: {
|
|
4816
|
+
declare const PreviewAttachIntervalRemoveItemEnum2: {
|
|
4627
4817
|
readonly OneOff: "one_off";
|
|
4818
|
+
readonly Minute: "minute";
|
|
4819
|
+
readonly Hour: "hour";
|
|
4820
|
+
readonly Day: "day";
|
|
4628
4821
|
readonly Week: "week";
|
|
4629
4822
|
readonly Month: "month";
|
|
4630
4823
|
readonly Quarter: "quarter";
|
|
4631
4824
|
readonly SemiAnnual: "semi_annual";
|
|
4632
4825
|
readonly Year: "year";
|
|
4633
4826
|
};
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4827
|
+
type PreviewAttachIntervalRemoveItemEnum2 = ClosedEnum<typeof PreviewAttachIntervalRemoveItemEnum2>;
|
|
4828
|
+
declare const PreviewAttachIntervalRemoveItemEnum1: {
|
|
4829
|
+
readonly OneOff: "one_off";
|
|
4830
|
+
readonly Week: "week";
|
|
4831
|
+
readonly Month: "month";
|
|
4832
|
+
readonly Quarter: "quarter";
|
|
4833
|
+
readonly SemiAnnual: "semi_annual";
|
|
4834
|
+
readonly Year: "year";
|
|
4835
|
+
};
|
|
4836
|
+
type PreviewAttachIntervalRemoveItemEnum1 = ClosedEnum<typeof PreviewAttachIntervalRemoveItemEnum1>;
|
|
4638
4837
|
/**
|
|
4639
4838
|
* Filter for matching plan items. All provided fields must match (AND).
|
|
4640
4839
|
*/
|
|
@@ -4648,9 +4847,13 @@ type PreviewAttachPlanItemFilter = {
|
|
|
4648
4847
|
*/
|
|
4649
4848
|
billingMethod?: PreviewAttachRemoveItemBillingMethod | undefined;
|
|
4650
4849
|
/**
|
|
4651
|
-
* Match items with this interval.
|
|
4850
|
+
* Match items with this interval. Accepts either a BillingInterval (price-side) or a ResetInterval (reset-side, includes day/hour/minute) so price-less items keyed by reset.interval can be disambiguated.
|
|
4851
|
+
*/
|
|
4852
|
+
interval?: PreviewAttachIntervalRemoveItemEnum1 | PreviewAttachIntervalRemoveItemEnum2 | undefined;
|
|
4853
|
+
/**
|
|
4854
|
+
* Match items with this interval_count. Disambiguates between items that share an interval but differ in count.
|
|
4652
4855
|
*/
|
|
4653
|
-
|
|
4856
|
+
intervalCount?: number | undefined;
|
|
4654
4857
|
};
|
|
4655
4858
|
/**
|
|
4656
4859
|
* Unit of time for the trial ('day', 'month', 'year').
|
|
@@ -4705,7 +4908,7 @@ type PreviewAttachCustomize = {
|
|
|
4705
4908
|
*/
|
|
4706
4909
|
price?: PreviewAttachBasePrice | null | undefined;
|
|
4707
4910
|
/**
|
|
4708
|
-
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / update_items.
|
|
4911
|
+
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / deprecated update_items.
|
|
4709
4912
|
*/
|
|
4710
4913
|
items?: Array<PreviewAttachItemPlanItem> | undefined;
|
|
4711
4914
|
/**
|
|
@@ -5413,9 +5616,9 @@ type PreviewMultiAttachPrice = {
|
|
|
5413
5616
|
*/
|
|
5414
5617
|
billingMethod: PreviewMultiAttachBillingMethod;
|
|
5415
5618
|
/**
|
|
5416
|
-
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total.
|
|
5619
|
+
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total. Null for no limit.
|
|
5417
5620
|
*/
|
|
5418
|
-
maxPurchase?: number | undefined;
|
|
5621
|
+
maxPurchase?: number | null | undefined;
|
|
5419
5622
|
};
|
|
5420
5623
|
/**
|
|
5421
5624
|
* Billing behavior when quantity increases mid-cycle.
|
|
@@ -5674,7 +5877,7 @@ type PreviewMultiAttachSpendLimit = {
|
|
|
5674
5877
|
*/
|
|
5675
5878
|
featureId?: string | undefined;
|
|
5676
5879
|
/**
|
|
5677
|
-
* Whether
|
|
5880
|
+
* Whether the overage spend limit is enabled.
|
|
5678
5881
|
*/
|
|
5679
5882
|
enabled?: boolean | undefined;
|
|
5680
5883
|
/**
|
|
@@ -5682,6 +5885,33 @@ type PreviewMultiAttachSpendLimit = {
|
|
|
5682
5885
|
*/
|
|
5683
5886
|
overageLimit?: number | undefined;
|
|
5684
5887
|
};
|
|
5888
|
+
/**
|
|
5889
|
+
* Interval for the cap, aligned to the customer's billing cycle.
|
|
5890
|
+
*/
|
|
5891
|
+
declare const PreviewMultiAttachEntityDataInterval: {
|
|
5892
|
+
readonly Day: "day";
|
|
5893
|
+
readonly Week: "week";
|
|
5894
|
+
readonly Month: "month";
|
|
5895
|
+
readonly Year: "year";
|
|
5896
|
+
};
|
|
5897
|
+
/**
|
|
5898
|
+
* Interval for the cap, aligned to the customer's billing cycle.
|
|
5899
|
+
*/
|
|
5900
|
+
type PreviewMultiAttachEntityDataInterval = ClosedEnum<typeof PreviewMultiAttachEntityDataInterval>;
|
|
5901
|
+
type PreviewMultiAttachUsageLimit = {
|
|
5902
|
+
/**
|
|
5903
|
+
* The feature this usage limit applies to.
|
|
5904
|
+
*/
|
|
5905
|
+
featureId: string;
|
|
5906
|
+
/**
|
|
5907
|
+
* Maximum units allowed per interval.
|
|
5908
|
+
*/
|
|
5909
|
+
limit: number;
|
|
5910
|
+
/**
|
|
5911
|
+
* Interval for the cap, aligned to the customer's billing cycle.
|
|
5912
|
+
*/
|
|
5913
|
+
interval: PreviewMultiAttachEntityDataInterval;
|
|
5914
|
+
};
|
|
5685
5915
|
/**
|
|
5686
5916
|
* Whether the threshold is an absolute count or a percentage of the usage allowance or remaining balance.
|
|
5687
5917
|
*/
|
|
@@ -5732,9 +5962,13 @@ type PreviewMultiAttachOverageAllowed = {
|
|
|
5732
5962
|
*/
|
|
5733
5963
|
type PreviewMultiAttachBillingControls = {
|
|
5734
5964
|
/**
|
|
5735
|
-
* List of
|
|
5965
|
+
* List of spend limits per feature. Each entry caps overage (overage_limit) and/or per-interval usage (usage_limit).
|
|
5736
5966
|
*/
|
|
5737
5967
|
spendLimits?: Array<PreviewMultiAttachSpendLimit> | undefined;
|
|
5968
|
+
/**
|
|
5969
|
+
* List of hard usage caps per feature for this entity. An entity entry overrides the customer's for that feature.
|
|
5970
|
+
*/
|
|
5971
|
+
usageLimits?: Array<PreviewMultiAttachUsageLimit> | undefined;
|
|
5738
5972
|
/**
|
|
5739
5973
|
* List of usage alert configurations per feature.
|
|
5740
5974
|
*/
|
|
@@ -6302,9 +6536,9 @@ type PreviewUpdateItemPrice = {
|
|
|
6302
6536
|
*/
|
|
6303
6537
|
billingMethod: PreviewUpdateItemBillingMethod;
|
|
6304
6538
|
/**
|
|
6305
|
-
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total.
|
|
6539
|
+
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total. Null for no limit.
|
|
6306
6540
|
*/
|
|
6307
|
-
maxPurchase?: number | undefined;
|
|
6541
|
+
maxPurchase?: number | null | undefined;
|
|
6308
6542
|
};
|
|
6309
6543
|
/**
|
|
6310
6544
|
* Billing behavior when quantity increases mid-cycle.
|
|
@@ -6508,9 +6742,9 @@ type PreviewUpdateAddItemPrice = {
|
|
|
6508
6742
|
*/
|
|
6509
6743
|
billingMethod: PreviewUpdateAddItemBillingMethod;
|
|
6510
6744
|
/**
|
|
6511
|
-
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total.
|
|
6745
|
+
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total. Null for no limit.
|
|
6512
6746
|
*/
|
|
6513
|
-
maxPurchase?: number | undefined;
|
|
6747
|
+
maxPurchase?: number | null | undefined;
|
|
6514
6748
|
};
|
|
6515
6749
|
/**
|
|
6516
6750
|
* Billing behavior when quantity increases mid-cycle.
|
|
@@ -6628,21 +6862,27 @@ declare const PreviewUpdateRemoveItemBillingMethod: {
|
|
|
6628
6862
|
* Match items with this billing method (prepaid or usage_based).
|
|
6629
6863
|
*/
|
|
6630
6864
|
type PreviewUpdateRemoveItemBillingMethod = ClosedEnum<typeof PreviewUpdateRemoveItemBillingMethod>;
|
|
6631
|
-
|
|
6632
|
-
* Match items with this interval.
|
|
6633
|
-
*/
|
|
6634
|
-
declare const PreviewUpdateRemoveItemInterval: {
|
|
6865
|
+
declare const PreviewUpdateIntervalRemoveItemEnum2: {
|
|
6635
6866
|
readonly OneOff: "one_off";
|
|
6867
|
+
readonly Minute: "minute";
|
|
6868
|
+
readonly Hour: "hour";
|
|
6869
|
+
readonly Day: "day";
|
|
6636
6870
|
readonly Week: "week";
|
|
6637
6871
|
readonly Month: "month";
|
|
6638
6872
|
readonly Quarter: "quarter";
|
|
6639
6873
|
readonly SemiAnnual: "semi_annual";
|
|
6640
6874
|
readonly Year: "year";
|
|
6641
6875
|
};
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6876
|
+
type PreviewUpdateIntervalRemoveItemEnum2 = ClosedEnum<typeof PreviewUpdateIntervalRemoveItemEnum2>;
|
|
6877
|
+
declare const PreviewUpdateIntervalRemoveItemEnum1: {
|
|
6878
|
+
readonly OneOff: "one_off";
|
|
6879
|
+
readonly Week: "week";
|
|
6880
|
+
readonly Month: "month";
|
|
6881
|
+
readonly Quarter: "quarter";
|
|
6882
|
+
readonly SemiAnnual: "semi_annual";
|
|
6883
|
+
readonly Year: "year";
|
|
6884
|
+
};
|
|
6885
|
+
type PreviewUpdateIntervalRemoveItemEnum1 = ClosedEnum<typeof PreviewUpdateIntervalRemoveItemEnum1>;
|
|
6646
6886
|
/**
|
|
6647
6887
|
* Filter for matching plan items. All provided fields must match (AND).
|
|
6648
6888
|
*/
|
|
@@ -6656,9 +6896,13 @@ type PreviewUpdatePlanItemFilter = {
|
|
|
6656
6896
|
*/
|
|
6657
6897
|
billingMethod?: PreviewUpdateRemoveItemBillingMethod | undefined;
|
|
6658
6898
|
/**
|
|
6659
|
-
* Match items with this interval.
|
|
6899
|
+
* Match items with this interval. Accepts either a BillingInterval (price-side) or a ResetInterval (reset-side, includes day/hour/minute) so price-less items keyed by reset.interval can be disambiguated.
|
|
6900
|
+
*/
|
|
6901
|
+
interval?: PreviewUpdateIntervalRemoveItemEnum1 | PreviewUpdateIntervalRemoveItemEnum2 | undefined;
|
|
6902
|
+
/**
|
|
6903
|
+
* Match items with this interval_count. Disambiguates between items that share an interval but differ in count.
|
|
6660
6904
|
*/
|
|
6661
|
-
|
|
6905
|
+
intervalCount?: number | undefined;
|
|
6662
6906
|
};
|
|
6663
6907
|
/**
|
|
6664
6908
|
* Unit of time for the trial ('day', 'month', 'year').
|
|
@@ -6713,7 +6957,7 @@ type PreviewUpdateCustomize = {
|
|
|
6713
6957
|
*/
|
|
6714
6958
|
price?: PreviewUpdateBasePrice | null | undefined;
|
|
6715
6959
|
/**
|
|
6716
|
-
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / update_items.
|
|
6960
|
+
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / deprecated update_items.
|
|
6717
6961
|
*/
|
|
6718
6962
|
items?: Array<PreviewUpdateItemPlanItem> | undefined;
|
|
6719
6963
|
/**
|
|
@@ -7392,9 +7636,9 @@ type SetupPaymentItemPrice = {
|
|
|
7392
7636
|
*/
|
|
7393
7637
|
billingMethod: SetupPaymentItemBillingMethod;
|
|
7394
7638
|
/**
|
|
7395
|
-
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total.
|
|
7639
|
+
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total. Null for no limit.
|
|
7396
7640
|
*/
|
|
7397
|
-
maxPurchase?: number | undefined;
|
|
7641
|
+
maxPurchase?: number | null | undefined;
|
|
7398
7642
|
};
|
|
7399
7643
|
/**
|
|
7400
7644
|
* Billing behavior when quantity increases mid-cycle.
|
|
@@ -7598,9 +7842,9 @@ type SetupPaymentAddItemPrice = {
|
|
|
7598
7842
|
*/
|
|
7599
7843
|
billingMethod: SetupPaymentAddItemBillingMethod;
|
|
7600
7844
|
/**
|
|
7601
|
-
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total.
|
|
7845
|
+
* Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total. Null for no limit.
|
|
7602
7846
|
*/
|
|
7603
|
-
maxPurchase?: number | undefined;
|
|
7847
|
+
maxPurchase?: number | null | undefined;
|
|
7604
7848
|
};
|
|
7605
7849
|
/**
|
|
7606
7850
|
* Billing behavior when quantity increases mid-cycle.
|
|
@@ -7718,10 +7962,19 @@ declare const SetupPaymentRemoveItemBillingMethod: {
|
|
|
7718
7962
|
* Match items with this billing method (prepaid or usage_based).
|
|
7719
7963
|
*/
|
|
7720
7964
|
type SetupPaymentRemoveItemBillingMethod = ClosedEnum<typeof SetupPaymentRemoveItemBillingMethod>;
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7965
|
+
declare const SetupPaymentIntervalRemoveItemEnum2: {
|
|
7966
|
+
readonly OneOff: "one_off";
|
|
7967
|
+
readonly Minute: "minute";
|
|
7968
|
+
readonly Hour: "hour";
|
|
7969
|
+
readonly Day: "day";
|
|
7970
|
+
readonly Week: "week";
|
|
7971
|
+
readonly Month: "month";
|
|
7972
|
+
readonly Quarter: "quarter";
|
|
7973
|
+
readonly SemiAnnual: "semi_annual";
|
|
7974
|
+
readonly Year: "year";
|
|
7975
|
+
};
|
|
7976
|
+
type SetupPaymentIntervalRemoveItemEnum2 = ClosedEnum<typeof SetupPaymentIntervalRemoveItemEnum2>;
|
|
7977
|
+
declare const SetupPaymentIntervalRemoveItemEnum1: {
|
|
7725
7978
|
readonly OneOff: "one_off";
|
|
7726
7979
|
readonly Week: "week";
|
|
7727
7980
|
readonly Month: "month";
|
|
@@ -7729,10 +7982,7 @@ declare const SetupPaymentRemoveItemInterval: {
|
|
|
7729
7982
|
readonly SemiAnnual: "semi_annual";
|
|
7730
7983
|
readonly Year: "year";
|
|
7731
7984
|
};
|
|
7732
|
-
|
|
7733
|
-
* Match items with this interval.
|
|
7734
|
-
*/
|
|
7735
|
-
type SetupPaymentRemoveItemInterval = ClosedEnum<typeof SetupPaymentRemoveItemInterval>;
|
|
7985
|
+
type SetupPaymentIntervalRemoveItemEnum1 = ClosedEnum<typeof SetupPaymentIntervalRemoveItemEnum1>;
|
|
7736
7986
|
/**
|
|
7737
7987
|
* Filter for matching plan items. All provided fields must match (AND).
|
|
7738
7988
|
*/
|
|
@@ -7746,9 +7996,13 @@ type SetupPaymentPlanItemFilter = {
|
|
|
7746
7996
|
*/
|
|
7747
7997
|
billingMethod?: SetupPaymentRemoveItemBillingMethod | undefined;
|
|
7748
7998
|
/**
|
|
7749
|
-
* Match items with this interval.
|
|
7999
|
+
* Match items with this interval. Accepts either a BillingInterval (price-side) or a ResetInterval (reset-side, includes day/hour/minute) so price-less items keyed by reset.interval can be disambiguated.
|
|
7750
8000
|
*/
|
|
7751
|
-
interval?:
|
|
8001
|
+
interval?: SetupPaymentIntervalRemoveItemEnum1 | SetupPaymentIntervalRemoveItemEnum2 | undefined;
|
|
8002
|
+
/**
|
|
8003
|
+
* Match items with this interval_count. Disambiguates between items that share an interval but differ in count.
|
|
8004
|
+
*/
|
|
8005
|
+
intervalCount?: number | undefined;
|
|
7752
8006
|
};
|
|
7753
8007
|
/**
|
|
7754
8008
|
* Unit of time for the trial ('day', 'month', 'year').
|
|
@@ -7803,7 +8057,7 @@ type SetupPaymentCustomize = {
|
|
|
7803
8057
|
*/
|
|
7804
8058
|
price?: SetupPaymentBasePrice | null | undefined;
|
|
7805
8059
|
/**
|
|
7806
|
-
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / update_items.
|
|
8060
|
+
* Override the items in the plan (PUT-style — replaces all existing items). Mutually exclusive with add_items / remove_items / deprecated update_items.
|
|
7807
8061
|
*/
|
|
7808
8062
|
items?: Array<SetupPaymentItemPlanItem> | undefined;
|
|
7809
8063
|
/**
|
|
@@ -8047,4 +8301,4 @@ type ClientSetupPaymentParams = Omit<SetupPaymentParams, ProtectedFields> & {
|
|
|
8047
8301
|
/** Get entity params without protected fields (for frontend use) */
|
|
8048
8302
|
type ClientGetEntityParams = Prettify<Omit<GetEntityParams, ProtectedFields>>;
|
|
8049
8303
|
|
|
8050
|
-
export type {
|
|
8304
|
+
export type { AttachResponse as A, BillingUpdateResponse as B, ClientAggregateEventsParams as C, GetEntityResponse as G, ListEventsResponse as L, MultiAttachResponse as M, OpenCustomerPortalResponse as O, ProtectedFields as P, RedeemReferralCodeResponse as R, SetupPaymentResponse as S, Total as T, ClientAttachParams as a, ClientCreateReferralCodeParams as b, ClientGetEntityParams as c, ClientGetOrCreateCustomerParams as d, ClientListEventsParams as e, ClientMultiAttachParams as f, ClientOpenCustomerPortalParams as g, ClientPreviewAttachParams as h, ClientPreviewMultiAttachParams as i, ClientPreviewUpdateSubscriptionParams as j, ClientRedeemReferralCodeParams as k, ClientSetupPaymentParams as l, ClientUpdateSubscriptionParams as m, ClientCheckParams as n, CheckResponse as o, PreviewAttachResponse as p, PreviewUpdateResponse as q, PreviewMultiAttachResponse as r, AggregateEventsResponse as s, AggregateEventsList as t, ListEventsList as u, ClientListPlansParams as v, CreateReferralCodeResponse as w };
|