@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
@@ -23,15 +23,17 @@ __exportStar(require("./AudienceRequestBody"), exports);
23
23
  __exportStar(require("./BillingCustomerResponseData"), exports);
24
24
  __exportStar(require("./BillingCustomerSubscription"), exports);
25
25
  __exportStar(require("./BillingCustomerWithSubscriptionsResponseData"), exports);
26
- __exportStar(require("./BillingPlan"), exports);
27
- __exportStar(require("./BillingPlanGroupResponseData"), exports);
26
+ __exportStar(require("./BillingMeterResponseData"), exports);
28
27
  __exportStar(require("./BillingPriceResponseData"), exports);
28
+ __exportStar(require("./BillingPriceView"), exports);
29
29
  __exportStar(require("./BillingProductDetailResponseData"), exports);
30
30
  __exportStar(require("./BillingProductForSubscriptionResponseData"), exports);
31
31
  __exportStar(require("./BillingProductPlanResponseData"), exports);
32
+ __exportStar(require("./BillingProductPriceResponseData"), exports);
32
33
  __exportStar(require("./BillingProductPricing"), exports);
33
34
  __exportStar(require("./BillingProductResponseData"), exports);
34
35
  __exportStar(require("./BillingSubscriptionResponseData"), exports);
36
+ __exportStar(require("./BillingSubscriptionView"), exports);
35
37
  __exportStar(require("./CheckFlagOutputWithFlagKey"), exports);
36
38
  __exportStar(require("./CheckFlagRequestBody"), exports);
37
39
  __exportStar(require("./CheckFlagResponseData"), exports);
@@ -41,11 +43,19 @@ __exportStar(require("./CompanyDetailResponseData"), exports);
41
43
  __exportStar(require("./CompanyMembershipDetailResponseData"), exports);
42
44
  __exportStar(require("./CompanyMembershipResponseData"), exports);
43
45
  __exportStar(require("./CompanyOverrideResponseData"), exports);
46
+ __exportStar(require("./CompanyPlanDetailResponseData"), exports);
47
+ __exportStar(require("./CompanyPlanWithBillingSubView"), exports);
44
48
  __exportStar(require("./CompanyResponseData"), exports);
45
49
  __exportStar(require("./CompanySubscriptionResponseData"), exports);
50
+ __exportStar(require("./ComponentCapabilities"), exports);
46
51
  __exportStar(require("./ComponentHydrateResponseData"), exports);
52
+ __exportStar(require("./ComponentPreviewResponseData"), exports);
47
53
  __exportStar(require("./ComponentResponseData"), exports);
48
54
  __exportStar(require("./CountResponse"), exports);
55
+ __exportStar(require("./CreateEntitlementReqCommonMetricPeriod"), exports);
56
+ __exportStar(require("./CreateEntitlementReqCommonMetricPeriodMonthReset"), exports);
57
+ __exportStar(require("./CreateEntitlementReqCommonValueType"), exports);
58
+ __exportStar(require("./CreateEntitlementReqCommon"), exports);
49
59
  __exportStar(require("./EventBodyTrack"), exports);
50
60
  __exportStar(require("./EventBodyFlagCheck"), exports);
51
61
  __exportStar(require("./EventBodyIdentifyCompany"), exports);
@@ -57,14 +67,12 @@ __exportStar(require("./CreateFlagRequestBody"), exports);
57
67
  __exportStar(require("./CreateOrUpdateConditionGroupRequestBody"), exports);
58
68
  __exportStar(require("./CreateOrUpdateConditionRequestBodyConditionType"), exports);
59
69
  __exportStar(require("./CreateOrUpdateConditionRequestBodyMetricPeriod"), exports);
70
+ __exportStar(require("./CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset"), exports);
60
71
  __exportStar(require("./CreateOrUpdateConditionRequestBodyOperator"), exports);
61
72
  __exportStar(require("./CreateOrUpdateConditionRequestBody"), exports);
62
73
  __exportStar(require("./CreateOrUpdateFlagRequestBody"), exports);
63
74
  __exportStar(require("./CreateOrUpdateRuleRequestBodyRuleType"), exports);
64
75
  __exportStar(require("./CreateOrUpdateRuleRequestBody"), exports);
