@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) {
@@ -45,6 +55,7 @@ const Schematic = __importStar(require("../../../index"));
45
55
  const url_join_1 = __importDefault(require("url-join"));
46
56
  const serializers = __importStar(require("../../../../serialization/index"));
47
57
  const errors = __importStar(require("../../../../errors/index"));
58
+ const json_1 = require("../../../../core/json");
48
59
  class Entitlements {
49
60
  constructor(_options) {
50
61
  this._options = _options;
@@ -61,9 +72,9 @@ class Entitlements {
61
72
  * @example
62
73
  * await client.entitlements.listCompanyOverrides()
63
74
  */
64
- listCompanyOverrides(request = {}, requestOptions) {
65
- var _a, _b;
66
- return __awaiter(this, void 0, void 0, function* () {
75
+ listCompanyOverrides() {
76
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
77
+ var _a, _b, _c;
67
78
  const { companyId, companyIds, featureId, featureIds, ids, withoutExpired, q, limit, offset } = request;
68
79
  const _queryParams = {};
69
80
  if (companyId != null) {
@@ -109,9 +120,9 @@ class Entitlements {
109
120
  _queryParams["offset"] = offset.toString();
110
121
  }
111
122
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
112
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-overrides"),
123
+ 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, "company-overrides"),
113
124
  method: "GET",
114
- 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())),
125
+ 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),
115
126
  contentType: "application/json",
116
127
  queryParameters: _queryParams,
117
128
  requestType: "json",
@@ -176,7 +187,7 @@ class Entitlements {
176
187
  body: _response.error.rawBody,
177
188
  });
178
189
  case "timeout":
179
- throw new errors.SchematicTimeoutError();
190
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /company-overrides.");
180
191
  case "unknown":
181
192
  throw new errors.SchematicError({
182
193
  message: _response.error.errorMessage,
@@ -201,12 +212,12 @@ class Entitlements {
201
212
  * })
202
213
  */
203
214
  createCompanyOverride(request, requestOptions) {
204
- var _a, _b;
205
215
  return __awaiter(this, void 0, void 0, function* () {
216
+ var _a, _b, _c;
206
217
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
207
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-overrides"),
218
+ 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, "company-overrides"),
208
219
  method: "POST",
209
- 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())),
220
+ 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),
210
221
  contentType: "application/json",
211
222
  requestType: "json",
212
223
  body: serializers.CreateCompanyOverrideRequestBody.jsonOrThrow(request, {
@@ -273,7 +284,7 @@ class Entitlements {
273
284
  body: _response.error.rawBody,
274
285
  });
275
286
  case "timeout":
276
- throw new errors.SchematicTimeoutError();
287
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /company-overrides.");
277
288
  case "unknown":
278
289
  throw new errors.SchematicError({
279
290
  message: _response.error.errorMessage,
@@ -294,12 +305,12 @@ class Entitlements {
294
305
  * await client.entitlements.getCompanyOverride("company_override_id")
295
306
  */
296
307
  getCompanyOverride(companyOverrideId, requestOptions) {
297
- var _a, _b;
298
308
  return __awaiter(this, void 0, void 0, function* () {
309
+ var _a, _b, _c;
299
310
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
300
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `company-overrides/${encodeURIComponent(companyOverrideId)}`),
311
+ 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, `company-overrides/${encodeURIComponent(companyOverrideId)}`),
301
312
  method: "GET",
302
- 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())),
313
+ 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),
303
314
  contentType: "application/json",
304
315
  requestType: "json",
305
316
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -363,7 +374,7 @@ class Entitlements {
363
374
  body: _response.error.rawBody,
364
375
  });
365
376
  case "timeout":
366
- throw new errors.SchematicTimeoutError();
377
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /company-overrides/{company_override_id}.");
367
378
  case "unknown":
368
379
  throw new errors.SchematicError({
369
380
  message: _response.error.errorMessage,
@@ -388,12 +399,12 @@ class Entitlements {
388
399
  * })
389
400
  */
390
401
  updateCompanyOverride(companyOverrideId, request, requestOptions) {
391
- var _a, _b;
392
402
  return __awaiter(this, void 0, void 0, function* () {
403
+ var _a, _b, _c;
393
404
  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, `company-overrides/${encodeURIComponent(companyOverrideId)}`),
405
+ 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, `company-overrides/${encodeURIComponent(companyOverrideId)}`),
395
406
  method: "PUT",
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())),
407
+ 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
408
  contentType: "application/json",
398
409
  requestType: "json",
399
410
  body: serializers.UpdateCompanyOverrideRequestBody.jsonOrThrow(request, {
@@ -468,7 +479,7 @@ class Entitlements {
468
479
  body: _response.error.rawBody,
469
480
  });
470
481
  case "timeout":
471
- throw new errors.SchematicTimeoutError();
482
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /company-overrides/{company_override_id}.");
472
483
  case "unknown":
473
484
  throw new errors.SchematicError({
474
485
  message: _response.error.errorMessage,
@@ -489,12 +500,12 @@ class Entitlements {
489
500
  * await client.entitlements.deleteCompanyOverride("company_override_id")
490
501
  */
491
502
  deleteCompanyOverride(companyOverrideId, requestOptions) {
492
- var _a, _b;
493
503
  return __awaiter(this, void 0, void 0, function* () {
504
+ var _a, _b, _c;
494
505
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
495
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `company-overrides/${encodeURIComponent(companyOverrideId)}`),
506
+ 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, `company-overrides/${encodeURIComponent(companyOverrideId)}`),
496
507
  method: "DELETE",
497
- 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())),
508
+ 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),
498
509
  contentType: "application/json",
499
510
  requestType: "json",
500
511
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -558,7 +569,7 @@ class Entitlements {
558
569
  body: _response.error.rawBody,
559
570
  });
560
571
  case "timeout":
561
- throw new errors.SchematicTimeoutError();
572
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /company-overrides/{company_override_id}.");
562
573
  case "unknown":
563
574
  throw new errors.SchematicError({
564
575
  message: _response.error.errorMessage,
@@ -578,9 +589,9 @@ class Entitlements {
578
589
  * @example
579
590
  * await client.entitlements.countCompanyOverrides()
580
591
  */
581
- countCompanyOverrides(request = {}, requestOptions) {
582
- var _a, _b;
583
- return __awaiter(this, void 0, void 0, function* () {
592
+ countCompanyOverrides() {
593
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
594
+ var _a, _b, _c;
584
595
  const { companyId, companyIds, featureId, featureIds, ids, withoutExpired, q, limit, offset } = request;
585
596
  const _queryParams = {};
586
597
  if (companyId != null) {
@@ -626,9 +637,9 @@ class Entitlements {
626
637
  _queryParams["offset"] = offset.toString();
627
638
  }
628
639
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
629
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-overrides/count"),
640
+ 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, "company-overrides/count"),
630
641
  method: "GET",
631
- 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())),
642
+ 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),
632
643
  contentType: "application/json",
633
644
  queryParameters: _queryParams,
634
645
  requestType: "json",
@@ -693,7 +704,7 @@ class Entitlements {
693
704
  body: _response.error.rawBody,
694
705
  });
695
706
  case "timeout":
696
- throw new errors.SchematicTimeoutError();
707
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /company-overrides/count.");
697
708
  case "unknown":
698
709
  throw new errors.SchematicError({
699
710
  message: _response.error.errorMessage,
@@ -716,8 +727,8 @@ class Entitlements {
716
727
  * })
717
728
  */
718
729
  listFeatureCompanies(request, requestOptions) {
719
- var _a, _b;
720
730
  return __awaiter(this, void 0, void 0, function* () {
731
+ var _a, _b, _c;
721
732
  const { featureId, q, limit, offset } = request;
722
733
  const _queryParams = {};
723
734
  _queryParams["feature_id"] = featureId;
@@ -731,9 +742,9 @@ class Entitlements {
731
742
  _queryParams["offset"] = offset.toString();
732
743
  }
733
744
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
734
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-companies"),
745
+ 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, "feature-companies"),
735
746
  method: "GET",
736
- 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())),
747
+ 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),
737
748
  contentType: "application/json",
738
749
  queryParameters: _queryParams,
739
750
  requestType: "json",
@@ -798,7 +809,7 @@ class Entitlements {
798
809
  body: _response.error.rawBody,
799
810
  });
800
811
  case "timeout":
801
- throw new errors.SchematicTimeoutError();
812
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-companies.");
802
813
  case "unknown":
803
814
  throw new errors.SchematicError({
804
815
  message: _response.error.errorMessage,
@@ -821,8 +832,8 @@ class Entitlements {
821
832
  * })
822
833
  */
823
834
  countFeatureCompanies(request, requestOptions) {
824
- var _a, _b;
825
835
  return __awaiter(this, void 0, void 0, function* () {
836
+ var _a, _b, _c;
826
837
  const { featureId, q, limit, offset } = request;
827
838
  const _queryParams = {};
828
839
  _queryParams["feature_id"] = featureId;
@@ -836,9 +847,9 @@ class Entitlements {
836
847
  _queryParams["offset"] = offset.toString();
837
848
  }
838
849
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
839
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-companies/count"),
850
+ 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, "feature-companies/count"),
840
851
  method: "GET",
841
- 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())),
852
+ 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),
842
853
  contentType: "application/json",
843
854
  queryParameters: _queryParams,
844
855
  requestType: "json",
@@ -903,7 +914,7 @@ class Entitlements {
903
914
  body: _response.error.rawBody,
904
915
  });
905
916
  case "timeout":
906
- throw new errors.SchematicTimeoutError();
917
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-companies/count.");
907
918
  case "unknown":
908
919
  throw new errors.SchematicError({
909
920
  message: _response.error.errorMessage,
@@ -923,16 +934,16 @@ class Entitlements {
923
934
  * @example
924
935
  * await client.entitlements.listFeatureUsage()
925
936
  */
926
- listFeatureUsage(request = {}, requestOptions) {
927
- var _a, _b;
928
- return __awaiter(this, void 0, void 0, function* () {
937
+ listFeatureUsage() {
938
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
939
+ var _a, _b, _c;
929
940
  const { companyId, companyKeys, featureIds, q, withoutNegativeEntitlements, limit, offset } = request;
930
941
  const _queryParams = {};
931
942
  if (companyId != null) {
932
943
  _queryParams["company_id"] = companyId;
933
944
  }
934
945
  if (companyKeys != null) {
935
- _queryParams["company_keys"] = JSON.stringify(companyKeys);
946
+ _queryParams["company_keys"] = (0, json_1.toJson)(companyKeys);
936
947
  }
937
948
  if (featureIds != null) {
938
949
  if (Array.isArray(featureIds)) {
@@ -955,9 +966,9 @@ class Entitlements {
955
966
  _queryParams["offset"] = offset.toString();
956
967
  }
957
968
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
958
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-usage"),
969
+ 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, "feature-usage"),
959
970
  method: "GET",
960
- 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())),
971
+ 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),
961
972
  contentType: "application/json",
962
973
  queryParameters: _queryParams,
963
974
  requestType: "json",
@@ -1022,7 +1033,7 @@ class Entitlements {
1022
1033
  body: _response.error.rawBody,
1023
1034
  });
1024
1035
  case "timeout":
1025
- throw new errors.SchematicTimeoutError();
1036
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-usage.");
1026
1037
  case "unknown":
1027
1038
  throw new errors.SchematicError({
1028
1039
  message: _response.error.errorMessage,
@@ -1042,16 +1053,16 @@ class Entitlements {
1042
1053
  * @example
1043
1054
  * await client.entitlements.countFeatureUsage()
1044
1055
  */
1045
- countFeatureUsage(request = {}, requestOptions) {
1046
- var _a, _b;
1047
- return __awaiter(this, void 0, void 0, function* () {
1056
+ countFeatureUsage() {
1057
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
1058
+ var _a, _b, _c;
1048
1059
  const { companyId, companyKeys, featureIds, q, withoutNegativeEntitlements, limit, offset } = request;
1049
1060
  const _queryParams = {};
1050
1061
  if (companyId != null) {
1051
1062
  _queryParams["company_id"] = companyId;
1052
1063
  }
1053
1064
  if (companyKeys != null) {
1054
- _queryParams["company_keys"] = JSON.stringify(companyKeys);
1065
+ _queryParams["company_keys"] = (0, json_1.toJson)(companyKeys);
1055
1066
  }
1056
1067
  if (featureIds != null) {
1057
1068
  if (Array.isArray(featureIds)) {
@@ -1074,9 +1085,9 @@ class Entitlements {
1074
1085
  _queryParams["offset"] = offset.toString();
1075
1086
  }
1076
1087
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1077
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-usage/count"),
1088
+ 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, "feature-usage/count"),
1078
1089
  method: "GET",
1079
- 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())),
1090
+ 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),
1080
1091
  contentType: "application/json",
1081
1092
  queryParameters: _queryParams,
1082
1093
  requestType: "json",
@@ -1141,7 +1152,7 @@ class Entitlements {
1141
1152
  body: _response.error.rawBody,
1142
1153
  });
1143
1154
  case "timeout":
1144
- throw new errors.SchematicTimeoutError();
1155
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-usage/count.");
1145
1156
  case "unknown":
1146
1157
  throw new errors.SchematicError({
1147
1158
  message: _response.error.errorMessage,
@@ -1164,8 +1175,8 @@ class Entitlements {
1164
1175
  * })
1165
1176
  */
1166
1177
  listFeatureUsers(request, requestOptions) {
1167
- var _a, _b;
1168
1178
  return __awaiter(this, void 0, void 0, function* () {
1179
+ var _a, _b, _c;
1169
1180
  const { featureId, q, limit, offset } = request;
1170
1181
  const _queryParams = {};
1171
1182
  _queryParams["feature_id"] = featureId;
@@ -1179,9 +1190,9 @@ class Entitlements {
1179
1190
  _queryParams["offset"] = offset.toString();
1180
1191
  }
1181
1192
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1182
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-users"),
1193
+ 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, "feature-users"),
1183
1194
  method: "GET",
1184
- 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())),
1195
+ 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),
1185
1196
  contentType: "application/json",
1186
1197
  queryParameters: _queryParams,
1187
1198
  requestType: "json",
@@ -1246,7 +1257,7 @@ class Entitlements {
1246
1257
  body: _response.error.rawBody,
1247
1258
  });
1248
1259
  case "timeout":
1249
- throw new errors.SchematicTimeoutError();
1260
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-users.");
1250
1261
  case "unknown":
1251
1262
  throw new errors.SchematicError({
1252
1263
  message: _response.error.errorMessage,
@@ -1269,8 +1280,8 @@ class Entitlements {
1269
1280
  * })
1270
1281
  */
1271
1282
  countFeatureUsers(request, requestOptions) {
1272
- var _a, _b;
1273
1283
  return __awaiter(this, void 0, void 0, function* () {
1284
+ var _a, _b, _c;
1274
1285
  const { featureId, q, limit, offset } = request;
1275
1286
  const _queryParams = {};
1276
1287
  _queryParams["feature_id"] = featureId;
@@ -1284,9 +1295,9 @@ class Entitlements {
1284
1295
  _queryParams["offset"] = offset.toString();
1285
1296
  }
1286
1297
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1287
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-users/count"),
1298
+ 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, "feature-users/count"),
1288
1299
  method: "GET",
1289
- 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())),
1300
+ 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),
1290
1301
  contentType: "application/json",
1291
1302
  queryParameters: _queryParams,
1292
1303
  requestType: "json",
@@ -1351,7 +1362,7 @@ class Entitlements {
1351
1362
  body: _response.error.rawBody,
1352
1363
  });
1353
1364
  case "timeout":
1354
- throw new errors.SchematicTimeoutError();
1365
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-users/count.");
1355
1366
  case "unknown":
1356
1367
  throw new errors.SchematicError({
1357
1368
  message: _response.error.errorMessage,
@@ -1371,9 +1382,9 @@ class Entitlements {
1371
1382
  * @example
1372
1383
  * await client.entitlements.listPlanEntitlements()
1373
1384
  */
1374
- listPlanEntitlements(request = {}, requestOptions) {
1375
- var _a, _b;
1376
- return __awaiter(this, void 0, void 0, function* () {
1385
+ listPlanEntitlements() {
1386
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
1387
+ var _a, _b, _c;
1377
1388
  const { featureId, featureIds, ids, planId, planIds, q, withMeteredProducts, limit, offset } = request;
1378
1389
  const _queryParams = {};
1379
1390
  if (featureId != null) {
@@ -1419,9 +1430,9 @@ class Entitlements {
1419
1430
  _queryParams["offset"] = offset.toString();
1420
1431
  }
1421
1432
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1422
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plan-entitlements"),
1433
+ 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, "plan-entitlements"),
1423
1434
  method: "GET",
1424
- 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())),
1435
+ 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),
1425
1436
  contentType: "application/json",
1426
1437
  queryParameters: _queryParams,
1427
1438
  requestType: "json",
@@ -1486,7 +1497,7 @@ class Entitlements {
1486
1497
  body: _response.error.rawBody,
1487
1498
  });
1488
1499
  case "timeout":
1489
- throw new errors.SchematicTimeoutError();
1500
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /plan-entitlements.");
1490
1501
  case "unknown":
1491
1502
  throw new errors.SchematicError({
1492
1503
  message: _response.error.errorMessage,
@@ -1511,12 +1522,12 @@ class Entitlements {
1511
1522
  * })
1512
1523
  */
1513
1524
  createPlanEntitlement(request, requestOptions) {
1514
- var _a, _b;
1515
1525
  return __awaiter(this, void 0, void 0, function* () {
1526
+ var _a, _b, _c;
1516
1527
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1517
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plan-entitlements"),
1528
+ 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, "plan-entitlements"),
1518
1529
  method: "POST",
1519
- 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())),
1530
+ 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),
1520
1531
  contentType: "application/json",
1521
1532
  requestType: "json",
1522
1533
  body: serializers.CreatePlanEntitlementRequestBody.jsonOrThrow(request, {
@@ -1583,7 +1594,7 @@ class Entitlements {
1583
1594
  body: _response.error.rawBody,
1584
1595
  });
1585
1596
  case "timeout":
1586
- throw new errors.SchematicTimeoutError();
1597
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /plan-entitlements.");
1587
1598
  case "unknown":
1588
1599
  throw new errors.SchematicError({
1589
1600
  message: _response.error.errorMessage,
@@ -1604,12 +1615,12 @@ class Entitlements {
1604
1615
  * await client.entitlements.getPlanEntitlement("plan_entitlement_id")
1605
1616
  */
1606
1617
  getPlanEntitlement(planEntitlementId, requestOptions) {
1607
- var _a, _b;
1608
1618
  return __awaiter(this, void 0, void 0, function* () {
1619
+ var _a, _b, _c;
1609
1620
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1610
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-entitlements/${encodeURIComponent(planEntitlementId)}`),
1621
+ 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, `plan-entitlements/${encodeURIComponent(planEntitlementId)}`),
1611
1622
  method: "GET",
1612
- 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())),
1623
+ 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),
1613
1624
  contentType: "application/json",
1614
1625
  requestType: "json",
1615
1626
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1673,7 +1684,7 @@ class Entitlements {
1673
1684
  body: _response.error.rawBody,
1674
1685
  });
1675
1686
  case "timeout":
1676
- throw new errors.SchematicTimeoutError();
1687
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /plan-entitlements/{plan_entitlement_id}.");
1677
1688
  case "unknown":
1678
1689
  throw new errors.SchematicError({
1679
1690
  message: _response.error.errorMessage,
@@ -1698,12 +1709,12 @@ class Entitlements {
1698
1709
  * })
1699
1710
  */
1700
1711
  updatePlanEntitlement(planEntitlementId, request, requestOptions) {
1701
- var _a, _b;
1702
1712
  return __awaiter(this, void 0, void 0, function* () {
1713
+ var _a, _b, _c;
1703
1714
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1704
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-entitlements/${encodeURIComponent(planEntitlementId)}`),
1715
+ 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, `plan-entitlements/${encodeURIComponent(planEntitlementId)}`),
1705
1716
  method: "PUT",
1706
- 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())),
1717
+ 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),
1707
1718
  contentType: "application/json",
1708
1719
  requestType: "json",
1709
1720
  body: serializers.UpdatePlanEntitlementRequestBody.jsonOrThrow(request, {
@@ -1778,7 +1789,7 @@ class Entitlements {
1778
1789
  body: _response.error.rawBody,
1779
1790
  });
1780
1791
  case "timeout":
1781
- throw new errors.SchematicTimeoutError();
1792
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /plan-entitlements/{plan_entitlement_id}.");
1782
1793
  case "unknown":
1783
1794
  throw new errors.SchematicError({
1784
1795
  message: _response.error.errorMessage,
@@ -1799,12 +1810,12 @@ class Entitlements {
1799
1810
  * await client.entitlements.deletePlanEntitlement("plan_entitlement_id")
1800
1811
  */
1801
1812
  deletePlanEntitlement(planEntitlementId, requestOptions) {
1802
- var _a, _b;
1803
1813
  return __awaiter(this, void 0, void 0, function* () {
1814
+ var _a, _b, _c;
1804
1815
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1805
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-entitlements/${encodeURIComponent(planEntitlementId)}`),
1816
+ 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, `plan-entitlements/${encodeURIComponent(planEntitlementId)}`),
1806
1817
  method: "DELETE",
1807
- 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())),
1818
+ 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),
1808
1819
  contentType: "application/json",
1809
1820
  requestType: "json",
1810
1821
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1868,7 +1879,7 @@ class Entitlements {
1868
1879
  body: _response.error.rawBody,
1869
1880
  });
1870
1881
  case "timeout":
1871
- throw new errors.SchematicTimeoutError();
1882
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /plan-entitlements/{plan_entitlement_id}.");
1872
1883
  case "unknown":
1873
1884
  throw new errors.SchematicError({
1874
1885
  message: _response.error.errorMessage,
@@ -1888,9 +1899,9 @@ class Entitlements {
1888
1899
  * @example
1889
1900
  * await client.entitlements.countPlanEntitlements()
1890
1901
  */
1891
- countPlanEntitlements(request = {}, requestOptions) {
1892
- var _a, _b;
1893
- return __awaiter(this, void 0, void 0, function* () {
1902
+ countPlanEntitlements() {
1903
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
1904
+ var _a, _b, _c;
1894
1905
  const { featureId, featureIds, ids, planId, planIds, q, withMeteredProducts, limit, offset } = request;
1895
1906
  const _queryParams = {};
1896
1907
  if (featureId != null) {
@@ -1936,9 +1947,9 @@ class Entitlements {
1936
1947
  _queryParams["offset"] = offset.toString();
1937
1948
  }
1938
1949
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1939
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plan-entitlements/count"),
1950
+ 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, "plan-entitlements/count"),
1940
1951
  method: "GET",
1941
- 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())),
1952
+ 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),
1942
1953
  contentType: "application/json",
1943
1954
  queryParameters: _queryParams,
1944
1955
  requestType: "json",
@@ -2003,7 +2014,7 @@ class Entitlements {
2003
2014
  body: _response.error.rawBody,
2004
2015
  });
2005
2016
  case "timeout":
2006
- throw new errors.SchematicTimeoutError();
2017
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /plan-entitlements/count.");
2007
2018
  case "unknown":
2008
2019
  throw new errors.SchematicError({
2009
2020
  message: _response.error.errorMessage,
@@ -2030,15 +2041,15 @@ class Entitlements {
2030
2041
  * })
2031
2042
  */
2032
2043
  getFeatureUsageByCompany(request, requestOptions) {
2033
- var _a, _b;
2034
2044
  return __awaiter(this, void 0, void 0, function* () {
2045
+ var _a, _b, _c;
2035
2046
  const { keys } = request;
2036
2047
  const _queryParams = {};
2037
- _queryParams["keys"] = JSON.stringify(keys);
2048
+ _queryParams["keys"] = (0, json_1.toJson)(keys);
2038
2049
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2039
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "usage-by-company"),
2050
+ 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, "usage-by-company"),
2040
2051
  method: "GET",
2041
- 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())),
2052
+ 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),
2042
2053
  contentType: "application/json",
2043
2054
  queryParameters: _queryParams,
2044
2055
  requestType: "json",
@@ -2103,7 +2114,7 @@ class Entitlements {
2103
2114
  body: _response.error.rawBody,
2104
2115
  });
2105
2116
  case "timeout":
2106
- throw new errors.SchematicTimeoutError();
2117
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /usage-by-company.");
2107
2118
  case "unknown":
2108
2119
  throw new errors.SchematicError({
2109
2120
  message: _response.error.errorMessage,