@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
package/reference.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # Reference
2
2
 
3
+ <details><summary><code>client.<a href="/src/Client.ts">getCompanyPlans</a>() -> void</code></summary>
4
+ <dl>
5
+ <dd>
6
+
7
+ #### 🔌 Usage
8
+
9
+ <dl>
10
+ <dd>
11
+
12
+ <dl>
13
+ <dd>
14
+
15
+ ```typescript
16
+ await client.getCompanyPlans();
17
+ ```
18
+
19
+ </dd>
20
+ </dl>
21
+ </dd>
22
+ </dl>
23
+
24
+ #### ⚙️ Parameters
25
+
26
+ <dl>
27
+ <dd>
28
+
29
+ <dl>
30
+ <dd>
31
+
32
+ **requestOptions:** `SchematicClient.RequestOptions`
33
+
34
+ </dd>
35
+ </dl>
36
+ </dd>
37
+ </dl>
38
+
39
+ </dd>
40
+ </dl>
41
+ </details>
42
+
43
+ ##
44
+
3
45
  ## accounts
4
46
 
5
47
  <details><summary><code>client.accounts.<a href="/src/api/resources/accounts/client/Client.ts">listApiKeys</a>({ ...params }) -> Schematic.ListApiKeysResponse</code></summary>
@@ -510,7 +552,7 @@ await client.accounts.listEnvironments();
510
552
 
511
553
  ```typescript
512
554
  await client.accounts.createEnvironment({
513
- environmentType: Schematic.CreateEnvironmentRequestBodyEnvironmentType.Development,
555
+ environmentType: "development",
514
556
  name: "name",
515
557
  });
516
558
  ```
