autumn-js 1.4.47 → 1.4.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 +1780 -792
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.js +1780 -792
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.js +1780 -792
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.js +1780 -792
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.js +1780 -792
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{chunk-6LQFPGW7.mjs → chunk-4J2TOGWE.mjs} +220 -60
- package/dist/backend/{chunk-XSFLWMJO.mjs → chunk-6X4JZECX.mjs} +1 -1
- package/dist/backend/{chunk-BRCDWBVZ.mjs → chunk-EUR3CZTF.mjs} +1 -1
- package/dist/backend/{chunk-LPQJUWEP.mjs → chunk-EVPPOVX5.mjs} +2 -2
- package/dist/{better-auth/chunk-U4Z36UKV.mjs → backend/chunk-L4HKBZCC.mjs} +1773 -1168
- package/dist/backend/{chunk-QXN5PMM3.mjs → chunk-N2SCUJPL.mjs} +2 -2
- package/dist/backend/{chunk-P5IBHZVY.mjs → chunk-QPDWSMZ5.mjs} +1 -1
- package/dist/backend/{chunk-BAMETKFC.mjs → chunk-XIBFK5EL.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 +1780 -792
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- 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/handleRouteByName.js +1780 -792
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- 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 +1780 -792
- package/dist/backend/core/handlers/index.mjs +4 -4
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +1780 -792
- package/dist/backend/core/index.mjs +4 -4
- 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.js +220 -60
- 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.js +220 -60
- 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/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +1780 -792
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-4Nvx_kS7.d.mts → routeTypes-C_10hxA-.d.mts} +916 -130
- package/dist/backend/{routeTypes-5NBu7O27.d.ts → routeTypes-CqaUPWtn.d.ts} +916 -130
- package/dist/{backend/chunk-QPCIJMW3.mjs → better-auth/chunk-44MLRR2L.mjs} +1996 -945
- package/dist/better-auth/{chunk-XMGJ2JOK.mjs → chunk-TX2WZUZT.mjs} +1 -1
- package/dist/better-auth/{chunk-7UPP5FN5.mjs → chunk-ZHYDDOAE.mjs} +220 -60
- package/dist/better-auth/index.js +1780 -792
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +220 -60
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +1780 -792
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +1780 -792
- package/dist/better-auth/utils/index.mjs +3 -3
- 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-Bf5yt0Mo.d.mts → customer-BK_WEJ0J.d.mts} +17 -1
- package/dist/react/{customer-BQxqzdSE.d.ts → customer-CGLAquo9.d.ts} +17 -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-CgqelDUJ.d.mts → list-plans-response-BMWMbzkK.d.ts} +89 -20
- package/dist/react/{list-plans-response-jYoBA-Ci.d.ts → list-plans-response-kbT4GwSh.d.mts} +89 -20
- package/dist/react/{params-B3qR55v_.d.ts → params-D_8sPp60.d.ts} +258 -40
- package/dist/react/{params-DWlWVt04.d.mts → params-eTM9nRBb.d.mts} +258 -40
- package/dist/react/{plan-BoEfV7t8.d.mts → plan-Dji-zdws.d.mts} +53 -7
- package/dist/react/{plan-BoEfV7t8.d.ts → plan-Dji-zdws.d.ts} +53 -7
- package/dist/sdk/index.d.mts +2323 -1205
- package/dist/sdk/index.d.ts +2323 -1205
- package/dist/sdk/index.js +21373 -20046
- package/dist/sdk/index.mjs +21237 -20046
- package/package.json +2 -2
|
@@ -19,6 +19,18 @@ declare const BalanceType: {
|
|
|
19
19
|
* 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.
|
|
20
20
|
*/
|
|
21
21
|
type BalanceType = OpenEnum<typeof BalanceType>;
|
|
22
|
+
/**
|
|
23
|
+
* How grants of this feature from several plans combine: 'sum' adds them up, 'max' / 'min' keep the highest / lowest grant among plan items with no price. Omitted when 'sum'.
|
|
24
|
+
*/
|
|
25
|
+
declare const BalanceCombine: {
|
|
26
|
+
readonly Sum: "sum";
|
|
27
|
+
readonly Max: "max";
|
|
28
|
+
readonly Min: "min";
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* How grants of this feature from several plans combine: 'sum' adds them up, 'max' / 'min' keep the highest / lowest grant among plan items with no price. Omitted when 'sum'.
|
|
32
|
+
*/
|
|
33
|
+
type BalanceCombine = OpenEnum<typeof BalanceCombine>;
|
|
22
34
|
type BalanceDimensions6 = {
|
|
23
35
|
/**
|
|
24
36
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -343,6 +355,10 @@ type BalanceFeature = {
|
|
|
343
355
|
* For metered features: true if usage resets periodically (API calls, credits), false if allocated persistently (seats, storage).
|
|
344
356
|
*/
|
|
345
357
|
consumable: boolean;
|
|
358
|
+
/**
|
|
359
|
+
* How grants of this feature from several plans combine: 'sum' adds them up, 'max' / 'min' keep the highest / lowest grant among plan items with no price. Omitted when 'sum'.
|
|
360
|
+
*/
|
|
361
|
+
combine?: BalanceCombine | undefined;
|
|
346
362
|
/**
|
|
347
363
|
* Event names that trigger this feature's balance. Allows multiple features to respond to a single event.
|
|
348
364
|
*/
|
|
@@ -943,6 +959,16 @@ type ItemExpiry = {
|
|
|
943
959
|
duration: ItemDuration;
|
|
944
960
|
length: number;
|
|
945
961
|
};
|
|
962
|
+
type PlanCreditSchemaItemFeatureOverride3 = {
|
|
963
|
+
/**
|
|
964
|
+
* ID of the metered feature to remove from the credit system.
|
|
965
|
+
*/
|
|
966
|
+
meteredFeatureId: string;
|
|
967
|
+
/**
|
|
968
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
969
|
+
*/
|
|
970
|
+
excluded: true;
|
|
971
|
+
};
|
|
946
972
|
type PlanDimensionsItem4 = {
|
|
947
973
|
/**
|
|
948
974
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -1161,9 +1187,9 @@ type ItemMarkups = {
|
|
|
1161
1187
|
*/
|
|
1162
1188
|
type ItemFeatureOverride = {
|
|
1163
1189
|
/**
|
|
1164
|
-
* For credit system features:
|
|
1190
|
+
* For credit system features: merges into the feature's credit_schema by metered_feature_id for customers on this plan. A row with a rate overrides or adds that feature, a row with `excluded: true` removes it, and unlisted features keep the credit system's rate.
|
|
1165
1191
|
*/
|
|
1166
|
-
creditSchema?: Array<PlanCreditSchemaItemFeatureOverride1 | PlanCreditSchemaItemFeatureOverride2> | undefined;
|
|
1192
|
+
creditSchema?: Array<PlanCreditSchemaItemFeatureOverride1 | PlanCreditSchemaItemFeatureOverride2 | PlanCreditSchemaItemFeatureOverride3> | undefined;
|
|
1167
1193
|
/**
|
|
1168
1194
|
* For AI credit system features: replaces the feature's markup chain entirely for customers on this plan. An unset level means no markup at that level rather than inheriting the feature's.
|
|
1169
1195
|
*/
|
|
@@ -1885,6 +1911,16 @@ type VariantDetailsExpiry = {
|
|
|
1885
1911
|
duration: VariantDetailsDuration;
|
|
1886
1912
|
length: number;
|
|
1887
1913
|
};
|
|
1914
|
+
type PlanCreditSchemaVariantDetails3 = {
|
|
1915
|
+
/**
|
|
1916
|
+
* ID of the metered feature to remove from the credit system.
|
|
1917
|
+
*/
|
|
1918
|
+
meteredFeatureId: string;
|
|
1919
|
+
/**
|
|
1920
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
1921
|
+
*/
|
|
1922
|
+
excluded: true;
|
|
1923
|
+
};
|
|
1888
1924
|
type PlanDimensionsVariantDetails4 = {
|
|
1889
1925
|
/**
|
|
1890
1926
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -2103,9 +2139,9 @@ type VariantDetailsMarkups = {
|
|
|
2103
2139
|
*/
|
|
2104
2140
|
type VariantDetailsFeatureOverride = {
|
|
2105
2141
|
/**
|
|
2106
|
-
* For credit system features:
|
|
2142
|
+
* For credit system features: merges into the feature's credit_schema by metered_feature_id for customers on this plan. A row with a rate overrides or adds that feature, a row with `excluded: true` removes it, and unlisted features keep the credit system's rate.
|
|
2107
2143
|
*/
|
|
2108
|
-
creditSchema?: Array<PlanCreditSchemaVariantDetails1 | PlanCreditSchemaVariantDetails2> | undefined;
|
|
2144
|
+
creditSchema?: Array<PlanCreditSchemaVariantDetails1 | PlanCreditSchemaVariantDetails2 | PlanCreditSchemaVariantDetails3> | undefined;
|
|
2109
2145
|
/**
|
|
2110
2146
|
* For AI credit system features: replaces the feature's markup chain entirely for customers on this plan. An unset level means no markup at that level rather than inheriting the feature's.
|
|
2111
2147
|
*/
|
|
@@ -2476,6 +2512,7 @@ type PlanVariantDetailsUsageAlert = {
|
|
|
2476
2512
|
*/
|
|
2477
2513
|
name?: string | undefined;
|
|
2478
2514
|
};
|
|
2515
|
+
|
|
2479
2516
|
type PlanVariantDetailsOverageAllowed1 = {
|
|
2480
2517
|
/**
|
|
2481
2518
|
* The feature ID this overage allowed control applies to.
|
|
@@ -2511,7 +2548,6 @@ type PlanVariantDetailsBillingControls1 = {
|
|
|
2511
2548
|
*/
|
|
2512
2549
|
overageAllowed?: Array<PlanVariantDetailsOverageAllowed1> | undefined;
|
|
2513
2550
|
};
|
|
2514
|
-
|
|
2515
2551
|
/**
|
|
2516
2552
|
* Billing interval (e.g. 'month', 'year').
|
|
2517
2553
|
*/
|
|
@@ -2786,6 +2822,16 @@ type UpsertLicenseExpiry = {
|
|
|
2786
2822
|
duration: UpsertLicenseDuration;
|
|
2787
2823
|
length: number;
|
|
2788
2824
|
};
|
|
2825
|
+
type PlanCreditSchemaUpsertLicense3 = {
|
|
2826
|
+
/**
|
|
2827
|
+
* ID of the metered feature to remove from the credit system.
|
|
2828
|
+
*/
|
|
2829
|
+
meteredFeatureId: string;
|
|
2830
|
+
/**
|
|
2831
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
2832
|
+
*/
|
|
2833
|
+
excluded: true;
|
|
2834
|
+
};
|
|
2789
2835
|
type PlanDimensionsUpsertLicense4 = {
|
|
2790
2836
|
/**
|
|
2791
2837
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -3004,9 +3050,9 @@ type UpsertLicenseMarkups = {
|
|
|
3004
3050
|
*/
|
|
3005
3051
|
type UpsertLicenseFeatureOverride = {
|
|
3006
3052
|
/**
|
|
3007
|
-
* For credit system features:
|
|
3053
|
+
* For credit system features: merges into the feature's credit_schema by metered_feature_id for customers on this plan. A row with a rate overrides or adds that feature, a row with `excluded: true` removes it, and unlisted features keep the credit system's rate.
|
|
3008
3054
|
*/
|
|
3009
|
-
creditSchema?: Array<PlanCreditSchemaUpsertLicense1 | PlanCreditSchemaUpsertLicense2> | undefined;
|
|
3055
|
+
creditSchema?: Array<PlanCreditSchemaUpsertLicense1 | PlanCreditSchemaUpsertLicense2 | PlanCreditSchemaUpsertLicense3> | undefined;
|
|
3010
3056
|
/**
|
|
3011
3057
|
* For AI credit system features: replaces the feature's markup chain entirely for customers on this plan. An unset level means no markup at that level rather than inheriting the feature's.
|
|
3012
3058
|
*/
|
|
@@ -19,6 +19,18 @@ declare const BalanceType: {
|
|
|
19
19
|
* 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.
|
|
20
20
|
*/
|
|
21
21
|
type BalanceType = OpenEnum<typeof BalanceType>;
|
|
22
|
+
/**
|
|
23
|
+
* How grants of this feature from several plans combine: 'sum' adds them up, 'max' / 'min' keep the highest / lowest grant among plan items with no price. Omitted when 'sum'.
|
|
24
|
+
*/
|
|
25
|
+
declare const BalanceCombine: {
|
|
26
|
+
readonly Sum: "sum";
|
|
27
|
+
readonly Max: "max";
|
|
28
|
+
readonly Min: "min";
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* How grants of this feature from several plans combine: 'sum' adds them up, 'max' / 'min' keep the highest / lowest grant among plan items with no price. Omitted when 'sum'.
|
|
32
|
+
*/
|
|
33
|
+
type BalanceCombine = OpenEnum<typeof BalanceCombine>;
|
|
22
34
|
type BalanceDimensions6 = {
|
|
23
35
|
/**
|
|
24
36
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -343,6 +355,10 @@ type BalanceFeature = {
|
|
|
343
355
|
* For metered features: true if usage resets periodically (API calls, credits), false if allocated persistently (seats, storage).
|
|
344
356
|
*/
|
|
345
357
|
consumable: boolean;
|
|
358
|
+
/**
|
|
359
|
+
* How grants of this feature from several plans combine: 'sum' adds them up, 'max' / 'min' keep the highest / lowest grant among plan items with no price. Omitted when 'sum'.
|
|
360
|
+
*/
|
|
361
|
+
combine?: BalanceCombine | undefined;
|
|
346
362
|
/**
|
|
347
363
|
* Event names that trigger this feature's balance. Allows multiple features to respond to a single event.
|
|
348
364
|
*/
|
|
@@ -943,6 +959,16 @@ type ItemExpiry = {
|
|
|
943
959
|
duration: ItemDuration;
|
|
944
960
|
length: number;
|
|
945
961
|
};
|
|
962
|
+
type PlanCreditSchemaItemFeatureOverride3 = {
|
|
963
|
+
/**
|
|
964
|
+
* ID of the metered feature to remove from the credit system.
|
|
965
|
+
*/
|
|
966
|
+
meteredFeatureId: string;
|
|
967
|
+
/**
|
|
968
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
969
|
+
*/
|
|
970
|
+
excluded: true;
|
|
971
|
+
};
|
|
946
972
|
type PlanDimensionsItem4 = {
|
|
947
973
|
/**
|
|
948
974
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -1161,9 +1187,9 @@ type ItemMarkups = {
|
|
|
1161
1187
|
*/
|
|
1162
1188
|
type ItemFeatureOverride = {
|
|
1163
1189
|
/**
|
|
1164
|
-
* For credit system features:
|
|
1190
|
+
* For credit system features: merges into the feature's credit_schema by metered_feature_id for customers on this plan. A row with a rate overrides or adds that feature, a row with `excluded: true` removes it, and unlisted features keep the credit system's rate.
|
|
1165
1191
|
*/
|
|
1166
|
-
creditSchema?: Array<PlanCreditSchemaItemFeatureOverride1 | PlanCreditSchemaItemFeatureOverride2> | undefined;
|
|
1192
|
+
creditSchema?: Array<PlanCreditSchemaItemFeatureOverride1 | PlanCreditSchemaItemFeatureOverride2 | PlanCreditSchemaItemFeatureOverride3> | undefined;
|
|
1167
1193
|
/**
|
|
1168
1194
|
* For AI credit system features: replaces the feature's markup chain entirely for customers on this plan. An unset level means no markup at that level rather than inheriting the feature's.
|
|
1169
1195
|
*/
|
|
@@ -1885,6 +1911,16 @@ type VariantDetailsExpiry = {
|
|
|
1885
1911
|
duration: VariantDetailsDuration;
|
|
1886
1912
|
length: number;
|
|
1887
1913
|
};
|
|
1914
|
+
type PlanCreditSchemaVariantDetails3 = {
|
|
1915
|
+
/**
|
|
1916
|
+
* ID of the metered feature to remove from the credit system.
|
|
1917
|
+
*/
|
|
1918
|
+
meteredFeatureId: string;
|
|
1919
|
+
/**
|
|
1920
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
1921
|
+
*/
|
|
1922
|
+
excluded: true;
|
|
1923
|
+
};
|
|
1888
1924
|
type PlanDimensionsVariantDetails4 = {
|
|
1889
1925
|
/**
|
|
1890
1926
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -2103,9 +2139,9 @@ type VariantDetailsMarkups = {
|
|
|
2103
2139
|
*/
|
|
2104
2140
|
type VariantDetailsFeatureOverride = {
|
|
2105
2141
|
/**
|
|
2106
|
-
* For credit system features:
|
|
2142
|
+
* For credit system features: merges into the feature's credit_schema by metered_feature_id for customers on this plan. A row with a rate overrides or adds that feature, a row with `excluded: true` removes it, and unlisted features keep the credit system's rate.
|
|
2107
2143
|
*/
|
|
2108
|
-
creditSchema?: Array<PlanCreditSchemaVariantDetails1 | PlanCreditSchemaVariantDetails2> | undefined;
|
|
2144
|
+
creditSchema?: Array<PlanCreditSchemaVariantDetails1 | PlanCreditSchemaVariantDetails2 | PlanCreditSchemaVariantDetails3> | undefined;
|
|
2109
2145
|
/**
|
|
2110
2146
|
* For AI credit system features: replaces the feature's markup chain entirely for customers on this plan. An unset level means no markup at that level rather than inheriting the feature's.
|
|
2111
2147
|
*/
|
|
@@ -2476,6 +2512,7 @@ type PlanVariantDetailsUsageAlert = {
|
|
|
2476
2512
|
*/
|
|
2477
2513
|
name?: string | undefined;
|
|
2478
2514
|
};
|
|
2515
|
+
|
|
2479
2516
|
type PlanVariantDetailsOverageAllowed1 = {
|
|
2480
2517
|
/**
|
|
2481
2518
|
* The feature ID this overage allowed control applies to.
|
|
@@ -2511,7 +2548,6 @@ type PlanVariantDetailsBillingControls1 = {
|
|
|
2511
2548
|
*/
|
|
2512
2549
|
overageAllowed?: Array<PlanVariantDetailsOverageAllowed1> | undefined;
|
|
2513
2550
|
};
|
|
2514
|
-
|
|
2515
2551
|
/**
|
|
2516
2552
|
* Billing interval (e.g. 'month', 'year').
|
|
2517
2553
|
*/
|
|
@@ -2786,6 +2822,16 @@ type UpsertLicenseExpiry = {
|
|
|
2786
2822
|
duration: UpsertLicenseDuration;
|
|
2787
2823
|
length: number;
|
|
2788
2824
|
};
|
|
2825
|
+
type PlanCreditSchemaUpsertLicense3 = {
|
|
2826
|
+
/**
|
|
2827
|
+
* ID of the metered feature to remove from the credit system.
|
|
2828
|
+
*/
|
|
2829
|
+
meteredFeatureId: string;
|
|
2830
|
+
/**
|
|
2831
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
2832
|
+
*/
|
|
2833
|
+
excluded: true;
|
|
2834
|
+
};
|
|
2789
2835
|
type PlanDimensionsUpsertLicense4 = {
|
|
2790
2836
|
/**
|
|
2791
2837
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -3004,9 +3050,9 @@ type UpsertLicenseMarkups = {
|
|
|
3004
3050
|
*/
|
|
3005
3051
|
type UpsertLicenseFeatureOverride = {
|
|
3006
3052
|
/**
|
|
3007
|
-
* For credit system features:
|
|
3053
|
+
* For credit system features: merges into the feature's credit_schema by metered_feature_id for customers on this plan. A row with a rate overrides or adds that feature, a row with `excluded: true` removes it, and unlisted features keep the credit system's rate.
|
|
3008
3054
|
*/
|
|
3009
|
-
creditSchema?: Array<PlanCreditSchemaUpsertLicense1 | PlanCreditSchemaUpsertLicense2> | undefined;
|
|
3055
|
+
creditSchema?: Array<PlanCreditSchemaUpsertLicense1 | PlanCreditSchemaUpsertLicense2 | PlanCreditSchemaUpsertLicense3> | undefined;
|
|
3010
3056
|
/**
|
|
3011
3057
|
* For AI credit system features: replaces the feature's markup chain entirely for customers on this plan. An unset level means no markup at that level rather than inheriting the feature's.
|
|
3012
3058
|
*/
|