65
- __exportStar(require("./CreateReqCommonMetricPeriod"), exports);
66
- __exportStar(require("./CreateReqCommonValueType"), exports);
67
- __exportStar(require("./CreateReqCommon"), exports);
68
76
  __exportStar(require("./CrmDealLineItem"), exports);
69
77
  __exportStar(require("./CrmDealResponseData"), exports);
70
78
  __exportStar(require("./CrmLineItemResponseData"), exports);
@@ -94,31 +102,41 @@ __exportStar(require("./FeatureUsageResponseDataAllocationType"), exports);
94
102
  __exportStar(require("./FeatureUsageResponseData"), exports);
95
103
  __exportStar(require("./FlagDetailResponseData"), exports);
96
104
  __exportStar(require("./FlagResponseData"), exports);
105
+ __exportStar(require("./GenericPreviewObject"), exports);
106
+ __exportStar(require("./InvoiceRequestBody"), exports);
107
+ __exportStar(require("./InvoiceResponseData"), exports);
97
108
  __exportStar(require("./IssueTemporaryAccessTokenResponseData"), exports);
98
109
  __exportStar(require("./KeysRequestBody"), exports);
99
- __exportStar(require("./MetricCountsHourlyResponseData"), exports);
110
+ __exportStar(require("./MeterRequestBody"), exports);
100
111
  __exportStar(require("./PaginationFilter"), exports);
112
+ __exportStar(require("./PaymentMethodRequestBody"), exports);
113
+ __exportStar(require("./PaymentMethodResponseData"), exports);
101
114
  __exportStar(require("./PlanAudienceDetailResponseData"), exports);
102
115
  __exportStar(require("./PlanAudienceResponseData"), exports);
103
116
  __exportStar(require("./PlanDetailResponseData"), exports);
104
117
  __exportStar(require("./PlanEntitlementResponseData"), exports);
118
+ __exportStar(require("./PlanGroupDetailResponseData"), exports);
119
+ __exportStar(require("./PlanGroupPlanDetailResponseData"), exports);
120
+ __exportStar(require("./PlanGroupResponseData"), exports);
105
121
  __exportStar(require("./PlanResponseData"), exports);
106
122
  __exportStar(require("./PreviewObject"), exports);
123
+ __exportStar(require("./PreviewObjectResponseData"), exports);
107
124
  __exportStar(require("./RawEventBatchResponseData"), exports);
108
125
  __exportStar(require("./RawEventResponseData"), exports);
109
126
  __exportStar(require("./RuleConditionDetailResponseData"), exports);
110
127
  __exportStar(require("./RuleConditionGroupDetailResponseData"), exports);
111
128
  __exportStar(require("./RuleConditionGroupResponseData"), exports);
112
- __exportStar(require("./RuleConditionResourceResponseData"), exports);
113
129
  __exportStar(require("./RuleConditionResponseData"), exports);
114
130
  __exportStar(require("./RuleDetailResponseData"), exports);
115
131
  __exportStar(require("./RuleResponseData"), exports);
116
132
  __exportStar(require("./RulesDetailResponseData"), exports);
117
133
  __exportStar(require("./SegmentStatusResp"), exports);
134
+ __exportStar(require("./StripeEmbedInfo"), exports);
118
135
  __exportStar(require("./TemporaryAccessTokenResponseData"), exports);
119
- __exportStar(require("./UpdateReqCommonMetricPeriod"), exports);
120
- __exportStar(require("./UpdateReqCommonValueType"), exports);
121
- __exportStar(require("./UpdateReqCommon"), exports);
136
+ __exportStar(require("./UpdateEntitlementReqCommonMetricPeriod"), exports);
137
+ __exportStar(require("./UpdateEntitlementReqCommonMetricPeriodMonthReset"), exports);
138
+ __exportStar(require("./UpdateEntitlementReqCommonValueType"), exports);
139
+ __exportStar(require("./UpdateEntitlementReqCommon"), exports);
122
140
  __exportStar(require("./UpdateRuleRequestBody"), exports);
123
141
  __exportStar(require("./UpsertCompanyRequestBody"), exports);
124
142
  __exportStar(require("./UpsertTraitRequestBody"), exports);
@@ -13,7 +13,7 @@ export declare namespace Fetcher {
13
13
  withCredentials?: boolean;
14
14
  abortSignal?: AbortSignal;
15
15
  requestType?: "json" | "file" | "bytes";
16
- responseType?: "json" | "blob" | "sse" | "streaming" | "text";
16
+ responseType?: "json" | "blob" | "sse" | "streaming" | "text" | "arrayBuffer";
17
17
  duplex?: "half";
18
18
  }
