@schematichq/schematic-typescript-node 1.6.4 → 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 (271) hide show
  1. package/dist/api/resources/billing/client/Client.d.ts +38 -6
  2. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -2
  3. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +3 -3
  4. package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.d.ts +2 -1
  5. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -2
  6. package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +2 -2
  7. package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +2 -2
  8. package/dist/api/resources/billing/client/requests/UpdateBillingSettingsRequestBody.d.ts +8 -0
  9. package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
  10. package/dist/api/resources/billing/types/GetBillingSettingsResponse.d.ts +6 -0
  11. package/dist/api/resources/billing/types/ListBillingPricesParams.d.ts +1 -1
  12. package/dist/api/resources/billing/types/ListBillingProductPricesParams.d.ts +1 -1
  13. package/dist/api/resources/billing/types/UpdateBillingSettingsResponse.d.ts +6 -0
  14. package/dist/api/resources/billing/types/index.d.ts +2 -0
  15. package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +2 -1
  16. package/dist/api/resources/companies/client/Client.d.ts +1 -1
  17. package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +1 -1
  18. package/dist/api/resources/credits/client/Client.d.ts +23 -2
  19. package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +2 -2
  20. package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -1
  21. package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -2
  22. package/dist/api/resources/credits/client/requests/GetCreditBalanceTimeSeriesRequest.d.ts +15 -0
  23. package/dist/api/resources/credits/client/requests/index.d.ts +1 -0
  24. package/dist/api/resources/credits/types/GetCreditBalanceTimeSeriesParams.d.ts +9 -0
  25. package/dist/api/resources/credits/types/GetCreditBalanceTimeSeriesResponse.d.ts +6 -0
  26. package/dist/api/resources/credits/types/index.d.ts +2 -0
  27. package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +3 -1
  28. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -0
  29. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +3 -1
  30. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -0
  31. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  32. package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +2 -0
  33. package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  34. package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  35. package/dist/api/resources/plans/client/Client.d.ts +20 -1
  36. package/dist/api/resources/plans/client/requests/GetPlanVersionDiffRequest.d.ts +10 -0
  37. package/dist/api/resources/plans/client/requests/ListCustomPlanBillingsRequest.d.ts +2 -2
  38. package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +5 -0
  39. package/dist/api/resources/plans/client/requests/index.d.ts +1 -0
  40. package/dist/api/resources/plans/types/GetPlanVersionDiffParams.d.ts +7 -0
  41. package/dist/api/resources/plans/types/GetPlanVersionDiffResponse.d.ts +6 -0
  42. package/dist/api/resources/plans/types/ListCustomPlanBillingsParams.d.ts +1 -1
  43. package/dist/api/resources/plans/types/index.d.ts +2 -0
  44. package/dist/api/types/BillingCouponResponseData.d.ts +1 -1
  45. package/dist/api/types/BillingCreditGrantResponseData.d.ts +2 -2
  46. package/dist/api/types/BillingCustomerSubscription.d.ts +2 -1
  47. package/dist/api/types/BillingPriceResponseData.d.ts +1 -1
  48. package/dist/api/types/BillingPriceView.d.ts +1 -1
  49. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +1 -1
  50. package/dist/api/types/BillingProductPriceResponseData.d.ts +1 -1
  51. package/dist/api/types/BillingProductPricing.d.ts +1 -1
  52. package/dist/api/types/BillingSettingsResponseData.d.ts +4 -0
  53. package/dist/api/types/BillingSubscriptionDiscountView.d.ts +2 -1
  54. package/dist/api/types/BillingSubscriptionResponseData.d.ts +1 -1
  55. package/dist/api/types/BillingSubscriptionView.d.ts +1 -1
  56. package/dist/api/types/CatalogConfigOrderedPlan.d.ts +1 -0
  57. package/dist/api/types/CatalogConfigOrderedPlanResponseData.d.ts +1 -0
  58. package/dist/api/types/CatalogConfigPlanCredit.d.ts +4 -0
  59. package/dist/api/types/CatalogConfigPlanCreditResponseData.d.ts +4 -0
  60. package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -1
  61. package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -1
  62. package/dist/api/types/CheckoutProblemCode.d.ts +47 -0
  63. package/dist/api/types/CheckoutProblemResponseData.d.ts +19 -0
  64. package/dist/api/types/CheckoutProblemSource.d.ts +6 -0
  65. package/dist/api/types/CheckoutSubscription.d.ts +1 -1
  66. package/dist/api/types/CompanyBillingEntitySubscriptionResponseData.d.ts +1 -1
  67. package/dist/api/types/CompanyOverrideResponseData.d.ts +2 -0
  68. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
  69. package/dist/api/types/CompanySubscriptionResponseData.d.ts +1 -1
  70. package/dist/api/types/Condition.d.ts +1 -0
  71. package/dist/api/types/ConditionResponseData.d.ts +1 -0
  72. package/dist/api/types/ConditionView.d.ts +1 -0
  73. package/dist/api/types/CouponRequestBody.d.ts +2 -1
  74. package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +3 -1
  75. package/dist/api/types/CreateEntitlementReqCommon.d.ts +2 -0
  76. package/dist/api/types/CreditBalanceEventResponseData.d.ts +10 -0
  77. package/dist/api/types/CreditBalanceFeatureConsumptionResponseData.d.ts +5 -0
  78. package/dist/api/types/CreditBalancePointResponseData.d.ts +9 -0
  79. package/dist/api/types/CreditBalanceTimeSeriesResponseData.d.ts +8 -0
  80. package/dist/api/types/CreditBundleCurrencyPrice.d.ts +1 -1
  81. package/dist/api/types/CreditBundleCurrencyPriceRequestBody.d.ts +2 -1
  82. package/dist/api/types/CreditBundleCurrencyPriceResponseData.d.ts +1 -1
  83. package/dist/api/types/CreditBurnBreakdownLine.d.ts +6 -0
  84. package/dist/api/types/CreditCompanyGrantView.d.ts +2 -2
  85. package/dist/api/types/CreditCurrencyPrice.d.ts +1 -1
  86. package/dist/api/types/CreditCurrencyPriceRequestBody.d.ts +2 -1
  87. package/dist/api/types/CreditCurrencyPriceResponseData.d.ts +1 -1
  88. package/dist/api/types/CreditEventLedgerResponseData.d.ts +4 -1
  89. package/dist/api/types/CreditUsageReason.d.ts +1 -0
  90. package/dist/api/types/CreditsInPlan.d.ts +4 -0
  91. package/dist/api/types/Currency.d.ts +137 -0
  92. package/dist/api/types/CurrencyPriceRequestBody.d.ts +1 -1
  93. package/dist/api/types/CustomPlanBillingResponseData.d.ts +7 -1
  94. package/dist/api/types/EntitlementCurrencyPricesResponseData.d.ts +1 -1
  95. package/dist/api/types/EstimatedPlanTotal.d.ts +1 -1
  96. package/dist/api/types/FeatureDetailResponseData.d.ts +2 -0
  97. package/dist/api/types/FeatureEntitlement.d.ts +2 -0
  98. package/dist/api/types/FeatureEventSource.d.ts +5 -0
  99. package/dist/api/types/FeatureInPlanResponseData.d.ts +2 -0
  100. package/dist/api/types/FeatureResponseData.d.ts +2 -0
  101. package/dist/api/types/FeatureView.d.ts +1 -0
  102. package/dist/api/types/InvoiceRequestBody.d.ts +1 -1
  103. package/dist/api/types/InvoiceResponseData.d.ts +1 -1
  104. package/dist/api/types/ManagePlanPreviewResponseResponseData.d.ts +1 -0
  105. package/dist/api/types/ManagePlanRequest.d.ts +3 -1
  106. package/dist/api/types/ManagePlanResponseResponseData.d.ts +2 -0
  107. package/dist/api/types/MrrResponseData.d.ts +2 -1
  108. package/dist/api/types/OrderedPlansInGroup.d.ts +1 -0
  109. package/dist/api/types/PendingMigrationResponseData.d.ts +1 -1
  110. package/dist/api/types/PlanBillingSource.d.ts +1 -0
  111. package/dist/api/types/PlanChangeAction.d.ts +1 -0
  112. package/dist/api/types/PlanChangeAmendmentStatus.d.ts +8 -0
  113. package/dist/api/types/PlanChangeResponseData.d.ts +4 -0
  114. package/dist/api/types/PlanCreditOrder.d.ts +4 -0
  115. package/dist/api/types/PlanCreditVisibility.d.ts +4 -0
  116. package/dist/api/types/PlanCurrencyPriceRequestBody.d.ts +2 -1
  117. package/dist/api/types/PlanCurrencyPricesResponseData.d.ts +1 -1
  118. package/dist/api/types/PlanEntitlementResponseData.d.ts +2 -0
  119. package/dist/api/types/PlanGroupPlanEntitlementsOrder.d.ts +1 -0
  120. package/dist/api/types/PlanVersionBillingProductChangeResponseData.d.ts +5 -0
  121. package/dist/api/types/PlanVersionCreditGrantChangeResponseData.d.ts +9 -0
  122. package/dist/api/types/PlanVersionDiffChangeType.d.ts +6 -0
  123. package/dist/api/types/PlanVersionDiffPriceCadence.d.ts +7 -0
  124. package/dist/api/types/PlanVersionDiffResponseData.d.ts +19 -0
  125. package/dist/api/types/PlanVersionEntitlementChangeResponseData.d.ts +9 -0
  126. package/dist/api/types/PlanVersionFieldChangeResponseData.d.ts +5 -0
  127. package/dist/api/types/PlanVersionPriceChangeResponseData.d.ts +7 -0
  128. package/dist/api/types/PlanViewPublicResponseData.d.ts +1 -0
  129. package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +1 -0
  130. package/dist/api/types/PreviewSubscriptionDiscountResponseData.d.ts +2 -1
  131. package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +1 -1
  132. package/dist/api/types/RulesengineCondition.d.ts +1 -0
  133. package/dist/api/types/RulesengineFeatureEntitlement.d.ts +2 -0
  134. package/dist/api/types/ScheduledDowngradeResponseData.d.ts +2 -1
  135. package/dist/api/types/UpcomingInvoiceResponseData.d.ts +1 -1
  136. package/dist/api/types/UpdateEntitlementReqCommon.d.ts +2 -0
  137. package/dist/api/types/UpsertBillingProductRequestBody.d.ts +1 -1
  138. package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -1
  139. package/dist/api/types/index.d.ts +25 -0
  140. package/dist/core/fetcher/getResponseBody.d.ts +16 -0
  141. package/dist/core/fetcher/makeRequest.d.ts +6 -1
  142. package/dist/core/fetcher/requestWithRetries.d.ts +1 -1
  143. package/dist/core/fetcher/signals.d.ts +1 -0
  144. package/dist/index.js +9 -9
  145. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -1
  146. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +2 -1
  147. package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.d.ts +2 -1
  148. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -1
  149. package/dist/serialization/resources/billing/client/requests/UpdateBillingSettingsRequestBody.d.ts +10 -0
  150. package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -0
  151. package/dist/serialization/resources/billing/types/GetBillingSettingsResponse.d.ts +11 -0
  152. package/dist/serialization/resources/billing/types/ListBillingPricesParams.d.ts +2 -1
  153. package/dist/serialization/resources/billing/types/ListBillingProductPricesParams.d.ts +2 -1
  154. package/dist/serialization/resources/billing/types/UpdateBillingSettingsResponse.d.ts +11 -0
  155. package/dist/serialization/resources/billing/types/index.d.ts +2 -0
  156. package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +2 -1
  157. package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +2 -1
  158. package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +2 -1
  159. package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -1
  160. package/dist/serialization/resources/credits/types/GetCreditBalanceTimeSeriesParams.d.ts +12 -0
  161. package/dist/serialization/resources/credits/types/GetCreditBalanceTimeSeriesResponse.d.ts +12 -0
  162. package/dist/serialization/resources/credits/types/index.d.ts +2 -0
  163. package/dist/serialization/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +3 -1
  164. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
  165. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +3 -1
  166. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
  167. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  168. package/dist/serialization/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +2 -0
  169. package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  170. package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  171. package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +2 -0
  172. package/dist/serialization/resources/plans/types/GetPlanVersionDiffParams.d.ts +9 -0
  173. package/dist/serialization/resources/plans/types/GetPlanVersionDiffResponse.d.ts +12 -0
  174. package/dist/serialization/resources/plans/types/index.d.ts +2 -0
  175. package/dist/serialization/types/BillingCouponResponseData.d.ts +2 -1
  176. package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +3 -2
  177. package/dist/serialization/types/BillingCustomerSubscription.d.ts +2 -1
  178. package/dist/serialization/types/BillingPriceResponseData.d.ts +2 -1
  179. package/dist/serialization/types/BillingPriceView.d.ts +2 -1
  180. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
  181. package/dist/serialization/types/BillingProductPriceResponseData.d.ts +2 -1
  182. package/dist/serialization/types/BillingProductPricing.d.ts +2 -1
  183. package/dist/serialization/types/BillingSettingsResponseData.d.ts +10 -0
  184. package/dist/serialization/types/BillingSubscriptionDiscountView.d.ts +2 -1
  185. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +2 -1
  186. package/dist/serialization/types/BillingSubscriptionView.d.ts +2 -1
  187. package/dist/serialization/types/CatalogConfigOrderedPlan.d.ts +2 -0
  188. package/dist/serialization/types/CatalogConfigOrderedPlanResponseData.d.ts +2 -0
  189. package/dist/serialization/types/CatalogConfigPlanCredit.d.ts +10 -0
  190. package/dist/serialization/types/CatalogConfigPlanCreditResponseData.d.ts +10 -0
  191. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -1
  192. package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +2 -1
  193. package/dist/serialization/types/CheckoutProblemCode.d.ts +7 -0
  194. package/dist/serialization/types/CheckoutProblemResponseData.d.ts +23 -0
  195. package/dist/serialization/types/CheckoutProblemSource.d.ts +7 -0
  196. package/dist/serialization/types/CheckoutSubscription.d.ts +2 -1
  197. package/dist/serialization/types/CompanyBillingEntitySubscriptionResponseData.d.ts +2 -1
  198. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
  199. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
  200. package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +2 -1
  201. package/dist/serialization/types/Condition.d.ts +1 -0
  202. package/dist/serialization/types/ConditionResponseData.d.ts +1 -0
  203. package/dist/serialization/types/ConditionView.d.ts +1 -0
  204. package/dist/serialization/types/CouponRequestBody.d.ts +2 -1
  205. package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +3 -1
  206. package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +1 -0
  207. package/dist/serialization/types/CreditBalanceEventResponseData.d.ts +18 -0
  208. package/dist/serialization/types/CreditBalanceFeatureConsumptionResponseData.d.ts +11 -0
  209. package/dist/serialization/types/CreditBalancePointResponseData.d.ts +13 -0
  210. package/dist/serialization/types/CreditBalanceTimeSeriesResponseData.d.ts +14 -0
  211. package/dist/serialization/types/CreditBundleCurrencyPrice.d.ts +2 -1
  212. package/dist/serialization/types/CreditBundleCurrencyPriceRequestBody.d.ts +2 -1
  213. package/dist/serialization/types/CreditBundleCurrencyPriceResponseData.d.ts +2 -1
  214. package/dist/serialization/types/CreditBurnBreakdownLine.d.ts +12 -0
  215. package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -2
  216. package/dist/serialization/types/CreditCurrencyPrice.d.ts +2 -1
  217. package/dist/serialization/types/CreditCurrencyPriceRequestBody.d.ts +2 -1
  218. package/dist/serialization/types/CreditCurrencyPriceResponseData.d.ts +2 -1
  219. package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +5 -1
  220. package/dist/serialization/types/CreditUsageReason.d.ts +1 -1
  221. package/dist/serialization/types/CreditsInPlan.d.ts +10 -0
  222. package/dist/serialization/types/Currency.d.ts +7 -0
  223. package/dist/serialization/types/CurrencyPriceRequestBody.d.ts +2 -1
  224. package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +4 -0
  225. package/dist/serialization/types/EntitlementCurrencyPricesResponseData.d.ts +2 -1
  226. package/dist/serialization/types/EstimatedPlanTotal.d.ts +2 -1
  227. package/dist/serialization/types/FeatureDetailResponseData.d.ts +2 -0
  228. package/dist/serialization/types/FeatureEntitlement.d.ts +1 -0
  229. package/dist/serialization/types/FeatureEventSource.d.ts +7 -0
  230. package/dist/serialization/types/FeatureInPlanResponseData.d.ts +2 -0
  231. package/dist/serialization/types/FeatureResponseData.d.ts +2 -0
  232. package/dist/serialization/types/FeatureView.d.ts +2 -0
  233. package/dist/serialization/types/InvoiceRequestBody.d.ts +2 -1
  234. package/dist/serialization/types/InvoiceResponseData.d.ts +2 -1
  235. package/dist/serialization/types/ManagePlanPreviewResponseResponseData.d.ts +2 -0
  236. package/dist/serialization/types/ManagePlanRequest.d.ts +3 -1
  237. package/dist/serialization/types/ManagePlanResponseResponseData.d.ts +3 -0
  238. package/dist/serialization/types/MrrResponseData.d.ts +2 -1
  239. package/dist/serialization/types/OrderedPlansInGroup.d.ts +2 -0
  240. package/dist/serialization/types/PlanBillingSource.d.ts +1 -1
  241. package/dist/serialization/types/PlanChangeAction.d.ts +1 -1
  242. package/dist/serialization/types/PlanChangeAmendmentStatus.d.ts +7 -0
  243. package/dist/serialization/types/PlanChangeResponseData.d.ts +3 -0
  244. package/dist/serialization/types/PlanCreditOrder.d.ts +10 -0
  245. package/dist/serialization/types/PlanCreditVisibility.d.ts +10 -0
  246. package/dist/serialization/types/PlanCurrencyPriceRequestBody.d.ts +2 -1
  247. package/dist/serialization/types/PlanCurrencyPricesResponseData.d.ts +2 -1
  248. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
  249. package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.d.ts +2 -0
  250. package/dist/serialization/types/PlanVersionBillingProductChangeResponseData.d.ts +11 -0
  251. package/dist/serialization/types/PlanVersionCreditGrantChangeResponseData.d.ts +15 -0
  252. package/dist/serialization/types/PlanVersionDiffChangeType.d.ts +7 -0
  253. package/dist/serialization/types/PlanVersionDiffPriceCadence.d.ts +7 -0
  254. package/dist/serialization/types/PlanVersionDiffResponseData.d.ts +22 -0
  255. package/dist/serialization/types/PlanVersionEntitlementChangeResponseData.d.ts +15 -0
  256. package/dist/serialization/types/PlanVersionFieldChangeResponseData.d.ts +11 -0
  257. package/dist/serialization/types/PlanVersionPriceChangeResponseData.d.ts +15 -0
  258. package/dist/serialization/types/PlanViewPublicResponseData.d.ts +2 -0
  259. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +2 -0
  260. package/dist/serialization/types/PreviewSubscriptionDiscountResponseData.d.ts +2 -1
  261. package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -1
  262. package/dist/serialization/types/RulesengineCondition.d.ts +1 -0
  263. package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +1 -0
  264. package/dist/serialization/types/ScheduledDowngradeResponseData.d.ts +2 -1
  265. package/dist/serialization/types/UpcomingInvoiceResponseData.d.ts +2 -1
  266. package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +1 -0
  267. package/dist/serialization/types/UpsertBillingProductRequestBody.d.ts +2 -1
  268. package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +2 -1
  269. package/dist/serialization/types/index.d.ts +25 -0
  270. package/dist/wasm/rulesengine.js +1 -1
  271. package/package.json +3 -3
