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.
Files changed (119) hide show
  1. package/dist/backend/adapters/express.js +1659 -792
  2. package/dist/backend/adapters/express.mjs +9 -9
  3. package/dist/backend/adapters/fetch.js +1659 -792
  4. package/dist/backend/adapters/fetch.mjs +9 -9
  5. package/dist/backend/adapters/hono.js +1659 -792
  6. package/dist/backend/adapters/hono.mjs +9 -9
  7. package/dist/backend/adapters/index.js +1659 -792
  8. package/dist/backend/adapters/index.mjs +12 -12
  9. package/dist/backend/adapters/next.js +1659 -792
  10. package/dist/backend/adapters/next.mjs +9 -9
  11. package/dist/backend/{chunk-6LQFPGW7.mjs → chunk-4J2TOGWE.mjs} +220 -60
  12. package/dist/backend/{chunk-3BKOWATO.mjs → chunk-6X4JZECX.mjs} +1 -1
  13. package/dist/backend/{chunk-57HJE4EP.mjs → chunk-EUR3CZTF.mjs} +1 -1
  14. package/dist/backend/{chunk-JZB3BYQP.mjs → chunk-EVPPOVX5.mjs} +7 -7
  15. package/dist/backend/{chunk-MYD4ZJQG.mjs → chunk-L4HKBZCC.mjs} +1439 -732
  16. package/dist/backend/{chunk-YFKANU3R.mjs → chunk-N2SCUJPL.mjs} +5 -5
  17. package/dist/backend/{chunk-XJDT6H4H.mjs → chunk-QPDWSMZ5.mjs} +1 -1
  18. package/dist/backend/{chunk-SO54V4AE.mjs → chunk-XIBFK5EL.mjs} +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  21. package/dist/backend/core/handlers/coreHandler.js +1659 -792
  22. package/dist/backend/core/handlers/coreHandler.mjs +7 -7
  23. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  25. package/dist/backend/core/handlers/executeRoute.mjs +4 -4
  26. package/dist/backend/core/handlers/handleRouteByName.js +1659 -792
  27. package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
  28. package/dist/backend/core/handlers/index.d.mts +1 -1
  29. package/dist/backend/core/handlers/index.d.ts +1 -1
  30. package/dist/backend/core/handlers/index.js +1659 -792
  31. package/dist/backend/core/handlers/index.mjs +10 -10
  32. package/dist/backend/core/index.d.mts +1 -1
  33. package/dist/backend/core/index.d.ts +1 -1
  34. package/dist/backend/core/index.js +1659 -792
  35. package/dist/backend/core/index.mjs +10 -10
  36. package/dist/backend/core/routes/index.d.mts +1 -1
  37. package/dist/backend/core/routes/index.d.ts +1 -1
  38. package/dist/backend/core/routes/index.js +220 -60
  39. package/dist/backend/core/routes/index.mjs +2 -2
  40. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  41. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  43. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  44. package/dist/backend/core/routes/routeConfigs.js +220 -60
  45. package/dist/backend/core/routes/routeConfigs.mjs +2 -2
  46. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  47. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  48. package/dist/backend/core/types/index.d.mts +1 -1
  49. package/dist/backend/core/types/index.d.ts +1 -1
  50. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  51. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  52. package/dist/backend/core/utils/index.mjs +3 -3
  53. package/dist/backend/index.d.mts +2 -2
  54. package/dist/backend/index.d.ts +2 -2
  55. package/dist/backend/index.js +1659 -792
  56. package/dist/backend/index.mjs +10 -10
  57. package/dist/backend/{routeTypes-X7n9tC0I.d.mts → routeTypes-C_10hxA-.d.mts} +642 -130
  58. package/dist/backend/{routeTypes-dgoLP-JI.d.ts → routeTypes-CqaUPWtn.d.ts} +642 -130
  59. package/dist/better-auth/{chunk-HXNWUYPW.mjs → chunk-44MLRR2L.mjs} +1440 -733
  60. package/dist/better-auth/{chunk-XMGJ2JOK.mjs → chunk-TX2WZUZT.mjs} +1 -1
  61. package/dist/better-auth/{chunk-7UPP5FN5.mjs → chunk-ZHYDDOAE.mjs} +220 -60
  62. package/dist/better-auth/index.js +1659 -792
  63. package/dist/better-auth/index.mjs +3 -3
  64. package/dist/better-auth/utils/createAutumnEndpoint.js +220 -60
  65. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  66. package/dist/better-auth/utils/handleBetterAuthRoute.js +1659 -792
  67. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  68. package/dist/better-auth/utils/index.js +1659 -792
  69. package/dist/better-auth/utils/index.mjs +3 -3
  70. package/dist/react/AutumnContext.d.mts +4 -4
  71. package/dist/react/AutumnContext.d.ts +4 -4
  72. package/dist/react/client/AutumnClient.d.mts +4 -4
  73. package/dist/react/client/AutumnClient.d.ts +4 -4
  74. package/dist/react/client/IAutumnClient.d.mts +4 -4
  75. package/dist/react/client/IAutumnClient.d.ts +4 -4
  76. package/dist/react/client/index.d.mts +4 -4
  77. package/dist/react/client/index.d.ts +4 -4
  78. package/dist/react/{customer-A48nR0Yu.d.mts → customer-BK_WEJ0J.d.mts} +1 -1
  79. package/dist/react/{customer-CwfTBZ-l.d.ts → customer-CGLAquo9.d.ts} +1 -1
  80. package/dist/react/hooks/index.d.mts +4 -4
  81. package/dist/react/hooks/index.d.ts +4 -4
  82. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  83. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  84. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  85. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  86. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  87. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  88. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  89. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  90. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  91. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  92. package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -4
  93. package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
  94. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  95. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  96. package/dist/react/hooks/useCustomer.d.mts +3 -3
  97. package/dist/react/hooks/useCustomer.d.ts +3 -3
  98. package/dist/react/hooks/useEntity.d.mts +2 -2
  99. package/dist/react/hooks/useEntity.d.ts +2 -2
  100. package/dist/react/hooks/useListEvents.d.mts +2 -2
  101. package/dist/react/hooks/useListEvents.d.ts +2 -2
  102. package/dist/react/hooks/useListPlans.d.mts +3 -3
  103. package/dist/react/hooks/useListPlans.d.ts +3 -3
  104. package/dist/react/hooks/useReferrals.d.mts +2 -2
  105. package/dist/react/hooks/useReferrals.d.ts +2 -2
  106. package/dist/react/index.d.mts +4 -4
  107. package/dist/react/index.d.ts +4 -4
  108. package/dist/react/{list-plans-response-BSFOou5d.d.ts → list-plans-response-BMWMbzkK.d.ts} +89 -20
  109. package/dist/react/{list-plans-response-CC-3erse.d.mts → list-plans-response-kbT4GwSh.d.mts} +89 -20
  110. package/dist/react/{params-CXQcikIK.d.mts → params-D_8sPp60.d.ts} +210 -40
  111. package/dist/react/{params-iVVzwH_e.d.ts → params-eTM9nRBb.d.mts} +210 -40
  112. package/dist/react/{plan-DoD803CO.d.mts → plan-Dji-zdws.d.mts} +37 -7
  113. package/dist/react/{plan-DoD803CO.d.ts → plan-Dji-zdws.d.ts} +37 -7
  114. package/dist/sdk/index.d.mts +2013 -1205
  115. package/dist/sdk/index.d.ts +2013 -1205
  116. package/dist/sdk/index.js +21222 -20050
  117. package/dist/sdk/index.mjs +21120 -20050
  118. package/package.json +2 -2
  119. package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
