@schematichq/schematic-typescript-node 1.6.3 → 1.6.5

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 (377) hide show
  1. package/README.md +18 -3
  2. package/dist/api/resources/accounts/client/requests/UpdateEnvironmentRequestBody.d.ts +1 -0
  3. package/dist/api/resources/billing/client/Client.d.ts +38 -6
  4. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -2
  5. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +3 -3
  6. package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.d.ts +2 -1
  7. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -2
  8. package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +2 -2
  9. package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +2 -2
  10. package/dist/api/resources/billing/client/requests/UpdateBillingSettingsRequestBody.d.ts +8 -0
  11. package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
  12. package/dist/api/resources/billing/types/GetBillingSettingsResponse.d.ts +6 -0
  13. package/dist/api/resources/billing/types/ListBillingPricesParams.d.ts +1 -1
  14. package/dist/api/resources/billing/types/ListBillingProductPricesParams.d.ts +1 -1
  15. package/dist/api/resources/billing/types/UpdateBillingSettingsResponse.d.ts +6 -0
  16. package/dist/api/resources/billing/types/index.d.ts +2 -0
  17. package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +2 -1
  18. package/dist/api/resources/companies/client/Client.d.ts +1 -1
  19. package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +1 -1
  20. package/dist/api/resources/credits/client/Client.d.ts +47 -6
  21. package/dist/api/resources/credits/client/requests/AcquireCreditLeaseRequestBody.d.ts +2 -0
  22. package/dist/api/resources/credits/client/requests/CountCreditEventLedgerRequest.d.ts +1 -1
  23. package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +2 -2
  24. package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -1
  25. package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -2
  26. package/dist/api/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +8 -4
  27. package/dist/api/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +2 -0
  28. package/dist/api/resources/credits/client/requests/GetCreditBalanceTimeSeriesRequest.d.ts +15 -0
  29. package/dist/api/resources/credits/client/requests/GetCreditSpendPolicyUsageRequest.d.ts +13 -0
  30. package/dist/api/resources/credits/client/requests/ListCreditEventLedgerRequest.d.ts +1 -1
  31. package/dist/api/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +3 -0
  32. package/dist/api/resources/credits/client/requests/index.d.ts +2 -0
  33. package/dist/api/resources/credits/types/GetCreditBalanceTimeSeriesParams.d.ts +9 -0
  34. package/dist/api/resources/credits/types/GetCreditBalanceTimeSeriesResponse.d.ts +6 -0
  35. package/dist/api/resources/credits/types/GetCreditSpendPolicyUsageParams.d.ts +8 -0
  36. package/dist/api/resources/credits/types/GetCreditSpendPolicyUsageResponse.d.ts +6 -0
  37. package/dist/api/resources/credits/types/index.d.ts +4 -0
  38. package/dist/api/resources/entitlements/client/Client.d.ts +69 -0
  39. package/dist/api/resources/entitlements/client/requests/CountCompanyUserUsageRequest.d.ts +29 -0
  40. package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +3 -1
  41. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -0
  42. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +3 -1
  43. package/dist/api/resources/entitlements/client/requests/GetCompanyUserUsageMetricsRequest.d.ts +16 -0
  44. package/dist/api/resources/entitlements/client/requests/ListCompanyUserUsageRequest.d.ts +29 -0
  45. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -0
  46. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  47. package/dist/api/resources/entitlements/client/requests/index.d.ts +3 -0
  48. package/dist/api/resources/entitlements/types/CountCompanyUserUsageParams.d.ts +20 -0
  49. package/dist/api/resources/entitlements/types/CountCompanyUserUsageResponse.d.ts +6 -0
  50. package/dist/api/resources/entitlements/types/GetCompanyUserUsageMetricsParams.d.ts +11 -0
  51. package/dist/api/resources/entitlements/types/GetCompanyUserUsageMetricsResponse.d.ts +6 -0
  52. package/dist/api/resources/entitlements/types/ListCompanyUserUsageParams.d.ts +20 -0
  53. package/dist/api/resources/entitlements/types/ListCompanyUserUsageResponse.d.ts +6 -0
  54. package/dist/api/resources/entitlements/types/index.d.ts +6 -0
  55. package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +2 -0
  56. package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  57. package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  58. package/dist/api/resources/plangroups/client/Client.d.ts +2 -0
  59. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  60. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  61. package/dist/api/resources/planmigrations/client/Client.d.ts +2 -0
  62. package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +2 -0
  63. package/dist/api/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +3 -0
  64. package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +2 -0
  65. package/dist/api/resources/planmigrations/types/CountMigrationsParams.d.ts +1 -0
  66. package/dist/api/resources/planmigrations/types/ListMigrationsParams.d.ts +1 -0
  67. package/dist/api/resources/plans/client/Client.d.ts +20 -1
  68. package/dist/api/resources/plans/client/requests/GetPlanVersionDiffRequest.d.ts +10 -0
  69. package/dist/api/resources/plans/client/requests/ListCustomPlanBillingsRequest.d.ts +2 -2
  70. package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +10 -0
  71. package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +2 -0
  72. package/dist/api/resources/plans/client/requests/index.d.ts +1 -0
  73. package/dist/api/resources/plans/types/GetPlanVersionDiffParams.d.ts +7 -0
  74. package/dist/api/resources/plans/types/GetPlanVersionDiffResponse.d.ts +6 -0
  75. package/dist/api/resources/plans/types/ListCustomPlanBillingsParams.d.ts +1 -1
  76. package/dist/api/resources/plans/types/index.d.ts +2 -0
  77. package/dist/api/types/BillingCouponResponseData.d.ts +1 -1
  78. package/dist/api/types/BillingCreditGrantResponseData.d.ts +2 -2
  79. package/dist/api/types/BillingCustomerSubscription.d.ts +2 -1
  80. package/dist/api/types/BillingPriceResponseData.d.ts +1 -1
  81. package/dist/api/types/BillingPriceView.d.ts +1 -1
  82. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +1 -1
  83. package/dist/api/types/BillingProductPriceResponseData.d.ts +1 -1
  84. package/dist/api/types/BillingProductPricing.d.ts +1 -1
  85. package/dist/api/types/BillingSettingsResponseData.d.ts +4 -0
  86. package/dist/api/types/BillingSubscriptionDiscountView.d.ts +2 -1
  87. package/dist/api/types/BillingSubscriptionResponseData.d.ts +1 -1
  88. package/dist/api/types/BillingSubscriptionView.d.ts +1 -1
  89. package/dist/api/types/CaptureRawEvent.d.ts +2 -0
  90. package/dist/api/types/CatalogConfigOrderedPlan.d.ts +1 -0
  91. package/dist/api/types/CatalogConfigOrderedPlanResponseData.d.ts +1 -0
  92. package/dist/api/types/CatalogConfigPlanCredit.d.ts +4 -0
  93. package/dist/api/types/CatalogConfigPlanCreditResponseData.d.ts +4 -0
  94. package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -1
  95. package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -1
  96. package/dist/api/types/CheckFlagsResponseData.d.ts +2 -0
  97. package/dist/api/types/CheckoutProblemCode.d.ts +47 -0
  98. package/dist/api/types/CheckoutProblemResponseData.d.ts +19 -0
  99. package/dist/api/types/CheckoutProblemSource.d.ts +6 -0
  100. package/dist/api/types/CheckoutSubscription.d.ts +1 -1
  101. package/dist/api/types/CompanyBillingEntitySubscriptionResponseData.d.ts +1 -1
  102. package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
  103. package/dist/api/types/CompanyOverrideResponseData.d.ts +2 -0
  104. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +2 -0
  105. package/dist/api/types/CompanySubscriptionResponseData.d.ts +1 -1
  106. package/dist/api/types/CompanyUserUsageMetricsResponseData.d.ts +11 -0
  107. package/dist/api/types/CompanyUserUsageResponseData.d.ts +15 -0
  108. package/dist/api/types/CompanyUserUsageRowResponseData.d.ts +13 -0
  109. package/dist/api/types/ComponentDisplaySettings.d.ts +1 -0
  110. package/dist/api/types/ComponentSettingsResponseData.d.ts +1 -0
  111. package/dist/api/types/Condition.d.ts +1 -0
  112. package/dist/api/types/ConditionResponseData.d.ts +1 -0
  113. package/dist/api/types/ConditionView.d.ts +1 -0
  114. package/dist/api/types/CouponRequestBody.d.ts +2 -1
  115. package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +3 -1
  116. package/dist/api/types/CreateEntitlementReqCommon.d.ts +2 -0
  117. package/dist/api/types/CreditBalanceEventResponseData.d.ts +10 -0
  118. package/dist/api/types/CreditBalanceFeatureConsumptionResponseData.d.ts +5 -0
  119. package/dist/api/types/CreditBalancePointResponseData.d.ts +9 -0
  120. package/dist/api/types/CreditBalanceTimeSeriesResponseData.d.ts +8 -0
  121. package/dist/api/types/CreditBundleCurrencyPrice.d.ts +1 -1
  122. package/dist/api/types/CreditBundleCurrencyPriceRequestBody.d.ts +2 -1
  123. package/dist/api/types/CreditBundleCurrencyPriceResponseData.d.ts +1 -1
  124. package/dist/api/types/CreditBurnBreakdownLine.d.ts +6 -0
  125. package/dist/api/types/CreditCompanyGrantView.d.ts +2 -2
  126. package/dist/api/types/CreditCurrencyPrice.d.ts +1 -1
  127. package/dist/api/types/CreditCurrencyPriceRequestBody.d.ts +2 -1
  128. package/dist/api/types/CreditCurrencyPriceResponseData.d.ts +1 -1
  129. package/dist/api/types/CreditEventLedgerResponseData.d.ts +6 -1
  130. package/dist/api/types/CreditEventType.d.ts +3 -0
  131. package/dist/api/types/CreditLedgerEntryKind.d.ts +10 -0
  132. package/dist/api/types/CreditSpendPolicy.d.ts +21 -0
  133. package/dist/api/types/CreditSpendPolicyResponseData.d.ts +9 -0
  134. package/dist/api/types/CreditSpendWindow.d.ts +6 -0
  135. package/dist/api/types/CreditSpendWindowUnit.d.ts +6 -0
  136. package/dist/api/types/CreditUsageReason.d.ts +1 -0
  137. package/dist/api/types/CreditsInPlan.d.ts +4 -0
  138. package/dist/api/types/Currency.d.ts +137 -0
  139. package/dist/api/types/CurrencyPriceRequestBody.d.ts +1 -1
  140. package/dist/api/types/CustomPlanBillingResponseData.d.ts +9 -1
  141. package/dist/api/types/EntitlementCurrencyPricesResponseData.d.ts +1 -1
  142. package/dist/api/types/EnvironmentDetailResponseData.d.ts +1 -0
  143. package/dist/api/types/EnvironmentResponseData.d.ts +1 -0
  144. package/dist/api/types/EstimatedPlanTotal.d.ts +6 -0
  145. package/dist/api/types/FeatureDetailResponseData.d.ts +2 -0
  146. package/dist/api/types/FeatureEntitlement.d.ts +2 -0
  147. package/dist/api/types/FeatureEventSource.d.ts +5 -0
  148. package/dist/api/types/FeatureInPlanResponseData.d.ts +2 -0
  149. package/dist/api/types/FeatureResponseData.d.ts +2 -0
  150. package/dist/api/types/FeatureView.d.ts +1 -0
  151. package/dist/api/types/InvoiceRequestBody.d.ts +1 -1
  152. package/dist/api/types/InvoiceResponseData.d.ts +1 -1
  153. package/dist/api/types/ManagePlanPreviewResponseResponseData.d.ts +1 -0
  154. package/dist/api/types/ManagePlanRequest.d.ts +3 -1
  155. package/dist/api/types/ManagePlanResponseResponseData.d.ts +2 -0
  156. package/dist/api/types/MrrResponseData.d.ts +2 -1
  157. package/dist/api/types/OrderedPlansInGroup.d.ts +1 -0
  158. package/dist/api/types/PendingMigrationResponseData.d.ts +8 -0
  159. package/dist/api/types/PlanBillingSource.d.ts +1 -0
  160. package/dist/api/types/PlanChangeAction.d.ts +1 -0
  161. package/dist/api/types/PlanChangeAmendmentStatus.d.ts +8 -0
  162. package/dist/api/types/PlanChangeResponseData.d.ts +4 -0
  163. package/dist/api/types/PlanCreditOrder.d.ts +4 -0
  164. package/dist/api/types/PlanCreditVisibility.d.ts +4 -0
  165. package/dist/api/types/PlanCurrencyPriceRequestBody.d.ts +2 -1
  166. package/dist/api/types/PlanCurrencyPricesResponseData.d.ts +1 -1
  167. package/dist/api/types/PlanEntitlementResponseData.d.ts +2 -0
  168. package/dist/api/types/PlanGroupPlanEntitlementsOrder.d.ts +1 -0
  169. package/dist/api/types/PlanVersionBillingProductChangeResponseData.d.ts +5 -0
  170. package/dist/api/types/PlanVersionCreditGrantChangeResponseData.d.ts +9 -0
  171. package/dist/api/types/PlanVersionDiffChangeType.d.ts +6 -0
  172. package/dist/api/types/PlanVersionDiffPriceCadence.d.ts +7 -0
  173. package/dist/api/types/PlanVersionDiffResponseData.d.ts +19 -0
  174. package/dist/api/types/PlanVersionEntitlementChangeResponseData.d.ts +9 -0
  175. package/dist/api/types/PlanVersionFieldChangeResponseData.d.ts +5 -0
  176. package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
  177. package/dist/api/types/PlanVersionMigrationStrategy.d.ts +1 -0
  178. package/dist/api/types/PlanVersionPriceChangeResponseData.d.ts +7 -0
  179. package/dist/api/types/PlanViewPublicResponseData.d.ts +1 -0
  180. package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +1 -0
  181. package/dist/api/types/PreviewSubscriptionDiscountResponseData.d.ts +2 -1
  182. package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +1 -1
  183. package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
  184. package/dist/api/types/RulesengineCompany.d.ts +1 -0
  185. package/dist/api/types/RulesengineCondition.d.ts +1 -0
  186. package/dist/api/types/RulesengineCreditSpendPolicy.d.ts +21 -0
  187. package/dist/api/types/RulesengineCreditSpendPolicyScope.d.ts +6 -0
  188. package/dist/api/types/RulesengineCreditSpendWindow.d.ts +6 -0
  189. package/dist/api/types/RulesengineFeatureEntitlement.d.ts +2 -0
  190. package/dist/api/types/RulesengineUser.d.ts +1 -0
  191. package/dist/api/types/ScheduledDowngradeResponseData.d.ts +2 -1
  192. package/dist/api/types/UpcomingInvoiceResponseData.d.ts +1 -1
  193. package/dist/api/types/UpdateEntitlementReqCommon.d.ts +2 -0
  194. package/dist/api/types/UpsertBillingProductRequestBody.d.ts +1 -1
  195. package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -1
  196. package/dist/api/types/UserUsageMetric.d.ts +5 -0
  197. package/dist/api/types/index.d.ts +37 -0
  198. package/dist/core/fetcher/getResponseBody.d.ts +16 -0
  199. package/dist/core/fetcher/makeRequest.d.ts +6 -1
  200. package/dist/core/fetcher/requestWithRetries.d.ts +1 -1
  201. package/dist/core/fetcher/signals.d.ts +1 -0
  202. package/dist/datastream/datastream-client.d.ts +2 -2
  203. package/dist/index.js +9 -9
  204. package/dist/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.d.ts +1 -0
  205. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -1
  206. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +2 -1
  207. package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.d.ts +2 -1
  208. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -1
  209. package/dist/serialization/resources/billing/client/requests/UpdateBillingSettingsRequestBody.d.ts +10 -0
  210. package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -0
  211. package/dist/serialization/resources/billing/types/GetBillingSettingsResponse.d.ts +11 -0
  212. package/dist/serialization/resources/billing/types/ListBillingPricesParams.d.ts +2 -1
  213. package/dist/serialization/resources/billing/types/ListBillingProductPricesParams.d.ts +2 -1
  214. package/dist/serialization/resources/billing/types/UpdateBillingSettingsResponse.d.ts +11 -0
  215. package/dist/serialization/resources/billing/types/index.d.ts +2 -0
  216. package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +2 -1
  217. package/dist/serialization/resources/credits/client/requests/AcquireCreditLeaseRequestBody.d.ts +1 -0
  218. package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +2 -1
  219. package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +2 -1
  220. package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -1
  221. package/dist/serialization/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +4 -1
  222. package/dist/serialization/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +1 -0
  223. package/dist/serialization/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +3 -0
  224. package/dist/serialization/resources/credits/types/GetCreditBalanceTimeSeriesParams.d.ts +12 -0
  225. package/dist/serialization/resources/credits/types/GetCreditBalanceTimeSeriesResponse.d.ts +12 -0
  226. package/dist/serialization/resources/credits/types/GetCreditSpendPolicyUsageParams.d.ts +11 -0
  227. package/dist/serialization/resources/credits/types/GetCreditSpendPolicyUsageResponse.d.ts +12 -0
  228. package/dist/serialization/resources/credits/types/index.d.ts +4 -0
  229. package/dist/serialization/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +3 -1
  230. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
  231. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +3 -1
  232. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
  233. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  234. package/dist/serialization/resources/entitlements/types/CountCompanyUserUsageParams.d.ts +16 -0
  235. package/dist/serialization/resources/entitlements/types/CountCompanyUserUsageResponse.d.ts +12 -0
  236. package/dist/serialization/resources/entitlements/types/GetCompanyUserUsageMetricsParams.d.ts +11 -0
  237. package/dist/serialization/resources/entitlements/types/GetCompanyUserUsageMetricsResponse.d.ts +12 -0
  238. package/dist/serialization/resources/entitlements/types/ListCompanyUserUsageParams.d.ts +16 -0
  239. package/dist/serialization/resources/entitlements/types/ListCompanyUserUsageResponse.d.ts +12 -0
  240. package/dist/serialization/resources/entitlements/types/index.d.ts +6 -0
  241. package/dist/serialization/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +2 -0
  242. package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  243. package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  244. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
  245. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
  246. package/dist/serialization/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +1 -0
  247. package/dist/serialization/resources/planmigrations/types/CountMigrationsParams.d.ts +1 -0
  248. package/dist/serialization/resources/planmigrations/types/ListMigrationsParams.d.ts +1 -0
  249. package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +4 -0
  250. package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +1 -0
  251. package/dist/serialization/resources/plans/types/GetPlanVersionDiffParams.d.ts +9 -0
  252. package/dist/serialization/resources/plans/types/GetPlanVersionDiffResponse.d.ts +12 -0
  253. package/dist/serialization/resources/plans/types/index.d.ts +2 -0
  254. package/dist/serialization/types/BillingCouponResponseData.d.ts +2 -1
  255. package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +3 -2
  256. package/dist/serialization/types/BillingCustomerSubscription.d.ts +2 -1
  257. package/dist/serialization/types/BillingPriceResponseData.d.ts +2 -1
  258. package/dist/serialization/types/BillingPriceView.d.ts +2 -1
  259. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
  260. package/dist/serialization/types/BillingProductPriceResponseData.d.ts +2 -1
  261. package/dist/serialization/types/BillingProductPricing.d.ts +2 -1
  262. package/dist/serialization/types/BillingSettingsResponseData.d.ts +10 -0
  263. package/dist/serialization/types/BillingSubscriptionDiscountView.d.ts +2 -1
  264. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +2 -1
  265. package/dist/serialization/types/BillingSubscriptionView.d.ts +2 -1
  266. package/dist/serialization/types/CaptureRawEvent.d.ts +2 -0
  267. package/dist/serialization/types/CatalogConfigOrderedPlan.d.ts +2 -0
  268. package/dist/serialization/types/CatalogConfigOrderedPlanResponseData.d.ts +2 -0
  269. package/dist/serialization/types/CatalogConfigPlanCredit.d.ts +10 -0
  270. package/dist/serialization/types/CatalogConfigPlanCreditResponseData.d.ts +10 -0
  271. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -1
  272. package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +2 -1
  273. package/dist/serialization/types/CheckFlagsResponseData.d.ts +2 -0
  274. package/dist/serialization/types/CheckoutProblemCode.d.ts +7 -0
  275. package/dist/serialization/types/CheckoutProblemResponseData.d.ts +23 -0
  276. package/dist/serialization/types/CheckoutProblemSource.d.ts +7 -0
  277. package/dist/serialization/types/CheckoutSubscription.d.ts +2 -1
  278. package/dist/serialization/types/CompanyBillingEntitySubscriptionResponseData.d.ts +2 -1
  279. package/dist/serialization/types/CompanyDetailResponseData.d.ts +1 -0
  280. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
  281. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
  282. package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +2 -1
  283. package/dist/serialization/types/CompanyUserUsageMetricsResponseData.d.ts +13 -0
  284. package/dist/serialization/types/CompanyUserUsageResponseData.d.ts +15 -0
  285. package/dist/serialization/types/CompanyUserUsageRowResponseData.d.ts +14 -0
  286. package/dist/serialization/types/ComponentDisplaySettings.d.ts +1 -0
  287. package/dist/serialization/types/ComponentSettingsResponseData.d.ts +1 -0
  288. package/dist/serialization/types/Condition.d.ts +1 -0
  289. package/dist/serialization/types/ConditionResponseData.d.ts +1 -0
  290. package/dist/serialization/types/ConditionView.d.ts +1 -0
  291. package/dist/serialization/types/CouponRequestBody.d.ts +2 -1
  292. package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +3 -1
  293. package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +1 -0
  294. package/dist/serialization/types/CreditBalanceEventResponseData.d.ts +18 -0
  295. package/dist/serialization/types/CreditBalanceFeatureConsumptionResponseData.d.ts +11 -0
  296. package/dist/serialization/types/CreditBalancePointResponseData.d.ts +13 -0
  297. package/dist/serialization/types/CreditBalanceTimeSeriesResponseData.d.ts +14 -0
  298. package/dist/serialization/types/CreditBundleCurrencyPrice.d.ts +2 -1
  299. package/dist/serialization/types/CreditBundleCurrencyPriceRequestBody.d.ts +2 -1
  300. package/dist/serialization/types/CreditBundleCurrencyPriceResponseData.d.ts +2 -1
  301. package/dist/serialization/types/CreditBurnBreakdownLine.d.ts +12 -0
  302. package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -2
  303. package/dist/serialization/types/CreditCurrencyPrice.d.ts +2 -1
  304. package/dist/serialization/types/CreditCurrencyPriceRequestBody.d.ts +2 -1
  305. package/dist/serialization/types/CreditCurrencyPriceResponseData.d.ts +2 -1
  306. package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +8 -1
  307. package/dist/serialization/types/CreditEventType.d.ts +1 -1
  308. package/dist/serialization/types/CreditLedgerEntryKind.d.ts +7 -0
  309. package/dist/serialization/types/CreditSpendPolicy.d.ts +19 -0
  310. package/dist/serialization/types/CreditSpendPolicyResponseData.d.ts +7 -0
  311. package/dist/serialization/types/CreditSpendWindow.d.ts +10 -0
  312. package/dist/serialization/types/CreditSpendWindowUnit.d.ts +7 -0
  313. package/dist/serialization/types/CreditUsageReason.d.ts +1 -1
  314. package/dist/serialization/types/CreditsInPlan.d.ts +10 -0
  315. package/dist/serialization/types/Currency.d.ts +7 -0
  316. package/dist/serialization/types/CurrencyPriceRequestBody.d.ts +2 -1
  317. package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +5 -0
  318. package/dist/serialization/types/EntitlementCurrencyPricesResponseData.d.ts +2 -1
  319. package/dist/serialization/types/EnvironmentDetailResponseData.d.ts +1 -0
  320. package/dist/serialization/types/EnvironmentResponseData.d.ts +1 -0
  321. package/dist/serialization/types/EstimatedPlanTotal.d.ts +13 -0
  322. package/dist/serialization/types/FeatureDetailResponseData.d.ts +2 -0
  323. package/dist/serialization/types/FeatureEntitlement.d.ts +1 -0
  324. package/dist/serialization/types/FeatureEventSource.d.ts +7 -0
  325. package/dist/serialization/types/FeatureInPlanResponseData.d.ts +2 -0
  326. package/dist/serialization/types/FeatureResponseData.d.ts +2 -0
  327. package/dist/serialization/types/FeatureView.d.ts +2 -0
  328. package/dist/serialization/types/InvoiceRequestBody.d.ts +2 -1
  329. package/dist/serialization/types/InvoiceResponseData.d.ts +2 -1
  330. package/dist/serialization/types/ManagePlanPreviewResponseResponseData.d.ts +2 -0
  331. package/dist/serialization/types/ManagePlanRequest.d.ts +3 -1
  332. package/dist/serialization/types/ManagePlanResponseResponseData.d.ts +3 -0
  333. package/dist/serialization/types/MrrResponseData.d.ts +2 -1
  334. package/dist/serialization/types/OrderedPlansInGroup.d.ts +2 -0
  335. package/dist/serialization/types/PendingMigrationResponseData.d.ts +5 -0
  336. package/dist/serialization/types/PlanBillingSource.d.ts +1 -1
  337. package/dist/serialization/types/PlanChangeAction.d.ts +1 -1
  338. package/dist/serialization/types/PlanChangeAmendmentStatus.d.ts +7 -0
  339. package/dist/serialization/types/PlanChangeResponseData.d.ts +3 -0
  340. package/dist/serialization/types/PlanCreditOrder.d.ts +10 -0
  341. package/dist/serialization/types/PlanCreditVisibility.d.ts +10 -0
  342. package/dist/serialization/types/PlanCurrencyPriceRequestBody.d.ts +2 -1
  343. package/dist/serialization/types/PlanCurrencyPricesResponseData.d.ts +2 -1
  344. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
  345. package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.d.ts +2 -0
  346. package/dist/serialization/types/PlanVersionBillingProductChangeResponseData.d.ts +11 -0
  347. package/dist/serialization/types/PlanVersionCreditGrantChangeResponseData.d.ts +15 -0
  348. package/dist/serialization/types/PlanVersionDiffChangeType.d.ts +7 -0
  349. package/dist/serialization/types/PlanVersionDiffPriceCadence.d.ts +7 -0
  350. package/dist/serialization/types/PlanVersionDiffResponseData.d.ts +22 -0
  351. package/dist/serialization/types/PlanVersionEntitlementChangeResponseData.d.ts +15 -0
  352. package/dist/serialization/types/PlanVersionFieldChangeResponseData.d.ts +11 -0
  353. package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +1 -0
  354. package/dist/serialization/types/PlanVersionMigrationStrategy.d.ts +1 -1
  355. package/dist/serialization/types/PlanVersionPriceChangeResponseData.d.ts +15 -0
  356. package/dist/serialization/types/PlanViewPublicResponseData.d.ts +2 -0
  357. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +2 -0
  358. package/dist/serialization/types/PreviewSubscriptionDiscountResponseData.d.ts +2 -1
  359. package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -1
  360. package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
  361. package/dist/serialization/types/RulesengineCompany.d.ts +2 -0
  362. package/dist/serialization/types/RulesengineCondition.d.ts +1 -0
  363. package/dist/serialization/types/RulesengineCreditSpendPolicy.d.ts +19 -0
  364. package/dist/serialization/types/RulesengineCreditSpendPolicyScope.d.ts +7 -0
  365. package/dist/serialization/types/RulesengineCreditSpendWindow.d.ts +10 -0
  366. package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +1 -0
  367. package/dist/serialization/types/RulesengineUser.d.ts +2 -0
  368. package/dist/serialization/types/ScheduledDowngradeResponseData.d.ts +2 -1
  369. package/dist/serialization/types/UpcomingInvoiceResponseData.d.ts +2 -1
  370. package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +1 -0
  371. package/dist/serialization/types/UpsertBillingProductRequestBody.d.ts +2 -1
  372. package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +2 -1
  373. package/dist/serialization/types/UserUsageMetric.d.ts +7 -0
  374. package/dist/serialization/types/index.d.ts +37 -0
  375. package/dist/wasm/rulesengine.js +1 -1
  376. package/dist/wrapper.d.ts +2 -2
  377. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ export declare const PlanVersionDiffPriceCadence: {
2
+ readonly Monthly: "monthly";
3
+ readonly OneTime: "one_time";
4
+ readonly Quarterly: "quarterly";
5
+ readonly Yearly: "yearly";
6
+ };
7
+ export type PlanVersionDiffPriceCadence = (typeof PlanVersionDiffPriceCadence)[keyof typeof PlanVersionDiffPriceCadence];
@@ -0,0 +1,19 @@
1
+ import type * as Schematic from "../index";
2
+ export interface PlanVersionDiffResponseData {
3
+ /** Set when the version's billing product changed; null when it is the same on both versions. */
4
+ billingProduct?: Schematic.PlanVersionBillingProductChangeResponseData;
5
+ /** Credit grants added, removed, or changed, keyed by credit. */
6
+ creditGrants: Schematic.PlanVersionCreditGrantChangeResponseData[];
7
+ /** Entitlements added, removed, or changed, keyed by feature. */
8
+ entitlements: Schematic.PlanVersionEntitlementChangeResponseData[];
9
+ /** The version compared against, or null when the plan has no published version. */
10
+ from?: Schematic.PlanVersionResponseData;
11
+ /** Whether moving a subscription from the compared version to this one changes its billing. */
12
+ hasBillingChanges: boolean;
13
+ /** Plan-level fields that changed: name, description, icon, and charge_type. */
14
+ planFields: Schematic.PlanVersionFieldChangeResponseData[];
15
+ /** Base prices that changed, one entry per currency and cadence. */
16
+ prices: Schematic.PlanVersionPriceChangeResponseData[];
17
+ /** The version being compared. */
18
+ to?: Schematic.PlanVersionResponseData;
19
+ }
@@ -0,0 +1,9 @@
1
+ import type * as Schematic from "../index";
2
+ export interface PlanVersionEntitlementChangeResponseData {
3
+ changeType: Schematic.PlanVersionDiffChangeType;
4
+ /** For a changed entitlement, the fields that differ. usage_quantity is the committed quantity of a pay-in-advance entitlement. */
5
+ changedFields: string[];
6
+ featureId: string;
7
+ "new"?: Schematic.PlanEntitlementResponseData;
8
+ old?: Schematic.PlanEntitlementResponseData;
9
+ }
@@ -0,0 +1,5 @@
1
+ export interface PlanVersionFieldChangeResponseData {
2
+ field: string;
3
+ "new": string;
4
+ old: string;
5
+ }
@@ -14,6 +14,7 @@ export interface PlanVersionMigrationResponseData {
14
14
  planVersionIdTo: string;
15
15
  planVersionIdsFrom: string[];
16
16
  prorationBehavior?: Schematic.MigrationProrationBehavior;
17
+ scheduledAt?: Date;
17
18
  skippedCompanies: number;
18
19
  startedAt?: Date;
19
20
  status: Schematic.PlanVersionMigrationStatus;
@@ -2,5 +2,6 @@ export declare const PlanVersionMigrationStrategy: {
2
2
  readonly EndOfBillingPeriod: "end_of_billing_period";
3
3
  readonly Immediate: "immediate";
4
4
  readonly Leave: "leave";
5
+ readonly Scheduled: "scheduled";
5
6
  };
6
7
  export type PlanVersionMigrationStrategy = (typeof PlanVersionMigrationStrategy)[keyof typeof PlanVersionMigrationStrategy];
@@ -0,0 +1,7 @@
1
+ import type * as Schematic from "../index";
2
+ export interface PlanVersionPriceChangeResponseData {
3
+ cadence: Schematic.PlanVersionDiffPriceCadence;
4
+ currency: Schematic.Currency;
5
+ "new"?: Schematic.BillingPriceResponseData;
6
+ old?: Schematic.BillingPriceResponseData;
7
+ }
@@ -16,6 +16,7 @@ export interface PlanViewPublicResponseData {
16
16
  controlledBy: Schematic.BillingProviderType;
17
17
  copiedFromPlanId?: string;
18
18
  createdAt: Date;
19
+ creditVisibility?: Schematic.PlanCreditVisibility[];
19
20
  credits: Schematic.BillingCreditResponseData[];
20
21
  currencyPrices: Schematic.PlanCurrencyPricesResponseData[];
21
22
  custom: boolean;
@@ -11,6 +11,7 @@ export interface PreviewSubscriptionChangeResponseData {
11
11
  paymentMethodRequired: boolean;
12
12
  percentOff: number;
13
13
  periodStart: Date;
14
+ problems: Schematic.CheckoutProblemResponseData[];
14
15
  promoCodeApplied: boolean;
15
16
  proration: number;
16
17
  scheduledChangeTime?: Date;
@@ -1,7 +1,8 @@
1
+ import type * as Schematic from "../index";
1
2
  export interface PreviewSubscriptionDiscountResponseData {
2
3
  amountOff?: number;
3
4
  couponName: string;
4
- currency?: string;
5
+ currency?: Schematic.Currency;
5
6
  customerFacingCode?: string;
6
7
  duration: string;
7
8
  durationInMonths?: number;
@@ -2,7 +2,7 @@ import type * as Schematic from "../index";
2
2
  export interface PreviewSubscriptionFinanceResponseData {
3
3
  amountOff: number;
4
4
  /** ISO 4217 currency every amount in this block is denominated in. */
5
- currency: string;
5
+ currency: Schematic.Currency;
6
6
  discountAmount: number;
7
7
  discounts: Schematic.PreviewSubscriptionDiscountResponseData[];
8
8
  dueNow: number;
@@ -1,6 +1,6 @@
1
1
  /** The current schema version hash for rules engine types. The first enum value is always the current version. */
2
2
  export declare const RulesEngineSchemaVersion: {
3
- readonly V94B8F7A7: "v94b8f7a7";
3
+ readonly Vf4A06160: "vf4a06160";
4
4
  readonly PlaceholderForFernCompatibility: "placeholder-for-fern-compatibility";
5
5
  };
6
6
  export type RulesEngineSchemaVersion = (typeof RulesEngineSchemaVersion)[keyof typeof RulesEngineSchemaVersion];
@@ -5,6 +5,7 @@ export interface RulesengineCompany {
5
5
  billingProductIds: string[];
6
6
  creditBalances: Record<string, number>;
7
7
  creditPostpaid?: Record<string, Schematic.RulesengineCreditPostpaidConfig>;
8
+ creditSpendPolicies?: Schematic.RulesengineCreditSpendPolicy[];
8
9
  entitlements?: Schematic.RulesengineFeatureEntitlement[];
9
10
  environmentId: string;
10
11
  id: string;
@@ -12,6 +12,7 @@ export interface RulesengineCondition {
12
12
  metricPeriodMonthReset?: Schematic.RulesengineMetricPeriodMonthReset;
13
13
  metricValue?: number;
14
14
  operator: Schematic.RulesengineComparableOperator;
15
+ quantityRates?: Record<string, number>;
15
16
  resourceIds: string[];
16
17
  traitDefinition?: Schematic.RulesengineTraitDefinition;
17
18
  traitValue: string;
@@ -0,0 +1,21 @@
1
+ import type * as Schematic from "../index";
2
+ export interface RulesengineCreditSpendPolicy {
3
+ /** How much of the limit is already spent in the current period */
4
+ consumed?: number;
5
+ /** The credit the policy limits */
6
+ creditId: string;
7
+ /** The ID of the policy */
8
+ id: string;
9
+ /** How the limit is applied */
10
+ kind: string;
11
+ /** The name the account gave the policy */
12
+ label?: string;
13
+ /** The ceiling, in credits */
14
+ limit: number;
15
+ /** For a windowed limit, when the current period ends and consumed no longer applies */
16
+ resetsAt?: Date;
17
+ /** Whether the policy limits the company or one user */
18
+ scope: Schematic.RulesengineCreditSpendPolicyScope;
19
+ /** For a windowed limit, the period it accumulates over */
20
+ window?: Schematic.RulesengineCreditSpendWindow;
21
+ }
@@ -0,0 +1,6 @@
1
+ export declare const RulesengineCreditSpendPolicyScope: {
2
+ readonly Company: "company";
3
+ readonly User: "user";
4
+ readonly Group: "group";
5
+ };
6
+ export type RulesengineCreditSpendPolicyScope = (typeof RulesengineCreditSpendPolicyScope)[keyof typeof RulesengineCreditSpendPolicyScope];
@@ -0,0 +1,6 @@
1
+ export interface RulesengineCreditSpendWindow {
2
+ /** How many units make up one period */
3
+ count: number;
4
+ /** The period the limit accumulates over */
5
+ unit: string;
6
+ }
@@ -30,6 +30,8 @@ export interface RulesengineFeatureEntitlement {
30
30
  metricResetAt?: Date;
31
31
  /** For event-based feature entitlements that have a monthly period, whether that monthly reset is based on the calendar month or a billing cycle */
32
32
  monthReset?: Schematic.RulesengineMetricPeriodMonthReset;
33
+ /** If the company has a credit-based entitlement for this feature, the credit cost per unit of each quantity an event carries, keyed by quantity key (per token for inference features). Absent when the entitlement prices requests only */
34
+ quantityRates?: Record<string, number>;
33
35
  /** For usage-based pricing, the soft limit for overage charges or the next tier boundary */
34
36
  softLimit?: number;
35
37
  /** If the company has a numeric entitlement for this feature, the current usage amount */
@@ -1,6 +1,7 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface RulesengineUser {
3
3
  accountId: string;
4
+ creditSpendPolicies?: Schematic.RulesengineCreditSpendPolicy[];
4
5
  environmentId: string;
5
6
  id: string;
6
7
  keys: Record<string, string>;
@@ -1,5 +1,6 @@
1
+ import type * as Schematic from "../index";
1
2
  export interface ScheduledDowngradeResponseData {
2
- currency: string;
3
+ currency: Schematic.Currency;
3
4
  effectiveAfter: Date;
4
5
  fromPlanId: string;
5
6
  fromPlanName: string;
@@ -6,7 +6,7 @@ export interface UpcomingInvoiceResponseData {
6
6
  collectionMethod: string;
7
7
  companyId?: string;
8
8
  createdAt: Date;
9
- currency: string;
9
+ currency: Schematic.Currency;
10
10
  customerExternalId: string;
11
11
  dueDate?: Date;
12
12
  endingBalance: number;
@@ -3,6 +3,8 @@ export interface UpdateEntitlementReqCommon {
3
3
  creditConsumptionRate?: number;
4
4
  metricPeriod?: Schematic.MetricPeriod;
5
5
  metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
6
+ /** Credits per unit of the quantity (per token for inference features), keyed by quantity key. Inference features may price input_tokens, output_tokens, cached_input_tokens, cache_creation_input_tokens and reasoning_tokens; reasoning_tokens is priced on top of output_tokens, so leave its rate at zero for providers that count reasoning inside output. Omit to leave the schedule as it is; send null to clear it. */
7
+ quantityRates?: Record<string, number>;
6
8
  valueBool?: boolean;
7
9
  valueCreditId?: string;
8
10
  valueNumeric?: number;
@@ -3,7 +3,7 @@ export interface UpsertBillingProductRequestBody {
3
3
  billingProductId?: string;
4
4
  billingStrategy?: Schematic.BillingStrategy;
5
5
  chargeType: Schematic.ChargeType;
6
- currency?: string;
6
+ currency?: Schematic.Currency;
7
7
  currencyPrices?: Schematic.PlanCurrencyPriceRequestBody[];
8
8
  isTrialable: boolean;
9
9
  monthlyPrice?: number;
@@ -2,7 +2,7 @@ import type * as Schematic from "../index";
2
2
  export interface UsageBasedEntitlementRequestBody {
3
3
  billingProductId?: string;
4
4
  billingThreshold?: number;
5
- currency?: string;
5
+ currency?: Schematic.Currency;
6
6
  currencyPrices?: Schematic.CurrencyPriceRequestBody[];
7
7
  monthlyMeteredPriceId?: string;
8
8
  monthlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
@@ -0,0 +1,5 @@
1
+ export declare const UserUsageMetric: {
2
+ readonly Credits: "credits";
3
+ readonly Feature: "feature";
4
+ };
5
+ export type UserUsageMetric = (typeof UserUsageMetric)[keyof typeof UserUsageMetric];
@@ -57,6 +57,7 @@ export * from "./BillingProductPricing";
57
57
  export * from "./BillingProductRecordResponseData";
58
58
  export * from "./BillingProductResponseData";
59
59
  export * from "./BillingProviderType";
60
+ export * from "./BillingSettingsResponseData";
60
61
  export * from "./BillingStrategy";
61
62
  export * from "./BillingSubscriptionDiscount";
62
63
  export * from "./BillingSubscriptionDiscountView";
@@ -72,6 +73,8 @@ export * from "./CatalogConfigOrderedEntitlement";
72
73
  export * from "./CatalogConfigOrderedEntitlementResponseData";
73
74
  export * from "./CatalogConfigOrderedPlan";
74
75
  export * from "./CatalogConfigOrderedPlanResponseData";
76
+ export * from "./CatalogConfigPlanCredit";
77
+ export * from "./CatalogConfigPlanCreditResponseData";
75
78
  export * from "./CatalogConfigurationResponseData";
76
79
  export * from "./CatalogCreditBundleIDsResponseData";
77
80
  export * from "./CatalogDerivedFeatureResponseData";
@@ -92,6 +95,9 @@ export * from "./CheckoutFieldInput";
92
95
  export * from "./CheckoutFieldResponseData";
93
96
  export * from "./CheckoutFieldValue";
94
97
  export * from "./CheckoutFieldWithValue";
98
+ export * from "./CheckoutProblemCode";
99
+ export * from "./CheckoutProblemResponseData";
100
+ export * from "./CheckoutProblemSource";
95
101
  export * from "./CheckoutSettingsResponseData";
96
102
  export * from "./CheckoutSubscription";
97
103
  export * from "./ClaimedStripeSandboxKeysResponseData";
@@ -123,6 +129,9 @@ export * from "./CompanyPlanWithBillingSubView";
123
129
  export * from "./CompanyResponseData";
124
130
  export * from "./CompanySubscriptionResponseData";
125
131
  export * from "./CompanyTaxIdView";
132
+ export * from "./CompanyUserUsageMetricsResponseData";
133
+ export * from "./CompanyUserUsageResponseData";
134
+ export * from "./CompanyUserUsageRowResponseData";
126
135
  export * from "./ComparableOperator";
127
136
  export * from "./CompatiblePlans";
128
137
  export * from "./CompatiblePlansResponseData";
@@ -158,10 +167,15 @@ export * from "./CreateOrUpdateRuleRequestBody";
158
167
  export * from "./CreatePlanRequestBody";
159
168
  export * from "./CreatePriceTierRequestBody";
160
169
  export * from "./CreditAutoTopupAmountType";
170
+ export * from "./CreditBalanceEventResponseData";
171
+ export * from "./CreditBalanceFeatureConsumptionResponseData";
172
+ export * from "./CreditBalancePointResponseData";
173
+ export * from "./CreditBalanceTimeSeriesResponseData";
161
174
  export * from "./CreditBundleCurrencyPrice";
162
175
  export * from "./CreditBundleCurrencyPriceRequestBody";
163
176
  export * from "./CreditBundleCurrencyPriceResponseData";
164
177
  export * from "./CreditBundlePurchaseResponseData";
178
+ export * from "./CreditBurnBreakdownLine";
165
179
  export * from "./CreditCompanyGrantView";
166
180
  export * from "./CreditCurrencyPrice";
167
181
  export * from "./CreditCurrencyPriceRequestBody";
@@ -173,15 +187,20 @@ export * from "./CreditGrantExpiryRequestBody";
173
187
  export * from "./CreditGrantPriceTierRequestBody";
174
188
  export * from "./CreditGrantSortOrder";
175
189
  export * from "./CreditLeaseResponseData";
190
+ export * from "./CreditLedgerEntryKind";
176
191
  export * from "./CreditReservationResponseData";
192
+ export * from "./CreditSpendPolicy";
177
193
  export * from "./CreditSpendPolicyResponseData";
178
194
  export * from "./CreditSpendPolicyScope";
195
+ export * from "./CreditSpendWindow";
196
+ export * from "./CreditSpendWindowUnit";
179
197
  export * from "./CreditsAutoTopupCompanySummary";
180
198
  export * from "./CreditsAutoTopupCreditSummary";
181
199
  export * from "./CreditsAutoTopupHardFailure";
182
200
  export * from "./CreditsAutoTopupRetryFailure";
183
201
  export * from "./CreditsAutoTopupSuccess";
184
202
  export * from "./CreditsCreditPurchaseSuccess";
203
+ export * from "./CreditsInPlan";
185
204
  export * from "./CreditsWebhookCompanySummary";
186
205
  export * from "./CreditsWebhookCreditSummary";
187
206
  export * from "./CreditTransferReason";
@@ -191,6 +210,7 @@ export * from "./CreditTriggerConfig";
191
210
  export * from "./CreditUsage";
192
211
  export * from "./CreditUsageAggregation";
193
212
  export * from "./CreditUsageReason";
213
+ export * from "./Currency";
194
214
  export * from "./CurrencyPriceRequestBody";
195
215
  export * from "./CustomerBillingAddress";
196
216
  export * from "./CustomPlanActivationStrategy";
@@ -229,6 +249,7 @@ export * from "./EnvironmentResponseData";
229
249
  export * from "./EnvironmentTraitUsageTimeSeriesResponseData";
230
250
  export * from "./EnvironmentType";
231
251
  export * from "./EnvironmentUsagePointResponseData";
252
+ export * from "./EstimatedPlanTotal";
232
253
  export * from "./EventBody";
233
254
  export * from "./EventBodyFlagCheck";
234
255
  export * from "./EventBodyIdentify";
@@ -246,6 +267,7 @@ export * from "./FeatureCompanyResponseData";
246
267
  export * from "./FeatureCompanyUserResponseData";
247
268
  export * from "./FeatureDetailResponseData";
248
269
  export * from "./FeatureEntitlement";
270
+ export * from "./FeatureEventSource";
249
271
  export * from "./FeatureInPlanResponseData";
250
272
  export * from "./FeatureLedgerResponseData";
251
273
  export * from "./FeatureLifecyclePhase";
@@ -318,11 +340,14 @@ export * from "./PlanBundleEntitlementRequestBody";
318
340
  export * from "./PlanBundleResponseData";
319
341
  export * from "./PlanCatalogMembershipResponseData";
320
342
  export * from "./PlanChangeAction";
343
+ export * from "./PlanChangeAmendmentStatus";
321
344
  export * from "./PlanChangeBasePlanAction";
322
345
  export * from "./PlanChangeResponseData";
323
346
  export * from "./PlanChangeSubscriptionAction";
324
347
  export * from "./PlanCreditGrantScaling";
325
348
  export * from "./PlanCreditGrantView";
349
+ export * from "./PlanCreditOrder";
350
+ export * from "./PlanCreditVisibility";
326
351
  export * from "./PlanCurrencyPriceRequestBody";
327
352
  export * from "./PlanCurrencyPricesResponseData";
328
353
  export * from "./PlanDetailResponseData";
@@ -343,13 +368,21 @@ export * from "./PlanSelection";
343
368
  export * from "./PlanSnapshotView";
344
369
  export * from "./PlanTraitResponseData";
345
370
  export * from "./PlanType";
371
+ export * from "./PlanVersionBillingProductChangeResponseData";
346
372
  export * from "./PlanVersionCompanyMigrationResponseData";
347
373
  export * from "./PlanVersionCompanyMigrationStatus";
374
+ export * from "./PlanVersionCreditGrantChangeResponseData";
375
+ export * from "./PlanVersionDiffChangeType";
376
+ export * from "./PlanVersionDiffPriceCadence";
377
+ export * from "./PlanVersionDiffResponseData";
378
+ export * from "./PlanVersionEntitlementChangeResponseData";
379
+ export * from "./PlanVersionFieldChangeResponseData";
348
380
  export * from "./PlanVersionMigrationPreviewCompanyResponseData";
349
381
  export * from "./PlanVersionMigrationPreviewResponseData";
350
382
  export * from "./PlanVersionMigrationResponseData";
351
383
  export * from "./PlanVersionMigrationStatus";
352
384
  export * from "./PlanVersionMigrationStrategy";
385
+ export * from "./PlanVersionPriceChangeResponseData";
353
386
  export * from "./PlanVersionResponseData";
354
387
  export * from "./PlanVersionSnapshotView";
355
388
  export * from "./PlanVersionStatus";
@@ -385,6 +418,9 @@ export * from "./RulesengineCondition";
385
418
  export * from "./RulesengineConditionGroup";
386
419
  export * from "./RulesengineConditionType";
387
420
  export * from "./RulesengineCreditPostpaidConfig";
421
+ export * from "./RulesengineCreditSpendPolicy";
422
+ export * from "./RulesengineCreditSpendPolicyScope";
423
+ export * from "./RulesengineCreditSpendWindow";
388
424
  export * from "./RulesengineEntitlementValueType";
389
425
  export * from "./RulesengineEntityType";
390
426
  export * from "./RulesengineFeatureEntitlement";
@@ -459,6 +495,7 @@ export * from "./UserFeatureUsageResponseData";
459
495
  export * from "./UserResponseData";
460
496
  export * from "./UserUsageByCompanyResponseData";
461
497
  export * from "./UserUsageDetailResponseData";
498
+ export * from "./UserUsageMetric";
462
499
  export * from "./WarningTier";
463
500
  export * from "./WarningTierRequestBody";
464
501
  export * from "./WarningTierResponseData";
@@ -1 +1,17 @@
1
+ export type ResponseBodyError = {
2
+ ok: false;
3
+ error: {
4
+ reason: "non-json";
5
+ statusCode: number;
6
+ rawBody: string;
7
+ } | {
8
+ reason: "body-is-null";
9
+ statusCode: number;
10
+ };
11
+ };
12
+ /**
13
+ * Returns true when `value` is a failure record created by `getResponseBody` (for example malformed JSON),
14
+ * as opposed to a parsed JSON body that happens to have the same shape.
15
+ */
16
+ export declare function isResponseBodyError(value: unknown): value is ResponseBodyError;
1
17
  export declare function getResponseBody(response: Response, responseType?: string): Promise<unknown>;
@@ -3,4 +3,9 @@ export declare function isCacheNoStoreSupported(): boolean;
3
3
  * Reset the cached result of `isCacheNoStoreSupported`. Exposed for testing only.
4
4
  */
5
5
  export declare function resetCacheNoStoreSupported(): void;
6
- export declare const makeRequest: (fetchFn: (url: string, init: RequestInit) => Promise<Response>, url: string, method: string, headers: Headers | Record<string, string>, requestBody: BodyInit | undefined, timeoutMs?: number, abortSignal?: AbortSignal, withCredentials?: boolean, duplex?: "half", disableCache?: boolean) => Promise<Response>;
6
+ /**
7
+ * Clears the timeout that `makeRequest` kept running (with `keepTimeoutUntilBodyRead`) so that it also
8
+ * covered reading the response body.
9
+ */
10
+ export declare function clearResponseTimeout(response: Response): void;
11
+ export declare const makeRequest: (fetchFn: (url: string, init: RequestInit) => Promise<Response>, url: string, method: string, headers: Headers | Record<string, string>, requestBody: BodyInit | undefined, timeoutMs?: number, abortSignal?: AbortSignal, withCredentials?: boolean, duplex?: "half", disableCache?: boolean, keepTimeoutUntilBodyRead?: boolean) => Promise<Response>;
@@ -1 +1 @@
1
- export declare function requestWithRetries(requestFn: () => Promise<Response>, maxRetries?: number): Promise<Response>;
1
+ export declare function requestWithRetries(requestFn: () => Promise<Response>, maxRetries?: number, abortSignal?: AbortSignal): Promise<Response>;
@@ -1,3 +1,4 @@
1
+ export declare const TIMEOUT = "timeout";
1
2
  export declare function getTimeoutSignal(timeoutMs: number): {
2
3
  signal: AbortSignal;
3
4
  abortId: ReturnType<typeof setTimeout>;
@@ -33,9 +33,9 @@ export interface DataStreamClientOptions {
33
33
  flagCache?: CacheProvider<Schematic.RulesengineFlag>;
34
34
  /** Enable replicator mode for external data synchronization */
35
35
  replicatorMode?: boolean;
36
- /** Health check URL for replicator mode */
36
+ /** Health check URL for replicator mode (default: http://localhost:8090/ready) */
37
37
  replicatorHealthURL?: string;
38
- /** Health check interval for replicator mode in milliseconds */
38
+ /** Health check interval for replicator mode in milliseconds (default: 30 seconds) */
39
39
  replicatorHealthCheck?: number;
40
40
  }
41
41
  /**