@schematichq/schematic-typescript-node 1.1.4 → 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 (1093) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +10 -5
  3. package/api/resources/accesstokens/client/Client.js +1 -1
  4. package/api/resources/accounts/client/Client.d.ts +1 -1
  5. package/api/resources/accounts/client/Client.js +15 -15
  6. package/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
  7. package/api/resources/billing/client/Client.d.ts +117 -32
  8. package/api/resources/billing/client/Client.js +667 -83
  9. package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +33 -0
  10. package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +6 -1
  11. package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +12 -2
  12. package/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +29 -0
  13. package/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +18 -0
  14. package/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +26 -0
  15. package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +13 -0
  16. package/{dist/api/resources/events/client/requests/ListMetricCountsRequest.d.ts → api/resources/billing/client/requests/ListInvoicesRequest.d.ts} +6 -9
  17. package/api/resources/billing/client/requests/ListMetersRequest.d.ts +18 -0
  18. package/api/resources/{events/client/requests/ListMetricCountsRequest.d.ts → billing/client/requests/ListPaymentMethodsRequest.d.ts} +6 -9
  19. package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +13 -0
  20. package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +20 -0
  21. package/api/resources/billing/client/requests/index.d.ts +8 -3
  22. package/api/resources/billing/types/CountBillingProductsParams.d.ts +22 -0
  23. package/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
  24. package/api/resources/{components/types/HydrateComponentResponse.d.ts → billing/types/DeleteProductPriceResponse.d.ts} +2 -2
  25. package/api/resources/billing/types/ListBillingProductsParams.d.ts +7 -0
  26. package/api/resources/{events/types/ListMetricCountsParams.d.ts → billing/types/ListInvoicesParams.d.ts} +3 -8
  27. package/api/resources/{plans/types/ListActivePlansResponse.d.ts → billing/types/ListInvoicesResponse.d.ts} +3 -3
  28. package/api/resources/billing/types/ListMetersParams.d.ts +13 -0
  29. package/{dist/api/resources/plans/types/ListActivePlansResponse.d.ts → api/resources/billing/types/ListMetersResponse.d.ts} +3 -3
  30. package/{dist/api/resources/events/types/ListMetricCountsParams.d.ts → api/resources/billing/types/ListPaymentMethodsParams.d.ts} +3 -8
  31. package/api/resources/{events/types/ListMetricCountsResponse.d.ts → billing/types/ListPaymentMethodsResponse.d.ts} +3 -3
  32. package/api/resources/billing/types/ListProductPricesParams.d.ts +7 -0
  33. package/api/resources/billing/types/SearchBillingPricesParams.d.ts +15 -0
  34. package/{dist/api/resources/events/types/ListMetricCountsResponse.d.ts → api/resources/billing/types/SearchBillingPricesResponse.d.ts} +3 -3
  35. package/{dist/api/resources/components/types/HydrateComponentResponse.d.ts → api/resources/billing/types/UpsertBillingMeterResponse.d.ts} +2 -2
  36. package/api/resources/billing/types/{UpdateBillingPlanGroupResponse.d.ts → UpsertInvoiceResponse.d.ts} +2 -2
  37. package/api/resources/billing/types/{CreateBillingPlanGroupResponse.d.ts → UpsertPaymentMethodResponse.d.ts} +2 -2
  38. package/api/resources/billing/types/index.d.ts +14 -4
  39. package/api/resources/billing/types/index.js +14 -4
  40. package/api/resources/companies/client/Client.d.ts +5 -7
  41. package/api/resources/companies/client/Client.js +64 -50
  42. package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
  43. package/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
  44. package/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
  45. package/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
  46. package/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
  47. package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
  48. package/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
  49. package/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
  50. package/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
  51. package/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
  52. package/api/resources/companies/types/CountUsersParams.d.ts +4 -1
  53. package/api/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  54. package/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
  55. package/api/resources/companies/types/ListUsersParams.d.ts +4 -1
  56. package/api/resources/components/client/Client.d.ts +9 -9
  57. package/api/resources/components/client/Client.js +49 -40
  58. package/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
  59. package/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
  60. package/api/resources/components/client/requests/index.d.ts +1 -0
  61. package/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
  62. package/api/resources/{billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts → components/types/PreviewComponentDataResponse.d.ts} +3 -3
  63. package/api/resources/components/types/index.d.ts +2 -1
  64. package/api/resources/components/types/index.js +2 -1
  65. package/api/resources/crm/client/Client.js +5 -5
  66. package/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  67. package/api/resources/entitlements/client/Client.d.ts +4 -4
  68. package/api/resources/entitlements/client/Client.js +39 -27
  69. package/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
  70. package/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
  71. package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +22 -0
  72. package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -1
  73. package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -1
  74. package/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
  75. package/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
  76. package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +22 -0
  77. package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -1
  78. package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  79. package/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
  80. package/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  81. package/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +8 -0
  82. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
  83. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
  84. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  85. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  86. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
  87. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
  88. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  89. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  90. package/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
  91. package/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  92. package/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +8 -0
  93. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
  94. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
  95. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  96. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  97. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
  98. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
  99. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  100. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  101. package/api/resources/entitlements/types/index.d.ts +4 -0
  102. package/api/resources/entitlements/types/index.js +4 -0
  103. package/api/resources/events/client/Client.d.ts +2 -15
  104. package/api/resources/events/client/Client.js +9 -142
  105. package/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
  106. package/api/resources/events/client/requests/index.d.ts +0 -1
  107. package/api/resources/events/types/index.d.ts +0 -2
  108. package/api/resources/events/types/index.js +0 -2
  109. package/api/resources/features/client/Client.d.ts +21 -21
  110. package/api/resources/features/client/Client.js +40 -40
  111. package/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
  112. package/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
  113. package/api/resources/index.d.ts +3 -0
  114. package/api/resources/index.js +4 -1
  115. package/api/resources/plangroups/client/Client.d.ts +74 -0
  116. package/api/resources/plangroups/client/Client.js +346 -0
  117. package/api/resources/plangroups/client/index.d.ts +1 -0
  118. package/api/resources/plangroups/client/index.js +17 -0
  119. package/{dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +5 -1
  120. package/api/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +5 -1
  121. package/api/resources/plangroups/client/requests/index.d.ts +2 -0
  122. package/api/resources/plangroups/client/requests/index.js +2 -0
  123. package/api/resources/plangroups/index.d.ts +2 -0
  124. package/api/resources/plangroups/index.js +18 -0
  125. package/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
  126. package/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
  127. package/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
  128. package/api/resources/plangroups/types/index.d.ts +3 -0
  129. package/api/resources/plangroups/types/index.js +19 -0
  130. package/api/resources/plans/client/Client.d.ts +7 -18
  131. package/api/resources/plans/client/Client.js +37 -113
  132. package/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
  133. package/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -1
  134. package/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
  135. package/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
  136. package/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
  137. package/api/resources/plans/types/CountPlansParams.d.ts +4 -0
  138. package/api/resources/plans/types/ListPlansParams.d.ts +4 -0
  139. package/api/resources/plans/types/index.d.ts +0 -1
  140. package/api/resources/plans/types/index.js +0 -1
  141. package/api/resources/webhooks/client/Client.d.ts +1 -1
  142. package/api/resources/webhooks/client/Client.js +18 -18
  143. package/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
  144. package/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
  145. package/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
  146. package/api/types/BillingCustomerSubscription.d.ts +4 -0
  147. package/api/types/BillingMeterResponseData.d.ts +10 -0
  148. package/api/types/BillingPriceResponseData.d.ts +1 -0
  149. package/api/types/BillingPriceView.d.ts +18 -0
  150. package/api/types/BillingProductDetailResponseData.d.ts +1 -1
  151. package/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
  152. package/api/types/BillingProductPlanResponseData.d.ts +2 -0
  153. package/api/types/BillingProductPriceResponseData.d.ts +15 -0
  154. package/api/types/BillingProductPricing.d.ts +6 -2
  155. package/api/types/BillingSubscriptionResponseData.d.ts +13 -6
  156. package/api/types/BillingSubscriptionView.d.ts +23 -0
  157. package/api/types/CheckFlagRequestBody.d.ts +2 -2
  158. package/api/types/CompanyDetailResponseData.d.ts +5 -3
  159. package/api/types/CompanyOverrideResponseData.d.ts +3 -1
  160. package/api/types/CompanyPlanDetailResponseData.d.ts +26 -0
  161. package/api/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +2 -1
  162. package/api/types/CompanySubscriptionResponseData.d.ts +5 -0
  163. package/api/types/ComponentCapabilities.d.ts +6 -0
  164. package/api/types/ComponentCapabilities.js +5 -0
  165. package/api/types/ComponentHydrateResponseData.d.ts +6 -3
  166. package/api/types/ComponentPreviewResponseData.d.ts +19 -0
  167. package/api/types/ComponentPreviewResponseData.js +5 -0
  168. package/api/types/ComponentResponseData.d.ts +3 -0
  169. package/api/types/CreateEntitlementReqCommon.d.ts +14 -0
  170. package/api/types/CreateEntitlementReqCommon.js +5 -0
  171. package/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +11 -0
  172. package/api/types/{UpdateReqCommonMetricPeriod.js → CreateEntitlementReqCommonMetricPeriod.js} +4 -2
  173. package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  174. package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  175. package/api/types/{UpdateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
  176. package/{dist/api/types/CreateReqCommonValueType.js → api/types/CreateEntitlementReqCommonValueType.js} +2 -2
  177. package/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  178. package/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
  179. package/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
  180. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +3 -1
  181. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +2 -0
  182. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
  183. package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
  184. package/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
  185. package/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
  186. package/api/types/EventBodyFlagCheck.d.ts +2 -2
  187. package/api/types/FeatureCompanyResponseData.d.ts +2 -0
  188. package/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
  189. package/api/types/FeatureUsageResponseData.d.ts +2 -0
  190. package/{dist/api/types/RuleConditionResourceResponseData.d.ts → api/types/GenericPreviewObject.d.ts} +3 -1
  191. package/api/types/GenericPreviewObject.js +5 -0
  192. package/api/types/InvoiceRequestBody.d.ts +16 -0
  193. package/api/types/InvoiceRequestBody.js +5 -0
  194. package/api/types/InvoiceResponseData.d.ts +22 -0
  195. package/api/types/InvoiceResponseData.js +5 -0
  196. package/api/types/MeterRequestBody.d.ts +8 -0
  197. package/api/types/MeterRequestBody.js +5 -0
  198. package/api/types/PaymentMethodRequestBody.d.ts +17 -0
  199. package/api/types/PaymentMethodRequestBody.js +5 -0
  200. package/api/types/PaymentMethodResponseData.d.ts +23 -0
  201. package/api/types/PaymentMethodResponseData.js +5 -0
  202. package/api/types/PlanDetailResponseData.d.ts +7 -3
  203. package/api/types/PlanEntitlementResponseData.d.ts +3 -3
  204. package/api/types/PlanGroupDetailResponseData.d.ts +16 -0
  205. package/api/types/PlanGroupDetailResponseData.js +5 -0
  206. package/api/types/PlanGroupPlanDetailResponseData.d.ts +24 -0
  207. package/api/types/PlanGroupPlanDetailResponseData.js +5 -0
  208. package/api/types/{BillingPlanGroupResponseData.d.ts → PlanGroupResponseData.d.ts} +4 -1
  209. package/api/types/PlanGroupResponseData.js +5 -0
  210. package/api/types/PlanResponseData.d.ts +1 -0
  211. package/api/types/PreviewObjectResponseData.d.ts +9 -0
  212. package/api/types/PreviewObjectResponseData.js +5 -0
  213. package/api/types/RuleConditionDetailResponseData.d.ts +2 -1
  214. package/api/types/RuleConditionResponseData.d.ts +1 -0
  215. package/api/types/StripeEmbedInfo.d.ts +7 -0
  216. package/api/types/StripeEmbedInfo.js +5 -0
  217. package/api/types/UpdateEntitlementReqCommon.d.ts +13 -0
  218. package/api/types/UpdateEntitlementReqCommon.js +5 -0
  219. package/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +11 -0
  220. package/api/types/{CreateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonMetricPeriod.js} +4 -2
  221. package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  222. package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  223. package/{dist/api/types/CreateReqCommonValueType.d.ts → api/types/UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  224. package/{dist/api/types/UpdateReqCommonValueType.js → api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
  225. package/api/types/index.d.ts +28 -10
  226. package/api/types/index.js +28 -10
  227. package/core/fetcher/Fetcher.d.ts +1 -1
  228. package/core/fetcher/getResponseBody.js +3 -0
  229. package/core/fetcher/requestWithRetries.js +13 -4
  230. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
  231. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
  232. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
  233. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
  234. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
  235. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
  236. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
  237. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
  238. package/core/schemas/Schema.d.ts +1 -0
  239. package/core/schemas/Schema.js +1 -0
  240. package/core/schemas/builders/bigint/bigint.d.ts +2 -0
  241. package/core/schemas/builders/bigint/bigint.js +50 -0
  242. package/core/schemas/builders/bigint/index.d.ts +1 -0
  243. package/core/schemas/builders/bigint/index.js +5 -0
  244. package/core/schemas/builders/index.d.ts +1 -0
  245. package/core/schemas/builders/index.js +1 -0
  246. package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  247. package/dist/Client.d.ts +3 -0
  248. package/dist/Client.js +10 -5
  249. package/dist/api/resources/accesstokens/client/Client.js +1 -1
  250. package/dist/api/resources/accounts/client/Client.d.ts +1 -1
  251. package/dist/api/resources/accounts/client/Client.js +15 -15
  252. package/dist/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
  253. package/dist/api/resources/billing/client/Client.d.ts +117 -32
  254. package/dist/api/resources/billing/client/Client.js +667 -83
  255. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +33 -0
  256. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.js +5 -0
  257. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +6 -1
  258. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +12 -2
  259. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +29 -0
  260. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.js +5 -0
  261. package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +18 -0
  262. package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.js +5 -0
  263. package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +26 -0
  264. package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +5 -0
  265. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +13 -0
  266. package/dist/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +22 -0
  267. package/dist/api/resources/billing/client/requests/ListInvoicesRequest.js +5 -0
  268. package/dist/api/resources/billing/client/requests/ListMetersRequest.d.ts +18 -0
  269. package/dist/api/resources/billing/client/requests/ListMetersRequest.js +5 -0
  270. package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +22 -0
  271. package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.js +5 -0
  272. package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +13 -0
  273. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +20 -0
  274. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.js +5 -0
  275. package/dist/api/resources/billing/client/requests/index.d.ts +8 -3
  276. package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +22 -0
  277. package/dist/api/resources/billing/types/CountBillingProductsParams.js +5 -0
  278. package/dist/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
  279. package/dist/api/resources/billing/types/CountBillingProductsResponse.js +5 -0
  280. package/dist/api/resources/billing/types/DeleteProductPriceResponse.d.ts +9 -0
  281. package/dist/api/resources/billing/types/DeleteProductPriceResponse.js +5 -0
  282. package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +7 -0
  283. package/dist/api/resources/billing/types/ListInvoicesParams.d.ts +15 -0
  284. package/dist/api/resources/billing/types/ListInvoicesParams.js +5 -0
  285. package/dist/api/resources/billing/types/ListInvoicesResponse.d.ts +10 -0
  286. package/dist/api/resources/billing/types/ListInvoicesResponse.js +5 -0
  287. package/dist/api/resources/billing/types/ListMetersParams.d.ts +13 -0
  288. package/dist/api/resources/billing/types/ListMetersParams.js +5 -0
  289. package/dist/api/resources/billing/types/ListMetersResponse.d.ts +10 -0
  290. package/dist/api/resources/billing/types/ListMetersResponse.js +5 -0
  291. package/dist/api/resources/billing/types/ListPaymentMethodsParams.d.ts +15 -0
  292. package/dist/api/resources/billing/types/ListPaymentMethodsParams.js +5 -0
  293. package/dist/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +10 -0
  294. package/dist/api/resources/billing/types/ListPaymentMethodsResponse.js +5 -0
  295. package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +7 -0
  296. package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +15 -0
  297. package/dist/api/resources/billing/types/SearchBillingPricesParams.js +5 -0
  298. package/dist/api/resources/billing/types/SearchBillingPricesResponse.d.ts +10 -0
  299. package/dist/api/resources/billing/types/SearchBillingPricesResponse.js +5 -0
  300. package/dist/api/resources/billing/types/UpsertBillingMeterResponse.d.ts +9 -0
  301. package/dist/api/resources/billing/types/UpsertBillingMeterResponse.js +5 -0
  302. package/dist/api/resources/billing/types/UpsertInvoiceResponse.d.ts +9 -0
  303. package/dist/api/resources/billing/types/UpsertInvoiceResponse.js +5 -0
  304. package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.d.ts +9 -0
  305. package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.js +5 -0
  306. package/dist/api/resources/billing/types/index.d.ts +14 -4
  307. package/dist/api/resources/billing/types/index.js +14 -4
  308. package/dist/api/resources/companies/client/Client.d.ts +5 -7
  309. package/dist/api/resources/companies/client/Client.js +64 -50
  310. package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
  311. package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
  312. package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
  313. package/dist/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
  314. package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
  315. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
  316. package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
  317. package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
  318. package/dist/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
  319. package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
  320. package/dist/api/resources/companies/types/CountUsersParams.d.ts +4 -1
  321. package/dist/api/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  322. package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
  323. package/dist/api/resources/companies/types/ListUsersParams.d.ts +4 -1
  324. package/dist/api/resources/components/client/Client.d.ts +9 -9
  325. package/dist/api/resources/components/client/Client.js +49 -40
  326. package/dist/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
  327. package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
  328. package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.js +5 -0
  329. package/dist/api/resources/components/client/requests/index.d.ts +1 -0
  330. package/dist/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
  331. package/dist/api/resources/components/types/PreviewComponentDataParams.js +5 -0
  332. package/{api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts → dist/api/resources/components/types/PreviewComponentDataResponse.d.ts} +3 -3
  333. package/dist/api/resources/components/types/PreviewComponentDataResponse.js +5 -0
  334. package/dist/api/resources/components/types/index.d.ts +2 -1
  335. package/dist/api/resources/components/types/index.js +2 -1
  336. package/dist/api/resources/crm/client/Client.js +5 -5
  337. package/dist/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  338. package/dist/api/resources/entitlements/client/Client.d.ts +4 -4
  339. package/dist/api/resources/entitlements/client/Client.js +39 -27
  340. package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
  341. package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
  342. package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +22 -0
  343. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -1
  344. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -1
  345. package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
  346. package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
  347. package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +22 -0
  348. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -1
  349. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
  350. package/dist/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
  351. package/dist/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  352. package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +8 -0
  353. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
  354. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
  355. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  356. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  357. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
  358. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
  359. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  360. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  361. package/dist/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
  362. package/dist/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  363. package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +8 -0
  364. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
  365. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
  366. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  367. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
  368. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
  369. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
  370. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
  371. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
  372. package/dist/api/resources/entitlements/types/index.d.ts +4 -0
  373. package/dist/api/resources/entitlements/types/index.js +4 -0
  374. package/dist/api/resources/events/client/Client.d.ts +2 -15
  375. package/dist/api/resources/events/client/Client.js +9 -142
  376. package/dist/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
  377. package/dist/api/resources/events/client/requests/index.d.ts +0 -1
  378. package/dist/api/resources/events/types/index.d.ts +0 -2
  379. package/dist/api/resources/events/types/index.js +0 -2
  380. package/dist/api/resources/features/client/Client.d.ts +21 -21
  381. package/dist/api/resources/features/client/Client.js +40 -40
  382. package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
  383. package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
  384. package/dist/api/resources/index.d.ts +3 -0
  385. package/dist/api/resources/index.js +4 -1
  386. package/dist/api/resources/plangroups/client/Client.d.ts +74 -0
  387. package/dist/api/resources/plangroups/client/Client.js +346 -0
  388. package/dist/api/resources/plangroups/client/index.d.ts +1 -0
  389. package/dist/api/resources/plangroups/client/index.js +17 -0
  390. package/{api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +5 -1
  391. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
  392. package/dist/api/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +5 -1
  393. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +5 -0
  394. package/dist/api/resources/plangroups/client/requests/index.d.ts +2 -0
  395. package/dist/api/resources/plangroups/client/requests/index.js +2 -0
  396. package/dist/api/resources/plangroups/index.d.ts +2 -0
  397. package/dist/api/resources/plangroups/index.js +18 -0
  398. package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
  399. package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.js +5 -0
  400. package/dist/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
  401. package/dist/api/resources/plangroups/types/GetPlanGroupResponse.js +5 -0
  402. package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
  403. package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.js +5 -0
  404. package/dist/api/resources/plangroups/types/index.d.ts +3 -0
  405. package/dist/api/resources/plangroups/types/index.js +19 -0
  406. package/dist/api/resources/plans/client/Client.d.ts +7 -18
  407. package/dist/api/resources/plans/client/Client.js +37 -113
  408. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
  409. package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -1
  410. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
  411. package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
  412. package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
  413. package/dist/api/resources/plans/types/CountPlansParams.d.ts +4 -0
  414. package/dist/api/resources/plans/types/ListPlansParams.d.ts +4 -0
  415. package/dist/api/resources/plans/types/index.d.ts +0 -1
  416. package/dist/api/resources/plans/types/index.js +0 -1
  417. package/dist/api/resources/webhooks/client/Client.d.ts +1 -1
  418. package/dist/api/resources/webhooks/client/Client.js +18 -18
  419. package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
  420. package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
  421. package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
  422. package/dist/api/types/BillingCustomerSubscription.d.ts +4 -0
  423. package/dist/api/types/BillingMeterResponseData.d.ts +10 -0
  424. package/dist/api/types/BillingMeterResponseData.js +5 -0
  425. package/dist/api/types/BillingPriceResponseData.d.ts +1 -0
  426. package/dist/api/types/BillingPriceView.d.ts +18 -0
  427. package/dist/api/types/BillingPriceView.js +5 -0
  428. package/dist/api/types/BillingProductDetailResponseData.d.ts +1 -1
  429. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
  430. package/dist/api/types/BillingProductPlanResponseData.d.ts +2 -0
  431. package/dist/api/types/BillingProductPriceResponseData.d.ts +15 -0
  432. package/dist/api/types/BillingProductPriceResponseData.js +5 -0
  433. package/dist/api/types/BillingProductPricing.d.ts +6 -2
  434. package/dist/api/types/BillingSubscriptionResponseData.d.ts +13 -6
  435. package/dist/api/types/BillingSubscriptionView.d.ts +23 -0
  436. package/dist/api/types/BillingSubscriptionView.js +5 -0
  437. package/dist/api/types/CheckFlagRequestBody.d.ts +2 -2
  438. package/dist/api/types/CompanyDetailResponseData.d.ts +5 -3
  439. package/dist/api/types/CompanyOverrideResponseData.d.ts +3 -1
  440. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +26 -0
  441. package/dist/api/types/CompanyPlanDetailResponseData.js +5 -0
  442. package/dist/api/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +2 -1
  443. package/dist/api/types/CompanyPlanWithBillingSubView.js +5 -0
  444. package/dist/api/types/CompanySubscriptionResponseData.d.ts +5 -0
  445. package/dist/api/types/ComponentCapabilities.d.ts +6 -0
  446. package/dist/api/types/ComponentCapabilities.js +5 -0
  447. package/dist/api/types/ComponentHydrateResponseData.d.ts +6 -3
  448. package/dist/api/types/ComponentPreviewResponseData.d.ts +19 -0
  449. package/dist/api/types/ComponentPreviewResponseData.js +5 -0
  450. package/dist/api/types/ComponentResponseData.d.ts +3 -0
  451. package/dist/api/types/CreateEntitlementReqCommon.d.ts +14 -0
  452. package/dist/api/types/CreateEntitlementReqCommon.js +5 -0
  453. package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +11 -0
  454. package/dist/api/types/{CreateReqCommonMetricPeriod.js → CreateEntitlementReqCommonMetricPeriod.js} +4 -2
  455. package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  456. package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  457. package/{api/types/CreateReqCommonValueType.d.ts → dist/api/types/CreateEntitlementReqCommonValueType.d.ts} +2 -2
  458. package/{api/types/UpdateReqCommonValueType.js → dist/api/types/CreateEntitlementReqCommonValueType.js} +2 -2
  459. package/dist/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  460. package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
  461. package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
  462. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +3 -1
  463. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +2 -0
  464. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
  465. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
  466. package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
  467. package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
  468. package/dist/api/types/EventBodyFlagCheck.d.ts +2 -2
  469. package/dist/api/types/FeatureCompanyResponseData.d.ts +2 -0
  470. package/dist/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
  471. package/dist/api/types/FeatureUsageResponseData.d.ts +2 -0
  472. package/{api/types/RuleConditionResourceResponseData.d.ts → dist/api/types/GenericPreviewObject.d.ts} +3 -1
  473. package/dist/api/types/GenericPreviewObject.js +5 -0
  474. package/dist/api/types/InvoiceRequestBody.d.ts +16 -0
  475. package/dist/api/types/InvoiceRequestBody.js +5 -0
  476. package/dist/api/types/InvoiceResponseData.d.ts +22 -0
  477. package/dist/api/types/InvoiceResponseData.js +5 -0
  478. package/dist/api/types/MeterRequestBody.d.ts +8 -0
  479. package/dist/api/types/MeterRequestBody.js +5 -0
  480. package/dist/api/types/PaymentMethodRequestBody.d.ts +17 -0
  481. package/dist/api/types/PaymentMethodRequestBody.js +5 -0
  482. package/dist/api/types/PaymentMethodResponseData.d.ts +23 -0
  483. package/dist/api/types/PaymentMethodResponseData.js +5 -0
  484. package/dist/api/types/PlanDetailResponseData.d.ts +7 -3
  485. package/dist/api/types/PlanEntitlementResponseData.d.ts +3 -3
  486. package/dist/api/types/PlanGroupDetailResponseData.d.ts +16 -0
  487. package/dist/api/types/PlanGroupDetailResponseData.js +5 -0
  488. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +24 -0
  489. package/dist/api/types/PlanGroupPlanDetailResponseData.js +5 -0
  490. package/dist/api/types/{BillingPlanGroupResponseData.d.ts → PlanGroupResponseData.d.ts} +4 -1
  491. package/dist/api/types/PlanGroupResponseData.js +5 -0
  492. package/dist/api/types/PlanResponseData.d.ts +1 -0
  493. package/dist/api/types/PreviewObjectResponseData.d.ts +9 -0
  494. package/dist/api/types/PreviewObjectResponseData.js +5 -0
  495. package/dist/api/types/RuleConditionDetailResponseData.d.ts +2 -1
  496. package/dist/api/types/RuleConditionResponseData.d.ts +1 -0
  497. package/dist/api/types/StripeEmbedInfo.d.ts +7 -0
  498. package/dist/api/types/StripeEmbedInfo.js +5 -0
  499. package/dist/api/types/UpdateEntitlementReqCommon.d.ts +13 -0
  500. package/dist/api/types/UpdateEntitlementReqCommon.js +5 -0
  501. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +11 -0
  502. package/dist/api/types/{UpdateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonMetricPeriod.js} +4 -2
  503. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
  504. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
  505. package/dist/api/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  506. package/{api/types/CreateReqCommonValueType.js → dist/api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
  507. package/dist/api/types/index.d.ts +28 -10
  508. package/dist/api/types/index.js +28 -10
  509. package/dist/core/fetcher/Fetcher.d.ts +1 -1
  510. package/dist/core/fetcher/getResponseBody.js +3 -0
  511. package/dist/core/fetcher/requestWithRetries.js +13 -4
  512. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
  513. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
  514. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
  515. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
  516. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
  517. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
  518. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
  519. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
  520. package/dist/core/schemas/Schema.d.ts +1 -0
  521. package/dist/core/schemas/Schema.js +1 -0
  522. package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
  523. package/dist/core/schemas/builders/bigint/bigint.js +50 -0
  524. package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
  525. package/dist/core/schemas/builders/bigint/index.js +5 -0
  526. package/dist/core/schemas/builders/index.d.ts +1 -0
  527. package/dist/core/schemas/builders/index.js +1 -0
  528. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  529. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +3 -0
  530. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +3 -0
  531. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -0
  532. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +4 -0
  533. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
  534. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
  535. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
  536. package/dist/serialization/resources/billing/client/requests/{ChangeSubscriptionRequestBody.js → CreateMeterRequestBody.js} +6 -5
  537. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
  538. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
  539. package/dist/serialization/resources/billing/client/requests/index.d.ts +3 -3
  540. package/dist/serialization/resources/billing/client/requests/index.js +7 -7
  541. package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +20 -0
  542. package/dist/serialization/resources/{events/types/ListMetricCountsParams.js → billing/types/CountBillingProductsParams.js} +9 -10
  543. package/dist/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
  544. package/dist/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
  545. package/dist/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
  546. package/{serialization/resources/plans/types/ListActivePlansResponse.js → dist/serialization/resources/billing/types/DeleteProductPriceResponse.js} +4 -4
  547. package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
  548. package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +4 -0
  549. package/dist/serialization/resources/billing/types/ListInvoicesParams.d.ts +16 -0
  550. package/dist/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
  551. package/dist/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
  552. package/dist/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
  553. package/dist/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
  554. package/dist/serialization/resources/billing/types/ListMetersParams.js +35 -0
  555. package/dist/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
  556. package/dist/serialization/resources/billing/types/ListMetersResponse.js +36 -0
  557. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
  558. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
  559. package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
  560. package/dist/serialization/resources/billing/types/{ChangeSubscriptionWebResponse.js → ListPaymentMethodsResponse.js} +6 -5
  561. package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +4 -0
  562. package/dist/serialization/resources/billing/types/ListProductPricesParams.js +4 -0
  563. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
  564. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +37 -0
  565. package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
  566. package/dist/serialization/resources/billing/types/{CreateBillingPlanGroupResponse.js → SearchBillingPricesResponse.js} +6 -5
  567. package/dist/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
  568. package/dist/serialization/resources/{plans/types/ListActivePlansResponse.js → billing/types/UpsertBillingMeterResponse.js} +4 -4
  569. package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
  570. package/{serialization/resources/components/types/HydrateComponentResponse.js → dist/serialization/resources/billing/types/UpsertInvoiceResponse.js} +4 -4
  571. package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
  572. package/dist/serialization/resources/{components/types/HydrateComponentResponse.js → billing/types/UpsertPaymentMethodResponse.js} +4 -4
  573. package/dist/serialization/resources/billing/types/index.d.ts +14 -4
  574. package/dist/serialization/resources/billing/types/index.js +14 -4
  575. package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  576. package/dist/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
  577. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  578. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +1 -0
  579. package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  580. package/dist/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
  581. package/dist/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
  582. package/dist/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
  583. package/dist/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
  584. package/dist/serialization/resources/{billing/types/UpdateBillingPlanGroupResponse.js → components/types/PreviewComponentDataResponse.js} +6 -5
  585. package/dist/serialization/resources/components/types/index.d.ts +2 -1
  586. package/dist/serialization/resources/components/types/index.js +2 -1
  587. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  588. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
  589. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
  590. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +4 -0
  591. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -0
  592. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
  593. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
  594. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +4 -0
  595. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
  596. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -0
  597. package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  598. package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
  599. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
  600. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +1 -0
  601. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  602. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  603. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  604. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  605. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  606. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  607. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  608. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  609. package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  610. package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
  611. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
  612. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +1 -0
  613. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  614. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  615. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  616. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  617. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  618. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  619. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  620. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  621. package/dist/serialization/resources/entitlements/types/index.d.ts +4 -0
  622. package/dist/serialization/resources/entitlements/types/index.js +4 -0
  623. package/dist/serialization/resources/events/types/index.d.ts +0 -2
  624. package/dist/serialization/resources/events/types/index.js +0 -2
  625. package/dist/serialization/resources/index.d.ts +3 -0
  626. package/dist/serialization/resources/index.js +4 -1
  627. package/dist/serialization/resources/plangroups/client/index.d.ts +1 -0
  628. package/dist/serialization/resources/plangroups/client/index.js +17 -0
  629. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +16 -0
  630. package/{serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js → dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +5 -2
  631. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +16 -0
  632. package/dist/serialization/resources/{billing/client/requests/CreateBillingPlanGroupRequestBody.js → plangroups/client/requests/UpdatePlanGroupRequestBody.js} +5 -2
  633. package/dist/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
  634. package/dist/serialization/resources/plangroups/client/requests/index.js +7 -0
  635. package/dist/serialization/resources/plangroups/index.d.ts +2 -0
  636. package/dist/serialization/resources/plangroups/index.js +18 -0
  637. package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
  638. package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
  639. package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
  640. package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
  641. package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
  642. package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
  643. package/dist/serialization/resources/plangroups/types/index.d.ts +3 -0
  644. package/dist/serialization/resources/plangroups/types/index.js +19 -0
  645. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
  646. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
  647. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  648. package/dist/serialization/resources/plans/types/CountPlansParams.js +2 -0
  649. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  650. package/dist/serialization/resources/plans/types/ListPlansParams.js +2 -0
  651. package/dist/serialization/resources/plans/types/index.d.ts +0 -1
  652. package/dist/serialization/resources/plans/types/index.js +0 -1
  653. package/dist/serialization/types/BillingCustomerSubscription.d.ts +4 -0
  654. package/dist/serialization/types/BillingCustomerSubscription.js +4 -0
  655. package/dist/serialization/types/BillingMeterResponseData.d.ts +16 -0
  656. package/dist/serialization/types/BillingMeterResponseData.js +37 -0
  657. package/dist/serialization/types/BillingPriceResponseData.d.ts +1 -0
  658. package/dist/serialization/types/BillingPriceResponseData.js +1 -0
  659. package/dist/serialization/types/BillingPriceView.d.ts +24 -0
  660. package/dist/serialization/types/BillingPriceView.js +45 -0
  661. package/dist/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
  662. package/dist/serialization/types/BillingProductDetailResponseData.js +1 -1
  663. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
  664. package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +5 -2
  665. package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
  666. package/dist/serialization/types/BillingProductPlanResponseData.js +2 -0
  667. package/dist/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
  668. package/{serialization/types/MetricCountsHourlyResponseData.js → dist/serialization/types/BillingProductPriceResponseData.js} +11 -8
  669. package/dist/serialization/types/BillingProductPricing.d.ts +6 -2
  670. package/dist/serialization/types/BillingProductPricing.js +6 -2
  671. package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +13 -3
  672. package/dist/serialization/types/BillingSubscriptionResponseData.js +13 -3
  673. package/dist/serialization/types/BillingSubscriptionView.d.ts +31 -0
  674. package/dist/serialization/types/BillingSubscriptionView.js +52 -0
  675. package/dist/serialization/types/CheckFlagRequestBody.d.ts +2 -2
  676. package/dist/serialization/types/CheckFlagRequestBody.js +2 -2
  677. package/dist/serialization/types/CompanyDetailResponseData.d.ts +8 -5
  678. package/dist/serialization/types/CompanyDetailResponseData.js +8 -5
  679. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
  680. package/dist/serialization/types/CompanyOverrideResponseData.js +3 -1
  681. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +35 -0
  682. package/dist/serialization/types/CompanyPlanDetailResponseData.js +56 -0
  683. package/dist/serialization/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +3 -2
  684. package/dist/serialization/types/{BillingPlan.js → CompanyPlanWithBillingSubView.js} +3 -2
  685. package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +7 -0
  686. package/dist/serialization/types/CompanySubscriptionResponseData.js +7 -0
  687. package/dist/serialization/types/ComponentCapabilities.d.ts +12 -0
  688. package/dist/serialization/types/{UpdateReqCommonValueType.js → ComponentCapabilities.js} +4 -2
  689. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +11 -0
  690. package/dist/serialization/types/ComponentHydrateResponseData.js +11 -0
  691. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +29 -0
  692. package/dist/serialization/types/ComponentPreviewResponseData.js +50 -0
  693. package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +22 -0
  694. package/{serialization/types/CreateReqCommon.js → dist/serialization/types/CreateEntitlementReqCommon.js} +9 -6
  695. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  696. package/dist/serialization/types/{RuleConditionResourceResponseData.js → CreateEntitlementReqCommonMetricPeriod.js} +2 -5
  697. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  698. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  699. package/dist/serialization/types/{UpdateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
  700. package/dist/serialization/types/{CreateReqCommonMetricPeriod.js → CreateEntitlementReqCommonValueType.js} +2 -2
  701. package/dist/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  702. package/dist/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -0
  703. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
  704. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
  705. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  706. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  707. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  708. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
  709. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
  710. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
  711. package/dist/serialization/types/EventBodyFlagCheck.d.ts +2 -2
  712. package/dist/serialization/types/EventBodyFlagCheck.js +2 -2
  713. package/dist/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
  714. package/dist/serialization/types/FeatureCompanyResponseData.js +1 -0
  715. package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
  716. package/dist/serialization/types/FeatureCompanyUserResponseData.js +1 -0
  717. package/dist/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  718. package/dist/serialization/types/FeatureUsageResponseData.js +1 -0
  719. package/dist/serialization/types/{RuleConditionResourceResponseData.d.ts → GenericPreviewObject.d.ts} +4 -2
  720. package/{serialization/types/RuleConditionResourceResponseData.js → dist/serialization/types/GenericPreviewObject.js} +4 -2
  721. package/dist/serialization/types/InvoiceRequestBody.d.ts +22 -0
  722. package/dist/serialization/types/InvoiceRequestBody.js +43 -0
  723. package/dist/serialization/types/InvoiceResponseData.d.ts +28 -0
  724. package/dist/serialization/types/InvoiceResponseData.js +49 -0
  725. package/dist/serialization/types/MeterRequestBody.d.ts +14 -0
  726. package/{serialization/types/BillingPlanGroupResponseData.js → dist/serialization/types/MeterRequestBody.js} +5 -5
  727. package/dist/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
  728. package/dist/serialization/types/PaymentMethodRequestBody.js +44 -0
  729. package/dist/serialization/types/PaymentMethodResponseData.d.ts +29 -0
  730. package/dist/serialization/types/PaymentMethodResponseData.js +50 -0
  731. package/dist/serialization/types/PlanDetailResponseData.d.ts +8 -0
  732. package/dist/serialization/types/PlanDetailResponseData.js +8 -0
  733. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
  734. package/dist/serialization/types/PlanEntitlementResponseData.js +4 -0
  735. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +19 -0
  736. package/dist/serialization/types/PlanGroupDetailResponseData.js +40 -0
  737. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +33 -0
  738. package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +54 -0
  739. package/dist/serialization/types/PlanGroupResponseData.d.ts +17 -0
  740. package/dist/serialization/types/PlanGroupResponseData.js +38 -0
  741. package/dist/serialization/types/PlanResponseData.d.ts +1 -0
  742. package/dist/serialization/types/PlanResponseData.js +1 -0
  743. package/dist/serialization/types/PreviewObjectResponseData.d.ts +15 -0
  744. package/dist/serialization/types/PreviewObjectResponseData.js +36 -0
  745. package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
  746. package/dist/serialization/types/RuleConditionDetailResponseData.js +3 -2
  747. package/dist/serialization/types/RuleConditionResponseData.d.ts +1 -0
  748. package/dist/serialization/types/RuleConditionResponseData.js +1 -0
  749. package/dist/serialization/types/RulesDetailResponseData.d.ts +1 -1
  750. package/dist/serialization/types/RulesDetailResponseData.js +1 -1
  751. package/dist/serialization/types/StripeEmbedInfo.d.ts +13 -0
  752. package/dist/serialization/types/StripeEmbedInfo.js +34 -0
  753. package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +21 -0
  754. package/dist/serialization/types/{UpdateReqCommon.js → UpdateEntitlementReqCommon.js} +9 -6
  755. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  756. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
  757. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  758. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  759. package/{serialization/types/CreateReqCommonValueType.d.ts → dist/serialization/types/UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  760. package/dist/serialization/types/{CreateReqCommonValueType.js → UpdateEntitlementReqCommonValueType.js} +2 -2
  761. package/dist/serialization/types/index.d.ts +28 -10
  762. package/dist/serialization/types/index.js +28 -10
  763. package/package.json +8 -3
  764. package/reference.md +457 -133
  765. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +3 -0
  766. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +3 -0
  767. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -0
  768. package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +4 -0
  769. package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
  770. package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
  771. package/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
  772. package/serialization/resources/billing/client/requests/{ChangeSubscriptionRequestBody.js → CreateMeterRequestBody.js} +6 -5
  773. package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
  774. package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
  775. package/serialization/resources/billing/client/requests/index.d.ts +3 -3
  776. package/serialization/resources/billing/client/requests/index.js +7 -7
  777. package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +20 -0
  778. package/serialization/resources/{events/types/ListMetricCountsParams.js → billing/types/CountBillingProductsParams.js} +9 -10
  779. package/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
  780. package/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
  781. package/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
  782. package/serialization/resources/billing/types/DeleteProductPriceResponse.js +35 -0
  783. package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
  784. package/serialization/resources/billing/types/ListBillingProductsParams.js +4 -0
  785. package/serialization/resources/billing/types/ListInvoicesParams.d.ts +16 -0
  786. package/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
  787. package/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
  788. package/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
  789. package/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
  790. package/serialization/resources/billing/types/ListMetersParams.js +35 -0
  791. package/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
  792. package/serialization/resources/billing/types/ListMetersResponse.js +36 -0
  793. package/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
  794. package/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
  795. package/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
  796. package/serialization/resources/billing/types/ListPaymentMethodsResponse.js +36 -0
  797. package/serialization/resources/billing/types/ListProductPricesParams.d.ts +4 -0
  798. package/serialization/resources/billing/types/ListProductPricesParams.js +4 -0
  799. package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
  800. package/serialization/resources/billing/types/SearchBillingPricesParams.js +37 -0
  801. package/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
  802. package/{dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js → serialization/resources/billing/types/SearchBillingPricesResponse.js} +6 -5
  803. package/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
  804. package/serialization/resources/billing/types/UpsertBillingMeterResponse.js +35 -0
  805. package/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
  806. package/serialization/resources/billing/types/UpsertInvoiceResponse.js +35 -0
  807. package/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
  808. package/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +35 -0
  809. package/serialization/resources/billing/types/index.d.ts +14 -4
  810. package/serialization/resources/billing/types/index.js +14 -4
  811. package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  812. package/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
  813. package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
  814. package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +1 -0
  815. package/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  816. package/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
  817. package/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
  818. package/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
  819. package/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
  820. package/serialization/resources/components/types/PreviewComponentDataResponse.js +36 -0
  821. package/serialization/resources/components/types/index.d.ts +2 -1
  822. package/serialization/resources/components/types/index.js +2 -1
  823. package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
  824. package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
  825. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
  826. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +4 -0
  827. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -0
  828. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
  829. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
  830. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +4 -0
  831. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
  832. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -0
  833. package/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
  834. package/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
  835. package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
  836. package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +1 -0
  837. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  838. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  839. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  840. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  841. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  842. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  843. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  844. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  845. package/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
  846. package/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
  847. package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
  848. package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +1 -0
  849. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
  850. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
  851. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  852. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
  853. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
  854. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
  855. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  856. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
  857. package/serialization/resources/entitlements/types/index.d.ts +4 -0
  858. package/serialization/resources/entitlements/types/index.js +4 -0
  859. package/serialization/resources/events/types/index.d.ts +0 -2
  860. package/serialization/resources/events/types/index.js +0 -2
  861. package/serialization/resources/index.d.ts +3 -0
  862. package/serialization/resources/index.js +4 -1
  863. package/serialization/resources/plangroups/client/index.d.ts +1 -0
  864. package/serialization/resources/plangroups/client/index.js +17 -0
  865. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +16 -0
  866. package/{dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js → serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +5 -2
  867. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +16 -0
  868. package/serialization/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.js → plangroups/client/requests/UpdatePlanGroupRequestBody.js} +5 -2
  869. package/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
  870. package/serialization/resources/plangroups/client/requests/index.js +7 -0
  871. package/serialization/resources/plangroups/index.d.ts +2 -0
  872. package/serialization/resources/plangroups/index.js +18 -0
  873. package/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
  874. package/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
  875. package/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
  876. package/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
  877. package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
  878. package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
  879. package/serialization/resources/plangroups/types/index.d.ts +3 -0
  880. package/serialization/resources/plangroups/types/index.js +19 -0
  881. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
  882. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
  883. package/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  884. package/serialization/resources/plans/types/CountPlansParams.js +2 -0
  885. package/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  886. package/serialization/resources/plans/types/ListPlansParams.js +2 -0
  887. package/serialization/resources/plans/types/index.d.ts +0 -1
  888. package/serialization/resources/plans/types/index.js +0 -1
  889. package/serialization/types/BillingCustomerSubscription.d.ts +4 -0
  890. package/serialization/types/BillingCustomerSubscription.js +4 -0
  891. package/serialization/types/BillingMeterResponseData.d.ts +16 -0
  892. package/serialization/types/BillingMeterResponseData.js +37 -0
  893. package/serialization/types/BillingPriceResponseData.d.ts +1 -0
  894. package/serialization/types/BillingPriceResponseData.js +1 -0
  895. package/serialization/types/BillingPriceView.d.ts +24 -0
  896. package/serialization/types/BillingPriceView.js +45 -0
  897. package/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
  898. package/serialization/types/BillingProductDetailResponseData.js +1 -1
  899. package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
  900. package/serialization/types/BillingProductForSubscriptionResponseData.js +5 -2
  901. package/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
  902. package/serialization/types/BillingProductPlanResponseData.js +2 -0
  903. package/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
  904. package/{dist/serialization/types/MetricCountsHourlyResponseData.js → serialization/types/BillingProductPriceResponseData.js} +11 -8
  905. package/serialization/types/BillingProductPricing.d.ts +6 -2
  906. package/serialization/types/BillingProductPricing.js +6 -2
  907. package/serialization/types/BillingSubscriptionResponseData.d.ts +13 -3
  908. package/serialization/types/BillingSubscriptionResponseData.js +13 -3
  909. package/serialization/types/BillingSubscriptionView.d.ts +31 -0
  910. package/serialization/types/BillingSubscriptionView.js +52 -0
  911. package/serialization/types/CheckFlagRequestBody.d.ts +2 -2
  912. package/serialization/types/CheckFlagRequestBody.js +2 -2
  913. package/serialization/types/CompanyDetailResponseData.d.ts +8 -5
  914. package/serialization/types/CompanyDetailResponseData.js +8 -5
  915. package/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
  916. package/serialization/types/CompanyOverrideResponseData.js +3 -1
  917. package/serialization/types/CompanyPlanDetailResponseData.d.ts +35 -0
  918. package/serialization/types/CompanyPlanDetailResponseData.js +56 -0
  919. package/serialization/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +3 -2
  920. package/serialization/types/{BillingPlan.js → CompanyPlanWithBillingSubView.js} +3 -2
  921. package/serialization/types/CompanySubscriptionResponseData.d.ts +7 -0
  922. package/serialization/types/CompanySubscriptionResponseData.js +7 -0
  923. package/serialization/types/ComponentCapabilities.d.ts +12 -0
  924. package/serialization/types/{CreateReqCommonValueType.js → ComponentCapabilities.js} +4 -2
  925. package/serialization/types/ComponentHydrateResponseData.d.ts +11 -0
  926. package/serialization/types/ComponentHydrateResponseData.js +11 -0
  927. package/serialization/types/ComponentPreviewResponseData.d.ts +29 -0
  928. package/serialization/types/ComponentPreviewResponseData.js +50 -0
  929. package/serialization/types/CreateEntitlementReqCommon.d.ts +22 -0
  930. package/{dist/serialization/types/CreateReqCommon.js → serialization/types/CreateEntitlementReqCommon.js} +9 -6
  931. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  932. package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +31 -0
  933. package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  934. package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  935. package/{dist/serialization/types/CreateReqCommonValueType.d.ts → serialization/types/CreateEntitlementReqCommonValueType.d.ts} +2 -2
  936. package/{dist/serialization/types/UpdateReqCommonMetricPeriod.js → serialization/types/CreateEntitlementReqCommonValueType.js} +2 -2
  937. package/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
  938. package/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -0
  939. package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
  940. package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
  941. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
  942. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
  943. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
  944. package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
  945. package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
  946. package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
  947. package/serialization/types/EventBodyFlagCheck.d.ts +2 -2
  948. package/serialization/types/EventBodyFlagCheck.js +2 -2
  949. package/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
  950. package/serialization/types/FeatureCompanyResponseData.js +1 -0
  951. package/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
  952. package/serialization/types/FeatureCompanyUserResponseData.js +1 -0
  953. package/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  954. package/serialization/types/FeatureUsageResponseData.js +1 -0
  955. package/serialization/types/{RuleConditionResourceResponseData.d.ts → GenericPreviewObject.d.ts} +4 -2
  956. package/serialization/types/GenericPreviewObject.js +36 -0
  957. package/serialization/types/InvoiceRequestBody.d.ts +22 -0
  958. package/serialization/types/InvoiceRequestBody.js +43 -0
  959. package/serialization/types/InvoiceResponseData.d.ts +28 -0
  960. package/serialization/types/InvoiceResponseData.js +49 -0
  961. package/serialization/types/MeterRequestBody.d.ts +14 -0
  962. package/{dist/serialization/types/BillingPlanGroupResponseData.js → serialization/types/MeterRequestBody.js} +5 -5
  963. package/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
  964. package/serialization/types/PaymentMethodRequestBody.js +44 -0
  965. package/serialization/types/PaymentMethodResponseData.d.ts +29 -0
  966. package/serialization/types/PaymentMethodResponseData.js +50 -0
  967. package/serialization/types/PlanDetailResponseData.d.ts +8 -0
  968. package/serialization/types/PlanDetailResponseData.js +8 -0
  969. package/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
  970. package/serialization/types/PlanEntitlementResponseData.js +4 -0
  971. package/serialization/types/PlanGroupDetailResponseData.d.ts +19 -0
  972. package/serialization/types/PlanGroupDetailResponseData.js +40 -0
  973. package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +33 -0
  974. package/serialization/types/PlanGroupPlanDetailResponseData.js +54 -0
  975. package/serialization/types/PlanGroupResponseData.d.ts +17 -0
  976. package/serialization/types/PlanGroupResponseData.js +38 -0
  977. package/serialization/types/PlanResponseData.d.ts +1 -0
  978. package/serialization/types/PlanResponseData.js +1 -0
  979. package/serialization/types/PreviewObjectResponseData.d.ts +15 -0
  980. package/serialization/types/PreviewObjectResponseData.js +36 -0
  981. package/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
  982. package/serialization/types/RuleConditionDetailResponseData.js +3 -2
  983. package/serialization/types/RuleConditionResponseData.d.ts +1 -0
  984. package/serialization/types/RuleConditionResponseData.js +1 -0
  985. package/serialization/types/RulesDetailResponseData.d.ts +1 -1
  986. package/serialization/types/RulesDetailResponseData.js +1 -1
  987. package/serialization/types/StripeEmbedInfo.d.ts +13 -0
  988. package/serialization/types/StripeEmbedInfo.js +34 -0
  989. package/serialization/types/UpdateEntitlementReqCommon.d.ts +21 -0
  990. package/serialization/types/{UpdateReqCommon.js → UpdateEntitlementReqCommon.js} +9 -6
  991. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
  992. package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
  993. package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
  994. package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
  995. package/serialization/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
  996. package/serialization/types/UpdateEntitlementReqCommonValueType.js +31 -0
  997. package/serialization/types/index.d.ts +28 -10
  998. package/serialization/types/index.js +28 -10
  999. package/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -16
  1000. package/api/types/CreateReqCommon.d.ts +0 -12
  1001. package/api/types/CreateReqCommonMetricPeriod.d.ts +0 -9
  1002. package/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
  1003. package/api/types/UpdateReqCommon.d.ts +0 -11
  1004. package/api/types/UpdateReqCommonMetricPeriod.d.ts +0 -9
  1005. package/dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -16
  1006. package/dist/api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -9
  1007. package/dist/api/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -9
  1008. package/dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -9
  1009. package/dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -9
  1010. package/dist/api/types/CreateReqCommon.d.ts +0 -12
  1011. package/dist/api/types/CreateReqCommonMetricPeriod.d.ts +0 -9
  1012. package/dist/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
  1013. package/dist/api/types/UpdateReqCommon.d.ts +0 -11
  1014. package/dist/api/types/UpdateReqCommonMetricPeriod.d.ts +0 -9
  1015. package/dist/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -14
  1016. package/dist/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +0 -13
  1017. package/dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +0 -13
  1018. package/dist/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -14
  1019. package/dist/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -14
  1020. package/dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -14
  1021. package/dist/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -14
  1022. package/dist/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
  1023. package/dist/serialization/resources/events/types/ListMetricCountsParams.d.ts +0 -21
  1024. package/dist/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
  1025. package/dist/serialization/resources/events/types/ListMetricCountsResponse.js +0 -36
  1026. package/dist/serialization/resources/plans/types/ListActivePlansResponse.d.ts +0 -14
  1027. package/dist/serialization/types/BillingPlanGroupResponseData.d.ts +0 -14
  1028. package/dist/serialization/types/CreateReqCommon.d.ts +0 -19
  1029. package/dist/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
  1030. package/dist/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
  1031. package/dist/serialization/types/UpdateReqCommon.d.ts +0 -18
  1032. package/dist/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
  1033. package/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -14
  1034. package/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +0 -13
  1035. package/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +0 -13
  1036. package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -14
  1037. package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.js +0 -35
  1038. package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -14
  1039. package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.js +0 -35
  1040. package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -14
  1041. package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js +0 -35
  1042. package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -14
  1043. package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.js +0 -35
  1044. package/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
  1045. package/serialization/resources/events/types/ListMetricCountsParams.d.ts +0 -21
  1046. package/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
  1047. package/serialization/resources/events/types/ListMetricCountsResponse.js +0 -36
  1048. package/serialization/resources/plans/types/ListActivePlansResponse.d.ts +0 -14
  1049. package/serialization/types/BillingPlanGroupResponseData.d.ts +0 -14
  1050. package/serialization/types/CreateReqCommon.d.ts +0 -19
  1051. package/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
  1052. package/serialization/types/CreateReqCommonMetricPeriod.js +0 -31
  1053. package/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
  1054. package/serialization/types/UpdateReqCommon.d.ts +0 -18
  1055. package/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
  1056. package/serialization/types/UpdateReqCommonMetricPeriod.js +0 -31
  1057. package/serialization/types/UpdateReqCommonValueType.js +0 -31
  1058. /package/api/resources/billing/client/requests/{ChangeSubscriptionRequestBody.js → CountBillingProductsRequest.js} +0 -0
  1059. /package/api/resources/billing/client/requests/{CreateBillingPlanGroupRequestBody.js → CreateInvoiceRequestBody.js} +0 -0
  1060. /package/api/resources/billing/client/requests/{UpdateBillingPlanGroupRequestBody.js → CreateMeterRequestBody.js} +0 -0
  1061. /package/api/resources/billing/{types/ChangeSubscriptionWebResponse.js → client/requests/CreatePaymentMethodRequestBody.js} +0 -0
  1062. /package/api/resources/billing/{types/CreateBillingPlanGroupResponse.js → client/requests/ListInvoicesRequest.js} +0 -0
  1063. /package/api/resources/billing/{types/GetBillingPlanGroupByAccountIdResponse.js → client/requests/ListMetersRequest.js} +0 -0
  1064. /package/api/resources/billing/{types/UpdateBillingPlanGroupResponse.js → client/requests/ListPaymentMethodsRequest.js} +0 -0
  1065. /package/api/resources/{components/types/HydrateComponentResponse.js → billing/client/requests/SearchBillingPricesRequest.js} +0 -0
  1066. /package/api/resources/{events/client/requests/ListMetricCountsRequest.js → billing/types/CountBillingProductsParams.js} +0 -0
  1067. /package/api/resources/{events/types/ListMetricCountsParams.js → billing/types/CountBillingProductsResponse.js} +0 -0
  1068. /package/api/resources/{events/types/ListMetricCountsResponse.js → billing/types/DeleteProductPriceResponse.js} +0 -0
  1069. /package/api/resources/{plans/types/ListActivePlansResponse.js → billing/types/ListInvoicesParams.js} +0 -0
  1070. /package/api/{types/BillingPlan.js → resources/billing/types/ListInvoicesResponse.js} +0 -0
  1071. /package/api/{types/BillingPlanGroupResponseData.js → resources/billing/types/ListMetersParams.js} +0 -0
  1072. /package/api/{types/CreateReqCommon.js → resources/billing/types/ListMetersResponse.js} +0 -0
  1073. /package/api/{types/MetricCountsHourlyResponseData.js → resources/billing/types/ListPaymentMethodsParams.js} +0 -0
  1074. /package/api/{types/RuleConditionResourceResponseData.js → resources/billing/types/ListPaymentMethodsResponse.js} +0 -0
  1075. /package/api/{types/UpdateReqCommon.js → resources/billing/types/SearchBillingPricesParams.js} +0 -0
  1076. /package/{dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.js → api/resources/billing/types/SearchBillingPricesResponse.js} +0 -0
  1077. /package/{dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js → api/resources/billing/types/UpsertBillingMeterResponse.js} +0 -0
  1078. /package/{dist/api/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js → api/resources/billing/types/UpsertInvoiceResponse.js} +0 -0
  1079. /package/{dist/api/resources/billing/types/ChangeSubscriptionWebResponse.js → api/resources/billing/types/UpsertPaymentMethodResponse.js} +0 -0
  1080. /package/{dist/api/resources/billing/types/CreateBillingPlanGroupResponse.js → api/resources/components/client/requests/PreviewComponentDataRequest.js} +0 -0
  1081. /package/{dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js → api/resources/components/types/PreviewComponentDataParams.js} +0 -0
  1082. /package/{dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.js → api/resources/components/types/PreviewComponentDataResponse.js} +0 -0
  1083. /package/{dist/api/resources/components/types/HydrateComponentResponse.js → api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +0 -0
  1084. /package/{dist/api/resources/events/client/requests/ListMetricCountsRequest.js → api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js} +0 -0
  1085. /package/{dist/api/resources/events/types/ListMetricCountsParams.js → api/resources/plangroups/types/CreatePlanGroupResponse.js} +0 -0
  1086. /package/{dist/api/resources/events/types/ListMetricCountsResponse.js → api/resources/plangroups/types/GetPlanGroupResponse.js} +0 -0
  1087. /package/{dist/api/resources/plans/types/ListActivePlansResponse.js → api/resources/plangroups/types/UpdatePlanGroupResponse.js} +0 -0
  1088. /package/{dist/api/types/BillingPlan.js → api/types/BillingMeterResponseData.js} +0 -0
  1089. /package/{dist/api/types/BillingPlanGroupResponseData.js → api/types/BillingPriceView.js} +0 -0
  1090. /package/{dist/api/types/CreateReqCommon.js → api/types/BillingProductPriceResponseData.js} +0 -0
  1091. /package/{dist/api/types/MetricCountsHourlyResponseData.js → api/types/BillingSubscriptionView.js} +0 -0
  1092. /package/{dist/api/types/RuleConditionResourceResponseData.js → api/types/CompanyPlanDetailResponseData.js} +0 -0
  1093. /package/{dist/api/types/UpdateReqCommon.js → api/types/CompanyPlanWithBillingSubView.js} +0 -0
@@ -6,9 +6,9 @@
6
6
  * {}
7
7
  */
8
8
  export interface ListWebhookEventsRequest {
9
- webhookId?: string;
10
9
  ids?: string | string[];
11
10
  q?: string;
11
+ webhookId?: string;
12
12
  /**
13
13
  * Page limit (default 100)
14
14
  */
@@ -2,6 +2,10 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface BillingCustomerSubscription {
5
+ currency: string;
5
6
  expiredAt?: Date;
7
+ interval: string;
8
+ meteredUsage: boolean;
9
+ perUnitPrice: number;
6
10
  totalPrice: number;
7
11
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface BillingMeterResponseData {
5
+ dispalyName: string;
6
+ eventName: string;
7
+ eventPayloadKey: string;
8
+ externalPriceId: string;
9
+ id: string;
10
+ }
@@ -2,6 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface BillingPriceResponseData {
5
+ currency: string;
5
6
  externalPriceId: string;
6
7
  id: string;
7
8
  interval: string;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface BillingPriceView {
5
+ createdAt: Date;
6
+ currency: string;
7
+ id: string;
8
+ interval: string;
9
+ meterId?: string;
10
+ price: number;
11
+ priceExternalId: string;
12
+ priceId: string;
13
+ productExternalId: string;
14
+ productId: string;
15
+ productName: string;
16
+ updatedAt: Date;
17
+ usageType: string;
18
+ }
@@ -3,7 +3,6 @@
3
3
  */
4
4
  import * as Schematic from "../index";
5
5
  export interface BillingProductDetailResponseData {
6
- prices: Schematic.BillingPriceResponseData[];
7
6
  accountId: string;
8
7
  createdAt: Date;
9
8
  currency: string;
@@ -11,6 +10,7 @@ export interface BillingProductDetailResponseData {
11
10
  externalId: string;
12
11
  name: string;
13
12
  price: number;
13
+ prices: Schematic.BillingPriceResponseData[];
14
14
  productId: string;
15
15
  quantity: number;
16
16
  updatedAt: Date;
@@ -2,15 +2,18 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface BillingProductForSubscriptionResponseData {
5
- accountId: string;
6
5
  createdAt: Date;
7
6
  currency: string;
8
7
  environmentId: string;
9
8
  externalId: string;
10
9
  id: string;
11
- interval?: string;
10
+ interval: string;
11
+ meterId?: string;
12
12
  name: string;
13
13
  price: number;
14
+ priceExternalId: string;
14
15
  quantity: number;
16
+ subscriptionId: string;
15
17
  updatedAt: Date;
18
+ usageType: string;
16
19
  }
@@ -8,7 +8,9 @@ export interface BillingProductPlanResponseData {
8
8
  accountId: string;
9
9
  billingProductId: string;
10
10
  environmentId: string;
11
+ isTrialable: boolean;
11
12
  monthlyPriceId?: string;
12
13
  planId: string;
14
+ trialDays?: number;
13
15
  yearlyPriceId?: string;
14
16
  }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface BillingProductPriceResponseData {
5
+ createdAt: Date;
6
+ currency: string;
7
+ id: string;
8
+ interval: string;
9
+ meterId?: string;
10
+ price: number;
11
+ priceExternalId: string;
12
+ productExternalId: string;
13
+ updatedAt: Date;
14
+ usageType: string;
15
+ }
@@ -2,8 +2,12 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface BillingProductPricing {
5
- interval?: string;
5
+ currency: string;
6
+ interval: string;
7
+ meterId?: string;
6
8
  price: number;
7
- priceExternalId?: string;
9
+ priceExternalId: string;
8
10
  productExternalId: string;
11
+ quantity: number;
12
+ usageType: string;
9
13
  }
@@ -1,12 +1,19 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * The created resource
6
- */
7
4
  export interface BillingSubscriptionResponseData {
5
+ companyId?: string;
6
+ createdAt: Date;
7
+ currency: string;
8
+ customerExternalId: string;
8
9
  expiredAt?: Date;
9
- externalId: string;
10
- id: number;
11
- updatedAt: Date;
10
+ id: string;
11
+ interval: string;
12
+ metadata?: Record<string, unknown>;
13
+ periodEnd: number;
14
+ periodStart: number;
15
+ status: string;
16
+ subscriptionExternalId: string;
17
+ totalPrice: number;
18
+ trialEnd?: number;
12
19
  }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Schematic from "../index";
5
+ export interface BillingSubscriptionView {
6
+ companyId?: string;
7
+ createdAt: Date;
8
+ currency: string;
9
+ customerExternalId: string;
10
+ expiredAt?: Date;
11
+ id: string;
12
+ interval: string;
13
+ latestInvoice?: Schematic.InvoiceResponseData;
14
+ metadata?: Record<string, unknown>;
15
+ paymentMethod?: Schematic.PaymentMethodResponseData;
16
+ periodEnd: number;
17
+ periodStart: number;
18
+ products: Schematic.BillingProductForSubscriptionResponseData[];
19
+ status: string;
20
+ subscriptionExternalId: string;
21
+ totalPrice: number;
22
+ trialEnd?: number;
23
+ }
@@ -2,6 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface CheckFlagRequestBody {
5
- company?: Record<string, string | undefined>;
6
- user?: Record<string, string | undefined>;
5
+ company?: Record<string, string>;
6
+ user?: Record<string, string>;
7
7
  }
@@ -3,7 +3,9 @@
3
3
  */
4
4
  import * as Schematic from "../index";
5
5
  export interface CompanyDetailResponseData {
6
- addOns: Schematic.PreviewObject[];
6
+ addOns: Schematic.CompanyPlanWithBillingSubView[];
7
+ billingSubscription?: Schematic.BillingSubscriptionView;
8
+ billingSubscriptions: Schematic.BillingSubscriptionView[];
7
9
  createdAt: Date;
8
10
  entityTraits: Schematic.EntityTraitDetailResponseData[];
9
11
  environmentId: string;
@@ -12,8 +14,8 @@ export interface CompanyDetailResponseData {
12
14
  lastSeenAt?: Date;
13
15
  logoUrl?: string;
14
16
  name: string;
15
- plan?: Schematic.BillingPlan;
16
- plans: Schematic.PreviewObject[];
17
+ plan?: Schematic.CompanyPlanWithBillingSubView;
18
+ plans: Schematic.GenericPreviewObject[];
17
19
  /** A map of trait names to trait values */
18
20
  traits?: Record<string, unknown>;
19
21
  updatedAt: Date;
@@ -10,11 +10,13 @@ export interface CompanyOverrideResponseData {
10
10
  companyId: string;
11
11
  createdAt: Date;
12
12
  environmentId: string;
13
+ expirationDate?: Date;
13
14
  feature?: Schematic.FeatureResponseData;
14
15
  featureId: string;
15
16
  id: string;
16
17
  metricPeriod?: string;
17
- ruleId: string;
18
+ metricPeriodMonthReset?: string;
19
+ ruleId?: string;
18
20
  updatedAt: Date;
19
21
  valueBool?: boolean;
20
22
  valueNumeric?: number;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Schematic from "../index";
5
+ export interface CompanyPlanDetailResponseData {
6
+ audienceType?: string;
7
+ billingProduct?: Schematic.BillingProductDetailResponseData;
8
+ companyCount: number;
9
+ createdAt: Date;
10
+ current: boolean;
11
+ description: string;
12
+ entitlements: Schematic.PlanEntitlementResponseData[];
13
+ features: Schematic.FeatureDetailResponseData[];
14
+ icon: string;
15
+ id: string;
16
+ isDefault: boolean;
17
+ isFree: boolean;
18
+ isTrialable: boolean;
19
+ monthlyPrice?: Schematic.BillingPriceResponseData;
20
+ name: string;
21
+ planType: string;
22
+ trialDays?: number;
23
+ updatedAt: Date;
24
+ valid: boolean;
25
+ yearlyPrice?: Schematic.BillingPriceResponseData;
26
+ }
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface BillingPlan {
4
+ export interface CompanyPlanWithBillingSubView {
5
+ billingProductId?: string;
5
6
  description?: string;
6
7
  id: string;
7
8
  imageUrl?: string;
@@ -3,9 +3,14 @@
3
3
  */
4
4
  import * as Schematic from "../index";
5
5
  export interface CompanySubscriptionResponseData {
6
+ currency: string;
6
7
  customerExternalId: string;
7
8
  expiredAt?: Date;
8
9
  interval: string;
10
+ latestInvoice?: Schematic.InvoiceResponseData;
11
+ paymentMethod?: Schematic.PaymentMethodResponseData;
9
12
  products: Schematic.BillingProductForSubscriptionResponseData[];
13
+ status: string;
10
14
  subscriptionExternalId: string;
15
+ totalPrice: number;
11
16
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ComponentCapabilities {
5
+ checkout: boolean;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,11 +2,14 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Schematic from "../index";
5
- /**
6
- * The returned resource
7
- */
8
5
  export interface ComponentHydrateResponseData {
6
+ activeAddOns: Schematic.CompanyPlanDetailResponseData[];
7
+ activePlans: Schematic.CompanyPlanDetailResponseData[];
8
+ capabilities?: Schematic.ComponentCapabilities;
9
9
  company?: Schematic.CompanyDetailResponseData;
10
10
  component?: Schematic.ComponentResponseData;
11
11
  featureUsage?: Schematic.FeatureUsageDetailResponseData;
12
+ stripeEmbed?: Schematic.StripeEmbedInfo;
13
+ subscription?: Schematic.CompanySubscriptionResponseData;
14
+ upcomingInvoice?: Schematic.InvoiceResponseData;
12
15
  }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Schematic from "../index";
5
+ /**
6
+ * The returned resource
7
+ */
8
+ export interface ComponentPreviewResponseData {
9
+ activeAddOns: Schematic.CompanyPlanDetailResponseData[];
10
+ activePlans: Schematic.CompanyPlanDetailResponseData[];
11
+ capabilities?: Schematic.ComponentCapabilities;
12
+ company?: Schematic.CompanyDetailResponseData;
13
+ component?: Schematic.ComponentResponseData;
14
+ featureUsage?: Schematic.FeatureUsageDetailResponseData;
15
+ invoices: Schematic.InvoiceResponseData[];
16
+ stripeEmbed?: Schematic.StripeEmbedInfo;
17
+ subscription?: Schematic.CompanySubscriptionResponseData;
18
+ upcomingInvoice?: Schematic.InvoiceResponseData;
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * The updated resource
6
+ */
4
7
  export interface ComponentResponseData {
5
8
  ast?: Record<string, number>;
6
9
  createdAt: Date;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Schematic from "../index";
5
+ export interface CreateEntitlementReqCommon {
6
+ featureId: string;
7
+ meteredPriceId?: string;
8
+ metricPeriod?: Schematic.CreateEntitlementReqCommonMetricPeriod;
9
+ metricPeriodMonthReset?: Schematic.CreateEntitlementReqCommonMetricPeriodMonthReset;
10
+ valueBool?: boolean;
11
+ valueNumeric?: number;
12
+ valueTraitId?: string;
13
+ valueType: Schematic.CreateEntitlementReqCommonValueType;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type CreateEntitlementReqCommonMetricPeriod = "all_time" | "billing" | "current_month" | "current_week" | "current_day";
5
+ export declare const CreateEntitlementReqCommonMetricPeriod: {
6
+ readonly AllTime: "all_time";
7
+ readonly Billing: "billing";
8
+ readonly CurrentMonth: "current_month";
9
+ readonly CurrentWeek: "current_week";
10
+ readonly CurrentDay: "current_day";
11
+ };
@@ -3,8 +3,10 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.UpdateReqCommonMetricPeriod = void 0;
7
- exports.UpdateReqCommonMetricPeriod = {
6
+ exports.CreateEntitlementReqCommonMetricPeriod = void 0;
7
+ exports.CreateEntitlementReqCommonMetricPeriod = {
8
+ AllTime: "all_time",
9
+ Billing: "billing",
8
10
  CurrentMonth: "current_month",
9
11
  CurrentWeek: "current_week",
10
12
  CurrentDay: "current_day",
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type CreateEntitlementReqCommonMetricPeriodMonthReset = "first_of_month" | "billing_cycle";
5
+ export declare const CreateEntitlementReqCommonMetricPeriodMonthReset: {
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.CreateEntitlementReqCommonMetricPeriodMonthReset = void 0;
7
+ exports.CreateEntitlementReqCommonMetricPeriodMonthReset = {
8
+ FirstOfMonth: "first_of_month",
9
+ BillingCycle: "billing_cycle",
10
+ };
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type UpdateReqCommonValueType = "boolean" | "numeric" | "trait" | "unlimited";
5
- export declare const UpdateReqCommonValueType: {
4
+ export declare type CreateEntitlementReqCommonValueType = "boolean" | "numeric" | "trait" | "unlimited";
5
+ export declare const CreateEntitlementReqCommonValueType: {
6
6
  readonly Boolean: "boolean";
7
7
  readonly Numeric: "numeric";
8
8
  readonly Trait: "trait";
@@ -3,8 +3,8 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CreateReqCommonValueType = void 0;
7
- exports.CreateReqCommonValueType = {
6
+ exports.CreateEntitlementReqCommonValueType = void 0;
7
+ exports.CreateEntitlementReqCommonValueType = {
8
8
  Boolean: "boolean",
9
9
  Numeric: "numeric",
10
10
  Trait: "trait",
@@ -11,6 +11,8 @@ export interface CreateOrUpdateConditionRequestBody {
11
11
  id?: string;
12
12
  /** Period of time over which to measure the track event metric */
13
13
  metricPeriod?: Schematic.CreateOrUpdateConditionRequestBodyMetricPeriod;
14
+ /** When metric_period=current_month, specify whether the month restarts based on the calendar month or the billing period */
15
+ metricPeriodMonthReset?: Schematic.CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset;
14
16
  /** Value to compare the track event metric against */
15
17
  metricValue?: number;
16
18
  operator: Schematic.CreateOrUpdateConditionRequestBodyOperator;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type CreateOrUpdateConditionRequestBodyConditionType = "company" | "metric" | "trait" | "user" | "plan" | "billing_product" | "crm_product";
4
+ export declare type CreateOrUpdateConditionRequestBodyConditionType = "company" | "metric" | "trait" | "user" | "plan" | "billing_product" | "crm_product" | "base_plan";
5
5
  export declare const CreateOrUpdateConditionRequestBodyConditionType: {
6
6
  readonly Company: "company";
7
7
  readonly Metric: "metric";
@@ -10,4 +10,5 @@ export declare const CreateOrUpdateConditionRequestBodyConditionType: {
10
10
  readonly Plan: "plan";
11
11
  readonly BillingProduct: "billing_product";
12
12
  readonly CrmProduct: "crm_product";
13
+ readonly BasePlan: "base_plan";
13
14
  };
@@ -12,4 +12,5 @@ exports.CreateOrUpdateConditionRequestBodyConditionType = {
12
12
  Plan: "plan",
13
13
  BillingProduct: "billing_product",
14
14
  CrmProduct: "crm_product",
15
+ BasePlan: "base_plan",
15
16
  };
@@ -4,8 +4,10 @@
4
4
  /**
5
5
  * Period of time over which to measure the track event metric
6
6
  */
7
- export declare type CreateOrUpdateConditionRequestBodyMetricPeriod = "current_month" | "current_week" | "current_day";
7
+ export declare type CreateOrUpdateConditionRequestBodyMetricPeriod = "all_time" | "billing" | "current_month" | "current_week" | "current_day";
8
8
  export declare const CreateOrUpdateConditionRequestBodyMetricPeriod: {
9
+ readonly AllTime: "all_time";
10
+ readonly Billing: "billing";
9
11
  readonly CurrentMonth: "current_month";
10
12
  readonly CurrentWeek: "current_week";
11
13
  readonly CurrentDay: "current_day";
@@ -5,6 +5,8 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CreateOrUpdateConditionRequestBodyMetricPeriod = void 0;
7
7
  exports.CreateOrUpdateConditionRequestBodyMetricPeriod = {
8
+ AllTime: "all_time",
9
+ Billing: "billing",
8
10
  CurrentMonth: "current_month",
9
11
  CurrentWeek: "current_week",
10
12
  CurrentDay: "current_day",
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * When metric_period=current_month, specify whether the month restarts based on the calendar month or the billing period
6
+ */
7
+ export declare type CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset = "first_of_month" | "billing_cycle";
8
+ export declare const CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset: {
9
+ readonly FirstOfMonth: "first_of_month";
10
+ readonly BillingCycle: "billing_cycle";
11
+ };
@@ -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.CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset = void 0;
7
+ exports.CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset = {
8
+ FirstOfMonth: "first_of_month",
9
+ BillingCycle: "billing_cycle",
10
+ };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type CreateOrUpdateConditionRequestBodyOperator = "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
4
+ export declare type CreateOrUpdateConditionRequestBodyOperator = "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "is_empty" | "not_empty";
5
5
  export declare const CreateOrUpdateConditionRequestBodyOperator: {
6
6
  readonly Eq: "eq";
7
7
  readonly Ne: "ne";
@@ -9,4 +9,6 @@ export declare const CreateOrUpdateConditionRequestBodyOperator: {
9
9
  readonly Gte: "gte";
10
10
  readonly Lt: "lt";
11
11
  readonly Lte: "lte";
12
+ readonly IsEmpty: "is_empty";
13
+ readonly NotEmpty: "not_empty";
12
14
  };
@@ -11,4 +11,6 @@ exports.CreateOrUpdateConditionRequestBodyOperator = {
11
11
  Gte: "gte",
12
12
  Lt: "lt",
13
13
  Lte: "lte",
14
+ IsEmpty: "is_empty",
15
+ NotEmpty: "not_empty",
14
16
  };
@@ -13,9 +13,9 @@ export interface EventBodyFlagCheck {
13
13
  /** The reason why the value was returned */
14
14
  reason: string;
15
15
  /** Key-value pairs used to to identify company for which the flag was checked */
16
- reqCompany?: Record<string, string | undefined>;
16
+ reqCompany?: Record<string, string>;
17
17
  /** Key-value pairs used to to identify user for which the flag was checked */
18
- reqUser?: Record<string, string | undefined>;
18
+ reqUser?: Record<string, string>;
19
19
  /** Schematic rule ID (starting with 'rule\_') of the rule that matched for the flag, if any */
20
20
  ruleId?: string;
21
21
  /** Schematic user ID (starting with 'user\_') of the user evaluated, if any */
@@ -13,6 +13,8 @@ export interface FeatureCompanyResponseData {
13
13
  entitlementId: string;
14
14
  entitlementType: string;
15
15
  feature?: Schematic.FeatureDetailResponseData;
16
+ /** If the period is current_month, when the month resets. */
17
+ monthReset?: string;
16
18
  /** The period over which usage is measured. */
17
19
  period?: string;
18
20
  plan?: Schematic.PlanResponseData;
@@ -13,6 +13,8 @@ export interface FeatureCompanyUserResponseData {
13
13
  entitlementId: string;
14
14
  entitlementType: string;
15
15
  feature?: Schematic.FeatureDetailResponseData;
16
+ /** If the period is current_month, when the month resets. */
17
+ monthReset?: string;
16
18
  /** The period over which usage is measured. */
17
19
  period?: string;
18
20
  plan?: Schematic.PlanResponseData;
@@ -12,6 +12,8 @@ export interface FeatureUsageResponseData {
12
12
  entitlementId: string;
13
13
  entitlementType: string;
14
14
  feature?: Schematic.FeatureDetailResponseData;
15
+ /** If the period is current_month, when the month resets. */
16
+ monthReset?: string;
15
17
  /** The period over which usage is measured. */
16
18
  period?: string;
17
19
  plan?: Schematic.PlanResponseData;
@@ -1,7 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface RuleConditionResourceResponseData {
4
+ export interface GenericPreviewObject {
5
+ description?: string;
5
6
  id: string;
7
+ imageUrl?: string;
6
8
  name: string;
7
9
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });