@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
@@ -9,10 +9,19 @@ export interface CountBillingProductsRequest {
9
9
  ids?: string | string[];
10
10
  name?: string;
11
11
  q?: string;
12
+ priceUsageType?: string;
12
13
  /**
13
14
  * Filter products that are not linked to any plan
14
15
  */
15
16
  withoutLinkedToPlan?: boolean;
17
+ /**
18
+ * Filter products that have zero price for free subscription type
19
+ */
20
+ withZeroPrice?: boolean;
21
+ /**
22
+ * Filter products that have prices
23
+ */
24
+ withPricesOnly?: boolean;
16
25
  /**
17
26
  * Page limit (default 100)
18
27
  */
@@ -8,13 +8,16 @@
8
8
  * interval: "interval",
9
9
  * price: 1,
10
10
  * priceExternalId: "price_external_id",
11
- * productExternalId: "product_external_id"
11
+ * productExternalId: "product_external_id",
12
+ * usageType: "usage_type"
12
13
  * }
13
14
  */
14
15
  export interface CreateBillingPriceRequestBody {
15
16
  currency: string;
16
17
  interval: string;
18
+ meterId?: string;
17
19
  price: number;
18
20
  priceExternalId: string;
19
21
  productExternalId: string;
22
+ usageType: string;
20
23
  }
@@ -13,7 +13,9 @@ import * as Schematic from "../../../../index";
13
13
  * interval: "interval",
14
14
  * price: 1,
15
15
  * priceExternalId: "price_external_id",
16
- * productExternalId: "product_external_id"
16
+ * productExternalId: "product_external_id",
17
+ * quantity: 1,
18
+ * usageType: "usage_type"
17
19
  * }],
18
20
  * subscriptionExternalId: "subscription_external_id",
19
21
  * totalPrice: 1
@@ -31,4 +33,5 @@ export interface CreateBillingSubscriptionsRequestBody {
31
33
  status?: string;
32
34
  subscriptionExternalId: string;
33
35
  totalPrice: number;
36
+ trialEnd?: number;
34
37
  }
@@ -4,9 +4,9 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * displayName: "DisplayName",
8
- * eventName: "EventName",
9
- * eventPayloadKey: "EventPayloadKey",
7
+ * displayName: "display_name",
8
+ * eventName: "event_name",
9
+ * eventPayloadKey: "event_payload_key",
10
10
  * externalId: "external_id"
11
11
  * }
12
12
  */