@@ -719,8 +761,8 @@ await client.features.countAudienceCompanies({
719
761
  {
720
762
  conditions: [
721
763
  {
722
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
723
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
764
+ conditionType: "company",
765
+ operator: "eq",
724
766
  resourceIds: ["resource_ids"],
725
767
  },
726
768
  ],
@@ -728,8 +770,8 @@ await client.features.countAudienceCompanies({
728
770
  ],
729
771
  conditions: [
730
772
  {
731
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
732
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
773
+ conditionType: "company",
774
+ operator: "eq",
733
775
  resourceIds: ["resource_ids"],
734
776
  },
735
777
  ],
@@ -786,8 +828,8 @@ await client.features.countAudienceUsers({
786
828
  {
787
829
  conditions: [
788
830
  {
789
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
790
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
831
+ conditionType: "company",
832
+ operator: "eq",
791
833
  resourceIds: ["resource_ids"],
792
834
  },
793
835
  ],
@@ -795,8 +837,8 @@ await client.features.countAudienceUsers({
795
837
  ],
796
838
  conditions: [
797
839
  {
798
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
799
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
840
+ conditionType: "company",
841
+ operator: "eq",
800
842
  resourceIds: ["resource_ids"],
801
843
  },
802
844
  ],
@@ -853,8 +895,8 @@ await client.features.listAudienceCompanies({
853
895
  {
854
896
  conditions: [
855
897
  {
856
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
857
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
898
+ conditionType: "company",
899
+ operator: "eq",
858
900
  resourceIds: ["resource_ids"],
859
901
  },
860
902
  ],
@@ -862,8 +904,8 @@ await client.features.listAudienceCompanies({
862
904
  ],
863
905
  conditions: [
864
906
  {
865
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
866
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
907
+ conditionType: "company",
908
+ operator: "eq",
867
909
  resourceIds: ["resource_ids"],
868
910
  },
869
911
  ],
@@ -920,8 +962,8 @@ await client.features.listAudienceUsers({
920
962
  {
921
963
  conditions: [
922
964
  {
923
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
924
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
965
+ conditionType: "company",
966
+ operator: "eq",
925
967
  resourceIds: ["resource_ids"],
926
968
  },
927
969
  ],
@@ -929,8 +971,8 @@ await client.features.listAudienceUsers({
929
971
  ],
930
972
  conditions: [
931
973
  {
932
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
933
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
974
+ conditionType: "company",
975
+ operator: "eq",
934
976
  resourceIds: ["resource_ids"],
935
977
  },
936
978
  ],
@@ -1032,7 +1074,7 @@ await client.features.listFeatures();
1032
1074
  ```typescript
1033
1075
  await client.features.createFeature({
1034
1076
  description: "description",
1035
- featureType: Schematic.CreateFeatureRequestBodyFeatureType.Boolean,
1077
+ featureType: "boolean",
1036
1078
  name: "name",
1037
1079
  });
1038
1080
  ```
@@ -1549,8 +1591,8 @@ await client.features.updateFlagRules("flag_id", {
1549
1591
  {
1550
1592
  conditions: [
1551
1593
  {
1552
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
1553
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
1594
+ conditionType: "company",
1595
+ operator: "eq",
1554
1596
  resourceIds: ["resource_ids"],
1555
1597
  },
1556
1598
  ],
@@ -1558,8 +1600,8 @@ await client.features.updateFlagRules("flag_id", {
1558
1600
  ],
1559
1601
  conditions: [
1560
1602
  {
1561
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
1562
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
1603
+ conditionType: "company",
1604
+ operator: "eq",
1563
1605
  resourceIds: ["resource_ids"],
1564
1606
  },
1565
1607
  ],
@@ -1744,7 +1786,418 @@ await client.features.countFlags();
1744
1786
  <dl>
1745
1787
  <dd>
1746
1788
 
1747
- **request:** `Schematic.CountFlagsRequest`
1789
+ **request:** `Schematic.CountFlagsRequest`
1790
+
1791
+ </dd>
1792
+ </dl>
1793
+
1794
+ <dl>
1795
+ <dd>
1796
+
1797
+ **requestOptions:** `Features.RequestOptions`
1798
+
1799
+ </dd>
1800
+ </dl>
1801
+ </dd>
1802
+ </dl>
1803
+
1804
+ </dd>
1805
+ </dl>
1806
+ </details>
1807
+
1808
+ ## billing
1809
+
1810
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertBillingCustomer</a>({ ...params }) -> Schematic.UpsertBillingCustomerResponse</code></summary>
1811
+ <dl>
1812
+ <dd>
1813
+
1814
+ #### 🔌 Usage
1815
+
1816
+ <dl>
1817
+ <dd>
1818
+
1819
+ <dl>
1820
+ <dd>
1821
+
1822
+ ```typescript
1823
+ await client.billing.upsertBillingCustomer({
1824
+ email: "email",
1825
+ externalId: "external_id",
1826
+ failedToImport: true,
1827
+ meta: {
1828
+ key: "value",
1829
+ },
1830
+ name: "name",
1831
+ });
1832
+ ```
1833
+
1834
+ </dd>
1835
+ </dl>
1836
+ </dd>
1837
+ </dl>
1838
+
1839
+ #### ⚙️ Parameters
1840
+
1841
+ <dl>
1842
+ <dd>
1843
+
1844
+ <dl>
1845
+ <dd>
1846
+
1847
+ **request:** `Schematic.CreateBillingCustomerRequestBody`
1848
+
1849
+ </dd>
1850
+ </dl>
1851
+
1852
+ <dl>
1853
+ <dd>
1854
+
1855
+ **requestOptions:** `Billing.RequestOptions`
1856
+
1857
+ </dd>
1858
+ </dl>
1859
+ </dd>
1860
+ </dl>
1861
+
1862
+ </dd>
1863
+ </dl>
1864
+ </details>
1865
+
1866
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listCustomers</a>({ ...params }) -> Schematic.ListCustomersResponse</code></summary>
1867
+ <dl>
1868
+ <dd>
1869
+
1870
+ #### 🔌 Usage
1871
+
1872
+ <dl>
1873
+ <dd>
1874
+
1875
+ <dl>
1876
+ <dd>
1877
+
1878
+ ```typescript
1879
+ await client.billing.listCustomers();
1880
+ ```
1881
+
1882
+ </dd>
1883
+ </dl>
1884
+ </dd>
1885
+ </dl>
1886
+
1887
+ #### ⚙️ Parameters
1888
+
1889
+ <dl>
1890
+ <dd>
1891
+
1892
+ <dl>
1893
+ <dd>
1894
+
1895
+ **request:** `Schematic.ListCustomersRequest`
1896
+
1897
+ </dd>
1898
+ </dl>
1899
+
1900
+ <dl>
1901
+ <dd>
1902
+
1903
+ **requestOptions:** `Billing.RequestOptions`
1904
+
1905
+ </dd>
1906
+ </dl>
1907
+ </dd>
1908
+ </dl>
1909
+
1910
+ </dd>
1911
+ </dl>
1912
+ </details>
1913
+
1914
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">countCustomers</a>({ ...params }) -> Schematic.CountCustomersResponse</code></summary>
1915
+ <dl>
1916
+ <dd>
1917
+
1918
+ #### 🔌 Usage
1919
+
1920
+ <dl>
1921
+ <dd>
1922
+
1923
+ <dl>
1924
+ <dd>
1925
+
1926
+ ```typescript
1927
+ await client.billing.countCustomers();
1928
+ ```
1929
+
1930
+ </dd>
1931
+ </dl>
1932
+ </dd>
1933
+ </dl>
1934
+
1935
+ #### ⚙️ Parameters
1936
+
1937
+ <dl>
1938
+ <dd>
1939
+
1940
+ <dl>
1941
+ <dd>
1942
+
1943
+ **request:** `Schematic.CountCustomersRequest`
1944
+
1945
+ </dd>
1946
+ </dl>
1947
+
1948
+ <dl>
1949
+ <dd>
1950
+
1951
+ **requestOptions:** `Billing.RequestOptions`
1952
+
1953
+ </dd>
1954
+ </dl>
1955
+ </dd>
1956
+ </dl>
1957
+
1958
+ </dd>
1959
+ </dl>
1960
+ </details>
1961
+
1962
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listInvoices</a>({ ...params }) -> Schematic.ListInvoicesResponse</code></summary>
1963
+ <dl>
1964
+ <dd>
1965
+
1966
+ #### 🔌 Usage
1967
+
1968
+ <dl>
1969
+ <dd>
1970
+
1971
+ <dl>
1972
+ <dd>
1973
+
1974
+ ```typescript
1975
+ await client.billing.listInvoices({
1976
+ customerExternalId: "customer_external_id",
1977
+ });
1978
+ ```
1979
+
1980
+ </dd>
1981
+ </dl>
1982
+ </dd>
1983
+ </dl>
1984
+
1985
+ #### ⚙️ Parameters
1986
+
1987
+ <dl>
1988
+ <dd>
1989
+
1990
+ <dl>
1991
+ <dd>
1992
+
1993
+ **request:** `Schematic.ListInvoicesRequest`
1994
+
1995
+ </dd>
1996
+ </dl>
1997
+
1998
+ <dl>
1999
+ <dd>
2000
+
2001
+ **requestOptions:** `Billing.RequestOptions`
2002
+
2003
+ </dd>
2004
+ </dl>
2005
+ </dd>
2006
+ </dl>
2007
+
2008
+ </dd>
2009
+ </dl>
2010
+ </details>
2011
+
2012
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertInvoice</a>({ ...params }) -> Schematic.UpsertInvoiceResponse</code></summary>
2013
+ <dl>
2014
+ <dd>
2015
+
2016
+ #### 🔌 Usage
2017
+
2018
+ <dl>
2019
+ <dd>
2020
+
2021
+ <dl>
2022
+ <dd>
2023
+
2024
+ ```typescript
2025
+ await client.billing.upsertInvoice({
2026
+ amountDue: 1,
2027
+ amountPaid: 1,
2028
+ amountRemaining: 1,
2029
+ collectionMethod: "collection_method",
2030
+ currency: "currency",
2031
+ customerExternalId: "customer_external_id",
2032
+ subtotal: 1,
2033
+ });
2034
+ ```
2035
+
2036
+ </dd>
2037
+ </dl>
2038
+ </dd>
2039
+ </dl>
2040
+
2041
+ #### ⚙️ Parameters
2042
+
2043
+ <dl>
2044
+ <dd>
2045
+
2046
+ <dl>
2047
+ <dd>
2048
+
2049
+ **request:** `Schematic.CreateInvoiceRequestBody`
2050
+
2051
+ </dd>
2052
+ </dl>
2053
+
2054
+ <dl>
2055
+ <dd>
2056
+
2057
+ **requestOptions:** `Billing.RequestOptions`
2058
+
2059
+ </dd>
2060
+ </dl>
2061
+ </dd>
2062
+ </dl>
2063
+
2064
+ </dd>
2065
+ </dl>
2066
+ </details>
2067
+
2068
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listMeters</a>({ ...params }) -> Schematic.ListMetersResponse</code></summary>
2069
+ <dl>
2070
+ <dd>
2071
+
2072
+ #### 🔌 Usage
2073
+
2074
+ <dl>
2075
+ <dd>
2076
+
2077
+ <dl>
2078
+ <dd>
2079
+
2080
+ ```typescript
2081
+ await client.billing.listMeters();
2082
+ ```
2083
+
2084
+ </dd>
2085
+ </dl>
2086
+ </dd>
2087
+ </dl>
2088
+
2089
+ #### ⚙️ Parameters
2090
+
2091
+ <dl>
2092
+ <dd>
2093
+
2094
+ <dl>
2095
+ <dd>
2096
+
2097
+ **request:** `Schematic.ListMetersRequest`
2098
+
2099
+ </dd>
2100
+ </dl>
2101
+
2102
+ <dl>
2103
+ <dd>
2104
+
2105
+ **requestOptions:** `Billing.RequestOptions`
2106
+
2107
+ </dd>
2108
+ </dl>
2109
+ </dd>
2110
+ </dl>
2111
+
2112
+ </dd>
2113
+ </dl>
2114
+ </details>
2115
+
2116
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertBillingMeter</a>({ ...params }) -> Schematic.UpsertBillingMeterResponse</code></summary>
2117
+ <dl>
2118
+ <dd>
2119
+
2120
+ #### 🔌 Usage
2121
+
2122
+ <dl>
2123
+ <dd>
2124
+
2125
+ <dl>
2126
+ <dd>
2127
+
2128
+ ```typescript
2129
+ await client.billing.upsertBillingMeter({
2130
+ displayName: "DisplayName",
2131
+ eventName: "EventName",
2132
+ eventPayloadKey: "EventPayloadKey",
2133
+ externalId: "external_id",
2134
+ });
2135
+ ```
2136
+
2137
+ </dd>
2138
+ </dl>
2139
+ </dd>
2140
+ </dl>
2141
+
2142
+ #### ⚙️ Parameters
2143
+
2144
+ <dl>
2145
+ <dd>
2146
+
2147
+ <dl>
2148
+ <dd>
2149
+
2150
+ **request:** `Schematic.CreateMeterRequestBody`
2151
+
2152
+ </dd>
2153
+ </dl>
2154
+
2155
+ <dl>
2156
+ <dd>
2157
+
2158
+ **requestOptions:** `Billing.RequestOptions`
2159
+
2160
+ </dd>
2161
+ </dl>
2162
+ </dd>
2163
+ </dl>
2164
+
2165
+ </dd>
2166
+ </dl>
2167
+ </details>
2168
+
2169
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listPaymentMethods</a>({ ...params }) -> Schematic.ListPaymentMethodsResponse</code></summary>
2170
+ <dl>
2171
+ <dd>
2172
+
2173
+ #### 🔌 Usage
2174
+
2175
+ <dl>
2176
+ <dd>
2177
+
2178
+ <dl>
2179
+ <dd>
2180
+
2181
+ ```typescript
2182
+ await client.billing.listPaymentMethods({
2183
+ customerExternalId: "customer_external_id",
2184
+ });
2185
+ ```
2186
+
2187
+ </dd>
2188
+ </dl>
2189
+ </dd>
2190
+ </dl>
2191
+
2192
+ #### ⚙️ Parameters
2193
+
2194
+ <dl>
2195
+ <dd>
2196
+
2197
+ <dl>
2198
+ <dd>
2199
+
2200
+ **request:** `Schematic.ListPaymentMethodsRequest`
1748
2201
 
1749
2202
  </dd>
1750
2203
  </dl>
@@ -1752,7 +2205,7 @@ await client.features.countFlags();
1752
2205
  <dl>
1753
2206
  <dd>
1754
2207
 
1755
- **requestOptions:** `Features.RequestOptions`
2208
+ **requestOptions:** `Billing.RequestOptions`
1756
2209
 
1757
2210
  </dd>
1758
2211
  </dl>
@@ -1763,9 +2216,7 @@ await client.features.countFlags();
1763
2216
  </dl>
1764
2217
  </details>
1765
2218
 
1766
- ## billing
1767
-
1768
- <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertBillingCustomer</a>({ ...params }) -> Schematic.UpsertBillingCustomerResponse</code></summary>
2219
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertPaymentMethod</a>({ ...params }) -> Schematic.UpsertPaymentMethodResponse</code></summary>
1769
2220
  <dl>
1770
2221
  <dd>
1771
2222
 
@@ -1778,14 +2229,10 @@ await client.features.countFlags();
1778
2229
  <dd>
1779
2230
 
1780
2231
  ```typescript
1781
- await client.billing.upsertBillingCustomer({
1782
- email: "email",
2232
+ await client.billing.upsertPaymentMethod({
2233
+ customerExternalId: "customer_external_id",
1783
2234
  externalId: "external_id",
1784
- failedToImport: true,
1785
- meta: {
1786
- key: "value",
1787
- },
1788
- name: "name",
2235
+ paymentMethodType: "payment_method_type",
1789
2236
  });
1790
2237
  ```
1791
2238
 
@@ -1802,7 +2249,7 @@ await client.billing.upsertBillingCustomer({
1802
2249
  <dl>
1803
2250
  <dd>
1804
2251
 
1805
- **request:** `Schematic.CreateBillingCustomerRequestBody`
2252
+ **request:** `Schematic.CreatePaymentMethodRequestBody`
1806
2253
 
1807
2254
  </dd>
1808
2255
  </dl>
@@ -1821,7 +2268,7 @@ await client.billing.upsertBillingCustomer({
1821
2268
  </dl>
1822
2269
  </details>
1823
2270
 
1824
- <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listCustomers</a>({ ...params }) -> Schematic.ListCustomersResponse</code></summary>
2271
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertBillingPrice</a>({ ...params }) -> Schematic.UpsertBillingPriceResponse</code></summary>
1825
2272
  <dl>
1826
2273
  <dd>
1827
2274
 
@@ -1834,7 +2281,13 @@ await client.billing.upsertBillingCustomer({
1834
2281
  <dd>
1835
2282
 
1836
2283
  ```typescript
1837
- await client.billing.listCustomers();
2284
+ await client.billing.upsertBillingPrice({
2285
+ currency: "currency",
2286
+ interval: "interval",
2287
+ price: 1,
2288
+ priceExternalId: "price_external_id",
2289
+ productExternalId: "product_external_id",
2290
+ });
1838
2291
  ```
1839
2292
 
1840
2293
  </dd>
@@ -1850,7 +2303,7 @@ await client.billing.listCustomers();
1850
2303
  <dl>
1851
2304
  <dd>
1852
2305
 
1853
- **request:** `Schematic.ListCustomersRequest`
2306
+ **request:** `Schematic.CreateBillingPriceRequestBody`
1854
2307
 
1855
2308
  </dd>
1856
2309
  </dl>
@@ -1869,7 +2322,7 @@ await client.billing.listCustomers();
1869
2322
  </dl>
1870
2323
  </details>
1871
2324
 
1872
- <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">countCustomers</a>({ ...params }) -> Schematic.CountCustomersResponse</code></summary>
2325
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listProductPrices</a>({ ...params }) -> Schematic.ListProductPricesResponse</code></summary>
1873
2326
  <dl>
1874
2327
  <dd>
1875
2328
 
@@ -1882,7 +2335,7 @@ await client.billing.listCustomers();
1882
2335
  <dd>
1883
2336
 
1884
2337
  ```typescript
1885
- await client.billing.countCustomers();
2338
+ await client.billing.listProductPrices();
1886
2339
  ```
1887
2340
 
1888
2341
  </dd>
@@ -1898,7 +2351,7 @@ await client.billing.countCustomers();
1898
2351
  <dl>
1899
2352
  <dd>
1900
2353
 
1901
- **request:** `Schematic.CountCustomersRequest`
2354
+ **request:** `Schematic.ListProductPricesRequest`
1902
2355
 
1903
2356
  </dd>
1904
2357
  </dl>
@@ -1917,7 +2370,7 @@ await client.billing.countCustomers();
1917
2370
  </dl>
1918
2371
  </details>
1919
2372
 
1920
- <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertBillingPrice</a>({ ...params }) -> Schematic.UpsertBillingPriceResponse</code></summary>
2373
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">deleteProductPrice</a>(billingId) -> Schematic.DeleteProductPriceResponse</code></summary>
1921
2374
  <dl>
1922
2375
  <dd>
1923
2376
 
@@ -1930,12 +2383,7 @@ await client.billing.countCustomers();
1930
2383
  <dd>
1931
2384
 
1932
2385
  ```typescript
1933
- await client.billing.upsertBillingPrice({
1934
- interval: "interval",
1935
- price: 1,
1936
- priceExternalId: "price_external_id",
1937
- productExternalId: "product_external_id",
1938
- });
2386
+ await client.billing.deleteProductPrice("billing_id");
1939
2387
  ```
1940
2388
 
1941
2389
  </dd>
@@ -1951,7 +2399,7 @@ await client.billing.upsertBillingPrice({
1951
2399
  <dl>
1952
2400
  <dd>
1953
2401
 
1954
- **request:** `Schematic.CreateBillingPriceRequestBody`
2402
+ **billingId:** `string` — billing_id
1955
2403
 
1956
2404
  </dd>
1957
2405
  </dl>
@@ -1970,7 +2418,7 @@ await client.billing.upsertBillingPrice({
1970
2418
  </dl>
1971
2419
  </details>
1972
2420
 
1973
- <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listProductPrices</a>({ ...params }) -> Schematic.ListProductPricesResponse</code></summary>
2421
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertBillingProduct</a>({ ...params }) -> Schematic.UpsertBillingProductResponse</code></summary>
1974
2422
  <dl>
1975
2423
  <dd>
1976
2424
 
@@ -1983,7 +2431,13 @@ await client.billing.upsertBillingPrice({
1983
2431
  <dd>
1984
2432
 
1985
2433
  ```typescript
1986
- await client.billing.listProductPrices();
2434
+ await client.billing.upsertBillingProduct({
2435
+ currency: "currency",
2436
+ externalId: "external_id",
2437
+ name: "name",
2438
+ price: 1.1,
2439
+ quantity: 1,
2440
+ });
1987
2441
  ```
1988
2442
 
1989
2443
  </dd>
@@ -1999,7 +2453,7 @@ await client.billing.listProductPrices();
1999
2453
  <dl>
2000
2454
  <dd>
2001
2455
 
2002
- **request:** `Schematic.ListProductPricesRequest`
2456
+ **request:** `Schematic.CreateBillingProductRequestBody`
2003
2457
 
2004
2458
  </dd>
2005
2459
  </dl>
@@ -2018,7 +2472,7 @@ await client.billing.listProductPrices();
2018
2472
  </dl>
2019
2473
  </details>
2020
2474
 
2021
- <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertBillingProduct</a>({ ...params }) -> Schematic.UpsertBillingProductResponse</code></summary>
2475
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listBillingProducts</a>({ ...params }) -> Schematic.ListBillingProductsResponse</code></summary>
2022
2476
  <dl>
2023
2477
  <dd>
2024
2478
 
@@ -2031,13 +2485,7 @@ await client.billing.listProductPrices();
2031
2485
  <dd>
2032
2486
 
2033
2487
  ```typescript
2034
- await client.billing.upsertBillingProduct({
2035
- currency: "currency",
2036
- externalId: "external_id",
2037
- name: "name",
2038
- price: 1.1,
2039
- quantity: 1,
2040
- });
2488
+ await client.billing.listBillingProducts();
2041
2489
  ```
2042
2490
 
2043
2491
  </dd>
@@ -2053,7 +2501,7 @@ await client.billing.upsertBillingProduct({
2053
2501
  <dl>
2054
2502
  <dd>
2055
2503
 
2056
- **request:** `Schematic.CreateBillingProductRequestBody`
2504
+ **request:** `Schematic.ListBillingProductsRequest`
2057
2505
 
2058
2506
  </dd>
2059
2507
  </dl>
@@ -2072,7 +2520,7 @@ await client.billing.upsertBillingProduct({
2072
2520
  </dl>
2073
2521
  </details>
2074
2522
 
2075
- <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listBillingProducts</a>({ ...params }) -> Schematic.ListBillingProductsResponse</code></summary>
2523
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">countBillingProducts</a>({ ...params }) -> Schematic.CountBillingProductsResponse</code></summary>
2076
2524
  <dl>
2077
2525
  <dd>
2078
2526
 
@@ -2085,7 +2533,7 @@ await client.billing.upsertBillingProduct({
2085
2533
  <dd>
2086
2534
 
2087
2535
  ```typescript
2088
- await client.billing.listBillingProducts();
2536
+ await client.billing.countBillingProducts();
2089
2537
  ```
2090
2538
 
2091
2539
  </dd>
@@ -2101,7 +2549,7 @@ await client.billing.listBillingProducts();
2101
2549
  <dl>
2102
2550
  <dd>
2103
2551
 
2104
- **request:** `Schematic.ListBillingProductsRequest`
2552
+ **request:** `Schematic.CountBillingProductsRequest`
2105
2553
 
2106
2554
  </dd>
2107
2555
  </dl>
@@ -2134,11 +2582,15 @@ await client.billing.listBillingProducts();
2134
2582
 
2135
2583
  ```typescript
2136
2584
  await client.billing.upsertBillingSubscription({
2585
+ currency: "currency",
2137
2586
  customerExternalId: "customer_external_id",
2138
- expiredAt: new Date("2024-01-15T09:30:00.000Z"),
2587
+ expiredAt: "2024-01-15T09:30:00Z",
2139
2588
  productExternalIds: [
2140
2589
  {
2590
+ currency: "currency",
2591
+ interval: "interval",
2141
2592
  price: 1,
2593
+ priceExternalId: "price_external_id",
2142
2594
  productExternalId: "product_external_id",
2143
2595
  },
2144
2596
  ],
@@ -2781,54 +3233,6 @@ await client.companies.deleteCompanyMembership("company_membership_id");
2781
3233
  </dl>
2782
3234
  </details>
2783
3235
 
2784
- <details><summary><code>client.companies.<a href="/src/api/resources/companies/client/Client.ts">listCompanyPlans</a>({ ...params }) -> Schematic.ListCompanyPlansResponse</code></summary>
2785
- <dl>
2786
- <dd>
2787
-
2788
- #### 🔌 Usage
2789
-
2790
- <dl>
2791
- <dd>
2792
-
2793
- <dl>
2794
- <dd>
2795
-
2796
- ```typescript
2797
- await client.companies.listCompanyPlans();
2798
- ```
2799
-
2800
- </dd>
2801
- </dl>
2802
- </dd>
2803
- </dl>
2804
-
2805
- #### ⚙️ Parameters
2806
-
2807
- <dl>
2808
- <dd>
2809
-
2810
- <dl>
2811
- <dd>
2812
-
2813
- **request:** `Schematic.ListCompanyPlansRequest`
2814
-
2815
- </dd>
2816
- </dl>
2817
-
2818
- <dl>
2819
- <dd>
2820
-
2821
- **requestOptions:** `Companies.RequestOptions`
2822
-
2823
- </dd>
2824
- </dl>
2825
- </dd>
2826
- </dl>
2827
-
2828
- </dd>
2829
- </dl>
2830
- </details>
2831
-
2832
3236
  <details><summary><code>client.companies.<a href="/src/api/resources/companies/client/Client.ts">getActiveCompanySubscription</a>({ ...params }) -> Schematic.GetActiveCompanySubscriptionResponse</code></summary>
2833
3237
  <dl>
2834
3238
  <dd>
@@ -3090,9 +3494,9 @@ await client.companies.listEntityTraitDefinitions();
3090
3494
 
3091
3495
  ```typescript
3092
3496
  await client.companies.getOrCreateEntityTraitDefinition({
3093
- entityType: Schematic.CreateEntityTraitDefinitionRequestBodyEntityType.Company,
3497
+ entityType: "company",
3094
3498
  hierarchy: ["hierarchy"],
3095
- traitType: Schematic.CreateEntityTraitDefinitionRequestBodyTraitType.Boolean,
3499
+ traitType: "boolean",
3096
3500
  });
3097
3501
  ```
3098
3502
 
@@ -3190,7 +3594,7 @@ await client.companies.getEntityTraitDefinition("entity_trait_definition_id");
3190
3594
 
3191
3595
  ```typescript
3192
3596
  await client.companies.updateEntityTraitDefinition("entity_trait_definition_id", {
3193
- traitType: Schematic.UpdateEntityTraitDefinitionRequestBodyTraitType.Boolean,
3597
+ traitType: "boolean",
3194
3598
  });
3195
3599
  ```
3196
3600
 
@@ -3859,7 +4263,7 @@ await client.entitlements.listCompanyOverrides();
3859
4263
  await client.entitlements.createCompanyOverride({
3860
4264
  companyId: "company_id",
3861
4265
  featureId: "feature_id",
3862
- valueType: Schematic.CreateCompanyOverrideRequestBodyValueType.Boolean,
4266
+ valueType: "boolean",
3863
4267
  });
3864
4268
  ```
3865
4269
 
@@ -3957,7 +4361,7 @@ await client.entitlements.getCompanyOverride("company_override_id");
3957
4361
 
3958
4362
  ```typescript
3959
4363
  await client.entitlements.updateCompanyOverride("company_override_id", {
3960
- valueType: Schematic.UpdateCompanyOverrideRequestBodyValueType.Boolean,
4364
+ valueType: "boolean",
3961
4365
  });
3962
4366
  ```
3963
4367
 
@@ -4457,7 +4861,7 @@ await client.entitlements.listPlanEntitlements();
4457
4861
  await client.entitlements.createPlanEntitlement({
4458
4862
  featureId: "feature_id",
4459
4863
  planId: "plan_id",
4460
- valueType: Schematic.CreatePlanEntitlementRequestBodyValueType.Boolean,
4864
+ valueType: "boolean",
4461
4865
  });
4462
4866
  ```
4463
4867
 
@@ -4555,7 +4959,7 @@ await client.entitlements.getPlanEntitlement("plan_entitlement_id");
4555
4959
 
4556
4960
  ```typescript
4557
4961
  await client.entitlements.updatePlanEntitlement("plan_entitlement_id", {
4558
- valueType: Schematic.UpdatePlanEntitlementRequestBodyValueType.Boolean,
4962
+ valueType: "boolean",
4559
4963
  });
4560
4964
  ```
4561
4965
 
@@ -4813,7 +5217,7 @@ await client.components.listComponents();
4813
5217
 
4814
5218
  ```typescript
4815
5219
  await client.components.createComponent({
4816
- entityType: Schematic.CreateComponentRequestBodyEntityType.Entitlement,
5220
+ entityType: "entitlement",
4817
5221
  name: "name",
4818
5222
  });
4819
5223
  ```
@@ -5002,7 +5406,7 @@ await client.components.deleteComponent("component_id");
5002
5406
  </dl>
5003
5407
  </details>
5004
5408
 
5005
- <details><summary><code>client.components.<a href="/src/api/resources/components/client/Client.ts">hydrateComponent</a>(componentId) -> Schematic.HydrateComponentResponse</code></summary>
5409
+ <details><summary><code>client.components.<a href="/src/api/resources/components/client/Client.ts">countComponents</a>({ ...params }) -> Schematic.CountComponentsResponse</code></summary>
5006
5410
  <dl>
5007
5411
  <dd>
5008
5412
 
@@ -5015,7 +5419,7 @@ await client.components.deleteComponent("component_id");
5015
5419
  <dd>
5016
5420
 
5017
5421
  ```typescript
5018
- await client.components.hydrateComponent("component_id");
5422
+ await client.components.countComponents();
5019
5423
  ```
5020
5424
 
5021
5425
  </dd>
@@ -5031,7 +5435,7 @@ await client.components.hydrateComponent("component_id");
5031
5435
  <dl>
5032
5436
  <dd>
5033
5437
 
5034
- **componentId:** `string` — component_id
5438
+ **request:** `Schematic.CountComponentsRequest`
5035
5439
 
5036
5440
  </dd>
5037
5441
  </dl>
@@ -5050,7 +5454,7 @@ await client.components.hydrateComponent("component_id");
5050
5454
  </dl>
5051
5455
  </details>
5052
5456
 
5053
- <details><summary><code>client.components.<a href="/src/api/resources/components/client/Client.ts">countComponents</a>({ ...params }) -> Schematic.CountComponentsResponse</code></summary>
5457
+ <details><summary><code>client.components.<a href="/src/api/resources/components/client/Client.ts">previewComponentData</a>({ ...params }) -> Schematic.PreviewComponentDataResponse</code></summary>
5054
5458
  <dl>
5055
5459
  <dd>
5056
5460
 
@@ -5063,7 +5467,7 @@ await client.components.hydrateComponent("component_id");
5063
5467
  <dd>
5064
5468
 
5065
5469
  ```typescript
5066
- await client.components.countComponents();
5470
+ await client.components.previewComponentData();
5067
5471
  ```
5068
5472
 
5069
5473
  </dd>
@@ -5079,7 +5483,7 @@ await client.components.countComponents();
5079
5483
  <dl>
5080
5484
  <dd>
5081
5485
 
5082
- **request:** `Schematic.CountComponentsRequest`
5486
+ **request:** `Schematic.PreviewComponentDataRequest`
5083
5487
 
5084
5488
  </dd>
5085
5489
  </dl>
@@ -5380,7 +5784,7 @@ await client.crm.upsertCrmProduct({
5380
5784
  await client.events.createEventBatch({
5381
5785
  events: [
5382
5786
  {
5383
- eventType: Schematic.CreateEventRequestBodyEventType.Identify,
5787
+ eventType: "identify",
5384
5788
  },
5385
5789
  ],
5386
5790
  });
@@ -5576,7 +5980,7 @@ await client.events.listEvents();
5576
5980
 
5577
5981
  ```typescript
5578
5982
  await client.events.createEvent({
5579
- eventType: Schematic.CreateEventRequestBodyEventType.Identify,
5983
+ eventType: "identify",
5580
5984
  });
5581
5985
  ```
5582
5986
 
@@ -5816,8 +6220,8 @@ await client.plans.updateAudience("plan_audience_id", {
5816
6220
  {
5817
6221
  conditions: [
5818
6222
  {
5819
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
5820
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
6223
+ conditionType: "company",
6224
+ operator: "eq",
5821
6225
  resourceIds: ["resource_ids"],
5822
6226
  },
5823
6227
  ],
@@ -5825,8 +6229,8 @@ await client.plans.updateAudience("plan_audience_id", {
5825
6229
  ],
5826
6230
  conditions: [
5827
6231
  {
5828
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
5829
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
6232
+ conditionType: "company",
6233
+ operator: "eq",
5830
6234
  resourceIds: ["resource_ids"],
5831
6235
  },
5832
6236
  ],
@@ -5985,7 +6389,7 @@ await client.plans.listPlans();
5985
6389
  await client.plans.createPlan({
5986
6390
  description: "description",
5987
6391
  name: "name",
5988
- planType: Schematic.CreatePlanRequestBodyPlanType.Plan,
6392
+ planType: "plan",
5989
6393
  });
5990
6394
  ```
5991
6395
 
@@ -6083,7 +6487,6 @@ await client.plans.getPlan("plan_id");
6083
6487
 
6084
6488
  ```typescript
6085
6489
  await client.plans.updatePlan("plan_id", {
6086
- audienceType: "audience_type",
6087
6490
  name: "name",
6088
6491
  });
6089
6492
  ```
@@ -6282,6 +6685,158 @@ await client.plans.countPlans();
6282
6685
  </dl>
6283
6686
  </details>
6284
6687
 
6688
+ ## plangroups
6689
+
6690
+ <details><summary><code>client.plangroups.<a href="/src/api/resources/plangroups/client/Client.ts">getPlanGroup</a>() -> Schematic.GetPlanGroupResponse</code></summary>
6691
+ <dl>
6692
+ <dd>
6693
+
6694
+ #### 🔌 Usage
6695
+
6696
+ <dl>
6697
+ <dd>
6698
+
6699
+ <dl>
6700
+ <dd>
6701
+
6702
+ ```typescript
6703
+ await client.plangroups.getPlanGroup();
6704
+ ```
6705
+
6706
+ </dd>
6707
+ </dl>
6708
+ </dd>
6709
+ </dl>
6710
+
6711
+ #### ⚙️ Parameters
6712
+
6713
+ <dl>
6714
+ <dd>
6715
+
6716
+ <dl>
6717
+ <dd>
6718
+
6719
+ **requestOptions:** `Plangroups.RequestOptions`
6720
+
6721
+ </dd>
6722
+ </dl>
6723
+ </dd>
6724
+ </dl>
6725
+
6726
+ </dd>
6727
+ </dl>
6728
+ </details>
6729
+
6730
+ <details><summary><code>client.plangroups.<a href="/src/api/resources/plangroups/client/Client.ts">createPlanGroup</a>({ ...params }) -> Schematic.CreatePlanGroupResponse</code></summary>
6731
+ <dl>
6732
+ <dd>
6733
+
6734
+ #### 🔌 Usage
6735
+
6736
+ <dl>
6737
+ <dd>
6738
+
6739
+ <dl>
6740
+ <dd>
6741
+
6742
+ ```typescript
6743
+ await client.plangroups.createPlanGroup({
6744
+ addOnIds: ["add_on_ids"],
6745
+ planIds: ["plan_ids"],
6746
+ });
6747
+ ```
6748
+
6749
+ </dd>
6750
+ </dl>
6751
+ </dd>
6752
+ </dl>
6753
+
6754
+ #### ⚙️ Parameters
6755
+
6756
+ <dl>
6757
+ <dd>
6758
+
6759
+ <dl>
6760
+ <dd>
6761
+
6762
+ **request:** `Schematic.CreatePlanGroupRequestBody`
6763
+
6764
+ </dd>
6765
+ </dl>
6766
+
6767
+ <dl>
6768
+ <dd>
6769
+
6770
+ **requestOptions:** `Plangroups.RequestOptions`
6771
+
6772
+ </dd>
6773
+ </dl>
6774
+ </dd>
6775
+ </dl>
6776
+
6777
+ </dd>
6778
+ </dl>
6779
+ </details>
6780
+
6781
+ <details><summary><code>client.plangroups.<a href="/src/api/resources/plangroups/client/Client.ts">updatePlanGroup</a>(planGroupId, { ...params }) -> Schematic.UpdatePlanGroupResponse</code></summary>
6782
+ <dl>
6783
+ <dd>
6784
+
6785
+ #### 🔌 Usage
6786
+
6787
+ <dl>
6788
+ <dd>
6789
+
6790
+ <dl>
6791
+ <dd>
6792
+
6793
+ ```typescript
6794
+ await client.plangroups.updatePlanGroup("plan_group_id", {
6795
+ addOnIds: ["add_on_ids"],
6796
+ planIds: ["plan_ids"],
6797
+ });
6798
+ ```
6799
+
6800
+ </dd>
6801
+ </dl>
6802
+ </dd>
6803
+ </dl>
6804
+
6805
+ #### ⚙️ Parameters
6806
+
6807
+ <dl>
6808
+ <dd>
6809
+
6810
+ <dl>
6811
+ <dd>
6812
+
6813
+ **planGroupId:** `string` — plan_group_id
6814
+
6815
+ </dd>
6816
+ </dl>
6817
+
6818
+ <dl>
6819
+ <dd>
6820
+
6821
+ **request:** `Schematic.UpdatePlanGroupRequestBody`
6822
+
6823
+ </dd>
6824
+ </dl>
6825
+
6826
+ <dl>
6827
+ <dd>
6828
+
6829
+ **requestOptions:** `Plangroups.RequestOptions`
6830
+
6831
+ </dd>
6832
+ </dl>
6833
+ </dd>
6834
+ </dl>
6835
+
6836
+ </dd>
6837
+ </dl>
6838
+ </details>
6839
+
6285
6840
  ## accesstokens
6286
6841
 
6287
6842
  <details><summary><code>client.accesstokens.<a href="/src/api/resources/accesstokens/client/Client.ts">issueTemporaryAccessToken</a>({ ...params }) -> Schematic.IssueTemporaryAccessTokenResponse</code></summary>
@@ -6546,7 +7101,7 @@ await client.webhooks.listWebhooks();
6546
7101
  ```typescript
6547
7102
  await client.webhooks.createWebhook({
6548
7103
  name: "name",
6549
- requestTypes: [Schematic.CreateWebhookRequestBodyRequestTypesItem.CompanyUpdated],
7104
+ requestTypes: ["company.updated"],
6550
7105
  url: "url",
6551
7106
  });
6552
7107
  ```