@schematichq/schematic-typescript-node 1.1.4 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1093) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +10 -5
  3. package/api/resources/accesstokens/client/Client.js +1 -1
  4. package/api/resources/accounts/client/Client.d.ts +1 -1
  5. package/api/resources/accounts/client/Client.js +15 -15
  6. package/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
  7. package/api/resources/billing/client/Client.d.ts +117 -32
  8. package/api/resources/billing/client/Client.js +667 -83
  9. package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +33 -0
  10. package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +6 -1
  11. package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +12 -2
  12. package/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +29 -0
  13. package/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +18 -0
  14. package/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +26 -0
  15. package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +13 -0
  16. package/{dist/api/resources/events/client/requests/ListMetricCountsRequest.d.ts → api/resources/billing/client/requests/ListInvoicesRequest.d.ts} +6 -9
  17. package/api/resources/billing/client/requests/ListMetersRequest.d.ts +18 -0
  18. package/api/resources/{events/client/requests/ListMetricCountsRequest.d.ts → billing/client/requests/ListPaymentMethodsRequest.d.ts} +6 -9
  19. package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +13 -0
  20. package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +20 -0
  21. package/api/resources/billing/client/requests/index.d.ts +8 -3
  22. package/api/resources/billing/types/CountBillingProductsParams.d.ts +22 -0
  23. package/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
  24. package/api/resources/{components/types/HydrateComponentResponse.d.ts → billing/types/DeleteProductPriceResponse.d.ts} +2 -2
  25. package/api/resources/billing/types/ListBillingProductsParams.d.ts +7 -0
  26. package/api/resources/{events/types/ListMetricCountsParams.d.ts → billing/types/ListInvoicesParams.d.ts} +3 -8
  27. package/api/resources/{plans/types/ListActivePlansResponse.d.ts → billing/types/ListInvoicesResponse.d.ts} +3 -3
  28. package/api/resources/billing/types/ListMetersParams.d.ts +13 -0
  29. package/{dist/api/resources/plans/types/ListActivePlansResponse.d.ts → api/resources/billing/types/ListMetersResponse.d.ts} +3 -3
  30. package/{dist/api/resources/events/types/ListMetricCountsParams.d.ts → api/resources/billing/types/ListPaymentMethodsParams.d.ts} +3 -8
  31. package/api/resources/{events/types/ListMetricCountsResponse.d.ts → billing/types/ListPaymentMethodsResponse.d.ts} +3 -3
  32. package/api/resources/billing/types/ListProductPricesParams.d.ts +7 -0
  33. package/api/resources/billing/types/SearchBillingPricesParams.d.ts +15 -0
  34. package/{dist/api/resources/events/types/ListMetricCountsResponse.d.ts → api/resources/billing/types/SearchBillingPricesResponse.d.ts} +3 -3
  35. package/{dist/api/resources/components/types/HydrateComponentResponse.d.ts → api/resources/billing/types/UpsertBillingMeterResponse.d.ts} +2 -2
  36. package/api/resources/billing/types/{UpdateBillingPlanGroupResponse.d.ts → UpsertInvoiceResponse.d.ts} +2 -2
  37. package/api/resources/billing/types/{CreateBillingPlanGroupResponse.d.ts → UpsertPaymentMethodResponse.d.ts} +2 -2
  38. package/api/resources/billing/types/index.d.ts +14 -4
  39. package/api/resources/billing/types/index.js +14 -4
  40. package/api/resources/companies/client/Client.d.ts +5 -7
  41. package/api/resources/companies/client/Client.js +64 -50
  42. package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
  43. package/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
  44. package/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
  45. package/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
  46. package/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
  47. package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
  48. package/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
  49. package/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
  50. package/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
  51. package/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
  52. package/api/resources/companies/types/CountUsersParams.d.ts +4 -1
  53. package/api/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  54. package/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
  55. package/api/resources/companies/types/ListUsersParams.d.ts +4 -1
  56. package/api/resources/components/client/Client.d.ts +9 -9
  57. package/api/resources/components/client/Client.js +49 -40
  58. package/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
  59. package/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
  60. package/api/resources/components/client/requests/index.d.ts +1 -0
  61. package/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
  62. package/api/resources/{billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts → components/types/PreviewComponentDataResponse.d.ts} +3 -3
  63. package/api/resources/components/types/index.d.ts +2 -1
  64. package/api/resources/components/types/index.js +2 -1
  65. package/api/resources/crm/client/Client.js +5 -5
  66. package/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  67. package/api/resources/entitlements/client/Client.d.ts +4 -4
  68. package/api/resources/entitlements/client/Client.js +39 -27
  69. package/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
  70. package/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
  71. package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +22 -0
  72. package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -1
  73. package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -1
  74. package/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
  75. package/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
  76. package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +22 -0
  77. package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -1
  78. package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  79. package/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
  80. package/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  81. package/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +8 -0
  82. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
  83. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
  84. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  85. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  86. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
  87. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
  88. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  89. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  90. package/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
  91. package/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  92. package/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +8 -0
  93. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
  94. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
  95. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  96. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  97. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
  98. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
  99. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  100. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  101. package/api/resources/entitlements/types/index.d.ts +4 -0
  102. package/api/resources/entitlements/types/index.js +4 -0
  103. package/api/resources/events/client/Client.d.ts +2 -15
  104. package/api/resources/events/client/Client.js +9 -142
  105. package/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
  106. package/api/resources/events/client/requests/index.d.ts +0 -1
  107. package/api/resources/events/types/index.d.ts +0 -2
  108. package/api/resources/events/types/index.js +0 -2
  109. package/api/resources/features/client/Client.d.ts +21 -21
  110. package/api/resources/features/client/Client.js +40 -40
  111. package/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
  112. package/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
  113. package/api/resources/index.d.ts +3 -0
  114. package/api/resources/index.js +4 -1
  115. package/api/resources/plangroups/client/Client.d.ts +74 -0
  116. package/api/resources/plangroups/client/Client.js +346 -0
  117. package/api/resources/plangroups/client/index.d.ts +1 -0
  118. package/api/resources/plangroups/client/index.js +17 -0
  119. package/{dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +5 -1
  120. package/api/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +5 -1
  121. package/api/resources/plangroups/client/requests/index.d.ts +2 -0
  122. package/api/resources/plangroups/client/requests/index.js +2 -0
  123. package/api/resources/plangroups/index.d.ts +2 -0
  124. package/api/resources/plangroups/index.js +18 -0
  125. package/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
  126. package/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
  127. package/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
  128. package/api/resources/plangroups/types/index.d.ts +3 -0
  129. package/api/resources/plangroups/types/index.js +19 -0
  130. package/api/resources/plans/client/Client.d.ts +7 -18
  131. package/api/resources/plans/client/Client.js +37 -113
  132. package/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
  133. package/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -1
  134. package/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
  135. package/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
  136. package/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
  137. package/api/resources/plans/types/CountPlansParams.d.ts +4 -0
  138. package/api/resources/plans/types/ListPlansParams.d.ts +4 -0
  139. package/api/resources/plans/types/index.d.ts +0 -1
  140. package/api/resources/plans/types/index.js +0 -1
  141. package/api/resources/webhooks/client/Client.d.ts +1 -1
  142. package/api/resources/webhooks/client/Client.js +18 -18
  143. package/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
  144. package/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
  145. package/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
  146. package/api/types/BillingCustomerSubscription.d.ts +4 -0
  147. package/api/types/BillingMeterResponseData.d.ts +10 -0
  148. package/api/types/BillingPriceResponseData.d.ts +1 -0
  149. package/api/types/BillingPriceView.d.ts +18 -0
  150. package/api/types/BillingProductDetailResponseData.d.ts +1 -1
  151. package/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
  152. package/api/types/BillingProductPlanResponseData.d.ts +2 -0
  153. package/api/types/BillingProductPriceResponseData.d.ts +15 -0
  154. package/api/types/BillingProductPricing.d.ts +6 -2
  155. package/api/types/BillingSubscriptionResponseData.d.ts +13 -6
  156. package/api/types/BillingSubscriptionView.d.ts +23 -0
  157. package/api/types/CheckFlagRequestBody.d.ts +2 -2
  158. package/api/types/CompanyDetailResponseData.d.ts +5 -3
  159. package/api/types/CompanyOverrideResponseData.d.ts +3 -1
  160. package/api/types/CompanyPlanDetailResponseData.d.ts +26 -0
  161. package/api/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +2 -1
  162. package/api/types/CompanySubscriptionResponseData.d.ts +5 -0
  163. package/api/types/ComponentCapabilities.d.ts +6 -0
  164. package/api/types/ComponentCapabilities.js +5 -0
  165. package/api/types/ComponentHydrateResponseData.d.ts +6 -3
  166. package/api/types/ComponentPreviewResponseData.d.ts +19 -0
  167. package/api/types/ComponentPreviewResponseData.js +5 -0
  168. package/api/types/ComponentResponseData.d.ts +3 -0
  169. package/api/types/CreateEntitlementReqCommon.d.ts +14 -0
  170. package/api/types/CreateEntitlementReqCommon.js +5 -0
  171. package/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +11 -0
  172. package/api/types/{UpdateReqCommonMetricPeriod.js → CreateEntitlementReqCommonMetricPeriod.js} +4 -2
  173. package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  174. package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  175. package/api/types/{UpdateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
  176. package/{dist/api/types/CreateReqCommonValueType.js → api/types/CreateEntitlementReqCommonValueType.js} +2 -2
  177. package/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  178. package/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
  179. package/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
  180. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +3 -1
  181. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +2 -0
  182. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
  183. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
  184. package/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
  185. package/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
  186. package/api/types/EventBodyFlagCheck.d.ts +2 -2
  187. package/api/types/FeatureCompanyResponseData.d.ts +2 -0
  188. package/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
  189. package/api/types/FeatureUsageResponseData.d.ts +2 -0
  190. package/{dist/api/types/RuleConditionResourceResponseData.d.ts → api/types/GenericPreviewObject.d.ts} +3 -1
  191. package/api/types/GenericPreviewObject.js +5 -0
  192. package/api/types/InvoiceRequestBody.d.ts +16 -0
  193. package/api/types/InvoiceRequestBody.js +5 -0
  194. package/api/types/InvoiceResponseData.d.ts +22 -0
  195. package/api/types/InvoiceResponseData.js +5 -0
  196. package/api/types/MeterRequestBody.d.ts +8 -0
  197. package/api/types/MeterRequestBody.js +5 -0
  198. package/api/types/PaymentMethodRequestBody.d.ts +17 -0
  199. package/api/types/PaymentMethodRequestBody.js +5 -0
  200. package/api/types/PaymentMethodResponseData.d.ts +23 -0
  201. package/api/types/PaymentMethodResponseData.js +5 -0
  202. package/api/types/PlanDetailResponseData.d.ts +7 -3
  203. package/api/types/PlanEntitlementResponseData.d.ts +3 -3
  204. package/api/types/PlanGroupDetailResponseData.d.ts +16 -0
  205. package/api/types/PlanGroupDetailResponseData.js +5 -0
  206. package/api/types/PlanGroupPlanDetailResponseData.d.ts +24 -0
  207. package/api/types/PlanGroupPlanDetailResponseData.js +5 -0
  208. package/api/types/{BillingPlanGroupResponseData.d.ts → PlanGroupResponseData.d.ts} +4 -1
  209. package/api/types/PlanGroupResponseData.js +5 -0
  210. package/api/types/PlanResponseData.d.ts +1 -0
  211. package/api/types/PreviewObjectResponseData.d.ts +9 -0
  212. package/api/types/PreviewObjectResponseData.js +5 -0
  213. package/api/types/RuleConditionDetailResponseData.d.ts +2 -1
  214. package/api/types/RuleConditionResponseData.d.ts +1 -0
  215. package/api/types/StripeEmbedInfo.d.ts +7 -0
  216. package/api/types/StripeEmbedInfo.js +5 -0
  217. package/api/types/UpdateEntitlementReqCommon.d.ts +13 -0
  218. package/api/types/UpdateEntitlementReqCommon.js +5 -0
  219. package/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +11 -0
  220. package/api/types/{CreateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonMetricPeriod.js} +4 -2
  221. package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  222. package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  223. package/{dist/api/types/CreateReqCommonValueType.d.ts → api/types/UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  224. package/{dist/api/types/UpdateReqCommonValueType.js → api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
  225. package/api/types/index.d.ts +28 -10
  226. package/api/types/index.js +28 -10
  227. package/core/fetcher/Fetcher.d.ts +1 -1
  228. package/core/fetcher/getResponseBody.js +3 -0
  229. package/core/fetcher/requestWithRetries.js +13 -4
  230. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
  231. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
  232. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
  233. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
  234. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
  235. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
  236. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
  237. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
  238. package/core/schemas/Schema.d.ts +1 -0
  239. package/core/schemas/Schema.js +1 -0
  240. package/core/schemas/builders/bigint/bigint.d.ts +2 -0
  241. package/core/schemas/builders/bigint/bigint.js +50 -0
  242. package/core/schemas/builders/bigint/index.d.ts +1 -0
  243. package/core/schemas/builders/bigint/index.js +5 -0
  244. package/core/schemas/builders/index.d.ts +1 -0
  245. package/core/schemas/builders/index.js +1 -0
  246. package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  247. package/dist/Client.d.ts +3 -0
  248. package/dist/Client.js +10 -5
  249. package/dist/api/resources/accesstokens/client/Client.js +1 -1
  250. package/dist/api/resources/accounts/client/Client.d.ts +1 -1
  251. package/dist/api/resources/accounts/client/Client.js +15 -15
  252. package/dist/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
  253. package/dist/api/resources/billing/client/Client.d.ts +117 -32
  254. package/dist/api/resources/billing/client/Client.js +667 -83
  255. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +33 -0
  256. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.js +5 -0
  257. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +6 -1
  258. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +12 -2
  259. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +29 -0
  260. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.js +5 -0
  261. package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +18 -0
  262. package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.js +5 -0
  263. package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +26 -0
  264. package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +5 -0
  265. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +13 -0
  266. package/dist/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +22 -0
  267. package/dist/api/resources/billing/client/requests/ListInvoicesRequest.js +5 -0
  268. package/dist/api/resources/billing/client/requests/ListMetersRequest.d.ts +18 -0
  269. package/dist/api/resources/billing/client/requests/ListMetersRequest.js +5 -0
  270. package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +22 -0
  271. package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.js +5 -0
  272. package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +13 -0
  273. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +20 -0
  274. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.js +5 -0
  275. package/dist/api/resources/billing/client/requests/index.d.ts +8 -3
  276. package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +22 -0
  277. package/dist/api/resources/billing/types/CountBillingProductsParams.js +5 -0
  278. package/dist/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
  279. package/dist/api/resources/billing/types/CountBillingProductsResponse.js +5 -0
  280. package/dist/api/resources/billing/types/DeleteProductPriceResponse.d.ts +9 -0
  281. package/dist/api/resources/billing/types/DeleteProductPriceResponse.js +5 -0
  282. package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +7 -0
  283. package/dist/api/resources/billing/types/ListInvoicesParams.d.ts +15 -0
  284. package/dist/api/resources/billing/types/ListInvoicesParams.js +5 -0
  285. package/dist/api/resources/billing/types/ListInvoicesResponse.d.ts +10 -0
  286. package/dist/api/resources/billing/types/ListInvoicesResponse.js +5 -0
  287. package/dist/api/resources/billing/types/ListMetersParams.d.ts +13 -0
  288. package/dist/api/resources/billing/types/ListMetersParams.js +5 -0
  289. package/dist/api/resources/billing/types/ListMetersResponse.d.ts +10 -0
  290. package/dist/api/resources/billing/types/ListMetersResponse.js +5 -0
  291. package/dist/api/resources/billing/types/ListPaymentMethodsParams.d.ts +15 -0
  292. package/dist/api/resources/billing/types/ListPaymentMethodsParams.js +5 -0
  293. package/dist/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +10 -0
  294. package/dist/api/resources/billing/types/ListPaymentMethodsResponse.js +5 -0
  295. package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +7 -0
  296. package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +15 -0
  297. package/dist/api/resources/billing/types/SearchBillingPricesParams.js +5 -0
  298. package/dist/api/resources/billing/types/SearchBillingPricesResponse.d.ts +10 -0
  299. package/dist/api/resources/billing/types/SearchBillingPricesResponse.js +5 -0
  300. package/dist/api/resources/billing/types/UpsertBillingMeterResponse.d.ts +9 -0
  301. package/dist/api/resources/billing/types/UpsertBillingMeterResponse.js +5 -0
  302. package/dist/api/resources/billing/types/UpsertInvoiceResponse.d.ts +9 -0
  303. package/dist/api/resources/billing/types/UpsertInvoiceResponse.js +5 -0
  304. package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.d.ts +9 -0
  305. package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.js +5 -0
  306. package/dist/api/resources/billing/types/index.d.ts +14 -4
  307. package/dist/api/resources/billing/types/index.js +14 -4
  308. package/dist/api/resources/companies/client/Client.d.ts +5 -7
  309. package/dist/api/resources/companies/client/Client.js +64 -50
  310. package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
  311. package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
  312. package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
  313. package/dist/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
  314. package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
  315. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
  316. package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
  317. package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
  318. package/dist/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
  319. package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
  320. package/dist/api/resources/companies/types/CountUsersParams.d.ts +4 -1
  321. package/dist/api/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  322. package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
  323. package/dist/api/resources/companies/types/ListUsersParams.d.ts +4 -1
  324. package/dist/api/resources/components/client/Client.d.ts +9 -9
  325. package/dist/api/resources/components/client/Client.js +49 -40
  326. package/dist/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
  327. package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
  328. package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.js +5 -0
  329. package/dist/api/resources/components/client/requests/index.d.ts +1 -0
  330. package/dist/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
  331. package/dist/api/resources/components/types/PreviewComponentDataParams.js +5 -0
  332. package/{api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts → dist/api/resources/components/types/PreviewComponentDataResponse.d.ts} +3 -3
  333. package/dist/api/resources/components/types/PreviewComponentDataResponse.js +5 -0
  334. package/dist/api/resources/components/types/index.d.ts +2 -1
  335. package/dist/api/resources/components/types/index.js +2 -1
  336. package/dist/api/resources/crm/client/Client.js +5 -5
  337. package/dist/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  338. package/dist/api/resources/entitlements/client/Client.d.ts +4 -4
  339. package/dist/api/resources/entitlements/client/Client.js +39 -27
  340. package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
  341. package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
  342. package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +22 -0
  343. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -1
  344. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -1
  345. package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
  346. package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
  347. package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +22 -0
  348. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -1
  349. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  350. package/dist/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
  351. package/dist/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  352. package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +8 -0
  353. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
  354. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
  355. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  356. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  357. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
  358. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
  359. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  360. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  361. package/dist/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
  362. package/dist/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  363. package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +8 -0
  364. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
  365. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
  366. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  367. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  368. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
  369. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
  370. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  371. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  372. package/dist/api/resources/entitlements/types/index.d.ts +4 -0
  373. package/dist/api/resources/entitlements/types/index.js +4 -0
  374. package/dist/api/resources/events/client/Client.d.ts +2 -15
  375. package/dist/api/resources/events/client/Client.js +9 -142
  376. package/dist/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
  377. package/dist/api/resources/events/client/requests/index.d.ts +0 -1
  378. package/dist/api/resources/events/types/index.d.ts +0 -2
  379. package/dist/api/resources/events/types/index.js +0 -2
  380. package/dist/api/resources/features/client/Client.d.ts +21 -21
  381. package/dist/api/resources/features/client/Client.js +40 -40
  382. package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
  383. package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
  384. package/dist/api/resources/index.d.ts +3 -0
  385. package/dist/api/resources/index.js +4 -1
  386. package/dist/api/resources/plangroups/client/Client.d.ts +74 -0
  387. package/dist/api/resources/plangroups/client/Client.js +346 -0
  388. package/dist/api/resources/plangroups/client/index.d.ts +1 -0
  389. package/dist/api/resources/plangroups/client/index.js +17 -0
  390. package/{api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +5 -1
  391. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
  392. package/dist/api/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +5 -1
  393. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +5 -0
  394. package/dist/api/resources/plangroups/client/requests/index.d.ts +2 -0
  395. package/dist/api/resources/plangroups/client/requests/index.js +2 -0
  396. package/dist/api/resources/plangroups/index.d.ts +2 -0
  397. package/dist/api/resources/plangroups/index.js +18 -0
  398. package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
  399. package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.js +5 -0
  400. package/dist/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
  401. package/dist/api/resources/plangroups/types/GetPlanGroupResponse.js +5 -0
  402. package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
  403. package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.js +5 -0
  404. package/dist/api/resources/plangroups/types/index.d.ts +3 -0
  405. package/dist/api/resources/plangroups/types/index.js +19 -0
  406. package/dist/api/resources/plans/client/Client.d.ts +7 -18
  407. package/dist/api/resources/plans/client/Client.js +37 -113
  408. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
  409. package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -1
  410. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
  411. package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
  412. package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
  413. package/dist/api/resources/plans/types/CountPlansParams.d.ts +4 -0
  414. package/dist/api/resources/plans/types/ListPlansParams.d.ts +4 -0
  415. package/dist/api/resources/plans/types/index.d.ts +0 -1
  416. package/dist/api/resources/plans/types/index.js +0 -1
  417. package/dist/api/resources/webhooks/client/Client.d.ts +1 -1
  418. package/dist/api/resources/webhooks/client/Client.js +18 -18
  419. package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
  420. package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
  421. package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
  422. package/dist/api/types/BillingCustomerSubscription.d.ts +4 -0
  423. package/dist/api/types/BillingMeterResponseData.d.ts +10 -0
  424. package/dist/api/types/BillingMeterResponseData.js +5 -0
  425. package/dist/api/types/BillingPriceResponseData.d.ts +1 -0
  426. package/dist/api/types/BillingPriceView.d.ts +18 -0
  427. package/dist/api/types/BillingPriceView.js +5 -0
  428. package/dist/api/types/BillingProductDetailResponseData.d.ts +1 -1
  429. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
  430. package/dist/api/types/BillingProductPlanResponseData.d.ts +2 -0
  431. package/dist/api/types/BillingProductPriceResponseData.d.ts +15 -0
  432. package/dist/api/types/BillingProductPriceResponseData.js +5 -0
  433. package/dist/api/types/BillingProductPricing.d.ts +6 -2
  434. package/dist/api/types/BillingSubscriptionResponseData.d.ts +13 -6
  435. package/dist/api/types/BillingSubscriptionView.d.ts +23 -0
  436. package/dist/api/types/BillingSubscriptionView.js +5 -0
  437. package/dist/api/types/CheckFlagRequestBody.d.ts +2 -2
  438. package/dist/api/types/CompanyDetailResponseData.d.ts +5 -3
  439. package/dist/api/types/CompanyOverrideResponseData.d.ts +3 -1
  440. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +26 -0
  441. package/dist/api/types/CompanyPlanDetailResponseData.js +5 -0
  442. package/dist/api/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +2 -1
  443. package/dist/api/types/CompanyPlanWithBillingSubView.js +5 -0
  444. package/dist/api/types/CompanySubscriptionResponseData.d.ts +5 -0
  445. package/dist/api/types/ComponentCapabilities.d.ts +6 -0
  446. package/dist/api/types/ComponentCapabilities.js +5 -0
  447. package/dist/api/types/ComponentHydrateResponseData.d.ts +6 -3
  448. package/dist/api/types/ComponentPreviewResponseData.d.ts +19 -0
  449. package/dist/api/types/ComponentPreviewResponseData.js +5 -0
  450. package/dist/api/types/ComponentResponseData.d.ts +3 -0
  451. package/dist/api/types/CreateEntitlementReqCommon.d.ts +14 -0
  452. package/dist/api/types/CreateEntitlementReqCommon.js +5 -0
  453. package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +11 -0
  454. package/dist/api/types/{CreateReqCommonMetricPeriod.js → CreateEntitlementReqCommonMetricPeriod.js} +4 -2
  455. package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  456. package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  457. package/{api/types/CreateReqCommonValueType.d.ts → dist/api/types/CreateEntitlementReqCommonValueType.d.ts} +2 -2
  458. package/{api/types/UpdateReqCommonValueType.js → dist/api/types/CreateEntitlementReqCommonValueType.js} +2 -2
  459. package/dist/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  460. package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
  461. package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
  462. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +3 -1
  463. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +2 -0
  464. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
  465. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
  466. package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
  467. package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
  468. package/dist/api/types/EventBodyFlagCheck.d.ts +2 -2
  469. package/dist/api/types/FeatureCompanyResponseData.d.ts +2 -0
  470. package/dist/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
  471. package/dist/api/types/FeatureUsageResponseData.d.ts +2 -0
  472. package/{api/types/RuleConditionResourceResponseData.d.ts → dist/api/types/GenericPreviewObject.d.ts} +3 -1
  473. package/dist/api/types/GenericPreviewObject.js +5 -0
  474. package/dist/api/types/InvoiceRequestBody.d.ts +16 -0
  475. package/dist/api/types/InvoiceRequestBody.js +5 -0
  476. package/dist/api/types/InvoiceResponseData.d.ts +22 -0
  477. package/dist/api/types/InvoiceResponseData.js +5 -0
  478. package/dist/api/types/MeterRequestBody.d.ts +8 -0
  479. package/dist/api/types/MeterRequestBody.js +5 -0
  480. package/dist/api/types/PaymentMethodRequestBody.d.ts +17 -0
  481. package/dist/api/types/PaymentMethodRequestBody.js +5 -0
  482. package/dist/api/types/PaymentMethodResponseData.d.ts +23 -0
  483. package/dist/api/types/PaymentMethodResponseData.js +5 -0
  484. package/dist/api/types/PlanDetailResponseData.d.ts +7 -3
  485. package/dist/api/types/PlanEntitlementResponseData.d.ts +3 -3
  486. package/dist/api/types/PlanGroupDetailResponseData.d.ts +16 -0
  487. package/dist/api/types/PlanGroupDetailResponseData.js +5 -0
  488. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +24 -0
  489. package/dist/api/types/PlanGroupPlanDetailResponseData.js +5 -0
  490. package/dist/api/types/{BillingPlanGroupResponseData.d.ts → PlanGroupResponseData.d.ts} +4 -1
  491. package/dist/api/types/PlanGroupResponseData.js +5 -0
  492. package/dist/api/types/PlanResponseData.d.ts +1 -0
  493. package/dist/api/types/PreviewObjectResponseData.d.ts +9 -0
  494. package/dist/api/types/PreviewObjectResponseData.js +5 -0
  495. package/dist/api/types/RuleConditionDetailResponseData.d.ts +2 -1
  496. package/dist/api/types/RuleConditionResponseData.d.ts +1 -0
  497. package/dist/api/types/StripeEmbedInfo.d.ts +7 -0
  498. package/dist/api/types/StripeEmbedInfo.js +5 -0
  499. package/dist/api/types/UpdateEntitlementReqCommon.d.ts +13 -0
  500. package/dist/api/types/UpdateEntitlementReqCommon.js +5 -0
  501. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +11 -0
  502. package/dist/api/types/{UpdateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonMetricPeriod.js} +4 -2
  503. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  504. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  505. package/dist/api/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  506. package/{api/types/CreateReqCommonValueType.js → dist/api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
  507. package/dist/api/types/index.d.ts +28 -10
  508. package/dist/api/types/index.js +28 -10
  509. package/dist/core/fetcher/Fetcher.d.ts +1 -1
  510. package/dist/core/fetcher/getResponseBody.js +3 -0
  511. package/dist/core/fetcher/requestWithRetries.js +13 -4
  512. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
  513. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
  514. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
  515. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
  516. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
  517. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
  518. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
  519. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
  520. package/dist/core/schemas/Schema.d.ts +1 -0
  521. package/dist/core/schemas/Schema.js +1 -0
  522. package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
  523. package/dist/core/schemas/builders/bigint/bigint.js +50 -0
  524. package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
  525. package/dist/core/schemas/builders/bigint/index.js +5 -0
  526. package/dist/core/schemas/builders/index.d.ts +1 -0
  527. package/dist/core/schemas/builders/index.js +1 -0
  528. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  529. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +3 -0
  530. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +3 -0
  531. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -0
  532. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +4 -0
  533. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
  534. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
  535. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
  536. package/dist/serialization/resources/billing/client/requests/{ChangeSubscriptionRequestBody.js → CreateMeterRequestBody.js} +6 -5
  537. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
  538. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
  539. package/dist/serialization/resources/billing/client/requests/index.d.ts +3 -3
  540. package/dist/serialization/resources/billing/client/requests/index.js +7 -7
  541. package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +20 -0
  542. package/dist/serialization/resources/{events/types/ListMetricCountsParams.js → billing/types/CountBillingProductsParams.js} +9 -10
  543. package/dist/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
  544. package/dist/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
  545. package/dist/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
  546. package/{serialization/resources/plans/types/ListActivePlansResponse.js → dist/serialization/resources/billing/types/DeleteProductPriceResponse.js} +4 -4
  547. package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
  548. package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +4 -0
  549. package/dist/serialization/resources/billing/types/ListInvoicesParams.d.ts +16 -0
  550. package/dist/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
  551. package/dist/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
  552. package/dist/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
  553. package/dist/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
  554. package/dist/serialization/resources/billing/types/ListMetersParams.js +35 -0
  555. package/dist/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
  556. package/dist/serialization/resources/billing/types/ListMetersResponse.js +36 -0
  557. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
  558. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
  559. package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
  560. package/dist/serialization/resources/billing/types/{ChangeSubscriptionWebResponse.js → ListPaymentMethodsResponse.js} +6 -5
  561. package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +4 -0
  562. package/dist/serialization/resources/billing/types/ListProductPricesParams.js +4 -0
  563. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
  564. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +37 -0
  565. package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
  566. package/dist/serialization/resources/billing/types/{CreateBillingPlanGroupResponse.js → SearchBillingPricesResponse.js} +6 -5
  567. package/dist/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
  568. package/dist/serialization/resources/{plans/types/ListActivePlansResponse.js → billing/types/UpsertBillingMeterResponse.js} +4 -4
  569. package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
  570. package/{serialization/resources/components/types/HydrateComponentResponse.js → dist/serialization/resources/billing/types/UpsertInvoiceResponse.js} +4 -4
  571. package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
  572. package/dist/serialization/resources/{components/types/HydrateComponentResponse.js → billing/types/UpsertPaymentMethodResponse.js} +4 -4
  573. package/dist/serialization/resources/billing/types/index.d.ts +14 -4
  574. package/dist/serialization/resources/billing/types/index.js +14 -4
  575. package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  576. package/dist/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
  577. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  578. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +1 -0
  579. package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  580. package/dist/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
  581. package/dist/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
  582. package/dist/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
  583. package/dist/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
  584. package/dist/serialization/resources/{billing/types/UpdateBillingPlanGroupResponse.js → components/types/PreviewComponentDataResponse.js} +6 -5
  585. package/dist/serialization/resources/components/types/index.d.ts +2 -1
  586. package/dist/serialization/resources/components/types/index.js +2 -1
  587. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  588. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
  589. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
  590. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +4 -0
  591. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -0
  592. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
  593. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
  594. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +4 -0
  595. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
  596. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -0
  597. package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  598. package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
  599. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
  600. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +1 -0
  601. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  602. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  603. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  604. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  605. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  606. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  607. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  608. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  609. package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  610. package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
  611. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
  612. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +1 -0
  613. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  614. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  615. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  616. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  617. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  618. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  619. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  620. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  621. package/dist/serialization/resources/entitlements/types/index.d.ts +4 -0
  622. package/dist/serialization/resources/entitlements/types/index.js +4 -0
  623. package/dist/serialization/resources/events/types/index.d.ts +0 -2
  624. package/dist/serialization/resources/events/types/index.js +0 -2
  625. package/dist/serialization/resources/index.d.ts +3 -0
  626. package/dist/serialization/resources/index.js +4 -1
  627. package/dist/serialization/resources/plangroups/client/index.d.ts +1 -0
  628. package/dist/serialization/resources/plangroups/client/index.js +17 -0
  629. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +16 -0
  630. package/{serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js → dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +5 -2
  631. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +16 -0
  632. package/dist/serialization/resources/{billing/client/requests/CreateBillingPlanGroupRequestBody.js → plangroups/client/requests/UpdatePlanGroupRequestBody.js} +5 -2
  633. package/dist/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
  634. package/dist/serialization/resources/plangroups/client/requests/index.js +7 -0
  635. package/dist/serialization/resources/plangroups/index.d.ts +2 -0
  636. package/dist/serialization/resources/plangroups/index.js +18 -0
  637. package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
  638. package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
  639. package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
  640. package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
  641. package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
  642. package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
  643. package/dist/serialization/resources/plangroups/types/index.d.ts +3 -0
  644. package/dist/serialization/resources/plangroups/types/index.js +19 -0
  645. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
  646. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
  647. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  648. package/dist/serialization/resources/plans/types/CountPlansParams.js +2 -0
  649. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  650. package/dist/serialization/resources/plans/types/ListPlansParams.js +2 -0
  651. package/dist/serialization/resources/plans/types/index.d.ts +0 -1
  652. package/dist/serialization/resources/plans/types/index.js +0 -1
  653. package/dist/serialization/types/BillingCustomerSubscription.d.ts +4 -0
  654. package/dist/serialization/types/BillingCustomerSubscription.js +4 -0
  655. package/dist/serialization/types/BillingMeterResponseData.d.ts +16 -0
  656. package/dist/serialization/types/BillingMeterResponseData.js +37 -0
  657. package/dist/serialization/types/BillingPriceResponseData.d.ts +1 -0
  658. package/dist/serialization/types/BillingPriceResponseData.js +1 -0
  659. package/dist/serialization/types/BillingPriceView.d.ts +24 -0
  660. package/dist/serialization/types/BillingPriceView.js +45 -0
  661. package/dist/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
  662. package/dist/serialization/types/BillingProductDetailResponseData.js +1 -1
  663. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
  664. package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +5 -2
  665. package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
  666. package/dist/serialization/types/BillingProductPlanResponseData.js +2 -0
  667. package/dist/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
  668. package/{serialization/types/MetricCountsHourlyResponseData.js → dist/serialization/types/BillingProductPriceResponseData.js} +11 -8
  669. package/dist/serialization/types/BillingProductPricing.d.ts +6 -2
  670. package/dist/serialization/types/BillingProductPricing.js +6 -2
  671. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +13 -3
  672. package/dist/serialization/types/BillingSubscriptionResponseData.js +13 -3
  673. package/dist/serialization/types/BillingSubscriptionView.d.ts +31 -0
  674. package/dist/serialization/types/BillingSubscriptionView.js +52 -0
  675. package/dist/serialization/types/CheckFlagRequestBody.d.ts +2 -2
  676. package/dist/serialization/types/CheckFlagRequestBody.js +2 -2
  677. package/dist/serialization/types/CompanyDetailResponseData.d.ts +8 -5
  678. package/dist/serialization/types/CompanyDetailResponseData.js +8 -5
  679. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
  680. package/dist/serialization/types/CompanyOverrideResponseData.js +3 -1
  681. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +35 -0
  682. package/dist/serialization/types/CompanyPlanDetailResponseData.js +56 -0
  683. package/dist/serialization/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +3 -2
  684. package/dist/serialization/types/{BillingPlan.js → CompanyPlanWithBillingSubView.js} +3 -2
  685. package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +7 -0
  686. package/dist/serialization/types/CompanySubscriptionResponseData.js +7 -0
  687. package/dist/serialization/types/ComponentCapabilities.d.ts +12 -0
  688. package/dist/serialization/types/{UpdateReqCommonValueType.js → ComponentCapabilities.js} +4 -2
  689. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +11 -0
  690. package/dist/serialization/types/ComponentHydrateResponseData.js +11 -0
  691. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +29 -0
  692. package/dist/serialization/types/ComponentPreviewResponseData.js +50 -0
  693. package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +22 -0
  694. package/{serialization/types/CreateReqCommon.js → dist/serialization/types/CreateEntitlementReqCommon.js} +9 -6
  695. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  696. package/dist/serialization/types/{RuleConditionResourceResponseData.js → CreateEntitlementReqCommonMetricPeriod.js} +2 -5
  697. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  698. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  699. package/dist/serialization/types/{UpdateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
  700. package/dist/serialization/types/{CreateReqCommonMetricPeriod.js → CreateEntitlementReqCommonValueType.js} +2 -2
  701. package/dist/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  702. package/dist/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -0
  703. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
  704. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
  705. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  706. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  707. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  708. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
  709. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
  710. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
  711. package/dist/serialization/types/EventBodyFlagCheck.d.ts +2 -2
  712. package/dist/serialization/types/EventBodyFlagCheck.js +2 -2
  713. package/dist/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
  714. package/dist/serialization/types/FeatureCompanyResponseData.js +1 -0
  715. package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
  716. package/dist/serialization/types/FeatureCompanyUserResponseData.js +1 -0
  717. package/dist/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  718. package/dist/serialization/types/FeatureUsageResponseData.js +1 -0
  719. package/dist/serialization/types/{RuleConditionResourceResponseData.d.ts → GenericPreviewObject.d.ts} +4 -2
  720. package/{serialization/types/RuleConditionResourceResponseData.js → dist/serialization/types/GenericPreviewObject.js} +4 -2
  721. package/dist/serialization/types/InvoiceRequestBody.d.ts +22 -0
  722. package/dist/serialization/types/InvoiceRequestBody.js +43 -0
  723. package/dist/serialization/types/InvoiceResponseData.d.ts +28 -0
  724. package/dist/serialization/types/InvoiceResponseData.js +49 -0
  725. package/dist/serialization/types/MeterRequestBody.d.ts +14 -0
  726. package/{serialization/types/BillingPlanGroupResponseData.js → dist/serialization/types/MeterRequestBody.js} +5 -5
  727. package/dist/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
  728. package/dist/serialization/types/PaymentMethodRequestBody.js +44 -0
  729. package/dist/serialization/types/PaymentMethodResponseData.d.ts +29 -0
  730. package/dist/serialization/types/PaymentMethodResponseData.js +50 -0
  731. package/dist/serialization/types/PlanDetailResponseData.d.ts +8 -0
  732. package/dist/serialization/types/PlanDetailResponseData.js +8 -0
  733. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
  734. package/dist/serialization/types/PlanEntitlementResponseData.js +4 -0
  735. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +19 -0
  736. package/dist/serialization/types/PlanGroupDetailResponseData.js +40 -0
  737. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +33 -0
  738. package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +54 -0
  739. package/dist/serialization/types/PlanGroupResponseData.d.ts +17 -0
  740. package/dist/serialization/types/PlanGroupResponseData.js +38 -0
  741. package/dist/serialization/types/PlanResponseData.d.ts +1 -0
  742. package/dist/serialization/types/PlanResponseData.js +1 -0
  743. package/dist/serialization/types/PreviewObjectResponseData.d.ts +15 -0
  744. package/dist/serialization/types/PreviewObjectResponseData.js +36 -0
  745. package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
  746. package/dist/serialization/types/RuleConditionDetailResponseData.js +3 -2
  747. package/dist/serialization/types/RuleConditionResponseData.d.ts +1 -0
  748. package/dist/serialization/types/RuleConditionResponseData.js +1 -0
  749. package/dist/serialization/types/RulesDetailResponseData.d.ts +1 -1
  750. package/dist/serialization/types/RulesDetailResponseData.js +1 -1
  751. package/dist/serialization/types/StripeEmbedInfo.d.ts +13 -0
  752. package/dist/serialization/types/StripeEmbedInfo.js +34 -0
  753. package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +21 -0
  754. package/dist/serialization/types/{UpdateReqCommon.js → UpdateEntitlementReqCommon.js} +9 -6
  755. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  756. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
  757. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  758. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  759. package/{serialization/types/CreateReqCommonValueType.d.ts → dist/serialization/types/UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  760. package/dist/serialization/types/{CreateReqCommonValueType.js → UpdateEntitlementReqCommonValueType.js} +2 -2
  761. package/dist/serialization/types/index.d.ts +28 -10
  762. package/dist/serialization/types/index.js +28 -10
  763. package/package.json +8 -3
  764. package/reference.md +457 -133
  765. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +3 -0
  766. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +3 -0
  767. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -0
  768. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +4 -0
  769. package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
  770. package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
  771. package/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
  772. package/serialization/resources/billing/client/requests/{ChangeSubscriptionRequestBody.js → CreateMeterRequestBody.js} +6 -5
  773. package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
  774. package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
  775. package/serialization/resources/billing/client/requests/index.d.ts +3 -3
  776. package/serialization/resources/billing/client/requests/index.js +7 -7
  777. package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +20 -0
  778. package/serialization/resources/{events/types/ListMetricCountsParams.js → billing/types/CountBillingProductsParams.js} +9 -10
  779. package/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
  780. package/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
  781. package/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
  782. package/serialization/resources/billing/types/DeleteProductPriceResponse.js +35 -0
  783. package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
  784. package/serialization/resources/billing/types/ListBillingProductsParams.js +4 -0
  785. package/serialization/resources/billing/types/ListInvoicesParams.d.ts +16 -0
  786. package/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
  787. package/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
  788. package/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
  789. package/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
  790. package/serialization/resources/billing/types/ListMetersParams.js +35 -0
  791. package/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
  792. package/serialization/resources/billing/types/ListMetersResponse.js +36 -0
  793. package/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
  794. package/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
  795. package/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
  796. package/serialization/resources/billing/types/ListPaymentMethodsResponse.js +36 -0
  797. package/serialization/resources/billing/types/ListProductPricesParams.d.ts +4 -0
  798. package/serialization/resources/billing/types/ListProductPricesParams.js +4 -0
  799. package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
  800. package/serialization/resources/billing/types/SearchBillingPricesParams.js +37 -0
  801. package/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
  802. package/{dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js → serialization/resources/billing/types/SearchBillingPricesResponse.js} +6 -5
  803. package/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
  804. package/serialization/resources/billing/types/UpsertBillingMeterResponse.js +35 -0
  805. package/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
  806. package/serialization/resources/billing/types/UpsertInvoiceResponse.js +35 -0
  807. package/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
  808. package/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +35 -0
  809. package/serialization/resources/billing/types/index.d.ts +14 -4
  810. package/serialization/resources/billing/types/index.js +14 -4
  811. package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  812. package/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
  813. package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  814. package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +1 -0
  815. package/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  816. package/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
  817. package/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
  818. package/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
  819. package/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
  820. package/serialization/resources/components/types/PreviewComponentDataResponse.js +36 -0
  821. package/serialization/resources/components/types/index.d.ts +2 -1
  822. package/serialization/resources/components/types/index.js +2 -1
  823. package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  824. package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
  825. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
  826. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +4 -0
  827. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -0
  828. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
  829. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
  830. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +4 -0
  831. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
  832. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -0
  833. package/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  834. package/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
  835. package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
  836. package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +1 -0
  837. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  838. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  839. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  840. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  841. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  842. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  843. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  844. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  845. package/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  846. package/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
  847. package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
  848. package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +1 -0
  849. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  850. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  851. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  852. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  853. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  854. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  855. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  856. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  857. package/serialization/resources/entitlements/types/index.d.ts +4 -0
  858. package/serialization/resources/entitlements/types/index.js +4 -0
  859. package/serialization/resources/events/types/index.d.ts +0 -2
  860. package/serialization/resources/events/types/index.js +0 -2
  861. package/serialization/resources/index.d.ts +3 -0
  862. package/serialization/resources/index.js +4 -1
  863. package/serialization/resources/plangroups/client/index.d.ts +1 -0
  864. package/serialization/resources/plangroups/client/index.js +17 -0
  865. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +16 -0
  866. package/{dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js → serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +5 -2
  867. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +16 -0
  868. package/serialization/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.js → plangroups/client/requests/UpdatePlanGroupRequestBody.js} +5 -2
  869. package/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
  870. package/serialization/resources/plangroups/client/requests/index.js +7 -0
  871. package/serialization/resources/plangroups/index.d.ts +2 -0
  872. package/serialization/resources/plangroups/index.js +18 -0
  873. package/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
  874. package/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
  875. package/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
  876. package/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
  877. package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
  878. package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
  879. package/serialization/resources/plangroups/types/index.d.ts +3 -0
  880. package/serialization/resources/plangroups/types/index.js +19 -0
  881. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
  882. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
  883. package/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  884. package/serialization/resources/plans/types/CountPlansParams.js +2 -0
  885. package/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  886. package/serialization/resources/plans/types/ListPlansParams.js +2 -0
  887. package/serialization/resources/plans/types/index.d.ts +0 -1
  888. package/serialization/resources/plans/types/index.js +0 -1
  889. package/serialization/types/BillingCustomerSubscription.d.ts +4 -0
  890. package/serialization/types/BillingCustomerSubscription.js +4 -0
  891. package/serialization/types/BillingMeterResponseData.d.ts +16 -0
  892. package/serialization/types/BillingMeterResponseData.js +37 -0
  893. package/serialization/types/BillingPriceResponseData.d.ts +1 -0
  894. package/serialization/types/BillingPriceResponseData.js +1 -0
  895. package/serialization/types/BillingPriceView.d.ts +24 -0
  896. package/serialization/types/BillingPriceView.js +45 -0
  897. package/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
  898. package/serialization/types/BillingProductDetailResponseData.js +1 -1
  899. package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
  900. package/serialization/types/BillingProductForSubscriptionResponseData.js +5 -2
  901. package/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
  902. package/serialization/types/BillingProductPlanResponseData.js +2 -0
  903. package/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
  904. package/{dist/serialization/types/MetricCountsHourlyResponseData.js → serialization/types/BillingProductPriceResponseData.js} +11 -8
  905. package/serialization/types/BillingProductPricing.d.ts +6 -2
  906. package/serialization/types/BillingProductPricing.js +6 -2
  907. package/serialization/types/BillingSubscriptionResponseData.d.ts +13 -3
  908. package/serialization/types/BillingSubscriptionResponseData.js +13 -3
  909. package/serialization/types/BillingSubscriptionView.d.ts +31 -0
  910. package/serialization/types/BillingSubscriptionView.js +52 -0
  911. package/serialization/types/CheckFlagRequestBody.d.ts +2 -2
  912. package/serialization/types/CheckFlagRequestBody.js +2 -2
  913. package/serialization/types/CompanyDetailResponseData.d.ts +8 -5
  914. package/serialization/types/CompanyDetailResponseData.js +8 -5
  915. package/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
  916. package/serialization/types/CompanyOverrideResponseData.js +3 -1
  917. package/serialization/types/CompanyPlanDetailResponseData.d.ts +35 -0
  918. package/serialization/types/CompanyPlanDetailResponseData.js +56 -0
  919. package/serialization/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +3 -2
  920. package/serialization/types/{BillingPlan.js → CompanyPlanWithBillingSubView.js} +3 -2
  921. package/serialization/types/CompanySubscriptionResponseData.d.ts +7 -0
  922. package/serialization/types/CompanySubscriptionResponseData.js +7 -0
  923. package/serialization/types/ComponentCapabilities.d.ts +12 -0
  924. package/serialization/types/{CreateReqCommonValueType.js → ComponentCapabilities.js} +4 -2
  925. package/serialization/types/ComponentHydrateResponseData.d.ts +11 -0
  926. package/serialization/types/ComponentHydrateResponseData.js +11 -0
  927. package/serialization/types/ComponentPreviewResponseData.d.ts +29 -0
  928. package/serialization/types/ComponentPreviewResponseData.js +50 -0
  929. package/serialization/types/CreateEntitlementReqCommon.d.ts +22 -0
  930. package/{dist/serialization/types/CreateReqCommon.js → serialization/types/CreateEntitlementReqCommon.js} +9 -6
  931. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  932. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +31 -0
  933. package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  934. package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  935. package/{dist/serialization/types/CreateReqCommonValueType.d.ts → serialization/types/CreateEntitlementReqCommonValueType.d.ts} +2 -2
  936. package/{dist/serialization/types/UpdateReqCommonMetricPeriod.js → serialization/types/CreateEntitlementReqCommonValueType.js} +2 -2
  937. package/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  938. package/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -0
  939. package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
  940. package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
  941. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  942. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  943. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  944. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
  945. package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
  946. package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
  947. package/serialization/types/EventBodyFlagCheck.d.ts +2 -2
  948. package/serialization/types/EventBodyFlagCheck.js +2 -2
  949. package/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
  950. package/serialization/types/FeatureCompanyResponseData.js +1 -0
  951. package/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
  952. package/serialization/types/FeatureCompanyUserResponseData.js +1 -0
  953. package/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  954. package/serialization/types/FeatureUsageResponseData.js +1 -0
  955. package/serialization/types/{RuleConditionResourceResponseData.d.ts → GenericPreviewObject.d.ts} +4 -2
  956. package/serialization/types/GenericPreviewObject.js +36 -0
  957. package/serialization/types/InvoiceRequestBody.d.ts +22 -0
  958. package/serialization/types/InvoiceRequestBody.js +43 -0
  959. package/serialization/types/InvoiceResponseData.d.ts +28 -0
  960. package/serialization/types/InvoiceResponseData.js +49 -0
  961. package/serialization/types/MeterRequestBody.d.ts +14 -0
  962. package/{dist/serialization/types/BillingPlanGroupResponseData.js → serialization/types/MeterRequestBody.js} +5 -5
  963. package/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
  964. package/serialization/types/PaymentMethodRequestBody.js +44 -0
  965. package/serialization/types/PaymentMethodResponseData.d.ts +29 -0
  966. package/serialization/types/PaymentMethodResponseData.js +50 -0
  967. package/serialization/types/PlanDetailResponseData.d.ts +8 -0
  968. package/serialization/types/PlanDetailResponseData.js +8 -0
  969. package/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
  970. package/serialization/types/PlanEntitlementResponseData.js +4 -0
  971. package/serialization/types/PlanGroupDetailResponseData.d.ts +19 -0
  972. package/serialization/types/PlanGroupDetailResponseData.js +40 -0
  973. package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +33 -0
  974. package/serialization/types/PlanGroupPlanDetailResponseData.js +54 -0
  975. package/serialization/types/PlanGroupResponseData.d.ts +17 -0
  976. package/serialization/types/PlanGroupResponseData.js +38 -0
  977. package/serialization/types/PlanResponseData.d.ts +1 -0
  978. package/serialization/types/PlanResponseData.js +1 -0
  979. package/serialization/types/PreviewObjectResponseData.d.ts +15 -0
  980. package/serialization/types/PreviewObjectResponseData.js +36 -0
  981. package/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
  982. package/serialization/types/RuleConditionDetailResponseData.js +3 -2
  983. package/serialization/types/RuleConditionResponseData.d.ts +1 -0
  984. package/serialization/types/RuleConditionResponseData.js +1 -0
  985. package/serialization/types/RulesDetailResponseData.d.ts +1 -1
  986. package/serialization/types/RulesDetailResponseData.js +1 -1
  987. package/serialization/types/StripeEmbedInfo.d.ts +13 -0
  988. package/serialization/types/StripeEmbedInfo.js +34 -0
  989. package/serialization/types/UpdateEntitlementReqCommon.d.ts +21 -0
  990. package/serialization/types/{UpdateReqCommon.js → UpdateEntitlementReqCommon.js} +9 -6
  991. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  992. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
  993. package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  994. package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  995. package/serialization/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  996. package/serialization/types/UpdateEntitlementReqCommonValueType.js +31 -0
  997. package/serialization/types/index.d.ts +28 -10
  998. package/serialization/types/index.js +28 -10
  999. package/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -16
  1000. package/api/types/CreateReqCommon.d.ts +0 -12
  1001. package/api/types/CreateReqCommonMetricPeriod.d.ts +0 -9
  1002. package/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
  1003. package/api/types/UpdateReqCommon.d.ts +0 -11
  1004. package/api/types/UpdateReqCommonMetricPeriod.d.ts +0 -9
  1005. package/dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -16
  1006. package/dist/api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -9
  1007. package/dist/api/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -9
  1008. package/dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -9
  1009. package/dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -9
  1010. package/dist/api/types/CreateReqCommon.d.ts +0 -12
  1011. package/dist/api/types/CreateReqCommonMetricPeriod.d.ts +0 -9
  1012. package/dist/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
  1013. package/dist/api/types/UpdateReqCommon.d.ts +0 -11
  1014. package/dist/api/types/UpdateReqCommonMetricPeriod.d.ts +0 -9
  1015. package/dist/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -14
  1016. package/dist/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +0 -13
  1017. package/dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +0 -13
  1018. package/dist/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -14
  1019. package/dist/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -14
  1020. package/dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -14
  1021. package/dist/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -14
  1022. package/dist/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
  1023. package/dist/serialization/resources/events/types/ListMetricCountsParams.d.ts +0 -21
  1024. package/dist/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
  1025. package/dist/serialization/resources/events/types/ListMetricCountsResponse.js +0 -36
  1026. package/dist/serialization/resources/plans/types/ListActivePlansResponse.d.ts +0 -14
  1027. package/dist/serialization/types/BillingPlanGroupResponseData.d.ts +0 -14
  1028. package/dist/serialization/types/CreateReqCommon.d.ts +0 -19
  1029. package/dist/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
  1030. package/dist/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
  1031. package/dist/serialization/types/UpdateReqCommon.d.ts +0 -18
  1032. package/dist/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
  1033. package/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -14
  1034. package/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +0 -13
  1035. package/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +0 -13
  1036. package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -14
  1037. package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.js +0 -35
  1038. package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -14
  1039. package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.js +0 -35
  1040. package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -14
  1041. package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js +0 -35
  1042. package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -14
  1043. package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.js +0 -35
  1044. package/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
  1045. package/serialization/resources/events/types/ListMetricCountsParams.d.ts +0 -21
  1046. package/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
  1047. package/serialization/resources/events/types/ListMetricCountsResponse.js +0 -36
  1048. package/serialization/resources/plans/types/ListActivePlansResponse.d.ts +0 -14
  1049. package/serialization/types/BillingPlanGroupResponseData.d.ts +0 -14
  1050. package/serialization/types/CreateReqCommon.d.ts +0 -19
  1051. package/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
  1052. package/serialization/types/CreateReqCommonMetricPeriod.js +0 -31
  1053. package/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
  1054. package/serialization/types/UpdateReqCommon.d.ts +0 -18
  1055. package/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
  1056. package/serialization/types/UpdateReqCommonMetricPeriod.js +0 -31
  1057. package/serialization/types/UpdateReqCommonValueType.js +0 -31
  1058. /package/api/resources/billing/client/requests/{ChangeSubscriptionRequestBody.js → CountBillingProductsRequest.js} +0 -0
  1059. /package/api/resources/billing/client/requests/{CreateBillingPlanGroupRequestBody.js → CreateInvoiceRequestBody.js} +0 -0
  1060. /package/api/resources/billing/client/requests/{UpdateBillingPlanGroupRequestBody.js → CreateMeterRequestBody.js} +0 -0
  1061. /package/api/resources/billing/{types/ChangeSubscriptionWebResponse.js → client/requests/CreatePaymentMethodRequestBody.js} +0 -0
  1062. /package/api/resources/billing/{types/CreateBillingPlanGroupResponse.js → client/requests/ListInvoicesRequest.js} +0 -0
  1063. /package/api/resources/billing/{types/GetBillingPlanGroupByAccountIdResponse.js → client/requests/ListMetersRequest.js} +0 -0
  1064. /package/api/resources/billing/{types/UpdateBillingPlanGroupResponse.js → client/requests/ListPaymentMethodsRequest.js} +0 -0
  1065. /package/api/resources/{components/types/HydrateComponentResponse.js → billing/client/requests/SearchBillingPricesRequest.js} +0 -0
  1066. /package/api/resources/{events/client/requests/ListMetricCountsRequest.js → billing/types/CountBillingProductsParams.js} +0 -0
  1067. /package/api/resources/{events/types/ListMetricCountsParams.js → billing/types/CountBillingProductsResponse.js} +0 -0
  1068. /package/api/resources/{events/types/ListMetricCountsResponse.js → billing/types/DeleteProductPriceResponse.js} +0 -0
  1069. /package/api/resources/{plans/types/ListActivePlansResponse.js → billing/types/ListInvoicesParams.js} +0 -0
  1070. /package/api/{types/BillingPlan.js → resources/billing/types/ListInvoicesResponse.js} +0 -0
  1071. /package/api/{types/BillingPlanGroupResponseData.js → resources/billing/types/ListMetersParams.js} +0 -0
  1072. /package/api/{types/CreateReqCommon.js → resources/billing/types/ListMetersResponse.js} +0 -0
  1073. /package/api/{types/MetricCountsHourlyResponseData.js → resources/billing/types/ListPaymentMethodsParams.js} +0 -0
  1074. /package/api/{types/RuleConditionResourceResponseData.js → resources/billing/types/ListPaymentMethodsResponse.js} +0 -0
  1075. /package/api/{types/UpdateReqCommon.js → resources/billing/types/SearchBillingPricesParams.js} +0 -0
  1076. /package/{dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.js → api/resources/billing/types/SearchBillingPricesResponse.js} +0 -0
  1077. /package/{dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js → api/resources/billing/types/UpsertBillingMeterResponse.js} +0 -0
  1078. /package/{dist/api/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js → api/resources/billing/types/UpsertInvoiceResponse.js} +0 -0
  1079. /package/{dist/api/resources/billing/types/ChangeSubscriptionWebResponse.js → api/resources/billing/types/UpsertPaymentMethodResponse.js} +0 -0
  1080. /package/{dist/api/resources/billing/types/CreateBillingPlanGroupResponse.js → api/resources/components/client/requests/PreviewComponentDataRequest.js} +0 -0
  1081. /package/{dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js → api/resources/components/types/PreviewComponentDataParams.js} +0 -0
  1082. /package/{dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.js → api/resources/components/types/PreviewComponentDataResponse.js} +0 -0
  1083. /package/{dist/api/resources/components/types/HydrateComponentResponse.js → api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +0 -0
  1084. /package/{dist/api/resources/events/client/requests/ListMetricCountsRequest.js → api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js} +0 -0
  1085. /package/{dist/api/resources/events/types/ListMetricCountsParams.js → api/resources/plangroups/types/CreatePlanGroupResponse.js} +0 -0
  1086. /package/{dist/api/resources/events/types/ListMetricCountsResponse.js → api/resources/plangroups/types/GetPlanGroupResponse.js} +0 -0
  1087. /package/{dist/api/resources/plans/types/ListActivePlansResponse.js → api/resources/plangroups/types/UpdatePlanGroupResponse.js} +0 -0
  1088. /package/{dist/api/types/BillingPlan.js → api/types/BillingMeterResponseData.js} +0 -0
  1089. /package/{dist/api/types/BillingPlanGroupResponseData.js → api/types/BillingPriceView.js} +0 -0
  1090. /package/{dist/api/types/CreateReqCommon.js → api/types/BillingProductPriceResponseData.js} +0 -0
  1091. /package/{dist/api/types/MetricCountsHourlyResponseData.js → api/types/BillingSubscriptionView.js} +0 -0
  1092. /package/{dist/api/types/RuleConditionResourceResponseData.js → api/types/CompanyPlanDetailResponseData.js} +0 -0
  1093. /package/{dist/api/types/UpdateReqCommon.js → api/types/CompanyPlanWithBillingSubView.js} +0 -0
package/reference.md CHANGED
@@ -552,7 +552,7 @@ await client.accounts.listEnvironments();
552
552
 
553
553
  ```typescript
554
554
  await client.accounts.createEnvironment({
555
- environmentType: Schematic.CreateEnvironmentRequestBodyEnvironmentType.Development,
555
+ environmentType: "development",
556
556
  name: "name",
557
557
  });
558
558
  ```
@@ -761,8 +761,8 @@ await client.features.countAudienceCompanies({
761
761
  {
762
762
  conditions: [
763
763
  {
764
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
765
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
764
+ conditionType: "company",
765
+ operator: "eq",
766
766
  resourceIds: ["resource_ids"],
767
767
  },
768
768
  ],
@@ -770,8 +770,8 @@ await client.features.countAudienceCompanies({
770
770
  ],
771
771
  conditions: [
772
772
  {
773
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
774
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
773
+ conditionType: "company",
774
+ operator: "eq",
775
775
  resourceIds: ["resource_ids"],
776
776
  },
777
777
  ],
@@ -828,8 +828,8 @@ await client.features.countAudienceUsers({
828
828
  {
829
829
  conditions: [
830
830
  {
831
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
832
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
831
+ conditionType: "company",
832
+ operator: "eq",
833
833
  resourceIds: ["resource_ids"],
834
834
  },
835
835
  ],
@@ -837,8 +837,8 @@ await client.features.countAudienceUsers({
837
837
  ],
838
838
  conditions: [
839
839
  {
840
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
841
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
840
+ conditionType: "company",
841
+ operator: "eq",
842
842
  resourceIds: ["resource_ids"],
843
843
  },
844
844
  ],
@@ -895,8 +895,8 @@ await client.features.listAudienceCompanies({
895
895
  {
896
896
  conditions: [
897
897
  {
898
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
899
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
898
+ conditionType: "company",
899
+ operator: "eq",
900
900
  resourceIds: ["resource_ids"],
901
901
  },
902
902
  ],
@@ -904,8 +904,8 @@ await client.features.listAudienceCompanies({
904
904
  ],
905
905
  conditions: [
906
906
  {
907
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
908
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
907
+ conditionType: "company",
908
+ operator: "eq",
909
909
  resourceIds: ["resource_ids"],
910
910
  },
911
911
  ],
@@ -962,8 +962,8 @@ await client.features.listAudienceUsers({
962
962
  {
963
963
  conditions: [
964
964
  {
965
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
966
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
965
+ conditionType: "company",
966
+ operator: "eq",
967
967
  resourceIds: ["resource_ids"],
968
968
  },
969
969
  ],
@@ -971,8 +971,8 @@ await client.features.listAudienceUsers({
971
971
  ],
972
972
  conditions: [
973
973
  {
974
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
975
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
974
+ conditionType: "company",
975
+ operator: "eq",
976
976
  resourceIds: ["resource_ids"],
977
977
  },
978
978
  ],
@@ -1074,7 +1074,7 @@ await client.features.listFeatures();
1074
1074
  ```typescript
1075
1075
  await client.features.createFeature({
1076
1076
  description: "description",
1077
- featureType: Schematic.CreateFeatureRequestBodyFeatureType.Boolean,
1077
+ featureType: "boolean",
1078
1078
  name: "name",
1079
1079
  });
1080
1080
  ```
@@ -1591,8 +1591,8 @@ await client.features.updateFlagRules("flag_id", {
1591
1591
  {
1592
1592
  conditions: [
1593
1593
  {
1594
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
1595
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
1594
+ conditionType: "company",
1595
+ operator: "eq",
1596
1596
  resourceIds: ["resource_ids"],
1597
1597
  },
1598
1598
  ],
@@ -1600,8 +1600,8 @@ await client.features.updateFlagRules("flag_id", {
1600
1600
  ],
1601
1601
  conditions: [
1602
1602
  {
1603
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
1604
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
1603
+ conditionType: "company",
1604
+ operator: "eq",
1605
1605
  resourceIds: ["resource_ids"],
1606
1606
  },
1607
1607
  ],
@@ -1959,7 +1959,7 @@ await client.billing.countCustomers();
1959
1959
  </dl>
1960
1960
  </details>
1961
1961
 
1962
- <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">getBillingPlanGroupByAccountId</a>() -> Schematic.GetBillingPlanGroupByAccountIdResponse</code></summary>
1962
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listInvoices</a>({ ...params }) -> Schematic.ListInvoicesResponse</code></summary>
1963
1963
  <dl>
1964
1964
  <dd>
1965
1965
 
@@ -1972,7 +1972,9 @@ await client.billing.countCustomers();
1972
1972
  <dd>
1973
1973
 
1974
1974
  ```typescript
1975
- await client.billing.getBillingPlanGroupByAccountId();
1975
+ await client.billing.listInvoices({
1976
+ customerExternalId: "customer_external_id",
1977
+ });
1976
1978
  ```
1977
1979
 
1978
1980
  </dd>
@@ -1988,6 +1990,14 @@ await client.billing.getBillingPlanGroupByAccountId();
1988
1990
  <dl>
1989
1991
  <dd>
1990
1992
 
1993
+ **request:** `Schematic.ListInvoicesRequest`
1994
+
1995
+ </dd>
1996
+ </dl>
1997
+
1998
+ <dl>
1999
+ <dd>
2000
+
1991
2001
  **requestOptions:** `Billing.RequestOptions`
1992
2002
 
1993
2003
  </dd>
@@ -1999,7 +2009,7 @@ await client.billing.getBillingPlanGroupByAccountId();
1999
2009
  </dl>
2000
2010
  </details>
2001
2011
 
2002
- <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">createBillingPlanGroup</a>({ ...params }) -> Schematic.CreateBillingPlanGroupResponse</code></summary>
2012
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertInvoice</a>({ ...params }) -> Schematic.UpsertInvoiceResponse</code></summary>
2003
2013
  <dl>
2004
2014
  <dd>
2005
2015
 
@@ -2012,8 +2022,14 @@ await client.billing.getBillingPlanGroupByAccountId();
2012
2022
  <dd>
2013
2023
 
2014
2024
  ```typescript
2015
- await client.billing.createBillingPlanGroup({
2016
- planIds: ["plan_ids"],
2025
+ await client.billing.upsertInvoice({
2026
+ amountDue: 1,
2027
+ amountPaid: 1,
2028
+ amountRemaining: 1,
2029
+ collectionMethod: "collection_method",
2030
+ currency: "currency",
2031
+ customerExternalId: "customer_external_id",
2032
+ subtotal: 1,
2017
2033
  });
2018
2034
  ```
2019
2035
 
@@ -2030,7 +2046,7 @@ await client.billing.createBillingPlanGroup({
2030
2046
  <dl>
2031
2047
  <dd>
2032
2048
 
2033
- **request:** `Schematic.CreateBillingPlanGroupRequestBody`
2049
+ **request:** `Schematic.CreateInvoiceRequestBody`
2034
2050
 
2035
2051
  </dd>
2036
2052
  </dl>
@@ -2049,7 +2065,7 @@ await client.billing.createBillingPlanGroup({
2049
2065
  </dl>
2050
2066
  </details>
2051
2067
 
2052
- <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">updateBillingPlanGroup</a>(billingId, { ...params }) -> Schematic.UpdateBillingPlanGroupResponse</code></summary>
2068
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listMeters</a>({ ...params }) -> Schematic.ListMetersResponse</code></summary>
2053
2069
  <dl>
2054
2070
  <dd>
2055
2071
 
@@ -2062,8 +2078,59 @@ await client.billing.createBillingPlanGroup({
2062
2078
  <dd>
2063
2079
 
2064
2080
  ```typescript
2065
- await client.billing.updateBillingPlanGroup("billing_id", {
2066
- planIds: ["plan_ids"],
2081
+ await client.billing.listMeters();
2082
+ ```
2083
+
2084
+ </dd>
2085
+ </dl>
2086
+ </dd>
2087
+ </dl>
2088
+
2089
+ #### ⚙️ Parameters
2090
+
2091
+ <dl>
2092
+ <dd>
2093
+
2094
+ <dl>
2095
+ <dd>
2096
+
2097
+ **request:** `Schematic.ListMetersRequest`
2098
+
2099
+ </dd>
2100
+ </dl>
2101
+
2102
+ <dl>
2103
+ <dd>
2104
+
2105
+ **requestOptions:** `Billing.RequestOptions`
2106
+
2107
+ </dd>
2108
+ </dl>
2109
+ </dd>
2110
+ </dl>
2111
+
2112
+ </dd>
2113
+ </dl>
2114
+ </details>
2115
+
2116
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertBillingMeter</a>({ ...params }) -> Schematic.UpsertBillingMeterResponse</code></summary>
2117
+ <dl>
2118
+ <dd>
2119
+
2120
+ #### 🔌 Usage
2121
+
2122
+ <dl>
2123
+ <dd>
2124
+
2125
+ <dl>
2126
+ <dd>
2127
+
2128
+ ```typescript
2129
+ await client.billing.upsertBillingMeter({
2130
+ displayName: "display_name",
2131
+ eventName: "event_name",
2132
+ eventPayloadKey: "event_payload_key",
2133
+ externalId: "external_id",
2067
2134
  });
2068
2135
  ```
2069
2136
 
@@ -2080,7 +2147,57 @@ await client.billing.updateBillingPlanGroup("billing_id", {
2080
2147
  <dl>
2081
2148
  <dd>
2082
2149
 
2083
- **billingId:** `string` — billing_id
2150
+ **request:** `Schematic.CreateMeterRequestBody`
2151
+
2152
+ </dd>
2153
+ </dl>
2154
+
2155
+ <dl>
2156
+ <dd>
2157
+
2158
+ **requestOptions:** `Billing.RequestOptions`
2159
+
2160
+ </dd>
2161
+ </dl>
2162
+ </dd>
2163
+ </dl>
2164
+
2165
+ </dd>
2166
+ </dl>
2167
+ </details>
2168
+
2169
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listPaymentMethods</a>({ ...params }) -> Schematic.ListPaymentMethodsResponse</code></summary>
2170
+ <dl>
2171
+ <dd>
2172
+
2173
+ #### 🔌 Usage
2174
+
2175
+ <dl>
2176
+ <dd>
2177
+
2178
+ <dl>
2179
+ <dd>
2180
+
2181
+ ```typescript
2182
+ await client.billing.listPaymentMethods({
2183
+ customerExternalId: "customer_external_id",
2184
+ });
2185
+ ```
2186
+
2187
+ </dd>
2188
+ </dl>
2189
+ </dd>
2190
+ </dl>
2191
+
2192
+ #### ⚙️ Parameters
2193
+
2194
+ <dl>
2195
+ <dd>
2196
+
2197
+ <dl>
2198
+ <dd>
2199
+
2200
+ **request:** `Schematic.ListPaymentMethodsRequest`
2084
2201
 
2085
2202
  </dd>
2086
2203
  </dl>
@@ -2088,7 +2205,99 @@ await client.billing.updateBillingPlanGroup("billing_id", {
2088
2205
  <dl>
2089
2206
  <dd>
2090
2207
 
2091
- **request:** `Schematic.UpdateBillingPlanGroupRequestBody`
2208
+ **requestOptions:** `Billing.RequestOptions`
2209
+
2210
+ </dd>
2211
+ </dl>
2212
+ </dd>
2213
+ </dl>
2214
+
2215
+ </dd>
2216
+ </dl>
2217
+ </details>
2218
+
2219
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertPaymentMethod</a>({ ...params }) -> Schematic.UpsertPaymentMethodResponse</code></summary>
2220
+ <dl>
2221
+ <dd>
2222
+
2223
+ #### 🔌 Usage
2224
+
2225
+ <dl>
2226
+ <dd>
2227
+
2228
+ <dl>
2229
+ <dd>
2230
+
2231
+ ```typescript
2232
+ await client.billing.upsertPaymentMethod({
2233
+ customerExternalId: "customer_external_id",
2234
+ externalId: "external_id",
2235
+ paymentMethodType: "payment_method_type",
2236
+ });
2237
+ ```
2238
+
2239
+ </dd>
2240
+ </dl>
2241
+ </dd>
2242
+ </dl>
2243
+
2244
+ #### ⚙️ Parameters
2245
+
2246
+ <dl>
2247
+ <dd>
2248
+
2249
+ <dl>
2250
+ <dd>
2251
+
2252
+ **request:** `Schematic.CreatePaymentMethodRequestBody`
2253
+
2254
+ </dd>
2255
+ </dl>
2256
+
2257
+ <dl>
2258
+ <dd>
2259
+
2260
+ **requestOptions:** `Billing.RequestOptions`
2261
+
2262
+ </dd>
2263
+ </dl>
2264
+ </dd>
2265
+ </dl>
2266
+
2267
+ </dd>
2268
+ </dl>
2269
+ </details>
2270
+
2271
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">searchBillingPrices</a>({ ...params }) -> Schematic.SearchBillingPricesResponse</code></summary>
2272
+ <dl>
2273
+ <dd>
2274
+
2275
+ #### 🔌 Usage
2276
+
2277
+ <dl>
2278
+ <dd>
2279
+
2280
+ <dl>
2281
+ <dd>
2282
+
2283
+ ```typescript
2284
+ await client.billing.searchBillingPrices();
2285
+ ```
2286
+
2287
+ </dd>
2288
+ </dl>
2289
+ </dd>
2290
+ </dl>
2291
+
2292
+ #### ⚙️ Parameters
2293
+
2294
+ <dl>
2295
+ <dd>
2296
+
2297
+ <dl>
2298
+ <dd>
2299
+
2300
+ **request:** `Schematic.SearchBillingPricesRequest`
2092
2301
 
2093
2302
  </dd>
2094
2303
  </dl>
@@ -2121,10 +2330,12 @@ await client.billing.updateBillingPlanGroup("billing_id", {
2121
2330
 
2122
2331
  ```typescript
2123
2332
  await client.billing.upsertBillingPrice({
2333
+ currency: "currency",
2124
2334
  interval: "interval",
2125
2335
  price: 1,
2126
2336
  priceExternalId: "price_external_id",
2127
2337
  productExternalId: "product_external_id",
2338
+ usageType: "usage_type",
2128
2339
  });
2129
2340
  ```
2130
2341
 
@@ -2208,6 +2419,54 @@ await client.billing.listProductPrices();
2208
2419
  </dl>
2209
2420
  </details>
2210
2421
 
2422
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">deleteProductPrice</a>(billingId) -> Schematic.DeleteProductPriceResponse</code></summary>
2423
+ <dl>
2424
+ <dd>
2425
+
2426
+ #### 🔌 Usage
2427
+
2428
+ <dl>
2429
+ <dd>
2430
+
2431
+ <dl>
2432
+ <dd>
2433
+
2434
+ ```typescript
2435
+ await client.billing.deleteProductPrice("billing_id");
2436
+ ```
2437
+
2438
+ </dd>
2439
+ </dl>
2440
+ </dd>
2441
+ </dl>
2442
+
2443
+ #### ⚙️ Parameters
2444
+
2445
+ <dl>
2446
+ <dd>
2447
+
2448
+ <dl>
2449
+ <dd>
2450
+
2451
+ **billingId:** `string` — billing_id
2452
+
2453
+ </dd>
2454
+ </dl>
2455
+
2456
+ <dl>
2457
+ <dd>
2458
+
2459
+ **requestOptions:** `Billing.RequestOptions`
2460
+
2461
+ </dd>
2462
+ </dl>
2463
+ </dd>
2464
+ </dl>
2465
+
2466
+ </dd>
2467
+ </dl>
2468
+ </details>
2469
+
2211
2470
  <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertBillingProduct</a>({ ...params }) -> Schematic.UpsertBillingProductResponse</code></summary>
2212
2471
  <dl>
2213
2472
  <dd>
@@ -2310,7 +2569,7 @@ await client.billing.listBillingProducts();
2310
2569
  </dl>
2311
2570
  </details>
2312
2571
 
2313
- <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertBillingSubscription</a>({ ...params }) -> Schematic.UpsertBillingSubscriptionResponse</code></summary>
2572
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">countBillingProducts</a>({ ...params }) -> Schematic.CountBillingProductsResponse</code></summary>
2314
2573
  <dl>
2315
2574
  <dd>
2316
2575
 
@@ -2323,18 +2582,7 @@ await client.billing.listBillingProducts();
2323
2582
  <dd>
2324
2583
 
2325
2584
  ```typescript
2326
- await client.billing.upsertBillingSubscription({
2327
- customerExternalId: "customer_external_id",
2328
- expiredAt: new Date("2024-01-15T09:30:00.000Z"),
2329
- productExternalIds: [
2330
- {
2331
- price: 1,
2332
- productExternalId: "product_external_id",
2333
- },
2334
- ],
2335
- subscriptionExternalId: "subscription_external_id",
2336
- totalPrice: 1,
2337
- });
2585
+ await client.billing.countBillingProducts();
2338
2586
  ```
2339
2587
 
2340
2588
  </dd>
@@ -2350,7 +2598,7 @@ await client.billing.upsertBillingSubscription({
2350
2598
  <dl>
2351
2599
  <dd>
2352
2600
 
2353
- **request:** `Schematic.CreateBillingSubscriptionsRequestBody`
2601
+ **request:** `Schematic.CountBillingProductsRequest`
2354
2602
 
2355
2603
  </dd>
2356
2604
  </dl>
@@ -2369,7 +2617,7 @@ await client.billing.upsertBillingSubscription({
2369
2617
  </dl>
2370
2618
  </details>
2371
2619
 
2372
- <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">changeSubscriptionWeb</a>({ ...params }) -> Schematic.ChangeSubscriptionWebResponse</code></summary>
2620
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertBillingSubscription</a>({ ...params }) -> Schematic.UpsertBillingSubscriptionResponse</code></summary>
2373
2621
  <dl>
2374
2622
  <dd>
2375
2623
 
@@ -2382,10 +2630,23 @@ await client.billing.upsertBillingSubscription({
2382
2630
  <dd>
2383
2631
 
2384
2632
  ```typescript
2385
- await client.billing.changeSubscriptionWeb({
2386
- action: "action",
2387
- newPlanId: "new_plan_id",
2388
- newPriceId: "new_price_id",
2633
+ await client.billing.upsertBillingSubscription({
2634
+ currency: "currency",
2635
+ customerExternalId: "customer_external_id",
2636
+ expiredAt: "2024-01-15T09:30:00Z",
2637
+ productExternalIds: [
2638
+ {
2639
+ currency: "currency",
2640
+ interval: "interval",
2641
+ price: 1,
2642
+ priceExternalId: "price_external_id",
2643
+ productExternalId: "product_external_id",
2644
+ quantity: 1,
2645
+ usageType: "usage_type",
2646
+ },
2647
+ ],
2648
+ subscriptionExternalId: "subscription_external_id",
2649
+ totalPrice: 1,
2389
2650
  });
2390
2651
  ```
2391
2652
 
@@ -2402,7 +2663,7 @@ await client.billing.changeSubscriptionWeb({
2402
2663
  <dl>
2403
2664
  <dd>
2404
2665
 
2405
- **request:** `Schematic.ChangeSubscriptionRequestBody`
2666
+ **request:** `Schematic.CreateBillingSubscriptionsRequestBody`
2406
2667
 
2407
2668
  </dd>
2408
2669
  </dl>
@@ -3036,9 +3297,7 @@ await client.companies.deleteCompanyMembership("company_membership_id");
3036
3297
  <dd>
3037
3298
 
3038
3299
  ```typescript
3039
- await client.companies.getActiveCompanySubscription({
3040
- companyId: "company_id",
3041
- });
3300
+ await client.companies.getActiveCompanySubscription();
3042
3301
  ```
3043
3302
 
3044
3303
  </dd>
@@ -3284,9 +3543,9 @@ await client.companies.listEntityTraitDefinitions();
3284
3543
 
3285
3544
  ```typescript
3286
3545
  await client.companies.getOrCreateEntityTraitDefinition({
3287
- entityType: Schematic.CreateEntityTraitDefinitionRequestBodyEntityType.Company,
3546
+ entityType: "company",
3288
3547
  hierarchy: ["hierarchy"],
3289
- traitType: Schematic.CreateEntityTraitDefinitionRequestBodyTraitType.Boolean,
3548
+ traitType: "boolean",
3290
3549
  });
3291
3550
  ```
3292
3551
 
@@ -3384,7 +3643,7 @@ await client.companies.getEntityTraitDefinition("entity_trait_definition_id");
3384
3643
 
3385
3644
  ```typescript
3386
3645
  await client.companies.updateEntityTraitDefinition("entity_trait_definition_id", {
3387
- traitType: Schematic.UpdateEntityTraitDefinitionRequestBodyTraitType.Boolean,
3646
+ traitType: "boolean",
3388
3647
  });
3389
3648
  ```
3390
3649
 
@@ -4053,7 +4312,7 @@ await client.entitlements.listCompanyOverrides();
4053
4312
  await client.entitlements.createCompanyOverride({
4054
4313
  companyId: "company_id",
4055
4314
  featureId: "feature_id",
4056
- valueType: Schematic.CreateCompanyOverrideRequestBodyValueType.Boolean,
4315
+ valueType: "boolean",
4057
4316
  });
4058
4317
  ```
4059
4318
 
@@ -4151,7 +4410,7 @@ await client.entitlements.getCompanyOverride("company_override_id");
4151
4410
 
4152
4411
  ```typescript
4153
4412
  await client.entitlements.updateCompanyOverride("company_override_id", {
4154
- valueType: Schematic.UpdateCompanyOverrideRequestBodyValueType.Boolean,
4413
+ valueType: "boolean",
4155
4414
  });
4156
4415
  ```
4157
4416
 
@@ -4651,7 +4910,7 @@ await client.entitlements.listPlanEntitlements();
4651
4910
  await client.entitlements.createPlanEntitlement({
4652
4911
  featureId: "feature_id",
4653
4912
  planId: "plan_id",
4654
- valueType: Schematic.CreatePlanEntitlementRequestBodyValueType.Boolean,
4913
+ valueType: "boolean",
4655
4914
  });
4656
4915
  ```
4657
4916
 
@@ -4749,7 +5008,7 @@ await client.entitlements.getPlanEntitlement("plan_entitlement_id");
4749
5008
 
4750
5009
  ```typescript
4751
5010
  await client.entitlements.updatePlanEntitlement("plan_entitlement_id", {
4752
- valueType: Schematic.UpdatePlanEntitlementRequestBodyValueType.Boolean,
5011
+ valueType: "boolean",
4753
5012
  });
4754
5013
  ```
4755
5014
 
@@ -5007,7 +5266,7 @@ await client.components.listComponents();
5007
5266
 
5008
5267
  ```typescript
5009
5268
  await client.components.createComponent({
5010
- entityType: Schematic.CreateComponentRequestBodyEntityType.Entitlement,
5269
+ entityType: "entitlement",
5011
5270
  name: "name",
5012
5271
  });
5013
5272
  ```
@@ -5196,7 +5455,7 @@ await client.components.deleteComponent("component_id");
5196
5455
  </dl>
5197
5456
  </details>
5198
5457
 
5199
- <details><summary><code>client.components.<a href="/src/api/resources/components/client/Client.ts">hydrateComponent</a>(componentId) -> Schematic.HydrateComponentResponse</code></summary>
5458
+ <details><summary><code>client.components.<a href="/src/api/resources/components/client/Client.ts">countComponents</a>({ ...params }) -> Schematic.CountComponentsResponse</code></summary>
5200
5459
  <dl>
5201
5460
  <dd>
5202
5461
 
@@ -5209,7 +5468,7 @@ await client.components.deleteComponent("component_id");
5209
5468
  <dd>
5210
5469
 
5211
5470
  ```typescript
5212
- await client.components.hydrateComponent("component_id");
5471
+ await client.components.countComponents();
5213
5472
  ```
5214
5473
 
5215
5474
  </dd>
@@ -5225,7 +5484,7 @@ await client.components.hydrateComponent("component_id");
5225
5484
  <dl>
5226
5485
  <dd>
5227
5486
 
5228
- **componentId:** `string` — component_id
5487
+ **request:** `Schematic.CountComponentsRequest`
5229
5488
 
5230
5489
  </dd>
5231
5490
  </dl>
@@ -5244,7 +5503,7 @@ await client.components.hydrateComponent("component_id");
5244
5503
  </dl>
5245
5504
  </details>
5246
5505
 
5247
- <details><summary><code>client.components.<a href="/src/api/resources/components/client/Client.ts">countComponents</a>({ ...params }) -> Schematic.CountComponentsResponse</code></summary>
5506
+ <details><summary><code>client.components.<a href="/src/api/resources/components/client/Client.ts">previewComponentData</a>({ ...params }) -> Schematic.PreviewComponentDataResponse</code></summary>
5248
5507
  <dl>
5249
5508
  <dd>
5250
5509
 
@@ -5257,7 +5516,7 @@ await client.components.hydrateComponent("component_id");
5257
5516
  <dd>
5258
5517
 
5259
5518
  ```typescript
5260
- await client.components.countComponents();
5519
+ await client.components.previewComponentData();
5261
5520
  ```
5262
5521
 
5263
5522
  </dd>
@@ -5273,7 +5532,7 @@ await client.components.countComponents();
5273
5532
  <dl>
5274
5533
  <dd>
5275
5534
 
5276
- **request:** `Schematic.CountComponentsRequest`
5535
+ **request:** `Schematic.PreviewComponentDataRequest`
5277
5536
 
5278
5537
  </dd>
5279
5538
  </dl>
@@ -5574,7 +5833,7 @@ await client.crm.upsertCrmProduct({
5574
5833
  await client.events.createEventBatch({
5575
5834
  events: [
5576
5835
  {
5577
- eventType: Schematic.CreateEventRequestBodyEventType.Identify,
5836
+ eventType: "identify",
5578
5837
  },
5579
5838
  ],
5580
5839
  });
@@ -5770,7 +6029,7 @@ await client.events.listEvents();
5770
6029
 
5771
6030
  ```typescript
5772
6031
  await client.events.createEvent({
5773
- eventType: Schematic.CreateEventRequestBodyEventType.Identify,
6032
+ eventType: "identify",
5774
6033
  });
5775
6034
  ```
5776
6035
 
@@ -5854,54 +6113,6 @@ await client.events.getEvent("event_id");
5854
6113
  </dl>
5855
6114
  </details>
5856
6115
 
5857
- <details><summary><code>client.events.<a href="/src/api/resources/events/client/Client.ts">listMetricCounts</a>({ ...params }) -> Schematic.ListMetricCountsResponse</code></summary>
5858
- <dl>
5859
- <dd>
5860
-
5861
- #### 🔌 Usage
5862
-
5863
- <dl>
5864
- <dd>
5865
-
5866
- <dl>
5867
- <dd>
5868
-
5869
- ```typescript
5870
- await client.events.listMetricCounts();
5871
- ```
5872
-
5873
- </dd>
5874
- </dl>
5875
- </dd>
5876
- </dl>
5877
-
5878
- #### ⚙️ Parameters
5879
-
5880
- <dl>
5881
- <dd>
5882
-
5883
- <dl>
5884
- <dd>
5885
-
5886
- **request:** `Schematic.ListMetricCountsRequest`
5887
-
5888
- </dd>
5889
- </dl>
5890
-
5891
- <dl>
5892
- <dd>
5893
-
5894
- **requestOptions:** `Events.RequestOptions`
5895
-
5896
- </dd>
5897
- </dl>
5898
- </dd>
5899
- </dl>
5900
-
5901
- </dd>
5902
- </dl>
5903
- </details>
5904
-
5905
6116
  <details><summary><code>client.events.<a href="/src/api/resources/events/client/Client.ts">getSegmentIntegrationStatus</a>() -> Schematic.GetSegmentIntegrationStatusResponse</code></summary>
5906
6117
  <dl>
5907
6118
  <dd>
@@ -6010,8 +6221,8 @@ await client.plans.updateAudience("plan_audience_id", {
6010
6221
  {
6011
6222
  conditions: [
6012
6223
  {
6013
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
6014
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
6224
+ conditionType: "company",
6225
+ operator: "eq",
6015
6226
  resourceIds: ["resource_ids"],
6016
6227
  },
6017
6228
  ],
@@ -6019,8 +6230,8 @@ await client.plans.updateAudience("plan_audience_id", {
6019
6230
  ],
6020
6231
  conditions: [
6021
6232
  {
6022
- conditionType: Schematic.CreateOrUpdateConditionRequestBodyConditionType.Company,
6023
- operator: Schematic.CreateOrUpdateConditionRequestBodyOperator.Eq,
6233
+ conditionType: "company",
6234
+ operator: "eq",
6024
6235
  resourceIds: ["resource_ids"],
6025
6236
  },
6026
6237
  ],
@@ -6179,7 +6390,7 @@ await client.plans.listPlans();
6179
6390
  await client.plans.createPlan({
6180
6391
  description: "description",
6181
6392
  name: "name",
6182
- planType: Schematic.CreatePlanRequestBodyPlanType.Plan,
6393
+ planType: "plan",
6183
6394
  });
6184
6395
  ```
6185
6396
 
@@ -6383,7 +6594,8 @@ await client.plans.deletePlan("plan_id");
6383
6594
 
6384
6595
  ```typescript
6385
6596
  await client.plans.upsertBillingProductPlan("plan_id", {
6386
- billingProductId: "billing_product_id",
6597
+ isFreePlan: true,
6598
+ isTrialable: true,
6387
6599
  });
6388
6600
  ```
6389
6601
 
@@ -6427,7 +6639,7 @@ await client.plans.upsertBillingProductPlan("plan_id", {
6427
6639
  </dl>
6428
6640
  </details>
6429
6641
 
6430
- <details><summary><code>client.plans.<a href="/src/api/resources/plans/client/Client.ts">listActivePlans</a>() -> Schematic.ListActivePlansResponse</code></summary>
6642
+ <details><summary><code>client.plans.<a href="/src/api/resources/plans/client/Client.ts">countPlans</a>({ ...params }) -> Schematic.CountPlansResponse</code></summary>
6431
6643
  <dl>
6432
6644
  <dd>
6433
6645
 
@@ -6440,7 +6652,7 @@ await client.plans.upsertBillingProductPlan("plan_id", {
6440
6652
  <dd>
6441
6653
 
6442
6654
  ```typescript
6443
- await client.plans.listActivePlans();
6655
+ await client.plans.countPlans();
6444
6656
  ```
6445
6657
 
6446
6658
  </dd>
@@ -6456,6 +6668,14 @@ await client.plans.listActivePlans();
6456
6668
  <dl>
6457
6669
  <dd>
6458
6670
 
6671
+ **request:** `Schematic.CountPlansRequest`
6672
+
6673
+ </dd>
6674
+ </dl>
6675
+
6676
+ <dl>
6677
+ <dd>
6678
+
6459
6679
  **requestOptions:** `Plans.RequestOptions`
6460
6680
 
6461
6681
  </dd>
@@ -6467,7 +6687,9 @@ await client.plans.listActivePlans();
6467
6687
  </dl>
6468
6688
  </details>
6469
6689
 
6470
- <details><summary><code>client.plans.<a href="/src/api/resources/plans/client/Client.ts">countPlans</a>({ ...params }) -> Schematic.CountPlansResponse</code></summary>
6690
+ ## plangroups
6691
+
6692
+ <details><summary><code>client.plangroups.<a href="/src/api/resources/plangroups/client/Client.ts">getPlanGroup</a>() -> Schematic.GetPlanGroupResponse</code></summary>
6471
6693
  <dl>
6472
6694
  <dd>
6473
6695
 
@@ -6480,7 +6702,7 @@ await client.plans.listActivePlans();
6480
6702
  <dd>
6481
6703
 
6482
6704
  ```typescript
6483
- await client.plans.countPlans();
6705
+ await client.plangroups.getPlanGroup();
6484
6706
  ```
6485
6707
 
6486
6708
  </dd>
@@ -6496,15 +6718,117 @@ await client.plans.countPlans();
6496
6718
  <dl>
6497
6719
  <dd>
6498
6720
 
6499
- **request:** `Schematic.CountPlansRequest`
6721
+ **requestOptions:** `Plangroups.RequestOptions`
6500
6722
 
6723
+ </dd>
6724
+ </dl>
6501
6725
  </dd>
6502
6726
  </dl>
6503
6727
 
6728
+ </dd>
6729
+ </dl>
6730
+ </details>
6731
+
6732
+ <details><summary><code>client.plangroups.<a href="/src/api/resources/plangroups/client/Client.ts">createPlanGroup</a>({ ...params }) -> Schematic.CreatePlanGroupResponse</code></summary>
6504
6733
  <dl>
6505
6734
  <dd>
6506
6735
 
6507
- **requestOptions:** `Plans.RequestOptions`
6736
+ #### 🔌 Usage
6737
+
6738
+ <dl>
6739
+ <dd>
6740
+
6741
+ <dl>
6742
+ <dd>
6743
+
6744
+ ```typescript
6745
+ await client.plangroups.createPlanGroup({
6746
+ addOnIds: ["add_on_ids"],
6747
+ planIds: ["plan_ids"],
6748
+ });
6749
+ ```
6750
+
6751
+ </dd>
6752
+ </dl>
6753
+ </dd>
6754
+ </dl>
6755
+
6756
+ #### ⚙️ Parameters
6757
+
6758
+ <dl>
6759
+ <dd>
6760
+
6761
+ <dl>
6762
+ <dd>
6763
+
6764
+ **request:** `Schematic.CreatePlanGroupRequestBody`
6765
+
6766
+ </dd>
6767
+ </dl>
6768
+
6769
+ <dl>
6770
+ <dd>
6771
+
6772
+ **requestOptions:** `Plangroups.RequestOptions`
6773
+
6774
+ </dd>
6775
+ </dl>
6776
+ </dd>
6777
+ </dl>
6778
+
6779
+ </dd>
6780
+ </dl>
6781
+ </details>
6782
+
6783
+ <details><summary><code>client.plangroups.<a href="/src/api/resources/plangroups/client/Client.ts">updatePlanGroup</a>(planGroupId, { ...params }) -> Schematic.UpdatePlanGroupResponse</code></summary>
6784
+ <dl>
6785
+ <dd>
6786
+
6787
+ #### 🔌 Usage
6788
+
6789
+ <dl>
6790
+ <dd>
6791
+
6792
+ <dl>
6793
+ <dd>
6794
+
6795
+ ```typescript
6796
+ await client.plangroups.updatePlanGroup("plan_group_id", {
6797
+ addOnIds: ["add_on_ids"],
6798
+ planIds: ["plan_ids"],
6799
+ });
6800
+ ```
6801
+
6802
+ </dd>
6803
+ </dl>
6804
+ </dd>
6805
+ </dl>
6806
+
6807
+ #### ⚙️ Parameters
6808
+
6809
+ <dl>
6810
+ <dd>
6811
+
6812
+ <dl>
6813
+ <dd>
6814
+
6815
+ **planGroupId:** `string` — plan_group_id
6816
+
6817
+ </dd>
6818
+ </dl>
6819
+
6820
+ <dl>
6821
+ <dd>
6822
+
6823
+ **request:** `Schematic.UpdatePlanGroupRequestBody`
6824
+
6825
+ </dd>
6826
+ </dl>
6827
+
6828
+ <dl>
6829
+ <dd>
6830
+
6831
+ **requestOptions:** `Plangroups.RequestOptions`
6508
6832
 
6509
6833
  </dd>
6510
6834
  </dl>
@@ -6779,7 +7103,7 @@ await client.webhooks.listWebhooks();
6779
7103
  ```typescript
6780
7104
  await client.webhooks.createWebhook({
6781
7105
  name: "name",
6782
- requestTypes: [Schematic.CreateWebhookRequestBodyRequestTypesItem.CompanyUpdated],
7106
+ requestTypes: ["company.updated"],
6783
7107
  url: "url",
6784
7108
  });
6785
7109
  ```