@schematichq/schematic-typescript-node 1.6.3 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (377) hide show
  1. package/README.md +18 -3
  2. package/dist/api/resources/accounts/client/requests/UpdateEnvironmentRequestBody.d.ts +1 -0
  3. package/dist/api/resources/billing/client/Client.d.ts +38 -6
  4. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -2
  5. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +3 -3
  6. package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.d.ts +2 -1
  7. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -2
  8. package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +2 -2
  9. package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +2 -2
  10. package/dist/api/resources/billing/client/requests/UpdateBillingSettingsRequestBody.d.ts +8 -0
  11. package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
  12. package/dist/api/resources/billing/types/GetBillingSettingsResponse.d.ts +6 -0
  13. package/dist/api/resources/billing/types/ListBillingPricesParams.d.ts +1 -1
  14. package/dist/api/resources/billing/types/ListBillingProductPricesParams.d.ts +1 -1
  15. package/dist/api/resources/billing/types/UpdateBillingSettingsResponse.d.ts +6 -0
  16. package/dist/api/resources/billing/types/index.d.ts +2 -0
  17. package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +2 -1
  18. package/dist/api/resources/companies/client/Client.d.ts +1 -1
  19. package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +1 -1
  20. package/dist/api/resources/credits/client/Client.d.ts +47 -6
  21. package/dist/api/resources/credits/client/requests/AcquireCreditLeaseRequestBody.d.ts +2 -0
  22. package/dist/api/resources/credits/client/requests/CountCreditEventLedgerRequest.d.ts +1 -1
  23. package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +2 -2
  24. package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -1
  25. package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -2
  26. package/dist/api/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +8 -4
  27. package/dist/api/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +2 -0
  28. package/dist/api/resources/credits/client/requests/GetCreditBalanceTimeSeriesRequest.d.ts +15 -0
  29. package/dist/api/resources/credits/client/requests/GetCreditSpendPolicyUsageRequest.d.ts +13 -0
  30. package/dist/api/resources/credits/client/requests/ListCreditEventLedgerRequest.d.ts +1 -1
  31. package/dist/api/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +3 -0
  32. package/dist/api/resources/credits/client/requests/index.d.ts +2 -0
  33. package/dist/api/resources/credits/types/GetCreditBalanceTimeSeriesParams.d.ts +9 -0
  34. package/dist/api/resources/credits/types/GetCreditBalanceTimeSeriesResponse.d.ts +6 -0
  35. package/dist/api/resources/credits/types/GetCreditSpendPolicyUsageParams.d.ts +8 -0
  36. package/dist/api/resources/credits/types/GetCreditSpendPolicyUsageResponse.d.ts +6 -0
  37. package/dist/api/resources/credits/types/index.d.ts +4 -0
  38. package/dist/api/resources/entitlements/client/Client.d.ts +69 -0
  39. package/dist/api/resources/entitlements/client/requests/CountCompanyUserUsageRequest.d.ts +29 -0
  40. package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +3 -1
  41. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -0
  42. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +3 -1
  43. package/dist/api/resources/entitlements/client/requests/GetCompanyUserUsageMetricsRequest.d.ts +16 -0
  44. package/dist/api/resources/entitlements/client/requests/ListCompanyUserUsageRequest.d.ts +29 -0
  45. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -0
  46. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  47. package/dist/api/resources/entitlements/client/requests/index.d.ts +3 -0
  48. package/dist/api/resources/entitlements/types/CountCompanyUserUsageParams.d.ts +20 -0
  49. package/dist/api/resources/entitlements/types/CountCompanyUserUsageResponse.d.ts +6 -0
  50. package/dist/api/resources/entitlements/types/GetCompanyUserUsageMetricsParams.d.ts +11 -0
  51. package/dist/api/resources/entitlements/types/GetCompanyUserUsageMetricsResponse.d.ts +6 -0
  52. package/dist/api/resources/entitlements/types/ListCompanyUserUsageParams.d.ts +20 -0
  53. package/dist/api/resources/entitlements/types/ListCompanyUserUsageResponse.d.ts +6 -0
  54. package/dist/api/resources/entitlements/types/index.d.ts +6 -0
  55. package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +2 -0
  56. package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  57. package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  58. package/dist/api/resources/plangroups/client/Client.d.ts +2 -0
  59. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  60. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  61. package/dist/api/resources/planmigrations/client/Client.d.ts +2 -0
  62. package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +2 -0
  63. package/dist/api/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +3 -0
  64. package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +2 -0
  65. package/dist/api/resources/planmigrations/types/CountMigrationsParams.d.ts +1 -0
  66. package/dist/api/resources/planmigrations/types/ListMigrationsParams.d.ts +1 -0
  67. package/dist/api/resources/plans/client/Client.d.ts +20 -1
  68. package/dist/api/resources/plans/client/requests/GetPlanVersionDiffRequest.d.ts +10 -0
  69. package/dist/api/resources/plans/client/requests/ListCustomPlanBillingsRequest.d.ts +2 -2
  70. package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +10 -0
  71. package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +2 -0
  72. package/dist/api/resources/plans/client/requests/index.d.ts +1 -0
  73. package/dist/api/resources/plans/types/GetPlanVersionDiffParams.d.ts +7 -0
  74. package/dist/api/resources/plans/types/GetPlanVersionDiffResponse.d.ts +6 -0
  75. package/dist/api/resources/plans/types/ListCustomPlanBillingsParams.d.ts +1 -1
  76. package/dist/api/resources/plans/types/index.d.ts +2 -0
  77. package/dist/api/types/BillingCouponResponseData.d.ts +1 -1
  78. package/dist/api/types/BillingCreditGrantResponseData.d.ts +2 -2
  79. package/dist/api/types/BillingCustomerSubscription.d.ts +2 -1
  80. package/dist/api/types/BillingPriceResponseData.d.ts +1 -1
  81. package/dist/api/types/BillingPriceView.d.ts +1 -1
  82. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +1 -1
  83. package/dist/api/types/BillingProductPriceResponseData.d.ts +1 -1
  84. package/dist/api/types/BillingProductPricing.d.ts +1 -1
  85. package/dist/api/types/BillingSettingsResponseData.d.ts +4 -0
  86. package/dist/api/types/BillingSubscriptionDiscountView.d.ts +2 -1
  87. package/dist/api/types/BillingSubscriptionResponseData.d.ts +1 -1
  88. package/dist/api/types/BillingSubscriptionView.d.ts +1 -1
  89. package/dist/api/types/CaptureRawEvent.d.ts +2 -0
  90. package/dist/api/types/CatalogConfigOrderedPlan.d.ts +1 -0
  91. package/dist/api/types/CatalogConfigOrderedPlanResponseData.d.ts +1 -0
  92. package/dist/api/types/CatalogConfigPlanCredit.d.ts +4 -0
  93. package/dist/api/types/CatalogConfigPlanCreditResponseData.d.ts +4 -0
  94. package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -1
  95. package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -1
  96. package/dist/api/types/CheckFlagsResponseData.d.ts +2 -0
  97. package/dist/api/types/CheckoutProblemCode.d.ts +47 -0
  98. package/dist/api/types/CheckoutProblemResponseData.d.ts +19 -0
  99. package/dist/api/types/CheckoutProblemSource.d.ts +6 -0
  100. package/dist/api/types/CheckoutSubscription.d.ts +1 -1
  101. package/dist/api/types/CompanyBillingEntitySubscriptionResponseData.d.ts +1 -1
  102. package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
  103. package/dist/api/types/CompanyOverrideResponseData.d.ts +2 -0
  104. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +2 -0
  105. package/dist/api/types/CompanySubscriptionResponseData.d.ts +1 -1
  106. package/dist/api/types/CompanyUserUsageMetricsResponseData.d.ts +11 -0
  107. package/dist/api/types/CompanyUserUsageResponseData.d.ts +15 -0
  108. package/dist/api/types/CompanyUserUsageRowResponseData.d.ts +13 -0
  109. package/dist/api/types/ComponentDisplaySettings.d.ts +1 -0
  110. package/dist/api/types/ComponentSettingsResponseData.d.ts +1 -0
  111. package/dist/api/types/Condition.d.ts +1 -0
  112. package/dist/api/types/ConditionResponseData.d.ts +1 -0
  113. package/dist/api/types/ConditionView.d.ts +1 -0
  114. package/dist/api/types/CouponRequestBody.d.ts +2 -1
  115. package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +3 -1
  116. package/dist/api/types/CreateEntitlementReqCommon.d.ts +2 -0
  117. package/dist/api/types/CreditBalanceEventResponseData.d.ts +10 -0
  118. package/dist/api/types/CreditBalanceFeatureConsumptionResponseData.d.ts +5 -0
  119. package/dist/api/types/CreditBalancePointResponseData.d.ts +9 -0
  120. package/dist/api/types/CreditBalanceTimeSeriesResponseData.d.ts +8 -0
  121. package/dist/api/types/CreditBundleCurrencyPrice.d.ts +1 -1
  122. package/dist/api/types/CreditBundleCurrencyPriceRequestBody.d.ts +2 -1
  123. package/dist/api/types/CreditBundleCurrencyPriceResponseData.d.ts +1 -1
  124. package/dist/api/types/CreditBurnBreakdownLine.d.ts +6 -0
  125. package/dist/api/types/CreditCompanyGrantView.d.ts +2 -2
  126. package/dist/api/types/CreditCurrencyPrice.d.ts +1 -1
  127. package/dist/api/types/CreditCurrencyPriceRequestBody.d.ts +2 -1
  128. package/dist/api/types/CreditCurrencyPriceResponseData.d.ts +1 -1
  129. package/dist/api/types/CreditEventLedgerResponseData.d.ts +6 -1
  130. package/dist/api/types/CreditEventType.d.ts +3 -0
  131. package/dist/api/types/CreditLedgerEntryKind.d.ts +10 -0
  132. package/dist/api/types/CreditSpendPolicy.d.ts +21 -0
  133. package/dist/api/types/CreditSpendPolicyResponseData.d.ts +9 -0
  134. package/dist/api/types/CreditSpendWindow.d.ts +6 -0
  135. package/dist/api/types/CreditSpendWindowUnit.d.ts +6 -0
  136. package/dist/api/types/CreditUsageReason.d.ts +1 -0
  137. package/dist/api/types/CreditsInPlan.d.ts +4 -0
  138. package/dist/api/types/Currency.d.ts +137 -0
  139. package/dist/api/types/CurrencyPriceRequestBody.d.ts +1 -1
  140. package/dist/api/types/CustomPlanBillingResponseData.d.ts +9 -1
  141. package/dist/api/types/EntitlementCurrencyPricesResponseData.d.ts +1 -1
  142. package/dist/api/types/EnvironmentDetailResponseData.d.ts +1 -0
  143. package/dist/api/types/EnvironmentResponseData.d.ts +1 -0
  144. package/dist/api/types/EstimatedPlanTotal.d.ts +6 -0
  145. package/dist/api/types/FeatureDetailResponseData.d.ts +2 -0
  146. package/dist/api/types/FeatureEntitlement.d.ts +2 -0
  147. package/dist/api/types/FeatureEventSource.d.ts +5 -0
  148. package/dist/api/types/FeatureInPlanResponseData.d.ts +2 -0
  149. package/dist/api/types/FeatureResponseData.d.ts +2 -0
  150. package/dist/api/types/FeatureView.d.ts +1 -0
  151. package/dist/api/types/InvoiceRequestBody.d.ts +1 -1
  152. package/dist/api/types/InvoiceResponseData.d.ts +1 -1
  153. package/dist/api/types/ManagePlanPreviewResponseResponseData.d.ts +1 -0
  154. package/dist/api/types/ManagePlanRequest.d.ts +3 -1
  155. package/dist/api/types/ManagePlanResponseResponseData.d.ts +2 -0
  156. package/dist/api/types/MrrResponseData.d.ts +2 -1
  157. package/dist/api/types/OrderedPlansInGroup.d.ts +1 -0
  158. package/dist/api/types/PendingMigrationResponseData.d.ts +8 -0
  159. package/dist/api/types/PlanBillingSource.d.ts +1 -0
  160. package/dist/api/types/PlanChangeAction.d.ts +1 -0
  161. package/dist/api/types/PlanChangeAmendmentStatus.d.ts +8 -0
  162. package/dist/api/types/PlanChangeResponseData.d.ts +4 -0
  163. package/dist/api/types/PlanCreditOrder.d.ts +4 -0
  164. package/dist/api/types/PlanCreditVisibility.d.ts +4 -0
  165. package/dist/api/types/PlanCurrencyPriceRequestBody.d.ts +2 -1
  166. package/dist/api/types/PlanCurrencyPricesResponseData.d.ts +1 -1
  167. package/dist/api/types/PlanEntitlementResponseData.d.ts +2 -0
  168. package/dist/api/types/PlanGroupPlanEntitlementsOrder.d.ts +1 -0
  169. package/dist/api/types/PlanVersionBillingProductChangeResponseData.d.ts +5 -0
  170. package/dist/api/types/PlanVersionCreditGrantChangeResponseData.d.ts +9 -0
  171. package/dist/api/types/PlanVersionDiffChangeType.d.ts +6 -0
  172. package/dist/api/types/PlanVersionDiffPriceCadence.d.ts +7 -0
  173. package/dist/api/types/PlanVersionDiffResponseData.d.ts +19 -0
  174. package/dist/api/types/PlanVersionEntitlementChangeResponseData.d.ts +9 -0
  175. package/dist/api/types/PlanVersionFieldChangeResponseData.d.ts +5 -0
  176. package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
  177. package/dist/api/types/PlanVersionMigrationStrategy.d.ts +1 -0
  178. package/dist/api/types/PlanVersionPriceChangeResponseData.d.ts +7 -0
  179. package/dist/api/types/PlanViewPublicResponseData.d.ts +1 -0
  180. package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +1 -0
  181. package/dist/api/types/PreviewSubscriptionDiscountResponseData.d.ts +2 -1
  182. package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +1 -1
  183. package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
  184. package/dist/api/types/RulesengineCompany.d.ts +1 -0
  185. package/dist/api/types/RulesengineCondition.d.ts +1 -0
  186. package/dist/api/types/RulesengineCreditSpendPolicy.d.ts +21 -0
  187. package/dist/api/types/RulesengineCreditSpendPolicyScope.d.ts +6 -0
  188. package/dist/api/types/RulesengineCreditSpendWindow.d.ts +6 -0
  189. package/dist/api/types/RulesengineFeatureEntitlement.d.ts +2 -0
  190. package/dist/api/types/RulesengineUser.d.ts +1 -0
  191. package/dist/api/types/ScheduledDowngradeResponseData.d.ts +2 -1
  192. package/dist/api/types/UpcomingInvoiceResponseData.d.ts +1 -1
  193. package/dist/api/types/UpdateEntitlementReqCommon.d.ts +2 -0
  194. package/dist/api/types/UpsertBillingProductRequestBody.d.ts +1 -1
  195. package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -1
  196. package/dist/api/types/UserUsageMetric.d.ts +5 -0
  197. package/dist/api/types/index.d.ts +37 -0
  198. package/dist/core/fetcher/getResponseBody.d.ts +16 -0
  199. package/dist/core/fetcher/makeRequest.d.ts +6 -1
  200. package/dist/core/fetcher/requestWithRetries.d.ts +1 -1
  201. package/dist/core/fetcher/signals.d.ts +1 -0
  202. package/dist/datastream/datastream-client.d.ts +2 -2
  203. package/dist/index.js +9 -9
  204. package/dist/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.d.ts +1 -0
  205. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -1
  206. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +2 -1
  207. package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.d.ts +2 -1
  208. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -1
  209. package/dist/serialization/resources/billing/client/requests/UpdateBillingSettingsRequestBody.d.ts +10 -0
  210. package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -0
  211. package/dist/serialization/resources/billing/types/GetBillingSettingsResponse.d.ts +11 -0
  212. package/dist/serialization/resources/billing/types/ListBillingPricesParams.d.ts +2 -1
  213. package/dist/serialization/resources/billing/types/ListBillingProductPricesParams.d.ts +2 -1
  214. package/dist/serialization/resources/billing/types/UpdateBillingSettingsResponse.d.ts +11 -0
  215. package/dist/serialization/resources/billing/types/index.d.ts +2 -0
  216. package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +2 -1
  217. package/dist/serialization/resources/credits/client/requests/AcquireCreditLeaseRequestBody.d.ts +1 -0
  218. package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +2 -1
  219. package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +2 -1
  220. package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -1
  221. package/dist/serialization/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +4 -1
  222. package/dist/serialization/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +1 -0
  223. package/dist/serialization/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +3 -0
  224. package/dist/serialization/resources/credits/types/GetCreditBalanceTimeSeriesParams.d.ts +12 -0
  225. package/dist/serialization/resources/credits/types/GetCreditBalanceTimeSeriesResponse.d.ts +12 -0
  226. package/dist/serialization/resources/credits/types/GetCreditSpendPolicyUsageParams.d.ts +11 -0
  227. package/dist/serialization/resources/credits/types/GetCreditSpendPolicyUsageResponse.d.ts +12 -0
  228. package/dist/serialization/resources/credits/types/index.d.ts +4 -0
  229. package/dist/serialization/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +3 -1
  230. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
  231. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +3 -1
  232. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
  233. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  234. package/dist/serialization/resources/entitlements/types/CountCompanyUserUsageParams.d.ts +16 -0
  235. package/dist/serialization/resources/entitlements/types/CountCompanyUserUsageResponse.d.ts +12 -0
  236. package/dist/serialization/resources/entitlements/types/GetCompanyUserUsageMetricsParams.d.ts +11 -0
  237. package/dist/serialization/resources/entitlements/types/GetCompanyUserUsageMetricsResponse.d.ts +12 -0
  238. package/dist/serialization/resources/entitlements/types/ListCompanyUserUsageParams.d.ts +16 -0
  239. package/dist/serialization/resources/entitlements/types/ListCompanyUserUsageResponse.d.ts +12 -0
  240. package/dist/serialization/resources/entitlements/types/index.d.ts +6 -0
  241. package/dist/serialization/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +2 -0
  242. package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  243. package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  244. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
  245. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
  246. package/dist/serialization/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +1 -0
  247. package/dist/serialization/resources/planmigrations/types/CountMigrationsParams.d.ts +1 -0
  248. package/dist/serialization/resources/planmigrations/types/ListMigrationsParams.d.ts +1 -0
  249. package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +4 -0
  250. package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +1 -0
  251. package/dist/serialization/resources/plans/types/GetPlanVersionDiffParams.d.ts +9 -0
  252. package/dist/serialization/resources/plans/types/GetPlanVersionDiffResponse.d.ts +12 -0
  253. package/dist/serialization/resources/plans/types/index.d.ts +2 -0
  254. package/dist/serialization/types/BillingCouponResponseData.d.ts +2 -1
  255. package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +3 -2
  256. package/dist/serialization/types/BillingCustomerSubscription.d.ts +2 -1
  257. package/dist/serialization/types/BillingPriceResponseData.d.ts +2 -1
  258. package/dist/serialization/types/BillingPriceView.d.ts +2 -1
  259. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
  260. package/dist/serialization/types/BillingProductPriceResponseData.d.ts +2 -1
  261. package/dist/serialization/types/BillingProductPricing.d.ts +2 -1
  262. package/dist/serialization/types/BillingSettingsResponseData.d.ts +10 -0
  263. package/dist/serialization/types/BillingSubscriptionDiscountView.d.ts +2 -1
  264. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +2 -1
  265. package/dist/serialization/types/BillingSubscriptionView.d.ts +2 -1
  266. package/dist/serialization/types/CaptureRawEvent.d.ts +2 -0
  267. package/dist/serialization/types/CatalogConfigOrderedPlan.d.ts +2 -0
  268. package/dist/serialization/types/CatalogConfigOrderedPlanResponseData.d.ts +2 -0
  269. package/dist/serialization/types/CatalogConfigPlanCredit.d.ts +10 -0
  270. package/dist/serialization/types/CatalogConfigPlanCreditResponseData.d.ts +10 -0
  271. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -1
  272. package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +2 -1
  273. package/dist/serialization/types/CheckFlagsResponseData.d.ts +2 -0
  274. package/dist/serialization/types/CheckoutProblemCode.d.ts +7 -0
  275. package/dist/serialization/types/CheckoutProblemResponseData.d.ts +23 -0
  276. package/dist/serialization/types/CheckoutProblemSource.d.ts +7 -0
  277. package/dist/serialization/types/CheckoutSubscription.d.ts +2 -1
  278. package/dist/serialization/types/CompanyBillingEntitySubscriptionResponseData.d.ts +2 -1
  279. package/dist/serialization/types/CompanyDetailResponseData.d.ts +1 -0
  280. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
  281. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
  282. package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +2 -1
  283. package/dist/serialization/types/CompanyUserUsageMetricsResponseData.d.ts +13 -0
  284. package/dist/serialization/types/CompanyUserUsageResponseData.d.ts +15 -0
  285. package/dist/serialization/types/CompanyUserUsageRowResponseData.d.ts +14 -0
  286. package/dist/serialization/types/ComponentDisplaySettings.d.ts +1 -0
  287. package/dist/serialization/types/ComponentSettingsResponseData.d.ts +1 -0
  288. package/dist/serialization/types/Condition.d.ts +1 -0
  289. package/dist/serialization/types/ConditionResponseData.d.ts +1 -0
  290. package/dist/serialization/types/ConditionView.d.ts +1 -0
  291. package/dist/serialization/types/CouponRequestBody.d.ts +2 -1
  292. package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +3 -1
  293. package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +1 -0
  294. package/dist/serialization/types/CreditBalanceEventResponseData.d.ts +18 -0
  295. package/dist/serialization/types/CreditBalanceFeatureConsumptionResponseData.d.ts +11 -0
  296. package/dist/serialization/types/CreditBalancePointResponseData.d.ts +13 -0
  297. package/dist/serialization/types/CreditBalanceTimeSeriesResponseData.d.ts +14 -0
  298. package/dist/serialization/types/CreditBundleCurrencyPrice.d.ts +2 -1
  299. package/dist/serialization/types/CreditBundleCurrencyPriceRequestBody.d.ts +2 -1
  300. package/dist/serialization/types/CreditBundleCurrencyPriceResponseData.d.ts +2 -1
  301. package/dist/serialization/types/CreditBurnBreakdownLine.d.ts +12 -0
  302. package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -2
  303. package/dist/serialization/types/CreditCurrencyPrice.d.ts +2 -1
  304. package/dist/serialization/types/CreditCurrencyPriceRequestBody.d.ts +2 -1
  305. package/dist/serialization/types/CreditCurrencyPriceResponseData.d.ts +2 -1
  306. package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +8 -1
  307. package/dist/serialization/types/CreditEventType.d.ts +1 -1
  308. package/dist/serialization/types/CreditLedgerEntryKind.d.ts +7 -0
  309. package/dist/serialization/types/CreditSpendPolicy.d.ts +19 -0
  310. package/dist/serialization/types/CreditSpendPolicyResponseData.d.ts +7 -0
  311. package/dist/serialization/types/CreditSpendWindow.d.ts +10 -0
  312. package/dist/serialization/types/CreditSpendWindowUnit.d.ts +7 -0
  313. package/dist/serialization/types/CreditUsageReason.d.ts +1 -1
  314. package/dist/serialization/types/CreditsInPlan.d.ts +10 -0
  315. package/dist/serialization/types/Currency.d.ts +7 -0
  316. package/dist/serialization/types/CurrencyPriceRequestBody.d.ts +2 -1
  317. package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +5 -0
  318. package/dist/serialization/types/EntitlementCurrencyPricesResponseData.d.ts +2 -1
  319. package/dist/serialization/types/EnvironmentDetailResponseData.d.ts +1 -0
  320. package/dist/serialization/types/EnvironmentResponseData.d.ts +1 -0
  321. package/dist/serialization/types/EstimatedPlanTotal.d.ts +13 -0
  322. package/dist/serialization/types/FeatureDetailResponseData.d.ts +2 -0
  323. package/dist/serialization/types/FeatureEntitlement.d.ts +1 -0
  324. package/dist/serialization/types/FeatureEventSource.d.ts +7 -0
  325. package/dist/serialization/types/FeatureInPlanResponseData.d.ts +2 -0
  326. package/dist/serialization/types/FeatureResponseData.d.ts +2 -0
  327. package/dist/serialization/types/FeatureView.d.ts +2 -0
  328. package/dist/serialization/types/InvoiceRequestBody.d.ts +2 -1
  329. package/dist/serialization/types/InvoiceResponseData.d.ts +2 -1
  330. package/dist/serialization/types/ManagePlanPreviewResponseResponseData.d.ts +2 -0
  331. package/dist/serialization/types/ManagePlanRequest.d.ts +3 -1
  332. package/dist/serialization/types/ManagePlanResponseResponseData.d.ts +3 -0
  333. package/dist/serialization/types/MrrResponseData.d.ts +2 -1
  334. package/dist/serialization/types/OrderedPlansInGroup.d.ts +2 -0
  335. package/dist/serialization/types/PendingMigrationResponseData.d.ts +5 -0
  336. package/dist/serialization/types/PlanBillingSource.d.ts +1 -1
  337. package/dist/serialization/types/PlanChangeAction.d.ts +1 -1
  338. package/dist/serialization/types/PlanChangeAmendmentStatus.d.ts +7 -0
  339. package/dist/serialization/types/PlanChangeResponseData.d.ts +3 -0
  340. package/dist/serialization/types/PlanCreditOrder.d.ts +10 -0
  341. package/dist/serialization/types/PlanCreditVisibility.d.ts +10 -0
  342. package/dist/serialization/types/PlanCurrencyPriceRequestBody.d.ts +2 -1
  343. package/dist/serialization/types/PlanCurrencyPricesResponseData.d.ts +2 -1
  344. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
  345. package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.d.ts +2 -0
  346. package/dist/serialization/types/PlanVersionBillingProductChangeResponseData.d.ts +11 -0
  347. package/dist/serialization/types/PlanVersionCreditGrantChangeResponseData.d.ts +15 -0
  348. package/dist/serialization/types/PlanVersionDiffChangeType.d.ts +7 -0
  349. package/dist/serialization/types/PlanVersionDiffPriceCadence.d.ts +7 -0
  350. package/dist/serialization/types/PlanVersionDiffResponseData.d.ts +22 -0
  351. package/dist/serialization/types/PlanVersionEntitlementChangeResponseData.d.ts +15 -0
  352. package/dist/serialization/types/PlanVersionFieldChangeResponseData.d.ts +11 -0
  353. package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +1 -0
  354. package/dist/serialization/types/PlanVersionMigrationStrategy.d.ts +1 -1
  355. package/dist/serialization/types/PlanVersionPriceChangeResponseData.d.ts +15 -0
  356. package/dist/serialization/types/PlanViewPublicResponseData.d.ts +2 -0
  357. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +2 -0
  358. package/dist/serialization/types/PreviewSubscriptionDiscountResponseData.d.ts +2 -1
  359. package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -1
  360. package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
  361. package/dist/serialization/types/RulesengineCompany.d.ts +2 -0
  362. package/dist/serialization/types/RulesengineCondition.d.ts +1 -0
  363. package/dist/serialization/types/RulesengineCreditSpendPolicy.d.ts +19 -0
  364. package/dist/serialization/types/RulesengineCreditSpendPolicyScope.d.ts +7 -0
  365. package/dist/serialization/types/RulesengineCreditSpendWindow.d.ts +10 -0
  366. package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +1 -0
  367. package/dist/serialization/types/RulesengineUser.d.ts +2 -0
  368. package/dist/serialization/types/ScheduledDowngradeResponseData.d.ts +2 -1
  369. package/dist/serialization/types/UpcomingInvoiceResponseData.d.ts +2 -1
  370. package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +1 -0
  371. package/dist/serialization/types/UpsertBillingProductRequestBody.d.ts +2 -1
  372. package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +2 -1
  373. package/dist/serialization/types/UserUsageMetric.d.ts +7 -0
  374. package/dist/serialization/types/index.d.ts +37 -0
  375. package/dist/wasm/rulesengine.js +1 -1
  376. package/dist/wrapper.d.ts +2 -2
  377. package/package.json +1 -1
@@ -6,6 +6,7 @@ export declare namespace ComponentDisplaySettings {
6
6
  interface Raw {
7
7
  show_as_monthly_prices: boolean;
8
8
  show_credits: boolean;
9
+ show_estimated_total: boolean;
9
10
  show_feature_description: boolean;
10
11
  show_hard_limit: boolean;
11
12
  show_period_toggle: boolean;
@@ -6,6 +6,7 @@ export declare namespace ComponentSettingsResponseData {
6
6
  interface Raw {
7
7
  show_as_monthly_prices: boolean;
8
8
  show_credits: boolean;
9
+ show_estimated_total: boolean;
9
10
  show_feature_description: boolean;
10
11
  show_hard_limit: boolean;
11
12
  show_period_toggle: boolean;
@@ -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,9 +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";
12
+ import { CreditLedgerEntryKind } from "./CreditLedgerEntryKind";
11
13
  import { CreditTransferReason } from "./CreditTransferReason";
12
14
  import { CreditUsageReason } from "./CreditUsageReason";
15
+ import { Currency } from "./Currency";
13
16
  import { FeatureLedgerResponseData } from "./FeatureLedgerResponseData";
14
17
  export declare const CreditEventLedgerResponseData: core.serialization.ObjectSchema<serializers.CreditEventLedgerResponseData.Raw, Schematic.CreditEventLedgerResponseData>;
15
18
  export declare namespace CreditEventLedgerResponseData {
@@ -17,14 +20,17 @@ export declare namespace CreditEventLedgerResponseData {
17
20
  amount: number;
18
21
  auto_topup_log_id?: string | null;
19
22
  billing_credit_bundle_id?: string | null;
20
- billing_credit_id: string;
23
+ billing_credit_id?: string | null;
24
+ burn_breakdown?: CreditBurnBreakdownLine.Raw[] | null;
21
25
  company?: CompanyLedgerResponseData.Raw | null;
22
26
  company_id: string;
23
27
  credit?: BillingCreditLedgerResponseData.Raw | null;
24
28
  credit_name: string;
29
+ currency?: Currency.Raw | null;
25
30
  environment_id: string;
26
31
  event_at: string;
27
32
  event_id: string;
33
+ event_ids: string[];
28
34
  event_type: CreditEventType.Raw;
29
35
  expiry_type?: BillingCreditExpiryType.Raw | null;
30
36
  expiry_unit?: BillingCreditExpiryUnit.Raw | null;
@@ -38,6 +44,7 @@ export declare namespace CreditEventLedgerResponseData {
38
44
  grant_quantity_remaining?: number | null;
39
45
  grant_reason?: BillingCreditGrantReason.Raw | null;
40
46
  grant_valid_from?: string | null;
47
+ kind: CreditLedgerEntryKind.Raw;
41
48
  plan_id?: string | null;
42
49
  quantity_consumed?: number | null;
43
50
  quantity_remaining_at_zero_out?: number | null;
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const CreditEventType: core.serialization.Schema<serializers.CreditEventType.Raw, Schematic.CreditEventType>;
5
5
  export declare namespace CreditEventType {
6
- type Raw = "grant" | "transfer" | "usage" | "zero_out";
6
+ type Raw = "adjustment" | "charge" | "grant" | "settlement" | "transfer" | "usage" | "zero_out";
7
7
  }
@@ -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 CreditLedgerEntryKind: core.serialization.Schema<serializers.CreditLedgerEntryKind.Raw, Schematic.CreditLedgerEntryKind>;
5
+ export declare namespace CreditLedgerEntryKind {
6
+ type Raw = "adjustment" | "charge" | "drawdown" | "grant" | "settlement" | "transfer" | "zero_out";
7
+ }
@@ -0,0 +1,19 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { CreditSpendPolicyScope } from "./CreditSpendPolicyScope";
5
+ import { CreditSpendWindow } from "./CreditSpendWindow";
6
+ export declare const CreditSpendPolicy: core.serialization.ObjectSchema<serializers.CreditSpendPolicy.Raw, Schematic.CreditSpendPolicy>;
7
+ export declare namespace CreditSpendPolicy {
8
+ interface Raw {
9
+ consumed?: number | null;
10
+ credit_id: string;
11
+ id: string;
12
+ kind: string;
13
+ label?: string | null;
14
+ limit: number;
15
+ resets_at?: string | null;
16
+ scope: CreditSpendPolicyScope.Raw;
17
+ window?: CreditSpendWindow.Raw | null;
18
+ }
19
+ }
@@ -2,17 +2,24 @@ 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 { CreditSpendPolicyScope } from "./CreditSpendPolicyScope";
5
+ import { CreditSpendWindowUnit } from "./CreditSpendWindowUnit";
5
6
  export declare const CreditSpendPolicyResponseData: core.serialization.ObjectSchema<serializers.CreditSpendPolicyResponseData.Raw, Schematic.CreditSpendPolicyResponseData>;
6
7
  export declare namespace CreditSpendPolicyResponseData {
7
8
  interface Raw {
8
9
  billing_credit_id: string;
9
10
  company_id?: string | null;
11
+ consumed?: number | null;
10
12
  created_at: string;
13
+ headroom?: number | null;
11
14
  id: string;
12
15
  label?: string | null;
13
16
  max_per_draw?: number | null;
17
+ resets_at?: string | null;
14
18
  scope_type: CreditSpendPolicyScope.Raw;
15
19
  updated_at: string;
16
20
  user_id?: string | null;
21
+ window_amount?: number | null;
22
+ window_count: number;
23
+ window_unit?: CreditSpendWindowUnit.Raw | null;
17
24
  }
18
25
  }
@@ -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 CreditSpendWindow: core.serialization.ObjectSchema<serializers.CreditSpendWindow.Raw, Schematic.CreditSpendWindow>;
5
+ export declare namespace CreditSpendWindow {
6
+ interface Raw {
7
+ count: number;
8
+ unit: string;
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 CreditSpendWindowUnit: core.serialization.Schema<serializers.CreditSpendWindowUnit.Raw, Schematic.CreditSpendWindowUnit>;
5
+ export declare namespace CreditSpendWindowUnit {
6
+ type Raw = "hour" | "day" | "billing_period";
7
+ }
@@ -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;
@@ -1,6 +1,7 @@
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 { CheckoutProblemResponseData } from "./CheckoutProblemResponseData";
4
5
  import { CustomPlanActivationStrategy } from "./CustomPlanActivationStrategy";
5
6
  import { CustomPlanBillingStatus } from "./CustomPlanBillingStatus";
6
7
  import { PlanBillingSource } from "./PlanBillingSource";
@@ -9,14 +10,18 @@ export declare namespace CustomPlanBillingResponseData {
9
10
  interface Raw {
10
11
  activation_strategy: CustomPlanActivationStrategy.Raw;
11
12
  billing_cycle_anchor?: string | null;
13
+ billing_start_date?: string | null;
14
+ checkout_id?: string | null;
12
15
  company_id: string;
13
16
  created_at: string;
14
17
  days_until_due: number;
15
18
  external_invoice_id?: string | null;
16
19
  id: string;
20
+ migration_id?: string | null;
17
21
  paid_at?: string | null;
18
22
  plan_billing_source: PlanBillingSource.Raw;
19
23
  plan_id: string;
24
+ problems: CheckoutProblemResponseData.Raw[];
20
25
  prorate_first_period?: boolean | null;
21
26
  published_at?: string | null;
22
27
  send_invoice: boolean;
@@ -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 EntitlementCurrencyPricesResponseData: core.serialization.ObjectSchema<serializers.EntitlementCurrencyPricesResponseData.Raw, Schematic.EntitlementCurrencyPricesResponseData>;
6
7
  export declare namespace EntitlementCurrencyPricesResponseData {
7
8
  interface Raw {
8
- currency: string;
9
+ currency: Currency.Raw;
9
10
  monthly_price?: BillingPriceView.Raw | null;
10
11
  quarterly_price?: BillingPriceView.Raw | null;
11
12
  yearly_price?: BillingPriceView.Raw | null;
@@ -11,6 +11,7 @@ export declare namespace EnvironmentDetailResponseData {
11
11
  environment_type: EnvironmentType.Raw;
12
12
  id: string;
13
13
  name: string;
14
+ require_context_signature: boolean;
14
15
  updated_at: string;
15
16
  }
16
17
  }
@@ -9,6 +9,7 @@ export declare namespace EnvironmentResponseData {
9
9
  environment_type: EnvironmentType.Raw;
10
10
  id: string;
11
11
  name: string;
12
+ require_context_signature: boolean;
12
13
  updated_at: string;
13
14
  }
14
15
  }
@@ -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 { Currency } from "./Currency";
5
+ import { PlanPriceCadence } from "./PlanPriceCadence";
6
+ export declare const EstimatedPlanTotal: core.serialization.ObjectSchema<serializers.EstimatedPlanTotal.Raw, Schematic.EstimatedPlanTotal>;
7
+ export declare namespace EstimatedPlanTotal {
8
+ interface Raw {
9
+ amount: number;
10
+ currency: Currency.Raw;
11
+ period: PlanPriceCadence.Raw;
12
+ }
13
+ }
@@ -6,6 +6,7 @@ import { BillingLinkedResourceResponseData } from "./BillingLinkedResourceRespon
6
6
  import { BillingProductResponseData } from "./BillingProductResponseData";
7
7
  import { EntityTraitDefinitionResponseData } from "./EntityTraitDefinitionResponseData";
8
8
  import { EventSummaryResponseData } from "./EventSummaryResponseData";
9
+ import { FeatureEventSource } from "./FeatureEventSource";
9
10
  import { FeatureLifecyclePhase } from "./FeatureLifecyclePhase";
10
11
  import { FeatureType } from "./FeatureType";
11
12
  import { FlagDetailResponseData } from "./FlagDetailResponseData";
@@ -17,6 +18,7 @@ export declare namespace FeatureDetailResponseData {
17
18
  billing_product?: BillingProductResponseData.Raw | null;
18
19
  created_at: string;
19
20
  description: string;
21
+ event_source: FeatureEventSource.Raw;
20
22
  event_subtype?: string | null;
21
23
  event_summary?: EventSummaryResponseData.Raw | null;
22
24
  feature_type: FeatureType.Raw;
@@ -23,6 +23,7 @@ export declare namespace FeatureEntitlement {
23
23
  metric_period?: MetricPeriod.Raw | null;
24
24
  metric_reset_at?: string | null;
25
25
  month_reset?: MetricPeriodMonthReset.Raw | null;
26
+ quantity_rates?: Record<string, number> | null;
26
27
  soft_limit?: number | null;
27
28
  usage?: number | null;
28
29
  value_type: EntitlementValueType.Raw;
@@ -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 FeatureEventSource: core.serialization.Schema<serializers.FeatureEventSource.Raw, Schematic.FeatureEventSource>;
5
+ export declare namespace FeatureEventSource {
6
+ type Raw = "inference" | "track";
7
+ }
@@ -4,6 +4,7 @@ import type * as serializers from "../index";
4
4
  import { BillingLinkedResourceResponseData } from "./BillingLinkedResourceResponseData";
5
5
  import { EntityTraitDefinitionResponseData } from "./EntityTraitDefinitionResponseData";
6
6
  import { EventSummaryResponseData } from "./EventSummaryResponseData";
7
+ import { FeatureEventSource } from "./FeatureEventSource";
7
8
  import { FeatureLifecyclePhase } from "./FeatureLifecyclePhase";
8
9
  import { FeatureType } from "./FeatureType";
9
10
  import { FlagInPlanResponseData } from "./FlagInPlanResponseData";
@@ -14,6 +15,7 @@ export declare namespace FeatureInPlanResponseData {
14
15
  billing_linked_resource?: BillingLinkedResourceResponseData.Raw | null;
15
16
  created_at: string;
16
17
  description: string;
18
+ event_source: FeatureEventSource.Raw;
17
19
  event_subtype?: string | null;
18
20
  event_summary?: EventSummaryResponseData.Raw | null;
19
21
  feature_type: FeatureType.Raw;
@@ -1,6 +1,7 @@
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 { FeatureEventSource } from "./FeatureEventSource";
4
5
  import { FeatureLifecyclePhase } from "./FeatureLifecyclePhase";
5
6
  import { FeatureType } from "./FeatureType";
6
7
  export declare const FeatureResponseData: core.serialization.ObjectSchema<serializers.FeatureResponseData.Raw, Schematic.FeatureResponseData>;
@@ -8,6 +9,7 @@ export declare namespace FeatureResponseData {
8
9
  interface Raw {
9
10
  created_at: string;
10
11
  description: string;
12
+ event_source: FeatureEventSource.Raw;
11
13
  event_subtype?: string | null;
12
14
  feature_type: FeatureType.Raw;
13
15
  icon: string;
@@ -5,6 +5,7 @@ import { BillingLinkedResourceResponseData } from "./BillingLinkedResourceRespon
5
5
  import { BillingProductRecordResponseData } from "./BillingProductRecordResponseData";
6
6
  import { EntityTraitDefinitionResponseData } from "./EntityTraitDefinitionResponseData";
7
7
  import { EventSummaryResponseData } from "./EventSummaryResponseData";
8
+ import { FeatureEventSource } from "./FeatureEventSource";
8
9
  import { FeatureLifecyclePhase } from "./FeatureLifecyclePhase";
9
10
  import { FeatureType } from "./FeatureType";
10
11
  import { FlagView } from "./FlagView";
@@ -17,6 +18,7 @@ export declare namespace FeatureView {
17
18
  billing_product?: BillingProductRecordResponseData.Raw | null;
18
19
  created_at: string;
19
20
  description: string;
21
+ event_source: FeatureEventSource.Raw;
20
22
  event_subtype?: string | null;
21
23
  event_summary?: EventSummaryResponseData.Raw | null;
22
24
  feature_type: FeatureType.Raw;