@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
@@ -64,7 +64,7 @@ class Entitlements {
64
64
  listCompanyOverrides(request = {}, requestOptions) {
65
65
  var _a, _b;
66
66
  return __awaiter(this, void 0, void 0, function* () {
67
- const { companyId, companyIds, featureId, featureIds, ids, q, limit, offset } = request;
67
+ const { companyId, companyIds, featureId, featureIds, ids, withoutExpired, q, limit, offset } = request;
68
68
  const _queryParams = {};
69
69
  if (companyId != null) {
70
70
  _queryParams["company_id"] = companyId;
@@ -96,6 +96,9 @@ class Entitlements {
96
96
  _queryParams["ids"] = ids;
97
97
  }
98
98
  }
99
+ if (withoutExpired != null) {
100
+ _queryParams["without_expired"] = withoutExpired.toString();
101
+ }
99
102
  if (q != null) {
100
103
  _queryParams["q"] = q;
101
104
  }
@@ -108,7 +111,7 @@ class Entitlements {
108
111
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
109
112
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-overrides"),
110
113
  method: "GET",
111
- 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())),
114
+ 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())),
112
115
  contentType: "application/json",
113
116
  queryParameters: _queryParams,
114
117
  requestType: "json",
@@ -203,7 +206,7 @@ class Entitlements {
203
206
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
204
207
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-overrides"),
205
208
  method: "POST",
206
- 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())),
209
+ 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())),
207
210
  contentType: "application/json",
208
211
  requestType: "json",
209
212
  body: serializers.CreateCompanyOverrideRequestBody.jsonOrThrow(request, {
@@ -296,7 +299,7 @@ class Entitlements {
296
299
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
297
300
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `company-overrides/${encodeURIComponent(companyOverrideId)}`),
298
301
  method: "GET",
299
- 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())),
302
+ 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())),
300
303
  contentType: "application/json",
301
304
  requestType: "json",
302
305
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -390,7 +393,7 @@ class Entitlements {
390
393
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
391
394
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `company-overrides/${encodeURIComponent(companyOverrideId)}`),
392
395
  method: "PUT",
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())),
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())),
394
397
  contentType: "application/json",
395
398
  requestType: "json",
396
399
  body: serializers.UpdateCompanyOverrideRequestBody.jsonOrThrow(request, {
@@ -491,7 +494,7 @@ class Entitlements {
491
494
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
492
495
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `company-overrides/${encodeURIComponent(companyOverrideId)}`),
493
496
  method: "DELETE",
494
- 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())),
497
+ 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())),
495
498
  contentType: "application/json",
496
499
  requestType: "json",
497
500
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -578,7 +581,7 @@ class Entitlements {
578
581
  countCompanyOverrides(request = {}, requestOptions) {
579
582
  var _a, _b;
580
583
  return __awaiter(this, void 0, void 0, function* () {
581
- const { companyId, companyIds, featureId, featureIds, ids, q, limit, offset } = request;
584
+ const { companyId, companyIds, featureId, featureIds, ids, withoutExpired, q, limit, offset } = request;
582
585
  const _queryParams = {};
583
586
  if (companyId != null) {
584
587
  _queryParams["company_id"] = companyId;
@@ -610,6 +613,9 @@ class Entitlements {
610
613
  _queryParams["ids"] = ids;
611
614
  }
612
615
  }
616
+ if (withoutExpired != null) {
617
+ _queryParams["without_expired"] = withoutExpired.toString();
618
+ }
613
619
  if (q != null) {
614
620
  _queryParams["q"] = q;
615
621
  }
@@ -622,7 +628,7 @@ class Entitlements {
622
628
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
623
629
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-overrides/count"),
624
630
  method: "GET",
625
- 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())),
631
+ 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())),
626
632
  contentType: "application/json",
627
633
  queryParameters: _queryParams,
628
634
  requestType: "json",
@@ -727,7 +733,7 @@ class Entitlements {
727
733
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
728
734
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-companies"),
729
735
  method: "GET",
730
- 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())),
736
+ 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())),
731
737
  contentType: "application/json",
732
738
  queryParameters: _queryParams,
733
739
  requestType: "json",
@@ -832,7 +838,7 @@ class Entitlements {
832
838
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
833
839
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-companies/count"),
834
840
  method: "GET",
835
- 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())),
841
+ 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())),
836
842
  contentType: "application/json",