@@ -9,10 +9,19 @@ export interface ListBillingProductsRequest {
9
9
  ids?: string | string[];
10
10
  name?: string;
11
11
  q?: string;
12
+ priceUsageType?: string;
12
13
  /**
13
14
  * Filter products that are not linked to any plan
14
15
  */
15
16
  withoutLinkedToPlan?: boolean;
17
+ /**
18
+ * Filter products that have zero price for free subscription type
19
+ */
20
+ withZeroPrice?: boolean;
21
+ /**
22
+ * Filter products that have prices
23
+ */
24
+ withPricesOnly?: boolean;
16
25
  /**
17
26
  * Page limit (default 100)
18
27
  */
@@ -9,10 +9,19 @@ export interface ListProductPricesRequest {
9
9
  ids?: string | string[];
10
10
  name?: string;
11
11
  q?: string;
12
+ priceUsageType?: string;
12
13
  /**
13
14
  * Filter products that are not linked to any plan
14
15
  */
15
16
  withoutLinkedToPlan?: boolean;
17
+ /**
18
+ * Filter products that have zero price for free subscription type
19
+ */
20
+ withZeroPrice?: boolean;
21
+ /**
22
+ * Filter products that have prices
23
+ */
24
+ withPricesOnly?: boolean;
16
25
  /**
17
26
  * Page limit (default 100)
18
27
  */
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface SearchBillingPricesRequest {
9
+ ids?: string | string[];
10
+ usageType?: string;
11
+ price?: number;
12
+ /**
13
+ * Page limit (default 100)
14
+ */
15
+ limit?: number;
16
+ /**
17
+ * Page offset (default 0)
18
+ */
19
+ offset?: number;
20
+ }
@@ -7,6 +7,7 @@ export { type ListMetersRequest } from "./ListMetersRequest";
7
7
  export { type CreateMeterRequestBody } from "./CreateMeterRequestBody";
8
8
  export { type ListPaymentMethodsRequest } from "./ListPaymentMethodsRequest";
9
9
  export { type CreatePaymentMethodRequestBody } from "./CreatePaymentMethodRequestBody";
10
+ export { type SearchBillingPricesRequest } from "./SearchBillingPricesRequest";
10
11
  export { type CreateBillingPriceRequestBody } from "./CreateBillingPriceRequestBody";
11
12
  export { type ListProductPricesRequest } from "./ListProductPricesRequest";
12
13
  export { type CreateBillingProductRequestBody } from "./CreateBillingProductRequestBody";
@@ -11,7 +11,12 @@ export interface CountBillingProductsParams {
11
11
  name?: string;
12
12
  /** Page offset (default 0) */
13
13
  offset?: number;
14
+ priceUsageType?: string;
14
15
  q?: string;
16
+ /** Filter products that have prices */
17
+ withPricesOnly?: boolean;
18
+ /** Filter products that have zero price for free subscription type */
19
+ withZeroPrice?: boolean;
15
20
  /** Filter products that are not linked to any plan */
16
21
  withoutLinkedToPlan?: boolean;
17
22
  }
@@ -11,7 +11,12 @@ export interface ListBillingProductsParams {
11
11
  name?: string;
12
12
  /** Page offset (default 0) */
13
13
  offset?: number;
14
+ priceUsageType?: string;
14
15
  q?: string;
16
+ /** Filter products that have prices */
17
+ withPricesOnly?: boolean;
18
+ /** Filter products that have zero price for free subscription type */
19
+ withZeroPrice?: boolean;
15
20
  /** Filter products that are not linked to any plan */
16
21
  withoutLinkedToPlan?: boolean;
17
22
  }
@@ -11,7 +11,12 @@ export interface ListProductPricesParams {
11
11
  name?: string;
12
12
  /** Page offset (default 0) */
13
13
  offset?: number;
14
+ priceUsageType?: string;
14
15
  q?: string;
16
+ /** Filter products that have prices */
17
+ withPricesOnly?: boolean;
18
+ /** Filter products that have zero price for free subscription type */
19
+ withZeroPrice?: boolean;
15
20
  /** Filter products that are not linked to any plan */
16
21
  withoutLinkedToPlan?: boolean;
17
22
  }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Input parameters
6
+ */
7
+ export interface SearchBillingPricesParams {
8
+ ids?: string[];
9
+ /** Page limit (default 100) */
10
+ limit?: number;
11
+ /** Page offset (default 0) */
12
+ offset?: number;
13
+ price?: number;
14
+ usageType?: string;
15
+ }
@@ -2,9 +2,9 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Schematic from "../../../index";
5
- export interface ListMetricCountsResponse {
5
+ export interface SearchBillingPricesResponse {
6
6
  /** The returned resources */
7
- data: Schematic.MetricCountsHourlyResponseData[];
7
+ data: Schematic.BillingPriceView[];
8
8
  /** Input parameters */
9
- params: Schematic.ListMetricCountsParams;
9
+ params: Schematic.SearchBillingPricesParams;
10
10
  }
@@ -12,6 +12,8 @@ export * from "./UpsertBillingMeterResponse";
12
12
  export * from "./ListPaymentMethodsParams";
13
13
  export * from "./ListPaymentMethodsResponse";
14
14
  export * from "./UpsertPaymentMethodResponse";
15
+ export * from "./SearchBillingPricesParams";
16
+ export * from "./SearchBillingPricesResponse";
15
17
  export * from "./UpsertBillingPriceResponse";
16
18
  export * from "./ListProductPricesParams";
17
19
  export * from "./ListProductPricesResponse";
@@ -28,6 +28,8 @@ __exportStar(require("./UpsertBillingMeterResponse"), exports);
28
28
  __exportStar(require("./ListPaymentMethodsParams"), exports);
29
29
  __exportStar(require("./ListPaymentMethodsResponse"), exports);
30
30
  __exportStar(require("./UpsertPaymentMethodResponse"), exports);
31
+ __exportStar(require("./SearchBillingPricesParams"), exports);
32
+ __exportStar(require("./SearchBillingPricesResponse"), exports);
31
33
  __exportStar(require("./UpsertBillingPriceResponse"), exports);
32
34
  __exportStar(require("./ListProductPricesParams"), exports);
33
35
  __exportStar(require("./ListProductPricesResponse"), exports);
@@ -212,11 +212,9 @@ export declare class Companies {
212
212
  * @throws {@link Schematic.InternalServerError}
213
213
  *
214
214
  * @example
215
- * await client.companies.getActiveCompanySubscription({
216
- * companyId: "company_id"
217
- * })
215
+ * await client.companies.getActiveCompanySubscription()
218
216
  */
219
- getActiveCompanySubscription(request: Schematic.GetActiveCompanySubscriptionRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.GetActiveCompanySubscriptionResponse>;
217
+ getActiveCompanySubscription(request?: Schematic.GetActiveCompanySubscriptionRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.GetActiveCompanySubscriptionResponse>;
220
218
  /**
221
219
  * @param {Schematic.UpsertTraitRequestBody} request
222
220
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -95,7 +95,7 @@ class Companies {
95
95
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
96
96
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies"),
97
97
  method: "GET",
98
- 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())),
98
+ 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())),
99
99
  contentType: "application/json",
100
100
  queryParameters: _queryParams,
101
101
  requestType: "json",
@@ -190,7 +190,7 @@ class Companies {
190
190
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
191
191
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies"),
192
192
  method: "POST",
193
- 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())),
193
+ 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())),
194
194
  contentType: "application/json",
195
195
  requestType: "json",
196
196
  body: serializers.UpsertCompanyRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -281,7 +281,7 @@ class Companies {
281
281
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
282
282
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `companies/${encodeURIComponent(companyId)}`),
283
283
  method: "GET",
284
- 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())),
284
+ 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())),
285
285
  contentType: "application/json",
286
286
  requestType: "json",
287
287
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -371,7 +371,7 @@ class Companies {
371
371
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
372
372
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `companies/${encodeURIComponent(companyId)}`),
373
373
  method: "DELETE",
374
- 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())),
374
+ 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())),
375
375
  contentType: "application/json",
376
376
  requestType: "json",
377
377
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -489,7 +489,7 @@ class Companies {
489
489
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
490
490
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies/count"),
491
491
  method: "GET",
492
- 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())),
492
+ 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())),
493
493
  contentType: "application/json",
494
494
  queryParameters: _queryParams,
495
495
  requestType: "json",
@@ -584,7 +584,7 @@ class Companies {
584
584
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
585
585
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies/create"),
586
586
  method: "POST",
587
- 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())),
587
+ 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())),
588
588
  contentType: "application/json",
589
589
  requestType: "json",
590
590
  body: serializers.UpsertCompanyRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -679,7 +679,7 @@ class Companies {
679
679
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
680
680
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies/delete"),
681
681
  method: "POST",
682
- 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())),
682
+ 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())),
683
683
  contentType: "application/json",
684
684
  requestType: "json",
685
685
  body: serializers.KeysRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -779,7 +779,7 @@ class Companies {
779
779
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
780
780
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies/lookup"),
781
781
  method: "GET",
782
- 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())),
782
+ 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())),
783
783
  contentType: "application/json",
784
784
  queryParameters: _queryParams,
785
785
  requestType: "json",
@@ -883,7 +883,7 @@ class Companies {
883
883
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
884
884
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-crm-deals"),
885
885
  method: "GET",
886
- 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())),
886
+ 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())),
887
887
  contentType: "application/json",
888
888
  queryParameters: _queryParams,
889
889
  requestType: "json",
@@ -988,7 +988,7 @@ class Companies {
988
988
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
989
989
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-memberships"),
990
990
  method: "GET",
991
- 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())),
991
+ 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())),
992
992
  contentType: "application/json",
993
993
  queryParameters: _queryParams,
994
994
  requestType: "json",
@@ -1082,7 +1082,7 @@ class Companies {
1082
1082
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1083
1083
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-memberships"),
1084
1084
  method: "POST",
1085
- 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())),
1085
+ 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())),
1086
1086
  contentType: "application/json",
1087
1087
  requestType: "json",
1088
1088
  body: serializers.GetOrCreateCompanyMembershipRequestBody.jsonOrThrow(request, {
@@ -1175,7 +1175,7 @@ class Companies {
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, `company-memberships/${encodeURIComponent(companyMembershipId)}`),
1177
1177
  method: "DELETE",
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
  requestType: "json",
1181
1181
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1257,16 +1257,24 @@ class Companies {
1257
1257
  * @throws {@link Schematic.InternalServerError}
1258
1258
  *
1259
1259
  * @example
1260
- * await client.companies.getActiveCompanySubscription({
1261
- * companyId: "company_id"
1262
- * })
1260
+ * await client.companies.getActiveCompanySubscription()
1263
1261
  */
1264
- getActiveCompanySubscription(request, requestOptions) {
1262
+ getActiveCompanySubscription(request = {}, requestOptions) {
1265
1263
  var _a, _b;
1266
1264
  return __awaiter(this, void 0, void 0, function* () {
1267
- const { companyId, limit, offset } = request;
1265
+ const { companyId, companyIds, limit, offset } = request;
1268
1266
  const _queryParams = {};
1269
- _queryParams["company_id"] = companyId;
1267
+ if (companyId != null) {
1268
+ _queryParams["company_id"] = companyId;
1269
+ }
1270
+ if (companyIds != null) {
1271
+ if (Array.isArray(companyIds)) {
1272
+ _queryParams["company_ids"] = companyIds.map((item) => item);
1273
+ }
1274
+ else {
1275
+ _queryParams["company_ids"] = companyIds;
1276
+ }
1277
+ }
1270
1278
  if (limit != null) {
1271
1279
  _queryParams["limit"] = limit.toString();
1272
1280
  }
@@ -1276,7 +1284,7 @@ class Companies {
1276
1284
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1277
1285
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-subscriptions"),
1278
1286
  method: "GET",
1279
- 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())),
1287
+ 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())),
1280
1288
  contentType: "application/json",
1281
1289
  queryParameters: _queryParams,
1282
1290
  requestType: "json",
@@ -1372,7 +1380,7 @@ class Companies {
1372
1380
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1373
1381
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-traits"),
1374
1382
  method: "POST",
1375
- 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())),
1383
+ 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())),
1376
1384
  contentType: "application/json",
1377
1385
  requestType: "json",
1378
1386
  body: serializers.UpsertTraitRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1485,7 +1493,7 @@ class Companies {
1485
1493
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1486
1494
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-key-definitions"),
1487
1495
  method: "GET",
1488
- 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())),
1496
+ 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())),
1489
1497
  contentType: "application/json",
1490
1498
  queryParameters: _queryParams,
1491
1499
  requestType: "json",
@@ -1598,7 +1606,7 @@ class Companies {
1598
1606
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1599
1607
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-key-definitions/count"),
1600
1608
  method: "GET",
1601
- 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())),
1609
+ 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())),
1602
1610
  contentType: "application/json",
