@schematichq/schematic-typescript-node 1.1.5 → 1.1.7

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 (596) 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 +170 -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 +21 -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 +16 -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 +4 -6
  22. package/api/resources/companies/client/Client.js +47 -39
  23. package/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
  24. package/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +1 -1
  25. package/api/resources/companies/client/requests/LookupUserRequest.d.ts +1 -1
  26. package/api/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  27. package/api/resources/components/client/Client.js +7 -7
  28. package/api/resources/crm/client/Client.js +5 -5
  29. package/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  30. package/api/resources/entitlements/client/Client.d.ts +1 -1
  31. package/api/resources/entitlements/client/Client.js +28 -22
  32. package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +4 -0
  33. package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
  34. package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
  35. package/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +1 -1
  36. package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +4 -0
  37. package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
  38. package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
  39. package/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +2 -0
  40. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  41. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  42. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  43. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  44. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  45. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  46. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  47. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  48. package/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +2 -0
  49. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  50. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  51. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  52. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  53. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  54. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  55. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  56. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  57. package/api/resources/entitlements/types/index.d.ts +4 -0
  58. package/api/resources/entitlements/types/index.js +4 -0
  59. package/api/resources/events/client/Client.d.ts +0 -13
  60. package/api/resources/events/client/Client.js +7 -140
  61. package/api/resources/events/client/requests/index.d.ts +0 -1
  62. package/api/resources/events/types/index.d.ts +0 -2
  63. package/api/resources/events/types/index.js +0 -2
  64. package/api/resources/features/client/Client.js +19 -19
  65. package/api/resources/plangroups/client/Client.js +3 -3
  66. package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  67. package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  68. package/api/resources/plans/client/Client.d.ts +2 -1
  69. package/api/resources/plans/client/Client.js +12 -11
  70. package/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
  71. package/api/resources/webhooks/client/Client.js +9 -9
  72. package/api/types/BillingCustomerSubscription.d.ts +3 -0
  73. package/api/types/BillingPriceView.d.ts +18 -0
  74. package/api/types/BillingProductDetailResponseData.d.ts +1 -1
  75. package/api/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
  76. package/api/types/BillingProductPlanResponseData.d.ts +2 -0
  77. package/api/types/BillingProductPriceResponseData.d.ts +15 -0
  78. package/api/types/BillingProductPricing.d.ts +3 -0
  79. package/api/types/BillingSubscriptionResponseData.d.ts +9 -2
  80. package/api/types/BillingSubscriptionView.d.ts +23 -0
  81. package/api/types/CheckFlagOutputWithFlagKey.d.ts +1 -0
  82. package/api/types/CheckFlagResponseData.d.ts +1 -0
  83. package/api/types/CompanyDetailResponseData.d.ts +2 -1
  84. package/api/types/CompanyOverrideResponseData.d.ts +3 -1
  85. package/api/types/CompanyPlanDetailResponseData.d.ts +4 -0
  86. package/api/types/ComponentCapabilities.d.ts +6 -0
  87. package/api/types/ComponentHydrateResponseData.d.ts +2 -0
  88. package/api/types/ComponentPreviewResponseData.d.ts +2 -0
  89. package/api/types/CreateEntitlementReqCommon.d.ts +15 -0
  90. package/api/types/{CreateReqCommonMetricPeriod.d.ts → CreateEntitlementReqCommonMetricPeriod.d.ts} +3 -2
  91. package/api/types/{UpdateReqCommonMetricPeriod.js → CreateEntitlementReqCommonMetricPeriod.js} +3 -2
  92. package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  93. package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  94. package/api/types/{CreateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
  95. package/api/types/{UpdateReqCommonValueType.js → CreateEntitlementReqCommonValueType.js} +2 -2
  96. package/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  97. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
  98. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
  99. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
  100. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
  101. package/api/types/FeatureCompanyResponseData.d.ts +4 -0
  102. package/api/types/FeatureCompanyUserResponseData.d.ts +4 -0
  103. package/api/types/FeatureUsageResponseData.d.ts +4 -0
  104. package/api/types/PlanDetailResponseData.d.ts +3 -0
  105. package/api/types/PlanEntitlementResponseData.d.ts +4 -0
  106. package/api/types/PlanGroupDetailResponseData.d.ts +3 -0
  107. package/api/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  108. package/api/types/PlanGroupResponseData.d.ts +2 -0
  109. package/api/types/{RuleConditionResourceResponseData.d.ts → PreviewObjectResponseData.d.ts} +3 -1
  110. package/api/types/RuleConditionDetailResponseData.d.ts +2 -1
  111. package/api/types/RuleConditionResponseData.d.ts +1 -0
  112. package/api/types/UpdateEntitlementReqCommon.d.ts +14 -0
  113. package/api/types/{UpdateReqCommonMetricPeriod.d.ts → UpdateEntitlementReqCommonMetricPeriod.d.ts} +3 -2
  114. package/{dist/api/types/CreateReqCommonMetricPeriod.js → api/types/UpdateEntitlementReqCommonMetricPeriod.js} +3 -2
  115. package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  116. package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  117. package/api/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  118. package/{dist/api/types/CreateReqCommonValueType.js → api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
  119. package/api/types/UsageBasedEntitlementResponseData.d.ts +14 -0
  120. package/api/types/index.d.ts +15 -8
  121. package/api/types/index.js +15 -8
  122. package/core/fetcher/Fetcher.d.ts +1 -1
  123. package/core/fetcher/getResponseBody.js +3 -0
  124. package/core/fetcher/requestWithRetries.js +13 -4
  125. package/dist/Client.js +1 -1
  126. package/dist/api/resources/accesstokens/client/Client.js +1 -1
  127. package/dist/api/resources/accounts/client/Client.js +14 -14
  128. package/dist/api/resources/billing/client/Client.d.ts +21 -5
  129. package/dist/api/resources/billing/client/Client.js +170 -24
  130. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +9 -0
  131. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -1
  132. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -1
  133. package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +3 -3
  134. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +9 -0
  135. package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +9 -0
  136. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +21 -0
  137. package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
  138. package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +5 -0
  139. package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +5 -0
  140. package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +5 -0
  141. package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
  142. package/dist/api/resources/{events/types/ListMetricCountsResponse.d.ts → billing/types/SearchBillingPricesResponse.d.ts} +3 -3
  143. package/dist/api/resources/billing/types/index.d.ts +2 -0
  144. package/dist/api/resources/billing/types/index.js +2 -0
  145. package/dist/api/resources/companies/client/Client.d.ts +4 -6
  146. package/dist/api/resources/companies/client/Client.js +47 -39
  147. package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
  148. package/dist/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +1 -1
  149. package/dist/api/resources/companies/client/requests/LookupUserRequest.d.ts +1 -1
  150. package/dist/api/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  151. package/dist/api/resources/components/client/Client.js +7 -7
  152. package/dist/api/resources/crm/client/Client.js +5 -5
  153. package/dist/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  154. package/dist/api/resources/entitlements/client/Client.d.ts +1 -1
  155. package/dist/api/resources/entitlements/client/Client.js +28 -22
  156. package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +4 -0
  157. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
  158. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
  159. package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +1 -1
  160. package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +4 -0
  161. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
  162. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
  163. package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +2 -0
  164. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  165. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  166. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  167. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  168. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  169. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  170. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  171. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  172. package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +2 -0
  173. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  174. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  175. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  176. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  177. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  178. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  179. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  180. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  181. package/dist/api/resources/entitlements/types/index.d.ts +4 -0
  182. package/dist/api/resources/entitlements/types/index.js +4 -0
  183. package/dist/api/resources/events/client/Client.d.ts +0 -13
  184. package/dist/api/resources/events/client/Client.js +7 -140
  185. package/dist/api/resources/events/client/requests/index.d.ts +0 -1
  186. package/dist/api/resources/events/types/index.d.ts +0 -2
  187. package/dist/api/resources/events/types/index.js +0 -2
  188. package/dist/api/resources/features/client/Client.js +19 -19
  189. package/dist/api/resources/plangroups/client/Client.js +3 -3
  190. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  191. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  192. package/dist/api/resources/plans/client/Client.d.ts +2 -1
  193. package/dist/api/resources/plans/client/Client.js +12 -11
  194. package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
  195. package/dist/api/resources/webhooks/client/Client.js +9 -9
  196. package/dist/api/types/BillingCustomerSubscription.d.ts +3 -0
  197. package/dist/api/types/BillingPriceView.d.ts +18 -0
  198. package/dist/api/types/BillingPriceView.js +5 -0
  199. package/dist/api/types/BillingProductDetailResponseData.d.ts +1 -1
  200. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
  201. package/dist/api/types/BillingProductPlanResponseData.d.ts +2 -0
  202. package/dist/api/types/BillingProductPriceResponseData.d.ts +15 -0
  203. package/dist/api/types/BillingProductPriceResponseData.js +5 -0
  204. package/dist/api/types/BillingProductPricing.d.ts +3 -0
  205. package/dist/api/types/BillingSubscriptionResponseData.d.ts +9 -2
  206. package/dist/api/types/BillingSubscriptionView.d.ts +23 -0
  207. package/dist/api/types/BillingSubscriptionView.js +5 -0
  208. package/dist/api/types/CheckFlagOutputWithFlagKey.d.ts +1 -0
  209. package/dist/api/types/CheckFlagResponseData.d.ts +1 -0
  210. package/dist/api/types/CompanyDetailResponseData.d.ts +2 -1
  211. package/dist/api/types/CompanyOverrideResponseData.d.ts +3 -1
  212. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +4 -0
  213. package/dist/api/types/ComponentCapabilities.d.ts +6 -0
  214. package/dist/api/types/ComponentCapabilities.js +5 -0
  215. package/dist/api/types/ComponentHydrateResponseData.d.ts +2 -0
  216. package/dist/api/types/ComponentPreviewResponseData.d.ts +2 -0
  217. package/dist/api/types/CreateEntitlementReqCommon.d.ts +15 -0
  218. package/dist/api/types/CreateEntitlementReqCommon.js +5 -0
  219. package/dist/api/types/{CreateReqCommonMetricPeriod.d.ts → CreateEntitlementReqCommonMetricPeriod.d.ts} +3 -2
  220. package/{api/types/CreateReqCommonMetricPeriod.js → dist/api/types/CreateEntitlementReqCommonMetricPeriod.js} +3 -2
  221. package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  222. package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  223. package/dist/api/types/{CreateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
  224. package/dist/api/types/{UpdateReqCommonValueType.js → CreateEntitlementReqCommonValueType.js} +2 -2
  225. package/dist/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  226. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
  227. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
  228. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
  229. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
  230. package/dist/api/types/FeatureCompanyResponseData.d.ts +4 -0
  231. package/dist/api/types/FeatureCompanyUserResponseData.d.ts +4 -0
  232. package/dist/api/types/FeatureUsageResponseData.d.ts +4 -0
  233. package/dist/api/types/PlanDetailResponseData.d.ts +3 -0
  234. package/dist/api/types/PlanEntitlementResponseData.d.ts +4 -0
  235. package/dist/api/types/PlanGroupDetailResponseData.d.ts +3 -0
  236. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  237. package/dist/api/types/PlanGroupResponseData.d.ts +2 -0
  238. package/dist/api/types/{RuleConditionResourceResponseData.d.ts → PreviewObjectResponseData.d.ts} +3 -1
  239. package/dist/api/types/PreviewObjectResponseData.js +5 -0
  240. package/dist/api/types/RuleConditionDetailResponseData.d.ts +2 -1
  241. package/dist/api/types/RuleConditionResponseData.d.ts +1 -0
  242. package/dist/api/types/UpdateEntitlementReqCommon.d.ts +14 -0
  243. package/dist/api/types/UpdateEntitlementReqCommon.js +5 -0
  244. package/dist/api/types/{UpdateReqCommonMetricPeriod.d.ts → UpdateEntitlementReqCommonMetricPeriod.d.ts} +3 -2
  245. package/dist/api/types/{UpdateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonMetricPeriod.js} +3 -2
  246. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  247. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  248. package/dist/api/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  249. package/{api/types/CreateReqCommonValueType.js → dist/api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
  250. package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +14 -0
  251. package/dist/api/types/UsageBasedEntitlementResponseData.js +5 -0
  252. package/dist/api/types/index.d.ts +15 -8
  253. package/dist/api/types/index.js +15 -8
  254. package/dist/core/fetcher/Fetcher.d.ts +1 -1
  255. package/dist/core/fetcher/getResponseBody.js +3 -0
  256. package/dist/core/fetcher/requestWithRetries.js +13 -4
  257. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
  258. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +2 -0
  259. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +1 -0
  260. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +1 -0
  261. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +3 -3
  262. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +3 -3
  263. package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +3 -0
  264. package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +3 -0
  265. package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +3 -0
  266. package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +3 -0
  267. package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +3 -0
  268. package/dist/serialization/resources/billing/types/ListProductPricesParams.js +3 -0
  269. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +17 -0
  270. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +38 -0
  271. package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
  272. package/{serialization/resources/events/types/ListMetricCountsResponse.js → dist/serialization/resources/billing/types/SearchBillingPricesResponse.js} +6 -6
  273. package/dist/serialization/resources/billing/types/index.d.ts +2 -0
  274. package/dist/serialization/resources/billing/types/index.js +2 -0
  275. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  276. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +1 -0
  277. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  278. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
  279. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +5 -0
  280. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +5 -0
  281. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +7 -0
  282. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +7 -0
  283. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +5 -0
  284. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +5 -0
  285. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +4 -0
  286. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +4 -0
  287. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
  288. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +1 -0
  289. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  290. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  291. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  292. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  293. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  294. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  295. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  296. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  297. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
  298. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +1 -0
  299. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  300. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  301. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  302. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  303. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  304. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  305. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  306. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  307. package/dist/serialization/resources/entitlements/types/index.d.ts +4 -0
  308. package/dist/serialization/resources/entitlements/types/index.js +4 -0
  309. package/dist/serialization/resources/events/types/index.d.ts +0 -2
  310. package/dist/serialization/resources/events/types/index.js +0 -2
  311. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  312. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +2 -0
  313. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  314. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +2 -0
  315. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
  316. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
  317. package/dist/serialization/types/BillingCustomerSubscription.d.ts +3 -0
  318. package/dist/serialization/types/BillingCustomerSubscription.js +3 -0
  319. package/dist/serialization/types/BillingPriceView.d.ts +24 -0
  320. package/dist/serialization/types/BillingPriceView.js +45 -0
  321. package/dist/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
  322. package/dist/serialization/types/BillingProductDetailResponseData.js +1 -1
  323. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
  324. package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +2 -1
  325. package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
  326. package/dist/serialization/types/BillingProductPlanResponseData.js +2 -0
  327. package/dist/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
  328. package/dist/serialization/types/{MetricCountsHourlyResponseData.js → BillingProductPriceResponseData.js} +11 -8
  329. package/dist/serialization/types/BillingProductPricing.d.ts +3 -0
  330. package/dist/serialization/types/BillingProductPricing.js +3 -0
  331. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +9 -2
  332. package/dist/serialization/types/BillingSubscriptionResponseData.js +9 -2
  333. package/dist/serialization/types/BillingSubscriptionView.d.ts +31 -0
  334. package/dist/serialization/types/BillingSubscriptionView.js +52 -0
  335. package/dist/serialization/types/CheckFlagOutputWithFlagKey.d.ts +1 -0
  336. package/dist/serialization/types/CheckFlagOutputWithFlagKey.js +1 -0
  337. package/dist/serialization/types/CheckFlagResponseData.d.ts +1 -0
  338. package/dist/serialization/types/CheckFlagResponseData.js +1 -0
  339. package/dist/serialization/types/CompanyDetailResponseData.d.ts +3 -2
  340. package/dist/serialization/types/CompanyDetailResponseData.js +3 -2
  341. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
  342. package/dist/serialization/types/CompanyOverrideResponseData.js +3 -1
  343. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
  344. package/dist/serialization/types/CompanyPlanDetailResponseData.js +4 -0
  345. package/dist/serialization/types/ComponentCapabilities.d.ts +12 -0
  346. package/dist/serialization/types/{UpdateReqCommonValueType.js → ComponentCapabilities.js} +4 -2
  347. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +5 -1
  348. package/dist/serialization/types/ComponentHydrateResponseData.js +5 -1
  349. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +5 -1
  350. package/dist/serialization/types/ComponentPreviewResponseData.js +5 -1
  351. package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +23 -0
  352. package/dist/serialization/types/CreateEntitlementReqCommon.js +44 -0
  353. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  354. package/dist/serialization/types/{RuleConditionResourceResponseData.js → CreateEntitlementReqCommonMetricPeriod.js} +2 -5
  355. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  356. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  357. package/dist/serialization/types/{UpdateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
  358. package/dist/serialization/types/{CreateReqCommonMetricPeriod.js → CreateEntitlementReqCommonValueType.js} +2 -2
  359. package/dist/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  360. package/dist/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -0
  361. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  362. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  363. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  364. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
  365. package/dist/serialization/types/FeatureCompanyResponseData.d.ts +2 -0
  366. package/dist/serialization/types/FeatureCompanyResponseData.js +2 -0
  367. package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +2 -0
  368. package/dist/serialization/types/FeatureCompanyUserResponseData.js +2 -0
  369. package/dist/serialization/types/FeatureUsageResponseData.d.ts +2 -0
  370. package/dist/serialization/types/FeatureUsageResponseData.js +2 -0
  371. package/dist/serialization/types/MeterRequestBody.d.ts +3 -3
  372. package/dist/serialization/types/MeterRequestBody.js +3 -3
  373. package/dist/serialization/types/PlanDetailResponseData.d.ts +3 -0
  374. package/dist/serialization/types/PlanDetailResponseData.js +3 -0
  375. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +5 -0
  376. package/dist/serialization/types/PlanEntitlementResponseData.js +5 -0
  377. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +3 -0
  378. package/dist/serialization/types/PlanGroupDetailResponseData.js +3 -0
  379. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  380. package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +3 -0
  381. package/dist/serialization/types/PlanGroupResponseData.d.ts +2 -0
  382. package/dist/serialization/types/PlanGroupResponseData.js +2 -0
  383. package/dist/serialization/types/PreviewObjectResponseData.d.ts +15 -0
  384. package/{serialization/types/RuleConditionResourceResponseData.js → dist/serialization/types/PreviewObjectResponseData.js} +4 -2
  385. package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
  386. package/dist/serialization/types/RuleConditionDetailResponseData.js +3 -2
  387. package/dist/serialization/types/RuleConditionResponseData.d.ts +1 -0
  388. package/dist/serialization/types/RuleConditionResponseData.js +1 -0
  389. package/dist/serialization/types/RulesDetailResponseData.d.ts +1 -1
  390. package/dist/serialization/types/RulesDetailResponseData.js +1 -1
  391. package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +22 -0
  392. package/{serialization/types/UpdateReqCommon.js → dist/serialization/types/UpdateEntitlementReqCommon.js} +10 -6
  393. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  394. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
  395. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  396. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  397. package/{serialization/types/CreateReqCommonValueType.d.ts → dist/serialization/types/UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  398. package/dist/serialization/types/{UpdateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonValueType.js} +2 -2
  399. package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +20 -0
  400. package/{serialization/types/CreateReqCommon.js → dist/serialization/types/UsageBasedEntitlementResponseData.js} +8 -7
  401. package/dist/serialization/types/index.d.ts +15 -8
  402. package/dist/serialization/types/index.js +15 -8
  403. package/package.json +1 -2
  404. package/reference.md +60 -58
  405. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
  406. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +2 -0
  407. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +1 -0
  408. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +1 -0
  409. package/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +3 -3
  410. package/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +3 -3
  411. package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +3 -0
  412. package/serialization/resources/billing/types/CountBillingProductsParams.js +3 -0
  413. package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +3 -0
  414. package/serialization/resources/billing/types/ListBillingProductsParams.js +3 -0
  415. package/serialization/resources/billing/types/ListProductPricesParams.d.ts +3 -0
  416. package/serialization/resources/billing/types/ListProductPricesParams.js +3 -0
  417. package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +17 -0
  418. package/serialization/resources/billing/types/SearchBillingPricesParams.js +38 -0
  419. package/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
  420. package/{dist/serialization/resources/events/types/ListMetricCountsResponse.js → serialization/resources/billing/types/SearchBillingPricesResponse.js} +6 -6
  421. package/serialization/resources/billing/types/index.d.ts +2 -0
  422. package/serialization/resources/billing/types/index.js +2 -0
  423. package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  424. package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +1 -0
  425. package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  426. package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
  427. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +5 -0
  428. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +5 -0
  429. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +7 -0
  430. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +7 -0
  431. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +5 -0
  432. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +5 -0
  433. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +4 -0
  434. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +4 -0
  435. package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
  436. package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +1 -0
  437. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  438. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  439. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  440. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  441. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  442. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  443. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  444. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  445. package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
  446. package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +1 -0
  447. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  448. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  449. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  450. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  451. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  452. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  453. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  454. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  455. package/serialization/resources/entitlements/types/index.d.ts +4 -0
  456. package/serialization/resources/entitlements/types/index.js +4 -0
  457. package/serialization/resources/events/types/index.d.ts +0 -2
  458. package/serialization/resources/events/types/index.js +0 -2
  459. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  460. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +2 -0
  461. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  462. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +2 -0
  463. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
  464. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
  465. package/serialization/types/BillingCustomerSubscription.d.ts +3 -0
  466. package/serialization/types/BillingCustomerSubscription.js +3 -0
  467. package/serialization/types/BillingPriceView.d.ts +24 -0
  468. package/serialization/types/BillingPriceView.js +45 -0
  469. package/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
  470. package/serialization/types/BillingProductDetailResponseData.js +1 -1
  471. package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
  472. package/serialization/types/BillingProductForSubscriptionResponseData.js +2 -1
  473. package/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
  474. package/serialization/types/BillingProductPlanResponseData.js +2 -0
  475. package/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
  476. package/serialization/types/{MetricCountsHourlyResponseData.js → BillingProductPriceResponseData.js} +11 -8
  477. package/serialization/types/BillingProductPricing.d.ts +3 -0
  478. package/serialization/types/BillingProductPricing.js +3 -0
  479. package/serialization/types/BillingSubscriptionResponseData.d.ts +9 -2
  480. package/serialization/types/BillingSubscriptionResponseData.js +9 -2
  481. package/serialization/types/BillingSubscriptionView.d.ts +31 -0
  482. package/serialization/types/BillingSubscriptionView.js +52 -0
  483. package/serialization/types/CheckFlagOutputWithFlagKey.d.ts +1 -0
  484. package/serialization/types/CheckFlagOutputWithFlagKey.js +1 -0
  485. package/serialization/types/CheckFlagResponseData.d.ts +1 -0
  486. package/serialization/types/CheckFlagResponseData.js +1 -0
  487. package/serialization/types/CompanyDetailResponseData.d.ts +3 -2
  488. package/serialization/types/CompanyDetailResponseData.js +3 -2
  489. package/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
  490. package/serialization/types/CompanyOverrideResponseData.js +3 -1
  491. package/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
  492. package/serialization/types/CompanyPlanDetailResponseData.js +4 -0
  493. package/serialization/types/ComponentCapabilities.d.ts +12 -0
  494. package/{dist/serialization/types/CreateReqCommonValueType.js → serialization/types/ComponentCapabilities.js} +4 -2
  495. package/serialization/types/ComponentHydrateResponseData.d.ts +5 -1
  496. package/serialization/types/ComponentHydrateResponseData.js +5 -1
  497. package/serialization/types/ComponentPreviewResponseData.d.ts +5 -1
  498. package/serialization/types/ComponentPreviewResponseData.js +5 -1
  499. package/serialization/types/CreateEntitlementReqCommon.d.ts +23 -0
  500. package/serialization/types/CreateEntitlementReqCommon.js +44 -0
  501. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  502. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +31 -0
  503. package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  504. package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  505. package/{dist/serialization/types/CreateReqCommonValueType.d.ts → serialization/types/CreateEntitlementReqCommonValueType.d.ts} +2 -2
  506. package/serialization/types/CreateEntitlementReqCommonValueType.js +31 -0
  507. package/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  508. package/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -0
  509. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  510. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  511. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  512. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
  513. package/serialization/types/FeatureCompanyResponseData.d.ts +2 -0
  514. package/serialization/types/FeatureCompanyResponseData.js +2 -0
  515. package/serialization/types/FeatureCompanyUserResponseData.d.ts +2 -0
  516. package/serialization/types/FeatureCompanyUserResponseData.js +2 -0
  517. package/serialization/types/FeatureUsageResponseData.d.ts +2 -0
  518. package/serialization/types/FeatureUsageResponseData.js +2 -0
  519. package/serialization/types/MeterRequestBody.d.ts +3 -3
  520. package/serialization/types/MeterRequestBody.js +3 -3
  521. package/serialization/types/PlanDetailResponseData.d.ts +3 -0
  522. package/serialization/types/PlanDetailResponseData.js +3 -0
  523. package/serialization/types/PlanEntitlementResponseData.d.ts +5 -0
  524. package/serialization/types/PlanEntitlementResponseData.js +5 -0
  525. package/serialization/types/PlanGroupDetailResponseData.d.ts +3 -0
  526. package/serialization/types/PlanGroupDetailResponseData.js +3 -0
  527. package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  528. package/serialization/types/PlanGroupPlanDetailResponseData.js +3 -0
  529. package/serialization/types/PlanGroupResponseData.d.ts +2 -0
  530. package/serialization/types/PlanGroupResponseData.js +2 -0
  531. package/serialization/types/PreviewObjectResponseData.d.ts +15 -0
  532. package/serialization/types/PreviewObjectResponseData.js +36 -0
  533. package/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
  534. package/serialization/types/RuleConditionDetailResponseData.js +3 -2
  535. package/serialization/types/RuleConditionResponseData.d.ts +1 -0
  536. package/serialization/types/RuleConditionResponseData.js +1 -0
  537. package/serialization/types/RulesDetailResponseData.d.ts +1 -1
  538. package/serialization/types/RulesDetailResponseData.js +1 -1
  539. package/serialization/types/UpdateEntitlementReqCommon.d.ts +22 -0
  540. package/{dist/serialization/types/UpdateReqCommon.js → serialization/types/UpdateEntitlementReqCommon.js} +10 -6
  541. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  542. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
  543. package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  544. package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  545. package/serialization/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  546. package/serialization/types/UpdateEntitlementReqCommonValueType.js +31 -0
  547. package/serialization/types/UsageBasedEntitlementResponseData.d.ts +20 -0
  548. package/{dist/serialization/types/CreateReqCommon.js → serialization/types/UsageBasedEntitlementResponseData.js} +8 -7
  549. package/serialization/types/index.d.ts +15 -8
  550. package/serialization/types/index.js +15 -8
  551. package/api/resources/events/client/requests/ListMetricCountsRequest.d.ts +0 -25
  552. package/api/resources/events/types/ListMetricCountsParams.d.ts +0 -20
  553. package/api/types/CreateReqCommon.d.ts +0 -12
  554. package/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
  555. package/api/types/UpdateReqCommon.d.ts +0 -11
  556. package/dist/api/resources/events/client/requests/ListMetricCountsRequest.d.ts +0 -25
  557. package/dist/api/resources/events/types/ListMetricCountsParams.d.ts +0 -20
  558. package/dist/api/types/CreateReqCommon.d.ts +0 -12
  559. package/dist/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
  560. package/dist/api/types/UpdateReqCommon.d.ts +0 -11
  561. package/dist/serialization/resources/events/types/ListMetricCountsParams.d.ts +0 -21
  562. package/dist/serialization/resources/events/types/ListMetricCountsParams.js +0 -42
  563. package/dist/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
  564. package/dist/serialization/types/CreateReqCommon.d.ts +0 -19
  565. package/dist/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
  566. package/dist/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
  567. package/dist/serialization/types/RuleConditionResourceResponseData.d.ts +0 -13
  568. package/dist/serialization/types/UpdateReqCommon.d.ts +0 -18
  569. package/dist/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
  570. package/serialization/resources/events/types/ListMetricCountsParams.d.ts +0 -21
  571. package/serialization/resources/events/types/ListMetricCountsParams.js +0 -42
  572. package/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
  573. package/serialization/types/CreateReqCommon.d.ts +0 -19
  574. package/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
  575. package/serialization/types/CreateReqCommonMetricPeriod.js +0 -31
  576. package/serialization/types/CreateReqCommonValueType.js +0 -31
  577. package/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
  578. package/serialization/types/RuleConditionResourceResponseData.d.ts +0 -13
  579. package/serialization/types/UpdateReqCommon.d.ts +0 -18
  580. package/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
  581. package/serialization/types/UpdateReqCommonMetricPeriod.js +0 -31
  582. package/serialization/types/UpdateReqCommonValueType.js +0 -31
  583. /package/api/resources/{events/client/requests/ListMetricCountsRequest.js → billing/client/requests/SearchBillingPricesRequest.js} +0 -0
  584. /package/api/resources/{events/types/ListMetricCountsParams.js → billing/types/SearchBillingPricesParams.js} +0 -0
  585. /package/api/resources/{events/types/ListMetricCountsResponse.js → billing/types/SearchBillingPricesResponse.js} +0 -0
  586. /package/api/types/{CreateReqCommon.js → BillingPriceView.js} +0 -0
  587. /package/api/types/{MetricCountsHourlyResponseData.js → BillingProductPriceResponseData.js} +0 -0
  588. /package/api/types/{RuleConditionResourceResponseData.js → BillingSubscriptionView.js} +0 -0
  589. /package/api/types/{UpdateReqCommon.js → ComponentCapabilities.js} +0 -0
  590. /package/{dist/api/resources/events/client/requests/ListMetricCountsRequest.js → api/types/CreateEntitlementReqCommon.js} +0 -0
  591. /package/{dist/api/resources/events/types/ListMetricCountsParams.js → api/types/PreviewObjectResponseData.js} +0 -0
  592. /package/{dist/api/resources/events/types/ListMetricCountsResponse.js → api/types/UpdateEntitlementReqCommon.js} +0 -0
  593. /package/{dist/api/types/CreateReqCommon.js → api/types/UsageBasedEntitlementResponseData.js} +0 -0
  594. /package/dist/api/{types/MetricCountsHourlyResponseData.js → resources/billing/client/requests/SearchBillingPricesRequest.js} +0 -0
  595. /package/dist/api/{types/RuleConditionResourceResponseData.js → resources/billing/types/SearchBillingPricesParams.js} +0 -0
  596. /package/dist/api/{types/UpdateReqCommon.js → resources/billing/types/SearchBillingPricesResponse.js} +0 -0
@@ -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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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,122 @@ 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, interval, 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 (interval != null) {
1003
+ _queryParams["interval"] = interval;
1004
+ }
1005
+ if (usageType != null) {
1006
+ _queryParams["usage_type"] = usageType;
1007
+ }
1008
+ if (price != null) {
1009
+ _queryParams["price"] = price.toString();
1010
+ }
1011
+ if (limit != null) {
1012
+ _queryParams["limit"] = limit.toString();
1013
+ }
1014
+ if (offset != null) {
1015
+ _queryParams["offset"] = offset.toString();
1016
+ }
1017
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1018
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/price"),
1019
+ method: "GET",
1020
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1021
+ contentType: "application/json",
1022
+ queryParameters: _queryParams,
1023
+ requestType: "json",
1024
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1025
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1026
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1027
+ });
1028
+ if (_response.ok) {
1029
+ return serializers.SearchBillingPricesResponse.parseOrThrow(_response.body, {
1030
+ unrecognizedObjectKeys: "passthrough",
1031
+ allowUnrecognizedUnionMembers: true,
1032
+ allowUnrecognizedEnumValues: true,
1033
+ skipValidation: true,
1034
+ breadcrumbsPrefix: ["response"],
1035
+ });
1036
+ }
1037
+ if (_response.error.reason === "status-code") {
1038
+ switch (_response.error.statusCode) {
1039
+ case 400:
1040
+ throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
1041
+ unrecognizedObjectKeys: "passthrough",
1042
+ allowUnrecognizedUnionMembers: true,
1043
+ allowUnrecognizedEnumValues: true,
1044
+ skipValidation: true,
1045
+ breadcrumbsPrefix: ["response"],
1046
+ }));
1047
+ case 401:
1048
+ throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
1049
+ unrecognizedObjectKeys: "passthrough",
1050
+ allowUnrecognizedUnionMembers: true,
1051
+ allowUnrecognizedEnumValues: true,
1052
+ skipValidation: true,
1053
+ breadcrumbsPrefix: ["response"],
1054
+ }));
1055
+ case 403:
1056
+ throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
1057
+ unrecognizedObjectKeys: "passthrough",
1058
+ allowUnrecognizedUnionMembers: true,
1059
+ allowUnrecognizedEnumValues: true,
1060
+ skipValidation: true,
1061
+ breadcrumbsPrefix: ["response"],
1062
+ }));
1063
+ case 500:
1064
+ throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
1065
+ unrecognizedObjectKeys: "passthrough",
1066
+ allowUnrecognizedUnionMembers: true,
1067
+ allowUnrecognizedEnumValues: true,
1068
+ skipValidation: true,
1069
+ breadcrumbsPrefix: ["response"],
1070
+ }));
1071
+ default:
1072
+ throw new errors.SchematicError({
1073
+ statusCode: _response.error.statusCode,
1074
+ body: _response.error.body,
1075
+ });
1076
+ }
1077
+ }
1078
+ switch (_response.error.reason) {
1079
+ case "non-json":
1080
+ throw new errors.SchematicError({
1081
+ statusCode: _response.error.statusCode,
1082
+ body: _response.error.rawBody,
1083
+ });
1084
+ case "timeout":
1085
+ throw new errors.SchematicTimeoutError();
1086
+ case "unknown":
1087
+ throw new errors.SchematicError({
1088
+ message: _response.error.errorMessage,
1089
+ });
1090
+ }
1091
+ });
1092
+ }
977
1093
  /**
978
1094
  * @param {Schematic.CreateBillingPriceRequestBody} request
979
1095
  * @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
@@ -989,7 +1105,8 @@ class Billing {
989
1105
  * interval: "interval",
990
1106
  * price: 1,
991
1107
  * priceExternalId: "price_external_id",
992
- * productExternalId: "product_external_id"
1108
+ * productExternalId: "product_external_id",
1109
+ * usageType: "usage_type"
993
1110
  * })
994
1111
  */