837
843
  queryParameters: _queryParams,
838
844
  requestType: "json",
@@ -951,7 +957,7 @@ class Entitlements {
951
957
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
952
958
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-usage"),
953
959
  method: "GET",
954
- 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())),
960
+ 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())),
955
961
  contentType: "application/json",
956
962
  queryParameters: _queryParams,
957
963
  requestType: "json",
@@ -1070,7 +1076,7 @@ class Entitlements {
1070
1076
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1071
1077
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-usage/count"),
1072
1078
  method: "GET",
1073
- 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())),
1079
+ 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())),
1074
1080
  contentType: "application/json",
1075
1081
  queryParameters: _queryParams,
1076
1082
  requestType: "json",
@@ -1175,7 +1181,7 @@ class Entitlements {
1175
1181
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1176
1182
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-users"),
1177
1183
  method: "GET",
1178
- 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())),
1184
+ 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())),
1179
1185
  contentType: "application/json",
1180
1186
  queryParameters: _queryParams,
1181
1187
  requestType: "json",
@@ -1280,7 +1286,7 @@ class Entitlements {
1280
1286
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1281
1287
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "feature-users/count"),
1282
1288
  method: "GET",
1283
- 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())),
1289
+ 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())),
1284
1290
  contentType: "application/json",
1285
1291
  queryParameters: _queryParams,
1286
1292
  requestType: "json",
@@ -1415,7 +1421,7 @@ class Entitlements {
1415
1421
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1416
1422
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plan-entitlements"),
1417
1423
  method: "GET",
1418
- 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())),
1424
+ 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())),
1419
1425
  contentType: "application/json",
1420
1426
  queryParameters: _queryParams,
1421
1427
  requestType: "json",
@@ -1510,7 +1516,7 @@ class Entitlements {
1510
1516
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1511
1517
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plan-entitlements"),
1512
1518
  method: "POST",
1513
- 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())),
1519
+ 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())),
1514
1520
  contentType: "application/json",
1515
1521
  requestType: "json",
1516
1522
  body: serializers.CreatePlanEntitlementRequestBody.jsonOrThrow(request, {
@@ -1603,7 +1609,7 @@ class Entitlements {
1603
1609
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1604
1610
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-entitlements/${encodeURIComponent(planEntitlementId)}`),
1605
1611
  method: "GET",
1606
- 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())),
1612
+ 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())),
1607
1613
  contentType: "application/json",
1608
1614
  requestType: "json",
1609
1615
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1697,7 +1703,7 @@ class Entitlements {
1697
1703
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1698
1704
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-entitlements/${encodeURIComponent(planEntitlementId)}`),
1699
1705
  method: "PUT",
1700
- 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())),
1706
+ 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())),
1701
1707
  contentType: "application/json",
1702
1708
  requestType: "json",
