@schematichq/schematic-typescript-node 1.1.5 → 1.1.6

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 (568) hide show
  1. package/Client.js +1 -1
  2. package/api/resources/accesstokens/client/Client.js +1 -1
  3. package/api/resources/accounts/client/Client.js +14 -14
  4. package/api/resources/billing/client/Client.d.ts +21 -5
  5. package/api/resources/billing/client/Client.js +167 -24
  6. package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +9 -0
  7. package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -1
  8. package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -1
  9. package/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +3 -3
  10. package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +9 -0
  11. package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +9 -0
  12. package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +20 -0
  13. package/api/resources/billing/client/requests/index.d.ts +1 -0
  14. package/api/resources/billing/types/CountBillingProductsParams.d.ts +5 -0
  15. package/api/resources/billing/types/ListBillingProductsParams.d.ts +5 -0
  16. package/api/resources/billing/types/ListProductPricesParams.d.ts +5 -0
  17. package/api/resources/billing/types/SearchBillingPricesParams.d.ts +15 -0
  18. package/api/resources/{events/types/ListMetricCountsResponse.d.ts → billing/types/SearchBillingPricesResponse.d.ts} +3 -3
  19. package/api/resources/billing/types/index.d.ts +2 -0
  20. package/api/resources/billing/types/index.js +2 -0
  21. package/api/resources/companies/client/Client.d.ts +2 -4
  22. package/api/resources/companies/client/Client.js +45 -37
  23. package/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
  24. package/api/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  25. package/api/resources/components/client/Client.js +7 -7
  26. package/api/resources/crm/client/Client.js +5 -5
  27. package/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  28. package/api/resources/entitlements/client/Client.js +27 -21
  29. package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +4 -0
  30. package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +3 -0
  31. package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -0
  32. package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +4 -0
  33. package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +3 -0
  34. package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -0
  35. package/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +2 -0
  36. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  37. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  38. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  39. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  40. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  41. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  42. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  43. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  44. package/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +2 -0
  45. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  46. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  47. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  48. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  49. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  50. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  51. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  52. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  53. package/api/resources/entitlements/types/index.d.ts +4 -0
  54. package/api/resources/entitlements/types/index.js +4 -0
  55. package/api/resources/events/client/Client.d.ts +0 -13
  56. package/api/resources/events/client/Client.js +7 -140
  57. package/api/resources/events/client/requests/index.d.ts +0 -1
  58. package/api/resources/events/types/index.d.ts +0 -2
  59. package/api/resources/events/types/index.js +0 -2
  60. package/api/resources/features/client/Client.js +19 -19
  61. package/api/resources/plangroups/client/Client.js +3 -3
  62. package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  63. package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  64. package/api/resources/plans/client/Client.d.ts +2 -1
  65. package/api/resources/plans/client/Client.js +12 -11
  66. package/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
  67. package/api/resources/webhooks/client/Client.js +9 -9
  68. package/api/types/BillingCustomerSubscription.d.ts +3 -0
  69. package/api/types/BillingPriceView.d.ts +18 -0
  70. package/api/types/BillingProductDetailResponseData.d.ts +1 -1
  71. package/api/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
  72. package/api/types/BillingProductPlanResponseData.d.ts +2 -0
  73. package/api/types/BillingProductPriceResponseData.d.ts +15 -0
  74. package/api/types/BillingProductPricing.d.ts +3 -0
  75. package/api/types/BillingSubscriptionResponseData.d.ts +9 -2
  76. package/api/types/BillingSubscriptionView.d.ts +23 -0
  77. package/api/types/CompanyDetailResponseData.d.ts +2 -1
  78. package/api/types/CompanyOverrideResponseData.d.ts +3 -1
  79. package/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
  80. package/api/types/ComponentCapabilities.d.ts +6 -0
  81. package/api/types/ComponentHydrateResponseData.d.ts +1 -0
  82. package/api/types/ComponentPreviewResponseData.d.ts +1 -0
  83. package/api/types/CreateEntitlementReqCommon.d.ts +14 -0
  84. package/api/types/{CreateReqCommonMetricPeriod.d.ts → CreateEntitlementReqCommonMetricPeriod.d.ts} +3 -2
  85. package/api/types/{UpdateReqCommonMetricPeriod.js → CreateEntitlementReqCommonMetricPeriod.js} +3 -2
  86. package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  87. package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  88. package/api/types/{CreateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
  89. package/api/types/{UpdateReqCommonValueType.js → CreateEntitlementReqCommonValueType.js} +2 -2
  90. package/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  91. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
  92. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
  93. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
  94. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
  95. package/api/types/FeatureCompanyResponseData.d.ts +2 -0
  96. package/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
  97. package/api/types/FeatureUsageResponseData.d.ts +2 -0
  98. package/api/types/PlanDetailResponseData.d.ts +3 -0
  99. package/api/types/PlanEntitlementResponseData.d.ts +3 -0
  100. package/api/types/PlanGroupDetailResponseData.d.ts +3 -0
  101. package/api/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  102. package/api/types/PlanGroupResponseData.d.ts +2 -0
  103. package/api/types/{RuleConditionResourceResponseData.d.ts → PreviewObjectResponseData.d.ts} +3 -1
  104. package/api/types/RuleConditionDetailResponseData.d.ts +2 -1
  105. package/api/types/RuleConditionResponseData.d.ts +1 -0
  106. package/api/types/UpdateEntitlementReqCommon.d.ts +13 -0
  107. package/api/types/{UpdateReqCommonMetricPeriod.d.ts → UpdateEntitlementReqCommonMetricPeriod.d.ts} +3 -2
  108. package/{dist/api/types/CreateReqCommonMetricPeriod.js → api/types/UpdateEntitlementReqCommonMetricPeriod.js} +3 -2
  109. package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  110. package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  111. package/api/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  112. package/{dist/api/types/CreateReqCommonValueType.js → api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
  113. package/api/types/index.d.ts +14 -8
  114. package/api/types/index.js +14 -8
  115. package/core/fetcher/Fetcher.d.ts +1 -1
  116. package/core/fetcher/getResponseBody.js +3 -0
  117. package/core/fetcher/requestWithRetries.js +13 -4
  118. package/dist/Client.js +1 -1
  119. package/dist/api/resources/accesstokens/client/Client.js +1 -1
  120. package/dist/api/resources/accounts/client/Client.js +14 -14
  121. package/dist/api/resources/billing/client/Client.d.ts +21 -5
  122. package/dist/api/resources/billing/client/Client.js +167 -24
  123. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +9 -0
  124. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -1
  125. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -1
  126. package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +3 -3
  127. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +9 -0
  128. package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +9 -0
  129. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +20 -0
  130. package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
  131. package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +5 -0
  132. package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +5 -0
  133. package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +5 -0
  134. package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +15 -0
  135. package/dist/api/resources/{events/types/ListMetricCountsResponse.d.ts → billing/types/SearchBillingPricesResponse.d.ts} +3 -3
  136. package/dist/api/resources/billing/types/index.d.ts +2 -0
  137. package/dist/api/resources/billing/types/index.js +2 -0
  138. package/dist/api/resources/companies/client/Client.d.ts +2 -4
  139. package/dist/api/resources/companies/client/Client.js +45 -37
  140. package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
  141. package/dist/api/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  142. package/dist/api/resources/components/client/Client.js +7 -7
  143. package/dist/api/resources/crm/client/Client.js +5 -5
  144. package/dist/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  145. package/dist/api/resources/entitlements/client/Client.js +27 -21
  146. package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +4 -0
  147. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +3 -0
  148. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -0
  149. package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +4 -0
  150. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +3 -0
  151. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -0
  152. package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +2 -0
  153. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  154. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  155. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  156. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  157. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  158. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  159. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  160. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  161. package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +2 -0
  162. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  163. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  164. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  165. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  166. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  167. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  168. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  169. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  170. package/dist/api/resources/entitlements/types/index.d.ts +4 -0
  171. package/dist/api/resources/entitlements/types/index.js +4 -0
  172. package/dist/api/resources/events/client/Client.d.ts +0 -13
  173. package/dist/api/resources/events/client/Client.js +7 -140
  174. package/dist/api/resources/events/client/requests/index.d.ts +0 -1
  175. package/dist/api/resources/events/types/index.d.ts +0 -2
  176. package/dist/api/resources/events/types/index.js +0 -2
  177. package/dist/api/resources/features/client/Client.js +19 -19
  178. package/dist/api/resources/plangroups/client/Client.js +3 -3
  179. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  180. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  181. package/dist/api/resources/plans/client/Client.d.ts +2 -1
  182. package/dist/api/resources/plans/client/Client.js +12 -11
  183. package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
  184. package/dist/api/resources/webhooks/client/Client.js +9 -9
  185. package/dist/api/types/BillingCustomerSubscription.d.ts +3 -0
  186. package/dist/api/types/BillingPriceView.d.ts +18 -0
  187. package/dist/api/types/BillingProductDetailResponseData.d.ts +1 -1
  188. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
  189. package/dist/api/types/BillingProductPlanResponseData.d.ts +2 -0
  190. package/dist/api/types/BillingProductPriceResponseData.d.ts +15 -0
  191. package/dist/api/types/BillingProductPriceResponseData.js +5 -0
  192. package/dist/api/types/BillingProductPricing.d.ts +3 -0
  193. package/dist/api/types/BillingSubscriptionResponseData.d.ts +9 -2
  194. package/dist/api/types/BillingSubscriptionView.d.ts +23 -0
  195. package/dist/api/types/BillingSubscriptionView.js +5 -0
  196. package/dist/api/types/CompanyDetailResponseData.d.ts +2 -1
  197. package/dist/api/types/CompanyOverrideResponseData.d.ts +3 -1
  198. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
  199. package/dist/api/types/ComponentCapabilities.d.ts +6 -0
  200. package/dist/api/types/ComponentCapabilities.js +5 -0
  201. package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
  202. package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
  203. package/dist/api/types/CreateEntitlementReqCommon.d.ts +14 -0
  204. package/dist/api/types/CreateEntitlementReqCommon.js +5 -0
  205. package/dist/api/types/{CreateReqCommonMetricPeriod.d.ts → CreateEntitlementReqCommonMetricPeriod.d.ts} +3 -2
  206. package/{api/types/CreateReqCommonMetricPeriod.js → dist/api/types/CreateEntitlementReqCommonMetricPeriod.js} +3 -2
  207. package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  208. package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  209. package/dist/api/types/{CreateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
  210. package/dist/api/types/{UpdateReqCommonValueType.js → CreateEntitlementReqCommonValueType.js} +2 -2
  211. package/dist/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  212. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
  213. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
  214. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
  215. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
  216. package/dist/api/types/FeatureCompanyResponseData.d.ts +2 -0
  217. package/dist/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
  218. package/dist/api/types/FeatureUsageResponseData.d.ts +2 -0
  219. package/dist/api/types/PlanDetailResponseData.d.ts +3 -0
  220. package/dist/api/types/PlanEntitlementResponseData.d.ts +3 -0
  221. package/dist/api/types/PlanGroupDetailResponseData.d.ts +3 -0
  222. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  223. package/dist/api/types/PlanGroupResponseData.d.ts +2 -0
  224. package/dist/api/types/{RuleConditionResourceResponseData.d.ts → PreviewObjectResponseData.d.ts} +3 -1
  225. package/dist/api/types/PreviewObjectResponseData.js +5 -0
  226. package/dist/api/types/RuleConditionDetailResponseData.d.ts +2 -1
  227. package/dist/api/types/RuleConditionResponseData.d.ts +1 -0
  228. package/dist/api/types/UpdateEntitlementReqCommon.d.ts +13 -0
  229. package/dist/api/types/UpdateEntitlementReqCommon.js +5 -0
  230. package/dist/api/types/{UpdateReqCommonMetricPeriod.d.ts → UpdateEntitlementReqCommonMetricPeriod.d.ts} +3 -2
  231. package/dist/api/types/{UpdateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonMetricPeriod.js} +3 -2
  232. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  233. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  234. package/dist/api/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  235. package/{api/types/CreateReqCommonValueType.js → dist/api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
  236. package/dist/api/types/index.d.ts +14 -8
  237. package/dist/api/types/index.js +14 -8
  238. package/dist/core/fetcher/Fetcher.d.ts +1 -1
  239. package/dist/core/fetcher/getResponseBody.js +3 -0
  240. package/dist/core/fetcher/requestWithRetries.js +13 -4
  241. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
  242. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +2 -0
  243. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +1 -0
  244. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +1 -0
  245. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +3 -3
  246. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +3 -3
  247. package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +3 -0
  248. package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +3 -0
  249. package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +3 -0
  250. package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +3 -0
  251. package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +3 -0
  252. package/dist/serialization/resources/billing/types/ListProductPricesParams.js +3 -0
  253. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
  254. package/dist/serialization/resources/{events/types/ListMetricCountsResponse.js → billing/types/SearchBillingPricesParams.js} +7 -6
  255. package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
  256. package/{serialization/resources/events/types/ListMetricCountsResponse.js → dist/serialization/resources/billing/types/SearchBillingPricesResponse.js} +6 -6
  257. package/dist/serialization/resources/billing/types/index.d.ts +2 -0
  258. package/dist/serialization/resources/billing/types/index.js +2 -0
  259. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  260. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +1 -0
  261. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  262. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
  263. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
  264. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +4 -0
  265. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -0
  266. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
  267. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
  268. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +4 -0
  269. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
  270. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -0
  271. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
  272. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +1 -0
  273. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  274. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  275. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  276. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  277. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  278. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  279. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  280. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  281. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
  282. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +1 -0
  283. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  284. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  285. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  286. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  287. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  288. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  289. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  290. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  291. package/dist/serialization/resources/entitlements/types/index.d.ts +4 -0
  292. package/dist/serialization/resources/entitlements/types/index.js +4 -0
  293. package/dist/serialization/resources/events/types/index.d.ts +0 -2
  294. package/dist/serialization/resources/events/types/index.js +0 -2
  295. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  296. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +2 -0
  297. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  298. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +2 -0
  299. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
  300. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
  301. package/dist/serialization/types/BillingCustomerSubscription.d.ts +3 -0
  302. package/dist/serialization/types/BillingCustomerSubscription.js +3 -0
  303. package/dist/serialization/types/BillingPriceView.d.ts +24 -0
  304. package/dist/serialization/types/BillingPriceView.js +45 -0
  305. package/dist/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
  306. package/dist/serialization/types/BillingProductDetailResponseData.js +1 -1
  307. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
  308. package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +2 -1
  309. package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
  310. package/dist/serialization/types/BillingProductPlanResponseData.js +2 -0
  311. package/dist/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
  312. package/dist/serialization/types/{MetricCountsHourlyResponseData.js → BillingProductPriceResponseData.js} +11 -8
  313. package/dist/serialization/types/BillingProductPricing.d.ts +3 -0
  314. package/dist/serialization/types/BillingProductPricing.js +3 -0
  315. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +9 -2
  316. package/dist/serialization/types/BillingSubscriptionResponseData.js +9 -2
  317. package/dist/serialization/types/BillingSubscriptionView.d.ts +31 -0
  318. package/dist/serialization/types/BillingSubscriptionView.js +52 -0
  319. package/dist/serialization/types/CompanyDetailResponseData.d.ts +3 -2
  320. package/dist/serialization/types/CompanyDetailResponseData.js +3 -2
  321. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
  322. package/dist/serialization/types/CompanyOverrideResponseData.js +3 -1
  323. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +3 -0
  324. package/dist/serialization/types/CompanyPlanDetailResponseData.js +3 -0
  325. package/dist/serialization/types/ComponentCapabilities.d.ts +12 -0
  326. package/dist/serialization/types/{UpdateReqCommonValueType.js → ComponentCapabilities.js} +4 -2
  327. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +3 -1
  328. package/dist/serialization/types/ComponentHydrateResponseData.js +3 -1
  329. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +3 -1
  330. package/dist/serialization/types/ComponentPreviewResponseData.js +3 -1
  331. package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +22 -0
  332. package/{serialization/types/CreateReqCommon.js → dist/serialization/types/CreateEntitlementReqCommon.js} +9 -6
  333. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  334. package/dist/serialization/types/{RuleConditionResourceResponseData.js → CreateEntitlementReqCommonMetricPeriod.js} +2 -5
  335. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  336. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  337. package/dist/serialization/types/{UpdateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
  338. package/dist/serialization/types/{CreateReqCommonMetricPeriod.js → CreateEntitlementReqCommonValueType.js} +2 -2
  339. package/dist/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  340. package/dist/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -0
  341. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  342. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  343. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  344. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
  345. package/dist/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
  346. package/dist/serialization/types/FeatureCompanyResponseData.js +1 -0
  347. package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
  348. package/dist/serialization/types/FeatureCompanyUserResponseData.js +1 -0
  349. package/dist/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  350. package/dist/serialization/types/FeatureUsageResponseData.js +1 -0
  351. package/dist/serialization/types/MeterRequestBody.d.ts +3 -3
  352. package/dist/serialization/types/MeterRequestBody.js +3 -3
  353. package/dist/serialization/types/PlanDetailResponseData.d.ts +3 -0
  354. package/dist/serialization/types/PlanDetailResponseData.js +3 -0
  355. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
  356. package/dist/serialization/types/PlanEntitlementResponseData.js +4 -0
  357. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +3 -0
  358. package/dist/serialization/types/PlanGroupDetailResponseData.js +3 -0
  359. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  360. package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +3 -0
  361. package/dist/serialization/types/PlanGroupResponseData.d.ts +2 -0
  362. package/dist/serialization/types/PlanGroupResponseData.js +2 -0
  363. package/dist/serialization/types/PreviewObjectResponseData.d.ts +15 -0
  364. package/{serialization/types/RuleConditionResourceResponseData.js → dist/serialization/types/PreviewObjectResponseData.js} +4 -2
  365. package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
  366. package/dist/serialization/types/RuleConditionDetailResponseData.js +3 -2
  367. package/dist/serialization/types/RuleConditionResponseData.d.ts +1 -0
  368. package/dist/serialization/types/RuleConditionResponseData.js +1 -0
  369. package/dist/serialization/types/RulesDetailResponseData.d.ts +1 -1
  370. package/dist/serialization/types/RulesDetailResponseData.js +1 -1
  371. package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +21 -0
  372. package/{serialization/types/UpdateReqCommon.js → dist/serialization/types/UpdateEntitlementReqCommon.js} +9 -6
  373. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  374. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
  375. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  376. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  377. package/{serialization/types/CreateReqCommonValueType.d.ts → dist/serialization/types/UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  378. package/dist/serialization/types/{UpdateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonValueType.js} +2 -2
  379. package/dist/serialization/types/index.d.ts +14 -8
  380. package/dist/serialization/types/index.js +14 -8
  381. package/package.json +1 -2
  382. package/reference.md +57 -55
  383. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
  384. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +2 -0
  385. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +1 -0
  386. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +1 -0
  387. package/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +3 -3
  388. package/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +3 -3
  389. package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +3 -0
  390. package/serialization/resources/billing/types/CountBillingProductsParams.js +3 -0
  391. package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +3 -0
  392. package/serialization/resources/billing/types/ListBillingProductsParams.js +3 -0
  393. package/serialization/resources/billing/types/ListProductPricesParams.d.ts +3 -0
  394. package/serialization/resources/billing/types/ListProductPricesParams.js +3 -0
  395. package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
  396. package/serialization/resources/billing/types/SearchBillingPricesParams.js +37 -0
  397. package/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
  398. package/serialization/resources/billing/types/SearchBillingPricesResponse.js +36 -0
  399. package/serialization/resources/billing/types/index.d.ts +2 -0
  400. package/serialization/resources/billing/types/index.js +2 -0
  401. package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  402. package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +1 -0
  403. package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  404. package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
  405. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
  406. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +4 -0
  407. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -0
  408. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
  409. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
  410. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +4 -0
  411. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
  412. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -0
  413. package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
  414. package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +1 -0
  415. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  416. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  417. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  418. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  419. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  420. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  421. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  422. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  423. package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
  424. package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +1 -0
  425. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  426. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  427. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  428. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  429. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  430. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  431. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  432. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  433. package/serialization/resources/entitlements/types/index.d.ts +4 -0
  434. package/serialization/resources/entitlements/types/index.js +4 -0
  435. package/serialization/resources/events/types/index.d.ts +0 -2
  436. package/serialization/resources/events/types/index.js +0 -2
  437. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  438. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +2 -0
  439. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  440. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +2 -0
  441. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
  442. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
  443. package/serialization/types/BillingCustomerSubscription.d.ts +3 -0
  444. package/serialization/types/BillingCustomerSubscription.js +3 -0
  445. package/serialization/types/BillingPriceView.d.ts +24 -0
  446. package/serialization/types/BillingPriceView.js +45 -0
  447. package/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
  448. package/serialization/types/BillingProductDetailResponseData.js +1 -1
  449. package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
  450. package/serialization/types/BillingProductForSubscriptionResponseData.js +2 -1
  451. package/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
  452. package/serialization/types/BillingProductPlanResponseData.js +2 -0
  453. package/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
  454. package/serialization/types/{MetricCountsHourlyResponseData.js → BillingProductPriceResponseData.js} +11 -8
  455. package/serialization/types/BillingProductPricing.d.ts +3 -0
  456. package/serialization/types/BillingProductPricing.js +3 -0
  457. package/serialization/types/BillingSubscriptionResponseData.d.ts +9 -2
  458. package/serialization/types/BillingSubscriptionResponseData.js +9 -2
  459. package/serialization/types/BillingSubscriptionView.d.ts +31 -0
  460. package/serialization/types/BillingSubscriptionView.js +52 -0
  461. package/serialization/types/CompanyDetailResponseData.d.ts +3 -2
  462. package/serialization/types/CompanyDetailResponseData.js +3 -2
  463. package/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
  464. package/serialization/types/CompanyOverrideResponseData.js +3 -1
  465. package/serialization/types/CompanyPlanDetailResponseData.d.ts +3 -0
  466. package/serialization/types/CompanyPlanDetailResponseData.js +3 -0
  467. package/serialization/types/ComponentCapabilities.d.ts +12 -0
  468. package/{dist/serialization/types/CreateReqCommonValueType.js → serialization/types/ComponentCapabilities.js} +4 -2
  469. package/serialization/types/ComponentHydrateResponseData.d.ts +3 -1
  470. package/serialization/types/ComponentHydrateResponseData.js +3 -1
  471. package/serialization/types/ComponentPreviewResponseData.d.ts +3 -1
  472. package/serialization/types/ComponentPreviewResponseData.js +3 -1
  473. package/serialization/types/CreateEntitlementReqCommon.d.ts +22 -0
  474. package/{dist/serialization/types/CreateReqCommon.js → serialization/types/CreateEntitlementReqCommon.js} +9 -6
  475. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  476. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +31 -0
  477. package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  478. package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  479. package/{dist/serialization/types/CreateReqCommonValueType.d.ts → serialization/types/CreateEntitlementReqCommonValueType.d.ts} +2 -2
  480. package/serialization/types/CreateEntitlementReqCommonValueType.js +31 -0
  481. package/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  482. package/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -0
  483. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  484. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  485. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  486. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
  487. package/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
  488. package/serialization/types/FeatureCompanyResponseData.js +1 -0
  489. package/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
  490. package/serialization/types/FeatureCompanyUserResponseData.js +1 -0
  491. package/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  492. package/serialization/types/FeatureUsageResponseData.js +1 -0
  493. package/serialization/types/MeterRequestBody.d.ts +3 -3
  494. package/serialization/types/MeterRequestBody.js +3 -3
  495. package/serialization/types/PlanDetailResponseData.d.ts +3 -0
  496. package/serialization/types/PlanDetailResponseData.js +3 -0
  497. package/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
  498. package/serialization/types/PlanEntitlementResponseData.js +4 -0
  499. package/serialization/types/PlanGroupDetailResponseData.d.ts +3 -0
  500. package/serialization/types/PlanGroupDetailResponseData.js +3 -0
  501. package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  502. package/serialization/types/PlanGroupPlanDetailResponseData.js +3 -0
  503. package/serialization/types/PlanGroupResponseData.d.ts +2 -0
  504. package/serialization/types/PlanGroupResponseData.js +2 -0
  505. package/serialization/types/PreviewObjectResponseData.d.ts +15 -0
  506. package/serialization/types/PreviewObjectResponseData.js +36 -0
  507. package/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
  508. package/serialization/types/RuleConditionDetailResponseData.js +3 -2
  509. package/serialization/types/RuleConditionResponseData.d.ts +1 -0
  510. package/serialization/types/RuleConditionResponseData.js +1 -0
  511. package/serialization/types/RulesDetailResponseData.d.ts +1 -1
  512. package/serialization/types/RulesDetailResponseData.js +1 -1
  513. package/serialization/types/UpdateEntitlementReqCommon.d.ts +21 -0
  514. package/{dist/serialization/types/UpdateReqCommon.js → serialization/types/UpdateEntitlementReqCommon.js} +9 -6
  515. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  516. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
  517. package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  518. package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  519. package/serialization/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  520. package/serialization/types/UpdateEntitlementReqCommonValueType.js +31 -0
  521. package/serialization/types/index.d.ts +14 -8
  522. package/serialization/types/index.js +14 -8
  523. package/api/resources/events/client/requests/ListMetricCountsRequest.d.ts +0 -25
  524. package/api/resources/events/types/ListMetricCountsParams.d.ts +0 -20
  525. package/api/types/CreateReqCommon.d.ts +0 -12
  526. package/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
  527. package/api/types/UpdateReqCommon.d.ts +0 -11
  528. package/dist/api/resources/events/client/requests/ListMetricCountsRequest.d.ts +0 -25
  529. package/dist/api/resources/events/types/ListMetricCountsParams.d.ts +0 -20
  530. package/dist/api/types/CreateReqCommon.d.ts +0 -12
  531. package/dist/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
  532. package/dist/api/types/UpdateReqCommon.d.ts +0 -11
  533. package/dist/serialization/resources/events/types/ListMetricCountsParams.d.ts +0 -21
  534. package/dist/serialization/resources/events/types/ListMetricCountsParams.js +0 -42
  535. package/dist/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
  536. package/dist/serialization/types/CreateReqCommon.d.ts +0 -19
  537. package/dist/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
  538. package/dist/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
  539. package/dist/serialization/types/RuleConditionResourceResponseData.d.ts +0 -13
  540. package/dist/serialization/types/UpdateReqCommon.d.ts +0 -18
  541. package/dist/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
  542. package/serialization/resources/events/types/ListMetricCountsParams.d.ts +0 -21
  543. package/serialization/resources/events/types/ListMetricCountsParams.js +0 -42
  544. package/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
  545. package/serialization/types/CreateReqCommon.d.ts +0 -19
  546. package/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
  547. package/serialization/types/CreateReqCommonMetricPeriod.js +0 -31
  548. package/serialization/types/CreateReqCommonValueType.js +0 -31
  549. package/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
  550. package/serialization/types/RuleConditionResourceResponseData.d.ts +0 -13
  551. package/serialization/types/UpdateReqCommon.d.ts +0 -18
  552. package/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
  553. package/serialization/types/UpdateReqCommonMetricPeriod.js +0 -31
  554. package/serialization/types/UpdateReqCommonValueType.js +0 -31
  555. /package/api/resources/{events/client/requests/ListMetricCountsRequest.js → billing/client/requests/SearchBillingPricesRequest.js} +0 -0
  556. /package/api/resources/{events/types/ListMetricCountsParams.js → billing/types/SearchBillingPricesParams.js} +0 -0
  557. /package/api/resources/{events/types/ListMetricCountsResponse.js → billing/types/SearchBillingPricesResponse.js} +0 -0
  558. /package/api/types/{CreateReqCommon.js → BillingPriceView.js} +0 -0
  559. /package/api/types/{MetricCountsHourlyResponseData.js → BillingProductPriceResponseData.js} +0 -0
  560. /package/api/types/{RuleConditionResourceResponseData.js → BillingSubscriptionView.js} +0 -0
  561. /package/api/types/{UpdateReqCommon.js → ComponentCapabilities.js} +0 -0
  562. /package/{dist/api/resources/events/client/requests/ListMetricCountsRequest.js → api/types/CreateEntitlementReqCommon.js} +0 -0
  563. /package/{dist/api/resources/events/types/ListMetricCountsParams.js → api/types/PreviewObjectResponseData.js} +0 -0
  564. /package/{dist/api/resources/events/types/ListMetricCountsResponse.js → api/types/UpdateEntitlementReqCommon.js} +0 -0
  565. /package/dist/api/{types/CreateReqCommon.js → resources/billing/client/requests/SearchBillingPricesRequest.js} +0 -0
  566. /package/dist/api/{types/MetricCountsHourlyResponseData.js → resources/billing/types/SearchBillingPricesParams.js} +0 -0
  567. /package/dist/api/{types/RuleConditionResourceResponseData.js → resources/billing/types/SearchBillingPricesResponse.js} +0 -0
  568. /package/dist/api/types/{UpdateReqCommon.js → BillingPriceView.js} +0 -0
package/Client.js CHANGED
@@ -71,7 +71,7 @@ class SchematicClient {
71
71
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
72
72
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-plans"),
73
73
  method: "GET",
74
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -72,7 +72,7 @@ class Accesstokens {
72
72
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
73
73
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "temporary-access-tokens"),
74
74
  method: "POST",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
76
  contentType: "application/json",
77
77
  requestType: "json",
78
78
  body: serializers.IssueTemporaryAccessTokenRequestBody.jsonOrThrow(request, {
@@ -81,7 +81,7 @@ class Accounts {
81
81
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
82
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "api-keys"),
83
83
  method: "GET",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -174,7 +174,7 @@ class Accounts {
174
174
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
175
175
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "api-keys"),
176
176
  method: "POST",
177
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
177
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
178
178
  contentType: "application/json",
179
179
  requestType: "json",
180
180
  body: serializers.CreateApiKeyRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -265,7 +265,7 @@ class Accounts {
265
265
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
266
266
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `api-keys/${encodeURIComponent(apiKeyId)}`),
267
267
  method: "GET",
268
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
268
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
269
269
  contentType: "application/json",
270
270
  requestType: "json",
271
271
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -357,7 +357,7 @@ class Accounts {
357
357
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
358
358
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `api-keys/${encodeURIComponent(apiKeyId)}`),
359
359
  method: "PUT",
360
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
360
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
361
361
  contentType: "application/json",
362
362
  requestType: "json",
363
363
  body: serializers.UpdateApiKeyRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -456,7 +456,7 @@ class Accounts {
456
456
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
457
457
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `api-keys/${encodeURIComponent(apiKeyId)}`),
458
458
  method: "DELETE",
459
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
459
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
460
460
  contentType: "application/json",
461
461
  requestType: "json",
462
462
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -560,7 +560,7 @@ class Accounts {
560
560
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
561
561
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "api-keys/count"),
562
562
  method: "GET",
563
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
563
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
564
564
  contentType: "application/json",
565
565
  queryParameters: _queryParams,
566
566
  requestType: "json",
@@ -668,7 +668,7 @@ class Accounts {
668
668
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
669
669
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "api-requests"),
670
670
  method: "GET",
671
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
671
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
672
672
  contentType: "application/json",
673
673
  queryParameters: _queryParams,
674
674
  requestType: "json",
@@ -759,7 +759,7 @@ class Accounts {
759
759
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
760
760
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `api-requests/${encodeURIComponent(apiRequestId)}`),
761
761
  method: "GET",
762
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
762
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
763
763
  contentType: "application/json",
764
764
  requestType: "json",
765
765
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -866,7 +866,7 @@ class Accounts {
866
866
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
867
867
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "api-requests/count"),
868
868
  method: "GET",
869
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
869
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
870
870
  contentType: "application/json",
871
871
  queryParameters: _queryParams,
872
872
  requestType: "json",
@@ -973,7 +973,7 @@ class Accounts {
973
973
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
974
974
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "environments"),
975
975
  method: "GET",
976
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
976
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
977
977
  contentType: "application/json",
978
978
  queryParameters: _queryParams,
979
979
  requestType: "json",
@@ -1067,7 +1067,7 @@ class Accounts {
1067
1067
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1068
1068
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "environments"),
1069
1069
  method: "POST",
1070
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1070
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1071
1071
  contentType: "application/json",
1072
1072
  requestType: "json",
1073
1073
  body: serializers.CreateEnvironmentRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1158,7 +1158,7 @@ class Accounts {
1158
1158
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1159
1159
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `environments/${encodeURIComponent(environmentId)}`),
1160
1160
  method: "GET",
1161
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1161
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1162
1162
  contentType: "application/json",
1163
1163
  requestType: "json",
1164
1164
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1250,7 +1250,7 @@ class Accounts {
1250
1250
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1251
1251
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `environments/${encodeURIComponent(environmentId)}`),
1252
1252
  method: "PUT",
1253
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1253
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1254
1254
  contentType: "application/json",
1255
1255
  requestType: "json",
1256
1256
  body: serializers.UpdateEnvironmentRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1349,7 +1349,7 @@ class Accounts {
1349
1349
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1350
1350
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `environments/${encodeURIComponent(environmentId)}`),
1351
1351
  method: "DELETE",
1352
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1352
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1353
1353
  contentType: "application/json",
1354
1354
  requestType: "json",
1355
1355
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -129,9 +129,9 @@ export declare class Billing {
129
129
  *
130
130
  * @example
131
131
  * await client.billing.upsertBillingMeter({
132
- * displayName: "DisplayName",
133
- * eventName: "EventName",
134
- * eventPayloadKey: "EventPayloadKey",
132
+ * displayName: "display_name",
133
+ * eventName: "event_name",
134
+ * eventPayloadKey: "event_payload_key",
135
135
  * externalId: "external_id"
136
136
  * })
137
137
  */
@@ -168,6 +168,19 @@ export declare class Billing {
168
168
  * })
169
169
  */
170
170
  upsertPaymentMethod(request: Schematic.CreatePaymentMethodRequestBody, requestOptions?: Billing.RequestOptions): Promise<Schematic.UpsertPaymentMethodResponse>;
171
+ /**
172
+ * @param {Schematic.SearchBillingPricesRequest} request
173
+ * @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
174
+ *
175
+ * @throws {@link Schematic.BadRequestError}
176
+ * @throws {@link Schematic.UnauthorizedError}
177
+ * @throws {@link Schematic.ForbiddenError}
178
+ * @throws {@link Schematic.InternalServerError}
179
+ *
180
+ * @example
181
+ * await client.billing.searchBillingPrices()
182
+ */
183
+ searchBillingPrices(request?: Schematic.SearchBillingPricesRequest, requestOptions?: Billing.RequestOptions): Promise<Schematic.SearchBillingPricesResponse>;
171
184
  /**
172
185
  * @param {Schematic.CreateBillingPriceRequestBody} request
173
186
  * @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
@@ -183,7 +196,8 @@ export declare class Billing {
183
196
  * interval: "interval",
184
197
  * price: 1,
185
198
  * priceExternalId: "price_external_id",
186
- * productExternalId: "product_external_id"
199
+ * productExternalId: "product_external_id",
200
+ * usageType: "usage_type"
187
201
  * })
188
202
  */
189
203
  upsertBillingPrice(request: Schematic.CreateBillingPriceRequestBody, requestOptions?: Billing.RequestOptions): Promise<Schematic.UpsertBillingPriceResponse>;
@@ -277,7 +291,9 @@ export declare class Billing {
277
291
  * interval: "interval",
278
292
  * price: 1,
279
293
  * priceExternalId: "price_external_id",
280
- * productExternalId: "product_external_id"
294
+ * productExternalId: "product_external_id",
295
+ * quantity: 1,
296
+ * usageType: "usage_type"
281
297
  * }],
282
298
  * subscriptionExternalId: "subscription_external_id",
283
299
  * totalPrice: 1
@@ -75,7 +75,7 @@ class Billing {
75
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
76
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/customer/upsert"),
77
77
  method: "POST",
78
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
79
  contentType: "application/json",
80
80
  requestType: "json",
81
81
  body: serializers.CreateBillingCustomerRequestBody.jsonOrThrow(request, {
@@ -185,7 +185,7 @@ class Billing {
185
185
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
186
186
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/customers"),
187
187
  method: "GET",
188
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
189
189
  contentType: "application/json",
190
190
  queryParameters: _queryParams,
191
191
  requestType: "json",
@@ -293,7 +293,7 @@ class Billing {
293
293
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
294
294
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/customers/count"),
295
295
  method: "GET",
296
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
296
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
297
297
  contentType: "application/json",
298
298
  queryParameters: _queryParams,
299
299
  requestType: "json",
@@ -401,7 +401,7 @@ class Billing {
401
401
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
402
402
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/invoices"),
403
403
  method: "GET",
404
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
404
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
405
405
  contentType: "application/json",
406
406
  queryParameters: _queryParams,
407
407
  requestType: "json",
@@ -500,7 +500,7 @@ class Billing {
500
500
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
501
501
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/invoices"),
502
502
  method: "POST",
503
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
503
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
504
504
  contentType: "application/json",
505
505
  requestType: "json",
506
506
  body: serializers.CreateInvoiceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -602,7 +602,7 @@ class Billing {
602
602
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
603
603
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/meter"),
604
604
  method: "GET",
605
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
605
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
606
606
  contentType: "application/json",
607
607
  queryParameters: _queryParams,
608
608
  requestType: "json",
@@ -686,9 +686,9 @@ class Billing {
686
686
  *
687
687
  * @example
688
688
  * await client.billing.upsertBillingMeter({
689
- * displayName: "DisplayName",
690
- * eventName: "EventName",
691
- * eventPayloadKey: "EventPayloadKey",
689
+ * displayName: "display_name",
690
+ * eventName: "event_name",
691
+ * eventPayloadKey: "event_payload_key",
692
692
  * externalId: "external_id"
693
693
  * })
694
694
  */
@@ -698,7 +698,7 @@ class Billing {
698
698
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
699
699
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/meter/upsert"),
700
700
  method: "POST",
701
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
701
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
702
702
  contentType: "application/json",
703
703
  requestType: "json",
704
704
  body: serializers.CreateMeterRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -806,7 +806,7 @@ class Billing {
806
806
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
807
807
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/payment-methods"),
808
808
  method: "GET",
809
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
809
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
810
810
  contentType: "application/json",
811
811
  queryParameters: _queryParams,
812
812
  requestType: "json",
@@ -901,7 +901,7 @@ class Billing {
901
901
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
902
902
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/payment-methods"),
903
903
  method: "POST",
904
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
904
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
905
905
  contentType: "application/json",
906
906
  requestType: "json",
907
907
  body: serializers.CreatePaymentMethodRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -974,6 +974,119 @@ class Billing {
974
974
  }
975
975
  });
976
976
  }
977
+ /**
978
+ * @param {Schematic.SearchBillingPricesRequest} request
979
+ * @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
980
+ *
981
+ * @throws {@link Schematic.BadRequestError}
982
+ * @throws {@link Schematic.UnauthorizedError}
983
+ * @throws {@link Schematic.ForbiddenError}
984
+ * @throws {@link Schematic.InternalServerError}
985
+ *
986
+ * @example
987
+ * await client.billing.searchBillingPrices()
988
+ */
989
+ searchBillingPrices(request = {}, requestOptions) {
990
+ var _a, _b;
991
+ return __awaiter(this, void 0, void 0, function* () {
992
+ const { ids, usageType, price, limit, offset } = request;
993
+ const _queryParams = {};
994
+ if (ids != null) {
995
+ if (Array.isArray(ids)) {
996
+ _queryParams["ids"] = ids.map((item) => item);
997
+ }
998
+ else {
999
+ _queryParams["ids"] = ids;
1000
+ }
1001
+ }
1002
+ if (usageType != null) {
1003
+ _queryParams["usage_type"] = usageType;
1004
+ }
1005
+ if (price != null) {
1006
+ _queryParams["price"] = price.toString();
1007
+ }
1008
+ if (limit != null) {
1009
+ _queryParams["limit"] = limit.toString();
1010
+ }
1011
+ if (offset != null) {
1012
+ _queryParams["offset"] = offset.toString();
1013
+ }
1014
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1015
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/price"),
1016
+ method: "GET",
1017
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1018
+ contentType: "application/json",
1019
+ queryParameters: _queryParams,
1020
+ requestType: "json",
1021
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1022
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1023
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1024
+ });
1025
+ if (_response.ok) {
1026
+ return serializers.SearchBillingPricesResponse.parseOrThrow(_response.body, {
1027
+ unrecognizedObjectKeys: "passthrough",
1028
+ allowUnrecognizedUnionMembers: true,
1029
+ allowUnrecognizedEnumValues: true,
1030
+ skipValidation: true,
1031
+ breadcrumbsPrefix: ["response"],
1032
+ });
1033
+ }
1034
+ if (_response.error.reason === "status-code") {
1035
+ switch (_response.error.statusCode) {
1036
+ case 400:
1037
+ throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
1038
+ unrecognizedObjectKeys: "passthrough",
1039
+ allowUnrecognizedUnionMembers: true,
1040
+ allowUnrecognizedEnumValues: true,
1041
+ skipValidation: true,
1042
+ breadcrumbsPrefix: ["response"],
1043
+ }));
1044
+ case 401:
1045
+ throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
1046
+ unrecognizedObjectKeys: "passthrough",
1047
+ allowUnrecognizedUnionMembers: true,
1048
+ allowUnrecognizedEnumValues: true,
1049
+ skipValidation: true,
1050
+ breadcrumbsPrefix: ["response"],
1051
+ }));
1052
+ case 403:
1053
+ throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
1054
+ unrecognizedObjectKeys: "passthrough",
1055
+ allowUnrecognizedUnionMembers: true,
1056
+ allowUnrecognizedEnumValues: true,
1057
+ skipValidation: true,
1058
+ breadcrumbsPrefix: ["response"],
1059
+ }));
1060
+ case 500:
1061
+ throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
1062
+ unrecognizedObjectKeys: "passthrough",
1063
+ allowUnrecognizedUnionMembers: true,
1064
+ allowUnrecognizedEnumValues: true,
1065
+ skipValidation: true,
1066
+ breadcrumbsPrefix: ["response"],
1067
+ }));
1068
+ default:
1069
+ throw new errors.SchematicError({
1070
+ statusCode: _response.error.statusCode,
1071
+ body: _response.error.body,
1072
+ });
1073
+ }
1074
+ }
1075
+ switch (_response.error.reason) {
1076
+ case "non-json":
1077
+ throw new errors.SchematicError({
1078
+ statusCode: _response.error.statusCode,
1079
+ body: _response.error.rawBody,
1080
+ });
1081
+ case "timeout":
1082
+ throw new errors.SchematicTimeoutError();
1083
+ case "unknown":
1084
+ throw new errors.SchematicError({
1085
+ message: _response.error.errorMessage,
1086
+ });
1087
+ }
1088
+ });
1089
+ }
977
1090
  /**
978
1091
  * @param {Schematic.CreateBillingPriceRequestBody} request
979
1092
  * @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
@@ -989,7 +1102,8 @@ class Billing {
989
1102
  * interval: "interval",
990
1103
  * price: 1,
991
1104
  * priceExternalId: "price_external_id",
992
- * productExternalId: "product_external_id"
1105
+ * productExternalId: "product_external_id",
1106
+ * usageType: "usage_type"
993
1107
  * })
994
1108
  */
995
1109
  upsertBillingPrice(request, requestOptions) {
@@ -998,7 +1112,7 @@ class Billing {
998
1112
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
999
1113
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/price/upsert"),
1000
1114
  method: "POST",
1001
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1115
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1002
1116
  contentType: "application/json",
1003
1117
  requestType: "json",
1004
1118
  body: serializers.CreateBillingPriceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1086,7 +1200,7 @@ class Billing {
1086
1200
  listProductPrices(request = {}, requestOptions) {
1087
1201
  var _a, _b;
1088
1202
  return __awaiter(this, void 0, void 0, function* () {
1089
- const { ids, name, q, withoutLinkedToPlan, limit, offset } = request;
1203
+ const { ids, name, q, priceUsageType, withoutLinkedToPlan, withZeroPrice, withPricesOnly, limit, offset } = request;
1090
1204
  const _queryParams = {};
1091
1205
  if (ids != null) {
1092
1206
  if (Array.isArray(ids)) {
@@ -1102,9 +1216,18 @@ class Billing {
1102
1216
  if (q != null) {
1103
1217
  _queryParams["q"] = q;
1104
1218
  }
1219
+ if (priceUsageType != null) {
1220
+ _queryParams["price_usage_type"] = priceUsageType;
1221
+ }
1105
1222
  if (withoutLinkedToPlan != null) {
1106
1223
  _queryParams["without_linked_to_plan"] = withoutLinkedToPlan.toString();
1107
1224
  }
1225
+ if (withZeroPrice != null) {
1226
+ _queryParams["with_zero_price"] = withZeroPrice.toString();
1227
+ }
1228
+ if (withPricesOnly != null) {
1229
+ _queryParams["with_prices_only"] = withPricesOnly.toString();
1230
+ }
1108
1231
  if (limit != null) {
1109
1232
  _queryParams["limit"] = limit.toString();
1110
1233
  }
@@ -1114,7 +1237,7 @@ class Billing {
1114
1237
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1115
1238
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/product/prices"),
1116
1239
  method: "GET",
1117
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1240
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1118
1241
  contentType: "application/json",
1119
1242
  queryParameters: _queryParams,
1120
1243
  requestType: "json",
@@ -1205,7 +1328,7 @@ class Billing {
1205
1328
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1206
1329
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `billing/product/prices/${encodeURIComponent(billingId)}`),
1207
1330
  method: "DELETE",
1208
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1331
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1209
1332
  contentType: "application/json",
1210
1333
  requestType: "json",
1211
1334
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1301,7 +1424,7 @@ class Billing {
1301
1424
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1302
1425
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/product/upsert"),
1303
1426
  method: "POST",
1304
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1427
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1305
1428
  contentType: "application/json",
1306
1429
  requestType: "json",
1307
1430
  body: serializers.CreateBillingProductRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1389,7 +1512,7 @@ class Billing {
1389
1512
  listBillingProducts(request = {}, requestOptions) {
1390
1513
  var _a, _b;
1391
1514
  return __awaiter(this, void 0, void 0, function* () {
1392
- const { ids, name, q, withoutLinkedToPlan, limit, offset } = request;
1515
+ const { ids, name, q, priceUsageType, withoutLinkedToPlan, withZeroPrice, withPricesOnly, limit, offset } = request;
1393
1516
  const _queryParams = {};
1394
1517
  if (ids != null) {
1395
1518
  if (Array.isArray(ids)) {
@@ -1405,9 +1528,18 @@ class Billing {
1405
1528
  if (q != null) {
1406
1529
  _queryParams["q"] = q;
1407
1530
  }
1531
+ if (priceUsageType != null) {
1532
+ _queryParams["price_usage_type"] = priceUsageType;
1533
+ }
1408
1534
  if (withoutLinkedToPlan != null) {
1409
1535
  _queryParams["without_linked_to_plan"] = withoutLinkedToPlan.toString();
1410
1536
  }
1537
+ if (withZeroPrice != null) {
1538
+ _queryParams["with_zero_price"] = withZeroPrice.toString();
1539
+ }
1540
+ if (withPricesOnly != null) {
1541
+ _queryParams["with_prices_only"] = withPricesOnly.toString();
1542
+ }
1411
1543
  if (limit != null) {
1412
1544
  _queryParams["limit"] = limit.toString();
1413
1545
  }
@@ -1417,7 +1549,7 @@ class Billing {
1417
1549
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1418
1550
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/products"),
1419
1551
  method: "GET",
1420
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1552
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1421
1553
  contentType: "application/json",
1422
1554
  queryParameters: _queryParams,
1423
1555
  requestType: "json",
@@ -1505,7 +1637,7 @@ class Billing {
1505
1637
  countBillingProducts(request = {}, requestOptions) {
1506
1638
  var _a, _b;
1507
1639
  return __awaiter(this, void 0, void 0, function* () {
1508
- const { ids, name, q, withoutLinkedToPlan, limit, offset } = request;
1640
+ const { ids, name, q, priceUsageType, withoutLinkedToPlan, withZeroPrice, withPricesOnly, limit, offset } = request;
1509
1641
  const _queryParams = {};
1510
1642
  if (ids != null) {
1511
1643
  if (Array.isArray(ids)) {
@@ -1521,9 +1653,18 @@ class Billing {
1521
1653
  if (q != null) {
1522
1654
  _queryParams["q"] = q;
1523
1655
  }
1656
+ if (priceUsageType != null) {
1657
+ _queryParams["price_usage_type"] = priceUsageType;
1658
+ }
1524
1659
  if (withoutLinkedToPlan != null) {
1525
1660
  _queryParams["without_linked_to_plan"] = withoutLinkedToPlan.toString();
1526
1661
  }
1662
+ if (withZeroPrice != null) {
1663
+ _queryParams["with_zero_price"] = withZeroPrice.toString();
1664
+ }
1665
+ if (withPricesOnly != null) {
1666
+ _queryParams["with_prices_only"] = withPricesOnly.toString();
1667
+ }
1527
1668
  if (limit != null) {
1528
1669
  _queryParams["limit"] = limit.toString();
1529
1670
  }
@@ -1533,7 +1674,7 @@ class Billing {
1533
1674
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1534
1675
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/products/count"),
1535
1676
  method: "GET",
1536
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1677
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1537
1678
  contentType: "application/json",
1538
1679
  queryParameters: _queryParams,
1539
1680
  requestType: "json",
@@ -1625,7 +1766,9 @@ class Billing {
1625
1766
  * interval: "interval",
1626
1767
  * price: 1,
1627
1768
  * priceExternalId: "price_external_id",
1628
- * productExternalId: "product_external_id"
1769
+ * productExternalId: "product_external_id",
1770
+ * quantity: 1,
1771
+ * usageType: "usage_type"
1629
1772
  * }],
1630
1773
  * subscriptionExternalId: "subscription_external_id",
1631
1774
  * totalPrice: 1
@@ -1637,7 +1780,7 @@ class Billing {
1637
1780
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1638
1781
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/subscription/upsert"),
1639
1782
  method: "POST",
1640
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1783
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1641
1784
  contentType: "application/json",
1642
1785
  requestType: "json",
1643
1786
  body: serializers.CreateBillingSubscriptionsRequestBody.jsonOrThrow(request, {