995
1112
  upsertBillingPrice(request, requestOptions) {
@@ -998,7 +1115,7 @@ class Billing {
998
1115
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
999
1116
  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
1117
  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())),
1118
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1002
1119
  contentType: "application/json",
1003
1120
  requestType: "json",
1004
1121
  body: serializers.CreateBillingPriceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1086,7 +1203,7 @@ class Billing {
1086
1203
  listProductPrices(request = {}, requestOptions) {
1087
1204
  var _a, _b;
1088
1205
  return __awaiter(this, void 0, void 0, function* () {
1089
- const { ids, name, q, withoutLinkedToPlan, limit, offset } = request;
1206
+ const { ids, name, q, priceUsageType, withoutLinkedToPlan, withZeroPrice, withPricesOnly, limit, offset } = request;
1090
1207
  const _queryParams = {};
1091
1208
  if (ids != null) {
1092
1209
  if (Array.isArray(ids)) {
@@ -1102,9 +1219,18 @@ class Billing {
1102
1219
  if (q != null) {
1103
1220
  _queryParams["q"] = q;
1104
1221
  }
1222
+ if (priceUsageType != null) {
1223
+ _queryParams["price_usage_type"] = priceUsageType;
1224
+ }
1105
1225
  if (withoutLinkedToPlan != null) {
1106
1226
  _queryParams["without_linked_to_plan"] = withoutLinkedToPlan.toString();
1107
1227
  }
1228
+ if (withZeroPrice != null) {
1229
+ _queryParams["with_zero_price"] = withZeroPrice.toString();
1230
+ }
1231
+ if (withPricesOnly != null) {
1232
+ _queryParams["with_prices_only"] = withPricesOnly.toString();
1233
+ }
1108
1234
  if (limit != null) {
1109
1235
  _queryParams["limit"] = limit.toString();
1110
1236
  }
@@ -1114,7 +1240,7 @@ class Billing {
1114
1240
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1115
1241
  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
1242
  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())),
1243
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1118
1244
  contentType: "application/json",
1119
1245
  queryParameters: _queryParams,
1120
1246
  requestType: "json",
@@ -1205,7 +1331,7 @@ class Billing {
1205
1331
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1206
1332
  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
1333
  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())),
1334
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1209
1335
  contentType: "application/json",
1210
1336
  requestType: "json",
1211
1337
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1301,7 +1427,7 @@ class Billing {
1301
1427
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1302
1428
  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
1429
  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())),
1430
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1305
1431
  contentType: "application/json",
1306
1432
  requestType: "json",
1307
1433
  body: serializers.CreateBillingProductRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1389,7 +1515,7 @@ class Billing {
1389
1515
  listBillingProducts(request = {}, requestOptions) {
1390
1516
  var _a, _b;
1391
1517
  return __awaiter(this, void 0, void 0, function* () {
1392
- const { ids, name, q, withoutLinkedToPlan, limit, offset } = request;
1518
+ const { ids, name, q, priceUsageType, withoutLinkedToPlan, withZeroPrice, withPricesOnly, limit, offset } = request;
1393
1519
  const _queryParams = {};
1394
1520
  if (ids != null) {
1395
1521
  if (Array.isArray(ids)) {
@@ -1405,9 +1531,18 @@ class Billing {
1405
1531
  if (q != null) {
1406
1532
  _queryParams["q"] = q;
1407
1533
  }
1534
+ if (priceUsageType != null) {
1535
+ _queryParams["price_usage_type"] = priceUsageType;
1536
+ }
1408
1537
  if (withoutLinkedToPlan != null) {
1409
1538
  _queryParams["without_linked_to_plan"] = withoutLinkedToPlan.toString();
1410
1539
  }
1540
+ if (withZeroPrice != null) {
1541
+ _queryParams["with_zero_price"] = withZeroPrice.toString();
1542
+ }
1543
+ if (withPricesOnly != null) {
1544
+ _queryParams["with_prices_only"] = withPricesOnly.toString();
1545
+ }
1411
1546
  if (limit != null) {
1412
1547
  _queryParams["limit"] = limit.toString();
1413
1548
  }
@@ -1417,7 +1552,7 @@ class Billing {
1417
1552
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1418
1553
  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
1554
  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())),
1555
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1421
1556
  contentType: "application/json",
1422
1557
  queryParameters: _queryParams,
1423
1558
  requestType: "json",
@@ -1505,7 +1640,7 @@ class Billing {
1505
1640
  countBillingProducts(request = {}, requestOptions) {
1506
1641
  var _a, _b;
1507
1642
  return __awaiter(this, void 0, void 0, function* () {
1508
- const { ids, name, q, withoutLinkedToPlan, limit, offset } = request;
1643
+ const { ids, name, q, priceUsageType, withoutLinkedToPlan, withZeroPrice, withPricesOnly, limit, offset } = request;
1509
1644
  const _queryParams = {};
1510
1645
  if (ids != null) {
1511
1646
  if (Array.isArray(ids)) {
@@ -1521,9 +1656,18 @@ class Billing {
1521
1656
  if (q != null) {
1522
1657
  _queryParams["q"] = q;
1523
1658
  }
1659
+ if (priceUsageType != null) {
1660
+ _queryParams["price_usage_type"] = priceUsageType;
1661
+ }
1524
1662
  if (withoutLinkedToPlan != null) {
1525
1663
  _queryParams["without_linked_to_plan"] = withoutLinkedToPlan.toString();
1526
1664
  }
1665
+ if (withZeroPrice != null) {
1666
+ _queryParams["with_zero_price"] = withZeroPrice.toString();
1667
+ }
1668
+ if (withPricesOnly != null) {
1669
+ _queryParams["with_prices_only"] = withPricesOnly.toString();
1670
+ }
1527
1671
  if (limit != null) {
1528
1672
  _queryParams["limit"] = limit.toString();
1529
1673
  }
@@ -1533,7 +1677,7 @@ class Billing {
1533
1677
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1534
1678
  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
1679
  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())),
1680
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1537
1681
  contentType: "application/json",
1538
1682
  queryParameters: _queryParams,
1539
1683
  requestType: "json",
@@ -1625,7 +1769,9 @@ class Billing {
1625
1769
  * interval: "interval",
1626
1770
  * price: 1,
1627
1771
  * priceExternalId: "price_external_id",
1628
- * productExternalId: "product_external_id"
1772
+ * productExternalId: "product_external_id",
1773
+ * quantity: 1,
1774
+ * usageType: "usage_type"
1629
1775
  * }],
1630
1776
  * subscriptionExternalId: "subscription_external_id",
1631
1777
  * totalPrice: 1
@@ -1637,7 +1783,7 @@ class Billing {
1637
1783
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1638
1784
  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
1785
  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())),
1786
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1641
1787
  contentType: "application/json",
1642
1788
  requestType: "json",
1643
1789
  body: serializers.CreateBillingSubscriptionsRequestBody.jsonOrThrow(request, {
@@ -9,10 +9,19 @@ export interface CountBillingProductsRequest {
9
9
  ids?: string | string[];
10
10
  name?: string;
11
11
  q?: string;
12
+ priceUsageType?: string;
12
13
  /**
13
14
  * Filter products that are not linked to any plan
14
15
  */
15
16
  withoutLinkedToPlan?: boolean;
17
+ /**
18
+ * Filter products that have zero price for free subscription type
19
+ */
20
+ withZeroPrice?: boolean;
21
+ /**
22
+ * Filter products that have prices
23
+ */
24
+ withPricesOnly?: boolean;
16
25
  /**
17
26
  * Page limit (default 100)
18
27
  */
@@ -8,13 +8,16 @@
8
8
  * interval: "interval",
9
9
  * price: 1,
10
10
  * priceExternalId: "price_external_id",
11
- * productExternalId: "product_external_id"
11
+ * productExternalId: "product_external_id",
12
+ * usageType: "usage_type"
12
13
  * }
13
14
  */
14
15
  export interface CreateBillingPriceRequestBody {
15
16
  currency: string;
16
17
  interval: string;
18
+ meterId?: string;
17
19
  price: number;
18
20
  priceExternalId: string;
19
21
  productExternalId: string;
22
+ usageType: string;
20
23
  }
@@ -13,7 +13,9 @@ import * as Schematic from "../../../../index";
13
13
  * interval: "interval",
14
14
  * price: 1,
15
15
  * priceExternalId: "price_external_id",
16
- * productExternalId: "product_external_id"
16
+ * productExternalId: "product_external_id",
17
+ * quantity: 1,
18
+ * usageType: "usage_type"
17
19
  * }],
18
20
  * subscriptionExternalId: "subscription_external_id",
19
21
  * totalPrice: 1
@@ -31,4 +33,5 @@ export interface CreateBillingSubscriptionsRequestBody {
31
33
  status?: string;
32
34
  subscriptionExternalId: string;
33
35
  totalPrice: number;
36
+ trialEnd?: number;
34
37
  }
@@ -4,9 +4,9 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * displayName: "DisplayName",
8
- * eventName: "EventName",
9
- * eventPayloadKey: "EventPayloadKey",
7
+ * displayName: "display_name",
8
+ * eventName: "event_name",
9
+ * eventPayloadKey: "event_payload_key",
10
10
  * externalId: "external_id"
11
11
  * }
12
12
  */
@@ -9,10 +9,19 @@ export interface ListBillingProductsRequest {
9
9
  ids?: string | string[];
10
10
  name?: string;
11
11
  q?: string;
12
+ priceUsageType?: string;
12
13
  /**
13
14
  * Filter products that are not linked to any plan
14
15
  */
15
16
  withoutLinkedToPlan?: boolean;
17
+ /**
18
+ * Filter products that have zero price for free subscription type
19
+ */
20
+ withZeroPrice?: boolean;
21
+ /**
22
+ * Filter products that have prices
23
+ */
24
+ withPricesOnly?: boolean;
16
25
  /**
17
26
  * Page limit (default 100)
18
27
  */
@@ -9,10 +9,19 @@ export interface ListProductPricesRequest {
9
9
  ids?: string | string[];
10
10
  name?: string;
11
11
  q?: string;
12
+ priceUsageType?: string;
12
13
  /**
13
14
  * Filter products that are not linked to any plan
14
15
  */
15
16
  withoutLinkedToPlan?: boolean;
17
+ /**
18
+ * Filter products that have zero price for free subscription type
19
+ */
20
+ withZeroPrice?: boolean;
21
+ /**
22
+ * Filter products that have prices
23
+ */
24
+ withPricesOnly?: boolean;
16
25
  /**
17
26
  * Page limit (default 100)
18
27
  */
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface SearchBillingPricesRequest {
9
+ ids?: string | string[];
10
+ interval?: string;
11
+ usageType?: string;
12
+ price?: number;
13
+ /**
14
+ * Page limit (default 100)
15
+ */
16
+ limit?: number;
17
+ /**
18
+ * Page offset (default 0)
19
+ */
20
+ offset?: number;
21
+ }
@@ -7,6 +7,7 @@ export { type ListMetersRequest } from "./ListMetersRequest";
7
7
  export { type CreateMeterRequestBody } from "./CreateMeterRequestBody";
8
8
  export { type ListPaymentMethodsRequest } from "./ListPaymentMethodsRequest";
9
9
  export { type CreatePaymentMethodRequestBody } from "./CreatePaymentMethodRequestBody";
10
+ export { type SearchBillingPricesRequest } from "./SearchBillingPricesRequest";
10
11
  export { type CreateBillingPriceRequestBody } from "./CreateBillingPriceRequestBody";
11
12
  export { type ListProductPricesRequest } from "./ListProductPricesRequest";
12
13
  export { type CreateBillingProductRequestBody } from "./CreateBillingProductRequestBody";
@@ -11,7 +11,12 @@ export interface CountBillingProductsParams {
11
11
  name?: string;
12
12
  /** Page offset (default 0) */
13
13
  offset?: number;
14
+ priceUsageType?: string;
14
15
  q?: string;
16
+ /** Filter products that have prices */
17
+ withPricesOnly?: boolean;
18
+ /** Filter products that have zero price for free subscription type */
19
+ withZeroPrice?: boolean;
15
20
  /** Filter products that are not linked to any plan */
16
21
  withoutLinkedToPlan?: boolean;
17
22
  }
@@ -11,7 +11,12 @@ export interface ListBillingProductsParams {
11
11
  name?: string;
12
12
  /** Page offset (default 0) */
13
13
  offset?: number;
14
+ priceUsageType?: string;
14
15
  q?: string;
16
+ /** Filter products that have prices */
17
+ withPricesOnly?: boolean;
18
+ /** Filter products that have zero price for free subscription type */
19
+ withZeroPrice?: boolean;
15
20
  /** Filter products that are not linked to any plan */
16
21
  withoutLinkedToPlan?: boolean;
17
22
  }
@@ -11,7 +11,12 @@ export interface ListProductPricesParams {
11
11
  name?: string;
12
12
  /** Page offset (default 0) */
13
13
  offset?: number;
14
+ priceUsageType?: string;
14
15
  q?: string;
16
+ /** Filter products that have prices */
17
+ withPricesOnly?: boolean;
18
+ /** Filter products that have zero price for free subscription type */
19
+ withZeroPrice?: boolean;
15
20
  /** Filter products that are not linked to any plan */
16
21
  withoutLinkedToPlan?: boolean;
17
22
  }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Input parameters
6
+ */
7
+ export interface SearchBillingPricesParams {
8
+ ids?: string[];
9
+ interval?: string;
10
+ /** Page limit (default 100) */
11
+ limit?: number;
12
+ /** Page offset (default 0) */
13
+ offset?: number;
14
+ price?: number;
15
+ usageType?: string;
16
+ }
@@ -2,9 +2,9 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Schematic from "../../../index";
5
- export interface ListMetricCountsResponse {
5
+ export interface SearchBillingPricesResponse {
6
6
  /** The returned resources */
7
- data: Schematic.MetricCountsHourlyResponseData[];
7
+ data: Schematic.BillingPriceView[];
8
8
  /** Input parameters */
9
- params: Schematic.ListMetricCountsParams;
9
+ params: Schematic.SearchBillingPricesParams;
10
10
  }
@@ -12,6 +12,8 @@ export * from "./UpsertBillingMeterResponse";
12
12
  export * from "./ListPaymentMethodsParams";
13
13
  export * from "./ListPaymentMethodsResponse";
14
14
  export * from "./UpsertPaymentMethodResponse";
15
+ export * from "./SearchBillingPricesParams";
16
+ export * from "./SearchBillingPricesResponse";
15
17
  export * from "./UpsertBillingPriceResponse";
16
18
  export * from "./ListProductPricesParams";
17
19
  export * from "./ListProductPricesResponse";
@@ -28,6 +28,8 @@ __exportStar(require("./UpsertBillingMeterResponse"), exports);
28
28
  __exportStar(require("./ListPaymentMethodsParams"), exports);
29
29
  __exportStar(require("./ListPaymentMethodsResponse"), exports);
30
30
  __exportStar(require("./UpsertPaymentMethodResponse"), exports);
31
+ __exportStar(require("./SearchBillingPricesParams"), exports);
32
+ __exportStar(require("./SearchBillingPricesResponse"), exports);
31
33
  __exportStar(require("./UpsertBillingPriceResponse"), exports);
32
34
  __exportStar(require("./ListProductPricesParams"), exports);
33
35
  __exportStar(require("./ListProductPricesResponse"), exports);