@schematichq/schematic-typescript-node 1.1.4 → 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 (780) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +10 -5
  3. package/api/resources/accesstokens/client/Client.js +1 -1
  4. package/api/resources/accounts/client/Client.d.ts +1 -1
  5. package/api/resources/accounts/client/Client.js +15 -15
  6. package/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
  7. package/api/resources/billing/client/Client.d.ts +100 -31
  8. package/api/resources/billing/client/Client.js +512 -71
  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/billing/client/requests/ListMetersRequest.d.ts +18 -0
  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 -3
  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/{plans/types/ListActivePlansResponse.d.ts → billing/types/ListInvoicesResponse.d.ts} +3 -3
  27. package/api/resources/billing/types/ListMetersParams.d.ts +13 -0
  28. package/{dist/api/resources/plans/types/ListActivePlansResponse.d.ts → api/resources/billing/types/ListMetersResponse.d.ts} +3 -3
  29. package/api/resources/billing/types/ListPaymentMethodsParams.d.ts +15 -0
  30. package/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +10 -0
  31. package/api/resources/billing/types/ListProductPricesParams.d.ts +2 -0
  32. package/{dist/api/resources/components/types/HydrateComponentResponse.d.ts → api/resources/billing/types/UpsertBillingMeterResponse.d.ts} +2 -2
  33. package/api/resources/billing/types/{UpdateBillingPlanGroupResponse.d.ts → UpsertInvoiceResponse.d.ts} +2 -2
  34. package/api/resources/billing/types/{CreateBillingPlanGroupResponse.d.ts → UpsertPaymentMethodResponse.d.ts} +2 -2
  35. package/api/resources/billing/types/index.d.ts +12 -4
  36. package/api/resources/billing/types/index.js +12 -4
  37. package/api/resources/companies/client/Client.d.ts +3 -3
  38. package/api/resources/companies/client/Client.js +50 -44
  39. package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
  40. package/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
  41. package/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
  42. package/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
  43. package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
  44. package/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
  45. package/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
  46. package/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
  47. package/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
  48. package/api/resources/companies/types/CountUsersParams.d.ts +4 -1
  49. package/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
  50. package/api/resources/companies/types/ListUsersParams.d.ts +4 -1
  51. package/api/resources/components/client/Client.d.ts +9 -9
  52. package/api/resources/components/client/Client.js +49 -40
  53. package/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
  54. package/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
  55. package/api/resources/components/client/requests/index.d.ts +1 -0
  56. package/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
  57. package/api/resources/{billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts → components/types/PreviewComponentDataResponse.d.ts} +3 -3
  58. package/api/resources/components/types/index.d.ts +2 -1
  59. package/api/resources/components/types/index.js +2 -1
  60. package/api/resources/crm/client/Client.js +5 -5
  61. package/api/resources/entitlements/client/Client.d.ts +4 -4
  62. package/api/resources/entitlements/client/Client.js +31 -25
  63. package/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
  64. package/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
  65. package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +18 -0
  66. package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -1
  67. package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -1
  68. package/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
  69. package/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
  70. package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +18 -0
  71. package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -1
  72. package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -1
  73. package/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
  74. package/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  75. package/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +6 -0
  76. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  77. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  78. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  79. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  80. package/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
  81. package/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  82. package/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +6 -0
  83. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  84. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  85. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  86. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  87. package/api/resources/events/client/Client.d.ts +2 -2
  88. package/api/resources/events/client/Client.js +10 -10
  89. package/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
  90. package/api/resources/features/client/Client.d.ts +21 -21
  91. package/api/resources/features/client/Client.js +40 -40
  92. package/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
  93. package/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
  94. package/api/resources/index.d.ts +3 -0
  95. package/api/resources/index.js +4 -1
  96. package/api/resources/plangroups/client/Client.d.ts +74 -0
  97. package/api/resources/plangroups/client/Client.js +346 -0
  98. package/api/resources/plangroups/client/index.d.ts +1 -0
  99. package/api/resources/plangroups/client/index.js +17 -0
  100. package/{dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +3 -1
  101. package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
  102. package/api/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +3 -1
  103. package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +5 -0
  104. package/api/resources/plangroups/client/requests/index.d.ts +2 -0
  105. package/api/resources/plangroups/client/requests/index.js +2 -0
  106. package/api/resources/plangroups/index.d.ts +2 -0
  107. package/api/resources/plangroups/index.js +18 -0
  108. package/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
  109. package/api/resources/plangroups/types/CreatePlanGroupResponse.js +5 -0
  110. package/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
  111. package/api/resources/plangroups/types/GetPlanGroupResponse.js +5 -0
  112. package/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
  113. package/api/resources/plangroups/types/UpdatePlanGroupResponse.js +5 -0
  114. package/api/resources/plangroups/types/index.d.ts +3 -0
  115. package/api/resources/plangroups/types/index.js +19 -0
  116. package/api/resources/plans/client/Client.d.ts +5 -17
  117. package/api/resources/plans/client/Client.js +35 -112
  118. package/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
  119. package/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -1
  120. package/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
  121. package/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
  122. package/api/resources/plans/types/CountPlansParams.d.ts +4 -0
  123. package/api/resources/plans/types/ListPlansParams.d.ts +4 -0
  124. package/api/resources/plans/types/index.d.ts +0 -1
  125. package/api/resources/plans/types/index.js +0 -1
  126. package/api/resources/webhooks/client/Client.d.ts +1 -1
  127. package/api/resources/webhooks/client/Client.js +18 -18
  128. package/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
  129. package/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
  130. package/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
  131. package/api/types/BillingCustomerSubscription.d.ts +1 -0
  132. package/api/types/BillingMeterResponseData.d.ts +10 -0
  133. package/api/types/BillingMeterResponseData.js +5 -0
  134. package/api/types/BillingPriceResponseData.d.ts +1 -0
  135. package/api/types/BillingProductForSubscriptionResponseData.d.ts +3 -1
  136. package/api/types/BillingProductPricing.d.ts +3 -2
  137. package/api/types/BillingSubscriptionResponseData.d.ts +4 -4
  138. package/api/types/CheckFlagRequestBody.d.ts +2 -2
  139. package/api/types/CompanyDetailResponseData.d.ts +4 -3
  140. package/api/types/CompanyPlanDetailResponseData.d.ts +23 -0
  141. package/api/types/CompanyPlanDetailResponseData.js +5 -0
  142. package/api/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +2 -1
  143. package/api/types/CompanyPlanWithBillingSubView.js +5 -0
  144. package/api/types/CompanySubscriptionResponseData.d.ts +5 -0
  145. package/api/types/ComponentHydrateResponseData.d.ts +5 -3
  146. package/api/types/ComponentPreviewResponseData.d.ts +18 -0
  147. package/api/types/ComponentPreviewResponseData.js +5 -0
  148. package/api/types/ComponentResponseData.d.ts +3 -0
  149. package/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
  150. package/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
  151. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
  152. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
  153. package/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
  154. package/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
  155. package/api/types/CreateReqCommonMetricPeriod.d.ts +2 -1
  156. package/api/types/CreateReqCommonMetricPeriod.js +1 -0
  157. package/api/types/EventBodyFlagCheck.d.ts +2 -2
  158. package/api/types/GenericPreviewObject.d.ts +9 -0
  159. package/api/types/GenericPreviewObject.js +5 -0
  160. package/api/types/InvoiceRequestBody.d.ts +16 -0
  161. package/api/types/InvoiceRequestBody.js +5 -0
  162. package/api/types/InvoiceResponseData.d.ts +22 -0
  163. package/api/types/InvoiceResponseData.js +5 -0
  164. package/api/types/MeterRequestBody.d.ts +8 -0
  165. package/api/types/MeterRequestBody.js +5 -0
  166. package/api/types/PaymentMethodRequestBody.d.ts +17 -0
  167. package/api/types/PaymentMethodRequestBody.js +5 -0
  168. package/api/types/PaymentMethodResponseData.d.ts +23 -0
  169. package/api/types/PaymentMethodResponseData.js +5 -0
  170. package/api/types/PlanDetailResponseData.d.ts +4 -3
  171. package/api/types/PlanEntitlementResponseData.d.ts +0 -3
  172. package/api/types/PlanGroupDetailResponseData.d.ts +13 -0
  173. package/api/types/PlanGroupDetailResponseData.js +5 -0
  174. package/api/types/PlanGroupPlanDetailResponseData.d.ts +21 -0
  175. package/api/types/PlanGroupPlanDetailResponseData.js +5 -0
  176. package/{dist/api/types/BillingPlanGroupResponseData.d.ts → api/types/PlanGroupResponseData.d.ts} +2 -1
  177. package/api/types/PlanGroupResponseData.js +5 -0
  178. package/api/types/PlanResponseData.d.ts +1 -0
  179. package/api/types/StripeEmbedInfo.d.ts +7 -0
  180. package/api/types/StripeEmbedInfo.js +5 -0
  181. package/api/types/UpdateReqCommonMetricPeriod.d.ts +2 -1
  182. package/api/types/UpdateReqCommonMetricPeriod.js +1 -0
  183. package/api/types/index.d.ts +14 -2
  184. package/api/types/index.js +14 -2
  185. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
  186. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
  187. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
  188. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
  189. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
  190. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
  191. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
  192. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
  193. package/core/schemas/Schema.d.ts +1 -0
  194. package/core/schemas/Schema.js +1 -0
  195. package/core/schemas/builders/bigint/bigint.d.ts +2 -0
  196. package/core/schemas/builders/bigint/bigint.js +50 -0
  197. package/core/schemas/builders/bigint/index.d.ts +1 -0
  198. package/core/schemas/builders/bigint/index.js +5 -0
  199. package/core/schemas/builders/index.d.ts +1 -0
  200. package/core/schemas/builders/index.js +1 -0
  201. package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  202. package/dist/Client.d.ts +3 -0
  203. package/dist/Client.js +10 -5
  204. package/dist/api/resources/accesstokens/client/Client.js +1 -1
  205. package/dist/api/resources/accounts/client/Client.d.ts +1 -1
  206. package/dist/api/resources/accounts/client/Client.js +15 -15
  207. package/dist/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
  208. package/dist/api/resources/billing/client/Client.d.ts +100 -31
  209. package/dist/api/resources/billing/client/Client.js +512 -71
  210. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +24 -0
  211. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.js +5 -0
  212. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
  213. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +8 -1
  214. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +29 -0
  215. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.js +5 -0
  216. package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +18 -0
  217. package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.js +5 -0
  218. package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +26 -0
  219. package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +5 -0
  220. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +4 -0
  221. package/dist/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +22 -0
  222. package/dist/api/resources/billing/client/requests/ListInvoicesRequest.js +5 -0
  223. package/dist/api/resources/billing/client/requests/ListMetersRequest.d.ts +18 -0
  224. package/dist/api/resources/billing/client/requests/ListMetersRequest.js +5 -0
  225. package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +22 -0
  226. package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.js +5 -0
  227. package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +4 -0
  228. package/dist/api/resources/billing/client/requests/index.d.ts +7 -3
  229. package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
  230. package/dist/api/resources/billing/types/CountBillingProductsParams.js +5 -0
  231. package/dist/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
  232. package/dist/api/resources/billing/types/CountBillingProductsResponse.js +5 -0
  233. package/dist/api/resources/billing/types/DeleteProductPriceResponse.d.ts +9 -0
  234. package/dist/api/resources/billing/types/DeleteProductPriceResponse.js +5 -0
  235. package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
  236. package/dist/api/resources/billing/types/ListInvoicesParams.d.ts +15 -0
  237. package/dist/api/resources/billing/types/ListInvoicesParams.js +5 -0
  238. package/dist/api/resources/billing/types/ListInvoicesResponse.d.ts +10 -0
  239. package/dist/api/resources/billing/types/ListInvoicesResponse.js +5 -0
  240. package/dist/api/resources/billing/types/ListMetersParams.d.ts +13 -0
  241. package/dist/api/resources/billing/types/ListMetersParams.js +5 -0
  242. package/dist/api/resources/billing/types/ListMetersResponse.d.ts +10 -0
  243. package/dist/api/resources/billing/types/ListMetersResponse.js +5 -0
  244. package/dist/api/resources/billing/types/ListPaymentMethodsParams.d.ts +15 -0
  245. package/dist/api/resources/billing/types/ListPaymentMethodsParams.js +5 -0
  246. package/dist/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +10 -0
  247. package/dist/api/resources/billing/types/ListPaymentMethodsResponse.js +5 -0
  248. package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +2 -0
  249. package/dist/api/resources/billing/types/UpsertBillingMeterResponse.d.ts +9 -0
  250. package/dist/api/resources/billing/types/UpsertBillingMeterResponse.js +5 -0
  251. package/dist/api/resources/billing/types/UpsertInvoiceResponse.d.ts +9 -0
  252. package/dist/api/resources/billing/types/UpsertInvoiceResponse.js +5 -0
  253. package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.d.ts +9 -0
  254. package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.js +5 -0
  255. package/dist/api/resources/billing/types/index.d.ts +12 -4
  256. package/dist/api/resources/billing/types/index.js +12 -4
  257. package/dist/api/resources/companies/client/Client.d.ts +3 -3
  258. package/dist/api/resources/companies/client/Client.js +50 -44
  259. package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
  260. package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
  261. package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
  262. package/dist/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
  263. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
  264. package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
  265. package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
  266. package/dist/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
  267. package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
  268. package/dist/api/resources/companies/types/CountUsersParams.d.ts +4 -1
  269. package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
  270. package/dist/api/resources/companies/types/ListUsersParams.d.ts +4 -1
  271. package/dist/api/resources/components/client/Client.d.ts +9 -9
  272. package/dist/api/resources/components/client/Client.js +49 -40
  273. package/dist/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
  274. package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
  275. package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.js +5 -0
  276. package/dist/api/resources/components/client/requests/index.d.ts +1 -0
  277. package/dist/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
  278. package/dist/api/resources/components/types/PreviewComponentDataParams.js +5 -0
  279. package/{api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts → dist/api/resources/components/types/PreviewComponentDataResponse.d.ts} +3 -3
  280. package/dist/api/resources/components/types/PreviewComponentDataResponse.js +5 -0
  281. package/dist/api/resources/components/types/index.d.ts +2 -1
  282. package/dist/api/resources/components/types/index.js +2 -1
  283. package/dist/api/resources/crm/client/Client.js +5 -5
  284. package/dist/api/resources/entitlements/client/Client.d.ts +4 -4
  285. package/dist/api/resources/entitlements/client/Client.js +31 -25
  286. package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
  287. package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
  288. package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +18 -0
  289. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -1
  290. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -1
  291. package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
  292. package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
  293. package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +18 -0
  294. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -1
  295. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -1
  296. package/dist/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
  297. package/dist/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  298. package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +6 -0
  299. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  300. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  301. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  302. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  303. package/dist/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
  304. package/dist/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  305. package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +6 -0
  306. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  307. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  308. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  309. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  310. package/dist/api/resources/events/client/Client.d.ts +2 -2
  311. package/dist/api/resources/events/client/Client.js +10 -10
  312. package/dist/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
  313. package/dist/api/resources/features/client/Client.d.ts +21 -21
  314. package/dist/api/resources/features/client/Client.js +40 -40
  315. package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
  316. package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
  317. package/dist/api/resources/index.d.ts +3 -0
  318. package/dist/api/resources/index.js +4 -1
  319. package/dist/api/resources/plangroups/client/Client.d.ts +74 -0
  320. package/dist/api/resources/plangroups/client/Client.js +346 -0
  321. package/dist/api/resources/plangroups/client/index.d.ts +1 -0
  322. package/dist/api/resources/plangroups/client/index.js +17 -0
  323. package/{api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +3 -1
  324. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
  325. package/dist/api/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +3 -1
  326. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +5 -0
  327. package/dist/api/resources/plangroups/client/requests/index.d.ts +2 -0
  328. package/dist/api/resources/plangroups/client/requests/index.js +2 -0
  329. package/dist/api/resources/plangroups/index.d.ts +2 -0
  330. package/dist/api/resources/plangroups/index.js +18 -0
  331. package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
  332. package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.js +5 -0
  333. package/dist/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
  334. package/dist/api/resources/plangroups/types/GetPlanGroupResponse.js +5 -0
  335. package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
  336. package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.js +5 -0
  337. package/dist/api/resources/plangroups/types/index.d.ts +3 -0
  338. package/dist/api/resources/plangroups/types/index.js +19 -0
  339. package/dist/api/resources/plans/client/Client.d.ts +5 -17
  340. package/dist/api/resources/plans/client/Client.js +35 -112
  341. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
  342. package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -1
  343. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
  344. package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
  345. package/dist/api/resources/plans/types/CountPlansParams.d.ts +4 -0
  346. package/dist/api/resources/plans/types/ListPlansParams.d.ts +4 -0
  347. package/dist/api/resources/plans/types/index.d.ts +0 -1
  348. package/dist/api/resources/plans/types/index.js +0 -1
  349. package/dist/api/resources/webhooks/client/Client.d.ts +1 -1
  350. package/dist/api/resources/webhooks/client/Client.js +18 -18
  351. package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
  352. package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
  353. package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
  354. package/dist/api/types/BillingCustomerSubscription.d.ts +1 -0
  355. package/dist/api/types/BillingMeterResponseData.d.ts +10 -0
  356. package/dist/api/types/BillingMeterResponseData.js +5 -0
  357. package/dist/api/types/BillingPriceResponseData.d.ts +1 -0
  358. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +3 -1
  359. package/dist/api/types/BillingProductPricing.d.ts +3 -2
  360. package/dist/api/types/BillingSubscriptionResponseData.d.ts +4 -4
  361. package/dist/api/types/CheckFlagRequestBody.d.ts +2 -2
  362. package/dist/api/types/CompanyDetailResponseData.d.ts +4 -3
  363. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +23 -0
  364. package/dist/api/types/CompanyPlanDetailResponseData.js +5 -0
  365. package/dist/api/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +2 -1
  366. package/dist/api/types/CompanyPlanWithBillingSubView.js +5 -0
  367. package/dist/api/types/CompanySubscriptionResponseData.d.ts +5 -0
  368. package/dist/api/types/ComponentHydrateResponseData.d.ts +5 -3
  369. package/dist/api/types/ComponentPreviewResponseData.d.ts +18 -0
  370. package/dist/api/types/ComponentPreviewResponseData.js +5 -0
  371. package/dist/api/types/ComponentResponseData.d.ts +3 -0
  372. package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
  373. package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
  374. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
  375. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
  376. package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
  377. package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
  378. package/dist/api/types/CreateReqCommonMetricPeriod.d.ts +2 -1
  379. package/dist/api/types/CreateReqCommonMetricPeriod.js +1 -0
  380. package/dist/api/types/EventBodyFlagCheck.d.ts +2 -2
  381. package/dist/api/types/GenericPreviewObject.d.ts +9 -0
  382. package/dist/api/types/GenericPreviewObject.js +5 -0
  383. package/dist/api/types/InvoiceRequestBody.d.ts +16 -0
  384. package/dist/api/types/InvoiceRequestBody.js +5 -0
  385. package/dist/api/types/InvoiceResponseData.d.ts +22 -0
  386. package/dist/api/types/InvoiceResponseData.js +5 -0
  387. package/dist/api/types/MeterRequestBody.d.ts +8 -0
  388. package/dist/api/types/MeterRequestBody.js +5 -0
  389. package/dist/api/types/PaymentMethodRequestBody.d.ts +17 -0
  390. package/dist/api/types/PaymentMethodRequestBody.js +5 -0
  391. package/dist/api/types/PaymentMethodResponseData.d.ts +23 -0
  392. package/dist/api/types/PaymentMethodResponseData.js +5 -0
  393. package/dist/api/types/PlanDetailResponseData.d.ts +4 -3
  394. package/dist/api/types/PlanEntitlementResponseData.d.ts +0 -3
  395. package/dist/api/types/PlanGroupDetailResponseData.d.ts +13 -0
  396. package/dist/api/types/PlanGroupDetailResponseData.js +5 -0
  397. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +21 -0
  398. package/dist/api/types/PlanGroupPlanDetailResponseData.js +5 -0
  399. package/{api/types/BillingPlanGroupResponseData.d.ts → dist/api/types/PlanGroupResponseData.d.ts} +2 -1
  400. package/dist/api/types/PlanGroupResponseData.js +5 -0
  401. package/dist/api/types/PlanResponseData.d.ts +1 -0
  402. package/dist/api/types/StripeEmbedInfo.d.ts +7 -0
  403. package/dist/api/types/StripeEmbedInfo.js +5 -0
  404. package/dist/api/types/UpdateReqCommonMetricPeriod.d.ts +2 -1
  405. package/dist/api/types/UpdateReqCommonMetricPeriod.js +1 -0
  406. package/dist/api/types/index.d.ts +14 -2
  407. package/dist/api/types/index.js +14 -2
  408. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
  409. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
  410. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
  411. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
  412. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
  413. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
  414. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
  415. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
  416. package/dist/core/schemas/Schema.d.ts +1 -0
  417. package/dist/core/schemas/Schema.js +1 -0
  418. package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
  419. package/dist/core/schemas/builders/bigint/bigint.js +50 -0
  420. package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
  421. package/dist/core/schemas/builders/bigint/index.js +5 -0
  422. package/dist/core/schemas/builders/index.d.ts +1 -0
  423. package/dist/core/schemas/builders/index.js +1 -0
  424. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  425. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -0
  426. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +1 -0
  427. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +3 -0
  428. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +3 -0
  429. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
  430. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
  431. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
  432. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +36 -0
  433. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
  434. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
  435. package/dist/serialization/resources/billing/client/requests/index.d.ts +3 -3
  436. package/dist/serialization/resources/billing/client/requests/index.js +7 -7
  437. package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
  438. package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +38 -0
  439. package/dist/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
  440. package/dist/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
  441. package/dist/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
  442. package/{serialization/resources/plans/types/ListActivePlansResponse.js → dist/serialization/resources/billing/types/DeleteProductPriceResponse.js} +4 -4
  443. package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +1 -0
  444. package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +1 -0
  445. package/dist/serialization/resources/billing/types/ListInvoicesParams.d.ts +16 -0
  446. package/dist/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
  447. package/dist/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
  448. package/dist/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
  449. package/dist/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
  450. package/dist/serialization/resources/billing/types/ListMetersParams.js +35 -0
  451. package/dist/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
  452. package/dist/serialization/resources/billing/types/ListMetersResponse.js +36 -0
  453. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
  454. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
  455. package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
  456. package/dist/serialization/resources/billing/types/{UpdateBillingPlanGroupResponse.js → ListPaymentMethodsResponse.js} +6 -5
  457. package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +1 -0
  458. package/dist/serialization/resources/billing/types/ListProductPricesParams.js +1 -0
  459. package/dist/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
  460. package/dist/serialization/resources/{plans/types/ListActivePlansResponse.js → billing/types/UpsertBillingMeterResponse.js} +4 -4
  461. package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
  462. package/{serialization/resources/components/types/HydrateComponentResponse.js → dist/serialization/resources/billing/types/UpsertInvoiceResponse.js} +4 -4
  463. package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
  464. package/dist/serialization/resources/{components/types/HydrateComponentResponse.js → billing/types/UpsertPaymentMethodResponse.js} +4 -4
  465. package/dist/serialization/resources/billing/types/index.d.ts +12 -4
  466. package/dist/serialization/resources/billing/types/index.js +12 -4
  467. package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  468. package/dist/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
  469. package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  470. package/dist/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
  471. package/dist/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
  472. package/dist/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
  473. package/dist/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
  474. package/dist/serialization/resources/{billing/types/CreateBillingPlanGroupResponse.js → components/types/PreviewComponentDataResponse.js} +6 -5
  475. package/dist/serialization/resources/components/types/index.d.ts +2 -1
  476. package/dist/serialization/resources/components/types/index.js +2 -1
  477. package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  478. package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
  479. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  480. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  481. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  482. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  483. package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  484. package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
  485. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  486. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  487. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  488. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  489. package/dist/serialization/resources/index.d.ts +3 -0
  490. package/dist/serialization/resources/index.js +4 -1
  491. package/dist/serialization/resources/plangroups/client/index.d.ts +1 -0
  492. package/dist/serialization/resources/plangroups/client/index.js +17 -0
  493. package/{serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +3 -2
  494. package/{serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js → dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +3 -2
  495. package/dist/serialization/resources/{billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +3 -2
  496. package/dist/serialization/resources/{billing/client/requests/CreateBillingPlanGroupRequestBody.js → plangroups/client/requests/UpdatePlanGroupRequestBody.js} +3 -2
  497. package/dist/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
  498. package/dist/serialization/resources/plangroups/client/requests/index.js +7 -0
  499. package/dist/serialization/resources/plangroups/index.d.ts +2 -0
  500. package/dist/serialization/resources/plangroups/index.js +18 -0
  501. package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
  502. package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
  503. package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
  504. package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
  505. package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
  506. package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
  507. package/dist/serialization/resources/plangroups/types/index.d.ts +3 -0
  508. package/dist/serialization/resources/plangroups/types/index.js +19 -0
  509. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  510. package/dist/serialization/resources/plans/types/CountPlansParams.js +2 -0
  511. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  512. package/dist/serialization/resources/plans/types/ListPlansParams.js +2 -0
  513. package/dist/serialization/resources/plans/types/index.d.ts +0 -1
  514. package/dist/serialization/resources/plans/types/index.js +0 -1
  515. package/dist/serialization/types/BillingCustomerSubscription.d.ts +1 -0
  516. package/dist/serialization/types/BillingCustomerSubscription.js +1 -0
  517. package/dist/serialization/types/BillingMeterResponseData.d.ts +16 -0
  518. package/dist/serialization/types/BillingMeterResponseData.js +37 -0
  519. package/dist/serialization/types/BillingPriceResponseData.d.ts +1 -0
  520. package/dist/serialization/types/BillingPriceResponseData.js +1 -0
  521. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +3 -1
  522. package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +3 -1
  523. package/dist/serialization/types/BillingProductPricing.d.ts +3 -2
  524. package/dist/serialization/types/BillingProductPricing.js +3 -2
  525. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +4 -1
  526. package/dist/serialization/types/BillingSubscriptionResponseData.js +4 -1
  527. package/dist/serialization/types/CheckFlagRequestBody.d.ts +2 -2
  528. package/dist/serialization/types/CheckFlagRequestBody.js +2 -2
  529. package/dist/serialization/types/CompanyDetailResponseData.d.ts +7 -5
  530. package/dist/serialization/types/CompanyDetailResponseData.js +7 -5
  531. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +32 -0
  532. package/dist/serialization/types/CompanyPlanDetailResponseData.js +53 -0
  533. package/dist/serialization/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +3 -2
  534. package/{serialization/types/BillingPlan.js → dist/serialization/types/CompanyPlanWithBillingSubView.js} +3 -2
  535. package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +7 -0
  536. package/dist/serialization/types/CompanySubscriptionResponseData.js +7 -0
  537. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +9 -0
  538. package/dist/serialization/types/ComponentHydrateResponseData.js +9 -0
  539. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +27 -0
  540. package/dist/serialization/types/ComponentPreviewResponseData.js +48 -0
  541. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
  542. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
  543. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  544. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  545. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
  546. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
  547. package/dist/serialization/types/CreateReqCommonMetricPeriod.d.ts +1 -1
  548. package/dist/serialization/types/CreateReqCommonMetricPeriod.js +1 -1
  549. package/dist/serialization/types/EventBodyFlagCheck.d.ts +2 -2
  550. package/dist/serialization/types/EventBodyFlagCheck.js +2 -2
  551. package/dist/serialization/types/GenericPreviewObject.d.ts +15 -0
  552. package/dist/serialization/types/GenericPreviewObject.js +36 -0
  553. package/dist/serialization/types/InvoiceRequestBody.d.ts +22 -0
  554. package/dist/serialization/types/InvoiceRequestBody.js +43 -0
  555. package/dist/serialization/types/InvoiceResponseData.d.ts +28 -0
  556. package/dist/serialization/types/InvoiceResponseData.js +49 -0
  557. package/dist/serialization/types/MeterRequestBody.d.ts +14 -0
  558. package/dist/serialization/{resources/billing/client/requests/ChangeSubscriptionRequestBody.js → types/MeterRequestBody.js} +6 -6
  559. package/dist/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
  560. package/dist/serialization/types/PaymentMethodRequestBody.js +44 -0
  561. package/dist/serialization/types/PaymentMethodResponseData.d.ts +29 -0
  562. package/dist/serialization/types/PaymentMethodResponseData.js +50 -0
  563. package/dist/serialization/types/PlanDetailResponseData.d.ts +5 -0
  564. package/dist/serialization/types/PlanDetailResponseData.js +5 -0
  565. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +16 -0
  566. package/dist/serialization/types/PlanGroupDetailResponseData.js +37 -0
  567. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +30 -0
  568. package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +51 -0
  569. package/dist/serialization/types/{BillingPlanGroupResponseData.d.ts → PlanGroupResponseData.d.ts} +3 -2
  570. package/{serialization/types/BillingPlanGroupResponseData.js → dist/serialization/types/PlanGroupResponseData.js} +3 -2
  571. package/dist/serialization/types/PlanResponseData.d.ts +1 -0
  572. package/dist/serialization/types/PlanResponseData.js +1 -0
  573. package/dist/serialization/types/StripeEmbedInfo.d.ts +13 -0
  574. package/dist/serialization/types/StripeEmbedInfo.js +34 -0
  575. package/dist/serialization/types/UpdateReqCommonMetricPeriod.d.ts +1 -1
  576. package/dist/serialization/types/UpdateReqCommonMetricPeriod.js +1 -1
  577. package/dist/serialization/types/index.d.ts +14 -2
  578. package/dist/serialization/types/index.js +14 -2
  579. package/package.json +9 -3
  580. package/reference.md +403 -81
  581. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -0
  582. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +1 -0
  583. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +3 -0
  584. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +3 -0
  585. package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
  586. package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
  587. package/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
  588. package/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +36 -0
  589. package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
  590. package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
  591. package/serialization/resources/billing/client/requests/index.d.ts +3 -3
  592. package/serialization/resources/billing/client/requests/index.js +7 -7
  593. package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
  594. package/serialization/resources/billing/types/CountBillingProductsParams.js +38 -0
  595. package/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
  596. package/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
  597. package/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
  598. package/serialization/resources/billing/types/DeleteProductPriceResponse.js +35 -0
  599. package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +1 -0
  600. package/serialization/resources/billing/types/ListBillingProductsParams.js +1 -0
  601. package/serialization/resources/billing/types/ListInvoicesParams.d.ts +16 -0
  602. package/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
  603. package/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
  604. package/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
  605. package/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
  606. package/serialization/resources/billing/types/ListMetersParams.js +35 -0
  607. package/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
  608. package/serialization/resources/billing/types/ListMetersResponse.js +36 -0
  609. package/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
  610. package/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
  611. package/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
  612. package/{dist/serialization/resources/billing/types/ChangeSubscriptionWebResponse.js → serialization/resources/billing/types/ListPaymentMethodsResponse.js} +6 -5
  613. package/serialization/resources/billing/types/ListProductPricesParams.d.ts +1 -0
  614. package/serialization/resources/billing/types/ListProductPricesParams.js +1 -0
  615. package/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
  616. package/serialization/resources/billing/types/UpsertBillingMeterResponse.js +35 -0
  617. package/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
  618. package/serialization/resources/billing/types/UpsertInvoiceResponse.js +35 -0
  619. package/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
  620. package/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +35 -0
  621. package/serialization/resources/billing/types/index.d.ts +12 -4
  622. package/serialization/resources/billing/types/index.js +12 -4
  623. package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  624. package/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
  625. package/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  626. package/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
  627. package/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
  628. package/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
  629. package/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
  630. package/{dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js → serialization/resources/components/types/PreviewComponentDataResponse.js} +6 -5
  631. package/serialization/resources/components/types/index.d.ts +2 -1
  632. package/serialization/resources/components/types/index.js +2 -1
  633. package/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  634. package/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
  635. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  636. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  637. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  638. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  639. package/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  640. package/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
  641. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  642. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  643. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  644. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  645. package/serialization/resources/index.d.ts +3 -0
  646. package/serialization/resources/index.js +4 -1
  647. package/serialization/resources/plangroups/client/index.d.ts +1 -0
  648. package/serialization/resources/plangroups/client/index.js +17 -0
  649. package/{dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +3 -2
  650. package/{dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js → serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +3 -2
  651. package/serialization/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +3 -2
  652. package/serialization/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.js → plangroups/client/requests/UpdatePlanGroupRequestBody.js} +3 -2
  653. package/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
  654. package/serialization/resources/plangroups/client/requests/index.js +7 -0
  655. package/serialization/resources/plangroups/index.d.ts +2 -0
  656. package/serialization/resources/plangroups/index.js +18 -0
  657. package/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
  658. package/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
  659. package/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
  660. package/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
  661. package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
  662. package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
  663. package/serialization/resources/plangroups/types/index.d.ts +3 -0
  664. package/serialization/resources/plangroups/types/index.js +19 -0
  665. package/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  666. package/serialization/resources/plans/types/CountPlansParams.js +2 -0
  667. package/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  668. package/serialization/resources/plans/types/ListPlansParams.js +2 -0
  669. package/serialization/resources/plans/types/index.d.ts +0 -1
  670. package/serialization/resources/plans/types/index.js +0 -1
  671. package/serialization/types/BillingCustomerSubscription.d.ts +1 -0
  672. package/serialization/types/BillingCustomerSubscription.js +1 -0
  673. package/serialization/types/BillingMeterResponseData.d.ts +16 -0
  674. package/serialization/types/BillingMeterResponseData.js +37 -0
  675. package/serialization/types/BillingPriceResponseData.d.ts +1 -0
  676. package/serialization/types/BillingPriceResponseData.js +1 -0
  677. package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +3 -1
  678. package/serialization/types/BillingProductForSubscriptionResponseData.js +3 -1
  679. package/serialization/types/BillingProductPricing.d.ts +3 -2
  680. package/serialization/types/BillingProductPricing.js +3 -2
  681. package/serialization/types/BillingSubscriptionResponseData.d.ts +4 -1
  682. package/serialization/types/BillingSubscriptionResponseData.js +4 -1
  683. package/serialization/types/CheckFlagRequestBody.d.ts +2 -2
  684. package/serialization/types/CheckFlagRequestBody.js +2 -2
  685. package/serialization/types/CompanyDetailResponseData.d.ts +7 -5
  686. package/serialization/types/CompanyDetailResponseData.js +7 -5
  687. package/serialization/types/CompanyPlanDetailResponseData.d.ts +32 -0
  688. package/serialization/types/CompanyPlanDetailResponseData.js +53 -0
  689. package/serialization/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +3 -2
  690. package/{dist/serialization/types/BillingPlan.js → serialization/types/CompanyPlanWithBillingSubView.js} +3 -2
  691. package/serialization/types/CompanySubscriptionResponseData.d.ts +7 -0
  692. package/serialization/types/CompanySubscriptionResponseData.js +7 -0
  693. package/serialization/types/ComponentHydrateResponseData.d.ts +9 -0
  694. package/serialization/types/ComponentHydrateResponseData.js +9 -0
  695. package/serialization/types/ComponentPreviewResponseData.d.ts +27 -0
  696. package/serialization/types/ComponentPreviewResponseData.js +48 -0
  697. package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
  698. package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
  699. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  700. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  701. package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
  702. package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
  703. package/serialization/types/CreateReqCommonMetricPeriod.d.ts +1 -1
  704. package/serialization/types/CreateReqCommonMetricPeriod.js +1 -1
  705. package/serialization/types/EventBodyFlagCheck.d.ts +2 -2
  706. package/serialization/types/EventBodyFlagCheck.js +2 -2
  707. package/serialization/types/GenericPreviewObject.d.ts +15 -0
  708. package/serialization/types/GenericPreviewObject.js +36 -0
  709. package/serialization/types/InvoiceRequestBody.d.ts +22 -0
  710. package/serialization/types/InvoiceRequestBody.js +43 -0
  711. package/serialization/types/InvoiceResponseData.d.ts +28 -0
  712. package/serialization/types/InvoiceResponseData.js +49 -0
  713. package/serialization/types/MeterRequestBody.d.ts +14 -0
  714. package/serialization/{resources/billing/client/requests/ChangeSubscriptionRequestBody.js → types/MeterRequestBody.js} +6 -6
  715. package/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
  716. package/serialization/types/PaymentMethodRequestBody.js +44 -0
  717. package/serialization/types/PaymentMethodResponseData.d.ts +29 -0
  718. package/serialization/types/PaymentMethodResponseData.js +50 -0
  719. package/serialization/types/PlanDetailResponseData.d.ts +5 -0
  720. package/serialization/types/PlanDetailResponseData.js +5 -0
  721. package/serialization/types/PlanGroupDetailResponseData.d.ts +16 -0
  722. package/serialization/types/PlanGroupDetailResponseData.js +37 -0
  723. package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +30 -0
  724. package/serialization/types/PlanGroupPlanDetailResponseData.js +51 -0
  725. package/serialization/types/{BillingPlanGroupResponseData.d.ts → PlanGroupResponseData.d.ts} +3 -2
  726. package/{dist/serialization/types/BillingPlanGroupResponseData.js → serialization/types/PlanGroupResponseData.js} +3 -2
  727. package/serialization/types/PlanResponseData.d.ts +1 -0
  728. package/serialization/types/PlanResponseData.js +1 -0
  729. package/serialization/types/StripeEmbedInfo.d.ts +13 -0
  730. package/serialization/types/StripeEmbedInfo.js +34 -0
  731. package/serialization/types/UpdateReqCommonMetricPeriod.d.ts +1 -1
  732. package/serialization/types/UpdateReqCommonMetricPeriod.js +1 -1
  733. package/serialization/types/index.d.ts +14 -2
  734. package/serialization/types/index.js +14 -2
  735. package/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -16
  736. package/dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -16
  737. package/dist/api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -9
  738. package/dist/api/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -9
  739. package/dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -9
  740. package/dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -9
  741. package/dist/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -14
  742. package/dist/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -14
  743. package/dist/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -14
  744. package/dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -14
  745. package/dist/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -14
  746. package/dist/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
  747. package/dist/serialization/resources/plans/types/ListActivePlansResponse.d.ts +0 -14
  748. package/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -14
  749. package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -14
  750. package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.js +0 -35
  751. package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -14
  752. package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.js +0 -35
  753. package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -14
  754. package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js +0 -35
  755. package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -14
  756. package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.js +0 -35
  757. package/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
  758. package/serialization/resources/plans/types/ListActivePlansResponse.d.ts +0 -14
  759. /package/api/resources/billing/client/requests/{ChangeSubscriptionRequestBody.js → CountBillingProductsRequest.js} +0 -0
  760. /package/api/resources/billing/client/requests/{CreateBillingPlanGroupRequestBody.js → CreateInvoiceRequestBody.js} +0 -0
  761. /package/api/resources/billing/client/requests/{UpdateBillingPlanGroupRequestBody.js → CreateMeterRequestBody.js} +0 -0
  762. /package/api/resources/billing/{types/ChangeSubscriptionWebResponse.js → client/requests/CreatePaymentMethodRequestBody.js} +0 -0
  763. /package/api/resources/billing/{types/CreateBillingPlanGroupResponse.js → client/requests/ListInvoicesRequest.js} +0 -0
  764. /package/api/resources/billing/{types/GetBillingPlanGroupByAccountIdResponse.js → client/requests/ListMetersRequest.js} +0 -0
  765. /package/api/resources/billing/{types/UpdateBillingPlanGroupResponse.js → client/requests/ListPaymentMethodsRequest.js} +0 -0
  766. /package/api/resources/{components/types/HydrateComponentResponse.js → billing/types/CountBillingProductsParams.js} +0 -0
  767. /package/api/resources/{plans/types/ListActivePlansResponse.js → billing/types/CountBillingProductsResponse.js} +0 -0
  768. /package/api/{types/BillingPlan.js → resources/billing/types/DeleteProductPriceResponse.js} +0 -0
  769. /package/api/{types/BillingPlanGroupResponseData.js → resources/billing/types/ListInvoicesParams.js} +0 -0
  770. /package/{dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.js → api/resources/billing/types/ListInvoicesResponse.js} +0 -0
  771. /package/{dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js → api/resources/billing/types/ListMetersParams.js} +0 -0
  772. /package/{dist/api/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js → api/resources/billing/types/ListMetersResponse.js} +0 -0
  773. /package/{dist/api/resources/billing/types/ChangeSubscriptionWebResponse.js → api/resources/billing/types/ListPaymentMethodsParams.js} +0 -0
  774. /package/{dist/api/resources/billing/types/CreateBillingPlanGroupResponse.js → api/resources/billing/types/ListPaymentMethodsResponse.js} +0 -0
  775. /package/{dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js → api/resources/billing/types/UpsertBillingMeterResponse.js} +0 -0
  776. /package/{dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.js → api/resources/billing/types/UpsertInvoiceResponse.js} +0 -0
  777. /package/{dist/api/resources/components/types/HydrateComponentResponse.js → api/resources/billing/types/UpsertPaymentMethodResponse.js} +0 -0
  778. /package/{dist/api/resources/plans/types/ListActivePlansResponse.js → api/resources/components/client/requests/PreviewComponentDataRequest.js} +0 -0
  779. /package/{dist/api/types/BillingPlan.js → api/resources/components/types/PreviewComponentDataParams.js} +0 -0
  780. /package/{dist/api/types/BillingPlanGroupResponseData.js → api/resources/components/types/PreviewComponentDataResponse.js} +0 -0
@@ -67,7 +67,7 @@ class Plans {
67
67
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
68
68
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-audiences/${encodeURIComponent(planAudienceId)}`),
69
69
  method: "GET",
70
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
70
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
71
71
  contentType: "application/json",
72
72
  requestType: "json",
73
73
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -154,14 +154,14 @@ class Plans {
154
154
  * await client.plans.updateAudience("plan_audience_id", {
155
155
  * conditionGroups: [{
156
156
  * conditions: [{
157
- * conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
158
- * operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
157
+ * conditionType: "company",
158
+ * operator: "eq",
159
159
  * resourceIds: ["resource_ids"]
160
160
  * }]
161
161
  * }],
162
162
  * conditions: [{
163
- * conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
164
- * operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
163
+ * conditionType: "company",
164
+ * operator: "eq",
165
165
  * resourceIds: ["resource_ids"]
166
166
  * }]
167
167
  * })
@@ -172,7 +172,7 @@ class Plans {
172
172
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
173
173
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-audiences/${encodeURIComponent(planAudienceId)}`),
174
174
  method: "PUT",
175
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
175
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
176
176
  contentType: "application/json",
177
177
  requestType: "json",
178
178
  body: serializers.UpdateAudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -271,7 +271,7 @@ class Plans {
271
271
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
272
272
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-audiences/${encodeURIComponent(planAudienceId)}`),
273
273
  method: "DELETE",
274
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
274
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
275
275
  contentType: "application/json",
276
276
  requestType: "json",
277
277
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -358,11 +358,14 @@ class Plans {
358
358
  listPlans(request = {}, requestOptions) {
359
359
  var _a, _b;
360
360
  return __awaiter(this, void 0, void 0, function* () {
361
- const { companyId, ids, q, planType, withoutEntitlementFor, limit, offset } = request;
361
+ const { companyId, hasProductId, ids, planType, q, withoutEntitlementFor, withoutProductId, limit, offset } = request;
362
362
  const _queryParams = {};
363
363
  if (companyId != null) {
364
364
  _queryParams["company_id"] = companyId;
365
365
  }
366
+ if (hasProductId != null) {
367
+ _queryParams["has_product_id"] = hasProductId.toString();
368
+ }
366
369
  if (ids != null) {
367
370
  if (Array.isArray(ids)) {
368
371
  _queryParams["ids"] = ids.map((item) => item);
@@ -371,15 +374,18 @@ class Plans {
371
374
  _queryParams["ids"] = ids;
372
375
  }
373
376
  }
374
- if (q != null) {
375
- _queryParams["q"] = q;
376
- }
377
377
  if (planType != null) {
378
378
  _queryParams["plan_type"] = planType;
379
379
  }
380
+ if (q != null) {
381
+ _queryParams["q"] = q;
382
+ }
380
383
  if (withoutEntitlementFor != null) {
381
384
  _queryParams["without_entitlement_for"] = withoutEntitlementFor;
382
385
  }
386
+ if (withoutProductId != null) {
387
+ _queryParams["without_product_id"] = withoutProductId.toString();
388
+ }
383
389
  if (limit != null) {
384
390
  _queryParams["limit"] = limit.toString();
385
391
  }
@@ -389,7 +395,7 @@ class Plans {
389
395
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
390
396
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plans"),
391
397
  method: "GET",
392
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
398
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
393
399
  contentType: "application/json",
394
400
  queryParameters: _queryParams,
395
401
  requestType: "json",
@@ -475,7 +481,7 @@ class Plans {
475
481
  * await client.plans.createPlan({
476
482
  * description: "description",
477
483
  * name: "name",
478
- * planType: Schematic.CreatePlanRequestBodyPlanType.Plan
484
+ * planType: "plan"
479
485
  * })
480
486
  */
481
487
  createPlan(request, requestOptions) {
@@ -484,7 +490,7 @@ class Plans {
484
490
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
485
491
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plans"),
486
492
  method: "POST",
487
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
493
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
488
494
  contentType: "application/json",
489
495
  requestType: "json",
490
496
  body: serializers.CreatePlanRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -575,7 +581,7 @@ class Plans {
575
581
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
576
582
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plans/${encodeURIComponent(planId)}`),
577
583
  method: "GET",
578
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
584
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
579
585
  contentType: "application/json",
580
586
  requestType: "json",
581
587
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -669,7 +675,7 @@ class Plans {
669
675
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
670
676
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plans/${encodeURIComponent(planId)}`),
671
677
  method: "PUT",
672
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
678
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
673
679
  contentType: "application/json",
674
680
  requestType: "json",
675
681
  body: serializers.UpdatePlanRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -768,7 +774,7 @@ class Plans {
768
774
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
769
775
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plans/${encodeURIComponent(planId)}`),
770
776
  method: "DELETE",
771
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
777
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
772
778
  contentType: "application/json",
773
779
  requestType: "json",
774
780
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -862,7 +868,7 @@ class Plans {
862
868
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
863
869
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plans/${encodeURIComponent(planId)}/billing_products`),
864
870
  method: "PUT",
865
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
871
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
866
872
  contentType: "application/json",
867
873
  requestType: "json",
868
874
  body: serializers.UpsertBillingProductRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -943,95 +949,6 @@ class Plans {
943
949
  }
944
950
  });
945
951
  }
946
- /**
947
- * @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
948
- *
949
- * @throws {@link Schematic.BadRequestError}
950
- * @throws {@link Schematic.UnauthorizedError}
951
- * @throws {@link Schematic.ForbiddenError}
952
- * @throws {@link Schematic.InternalServerError}
953
- *
954
- * @example
955
- * await client.plans.listActivePlans()
956
- */
957
- listActivePlans(requestOptions) {
958
- var _a, _b;
959
- return __awaiter(this, void 0, void 0, function* () {
960
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
961
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plans/active"),
962
- method: "GET",
963
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
964
- contentType: "application/json",
965
- requestType: "json",
966
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
967
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
968
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
969
- });
970
- if (_response.ok) {
971
- return serializers.ListActivePlansResponse.parseOrThrow(_response.body, {
972
- unrecognizedObjectKeys: "passthrough",
973
- allowUnrecognizedUnionMembers: true,
974
- allowUnrecognizedEnumValues: true,
975
- skipValidation: true,
976
- breadcrumbsPrefix: ["response"],
977
- });
978
- }
979
- if (_response.error.reason === "status-code") {
980
- switch (_response.error.statusCode) {
981
- case 400:
982
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
983
- unrecognizedObjectKeys: "passthrough",
984
- allowUnrecognizedUnionMembers: true,
985
- allowUnrecognizedEnumValues: true,
986
- skipValidation: true,
987
- breadcrumbsPrefix: ["response"],
988
- }));
989
- case 401:
990
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
991
- unrecognizedObjectKeys: "passthrough",
992
- allowUnrecognizedUnionMembers: true,
993
- allowUnrecognizedEnumValues: true,
994
- skipValidation: true,
995
- breadcrumbsPrefix: ["response"],
996
- }));
997
- case 403:
998
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
999
- unrecognizedObjectKeys: "passthrough",
1000
- allowUnrecognizedUnionMembers: true,
1001
- allowUnrecognizedEnumValues: true,
1002
- skipValidation: true,
1003
- breadcrumbsPrefix: ["response"],
1004
- }));
1005
- case 500:
1006
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
1007
- unrecognizedObjectKeys: "passthrough",
1008
- allowUnrecognizedUnionMembers: true,
1009
- allowUnrecognizedEnumValues: true,
1010
- skipValidation: true,
1011
- breadcrumbsPrefix: ["response"],
1012
- }));
1013
- default:
1014
- throw new errors.SchematicError({
1015
- statusCode: _response.error.statusCode,
1016
- body: _response.error.body,
1017
- });
1018
- }
1019
- }
1020
- switch (_response.error.reason) {
1021
- case "non-json":
1022
- throw new errors.SchematicError({
1023
- statusCode: _response.error.statusCode,
1024
- body: _response.error.rawBody,
1025
- });
1026
- case "timeout":
1027
- throw new errors.SchematicTimeoutError();
1028
- case "unknown":
1029
- throw new errors.SchematicError({
1030
- message: _response.error.errorMessage,
1031
- });
1032
- }
1033
- });
1034
- }
1035
952
  /**
1036
953
  * @param {Schematic.CountPlansRequest} request
1037
954
  * @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
@@ -1047,11 +964,14 @@ class Plans {
1047
964
  countPlans(request = {}, requestOptions) {
1048
965
  var _a, _b;
1049
966
  return __awaiter(this, void 0, void 0, function* () {
1050
- const { companyId, ids, q, planType, withoutEntitlementFor, limit, offset } = request;
967
+ const { companyId, hasProductId, ids, planType, q, withoutEntitlementFor, withoutProductId, limit, offset } = request;
1051
968
  const _queryParams = {};
1052
969
  if (companyId != null) {
1053
970
  _queryParams["company_id"] = companyId;
1054
971
  }
972
+ if (hasProductId != null) {
973
+ _queryParams["has_product_id"] = hasProductId.toString();
974
+ }
1055
975
  if (ids != null) {
1056
976
  if (Array.isArray(ids)) {
1057
977
  _queryParams["ids"] = ids.map((item) => item);
@@ -1060,15 +980,18 @@ class Plans {
1060
980
  _queryParams["ids"] = ids;
1061
981
  }
1062
982
  }
1063
- if (q != null) {
1064
- _queryParams["q"] = q;
1065
- }
1066
983
  if (planType != null) {
1067
984
  _queryParams["plan_type"] = planType;
1068
985
  }
986
+ if (q != null) {
987
+ _queryParams["q"] = q;
988
+ }
1069
989
  if (withoutEntitlementFor != null) {
1070
990
  _queryParams["without_entitlement_for"] = withoutEntitlementFor;
1071
991
  }
992
+ if (withoutProductId != null) {
993
+ _queryParams["without_product_id"] = withoutProductId.toString();
994
+ }
1072
995
  if (limit != null) {
1073
996
  _queryParams["limit"] = limit.toString();
1074
997
  }
@@ -1078,7 +1001,7 @@ class Plans {
1078
1001
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1079
1002
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plans/count"),
1080
1003
  method: "GET",
1081
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1004
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1082
1005
  contentType: "application/json",
1083
1006
  queryParameters: _queryParams,
1084
1007
  requestType: "json",
@@ -8,16 +8,24 @@ import * as Schematic from "../../../../index";
8
8
  */
9
9
  export interface CountPlansRequest {
10
10
  companyId?: string;
11
+ /**
12
+ * Filter out plans that do not have a billing product ID
13
+ */
14
+ hasProductId?: boolean;
11
15
  ids?: string | string[];
12
- q?: string;
13
16
  /**
14
17
  * Filter by plan type
15
18
  */
16
19
  planType?: Schematic.CountPlansRequestPlanType;
20
+ q?: string;
17
21
  /**
18
22
  * Filter out plans that already have a plan entitlement for the specified feature ID
19
23
  */
20
24
  withoutEntitlementFor?: string;
25
+ /**
26
+ * Filter out plans that have a billing product ID
27
+ */
28
+ withoutProductId?: boolean;
21
29
  /**
22
30
  * Page limit (default 100)
23
31
  */
@@ -7,7 +7,7 @@ import * as Schematic from "../../../../index";
7
7
  * {
8
8
  * description: "description",
9
9
  * name: "name",
10
- * planType: Schematic.CreatePlanRequestBodyPlanType.Plan
10
+ * planType: "plan"
11
11
  * }
12
12
  */
13
13
  export interface CreatePlanRequestBody {
@@ -8,16 +8,24 @@ import * as Schematic from "../../../../index";
8
8
  */
9
9
  export interface ListPlansRequest {
10
10
  companyId?: string;
11
+ /**
12
+ * Filter out plans that do not have a billing product ID
13
+ */
14
+ hasProductId?: boolean;
11
15
  ids?: string | string[];
12
- q?: string;
13
16
  /**
14
17
  * Filter by plan type
15
18
  */
16
19
  planType?: Schematic.ListPlansRequestPlanType;
20
+ q?: string;
17
21
  /**
18
22
  * Filter out plans that already have a plan entitlement for the specified feature ID
19
23
  */
20
24
  withoutEntitlementFor?: string;
25
+ /**
26
+ * Filter out plans that have a billing product ID
27
+ */
28
+ withoutProductId?: boolean;
21
29
  /**
22
30
  * Page limit (default 100)
23
31
  */
@@ -7,14 +7,14 @@ import * as Schematic from "../../../../index";
7
7
  * {
8
8
  * conditionGroups: [{
9
9
  * conditions: [{
10
- * conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
11
- * operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
10
+ * conditionType: "company",
11
+ * operator: "eq",
12
12
  * resourceIds: ["resource_ids"]
13
13
  * }]
14
14
  * }],
15
15
  * conditions: [{
16
- * conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
17
- * operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
16
+ * conditionType: "company",
17
+ * operator: "eq",
18
18
  * resourceIds: ["resource_ids"]
19
19
  * }]
20
20
  * }
@@ -7,6 +7,8 @@ import * as Schematic from "../../../index";
7
7
  */
8
8
  export interface CountPlansParams {
9
9
  companyId?: string;
10
+ /** Filter out plans that do not have a billing product ID */
11
+ hasProductId?: boolean;
10
12
  ids?: string[];
11
13
  /** Page limit (default 100) */
12
14
  limit?: number;
@@ -17,4 +19,6 @@ export interface CountPlansParams {
17
19
  q?: string;
18
20
  /** Filter out plans that already have a plan entitlement for the specified feature ID */
19
21
  withoutEntitlementFor?: string;
22
+ /** Filter out plans that have a billing product ID */
23
+ withoutProductId?: boolean;
20
24
  }
@@ -7,6 +7,8 @@ import * as Schematic from "../../../index";
7
7
  */
8
8
  export interface ListPlansParams {
9
9
  companyId?: string;
10
+ /** Filter out plans that do not have a billing product ID */
11
+ hasProductId?: boolean;
10
12
  ids?: string[];
11
13
  /** Page limit (default 100) */
12
14
  limit?: number;
@@ -17,4 +19,6 @@ export interface ListPlansParams {
17
19
  q?: string;
18
20
  /** Filter out plans that already have a plan entitlement for the specified feature ID */
19
21
  withoutEntitlementFor?: string;
22
+ /** Filter out plans that have a billing product ID */
23
+ withoutProductId?: boolean;
20
24
  }
@@ -11,7 +11,6 @@ export * from "./GetPlanResponse";
11
11
  export * from "./UpdatePlanResponse";
12
12
  export * from "./DeletePlanResponse";
13
13
  export * from "./UpsertBillingProductPlanResponse";
14
- export * from "./ListActivePlansResponse";
15
14
  export * from "./CountPlansRequestPlanType";
16
15
  export * from "./CountPlansResponseParamsPlanType";
17
16
  export * from "./CountPlansParams";
@@ -27,7 +27,6 @@ __exportStar(require("./GetPlanResponse"), exports);
27
27
  __exportStar(require("./UpdatePlanResponse"), exports);
28
28
  __exportStar(require("./DeletePlanResponse"), exports);
29
29
  __exportStar(require("./UpsertBillingProductPlanResponse"), exports);
30
- __exportStar(require("./ListActivePlansResponse"), exports);
31
30
  __exportStar(require("./CountPlansRequestPlanType"), exports);
32
31
  __exportStar(require("./CountPlansResponseParamsPlanType"), exports);
33
32
  __exportStar(require("./CountPlansParams"), exports);
@@ -86,7 +86,7 @@ export declare class Webhooks {
86
86
  * @example
87
87
  * await client.webhooks.createWebhook({
88
88
  * name: "name",
89
- * requestTypes: [Schematic.CreateWebhookRequestBodyRequestTypesItem.CompanyUpdated],
89
+ * requestTypes: ["company.updated"],
90
90
  * url: "url"
91
91
  * })
92
92
  */
@@ -64,11 +64,8 @@ class Webhooks {
64
64
  listWebhookEvents(request = {}, requestOptions) {
65
65
  var _a, _b;
66
66
  return __awaiter(this, void 0, void 0, function* () {
67
- const { webhookId, ids, q, limit, offset } = request;
67
+ const { ids, q, webhookId, limit, offset } = request;
68
68
  const _queryParams = {};
69
- if (webhookId != null) {
70
- _queryParams["webhook_id"] = webhookId;
71
- }
72
69
  if (ids != null) {
73
70
  if (Array.isArray(ids)) {
74
71
  _queryParams["ids"] = ids.map((item) => item);
@@ -80,6 +77,9 @@ class Webhooks {
80
77
  if (q != null) {
81
78
  _queryParams["q"] = q;
82
79
  }
80
+ if (webhookId != null) {
81
+ _queryParams["webhook_id"] = webhookId;
82
+ }
83
83
  if (limit != null) {
84
84
  _queryParams["limit"] = limit.toString();
85
85
  }
@@ -89,7 +89,7 @@ class Webhooks {
89
89
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
90
90
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhook-events"),
91
91
  method: "GET",
92
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
92
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -180,7 +180,7 @@ class Webhooks {
180
180
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
181
181
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhook-events/${encodeURIComponent(webhookEventId)}`),
182
182
  method: "GET",
183
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
183
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
184
184
  contentType: "application/json",
185
185
  requestType: "json",
186
186
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -267,11 +267,8 @@ class Webhooks {
267
267
  countWebhookEvents(request = {}, requestOptions) {
268
268
  var _a, _b;
269
269
  return __awaiter(this, void 0, void 0, function* () {
270
- const { webhookId, ids, q, limit, offset } = request;
270
+ const { ids, q, webhookId, limit, offset } = request;
271
271
  const _queryParams = {};
272
- if (webhookId != null) {
273
- _queryParams["webhook_id"] = webhookId;
274
- }
275
272
  if (ids != null) {
276
273
  if (Array.isArray(ids)) {
277
274
  _queryParams["ids"] = ids.map((item) => item);
@@ -283,6 +280,9 @@ class Webhooks {
283
280
  if (q != null) {
284
281
  _queryParams["q"] = q;
285
282
  }
283
+ if (webhookId != null) {
284
+ _queryParams["webhook_id"] = webhookId;
285
+ }
286
286
  if (limit != null) {
287
287
  _queryParams["limit"] = limit.toString();
288
288
  }
@@ -292,7 +292,7 @@ class Webhooks {
292
292
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
293
293
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhook-events/count"),
294
294
  method: "GET",
295
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
295
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
296
296
  contentType: "application/json",
297
297
  queryParameters: _queryParams,
298
298
  requestType: "json",
@@ -394,7 +394,7 @@ class Webhooks {
394
394
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
395
395
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhooks"),
396
396
  method: "GET",
397
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
397
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
398
398
  contentType: "application/json",
399
399
  queryParameters: _queryParams,
400
400
  requestType: "json",
@@ -479,7 +479,7 @@ class Webhooks {
479
479
  * @example
480
480
  * await client.webhooks.createWebhook({
481
481
  * name: "name",
482
- * requestTypes: [Schematic.CreateWebhookRequestBodyRequestTypesItem.CompanyUpdated],
482
+ * requestTypes: ["company.updated"],
483
483
  * url: "url"
484
484
  * })
485
485
  */
@@ -489,7 +489,7 @@ class Webhooks {
489
489
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
490
490
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhooks"),
491
491
  method: "POST",
492
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
492
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
493
493
  contentType: "application/json",
494
494
  requestType: "json",
495
495
  body: serializers.CreateWebhookRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -580,7 +580,7 @@ class Webhooks {
580
580
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
581
581
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
582
582
  method: "GET",
583
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
583
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
584
584
  contentType: "application/json",
585
585
  requestType: "json",
586
586
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -672,7 +672,7 @@ class Webhooks {
672
672
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
673
673
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
674
674
  method: "PUT",
675
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
675
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
676
676
  contentType: "application/json",
677
677
  requestType: "json",
678
678
  body: serializers.UpdateWebhookRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -771,7 +771,7 @@ class Webhooks {
771
771
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
772
772
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
773
773
  method: "DELETE",
774
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
774
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
775
775
  contentType: "application/json",
776
776
  requestType: "json",
777
777
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -872,7 +872,7 @@ class Webhooks {
872
872
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
873
873
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhooks/count"),
874
874
  method: "GET",
875
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
875
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
876
876
  contentType: "application/json",
877
877
  queryParameters: _queryParams,
878
878
  requestType: "json",
@@ -6,9 +6,9 @@
6
6
  * {}
7
7
  */
8
8
  export interface CountWebhookEventsRequest {
9
- webhookId?: string;
10
9
  ids?: string | string[];
11
10
  q?: string;
11
+ webhookId?: string;
12
12
  /**
13
13
  * Page limit (default 100)
14
14
  */
@@ -6,7 +6,7 @@ import * as Schematic from "../../../../index";
6
6
  * @example
7
7
  * {
8
8
  * name: "name",
9
- * requestTypes: [Schematic.CreateWebhookRequestBodyRequestTypesItem.CompanyUpdated],
9
+ * requestTypes: ["company.updated"],
10
10
  * url: "url"
11
11
  * }
12
12
  */
@@ -6,9 +6,9 @@
6
6
  * {}
7
7
  */
8
8
  export interface ListWebhookEventsRequest {
9
- webhookId?: string;
10
9
  ids?: string | string[];
11
10
  q?: string;
11
+ webhookId?: string;
12
12
  /**
13
13
  * Page limit (default 100)
14
14
  */
@@ -2,6 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface BillingCustomerSubscription {
5
+ currency: string;
5
6
  expiredAt?: Date;
6
7
  totalPrice: number;
7
8
  }