@schematichq/schematic-typescript-node 1.1.8 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1615) hide show
  1. package/Client.d.ts +17 -13
  2. package/README.md +197 -0
  3. package/api/errors/BadRequestError.js +17 -7
  4. package/api/errors/ForbiddenError.js +17 -7
  5. package/api/errors/InternalServerError.js +17 -7
  6. package/api/errors/NotFoundError.js +17 -7
  7. package/api/errors/UnauthorizedError.js +17 -7
  8. package/api/resources/accesstokens/client/Client.d.ts +4 -0
  9. package/api/resources/accesstokens/client/Client.js +21 -11
  10. package/api/resources/accounts/client/Client.d.ts +4 -0
  11. package/api/resources/accounts/client/Client.js +83 -73
  12. package/api/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
  13. package/api/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
  14. package/api/resources/billing/client/Client.d.ts +38 -2
  15. package/api/resources/billing/client/Client.js +318 -105
  16. package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +2 -1
  17. package/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
  18. package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +10 -2
  19. package/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -0
  20. package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +6 -2
  21. package/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
  22. package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +2 -1
  23. package/api/resources/billing/client/requests/ListCouponsRequest.d.ts +19 -0
  24. package/api/resources/billing/client/requests/ListCouponsRequest.js +5 -0
  25. package/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +0 -1
  26. package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +2 -1
  27. package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +3 -1
  28. package/api/resources/billing/client/requests/index.d.ts +1 -0
  29. package/api/resources/billing/types/CountBillingProductsParams.d.ts +2 -1
  30. package/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +8 -0
  31. package/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +10 -0
  32. package/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
  33. package/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +10 -0
  34. package/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +8 -0
  35. package/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +10 -0
  36. package/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +8 -0
  37. package/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +10 -0
  38. package/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +8 -0
  39. package/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +10 -0
  40. package/api/resources/billing/types/DeleteBillingProductResponse.d.ts +9 -0
  41. package/api/resources/billing/types/DeleteBillingProductResponse.js +5 -0
  42. package/api/resources/billing/types/ListBillingProductsParams.d.ts +2 -1
  43. package/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +8 -0
  44. package/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +10 -0
  45. package/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
  46. package/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +10 -0
  47. package/api/resources/billing/types/ListCouponsParams.d.ts +14 -0
  48. package/api/resources/billing/types/ListCouponsParams.js +5 -0
  49. package/api/resources/billing/types/ListCouponsResponse.d.ts +10 -0
  50. package/api/resources/billing/types/ListCouponsResponse.js +5 -0
  51. package/api/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
  52. package/api/resources/billing/types/ListProductPricesParams.d.ts +2 -1
  53. package/api/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +8 -0
  54. package/api/resources/billing/types/ListProductPricesRequestPriceUsageType.js +10 -0
  55. package/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +8 -0
  56. package/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +10 -0
  57. package/api/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
  58. package/api/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +8 -0
  59. package/api/resources/billing/types/SearchBillingPricesRequestUsageType.js +10 -0
  60. package/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +8 -0
  61. package/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +10 -0
  62. package/api/resources/billing/types/index.d.ts +14 -0
  63. package/api/resources/billing/types/index.js +14 -0
  64. package/api/resources/checkout/client/Client.d.ts +10 -4
  65. package/api/resources/checkout/client/Client.js +49 -36
  66. package/api/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
  67. package/api/resources/checkout/client/requests/CheckoutDataRequestBody.js +5 -0
  68. package/api/resources/checkout/client/requests/index.d.ts +1 -0
  69. package/api/resources/companies/client/Client.d.ts +4 -0
  70. package/api/resources/companies/client/Client.js +172 -159
  71. package/api/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
  72. package/api/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
  73. package/api/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
  74. package/api/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
  75. package/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
  76. package/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
  77. package/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.d.ts +1 -1
  78. package/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
  79. package/api/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
  80. package/api/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
  81. package/api/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
  82. package/api/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
  83. package/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
  84. package/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
  85. package/api/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
  86. package/api/resources/components/client/Client.d.ts +4 -0
  87. package/api/resources/components/client/Client.js +53 -43
  88. package/api/resources/components/types/CreateComponentRequestBodyEntityType.d.ts +1 -1
  89. package/api/resources/components/types/UpdateComponentRequestBodyEntityType.d.ts +1 -1
  90. package/api/resources/components/types/UpdateComponentRequestBodyState.d.ts +1 -1
  91. package/api/resources/crm/client/Client.d.ts +4 -0
  92. package/api/resources/crm/client/Client.js +39 -29
  93. package/api/resources/entitlements/client/Client.d.ts +4 -0
  94. package/api/resources/entitlements/client/Client.js +109 -98
  95. package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  96. package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
  97. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  98. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  99. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +1 -1
  100. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  101. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  102. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +1 -1
  103. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  104. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  105. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +1 -1
  106. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  107. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  108. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +1 -1
  109. package/api/resources/events/client/Client.d.ts +4 -0
  110. package/api/resources/events/client/Client.js +45 -35
  111. package/api/resources/features/client/Client.d.ts +4 -0
  112. package/api/resources/features/client/Client.js +103 -93
  113. package/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  114. package/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  115. package/api/resources/features/types/CreateFeatureRequestBodyFeatureType.d.ts +1 -1
  116. package/api/resources/features/types/UpdateFeatureRequestBodyFeatureType.d.ts +1 -1
  117. package/api/resources/index.js +17 -7
  118. package/api/resources/plangroups/client/Client.d.ts +10 -2
  119. package/api/resources/plangroups/client/Client.js +35 -21
  120. package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +7 -2
  121. package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +7 -2
  122. package/api/resources/plans/client/Client.d.ts +4 -0
  123. package/api/resources/plans/client/Client.js +79 -59
  124. package/api/resources/plans/client/requests/CountPlansRequest.d.ts +4 -0
  125. package/api/resources/plans/client/requests/ListPlansRequest.d.ts +4 -0
  126. package/api/resources/plans/types/CountPlansParams.d.ts +2 -0
  127. package/api/resources/plans/types/CountPlansRequestPlanType.d.ts +1 -1
  128. package/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +1 -1
  129. package/api/resources/plans/types/CreatePlanRequestBodyPlanType.d.ts +1 -1
  130. package/api/resources/plans/types/ListPlansParams.d.ts +2 -0
  131. package/api/resources/plans/types/ListPlansRequestPlanType.d.ts +1 -1
  132. package/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +1 -1
  133. package/api/resources/webhooks/client/Client.d.ts +4 -0
  134. package/api/resources/webhooks/client/Client.js +63 -53
  135. package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  136. package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  137. package/api/resources/webhooks/types/UpdateWebhookRequestBodyStatus.d.ts +1 -1
  138. package/api/types/BillingCouponResponseData.d.ts +0 -3
  139. package/api/types/BillingProductDetailResponseData.d.ts +1 -0
  140. package/api/types/BillingProductPricing.d.ts +2 -1
  141. package/api/types/BillingProductPricingUsageType.d.ts +8 -0
  142. package/api/types/BillingProductPricingUsageType.js +10 -0
  143. package/api/types/BillingSubscriptionResponseData.d.ts +3 -0
  144. package/api/types/BillingSubscriptionView.d.ts +3 -0
  145. package/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  146. package/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  147. package/api/types/CheckoutDataResponseData.d.ts +3 -1
  148. package/api/types/CompanyDetailResponseData.d.ts +1 -0
  149. package/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
  150. package/api/types/CompanySubscriptionResponseData.d.ts +2 -0
  151. package/api/types/ComponentCapabilities.d.ts +1 -0
  152. package/api/types/CreateBillingPriceTierRequestBody.d.ts +9 -0
  153. package/api/types/CreateBillingPriceTierRequestBody.js +5 -0
  154. package/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  155. package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
  156. package/api/types/CreateEntitlementReqCommonValueType.d.ts +1 -1
  157. package/api/types/CreateEventRequestBodyEventType.d.ts +1 -1
  158. package/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
  159. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  160. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  161. package/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
  162. package/api/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -1
  163. package/api/types/CustomPlanConfig.d.ts +8 -0
  164. package/api/types/CustomPlanConfig.js +5 -0
  165. package/api/types/CustomPlanViewConfigResponseData.d.ts +8 -0
  166. package/api/types/CustomPlanViewConfigResponseData.js +5 -0
  167. package/api/types/Decimal.d.ts +1 -1
  168. package/api/types/EntitlementsInPlan.d.ts +7 -0
  169. package/api/types/EntitlementsInPlan.js +5 -0
  170. package/api/types/EventBody.d.ts +1 -1
  171. package/api/types/EventBodyTrack.d.ts +2 -0
  172. package/api/types/EventDetailResponseData.d.ts +1 -0
  173. package/api/types/EventResponseData.d.ts +1 -0
  174. package/api/types/FeatureCompanyResponseDataAllocationType.d.ts +1 -1
  175. package/api/types/FeatureCompanyUserResponseDataAllocationType.d.ts +1 -1
  176. package/api/types/FeatureDetailResponseData.d.ts +2 -0
  177. package/api/types/FeatureResponseData.d.ts +2 -0
  178. package/api/types/FeatureUsageResponseData.d.ts +2 -0
  179. package/api/types/FeatureUsageResponseDataAllocationType.d.ts +1 -1
  180. package/api/types/OrderedPlansInGroup.d.ts +8 -0
  181. package/api/types/OrderedPlansInGroup.js +5 -0
  182. package/api/types/PaymentMethodRequestBody.d.ts +0 -1
  183. package/api/types/PaymentMethodResponseData.d.ts +0 -1
  184. package/api/types/PlanEntitlementResponseData.d.ts +1 -0
  185. package/api/types/PlanEntitlementsOrder.d.ts +7 -0
  186. package/api/types/PlanEntitlementsOrder.js +5 -0
  187. package/api/types/PlanGroupDetailResponseData.d.ts +3 -0
  188. package/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
  189. package/api/types/PlanGroupPlanEntitlementsOrder.d.ts +8 -0
  190. package/api/types/PlanGroupPlanEntitlementsOrder.js +5 -0
  191. package/api/types/PlanGroupResponseData.d.ts +2 -1
  192. package/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  193. package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
  194. package/api/types/UpdateEntitlementReqCommonValueType.d.ts +1 -1
  195. package/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
  196. package/api/types/UsageBasedEntitlementResponseData.d.ts +2 -0
  197. package/api/types/WebhookResponseData.d.ts +1 -0
  198. package/api/types/index.d.ts +8 -0
  199. package/api/types/index.js +8 -0
  200. package/core/fetcher/APIResponse.d.ts +1 -1
  201. package/core/fetcher/Fetcher.d.ts +2 -2
  202. package/core/fetcher/Fetcher.js +6 -5
  203. package/core/fetcher/Supplier.d.ts +1 -1
  204. package/core/fetcher/createRequestUrl.d.ts +1 -1
  205. package/core/fetcher/createRequestUrl.js +1 -2
  206. package/core/fetcher/custom.js +2 -2
  207. package/core/fetcher/getFetchFn.js +18 -9
  208. package/core/fetcher/getHeader.js +1 -2
  209. package/core/fetcher/getRequestBody.js +5 -5
  210. package/core/fetcher/getResponseBody.js +1 -2
  211. package/core/fetcher/makeRequest.d.ts +1 -1
  212. package/core/fetcher/requestWithRetries.js +4 -5
  213. package/core/fetcher/signals.d.ts +0 -1
  214. package/core/fetcher/signals.js +2 -3
  215. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
  216. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
  217. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
  218. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
  219. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
  220. package/core/index.js +17 -7
  221. package/core/json.d.ts +15 -0
  222. package/core/json.js +24 -0
  223. package/core/runtime/runtime.d.ts +1 -1
  224. package/core/runtime/runtime.js +51 -41
  225. package/core/schemas/Schema.d.ts +7 -5
  226. package/core/schemas/Schema.js +2 -0
  227. package/core/schemas/builders/bigint/bigint.d.ts +1 -1
  228. package/core/schemas/builders/bigint/bigint.js +22 -19
  229. package/core/schemas/builders/date/date.js +1 -2
  230. package/core/schemas/builders/enum/enum.js +1 -2
  231. package/core/schemas/builders/lazy/lazy.d.ts +1 -1
  232. package/core/schemas/builders/lazy/lazy.js +3 -4
  233. package/core/schemas/builders/lazy/lazyObject.js +1 -2
  234. package/core/schemas/builders/list/list.js +1 -2
  235. package/core/schemas/builders/literals/booleanLiteral.js +1 -2
  236. package/core/schemas/builders/literals/stringLiteral.js +1 -2
  237. package/core/schemas/builders/object/object.d.ts +1 -1
  238. package/core/schemas/builders/object/object.js +31 -3
  239. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
  240. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
  241. package/core/schemas/builders/object/property.js +2 -3
  242. package/core/schemas/builders/object/types.d.ts +16 -11
  243. package/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
  244. package/core/schemas/builders/object-like/types.d.ts +1 -1
  245. package/core/schemas/builders/record/record.js +2 -4
  246. package/core/schemas/builders/record/types.d.ts +2 -2
  247. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
  248. package/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
  249. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
  250. package/core/schemas/builders/set/set.js +1 -2
  251. package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
  252. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
  253. package/core/schemas/builders/union/discriminant.js +1 -2
  254. package/core/schemas/builders/union/types.d.ts +6 -6
  255. package/core/schemas/builders/union/union.d.ts +1 -1
  256. package/core/schemas/builders/union/union.js +1 -2
  257. package/core/schemas/utils/MaybePromise.d.ts +1 -1
  258. package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
  259. package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
  260. package/core/schemas/utils/entries.d.ts +1 -1
  261. package/core/schemas/utils/entries.js +1 -2
  262. package/core/schemas/utils/filterObject.d.ts +1 -1
  263. package/core/schemas/utils/filterObject.js +1 -2
  264. package/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
  265. package/core/schemas/utils/isPlainObject.js +1 -2
  266. package/core/schemas/utils/keys.d.ts +1 -1
  267. package/core/schemas/utils/keys.js +1 -2
  268. package/core/schemas/utils/maybeSkipValidation.js +1 -2
  269. package/core/schemas/utils/partition.js +1 -2
  270. package/dist/Client.d.ts +17 -13
  271. package/dist/api/errors/BadRequestError.js +17 -7
  272. package/dist/api/errors/ForbiddenError.js +17 -7
  273. package/dist/api/errors/InternalServerError.js +17 -7
  274. package/dist/api/errors/NotFoundError.js +17 -7
  275. package/dist/api/errors/UnauthorizedError.js +17 -7
  276. package/dist/api/resources/accesstokens/client/Client.d.ts +4 -0
  277. package/dist/api/resources/accesstokens/client/Client.js +21 -11
  278. package/dist/api/resources/accounts/client/Client.d.ts +4 -0
  279. package/dist/api/resources/accounts/client/Client.js +83 -73
  280. package/dist/api/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
  281. package/dist/api/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
  282. package/dist/api/resources/billing/client/Client.d.ts +38 -2
  283. package/dist/api/resources/billing/client/Client.js +318 -105
  284. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +2 -1
  285. package/dist/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
  286. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +10 -2
  287. package/dist/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -0
  288. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +6 -2
  289. package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
  290. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +2 -1
  291. package/dist/api/resources/billing/client/requests/ListCouponsRequest.d.ts +19 -0
  292. package/dist/api/resources/billing/client/requests/ListCouponsRequest.js +5 -0
  293. package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +0 -1
  294. package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +2 -1
  295. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +3 -1
  296. package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
  297. package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +2 -1
  298. package/dist/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +8 -0
  299. package/dist/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +10 -0
  300. package/dist/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
  301. package/dist/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +10 -0
  302. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +8 -0
  303. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +10 -0
  304. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +8 -0
  305. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +10 -0
  306. package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +8 -0
  307. package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +10 -0
  308. package/dist/api/resources/billing/types/DeleteBillingProductResponse.d.ts +9 -0
  309. package/dist/api/resources/billing/types/DeleteBillingProductResponse.js +5 -0
  310. package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +2 -1
  311. package/dist/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +8 -0
  312. package/dist/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +10 -0
  313. package/dist/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
  314. package/dist/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +10 -0
  315. package/dist/api/resources/billing/types/ListCouponsParams.d.ts +14 -0
  316. package/dist/api/resources/billing/types/ListCouponsParams.js +5 -0
  317. package/dist/api/resources/billing/types/ListCouponsResponse.d.ts +10 -0
  318. package/dist/api/resources/billing/types/ListCouponsResponse.js +5 -0
  319. package/dist/api/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
  320. package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +2 -1
  321. package/dist/api/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +8 -0
  322. package/dist/api/resources/billing/types/ListProductPricesRequestPriceUsageType.js +10 -0
  323. package/dist/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +8 -0
  324. package/dist/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +10 -0
  325. package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
  326. package/dist/api/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +8 -0
  327. package/dist/api/resources/billing/types/SearchBillingPricesRequestUsageType.js +10 -0
  328. package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +8 -0
  329. package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +10 -0
  330. package/dist/api/resources/billing/types/index.d.ts +14 -0
  331. package/dist/api/resources/billing/types/index.js +14 -0
  332. package/dist/api/resources/checkout/client/Client.d.ts +10 -4
  333. package/dist/api/resources/checkout/client/Client.js +49 -36
  334. package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
  335. package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.js +5 -0
  336. package/dist/api/resources/checkout/client/requests/index.d.ts +1 -0
  337. package/dist/api/resources/companies/client/Client.d.ts +4 -0
  338. package/dist/api/resources/companies/client/Client.js +172 -159
  339. package/dist/api/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
  340. package/dist/api/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
  341. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
  342. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
  343. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
  344. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
  345. package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.d.ts +1 -1
  346. package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
  347. package/dist/api/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
  348. package/dist/api/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
  349. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
  350. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
  351. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
  352. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
  353. package/dist/api/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
  354. package/dist/api/resources/components/client/Client.d.ts +4 -0
  355. package/dist/api/resources/components/client/Client.js +53 -43
  356. package/dist/api/resources/components/types/CreateComponentRequestBodyEntityType.d.ts +1 -1
  357. package/dist/api/resources/components/types/UpdateComponentRequestBodyEntityType.d.ts +1 -1
  358. package/dist/api/resources/components/types/UpdateComponentRequestBodyState.d.ts +1 -1
  359. package/dist/api/resources/crm/client/Client.d.ts +4 -0
  360. package/dist/api/resources/crm/client/Client.js +39 -29
  361. package/dist/api/resources/entitlements/client/Client.d.ts +4 -0
  362. package/dist/api/resources/entitlements/client/Client.js +109 -98
  363. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  364. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
  365. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  366. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  367. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +1 -1
  368. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  369. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  370. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +1 -1
  371. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  372. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  373. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +1 -1
  374. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  375. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  376. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +1 -1
  377. package/dist/api/resources/events/client/Client.d.ts +4 -0
  378. package/dist/api/resources/events/client/Client.js +45 -35
  379. package/dist/api/resources/features/client/Client.d.ts +4 -0
  380. package/dist/api/resources/features/client/Client.js +103 -93
  381. package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  382. package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  383. package/dist/api/resources/features/types/CreateFeatureRequestBodyFeatureType.d.ts +1 -1
  384. package/dist/api/resources/features/types/UpdateFeatureRequestBodyFeatureType.d.ts +1 -1
  385. package/dist/api/resources/index.js +17 -7
  386. package/dist/api/resources/plangroups/client/Client.d.ts +10 -2
  387. package/dist/api/resources/plangroups/client/Client.js +35 -21
  388. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +7 -2
  389. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +7 -2
  390. package/dist/api/resources/plans/client/Client.d.ts +4 -0
  391. package/dist/api/resources/plans/client/Client.js +79 -59
  392. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +4 -0
  393. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +4 -0
  394. package/dist/api/resources/plans/types/CountPlansParams.d.ts +2 -0
  395. package/dist/api/resources/plans/types/CountPlansRequestPlanType.d.ts +1 -1
  396. package/dist/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +1 -1
  397. package/dist/api/resources/plans/types/CreatePlanRequestBodyPlanType.d.ts +1 -1
  398. package/dist/api/resources/plans/types/ListPlansParams.d.ts +2 -0
  399. package/dist/api/resources/plans/types/ListPlansRequestPlanType.d.ts +1 -1
  400. package/dist/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +1 -1
  401. package/dist/api/resources/webhooks/client/Client.d.ts +4 -0
  402. package/dist/api/resources/webhooks/client/Client.js +63 -53
  403. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  404. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  405. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyStatus.d.ts +1 -1
  406. package/dist/api/types/BillingCouponResponseData.d.ts +0 -3
  407. package/dist/api/types/BillingProductDetailResponseData.d.ts +1 -0
  408. package/dist/api/types/BillingProductPricing.d.ts +2 -1
  409. package/dist/api/types/BillingProductPricingUsageType.d.ts +8 -0
  410. package/dist/api/types/BillingProductPricingUsageType.js +10 -0
  411. package/dist/api/types/BillingSubscriptionResponseData.d.ts +3 -0
  412. package/dist/api/types/BillingSubscriptionView.d.ts +3 -0
  413. package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  414. package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  415. package/dist/api/types/CheckoutDataResponseData.d.ts +3 -1
  416. package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
  417. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
  418. package/dist/api/types/CompanySubscriptionResponseData.d.ts +2 -0
  419. package/dist/api/types/ComponentCapabilities.d.ts +1 -0
  420. package/dist/api/types/CreateBillingPriceTierRequestBody.d.ts +9 -0
  421. package/dist/api/types/CreateBillingPriceTierRequestBody.js +5 -0
  422. package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  423. package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
  424. package/dist/api/types/CreateEntitlementReqCommonValueType.d.ts +1 -1
  425. package/dist/api/types/CreateEventRequestBodyEventType.d.ts +1 -1
  426. package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
  427. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  428. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +1 -1
  429. package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
  430. package/dist/api/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -1
  431. package/dist/api/types/CustomPlanConfig.d.ts +8 -0
  432. package/dist/api/types/CustomPlanConfig.js +5 -0
  433. package/dist/api/types/CustomPlanViewConfigResponseData.d.ts +8 -0
  434. package/dist/api/types/CustomPlanViewConfigResponseData.js +5 -0
  435. package/dist/api/types/Decimal.d.ts +1 -1
  436. package/dist/api/types/EntitlementsInPlan.d.ts +7 -0
  437. package/dist/api/types/EntitlementsInPlan.js +5 -0
  438. package/dist/api/types/EventBody.d.ts +1 -1
  439. package/dist/api/types/EventBodyTrack.d.ts +2 -0
  440. package/dist/api/types/EventDetailResponseData.d.ts +1 -0
  441. package/dist/api/types/EventResponseData.d.ts +1 -0
  442. package/dist/api/types/FeatureCompanyResponseDataAllocationType.d.ts +1 -1
  443. package/dist/api/types/FeatureCompanyUserResponseDataAllocationType.d.ts +1 -1
  444. package/dist/api/types/FeatureDetailResponseData.d.ts +2 -0
  445. package/dist/api/types/FeatureResponseData.d.ts +2 -0
  446. package/dist/api/types/FeatureUsageResponseData.d.ts +2 -0
  447. package/dist/api/types/FeatureUsageResponseDataAllocationType.d.ts +1 -1
  448. package/dist/api/types/OrderedPlansInGroup.d.ts +8 -0
  449. package/dist/api/types/OrderedPlansInGroup.js +5 -0
  450. package/dist/api/types/PaymentMethodRequestBody.d.ts +0 -1
  451. package/dist/api/types/PaymentMethodResponseData.d.ts +0 -1
  452. package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -0
  453. package/dist/api/types/PlanEntitlementsOrder.d.ts +7 -0
  454. package/dist/api/types/PlanEntitlementsOrder.js +5 -0
  455. package/dist/api/types/PlanGroupDetailResponseData.d.ts +3 -0
  456. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
  457. package/dist/api/types/PlanGroupPlanEntitlementsOrder.d.ts +8 -0
  458. package/dist/api/types/PlanGroupPlanEntitlementsOrder.js +5 -0
  459. package/dist/api/types/PlanGroupResponseData.d.ts +2 -1
  460. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  461. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
  462. package/dist/api/types/UpdateEntitlementReqCommonValueType.d.ts +1 -1
  463. package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
  464. package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +2 -0
  465. package/dist/api/types/WebhookResponseData.d.ts +1 -0
  466. package/dist/api/types/index.d.ts +8 -0
  467. package/dist/api/types/index.js +8 -0
  468. package/dist/core/fetcher/APIResponse.d.ts +1 -1
  469. package/dist/core/fetcher/Fetcher.d.ts +2 -2
  470. package/dist/core/fetcher/Fetcher.js +6 -5
  471. package/dist/core/fetcher/Supplier.d.ts +1 -1
  472. package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
  473. package/dist/core/fetcher/createRequestUrl.js +1 -2
  474. package/dist/core/fetcher/custom.js +2 -2
  475. package/dist/core/fetcher/getFetchFn.js +18 -9
  476. package/dist/core/fetcher/getHeader.js +1 -2
  477. package/dist/core/fetcher/getRequestBody.js +5 -5
  478. package/dist/core/fetcher/getResponseBody.js +1 -2
  479. package/dist/core/fetcher/makeRequest.d.ts +1 -1
  480. package/dist/core/fetcher/requestWithRetries.js +4 -5
  481. package/dist/core/fetcher/signals.d.ts +0 -1
  482. package/dist/core/fetcher/signals.js +2 -3
  483. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
  484. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
  485. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
  486. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
  487. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
  488. package/dist/core/index.js +17 -7
  489. package/dist/core/json.d.ts +15 -0
  490. package/dist/core/json.js +24 -0
  491. package/dist/core/runtime/runtime.d.ts +1 -1
  492. package/dist/core/runtime/runtime.js +51 -41
  493. package/dist/core/schemas/Schema.d.ts +7 -5
  494. package/dist/core/schemas/Schema.js +2 -0
  495. package/dist/core/schemas/builders/bigint/bigint.d.ts +1 -1
  496. package/dist/core/schemas/builders/bigint/bigint.js +22 -19
  497. package/dist/core/schemas/builders/date/date.js +1 -2
  498. package/dist/core/schemas/builders/enum/enum.js +1 -2
  499. package/dist/core/schemas/builders/lazy/lazy.d.ts +1 -1
  500. package/dist/core/schemas/builders/lazy/lazy.js +3 -4
  501. package/dist/core/schemas/builders/lazy/lazyObject.js +1 -2
  502. package/dist/core/schemas/builders/list/list.js +1 -2
  503. package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
  504. package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
  505. package/dist/core/schemas/builders/object/object.d.ts +1 -1
  506. package/dist/core/schemas/builders/object/object.js +31 -3
  507. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
  508. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
  509. package/dist/core/schemas/builders/object/property.js +2 -3
  510. package/dist/core/schemas/builders/object/types.d.ts +16 -11
  511. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
  512. package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
  513. package/dist/core/schemas/builders/record/record.js +2 -4
  514. package/dist/core/schemas/builders/record/types.d.ts +2 -2
  515. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
  516. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
  517. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
  518. package/dist/core/schemas/builders/set/set.js +1 -2
  519. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
  520. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
  521. package/dist/core/schemas/builders/union/discriminant.js +1 -2
  522. package/dist/core/schemas/builders/union/types.d.ts +6 -6
  523. package/dist/core/schemas/builders/union/union.d.ts +1 -1
  524. package/dist/core/schemas/builders/union/union.js +1 -2
  525. package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
  526. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
  527. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
  528. package/dist/core/schemas/utils/entries.d.ts +1 -1
  529. package/dist/core/schemas/utils/entries.js +1 -2
  530. package/dist/core/schemas/utils/filterObject.d.ts +1 -1
  531. package/dist/core/schemas/utils/filterObject.js +1 -2
  532. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
  533. package/dist/core/schemas/utils/isPlainObject.js +1 -2
  534. package/dist/core/schemas/utils/keys.d.ts +1 -1
  535. package/dist/core/schemas/utils/keys.js +1 -2
  536. package/dist/core/schemas/utils/maybeSkipValidation.js +1 -2
  537. package/dist/core/schemas/utils/partition.js +1 -2
  538. package/dist/environments.d.ts +1 -1
  539. package/dist/errors/SchematicError.js +2 -1
  540. package/dist/errors/SchematicTimeoutError.d.ts +1 -1
  541. package/dist/errors/SchematicTimeoutError.js +2 -2
  542. package/dist/events.test.js +1 -1
  543. package/dist/index.d.ts +1 -0
  544. package/dist/index.js +26 -8
  545. package/dist/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +17 -7
  546. package/dist/serialization/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.js +17 -7
  547. package/dist/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.js +17 -7
  548. package/dist/serialization/resources/accounts/client/requests/CreateEnvironmentRequestBody.js +17 -7
  549. package/dist/serialization/resources/accounts/client/requests/UpdateApiKeyRequestBody.js +17 -7
  550. package/dist/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.js +17 -7
  551. package/dist/serialization/resources/accounts/types/CountApiKeysParams.js +17 -7
  552. package/dist/serialization/resources/accounts/types/CountApiKeysResponse.js +17 -7
  553. package/dist/serialization/resources/accounts/types/CountApiRequestsParams.js +17 -7
  554. package/dist/serialization/resources/accounts/types/CountApiRequestsResponse.js +17 -7
  555. package/dist/serialization/resources/accounts/types/CreateApiKeyResponse.js +17 -7
  556. package/dist/serialization/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.js +17 -7
  557. package/dist/serialization/resources/accounts/types/CreateEnvironmentResponse.js +17 -7
  558. package/dist/serialization/resources/accounts/types/DeleteApiKeyResponse.js +17 -7
  559. package/dist/serialization/resources/accounts/types/DeleteEnvironmentResponse.js +17 -7
  560. package/dist/serialization/resources/accounts/types/GetApiKeyResponse.js +17 -7
  561. package/dist/serialization/resources/accounts/types/GetApiRequestResponse.js +17 -7
  562. package/dist/serialization/resources/accounts/types/GetEnvironmentResponse.js +17 -7
  563. package/dist/serialization/resources/accounts/types/ListApiKeysParams.js +17 -7
  564. package/dist/serialization/resources/accounts/types/ListApiKeysResponse.js +17 -7
  565. package/dist/serialization/resources/accounts/types/ListApiRequestsParams.js +17 -7
  566. package/dist/serialization/resources/accounts/types/ListApiRequestsResponse.js +17 -7
  567. package/dist/serialization/resources/accounts/types/ListEnvironmentsParams.js +17 -7
  568. package/dist/serialization/resources/accounts/types/ListEnvironmentsResponse.js +17 -7
  569. package/dist/serialization/resources/accounts/types/UpdateApiKeyResponse.js +17 -7
  570. package/dist/serialization/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.js +17 -7
  571. package/dist/serialization/resources/accounts/types/UpdateEnvironmentResponse.js +17 -7
  572. package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
  573. package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.js +18 -7
  574. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +7 -1
  575. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +24 -8
  576. package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -0
  577. package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +18 -7
  578. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +5 -1
  579. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +22 -8
  580. package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +17 -7
  581. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +17 -7
  582. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +17 -7
  583. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
  584. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +17 -8
  585. package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +2 -1
  586. package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +19 -8
  587. package/dist/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +10 -0
  588. package/dist/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +41 -0
  589. package/dist/serialization/resources/billing/types/CountBillingProductsResponse.js +17 -7
  590. package/dist/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
  591. package/dist/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +41 -0
  592. package/dist/serialization/resources/billing/types/CountCustomersParams.js +17 -7
  593. package/dist/serialization/resources/billing/types/CountCustomersResponse.js +17 -7
  594. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +10 -0
  595. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +41 -0
  596. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +10 -0
  597. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +41 -0
  598. package/dist/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +10 -0
  599. package/dist/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +41 -0
  600. package/dist/serialization/resources/billing/types/DeleteBillingProductResponse.d.ts +14 -0
  601. package/dist/serialization/resources/billing/types/DeleteBillingProductResponse.js +45 -0
  602. package/dist/serialization/resources/billing/types/DeleteProductPriceResponse.js +17 -7
  603. package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +2 -1
  604. package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +19 -8
  605. package/dist/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +10 -0
  606. package/dist/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +41 -0
  607. package/dist/serialization/resources/billing/types/ListBillingProductsResponse.js +17 -7
  608. package/dist/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
  609. package/dist/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +41 -0
  610. package/dist/serialization/resources/billing/types/ListCouponsParams.d.ts +15 -0
  611. package/dist/serialization/resources/billing/types/ListCouponsParams.js +46 -0
  612. package/dist/serialization/resources/billing/types/ListCouponsResponse.d.ts +15 -0
  613. package/dist/serialization/resources/billing/types/ListCouponsResponse.js +46 -0
  614. package/dist/serialization/resources/billing/types/ListCustomersParams.js +17 -7
  615. package/dist/serialization/resources/billing/types/ListCustomersResponse.js +17 -7
  616. package/dist/serialization/resources/billing/types/ListInvoicesParams.js +17 -7
  617. package/dist/serialization/resources/billing/types/ListInvoicesResponse.js +17 -7
  618. package/dist/serialization/resources/billing/types/ListMetersParams.js +17 -7
  619. package/dist/serialization/resources/billing/types/ListMetersResponse.js +17 -7
  620. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
  621. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.js +17 -8
  622. package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.js +17 -7
  623. package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +2 -1
  624. package/dist/serialization/resources/billing/types/ListProductPricesParams.js +19 -8
  625. package/dist/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +10 -0
  626. package/dist/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.js +41 -0
  627. package/dist/serialization/resources/billing/types/ListProductPricesResponse.js +17 -7
  628. package/dist/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +10 -0
  629. package/dist/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +41 -0
  630. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
  631. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +20 -8
  632. package/dist/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +10 -0
  633. package/dist/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.js +41 -0
  634. package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.js +17 -7
  635. package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +10 -0
  636. package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +41 -0
  637. package/dist/serialization/resources/billing/types/UpsertBillingCouponResponse.js +17 -7
  638. package/dist/serialization/resources/billing/types/UpsertBillingCustomerResponse.js +17 -7
  639. package/dist/serialization/resources/billing/types/UpsertBillingMeterResponse.js +17 -7
  640. package/dist/serialization/resources/billing/types/UpsertBillingPriceResponse.js +17 -7
  641. package/dist/serialization/resources/billing/types/UpsertBillingProductResponse.js +17 -7
  642. package/dist/serialization/resources/billing/types/UpsertBillingSubscriptionResponse.js +17 -7
  643. package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.js +17 -7
  644. package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +17 -7
  645. package/dist/serialization/resources/billing/types/index.d.ts +14 -0
  646. package/dist/serialization/resources/billing/types/index.js +14 -0
  647. package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
  648. package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.js +44 -0
  649. package/dist/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +17 -7
  650. package/dist/serialization/resources/checkout/client/requests/index.d.ts +1 -0
  651. package/dist/serialization/resources/checkout/client/requests/index.js +3 -1
  652. package/dist/serialization/resources/checkout/types/CheckoutInternalResponse.js +17 -7
  653. package/dist/serialization/resources/checkout/types/GetCheckoutDataResponse.js +17 -7
  654. package/dist/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +17 -7
  655. package/dist/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +17 -7
  656. package/dist/serialization/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.js +17 -7
  657. package/dist/serialization/resources/companies/client/requests/GetOrCreateCompanyMembershipRequestBody.js +17 -7
  658. package/dist/serialization/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.js +17 -7
  659. package/dist/serialization/resources/companies/types/CountCompaniesParams.js +17 -7
  660. package/dist/serialization/resources/companies/types/CountCompaniesResponse.js +17 -7
  661. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsParams.js +17 -7
  662. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.js +17 -7
  663. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsResponse.js +17 -7
  664. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
  665. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsParams.js +17 -7
  666. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.js +17 -7
  667. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.js +17 -7
  668. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponse.js +17 -7
  669. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
  670. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
  671. package/dist/serialization/resources/companies/types/CountUsersParams.js +17 -7
  672. package/dist/serialization/resources/companies/types/CountUsersResponse.js +17 -7
  673. package/dist/serialization/resources/companies/types/CreateCompanyResponse.js +17 -7
  674. package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.js +17 -7
  675. package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
  676. package/dist/serialization/resources/companies/types/CreateUserResponse.js +17 -7
  677. package/dist/serialization/resources/companies/types/DeleteCompanyByKeysResponse.js +17 -7
  678. package/dist/serialization/resources/companies/types/DeleteCompanyMembershipResponse.js +17 -7
  679. package/dist/serialization/resources/companies/types/DeleteCompanyResponse.js +17 -7
  680. package/dist/serialization/resources/companies/types/DeleteUserByKeysResponse.js +17 -7
  681. package/dist/serialization/resources/companies/types/DeleteUserResponse.js +17 -7
  682. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +17 -7
  683. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionResponse.js +17 -7
  684. package/dist/serialization/resources/companies/types/GetActiveDealsParams.js +17 -7
  685. package/dist/serialization/resources/companies/types/GetActiveDealsResponse.js +17 -7
  686. package/dist/serialization/resources/companies/types/GetCompanyResponse.js +17 -7
  687. package/dist/serialization/resources/companies/types/GetEntityTraitDefinitionResponse.js +17 -7
  688. package/dist/serialization/resources/companies/types/GetEntityTraitValuesParams.js +17 -7
  689. package/dist/serialization/resources/companies/types/GetEntityTraitValuesResponse.js +17 -7
  690. package/dist/serialization/resources/companies/types/GetOrCreateCompanyMembershipResponse.js +17 -7
  691. package/dist/serialization/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.js +17 -7
  692. package/dist/serialization/resources/companies/types/GetUserResponse.js +17 -7
  693. package/dist/serialization/resources/companies/types/ListCompaniesParams.js +17 -7
  694. package/dist/serialization/resources/companies/types/ListCompaniesResponse.js +17 -7
  695. package/dist/serialization/resources/companies/types/ListCompanyMembershipsParams.js +17 -7
  696. package/dist/serialization/resources/companies/types/ListCompanyMembershipsResponse.js +17 -7
  697. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsParams.js +17 -7
  698. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.js +17 -7
  699. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsResponse.js +17 -7
  700. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
  701. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsParams.js +17 -7
  702. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.js +17 -7
  703. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.js +17 -7
  704. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponse.js +17 -7
  705. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
  706. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
  707. package/dist/serialization/resources/companies/types/ListUsersParams.js +17 -7
  708. package/dist/serialization/resources/companies/types/ListUsersResponse.js +17 -7
  709. package/dist/serialization/resources/companies/types/LookupCompanyParams.js +17 -7
  710. package/dist/serialization/resources/companies/types/LookupCompanyResponse.js +17 -7
  711. package/dist/serialization/resources/companies/types/LookupUserParams.js +17 -7
  712. package/dist/serialization/resources/companies/types/LookupUserResponse.js +17 -7
  713. package/dist/serialization/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
  714. package/dist/serialization/resources/companies/types/UpdateEntityTraitDefinitionResponse.js +17 -7
  715. package/dist/serialization/resources/companies/types/UpsertCompanyResponse.js +17 -7
  716. package/dist/serialization/resources/companies/types/UpsertCompanyTraitResponse.js +17 -7
  717. package/dist/serialization/resources/companies/types/UpsertUserResponse.js +17 -7
  718. package/dist/serialization/resources/companies/types/UpsertUserTraitResponse.js +17 -7
  719. package/dist/serialization/resources/components/client/requests/CreateComponentRequestBody.js +17 -7
  720. package/dist/serialization/resources/components/client/requests/UpdateComponentRequestBody.js +17 -7
  721. package/dist/serialization/resources/components/types/CountComponentsParams.js +17 -7
  722. package/dist/serialization/resources/components/types/CountComponentsResponse.js +17 -7
  723. package/dist/serialization/resources/components/types/CreateComponentRequestBodyEntityType.js +17 -7
  724. package/dist/serialization/resources/components/types/CreateComponentResponse.js +17 -7
  725. package/dist/serialization/resources/components/types/DeleteComponentResponse.js +17 -7
  726. package/dist/serialization/resources/components/types/GetComponentResponse.js +17 -7
  727. package/dist/serialization/resources/components/types/ListComponentsParams.js +17 -7
  728. package/dist/serialization/resources/components/types/ListComponentsResponse.js +17 -7
  729. package/dist/serialization/resources/components/types/PreviewComponentDataParams.js +17 -7
  730. package/dist/serialization/resources/components/types/PreviewComponentDataResponse.js +17 -7
  731. package/dist/serialization/resources/components/types/UpdateComponentRequestBodyEntityType.js +17 -7
  732. package/dist/serialization/resources/components/types/UpdateComponentRequestBodyState.js +17 -7
  733. package/dist/serialization/resources/components/types/UpdateComponentResponse.js +17 -7
  734. package/dist/serialization/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.js +17 -7
  735. package/dist/serialization/resources/crm/client/requests/CreateCrmDealRequestBody.js +17 -7
  736. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +17 -7
  737. package/dist/serialization/resources/crm/client/requests/CreateCrmProductRequestBody.js +17 -7
  738. package/dist/serialization/resources/crm/types/ListCrmProductsParams.js +17 -7
  739. package/dist/serialization/resources/crm/types/ListCrmProductsResponse.js +17 -7
  740. package/dist/serialization/resources/crm/types/UpsertCrmDealResponse.js +17 -7
  741. package/dist/serialization/resources/crm/types/UpsertCrmProductResponse.js +17 -7
  742. package/dist/serialization/resources/crm/types/UpsertDealLineItemAssociationResponse.js +17 -7
  743. package/dist/serialization/resources/crm/types/UpsertLineItemResponse.js +17 -7
  744. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +17 -7
  745. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  746. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +18 -7
  747. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +17 -7
  748. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
  749. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +18 -7
  750. package/dist/serialization/resources/entitlements/types/CountCompanyOverridesParams.js +17 -7
  751. package/dist/serialization/resources/entitlements/types/CountCompanyOverridesResponse.js +17 -7
  752. package/dist/serialization/resources/entitlements/types/CountFeatureCompaniesParams.js +17 -7
  753. package/dist/serialization/resources/entitlements/types/CountFeatureCompaniesResponse.js +17 -7
  754. package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.js +17 -7
  755. package/dist/serialization/resources/entitlements/types/CountFeatureUsageResponse.js +17 -7
  756. package/dist/serialization/resources/entitlements/types/CountFeatureUsersParams.js +17 -7
  757. package/dist/serialization/resources/entitlements/types/CountFeatureUsersResponse.js +17 -7
  758. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +17 -7
  759. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsResponse.js +17 -7
  760. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
  761. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
  762. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +17 -7
  763. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideResponse.js +17 -7
  764. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
  765. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
  766. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +17 -7
  767. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementResponse.js +17 -7
  768. package/dist/serialization/resources/entitlements/types/DeleteCompanyOverrideResponse.js +17 -7
  769. package/dist/serialization/resources/entitlements/types/DeletePlanEntitlementResponse.js +17 -7
  770. package/dist/serialization/resources/entitlements/types/GetCompanyOverrideResponse.js +17 -7
  771. package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +17 -7
  772. package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyResponse.js +17 -7
  773. package/dist/serialization/resources/entitlements/types/GetPlanEntitlementResponse.js +17 -7
  774. package/dist/serialization/resources/entitlements/types/ListCompanyOverridesParams.js +17 -7
  775. package/dist/serialization/resources/entitlements/types/ListCompanyOverridesResponse.js +17 -7
  776. package/dist/serialization/resources/entitlements/types/ListFeatureCompaniesParams.js +17 -7
  777. package/dist/serialization/resources/entitlements/types/ListFeatureCompaniesResponse.js +17 -7
  778. package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.js +17 -7
  779. package/dist/serialization/resources/entitlements/types/ListFeatureUsageResponse.js +17 -7
  780. package/dist/serialization/resources/entitlements/types/ListFeatureUsersParams.js +17 -7
  781. package/dist/serialization/resources/entitlements/types/ListFeatureUsersResponse.js +17 -7
  782. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +17 -7
  783. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsResponse.js +17 -7
  784. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
  785. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
  786. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +17 -7
  787. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideResponse.js +17 -7
  788. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
  789. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
  790. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +17 -7
  791. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementResponse.js +17 -7
  792. package/dist/serialization/resources/events/client/requests/CreateEventBatchRequestBody.js +17 -7
  793. package/dist/serialization/resources/events/types/CreateEventBatchResponse.js +17 -7
  794. package/dist/serialization/resources/events/types/CreateEventResponse.js +17 -7
  795. package/dist/serialization/resources/events/types/GetEventResponse.js +17 -7
  796. package/dist/serialization/resources/events/types/GetEventSummariesParams.js +17 -7
  797. package/dist/serialization/resources/events/types/GetEventSummariesResponse.js +17 -7
  798. package/dist/serialization/resources/events/types/GetSegmentIntegrationStatusResponse.js +17 -7
  799. package/dist/serialization/resources/events/types/ListEventsParams.js +17 -7
  800. package/dist/serialization/resources/events/types/ListEventsResponse.js +17 -7
  801. package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  802. package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +19 -7
  803. package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  804. package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +19 -7
  805. package/dist/serialization/resources/features/client/requests/UpdateFlagRulesRequestBody.js +17 -7
  806. package/dist/serialization/resources/features/types/CheckFlagResponse.js +17 -7
  807. package/dist/serialization/resources/features/types/CheckFlagsResponse.js +17 -7
  808. package/dist/serialization/resources/features/types/CountAudienceCompaniesResponse.js +17 -7
  809. package/dist/serialization/resources/features/types/CountAudienceUsersResponse.js +17 -7
  810. package/dist/serialization/resources/features/types/CountFeaturesParams.js +17 -7
  811. package/dist/serialization/resources/features/types/CountFeaturesResponse.js +17 -7
  812. package/dist/serialization/resources/features/types/CountFlagsParams.js +17 -7
  813. package/dist/serialization/resources/features/types/CountFlagsResponse.js +17 -7
  814. package/dist/serialization/resources/features/types/CreateFeatureRequestBodyFeatureType.js +17 -7
  815. package/dist/serialization/resources/features/types/CreateFeatureResponse.js +17 -7
  816. package/dist/serialization/resources/features/types/CreateFlagResponse.js +17 -7
  817. package/dist/serialization/resources/features/types/DeleteFeatureResponse.js +17 -7
  818. package/dist/serialization/resources/features/types/DeleteFlagResponse.js +17 -7
  819. package/dist/serialization/resources/features/types/GetFeatureResponse.js +17 -7
  820. package/dist/serialization/resources/features/types/GetFlagResponse.js +17 -7
  821. package/dist/serialization/resources/features/types/ListAudienceCompaniesResponse.js +17 -7
  822. package/dist/serialization/resources/features/types/ListAudienceUsersResponse.js +17 -7
  823. package/dist/serialization/resources/features/types/ListFeaturesParams.js +17 -7
  824. package/dist/serialization/resources/features/types/ListFeaturesResponse.js +17 -7
  825. package/dist/serialization/resources/features/types/ListFlagsParams.js +17 -7
  826. package/dist/serialization/resources/features/types/ListFlagsResponse.js +17 -7
  827. package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyFeatureType.js +17 -7
  828. package/dist/serialization/resources/features/types/UpdateFeatureResponse.js +17 -7
  829. package/dist/serialization/resources/features/types/UpdateFlagResponse.js +17 -7
  830. package/dist/serialization/resources/features/types/UpdateFlagRulesResponse.js +17 -7
  831. package/dist/serialization/resources/index.js +17 -7
  832. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +5 -1
  833. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +22 -8
  834. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +5 -1
  835. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +22 -8
  836. package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +17 -7
  837. package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.js +17 -7
  838. package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +17 -7
  839. package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +17 -7
  840. package/dist/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.js +17 -7
  841. package/dist/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +17 -7
  842. package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +17 -7
  843. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +17 -7
  844. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +1 -0
  845. package/dist/serialization/resources/plans/types/CountPlansParams.js +18 -7
  846. package/dist/serialization/resources/plans/types/CountPlansRequestPlanType.js +17 -7
  847. package/dist/serialization/resources/plans/types/CountPlansResponse.js +17 -7
  848. package/dist/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +17 -7
  849. package/dist/serialization/resources/plans/types/CreatePlanRequestBodyPlanType.js +17 -7
  850. package/dist/serialization/resources/plans/types/CreatePlanResponse.js +17 -7
  851. package/dist/serialization/resources/plans/types/DeleteAudienceResponse.js +17 -7
  852. package/dist/serialization/resources/plans/types/DeletePlanResponse.js +17 -7
  853. package/dist/serialization/resources/plans/types/GetAudienceResponse.js +17 -7
  854. package/dist/serialization/resources/plans/types/GetPlanResponse.js +17 -7
  855. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
  856. package/dist/serialization/resources/plans/types/ListPlansParams.js +18 -7
  857. package/dist/serialization/resources/plans/types/ListPlansRequestPlanType.js +17 -7
  858. package/dist/serialization/resources/plans/types/ListPlansResponse.js +17 -7
  859. package/dist/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +17 -7
  860. package/dist/serialization/resources/plans/types/UpdateAudienceResponse.js +17 -7
  861. package/dist/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +17 -7
  862. package/dist/serialization/resources/plans/types/UpdatePlanResponse.js +17 -7
  863. package/dist/serialization/resources/plans/types/UpsertBillingProductPlanResponse.js +17 -7
  864. package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +17 -7
  865. package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +17 -7
  866. package/dist/serialization/resources/webhooks/types/CountWebhookEventsParams.js +17 -7
  867. package/dist/serialization/resources/webhooks/types/CountWebhookEventsResponse.js +17 -7
  868. package/dist/serialization/resources/webhooks/types/CountWebhooksParams.js +17 -7
  869. package/dist/serialization/resources/webhooks/types/CountWebhooksResponse.js +17 -7
  870. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +17 -7
  871. package/dist/serialization/resources/webhooks/types/CreateWebhookResponse.js +17 -7
  872. package/dist/serialization/resources/webhooks/types/DeleteWebhookResponse.js +17 -7
  873. package/dist/serialization/resources/webhooks/types/GetWebhookEventResponse.js +17 -7
  874. package/dist/serialization/resources/webhooks/types/GetWebhookResponse.js +17 -7
  875. package/dist/serialization/resources/webhooks/types/ListWebhookEventsParams.js +17 -7
  876. package/dist/serialization/resources/webhooks/types/ListWebhookEventsResponse.js +17 -7
  877. package/dist/serialization/resources/webhooks/types/ListWebhooksParams.js +17 -7
  878. package/dist/serialization/resources/webhooks/types/ListWebhooksResponse.js +17 -7
  879. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +17 -7
  880. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyStatus.js +17 -7
  881. package/dist/serialization/resources/webhooks/types/UpdateWebhookResponse.js +17 -7
  882. package/dist/serialization/types/ApiError.js +17 -7
  883. package/dist/serialization/types/ApiKeyCreateResponseData.js +17 -7
  884. package/dist/serialization/types/ApiKeyRequestListResponseData.js +17 -7
  885. package/dist/serialization/types/ApiKeyRequestResponseData.js +17 -7
  886. package/dist/serialization/types/ApiKeyResponseData.js +17 -7
  887. package/dist/serialization/types/AudienceRequestBody.js +17 -7
  888. package/dist/serialization/types/BillingCouponResponseData.js +17 -7
  889. package/dist/serialization/types/BillingCustomerResponseData.js +17 -7
  890. package/dist/serialization/types/BillingCustomerSubscription.js +17 -7
  891. package/dist/serialization/types/BillingCustomerWithSubscriptionsResponseData.js +17 -7
  892. package/dist/serialization/types/BillingMeterResponseData.js +17 -7
  893. package/dist/serialization/types/BillingPriceResponseData.js +17 -7
  894. package/dist/serialization/types/BillingPriceView.js +17 -7
  895. package/dist/serialization/types/BillingProductDetailResponseData.d.ts +1 -0
  896. package/dist/serialization/types/BillingProductDetailResponseData.js +18 -7
  897. package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +17 -7
  898. package/dist/serialization/types/BillingProductPlanResponseData.js +17 -7
  899. package/dist/serialization/types/BillingProductPriceResponseData.js +17 -7
  900. package/dist/serialization/types/BillingProductPricing.d.ts +2 -1
  901. package/dist/serialization/types/BillingProductPricing.js +19 -8
  902. package/dist/serialization/types/BillingProductPricingUsageType.d.ts +10 -0
  903. package/dist/serialization/types/BillingProductPricingUsageType.js +41 -0
  904. package/dist/serialization/types/BillingProductResponseData.js +17 -7
  905. package/dist/serialization/types/BillingSubscriptionDiscount.js +17 -7
  906. package/dist/serialization/types/BillingSubscriptionDiscountView.js +17 -7
  907. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +3 -0
  908. package/dist/serialization/types/BillingSubscriptionResponseData.js +20 -7
  909. package/dist/serialization/types/BillingSubscriptionView.d.ts +3 -0
  910. package/dist/serialization/types/BillingSubscriptionView.js +20 -7
  911. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  912. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.js +18 -7
  913. package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  914. package/dist/serialization/types/ChangeSubscriptionRequestBody.js +18 -7
  915. package/dist/serialization/types/CheckFlagRequestBody.js +17 -7
  916. package/dist/serialization/types/CheckFlagResponseData.js +17 -7
  917. package/dist/serialization/types/CheckFlagsResponseData.js +17 -7
  918. package/dist/serialization/types/CheckoutDataResponseData.d.ts +2 -0
  919. package/dist/serialization/types/CheckoutDataResponseData.js +19 -7
  920. package/dist/serialization/types/CompanyCrmDealsResponseData.js +17 -7
  921. package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -0
  922. package/dist/serialization/types/CompanyDetailResponseData.js +19 -7
  923. package/dist/serialization/types/CompanyEventPeriodMetricsResponseData.js +17 -7
  924. package/dist/serialization/types/CompanyMembershipDetailResponseData.js +17 -7
  925. package/dist/serialization/types/CompanyMembershipResponseData.js +17 -7
  926. package/dist/serialization/types/CompanyOverrideResponseData.js +17 -7
  927. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
  928. package/dist/serialization/types/CompanyPlanDetailResponseData.js +21 -7
  929. package/dist/serialization/types/CompanyPlanWithBillingSubView.js +17 -7
  930. package/dist/serialization/types/CompanyResponseData.js +17 -7
  931. package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +2 -0
  932. package/dist/serialization/types/CompanySubscriptionResponseData.js +19 -7
  933. package/dist/serialization/types/ComponentCapabilities.d.ts +1 -0
  934. package/dist/serialization/types/ComponentCapabilities.js +18 -7
  935. package/dist/serialization/types/ComponentHydrateResponseData.js +17 -7
  936. package/dist/serialization/types/ComponentPreviewResponseData.js +17 -7
  937. package/dist/serialization/types/ComponentResponseData.js +17 -7
  938. package/dist/serialization/types/CountResponse.js +17 -7
  939. package/dist/serialization/types/CouponRequestBody.js +17 -7
  940. package/dist/serialization/types/CreateBillingPriceTierRequestBody.d.ts +15 -0
  941. package/dist/serialization/types/CreateBillingPriceTierRequestBody.js +46 -0
  942. package/dist/serialization/types/CreateEntitlementReqCommon.js +17 -7
  943. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +17 -7
  944. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
  945. package/dist/serialization/types/CreateEntitlementReqCommonValueType.js +17 -7
  946. package/dist/serialization/types/CreateEventRequestBody.js +17 -7
  947. package/dist/serialization/types/CreateEventRequestBodyEventType.js +17 -7
  948. package/dist/serialization/types/CreateFlagRequestBody.js +17 -7
  949. package/dist/serialization/types/CreateOrUpdateConditionGroupRequestBody.js +17 -7
  950. package/dist/serialization/types/CreateOrUpdateConditionRequestBody.js +17 -7
  951. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +17 -7
  952. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +17 -7
  953. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +17 -7
  954. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +17 -7
  955. package/dist/serialization/types/CreateOrUpdateFlagRequestBody.js +17 -7
  956. package/dist/serialization/types/CreateOrUpdateRuleRequestBody.js +17 -7
  957. package/dist/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.js +17 -7
  958. package/dist/serialization/types/CrmDealLineItem.js +17 -7
  959. package/dist/serialization/types/CrmDealResponseData.js +17 -7
  960. package/dist/serialization/types/CrmLineItemResponseData.js +17 -7
  961. package/dist/serialization/types/CrmProductResponseData.js +17 -7
  962. package/dist/serialization/types/CustomPlanConfig.d.ts +14 -0
  963. package/dist/serialization/types/CustomPlanConfig.js +45 -0
  964. package/dist/serialization/types/CustomPlanViewConfigResponseData.d.ts +14 -0
  965. package/dist/serialization/types/CustomPlanViewConfigResponseData.js +45 -0
  966. package/dist/serialization/types/Decimal.js +17 -7
  967. package/dist/serialization/types/DeleteResponse.js +17 -7
  968. package/dist/serialization/types/EntitlementsInPlan.d.ts +13 -0
  969. package/dist/serialization/types/EntitlementsInPlan.js +44 -0
  970. package/dist/serialization/types/EntityKeyDefinitionResponseData.js +17 -7
  971. package/dist/serialization/types/EntityKeyDetailResponseData.js +17 -7
  972. package/dist/serialization/types/EntityKeyResponseData.js +17 -7
  973. package/dist/serialization/types/EntityTraitDefinitionResponseData.js +17 -7
  974. package/dist/serialization/types/EntityTraitDetailResponseData.js +17 -7
  975. package/dist/serialization/types/EntityTraitResponseData.js +17 -7
  976. package/dist/serialization/types/EntityTraitValue.js +17 -7
  977. package/dist/serialization/types/EnvironmentDetailResponseData.js +17 -7
  978. package/dist/serialization/types/EnvironmentResponseData.js +17 -7
  979. package/dist/serialization/types/EventBody.js +17 -7
  980. package/dist/serialization/types/EventBodyFlagCheck.js +17 -7
  981. package/dist/serialization/types/EventBodyIdentify.js +17 -7
  982. package/dist/serialization/types/EventBodyIdentifyCompany.js +17 -7
  983. package/dist/serialization/types/EventBodyTrack.d.ts +1 -0
  984. package/dist/serialization/types/EventBodyTrack.js +18 -7
  985. package/dist/serialization/types/EventDetailResponseData.d.ts +1 -0
  986. package/dist/serialization/types/EventDetailResponseData.js +18 -7
  987. package/dist/serialization/types/EventResponseData.d.ts +1 -0
  988. package/dist/serialization/types/EventResponseData.js +18 -7
  989. package/dist/serialization/types/EventSummaryResponseData.js +17 -7
  990. package/dist/serialization/types/FeatureCompanyResponseData.js +17 -7
  991. package/dist/serialization/types/FeatureCompanyResponseDataAllocationType.js +17 -7
  992. package/dist/serialization/types/FeatureCompanyUserResponseData.js +17 -7
  993. package/dist/serialization/types/FeatureCompanyUserResponseDataAllocationType.js +17 -7
  994. package/dist/serialization/types/FeatureDetailResponseData.d.ts +2 -0
  995. package/dist/serialization/types/FeatureDetailResponseData.js +19 -7
  996. package/dist/serialization/types/FeatureResponseData.d.ts +2 -0
  997. package/dist/serialization/types/FeatureResponseData.js +19 -7
  998. package/dist/serialization/types/FeatureUsageDetailResponseData.js +17 -7
  999. package/dist/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  1000. package/dist/serialization/types/FeatureUsageResponseData.js +18 -7
  1001. package/dist/serialization/types/FeatureUsageResponseDataAllocationType.js +17 -7
  1002. package/dist/serialization/types/FlagDetailResponseData.js +17 -7
  1003. package/dist/serialization/types/FlagResponseData.js +17 -7
  1004. package/dist/serialization/types/GenericPreviewObject.js +17 -7
  1005. package/dist/serialization/types/InvoiceRequestBody.js +17 -7
  1006. package/dist/serialization/types/InvoiceResponseData.js +17 -7
  1007. package/dist/serialization/types/IssueTemporaryAccessTokenResponseData.js +17 -7
  1008. package/dist/serialization/types/KeysRequestBody.js +17 -7
  1009. package/dist/serialization/types/MeterRequestBody.js +17 -7
  1010. package/dist/serialization/types/OrderedPlansInGroup.d.ts +14 -0
  1011. package/dist/serialization/types/OrderedPlansInGroup.js +45 -0
  1012. package/dist/serialization/types/PaginationFilter.js +17 -7
  1013. package/dist/serialization/types/PaymentMethodRequestBody.d.ts +0 -1
  1014. package/dist/serialization/types/PaymentMethodRequestBody.js +17 -8
  1015. package/dist/serialization/types/PaymentMethodResponseData.d.ts +0 -1
  1016. package/dist/serialization/types/PaymentMethodResponseData.js +17 -8
  1017. package/dist/serialization/types/PlanAudienceDetailResponseData.js +17 -7
  1018. package/dist/serialization/types/PlanAudienceResponseData.js +17 -7
  1019. package/dist/serialization/types/PlanDetailResponseData.js +17 -7
  1020. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
  1021. package/dist/serialization/types/PlanEntitlementResponseData.js +18 -7
  1022. package/dist/serialization/types/PlanEntitlementsOrder.d.ts +13 -0
  1023. package/dist/serialization/types/PlanEntitlementsOrder.js +44 -0
  1024. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +5 -0
  1025. package/dist/serialization/types/PlanGroupDetailResponseData.js +22 -7
  1026. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  1027. package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +20 -7
  1028. package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.d.ts +14 -0
  1029. package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.js +45 -0
  1030. package/dist/serialization/types/PlanGroupResponseData.d.ts +2 -1
  1031. package/dist/serialization/types/PlanGroupResponseData.js +19 -8
  1032. package/dist/serialization/types/PlanResponseData.js +17 -7
  1033. package/dist/serialization/types/PreviewObject.js +17 -7
  1034. package/dist/serialization/types/PreviewObjectResponseData.js +17 -7
  1035. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +17 -7
  1036. package/dist/serialization/types/RawEventBatchResponseData.js +17 -7
  1037. package/dist/serialization/types/RawEventResponseData.js +17 -7
  1038. package/dist/serialization/types/RuleConditionDetailResponseData.js +17 -7
  1039. package/dist/serialization/types/RuleConditionGroupDetailResponseData.js +17 -7
  1040. package/dist/serialization/types/RuleConditionGroupResponseData.js +17 -7
  1041. package/dist/serialization/types/RuleConditionResponseData.js +17 -7
  1042. package/dist/serialization/types/RuleDetailResponseData.js +17 -7
  1043. package/dist/serialization/types/RuleResponseData.js +17 -7
  1044. package/dist/serialization/types/RulesDetailResponseData.js +17 -7
  1045. package/dist/serialization/types/SegmentStatusResp.js +17 -7
  1046. package/dist/serialization/types/StripeEmbedInfo.js +17 -7
  1047. package/dist/serialization/types/TemporaryAccessTokenResponseData.js +17 -7
  1048. package/dist/serialization/types/UpdateAddOnRequestBody.js +17 -7
  1049. package/dist/serialization/types/UpdateEntitlementReqCommon.js +17 -7
  1050. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +17 -7
  1051. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
  1052. package/dist/serialization/types/UpdateEntitlementReqCommonValueType.js +17 -7
  1053. package/dist/serialization/types/UpdatePayInAdvanceRequestBody.js +17 -7
  1054. package/dist/serialization/types/UpdateRuleRequestBody.js +17 -7
  1055. package/dist/serialization/types/UpsertCompanyRequestBody.js +17 -7
  1056. package/dist/serialization/types/UpsertTraitRequestBody.js +17 -7
  1057. package/dist/serialization/types/UpsertUserRequestBody.js +17 -7
  1058. package/dist/serialization/types/UpsertUserSubRequestBody.js +17 -7
  1059. package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
  1060. package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +18 -7
  1061. package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +2 -0
  1062. package/dist/serialization/types/UsageBasedEntitlementResponseData.js +19 -7
  1063. package/dist/serialization/types/UserDetailResponseData.js +17 -7
  1064. package/dist/serialization/types/UserResponseData.js +17 -7
  1065. package/dist/serialization/types/WebhookEventDetailResponseData.js +17 -7
  1066. package/dist/serialization/types/WebhookEventResponseData.js +17 -7
  1067. package/dist/serialization/types/WebhookResponseData.d.ts +1 -0
  1068. package/dist/serialization/types/WebhookResponseData.js +18 -7
  1069. package/dist/serialization/types/index.d.ts +8 -0
  1070. package/dist/serialization/types/index.js +8 -0
  1071. package/dist/webhooks.d.ts +76 -0
  1072. package/dist/webhooks.js +170 -0
  1073. package/environments.d.ts +1 -1
  1074. package/errors/SchematicError.js +2 -1
  1075. package/errors/SchematicTimeoutError.d.ts +1 -1
  1076. package/errors/SchematicTimeoutError.js +2 -2
  1077. package/events.test.js +1 -1
  1078. package/index.d.ts +1 -0
  1079. package/index.js +26 -8
  1080. package/{jest.config.js → jest.config.mjs} +4 -1
  1081. package/package.json +16 -15
  1082. package/reference.md +121 -7
  1083. package/scripts/rename-to-esm-files.js +115 -0
  1084. package/scripts/webhook-test-server/README.md +24 -0
  1085. package/scripts/webhook-test-server/package-lock.json +196 -0
  1086. package/scripts/webhook-test-server/package.json +13 -0
  1087. package/scripts/webhook-test-server/webhook-test-server.ts +100 -0
  1088. package/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +17 -7
  1089. package/serialization/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.js +17 -7
  1090. package/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.js +17 -7
  1091. package/serialization/resources/accounts/client/requests/CreateEnvironmentRequestBody.js +17 -7
  1092. package/serialization/resources/accounts/client/requests/UpdateApiKeyRequestBody.js +17 -7
  1093. package/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.js +17 -7
  1094. package/serialization/resources/accounts/types/CountApiKeysParams.js +17 -7
  1095. package/serialization/resources/accounts/types/CountApiKeysResponse.js +17 -7
  1096. package/serialization/resources/accounts/types/CountApiRequestsParams.js +17 -7
  1097. package/serialization/resources/accounts/types/CountApiRequestsResponse.js +17 -7
  1098. package/serialization/resources/accounts/types/CreateApiKeyResponse.js +17 -7
  1099. package/serialization/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.js +17 -7
  1100. package/serialization/resources/accounts/types/CreateEnvironmentResponse.js +17 -7
  1101. package/serialization/resources/accounts/types/DeleteApiKeyResponse.js +17 -7
  1102. package/serialization/resources/accounts/types/DeleteEnvironmentResponse.js +17 -7
  1103. package/serialization/resources/accounts/types/GetApiKeyResponse.js +17 -7
  1104. package/serialization/resources/accounts/types/GetApiRequestResponse.js +17 -7
  1105. package/serialization/resources/accounts/types/GetEnvironmentResponse.js +17 -7
  1106. package/serialization/resources/accounts/types/ListApiKeysParams.js +17 -7
  1107. package/serialization/resources/accounts/types/ListApiKeysResponse.js +17 -7
  1108. package/serialization/resources/accounts/types/ListApiRequestsParams.js +17 -7
  1109. package/serialization/resources/accounts/types/ListApiRequestsResponse.js +17 -7
  1110. package/serialization/resources/accounts/types/ListEnvironmentsParams.js +17 -7
  1111. package/serialization/resources/accounts/types/ListEnvironmentsResponse.js +17 -7
  1112. package/serialization/resources/accounts/types/UpdateApiKeyResponse.js +17 -7
  1113. package/serialization/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.js +17 -7
  1114. package/serialization/resources/accounts/types/UpdateEnvironmentResponse.js +17 -7
  1115. package/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
  1116. package/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.js +18 -7
  1117. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +7 -1
  1118. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +24 -8
  1119. package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -0
  1120. package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +18 -7
  1121. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +5 -1
  1122. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +22 -8
  1123. package/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +17 -7
  1124. package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +17 -7
  1125. package/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +17 -7
  1126. package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
  1127. package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +17 -8
  1128. package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +2 -1
  1129. package/serialization/resources/billing/types/CountBillingProductsParams.js +19 -8
  1130. package/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +10 -0
  1131. package/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +41 -0
  1132. package/serialization/resources/billing/types/CountBillingProductsResponse.js +17 -7
  1133. package/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
  1134. package/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +41 -0
  1135. package/serialization/resources/billing/types/CountCustomersParams.js +17 -7
  1136. package/serialization/resources/billing/types/CountCustomersResponse.js +17 -7
  1137. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +10 -0
  1138. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +41 -0
  1139. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +10 -0
  1140. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +41 -0
  1141. package/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +10 -0
  1142. package/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +41 -0
  1143. package/serialization/resources/billing/types/DeleteBillingProductResponse.d.ts +14 -0
  1144. package/serialization/resources/billing/types/DeleteBillingProductResponse.js +45 -0
  1145. package/serialization/resources/billing/types/DeleteProductPriceResponse.js +17 -7
  1146. package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +2 -1
  1147. package/serialization/resources/billing/types/ListBillingProductsParams.js +19 -8
  1148. package/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +10 -0
  1149. package/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +41 -0
  1150. package/serialization/resources/billing/types/ListBillingProductsResponse.js +17 -7
  1151. package/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
  1152. package/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +41 -0
  1153. package/serialization/resources/billing/types/ListCouponsParams.d.ts +15 -0
  1154. package/serialization/resources/billing/types/ListCouponsParams.js +46 -0
  1155. package/serialization/resources/billing/types/ListCouponsResponse.d.ts +15 -0
  1156. package/serialization/resources/billing/types/ListCouponsResponse.js +46 -0
  1157. package/serialization/resources/billing/types/ListCustomersParams.js +17 -7
  1158. package/serialization/resources/billing/types/ListCustomersResponse.js +17 -7
  1159. package/serialization/resources/billing/types/ListInvoicesParams.js +17 -7
  1160. package/serialization/resources/billing/types/ListInvoicesResponse.js +17 -7
  1161. package/serialization/resources/billing/types/ListMetersParams.js +17 -7
  1162. package/serialization/resources/billing/types/ListMetersResponse.js +17 -7
  1163. package/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
  1164. package/serialization/resources/billing/types/ListPaymentMethodsParams.js +17 -8
  1165. package/serialization/resources/billing/types/ListPaymentMethodsResponse.js +17 -7
  1166. package/serialization/resources/billing/types/ListProductPricesParams.d.ts +2 -1
  1167. package/serialization/resources/billing/types/ListProductPricesParams.js +19 -8
  1168. package/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +10 -0
  1169. package/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.js +41 -0
  1170. package/serialization/resources/billing/types/ListProductPricesResponse.js +17 -7
  1171. package/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +10 -0
  1172. package/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +41 -0
  1173. package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
  1174. package/serialization/resources/billing/types/SearchBillingPricesParams.js +20 -8
  1175. package/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +10 -0
  1176. package/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.js +41 -0
  1177. package/serialization/resources/billing/types/SearchBillingPricesResponse.js +17 -7
  1178. package/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +10 -0
  1179. package/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +41 -0
  1180. package/serialization/resources/billing/types/UpsertBillingCouponResponse.js +17 -7
  1181. package/serialization/resources/billing/types/UpsertBillingCustomerResponse.js +17 -7
  1182. package/serialization/resources/billing/types/UpsertBillingMeterResponse.js +17 -7
  1183. package/serialization/resources/billing/types/UpsertBillingPriceResponse.js +17 -7
  1184. package/serialization/resources/billing/types/UpsertBillingProductResponse.js +17 -7
  1185. package/serialization/resources/billing/types/UpsertBillingSubscriptionResponse.js +17 -7
  1186. package/serialization/resources/billing/types/UpsertInvoiceResponse.js +17 -7
  1187. package/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +17 -7
  1188. package/serialization/resources/billing/types/index.d.ts +14 -0
  1189. package/serialization/resources/billing/types/index.js +14 -0
  1190. package/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
  1191. package/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.js +44 -0
  1192. package/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +17 -7
  1193. package/serialization/resources/checkout/client/requests/index.d.ts +1 -0
  1194. package/serialization/resources/checkout/client/requests/index.js +3 -1
  1195. package/serialization/resources/checkout/types/CheckoutInternalResponse.js +17 -7
  1196. package/serialization/resources/checkout/types/GetCheckoutDataResponse.js +17 -7
  1197. package/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +17 -7
  1198. package/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +17 -7
  1199. package/serialization/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.js +17 -7
  1200. package/serialization/resources/companies/client/requests/GetOrCreateCompanyMembershipRequestBody.js +17 -7
  1201. package/serialization/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.js +17 -7
  1202. package/serialization/resources/companies/types/CountCompaniesParams.js +17 -7
  1203. package/serialization/resources/companies/types/CountCompaniesResponse.js +17 -7
  1204. package/serialization/resources/companies/types/CountEntityKeyDefinitionsParams.js +17 -7
  1205. package/serialization/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.js +17 -7
  1206. package/serialization/resources/companies/types/CountEntityKeyDefinitionsResponse.js +17 -7
  1207. package/serialization/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
  1208. package/serialization/resources/companies/types/CountEntityTraitDefinitionsParams.js +17 -7
  1209. package/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.js +17 -7
  1210. package/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.js +17 -7
  1211. package/serialization/resources/companies/types/CountEntityTraitDefinitionsResponse.js +17 -7
  1212. package/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
  1213. package/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
  1214. package/serialization/resources/companies/types/CountUsersParams.js +17 -7
  1215. package/serialization/resources/companies/types/CountUsersResponse.js +17 -7
  1216. package/serialization/resources/companies/types/CreateCompanyResponse.js +17 -7
  1217. package/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.js +17 -7
  1218. package/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
  1219. package/serialization/resources/companies/types/CreateUserResponse.js +17 -7
  1220. package/serialization/resources/companies/types/DeleteCompanyByKeysResponse.js +17 -7
  1221. package/serialization/resources/companies/types/DeleteCompanyMembershipResponse.js +17 -7
  1222. package/serialization/resources/companies/types/DeleteCompanyResponse.js +17 -7
  1223. package/serialization/resources/companies/types/DeleteUserByKeysResponse.js +17 -7
  1224. package/serialization/resources/companies/types/DeleteUserResponse.js +17 -7
  1225. package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +17 -7
  1226. package/serialization/resources/companies/types/GetActiveCompanySubscriptionResponse.js +17 -7
  1227. package/serialization/resources/companies/types/GetActiveDealsParams.js +17 -7
  1228. package/serialization/resources/companies/types/GetActiveDealsResponse.js +17 -7
  1229. package/serialization/resources/companies/types/GetCompanyResponse.js +17 -7
  1230. package/serialization/resources/companies/types/GetEntityTraitDefinitionResponse.js +17 -7
  1231. package/serialization/resources/companies/types/GetEntityTraitValuesParams.js +17 -7
  1232. package/serialization/resources/companies/types/GetEntityTraitValuesResponse.js +17 -7
  1233. package/serialization/resources/companies/types/GetOrCreateCompanyMembershipResponse.js +17 -7
  1234. package/serialization/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.js +17 -7
  1235. package/serialization/resources/companies/types/GetUserResponse.js +17 -7
  1236. package/serialization/resources/companies/types/ListCompaniesParams.js +17 -7
  1237. package/serialization/resources/companies/types/ListCompaniesResponse.js +17 -7
  1238. package/serialization/resources/companies/types/ListCompanyMembershipsParams.js +17 -7
  1239. package/serialization/resources/companies/types/ListCompanyMembershipsResponse.js +17 -7
  1240. package/serialization/resources/companies/types/ListEntityKeyDefinitionsParams.js +17 -7
  1241. package/serialization/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.js +17 -7
  1242. package/serialization/resources/companies/types/ListEntityKeyDefinitionsResponse.js +17 -7
  1243. package/serialization/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
  1244. package/serialization/resources/companies/types/ListEntityTraitDefinitionsParams.js +17 -7
  1245. package/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.js +17 -7
  1246. package/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.js +17 -7
  1247. package/serialization/resources/companies/types/ListEntityTraitDefinitionsResponse.js +17 -7
  1248. package/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
  1249. package/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
  1250. package/serialization/resources/companies/types/ListUsersParams.js +17 -7
  1251. package/serialization/resources/companies/types/ListUsersResponse.js +17 -7
  1252. package/serialization/resources/companies/types/LookupCompanyParams.js +17 -7
  1253. package/serialization/resources/companies/types/LookupCompanyResponse.js +17 -7
  1254. package/serialization/resources/companies/types/LookupUserParams.js +17 -7
  1255. package/serialization/resources/companies/types/LookupUserResponse.js +17 -7
  1256. package/serialization/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
  1257. package/serialization/resources/companies/types/UpdateEntityTraitDefinitionResponse.js +17 -7
  1258. package/serialization/resources/companies/types/UpsertCompanyResponse.js +17 -7
  1259. package/serialization/resources/companies/types/UpsertCompanyTraitResponse.js +17 -7
  1260. package/serialization/resources/companies/types/UpsertUserResponse.js +17 -7
  1261. package/serialization/resources/companies/types/UpsertUserTraitResponse.js +17 -7
  1262. package/serialization/resources/components/client/requests/CreateComponentRequestBody.js +17 -7
  1263. package/serialization/resources/components/client/requests/UpdateComponentRequestBody.js +17 -7
  1264. package/serialization/resources/components/types/CountComponentsParams.js +17 -7
  1265. package/serialization/resources/components/types/CountComponentsResponse.js +17 -7
  1266. package/serialization/resources/components/types/CreateComponentRequestBodyEntityType.js +17 -7
  1267. package/serialization/resources/components/types/CreateComponentResponse.js +17 -7
  1268. package/serialization/resources/components/types/DeleteComponentResponse.js +17 -7
  1269. package/serialization/resources/components/types/GetComponentResponse.js +17 -7
  1270. package/serialization/resources/components/types/ListComponentsParams.js +17 -7
  1271. package/serialization/resources/components/types/ListComponentsResponse.js +17 -7
  1272. package/serialization/resources/components/types/PreviewComponentDataParams.js +17 -7
  1273. package/serialization/resources/components/types/PreviewComponentDataResponse.js +17 -7
  1274. package/serialization/resources/components/types/UpdateComponentRequestBodyEntityType.js +17 -7
  1275. package/serialization/resources/components/types/UpdateComponentRequestBodyState.js +17 -7
  1276. package/serialization/resources/components/types/UpdateComponentResponse.js +17 -7
  1277. package/serialization/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.js +17 -7
  1278. package/serialization/resources/crm/client/requests/CreateCrmDealRequestBody.js +17 -7
  1279. package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +17 -7
  1280. package/serialization/resources/crm/client/requests/CreateCrmProductRequestBody.js +17 -7
  1281. package/serialization/resources/crm/types/ListCrmProductsParams.js +17 -7
  1282. package/serialization/resources/crm/types/ListCrmProductsResponse.js +17 -7
  1283. package/serialization/resources/crm/types/UpsertCrmDealResponse.js +17 -7
  1284. package/serialization/resources/crm/types/UpsertCrmProductResponse.js +17 -7
  1285. package/serialization/resources/crm/types/UpsertDealLineItemAssociationResponse.js +17 -7
  1286. package/serialization/resources/crm/types/UpsertLineItemResponse.js +17 -7
  1287. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +17 -7
  1288. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  1289. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +18 -7
  1290. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +17 -7
  1291. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
  1292. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +18 -7
  1293. package/serialization/resources/entitlements/types/CountCompanyOverridesParams.js +17 -7
  1294. package/serialization/resources/entitlements/types/CountCompanyOverridesResponse.js +17 -7
  1295. package/serialization/resources/entitlements/types/CountFeatureCompaniesParams.js +17 -7
  1296. package/serialization/resources/entitlements/types/CountFeatureCompaniesResponse.js +17 -7
  1297. package/serialization/resources/entitlements/types/CountFeatureUsageParams.js +17 -7
  1298. package/serialization/resources/entitlements/types/CountFeatureUsageResponse.js +17 -7
  1299. package/serialization/resources/entitlements/types/CountFeatureUsersParams.js +17 -7
  1300. package/serialization/resources/entitlements/types/CountFeatureUsersResponse.js +17 -7
  1301. package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +17 -7
  1302. package/serialization/resources/entitlements/types/CountPlanEntitlementsResponse.js +17 -7
  1303. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
  1304. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
  1305. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +17 -7
  1306. package/serialization/resources/entitlements/types/CreateCompanyOverrideResponse.js +17 -7
  1307. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
  1308. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
  1309. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +17 -7
  1310. package/serialization/resources/entitlements/types/CreatePlanEntitlementResponse.js +17 -7
  1311. package/serialization/resources/entitlements/types/DeleteCompanyOverrideResponse.js +17 -7
  1312. package/serialization/resources/entitlements/types/DeletePlanEntitlementResponse.js +17 -7
  1313. package/serialization/resources/entitlements/types/GetCompanyOverrideResponse.js +17 -7
  1314. package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +17 -7
  1315. package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyResponse.js +17 -7
  1316. package/serialization/resources/entitlements/types/GetPlanEntitlementResponse.js +17 -7
  1317. package/serialization/resources/entitlements/types/ListCompanyOverridesParams.js +17 -7
  1318. package/serialization/resources/entitlements/types/ListCompanyOverridesResponse.js +17 -7
  1319. package/serialization/resources/entitlements/types/ListFeatureCompaniesParams.js +17 -7
  1320. package/serialization/resources/entitlements/types/ListFeatureCompaniesResponse.js +17 -7
  1321. package/serialization/resources/entitlements/types/ListFeatureUsageParams.js +17 -7
  1322. package/serialization/resources/entitlements/types/ListFeatureUsageResponse.js +17 -7
  1323. package/serialization/resources/entitlements/types/ListFeatureUsersParams.js +17 -7
  1324. package/serialization/resources/entitlements/types/ListFeatureUsersResponse.js +17 -7
  1325. package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +17 -7
  1326. package/serialization/resources/entitlements/types/ListPlanEntitlementsResponse.js +17 -7
  1327. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
  1328. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
  1329. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +17 -7
  1330. package/serialization/resources/entitlements/types/UpdateCompanyOverrideResponse.js +17 -7
  1331. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
  1332. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
  1333. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +17 -7
  1334. package/serialization/resources/entitlements/types/UpdatePlanEntitlementResponse.js +17 -7
  1335. package/serialization/resources/events/client/requests/CreateEventBatchRequestBody.js +17 -7
  1336. package/serialization/resources/events/types/CreateEventBatchResponse.js +17 -7
  1337. package/serialization/resources/events/types/CreateEventResponse.js +17 -7
  1338. package/serialization/resources/events/types/GetEventResponse.js +17 -7
  1339. package/serialization/resources/events/types/GetEventSummariesParams.js +17 -7
  1340. package/serialization/resources/events/types/GetEventSummariesResponse.js +17 -7
  1341. package/serialization/resources/events/types/GetSegmentIntegrationStatusResponse.js +17 -7
  1342. package/serialization/resources/events/types/ListEventsParams.js +17 -7
  1343. package/serialization/resources/events/types/ListEventsResponse.js +17 -7
  1344. package/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
  1345. package/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +19 -7
  1346. package/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
  1347. package/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +19 -7
  1348. package/serialization/resources/features/client/requests/UpdateFlagRulesRequestBody.js +17 -7
  1349. package/serialization/resources/features/types/CheckFlagResponse.js +17 -7
  1350. package/serialization/resources/features/types/CheckFlagsResponse.js +17 -7
  1351. package/serialization/resources/features/types/CountAudienceCompaniesResponse.js +17 -7
  1352. package/serialization/resources/features/types/CountAudienceUsersResponse.js +17 -7
  1353. package/serialization/resources/features/types/CountFeaturesParams.js +17 -7
  1354. package/serialization/resources/features/types/CountFeaturesResponse.js +17 -7
  1355. package/serialization/resources/features/types/CountFlagsParams.js +17 -7
  1356. package/serialization/resources/features/types/CountFlagsResponse.js +17 -7
  1357. package/serialization/resources/features/types/CreateFeatureRequestBodyFeatureType.js +17 -7
  1358. package/serialization/resources/features/types/CreateFeatureResponse.js +17 -7
  1359. package/serialization/resources/features/types/CreateFlagResponse.js +17 -7
  1360. package/serialization/resources/features/types/DeleteFeatureResponse.js +17 -7
  1361. package/serialization/resources/features/types/DeleteFlagResponse.js +17 -7
  1362. package/serialization/resources/features/types/GetFeatureResponse.js +17 -7
  1363. package/serialization/resources/features/types/GetFlagResponse.js +17 -7
  1364. package/serialization/resources/features/types/ListAudienceCompaniesResponse.js +17 -7
  1365. package/serialization/resources/features/types/ListAudienceUsersResponse.js +17 -7
  1366. package/serialization/resources/features/types/ListFeaturesParams.js +17 -7
  1367. package/serialization/resources/features/types/ListFeaturesResponse.js +17 -7
  1368. package/serialization/resources/features/types/ListFlagsParams.js +17 -7
  1369. package/serialization/resources/features/types/ListFlagsResponse.js +17 -7
  1370. package/serialization/resources/features/types/UpdateFeatureRequestBodyFeatureType.js +17 -7
  1371. package/serialization/resources/features/types/UpdateFeatureResponse.js +17 -7
  1372. package/serialization/resources/features/types/UpdateFlagResponse.js +17 -7
  1373. package/serialization/resources/features/types/UpdateFlagRulesResponse.js +17 -7
  1374. package/serialization/resources/index.js +17 -7
  1375. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +5 -1
  1376. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +22 -8
  1377. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +5 -1
  1378. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +22 -8
  1379. package/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +17 -7
  1380. package/serialization/resources/plangroups/types/GetPlanGroupResponse.js +17 -7
  1381. package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +17 -7
  1382. package/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +17 -7
  1383. package/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.js +17 -7
  1384. package/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +17 -7
  1385. package/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +17 -7
  1386. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +17 -7
  1387. package/serialization/resources/plans/types/CountPlansParams.d.ts +1 -0
  1388. package/serialization/resources/plans/types/CountPlansParams.js +18 -7
  1389. package/serialization/resources/plans/types/CountPlansRequestPlanType.js +17 -7
  1390. package/serialization/resources/plans/types/CountPlansResponse.js +17 -7
  1391. package/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +17 -7
  1392. package/serialization/resources/plans/types/CreatePlanRequestBodyPlanType.js +17 -7
  1393. package/serialization/resources/plans/types/CreatePlanResponse.js +17 -7
  1394. package/serialization/resources/plans/types/DeleteAudienceResponse.js +17 -7
  1395. package/serialization/resources/plans/types/DeletePlanResponse.js +17 -7
  1396. package/serialization/resources/plans/types/GetAudienceResponse.js +17 -7
  1397. package/serialization/resources/plans/types/GetPlanResponse.js +17 -7
  1398. package/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
  1399. package/serialization/resources/plans/types/ListPlansParams.js +18 -7
  1400. package/serialization/resources/plans/types/ListPlansRequestPlanType.js +17 -7
  1401. package/serialization/resources/plans/types/ListPlansResponse.js +17 -7
  1402. package/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +17 -7
  1403. package/serialization/resources/plans/types/UpdateAudienceResponse.js +17 -7
  1404. package/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +17 -7
  1405. package/serialization/resources/plans/types/UpdatePlanResponse.js +17 -7
  1406. package/serialization/resources/plans/types/UpsertBillingProductPlanResponse.js +17 -7
  1407. package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +17 -7
  1408. package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +17 -7
  1409. package/serialization/resources/webhooks/types/CountWebhookEventsParams.js +17 -7
  1410. package/serialization/resources/webhooks/types/CountWebhookEventsResponse.js +17 -7
  1411. package/serialization/resources/webhooks/types/CountWebhooksParams.js +17 -7
  1412. package/serialization/resources/webhooks/types/CountWebhooksResponse.js +17 -7
  1413. package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +17 -7
  1414. package/serialization/resources/webhooks/types/CreateWebhookResponse.js +17 -7
  1415. package/serialization/resources/webhooks/types/DeleteWebhookResponse.js +17 -7
  1416. package/serialization/resources/webhooks/types/GetWebhookEventResponse.js +17 -7
  1417. package/serialization/resources/webhooks/types/GetWebhookResponse.js +17 -7
  1418. package/serialization/resources/webhooks/types/ListWebhookEventsParams.js +17 -7
  1419. package/serialization/resources/webhooks/types/ListWebhookEventsResponse.js +17 -7
  1420. package/serialization/resources/webhooks/types/ListWebhooksParams.js +17 -7
  1421. package/serialization/resources/webhooks/types/ListWebhooksResponse.js +17 -7
  1422. package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +17 -7
  1423. package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyStatus.js +17 -7
  1424. package/serialization/resources/webhooks/types/UpdateWebhookResponse.js +17 -7
  1425. package/serialization/types/ApiError.js +17 -7
  1426. package/serialization/types/ApiKeyCreateResponseData.js +17 -7
  1427. package/serialization/types/ApiKeyRequestListResponseData.js +17 -7
  1428. package/serialization/types/ApiKeyRequestResponseData.js +17 -7
  1429. package/serialization/types/ApiKeyResponseData.js +17 -7
  1430. package/serialization/types/AudienceRequestBody.js +17 -7
  1431. package/serialization/types/BillingCouponResponseData.js +17 -7
  1432. package/serialization/types/BillingCustomerResponseData.js +17 -7
  1433. package/serialization/types/BillingCustomerSubscription.js +17 -7
  1434. package/serialization/types/BillingCustomerWithSubscriptionsResponseData.js +17 -7
  1435. package/serialization/types/BillingMeterResponseData.js +17 -7
  1436. package/serialization/types/BillingPriceResponseData.js +17 -7
  1437. package/serialization/types/BillingPriceView.js +17 -7
  1438. package/serialization/types/BillingProductDetailResponseData.d.ts +1 -0
  1439. package/serialization/types/BillingProductDetailResponseData.js +18 -7
  1440. package/serialization/types/BillingProductForSubscriptionResponseData.js +17 -7
  1441. package/serialization/types/BillingProductPlanResponseData.js +17 -7
  1442. package/serialization/types/BillingProductPriceResponseData.js +17 -7
  1443. package/serialization/types/BillingProductPricing.d.ts +2 -1
  1444. package/serialization/types/BillingProductPricing.js +19 -8
  1445. package/serialization/types/BillingProductPricingUsageType.d.ts +10 -0
  1446. package/serialization/types/BillingProductPricingUsageType.js +41 -0
  1447. package/serialization/types/BillingProductResponseData.js +17 -7
  1448. package/serialization/types/BillingSubscriptionDiscount.js +17 -7
  1449. package/serialization/types/BillingSubscriptionDiscountView.js +17 -7
  1450. package/serialization/types/BillingSubscriptionResponseData.d.ts +3 -0
  1451. package/serialization/types/BillingSubscriptionResponseData.js +20 -7
  1452. package/serialization/types/BillingSubscriptionView.d.ts +3 -0
  1453. package/serialization/types/BillingSubscriptionView.js +20 -7
  1454. package/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  1455. package/serialization/types/ChangeSubscriptionInternalRequestBody.js +18 -7
  1456. package/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  1457. package/serialization/types/ChangeSubscriptionRequestBody.js +18 -7
  1458. package/serialization/types/CheckFlagRequestBody.js +17 -7
  1459. package/serialization/types/CheckFlagResponseData.js +17 -7
  1460. package/serialization/types/CheckFlagsResponseData.js +17 -7
  1461. package/serialization/types/CheckoutDataResponseData.d.ts +2 -0
  1462. package/serialization/types/CheckoutDataResponseData.js +19 -7
  1463. package/serialization/types/CompanyCrmDealsResponseData.js +17 -7
  1464. package/serialization/types/CompanyDetailResponseData.d.ts +2 -0
  1465. package/serialization/types/CompanyDetailResponseData.js +19 -7
  1466. package/serialization/types/CompanyEventPeriodMetricsResponseData.js +17 -7
  1467. package/serialization/types/CompanyMembershipDetailResponseData.js +17 -7
  1468. package/serialization/types/CompanyMembershipResponseData.js +17 -7
  1469. package/serialization/types/CompanyOverrideResponseData.js +17 -7
  1470. package/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
  1471. package/serialization/types/CompanyPlanDetailResponseData.js +21 -7
  1472. package/serialization/types/CompanyPlanWithBillingSubView.js +17 -7
  1473. package/serialization/types/CompanyResponseData.js +17 -7
  1474. package/serialization/types/CompanySubscriptionResponseData.d.ts +2 -0
  1475. package/serialization/types/CompanySubscriptionResponseData.js +19 -7
  1476. package/serialization/types/ComponentCapabilities.d.ts +1 -0
  1477. package/serialization/types/ComponentCapabilities.js +18 -7
  1478. package/serialization/types/ComponentHydrateResponseData.js +17 -7
  1479. package/serialization/types/ComponentPreviewResponseData.js +17 -7
  1480. package/serialization/types/ComponentResponseData.js +17 -7
  1481. package/serialization/types/CountResponse.js +17 -7
  1482. package/serialization/types/CouponRequestBody.js +17 -7
  1483. package/serialization/types/CreateBillingPriceTierRequestBody.d.ts +15 -0
  1484. package/serialization/types/CreateBillingPriceTierRequestBody.js +46 -0
  1485. package/serialization/types/CreateEntitlementReqCommon.js +17 -7
  1486. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +17 -7
  1487. package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
  1488. package/serialization/types/CreateEntitlementReqCommonValueType.js +17 -7
  1489. package/serialization/types/CreateEventRequestBody.js +17 -7
  1490. package/serialization/types/CreateEventRequestBodyEventType.js +17 -7
  1491. package/serialization/types/CreateFlagRequestBody.js +17 -7
  1492. package/serialization/types/CreateOrUpdateConditionGroupRequestBody.js +17 -7
  1493. package/serialization/types/CreateOrUpdateConditionRequestBody.js +17 -7
  1494. package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +17 -7
  1495. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +17 -7
  1496. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +17 -7
  1497. package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +17 -7
  1498. package/serialization/types/CreateOrUpdateFlagRequestBody.js +17 -7
  1499. package/serialization/types/CreateOrUpdateRuleRequestBody.js +17 -7
  1500. package/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.js +17 -7
  1501. package/serialization/types/CrmDealLineItem.js +17 -7
  1502. package/serialization/types/CrmDealResponseData.js +17 -7
  1503. package/serialization/types/CrmLineItemResponseData.js +17 -7
  1504. package/serialization/types/CrmProductResponseData.js +17 -7
  1505. package/serialization/types/CustomPlanConfig.d.ts +14 -0
  1506. package/serialization/types/CustomPlanConfig.js +45 -0
  1507. package/serialization/types/CustomPlanViewConfigResponseData.d.ts +14 -0
  1508. package/serialization/types/CustomPlanViewConfigResponseData.js +45 -0
  1509. package/serialization/types/Decimal.js +17 -7
  1510. package/serialization/types/DeleteResponse.js +17 -7
  1511. package/serialization/types/EntitlementsInPlan.d.ts +13 -0
  1512. package/serialization/types/EntitlementsInPlan.js +44 -0
  1513. package/serialization/types/EntityKeyDefinitionResponseData.js +17 -7
  1514. package/serialization/types/EntityKeyDetailResponseData.js +17 -7
  1515. package/serialization/types/EntityKeyResponseData.js +17 -7
  1516. package/serialization/types/EntityTraitDefinitionResponseData.js +17 -7
  1517. package/serialization/types/EntityTraitDetailResponseData.js +17 -7
  1518. package/serialization/types/EntityTraitResponseData.js +17 -7
  1519. package/serialization/types/EntityTraitValue.js +17 -7
  1520. package/serialization/types/EnvironmentDetailResponseData.js +17 -7
  1521. package/serialization/types/EnvironmentResponseData.js +17 -7
  1522. package/serialization/types/EventBody.js +17 -7
  1523. package/serialization/types/EventBodyFlagCheck.js +17 -7
  1524. package/serialization/types/EventBodyIdentify.js +17 -7
  1525. package/serialization/types/EventBodyIdentifyCompany.js +17 -7
  1526. package/serialization/types/EventBodyTrack.d.ts +1 -0
  1527. package/serialization/types/EventBodyTrack.js +18 -7
  1528. package/serialization/types/EventDetailResponseData.d.ts +1 -0
  1529. package/serialization/types/EventDetailResponseData.js +18 -7
  1530. package/serialization/types/EventResponseData.d.ts +1 -0
  1531. package/serialization/types/EventResponseData.js +18 -7
  1532. package/serialization/types/EventSummaryResponseData.js +17 -7
  1533. package/serialization/types/FeatureCompanyResponseData.js +17 -7
  1534. package/serialization/types/FeatureCompanyResponseDataAllocationType.js +17 -7
  1535. package/serialization/types/FeatureCompanyUserResponseData.js +17 -7
  1536. package/serialization/types/FeatureCompanyUserResponseDataAllocationType.js +17 -7
  1537. package/serialization/types/FeatureDetailResponseData.d.ts +2 -0
  1538. package/serialization/types/FeatureDetailResponseData.js +19 -7
  1539. package/serialization/types/FeatureResponseData.d.ts +2 -0
  1540. package/serialization/types/FeatureResponseData.js +19 -7
  1541. package/serialization/types/FeatureUsageDetailResponseData.js +17 -7
  1542. package/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  1543. package/serialization/types/FeatureUsageResponseData.js +18 -7
  1544. package/serialization/types/FeatureUsageResponseDataAllocationType.js +17 -7
  1545. package/serialization/types/FlagDetailResponseData.js +17 -7
  1546. package/serialization/types/FlagResponseData.js +17 -7
  1547. package/serialization/types/GenericPreviewObject.js +17 -7
  1548. package/serialization/types/InvoiceRequestBody.js +17 -7
  1549. package/serialization/types/InvoiceResponseData.js +17 -7
  1550. package/serialization/types/IssueTemporaryAccessTokenResponseData.js +17 -7
  1551. package/serialization/types/KeysRequestBody.js +17 -7
  1552. package/serialization/types/MeterRequestBody.js +17 -7
  1553. package/serialization/types/OrderedPlansInGroup.d.ts +14 -0
  1554. package/serialization/types/OrderedPlansInGroup.js +45 -0
  1555. package/serialization/types/PaginationFilter.js +17 -7
  1556. package/serialization/types/PaymentMethodRequestBody.d.ts +0 -1
  1557. package/serialization/types/PaymentMethodRequestBody.js +17 -8
  1558. package/serialization/types/PaymentMethodResponseData.d.ts +0 -1
  1559. package/serialization/types/PaymentMethodResponseData.js +17 -8
  1560. package/serialization/types/PlanAudienceDetailResponseData.js +17 -7
  1561. package/serialization/types/PlanAudienceResponseData.js +17 -7
  1562. package/serialization/types/PlanDetailResponseData.js +17 -7
  1563. package/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
  1564. package/serialization/types/PlanEntitlementResponseData.js +18 -7
  1565. package/serialization/types/PlanEntitlementsOrder.d.ts +13 -0
  1566. package/serialization/types/PlanEntitlementsOrder.js +44 -0
  1567. package/serialization/types/PlanGroupDetailResponseData.d.ts +5 -0
  1568. package/serialization/types/PlanGroupDetailResponseData.js +22 -7
  1569. package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  1570. package/serialization/types/PlanGroupPlanDetailResponseData.js +20 -7
  1571. package/serialization/types/PlanGroupPlanEntitlementsOrder.d.ts +14 -0
  1572. package/serialization/types/PlanGroupPlanEntitlementsOrder.js +45 -0
  1573. package/serialization/types/PlanGroupResponseData.d.ts +2 -1
  1574. package/serialization/types/PlanGroupResponseData.js +19 -8
  1575. package/serialization/types/PlanResponseData.js +17 -7
  1576. package/serialization/types/PreviewObject.js +17 -7
  1577. package/serialization/types/PreviewObjectResponseData.js +17 -7
  1578. package/serialization/types/PreviewSubscriptionChangeResponseData.js +17 -7
  1579. package/serialization/types/RawEventBatchResponseData.js +17 -7
  1580. package/serialization/types/RawEventResponseData.js +17 -7
  1581. package/serialization/types/RuleConditionDetailResponseData.js +17 -7
  1582. package/serialization/types/RuleConditionGroupDetailResponseData.js +17 -7
  1583. package/serialization/types/RuleConditionGroupResponseData.js +17 -7
  1584. package/serialization/types/RuleConditionResponseData.js +17 -7
  1585. package/serialization/types/RuleDetailResponseData.js +17 -7
  1586. package/serialization/types/RuleResponseData.js +17 -7
  1587. package/serialization/types/RulesDetailResponseData.js +17 -7
  1588. package/serialization/types/SegmentStatusResp.js +17 -7
  1589. package/serialization/types/StripeEmbedInfo.js +17 -7
  1590. package/serialization/types/TemporaryAccessTokenResponseData.js +17 -7
  1591. package/serialization/types/UpdateAddOnRequestBody.js +17 -7
  1592. package/serialization/types/UpdateEntitlementReqCommon.js +17 -7
  1593. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +17 -7
  1594. package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
  1595. package/serialization/types/UpdateEntitlementReqCommonValueType.js +17 -7
  1596. package/serialization/types/UpdatePayInAdvanceRequestBody.js +17 -7
  1597. package/serialization/types/UpdateRuleRequestBody.js +17 -7
  1598. package/serialization/types/UpsertCompanyRequestBody.js +17 -7
  1599. package/serialization/types/UpsertTraitRequestBody.js +17 -7
  1600. package/serialization/types/UpsertUserRequestBody.js +17 -7
  1601. package/serialization/types/UpsertUserSubRequestBody.js +17 -7
  1602. package/serialization/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
  1603. package/serialization/types/UsageBasedEntitlementRequestBody.js +18 -7
  1604. package/serialization/types/UsageBasedEntitlementResponseData.d.ts +2 -0
  1605. package/serialization/types/UsageBasedEntitlementResponseData.js +19 -7
  1606. package/serialization/types/UserDetailResponseData.js +17 -7
  1607. package/serialization/types/UserResponseData.js +17 -7
  1608. package/serialization/types/WebhookEventDetailResponseData.js +17 -7
  1609. package/serialization/types/WebhookEventResponseData.js +17 -7
  1610. package/serialization/types/WebhookResponseData.d.ts +1 -0
  1611. package/serialization/types/WebhookResponseData.js +18 -7
  1612. package/serialization/types/index.d.ts +8 -0
  1613. package/serialization/types/index.js +8 -0
  1614. package/webhooks.d.ts +76 -0
  1615. package/webhooks.js +170 -0
