@schematichq/schematic-typescript-node 1.1.5 → 1.1.6

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 (568) hide show
  1. package/Client.js +1 -1
  2. package/api/resources/accesstokens/client/Client.js +1 -1
  3. package/api/resources/accounts/client/Client.js +14 -14
  4. package/api/resources/billing/client/Client.d.ts +21 -5
  5. package/api/resources/billing/client/Client.js +167 -24
  6. package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +9 -0
  7. package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -1
  8. package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -1
  9. package/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +3 -3
  10. package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +9 -0
  11. package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +9 -0
  12. package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +20 -0
  13. package/api/resources/billing/client/requests/index.d.ts +1 -0
  14. package/api/resources/billing/types/CountBillingProductsParams.d.ts +5 -0
  15. package/api/resources/billing/types/ListBillingProductsParams.d.ts +5 -0
  16. package/api/resources/billing/types/ListProductPricesParams.d.ts +5 -0
  17. package/api/resources/billing/types/SearchBillingPricesParams.d.ts +15 -0
  18. package/api/resources/{events/types/ListMetricCountsResponse.d.ts → billing/types/SearchBillingPricesResponse.d.ts} +3 -3
  19. package/api/resources/billing/types/index.d.ts +2 -0
  20. package/api/resources/billing/types/index.js +2 -0
  21. package/api/resources/companies/client/Client.d.ts +2 -4
  22. package/api/resources/companies/client/Client.js +45 -37
  23. package/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
  24. package/api/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  25. package/api/resources/components/client/Client.js +7 -7
  26. package/api/resources/crm/client/Client.js +5 -5
  27. package/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  28. package/api/resources/entitlements/client/Client.js +27 -21
  29. package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +4 -0
  30. package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +3 -0
  31. package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -0
  32. package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +4 -0
  33. package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +3 -0
  34. package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -0
  35. package/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +2 -0
  36. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  37. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  38. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  39. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  40. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  41. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  42. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  43. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  44. package/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +2 -0
  45. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  46. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  47. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  48. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  49. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  50. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  51. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  52. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  53. package/api/resources/entitlements/types/index.d.ts +4 -0
  54. package/api/resources/entitlements/types/index.js +4 -0
  55. package/api/resources/events/client/Client.d.ts +0 -13
  56. package/api/resources/events/client/Client.js +7 -140
  57. package/api/resources/events/client/requests/index.d.ts +0 -1
  58. package/api/resources/events/types/index.d.ts +0 -2
  59. package/api/resources/events/types/index.js +0 -2
  60. package/api/resources/features/client/Client.js +19 -19
  61. package/api/resources/plangroups/client/Client.js +3 -3
  62. package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  63. package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  64. package/api/resources/plans/client/Client.d.ts +2 -1
  65. package/api/resources/plans/client/Client.js +12 -11
  66. package/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
  67. package/api/resources/webhooks/client/Client.js +9 -9
  68. package/api/types/BillingCustomerSubscription.d.ts +3 -0
  69. package/api/types/BillingPriceView.d.ts +18 -0
  70. package/api/types/BillingProductDetailResponseData.d.ts +1 -1
  71. package/api/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
  72. package/api/types/BillingProductPlanResponseData.d.ts +2 -0
  73. package/api/types/BillingProductPriceResponseData.d.ts +15 -0
  74. package/api/types/BillingProductPricing.d.ts +3 -0
  75. package/api/types/BillingSubscriptionResponseData.d.ts +9 -2
  76. package/api/types/BillingSubscriptionView.d.ts +23 -0
  77. package/api/types/CompanyDetailResponseData.d.ts +2 -1
  78. package/api/types/CompanyOverrideResponseData.d.ts +3 -1
  79. package/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
  80. package/api/types/ComponentCapabilities.d.ts +6 -0
  81. package/api/types/ComponentHydrateResponseData.d.ts +1 -0
  82. package/api/types/ComponentPreviewResponseData.d.ts +1 -0
  83. package/api/types/CreateEntitlementReqCommon.d.ts +14 -0
  84. package/api/types/{CreateReqCommonMetricPeriod.d.ts → CreateEntitlementReqCommonMetricPeriod.d.ts} +3 -2
  85. package/api/types/{UpdateReqCommonMetricPeriod.js → CreateEntitlementReqCommonMetricPeriod.js} +3 -2
  86. package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  87. package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  88. package/api/types/{CreateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
  89. package/api/types/{UpdateReqCommonValueType.js → CreateEntitlementReqCommonValueType.js} +2 -2
  90. package/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  91. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
  92. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
  93. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
  94. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
  95. package/api/types/FeatureCompanyResponseData.d.ts +2 -0
  96. package/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
  97. package/api/types/FeatureUsageResponseData.d.ts +2 -0
  98. package/api/types/PlanDetailResponseData.d.ts +3 -0
  99. package/api/types/PlanEntitlementResponseData.d.ts +3 -0
  100. package/api/types/PlanGroupDetailResponseData.d.ts +3 -0
  101. package/api/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  102. package/api/types/PlanGroupResponseData.d.ts +2 -0
  103. package/api/types/{RuleConditionResourceResponseData.d.ts → PreviewObjectResponseData.d.ts} +3 -1
  104. package/api/types/RuleConditionDetailResponseData.d.ts +2 -1
  105. package/api/types/RuleConditionResponseData.d.ts +1 -0
  106. package/api/types/UpdateEntitlementReqCommon.d.ts +13 -0
  107. package/api/types/{UpdateReqCommonMetricPeriod.d.ts → UpdateEntitlementReqCommonMetricPeriod.d.ts} +3 -2
  108. package/{dist/api/types/CreateReqCommonMetricPeriod.js → api/types/UpdateEntitlementReqCommonMetricPeriod.js} +3 -2
  109. package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  110. package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  111. package/api/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  112. package/{dist/api/types/CreateReqCommonValueType.js → api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
  113. package/api/types/index.d.ts +14 -8
  114. package/api/types/index.js +14 -8
  115. package/core/fetcher/Fetcher.d.ts +1 -1
  116. package/core/fetcher/getResponseBody.js +3 -0
  117. package/core/fetcher/requestWithRetries.js +13 -4
  118. package/dist/Client.js +1 -1
  119. package/dist/api/resources/accesstokens/client/Client.js +1 -1
  120. package/dist/api/resources/accounts/client/Client.js +14 -14
  121. package/dist/api/resources/billing/client/Client.d.ts +21 -5
  122. package/dist/api/resources/billing/client/Client.js +167 -24
  123. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +9 -0
  124. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -1
  125. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -1
  126. package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +3 -3
  127. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +9 -0
  128. package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +9 -0
  129. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +20 -0
  130. package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
  131. package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +5 -0
  132. package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +5 -0
  133. package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +5 -0
  134. package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +15 -0
  135. package/dist/api/resources/{events/types/ListMetricCountsResponse.d.ts → billing/types/SearchBillingPricesResponse.d.ts} +3 -3
  136. package/dist/api/resources/billing/types/index.d.ts +2 -0
  137. package/dist/api/resources/billing/types/index.js +2 -0
  138. package/dist/api/resources/companies/client/Client.d.ts +2 -4
  139. package/dist/api/resources/companies/client/Client.js +45 -37
  140. package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
  141. package/dist/api/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  142. package/dist/api/resources/components/client/Client.js +7 -7
  143. package/dist/api/resources/crm/client/Client.js +5 -5
  144. package/dist/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  145. package/dist/api/resources/entitlements/client/Client.js +27 -21
  146. package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +4 -0
  147. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +3 -0
  148. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -0
  149. package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +4 -0
  150. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +3 -0
  151. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -0
  152. package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +2 -0
  153. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  154. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  155. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  156. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  157. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  158. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  159. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  160. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  161. package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +2 -0
  162. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
  163. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
  164. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  165. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  166. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
  167. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
  168. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  169. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  170. package/dist/api/resources/entitlements/types/index.d.ts +4 -0
  171. package/dist/api/resources/entitlements/types/index.js +4 -0
  172. package/dist/api/resources/events/client/Client.d.ts +0 -13
  173. package/dist/api/resources/events/client/Client.js +7 -140
  174. package/dist/api/resources/events/client/requests/index.d.ts +0 -1
  175. package/dist/api/resources/events/types/index.d.ts +0 -2
  176. package/dist/api/resources/events/types/index.js +0 -2
  177. package/dist/api/resources/features/client/Client.js +19 -19
  178. package/dist/api/resources/plangroups/client/Client.js +3 -3
  179. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  180. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  181. package/dist/api/resources/plans/client/Client.d.ts +2 -1
  182. package/dist/api/resources/plans/client/Client.js +12 -11
  183. package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
  184. package/dist/api/resources/webhooks/client/Client.js +9 -9
  185. package/dist/api/types/BillingCustomerSubscription.d.ts +3 -0
  186. package/dist/api/types/BillingPriceView.d.ts +18 -0
  187. package/dist/api/types/BillingProductDetailResponseData.d.ts +1 -1
  188. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
  189. package/dist/api/types/BillingProductPlanResponseData.d.ts +2 -0
  190. package/dist/api/types/BillingProductPriceResponseData.d.ts +15 -0
  191. package/dist/api/types/BillingProductPriceResponseData.js +5 -0
  192. package/dist/api/types/BillingProductPricing.d.ts +3 -0
  193. package/dist/api/types/BillingSubscriptionResponseData.d.ts +9 -2
  194. package/dist/api/types/BillingSubscriptionView.d.ts +23 -0
  195. package/dist/api/types/BillingSubscriptionView.js +5 -0
  196. package/dist/api/types/CompanyDetailResponseData.d.ts +2 -1
  197. package/dist/api/types/CompanyOverrideResponseData.d.ts +3 -1
  198. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
  199. package/dist/api/types/ComponentCapabilities.d.ts +6 -0
  200. package/dist/api/types/ComponentCapabilities.js +5 -0
  201. package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
  202. package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
  203. package/dist/api/types/CreateEntitlementReqCommon.d.ts +14 -0
  204. package/dist/api/types/CreateEntitlementReqCommon.js +5 -0
  205. package/dist/api/types/{CreateReqCommonMetricPeriod.d.ts → CreateEntitlementReqCommonMetricPeriod.d.ts} +3 -2
  206. package/{api/types/CreateReqCommonMetricPeriod.js → dist/api/types/CreateEntitlementReqCommonMetricPeriod.js} +3 -2
  207. package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  208. package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  209. package/dist/api/types/{CreateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
  210. package/dist/api/types/{UpdateReqCommonValueType.js → CreateEntitlementReqCommonValueType.js} +2 -2
  211. package/dist/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  212. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
  213. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
  214. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
  215. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
  216. package/dist/api/types/FeatureCompanyResponseData.d.ts +2 -0
  217. package/dist/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
  218. package/dist/api/types/FeatureUsageResponseData.d.ts +2 -0
  219. package/dist/api/types/PlanDetailResponseData.d.ts +3 -0
  220. package/dist/api/types/PlanEntitlementResponseData.d.ts +3 -0
  221. package/dist/api/types/PlanGroupDetailResponseData.d.ts +3 -0
  222. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  223. package/dist/api/types/PlanGroupResponseData.d.ts +2 -0
  224. package/dist/api/types/{RuleConditionResourceResponseData.d.ts → PreviewObjectResponseData.d.ts} +3 -1
  225. package/dist/api/types/PreviewObjectResponseData.js +5 -0
  226. package/dist/api/types/RuleConditionDetailResponseData.d.ts +2 -1
  227. package/dist/api/types/RuleConditionResponseData.d.ts +1 -0
  228. package/dist/api/types/UpdateEntitlementReqCommon.d.ts +13 -0
  229. package/dist/api/types/UpdateEntitlementReqCommon.js +5 -0
  230. package/dist/api/types/{UpdateReqCommonMetricPeriod.d.ts → UpdateEntitlementReqCommonMetricPeriod.d.ts} +3 -2
  231. package/dist/api/types/{UpdateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonMetricPeriod.js} +3 -2
  232. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  233. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  234. package/dist/api/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  235. package/{api/types/CreateReqCommonValueType.js → dist/api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
  236. package/dist/api/types/index.d.ts +14 -8
  237. package/dist/api/types/index.js +14 -8
  238. package/dist/core/fetcher/Fetcher.d.ts +1 -1
  239. package/dist/core/fetcher/getResponseBody.js +3 -0
  240. package/dist/core/fetcher/requestWithRetries.js +13 -4
  241. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
  242. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +2 -0
  243. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +1 -0
  244. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +1 -0
  245. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +3 -3
  246. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +3 -3
  247. package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +3 -0
  248. package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +3 -0
  249. package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +3 -0
  250. package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +3 -0
  251. package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +3 -0
  252. package/dist/serialization/resources/billing/types/ListProductPricesParams.js +3 -0
  253. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
  254. package/dist/serialization/resources/{events/types/ListMetricCountsResponse.js → billing/types/SearchBillingPricesParams.js} +7 -6
  255. package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
  256. package/{serialization/resources/events/types/ListMetricCountsResponse.js → dist/serialization/resources/billing/types/SearchBillingPricesResponse.js} +6 -6
  257. package/dist/serialization/resources/billing/types/index.d.ts +2 -0
  258. package/dist/serialization/resources/billing/types/index.js +2 -0
  259. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  260. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +1 -0
  261. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  262. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
  263. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
  264. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +4 -0
  265. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -0
  266. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
  267. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
  268. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +4 -0
  269. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
  270. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -0
  271. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
  272. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +1 -0
  273. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  274. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  275. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  276. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  277. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  278. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  279. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  280. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  281. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
  282. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +1 -0
  283. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  284. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  285. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  286. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  287. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  288. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  289. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  290. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  291. package/dist/serialization/resources/entitlements/types/index.d.ts +4 -0
  292. package/dist/serialization/resources/entitlements/types/index.js +4 -0
  293. package/dist/serialization/resources/events/types/index.d.ts +0 -2
  294. package/dist/serialization/resources/events/types/index.js +0 -2
  295. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  296. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +2 -0
  297. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  298. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +2 -0
  299. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
  300. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
  301. package/dist/serialization/types/BillingCustomerSubscription.d.ts +3 -0
  302. package/dist/serialization/types/BillingCustomerSubscription.js +3 -0
  303. package/dist/serialization/types/BillingPriceView.d.ts +24 -0
  304. package/dist/serialization/types/BillingPriceView.js +45 -0
  305. package/dist/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
  306. package/dist/serialization/types/BillingProductDetailResponseData.js +1 -1
  307. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
  308. package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +2 -1
  309. package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
  310. package/dist/serialization/types/BillingProductPlanResponseData.js +2 -0
  311. package/dist/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
  312. package/dist/serialization/types/{MetricCountsHourlyResponseData.js → BillingProductPriceResponseData.js} +11 -8
  313. package/dist/serialization/types/BillingProductPricing.d.ts +3 -0
  314. package/dist/serialization/types/BillingProductPricing.js +3 -0
  315. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +9 -2
  316. package/dist/serialization/types/BillingSubscriptionResponseData.js +9 -2
  317. package/dist/serialization/types/BillingSubscriptionView.d.ts +31 -0
  318. package/dist/serialization/types/BillingSubscriptionView.js +52 -0
  319. package/dist/serialization/types/CompanyDetailResponseData.d.ts +3 -2
  320. package/dist/serialization/types/CompanyDetailResponseData.js +3 -2
  321. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
  322. package/dist/serialization/types/CompanyOverrideResponseData.js +3 -1
  323. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +3 -0
  324. package/dist/serialization/types/CompanyPlanDetailResponseData.js +3 -0
  325. package/dist/serialization/types/ComponentCapabilities.d.ts +12 -0
  326. package/dist/serialization/types/{UpdateReqCommonValueType.js → ComponentCapabilities.js} +4 -2
  327. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +3 -1
  328. package/dist/serialization/types/ComponentHydrateResponseData.js +3 -1
  329. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +3 -1
  330. package/dist/serialization/types/ComponentPreviewResponseData.js +3 -1
  331. package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +22 -0
  332. package/{serialization/types/CreateReqCommon.js → dist/serialization/types/CreateEntitlementReqCommon.js} +9 -6
  333. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  334. package/dist/serialization/types/{RuleConditionResourceResponseData.js → CreateEntitlementReqCommonMetricPeriod.js} +2 -5
  335. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  336. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  337. package/dist/serialization/types/{UpdateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
  338. package/dist/serialization/types/{CreateReqCommonMetricPeriod.js → CreateEntitlementReqCommonValueType.js} +2 -2
  339. package/dist/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  340. package/dist/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -0
  341. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  342. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  343. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  344. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
  345. package/dist/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
  346. package/dist/serialization/types/FeatureCompanyResponseData.js +1 -0
  347. package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
  348. package/dist/serialization/types/FeatureCompanyUserResponseData.js +1 -0
  349. package/dist/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  350. package/dist/serialization/types/FeatureUsageResponseData.js +1 -0
  351. package/dist/serialization/types/MeterRequestBody.d.ts +3 -3
  352. package/dist/serialization/types/MeterRequestBody.js +3 -3
  353. package/dist/serialization/types/PlanDetailResponseData.d.ts +3 -0
  354. package/dist/serialization/types/PlanDetailResponseData.js +3 -0
  355. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
  356. package/dist/serialization/types/PlanEntitlementResponseData.js +4 -0
  357. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +3 -0
  358. package/dist/serialization/types/PlanGroupDetailResponseData.js +3 -0
  359. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  360. package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +3 -0
  361. package/dist/serialization/types/PlanGroupResponseData.d.ts +2 -0
  362. package/dist/serialization/types/PlanGroupResponseData.js +2 -0
  363. package/dist/serialization/types/PreviewObjectResponseData.d.ts +15 -0
  364. package/{serialization/types/RuleConditionResourceResponseData.js → dist/serialization/types/PreviewObjectResponseData.js} +4 -2
  365. package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
  366. package/dist/serialization/types/RuleConditionDetailResponseData.js +3 -2
  367. package/dist/serialization/types/RuleConditionResponseData.d.ts +1 -0
  368. package/dist/serialization/types/RuleConditionResponseData.js +1 -0
  369. package/dist/serialization/types/RulesDetailResponseData.d.ts +1 -1
  370. package/dist/serialization/types/RulesDetailResponseData.js +1 -1
  371. package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +21 -0
  372. package/{serialization/types/UpdateReqCommon.js → dist/serialization/types/UpdateEntitlementReqCommon.js} +9 -6
  373. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  374. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
  375. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  376. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  377. package/{serialization/types/CreateReqCommonValueType.d.ts → dist/serialization/types/UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  378. package/dist/serialization/types/{UpdateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonValueType.js} +2 -2
  379. package/dist/serialization/types/index.d.ts +14 -8
  380. package/dist/serialization/types/index.js +14 -8
  381. package/package.json +1 -2
  382. package/reference.md +57 -55
  383. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
  384. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +2 -0
  385. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +1 -0
  386. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +1 -0
  387. package/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +3 -3
  388. package/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +3 -3
  389. package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +3 -0
  390. package/serialization/resources/billing/types/CountBillingProductsParams.js +3 -0
  391. package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +3 -0
  392. package/serialization/resources/billing/types/ListBillingProductsParams.js +3 -0
  393. package/serialization/resources/billing/types/ListProductPricesParams.d.ts +3 -0
  394. package/serialization/resources/billing/types/ListProductPricesParams.js +3 -0
  395. package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
  396. package/serialization/resources/billing/types/SearchBillingPricesParams.js +37 -0
  397. package/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
  398. package/serialization/resources/billing/types/SearchBillingPricesResponse.js +36 -0
  399. package/serialization/resources/billing/types/index.d.ts +2 -0
  400. package/serialization/resources/billing/types/index.js +2 -0
  401. package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  402. package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +1 -0
  403. package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  404. package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
  405. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
  406. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +4 -0
  407. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -0
  408. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
  409. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
  410. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +4 -0
  411. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
  412. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -0
  413. package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
  414. package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +1 -0
  415. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  416. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  417. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  418. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  419. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  420. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  421. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  422. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  423. package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
  424. package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +1 -0
  425. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  426. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  427. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  428. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  429. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  430. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  431. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  432. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  433. package/serialization/resources/entitlements/types/index.d.ts +4 -0
  434. package/serialization/resources/entitlements/types/index.js +4 -0
  435. package/serialization/resources/events/types/index.d.ts +0 -2
  436. package/serialization/resources/events/types/index.js +0 -2
  437. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  438. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +2 -0
  439. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  440. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +2 -0
  441. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
  442. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
  443. package/serialization/types/BillingCustomerSubscription.d.ts +3 -0
  444. package/serialization/types/BillingCustomerSubscription.js +3 -0
  445. package/serialization/types/BillingPriceView.d.ts +24 -0
  446. package/serialization/types/BillingPriceView.js +45 -0
  447. package/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
  448. package/serialization/types/BillingProductDetailResponseData.js +1 -1
  449. package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
  450. package/serialization/types/BillingProductForSubscriptionResponseData.js +2 -1
  451. package/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
  452. package/serialization/types/BillingProductPlanResponseData.js +2 -0
  453. package/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
  454. package/serialization/types/{MetricCountsHourlyResponseData.js → BillingProductPriceResponseData.js} +11 -8
  455. package/serialization/types/BillingProductPricing.d.ts +3 -0
  456. package/serialization/types/BillingProductPricing.js +3 -0
  457. package/serialization/types/BillingSubscriptionResponseData.d.ts +9 -2
  458. package/serialization/types/BillingSubscriptionResponseData.js +9 -2
  459. package/serialization/types/BillingSubscriptionView.d.ts +31 -0
  460. package/serialization/types/BillingSubscriptionView.js +52 -0
  461. package/serialization/types/CompanyDetailResponseData.d.ts +3 -2
  462. package/serialization/types/CompanyDetailResponseData.js +3 -2
  463. package/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
  464. package/serialization/types/CompanyOverrideResponseData.js +3 -1
  465. package/serialization/types/CompanyPlanDetailResponseData.d.ts +3 -0
  466. package/serialization/types/CompanyPlanDetailResponseData.js +3 -0
  467. package/serialization/types/ComponentCapabilities.d.ts +12 -0
  468. package/{dist/serialization/types/CreateReqCommonValueType.js → serialization/types/ComponentCapabilities.js} +4 -2
  469. package/serialization/types/ComponentHydrateResponseData.d.ts +3 -1
  470. package/serialization/types/ComponentHydrateResponseData.js +3 -1
  471. package/serialization/types/ComponentPreviewResponseData.d.ts +3 -1
  472. package/serialization/types/ComponentPreviewResponseData.js +3 -1
  473. package/serialization/types/CreateEntitlementReqCommon.d.ts +22 -0
  474. package/{dist/serialization/types/CreateReqCommon.js → serialization/types/CreateEntitlementReqCommon.js} +9 -6
  475. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  476. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +31 -0
  477. package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  478. package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  479. package/{dist/serialization/types/CreateReqCommonValueType.d.ts → serialization/types/CreateEntitlementReqCommonValueType.d.ts} +2 -2
  480. package/serialization/types/CreateEntitlementReqCommonValueType.js +31 -0
  481. package/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  482. package/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -0
  483. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  484. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  485. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  486. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
  487. package/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
  488. package/serialization/types/FeatureCompanyResponseData.js +1 -0
  489. package/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
  490. package/serialization/types/FeatureCompanyUserResponseData.js +1 -0
  491. package/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  492. package/serialization/types/FeatureUsageResponseData.js +1 -0
  493. package/serialization/types/MeterRequestBody.d.ts +3 -3
  494. package/serialization/types/MeterRequestBody.js +3 -3
  495. package/serialization/types/PlanDetailResponseData.d.ts +3 -0
  496. package/serialization/types/PlanDetailResponseData.js +3 -0
  497. package/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
  498. package/serialization/types/PlanEntitlementResponseData.js +4 -0
  499. package/serialization/types/PlanGroupDetailResponseData.d.ts +3 -0
  500. package/serialization/types/PlanGroupDetailResponseData.js +3 -0
  501. package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  502. package/serialization/types/PlanGroupPlanDetailResponseData.js +3 -0
  503. package/serialization/types/PlanGroupResponseData.d.ts +2 -0
  504. package/serialization/types/PlanGroupResponseData.js +2 -0
  505. package/serialization/types/PreviewObjectResponseData.d.ts +15 -0
  506. package/serialization/types/PreviewObjectResponseData.js +36 -0
  507. package/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
  508. package/serialization/types/RuleConditionDetailResponseData.js +3 -2
  509. package/serialization/types/RuleConditionResponseData.d.ts +1 -0
  510. package/serialization/types/RuleConditionResponseData.js +1 -0
  511. package/serialization/types/RulesDetailResponseData.d.ts +1 -1
  512. package/serialization/types/RulesDetailResponseData.js +1 -1
  513. package/serialization/types/UpdateEntitlementReqCommon.d.ts +21 -0
  514. package/{dist/serialization/types/UpdateReqCommon.js → serialization/types/UpdateEntitlementReqCommon.js} +9 -6
  515. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  516. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
  517. package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  518. package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  519. package/serialization/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  520. package/serialization/types/UpdateEntitlementReqCommonValueType.js +31 -0
  521. package/serialization/types/index.d.ts +14 -8
  522. package/serialization/types/index.js +14 -8
  523. package/api/resources/events/client/requests/ListMetricCountsRequest.d.ts +0 -25
  524. package/api/resources/events/types/ListMetricCountsParams.d.ts +0 -20
  525. package/api/types/CreateReqCommon.d.ts +0 -12
  526. package/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
  527. package/api/types/UpdateReqCommon.d.ts +0 -11
  528. package/dist/api/resources/events/client/requests/ListMetricCountsRequest.d.ts +0 -25
  529. package/dist/api/resources/events/types/ListMetricCountsParams.d.ts +0 -20
  530. package/dist/api/types/CreateReqCommon.d.ts +0 -12
  531. package/dist/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
  532. package/dist/api/types/UpdateReqCommon.d.ts +0 -11
  533. package/dist/serialization/resources/events/types/ListMetricCountsParams.d.ts +0 -21
  534. package/dist/serialization/resources/events/types/ListMetricCountsParams.js +0 -42
  535. package/dist/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
  536. package/dist/serialization/types/CreateReqCommon.d.ts +0 -19
  537. package/dist/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
  538. package/dist/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
  539. package/dist/serialization/types/RuleConditionResourceResponseData.d.ts +0 -13
  540. package/dist/serialization/types/UpdateReqCommon.d.ts +0 -18
  541. package/dist/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
  542. package/serialization/resources/events/types/ListMetricCountsParams.d.ts +0 -21
  543. package/serialization/resources/events/types/ListMetricCountsParams.js +0 -42
  544. package/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
  545. package/serialization/types/CreateReqCommon.d.ts +0 -19
  546. package/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
  547. package/serialization/types/CreateReqCommonMetricPeriod.js +0 -31
  548. package/serialization/types/CreateReqCommonValueType.js +0 -31
  549. package/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
  550. package/serialization/types/RuleConditionResourceResponseData.d.ts +0 -13
  551. package/serialization/types/UpdateReqCommon.d.ts +0 -18
  552. package/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
  553. package/serialization/types/UpdateReqCommonMetricPeriod.js +0 -31
  554. package/serialization/types/UpdateReqCommonValueType.js +0 -31
  555. /package/api/resources/{events/client/requests/ListMetricCountsRequest.js → billing/client/requests/SearchBillingPricesRequest.js} +0 -0
  556. /package/api/resources/{events/types/ListMetricCountsParams.js → billing/types/SearchBillingPricesParams.js} +0 -0
  557. /package/api/resources/{events/types/ListMetricCountsResponse.js → billing/types/SearchBillingPricesResponse.js} +0 -0
  558. /package/api/types/{CreateReqCommon.js → BillingPriceView.js} +0 -0
  559. /package/api/types/{MetricCountsHourlyResponseData.js → BillingProductPriceResponseData.js} +0 -0
  560. /package/api/types/{RuleConditionResourceResponseData.js → BillingSubscriptionView.js} +0 -0
  561. /package/api/types/{UpdateReqCommon.js → ComponentCapabilities.js} +0 -0
  562. /package/{dist/api/resources/events/client/requests/ListMetricCountsRequest.js → api/types/CreateEntitlementReqCommon.js} +0 -0
  563. /package/{dist/api/resources/events/types/ListMetricCountsParams.js → api/types/PreviewObjectResponseData.js} +0 -0
  564. /package/{dist/api/resources/events/types/ListMetricCountsResponse.js → api/types/UpdateEntitlementReqCommon.js} +0 -0
  565. /package/dist/api/{types/CreateReqCommon.js → resources/billing/client/requests/SearchBillingPricesRequest.js} +0 -0
  566. /package/dist/api/{types/MetricCountsHourlyResponseData.js → resources/billing/types/SearchBillingPricesParams.js} +0 -0
  567. /package/dist/api/{types/RuleConditionResourceResponseData.js → resources/billing/types/SearchBillingPricesResponse.js} +0 -0
  568. /package/dist/api/types/{UpdateReqCommon.js → BillingPriceView.js} +0 -0
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type UpdatePlanEntitlementRequestBodyMetricPeriod = "billing" | "current_month" | "current_week" | "current_day";
4
+ export declare type UpdatePlanEntitlementRequestBodyMetricPeriod = "all_time" | "billing" | "current_month" | "current_week" | "current_day";
5
5
  export declare const UpdatePlanEntitlementRequestBodyMetricPeriod: {
6
+ readonly AllTime: "all_time";
6
7
  readonly Billing: "billing";
7
8
  readonly CurrentMonth: "current_month";
8
9
  readonly CurrentWeek: "current_week";
@@ -5,6 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.UpdatePlanEntitlementRequestBodyMetricPeriod = void 0;
7
7
  exports.UpdatePlanEntitlementRequestBodyMetricPeriod = {
8
+ AllTime: "all_time",
8
9
  Billing: "billing",
9
10
  CurrentMonth: "current_month",
10
11
  CurrentWeek: "current_week",
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset = "first_of_month" | "billing_cycle";
5
+ export declare const UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset: {
6
+ readonly FirstOfMonth: "first_of_month";
7
+ readonly BillingCycle: "billing_cycle";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset = void 0;
7
+ exports.UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset = {
8
+ FirstOfMonth: "first_of_month",
9
+ BillingCycle: "billing_cycle",
10
+ };
@@ -1,10 +1,12 @@
1
1
  export * from "./ListCompanyOverridesParams";
2
2
  export * from "./ListCompanyOverridesResponse";
3
3
  export * from "./CreateCompanyOverrideRequestBodyMetricPeriod";
4
+ export * from "./CreateCompanyOverrideRequestBodyMetricPeriodMonthReset";
4
5
  export * from "./CreateCompanyOverrideRequestBodyValueType";
5
6
  export * from "./CreateCompanyOverrideResponse";
6
7
  export * from "./GetCompanyOverrideResponse";
7
8
  export * from "./UpdateCompanyOverrideRequestBodyMetricPeriod";
9
+ export * from "./UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset";
8
10
  export * from "./UpdateCompanyOverrideRequestBodyValueType";
9
11
  export * from "./UpdateCompanyOverrideResponse";
10
12
  export * from "./DeleteCompanyOverrideResponse";
@@ -25,10 +27,12 @@ export * from "./CountFeatureUsersResponse";
25
27
  export * from "./ListPlanEntitlementsParams";
26
28
  export * from "./ListPlanEntitlementsResponse";
27
29
  export * from "./CreatePlanEntitlementRequestBodyMetricPeriod";
30
+ export * from "./CreatePlanEntitlementRequestBodyMetricPeriodMonthReset";
28
31
  export * from "./CreatePlanEntitlementRequestBodyValueType";
29
32
  export * from "./CreatePlanEntitlementResponse";
30
33
  export * from "./GetPlanEntitlementResponse";
31
34
  export * from "./UpdatePlanEntitlementRequestBodyMetricPeriod";
35
+ export * from "./UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset";
32
36
  export * from "./UpdatePlanEntitlementRequestBodyValueType";
33
37
  export * from "./UpdatePlanEntitlementResponse";
34
38
  export * from "./DeletePlanEntitlementResponse";
@@ -17,10 +17,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ListCompanyOverridesParams"), exports);
18
18
  __exportStar(require("./ListCompanyOverridesResponse"), exports);
19
19
  __exportStar(require("./CreateCompanyOverrideRequestBodyMetricPeriod"), exports);
20
+ __exportStar(require("./CreateCompanyOverrideRequestBodyMetricPeriodMonthReset"), exports);
20
21
  __exportStar(require("./CreateCompanyOverrideRequestBodyValueType"), exports);
21
22
  __exportStar(require("./CreateCompanyOverrideResponse"), exports);
22
23
  __exportStar(require("./GetCompanyOverrideResponse"), exports);
23
24
  __exportStar(require("./UpdateCompanyOverrideRequestBodyMetricPeriod"), exports);
25
+ __exportStar(require("./UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset"), exports);
24
26
  __exportStar(require("./UpdateCompanyOverrideRequestBodyValueType"), exports);
25
27
  __exportStar(require("./UpdateCompanyOverrideResponse"), exports);
26
28
  __exportStar(require("./DeleteCompanyOverrideResponse"), exports);
@@ -41,10 +43,12 @@ __exportStar(require("./CountFeatureUsersResponse"), exports);
41
43
  __exportStar(require("./ListPlanEntitlementsParams"), exports);
42
44
  __exportStar(require("./ListPlanEntitlementsResponse"), exports);
43
45
  __exportStar(require("./CreatePlanEntitlementRequestBodyMetricPeriod"), exports);
46
+ __exportStar(require("./CreatePlanEntitlementRequestBodyMetricPeriodMonthReset"), exports);
44
47
  __exportStar(require("./CreatePlanEntitlementRequestBodyValueType"), exports);
45
48
  __exportStar(require("./CreatePlanEntitlementResponse"), exports);
46
49
  __exportStar(require("./GetPlanEntitlementResponse"), exports);
47
50
  __exportStar(require("./UpdatePlanEntitlementRequestBodyMetricPeriod"), exports);
51
+ __exportStar(require("./UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset"), exports);
48
52
  __exportStar(require("./UpdatePlanEntitlementRequestBodyValueType"), exports);
49
53
  __exportStar(require("./UpdatePlanEntitlementResponse"), exports);
50
54
  __exportStar(require("./DeletePlanEntitlementResponse"), exports);
@@ -106,19 +106,6 @@ export declare class Events {
106
106
  * await client.events.getEvent("event_id")
107
107
  */
108
108
  getEvent(eventId: string, requestOptions?: Events.RequestOptions): Promise<Schematic.GetEventResponse>;
109
- /**
110
- * @param {Schematic.ListMetricCountsRequest} request
111
- * @param {Events.RequestOptions} requestOptions - Request-specific configuration.
112
- *
113
- * @throws {@link Schematic.BadRequestError}
114
- * @throws {@link Schematic.UnauthorizedError}
115
- * @throws {@link Schematic.ForbiddenError}
116
- * @throws {@link Schematic.InternalServerError}
117
- *
118
- * @example
119
- * await client.events.listMetricCounts()
120
- */
121
- listMetricCounts(request?: Schematic.ListMetricCountsRequest, requestOptions?: Events.RequestOptions): Promise<Schematic.ListMetricCountsResponse>;
122
109
  /**
123
110
  * @param {Events.RequestOptions} requestOptions - Request-specific configuration.
124
111
  *
@@ -71,7 +71,7 @@ class Events {
71
71
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
72
72
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "event-batch"),
73
73
  method: "POST",
74
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  body: serializers.CreateEventBatchRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -181,7 +181,7 @@ class Events {
181
181
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
182
182
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "event-types"),
183
183
  method: "GET",
184
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
184
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
185
185
  contentType: "application/json",
186
186
  queryParameters: _queryParams,
187
187
  requestType: "json",
@@ -272,7 +272,7 @@ class Events {
272
272
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
273
273
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `event-types/${encodeURIComponent(key)}`),
274
274
  method: "GET",
275
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
275
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
276
276
  contentType: "application/json",
277
277
  requestType: "json",
278
278
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -390,7 +390,7 @@ class Events {
390
390
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
391
391
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "events"),
392
392
  method: "GET",
393
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
393
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
394
394
  contentType: "application/json",
395
395
  queryParameters: _queryParams,
396
396
  requestType: "json",
@@ -483,7 +483,7 @@ class Events {
483
483
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
484
484
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "events"),
485
485
  method: "POST",
486
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
486
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
487
487
  contentType: "application/json",
488
488
  requestType: "json",
489
489
  body: serializers.CreateEventRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -574,7 +574,7 @@ class Events {
574
574
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
575
575
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `events/${encodeURIComponent(eventId)}`),
576
576
  method: "GET",
577
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
577
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
578
578
  contentType: "application/json",
579
579
  requestType: "json",
580
580
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -646,139 +646,6 @@ class Events {
646
646
  }
647
647
  });
648
648
  }
649
- /**
650
- * @param {Schematic.ListMetricCountsRequest} request
651
- * @param {Events.RequestOptions} requestOptions - Request-specific configuration.
652
- *
653
- * @throws {@link Schematic.BadRequestError}
654
- * @throws {@link Schematic.UnauthorizedError}
655
- * @throws {@link Schematic.ForbiddenError}
656
- * @throws {@link Schematic.InternalServerError}
657
- *
658
- * @example
659
- * await client.events.listMetricCounts()
660
- */
661
- listMetricCounts(request = {}, requestOptions) {
662
- var _a, _b;
663
- return __awaiter(this, void 0, void 0, function* () {
664
- const { startTime, endTime, eventSubtype, eventSubtypes, companyId, companyIds, userId, limit, offset, grouping, } = request;
665
- const _queryParams = {};
666
- if (startTime != null) {
667
- _queryParams["start_time"] = startTime.toISOString();
668
- }
669
- if (endTime != null) {
670
- _queryParams["end_time"] = endTime.toISOString();
671
- }
672
- if (eventSubtype != null) {
673
- _queryParams["event_subtype"] = eventSubtype;
674
- }
675
- if (eventSubtypes != null) {
676
- if (Array.isArray(eventSubtypes)) {
677
- _queryParams["event_subtypes"] = eventSubtypes.map((item) => item);
678
- }
679
- else {
680
- _queryParams["event_subtypes"] = eventSubtypes;
681
- }
682
- }
683
- if (companyId != null) {
684
- _queryParams["company_id"] = companyId;
685
- }
686
- if (companyIds != null) {
687
- if (Array.isArray(companyIds)) {
688
- _queryParams["company_ids"] = companyIds.map((item) => item);
689
- }
690
- else {
691
- _queryParams["company_ids"] = companyIds;
692
- }
693
- }
694
- if (userId != null) {
695
- _queryParams["user_id"] = userId;
696
- }
697
- if (limit != null) {
698
- _queryParams["limit"] = limit.toString();
699
- }
700
- if (offset != null) {
701
- _queryParams["offset"] = offset.toString();
702
- }
703
- if (grouping != null) {
704
- _queryParams["grouping"] = grouping;
705
- }
706
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
707
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "metric-counts"),
708
- method: "GET",
709
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
710
- contentType: "application/json",
711
- queryParameters: _queryParams,
712
- requestType: "json",
713
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
714
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
715
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
716
- });
717
- if (_response.ok) {
718
- return serializers.ListMetricCountsResponse.parseOrThrow(_response.body, {
719
- unrecognizedObjectKeys: "passthrough",
720
- allowUnrecognizedUnionMembers: true,
721
- allowUnrecognizedEnumValues: true,
722
- skipValidation: true,
723
- breadcrumbsPrefix: ["response"],
724
- });
725
- }
726
- if (_response.error.reason === "status-code") {
727
- switch (_response.error.statusCode) {
728
- case 400:
729
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
730
- unrecognizedObjectKeys: "passthrough",
731
- allowUnrecognizedUnionMembers: true,
732
- allowUnrecognizedEnumValues: true,
733
- skipValidation: true,
734
- breadcrumbsPrefix: ["response"],
735
- }));
736
- case 401:
737
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
738
- unrecognizedObjectKeys: "passthrough",
739
- allowUnrecognizedUnionMembers: true,
740
- allowUnrecognizedEnumValues: true,
741
- skipValidation: true,
742
- breadcrumbsPrefix: ["response"],
743
- }));
744
- case 403:
745
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
746
- unrecognizedObjectKeys: "passthrough",
747
- allowUnrecognizedUnionMembers: true,
748
- allowUnrecognizedEnumValues: true,
749
- skipValidation: true,
750
- breadcrumbsPrefix: ["response"],
751
- }));
752
- case 500:
753
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
754
- unrecognizedObjectKeys: "passthrough",
755
- allowUnrecognizedUnionMembers: true,
756
- allowUnrecognizedEnumValues: true,
757
- skipValidation: true,
758
- breadcrumbsPrefix: ["response"],
759
- }));
760
- default:
761
- throw new errors.SchematicError({
762
- statusCode: _response.error.statusCode,
763
- body: _response.error.body,
764
- });
765
- }
766
- }
767
- switch (_response.error.reason) {
768
- case "non-json":
769
- throw new errors.SchematicError({
770
- statusCode: _response.error.statusCode,
771
- body: _response.error.rawBody,
772
- });
773
- case "timeout":
774
- throw new errors.SchematicTimeoutError();
775
- case "unknown":
776
- throw new errors.SchematicError({
777
- message: _response.error.errorMessage,
778
- });
779
- }
780
- });
781
- }
782
649
  /**
783
650
  * @param {Events.RequestOptions} requestOptions - Request-specific configuration.
784
651
  *
@@ -796,7 +663,7 @@ class Events {
796
663
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
797
664
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "segment-integration"),
798
665
  method: "GET",
799
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
666
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
800
667
  contentType: "application/json",
801
668
  requestType: "json",
802
669
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,4 +1,3 @@
1
1
  export { type CreateEventBatchRequestBody } from "./CreateEventBatchRequestBody";
2
2
  export { type GetEventSummariesRequest } from "./GetEventSummariesRequest";
3
3
  export { type ListEventsRequest } from "./ListEventsRequest";
4
- export { type ListMetricCountsRequest } from "./ListMetricCountsRequest";
@@ -6,6 +6,4 @@ export * from "./ListEventsParams";
6
6
  export * from "./ListEventsResponse";
7
7
  export * from "./CreateEventResponse";
8
8
  export * from "./GetEventResponse";
9
- export * from "./ListMetricCountsParams";
10
- export * from "./ListMetricCountsResponse";
11
9
  export * from "./GetSegmentIntegrationStatusResponse";
@@ -22,6 +22,4 @@ __exportStar(require("./ListEventsParams"), exports);
22
22
  __exportStar(require("./ListEventsResponse"), exports);
23
23
  __exportStar(require("./CreateEventResponse"), exports);
24
24
  __exportStar(require("./GetEventResponse"), exports);
25
- __exportStar(require("./ListMetricCountsParams"), exports);
26
- __exportStar(require("./ListMetricCountsResponse"), exports);
27
25
  __exportStar(require("./GetSegmentIntegrationStatusResponse"), exports);
@@ -80,7 +80,7 @@ class Features {
80
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
81
81
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "audience/count-companies"),
82
82
  method: "POST",
83
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
83
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -184,7 +184,7 @@ class Features {
184
184
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
185
185
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "audience/count-users"),
186
186
  method: "POST",
187
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
187
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
188
  contentType: "application/json",
189
189
  requestType: "json",
190
190
  body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -288,7 +288,7 @@ class Features {
288
288
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
289
289
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "audience/get-companies"),
290
290
  method: "POST",
291
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
291
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
292
292
  contentType: "application/json",
293
293
  requestType: "json",
294
294
  body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -392,7 +392,7 @@ class Features {
392
392
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
393
393
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "audience/get-users"),
394
394
  method: "POST",
395
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
395
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
396
396
  contentType: "application/json",
397
397
  requestType: "json",
398
398
  body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -508,7 +508,7 @@ class Features {
508
508
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
509
509
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "features"),
510
510
  method: "GET",
511
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
511
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
512
512
  contentType: "application/json",
513
513
  queryParameters: _queryParams,
514
514
  requestType: "json",
@@ -603,7 +603,7 @@ class Features {
603
603
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
604
604
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "features"),
605
605
  method: "POST",
606
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
606
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
607
607
  contentType: "application/json",
608
608
  requestType: "json",
609
609
  body: serializers.CreateFeatureRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -694,7 +694,7 @@ class Features {
694
694
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
695
695
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `features/${encodeURIComponent(featureId)}`),
696
696
  method: "GET",
697
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
697
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
698
698
  contentType: "application/json",
699
699
  requestType: "json",
700
700
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -786,7 +786,7 @@ class Features {
786
786
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
787
787
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `features/${encodeURIComponent(featureId)}`),
788
788
  method: "PUT",
789
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
789
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
790
790
  contentType: "application/json",
791
791
  requestType: "json",
792
792
  body: serializers.UpdateFeatureRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -885,7 +885,7 @@ class Features {
885
885
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
886
886
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `features/${encodeURIComponent(featureId)}`),
887
887
  method: "DELETE",
888
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
888
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
889
889
  contentType: "application/json",
890
890
  requestType: "json",
891
891
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1000,7 +1000,7 @@ class Features {
1000
1000
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1001
1001
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "features/count"),
1002
1002
  method: "GET",
1003
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1003
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1004
1004
  contentType: "application/json",
1005
1005
  queryParameters: _queryParams,
1006
1006
  requestType: "json",
@@ -1113,7 +1113,7 @@ class Features {
1113
1113
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1114
1114
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "flags"),
1115
1115
  method: "GET",
1116
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1116
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1117
1117
  contentType: "application/json",
1118
1118
  queryParameters: _queryParams,
1119
1119
  requestType: "json",
@@ -1210,7 +1210,7 @@ class Features {
1210
1210
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1211
1211
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "flags"),
1212
1212
  method: "POST",
1213
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1213
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1214
1214
  contentType: "application/json",
1215
1215
  requestType: "json",
1216
1216
  body: serializers.CreateFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1301,7 +1301,7 @@ class Features {
1301
1301
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1302
1302
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(flagId)}`),
1303
1303
  method: "GET",
1304
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1304
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1305
1305
  contentType: "application/json",
1306
1306
  requestType: "json",
1307
1307
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1399,7 +1399,7 @@ class Features {
1399
1399
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1400
1400
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(flagId)}`),
1401
1401
  method: "PUT",
1402
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1402
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1403
1403
  contentType: "application/json",
1404
1404
  requestType: "json",
1405
1405
  body: serializers.CreateFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1498,7 +1498,7 @@ class Features {
1498
1498
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1499
1499
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(flagId)}`),
1500
1500
  method: "DELETE",
1501
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1501
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1502
1502
  contentType: "application/json",
1503
1503
  requestType: "json",
1504
1504
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1608,7 +1608,7 @@ class Features {
1608
1608
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1609
1609
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(flagId)}/rules`),
1610
1610
  method: "PUT",
1611
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1611
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1612
1612
  contentType: "application/json",
1613
1613
  requestType: "json",
1614
1614
  body: serializers.UpdateFlagRulesRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1708,7 +1708,7 @@ class Features {
1708
1708
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1709
1709
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(key)}/check`),
1710
1710
  method: "POST",
1711
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1711
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1712
1712
  contentType: "application/json",
1713
1713
  requestType: "json",
1714
1714
  body: serializers.CheckFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1799,7 +1799,7 @@ class Features {
1799
1799
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1800
1800
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "flags/check"),
1801
1801
  method: "POST",
1802
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1802
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1803
1803
  contentType: "application/json",
1804
1804
  requestType: "json",
1805
1805
  body: serializers.CheckFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1912,7 +1912,7 @@ class Features {
1912
1912
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1913
1913
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "flags/count"),
1914
1914
  method: "GET",
1915
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1915
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1916
1916
  contentType: "application/json",
1917
1917
  queryParameters: _queryParams,
1918
1918
  requestType: "json",
@@ -66,7 +66,7 @@ class Plangroups {
66
66
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
67
67
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plan-groups"),
68
68
  method: "GET",
69
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
69
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
70
70
  contentType: "application/json",
71
71
  requestType: "json",
72
72
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -159,7 +159,7 @@ class Plangroups {
159
159
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
160
160
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plan-groups"),
161
161
  method: "POST",
162
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
162
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
163
163
  contentType: "application/json",
164
164
  requestType: "json",
165
165
  body: serializers.CreatePlanGroupRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -255,7 +255,7 @@ class Plangroups {
255
255
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
256
256
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-groups/${encodeURIComponent(planGroupId)}`),
257
257
  method: "PUT",
258
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
258
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
259
259
  contentType: "application/json",
260
260
  requestType: "json",
261
261
  body: serializers.UpdatePlanGroupRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -12,4 +12,6 @@ export interface CreatePlanGroupRequestBody {
12
12
  addOnIds: string[];
13
13
  defaultPlanId?: string;
14
14
  planIds: string[];
15
+ trialDays?: number;
16
+ trialPaymentMethodRequired?: boolean;
15
17
  }
@@ -12,4 +12,6 @@ export interface UpdatePlanGroupRequestBody {
12
12
  addOnIds: string[];
13
13
  defaultPlanId?: string;
14
14
  planIds: string[];
15
+ trialDays?: number;
16
+ trialPaymentMethodRequired?: boolean;
15
17
  }
@@ -162,7 +162,8 @@ export declare class Plans {
162
162
  *
163
163
  * @example
164
164
  * await client.plans.upsertBillingProductPlan("plan_id", {
165
- * billingProductId: "billing_product_id"
165
+ * isFreePlan: true,
166
+ * isTrialable: true
166
167
  * })
167
168
  */
168
169
  upsertBillingProductPlan(planId: string, request: Schematic.UpsertBillingProductRequestBody, requestOptions?: Plans.RequestOptions): Promise<Schematic.UpsertBillingProductPlanResponse>;