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
@@ -755,6 +755,16 @@ type AttachItemExpiry = {
755
755
  duration: AttachItemDuration;
756
756
  length: number;
757
757
  };
758
+ type AttachCreditSchemaItem3 = {
759
+ /**
760
+ * ID of the metered feature to remove from the credit system.
761
+ */
762
+ meteredFeatureId: string;
763
+ /**
764
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
765
+ */
766
+ excluded: true;
767
+ };
758
768
  type AttachDimensionsItem4 = {
759
769
  /**
760
770
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -973,9 +983,9 @@ type AttachItemMarkups = {
973
983
  */
974
984
  type AttachItemFeatureOverride = {
975
985
  /**
976
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
986
+ * 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.
977
987
  */
978
- creditSchema?: Array<AttachCreditSchemaItem1 | AttachCreditSchemaItem2> | undefined;
988
+ creditSchema?: Array<AttachCreditSchemaItem1 | AttachCreditSchemaItem2 | AttachCreditSchemaItem3> | undefined;
979
989
  /**
980
990
  * 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.
981
991
  */
@@ -1261,6 +1271,16 @@ type AttachAddItemExpiry = {
1261
1271
  duration: AttachAddItemDuration;
1262
1272
  length: number;
1263
1273
  };
1274
+ type AttachCreditSchemaAddItem3 = {
1275
+ /**
1276
+ * ID of the metered feature to remove from the credit system.
1277
+ */
1278
+ meteredFeatureId: string;
1279
+ /**
1280
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
1281
+ */
1282
+ excluded: true;
1283
+ };
1264
1284
  type AttachDimensionsAddItem4 = {
1265
1285
  /**
1266
1286
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -1479,9 +1499,9 @@ type AttachAddItemMarkups = {
1479
1499
  */
1480
1500
  type AttachAddItemFeatureOverride = {
1481
1501
  /**
1482
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
1502
+ * 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.
1483
1503
  */
1484
- creditSchema?: Array<AttachCreditSchemaAddItem1 | AttachCreditSchemaAddItem2> | undefined;
1504
+ creditSchema?: Array<AttachCreditSchemaAddItem1 | AttachCreditSchemaAddItem2 | AttachCreditSchemaAddItem3> | undefined;
1485
1505
  /**
1486
1506
  * 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.
1487
1507
  */
@@ -2118,6 +2138,7 @@ type AttachUpsertLicenseProration = {
2118
2138
  */
2119
2139
  onDecrease: AttachUpsertLicenseOnDecrease;
2120
2140
  };
2141
+
2121
2142
  /**
2122
2143
  * When rolled over units expire.
2123
2144
  */
@@ -2150,7 +2171,6 @@ type AttachUpsertLicenseRollover = {
2150
2171
  */
2151
2172
  expiryDurationLength?: number | undefined;
2152
2173
  };
2153
-
2154
2174
  declare const AttachUpsertLicenseDuration: {
2155
2175
  readonly Day: "day";
2156
2176
  readonly Week: "week";
@@ -2165,6 +2185,16 @@ type AttachUpsertLicenseExpiry = {
2165
2185
  duration: AttachUpsertLicenseDuration;
2166
2186
  length: number;
2167
2187
  };
2188
+ type AttachCreditSchemaUpsertLicense3 = {
2189
+ /**
2190
+ * ID of the metered feature to remove from the credit system.
2191
+ */
2192
+ meteredFeatureId: string;
2193
+ /**
2194
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
2195
+ */
2196
+ excluded: true;
2197
+ };
2168
2198
  type AttachDimensionsUpsertLicense4 = {
2169
2199
  /**
2170
2200
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -2383,9 +2413,9 @@ type AttachUpsertLicenseMarkups = {
2383
2413
  */
2384
2414
  type AttachUpsertLicenseFeatureOverride = {
2385
2415
  /**
2386
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
2416
+ * 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.
2387
2417
  */
2388
- creditSchema?: Array<AttachCreditSchemaUpsertLicense1 | AttachCreditSchemaUpsertLicense2> | undefined;
2418
+ creditSchema?: Array<AttachCreditSchemaUpsertLicense1 | AttachCreditSchemaUpsertLicense2 | AttachCreditSchemaUpsertLicense3> | undefined;
2389
2419
  /**
2390
2420
  * 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.
2391
2421
  */
@@ -4224,6 +4254,16 @@ type BillingUpdateItemExpiry = {
4224
4254
  duration: BillingUpdateItemDuration;
4225
4255
  length: number;
4226
4256
  };
4257
+ type BillingUpdateCreditSchemaItem3 = {
4258
+ /**
4259
+ * ID of the metered feature to remove from the credit system.
4260
+ */
4261
+ meteredFeatureId: string;
4262
+ /**
4263
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
4264
+ */
4265
+ excluded: true;
4266
+ };
4227
4267
  type BillingUpdateDimensionsItem4 = {
4228
4268
  /**
4229
4269
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -4442,9 +4482,9 @@ type BillingUpdateItemMarkups = {
4442
4482
  */
4443
4483
  type BillingUpdateItemFeatureOverride = {
4444
4484
  /**
4445
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
4485
+ * 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.
4446
4486
  */
4447
- creditSchema?: Array<BillingUpdateCreditSchemaItem1 | BillingUpdateCreditSchemaItem2> | undefined;
4487
+ creditSchema?: Array<BillingUpdateCreditSchemaItem1 | BillingUpdateCreditSchemaItem2 | BillingUpdateCreditSchemaItem3> | undefined;
4448
4488
  /**
4449
4489
  * 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.
4450
4490
  */
@@ -4730,6 +4770,16 @@ type BillingUpdateAddItemExpiry = {
4730
4770
  duration: BillingUpdateAddItemDuration;
4731
4771
  length: number;
4732
4772
  };
4773
+ type BillingUpdateCreditSchemaAddItem3 = {
4774
+ /**
4775
+ * ID of the metered feature to remove from the credit system.
4776
+ */
4777
+ meteredFeatureId: string;
4778
+ /**
4779
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
4780
+ */
4781
+ excluded: true;
4782
+ };
4733
4783
  type BillingUpdateDimensionsAddItem4 = {
4734
4784
  /**
4735
4785
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -4948,9 +4998,9 @@ type BillingUpdateAddItemMarkups = {
4948
4998
  */
4949
4999
  type BillingUpdateAddItemFeatureOverride = {
4950
5000
  /**
4951
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
5001
+ * 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.
4952
5002
  */
4953
- creditSchema?: Array<BillingUpdateCreditSchemaAddItem1 | BillingUpdateCreditSchemaAddItem2> | undefined;
5003
+ creditSchema?: Array<BillingUpdateCreditSchemaAddItem1 | BillingUpdateCreditSchemaAddItem2 | BillingUpdateCreditSchemaAddItem3> | undefined;
4954
5004
  /**
4955
5005
  * 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.
4956
5006
  */
@@ -5587,6 +5637,7 @@ type BillingUpdateUpsertLicenseProration = {
5587
5637
  */
5588
5638
  onDecrease: BillingUpdateUpsertLicenseOnDecrease;
5589
5639
  };
5640
+
5590
5641
  /**
5591
5642
  * When rolled over units expire.
5592
5643
  */
@@ -5619,7 +5670,6 @@ type BillingUpdateUpsertLicenseRollover = {
5619
5670
  */
5620
5671
  expiryDurationLength?: number | undefined;
5621
5672
  };
5622
-
5623
5673
  declare const BillingUpdateUpsertLicenseDuration: {
5624
5674
  readonly Day: "day";
5625
5675
  readonly Week: "week";
@@ -5634,6 +5684,16 @@ type BillingUpdateUpsertLicenseExpiry = {
5634
5684
  duration: BillingUpdateUpsertLicenseDuration;
5635
5685
  length: number;
5636
5686
  };
5687
+ type BillingUpdateCreditSchemaUpsertLicense3 = {
5688
+ /**
5689
+ * ID of the metered feature to remove from the credit system.
5690
+ */
5691
+ meteredFeatureId: string;
5692
+ /**
5693
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
5694
+ */
5695
+ excluded: true;
5696
+ };
5637
5697
  type BillingUpdateDimensionsUpsertLicense4 = {
5638
5698
  /**
5639
5699
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -5852,9 +5912,9 @@ type BillingUpdateUpsertLicenseMarkups = {
5852
5912
  */
5853
5913
  type BillingUpdateUpsertLicenseFeatureOverride = {
5854
5914
  /**
5855
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
5915
+ * 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.
5856
5916
  */
5857
- creditSchema?: Array<BillingUpdateCreditSchemaUpsertLicense1 | BillingUpdateCreditSchemaUpsertLicense2> | undefined;
5917
+ creditSchema?: Array<BillingUpdateCreditSchemaUpsertLicense1 | BillingUpdateCreditSchemaUpsertLicense2 | BillingUpdateCreditSchemaUpsertLicense3> | undefined;
5858
5918
  /**
5859
5919
  * 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.
5860
5920
  */
@@ -9461,6 +9521,16 @@ type ItemExpiry = {
9461
9521
  duration: ItemDuration;
9462
9522
  length: number;
9463
9523
  };
9524
+ type PlanCreditSchemaItemFeatureOverride3 = {
9525
+ /**
9526
+ * ID of the metered feature to remove from the credit system.
9527
+ */
9528
+ meteredFeatureId: string;
9529
+ /**
9530
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
9531
+ */
9532
+ excluded: true;
9533
+ };
9464
9534
  type PlanDimensionsItem4 = {
9465
9535
  /**
9466
9536
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -9679,9 +9749,9 @@ type ItemMarkups = {
9679
9749
  */
9680
9750
  type ItemFeatureOverride = {
9681
9751
  /**
9682
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
9752
+ * 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.
9683
9753
  */
9684
- creditSchema?: Array<PlanCreditSchemaItemFeatureOverride1 | PlanCreditSchemaItemFeatureOverride2> | undefined;
9754
+ creditSchema?: Array<PlanCreditSchemaItemFeatureOverride1 | PlanCreditSchemaItemFeatureOverride2 | PlanCreditSchemaItemFeatureOverride3> | undefined;
9685
9755
  /**
9686
9756
  * 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.
9687
9757
  */
@@ -10403,6 +10473,16 @@ type VariantDetailsExpiry = {
10403
10473
  duration: VariantDetailsDuration;
10404
10474
  length: number;
10405
10475
  };
10476
+ type PlanCreditSchemaVariantDetails3 = {
10477
+ /**
10478
+ * ID of the metered feature to remove from the credit system.
10479
+ */
10480
+ meteredFeatureId: string;
10481
+ /**
10482
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
10483
+ */
10484
+ excluded: true;
10485
+ };
10406
10486
  type PlanDimensionsVariantDetails4 = {
10407
10487
  /**
10408
10488
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -10621,9 +10701,9 @@ type VariantDetailsMarkups = {
10621
10701
  */
10622
10702
  type VariantDetailsFeatureOverride = {
10623
10703
  /**
10624
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
10704
+ * 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.
10625
10705
  */
10626
- creditSchema?: Array<PlanCreditSchemaVariantDetails1 | PlanCreditSchemaVariantDetails2> | undefined;
10706
+ creditSchema?: Array<PlanCreditSchemaVariantDetails1 | PlanCreditSchemaVariantDetails2 | PlanCreditSchemaVariantDetails3> | undefined;
10627
10707
  /**
10628
10708
  * 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.
10629
10709
  */
@@ -10994,6 +11074,7 @@ type PlanVariantDetailsUsageAlert = {
10994
11074
  */
10995
11075
  name?: string | undefined;
10996
11076
  };
11077
+
10997
11078
  type PlanVariantDetailsOverageAllowed1 = {
10998
11079
  /**
10999
11080
  * The feature ID this overage allowed control applies to.
@@ -11029,7 +11110,6 @@ type PlanVariantDetailsBillingControls1 = {
11029
11110
  */
11030
11111
  overageAllowed?: Array<PlanVariantDetailsOverageAllowed1> | undefined;
11031
11112
  };
11032
-
11033
11113
  /**
11034
11114
  * Billing interval (e.g. 'month', 'year').
11035
11115
  */
@@ -11304,6 +11384,16 @@ type UpsertLicenseExpiry = {
11304
11384
  duration: UpsertLicenseDuration;
11305
11385
  length: number;
11306
11386
  };
11387
+ type PlanCreditSchemaUpsertLicense3 = {
11388
+ /**
11389
+ * ID of the metered feature to remove from the credit system.
11390
+ */
11391
+ meteredFeatureId: string;
11392
+ /**
11393
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
11394
+ */
11395
+ excluded: true;
11396
+ };
11307
11397
  type PlanDimensionsUpsertLicense4 = {
11308
11398
  /**
11309
11399
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -11522,9 +11612,9 @@ type UpsertLicenseMarkups = {
11522
11612
  */
11523
11613
  type UpsertLicenseFeatureOverride = {
11524
11614
  /**
11525
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
11615
+ * 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.
11526
11616
  */
11527
- creditSchema?: Array<PlanCreditSchemaUpsertLicense1 | PlanCreditSchemaUpsertLicense2> | undefined;
11617
+ creditSchema?: Array<PlanCreditSchemaUpsertLicense1 | PlanCreditSchemaUpsertLicense2 | PlanCreditSchemaUpsertLicense3> | undefined;
11528
11618
  /**
11529
11619
  * 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.
11530
11620
  */
@@ -13886,7 +13976,7 @@ type CreateInvoiceCreditSchema1 = {
13886
13976
  */
13887
13977
  type CreateInvoiceFeatureOverride = {
13888
13978
  /**
13889
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
13979
+ * Replaces the feature's credit_schema entirely for this invoice.
13890
13980
  */
13891
13981
  creditSchema?: Array<CreateInvoiceCreditSchema1 | CreateInvoiceCreditSchema2> | undefined;
13892
13982
  };
@@ -14317,7 +14407,7 @@ type CreateInvoiceCreditSchemaLicenseQuantity1 = {
14317
14407
  */
14318
14408
  type CreateInvoiceLicenseQuantityFeatureOverride = {
14319
14409
  /**
14320
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
14410
+ * Replaces the feature's credit_schema entirely for this invoice.
14321
14411
  */
14322
14412
  creditSchema?: Array<CreateInvoiceCreditSchemaLicenseQuantity1 | CreateInvoiceCreditSchemaLicenseQuantity2> | undefined;
14323
14413
  };
@@ -15071,6 +15161,16 @@ type CreatePlanItemExpiryRequestBody = {
15071
15161
  duration: CreatePlanItemDurationRequestBody;
15072
15162
  length: number;
15073
15163
  };
15164
+ type CreatePlanCreditSchemaItemRequestBody3 = {
15165
+ /**
15166
+ * ID of the metered feature to remove from the credit system.
15167
+ */
15168
+ meteredFeatureId: string;
15169
+ /**
15170
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
15171
+ */
15172
+ excluded: true;
15173
+ };
15074
15174
  type CreatePlanDimensionsItemRequestBody4 = {
15075
15175
  /**
15076
15176
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -15289,9 +15389,9 @@ type CreatePlanItemMarkupsRequestBody = {
15289
15389
  */
15290
15390
  type CreatePlanItemFeatureOverrideRequestBody = {
15291
15391
  /**
15292
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
15392
+ * 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.
15293
15393
  */
15294
- creditSchema?: Array<CreatePlanCreditSchemaItemRequestBody1 | CreatePlanCreditSchemaItemRequestBody2> | undefined;
15394
+ creditSchema?: Array<CreatePlanCreditSchemaItemRequestBody1 | CreatePlanCreditSchemaItemRequestBody2 | CreatePlanCreditSchemaItemRequestBody3> | undefined;
15295
15395
  /**
15296
15396
  * 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.
15297
15397
  */
@@ -15623,6 +15723,16 @@ type CreatePlanLicenseExpiryRequestBody = {
15623
15723
  duration: CreatePlanLicenseDurationRequestBody;
15624
15724
  length: number;
15625
15725
  };
15726
+ type CreatePlanCreditSchemaLicenseRequestBody3 = {
15727
+ /**
15728
+ * ID of the metered feature to remove from the credit system.
15729
+ */
15730
+ meteredFeatureId: string;
15731
+ /**
15732
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
15733
+ */
15734
+ excluded: true;
15735
+ };
15626
15736
  type CreatePlanDimensionsLicenseRequestBody4 = {
15627
15737
  /**
15628
15738
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -15841,9 +15951,9 @@ type CreatePlanLicenseMarkupsRequestBody = {
15841
15951
  */
15842
15952
  type CreatePlanLicenseFeatureOverrideRequestBody = {
15843
15953
  /**
15844
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
15954
+ * 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.
15845
15955
  */
15846
- creditSchema?: Array<CreatePlanCreditSchemaLicenseRequestBody1 | CreatePlanCreditSchemaLicenseRequestBody2> | undefined;
15956
+ creditSchema?: Array<CreatePlanCreditSchemaLicenseRequestBody1 | CreatePlanCreditSchemaLicenseRequestBody2 | CreatePlanCreditSchemaLicenseRequestBody3> | undefined;
15847
15957
  /**
15848
15958
  * 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.
15849
15959
  */
@@ -16515,7 +16625,7 @@ type CreatePlanItemAdditionalCurrencyResponse = {
16515
16625
  */
16516
16626
  amount: number;
16517
16627
  };
16518
- type CreatePlanPriceItemToResponse = number | string;
16628
+
16519
16629
  type CreatePlanItemTierAdditionalCurrencyResponse = {
16520
16630
  /**
16521
16631
  * Three-letter Stripe-supported currency code (e.g. 'eur', 'gbp').
@@ -16530,9 +16640,8 @@ type CreatePlanItemTierAdditionalCurrencyResponse = {
16530
16640
  */
16531
16641
  flatAmount?: number | undefined;
16532
16642
  };
16533
-
16534
16643
  type CreatePlanPriceItemTierResponse = {
16535
- to: CreatePlanPriceItemToResponse;
16644
+ to: number | string;
16536
16645
  amount: number;
16537
16646
  flatAmount?: number | undefined;
16538
16647
  additionalCurrencies?: Array<CreatePlanItemTierAdditionalCurrencyResponse> | undefined;
@@ -16684,6 +16793,16 @@ type CreatePlanItemExpiryResponse = {
16684
16793
  duration: CreatePlanItemDurationResponse;
16685
16794
  length: number;
16686
16795
  };
16796
+ type CreatePlanCreditSchemaItemFeatureOverrideResponse3 = {
16797
+ /**
16798
+ * ID of the metered feature to remove from the credit system.
16799
+ */
16800
+ meteredFeatureId: string;
16801
+ /**
16802
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
16803
+ */
16804
+ excluded: true;
16805
+ };
16687
16806
  type CreatePlanDimensionsItemResponse4 = {
16688
16807
  /**
16689
16808
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -16902,9 +17021,9 @@ type CreatePlanItemMarkupsResponse = {
16902
17021
  */
16903
17022
  type CreatePlanItemFeatureOverrideResponse = {
16904
17023
  /**
16905
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
17024
+ * 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.
16906
17025
  */
16907
- creditSchema?: Array<CreatePlanCreditSchemaItemFeatureOverrideResponse1 | CreatePlanCreditSchemaItemFeatureOverrideResponse2> | undefined;
17026
+ creditSchema?: Array<CreatePlanCreditSchemaItemFeatureOverrideResponse1 | CreatePlanCreditSchemaItemFeatureOverrideResponse2 | CreatePlanCreditSchemaItemFeatureOverrideResponse3> | undefined;
16908
17027
  /**
16909
17028
  * 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.
16910
17029
  */
@@ -17626,6 +17745,16 @@ type CreatePlanVariantDetailsExpiry = {
17626
17745
  duration: CreatePlanVariantDetailsDuration;
17627
17746
  length: number;
17628
17747
  };
17748
+ type CreatePlanCreditSchemaVariantDetails3 = {
17749
+ /**
17750
+ * ID of the metered feature to remove from the credit system.
17751
+ */
17752
+ meteredFeatureId: string;
17753
+ /**
17754
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
17755
+ */
17756
+ excluded: true;
17757
+ };
17629
17758
  type CreatePlanDimensionsVariantDetails4 = {
17630
17759
  /**
17631
17760
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -17844,9 +17973,9 @@ type CreatePlanVariantDetailsMarkups = {
17844
17973
  */
17845
17974
  type CreatePlanVariantDetailsFeatureOverride = {
17846
17975
  /**
17847
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
17976
+ * 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.
17848
17977
  */
17849
- creditSchema?: Array<CreatePlanCreditSchemaVariantDetails1 | CreatePlanCreditSchemaVariantDetails2> | undefined;
17978
+ creditSchema?: Array<CreatePlanCreditSchemaVariantDetails1 | CreatePlanCreditSchemaVariantDetails2 | CreatePlanCreditSchemaVariantDetails3> | undefined;
17850
17979
  /**
17851
17980
  * 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.
17852
17981
  */
@@ -18388,6 +18517,7 @@ declare const CreatePlanUpsertLicenseAddItemPriceInterval: {
18388
18517
  * Billing interval. For consumable features, should match reset.interval.
18389
18518
  */
18390
18519
  type CreatePlanUpsertLicenseAddItemPriceInterval = OpenEnum<typeof CreatePlanUpsertLicenseAddItemPriceInterval>;
18520
+
18391
18521
  /**
18392
18522
  * 'prepaid' for upfront payment (seats), 'usage_based' for pay-as-you-go.
18393
18523
  */
@@ -18467,7 +18597,6 @@ declare const CreatePlanUpsertLicenseOnDecrease: {
18467
18597
  * Credit behavior when quantity decreases mid-cycle.
18468
18598
  */
18469
18599
  type CreatePlanUpsertLicenseOnDecrease = OpenEnum<typeof CreatePlanUpsertLicenseOnDecrease>;
18470
-
18471
18600
  /**
18472
18601
  * Proration settings for prepaid features. Controls mid-cycle quantity change billing.
18473
18602
  */
@@ -18527,6 +18656,16 @@ type CreatePlanUpsertLicenseExpiry = {
18527
18656
  duration: CreatePlanUpsertLicenseDuration;
18528
18657
  length: number;
18529
18658
  };
18659
+ type CreatePlanCreditSchemaUpsertLicense3 = {
18660
+ /**
18661
+ * ID of the metered feature to remove from the credit system.
18662
+ */
18663
+ meteredFeatureId: string;
18664
+ /**
18665
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
18666
+ */
18667
+ excluded: true;
18668
+ };
18530
18669
  type CreatePlanDimensionsUpsertLicense4 = {
18531
18670
  /**
18532
18671
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -18745,9 +18884,9 @@ type CreatePlanUpsertLicenseMarkups = {
18745
18884
  */
18746
18885
  type CreatePlanUpsertLicenseFeatureOverride = {
18747
18886
  /**
18748
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
18887
+ * 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.
18749
18888
  */
18750
- creditSchema?: Array<CreatePlanCreditSchemaUpsertLicense1 | CreatePlanCreditSchemaUpsertLicense2> | undefined;
18889
+ creditSchema?: Array<CreatePlanCreditSchemaUpsertLicense1 | CreatePlanCreditSchemaUpsertLicense2 | CreatePlanCreditSchemaUpsertLicense3> | undefined;
18751
18890
  /**
18752
18891
  * 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.
18753
18892
  */
@@ -19197,6 +19336,16 @@ type CreatePlanLicenseExpiryResponse = {
19197
19336
  duration: CreatePlanLicenseDurationResponse;
19198
19337
  length: number;
19199
19338
  };
19339
+ type CreatePlanCreditSchemaLicenseResponse3 = {
19340
+ /**
19341
+ * ID of the metered feature to remove from the credit system.
19342
+ */
19343
+ meteredFeatureId: string;
19344
+ /**
19345
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
19346
+ */
19347
+ excluded: true;
19348
+ };
19200
19349
  type CreatePlanDimensionsLicenseResponse4 = {
19201
19350
  /**
19202
19351
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -19415,9 +19564,9 @@ type CreatePlanLicenseMarkupsResponse = {
19415
19564
  */
19416
19565
  type CreatePlanLicenseFeatureOverrideResponse = {
19417
19566
  /**
19418
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
19567
+ * 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.
19419
19568
  */
19420
- creditSchema?: Array<CreatePlanCreditSchemaLicenseResponse1 | CreatePlanCreditSchemaLicenseResponse2> | undefined;
19569
+ creditSchema?: Array<CreatePlanCreditSchemaLicenseResponse1 | CreatePlanCreditSchemaLicenseResponse2 | CreatePlanCreditSchemaLicenseResponse3> | undefined;
19421
19570
  /**
19422
19571
  * 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.
19423
19572
  */
@@ -20594,6 +20743,16 @@ type UnscheduledPlanItemExpiry = {
20594
20743
  duration: UnscheduledPlanItemDuration;
20595
20744
  length: number;
20596
20745
  };
20746
+ type CreditSchemaUnscheduledPlanItem3 = {
20747
+ /**
20748
+ * ID of the metered feature to remove from the credit system.
20749
+ */
20750
+ meteredFeatureId: string;
20751
+ /**
20752
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
20753
+ */
20754
+ excluded: true;
20755
+ };
20597
20756
  type DimensionsUnscheduledPlanItem4 = {
20598
20757
  /**
20599
20758
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -20812,9 +20971,9 @@ type UnscheduledPlanItemMarkups = {
20812
20971
  */
20813
20972
  type UnscheduledPlanItemFeatureOverride = {
20814
20973
  /**
20815
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
20974
+ * 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.
20816
20975
  */
20817
- creditSchema?: Array<CreditSchemaUnscheduledPlanItem1 | CreditSchemaUnscheduledPlanItem2> | undefined;
20976
+ creditSchema?: Array<CreditSchemaUnscheduledPlanItem1 | CreditSchemaUnscheduledPlanItem2 | CreditSchemaUnscheduledPlanItem3> | undefined;
20818
20977
  /**
20819
20978
  * 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.
20820
20979
  */
@@ -21100,6 +21259,16 @@ type UnscheduledPlanAddItemExpiry = {
21100
21259
  duration: UnscheduledPlanAddItemDuration;
21101
21260
  length: number;
21102
21261
  };
21262
+ type CreditSchemaUnscheduledPlanAddItem3 = {
21263
+ /**
21264
+ * ID of the metered feature to remove from the credit system.
21265
+ */
21266
+ meteredFeatureId: string;
21267
+ /**
21268
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
21269
+ */
21270
+ excluded: true;
21271
+ };
21103
21272
  type DimensionsUnscheduledPlanAddItem4 = {
21104
21273
  /**
21105
21274
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -21318,9 +21487,9 @@ type UnscheduledPlanAddItemMarkups = {
21318
21487
  */
21319
21488
  type UnscheduledPlanAddItemFeatureOverride = {
21320
21489
  /**
21321
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
21490
+ * 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.
21322
21491
  */
21323
- creditSchema?: Array<CreditSchemaUnscheduledPlanAddItem1 | CreditSchemaUnscheduledPlanAddItem2> | undefined;
21492
+ creditSchema?: Array<CreditSchemaUnscheduledPlanAddItem1 | CreditSchemaUnscheduledPlanAddItem2 | CreditSchemaUnscheduledPlanAddItem3> | undefined;
21324
21493
  /**
21325
21494
  * 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.
21326
21495
  */
@@ -21832,6 +22001,7 @@ declare const UnscheduledPlanUpsertLicenseAddItemBillingMethod: {
21832
22001
  * 'prepaid' for upfront payment (seats), 'usage_based' for pay-as-you-go.
21833
22002
  */
21834
22003
  type UnscheduledPlanUpsertLicenseAddItemBillingMethod = ClosedEnum<typeof UnscheduledPlanUpsertLicenseAddItemBillingMethod>;
22004
+
21835
22005
  /**
21836
22006
  * Pricing for usage beyond included units. Omit for free features.
21837
22007
  */
@@ -21886,7 +22056,6 @@ declare const UnscheduledPlanUpsertLicenseOnIncrease: {
21886
22056
  * Billing behavior when quantity increases mid-cycle.
21887
22057
  */
21888
22058
  type UnscheduledPlanUpsertLicenseOnIncrease = ClosedEnum<typeof UnscheduledPlanUpsertLicenseOnIncrease>;
21889
-
21890
22059
  /**
21891
22060
  * Credit behavior when quantity decreases mid-cycle.
21892
22061
  */
@@ -21960,6 +22129,16 @@ type UnscheduledPlanUpsertLicenseExpiry = {
21960
22129
  duration: UnscheduledPlanUpsertLicenseDuration;
21961
22130
  length: number;
21962
22131
  };
22132
+ type CreditSchemaUnscheduledPlanUpsertLicense3 = {
22133
+ /**
22134
+ * ID of the metered feature to remove from the credit system.
22135
+ */
22136
+ meteredFeatureId: string;
22137
+ /**
22138
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
22139
+ */
22140
+ excluded: true;
22141
+ };
21963
22142
  type DimensionsUnscheduledPlanUpsertLicense4 = {
21964
22143
  /**
21965
22144
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -22178,9 +22357,9 @@ type UnscheduledPlanUpsertLicenseMarkups = {
22178
22357
  */
22179
22358
  type UnscheduledPlanUpsertLicenseFeatureOverride = {
22180
22359
  /**
22181
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
22360
+ * 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.
22182
22361
  */
22183
- creditSchema?: Array<CreditSchemaUnscheduledPlanUpsertLicense1 | CreditSchemaUnscheduledPlanUpsertLicense2> | undefined;
22362
+ creditSchema?: Array<CreditSchemaUnscheduledPlanUpsertLicense1 | CreditSchemaUnscheduledPlanUpsertLicense2 | CreditSchemaUnscheduledPlanUpsertLicense3> | undefined;
22184
22363
  /**
22185
22364
  * 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.
22186
22365
  */
@@ -22705,6 +22884,16 @@ type PhaseItemExpiry2 = {
22705
22884
  duration: PhaseItemDuration2;
22706
22885
  length: number;
22707
22886
  };
22887
+ type PhaseCreditSchemaItem3 = {
22888
+ /**
22889
+ * ID of the metered feature to remove from the credit system.
22890
+ */
22891
+ meteredFeatureId: string;
22892
+ /**
22893
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
22894
+ */
22895
+ excluded: true;
22896
+ };
22708
22897
  type PhaseDimensionsItem4 = {
22709
22898
  /**
22710
22899
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -22923,9 +23112,9 @@ type PhaseItemMarkups2 = {
22923
23112
  */
22924
23113
  type PhaseItemFeatureOverride2 = {
22925
23114
  /**
22926
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
23115
+ * 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.
22927
23116
  */
22928
- creditSchema?: Array<PhaseCreditSchemaItem1 | PhaseCreditSchemaItem2> | undefined;
23117
+ creditSchema?: Array<PhaseCreditSchemaItem1 | PhaseCreditSchemaItem2 | PhaseCreditSchemaItem3> | undefined;
22929
23118
  /**
22930
23119
  * 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.
22931
23120
  */
@@ -23211,6 +23400,16 @@ type PhaseAddItemExpiry2 = {
23211
23400
  duration: PhaseAddItemDuration2;
23212
23401
  length: number;
23213
23402
  };
23403
+ type PhaseCreditSchemaAddItem3 = {
23404
+ /**
23405
+ * ID of the metered feature to remove from the credit system.
23406
+ */
23407
+ meteredFeatureId: string;
23408
+ /**
23409
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
23410
+ */
23411
+ excluded: true;
23412
+ };
23214
23413
  type PhaseDimensionsAddItem4 = {
23215
23414
  /**
23216
23415
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -23341,6 +23540,7 @@ type PhaseDimensionsAddItem1 = {
23341
23540
  tierBehavior: "graduated";
23342
23541
  tiers: Array<PhaseDimensionsAddItemTier1>;
23343
23542
  };
23543
+ type PhaseAddItemDimensionsUnion3 = PhaseDimensionsAddItem1 | PhaseDimensionsAddItem2;
23344
23544
  type PhaseAddItemMultipliers3 = {
23345
23545
  /**
23346
23546
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -23361,11 +23561,16 @@ declare const PhaseToAddItemEnum: {
23361
23561
  readonly Inf: "inf";
23362
23562
  };
23363
23563
  type PhaseToAddItemEnum = ClosedEnum<typeof PhaseToAddItemEnum>;
23564
+ /**
23565
+ * Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'.
23566
+ */
23567
+ type PhaseAddItemFeatureOverrideToUnion2 = number | PhaseToAddItemEnum;
23568
+
23364
23569
  type PhaseAddItemFeatureOverrideTier2 = {
23365
23570
  /**
23366
23571
  * Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'.
23367
23572
  */
23368
- to: number | PhaseToAddItemEnum;
23573
+ to: PhaseAddItemFeatureOverrideToUnion2;
23369
23574
  /**
23370
23575
  * Credits consumed per billing-unit group within this tier.
23371
23576
  */
@@ -23384,7 +23589,7 @@ type PhaseCreditSchemaAddItem1 = {
23384
23589
  * Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies.
23385
23590
  */
23386
23591
  dimensions?: {
23387
- [k: string]: PhaseDimensionsAddItem1 | PhaseDimensionsAddItem2;
23592
+ [k: string]: PhaseAddItemDimensionsUnion3;
23388
23593
  } | undefined;
23389
23594
  /**
23390
23595
  * Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed.
@@ -23395,7 +23600,6 @@ type PhaseCreditSchemaAddItem1 = {
23395
23600
  tierBehavior: "graduated";
23396
23601
  tiers: Array<PhaseAddItemFeatureOverrideTier2>;
23397
23602
  };
23398
- type PhaseAddItemCreditSchemaUnion2 = PhaseCreditSchemaAddItem1 | PhaseCreditSchemaAddItem2;
23399
23603
  type PhaseAddItemProviderMarkups2 = {
23400
23604
  markup: number;
23401
23605
  };
@@ -23404,7 +23608,6 @@ type PhaseAddItemModelMarkups2 = {
23404
23608
  inputCost?: number | undefined;
23405
23609
  outputCost?: number | undefined;
23406
23610
  };
23407
-
23408
23611
  /**
23409
23612
  * 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.
23410
23613
  */
@@ -23431,9 +23634,9 @@ type PhaseAddItemMarkups2 = {
23431
23634
  */
23432
23635
  type PhaseAddItemFeatureOverride2 = {
23433
23636
  /**
23434
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
23637
+ * 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.
23435
23638
  */
23436
- creditSchema?: Array<PhaseAddItemCreditSchemaUnion2> | undefined;
23639
+ creditSchema?: Array<PhaseCreditSchemaAddItem1 | PhaseCreditSchemaAddItem2 | PhaseCreditSchemaAddItem3> | undefined;
23437
23640
  /**
23438
23641
  * 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.
23439
23642
  */
@@ -24072,6 +24275,16 @@ type PhaseUpsertLicenseExpiry2 = {
24072
24275
  duration: PhaseUpsertLicenseDuration2;
24073
24276
  length: number;
24074
24277
  };
24278
+ type PhaseCreditSchemaUpsertLicense3 = {
24279
+ /**
24280
+ * ID of the metered feature to remove from the credit system.
24281
+ */
24282
+ meteredFeatureId: string;
24283
+ /**
24284
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
24285
+ */
24286
+ excluded: true;
24287
+ };
24075
24288
  type PhaseDimensionsUpsertLicense4 = {
24076
24289
  /**
24077
24290
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -24282,9 +24495,9 @@ type PhaseUpsertLicenseMarkups2 = {
24282
24495
  */
24283
24496
  type PhaseUpsertLicenseFeatureOverride2 = {
24284
24497
  /**
24285
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
24498
+ * 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.
24286
24499
  */
24287
- creditSchema?: Array<PhaseCreditSchemaUpsertLicense1 | PhaseCreditSchemaUpsertLicense2> | undefined;
24500
+ creditSchema?: Array<PhaseCreditSchemaUpsertLicense1 | PhaseCreditSchemaUpsertLicense2 | PhaseCreditSchemaUpsertLicense3> | undefined;
24288
24501
  /**
24289
24502
  * 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.
24290
24503
  */
@@ -29689,6 +29902,16 @@ type GetPlanItemExpiry = {
29689
29902
  duration: GetPlanItemDuration;
29690
29903
  length: number;
29691
29904
  };
29905
+ type GetPlanCreditSchemaItemFeatureOverride3 = {
29906
+ /**
29907
+ * ID of the metered feature to remove from the credit system.
29908
+ */
29909
+ meteredFeatureId: string;
29910
+ /**
29911
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
29912
+ */
29913
+ excluded: true;
29914
+ };
29692
29915
  type GetPlanDimensionsItem4 = {
29693
29916
  /**
29694
29917
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -29907,9 +30130,9 @@ type GetPlanItemMarkups = {
29907
30130
  */
29908
30131
  type GetPlanItemFeatureOverride = {
29909
30132
  /**
29910
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
30133
+ * 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.
29911
30134
  */
29912
- creditSchema?: Array<GetPlanCreditSchemaItemFeatureOverride1 | GetPlanCreditSchemaItemFeatureOverride2> | undefined;
30135
+ creditSchema?: Array<GetPlanCreditSchemaItemFeatureOverride1 | GetPlanCreditSchemaItemFeatureOverride2 | GetPlanCreditSchemaItemFeatureOverride3> | undefined;
29913
30136
  /**
29914
30137
  * 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.
29915
30138
  */
@@ -30631,6 +30854,16 @@ type GetPlanVariantDetailsExpiry = {
30631
30854
  duration: GetPlanVariantDetailsDuration;
30632
30855
  length: number;
30633
30856
  };
30857
+ type GetPlanCreditSchemaVariantDetails3 = {
30858
+ /**
30859
+ * ID of the metered feature to remove from the credit system.
30860
+ */
30861
+ meteredFeatureId: string;
30862
+ /**
30863
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
30864
+ */
30865
+ excluded: true;
30866
+ };
30634
30867
  type GetPlanDimensionsVariantDetails4 = {
30635
30868
  /**
30636
30869
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -30849,9 +31082,9 @@ type GetPlanVariantDetailsMarkups = {
30849
31082
  */
30850
31083
  type GetPlanVariantDetailsFeatureOverride = {
30851
31084
  /**
30852
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
31085
+ * 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.
30853
31086
  */
30854
- creditSchema?: Array<GetPlanCreditSchemaVariantDetails1 | GetPlanCreditSchemaVariantDetails2> | undefined;
31087
+ creditSchema?: Array<GetPlanCreditSchemaVariantDetails1 | GetPlanCreditSchemaVariantDetails2 | GetPlanCreditSchemaVariantDetails3> | undefined;
30855
31088
  /**
30856
31089
  * 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.
30857
31090
  */
@@ -31184,6 +31417,7 @@ declare const GetPlanVariantDetailsBasis: {
31184
31417
  * 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.
31185
31418
  */
31186
31419
  type GetPlanVariantDetailsBasis = OpenEnum<typeof GetPlanVariantDetailsBasis>;
31420
+
31187
31421
  /**
31188
31422
  * Only valid with basis usage_limit. Points the alert at the usage limit carrying the same filter.
31189
31423
  */
@@ -31222,7 +31456,6 @@ type GetPlanVariantDetailsUsageAlert = {
31222
31456
  */
31223
31457
  name?: string | undefined;
31224
31458
  };
31225
-
31226
31459
  type GetPlanVariantDetailsOverageAllowed = {
31227
31460
  /**
31228
31461
  * The feature ID this overage allowed control applies to.
@@ -31532,6 +31765,16 @@ type GetPlanUpsertLicenseExpiry = {
31532
31765
  duration: GetPlanUpsertLicenseDuration;
31533
31766
  length: number;
31534
31767
  };
31768
+ type GetPlanCreditSchemaUpsertLicense3 = {
31769
+ /**
31770
+ * ID of the metered feature to remove from the credit system.
31771
+ */
31772
+ meteredFeatureId: string;
31773
+ /**
31774
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
31775
+ */
31776
+ excluded: true;
31777
+ };
31535
31778
  type GetPlanDimensionsUpsertLicense4 = {
31536
31779
  /**
31537
31780
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -31750,9 +31993,9 @@ type GetPlanUpsertLicenseMarkups = {
31750
31993
  */
31751
31994
  type GetPlanUpsertLicenseFeatureOverride = {
31752
31995
  /**
31753
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
31996
+ * 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.
31754
31997
  */
31755
- creditSchema?: Array<GetPlanCreditSchemaUpsertLicense1 | GetPlanCreditSchemaUpsertLicense2> | undefined;
31998
+ creditSchema?: Array<GetPlanCreditSchemaUpsertLicense1 | GetPlanCreditSchemaUpsertLicense2 | GetPlanCreditSchemaUpsertLicense3> | undefined;
31756
31999
  /**
31757
32000
  * 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.
31758
32001
  */
@@ -32202,6 +32445,16 @@ type GetPlanLicenseExpiry = {
32202
32445
  duration: GetPlanLicenseDuration;
32203
32446
  length: number;
32204
32447
  };
32448
+ type GetPlanCreditSchemaLicense3 = {
32449
+ /**
32450
+ * ID of the metered feature to remove from the credit system.
32451
+ */
32452
+ meteredFeatureId: string;
32453
+ /**
32454
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
32455
+ */
32456
+ excluded: true;
32457
+ };
32205
32458
  type GetPlanDimensionsLicense4 = {
32206
32459
  /**
32207
32460
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -32420,9 +32673,9 @@ type GetPlanLicenseMarkups = {
32420
32673
  */
32421
32674
  type GetPlanLicenseFeatureOverride = {
32422
32675
  /**
32423
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
32676
+ * 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.
32424
32677
  */
32425
- creditSchema?: Array<GetPlanCreditSchemaLicense1 | GetPlanCreditSchemaLicense2> | undefined;
32678
+ creditSchema?: Array<GetPlanCreditSchemaLicense1 | GetPlanCreditSchemaLicense2 | GetPlanCreditSchemaLicense3> | undefined;
32426
32679
  /**
32427
32680
  * 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.
32428
32681
  */
@@ -37208,6 +37461,16 @@ type ListPlansItemExpiry = {
37208
37461
  duration: ListPlansItemDuration;
37209
37462
  length: number;
37210
37463
  };
37464
+ type ListPlansCreditSchemaItemFeatureOverride3 = {
37465
+ /**
37466
+ * ID of the metered feature to remove from the credit system.
37467
+ */
37468
+ meteredFeatureId: string;
37469
+ /**
37470
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
37471
+ */
37472
+ excluded: true;
37473
+ };
37211
37474
  type ListPlansDimensionsItem4 = {
37212
37475
  /**
37213
37476
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -37426,9 +37689,9 @@ type ListPlansItemMarkups = {
37426
37689
  */
37427
37690
  type ListPlansItemFeatureOverride = {
37428
37691
  /**
37429
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
37692
+ * 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.
37430
37693
  */
37431
- creditSchema?: Array<ListPlansCreditSchemaItemFeatureOverride1 | ListPlansCreditSchemaItemFeatureOverride2> | undefined;
37694
+ creditSchema?: Array<ListPlansCreditSchemaItemFeatureOverride1 | ListPlansCreditSchemaItemFeatureOverride2 | ListPlansCreditSchemaItemFeatureOverride3> | undefined;
37432
37695
  /**
37433
37696
  * 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.
37434
37697
  */
@@ -38150,6 +38413,16 @@ type ListPlansVariantDetailsExpiry = {
38150
38413
  duration: ListPlansVariantDetailsDuration;
38151
38414
  length: number;
38152
38415
  };
38416
+ type ListPlansCreditSchemaVariantDetails3 = {
38417
+ /**
38418
+ * ID of the metered feature to remove from the credit system.
38419
+ */
38420
+ meteredFeatureId: string;
38421
+ /**
38422
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
38423
+ */
38424
+ excluded: true;
38425
+ };
38153
38426
  type ListPlansDimensionsVariantDetails4 = {
38154
38427
  /**
38155
38428
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -38368,9 +38641,9 @@ type ListPlansVariantDetailsMarkups = {
38368
38641
  */
38369
38642
  type ListPlansVariantDetailsFeatureOverride = {
38370
38643
  /**
38371
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
38644
+ * 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.
38372
38645
  */
38373
- creditSchema?: Array<ListPlansCreditSchemaVariantDetails1 | ListPlansCreditSchemaVariantDetails2> | undefined;
38646
+ creditSchema?: Array<ListPlansCreditSchemaVariantDetails1 | ListPlansCreditSchemaVariantDetails2 | ListPlansCreditSchemaVariantDetails3> | undefined;
38374
38647
  /**
38375
38648
  * 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.
38376
38649
  */
@@ -38703,6 +38976,7 @@ declare const ListPlansVariantDetailsBasis: {
38703
38976
  * 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.
38704
38977
  */
38705
38978
  type ListPlansVariantDetailsBasis = OpenEnum<typeof ListPlansVariantDetailsBasis>;
38979
+
38706
38980
  /**
38707
38981
  * Only valid with basis usage_limit. Points the alert at the usage limit carrying the same filter.
38708
38982
  */
@@ -38741,7 +39015,6 @@ type ListPlansVariantDetailsUsageAlert = {
38741
39015
  */
38742
39016
  name?: string | undefined;
38743
39017
  };
38744
-
38745
39018
  type ListPlansVariantDetailsOverageAllowed = {
38746
39019
  /**
38747
39020
  * The feature ID this overage allowed control applies to.
@@ -39051,6 +39324,16 @@ type ListPlansVariantDetailsUpsertLicenseExpiry = {
39051
39324
  duration: ListPlansVariantDetailsUpsertLicenseDuration;
39052
39325
  length: number;
39053
39326
  };
39327
+ type ListPlansCreditSchemaVariantDetailsUpsertLicense3 = {
39328
+ /**
39329
+ * ID of the metered feature to remove from the credit system.
39330
+ */
39331
+ meteredFeatureId: string;
39332
+ /**
39333
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
39334
+ */
39335
+ excluded: true;
39336
+ };
39054
39337
  type ListPlansDimensionsVariantDetailsUpsertLicense4 = {
39055
39338
  /**
39056
39339
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -39269,9 +39552,9 @@ type ListPlansVariantDetailsUpsertLicenseMarkups = {
39269
39552
  */
39270
39553
  type ListPlansVariantDetailsUpsertLicenseFeatureOverride = {
39271
39554
  /**
39272
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
39555
+ * 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.
39273
39556
  */
39274
- creditSchema?: Array<ListPlansCreditSchemaVariantDetailsUpsertLicense1 | ListPlansCreditSchemaVariantDetailsUpsertLicense2> | undefined;
39557
+ creditSchema?: Array<ListPlansCreditSchemaVariantDetailsUpsertLicense1 | ListPlansCreditSchemaVariantDetailsUpsertLicense2 | ListPlansCreditSchemaVariantDetailsUpsertLicense3> | undefined;
39275
39558
  /**
39276
39559
  * 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.
39277
39560
  */
@@ -39721,6 +40004,16 @@ type ListPlansLicenseExpiry = {
39721
40004
  duration: ListPlansLicenseDuration;
39722
40005
  length: number;
39723
40006
  };
40007
+ type ListPlansCreditSchemaLicense3 = {
40008
+ /**
40009
+ * ID of the metered feature to remove from the credit system.
40010
+ */
40011
+ meteredFeatureId: string;
40012
+ /**
40013
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
40014
+ */
40015
+ excluded: true;
40016
+ };
39724
40017
  type ListPlansDimensionsLicense4 = {
39725
40018
  /**
39726
40019
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -39939,9 +40232,9 @@ type ListPlansLicenseMarkups = {
39939
40232
  */
39940
40233
  type ListPlansLicenseFeatureOverride = {
39941
40234
  /**
39942
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
40235
+ * 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.
39943
40236
  */
39944
- creditSchema?: Array<ListPlansCreditSchemaLicense1 | ListPlansCreditSchemaLicense2> | undefined;
40237
+ creditSchema?: Array<ListPlansCreditSchemaLicense1 | ListPlansCreditSchemaLicense2 | ListPlansCreditSchemaLicense3> | undefined;
39945
40238
  /**
39946
40239
  * 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.
39947
40240
  */
@@ -40368,6 +40661,16 @@ type ListPlansVariantAddItemExpiry = {
40368
40661
  duration: ListPlansVariantAddItemDuration;
40369
40662
  length: number;
40370
40663
  };
40664
+ type ListPlansCreditSchemaVariantAddItem3 = {
40665
+ /**
40666
+ * ID of the metered feature to remove from the credit system.
40667
+ */
40668
+ meteredFeatureId: string;
40669
+ /**
40670
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
40671
+ */
40672
+ excluded: true;
40673
+ };
40371
40674
  type ListPlansDimensionsVariantAddItem4 = {
40372
40675
  /**
40373
40676
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -40498,7 +40801,7 @@ type ListPlansDimensionsVariantAddItem1 = {
40498
40801
  tierBehavior: "graduated";
40499
40802
  tiers: Array<ListPlansDimensionsVariantAddItemTier1>;
40500
40803
  };
40501
- type ListPlansVariantAddItemDimensionsUnion1 = ListPlansDimensionsVariantAddItem1 | ListPlansDimensionsVariantAddItem2;
40804
+
40502
40805
  type ListPlansVariantAddItemMultipliers1 = {
40503
40806
  /**
40504
40807
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -40529,7 +40832,6 @@ type ListPlansVariantAddItemFeatureOverrideTier = {
40529
40832
  */
40530
40833
  creditCost: number;
40531
40834
  };
40532
-
40533
40835
  type ListPlansCreditSchemaVariantAddItem1 = {
40534
40836
  /**
40535
40837
  * ID of the metered feature that draws from this credit system.
@@ -40543,7 +40845,7 @@ type ListPlansCreditSchemaVariantAddItem1 = {
40543
40845
  * Named rates chosen by event properties. The most specific match sets the rate; with no match the item's own rate applies.
40544
40846
  */
40545
40847
  dimensions?: {
40546
- [k: string]: ListPlansVariantAddItemDimensionsUnion1;
40848
+ [k: string]: ListPlansDimensionsVariantAddItem1 | ListPlansDimensionsVariantAddItem2;
40547
40849
  } | undefined;
40548
40850
  /**
40549
40851
  * Named adjustments chosen by event properties. Every match applies: factors multiply, then adds are summed.
@@ -40588,9 +40890,9 @@ type ListPlansVariantAddItemMarkups = {
40588
40890
  */
40589
40891
  type ListPlansVariantAddItemFeatureOverride = {
40590
40892
  /**
40591
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
40893
+ * 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.
40592
40894
  */
40593
- creditSchema?: Array<ListPlansCreditSchemaVariantAddItem1 | ListPlansCreditSchemaVariantAddItem2> | undefined;
40895
+ creditSchema?: Array<ListPlansCreditSchemaVariantAddItem1 | ListPlansCreditSchemaVariantAddItem2 | ListPlansCreditSchemaVariantAddItem3> | undefined;
40594
40896
  /**
40595
40897
  * 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.
40596
40898
  */
@@ -41270,6 +41572,16 @@ type ListPlansVariantUpsertLicenseExpiry = {
41270
41572
  duration: ListPlansVariantUpsertLicenseDuration;
41271
41573
  length: number;
41272
41574
  };
41575
+ type ListPlansCreditSchemaVariantUpsertLicense3 = {
41576
+ /**
41577
+ * ID of the metered feature to remove from the credit system.
41578
+ */
41579
+ meteredFeatureId: string;
41580
+ /**
41581
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
41582
+ */
41583
+ excluded: true;
41584
+ };
41273
41585
  type ListPlansDimensionsVariantUpsertLicense4 = {
41274
41586
  /**
41275
41587
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -41480,9 +41792,9 @@ type ListPlansVariantUpsertLicenseMarkups = {
41480
41792
  */
41481
41793
  type ListPlansVariantUpsertLicenseFeatureOverride = {
41482
41794
  /**
41483
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
41795
+ * 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.
41484
41796
  */
41485
- creditSchema?: Array<ListPlansCreditSchemaVariantUpsertLicense1 | ListPlansCreditSchemaVariantUpsertLicense2> | undefined;
41797
+ creditSchema?: Array<ListPlansCreditSchemaVariantUpsertLicense1 | ListPlansCreditSchemaVariantUpsertLicense2 | ListPlansCreditSchemaVariantUpsertLicense3> | undefined;
41486
41798
  /**
41487
41799
  * 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.
41488
41800
  */
@@ -41993,6 +42305,16 @@ type VariantPlanExpiry = {
41993
42305
  duration: VariantPlanDuration;
41994
42306
  length: number;
41995
42307
  };
42308
+ type CreditSchemaVariantPlanFeatureOverride3 = {
42309
+ /**
42310
+ * ID of the metered feature to remove from the credit system.
42311
+ */
42312
+ meteredFeatureId: string;
42313
+ /**
42314
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
42315
+ */
42316
+ excluded: true;
42317
+ };
41996
42318
  type DimensionsVariantPlan4 = {
41997
42319
  /**
41998
42320
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -42211,9 +42533,9 @@ type VariantPlanMarkups = {
42211
42533
  */
42212
42534
  type VariantPlanFeatureOverride = {
42213
42535
  /**
42214
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
42536
+ * 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.
42215
42537
  */
42216
- creditSchema?: Array<CreditSchemaVariantPlanFeatureOverride1 | CreditSchemaVariantPlanFeatureOverride2> | undefined;
42538
+ creditSchema?: Array<CreditSchemaVariantPlanFeatureOverride1 | CreditSchemaVariantPlanFeatureOverride2 | CreditSchemaVariantPlanFeatureOverride3> | undefined;
42217
42539
  /**
42218
42540
  * 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.
42219
42541
  */
@@ -42355,6 +42677,7 @@ declare const VariantEnv: {
42355
42677
  * Environment this plan belongs to ('sandbox' or 'live').
42356
42678
  */
42357
42679
  type VariantEnv = OpenEnum<typeof VariantEnv>;
42680
+
42358
42681
  /**
42359
42682
  * Miscellaneous plan-level configuration flags.
42360
42683
  */
@@ -42470,7 +42793,6 @@ declare const VariantPlanUsageLimitInterval: {
42470
42793
  * Interval for the cap, aligned to the customer's billing cycle.
42471
42794
  */
42472
42795
  type VariantPlanUsageLimitInterval = OpenEnum<typeof VariantPlanUsageLimitInterval>;
42473
-
42474
42796
  /**
42475
42797
  * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
42476
42798
  */
@@ -43776,6 +44098,16 @@ type MultiAttachExpiry = {
43776
44098
  duration: MultiAttachDuration;
43777
44099
  length: number;
43778
44100
  };
44101
+ type MultiAttachCreditSchema3 = {
44102
+ /**
44103
+ * ID of the metered feature to remove from the credit system.
44104
+ */
44105
+ meteredFeatureId: string;
44106
+ /**
44107
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
44108
+ */
44109
+ excluded: true;
44110
+ };
43779
44111
  type MultiAttachDimensions4 = {
43780
44112
  /**
43781
44113
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -43994,9 +44326,9 @@ type MultiAttachMarkups = {
43994
44326
  */
43995
44327
  type MultiAttachFeatureOverride = {
43996
44328
  /**
43997
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
44329
+ * 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.
43998
44330
  */
43999
- creditSchema?: Array<MultiAttachCreditSchema1 | MultiAttachCreditSchema2> | undefined;
44331
+ creditSchema?: Array<MultiAttachCreditSchema1 | MultiAttachCreditSchema2 | MultiAttachCreditSchema3> | undefined;
44000
44332
  /**
44001
44333
  * 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.
44002
44334
  */
@@ -45251,6 +45583,16 @@ type PreviewAttachItemExpiry = {
45251
45583
  duration: PreviewAttachItemDuration;
45252
45584
  length: number;
45253
45585
  };
45586
+ type PreviewAttachCreditSchemaItem3 = {
45587
+ /**
45588
+ * ID of the metered feature to remove from the credit system.
45589
+ */
45590
+ meteredFeatureId: string;
45591
+ /**
45592
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
45593
+ */
45594
+ excluded: true;
45595
+ };
45254
45596
  type PreviewAttachDimensionsItem4 = {
45255
45597
  /**
45256
45598
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -45469,9 +45811,9 @@ type PreviewAttachItemMarkups = {
45469
45811
  */
45470
45812
  type PreviewAttachItemFeatureOverride = {
45471
45813
  /**
45472
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
45814
+ * 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.
45473
45815
  */
45474
- creditSchema?: Array<PreviewAttachCreditSchemaItem1 | PreviewAttachCreditSchemaItem2> | undefined;
45816
+ creditSchema?: Array<PreviewAttachCreditSchemaItem1 | PreviewAttachCreditSchemaItem2 | PreviewAttachCreditSchemaItem3> | undefined;
45475
45817
  /**
45476
45818
  * 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.
45477
45819
  */
@@ -45757,6 +46099,16 @@ type PreviewAttachAddItemExpiry = {
45757
46099
  duration: PreviewAttachAddItemDuration;
45758
46100
  length: number;
45759
46101
  };
46102
+ type PreviewAttachCreditSchemaAddItem3 = {
46103
+ /**
46104
+ * ID of the metered feature to remove from the credit system.
46105
+ */
46106
+ meteredFeatureId: string;
46107
+ /**
46108
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
46109
+ */
46110
+ excluded: true;
46111
+ };
45760
46112
  type PreviewAttachDimensionsAddItem4 = {
45761
46113
  /**
45762
46114
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -45975,9 +46327,9 @@ type PreviewAttachAddItemMarkups = {
45975
46327
  */
45976
46328
  type PreviewAttachAddItemFeatureOverride = {
45977
46329
  /**
45978
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
46330
+ * 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.
45979
46331
  */
45980
- creditSchema?: Array<PreviewAttachCreditSchemaAddItem1 | PreviewAttachCreditSchemaAddItem2> | undefined;
46332
+ creditSchema?: Array<PreviewAttachCreditSchemaAddItem1 | PreviewAttachCreditSchemaAddItem2 | PreviewAttachCreditSchemaAddItem3> | undefined;
45981
46333
  /**
45982
46334
  * 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.
45983
46335
  */
@@ -46614,6 +46966,7 @@ type PreviewAttachUpsertLicenseProration = {
46614
46966
  */
46615
46967
  onDecrease: PreviewAttachUpsertLicenseOnDecrease;
46616
46968
  };
46969
+
46617
46970
  /**
46618
46971
  * When rolled over units expire.
46619
46972
  */
@@ -46646,7 +46999,6 @@ type PreviewAttachUpsertLicenseRollover = {
46646
46999
  */
46647
47000
  expiryDurationLength?: number | undefined;
46648
47001
  };
46649
-
46650
47002
  declare const PreviewAttachUpsertLicenseDuration: {
46651
47003
  readonly Day: "day";
46652
47004
  readonly Week: "week";
@@ -46661,6 +47013,16 @@ type PreviewAttachUpsertLicenseExpiry = {
46661
47013
  duration: PreviewAttachUpsertLicenseDuration;
46662
47014
  length: number;
46663
47015
  };
47016
+ type PreviewAttachCreditSchemaUpsertLicense3 = {
47017
+ /**
47018
+ * ID of the metered feature to remove from the credit system.
47019
+ */
47020
+ meteredFeatureId: string;
47021
+ /**
47022
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
47023
+ */
47024
+ excluded: true;
47025
+ };
46664
47026
  type PreviewAttachDimensionsUpsertLicense4 = {
46665
47027
  /**
46666
47028
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -46879,9 +47241,9 @@ type PreviewAttachUpsertLicenseMarkups = {
46879
47241
  */
46880
47242
  type PreviewAttachUpsertLicenseFeatureOverride = {
46881
47243
  /**
46882
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
47244
+ * 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.
46883
47245
  */
46884
- creditSchema?: Array<PreviewAttachCreditSchemaUpsertLicense1 | PreviewAttachCreditSchemaUpsertLicense2> | undefined;
47246
+ creditSchema?: Array<PreviewAttachCreditSchemaUpsertLicense1 | PreviewAttachCreditSchemaUpsertLicense2 | PreviewAttachCreditSchemaUpsertLicense3> | undefined;
46885
47247
  /**
46886
47248
  * 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.
46887
47249
  */
@@ -48266,6 +48628,16 @@ type PreviewMultiAttachExpiry = {
48266
48628
  duration: PreviewMultiAttachDuration;
48267
48629
  length: number;
48268
48630
  };
48631
+ type PreviewMultiAttachCreditSchema3 = {
48632
+ /**
48633
+ * ID of the metered feature to remove from the credit system.
48634
+ */
48635
+ meteredFeatureId: string;
48636
+ /**
48637
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
48638
+ */
48639
+ excluded: true;
48640
+ };
48269
48641
  type PreviewMultiAttachDimensions4 = {
48270
48642
  /**
48271
48643
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -48484,9 +48856,9 @@ type PreviewMultiAttachMarkups = {
48484
48856
  */
48485
48857
  type PreviewMultiAttachFeatureOverride = {
48486
48858
  /**
48487
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
48859
+ * 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.
48488
48860
  */
48489
- creditSchema?: Array<PreviewMultiAttachCreditSchema1 | PreviewMultiAttachCreditSchema2> | undefined;
48861
+ creditSchema?: Array<PreviewMultiAttachCreditSchema1 | PreviewMultiAttachCreditSchema2 | PreviewMultiAttachCreditSchema3> | undefined;
48490
48862
  /**
48491
48863
  * 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.
48492
48864
  */
@@ -50394,6 +50766,16 @@ type PreviewUpdateItemExpiry = {
50394
50766
  duration: PreviewUpdateItemDuration;
50395
50767
  length: number;
50396
50768
  };
50769
+ type PreviewUpdateCreditSchemaItem3 = {
50770
+ /**
50771
+ * ID of the metered feature to remove from the credit system.
50772
+ */
50773
+ meteredFeatureId: string;
50774
+ /**
50775
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
50776
+ */
50777
+ excluded: true;
50778
+ };
50397
50779
  type PreviewUpdateDimensionsItem4 = {
50398
50780
  /**
50399
50781
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -50612,9 +50994,9 @@ type PreviewUpdateItemMarkups = {
50612
50994
  */
50613
50995
  type PreviewUpdateItemFeatureOverride = {
50614
50996
  /**
50615
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
50997
+ * 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.
50616
50998
  */
50617
- creditSchema?: Array<PreviewUpdateCreditSchemaItem1 | PreviewUpdateCreditSchemaItem2> | undefined;
50999
+ creditSchema?: Array<PreviewUpdateCreditSchemaItem1 | PreviewUpdateCreditSchemaItem2 | PreviewUpdateCreditSchemaItem3> | undefined;
50618
51000
  /**
50619
51001
  * 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.
50620
51002
  */
@@ -50900,6 +51282,16 @@ type PreviewUpdateAddItemExpiry = {
50900
51282
  duration: PreviewUpdateAddItemDuration;
50901
51283
  length: number;
50902
51284
  };
51285
+ type PreviewUpdateCreditSchemaAddItem3 = {
51286
+ /**
51287
+ * ID of the metered feature to remove from the credit system.
51288
+ */
51289
+ meteredFeatureId: string;
51290
+ /**
51291
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
51292
+ */
51293
+ excluded: true;
51294
+ };
50903
51295
  type PreviewUpdateDimensionsAddItem4 = {
50904
51296
  /**
50905
51297
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -51118,9 +51510,9 @@ type PreviewUpdateAddItemMarkups = {
51118
51510
  */
51119
51511
  type PreviewUpdateAddItemFeatureOverride = {
51120
51512
  /**
51121
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
51513
+ * 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.
51122
51514
  */
51123
- creditSchema?: Array<PreviewUpdateCreditSchemaAddItem1 | PreviewUpdateCreditSchemaAddItem2> | undefined;
51515
+ creditSchema?: Array<PreviewUpdateCreditSchemaAddItem1 | PreviewUpdateCreditSchemaAddItem2 | PreviewUpdateCreditSchemaAddItem3> | undefined;
51124
51516
  /**
51125
51517
  * 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.
51126
51518
  */
@@ -51757,6 +52149,7 @@ type PreviewUpdateUpsertLicenseProration = {
51757
52149
  */
51758
52150
  onDecrease: PreviewUpdateUpsertLicenseOnDecrease;
51759
52151
  };
52152
+
51760
52153
  /**
51761
52154
  * When rolled over units expire.
51762
52155
  */
@@ -51789,7 +52182,6 @@ type PreviewUpdateUpsertLicenseRollover = {
51789
52182
  */
51790
52183
  expiryDurationLength?: number | undefined;
51791
52184
  };
51792
-
51793
52185
  declare const PreviewUpdateUpsertLicenseDuration: {
51794
52186
  readonly Day: "day";
51795
52187
  readonly Week: "week";
@@ -51804,6 +52196,16 @@ type PreviewUpdateUpsertLicenseExpiry = {
51804
52196
  duration: PreviewUpdateUpsertLicenseDuration;
51805
52197
  length: number;
51806
52198
  };
52199
+ type PreviewUpdateCreditSchemaUpsertLicense3 = {
52200
+ /**
52201
+ * ID of the metered feature to remove from the credit system.
52202
+ */
52203
+ meteredFeatureId: string;
52204
+ /**
52205
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
52206
+ */
52207
+ excluded: true;
52208
+ };
51807
52209
  type PreviewUpdateDimensionsUpsertLicense4 = {
51808
52210
  /**
51809
52211
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -52022,9 +52424,9 @@ type PreviewUpdateUpsertLicenseMarkups = {
52022
52424
  */
52023
52425
  type PreviewUpdateUpsertLicenseFeatureOverride = {
52024
52426
  /**
52025
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
52427
+ * 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.
52026
52428
  */
52027
- creditSchema?: Array<PreviewUpdateCreditSchemaUpsertLicense1 | PreviewUpdateCreditSchemaUpsertLicense2> | undefined;
52429
+ creditSchema?: Array<PreviewUpdateCreditSchemaUpsertLicense1 | PreviewUpdateCreditSchemaUpsertLicense2 | PreviewUpdateCreditSchemaUpsertLicense3> | undefined;
52028
52430
  /**
52029
52431
  * 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.
52030
52432
  */
@@ -53549,7 +53951,7 @@ type ReissueInvoiceCreditSchema1 = {
53549
53951
  */
53550
53952
  type ReissueInvoiceFeatureOverride = {
53551
53953
  /**
53552
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
53954
+ * Replaces the feature's credit_schema entirely for this invoice.
53553
53955
  */
53554
53956
  creditSchema?: Array<ReissueInvoiceCreditSchema1 | ReissueInvoiceCreditSchema2> | undefined;
53555
53957
  };
@@ -53980,7 +54382,7 @@ type ReissueInvoiceCreditSchemaLicenseQuantity1 = {
53980
54382
  */
53981
54383
  type ReissueInvoiceLicenseQuantityFeatureOverride = {
53982
54384
  /**
53983
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
54385
+ * Replaces the feature's credit_schema entirely for this invoice.
53984
54386
  */
53985
54387
  creditSchema?: Array<ReissueInvoiceCreditSchemaLicenseQuantity1 | ReissueInvoiceCreditSchemaLicenseQuantity2> | undefined;
53986
54388
  };
@@ -54951,6 +55353,16 @@ type SetupPaymentItemExpiry = {
54951
55353
  duration: SetupPaymentItemDuration;
54952
55354
  length: number;
54953
55355
  };
55356
+ type SetupPaymentCreditSchemaItem3 = {
55357
+ /**
55358
+ * ID of the metered feature to remove from the credit system.
55359
+ */
55360
+ meteredFeatureId: string;
55361
+ /**
55362
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
55363
+ */
55364
+ excluded: true;
55365
+ };
54954
55366
  type SetupPaymentDimensionsItem4 = {
54955
55367
  /**
54956
55368
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -55169,9 +55581,9 @@ type SetupPaymentItemMarkups = {
55169
55581
  */
55170
55582
  type SetupPaymentItemFeatureOverride = {
55171
55583
  /**
55172
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
55584
+ * 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.
55173
55585
  */
55174
- creditSchema?: Array<SetupPaymentCreditSchemaItem1 | SetupPaymentCreditSchemaItem2> | undefined;
55586
+ creditSchema?: Array<SetupPaymentCreditSchemaItem1 | SetupPaymentCreditSchemaItem2 | SetupPaymentCreditSchemaItem3> | undefined;
55175
55587
  /**
55176
55588
  * 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.
55177
55589
  */
@@ -55457,6 +55869,16 @@ type SetupPaymentAddItemExpiry = {
55457
55869
  duration: SetupPaymentAddItemDuration;
55458
55870
  length: number;
55459
55871
  };
55872
+ type SetupPaymentCreditSchemaAddItem3 = {
55873
+ /**
55874
+ * ID of the metered feature to remove from the credit system.
55875
+ */
55876
+ meteredFeatureId: string;
55877
+ /**
55878
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
55879
+ */
55880
+ excluded: true;
55881
+ };
55460
55882
  type SetupPaymentDimensionsAddItem4 = {
55461
55883
  /**
55462
55884
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -55675,9 +56097,9 @@ type SetupPaymentAddItemMarkups = {
55675
56097
  */
55676
56098
  type SetupPaymentAddItemFeatureOverride = {
55677
56099
  /**
55678
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
56100
+ * 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.
55679
56101
  */
55680
- creditSchema?: Array<SetupPaymentCreditSchemaAddItem1 | SetupPaymentCreditSchemaAddItem2> | undefined;
56102
+ creditSchema?: Array<SetupPaymentCreditSchemaAddItem1 | SetupPaymentCreditSchemaAddItem2 | SetupPaymentCreditSchemaAddItem3> | undefined;
55681
56103
  /**
55682
56104
  * 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.
55683
56105
  */
@@ -56314,6 +56736,7 @@ type SetupPaymentUpsertLicenseProration = {
56314
56736
  */
56315
56737
  onDecrease: SetupPaymentUpsertLicenseOnDecrease;
56316
56738
  };
56739
+
56317
56740
  /**
56318
56741
  * When rolled over units expire.
56319
56742
  */
@@ -56346,7 +56769,6 @@ type SetupPaymentUpsertLicenseRollover = {
56346
56769
  */
56347
56770
  expiryDurationLength?: number | undefined;
56348
56771
  };
56349
-
56350
56772
  declare const SetupPaymentUpsertLicenseDuration: {
56351
56773
  readonly Day: "day";
56352
56774
  readonly Week: "week";
@@ -56361,6 +56783,16 @@ type SetupPaymentUpsertLicenseExpiry = {
56361
56783
  duration: SetupPaymentUpsertLicenseDuration;
56362
56784
  length: number;
56363
56785
  };
56786
+ type SetupPaymentCreditSchemaUpsertLicense3 = {
56787
+ /**
56788
+ * ID of the metered feature to remove from the credit system.
56789
+ */
56790
+ meteredFeatureId: string;
56791
+ /**
56792
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
56793
+ */
56794
+ excluded: true;
56795
+ };
56364
56796
  type SetupPaymentDimensionsUpsertLicense4 = {
56365
56797
  /**
56366
56798
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -56579,9 +57011,9 @@ type SetupPaymentUpsertLicenseMarkups = {
56579
57011
  */
56580
57012
  type SetupPaymentUpsertLicenseFeatureOverride = {
56581
57013
  /**
56582
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
57014
+ * 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.
56583
57015
  */
56584
- creditSchema?: Array<SetupPaymentCreditSchemaUpsertLicense1 | SetupPaymentCreditSchemaUpsertLicense2> | undefined;
57016
+ creditSchema?: Array<SetupPaymentCreditSchemaUpsertLicense1 | SetupPaymentCreditSchemaUpsertLicense2 | SetupPaymentCreditSchemaUpsertLicense3> | undefined;
56585
57017
  /**
56586
57018
  * 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.
56587
57019
  */
@@ -61807,6 +62239,16 @@ type UpdatePlanItemExpiryRequestBody = {
61807
62239
  duration: UpdatePlanItemDurationRequestBody;
61808
62240
  length: number;
61809
62241
  };
62242
+ type UpdatePlanCreditSchemaItemRequestBody3 = {
62243
+ /**
62244
+ * ID of the metered feature to remove from the credit system.
62245
+ */
62246
+ meteredFeatureId: string;
62247
+ /**
62248
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
62249
+ */
62250
+ excluded: true;
62251
+ };
61810
62252
  type UpdatePlanDimensionsItemRequestBody4 = {
61811
62253
  /**
61812
62254
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -62025,9 +62467,9 @@ type UpdatePlanItemMarkupsRequestBody = {
62025
62467
  */
62026
62468
  type UpdatePlanItemFeatureOverrideRequestBody = {
62027
62469
  /**
62028
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
62470
+ * 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.
62029
62471
  */
62030
- creditSchema?: Array<UpdatePlanCreditSchemaItemRequestBody1 | UpdatePlanCreditSchemaItemRequestBody2> | undefined;
62472
+ creditSchema?: Array<UpdatePlanCreditSchemaItemRequestBody1 | UpdatePlanCreditSchemaItemRequestBody2 | UpdatePlanCreditSchemaItemRequestBody3> | undefined;
62031
62473
  /**
62032
62474
  * 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.
62033
62475
  */
@@ -62359,6 +62801,16 @@ type UpdatePlanLicenseExpiryRequestBody = {
62359
62801
  duration: UpdatePlanLicenseDurationRequestBody;
62360
62802
  length: number;
62361
62803
  };
62804
+ type UpdatePlanCreditSchemaLicenseRequestBody3 = {
62805
+ /**
62806
+ * ID of the metered feature to remove from the credit system.
62807
+ */
62808
+ meteredFeatureId: string;
62809
+ /**
62810
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
62811
+ */
62812
+ excluded: true;
62813
+ };
62362
62814
  type UpdatePlanDimensionsLicenseRequestBody4 = {
62363
62815
  /**
62364
62816
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -62577,9 +63029,9 @@ type UpdatePlanLicenseMarkupsRequestBody = {
62577
63029
  */
62578
63030
  type UpdatePlanLicenseFeatureOverrideRequestBody = {
62579
63031
  /**
62580
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
63032
+ * 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.
62581
63033
  */
62582
- creditSchema?: Array<UpdatePlanCreditSchemaLicenseRequestBody1 | UpdatePlanCreditSchemaLicenseRequestBody2> | undefined;
63034
+ creditSchema?: Array<UpdatePlanCreditSchemaLicenseRequestBody1 | UpdatePlanCreditSchemaLicenseRequestBody2 | UpdatePlanCreditSchemaLicenseRequestBody3> | undefined;
62583
63035
  /**
62584
63036
  * 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.
62585
63037
  */
@@ -63161,6 +63613,7 @@ declare const UpdatePlanVariantAddItemPriceInterval: {
63161
63613
  * Billing interval. For consumable features, should match reset.interval.
63162
63614
  */
63163
63615
  type UpdatePlanVariantAddItemPriceInterval = ClosedEnum<typeof UpdatePlanVariantAddItemPriceInterval>;
63616
+
63164
63617
  /**
63165
63618
  * 'prepaid' for upfront payment (seats), 'usage_based' for pay-as-you-go.
63166
63619
  */
@@ -63213,7 +63666,6 @@ type UpdatePlanVariantPrice = {
63213
63666
  */
63214
63667
  maxPurchase?: number | null | undefined;
63215
63668
  };
63216
-
63217
63669
  /**
63218
63670
  * Billing behavior when quantity increases mid-cycle.
63219
63671
  */
@@ -63300,6 +63752,16 @@ type UpdatePlanVariantExpiry = {
63300
63752
  duration: UpdatePlanVariantDuration;
63301
63753
  length: number;
63302
63754
  };
63755
+ type UpdatePlanCreditSchemaVariant3 = {
63756
+ /**
63757
+ * ID of the metered feature to remove from the credit system.
63758
+ */
63759
+ meteredFeatureId: string;
63760
+ /**
63761
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
63762
+ */
63763
+ excluded: true;
63764
+ };
63303
63765
  type UpdatePlanDimensionsVariant4 = {
63304
63766
  /**
63305
63767
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -63518,9 +63980,9 @@ type UpdatePlanVariantMarkups = {
63518
63980
  */
63519
63981
  type UpdatePlanVariantFeatureOverride = {
63520
63982
  /**
63521
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
63983
+ * 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.
63522
63984
  */
63523
- creditSchema?: Array<UpdatePlanCreditSchemaVariant1 | UpdatePlanCreditSchemaVariant2> | undefined;
63985
+ creditSchema?: Array<UpdatePlanCreditSchemaVariant1 | UpdatePlanCreditSchemaVariant2 | UpdatePlanCreditSchemaVariant3> | undefined;
63524
63986
  /**
63525
63987
  * 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.
63526
63988
  */
@@ -64203,6 +64665,16 @@ type UpdatePlanVariantUpsertLicenseExpiry = {
64203
64665
  duration: UpdatePlanVariantUpsertLicenseDuration;
64204
64666
  length: number;
64205
64667
  };
64668
+ type UpdatePlanCreditSchemaVariantUpsertLicense3 = {
64669
+ /**
64670
+ * ID of the metered feature to remove from the credit system.
64671
+ */
64672
+ meteredFeatureId: string;
64673
+ /**
64674
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
64675
+ */
64676
+ excluded: true;
64677
+ };
64206
64678
  type UpdatePlanDimensionsVariantUpsertLicense4 = {
64207
64679
  /**
64208
64680
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -64421,9 +64893,9 @@ type UpdatePlanVariantUpsertLicenseMarkups = {
64421
64893
  */
64422
64894
  type UpdatePlanVariantUpsertLicenseFeatureOverride = {
64423
64895
  /**
64424
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
64896
+ * 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.
64425
64897
  */
64426
- creditSchema?: Array<UpdatePlanCreditSchemaVariantUpsertLicense1 | UpdatePlanCreditSchemaVariantUpsertLicense2> | undefined;
64898
+ creditSchema?: Array<UpdatePlanCreditSchemaVariantUpsertLicense1 | UpdatePlanCreditSchemaVariantUpsertLicense2 | UpdatePlanCreditSchemaVariantUpsertLicense3> | undefined;
64427
64899
  /**
64428
64900
  * 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.
64429
64901
  */
@@ -64915,6 +65387,7 @@ declare const UpdatePlanItemTierBehaviorResponse: {
64915
65387
  * How tiers price usage. 'graduated' (default) charges each unit at the rate of the tier it falls in. 'volume' picks one tier from total usage. On usage-based items it bills only usage past the included amount, at the rate of the tier total usage reaches, plus its flat_amount. On prepaid items it charges every unit, the included ones too, at that tier's rate plus its flat_amount.
64916
65388
  */
64917
65389
  type UpdatePlanItemTierBehaviorResponse = OpenEnum<typeof UpdatePlanItemTierBehaviorResponse>;
65390
+
64918
65391
  /**
64919
65392
  * Billing interval for this price. For consumable features, should match reset.interval.
64920
65393
  */
@@ -64953,7 +65426,6 @@ type UpdatePlanItemStripe = {
64953
65426
  type UpdatePlanItemProcessors = {
64954
65427
  stripe?: UpdatePlanItemStripe | null | undefined;
64955
65428
  };
64956
-
64957
65429
  type UpdatePlanItemPriceResponse = {
64958
65430
  /**
64959
65431
  * Price per billing_units after included usage is consumed. Mutually exclusive with tiers.
@@ -65052,6 +65524,16 @@ type UpdatePlanItemExpiryResponse = {
65052
65524
  duration: UpdatePlanItemDurationResponse;
65053
65525
  length: number;
65054
65526
  };
65527
+ type UpdatePlanCreditSchemaItemFeatureOverrideResponse3 = {
65528
+ /**
65529
+ * ID of the metered feature to remove from the credit system.
65530
+ */
65531
+ meteredFeatureId: string;
65532
+ /**
65533
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
65534
+ */
65535
+ excluded: true;
65536
+ };
65055
65537
  type UpdatePlanDimensionsItemResponse4 = {
65056
65538
  /**
65057
65539
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -65270,9 +65752,9 @@ type UpdatePlanItemMarkupsResponse = {
65270
65752
  */
65271
65753
  type UpdatePlanItemFeatureOverrideResponse = {
65272
65754
  /**
65273
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
65755
+ * 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.
65274
65756
  */
65275
- creditSchema?: Array<UpdatePlanCreditSchemaItemFeatureOverrideResponse1 | UpdatePlanCreditSchemaItemFeatureOverrideResponse2> | undefined;
65757
+ creditSchema?: Array<UpdatePlanCreditSchemaItemFeatureOverrideResponse1 | UpdatePlanCreditSchemaItemFeatureOverrideResponse2 | UpdatePlanCreditSchemaItemFeatureOverrideResponse3> | undefined;
65276
65758
  /**
65277
65759
  * 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.
65278
65760
  */
@@ -65994,6 +66476,16 @@ type UpdatePlanVariantDetailsExpiry = {
65994
66476
  duration: UpdatePlanVariantDetailsDuration;
65995
66477
  length: number;
65996
66478
  };
66479
+ type UpdatePlanCreditSchemaVariantDetails3 = {
66480
+ /**
66481
+ * ID of the metered feature to remove from the credit system.
66482
+ */
66483
+ meteredFeatureId: string;
66484
+ /**
66485
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
66486
+ */
66487
+ excluded: true;
66488
+ };
65997
66489
  type UpdatePlanDimensionsVariantDetails4 = {
65998
66490
  /**
65999
66491
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -66212,9 +66704,9 @@ type UpdatePlanVariantDetailsMarkups = {
66212
66704
  */
66213
66705
  type UpdatePlanVariantDetailsFeatureOverride = {
66214
66706
  /**
66215
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
66707
+ * 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.
66216
66708
  */
66217
- creditSchema?: Array<UpdatePlanCreditSchemaVariantDetails1 | UpdatePlanCreditSchemaVariantDetails2> | undefined;
66709
+ creditSchema?: Array<UpdatePlanCreditSchemaVariantDetails1 | UpdatePlanCreditSchemaVariantDetails2 | UpdatePlanCreditSchemaVariantDetails3> | undefined;
66218
66710
  /**
66219
66711
  * 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.
66220
66712
  */
@@ -66835,6 +67327,7 @@ declare const UpdatePlanUpsertLicenseOnDecreaseResponse: {
66835
67327
  * Credit behavior when quantity decreases mid-cycle.
66836
67328
  */
66837
67329
  type UpdatePlanUpsertLicenseOnDecreaseResponse = OpenEnum<typeof UpdatePlanUpsertLicenseOnDecreaseResponse>;
67330
+
66838
67331
  /**
66839
67332
  * Proration settings for prepaid features. Controls mid-cycle quantity change billing.
66840
67333
  */
@@ -66894,6 +67387,16 @@ type UpdatePlanVariantDetailsUpsertLicenseExpiry = {
66894
67387
  duration: UpdatePlanVariantDetailsUpsertLicenseDuration;
66895
67388
  length: number;
66896
67389
  };
67390
+ type UpdatePlanCreditSchemaVariantDetailsUpsertLicense3 = {
67391
+ /**
67392
+ * ID of the metered feature to remove from the credit system.
67393
+ */
67394
+ meteredFeatureId: string;
67395
+ /**
67396
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
67397
+ */
67398
+ excluded: true;
67399
+ };
66897
67400
  type UpdatePlanDimensionsVariantDetailsUpsertLicense4 = {
66898
67401
  /**
66899
67402
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -66910,7 +67413,6 @@ type UpdatePlanDimensionsVariantDetailsUpsertLicense4 = {
66910
67413
  */
66911
67414
  creditCost: number;
66912
67415
  };
66913
-
66914
67416
  declare const UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2: {
66915
67417
  readonly Inf: "inf";
66916
67418
  };
@@ -67113,9 +67615,9 @@ type UpdatePlanVariantDetailsUpsertLicenseMarkups = {
67113
67615
  */
67114
67616
  type UpdatePlanVariantDetailsUpsertLicenseFeatureOverride = {
67115
67617
  /**
67116
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
67618
+ * 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.
67117
67619
  */
67118
- creditSchema?: Array<UpdatePlanCreditSchemaVariantDetailsUpsertLicense1 | UpdatePlanCreditSchemaVariantDetailsUpsertLicense2> | undefined;
67620
+ creditSchema?: Array<UpdatePlanCreditSchemaVariantDetailsUpsertLicense1 | UpdatePlanCreditSchemaVariantDetailsUpsertLicense2 | UpdatePlanCreditSchemaVariantDetailsUpsertLicense3> | undefined;
67119
67621
  /**
67120
67622
  * 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.
67121
67623
  */
@@ -67565,6 +68067,16 @@ type UpdatePlanLicenseExpiryResponse = {
67565
68067
  duration: UpdatePlanLicenseDurationResponse;
67566
68068
  length: number;
67567
68069
  };
68070
+ type UpdatePlanCreditSchemaLicenseResponse3 = {
68071
+ /**
68072
+ * ID of the metered feature to remove from the credit system.
68073
+ */
68074
+ meteredFeatureId: string;
68075
+ /**
68076
+ * Removes this feature from the credit system for customers on this plan. Cannot be combined with a rate.
68077
+ */
68078
+ excluded: true;
68079
+ };
67568
68080
  type UpdatePlanDimensionsLicenseResponse4 = {
67569
68081
  /**
67570
68082
  * Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
@@ -67783,9 +68295,9 @@ type UpdatePlanLicenseMarkupsResponse = {
67783
68295
  */
67784
68296
  type UpdatePlanLicenseFeatureOverrideResponse = {
67785
68297
  /**
67786
- * For credit system features: replaces the feature's credit_schema entirely for customers on this plan.
68298
+ * 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.
67787
68299
  */
67788
- creditSchema?: Array<UpdatePlanCreditSchemaLicenseResponse1 | UpdatePlanCreditSchemaLicenseResponse2> | undefined;
68300
+ creditSchema?: Array<UpdatePlanCreditSchemaLicenseResponse1 | UpdatePlanCreditSchemaLicenseResponse2 | UpdatePlanCreditSchemaLicenseResponse3> | undefined;
67789
68301
  /**
67790
68302
  * 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.
67791
68303
  */