@schematichq/schematic-typescript-node 1.1.2 → 1.1.5

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 (785) hide show
  1. package/Client.d.ts +13 -0
  2. package/Client.js +97 -4
  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 +131 -1
  8. package/api/resources/billing/client/Client.js +836 -11
  9. package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +24 -0
  10. package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
  11. package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +8 -1
  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 +4 -0
  16. package/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +22 -0
  17. package/api/resources/{companies/client/requests/ListCompanyPlansRequest.d.ts → billing/client/requests/ListMetersRequest.d.ts} +2 -3
  18. package/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +22 -0
  19. package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +4 -0
  20. package/api/resources/billing/client/requests/index.d.ts +7 -0
  21. package/api/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
  22. package/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
  23. package/api/resources/{components/types/HydrateComponentResponse.d.ts → billing/types/DeleteProductPriceResponse.d.ts} +2 -2
  24. package/api/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
  25. package/api/resources/billing/types/ListInvoicesParams.d.ts +15 -0
  26. package/api/resources/billing/types/ListInvoicesParams.js +5 -0
  27. package/{dist/api/resources/companies/types/ListCompanyPlansResponse.d.ts → api/resources/billing/types/ListInvoicesResponse.d.ts} +3 -3
  28. package/api/resources/billing/types/ListInvoicesResponse.js +5 -0
  29. package/api/resources/{companies/types/ListCompanyPlansParams.d.ts → billing/types/ListMetersParams.d.ts} +2 -3
  30. package/api/resources/billing/types/ListMetersParams.js +5 -0
  31. package/api/resources/{companies/types/ListCompanyPlansResponse.d.ts → billing/types/ListMetersResponse.d.ts} +3 -3
  32. package/api/resources/billing/types/ListMetersResponse.js +5 -0
  33. package/api/resources/billing/types/ListPaymentMethodsParams.d.ts +15 -0
  34. package/api/resources/billing/types/ListPaymentMethodsParams.js +5 -0
  35. package/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +10 -0
  36. package/api/resources/billing/types/ListPaymentMethodsResponse.js +5 -0
  37. package/api/resources/billing/types/ListProductPricesParams.d.ts +2 -0
  38. package/{dist/api/resources/components/types/HydrateComponentResponse.d.ts → api/resources/billing/types/UpsertBillingMeterResponse.d.ts} +2 -2
  39. package/api/resources/billing/types/UpsertBillingMeterResponse.js +5 -0
  40. package/api/resources/billing/types/UpsertInvoiceResponse.d.ts +9 -0
  41. package/api/resources/billing/types/UpsertInvoiceResponse.js +5 -0
  42. package/api/resources/billing/types/UpsertPaymentMethodResponse.d.ts +9 -0
  43. package/api/resources/billing/types/UpsertPaymentMethodResponse.js +5 -0
  44. package/api/resources/billing/types/index.d.ts +12 -0
  45. package/api/resources/billing/types/index.js +12 -0
  46. package/api/resources/companies/client/Client.d.ts +3 -16
  47. package/api/resources/companies/client/Client.js +50 -149
  48. package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
  49. package/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
  50. package/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
  51. package/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
  52. package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
  53. package/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
  54. package/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
  55. package/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
  56. package/api/resources/companies/client/requests/index.d.ts +0 -1
  57. package/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
  58. package/api/resources/companies/types/CountUsersParams.d.ts +4 -1
  59. package/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
  60. package/api/resources/companies/types/ListUsersParams.d.ts +4 -1
  61. package/api/resources/companies/types/index.d.ts +0 -2
  62. package/api/resources/companies/types/index.js +0 -2
  63. package/api/resources/components/client/Client.d.ts +9 -9
  64. package/api/resources/components/client/Client.js +49 -40
  65. package/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
  66. package/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
  67. package/api/resources/components/client/requests/PreviewComponentDataRequest.js +5 -0
  68. package/api/resources/components/client/requests/index.d.ts +1 -0
  69. package/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
  70. package/api/resources/components/types/PreviewComponentDataParams.js +5 -0
  71. package/api/resources/components/types/PreviewComponentDataResponse.d.ts +9 -0
  72. package/api/resources/components/types/PreviewComponentDataResponse.js +5 -0
  73. package/api/resources/components/types/index.d.ts +2 -1
  74. package/api/resources/components/types/index.js +2 -1
  75. package/api/resources/crm/client/Client.js +5 -5
  76. package/api/resources/entitlements/client/Client.d.ts +4 -4
  77. package/api/resources/entitlements/client/Client.js +31 -25
  78. package/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
  79. package/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
  80. package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +18 -0
  81. package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -1
  82. package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -1
  83. package/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
  84. package/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
  85. package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +18 -0
  86. package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -1
  87. package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -1
  88. package/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
  89. package/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  90. package/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +6 -0
  91. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  92. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  93. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  94. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  95. package/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
  96. package/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  97. package/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +6 -0
  98. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  99. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  100. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  101. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  102. package/api/resources/events/client/Client.d.ts +2 -2
  103. package/api/resources/events/client/Client.js +10 -10
  104. package/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
  105. package/api/resources/features/client/Client.d.ts +21 -21
  106. package/api/resources/features/client/Client.js +40 -40
  107. package/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
  108. package/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
  109. package/api/resources/index.d.ts +3 -0
  110. package/api/resources/index.js +4 -1
  111. package/api/resources/plangroups/client/Client.d.ts +74 -0
  112. package/api/resources/plangroups/client/Client.js +346 -0
  113. package/api/resources/plangroups/client/index.d.ts +1 -0
  114. package/api/resources/plangroups/client/index.js +17 -0
  115. package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +15 -0
  116. package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
  117. package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +15 -0
  118. package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +5 -0
  119. package/api/resources/plangroups/client/requests/index.d.ts +2 -0
  120. package/api/resources/plangroups/client/requests/index.js +2 -0
  121. package/api/resources/plangroups/index.d.ts +2 -0
  122. package/api/resources/plangroups/index.js +18 -0
  123. package/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
  124. package/api/resources/plangroups/types/CreatePlanGroupResponse.js +5 -0
  125. package/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
  126. package/api/resources/plangroups/types/GetPlanGroupResponse.js +5 -0
  127. package/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
  128. package/api/resources/plangroups/types/UpdatePlanGroupResponse.js +5 -0
  129. package/api/resources/plangroups/types/index.d.ts +3 -0
  130. package/api/resources/plangroups/types/index.js +19 -0
  131. package/api/resources/plans/client/Client.d.ts +5 -6
  132. package/api/resources/plans/client/Client.js +35 -24
  133. package/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
  134. package/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -2
  135. package/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
  136. package/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
  137. package/api/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -2
  138. package/api/resources/plans/types/CountPlansParams.d.ts +4 -0
  139. package/api/resources/plans/types/ListPlansParams.d.ts +4 -0
  140. package/api/resources/webhooks/client/Client.d.ts +1 -1
  141. package/api/resources/webhooks/client/Client.js +18 -18
  142. package/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
  143. package/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
  144. package/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
  145. package/api/types/BillingCustomerSubscription.d.ts +1 -0
  146. package/api/types/BillingMeterResponseData.d.ts +10 -0
  147. package/api/types/BillingMeterResponseData.js +5 -0
  148. package/api/types/BillingPriceResponseData.d.ts +1 -0
  149. package/api/types/BillingProductForSubscriptionResponseData.d.ts +18 -0
  150. package/api/types/BillingProductForSubscriptionResponseData.js +5 -0
  151. package/api/types/BillingProductPricing.d.ts +3 -0
  152. package/api/types/BillingSubscriptionResponseData.d.ts +4 -4
  153. package/api/types/CheckFlagRequestBody.d.ts +2 -2
  154. package/api/types/CompanyDetailResponseData.d.ts +4 -3
  155. package/api/types/CompanyPlanDetailResponseData.d.ts +23 -0
  156. package/api/types/CompanyPlanDetailResponseData.js +5 -0
  157. package/api/types/CompanyPlanWithBillingSubView.d.ts +12 -0
  158. package/api/types/CompanyPlanWithBillingSubView.js +5 -0
  159. package/api/types/CompanySubscriptionResponseData.d.ts +6 -1
  160. package/api/types/ComponentHydrateResponseData.d.ts +5 -3
  161. package/api/types/ComponentPreviewResponseData.d.ts +18 -0
  162. package/api/types/ComponentPreviewResponseData.js +5 -0
  163. package/api/types/ComponentResponseData.d.ts +3 -0
  164. package/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
  165. package/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
  166. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
  167. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
  168. package/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
  169. package/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
  170. package/api/types/CreateReqCommonMetricPeriod.d.ts +2 -1
  171. package/api/types/CreateReqCommonMetricPeriod.js +1 -0
  172. package/api/types/EventBodyFlagCheck.d.ts +2 -2
  173. package/api/types/GenericPreviewObject.d.ts +9 -0
  174. package/api/types/GenericPreviewObject.js +5 -0
  175. package/api/types/InvoiceRequestBody.d.ts +16 -0
  176. package/api/types/InvoiceRequestBody.js +5 -0
  177. package/api/types/InvoiceResponseData.d.ts +22 -0
  178. package/api/types/InvoiceResponseData.js +5 -0
  179. package/api/types/MeterRequestBody.d.ts +8 -0
  180. package/api/types/MeterRequestBody.js +5 -0
  181. package/api/types/PaymentMethodRequestBody.d.ts +17 -0
  182. package/api/types/PaymentMethodRequestBody.js +5 -0
  183. package/api/types/PaymentMethodResponseData.d.ts +23 -0
  184. package/api/types/PaymentMethodResponseData.js +5 -0
  185. package/api/types/PlanDetailResponseData.d.ts +4 -4
  186. package/api/types/PlanEntitlementResponseData.d.ts +0 -3
  187. package/api/types/PlanGroupDetailResponseData.d.ts +13 -0
  188. package/api/types/PlanGroupDetailResponseData.js +5 -0
  189. package/api/types/PlanGroupPlanDetailResponseData.d.ts +21 -0
  190. package/api/types/PlanGroupPlanDetailResponseData.js +5 -0
  191. package/api/types/PlanGroupResponseData.d.ts +12 -0
  192. package/api/types/PlanGroupResponseData.js +5 -0
  193. package/api/types/PlanResponseData.d.ts +1 -1
  194. package/api/types/StripeEmbedInfo.d.ts +7 -0
  195. package/api/types/StripeEmbedInfo.js +5 -0
  196. package/api/types/UpdateReqCommonMetricPeriod.d.ts +2 -1
  197. package/api/types/UpdateReqCommonMetricPeriod.js +1 -0
  198. package/api/types/index.d.ts +15 -1
  199. package/api/types/index.js +15 -1
  200. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
  201. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
  202. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
  203. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
  204. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
  205. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
  206. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
  207. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
  208. package/core/schemas/Schema.d.ts +1 -0
  209. package/core/schemas/Schema.js +1 -0
  210. package/core/schemas/builders/bigint/bigint.d.ts +2 -0
  211. package/core/schemas/builders/bigint/bigint.js +50 -0
  212. package/core/schemas/builders/bigint/index.d.ts +1 -0
  213. package/core/schemas/builders/bigint/index.js +5 -0
  214. package/core/schemas/builders/index.d.ts +1 -0
  215. package/core/schemas/builders/index.js +1 -0
  216. package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  217. package/dist/Client.d.ts +13 -0
  218. package/dist/Client.js +97 -4
  219. package/dist/api/resources/accesstokens/client/Client.js +1 -1
  220. package/dist/api/resources/accounts/client/Client.d.ts +1 -1
  221. package/dist/api/resources/accounts/client/Client.js +15 -15
  222. package/dist/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
  223. package/dist/api/resources/billing/client/Client.d.ts +131 -1
  224. package/dist/api/resources/billing/client/Client.js +836 -11
  225. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +24 -0
  226. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.js +5 -0
  227. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
  228. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +8 -1
  229. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +29 -0
  230. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.js +5 -0
  231. package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +18 -0
  232. package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.js +5 -0
  233. package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +26 -0
  234. package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +5 -0
  235. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +4 -0
  236. package/dist/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +22 -0
  237. package/dist/api/resources/billing/client/requests/ListInvoicesRequest.js +5 -0
  238. package/dist/api/resources/{companies/client/requests/ListCompanyPlansRequest.d.ts → billing/client/requests/ListMetersRequest.d.ts} +2 -3
  239. package/dist/api/resources/billing/client/requests/ListMetersRequest.js +5 -0
  240. package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +22 -0
  241. package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.js +5 -0
  242. package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +4 -0
  243. package/dist/api/resources/billing/client/requests/index.d.ts +7 -0
  244. package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
  245. package/dist/api/resources/billing/types/CountBillingProductsParams.js +5 -0
  246. package/dist/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
  247. package/dist/api/resources/billing/types/CountBillingProductsResponse.js +5 -0
  248. package/dist/api/resources/billing/types/DeleteProductPriceResponse.d.ts +9 -0
  249. package/dist/api/resources/billing/types/DeleteProductPriceResponse.js +5 -0
  250. package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
  251. package/dist/api/resources/billing/types/ListInvoicesParams.d.ts +15 -0
  252. package/dist/api/resources/billing/types/ListInvoicesParams.js +5 -0
  253. package/dist/api/resources/billing/types/ListInvoicesResponse.d.ts +10 -0
  254. package/dist/api/resources/billing/types/ListInvoicesResponse.js +5 -0
  255. package/dist/api/resources/{companies/types/ListCompanyPlansParams.d.ts → billing/types/ListMetersParams.d.ts} +2 -3
  256. package/dist/api/resources/billing/types/ListMetersParams.js +5 -0
  257. package/dist/api/resources/billing/types/ListMetersResponse.d.ts +10 -0
  258. package/dist/api/resources/billing/types/ListMetersResponse.js +5 -0
  259. package/dist/api/resources/billing/types/ListPaymentMethodsParams.d.ts +15 -0
  260. package/dist/api/resources/billing/types/ListPaymentMethodsParams.js +5 -0
  261. package/dist/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +10 -0
  262. package/dist/api/resources/billing/types/ListPaymentMethodsResponse.js +5 -0
  263. package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +2 -0
  264. package/dist/api/resources/billing/types/UpsertBillingMeterResponse.d.ts +9 -0
  265. package/dist/api/resources/billing/types/UpsertBillingMeterResponse.js +5 -0
  266. package/dist/api/resources/billing/types/UpsertInvoiceResponse.d.ts +9 -0
  267. package/dist/api/resources/billing/types/UpsertInvoiceResponse.js +5 -0
  268. package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.d.ts +9 -0
  269. package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.js +5 -0
  270. package/dist/api/resources/billing/types/index.d.ts +12 -0
  271. package/dist/api/resources/billing/types/index.js +12 -0
  272. package/dist/api/resources/companies/client/Client.d.ts +3 -16
  273. package/dist/api/resources/companies/client/Client.js +50 -149
  274. package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
  275. package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
  276. package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
  277. package/dist/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
  278. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
  279. package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
  280. package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
  281. package/dist/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
  282. package/dist/api/resources/companies/client/requests/index.d.ts +0 -1
  283. package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
  284. package/dist/api/resources/companies/types/CountUsersParams.d.ts +4 -1
  285. package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
  286. package/dist/api/resources/companies/types/ListUsersParams.d.ts +4 -1
  287. package/dist/api/resources/companies/types/index.d.ts +0 -2
  288. package/dist/api/resources/companies/types/index.js +0 -2
  289. package/dist/api/resources/components/client/Client.d.ts +9 -9
  290. package/dist/api/resources/components/client/Client.js +49 -40
  291. package/dist/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
  292. package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
  293. package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.js +5 -0
  294. package/dist/api/resources/components/client/requests/index.d.ts +1 -0
  295. package/dist/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
  296. package/dist/api/resources/components/types/PreviewComponentDataParams.js +5 -0
  297. package/dist/api/resources/components/types/PreviewComponentDataResponse.d.ts +9 -0
  298. package/dist/api/resources/components/types/PreviewComponentDataResponse.js +5 -0
  299. package/dist/api/resources/components/types/index.d.ts +2 -1
  300. package/dist/api/resources/components/types/index.js +2 -1
  301. package/dist/api/resources/crm/client/Client.js +5 -5
  302. package/dist/api/resources/entitlements/client/Client.d.ts +4 -4
  303. package/dist/api/resources/entitlements/client/Client.js +31 -25
  304. package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
  305. package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
  306. package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +18 -0
  307. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -1
  308. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -1
  309. package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
  310. package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
  311. package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +18 -0
  312. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -1
  313. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -1
  314. package/dist/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
  315. package/dist/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  316. package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +6 -0
  317. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  318. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  319. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  320. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  321. package/dist/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
  322. package/dist/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  323. package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +6 -0
  324. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  325. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  326. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  327. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  328. package/dist/api/resources/events/client/Client.d.ts +2 -2
  329. package/dist/api/resources/events/client/Client.js +10 -10
  330. package/dist/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
  331. package/dist/api/resources/features/client/Client.d.ts +21 -21
  332. package/dist/api/resources/features/client/Client.js +40 -40
  333. package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
  334. package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
  335. package/dist/api/resources/index.d.ts +3 -0
  336. package/dist/api/resources/index.js +4 -1
  337. package/dist/api/resources/plangroups/client/Client.d.ts +74 -0
  338. package/dist/api/resources/plangroups/client/Client.js +346 -0
  339. package/dist/api/resources/plangroups/client/index.d.ts +1 -0
  340. package/dist/api/resources/plangroups/client/index.js +17 -0
  341. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +15 -0
  342. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
  343. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +15 -0
  344. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +5 -0
  345. package/dist/api/resources/plangroups/client/requests/index.d.ts +2 -0
  346. package/dist/api/resources/plangroups/client/requests/index.js +2 -0
  347. package/dist/api/resources/plangroups/index.d.ts +2 -0
  348. package/dist/api/resources/plangroups/index.js +18 -0
  349. package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
  350. package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.js +5 -0
  351. package/dist/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
  352. package/dist/api/resources/plangroups/types/GetPlanGroupResponse.js +5 -0
  353. package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
  354. package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.js +5 -0
  355. package/dist/api/resources/plangroups/types/index.d.ts +3 -0
  356. package/dist/api/resources/plangroups/types/index.js +19 -0
  357. package/dist/api/resources/plans/client/Client.d.ts +5 -6
  358. package/dist/api/resources/plans/client/Client.js +35 -24
  359. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
  360. package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -2
  361. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
  362. package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
  363. package/dist/api/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -2
  364. package/dist/api/resources/plans/types/CountPlansParams.d.ts +4 -0
  365. package/dist/api/resources/plans/types/ListPlansParams.d.ts +4 -0
  366. package/dist/api/resources/webhooks/client/Client.d.ts +1 -1
  367. package/dist/api/resources/webhooks/client/Client.js +18 -18
  368. package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
  369. package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
  370. package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
  371. package/dist/api/types/BillingCustomerSubscription.d.ts +1 -0
  372. package/dist/api/types/BillingMeterResponseData.d.ts +10 -0
  373. package/dist/api/types/BillingMeterResponseData.js +5 -0
  374. package/dist/api/types/BillingPriceResponseData.d.ts +1 -0
  375. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +18 -0
  376. package/dist/api/types/BillingProductForSubscriptionResponseData.js +5 -0
  377. package/dist/api/types/BillingProductPricing.d.ts +3 -0
  378. package/dist/api/types/BillingSubscriptionResponseData.d.ts +4 -4
  379. package/dist/api/types/CheckFlagRequestBody.d.ts +2 -2
  380. package/dist/api/types/CompanyDetailResponseData.d.ts +4 -3
  381. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +23 -0
  382. package/dist/api/types/CompanyPlanDetailResponseData.js +5 -0
  383. package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +12 -0
  384. package/dist/api/types/CompanyPlanWithBillingSubView.js +5 -0
  385. package/dist/api/types/CompanySubscriptionResponseData.d.ts +6 -1
  386. package/dist/api/types/ComponentHydrateResponseData.d.ts +5 -3
  387. package/dist/api/types/ComponentPreviewResponseData.d.ts +18 -0
  388. package/dist/api/types/ComponentPreviewResponseData.js +5 -0
  389. package/dist/api/types/ComponentResponseData.d.ts +3 -0
  390. package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
  391. package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
  392. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
  393. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
  394. package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
  395. package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
  396. package/dist/api/types/CreateReqCommonMetricPeriod.d.ts +2 -1
  397. package/dist/api/types/CreateReqCommonMetricPeriod.js +1 -0
  398. package/dist/api/types/EventBodyFlagCheck.d.ts +2 -2
  399. package/dist/api/types/GenericPreviewObject.d.ts +9 -0
  400. package/dist/api/types/GenericPreviewObject.js +5 -0
  401. package/dist/api/types/InvoiceRequestBody.d.ts +16 -0
  402. package/dist/api/types/InvoiceRequestBody.js +5 -0
  403. package/dist/api/types/InvoiceResponseData.d.ts +22 -0
  404. package/dist/api/types/InvoiceResponseData.js +5 -0
  405. package/dist/api/types/MeterRequestBody.d.ts +8 -0
  406. package/dist/api/types/MeterRequestBody.js +5 -0
  407. package/dist/api/types/PaymentMethodRequestBody.d.ts +17 -0
  408. package/dist/api/types/PaymentMethodRequestBody.js +5 -0
  409. package/dist/api/types/PaymentMethodResponseData.d.ts +23 -0
  410. package/dist/api/types/PaymentMethodResponseData.js +5 -0
  411. package/dist/api/types/PlanDetailResponseData.d.ts +4 -4
  412. package/dist/api/types/PlanEntitlementResponseData.d.ts +0 -3
  413. package/dist/api/types/PlanGroupDetailResponseData.d.ts +13 -0
  414. package/dist/api/types/PlanGroupDetailResponseData.js +5 -0
  415. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +21 -0
  416. package/dist/api/types/PlanGroupPlanDetailResponseData.js +5 -0
  417. package/dist/api/types/PlanGroupResponseData.d.ts +12 -0
  418. package/dist/api/types/PlanGroupResponseData.js +5 -0
  419. package/dist/api/types/PlanResponseData.d.ts +1 -1
  420. package/dist/api/types/StripeEmbedInfo.d.ts +7 -0
  421. package/dist/api/types/StripeEmbedInfo.js +5 -0
  422. package/dist/api/types/UpdateReqCommonMetricPeriod.d.ts +2 -1
  423. package/dist/api/types/UpdateReqCommonMetricPeriod.js +1 -0
  424. package/dist/api/types/index.d.ts +15 -1
  425. package/dist/api/types/index.js +15 -1
  426. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
  427. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
  428. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
  429. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
  430. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
  431. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
  432. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
  433. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
  434. package/dist/core/schemas/Schema.d.ts +1 -0
  435. package/dist/core/schemas/Schema.js +1 -0
  436. package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
  437. package/dist/core/schemas/builders/bigint/bigint.js +50 -0
  438. package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
  439. package/dist/core/schemas/builders/bigint/index.js +5 -0
  440. package/dist/core/schemas/builders/index.d.ts +1 -0
  441. package/dist/core/schemas/builders/index.js +1 -0
  442. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  443. package/dist/events.d.ts +3 -0
  444. package/dist/events.js +17 -5
  445. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -0
  446. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +1 -0
  447. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +3 -0
  448. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +3 -0
  449. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
  450. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
  451. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
  452. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +36 -0
  453. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
  454. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
  455. package/dist/serialization/resources/billing/client/requests/index.d.ts +3 -0
  456. package/dist/serialization/resources/billing/client/requests/index.js +7 -1
  457. package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
  458. package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +38 -0
  459. package/dist/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
  460. package/dist/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
  461. package/dist/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
  462. package/{serialization/resources/components/types/HydrateComponentResponse.js → dist/serialization/resources/billing/types/DeleteProductPriceResponse.js} +4 -4
  463. package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +1 -0
  464. package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +1 -0
  465. package/dist/serialization/resources/{companies/types/ListCompanyPlansParams.d.ts → billing/types/ListInvoicesParams.d.ts} +4 -3
  466. package/dist/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
  467. package/dist/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
  468. package/dist/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
  469. package/dist/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
  470. package/dist/serialization/resources/{companies/types/ListCompanyPlansParams.js → billing/types/ListMetersParams.js} +3 -4
  471. package/dist/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
  472. package/dist/serialization/resources/billing/types/ListMetersResponse.js +36 -0
  473. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
  474. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
  475. package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
  476. package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.js +36 -0
  477. package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +1 -0
  478. package/dist/serialization/resources/billing/types/ListProductPricesParams.js +1 -0
  479. package/dist/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
  480. package/dist/serialization/resources/{components/types/HydrateComponentResponse.js → billing/types/UpsertBillingMeterResponse.js} +4 -4
  481. package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
  482. package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.js +35 -0
  483. package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
  484. package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +35 -0
  485. package/dist/serialization/resources/billing/types/index.d.ts +12 -0
  486. package/dist/serialization/resources/billing/types/index.js +12 -0
  487. package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  488. package/dist/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
  489. package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  490. package/dist/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
  491. package/dist/serialization/resources/companies/types/index.d.ts +0 -2
  492. package/dist/serialization/resources/companies/types/index.js +0 -2
  493. package/dist/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
  494. package/dist/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
  495. package/dist/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
  496. package/dist/serialization/resources/{companies/types/ListCompanyPlansResponse.js → components/types/PreviewComponentDataResponse.js} +6 -6
  497. package/dist/serialization/resources/components/types/index.d.ts +2 -1
  498. package/dist/serialization/resources/components/types/index.js +2 -1
  499. package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  500. package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
  501. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  502. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  503. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  504. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  505. package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  506. package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
  507. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  508. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  509. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  510. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  511. package/dist/serialization/resources/index.d.ts +3 -0
  512. package/dist/serialization/resources/index.js +4 -1
  513. package/dist/serialization/resources/plangroups/client/index.d.ts +1 -0
  514. package/dist/serialization/resources/plangroups/client/index.js +17 -0
  515. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +14 -0
  516. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +35 -0
  517. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +14 -0
  518. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +35 -0
  519. package/dist/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
  520. package/dist/serialization/resources/plangroups/client/requests/index.js +7 -0
  521. package/dist/serialization/resources/plangroups/index.d.ts +2 -0
  522. package/dist/serialization/resources/plangroups/index.js +18 -0
  523. package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
  524. package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
  525. package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
  526. package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
  527. package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
  528. package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
  529. package/dist/serialization/resources/plangroups/types/index.d.ts +3 -0
  530. package/dist/serialization/resources/plangroups/types/index.js +19 -0
  531. package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -1
  532. package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +0 -1
  533. package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -1
  534. package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +0 -1
  535. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  536. package/dist/serialization/resources/plans/types/CountPlansParams.js +2 -0
  537. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  538. package/dist/serialization/resources/plans/types/ListPlansParams.js +2 -0
  539. package/dist/serialization/types/BillingCustomerSubscription.d.ts +1 -0
  540. package/dist/serialization/types/BillingCustomerSubscription.js +1 -0
  541. package/dist/serialization/types/BillingMeterResponseData.d.ts +16 -0
  542. package/{serialization/types/CompanyPlanResponseData.js → dist/serialization/types/BillingMeterResponseData.js} +6 -7
  543. package/dist/serialization/types/BillingPriceResponseData.d.ts +1 -0
  544. package/dist/serialization/types/BillingPriceResponseData.js +1 -0
  545. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +24 -0
  546. package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +45 -0
  547. package/dist/serialization/types/BillingProductPricing.d.ts +3 -0
  548. package/dist/serialization/types/BillingProductPricing.js +3 -0
  549. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +4 -1
  550. package/dist/serialization/types/BillingSubscriptionResponseData.js +4 -1
  551. package/dist/serialization/types/CheckFlagRequestBody.d.ts +2 -2
  552. package/dist/serialization/types/CheckFlagRequestBody.js +2 -2
  553. package/dist/serialization/types/CompanyDetailResponseData.d.ts +7 -4
  554. package/dist/serialization/types/CompanyDetailResponseData.js +7 -4
  555. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +32 -0
  556. package/dist/serialization/types/CompanyPlanDetailResponseData.js +53 -0
  557. package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +18 -0
  558. package/dist/serialization/types/CompanyPlanWithBillingSubView.js +39 -0
  559. package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +9 -2
  560. package/dist/serialization/types/CompanySubscriptionResponseData.js +9 -2
  561. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +9 -0
  562. package/dist/serialization/types/ComponentHydrateResponseData.js +9 -0
  563. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +27 -0
  564. package/dist/serialization/types/ComponentPreviewResponseData.js +48 -0
  565. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
  566. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
  567. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  568. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  569. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
  570. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
  571. package/dist/serialization/types/CreateReqCommonMetricPeriod.d.ts +1 -1
  572. package/dist/serialization/types/CreateReqCommonMetricPeriod.js +1 -1
  573. package/dist/serialization/types/EventBodyFlagCheck.d.ts +2 -2
  574. package/dist/serialization/types/EventBodyFlagCheck.js +2 -2
  575. package/dist/serialization/types/GenericPreviewObject.d.ts +15 -0
  576. package/dist/serialization/types/GenericPreviewObject.js +36 -0
  577. package/dist/serialization/types/InvoiceRequestBody.d.ts +22 -0
  578. package/dist/serialization/types/InvoiceRequestBody.js +43 -0
  579. package/dist/serialization/types/InvoiceResponseData.d.ts +28 -0
  580. package/dist/serialization/types/InvoiceResponseData.js +49 -0
  581. package/dist/serialization/types/MeterRequestBody.d.ts +14 -0
  582. package/dist/serialization/types/MeterRequestBody.js +35 -0
  583. package/dist/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
  584. package/dist/serialization/types/PaymentMethodRequestBody.js +44 -0
  585. package/dist/serialization/types/PaymentMethodResponseData.d.ts +29 -0
  586. package/dist/serialization/types/PaymentMethodResponseData.js +50 -0
  587. package/dist/serialization/types/PlanDetailResponseData.d.ts +5 -1
  588. package/dist/serialization/types/PlanDetailResponseData.js +5 -1
  589. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +16 -0
  590. package/dist/serialization/types/PlanGroupDetailResponseData.js +37 -0
  591. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +30 -0
  592. package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +51 -0
  593. package/dist/serialization/types/PlanGroupResponseData.d.ts +15 -0
  594. package/dist/serialization/types/PlanGroupResponseData.js +36 -0
  595. package/dist/serialization/types/PlanResponseData.d.ts +1 -1
  596. package/dist/serialization/types/PlanResponseData.js +1 -1
  597. package/dist/serialization/types/StripeEmbedInfo.d.ts +13 -0
  598. package/dist/serialization/types/StripeEmbedInfo.js +34 -0
  599. package/dist/serialization/types/UpdateReqCommonMetricPeriod.d.ts +1 -1
  600. package/dist/serialization/types/UpdateReqCommonMetricPeriod.js +1 -1
  601. package/dist/serialization/types/index.d.ts +15 -1
  602. package/dist/serialization/types/index.js +15 -1
  603. package/dist/wrapper.js +20 -15
  604. package/events.d.ts +3 -0
  605. package/events.js +17 -5
  606. package/package.json +9 -3
  607. package/reference.md +691 -136
  608. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -0
  609. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +1 -0
  610. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +3 -0
  611. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +3 -0
  612. package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
  613. package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
  614. package/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
  615. package/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +36 -0
  616. package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
  617. package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
  618. package/serialization/resources/billing/client/requests/index.d.ts +3 -0
  619. package/serialization/resources/billing/client/requests/index.js +7 -1
  620. package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
  621. package/serialization/resources/billing/types/CountBillingProductsParams.js +38 -0
  622. package/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
  623. package/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
  624. package/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
  625. package/serialization/resources/billing/types/DeleteProductPriceResponse.js +35 -0
  626. package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +1 -0
  627. package/serialization/resources/billing/types/ListBillingProductsParams.js +1 -0
  628. package/serialization/resources/{companies/types/ListCompanyPlansParams.d.ts → billing/types/ListInvoicesParams.d.ts} +4 -3
  629. package/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
  630. package/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
  631. package/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
  632. package/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
  633. package/serialization/resources/{companies/types/ListCompanyPlansParams.js → billing/types/ListMetersParams.js} +3 -4
  634. package/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
  635. package/serialization/resources/billing/types/ListMetersResponse.js +36 -0
  636. package/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
  637. package/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
  638. package/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
  639. package/serialization/resources/billing/types/ListPaymentMethodsResponse.js +36 -0
  640. package/serialization/resources/billing/types/ListProductPricesParams.d.ts +1 -0
  641. package/serialization/resources/billing/types/ListProductPricesParams.js +1 -0
  642. package/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
  643. package/serialization/resources/billing/types/UpsertBillingMeterResponse.js +35 -0
  644. package/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
  645. package/serialization/resources/billing/types/UpsertInvoiceResponse.js +35 -0
  646. package/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
  647. package/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +35 -0
  648. package/serialization/resources/billing/types/index.d.ts +12 -0
  649. package/serialization/resources/billing/types/index.js +12 -0
  650. package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  651. package/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
  652. package/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  653. package/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
  654. package/serialization/resources/companies/types/index.d.ts +0 -2
  655. package/serialization/resources/companies/types/index.js +0 -2
  656. package/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
  657. package/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
  658. package/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
  659. package/serialization/resources/components/types/PreviewComponentDataResponse.js +36 -0
  660. package/serialization/resources/components/types/index.d.ts +2 -1
  661. package/serialization/resources/components/types/index.js +2 -1
  662. package/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  663. package/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
  664. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  665. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  666. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  667. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  668. package/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  669. package/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
  670. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  671. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  672. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  673. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  674. package/serialization/resources/index.d.ts +3 -0
  675. package/serialization/resources/index.js +4 -1
  676. package/serialization/resources/plangroups/client/index.d.ts +1 -0
  677. package/serialization/resources/plangroups/client/index.js +17 -0
  678. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +14 -0
  679. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +35 -0
  680. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +14 -0
  681. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +35 -0
  682. package/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
  683. package/serialization/resources/plangroups/client/requests/index.js +7 -0
  684. package/serialization/resources/plangroups/index.d.ts +2 -0
  685. package/serialization/resources/plangroups/index.js +18 -0
  686. package/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
  687. package/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
  688. package/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
  689. package/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
  690. package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
  691. package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
  692. package/serialization/resources/plangroups/types/index.d.ts +3 -0
  693. package/serialization/resources/plangroups/types/index.js +19 -0
  694. package/serialization/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -1
  695. package/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +0 -1
  696. package/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -1
  697. package/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +0 -1
  698. package/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  699. package/serialization/resources/plans/types/CountPlansParams.js +2 -0
  700. package/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  701. package/serialization/resources/plans/types/ListPlansParams.js +2 -0
  702. package/serialization/types/BillingCustomerSubscription.d.ts +1 -0
  703. package/serialization/types/BillingCustomerSubscription.js +1 -0
  704. package/serialization/types/BillingMeterResponseData.d.ts +16 -0
  705. package/{dist/serialization/types/CompanyPlanResponseData.js → serialization/types/BillingMeterResponseData.js} +6 -7
  706. package/serialization/types/BillingPriceResponseData.d.ts +1 -0
  707. package/serialization/types/BillingPriceResponseData.js +1 -0
  708. package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +24 -0
  709. package/serialization/types/BillingProductForSubscriptionResponseData.js +45 -0
  710. package/serialization/types/BillingProductPricing.d.ts +3 -0
  711. package/serialization/types/BillingProductPricing.js +3 -0
  712. package/serialization/types/BillingSubscriptionResponseData.d.ts +4 -1
  713. package/serialization/types/BillingSubscriptionResponseData.js +4 -1
  714. package/serialization/types/CheckFlagRequestBody.d.ts +2 -2
  715. package/serialization/types/CheckFlagRequestBody.js +2 -2
  716. package/serialization/types/CompanyDetailResponseData.d.ts +7 -4
  717. package/serialization/types/CompanyDetailResponseData.js +7 -4
  718. package/serialization/types/CompanyPlanDetailResponseData.d.ts +32 -0
  719. package/serialization/types/CompanyPlanDetailResponseData.js +53 -0
  720. package/serialization/types/CompanyPlanWithBillingSubView.d.ts +18 -0
  721. package/serialization/types/CompanyPlanWithBillingSubView.js +39 -0
  722. package/serialization/types/CompanySubscriptionResponseData.d.ts +9 -2
  723. package/serialization/types/CompanySubscriptionResponseData.js +9 -2
  724. package/serialization/types/ComponentHydrateResponseData.d.ts +9 -0
  725. package/serialization/types/ComponentHydrateResponseData.js +9 -0
  726. package/serialization/types/ComponentPreviewResponseData.d.ts +27 -0
  727. package/serialization/types/ComponentPreviewResponseData.js +48 -0
  728. package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
  729. package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
  730. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  731. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  732. package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
  733. package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
  734. package/serialization/types/CreateReqCommonMetricPeriod.d.ts +1 -1
  735. package/serialization/types/CreateReqCommonMetricPeriod.js +1 -1
  736. package/serialization/types/EventBodyFlagCheck.d.ts +2 -2
  737. package/serialization/types/EventBodyFlagCheck.js +2 -2
  738. package/serialization/types/GenericPreviewObject.d.ts +15 -0
  739. package/serialization/types/GenericPreviewObject.js +36 -0
  740. package/serialization/types/InvoiceRequestBody.d.ts +22 -0
  741. package/serialization/types/InvoiceRequestBody.js +43 -0
  742. package/serialization/types/InvoiceResponseData.d.ts +28 -0
  743. package/serialization/types/InvoiceResponseData.js +49 -0
  744. package/serialization/types/MeterRequestBody.d.ts +14 -0
  745. package/serialization/types/MeterRequestBody.js +35 -0
  746. package/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
  747. package/serialization/types/PaymentMethodRequestBody.js +44 -0
  748. package/serialization/types/PaymentMethodResponseData.d.ts +29 -0
  749. package/serialization/types/PaymentMethodResponseData.js +50 -0
  750. package/serialization/types/PlanDetailResponseData.d.ts +5 -1
  751. package/serialization/types/PlanDetailResponseData.js +5 -1
  752. package/serialization/types/PlanGroupDetailResponseData.d.ts +16 -0
  753. package/serialization/types/PlanGroupDetailResponseData.js +37 -0
  754. package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +30 -0
  755. package/serialization/types/PlanGroupPlanDetailResponseData.js +51 -0
  756. package/serialization/types/PlanGroupResponseData.d.ts +15 -0
  757. package/serialization/types/PlanGroupResponseData.js +36 -0
  758. package/serialization/types/PlanResponseData.d.ts +1 -1
  759. package/serialization/types/PlanResponseData.js +1 -1
  760. package/serialization/types/StripeEmbedInfo.d.ts +13 -0
  761. package/serialization/types/StripeEmbedInfo.js +34 -0
  762. package/serialization/types/UpdateReqCommonMetricPeriod.d.ts +1 -1
  763. package/serialization/types/UpdateReqCommonMetricPeriod.js +1 -1
  764. package/serialization/types/index.d.ts +15 -1
  765. package/serialization/types/index.js +15 -1
  766. package/wrapper.js +20 -15
  767. package/api/types/CompanyPlanResponseData.d.ts +0 -11
  768. package/dist/api/types/CompanyPlanResponseData.d.ts +0 -11
  769. package/dist/serialization/resources/companies/types/ListCompanyPlansResponse.d.ts +0 -15
  770. package/dist/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
  771. package/dist/serialization/types/CompanyPlanResponseData.d.ts +0 -17
  772. package/serialization/resources/companies/types/ListCompanyPlansResponse.d.ts +0 -15
  773. package/serialization/resources/companies/types/ListCompanyPlansResponse.js +0 -36
  774. package/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
  775. package/serialization/types/CompanyPlanResponseData.d.ts +0 -17
  776. /package/api/resources/{companies/client/requests/ListCompanyPlansRequest.js → billing/client/requests/CountBillingProductsRequest.js} +0 -0
  777. /package/api/resources/{companies/types/ListCompanyPlansParams.js → billing/client/requests/CreateInvoiceRequestBody.js} +0 -0
  778. /package/api/resources/{companies/types/ListCompanyPlansResponse.js → billing/client/requests/CreateMeterRequestBody.js} +0 -0
  779. /package/api/resources/{components/types/HydrateComponentResponse.js → billing/client/requests/CreatePaymentMethodRequestBody.js} +0 -0
  780. /package/api/{types/CompanyPlanResponseData.js → resources/billing/client/requests/ListInvoicesRequest.js} +0 -0
  781. /package/{dist/api/resources/companies/client/requests/ListCompanyPlansRequest.js → api/resources/billing/client/requests/ListMetersRequest.js} +0 -0
  782. /package/{dist/api/resources/companies/types/ListCompanyPlansParams.js → api/resources/billing/client/requests/ListPaymentMethodsRequest.js} +0 -0
  783. /package/{dist/api/resources/companies/types/ListCompanyPlansResponse.js → api/resources/billing/types/CountBillingProductsParams.js} +0 -0
  784. /package/{dist/api/resources/components/types/HydrateComponentResponse.js → api/resources/billing/types/CountBillingProductsResponse.js} +0 -0
  785. /package/{dist/api/types/CompanyPlanResponseData.js → api/resources/billing/types/DeleteProductPriceResponse.js} +0 -0