@@ -205,7 +205,7 @@ export declare class BillingClient {
205
205
  * amountPaid: 1000000,
206
206
  * amountRemaining: 1000000,
207
207
  * collectionMethod: "collection_method",
208
- * currency: "currency",
208
+ * currency: "aed",
209
209
  * customerExternalId: "customer_external_id",
210
210
  * subtotal: 1000000
211
211
  * })
@@ -346,7 +346,7 @@ export declare class BillingClient {
346
346
  *
347
347
  * @example
348
348
  * await client.billing.listBillingPrices({
349
- * currency: "currency",
349
+ * currency: "aed",
350
350
  * forInitialPlan: true,
351
351
  * forTrialExpiryPlan: true,
352
352
  * ids: ["ids"],
@@ -383,7 +383,7 @@ export declare class BillingClient {
383
383
  * @example
384
384
  * await client.billing.upsertBillingPrice({
385
385
  * billingScheme: "per_unit",
386
- * currency: "currency",
386
+ * currency: "aed",
387
387
  * externalAccountId: "external_account_id",
388
388
  * interval: "interval",
389
389
  * isActive: true,
@@ -429,7 +429,7 @@ export declare class BillingClient {
429
429
  *
430
430
  * @example
431
431
  * await client.billing.listBillingProductPrices({
432
- * currency: "currency",
432
+ * currency: "aed",
433
433
  * forInitialPlan: true,
434
434
  * forTrialExpiryPlan: true,
435
435
  * ids: ["ids"],
@@ -593,6 +593,38 @@ export declare class BillingClient {
593
593
  */
594
594
  updateCompanyBillingProfile(billing_profile_id: string, request: Schematic.UpdateCompanyBillingProfileRequestBody, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.UpdateCompanyBillingProfileResponse>;
595
595
  private __updateCompanyBillingProfile;
596
+ /**
597
+ * @param {BillingClient.RequestOptions} requestOptions - Request-specific configuration.
598
+ *
599
+ * @throws {@link Schematic.UnauthorizedError}
600
+ * @throws {@link Schematic.ForbiddenError}
601
+ * @throws {@link Schematic.NotFoundError}
602
+ * @throws {@link Schematic.InternalServerError}
603
+ * @throws {@link errors.SchematicError}
604
+ * @throws {@link errors.SchematicTimeoutError}
605
+ *
606
+ * @example
607
+ * await client.billing.getBillingSettings()
608
+ */
609
+ getBillingSettings(requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.GetBillingSettingsResponse>;
610
+ private __getBillingSettings;
611
+ /**
612
+ * @param {Schematic.UpdateBillingSettingsRequestBody} request
613
+ * @param {BillingClient.RequestOptions} requestOptions - Request-specific configuration.
614
+ *
615
+ * @throws {@link Schematic.BadRequestError}
616
+ * @throws {@link Schematic.UnauthorizedError}
617
+ * @throws {@link Schematic.ForbiddenError}
618
+ * @throws {@link Schematic.NotFoundError}
619
+ * @throws {@link Schematic.InternalServerError}
620
+ * @throws {@link errors.SchematicError}
621
+ * @throws {@link errors.SchematicTimeoutError}
622
+ *
623
+ * @example
624
+ * await client.billing.updateBillingSettings()
625
+ */
626
+ updateBillingSettings(request?: Schematic.UpdateBillingSettingsRequestBody, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.UpdateBillingSettingsResponse>;
627
+ private __updateBillingSettings;
596
628
  /**
597
629
  * @param {Schematic.CreateBillingSubscriptionRequestBody} request
598
630
  * @param {BillingClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -608,7 +640,7 @@ export declare class BillingClient {
608
640
  * @example
609
641
  * await client.billing.upsertBillingSubscription({
610
642
  * cancelAtPeriodEnd: true,
611
- * currency: "currency",
643
+ * currency: "aed",
612
644
  * customerExternalId: "customer_external_id",
613
645
  * discounts: [{
614
646
  * couponExternalId: "coupon_external_id",
@@ -618,7 +650,7 @@ export declare class BillingClient {
618
650
  * }],
619
651
  * expiredAt: new Date("2024-01-15T09:30:00.000Z"),
620
652
  * productExternalIds: [{
621
- * currency: "currency",
653
+ * currency: "aed",
622
654
  * interval: "interval",
623
655
  * price: 1000000,
624
656
  * priceExternalId: "price_external_id",
@@ -3,7 +3,7 @@ import type * as Schematic from "../../../../index";
3
3
  * @example
4
4
  * {
5
5
  * billingScheme: "per_unit",
6
- * currency: "currency",
6
+ * currency: "aed",
7
7
  * externalAccountId: "external_account_id",
8
8
  * interval: "interval",
9
9
  * isActive: true,
@@ -18,7 +18,7 @@ import type * as Schematic from "../../../../index";
18
18
  */
19
19
  export interface CreateBillingPriceRequestBody {
20
20
  billingScheme: Schematic.BillingPriceScheme;
21
- currency: string;
21
+ currency: Schematic.Currency;
22
22
  externalAccountId: string;
23
23
  interval: string;
24
24
  intervalCount?: number;
@@ -3,7 +3,7 @@ import type * as Schematic from "../../../../index";
3
3
  * @example
4
4
  * {
5
5
  * cancelAtPeriodEnd: true,
6
- * currency: "currency",
6
+ * currency: "aed",
7
7
  * customerExternalId: "customer_external_id",
8
8
  * discounts: [{
9
9
  * couponExternalId: "coupon_external_id",
@@ -13,7 +13,7 @@ import type * as Schematic from "../../../../index";
13
13
  * }],
14
14
  * expiredAt: new Date("2024-01-15T09:30:00.000Z"),
15
15
  * productExternalIds: [{
16
- * currency: "currency",
16
+ * currency: "aed",
17
17
  * interval: "interval",
18
18
  * price: 1000000,
19
19
  * priceExternalId: "price_external_id",
@@ -30,7 +30,7 @@ export interface CreateBillingSubscriptionRequestBody {
30
30
  cancelAt?: number;
31
31
  cancelAtPeriodEnd: boolean;
32
32
  companyId?: string;
33
- currency: string;
33
+ currency: Schematic.Currency;
34
34
  customerExternalId: string;
35
35
  defaultPaymentMethodExternalId?: string;
36
36
  defaultPaymentMethodId?: string;
@@ -1,3 +1,4 @@
1
+ import type * as Schematic from "../../../../index";
1
2
  /**
2
3
  * @example
3
4
  * {
@@ -13,7 +14,7 @@
13
14
  */
14
15
  export interface CreateCouponRequestBody {
15
16
  amountOff: number;
16
- currency?: string;
17
+ currency?: Schematic.Currency;
17
18
  duration: string;
18
19
  durationInMonths: number;
19
20
  externalId: string;
@@ -6,7 +6,7 @@ import type * as Schematic from "../../../../index";
6
6
  * amountPaid: 1000000,
7
7
  * amountRemaining: 1000000,
8
8
  * collectionMethod: "collection_method",
9
- * currency: "currency",
9
+ * currency: "aed",
10
10
  * customerExternalId: "customer_external_id",
11
11
  * subtotal: 1000000
12
12
  * }
@@ -16,7 +16,7 @@ export interface CreateInvoiceRequestBody {
16
16
  amountPaid: number;
17
17
  amountRemaining: number;
18
18
  collectionMethod: string;
19
- currency: string;
19
+ currency: Schematic.Currency;
20
20
  customerExternalId: string;
21
21
  dueDate?: Date;
22
22
  endingBalance?: number;
@@ -2,7 +2,7 @@ import type * as Schematic from "../../../../index";
2
2
  /**
3
3
  * @example
4
4
  * {
5
- * currency: "currency",
5
+ * currency: "aed",
6
6
  * forInitialPlan: true,
7
7
  * forTrialExpiryPlan: true,
8
8
  * ids: ["ids"],
@@ -24,7 +24,7 @@ import type * as Schematic from "../../../../index";
24
24
  */
25
25
  export interface ListBillingPricesRequest {
26
26
  /** Filter for prices in a specific currency (e.g. usd, eur) */
27
- currency?: string;
27
+ currency?: Schematic.Currency;
28
28
  /** Filter for prices valid for initial plans (free prices only) */
29
29
  forInitialPlan?: boolean;
30
30
  /** Filter for prices valid for trial expiry plans (free prices only) */
@@ -2,7 +2,7 @@ import type * as Schematic from "../../../../index";
2
2
  /**
3
3
  * @example
4
4
  * {
5
- * currency: "currency",
5
+ * currency: "aed",
6
6
  * forInitialPlan: true,
7
7
  * forTrialExpiryPlan: true,
8
8
  * ids: ["ids"],
@@ -24,7 +24,7 @@ import type * as Schematic from "../../../../index";
24
24
  */
25
25
  export interface ListBillingProductPricesRequest {
26
26
  /** Filter for prices in a specific currency (e.g. usd, eur) */
27
- currency?: string;
27
+ currency?: Schematic.Currency;
28
28
  /** Filter for prices valid for initial plans (free prices only) */
29
29
  forInitialPlan?: boolean;
30
30
  /** Filter for prices valid for trial expiry plans (free prices only) */
@@ -0,0 +1,8 @@
1
+ import type * as Schematic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface UpdateBillingSettingsRequestBody {
7
+ defaultProviderType?: Schematic.BillingProviderType;
8
+ }
@@ -17,4 +17,5 @@ export type { ListCustomersWithSubscriptionsRequest } from "./ListCustomersWithS
17
17
  export type { ListInvoicesRequest } from "./ListInvoicesRequest";
18
18
  export type { ListMetersRequest } from "./ListMetersRequest";
19
19
  export type { ListPaymentMethodsRequest } from "./ListPaymentMethodsRequest";
20
+ export type { UpdateBillingSettingsRequestBody } from "./UpdateBillingSettingsRequestBody";
20
21
  export type { UpdateCompanyBillingProfileRequestBody } from "./UpdateCompanyBillingProfileRequestBody";
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface GetBillingSettingsResponse {
3
+ data: Schematic.BillingSettingsResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -4,7 +4,7 @@ import type * as Schematic from "../../../index";
4
4
  */
5
5
  export interface ListBillingPricesParams {
6
6
  /** Filter for prices in a specific currency (e.g. usd, eur) */
7
- currency?: string;
7
+ currency?: Schematic.Currency;
8
8
  /** Filter for prices valid for initial plans (free prices only) */
9
9
  forInitialPlan?: boolean;
10
10
  /** Filter for prices valid for trial expiry plans (free prices only) */
@@ -4,7 +4,7 @@ import type * as Schematic from "../../../index";
4
4
  */
5
5
  export interface ListBillingProductPricesParams {
6
6
  /** Filter for prices in a specific currency (e.g. usd, eur) */
7
- currency?: string;
7
+ currency?: Schematic.Currency;
8
8
  /** Filter for prices valid for initial plans (free prices only) */
9
9
  forInitialPlan?: boolean;
10
10
  /** Filter for prices valid for trial expiry plans (free prices only) */
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface UpdateBillingSettingsResponse {
3
+ data: Schematic.BillingSettingsResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -8,6 +8,7 @@ export * from "./DeleteBillingInvoiceResponse";
8
8
  export * from "./DeleteBillingProductResponse";
9
9
  export * from "./DeletePaymentMethodByExternalIdResponse";
10
10
  export * from "./DeleteProductPriceResponse";
11
+ export * from "./GetBillingSettingsResponse";
11
12
  export * from "./ListBillingPricesParams";
12
13
  export * from "./ListBillingPricesResponse";
13
14
  export * from "./ListBillingProductPricesParams";
@@ -26,6 +27,7 @@ export * from "./ListMetersParams";
26
27
  export * from "./ListMetersResponse";
27
28
  export * from "./ListPaymentMethodsParams";
28
29
  export * from "./ListPaymentMethodsResponse";
30
+ export * from "./UpdateBillingSettingsResponse";
29
31
  export * from "./UpdateCompanyBillingProfileResponse";
30
32
  export * from "./UpsertBillingCouponResponse";
31
33
  export * from "./UpsertBillingCustomerResponse";
@@ -1,3 +1,4 @@
1
+ import type * as Schematic from "../../../../index";
1
2
  /**
2
3
  * @example
3
4
  * {
@@ -6,6 +7,6 @@
6
7
  */
7
8
  export interface CheckoutDataRequestBody {
8
9
  companyId: string;
9
- currency?: string;
10
+ currency?: Schematic.Currency;
10
11
  selectedPlanId?: string;
11
12
  }
@@ -638,7 +638,7 @@ export declare class CompaniesClient {
638
638
  *
639
639
  * @example
640
640
  * await client.companies.listPlanChanges({
641
- * action: "checkout",
641
+ * action: "amendment",
642
642
  * basePlanAction: "fallback",
643
643
  * companyId: "company_id",
644
644
  * companyIds: ["company_ids"],
@@ -2,7 +2,7 @@ import type * as Schematic from "../../../../index";
2
2
  /**
3
3
  * @example
4
4
  * {
5
- * action: "checkout",
5
+ * action: "amendment",
6
6
  * basePlanAction: "fallback",
7
7
  * companyId: "company_id",
8
8
  * companyIds: ["company_ids"],
@@ -46,7 +46,7 @@ export declare class CreditsClient {
46
46
  *
47
47
  * @example
48
48
  * await client.credits.createBillingCredit({
49
- * currency: "currency",
49
+ * currency: "aed",
50
50
  * description: "description",
51
51
  * name: "name"
52
52
  * })
@@ -126,6 +126,27 @@ export declare class CreditsClient {
126
126
  */
127
127
  listCompanyCreditBalances(request: Schematic.ListCompanyCreditBalancesRequest, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListCompanyCreditBalancesResponse>;
128
128
  private __listCompanyCreditBalances;
129
+ /**
130
+ * @param {Schematic.GetCreditBalanceTimeSeriesRequest} request
131
+ * @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
132
+ *
133
+ * @throws {@link Schematic.UnauthorizedError}
134
+ * @throws {@link Schematic.ForbiddenError}
135
+ * @throws {@link Schematic.NotFoundError}
136
+ * @throws {@link Schematic.InternalServerError}
137
+ * @throws {@link errors.SchematicError}
138
+ * @throws {@link errors.SchematicTimeoutError}
139
+ *
140
+ * @example
141
+ * await client.credits.getCreditBalanceTimeSeries({
142
+ * billingCreditId: "billing_credit_id",
143
+ * companyId: "company_id",
144
+ * endTime: new Date("2024-01-15T09:30:00.000Z"),
145
+ * startTime: new Date("2024-01-15T09:30:00.000Z")
146
+ * })
147
+ */
148
+ getCreditBalanceTimeSeries(request: Schematic.GetCreditBalanceTimeSeriesRequest, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.GetCreditBalanceTimeSeriesResponse>;
149
+ private __getCreditBalanceTimeSeries;
129
150
  /**
130
151
  * @param {Schematic.ListCreditBundlesRequest} request
131
152
  * @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -166,7 +187,7 @@ export declare class CreditsClient {
166
187
  * await client.credits.createCreditBundle({
167
188
  * bundleName: "bundle_name",
168
189
  * creditId: "credit_id",
169
- * currency: "currency",
190
+ * currency: "aed",
170
191
  * pricePerUnit: 1000000
171
192
  * })
172
193
  */
@@ -2,14 +2,14 @@ import type * as Schematic from "../../../../index";
2
2
  /**
3
3
  * @example
4
4
  * {
5
- * currency: "currency",
5
+ * currency: "aed",
6
6
  * description: "description",
7
7
  * name: "name"
8
8
  * }
9
9
  */
10
10
  export interface CreateBillingCreditRequestBody {
11
11
  burnStrategy?: Schematic.BillingCreditBurnStrategy;
12
- currency: string;
12
+ currency: Schematic.Currency;
13
13
  currencyPrices?: Schematic.CreditCurrencyPriceRequestBody[];
14
14
  defaultExpiryUnit?: Schematic.BillingCreditExpiryUnit;
15
15
  defaultExpiryUnitCount?: number;
@@ -13,7 +13,7 @@ export interface CreateCompanyCreditGrant {
13
13
  companyId: string;
14
14
  creditBundleId?: string;
15
15
  creditId: string;
16
- currency?: string;
16
+ currency?: Schematic.Currency;
17
17
  expiresAt?: Date;
18
18
  expiryType?: Schematic.BillingCreditExpiryType;
19
19
  expiryUnit?: Schematic.BillingCreditExpiryUnit;
@@ -4,7 +4,7 @@ import type * as Schematic from "../../../../index";
4
4
  * {
5
5
  * bundleName: "bundle_name",
6
6
  * creditId: "credit_id",
7
- * currency: "currency",
7
+ * currency: "aed",
8
8
  * pricePerUnit: 1000000
9
9
  * }
10
10
  */
@@ -14,7 +14,7 @@ export interface CreateCreditBundleRequestBody {
14
14
  /** Plans whose companies may purchase this bundle. Omitted or empty means the bundle is purchasable on every plan. */
15
15
  compatiblePlanIds?: string[];
16
16
  creditId: string;
17
- currency: string;
17
+ currency: Schematic.Currency;
18
18
  currencyPrices?: Schematic.CreditBundleCurrencyPriceRequestBody[];
19
19
  expiryType?: Schematic.BillingCreditExpiryType;
20
20
  expiryUnit?: Schematic.BillingCreditExpiryUnit;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * billingCreditId: "billing_credit_id",
5
+ * companyId: "company_id",
6
+ * endTime: new Date("2024-01-15T09:30:00.000Z"),
7
+ * startTime: new Date("2024-01-15T09:30:00.000Z")
8
+ * }
9
+ */
10
+ export interface GetCreditBalanceTimeSeriesRequest {
11
+ billingCreditId: string;
12
+ companyId: string;
13
+ endTime: Date;
14
+ startTime: Date;
15
+ }
@@ -12,6 +12,7 @@ export type { CreateCreditBundleRequestBody } from "./CreateCreditBundleRequestB
12
12
  export type { CreateCreditSpendPolicyRequestBody } from "./CreateCreditSpendPolicyRequestBody";
13
13
  export type { DeleteBillingPlanCreditGrantRequest } from "./DeleteBillingPlanCreditGrantRequest";
14
14
  export type { ExtendCreditLeaseRequestBody } from "./ExtendCreditLeaseRequestBody";
15
+ export type { GetCreditBalanceTimeSeriesRequest } from "./GetCreditBalanceTimeSeriesRequest";
15
16
  export type { GetCreditSpendPolicyUsageRequest } from "./GetCreditSpendPolicyUsageRequest";
16
17
  export type { ListBillingCreditsRequest } from "./ListBillingCreditsRequest";
17
18
  export type { ListBillingPlanCreditGrantsRequest } from "./ListBillingPlanCreditGrantsRequest";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Input parameters
3
+ */
4
+ export interface GetCreditBalanceTimeSeriesParams {
5
+ billingCreditId?: string;
6
+ companyId?: string;
7
+ endTime?: Date;
8
+ startTime?: Date;
9
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface GetCreditBalanceTimeSeriesResponse {
3
+ data: Schematic.CreditBalanceTimeSeriesResponseData;
4
+ /** Input parameters */
5
+ params: Schematic.GetCreditBalanceTimeSeriesParams;
6
+ }
@@ -22,6 +22,8 @@ export * from "./DeleteBillingPlanCreditGrantResponse";
22
22
  export * from "./DeleteCreditBundleResponse";
23
23
  export * from "./DeleteCreditSpendPolicyResponse";
24
24
  export * from "./ExtendCreditLeaseResponse";
25
+ export * from "./GetCreditBalanceTimeSeriesParams";
26
+ export * from "./GetCreditBalanceTimeSeriesResponse";
25
27
  export * from "./GetCreditBundleResponse";
26
28
  export * from "./GetCreditSpendPolicyResponse";
27
29
  export * from "./GetCreditSpendPolicyUsageParams";
@@ -14,7 +14,7 @@ export interface CreateBillingLinkedPlanEntitlementRequestBody {
14
14
  billingProvider: Schematic.BillingProviderType;
15
15
  billingThreshold?: number;
16
16
  creditConsumptionRate?: number;
17
- currency?: string;
17
+ currency?: Schematic.Currency;
18
18
  currencyPrices?: Schematic.CurrencyPriceRequestBody[];
19
19
  externalResourceId: string;
20
20
  featureId: string;
@@ -34,6 +34,8 @@ export interface CreateBillingLinkedPlanEntitlementRequestBody {
34
34
  priceBehavior?: Schematic.EntitlementPriceBehavior;
35
35
  /** Use MonthlyPriceTiers or YearlyPriceTiers instead */
36
36
  priceTiers?: Schematic.CreatePriceTierRequestBody[];
37
+ /** 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. */
38
+ quantityRates?: Record<string, number>;
37
39
  quarterlyMeteredPriceId?: string;
38
40
  quarterlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
39
41
  quarterlyUnitPrice?: number;
@@ -15,6 +15,8 @@ export interface CreateCompanyOverrideRequestBody {
15
15
  metricPeriod?: Schematic.MetricPeriod;
16
16
  metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
17
17
  note?: string;
18
+ /** 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. */
19
+ quantityRates?: Record<string, number>;
18
20
  valueBool?: boolean;
19
21
  valueCreditId?: string;
20
22
  valueNumeric?: number;
@@ -11,7 +11,7 @@ export interface CreatePlanEntitlementRequestBody {
11
11
  billingProductId?: string;
12
12
  billingThreshold?: number;
13
13
  creditConsumptionRate?: number;
14
- currency?: string;
14
+ currency?: Schematic.Currency;
15
15
  currencyPrices?: Schematic.CurrencyPriceRequestBody[];
16
16
  featureId: string;
17
17
  metricPeriod?: Schematic.MetricPeriod;
@@ -30,6 +30,8 @@ export interface CreatePlanEntitlementRequestBody {
30
30
  priceBehavior?: Schematic.EntitlementPriceBehavior;
31
31
  /** Use MonthlyPriceTiers or YearlyPriceTiers instead */
32
32
  priceTiers?: Schematic.CreatePriceTierRequestBody[];
33
+ /** 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. */
34
+ quantityRates?: Record<string, number>;
33
35
  quarterlyMeteredPriceId?: string;
34
36
  quarterlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
35
37
  quarterlyUnitPrice?: number;
@@ -11,6 +11,8 @@ export interface UpdateCompanyOverrideRequestBody {
11
11
  metricPeriod?: Schematic.MetricPeriod;
12
12
  metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
13
13
  note?: string;
14
+ /** 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. */
15
+ quantityRates?: Record<string, number>;
14
16
  valueBool?: boolean;
15
17
  valueCreditId?: string;
16
18
  valueNumeric?: number;
@@ -9,7 +9,7 @@ export interface UpdatePlanEntitlementRequestBody {
9
9
  billingProductId?: string;
10
10
  billingThreshold?: number;
11
11
  creditConsumptionRate?: number;
12
- currency?: string;
12
+ currency?: Schematic.Currency;
13
13
  currencyPrices?: Schematic.CurrencyPriceRequestBody[];
14
14
  metricPeriod?: Schematic.MetricPeriod;
15
15
  metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
@@ -25,6 +25,8 @@ export interface UpdatePlanEntitlementRequestBody {
25
25
  priceBehavior?: Schematic.EntitlementPriceBehavior;
26
26
  /** Use MonthlyPriceTiers or YearlyPriceTiers instead */
27
27
  priceTiers?: Schematic.CreatePriceTierRequestBody[];
28
+ /** 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. */
29
+ quantityRates?: Record<string, number>;
28
30
  quarterlyMeteredPriceId?: string;
29
31
  quarterlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
30
32
  quarterlyUnitPrice?: number;
@@ -12,6 +12,8 @@ import type * as Schematic from "../../../../index";
12
12
  export interface CreateBillingLinkedFeatureRequestBody {
13
13
  billingProvider: Schematic.BillingProviderType;
14
14
  description: string;
15
+ /** Which event stream meters this feature; defaults to track, and cannot change after creation. Inference is only valid on event features: their event_subtype matches the event label on inference events, and they meter through credits only. */
16
+ eventSource?: Schematic.FeatureEventSource;
15
17
  eventSubtype?: string;
16
18
  externalResourceId: string;
17
19
  featureType: Schematic.FeatureType;
@@ -9,6 +9,8 @@ import type * as Schematic from "../../../../index";
9
9
  */
10
10
  export interface CreateFeatureRequestBody {
11
11
  description: string;
12
+ /** Which event stream meters this feature; defaults to track, and cannot change after creation. Inference is only valid on event features: their event_subtype matches the event label on inference events, and they meter through credits only. */
13
+ eventSource?: Schematic.FeatureEventSource;
12
14
  eventSubtype?: string;
13
15
  featureType: Schematic.FeatureType;
14
16
  flag?: Schematic.CreateOrUpdateFlagRequestBody;
@@ -5,6 +5,8 @@ import type * as Schematic from "../../../../index";
5
5
  */
6
6
  export interface UpdateFeatureRequestBody {
7
7
  description?: string;
8
+ /** Which event stream meters this feature. It is fixed at creation: an update that changes it is rejected. */
9
+ eventSource?: Schematic.FeatureEventSource;
8
10
  eventSubtype?: string;
9
11
  featureType?: Schematic.FeatureType;
10
12
  flag?: Schematic.CreateOrUpdateFlagRequestBody;
@@ -46,7 +46,7 @@ export declare class PlansClient {
46
46
  * await client.plans.listCustomPlanBillings({
47
47
  * companyId: "company_id",
48
48
  * planId: "plan_id",
49
- * planBillingSource: "custom_plan",
49
+ * planBillingSource: "amendment",
50
50
  * status: "active",
51
51
  * statuses: ["active"],
52
52
  * limit: 1000000,
@@ -394,6 +394,25 @@ export declare class PlansClient {
394
394
  */
395
395
  deletePlanVersion(plan_version_id: string, request?: Schematic.DeletePlanVersionRequest, requestOptions?: PlansClient.RequestOptions): core.HttpResponsePromise<Schematic.DeletePlanVersionResponse>;
396
396
  private __deletePlanVersion;
397
+ /**
398
+ * @param {string} plan_version_id - plan_version_id
399
+ * @param {Schematic.GetPlanVersionDiffRequest} request
400
+ * @param {PlansClient.RequestOptions} requestOptions - Request-specific configuration.
401
+ *
402
+ * @throws {@link Schematic.UnauthorizedError}
403
+ * @throws {@link Schematic.ForbiddenError}
404
+ * @throws {@link Schematic.NotFoundError}
405
+ * @throws {@link Schematic.InternalServerError}
406
+ * @throws {@link errors.SchematicError}
407
+ * @throws {@link errors.SchematicTimeoutError}
408
+ *
409
+ * @example
410
+ * await client.plans.getPlanVersionDiff("plan_version_id", {
411
+ * against: "against"
412
+ * })
413
+ */
414
+ getPlanVersionDiff(plan_version_id: string, request?: Schematic.GetPlanVersionDiffRequest, requestOptions?: PlansClient.RequestOptions): core.HttpResponsePromise<Schematic.GetPlanVersionDiffResponse>;
415
+ private __getPlanVersionDiff;
397
416
  /**
398
417
  * @param {string} plan_version_id - plan_version_id
399
418
  * @param {Schematic.PublishPlanVersionRequestBody} request
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * against: "against"
5
+ * }
6
+ */
7
+ export interface GetPlanVersionDiffRequest {
8
+ /** The version to compare against. Defaults to the plan's published version. */
9
+ against?: string;
10
+ }
@@ -4,7 +4,7 @@ import type * as Schematic from "../../../../index";
4
4
  * {
5
5
  * companyId: "company_id",
6
6
  * planId: "plan_id",
7
- * planBillingSource: "custom_plan",
7
+ * planBillingSource: "amendment",
8
8
  * status: "active",
9
9
  * statuses: ["active"],
10
10
  * limit: 1000000,
@@ -16,7 +16,7 @@ export interface ListCustomPlanBillingsRequest {
16
16
  companyId?: string;
17
17
  /** Filter by plan ID */
18
18
  planId?: string;
19
- /** Filter by the flow that created the billing record. Defaults to custom_plan. */
19
+ /** Filter by the flow that created the billing record: custom_plan for a first publish, amendment for a republish, manage_plan for a standard plan assigned by invoice. Defaults to custom_plan. */
20
20
  planBillingSource?: Schematic.PlanBillingSource;
21
21
  /** Filter by billing status */
22
22
  status?: Schematic.CustomPlanBillingStatus;