19
19
  type Error = FailedStatusCodeError | NonJsonError | TimeoutError | UnknownError;
@@ -16,6 +16,9 @@ function getResponseBody(response, responseType) {
16
16
  if (response.body != null && responseType === "blob") {
17
17
  return yield response.blob();
18
18
  }
19
+ else if (response.body != null && responseType === "arrayBuffer") {
20
+ return yield response.arrayBuffer();
21
+ }
19
22
  else if (response.body != null && responseType === "sse") {
20
23
  return response.body;
21
24
  }
@@ -10,16 +10,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.requestWithRetries = void 0;
13
- const INITIAL_RETRY_DELAY = 1;
14
- const MAX_RETRY_DELAY = 60;
13
+ const INITIAL_RETRY_DELAY = 1000; // in milliseconds
14
+ const MAX_RETRY_DELAY = 60000; // in milliseconds
15
15
  const DEFAULT_MAX_RETRIES = 2;
16
+ const JITTER_FACTOR = 0.2; // 20% random jitter
17
+ function addJitter(delay) {
18
+ // Generate a random value between -JITTER_FACTOR and +JITTER_FACTOR
19
+ const jitterMultiplier = 1 + (Math.random() * 2 - 1) * JITTER_FACTOR;
20
+ return delay * jitterMultiplier;
21
+ }
16
22
  function requestWithRetries(requestFn, maxRetries = DEFAULT_MAX_RETRIES) {
17
23
  return __awaiter(this, void 0, void 0, function* () {
18
24
  let response = yield requestFn();
19
25
  for (let i = 0; i < maxRetries; ++i) {
20
26
  if ([408, 409, 429].includes(response.status) || response.status >= 500) {
21
- const delay = Math.min(INITIAL_RETRY_DELAY * Math.pow(2, i), MAX_RETRY_DELAY);
22
- yield new Promise((resolve) => setTimeout(resolve, delay));
27
+ // Calculate base delay using exponential backoff (in milliseconds)
28
+ const baseDelay = Math.min(INITIAL_RETRY_DELAY * Math.pow(2, i), MAX_RETRY_DELAY);
29
+ // Add jitter to the delay
30
+ const delayWithJitter = addJitter(baseDelay);
31
+ yield new Promise((resolve) => setTimeout(resolve, delayWithJitter));
23
32
  response = yield requestFn();
24
33
  }
25
34
  else {
@@ -1,24 +1,23 @@
1
- /// <reference types="node" />
2
- import type { Writable } from "stream";
1
+ import type { Writable } from "readable-stream";
3
2
  import { EventCallback, StreamWrapper } from "./chooseStreamWrapper";
4
- export declare class Node18UniversalStreamWrapper implements StreamWrapper<Node18UniversalStreamWrapper | Writable | WritableStream<Uint8Array>, Uint8Array> {
3
+ export declare class Node18UniversalStreamWrapper<ReadFormat extends Uint8Array | Uint16Array | Uint32Array> implements StreamWrapper<Node18UniversalStreamWrapper<ReadFormat> | Writable | WritableStream<ReadFormat>, ReadFormat> {
5
4
  private readableStream;
6
5
  private reader;
7
6
  private events;
8
7
  private paused;
9
8
  private resumeCallback;
10
9
  private encoding;
11
- constructor(readableStream: ReadableStream<Uint8Array>);
10
+ constructor(readableStream: ReadableStream<ReadFormat>);
12
11
  on(event: string, callback: EventCallback): void;
13
12
  off(event: string, callback: EventCallback): void;
14
- pipe(dest: Node18UniversalStreamWrapper | Writable | WritableStream<Uint8Array>): Node18UniversalStreamWrapper | Writable | WritableStream<Uint8Array>;
15
- pipeTo(dest: Node18UniversalStreamWrapper | Writable | WritableStream<Uint8Array>): Node18UniversalStreamWrapper | Writable | WritableStream<Uint8Array>;
16
- unpipe(dest: Node18UniversalStreamWrapper | Writable | WritableStream<Uint8Array>): void;
13
+ pipe(dest: Node18UniversalStreamWrapper<ReadFormat> | Writable | WritableStream<ReadFormat>): Node18UniversalStreamWrapper<ReadFormat> | Writable | WritableStream<ReadFormat>;
14
+ pipeTo(dest: Node18UniversalStreamWrapper<ReadFormat> | Writable | WritableStream<ReadFormat>): Node18UniversalStreamWrapper<ReadFormat> | Writable | WritableStream<ReadFormat>;
15
+ unpipe(dest: Node18UniversalStreamWrapper<ReadFormat> | Writable | WritableStream<ReadFormat>): void;
17
16
  destroy(error?: Error): void;
18
17
  pause(): void;
19
18
  resume(): void;
20
19
  get isPaused(): boolean;
21
- read(): Promise<Uint8Array | undefined>;
20
+ read(): Promise<ReadFormat | undefined>;
22
21
  setEncoding(encoding: string): void;
23
22
  text(): Promise<string>;
24
23
  json<T>(): Promise<T>;
@@ -27,4 +26,5 @@ export declare class Node18UniversalStreamWrapper implements StreamWrapper<Node1
27
26
  private _error;
28
27
  private _emit;
29
28
  private _startReading;
29
+ [Symbol.asyncIterator](): AsyncIterableIterator<ReadFormat>;
30
30
  }
@@ -165,10 +165,12 @@ class Node18UniversalStreamWrapper {
165
165
  const chunks = [];
166
166
  while (true) {
167
167
  const { done, value } = yield this.reader.read();
168
- if (done)
168
+ if (done) {
169
169
  break;
170
- if (value)
170
+ }
171
+ if (value) {
171
172
  chunks.push(value);
173
+ }
172
174
  }
173
175
  const decoder = new TextDecoder(this.encoding || "utf-8");
174
176
  return decoder.decode(yield new Blob(chunks).arrayBuffer());
@@ -222,5 +224,24 @@ class Node18UniversalStreamWrapper {
222
224
  }
223
225
  });
224
226
  }
227
+ [Symbol.asyncIterator]() {
228
+ return {
229
+ next: () => __awaiter(this, void 0, void 0, function* () {
230
+ if (this.paused) {
231
+ yield new Promise((resolve) => {
232
+ this.resumeCallback = resolve;
233
+ });
234
+ }
235
+ const { done, value } = yield this.reader.read();
236
+ if (done) {
237
+ return { done: true, value: undefined };
238
+ }
239
+ return { done: false, value };
240
+ }),
241
+ [Symbol.asyncIterator]() {
242
+ return this;
243
+ },
244
+ };
245
+ }
225
246
  }
226
247
  exports.Node18UniversalStreamWrapper = Node18UniversalStreamWrapper;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import type { Readable, Writable } from "stream";
2
+ import type { Readable, Writable } from "readable-stream";
3
3
  import { EventCallback, StreamWrapper } from "./chooseStreamWrapper";
4
4
  export declare class NodePre18StreamWrapper implements StreamWrapper<Writable, Buffer> {
5
5
  private readableStream;
@@ -18,4 +18,5 @@ export declare class NodePre18StreamWrapper implements StreamWrapper<Writable, B
18
18
  setEncoding(encoding?: string): void;
19
19
  text(): Promise<string>;
20
20
  json<T>(): Promise<T>;
21
+ [Symbol.asyncIterator](): AsyncIterableIterator<Buffer>;
21
22
  }
@@ -104,5 +104,21 @@ class NodePre18StreamWrapper {
104
104
  return JSON.parse(text);
105
105
  });
106
106
  }
107
+ [Symbol.asyncIterator]() {
108
+ const readableStream = this.readableStream;
109
+ const iterator = readableStream[Symbol.asyncIterator]();
110
+ // Create and return an async iterator that yields buffers
111
+ return {
112
+ next() {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ const { value, done } = yield iterator.next();
115
+ return { value: value, done };
116
+ });
117
+ },
118
+ [Symbol.asyncIterator]() {
119
+ return this;
120
+ },
121
+ };
122
+ }
107
123
  }
