@schematichq/schematic-typescript-node 1.1.7 → 1.1.9

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 (595) hide show
  1. package/Client.d.ts +6 -13
  2. package/Client.js +26 -109
  3. package/README.md +5 -3
  4. package/api/resources/accesstokens/client/Client.js +1 -1
  5. package/api/resources/accounts/client/Client.js +14 -14
  6. package/api/resources/billing/client/Client.d.ts +29 -0
  7. package/api/resources/billing/client/Client.js +124 -17
  8. package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
  9. package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +8 -0
  10. package/api/resources/billing/client/requests/CreateCouponRequestBody.d.ts +27 -0
  11. package/api/resources/billing/client/requests/index.d.ts +1 -0
  12. package/api/resources/{events/types/GetEventSummaryBySubtypeResponse.d.ts → billing/types/UpsertBillingCouponResponse.d.ts} +2 -2
  13. package/api/resources/billing/types/index.d.ts +1 -0
  14. package/api/resources/billing/types/index.js +1 -0
  15. package/api/resources/checkout/client/Client.d.ts +106 -0
  16. package/api/resources/checkout/client/Client.js +460 -0
  17. package/api/resources/checkout/client/index.d.ts +1 -0
  18. package/api/resources/checkout/client/index.js +17 -0
  19. package/api/resources/checkout/client/requests/UpdateTrialEndRequestBody.d.ts +10 -0
  20. package/api/resources/checkout/client/requests/index.d.ts +1 -0
  21. package/api/resources/checkout/client/requests/index.js +2 -0
  22. package/api/resources/checkout/index.d.ts +2 -0
  23. package/api/resources/checkout/index.js +18 -0
  24. package/{dist/api/resources/events/types/GetEventSummaryBySubtypeResponse.d.ts → api/resources/checkout/types/CheckoutInternalResponse.d.ts} +2 -2
  25. package/api/resources/checkout/types/GetCheckoutDataResponse.d.ts +9 -0
  26. package/api/resources/checkout/types/GetCheckoutDataResponse.js +5 -0
  27. package/api/resources/checkout/types/PreviewCheckoutInternalResponse.d.ts +9 -0
  28. package/api/resources/checkout/types/PreviewCheckoutInternalResponse.js +5 -0
  29. package/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.d.ts +9 -0
  30. package/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +5 -0
  31. package/api/resources/checkout/types/index.d.ts +4 -0
  32. package/api/resources/checkout/types/index.js +20 -0
  33. package/api/resources/companies/client/Client.js +31 -31
  34. package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +2 -2
  35. package/api/resources/companies/client/requests/CountUsersRequest.d.ts +3 -3
  36. package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +2 -2
  37. package/api/resources/companies/client/requests/ListUsersRequest.d.ts +3 -3
  38. package/api/resources/companies/types/CountCompaniesParams.d.ts +2 -2
  39. package/api/resources/companies/types/CountUsersParams.d.ts +3 -3
  40. package/api/resources/companies/types/ListCompaniesParams.d.ts +2 -2
  41. package/api/resources/companies/types/ListUsersParams.d.ts +3 -3
  42. package/api/resources/components/client/Client.js +7 -7
  43. package/api/resources/crm/client/Client.js +5 -5
  44. package/api/resources/entitlements/client/Client.js +27 -21
  45. package/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +9 -5
  46. package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +5 -5
  47. package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +0 -2
  48. package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +0 -2
  49. package/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +9 -5
  50. package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +5 -5
  51. package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +0 -2
  52. package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -2
  53. package/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +7 -5
  54. package/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +5 -5
  55. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -2
  56. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +0 -1
  57. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -2
  58. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +0 -1
  59. package/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +7 -5
  60. package/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +5 -5
  61. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -2
  62. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +0 -1
  63. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -2
  64. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +0 -1
  65. package/api/resources/events/client/Client.d.ts +0 -13
  66. package/api/resources/events/client/Client.js +6 -96
  67. package/api/resources/events/types/index.d.ts +0 -1
  68. package/api/resources/events/types/index.js +0 -1
  69. package/api/resources/features/client/Client.js +19 -19
  70. package/api/resources/index.d.ts +6 -3
  71. package/api/resources/index.js +7 -4
  72. package/api/resources/plangroups/client/Client.js +3 -3
  73. package/api/resources/plans/client/Client.d.ts +17 -0
  74. package/api/resources/plans/client/Client.js +122 -13
  75. package/api/resources/plans/client/requests/CountPlansRequest.d.ts +4 -0
  76. package/api/resources/plans/client/requests/ListPlansRequest.d.ts +4 -0
  77. package/api/resources/plans/client/requests/UpdateCompanyPlansRequestBody.d.ts +13 -0
  78. package/api/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +5 -0
  79. package/api/resources/plans/client/requests/index.d.ts +1 -0
  80. package/api/resources/plans/types/CountPlansParams.d.ts +2 -0
  81. package/api/resources/plans/types/ListPlansParams.d.ts +2 -0
  82. package/api/resources/plans/types/UpdateCompanyPlansResponse.d.ts +9 -0
  83. package/api/resources/plans/types/UpdateCompanyPlansResponse.js +5 -0
  84. package/api/resources/plans/types/index.d.ts +1 -0
  85. package/api/resources/plans/types/index.js +1 -0
  86. package/api/resources/webhooks/client/Client.js +9 -9
  87. package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
  88. package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +1 -0
  89. package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
  90. package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +1 -0
  91. package/api/types/BillingCouponResponseData.d.ts +24 -0
  92. package/api/types/BillingCouponResponseData.js +5 -0
  93. package/api/types/BillingPriceView.d.ts +1 -0
  94. package/api/types/BillingProductForSubscriptionResponseData.d.ts +1 -0
  95. package/api/types/BillingProductPriceResponseData.d.ts +1 -0
  96. package/api/types/BillingSubscriptionDiscount.d.ts +12 -0
  97. package/api/types/BillingSubscriptionDiscount.js +5 -0
  98. package/api/types/BillingSubscriptionDiscountView.d.ts +19 -0
  99. package/api/types/BillingSubscriptionDiscountView.js +5 -0
  100. package/api/types/BillingSubscriptionResponseData.d.ts +1 -0
  101. package/api/types/BillingSubscriptionView.d.ts +5 -0
  102. package/api/types/ChangeSubscriptionInternalRequestBody.d.ts +13 -0
  103. package/api/types/ChangeSubscriptionInternalRequestBody.js +5 -0
  104. package/api/types/ChangeSubscriptionRequestBody.d.ts +12 -0
  105. package/api/types/ChangeSubscriptionRequestBody.js +5 -0
  106. package/api/types/CheckFlagResponseData.d.ts +19 -0
  107. package/api/types/CheckFlagsResponseData.d.ts +1 -1
  108. package/api/types/CheckoutDataResponseData.d.ts +15 -0
  109. package/api/types/CheckoutDataResponseData.js +5 -0
  110. package/api/types/CompanyDetailResponseData.d.ts +1 -0
  111. package/api/types/CompanyEventPeriodMetricsResponseData.d.ts +16 -0
  112. package/api/types/CompanyEventPeriodMetricsResponseData.js +5 -0
  113. package/api/types/CompanyOverrideResponseData.d.ts +1 -0
  114. package/api/types/CompanySubscriptionResponseData.d.ts +2 -0
  115. package/api/types/ComponentHydrateResponseData.d.ts +2 -0
  116. package/api/types/ComponentPreviewResponseData.d.ts +2 -0
  117. package/api/types/CouponRequestBody.d.ts +13 -0
  118. package/api/types/CouponRequestBody.js +5 -0
  119. package/api/types/CreateEntitlementReqCommon.d.ts +0 -2
  120. package/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -2
  121. package/api/types/CreateEntitlementReqCommonMetricPeriod.js +0 -1
  122. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -2
  123. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +0 -1
  124. package/api/types/EventBodyFlagCheck.d.ts +4 -4
  125. package/api/types/EventBodyTrack.d.ts +2 -0
  126. package/api/types/EventDetailResponseData.d.ts +1 -0
  127. package/api/types/EventResponseData.d.ts +1 -0
  128. package/api/types/FeatureCompanyResponseData.d.ts +1 -0
  129. package/api/types/FeatureUsageResponseData.d.ts +5 -1
  130. package/api/types/PlanEntitlementResponseData.d.ts +1 -0
  131. package/api/types/PreviewSubscriptionChangeResponseData.d.ts +16 -0
  132. package/api/types/PreviewSubscriptionChangeResponseData.js +5 -0
  133. package/api/types/UpdateAddOnRequestBody.d.ts +7 -0
  134. package/api/types/UpdateAddOnRequestBody.js +5 -0
  135. package/api/types/UpdateEntitlementReqCommon.d.ts +0 -2
  136. package/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -2
  137. package/api/types/UpdateEntitlementReqCommonMetricPeriod.js +0 -1
  138. package/api/types/UpdatePayInAdvanceRequestBody.d.ts +7 -0
  139. package/api/types/UpdatePayInAdvanceRequestBody.js +5 -0
  140. package/api/types/UsageBasedEntitlementRequestBody.d.ts +8 -0
  141. package/api/types/UsageBasedEntitlementRequestBody.js +5 -0
  142. package/api/types/UsageBasedEntitlementResponseData.d.ts +2 -0
  143. package/api/types/index.d.ts +12 -1
  144. package/api/types/index.js +12 -1
  145. package/dist/Client.d.ts +6 -13
  146. package/dist/Client.js +26 -109
  147. package/dist/api/resources/accesstokens/client/Client.js +1 -1
  148. package/dist/api/resources/accounts/client/Client.js +14 -14
  149. package/dist/api/resources/billing/client/Client.d.ts +29 -0
  150. package/dist/api/resources/billing/client/Client.js +124 -17
  151. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
  152. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +8 -0
  153. package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.d.ts +27 -0
  154. package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.js +5 -0
  155. package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
  156. package/dist/api/resources/billing/types/UpsertBillingCouponResponse.d.ts +9 -0
  157. package/dist/api/resources/billing/types/UpsertBillingCouponResponse.js +5 -0
  158. package/dist/api/resources/billing/types/index.d.ts +1 -0
  159. package/dist/api/resources/billing/types/index.js +1 -0
  160. package/dist/api/resources/checkout/client/Client.d.ts +106 -0
  161. package/dist/api/resources/checkout/client/Client.js +460 -0
  162. package/dist/api/resources/checkout/client/index.d.ts +1 -0
  163. package/dist/api/resources/checkout/client/index.js +17 -0
  164. package/dist/api/resources/checkout/client/requests/UpdateTrialEndRequestBody.d.ts +10 -0
  165. package/dist/api/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +5 -0
  166. package/dist/api/resources/checkout/client/requests/index.d.ts +1 -0
  167. package/dist/api/resources/checkout/client/requests/index.js +2 -0
  168. package/dist/api/resources/checkout/index.d.ts +2 -0
  169. package/dist/api/resources/checkout/index.js +18 -0
  170. package/dist/api/resources/checkout/types/CheckoutInternalResponse.d.ts +9 -0
  171. package/dist/api/resources/checkout/types/CheckoutInternalResponse.js +5 -0
  172. package/dist/api/resources/checkout/types/GetCheckoutDataResponse.d.ts +9 -0
  173. package/dist/api/resources/checkout/types/GetCheckoutDataResponse.js +5 -0
  174. package/dist/api/resources/checkout/types/PreviewCheckoutInternalResponse.d.ts +9 -0
  175. package/dist/api/resources/checkout/types/PreviewCheckoutInternalResponse.js +5 -0
  176. package/dist/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.d.ts +9 -0
  177. package/dist/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +5 -0
  178. package/dist/api/resources/checkout/types/index.d.ts +4 -0
  179. package/dist/api/resources/checkout/types/index.js +20 -0
  180. package/dist/api/resources/companies/client/Client.js +31 -31
  181. package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +2 -2
  182. package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +3 -3
  183. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +2 -2
  184. package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +3 -3
  185. package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -2
  186. package/dist/api/resources/companies/types/CountUsersParams.d.ts +3 -3
  187. package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -2
  188. package/dist/api/resources/companies/types/ListUsersParams.d.ts +3 -3
  189. package/dist/api/resources/components/client/Client.js +7 -7
  190. package/dist/api/resources/crm/client/Client.js +5 -5
  191. package/dist/api/resources/entitlements/client/Client.js +27 -21
  192. package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +9 -5
  193. package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +5 -5
  194. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +0 -2
  195. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +0 -2
  196. package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +9 -5
  197. package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +5 -5
  198. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +0 -2
  199. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -2
  200. package/dist/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +7 -5
  201. package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +5 -5
  202. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -2
  203. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +0 -1
  204. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -2
  205. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +0 -1
  206. package/dist/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +7 -5
  207. package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +5 -5
  208. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -2
  209. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +0 -1
  210. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -2
  211. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +0 -1
  212. package/dist/api/resources/events/client/Client.d.ts +0 -13
  213. package/dist/api/resources/events/client/Client.js +6 -96
  214. package/dist/api/resources/events/types/index.d.ts +0 -1
  215. package/dist/api/resources/events/types/index.js +0 -1
  216. package/dist/api/resources/features/client/Client.js +19 -19
  217. package/dist/api/resources/index.d.ts +6 -3
  218. package/dist/api/resources/index.js +7 -4
  219. package/dist/api/resources/plangroups/client/Client.js +3 -3
  220. package/dist/api/resources/plans/client/Client.d.ts +17 -0
  221. package/dist/api/resources/plans/client/Client.js +122 -13
  222. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +4 -0
  223. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +4 -0
  224. package/dist/api/resources/plans/client/requests/UpdateCompanyPlansRequestBody.d.ts +13 -0
  225. package/dist/api/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +5 -0
  226. package/dist/api/resources/plans/client/requests/index.d.ts +1 -0
  227. package/dist/api/resources/plans/types/CountPlansParams.d.ts +2 -0
  228. package/dist/api/resources/plans/types/ListPlansParams.d.ts +2 -0
  229. package/dist/api/resources/plans/types/UpdateCompanyPlansResponse.d.ts +9 -0
  230. package/dist/api/resources/plans/types/UpdateCompanyPlansResponse.js +5 -0
  231. package/dist/api/resources/plans/types/index.d.ts +1 -0
  232. package/dist/api/resources/plans/types/index.js +1 -0
  233. package/dist/api/resources/webhooks/client/Client.js +9 -9
  234. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
  235. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +1 -0
  236. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
  237. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +1 -0
  238. package/dist/api/types/BillingCouponResponseData.d.ts +24 -0
  239. package/dist/api/types/BillingCouponResponseData.js +5 -0
  240. package/dist/api/types/BillingPriceView.d.ts +1 -0
  241. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +1 -0
  242. package/dist/api/types/BillingProductPriceResponseData.d.ts +1 -0
  243. package/dist/api/types/BillingSubscriptionDiscount.d.ts +12 -0
  244. package/dist/api/types/BillingSubscriptionDiscount.js +5 -0
  245. package/dist/api/types/BillingSubscriptionDiscountView.d.ts +19 -0
  246. package/dist/api/types/BillingSubscriptionDiscountView.js +5 -0
  247. package/dist/api/types/BillingSubscriptionResponseData.d.ts +1 -0
  248. package/dist/api/types/BillingSubscriptionView.d.ts +5 -0
  249. package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +13 -0
  250. package/dist/api/types/ChangeSubscriptionInternalRequestBody.js +5 -0
  251. package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +12 -0
  252. package/dist/api/types/ChangeSubscriptionRequestBody.js +5 -0
  253. package/dist/api/types/CheckFlagResponseData.d.ts +19 -0
  254. package/dist/api/types/CheckFlagsResponseData.d.ts +1 -1
  255. package/dist/api/types/CheckoutDataResponseData.d.ts +15 -0
  256. package/dist/api/types/CheckoutDataResponseData.js +5 -0
  257. package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
  258. package/dist/api/types/CompanyEventPeriodMetricsResponseData.d.ts +16 -0
  259. package/dist/api/types/CompanyEventPeriodMetricsResponseData.js +5 -0
  260. package/dist/api/types/CompanyOverrideResponseData.d.ts +1 -0
  261. package/dist/api/types/CompanySubscriptionResponseData.d.ts +2 -0
  262. package/dist/api/types/ComponentHydrateResponseData.d.ts +2 -0
  263. package/dist/api/types/ComponentPreviewResponseData.d.ts +2 -0
  264. package/dist/api/types/CouponRequestBody.d.ts +13 -0
  265. package/dist/api/types/CouponRequestBody.js +5 -0
  266. package/dist/api/types/CreateEntitlementReqCommon.d.ts +0 -2
  267. package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -2
  268. package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.js +0 -1
  269. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -2
  270. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +0 -1
  271. package/dist/api/types/EventBodyFlagCheck.d.ts +4 -4
  272. package/dist/api/types/EventBodyTrack.d.ts +2 -0
  273. package/dist/api/types/EventDetailResponseData.d.ts +1 -0
  274. package/dist/api/types/EventResponseData.d.ts +1 -0
  275. package/dist/api/types/FeatureCompanyResponseData.d.ts +1 -0
  276. package/dist/api/types/FeatureUsageResponseData.d.ts +5 -1
  277. package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -0
  278. package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +16 -0
  279. package/dist/api/types/PreviewSubscriptionChangeResponseData.js +5 -0
  280. package/dist/api/types/UpdateAddOnRequestBody.d.ts +7 -0
  281. package/dist/api/types/UpdateAddOnRequestBody.js +5 -0
  282. package/dist/api/types/UpdateEntitlementReqCommon.d.ts +0 -2
  283. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -2
  284. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.js +0 -1
  285. package/dist/api/types/UpdatePayInAdvanceRequestBody.d.ts +7 -0
  286. package/dist/api/types/UpdatePayInAdvanceRequestBody.js +5 -0
  287. package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +8 -0
  288. package/dist/api/types/UsageBasedEntitlementRequestBody.js +5 -0
  289. package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +2 -0
  290. package/dist/api/types/index.d.ts +12 -1
  291. package/dist/api/types/index.js +12 -1
  292. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -0
  293. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +1 -0
  294. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +3 -0
  295. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +3 -0
  296. package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.d.ts +20 -0
  297. package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +41 -0
  298. package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -0
  299. package/dist/serialization/resources/billing/client/requests/index.js +3 -1
  300. package/dist/serialization/resources/billing/types/UpsertBillingCouponResponse.d.ts +14 -0
  301. package/dist/serialization/resources/{events/types/GetEventSummaryBySubtypeResponse.js → billing/types/UpsertBillingCouponResponse.js} +4 -4
  302. package/dist/serialization/resources/billing/types/index.d.ts +1 -0
  303. package/dist/serialization/resources/billing/types/index.js +1 -0
  304. package/dist/serialization/resources/checkout/client/index.d.ts +1 -0
  305. package/dist/serialization/resources/checkout/client/index.js +17 -0
  306. package/dist/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.d.ts +12 -0
  307. package/dist/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +33 -0
  308. package/dist/serialization/resources/checkout/client/requests/index.d.ts +1 -0
  309. package/dist/serialization/resources/checkout/client/requests/index.js +5 -0
  310. package/dist/serialization/resources/checkout/index.d.ts +2 -0
  311. package/dist/serialization/resources/checkout/index.js +18 -0
  312. package/dist/serialization/resources/checkout/types/CheckoutInternalResponse.d.ts +14 -0
  313. package/dist/serialization/resources/checkout/types/CheckoutInternalResponse.js +35 -0
  314. package/dist/serialization/resources/checkout/types/GetCheckoutDataResponse.d.ts +14 -0
  315. package/{serialization/resources/events/types/GetEventSummaryBySubtypeResponse.js → dist/serialization/resources/checkout/types/GetCheckoutDataResponse.js} +4 -4
  316. package/dist/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.d.ts +14 -0
  317. package/dist/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +35 -0
  318. package/dist/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.d.ts +14 -0
  319. package/dist/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +35 -0
  320. package/dist/serialization/resources/checkout/types/index.d.ts +4 -0
  321. package/dist/serialization/resources/checkout/types/index.js +20 -0
  322. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +0 -2
  323. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +0 -2
  324. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +0 -2
  325. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +0 -2
  326. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +0 -2
  327. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +0 -2
  328. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -2
  329. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -2
  330. package/dist/serialization/resources/entitlements/types/CountCompanyOverridesParams.d.ts +1 -0
  331. package/dist/serialization/resources/entitlements/types/CountCompanyOverridesParams.js +1 -0
  332. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  333. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  334. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  335. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  336. package/dist/serialization/resources/entitlements/types/ListCompanyOverridesParams.d.ts +1 -0
  337. package/dist/serialization/resources/entitlements/types/ListCompanyOverridesParams.js +1 -0
  338. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  339. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  340. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  341. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  342. package/dist/serialization/resources/events/types/index.d.ts +0 -1
  343. package/dist/serialization/resources/events/types/index.js +0 -1
  344. package/dist/serialization/resources/index.d.ts +6 -3
  345. package/dist/serialization/resources/index.js +7 -4
  346. package/dist/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.d.ts +13 -0
  347. package/dist/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +34 -0
  348. package/dist/serialization/resources/plans/client/requests/index.d.ts +1 -0
  349. package/dist/serialization/resources/plans/client/requests/index.js +3 -1
  350. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +1 -0
  351. package/dist/serialization/resources/plans/types/CountPlansParams.js +1 -0
  352. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
  353. package/dist/serialization/resources/plans/types/ListPlansParams.js +1 -0
  354. package/dist/serialization/resources/plans/types/UpdateCompanyPlansResponse.d.ts +14 -0
  355. package/dist/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +35 -0
  356. package/dist/serialization/resources/plans/types/index.d.ts +1 -0
  357. package/dist/serialization/resources/plans/types/index.js +1 -0
  358. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  359. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +1 -0
  360. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  361. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +1 -0
  362. package/dist/serialization/types/BillingCouponResponseData.d.ts +27 -0
  363. package/dist/serialization/types/BillingCouponResponseData.js +48 -0
  364. package/dist/serialization/types/BillingPriceView.d.ts +1 -0
  365. package/dist/serialization/types/BillingPriceView.js +1 -0
  366. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +1 -0
  367. package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +1 -0
  368. package/dist/serialization/types/BillingProductPriceResponseData.d.ts +1 -0
  369. package/dist/serialization/types/BillingProductPriceResponseData.js +1 -0
  370. package/dist/serialization/types/BillingSubscriptionDiscount.d.ts +18 -0
  371. package/dist/serialization/types/BillingSubscriptionDiscount.js +39 -0
  372. package/dist/serialization/types/BillingSubscriptionDiscountView.d.ts +25 -0
  373. package/dist/serialization/types/BillingSubscriptionDiscountView.js +46 -0
  374. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +1 -0
  375. package/dist/serialization/types/BillingSubscriptionResponseData.js +1 -0
  376. package/dist/serialization/types/BillingSubscriptionView.d.ts +3 -0
  377. package/dist/serialization/types/BillingSubscriptionView.js +3 -0
  378. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +20 -0
  379. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.js +41 -0
  380. package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +19 -0
  381. package/dist/serialization/types/ChangeSubscriptionRequestBody.js +40 -0
  382. package/dist/serialization/types/CheckFlagResponseData.d.ts +6 -0
  383. package/dist/serialization/types/CheckFlagResponseData.js +6 -0
  384. package/dist/serialization/types/CheckFlagsResponseData.d.ts +2 -2
  385. package/dist/serialization/types/CheckFlagsResponseData.js +2 -2
  386. package/dist/serialization/types/CheckoutDataResponseData.d.ts +22 -0
  387. package/dist/serialization/types/CheckoutDataResponseData.js +43 -0
  388. package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -0
  389. package/dist/serialization/types/CompanyDetailResponseData.js +2 -0
  390. package/dist/serialization/types/CompanyEventPeriodMetricsResponseData.d.ts +22 -0
  391. package/dist/serialization/types/CompanyEventPeriodMetricsResponseData.js +43 -0
  392. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
  393. package/dist/serialization/types/CompanyOverrideResponseData.js +1 -0
  394. package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +3 -0
  395. package/dist/serialization/types/CompanySubscriptionResponseData.js +3 -0
  396. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +3 -0
  397. package/dist/serialization/types/ComponentHydrateResponseData.js +3 -0
  398. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +3 -0
  399. package/dist/serialization/types/ComponentPreviewResponseData.js +3 -0
  400. package/dist/serialization/types/CouponRequestBody.d.ts +19 -0
  401. package/dist/serialization/types/CouponRequestBody.js +40 -0
  402. package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +0 -2
  403. package/dist/serialization/types/CreateEntitlementReqCommon.js +0 -2
  404. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  405. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +1 -1
  406. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  407. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  408. package/dist/serialization/types/EventBodyTrack.d.ts +1 -0
  409. package/dist/serialization/types/EventBodyTrack.js +1 -0
  410. package/dist/serialization/types/EventDetailResponseData.d.ts +1 -0
  411. package/dist/serialization/types/EventDetailResponseData.js +1 -0
  412. package/dist/serialization/types/EventResponseData.d.ts +1 -0
  413. package/dist/serialization/types/EventResponseData.js +1 -0
  414. package/dist/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
  415. package/dist/serialization/types/FeatureCompanyResponseData.js +1 -0
  416. package/dist/serialization/types/FeatureUsageResponseData.d.ts +5 -0
  417. package/dist/serialization/types/FeatureUsageResponseData.js +5 -0
  418. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
  419. package/dist/serialization/types/PlanEntitlementResponseData.js +1 -0
  420. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +19 -0
  421. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +40 -0
  422. package/dist/serialization/types/UpdateAddOnRequestBody.d.ts +13 -0
  423. package/dist/serialization/types/{CheckFlagOutputWithFlagKey.js → UpdateAddOnRequestBody.js} +4 -10
  424. package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +0 -2
  425. package/dist/serialization/types/UpdateEntitlementReqCommon.js +0 -2
  426. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  427. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +1 -1
  428. package/dist/serialization/types/UpdatePayInAdvanceRequestBody.d.ts +13 -0
  429. package/{serialization/types/CheckFlagOutputWithFlagKey.js → dist/serialization/types/UpdatePayInAdvanceRequestBody.js} +4 -10
  430. package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +14 -0
  431. package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +35 -0
  432. package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +2 -0
  433. package/dist/serialization/types/UsageBasedEntitlementResponseData.js +2 -0
  434. package/dist/serialization/types/index.d.ts +12 -1
  435. package/dist/serialization/types/index.js +12 -1
  436. package/dist/wrapper.d.ts +49 -0
  437. package/dist/wrapper.js +36 -0
  438. package/package.json +1 -1
  439. package/reference.md +612 -344
  440. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -0
  441. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +1 -0
  442. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +3 -0
  443. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +3 -0
  444. package/serialization/resources/billing/client/requests/CreateCouponRequestBody.d.ts +20 -0
  445. package/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +41 -0
  446. package/serialization/resources/billing/client/requests/index.d.ts +1 -0
  447. package/serialization/resources/billing/client/requests/index.js +3 -1
  448. package/serialization/resources/billing/types/UpsertBillingCouponResponse.d.ts +14 -0
  449. package/serialization/resources/billing/types/UpsertBillingCouponResponse.js +35 -0
  450. package/serialization/resources/billing/types/index.d.ts +1 -0
  451. package/serialization/resources/billing/types/index.js +1 -0
  452. package/serialization/resources/checkout/client/index.d.ts +1 -0
  453. package/serialization/resources/checkout/client/index.js +17 -0
  454. package/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.d.ts +12 -0
  455. package/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +33 -0
  456. package/serialization/resources/checkout/client/requests/index.d.ts +1 -0
  457. package/serialization/resources/checkout/client/requests/index.js +5 -0
  458. package/serialization/resources/checkout/index.d.ts +2 -0
  459. package/serialization/resources/checkout/index.js +18 -0
  460. package/serialization/resources/checkout/types/CheckoutInternalResponse.d.ts +14 -0
  461. package/serialization/resources/checkout/types/CheckoutInternalResponse.js +35 -0
  462. package/serialization/resources/checkout/types/GetCheckoutDataResponse.d.ts +14 -0
  463. package/serialization/resources/checkout/types/GetCheckoutDataResponse.js +35 -0
  464. package/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.d.ts +14 -0
  465. package/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +35 -0
  466. package/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.d.ts +14 -0
  467. package/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +35 -0
  468. package/serialization/resources/checkout/types/index.d.ts +4 -0
  469. package/serialization/resources/checkout/types/index.js +20 -0
  470. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +0 -2
  471. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +0 -2
  472. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +0 -2
  473. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +0 -2
  474. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +0 -2
  475. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +0 -2
  476. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -2
  477. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -2
  478. package/serialization/resources/entitlements/types/CountCompanyOverridesParams.d.ts +1 -0
  479. package/serialization/resources/entitlements/types/CountCompanyOverridesParams.js +1 -0
  480. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  481. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  482. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  483. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  484. package/serialization/resources/entitlements/types/ListCompanyOverridesParams.d.ts +1 -0
  485. package/serialization/resources/entitlements/types/ListCompanyOverridesParams.js +1 -0
  486. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  487. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  488. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  489. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  490. package/serialization/resources/events/types/index.d.ts +0 -1
  491. package/serialization/resources/events/types/index.js +0 -1
  492. package/serialization/resources/index.d.ts +6 -3
  493. package/serialization/resources/index.js +7 -4
  494. package/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.d.ts +13 -0
  495. package/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +34 -0
  496. package/serialization/resources/plans/client/requests/index.d.ts +1 -0
  497. package/serialization/resources/plans/client/requests/index.js +3 -1
  498. package/serialization/resources/plans/types/CountPlansParams.d.ts +1 -0
  499. package/serialization/resources/plans/types/CountPlansParams.js +1 -0
  500. package/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
  501. package/serialization/resources/plans/types/ListPlansParams.js +1 -0
  502. package/serialization/resources/plans/types/UpdateCompanyPlansResponse.d.ts +14 -0
  503. package/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +35 -0
  504. package/serialization/resources/plans/types/index.d.ts +1 -0
  505. package/serialization/resources/plans/types/index.js +1 -0
  506. package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  507. package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +1 -0
  508. package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  509. package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +1 -0
  510. package/serialization/types/BillingCouponResponseData.d.ts +27 -0
  511. package/serialization/types/BillingCouponResponseData.js +48 -0
  512. package/serialization/types/BillingPriceView.d.ts +1 -0
  513. package/serialization/types/BillingPriceView.js +1 -0
  514. package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +1 -0
  515. package/serialization/types/BillingProductForSubscriptionResponseData.js +1 -0
  516. package/serialization/types/BillingProductPriceResponseData.d.ts +1 -0
  517. package/serialization/types/BillingProductPriceResponseData.js +1 -0
  518. package/serialization/types/BillingSubscriptionDiscount.d.ts +18 -0
  519. package/serialization/types/BillingSubscriptionDiscount.js +39 -0
  520. package/serialization/types/BillingSubscriptionDiscountView.d.ts +25 -0
  521. package/serialization/types/BillingSubscriptionDiscountView.js +46 -0
  522. package/serialization/types/BillingSubscriptionResponseData.d.ts +1 -0
  523. package/serialization/types/BillingSubscriptionResponseData.js +1 -0
  524. package/serialization/types/BillingSubscriptionView.d.ts +3 -0
  525. package/serialization/types/BillingSubscriptionView.js +3 -0
  526. package/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +20 -0
  527. package/serialization/types/ChangeSubscriptionInternalRequestBody.js +41 -0
  528. package/serialization/types/ChangeSubscriptionRequestBody.d.ts +19 -0
  529. package/serialization/types/ChangeSubscriptionRequestBody.js +40 -0
  530. package/serialization/types/CheckFlagResponseData.d.ts +6 -0
  531. package/serialization/types/CheckFlagResponseData.js +6 -0
  532. package/serialization/types/CheckFlagsResponseData.d.ts +2 -2
  533. package/serialization/types/CheckFlagsResponseData.js +2 -2
  534. package/serialization/types/CheckoutDataResponseData.d.ts +22 -0
  535. package/serialization/types/CheckoutDataResponseData.js +43 -0
  536. package/serialization/types/CompanyDetailResponseData.d.ts +2 -0
  537. package/serialization/types/CompanyDetailResponseData.js +2 -0
  538. package/serialization/types/CompanyEventPeriodMetricsResponseData.d.ts +22 -0
  539. package/serialization/types/CompanyEventPeriodMetricsResponseData.js +43 -0
  540. package/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
  541. package/serialization/types/CompanyOverrideResponseData.js +1 -0
  542. package/serialization/types/CompanySubscriptionResponseData.d.ts +3 -0
  543. package/serialization/types/CompanySubscriptionResponseData.js +3 -0
  544. package/serialization/types/ComponentHydrateResponseData.d.ts +3 -0
  545. package/serialization/types/ComponentHydrateResponseData.js +3 -0
  546. package/serialization/types/ComponentPreviewResponseData.d.ts +3 -0
  547. package/serialization/types/ComponentPreviewResponseData.js +3 -0
  548. package/serialization/types/CouponRequestBody.d.ts +19 -0
  549. package/serialization/types/CouponRequestBody.js +40 -0
  550. package/serialization/types/CreateEntitlementReqCommon.d.ts +0 -2
  551. package/serialization/types/CreateEntitlementReqCommon.js +0 -2
  552. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  553. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +1 -1
  554. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  555. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  556. package/serialization/types/EventBodyTrack.d.ts +1 -0
  557. package/serialization/types/EventBodyTrack.js +1 -0
  558. package/serialization/types/EventDetailResponseData.d.ts +1 -0
  559. package/serialization/types/EventDetailResponseData.js +1 -0
  560. package/serialization/types/EventResponseData.d.ts +1 -0
  561. package/serialization/types/EventResponseData.js +1 -0
  562. package/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
  563. package/serialization/types/FeatureCompanyResponseData.js +1 -0
  564. package/serialization/types/FeatureUsageResponseData.d.ts +5 -0
  565. package/serialization/types/FeatureUsageResponseData.js +5 -0
  566. package/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
  567. package/serialization/types/PlanEntitlementResponseData.js +1 -0
  568. package/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +19 -0
  569. package/serialization/types/PreviewSubscriptionChangeResponseData.js +40 -0
  570. package/serialization/types/UpdateAddOnRequestBody.d.ts +13 -0
  571. package/serialization/types/UpdateAddOnRequestBody.js +34 -0
  572. package/serialization/types/UpdateEntitlementReqCommon.d.ts +0 -2
  573. package/serialization/types/UpdateEntitlementReqCommon.js +0 -2
  574. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  575. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +1 -1
  576. package/serialization/types/UpdatePayInAdvanceRequestBody.d.ts +13 -0
  577. package/serialization/types/UpdatePayInAdvanceRequestBody.js +34 -0
  578. package/serialization/types/UsageBasedEntitlementRequestBody.d.ts +14 -0
  579. package/serialization/types/UsageBasedEntitlementRequestBody.js +35 -0
  580. package/serialization/types/UsageBasedEntitlementResponseData.d.ts +2 -0
  581. package/serialization/types/UsageBasedEntitlementResponseData.js +2 -0
  582. package/serialization/types/index.d.ts +12 -1
  583. package/serialization/types/index.js +12 -1
  584. package/wrapper.d.ts +49 -0
  585. package/wrapper.js +36 -0
  586. package/api/types/CheckFlagOutputWithFlagKey.d.ts +0 -13
  587. package/dist/api/types/CheckFlagOutputWithFlagKey.d.ts +0 -13
  588. package/dist/serialization/resources/events/types/GetEventSummaryBySubtypeResponse.d.ts +0 -14
  589. package/dist/serialization/types/CheckFlagOutputWithFlagKey.d.ts +0 -19
  590. package/serialization/resources/events/types/GetEventSummaryBySubtypeResponse.d.ts +0 -14
  591. package/serialization/types/CheckFlagOutputWithFlagKey.d.ts +0 -19
  592. /package/api/resources/{events/types/GetEventSummaryBySubtypeResponse.js → billing/client/requests/CreateCouponRequestBody.js} +0 -0
  593. /package/api/{types/CheckFlagOutputWithFlagKey.js → resources/billing/types/UpsertBillingCouponResponse.js} +0 -0
  594. /package/{dist/api/resources/events/types/GetEventSummaryBySubtypeResponse.js → api/resources/checkout/client/requests/UpdateTrialEndRequestBody.js} +0 -0
  595. /package/{dist/api/types/CheckFlagOutputWithFlagKey.js → api/resources/checkout/types/CheckoutInternalResponse.js} +0 -0
