@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
@@ -7,5 +7,6 @@ export declare namespace UpdateEnvironmentRequestBody {
7
7
  interface Raw {
8
8
  environment_type?: EnvironmentType.Raw | null;
9
9
  name?: string | null;
10
+ require_context_signature?: boolean | null;
10
11
  }
11
12
  }
@@ -6,11 +6,12 @@ import { BillingPriceUsageType } from "../../../../types/BillingPriceUsageType";
6
6
  import { BillingProviderType } from "../../../../types/BillingProviderType";
7
7
  import { BillingTiersMode } from "../../../../types/BillingTiersMode";
8
8
  import { CreateBillingPriceTierRequestBody } from "../../../../types/CreateBillingPriceTierRequestBody";
9
+ import { Currency } from "../../../../types/Currency";
9
10
  export declare const CreateBillingPriceRequestBody: core.serialization.Schema<serializers.CreateBillingPriceRequestBody.Raw, Schematic.CreateBillingPriceRequestBody>;
10
11
  export declare namespace CreateBillingPriceRequestBody {
11
12
  interface Raw {
12
13
  billing_scheme: BillingPriceScheme.Raw;
13
- currency: string;
14
+ currency: Currency.Raw;
14
15
  external_account_id: string;
15
16
  interval: string;
16
17
  interval_count?: number | null;
@@ -5,6 +5,7 @@ import { BillingProductPricing } from "../../../../types/BillingProductPricing";
5
5
  import { BillingProviderType } from "../../../../types/BillingProviderType";
6
6
  import { BillingSubscriptionDiscount } from "../../../../types/BillingSubscriptionDiscount";
7
7
  import { BillingSubscriptionTrialEndSetting } from "../../../../types/BillingSubscriptionTrialEndSetting";
8
+ import { Currency } from "../../../../types/Currency";
8
9
  export declare const CreateBillingSubscriptionRequestBody: core.serialization.Schema<serializers.CreateBillingSubscriptionRequestBody.Raw, Schematic.CreateBillingSubscriptionRequestBody>;
9
10
  export declare namespace CreateBillingSubscriptionRequestBody {
10
11
  interface Raw {
@@ -12,7 +13,7 @@ export declare namespace CreateBillingSubscriptionRequestBody {
12
13
  cancel_at?: number | null;
13
14
  cancel_at_period_end: boolean;
14
15
  company_id?: string | null;
15
- currency: string;
16
+ currency: Currency.Raw;
16
17
  customer_external_id: string;
17
18
  default_payment_method_external_id?: string | null;
18
19
  default_payment_method_id?: string | 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 "../../../../types/Currency";
4
5
  export declare const CreateCouponRequestBody: core.serialization.Schema<serializers.CreateCouponRequestBody.Raw, Schematic.CreateCouponRequestBody>;
5
6
  export declare namespace CreateCouponRequestBody {
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
  external_id: string;
@@ -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 { Currency } from "../../../../types/Currency";
4
5
  import { InvoiceStatus } from "../../../../types/InvoiceStatus";
5
6
  export declare const CreateInvoiceRequestBody: core.serialization.Schema<serializers.CreateInvoiceRequestBody.Raw, Schematic.CreateInvoiceRequestBody>;
6
7
  export declare namespace CreateInvoiceRequestBody {
@@ -9,7 +10,7 @@ export declare namespace CreateInvoiceRequestBody {
9
10
  amount_paid: number;
10
11
  amount_remaining: number;
11
12
  collection_method: string;
12
- currency: string;
13
+ currency: Currency.Raw;
13
14
  customer_external_id: string;
14
15
  due_date?: string | null;
15
16
  ending_balance?: number | null;
@@ -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
+ import { BillingProviderType } from "../../../../types/BillingProviderType";
5
+ export declare const UpdateBillingSettingsRequestBody: core.serialization.Schema<serializers.UpdateBillingSettingsRequestBody.Raw, Schematic.UpdateBillingSettingsRequestBody>;
6
+ export declare namespace UpdateBillingSettingsRequestBody {
7
+ interface Raw {
8
+ default_provider_type?: BillingProviderType.Raw | null;
9
+ }
10
+ }
@@ -6,4 +6,5 @@ export { CreateCouponRequestBody } from "./CreateCouponRequestBody";
6
6
  export { CreateInvoiceRequestBody } from "./CreateInvoiceRequestBody";
7
7
  export { CreateMeterRequestBody } from "./CreateMeterRequestBody";
8
8
  export { CreatePaymentMethodRequestBody } from "./CreatePaymentMethodRequestBody";
9
+ export { UpdateBillingSettingsRequestBody } from "./UpdateBillingSettingsRequestBody";
9
10
  export { UpdateCompanyBillingProfileRequestBody } from "./UpdateCompanyBillingProfileRequestBody";
@@ -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
+ import { BillingSettingsResponseData } from "../../../types/BillingSettingsResponseData";
5
+ export declare const GetBillingSettingsResponse: core.serialization.ObjectSchema<serializers.GetBillingSettingsResponse.Raw, Schematic.GetBillingSettingsResponse>;
6
+ export declare namespace GetBillingSettingsResponse {
7
+ interface Raw {
8
+ data: BillingSettingsResponseData.Raw;
9
+ params: Record<string, unknown>;
10
+ }
11
+ }
@@ -4,10 +4,11 @@ import type * as serializers from "../../../index";
4
4
  import { BillingPriceUsageType } from "../../../types/BillingPriceUsageType";
5
5
  import { BillingProviderType } from "../../../types/BillingProviderType";
6
6
  import { BillingTiersMode } from "../../../types/BillingTiersMode";
7
+ import { Currency } from "../../../types/Currency";
7
8
  export declare const ListBillingPricesParams: core.serialization.ObjectSchema<serializers.ListBillingPricesParams.Raw, Schematic.ListBillingPricesParams>;
8
9
  export declare namespace ListBillingPricesParams {
9
10
  interface Raw {
10
- currency?: string | null;
11
+ currency?: Currency.Raw | null;
11
12
  for_initial_plan?: boolean | null;
12
13
  for_trial_expiry_plan?: boolean | null;
13
14
  ids?: string[] | null;
@@ -4,10 +4,11 @@ import type * as serializers from "../../../index";
4
4
  import { BillingPriceUsageType } from "../../../types/BillingPriceUsageType";
5
5
  import { BillingProviderType } from "../../../types/BillingProviderType";
6
6
  import { BillingTiersMode } from "../../../types/BillingTiersMode";
7
+ import { Currency } from "../../../types/Currency";
7
8
  export declare const ListBillingProductPricesParams: core.serialization.ObjectSchema<serializers.ListBillingProductPricesParams.Raw, Schematic.ListBillingProductPricesParams>;
8
9
  export declare namespace ListBillingProductPricesParams {
9
10
  interface Raw {
10
- currency?: string | null;
11
+ currency?: Currency.Raw | null;
11
12
  for_initial_plan?: boolean | null;
12
13
  for_trial_expiry_plan?: boolean | null;
13
14
  ids?: string[] | null;
@@ -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
+ import { BillingSettingsResponseData } from "../../../types/BillingSettingsResponseData";
5
+ export declare const UpdateBillingSettingsResponse: core.serialization.ObjectSchema<serializers.UpdateBillingSettingsResponse.Raw, Schematic.UpdateBillingSettingsResponse>;
6
+ export declare namespace UpdateBillingSettingsResponse {
7
+ interface Raw {
8
+ data: BillingSettingsResponseData.Raw;
9
+ params: Record<string, unknown>;
10
+ }
11
+ }
@@ -8,6 +8,7 @@ export * from "./DeleteBillingInvoiceResponse";
8
8
  export * from "./DeleteBillingProductResponse";
9
9
  export * from "./DeletePaymentMethodByExternalIdResponse";
10
10
  export * from "./DeleteProductPriceResponse";
11
+ export * from "./GetBillingSettingsResponse";
11
12
  export * from "./ListBillingPricesParams";
12
13
  export * from "./ListBillingPricesResponse";
13
14
  export * from "./ListBillingProductPricesParams";
@@ -26,6 +27,7 @@ export * from "./ListMetersParams";
26
27
  export * from "./ListMetersResponse";
27
28
  export * from "./ListPaymentMethodsParams";
28
29
  export * from "./ListPaymentMethodsResponse";
30
+ export * from "./UpdateBillingSettingsResponse";
29
31
  export * from "./UpdateCompanyBillingProfileResponse";
30
32
  export * from "./UpsertBillingCouponResponse";
31
33
  export * from "./UpsertBillingCustomerResponse";
@@ -1,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 "../../../../types/Currency";
4
5
  export declare const CheckoutDataRequestBody: core.serialization.Schema<serializers.CheckoutDataRequestBody.Raw, Schematic.CheckoutDataRequestBody>;
5
6
  export declare namespace CheckoutDataRequestBody {
6
7
  interface Raw {
7
8
  company_id: string;
8
- currency?: string | null;
9
+ currency?: Currency.Raw | null;
9
10
  selected_plan_id?: string | null;
10
11
  }
11
12
  }
@@ -8,5 +8,6 @@ export declare namespace AcquireCreditLeaseRequestBody {
8
8
  credit_type_id: string;
9
9
  expires_at?: string | null;
10
10
  requested_amount: number;
11
+ user_id?: string | null;
11
12
  }
12
13
  }
@@ -5,11 +5,12 @@ import { BillingCreditBurnStrategy } from "../../../../types/BillingCreditBurnSt
5
5
  import { BillingCreditExpiryUnit } from "../../../../types/BillingCreditExpiryUnit";
6
6
  import { BillingCreditRolloverPolicy } from "../../../../types/BillingCreditRolloverPolicy";
7
7
  import { CreditCurrencyPriceRequestBody } from "../../../../types/CreditCurrencyPriceRequestBody";
8
+ import { Currency } from "../../../../types/Currency";
8
9
  export declare const CreateBillingCreditRequestBody: core.serialization.Schema<serializers.CreateBillingCreditRequestBody.Raw, Schematic.CreateBillingCreditRequestBody>;
9
10
  export declare namespace CreateBillingCreditRequestBody {
10
11
  interface Raw {
11
12
  burn_strategy?: BillingCreditBurnStrategy.Raw | null;
12
- currency: string;
13
+ currency: Currency.Raw;
13
14
  currency_prices?: CreditCurrencyPriceRequestBody.Raw[] | null;
14
15
  default_expiry_unit?: BillingCreditExpiryUnit.Raw | null;
15
16
  default_expiry_unit_count?: number | null;
@@ -5,6 +5,7 @@ import { BillingCreditExpiryType } from "../../../../types/BillingCreditExpiryTy
5
5
  import { BillingCreditExpiryUnit } from "../../../../types/BillingCreditExpiryUnit";
6
6
  import { BillingCreditGrantReason } from "../../../../types/BillingCreditGrantReason";
7
7
  import { BillingPlanCreditGrantResetStart } from "../../../../types/BillingPlanCreditGrantResetStart";
8
+ import { Currency } from "../../../../types/Currency";
8
9
  export declare const CreateCompanyCreditGrant: core.serialization.Schema<serializers.CreateCompanyCreditGrant.Raw, Schematic.CreateCompanyCreditGrant>;
9
10
  export declare namespace CreateCompanyCreditGrant {
10
11
  interface Raw {
@@ -12,7 +13,7 @@ export declare namespace CreateCompanyCreditGrant {
12
13
  company_id: string;
13
14
  credit_bundle_id?: string | null;
14
15
  credit_id: string;
15
- currency?: string | null;
16
+ currency?: Currency.Raw | null;
16
17
  expires_at?: string | null;
17
18
  expiry_type?: BillingCreditExpiryType.Raw | null;
18
19
  expiry_unit?: BillingCreditExpiryUnit.Raw | null;
@@ -6,6 +6,7 @@ import { BillingCreditBundleType } from "../../../../types/BillingCreditBundleTy
6
6
  import { BillingCreditExpiryType } from "../../../../types/BillingCreditExpiryType";
7
7
  import { BillingCreditExpiryUnit } from "../../../../types/BillingCreditExpiryUnit";
8
8
  import { CreditBundleCurrencyPriceRequestBody } from "../../../../types/CreditBundleCurrencyPriceRequestBody";
9
+ import { Currency } from "../../../../types/Currency";
9
10
  export declare const CreateCreditBundleRequestBody: core.serialization.Schema<serializers.CreateCreditBundleRequestBody.Raw, Schematic.CreateCreditBundleRequestBody>;
10
11
  export declare namespace CreateCreditBundleRequestBody {
11
12
  interface Raw {
@@ -13,7 +14,7 @@ export declare namespace CreateCreditBundleRequestBody {
13
14
  bundle_type?: BillingCreditBundleType.Raw | null;
14
15
  compatible_plan_ids?: string[] | null;
15
16
  credit_id: string;
16
- currency: string;
17
+ currency: Currency.Raw;
17
18
  currency_prices?: CreditBundleCurrencyPriceRequestBody.Raw[] | null;
18
19
  expiry_type?: BillingCreditExpiryType.Raw | null;
19
20
  expiry_unit?: BillingCreditExpiryUnit.Raw | null;
@@ -1,13 +1,16 @@
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 { CreditSpendWindowUnit } from "../../../../types/CreditSpendWindowUnit";
4
5
  export declare const CreateCreditSpendPolicyRequestBody: core.serialization.Schema<serializers.CreateCreditSpendPolicyRequestBody.Raw, Schematic.CreateCreditSpendPolicyRequestBody>;
5
6
  export declare namespace CreateCreditSpendPolicyRequestBody {
6
7
  interface Raw {
7
8
  billing_credit_id: string;
8
9
  company_id?: string | null;
9
10
  label?: string | null;
10
- max_per_draw: number;
11
+ max_per_draw?: number | null;
11
12
  user_id?: string | null;
13
+ window_amount?: number | null;
14
+ window_unit?: CreditSpendWindowUnit.Raw | null;
12
15
  }
13
16
  }
@@ -7,5 +7,6 @@ export declare namespace ExtendCreditLeaseRequestBody {
7
7
  additional_amount: number;
8
8
  expires_at?: string | null;
9
9
  idempotency_key?: string | null;
10
+ user_id?: string | null;
10
11
  }
11
12
  }
@@ -1,10 +1,13 @@
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 { CreditSpendWindowUnit } from "../../../../types/CreditSpendWindowUnit";
4
5
  export declare const UpdateCreditSpendPolicyRequestBody: core.serialization.Schema<serializers.UpdateCreditSpendPolicyRequestBody.Raw, Schematic.UpdateCreditSpendPolicyRequestBody>;
5
6
  export declare namespace UpdateCreditSpendPolicyRequestBody {
6
7
  interface Raw {
7
8
  label?: string | null;
8
9
  max_per_draw?: number | null;
10
+ window_amount?: number | null;
11
+ window_unit?: CreditSpendWindowUnit.Raw | null;
9
12
  }
10
13
  }
@@ -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 GetCreditBalanceTimeSeriesParams: core.serialization.ObjectSchema<serializers.GetCreditBalanceTimeSeriesParams.Raw, Schematic.GetCreditBalanceTimeSeriesParams>;
5
+ export declare namespace GetCreditBalanceTimeSeriesParams {
6
+ interface Raw {
7
+ billing_credit_id?: string | null;
8
+ company_id?: string | null;
9
+ end_time?: string | null;
10
+ start_time?: string | null;
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
+ import { CreditBalanceTimeSeriesResponseData } from "../../../types/CreditBalanceTimeSeriesResponseData";
5
+ import { GetCreditBalanceTimeSeriesParams } from "./GetCreditBalanceTimeSeriesParams";
6
+ export declare const GetCreditBalanceTimeSeriesResponse: core.serialization.ObjectSchema<serializers.GetCreditBalanceTimeSeriesResponse.Raw, Schematic.GetCreditBalanceTimeSeriesResponse>;
7
+ export declare namespace GetCreditBalanceTimeSeriesResponse {
8
+ interface Raw {
9
+ data: CreditBalanceTimeSeriesResponseData.Raw;
10
+ params: GetCreditBalanceTimeSeriesParams.Raw;
11
+ }
12
+ }
@@ -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 GetCreditSpendPolicyUsageParams: core.serialization.ObjectSchema<serializers.GetCreditSpendPolicyUsageParams.Raw, Schematic.GetCreditSpendPolicyUsageParams>;
5
+ export declare namespace GetCreditSpendPolicyUsageParams {
6
+ interface Raw {
7
+ billing_credit_id?: string | null;
8
+ company_id?: string | null;
9
+ user_ids?: string[] | null;
10
+ }
11
+ }
@@ -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
+ import { CreditSpendPolicyResponseData } from "../../../types/CreditSpendPolicyResponseData";
5
+ import { GetCreditSpendPolicyUsageParams } from "./GetCreditSpendPolicyUsageParams";
6
+ export declare const GetCreditSpendPolicyUsageResponse: core.serialization.ObjectSchema<serializers.GetCreditSpendPolicyUsageResponse.Raw, Schematic.GetCreditSpendPolicyUsageResponse>;
7
+ export declare namespace GetCreditSpendPolicyUsageResponse {
8
+ interface Raw {
9
+ data: CreditSpendPolicyResponseData.Raw[];
10
+ params: GetCreditSpendPolicyUsageParams.Raw;
11
+ }
12
+ }
@@ -22,8 +22,12 @@ export * from "./DeleteBillingPlanCreditGrantResponse";
22
22
  export * from "./DeleteCreditBundleResponse";
23
23
  export * from "./DeleteCreditSpendPolicyResponse";
24
24
  export * from "./ExtendCreditLeaseResponse";
25
+ export * from "./GetCreditBalanceTimeSeriesParams";
26
+ export * from "./GetCreditBalanceTimeSeriesResponse";
25
27
  export * from "./GetCreditBundleResponse";
26
28
  export * from "./GetCreditSpendPolicyResponse";
29
+ export * from "./GetCreditSpendPolicyUsageParams";
30
+ export * from "./GetCreditSpendPolicyUsageResponse";
27
31
  export * from "./GetSingleBillingCreditResponse";
28
32
  export * from "./GetSingleBillingPlanCreditGrantResponse";
29
33
  export * from "./GrantBillingCreditsToCompanyResponse";
@@ -6,6 +6,7 @@ import { BillingArrearsCadence } from "../../../../types/BillingArrearsCadence";
6
6
  import { BillingProviderType } from "../../../../types/BillingProviderType";
7
7
  import { BillingTiersMode } from "../../../../types/BillingTiersMode";
8
8
  import { CreatePriceTierRequestBody } from "../../../../types/CreatePriceTierRequestBody";
9
+ import { Currency } from "../../../../types/Currency";
9
10
  import { CurrencyPriceRequestBody } from "../../../../types/CurrencyPriceRequestBody";
10
11
  import { EntitlementPriceBehavior } from "../../../../types/EntitlementPriceBehavior";
11
12
  import { EntitlementValueType } from "../../../../types/EntitlementValueType";
@@ -19,7 +20,7 @@ export declare namespace CreateBillingLinkedPlanEntitlementRequestBody {
19
20
  billing_provider: BillingProviderType.Raw;
20
21
  billing_threshold?: number | null;
21
22
  credit_consumption_rate?: number | null;
22
- currency?: string | null;
23
+ currency?: Currency.Raw | null;
23
24
  currency_prices?: CurrencyPriceRequestBody.Raw[] | null;
24
25
  external_resource_id: string;
25
26
  feature_id: string;
@@ -36,6 +37,7 @@ export declare namespace CreateBillingLinkedPlanEntitlementRequestBody {
36
37
  plan_version_id?: string | null;
37
38
  price_behavior?: EntitlementPriceBehavior.Raw | null;
38
39
  price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
40
+ quantity_rates?: Record<string, number> | null;
39
41
  quarterly_metered_price_id?: string | null;
40
42
  quarterly_price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
41
43
  quarterly_unit_price?: number | null;
@@ -14,6 +14,7 @@ export declare namespace CreateCompanyOverrideRequestBody {
14
14
  metric_period?: MetricPeriod.Raw | null;
15
15
  metric_period_month_reset?: MetricPeriodMonthReset.Raw | null;
16
16
  note?: string | null;
17
+ quantity_rates?: Record<string, number> | null;
17
18
  value_bool?: boolean | null;
18
19
  value_credit_id?: string | null;
19
20
  value_numeric?: number | null;
@@ -5,6 +5,7 @@ import { BillingArrearsAnchor } from "../../../../types/BillingArrearsAnchor";
5
5
  import { BillingArrearsCadence } from "../../../../types/BillingArrearsCadence";
6
6
  import { BillingTiersMode } from "../../../../types/BillingTiersMode";
7
7
  import { CreatePriceTierRequestBody } from "../../../../types/CreatePriceTierRequestBody";
8
+ import { Currency } from "../../../../types/Currency";
8
9
  import { CurrencyPriceRequestBody } from "../../../../types/CurrencyPriceRequestBody";
9
10
  import { EntitlementPriceBehavior } from "../../../../types/EntitlementPriceBehavior";
10
11
  import { EntitlementValueType } from "../../../../types/EntitlementValueType";
@@ -17,7 +18,7 @@ export declare namespace CreatePlanEntitlementRequestBody {
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 CreatePlanEntitlementRequestBody {
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;
@@ -12,6 +12,7 @@ export declare namespace UpdateCompanyOverrideRequestBody {
12
12
  metric_period?: MetricPeriod.Raw | null;
13
13
  metric_period_month_reset?: MetricPeriodMonthReset.Raw | null;
14
14
  note?: string | null;
15
+ quantity_rates?: Record<string, number> | null;
15
16
  value_bool?: boolean | null;
16
17
  value_credit_id?: string | null;
17
18
  value_numeric?: number | null;
@@ -5,6 +5,7 @@ import { BillingArrearsAnchor } from "../../../../types/BillingArrearsAnchor";
5
5
  import { BillingArrearsCadence } from "../../../../types/BillingArrearsCadence";
6
6
  import { BillingTiersMode } from "../../../../types/BillingTiersMode";
7
7
  import { CreatePriceTierRequestBody } from "../../../../types/CreatePriceTierRequestBody";
8
+ import { Currency } from "../../../../types/Currency";
8
9
  import { CurrencyPriceRequestBody } from "../../../../types/CurrencyPriceRequestBody";
9
10
  import { EntitlementPriceBehavior } from "../../../../types/EntitlementPriceBehavior";
10
11
  import { EntitlementValueType } from "../../../../types/EntitlementValueType";
@@ -17,7 +18,7 @@ export declare namespace UpdatePlanEntitlementRequestBody {
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
  metric_period?: MetricPeriod.Raw | null;
23
24
  metric_period_month_reset?: MetricPeriodMonthReset.Raw | null;
@@ -30,6 +31,7 @@ export declare namespace UpdatePlanEntitlementRequestBody {
30
31
  overage_invoice_anchor?: BillingArrearsAnchor.Raw | null;
31
32
  price_behavior?: EntitlementPriceBehavior.Raw | null;
32
33
  price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
34
+ quantity_rates?: Record<string, number> | null;
33
35
  quarterly_metered_price_id?: string | null;
34
36
  quarterly_price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
35
37
  quarterly_unit_price?: number | null;
@@ -0,0 +1,16 @@
1
+ import type * as Schematic from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { UserUsageMetric } from "../../../types/UserUsageMetric";
5
+ export declare const CountCompanyUserUsageParams: core.serialization.ObjectSchema<serializers.CountCompanyUserUsageParams.Raw, Schematic.CountCompanyUserUsageParams>;
6
+ export declare namespace CountCompanyUserUsageParams {
7
+ interface Raw {
8
+ company_id?: string | null;
9
+ end_time?: string | null;
10
+ feature_id?: string | null;
11
+ limit?: number | null;
12
+ metric?: UserUsageMetric.Raw | null;
13
+ offset?: number | null;
14
+ start_time?: string | null;
15
+ }
16
+ }
@@ -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
+ import { CountResponse } from "../../../types/CountResponse";
5
+ import { CountCompanyUserUsageParams } from "./CountCompanyUserUsageParams";
6
+ export declare const CountCompanyUserUsageResponse: core.serialization.ObjectSchema<serializers.CountCompanyUserUsageResponse.Raw, Schematic.CountCompanyUserUsageResponse>;
7
+ export declare namespace CountCompanyUserUsageResponse {
8
+ interface Raw {
9
+ data: CountResponse.Raw;
10
+ params: CountCompanyUserUsageParams.Raw;
11
+ }
12
+ }
@@ -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 GetCompanyUserUsageMetricsParams: core.serialization.ObjectSchema<serializers.GetCompanyUserUsageMetricsParams.Raw, Schematic.GetCompanyUserUsageMetricsParams>;
5
+ export declare namespace GetCompanyUserUsageMetricsParams {
6
+ interface Raw {
7
+ company_id?: string | null;
8
+ end_time?: string | null;
9
+ start_time?: string | null;
10
+ }
11
+ }
@@ -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
+ import { CompanyUserUsageMetricsResponseData } from "../../../types/CompanyUserUsageMetricsResponseData";
5
+ import { GetCompanyUserUsageMetricsParams } from "./GetCompanyUserUsageMetricsParams";
6
+ export declare const GetCompanyUserUsageMetricsResponse: core.serialization.ObjectSchema<serializers.GetCompanyUserUsageMetricsResponse.Raw, Schematic.GetCompanyUserUsageMetricsResponse>;
7
+ export declare namespace GetCompanyUserUsageMetricsResponse {
8
+ interface Raw {
9
+ data: CompanyUserUsageMetricsResponseData.Raw;
10
+ params: GetCompanyUserUsageMetricsParams.Raw;
11
+ }
12
+ }
@@ -0,0 +1,16 @@
1
+ import type * as Schematic from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { UserUsageMetric } from "../../../types/UserUsageMetric";
5
+ export declare const ListCompanyUserUsageParams: core.serialization.ObjectSchema<serializers.ListCompanyUserUsageParams.Raw, Schematic.ListCompanyUserUsageParams>;
6
+ export declare namespace ListCompanyUserUsageParams {
7
+ interface Raw {
8
+ company_id?: string | null;
9
+ end_time?: string | null;
10
+ feature_id?: string | null;
11
+ limit?: number | null;
12
+ metric?: UserUsageMetric.Raw | null;
13
+ offset?: number | null;
14
+ start_time?: string | null;
15
+ }
16
+ }
@@ -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
+ import { CompanyUserUsageResponseData } from "../../../types/CompanyUserUsageResponseData";
5
+ import { ListCompanyUserUsageParams } from "./ListCompanyUserUsageParams";
6
+ export declare const ListCompanyUserUsageResponse: core.serialization.ObjectSchema<serializers.ListCompanyUserUsageResponse.Raw, Schematic.ListCompanyUserUsageResponse>;
7
+ export declare namespace ListCompanyUserUsageResponse {
8
+ interface Raw {
9
+ data: CompanyUserUsageResponseData.Raw;
10
+ params: ListCompanyUserUsageParams.Raw;
11
+ }
12
+ }
@@ -1,5 +1,7 @@
1
1
  export * from "./CountCompanyOverridesParams";
2
2
  export * from "./CountCompanyOverridesResponse";
3
+ export * from "./CountCompanyUserUsageParams";
4
+ export * from "./CountCompanyUserUsageResponse";
3
5
  export * from "./CountFeatureCompaniesParams";
4
6
  export * from "./CountFeatureCompaniesResponse";
5
7
  export * from "./CountFeatureUsageParams";
@@ -14,6 +16,8 @@ export * from "./DeleteCompanyOverrideResponse";
14
16
  export * from "./DeletePlanEntitlementResponse";
15
17
  export * from "./DuplicatePlanEntitlementsResponse";
16
18
  export * from "./GetCompanyOverrideResponse";
19
+ export * from "./GetCompanyUserUsageMetricsParams";
20
+ export * from "./GetCompanyUserUsageMetricsResponse";
17
21
  export * from "./GetFeatureUsageByCompanyParams";
18
22
  export * from "./GetFeatureUsageByCompanyResponse";
19
23
  export * from "./GetFeatureUsageTimeSeriesParams";
@@ -25,6 +29,8 @@ export * from "./GetUserUsageDetailParams";
25
29
  export * from "./GetUserUsageDetailResponse";
26
30
  export * from "./ListCompanyOverridesParams";
27
31
  export * from "./ListCompanyOverridesResponse";
32
+ export * from "./ListCompanyUserUsageParams";
33
+ export * from "./ListCompanyUserUsageResponse";
28
34
  export * from "./ListFeatureCompaniesParams";
29
35
  export * from "./ListFeatureCompaniesResponse";
30
36
  export * from "./ListFeatureUsageHistoryParams";
@@ -3,6 +3,7 @@ import * as core from "../../../../../core";
3
3
  import type * as serializers from "../../../../index";
4
4
  import { BillingProviderType } from "../../../../types/BillingProviderType";
5
5
  import { CreateOrUpdateFlagRequestBody } from "../../../../types/CreateOrUpdateFlagRequestBody";
6
+ import { FeatureEventSource } from "../../../../types/FeatureEventSource";
6
7
  import { FeatureLifecyclePhase } from "../../../../types/FeatureLifecyclePhase";
7
8
  import { FeatureType } from "../../../../types/FeatureType";
8
9
  export declare const CreateBillingLinkedFeatureRequestBody: core.serialization.Schema<serializers.CreateBillingLinkedFeatureRequestBody.Raw, Schematic.CreateBillingLinkedFeatureRequestBody>;
@@ -10,6 +11,7 @@ export declare namespace CreateBillingLinkedFeatureRequestBody {
10
11
  interface Raw {
11
12
  billing_provider: BillingProviderType.Raw;
12
13
  description: string;
14
+ event_source?: FeatureEventSource.Raw | null;
13
15
  event_subtype?: string | null;
14
16
  external_resource_id: string;
15
17
  feature_type: FeatureType.Raw;
@@ -2,12 +2,14 @@ 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 { CreateOrUpdateFlagRequestBody } from "../../../../types/CreateOrUpdateFlagRequestBody";
5
+ import { FeatureEventSource } from "../../../../types/FeatureEventSource";
5
6
  import { FeatureLifecyclePhase } from "../../../../types/FeatureLifecyclePhase";
6
7
  import { FeatureType } from "../../../../types/FeatureType";
7
8
  export declare const CreateFeatureRequestBody: core.serialization.Schema<serializers.CreateFeatureRequestBody.Raw, Schematic.CreateFeatureRequestBody>;
8
9
  export declare namespace CreateFeatureRequestBody {
9
10
  interface Raw {
10
11
  description: string;
12
+ event_source?: FeatureEventSource.Raw | null;
11
13
  event_subtype?: string | null;
12
14
  feature_type: FeatureType.Raw;
13
15
  flag?: CreateOrUpdateFlagRequestBody.Raw | null;
@@ -2,12 +2,14 @@ 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 { CreateOrUpdateFlagRequestBody } from "../../../../types/CreateOrUpdateFlagRequestBody";
5
+ import { FeatureEventSource } from "../../../../types/FeatureEventSource";
5
6
  import { FeatureLifecyclePhase } from "../../../../types/FeatureLifecyclePhase";
6
7
  import { FeatureType } from "../../../../types/FeatureType";
7
8
  export declare const UpdateFeatureRequestBody: core.serialization.Schema<serializers.UpdateFeatureRequestBody.Raw, Schematic.UpdateFeatureRequestBody>;
8
9
  export declare namespace UpdateFeatureRequestBody {
9
10
  interface Raw {
10
11
  description?: string | null;
12
+ event_source?: FeatureEventSource.Raw | null;
11
13
  event_subtype?: string | null;
12
14
  feature_type?: FeatureType.Raw | null;
13
15
  flag?: CreateOrUpdateFlagRequestBody.Raw | null;