@schematichq/schematic-typescript-node 1.1.8 → 1.1.10

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 (1615) hide show
  1. package/Client.d.ts +17 -13
  2. package/README.md +197 -0
  3. package/api/errors/BadRequestError.js +17 -7
  4. package/api/errors/ForbiddenError.js +17 -7
  5. package/api/errors/InternalServerError.js +17 -7
  6. package/api/errors/NotFoundError.js +17 -7
  7. package/api/errors/UnauthorizedError.js +17 -7
  8. package/api/resources/accesstokens/client/Client.d.ts +4 -0
  9. package/api/resources/accesstokens/client/Client.js +21 -11
  10. package/api/resources/accounts/client/Client.d.ts +4 -0
  11. package/api/resources/accounts/client/Client.js +83 -73
  12. package/api/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
  13. package/api/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
  14. package/api/resources/billing/client/Client.d.ts +38 -2
  15. package/api/resources/billing/client/Client.js +318 -105
  16. package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +2 -1
  17. package/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
  18. package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +10 -2
  19. package/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -0
  20. package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +6 -2
  21. package/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
  22. package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +2 -1
  23. package/api/resources/billing/client/requests/ListCouponsRequest.d.ts +19 -0
  24. package/api/resources/billing/client/requests/ListCouponsRequest.js +5 -0
  25. package/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +0 -1
  26. package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +2 -1
  27. package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +3 -1
  28. package/api/resources/billing/client/requests/index.d.ts +1 -0
  29. package/api/resources/billing/types/CountBillingProductsParams.d.ts +2 -1
  30. package/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +8 -0
  31. package/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +10 -0
  32. package/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
  33. package/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +10 -0
  34. package/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +8 -0
  35. package/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +10 -0
  36. package/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +8 -0
  37. package/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +10 -0
  38. package/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +8 -0
  39. package/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +10 -0
  40. package/api/resources/billing/types/DeleteBillingProductResponse.d.ts +9 -0
  41. package/api/resources/billing/types/DeleteBillingProductResponse.js +5 -0
  42. package/api/resources/billing/types/ListBillingProductsParams.d.ts +2 -1
  43. package/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +8 -0
  44. package/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +10 -0
  45. package/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
  46. package/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +10 -0
  47. package/api/resources/billing/types/ListCouponsParams.d.ts +14 -0
  48. package/api/resources/billing/types/ListCouponsParams.js +5 -0
  49. package/api/resources/billing/types/ListCouponsResponse.d.ts +10 -0
  50. package/api/resources/billing/types/ListCouponsResponse.js +5 -0
  51. package/api/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
  52. package/api/resources/billing/types/ListProductPricesParams.d.ts +2 -1
  53. package/api/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +8 -0
  54. package/api/resources/billing/types/ListProductPricesRequestPriceUsageType.js +10 -0
  55. package/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +8 -0
  56. package/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +10 -0
  57. package/api/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
  58. package/api/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +8 -0
  59. package/api/resources/billing/types/SearchBillingPricesRequestUsageType.js +10 -0
  60. package/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +8 -0
  61. package/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +10 -0
  62. package/api/resources/billing/types/index.d.ts +14 -0
  63. package/api/resources/billing/types/index.js +14 -0
  64. package/api/resources/checkout/client/Client.d.ts +10 -4
  65. package/api/resources/checkout/client/Client.js +49 -36
  66. package/api/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
  67. package/api/resources/checkout/client/requests/CheckoutDataRequestBody.js +5 -0
  68. package/api/resources/checkout/client/requests/index.d.ts +1 -0
  69. package/api/resources/companies/client/Client.d.ts +4 -0
  70. package/api/resources/companies/client/Client.js +172 -159
  71. package/api/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
  72. package/api/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
  73. package/api/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
  74. package/api/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
  75. package/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
  76. package/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
  77. package/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.d.ts +1 -1
  78. package/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
  79. package/api/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
  80. package/api/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
  81. package/api/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
  82. package/api/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
  83. package/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
  84. package/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
  85. package/api/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
  86. package/api/resources/components/client/Client.d.ts +4 -0
  87. package/api/resources/components/client/Client.js +53 -43
  88. package/api/resources/components/types/CreateComponentRequestBodyEntityType.d.ts +1 -1
  89. package/api/resources/components/types/UpdateComponentRequestBodyEntityType.d.ts +1 -1
  90. package/api/resources/components/types/UpdateComponentRequestBodyState.d.ts +1 -1
  91. package/api/resources/crm/client/Client.d.ts +4 -0
  92. package/api/resources/crm/client/Client.js +39 -29
  93. package/api/resources/entitlements/client/Client.d.ts +4 -0
  94. package/api/resources/entitlements/client/Client.js +109 -98
  95. package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  96. package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
  97. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  98. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  99. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +1 -1
  100. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  101. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  102. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +1 -1
  103. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  104. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  105. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +1 -1
  106. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  107. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  108. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +1 -1
  109. package/api/resources/events/client/Client.d.ts +4 -0
  110. package/api/resources/events/client/Client.js +45 -35
  111. package/api/resources/features/client/Client.d.ts +4 -0
  112. package/api/resources/features/client/Client.js +103 -93
  113. package/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  114. package/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  115. package/api/resources/features/types/CreateFeatureRequestBodyFeatureType.d.ts +1 -1
  116. package/api/resources/features/types/UpdateFeatureRequestBodyFeatureType.d.ts +1 -1
  117. package/api/resources/index.js +17 -7
  118. package/api/resources/plangroups/client/Client.d.ts +10 -2
  119. package/api/resources/plangroups/client/Client.js +35 -21
  120. package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +7 -2
  121. package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +7 -2
  122. package/api/resources/plans/client/Client.d.ts +4 -0
  123. package/api/resources/plans/client/Client.js +79 -59
  124. package/api/resources/plans/client/requests/CountPlansRequest.d.ts +4 -0
  125. package/api/resources/plans/client/requests/ListPlansRequest.d.ts +4 -0
  126. package/api/resources/plans/types/CountPlansParams.d.ts +2 -0
  127. package/api/resources/plans/types/CountPlansRequestPlanType.d.ts +1 -1
  128. package/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +1 -1
  129. package/api/resources/plans/types/CreatePlanRequestBodyPlanType.d.ts +1 -1
  130. package/api/resources/plans/types/ListPlansParams.d.ts +2 -0
  131. package/api/resources/plans/types/ListPlansRequestPlanType.d.ts +1 -1
  132. package/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +1 -1
  133. package/api/resources/webhooks/client/Client.d.ts +4 -0
  134. package/api/resources/webhooks/client/Client.js +63 -53
  135. package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  136. package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  137. package/api/resources/webhooks/types/UpdateWebhookRequestBodyStatus.d.ts +1 -1
  138. package/api/types/BillingCouponResponseData.d.ts +0 -3
  139. package/api/types/BillingProductDetailResponseData.d.ts +1 -0
  140. package/api/types/BillingProductPricing.d.ts +2 -1
  141. package/api/types/BillingProductPricingUsageType.d.ts +8 -0
  142. package/api/types/BillingProductPricingUsageType.js +10 -0
  143. package/api/types/BillingSubscriptionResponseData.d.ts +3 -0
  144. package/api/types/BillingSubscriptionView.d.ts +3 -0
  145. package/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  146. package/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  147. package/api/types/CheckoutDataResponseData.d.ts +3 -1
  148. package/api/types/CompanyDetailResponseData.d.ts +1 -0
  149. package/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
  150. package/api/types/CompanySubscriptionResponseData.d.ts +2 -0
  151. package/api/types/ComponentCapabilities.d.ts +1 -0
  152. package/api/types/CreateBillingPriceTierRequestBody.d.ts +9 -0
  153. package/api/types/CreateBillingPriceTierRequestBody.js +5 -0
  154. package/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  155. package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
  156. package/api/types/CreateEntitlementReqCommonValueType.d.ts +1 -1
  157. package/api/types/CreateEventRequestBodyEventType.d.ts +1 -1
  158. package/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
  159. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  160. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  161. package/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
  162. package/api/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -1
  163. package/api/types/CustomPlanConfig.d.ts +8 -0
  164. package/api/types/CustomPlanConfig.js +5 -0
  165. package/api/types/CustomPlanViewConfigResponseData.d.ts +8 -0
  166. package/api/types/CustomPlanViewConfigResponseData.js +5 -0
  167. package/api/types/Decimal.d.ts +1 -1
  168. package/api/types/EntitlementsInPlan.d.ts +7 -0
  169. package/api/types/EntitlementsInPlan.js +5 -0
  170. package/api/types/EventBody.d.ts +1 -1
  171. package/api/types/EventBodyTrack.d.ts +2 -0
  172. package/api/types/EventDetailResponseData.d.ts +1 -0
  173. package/api/types/EventResponseData.d.ts +1 -0
  174. package/api/types/FeatureCompanyResponseDataAllocationType.d.ts +1 -1
  175. package/api/types/FeatureCompanyUserResponseDataAllocationType.d.ts +1 -1
  176. package/api/types/FeatureDetailResponseData.d.ts +2 -0
  177. package/api/types/FeatureResponseData.d.ts +2 -0
  178. package/api/types/FeatureUsageResponseData.d.ts +2 -0
  179. package/api/types/FeatureUsageResponseDataAllocationType.d.ts +1 -1
  180. package/api/types/OrderedPlansInGroup.d.ts +8 -0
  181. package/api/types/OrderedPlansInGroup.js +5 -0
  182. package/api/types/PaymentMethodRequestBody.d.ts +0 -1
  183. package/api/types/PaymentMethodResponseData.d.ts +0 -1
  184. package/api/types/PlanEntitlementResponseData.d.ts +1 -0
  185. package/api/types/PlanEntitlementsOrder.d.ts +7 -0
  186. package/api/types/PlanEntitlementsOrder.js +5 -0
  187. package/api/types/PlanGroupDetailResponseData.d.ts +3 -0
  188. package/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
  189. package/api/types/PlanGroupPlanEntitlementsOrder.d.ts +8 -0
  190. package/api/types/PlanGroupPlanEntitlementsOrder.js +5 -0
  191. package/api/types/PlanGroupResponseData.d.ts +2 -1
  192. package/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  193. package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
  194. package/api/types/UpdateEntitlementReqCommonValueType.d.ts +1 -1
  195. package/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
  196. package/api/types/UsageBasedEntitlementResponseData.d.ts +2 -0
  197. package/api/types/WebhookResponseData.d.ts +1 -0
  198. package/api/types/index.d.ts +8 -0
  199. package/api/types/index.js +8 -0
  200. package/core/fetcher/APIResponse.d.ts +1 -1
  201. package/core/fetcher/Fetcher.d.ts +2 -2
  202. package/core/fetcher/Fetcher.js +6 -5
  203. package/core/fetcher/Supplier.d.ts +1 -1
  204. package/core/fetcher/createRequestUrl.d.ts +1 -1
  205. package/core/fetcher/createRequestUrl.js +1 -2
  206. package/core/fetcher/custom.js +2 -2
  207. package/core/fetcher/getFetchFn.js +18 -9
  208. package/core/fetcher/getHeader.js +1 -2
  209. package/core/fetcher/getRequestBody.js +5 -5
  210. package/core/fetcher/getResponseBody.js +1 -2
  211. package/core/fetcher/makeRequest.d.ts +1 -1
  212. package/core/fetcher/requestWithRetries.js +4 -5
  213. package/core/fetcher/signals.d.ts +0 -1
  214. package/core/fetcher/signals.js +2 -3
  215. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
  216. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
  217. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
  218. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
  219. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
  220. package/core/index.js +17 -7
  221. package/core/json.d.ts +15 -0
  222. package/core/json.js +24 -0
  223. package/core/runtime/runtime.d.ts +1 -1
  224. package/core/runtime/runtime.js +51 -41
  225. package/core/schemas/Schema.d.ts +7 -5
  226. package/core/schemas/Schema.js +2 -0
  227. package/core/schemas/builders/bigint/bigint.d.ts +1 -1
  228. package/core/schemas/builders/bigint/bigint.js +22 -19
  229. package/core/schemas/builders/date/date.js +1 -2
  230. package/core/schemas/builders/enum/enum.js +1 -2
  231. package/core/schemas/builders/lazy/lazy.d.ts +1 -1
  232. package/core/schemas/builders/lazy/lazy.js +3 -4
  233. package/core/schemas/builders/lazy/lazyObject.js +1 -2
  234. package/core/schemas/builders/list/list.js +1 -2
  235. package/core/schemas/builders/literals/booleanLiteral.js +1 -2
  236. package/core/schemas/builders/literals/stringLiteral.js +1 -2
  237. package/core/schemas/builders/object/object.d.ts +1 -1
  238. package/core/schemas/builders/object/object.js +31 -3
  239. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
  240. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
  241. package/core/schemas/builders/object/property.js +2 -3
  242. package/core/schemas/builders/object/types.d.ts +16 -11
  243. package/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
  244. package/core/schemas/builders/object-like/types.d.ts +1 -1
  245. package/core/schemas/builders/record/record.js +2 -4
  246. package/core/schemas/builders/record/types.d.ts +2 -2
  247. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
  248. package/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
  249. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
  250. package/core/schemas/builders/set/set.js +1 -2
  251. package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
  252. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
  253. package/core/schemas/builders/union/discriminant.js +1 -2
  254. package/core/schemas/builders/union/types.d.ts +6 -6
  255. package/core/schemas/builders/union/union.d.ts +1 -1
  256. package/core/schemas/builders/union/union.js +1 -2
  257. package/core/schemas/utils/MaybePromise.d.ts +1 -1
  258. package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
  259. package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
  260. package/core/schemas/utils/entries.d.ts +1 -1
  261. package/core/schemas/utils/entries.js +1 -2
  262. package/core/schemas/utils/filterObject.d.ts +1 -1
  263. package/core/schemas/utils/filterObject.js +1 -2
  264. package/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
  265. package/core/schemas/utils/isPlainObject.js +1 -2
  266. package/core/schemas/utils/keys.d.ts +1 -1
  267. package/core/schemas/utils/keys.js +1 -2
  268. package/core/schemas/utils/maybeSkipValidation.js +1 -2
  269. package/core/schemas/utils/partition.js +1 -2
  270. package/dist/Client.d.ts +17 -13
  271. package/dist/api/errors/BadRequestError.js +17 -7
  272. package/dist/api/errors/ForbiddenError.js +17 -7
  273. package/dist/api/errors/InternalServerError.js +17 -7
  274. package/dist/api/errors/NotFoundError.js +17 -7
  275. package/dist/api/errors/UnauthorizedError.js +17 -7
  276. package/dist/api/resources/accesstokens/client/Client.d.ts +4 -0
  277. package/dist/api/resources/accesstokens/client/Client.js +21 -11
  278. package/dist/api/resources/accounts/client/Client.d.ts +4 -0
  279. package/dist/api/resources/accounts/client/Client.js +83 -73
  280. package/dist/api/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
  281. package/dist/api/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
  282. package/dist/api/resources/billing/client/Client.d.ts +38 -2
  283. package/dist/api/resources/billing/client/Client.js +318 -105
  284. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +2 -1
  285. package/dist/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
  286. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +10 -2
  287. package/dist/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -0
  288. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +6 -2
  289. package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
  290. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +2 -1
  291. package/dist/api/resources/billing/client/requests/ListCouponsRequest.d.ts +19 -0
  292. package/dist/api/resources/billing/client/requests/ListCouponsRequest.js +5 -0
  293. package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +0 -1
  294. package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +2 -1
  295. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +3 -1
  296. package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
  297. package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +2 -1
  298. package/dist/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +8 -0
  299. package/dist/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +10 -0
  300. package/dist/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
  301. package/dist/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +10 -0
  302. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +8 -0
  303. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +10 -0
  304. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +8 -0
  305. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +10 -0
  306. package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +8 -0
  307. package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +10 -0
  308. package/dist/api/resources/billing/types/DeleteBillingProductResponse.d.ts +9 -0
  309. package/dist/api/resources/billing/types/DeleteBillingProductResponse.js +5 -0
  310. package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +2 -1
  311. package/dist/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +8 -0
  312. package/dist/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +10 -0
  313. package/dist/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
  314. package/dist/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +10 -0
  315. package/dist/api/resources/billing/types/ListCouponsParams.d.ts +14 -0
  316. package/dist/api/resources/billing/types/ListCouponsParams.js +5 -0
  317. package/dist/api/resources/billing/types/ListCouponsResponse.d.ts +10 -0
  318. package/dist/api/resources/billing/types/ListCouponsResponse.js +5 -0
  319. package/dist/api/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
  320. package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +2 -1
  321. package/dist/api/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +8 -0
  322. package/dist/api/resources/billing/types/ListProductPricesRequestPriceUsageType.js +10 -0
  323. package/dist/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +8 -0
  324. package/dist/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +10 -0
  325. package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
  326. package/dist/api/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +8 -0
  327. package/dist/api/resources/billing/types/SearchBillingPricesRequestUsageType.js +10 -0
  328. package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +8 -0
  329. package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +10 -0
  330. package/dist/api/resources/billing/types/index.d.ts +14 -0
  331. package/dist/api/resources/billing/types/index.js +14 -0
  332. package/dist/api/resources/checkout/client/Client.d.ts +10 -4
  333. package/dist/api/resources/checkout/client/Client.js +49 -36
  334. package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
  335. package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.js +5 -0
  336. package/dist/api/resources/checkout/client/requests/index.d.ts +1 -0
  337. package/dist/api/resources/companies/client/Client.d.ts +4 -0
  338. package/dist/api/resources/companies/client/Client.js +172 -159
  339. package/dist/api/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
  340. package/dist/api/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
  341. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
  342. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
  343. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
  344. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
  345. package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.d.ts +1 -1
  346. package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
  347. package/dist/api/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
  348. package/dist/api/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
  349. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
  350. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
  351. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
  352. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
  353. package/dist/api/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
  354. package/dist/api/resources/components/client/Client.d.ts +4 -0
  355. package/dist/api/resources/components/client/Client.js +53 -43
  356. package/dist/api/resources/components/types/CreateComponentRequestBodyEntityType.d.ts +1 -1
  357. package/dist/api/resources/components/types/UpdateComponentRequestBodyEntityType.d.ts +1 -1
  358. package/dist/api/resources/components/types/UpdateComponentRequestBodyState.d.ts +1 -1
  359. package/dist/api/resources/crm/client/Client.d.ts +4 -0
  360. package/dist/api/resources/crm/client/Client.js +39 -29
  361. package/dist/api/resources/entitlements/client/Client.d.ts +4 -0
  362. package/dist/api/resources/entitlements/client/Client.js +109 -98
  363. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  364. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
  365. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  366. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  367. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +1 -1
  368. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  369. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  370. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +1 -1
  371. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  372. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  373. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +1 -1
  374. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  375. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  376. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +1 -1
  377. package/dist/api/resources/events/client/Client.d.ts +4 -0
  378. package/dist/api/resources/events/client/Client.js +45 -35
  379. package/dist/api/resources/features/client/Client.d.ts +4 -0
  380. package/dist/api/resources/features/client/Client.js +103 -93
  381. package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  382. package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  383. package/dist/api/resources/features/types/CreateFeatureRequestBodyFeatureType.d.ts +1 -1
  384. package/dist/api/resources/features/types/UpdateFeatureRequestBodyFeatureType.d.ts +1 -1
  385. package/dist/api/resources/index.js +17 -7
  386. package/dist/api/resources/plangroups/client/Client.d.ts +10 -2
  387. package/dist/api/resources/plangroups/client/Client.js +35 -21
  388. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +7 -2
  389. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +7 -2
  390. package/dist/api/resources/plans/client/Client.d.ts +4 -0
  391. package/dist/api/resources/plans/client/Client.js +79 -59
  392. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +4 -0
  393. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +4 -0
  394. package/dist/api/resources/plans/types/CountPlansParams.d.ts +2 -0
  395. package/dist/api/resources/plans/types/CountPlansRequestPlanType.d.ts +1 -1
  396. package/dist/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +1 -1
  397. package/dist/api/resources/plans/types/CreatePlanRequestBodyPlanType.d.ts +1 -1
  398. package/dist/api/resources/plans/types/ListPlansParams.d.ts +2 -0
  399. package/dist/api/resources/plans/types/ListPlansRequestPlanType.d.ts +1 -1
  400. package/dist/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +1 -1
  401. package/dist/api/resources/webhooks/client/Client.d.ts +4 -0
  402. package/dist/api/resources/webhooks/client/Client.js +63 -53
  403. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  404. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  405. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyStatus.d.ts +1 -1
  406. package/dist/api/types/BillingCouponResponseData.d.ts +0 -3
  407. package/dist/api/types/BillingProductDetailResponseData.d.ts +1 -0
  408. package/dist/api/types/BillingProductPricing.d.ts +2 -1
  409. package/dist/api/types/BillingProductPricingUsageType.d.ts +8 -0
  410. package/dist/api/types/BillingProductPricingUsageType.js +10 -0
  411. package/dist/api/types/BillingSubscriptionResponseData.d.ts +3 -0
  412. package/dist/api/types/BillingSubscriptionView.d.ts +3 -0
  413. package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  414. package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  415. package/dist/api/types/CheckoutDataResponseData.d.ts +3 -1
  416. package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
  417. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
  418. package/dist/api/types/CompanySubscriptionResponseData.d.ts +2 -0
  419. package/dist/api/types/ComponentCapabilities.d.ts +1 -0
  420. package/dist/api/types/CreateBillingPriceTierRequestBody.d.ts +9 -0
  421. package/dist/api/types/CreateBillingPriceTierRequestBody.js +5 -0
  422. package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  423. package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
  424. package/dist/api/types/CreateEntitlementReqCommonValueType.d.ts +1 -1
  425. package/dist/api/types/CreateEventRequestBodyEventType.d.ts +1 -1
  426. package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
  427. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  428. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  429. package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
  430. package/dist/api/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -1
  431. package/dist/api/types/CustomPlanConfig.d.ts +8 -0
  432. package/dist/api/types/CustomPlanConfig.js +5 -0
  433. package/dist/api/types/CustomPlanViewConfigResponseData.d.ts +8 -0
  434. package/dist/api/types/CustomPlanViewConfigResponseData.js +5 -0
  435. package/dist/api/types/Decimal.d.ts +1 -1
  436. package/dist/api/types/EntitlementsInPlan.d.ts +7 -0
  437. package/dist/api/types/EntitlementsInPlan.js +5 -0
  438. package/dist/api/types/EventBody.d.ts +1 -1
  439. package/dist/api/types/EventBodyTrack.d.ts +2 -0
  440. package/dist/api/types/EventDetailResponseData.d.ts +1 -0
  441. package/dist/api/types/EventResponseData.d.ts +1 -0
  442. package/dist/api/types/FeatureCompanyResponseDataAllocationType.d.ts +1 -1
  443. package/dist/api/types/FeatureCompanyUserResponseDataAllocationType.d.ts +1 -1
  444. package/dist/api/types/FeatureDetailResponseData.d.ts +2 -0
  445. package/dist/api/types/FeatureResponseData.d.ts +2 -0
  446. package/dist/api/types/FeatureUsageResponseData.d.ts +2 -0
  447. package/dist/api/types/FeatureUsageResponseDataAllocationType.d.ts +1 -1
  448. package/dist/api/types/OrderedPlansInGroup.d.ts +8 -0
  449. package/dist/api/types/OrderedPlansInGroup.js +5 -0
  450. package/dist/api/types/PaymentMethodRequestBody.d.ts +0 -1
  451. package/dist/api/types/PaymentMethodResponseData.d.ts +0 -1
  452. package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -0
  453. package/dist/api/types/PlanEntitlementsOrder.d.ts +7 -0
  454. package/dist/api/types/PlanEntitlementsOrder.js +5 -0
  455. package/dist/api/types/PlanGroupDetailResponseData.d.ts +3 -0
  456. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
  457. package/dist/api/types/PlanGroupPlanEntitlementsOrder.d.ts +8 -0
  458. package/dist/api/types/PlanGroupPlanEntitlementsOrder.js +5 -0
  459. package/dist/api/types/PlanGroupResponseData.d.ts +2 -1
  460. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  461. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
  462. package/dist/api/types/UpdateEntitlementReqCommonValueType.d.ts +1 -1
  463. package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
  464. package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +2 -0
  465. package/dist/api/types/WebhookResponseData.d.ts +1 -0
  466. package/dist/api/types/index.d.ts +8 -0
  467. package/dist/api/types/index.js +8 -0
  468. package/dist/core/fetcher/APIResponse.d.ts +1 -1
  469. package/dist/core/fetcher/Fetcher.d.ts +2 -2
  470. package/dist/core/fetcher/Fetcher.js +6 -5
  471. package/dist/core/fetcher/Supplier.d.ts +1 -1
  472. package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
  473. package/dist/core/fetcher/createRequestUrl.js +1 -2
  474. package/dist/core/fetcher/custom.js +2 -2
  475. package/dist/core/fetcher/getFetchFn.js +18 -9
  476. package/dist/core/fetcher/getHeader.js +1 -2
  477. package/dist/core/fetcher/getRequestBody.js +5 -5
  478. package/dist/core/fetcher/getResponseBody.js +1 -2
  479. package/dist/core/fetcher/makeRequest.d.ts +1 -1
  480. package/dist/core/fetcher/requestWithRetries.js +4 -5
  481. package/dist/core/fetcher/signals.d.ts +0 -1
  482. package/dist/core/fetcher/signals.js +2 -3
  483. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
  484. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
  485. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
  486. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
  487. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
  488. package/dist/core/index.js +17 -7
  489. package/dist/core/json.d.ts +15 -0
  490. package/dist/core/json.js +24 -0
  491. package/dist/core/runtime/runtime.d.ts +1 -1
  492. package/dist/core/runtime/runtime.js +51 -41
  493. package/dist/core/schemas/Schema.d.ts +7 -5
  494. package/dist/core/schemas/Schema.js +2 -0
  495. package/dist/core/schemas/builders/bigint/bigint.d.ts +1 -1
  496. package/dist/core/schemas/builders/bigint/bigint.js +22 -19
  497. package/dist/core/schemas/builders/date/date.js +1 -2
  498. package/dist/core/schemas/builders/enum/enum.js +1 -2
  499. package/dist/core/schemas/builders/lazy/lazy.d.ts +1 -1
  500. package/dist/core/schemas/builders/lazy/lazy.js +3 -4
  501. package/dist/core/schemas/builders/lazy/lazyObject.js +1 -2
  502. package/dist/core/schemas/builders/list/list.js +1 -2
  503. package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
  504. package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
  505. package/dist/core/schemas/builders/object/object.d.ts +1 -1
  506. package/dist/core/schemas/builders/object/object.js +31 -3
  507. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
  508. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
  509. package/dist/core/schemas/builders/object/property.js +2 -3
  510. package/dist/core/schemas/builders/object/types.d.ts +16 -11
  511. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
  512. package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
  513. package/dist/core/schemas/builders/record/record.js +2 -4
  514. package/dist/core/schemas/builders/record/types.d.ts +2 -2
  515. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
  516. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
  517. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
  518. package/dist/core/schemas/builders/set/set.js +1 -2
  519. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
  520. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
  521. package/dist/core/schemas/builders/union/discriminant.js +1 -2
  522. package/dist/core/schemas/builders/union/types.d.ts +6 -6
  523. package/dist/core/schemas/builders/union/union.d.ts +1 -1
  524. package/dist/core/schemas/builders/union/union.js +1 -2
  525. package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
  526. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
  527. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
  528. package/dist/core/schemas/utils/entries.d.ts +1 -1
  529. package/dist/core/schemas/utils/entries.js +1 -2
  530. package/dist/core/schemas/utils/filterObject.d.ts +1 -1
  531. package/dist/core/schemas/utils/filterObject.js +1 -2
  532. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
  533. package/dist/core/schemas/utils/isPlainObject.js +1 -2
  534. package/dist/core/schemas/utils/keys.d.ts +1 -1
  535. package/dist/core/schemas/utils/keys.js +1 -2
  536. package/dist/core/schemas/utils/maybeSkipValidation.js +1 -2
  537. package/dist/core/schemas/utils/partition.js +1 -2
  538. package/dist/environments.d.ts +1 -1
  539. package/dist/errors/SchematicError.js +2 -1
  540. package/dist/errors/SchematicTimeoutError.d.ts +1 -1
  541. package/dist/errors/SchematicTimeoutError.js +2 -2
  542. package/dist/events.test.js +1 -1
  543. package/dist/index.d.ts +1 -0
  544. package/dist/index.js +26 -8
  545. package/dist/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +17 -7
  546. package/dist/serialization/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.js +17 -7
  547. package/dist/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.js +17 -7
  548. package/dist/serialization/resources/accounts/client/requests/CreateEnvironmentRequestBody.js +17 -7
  549. package/dist/serialization/resources/accounts/client/requests/UpdateApiKeyRequestBody.js +17 -7
  550. package/dist/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.js +17 -7
  551. package/dist/serialization/resources/accounts/types/CountApiKeysParams.js +17 -7
  552. package/dist/serialization/resources/accounts/types/CountApiKeysResponse.js +17 -7
  553. package/dist/serialization/resources/accounts/types/CountApiRequestsParams.js +17 -7
  554. package/dist/serialization/resources/accounts/types/CountApiRequestsResponse.js +17 -7
  555. package/dist/serialization/resources/accounts/types/CreateApiKeyResponse.js +17 -7
  556. package/dist/serialization/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.js +17 -7
  557. package/dist/serialization/resources/accounts/types/CreateEnvironmentResponse.js +17 -7
  558. package/dist/serialization/resources/accounts/types/DeleteApiKeyResponse.js +17 -7
  559. package/dist/serialization/resources/accounts/types/DeleteEnvironmentResponse.js +17 -7
  560. package/dist/serialization/resources/accounts/types/GetApiKeyResponse.js +17 -7
  561. package/dist/serialization/resources/accounts/types/GetApiRequestResponse.js +17 -7
  562. package/dist/serialization/resources/accounts/types/GetEnvironmentResponse.js +17 -7
  563. package/dist/serialization/resources/accounts/types/ListApiKeysParams.js +17 -7
  564. package/dist/serialization/resources/accounts/types/ListApiKeysResponse.js +17 -7
  565. package/dist/serialization/resources/accounts/types/ListApiRequestsParams.js +17 -7
  566. package/dist/serialization/resources/accounts/types/ListApiRequestsResponse.js +17 -7
  567. package/dist/serialization/resources/accounts/types/ListEnvironmentsParams.js +17 -7
  568. package/dist/serialization/resources/accounts/types/ListEnvironmentsResponse.js +17 -7
  569. package/dist/serialization/resources/accounts/types/UpdateApiKeyResponse.js +17 -7
  570. package/dist/serialization/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.js +17 -7
  571. package/dist/serialization/resources/accounts/types/UpdateEnvironmentResponse.js +17 -7
  572. package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
  573. package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.js +18 -7
  574. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +7 -1
  575. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +24 -8
  576. package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -0
  577. package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +18 -7
  578. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +5 -1
  579. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +22 -8
  580. package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +17 -7
  581. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +17 -7
  582. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +17 -7
  583. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
  584. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +17 -8
  585. package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +2 -1
  586. package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +19 -8
  587. package/dist/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +10 -0
  588. package/dist/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +41 -0
  589. package/dist/serialization/resources/billing/types/CountBillingProductsResponse.js +17 -7
  590. package/dist/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
  591. package/dist/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +41 -0
  592. package/dist/serialization/resources/billing/types/CountCustomersParams.js +17 -7
  593. package/dist/serialization/resources/billing/types/CountCustomersResponse.js +17 -7
  594. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +10 -0
  595. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +41 -0
  596. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +10 -0
  597. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +41 -0
  598. package/dist/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +10 -0
  599. package/dist/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +41 -0
  600. package/dist/serialization/resources/billing/types/DeleteBillingProductResponse.d.ts +14 -0
  601. package/dist/serialization/resources/billing/types/DeleteBillingProductResponse.js +45 -0
  602. package/dist/serialization/resources/billing/types/DeleteProductPriceResponse.js +17 -7
  603. package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +2 -1
  604. package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +19 -8
  605. package/dist/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +10 -0
  606. package/dist/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +41 -0
  607. package/dist/serialization/resources/billing/types/ListBillingProductsResponse.js +17 -7
  608. package/dist/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
  609. package/dist/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +41 -0
  610. package/dist/serialization/resources/billing/types/ListCouponsParams.d.ts +15 -0
  611. package/dist/serialization/resources/billing/types/ListCouponsParams.js +46 -0
  612. package/dist/serialization/resources/billing/types/ListCouponsResponse.d.ts +15 -0
  613. package/dist/serialization/resources/billing/types/ListCouponsResponse.js +46 -0
  614. package/dist/serialization/resources/billing/types/ListCustomersParams.js +17 -7
  615. package/dist/serialization/resources/billing/types/ListCustomersResponse.js +17 -7
  616. package/dist/serialization/resources/billing/types/ListInvoicesParams.js +17 -7
  617. package/dist/serialization/resources/billing/types/ListInvoicesResponse.js +17 -7
  618. package/dist/serialization/resources/billing/types/ListMetersParams.js +17 -7
  619. package/dist/serialization/resources/billing/types/ListMetersResponse.js +17 -7
  620. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
  621. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.js +17 -8
  622. package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.js +17 -7
  623. package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +2 -1
  624. package/dist/serialization/resources/billing/types/ListProductPricesParams.js +19 -8
  625. package/dist/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +10 -0
  626. package/dist/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.js +41 -0
  627. package/dist/serialization/resources/billing/types/ListProductPricesResponse.js +17 -7
  628. package/dist/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +10 -0
  629. package/dist/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +41 -0
  630. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
  631. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +20 -8
  632. package/dist/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +10 -0
  633. package/dist/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.js +41 -0
  634. package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.js +17 -7
  635. package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +10 -0
  636. package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +41 -0
  637. package/dist/serialization/resources/billing/types/UpsertBillingCouponResponse.js +17 -7
  638. package/dist/serialization/resources/billing/types/UpsertBillingCustomerResponse.js +17 -7
  639. package/dist/serialization/resources/billing/types/UpsertBillingMeterResponse.js +17 -7
  640. package/dist/serialization/resources/billing/types/UpsertBillingPriceResponse.js +17 -7
  641. package/dist/serialization/resources/billing/types/UpsertBillingProductResponse.js +17 -7
  642. package/dist/serialization/resources/billing/types/UpsertBillingSubscriptionResponse.js +17 -7
  643. package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.js +17 -7
  644. package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +17 -7
  645. package/dist/serialization/resources/billing/types/index.d.ts +14 -0
  646. package/dist/serialization/resources/billing/types/index.js +14 -0
  647. package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
  648. package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.js +44 -0
  649. package/dist/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +17 -7
  650. package/dist/serialization/resources/checkout/client/requests/index.d.ts +1 -0
  651. package/dist/serialization/resources/checkout/client/requests/index.js +3 -1
  652. package/dist/serialization/resources/checkout/types/CheckoutInternalResponse.js +17 -7
  653. package/dist/serialization/resources/checkout/types/GetCheckoutDataResponse.js +17 -7
  654. package/dist/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +17 -7
  655. package/dist/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +17 -7
  656. package/dist/serialization/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.js +17 -7
  657. package/dist/serialization/resources/companies/client/requests/GetOrCreateCompanyMembershipRequestBody.js +17 -7
  658. package/dist/serialization/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.js +17 -7
  659. package/dist/serialization/resources/companies/types/CountCompaniesParams.js +17 -7
  660. package/dist/serialization/resources/companies/types/CountCompaniesResponse.js +17 -7
  661. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsParams.js +17 -7
  662. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.js +17 -7
  663. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsResponse.js +17 -7
  664. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
  665. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsParams.js +17 -7
  666. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.js +17 -7
  667. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.js +17 -7
  668. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponse.js +17 -7
  669. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
  670. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
  671. package/dist/serialization/resources/companies/types/CountUsersParams.js +17 -7
  672. package/dist/serialization/resources/companies/types/CountUsersResponse.js +17 -7
  673. package/dist/serialization/resources/companies/types/CreateCompanyResponse.js +17 -7
  674. package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.js +17 -7
  675. package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
  676. package/dist/serialization/resources/companies/types/CreateUserResponse.js +17 -7
  677. package/dist/serialization/resources/companies/types/DeleteCompanyByKeysResponse.js +17 -7
  678. package/dist/serialization/resources/companies/types/DeleteCompanyMembershipResponse.js +17 -7
  679. package/dist/serialization/resources/companies/types/DeleteCompanyResponse.js +17 -7
  680. package/dist/serialization/resources/companies/types/DeleteUserByKeysResponse.js +17 -7
  681. package/dist/serialization/resources/companies/types/DeleteUserResponse.js +17 -7
  682. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +17 -7
  683. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionResponse.js +17 -7
  684. package/dist/serialization/resources/companies/types/GetActiveDealsParams.js +17 -7
  685. package/dist/serialization/resources/companies/types/GetActiveDealsResponse.js +17 -7
  686. package/dist/serialization/resources/companies/types/GetCompanyResponse.js +17 -7
  687. package/dist/serialization/resources/companies/types/GetEntityTraitDefinitionResponse.js +17 -7
  688. package/dist/serialization/resources/companies/types/GetEntityTraitValuesParams.js +17 -7
  689. package/dist/serialization/resources/companies/types/GetEntityTraitValuesResponse.js +17 -7
  690. package/dist/serialization/resources/companies/types/GetOrCreateCompanyMembershipResponse.js +17 -7
  691. package/dist/serialization/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.js +17 -7
  692. package/dist/serialization/resources/companies/types/GetUserResponse.js +17 -7
  693. package/dist/serialization/resources/companies/types/ListCompaniesParams.js +17 -7
  694. package/dist/serialization/resources/companies/types/ListCompaniesResponse.js +17 -7
  695. package/dist/serialization/resources/companies/types/ListCompanyMembershipsParams.js +17 -7
  696. package/dist/serialization/resources/companies/types/ListCompanyMembershipsResponse.js +17 -7
  697. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsParams.js +17 -7
  698. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.js +17 -7
  699. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsResponse.js +17 -7
  700. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
  701. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsParams.js +17 -7
  702. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.js +17 -7
  703. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.js +17 -7
  704. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponse.js +17 -7
  705. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
  706. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
  707. package/dist/serialization/resources/companies/types/ListUsersParams.js +17 -7
  708. package/dist/serialization/resources/companies/types/ListUsersResponse.js +17 -7
  709. package/dist/serialization/resources/companies/types/LookupCompanyParams.js +17 -7
  710. package/dist/serialization/resources/companies/types/LookupCompanyResponse.js +17 -7
  711. package/dist/serialization/resources/companies/types/LookupUserParams.js +17 -7
  712. package/dist/serialization/resources/companies/types/LookupUserResponse.js +17 -7
  713. package/dist/serialization/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
  714. package/dist/serialization/resources/companies/types/UpdateEntityTraitDefinitionResponse.js +17 -7
  715. package/dist/serialization/resources/companies/types/UpsertCompanyResponse.js +17 -7
  716. package/dist/serialization/resources/companies/types/UpsertCompanyTraitResponse.js +17 -7
  717. package/dist/serialization/resources/companies/types/UpsertUserResponse.js +17 -7
  718. package/dist/serialization/resources/companies/types/UpsertUserTraitResponse.js +17 -7
  719. package/dist/serialization/resources/components/client/requests/CreateComponentRequestBody.js +17 -7
  720. package/dist/serialization/resources/components/client/requests/UpdateComponentRequestBody.js +17 -7
  721. package/dist/serialization/resources/components/types/CountComponentsParams.js +17 -7
  722. package/dist/serialization/resources/components/types/CountComponentsResponse.js +17 -7
  723. package/dist/serialization/resources/components/types/CreateComponentRequestBodyEntityType.js +17 -7
  724. package/dist/serialization/resources/components/types/CreateComponentResponse.js +17 -7
  725. package/dist/serialization/resources/components/types/DeleteComponentResponse.js +17 -7
  726. package/dist/serialization/resources/components/types/GetComponentResponse.js +17 -7
  727. package/dist/serialization/resources/components/types/ListComponentsParams.js +17 -7
  728. package/dist/serialization/resources/components/types/ListComponentsResponse.js +17 -7
  729. package/dist/serialization/resources/components/types/PreviewComponentDataParams.js +17 -7
  730. package/dist/serialization/resources/components/types/PreviewComponentDataResponse.js +17 -7
  731. package/dist/serialization/resources/components/types/UpdateComponentRequestBodyEntityType.js +17 -7
  732. package/dist/serialization/resources/components/types/UpdateComponentRequestBodyState.js +17 -7
  733. package/dist/serialization/resources/components/types/UpdateComponentResponse.js +17 -7
  734. package/dist/serialization/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.js +17 -7
  735. package/dist/serialization/resources/crm/client/requests/CreateCrmDealRequestBody.js +17 -7
  736. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +17 -7
  737. package/dist/serialization/resources/crm/client/requests/CreateCrmProductRequestBody.js +17 -7
  738. package/dist/serialization/resources/crm/types/ListCrmProductsParams.js +17 -7
  739. package/dist/serialization/resources/crm/types/ListCrmProductsResponse.js +17 -7
  740. package/dist/serialization/resources/crm/types/UpsertCrmDealResponse.js +17 -7
  741. package/dist/serialization/resources/crm/types/UpsertCrmProductResponse.js +17 -7
  742. package/dist/serialization/resources/crm/types/UpsertDealLineItemAssociationResponse.js +17 -7
  743. package/dist/serialization/resources/crm/types/UpsertLineItemResponse.js +17 -7
  744. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +17 -7
  745. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  746. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +18 -7
  747. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +17 -7
  748. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
  749. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +18 -7
  750. package/dist/serialization/resources/entitlements/types/CountCompanyOverridesParams.js +17 -7
  751. package/dist/serialization/resources/entitlements/types/CountCompanyOverridesResponse.js +17 -7
  752. package/dist/serialization/resources/entitlements/types/CountFeatureCompaniesParams.js +17 -7
  753. package/dist/serialization/resources/entitlements/types/CountFeatureCompaniesResponse.js +17 -7
  754. package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.js +17 -7
  755. package/dist/serialization/resources/entitlements/types/CountFeatureUsageResponse.js +17 -7
  756. package/dist/serialization/resources/entitlements/types/CountFeatureUsersParams.js +17 -7
  757. package/dist/serialization/resources/entitlements/types/CountFeatureUsersResponse.js +17 -7
  758. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +17 -7
  759. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsResponse.js +17 -7
  760. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
  761. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
  762. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +17 -7
  763. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideResponse.js +17 -7
  764. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
  765. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
  766. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +17 -7
  767. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementResponse.js +17 -7
  768. package/dist/serialization/resources/entitlements/types/DeleteCompanyOverrideResponse.js +17 -7
  769. package/dist/serialization/resources/entitlements/types/DeletePlanEntitlementResponse.js +17 -7
  770. package/dist/serialization/resources/entitlements/types/GetCompanyOverrideResponse.js +17 -7
  771. package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +17 -7
  772. package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyResponse.js +17 -7
  773. package/dist/serialization/resources/entitlements/types/GetPlanEntitlementResponse.js +17 -7
  774. package/dist/serialization/resources/entitlements/types/ListCompanyOverridesParams.js +17 -7
  775. package/dist/serialization/resources/entitlements/types/ListCompanyOverridesResponse.js +17 -7
  776. package/dist/serialization/resources/entitlements/types/ListFeatureCompaniesParams.js +17 -7
  777. package/dist/serialization/resources/entitlements/types/ListFeatureCompaniesResponse.js +17 -7
  778. package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.js +17 -7
  779. package/dist/serialization/resources/entitlements/types/ListFeatureUsageResponse.js +17 -7
  780. package/dist/serialization/resources/entitlements/types/ListFeatureUsersParams.js +17 -7
  781. package/dist/serialization/resources/entitlements/types/ListFeatureUsersResponse.js +17 -7
  782. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +17 -7
  783. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsResponse.js +17 -7
  784. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
  785. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
  786. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +17 -7
  787. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideResponse.js +17 -7
  788. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
  789. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
  790. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +17 -7
  791. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementResponse.js +17 -7
  792. package/dist/serialization/resources/events/client/requests/CreateEventBatchRequestBody.js +17 -7
  793. package/dist/serialization/resources/events/types/CreateEventBatchResponse.js +17 -7
  794. package/dist/serialization/resources/events/types/CreateEventResponse.js +17 -7
  795. package/dist/serialization/resources/events/types/GetEventResponse.js +17 -7
  796. package/dist/serialization/resources/events/types/GetEventSummariesParams.js +17 -7
  797. package/dist/serialization/resources/events/types/GetEventSummariesResponse.js +17 -7
  798. package/dist/serialization/resources/events/types/GetSegmentIntegrationStatusResponse.js +17 -7
  799. package/dist/serialization/resources/events/types/ListEventsParams.js +17 -7
  800. package/dist/serialization/resources/events/types/ListEventsResponse.js +17 -7
  801. package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  802. package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +19 -7
  803. package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  804. package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +19 -7
  805. package/dist/serialization/resources/features/client/requests/UpdateFlagRulesRequestBody.js +17 -7
  806. package/dist/serialization/resources/features/types/CheckFlagResponse.js +17 -7
  807. package/dist/serialization/resources/features/types/CheckFlagsResponse.js +17 -7
  808. package/dist/serialization/resources/features/types/CountAudienceCompaniesResponse.js +17 -7
  809. package/dist/serialization/resources/features/types/CountAudienceUsersResponse.js +17 -7
  810. package/dist/serialization/resources/features/types/CountFeaturesParams.js +17 -7
  811. package/dist/serialization/resources/features/types/CountFeaturesResponse.js +17 -7
  812. package/dist/serialization/resources/features/types/CountFlagsParams.js +17 -7
  813. package/dist/serialization/resources/features/types/CountFlagsResponse.js +17 -7
  814. package/dist/serialization/resources/features/types/CreateFeatureRequestBodyFeatureType.js +17 -7
  815. package/dist/serialization/resources/features/types/CreateFeatureResponse.js +17 -7
  816. package/dist/serialization/resources/features/types/CreateFlagResponse.js +17 -7
  817. package/dist/serialization/resources/features/types/DeleteFeatureResponse.js +17 -7
  818. package/dist/serialization/resources/features/types/DeleteFlagResponse.js +17 -7
  819. package/dist/serialization/resources/features/types/GetFeatureResponse.js +17 -7
  820. package/dist/serialization/resources/features/types/GetFlagResponse.js +17 -7
  821. package/dist/serialization/resources/features/types/ListAudienceCompaniesResponse.js +17 -7
  822. package/dist/serialization/resources/features/types/ListAudienceUsersResponse.js +17 -7
  823. package/dist/serialization/resources/features/types/ListFeaturesParams.js +17 -7
  824. package/dist/serialization/resources/features/types/ListFeaturesResponse.js +17 -7
  825. package/dist/serialization/resources/features/types/ListFlagsParams.js +17 -7
  826. package/dist/serialization/resources/features/types/ListFlagsResponse.js +17 -7
  827. package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyFeatureType.js +17 -7
  828. package/dist/serialization/resources/features/types/UpdateFeatureResponse.js +17 -7
  829. package/dist/serialization/resources/features/types/UpdateFlagResponse.js +17 -7
  830. package/dist/serialization/resources/features/types/UpdateFlagRulesResponse.js +17 -7
  831. package/dist/serialization/resources/index.js +17 -7
  832. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +5 -1
  833. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +22 -8
  834. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +5 -1
  835. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +22 -8
  836. package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +17 -7
  837. package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.js +17 -7
  838. package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +17 -7
  839. package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +17 -7
  840. package/dist/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.js +17 -7
  841. package/dist/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +17 -7
  842. package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +17 -7
  843. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +17 -7
  844. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +1 -0
  845. package/dist/serialization/resources/plans/types/CountPlansParams.js +18 -7
  846. package/dist/serialization/resources/plans/types/CountPlansRequestPlanType.js +17 -7
  847. package/dist/serialization/resources/plans/types/CountPlansResponse.js +17 -7
  848. package/dist/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +17 -7
  849. package/dist/serialization/resources/plans/types/CreatePlanRequestBodyPlanType.js +17 -7
  850. package/dist/serialization/resources/plans/types/CreatePlanResponse.js +17 -7
  851. package/dist/serialization/resources/plans/types/DeleteAudienceResponse.js +17 -7
  852. package/dist/serialization/resources/plans/types/DeletePlanResponse.js +17 -7
  853. package/dist/serialization/resources/plans/types/GetAudienceResponse.js +17 -7
  854. package/dist/serialization/resources/plans/types/GetPlanResponse.js +17 -7
  855. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
  856. package/dist/serialization/resources/plans/types/ListPlansParams.js +18 -7
  857. package/dist/serialization/resources/plans/types/ListPlansRequestPlanType.js +17 -7
  858. package/dist/serialization/resources/plans/types/ListPlansResponse.js +17 -7
  859. package/dist/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +17 -7
  860. package/dist/serialization/resources/plans/types/UpdateAudienceResponse.js +17 -7
  861. package/dist/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +17 -7
  862. package/dist/serialization/resources/plans/types/UpdatePlanResponse.js +17 -7
  863. package/dist/serialization/resources/plans/types/UpsertBillingProductPlanResponse.js +17 -7
  864. package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +17 -7
  865. package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +17 -7
  866. package/dist/serialization/resources/webhooks/types/CountWebhookEventsParams.js +17 -7
  867. package/dist/serialization/resources/webhooks/types/CountWebhookEventsResponse.js +17 -7
  868. package/dist/serialization/resources/webhooks/types/CountWebhooksParams.js +17 -7
  869. package/dist/serialization/resources/webhooks/types/CountWebhooksResponse.js +17 -7
  870. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +17 -7
  871. package/dist/serialization/resources/webhooks/types/CreateWebhookResponse.js +17 -7
  872. package/dist/serialization/resources/webhooks/types/DeleteWebhookResponse.js +17 -7
  873. package/dist/serialization/resources/webhooks/types/GetWebhookEventResponse.js +17 -7
  874. package/dist/serialization/resources/webhooks/types/GetWebhookResponse.js +17 -7
  875. package/dist/serialization/resources/webhooks/types/ListWebhookEventsParams.js +17 -7
  876. package/dist/serialization/resources/webhooks/types/ListWebhookEventsResponse.js +17 -7
  877. package/dist/serialization/resources/webhooks/types/ListWebhooksParams.js +17 -7
  878. package/dist/serialization/resources/webhooks/types/ListWebhooksResponse.js +17 -7
  879. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +17 -7
  880. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyStatus.js +17 -7
  881. package/dist/serialization/resources/webhooks/types/UpdateWebhookResponse.js +17 -7
  882. package/dist/serialization/types/ApiError.js +17 -7
  883. package/dist/serialization/types/ApiKeyCreateResponseData.js +17 -7
  884. package/dist/serialization/types/ApiKeyRequestListResponseData.js +17 -7
  885. package/dist/serialization/types/ApiKeyRequestResponseData.js +17 -7
  886. package/dist/serialization/types/ApiKeyResponseData.js +17 -7
  887. package/dist/serialization/types/AudienceRequestBody.js +17 -7
  888. package/dist/serialization/types/BillingCouponResponseData.js +17 -7
  889. package/dist/serialization/types/BillingCustomerResponseData.js +17 -7
  890. package/dist/serialization/types/BillingCustomerSubscription.js +17 -7
  891. package/dist/serialization/types/BillingCustomerWithSubscriptionsResponseData.js +17 -7
  892. package/dist/serialization/types/BillingMeterResponseData.js +17 -7
  893. package/dist/serialization/types/BillingPriceResponseData.js +17 -7
  894. package/dist/serialization/types/BillingPriceView.js +17 -7
  895. package/dist/serialization/types/BillingProductDetailResponseData.d.ts +1 -0
  896. package/dist/serialization/types/BillingProductDetailResponseData.js +18 -7
  897. package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +17 -7
  898. package/dist/serialization/types/BillingProductPlanResponseData.js +17 -7
  899. package/dist/serialization/types/BillingProductPriceResponseData.js +17 -7
  900. package/dist/serialization/types/BillingProductPricing.d.ts +2 -1
  901. package/dist/serialization/types/BillingProductPricing.js +19 -8
  902. package/dist/serialization/types/BillingProductPricingUsageType.d.ts +10 -0
  903. package/dist/serialization/types/BillingProductPricingUsageType.js +41 -0
  904. package/dist/serialization/types/BillingProductResponseData.js +17 -7
  905. package/dist/serialization/types/BillingSubscriptionDiscount.js +17 -7
  906. package/dist/serialization/types/BillingSubscriptionDiscountView.js +17 -7
  907. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +3 -0
  908. package/dist/serialization/types/BillingSubscriptionResponseData.js +20 -7
  909. package/dist/serialization/types/BillingSubscriptionView.d.ts +3 -0
  910. package/dist/serialization/types/BillingSubscriptionView.js +20 -7
  911. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  912. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.js +18 -7
  913. package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  914. package/dist/serialization/types/ChangeSubscriptionRequestBody.js +18 -7
  915. package/dist/serialization/types/CheckFlagRequestBody.js +17 -7
  916. package/dist/serialization/types/CheckFlagResponseData.js +17 -7
  917. package/dist/serialization/types/CheckFlagsResponseData.js +17 -7
  918. package/dist/serialization/types/CheckoutDataResponseData.d.ts +2 -0
  919. package/dist/serialization/types/CheckoutDataResponseData.js +19 -7
  920. package/dist/serialization/types/CompanyCrmDealsResponseData.js +17 -7
  921. package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -0
  922. package/dist/serialization/types/CompanyDetailResponseData.js +19 -7
  923. package/dist/serialization/types/CompanyEventPeriodMetricsResponseData.js +17 -7
  924. package/dist/serialization/types/CompanyMembershipDetailResponseData.js +17 -7
  925. package/dist/serialization/types/CompanyMembershipResponseData.js +17 -7
  926. package/dist/serialization/types/CompanyOverrideResponseData.js +17 -7
  927. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
  928. package/dist/serialization/types/CompanyPlanDetailResponseData.js +21 -7
  929. package/dist/serialization/types/CompanyPlanWithBillingSubView.js +17 -7
  930. package/dist/serialization/types/CompanyResponseData.js +17 -7
  931. package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +2 -0
  932. package/dist/serialization/types/CompanySubscriptionResponseData.js +19 -7
  933. package/dist/serialization/types/ComponentCapabilities.d.ts +1 -0
  934. package/dist/serialization/types/ComponentCapabilities.js +18 -7
  935. package/dist/serialization/types/ComponentHydrateResponseData.js +17 -7
  936. package/dist/serialization/types/ComponentPreviewResponseData.js +17 -7
  937. package/dist/serialization/types/ComponentResponseData.js +17 -7
  938. package/dist/serialization/types/CountResponse.js +17 -7
  939. package/dist/serialization/types/CouponRequestBody.js +17 -7
  940. package/dist/serialization/types/CreateBillingPriceTierRequestBody.d.ts +15 -0
  941. package/dist/serialization/types/CreateBillingPriceTierRequestBody.js +46 -0
  942. package/dist/serialization/types/CreateEntitlementReqCommon.js +17 -7
  943. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +17 -7
  944. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
  945. package/dist/serialization/types/CreateEntitlementReqCommonValueType.js +17 -7
  946. package/dist/serialization/types/CreateEventRequestBody.js +17 -7
  947. package/dist/serialization/types/CreateEventRequestBodyEventType.js +17 -7
  948. package/dist/serialization/types/CreateFlagRequestBody.js +17 -7
  949. package/dist/serialization/types/CreateOrUpdateConditionGroupRequestBody.js +17 -7
  950. package/dist/serialization/types/CreateOrUpdateConditionRequestBody.js +17 -7
  951. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +17 -7
  952. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +17 -7
  953. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +17 -7
  954. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +17 -7
  955. package/dist/serialization/types/CreateOrUpdateFlagRequestBody.js +17 -7
  956. package/dist/serialization/types/CreateOrUpdateRuleRequestBody.js +17 -7
  957. package/dist/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.js +17 -7
  958. package/dist/serialization/types/CrmDealLineItem.js +17 -7
  959. package/dist/serialization/types/CrmDealResponseData.js +17 -7
  960. package/dist/serialization/types/CrmLineItemResponseData.js +17 -7
  961. package/dist/serialization/types/CrmProductResponseData.js +17 -7
  962. package/dist/serialization/types/CustomPlanConfig.d.ts +14 -0
  963. package/dist/serialization/types/CustomPlanConfig.js +45 -0
  964. package/dist/serialization/types/CustomPlanViewConfigResponseData.d.ts +14 -0
  965. package/dist/serialization/types/CustomPlanViewConfigResponseData.js +45 -0
  966. package/dist/serialization/types/Decimal.js +17 -7
  967. package/dist/serialization/types/DeleteResponse.js +17 -7
  968. package/dist/serialization/types/EntitlementsInPlan.d.ts +13 -0
  969. package/dist/serialization/types/EntitlementsInPlan.js +44 -0
  970. package/dist/serialization/types/EntityKeyDefinitionResponseData.js +17 -7
  971. package/dist/serialization/types/EntityKeyDetailResponseData.js +17 -7
  972. package/dist/serialization/types/EntityKeyResponseData.js +17 -7
  973. package/dist/serialization/types/EntityTraitDefinitionResponseData.js +17 -7
  974. package/dist/serialization/types/EntityTraitDetailResponseData.js +17 -7
  975. package/dist/serialization/types/EntityTraitResponseData.js +17 -7
  976. package/dist/serialization/types/EntityTraitValue.js +17 -7
  977. package/dist/serialization/types/EnvironmentDetailResponseData.js +17 -7
  978. package/dist/serialization/types/EnvironmentResponseData.js +17 -7
  979. package/dist/serialization/types/EventBody.js +17 -7
  980. package/dist/serialization/types/EventBodyFlagCheck.js +17 -7
  981. package/dist/serialization/types/EventBodyIdentify.js +17 -7
  982. package/dist/serialization/types/EventBodyIdentifyCompany.js +17 -7
  983. package/dist/serialization/types/EventBodyTrack.d.ts +1 -0
  984. package/dist/serialization/types/EventBodyTrack.js +18 -7
  985. package/dist/serialization/types/EventDetailResponseData.d.ts +1 -0
  986. package/dist/serialization/types/EventDetailResponseData.js +18 -7
  987. package/dist/serialization/types/EventResponseData.d.ts +1 -0
  988. package/dist/serialization/types/EventResponseData.js +18 -7
  989. package/dist/serialization/types/EventSummaryResponseData.js +17 -7
  990. package/dist/serialization/types/FeatureCompanyResponseData.js +17 -7
  991. package/dist/serialization/types/FeatureCompanyResponseDataAllocationType.js +17 -7
  992. package/dist/serialization/types/FeatureCompanyUserResponseData.js +17 -7
  993. package/dist/serialization/types/FeatureCompanyUserResponseDataAllocationType.js +17 -7
  994. package/dist/serialization/types/FeatureDetailResponseData.d.ts +2 -0
  995. package/dist/serialization/types/FeatureDetailResponseData.js +19 -7
  996. package/dist/serialization/types/FeatureResponseData.d.ts +2 -0
  997. package/dist/serialization/types/FeatureResponseData.js +19 -7
  998. package/dist/serialization/types/FeatureUsageDetailResponseData.js +17 -7
  999. package/dist/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  1000. package/dist/serialization/types/FeatureUsageResponseData.js +18 -7
  1001. package/dist/serialization/types/FeatureUsageResponseDataAllocationType.js +17 -7
  1002. package/dist/serialization/types/FlagDetailResponseData.js +17 -7
  1003. package/dist/serialization/types/FlagResponseData.js +17 -7
  1004. package/dist/serialization/types/GenericPreviewObject.js +17 -7
  1005. package/dist/serialization/types/InvoiceRequestBody.js +17 -7
  1006. package/dist/serialization/types/InvoiceResponseData.js +17 -7
  1007. package/dist/serialization/types/IssueTemporaryAccessTokenResponseData.js +17 -7
  1008. package/dist/serialization/types/KeysRequestBody.js +17 -7
  1009. package/dist/serialization/types/MeterRequestBody.js +17 -7
  1010. package/dist/serialization/types/OrderedPlansInGroup.d.ts +14 -0
  1011. package/dist/serialization/types/OrderedPlansInGroup.js +45 -0
  1012. package/dist/serialization/types/PaginationFilter.js +17 -7
  1013. package/dist/serialization/types/PaymentMethodRequestBody.d.ts +0 -1
  1014. package/dist/serialization/types/PaymentMethodRequestBody.js +17 -8
  1015. package/dist/serialization/types/PaymentMethodResponseData.d.ts +0 -1
  1016. package/dist/serialization/types/PaymentMethodResponseData.js +17 -8
  1017. package/dist/serialization/types/PlanAudienceDetailResponseData.js +17 -7
  1018. package/dist/serialization/types/PlanAudienceResponseData.js +17 -7
  1019. package/dist/serialization/types/PlanDetailResponseData.js +17 -7
  1020. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
  1021. package/dist/serialization/types/PlanEntitlementResponseData.js +18 -7
  1022. package/dist/serialization/types/PlanEntitlementsOrder.d.ts +13 -0
  1023. package/dist/serialization/types/PlanEntitlementsOrder.js +44 -0
  1024. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +5 -0
  1025. package/dist/serialization/types/PlanGroupDetailResponseData.js +22 -7
  1026. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  1027. package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +20 -7
  1028. package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.d.ts +14 -0
  1029. package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.js +45 -0
  1030. package/dist/serialization/types/PlanGroupResponseData.d.ts +2 -1
  1031. package/dist/serialization/types/PlanGroupResponseData.js +19 -8
  1032. package/dist/serialization/types/PlanResponseData.js +17 -7
  1033. package/dist/serialization/types/PreviewObject.js +17 -7
  1034. package/dist/serialization/types/PreviewObjectResponseData.js +17 -7
  1035. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +17 -7
  1036. package/dist/serialization/types/RawEventBatchResponseData.js +17 -7
  1037. package/dist/serialization/types/RawEventResponseData.js +17 -7
  1038. package/dist/serialization/types/RuleConditionDetailResponseData.js +17 -7
  1039. package/dist/serialization/types/RuleConditionGroupDetailResponseData.js +17 -7
  1040. package/dist/serialization/types/RuleConditionGroupResponseData.js +17 -7
  1041. package/dist/serialization/types/RuleConditionResponseData.js +17 -7
  1042. package/dist/serialization/types/RuleDetailResponseData.js +17 -7
  1043. package/dist/serialization/types/RuleResponseData.js +17 -7
  1044. package/dist/serialization/types/RulesDetailResponseData.js +17 -7
  1045. package/dist/serialization/types/SegmentStatusResp.js +17 -7
  1046. package/dist/serialization/types/StripeEmbedInfo.js +17 -7
  1047. package/dist/serialization/types/TemporaryAccessTokenResponseData.js +17 -7
  1048. package/dist/serialization/types/UpdateAddOnRequestBody.js +17 -7
  1049. package/dist/serialization/types/UpdateEntitlementReqCommon.js +17 -7
  1050. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +17 -7
  1051. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
  1052. package/dist/serialization/types/UpdateEntitlementReqCommonValueType.js +17 -7
  1053. package/dist/serialization/types/UpdatePayInAdvanceRequestBody.js +17 -7
  1054. package/dist/serialization/types/UpdateRuleRequestBody.js +17 -7
  1055. package/dist/serialization/types/UpsertCompanyRequestBody.js +17 -7
  1056. package/dist/serialization/types/UpsertTraitRequestBody.js +17 -7
  1057. package/dist/serialization/types/UpsertUserRequestBody.js +17 -7
  1058. package/dist/serialization/types/UpsertUserSubRequestBody.js +17 -7
  1059. package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
  1060. package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +18 -7
  1061. package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +2 -0
  1062. package/dist/serialization/types/UsageBasedEntitlementResponseData.js +19 -7
  1063. package/dist/serialization/types/UserDetailResponseData.js +17 -7
  1064. package/dist/serialization/types/UserResponseData.js +17 -7
  1065. package/dist/serialization/types/WebhookEventDetailResponseData.js +17 -7
  1066. package/dist/serialization/types/WebhookEventResponseData.js +17 -7
  1067. package/dist/serialization/types/WebhookResponseData.d.ts +1 -0
  1068. package/dist/serialization/types/WebhookResponseData.js +18 -7
  1069. package/dist/serialization/types/index.d.ts +8 -0
  1070. package/dist/serialization/types/index.js +8 -0
  1071. package/dist/webhooks.d.ts +76 -0
  1072. package/dist/webhooks.js +170 -0
  1073. package/environments.d.ts +1 -1
  1074. package/errors/SchematicError.js +2 -1
  1075. package/errors/SchematicTimeoutError.d.ts +1 -1
  1076. package/errors/SchematicTimeoutError.js +2 -2
  1077. package/events.test.js +1 -1
  1078. package/index.d.ts +1 -0
  1079. package/index.js +26 -8
  1080. package/{jest.config.js → jest.config.mjs} +4 -1
  1081. package/package.json +16 -15
  1082. package/reference.md +121 -7
  1083. package/scripts/rename-to-esm-files.js +115 -0
  1084. package/scripts/webhook-test-server/README.md +24 -0
  1085. package/scripts/webhook-test-server/package-lock.json +196 -0
  1086. package/scripts/webhook-test-server/package.json +13 -0
  1087. package/scripts/webhook-test-server/webhook-test-server.ts +100 -0
  1088. package/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +17 -7
  1089. package/serialization/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.js +17 -7
  1090. package/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.js +17 -7
  1091. package/serialization/resources/accounts/client/requests/CreateEnvironmentRequestBody.js +17 -7
  1092. package/serialization/resources/accounts/client/requests/UpdateApiKeyRequestBody.js +17 -7
  1093. package/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.js +17 -7
  1094. package/serialization/resources/accounts/types/CountApiKeysParams.js +17 -7
  1095. package/serialization/resources/accounts/types/CountApiKeysResponse.js +17 -7
  1096. package/serialization/resources/accounts/types/CountApiRequestsParams.js +17 -7
  1097. package/serialization/resources/accounts/types/CountApiRequestsResponse.js +17 -7
  1098. package/serialization/resources/accounts/types/CreateApiKeyResponse.js +17 -7
  1099. package/serialization/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.js +17 -7
  1100. package/serialization/resources/accounts/types/CreateEnvironmentResponse.js +17 -7
  1101. package/serialization/resources/accounts/types/DeleteApiKeyResponse.js +17 -7
  1102. package/serialization/resources/accounts/types/DeleteEnvironmentResponse.js +17 -7
  1103. package/serialization/resources/accounts/types/GetApiKeyResponse.js +17 -7
  1104. package/serialization/resources/accounts/types/GetApiRequestResponse.js +17 -7
  1105. package/serialization/resources/accounts/types/GetEnvironmentResponse.js +17 -7
  1106. package/serialization/resources/accounts/types/ListApiKeysParams.js +17 -7
  1107. package/serialization/resources/accounts/types/ListApiKeysResponse.js +17 -7
  1108. package/serialization/resources/accounts/types/ListApiRequestsParams.js +17 -7
  1109. package/serialization/resources/accounts/types/ListApiRequestsResponse.js +17 -7
  1110. package/serialization/resources/accounts/types/ListEnvironmentsParams.js +17 -7
  1111. package/serialization/resources/accounts/types/ListEnvironmentsResponse.js +17 -7
  1112. package/serialization/resources/accounts/types/UpdateApiKeyResponse.js +17 -7
  1113. package/serialization/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.js +17 -7
  1114. package/serialization/resources/accounts/types/UpdateEnvironmentResponse.js +17 -7
  1115. package/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
  1116. package/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.js +18 -7
  1117. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +7 -1
  1118. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +24 -8
  1119. package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -0
  1120. package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +18 -7
  1121. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +5 -1
  1122. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +22 -8
  1123. package/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +17 -7
  1124. package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +17 -7
  1125. package/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +17 -7
  1126. package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
  1127. package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +17 -8
  1128. package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +2 -1
  1129. package/serialization/resources/billing/types/CountBillingProductsParams.js +19 -8
  1130. package/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +10 -0
  1131. package/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +41 -0
  1132. package/serialization/resources/billing/types/CountBillingProductsResponse.js +17 -7
  1133. package/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
  1134. package/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +41 -0
  1135. package/serialization/resources/billing/types/CountCustomersParams.js +17 -7
  1136. package/serialization/resources/billing/types/CountCustomersResponse.js +17 -7
  1137. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +10 -0
  1138. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +41 -0
  1139. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +10 -0
  1140. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +41 -0
  1141. package/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +10 -0
  1142. package/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +41 -0
  1143. package/serialization/resources/billing/types/DeleteBillingProductResponse.d.ts +14 -0
  1144. package/serialization/resources/billing/types/DeleteBillingProductResponse.js +45 -0
  1145. package/serialization/resources/billing/types/DeleteProductPriceResponse.js +17 -7
  1146. package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +2 -1
  1147. package/serialization/resources/billing/types/ListBillingProductsParams.js +19 -8
  1148. package/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +10 -0
  1149. package/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +41 -0
  1150. package/serialization/resources/billing/types/ListBillingProductsResponse.js +17 -7
  1151. package/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
  1152. package/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +41 -0
  1153. package/serialization/resources/billing/types/ListCouponsParams.d.ts +15 -0
  1154. package/serialization/resources/billing/types/ListCouponsParams.js +46 -0
  1155. package/serialization/resources/billing/types/ListCouponsResponse.d.ts +15 -0
  1156. package/serialization/resources/billing/types/ListCouponsResponse.js +46 -0
  1157. package/serialization/resources/billing/types/ListCustomersParams.js +17 -7
  1158. package/serialization/resources/billing/types/ListCustomersResponse.js +17 -7
  1159. package/serialization/resources/billing/types/ListInvoicesParams.js +17 -7
  1160. package/serialization/resources/billing/types/ListInvoicesResponse.js +17 -7
  1161. package/serialization/resources/billing/types/ListMetersParams.js +17 -7
  1162. package/serialization/resources/billing/types/ListMetersResponse.js +17 -7
  1163. package/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
  1164. package/serialization/resources/billing/types/ListPaymentMethodsParams.js +17 -8
  1165. package/serialization/resources/billing/types/ListPaymentMethodsResponse.js +17 -7
  1166. package/serialization/resources/billing/types/ListProductPricesParams.d.ts +2 -1
  1167. package/serialization/resources/billing/types/ListProductPricesParams.js +19 -8
  1168. package/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +10 -0
  1169. package/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.js +41 -0
  1170. package/serialization/resources/billing/types/ListProductPricesResponse.js +17 -7
  1171. package/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +10 -0
  1172. package/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +41 -0
  1173. package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
  1174. package/serialization/resources/billing/types/SearchBillingPricesParams.js +20 -8
  1175. package/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +10 -0
  1176. package/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.js +41 -0
  1177. package/serialization/resources/billing/types/SearchBillingPricesResponse.js +17 -7
  1178. package/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +10 -0
  1179. package/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +41 -0
  1180. package/serialization/resources/billing/types/UpsertBillingCouponResponse.js +17 -7
  1181. package/serialization/resources/billing/types/UpsertBillingCustomerResponse.js +17 -7
  1182. package/serialization/resources/billing/types/UpsertBillingMeterResponse.js +17 -7
  1183. package/serialization/resources/billing/types/UpsertBillingPriceResponse.js +17 -7
  1184. package/serialization/resources/billing/types/UpsertBillingProductResponse.js +17 -7
  1185. package/serialization/resources/billing/types/UpsertBillingSubscriptionResponse.js +17 -7
  1186. package/serialization/resources/billing/types/UpsertInvoiceResponse.js +17 -7
  1187. package/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +17 -7
  1188. package/serialization/resources/billing/types/index.d.ts +14 -0
  1189. package/serialization/resources/billing/types/index.js +14 -0
  1190. package/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
  1191. package/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.js +44 -0
  1192. package/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +17 -7
  1193. package/serialization/resources/checkout/client/requests/index.d.ts +1 -0
  1194. package/serialization/resources/checkout/client/requests/index.js +3 -1
  1195. package/serialization/resources/checkout/types/CheckoutInternalResponse.js +17 -7
  1196. package/serialization/resources/checkout/types/GetCheckoutDataResponse.js +17 -7
  1197. package/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +17 -7
  1198. package/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +17 -7
  1199. package/serialization/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.js +17 -7
  1200. package/serialization/resources/companies/client/requests/GetOrCreateCompanyMembershipRequestBody.js +17 -7
  1201. package/serialization/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.js +17 -7
  1202. package/serialization/resources/companies/types/CountCompaniesParams.js +17 -7
  1203. package/serialization/resources/companies/types/CountCompaniesResponse.js +17 -7
  1204. package/serialization/resources/companies/types/CountEntityKeyDefinitionsParams.js +17 -7
  1205. package/serialization/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.js +17 -7
  1206. package/serialization/resources/companies/types/CountEntityKeyDefinitionsResponse.js +17 -7
  1207. package/serialization/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
  1208. package/serialization/resources/companies/types/CountEntityTraitDefinitionsParams.js +17 -7
  1209. package/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.js +17 -7
  1210. package/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.js +17 -7
  1211. package/serialization/resources/companies/types/CountEntityTraitDefinitionsResponse.js +17 -7
  1212. package/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
  1213. package/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
  1214. package/serialization/resources/companies/types/CountUsersParams.js +17 -7
  1215. package/serialization/resources/companies/types/CountUsersResponse.js +17 -7
  1216. package/serialization/resources/companies/types/CreateCompanyResponse.js +17 -7
  1217. package/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.js +17 -7
  1218. package/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
  1219. package/serialization/resources/companies/types/CreateUserResponse.js +17 -7
  1220. package/serialization/resources/companies/types/DeleteCompanyByKeysResponse.js +17 -7
  1221. package/serialization/resources/companies/types/DeleteCompanyMembershipResponse.js +17 -7
  1222. package/serialization/resources/companies/types/DeleteCompanyResponse.js +17 -7
  1223. package/serialization/resources/companies/types/DeleteUserByKeysResponse.js +17 -7
  1224. package/serialization/resources/companies/types/DeleteUserResponse.js +17 -7
  1225. package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +17 -7
  1226. package/serialization/resources/companies/types/GetActiveCompanySubscriptionResponse.js +17 -7
  1227. package/serialization/resources/companies/types/GetActiveDealsParams.js +17 -7
  1228. package/serialization/resources/companies/types/GetActiveDealsResponse.js +17 -7
  1229. package/serialization/resources/companies/types/GetCompanyResponse.js +17 -7
  1230. package/serialization/resources/companies/types/GetEntityTraitDefinitionResponse.js +17 -7
  1231. package/serialization/resources/companies/types/GetEntityTraitValuesParams.js +17 -7
  1232. package/serialization/resources/companies/types/GetEntityTraitValuesResponse.js +17 -7
  1233. package/serialization/resources/companies/types/GetOrCreateCompanyMembershipResponse.js +17 -7
  1234. package/serialization/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.js +17 -7
  1235. package/serialization/resources/companies/types/GetUserResponse.js +17 -7
  1236. package/serialization/resources/companies/types/ListCompaniesParams.js +17 -7
  1237. package/serialization/resources/companies/types/ListCompaniesResponse.js +17 -7
  1238. package/serialization/resources/companies/types/ListCompanyMembershipsParams.js +17 -7
  1239. package/serialization/resources/companies/types/ListCompanyMembershipsResponse.js +17 -7
  1240. package/serialization/resources/companies/types/ListEntityKeyDefinitionsParams.js +17 -7
  1241. package/serialization/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.js +17 -7
  1242. package/serialization/resources/companies/types/ListEntityKeyDefinitionsResponse.js +17 -7
  1243. package/serialization/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
  1244. package/serialization/resources/companies/types/ListEntityTraitDefinitionsParams.js +17 -7
  1245. package/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.js +17 -7
  1246. package/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.js +17 -7
  1247. package/serialization/resources/companies/types/ListEntityTraitDefinitionsResponse.js +17 -7
  1248. package/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
  1249. package/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
  1250. package/serialization/resources/companies/types/ListUsersParams.js +17 -7
  1251. package/serialization/resources/companies/types/ListUsersResponse.js +17 -7
  1252. package/serialization/resources/companies/types/LookupCompanyParams.js +17 -7
  1253. package/serialization/resources/companies/types/LookupCompanyResponse.js +17 -7
  1254. package/serialization/resources/companies/types/LookupUserParams.js +17 -7
  1255. package/serialization/resources/companies/types/LookupUserResponse.js +17 -7
  1256. package/serialization/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
  1257. package/serialization/resources/companies/types/UpdateEntityTraitDefinitionResponse.js +17 -7
  1258. package/serialization/resources/companies/types/UpsertCompanyResponse.js +17 -7
  1259. package/serialization/resources/companies/types/UpsertCompanyTraitResponse.js +17 -7
  1260. package/serialization/resources/companies/types/UpsertUserResponse.js +17 -7
  1261. package/serialization/resources/companies/types/UpsertUserTraitResponse.js +17 -7
  1262. package/serialization/resources/components/client/requests/CreateComponentRequestBody.js +17 -7
  1263. package/serialization/resources/components/client/requests/UpdateComponentRequestBody.js +17 -7
  1264. package/serialization/resources/components/types/CountComponentsParams.js +17 -7
  1265. package/serialization/resources/components/types/CountComponentsResponse.js +17 -7
  1266. package/serialization/resources/components/types/CreateComponentRequestBodyEntityType.js +17 -7
  1267. package/serialization/resources/components/types/CreateComponentResponse.js +17 -7
  1268. package/serialization/resources/components/types/DeleteComponentResponse.js +17 -7
  1269. package/serialization/resources/components/types/GetComponentResponse.js +17 -7
  1270. package/serialization/resources/components/types/ListComponentsParams.js +17 -7
  1271. package/serialization/resources/components/types/ListComponentsResponse.js +17 -7
  1272. package/serialization/resources/components/types/PreviewComponentDataParams.js +17 -7
  1273. package/serialization/resources/components/types/PreviewComponentDataResponse.js +17 -7
  1274. package/serialization/resources/components/types/UpdateComponentRequestBodyEntityType.js +17 -7
  1275. package/serialization/resources/components/types/UpdateComponentRequestBodyState.js +17 -7
  1276. package/serialization/resources/components/types/UpdateComponentResponse.js +17 -7
  1277. package/serialization/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.js +17 -7
  1278. package/serialization/resources/crm/client/requests/CreateCrmDealRequestBody.js +17 -7
  1279. package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +17 -7
  1280. package/serialization/resources/crm/client/requests/CreateCrmProductRequestBody.js +17 -7
  1281. package/serialization/resources/crm/types/ListCrmProductsParams.js +17 -7
  1282. package/serialization/resources/crm/types/ListCrmProductsResponse.js +17 -7
  1283. package/serialization/resources/crm/types/UpsertCrmDealResponse.js +17 -7
  1284. package/serialization/resources/crm/types/UpsertCrmProductResponse.js +17 -7
  1285. package/serialization/resources/crm/types/UpsertDealLineItemAssociationResponse.js +17 -7
  1286. package/serialization/resources/crm/types/UpsertLineItemResponse.js +17 -7
  1287. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +17 -7
  1288. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  1289. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +18 -7
  1290. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +17 -7
  1291. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
  1292. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +18 -7
  1293. package/serialization/resources/entitlements/types/CountCompanyOverridesParams.js +17 -7
  1294. package/serialization/resources/entitlements/types/CountCompanyOverridesResponse.js +17 -7
  1295. package/serialization/resources/entitlements/types/CountFeatureCompaniesParams.js +17 -7
  1296. package/serialization/resources/entitlements/types/CountFeatureCompaniesResponse.js +17 -7
  1297. package/serialization/resources/entitlements/types/CountFeatureUsageParams.js +17 -7
  1298. package/serialization/resources/entitlements/types/CountFeatureUsageResponse.js +17 -7
  1299. package/serialization/resources/entitlements/types/CountFeatureUsersParams.js +17 -7
  1300. package/serialization/resources/entitlements/types/CountFeatureUsersResponse.js +17 -7
  1301. package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +17 -7
  1302. package/serialization/resources/entitlements/types/CountPlanEntitlementsResponse.js +17 -7
  1303. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
  1304. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
  1305. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +17 -7
  1306. package/serialization/resources/entitlements/types/CreateCompanyOverrideResponse.js +17 -7
  1307. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
  1308. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
  1309. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +17 -7
  1310. package/serialization/resources/entitlements/types/CreatePlanEntitlementResponse.js +17 -7
  1311. package/serialization/resources/entitlements/types/DeleteCompanyOverrideResponse.js +17 -7
  1312. package/serialization/resources/entitlements/types/DeletePlanEntitlementResponse.js +17 -7
  1313. package/serialization/resources/entitlements/types/GetCompanyOverrideResponse.js +17 -7
  1314. package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +17 -7
  1315. package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyResponse.js +17 -7
  1316. package/serialization/resources/entitlements/types/GetPlanEntitlementResponse.js +17 -7
  1317. package/serialization/resources/entitlements/types/ListCompanyOverridesParams.js +17 -7
  1318. package/serialization/resources/entitlements/types/ListCompanyOverridesResponse.js +17 -7
  1319. package/serialization/resources/entitlements/types/ListFeatureCompaniesParams.js +17 -7
  1320. package/serialization/resources/entitlements/types/ListFeatureCompaniesResponse.js +17 -7
  1321. package/serialization/resources/entitlements/types/ListFeatureUsageParams.js +17 -7
  1322. package/serialization/resources/entitlements/types/ListFeatureUsageResponse.js +17 -7
  1323. package/serialization/resources/entitlements/types/ListFeatureUsersParams.js +17 -7
  1324. package/serialization/resources/entitlements/types/ListFeatureUsersResponse.js +17 -7
  1325. package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +17 -7
  1326. package/serialization/resources/entitlements/types/ListPlanEntitlementsResponse.js +17 -7
  1327. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
  1328. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
  1329. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +17 -7
  1330. package/serialization/resources/entitlements/types/UpdateCompanyOverrideResponse.js +17 -7
  1331. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
  1332. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
  1333. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +17 -7
  1334. package/serialization/resources/entitlements/types/UpdatePlanEntitlementResponse.js +17 -7
  1335. package/serialization/resources/events/client/requests/CreateEventBatchRequestBody.js +17 -7
  1336. package/serialization/resources/events/types/CreateEventBatchResponse.js +17 -7
  1337. package/serialization/resources/events/types/CreateEventResponse.js +17 -7
  1338. package/serialization/resources/events/types/GetEventResponse.js +17 -7
  1339. package/serialization/resources/events/types/GetEventSummariesParams.js +17 -7
  1340. package/serialization/resources/events/types/GetEventSummariesResponse.js +17 -7
  1341. package/serialization/resources/events/types/GetSegmentIntegrationStatusResponse.js +17 -7
  1342. package/serialization/resources/events/types/ListEventsParams.js +17 -7
  1343. package/serialization/resources/events/types/ListEventsResponse.js +17 -7
  1344. package/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  1345. package/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +19 -7
  1346. package/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  1347. package/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +19 -7
  1348. package/serialization/resources/features/client/requests/UpdateFlagRulesRequestBody.js +17 -7
  1349. package/serialization/resources/features/types/CheckFlagResponse.js +17 -7
  1350. package/serialization/resources/features/types/CheckFlagsResponse.js +17 -7
  1351. package/serialization/resources/features/types/CountAudienceCompaniesResponse.js +17 -7
  1352. package/serialization/resources/features/types/CountAudienceUsersResponse.js +17 -7
  1353. package/serialization/resources/features/types/CountFeaturesParams.js +17 -7
  1354. package/serialization/resources/features/types/CountFeaturesResponse.js +17 -7
  1355. package/serialization/resources/features/types/CountFlagsParams.js +17 -7
  1356. package/serialization/resources/features/types/CountFlagsResponse.js +17 -7
  1357. package/serialization/resources/features/types/CreateFeatureRequestBodyFeatureType.js +17 -7
  1358. package/serialization/resources/features/types/CreateFeatureResponse.js +17 -7
  1359. package/serialization/resources/features/types/CreateFlagResponse.js +17 -7
  1360. package/serialization/resources/features/types/DeleteFeatureResponse.js +17 -7
  1361. package/serialization/resources/features/types/DeleteFlagResponse.js +17 -7
  1362. package/serialization/resources/features/types/GetFeatureResponse.js +17 -7
  1363. package/serialization/resources/features/types/GetFlagResponse.js +17 -7
  1364. package/serialization/resources/features/types/ListAudienceCompaniesResponse.js +17 -7
  1365. package/serialization/resources/features/types/ListAudienceUsersResponse.js +17 -7
  1366. package/serialization/resources/features/types/ListFeaturesParams.js +17 -7
  1367. package/serialization/resources/features/types/ListFeaturesResponse.js +17 -7
  1368. package/serialization/resources/features/types/ListFlagsParams.js +17 -7
  1369. package/serialization/resources/features/types/ListFlagsResponse.js +17 -7
  1370. package/serialization/resources/features/types/UpdateFeatureRequestBodyFeatureType.js +17 -7
  1371. package/serialization/resources/features/types/UpdateFeatureResponse.js +17 -7
  1372. package/serialization/resources/features/types/UpdateFlagResponse.js +17 -7
  1373. package/serialization/resources/features/types/UpdateFlagRulesResponse.js +17 -7
  1374. package/serialization/resources/index.js +17 -7
  1375. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +5 -1
  1376. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +22 -8
  1377. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +5 -1
  1378. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +22 -8
  1379. package/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +17 -7
  1380. package/serialization/resources/plangroups/types/GetPlanGroupResponse.js +17 -7
  1381. package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +17 -7
  1382. package/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +17 -7
  1383. package/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.js +17 -7
  1384. package/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +17 -7
  1385. package/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +17 -7
  1386. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +17 -7
  1387. package/serialization/resources/plans/types/CountPlansParams.d.ts +1 -0
  1388. package/serialization/resources/plans/types/CountPlansParams.js +18 -7
  1389. package/serialization/resources/plans/types/CountPlansRequestPlanType.js +17 -7
  1390. package/serialization/resources/plans/types/CountPlansResponse.js +17 -7
  1391. package/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +17 -7
  1392. package/serialization/resources/plans/types/CreatePlanRequestBodyPlanType.js +17 -7
  1393. package/serialization/resources/plans/types/CreatePlanResponse.js +17 -7
  1394. package/serialization/resources/plans/types/DeleteAudienceResponse.js +17 -7
  1395. package/serialization/resources/plans/types/DeletePlanResponse.js +17 -7
  1396. package/serialization/resources/plans/types/GetAudienceResponse.js +17 -7
  1397. package/serialization/resources/plans/types/GetPlanResponse.js +17 -7
  1398. package/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
  1399. package/serialization/resources/plans/types/ListPlansParams.js +18 -7
  1400. package/serialization/resources/plans/types/ListPlansRequestPlanType.js +17 -7
  1401. package/serialization/resources/plans/types/ListPlansResponse.js +17 -7
  1402. package/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +17 -7
  1403. package/serialization/resources/plans/types/UpdateAudienceResponse.js +17 -7
  1404. package/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +17 -7
  1405. package/serialization/resources/plans/types/UpdatePlanResponse.js +17 -7
  1406. package/serialization/resources/plans/types/UpsertBillingProductPlanResponse.js +17 -7
  1407. package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +17 -7
  1408. package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +17 -7
  1409. package/serialization/resources/webhooks/types/CountWebhookEventsParams.js +17 -7
  1410. package/serialization/resources/webhooks/types/CountWebhookEventsResponse.js +17 -7
  1411. package/serialization/resources/webhooks/types/CountWebhooksParams.js +17 -7
  1412. package/serialization/resources/webhooks/types/CountWebhooksResponse.js +17 -7
  1413. package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +17 -7
  1414. package/serialization/resources/webhooks/types/CreateWebhookResponse.js +17 -7
  1415. package/serialization/resources/webhooks/types/DeleteWebhookResponse.js +17 -7
  1416. package/serialization/resources/webhooks/types/GetWebhookEventResponse.js +17 -7
  1417. package/serialization/resources/webhooks/types/GetWebhookResponse.js +17 -7
  1418. package/serialization/resources/webhooks/types/ListWebhookEventsParams.js +17 -7
  1419. package/serialization/resources/webhooks/types/ListWebhookEventsResponse.js +17 -7
  1420. package/serialization/resources/webhooks/types/ListWebhooksParams.js +17 -7
  1421. package/serialization/resources/webhooks/types/ListWebhooksResponse.js +17 -7
  1422. package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +17 -7
  1423. package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyStatus.js +17 -7
  1424. package/serialization/resources/webhooks/types/UpdateWebhookResponse.js +17 -7
  1425. package/serialization/types/ApiError.js +17 -7
  1426. package/serialization/types/ApiKeyCreateResponseData.js +17 -7
  1427. package/serialization/types/ApiKeyRequestListResponseData.js +17 -7
  1428. package/serialization/types/ApiKeyRequestResponseData.js +17 -7
  1429. package/serialization/types/ApiKeyResponseData.js +17 -7
  1430. package/serialization/types/AudienceRequestBody.js +17 -7
  1431. package/serialization/types/BillingCouponResponseData.js +17 -7
  1432. package/serialization/types/BillingCustomerResponseData.js +17 -7
  1433. package/serialization/types/BillingCustomerSubscription.js +17 -7
  1434. package/serialization/types/BillingCustomerWithSubscriptionsResponseData.js +17 -7
  1435. package/serialization/types/BillingMeterResponseData.js +17 -7
  1436. package/serialization/types/BillingPriceResponseData.js +17 -7
  1437. package/serialization/types/BillingPriceView.js +17 -7
  1438. package/serialization/types/BillingProductDetailResponseData.d.ts +1 -0
  1439. package/serialization/types/BillingProductDetailResponseData.js +18 -7
  1440. package/serialization/types/BillingProductForSubscriptionResponseData.js +17 -7
  1441. package/serialization/types/BillingProductPlanResponseData.js +17 -7
  1442. package/serialization/types/BillingProductPriceResponseData.js +17 -7
  1443. package/serialization/types/BillingProductPricing.d.ts +2 -1
  1444. package/serialization/types/BillingProductPricing.js +19 -8
  1445. package/serialization/types/BillingProductPricingUsageType.d.ts +10 -0
  1446. package/serialization/types/BillingProductPricingUsageType.js +41 -0
  1447. package/serialization/types/BillingProductResponseData.js +17 -7
  1448. package/serialization/types/BillingSubscriptionDiscount.js +17 -7
  1449. package/serialization/types/BillingSubscriptionDiscountView.js +17 -7
  1450. package/serialization/types/BillingSubscriptionResponseData.d.ts +3 -0
  1451. package/serialization/types/BillingSubscriptionResponseData.js +20 -7
  1452. package/serialization/types/BillingSubscriptionView.d.ts +3 -0
  1453. package/serialization/types/BillingSubscriptionView.js +20 -7
  1454. package/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  1455. package/serialization/types/ChangeSubscriptionInternalRequestBody.js +18 -7
  1456. package/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  1457. package/serialization/types/ChangeSubscriptionRequestBody.js +18 -7
  1458. package/serialization/types/CheckFlagRequestBody.js +17 -7
  1459. package/serialization/types/CheckFlagResponseData.js +17 -7
  1460. package/serialization/types/CheckFlagsResponseData.js +17 -7
  1461. package/serialization/types/CheckoutDataResponseData.d.ts +2 -0
  1462. package/serialization/types/CheckoutDataResponseData.js +19 -7
  1463. package/serialization/types/CompanyCrmDealsResponseData.js +17 -7
  1464. package/serialization/types/CompanyDetailResponseData.d.ts +2 -0
  1465. package/serialization/types/CompanyDetailResponseData.js +19 -7
  1466. package/serialization/types/CompanyEventPeriodMetricsResponseData.js +17 -7
  1467. package/serialization/types/CompanyMembershipDetailResponseData.js +17 -7
  1468. package/serialization/types/CompanyMembershipResponseData.js +17 -7
  1469. package/serialization/types/CompanyOverrideResponseData.js +17 -7
  1470. package/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
  1471. package/serialization/types/CompanyPlanDetailResponseData.js +21 -7
  1472. package/serialization/types/CompanyPlanWithBillingSubView.js +17 -7
  1473. package/serialization/types/CompanyResponseData.js +17 -7
  1474. package/serialization/types/CompanySubscriptionResponseData.d.ts +2 -0
  1475. package/serialization/types/CompanySubscriptionResponseData.js +19 -7
  1476. package/serialization/types/ComponentCapabilities.d.ts +1 -0
  1477. package/serialization/types/ComponentCapabilities.js +18 -7
  1478. package/serialization/types/ComponentHydrateResponseData.js +17 -7
  1479. package/serialization/types/ComponentPreviewResponseData.js +17 -7
  1480. package/serialization/types/ComponentResponseData.js +17 -7
  1481. package/serialization/types/CountResponse.js +17 -7
  1482. package/serialization/types/CouponRequestBody.js +17 -7
  1483. package/serialization/types/CreateBillingPriceTierRequestBody.d.ts +15 -0
  1484. package/serialization/types/CreateBillingPriceTierRequestBody.js +46 -0
  1485. package/serialization/types/CreateEntitlementReqCommon.js +17 -7
  1486. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +17 -7
  1487. package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
  1488. package/serialization/types/CreateEntitlementReqCommonValueType.js +17 -7
  1489. package/serialization/types/CreateEventRequestBody.js +17 -7
  1490. package/serialization/types/CreateEventRequestBodyEventType.js +17 -7
  1491. package/serialization/types/CreateFlagRequestBody.js +17 -7
  1492. package/serialization/types/CreateOrUpdateConditionGroupRequestBody.js +17 -7
  1493. package/serialization/types/CreateOrUpdateConditionRequestBody.js +17 -7
  1494. package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +17 -7
  1495. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +17 -7
  1496. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +17 -7
  1497. package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +17 -7
  1498. package/serialization/types/CreateOrUpdateFlagRequestBody.js +17 -7
  1499. package/serialization/types/CreateOrUpdateRuleRequestBody.js +17 -7
  1500. package/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.js +17 -7
  1501. package/serialization/types/CrmDealLineItem.js +17 -7
  1502. package/serialization/types/CrmDealResponseData.js +17 -7
  1503. package/serialization/types/CrmLineItemResponseData.js +17 -7
  1504. package/serialization/types/CrmProductResponseData.js +17 -7
  1505. package/serialization/types/CustomPlanConfig.d.ts +14 -0
  1506. package/serialization/types/CustomPlanConfig.js +45 -0
  1507. package/serialization/types/CustomPlanViewConfigResponseData.d.ts +14 -0
  1508. package/serialization/types/CustomPlanViewConfigResponseData.js +45 -0
  1509. package/serialization/types/Decimal.js +17 -7
  1510. package/serialization/types/DeleteResponse.js +17 -7
  1511. package/serialization/types/EntitlementsInPlan.d.ts +13 -0
  1512. package/serialization/types/EntitlementsInPlan.js +44 -0
  1513. package/serialization/types/EntityKeyDefinitionResponseData.js +17 -7
  1514. package/serialization/types/EntityKeyDetailResponseData.js +17 -7
  1515. package/serialization/types/EntityKeyResponseData.js +17 -7
  1516. package/serialization/types/EntityTraitDefinitionResponseData.js +17 -7
  1517. package/serialization/types/EntityTraitDetailResponseData.js +17 -7
  1518. package/serialization/types/EntityTraitResponseData.js +17 -7
  1519. package/serialization/types/EntityTraitValue.js +17 -7
  1520. package/serialization/types/EnvironmentDetailResponseData.js +17 -7
  1521. package/serialization/types/EnvironmentResponseData.js +17 -7
  1522. package/serialization/types/EventBody.js +17 -7
  1523. package/serialization/types/EventBodyFlagCheck.js +17 -7
  1524. package/serialization/types/EventBodyIdentify.js +17 -7
  1525. package/serialization/types/EventBodyIdentifyCompany.js +17 -7
  1526. package/serialization/types/EventBodyTrack.d.ts +1 -0
  1527. package/serialization/types/EventBodyTrack.js +18 -7
  1528. package/serialization/types/EventDetailResponseData.d.ts +1 -0
  1529. package/serialization/types/EventDetailResponseData.js +18 -7
  1530. package/serialization/types/EventResponseData.d.ts +1 -0
  1531. package/serialization/types/EventResponseData.js +18 -7
  1532. package/serialization/types/EventSummaryResponseData.js +17 -7
  1533. package/serialization/types/FeatureCompanyResponseData.js +17 -7
  1534. package/serialization/types/FeatureCompanyResponseDataAllocationType.js +17 -7
  1535. package/serialization/types/FeatureCompanyUserResponseData.js +17 -7
  1536. package/serialization/types/FeatureCompanyUserResponseDataAllocationType.js +17 -7
  1537. package/serialization/types/FeatureDetailResponseData.d.ts +2 -0
  1538. package/serialization/types/FeatureDetailResponseData.js +19 -7
  1539. package/serialization/types/FeatureResponseData.d.ts +2 -0
  1540. package/serialization/types/FeatureResponseData.js +19 -7
  1541. package/serialization/types/FeatureUsageDetailResponseData.js +17 -7
  1542. package/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  1543. package/serialization/types/FeatureUsageResponseData.js +18 -7
  1544. package/serialization/types/FeatureUsageResponseDataAllocationType.js +17 -7
  1545. package/serialization/types/FlagDetailResponseData.js +17 -7
  1546. package/serialization/types/FlagResponseData.js +17 -7
  1547. package/serialization/types/GenericPreviewObject.js +17 -7
  1548. package/serialization/types/InvoiceRequestBody.js +17 -7
  1549. package/serialization/types/InvoiceResponseData.js +17 -7
  1550. package/serialization/types/IssueTemporaryAccessTokenResponseData.js +17 -7
  1551. package/serialization/types/KeysRequestBody.js +17 -7
  1552. package/serialization/types/MeterRequestBody.js +17 -7
  1553. package/serialization/types/OrderedPlansInGroup.d.ts +14 -0
  1554. package/serialization/types/OrderedPlansInGroup.js +45 -0
  1555. package/serialization/types/PaginationFilter.js +17 -7
  1556. package/serialization/types/PaymentMethodRequestBody.d.ts +0 -1
  1557. package/serialization/types/PaymentMethodRequestBody.js +17 -8
  1558. package/serialization/types/PaymentMethodResponseData.d.ts +0 -1
  1559. package/serialization/types/PaymentMethodResponseData.js +17 -8
  1560. package/serialization/types/PlanAudienceDetailResponseData.js +17 -7
  1561. package/serialization/types/PlanAudienceResponseData.js +17 -7
  1562. package/serialization/types/PlanDetailResponseData.js +17 -7
  1563. package/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
  1564. package/serialization/types/PlanEntitlementResponseData.js +18 -7
  1565. package/serialization/types/PlanEntitlementsOrder.d.ts +13 -0
  1566. package/serialization/types/PlanEntitlementsOrder.js +44 -0
  1567. package/serialization/types/PlanGroupDetailResponseData.d.ts +5 -0
  1568. package/serialization/types/PlanGroupDetailResponseData.js +22 -7
  1569. package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  1570. package/serialization/types/PlanGroupPlanDetailResponseData.js +20 -7
  1571. package/serialization/types/PlanGroupPlanEntitlementsOrder.d.ts +14 -0
  1572. package/serialization/types/PlanGroupPlanEntitlementsOrder.js +45 -0
  1573. package/serialization/types/PlanGroupResponseData.d.ts +2 -1
  1574. package/serialization/types/PlanGroupResponseData.js +19 -8
  1575. package/serialization/types/PlanResponseData.js +17 -7
  1576. package/serialization/types/PreviewObject.js +17 -7
  1577. package/serialization/types/PreviewObjectResponseData.js +17 -7
  1578. package/serialization/types/PreviewSubscriptionChangeResponseData.js +17 -7
  1579. package/serialization/types/RawEventBatchResponseData.js +17 -7
  1580. package/serialization/types/RawEventResponseData.js +17 -7
  1581. package/serialization/types/RuleConditionDetailResponseData.js +17 -7
  1582. package/serialization/types/RuleConditionGroupDetailResponseData.js +17 -7
  1583. package/serialization/types/RuleConditionGroupResponseData.js +17 -7
  1584. package/serialization/types/RuleConditionResponseData.js +17 -7
  1585. package/serialization/types/RuleDetailResponseData.js +17 -7
  1586. package/serialization/types/RuleResponseData.js +17 -7
  1587. package/serialization/types/RulesDetailResponseData.js +17 -7
  1588. package/serialization/types/SegmentStatusResp.js +17 -7
  1589. package/serialization/types/StripeEmbedInfo.js +17 -7
  1590. package/serialization/types/TemporaryAccessTokenResponseData.js +17 -7
  1591. package/serialization/types/UpdateAddOnRequestBody.js +17 -7
  1592. package/serialization/types/UpdateEntitlementReqCommon.js +17 -7
  1593. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +17 -7
  1594. package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
  1595. package/serialization/types/UpdateEntitlementReqCommonValueType.js +17 -7
  1596. package/serialization/types/UpdatePayInAdvanceRequestBody.js +17 -7
  1597. package/serialization/types/UpdateRuleRequestBody.js +17 -7
  1598. package/serialization/types/UpsertCompanyRequestBody.js +17 -7
  1599. package/serialization/types/UpsertTraitRequestBody.js +17 -7
  1600. package/serialization/types/UpsertUserRequestBody.js +17 -7
  1601. package/serialization/types/UpsertUserSubRequestBody.js +17 -7
  1602. package/serialization/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
  1603. package/serialization/types/UsageBasedEntitlementRequestBody.js +18 -7
  1604. package/serialization/types/UsageBasedEntitlementResponseData.d.ts +2 -0
  1605. package/serialization/types/UsageBasedEntitlementResponseData.js +19 -7
  1606. package/serialization/types/UserDetailResponseData.js +17 -7
  1607. package/serialization/types/UserResponseData.js +17 -7
  1608. package/serialization/types/WebhookEventDetailResponseData.js +17 -7
  1609. package/serialization/types/WebhookEventResponseData.js +17 -7
  1610. package/serialization/types/WebhookResponseData.d.ts +1 -0
  1611. package/serialization/types/WebhookResponseData.js +18 -7
  1612. package/serialization/types/index.d.ts +8 -0
  1613. package/serialization/types/index.js +8 -0
  1614. package/webhooks.d.ts +76 -0
  1615. package/webhooks.js +170 -0
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
18
18
  }) : function(o, v) {
19
19
  o["default"] = v;
20
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
- };
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
28
38
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
39
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
40
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -42,13 +52,118 @@ exports.Billing = void 0;
42
52
  const environments = __importStar(require("../../../../environments"));