1603
1611
  queryParameters: _queryParams,
1604
1612
  requestType: "json",
@@ -1714,7 +1722,7 @@ class Companies {
1714
1722
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1715
1723
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-trait-definitions"),
1716
1724
  method: "GET",
1717
- 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())),
1725
+ 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())),
1718
1726
  contentType: "application/json",
1719
1727
  queryParameters: _queryParams,
1720
1728
  requestType: "json",
@@ -1809,7 +1817,7 @@ class Companies {
1809
1817
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1810
1818
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-trait-definitions"),
1811
1819
  method: "POST",
1812
- 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())),
1820
+ 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())),
1813
1821
  contentType: "application/json",
1814
1822
  requestType: "json",
1815
1823
  body: serializers.CreateEntityTraitDefinitionRequestBody.jsonOrThrow(request, {
@@ -1902,7 +1910,7 @@ class Companies {
1902
1910
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1903
1911
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `entity-trait-definitions/${encodeURIComponent(entityTraitDefinitionId)}`),
1904
1912
  method: "GET",
1905
- 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())),
1913
+ 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())),
1906
1914
  contentType: "application/json",
1907
1915
  requestType: "json",
1908
1916
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1996,7 +2004,7 @@ class Companies {
1996
2004
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1997
2005
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `entity-trait-definitions/${encodeURIComponent(entityTraitDefinitionId)}`),
1998
2006
  method: "PUT",
