@schematichq/schematic-typescript-node 1.1.6 → 1.1.8

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 (593) 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 +128 -18
  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/SearchBillingPricesRequest.d.ts +1 -0
  12. package/api/resources/billing/client/requests/index.d.ts +1 -0
  13. package/api/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
  14. package/api/resources/{events/types/GetEventSummaryBySubtypeResponse.d.ts → billing/types/UpsertBillingCouponResponse.d.ts} +2 -2
  15. package/api/resources/billing/types/index.d.ts +1 -0
  16. package/api/resources/billing/types/index.js +1 -0
  17. package/api/resources/checkout/client/Client.d.ts +106 -0
  18. package/api/resources/checkout/client/Client.js +460 -0
  19. package/api/resources/checkout/client/index.d.ts +1 -0
  20. package/api/resources/checkout/client/index.js +17 -0
  21. package/api/resources/checkout/client/requests/UpdateTrialEndRequestBody.d.ts +10 -0
  22. package/api/resources/checkout/client/requests/index.d.ts +1 -0
  23. package/api/resources/checkout/client/requests/index.js +2 -0
  24. package/api/resources/checkout/index.d.ts +2 -0
  25. package/api/resources/checkout/index.js +18 -0
  26. package/{dist/api/resources/events/types/GetEventSummaryBySubtypeResponse.d.ts → api/resources/checkout/types/CheckoutInternalResponse.d.ts} +2 -2
  27. package/api/resources/checkout/types/GetCheckoutDataResponse.d.ts +9 -0
  28. package/api/resources/checkout/types/GetCheckoutDataResponse.js +5 -0
  29. package/api/resources/checkout/types/PreviewCheckoutInternalResponse.d.ts +9 -0
  30. package/api/resources/checkout/types/PreviewCheckoutInternalResponse.js +5 -0
  31. package/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.d.ts +9 -0
  32. package/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +5 -0
  33. package/api/resources/checkout/types/index.d.ts +4 -0
  34. package/api/resources/checkout/types/index.js +20 -0
  35. package/api/resources/companies/client/Client.d.ts +2 -2
  36. package/api/resources/companies/client/Client.js +33 -33
  37. package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +2 -2
  38. package/api/resources/companies/client/requests/CountUsersRequest.d.ts +3 -3
  39. package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +2 -2
  40. package/api/resources/companies/client/requests/ListUsersRequest.d.ts +3 -3
  41. package/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +1 -1
  42. package/api/resources/companies/client/requests/LookupUserRequest.d.ts +1 -1
  43. package/api/resources/companies/types/CountCompaniesParams.d.ts +2 -2
  44. package/api/resources/companies/types/CountUsersParams.d.ts +3 -3
  45. package/api/resources/companies/types/ListCompaniesParams.d.ts +2 -2
  46. package/api/resources/companies/types/ListUsersParams.d.ts +3 -3
  47. package/api/resources/components/client/Client.js +7 -7
  48. package/api/resources/crm/client/Client.js +5 -5
  49. package/api/resources/entitlements/client/Client.d.ts +1 -1
  50. package/api/resources/entitlements/client/Client.js +28 -22
  51. package/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +9 -5
  52. package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +5 -5
  53. package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +0 -1
  54. package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +2 -2
  55. package/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +1 -1
  56. package/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +9 -5
  57. package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +5 -5
  58. package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +0 -1
  59. package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  60. package/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +7 -5
  61. package/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +5 -5
  62. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -2
  63. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +0 -1
  64. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -2
  65. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +0 -1
  66. package/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +7 -5
  67. package/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +5 -5
  68. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -2
  69. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +0 -1
  70. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -2
  71. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +0 -1
  72. package/api/resources/events/client/Client.d.ts +0 -13
  73. package/api/resources/events/client/Client.js +6 -96
  74. package/api/resources/events/types/index.d.ts +0 -1
  75. package/api/resources/events/types/index.js +0 -1
  76. package/api/resources/features/client/Client.js +19 -19
  77. package/api/resources/index.d.ts +6 -3
  78. package/api/resources/index.js +7 -4
  79. package/api/resources/plangroups/client/Client.js +3 -3
  80. package/api/resources/plans/client/Client.d.ts +17 -0
  81. package/api/resources/plans/client/Client.js +114 -11
  82. package/api/resources/plans/client/requests/UpdateCompanyPlansRequestBody.d.ts +13 -0
  83. package/api/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +5 -0
  84. package/api/resources/plans/client/requests/index.d.ts +1 -0
  85. package/api/resources/plans/types/UpdateCompanyPlansResponse.d.ts +9 -0
  86. package/api/resources/plans/types/UpdateCompanyPlansResponse.js +5 -0
  87. package/api/resources/plans/types/index.d.ts +1 -0
  88. package/api/resources/plans/types/index.js +1 -0
  89. package/api/resources/webhooks/client/Client.js +9 -9
  90. package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
  91. package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +1 -0
  92. package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
  93. package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +1 -0
  94. package/api/types/BillingCouponResponseData.d.ts +24 -0
  95. package/api/types/BillingCouponResponseData.js +5 -0
  96. package/api/types/BillingPriceView.d.ts +1 -0
  97. package/api/types/BillingProductForSubscriptionResponseData.d.ts +1 -0
  98. package/api/types/BillingProductPriceResponseData.d.ts +1 -0
  99. package/api/types/BillingSubscriptionDiscount.d.ts +12 -0
  100. package/api/types/BillingSubscriptionDiscount.js +5 -0
  101. package/api/types/BillingSubscriptionDiscountView.d.ts +19 -0
  102. package/api/types/BillingSubscriptionDiscountView.js +5 -0
  103. package/api/types/BillingSubscriptionResponseData.d.ts +1 -0
  104. package/api/types/BillingSubscriptionView.d.ts +5 -0
  105. package/api/types/ChangeSubscriptionInternalRequestBody.d.ts +13 -0
  106. package/api/types/ChangeSubscriptionInternalRequestBody.js +5 -0
  107. package/api/types/ChangeSubscriptionRequestBody.d.ts +12 -0
  108. package/api/types/ChangeSubscriptionRequestBody.js +5 -0
  109. package/api/types/CheckFlagResponseData.d.ts +20 -0
  110. package/api/types/CheckFlagsResponseData.d.ts +1 -1
  111. package/api/types/CheckoutDataResponseData.d.ts +15 -0
  112. package/api/types/CheckoutDataResponseData.js +5 -0
  113. package/api/types/CompanyDetailResponseData.d.ts +1 -0
  114. package/api/types/CompanyEventPeriodMetricsResponseData.d.ts +16 -0
  115. package/api/types/CompanyEventPeriodMetricsResponseData.js +5 -0
  116. package/api/types/CompanyOverrideResponseData.d.ts +1 -0
  117. package/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
  118. package/api/types/CompanySubscriptionResponseData.d.ts +2 -0
  119. package/api/types/ComponentHydrateResponseData.d.ts +3 -0
  120. package/api/types/ComponentPreviewResponseData.d.ts +3 -0
  121. package/api/types/CouponRequestBody.d.ts +13 -0
  122. package/api/types/CouponRequestBody.js +5 -0
  123. package/api/types/CreateEntitlementReqCommon.d.ts +0 -1
  124. package/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -2
  125. package/api/types/CreateEntitlementReqCommonMetricPeriod.js +0 -1
  126. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -2
  127. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +0 -1
  128. package/api/types/EventBodyFlagCheck.d.ts +4 -4
  129. package/api/types/FeatureCompanyResponseData.d.ts +3 -0
  130. package/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
  131. package/api/types/FeatureUsageResponseData.d.ts +6 -0
  132. package/api/types/PlanEntitlementResponseData.d.ts +3 -1
  133. package/api/types/PreviewSubscriptionChangeResponseData.d.ts +16 -0
  134. package/api/types/PreviewSubscriptionChangeResponseData.js +5 -0
  135. package/api/types/UpdateAddOnRequestBody.d.ts +7 -0
  136. package/api/types/UpdateAddOnRequestBody.js +5 -0
  137. package/api/types/UpdateEntitlementReqCommon.d.ts +0 -1
  138. package/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -2
  139. package/api/types/UpdateEntitlementReqCommonMetricPeriod.js +0 -1
  140. package/api/types/UpdatePayInAdvanceRequestBody.d.ts +7 -0
  141. package/api/types/UpdatePayInAdvanceRequestBody.js +5 -0
  142. package/api/types/UsageBasedEntitlementRequestBody.d.ts +8 -0
  143. package/api/types/UsageBasedEntitlementRequestBody.js +5 -0
  144. package/api/types/UsageBasedEntitlementResponseData.d.ts +14 -0
  145. package/api/types/UsageBasedEntitlementResponseData.js +5 -0
  146. package/api/types/index.d.ts +13 -1
  147. package/api/types/index.js +13 -1
  148. package/dist/Client.d.ts +6 -13
  149. package/dist/Client.js +26 -109
  150. package/dist/api/resources/accesstokens/client/Client.js +1 -1
  151. package/dist/api/resources/accounts/client/Client.js +14 -14
  152. package/dist/api/resources/billing/client/Client.d.ts +29 -0
  153. package/dist/api/resources/billing/client/Client.js +128 -18
  154. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
  155. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +8 -0
  156. package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.d.ts +27 -0
  157. package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.js +5 -0
  158. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +1 -0
  159. package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
  160. package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
  161. package/dist/api/resources/billing/types/UpsertBillingCouponResponse.d.ts +9 -0
  162. package/dist/api/resources/billing/types/UpsertBillingCouponResponse.js +5 -0
  163. package/dist/api/resources/billing/types/index.d.ts +1 -0
  164. package/dist/api/resources/billing/types/index.js +1 -0
  165. package/dist/api/resources/checkout/client/Client.d.ts +106 -0
  166. package/dist/api/resources/checkout/client/Client.js +460 -0
  167. package/dist/api/resources/checkout/client/index.d.ts +1 -0
  168. package/dist/api/resources/checkout/client/index.js +17 -0
  169. package/dist/api/resources/checkout/client/requests/UpdateTrialEndRequestBody.d.ts +10 -0
  170. package/dist/api/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +5 -0
  171. package/dist/api/resources/checkout/client/requests/index.d.ts +1 -0
  172. package/dist/api/resources/checkout/client/requests/index.js +2 -0
  173. package/dist/api/resources/checkout/index.d.ts +2 -0
  174. package/dist/api/resources/checkout/index.js +18 -0
  175. package/dist/api/resources/checkout/types/CheckoutInternalResponse.d.ts +9 -0
  176. package/dist/api/resources/checkout/types/CheckoutInternalResponse.js +5 -0
  177. package/dist/api/resources/checkout/types/GetCheckoutDataResponse.d.ts +9 -0
  178. package/dist/api/resources/checkout/types/GetCheckoutDataResponse.js +5 -0
  179. package/dist/api/resources/checkout/types/PreviewCheckoutInternalResponse.d.ts +9 -0
  180. package/dist/api/resources/checkout/types/PreviewCheckoutInternalResponse.js +5 -0
  181. package/dist/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.d.ts +9 -0
  182. package/dist/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +5 -0
  183. package/dist/api/resources/checkout/types/index.d.ts +4 -0
  184. package/dist/api/resources/checkout/types/index.js +20 -0
  185. package/dist/api/resources/companies/client/Client.d.ts +2 -2
  186. package/dist/api/resources/companies/client/Client.js +33 -33
  187. package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +2 -2
  188. package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +3 -3
  189. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +2 -2
  190. package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +3 -3
  191. package/dist/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +1 -1
  192. package/dist/api/resources/companies/client/requests/LookupUserRequest.d.ts +1 -1
  193. package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -2
  194. package/dist/api/resources/companies/types/CountUsersParams.d.ts +3 -3
  195. package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -2
  196. package/dist/api/resources/companies/types/ListUsersParams.d.ts +3 -3
  197. package/dist/api/resources/components/client/Client.js +7 -7
  198. package/dist/api/resources/crm/client/Client.js +5 -5
  199. package/dist/api/resources/entitlements/client/Client.d.ts +1 -1
  200. package/dist/api/resources/entitlements/client/Client.js +28 -22
  201. package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +9 -5
  202. package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +5 -5
  203. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +0 -1
  204. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +2 -2
  205. package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +1 -1
  206. package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +9 -5
  207. package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +5 -5
  208. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +0 -1
  209. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  210. package/dist/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +7 -5
  211. package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +5 -5
  212. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -2
  213. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +0 -1
  214. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -2
  215. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +0 -1
  216. package/dist/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +7 -5
  217. package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +5 -5
  218. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -2
  219. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +0 -1
  220. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -2
  221. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +0 -1
  222. package/dist/api/resources/events/client/Client.d.ts +0 -13
  223. package/dist/api/resources/events/client/Client.js +6 -96
  224. package/dist/api/resources/events/types/index.d.ts +0 -1
  225. package/dist/api/resources/events/types/index.js +0 -1
  226. package/dist/api/resources/features/client/Client.js +19 -19
  227. package/dist/api/resources/index.d.ts +6 -3
  228. package/dist/api/resources/index.js +7 -4
  229. package/dist/api/resources/plangroups/client/Client.js +3 -3
  230. package/dist/api/resources/plans/client/Client.d.ts +17 -0
  231. package/dist/api/resources/plans/client/Client.js +114 -11
  232. package/dist/api/resources/plans/client/requests/UpdateCompanyPlansRequestBody.d.ts +13 -0
  233. package/dist/api/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +5 -0
  234. package/dist/api/resources/plans/client/requests/index.d.ts +1 -0
  235. package/dist/api/resources/plans/types/UpdateCompanyPlansResponse.d.ts +9 -0
  236. package/dist/api/resources/plans/types/UpdateCompanyPlansResponse.js +5 -0
  237. package/dist/api/resources/plans/types/index.d.ts +1 -0
  238. package/dist/api/resources/plans/types/index.js +1 -0
  239. package/dist/api/resources/webhooks/client/Client.js +9 -9
  240. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
  241. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +1 -0
  242. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
  243. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +1 -0
  244. package/dist/api/types/BillingCouponResponseData.d.ts +24 -0
  245. package/dist/api/types/BillingCouponResponseData.js +5 -0
  246. package/dist/api/types/BillingPriceView.d.ts +1 -0
  247. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +1 -0
  248. package/dist/api/types/BillingProductPriceResponseData.d.ts +1 -0
  249. package/dist/api/types/BillingSubscriptionDiscount.d.ts +12 -0
  250. package/dist/api/types/BillingSubscriptionDiscount.js +5 -0
  251. package/dist/api/types/BillingSubscriptionDiscountView.d.ts +19 -0
  252. package/dist/api/types/BillingSubscriptionDiscountView.js +5 -0
  253. package/dist/api/types/BillingSubscriptionResponseData.d.ts +1 -0
  254. package/dist/api/types/BillingSubscriptionView.d.ts +5 -0
  255. package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +13 -0
  256. package/dist/api/types/ChangeSubscriptionInternalRequestBody.js +5 -0
  257. package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +12 -0
  258. package/dist/api/types/ChangeSubscriptionRequestBody.js +5 -0
  259. package/dist/api/types/CheckFlagResponseData.d.ts +20 -0
  260. package/dist/api/types/CheckFlagsResponseData.d.ts +1 -1
  261. package/dist/api/types/CheckoutDataResponseData.d.ts +15 -0
  262. package/dist/api/types/CheckoutDataResponseData.js +5 -0
  263. package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
  264. package/dist/api/types/CompanyEventPeriodMetricsResponseData.d.ts +16 -0
  265. package/dist/api/types/CompanyEventPeriodMetricsResponseData.js +5 -0
  266. package/dist/api/types/CompanyOverrideResponseData.d.ts +1 -0
  267. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
  268. package/dist/api/types/CompanySubscriptionResponseData.d.ts +2 -0
  269. package/dist/api/types/ComponentHydrateResponseData.d.ts +3 -0
  270. package/dist/api/types/ComponentPreviewResponseData.d.ts +3 -0
  271. package/dist/api/types/CouponRequestBody.d.ts +13 -0
  272. package/dist/api/types/CouponRequestBody.js +5 -0
  273. package/dist/api/types/CreateEntitlementReqCommon.d.ts +0 -1
  274. package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -2
  275. package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.js +0 -1
  276. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -2
  277. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +0 -1
  278. package/dist/api/types/EventBodyFlagCheck.d.ts +4 -4
  279. package/dist/api/types/FeatureCompanyResponseData.d.ts +3 -0
  280. package/dist/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
  281. package/dist/api/types/FeatureUsageResponseData.d.ts +6 -0
  282. package/dist/api/types/PlanEntitlementResponseData.d.ts +3 -1
  283. package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +16 -0
  284. package/dist/api/types/PreviewSubscriptionChangeResponseData.js +5 -0
  285. package/dist/api/types/UpdateAddOnRequestBody.d.ts +7 -0
  286. package/dist/api/types/UpdateAddOnRequestBody.js +5 -0
  287. package/dist/api/types/UpdateEntitlementReqCommon.d.ts +0 -1
  288. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -2
  289. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.js +0 -1
  290. package/dist/api/types/UpdatePayInAdvanceRequestBody.d.ts +7 -0
  291. package/dist/api/types/UpdatePayInAdvanceRequestBody.js +5 -0
  292. package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +8 -0
  293. package/dist/api/types/UsageBasedEntitlementRequestBody.js +5 -0
  294. package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +14 -0
  295. package/dist/api/types/UsageBasedEntitlementResponseData.js +5 -0
  296. package/dist/api/types/index.d.ts +13 -1
  297. package/dist/api/types/index.js +13 -1
  298. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -0
  299. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +1 -0
  300. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +3 -0
  301. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +3 -0
  302. package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.d.ts +20 -0
  303. package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +41 -0
  304. package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -0
  305. package/dist/serialization/resources/billing/client/requests/index.js +3 -1
  306. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
  307. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +1 -0
  308. package/dist/serialization/resources/billing/types/UpsertBillingCouponResponse.d.ts +14 -0
  309. package/dist/serialization/resources/{events/types/GetEventSummaryBySubtypeResponse.js → billing/types/UpsertBillingCouponResponse.js} +4 -4
  310. package/dist/serialization/resources/billing/types/index.d.ts +1 -0
  311. package/dist/serialization/resources/billing/types/index.js +1 -0
  312. package/dist/serialization/resources/checkout/client/index.d.ts +1 -0
  313. package/dist/serialization/resources/checkout/client/index.js +17 -0
  314. package/dist/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.d.ts +12 -0
  315. package/dist/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +33 -0
  316. package/dist/serialization/resources/checkout/client/requests/index.d.ts +1 -0
  317. package/dist/serialization/resources/checkout/client/requests/index.js +5 -0
  318. package/dist/serialization/resources/checkout/index.d.ts +2 -0
  319. package/dist/serialization/resources/checkout/index.js +18 -0
  320. package/dist/serialization/resources/checkout/types/CheckoutInternalResponse.d.ts +14 -0
  321. package/dist/serialization/resources/checkout/types/CheckoutInternalResponse.js +35 -0
  322. package/dist/serialization/resources/checkout/types/GetCheckoutDataResponse.d.ts +14 -0
  323. package/{serialization/resources/events/types/GetEventSummaryBySubtypeResponse.js → dist/serialization/resources/checkout/types/GetCheckoutDataResponse.js} +4 -4
  324. package/dist/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.d.ts +14 -0
  325. package/dist/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +35 -0
  326. package/dist/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.d.ts +14 -0
  327. package/dist/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +35 -0
  328. package/dist/serialization/resources/checkout/types/index.d.ts +4 -0
  329. package/dist/serialization/resources/checkout/types/index.js +20 -0
  330. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +0 -1
  331. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +0 -1
  332. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +2 -2
  333. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +2 -2
  334. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +0 -1
  335. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +0 -1
  336. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  337. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -1
  338. package/dist/serialization/resources/entitlements/types/CountCompanyOverridesParams.d.ts +1 -0
  339. package/dist/serialization/resources/entitlements/types/CountCompanyOverridesParams.js +1 -0
  340. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  341. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  342. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  343. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  344. package/dist/serialization/resources/entitlements/types/ListCompanyOverridesParams.d.ts +1 -0
  345. package/dist/serialization/resources/entitlements/types/ListCompanyOverridesParams.js +1 -0
  346. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  347. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  348. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  349. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  350. package/dist/serialization/resources/events/types/index.d.ts +0 -1
  351. package/dist/serialization/resources/events/types/index.js +0 -1
  352. package/dist/serialization/resources/index.d.ts +6 -3
  353. package/dist/serialization/resources/index.js +7 -4
  354. package/dist/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.d.ts +13 -0
  355. package/dist/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +34 -0
  356. package/dist/serialization/resources/plans/client/requests/index.d.ts +1 -0
  357. package/dist/serialization/resources/plans/client/requests/index.js +3 -1
  358. package/dist/serialization/resources/plans/types/UpdateCompanyPlansResponse.d.ts +14 -0
  359. package/dist/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +35 -0
  360. package/dist/serialization/resources/plans/types/index.d.ts +1 -0
  361. package/dist/serialization/resources/plans/types/index.js +1 -0
  362. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  363. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +1 -0
  364. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  365. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +1 -0
  366. package/dist/serialization/types/BillingCouponResponseData.d.ts +27 -0
  367. package/dist/serialization/types/BillingCouponResponseData.js +48 -0
  368. package/dist/serialization/types/BillingPriceView.d.ts +1 -0
  369. package/dist/serialization/types/BillingPriceView.js +1 -0
  370. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +1 -0
  371. package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +1 -0
  372. package/dist/serialization/types/BillingProductPriceResponseData.d.ts +1 -0
  373. package/dist/serialization/types/BillingProductPriceResponseData.js +1 -0
  374. package/dist/serialization/types/BillingSubscriptionDiscount.d.ts +18 -0
  375. package/dist/serialization/types/BillingSubscriptionDiscount.js +39 -0
  376. package/dist/serialization/types/BillingSubscriptionDiscountView.d.ts +25 -0
  377. package/dist/serialization/types/BillingSubscriptionDiscountView.js +46 -0
  378. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +1 -0
  379. package/dist/serialization/types/BillingSubscriptionResponseData.js +1 -0
  380. package/dist/serialization/types/BillingSubscriptionView.d.ts +3 -0
  381. package/dist/serialization/types/BillingSubscriptionView.js +3 -0
  382. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +20 -0
  383. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.js +41 -0
  384. package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +19 -0
  385. package/dist/serialization/types/ChangeSubscriptionRequestBody.js +40 -0
  386. package/dist/serialization/types/CheckFlagResponseData.d.ts +7 -0
  387. package/dist/serialization/types/CheckFlagResponseData.js +7 -0
  388. package/dist/serialization/types/CheckFlagsResponseData.d.ts +2 -2
  389. package/dist/serialization/types/CheckFlagsResponseData.js +2 -2
  390. package/dist/serialization/types/CheckoutDataResponseData.d.ts +22 -0
  391. package/dist/serialization/types/CheckoutDataResponseData.js +43 -0
  392. package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -0
  393. package/dist/serialization/types/CompanyDetailResponseData.js +2 -0
  394. package/dist/serialization/types/CompanyEventPeriodMetricsResponseData.d.ts +22 -0
  395. package/dist/serialization/types/CompanyEventPeriodMetricsResponseData.js +43 -0
  396. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
  397. package/dist/serialization/types/CompanyOverrideResponseData.js +1 -0
  398. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +1 -0
  399. package/dist/serialization/types/CompanyPlanDetailResponseData.js +1 -0
  400. package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +3 -0
  401. package/dist/serialization/types/CompanySubscriptionResponseData.js +3 -0
  402. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +5 -0
  403. package/dist/serialization/types/ComponentHydrateResponseData.js +5 -0
  404. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +5 -0
  405. package/dist/serialization/types/ComponentPreviewResponseData.js +5 -0
  406. package/dist/serialization/types/CouponRequestBody.d.ts +19 -0
  407. package/dist/serialization/types/CouponRequestBody.js +40 -0
  408. package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +0 -1
  409. package/dist/serialization/types/CreateEntitlementReqCommon.js +0 -1
  410. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  411. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +1 -1
  412. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  413. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  414. package/dist/serialization/types/FeatureCompanyResponseData.d.ts +2 -0
  415. package/dist/serialization/types/FeatureCompanyResponseData.js +2 -0
  416. package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
  417. package/dist/serialization/types/FeatureCompanyUserResponseData.js +1 -0
  418. package/dist/serialization/types/FeatureUsageResponseData.d.ts +6 -0
  419. package/dist/serialization/types/FeatureUsageResponseData.js +6 -0
  420. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +3 -1
  421. package/dist/serialization/types/PlanEntitlementResponseData.js +3 -1
  422. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +19 -0
  423. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +40 -0
  424. package/dist/serialization/types/UpdateAddOnRequestBody.d.ts +13 -0
  425. package/dist/serialization/types/{CheckFlagOutputWithFlagKey.js → UpdateAddOnRequestBody.js} +4 -9
  426. package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +0 -1
  427. package/dist/serialization/types/UpdateEntitlementReqCommon.js +0 -1
  428. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  429. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +1 -1
  430. package/dist/serialization/types/UpdatePayInAdvanceRequestBody.d.ts +13 -0
  431. package/{serialization/types/CheckFlagOutputWithFlagKey.js → dist/serialization/types/UpdatePayInAdvanceRequestBody.js} +4 -9
  432. package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +14 -0
  433. package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +35 -0
  434. package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +20 -0
  435. package/dist/serialization/types/UsageBasedEntitlementResponseData.js +41 -0
  436. package/dist/serialization/types/index.d.ts +13 -1
  437. package/dist/serialization/types/index.js +13 -1
  438. package/dist/wrapper.d.ts +49 -0
  439. package/dist/wrapper.js +36 -0
  440. package/package.json +1 -1
  441. package/reference.md +614 -346
  442. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -0
  443. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +1 -0
  444. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +3 -0
  445. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +3 -0
  446. package/serialization/resources/billing/client/requests/CreateCouponRequestBody.d.ts +20 -0
  447. package/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +41 -0
  448. package/serialization/resources/billing/client/requests/index.d.ts +1 -0
  449. package/serialization/resources/billing/client/requests/index.js +3 -1
  450. package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
  451. package/serialization/resources/billing/types/SearchBillingPricesParams.js +1 -0
  452. package/serialization/resources/billing/types/UpsertBillingCouponResponse.d.ts +14 -0
  453. package/serialization/resources/billing/types/UpsertBillingCouponResponse.js +35 -0
  454. package/serialization/resources/billing/types/index.d.ts +1 -0
  455. package/serialization/resources/billing/types/index.js +1 -0
  456. package/serialization/resources/checkout/client/index.d.ts +1 -0
  457. package/serialization/resources/checkout/client/index.js +17 -0
  458. package/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.d.ts +12 -0
  459. package/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +33 -0
  460. package/serialization/resources/checkout/client/requests/index.d.ts +1 -0
  461. package/serialization/resources/checkout/client/requests/index.js +5 -0
  462. package/serialization/resources/checkout/index.d.ts +2 -0
  463. package/serialization/resources/checkout/index.js +18 -0
  464. package/serialization/resources/checkout/types/CheckoutInternalResponse.d.ts +14 -0
  465. package/serialization/resources/checkout/types/CheckoutInternalResponse.js +35 -0
  466. package/serialization/resources/checkout/types/GetCheckoutDataResponse.d.ts +14 -0
  467. package/serialization/resources/checkout/types/GetCheckoutDataResponse.js +35 -0
  468. package/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.d.ts +14 -0
  469. package/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +35 -0
  470. package/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.d.ts +14 -0
  471. package/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +35 -0
  472. package/serialization/resources/checkout/types/index.d.ts +4 -0
  473. package/serialization/resources/checkout/types/index.js +20 -0
  474. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +0 -1
  475. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +0 -1
  476. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +2 -2
  477. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +2 -2
  478. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +0 -1
  479. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +0 -1
  480. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  481. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -1
  482. package/serialization/resources/entitlements/types/CountCompanyOverridesParams.d.ts +1 -0
  483. package/serialization/resources/entitlements/types/CountCompanyOverridesParams.js +1 -0
  484. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  485. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  486. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  487. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  488. package/serialization/resources/entitlements/types/ListCompanyOverridesParams.d.ts +1 -0
  489. package/serialization/resources/entitlements/types/ListCompanyOverridesParams.js +1 -0
  490. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  491. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  492. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  493. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  494. package/serialization/resources/events/types/index.d.ts +0 -1
  495. package/serialization/resources/events/types/index.js +0 -1
  496. package/serialization/resources/index.d.ts +6 -3
  497. package/serialization/resources/index.js +7 -4
  498. package/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.d.ts +13 -0
  499. package/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +34 -0
  500. package/serialization/resources/plans/client/requests/index.d.ts +1 -0
  501. package/serialization/resources/plans/client/requests/index.js +3 -1
  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 +7 -0
  531. package/serialization/types/CheckFlagResponseData.js +7 -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/CompanyPlanDetailResponseData.d.ts +1 -0
  543. package/serialization/types/CompanyPlanDetailResponseData.js +1 -0
  544. package/serialization/types/CompanySubscriptionResponseData.d.ts +3 -0
  545. package/serialization/types/CompanySubscriptionResponseData.js +3 -0
  546. package/serialization/types/ComponentHydrateResponseData.d.ts +5 -0
  547. package/serialization/types/ComponentHydrateResponseData.js +5 -0
  548. package/serialization/types/ComponentPreviewResponseData.d.ts +5 -0
  549. package/serialization/types/ComponentPreviewResponseData.js +5 -0
  550. package/serialization/types/CouponRequestBody.d.ts +19 -0
  551. package/serialization/types/CouponRequestBody.js +40 -0
  552. package/serialization/types/CreateEntitlementReqCommon.d.ts +0 -1
  553. package/serialization/types/CreateEntitlementReqCommon.js +0 -1
  554. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  555. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +1 -1
  556. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  557. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  558. package/serialization/types/FeatureCompanyResponseData.d.ts +2 -0
  559. package/serialization/types/FeatureCompanyResponseData.js +2 -0
  560. package/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
  561. package/serialization/types/FeatureCompanyUserResponseData.js +1 -0
  562. package/serialization/types/FeatureUsageResponseData.d.ts +6 -0
  563. package/serialization/types/FeatureUsageResponseData.js +6 -0
  564. package/serialization/types/PlanEntitlementResponseData.d.ts +3 -1
  565. package/serialization/types/PlanEntitlementResponseData.js +3 -1
  566. package/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +19 -0
  567. package/serialization/types/PreviewSubscriptionChangeResponseData.js +40 -0
  568. package/serialization/types/UpdateAddOnRequestBody.d.ts +13 -0
  569. package/serialization/types/UpdateAddOnRequestBody.js +34 -0
  570. package/serialization/types/UpdateEntitlementReqCommon.d.ts +0 -1
  571. package/serialization/types/UpdateEntitlementReqCommon.js +0 -1
  572. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -1
  573. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +1 -1
  574. package/serialization/types/UpdatePayInAdvanceRequestBody.d.ts +13 -0
  575. package/serialization/types/UpdatePayInAdvanceRequestBody.js +34 -0
  576. package/serialization/types/UsageBasedEntitlementRequestBody.d.ts +14 -0
  577. package/serialization/types/UsageBasedEntitlementRequestBody.js +35 -0
  578. package/serialization/types/UsageBasedEntitlementResponseData.d.ts +20 -0
  579. package/serialization/types/UsageBasedEntitlementResponseData.js +41 -0
  580. package/serialization/types/index.d.ts +13 -1
  581. package/serialization/types/index.js +13 -1
  582. package/wrapper.d.ts +49 -0
  583. package/wrapper.js +36 -0
  584. package/api/types/CheckFlagOutputWithFlagKey.d.ts +0 -12
  585. package/dist/api/types/CheckFlagOutputWithFlagKey.d.ts +0 -12
  586. package/dist/serialization/resources/events/types/GetEventSummaryBySubtypeResponse.d.ts +0 -14
  587. package/dist/serialization/types/CheckFlagOutputWithFlagKey.d.ts +0 -18
  588. package/serialization/resources/events/types/GetEventSummaryBySubtypeResponse.d.ts +0 -14
  589. package/serialization/types/CheckFlagOutputWithFlagKey.d.ts +0 -18
  590. /package/api/resources/{events/types/GetEventSummaryBySubtypeResponse.js → billing/client/requests/CreateCouponRequestBody.js} +0 -0
  591. /package/api/{types/CheckFlagOutputWithFlagKey.js → resources/billing/types/UpsertBillingCouponResponse.js} +0 -0
  592. /package/{dist/api/resources/events/types/GetEventSummaryBySubtypeResponse.js → api/resources/checkout/client/requests/UpdateTrialEndRequestBody.js} +0 -0
  593. /package/{dist/api/types/CheckFlagOutputWithFlagKey.js → api/resources/checkout/types/CheckoutInternalResponse.js} +0 -0