43
53
  const core = __importStar(require("../../../../core"));
44
54
  const Schematic = __importStar(require("../../../index"));
45
- const serializers = __importStar(require("../../../../serialization/index"));
46
55
  const url_join_1 = __importDefault(require("url-join"));
56
+ const serializers = __importStar(require("../../../../serialization/index"));
47
57
  const errors = __importStar(require("../../../../errors/index"));
48
58
  class Billing {
49
59
  constructor(_options) {
50
60
  this._options = _options;
51
61
  }
62
+ /**
63
+ * @param {Schematic.ListCouponsRequest} request
64
+ * @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
65
+ *
66
+ * @throws {@link Schematic.BadRequestError}
67
+ * @throws {@link Schematic.UnauthorizedError}
68
+ * @throws {@link Schematic.ForbiddenError}
69
+ * @throws {@link Schematic.InternalServerError}
70
+ *
71
+ * @example
72
+ * await client.billing.listCoupons()
73
+ */
74
+ listCoupons() {
75
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
76
+ var _a, _b, _c;
77
+ const { isActive, q, limit, offset } = request;
78
+ const _queryParams = {};
79
+ if (isActive != null) {
80
+ _queryParams["is_active"] = isActive.toString();
81
+ }
82
+ if (q != null) {
83
+ _queryParams["q"] = q;
84
+ }
85
+ if (limit != null) {
86
+ _queryParams["limit"] = limit.toString();
87
+ }
88
+ if (offset != null) {
89
+ _queryParams["offset"] = offset.toString();
90
+ }
91
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
92
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/coupons"),
93
+ method: "GET",
94
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
+ contentType: "application/json",
96
+ queryParameters: _queryParams,
97
+ requestType: "json",
98
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
99
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
100
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
101
+ });
102
+ if (_response.ok) {
103
+ return serializers.ListCouponsResponse.parseOrThrow(_response.body, {
104
+ unrecognizedObjectKeys: "passthrough",
105
+ allowUnrecognizedUnionMembers: true,
106
+ allowUnrecognizedEnumValues: true,
107
+ skipValidation: true,
108
+ breadcrumbsPrefix: ["response"],
109
+ });
110
+ }
111
+ if (_response.error.reason === "status-code") {
112
+ switch (_response.error.statusCode) {
113
+ case 400:
114
+ throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
115
+ unrecognizedObjectKeys: "passthrough",
116
+ allowUnrecognizedUnionMembers: true,
117
+ allowUnrecognizedEnumValues: true,
118
+ skipValidation: true,
119
+ breadcrumbsPrefix: ["response"],
120
+ }));
121
+ case 401:
122
+ throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
123
+ unrecognizedObjectKeys: "passthrough",
124
+ allowUnrecognizedUnionMembers: true,
125
+ allowUnrecognizedEnumValues: true,
126
+ skipValidation: true,
127
+ breadcrumbsPrefix: ["response"],
128
+ }));
129
+ case 403:
130
+ throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
131
+ unrecognizedObjectKeys: "passthrough",
132
+ allowUnrecognizedUnionMembers: true,
133
+ allowUnrecognizedEnumValues: true,
134
+ skipValidation: true,
135
+ breadcrumbsPrefix: ["response"],
136
+ }));
137
+ case 500:
138
+ throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
139
+ unrecognizedObjectKeys: "passthrough",
140
+ allowUnrecognizedUnionMembers: true,
141
+ allowUnrecognizedEnumValues: true,
142
+ skipValidation: true,
143
+ breadcrumbsPrefix: ["response"],
144
+ }));
145
+ default:
146
+ throw new errors.SchematicError({
147
+ statusCode: _response.error.statusCode,
148
+ body: _response.error.body,
149
+ });
150
+ }
151
+ }
152
+ switch (_response.error.reason) {
153
+ case "non-json":
154
+ throw new errors.SchematicError({
155
+ statusCode: _response.error.statusCode,
156
+ body: _response.error.rawBody,
157
+ });
158
+ case "timeout":
159
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /billing/coupons.");
160
+ case "unknown":
161
+ throw new errors.SchematicError({
162
+ message: _response.error.errorMessage,
163
+ });
164
+ }
165
+ });
166
+ }
52
167
  /**
53
168
  * @param {Schematic.CreateCouponRequestBody} request
54
169
  * @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
@@ -71,12 +186,12 @@ class Billing {
71
186
  * })
72
187
  */