1703
1709
  body: serializers.UpdatePlanEntitlementRequestBody.jsonOrThrow(request, {
@@ -1798,7 +1804,7 @@ class Entitlements {
1798
1804
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1799
1805
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-entitlements/${encodeURIComponent(planEntitlementId)}`),
1800
1806
  method: "DELETE",
1801
- 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())),
1807
+ 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())),
1802
1808
  contentType: "application/json",
1803
1809
  requestType: "json",
1804
1810
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1932,7 +1938,7 @@ class Entitlements {
1932
1938
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1933
1939
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plan-entitlements/count"),
1934
1940
  method: "GET",
1935
- 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())),
1941
+ 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())),
1936
1942
  contentType: "application/json",
1937
1943
  queryParameters: _queryParams,
1938
1944
  requestType: "json",
@@ -2032,7 +2038,7 @@ class Entitlements {
2032
2038
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2033
2039
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "usage-by-company"),
2034
2040
  method: "GET",
2035
- 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())),
2041
+ 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())),
2036
2042
  contentType: "application/json",
2037
2043
  queryParameters: _queryParams,
2038
2044
  requestType: "json",
@@ -7,25 +7,29 @@
7
7
  */
8
8
  export interface CountCompanyOverridesRequest {
9
9
  /**
10
- * Filter company overrides by a single company ID (starting with comp\_)
10
+ * Filter company overrides by a single company ID (starting with comp_)
11
11
  */
12
12
  companyId?: string;
13
13
  /**
14
- * Filter company overrides by multiple company IDs (starting with comp\_)
14
+ * Filter company overrides by multiple company IDs (starting with comp_)
15
15
  */
16
16
  companyIds?: string | string[];
17
17
  /**
18
- * Filter company overrides by a single feature ID (starting with feat\_)
18
+ * Filter company overrides by a single feature ID (starting with feat_)
19
19
  */
20
20
  featureId?: string;
21
21
  /**
22
- * Filter company overrides by multiple feature IDs (starting with feat\_)
22
+ * Filter company overrides by multiple feature IDs (starting with feat_)
23
23
  */
24
24
  featureIds?: string | string[];
25
25
  /**
26
- * Filter company overrides by multiple company override IDs (starting with cmov\_)
26
+ * Filter company overrides by multiple company override IDs (starting with cmov_)
27
27
  */
28
28
  ids?: string | string[];
29
+ /**
30
+ * Filter company overrides by whether they have not expired
31
+ */
32
+ withoutExpired?: boolean;
29
33
  /**
30
34
  * Search for company overrides by feature or company name
31
35
  */
@@ -7,23 +7,23 @@
7
7
  */
8
8
  export interface CountPlanEntitlementsRequest {
9
9
  /**
10
- * Filter plan entitlements by a single feature ID (starting with feat\_)
10
+ * Filter plan entitlements by a single feature ID (starting with feat_)
11
11
  */
12
12
  featureId?: string;
13
13
  /**
14
- * Filter plan entitlements by multiple feature IDs (starting with feat\_)
14
+ * Filter plan entitlements by multiple feature IDs (starting with feat_)
15
15
  */
16
16
  featureIds?: string | string[];
17
17
  /**
18
- * Filter plan entitlements by multiple plan entitlement IDs (starting with pltl\_)
18
+ * Filter plan entitlements by multiple plan entitlement IDs (starting with pltl_)
19
19
  */
20
20
  ids?: string | string[];
21
21
  /**
22
- * Filter plan entitlements by a single plan ID (starting with plan\_)
22
+ * Filter plan entitlements by a single plan ID (starting with plan_)
23
23
  */
24
24
  planId?: string;
25
25
  /**
26
- * Filter plan entitlements by multiple plan IDs (starting with plan\_)
26
+ * Filter plan entitlements by multiple plan IDs (starting with plan_)
27
27
  */
28
28
  planIds?: string | string[];
29
29
  /**
@@ -14,8 +14,6 @@ export interface CreateCompanyOverrideRequestBody {
14
14
  companyId: string;
15
15
  expirationDate?: Date;
16
16
  featureId: string;
17
- meteredMonthlyPriceId?: string;
18
- meteredYearlyPriceId?: string;
19
17
  metricPeriod?: Schematic.CreateCompanyOverrideRequestBodyMetricPeriod;
20
18
  metricPeriodMonthReset?: Schematic.CreateCompanyOverrideRequestBodyMetricPeriodMonthReset;
21
19
  valueBool?: boolean;
@@ -12,8 +12,6 @@ import * as Schematic from "../../../../index";
12
12
  */
13
13
  export interface CreatePlanEntitlementRequestBody {
14
14
  featureId: string;
15
- meteredMonthlyPriceId?: string;
16
- meteredYearlyPriceId?: string;
17
15
  metricPeriod?: Schematic.CreatePlanEntitlementRequestBodyMetricPeriod;
18
16
  metricPeriodMonthReset?: Schematic.CreatePlanEntitlementRequestBodyMetricPeriodMonthReset;
19
17
  monthlyMeteredPriceId?: string;
@@ -7,25 +7,29 @@
7
7
  */
8
8
  export interface ListCompanyOverridesRequest {
9
9
  /**
10
- * Filter company overrides by a single company ID (starting with comp\_)
10
+ * Filter company overrides by a single company ID (starting with comp_)
11
11
  */
12
12
  companyId?: string;
13
13
  /**
14
- * Filter company overrides by multiple company IDs (starting with comp\_)
14
+ * Filter company overrides by multiple company IDs (starting with comp_)
15
15
  */
16
16
  companyIds?: string | string[];
17
17
  /**
18
- * Filter company overrides by a single feature ID (starting with feat\_)
18
+ * Filter company overrides by a single feature ID (starting with feat_)
19
19
  */
20
20
  featureId?: string;
21
21
  /**
22
- * Filter company overrides by multiple feature IDs (starting with feat\_)
22
+ * Filter company overrides by multiple feature IDs (starting with feat_)
23
23
  */
24
24
  featureIds?: string | string[];
25
25
  /**
26
- * Filter company overrides by multiple company override IDs (starting with cmov\_)
26
+ * Filter company overrides by multiple company override IDs (starting with cmov_)
27
27
  */
28
28
  ids?: string | string[];
29
+ /**
30
+ * Filter company overrides by whether they have not expired
31
+ */
32
+ withoutExpired?: boolean;
29
33
  /**
30
34
  * Search for company overrides by feature or company name
31
35
  */
@@ -7,23 +7,23 @@
7
7
  */
8
8
  export interface ListPlanEntitlementsRequest {
9
9
  /**
10
- * Filter plan entitlements by a single feature ID (starting with feat\_)
10
+ * Filter plan entitlements by a single feature ID (starting with feat_)
11
11
  */
12
12
  featureId?: string;
13
13
  /**
14
- * Filter plan entitlements by multiple feature IDs (starting with feat\_)
14
+ * Filter plan entitlements by multiple feature IDs (starting with feat_)
15
15
  */
16
16
  featureIds?: string | string[];
17
17
  /**
18
- * Filter plan entitlements by multiple plan entitlement IDs (starting with pltl\_)
18
+ * Filter plan entitlements by multiple plan entitlement IDs (starting with pltl_)
19
19
  */
20
20
  ids?: string | string[];
21
21
  /**
22
- * Filter plan entitlements by a single plan ID (starting with plan\_)
22
+ * Filter plan entitlements by a single plan ID (starting with plan_)
23
23
  */
24
24
  planId?: string;
25
25
  /**
26
- * Filter plan entitlements by multiple plan IDs (starting with plan\_)
26
+ * Filter plan entitlements by multiple plan IDs (starting with plan_)
27
27
  */
28
28
  planIds?: string | string[];
29
29
  /**
@@ -10,8 +10,6 @@ import * as Schematic from "../../../../index";
10
10
  */
11
11
  export interface UpdateCompanyOverrideRequestBody {
12
12
  expirationDate?: Date;
13
- meteredMonthlyPriceId?: string;
14
- meteredYearlyPriceId?: string;
15
13
  metricPeriod?: Schematic.UpdateCompanyOverrideRequestBodyMetricPeriod;
16
14
  metricPeriodMonthReset?: Schematic.UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset;
17
15
  valueBool?: boolean;
@@ -9,12 +9,13 @@ import * as Schematic from "../../../../index";
9
9
  * }
10
10
  */
11
11
  export interface UpdatePlanEntitlementRequestBody {
12
- meteredMonthlyPriceId?: string;
13
- meteredYearlyPriceId?: string;
14
12
  metricPeriod?: Schematic.UpdatePlanEntitlementRequestBodyMetricPeriod;
15
13
  metricPeriodMonthReset?: Schematic.UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset;
14
+ monthlyMeteredPriceId?: string;
15
+ priceBehavior?: string;
16
16
  valueBool?: boolean;
17
17
  valueNumeric?: number;
18
18
  valueTraitId?: string;
19
19
  valueType: Schematic.UpdatePlanEntitlementRequestBodyValueType;
20
+ yearlyMeteredPriceId?: string;
20
21
  }
@@ -5,15 +5,15 @@
5
5
  * Input parameters
6
6
  */
7
7
  export interface CountCompanyOverridesParams {
8
- /** Filter company overrides by a single company ID (starting with comp\_) */
8
+ /** Filter company overrides by a single company ID (starting with comp_) */
9
9
  companyId?: string;
10
- /** Filter company overrides by multiple company IDs (starting with comp\_) */
10
+ /** Filter company overrides by multiple company IDs (starting with comp_) */
11
11
  companyIds?: string[];
12
- /** Filter company overrides by a single feature ID (starting with feat\_) */
12
+ /** Filter company overrides by a single feature ID (starting with feat_) */
13
13
  featureId?: string;
14
- /** Filter company overrides by multiple feature IDs (starting with feat\_) */
14
+ /** Filter company overrides by multiple feature IDs (starting with feat_) */
15
15
  featureIds?: string[];
16
- /** Filter company overrides by multiple company override IDs (starting with cmov\_) */
16
+ /** Filter company overrides by multiple company override IDs (starting with cmov_) */
17
17
  ids?: string[];
18
18
  /** Page limit (default 100) */
19
19
  limit?: number;
@@ -21,4 +21,6 @@ export interface CountCompanyOverridesParams {
21
21
  offset?: number;
22
22
  /** Search for company overrides by feature or company name */
23
23
  q?: string;
24
+ /** Filter company overrides by whether they have not expired */
25
+ withoutExpired?: boolean;
24
26
  }
@@ -5,19 +5,19 @@
5
5
  * Input parameters
6
6
  */
7
7
  export interface CountPlanEntitlementsParams {
8
- /** Filter plan entitlements by a single feature ID (starting with feat\_) */
8
+ /** Filter plan entitlements by a single feature ID (starting with feat_) */
9
9
  featureId?: string;
10
- /** Filter plan entitlements by multiple feature IDs (starting with feat\_) */
10
+ /** Filter plan entitlements by multiple feature IDs (starting with feat_) */
11
11
  featureIds?: string[];
12
- /** Filter plan entitlements by multiple plan entitlement IDs (starting with pltl\_) */
12
+ /** Filter plan entitlements by multiple plan entitlement IDs (starting with pltl_) */
13
13
  ids?: string[];
14
14
  /** Page limit (default 100) */
15
15
  limit?: number;
16
16
  /** Page offset (default 0) */
17
17
  offset?: number;
18
- /** Filter plan entitlements by a single plan ID (starting with plan\_) */
18
+ /** Filter plan entitlements by a single plan ID (starting with plan_) */
19
19
  planId?: string;
20
- /** Filter plan entitlements by multiple plan IDs (starting with plan\_) */
20
+ /** Filter plan entitlements by multiple plan IDs (starting with plan_) */
21
21
  planIds?: string[];
22
22
  /** Search for plan entitlements by feature or company name */
23
23
  q?: string;
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type CreateCompanyOverrideRequestBodyMetricPeriod = "all_time" | "billing" | "current_month" | "current_week" | "current_day";
4
+ export declare type CreateCompanyOverrideRequestBodyMetricPeriod = "all_time" | "current_month" | "current_week" | "current_day";
5
5
  export declare const CreateCompanyOverrideRequestBodyMetricPeriod: {
6
6
  readonly AllTime: "all_time";
7
- readonly Billing: "billing";
8
7
  readonly CurrentMonth: "current_month";
9
8
  readonly CurrentWeek: "current_week";
10
9
  readonly CurrentDay: "current_day";
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CreateCompanyOverrideRequestBodyMetricPeriod = void 0;
7
7
  exports.CreateCompanyOverrideRequestBodyMetricPeriod = {
8
8
  AllTime: "all_time",
9
- Billing: "billing",
10
9
  CurrentMonth: "current_month",
11
10
  CurrentWeek: "current_week",
12
11
  CurrentDay: "current_day",
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type CreatePlanEntitlementRequestBodyMetricPeriod = "all_time" | "billing" | "current_month" | "current_week" | "current_day";
4
+ export declare type CreatePlanEntitlementRequestBodyMetricPeriod = "all_time" | "current_month" | "current_week" | "current_day";
5
5
  export declare const CreatePlanEntitlementRequestBodyMetricPeriod: {
6
6
  readonly AllTime: "all_time";
7
- readonly Billing: "billing";
8
7
  readonly CurrentMonth: "current_month";
9
8
  readonly CurrentWeek: "current_week";
10
9
  readonly CurrentDay: "current_day";
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CreatePlanEntitlementRequestBodyMetricPeriod = void 0;
7
7
  exports.CreatePlanEntitlementRequestBodyMetricPeriod = {
8
8
  AllTime: "all_time",
9
- Billing: "billing",
10
9
  CurrentMonth: "current_month",
11
10
  CurrentWeek: "current_week",
12
11
  CurrentDay: "current_day",
@@ -5,15 +5,15 @@
5
5
  * Input parameters
6
6
  */
7
7
  export interface ListCompanyOverridesParams {
8
- /** Filter company overrides by a single company ID (starting with comp\_) */
8
+ /** Filter company overrides by a single company ID (starting with comp_) */
9
9
  companyId?: string;
10
- /** Filter company overrides by multiple company IDs (starting with comp\_) */
10
+ /** Filter company overrides by multiple company IDs (starting with comp_) */
11
11
  companyIds?: string[];
12
- /** Filter company overrides by a single feature ID (starting with feat\_) */
12
+ /** Filter company overrides by a single feature ID (starting with feat_) */
13
13
  featureId?: string;
14
- /** Filter company overrides by multiple feature IDs (starting with feat\_) */
14
+ /** Filter company overrides by multiple feature IDs (starting with feat_) */
15
15
  featureIds?: string[];
16
- /** Filter company overrides by multiple company override IDs (starting with cmov\_) */
16
+ /** Filter company overrides by multiple company override IDs (starting with cmov_) */
17
17
  ids?: string[];
18
18
  /** Page limit (default 100) */
19
19
  limit?: number;
@@ -21,4 +21,6 @@ export interface ListCompanyOverridesParams {
21
21
  offset?: number;
22
22
  /** Search for company overrides by feature or company name */
23
23
  q?: string;
24
+ /** Filter company overrides by whether they have not expired */
25
+ withoutExpired?: boolean;
24
26
  }
@@ -5,19 +5,19 @@
5
5
  * Input parameters
6
6
  */
7
7
  export interface ListPlanEntitlementsParams {
8
- /** Filter plan entitlements by a single feature ID (starting with feat\_) */
8
+ /** Filter plan entitlements by a single feature ID (starting with feat_) */
9
9
  featureId?: string;
10
- /** Filter plan entitlements by multiple feature IDs (starting with feat\_) */
10
+ /** Filter plan entitlements by multiple feature IDs (starting with feat_) */
11
11
  featureIds?: string[];
12
- /** Filter plan entitlements by multiple plan entitlement IDs (starting with pltl\_) */
12
+ /** Filter plan entitlements by multiple plan entitlement IDs (starting with pltl_) */
13
13
  ids?: string[];
14
14
  /** Page limit (default 100) */
15
15
  limit?: number;
16
16
  /** Page offset (default 0) */
17
17
  offset?: number;
18
- /** Filter plan entitlements by a single plan ID (starting with plan\_) */
18
+ /** Filter plan entitlements by a single plan ID (starting with plan_) */
19
19
  planId?: string;
20
- /** Filter plan entitlements by multiple plan IDs (starting with plan\_) */
20
+ /** Filter plan entitlements by multiple plan IDs (starting with plan_) */
21
21
  planIds?: string[];
22
22
  /** Search for plan entitlements by feature or company name */
23
23
  q?: string;
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type UpdateCompanyOverrideRequestBodyMetricPeriod = "all_time" | "billing" | "current_month" | "current_week" | "current_day";
4
+ export declare type UpdateCompanyOverrideRequestBodyMetricPeriod = "all_time" | "current_month" | "current_week" | "current_day";
5
5
  export declare const UpdateCompanyOverrideRequestBodyMetricPeriod: {
6
6
  readonly AllTime: "all_time";
7
- readonly Billing: "billing";
8
7
  readonly CurrentMonth: "current_month";
9
8
  readonly CurrentWeek: "current_week";
10
9
  readonly CurrentDay: "current_day";
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.UpdateCompanyOverrideRequestBodyMetricPeriod = void 0;
7
7
  exports.UpdateCompanyOverrideRequestBodyMetricPeriod = {
8
8
  AllTime: "all_time",
9
- Billing: "billing",
10
9
  CurrentMonth: "current_month",
11
10
  CurrentWeek: "current_week",
12
11
  CurrentDay: "current_day",
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type UpdatePlanEntitlementRequestBodyMetricPeriod = "all_time" | "billing" | "current_month" | "current_week" | "current_day";
4
+ export declare type UpdatePlanEntitlementRequestBodyMetricPeriod = "all_time" | "current_month" | "current_week" | "current_day";
5
5
  export declare const UpdatePlanEntitlementRequestBodyMetricPeriod: {
6
6
  readonly AllTime: "all_time";
7
- readonly Billing: "billing";
8
7
  readonly CurrentMonth: "current_month";
9
8
  readonly CurrentWeek: "current_week";
10
9
  readonly CurrentDay: "current_day";
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.UpdatePlanEntitlementRequestBodyMetricPeriod = void 0;
7
7
  exports.UpdatePlanEntitlementRequestBodyMetricPeriod = {
8
8
  AllTime: "all_time",
9
- Billing: "billing",
10
9
  CurrentMonth: "current_month",
11
10
  CurrentWeek: "current_week",
12
11
  CurrentDay: "current_day",