@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
@@ -6,6 +6,7 @@
6
6
  */
7
7
  export interface GetActiveCompanySubscriptionParams {
8
8
  companyId?: string;
9
+ companyIds?: string[];
9
10
  /** Page limit (default 100) */
10
11
  limit?: number;
11
12
  /** Page offset (default 0) */
@@ -78,7 +78,7 @@ class Components {
78
78
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
79
79
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "components"),
80
80
  method: "GET",
81
- 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())),
81
+ 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())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -172,7 +172,7 @@ class Components {
172
172
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
173
173
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "components"),
174
174
  method: "POST",
175
- 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())),
175
+ 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())),
176
176
  contentType: "application/json",
177
177
  requestType: "json",
178
178
  body: serializers.CreateComponentRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -263,7 +263,7 @@ class Components {
263
263
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
264
264
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `components/${encodeURIComponent(componentId)}`),
265
265
  method: "GET",
266
- 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())),
266
+ 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())),
267
267
  contentType: "application/json",
268
268
  requestType: "json",
269
269
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -355,7 +355,7 @@ class Components {
355
355
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
356
356
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `components/${encodeURIComponent(componentId)}`),
357
357
  method: "PUT",
358
- 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())),
358
+ 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())),
359
359
  contentType: "application/json",
360
360
  requestType: "json",
361
361
  body: serializers.UpdateComponentRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -454,7 +454,7 @@ class Components {
454
454
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
455
455
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `components/${encodeURIComponent(componentId)}`),
456
456
  method: "DELETE",
457
- 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())),
457
+ 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())),
458
458
  contentType: "application/json",
459
459
  requestType: "json",
460
460
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -555,7 +555,7 @@ class Components {
555
555
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
556
556
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "components/count"),
557
557
  method: "GET",
558
- 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())),
558
+ 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())),
559
559
  contentType: "application/json",
560
560
  queryParameters: _queryParams,
561
561
  requestType: "json",
@@ -654,7 +654,7 @@ class Components {
654
654
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
655
655
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "components/preview-data"),
656
656
  method: "GET",
657
- 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())),
657
+ 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())),
658
658
  contentType: "application/json",
659
659
  queryParameters: _queryParams,
660
660
  requestType: "json",
@@ -70,7 +70,7 @@ class Crm {
70
70
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
71
71
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "crm/associations/deal-line-item"),
72
72
  method: "POST",
73
- 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())),
73
+ 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())),
74
74
  contentType: "application/json",
75
75
  requestType: "json",
76
76
  body: serializers.CreateCrmDealLineItemAssociationRequestBody.jsonOrThrow(request, {
@@ -169,7 +169,7 @@ class Crm {
169
169
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
170
170
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "crm/deal-line-item/upsert"),
171
171
  method: "POST",
172
- 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())),
172
+ 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())),
173
173
  contentType: "application/json",
174
174
  requestType: "json",
175
175
  body: serializers.CreateCrmLineItemRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -264,7 +264,7 @@ class Crm {
264
264
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
265
265
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "crm/deals/upsert"),
266
266
  method: "POST",
267
- 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())),
267
+ 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())),
268
268
  contentType: "application/json",
269
269
  requestType: "json",
270
270
  body: serializers.CreateCrmDealRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -374,7 +374,7 @@ class Crm {
374
374
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
375
375
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "crm/products"),
376
376
  method: "GET",
377
- 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())),
377
+ 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())),
378
378
  contentType: "application/json",
379
379
  queryParameters: _queryParams,
380
380
  requestType: "json",
@@ -474,7 +474,7 @@ class Crm {
474
474
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
475
475
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "crm/products/upsert"),
476
476
  method: "POST",
477
- 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())),
477
+ 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())),
478
478
  contentType: "application/json",
479
479
  requestType: "json",
480
480
  body: serializers.CreateCrmProductRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -12,12 +12,12 @@
12
12
  * }
13
13
  */
14
14
  export interface CreateCrmLineItemRequestBody {
15
- termMonth?: number;
16
15
  amount: string;
17
16
  discountPercentage?: string;
18
17
  interval: string;
19
18
  lineItemExternalId: string;
20
19
  productExternalId: string;
21
20
  quantity: number;
21
+ termMonth?: number;
22
22
  totalDiscount?: string;
23
23
  }