73
188
  upsertBillingCoupon(request, requestOptions) {
74
- var _a, _b;
75
189
  return __awaiter(this, void 0, void 0, function* () {
190
+ var _a, _b, _c;
76
191
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/coupons"),
192
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/coupons"),
78
193
  method: "POST",
79
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
194
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
195
  contentType: "application/json",
81
196
  requestType: "json",
82
197
  body: serializers.CreateCouponRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -141,7 +256,7 @@ class Billing {
141
256
  body: _response.error.rawBody,
142
257
  });
143
258
  case "timeout":
144
- throw new errors.SchematicTimeoutError();
259
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /billing/coupons.");
145
260
  case "unknown":
146
261
  throw new errors.SchematicError({
147
262
  message: _response.error.errorMessage,
@@ -170,12 +285,12 @@ class Billing {
170
285
  * })
171
286
  */
172
287
  upsertBillingCustomer(request, requestOptions) {
173
- var _a, _b;
174
288
  return __awaiter(this, void 0, void 0, function* () {
289
+ var _a, _b, _c;
175
290
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
176
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/customer/upsert"),
291
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/customer/upsert"),
177
292
  method: "POST",
178
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
293
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
179
294
  contentType: "application/json",
180
295
  requestType: "json",
181
296
  body: serializers.CreateBillingCustomerRequestBody.jsonOrThrow(request, {
@@ -242,7 +357,7 @@ class Billing {
242
357
  body: _response.error.rawBody,
243
358
  });
244
359
  case "timeout":
245
- throw new errors.SchematicTimeoutError();
360
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /billing/customer/upsert.");
246
361
  case "unknown":
247
362
  throw new errors.SchematicError({
248
363
  message: _response.error.errorMessage,
@@ -262,9 +377,9 @@ class Billing {
262
377
  * @example
263
378
  * await client.billing.listCustomers()
264
379
  */
265
- listCustomers(request = {}, requestOptions) {
266
- var _a, _b;
267
- return __awaiter(this, void 0, void 0, function* () {
380
+ listCustomers() {
381
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
382
+ var _a, _b, _c;
268
383
  const { name, failedToImport, q, limit, offset } = request;
269
384
  const _queryParams = {};
270
385
  if (name != null) {
@@ -283,9 +398,9 @@ class Billing {
283
398
  _queryParams["offset"] = offset.toString();
284
399
  }
285
400
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
286
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/customers"),
401
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/customers"),
287
402
  method: "GET",
288
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
403
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
289
404
  contentType: "application/json",
290
405
  queryParameters: _queryParams,
291
406
  requestType: "json",
@@ -350,7 +465,7 @@ class Billing {
350
465
  body: _response.error.rawBody,
351
466
  });
352
467
  case "timeout":
353
- throw new errors.SchematicTimeoutError();
468
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /billing/customers.");
354
469
  case "unknown":
355
470
  throw new errors.SchematicError({
356
471
  message: _response.error.errorMessage,
@@ -370,9 +485,9 @@ class Billing {
370
485
  * @example
371
486
  * await client.billing.countCustomers()
372
487
  */
373
- countCustomers(request = {}, requestOptions) {
374
- var _a, _b;
375
- return __awaiter(this, void 0, void 0, function* () {
488
+ countCustomers() {
489
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
490
+ var _a, _b, _c;
376
491
  const { name, failedToImport, q, limit, offset } = request;
377
492
  const _queryParams = {};
378
493
  if (name != null) {
@@ -391,9 +506,9 @@ class Billing {
391
506
  _queryParams["offset"] = offset.toString();
392
507
  }
393
508
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
394
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/customers/count"),
509
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/customers/count"),
395
510
  method: "GET",
396
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
511
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
397
512
  contentType: "application/json",
398
513
  queryParameters: _queryParams,
399
514
  requestType: "json",
@@ -458,7 +573,7 @@ class Billing {
458
573
  body: _response.error.rawBody,
459
574
  });
460
575
  case "timeout":
461
- throw new errors.SchematicTimeoutError();
576
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /billing/customers/count.");
462
577
  case "unknown":
463
578
  throw new errors.SchematicError({
464
579
  message: _response.error.errorMessage,
@@ -481,8 +596,8 @@ class Billing {
481
596
  * })
482
597
  */
483
598
  listInvoices(request, requestOptions) {
484
- var _a, _b;
485
599
  return __awaiter(this, void 0, void 0, function* () {
600
+ var _a, _b, _c;
486
601
  const { companyId, customerExternalId, subscriptionExternalId, limit, offset } = request;
487
602
  const _queryParams = {};
488
603
  if (companyId != null) {
@@ -499,9 +614,9 @@ class Billing {
499
614
  _queryParams["offset"] = offset.toString();
500
615
  }
501
616
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
502
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/invoices"),
617
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/invoices"),
503
618
  method: "GET",
504
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
619
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
505
620
  contentType: "application/json",
506
621
  queryParameters: _queryParams,
507
622
  requestType: "json",
@@ -566,7 +681,7 @@ class Billing {
566
681
  body: _response.error.rawBody,
567
682
  });
568
683
  case "timeout":
569
- throw new errors.SchematicTimeoutError();
684
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /billing/invoices.");
570
685
  case "unknown":
571
686
  throw new errors.SchematicError({
572
687
  message: _response.error.errorMessage,
@@ -595,12 +710,12 @@ class Billing {
595
710
  * })
596
711
  */
597
712
  upsertInvoice(request, requestOptions) {
598
- var _a, _b;
599
713
  return __awaiter(this, void 0, void 0, function* () {
714
+ var _a, _b, _c;
600
715
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
601
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/invoices"),
716
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/invoices"),
602
717
  method: "POST",
603
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
718
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
604
719
  contentType: "application/json",
605
720
  requestType: "json",
606
721
  body: serializers.CreateInvoiceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -665,7 +780,7 @@ class Billing {
665
780
  body: _response.error.rawBody,
666
781
  });
667
782
  case "timeout":
668
- throw new errors.SchematicTimeoutError();
783
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /billing/invoices.");
669
784
  case "unknown":
670
785
  throw new errors.SchematicError({
671
786
  message: _response.error.errorMessage,
@@ -685,9 +800,9 @@ class Billing {
685
800
  * @example
686
801
  * await client.billing.listMeters()
687
802
  */
688
- listMeters(request = {}, requestOptions) {
689
- var _a, _b;
690
- return __awaiter(this, void 0, void 0, function* () {
803
+ listMeters() {
804
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
805
+ var _a, _b, _c;
691
806
  const { displayName, limit, offset } = request;
692
807
  const _queryParams = {};
693
808
  if (displayName != null) {
@@ -700,9 +815,9 @@ class Billing {
700
815
  _queryParams["offset"] = offset.toString();
701
816
  }
702
817
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
703
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/meter"),
818
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/meter"),
704
819
  method: "GET",
705
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
820
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
706
821
  contentType: "application/json",
707
822
  queryParameters: _queryParams,
708
823
  requestType: "json",
@@ -767,7 +882,7 @@ class Billing {
767
882
  body: _response.error.rawBody,
768
883
  });
769
884
  case "timeout":
770
- throw new errors.SchematicTimeoutError();
885
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /billing/meter.");
771
886
  case "unknown":
772
887
  throw new errors.SchematicError({
773
888
  message: _response.error.errorMessage,
@@ -793,12 +908,12 @@ class Billing {
793
908
  * })
794
909
  */
795
910
  upsertBillingMeter(request, requestOptions) {
796
- var _a, _b;
797
911
  return __awaiter(this, void 0, void 0, function* () {
912
+ var _a, _b, _c;
798
913
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
799
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/meter/upsert"),
914
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/meter/upsert"),
800
915
  method: "POST",
801
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
916
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
802
917
  contentType: "application/json",
803
918
  requestType: "json",
804
919
  body: serializers.CreateMeterRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -863,7 +978,7 @@ class Billing {
863
978
  body: _response.error.rawBody,
864
979
  });
865
980
  case "timeout":
866
- throw new errors.SchematicTimeoutError();
981
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /billing/meter/upsert.");
867
982
  case "unknown":
868
983
  throw new errors.SchematicError({
869
984
  message: _response.error.errorMessage,
@@ -886,17 +1001,14 @@ class Billing {
886
1001
  * })
887
1002
  */
888
1003
  listPaymentMethods(request, requestOptions) {
889
- var _a, _b;
890
1004
  return __awaiter(this, void 0, void 0, function* () {
891
- const { companyId, customerExternalId, subscriptionExternalId, limit, offset } = request;
1005
+ var _a, _b, _c;
1006
+ const { companyId, customerExternalId, limit, offset } = request;
892
1007
  const _queryParams = {};
893
1008
  if (companyId != null) {
894
1009
  _queryParams["company_id"] = companyId;
895
1010
  }
896
1011
  _queryParams["customer_external_id"] = customerExternalId;
897
- if (subscriptionExternalId != null) {
898
- _queryParams["subscription_external_id"] = subscriptionExternalId;
899
- }
900
1012
  if (limit != null) {
901
1013
  _queryParams["limit"] = limit.toString();
902
1014
  }
@@ -904,9 +1016,9 @@ class Billing {
904
1016
  _queryParams["offset"] = offset.toString();
905
1017
  }
906
1018
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
907
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/payment-methods"),
1019
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/payment-methods"),
908
1020
  method: "GET",
909
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1021
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
910
1022
  contentType: "application/json",
911
1023
  queryParameters: _queryParams,
912
1024
  requestType: "json",
@@ -971,7 +1083,7 @@ class Billing {
971
1083
  body: _response.error.rawBody,
972
1084
  });
973
1085
  case "timeout":
974
- throw new errors.SchematicTimeoutError();
1086
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /billing/payment-methods.");
975
1087
  case "unknown":
976
1088
  throw new errors.SchematicError({
977
1089
  message: _response.error.errorMessage,
@@ -996,12 +1108,12 @@ class Billing {
996
1108
  * })
997
1109
  */
998
1110
  upsertPaymentMethod(request, requestOptions) {
999
- var _a, _b;
1000
1111
  return __awaiter(this, void 0, void 0, function* () {
1112
+ var _a, _b, _c;
1001
1113
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1002
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/payment-methods"),
1114
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/payment-methods"),
1003
1115
  method: "POST",
1004
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1116
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1005
1117
  contentType: "application/json",
1006
1118
  requestType: "json",
1007
1119
  body: serializers.CreatePaymentMethodRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1066,7 +1178,7 @@ class Billing {
1066
1178
  body: _response.error.rawBody,
1067
1179
  });
1068
1180
  case "timeout":
1069
- throw new errors.SchematicTimeoutError();
1181
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /billing/payment-methods.");
1070
1182
  case "unknown":
1071
1183
  throw new errors.SchematicError({
1072
1184
  message: _response.error.errorMessage,
@@ -1086,10 +1198,10 @@ class Billing {
1086
1198
  * @example
1087
1199
  * await client.billing.searchBillingPrices()
1088
1200
  */
1089
- searchBillingPrices(request = {}, requestOptions) {
1090
- var _a, _b;
1091
- return __awaiter(this, void 0, void 0, function* () {
1092
- const { ids, interval, usageType, price, limit, offset } = request;
1201
+ searchBillingPrices() {
1202
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
1203
+ var _a, _b, _c;
1204
+ const { ids, q, interval, usageType, price, limit, offset } = request;
1093
1205
  const _queryParams = {};
1094
1206
  if (ids != null) {
1095
1207
  if (Array.isArray(ids)) {
@@ -1099,11 +1211,16 @@ class Billing {
1099
1211
  _queryParams["ids"] = ids;
1100
1212
  }
1101
1213
  }
1214
+ if (q != null) {
1215
+ _queryParams["q"] = q;
1216
+ }
1102
1217
  if (interval != null) {
1103
1218
  _queryParams["interval"] = interval;
1104
1219
  }
1105
1220
  if (usageType != null) {
1106
- _queryParams["usage_type"] = usageType;
1221
+ _queryParams["usage_type"] = serializers.SearchBillingPricesRequestUsageType.jsonOrThrow(usageType, {
1222
+ unrecognizedObjectKeys: "strip",
1223
+ });
1107
1224
  }
1108
1225
  if (price != null) {
1109
1226
  _queryParams["price"] = price.toString();
@@ -1115,9 +1232,9 @@ class Billing {
1115
1232
  _queryParams["offset"] = offset.toString();
1116
1233
  }
1117
1234
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1118
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/price"),
1235
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/price"),
1119
1236
  method: "GET",
1120
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1237
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1121
1238
  contentType: "application/json",
1122
1239
  queryParameters: _queryParams,
1123
1240
  requestType: "json",
@@ -1182,7 +1299,7 @@ class Billing {
1182
1299
  body: _response.error.rawBody,
1183
1300
  });
1184
1301
  case "timeout":
1185
- throw new errors.SchematicTimeoutError();
1302
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /billing/price.");
1186
1303
  case "unknown":
1187
1304
  throw new errors.SchematicError({
1188
1305
  message: _response.error.errorMessage,
@@ -1202,21 +1319,25 @@ class Billing {
1202
1319
  * @example
1203
1320
  * await client.billing.upsertBillingPrice({
1204
1321
  * currency: "currency",
1322
+ * externalAccountId: "external_account_id",
1205
1323
  * interval: "interval",
1206
1324
  * isActive: true,
1207
1325
  * price: 1,
1208
1326
  * priceExternalId: "price_external_id",
1327
+ * priceTiers: [{
1328
+ * priceExternalId: "price_external_id"
1329
+ * }],
1209
1330
  * productExternalId: "product_external_id",
1210
- * usageType: "usage_type"
1331
+ * usageType: "licensed"
1211
1332
  * })
1212
1333
  */
1213
1334
  upsertBillingPrice(request, requestOptions) {
1214
- var _a, _b;
1215
1335
  return __awaiter(this, void 0, void 0, function* () {
1336
+ var _a, _b, _c;
1216
1337
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1217
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/price/upsert"),
1338
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/price/upsert"),
1218
1339
  method: "POST",
1219
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1340
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1220
1341
  contentType: "application/json",
1221
1342
  requestType: "json",
1222
1343
  body: serializers.CreateBillingPriceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1281,7 +1402,97 @@ class Billing {
1281
1402
  body: _response.error.rawBody,
1282
1403
  });
1283
1404
  case "timeout":
1284
- throw new errors.SchematicTimeoutError();
1405
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /billing/price/upsert.");
1406
+ case "unknown":
1407
+ throw new errors.SchematicError({
1408
+ message: _response.error.errorMessage,
1409
+ });
1410
+ }
1411
+ });
1412
+ }
1413
+ /**
1414
+ * @param {string} billingId - billing_id
1415
+ * @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
1416
+ *
1417
+ * @throws {@link Schematic.BadRequestError}
1418
+ * @throws {@link Schematic.UnauthorizedError}
1419
+ * @throws {@link Schematic.ForbiddenError}
1420
+ * @throws {@link Schematic.InternalServerError}
1421
+ *
1422
+ * @example
1423
+ * await client.billing.deleteBillingProduct("billing_id")
1424
+ */
1425
+ deleteBillingProduct(billingId, requestOptions) {
1426
+ return __awaiter(this, void 0, void 0, function* () {
1427
+ var _a, _b, _c;
1428
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1429
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `billing/product/${encodeURIComponent(billingId)}`),
1430
+ method: "DELETE",
1431
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1432
+ contentType: "application/json",
1433
+ requestType: "json",
1434
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1435
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1436
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1437
+ });
1438
+ if (_response.ok) {
1439
+ return serializers.DeleteBillingProductResponse.parseOrThrow(_response.body, {
1440
+ unrecognizedObjectKeys: "passthrough",
1441
+ allowUnrecognizedUnionMembers: true,
1442
+ allowUnrecognizedEnumValues: true,
1443
+ skipValidation: true,
1444
+ breadcrumbsPrefix: ["response"],
1445
+ });
1446
+ }
1447
+ if (_response.error.reason === "status-code") {
1448
+ switch (_response.error.statusCode) {
1449
+ case 400:
1450
+ throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
1451
+ unrecognizedObjectKeys: "passthrough",
1452
+ allowUnrecognizedUnionMembers: true,
1453
+ allowUnrecognizedEnumValues: true,
1454
+ skipValidation: true,
1455
+ breadcrumbsPrefix: ["response"],
1456
+ }));
1457
+ case 401:
1458
+ throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
1459
+ unrecognizedObjectKeys: "passthrough",
1460
+ allowUnrecognizedUnionMembers: true,
1461
+ allowUnrecognizedEnumValues: true,
1462
+ skipValidation: true,
1463
+ breadcrumbsPrefix: ["response"],
1464
+ }));
1465
+ case 403:
1466
+ throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
1467
+ unrecognizedObjectKeys: "passthrough",
1468
+ allowUnrecognizedUnionMembers: true,
1469
+ allowUnrecognizedEnumValues: true,
1470
+ skipValidation: true,
1471
+ breadcrumbsPrefix: ["response"],
1472
+ }));
1473
+ case 500:
1474
+ throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
1475
+ unrecognizedObjectKeys: "passthrough",
1476
+ allowUnrecognizedUnionMembers: true,
1477
+ allowUnrecognizedEnumValues: true,
1478
+ skipValidation: true,
1479
+ breadcrumbsPrefix: ["response"],
1480
+ }));
1481
+ default:
1482
+ throw new errors.SchematicError({
1483
+ statusCode: _response.error.statusCode,
1484
+ body: _response.error.body,
1485
+ });
1486
+ }
1487
+ }
1488
+ switch (_response.error.reason) {
1489
+ case "non-json":
1490
+ throw new errors.SchematicError({
1491
+ statusCode: _response.error.statusCode,
1492
+ body: _response.error.rawBody,
1493
+ });
1494
+ case "timeout":
1495
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /billing/product/{billing_id}.");
1285
1496
  case "unknown":
1286
1497
  throw new errors.SchematicError({
1287
1498
  message: _response.error.errorMessage,
@@ -1301,9 +1512,9 @@ class Billing {
1301
1512
  * @example
1302
1513
  * await client.billing.listProductPrices()
1303
1514
  */
1304
- listProductPrices(request = {}, requestOptions) {
1305
- var _a, _b;
1306
- return __awaiter(this, void 0, void 0, function* () {
1515
+ listProductPrices() {
1516
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
1517
+ var _a, _b, _c;
1307
1518
  const { ids, name, q, priceUsageType, withoutLinkedToPlan, withZeroPrice, withPricesOnly, limit, offset } = request;
1308
1519
  const _queryParams = {};
1309
1520
  if (ids != null) {
@@ -1321,7 +1532,7 @@ class Billing {
1321
1532
  _queryParams["q"] = q;
1322
1533
  }
1323
1534
  if (priceUsageType != null) {
1324
- _queryParams["price_usage_type"] = priceUsageType;
1535
+ _queryParams["price_usage_type"] = serializers.ListProductPricesRequestPriceUsageType.jsonOrThrow(priceUsageType, { unrecognizedObjectKeys: "strip" });
1325
1536
  }
1326
1537
  if (withoutLinkedToPlan != null) {
1327
1538
  _queryParams["without_linked_to_plan"] = withoutLinkedToPlan.toString();
@@ -1339,9 +1550,9 @@ class Billing {
1339
1550
  _queryParams["offset"] = offset.toString();
1340
1551
  }
1341
1552
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1342
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/product/prices"),
1553
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/product/prices"),
1343
1554
  method: "GET",
1344
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1555
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1345
1556
  contentType: "application/json",
1346
1557
  queryParameters: _queryParams,
1347
1558
  requestType: "json",
@@ -1406,7 +1617,7 @@ class Billing {
1406
1617
  body: _response.error.rawBody,
1407
1618
  });
1408
1619
  case "timeout":
1409
- throw new errors.SchematicTimeoutError();
1620
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /billing/product/prices.");
1410
1621
  case "unknown":
1411
1622
  throw new errors.SchematicError({
1412
1623
  message: _response.error.errorMessage,
@@ -1427,12 +1638,12 @@ class Billing {
1427
1638
  * await client.billing.deleteProductPrice("billing_id")
1428
1639
  */
1429
1640
  deleteProductPrice(billingId, requestOptions) {
1430
- var _a, _b;
1431
1641
  return __awaiter(this, void 0, void 0, function* () {
1642
+ var _a, _b, _c;
1432
1643
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1433
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `billing/product/prices/${encodeURIComponent(billingId)}`),
1644
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `billing/product/prices/${encodeURIComponent(billingId)}`),
1434
1645
  method: "DELETE",
1435
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1646
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1436
1647
  contentType: "application/json",
1437
1648
  requestType: "json",
1438
1649
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1496,7 +1707,7 @@ class Billing {
1496
1707
  body: _response.error.rawBody,
1497
1708
  });
1498
1709
  case "timeout":
1499
- throw new errors.SchematicTimeoutError();
1710
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /billing/product/prices/{billing_id}.");
1500
1711
  case "unknown":
1501
1712
  throw new errors.SchematicError({
1502
1713
  message: _response.error.errorMessage,
@@ -1515,6 +1726,7 @@ class Billing {
1515
1726
  *
1516
1727
  * @example
1517
1728
  * await client.billing.upsertBillingProduct({
1729
+ * active: true,
1518
1730
  * currency: "currency",
1519
1731
  * externalId: "external_id",
1520
1732
  * name: "name",
@@ -1523,12 +1735,12 @@ class Billing {
1523
1735
  * })
1524
1736
  */
1525
1737
  upsertBillingProduct(request, requestOptions) {
1526
- var _a, _b;
1527
1738
  return __awaiter(this, void 0, void 0, function* () {
1739
+ var _a, _b, _c;
1528
1740
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1529
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/product/upsert"),
1741
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/product/upsert"),
1530
1742
  method: "POST",
1531
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1743
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1532
1744
  contentType: "application/json",
1533
1745
  requestType: "json",
1534
1746
  body: serializers.CreateBillingProductRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1593,7 +1805,7 @@ class Billing {
1593
1805
  body: _response.error.rawBody,
1594
1806
  });
1595
1807
  case "timeout":
1596
- throw new errors.SchematicTimeoutError();
1808
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /billing/product/upsert.");
1597
1809
  case "unknown":
1598
1810
  throw new errors.SchematicError({
1599
1811
  message: _response.error.errorMessage,
@@ -1613,9 +1825,9 @@ class Billing {
1613
1825
  * @example
1614
1826
  * await client.billing.listBillingProducts()
1615
1827
  */
1616
- listBillingProducts(request = {}, requestOptions) {
1617
- var _a, _b;
1618
- return __awaiter(this, void 0, void 0, function* () {
1828
+ listBillingProducts() {
1829
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
1830
+ var _a, _b, _c;
1619
1831
  const { ids, name, q, priceUsageType, withoutLinkedToPlan, withZeroPrice, withPricesOnly, limit, offset } = request;
1620
1832
  const _queryParams = {};
1621
1833
  if (ids != null) {
@@ -1633,7 +1845,7 @@ class Billing {
1633
1845
  _queryParams["q"] = q;
1634
1846
  }
1635
1847
  if (priceUsageType != null) {
1636
- _queryParams["price_usage_type"] = priceUsageType;
1848
+ _queryParams["price_usage_type"] = serializers.ListBillingProductsRequestPriceUsageType.jsonOrThrow(priceUsageType, { unrecognizedObjectKeys: "strip" });
1637
1849
  }
1638
1850
  if (withoutLinkedToPlan != null) {
1639
1851
  _queryParams["without_linked_to_plan"] = withoutLinkedToPlan.toString();
@@ -1651,9 +1863,9 @@ class Billing {
1651
1863
  _queryParams["offset"] = offset.toString();
1652
1864
  }
1653
1865
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1654
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/products"),
1866
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/products"),
1655
1867
  method: "GET",
1656
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1868
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1657
1869
  contentType: "application/json",
1658
1870
  queryParameters: _queryParams,
1659
1871
  requestType: "json",
@@ -1718,7 +1930,7 @@ class Billing {
1718
1930
  body: _response.error.rawBody,
1719
1931
  });
1720
1932
  case "timeout":
1721
- throw new errors.SchematicTimeoutError();
1933
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /billing/products.");
1722
1934
  case "unknown":
1723
1935
  throw new errors.SchematicError({
1724
1936
  message: _response.error.errorMessage,
@@ -1738,9 +1950,9 @@ class Billing {
1738
1950
  * @example
1739
1951
  * await client.billing.countBillingProducts()
1740
1952
  */
1741
- countBillingProducts(request = {}, requestOptions) {
1742
- var _a, _b;
1743
- return __awaiter(this, void 0, void 0, function* () {
1953
+ countBillingProducts() {
1954
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
1955
+ var _a, _b, _c;
1744
1956
  const { ids, name, q, priceUsageType, withoutLinkedToPlan, withZeroPrice, withPricesOnly, limit, offset } = request;
1745
1957
  const _queryParams = {};
1746
1958
  if (ids != null) {
@@ -1758,7 +1970,7 @@ class Billing {
1758
1970
  _queryParams["q"] = q;
1759
1971
  }
1760
1972
  if (priceUsageType != null) {
1761
- _queryParams["price_usage_type"] = priceUsageType;
1973
+ _queryParams["price_usage_type"] = serializers.CountBillingProductsRequestPriceUsageType.jsonOrThrow(priceUsageType, { unrecognizedObjectKeys: "strip" });
1762
1974
  }
1763
1975
  if (withoutLinkedToPlan != null) {
1764
1976
  _queryParams["without_linked_to_plan"] = withoutLinkedToPlan.toString();
@@ -1776,9 +1988,9 @@ class Billing {
1776
1988
  _queryParams["offset"] = offset.toString();
1777
1989
  }
1778
1990
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1779
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/products/count"),
1991
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/products/count"),
1780
1992
  method: "GET",
1781
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1993
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1782
1994
  contentType: "application/json",
1783
1995
  queryParameters: _queryParams,
1784
1996
  requestType: "json",
@@ -1843,7 +2055,7 @@ class Billing {
1843
2055
  body: _response.error.rawBody,
1844
2056
  });
1845
2057
  case "timeout":
1846
- throw new errors.SchematicTimeoutError();
2058
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /billing/products/count.");
1847
2059
  case "unknown":
1848
2060
  throw new errors.SchematicError({
1849
2061
  message: _response.error.errorMessage,
@@ -1862,6 +2074,7 @@ class Billing {
1862
2074
  *
1863
2075
  * @example
1864
2076
  * await client.billing.upsertBillingSubscription({
2077
+ * cancelAtPeriodEnd: true,
1865
2078
  * currency: "currency",
1866
2079
  * customerExternalId: "customer_external_id",
1867
2080
  * discounts: [{
@@ -1878,19 +2091,19 @@ class Billing {
1878
2091
  * priceExternalId: "price_external_id",
1879
2092
  * productExternalId: "product_external_id",
1880
2093
  * quantity: 1,
1881
- * usageType: "usage_type"
2094
+ * usageType: "licensed"
1882
2095
  * }],
1883
2096
  * subscriptionExternalId: "subscription_external_id",
1884
2097
  * totalPrice: 1
1885
2098
  * })
1886
2099
  */
1887
2100
  upsertBillingSubscription(request, requestOptions) {
1888
- var _a, _b;
1889
2101
  return __awaiter(this, void 0, void 0, function* () {
2102
+ var _a, _b, _c;
1890
2103
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1891
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/subscription/upsert"),
2104
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "billing/subscription/upsert"),
1892
2105
  method: "POST",
1893
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.8", "User-Agent": "@schematichq/schematic-typescript-node/1.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2106
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.10", "User-Agent": "@schematichq/schematic-typescript-node/1.1.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1894
2107
  contentType: "application/json",
1895
2108
  requestType: "json",
1896
2109
  body: serializers.CreateBillingSubscriptionsRequestBody.jsonOrThrow(request, {
@@ -1957,7 +2170,7 @@ class Billing {
1957
2170
  body: _response.error.rawBody,
1958
2171
  });
1959
2172
  case "timeout":
1960
- throw new errors.SchematicTimeoutError();
2173
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /billing/subscription/upsert.");
1961
2174
  case "unknown":
1962
2175
  throw new errors.SchematicError({
1963
2176
  message: _response.error.errorMessage,