108
124
  exports.NodePre18StreamWrapper = NodePre18StreamWrapper;
@@ -12,7 +12,7 @@ export declare class UndiciStreamWrapper<ReadFormat extends Uint8Array | Uint16A
12
12
  off(event: string, callback: EventCallback): void;
13
13
  pipe(dest: UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>): UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>;
14
14
  pipeTo(dest: UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>): UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>;
15
- unpipe(dest: UndiciStreamWrapper<ReadFormat> | WritableStream<any>): void;
15
+ unpipe(dest: UndiciStreamWrapper<ReadFormat> | WritableStream): void;
16
16
  destroy(error?: Error): void;
17
17
  pause(): void;
18
18
  resume(): void;
@@ -26,5 +26,6 @@ export declare class UndiciStreamWrapper<ReadFormat extends Uint8Array | Uint16A
26
26
  private _error;
27
27
  private _emit;
28
28
  private _startReading;
29
+ [Symbol.asyncIterator](): AsyncIterableIterator<ReadFormat>;
29
30
  }
30
31
  export {};
@@ -147,10 +147,12 @@ class UndiciStreamWrapper {
147
147
  const chunks = [];
148
148
  while (true) {
149
149
  const { done, value } = yield this.reader.read();
150
- if (done)
150
+ if (done) {
151
151
  break;
152
- if (value)
152
+ }
153
+ if (value) {
153
154
  chunks.push(value);
155
+ }
154
156
  }
155
157
  const decoder = new TextDecoder(this.encoding || "utf-8");
156
158
  return decoder.decode(yield new Blob(chunks).arrayBuffer());
@@ -204,5 +206,24 @@ class UndiciStreamWrapper {
204
206
  }
205
207
  });
