@schematichq/schematic-typescript-node 1.1.4 → 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 (1093) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +10 -5
  3. package/api/resources/accesstokens/client/Client.js +1 -1
  4. package/api/resources/accounts/client/Client.d.ts +1 -1
  5. package/api/resources/accounts/client/Client.js +15 -15
  6. package/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
  7. package/api/resources/billing/client/Client.d.ts +117 -32
  8. package/api/resources/billing/client/Client.js +667 -83
  9. package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +33 -0
  10. package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +6 -1
  11. package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +12 -2
  12. package/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +29 -0
  13. package/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +18 -0
  14. package/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +26 -0
  15. package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +13 -0
  16. package/{dist/api/resources/events/client/requests/ListMetricCountsRequest.d.ts → api/resources/billing/client/requests/ListInvoicesRequest.d.ts} +6 -9
  17. package/api/resources/billing/client/requests/ListMetersRequest.d.ts +18 -0
  18. package/api/resources/{events/client/requests/ListMetricCountsRequest.d.ts → billing/client/requests/ListPaymentMethodsRequest.d.ts} +6 -9
  19. package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +13 -0
  20. package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +20 -0
  21. package/api/resources/billing/client/requests/index.d.ts +8 -3
  22. package/api/resources/billing/types/CountBillingProductsParams.d.ts +22 -0
  23. package/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
  24. package/api/resources/{components/types/HydrateComponentResponse.d.ts → billing/types/DeleteProductPriceResponse.d.ts} +2 -2
  25. package/api/resources/billing/types/ListBillingProductsParams.d.ts +7 -0
  26. package/api/resources/{events/types/ListMetricCountsParams.d.ts → billing/types/ListInvoicesParams.d.ts} +3 -8
  27. package/api/resources/{plans/types/ListActivePlansResponse.d.ts → billing/types/ListInvoicesResponse.d.ts} +3 -3
  28. package/api/resources/billing/types/ListMetersParams.d.ts +13 -0
  29. package/{dist/api/resources/plans/types/ListActivePlansResponse.d.ts → api/resources/billing/types/ListMetersResponse.d.ts} +3 -3
  30. package/{dist/api/resources/events/types/ListMetricCountsParams.d.ts → api/resources/billing/types/ListPaymentMethodsParams.d.ts} +3 -8
  31. package/api/resources/{events/types/ListMetricCountsResponse.d.ts → billing/types/ListPaymentMethodsResponse.d.ts} +3 -3
  32. package/api/resources/billing/types/ListProductPricesParams.d.ts +7 -0
  33. package/api/resources/billing/types/SearchBillingPricesParams.d.ts +15 -0
  34. package/{dist/api/resources/events/types/ListMetricCountsResponse.d.ts → api/resources/billing/types/SearchBillingPricesResponse.d.ts} +3 -3
  35. package/{dist/api/resources/components/types/HydrateComponentResponse.d.ts → api/resources/billing/types/UpsertBillingMeterResponse.d.ts} +2 -2
  36. package/api/resources/billing/types/{UpdateBillingPlanGroupResponse.d.ts → UpsertInvoiceResponse.d.ts} +2 -2
  37. package/api/resources/billing/types/{CreateBillingPlanGroupResponse.d.ts → UpsertPaymentMethodResponse.d.ts} +2 -2
  38. package/api/resources/billing/types/index.d.ts +14 -4
  39. package/api/resources/billing/types/index.js +14 -4
  40. package/api/resources/companies/client/Client.d.ts +5 -7
  41. package/api/resources/companies/client/Client.js +64 -50
  42. package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
  43. package/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
  44. package/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
  45. package/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
  46. package/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
  47. package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
  48. package/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
  49. package/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
  50. package/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
  51. package/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
  52. package/api/resources/companies/types/CountUsersParams.d.ts +4 -1
  53. package/api/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  54. package/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
  55. package/api/resources/companies/types/ListUsersParams.d.ts +4 -1
  56. package/api/resources/components/client/Client.d.ts +9 -9
  57. package/api/resources/components/client/Client.js +49 -40
  58. package/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
  59. package/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
  60. package/api/resources/components/client/requests/index.d.ts +1 -0
  61. package/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
  62. package/api/resources/{billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts → components/types/PreviewComponentDataResponse.d.ts} +3 -3
  63. package/api/resources/components/types/index.d.ts +2 -1
  64. package/api/resources/components/types/index.js +2 -1
  65. package/api/resources/crm/client/Client.js +5 -5
  66. package/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  67. package/api/resources/entitlements/client/Client.d.ts +4 -4
  68. package/api/resources/entitlements/client/Client.js +39 -27
  69. package/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
  70. package/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
  71. package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +22 -0
  72. package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -1
  73. package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -1
  74. package/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
  75. package/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
  76. package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +22 -0
  77. package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -1
  78. package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  79. package/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
  80. package/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  81. package/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +8 -0
  82. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
  83. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
  84. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  85. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  86. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
  87. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
  88. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  89. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  90. package/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
  91. package/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  92. package/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +8 -0
  93. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
  94. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
  95. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  96. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  97. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
  98. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
  99. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  100. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  101. package/api/resources/entitlements/types/index.d.ts +4 -0
  102. package/api/resources/entitlements/types/index.js +4 -0
  103. package/api/resources/events/client/Client.d.ts +2 -15
  104. package/api/resources/events/client/Client.js +9 -142
  105. package/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
  106. package/api/resources/events/client/requests/index.d.ts +0 -1
  107. package/api/resources/events/types/index.d.ts +0 -2
  108. package/api/resources/events/types/index.js +0 -2
  109. package/api/resources/features/client/Client.d.ts +21 -21
  110. package/api/resources/features/client/Client.js +40 -40
  111. package/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
  112. package/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
  113. package/api/resources/index.d.ts +3 -0
  114. package/api/resources/index.js +4 -1
  115. package/api/resources/plangroups/client/Client.d.ts +74 -0
  116. package/api/resources/plangroups/client/Client.js +346 -0
  117. package/api/resources/plangroups/client/index.d.ts +1 -0
  118. package/api/resources/plangroups/client/index.js +17 -0
  119. package/{dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +5 -1
  120. package/api/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +5 -1
  121. package/api/resources/plangroups/client/requests/index.d.ts +2 -0
  122. package/api/resources/plangroups/client/requests/index.js +2 -0
  123. package/api/resources/plangroups/index.d.ts +2 -0
  124. package/api/resources/plangroups/index.js +18 -0
  125. package/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
  126. package/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
  127. package/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
  128. package/api/resources/plangroups/types/index.d.ts +3 -0
  129. package/api/resources/plangroups/types/index.js +19 -0
  130. package/api/resources/plans/client/Client.d.ts +7 -18
  131. package/api/resources/plans/client/Client.js +37 -113
  132. package/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
  133. package/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -1
  134. package/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
  135. package/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
  136. package/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
  137. package/api/resources/plans/types/CountPlansParams.d.ts +4 -0
  138. package/api/resources/plans/types/ListPlansParams.d.ts +4 -0
  139. package/api/resources/plans/types/index.d.ts +0 -1
  140. package/api/resources/plans/types/index.js +0 -1
  141. package/api/resources/webhooks/client/Client.d.ts +1 -1
  142. package/api/resources/webhooks/client/Client.js +18 -18
  143. package/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
  144. package/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
  145. package/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
  146. package/api/types/BillingCustomerSubscription.d.ts +4 -0
  147. package/api/types/BillingMeterResponseData.d.ts +10 -0
  148. package/api/types/BillingPriceResponseData.d.ts +1 -0
  149. package/api/types/BillingPriceView.d.ts +18 -0
  150. package/api/types/BillingProductDetailResponseData.d.ts +1 -1
  151. package/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
  152. package/api/types/BillingProductPlanResponseData.d.ts +2 -0
  153. package/api/types/BillingProductPriceResponseData.d.ts +15 -0
  154. package/api/types/BillingProductPricing.d.ts +6 -2
  155. package/api/types/BillingSubscriptionResponseData.d.ts +13 -6
  156. package/api/types/BillingSubscriptionView.d.ts +23 -0
  157. package/api/types/CheckFlagRequestBody.d.ts +2 -2
  158. package/api/types/CompanyDetailResponseData.d.ts +5 -3
  159. package/api/types/CompanyOverrideResponseData.d.ts +3 -1
  160. package/api/types/CompanyPlanDetailResponseData.d.ts +26 -0
  161. package/api/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +2 -1
  162. package/api/types/CompanySubscriptionResponseData.d.ts +5 -0
  163. package/api/types/ComponentCapabilities.d.ts +6 -0
  164. package/api/types/ComponentCapabilities.js +5 -0
  165. package/api/types/ComponentHydrateResponseData.d.ts +6 -3
  166. package/api/types/ComponentPreviewResponseData.d.ts +19 -0
  167. package/api/types/ComponentPreviewResponseData.js +5 -0
  168. package/api/types/ComponentResponseData.d.ts +3 -0
  169. package/api/types/CreateEntitlementReqCommon.d.ts +14 -0
  170. package/api/types/CreateEntitlementReqCommon.js +5 -0
  171. package/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +11 -0
  172. package/api/types/{UpdateReqCommonMetricPeriod.js → CreateEntitlementReqCommonMetricPeriod.js} +4 -2
  173. package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  174. package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  175. package/api/types/{UpdateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
  176. package/{dist/api/types/CreateReqCommonValueType.js → api/types/CreateEntitlementReqCommonValueType.js} +2 -2
  177. package/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  178. package/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
  179. package/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
  180. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +3 -1
  181. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +2 -0
  182. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
  183. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
  184. package/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
  185. package/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
  186. package/api/types/EventBodyFlagCheck.d.ts +2 -2
  187. package/api/types/FeatureCompanyResponseData.d.ts +2 -0
  188. package/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
  189. package/api/types/FeatureUsageResponseData.d.ts +2 -0
  190. package/{dist/api/types/RuleConditionResourceResponseData.d.ts → api/types/GenericPreviewObject.d.ts} +3 -1
  191. package/api/types/GenericPreviewObject.js +5 -0
  192. package/api/types/InvoiceRequestBody.d.ts +16 -0
  193. package/api/types/InvoiceRequestBody.js +5 -0
  194. package/api/types/InvoiceResponseData.d.ts +22 -0
  195. package/api/types/InvoiceResponseData.js +5 -0
  196. package/api/types/MeterRequestBody.d.ts +8 -0
  197. package/api/types/MeterRequestBody.js +5 -0
  198. package/api/types/PaymentMethodRequestBody.d.ts +17 -0
  199. package/api/types/PaymentMethodRequestBody.js +5 -0
  200. package/api/types/PaymentMethodResponseData.d.ts +23 -0
  201. package/api/types/PaymentMethodResponseData.js +5 -0
  202. package/api/types/PlanDetailResponseData.d.ts +7 -3
  203. package/api/types/PlanEntitlementResponseData.d.ts +3 -3
  204. package/api/types/PlanGroupDetailResponseData.d.ts +16 -0
  205. package/api/types/PlanGroupDetailResponseData.js +5 -0
  206. package/api/types/PlanGroupPlanDetailResponseData.d.ts +24 -0
  207. package/api/types/PlanGroupPlanDetailResponseData.js +5 -0
  208. package/api/types/{BillingPlanGroupResponseData.d.ts → PlanGroupResponseData.d.ts} +4 -1
  209. package/api/types/PlanGroupResponseData.js +5 -0
  210. package/api/types/PlanResponseData.d.ts +1 -0
  211. package/api/types/PreviewObjectResponseData.d.ts +9 -0
  212. package/api/types/PreviewObjectResponseData.js +5 -0
  213. package/api/types/RuleConditionDetailResponseData.d.ts +2 -1
  214. package/api/types/RuleConditionResponseData.d.ts +1 -0
  215. package/api/types/StripeEmbedInfo.d.ts +7 -0
  216. package/api/types/StripeEmbedInfo.js +5 -0
  217. package/api/types/UpdateEntitlementReqCommon.d.ts +13 -0
  218. package/api/types/UpdateEntitlementReqCommon.js +5 -0
  219. package/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +11 -0
  220. package/api/types/{CreateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonMetricPeriod.js} +4 -2
  221. package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  222. package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  223. package/{dist/api/types/CreateReqCommonValueType.d.ts → api/types/UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  224. package/{dist/api/types/UpdateReqCommonValueType.js → api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
  225. package/api/types/index.d.ts +28 -10
  226. package/api/types/index.js +28 -10
  227. package/core/fetcher/Fetcher.d.ts +1 -1
  228. package/core/fetcher/getResponseBody.js +3 -0
  229. package/core/fetcher/requestWithRetries.js +13 -4
  230. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
  231. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
  232. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
  233. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
  234. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
  235. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
  236. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
  237. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
  238. package/core/schemas/Schema.d.ts +1 -0
  239. package/core/schemas/Schema.js +1 -0
  240. package/core/schemas/builders/bigint/bigint.d.ts +2 -0
  241. package/core/schemas/builders/bigint/bigint.js +50 -0
  242. package/core/schemas/builders/bigint/index.d.ts +1 -0
  243. package/core/schemas/builders/bigint/index.js +5 -0
  244. package/core/schemas/builders/index.d.ts +1 -0
  245. package/core/schemas/builders/index.js +1 -0
  246. package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  247. package/dist/Client.d.ts +3 -0
  248. package/dist/Client.js +10 -5
  249. package/dist/api/resources/accesstokens/client/Client.js +1 -1
  250. package/dist/api/resources/accounts/client/Client.d.ts +1 -1
  251. package/dist/api/resources/accounts/client/Client.js +15 -15
  252. package/dist/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
  253. package/dist/api/resources/billing/client/Client.d.ts +117 -32
  254. package/dist/api/resources/billing/client/Client.js +667 -83
  255. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +33 -0
  256. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.js +5 -0
  257. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +6 -1
  258. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +12 -2
  259. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +29 -0
  260. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.js +5 -0
  261. package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +18 -0
  262. package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.js +5 -0
  263. package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +26 -0
  264. package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +5 -0
  265. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +13 -0
  266. package/dist/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +22 -0
  267. package/dist/api/resources/billing/client/requests/ListInvoicesRequest.js +5 -0
  268. package/dist/api/resources/billing/client/requests/ListMetersRequest.d.ts +18 -0
  269. package/dist/api/resources/billing/client/requests/ListMetersRequest.js +5 -0
  270. package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +22 -0
  271. package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.js +5 -0
  272. package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +13 -0
  273. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +20 -0
  274. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.js +5 -0
  275. package/dist/api/resources/billing/client/requests/index.d.ts +8 -3
  276. package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +22 -0
  277. package/dist/api/resources/billing/types/CountBillingProductsParams.js +5 -0
  278. package/dist/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
  279. package/dist/api/resources/billing/types/CountBillingProductsResponse.js +5 -0
  280. package/dist/api/resources/billing/types/DeleteProductPriceResponse.d.ts +9 -0
  281. package/dist/api/resources/billing/types/DeleteProductPriceResponse.js +5 -0
  282. package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +7 -0
  283. package/dist/api/resources/billing/types/ListInvoicesParams.d.ts +15 -0
  284. package/dist/api/resources/billing/types/ListInvoicesParams.js +5 -0
  285. package/dist/api/resources/billing/types/ListInvoicesResponse.d.ts +10 -0
  286. package/dist/api/resources/billing/types/ListInvoicesResponse.js +5 -0
  287. package/dist/api/resources/billing/types/ListMetersParams.d.ts +13 -0
  288. package/dist/api/resources/billing/types/ListMetersParams.js +5 -0
  289. package/dist/api/resources/billing/types/ListMetersResponse.d.ts +10 -0
  290. package/dist/api/resources/billing/types/ListMetersResponse.js +5 -0
  291. package/dist/api/resources/billing/types/ListPaymentMethodsParams.d.ts +15 -0
  292. package/dist/api/resources/billing/types/ListPaymentMethodsParams.js +5 -0
  293. package/dist/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +10 -0
  294. package/dist/api/resources/billing/types/ListPaymentMethodsResponse.js +5 -0
  295. package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +7 -0
  296. package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +15 -0
  297. package/dist/api/resources/billing/types/SearchBillingPricesParams.js +5 -0
  298. package/dist/api/resources/billing/types/SearchBillingPricesResponse.d.ts +10 -0
  299. package/dist/api/resources/billing/types/SearchBillingPricesResponse.js +5 -0
  300. package/dist/api/resources/billing/types/UpsertBillingMeterResponse.d.ts +9 -0
  301. package/dist/api/resources/billing/types/UpsertBillingMeterResponse.js +5 -0
  302. package/dist/api/resources/billing/types/UpsertInvoiceResponse.d.ts +9 -0
  303. package/dist/api/resources/billing/types/UpsertInvoiceResponse.js +5 -0
  304. package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.d.ts +9 -0
  305. package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.js +5 -0
  306. package/dist/api/resources/billing/types/index.d.ts +14 -4
  307. package/dist/api/resources/billing/types/index.js +14 -4
  308. package/dist/api/resources/companies/client/Client.d.ts +5 -7
  309. package/dist/api/resources/companies/client/Client.js +64 -50
  310. package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
  311. package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
  312. package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
  313. package/dist/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
  314. package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
  315. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
  316. package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
  317. package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
  318. package/dist/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
  319. package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
  320. package/dist/api/resources/companies/types/CountUsersParams.d.ts +4 -1
  321. package/dist/api/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  322. package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
  323. package/dist/api/resources/companies/types/ListUsersParams.d.ts +4 -1
  324. package/dist/api/resources/components/client/Client.d.ts +9 -9
  325. package/dist/api/resources/components/client/Client.js +49 -40
  326. package/dist/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
  327. package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
  328. package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.js +5 -0
  329. package/dist/api/resources/components/client/requests/index.d.ts +1 -0
  330. package/dist/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
  331. package/dist/api/resources/components/types/PreviewComponentDataParams.js +5 -0
  332. package/{api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts → dist/api/resources/components/types/PreviewComponentDataResponse.d.ts} +3 -3
  333. package/dist/api/resources/components/types/PreviewComponentDataResponse.js +5 -0
  334. package/dist/api/resources/components/types/index.d.ts +2 -1
  335. package/dist/api/resources/components/types/index.js +2 -1
  336. package/dist/api/resources/crm/client/Client.js +5 -5
  337. package/dist/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  338. package/dist/api/resources/entitlements/client/Client.d.ts +4 -4
  339. package/dist/api/resources/entitlements/client/Client.js +39 -27
  340. package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
  341. package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
  342. package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +22 -0
  343. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -1
  344. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -1
  345. package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
  346. package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
  347. package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +22 -0
  348. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -1
  349. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  350. package/dist/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
  351. package/dist/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  352. package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +8 -0
  353. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
  354. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
  355. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  356. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  357. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
  358. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
  359. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  360. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  361. package/dist/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
  362. package/dist/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  363. package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +8 -0
  364. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
  365. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
  366. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  367. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  368. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
  369. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
  370. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  371. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  372. package/dist/api/resources/entitlements/types/index.d.ts +4 -0
  373. package/dist/api/resources/entitlements/types/index.js +4 -0
  374. package/dist/api/resources/events/client/Client.d.ts +2 -15
  375. package/dist/api/resources/events/client/Client.js +9 -142
  376. package/dist/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
  377. package/dist/api/resources/events/client/requests/index.d.ts +0 -1
  378. package/dist/api/resources/events/types/index.d.ts +0 -2
  379. package/dist/api/resources/events/types/index.js +0 -2
  380. package/dist/api/resources/features/client/Client.d.ts +21 -21
  381. package/dist/api/resources/features/client/Client.js +40 -40
  382. package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
  383. package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
  384. package/dist/api/resources/index.d.ts +3 -0
  385. package/dist/api/resources/index.js +4 -1
  386. package/dist/api/resources/plangroups/client/Client.d.ts +74 -0
  387. package/dist/api/resources/plangroups/client/Client.js +346 -0
  388. package/dist/api/resources/plangroups/client/index.d.ts +1 -0
  389. package/dist/api/resources/plangroups/client/index.js +17 -0
  390. package/{api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +5 -1
  391. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
  392. package/dist/api/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +5 -1
  393. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +5 -0
  394. package/dist/api/resources/plangroups/client/requests/index.d.ts +2 -0
  395. package/dist/api/resources/plangroups/client/requests/index.js +2 -0
  396. package/dist/api/resources/plangroups/index.d.ts +2 -0
  397. package/dist/api/resources/plangroups/index.js +18 -0
  398. package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
  399. package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.js +5 -0
  400. package/dist/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
  401. package/dist/api/resources/plangroups/types/GetPlanGroupResponse.js +5 -0
  402. package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
  403. package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.js +5 -0
  404. package/dist/api/resources/plangroups/types/index.d.ts +3 -0
  405. package/dist/api/resources/plangroups/types/index.js +19 -0
  406. package/dist/api/resources/plans/client/Client.d.ts +7 -18
  407. package/dist/api/resources/plans/client/Client.js +37 -113
  408. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
  409. package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -1
  410. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
  411. package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
  412. package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
  413. package/dist/api/resources/plans/types/CountPlansParams.d.ts +4 -0
  414. package/dist/api/resources/plans/types/ListPlansParams.d.ts +4 -0
  415. package/dist/api/resources/plans/types/index.d.ts +0 -1
  416. package/dist/api/resources/plans/types/index.js +0 -1
  417. package/dist/api/resources/webhooks/client/Client.d.ts +1 -1
  418. package/dist/api/resources/webhooks/client/Client.js +18 -18
  419. package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
  420. package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
  421. package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
  422. package/dist/api/types/BillingCustomerSubscription.d.ts +4 -0
  423. package/dist/api/types/BillingMeterResponseData.d.ts +10 -0
  424. package/dist/api/types/BillingMeterResponseData.js +5 -0
  425. package/dist/api/types/BillingPriceResponseData.d.ts +1 -0
  426. package/dist/api/types/BillingPriceView.d.ts +18 -0
  427. package/dist/api/types/BillingPriceView.js +5 -0
  428. package/dist/api/types/BillingProductDetailResponseData.d.ts +1 -1
  429. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
  430. package/dist/api/types/BillingProductPlanResponseData.d.ts +2 -0
  431. package/dist/api/types/BillingProductPriceResponseData.d.ts +15 -0
  432. package/dist/api/types/BillingProductPriceResponseData.js +5 -0
  433. package/dist/api/types/BillingProductPricing.d.ts +6 -2
  434. package/dist/api/types/BillingSubscriptionResponseData.d.ts +13 -6
  435. package/dist/api/types/BillingSubscriptionView.d.ts +23 -0
  436. package/dist/api/types/BillingSubscriptionView.js +5 -0
  437. package/dist/api/types/CheckFlagRequestBody.d.ts +2 -2
  438. package/dist/api/types/CompanyDetailResponseData.d.ts +5 -3
  439. package/dist/api/types/CompanyOverrideResponseData.d.ts +3 -1
  440. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +26 -0
  441. package/dist/api/types/CompanyPlanDetailResponseData.js +5 -0
  442. package/dist/api/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +2 -1
  443. package/dist/api/types/CompanyPlanWithBillingSubView.js +5 -0
  444. package/dist/api/types/CompanySubscriptionResponseData.d.ts +5 -0
  445. package/dist/api/types/ComponentCapabilities.d.ts +6 -0
  446. package/dist/api/types/ComponentCapabilities.js +5 -0
  447. package/dist/api/types/ComponentHydrateResponseData.d.ts +6 -3
  448. package/dist/api/types/ComponentPreviewResponseData.d.ts +19 -0
  449. package/dist/api/types/ComponentPreviewResponseData.js +5 -0
  450. package/dist/api/types/ComponentResponseData.d.ts +3 -0
  451. package/dist/api/types/CreateEntitlementReqCommon.d.ts +14 -0
  452. package/dist/api/types/CreateEntitlementReqCommon.js +5 -0
  453. package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +11 -0
  454. package/dist/api/types/{CreateReqCommonMetricPeriod.js → CreateEntitlementReqCommonMetricPeriod.js} +4 -2
  455. package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  456. package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  457. package/{api/types/CreateReqCommonValueType.d.ts → dist/api/types/CreateEntitlementReqCommonValueType.d.ts} +2 -2
  458. package/{api/types/UpdateReqCommonValueType.js → dist/api/types/CreateEntitlementReqCommonValueType.js} +2 -2
  459. package/dist/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  460. package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
  461. package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
  462. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +3 -1
  463. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +2 -0
  464. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
  465. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
  466. package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
  467. package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
  468. package/dist/api/types/EventBodyFlagCheck.d.ts +2 -2
  469. package/dist/api/types/FeatureCompanyResponseData.d.ts +2 -0
  470. package/dist/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
  471. package/dist/api/types/FeatureUsageResponseData.d.ts +2 -0
  472. package/{api/types/RuleConditionResourceResponseData.d.ts → dist/api/types/GenericPreviewObject.d.ts} +3 -1
  473. package/dist/api/types/GenericPreviewObject.js +5 -0
  474. package/dist/api/types/InvoiceRequestBody.d.ts +16 -0
  475. package/dist/api/types/InvoiceRequestBody.js +5 -0
  476. package/dist/api/types/InvoiceResponseData.d.ts +22 -0
  477. package/dist/api/types/InvoiceResponseData.js +5 -0
  478. package/dist/api/types/MeterRequestBody.d.ts +8 -0
  479. package/dist/api/types/MeterRequestBody.js +5 -0
  480. package/dist/api/types/PaymentMethodRequestBody.d.ts +17 -0
  481. package/dist/api/types/PaymentMethodRequestBody.js +5 -0
  482. package/dist/api/types/PaymentMethodResponseData.d.ts +23 -0
  483. package/dist/api/types/PaymentMethodResponseData.js +5 -0
  484. package/dist/api/types/PlanDetailResponseData.d.ts +7 -3
  485. package/dist/api/types/PlanEntitlementResponseData.d.ts +3 -3
  486. package/dist/api/types/PlanGroupDetailResponseData.d.ts +16 -0
  487. package/dist/api/types/PlanGroupDetailResponseData.js +5 -0
  488. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +24 -0
  489. package/dist/api/types/PlanGroupPlanDetailResponseData.js +5 -0
  490. package/dist/api/types/{BillingPlanGroupResponseData.d.ts → PlanGroupResponseData.d.ts} +4 -1
  491. package/dist/api/types/PlanGroupResponseData.js +5 -0
  492. package/dist/api/types/PlanResponseData.d.ts +1 -0
  493. package/dist/api/types/PreviewObjectResponseData.d.ts +9 -0
  494. package/dist/api/types/PreviewObjectResponseData.js +5 -0
  495. package/dist/api/types/RuleConditionDetailResponseData.d.ts +2 -1
  496. package/dist/api/types/RuleConditionResponseData.d.ts +1 -0
  497. package/dist/api/types/StripeEmbedInfo.d.ts +7 -0
  498. package/dist/api/types/StripeEmbedInfo.js +5 -0
  499. package/dist/api/types/UpdateEntitlementReqCommon.d.ts +13 -0
  500. package/dist/api/types/UpdateEntitlementReqCommon.js +5 -0
  501. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +11 -0
  502. package/dist/api/types/{UpdateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonMetricPeriod.js} +4 -2
  503. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  504. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  505. package/dist/api/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  506. package/{api/types/CreateReqCommonValueType.js → dist/api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
  507. package/dist/api/types/index.d.ts +28 -10
  508. package/dist/api/types/index.js +28 -10
  509. package/dist/core/fetcher/Fetcher.d.ts +1 -1
  510. package/dist/core/fetcher/getResponseBody.js +3 -0
  511. package/dist/core/fetcher/requestWithRetries.js +13 -4
  512. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
  513. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
  514. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
  515. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
  516. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
  517. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
  518. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
  519. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
  520. package/dist/core/schemas/Schema.d.ts +1 -0
  521. package/dist/core/schemas/Schema.js +1 -0
  522. package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
  523. package/dist/core/schemas/builders/bigint/bigint.js +50 -0
  524. package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
  525. package/dist/core/schemas/builders/bigint/index.js +5 -0
  526. package/dist/core/schemas/builders/index.d.ts +1 -0
  527. package/dist/core/schemas/builders/index.js +1 -0
  528. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  529. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +3 -0
  530. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +3 -0
  531. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -0
  532. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +4 -0
  533. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
  534. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
  535. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
  536. package/dist/serialization/resources/billing/client/requests/{ChangeSubscriptionRequestBody.js → CreateMeterRequestBody.js} +6 -5
  537. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
  538. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
  539. package/dist/serialization/resources/billing/client/requests/index.d.ts +3 -3
  540. package/dist/serialization/resources/billing/client/requests/index.js +7 -7
  541. package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +20 -0
  542. package/dist/serialization/resources/{events/types/ListMetricCountsParams.js → billing/types/CountBillingProductsParams.js} +9 -10
  543. package/dist/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
  544. package/dist/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
  545. package/dist/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
  546. package/{serialization/resources/plans/types/ListActivePlansResponse.js → dist/serialization/resources/billing/types/DeleteProductPriceResponse.js} +4 -4
  547. package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
  548. package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +4 -0
  549. package/dist/serialization/resources/billing/types/ListInvoicesParams.d.ts +16 -0
  550. package/dist/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
  551. package/dist/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
  552. package/dist/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
  553. package/dist/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
  554. package/dist/serialization/resources/billing/types/ListMetersParams.js +35 -0
  555. package/dist/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
  556. package/dist/serialization/resources/billing/types/ListMetersResponse.js +36 -0
  557. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
  558. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
  559. package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
  560. package/dist/serialization/resources/billing/types/{ChangeSubscriptionWebResponse.js → ListPaymentMethodsResponse.js} +6 -5
  561. package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +4 -0
  562. package/dist/serialization/resources/billing/types/ListProductPricesParams.js +4 -0
  563. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
  564. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +37 -0
  565. package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
  566. package/dist/serialization/resources/billing/types/{CreateBillingPlanGroupResponse.js → SearchBillingPricesResponse.js} +6 -5
  567. package/dist/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
  568. package/dist/serialization/resources/{plans/types/ListActivePlansResponse.js → billing/types/UpsertBillingMeterResponse.js} +4 -4
  569. package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
  570. package/{serialization/resources/components/types/HydrateComponentResponse.js → dist/serialization/resources/billing/types/UpsertInvoiceResponse.js} +4 -4
  571. package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
  572. package/dist/serialization/resources/{components/types/HydrateComponentResponse.js → billing/types/UpsertPaymentMethodResponse.js} +4 -4
  573. package/dist/serialization/resources/billing/types/index.d.ts +14 -4
  574. package/dist/serialization/resources/billing/types/index.js +14 -4
  575. package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  576. package/dist/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
  577. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  578. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +1 -0
  579. package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  580. package/dist/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
  581. package/dist/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
  582. package/dist/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
  583. package/dist/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
  584. package/dist/serialization/resources/{billing/types/UpdateBillingPlanGroupResponse.js → components/types/PreviewComponentDataResponse.js} +6 -5
  585. package/dist/serialization/resources/components/types/index.d.ts +2 -1
  586. package/dist/serialization/resources/components/types/index.js +2 -1
  587. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  588. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
  589. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
  590. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +4 -0
  591. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -0
  592. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
  593. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
  594. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +4 -0
  595. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
  596. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -0
  597. package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  598. package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
  599. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
  600. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +1 -0
  601. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  602. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  603. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  604. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  605. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  606. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  607. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  608. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  609. package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  610. package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
  611. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
  612. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +1 -0
  613. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  614. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  615. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  616. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  617. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  618. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  619. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  620. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  621. package/dist/serialization/resources/entitlements/types/index.d.ts +4 -0
  622. package/dist/serialization/resources/entitlements/types/index.js +4 -0
  623. package/dist/serialization/resources/events/types/index.d.ts +0 -2
  624. package/dist/serialization/resources/events/types/index.js +0 -2
  625. package/dist/serialization/resources/index.d.ts +3 -0
  626. package/dist/serialization/resources/index.js +4 -1
  627. package/dist/serialization/resources/plangroups/client/index.d.ts +1 -0
  628. package/dist/serialization/resources/plangroups/client/index.js +17 -0
  629. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +16 -0
  630. package/{serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js → dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +5 -2
  631. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +16 -0
  632. package/dist/serialization/resources/{billing/client/requests/CreateBillingPlanGroupRequestBody.js → plangroups/client/requests/UpdatePlanGroupRequestBody.js} +5 -2
  633. package/dist/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
  634. package/dist/serialization/resources/plangroups/client/requests/index.js +7 -0
  635. package/dist/serialization/resources/plangroups/index.d.ts +2 -0
  636. package/dist/serialization/resources/plangroups/index.js +18 -0
  637. package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
  638. package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
  639. package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
  640. package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
  641. package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
  642. package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
  643. package/dist/serialization/resources/plangroups/types/index.d.ts +3 -0
  644. package/dist/serialization/resources/plangroups/types/index.js +19 -0
  645. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
  646. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
  647. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  648. package/dist/serialization/resources/plans/types/CountPlansParams.js +2 -0
  649. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  650. package/dist/serialization/resources/plans/types/ListPlansParams.js +2 -0
  651. package/dist/serialization/resources/plans/types/index.d.ts +0 -1
  652. package/dist/serialization/resources/plans/types/index.js +0 -1
  653. package/dist/serialization/types/BillingCustomerSubscription.d.ts +4 -0
  654. package/dist/serialization/types/BillingCustomerSubscription.js +4 -0
  655. package/dist/serialization/types/BillingMeterResponseData.d.ts +16 -0
  656. package/dist/serialization/types/BillingMeterResponseData.js +37 -0
  657. package/dist/serialization/types/BillingPriceResponseData.d.ts +1 -0
  658. package/dist/serialization/types/BillingPriceResponseData.js +1 -0
  659. package/dist/serialization/types/BillingPriceView.d.ts +24 -0
  660. package/dist/serialization/types/BillingPriceView.js +45 -0
  661. package/dist/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
  662. package/dist/serialization/types/BillingProductDetailResponseData.js +1 -1
  663. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
  664. package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +5 -2
  665. package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
  666. package/dist/serialization/types/BillingProductPlanResponseData.js +2 -0
  667. package/dist/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
  668. package/{serialization/types/MetricCountsHourlyResponseData.js → dist/serialization/types/BillingProductPriceResponseData.js} +11 -8
  669. package/dist/serialization/types/BillingProductPricing.d.ts +6 -2
  670. package/dist/serialization/types/BillingProductPricing.js +6 -2
  671. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +13 -3
  672. package/dist/serialization/types/BillingSubscriptionResponseData.js +13 -3
  673. package/dist/serialization/types/BillingSubscriptionView.d.ts +31 -0
  674. package/dist/serialization/types/BillingSubscriptionView.js +52 -0
  675. package/dist/serialization/types/CheckFlagRequestBody.d.ts +2 -2
  676. package/dist/serialization/types/CheckFlagRequestBody.js +2 -2
  677. package/dist/serialization/types/CompanyDetailResponseData.d.ts +8 -5
  678. package/dist/serialization/types/CompanyDetailResponseData.js +8 -5
  679. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
  680. package/dist/serialization/types/CompanyOverrideResponseData.js +3 -1
  681. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +35 -0
  682. package/dist/serialization/types/CompanyPlanDetailResponseData.js +56 -0
  683. package/dist/serialization/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +3 -2
  684. package/dist/serialization/types/{BillingPlan.js → CompanyPlanWithBillingSubView.js} +3 -2
  685. package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +7 -0
  686. package/dist/serialization/types/CompanySubscriptionResponseData.js +7 -0
  687. package/dist/serialization/types/ComponentCapabilities.d.ts +12 -0
  688. package/dist/serialization/types/{UpdateReqCommonValueType.js → ComponentCapabilities.js} +4 -2
  689. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +11 -0
  690. package/dist/serialization/types/ComponentHydrateResponseData.js +11 -0
  691. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +29 -0
  692. package/dist/serialization/types/ComponentPreviewResponseData.js +50 -0
  693. package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +22 -0
  694. package/{serialization/types/CreateReqCommon.js → dist/serialization/types/CreateEntitlementReqCommon.js} +9 -6
  695. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  696. package/dist/serialization/types/{RuleConditionResourceResponseData.js → CreateEntitlementReqCommonMetricPeriod.js} +2 -5
  697. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  698. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  699. package/dist/serialization/types/{UpdateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
  700. package/dist/serialization/types/{CreateReqCommonMetricPeriod.js → CreateEntitlementReqCommonValueType.js} +2 -2
  701. package/dist/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  702. package/dist/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -0
  703. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
  704. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
  705. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  706. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  707. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  708. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
  709. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
  710. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
  711. package/dist/serialization/types/EventBodyFlagCheck.d.ts +2 -2
  712. package/dist/serialization/types/EventBodyFlagCheck.js +2 -2
  713. package/dist/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
  714. package/dist/serialization/types/FeatureCompanyResponseData.js +1 -0
  715. package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
  716. package/dist/serialization/types/FeatureCompanyUserResponseData.js +1 -0
  717. package/dist/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  718. package/dist/serialization/types/FeatureUsageResponseData.js +1 -0
  719. package/dist/serialization/types/{RuleConditionResourceResponseData.d.ts → GenericPreviewObject.d.ts} +4 -2
  720. package/{serialization/types/RuleConditionResourceResponseData.js → dist/serialization/types/GenericPreviewObject.js} +4 -2
  721. package/dist/serialization/types/InvoiceRequestBody.d.ts +22 -0
  722. package/dist/serialization/types/InvoiceRequestBody.js +43 -0
  723. package/dist/serialization/types/InvoiceResponseData.d.ts +28 -0
  724. package/dist/serialization/types/InvoiceResponseData.js +49 -0
  725. package/dist/serialization/types/MeterRequestBody.d.ts +14 -0
  726. package/{serialization/types/BillingPlanGroupResponseData.js → dist/serialization/types/MeterRequestBody.js} +5 -5
  727. package/dist/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
  728. package/dist/serialization/types/PaymentMethodRequestBody.js +44 -0
  729. package/dist/serialization/types/PaymentMethodResponseData.d.ts +29 -0
  730. package/dist/serialization/types/PaymentMethodResponseData.js +50 -0
  731. package/dist/serialization/types/PlanDetailResponseData.d.ts +8 -0
  732. package/dist/serialization/types/PlanDetailResponseData.js +8 -0
  733. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
  734. package/dist/serialization/types/PlanEntitlementResponseData.js +4 -0
  735. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +19 -0
  736. package/dist/serialization/types/PlanGroupDetailResponseData.js +40 -0
  737. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +33 -0
  738. package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +54 -0
  739. package/dist/serialization/types/PlanGroupResponseData.d.ts +17 -0
  740. package/dist/serialization/types/PlanGroupResponseData.js +38 -0
  741. package/dist/serialization/types/PlanResponseData.d.ts +1 -0
  742. package/dist/serialization/types/PlanResponseData.js +1 -0
  743. package/dist/serialization/types/PreviewObjectResponseData.d.ts +15 -0
  744. package/dist/serialization/types/PreviewObjectResponseData.js +36 -0
  745. package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
  746. package/dist/serialization/types/RuleConditionDetailResponseData.js +3 -2
  747. package/dist/serialization/types/RuleConditionResponseData.d.ts +1 -0
  748. package/dist/serialization/types/RuleConditionResponseData.js +1 -0
  749. package/dist/serialization/types/RulesDetailResponseData.d.ts +1 -1
  750. package/dist/serialization/types/RulesDetailResponseData.js +1 -1
  751. package/dist/serialization/types/StripeEmbedInfo.d.ts +13 -0
  752. package/dist/serialization/types/StripeEmbedInfo.js +34 -0
  753. package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +21 -0
  754. package/dist/serialization/types/{UpdateReqCommon.js → UpdateEntitlementReqCommon.js} +9 -6
  755. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  756. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
  757. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  758. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  759. package/{serialization/types/CreateReqCommonValueType.d.ts → dist/serialization/types/UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  760. package/dist/serialization/types/{CreateReqCommonValueType.js → UpdateEntitlementReqCommonValueType.js} +2 -2
  761. package/dist/serialization/types/index.d.ts +28 -10
  762. package/dist/serialization/types/index.js +28 -10
  763. package/package.json +8 -3
  764. package/reference.md +457 -133
  765. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +3 -0
  766. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +3 -0
  767. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -0
  768. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +4 -0
  769. package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
  770. package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
  771. package/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
  772. package/serialization/resources/billing/client/requests/{ChangeSubscriptionRequestBody.js → CreateMeterRequestBody.js} +6 -5
  773. package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
  774. package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
  775. package/serialization/resources/billing/client/requests/index.d.ts +3 -3
  776. package/serialization/resources/billing/client/requests/index.js +7 -7
  777. package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +20 -0
  778. package/serialization/resources/{events/types/ListMetricCountsParams.js → billing/types/CountBillingProductsParams.js} +9 -10
  779. package/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
  780. package/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
  781. package/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
  782. package/serialization/resources/billing/types/DeleteProductPriceResponse.js +35 -0
  783. package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
  784. package/serialization/resources/billing/types/ListBillingProductsParams.js +4 -0
  785. package/serialization/resources/billing/types/ListInvoicesParams.d.ts +16 -0
  786. package/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
  787. package/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
  788. package/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
  789. package/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
  790. package/serialization/resources/billing/types/ListMetersParams.js +35 -0
  791. package/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
  792. package/serialization/resources/billing/types/ListMetersResponse.js +36 -0
  793. package/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
  794. package/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
  795. package/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
  796. package/serialization/resources/billing/types/ListPaymentMethodsResponse.js +36 -0
  797. package/serialization/resources/billing/types/ListProductPricesParams.d.ts +4 -0
  798. package/serialization/resources/billing/types/ListProductPricesParams.js +4 -0
  799. package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
  800. package/serialization/resources/billing/types/SearchBillingPricesParams.js +37 -0
  801. package/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
  802. package/{dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js → serialization/resources/billing/types/SearchBillingPricesResponse.js} +6 -5
  803. package/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
  804. package/serialization/resources/billing/types/UpsertBillingMeterResponse.js +35 -0
  805. package/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
  806. package/serialization/resources/billing/types/UpsertInvoiceResponse.js +35 -0
  807. package/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
  808. package/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +35 -0
  809. package/serialization/resources/billing/types/index.d.ts +14 -4
  810. package/serialization/resources/billing/types/index.js +14 -4
  811. package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  812. package/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
  813. package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  814. package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +1 -0
  815. package/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  816. package/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
  817. package/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
  818. package/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
  819. package/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
  820. package/serialization/resources/components/types/PreviewComponentDataResponse.js +36 -0
  821. package/serialization/resources/components/types/index.d.ts +2 -1
  822. package/serialization/resources/components/types/index.js +2 -1
  823. package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  824. package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
  825. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
  826. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +4 -0
  827. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -0
  828. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
  829. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
  830. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +4 -0
  831. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
  832. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -0
  833. package/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  834. package/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
  835. package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
  836. package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +1 -0
  837. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  838. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  839. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  840. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  841. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  842. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  843. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  844. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  845. package/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  846. package/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
  847. package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
  848. package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +1 -0
  849. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  850. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  851. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  852. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  853. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  854. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  855. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  856. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  857. package/serialization/resources/entitlements/types/index.d.ts +4 -0
  858. package/serialization/resources/entitlements/types/index.js +4 -0
  859. package/serialization/resources/events/types/index.d.ts +0 -2
  860. package/serialization/resources/events/types/index.js +0 -2
  861. package/serialization/resources/index.d.ts +3 -0
  862. package/serialization/resources/index.js +4 -1
  863. package/serialization/resources/plangroups/client/index.d.ts +1 -0
  864. package/serialization/resources/plangroups/client/index.js +17 -0
  865. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +16 -0
  866. package/{dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js → serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +5 -2
  867. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +16 -0
  868. package/serialization/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.js → plangroups/client/requests/UpdatePlanGroupRequestBody.js} +5 -2
  869. package/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
  870. package/serialization/resources/plangroups/client/requests/index.js +7 -0
  871. package/serialization/resources/plangroups/index.d.ts +2 -0
  872. package/serialization/resources/plangroups/index.js +18 -0
  873. package/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
  874. package/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
  875. package/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
  876. package/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
  877. package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
  878. package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
  879. package/serialization/resources/plangroups/types/index.d.ts +3 -0
  880. package/serialization/resources/plangroups/types/index.js +19 -0
  881. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
  882. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
  883. package/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  884. package/serialization/resources/plans/types/CountPlansParams.js +2 -0
  885. package/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  886. package/serialization/resources/plans/types/ListPlansParams.js +2 -0
  887. package/serialization/resources/plans/types/index.d.ts +0 -1
  888. package/serialization/resources/plans/types/index.js +0 -1
  889. package/serialization/types/BillingCustomerSubscription.d.ts +4 -0
  890. package/serialization/types/BillingCustomerSubscription.js +4 -0
  891. package/serialization/types/BillingMeterResponseData.d.ts +16 -0
  892. package/serialization/types/BillingMeterResponseData.js +37 -0
  893. package/serialization/types/BillingPriceResponseData.d.ts +1 -0
  894. package/serialization/types/BillingPriceResponseData.js +1 -0
  895. package/serialization/types/BillingPriceView.d.ts +24 -0
  896. package/serialization/types/BillingPriceView.js +45 -0
  897. package/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
  898. package/serialization/types/BillingProductDetailResponseData.js +1 -1
  899. package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
  900. package/serialization/types/BillingProductForSubscriptionResponseData.js +5 -2
  901. package/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
  902. package/serialization/types/BillingProductPlanResponseData.js +2 -0
  903. package/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
  904. package/{dist/serialization/types/MetricCountsHourlyResponseData.js → serialization/types/BillingProductPriceResponseData.js} +11 -8
  905. package/serialization/types/BillingProductPricing.d.ts +6 -2
  906. package/serialization/types/BillingProductPricing.js +6 -2
  907. package/serialization/types/BillingSubscriptionResponseData.d.ts +13 -3
  908. package/serialization/types/BillingSubscriptionResponseData.js +13 -3
  909. package/serialization/types/BillingSubscriptionView.d.ts +31 -0
  910. package/serialization/types/BillingSubscriptionView.js +52 -0
  911. package/serialization/types/CheckFlagRequestBody.d.ts +2 -2
  912. package/serialization/types/CheckFlagRequestBody.js +2 -2
  913. package/serialization/types/CompanyDetailResponseData.d.ts +8 -5
  914. package/serialization/types/CompanyDetailResponseData.js +8 -5
  915. package/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
  916. package/serialization/types/CompanyOverrideResponseData.js +3 -1
  917. package/serialization/types/CompanyPlanDetailResponseData.d.ts +35 -0
  918. package/serialization/types/CompanyPlanDetailResponseData.js +56 -0
  919. package/serialization/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +3 -2
  920. package/serialization/types/{BillingPlan.js → CompanyPlanWithBillingSubView.js} +3 -2
  921. package/serialization/types/CompanySubscriptionResponseData.d.ts +7 -0
  922. package/serialization/types/CompanySubscriptionResponseData.js +7 -0
  923. package/serialization/types/ComponentCapabilities.d.ts +12 -0
  924. package/serialization/types/{CreateReqCommonValueType.js → ComponentCapabilities.js} +4 -2
  925. package/serialization/types/ComponentHydrateResponseData.d.ts +11 -0
  926. package/serialization/types/ComponentHydrateResponseData.js +11 -0
  927. package/serialization/types/ComponentPreviewResponseData.d.ts +29 -0
  928. package/serialization/types/ComponentPreviewResponseData.js +50 -0
  929. package/serialization/types/CreateEntitlementReqCommon.d.ts +22 -0
  930. package/{dist/serialization/types/CreateReqCommon.js → serialization/types/CreateEntitlementReqCommon.js} +9 -6
  931. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  932. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +31 -0
  933. package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  934. package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  935. package/{dist/serialization/types/CreateReqCommonValueType.d.ts → serialization/types/CreateEntitlementReqCommonValueType.d.ts} +2 -2
  936. package/{dist/serialization/types/UpdateReqCommonMetricPeriod.js → serialization/types/CreateEntitlementReqCommonValueType.js} +2 -2
  937. package/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  938. package/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -0
  939. package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
  940. package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
  941. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  942. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  943. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  944. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
  945. package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
  946. package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
  947. package/serialization/types/EventBodyFlagCheck.d.ts +2 -2
  948. package/serialization/types/EventBodyFlagCheck.js +2 -2
  949. package/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
  950. package/serialization/types/FeatureCompanyResponseData.js +1 -0
  951. package/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
  952. package/serialization/types/FeatureCompanyUserResponseData.js +1 -0
  953. package/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  954. package/serialization/types/FeatureUsageResponseData.js +1 -0
  955. package/serialization/types/{RuleConditionResourceResponseData.d.ts → GenericPreviewObject.d.ts} +4 -2
  956. package/serialization/types/GenericPreviewObject.js +36 -0
  957. package/serialization/types/InvoiceRequestBody.d.ts +22 -0
  958. package/serialization/types/InvoiceRequestBody.js +43 -0
  959. package/serialization/types/InvoiceResponseData.d.ts +28 -0
  960. package/serialization/types/InvoiceResponseData.js +49 -0
  961. package/serialization/types/MeterRequestBody.d.ts +14 -0
  962. package/{dist/serialization/types/BillingPlanGroupResponseData.js → serialization/types/MeterRequestBody.js} +5 -5
  963. package/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
  964. package/serialization/types/PaymentMethodRequestBody.js +44 -0
  965. package/serialization/types/PaymentMethodResponseData.d.ts +29 -0
  966. package/serialization/types/PaymentMethodResponseData.js +50 -0
  967. package/serialization/types/PlanDetailResponseData.d.ts +8 -0
  968. package/serialization/types/PlanDetailResponseData.js +8 -0
  969. package/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
  970. package/serialization/types/PlanEntitlementResponseData.js +4 -0
  971. package/serialization/types/PlanGroupDetailResponseData.d.ts +19 -0
  972. package/serialization/types/PlanGroupDetailResponseData.js +40 -0
  973. package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +33 -0
  974. package/serialization/types/PlanGroupPlanDetailResponseData.js +54 -0
  975. package/serialization/types/PlanGroupResponseData.d.ts +17 -0
  976. package/serialization/types/PlanGroupResponseData.js +38 -0
  977. package/serialization/types/PlanResponseData.d.ts +1 -0
  978. package/serialization/types/PlanResponseData.js +1 -0
  979. package/serialization/types/PreviewObjectResponseData.d.ts +15 -0
  980. package/serialization/types/PreviewObjectResponseData.js +36 -0
  981. package/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
  982. package/serialization/types/RuleConditionDetailResponseData.js +3 -2
  983. package/serialization/types/RuleConditionResponseData.d.ts +1 -0
  984. package/serialization/types/RuleConditionResponseData.js +1 -0
  985. package/serialization/types/RulesDetailResponseData.d.ts +1 -1
  986. package/serialization/types/RulesDetailResponseData.js +1 -1
  987. package/serialization/types/StripeEmbedInfo.d.ts +13 -0
  988. package/serialization/types/StripeEmbedInfo.js +34 -0
  989. package/serialization/types/UpdateEntitlementReqCommon.d.ts +21 -0
  990. package/serialization/types/{UpdateReqCommon.js → UpdateEntitlementReqCommon.js} +9 -6
  991. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  992. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
  993. package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  994. package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  995. package/serialization/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  996. package/serialization/types/UpdateEntitlementReqCommonValueType.js +31 -0
  997. package/serialization/types/index.d.ts +28 -10
  998. package/serialization/types/index.js +28 -10
  999. package/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -16
  1000. package/api/types/CreateReqCommon.d.ts +0 -12
  1001. package/api/types/CreateReqCommonMetricPeriod.d.ts +0 -9
  1002. package/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
  1003. package/api/types/UpdateReqCommon.d.ts +0 -11
  1004. package/api/types/UpdateReqCommonMetricPeriod.d.ts +0 -9
  1005. package/dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -16
  1006. package/dist/api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -9
  1007. package/dist/api/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -9
  1008. package/dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -9
  1009. package/dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -9
  1010. package/dist/api/types/CreateReqCommon.d.ts +0 -12
  1011. package/dist/api/types/CreateReqCommonMetricPeriod.d.ts +0 -9
  1012. package/dist/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
  1013. package/dist/api/types/UpdateReqCommon.d.ts +0 -11
  1014. package/dist/api/types/UpdateReqCommonMetricPeriod.d.ts +0 -9
  1015. package/dist/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -14
  1016. package/dist/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +0 -13
  1017. package/dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +0 -13
  1018. package/dist/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -14
  1019. package/dist/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -14
  1020. package/dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -14
  1021. package/dist/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -14
  1022. package/dist/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
  1023. package/dist/serialization/resources/events/types/ListMetricCountsParams.d.ts +0 -21
  1024. package/dist/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
  1025. package/dist/serialization/resources/events/types/ListMetricCountsResponse.js +0 -36
  1026. package/dist/serialization/resources/plans/types/ListActivePlansResponse.d.ts +0 -14
  1027. package/dist/serialization/types/BillingPlanGroupResponseData.d.ts +0 -14
  1028. package/dist/serialization/types/CreateReqCommon.d.ts +0 -19
  1029. package/dist/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
  1030. package/dist/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
  1031. package/dist/serialization/types/UpdateReqCommon.d.ts +0 -18
  1032. package/dist/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
  1033. package/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -14
  1034. package/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +0 -13
  1035. package/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +0 -13
  1036. package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -14
  1037. package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.js +0 -35
  1038. package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -14
  1039. package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.js +0 -35
  1040. package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -14
  1041. package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js +0 -35
  1042. package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -14
  1043. package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.js +0 -35
  1044. package/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
  1045. package/serialization/resources/events/types/ListMetricCountsParams.d.ts +0 -21
  1046. package/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
  1047. package/serialization/resources/events/types/ListMetricCountsResponse.js +0 -36
  1048. package/serialization/resources/plans/types/ListActivePlansResponse.d.ts +0 -14
  1049. package/serialization/types/BillingPlanGroupResponseData.d.ts +0 -14
  1050. package/serialization/types/CreateReqCommon.d.ts +0 -19
  1051. package/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
  1052. package/serialization/types/CreateReqCommonMetricPeriod.js +0 -31
  1053. package/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
  1054. package/serialization/types/UpdateReqCommon.d.ts +0 -18
  1055. package/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
  1056. package/serialization/types/UpdateReqCommonMetricPeriod.js +0 -31
  1057. package/serialization/types/UpdateReqCommonValueType.js +0 -31
  1058. /package/api/resources/billing/client/requests/{ChangeSubscriptionRequestBody.js → CountBillingProductsRequest.js} +0 -0
  1059. /package/api/resources/billing/client/requests/{CreateBillingPlanGroupRequestBody.js → CreateInvoiceRequestBody.js} +0 -0
  1060. /package/api/resources/billing/client/requests/{UpdateBillingPlanGroupRequestBody.js → CreateMeterRequestBody.js} +0 -0
  1061. /package/api/resources/billing/{types/ChangeSubscriptionWebResponse.js → client/requests/CreatePaymentMethodRequestBody.js} +0 -0
  1062. /package/api/resources/billing/{types/CreateBillingPlanGroupResponse.js → client/requests/ListInvoicesRequest.js} +0 -0
  1063. /package/api/resources/billing/{types/GetBillingPlanGroupByAccountIdResponse.js → client/requests/ListMetersRequest.js} +0 -0
  1064. /package/api/resources/billing/{types/UpdateBillingPlanGroupResponse.js → client/requests/ListPaymentMethodsRequest.js} +0 -0
  1065. /package/api/resources/{components/types/HydrateComponentResponse.js → billing/client/requests/SearchBillingPricesRequest.js} +0 -0
  1066. /package/api/resources/{events/client/requests/ListMetricCountsRequest.js → billing/types/CountBillingProductsParams.js} +0 -0
  1067. /package/api/resources/{events/types/ListMetricCountsParams.js → billing/types/CountBillingProductsResponse.js} +0 -0
  1068. /package/api/resources/{events/types/ListMetricCountsResponse.js → billing/types/DeleteProductPriceResponse.js} +0 -0
  1069. /package/api/resources/{plans/types/ListActivePlansResponse.js → billing/types/ListInvoicesParams.js} +0 -0
  1070. /package/api/{types/BillingPlan.js → resources/billing/types/ListInvoicesResponse.js} +0 -0
  1071. /package/api/{types/BillingPlanGroupResponseData.js → resources/billing/types/ListMetersParams.js} +0 -0
  1072. /package/api/{types/CreateReqCommon.js → resources/billing/types/ListMetersResponse.js} +0 -0
  1073. /package/api/{types/MetricCountsHourlyResponseData.js → resources/billing/types/ListPaymentMethodsParams.js} +0 -0
  1074. /package/api/{types/RuleConditionResourceResponseData.js → resources/billing/types/ListPaymentMethodsResponse.js} +0 -0
  1075. /package/api/{types/UpdateReqCommon.js → resources/billing/types/SearchBillingPricesParams.js} +0 -0
  1076. /package/{dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.js → api/resources/billing/types/SearchBillingPricesResponse.js} +0 -0
  1077. /package/{dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js → api/resources/billing/types/UpsertBillingMeterResponse.js} +0 -0
  1078. /package/{dist/api/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js → api/resources/billing/types/UpsertInvoiceResponse.js} +0 -0
  1079. /package/{dist/api/resources/billing/types/ChangeSubscriptionWebResponse.js → api/resources/billing/types/UpsertPaymentMethodResponse.js} +0 -0
  1080. /package/{dist/api/resources/billing/types/CreateBillingPlanGroupResponse.js → api/resources/components/client/requests/PreviewComponentDataRequest.js} +0 -0
  1081. /package/{dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js → api/resources/components/types/PreviewComponentDataParams.js} +0 -0
  1082. /package/{dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.js → api/resources/components/types/PreviewComponentDataResponse.js} +0 -0
  1083. /package/{dist/api/resources/components/types/HydrateComponentResponse.js → api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +0 -0
  1084. /package/{dist/api/resources/events/client/requests/ListMetricCountsRequest.js → api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js} +0 -0
  1085. /package/{dist/api/resources/events/types/ListMetricCountsParams.js → api/resources/plangroups/types/CreatePlanGroupResponse.js} +0 -0
  1086. /package/{dist/api/resources/events/types/ListMetricCountsResponse.js → api/resources/plangroups/types/GetPlanGroupResponse.js} +0 -0
  1087. /package/{dist/api/resources/plans/types/ListActivePlansResponse.js → api/resources/plangroups/types/UpdatePlanGroupResponse.js} +0 -0
  1088. /package/{dist/api/types/BillingPlan.js → api/types/BillingMeterResponseData.js} +0 -0
  1089. /package/{dist/api/types/BillingPlanGroupResponseData.js → api/types/BillingPriceView.js} +0 -0
  1090. /package/{dist/api/types/CreateReqCommon.js → api/types/BillingProductPriceResponseData.js} +0 -0
  1091. /package/{dist/api/types/MetricCountsHourlyResponseData.js → api/types/BillingSubscriptionView.js} +0 -0
  1092. /package/{dist/api/types/RuleConditionResourceResponseData.js → api/types/CompanyPlanDetailResponseData.js} +0 -0
  1093. /package/{dist/api/types/UpdateReqCommon.js → api/types/CompanyPlanWithBillingSubView.js} +0 -0
@@ -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.
@@ -285,9 +283,9 @@ export declare class Companies {
285
283
  *
286
284
  * @example
287
285
  * await client.companies.getOrCreateEntityTraitDefinition({
288
- * entityType: Schematic.CreateEntityTraitDefinitionRequestBodyEntityType.Company,
286
+ * entityType: "company",
289
287
  * hierarchy: ["hierarchy"],
290
- * traitType: Schematic.CreateEntityTraitDefinitionRequestBodyTraitType.Boolean
288
+ * traitType: "boolean"
291
289
  * })
292
290
  */
293
291
  getOrCreateEntityTraitDefinition(request: Schematic.CreateEntityTraitDefinitionRequestBody, requestOptions?: Companies.RequestOptions): Promise<Schematic.GetOrCreateEntityTraitDefinitionResponse>;
@@ -317,7 +315,7 @@ export declare class Companies {
317
315
  *
318
316
  * @example
319
317
  * await client.companies.updateEntityTraitDefinition("entity_trait_definition_id", {
320
- * traitType: Schematic.UpdateEntityTraitDefinitionRequestBodyTraitType.Boolean
318
+ * traitType: "boolean"
321
319
  * })
322
320
  */
323
321
  updateEntityTraitDefinition(entityTraitDefinitionId: string, request: Schematic.UpdateEntityTraitDefinitionRequestBody, requestOptions?: Companies.RequestOptions): Promise<Schematic.UpdateEntityTraitDefinitionResponse>;
@@ -64,7 +64,7 @@ class Companies {
64
64
  listCompanies(request = {}, requestOptions) {
65
65
  var _a, _b;
66
66
  return __awaiter(this, void 0, void 0, function* () {
67
- const { ids, planId, q, withoutFeatureOverrideFor, limit, offset } = request;
67
+ const { ids, planId, q, withoutFeatureOverrideFor, withoutPlan, limit, offset } = request;
68
68
  const _queryParams = {};
69
69
  if (ids != null) {
70
70
  if (Array.isArray(ids)) {
@@ -83,6 +83,9 @@ class Companies {
83
83
  if (withoutFeatureOverrideFor != null) {
84
84
  _queryParams["without_feature_override_for"] = withoutFeatureOverrideFor;
85
85
  }
86
+ if (withoutPlan != null) {
87
+ _queryParams["without_plan"] = withoutPlan.toString();
88
+ }
86
89
  if (limit != null) {
87
90
  _queryParams["limit"] = limit.toString();
88
91
  }
@@ -92,7 +95,7 @@ class Companies {
92
95
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
93
96
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies"),
94
97
  method: "GET",
95
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
96
99
  contentType: "application/json",
97
100
  queryParameters: _queryParams,
98
101
  requestType: "json",
@@ -187,7 +190,7 @@ class Companies {
187
190
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
188
191
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies"),
189
192
  method: "POST",
190
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
191
194
  contentType: "application/json",
192
195
  requestType: "json",
193
196
  body: serializers.UpsertCompanyRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -278,7 +281,7 @@ class Companies {
278
281
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
279
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)}`),
280
283
  method: "GET",
281
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
282
285
  contentType: "application/json",
283
286
  requestType: "json",
284
287
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -368,7 +371,7 @@ class Companies {
368
371
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
369
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)}`),
370
373
  method: "DELETE",
371
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
372
375
  contentType: "application/json",
373
376
  requestType: "json",
374
377
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -455,7 +458,7 @@ class Companies {
455
458
  countCompanies(request = {}, requestOptions) {
456
459
  var _a, _b;
457
460
  return __awaiter(this, void 0, void 0, function* () {
458
- const { ids, planId, q, withoutFeatureOverrideFor, limit, offset } = request;
461
+ const { ids, planId, q, withoutFeatureOverrideFor, withoutPlan, limit, offset } = request;
459
462
  const _queryParams = {};
460
463
  if (ids != null) {
461
464
  if (Array.isArray(ids)) {
@@ -474,6 +477,9 @@ class Companies {
474
477
  if (withoutFeatureOverrideFor != null) {
475
478
  _queryParams["without_feature_override_for"] = withoutFeatureOverrideFor;
476
479
  }
480
+ if (withoutPlan != null) {
481
+ _queryParams["without_plan"] = withoutPlan.toString();
482
+ }
477
483
  if (limit != null) {
478
484
  _queryParams["limit"] = limit.toString();
479
485
  }
@@ -483,7 +489,7 @@ class Companies {
483
489
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
484
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"),
485
491
  method: "GET",
486
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
487
493
  contentType: "application/json",
488
494
  queryParameters: _queryParams,
489
495
  requestType: "json",
@@ -578,7 +584,7 @@ class Companies {
578
584
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
579
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"),
580
586
  method: "POST",
581
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
582
588
  contentType: "application/json",
583
589
  requestType: "json",
584
590
  body: serializers.UpsertCompanyRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -673,7 +679,7 @@ class Companies {
673
679
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
674
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"),
675
681
  method: "POST",
676
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
677
683
  contentType: "application/json",
678
684
  requestType: "json",
679
685
  body: serializers.KeysRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -773,7 +779,7 @@ class Companies {
773
779
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
774
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"),
775
781
  method: "GET",
776
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
777
783
  contentType: "application/json",
778
784
  queryParameters: _queryParams,
779
785
  requestType: "json",
@@ -877,7 +883,7 @@ class Companies {
877
883
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
878
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"),
879
885
  method: "GET",
880
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
881
887
  contentType: "application/json",
882
888
  queryParameters: _queryParams,
883
889
  requestType: "json",
@@ -982,7 +988,7 @@ class Companies {
982
988
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
983
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"),
984
990
  method: "GET",
985
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
986
992
  contentType: "application/json",
987
993
  queryParameters: _queryParams,
988
994
  requestType: "json",
@@ -1076,7 +1082,7 @@ class Companies {
1076
1082
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1077
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"),
1078
1084
  method: "POST",
1079
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
1080
1086
  contentType: "application/json",
1081
1087
  requestType: "json",
1082
1088
  body: serializers.GetOrCreateCompanyMembershipRequestBody.jsonOrThrow(request, {
@@ -1169,7 +1175,7 @@ class Companies {
1169
1175
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1170
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)}`),
1171
1177
  method: "DELETE",
1172
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
1173
1179
  contentType: "application/json",
1174
1180
  requestType: "json",
1175
1181
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1251,16 +1257,24 @@ class Companies {
1251
1257
  * @throws {@link Schematic.InternalServerError}
1252
1258
  *
1253
1259
  * @example
1254
- * await client.companies.getActiveCompanySubscription({
1255
- * companyId: "company_id"
1256
- * })
1260
+ * await client.companies.getActiveCompanySubscription()
1257
1261
  */
1258
- getActiveCompanySubscription(request, requestOptions) {
1262
+ getActiveCompanySubscription(request = {}, requestOptions) {
1259
1263
  var _a, _b;
1260
1264
  return __awaiter(this, void 0, void 0, function* () {
1261
- const { companyId, limit, offset } = request;
1265
+ const { companyId, companyIds, limit, offset } = request;
1262
1266
  const _queryParams = {};
1263
- _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
+ }
1264
1278
  if (limit != null) {
1265
1279
  _queryParams["limit"] = limit.toString();
1266
1280
  }
@@ -1270,7 +1284,7 @@ class Companies {
1270
1284
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1271
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"),
1272
1286
  method: "GET",
1273
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
1274
1288
  contentType: "application/json",
1275
1289
  queryParameters: _queryParams,
1276
1290
  requestType: "json",
@@ -1366,7 +1380,7 @@ class Companies {
1366
1380
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1367
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"),
1368
1382
  method: "POST",
1369
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
1370
1384
  contentType: "application/json",
1371
1385
  requestType: "json",
1372
1386
  body: serializers.UpsertTraitRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1479,7 +1493,7 @@ class Companies {
1479
1493
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1480
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"),
1481
1495
  method: "GET",
1482
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
1483
1497
  contentType: "application/json",
1484
1498
  queryParameters: _queryParams,
1485
1499
  requestType: "json",
@@ -1592,7 +1606,7 @@ class Companies {
1592
1606
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1593
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"),
1594
1608
  method: "GET",
1595
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
1596
1610
  contentType: "application/json",
1597
1611
  queryParameters: _queryParams,
1598
1612
  requestType: "json",
@@ -1680,7 +1694,7 @@ class Companies {
1680
1694
  listEntityTraitDefinitions(request = {}, requestOptions) {
1681
1695
  var _a, _b;
1682
1696
  return __awaiter(this, void 0, void 0, function* () {
1683
- const { entityType, ids, traitType, q, limit, offset } = request;
1697
+ const { entityType, ids, q, traitType, limit, offset } = request;
1684
1698
  const _queryParams = {};
1685
1699
  if (entityType != null) {
1686
1700
  _queryParams["entity_type"] = entityType;
@@ -1693,12 +1707,12 @@ class Companies {
1693
1707
  _queryParams["ids"] = ids;
1694
1708
  }
1695
1709
  }
1696
- if (traitType != null) {
1697
- _queryParams["trait_type"] = traitType;
1698
- }
1699
1710
  if (q != null) {
1700
1711
  _queryParams["q"] = q;
1701
1712
  }
1713
+ if (traitType != null) {
1714
+ _queryParams["trait_type"] = traitType;
1715
+ }
1702
1716
  if (limit != null) {
1703
1717
  _queryParams["limit"] = limit.toString();
1704
1718
  }
@@ -1708,7 +1722,7 @@ class Companies {
1708
1722
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1709
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"),
1710
1724
  method: "GET",
1711
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
1712
1726
  contentType: "application/json",
1713
1727
  queryParameters: _queryParams,
1714
1728
  requestType: "json",
@@ -1792,9 +1806,9 @@ class Companies {
1792
1806
  *
1793
1807
  * @example
1794
1808
  * await client.companies.getOrCreateEntityTraitDefinition({
1795
- * entityType: Schematic.CreateEntityTraitDefinitionRequestBodyEntityType.Company,
1809
+ * entityType: "company",
1796
1810
  * hierarchy: ["hierarchy"],
1797
- * traitType: Schematic.CreateEntityTraitDefinitionRequestBodyTraitType.Boolean
1811
+ * traitType: "boolean"
1798
1812
  * })
1799
1813
  */
1800
1814
  getOrCreateEntityTraitDefinition(request, requestOptions) {
@@ -1803,7 +1817,7 @@ class Companies {
1803
1817
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1804
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"),
1805
1819
  method: "POST",
1806
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
1807
1821
  contentType: "application/json",
1808
1822
  requestType: "json",
1809
1823
  body: serializers.CreateEntityTraitDefinitionRequestBody.jsonOrThrow(request, {
@@ -1896,7 +1910,7 @@ class Companies {
1896
1910
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1897
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)}`),
1898
1912
  method: "GET",
1899
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
1900
1914
  contentType: "application/json",
1901
1915
  requestType: "json",
1902
1916
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1981,7 +1995,7 @@ class Companies {
1981
1995
  *
1982
1996
  * @example
1983
1997
  * await client.companies.updateEntityTraitDefinition("entity_trait_definition_id", {
1984
- * traitType: Schematic.UpdateEntityTraitDefinitionRequestBodyTraitType.Boolean
1998
+ * traitType: "boolean"
1985
1999
  * })
1986
2000
  */
1987
2001
  updateEntityTraitDefinition(entityTraitDefinitionId, request, requestOptions) {
@@ -1990,7 +2004,7 @@ class Companies {
1990
2004
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1991
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)}`),
1992
2006
  method: "PUT",
1993
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
1994
2008
  contentType: "application/json",
1995
2009
  requestType: "json",
1996
2010
  body: serializers.UpdateEntityTraitDefinitionRequestBody.jsonOrThrow(request, {
@@ -2088,7 +2102,7 @@ class Companies {
2088
2102
  countEntityTraitDefinitions(request = {}, requestOptions) {
2089
2103
  var _a, _b;
2090
2104
  return __awaiter(this, void 0, void 0, function* () {
2091
- const { entityType, ids, traitType, q, limit, offset } = request;
2105
+ const { entityType, ids, q, traitType, limit, offset } = request;
2092
2106
  const _queryParams = {};
2093
2107
  if (entityType != null) {
2094
2108
  _queryParams["entity_type"] = entityType;
@@ -2101,12 +2115,12 @@ class Companies {
2101
2115
  _queryParams["ids"] = ids;
2102
2116
  }
2103
2117
  }
2104
- if (traitType != null) {
2105
- _queryParams["trait_type"] = traitType;
2106
- }
2107
2118
  if (q != null) {
2108
2119
  _queryParams["q"] = q;
2109
2120
  }
2121
+ if (traitType != null) {
2122
+ _queryParams["trait_type"] = traitType;
2123
+ }
2110
2124
  if (limit != null) {
2111
2125
  _queryParams["limit"] = limit.toString();
2112
2126
  }
@@ -2116,7 +2130,7 @@ class Companies {
2116
2130
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2117
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"),
2118
2132
  method: "GET",
2119
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
2120
2134
  contentType: "application/json",
2121
2135
  queryParameters: _queryParams,
2122
2136
  requestType: "json",
@@ -2221,7 +2235,7 @@ class Companies {
2221
2235
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2222
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"),
2223
2237
  method: "GET",
2224
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
2225
2239
  contentType: "application/json",
2226
2240
  queryParameters: _queryParams,
2227
2241
  requestType: "json",
@@ -2317,7 +2331,7 @@ class Companies {
2317
2331
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2318
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"),
2319
2333
  method: "POST",
2320
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
2321
2335
  contentType: "application/json",
2322
2336
  requestType: "json",
2323
2337
  body: serializers.UpsertTraitRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -2433,7 +2447,7 @@ class Companies {
2433
2447
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2434
2448
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users"),
2435
2449
  method: "GET",
2436
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
2437
2451
  contentType: "application/json",
2438
2452
  queryParameters: _queryParams,
2439
2453
  requestType: "json",
@@ -2531,7 +2545,7 @@ class Companies {
2531
2545
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2532
2546
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users"),
2533
2547
  method: "POST",
2534
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
2535
2549
  contentType: "application/json",
2536
2550
  requestType: "json",
2537
2551
  body: serializers.UpsertUserRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -2622,7 +2636,7 @@ class Companies {
2622
2636
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2623
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)}`),
2624
2638
  method: "GET",
2625
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
2626
2640
  contentType: "application/json",
2627
2641
  requestType: "json",
2628
2642
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2712,7 +2726,7 @@ class Companies {
2712
2726
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2713
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)}`),
2714
2728
  method: "DELETE",
2715
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
2716
2730
  contentType: "application/json",
2717
2731
  requestType: "json",
2718
2732
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2827,7 +2841,7 @@ class Companies {
2827
2841
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2828
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"),
2829
2843
  method: "GET",
2830
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
2831
2845
  contentType: "application/json",
2832
2846
  queryParameters: _queryParams,
2833
2847
  requestType: "json",
@@ -2925,7 +2939,7 @@ class Companies {
2925
2939
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2926
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"),
2927
2941
  method: "POST",
2928
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
2929
2943
  contentType: "application/json",
2930
2944
  requestType: "json",
2931
2945
  body: serializers.UpsertUserRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -3020,7 +3034,7 @@ class Companies {
3020
3034
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
3021
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"),
3022
3036
  method: "POST",
3023
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
3024
3038
  contentType: "application/json",
3025
3039
  requestType: "json",
3026
3040
  body: serializers.KeysRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -3120,7 +3134,7 @@ class Companies {
3120
3134
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
3121
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"),
3122
3136
  method: "GET",
3123
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "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())),
3124
3138
  contentType: "application/json",
3125
3139
  queryParameters: _queryParams,
3126
3140
  requestType: "json",
@@ -6,16 +6,26 @@
6
6
  * {}
7
7
  */
8
8
  export interface CountCompaniesRequest {
9
+ /**
10
+ * Filter companies by multiple company IDs (starts with comp\_)
11
+ */
9
12
  ids?: string | string[];
13
+ /**
14
+ * Filter companies by plan ID (starts with plan\_)
15
+ */
10
16
  planId?: string;
11
17
  /**
12
- * Search filter
18
+ * Search for companies by name, keys or string traits
13
19
  */
14
20
  q?: string;
15
21
  /**
16
22
  * Filter out companies that already have a company override for the specified feature ID
17
23
  */
18
24
  withoutFeatureOverrideFor?: string;
25
+ /**
26
+ * Filter out companies that have a plan
27
+ */
28
+ withoutPlan?: boolean;
19
29
  /**
20
30
  * Page limit (default 100)
21
31
  */
@@ -9,8 +9,8 @@ import * as Schematic from "../../../../index";
9
9
  export interface CountEntityTraitDefinitionsRequest {
10
10
  entityType?: Schematic.CountEntityTraitDefinitionsRequestEntityType;
11
11
  ids?: string | string[];
12
- traitType?: Schematic.CountEntityTraitDefinitionsRequestTraitType;
13
12
  q?: string;
13
+ traitType?: Schematic.CountEntityTraitDefinitionsRequestTraitType;
14
14
  /**
15
15
  * Page limit (default 100)
16
16
  */
@@ -6,11 +6,20 @@
6
6
  * {}
7
7
  */
8
8
  export interface CountUsersRequest {
9
+ /**
10
+ * Filter users by company ID (starts with comp\_)
11
+ */
9
12
  companyId?: string;
13
+ /**
14
+ * Filter users by multiple user IDs (starts with user\_)
15
+ */
10
16
  ids?: string | string[];
17
+ /**
18
+ * Filter users by plan ID (starts with plan\_)
19
+ */
11
20
  planId?: string;
12
21
  /**
13
- * Search filter
22
+ * Search for users by name, keys or string traits
14
23
  */
15
24
  q?: string;
16
25
  /**
@@ -5,9 +5,9 @@ import * as Schematic from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * entityType: Schematic.CreateEntityTraitDefinitionRequestBodyEntityType.Company,
8
+ * entityType: "company",
9
9
  * hierarchy: ["hierarchy"],
10
- * traitType: Schematic.CreateEntityTraitDefinitionRequestBodyTraitType.Boolean
10
+ * traitType: "boolean"
11
11
  * }
12
12
  */
13
13
  export interface CreateEntityTraitDefinitionRequestBody {
@@ -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
  */
@@ -6,16 +6,26 @@
6
6
  * {}
7
7
  */
8
8
  export interface ListCompaniesRequest {
9
+ /**
10
+ * Filter companies by multiple company IDs (starts with comp\_)
11
+ */
9
12
  ids?: string | string[];
13
+ /**
14
+ * Filter companies by plan ID (starts with plan\_)
15
+ */
10
16
  planId?: string;
11
17
  /**
12
- * Search filter
18
+ * Search for companies by name, keys or string traits
13
19
  */
14
20
  q?: string;
15
21
  /**
16
22
  * Filter out companies that already have a company override for the specified feature ID
17
23
  */
18
24
  withoutFeatureOverrideFor?: string;
25
+ /**
26
+ * Filter out companies that have a plan
27
+ */
28
+ withoutPlan?: boolean;
19
29
  /**
20
30
  * Page limit (default 100)
21
31
  */
@@ -9,8 +9,8 @@ import * as Schematic from "../../../../index";
9
9
  export interface ListEntityTraitDefinitionsRequest {
10
10
  entityType?: Schematic.ListEntityTraitDefinitionsRequestEntityType;
11
11
  ids?: string | string[];
12
- traitType?: Schematic.ListEntityTraitDefinitionsRequestTraitType;
13
12
  q?: string;
13
+ traitType?: Schematic.ListEntityTraitDefinitionsRequestTraitType;
14
14
  /**
15
15
  * Page limit (default 100)
16
16
  */