@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
@@ -1,13 +1,14 @@
1
1
  import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
+ import { Currency } from "./Currency";
4
5
  export declare const BillingSubscriptionDiscountView: core.serialization.ObjectSchema<serializers.BillingSubscriptionDiscountView.Raw, Schematic.BillingSubscriptionDiscountView>;
5
6
  export declare namespace BillingSubscriptionDiscountView {
6
7
  interface Raw {
7
8
  amount_off?: number | null;
8
9
  coupon_id: string;
9
10
  coupon_name: string;
10
- currency?: string | null;
11
+ currency?: Currency.Raw | null;
11
12
  customer_facing_code?: string | null;
12
13
  discount_external_id: string;
13
14
  duration: string;
@@ -3,6 +3,7 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { BillingProviderType } from "./BillingProviderType";
5
5
  import { BillingSubscriptionTrialEndSetting } from "./BillingSubscriptionTrialEndSetting";
6
+ import { Currency } from "./Currency";
6
7
  export declare const BillingSubscriptionResponseData: core.serialization.ObjectSchema<serializers.BillingSubscriptionResponseData.Raw, Schematic.BillingSubscriptionResponseData>;
7
8
  export declare namespace BillingSubscriptionResponseData {
8
9
  interface Raw {
@@ -11,7 +12,7 @@ export declare namespace BillingSubscriptionResponseData {
11
12
  cancel_at_period_end: boolean;
12
13
  company_id?: string | null;
13
14
  created_at: string;
14
- currency: string;
15
+ currency: Currency.Raw;
15
16
  customer_external_id: string;
16
17
  default_payment_method_id?: string | null;
17
18
  expired_at?: string | null;
@@ -5,6 +5,7 @@ import { BillingProductForSubscriptionResponseData } from "./BillingProductForSu
5
5
  import { BillingProviderType } from "./BillingProviderType";
6
6
  import { BillingSubscriptionDiscountView } from "./BillingSubscriptionDiscountView";
7
7
  import { BillingSubscriptionTrialEndSetting } from "./BillingSubscriptionTrialEndSetting";
8
+ import { Currency } from "./Currency";
8
9
  import { InvoiceResponseData } from "./InvoiceResponseData";
9
10
  import { PaymentMethodResponseData } from "./PaymentMethodResponseData";
10
11
  export declare const BillingSubscriptionView: core.serialization.ObjectSchema<serializers.BillingSubscriptionView.Raw, Schematic.BillingSubscriptionView>;
@@ -15,7 +16,7 @@ export declare namespace BillingSubscriptionView {
15
16
  cancel_at_period_end: boolean;
16
17
  company_id?: string | null;
17
18
  created_at: string;
18
- currency: string;
19
+ currency: Currency.Raw;
19
20
  customer_external_id: string;
20
21
  default_payment_method_id?: string | null;
21
22
  discounts: BillingSubscriptionDiscountView.Raw[];
@@ -2,9 +2,11 @@ import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { CatalogConfigOrderedEntitlement } from "./CatalogConfigOrderedEntitlement";
5
+ import { CatalogConfigPlanCredit } from "./CatalogConfigPlanCredit";
5
6
  export declare const CatalogConfigOrderedPlan: core.serialization.ObjectSchema<serializers.CatalogConfigOrderedPlan.Raw, Schematic.CatalogConfigOrderedPlan>;
6
7
  export declare namespace CatalogConfigOrderedPlan {
7
8
  interface Raw {
9
+ credits?: CatalogConfigPlanCredit.Raw[] | null;
8
10
  entitlements?: CatalogConfigOrderedEntitlement.Raw[] | null;
9
11
  plan_id: string;
10
12
  }
@@ -2,9 +2,11 @@ import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { CatalogConfigOrderedEntitlementResponseData } from "./CatalogConfigOrderedEntitlementResponseData";
5
+ import { CatalogConfigPlanCreditResponseData } from "./CatalogConfigPlanCreditResponseData";
5
6
  export declare const CatalogConfigOrderedPlanResponseData: core.serialization.ObjectSchema<serializers.CatalogConfigOrderedPlanResponseData.Raw, Schematic.CatalogConfigOrderedPlanResponseData>;
6
7
  export declare namespace CatalogConfigOrderedPlanResponseData {
7
8
  interface Raw {
9
+ credits: CatalogConfigPlanCreditResponseData.Raw[];
8
10
  entitlements: CatalogConfigOrderedEntitlementResponseData.Raw[];
9
11
  plan_id: string;
10
12
  }
@@ -0,0 +1,10 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const CatalogConfigPlanCredit: core.serialization.ObjectSchema<serializers.CatalogConfigPlanCredit.Raw, Schematic.CatalogConfigPlanCredit>;
5
+ export declare namespace CatalogConfigPlanCredit {
6
+ interface Raw {
7
+ credit_id: string;
8
+ visible?: boolean | null;
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const CatalogConfigPlanCreditResponseData: core.serialization.ObjectSchema<serializers.CatalogConfigPlanCreditResponseData.Raw, Schematic.CatalogConfigPlanCreditResponseData>;
5
+ export declare namespace CatalogConfigPlanCreditResponseData {
6
+ interface Raw {
7
+ credit_id: string;
8
+ visible: boolean;
9
+ }
10
+ }
@@ -2,6 +2,7 @@ import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { CheckoutFieldValue } from "./CheckoutFieldValue";
5
+ import { Currency } from "./Currency";
5
6
  import { UpdateAddOnRequestBody } from "./UpdateAddOnRequestBody";
6
7
  import { UpdateAutoTopupOverrideRequestBody } from "./UpdateAutoTopupOverrideRequestBody";
7
8
  import { UpdateCreditBundleRequestBody } from "./UpdateCreditBundleRequestBody";
@@ -15,7 +16,7 @@ export declare namespace ChangeSubscriptionInternalRequestBody {
15
16
  company_id: string;
16
17
  coupon_external_id?: string | null;
17
18
  credit_bundles: UpdateCreditBundleRequestBody.Raw[];
18
- currency?: string | null;
19
+ currency?: Currency.Raw | null;
19
20
  custom_field_values: CheckoutFieldValue.Raw[];
20
21
  new_plan_id: string;
21
22
  new_price_id: string;
@@ -2,6 +2,7 @@ import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { CheckoutFieldValue } from "./CheckoutFieldValue";
5
+ import { Currency } from "./Currency";
5
6
  import { UpdateAddOnRequestBody } from "./UpdateAddOnRequestBody";
6
7
  import { UpdateAutoTopupOverrideRequestBody } from "./UpdateAutoTopupOverrideRequestBody";
7
8
  import { UpdateCreditBundleRequestBody } from "./UpdateCreditBundleRequestBody";
@@ -14,7 +15,7 @@ export declare namespace ChangeSubscriptionRequestBody {
14
15
  billing_entity_id?: string | null;
15
16
  coupon_external_id?: string | null;
16
17
  credit_bundles: UpdateCreditBundleRequestBody.Raw[];
17
- currency?: string | null;
18
+ currency?: Currency.Raw | null;
18
19
  custom_field_values: CheckoutFieldValue.Raw[];
19
20
  new_plan_id: string;
20
21
  new_price_id: string;
@@ -0,0 +1,7 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const CheckoutProblemCode: core.serialization.Schema<serializers.CheckoutProblemCode.Raw, Schematic.CheckoutProblemCode>;
5
+ export declare namespace CheckoutProblemCode {
6
+ type Raw = "add_on_conflicts_with_plan" | "add_on_interval_mismatch" | "add_on_requires_billed_plan" | "add_on_unavailable" | "billing_cycle_anchor_conflicts_with_trial" | "billing_cycle_anchor_must_be_future" | "billing_cycle_anchor_needs_new_subscription" | "billing_cycle_anchor_without_plan" | "billing_start_date_must_be_past" | "billing_start_date_needs_new_subscription" | "billing_start_date_needs_renewal_date" | "billing_start_date_not_before_renewal_date" | "billing_start_date_too_far_in_past" | "credit_bundle_incompatible" | "credit_bundle_unavailable" | "credit_bundles_activate_on_payment" | "currency_mismatch" | "custom_field_required" | "discount_ineligible" | "downgrade_not_permitted" | "free_first_period_activates_on_payment" | "invoice_email_required" | "invoiced_subscription_conflicts_with_trial" | "invoiced_subscription_needs_new_subscription" | "invoiced_subscription_requires_plan" | "opt_in_required" | "pay_in_advance_price_invalid" | "pay_in_advance_required" | "payment_method_required" | "plan_not_trialable" | "plan_unavailable" | "price_unavailable" | "prorate_first_period_without_anchor" | "provider_rejected" | "scheduled_change_blocks_purchase" | "scheduled_change_pending" | "selection_invalid" | "subscription_currency_change" | "trial_end_must_be_future" | "trial_end_too_far" | "trial_excludes_add_ons" | "trial_excludes_usage_based" | "usage_price_missing_for_interval" | "usage_over_limit";
7
+ }
@@ -0,0 +1,23 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { CheckoutProblemCode } from "./CheckoutProblemCode";
5
+ import { CheckoutProblemSource } from "./CheckoutProblemSource";
6
+ import { Currency } from "./Currency";
7
+ export declare const CheckoutProblemResponseData: core.serialization.ObjectSchema<serializers.CheckoutProblemResponseData.Raw, Schematic.CheckoutProblemResponseData>;
8
+ export declare namespace CheckoutProblemResponseData {
9
+ interface Raw {
10
+ blocking: boolean;
11
+ bundle_id?: string | null;
12
+ code: CheckoutProblemCode.Raw;
13
+ currency?: Currency.Raw | null;
14
+ detail?: string | null;
15
+ feature_id?: string | null;
16
+ field_id?: string | null;
17
+ message: string;
18
+ payment_method_id?: string | null;
19
+ plan_id?: string | null;
20
+ price_id?: string | null;
21
+ source: CheckoutProblemSource.Raw;
22
+ }
23
+ }
@@ -0,0 +1,7 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const CheckoutProblemSource: core.serialization.Schema<serializers.CheckoutProblemSource.Raw, Schematic.CheckoutProblemSource>;
5
+ export declare namespace CheckoutProblemSource {
6
+ type Raw = "provider" | "requirement" | "validation";
7
+ }
@@ -3,6 +3,7 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { BillingProviderType } from "./BillingProviderType";
5
5
  import { BillingSubscriptionTrialEndSetting } from "./BillingSubscriptionTrialEndSetting";
6
+ import { Currency } from "./Currency";
6
7
  export declare const CheckoutSubscription: core.serialization.ObjectSchema<serializers.CheckoutSubscription.Raw, Schematic.CheckoutSubscription>;
7
8
  export declare namespace CheckoutSubscription {
8
9
  interface Raw {
@@ -13,7 +14,7 @@ export declare namespace CheckoutSubscription {
13
14
  confirm_payment_intent_client_secret?: string | null;
14
15
  confirm_payment_intent_id?: string | null;
15
16
  created_at: string;
16
- currency: string;
17
+ currency: Currency.Raw;
17
18
  customer_external_id: string;
18
19
  default_payment_method_id?: string | null;
19
20
  expired_at?: string | null;
@@ -5,6 +5,7 @@ import { BillingProductForSubscriptionResponseData } from "./BillingProductForSu
5
5
  import { BillingProviderType } from "./BillingProviderType";
6
6
  import { BillingSubscriptionDiscountView } from "./BillingSubscriptionDiscountView";
7
7
  import { CompanyResponseData } from "./CompanyResponseData";
8
+ import { Currency } from "./Currency";
8
9
  import { InvoiceResponseData } from "./InvoiceResponseData";
9
10
  import { PaymentMethodResponseData } from "./PaymentMethodResponseData";
10
11
  export declare const CompanyBillingEntitySubscriptionResponseData: core.serialization.ObjectSchema<serializers.CompanyBillingEntitySubscriptionResponseData.Raw, Schematic.CompanyBillingEntitySubscriptionResponseData>;
@@ -13,7 +14,7 @@ export declare namespace CompanyBillingEntitySubscriptionResponseData {
13
14
  cancel_at?: string | null;
14
15
  cancel_at_period_end: boolean;
15
16
  company?: CompanyResponseData.Raw | null;
16
- currency: string;
17
+ currency: Currency.Raw;
17
18
  customer_external_id: string;
18
19
  discounts: BillingSubscriptionDiscountView.Raw[];
19
20
  expired_at?: string | null;
@@ -24,6 +24,7 @@ export declare namespace CompanyOverrideResponseData {
24
24
  metric_period?: MetricPeriod.Raw | null;
25
25
  metric_period_month_reset?: MetricPeriodMonthReset.Raw | null;
26
26
  notes: CompanyOverrideNoteResponseData.Raw[];
27
+ quantity_rates?: Record<string, number> | null;
27
28
  rule_id?: string | null;
28
29
  rule_id_usage_exceeded?: string | null;
29
30
  updated_at: string;
@@ -15,6 +15,7 @@ import { FeatureInPlanResponseData } from "./FeatureInPlanResponseData";
15
15
  import { FeatureUsageResponseData } from "./FeatureUsageResponseData";
16
16
  import { PlanCatalogMembershipResponseData } from "./PlanCatalogMembershipResponseData";
17
17
  import { PlanCreditGrantView } from "./PlanCreditGrantView";
18
+ import { PlanCreditVisibility } from "./PlanCreditVisibility";
18
19
  import { PlanCurrencyPricesResponseData } from "./PlanCurrencyPricesResponseData";
19
20
  import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
20
21
  import { PlanIcon } from "./PlanIcon";
@@ -41,6 +42,7 @@ export declare namespace CompanyPlanDetailResponseData {
41
42
  controlled_by: BillingProviderType.Raw;
42
43
  copied_from_plan_id?: string | null;
43
44
  created_at: string;
45
+ credit_visibility?: PlanCreditVisibility.Raw[] | null;
44
46
  credits: BillingCreditResponseData.Raw[];
45
47
  currency_prices: PlanCurrencyPricesResponseData.Raw[];
46
48
  current: boolean;
@@ -4,6 +4,7 @@ import type * as serializers from "../index";
4
4
  import { BillingProductForSubscriptionResponseData } from "./BillingProductForSubscriptionResponseData";
5
5
  import { BillingProviderType } from "./BillingProviderType";
6
6
  import { BillingSubscriptionDiscountView } from "./BillingSubscriptionDiscountView";
7
+ import { Currency } from "./Currency";
7
8
  import { InvoiceResponseData } from "./InvoiceResponseData";
8
9
  import { PaymentMethodResponseData } from "./PaymentMethodResponseData";
9
10
  export declare const CompanySubscriptionResponseData: core.serialization.ObjectSchema<serializers.CompanySubscriptionResponseData.Raw, Schematic.CompanySubscriptionResponseData>;
@@ -11,7 +12,7 @@ export declare namespace CompanySubscriptionResponseData {
11
12
  interface Raw {
12
13
  cancel_at?: string | null;
13
14
  cancel_at_period_end: boolean;
14
- currency: string;
15
+ currency: Currency.Raw;
15
16
  customer_external_id: string;
16
17
  discounts: BillingSubscriptionDiscountView.Raw[];
17
18
  expired_at?: string | null;
@@ -21,6 +21,7 @@ export declare namespace Condition {
21
21
  metric_period_month_reset?: MetricPeriodMonthReset.Raw | null;
22
22
  metric_value?: number | null;
23
23
  operator: ComparableOperator.Raw;
24
+ quantity_rates?: Record<string, number> | null;
24
25
  resource_ids: string[];
25
26
  trait_definition?: TraitDefinition.Raw | null;
26
27
  trait_value: string;
@@ -24,6 +24,7 @@ export declare namespace ConditionResponseData {
24
24
  metric_period_month_reset?: MetricPeriodMonthReset.Raw | null;
25
25
  metric_value?: number | null;
26
26
  operator: ComparableOperator.Raw;
27
+ quantity_rates?: Record<string, number> | null;
27
28
  resource_unspecified_ids: string[];
28
29
  rule_id: string;
29
30
  trait_entity_type?: EntityType.Raw | null;
@@ -31,6 +31,7 @@ export declare namespace ConditionView {
31
31
  operator: ComparableOperator.Raw;
32
32
  plan_versions: GenericPreviewObject.Raw[];
33
33
  plans: GenericPreviewObject.Raw[];
34
+ quantity_rates?: Record<string, number> | null;
34
35
  resource_unspecified_ids: string[];
35
36
  rule_id: string;
36
37
  trait?: EntityTraitDefinitionResponseData.Raw | null;
@@ -1,11 +1,12 @@
1
1
  import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
+ import { Currency } from "./Currency";
4
5
  export declare const CouponRequestBody: core.serialization.ObjectSchema<serializers.CouponRequestBody.Raw, Schematic.CouponRequestBody>;
5
6
  export declare namespace CouponRequestBody {
6
7
  interface Raw {
7
8
  amount_off: number;
8
- currency?: string | null;
9
+ currency?: Currency.Raw | null;
9
10
  duration: string;
10
11
  duration_in_months: number;
11
12
  max_redemptions: number;
@@ -5,6 +5,7 @@ import { BillingArrearsAnchor } from "./BillingArrearsAnchor";
5
5
  import { BillingArrearsCadence } from "./BillingArrearsCadence";
6
6
  import { BillingTiersMode } from "./BillingTiersMode";
7
7
  import { CreatePriceTierRequestBody } from "./CreatePriceTierRequestBody";
8
+ import { Currency } from "./Currency";
8
9
  import { CurrencyPriceRequestBody } from "./CurrencyPriceRequestBody";
9
10
  import { EntitlementPriceBehavior } from "./EntitlementPriceBehavior";
10
11
  import { EntitlementValueType } from "./EntitlementValueType";
@@ -17,7 +18,7 @@ export declare namespace CreateEntitlementInBundleRequestBody {
17
18
  billing_product_id?: string | null;
18
19
  billing_threshold?: number | null;
19
20
  credit_consumption_rate?: number | null;
20
- currency?: string | null;
21
+ currency?: Currency.Raw | null;
21
22
  currency_prices?: CurrencyPriceRequestBody.Raw[] | null;
22
23
  feature_id: string;
23
24
  metric_period?: MetricPeriod.Raw | null;
@@ -33,6 +34,7 @@ export declare namespace CreateEntitlementInBundleRequestBody {
33
34
  plan_version_id?: string | null;
34
35
  price_behavior?: EntitlementPriceBehavior.Raw | null;
35
36
  price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
37
+ quantity_rates?: Record<string, number> | null;
36
38
  quarterly_metered_price_id?: string | null;
37
39
  quarterly_price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
38
40
  quarterly_unit_price?: number | null;
@@ -11,6 +11,7 @@ export declare namespace CreateEntitlementReqCommon {
11
11
  feature_id: string;
12
12
  metric_period?: MetricPeriod.Raw | null;
13
13
  metric_period_month_reset?: MetricPeriodMonthReset.Raw | null;
14
+ quantity_rates?: Record<string, number> | null;
14
15
  value_bool?: boolean | null;
15
16
  value_credit_id?: string | null;
16
17
  value_numeric?: number | null;
@@ -0,0 +1,18 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { BillingCreditGrantReason } from "./BillingCreditGrantReason";
5
+ import { BillingCreditGrantZeroedOutReason } from "./BillingCreditGrantZeroedOutReason";
6
+ import { CreditEventType } from "./CreditEventType";
7
+ export declare const CreditBalanceEventResponseData: core.serialization.ObjectSchema<serializers.CreditBalanceEventResponseData.Raw, Schematic.CreditBalanceEventResponseData>;
8
+ export declare namespace CreditBalanceEventResponseData {
9
+ interface Raw {
10
+ amount: number;
11
+ event_type: CreditEventType.Raw;
12
+ grant_id?: string | null;
13
+ grant_reason?: BillingCreditGrantReason.Raw | null;
14
+ plan_id?: string | null;
15
+ timestamp: string;
16
+ zeroed_out_reason?: BillingCreditGrantZeroedOutReason.Raw | null;
17
+ }
18
+ }
@@ -0,0 +1,11 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const CreditBalanceFeatureConsumptionResponseData: core.serialization.ObjectSchema<serializers.CreditBalanceFeatureConsumptionResponseData.Raw, Schematic.CreditBalanceFeatureConsumptionResponseData>;
5
+ export declare namespace CreditBalanceFeatureConsumptionResponseData {
6
+ interface Raw {
7
+ amount: number;
8
+ feature_id: string;
9
+ feature_name: string;
10
+ }
11
+ }
@@ -0,0 +1,13 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { CreditBalanceFeatureConsumptionResponseData } from "./CreditBalanceFeatureConsumptionResponseData";
5
+ export declare const CreditBalancePointResponseData: core.serialization.ObjectSchema<serializers.CreditBalancePointResponseData.Raw, Schematic.CreditBalancePointResponseData>;
6
+ export declare namespace CreditBalancePointResponseData {
7
+ interface Raw {
8
+ balance: number;
9
+ consumed: number;
10
+ consumed_by_feature: CreditBalanceFeatureConsumptionResponseData.Raw[];
11
+ timestamp: string;
12
+ }
13
+ }
@@ -0,0 +1,14 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { CreditBalanceEventResponseData } from "./CreditBalanceEventResponseData";
5
+ import { CreditBalancePointResponseData } from "./CreditBalancePointResponseData";
6
+ export declare const CreditBalanceTimeSeriesResponseData: core.serialization.ObjectSchema<serializers.CreditBalanceTimeSeriesResponseData.Raw, Schematic.CreditBalanceTimeSeriesResponseData>;
7
+ export declare namespace CreditBalanceTimeSeriesResponseData {
8
+ interface Raw {
9
+ balance_points: CreditBalancePointResponseData.Raw[];
10
+ billing_credit_id: string;
11
+ events: CreditBalanceEventResponseData.Raw[];
12
+ external: boolean;
13
+ }
14
+ }
@@ -2,10 +2,11 @@ import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { BillingPriceView } from "./BillingPriceView";
5
+ import { Currency } from "./Currency";
5
6
  export declare const CreditBundleCurrencyPrice: core.serialization.ObjectSchema<serializers.CreditBundleCurrencyPrice.Raw, Schematic.CreditBundleCurrencyPrice>;
6
7
  export declare namespace CreditBundleCurrencyPrice {
7
8
  interface Raw {
8
- currency: string;
9
+ currency: Currency.Raw;
9
10
  price?: BillingPriceView.Raw | null;
10
11
  }
11
12
  }
@@ -1,10 +1,11 @@
1
1
  import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
+ import { Currency } from "./Currency";
4
5
  export declare const CreditBundleCurrencyPriceRequestBody: core.serialization.ObjectSchema<serializers.CreditBundleCurrencyPriceRequestBody.Raw, Schematic.CreditBundleCurrencyPriceRequestBody>;
5
6
  export declare namespace CreditBundleCurrencyPriceRequestBody {
6
7
  interface Raw {
7
- currency: string;
8
+ currency: Currency.Raw;
8
9
  price_per_unit?: number | null;
9
10
  price_per_unit_decimal?: string | null;
10
11
  }
@@ -2,10 +2,11 @@ import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { BillingPriceResponseData } from "./BillingPriceResponseData";
5
+ import { Currency } from "./Currency";
5
6
  export declare const CreditBundleCurrencyPriceResponseData: core.serialization.ObjectSchema<serializers.CreditBundleCurrencyPriceResponseData.Raw, Schematic.CreditBundleCurrencyPriceResponseData>;
6
7
  export declare namespace CreditBundleCurrencyPriceResponseData {
7
8
  interface Raw {
8
- currency: string;
9
+ currency: Currency.Raw;
9
10
  price?: BillingPriceResponseData.Raw | null;
10
11
  }
11
12
  }
@@ -0,0 +1,12 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const CreditBurnBreakdownLine: core.serialization.ObjectSchema<serializers.CreditBurnBreakdownLine.Raw, Schematic.CreditBurnBreakdownLine>;
5
+ export declare namespace CreditBurnBreakdownLine {
6
+ interface Raw {
7
+ credits: number;
8
+ key: string;
9
+ quantity: number;
10
+ rate: number;
11
+ }
12
+ }
@@ -9,6 +9,7 @@ import { BillingCreditGrantZeroedOutReason } from "./BillingCreditGrantZeroedOut
9
9
  import { BillingPlanCreditGrantResetCadence } from "./BillingPlanCreditGrantResetCadence";
10
10
  import { BillingProductPriceResponseData } from "./BillingProductPriceResponseData";
11
11
  import { CreditTransferView } from "./CreditTransferView";
12
+ import { Currency } from "./Currency";
12
13
  export declare const CreditCompanyGrantView: core.serialization.ObjectSchema<serializers.CreditCompanyGrantView.Raw, Schematic.CreditCompanyGrantView>;
13
14
  export declare namespace CreditCompanyGrantView {
14
15
  interface Raw {
@@ -22,7 +23,7 @@ export declare namespace CreditCompanyGrantView {
22
23
  credit_description: string;
23
24
  credit_icon?: string | null;
24
25
  credit_name: string;
25
- currency?: string | null;
26
+ currency?: Currency.Raw | null;
26
27
  exhausted_at?: string | null;
27
28
  expires_at?: string | null;
28
29
  expiry_type?: BillingCreditExpiryType.Raw | null;
@@ -35,7 +36,7 @@ export declare namespace CreditCompanyGrantView {
35
36
  plan_name?: string | null;
36
37
  plural_name?: string | null;
37
38
  postpaid_charge_amount?: number | null;
38
- postpaid_charge_currency?: string | null;
39
+ postpaid_charge_currency?: Currency.Raw | null;
39
40
  postpaid_charged_credits?: number | null;
40
41
  postpaid_period_end?: string | null;
41
42
  postpaid_rate?: number | null;
@@ -2,10 +2,11 @@ import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { BillingPriceView } from "./BillingPriceView";
5
+ import { Currency } from "./Currency";
5
6
  export declare const CreditCurrencyPrice: core.serialization.ObjectSchema<serializers.CreditCurrencyPrice.Raw, Schematic.CreditCurrencyPrice>;
6
7
  export declare namespace CreditCurrencyPrice {
7
8
  interface Raw {
8
- currency: string;
9
+ currency: Currency.Raw;
9
10
  price?: BillingPriceView.Raw | null;
10
11
  }
11
12
  }
@@ -1,10 +1,11 @@
1
1
  import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
+ import { Currency } from "./Currency";
4
5
  export declare const CreditCurrencyPriceRequestBody: core.serialization.ObjectSchema<serializers.CreditCurrencyPriceRequestBody.Raw, Schematic.CreditCurrencyPriceRequestBody>;
5
6
  export declare namespace CreditCurrencyPriceRequestBody {
6
7
  interface Raw {
7
- currency: string;
8
+ currency: Currency.Raw;
8
9
  price_per_unit?: number | null;
9
10
  price_per_unit_decimal?: string | null;
10
11
  }
@@ -2,10 +2,11 @@ import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { BillingPriceResponseData } from "./BillingPriceResponseData";
5
+ import { Currency } from "./Currency";
5
6
  export declare const CreditCurrencyPriceResponseData: core.serialization.ObjectSchema<serializers.CreditCurrencyPriceResponseData.Raw, Schematic.CreditCurrencyPriceResponseData>;
6
7
  export declare namespace CreditCurrencyPriceResponseData {
7
8
  interface Raw {
8
- currency: string;
9
+ currency: Currency.Raw;
9
10
  price?: BillingPriceResponseData.Raw | null;
10
11
  }
11
12
  }
@@ -7,10 +7,12 @@ import { BillingCreditGrantReason } from "./BillingCreditGrantReason";
7
7
  import { BillingCreditGrantZeroedOutReason } from "./BillingCreditGrantZeroedOutReason";
8
8
  import { BillingCreditLedgerResponseData } from "./BillingCreditLedgerResponseData";
9
9
  import { CompanyLedgerResponseData } from "./CompanyLedgerResponseData";
10
+ import { CreditBurnBreakdownLine } from "./CreditBurnBreakdownLine";
10
11
  import { CreditEventType } from "./CreditEventType";
11
12
  import { CreditLedgerEntryKind } from "./CreditLedgerEntryKind";
12
13
  import { CreditTransferReason } from "./CreditTransferReason";
13
14
  import { CreditUsageReason } from "./CreditUsageReason";
15
+ import { Currency } from "./Currency";
14
16
  import { FeatureLedgerResponseData } from "./FeatureLedgerResponseData";
15
17
  export declare const CreditEventLedgerResponseData: core.serialization.ObjectSchema<serializers.CreditEventLedgerResponseData.Raw, Schematic.CreditEventLedgerResponseData>;
16
18
  export declare namespace CreditEventLedgerResponseData {
@@ -19,14 +21,16 @@ export declare namespace CreditEventLedgerResponseData {
19
21
  auto_topup_log_id?: string | null;
20
22
  billing_credit_bundle_id?: string | null;
21
23
  billing_credit_id?: string | null;
24
+ burn_breakdown?: CreditBurnBreakdownLine.Raw[] | null;
22
25
  company?: CompanyLedgerResponseData.Raw | null;
23
26
  company_id: string;
24
27
  credit?: BillingCreditLedgerResponseData.Raw | null;
25
28
  credit_name: string;
26
- currency?: string | null;
29
+ currency?: Currency.Raw | null;
27
30
  environment_id: string;
28
31
  event_at: string;
29
32
  event_id: string;
33
+ event_ids: string[];
30
34
  event_type: CreditEventType.Raw;
31
35
  expiry_type?: BillingCreditExpiryType.Raw | null;
32
36
  expiry_unit?: BillingCreditExpiryUnit.Raw | null;
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const CreditUsageReason: core.serialization.Schema<serializers.CreditUsageReason.Raw, Schematic.CreditUsageReason>;
5
5
  export declare namespace CreditUsageReason {
6
- type Raw = "lease_hold" | "lease_release" | "manual_adjustment" | "reconciliation" | "reservation_hold" | "reservation_release" | "track";
6
+ type Raw = "inference" | "lease_hold" | "lease_release" | "manual_adjustment" | "reconciliation" | "reservation_hold" | "reservation_release" | "track";
7
7
  }
@@ -0,0 +1,10 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const CreditsInPlan: core.serialization.ObjectSchema<serializers.CreditsInPlan.Raw, Schematic.CreditsInPlan>;
5
+ export declare namespace CreditsInPlan {
6
+ interface Raw {
7
+ credit_id: string;
8
+ visible?: boolean | null;
9
+ }
10
+ }
@@ -0,0 +1,7 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const Currency: core.serialization.Schema<serializers.Currency.Raw, Schematic.Currency>;
5
+ export declare namespace Currency {
6
+ type Raw = "aed" | "afn" | "all" | "amd" | "ang" | "aoa" | "ars" | "aud" | "awg" | "azn" | "bam" | "bbd" | "bdt" | "bif" | "bmd" | "bnd" | "bob" | "brl" | "bsd" | "bwp" | "byn" | "bzd" | "cad" | "cdf" | "chf" | "clp" | "cny" | "cop" | "crc" | "cve" | "czk" | "djf" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eur" | "fjd" | "fkp" | "gbp" | "gel" | "gip" | "gmd" | "gnf" | "gtq" | "gyd" | "hkd" | "hnl" | "htg" | "huf" | "idr" | "ils" | "inr" | "isk" | "jmd" | "jpy" | "kes" | "kgs" | "khr" | "kmf" | "krw" | "kyd" | "kzt" | "lak" | "lbp" | "lkr" | "lrd" | "lsl" | "mad" | "mdl" | "mga" | "mkd" | "mmk" | "mnt" | "mop" | "mur" | "mvr" | "mwk" | "mxn" | "myr" | "mzn" | "nad" | "ngn" | "nio" | "nok" | "npr" | "nzd" | "pab" | "pen" | "pgk" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sbd" | "scr" | "sek" | "sgd" | "shp" | "sle" | "sos" | "srd" | "std" | "szl" | "thb" | "tjs" | "top" | "try" | "ttd" | "twd" | "tzs" | "uah" | "ugx" | "usd" | "uyu" | "uzs" | "vnd" | "vuv" | "wst" | "xaf" | "xcd" | "xcg" | "xof" | "xpf" | "yer" | "zar" | "zmw";
7
+ }
@@ -2,10 +2,11 @@ import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { CreatePriceTierRequestBody } from "./CreatePriceTierRequestBody";
5
+ import { Currency } from "./Currency";
5
6
  export declare const CurrencyPriceRequestBody: core.serialization.ObjectSchema<serializers.CurrencyPriceRequestBody.Raw, Schematic.CurrencyPriceRequestBody>;
6
7
  export declare namespace CurrencyPriceRequestBody {
7
8
  interface Raw {
8
- currency: string;
9
+ currency: Currency.Raw;
9
10
  monthly_price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
10
11
  monthly_unit_price?: number | null;
11
12
  monthly_unit_price_decimal?: string | null;