@schematichq/schematic-typescript-node 1.6.3 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (377) hide show
  1. package/README.md +18 -3
  2. package/dist/api/resources/accounts/client/requests/UpdateEnvironmentRequestBody.d.ts +1 -0
  3. package/dist/api/resources/billing/client/Client.d.ts +38 -6
  4. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -2
  5. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +3 -3
  6. package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.d.ts +2 -1
  7. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -2
  8. package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +2 -2
  9. package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +2 -2
  10. package/dist/api/resources/billing/client/requests/UpdateBillingSettingsRequestBody.d.ts +8 -0
  11. package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
  12. package/dist/api/resources/billing/types/GetBillingSettingsResponse.d.ts +6 -0
  13. package/dist/api/resources/billing/types/ListBillingPricesParams.d.ts +1 -1
  14. package/dist/api/resources/billing/types/ListBillingProductPricesParams.d.ts +1 -1
  15. package/dist/api/resources/billing/types/UpdateBillingSettingsResponse.d.ts +6 -0
  16. package/dist/api/resources/billing/types/index.d.ts +2 -0
  17. package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +2 -1
  18. package/dist/api/resources/companies/client/Client.d.ts +1 -1
  19. package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +1 -1
  20. package/dist/api/resources/credits/client/Client.d.ts +47 -6
  21. package/dist/api/resources/credits/client/requests/AcquireCreditLeaseRequestBody.d.ts +2 -0
  22. package/dist/api/resources/credits/client/requests/CountCreditEventLedgerRequest.d.ts +1 -1
  23. package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +2 -2
  24. package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -1
  25. package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -2
  26. package/dist/api/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +8 -4
  27. package/dist/api/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +2 -0
  28. package/dist/api/resources/credits/client/requests/GetCreditBalanceTimeSeriesRequest.d.ts +15 -0
  29. package/dist/api/resources/credits/client/requests/GetCreditSpendPolicyUsageRequest.d.ts +13 -0
  30. package/dist/api/resources/credits/client/requests/ListCreditEventLedgerRequest.d.ts +1 -1
  31. package/dist/api/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +3 -0
  32. package/dist/api/resources/credits/client/requests/index.d.ts +2 -0
  33. package/dist/api/resources/credits/types/GetCreditBalanceTimeSeriesParams.d.ts +9 -0
  34. package/dist/api/resources/credits/types/GetCreditBalanceTimeSeriesResponse.d.ts +6 -0
  35. package/dist/api/resources/credits/types/GetCreditSpendPolicyUsageParams.d.ts +8 -0
  36. package/dist/api/resources/credits/types/GetCreditSpendPolicyUsageResponse.d.ts +6 -0
  37. package/dist/api/resources/credits/types/index.d.ts +4 -0
  38. package/dist/api/resources/entitlements/client/Client.d.ts +69 -0
  39. package/dist/api/resources/entitlements/client/requests/CountCompanyUserUsageRequest.d.ts +29 -0
  40. package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +3 -1
  41. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -0
  42. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +3 -1
  43. package/dist/api/resources/entitlements/client/requests/GetCompanyUserUsageMetricsRequest.d.ts +16 -0
  44. package/dist/api/resources/entitlements/client/requests/ListCompanyUserUsageRequest.d.ts +29 -0
  45. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -0
  46. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  47. package/dist/api/resources/entitlements/client/requests/index.d.ts +3 -0
  48. package/dist/api/resources/entitlements/types/CountCompanyUserUsageParams.d.ts +20 -0
  49. package/dist/api/resources/entitlements/types/CountCompanyUserUsageResponse.d.ts +6 -0
  50. package/dist/api/resources/entitlements/types/GetCompanyUserUsageMetricsParams.d.ts +11 -0
  51. package/dist/api/resources/entitlements/types/GetCompanyUserUsageMetricsResponse.d.ts +6 -0
  52. package/dist/api/resources/entitlements/types/ListCompanyUserUsageParams.d.ts +20 -0
  53. package/dist/api/resources/entitlements/types/ListCompanyUserUsageResponse.d.ts +6 -0
  54. package/dist/api/resources/entitlements/types/index.d.ts +6 -0
  55. package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +2 -0
  56. package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  57. package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  58. package/dist/api/resources/plangroups/client/Client.d.ts +2 -0
  59. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  60. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  61. package/dist/api/resources/planmigrations/client/Client.d.ts +2 -0
  62. package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +2 -0
  63. package/dist/api/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +3 -0
  64. package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +2 -0
  65. package/dist/api/resources/planmigrations/types/CountMigrationsParams.d.ts +1 -0
  66. package/dist/api/resources/planmigrations/types/ListMigrationsParams.d.ts +1 -0
  67. package/dist/api/resources/plans/client/Client.d.ts +20 -1
  68. package/dist/api/resources/plans/client/requests/GetPlanVersionDiffRequest.d.ts +10 -0
  69. package/dist/api/resources/plans/client/requests/ListCustomPlanBillingsRequest.d.ts +2 -2
  70. package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +10 -0
  71. package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +2 -0
  72. package/dist/api/resources/plans/client/requests/index.d.ts +1 -0
  73. package/dist/api/resources/plans/types/GetPlanVersionDiffParams.d.ts +7 -0
  74. package/dist/api/resources/plans/types/GetPlanVersionDiffResponse.d.ts +6 -0
  75. package/dist/api/resources/plans/types/ListCustomPlanBillingsParams.d.ts +1 -1
  76. package/dist/api/resources/plans/types/index.d.ts +2 -0
  77. package/dist/api/types/BillingCouponResponseData.d.ts +1 -1
  78. package/dist/api/types/BillingCreditGrantResponseData.d.ts +2 -2
  79. package/dist/api/types/BillingCustomerSubscription.d.ts +2 -1
  80. package/dist/api/types/BillingPriceResponseData.d.ts +1 -1
  81. package/dist/api/types/BillingPriceView.d.ts +1 -1
  82. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +1 -1
  83. package/dist/api/types/BillingProductPriceResponseData.d.ts +1 -1
  84. package/dist/api/types/BillingProductPricing.d.ts +1 -1
  85. package/dist/api/types/BillingSettingsResponseData.d.ts +4 -0
  86. package/dist/api/types/BillingSubscriptionDiscountView.d.ts +2 -1
  87. package/dist/api/types/BillingSubscriptionResponseData.d.ts +1 -1
  88. package/dist/api/types/BillingSubscriptionView.d.ts +1 -1
  89. package/dist/api/types/CaptureRawEvent.d.ts +2 -0
  90. package/dist/api/types/CatalogConfigOrderedPlan.d.ts +1 -0
  91. package/dist/api/types/CatalogConfigOrderedPlanResponseData.d.ts +1 -0
  92. package/dist/api/types/CatalogConfigPlanCredit.d.ts +4 -0
  93. package/dist/api/types/CatalogConfigPlanCreditResponseData.d.ts +4 -0
  94. package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -1
  95. package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -1
  96. package/dist/api/types/CheckFlagsResponseData.d.ts +2 -0
  97. package/dist/api/types/CheckoutProblemCode.d.ts +47 -0
  98. package/dist/api/types/CheckoutProblemResponseData.d.ts +19 -0
  99. package/dist/api/types/CheckoutProblemSource.d.ts +6 -0
  100. package/dist/api/types/CheckoutSubscription.d.ts +1 -1
  101. package/dist/api/types/CompanyBillingEntitySubscriptionResponseData.d.ts +1 -1
  102. package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
  103. package/dist/api/types/CompanyOverrideResponseData.d.ts +2 -0
  104. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +2 -0
  105. package/dist/api/types/CompanySubscriptionResponseData.d.ts +1 -1
  106. package/dist/api/types/CompanyUserUsageMetricsResponseData.d.ts +11 -0
  107. package/dist/api/types/CompanyUserUsageResponseData.d.ts +15 -0
  108. package/dist/api/types/CompanyUserUsageRowResponseData.d.ts +13 -0
  109. package/dist/api/types/ComponentDisplaySettings.d.ts +1 -0
  110. package/dist/api/types/ComponentSettingsResponseData.d.ts +1 -0
  111. package/dist/api/types/Condition.d.ts +1 -0
  112. package/dist/api/types/ConditionResponseData.d.ts +1 -0
  113. package/dist/api/types/ConditionView.d.ts +1 -0
  114. package/dist/api/types/CouponRequestBody.d.ts +2 -1
  115. package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +3 -1
  116. package/dist/api/types/CreateEntitlementReqCommon.d.ts +2 -0
  117. package/dist/api/types/CreditBalanceEventResponseData.d.ts +10 -0
  118. package/dist/api/types/CreditBalanceFeatureConsumptionResponseData.d.ts +5 -0
  119. package/dist/api/types/CreditBalancePointResponseData.d.ts +9 -0
  120. package/dist/api/types/CreditBalanceTimeSeriesResponseData.d.ts +8 -0
  121. package/dist/api/types/CreditBundleCurrencyPrice.d.ts +1 -1
  122. package/dist/api/types/CreditBundleCurrencyPriceRequestBody.d.ts +2 -1
  123. package/dist/api/types/CreditBundleCurrencyPriceResponseData.d.ts +1 -1
  124. package/dist/api/types/CreditBurnBreakdownLine.d.ts +6 -0
  125. package/dist/api/types/CreditCompanyGrantView.d.ts +2 -2
  126. package/dist/api/types/CreditCurrencyPrice.d.ts +1 -1
  127. package/dist/api/types/CreditCurrencyPriceRequestBody.d.ts +2 -1
  128. package/dist/api/types/CreditCurrencyPriceResponseData.d.ts +1 -1
  129. package/dist/api/types/CreditEventLedgerResponseData.d.ts +6 -1
  130. package/dist/api/types/CreditEventType.d.ts +3 -0
  131. package/dist/api/types/CreditLedgerEntryKind.d.ts +10 -0
  132. package/dist/api/types/CreditSpendPolicy.d.ts +21 -0
  133. package/dist/api/types/CreditSpendPolicyResponseData.d.ts +9 -0
  134. package/dist/api/types/CreditSpendWindow.d.ts +6 -0
  135. package/dist/api/types/CreditSpendWindowUnit.d.ts +6 -0
  136. package/dist/api/types/CreditUsageReason.d.ts +1 -0
  137. package/dist/api/types/CreditsInPlan.d.ts +4 -0
  138. package/dist/api/types/Currency.d.ts +137 -0
  139. package/dist/api/types/CurrencyPriceRequestBody.d.ts +1 -1
  140. package/dist/api/types/CustomPlanBillingResponseData.d.ts +9 -1
  141. package/dist/api/types/EntitlementCurrencyPricesResponseData.d.ts +1 -1
  142. package/dist/api/types/EnvironmentDetailResponseData.d.ts +1 -0
  143. package/dist/api/types/EnvironmentResponseData.d.ts +1 -0
  144. package/dist/api/types/EstimatedPlanTotal.d.ts +6 -0
  145. package/dist/api/types/FeatureDetailResponseData.d.ts +2 -0
  146. package/dist/api/types/FeatureEntitlement.d.ts +2 -0
  147. package/dist/api/types/FeatureEventSource.d.ts +5 -0
  148. package/dist/api/types/FeatureInPlanResponseData.d.ts +2 -0
  149. package/dist/api/types/FeatureResponseData.d.ts +2 -0
  150. package/dist/api/types/FeatureView.d.ts +1 -0
  151. package/dist/api/types/InvoiceRequestBody.d.ts +1 -1
  152. package/dist/api/types/InvoiceResponseData.d.ts +1 -1
  153. package/dist/api/types/ManagePlanPreviewResponseResponseData.d.ts +1 -0
  154. package/dist/api/types/ManagePlanRequest.d.ts +3 -1
  155. package/dist/api/types/ManagePlanResponseResponseData.d.ts +2 -0
  156. package/dist/api/types/MrrResponseData.d.ts +2 -1
  157. package/dist/api/types/OrderedPlansInGroup.d.ts +1 -0
  158. package/dist/api/types/PendingMigrationResponseData.d.ts +8 -0
  159. package/dist/api/types/PlanBillingSource.d.ts +1 -0
  160. package/dist/api/types/PlanChangeAction.d.ts +1 -0
  161. package/dist/api/types/PlanChangeAmendmentStatus.d.ts +8 -0
  162. package/dist/api/types/PlanChangeResponseData.d.ts +4 -0
  163. package/dist/api/types/PlanCreditOrder.d.ts +4 -0
  164. package/dist/api/types/PlanCreditVisibility.d.ts +4 -0
  165. package/dist/api/types/PlanCurrencyPriceRequestBody.d.ts +2 -1
  166. package/dist/api/types/PlanCurrencyPricesResponseData.d.ts +1 -1
  167. package/dist/api/types/PlanEntitlementResponseData.d.ts +2 -0
  168. package/dist/api/types/PlanGroupPlanEntitlementsOrder.d.ts +1 -0
  169. package/dist/api/types/PlanVersionBillingProductChangeResponseData.d.ts +5 -0
  170. package/dist/api/types/PlanVersionCreditGrantChangeResponseData.d.ts +9 -0
  171. package/dist/api/types/PlanVersionDiffChangeType.d.ts +6 -0
  172. package/dist/api/types/PlanVersionDiffPriceCadence.d.ts +7 -0
  173. package/dist/api/types/PlanVersionDiffResponseData.d.ts +19 -0
  174. package/dist/api/types/PlanVersionEntitlementChangeResponseData.d.ts +9 -0
  175. package/dist/api/types/PlanVersionFieldChangeResponseData.d.ts +5 -0
  176. package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
  177. package/dist/api/types/PlanVersionMigrationStrategy.d.ts +1 -0
  178. package/dist/api/types/PlanVersionPriceChangeResponseData.d.ts +7 -0
  179. package/dist/api/types/PlanViewPublicResponseData.d.ts +1 -0
  180. package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +1 -0
  181. package/dist/api/types/PreviewSubscriptionDiscountResponseData.d.ts +2 -1
  182. package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +1 -1
  183. package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
  184. package/dist/api/types/RulesengineCompany.d.ts +1 -0
  185. package/dist/api/types/RulesengineCondition.d.ts +1 -0
  186. package/dist/api/types/RulesengineCreditSpendPolicy.d.ts +21 -0
  187. package/dist/api/types/RulesengineCreditSpendPolicyScope.d.ts +6 -0
  188. package/dist/api/types/RulesengineCreditSpendWindow.d.ts +6 -0
  189. package/dist/api/types/RulesengineFeatureEntitlement.d.ts +2 -0
  190. package/dist/api/types/RulesengineUser.d.ts +1 -0
  191. package/dist/api/types/ScheduledDowngradeResponseData.d.ts +2 -1
  192. package/dist/api/types/UpcomingInvoiceResponseData.d.ts +1 -1
  193. package/dist/api/types/UpdateEntitlementReqCommon.d.ts +2 -0
  194. package/dist/api/types/UpsertBillingProductRequestBody.d.ts +1 -1
  195. package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -1
  196. package/dist/api/types/UserUsageMetric.d.ts +5 -0
  197. package/dist/api/types/index.d.ts +37 -0
  198. package/dist/core/fetcher/getResponseBody.d.ts +16 -0
  199. package/dist/core/fetcher/makeRequest.d.ts +6 -1
  200. package/dist/core/fetcher/requestWithRetries.d.ts +1 -1
  201. package/dist/core/fetcher/signals.d.ts +1 -0
  202. package/dist/datastream/datastream-client.d.ts +2 -2
  203. package/dist/index.js +9 -9
  204. package/dist/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.d.ts +1 -0
  205. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -1
  206. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +2 -1
  207. package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.d.ts +2 -1
  208. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -1
  209. package/dist/serialization/resources/billing/client/requests/UpdateBillingSettingsRequestBody.d.ts +10 -0
  210. package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -0
  211. package/dist/serialization/resources/billing/types/GetBillingSettingsResponse.d.ts +11 -0
  212. package/dist/serialization/resources/billing/types/ListBillingPricesParams.d.ts +2 -1
  213. package/dist/serialization/resources/billing/types/ListBillingProductPricesParams.d.ts +2 -1
  214. package/dist/serialization/resources/billing/types/UpdateBillingSettingsResponse.d.ts +11 -0
  215. package/dist/serialization/resources/billing/types/index.d.ts +2 -0
  216. package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +2 -1
  217. package/dist/serialization/resources/credits/client/requests/AcquireCreditLeaseRequestBody.d.ts +1 -0
  218. package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +2 -1
  219. package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +2 -1
  220. package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -1
  221. package/dist/serialization/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +4 -1
  222. package/dist/serialization/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +1 -0
  223. package/dist/serialization/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +3 -0
  224. package/dist/serialization/resources/credits/types/GetCreditBalanceTimeSeriesParams.d.ts +12 -0
  225. package/dist/serialization/resources/credits/types/GetCreditBalanceTimeSeriesResponse.d.ts +12 -0
  226. package/dist/serialization/resources/credits/types/GetCreditSpendPolicyUsageParams.d.ts +11 -0
  227. package/dist/serialization/resources/credits/types/GetCreditSpendPolicyUsageResponse.d.ts +12 -0
  228. package/dist/serialization/resources/credits/types/index.d.ts +4 -0
  229. package/dist/serialization/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +3 -1
  230. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
  231. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +3 -1
  232. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
  233. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  234. package/dist/serialization/resources/entitlements/types/CountCompanyUserUsageParams.d.ts +16 -0
  235. package/dist/serialization/resources/entitlements/types/CountCompanyUserUsageResponse.d.ts +12 -0
  236. package/dist/serialization/resources/entitlements/types/GetCompanyUserUsageMetricsParams.d.ts +11 -0
  237. package/dist/serialization/resources/entitlements/types/GetCompanyUserUsageMetricsResponse.d.ts +12 -0
  238. package/dist/serialization/resources/entitlements/types/ListCompanyUserUsageParams.d.ts +16 -0
  239. package/dist/serialization/resources/entitlements/types/ListCompanyUserUsageResponse.d.ts +12 -0
  240. package/dist/serialization/resources/entitlements/types/index.d.ts +6 -0
  241. package/dist/serialization/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +2 -0
  242. package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  243. package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  244. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
  245. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
  246. package/dist/serialization/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +1 -0
  247. package/dist/serialization/resources/planmigrations/types/CountMigrationsParams.d.ts +1 -0
  248. package/dist/serialization/resources/planmigrations/types/ListMigrationsParams.d.ts +1 -0
  249. package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +4 -0
  250. package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +1 -0
  251. package/dist/serialization/resources/plans/types/GetPlanVersionDiffParams.d.ts +9 -0
  252. package/dist/serialization/resources/plans/types/GetPlanVersionDiffResponse.d.ts +12 -0
  253. package/dist/serialization/resources/plans/types/index.d.ts +2 -0
  254. package/dist/serialization/types/BillingCouponResponseData.d.ts +2 -1
  255. package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +3 -2
  256. package/dist/serialization/types/BillingCustomerSubscription.d.ts +2 -1
  257. package/dist/serialization/types/BillingPriceResponseData.d.ts +2 -1
  258. package/dist/serialization/types/BillingPriceView.d.ts +2 -1
  259. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
  260. package/dist/serialization/types/BillingProductPriceResponseData.d.ts +2 -1
  261. package/dist/serialization/types/BillingProductPricing.d.ts +2 -1
  262. package/dist/serialization/types/BillingSettingsResponseData.d.ts +10 -0
  263. package/dist/serialization/types/BillingSubscriptionDiscountView.d.ts +2 -1
  264. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +2 -1
  265. package/dist/serialization/types/BillingSubscriptionView.d.ts +2 -1
  266. package/dist/serialization/types/CaptureRawEvent.d.ts +2 -0
  267. package/dist/serialization/types/CatalogConfigOrderedPlan.d.ts +2 -0
  268. package/dist/serialization/types/CatalogConfigOrderedPlanResponseData.d.ts +2 -0
  269. package/dist/serialization/types/CatalogConfigPlanCredit.d.ts +10 -0
  270. package/dist/serialization/types/CatalogConfigPlanCreditResponseData.d.ts +10 -0
  271. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -1
  272. package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +2 -1
  273. package/dist/serialization/types/CheckFlagsResponseData.d.ts +2 -0
  274. package/dist/serialization/types/CheckoutProblemCode.d.ts +7 -0
  275. package/dist/serialization/types/CheckoutProblemResponseData.d.ts +23 -0
  276. package/dist/serialization/types/CheckoutProblemSource.d.ts +7 -0
  277. package/dist/serialization/types/CheckoutSubscription.d.ts +2 -1
  278. package/dist/serialization/types/CompanyBillingEntitySubscriptionResponseData.d.ts +2 -1
  279. package/dist/serialization/types/CompanyDetailResponseData.d.ts +1 -0
  280. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
  281. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
  282. package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +2 -1
  283. package/dist/serialization/types/CompanyUserUsageMetricsResponseData.d.ts +13 -0
  284. package/dist/serialization/types/CompanyUserUsageResponseData.d.ts +15 -0
  285. package/dist/serialization/types/CompanyUserUsageRowResponseData.d.ts +14 -0
  286. package/dist/serialization/types/ComponentDisplaySettings.d.ts +1 -0
  287. package/dist/serialization/types/ComponentSettingsResponseData.d.ts +1 -0
  288. package/dist/serialization/types/Condition.d.ts +1 -0
  289. package/dist/serialization/types/ConditionResponseData.d.ts +1 -0
  290. package/dist/serialization/types/ConditionView.d.ts +1 -0
  291. package/dist/serialization/types/CouponRequestBody.d.ts +2 -1
  292. package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +3 -1
  293. package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +1 -0
  294. package/dist/serialization/types/CreditBalanceEventResponseData.d.ts +18 -0
  295. package/dist/serialization/types/CreditBalanceFeatureConsumptionResponseData.d.ts +11 -0
  296. package/dist/serialization/types/CreditBalancePointResponseData.d.ts +13 -0
  297. package/dist/serialization/types/CreditBalanceTimeSeriesResponseData.d.ts +14 -0
  298. package/dist/serialization/types/CreditBundleCurrencyPrice.d.ts +2 -1
  299. package/dist/serialization/types/CreditBundleCurrencyPriceRequestBody.d.ts +2 -1
  300. package/dist/serialization/types/CreditBundleCurrencyPriceResponseData.d.ts +2 -1
  301. package/dist/serialization/types/CreditBurnBreakdownLine.d.ts +12 -0
  302. package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -2
  303. package/dist/serialization/types/CreditCurrencyPrice.d.ts +2 -1
  304. package/dist/serialization/types/CreditCurrencyPriceRequestBody.d.ts +2 -1
  305. package/dist/serialization/types/CreditCurrencyPriceResponseData.d.ts +2 -1
  306. package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +8 -1
  307. package/dist/serialization/types/CreditEventType.d.ts +1 -1
  308. package/dist/serialization/types/CreditLedgerEntryKind.d.ts +7 -0
  309. package/dist/serialization/types/CreditSpendPolicy.d.ts +19 -0
  310. package/dist/serialization/types/CreditSpendPolicyResponseData.d.ts +7 -0
  311. package/dist/serialization/types/CreditSpendWindow.d.ts +10 -0
  312. package/dist/serialization/types/CreditSpendWindowUnit.d.ts +7 -0
  313. package/dist/serialization/types/CreditUsageReason.d.ts +1 -1
  314. package/dist/serialization/types/CreditsInPlan.d.ts +10 -0
  315. package/dist/serialization/types/Currency.d.ts +7 -0
  316. package/dist/serialization/types/CurrencyPriceRequestBody.d.ts +2 -1
  317. package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +5 -0
  318. package/dist/serialization/types/EntitlementCurrencyPricesResponseData.d.ts +2 -1
  319. package/dist/serialization/types/EnvironmentDetailResponseData.d.ts +1 -0
  320. package/dist/serialization/types/EnvironmentResponseData.d.ts +1 -0
  321. package/dist/serialization/types/EstimatedPlanTotal.d.ts +13 -0
  322. package/dist/serialization/types/FeatureDetailResponseData.d.ts +2 -0
  323. package/dist/serialization/types/FeatureEntitlement.d.ts +1 -0
  324. package/dist/serialization/types/FeatureEventSource.d.ts +7 -0
  325. package/dist/serialization/types/FeatureInPlanResponseData.d.ts +2 -0
  326. package/dist/serialization/types/FeatureResponseData.d.ts +2 -0
  327. package/dist/serialization/types/FeatureView.d.ts +2 -0
  328. package/dist/serialization/types/InvoiceRequestBody.d.ts +2 -1
  329. package/dist/serialization/types/InvoiceResponseData.d.ts +2 -1
  330. package/dist/serialization/types/ManagePlanPreviewResponseResponseData.d.ts +2 -0
  331. package/dist/serialization/types/ManagePlanRequest.d.ts +3 -1
  332. package/dist/serialization/types/ManagePlanResponseResponseData.d.ts +3 -0
  333. package/dist/serialization/types/MrrResponseData.d.ts +2 -1
  334. package/dist/serialization/types/OrderedPlansInGroup.d.ts +2 -0
  335. package/dist/serialization/types/PendingMigrationResponseData.d.ts +5 -0
  336. package/dist/serialization/types/PlanBillingSource.d.ts +1 -1
  337. package/dist/serialization/types/PlanChangeAction.d.ts +1 -1
  338. package/dist/serialization/types/PlanChangeAmendmentStatus.d.ts +7 -0
  339. package/dist/serialization/types/PlanChangeResponseData.d.ts +3 -0
  340. package/dist/serialization/types/PlanCreditOrder.d.ts +10 -0
  341. package/dist/serialization/types/PlanCreditVisibility.d.ts +10 -0
  342. package/dist/serialization/types/PlanCurrencyPriceRequestBody.d.ts +2 -1
  343. package/dist/serialization/types/PlanCurrencyPricesResponseData.d.ts +2 -1
  344. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
  345. package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.d.ts +2 -0
  346. package/dist/serialization/types/PlanVersionBillingProductChangeResponseData.d.ts +11 -0
  347. package/dist/serialization/types/PlanVersionCreditGrantChangeResponseData.d.ts +15 -0
  348. package/dist/serialization/types/PlanVersionDiffChangeType.d.ts +7 -0
  349. package/dist/serialization/types/PlanVersionDiffPriceCadence.d.ts +7 -0
  350. package/dist/serialization/types/PlanVersionDiffResponseData.d.ts +22 -0
  351. package/dist/serialization/types/PlanVersionEntitlementChangeResponseData.d.ts +15 -0
  352. package/dist/serialization/types/PlanVersionFieldChangeResponseData.d.ts +11 -0
  353. package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +1 -0
  354. package/dist/serialization/types/PlanVersionMigrationStrategy.d.ts +1 -1
  355. package/dist/serialization/types/PlanVersionPriceChangeResponseData.d.ts +15 -0
  356. package/dist/serialization/types/PlanViewPublicResponseData.d.ts +2 -0
  357. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +2 -0
  358. package/dist/serialization/types/PreviewSubscriptionDiscountResponseData.d.ts +2 -1
  359. package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -1
  360. package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
  361. package/dist/serialization/types/RulesengineCompany.d.ts +2 -0
  362. package/dist/serialization/types/RulesengineCondition.d.ts +1 -0
  363. package/dist/serialization/types/RulesengineCreditSpendPolicy.d.ts +19 -0
  364. package/dist/serialization/types/RulesengineCreditSpendPolicyScope.d.ts +7 -0
  365. package/dist/serialization/types/RulesengineCreditSpendWindow.d.ts +10 -0
  366. package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +1 -0
  367. package/dist/serialization/types/RulesengineUser.d.ts +2 -0
  368. package/dist/serialization/types/ScheduledDowngradeResponseData.d.ts +2 -1
  369. package/dist/serialization/types/UpcomingInvoiceResponseData.d.ts +2 -1
  370. package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +1 -0
  371. package/dist/serialization/types/UpsertBillingProductRequestBody.d.ts +2 -1
  372. package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +2 -1
  373. package/dist/serialization/types/UserUsageMetric.d.ts +7 -0
  374. package/dist/serialization/types/index.d.ts +37 -0
  375. package/dist/wasm/rulesengine.js +1 -1
  376. package/dist/wrapper.d.ts +2 -2
  377. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ export interface CreditBurnBreakdownLine {
2
+ credits: number;
3
+ key: string;
4
+ quantity: number;
5
+ rate: number;
6
+ }
@@ -10,7 +10,7 @@ export interface CreditCompanyGrantView {
10
10
  creditDescription: string;
11
11
  creditIcon?: string;
12
12
  creditName: string;
13
- currency?: string;
13
+ currency?: Schematic.Currency;
14
14
  exhaustedAt?: Date;
15
15
  expiresAt?: Date;
16
16
  expiryType?: Schematic.BillingCreditExpiryType;
@@ -23,7 +23,7 @@ export interface CreditCompanyGrantView {
23
23
  planName?: string;
24
24
  pluralName?: string;
25
25
  postpaidChargeAmount?: number;
26
- postpaidChargeCurrency?: string;
26
+ postpaidChargeCurrency?: Schematic.Currency;
27
27
  postpaidChargedCredits?: number;
28
28
  postpaidPeriodEnd?: Date;
29
29
  postpaidRate?: number;
@@ -1,5 +1,5 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface CreditCurrencyPrice {
3
- currency: string;
3
+ currency: Schematic.Currency;
4
4
  price?: Schematic.BillingPriceView;
5
5
  }
@@ -1,5 +1,6 @@
1
+ import type * as Schematic from "../index";
1
2
  export interface CreditCurrencyPriceRequestBody {
2
- currency: string;
3
+ currency: Schematic.Currency;
3
4
  pricePerUnit?: number;
4
5
  pricePerUnitDecimal?: string;
5
6
  }
@@ -1,5 +1,5 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface CreditCurrencyPriceResponseData {
3
- currency: string;
3
+ currency: Schematic.Currency;
4
4
  price?: Schematic.BillingPriceResponseData;
5
5
  }
@@ -3,14 +3,18 @@ export interface CreditEventLedgerResponseData {
3
3
  amount: number;
4
4
  autoTopupLogId?: string;
5
5
  billingCreditBundleId?: string;
6
- billingCreditId: string;
6
+ billingCreditId?: string;
7
+ /** The part of the draw this row covers: one line per priced quantity, including the request line, summing to the row amount. Set on inference-driven draws only. */
8
+ burnBreakdown?: Schematic.CreditBurnBreakdownLine[];
7
9
  company?: Schematic.CompanyLedgerResponseData;
8
10
  companyId: string;
9
11
  credit?: Schematic.BillingCreditLedgerResponseData;
10
12
  creditName: string;
13
+ currency?: Schematic.Currency;
11
14
  environmentId: string;
12
15
  eventAt: Date;
13
16
  eventId: string;
17
+ eventIds: string[];
14
18
  eventType: Schematic.CreditEventType;
15
19
  expiryType?: Schematic.BillingCreditExpiryType;
16
20
  expiryUnit?: Schematic.BillingCreditExpiryUnit;
@@ -24,6 +28,7 @@ export interface CreditEventLedgerResponseData {
24
28
  grantQuantityRemaining?: number;
25
29
  grantReason?: Schematic.BillingCreditGrantReason;
26
30
  grantValidFrom?: Date;
31
+ kind: Schematic.CreditLedgerEntryKind;
27
32
  planId?: string;
28
33
  quantityConsumed?: number;
29
34
  quantityRemainingAtZeroOut?: number;
@@ -1,5 +1,8 @@
1
1
  export declare const CreditEventType: {
2
+ readonly Adjustment: "adjustment";
3
+ readonly Charge: "charge";
2
4
  readonly Grant: "grant";
5
+ readonly Settlement: "settlement";
3
6
  readonly Transfer: "transfer";
4
7
  readonly Usage: "usage";
5
8
  readonly ZeroOut: "zero_out";
@@ -0,0 +1,10 @@
1
+ export declare const CreditLedgerEntryKind: {
2
+ readonly Adjustment: "adjustment";
3
+ readonly Charge: "charge";
4
+ readonly Drawdown: "drawdown";
5
+ readonly Grant: "grant";
6
+ readonly Settlement: "settlement";
7
+ readonly Transfer: "transfer";
8
+ readonly ZeroOut: "zero_out";
9
+ };
10
+ export type CreditLedgerEntryKind = (typeof CreditLedgerEntryKind)[keyof typeof CreditLedgerEntryKind];
@@ -0,0 +1,21 @@
1
+ import type * as Schematic from "../index";
2
+ export interface CreditSpendPolicy {
3
+ /** How much of the limit is already spent in the current period */
4
+ consumed?: number;
5
+ /** The credit the policy limits */
6
+ creditId: string;
7
+ /** The ID of the policy */
8
+ id: string;
9
+ /** How the limit is applied */
10
+ kind: string;
11
+ /** The name the account gave the policy */
12
+ label?: string;
13
+ /** The ceiling, in credits */
14
+ limit: number;
15
+ /** For a windowed limit, when the current period ends and consumed no longer applies */
16
+ resetsAt?: Date;
17
+ /** Whether the policy limits the company or one user */
18
+ scope: Schematic.CreditSpendPolicyScope;
19
+ /** For a windowed limit, the period it accumulates over */
20
+ window?: Schematic.CreditSpendWindow;
21
+ }
@@ -2,11 +2,20 @@ import type * as Schematic from "../index";
2
2
  export interface CreditSpendPolicyResponseData {
3
3
  billingCreditId: string;
4
4
  companyId?: string;
5
+ /** Credits spent in the current window. Set only by the usage route, and only for a window cap. */
6
+ consumed?: number;
5
7
  createdAt: Date;
8
+ /** Credits left in the current window. Set only by the usage route, and only for a window cap. */
9
+ headroom?: number;
6
10
  id: string;
7
11
  label?: string;
8
12
  maxPerDraw?: number;
13
+ /** When the current window ends. Set only by the usage route, and only for a window cap. */
14
+ resetsAt?: Date;
9
15
  scopeType: Schematic.CreditSpendPolicyScope;
10
16
  updatedAt: Date;
11
17
  userId?: string;
18
+ windowAmount?: number;
19
+ windowCount: number;
20
+ windowUnit?: Schematic.CreditSpendWindowUnit;
12
21
  }
@@ -0,0 +1,6 @@
1
+ export interface CreditSpendWindow {
2
+ /** How many units make up one period */
3
+ count: number;
4
+ /** The period the limit accumulates over */
5
+ unit: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ export declare const CreditSpendWindowUnit: {
2
+ readonly Hour: "hour";
3
+ readonly Day: "day";
4
+ readonly BillingPeriod: "billing_period";
5
+ };
6
+ export type CreditSpendWindowUnit = (typeof CreditSpendWindowUnit)[keyof typeof CreditSpendWindowUnit];
@@ -1,4 +1,5 @@
1
1
  export declare const CreditUsageReason: {
2
+ readonly Inference: "inference";
2
3
  readonly LeaseHold: "lease_hold";
3
4
  readonly LeaseRelease: "lease_release";
4
5
  readonly ManualAdjustment: "manual_adjustment";
@@ -0,0 +1,4 @@
1
+ export interface CreditsInPlan {
2
+ creditId: string;
3
+ visible?: boolean;
4
+ }
@@ -0,0 +1,137 @@
1
+ export declare const Currency: {
2
+ readonly Aed: "aed";
3
+ readonly Afn: "afn";
4
+ readonly All: "all";
5
+ readonly Amd: "amd";
6
+ readonly Ang: "ang";
7
+ readonly Aoa: "aoa";
8
+ readonly Ars: "ars";
9
+ readonly Aud: "aud";
10
+ readonly Awg: "awg";
11
+ readonly Azn: "azn";
12
+ readonly Bam: "bam";
13
+ readonly Bbd: "bbd";
14
+ readonly Bdt: "bdt";
15
+ readonly Bif: "bif";
16
+ readonly Bmd: "bmd";
17
+ readonly Bnd: "bnd";
18
+ readonly Bob: "bob";
19
+ readonly Brl: "brl";
20
+ readonly Bsd: "bsd";
21
+ readonly Bwp: "bwp";
22
+ readonly Byn: "byn";
23
+ readonly Bzd: "bzd";
24
+ readonly Cad: "cad";
25
+ readonly Cdf: "cdf";
26
+ readonly Chf: "chf";
27
+ readonly Clp: "clp";
28
+ readonly Cny: "cny";
29
+ readonly Cop: "cop";
30
+ readonly Crc: "crc";
31
+ readonly Cve: "cve";
32
+ readonly Czk: "czk";
33
+ readonly Djf: "djf";
34
+ readonly Dkk: "dkk";
35
+ readonly Dop: "dop";
36
+ readonly Dzd: "dzd";
37
+ readonly Egp: "egp";
38
+ readonly Etb: "etb";
39
+ readonly Eur: "eur";
40
+ readonly Fjd: "fjd";
41
+ readonly Fkp: "fkp";
42
+ readonly Gbp: "gbp";
43
+ readonly Gel: "gel";
44
+ readonly Gip: "gip";
45
+ readonly Gmd: "gmd";
46
+ readonly Gnf: "gnf";
47
+ readonly Gtq: "gtq";
48
+ readonly Gyd: "gyd";
49
+ readonly Hkd: "hkd";
50
+ readonly Hnl: "hnl";
51
+ readonly Htg: "htg";
52
+ readonly Huf: "huf";
53
+ readonly Idr: "idr";
54
+ readonly Ils: "ils";
55
+ readonly Inr: "inr";
56
+ readonly Isk: "isk";
57
+ readonly Jmd: "jmd";
58
+ readonly Jpy: "jpy";
59
+ readonly Kes: "kes";
60
+ readonly Kgs: "kgs";
61
+ readonly Khr: "khr";
62
+ readonly Kmf: "kmf";
63
+ readonly Krw: "krw";
64
+ readonly Kyd: "kyd";
65
+ readonly Kzt: "kzt";
66
+ readonly Lak: "lak";
67
+ readonly Lbp: "lbp";
68
+ readonly Lkr: "lkr";
69
+ readonly Lrd: "lrd";
70
+ readonly Lsl: "lsl";
71
+ readonly Mad: "mad";
72
+ readonly Mdl: "mdl";
73
+ readonly Mga: "mga";
74
+ readonly Mkd: "mkd";
75
+ readonly Mmk: "mmk";
76
+ readonly Mnt: "mnt";
77
+ readonly Mop: "mop";
78
+ readonly Mur: "mur";
79
+ readonly Mvr: "mvr";
80
+ readonly Mwk: "mwk";
81
+ readonly Mxn: "mxn";
82
+ readonly Myr: "myr";
83
+ readonly Mzn: "mzn";
84
+ readonly Nad: "nad";
85
+ readonly Ngn: "ngn";
86
+ readonly Nio: "nio";
87
+ readonly Nok: "nok";
88
+ readonly Npr: "npr";
89
+ readonly Nzd: "nzd";
90
+ readonly Pab: "pab";
91
+ readonly Pen: "pen";
92
+ readonly Pgk: "pgk";
93
+ readonly Php: "php";
94
+ readonly Pkr: "pkr";
95
+ readonly Pln: "pln";
96
+ readonly Pyg: "pyg";
97
+ readonly Qar: "qar";
98
+ readonly Ron: "ron";
99
+ readonly Rsd: "rsd";
100
+ readonly Rub: "rub";
101
+ readonly Rwf: "rwf";
102
+ readonly Sar: "sar";
103
+ readonly Sbd: "sbd";
104
+ readonly Scr: "scr";
105
+ readonly Sek: "sek";
106
+ readonly Sgd: "sgd";
107
+ readonly Shp: "shp";
108
+ readonly Sle: "sle";
109
+ readonly Sos: "sos";
110
+ readonly Srd: "srd";
111
+ readonly Std: "std";
112
+ readonly Szl: "szl";
113
+ readonly Thb: "thb";
114
+ readonly Tjs: "tjs";
115
+ readonly Top: "top";
116
+ readonly Try: "try";
117
+ readonly Ttd: "ttd";
118
+ readonly Twd: "twd";
119
+ readonly Tzs: "tzs";
120
+ readonly Uah: "uah";
121
+ readonly Ugx: "ugx";
122
+ readonly Usd: "usd";
123
+ readonly Uyu: "uyu";
124
+ readonly Uzs: "uzs";
125
+ readonly Vnd: "vnd";
126
+ readonly Vuv: "vuv";
127
+ readonly Wst: "wst";
128
+ readonly Xaf: "xaf";
129
+ readonly Xcd: "xcd";
130
+ readonly Xcg: "xcg";
131
+ readonly Xof: "xof";
132
+ readonly Xpf: "xpf";
133
+ readonly Yer: "yer";
134
+ readonly Zar: "zar";
135
+ readonly Zmw: "zmw";
136
+ };
137
+ export type Currency = (typeof Currency)[keyof typeof Currency];
@@ -1,6 +1,6 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface CurrencyPriceRequestBody {
3
- currency: string;
3
+ currency: Schematic.Currency;
4
4
  monthlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
5
5
  monthlyUnitPrice?: number;
6
6
  monthlyUnitPriceDecimal?: string;
@@ -3,15 +3,23 @@ export interface CustomPlanBillingResponseData {
3
3
  activationStrategy: Schematic.CustomPlanActivationStrategy;
4
4
  /** The billing period renewal date pinned when the subscription started, when one was set. When no invoice exists yet, the first invoice is raised on this date. */
5
5
  billingCycleAnchor?: Date;
6
+ /** The date the contract term starts, when the operator pinned one. A past date was backdated onto the subscription so the first period runs from the contract date rather than from finalization. */
7
+ billingStartDate?: Date;
8
+ /** The checkout this billing record was created from, when it was created from one. */
9
+ checkoutId?: string;
6
10
  companyId: string;
7
11
  createdAt: Date;
8
12
  daysUntilDue: number;
9
13
  externalInvoiceId?: string;
10
14
  id: string;
15
+ /** The plan version migration this amendment invoice belongs to. Null for a first publish or a plan assigned through Manage Plan. */
16
+ migrationId?: string;
11
17
  paidAt?: Date;
12
- /** The flow that created this billing record: a custom plan, or a standard plan assigned by invoice through Manage Plan. */
18
+ /** The flow that created this billing record: a custom plan's first publish, an amendment of a live custom plan, or a standard plan assigned by invoice through Manage Plan. */
13
19
  planBillingSource: Schematic.PlanBillingSource;
14
20
  planId: string;
21
+ /** What the linked checkout still reports wrong, in the order found. Empty when there is no linked checkout or it completed cleanly. */
22
+ problems: Schematic.CheckoutProblemResponseData[];
15
23
  /** Whether the shortened period the renewal date created was billed pro rata when the subscription started. False means that period is free and the first invoice is the one raised on the renewal date. */
16
24
  prorateFirstPeriod?: boolean;
17
25
  publishedAt?: Date;
@@ -1,6 +1,6 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface EntitlementCurrencyPricesResponseData {
3
- currency: string;
3
+ currency: Schematic.Currency;
4
4
  monthlyPrice?: Schematic.BillingPriceView;
5
5
  quarterlyPrice?: Schematic.BillingPriceView;
6
6
  yearlyPrice?: Schematic.BillingPriceView;
@@ -5,5 +5,6 @@ export interface EnvironmentDetailResponseData {
5
5
  environmentType: Schematic.EnvironmentType;
6
6
  id: string;
7
7
  name: string;
8
+ requireContextSignature: boolean;
8
9
  updatedAt: Date;
9
10
  }
@@ -4,5 +4,6 @@ export interface EnvironmentResponseData {
4
4
  environmentType: Schematic.EnvironmentType;
5
5
  id: string;
6
6
  name: string;
7
+ requireContextSignature: boolean;
7
8
  updatedAt: Date;
8
9
  }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../index";
2
+ export interface EstimatedPlanTotal {
3
+ amount: number;
4
+ currency: Schematic.Currency;
5
+ period: Schematic.PlanPriceCadence;
6
+ }
@@ -5,6 +5,8 @@ export interface FeatureDetailResponseData {
5
5
  billingProduct?: Schematic.BillingProductResponseData;
6
6
  createdAt: Date;
7
7
  description: string;
8
+ /** Which event stream meters this feature. Track features are metered by track events; inference features are metered by inference events whose event label matches event_subtype, and meter through credits only. */
9
+ eventSource: Schematic.FeatureEventSource;
8
10
  eventSubtype?: string;
9
11
  eventSummary?: Schematic.EventSummaryResponseData;
10
12
  featureType: Schematic.FeatureType;
@@ -30,6 +30,8 @@ export interface FeatureEntitlement {
30
30
  metricResetAt?: Date;
31
31
  /** For event-based feature entitlements that have a monthly period, whether that monthly reset is based on the calendar month or a billing cycle */
32
32
  monthReset?: Schematic.MetricPeriodMonthReset;
33
+ /** If the company has a credit-based entitlement for this feature, the credit cost per unit of each quantity an event carries, keyed by quantity key (per token for inference features). Absent when the entitlement prices requests only */
34
+ quantityRates?: Record<string, number>;
33
35
  /** For usage-based pricing, the soft limit for overage charges or the next tier boundary */
34
36
  softLimit?: number;
35
37
  /** If the company has a numeric entitlement for this feature, the current usage amount */
@@ -0,0 +1,5 @@
1
+ export declare const FeatureEventSource: {
2
+ readonly Inference: "inference";
3
+ readonly Track: "track";
4
+ };
5
+ export type FeatureEventSource = (typeof FeatureEventSource)[keyof typeof FeatureEventSource];
@@ -3,6 +3,8 @@ export interface FeatureInPlanResponseData {
3
3
  billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
4
4
  createdAt: Date;
5
5
  description: string;
6
+ /** Which event stream meters this feature. Track features are metered by track events; inference features are metered by inference events whose event label matches event_subtype, and meter through credits only. */
7
+ eventSource: Schematic.FeatureEventSource;
6
8
  eventSubtype?: string;
7
9
  eventSummary?: Schematic.EventSummaryResponseData;
8
10
  featureType: Schematic.FeatureType;
@@ -2,6 +2,8 @@ import type * as Schematic from "../index";
2
2
  export interface FeatureResponseData {
3
3
  createdAt: Date;
4
4
  description: string;
5
+ /** Which event stream meters this feature. Track features are metered by track events; inference features are metered by inference events whose event label matches event_subtype, and meter through credits only. */
6
+ eventSource: Schematic.FeatureEventSource;
5
7
  eventSubtype?: string;
6
8
  featureType: Schematic.FeatureType;
7
9
  icon: string;
@@ -5,6 +5,7 @@ export interface FeatureView {
5
5
  billingProduct?: Schematic.BillingProductRecordResponseData;
6
6
  createdAt: Date;
7
7
  description: string;
8
+ eventSource: Schematic.FeatureEventSource;
8
9
  eventSubtype?: string;
9
10
  eventSummary?: Schematic.EventSummaryResponseData;
10
11
  featureType: Schematic.FeatureType;
@@ -4,7 +4,7 @@ export interface InvoiceRequestBody {
4
4
  amountPaid: number;
5
5
  amountRemaining: number;
6
6
  collectionMethod: string;
7
- currency: string;
7
+ currency: Schematic.Currency;
8
8
  customerExternalId: string;
9
9
  dueDate?: Date;
10
10
  endingBalance?: number;
@@ -6,7 +6,7 @@ export interface InvoiceResponseData {
6
6
  collectionMethod: string;
7
7
  companyId?: string;
8
8
  createdAt: Date;
9
- currency: string;
9
+ currency: Schematic.Currency;
10
10
  customerExternalId: string;
11
11
  dueDate?: Date;
12
12
  endingBalance: number;
@@ -1,4 +1,5 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface ManagePlanPreviewResponseResponseData {
3
+ problems: Schematic.CheckoutProblemResponseData[];
3
4
  subscriptionChangePreview?: Schematic.PreviewSubscriptionChangeResponseData;
4
5
  }
@@ -20,10 +20,12 @@ export interface ManagePlanRequest {
20
20
  couponExternalId?: string;
21
21
  creditBundles: Schematic.UpdateCreditBundleRequestBody[];
22
22
  /** ISO 4217 currency this change is being built in. Prices are still selected by id; this records the intent. */
23
- currency?: string;
23
+ currency?: Schematic.Currency;
24
24
  customFieldValues: Schematic.CheckoutFieldValue[];
25
25
  /** Payment terms in days for an invoiced subscription. Defaults to 30. */
26
26
  daysUntilDue?: number;
27
+ /** If true, the first invoice is recorded in Stripe as paid outside Stripe and the company gets the plan straight away. Requires collection_method to be send_invoice, and the invoice is not emailed. Defaults to false. */
28
+ paidOutsideStripe?: boolean;
27
29
  payInAdvanceEntitlements: Schematic.UpdatePayInAdvanceRequestBody[];
28
30
  paymentMethodExternalId?: string;
29
31
  promoCode?: string;
@@ -1,5 +1,7 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface ManagePlanResponseResponseData {
3
+ checkoutId?: string;
3
4
  company?: Schematic.CompanyDetailResponseData;
5
+ problems: Schematic.CheckoutProblemResponseData[];
4
6
  success: boolean;
5
7
  }
@@ -1,4 +1,5 @@
1
+ import type * as Schematic from "../index";
1
2
  export interface MrrResponseData {
2
3
  amount: number;
3
- currency: string;
4
+ currency: Schematic.Currency;
4
5
  }
@@ -1,5 +1,6 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface OrderedPlansInGroup {
3
+ credits?: Schematic.CreditsInPlan[];
3
4
  entitlements?: Schematic.EntitlementsInPlan[];
4
5
  planId: string;
5
6
  }
@@ -1,6 +1,14 @@
1
+ import type * as Schematic from "../index";
1
2
  export interface PendingMigrationResponseData {
3
+ /** When the company moves to the new version: the migration's date for a scheduled migration, or the end of the company's current billing period. Null when no date can be named yet, for example when the company's only subscription is past due or set to cancel; the company then moves at the next opportunity. */
4
+ effectiveAt?: Date;
2
5
  migrationId: string;
6
+ /** How the price difference is billed when the company moves. Always none for an end-of-billing-period migration. */
7
+ prorationBehavior?: Schematic.MigrationProrationBehavior;
8
+ /** Deprecated; use effective_at, which carries the same value. */
3
9
  scheduledFor?: Date;
10
+ /** Whether the company moves at the end of its billing period (end_of_billing_period) or on a specific date (scheduled). The type is shared with plan version migrations, but only those two values appear here: this view lists deferred migrations only, so an immediate migration is never shown, even while it is pending. */
11
+ strategy: Schematic.PlanVersionMigrationStrategy;
4
12
  toPlanId: string;
5
13
  toPlanName: string;
6
14
  toPlanVersionId: string;
@@ -1,4 +1,5 @@
1
1
  export declare const PlanBillingSource: {
2
+ readonly Amendment: "amendment";
2
3
  readonly CustomPlan: "custom_plan";
3
4
  readonly ManagePlan: "manage_plan";
4
5
  };
@@ -1,4 +1,5 @@
1
1
  export declare const PlanChangeAction: {
2
+ readonly Amendment: "amendment";
2
3
  readonly Checkout: "checkout";
3
4
  readonly CompanyUpsert: "company_upsert";
4
5
  readonly FallbackPlan: "fallback_plan";
@@ -0,0 +1,8 @@
1
+ export declare const PlanChangeAmendmentStatus: {
2
+ readonly Applied: "applied";
3
+ readonly Cancelled: "cancelled";
4
+ readonly Failed: "failed";
5
+ readonly Scheduled: "scheduled";
6
+ readonly Skipped: "skipped";
7
+ };
8
+ export type PlanChangeAmendmentStatus = (typeof PlanChangeAmendmentStatus)[keyof typeof PlanChangeAmendmentStatus];
@@ -4,6 +4,8 @@ export interface PlanChangeResponseData {
4
4
  actorType: Schematic.ActorType;
5
5
  addOnsAdded: Schematic.PlanSnapshotView[];
6
6
  addOnsRemoved: Schematic.PlanSnapshotView[];
7
+ /** Set when the action is amendment. A custom plan amendment records one plan change per status: scheduled when it is finalized for a later date, then applied when the company moves to the new version, cancelled when the scheduled change is called off, or failed or skipped when its migration ends without moving the company (an error, or the company was no longer on the version the amendment started from). Only an applied amendment changed the company's plan version. */
8
+ amendmentStatus?: Schematic.PlanChangeAmendmentStatus;
7
9
  apiKey?: Schematic.ApiKeyResponseData;
8
10
  auditLog?: Schematic.AuditLogListResponseData;
9
11
  basePlan?: Schematic.PlanSnapshotView;
@@ -20,6 +22,8 @@ export interface PlanChangeResponseData {
20
22
  integration?: Schematic.IntegrationResponseData;
21
23
  /** True when this change moved the company to a different version of the same plan (e.g. a plan version migration) rather than to a different plan. */
22
24
  isVersionUpgrade: boolean;
25
+ /** The plan version migration that carries this change. Set on amendment plan changes, where it ties the scheduled, applied and cancelled records of one amendment together. */
26
+ migrationId?: string;
23
27
  previousBasePlan?: Schematic.PlanSnapshotView;
24
28
  /** The plan version of the previous base plan before this change. */
25
29
  previousBasePlanVersion?: Schematic.PlanVersionSnapshotView;
@@ -0,0 +1,4 @@
1
+ export interface PlanCreditOrder {
2
+ creditId: string;
3
+ visible: boolean;
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface PlanCreditVisibility {
2
+ creditId: string;
3
+ visible: boolean;
4
+ }
@@ -1,5 +1,6 @@
1
+ import type * as Schematic from "../index";
1
2
  export interface PlanCurrencyPriceRequestBody {
2
- currency: string;
3
+ currency: Schematic.Currency;
3
4
  monthlyPrice?: number;
4
5
  oneTimePrice?: number;
5
6
  quarterlyPrice?: number;
@@ -1,6 +1,6 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface PlanCurrencyPricesResponseData {
3
- currency: string;
3
+ currency: Schematic.Currency;
4
4
  monthlyPrice?: Schematic.BillingPriceResponseData;
5
5
  oneTimePrice?: Schematic.BillingPriceResponseData;
6
6
  quarterlyPrice?: Schematic.BillingPriceResponseData;
@@ -21,6 +21,8 @@ export interface PlanEntitlementResponseData {
21
21
  plan?: Schematic.PlanResponseData;
22
22
  planId: string;
23
23
  priceBehavior?: Schematic.EntitlementPriceBehavior;
24
+ /** Credits per unit of the quantity (per token for inference features), keyed by quantity key. Absent when the entitlement prices requests only. */
25
+ quantityRates?: Record<string, number>;
24
26
  ruleId: string;
25
27
  ruleIdUsageExceeded?: string;
26
28
  softLimit?: number;
@@ -1,5 +1,6 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface PlanGroupPlanEntitlementsOrder {
3
+ credits: Schematic.PlanCreditOrder[];
3
4
  entitlements?: Schematic.PlanEntitlementsOrder[];
4
5
  planId: string;
5
6
  }
@@ -0,0 +1,5 @@
1
+ import type * as Schematic from "../index";
2
+ export interface PlanVersionBillingProductChangeResponseData {
3
+ "new"?: Schematic.BillingProductDetailResponseData;
4
+ old?: Schematic.BillingProductDetailResponseData;
5
+ }
@@ -0,0 +1,9 @@
1
+ import type * as Schematic from "../index";
2
+ export interface PlanVersionCreditGrantChangeResponseData {
3
+ changeType: Schematic.PlanVersionDiffChangeType;
4
+ /** For a changed grant, the fields that differ. */
5
+ changedFields: string[];
6
+ creditId: string;
7
+ "new"?: Schematic.BillingPlanCreditGrantResponseData;
8
+ old?: Schematic.BillingPlanCreditGrantResponseData;
9
+ }
@@ -0,0 +1,6 @@
1
+ export declare const PlanVersionDiffChangeType: {
2
+ readonly Added: "added";
3
+ readonly Changed: "changed";
4
+ readonly Removed: "removed";
5
+ };
6
+ export type PlanVersionDiffChangeType = (typeof PlanVersionDiffChangeType)[keyof typeof PlanVersionDiffChangeType];