@@ -108,7 +108,7 @@ class Entitlements {
108
108
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
109
109
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-overrides"),
110
110
  method: "GET",
111
- 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())),
111
+ 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())),
112
112
  contentType: "application/json",
113
113
  queryParameters: _queryParams,
114
114
  requestType: "json",
@@ -203,7 +203,7 @@ class Entitlements {
203
203
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
204
204
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-overrides"),
205
205
  method: "POST",
206
- 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())),
206
+ 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())),
207
207
  contentType: "application/json",
208
208
  requestType: "json",
209
209
  body: serializers.CreateCompanyOverrideRequestBody.jsonOrThrow(request, {
@@ -296,7 +296,7 @@ class Entitlements {
296
296
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
297
297
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `company-overrides/${encodeURIComponent(companyOverrideId)}`),
298
298
  method: "GET",
299
- 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())),
299
+ 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())),
300
300
  contentType: "application/json",
301
301
  requestType: "json",
302
302
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -390,7 +390,7 @@ class Entitlements {
390
390
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
391
391
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `company-overrides/${encodeURIComponent(companyOverrideId)}`),
392
392
  method: "PUT",
393
- 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())),
393
+ 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())),
394
394
  contentType: "application/json",
395
395
  requestType: "json",
396
396
  body: serializers.UpdateCompanyOverrideRequestBody.jsonOrThrow(request, {
@@ -491,7 +491,7 @@ class Entitlements {
491
491
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
492
492
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `company-overrides/${encodeURIComponent(companyOverrideId)}`),
493
493
  method: "DELETE",
494
- 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())),
494
+ 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())),
495
495
  contentType: "application/json",
496
496
  requestType: "json",
497
497
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -622,7 +622,7 @@ class Entitlements {
622
622
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
623
623
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-overrides/count"),
624
624
  method: "GET",
625
- 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())),
625
+ 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())),
626
626
  contentType: "application/json",
627
627
  queryParameters: _queryParams,
628
628
  requestType: "json",
@@ -727,7 +727,7 @@ class Entitlements {
727
727
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
728
728
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-companies"),
729
729
  method: "GET",
730
- 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())),
730
+ 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())),
731
731
  contentType: "application/json",
732
732
  queryParameters: _queryParams,
733
733
  requestType: "json",
@@ -832,7 +832,7 @@ class Entitlements {
832
832
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
833
833
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-companies/count"),
834
834
  method: "GET",
835
- 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())),
835
+ 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())),
836
836
  contentType: "application/json",
837
837
  queryParameters: _queryParams,
838
838
  requestType: "json",
@@ -951,7 +951,7 @@ class Entitlements {
951
951
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
952
952
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-usage"),
953
953
  method: "GET",
954
- 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())),
954
+ 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())),
955
955
  contentType: "application/json",
956
956
  queryParameters: _queryParams,
957
957
  requestType: "json",
@@ -1070,7 +1070,7 @@ class Entitlements {
1070
1070
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1071
1071
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-usage/count"),
1072
1072
  method: "GET",
1073
- 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())),
1073
+ 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())),
1074
1074
  contentType: "application/json",
1075
1075
  queryParameters: _queryParams,
1076
1076
  requestType: "json",
@@ -1175,7 +1175,7 @@ class Entitlements {
1175
1175
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1176
1176
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-users"),
1177
1177
  method: "GET",
1178
- 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())),
1178
+ 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())),
1179
1179
  contentType: "application/json",
1180
1180
  queryParameters: _queryParams,
1181
1181
  requestType: "json",
@@ -1280,7 +1280,7 @@ class Entitlements {
1280
1280
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1281
1281
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-users/count"),
1282
1282
  method: "GET",
1283
- 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())),
1283
+ 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())),
1284
1284
  contentType: "application/json",
1285
1285
  queryParameters: _queryParams,
1286
1286
  requestType: "json",