206
208
  }
209
+ [Symbol.asyncIterator]() {
210
+ return {
211
+ next: () => __awaiter(this, void 0, void 0, function* () {
212
+ if (this.paused) {
213
+ yield new Promise((resolve) => {
214
+ this.resumeCallback = resolve;
215
+ });
216
+ }
217
+ const { done, value } = yield this.reader.read();
218
+ if (done) {
219
+ return { done: true, value: undefined };
220
+ }
221
+ return { done: false, value };
222
+ }),
223
+ [Symbol.asyncIterator]() {
224
+ return this;
225
+ },
226
+ };
227
+ }
207
228
  }
208
229
  exports.UndiciStreamWrapper = UndiciStreamWrapper;
@@ -13,5 +13,6 @@ export interface StreamWrapper<WritableStream, ReadFormat> {
13
13
  read(): Promise<ReadFormat | undefined>;
14
14
  text(): Promise<string>;
15
15
  json<T>(): Promise<T>;
16
+ [Symbol.asyncIterator](): AsyncIterableIterator<ReadFormat>;
16
17
  }
17
18
  export declare function chooseStreamWrapper(responseBody: any): Promise<Promise<StreamWrapper<any, any>>>;
@@ -39,7 +39,7 @@ function chooseStreamWrapper(responseBody) {
39
39
  if (runtime_1.RUNTIME.type === "node" && runtime_1.RUNTIME.parsedVersion != null && runtime_1.RUNTIME.parsedVersion >= 18) {
40
40
  return new (yield Promise.resolve().then(() => __importStar(require("./Node18UniversalStreamWrapper")))).Node18UniversalStreamWrapper(responseBody);
41
41
  }
42
- else if (runtime_1.RUNTIME.type !== "node" && typeof fetch == "function") {
42
+ else if (runtime_1.RUNTIME.type !== "node" && typeof fetch === "function") {
43
43
  return new (yield Promise.resolve().then(() => __importStar(require("./UndiciStreamWrapper")))).UndiciStreamWrapper(responseBody);
44
44
  }
45
45
  else {
@@ -8,6 +8,7 @@ export interface BaseSchema<Raw, Parsed> {
8
8
  getType: () => SchemaType | SchemaType;
9
9
  }
10
10
  export declare const SchemaType: {
11
+ readonly BIGINT: "bigint";
11
12
  readonly DATE: "date";
12
13
  readonly ENUM: "enum";
13
14
  readonly LIST: "list";
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SchemaType = void 0;
4
4
  exports.SchemaType = {
5
+ BIGINT: "bigint",
5
6
  DATE: "date",
6
7
  ENUM: "enum",
7
8
  LIST: "list",
@@ -0,0 +1,2 @@
1
+ import { Schema } from "../../Schema";
2
+ export declare function bigint(): Schema<string, bigint>;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bigint = void 0;
4
+ const Schema_1 = require("../../Schema");
5
+ const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
6
+ const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
7
+ const schema_utils_1 = require("../schema-utils");
8
+ function bigint() {
9
+ const baseSchema = {
10
+ parse: (raw, { breadcrumbsPrefix = [] } = {}) => {
11
+ if (typeof raw !== "string") {
12
+ return {
13
+ ok: false,
14
+ errors: [
15
+ {
16
+ path: breadcrumbsPrefix,
17
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(raw, "string"),
18
+ },
19
+ ],
20
+ };
21
+ }
22
+ return {
23
+ ok: true,
24
+ value: BigInt(raw),
25
+ };
26
+ },
27
+ json: (bigint, { breadcrumbsPrefix = [] } = {}) => {
28
+ if (typeof bigint === "bigint") {
29
+ return {
30
+ ok: true,
31
+ value: bigint.toString(),
32
+ };
33
+ }
34
+ else {
35
+ return {
36
+ ok: false,
37
+ errors: [
38
+ {
39
+ path: breadcrumbsPrefix,
40
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(bigint, "bigint"),
41
+ },
42
+ ],
43
+ };
44
+ }
45
+ },
46
+ getType: () => Schema_1.SchemaType.BIGINT,
47
+ };
48
+ return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
49
+ }
50
+ exports.bigint = bigint;
@@ -0,0 +1 @@
1
+ export { bigint } from "./bigint";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bigint = void 0;
4
+ var bigint_1 = require("./bigint");
5
+ Object.defineProperty(exports, "bigint", { enumerable: true, get: function () { return bigint_1.bigint; } });
@@ -1,3 +1,4 @@
1
+ export * from "./bigint";
1
2
  export * from "./date";
2
3
  export * from "./enum";
3
4
  export * from "./lazy";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./bigint"), exports);
17
18
  __exportStar(require("./date"), exports);
18
19
  __exportStar(require("./enum"), exports);
19
20
  __exportStar(require("./lazy"), exports);
@@ -12,9 +12,13 @@ function getTypeAsString(value) {
12
12
  if (value === null) {
13
13
  return "null";
14
14
  }
15
+ if (value instanceof BigInt) {
16
+ return "BigInt";
17
+ }
15
18
  switch (typeof value) {
16
19
  case "string":
17
20
  return `"${value}"`;
21
+ case "bigint":
18
22
  case "number":
19
23
  case "boolean":
20
24
  case "undefined":
@@ -7,9 +7,12 @@ import * as core from "../../../../../core";
7
7
  export declare const CreateBillingPriceRequestBody: core.serialization.Schema<serializers.CreateBillingPriceRequestBody.Raw, Schematic.CreateBillingPriceRequestBody>;
8
8
  export declare namespace CreateBillingPriceRequestBody {
9
9
  interface Raw {
10
+ currency: string;
10
11
  interval: string;
12
+ meter_id?: string | null;
11
13
  price: number;
12
14
  price_external_id: string;
13
15
  product_external_id: string;
16
+ usage_type: string;
14
17
  }
15
18
  }
@@ -29,8 +29,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.CreateBillingPriceRequestBody = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
31
  exports.CreateBillingPriceRequestBody = core.serialization.object({
32
+ currency: core.serialization.string(),
32
33
  interval: core.serialization.string(),
34
+ meterId: core.serialization.property("meter_id", core.serialization.string().optional()),
33
35
  price: core.serialization.number(),
34
36
  priceExternalId: core.serialization.property("price_external_id", core.serialization.string()),
35
37
  productExternalId: core.serialization.property("product_external_id", core.serialization.string()),
38
+ usageType: core.serialization.property("usage_type", core.serialization.string()),
36
39
  });
@@ -8,13 +8,17 @@ import { BillingProductPricing } from "../../../../types/BillingProductPricing";
8
8
  export declare const CreateBillingSubscriptionsRequestBody: core.serialization.Schema<serializers.CreateBillingSubscriptionsRequestBody.Raw, Schematic.CreateBillingSubscriptionsRequestBody>;
9
9
  export declare namespace CreateBillingSubscriptionsRequestBody {
10
10
  interface Raw {
11
+ currency: string;
11
12
  customer_external_id: string;
12
13
  expired_at: string;
13
14
  interval?: string | null;
14
15
  metadata?: Record<string, unknown> | null;
16
+ period_end?: number | null;
17
+ period_start?: number | null;
15
18
  product_external_ids: BillingProductPricing.Raw[];
16
19
  status?: string | null;
17
20
  subscription_external_id: string;
18
21
  total_price: number;
22
+ trial_end?: number | null;
19
23
  }
20
24
  }
@@ -30,12 +30,16 @@ exports.CreateBillingSubscriptionsRequestBody = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
31
  const BillingProductPricing_1 = require("../../../../types/BillingProductPricing");
32
32
  exports.CreateBillingSubscriptionsRequestBody = core.serialization.object({
33
+ currency: core.serialization.string(),
33
34
  customerExternalId: core.serialization.property("customer_external_id", core.serialization.string()),
34
35
  expiredAt: core.serialization.property("expired_at", core.serialization.date()),
35
36
  interval: core.serialization.string().optional(),
36
37
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
38
+ periodEnd: core.serialization.property("period_end", core.serialization.number().optional()),
39
+ periodStart: core.serialization.property("period_start", core.serialization.number().optional()),
37
40
  productExternalIds: core.serialization.property("product_external_ids", core.serialization.list(BillingProductPricing_1.BillingProductPricing)),
38
41
  status: core.serialization.string().optional(),
39
42
  subscriptionExternalId: core.serialization.property("subscription_external_id", core.serialization.string()),
40
43
  totalPrice: core.serialization.property("total_price", core.serialization.number()),
44
+ trialEnd: core.serialization.property("trial_end", core.serialization.number().optional()),
41
45
  });
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as Schematic from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ export declare const CreateInvoiceRequestBody: core.serialization.Schema<serializers.CreateInvoiceRequestBody.Raw, Schematic.CreateInvoiceRequestBody>;
8
+ export declare namespace CreateInvoiceRequestBody {
9
+ interface Raw {
10
+ amount_due: number;
11
+ amount_paid: number;
12
+ amount_remaining: number;
13
+ collection_method: string;
14
+ currency: string;
15
+ customer_external_id: string;
16
+ due_date?: string | null;
17
+ external_id?: string | null;
18
+ payment_method_external_id?: string | null;
19
+ subscription_external_id?: string | null;
20
+ subtotal: number;
21
+ url?: string | null;
22
+ }
23
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CreateInvoiceRequestBody = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ exports.CreateInvoiceRequestBody = core.serialization.object({
32
+ amountDue: core.serialization.property("amount_due", core.serialization.number()),
33
+ amountPaid: core.serialization.property("amount_paid", core.serialization.number()),
34
+ amountRemaining: core.serialization.property("amount_remaining", core.serialization.number()),
35
+ collectionMethod: core.serialization.property("collection_method", core.serialization.string()),
36
+ currency: core.serialization.string(),
37
+ customerExternalId: core.serialization.property("customer_external_id", core.serialization.string()),
38
+ dueDate: core.serialization.property("due_date", core.serialization.date().optional()),
39
+ externalId: core.serialization.property("external_id", core.serialization.string().optional()),
40
+ paymentMethodExternalId: core.serialization.property("payment_method_external_id", core.serialization.string().optional()),
41
+ subscriptionExternalId: core.serialization.property("subscription_external_id", core.serialization.string().optional()),
42
+ subtotal: core.serialization.number(),
43
+ url: core.serialization.string().optional(),
44
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as Schematic from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ export declare const CreateMeterRequestBody: core.serialization.Schema<serializers.CreateMeterRequestBody.Raw, Schematic.CreateMeterRequestBody>;
8
+ export declare namespace CreateMeterRequestBody {
9
+ interface Raw {
10
+ display_name: string;
11
+ event_name: string;
12
+ event_payload_key: string;
13
+ external_id: string;
14
+ }
15
+ }
@@ -26,10 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ChangeSubscriptionRequestBody = void 0;
29
+ exports.CreateMeterRequestBody = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
- exports.ChangeSubscriptionRequestBody = core.serialization.object({
32
- action: core.serialization.string(),
33
- newPlanId: core.serialization.property("new_plan_id", core.serialization.string()),
34
- newPriceId: core.serialization.property("new_price_id", core.serialization.string()),
31
+ exports.CreateMeterRequestBody = core.serialization.object({
32
+ displayName: core.serialization.property("display_name", core.serialization.string()),
33
+ eventName: core.serialization.property("event_name", core.serialization.string()),
34
+ eventPayloadKey: core.serialization.property("event_payload_key", core.serialization.string()),
35
+ externalId: core.serialization.property("external_id", core.serialization.string()),
35
36
  });