@schematichq/schematic-typescript-node 1.2.2 → 1.2.3

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 (366) hide show
  1. package/dist/Client.d.ts +2 -2
  2. package/dist/api/resources/accesstokens/client/Client.d.ts +3 -3
  3. package/dist/api/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +1 -3
  4. package/dist/api/resources/accounts/client/Client.d.ts +29 -8
  5. package/dist/api/resources/accounts/client/requests/CountApiKeysRequest.d.ts +4 -1
  6. package/dist/api/resources/accounts/client/requests/CountApiRequestsRequest.d.ts +7 -1
  7. package/dist/api/resources/accounts/client/requests/ListApiKeysRequest.d.ts +4 -1
  8. package/dist/api/resources/accounts/client/requests/ListApiRequestsRequest.d.ts +7 -1
  9. package/dist/api/resources/accounts/client/requests/ListEnvironmentsRequest.d.ts +4 -1
  10. package/dist/api/resources/accounts/types/ListApiKeysResponse.d.ts +0 -1
  11. package/dist/api/resources/accounts/types/ListApiRequestsResponse.d.ts +0 -1
  12. package/dist/api/resources/accounts/types/ListEnvironmentsResponse.d.ts +0 -1
  13. package/dist/api/resources/billing/client/Client.d.ts +87 -15
  14. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +12 -1
  15. package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +7 -1
  16. package/dist/api/resources/billing/client/requests/{CreateBillingSubscriptionsRequestBody.d.ts → CreateBillingSubscriptionRequestBody.d.ts} +3 -2
  17. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +12 -1
  18. package/dist/api/resources/billing/client/requests/ListCouponsRequest.d.ts +6 -1
  19. package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +7 -1
  20. package/dist/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +4 -1
  21. package/dist/api/resources/billing/client/requests/ListMetersRequest.d.ts +5 -1
  22. package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +4 -1
  23. package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +12 -1
  24. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +28 -3
  25. package/dist/api/resources/billing/client/requests/index.d.ts +1 -1
  26. package/dist/api/resources/billing/types/CreateBillingSubscriptionRequestBodyTrialEndSetting.d.ts +8 -0
  27. package/dist/api/resources/billing/types/ListBillingProductsResponse.d.ts +0 -1
  28. package/dist/api/resources/billing/types/ListCouponsResponse.d.ts +0 -1
  29. package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts +0 -1
  30. package/dist/api/resources/billing/types/ListInvoicesResponse.d.ts +0 -1
  31. package/dist/api/resources/billing/types/ListMetersResponse.d.ts +0 -1
  32. package/dist/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +0 -1
  33. package/dist/api/resources/billing/types/ListProductPricesResponse.d.ts +0 -1
  34. package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +7 -0
  35. package/dist/api/resources/billing/types/SearchBillingPricesResponse.d.ts +0 -1
  36. package/dist/api/resources/billing/types/index.d.ts +2 -2
  37. package/dist/api/resources/checkout/client/Client.d.ts +59 -3
  38. package/dist/api/resources/checkout/types/CheckoutInternalResponse.d.ts +1 -1
  39. package/dist/api/resources/checkout/types/ManagePlanResponse.d.ts +9 -0
  40. package/dist/api/resources/checkout/types/PreviewManagePlanResponse.d.ts +9 -0
  41. package/dist/api/resources/checkout/types/index.d.ts +2 -0
  42. package/dist/api/resources/companies/client/Client.d.ts +132 -19
  43. package/dist/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.d.ts +15 -2
  44. package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +9 -1
  45. package/dist/api/resources/companies/client/requests/CountEntityKeyDefinitionsRequest.d.ts +6 -1
  46. package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +7 -1
  47. package/dist/api/resources/companies/client/requests/CountPlanTraitsRequest.d.ts +6 -1
  48. package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +7 -1
  49. package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +5 -1
  50. package/dist/api/resources/companies/client/requests/GetActiveDealsRequest.d.ts +3 -1
  51. package/dist/api/resources/companies/client/requests/GetEntityTraitValuesRequest.d.ts +4 -1
  52. package/dist/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.d.ts +15 -2
  53. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +9 -1
  54. package/dist/api/resources/companies/client/requests/ListCompanyMembershipsRequest.d.ts +6 -1
  55. package/dist/api/resources/companies/client/requests/ListEntityKeyDefinitionsRequest.d.ts +6 -1
  56. package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +7 -1
  57. package/dist/api/resources/companies/client/requests/ListPlanTraitsRequest.d.ts +6 -1
  58. package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +7 -1
  59. package/dist/api/resources/companies/client/requests/UpdatePlanTraitBulkRequestBody.d.ts +18 -0
  60. package/dist/api/resources/companies/client/requests/index.d.ts +1 -0
  61. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +3 -1
  62. package/dist/api/resources/companies/types/GetActiveCompanySubscriptionResponse.d.ts +0 -1
  63. package/dist/api/resources/companies/types/GetActiveDealsResponse.d.ts +0 -1
  64. package/dist/api/resources/companies/types/GetEntityTraitValuesResponse.d.ts +0 -1
  65. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +3 -1
  66. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +0 -1
  67. package/dist/api/resources/companies/types/ListCompaniesResponse.d.ts +0 -1
  68. package/dist/api/resources/companies/types/ListCompanyMembershipsResponse.d.ts +0 -1
  69. package/dist/api/resources/companies/types/ListEntityKeyDefinitionsResponse.d.ts +0 -1
  70. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponse.d.ts +0 -1
  71. package/dist/api/resources/companies/types/ListPlanTraitsResponse.d.ts +0 -1
  72. package/dist/api/resources/companies/types/ListUsersResponse.d.ts +0 -1
  73. package/dist/api/resources/companies/types/UpdatePlanTraitsBulkResponse.d.ts +9 -0
  74. package/dist/api/resources/companies/types/index.d.ts +1 -0
  75. package/dist/api/resources/components/client/Client.d.ts +17 -6
  76. package/dist/api/resources/components/client/requests/CountComponentsRequest.d.ts +5 -1
  77. package/dist/api/resources/components/client/requests/ListComponentsRequest.d.ts +5 -1
  78. package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +4 -1
  79. package/dist/api/resources/components/types/ListComponentsResponse.d.ts +0 -1
  80. package/dist/api/resources/credits/client/Client.d.ts +104 -12
  81. package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.d.ts +5 -1
  82. package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.d.ts +5 -1
  83. package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +6 -1
  84. package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.d.ts +7 -1
  85. package/dist/api/resources/credits/client/requests/CountCreditLedgerRequest.d.ts +33 -0
  86. package/dist/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +4 -0
  87. package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +5 -0
  88. package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +1 -1
  89. package/dist/api/resources/credits/client/requests/GetEnrichedCreditLedgerRequest.d.ts +33 -0
  90. package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.d.ts +5 -1
  91. package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +6 -1
  92. package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.d.ts +7 -1
  93. package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.d.ts +7 -1
  94. package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.d.ts +5 -1
  95. package/dist/api/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +1 -0
  96. package/dist/api/resources/credits/client/requests/index.d.ts +2 -0
  97. package/dist/api/resources/credits/types/CountCreditLedgerParams.d.ts +19 -0
  98. package/dist/api/resources/credits/types/CountCreditLedgerRequestPeriod.d.ts +10 -0
  99. package/dist/api/resources/credits/types/CountCreditLedgerResponse.d.ts +9 -0
  100. package/dist/api/resources/credits/types/CountCreditLedgerResponseParamsPeriod.d.ts +10 -0
  101. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyExpiryType.d.ts +11 -0
  102. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyExpiryUnit.d.ts +8 -0
  103. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetType.d.ts +8 -0
  104. package/dist/api/resources/credits/types/CreateCompanyCreditGrantExpiryType.d.ts +11 -0
  105. package/dist/api/resources/credits/types/CreateCompanyCreditGrantExpiryUnit.d.ts +8 -0
  106. package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +5 -2
  107. package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryUnit.d.ts +8 -0
  108. package/dist/api/resources/credits/types/GetEnrichedCreditLedgerParams.d.ts +19 -0
  109. package/dist/api/resources/credits/types/GetEnrichedCreditLedgerRequestPeriod.d.ts +10 -0
  110. package/dist/api/resources/credits/types/GetEnrichedCreditLedgerResponse.d.ts +9 -0
  111. package/dist/api/resources/credits/types/GetEnrichedCreditLedgerResponseParamsPeriod.d.ts +10 -0
  112. package/dist/api/resources/credits/types/ListBillingCreditsResponse.d.ts +0 -1
  113. package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.d.ts +0 -1
  114. package/dist/api/resources/credits/types/ListCompanyGrantsResponse.d.ts +0 -1
  115. package/dist/api/resources/credits/types/ListCreditBundlesResponse.d.ts +0 -1
  116. package/dist/api/resources/credits/types/ListGrantsForCreditResponse.d.ts +0 -1
  117. package/dist/api/resources/credits/types/UpdateCreditBundleDetailsRequestBodyExpiryType.d.ts +5 -2
  118. package/dist/api/resources/credits/types/UpdateCreditBundleDetailsRequestBodyExpiryUnit.d.ts +8 -0
  119. package/dist/api/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +2 -1
  120. package/dist/api/resources/credits/types/index.d.ts +15 -0
  121. package/dist/api/resources/crm/client/Client.d.ts +8 -4
  122. package/dist/api/resources/crm/client/requests/ListCrmProductsRequest.d.ts +5 -1
  123. package/dist/api/resources/crm/types/ListCrmProductsResponse.d.ts +0 -1
  124. package/dist/api/resources/dataexports/client/Client.d.ts +3 -3
  125. package/dist/api/resources/entitlements/client/Client.d.ts +65 -13
  126. package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +8 -1
  127. package/dist/api/resources/entitlements/client/requests/CountFeatureCompaniesRequest.d.ts +4 -1
  128. package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +7 -1
  129. package/dist/api/resources/entitlements/client/requests/CountFeatureUsersRequest.d.ts +4 -1
  130. package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +8 -1
  131. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
  132. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  133. package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +8 -1
  134. package/dist/api/resources/entitlements/client/requests/ListFeatureCompaniesRequest.d.ts +4 -1
  135. package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +7 -1
  136. package/dist/api/resources/entitlements/client/requests/ListFeatureUsersRequest.d.ts +4 -1
  137. package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +8 -1
  138. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
  139. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
  140. package/dist/api/resources/entitlements/types/ListCompanyOverridesResponse.d.ts +0 -1
  141. package/dist/api/resources/entitlements/types/ListFeatureCompaniesResponse.d.ts +0 -1
  142. package/dist/api/resources/entitlements/types/ListFeatureUsageResponse.d.ts +0 -1
  143. package/dist/api/resources/entitlements/types/ListFeatureUsersResponse.d.ts +0 -1
  144. package/dist/api/resources/entitlements/types/ListPlanEntitlementsResponse.d.ts +0 -1
  145. package/dist/api/resources/events/client/Client.d.ts +16 -5
  146. package/dist/api/resources/events/client/requests/GetEventSummariesRequest.d.ts +5 -1
  147. package/dist/api/resources/events/client/requests/ListEventsRequest.d.ts +8 -1
  148. package/dist/api/resources/events/types/GetEventSummariesResponse.d.ts +0 -1
  149. package/dist/api/resources/events/types/ListEventsResponse.d.ts +0 -1
  150. package/dist/api/resources/features/client/Client.d.ts +31 -7
  151. package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +11 -1
  152. package/dist/api/resources/features/client/requests/CountFlagsRequest.d.ts +9 -1
  153. package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +11 -1
  154. package/dist/api/resources/features/client/requests/ListFlagsRequest.d.ts +9 -1
  155. package/dist/api/resources/features/types/CountFeaturesParams.d.ts +1 -0
  156. package/dist/api/resources/features/types/CountFlagsParams.d.ts +1 -0
  157. package/dist/api/resources/features/types/ListAudienceCompaniesResponse.d.ts +0 -1
  158. package/dist/api/resources/features/types/ListAudienceUsersResponse.d.ts +0 -1
  159. package/dist/api/resources/features/types/ListFeaturesParams.d.ts +1 -0
  160. package/dist/api/resources/features/types/ListFeaturesResponse.d.ts +0 -1
  161. package/dist/api/resources/features/types/ListFlagsParams.d.ts +1 -0
  162. package/dist/api/resources/features/types/ListFlagsResponse.d.ts +0 -1
  163. package/dist/api/resources/plangroups/client/Client.d.ts +21 -5
  164. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +22 -1
  165. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +22 -1
  166. package/dist/api/resources/plans/client/Client.d.ts +50 -5
  167. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +31 -1
  168. package/dist/api/resources/plans/client/requests/ListPlanIssuesRequest.d.ts +12 -0
  169. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +31 -1
  170. package/dist/api/resources/plans/client/requests/index.d.ts +1 -0
  171. package/dist/api/resources/plans/types/CountPlansParams.d.ts +8 -0
  172. package/dist/api/resources/plans/types/ListPlanIssuesParams.d.ts +9 -0
  173. package/dist/api/resources/plans/types/ListPlanIssuesResponse.d.ts +9 -0
  174. package/dist/api/resources/plans/types/ListPlansParams.d.ts +8 -0
  175. package/dist/api/resources/plans/types/ListPlansResponse.d.ts +0 -1
  176. package/dist/api/resources/plans/types/index.d.ts +2 -0
  177. package/dist/api/resources/webhooks/client/Client.d.ts +25 -7
  178. package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +6 -1
  179. package/dist/api/resources/webhooks/client/requests/CountWebhooksRequest.d.ts +5 -1
  180. package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +6 -1
  181. package/dist/api/resources/webhooks/client/requests/ListWebhooksRequest.d.ts +5 -1
  182. package/dist/api/resources/webhooks/types/ListWebhookEventsResponse.d.ts +0 -1
  183. package/dist/api/resources/webhooks/types/ListWebhooksResponse.d.ts +0 -1
  184. package/dist/api/types/ApiKeyCreateResponseData.d.ts +0 -3
  185. package/dist/api/types/ApiKeyRequestResponseData.d.ts +0 -3
  186. package/dist/api/types/ApiKeyResponseData.d.ts +0 -3
  187. package/dist/api/types/BillingCreditBundleResponseData.d.ts +1 -0
  188. package/dist/api/types/BillingCreditBundleView.d.ts +1 -0
  189. package/dist/api/types/BillingCreditLedgerResponseData.d.ts +11 -0
  190. package/dist/api/types/BillingCustomerResponseData.d.ts +0 -3
  191. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +7 -0
  192. package/dist/api/types/BillingProductDetailResponseData.d.ts +2 -1
  193. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +2 -0
  194. package/dist/api/types/BillingProductPlanResponseData.d.ts +0 -3
  195. package/dist/api/types/BillingProductPricing.d.ts +2 -0
  196. package/dist/api/types/BillingProductResponseData.d.ts +2 -1
  197. package/dist/api/types/BillingSubscriptionView.d.ts +0 -3
  198. package/dist/api/types/CheckFlagResponseData.d.ts +0 -3
  199. package/dist/api/types/CheckFlagsResponseData.d.ts +0 -3
  200. package/dist/api/types/CheckoutDataResponseData.d.ts +0 -3
  201. package/dist/api/types/CheckoutSettingsResponseData.d.ts +8 -0
  202. package/dist/api/types/CheckoutSubscription.d.ts +25 -0
  203. package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
  204. package/dist/api/types/CompanyLedgerResponseData.d.ts +8 -0
  205. package/dist/api/types/CompanyOverrideNoteResponseData.d.ts +11 -0
  206. package/dist/api/types/CompanyOverrideResponseData.d.ts +1 -0
  207. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
  208. package/dist/api/types/CompanyViewWithFeatureUsageResponseData.d.ts +1 -0
  209. package/dist/api/types/ComponentCheckoutSettings.d.ts +9 -0
  210. package/dist/api/types/ComponentHydrateResponseData.d.ts +4 -0
  211. package/dist/api/types/ComponentPreviewResponseData.d.ts +4 -3
  212. package/dist/api/types/ComponentResponseData.d.ts +0 -3
  213. package/dist/api/types/Condition.d.ts +21 -0
  214. package/dist/api/types/ConditionGroup.d.ts +7 -0
  215. package/dist/api/types/CountResponse.d.ts +2 -4
  216. package/dist/api/types/CreditCompanyGrantView.d.ts +3 -0
  217. package/dist/api/types/CreditGrantDetail.d.ts +10 -0
  218. package/dist/api/types/CreditGrantDetailGrantReason.d.ts +9 -0
  219. package/dist/api/types/CreditLedgerEnrichedEntryResponseData.d.ts +27 -0
  220. package/dist/api/types/CreditUsage.d.ts +14 -0
  221. package/dist/api/types/CreditUsageResponseData.d.ts +14 -0
  222. package/dist/api/types/CrmDealResponseData.d.ts +0 -3
  223. package/dist/api/types/CrmLineItemResponseData.d.ts +0 -3
  224. package/dist/api/types/CrmProductResponseData.d.ts +0 -3
  225. package/dist/api/types/DataExportResponseData.d.ts +0 -3
  226. package/dist/api/types/EnvironmentDetailResponseData.d.ts +0 -3
  227. package/dist/api/types/EnvironmentResponseData.d.ts +0 -3
  228. package/dist/api/types/FeatureCompanyResponseData.d.ts +34 -1
  229. package/dist/api/types/FeatureCompanyResponseDataCreditGrantReason.d.ts +12 -0
  230. package/dist/api/types/FeatureCompanyUserResponseDataAllocationType.d.ts +2 -1
  231. package/dist/api/types/FeatureLedgerResponseData.d.ts +9 -0
  232. package/dist/api/types/FeatureUsageDataResponseData.d.ts +8 -0
  233. package/dist/api/types/FeatureUsageResponseData.d.ts +25 -0
  234. package/dist/api/types/FeatureUsageResponseDataCreditGrantReason.d.ts +12 -0
  235. package/dist/api/types/IssueTemporaryAccessTokenResponseData.d.ts +0 -3
  236. package/dist/api/types/ManagePlanPreviewResponseResponseData.d.ts +7 -0
  237. package/dist/api/types/ManagePlanRequest.d.ts +15 -0
  238. package/dist/api/types/ManagePlanResponseResponseData.d.ts +8 -0
  239. package/dist/api/types/PlanAudienceDetailResponseData.d.ts +0 -3
  240. package/dist/api/types/PlanCreditGrantView.d.ts +4 -0
  241. package/dist/api/types/PlanDetailResponseData.d.ts +1 -0
  242. package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -0
  243. package/dist/api/types/PlanGroupDetailResponseData.d.ts +16 -3
  244. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +1 -0
  245. package/dist/api/types/PlanGroupResponseData.d.ts +11 -3
  246. package/dist/api/types/PlanIssueResponseData.d.ts +9 -0
  247. package/dist/api/types/PlanSelection.d.ts +7 -0
  248. package/dist/api/types/PlanTraitResponseData.d.ts +0 -3
  249. package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +0 -3
  250. package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +3 -0
  251. package/dist/api/types/RawEventBatchResponseData.d.ts +0 -3
  252. package/dist/api/types/Rule.d.ts +16 -0
  253. package/dist/api/types/RulesDetailResponseData.d.ts +0 -3
  254. package/dist/api/types/SegmentStatusResp.d.ts +0 -3
  255. package/dist/api/types/TraitDefinition.d.ts +8 -0
  256. package/dist/api/types/UpdatePlanTraitTraitRequestBody.d.ts +7 -0
  257. package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
  258. package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +1 -0
  259. package/dist/api/types/index.d.ts +24 -0
  260. package/dist/index.js +3 -3
  261. package/dist/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +0 -1
  262. package/dist/serialization/resources/billing/client/requests/{CreateBillingSubscriptionsRequestBody.d.ts → CreateBillingSubscriptionRequestBody.d.ts} +5 -4
  263. package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -1
  264. package/dist/serialization/resources/billing/types/CreateBillingSubscriptionRequestBodyTrialEndSetting.d.ts +10 -0
  265. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +4 -0
  266. package/dist/serialization/resources/billing/types/index.d.ts +2 -2
  267. package/dist/serialization/resources/checkout/types/CheckoutInternalResponse.d.ts +2 -2
  268. package/dist/serialization/resources/checkout/types/ManagePlanResponse.d.ts +14 -0
  269. package/dist/serialization/resources/checkout/types/PreviewManagePlanResponse.d.ts +14 -0
  270. package/dist/serialization/resources/checkout/types/index.d.ts +2 -0
  271. package/dist/serialization/resources/companies/client/requests/UpdatePlanTraitBulkRequestBody.d.ts +14 -0
  272. package/dist/serialization/resources/companies/client/requests/index.d.ts +1 -0
  273. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +1 -0
  274. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +1 -0
  275. package/dist/serialization/resources/companies/types/UpdatePlanTraitsBulkResponse.d.ts +14 -0
  276. package/dist/serialization/resources/companies/types/index.d.ts +1 -0
  277. package/dist/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +7 -0
  278. package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +6 -0
  279. package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -1
  280. package/dist/serialization/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +2 -0
  281. package/dist/serialization/resources/credits/types/CountCreditLedgerParams.d.ts +20 -0
  282. package/dist/serialization/resources/credits/types/CountCreditLedgerRequestPeriod.d.ts +10 -0
  283. package/dist/serialization/resources/credits/types/CountCreditLedgerResponse.d.ts +15 -0
  284. package/dist/serialization/resources/credits/types/CountCreditLedgerResponseParamsPeriod.d.ts +10 -0
  285. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyExpiryType.d.ts +10 -0
  286. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyExpiryUnit.d.ts +10 -0
  287. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetType.d.ts +10 -0
  288. package/dist/serialization/resources/credits/types/CreateCompanyCreditGrantExpiryType.d.ts +10 -0
  289. package/dist/serialization/resources/credits/types/CreateCompanyCreditGrantExpiryUnit.d.ts +10 -0
  290. package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +1 -1
  291. package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryUnit.d.ts +10 -0
  292. package/dist/serialization/resources/credits/types/GetEnrichedCreditLedgerParams.d.ts +20 -0
  293. package/dist/serialization/resources/credits/types/GetEnrichedCreditLedgerRequestPeriod.d.ts +10 -0
  294. package/dist/serialization/resources/credits/types/GetEnrichedCreditLedgerResponse.d.ts +15 -0
  295. package/dist/serialization/resources/credits/types/GetEnrichedCreditLedgerResponseParamsPeriod.d.ts +10 -0
  296. package/dist/serialization/resources/credits/types/UpdateCreditBundleDetailsRequestBodyExpiryType.d.ts +1 -1
  297. package/dist/serialization/resources/credits/types/UpdateCreditBundleDetailsRequestBodyExpiryUnit.d.ts +10 -0
  298. package/dist/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +1 -1
  299. package/dist/serialization/resources/credits/types/index.d.ts +15 -0
  300. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
  301. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  302. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
  303. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
  304. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +13 -0
  305. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +13 -0
  306. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +4 -0
  307. package/dist/serialization/resources/plans/types/ListPlanIssuesParams.d.ts +12 -0
  308. package/dist/serialization/resources/plans/types/ListPlanIssuesResponse.d.ts +15 -0
  309. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +4 -0
  310. package/dist/serialization/resources/plans/types/index.d.ts +2 -0
  311. package/dist/serialization/types/BillingCreditBundleResponseData.d.ts +1 -0
  312. package/dist/serialization/types/BillingCreditBundleView.d.ts +1 -0
  313. package/dist/serialization/types/BillingCreditLedgerResponseData.d.ts +17 -0
  314. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +7 -0
  315. package/dist/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
  316. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -0
  317. package/dist/serialization/types/BillingProductPricing.d.ts +2 -0
  318. package/dist/serialization/types/BillingProductResponseData.d.ts +1 -1
  319. package/dist/serialization/types/CheckoutSettingsResponseData.d.ts +14 -0
  320. package/dist/serialization/types/CheckoutSubscription.d.ts +31 -0
  321. package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -0
  322. package/dist/serialization/types/CompanyLedgerResponseData.d.ts +14 -0
  323. package/dist/serialization/types/CompanyOverrideNoteResponseData.d.ts +17 -0
  324. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +2 -0
  325. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
  326. package/dist/serialization/types/CompanyViewWithFeatureUsageResponseData.d.ts +2 -0
  327. package/dist/serialization/types/ComponentCheckoutSettings.d.ts +15 -0
  328. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +5 -0
  329. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +5 -0
  330. package/dist/serialization/types/Condition.d.ts +27 -0
  331. package/dist/serialization/types/ConditionGroup.d.ts +13 -0
  332. package/dist/serialization/types/CountResponse.d.ts +1 -1
  333. package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -0
  334. package/dist/serialization/types/CreditGrantDetail.d.ts +16 -0
  335. package/dist/serialization/types/CreditGrantDetailGrantReason.d.ts +10 -0
  336. package/dist/serialization/types/CreditLedgerEnrichedEntryResponseData.d.ts +35 -0
  337. package/dist/serialization/types/CreditUsage.d.ts +20 -0
  338. package/dist/serialization/types/CreditUsageResponseData.d.ts +20 -0
  339. package/dist/serialization/types/FeatureCompanyResponseData.d.ts +28 -0
  340. package/dist/serialization/types/FeatureCompanyResponseDataCreditGrantReason.d.ts +10 -0
  341. package/dist/serialization/types/FeatureCompanyUserResponseDataAllocationType.d.ts +1 -1
  342. package/dist/serialization/types/FeatureLedgerResponseData.d.ts +15 -0
  343. package/dist/serialization/types/FeatureUsageDataResponseData.d.ts +9 -0
  344. package/dist/serialization/types/FeatureUsageResponseData.d.ts +17 -0
  345. package/dist/serialization/types/FeatureUsageResponseDataCreditGrantReason.d.ts +10 -0
  346. package/dist/serialization/types/ManagePlanPreviewResponseResponseData.d.ts +13 -0
  347. package/dist/serialization/types/ManagePlanRequest.d.ts +23 -0
  348. package/dist/serialization/types/ManagePlanResponseResponseData.d.ts +14 -0
  349. package/dist/serialization/types/PlanCreditGrantView.d.ts +4 -0
  350. package/dist/serialization/types/PlanDetailResponseData.d.ts +2 -0
  351. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
  352. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +18 -0
  353. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
  354. package/dist/serialization/types/PlanGroupResponseData.d.ts +12 -0
  355. package/dist/serialization/types/PlanIssueResponseData.d.ts +15 -0
  356. package/dist/serialization/types/PlanSelection.d.ts +13 -0
  357. package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +3 -0
  358. package/dist/serialization/types/Rule.d.ts +23 -0
  359. package/dist/serialization/types/TraitDefinition.d.ts +14 -0
  360. package/dist/serialization/types/UpdatePlanTraitTraitRequestBody.d.ts +13 -0
  361. package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
  362. package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +1 -0
  363. package/dist/serialization/types/index.d.ts +24 -0
  364. package/package.json +1 -1
  365. package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +0 -8
  366. package/dist/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +0 -10