package/reference.md CHANGED
@@ -1765,6 +1765,54 @@ await client.features.countFlags();
1765
1765
 
1766
1766
  ## billing
1767
1767
 
1768
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listCoupons</a>({ ...params }) -> Schematic.ListCouponsResponse</code></summary>
1769
+ <dl>
1770
+ <dd>
1771
+
1772
+ #### 🔌 Usage
1773
+
1774
+ <dl>
1775
+ <dd>
1776
+
1777
+ <dl>
1778
+ <dd>
1779
+
1780
+ ```typescript
1781
+ await client.billing.listCoupons();
1782
+ ```
1783
+
1784
+ </dd>
1785
+ </dl>
1786
+ </dd>
1787
+ </dl>
1788
+
1789
+ #### ⚙️ Parameters
1790
+
1791
+ <dl>
1792
+ <dd>
1793
+
1794
+ <dl>
1795
+ <dd>
1796
+
1797
+ **request:** `Schematic.ListCouponsRequest`
1798
+
1799
+ </dd>
1800
+ </dl>
1801
+
1802
+ <dl>
1803
+ <dd>
1804
+
1805
+ **requestOptions:** `Billing.RequestOptions`
1806
+
1807
+ </dd>
1808
+ </dl>
1809
+ </dd>
1810
+ </dl>
1811
+
1812
+ </dd>
1813
+ </dl>
1814
+ </details>
1815
+
1768
1816
  <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertBillingCoupon</a>({ ...params }) -> Schematic.UpsertBillingCouponResponse</code></summary>
