autumn-js 1.4.48 → 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 +1659 -792
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +1659 -792
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +1659 -792
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +1659 -792
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +1659 -792
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-6LQFPGW7.mjs → chunk-4J2TOGWE.mjs} +220 -60
- package/dist/backend/{chunk-3BKOWATO.mjs → chunk-6X4JZECX.mjs} +1 -1
- package/dist/backend/{chunk-57HJE4EP.mjs → chunk-EUR3CZTF.mjs} +1 -1
- package/dist/backend/{chunk-JZB3BYQP.mjs → chunk-EVPPOVX5.mjs} +7 -7
- package/dist/backend/{chunk-MYD4ZJQG.mjs → chunk-L4HKBZCC.mjs} +1439 -732
- package/dist/backend/{chunk-YFKANU3R.mjs → chunk-N2SCUJPL.mjs} +5 -5
- package/dist/backend/{chunk-XJDT6H4H.mjs → chunk-QPDWSMZ5.mjs} +1 -1
- package/dist/backend/{chunk-SO54V4AE.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 +1659 -792
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- 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 +1659 -792
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- 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 +1659 -792
- 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 +1659 -792
- package/dist/backend/core/index.mjs +10 -10
- 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 +2 -2
- 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 +2 -2
- 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 +1659 -792
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-X7n9tC0I.d.mts → routeTypes-C_10hxA-.d.mts} +642 -130
- package/dist/backend/{routeTypes-dgoLP-JI.d.ts → routeTypes-CqaUPWtn.d.ts} +642 -130
- package/dist/better-auth/{chunk-HXNWUYPW.mjs → chunk-44MLRR2L.mjs} +1440 -733
- 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 +1659 -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 +1659 -792
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +1659 -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-A48nR0Yu.d.mts → customer-BK_WEJ0J.d.mts} +1 -1
- package/dist/react/{customer-CwfTBZ-l.d.ts → customer-CGLAquo9.d.ts} +1 -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-BSFOou5d.d.ts → list-plans-response-BMWMbzkK.d.ts} +89 -20
- package/dist/react/{list-plans-response-CC-3erse.d.mts → list-plans-response-kbT4GwSh.d.mts} +89 -20
- package/dist/react/{params-CXQcikIK.d.mts → params-D_8sPp60.d.ts} +210 -40
- package/dist/react/{params-iVVzwH_e.d.ts → params-eTM9nRBb.d.mts} +210 -40
- package/dist/react/{plan-DoD803CO.d.mts → plan-Dji-zdws.d.mts} +37 -7
- package/dist/react/{plan-DoD803CO.d.ts → plan-Dji-zdws.d.ts} +37 -7
- package/dist/sdk/index.d.mts +2013 -1205
- package/dist/sdk/index.d.ts +2013 -1205
- package/dist/sdk/index.js +21222 -20050
- package/dist/sdk/index.mjs +21120 -20050
- package/package.json +2 -2
- package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OpenEnum, C as ClosedEnum, P as Plan } from './plan-
|
|
1
|
+
import { O as OpenEnum, C as ClosedEnum, P as Plan } from './plan-Dji-zdws.js';
|
|
2
2
|
|
|
3
3
|
type ListPlansAdditionalCurrency = {
|
|
4
4
|
/**
|
|
@@ -348,6 +348,16 @@ type ListPlansItemExpiry = {
|
|
|
348
348
|
duration: ListPlansItemDuration;
|
|
349
349
|
length: number;
|
|
350
350
|
};
|
|
351
|
+
type ListPlansCreditSchemaItemFeatureOverride3 = {
|
|
352
|
+
/**
|
|
353
|
+
* ID of the metered feature to remove from the credit system.
|
|
354
|
+
*/
|
|
355
|
+
meteredFeatureId: string;
|
|
356
|
+
/**
|
|
357
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
358
|
+
*/
|
|
359
|
+
excluded: true;
|
|
360
|
+
};
|
|
351
361
|
type ListPlansDimensionsItem4 = {
|
|
352
362
|
/**
|
|
353
363
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -566,9 +576,9 @@ type ListPlansItemMarkups = {
|
|
|
566
576
|
*/
|
|
567
577
|
type ListPlansItemFeatureOverride = {
|
|
568
578
|
/**
|
|
569
|
-
* For credit system features:
|
|
579
|
+
* 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.
|
|
570
580
|
*/
|
|
571
|
-
creditSchema?: Array<ListPlansCreditSchemaItemFeatureOverride1 | ListPlansCreditSchemaItemFeatureOverride2> | undefined;
|
|
581
|
+
creditSchema?: Array<ListPlansCreditSchemaItemFeatureOverride1 | ListPlansCreditSchemaItemFeatureOverride2 | ListPlansCreditSchemaItemFeatureOverride3> | undefined;
|
|
572
582
|
/**
|
|
573
583
|
* 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.
|
|
574
584
|
*/
|
|
@@ -1290,6 +1300,16 @@ type ListPlansVariantDetailsExpiry = {
|
|
|
1290
1300
|
duration: ListPlansVariantDetailsDuration;
|
|
1291
1301
|
length: number;
|
|
1292
1302
|
};
|
|
1303
|
+
type ListPlansCreditSchemaVariantDetails3 = {
|
|
1304
|
+
/**
|
|
1305
|
+
* ID of the metered feature to remove from the credit system.
|
|
1306
|
+
*/
|
|
1307
|
+
meteredFeatureId: string;
|
|
1308
|
+
/**
|
|
1309
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
1310
|
+
*/
|
|
1311
|
+
excluded: true;
|
|
1312
|
+
};
|
|
1293
1313
|
type ListPlansDimensionsVariantDetails4 = {
|
|
1294
1314
|
/**
|
|
1295
1315
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -1508,9 +1528,9 @@ type ListPlansVariantDetailsMarkups = {
|
|
|
1508
1528
|
*/
|
|
1509
1529
|
type ListPlansVariantDetailsFeatureOverride = {
|
|
1510
1530
|
/**
|
|
1511
|
-
* For credit system features:
|
|
1531
|
+
* 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.
|
|
1512
1532
|
*/
|
|
1513
|
-
creditSchema?: Array<ListPlansCreditSchemaVariantDetails1 | ListPlansCreditSchemaVariantDetails2> | undefined;
|
|
1533
|
+
creditSchema?: Array<ListPlansCreditSchemaVariantDetails1 | ListPlansCreditSchemaVariantDetails2 | ListPlansCreditSchemaVariantDetails3> | undefined;
|
|
1514
1534
|
/**
|
|
1515
1535
|
* 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.
|
|
1516
1536
|
*/
|
|
@@ -1843,6 +1863,7 @@ declare const ListPlansVariantDetailsBasis: {
|
|
|
1843
1863
|
* What 100% means. balance: every grant on the feature. included: the plan allowance only. recurring: grants that reset. usage_limit: the cap of the usage limit with the same feature and filter.
|
|
1844
1864
|
*/
|
|
1845
1865
|
type ListPlansVariantDetailsBasis = OpenEnum<typeof ListPlansVariantDetailsBasis>;
|
|
1866
|
+
|
|
1846
1867
|
/**
|
|
1847
1868
|
* Only valid with basis usage_limit. Points the alert at the usage limit carrying the same filter.
|
|
1848
1869
|
*/
|
|
@@ -1881,7 +1902,6 @@ type ListPlansVariantDetailsUsageAlert = {
|
|
|
1881
1902
|
*/
|
|
1882
1903
|
name?: string | undefined;
|
|
1883
1904
|
};
|
|
1884
|
-
|
|
1885
1905
|
type ListPlansVariantDetailsOverageAllowed = {
|
|
1886
1906
|
/**
|
|
1887
1907
|
* The feature ID this overage allowed control applies to.
|
|
@@ -2191,6 +2211,16 @@ type ListPlansVariantDetailsUpsertLicenseExpiry = {
|
|
|
2191
2211
|
duration: ListPlansVariantDetailsUpsertLicenseDuration;
|
|
2192
2212
|
length: number;
|
|
2193
2213
|
};
|
|
2214
|
+
type ListPlansCreditSchemaVariantDetailsUpsertLicense3 = {
|
|
2215
|
+
/**
|
|
2216
|
+
* ID of the metered feature to remove from the credit system.
|
|
2217
|
+
*/
|
|
2218
|
+
meteredFeatureId: string;
|
|
2219
|
+
/**
|
|
2220
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
2221
|
+
*/
|
|
2222
|
+
excluded: true;
|
|
2223
|
+
};
|
|
2194
2224
|
type ListPlansDimensionsVariantDetailsUpsertLicense4 = {
|
|
2195
2225
|
/**
|
|
2196
2226
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -2409,9 +2439,9 @@ type ListPlansVariantDetailsUpsertLicenseMarkups = {
|
|
|
2409
2439
|
*/
|
|
2410
2440
|
type ListPlansVariantDetailsUpsertLicenseFeatureOverride = {
|
|
2411
2441
|
/**
|
|
2412
|
-
* For credit system features:
|
|
2442
|
+
* 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.
|
|
2413
2443
|
*/
|
|
2414
|
-
creditSchema?: Array<ListPlansCreditSchemaVariantDetailsUpsertLicense1 | ListPlansCreditSchemaVariantDetailsUpsertLicense2> | undefined;
|
|
2444
|
+
creditSchema?: Array<ListPlansCreditSchemaVariantDetailsUpsertLicense1 | ListPlansCreditSchemaVariantDetailsUpsertLicense2 | ListPlansCreditSchemaVariantDetailsUpsertLicense3> | undefined;
|
|
2415
2445
|
/**
|
|
2416
2446
|
* 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.
|
|
2417
2447
|
*/
|
|
@@ -2861,6 +2891,16 @@ type ListPlansLicenseExpiry = {
|
|
|
2861
2891
|
duration: ListPlansLicenseDuration;
|
|
2862
2892
|
length: number;
|
|
2863
2893
|
};
|
|
2894
|
+
type ListPlansCreditSchemaLicense3 = {
|
|
2895
|
+
/**
|
|
2896
|
+
* ID of the metered feature to remove from the credit system.
|
|
2897
|
+
*/
|
|
2898
|
+
meteredFeatureId: string;
|
|
2899
|
+
/**
|
|
2900
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
2901
|
+
*/
|
|
2902
|
+
excluded: true;
|
|
2903
|
+
};
|
|
2864
2904
|
type ListPlansDimensionsLicense4 = {
|
|
2865
2905
|
/**
|
|
2866
2906
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -3079,9 +3119,9 @@ type ListPlansLicenseMarkups = {
|
|
|
3079
3119
|
*/
|
|
3080
3120
|
type ListPlansLicenseFeatureOverride = {
|
|
3081
3121
|
/**
|
|
3082
|
-
* For credit system features:
|
|
3122
|
+
* 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.
|
|
3083
3123
|
*/
|
|
3084
|
-
creditSchema?: Array<ListPlansCreditSchemaLicense1 | ListPlansCreditSchemaLicense2> | undefined;
|
|
3124
|
+
creditSchema?: Array<ListPlansCreditSchemaLicense1 | ListPlansCreditSchemaLicense2 | ListPlansCreditSchemaLicense3> | undefined;
|
|
3085
3125
|
/**
|
|
3086
3126
|
* 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.
|
|
3087
3127
|
*/
|
|
@@ -3508,6 +3548,16 @@ type ListPlansVariantAddItemExpiry = {
|
|
|
3508
3548
|
duration: ListPlansVariantAddItemDuration;
|
|
3509
3549
|
length: number;
|
|
3510
3550
|
};
|
|
3551
|
+
type ListPlansCreditSchemaVariantAddItem3 = {
|
|
3552
|
+
/**
|
|
3553
|
+
* ID of the metered feature to remove from the credit system.
|
|
3554
|
+
*/
|
|
3555
|
+
meteredFeatureId: string;
|
|
3556
|
+
/**
|
|
3557
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
3558
|
+
*/
|
|
3559
|
+
excluded: true;
|
|
3560
|
+
};
|
|
3511
3561
|
type ListPlansDimensionsVariantAddItem4 = {
|
|
3512
3562
|
/**
|
|
3513
3563
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -3638,7 +3688,7 @@ type ListPlansDimensionsVariantAddItem1 = {
|
|
|
3638
3688
|
tierBehavior: "graduated";
|
|
3639
3689
|
tiers: Array<ListPlansDimensionsVariantAddItemTier1>;
|
|
3640
3690
|
};
|
|
3641
|
-
|
|
3691
|
+
|
|
3642
3692
|
type ListPlansVariantAddItemMultipliers1 = {
|
|
3643
3693
|
/**
|
|
3644
3694
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -3669,7 +3719,6 @@ type ListPlansVariantAddItemFeatureOverrideTier = {
|
|
|
3669
3719
|
*/
|
|
3670
3720
|
creditCost: number;
|
|
3671
3721
|
};
|
|
3672
|
-
|
|
3673
3722
|
type ListPlansCreditSchemaVariantAddItem1 = {
|
|
3674
3723
|
/**
|
|
3675
3724
|
* ID of the metered feature that draws from this credit system.
|
|
@@ -3683,7 +3732,7 @@ type ListPlansCreditSchemaVariantAddItem1 = {
|
|
|
3683
3732
|
* Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies.
|
|
3684
3733
|
*/
|
|
3685
3734
|
dimensions?: {
|
|
3686
|
-
[k: string]:
|
|
3735
|
+
[k: string]: ListPlansDimensionsVariantAddItem1 | ListPlansDimensionsVariantAddItem2;
|
|
3687
3736
|
} | undefined;
|
|
3688
3737
|
/**
|
|
3689
3738
|
* Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed.
|
|
@@ -3728,9 +3777,9 @@ type ListPlansVariantAddItemMarkups = {
|
|
|
3728
3777
|
*/
|
|
3729
3778
|
type ListPlansVariantAddItemFeatureOverride = {
|
|
3730
3779
|
/**
|
|
3731
|
-
* For credit system features:
|
|
3780
|
+
* 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.
|
|
3732
3781
|
*/
|
|
3733
|
-
creditSchema?: Array<ListPlansCreditSchemaVariantAddItem1 | ListPlansCreditSchemaVariantAddItem2> | undefined;
|
|
3782
|
+
creditSchema?: Array<ListPlansCreditSchemaVariantAddItem1 | ListPlansCreditSchemaVariantAddItem2 | ListPlansCreditSchemaVariantAddItem3> | undefined;
|
|
3734
3783
|
/**
|
|
3735
3784
|
* 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.
|
|
3736
3785
|
*/
|
|
@@ -4410,6 +4459,16 @@ type ListPlansVariantUpsertLicenseExpiry = {
|
|
|
4410
4459
|
duration: ListPlansVariantUpsertLicenseDuration;
|
|
4411
4460
|
length: number;
|
|
4412
4461
|
};
|
|
4462
|
+
type ListPlansCreditSchemaVariantUpsertLicense3 = {
|
|
4463
|
+
/**
|
|
4464
|
+
* ID of the metered feature to remove from the credit system.
|
|
4465
|
+
*/
|
|
4466
|
+
meteredFeatureId: string;
|
|
4467
|
+
/**
|
|
4468
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
4469
|
+
*/
|
|
4470
|
+
excluded: true;
|
|
4471
|
+
};
|
|
4413
4472
|
type ListPlansDimensionsVariantUpsertLicense4 = {
|
|
4414
4473
|
/**
|
|
4415
4474
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -4620,9 +4679,9 @@ type ListPlansVariantUpsertLicenseMarkups = {
|
|
|
4620
4679
|
*/
|
|
4621
4680
|
type ListPlansVariantUpsertLicenseFeatureOverride = {
|
|
4622
4681
|
/**
|
|
4623
|
-
* For credit system features:
|
|
4682
|
+
* 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.
|
|
4624
4683
|
*/
|
|
4625
|
-
creditSchema?: Array<ListPlansCreditSchemaVariantUpsertLicense1 | ListPlansCreditSchemaVariantUpsertLicense2> | undefined;
|
|
4684
|
+
creditSchema?: Array<ListPlansCreditSchemaVariantUpsertLicense1 | ListPlansCreditSchemaVariantUpsertLicense2 | ListPlansCreditSchemaVariantUpsertLicense3> | undefined;
|
|
4626
4685
|
/**
|
|
4627
4686
|
* 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.
|
|
4628
4687
|
*/
|
|
@@ -5133,6 +5192,16 @@ type VariantPlanExpiry = {
|
|
|
5133
5192
|
duration: VariantPlanDuration;
|
|
5134
5193
|
length: number;
|
|
5135
5194
|
};
|
|
5195
|
+
type CreditSchemaVariantPlanFeatureOverride3 = {
|
|
5196
|
+
/**
|
|
5197
|
+
* ID of the metered feature to remove from the credit system.
|
|
5198
|
+
*/
|
|
5199
|
+
meteredFeatureId: string;
|
|
5200
|
+
/**
|
|
5201
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
5202
|
+
*/
|
|
5203
|
+
excluded: true;
|
|
5204
|
+
};
|
|
5136
5205
|
type DimensionsVariantPlan4 = {
|
|
5137
5206
|
/**
|
|
5138
5207
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -5351,9 +5420,9 @@ type VariantPlanMarkups = {
|
|
|
5351
5420
|
*/
|
|
5352
5421
|
type VariantPlanFeatureOverride = {
|
|
5353
5422
|
/**
|
|
5354
|
-
* For credit system features:
|
|
5423
|
+
* 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.
|
|
5355
5424
|
*/
|
|
5356
|
-
creditSchema?: Array<CreditSchemaVariantPlanFeatureOverride1 | CreditSchemaVariantPlanFeatureOverride2> | undefined;
|
|
5425
|
+
creditSchema?: Array<CreditSchemaVariantPlanFeatureOverride1 | CreditSchemaVariantPlanFeatureOverride2 | CreditSchemaVariantPlanFeatureOverride3> | undefined;
|
|
5357
5426
|
/**
|
|
5358
5427
|
* 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.
|
|
5359
5428
|
*/
|
|
@@ -5495,6 +5564,7 @@ declare const VariantEnv: {
|
|
|
5495
5564
|
* Environment this plan belongs to ('sandbox' or 'live').
|
|
5496
5565
|
*/
|
|
5497
5566
|
type VariantEnv = OpenEnum<typeof VariantEnv>;
|
|
5567
|
+
|
|
5498
5568
|
/**
|
|
5499
5569
|
* Miscellaneous plan-level configuration flags.
|
|
5500
5570
|
*/
|
|
@@ -5610,7 +5680,6 @@ declare const VariantPlanUsageLimitInterval: {
|
|
|
5610
5680
|
* Interval for the cap, aligned to the customer's billing cycle.
|
|
5611
5681
|
*/
|
|
5612
5682
|
type VariantPlanUsageLimitInterval = OpenEnum<typeof VariantPlanUsageLimitInterval>;
|
|
5613
|
-
|
|
5614
5683
|
/**
|
|
5615
5684
|
* Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
|
|
5616
5685
|
*/
|
package/dist/react/{list-plans-response-CC-3erse.d.mts → list-plans-response-kbT4GwSh.d.mts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OpenEnum, C as ClosedEnum, P as Plan } from './plan-
|
|
1
|
+
import { O as OpenEnum, C as ClosedEnum, P as Plan } from './plan-Dji-zdws.mjs';
|
|
2
2
|
|
|
3
3
|
type ListPlansAdditionalCurrency = {
|
|
4
4
|
/**
|
|
@@ -348,6 +348,16 @@ type ListPlansItemExpiry = {
|
|
|
348
348
|
duration: ListPlansItemDuration;
|
|
349
349
|
length: number;
|
|
350
350
|
};
|
|
351
|
+
type ListPlansCreditSchemaItemFeatureOverride3 = {
|
|
352
|
+
/**
|
|
353
|
+
* ID of the metered feature to remove from the credit system.
|
|
354
|
+
*/
|
|
355
|
+
meteredFeatureId: string;
|
|
356
|
+
/**
|
|
357
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
358
|
+
*/
|
|
359
|
+
excluded: true;
|
|
360
|
+
};
|
|
351
361
|
type ListPlansDimensionsItem4 = {
|
|
352
362
|
/**
|
|
353
363
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -566,9 +576,9 @@ type ListPlansItemMarkups = {
|
|
|
566
576
|
*/
|
|
567
577
|
type ListPlansItemFeatureOverride = {
|
|
568
578
|
/**
|
|
569
|
-
* For credit system features:
|
|
579
|
+
* 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.
|
|
570
580
|
*/
|
|
571
|
-
creditSchema?: Array<ListPlansCreditSchemaItemFeatureOverride1 | ListPlansCreditSchemaItemFeatureOverride2> | undefined;
|
|
581
|
+
creditSchema?: Array<ListPlansCreditSchemaItemFeatureOverride1 | ListPlansCreditSchemaItemFeatureOverride2 | ListPlansCreditSchemaItemFeatureOverride3> | undefined;
|
|
572
582
|
/**
|
|
573
583
|
* 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.
|
|
574
584
|
*/
|
|
@@ -1290,6 +1300,16 @@ type ListPlansVariantDetailsExpiry = {
|
|
|
1290
1300
|
duration: ListPlansVariantDetailsDuration;
|
|
1291
1301
|
length: number;
|
|
1292
1302
|
};
|
|
1303
|
+
type ListPlansCreditSchemaVariantDetails3 = {
|
|
1304
|
+
/**
|
|
1305
|
+
* ID of the metered feature to remove from the credit system.
|
|
1306
|
+
*/
|
|
1307
|
+
meteredFeatureId: string;
|
|
1308
|
+
/**
|
|
1309
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
1310
|
+
*/
|
|
1311
|
+
excluded: true;
|
|
1312
|
+
};
|
|
1293
1313
|
type ListPlansDimensionsVariantDetails4 = {
|
|
1294
1314
|
/**
|
|
1295
1315
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -1508,9 +1528,9 @@ type ListPlansVariantDetailsMarkups = {
|
|
|
1508
1528
|
*/
|
|
1509
1529
|
type ListPlansVariantDetailsFeatureOverride = {
|
|
1510
1530
|
/**
|
|
1511
|
-
* For credit system features:
|
|
1531
|
+
* 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.
|
|
1512
1532
|
*/
|
|
1513
|
-
creditSchema?: Array<ListPlansCreditSchemaVariantDetails1 | ListPlansCreditSchemaVariantDetails2> | undefined;
|
|
1533
|
+
creditSchema?: Array<ListPlansCreditSchemaVariantDetails1 | ListPlansCreditSchemaVariantDetails2 | ListPlansCreditSchemaVariantDetails3> | undefined;
|
|
1514
1534
|
/**
|
|
1515
1535
|
* 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.
|
|
1516
1536
|
*/
|
|
@@ -1843,6 +1863,7 @@ declare const ListPlansVariantDetailsBasis: {
|
|
|
1843
1863
|
* What 100% means. balance: every grant on the feature. included: the plan allowance only. recurring: grants that reset. usage_limit: the cap of the usage limit with the same feature and filter.
|
|
1844
1864
|
*/
|
|
1845
1865
|
type ListPlansVariantDetailsBasis = OpenEnum<typeof ListPlansVariantDetailsBasis>;
|
|
1866
|
+
|
|
1846
1867
|
/**
|
|
1847
1868
|
* Only valid with basis usage_limit. Points the alert at the usage limit carrying the same filter.
|
|
1848
1869
|
*/
|
|
@@ -1881,7 +1902,6 @@ type ListPlansVariantDetailsUsageAlert = {
|
|
|
1881
1902
|
*/
|
|
1882
1903
|
name?: string | undefined;
|
|
1883
1904
|
};
|
|
1884
|
-
|
|
1885
1905
|
type ListPlansVariantDetailsOverageAllowed = {
|
|
1886
1906
|
/**
|
|
1887
1907
|
* The feature ID this overage allowed control applies to.
|
|
@@ -2191,6 +2211,16 @@ type ListPlansVariantDetailsUpsertLicenseExpiry = {
|
|
|
2191
2211
|
duration: ListPlansVariantDetailsUpsertLicenseDuration;
|
|
2192
2212
|
length: number;
|
|
2193
2213
|
};
|
|
2214
|
+
type ListPlansCreditSchemaVariantDetailsUpsertLicense3 = {
|
|
2215
|
+
/**
|
|
2216
|
+
* ID of the metered feature to remove from the credit system.
|
|
2217
|
+
*/
|
|
2218
|
+
meteredFeatureId: string;
|
|
2219
|
+
/**
|
|
2220
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
2221
|
+
*/
|
|
2222
|
+
excluded: true;
|
|
2223
|
+
};
|
|
2194
2224
|
type ListPlansDimensionsVariantDetailsUpsertLicense4 = {
|
|
2195
2225
|
/**
|
|
2196
2226
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -2409,9 +2439,9 @@ type ListPlansVariantDetailsUpsertLicenseMarkups = {
|
|
|
2409
2439
|
*/
|
|
2410
2440
|
type ListPlansVariantDetailsUpsertLicenseFeatureOverride = {
|
|
2411
2441
|
/**
|
|
2412
|
-
* For credit system features:
|
|
2442
|
+
* 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.
|
|
2413
2443
|
*/
|
|
2414
|
-
creditSchema?: Array<ListPlansCreditSchemaVariantDetailsUpsertLicense1 | ListPlansCreditSchemaVariantDetailsUpsertLicense2> | undefined;
|
|
2444
|
+
creditSchema?: Array<ListPlansCreditSchemaVariantDetailsUpsertLicense1 | ListPlansCreditSchemaVariantDetailsUpsertLicense2 | ListPlansCreditSchemaVariantDetailsUpsertLicense3> | undefined;
|
|
2415
2445
|
/**
|
|
2416
2446
|
* 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.
|
|
2417
2447
|
*/
|
|
@@ -2861,6 +2891,16 @@ type ListPlansLicenseExpiry = {
|
|
|
2861
2891
|
duration: ListPlansLicenseDuration;
|
|
2862
2892
|
length: number;
|
|
2863
2893
|
};
|
|
2894
|
+
type ListPlansCreditSchemaLicense3 = {
|
|
2895
|
+
/**
|
|
2896
|
+
* ID of the metered feature to remove from the credit system.
|
|
2897
|
+
*/
|
|
2898
|
+
meteredFeatureId: string;
|
|
2899
|
+
/**
|
|
2900
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
2901
|
+
*/
|
|
2902
|
+
excluded: true;
|
|
2903
|
+
};
|
|
2864
2904
|
type ListPlansDimensionsLicense4 = {
|
|
2865
2905
|
/**
|
|
2866
2906
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -3079,9 +3119,9 @@ type ListPlansLicenseMarkups = {
|
|
|
3079
3119
|
*/
|
|
3080
3120
|
type ListPlansLicenseFeatureOverride = {
|
|
3081
3121
|
/**
|
|
3082
|
-
* For credit system features:
|
|
3122
|
+
* 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.
|
|
3083
3123
|
*/
|
|
3084
|
-
creditSchema?: Array<ListPlansCreditSchemaLicense1 | ListPlansCreditSchemaLicense2> | undefined;
|
|
3124
|
+
creditSchema?: Array<ListPlansCreditSchemaLicense1 | ListPlansCreditSchemaLicense2 | ListPlansCreditSchemaLicense3> | undefined;
|
|
3085
3125
|
/**
|
|
3086
3126
|
* 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.
|
|
3087
3127
|
*/
|
|
@@ -3508,6 +3548,16 @@ type ListPlansVariantAddItemExpiry = {
|
|
|
3508
3548
|
duration: ListPlansVariantAddItemDuration;
|
|
3509
3549
|
length: number;
|
|
3510
3550
|
};
|
|
3551
|
+
type ListPlansCreditSchemaVariantAddItem3 = {
|
|
3552
|
+
/**
|
|
3553
|
+
* ID of the metered feature to remove from the credit system.
|
|
3554
|
+
*/
|
|
3555
|
+
meteredFeatureId: string;
|
|
3556
|
+
/**
|
|
3557
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
3558
|
+
*/
|
|
3559
|
+
excluded: true;
|
|
3560
|
+
};
|
|
3511
3561
|
type ListPlansDimensionsVariantAddItem4 = {
|
|
3512
3562
|
/**
|
|
3513
3563
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -3638,7 +3688,7 @@ type ListPlansDimensionsVariantAddItem1 = {
|
|
|
3638
3688
|
tierBehavior: "graduated";
|
|
3639
3689
|
tiers: Array<ListPlansDimensionsVariantAddItemTier1>;
|
|
3640
3690
|
};
|
|
3641
|
-
|
|
3691
|
+
|
|
3642
3692
|
type ListPlansVariantAddItemMultipliers1 = {
|
|
3643
3693
|
/**
|
|
3644
3694
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -3669,7 +3719,6 @@ type ListPlansVariantAddItemFeatureOverrideTier = {
|
|
|
3669
3719
|
*/
|
|
3670
3720
|
creditCost: number;
|
|
3671
3721
|
};
|
|
3672
|
-
|
|
3673
3722
|
type ListPlansCreditSchemaVariantAddItem1 = {
|
|
3674
3723
|
/**
|
|
3675
3724
|
* ID of the metered feature that draws from this credit system.
|
|
@@ -3683,7 +3732,7 @@ type ListPlansCreditSchemaVariantAddItem1 = {
|
|
|
3683
3732
|
* Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies.
|
|
3684
3733
|
*/
|
|
3685
3734
|
dimensions?: {
|
|
3686
|
-
[k: string]:
|
|
3735
|
+
[k: string]: ListPlansDimensionsVariantAddItem1 | ListPlansDimensionsVariantAddItem2;
|
|
3687
3736
|
} | undefined;
|
|
3688
3737
|
/**
|
|
3689
3738
|
* Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed.
|
|
@@ -3728,9 +3777,9 @@ type ListPlansVariantAddItemMarkups = {
|
|
|
3728
3777
|
*/
|
|
3729
3778
|
type ListPlansVariantAddItemFeatureOverride = {
|
|
3730
3779
|
/**
|
|
3731
|
-
* For credit system features:
|
|
3780
|
+
* 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.
|
|
3732
3781
|
*/
|
|
3733
|
-
creditSchema?: Array<ListPlansCreditSchemaVariantAddItem1 | ListPlansCreditSchemaVariantAddItem2> | undefined;
|
|
3782
|
+
creditSchema?: Array<ListPlansCreditSchemaVariantAddItem1 | ListPlansCreditSchemaVariantAddItem2 | ListPlansCreditSchemaVariantAddItem3> | undefined;
|
|
3734
3783
|
/**
|
|
3735
3784
|
* 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.
|
|
3736
3785
|
*/
|
|
@@ -4410,6 +4459,16 @@ type ListPlansVariantUpsertLicenseExpiry = {
|
|
|
4410
4459
|
duration: ListPlansVariantUpsertLicenseDuration;
|
|
4411
4460
|
length: number;
|
|
4412
4461
|
};
|
|
4462
|
+
type ListPlansCreditSchemaVariantUpsertLicense3 = {
|
|
4463
|
+
/**
|
|
4464
|
+
* ID of the metered feature to remove from the credit system.
|
|
4465
|
+
*/
|
|
4466
|
+
meteredFeatureId: string;
|
|
4467
|
+
/**
|
|
4468
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
4469
|
+
*/
|
|
4470
|
+
excluded: true;
|
|
4471
|
+
};
|
|
4413
4472
|
type ListPlansDimensionsVariantUpsertLicense4 = {
|
|
4414
4473
|
/**
|
|
4415
4474
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -4620,9 +4679,9 @@ type ListPlansVariantUpsertLicenseMarkups = {
|
|
|
4620
4679
|
*/
|
|
4621
4680
|
type ListPlansVariantUpsertLicenseFeatureOverride = {
|
|
4622
4681
|
/**
|
|
4623
|
-
* For credit system features:
|
|
4682
|
+
* 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.
|
|
4624
4683
|
*/
|
|
4625
|
-
creditSchema?: Array<ListPlansCreditSchemaVariantUpsertLicense1 | ListPlansCreditSchemaVariantUpsertLicense2> | undefined;
|
|
4684
|
+
creditSchema?: Array<ListPlansCreditSchemaVariantUpsertLicense1 | ListPlansCreditSchemaVariantUpsertLicense2 | ListPlansCreditSchemaVariantUpsertLicense3> | undefined;
|
|
4626
4685
|
/**
|
|
4627
4686
|
* 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.
|
|
4628
4687
|
*/
|
|
@@ -5133,6 +5192,16 @@ type VariantPlanExpiry = {
|
|
|
5133
5192
|
duration: VariantPlanDuration;
|
|
5134
5193
|
length: number;
|
|
5135
5194
|
};
|
|
5195
|
+
type CreditSchemaVariantPlanFeatureOverride3 = {
|
|
5196
|
+
/**
|
|
5197
|
+
* ID of the metered feature to remove from the credit system.
|
|
5198
|
+
*/
|
|
5199
|
+
meteredFeatureId: string;
|
|
5200
|
+
/**
|
|
5201
|
+
* Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
|
|
5202
|
+
*/
|
|
5203
|
+
excluded: true;
|
|
5204
|
+
};
|
|
5136
5205
|
type DimensionsVariantPlan4 = {
|
|
5137
5206
|
/**
|
|
5138
5207
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -5351,9 +5420,9 @@ type VariantPlanMarkups = {
|
|
|
5351
5420
|
*/
|
|
5352
5421
|
type VariantPlanFeatureOverride = {
|
|
5353
5422
|
/**
|
|
5354
|
-
* For credit system features:
|
|
5423
|
+
* 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.
|
|
5355
5424
|
*/
|
|
5356
|
-
creditSchema?: Array<CreditSchemaVariantPlanFeatureOverride1 | CreditSchemaVariantPlanFeatureOverride2> | undefined;
|
|
5425
|
+
creditSchema?: Array<CreditSchemaVariantPlanFeatureOverride1 | CreditSchemaVariantPlanFeatureOverride2 | CreditSchemaVariantPlanFeatureOverride3> | undefined;
|
|
5357
5426
|
/**
|
|
5358
5427
|
* 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.
|
|
5359
5428
|
*/
|
|
@@ -5495,6 +5564,7 @@ declare const VariantEnv: {
|
|
|
5495
5564
|
* Environment this plan belongs to ('sandbox' or 'live').
|
|
5496
5565
|
*/
|
|
5497
5566
|
type VariantEnv = OpenEnum<typeof VariantEnv>;
|
|
5567
|
+
|
|
5498
5568
|
/**
|
|
5499
5569
|
* Miscellaneous plan-level configuration flags.
|
|
5500
5570
|
*/
|
|
@@ -5610,7 +5680,6 @@ declare const VariantPlanUsageLimitInterval: {
|
|
|
5610
5680
|
* Interval for the cap, aligned to the customer's billing cycle.
|
|
5611
5681
|
*/
|
|
5612
5682
|
type VariantPlanUsageLimitInterval = OpenEnum<typeof VariantPlanUsageLimitInterval>;
|
|
5613
|
-
|
|
5614
5683
|
/**
|
|
5615
5684
|
* Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
|
|
5616
5685
|
*/
|