@@ -3,7 +3,11 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {}
6
+ * {
7
+ * q: "q",
8
+ * limit: 1,
9
+ * offset: 1
10
+ * }
7
11
  */
8
12
  export interface ListWebhooksRequest {
9
13
  q?: string;
@@ -3,7 +3,6 @@
3
3
  */
4
4
  import * as Schematic from "../../../index";
5
5
  export interface ListWebhookEventsResponse {
6
- /** The returned resources */
7
6
  data: Schematic.WebhookEventDetailResponseData[];
8
7
  /** Input parameters */
9
8
  params: Schematic.ListWebhookEventsParams;
@@ -3,7 +3,6 @@
3
3
  */
4
4
  import * as Schematic from "../../../index";
5
5
  export interface ListWebhooksResponse {
6
- /** The returned resources */
7
6
  data: Schematic.WebhookResponseData[];
8
7
  /** Input parameters */
9
8
  params: Schematic.ListWebhooksParams;
@@ -1,9 +1,6 @@
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 ApiKeyCreateResponseData {
8
5
  createdAt: Date;
9
6
  description?: string;
@@ -1,9 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * The returned resource
6
- */
7
4
  export interface ApiKeyRequestResponseData {
8
5
  apiKeyId: string;
9
6
  endedAt?: Date;
@@ -1,9 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * The updated resource
6
- */
7
4
  export interface ApiKeyResponseData {
8
5
  createdAt: Date;
9
6
  description?: string;
@@ -13,6 +13,7 @@ export interface BillingCreditBundleResponseData {
13
13
  expiryType: string;
14
14
  expiryUnit: string;
15
15
  expiryUnitCount?: number;
16
+ hasGrants: boolean;
16
17
  id: string;
17
18
  name: string;
18
19
  pluralName?: string;
@@ -13,6 +13,7 @@ export interface BillingCreditBundleView {
13
13
  expiryType: string;
14
14
  expiryUnit: string;
15
15
  expiryUnitCount?: number;
16
+ hasGrants: boolean;
16
17
  id: string;
17
18
  name: string;
18
19
  pluralName?: string;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface BillingCreditLedgerResponseData {
5
+ description?: string;
6
+ icon?: string;
7
+ id: string;
8
+ name: string;
9
+ pluralName?: string;
10
+ singularName?: string;
11
+ }
@@ -1,9 +1,6 @@
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 BillingCustomerResponseData {
8
5
  companyId?: string;
9
6
  deletedAt?: Date;
@@ -5,10 +5,17 @@ export interface BillingPlanCreditGrantResponseData {
5
5
  createdAt: Date;
6
6
  creditAmount: number;
7
7
  creditId: string;
8
+ creditName: string;
9
+ creditPluralName?: string;
10
+ creditSingularName?: string;
11
+ expiryType?: string;
12
+ expiryUnit?: string;
13
+ expiryUnitCount?: number;
8
14
  id: string;
9
15
  planId: string;
10
16
  planName: string;
11
17
  resetCadence: string;
12
18
  resetStart: string;
19
+ resetType?: string;
13
20
  updatedAt: Date;
14
21
  }
@@ -5,7 +5,8 @@ import * as Schematic from "../index";
5
5
  export interface BillingProductDetailResponseData {
6
6
  accountId: string;
7
7
  createdAt: Date;
8
- currency: string;
8
+ /** Deprecated; currencies are associated with prices, not products */
9
+ currency?: string;
9
10
  environmentId: string;
10
11
  externalId: string;
11
12
  isActive: boolean;
@@ -4,6 +4,7 @@
4
4
  import * as Schematic from "../index";
5
5
  export interface BillingProductForSubscriptionResponseData {
6
6
  billingScheme: string;
7
+ billingThreshold?: number;
7
8
  createdAt: Date;
8
9
  currency: string;
9
10
  environmentId: string;
@@ -20,6 +21,7 @@ export interface BillingProductForSubscriptionResponseData {
20
21
  priceTier: Schematic.BillingProductPriceTierResponseData[];
21
22
  quantity: number;
22
23
  subscriptionId: string;
24
+ subscriptionItemExternalId?: string;
23
25
  updatedAt: Date;
24
26
  usageType: string;
25
27
  }
@@ -1,9 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * The updated resource
6
- */
7
4
  export interface BillingProductPlanResponseData {
8
5
  accountId: string;
9
6
  billingProductId: string;
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as Schematic from "../index";
5
5
  export interface BillingProductPricing {
6
+ billingThreshold?: number;
6
7
  currency: string;
7
8
  interval: string;
8
9
  meterId?: string;
@@ -12,5 +13,6 @@ export interface BillingProductPricing {
12
13
  priceExternalId: string;
13
14
  productExternalId: string;
14
15
  quantity: number;
16
+ subscriptionItemExternalId?: string;
15
17
  usageType: Schematic.BillingProductPricingUsageType;
16
18
  }
@@ -4,7 +4,8 @@
4
4
  export interface BillingProductResponseData {
5
5
  accountId: string;
6
6
  createdAt: Date;
7
- currency: string;
7
+ /** Deprecated; currencies are associated with prices, not products */
8
+ currency?: string;
8
9
  environmentId: string;
9
10
  externalId: string;
10
11
  isActive: boolean;
@@ -2,9 +2,6 @@
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 updated resource
7
- */
8
5
  export interface BillingSubscriptionView {
9
6
  cancelAt?: number;
10
7
  cancelAtPeriodEnd: boolean;
@@ -1,9 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * The returned resource
6
- */
7
4
  export interface CheckFlagResponseData {
8
5
  /** If company keys were provided and matched a company, its ID */
9
6
  companyId?: string;
@@ -2,9 +2,6 @@
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 created resource
7
- */
8
5
  export interface CheckFlagsResponseData {
9
6
  flags: Schematic.CheckFlagResponseData[];
10
7
  }
@@ -2,9 +2,6 @@
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 requested resource
7
- */
8
5
  export interface CheckoutDataResponseData {
9
6
  activeAddOns: Schematic.PlanDetailResponseData[];
10
7
  activePlan?: Schematic.PlanDetailResponseData;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CheckoutSettingsResponseData {
5
+ collectAddress: boolean;
6
+ collectEmail: boolean;
7
+ collectPhone: boolean;
8
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CheckoutSubscription {
5
+ cancelAt?: number;
6
+ cancelAtPeriodEnd: boolean;
7
+ companyId?: string;
8
+ confirmPaymentIntentClientSecret?: string;
9
+ confirmPaymentIntentId?: string;
10
+ createdAt: Date;
11
+ currency: string;
12
+ customerExternalId: string;
13
+ defaultPaymentMethodId?: string;
14
+ expiredAt?: Date;
15
+ id: string;
16
+ interval: string;
17
+ metadata?: Record<string, unknown>;
18
+ periodEnd: number;
19
+ periodStart: number;
20
+ status: string;
21
+ subscriptionExternalId: string;
22
+ totalPrice: number;
23
+ trialEnd?: number;
24
+ trialEndSetting?: string;
25
+ }
@@ -20,6 +20,7 @@ export interface CompanyDetailResponseData {
20
20
  paymentMethods: Schematic.PaymentMethodResponseData[];
21
21
  plan?: Schematic.CompanyPlanWithBillingSubView;
22
22
  plans: Schematic.GenericPreviewObject[];
23
+ rules: Schematic.Rule[];
23
24
  /** A map of trait names to trait values */
24
25
  traits?: Record<string, unknown>;
25
26
  updatedAt: Date;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CompanyLedgerResponseData {
5
+ id: string;
6
+ logoUrl?: string;
7
+ name: string;
8
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CompanyOverrideNoteResponseData {
5
+ createdAt: Date;
6
+ externalUserId: string;
7
+ externalUserName: string;
8
+ id: string;
9
+ note: string;
10
+ updatedAt: Date;
11
+ }
@@ -14,6 +14,7 @@ export interface CompanyOverrideResponseData {
14
14
  id: string;
15
15
  metricPeriod?: string;
16
16
  metricPeriodMonthReset?: string;
17
+ notes: Schematic.CompanyOverrideNoteResponseData[];
17
18
  ruleId?: string;
18
19
  ruleIdUsageExceeded?: string;
19
20
  updatedAt: Date;
@@ -30,6 +30,7 @@ export interface CompanyPlanDetailResponseData {
30
30
  planType: string;
31
31
  trialDays?: number;
32
32
  updatedAt: Date;
33
+ usageViolations: Schematic.FeatureUsageResponseData[];
33
34
  valid: boolean;
34
35
  yearlyPrice?: Schematic.BillingPriceResponseData;
35
36
  }
@@ -21,6 +21,7 @@ export interface CompanyViewWithFeatureUsageResponseData {
21
21
  paymentMethods: Schematic.PaymentMethodResponseData[];
22
22
  plan?: Schematic.CompanyPlanWithBillingSubView;
23
23
  plans: Schematic.GenericPreviewObject[];
24
+ rules: Schematic.Rule[];
24
25
  /** A map of trait names to trait values */
25
26
  traits?: Record<string, unknown>;
26
27
  updatedAt: Date;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ComponentCheckoutSettings {
5
+ collectAddress: boolean;
6
+ collectEmail: boolean;
7
+ collectPhone: boolean;
8
+ taxCollectionEnabled: boolean;
9
+ }
@@ -8,13 +8,17 @@ export interface ComponentHydrateResponseData {
8
8
  activeUsageBasedEntitlements: Schematic.UsageBasedEntitlementResponseData[];
9
9
  addOnCompatibilities: Schematic.CompatiblePlans[];
10
10
  capabilities?: Schematic.ComponentCapabilities;
11
+ checkoutSettings: Schematic.ComponentCheckoutSettings;
11
12
  company?: Schematic.CompanyDetailResponseData;
12
13
  component?: Schematic.ComponentResponseData;
13
14
  creditBundles: Schematic.BillingCreditBundleView[];
14
15
  creditGrants: Schematic.CreditCompanyGrantView[];
15
16
  defaultPlan?: Schematic.PlanDetailResponseData;
16
17
  featureUsage?: Schematic.FeatureUsageDetailResponseData;
18
+ postTrialPlan?: Schematic.PlanDetailResponseData;
19
+ showCredits: boolean;
17
20
  showPeriodToggle: boolean;
21
+ showZeroPriceAsFree: boolean;
18
22
  stripeEmbed?: Schematic.StripeEmbedInfo;
19
23
  subscription?: Schematic.CompanySubscriptionResponseData;
20
24
  trialPaymentMethodRequired?: boolean;
@@ -2,15 +2,13 @@
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 ComponentPreviewResponseData {
9
6
  activeAddOns: Schematic.CompanyPlanDetailResponseData[];
10
7
  activePlans: Schematic.CompanyPlanDetailResponseData[];
11
8
  activeUsageBasedEntitlements: Schematic.UsageBasedEntitlementResponseData[];
12
9
  addOnCompatibilities: Schematic.CompatiblePlans[];
13
10
  capabilities?: Schematic.ComponentCapabilities;
11
+ checkoutSettings: Schematic.ComponentCheckoutSettings;
14
12
  company?: Schematic.CompanyDetailResponseData;
15
13
  component?: Schematic.ComponentResponseData;
16
14
  creditBundles: Schematic.BillingCreditBundleView[];
@@ -18,7 +16,10 @@ export interface ComponentPreviewResponseData {
18
16
  defaultPlan?: Schematic.PlanDetailResponseData;
19
17
  featureUsage?: Schematic.FeatureUsageDetailResponseData;
20
18
  invoices: Schematic.InvoiceResponseData[];
19
+ postTrialPlan?: Schematic.PlanDetailResponseData;
20
+ showCredits: boolean;
21
21
  showPeriodToggle: boolean;
22
+ showZeroPriceAsFree: boolean;
22
23
  stripeEmbed?: Schematic.StripeEmbedInfo;
23
24
  subscription?: Schematic.CompanySubscriptionResponseData;
24
25
  trialPaymentMethodRequired?: boolean;
@@ -1,9 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * The updated resource
6
- */
7
4
  export interface ComponentResponseData {
8
5
  ast?: Record<string, number>;
9
6
  createdAt: Date;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Schematic from "../index";
5
+ export interface Condition {
6
+ accountId: string;
7
+ comparisonTraitDefinition?: Schematic.TraitDefinition;
8
+ conditionType: string;
9
+ consumptionRate?: number;
10
+ creditId?: string;
11
+ environmentId: string;
12
+ eventSubtype?: string;
13
+ id: string;
14
+ metricPeriod?: string;
15
+ metricPeriodMonthReset?: string;
16
+ metricValue?: number;
17
+ operator: string;
18
+ resourceIds: string[];
19
+ traitDefinition?: Schematic.TraitDefinition;
20
+ traitValue: string;
21
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Schematic from "../index";
5
+ export interface ConditionGroup {
6
+ conditions: Schematic.Condition[];
7
+ }
@@ -1,9 +1,7 @@
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 CountResponse {
8
- count: number;
5
+ /** The number of resources */
6
+ count?: number;
9
7
  }
@@ -12,6 +12,9 @@ export interface CreditCompanyGrantView {
12
12
  creditIcon?: string;
13
13
  creditName: string;
14
14
  expiresAt?: Date;
15
+ expiryType?: string;
16
+ expiryUnit?: string;
17
+ expiryUnitCount?: number;
15
18
  grantReason: string;
16
19
  id: string;
17
20
  planId?: string;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Schematic from "../index";
5
+ export interface CreditGrantDetail {
6
+ creditTypeIcon?: string;
7
+ expiresAt?: Date;
8
+ grantReason: Schematic.CreditGrantDetailGrantReason;
9
+ quantity: number;
10
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type CreditGrantDetailGrantReason = "free" | "plan" | "purchased";
5
+ export declare const CreditGrantDetailGrantReason: {
6
+ readonly Free: "free";
7
+ readonly Plan: "plan";
8
+ readonly Purchased: "purchased";
9
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Schematic from "../index";
5
+ export interface CreditLedgerEnrichedEntryResponseData {
6
+ billingCreditId: string;
7
+ company?: Schematic.CompanyLedgerResponseData;
8
+ companyId: string;
9
+ credit?: Schematic.BillingCreditLedgerResponseData;
10
+ expiredGrantCount: number;
11
+ feature?: Schematic.FeatureLedgerResponseData;
12
+ featureId?: string;
13
+ firstTransactionAt: Date;
14
+ freeGrantCount: number;
15
+ grantCount: number;
16
+ lastTransactionAt: Date;
17
+ manuallyZeroedCount: number;
18
+ netChange: number;
19
+ planGrantCount: number;
20
+ purchasedGrantCount: number;
21
+ timeBucket: Date;
22
+ totalConsumed: number;
23
+ totalGranted: number;
24
+ transactionCount: number;
25
+ usageCount: number;
26
+ zeroedOutCount: number;
27
+ }
@@ -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 CreditUsage {
6
+ creditConsumptionRate?: number;
7
+ creditGrantCounts?: Record<string, number>;
8
+ creditGrantDetails?: Schematic.CreditGrantDetail[];
9
+ creditRemaining?: number;
10
+ creditTotal?: number;
11
+ creditTypeIcon?: string;
12
+ creditTypeName?: string;
13
+ creditUsed?: number;
14
+ }
@@ -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 CreditUsageResponseData {
6
+ creditConsumptionRate?: number;
7
+ creditGrantCounts?: Record<string, number>;
8
+ creditGrantDetails: Schematic.CreditGrantDetail[];
9
+ creditRemaining?: number;
10
+ creditTotal?: number;
11
+ creditTypeIcon?: string;
12
+ creditTypeName?: string;
13
+ creditUsed?: number;
14
+ }
@@ -1,9 +1,6 @@
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 CrmDealResponseData {
8
5
  accountId: string;
9
6
  arr: string;
@@ -1,9 +1,6 @@
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 CrmLineItemResponseData {
8
5
  accountId: string;
9
6
  createdAt: Date;
@@ -1,9 +1,6 @@
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 CrmProductResponseData {
8
5
  accountId: string;
9
6
  createdAt: Date;
@@ -1,9 +1,6 @@
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 DataExportResponseData {
8
5
  accountId: string;
9
6
  createdAt: Date;
@@ -2,9 +2,6 @@
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 created resource
7
- */
8
5
  export interface EnvironmentDetailResponseData {
9
6
  apiKeys: Schematic.ApiKeyResponseData[];
10
7
  createdAt: Date;
@@ -1,9 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * The updated resource
6
- */
7
4
  export interface EnvironmentResponseData {
8
5
  createdAt: Date;
9
6
  environmentType: string;
@@ -10,17 +10,50 @@ export interface FeatureCompanyResponseData {
10
10
  /** The type of allocation that is being used. */
11
11
  allocationType: Schematic.FeatureCompanyResponseDataAllocationType;
12
12
  company?: Schematic.CompanyDetailResponseData;
13
+ companyOverride?: Schematic.CompanyOverrideResponseData;
14
+ /** The rate at which credits are consumed per unit of usage */
15
+ creditConsumptionRate?: number;
16
+ creditGrantCounts?: Record<string, number>;
17
+ creditGrantDetails?: Schematic.CreditGrantDetail[];
18
+ /** Reason for the credit grant */
19
+ creditGrantReason?: Schematic.FeatureCompanyResponseDataCreditGrantReason;
20
+ creditRemaining?: number;
21
+ creditTotal?: number;
22
+ /** Icon identifier for the credit type */
23
+ creditTypeIcon?: string;
24
+ creditUsage?: Schematic.CreditUsage;
25
+ creditUsed?: number;
26
+ /** Effective limit for usage calculations. For overage pricing, this is the soft limit where overage charges begin. For tiered pricing, this is the first tier boundary. For other pricing models, this is the base allocation. Used to calculate usage percentages and determine access thresholds. */
27
+ effectiveLimit?: number;
28
+ /** Per-unit price for current usage scenario */
29
+ effectivePrice?: number;
13
30
  entitlementExpirationDate?: Date;
14
31
  entitlementId: string;
32
+ /** Source of the entitlement (plan or company_override) */
33
+ entitlementSource?: string;
15
34
  entitlementType: string;
16
35
  feature?: Schematic.FeatureDetailResponseData;
17
- /** The time at which the metric will resets. */
36
+ /** Whether a valid allocation exists */
37
+ hasValidAllocation?: boolean;
38
+ /** Whether this is an unlimited allocation */
39
+ isUnlimited?: boolean;
40
+ /** The time at which the metric will reset. */
18
41
  metricResetAt?: Date;
19
42
  /** If the period is current_month, when the month resets. */
20
43
  monthReset?: string;
44
+ monthlyUsageBasedPrice?: Schematic.BillingPriceView;
45
+ /** Amount of usage exceeding soft limit (overage pricing only) */
46
+ overuse?: number;
47
+ /** Percentage of allocation consumed (0-100+) */
48
+ percentUsed?: number;
21
49
  /** The period over which usage is measured. */
22
50
  period?: string;
23
51
  plan?: Schematic.PlanResponseData;
52
+ planEntitlement?: Schematic.PlanEntitlementResponseData;
53
+ priceBehavior?: string;
54
+ /** The soft limit for the feature usage. Available only for overage price behavior */
55
+ softLimit?: number;
24
56
  /** The amount of usage that has been consumed; a null value indicates that usage is not being measured. */
25
57
  usage?: number;
58
+ yearlyUsageBasedPrice?: Schematic.BillingPriceView;
26
59
  }