1999
- 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())),
2007
+ 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())),
2000
2008
  contentType: "application/json",
2001
2009
  requestType: "json",
2002
2010
  body: serializers.UpdateEntityTraitDefinitionRequestBody.jsonOrThrow(request, {
@@ -2122,7 +2130,7 @@ class Companies {
2122
2130
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2123
2131
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-trait-definitions/count"),
2124
2132
  method: "GET",
2125
- 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())),
2133
+ 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())),
2126
2134
  contentType: "application/json",
2127
2135
  queryParameters: _queryParams,
2128
2136
  requestType: "json",
@@ -2227,7 +2235,7 @@ class Companies {
2227
2235
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2228
2236
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-trait-values"),
2229
2237
  method: "GET",
2230
- 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())),
2238
+ 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())),
2231
2239
  contentType: "application/json",
2232
2240
  queryParameters: _queryParams,
2233
2241
  requestType: "json",
@@ -2323,7 +2331,7 @@ class Companies {
2323
2331
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2324
2332
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "user-traits"),
2325
2333
  method: "POST",
2326
- 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())),
2334
+ 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())),
2327
2335
  contentType: "application/json",
2328
2336
  requestType: "json",
2329
2337
  body: serializers.UpsertTraitRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -2439,7 +2447,7 @@ class Companies {
2439
2447
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2440
2448
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users"),
2441
2449
  method: "GET",
2442
- 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())),
2450
+ 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())),
2443
2451
  contentType: "application/json",