@@ -52,19 +52,6 @@ export declare class Events {
52
52
  * await client.events.getEventSummaries()
53
53
  */
54
54
  getEventSummaries(request?: Schematic.GetEventSummariesRequest, requestOptions?: Events.RequestOptions): Promise<Schematic.GetEventSummariesResponse>;
55
- /**
56
- * @param {string} key - key
57
- * @param {Events.RequestOptions} requestOptions - Request-specific configuration.
58
- *
59
- * @throws {@link Schematic.UnauthorizedError}
60
- * @throws {@link Schematic.ForbiddenError}
61
- * @throws {@link Schematic.NotFoundError}
62
- * @throws {@link Schematic.InternalServerError}
63
- *
64
- * @example
65
- * await client.events.getEventSummaryBySubtype("key")
66
- */
67
- getEventSummaryBySubtype(key: string, requestOptions?: Events.RequestOptions): Promise<Schematic.GetEventSummaryBySubtypeResponse>;
68
55
  /**
69
56
  * @param {Schematic.ListEventsRequest} request
70
57
  * @param {Events.RequestOptions} requestOptions - Request-specific configuration.
@@ -71,7 +71,7 @@ class Events {
71
71
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
72
72
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "event-batch"),
73
73
  method: "POST",
74
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  body: serializers.CreateEventBatchRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -181,7 +181,7 @@ class Events {
181
181
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
182
182
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "event-types"),
183
183
  method: "GET",
184
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
184
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
185
185
  contentType: "application/json",
186
186
  queryParameters: _queryParams,
187
187
  requestType: "json",
@@ -254,96 +254,6 @@ class Events {
254
254
  }
255
255
  });
256
256
  }
257
- /**
258
- * @param {string} key - key
259
- * @param {Events.RequestOptions} requestOptions - Request-specific configuration.
260
- *
261
- * @throws {@link Schematic.UnauthorizedError}
262
- * @throws {@link Schematic.ForbiddenError}
263
- * @throws {@link Schematic.NotFoundError}
264
- * @throws {@link Schematic.InternalServerError}
265
- *
266
- * @example
267
- * await client.events.getEventSummaryBySubtype("key")
268
- */
269
- getEventSummaryBySubtype(key, requestOptions) {
270
- var _a, _b;
271
- return __awaiter(this, void 0, void 0, function* () {
272
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
273
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `event-types/${encodeURIComponent(key)}`),
274
- method: "GET",
275
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
276
- contentType: "application/json",
277
- requestType: "json",
278
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
279
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
280
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
281
- });
282
- if (_response.ok) {
283
- return serializers.GetEventSummaryBySubtypeResponse.parseOrThrow(_response.body, {
284
- unrecognizedObjectKeys: "passthrough",
285
- allowUnrecognizedUnionMembers: true,
286
- allowUnrecognizedEnumValues: true,
287
- skipValidation: true,
288
- breadcrumbsPrefix: ["response"],
289
- });
290
- }
291
- if (_response.error.reason === "status-code") {
292
- switch (_response.error.statusCode) {
293
- case 401:
294
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
295
- unrecognizedObjectKeys: "passthrough",
296
- allowUnrecognizedUnionMembers: true,
297
- allowUnrecognizedEnumValues: true,
298
- skipValidation: true,
299
- breadcrumbsPrefix: ["response"],
300
- }));
301
- case 403:
302
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
303
- unrecognizedObjectKeys: "passthrough",
304
- allowUnrecognizedUnionMembers: true,
305
- allowUnrecognizedEnumValues: true,
306
- skipValidation: true,
307
- breadcrumbsPrefix: ["response"],
308
- }));
309
- case 404:
310
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
311
- unrecognizedObjectKeys: "passthrough",
312
- allowUnrecognizedUnionMembers: true,
313
- allowUnrecognizedEnumValues: true,
314
- skipValidation: true,
315
- breadcrumbsPrefix: ["response"],
316
- }));
317
- case 500:
318
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
319
- unrecognizedObjectKeys: "passthrough",
320
- allowUnrecognizedUnionMembers: true,
321
- allowUnrecognizedEnumValues: true,
322
- skipValidation: true,
323
- breadcrumbsPrefix: ["response"],
324
- }));
325
- default:
326
- throw new errors.SchematicError({
327
- statusCode: _response.error.statusCode,
328
- body: _response.error.body,
329
- });
330
- }
331
- }
332
- switch (_response.error.reason) {
333
- case "non-json":
334
- throw new errors.SchematicError({
335
- statusCode: _response.error.statusCode,
336
- body: _response.error.rawBody,
337
- });
338
- case "timeout":
339
- throw new errors.SchematicTimeoutError();
340
- case "unknown":
341
- throw new errors.SchematicError({
342
- message: _response.error.errorMessage,
343
- });
344
- }
345
- });
346
- }
347
257
  /**
348
258
  * @param {Schematic.ListEventsRequest} request
349
259
  * @param {Events.RequestOptions} requestOptions - Request-specific configuration.
@@ -390,7 +300,7 @@ class Events {
390
300
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
391
301
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "events"),
392
302
  method: "GET",
393
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
303
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
394
304
  contentType: "application/json",
395
305
  queryParameters: _queryParams,
396
306
  requestType: "json",
@@ -483,7 +393,7 @@ class Events {
483
393
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
484
394
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "events"),
485
395
  method: "POST",
486
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
396
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
487
397
  contentType: "application/json",
488
398
  requestType: "json",
489
399
  body: serializers.CreateEventRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -574,7 +484,7 @@ class Events {
574
484
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
575
485
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `events/${encodeURIComponent(eventId)}`),
576
486
  method: "GET",
577
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
487
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
578
488
  contentType: "application/json",
579
489
  requestType: "json",
580
490
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -663,7 +573,7 @@ class Events {
663
573
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
664
574
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "segment-integration"),
665
575
  method: "GET",
666
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
576
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
667
577
  contentType: "application/json",
668
578
  requestType: "json",
669
579
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,7 +1,6 @@
1
1
  export * from "./CreateEventBatchResponse";
2
2
  export * from "./GetEventSummariesParams";
3
3
  export * from "./GetEventSummariesResponse";
4
- export * from "./GetEventSummaryBySubtypeResponse";
5
4
  export * from "./ListEventsParams";
6
5
  export * from "./ListEventsResponse";
7
6
  export * from "./CreateEventResponse";
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CreateEventBatchResponse"), exports);
18
18
  __exportStar(require("./GetEventSummariesParams"), exports);
19
19
  __exportStar(require("./GetEventSummariesResponse"), exports);
20
- __exportStar(require("./GetEventSummaryBySubtypeResponse"), exports);
21
20
  __exportStar(require("./ListEventsParams"), exports);
22
21
  __exportStar(require("./ListEventsResponse"), exports);
23
22
  __exportStar(require("./CreateEventResponse"), exports);
@@ -80,7 +80,7 @@ class Features {
80
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
81
81
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "audience/count-companies"),
82
82
  method: "POST",
83
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
83
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -184,7 +184,7 @@ class Features {
184
184
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
185
185
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "audience/count-users"),
186
186
  method: "POST",
187
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
187
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
188
  contentType: "application/json",
189
189
  requestType: "json",
190
190
  body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -288,7 +288,7 @@ class Features {
288
288
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
289
289
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "audience/get-companies"),
290
290
  method: "POST",
291
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
291
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
292
292
  contentType: "application/json",
293
293
  requestType: "json",
294
294
  body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -392,7 +392,7 @@ class Features {
392
392
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
393
393
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "audience/get-users"),
394
394
  method: "POST",
395
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
395
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
396
396
  contentType: "application/json",
397
397
  requestType: "json",
398
398
  body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -508,7 +508,7 @@ class Features {
508
508
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
509
509
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "features"),
510
510
  method: "GET",
511
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
511
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
512
512
  contentType: "application/json",
513
513
  queryParameters: _queryParams,
514
514
  requestType: "json",
@@ -603,7 +603,7 @@ class Features {
603
603
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
604
604
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "features"),
605
605
  method: "POST",
606
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
606
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
607
607
  contentType: "application/json",
608
608
  requestType: "json",
609
609
  body: serializers.CreateFeatureRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -694,7 +694,7 @@ class Features {
694
694
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
695
695
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `features/${encodeURIComponent(featureId)}`),
696
696
  method: "GET",
697
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
697
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
698
698
  contentType: "application/json",
699
699
  requestType: "json",
700
700
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -786,7 +786,7 @@ class Features {
786
786
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
787
787
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `features/${encodeURIComponent(featureId)}`),
788
788
  method: "PUT",
789
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
789
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
790
790
  contentType: "application/json",
791
791
  requestType: "json",
792
792
  body: serializers.UpdateFeatureRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -885,7 +885,7 @@ class Features {
885
885
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
886
886
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `features/${encodeURIComponent(featureId)}`),
887
887
  method: "DELETE",
888
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
888
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
889
889
  contentType: "application/json",
890
890
  requestType: "json",
891
891
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1000,7 +1000,7 @@ class Features {
1000
1000
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1001
1001
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "features/count"),
1002
1002
  method: "GET",
1003
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1003
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1004
1004
  contentType: "application/json",
1005
1005
  queryParameters: _queryParams,
1006
1006
  requestType: "json",
@@ -1113,7 +1113,7 @@ class Features {
1113
1113
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1114
1114
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "flags"),
1115
1115
  method: "GET",
1116
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1116
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1117
1117
  contentType: "application/json",
1118
1118
  queryParameters: _queryParams,
1119
1119
  requestType: "json",
@@ -1210,7 +1210,7 @@ class Features {
1210
1210
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1211
1211
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "flags"),
1212
1212
  method: "POST",
1213
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1213
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1214
1214
  contentType: "application/json",
1215
1215
  requestType: "json",
1216
1216
  body: serializers.CreateFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1301,7 +1301,7 @@ class Features {
1301
1301
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1302
1302
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(flagId)}`),
1303
1303
  method: "GET",
1304
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1304
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1305
1305
  contentType: "application/json",
1306
1306
  requestType: "json",
1307
1307
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1399,7 +1399,7 @@ class Features {
1399
1399
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1400
1400
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(flagId)}`),
1401
1401
  method: "PUT",
1402
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1402
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1403
1403
  contentType: "application/json",
1404
1404
  requestType: "json",
1405
1405
  body: serializers.CreateFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1498,7 +1498,7 @@ class Features {
1498
1498
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1499
1499
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(flagId)}`),
1500
1500
  method: "DELETE",
1501
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1501
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1502
1502
  contentType: "application/json",
1503
1503
  requestType: "json",
1504
1504
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1608,7 +1608,7 @@ class Features {
1608
1608
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1609
1609
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(flagId)}/rules`),
1610
1610
  method: "PUT",
1611
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1611
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1612
1612
  contentType: "application/json",
1613
1613
  requestType: "json",
1614
1614
  body: serializers.UpdateFlagRulesRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1708,7 +1708,7 @@ class Features {
1708
1708
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1709
1709
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(key)}/check`),
1710
1710
  method: "POST",
1711
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1711
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1712
1712
  contentType: "application/json",
1713
1713
  requestType: "json",
1714
1714
  body: serializers.CheckFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1799,7 +1799,7 @@ class Features {
1799
1799
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1800
1800
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "flags/check"),
1801
1801
  method: "POST",
1802
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1802
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1803
1803
  contentType: "application/json",
1804
1804
  requestType: "json",
1805
1805
  body: serializers.CheckFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1912,7 +1912,7 @@ class Features {
1912
1912
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1913
1913
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "flags/count"),
1914
1914
  method: "GET",
1915
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1915
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1916
1916
  contentType: "application/json",
1917
1917
  queryParameters: _queryParams,
1918
1918
  requestType: "json",
@@ -4,18 +4,20 @@ export * as features from "./features";
4
4
  export * from "./features/types";
5
5
  export * as billing from "./billing";
6
6
  export * from "./billing/types";
7
+ export * as checkout from "./checkout";
8
+ export * from "./checkout/types";
7
9
  export * as companies from "./companies";
8
10
  export * from "./companies/types";
9
11
  export * as entitlements from "./entitlements";
10
12
  export * from "./entitlements/types";
13
+ export * as plans from "./plans";
14
+ export * from "./plans/types";
11
15
  export * as components from "./components";
12
16
  export * from "./components/types";
13
17
  export * as crm from "./crm";
14
18
  export * from "./crm/types";
15
19
  export * as events from "./events";
16
20
  export * from "./events/types";
17
- export * as plans from "./plans";
18
- export * from "./plans/types";
19
21
  export * as plangroups from "./plangroups";
20
22
  export * from "./plangroups/types";
21
23
  export * as accesstokens from "./accesstokens";
@@ -25,12 +27,13 @@ export * from "./webhooks/types";
25
27
  export * from "./accounts/client/requests";
26
28
  export * from "./features/client/requests";
27
29
  export * from "./billing/client/requests";
30
+ export * from "./checkout/client/requests";
28
31
  export * from "./companies/client/requests";
29
32
  export * from "./entitlements/client/requests";
33
+ export * from "./plans/client/requests";
30
34
  export * from "./components/client/requests";
31
35
  export * from "./crm/client/requests";
32
36
  export * from "./events/client/requests";
33
- export * from "./plans/client/requests";
34
37
  export * from "./plangroups/client/requests";
35
38
  export * from "./accesstokens/client/requests";
36
39
  export * from "./webhooks/client/requests";
@@ -26,25 +26,27 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.webhooks = exports.accesstokens = exports.plangroups = exports.plans = exports.events = exports.crm = exports.components = exports.entitlements = exports.companies = exports.billing = exports.features = exports.accounts = void 0;
29
+ exports.webhooks = exports.accesstokens = exports.plangroups = exports.events = exports.crm = exports.components = exports.plans = exports.entitlements = exports.companies = exports.checkout = exports.billing = exports.features = exports.accounts = void 0;
30
30
  exports.accounts = __importStar(require("./accounts"));
31
31
  __exportStar(require("./accounts/types"), exports);
32
32
  exports.features = __importStar(require("./features"));
33
33
  __exportStar(require("./features/types"), exports);
34
34
  exports.billing = __importStar(require("./billing"));
35
35
  __exportStar(require("./billing/types"), exports);
36
+ exports.checkout = __importStar(require("./checkout"));
37
+ __exportStar(require("./checkout/types"), exports);
36
38
  exports.companies = __importStar(require("./companies"));
37
39
  __exportStar(require("./companies/types"), exports);
38
40
  exports.entitlements = __importStar(require("./entitlements"));
39
41
  __exportStar(require("./entitlements/types"), exports);
42
+ exports.plans = __importStar(require("./plans"));
43
+ __exportStar(require("./plans/types"), exports);
40
44
  exports.components = __importStar(require("./components"));
41
45
  __exportStar(require("./components/types"), exports);
42
46
  exports.crm = __importStar(require("./crm"));
43
47
  __exportStar(require("./crm/types"), exports);
44
48
  exports.events = __importStar(require("./events"));
45
49
  __exportStar(require("./events/types"), exports);
46
- exports.plans = __importStar(require("./plans"));
47
- __exportStar(require("./plans/types"), exports);
48
50
  exports.plangroups = __importStar(require("./plangroups"));
49
51
  __exportStar(require("./plangroups/types"), exports);
50
52
  exports.accesstokens = __importStar(require("./accesstokens"));
@@ -54,12 +56,13 @@ __exportStar(require("./webhooks/types"), exports);
54
56
  __exportStar(require("./accounts/client/requests"), exports);
55
57
  __exportStar(require("./features/client/requests"), exports);
56
58
  __exportStar(require("./billing/client/requests"), exports);
59
+ __exportStar(require("./checkout/client/requests"), exports);
57
60
  __exportStar(require("./companies/client/requests"), exports);
58
61
  __exportStar(require("./entitlements/client/requests"), exports);
62
+ __exportStar(require("./plans/client/requests"), exports);
59
63
  __exportStar(require("./components/client/requests"), exports);
60
64
  __exportStar(require("./crm/client/requests"), exports);
61
65
  __exportStar(require("./events/client/requests"), exports);
62
- __exportStar(require("./plans/client/requests"), exports);
63
66
  __exportStar(require("./plangroups/client/requests"), exports);
64
67
  __exportStar(require("./accesstokens/client/requests"), exports);
65
68
  __exportStar(require("./webhooks/client/requests"), exports);
@@ -66,7 +66,7 @@ class Plangroups {
66
66
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
67
67
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plan-groups"),
68
68
  method: "GET",
69
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
69
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
70
70
  contentType: "application/json",
71
71
  requestType: "json",
72
72
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -159,7 +159,7 @@ class Plangroups {
159
159
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
160
160
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plan-groups"),
161
161
  method: "POST",
162
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
162
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
163
163
  contentType: "application/json",
164
164
  requestType: "json",
165
165
  body: serializers.CreatePlanGroupRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -255,7 +255,7 @@ class Plangroups {
255
255
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
256
256
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-groups/${encodeURIComponent(planGroupId)}`),
257
257
  method: "PUT",
258
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
258
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
259
259
  contentType: "application/json",
260
260
  requestType: "json",
261
261
  body: serializers.UpdatePlanGroupRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -22,6 +22,23 @@ export declare namespace Plans {
22
22
  export declare class Plans {
23
23
  protected readonly _options: Plans.Options;
24
24
  constructor(_options: Plans.Options);
25
+ /**
26
+ * @param {string} companyPlanId - company_plan_id
27
+ * @param {Schematic.UpdateCompanyPlansRequestBody} request
28
+ * @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
29
+ *
30
+ * @throws {@link Schematic.BadRequestError}
31
+ * @throws {@link Schematic.UnauthorizedError}
32
+ * @throws {@link Schematic.ForbiddenError}
33
+ * @throws {@link Schematic.NotFoundError}
34
+ * @throws {@link Schematic.InternalServerError}
35
+ *
36
+ * @example
37
+ * await client.plans.updateCompanyPlans("company_plan_id", {
38
+ * addOnIds: ["add_on_ids"]
39
+ * })
40
+ */
41
+ updateCompanyPlans(companyPlanId: string, request: Schematic.UpdateCompanyPlansRequestBody, requestOptions?: Plans.RequestOptions): Promise<Schematic.UpdateCompanyPlansResponse>;
25
42
  /**
26
43
  * @param {string} planAudienceId - plan_audience_id
27
44
  * @param {Plans.RequestOptions} requestOptions - Request-specific configuration.