@@ -1368,7 +1368,7 @@ class Entitlements {
1368
1368
  listPlanEntitlements(request = {}, requestOptions) {
1369
1369
  var _a, _b;
1370
1370
  return __awaiter(this, void 0, void 0, function* () {
1371
- const { featureId, featureIds, ids, planId, planIds, q, limit, offset } = request;
1371
+ const { featureId, featureIds, ids, planId, planIds, q, withMeteredProducts, limit, offset } = request;
1372
1372
  const _queryParams = {};
1373
1373
  if (featureId != null) {
1374
1374
  _queryParams["feature_id"] = featureId;
@@ -1403,6 +1403,9 @@ class Entitlements {
1403
1403
  if (q != null) {
1404
1404
  _queryParams["q"] = q;
1405
1405
  }
1406
+ if (withMeteredProducts != null) {
1407
+ _queryParams["with_metered_products"] = withMeteredProducts.toString();
1408
+ }
1406
1409
  if (limit != null) {
1407
1410
  _queryParams["limit"] = limit.toString();
1408
1411
  }
@@ -1412,7 +1415,7 @@ class Entitlements {
1412
1415
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1413
1416
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plan-entitlements"),
1414
1417
  method: "GET",
1415
- 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())),
1418
+ 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())),
1416
1419
  contentType: "application/json",
1417
1420
  queryParameters: _queryParams,
1418
1421
  requestType: "json",
@@ -1507,7 +1510,7 @@ class Entitlements {
1507
1510
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1508
1511
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plan-entitlements"),
1509
1512
  method: "POST",
1510
- 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())),
1513
+ 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())),
1511
1514
  contentType: "application/json",
1512
1515
  requestType: "json",
1513
1516
  body: serializers.CreatePlanEntitlementRequestBody.jsonOrThrow(request, {
@@ -1600,7 +1603,7 @@ class Entitlements {
1600
1603
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1601
1604
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-entitlements/${encodeURIComponent(planEntitlementId)}`),
1602
1605
  method: "GET",
1603
- 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())),
1606
+ 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())),
1604
1607
  contentType: "application/json",
1605
1608
  requestType: "json",
1606
1609
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1694,7 +1697,7 @@ class Entitlements {
1694
1697
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1695
1698
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-entitlements/${encodeURIComponent(planEntitlementId)}`),
1696
1699
  method: "PUT",
1697
- 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())),
1700
+ 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())),
1698
1701
  contentType: "application/json",
1699
1702
  requestType: "json",