1769
1817
  <dl>
1770
1818
  <dd>
@@ -2346,12 +2394,18 @@ await client.billing.searchBillingPrices();
2346
2394
  ```typescript
2347
2395
  await client.billing.upsertBillingPrice({
2348
2396
  currency: "currency",
2397
+ externalAccountId: "external_account_id",
2349
2398
  interval: "interval",
2350
2399
  isActive: true,
2351
2400
  price: 1,
2352
2401
  priceExternalId: "price_external_id",
2402
+ priceTiers: [
2403
+ {
2404
+ priceExternalId: "price_external_id",
2405
+ },
2406
+ ],
2353
2407
  productExternalId: "product_external_id",
2354
- usageType: "usage_type",
2408
+ usageType: "licensed",
2355
2409
  });
2356
2410
  ```
2357
2411
 
@@ -2387,6 +2441,54 @@ await client.billing.upsertBillingPrice({
2387
2441
  </dl>
2388
2442
  </details>
2389
2443
 
2444
+ <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">deleteBillingProduct</a>(billingId) -> Schematic.DeleteBillingProductResponse</code></summary>
2445
+ <dl>
2446
+ <dd>
2447
+
2448
+ #### 🔌 Usage
2449
+
2450
+ <dl>
2451
+ <dd>
2452
+
2453
+ <dl>
2454
+ <dd>
2455
+
2456
+ ```typescript
2457
+ await client.billing.deleteBillingProduct("billing_id");
2458
+ ```
2459
+
2460
+ </dd>
2461
+ </dl>
2462
+ </dd>
2463
+ </dl>
2464
+
2465
+ #### ⚙️ Parameters
2466
+
2467
+ <dl>
2468
+ <dd>
2469
+
2470
+ <dl>
2471
+ <dd>
2472
+
2473
+ **billingId:** `string` — billing_id
2474
+
2475
+ </dd>
2476
+ </dl>
2477
+
2478
+ <dl>
2479
+ <dd>
2480
+
2481
+ **requestOptions:** `Billing.RequestOptions`
2482
+
2483
+ </dd>
2484
+ </dl>
2485
+ </dd>
2486
+ </dl>
2487
+
2488
+ </dd>
2489
+ </dl>
2490
+ </details>
2491
+
2390
2492
  <details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listProductPrices</a>({ ...params }) -> Schematic.ListProductPricesResponse</code></summary>
2391
2493
  <dl>
2392
2494
  <dd>
@@ -2497,6 +2599,7 @@ await client.billing.deleteProductPrice("billing_id");
2497
2599
 
2498
2600
  ```typescript
2499
2601
  await client.billing.upsertBillingProduct({
2602
+ active: true,
2500
2603
  currency: "currency",
2501
2604
  externalId: "external_id",
2502
2605
  name: "name",
@@ -2647,6 +2750,7 @@ await client.billing.countBillingProducts();
2647
2750
 
2648
2751
  ```typescript
2649
2752
  await client.billing.upsertBillingSubscription({
2753
+ cancelAtPeriodEnd: true,
2650
2754
  currency: "currency",
2651
2755
  customerExternalId: "customer_external_id",
2652
2756
  discounts: [
@@ -2666,7 +2770,7 @@ await client.billing.upsertBillingSubscription({
2666
2770
  priceExternalId: "price_external_id",
2667
2771
  productExternalId: "product_external_id",
2668
2772
  quantity: 1,
2669
- usageType: "usage_type",
2773
+ usageType: "licensed",
2670
2774
  },
2671
2775
  ],
2672
2776
  subscriptionExternalId: "subscription_external_id",
@@ -2772,7 +2876,7 @@ await client.checkout.internal({
2772
2876
  </dl>
2773
2877
  </details>
2774
2878
 
2775
- <details><summary><code>client.checkout.<a href="/src/api/resources/checkout/client/Client.ts">getCheckoutData</a>(checkoutInternalId) -> Schematic.GetCheckoutDataResponse</code></summary>
2879
+ <details><summary><code>client.checkout.<a href="/src/api/resources/checkout/client/Client.ts">getCheckoutData</a>({ ...params }) -> Schematic.GetCheckoutDataResponse</code></summary>
2776
2880
  <dl>
2777
2881
  <dd>
2778
2882
 
@@ -2785,7 +2889,9 @@ await client.checkout.internal({
2785
2889
  <dd>
2786
2890
 
2787
2891
  ```typescript
2788
- await client.checkout.getCheckoutData("checkout_internal_id");
2892
+ await client.checkout.getCheckoutData({
2893
+ companyId: "company_id",
2894
+ });
2789
2895
  ```
2790
2896
 
2791
2897
  </dd>
@@ -2801,7 +2907,7 @@ await client.checkout.getCheckoutData("checkout_internal_id");
2801
2907
  <dl>
2802
2908
  <dd>
2803
2909
 
2804
- **checkoutInternalId:** `string` — checkout_internal_id
2910
+ **request:** `Schematic.CheckoutDataRequestBody`
2805
2911
 
2806
2912
  </dd>
2807
2913
  </dl>
@@ -7012,7 +7118,11 @@ await client.plangroups.getPlanGroup();
7012
7118
  ```typescript
7013
7119
  await client.plangroups.createPlanGroup({
7014
7120
  addOnIds: ["add_on_ids"],
7015
- planIds: ["plan_ids"],
7121
+ orderedPlans: [
7122
+ {
7123
+ planId: "plan_id",
7124
+ },
7125
+ ],
7016
7126
  });
7017
7127
  ```
7018
7128
 
@@ -7063,7 +7173,11 @@ await client.plangroups.createPlanGroup({
7063
7173
  ```typescript
7064
7174
  await client.plangroups.updatePlanGroup("plan_group_id", {
7065
7175
  addOnIds: ["add_on_ids"],
7066
- planIds: ["plan_ids"],
7176
+ orderedPlans: [
7177
+ {
7178
+ planId: "plan_id",
7179
+ },
7180
+ ],
7067
7181
  });
7068
7182
  ```
7069
7183
 
@@ -0,0 +1,115 @@
1
+ #!/usr/bin/env node
2
+
3
+ const fs = require("fs").promises;
4
+ const path = require("path");
5
+
6
+ const extensionMap = {
7
+ ".js": ".mjs",
8
+ ".d.ts": ".d.mts",
9
+ };
10
+ const oldExtensions = Object.keys(extensionMap);
11
+
12
+ async function findFiles(rootPath) {
13
+ const files = [];
14
+
15
+ async function scan(directory) {
16
+ const entries = await fs.readdir(directory, { withFileTypes: true });
17
+
18
+ for (const entry of entries) {
19
+ const fullPath = path.join(directory, entry.name);
20
+
21
+ if (entry.isDirectory()) {
22
+ if (entry.name !== "node_modules" && !entry.name.startsWith(".")) {
23
+ await scan(fullPath);
24
+ }
25
+ } else if (entry.isFile()) {
26
+ if (oldExtensions.some((ext) => entry.name.endsWith(ext))) {
27
+ files.push(fullPath);
28
+ }
29
+ }
30
+ }
31
+ }
32
+
33
+ await scan(rootPath);
34
+ return files;
35
+ }
36
+
37
+ async function updateFiles(files) {
38
+ const updatedFiles = [];
39
+ for (const file of files) {
40
+ const updated = await updateFileContents(file);
41
+ updatedFiles.push(updated);
42
+ }
43
+
44
+ console.log(`Updated imports in ${updatedFiles.length} files.`);
45
+ }
46
+
47
+ async function updateFileContents(file) {
48
+ const content = await fs.readFile(file, "utf8");
49
+
50
+ let newContent = content;
51
+ // Update each extension type defined in the map
52
+ for (const [oldExt, newExt] of Object.entries(extensionMap)) {
53
+ const regex = new RegExp(`(import|export)(.+from\\s+['"])(\\.\\.?\\/[^'"]+)(\\${oldExt})(['"])`, "g");
54
+ newContent = newContent.replace(regex, `$1$2$3${newExt}$5`);
55
+ }
56
+
57
+ if (content !== newContent) {
58
+ await fs.writeFile(file, newContent, "utf8");
59
+ return true;
60
+ }
61
+ return false;
62
+ }
63
+
64
+ async function renameFiles(files) {
65
+ let counter = 0;
66
+ for (const file of files) {
67
+ const ext = oldExtensions.find((ext) => file.endsWith(ext));
68
+ const newExt = extensionMap[ext];
69
+
70
+ if (newExt) {
71
+ const newPath = file.slice(0, -ext.length) + newExt;
72
+ await fs.rename(file, newPath);
73
+ counter++;
74
+ }
75
+ }
76
+
77
+ console.log(`Renamed ${counter} files.`);
78
+ }
79
+
80
+ async function main() {
81
+ try {
82
+ const targetDir = process.argv[2];
83
+ if (!targetDir) {
84
+ console.error("Please provide a target directory");
85
+ process.exit(1);
86
+ }
87
+
88
+ const targetPath = path.resolve(targetDir);
89
+ const targetStats = await fs.stat(targetPath);
90
+
91
+ if (!targetStats.isDirectory()) {
92
+ console.error("The provided path is not a directory");
93
+ process.exit(1);
94
+ }
95
+
96
+ console.log(`Scanning directory: ${targetDir}`);
97
+
98
+ const files = await findFiles(targetDir);
99
+
100
+ if (files.length === 0) {
101
+ console.log("No matching files found.");
102
+ process.exit(0);
103
+ }
104
+
105
+ console.log(`Found ${files.length} files.`);
106
+ await updateFiles(files);
107
+ await renameFiles(files);
108
+ console.log("\nDone!");
109
+ } catch (error) {
110
+ console.error("An error occurred:", error.message);
111
+ process.exit(1);
112
+ }
113
+ }
114
+
115
+ main();
@@ -0,0 +1,24 @@
1
+ # Webhook Test Server
2
+
3
+ A simple test server to verify Schematic webhook signatures.
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ # Set your webhook secret
9
+ export SCHEMATIC_WEBHOOK_SECRET="your-webhook-secret"
10
+
11
+ # Optionally set port (default: 8080)
12
+ export PORT=9000
13
+
14
+ # Run the server
15
+ npm start
16
+ ```
17
+
18
+ Use a tool like ngrok to expose the server to the internet:
19
+
20
+ ```bash
21
+ ngrok http 8080
22
+ ```
23
+
24
+ Then configure the webhook in Schematic with your ngrok URL.
@@ -0,0 +1,196 @@
1
+ {
2
+ "name": "schematic-webhook-test-server",
3
+ "version": "1.0.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "schematic-webhook-test-server",
9
+ "version": "1.0.0",
10
+ "dependencies": {
11
+ "ts-node": "^10.9.1",
12
+ "typescript": "^4.9.5"
13
+ }
14
+ },
15
+ "node_modules/@cspotcode/source-map-support": {
16
+ "version": "0.8.1",
17
+ "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
18
+ "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",
19
+ "dependencies": {
20
+ "@jridgewell/trace-mapping": "0.3.9"
21
+ },
22
+ "engines": {
23
+ "node": ">=12"
24
+ }
25
+ },
26
+ "node_modules/@jridgewell/resolve-uri": {
27
+ "version": "3.1.2",
28
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
29
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
30
+ "engines": {
31
+ "node": ">=6.0.0"
32
+ }
33
+ },
34
+ "node_modules/@jridgewell/sourcemap-codec": {
35
+ "version": "1.5.0",
36
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",
37
+ "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ=="
38
+ },
39
+ "node_modules/@jridgewell/trace-mapping": {
40
+ "version": "0.3.9",
41
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",
42
+ "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",
43
+ "dependencies": {
44
+ "@jridgewell/resolve-uri": "^3.0.3",
45
+ "@jridgewell/sourcemap-codec": "^1.4.10"
46
+ }
47
+ },
48
+ "node_modules/@tsconfig/node10": {
49
+ "version": "1.0.11",
50
+ "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz",
51
+ "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw=="
52
+ },
53
+ "node_modules/@tsconfig/node12": {
54
+ "version": "1.0.11",
55
+ "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz",
56
+ "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag=="
57
+ },
58
+ "node_modules/@tsconfig/node14": {
59
+ "version": "1.0.3",
60
+ "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz",
61
+ "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow=="
62
+ },
63
+ "node_modules/@tsconfig/node16": {
64
+ "version": "1.0.4",
65
+ "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz",
66
+ "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA=="
67
+ },
68
+ "node_modules/@types/node": {
69
+ "version": "22.13.14",
70
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.14.tgz",
71
+ "integrity": "sha512-Zs/Ollc1SJ8nKUAgc7ivOEdIBM8JAKgrqqUYi2J997JuKO7/tpQC+WCetQ1sypiKCQWHdvdg9wBNpUPEWZae7w==",
72
+ "peer": true,
73
+ "dependencies": {
74
+ "undici-types": "~6.20.0"
75
+ }
76
+ },
77
+ "node_modules/acorn": {
78
+ "version": "8.14.1",
79
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz",
80
+ "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==",
81
+ "bin": {
82
+ "acorn": "bin/acorn"
83
+ },
84
+ "engines": {
85
+ "node": ">=0.4.0"
86
+ }
87
+ },
88
+ "node_modules/acorn-walk": {
89
+ "version": "8.3.4",
90
+ "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz",
91
+ "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==",
92
+ "dependencies": {
93
+ "acorn": "^8.11.0"
94
+ },
95
+ "engines": {
96
+ "node": ">=0.4.0"
97
+ }
98
+ },
99
+ "node_modules/arg": {
100
+ "version": "4.1.3",
101
+ "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
102
+ "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA=="
103
+ },
104
+ "node_modules/create-require": {
105
+ "version": "1.1.1",
106
+ "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
107
+ "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ=="
108
+ },
109
+ "node_modules/diff": {
110
+ "version": "4.0.2",
111
+ "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
112
+ "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",
113
+ "engines": {
114
+ "node": ">=0.3.1"
115
+ }
116
+ },
117
+ "node_modules/make-error": {
118
+ "version": "1.3.6",
119
+ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
120
+ "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw=="
121
+ },
122
+ "node_modules/ts-node": {
123
+ "version": "10.9.2",
124
+ "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz",
125
+ "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==",
126
+ "dependencies": {
127
+ "@cspotcode/source-map-support": "^0.8.0",
128
+ "@tsconfig/node10": "^1.0.7",
129
+ "@tsconfig/node12": "^1.0.7",
130
+ "@tsconfig/node14": "^1.0.0",
131
+ "@tsconfig/node16": "^1.0.2",
132
+ "acorn": "^8.4.1",
133
+ "acorn-walk": "^8.1.1",
134
+ "arg": "^4.1.0",
135
+ "create-require": "^1.1.0",
136
+ "diff": "^4.0.1",
137
+ "make-error": "^1.1.1",
138
+ "v8-compile-cache-lib": "^3.0.1",
139
+ "yn": "3.1.1"
140
+ },
141
+ "bin": {
142
+ "ts-node": "dist/bin.js",
143
+ "ts-node-cwd": "dist/bin-cwd.js",
144
+ "ts-node-esm": "dist/bin-esm.js",
145
+ "ts-node-script": "dist/bin-script.js",
146
+ "ts-node-transpile-only": "dist/bin-transpile.js",
147
+ "ts-script": "dist/bin-script-deprecated.js"
148
+ },
149
+ "peerDependencies": {
150
+ "@swc/core": ">=1.2.50",
151
+ "@swc/wasm": ">=1.2.50",
152
+ "@types/node": "*",
153
+ "typescript": ">=2.7"
154
+ },
155
+ "peerDependenciesMeta": {
156
+ "@swc/core": {
157
+ "optional": true
158
+ },
159
+ "@swc/wasm": {
160
+ "optional": true
161
+ }
162
+ }
163
+ },
164
+ "node_modules/typescript": {
165
+ "version": "4.9.5",
166
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",
167
+ "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",
168
+ "bin": {
169
+ "tsc": "bin/tsc",
170
+ "tsserver": "bin/tsserver"
171
+ },
172
+ "engines": {
173
+ "node": ">=4.2.0"
174
+ }
175
+ },
176
+ "node_modules/undici-types": {
177
+ "version": "6.20.0",
178
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",
179
+ "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==",
180
+ "peer": true
181
+ },
182
+ "node_modules/v8-compile-cache-lib": {
183
+ "version": "3.0.1",
184
+ "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz",
185
+ "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg=="
186
+ },
187
+ "node_modules/yn": {
188
+ "version": "3.1.1",
189
+ "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
190
+ "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",
191
+ "engines": {
192
+ "node": ">=6"
193
+ }
194
+ }
195
+ }
196
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "schematic-webhook-test-server",
3
+ "version": "1.0.0",
4
+ "description": "Test server for Schematic webhook verification",
5
+ "main": "webhook-test-server.ts",
6
+ "scripts": {
7
+ "start": "ts-node webhook-test-server.ts"
8
+ },
9
+ "dependencies": {
10
+ "ts-node": "^10.9.1",
11
+ "typescript": "^4.9.5"
12
+ }
13
+ }
@@ -0,0 +1,100 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Webhook Test Server
5
+ *
6
+ * This is a testing utility to verify Schematic webhook signatures. It exposes
7
+ * a simple HTTP server that logs and validates incoming webhook requests.
8
+ *
9
+ * Usage:
10
+ *
11
+ * 1. Set up:
12
+ * - Export your webhook secret: export SCHEMATIC_WEBHOOK_SECRET="your-webhook-secret"
13
+ * - Optionally set a custom port: export PORT=9000 (default: 8080)
14
+ * - Run: npx ts-node scripts/webhook-test-server/webhook-test-server.ts
15
+ * or
16
+ * - Build and run: tsc scripts/webhook-test-server/webhook-test-server.ts && node scripts/webhook-test-server/webhook-test-server.js
17
+ *
18
+ * 2. Expose to the internet:
19
+ * - Since Schematic can't access localhost directly, use a tunneling service like ngrok:
20
+ * ngrok http 8080
21
+ *
22
+ * 3. Configure in Schematic:
23
+ * - Use the ngrok URL (e.g., https://a1b2c3d4.ngrok.io/webhook) as your webhook endpoint
24
+ * - Set the same webhook secret in Schematic that you used in SCHEMATIC_WEBHOOK_SECRET
25
+ *
26
+ * 4. Test:
27
+ * - Trigger a webhook from Schematic
28
+ * - This server will verify the signature and output the payload
29
+ *
30
+ * This tool helps validate the webhook signature verification implementation before
31
+ * integrating it into production applications.
32
+ */
33
+
34
+ import http from "http";
35
+ import { verifyWebhookSignature } from "../../src/webhooks";
36
+
37
+ const webhookSecret = process.env.SCHEMATIC_WEBHOOK_SECRET;
38
+ if (!webhookSecret) {
39
+ console.error("SCHEMATIC_WEBHOOK_SECRET environment variable is required");
40
+ process.exit(1);
41
+ }
42
+
43
+ const server = http.createServer(async (req, res) => {
44
+ if (req.url !== "/webhook" || req.method !== "POST") {
45
+ res.statusCode = 404;
46
+ res.end("Not Found");
47
+ return;
48
+ }
49
+
50
+ console.log("Received webhook request");
51
+
52
+ const chunks: Buffer[] = [];
53
+
54
+ try {
55
+ for await (const chunk of req) {
56
+ chunks.push(Buffer.from(chunk));
57
+ }
58
+
59
+ const body = Buffer.concat(chunks);
60
+
61
+ try {
62
+ verifyWebhookSignature(req, webhookSecret, body);
63
+
64
+ console.log("Signature verification successful");
65
+
66
+ console.log("Headers:");
67
+ Object.entries(req.headers).forEach(([name, value]) => {
68
+ console.log(` ${name}: ${value}`);
69
+ });
70
+
71
+ try {
72
+ const jsonData = JSON.parse(body.toString());
73
+ console.log("Webhook payload:");
74
+ console.log(JSON.stringify(jsonData, null, 2));
75
+ } catch (e) {
76
+ console.log("Webhook payload (raw):");
77
+ console.log(body.toString());
78
+ }
79
+
80
+ res.statusCode = 200;
81
+ res.end("Webhook received and verified successfully");
82
+ } catch (error: any) {
83
+ console.error("Signature verification failed:", error?.message || error);
84
+ res.statusCode = 401;
85
+ res.end(`Signature verification failed: ${error?.message || "Unknown error"}`);
86
+ }
87
+ } catch (error: any) {
88
+ console.error("Failed to read request body:", error?.message || error);
89
+ res.statusCode = 500;
90
+ res.end("Failed to read request body");
91
+ }
92
+ });
93
+
94
+ const port = process.env.PORT || "8080";
95
+ server.listen(parseInt(port), () => {
96
+ console.log(`Starting webhook test server on port ${port}`);
97
+ console.log(`Local URL: http://localhost:${port}/webhook`);
98
+ console.log("Remember: Use a tool like ngrok to expose this server to the internet");
99
+ console.log(`Example: ngrok http ${port}`);
100
+ });
@@ -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
  Object.defineProperty(exports, "__esModule", { value: true });
29
39
  exports.IssueTemporaryAccessTokenRequestBody = void 0;
30
40
  const core = __importStar(require("../../../../../core"));