@@ -1,4 +1,4 @@
1
- import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-DoD803CO.js';
1
+ import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-Dji-zdws.mjs';
2
2
 
3
3
  /**
4
4
  * Time range to aggregate events for. Either range or custom_range must be provided
@@ -569,6 +569,16 @@ type AttachItemExpiry = {
569
569
  duration: AttachItemDuration;
570
570
  length: number;
571
571
  };
572
+ type AttachCreditSchemaItem3 = {
573
+ /**
574
+ * ID of the metered feature to remove from the credit system.
575
+ */
576
+ meteredFeatureId: string;
577
+ /**
578
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
579
+ */
580
+ excluded: true;
581
+ };
572
582
  type AttachDimensionsItem4 = {
573
583
  /**
574
584
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -787,9 +797,9 @@ type AttachItemMarkups = {
787
797
  */
788
798
  type AttachItemFeatureOverride = {
789
799
  /**
790
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
800
+ * 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.
791
801
  */
792
- creditSchema?: Array<AttachCreditSchemaItem1 | AttachCreditSchemaItem2> | undefined;
802
+ creditSchema?: Array<AttachCreditSchemaItem1 | AttachCreditSchemaItem2 | AttachCreditSchemaItem3> | undefined;
793
803
  /**
794
804
  * 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.
795
805
  */
@@ -1075,6 +1085,16 @@ type AttachAddItemExpiry = {
1075
1085
  duration: AttachAddItemDuration;
1076
1086
  length: number;
1077
1087
  };
1088
+ type AttachCreditSchemaAddItem3 = {
1089
+ /**
1090
+ * ID of the metered feature to remove from the credit system.
1091
+ */
1092
+ meteredFeatureId: string;
1093
+ /**
1094
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
1095
+ */
1096
+ excluded: true;
1097
+ };
1078
1098
  type AttachDimensionsAddItem4 = {
1079
1099
  /**
1080
1100
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -1293,9 +1313,9 @@ type AttachAddItemMarkups = {
1293
1313
  */
1294
1314
  type AttachAddItemFeatureOverride = {
1295
1315
  /**
1296
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
1316
+ * 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.
1297
1317
  */
1298
- creditSchema?: Array<AttachCreditSchemaAddItem1 | AttachCreditSchemaAddItem2> | undefined;
1318
+ creditSchema?: Array<AttachCreditSchemaAddItem1 | AttachCreditSchemaAddItem2 | AttachCreditSchemaAddItem3> | undefined;
1299
1319
  /**
1300
1320
  * 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.
1301
1321
  */
@@ -1932,6 +1952,7 @@ type AttachUpsertLicenseProration = {
1932
1952
  */
1933
1953
  onDecrease: AttachUpsertLicenseOnDecrease;
1934
1954
  };
1955
+
1935
1956
  /**
1936
1957
  * When rolled over units expire.
1937
1958
  */
@@ -1964,7 +1985,6 @@ type AttachUpsertLicenseRollover = {
1964
1985
  */
1965
1986
  expiryDurationLength?: number | undefined;
1966
1987
  };
1967
-
1968
1988
  declare const AttachUpsertLicenseDuration: {
1969
1989
  readonly Day: "day";
1970
1990
  readonly Week: "week";
@@ -1979,6 +1999,16 @@ type AttachUpsertLicenseExpiry = {
1979
1999
  duration: AttachUpsertLicenseDuration;
1980
2000
  length: number;
1981
2001
  };
2002
+ type AttachCreditSchemaUpsertLicense3 = {
2003
+ /**
2004
+ * ID of the metered feature to remove from the credit system.
2005
+ */
2006
+ meteredFeatureId: string;
2007
+ /**
2008
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
2009
+ */
2010
+ excluded: true;
2011
+ };
1982
2012
  type AttachDimensionsUpsertLicense4 = {
1983
2013
  /**
1984
2014
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -2197,9 +2227,9 @@ type AttachUpsertLicenseMarkups = {
2197
2227
  */
2198
2228
  type AttachUpsertLicenseFeatureOverride = {
2199
2229
  /**
2200
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
2230
+ * 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.
2201
2231
  */
2202
- creditSchema?: Array<AttachCreditSchemaUpsertLicense1 | AttachCreditSchemaUpsertLicense2> | undefined;
2232
+ creditSchema?: Array<AttachCreditSchemaUpsertLicense1 | AttachCreditSchemaUpsertLicense2 | AttachCreditSchemaUpsertLicense3> | undefined;
2203
2233
  /**
2204
2234
  * 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.
2205
2235
  */
@@ -3368,6 +3398,16 @@ type BillingUpdateItemExpiry = {
3368
3398
  duration: BillingUpdateItemDuration;
3369
3399
  length: number;
3370
3400
  };
3401
+ type BillingUpdateCreditSchemaItem3 = {
3402
+ /**
3403
+ * ID of the metered feature to remove from the credit system.
3404
+ */
3405
+ meteredFeatureId: string;
3406
+ /**
3407
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
3408
+ */
3409
+ excluded: true;
3410
+ };
3371
3411
  type BillingUpdateDimensionsItem4 = {
3372
3412
  /**
3373
3413
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -3586,9 +3626,9 @@ type BillingUpdateItemMarkups = {
3586
3626
  */
3587
3627
  type BillingUpdateItemFeatureOverride = {
3588
3628
  /**
3589
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
3629
+ * 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.
3590
3630
  */
3591
- creditSchema?: Array<BillingUpdateCreditSchemaItem1 | BillingUpdateCreditSchemaItem2> | undefined;
3631
+ creditSchema?: Array<BillingUpdateCreditSchemaItem1 | BillingUpdateCreditSchemaItem2 | BillingUpdateCreditSchemaItem3> | undefined;
3592
3632
  /**
3593
3633
  * 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.
3594
3634
  */
@@ -3874,6 +3914,16 @@ type BillingUpdateAddItemExpiry = {
3874
3914
  duration: BillingUpdateAddItemDuration;
3875
3915
  length: number;
3876
3916
  };
3917
+ type BillingUpdateCreditSchemaAddItem3 = {
3918
+ /**
3919
+ * ID of the metered feature to remove from the credit system.
3920
+ */
3921
+ meteredFeatureId: string;
3922
+ /**
3923
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
3924
+ */
3925
+ excluded: true;
3926
+ };
3877
3927
  type BillingUpdateDimensionsAddItem4 = {
3878
3928
  /**
3879
3929
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -4092,9 +4142,9 @@ type BillingUpdateAddItemMarkups = {
4092
4142
  */
4093
4143
  type BillingUpdateAddItemFeatureOverride = {
4094
4144
  /**
4095
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
4145
+ * 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.
4096
4146
  */
4097
- creditSchema?: Array<BillingUpdateCreditSchemaAddItem1 | BillingUpdateCreditSchemaAddItem2> | undefined;
4147
+ creditSchema?: Array<BillingUpdateCreditSchemaAddItem1 | BillingUpdateCreditSchemaAddItem2 | BillingUpdateCreditSchemaAddItem3> | undefined;
4098
4148
  /**
4099
4149
  * 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.
4100
4150
  */
@@ -4731,6 +4781,7 @@ type BillingUpdateUpsertLicenseProration = {
4731
4781
  */
4732
4782
  onDecrease: BillingUpdateUpsertLicenseOnDecrease;
4733
4783
  };
4784
+
4734
4785
  /**
4735
4786
  * When rolled over units expire.
4736
4787
  */
@@ -4763,7 +4814,6 @@ type BillingUpdateUpsertLicenseRollover = {
4763
4814
  */
4764
4815
  expiryDurationLength?: number | undefined;
4765
4816
  };
4766
-
4767
4817
  declare const BillingUpdateUpsertLicenseDuration: {
4768
4818
  readonly Day: "day";
4769
4819
  readonly Week: "week";
@@ -4778,6 +4828,16 @@ type BillingUpdateUpsertLicenseExpiry = {
4778
4828
  duration: BillingUpdateUpsertLicenseDuration;
4779
4829
  length: number;
4780
4830
  };
4831
+ type BillingUpdateCreditSchemaUpsertLicense3 = {
4832
+ /**
4833
+ * ID of the metered feature to remove from the credit system.
4834
+ */
4835
+ meteredFeatureId: string;
4836
+ /**
4837
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
4838
+ */
4839
+ excluded: true;
4840
+ };
4781
4841
  type BillingUpdateDimensionsUpsertLicense4 = {
4782
4842
  /**
4783
4843
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -4996,9 +5056,9 @@ type BillingUpdateUpsertLicenseMarkups = {
4996
5056
  */
4997
5057
  type BillingUpdateUpsertLicenseFeatureOverride = {
4998
5058
  /**
4999
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
5059
+ * 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.
5000
5060
  */
5001
- creditSchema?: Array<BillingUpdateCreditSchemaUpsertLicense1 | BillingUpdateCreditSchemaUpsertLicense2> | undefined;
5061
+ creditSchema?: Array<BillingUpdateCreditSchemaUpsertLicense1 | BillingUpdateCreditSchemaUpsertLicense2 | BillingUpdateCreditSchemaUpsertLicense3> | undefined;
5002
5062
  /**
5003
5063
  * 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.
5004
5064
  */
@@ -9510,6 +9570,16 @@ type MultiAttachExpiry = {
9510
9570
  duration: MultiAttachDuration;
9511
9571
  length: number;
9512
9572
  };
9573
+ type MultiAttachCreditSchema3 = {
9574
+ /**
9575
+ * ID of the metered feature to remove from the credit system.
9576
+ */
9577
+ meteredFeatureId: string;
9578
+ /**
9579
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
9580
+ */
9581
+ excluded: true;
9582
+ };
9513
9583
  type MultiAttachDimensions4 = {
9514
9584
  /**
9515
9585
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -9728,9 +9798,9 @@ type MultiAttachMarkups = {
9728
9798
  */
9729
9799
  type MultiAttachFeatureOverride = {
9730
9800
  /**
9731
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
9801
+ * 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.
9732
9802
  */
9733
- creditSchema?: Array<MultiAttachCreditSchema1 | MultiAttachCreditSchema2> | undefined;
9803
+ creditSchema?: Array<MultiAttachCreditSchema1 | MultiAttachCreditSchema2 | MultiAttachCreditSchema3> | undefined;
9734
9804
  /**
9735
9805
  * 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.
9736
9806
  */
@@ -10689,6 +10759,16 @@ type PreviewAttachItemExpiry = {
10689
10759
  duration: PreviewAttachItemDuration;
10690
10760
  length: number;
10691
10761
  };
10762
+ type PreviewAttachCreditSchemaItem3 = {
10763
+ /**
10764
+ * ID of the metered feature to remove from the credit system.
10765
+ */
10766
+ meteredFeatureId: string;
10767
+ /**
10768
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
10769
+ */
10770
+ excluded: true;
10771
+ };
10692
10772
  type PreviewAttachDimensionsItem4 = {
10693
10773
  /**
10694
10774
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -10907,9 +10987,9 @@ type PreviewAttachItemMarkups = {
10907
10987
  */
10908
10988
  type PreviewAttachItemFeatureOverride = {
10909
10989
  /**
10910
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
10990
+ * 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.
10911
10991
  */
10912
- creditSchema?: Array<PreviewAttachCreditSchemaItem1 | PreviewAttachCreditSchemaItem2> | undefined;
10992
+ creditSchema?: Array<PreviewAttachCreditSchemaItem1 | PreviewAttachCreditSchemaItem2 | PreviewAttachCreditSchemaItem3> | undefined;
10913
10993
  /**
10914
10994
  * 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.
10915
10995
  */
@@ -11195,6 +11275,16 @@ type PreviewAttachAddItemExpiry = {
11195
11275
  duration: PreviewAttachAddItemDuration;
11196
11276
  length: number;
11197
11277
  };
11278
+ type PreviewAttachCreditSchemaAddItem3 = {
11279
+ /**
11280
+ * ID of the metered feature to remove from the credit system.
11281
+ */
11282
+ meteredFeatureId: string;
11283
+ /**
11284
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
11285
+ */
11286
+ excluded: true;
11287
+ };
11198
11288
  type PreviewAttachDimensionsAddItem4 = {
11199
11289
  /**
11200
11290
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -11413,9 +11503,9 @@ type PreviewAttachAddItemMarkups = {
11413
11503
  */
11414
11504
  type PreviewAttachAddItemFeatureOverride = {
11415
11505
  /**
11416
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
11506
+ * 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.
11417
11507
  */
11418
- creditSchema?: Array<PreviewAttachCreditSchemaAddItem1 | PreviewAttachCreditSchemaAddItem2> | undefined;
11508
+ creditSchema?: Array<PreviewAttachCreditSchemaAddItem1 | PreviewAttachCreditSchemaAddItem2 | PreviewAttachCreditSchemaAddItem3> | undefined;
11419
11509
  /**
11420
11510
  * 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.
11421
11511
  */
@@ -12052,6 +12142,7 @@ type PreviewAttachUpsertLicenseProration = {
12052
12142
  */
12053
12143
  onDecrease: PreviewAttachUpsertLicenseOnDecrease;
12054
12144
  };
12145
+
12055
12146
  /**
12056
12147
  * When rolled over units expire.
12057
12148
  */
@@ -12084,7 +12175,6 @@ type PreviewAttachUpsertLicenseRollover = {
12084
12175
  */
12085
12176
  expiryDurationLength?: number | undefined;
12086
12177
  };
12087
-
12088
12178
  declare const PreviewAttachUpsertLicenseDuration: {
12089
12179
  readonly Day: "day";
12090
12180
  readonly Week: "week";
@@ -12099,6 +12189,16 @@ type PreviewAttachUpsertLicenseExpiry = {
12099
12189
  duration: PreviewAttachUpsertLicenseDuration;
12100
12190
  length: number;
12101
12191
  };
12192
+ type PreviewAttachCreditSchemaUpsertLicense3 = {
12193
+ /**
12194
+ * ID of the metered feature to remove from the credit system.
12195
+ */
12196
+ meteredFeatureId: string;
12197
+ /**
12198
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
12199
+ */
12200
+ excluded: true;
12201
+ };
12102
12202
  type PreviewAttachDimensionsUpsertLicense4 = {
12103
12203
  /**
12104
12204
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -12317,9 +12417,9 @@ type PreviewAttachUpsertLicenseMarkups = {
12317
12417
  */
12318
12418
  type PreviewAttachUpsertLicenseFeatureOverride = {
12319
12419
  /**
12320
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
12420
+ * 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.
12321
12421
  */
12322
- creditSchema?: Array<PreviewAttachCreditSchemaUpsertLicense1 | PreviewAttachCreditSchemaUpsertLicense2> | undefined;
12422
+ creditSchema?: Array<PreviewAttachCreditSchemaUpsertLicense1 | PreviewAttachCreditSchemaUpsertLicense2 | PreviewAttachCreditSchemaUpsertLicense3> | undefined;
12323
12423
  /**
12324
12424
  * 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.
12325
12425
  */
@@ -13704,6 +13804,16 @@ type PreviewMultiAttachExpiry = {
13704
13804
  duration: PreviewMultiAttachDuration;
13705
13805
  length: number;
13706
13806
  };
13807
+ type PreviewMultiAttachCreditSchema3 = {
13808
+ /**
13809
+ * ID of the metered feature to remove from the credit system.
13810
+ */
13811
+ meteredFeatureId: string;
13812
+ /**
13813
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
13814
+ */
13815
+ excluded: true;
13816
+ };
13707
13817
  type PreviewMultiAttachDimensions4 = {
13708
13818
  /**
13709
13819
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -13922,9 +14032,9 @@ type PreviewMultiAttachMarkups = {
13922
14032
  */
13923
14033
  type PreviewMultiAttachFeatureOverride = {
13924
14034
  /**
13925
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
14035
+ * 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.
13926
14036
  */
13927
- creditSchema?: Array<PreviewMultiAttachCreditSchema1 | PreviewMultiAttachCreditSchema2> | undefined;
14037
+ creditSchema?: Array<PreviewMultiAttachCreditSchema1 | PreviewMultiAttachCreditSchema2 | PreviewMultiAttachCreditSchema3> | undefined;
13928
14038
  /**
13929
14039
  * 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.
13930
14040
  */
@@ -15132,6 +15242,16 @@ type PreviewUpdateItemExpiry = {
15132
15242
  duration: PreviewUpdateItemDuration;
15133
15243
  length: number;
15134
15244
  };
15245
+ type PreviewUpdateCreditSchemaItem3 = {
15246
+ /**
15247
+ * ID of the metered feature to remove from the credit system.
15248
+ */
15249
+ meteredFeatureId: string;
15250
+ /**
15251
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
15252
+ */
15253
+ excluded: true;
15254
+ };
15135
15255
  type PreviewUpdateDimensionsItem4 = {
15136
15256
  /**
15137
15257
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -15350,9 +15470,9 @@ type PreviewUpdateItemMarkups = {
15350
15470
  */
15351
15471
  type PreviewUpdateItemFeatureOverride = {
15352
15472
  /**
15353
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
15473
+ * 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.
15354
15474
  */
15355
- creditSchema?: Array<PreviewUpdateCreditSchemaItem1 | PreviewUpdateCreditSchemaItem2> | undefined;
15475
+ creditSchema?: Array<PreviewUpdateCreditSchemaItem1 | PreviewUpdateCreditSchemaItem2 | PreviewUpdateCreditSchemaItem3> | undefined;
15356
15476
  /**
15357
15477
  * 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.
15358
15478
  */
@@ -15638,6 +15758,16 @@ type PreviewUpdateAddItemExpiry = {
15638
15758
  duration: PreviewUpdateAddItemDuration;
15639
15759
  length: number;
15640
15760
  };
15761
+ type PreviewUpdateCreditSchemaAddItem3 = {
15762
+ /**
15763
+ * ID of the metered feature to remove from the credit system.
15764
+ */
15765
+ meteredFeatureId: string;
15766
+ /**
15767
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
15768
+ */
15769
+ excluded: true;
15770
+ };
15641
15771
  type PreviewUpdateDimensionsAddItem4 = {
15642
15772
  /**
15643
15773
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -15856,9 +15986,9 @@ type PreviewUpdateAddItemMarkups = {
15856
15986
  */
15857
15987
  type PreviewUpdateAddItemFeatureOverride = {
15858
15988
  /**
15859
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
15989
+ * 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.
15860
15990
  */
15861
- creditSchema?: Array<PreviewUpdateCreditSchemaAddItem1 | PreviewUpdateCreditSchemaAddItem2> | undefined;
15991
+ creditSchema?: Array<PreviewUpdateCreditSchemaAddItem1 | PreviewUpdateCreditSchemaAddItem2 | PreviewUpdateCreditSchemaAddItem3> | undefined;
15862
15992
  /**
15863
15993
  * 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.
15864
15994
  */
@@ -16495,6 +16625,7 @@ type PreviewUpdateUpsertLicenseProration = {
16495
16625
  */
16496
16626
  onDecrease: PreviewUpdateUpsertLicenseOnDecrease;
16497
16627
  };
16628
+
16498
16629
  /**
16499
16630
  * When rolled over units expire.
16500
16631
  */
@@ -16527,7 +16658,6 @@ type PreviewUpdateUpsertLicenseRollover = {
16527
16658
  */
16528
16659
  expiryDurationLength?: number | undefined;
16529
16660
  };
16530
-
16531
16661
  declare const PreviewUpdateUpsertLicenseDuration: {
16532
16662
  readonly Day: "day";
16533
16663
  readonly Week: "week";
@@ -16542,6 +16672,16 @@ type PreviewUpdateUpsertLicenseExpiry = {
16542
16672
  duration: PreviewUpdateUpsertLicenseDuration;
16543
16673
  length: number;
16544
16674
  };
16675
+ type PreviewUpdateCreditSchemaUpsertLicense3 = {
16676
+ /**
16677
+ * ID of the metered feature to remove from the credit system.
16678
+ */
16679
+ meteredFeatureId: string;
16680
+ /**
16681
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
16682
+ */
16683
+ excluded: true;
16684
+ };
16545
16685
  type PreviewUpdateDimensionsUpsertLicense4 = {
16546
16686
  /**
16547
16687
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -16760,9 +16900,9 @@ type PreviewUpdateUpsertLicenseMarkups = {
16760
16900
  */
16761
16901
  type PreviewUpdateUpsertLicenseFeatureOverride = {
16762
16902
  /**
16763
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
16903
+ * 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.
16764
16904
  */
16765
- creditSchema?: Array<PreviewUpdateCreditSchemaUpsertLicense1 | PreviewUpdateCreditSchemaUpsertLicense2> | undefined;
16905
+ creditSchema?: Array<PreviewUpdateCreditSchemaUpsertLicense1 | PreviewUpdateCreditSchemaUpsertLicense2 | PreviewUpdateCreditSchemaUpsertLicense3> | undefined;
16766
16906
  /**
16767
16907
  * 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.
16768
16908
  */
@@ -18119,6 +18259,16 @@ type SetupPaymentItemExpiry = {
18119
18259
  duration: SetupPaymentItemDuration;
18120
18260
  length: number;
18121
18261
  };
18262
+ type SetupPaymentCreditSchemaItem3 = {
18263
+ /**
18264
+ * ID of the metered feature to remove from the credit system.
18265
+ */
18266
+ meteredFeatureId: string;
18267
+ /**
18268
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
18269
+ */
18270
+ excluded: true;
18271
+ };
18122
18272
  type SetupPaymentDimensionsItem4 = {
18123
18273
  /**
18124
18274
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -18337,9 +18487,9 @@ type SetupPaymentItemMarkups = {
18337
18487
  */
18338
18488
  type SetupPaymentItemFeatureOverride = {
18339
18489
  /**
18340
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
18490
+ * 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.
18341
18491
  */
18342
- creditSchema?: Array<SetupPaymentCreditSchemaItem1 | SetupPaymentCreditSchemaItem2> | undefined;
18492
+ creditSchema?: Array<SetupPaymentCreditSchemaItem1 | SetupPaymentCreditSchemaItem2 | SetupPaymentCreditSchemaItem3> | undefined;
18343
18493
  /**
18344
18494
  * 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.
18345
18495
  */
@@ -18625,6 +18775,16 @@ type SetupPaymentAddItemExpiry = {
18625
18775
  duration: SetupPaymentAddItemDuration;
18626
18776
  length: number;
18627
18777
  };
18778
+ type SetupPaymentCreditSchemaAddItem3 = {
18779
+ /**
18780
+ * ID of the metered feature to remove from the credit system.
18781
+ */
18782
+ meteredFeatureId: string;
18783
+ /**
18784
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
18785
+ */
18786
+ excluded: true;
18787
+ };
18628
18788
  type SetupPaymentDimensionsAddItem4 = {
18629
18789
  /**
18630
18790
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -18843,9 +19003,9 @@ type SetupPaymentAddItemMarkups = {
18843
19003
  */
18844
19004
  type SetupPaymentAddItemFeatureOverride = {
18845
19005
  /**
18846
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
19006
+ * 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.
18847
19007
  */
18848
- creditSchema?: Array<SetupPaymentCreditSchemaAddItem1 | SetupPaymentCreditSchemaAddItem2> | undefined;
19008
+ creditSchema?: Array<SetupPaymentCreditSchemaAddItem1 | SetupPaymentCreditSchemaAddItem2 | SetupPaymentCreditSchemaAddItem3> | undefined;
18849
19009
  /**
18850
19010
  * 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.
18851
19011
  */
@@ -19482,6 +19642,7 @@ type SetupPaymentUpsertLicenseProration = {
19482
19642
  */
19483
19643
  onDecrease: SetupPaymentUpsertLicenseOnDecrease;
19484
19644
  };
19645
+
19485
19646
  /**
19486
19647
  * When rolled over units expire.
19487
19648
  */
@@ -19514,7 +19675,6 @@ type SetupPaymentUpsertLicenseRollover = {
19514
19675
  */
19515
19676
  expiryDurationLength?: number | undefined;
19516
19677
  };
19517
-
19518
19678
  declare const SetupPaymentUpsertLicenseDuration: {
19519
19679
  readonly Day: "day";
19520
19680
  readonly Week: "week";
@@ -19529,6 +19689,16 @@ type SetupPaymentUpsertLicenseExpiry = {
19529
19689
  duration: SetupPaymentUpsertLicenseDuration;
19530
19690
  length: number;
19531
19691
  };
19692
+ type SetupPaymentCreditSchemaUpsertLicense3 = {
19693
+ /**
19694
+ * ID of the metered feature to remove from the credit system.
19695
+ */
19696
+ meteredFeatureId: string;
19697
+ /**
19698
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
19699
+ */
19700
+ excluded: true;
19701
+ };
19532
19702
  type SetupPaymentDimensionsUpsertLicense4 = {
19533
19703
  /**
19534
19704
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -19747,9 +19917,9 @@ type SetupPaymentUpsertLicenseMarkups = {
19747
19917
  */
19748
19918
  type SetupPaymentUpsertLicenseFeatureOverride = {
19749
19919
  /**
19750
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
19920
+ * 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.
19751
19921
  */
19752
- creditSchema?: Array<SetupPaymentCreditSchemaUpsertLicense1 | SetupPaymentCreditSchemaUpsertLicense2> | undefined;
19922
+ creditSchema?: Array<SetupPaymentCreditSchemaUpsertLicense1 | SetupPaymentCreditSchemaUpsertLicense2 | SetupPaymentCreditSchemaUpsertLicense3> | undefined;
19753
19923
  /**
19754
19924
  * 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.
19755
19925
  */
@@ -959,6 +959,16 @@ type ItemExpiry = {
959
959
  duration: ItemDuration;
960
960
  length: number;
961
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
+ };
962
972
  type PlanDimensionsItem4 = {
963
973
  /**
964
974
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -1177,9 +1187,9 @@ type ItemMarkups = {
1177
1187
  */
1178
1188
  type ItemFeatureOverride = {
1179
1189
  /**
1180
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
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.
1181
1191
  */
1182
- creditSchema?: Array<PlanCreditSchemaItemFeatureOverride1 | PlanCreditSchemaItemFeatureOverride2> | undefined;
1192
+ creditSchema?: Array<PlanCreditSchemaItemFeatureOverride1 | PlanCreditSchemaItemFeatureOverride2 | PlanCreditSchemaItemFeatureOverride3> | undefined;
1183
1193
  /**
1184
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.
1185
1195
  */
@@ -1901,6 +1911,16 @@ type VariantDetailsExpiry = {
1901
1911
  duration: VariantDetailsDuration;
1902
1912
  length: number;
1903
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
+ };
1904
1924
  type PlanDimensionsVariantDetails4 = {
1905
1925
  /**
1906
1926
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -2119,9 +2139,9 @@ type VariantDetailsMarkups = {
2119
2139
  */
2120
2140
  type VariantDetailsFeatureOverride = {
2121
2141
  /**
2122
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
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.
2123
2143
  */
2124
- creditSchema?: Array<PlanCreditSchemaVariantDetails1 | PlanCreditSchemaVariantDetails2> | undefined;
2144
+ creditSchema?: Array<PlanCreditSchemaVariantDetails1 | PlanCreditSchemaVariantDetails2 | PlanCreditSchemaVariantDetails3> | undefined;
2125
2145
  /**
2126
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.
2127
2147
  */
@@ -2492,6 +2512,7 @@ type PlanVariantDetailsUsageAlert = {
2492
2512
  */
2493
2513
  name?: string | undefined;
2494
2514
  };
2515
+
2495
2516
  type PlanVariantDetailsOverageAllowed1 = {
2496
2517
  /**
2497
2518
  * The feature ID this overage allowed control applies to.
@@ -2527,7 +2548,6 @@ type PlanVariantDetailsBillingControls1 = {
2527
2548
  */
2528
2549
  overageAllowed?: Array<PlanVariantDetailsOverageAllowed1> | undefined;
2529
2550
  };
2530
-
2531
2551
  /**
2532
2552
  * Billing interval (e.g. 'month', 'year').
2533
2553
  */
@@ -2802,6 +2822,16 @@ type UpsertLicenseExpiry = {
2802
2822
  duration: UpsertLicenseDuration;
2803
2823
  length: number;
2804
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
+ };
2805
2835
  type PlanDimensionsUpsertLicense4 = {
2806
2836
  /**
2807
2837
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -3020,9 +3050,9 @@ type UpsertLicenseMarkups = {
3020
3050
  */
3021
3051
  type UpsertLicenseFeatureOverride = {
3022
3052
  /**
3023
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
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.
3024
3054
  */
3025
- creditSchema?: Array<PlanCreditSchemaUpsertLicense1 | PlanCreditSchemaUpsertLicense2> | undefined;
3055
+ creditSchema?: Array<PlanCreditSchemaUpsertLicense1 | PlanCreditSchemaUpsertLicense2 | PlanCreditSchemaUpsertLicense3> | undefined;
3026
3056
  /**
3027
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.
3028
3058
  */