@schematichq/schematic-typescript-node 1.1.9 → 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 (1587) 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 +71 -57
  124. package/api/resources/plans/types/CountPlansRequestPlanType.d.ts +1 -1
  125. package/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +1 -1
  126. package/api/resources/plans/types/CreatePlanRequestBodyPlanType.d.ts +1 -1
  127. package/api/resources/plans/types/ListPlansRequestPlanType.d.ts +1 -1
  128. package/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +1 -1
  129. package/api/resources/webhooks/client/Client.d.ts +4 -0
  130. package/api/resources/webhooks/client/Client.js +63 -53
  131. package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  132. package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  133. package/api/resources/webhooks/types/UpdateWebhookRequestBodyStatus.d.ts +1 -1
  134. package/api/types/BillingCouponResponseData.d.ts +0 -3
  135. package/api/types/BillingProductDetailResponseData.d.ts +1 -0
  136. package/api/types/BillingProductPricing.d.ts +2 -1
  137. package/api/types/BillingProductPricingUsageType.d.ts +8 -0
  138. package/api/types/BillingProductPricingUsageType.js +10 -0
  139. package/api/types/BillingSubscriptionResponseData.d.ts +3 -0
  140. package/api/types/BillingSubscriptionView.d.ts +3 -0
  141. package/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  142. package/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  143. package/api/types/CheckoutDataResponseData.d.ts +3 -1
  144. package/api/types/CompanyDetailResponseData.d.ts +1 -0
  145. package/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
  146. package/api/types/CompanySubscriptionResponseData.d.ts +2 -0
  147. package/api/types/ComponentCapabilities.d.ts +1 -0
  148. package/api/types/CreateBillingPriceTierRequestBody.d.ts +9 -0
  149. package/api/types/CreateBillingPriceTierRequestBody.js +5 -0
  150. package/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  151. package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
  152. package/api/types/CreateEntitlementReqCommonValueType.d.ts +1 -1
  153. package/api/types/CreateEventRequestBodyEventType.d.ts +1 -1
  154. package/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
  155. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  156. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  157. package/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
  158. package/api/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -1
  159. package/api/types/CustomPlanConfig.d.ts +8 -0
  160. package/api/types/CustomPlanConfig.js +5 -0
  161. package/api/types/CustomPlanViewConfigResponseData.d.ts +8 -0
  162. package/api/types/CustomPlanViewConfigResponseData.js +5 -0
  163. package/api/types/Decimal.d.ts +1 -1
  164. package/api/types/EntitlementsInPlan.d.ts +7 -0
  165. package/api/types/EntitlementsInPlan.js +5 -0
  166. package/api/types/EventBody.d.ts +1 -1
  167. package/api/types/FeatureCompanyResponseDataAllocationType.d.ts +1 -1
  168. package/api/types/FeatureCompanyUserResponseDataAllocationType.d.ts +1 -1
  169. package/api/types/FeatureDetailResponseData.d.ts +2 -0
  170. package/api/types/FeatureResponseData.d.ts +2 -0
  171. package/api/types/FeatureUsageResponseData.d.ts +2 -0
  172. package/api/types/FeatureUsageResponseDataAllocationType.d.ts +1 -1
  173. package/api/types/OrderedPlansInGroup.d.ts +8 -0
  174. package/api/types/OrderedPlansInGroup.js +5 -0
  175. package/api/types/PaymentMethodRequestBody.d.ts +0 -1
  176. package/api/types/PaymentMethodResponseData.d.ts +0 -1
  177. package/api/types/PlanEntitlementResponseData.d.ts +1 -0
  178. package/api/types/PlanEntitlementsOrder.d.ts +7 -0
  179. package/api/types/PlanEntitlementsOrder.js +5 -0
  180. package/api/types/PlanGroupDetailResponseData.d.ts +3 -0
  181. package/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
  182. package/api/types/PlanGroupPlanEntitlementsOrder.d.ts +8 -0
  183. package/api/types/PlanGroupPlanEntitlementsOrder.js +5 -0
  184. package/api/types/PlanGroupResponseData.d.ts +2 -1
  185. package/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  186. package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
  187. package/api/types/UpdateEntitlementReqCommonValueType.d.ts +1 -1
  188. package/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
  189. package/api/types/WebhookResponseData.d.ts +1 -0
  190. package/api/types/index.d.ts +8 -0
  191. package/api/types/index.js +8 -0
  192. package/core/fetcher/APIResponse.d.ts +1 -1
  193. package/core/fetcher/Fetcher.d.ts +2 -2
  194. package/core/fetcher/Fetcher.js +6 -5
  195. package/core/fetcher/Supplier.d.ts +1 -1
  196. package/core/fetcher/createRequestUrl.d.ts +1 -1
  197. package/core/fetcher/createRequestUrl.js +1 -2
  198. package/core/fetcher/custom.js +2 -2
  199. package/core/fetcher/getFetchFn.js +18 -9
  200. package/core/fetcher/getHeader.js +1 -2
  201. package/core/fetcher/getRequestBody.js +5 -5
  202. package/core/fetcher/getResponseBody.js +1 -2
  203. package/core/fetcher/makeRequest.d.ts +1 -1
  204. package/core/fetcher/requestWithRetries.js +4 -5
  205. package/core/fetcher/signals.d.ts +0 -1
  206. package/core/fetcher/signals.js +2 -3
  207. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
  208. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
  209. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
  210. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
  211. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
  212. package/core/index.js +17 -7
  213. package/core/json.d.ts +15 -0
  214. package/core/json.js +24 -0
  215. package/core/runtime/runtime.d.ts +1 -1
  216. package/core/runtime/runtime.js +51 -41
  217. package/core/schemas/Schema.d.ts +7 -5
  218. package/core/schemas/Schema.js +2 -0
  219. package/core/schemas/builders/bigint/bigint.d.ts +1 -1
  220. package/core/schemas/builders/bigint/bigint.js +22 -19
  221. package/core/schemas/builders/date/date.js +1 -2
  222. package/core/schemas/builders/enum/enum.js +1 -2
  223. package/core/schemas/builders/lazy/lazy.d.ts +1 -1
  224. package/core/schemas/builders/lazy/lazy.js +3 -4
  225. package/core/schemas/builders/lazy/lazyObject.js +1 -2
  226. package/core/schemas/builders/list/list.js +1 -2
  227. package/core/schemas/builders/literals/booleanLiteral.js +1 -2
  228. package/core/schemas/builders/literals/stringLiteral.js +1 -2
  229. package/core/schemas/builders/object/object.d.ts +1 -1
  230. package/core/schemas/builders/object/object.js +31 -3
  231. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
  232. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
  233. package/core/schemas/builders/object/property.js +2 -3
  234. package/core/schemas/builders/object/types.d.ts +16 -11
  235. package/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
  236. package/core/schemas/builders/object-like/types.d.ts +1 -1
  237. package/core/schemas/builders/record/record.js +2 -4
  238. package/core/schemas/builders/record/types.d.ts +2 -2
  239. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
  240. package/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
  241. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
  242. package/core/schemas/builders/set/set.js +1 -2
  243. package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
  244. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
  245. package/core/schemas/builders/union/discriminant.js +1 -2
  246. package/core/schemas/builders/union/types.d.ts +6 -6
  247. package/core/schemas/builders/union/union.d.ts +1 -1
  248. package/core/schemas/builders/union/union.js +1 -2
  249. package/core/schemas/utils/MaybePromise.d.ts +1 -1
  250. package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
  251. package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
  252. package/core/schemas/utils/entries.d.ts +1 -1
  253. package/core/schemas/utils/entries.js +1 -2
  254. package/core/schemas/utils/filterObject.d.ts +1 -1
  255. package/core/schemas/utils/filterObject.js +1 -2
  256. package/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
  257. package/core/schemas/utils/isPlainObject.js +1 -2
  258. package/core/schemas/utils/keys.d.ts +1 -1
  259. package/core/schemas/utils/keys.js +1 -2
  260. package/core/schemas/utils/maybeSkipValidation.js +1 -2
  261. package/core/schemas/utils/partition.js +1 -2
  262. package/dist/Client.d.ts +17 -13
  263. package/dist/api/errors/BadRequestError.js +17 -7
  264. package/dist/api/errors/ForbiddenError.js +17 -7
  265. package/dist/api/errors/InternalServerError.js +17 -7
  266. package/dist/api/errors/NotFoundError.js +17 -7
  267. package/dist/api/errors/UnauthorizedError.js +17 -7
  268. package/dist/api/resources/accesstokens/client/Client.d.ts +4 -0
  269. package/dist/api/resources/accesstokens/client/Client.js +21 -11
  270. package/dist/api/resources/accounts/client/Client.d.ts +4 -0
  271. package/dist/api/resources/accounts/client/Client.js +83 -73
  272. package/dist/api/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
  273. package/dist/api/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
  274. package/dist/api/resources/billing/client/Client.d.ts +38 -2
  275. package/dist/api/resources/billing/client/Client.js +318 -105
  276. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +2 -1
  277. package/dist/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
  278. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +10 -2
  279. package/dist/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -0
  280. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +6 -2
  281. package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
  282. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +2 -1
  283. package/dist/api/resources/billing/client/requests/ListCouponsRequest.d.ts +19 -0
  284. package/dist/api/resources/billing/client/requests/ListCouponsRequest.js +5 -0
  285. package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +0 -1
  286. package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +2 -1
  287. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +3 -1
  288. package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
  289. package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +2 -1
  290. package/dist/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +8 -0
  291. package/dist/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +10 -0
  292. package/dist/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
  293. package/dist/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +10 -0
  294. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +8 -0
  295. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +10 -0
  296. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +8 -0
  297. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +10 -0
  298. package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +8 -0
  299. package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +10 -0
  300. package/dist/api/resources/billing/types/DeleteBillingProductResponse.d.ts +9 -0
  301. package/dist/api/resources/billing/types/DeleteBillingProductResponse.js +5 -0
  302. package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +2 -1
  303. package/dist/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +8 -0
  304. package/dist/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +10 -0
  305. package/dist/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
  306. package/dist/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +10 -0
  307. package/dist/api/resources/billing/types/ListCouponsParams.d.ts +14 -0
  308. package/dist/api/resources/billing/types/ListCouponsParams.js +5 -0
  309. package/dist/api/resources/billing/types/ListCouponsResponse.d.ts +10 -0
  310. package/dist/api/resources/billing/types/ListCouponsResponse.js +5 -0
  311. package/dist/api/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
  312. package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +2 -1
  313. package/dist/api/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +8 -0
  314. package/dist/api/resources/billing/types/ListProductPricesRequestPriceUsageType.js +10 -0
  315. package/dist/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +8 -0
  316. package/dist/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +10 -0
  317. package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
  318. package/dist/api/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +8 -0
  319. package/dist/api/resources/billing/types/SearchBillingPricesRequestUsageType.js +10 -0
  320. package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +8 -0
  321. package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +10 -0
  322. package/dist/api/resources/billing/types/index.d.ts +14 -0
  323. package/dist/api/resources/billing/types/index.js +14 -0
  324. package/dist/api/resources/checkout/client/Client.d.ts +10 -4
  325. package/dist/api/resources/checkout/client/Client.js +49 -36
  326. package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
  327. package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.js +5 -0
  328. package/dist/api/resources/checkout/client/requests/index.d.ts +1 -0
  329. package/dist/api/resources/companies/client/Client.d.ts +4 -0
  330. package/dist/api/resources/companies/client/Client.js +172 -159
  331. package/dist/api/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
  332. package/dist/api/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
  333. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
  334. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
  335. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
  336. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
  337. package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.d.ts +1 -1
  338. package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
  339. package/dist/api/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
  340. package/dist/api/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
  341. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
  342. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
  343. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
  344. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
  345. package/dist/api/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
  346. package/dist/api/resources/components/client/Client.d.ts +4 -0
  347. package/dist/api/resources/components/client/Client.js +53 -43
  348. package/dist/api/resources/components/types/CreateComponentRequestBodyEntityType.d.ts +1 -1
  349. package/dist/api/resources/components/types/UpdateComponentRequestBodyEntityType.d.ts +1 -1
  350. package/dist/api/resources/components/types/UpdateComponentRequestBodyState.d.ts +1 -1
  351. package/dist/api/resources/crm/client/Client.d.ts +4 -0
  352. package/dist/api/resources/crm/client/Client.js +39 -29
  353. package/dist/api/resources/entitlements/client/Client.d.ts +4 -0
  354. package/dist/api/resources/entitlements/client/Client.js +109 -98
  355. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  356. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
  357. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  358. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  359. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +1 -1
  360. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  361. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  362. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +1 -1
  363. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  364. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  365. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +1 -1
  366. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  367. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  368. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +1 -1
  369. package/dist/api/resources/events/client/Client.d.ts +4 -0
  370. package/dist/api/resources/events/client/Client.js +45 -35
  371. package/dist/api/resources/features/client/Client.d.ts +4 -0
  372. package/dist/api/resources/features/client/Client.js +103 -93
  373. package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  374. package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  375. package/dist/api/resources/features/types/CreateFeatureRequestBodyFeatureType.d.ts +1 -1
  376. package/dist/api/resources/features/types/UpdateFeatureRequestBodyFeatureType.d.ts +1 -1
  377. package/dist/api/resources/index.js +17 -7
  378. package/dist/api/resources/plangroups/client/Client.d.ts +10 -2
  379. package/dist/api/resources/plangroups/client/Client.js +35 -21
  380. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +7 -2
  381. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +7 -2
  382. package/dist/api/resources/plans/client/Client.d.ts +4 -0
  383. package/dist/api/resources/plans/client/Client.js +71 -57
  384. package/dist/api/resources/plans/types/CountPlansRequestPlanType.d.ts +1 -1
  385. package/dist/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +1 -1
  386. package/dist/api/resources/plans/types/CreatePlanRequestBodyPlanType.d.ts +1 -1
  387. package/dist/api/resources/plans/types/ListPlansRequestPlanType.d.ts +1 -1
  388. package/dist/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +1 -1
  389. package/dist/api/resources/webhooks/client/Client.d.ts +4 -0
  390. package/dist/api/resources/webhooks/client/Client.js +63 -53
  391. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  392. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  393. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyStatus.d.ts +1 -1
  394. package/dist/api/types/BillingCouponResponseData.d.ts +0 -3
  395. package/dist/api/types/BillingProductDetailResponseData.d.ts +1 -0
  396. package/dist/api/types/BillingProductPricing.d.ts +2 -1
  397. package/dist/api/types/BillingProductPricingUsageType.d.ts +8 -0
  398. package/dist/api/types/BillingProductPricingUsageType.js +10 -0
  399. package/dist/api/types/BillingSubscriptionResponseData.d.ts +3 -0
  400. package/dist/api/types/BillingSubscriptionView.d.ts +3 -0
  401. package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  402. package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  403. package/dist/api/types/CheckoutDataResponseData.d.ts +3 -1
  404. package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
  405. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
  406. package/dist/api/types/CompanySubscriptionResponseData.d.ts +2 -0
  407. package/dist/api/types/ComponentCapabilities.d.ts +1 -0
  408. package/dist/api/types/CreateBillingPriceTierRequestBody.d.ts +9 -0
  409. package/dist/api/types/CreateBillingPriceTierRequestBody.js +5 -0
  410. package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  411. package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
  412. package/dist/api/types/CreateEntitlementReqCommonValueType.d.ts +1 -1
  413. package/dist/api/types/CreateEventRequestBodyEventType.d.ts +1 -1
  414. package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
  415. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  416. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  417. package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
  418. package/dist/api/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -1
  419. package/dist/api/types/CustomPlanConfig.d.ts +8 -0
  420. package/dist/api/types/CustomPlanConfig.js +5 -0
  421. package/dist/api/types/CustomPlanViewConfigResponseData.d.ts +8 -0
  422. package/dist/api/types/CustomPlanViewConfigResponseData.js +5 -0
  423. package/dist/api/types/Decimal.d.ts +1 -1
  424. package/dist/api/types/EntitlementsInPlan.d.ts +7 -0
  425. package/dist/api/types/EntitlementsInPlan.js +5 -0
  426. package/dist/api/types/EventBody.d.ts +1 -1
  427. package/dist/api/types/FeatureCompanyResponseDataAllocationType.d.ts +1 -1
  428. package/dist/api/types/FeatureCompanyUserResponseDataAllocationType.d.ts +1 -1
  429. package/dist/api/types/FeatureDetailResponseData.d.ts +2 -0
  430. package/dist/api/types/FeatureResponseData.d.ts +2 -0
  431. package/dist/api/types/FeatureUsageResponseData.d.ts +2 -0
  432. package/dist/api/types/FeatureUsageResponseDataAllocationType.d.ts +1 -1
  433. package/dist/api/types/OrderedPlansInGroup.d.ts +8 -0
  434. package/dist/api/types/OrderedPlansInGroup.js +5 -0
  435. package/dist/api/types/PaymentMethodRequestBody.d.ts +0 -1
  436. package/dist/api/types/PaymentMethodResponseData.d.ts +0 -1
  437. package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -0
  438. package/dist/api/types/PlanEntitlementsOrder.d.ts +7 -0
  439. package/dist/api/types/PlanEntitlementsOrder.js +5 -0
  440. package/dist/api/types/PlanGroupDetailResponseData.d.ts +3 -0
  441. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
  442. package/dist/api/types/PlanGroupPlanEntitlementsOrder.d.ts +8 -0
  443. package/dist/api/types/PlanGroupPlanEntitlementsOrder.js +5 -0
  444. package/dist/api/types/PlanGroupResponseData.d.ts +2 -1
  445. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  446. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
  447. package/dist/api/types/UpdateEntitlementReqCommonValueType.d.ts +1 -1
  448. package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
  449. package/dist/api/types/WebhookResponseData.d.ts +1 -0
  450. package/dist/api/types/index.d.ts +8 -0
  451. package/dist/api/types/index.js +8 -0
  452. package/dist/core/fetcher/APIResponse.d.ts +1 -1
  453. package/dist/core/fetcher/Fetcher.d.ts +2 -2
  454. package/dist/core/fetcher/Fetcher.js +6 -5
  455. package/dist/core/fetcher/Supplier.d.ts +1 -1
  456. package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
  457. package/dist/core/fetcher/createRequestUrl.js +1 -2
  458. package/dist/core/fetcher/custom.js +2 -2
  459. package/dist/core/fetcher/getFetchFn.js +18 -9
  460. package/dist/core/fetcher/getHeader.js +1 -2
  461. package/dist/core/fetcher/getRequestBody.js +5 -5
  462. package/dist/core/fetcher/getResponseBody.js +1 -2
  463. package/dist/core/fetcher/makeRequest.d.ts +1 -1
  464. package/dist/core/fetcher/requestWithRetries.js +4 -5
  465. package/dist/core/fetcher/signals.d.ts +0 -1
  466. package/dist/core/fetcher/signals.js +2 -3
  467. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
  468. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
  469. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
  470. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
  471. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
  472. package/dist/core/index.js +17 -7
  473. package/dist/core/json.d.ts +15 -0
  474. package/dist/core/json.js +24 -0
  475. package/dist/core/runtime/runtime.d.ts +1 -1
  476. package/dist/core/runtime/runtime.js +51 -41
  477. package/dist/core/schemas/Schema.d.ts +7 -5
  478. package/dist/core/schemas/Schema.js +2 -0
  479. package/dist/core/schemas/builders/bigint/bigint.d.ts +1 -1
  480. package/dist/core/schemas/builders/bigint/bigint.js +22 -19
  481. package/dist/core/schemas/builders/date/date.js +1 -2
  482. package/dist/core/schemas/builders/enum/enum.js +1 -2
  483. package/dist/core/schemas/builders/lazy/lazy.d.ts +1 -1
  484. package/dist/core/schemas/builders/lazy/lazy.js +3 -4
  485. package/dist/core/schemas/builders/lazy/lazyObject.js +1 -2
  486. package/dist/core/schemas/builders/list/list.js +1 -2
  487. package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
  488. package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
  489. package/dist/core/schemas/builders/object/object.d.ts +1 -1
  490. package/dist/core/schemas/builders/object/object.js +31 -3
  491. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
  492. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
  493. package/dist/core/schemas/builders/object/property.js +2 -3
  494. package/dist/core/schemas/builders/object/types.d.ts +16 -11
  495. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
  496. package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
  497. package/dist/core/schemas/builders/record/record.js +2 -4
  498. package/dist/core/schemas/builders/record/types.d.ts +2 -2
  499. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
  500. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
  501. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
  502. package/dist/core/schemas/builders/set/set.js +1 -2
  503. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
  504. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
  505. package/dist/core/schemas/builders/union/discriminant.js +1 -2
  506. package/dist/core/schemas/builders/union/types.d.ts +6 -6
  507. package/dist/core/schemas/builders/union/union.d.ts +1 -1
  508. package/dist/core/schemas/builders/union/union.js +1 -2
  509. package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
  510. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
  511. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
  512. package/dist/core/schemas/utils/entries.d.ts +1 -1
  513. package/dist/core/schemas/utils/entries.js +1 -2
  514. package/dist/core/schemas/utils/filterObject.d.ts +1 -1
  515. package/dist/core/schemas/utils/filterObject.js +1 -2
  516. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
  517. package/dist/core/schemas/utils/isPlainObject.js +1 -2
  518. package/dist/core/schemas/utils/keys.d.ts +1 -1
  519. package/dist/core/schemas/utils/keys.js +1 -2
  520. package/dist/core/schemas/utils/maybeSkipValidation.js +1 -2
  521. package/dist/core/schemas/utils/partition.js +1 -2
  522. package/dist/environments.d.ts +1 -1
  523. package/dist/errors/SchematicError.js +2 -1
  524. package/dist/errors/SchematicTimeoutError.d.ts +1 -1
  525. package/dist/errors/SchematicTimeoutError.js +2 -2
  526. package/dist/events.test.js +1 -1
  527. package/dist/index.d.ts +1 -0
  528. package/dist/index.js +26 -8
  529. package/dist/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +17 -7
  530. package/dist/serialization/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.js +17 -7
  531. package/dist/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.js +17 -7
  532. package/dist/serialization/resources/accounts/client/requests/CreateEnvironmentRequestBody.js +17 -7
  533. package/dist/serialization/resources/accounts/client/requests/UpdateApiKeyRequestBody.js +17 -7
  534. package/dist/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.js +17 -7
  535. package/dist/serialization/resources/accounts/types/CountApiKeysParams.js +17 -7
  536. package/dist/serialization/resources/accounts/types/CountApiKeysResponse.js +17 -7
  537. package/dist/serialization/resources/accounts/types/CountApiRequestsParams.js +17 -7
  538. package/dist/serialization/resources/accounts/types/CountApiRequestsResponse.js +17 -7
  539. package/dist/serialization/resources/accounts/types/CreateApiKeyResponse.js +17 -7
  540. package/dist/serialization/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.js +17 -7
  541. package/dist/serialization/resources/accounts/types/CreateEnvironmentResponse.js +17 -7
  542. package/dist/serialization/resources/accounts/types/DeleteApiKeyResponse.js +17 -7
  543. package/dist/serialization/resources/accounts/types/DeleteEnvironmentResponse.js +17 -7
  544. package/dist/serialization/resources/accounts/types/GetApiKeyResponse.js +17 -7
  545. package/dist/serialization/resources/accounts/types/GetApiRequestResponse.js +17 -7
  546. package/dist/serialization/resources/accounts/types/GetEnvironmentResponse.js +17 -7
  547. package/dist/serialization/resources/accounts/types/ListApiKeysParams.js +17 -7
  548. package/dist/serialization/resources/accounts/types/ListApiKeysResponse.js +17 -7
  549. package/dist/serialization/resources/accounts/types/ListApiRequestsParams.js +17 -7
  550. package/dist/serialization/resources/accounts/types/ListApiRequestsResponse.js +17 -7
  551. package/dist/serialization/resources/accounts/types/ListEnvironmentsParams.js +17 -7
  552. package/dist/serialization/resources/accounts/types/ListEnvironmentsResponse.js +17 -7
  553. package/dist/serialization/resources/accounts/types/UpdateApiKeyResponse.js +17 -7
  554. package/dist/serialization/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.js +17 -7
  555. package/dist/serialization/resources/accounts/types/UpdateEnvironmentResponse.js +17 -7
  556. package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
  557. package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.js +18 -7
  558. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +7 -1
  559. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +24 -8
  560. package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -0
  561. package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +18 -7
  562. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +5 -1
  563. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +22 -8
  564. package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +17 -7
  565. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +17 -7
  566. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +17 -7
  567. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
  568. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +17 -8
  569. package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +2 -1
  570. package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +19 -8
  571. package/dist/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +10 -0
  572. package/dist/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +41 -0
  573. package/dist/serialization/resources/billing/types/CountBillingProductsResponse.js +17 -7
  574. package/dist/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
  575. package/dist/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +41 -0
  576. package/dist/serialization/resources/billing/types/CountCustomersParams.js +17 -7
  577. package/dist/serialization/resources/billing/types/CountCustomersResponse.js +17 -7
  578. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +10 -0
  579. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +41 -0
  580. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +10 -0
  581. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +41 -0
  582. package/dist/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +10 -0
  583. package/dist/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +41 -0
  584. package/dist/serialization/resources/billing/types/DeleteBillingProductResponse.d.ts +14 -0
  585. package/dist/serialization/resources/billing/types/DeleteBillingProductResponse.js +45 -0
  586. package/dist/serialization/resources/billing/types/DeleteProductPriceResponse.js +17 -7
  587. package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +2 -1
  588. package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +19 -8
  589. package/dist/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +10 -0
  590. package/dist/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +41 -0
  591. package/dist/serialization/resources/billing/types/ListBillingProductsResponse.js +17 -7
  592. package/dist/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
  593. package/dist/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +41 -0
  594. package/dist/serialization/resources/billing/types/ListCouponsParams.d.ts +15 -0
  595. package/dist/serialization/resources/billing/types/ListCouponsParams.js +46 -0
  596. package/dist/serialization/resources/billing/types/ListCouponsResponse.d.ts +15 -0
  597. package/dist/serialization/resources/billing/types/ListCouponsResponse.js +46 -0
  598. package/dist/serialization/resources/billing/types/ListCustomersParams.js +17 -7
  599. package/dist/serialization/resources/billing/types/ListCustomersResponse.js +17 -7
  600. package/dist/serialization/resources/billing/types/ListInvoicesParams.js +17 -7
  601. package/dist/serialization/resources/billing/types/ListInvoicesResponse.js +17 -7
  602. package/dist/serialization/resources/billing/types/ListMetersParams.js +17 -7
  603. package/dist/serialization/resources/billing/types/ListMetersResponse.js +17 -7
  604. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
  605. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.js +17 -8
  606. package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.js +17 -7
  607. package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +2 -1
  608. package/dist/serialization/resources/billing/types/ListProductPricesParams.js +19 -8
  609. package/dist/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +10 -0
  610. package/dist/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.js +41 -0
  611. package/dist/serialization/resources/billing/types/ListProductPricesResponse.js +17 -7
  612. package/dist/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +10 -0
  613. package/dist/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +41 -0
  614. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
  615. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +20 -8
  616. package/dist/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +10 -0
  617. package/dist/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.js +41 -0
  618. package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.js +17 -7
  619. package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +10 -0
  620. package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +41 -0
  621. package/dist/serialization/resources/billing/types/UpsertBillingCouponResponse.js +17 -7
  622. package/dist/serialization/resources/billing/types/UpsertBillingCustomerResponse.js +17 -7
  623. package/dist/serialization/resources/billing/types/UpsertBillingMeterResponse.js +17 -7
  624. package/dist/serialization/resources/billing/types/UpsertBillingPriceResponse.js +17 -7
  625. package/dist/serialization/resources/billing/types/UpsertBillingProductResponse.js +17 -7
  626. package/dist/serialization/resources/billing/types/UpsertBillingSubscriptionResponse.js +17 -7
  627. package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.js +17 -7
  628. package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +17 -7
  629. package/dist/serialization/resources/billing/types/index.d.ts +14 -0
  630. package/dist/serialization/resources/billing/types/index.js +14 -0
  631. package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
  632. package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.js +44 -0
  633. package/dist/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +17 -7
  634. package/dist/serialization/resources/checkout/client/requests/index.d.ts +1 -0
  635. package/dist/serialization/resources/checkout/client/requests/index.js +3 -1
  636. package/dist/serialization/resources/checkout/types/CheckoutInternalResponse.js +17 -7
  637. package/dist/serialization/resources/checkout/types/GetCheckoutDataResponse.js +17 -7
  638. package/dist/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +17 -7
  639. package/dist/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +17 -7
  640. package/dist/serialization/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.js +17 -7
  641. package/dist/serialization/resources/companies/client/requests/GetOrCreateCompanyMembershipRequestBody.js +17 -7
  642. package/dist/serialization/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.js +17 -7
  643. package/dist/serialization/resources/companies/types/CountCompaniesParams.js +17 -7
  644. package/dist/serialization/resources/companies/types/CountCompaniesResponse.js +17 -7
  645. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsParams.js +17 -7
  646. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.js +17 -7
  647. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsResponse.js +17 -7
  648. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
  649. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsParams.js +17 -7
  650. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.js +17 -7
  651. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.js +17 -7
  652. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponse.js +17 -7
  653. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
  654. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
  655. package/dist/serialization/resources/companies/types/CountUsersParams.js +17 -7
  656. package/dist/serialization/resources/companies/types/CountUsersResponse.js +17 -7
  657. package/dist/serialization/resources/companies/types/CreateCompanyResponse.js +17 -7
  658. package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.js +17 -7
  659. package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
  660. package/dist/serialization/resources/companies/types/CreateUserResponse.js +17 -7
  661. package/dist/serialization/resources/companies/types/DeleteCompanyByKeysResponse.js +17 -7
  662. package/dist/serialization/resources/companies/types/DeleteCompanyMembershipResponse.js +17 -7
  663. package/dist/serialization/resources/companies/types/DeleteCompanyResponse.js +17 -7
  664. package/dist/serialization/resources/companies/types/DeleteUserByKeysResponse.js +17 -7
  665. package/dist/serialization/resources/companies/types/DeleteUserResponse.js +17 -7
  666. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +17 -7
  667. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionResponse.js +17 -7
  668. package/dist/serialization/resources/companies/types/GetActiveDealsParams.js +17 -7
  669. package/dist/serialization/resources/companies/types/GetActiveDealsResponse.js +17 -7
  670. package/dist/serialization/resources/companies/types/GetCompanyResponse.js +17 -7
  671. package/dist/serialization/resources/companies/types/GetEntityTraitDefinitionResponse.js +17 -7
  672. package/dist/serialization/resources/companies/types/GetEntityTraitValuesParams.js +17 -7
  673. package/dist/serialization/resources/companies/types/GetEntityTraitValuesResponse.js +17 -7
  674. package/dist/serialization/resources/companies/types/GetOrCreateCompanyMembershipResponse.js +17 -7
  675. package/dist/serialization/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.js +17 -7
  676. package/dist/serialization/resources/companies/types/GetUserResponse.js +17 -7
  677. package/dist/serialization/resources/companies/types/ListCompaniesParams.js +17 -7
  678. package/dist/serialization/resources/companies/types/ListCompaniesResponse.js +17 -7
  679. package/dist/serialization/resources/companies/types/ListCompanyMembershipsParams.js +17 -7
  680. package/dist/serialization/resources/companies/types/ListCompanyMembershipsResponse.js +17 -7
  681. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsParams.js +17 -7
  682. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.js +17 -7
  683. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsResponse.js +17 -7
  684. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
  685. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsParams.js +17 -7
  686. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.js +17 -7
  687. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.js +17 -7
  688. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponse.js +17 -7
  689. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
  690. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
  691. package/dist/serialization/resources/companies/types/ListUsersParams.js +17 -7
  692. package/dist/serialization/resources/companies/types/ListUsersResponse.js +17 -7
  693. package/dist/serialization/resources/companies/types/LookupCompanyParams.js +17 -7
  694. package/dist/serialization/resources/companies/types/LookupCompanyResponse.js +17 -7
  695. package/dist/serialization/resources/companies/types/LookupUserParams.js +17 -7
  696. package/dist/serialization/resources/companies/types/LookupUserResponse.js +17 -7
  697. package/dist/serialization/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
  698. package/dist/serialization/resources/companies/types/UpdateEntityTraitDefinitionResponse.js +17 -7
  699. package/dist/serialization/resources/companies/types/UpsertCompanyResponse.js +17 -7
  700. package/dist/serialization/resources/companies/types/UpsertCompanyTraitResponse.js +17 -7
  701. package/dist/serialization/resources/companies/types/UpsertUserResponse.js +17 -7
  702. package/dist/serialization/resources/companies/types/UpsertUserTraitResponse.js +17 -7
  703. package/dist/serialization/resources/components/client/requests/CreateComponentRequestBody.js +17 -7
  704. package/dist/serialization/resources/components/client/requests/UpdateComponentRequestBody.js +17 -7
  705. package/dist/serialization/resources/components/types/CountComponentsParams.js +17 -7
  706. package/dist/serialization/resources/components/types/CountComponentsResponse.js +17 -7
  707. package/dist/serialization/resources/components/types/CreateComponentRequestBodyEntityType.js +17 -7
  708. package/dist/serialization/resources/components/types/CreateComponentResponse.js +17 -7
  709. package/dist/serialization/resources/components/types/DeleteComponentResponse.js +17 -7
  710. package/dist/serialization/resources/components/types/GetComponentResponse.js +17 -7
  711. package/dist/serialization/resources/components/types/ListComponentsParams.js +17 -7
  712. package/dist/serialization/resources/components/types/ListComponentsResponse.js +17 -7
  713. package/dist/serialization/resources/components/types/PreviewComponentDataParams.js +17 -7
  714. package/dist/serialization/resources/components/types/PreviewComponentDataResponse.js +17 -7
  715. package/dist/serialization/resources/components/types/UpdateComponentRequestBodyEntityType.js +17 -7
  716. package/dist/serialization/resources/components/types/UpdateComponentRequestBodyState.js +17 -7
  717. package/dist/serialization/resources/components/types/UpdateComponentResponse.js +17 -7
  718. package/dist/serialization/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.js +17 -7
  719. package/dist/serialization/resources/crm/client/requests/CreateCrmDealRequestBody.js +17 -7
  720. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +17 -7
  721. package/dist/serialization/resources/crm/client/requests/CreateCrmProductRequestBody.js +17 -7
  722. package/dist/serialization/resources/crm/types/ListCrmProductsParams.js +17 -7
  723. package/dist/serialization/resources/crm/types/ListCrmProductsResponse.js +17 -7
  724. package/dist/serialization/resources/crm/types/UpsertCrmDealResponse.js +17 -7
  725. package/dist/serialization/resources/crm/types/UpsertCrmProductResponse.js +17 -7
  726. package/dist/serialization/resources/crm/types/UpsertDealLineItemAssociationResponse.js +17 -7
  727. package/dist/serialization/resources/crm/types/UpsertLineItemResponse.js +17 -7
  728. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +17 -7
  729. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  730. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +18 -7
  731. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +17 -7
  732. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
  733. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +18 -7
  734. package/dist/serialization/resources/entitlements/types/CountCompanyOverridesParams.js +17 -7
  735. package/dist/serialization/resources/entitlements/types/CountCompanyOverridesResponse.js +17 -7
  736. package/dist/serialization/resources/entitlements/types/CountFeatureCompaniesParams.js +17 -7
  737. package/dist/serialization/resources/entitlements/types/CountFeatureCompaniesResponse.js +17 -7
  738. package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.js +17 -7
  739. package/dist/serialization/resources/entitlements/types/CountFeatureUsageResponse.js +17 -7
  740. package/dist/serialization/resources/entitlements/types/CountFeatureUsersParams.js +17 -7
  741. package/dist/serialization/resources/entitlements/types/CountFeatureUsersResponse.js +17 -7
  742. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +17 -7
  743. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsResponse.js +17 -7
  744. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
  745. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
  746. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +17 -7
  747. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideResponse.js +17 -7
  748. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
  749. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
  750. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +17 -7
  751. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementResponse.js +17 -7
  752. package/dist/serialization/resources/entitlements/types/DeleteCompanyOverrideResponse.js +17 -7
  753. package/dist/serialization/resources/entitlements/types/DeletePlanEntitlementResponse.js +17 -7
  754. package/dist/serialization/resources/entitlements/types/GetCompanyOverrideResponse.js +17 -7
  755. package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +17 -7
  756. package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyResponse.js +17 -7
  757. package/dist/serialization/resources/entitlements/types/GetPlanEntitlementResponse.js +17 -7
  758. package/dist/serialization/resources/entitlements/types/ListCompanyOverridesParams.js +17 -7
  759. package/dist/serialization/resources/entitlements/types/ListCompanyOverridesResponse.js +17 -7
  760. package/dist/serialization/resources/entitlements/types/ListFeatureCompaniesParams.js +17 -7
  761. package/dist/serialization/resources/entitlements/types/ListFeatureCompaniesResponse.js +17 -7
  762. package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.js +17 -7
  763. package/dist/serialization/resources/entitlements/types/ListFeatureUsageResponse.js +17 -7
  764. package/dist/serialization/resources/entitlements/types/ListFeatureUsersParams.js +17 -7
  765. package/dist/serialization/resources/entitlements/types/ListFeatureUsersResponse.js +17 -7
  766. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +17 -7
  767. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsResponse.js +17 -7
  768. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
  769. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
  770. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +17 -7
  771. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideResponse.js +17 -7
  772. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
  773. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
  774. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +17 -7
  775. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementResponse.js +17 -7
  776. package/dist/serialization/resources/events/client/requests/CreateEventBatchRequestBody.js +17 -7
  777. package/dist/serialization/resources/events/types/CreateEventBatchResponse.js +17 -7
  778. package/dist/serialization/resources/events/types/CreateEventResponse.js +17 -7
  779. package/dist/serialization/resources/events/types/GetEventResponse.js +17 -7
  780. package/dist/serialization/resources/events/types/GetEventSummariesParams.js +17 -7
  781. package/dist/serialization/resources/events/types/GetEventSummariesResponse.js +17 -7
  782. package/dist/serialization/resources/events/types/GetSegmentIntegrationStatusResponse.js +17 -7
  783. package/dist/serialization/resources/events/types/ListEventsParams.js +17 -7
  784. package/dist/serialization/resources/events/types/ListEventsResponse.js +17 -7
  785. package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  786. package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +19 -7
  787. package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  788. package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +19 -7
  789. package/dist/serialization/resources/features/client/requests/UpdateFlagRulesRequestBody.js +17 -7
  790. package/dist/serialization/resources/features/types/CheckFlagResponse.js +17 -7
  791. package/dist/serialization/resources/features/types/CheckFlagsResponse.js +17 -7
  792. package/dist/serialization/resources/features/types/CountAudienceCompaniesResponse.js +17 -7
  793. package/dist/serialization/resources/features/types/CountAudienceUsersResponse.js +17 -7
  794. package/dist/serialization/resources/features/types/CountFeaturesParams.js +17 -7
  795. package/dist/serialization/resources/features/types/CountFeaturesResponse.js +17 -7
  796. package/dist/serialization/resources/features/types/CountFlagsParams.js +17 -7
  797. package/dist/serialization/resources/features/types/CountFlagsResponse.js +17 -7
  798. package/dist/serialization/resources/features/types/CreateFeatureRequestBodyFeatureType.js +17 -7
  799. package/dist/serialization/resources/features/types/CreateFeatureResponse.js +17 -7
  800. package/dist/serialization/resources/features/types/CreateFlagResponse.js +17 -7
  801. package/dist/serialization/resources/features/types/DeleteFeatureResponse.js +17 -7
  802. package/dist/serialization/resources/features/types/DeleteFlagResponse.js +17 -7
  803. package/dist/serialization/resources/features/types/GetFeatureResponse.js +17 -7
  804. package/dist/serialization/resources/features/types/GetFlagResponse.js +17 -7
  805. package/dist/serialization/resources/features/types/ListAudienceCompaniesResponse.js +17 -7
  806. package/dist/serialization/resources/features/types/ListAudienceUsersResponse.js +17 -7
  807. package/dist/serialization/resources/features/types/ListFeaturesParams.js +17 -7
  808. package/dist/serialization/resources/features/types/ListFeaturesResponse.js +17 -7
  809. package/dist/serialization/resources/features/types/ListFlagsParams.js +17 -7
  810. package/dist/serialization/resources/features/types/ListFlagsResponse.js +17 -7
  811. package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyFeatureType.js +17 -7
  812. package/dist/serialization/resources/features/types/UpdateFeatureResponse.js +17 -7
  813. package/dist/serialization/resources/features/types/UpdateFlagResponse.js +17 -7
  814. package/dist/serialization/resources/features/types/UpdateFlagRulesResponse.js +17 -7
  815. package/dist/serialization/resources/index.js +17 -7
  816. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +5 -1
  817. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +22 -8
  818. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +5 -1
  819. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +22 -8
  820. package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +17 -7
  821. package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.js +17 -7
  822. package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +17 -7
  823. package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +17 -7
  824. package/dist/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.js +17 -7
  825. package/dist/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +17 -7
  826. package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +17 -7
  827. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +17 -7
  828. package/dist/serialization/resources/plans/types/CountPlansParams.js +17 -7
  829. package/dist/serialization/resources/plans/types/CountPlansRequestPlanType.js +17 -7
  830. package/dist/serialization/resources/plans/types/CountPlansResponse.js +17 -7
  831. package/dist/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +17 -7
  832. package/dist/serialization/resources/plans/types/CreatePlanRequestBodyPlanType.js +17 -7
  833. package/dist/serialization/resources/plans/types/CreatePlanResponse.js +17 -7
  834. package/dist/serialization/resources/plans/types/DeleteAudienceResponse.js +17 -7
  835. package/dist/serialization/resources/plans/types/DeletePlanResponse.js +17 -7
  836. package/dist/serialization/resources/plans/types/GetAudienceResponse.js +17 -7
  837. package/dist/serialization/resources/plans/types/GetPlanResponse.js +17 -7
  838. package/dist/serialization/resources/plans/types/ListPlansParams.js +17 -7
  839. package/dist/serialization/resources/plans/types/ListPlansRequestPlanType.js +17 -7
  840. package/dist/serialization/resources/plans/types/ListPlansResponse.js +17 -7
  841. package/dist/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +17 -7
  842. package/dist/serialization/resources/plans/types/UpdateAudienceResponse.js +17 -7
  843. package/dist/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +17 -7
  844. package/dist/serialization/resources/plans/types/UpdatePlanResponse.js +17 -7
  845. package/dist/serialization/resources/plans/types/UpsertBillingProductPlanResponse.js +17 -7
  846. package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +17 -7
  847. package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +17 -7
  848. package/dist/serialization/resources/webhooks/types/CountWebhookEventsParams.js +17 -7
  849. package/dist/serialization/resources/webhooks/types/CountWebhookEventsResponse.js +17 -7
  850. package/dist/serialization/resources/webhooks/types/CountWebhooksParams.js +17 -7
  851. package/dist/serialization/resources/webhooks/types/CountWebhooksResponse.js +17 -7
  852. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +17 -7
  853. package/dist/serialization/resources/webhooks/types/CreateWebhookResponse.js +17 -7
  854. package/dist/serialization/resources/webhooks/types/DeleteWebhookResponse.js +17 -7
  855. package/dist/serialization/resources/webhooks/types/GetWebhookEventResponse.js +17 -7
  856. package/dist/serialization/resources/webhooks/types/GetWebhookResponse.js +17 -7
  857. package/dist/serialization/resources/webhooks/types/ListWebhookEventsParams.js +17 -7
  858. package/dist/serialization/resources/webhooks/types/ListWebhookEventsResponse.js +17 -7
  859. package/dist/serialization/resources/webhooks/types/ListWebhooksParams.js +17 -7
  860. package/dist/serialization/resources/webhooks/types/ListWebhooksResponse.js +17 -7
  861. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +17 -7
  862. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyStatus.js +17 -7
  863. package/dist/serialization/resources/webhooks/types/UpdateWebhookResponse.js +17 -7
  864. package/dist/serialization/types/ApiError.js +17 -7
  865. package/dist/serialization/types/ApiKeyCreateResponseData.js +17 -7
  866. package/dist/serialization/types/ApiKeyRequestListResponseData.js +17 -7
  867. package/dist/serialization/types/ApiKeyRequestResponseData.js +17 -7
  868. package/dist/serialization/types/ApiKeyResponseData.js +17 -7
  869. package/dist/serialization/types/AudienceRequestBody.js +17 -7
  870. package/dist/serialization/types/BillingCouponResponseData.js +17 -7
  871. package/dist/serialization/types/BillingCustomerResponseData.js +17 -7
  872. package/dist/serialization/types/BillingCustomerSubscription.js +17 -7
  873. package/dist/serialization/types/BillingCustomerWithSubscriptionsResponseData.js +17 -7
  874. package/dist/serialization/types/BillingMeterResponseData.js +17 -7
  875. package/dist/serialization/types/BillingPriceResponseData.js +17 -7
  876. package/dist/serialization/types/BillingPriceView.js +17 -7
  877. package/dist/serialization/types/BillingProductDetailResponseData.d.ts +1 -0
  878. package/dist/serialization/types/BillingProductDetailResponseData.js +18 -7
  879. package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +17 -7
  880. package/dist/serialization/types/BillingProductPlanResponseData.js +17 -7
  881. package/dist/serialization/types/BillingProductPriceResponseData.js +17 -7
  882. package/dist/serialization/types/BillingProductPricing.d.ts +2 -1
  883. package/dist/serialization/types/BillingProductPricing.js +19 -8
  884. package/dist/serialization/types/BillingProductPricingUsageType.d.ts +10 -0
  885. package/dist/serialization/types/BillingProductPricingUsageType.js +41 -0
  886. package/dist/serialization/types/BillingProductResponseData.js +17 -7
  887. package/dist/serialization/types/BillingSubscriptionDiscount.js +17 -7
  888. package/dist/serialization/types/BillingSubscriptionDiscountView.js +17 -7
  889. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +3 -0
  890. package/dist/serialization/types/BillingSubscriptionResponseData.js +20 -7
  891. package/dist/serialization/types/BillingSubscriptionView.d.ts +3 -0
  892. package/dist/serialization/types/BillingSubscriptionView.js +20 -7
  893. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  894. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.js +18 -7
  895. package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  896. package/dist/serialization/types/ChangeSubscriptionRequestBody.js +18 -7
  897. package/dist/serialization/types/CheckFlagRequestBody.js +17 -7
  898. package/dist/serialization/types/CheckFlagResponseData.js +17 -7
  899. package/dist/serialization/types/CheckFlagsResponseData.js +17 -7
  900. package/dist/serialization/types/CheckoutDataResponseData.d.ts +2 -0
  901. package/dist/serialization/types/CheckoutDataResponseData.js +19 -7
  902. package/dist/serialization/types/CompanyCrmDealsResponseData.js +17 -7
  903. package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -0
  904. package/dist/serialization/types/CompanyDetailResponseData.js +19 -7
  905. package/dist/serialization/types/CompanyEventPeriodMetricsResponseData.js +17 -7
  906. package/dist/serialization/types/CompanyMembershipDetailResponseData.js +17 -7
  907. package/dist/serialization/types/CompanyMembershipResponseData.js +17 -7
  908. package/dist/serialization/types/CompanyOverrideResponseData.js +17 -7
  909. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
  910. package/dist/serialization/types/CompanyPlanDetailResponseData.js +21 -7
  911. package/dist/serialization/types/CompanyPlanWithBillingSubView.js +17 -7
  912. package/dist/serialization/types/CompanyResponseData.js +17 -7
  913. package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +2 -0
  914. package/dist/serialization/types/CompanySubscriptionResponseData.js +19 -7
  915. package/dist/serialization/types/ComponentCapabilities.d.ts +1 -0
  916. package/dist/serialization/types/ComponentCapabilities.js +18 -7
  917. package/dist/serialization/types/ComponentHydrateResponseData.js +17 -7
  918. package/dist/serialization/types/ComponentPreviewResponseData.js +17 -7
  919. package/dist/serialization/types/ComponentResponseData.js +17 -7
  920. package/dist/serialization/types/CountResponse.js +17 -7
  921. package/dist/serialization/types/CouponRequestBody.js +17 -7
  922. package/dist/serialization/types/CreateBillingPriceTierRequestBody.d.ts +15 -0
  923. package/dist/serialization/types/CreateBillingPriceTierRequestBody.js +46 -0
  924. package/dist/serialization/types/CreateEntitlementReqCommon.js +17 -7
  925. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +17 -7
  926. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
  927. package/dist/serialization/types/CreateEntitlementReqCommonValueType.js +17 -7
  928. package/dist/serialization/types/CreateEventRequestBody.js +17 -7
  929. package/dist/serialization/types/CreateEventRequestBodyEventType.js +17 -7
  930. package/dist/serialization/types/CreateFlagRequestBody.js +17 -7
  931. package/dist/serialization/types/CreateOrUpdateConditionGroupRequestBody.js +17 -7
  932. package/dist/serialization/types/CreateOrUpdateConditionRequestBody.js +17 -7
  933. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +17 -7
  934. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +17 -7
  935. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +17 -7
  936. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +17 -7
  937. package/dist/serialization/types/CreateOrUpdateFlagRequestBody.js +17 -7
  938. package/dist/serialization/types/CreateOrUpdateRuleRequestBody.js +17 -7
  939. package/dist/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.js +17 -7
  940. package/dist/serialization/types/CrmDealLineItem.js +17 -7
  941. package/dist/serialization/types/CrmDealResponseData.js +17 -7
  942. package/dist/serialization/types/CrmLineItemResponseData.js +17 -7
  943. package/dist/serialization/types/CrmProductResponseData.js +17 -7
  944. package/dist/serialization/types/CustomPlanConfig.d.ts +14 -0
  945. package/dist/serialization/types/CustomPlanConfig.js +45 -0
  946. package/dist/serialization/types/CustomPlanViewConfigResponseData.d.ts +14 -0
  947. package/dist/serialization/types/CustomPlanViewConfigResponseData.js +45 -0
  948. package/dist/serialization/types/Decimal.js +17 -7
  949. package/dist/serialization/types/DeleteResponse.js +17 -7
  950. package/dist/serialization/types/EntitlementsInPlan.d.ts +13 -0
  951. package/dist/serialization/types/EntitlementsInPlan.js +44 -0
  952. package/dist/serialization/types/EntityKeyDefinitionResponseData.js +17 -7
  953. package/dist/serialization/types/EntityKeyDetailResponseData.js +17 -7
  954. package/dist/serialization/types/EntityKeyResponseData.js +17 -7
  955. package/dist/serialization/types/EntityTraitDefinitionResponseData.js +17 -7
  956. package/dist/serialization/types/EntityTraitDetailResponseData.js +17 -7
  957. package/dist/serialization/types/EntityTraitResponseData.js +17 -7
  958. package/dist/serialization/types/EntityTraitValue.js +17 -7
  959. package/dist/serialization/types/EnvironmentDetailResponseData.js +17 -7
  960. package/dist/serialization/types/EnvironmentResponseData.js +17 -7
  961. package/dist/serialization/types/EventBody.js +17 -7
  962. package/dist/serialization/types/EventBodyFlagCheck.js +17 -7
  963. package/dist/serialization/types/EventBodyIdentify.js +17 -7
  964. package/dist/serialization/types/EventBodyIdentifyCompany.js +17 -7
  965. package/dist/serialization/types/EventBodyTrack.js +17 -7
  966. package/dist/serialization/types/EventDetailResponseData.js +17 -7
  967. package/dist/serialization/types/EventResponseData.js +17 -7
  968. package/dist/serialization/types/EventSummaryResponseData.js +17 -7
  969. package/dist/serialization/types/FeatureCompanyResponseData.js +17 -7
  970. package/dist/serialization/types/FeatureCompanyResponseDataAllocationType.js +17 -7
  971. package/dist/serialization/types/FeatureCompanyUserResponseData.js +17 -7
  972. package/dist/serialization/types/FeatureCompanyUserResponseDataAllocationType.js +17 -7
  973. package/dist/serialization/types/FeatureDetailResponseData.d.ts +2 -0
  974. package/dist/serialization/types/FeatureDetailResponseData.js +19 -7
  975. package/dist/serialization/types/FeatureResponseData.d.ts +2 -0
  976. package/dist/serialization/types/FeatureResponseData.js +19 -7
  977. package/dist/serialization/types/FeatureUsageDetailResponseData.js +17 -7
  978. package/dist/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  979. package/dist/serialization/types/FeatureUsageResponseData.js +18 -7
  980. package/dist/serialization/types/FeatureUsageResponseDataAllocationType.js +17 -7
  981. package/dist/serialization/types/FlagDetailResponseData.js +17 -7
  982. package/dist/serialization/types/FlagResponseData.js +17 -7
  983. package/dist/serialization/types/GenericPreviewObject.js +17 -7
  984. package/dist/serialization/types/InvoiceRequestBody.js +17 -7
  985. package/dist/serialization/types/InvoiceResponseData.js +17 -7
  986. package/dist/serialization/types/IssueTemporaryAccessTokenResponseData.js +17 -7
  987. package/dist/serialization/types/KeysRequestBody.js +17 -7
  988. package/dist/serialization/types/MeterRequestBody.js +17 -7
  989. package/dist/serialization/types/OrderedPlansInGroup.d.ts +14 -0
  990. package/dist/serialization/types/OrderedPlansInGroup.js +45 -0
  991. package/dist/serialization/types/PaginationFilter.js +17 -7
  992. package/dist/serialization/types/PaymentMethodRequestBody.d.ts +0 -1
  993. package/dist/serialization/types/PaymentMethodRequestBody.js +17 -8
  994. package/dist/serialization/types/PaymentMethodResponseData.d.ts +0 -1
  995. package/dist/serialization/types/PaymentMethodResponseData.js +17 -8
  996. package/dist/serialization/types/PlanAudienceDetailResponseData.js +17 -7
  997. package/dist/serialization/types/PlanAudienceResponseData.js +17 -7
  998. package/dist/serialization/types/PlanDetailResponseData.js +17 -7
  999. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
  1000. package/dist/serialization/types/PlanEntitlementResponseData.js +18 -7
  1001. package/dist/serialization/types/PlanEntitlementsOrder.d.ts +13 -0
  1002. package/dist/serialization/types/PlanEntitlementsOrder.js +44 -0
  1003. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +5 -0
  1004. package/dist/serialization/types/PlanGroupDetailResponseData.js +22 -7
  1005. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  1006. package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +20 -7
  1007. package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.d.ts +14 -0
  1008. package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.js +45 -0
  1009. package/dist/serialization/types/PlanGroupResponseData.d.ts +2 -1
  1010. package/dist/serialization/types/PlanGroupResponseData.js +19 -8
  1011. package/dist/serialization/types/PlanResponseData.js +17 -7
  1012. package/dist/serialization/types/PreviewObject.js +17 -7
  1013. package/dist/serialization/types/PreviewObjectResponseData.js +17 -7
  1014. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +17 -7
  1015. package/dist/serialization/types/RawEventBatchResponseData.js +17 -7
  1016. package/dist/serialization/types/RawEventResponseData.js +17 -7
  1017. package/dist/serialization/types/RuleConditionDetailResponseData.js +17 -7
  1018. package/dist/serialization/types/RuleConditionGroupDetailResponseData.js +17 -7
  1019. package/dist/serialization/types/RuleConditionGroupResponseData.js +17 -7
  1020. package/dist/serialization/types/RuleConditionResponseData.js +17 -7
  1021. package/dist/serialization/types/RuleDetailResponseData.js +17 -7
  1022. package/dist/serialization/types/RuleResponseData.js +17 -7
  1023. package/dist/serialization/types/RulesDetailResponseData.js +17 -7
  1024. package/dist/serialization/types/SegmentStatusResp.js +17 -7
  1025. package/dist/serialization/types/StripeEmbedInfo.js +17 -7
  1026. package/dist/serialization/types/TemporaryAccessTokenResponseData.js +17 -7
  1027. package/dist/serialization/types/UpdateAddOnRequestBody.js +17 -7
  1028. package/dist/serialization/types/UpdateEntitlementReqCommon.js +17 -7
  1029. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +17 -7
  1030. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
  1031. package/dist/serialization/types/UpdateEntitlementReqCommonValueType.js +17 -7
  1032. package/dist/serialization/types/UpdatePayInAdvanceRequestBody.js +17 -7
  1033. package/dist/serialization/types/UpdateRuleRequestBody.js +17 -7
  1034. package/dist/serialization/types/UpsertCompanyRequestBody.js +17 -7
  1035. package/dist/serialization/types/UpsertTraitRequestBody.js +17 -7
  1036. package/dist/serialization/types/UpsertUserRequestBody.js +17 -7
  1037. package/dist/serialization/types/UpsertUserSubRequestBody.js +17 -7
  1038. package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
  1039. package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +18 -7
  1040. package/dist/serialization/types/UsageBasedEntitlementResponseData.js +17 -7
  1041. package/dist/serialization/types/UserDetailResponseData.js +17 -7
  1042. package/dist/serialization/types/UserResponseData.js +17 -7
  1043. package/dist/serialization/types/WebhookEventDetailResponseData.js +17 -7
  1044. package/dist/serialization/types/WebhookEventResponseData.js +17 -7
  1045. package/dist/serialization/types/WebhookResponseData.d.ts +1 -0
  1046. package/dist/serialization/types/WebhookResponseData.js +18 -7
  1047. package/dist/serialization/types/index.d.ts +8 -0
  1048. package/dist/serialization/types/index.js +8 -0
  1049. package/dist/webhooks.d.ts +76 -0
  1050. package/dist/webhooks.js +170 -0
  1051. package/environments.d.ts +1 -1
  1052. package/errors/SchematicError.js +2 -1
  1053. package/errors/SchematicTimeoutError.d.ts +1 -1
  1054. package/errors/SchematicTimeoutError.js +2 -2
  1055. package/events.test.js +1 -1
  1056. package/index.d.ts +1 -0
  1057. package/index.js +26 -8
  1058. package/{jest.config.js → jest.config.mjs} +4 -1
  1059. package/package.json +16 -15
  1060. package/reference.md +121 -7
  1061. package/scripts/rename-to-esm-files.js +115 -0
  1062. package/scripts/webhook-test-server/README.md +24 -0
  1063. package/scripts/webhook-test-server/package-lock.json +196 -0
  1064. package/scripts/webhook-test-server/package.json +13 -0
  1065. package/scripts/webhook-test-server/webhook-test-server.ts +100 -0
  1066. package/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +17 -7
  1067. package/serialization/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.js +17 -7
  1068. package/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.js +17 -7
  1069. package/serialization/resources/accounts/client/requests/CreateEnvironmentRequestBody.js +17 -7
  1070. package/serialization/resources/accounts/client/requests/UpdateApiKeyRequestBody.js +17 -7
  1071. package/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.js +17 -7
  1072. package/serialization/resources/accounts/types/CountApiKeysParams.js +17 -7
  1073. package/serialization/resources/accounts/types/CountApiKeysResponse.js +17 -7
  1074. package/serialization/resources/accounts/types/CountApiRequestsParams.js +17 -7
  1075. package/serialization/resources/accounts/types/CountApiRequestsResponse.js +17 -7
  1076. package/serialization/resources/accounts/types/CreateApiKeyResponse.js +17 -7
  1077. package/serialization/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.js +17 -7
  1078. package/serialization/resources/accounts/types/CreateEnvironmentResponse.js +17 -7
  1079. package/serialization/resources/accounts/types/DeleteApiKeyResponse.js +17 -7
  1080. package/serialization/resources/accounts/types/DeleteEnvironmentResponse.js +17 -7
  1081. package/serialization/resources/accounts/types/GetApiKeyResponse.js +17 -7
  1082. package/serialization/resources/accounts/types/GetApiRequestResponse.js +17 -7
  1083. package/serialization/resources/accounts/types/GetEnvironmentResponse.js +17 -7
  1084. package/serialization/resources/accounts/types/ListApiKeysParams.js +17 -7
  1085. package/serialization/resources/accounts/types/ListApiKeysResponse.js +17 -7
  1086. package/serialization/resources/accounts/types/ListApiRequestsParams.js +17 -7
  1087. package/serialization/resources/accounts/types/ListApiRequestsResponse.js +17 -7
  1088. package/serialization/resources/accounts/types/ListEnvironmentsParams.js +17 -7
  1089. package/serialization/resources/accounts/types/ListEnvironmentsResponse.js +17 -7
  1090. package/serialization/resources/accounts/types/UpdateApiKeyResponse.js +17 -7
  1091. package/serialization/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.js +17 -7
  1092. package/serialization/resources/accounts/types/UpdateEnvironmentResponse.js +17 -7
  1093. package/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
  1094. package/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.js +18 -7
  1095. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +7 -1
  1096. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +24 -8
  1097. package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -0
  1098. package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +18 -7
  1099. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +5 -1
  1100. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +22 -8
  1101. package/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +17 -7
  1102. package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +17 -7
  1103. package/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +17 -7
  1104. package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
  1105. package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +17 -8
  1106. package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +2 -1
  1107. package/serialization/resources/billing/types/CountBillingProductsParams.js +19 -8
  1108. package/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +10 -0
  1109. package/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +41 -0
  1110. package/serialization/resources/billing/types/CountBillingProductsResponse.js +17 -7
  1111. package/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
  1112. package/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +41 -0
  1113. package/serialization/resources/billing/types/CountCustomersParams.js +17 -7
  1114. package/serialization/resources/billing/types/CountCustomersResponse.js +17 -7
  1115. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +10 -0
  1116. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +41 -0
  1117. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +10 -0
  1118. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +41 -0
  1119. package/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +10 -0
  1120. package/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +41 -0
  1121. package/serialization/resources/billing/types/DeleteBillingProductResponse.d.ts +14 -0
  1122. package/serialization/resources/billing/types/DeleteBillingProductResponse.js +45 -0
  1123. package/serialization/resources/billing/types/DeleteProductPriceResponse.js +17 -7
  1124. package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +2 -1
  1125. package/serialization/resources/billing/types/ListBillingProductsParams.js +19 -8
  1126. package/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +10 -0
  1127. package/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +41 -0
  1128. package/serialization/resources/billing/types/ListBillingProductsResponse.js +17 -7
  1129. package/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
  1130. package/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +41 -0
  1131. package/serialization/resources/billing/types/ListCouponsParams.d.ts +15 -0
  1132. package/serialization/resources/billing/types/ListCouponsParams.js +46 -0
  1133. package/serialization/resources/billing/types/ListCouponsResponse.d.ts +15 -0
  1134. package/serialization/resources/billing/types/ListCouponsResponse.js +46 -0
  1135. package/serialization/resources/billing/types/ListCustomersParams.js +17 -7
  1136. package/serialization/resources/billing/types/ListCustomersResponse.js +17 -7
  1137. package/serialization/resources/billing/types/ListInvoicesParams.js +17 -7
  1138. package/serialization/resources/billing/types/ListInvoicesResponse.js +17 -7
  1139. package/serialization/resources/billing/types/ListMetersParams.js +17 -7
  1140. package/serialization/resources/billing/types/ListMetersResponse.js +17 -7
  1141. package/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
  1142. package/serialization/resources/billing/types/ListPaymentMethodsParams.js +17 -8
  1143. package/serialization/resources/billing/types/ListPaymentMethodsResponse.js +17 -7
  1144. package/serialization/resources/billing/types/ListProductPricesParams.d.ts +2 -1
  1145. package/serialization/resources/billing/types/ListProductPricesParams.js +19 -8
  1146. package/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +10 -0
  1147. package/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.js +41 -0
  1148. package/serialization/resources/billing/types/ListProductPricesResponse.js +17 -7
  1149. package/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +10 -0
  1150. package/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +41 -0
  1151. package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
  1152. package/serialization/resources/billing/types/SearchBillingPricesParams.js +20 -8
  1153. package/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +10 -0
  1154. package/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.js +41 -0
  1155. package/serialization/resources/billing/types/SearchBillingPricesResponse.js +17 -7
  1156. package/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +10 -0
  1157. package/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +41 -0
  1158. package/serialization/resources/billing/types/UpsertBillingCouponResponse.js +17 -7
  1159. package/serialization/resources/billing/types/UpsertBillingCustomerResponse.js +17 -7
  1160. package/serialization/resources/billing/types/UpsertBillingMeterResponse.js +17 -7
  1161. package/serialization/resources/billing/types/UpsertBillingPriceResponse.js +17 -7
  1162. package/serialization/resources/billing/types/UpsertBillingProductResponse.js +17 -7
  1163. package/serialization/resources/billing/types/UpsertBillingSubscriptionResponse.js +17 -7
  1164. package/serialization/resources/billing/types/UpsertInvoiceResponse.js +17 -7
  1165. package/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +17 -7
  1166. package/serialization/resources/billing/types/index.d.ts +14 -0
  1167. package/serialization/resources/billing/types/index.js +14 -0
  1168. package/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
  1169. package/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.js +44 -0
  1170. package/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +17 -7
  1171. package/serialization/resources/checkout/client/requests/index.d.ts +1 -0
  1172. package/serialization/resources/checkout/client/requests/index.js +3 -1
  1173. package/serialization/resources/checkout/types/CheckoutInternalResponse.js +17 -7
  1174. package/serialization/resources/checkout/types/GetCheckoutDataResponse.js +17 -7
  1175. package/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +17 -7
  1176. package/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +17 -7
  1177. package/serialization/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.js +17 -7
  1178. package/serialization/resources/companies/client/requests/GetOrCreateCompanyMembershipRequestBody.js +17 -7
  1179. package/serialization/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.js +17 -7
  1180. package/serialization/resources/companies/types/CountCompaniesParams.js +17 -7
  1181. package/serialization/resources/companies/types/CountCompaniesResponse.js +17 -7
  1182. package/serialization/resources/companies/types/CountEntityKeyDefinitionsParams.js +17 -7
  1183. package/serialization/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.js +17 -7
  1184. package/serialization/resources/companies/types/CountEntityKeyDefinitionsResponse.js +17 -7
  1185. package/serialization/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
  1186. package/serialization/resources/companies/types/CountEntityTraitDefinitionsParams.js +17 -7
  1187. package/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.js +17 -7
  1188. package/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.js +17 -7
  1189. package/serialization/resources/companies/types/CountEntityTraitDefinitionsResponse.js +17 -7
  1190. package/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
  1191. package/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
  1192. package/serialization/resources/companies/types/CountUsersParams.js +17 -7
  1193. package/serialization/resources/companies/types/CountUsersResponse.js +17 -7
  1194. package/serialization/resources/companies/types/CreateCompanyResponse.js +17 -7
  1195. package/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.js +17 -7
  1196. package/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
  1197. package/serialization/resources/companies/types/CreateUserResponse.js +17 -7
  1198. package/serialization/resources/companies/types/DeleteCompanyByKeysResponse.js +17 -7
  1199. package/serialization/resources/companies/types/DeleteCompanyMembershipResponse.js +17 -7
  1200. package/serialization/resources/companies/types/DeleteCompanyResponse.js +17 -7
  1201. package/serialization/resources/companies/types/DeleteUserByKeysResponse.js +17 -7
  1202. package/serialization/resources/companies/types/DeleteUserResponse.js +17 -7
  1203. package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +17 -7
  1204. package/serialization/resources/companies/types/GetActiveCompanySubscriptionResponse.js +17 -7
  1205. package/serialization/resources/companies/types/GetActiveDealsParams.js +17 -7
  1206. package/serialization/resources/companies/types/GetActiveDealsResponse.js +17 -7
  1207. package/serialization/resources/companies/types/GetCompanyResponse.js +17 -7
  1208. package/serialization/resources/companies/types/GetEntityTraitDefinitionResponse.js +17 -7
  1209. package/serialization/resources/companies/types/GetEntityTraitValuesParams.js +17 -7
  1210. package/serialization/resources/companies/types/GetEntityTraitValuesResponse.js +17 -7
  1211. package/serialization/resources/companies/types/GetOrCreateCompanyMembershipResponse.js +17 -7
  1212. package/serialization/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.js +17 -7
  1213. package/serialization/resources/companies/types/GetUserResponse.js +17 -7
  1214. package/serialization/resources/companies/types/ListCompaniesParams.js +17 -7
  1215. package/serialization/resources/companies/types/ListCompaniesResponse.js +17 -7
  1216. package/serialization/resources/companies/types/ListCompanyMembershipsParams.js +17 -7
  1217. package/serialization/resources/companies/types/ListCompanyMembershipsResponse.js +17 -7
  1218. package/serialization/resources/companies/types/ListEntityKeyDefinitionsParams.js +17 -7
  1219. package/serialization/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.js +17 -7
  1220. package/serialization/resources/companies/types/ListEntityKeyDefinitionsResponse.js +17 -7
  1221. package/serialization/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
  1222. package/serialization/resources/companies/types/ListEntityTraitDefinitionsParams.js +17 -7
  1223. package/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.js +17 -7
  1224. package/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.js +17 -7
  1225. package/serialization/resources/companies/types/ListEntityTraitDefinitionsResponse.js +17 -7
  1226. package/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
  1227. package/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
  1228. package/serialization/resources/companies/types/ListUsersParams.js +17 -7
  1229. package/serialization/resources/companies/types/ListUsersResponse.js +17 -7
  1230. package/serialization/resources/companies/types/LookupCompanyParams.js +17 -7
  1231. package/serialization/resources/companies/types/LookupCompanyResponse.js +17 -7
  1232. package/serialization/resources/companies/types/LookupUserParams.js +17 -7
  1233. package/serialization/resources/companies/types/LookupUserResponse.js +17 -7
  1234. package/serialization/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
  1235. package/serialization/resources/companies/types/UpdateEntityTraitDefinitionResponse.js +17 -7
  1236. package/serialization/resources/companies/types/UpsertCompanyResponse.js +17 -7
  1237. package/serialization/resources/companies/types/UpsertCompanyTraitResponse.js +17 -7
  1238. package/serialization/resources/companies/types/UpsertUserResponse.js +17 -7
  1239. package/serialization/resources/companies/types/UpsertUserTraitResponse.js +17 -7
  1240. package/serialization/resources/components/client/requests/CreateComponentRequestBody.js +17 -7
  1241. package/serialization/resources/components/client/requests/UpdateComponentRequestBody.js +17 -7
  1242. package/serialization/resources/components/types/CountComponentsParams.js +17 -7
  1243. package/serialization/resources/components/types/CountComponentsResponse.js +17 -7
  1244. package/serialization/resources/components/types/CreateComponentRequestBodyEntityType.js +17 -7
  1245. package/serialization/resources/components/types/CreateComponentResponse.js +17 -7
  1246. package/serialization/resources/components/types/DeleteComponentResponse.js +17 -7
  1247. package/serialization/resources/components/types/GetComponentResponse.js +17 -7
  1248. package/serialization/resources/components/types/ListComponentsParams.js +17 -7
  1249. package/serialization/resources/components/types/ListComponentsResponse.js +17 -7
  1250. package/serialization/resources/components/types/PreviewComponentDataParams.js +17 -7
  1251. package/serialization/resources/components/types/PreviewComponentDataResponse.js +17 -7
  1252. package/serialization/resources/components/types/UpdateComponentRequestBodyEntityType.js +17 -7
  1253. package/serialization/resources/components/types/UpdateComponentRequestBodyState.js +17 -7
  1254. package/serialization/resources/components/types/UpdateComponentResponse.js +17 -7
  1255. package/serialization/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.js +17 -7
  1256. package/serialization/resources/crm/client/requests/CreateCrmDealRequestBody.js +17 -7
  1257. package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +17 -7
  1258. package/serialization/resources/crm/client/requests/CreateCrmProductRequestBody.js +17 -7
  1259. package/serialization/resources/crm/types/ListCrmProductsParams.js +17 -7
  1260. package/serialization/resources/crm/types/ListCrmProductsResponse.js +17 -7
  1261. package/serialization/resources/crm/types/UpsertCrmDealResponse.js +17 -7
  1262. package/serialization/resources/crm/types/UpsertCrmProductResponse.js +17 -7
  1263. package/serialization/resources/crm/types/UpsertDealLineItemAssociationResponse.js +17 -7
  1264. package/serialization/resources/crm/types/UpsertLineItemResponse.js +17 -7
  1265. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +17 -7
  1266. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  1267. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +18 -7
  1268. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +17 -7
  1269. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
  1270. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +18 -7
  1271. package/serialization/resources/entitlements/types/CountCompanyOverridesParams.js +17 -7
  1272. package/serialization/resources/entitlements/types/CountCompanyOverridesResponse.js +17 -7
  1273. package/serialization/resources/entitlements/types/CountFeatureCompaniesParams.js +17 -7
  1274. package/serialization/resources/entitlements/types/CountFeatureCompaniesResponse.js +17 -7
  1275. package/serialization/resources/entitlements/types/CountFeatureUsageParams.js +17 -7
  1276. package/serialization/resources/entitlements/types/CountFeatureUsageResponse.js +17 -7
  1277. package/serialization/resources/entitlements/types/CountFeatureUsersParams.js +17 -7
  1278. package/serialization/resources/entitlements/types/CountFeatureUsersResponse.js +17 -7
  1279. package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +17 -7
  1280. package/serialization/resources/entitlements/types/CountPlanEntitlementsResponse.js +17 -7
  1281. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
  1282. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
  1283. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +17 -7
  1284. package/serialization/resources/entitlements/types/CreateCompanyOverrideResponse.js +17 -7
  1285. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
  1286. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
  1287. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +17 -7
  1288. package/serialization/resources/entitlements/types/CreatePlanEntitlementResponse.js +17 -7
  1289. package/serialization/resources/entitlements/types/DeleteCompanyOverrideResponse.js +17 -7
  1290. package/serialization/resources/entitlements/types/DeletePlanEntitlementResponse.js +17 -7
  1291. package/serialization/resources/entitlements/types/GetCompanyOverrideResponse.js +17 -7
  1292. package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +17 -7
  1293. package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyResponse.js +17 -7
  1294. package/serialization/resources/entitlements/types/GetPlanEntitlementResponse.js +17 -7
  1295. package/serialization/resources/entitlements/types/ListCompanyOverridesParams.js +17 -7
  1296. package/serialization/resources/entitlements/types/ListCompanyOverridesResponse.js +17 -7
  1297. package/serialization/resources/entitlements/types/ListFeatureCompaniesParams.js +17 -7
  1298. package/serialization/resources/entitlements/types/ListFeatureCompaniesResponse.js +17 -7
  1299. package/serialization/resources/entitlements/types/ListFeatureUsageParams.js +17 -7
  1300. package/serialization/resources/entitlements/types/ListFeatureUsageResponse.js +17 -7
  1301. package/serialization/resources/entitlements/types/ListFeatureUsersParams.js +17 -7
  1302. package/serialization/resources/entitlements/types/ListFeatureUsersResponse.js +17 -7
  1303. package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +17 -7
  1304. package/serialization/resources/entitlements/types/ListPlanEntitlementsResponse.js +17 -7
  1305. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
  1306. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
  1307. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +17 -7
  1308. package/serialization/resources/entitlements/types/UpdateCompanyOverrideResponse.js +17 -7
  1309. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
  1310. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
  1311. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +17 -7
  1312. package/serialization/resources/entitlements/types/UpdatePlanEntitlementResponse.js +17 -7
  1313. package/serialization/resources/events/client/requests/CreateEventBatchRequestBody.js +17 -7
  1314. package/serialization/resources/events/types/CreateEventBatchResponse.js +17 -7
  1315. package/serialization/resources/events/types/CreateEventResponse.js +17 -7
  1316. package/serialization/resources/events/types/GetEventResponse.js +17 -7
  1317. package/serialization/resources/events/types/GetEventSummariesParams.js +17 -7
  1318. package/serialization/resources/events/types/GetEventSummariesResponse.js +17 -7
  1319. package/serialization/resources/events/types/GetSegmentIntegrationStatusResponse.js +17 -7
  1320. package/serialization/resources/events/types/ListEventsParams.js +17 -7
  1321. package/serialization/resources/events/types/ListEventsResponse.js +17 -7
  1322. package/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  1323. package/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +19 -7
  1324. package/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  1325. package/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +19 -7
  1326. package/serialization/resources/features/client/requests/UpdateFlagRulesRequestBody.js +17 -7
  1327. package/serialization/resources/features/types/CheckFlagResponse.js +17 -7
  1328. package/serialization/resources/features/types/CheckFlagsResponse.js +17 -7
  1329. package/serialization/resources/features/types/CountAudienceCompaniesResponse.js +17 -7
  1330. package/serialization/resources/features/types/CountAudienceUsersResponse.js +17 -7
  1331. package/serialization/resources/features/types/CountFeaturesParams.js +17 -7
  1332. package/serialization/resources/features/types/CountFeaturesResponse.js +17 -7
  1333. package/serialization/resources/features/types/CountFlagsParams.js +17 -7
  1334. package/serialization/resources/features/types/CountFlagsResponse.js +17 -7
  1335. package/serialization/resources/features/types/CreateFeatureRequestBodyFeatureType.js +17 -7
  1336. package/serialization/resources/features/types/CreateFeatureResponse.js +17 -7
  1337. package/serialization/resources/features/types/CreateFlagResponse.js +17 -7
  1338. package/serialization/resources/features/types/DeleteFeatureResponse.js +17 -7
  1339. package/serialization/resources/features/types/DeleteFlagResponse.js +17 -7
  1340. package/serialization/resources/features/types/GetFeatureResponse.js +17 -7
  1341. package/serialization/resources/features/types/GetFlagResponse.js +17 -7
  1342. package/serialization/resources/features/types/ListAudienceCompaniesResponse.js +17 -7
  1343. package/serialization/resources/features/types/ListAudienceUsersResponse.js +17 -7
  1344. package/serialization/resources/features/types/ListFeaturesParams.js +17 -7
  1345. package/serialization/resources/features/types/ListFeaturesResponse.js +17 -7
  1346. package/serialization/resources/features/types/ListFlagsParams.js +17 -7
  1347. package/serialization/resources/features/types/ListFlagsResponse.js +17 -7
  1348. package/serialization/resources/features/types/UpdateFeatureRequestBodyFeatureType.js +17 -7
  1349. package/serialization/resources/features/types/UpdateFeatureResponse.js +17 -7
  1350. package/serialization/resources/features/types/UpdateFlagResponse.js +17 -7
  1351. package/serialization/resources/features/types/UpdateFlagRulesResponse.js +17 -7
  1352. package/serialization/resources/index.js +17 -7
  1353. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +5 -1
  1354. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +22 -8
  1355. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +5 -1
  1356. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +22 -8
  1357. package/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +17 -7
  1358. package/serialization/resources/plangroups/types/GetPlanGroupResponse.js +17 -7
  1359. package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +17 -7
  1360. package/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +17 -7
  1361. package/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.js +17 -7
  1362. package/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +17 -7
  1363. package/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +17 -7
  1364. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +17 -7
  1365. package/serialization/resources/plans/types/CountPlansParams.js +17 -7
  1366. package/serialization/resources/plans/types/CountPlansRequestPlanType.js +17 -7
  1367. package/serialization/resources/plans/types/CountPlansResponse.js +17 -7
  1368. package/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +17 -7
  1369. package/serialization/resources/plans/types/CreatePlanRequestBodyPlanType.js +17 -7
  1370. package/serialization/resources/plans/types/CreatePlanResponse.js +17 -7
  1371. package/serialization/resources/plans/types/DeleteAudienceResponse.js +17 -7
  1372. package/serialization/resources/plans/types/DeletePlanResponse.js +17 -7
  1373. package/serialization/resources/plans/types/GetAudienceResponse.js +17 -7
  1374. package/serialization/resources/plans/types/GetPlanResponse.js +17 -7
  1375. package/serialization/resources/plans/types/ListPlansParams.js +17 -7
  1376. package/serialization/resources/plans/types/ListPlansRequestPlanType.js +17 -7
  1377. package/serialization/resources/plans/types/ListPlansResponse.js +17 -7
  1378. package/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +17 -7
  1379. package/serialization/resources/plans/types/UpdateAudienceResponse.js +17 -7
  1380. package/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +17 -7
  1381. package/serialization/resources/plans/types/UpdatePlanResponse.js +17 -7
  1382. package/serialization/resources/plans/types/UpsertBillingProductPlanResponse.js +17 -7
  1383. package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +17 -7
  1384. package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +17 -7
  1385. package/serialization/resources/webhooks/types/CountWebhookEventsParams.js +17 -7
  1386. package/serialization/resources/webhooks/types/CountWebhookEventsResponse.js +17 -7
  1387. package/serialization/resources/webhooks/types/CountWebhooksParams.js +17 -7
  1388. package/serialization/resources/webhooks/types/CountWebhooksResponse.js +17 -7
  1389. package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +17 -7
  1390. package/serialization/resources/webhooks/types/CreateWebhookResponse.js +17 -7
  1391. package/serialization/resources/webhooks/types/DeleteWebhookResponse.js +17 -7
  1392. package/serialization/resources/webhooks/types/GetWebhookEventResponse.js +17 -7
  1393. package/serialization/resources/webhooks/types/GetWebhookResponse.js +17 -7
  1394. package/serialization/resources/webhooks/types/ListWebhookEventsParams.js +17 -7
  1395. package/serialization/resources/webhooks/types/ListWebhookEventsResponse.js +17 -7
  1396. package/serialization/resources/webhooks/types/ListWebhooksParams.js +17 -7
  1397. package/serialization/resources/webhooks/types/ListWebhooksResponse.js +17 -7
  1398. package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +17 -7
  1399. package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyStatus.js +17 -7
  1400. package/serialization/resources/webhooks/types/UpdateWebhookResponse.js +17 -7
  1401. package/serialization/types/ApiError.js +17 -7
  1402. package/serialization/types/ApiKeyCreateResponseData.js +17 -7
  1403. package/serialization/types/ApiKeyRequestListResponseData.js +17 -7
  1404. package/serialization/types/ApiKeyRequestResponseData.js +17 -7
  1405. package/serialization/types/ApiKeyResponseData.js +17 -7
  1406. package/serialization/types/AudienceRequestBody.js +17 -7
  1407. package/serialization/types/BillingCouponResponseData.js +17 -7
  1408. package/serialization/types/BillingCustomerResponseData.js +17 -7
  1409. package/serialization/types/BillingCustomerSubscription.js +17 -7
  1410. package/serialization/types/BillingCustomerWithSubscriptionsResponseData.js +17 -7
  1411. package/serialization/types/BillingMeterResponseData.js +17 -7
  1412. package/serialization/types/BillingPriceResponseData.js +17 -7
  1413. package/serialization/types/BillingPriceView.js +17 -7
  1414. package/serialization/types/BillingProductDetailResponseData.d.ts +1 -0
  1415. package/serialization/types/BillingProductDetailResponseData.js +18 -7
  1416. package/serialization/types/BillingProductForSubscriptionResponseData.js +17 -7
  1417. package/serialization/types/BillingProductPlanResponseData.js +17 -7
  1418. package/serialization/types/BillingProductPriceResponseData.js +17 -7
  1419. package/serialization/types/BillingProductPricing.d.ts +2 -1
  1420. package/serialization/types/BillingProductPricing.js +19 -8
  1421. package/serialization/types/BillingProductPricingUsageType.d.ts +10 -0
  1422. package/serialization/types/BillingProductPricingUsageType.js +41 -0
  1423. package/serialization/types/BillingProductResponseData.js +17 -7
  1424. package/serialization/types/BillingSubscriptionDiscount.js +17 -7
  1425. package/serialization/types/BillingSubscriptionDiscountView.js +17 -7
  1426. package/serialization/types/BillingSubscriptionResponseData.d.ts +3 -0
  1427. package/serialization/types/BillingSubscriptionResponseData.js +20 -7
  1428. package/serialization/types/BillingSubscriptionView.d.ts +3 -0
  1429. package/serialization/types/BillingSubscriptionView.js +20 -7
  1430. package/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  1431. package/serialization/types/ChangeSubscriptionInternalRequestBody.js +18 -7
  1432. package/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  1433. package/serialization/types/ChangeSubscriptionRequestBody.js +18 -7
  1434. package/serialization/types/CheckFlagRequestBody.js +17 -7
  1435. package/serialization/types/CheckFlagResponseData.js +17 -7
  1436. package/serialization/types/CheckFlagsResponseData.js +17 -7
  1437. package/serialization/types/CheckoutDataResponseData.d.ts +2 -0
  1438. package/serialization/types/CheckoutDataResponseData.js +19 -7
  1439. package/serialization/types/CompanyCrmDealsResponseData.js +17 -7
  1440. package/serialization/types/CompanyDetailResponseData.d.ts +2 -0
  1441. package/serialization/types/CompanyDetailResponseData.js +19 -7
  1442. package/serialization/types/CompanyEventPeriodMetricsResponseData.js +17 -7
  1443. package/serialization/types/CompanyMembershipDetailResponseData.js +17 -7
  1444. package/serialization/types/CompanyMembershipResponseData.js +17 -7
  1445. package/serialization/types/CompanyOverrideResponseData.js +17 -7
  1446. package/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
  1447. package/serialization/types/CompanyPlanDetailResponseData.js +21 -7
  1448. package/serialization/types/CompanyPlanWithBillingSubView.js +17 -7
  1449. package/serialization/types/CompanyResponseData.js +17 -7
  1450. package/serialization/types/CompanySubscriptionResponseData.d.ts +2 -0
  1451. package/serialization/types/CompanySubscriptionResponseData.js +19 -7
  1452. package/serialization/types/ComponentCapabilities.d.ts +1 -0
  1453. package/serialization/types/ComponentCapabilities.js +18 -7
  1454. package/serialization/types/ComponentHydrateResponseData.js +17 -7
  1455. package/serialization/types/ComponentPreviewResponseData.js +17 -7
  1456. package/serialization/types/ComponentResponseData.js +17 -7
  1457. package/serialization/types/CountResponse.js +17 -7
  1458. package/serialization/types/CouponRequestBody.js +17 -7
  1459. package/serialization/types/CreateBillingPriceTierRequestBody.d.ts +15 -0
  1460. package/serialization/types/CreateBillingPriceTierRequestBody.js +46 -0
  1461. package/serialization/types/CreateEntitlementReqCommon.js +17 -7
  1462. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +17 -7
  1463. package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
  1464. package/serialization/types/CreateEntitlementReqCommonValueType.js +17 -7
  1465. package/serialization/types/CreateEventRequestBody.js +17 -7
  1466. package/serialization/types/CreateEventRequestBodyEventType.js +17 -7
  1467. package/serialization/types/CreateFlagRequestBody.js +17 -7
  1468. package/serialization/types/CreateOrUpdateConditionGroupRequestBody.js +17 -7
  1469. package/serialization/types/CreateOrUpdateConditionRequestBody.js +17 -7
  1470. package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +17 -7
  1471. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +17 -7
  1472. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +17 -7
  1473. package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +17 -7
  1474. package/serialization/types/CreateOrUpdateFlagRequestBody.js +17 -7
  1475. package/serialization/types/CreateOrUpdateRuleRequestBody.js +17 -7
  1476. package/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.js +17 -7
  1477. package/serialization/types/CrmDealLineItem.js +17 -7
  1478. package/serialization/types/CrmDealResponseData.js +17 -7
  1479. package/serialization/types/CrmLineItemResponseData.js +17 -7
  1480. package/serialization/types/CrmProductResponseData.js +17 -7
  1481. package/serialization/types/CustomPlanConfig.d.ts +14 -0
  1482. package/serialization/types/CustomPlanConfig.js +45 -0
  1483. package/serialization/types/CustomPlanViewConfigResponseData.d.ts +14 -0
  1484. package/serialization/types/CustomPlanViewConfigResponseData.js +45 -0
  1485. package/serialization/types/Decimal.js +17 -7
  1486. package/serialization/types/DeleteResponse.js +17 -7
  1487. package/serialization/types/EntitlementsInPlan.d.ts +13 -0
  1488. package/serialization/types/EntitlementsInPlan.js +44 -0
  1489. package/serialization/types/EntityKeyDefinitionResponseData.js +17 -7
  1490. package/serialization/types/EntityKeyDetailResponseData.js +17 -7
  1491. package/serialization/types/EntityKeyResponseData.js +17 -7
  1492. package/serialization/types/EntityTraitDefinitionResponseData.js +17 -7
  1493. package/serialization/types/EntityTraitDetailResponseData.js +17 -7
  1494. package/serialization/types/EntityTraitResponseData.js +17 -7
  1495. package/serialization/types/EntityTraitValue.js +17 -7
  1496. package/serialization/types/EnvironmentDetailResponseData.js +17 -7
  1497. package/serialization/types/EnvironmentResponseData.js +17 -7
  1498. package/serialization/types/EventBody.js +17 -7
  1499. package/serialization/types/EventBodyFlagCheck.js +17 -7
  1500. package/serialization/types/EventBodyIdentify.js +17 -7
  1501. package/serialization/types/EventBodyIdentifyCompany.js +17 -7
  1502. package/serialization/types/EventBodyTrack.js +17 -7
  1503. package/serialization/types/EventDetailResponseData.js +17 -7
  1504. package/serialization/types/EventResponseData.js +17 -7
  1505. package/serialization/types/EventSummaryResponseData.js +17 -7
  1506. package/serialization/types/FeatureCompanyResponseData.js +17 -7
  1507. package/serialization/types/FeatureCompanyResponseDataAllocationType.js +17 -7
  1508. package/serialization/types/FeatureCompanyUserResponseData.js +17 -7
  1509. package/serialization/types/FeatureCompanyUserResponseDataAllocationType.js +17 -7
  1510. package/serialization/types/FeatureDetailResponseData.d.ts +2 -0
  1511. package/serialization/types/FeatureDetailResponseData.js +19 -7
  1512. package/serialization/types/FeatureResponseData.d.ts +2 -0
  1513. package/serialization/types/FeatureResponseData.js +19 -7
  1514. package/serialization/types/FeatureUsageDetailResponseData.js +17 -7
  1515. package/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  1516. package/serialization/types/FeatureUsageResponseData.js +18 -7
  1517. package/serialization/types/FeatureUsageResponseDataAllocationType.js +17 -7
  1518. package/serialization/types/FlagDetailResponseData.js +17 -7
  1519. package/serialization/types/FlagResponseData.js +17 -7
  1520. package/serialization/types/GenericPreviewObject.js +17 -7
  1521. package/serialization/types/InvoiceRequestBody.js +17 -7
  1522. package/serialization/types/InvoiceResponseData.js +17 -7
  1523. package/serialization/types/IssueTemporaryAccessTokenResponseData.js +17 -7
  1524. package/serialization/types/KeysRequestBody.js +17 -7
  1525. package/serialization/types/MeterRequestBody.js +17 -7
  1526. package/serialization/types/OrderedPlansInGroup.d.ts +14 -0
  1527. package/serialization/types/OrderedPlansInGroup.js +45 -0
  1528. package/serialization/types/PaginationFilter.js +17 -7
  1529. package/serialization/types/PaymentMethodRequestBody.d.ts +0 -1
  1530. package/serialization/types/PaymentMethodRequestBody.js +17 -8
  1531. package/serialization/types/PaymentMethodResponseData.d.ts +0 -1
  1532. package/serialization/types/PaymentMethodResponseData.js +17 -8
  1533. package/serialization/types/PlanAudienceDetailResponseData.js +17 -7
  1534. package/serialization/types/PlanAudienceResponseData.js +17 -7
  1535. package/serialization/types/PlanDetailResponseData.js +17 -7
  1536. package/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
  1537. package/serialization/types/PlanEntitlementResponseData.js +18 -7
  1538. package/serialization/types/PlanEntitlementsOrder.d.ts +13 -0
  1539. package/serialization/types/PlanEntitlementsOrder.js +44 -0
  1540. package/serialization/types/PlanGroupDetailResponseData.d.ts +5 -0
  1541. package/serialization/types/PlanGroupDetailResponseData.js +22 -7
  1542. package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  1543. package/serialization/types/PlanGroupPlanDetailResponseData.js +20 -7
  1544. package/serialization/types/PlanGroupPlanEntitlementsOrder.d.ts +14 -0
  1545. package/serialization/types/PlanGroupPlanEntitlementsOrder.js +45 -0
  1546. package/serialization/types/PlanGroupResponseData.d.ts +2 -1
  1547. package/serialization/types/PlanGroupResponseData.js +19 -8
  1548. package/serialization/types/PlanResponseData.js +17 -7
  1549. package/serialization/types/PreviewObject.js +17 -7
  1550. package/serialization/types/PreviewObjectResponseData.js +17 -7
  1551. package/serialization/types/PreviewSubscriptionChangeResponseData.js +17 -7
  1552. package/serialization/types/RawEventBatchResponseData.js +17 -7
  1553. package/serialization/types/RawEventResponseData.js +17 -7
  1554. package/serialization/types/RuleConditionDetailResponseData.js +17 -7
  1555. package/serialization/types/RuleConditionGroupDetailResponseData.js +17 -7
  1556. package/serialization/types/RuleConditionGroupResponseData.js +17 -7
  1557. package/serialization/types/RuleConditionResponseData.js +17 -7
  1558. package/serialization/types/RuleDetailResponseData.js +17 -7
  1559. package/serialization/types/RuleResponseData.js +17 -7
  1560. package/serialization/types/RulesDetailResponseData.js +17 -7
  1561. package/serialization/types/SegmentStatusResp.js +17 -7
  1562. package/serialization/types/StripeEmbedInfo.js +17 -7
  1563. package/serialization/types/TemporaryAccessTokenResponseData.js +17 -7
  1564. package/serialization/types/UpdateAddOnRequestBody.js +17 -7
  1565. package/serialization/types/UpdateEntitlementReqCommon.js +17 -7
  1566. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +17 -7
  1567. package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
  1568. package/serialization/types/UpdateEntitlementReqCommonValueType.js +17 -7
  1569. package/serialization/types/UpdatePayInAdvanceRequestBody.js +17 -7
  1570. package/serialization/types/UpdateRuleRequestBody.js +17 -7
  1571. package/serialization/types/UpsertCompanyRequestBody.js +17 -7
  1572. package/serialization/types/UpsertTraitRequestBody.js +17 -7
  1573. package/serialization/types/UpsertUserRequestBody.js +17 -7
  1574. package/serialization/types/UpsertUserSubRequestBody.js +17 -7
  1575. package/serialization/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
  1576. package/serialization/types/UsageBasedEntitlementRequestBody.js +18 -7
  1577. package/serialization/types/UsageBasedEntitlementResponseData.js +17 -7
  1578. package/serialization/types/UserDetailResponseData.js +17 -7
  1579. package/serialization/types/UserResponseData.js +17 -7
  1580. package/serialization/types/WebhookEventDetailResponseData.js +17 -7
  1581. package/serialization/types/WebhookEventResponseData.js +17 -7
  1582. package/serialization/types/WebhookResponseData.d.ts +1 -0
  1583. package/serialization/types/WebhookResponseData.js +18 -7
  1584. package/serialization/types/index.d.ts +8 -0
  1585. package/serialization/types/index.js +8 -0
  1586. package/webhooks.d.ts +76 -0
  1587. 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 Companies {
49
60
  constructor(_options) {
50
61
  this._options = _options;
@@ -61,9 +72,9 @@ class Companies {
61
72
  * @example
62
73
  * await client.companies.listCompanies()
63
74
  */
64
- listCompanies(request = {}, requestOptions) {
65
- var _a, _b;
66
- return __awaiter(this, void 0, void 0, function* () {
75
+ listCompanies() {
76
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
77
+ var _a, _b, _c;
67
78
  const { ids, planId, q, withoutFeatureOverrideFor, withoutPlan, limit, offset } = request;
68
79
  const _queryParams = {};
69
80
  if (ids != null) {
@@ -93,9 +104,9 @@ class Companies {
93
104
  _queryParams["offset"] = offset.toString();
94
105
  }
95
106
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
96
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies"),
107
+ 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, "companies"),
97
108
  method: "GET",
98
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
109
+ 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),
99
110
  contentType: "application/json",
100
111
  queryParameters: _queryParams,
101
112
  requestType: "json",
@@ -160,7 +171,7 @@ class Companies {
160
171
  body: _response.error.rawBody,
161
172
  });
162
173
  case "timeout":
163
- throw new errors.SchematicTimeoutError();
174
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /companies.");
164
175
  case "unknown":
165
176
  throw new errors.SchematicError({
166
177
  message: _response.error.errorMessage,
@@ -185,12 +196,12 @@ class Companies {
185
196
  * })
186
197
  */
187
198
  upsertCompany(request, requestOptions) {
188
- var _a, _b;
189
199
  return __awaiter(this, void 0, void 0, function* () {
200
+ var _a, _b, _c;
190
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
191
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies"),
202
+ 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, "companies"),
192
203
  method: "POST",
193
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
204
+ 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),
194
205
  contentType: "application/json",
195
206
  requestType: "json",
196
207
  body: serializers.UpsertCompanyRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -255,7 +266,7 @@ class Companies {
255
266
  body: _response.error.rawBody,
256
267
  });
257
268
  case "timeout":
258
- throw new errors.SchematicTimeoutError();
269
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /companies.");
259
270
  case "unknown":
260
271
  throw new errors.SchematicError({
261
272
  message: _response.error.errorMessage,
@@ -276,12 +287,12 @@ class Companies {
276
287
  * await client.companies.getCompany("company_id")
277
288
  */
278
289
  getCompany(companyId, requestOptions) {
279
- var _a, _b;
280
290
  return __awaiter(this, void 0, void 0, function* () {
291
+ var _a, _b, _c;
281
292
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
282
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `companies/${encodeURIComponent(companyId)}`),
293
+ 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, `companies/${encodeURIComponent(companyId)}`),
283
294
  method: "GET",
284
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
295
+ 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),
285
296
  contentType: "application/json",
286
297
  requestType: "json",
287
298
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -345,7 +356,7 @@ class Companies {
345
356
  body: _response.error.rawBody,
346
357
  });
347
358
  case "timeout":
348
- throw new errors.SchematicTimeoutError();
359
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /companies/{company_id}.");
349
360
  case "unknown":
350
361
  throw new errors.SchematicError({
351
362
  message: _response.error.errorMessage,
@@ -366,12 +377,12 @@ class Companies {
366
377
  * await client.companies.deleteCompany("company_id")
367
378
  */
368
379
  deleteCompany(companyId, requestOptions) {
369
- var _a, _b;
370
380
  return __awaiter(this, void 0, void 0, function* () {
381
+ var _a, _b, _c;
371
382
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
372
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `companies/${encodeURIComponent(companyId)}`),
383
+ 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, `companies/${encodeURIComponent(companyId)}`),
373
384
  method: "DELETE",
374
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
385
+ 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),
375
386
  contentType: "application/json",
376
387
  requestType: "json",
377
388
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -435,7 +446,7 @@ class Companies {
435
446
  body: _response.error.rawBody,
436
447
  });
437
448
  case "timeout":
438
- throw new errors.SchematicTimeoutError();
449
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /companies/{company_id}.");
439
450
  case "unknown":
440
451
  throw new errors.SchematicError({
441
452
  message: _response.error.errorMessage,
@@ -455,9 +466,9 @@ class Companies {
455
466
  * @example
456
467
  * await client.companies.countCompanies()
457
468
  */
458
- countCompanies(request = {}, requestOptions) {
459
- var _a, _b;
460
- return __awaiter(this, void 0, void 0, function* () {
469
+ countCompanies() {
470
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
471
+ var _a, _b, _c;
461
472
  const { ids, planId, q, withoutFeatureOverrideFor, withoutPlan, limit, offset } = request;
462
473
  const _queryParams = {};
463
474
  if (ids != null) {
@@ -487,9 +498,9 @@ class Companies {
487
498
  _queryParams["offset"] = offset.toString();
488
499
  }
489
500
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
490
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies/count"),
501
+ 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, "companies/count"),
491
502
  method: "GET",
492
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
503
+ 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),
493
504
  contentType: "application/json",
494
505
  queryParameters: _queryParams,
495
506
  requestType: "json",
@@ -554,7 +565,7 @@ class Companies {
554
565
  body: _response.error.rawBody,
555
566
  });
556
567
  case "timeout":
557
- throw new errors.SchematicTimeoutError();
568
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /companies/count.");
558
569
  case "unknown":
559
570
  throw new errors.SchematicError({
560
571
  message: _response.error.errorMessage,
@@ -579,12 +590,12 @@ class Companies {
579
590
  * })
580
591
  */
581
592
  createCompany(request, requestOptions) {
582
- var _a, _b;
583
593
  return __awaiter(this, void 0, void 0, function* () {
594
+ var _a, _b, _c;
584
595
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
585
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies/create"),
596
+ 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, "companies/create"),
586
597
  method: "POST",
587
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
598
+ 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),
588
599
  contentType: "application/json",
589
600
  requestType: "json",
590
601
  body: serializers.UpsertCompanyRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -649,7 +660,7 @@ class Companies {
649
660
  body: _response.error.rawBody,
650
661
  });
651
662
  case "timeout":
652
- throw new errors.SchematicTimeoutError();
663
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /companies/create.");
653
664
  case "unknown":
654
665
  throw new errors.SchematicError({
655
666
  message: _response.error.errorMessage,
@@ -674,12 +685,12 @@ class Companies {
674
685
  * })
675
686
  */
676
687
  deleteCompanyByKeys(request, requestOptions) {
677
- var _a, _b;
678
688
  return __awaiter(this, void 0, void 0, function* () {
689
+ var _a, _b, _c;
679
690
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
680
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies/delete"),
691
+ 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, "companies/delete"),
681
692
  method: "POST",
682
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
693
+ 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),
683
694
  contentType: "application/json",
684
695
  requestType: "json",
685
696
  body: serializers.KeysRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -744,7 +755,7 @@ class Companies {
744
755
  body: _response.error.rawBody,
745
756
  });
746
757
  case "timeout":
747
- throw new errors.SchematicTimeoutError();
758
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /companies/delete.");
748
759
  case "unknown":
749
760
  throw new errors.SchematicError({
750
761
  message: _response.error.errorMessage,
@@ -771,15 +782,15 @@ class Companies {
771
782
  * })
772
783
  */
773
784
  lookupCompany(request, requestOptions) {
774
- var _a, _b;
775
785
  return __awaiter(this, void 0, void 0, function* () {
786
+ var _a, _b, _c;
776
787
  const { keys } = request;
777
788
  const _queryParams = {};
778
- _queryParams["keys"] = JSON.stringify(keys);
789
+ _queryParams["keys"] = (0, json_1.toJson)(keys);
779
790
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
780
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies/lookup"),
791
+ 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, "companies/lookup"),
781
792
  method: "GET",
782
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
793
+ 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),
783
794
  contentType: "application/json",
784
795
  queryParameters: _queryParams,
785
796
  requestType: "json",
@@ -844,7 +855,7 @@ class Companies {
844
855
  body: _response.error.rawBody,
845
856
  });
846
857
  case "timeout":
847
- throw new errors.SchematicTimeoutError();
858
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /companies/lookup.");
848
859
  case "unknown":
849
860
  throw new errors.SchematicError({
850
861
  message: _response.error.errorMessage,
@@ -868,8 +879,8 @@ class Companies {
868
879
  * })
869
880
  */
870
881
  getActiveDeals(request, requestOptions) {
871
- var _a, _b;
872
882
  return __awaiter(this, void 0, void 0, function* () {
883
+ var _a, _b, _c;
873
884
  const { companyId, dealStage, limit, offset } = request;
874
885
  const _queryParams = {};
875
886
  _queryParams["company_id"] = companyId;
@@ -881,9 +892,9 @@ class Companies {
881
892
  _queryParams["offset"] = offset.toString();
882
893
  }
883
894
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
884
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-crm-deals"),
895
+ 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-crm-deals"),
885
896
  method: "GET",
886
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
897
+ 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),
887
898
  contentType: "application/json",
888
899
  queryParameters: _queryParams,
889
900
  requestType: "json",
@@ -948,7 +959,7 @@ class Companies {
948
959
  body: _response.error.rawBody,
949
960
  });
950
961
  case "timeout":
951
- throw new errors.SchematicTimeoutError();
962
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /company-crm-deals.");
952
963
  case "unknown":
953
964
  throw new errors.SchematicError({
954
965
  message: _response.error.errorMessage,
@@ -968,9 +979,9 @@ class Companies {
968
979
  * @example
969
980
  * await client.companies.listCompanyMemberships()
970
981
  */
971
- listCompanyMemberships(request = {}, requestOptions) {
972
- var _a, _b;
973
- return __awaiter(this, void 0, void 0, function* () {
982
+ listCompanyMemberships() {
983
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
984
+ var _a, _b, _c;
974
985
  const { companyId, userId, limit, offset } = request;
975
986
  const _queryParams = {};
976
987
  if (companyId != null) {
@@ -986,9 +997,9 @@ class Companies {
986
997
  _queryParams["offset"] = offset.toString();
987
998
  }
988
999
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
989
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-memberships"),
1000
+ 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-memberships"),
990
1001
  method: "GET",
991
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1002
+ 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),
992
1003
  contentType: "application/json",
993
1004
  queryParameters: _queryParams,
994
1005
  requestType: "json",
@@ -1053,7 +1064,7 @@ class Companies {
1053
1064
  body: _response.error.rawBody,
1054
1065
  });
1055
1066
  case "timeout":
1056
- throw new errors.SchematicTimeoutError();
1067
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /company-memberships.");
1057
1068
  case "unknown":
1058
1069
  throw new errors.SchematicError({
1059
1070
  message: _response.error.errorMessage,
@@ -1077,12 +1088,12 @@ class Companies {
1077
1088
  * })
1078
1089
  */
1079
1090
  getOrCreateCompanyMembership(request, requestOptions) {
1080
- var _a, _b;
1081
1091
  return __awaiter(this, void 0, void 0, function* () {
1092
+ var _a, _b, _c;
1082
1093
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1083
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-memberships"),
1094
+ 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-memberships"),
1084
1095
  method: "POST",
1085
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1096
+ 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),
1086
1097
  contentType: "application/json",
1087
1098
  requestType: "json",
1088
1099
  body: serializers.GetOrCreateCompanyMembershipRequestBody.jsonOrThrow(request, {
@@ -1149,7 +1160,7 @@ class Companies {
1149
1160
  body: _response.error.rawBody,
1150
1161
  });
1151
1162
  case "timeout":
1152
- throw new errors.SchematicTimeoutError();
1163
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /company-memberships.");
1153
1164
  case "unknown":
1154
1165
  throw new errors.SchematicError({
1155
1166
  message: _response.error.errorMessage,
@@ -1170,12 +1181,12 @@ class Companies {
1170
1181
  * await client.companies.deleteCompanyMembership("company_membership_id")
1171
1182
  */
1172
1183
  deleteCompanyMembership(companyMembershipId, requestOptions) {
1173
- var _a, _b;
1174
1184
  return __awaiter(this, void 0, void 0, function* () {
1185
+ var _a, _b, _c;
1175
1186
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1176
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `company-memberships/${encodeURIComponent(companyMembershipId)}`),
1187
+ 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-memberships/${encodeURIComponent(companyMembershipId)}`),
1177
1188
  method: "DELETE",
1178
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1189
+ 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),
1179
1190
  contentType: "application/json",
1180
1191
  requestType: "json",
1181
1192
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1239,7 +1250,7 @@ class Companies {
1239
1250
  body: _response.error.rawBody,
1240
1251
  });
1241
1252
  case "timeout":
1242
- throw new errors.SchematicTimeoutError();
1253
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /company-memberships/{company_membership_id}.");
1243
1254
  case "unknown":
1244
1255
  throw new errors.SchematicError({
1245
1256
  message: _response.error.errorMessage,
@@ -1259,9 +1270,9 @@ class Companies {
1259
1270
  * @example
1260
1271
  * await client.companies.getActiveCompanySubscription()
1261
1272
  */
1262
- getActiveCompanySubscription(request = {}, requestOptions) {
1263
- var _a, _b;
1264
- return __awaiter(this, void 0, void 0, function* () {
1273
+ getActiveCompanySubscription() {
1274
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
1275
+ var _a, _b, _c;
1265
1276
  const { companyId, companyIds, limit, offset } = request;
1266
1277
  const _queryParams = {};
1267
1278
  if (companyId != null) {
@@ -1282,9 +1293,9 @@ class Companies {
1282
1293
  _queryParams["offset"] = offset.toString();
1283
1294
  }
1284
1295
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1285
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-subscriptions"),
1296
+ 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-subscriptions"),
1286
1297
  method: "GET",
1287
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1298
+ 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),
1288
1299
  contentType: "application/json",
1289
1300
  queryParameters: _queryParams,
1290
1301
  requestType: "json",
@@ -1349,7 +1360,7 @@ class Companies {
1349
1360
  body: _response.error.rawBody,
1350
1361
  });
1351
1362
  case "timeout":
1352
- throw new errors.SchematicTimeoutError();
1363
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /company-subscriptions.");
1353
1364
  case "unknown":
1354
1365
  throw new errors.SchematicError({
1355
1366
  message: _response.error.errorMessage,
@@ -1375,12 +1386,12 @@ class Companies {
1375
1386
  * })
1376
1387
  */
1377
1388
  upsertCompanyTrait(request, requestOptions) {
1378
- var _a, _b;
1379
1389
  return __awaiter(this, void 0, void 0, function* () {
1390
+ var _a, _b, _c;
1380
1391
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1381
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-traits"),
1392
+ 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-traits"),
1382
1393
  method: "POST",
1383
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1394
+ 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),
1384
1395
  contentType: "application/json",
1385
1396
  requestType: "json",
1386
1397
  body: serializers.UpsertTraitRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1445,7 +1456,7 @@ class Companies {
1445
1456
  body: _response.error.rawBody,
1446
1457
  });
1447
1458
  case "timeout":
1448
- throw new errors.SchematicTimeoutError();
1459
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /company-traits.");
1449
1460
  case "unknown":
1450
1461
  throw new errors.SchematicError({
1451
1462
  message: _response.error.errorMessage,
@@ -1465,13 +1476,13 @@ class Companies {
1465
1476
  * @example
1466
1477
  * await client.companies.listEntityKeyDefinitions()
1467
1478
  */
1468
- listEntityKeyDefinitions(request = {}, requestOptions) {
1469
- var _a, _b;
1470
- return __awaiter(this, void 0, void 0, function* () {
1479
+ listEntityKeyDefinitions() {
1480
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
1481
+ var _a, _b, _c;
1471
1482
  const { entityType, ids, q, limit, offset } = request;
1472
1483
  const _queryParams = {};
1473
1484
  if (entityType != null) {
1474
- _queryParams["entity_type"] = entityType;
1485
+ _queryParams["entity_type"] = serializers.ListEntityKeyDefinitionsRequestEntityType.jsonOrThrow(entityType, { unrecognizedObjectKeys: "strip" });
1475
1486
  }
1476
1487
  if (ids != null) {
1477
1488
  if (Array.isArray(ids)) {
@@ -1491,9 +1502,9 @@ class Companies {
1491
1502
  _queryParams["offset"] = offset.toString();
1492
1503
  }
1493
1504
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1494
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-key-definitions"),
1505
+ 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, "entity-key-definitions"),
1495
1506
  method: "GET",
1496
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1507
+ 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),
1497
1508
  contentType: "application/json",
1498
1509
  queryParameters: _queryParams,
1499
1510
  requestType: "json",
@@ -1558,7 +1569,7 @@ class Companies {
1558
1569
  body: _response.error.rawBody,
1559
1570
  });
1560
1571
  case "timeout":
1561
- throw new errors.SchematicTimeoutError();
1572
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /entity-key-definitions.");
1562
1573
  case "unknown":
1563
1574
  throw new errors.SchematicError({
1564
1575
  message: _response.error.errorMessage,
@@ -1578,13 +1589,13 @@ class Companies {
1578
1589
  * @example
1579
1590
  * await client.companies.countEntityKeyDefinitions()
1580
1591
  */
1581
- countEntityKeyDefinitions(request = {}, requestOptions) {
1582
- var _a, _b;
1583
- return __awaiter(this, void 0, void 0, function* () {
1592
+ countEntityKeyDefinitions() {
1593
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
1594
+ var _a, _b, _c;
1584
1595
  const { entityType, ids, q, limit, offset } = request;
1585
1596
  const _queryParams = {};
1586
1597
  if (entityType != null) {
1587
- _queryParams["entity_type"] = entityType;
1598
+ _queryParams["entity_type"] = serializers.CountEntityKeyDefinitionsRequestEntityType.jsonOrThrow(entityType, { unrecognizedObjectKeys: "strip" });
1588
1599
  }
1589
1600
  if (ids != null) {
1590
1601
  if (Array.isArray(ids)) {
@@ -1604,9 +1615,9 @@ class Companies {
1604
1615
  _queryParams["offset"] = offset.toString();
1605
1616
  }
1606
1617
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1607
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-key-definitions/count"),
1618
+ 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, "entity-key-definitions/count"),
1608
1619
  method: "GET",
1609
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1620
+ 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),
1610
1621
  contentType: "application/json",
1611
1622
  queryParameters: _queryParams,
1612
1623
  requestType: "json",
@@ -1671,7 +1682,7 @@ class Companies {
1671
1682
  body: _response.error.rawBody,
1672
1683
  });
1673
1684
  case "timeout":
1674
- throw new errors.SchematicTimeoutError();
1685
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /entity-key-definitions/count.");
1675
1686
  case "unknown":
1676
1687
  throw new errors.SchematicError({
1677
1688
  message: _response.error.errorMessage,
@@ -1691,13 +1702,13 @@ class Companies {
1691
1702
  * @example
1692
1703
  * await client.companies.listEntityTraitDefinitions()
1693
1704
  */
1694
- listEntityTraitDefinitions(request = {}, requestOptions) {
1695
- var _a, _b;
1696
- return __awaiter(this, void 0, void 0, function* () {
1705
+ listEntityTraitDefinitions() {
1706
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
1707
+ var _a, _b, _c;
1697
1708
  const { entityType, ids, q, traitType, limit, offset } = request;
1698
1709
  const _queryParams = {};
1699
1710
  if (entityType != null) {
1700
- _queryParams["entity_type"] = entityType;
1711
+ _queryParams["entity_type"] = serializers.ListEntityTraitDefinitionsRequestEntityType.jsonOrThrow(entityType, { unrecognizedObjectKeys: "strip" });
1701
1712
  }
1702
1713
  if (ids != null) {
1703
1714
  if (Array.isArray(ids)) {
@@ -1711,7 +1722,9 @@ class Companies {
1711
1722
  _queryParams["q"] = q;
1712
1723
  }
1713
1724
  if (traitType != null) {
1714
- _queryParams["trait_type"] = traitType;
1725
+ _queryParams["trait_type"] = serializers.ListEntityTraitDefinitionsRequestTraitType.jsonOrThrow(traitType, {
1726
+ unrecognizedObjectKeys: "strip",
1727
+ });
1715
1728
  }
1716
1729
  if (limit != null) {
1717
1730
  _queryParams["limit"] = limit.toString();
@@ -1720,9 +1733,9 @@ class Companies {
1720
1733
  _queryParams["offset"] = offset.toString();
1721
1734
  }
1722
1735
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1723
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-trait-definitions"),
1736
+ 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, "entity-trait-definitions"),
1724
1737
  method: "GET",
1725
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1738
+ 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),
1726
1739
  contentType: "application/json",
1727
1740
  queryParameters: _queryParams,
1728
1741
  requestType: "json",
@@ -1787,7 +1800,7 @@ class Companies {
1787
1800
  body: _response.error.rawBody,
1788
1801
  });
1789
1802
  case "timeout":
1790
- throw new errors.SchematicTimeoutError();
1803
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /entity-trait-definitions.");
1791
1804
  case "unknown":
1792
1805
  throw new errors.SchematicError({
1793
1806
  message: _response.error.errorMessage,
@@ -1812,12 +1825,12 @@ class Companies {
1812
1825
  * })
1813
1826
  */
1814
1827
  getOrCreateEntityTraitDefinition(request, requestOptions) {
1815
- var _a, _b;
1816
1828
  return __awaiter(this, void 0, void 0, function* () {
1829
+ var _a, _b, _c;
1817
1830
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1818
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-trait-definitions"),
1831
+ 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, "entity-trait-definitions"),
1819
1832
  method: "POST",
1820
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1833
+ 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),
1821
1834
  contentType: "application/json",
1822
1835
  requestType: "json",
1823
1836
  body: serializers.CreateEntityTraitDefinitionRequestBody.jsonOrThrow(request, {
@@ -1884,7 +1897,7 @@ class Companies {
1884
1897
  body: _response.error.rawBody,
1885
1898
  });
1886
1899
  case "timeout":
1887
- throw new errors.SchematicTimeoutError();
1900
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /entity-trait-definitions.");
1888
1901
  case "unknown":
1889
1902
  throw new errors.SchematicError({
1890
1903
  message: _response.error.errorMessage,
@@ -1905,12 +1918,12 @@ class Companies {
1905
1918
  * await client.companies.getEntityTraitDefinition("entity_trait_definition_id")
1906
1919
  */
1907
1920
  getEntityTraitDefinition(entityTraitDefinitionId, requestOptions) {
1908
- var _a, _b;
1909
1921
  return __awaiter(this, void 0, void 0, function* () {
1922
+ var _a, _b, _c;
1910
1923
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1911
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `entity-trait-definitions/${encodeURIComponent(entityTraitDefinitionId)}`),
1924
+ 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, `entity-trait-definitions/${encodeURIComponent(entityTraitDefinitionId)}`),
1912
1925
  method: "GET",
1913
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1926
+ 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),
1914
1927
  contentType: "application/json",
1915
1928
  requestType: "json",
1916
1929
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1974,7 +1987,7 @@ class Companies {
1974
1987
  body: _response.error.rawBody,
1975
1988
  });
1976
1989
  case "timeout":
1977
- throw new errors.SchematicTimeoutError();
1990
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /entity-trait-definitions/{entity_trait_definition_id}.");
1978
1991
  case "unknown":
1979
1992
  throw new errors.SchematicError({
1980
1993
  message: _response.error.errorMessage,
@@ -1999,12 +2012,12 @@ class Companies {
1999
2012
  * })
2000
2013
  */
2001
2014
  updateEntityTraitDefinition(entityTraitDefinitionId, request, requestOptions) {
2002
- var _a, _b;
2003
2015
  return __awaiter(this, void 0, void 0, function* () {
2016
+ var _a, _b, _c;
2004
2017
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2005
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `entity-trait-definitions/${encodeURIComponent(entityTraitDefinitionId)}`),
2018
+ 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, `entity-trait-definitions/${encodeURIComponent(entityTraitDefinitionId)}`),
2006
2019
  method: "PUT",
2007
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2020
+ 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),
2008
2021
  contentType: "application/json",
2009
2022
  requestType: "json",
2010
2023
  body: serializers.UpdateEntityTraitDefinitionRequestBody.jsonOrThrow(request, {
@@ -2079,7 +2092,7 @@ class Companies {
2079
2092
  body: _response.error.rawBody,
2080
2093
  });
2081
2094
  case "timeout":
2082
- throw new errors.SchematicTimeoutError();
2095
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /entity-trait-definitions/{entity_trait_definition_id}.");
2083
2096
  case "unknown":
2084
2097
  throw new errors.SchematicError({
2085
2098
  message: _response.error.errorMessage,
@@ -2099,13 +2112,13 @@ class Companies {
2099
2112
  * @example
2100
2113
  * await client.companies.countEntityTraitDefinitions()
2101
2114
  */
2102
- countEntityTraitDefinitions(request = {}, requestOptions) {
2103
- var _a, _b;
2104
- return __awaiter(this, void 0, void 0, function* () {
2115
+ countEntityTraitDefinitions() {
2116
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
2117
+ var _a, _b, _c;
2105
2118
  const { entityType, ids, q, traitType, limit, offset } = request;
2106
2119
  const _queryParams = {};
2107
2120
  if (entityType != null) {
2108
- _queryParams["entity_type"] = entityType;
2121
+ _queryParams["entity_type"] = serializers.CountEntityTraitDefinitionsRequestEntityType.jsonOrThrow(entityType, { unrecognizedObjectKeys: "strip" });
2109
2122
  }
2110
2123
  if (ids != null) {
2111
2124
  if (Array.isArray(ids)) {
@@ -2119,7 +2132,7 @@ class Companies {
2119
2132
  _queryParams["q"] = q;
2120
2133
  }
2121
2134
  if (traitType != null) {
2122
- _queryParams["trait_type"] = traitType;
2135
+ _queryParams["trait_type"] = serializers.CountEntityTraitDefinitionsRequestTraitType.jsonOrThrow(traitType, { unrecognizedObjectKeys: "strip" });
2123
2136
  }
2124
2137
  if (limit != null) {
2125
2138
  _queryParams["limit"] = limit.toString();
@@ -2128,9 +2141,9 @@ class Companies {
2128
2141
  _queryParams["offset"] = offset.toString();
2129
2142
  }
2130
2143
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2131
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-trait-definitions/count"),
2144
+ 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, "entity-trait-definitions/count"),
2132
2145
  method: "GET",
2133
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2146
+ 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),
2134
2147
  contentType: "application/json",
2135
2148
  queryParameters: _queryParams,
2136
2149
  requestType: "json",
@@ -2195,7 +2208,7 @@ class Companies {
2195
2208
  body: _response.error.rawBody,
2196
2209
  });
2197
2210
  case "timeout":
2198
- throw new errors.SchematicTimeoutError();
2211
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /entity-trait-definitions/count.");
2199
2212
  case "unknown":
2200
2213
  throw new errors.SchematicError({
2201
2214
  message: _response.error.errorMessage,
@@ -2218,8 +2231,8 @@ class Companies {
2218
2231
  * })
2219
2232
  */
2220
2233
  getEntityTraitValues(request, requestOptions) {
2221
- var _a, _b;
2222
2234
  return __awaiter(this, void 0, void 0, function* () {
2235
+ var _a, _b, _c;
2223
2236
  const { definitionId, q, limit, offset } = request;
2224
2237
  const _queryParams = {};
2225
2238
  _queryParams["definition_id"] = definitionId;
@@ -2233,9 +2246,9 @@ class Companies {
2233
2246
  _queryParams["offset"] = offset.toString();
2234
2247
  }
2235
2248
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2236
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-trait-values"),
2249
+ 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, "entity-trait-values"),
2237
2250
  method: "GET",
2238
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2251
+ 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),
2239
2252
  contentType: "application/json",
2240
2253
  queryParameters: _queryParams,
2241
2254
  requestType: "json",
@@ -2300,7 +2313,7 @@ class Companies {
2300
2313
  body: _response.error.rawBody,
2301
2314
  });
2302
2315
  case "timeout":
2303
- throw new errors.SchematicTimeoutError();
2316
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /entity-trait-values.");
2304
2317
  case "unknown":
2305
2318
  throw new errors.SchematicError({
2306
2319
  message: _response.error.errorMessage,
@@ -2326,12 +2339,12 @@ class Companies {
2326
2339
  * })
2327
2340
  */
2328
2341
  upsertUserTrait(request, requestOptions) {
2329
- var _a, _b;
2330
2342
  return __awaiter(this, void 0, void 0, function* () {
2343
+ var _a, _b, _c;
2331
2344
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2332
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "user-traits"),
2345
+ 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, "user-traits"),
2333
2346
  method: "POST",
2334
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2347
+ 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),
2335
2348
  contentType: "application/json",
2336
2349
  requestType: "json",
2337
2350
  body: serializers.UpsertTraitRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -2396,7 +2409,7 @@ class Companies {
2396
2409
  body: _response.error.rawBody,
2397
2410
  });
2398
2411
  case "timeout":
2399
- throw new errors.SchematicTimeoutError();
2412
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /user-traits.");
2400
2413
  case "unknown":
2401
2414
  throw new errors.SchematicError({
2402
2415
  message: _response.error.errorMessage,
@@ -2416,9 +2429,9 @@ class Companies {
2416
2429
  * @example
2417
2430
  * await client.companies.listUsers()
2418
2431
  */
2419
- listUsers(request = {}, requestOptions) {
2420
- var _a, _b;
2421
- return __awaiter(this, void 0, void 0, function* () {
2432
+ listUsers() {
2433
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
2434
+ var _a, _b, _c;
2422
2435
  const { companyId, ids, planId, q, limit, offset } = request;
2423
2436
  const _queryParams = {};
2424
2437
  if (companyId != null) {
@@ -2445,9 +2458,9 @@ class Companies {
2445
2458
  _queryParams["offset"] = offset.toString();
2446
2459
  }
2447
2460
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2448
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users"),
2461
+ 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, "users"),
2449
2462
  method: "GET",
2450
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2463
+ 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),
2451
2464
  contentType: "application/json",
2452
2465
  queryParameters: _queryParams,
2453
2466
  requestType: "json",
@@ -2512,7 +2525,7 @@ class Companies {
2512
2525
  body: _response.error.rawBody,
2513
2526
  });
2514
2527
  case "timeout":
2515
- throw new errors.SchematicTimeoutError();
2528
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /users.");
2516
2529
  case "unknown":
2517
2530
  throw new errors.SchematicError({
2518
2531
  message: _response.error.errorMessage,
@@ -2540,12 +2553,12 @@ class Companies {
2540
2553
  * })
2541
2554
  */
2542
2555
  upsertUser(request, requestOptions) {
2543
- var _a, _b;
2544
2556
  return __awaiter(this, void 0, void 0, function* () {
2557
+ var _a, _b, _c;
2545
2558
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2546
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users"),
2559
+ 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, "users"),
2547
2560
  method: "POST",
2548
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2561
+ 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),
2549
2562
  contentType: "application/json",
2550
2563
  requestType: "json",
2551
2564
  body: serializers.UpsertUserRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -2610,7 +2623,7 @@ class Companies {
2610
2623
  body: _response.error.rawBody,
2611
2624
  });
2612
2625
  case "timeout":
2613
- throw new errors.SchematicTimeoutError();
2626
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /users.");
2614
2627
  case "unknown":
2615
2628
  throw new errors.SchematicError({
2616
2629
  message: _response.error.errorMessage,
@@ -2631,12 +2644,12 @@ class Companies {
2631
2644
  * await client.companies.getUser("user_id")
2632
2645
  */
2633
2646
  getUser(userId, requestOptions) {
2634
- var _a, _b;
2635
2647
  return __awaiter(this, void 0, void 0, function* () {
2648
+ var _a, _b, _c;
2636
2649
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2637
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `users/${encodeURIComponent(userId)}`),
2650
+ 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, `users/${encodeURIComponent(userId)}`),
2638
2651
  method: "GET",
2639
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2652
+ 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),
2640
2653
  contentType: "application/json",
2641
2654
  requestType: "json",
2642
2655
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2700,7 +2713,7 @@ class Companies {
2700
2713
  body: _response.error.rawBody,
2701
2714
  });
2702
2715
  case "timeout":
2703
- throw new errors.SchematicTimeoutError();
2716
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /users/{user_id}.");
2704
2717
  case "unknown":
2705
2718
  throw new errors.SchematicError({
2706
2719
  message: _response.error.errorMessage,
@@ -2721,12 +2734,12 @@ class Companies {
2721
2734
  * await client.companies.deleteUser("user_id")
2722
2735
  */
2723
2736
  deleteUser(userId, requestOptions) {
2724
- var _a, _b;
2725
2737
  return __awaiter(this, void 0, void 0, function* () {
2738
+ var _a, _b, _c;
2726
2739
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2727
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `users/${encodeURIComponent(userId)}`),
2740
+ 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, `users/${encodeURIComponent(userId)}`),
2728
2741
  method: "DELETE",
2729
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2742
+ 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),
2730
2743
  contentType: "application/json",
2731
2744
  requestType: "json",
2732
2745
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2790,7 +2803,7 @@ class Companies {
2790
2803
  body: _response.error.rawBody,
2791
2804
  });
2792
2805
  case "timeout":
2793
- throw new errors.SchematicTimeoutError();
2806
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /users/{user_id}.");
2794
2807
  case "unknown":
2795
2808
  throw new errors.SchematicError({
2796
2809
  message: _response.error.errorMessage,
@@ -2810,9 +2823,9 @@ class Companies {
2810
2823
  * @example
2811
2824
  * await client.companies.countUsers()
2812
2825
  */
2813
- countUsers(request = {}, requestOptions) {
2814
- var _a, _b;
2815
- return __awaiter(this, void 0, void 0, function* () {
2826
+ countUsers() {
2827
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
2828
+ var _a, _b, _c;
2816
2829
  const { companyId, ids, planId, q, limit, offset } = request;
2817
2830
  const _queryParams = {};
2818
2831
  if (companyId != null) {
@@ -2839,9 +2852,9 @@ class Companies {
2839
2852
  _queryParams["offset"] = offset.toString();
2840
2853
  }
2841
2854
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2842
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users/count"),
2855
+ 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, "users/count"),
2843
2856
  method: "GET",
2844
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2857
+ 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),
2845
2858
  contentType: "application/json",
2846
2859
  queryParameters: _queryParams,
2847
2860
  requestType: "json",
@@ -2906,7 +2919,7 @@ class Companies {
2906
2919
  body: _response.error.rawBody,
2907
2920
  });
2908
2921
  case "timeout":
2909
- throw new errors.SchematicTimeoutError();
2922
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /users/count.");
2910
2923
  case "unknown":
2911
2924
  throw new errors.SchematicError({
2912
2925
  message: _response.error.errorMessage,
@@ -2934,12 +2947,12 @@ class Companies {
2934
2947
  * })
2935
2948
  */
2936
2949
  createUser(request, requestOptions) {
2937
- var _a, _b;
2938
2950
  return __awaiter(this, void 0, void 0, function* () {
2951
+ var _a, _b, _c;
2939
2952
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2940
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users/create"),
2953
+ 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, "users/create"),
2941
2954
  method: "POST",
2942
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2955
+ 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),
2943
2956
  contentType: "application/json",
2944
2957
  requestType: "json",
2945
2958
  body: serializers.UpsertUserRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -3004,7 +3017,7 @@ class Companies {
3004
3017
  body: _response.error.rawBody,
3005
3018
  });
3006
3019
  case "timeout":
3007
- throw new errors.SchematicTimeoutError();
3020
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /users/create.");
3008
3021
  case "unknown":
3009
3022
  throw new errors.SchematicError({
3010
3023
  message: _response.error.errorMessage,
@@ -3029,12 +3042,12 @@ class Companies {
3029
3042
  * })
3030
3043
  */
3031
3044
  deleteUserByKeys(request, requestOptions) {
3032
- var _a, _b;
3033
3045
  return __awaiter(this, void 0, void 0, function* () {
3046
+ var _a, _b, _c;
3034
3047
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
3035
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users/delete"),
3048
+ 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, "users/delete"),
3036
3049
  method: "POST",
3037
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3050
+ 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),
3038
3051
  contentType: "application/json",
3039
3052
  requestType: "json",
3040
3053
  body: serializers.KeysRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -3099,7 +3112,7 @@ class Companies {
3099
3112
  body: _response.error.rawBody,
3100
3113
  });
3101
3114
  case "timeout":
3102
- throw new errors.SchematicTimeoutError();
3115
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /users/delete.");
3103
3116
  case "unknown":
3104
3117
  throw new errors.SchematicError({
3105
3118
  message: _response.error.errorMessage,
@@ -3126,15 +3139,15 @@ class Companies {
3126
3139
  * })
3127
3140
  */
3128
3141
  lookupUser(request, requestOptions) {
3129
- var _a, _b;
3130
3142
  return __awaiter(this, void 0, void 0, function* () {
3143
+ var _a, _b, _c;
3131
3144
  const { keys } = request;
3132
3145
  const _queryParams = {};
3133
- _queryParams["keys"] = JSON.stringify(keys);
3146
+ _queryParams["keys"] = (0, json_1.toJson)(keys);
3134
3147
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
3135
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users/lookup"),
3148
+ 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, "users/lookup"),
3136
3149
  method: "GET",
3137
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3150
+ 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),
3138
3151
  contentType: "application/json",
3139
3152
  queryParameters: _queryParams,
3140
3153
  requestType: "json",
@@ -3199,7 +3212,7 @@ class Companies {
3199
3212
  body: _response.error.rawBody,
3200
3213
  });
3201
3214
  case "timeout":
3202
- throw new errors.SchematicTimeoutError();
3215
+ throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /users/lookup.");
3203
3216
  case "unknown":
3204
3217
  throw new errors.SchematicError({
3205
3218
  message: _response.error.errorMessage,