1700
1703
  body: serializers.UpdatePlanEntitlementRequestBody.jsonOrThrow(request, {
@@ -1795,7 +1798,7 @@ class Entitlements {
1795
1798
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1796
1799
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-entitlements/${encodeURIComponent(planEntitlementId)}`),
1797
1800
  method: "DELETE",
1798
- 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())),
1801
+ 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())),
1799
1802
  contentType: "application/json",
1800
1803
  requestType: "json",
1801
1804
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1882,7 +1885,7 @@ class Entitlements {
1882
1885
  countPlanEntitlements(request = {}, requestOptions) {
1883
1886
  var _a, _b;
1884
1887
  return __awaiter(this, void 0, void 0, function* () {
1885
- const { featureId, featureIds, ids, planId, planIds, q, limit, offset } = request;
1888
+ const { featureId, featureIds, ids, planId, planIds, q, withMeteredProducts, limit, offset } = request;
1886
1889
  const _queryParams = {};
1887
1890
  if (featureId != null) {
1888
1891
  _queryParams["feature_id"] = featureId;
@@ -1917,6 +1920,9 @@ class Entitlements {
1917
1920
  if (q != null) {
1918
1921
  _queryParams["q"] = q;
1919
1922
  }
1923
+ if (withMeteredProducts != null) {
1924
+ _queryParams["with_metered_products"] = withMeteredProducts.toString();
1925
+ }
1920
1926
  if (limit != null) {
1921
1927
  _queryParams["limit"] = limit.toString();
1922
1928
  }
@@ -1926,7 +1932,7 @@ class Entitlements {
1926
1932
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1927
1933
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plan-entitlements/count"),
1928
1934
  method: "GET",
1929
- 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())),
1935
+ 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())),
1930
1936
  contentType: "application/json",
1931
1937
  queryParameters: _queryParams,
1932
1938
  requestType: "json",
@@ -2026,7 +2032,7 @@ class Entitlements {
2026
2032
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2027
2033
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "usage-by-company"),
2028
2034
  method: "GET",
2029
- 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())),
2035
+ 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())),
2030
2036
  contentType: "application/json",
2031
2037
  queryParameters: _queryParams,
2032
2038
  requestType: "json",
@@ -30,6 +30,10 @@ export interface CountPlanEntitlementsRequest {
30
30
  * Search for plan entitlements by feature or company name
31
31
  */
32
32
  q?: string;
33
+ /**
34
+ * Filter plan entitlements only with metered products
35
+ */
36
+ withMeteredProducts?: boolean;
33
37
  /**
34
38
  * Page limit (default 100)
35
39
  */
@@ -12,8 +12,11 @@ import * as Schematic from "../../../../index";
12
12
  */
13
13
  export interface CreateCompanyOverrideRequestBody {
14
14
  companyId: string;
15
+ expirationDate?: Date;
15
16
  featureId: string;
17
+ meteredPriceId?: string;
16
18
  metricPeriod?: Schematic.CreateCompanyOverrideRequestBodyMetricPeriod;
19
+ metricPeriodMonthReset?: Schematic.CreateCompanyOverrideRequestBodyMetricPeriodMonthReset;
17
20
  valueBool?: boolean;
18
21
  valueNumeric?: number;
19
22
  valueTraitId?: string;
@@ -12,8 +12,12 @@ import * as Schematic from "../../../../index";
12
12
  */
13
13
  export interface CreatePlanEntitlementRequestBody {
14
14
  featureId: string;
15
+ meteredPriceId?: string;
16
+ meteredProductPriceId?: string;
15
17
  metricPeriod?: Schematic.CreatePlanEntitlementRequestBodyMetricPeriod;
18
+ metricPeriodMonthReset?: Schematic.CreatePlanEntitlementRequestBodyMetricPeriodMonthReset;
16
19
  planId: string;
20
+ priceBehavior?: string;
17
21
  valueBool?: boolean;
18
22
  valueNumeric?: number;
19
23
  valueTraitId?: string;
@@ -30,6 +30,10 @@ export interface ListPlanEntitlementsRequest {
30
30
  * Search for plan entitlements by feature or company name
31
31
  */
32
32
  q?: string;
33
+ /**
34
+ * Filter plan entitlements only with metered products
35
+ */
36
+ withMeteredProducts?: boolean;
33
37
  /**
34
38
  * Page limit (default 100)
35
39
  */
@@ -9,7 +9,10 @@ import * as Schematic from "../../../../index";
9
9
  * }
10
10
  */
11
11
  export interface UpdateCompanyOverrideRequestBody {
12
+ expirationDate?: Date;
13
+ meteredPriceId?: string;
12
14
  metricPeriod?: Schematic.UpdateCompanyOverrideRequestBodyMetricPeriod;
15
+ metricPeriodMonthReset?: Schematic.UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset;
13
16
  valueBool?: boolean;
14
17
  valueNumeric?: number;
15
18
  valueTraitId?: string;
@@ -9,7 +9,9 @@ import * as Schematic from "../../../../index";
9
9
  * }
10
10
  */
11
11
  export interface UpdatePlanEntitlementRequestBody {
12
+ meteredPriceId?: string;
12
13
  metricPeriod?: Schematic.UpdatePlanEntitlementRequestBodyMetricPeriod;
14
+ metricPeriodMonthReset?: Schematic.UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset;
13
15
  valueBool?: boolean;
14
16
  valueNumeric?: number;
15
17
  valueTraitId?: string;
@@ -21,4 +21,6 @@ export interface CountPlanEntitlementsParams {
21
21
  planIds?: string[];
22
22
  /** Search for plan entitlements by feature or company name */
23
23
  q?: string;
24
+ /** Filter plan entitlements only with metered products */
25
+ withMeteredProducts?: boolean;
24
26
  }
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type CreateCompanyOverrideRequestBodyMetricPeriod = "billing" | "current_month" | "current_week" | "current_day";
4
+ export declare type CreateCompanyOverrideRequestBodyMetricPeriod = "all_time" | "billing" | "current_month" | "current_week" | "current_day";
5
5
  export declare const CreateCompanyOverrideRequestBodyMetricPeriod: {
6
+ readonly AllTime: "all_time";
6
7
  readonly Billing: "billing";
7
8
  readonly CurrentMonth: "current_month";
8
9
  readonly CurrentWeek: "current_week";
@@ -5,6 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CreateCompanyOverrideRequestBodyMetricPeriod = void 0;
7
7
  exports.CreateCompanyOverrideRequestBodyMetricPeriod = {
8
+ AllTime: "all_time",
8
9
  Billing: "billing",
9
10
  CurrentMonth: "current_month",
10
11
  CurrentWeek: "current_week",
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type CreateCompanyOverrideRequestBodyMetricPeriodMonthReset = "first_of_month" | "billing_cycle";
5
+ export declare const CreateCompanyOverrideRequestBodyMetricPeriodMonthReset: {
6
+ readonly FirstOfMonth: "first_of_month";
7
+ readonly BillingCycle: "billing_cycle";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CreateCompanyOverrideRequestBodyMetricPeriodMonthReset = void 0;
7
+ exports.CreateCompanyOverrideRequestBodyMetricPeriodMonthReset = {
8
+ FirstOfMonth: "first_of_month",
9
+ BillingCycle: "billing_cycle",
10
+ };
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type CreatePlanEntitlementRequestBodyMetricPeriod = "billing" | "current_month" | "current_week" | "current_day";
4
+ export declare type CreatePlanEntitlementRequestBodyMetricPeriod = "all_time" | "billing" | "current_month" | "current_week" | "current_day";
5
5
  export declare const CreatePlanEntitlementRequestBodyMetricPeriod: {
6
+ readonly AllTime: "all_time";
6
7
  readonly Billing: "billing";
7
8
  readonly CurrentMonth: "current_month";
8
9
  readonly CurrentWeek: "current_week";
@@ -5,6 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CreatePlanEntitlementRequestBodyMetricPeriod = void 0;
7
7
  exports.CreatePlanEntitlementRequestBodyMetricPeriod = {
8
+ AllTime: "all_time",
8
9
  Billing: "billing",
9
10
  CurrentMonth: "current_month",
10
11
  CurrentWeek: "current_week",
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type CreatePlanEntitlementRequestBodyMetricPeriodMonthReset = "first_of_month" | "billing_cycle";
5
+ export declare const CreatePlanEntitlementRequestBodyMetricPeriodMonthReset: {
6
+ readonly FirstOfMonth: "first_of_month";
7
+ readonly BillingCycle: "billing_cycle";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CreatePlanEntitlementRequestBodyMetricPeriodMonthReset = void 0;
7
+ exports.CreatePlanEntitlementRequestBodyMetricPeriodMonthReset = {
8
+ FirstOfMonth: "first_of_month",
9
+ BillingCycle: "billing_cycle",
10
+ };
@@ -21,4 +21,6 @@ export interface ListPlanEntitlementsParams {
21
21
  planIds?: string[];
22
22
  /** Search for plan entitlements by feature or company name */
23
23
  q?: string;
24
+ /** Filter plan entitlements only with metered products */
25
+ withMeteredProducts?: boolean;
24
26
  }
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type UpdateCompanyOverrideRequestBodyMetricPeriod = "billing" | "current_month" | "current_week" | "current_day";
4
+ export declare type UpdateCompanyOverrideRequestBodyMetricPeriod = "all_time" | "billing" | "current_month" | "current_week" | "current_day";
5
5
  export declare const UpdateCompanyOverrideRequestBodyMetricPeriod: {
6
+ readonly AllTime: "all_time";
6
7
  readonly Billing: "billing";
7
8
  readonly CurrentMonth: "current_month";
8
9
  readonly CurrentWeek: "current_week";
@@ -5,6 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.UpdateCompanyOverrideRequestBodyMetricPeriod = void 0;
7
7
  exports.UpdateCompanyOverrideRequestBodyMetricPeriod = {
8
+ AllTime: "all_time",
8
9
  Billing: "billing",
9
10
  CurrentMonth: "current_month",
10
11
  CurrentWeek: "current_week",
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset = "first_of_month" | "billing_cycle";
5
+ export declare const UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset: {
6
+ readonly FirstOfMonth: "first_of_month";
7
+ readonly BillingCycle: "billing_cycle";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset = void 0;
7
+ exports.UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset = {
8
+ FirstOfMonth: "first_of_month",
9
+ BillingCycle: "billing_cycle",
10
+ };