@@ -9,6 +9,7 @@ export declare namespace CreateBillingPriceRequestBody {
9
9
  interface Raw {
10
10
  currency: string;
11
11
  interval: string;
12
+ is_active: boolean;
12
13
  meter_id?: string | null;
13
14
  price: number;
14
15
  price_external_id: string;
@@ -31,6 +31,7 @@ const core = __importStar(require("../../../../../core"));
31
31
  exports.CreateBillingPriceRequestBody = core.serialization.object({
32
32
  currency: core.serialization.string(),
33
33
  interval: core.serialization.string(),
34
+ isActive: core.serialization.property("is_active", core.serialization.boolean()),
34
35
  meterId: core.serialization.property("meter_id", core.serialization.string().optional()),
35
36
  price: core.serialization.number(),
36
37
  priceExternalId: core.serialization.property("price_external_id", core.serialization.string()),
@@ -4,12 +4,14 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Schematic from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
+ import { BillingSubscriptionDiscount } from "../../../../types/BillingSubscriptionDiscount";
7
8
  import { BillingProductPricing } from "../../../../types/BillingProductPricing";
8
9
  export declare const CreateBillingSubscriptionsRequestBody: core.serialization.Schema<serializers.CreateBillingSubscriptionsRequestBody.Raw, Schematic.CreateBillingSubscriptionsRequestBody>;
9
10
  export declare namespace CreateBillingSubscriptionsRequestBody {
10
11
  interface Raw {
11
12
  currency: string;
12
13
  customer_external_id: string;
14
+ discounts: BillingSubscriptionDiscount.Raw[];
13
15
  expired_at: string;
14
16
  interval?: string | null;
15
17
  metadata?: Record<string, unknown> | null;
@@ -20,5 +22,6 @@ export declare namespace CreateBillingSubscriptionsRequestBody {
20
22
  subscription_external_id: string;
21
23
  total_price: number;
22
24
  trial_end?: number | null;
25
+ trial_end_setting?: string | null;
23
26
  }
24
27
  }
@@ -28,10 +28,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.CreateBillingSubscriptionsRequestBody = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
+ const BillingSubscriptionDiscount_1 = require("../../../../types/BillingSubscriptionDiscount");
31
32
  const BillingProductPricing_1 = require("../../../../types/BillingProductPricing");
32
33
  exports.CreateBillingSubscriptionsRequestBody = core.serialization.object({
33
34
  currency: core.serialization.string(),
34
35
  customerExternalId: core.serialization.property("customer_external_id", core.serialization.string()),
36
+ discounts: core.serialization.list(BillingSubscriptionDiscount_1.BillingSubscriptionDiscount),
35
37
  expiredAt: core.serialization.property("expired_at", core.serialization.date()),
36
38
  interval: core.serialization.string().optional(),
37
39
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
@@ -42,4 +44,5 @@ exports.CreateBillingSubscriptionsRequestBody = core.serialization.object({
42
44
  subscriptionExternalId: core.serialization.property("subscription_external_id", core.serialization.string()),
43
45
  totalPrice: core.serialization.property("total_price", core.serialization.number()),
44
46
  trialEnd: core.serialization.property("trial_end", core.serialization.number().optional()),
47
+ trialEndSetting: core.serialization.property("trial_end_setting", core.serialization.string().optional()),
45
48
  });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as Schematic from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ export declare const CreateCouponRequestBody: core.serialization.Schema<serializers.CreateCouponRequestBody.Raw, Schematic.CreateCouponRequestBody>;
8
+ export declare namespace CreateCouponRequestBody {
9
+ interface Raw {
10
+ amount_off: number;
11
+ currency?: string | null;
12
+ duration: string;
13
+ duration_in_months: number;
14
+ external_id: string;
15
+ max_redemptions: number;
16
+ name: string;
17
+ percent_off: number;
18
+ times_redeemed: number;
19
+ }
20
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CreateCouponRequestBody = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ exports.CreateCouponRequestBody = core.serialization.object({
32
+ amountOff: core.serialization.property("amount_off", core.serialization.number()),
33
+ currency: core.serialization.string().optional(),
34
+ duration: core.serialization.string(),
35
+ durationInMonths: core.serialization.property("duration_in_months", core.serialization.number()),
36
+ externalId: core.serialization.property("external_id", core.serialization.string()),
37
+ maxRedemptions: core.serialization.property("max_redemptions", core.serialization.number()),
38
+ name: core.serialization.string(),
39
+ percentOff: core.serialization.property("percent_off", core.serialization.number()),
40
+ timesRedeemed: core.serialization.property("times_redeemed", core.serialization.number()),
41
+ });
@@ -1,3 +1,4 @@
1
+ export { CreateCouponRequestBody } from "./CreateCouponRequestBody";
1
2
  export { CreateBillingCustomerRequestBody } from "./CreateBillingCustomerRequestBody";
2
3
  export { CreateInvoiceRequestBody } from "./CreateInvoiceRequestBody";
3
4
  export { CreateMeterRequestBody } from "./CreateMeterRequestBody";
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateBillingSubscriptionsRequestBody = exports.CreateBillingProductRequestBody = exports.CreateBillingPriceRequestBody = exports.CreatePaymentMethodRequestBody = exports.CreateMeterRequestBody = exports.CreateInvoiceRequestBody = exports.CreateBillingCustomerRequestBody = void 0;
3
+ exports.CreateBillingSubscriptionsRequestBody = exports.CreateBillingProductRequestBody = exports.CreateBillingPriceRequestBody = exports.CreatePaymentMethodRequestBody = exports.CreateMeterRequestBody = exports.CreateInvoiceRequestBody = exports.CreateBillingCustomerRequestBody = exports.CreateCouponRequestBody = void 0;
4
+ var CreateCouponRequestBody_1 = require("./CreateCouponRequestBody");
5
+ Object.defineProperty(exports, "CreateCouponRequestBody", { enumerable: true, get: function () { return CreateCouponRequestBody_1.CreateCouponRequestBody; } });
4
6
  var CreateBillingCustomerRequestBody_1 = require("./CreateBillingCustomerRequestBody");
5
7
  Object.defineProperty(exports, "CreateBillingCustomerRequestBody", { enumerable: true, get: function () { return CreateBillingCustomerRequestBody_1.CreateBillingCustomerRequestBody; } });
6
8
  var CreateInvoiceRequestBody_1 = require("./CreateInvoiceRequestBody");
@@ -8,6 +8,7 @@ export declare const SearchBillingPricesParams: core.serialization.ObjectSchema<
8
8
  export declare namespace SearchBillingPricesParams {
9
9
  interface Raw {
10
10
  ids?: string[] | null;
11
+ interval?: string | null;
11
12
  limit?: number | null;
12
13
  offset?: number | null;
13
14
  price?: number | null;
@@ -30,6 +30,7 @@ exports.SearchBillingPricesParams = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.SearchBillingPricesParams = core.serialization.object({
32
32
  ids: core.serialization.list(core.serialization.string()).optional(),
33
+ interval: core.serialization.string().optional(),
33
34
  limit: core.serialization.number().optional(),
34
35
  offset: core.serialization.number().optional(),
35
36
  price: core.serialization.number().optional(),
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { BillingCouponResponseData } from "../../../types/BillingCouponResponseData";
8
+ export declare const UpsertBillingCouponResponse: core.serialization.ObjectSchema<serializers.UpsertBillingCouponResponse.Raw, Schematic.UpsertBillingCouponResponse>;
9
+ export declare namespace UpsertBillingCouponResponse {
10
+ interface Raw {
11
+ data: BillingCouponResponseData.Raw;
12
+ params: Record<string, unknown>;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.UpsertBillingCouponResponse = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const BillingCouponResponseData_1 = require("../../../types/BillingCouponResponseData");
32
+ exports.UpsertBillingCouponResponse = core.serialization.object({
33
+ data: BillingCouponResponseData_1.BillingCouponResponseData,
34
+ params: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
35
+ });
@@ -1,3 +1,4 @@
1
+ export * from "./UpsertBillingCouponResponse";
1
2
  export * from "./UpsertBillingCustomerResponse";
2
3
  export * from "./ListCustomersParams";
3
4
  export * from "./ListCustomersResponse";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./UpsertBillingCouponResponse"), exports);
17
18
  __exportStar(require("./UpsertBillingCustomerResponse"), exports);
18
19
  __exportStar(require("./ListCustomersParams"), exports);
19
20
  __exportStar(require("./ListCustomersResponse"), exports);
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as Schematic from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ export declare const UpdateTrialEndRequestBody: core.serialization.Schema<serializers.UpdateTrialEndRequestBody.Raw, Schematic.UpdateTrialEndRequestBody>;
8
+ export declare namespace UpdateTrialEndRequestBody {
9
+ interface Raw {
10
+ trial_end?: string | null;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.UpdateTrialEndRequestBody = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ exports.UpdateTrialEndRequestBody = core.serialization.object({
32
+ trialEnd: core.serialization.property("trial_end", core.serialization.date().optional()),
33
+ });
@@ -0,0 +1 @@
1
+ export { UpdateTrialEndRequestBody } from "./UpdateTrialEndRequestBody";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateTrialEndRequestBody = void 0;
4
+ var UpdateTrialEndRequestBody_1 = require("./UpdateTrialEndRequestBody");
5
+ Object.defineProperty(exports, "UpdateTrialEndRequestBody", { enumerable: true, get: function () { return UpdateTrialEndRequestBody_1.UpdateTrialEndRequestBody; } });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { BillingSubscriptionResponseData } from "../../../types/BillingSubscriptionResponseData";
8
+ export declare const CheckoutInternalResponse: core.serialization.ObjectSchema<serializers.CheckoutInternalResponse.Raw, Schematic.CheckoutInternalResponse>;
9
+ export declare namespace CheckoutInternalResponse {
10
+ interface Raw {
11
+ data: BillingSubscriptionResponseData.Raw;
12
+ params: Record<string, unknown>;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CheckoutInternalResponse = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const BillingSubscriptionResponseData_1 = require("../../../types/BillingSubscriptionResponseData");
32
+ exports.CheckoutInternalResponse = core.serialization.object({
33
+ data: BillingSubscriptionResponseData_1.BillingSubscriptionResponseData,
34
+ params: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
35
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { CheckoutDataResponseData } from "../../../types/CheckoutDataResponseData";
8
+ export declare const GetCheckoutDataResponse: core.serialization.ObjectSchema<serializers.GetCheckoutDataResponse.Raw, Schematic.GetCheckoutDataResponse>;
9
+ export declare namespace GetCheckoutDataResponse {
10
+ interface Raw {
11
+ data: CheckoutDataResponseData.Raw;
12
+ params: Record<string, unknown>;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.GetCheckoutDataResponse = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const CheckoutDataResponseData_1 = require("../../../types/CheckoutDataResponseData");
32
+ exports.GetCheckoutDataResponse = core.serialization.object({
33
+ data: CheckoutDataResponseData_1.CheckoutDataResponseData,
34
+ params: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
35
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { PreviewSubscriptionChangeResponseData } from "../../../types/PreviewSubscriptionChangeResponseData";
8
+ export declare const PreviewCheckoutInternalResponse: core.serialization.ObjectSchema<serializers.PreviewCheckoutInternalResponse.Raw, Schematic.PreviewCheckoutInternalResponse>;
9
+ export declare namespace PreviewCheckoutInternalResponse {
10
+ interface Raw {
11
+ data: PreviewSubscriptionChangeResponseData.Raw;
12
+ params: Record<string, unknown>;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.PreviewCheckoutInternalResponse = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const PreviewSubscriptionChangeResponseData_1 = require("../../../types/PreviewSubscriptionChangeResponseData");
32
+ exports.PreviewCheckoutInternalResponse = core.serialization.object({
33
+ data: PreviewSubscriptionChangeResponseData_1.PreviewSubscriptionChangeResponseData,
34
+ params: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
35
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { BillingSubscriptionView } from "../../../types/BillingSubscriptionView";
8
+ export declare const UpdateCustomerSubscriptionTrialEndResponse: core.serialization.ObjectSchema<serializers.UpdateCustomerSubscriptionTrialEndResponse.Raw, Schematic.UpdateCustomerSubscriptionTrialEndResponse>;
9
+ export declare namespace UpdateCustomerSubscriptionTrialEndResponse {
10
+ interface Raw {
11
+ data: BillingSubscriptionView.Raw;
12
+ params: Record<string, unknown>;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.UpdateCustomerSubscriptionTrialEndResponse = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const BillingSubscriptionView_1 = require("../../../types/BillingSubscriptionView");
32
+ exports.UpdateCustomerSubscriptionTrialEndResponse = core.serialization.object({
33
+ data: BillingSubscriptionView_1.BillingSubscriptionView,
34
+ params: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
35
+ });
@@ -0,0 +1,4 @@
1
+ export * from "./CheckoutInternalResponse";
2
+ export * from "./GetCheckoutDataResponse";
3
+ export * from "./PreviewCheckoutInternalResponse";
4
+ export * from "./UpdateCustomerSubscriptionTrialEndResponse";
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CheckoutInternalResponse"), exports);
18
+ __exportStar(require("./GetCheckoutDataResponse"), exports);
19
+ __exportStar(require("./PreviewCheckoutInternalResponse"), exports);
20
+ __exportStar(require("./UpdateCustomerSubscriptionTrialEndResponse"), exports);
@@ -13,7 +13,6 @@ export declare namespace CreateCompanyOverrideRequestBody {
13
13
  company_id: string;
14
14
  expiration_date?: string | null;
15
15
  feature_id: string;
16
- metered_price_id?: string | null;
17
16
  metric_period?: CreateCompanyOverrideRequestBodyMetricPeriod.Raw | null;
18
17
  metric_period_month_reset?: CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.Raw | null;
19
18
  value_bool?: boolean | null;
@@ -35,7 +35,6 @@ exports.CreateCompanyOverrideRequestBody = core.serialization.object({
35
35
  companyId: core.serialization.property("company_id", core.serialization.string()),
36
36
  expirationDate: core.serialization.property("expiration_date", core.serialization.date().optional()),
37
37
  featureId: core.serialization.property("feature_id", core.serialization.string()),
38
- meteredPriceId: core.serialization.property("metered_price_id", core.serialization.string().optional()),
39
38
  metricPeriod: core.serialization.property("metric_period", CreateCompanyOverrideRequestBodyMetricPeriod_1.CreateCompanyOverrideRequestBodyMetricPeriod.optional()),
40
39
  metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", CreateCompanyOverrideRequestBodyMetricPeriodMonthReset_1.CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.optional()),
41
40
  valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
@@ -11,15 +11,15 @@ export declare const CreatePlanEntitlementRequestBody: core.serialization.Schema
11
11
  export declare namespace CreatePlanEntitlementRequestBody {
12
12
  interface Raw {
13
13
  feature_id: string;
14
- metered_price_id?: string | null;
15
- metered_product_price_id?: string | null;
16
14
  metric_period?: CreatePlanEntitlementRequestBodyMetricPeriod.Raw | null;
17
15
  metric_period_month_reset?: CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.Raw | null;
16
+ monthly_metered_price_id?: string | null;
18
17
  plan_id: string;
19
18
  price_behavior?: string | null;
20
19
  value_bool?: boolean | null;
21
20
  value_numeric?: number | null;
22
21
  value_trait_id?: string | null;
23
22
  value_type: CreatePlanEntitlementRequestBodyValueType.Raw;
23
+ yearly_metered_price_id?: string | null;
24
24
  }
25
25
  }
@@ -33,14 +33,14 @@ const CreatePlanEntitlementRequestBodyMetricPeriodMonthReset_1 = require("../../
33
33
  const CreatePlanEntitlementRequestBodyValueType_1 = require("../../types/CreatePlanEntitlementRequestBodyValueType");
34
34
  exports.CreatePlanEntitlementRequestBody = core.serialization.object({
35
35
  featureId: core.serialization.property("feature_id", core.serialization.string()),
36
- meteredPriceId: core.serialization.property("metered_price_id", core.serialization.string().optional()),
37
- meteredProductPriceId: core.serialization.property("metered_product_price_id", core.serialization.string().optional()),
38
36
  metricPeriod: core.serialization.property("metric_period", CreatePlanEntitlementRequestBodyMetricPeriod_1.CreatePlanEntitlementRequestBodyMetricPeriod.optional()),
39
37
  metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", CreatePlanEntitlementRequestBodyMetricPeriodMonthReset_1.CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.optional()),
38
+ monthlyMeteredPriceId: core.serialization.property("monthly_metered_price_id", core.serialization.string().optional()),
40
39
  planId: core.serialization.property("plan_id", core.serialization.string()),
41
40
  priceBehavior: core.serialization.property("price_behavior", core.serialization.string().optional()),
42
41
  valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
43
42
  valueNumeric: core.serialization.property("value_numeric", core.serialization.number().optional()),
44
43
  valueTraitId: core.serialization.property("value_trait_id", core.serialization.string().optional()),
45
44
  valueType: core.serialization.property("value_type", CreatePlanEntitlementRequestBodyValueType_1.CreatePlanEntitlementRequestBodyValueType),
45
+ yearlyMeteredPriceId: core.serialization.property("yearly_metered_price_id", core.serialization.string().optional()),
46
46
  });