@@ -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
  */
@@ -6,11 +6,20 @@
6
6
  * {}
7
7
  */
8
8
  export interface ListUsersRequest {
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,7 +5,7 @@ import * as Schematic from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * traitType: Schematic.UpdateEntityTraitDefinitionRequestBodyTraitType.Boolean
8
+ * traitType: "boolean"
9
9
  * }
10
10
  */
11
11
  export interface UpdateEntityTraitDefinitionRequestBody {
@@ -4,7 +4,6 @@ export { type LookupCompanyRequest } from "./LookupCompanyRequest";
4
4
  export { type GetActiveDealsRequest } from "./GetActiveDealsRequest";
5
5
  export { type ListCompanyMembershipsRequest } from "./ListCompanyMembershipsRequest";
6
6
  export { type GetOrCreateCompanyMembershipRequestBody } from "./GetOrCreateCompanyMembershipRequestBody";
7
- export { type ListCompanyPlansRequest } from "./ListCompanyPlansRequest";
8
7
  export { type GetActiveCompanySubscriptionRequest } from "./GetActiveCompanySubscriptionRequest";
9
8
  export { type ListEntityKeyDefinitionsRequest } from "./ListEntityKeyDefinitionsRequest";
10
9
  export { type CountEntityKeyDefinitionsRequest } from "./CountEntityKeyDefinitionsRequest";
@@ -5,14 +5,18 @@
5
5
  * Input parameters
6
6
  */
7
7
  export interface CountCompaniesParams {
8
+ /** Filter companies by multiple company IDs (starts with comp\_) */
8
9
  ids?: string[];
9
10
  /** Page limit (default 100) */
10
11
  limit?: number;
11
12
  /** Page offset (default 0) */
12
13
  offset?: number;
14
+ /** Filter companies by plan ID (starts with plan\_) */
13
15
  planId?: string;
14
- /** Search filter */
16
+ /** Search for companies by name, keys or string traits */
15
17
  q?: string;
16
18
  /** Filter out companies that already have a company override for the specified feature ID */
17
19
  withoutFeatureOverrideFor?: string;
20
+ /** Filter out companies that have a plan */
21
+ withoutPlan?: boolean;
18
22
  }
@@ -5,13 +5,16 @@
5
5
  * Input parameters
6
6
  */
7
7
  export interface CountUsersParams {
8
+ /** Filter users by company ID (starts with comp\_) */
8
9
  companyId?: string;
10
+ /** Filter users by multiple user IDs (starts with user\_) */
9
11
  ids?: string[];
10
12
  /** Page limit (default 100) */
11
13
  limit?: number;
12
14
  /** Page offset (default 0) */
13
15
  offset?: number;
16
+ /** Filter users by plan ID (starts with plan\_) */
14
17
  planId?: string;
15
- /** Search filter */
18
+ /** Search for users by name, keys or string traits */
16
19
  q?: string;
17
20
  }
@@ -5,14 +5,18 @@
5
5
  * Input parameters
6
6
  */
7
7
  export interface ListCompaniesParams {
8
+ /** Filter companies by multiple company IDs (starts with comp\_) */
8
9
  ids?: string[];
9
10
  /** Page limit (default 100) */
10
11
  limit?: number;
11
12
  /** Page offset (default 0) */
12
13
  offset?: number;
14
+ /** Filter companies by plan ID (starts with plan\_) */
13
15
  planId?: string;
14
- /** Search filter */
16
+ /** Search for companies by name, keys or string traits */
15
17
  q?: string;
16
18
  /** Filter out companies that already have a company override for the specified feature ID */
17
19
  withoutFeatureOverrideFor?: string;
20
+ /** Filter out companies that have a plan */
21
+ withoutPlan?: boolean;
18
22
  }
@@ -5,13 +5,16 @@
5
5
  * Input parameters
6
6
  */
7
7
  export interface ListUsersParams {
8
+ /** Filter users by company ID (starts with comp\_) */
8
9
  companyId?: string;
10
+ /** Filter users by multiple user IDs (starts with user\_) */
9
11
  ids?: string[];
10
12
  /** Page limit (default 100) */
11
13
  limit?: number;
12
14
  /** Page offset (default 0) */
13
15
  offset?: number;
16
+ /** Filter users by plan ID (starts with plan\_) */
14
17
  planId?: string;
15
- /** Search filter */
18
+ /** Search for users by name, keys or string traits */
16
19
  q?: string;
17
20
  }
@@ -15,8 +15,6 @@ export * from "./ListCompanyMembershipsParams";
15
15
  export * from "./ListCompanyMembershipsResponse";
16
16
  export * from "./GetOrCreateCompanyMembershipResponse";
17
17
  export * from "./DeleteCompanyMembershipResponse";
18
- export * from "./ListCompanyPlansParams";
19
- export * from "./ListCompanyPlansResponse";
20
18
  export * from "./GetActiveCompanySubscriptionParams";
21
19
  export * from "./GetActiveCompanySubscriptionResponse";
22
20
  export * from "./UpsertCompanyTraitResponse";
@@ -31,8 +31,6 @@ __exportStar(require("./ListCompanyMembershipsParams"), exports);
31
31
  __exportStar(require("./ListCompanyMembershipsResponse"), exports);
32
32
  __exportStar(require("./GetOrCreateCompanyMembershipResponse"), exports);
33
33
  __exportStar(require("./DeleteCompanyMembershipResponse"), exports);
34
- __exportStar(require("./ListCompanyPlansParams"), exports);
35
- __exportStar(require("./ListCompanyPlansResponse"), exports);
36
34
  __exportStar(require("./GetActiveCompanySubscriptionParams"), exports);
37
35
  __exportStar(require("./GetActiveCompanySubscriptionResponse"), exports);
38
36
  __exportStar(require("./UpsertCompanyTraitResponse"), exports);
@@ -46,7 +46,7 @@ export declare class Components {
46
46
  *
47
47
  * @example
48
48
  * await client.components.createComponent({
49
- * entityType: Schematic.CreateComponentRequestBodyEntityType.Entitlement,
49
+ * entityType: "entitlement",
50
50
  * name: "name"
51
51
  * })
52
52
  */
@@ -93,31 +93,31 @@ export declare class Components {
93
93
  */
94
94
  deleteComponent(componentId: string, requestOptions?: Components.RequestOptions): Promise<Schematic.DeleteComponentResponse>;
95
95
  /**
96
- * @param {string} componentId - component_id
96
+ * @param {Schematic.CountComponentsRequest} request
97
97
  * @param {Components.RequestOptions} requestOptions - Request-specific configuration.
98
98
  *
99
+ * @throws {@link Schematic.BadRequestError}
99
100
  * @throws {@link Schematic.UnauthorizedError}
100
101
  * @throws {@link Schematic.ForbiddenError}
101
- * @throws {@link Schematic.NotFoundError}
102
102
  * @throws {@link Schematic.InternalServerError}
103
103
  *
104
104
  * @example
105
- * await client.components.hydrateComponent("component_id")
105
+ * await client.components.countComponents()
106
106
  */
107
- hydrateComponent(componentId: string, requestOptions?: Components.RequestOptions): Promise<Schematic.HydrateComponentResponse>;
107
+ countComponents(request?: Schematic.CountComponentsRequest, requestOptions?: Components.RequestOptions): Promise<Schematic.CountComponentsResponse>;
108
108
  /**
109
- * @param {Schematic.CountComponentsRequest} request
109
+ * @param {Schematic.PreviewComponentDataRequest} request
110
110
  * @param {Components.RequestOptions} requestOptions - Request-specific configuration.
111
111
  *
112
- * @throws {@link Schematic.BadRequestError}
113
112
  * @throws {@link Schematic.UnauthorizedError}
114
113
  * @throws {@link Schematic.ForbiddenError}
114
+ * @throws {@link Schematic.NotFoundError}
115
115
  * @throws {@link Schematic.InternalServerError}
116
116
  *
117
117
  * @example
118
- * await client.components.countComponents()
118
+ * await client.components.previewComponentData()
119
119
  */
120
- countComponents(request?: Schematic.CountComponentsRequest, requestOptions?: Components.RequestOptions): Promise<Schematic.CountComponentsResponse>;
120
+ previewComponentData(request?: Schematic.PreviewComponentDataRequest, requestOptions?: Components.RequestOptions): Promise<Schematic.PreviewComponentDataResponse>;
121
121
  protected _getCustomAuthorizationHeaders(): Promise<{
122
122
  "X-Schematic-Api-Key": string;
123
123
  }>;
@@ -78,7 +78,7 @@ class Components {
78
78
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
79
79
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "components"),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -162,7 +162,7 @@ class Components {
162
162
  *
163
163
  * @example
164
164
  * await client.components.createComponent({
165
- * entityType: Schematic.CreateComponentRequestBodyEntityType.Entitlement,
165
+ * entityType: "entitlement",
166
166
  * name: "name"
167
167
  * })
168
168
  */
@@ -172,7 +172,7 @@ class Components {
172
172
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
173
173
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "components"),
174
174
  method: "POST",
175
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
175
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
176
176
  contentType: "application/json",
177
177
  requestType: "json",
178
178
  body: serializers.CreateComponentRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -263,7 +263,7 @@ class Components {
263
263
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
264
264
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `components/${encodeURIComponent(componentId)}`),
265
265
  method: "GET",
266
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
266
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
267
267
  contentType: "application/json",
268
268
  requestType: "json",
269
269
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -355,7 +355,7 @@ class Components {
355
355
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
356
356
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `components/${encodeURIComponent(componentId)}`),
357
357
  method: "PUT",
358
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
358
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
359
359
  contentType: "application/json",
360
360
  requestType: "json",
361
361
  body: serializers.UpdateComponentRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -454,7 +454,7 @@ class Components {
454
454
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
455
455
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `components/${encodeURIComponent(componentId)}`),
456
456
  method: "DELETE",
457
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
457
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
458
458
  contentType: "application/json",
459
459
  requestType: "json",
460
460
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -527,32 +527,44 @@ class Components {
527
527
  });
528
528
  }
529
529
  /**
530
- * @param {string} componentId - component_id
530
+ * @param {Schematic.CountComponentsRequest} request
531
531
  * @param {Components.RequestOptions} requestOptions - Request-specific configuration.
532
532
  *
533
+ * @throws {@link Schematic.BadRequestError}
533
534
  * @throws {@link Schematic.UnauthorizedError}
534
535
  * @throws {@link Schematic.ForbiddenError}
535
- * @throws {@link Schematic.NotFoundError}
536
536
  * @throws {@link Schematic.InternalServerError}
537
537
  *
538
538
  * @example
539
- * await client.components.hydrateComponent("component_id")
539
+ * await client.components.countComponents()
540
540
  */
541
- hydrateComponent(componentId, requestOptions) {
541
+ countComponents(request = {}, requestOptions) {
542
542
  var _a, _b;
543
543
  return __awaiter(this, void 0, void 0, function* () {
544
+ const { q, limit, offset } = request;
545
+ const _queryParams = {};
546
+ if (q != null) {
547
+ _queryParams["q"] = q;
548
+ }
549
+ if (limit != null) {
550
+ _queryParams["limit"] = limit.toString();
551
+ }
552
+ if (offset != null) {
553
+ _queryParams["offset"] = offset.toString();
554
+ }
544
555
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
545
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `components/${encodeURIComponent(componentId)}/hydrate`),
556
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "components/count"),
546
557
  method: "GET",
547
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
558
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
548
559
  contentType: "application/json",
560
+ queryParameters: _queryParams,
549
561
  requestType: "json",
550
562
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
551
563
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
552
564
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
553
565
  });
554
566
  if (_response.ok) {
555
- return serializers.HydrateComponentResponse.parseOrThrow(_response.body, {
567
+ return serializers.CountComponentsResponse.parseOrThrow(_response.body, {
556
568
  unrecognizedObjectKeys: "passthrough",
557
569
  allowUnrecognizedUnionMembers: true,
558
570
  allowUnrecognizedEnumValues: true,
@@ -562,24 +574,24 @@ class Components {
562
574
  }
563
575
  if (_response.error.reason === "status-code") {
564
576
  switch (_response.error.statusCode) {
565
- case 401:
566
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
577
+ case 400:
578
+ throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
567
579
  unrecognizedObjectKeys: "passthrough",
568
580
  allowUnrecognizedUnionMembers: true,
569
581
  allowUnrecognizedEnumValues: true,
570
582
  skipValidation: true,
571
583
  breadcrumbsPrefix: ["response"],
572
584
  }));
573
- case 403:
574
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
585
+ case 401:
586
+ throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
575
587
  unrecognizedObjectKeys: "passthrough",
576
588
  allowUnrecognizedUnionMembers: true,
577
589
  allowUnrecognizedEnumValues: true,
578
590
  skipValidation: true,
579
591
  breadcrumbsPrefix: ["response"],
580
592
  }));
581
- case 404:
582
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
593
+ case 403:
594
+ throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
583
595
  unrecognizedObjectKeys: "passthrough",
584
596
  allowUnrecognizedUnionMembers: true,
585
597
  allowUnrecognizedEnumValues: true,
@@ -617,35 +629,32 @@ class Components {
617
629
  });
618
630
  }
619
631
  /**
620
- * @param {Schematic.CountComponentsRequest} request
632
+ * @param {Schematic.PreviewComponentDataRequest} request
621
633
  * @param {Components.RequestOptions} requestOptions - Request-specific configuration.
622
634
  *
623
- * @throws {@link Schematic.BadRequestError}
624
635
  * @throws {@link Schematic.UnauthorizedError}
625
636
  * @throws {@link Schematic.ForbiddenError}
637
+ * @throws {@link Schematic.NotFoundError}
626
638
  * @throws {@link Schematic.InternalServerError}
627
639
  *
628
640
  * @example
629
- * await client.components.countComponents()
641
+ * await client.components.previewComponentData()
630
642
  */
631
- countComponents(request = {}, requestOptions) {
643
+ previewComponentData(request = {}, requestOptions) {
632
644
  var _a, _b;
633
645
  return __awaiter(this, void 0, void 0, function* () {
634
- const { q, limit, offset } = request;
646
+ const { companyId, componentId } = request;
635
647
  const _queryParams = {};
636
- if (q != null) {
637
- _queryParams["q"] = q;
648
+ if (companyId != null) {
649
+ _queryParams["company_id"] = companyId;
638
650
  }
639
- if (limit != null) {
640
- _queryParams["limit"] = limit.toString();
641
- }
642
- if (offset != null) {
643
- _queryParams["offset"] = offset.toString();
651
+ if (componentId != null) {
652
+ _queryParams["component_id"] = componentId;
644
653
  }
645
654
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
646
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "components/count"),
655
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "components/preview-data"),
647
656
  method: "GET",
648
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
657
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
649
658
  contentType: "application/json",
650
659
  queryParameters: _queryParams,
651
660
  requestType: "json",
@@ -654,7 +663,7 @@ class Components {
654
663
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
655
664
  });
656
665
  if (_response.ok) {
657
- return serializers.CountComponentsResponse.parseOrThrow(_response.body, {
666
+ return serializers.PreviewComponentDataResponse.parseOrThrow(_response.body, {
658
667
  unrecognizedObjectKeys: "passthrough",
659
668
  allowUnrecognizedUnionMembers: true,
660
669
  allowUnrecognizedEnumValues: true,
@@ -664,24 +673,24 @@ class Components {
664
673
  }
665
674
  if (_response.error.reason === "status-code") {
666
675
  switch (_response.error.statusCode) {
667
- case 400:
668
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
676
+ case 401:
677
+ throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
669
678
  unrecognizedObjectKeys: "passthrough",
670
679
  allowUnrecognizedUnionMembers: true,
671
680
  allowUnrecognizedEnumValues: true,
672
681
  skipValidation: true,
673
682
  breadcrumbsPrefix: ["response"],
674
683
  }));
675
- case 401:
676
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
684
+ case 403:
685
+ throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
677
686
  unrecognizedObjectKeys: "passthrough",
678
687
  allowUnrecognizedUnionMembers: true,
679
688
  allowUnrecognizedEnumValues: true,
680
689
  skipValidation: true,
681
690
  breadcrumbsPrefix: ["response"],
682
691
  }));
683
- case 403:
684
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
692
+ case 404:
693
+ throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
685
694
  unrecognizedObjectKeys: "passthrough",
686
695
  allowUnrecognizedUnionMembers: true,
687
696
  allowUnrecognizedEnumValues: true,
@@ -5,7 +5,7 @@ import * as Schematic from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * entityType: Schematic.CreateComponentRequestBodyEntityType.Entitlement,
8
+ * entityType: "entitlement",
9
9
  * name: "name"
10
10
  * }
11
11
  */
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface PreviewComponentDataRequest {
9
+ companyId?: string;
10
+ componentId?: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,3 +2,4 @@ export { type ListComponentsRequest } from "./ListComponentsRequest";
2
2
  export { type CreateComponentRequestBody } from "./CreateComponentRequestBody";
3
3
  export { type UpdateComponentRequestBody } from "./UpdateComponentRequestBody";
4
4
  export { type CountComponentsRequest } from "./CountComponentsRequest";
5
+ export { type PreviewComponentDataRequest } from "./PreviewComponentDataRequest";
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Input parameters
6
+ */
7
+ export interface PreviewComponentDataParams {
8
+ companyId?: string;
9
+ componentId?: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Schematic from "../../../index";
5
+ export interface PreviewComponentDataResponse {
6
+ data: Schematic.ComponentPreviewResponseData;
7
+ /** Input parameters */
8
+ params: Schematic.PreviewComponentDataParams;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,6 +7,7 @@ export * from "./UpdateComponentRequestBodyEntityType";
7
7
  export * from "./UpdateComponentRequestBodyState";
8
8
  export * from "./UpdateComponentResponse";
9
9
  export * from "./DeleteComponentResponse";
10
- export * from "./HydrateComponentResponse";
11
10
  export * from "./CountComponentsParams";
12
11
  export * from "./CountComponentsResponse";
12
+ export * from "./PreviewComponentDataParams";
13
+ export * from "./PreviewComponentDataResponse";
@@ -23,6 +23,7 @@ __exportStar(require("./UpdateComponentRequestBodyEntityType"), exports);
23
23
  __exportStar(require("./UpdateComponentRequestBodyState"), exports);
24
24
  __exportStar(require("./UpdateComponentResponse"), exports);
25
25
  __exportStar(require("./DeleteComponentResponse"), exports);
26
- __exportStar(require("./HydrateComponentResponse"), exports);
27
26
  __exportStar(require("./CountComponentsParams"), exports);
28
27
  __exportStar(require("./CountComponentsResponse"), exports);
28
+ __exportStar(require("./PreviewComponentDataParams"), exports);
29
+ __exportStar(require("./PreviewComponentDataResponse"), exports);
@@ -70,7 +70,7 @@ class Crm {
70
70
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
71
71
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "crm/associations/deal-line-item"),
72
72
  method: "POST",
73
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
74
  contentType: "application/json",
75
75
  requestType: "json",
76
76
  body: serializers.CreateCrmDealLineItemAssociationRequestBody.jsonOrThrow(request, {
@@ -169,7 +169,7 @@ class Crm {
169
169
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
170
170
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "crm/deal-line-item/upsert"),
171
171
  method: "POST",
172
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
172
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
173
173
  contentType: "application/json",
174
174
  requestType: "json",
175
175
  body: serializers.CreateCrmLineItemRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -264,7 +264,7 @@ class Crm {
264
264
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
265
265
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "crm/deals/upsert"),
266
266
  method: "POST",
267
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
267
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
268
268
  contentType: "application/json",
269
269
  requestType: "json",
270
270
  body: serializers.CreateCrmDealRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -374,7 +374,7 @@ class Crm {
374
374
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
375
375
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "crm/products"),
376
376
  method: "GET",
377
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
377
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
378
378
  contentType: "application/json",
379
379
  queryParameters: _queryParams,
380
380
  requestType: "json",
@@ -474,7 +474,7 @@ class Crm {
474
474
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
475
475
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "crm/products/upsert"),
476
476
  method: "POST",
477
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
477
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
478
478
  contentType: "application/json",
479
479
  requestType: "json",
480
480
  body: serializers.CreateCrmProductRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -48,7 +48,7 @@ export declare class Entitlements {
48
48
  * await client.entitlements.createCompanyOverride({
49
49
  * companyId: "company_id",
50
50
  * featureId: "feature_id",
51
- * valueType: Schematic.CreateCompanyOverrideRequestBodyValueType.Boolean
51
+ * valueType: "boolean"
52
52
  * })
53
53
  */
54
54
  createCompanyOverride(request: Schematic.CreateCompanyOverrideRequestBody, requestOptions?: Entitlements.RequestOptions): Promise<Schematic.CreateCompanyOverrideResponse>;
@@ -78,7 +78,7 @@ export declare class Entitlements {
78
78
  *
79
79
  * @example
80
80
  * await client.entitlements.updateCompanyOverride("company_override_id", {
81
- * valueType: Schematic.UpdateCompanyOverrideRequestBodyValueType.Boolean
81
+ * valueType: "boolean"
82
82
  * })
83
83
  */
84
84
  updateCompanyOverride(companyOverrideId: string, request: Schematic.UpdateCompanyOverrideRequestBody, requestOptions?: Entitlements.RequestOptions): Promise<Schematic.UpdateCompanyOverrideResponse>;
@@ -220,7 +220,7 @@ export declare class Entitlements {
220
220
  * await client.entitlements.createPlanEntitlement({
221
221
  * featureId: "feature_id",
222
222
  * planId: "plan_id",
223
- * valueType: Schematic.CreatePlanEntitlementRequestBodyValueType.Boolean
223
+ * valueType: "boolean"
224
224
  * })
225
225
  */
226
226
  createPlanEntitlement(request: Schematic.CreatePlanEntitlementRequestBody, requestOptions?: Entitlements.RequestOptions): Promise<Schematic.CreatePlanEntitlementResponse>;
@@ -250,7 +250,7 @@ export declare class Entitlements {
250
250
  *
251
251
  * @example
252
252
  * await client.entitlements.updatePlanEntitlement("plan_entitlement_id", {
253
- * valueType: Schematic.UpdatePlanEntitlementRequestBodyValueType.Boolean
253
+ * valueType: "boolean"
254
254
  * })
255
255
  */
256
256
  updatePlanEntitlement(planEntitlementId: string, request: Schematic.UpdatePlanEntitlementRequestBody, requestOptions?: Entitlements.RequestOptions): Promise<Schematic.UpdatePlanEntitlementResponse>;