2444
2452
  queryParameters: _queryParams,
2445
2453
  requestType: "json",
@@ -2537,7 +2545,7 @@ class Companies {
2537
2545
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2538
2546
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users"),
2539
2547
  method: "POST",
2540
- 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())),
2548
+ 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())),
2541
2549
  contentType: "application/json",
2542
2550
  requestType: "json",
2543
2551
  body: serializers.UpsertUserRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -2628,7 +2636,7 @@ class Companies {
2628
2636
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2629
2637
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `users/${encodeURIComponent(userId)}`),
2630
2638
  method: "GET",
2631
- 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())),
2639
+ 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())),
2632
2640
  contentType: "application/json",
2633
2641
  requestType: "json",
2634
2642
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2718,7 +2726,7 @@ class Companies {
2718
2726
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2719
2727
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `users/${encodeURIComponent(userId)}`),
2720
2728
  method: "DELETE",
2721
- 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())),
2729
+ 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())),
2722
2730
  contentType: "application/json",
2723
2731
  requestType: "json",
2724
2732
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2833,7 +2841,7 @@ class Companies {
2833
2841
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2834
2842
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users/count"),
2835
2843
  method: "GET",
2836
- 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())),
2844
+ 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())),
2837
2845
  contentType: "application/json",
2838
2846
  queryParameters: _queryParams,
2839
2847
  requestType: "json",
@@ -2931,7 +2939,7 @@ class Companies {
2931
2939
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2932
2940
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users/create"),
2933
2941
  method: "POST",
2934
- 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())),
2942
+ 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())),
2935
2943
  contentType: "application/json",
2936
2944
  requestType: "json",
2937
2945
  body: serializers.UpsertUserRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -3026,7 +3034,7 @@ class Companies {
3026
3034
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
3027
3035
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users/delete"),
3028
3036
  method: "POST",
3029
- 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())),
3037
+ 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())),
3030
3038
  contentType: "application/json",
3031
3039
  requestType: "json",
3032
3040
  body: serializers.KeysRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -3126,7 +3134,7 @@ class Companies {
3126
3134
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
3127
3135
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users/lookup"),
3128
3136
  method: "GET",
3129
- 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())),
3137
+ 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())),
3130
3138
  contentType: "application/json",
3131
3139
  queryParameters: _queryParams,
3132
3140
  requestType: "json",
@@ -3,12 +3,11 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {
7
- * companyId: "company_id"
8
- * }
6
+ * {}
9
7
  */
10
8
  export interface GetActiveCompanySubscriptionRequest {
11
- companyId: string;
9
+ companyId?: string;
10
+ companyIds?: string | string[];
12
11
  /**
13
12
  * Page limit (default 100)
14
13
  */