@schematichq/schematic-typescript-node 1.4.4 → 1.4.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 (359) hide show
  1. package/LICENSE +1 -1
  2. package/dist/BaseClient.d.ts +1 -1
  3. package/dist/Client.d.ts +14 -0
  4. package/dist/api/resources/accesstokens/exports.d.ts +2 -0
  5. package/dist/api/resources/accounts/client/Client.d.ts +43 -10
  6. package/dist/api/resources/accounts/client/requests/CountApiKeysRequest.d.ts +2 -2
  7. package/dist/api/resources/accounts/client/requests/CountAuditLogsRequest.d.ts +2 -2
  8. package/dist/api/resources/accounts/client/requests/ListAccountMembersRequest.d.ts +17 -0
  9. package/dist/api/resources/accounts/client/requests/ListApiKeysRequest.d.ts +2 -2
  10. package/dist/api/resources/accounts/client/requests/ListAuditLogsRequest.d.ts +2 -2
  11. package/dist/api/resources/accounts/client/requests/ListEnvironmentsRequest.d.ts +2 -2
  12. package/dist/api/resources/accounts/client/requests/index.d.ts +1 -0
  13. package/dist/api/resources/accounts/exports.d.ts +2 -0
  14. package/dist/api/resources/accounts/types/GetAccountMemberResponse.d.ts +6 -0
  15. package/dist/api/resources/accounts/types/ListAccountMembersParams.d.ts +12 -0
  16. package/dist/api/resources/accounts/types/ListAccountMembersResponse.d.ts +6 -0
  17. package/dist/api/resources/accounts/types/index.d.ts +3 -0
  18. package/dist/api/resources/billing/client/Client.d.ts +42 -40
  19. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +3 -3
  20. package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +3 -3
  21. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -1
  22. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +4 -3
  23. package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.d.ts +4 -4
  24. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +4 -4
  25. package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +2 -0
  26. package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +7 -4
  27. package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +7 -4
  28. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +3 -3
  29. package/dist/api/resources/billing/client/requests/ListCouponsRequest.d.ts +2 -2
  30. package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +3 -3
  31. package/dist/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +2 -2
  32. package/dist/api/resources/billing/client/requests/ListMetersRequest.d.ts +2 -2
  33. package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +2 -2
  34. package/dist/api/resources/billing/exports.d.ts +2 -0
  35. package/dist/api/resources/billing/types/ListBillingPricesParams.d.ts +2 -0
  36. package/dist/api/resources/billing/types/ListBillingProductPricesParams.d.ts +2 -0
  37. package/dist/api/resources/checkout/client/Client.d.ts +8 -8
  38. package/dist/api/resources/checkout/exports.d.ts +2 -0
  39. package/dist/api/resources/companies/client/Client.d.ts +38 -30
  40. package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +5 -2
  41. package/dist/api/resources/companies/client/requests/CountEntityKeyDefinitionsRequest.d.ts +2 -2
  42. package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +2 -2
  43. package/dist/api/resources/companies/client/requests/CountPlanTraitsRequest.d.ts +2 -2
  44. package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +2 -2
  45. package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +2 -2
  46. package/dist/api/resources/companies/client/requests/GetEntityTraitValuesRequest.d.ts +2 -2
  47. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +5 -2
  48. package/dist/api/resources/companies/client/requests/ListCompanyMembershipsRequest.d.ts +2 -2
  49. package/dist/api/resources/companies/client/requests/ListEntityKeyDefinitionsRequest.d.ts +2 -2
  50. package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +2 -2
  51. package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +7 -6
  52. package/dist/api/resources/companies/client/requests/ListPlanTraitsRequest.d.ts +2 -2
  53. package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +2 -2
  54. package/dist/api/resources/companies/exports.d.ts +2 -0
  55. package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
  56. package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
  57. package/dist/api/resources/companies/types/ListPlanChangesParams.d.ts +3 -2
  58. package/dist/api/resources/components/client/Client.d.ts +4 -4
  59. package/dist/api/resources/components/client/requests/CountComponentsRequest.d.ts +2 -2
  60. package/dist/api/resources/components/client/requests/ListComponentsRequest.d.ts +2 -2
  61. package/dist/api/resources/components/exports.d.ts +2 -0
  62. package/dist/api/resources/componentspublic/exports.d.ts +2 -0
  63. package/dist/api/resources/credits/client/Client.d.ts +47 -33
  64. package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.d.ts +2 -2
  65. package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.d.ts +2 -2
  66. package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +2 -2
  67. package/dist/api/resources/credits/client/requests/CountCompanyGrantsRequest.d.ts +2 -2
  68. package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.d.ts +2 -2
  69. package/dist/api/resources/credits/client/requests/CountCreditEventLedgerRequest.d.ts +2 -2
  70. package/dist/api/resources/credits/client/requests/CountCreditLedgerRequest.d.ts +2 -2
  71. package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +1 -0
  72. package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +3 -2
  73. package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -1
  74. package/dist/api/resources/credits/client/requests/GetEnrichedCreditLedgerRequest.d.ts +2 -2
  75. package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.d.ts +2 -2
  76. package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +2 -2
  77. package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.d.ts +2 -2
  78. package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.d.ts +2 -2
  79. package/dist/api/resources/credits/client/requests/ListCreditEventLedgerRequest.d.ts +2 -2
  80. package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.d.ts +2 -2
  81. package/dist/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +1 -0
  82. package/dist/api/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +2 -1
  83. package/dist/api/resources/credits/exports.d.ts +2 -0
  84. package/dist/api/resources/credits/types/GetSingleBillingPlanCreditGrantResponse.d.ts +6 -0
  85. package/dist/api/resources/credits/types/index.d.ts +1 -0
  86. package/dist/api/resources/dataexports/exports.d.ts +2 -0
  87. package/dist/api/resources/entitlements/client/Client.d.ts +41 -20
  88. package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +2 -2
  89. package/dist/api/resources/entitlements/client/requests/CountFeatureCompaniesRequest.d.ts +2 -2
  90. package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -2
  91. package/dist/api/resources/entitlements/client/requests/CountFeatureUsersRequest.d.ts +2 -2
  92. package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +2 -2
  93. package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +44 -0
  94. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  95. package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +2 -2
  96. package/dist/api/resources/entitlements/client/requests/ListFeatureCompaniesRequest.d.ts +2 -2
  97. package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -2
  98. package/dist/api/resources/entitlements/client/requests/ListFeatureUsersRequest.d.ts +2 -2
  99. package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +2 -2
  100. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
  101. package/dist/api/resources/entitlements/client/requests/index.d.ts +1 -0
  102. package/dist/api/resources/entitlements/exports.d.ts +2 -0
  103. package/dist/api/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod.d.ts +7 -0
  104. package/dist/api/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +5 -0
  105. package/dist/api/resources/entitlements/types/UpsertPlanEntitlementForBillingProductResponse.d.ts +6 -0
  106. package/dist/api/resources/entitlements/types/index.d.ts +3 -0
  107. package/dist/api/resources/events/client/Client.d.ts +4 -4
  108. package/dist/api/resources/events/client/requests/GetEventSummariesRequest.d.ts +2 -2
  109. package/dist/api/resources/events/client/requests/ListEventsRequest.d.ts +2 -2
  110. package/dist/api/resources/events/exports.d.ts +2 -0
  111. package/dist/api/resources/features/client/Client.d.ts +34 -13
  112. package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +10 -10
  113. package/dist/api/resources/features/client/requests/CountFlagsRequest.d.ts +2 -2
  114. package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +26 -0
  115. package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +10 -10
  116. package/dist/api/resources/features/client/requests/ListFlagsRequest.d.ts +2 -2
  117. package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +1 -1
  118. package/dist/api/resources/features/client/requests/index.d.ts +1 -0
  119. package/dist/api/resources/features/exports.d.ts +2 -0
  120. package/dist/api/resources/features/types/UpsertFeatureForBillingProductResponse.d.ts +6 -0
  121. package/dist/api/resources/features/types/index.d.ts +1 -0
  122. package/dist/api/resources/index.d.ts +2 -0
  123. package/dist/api/resources/integrationsapi/client/Client.d.ts +27 -0
  124. package/dist/api/resources/integrationsapi/client/index.d.ts +1 -0
  125. package/dist/api/resources/integrationsapi/exports.d.ts +2 -0
  126. package/dist/api/resources/integrationsapi/index.d.ts +2 -0
  127. package/dist/api/resources/integrationsapi/types/GetIntegrationWebhookUrlResponse.d.ts +6 -0
  128. package/dist/api/resources/integrationsapi/types/index.d.ts +1 -0
  129. package/dist/api/resources/planbundle/exports.d.ts +2 -0
  130. package/dist/api/resources/plangroups/exports.d.ts +2 -0
  131. package/dist/api/resources/planmigrations/client/Client.d.ts +8 -8
  132. package/dist/api/resources/planmigrations/client/requests/CountCompanyMigrationsRequest.d.ts +2 -2
  133. package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +2 -2
  134. package/dist/api/resources/planmigrations/client/requests/ListCompanyMigrationsRequest.d.ts +2 -2
  135. package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +2 -2
  136. package/dist/api/resources/planmigrations/exports.d.ts +2 -0
  137. package/dist/api/resources/plans/client/Client.d.ts +98 -7
  138. package/dist/api/resources/plans/client/requests/CountBillingProductMatchCompaniesRequest.d.ts +19 -0
  139. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +8 -2
  140. package/dist/api/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +19 -0
  141. package/dist/api/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +16 -0
  142. package/dist/api/resources/plans/client/requests/DeletePlanVersionRequest.d.ts +9 -0
  143. package/dist/api/resources/plans/client/requests/ListBillingProductMatchCompaniesRequest.d.ts +19 -0
  144. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +8 -2
  145. package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +9 -1
  146. package/dist/api/resources/plans/client/requests/index.d.ts +5 -0
  147. package/dist/api/resources/plans/exports.d.ts +2 -0
  148. package/dist/api/resources/plans/types/CountBillingProductMatchCompaniesParams.d.ts +13 -0
  149. package/dist/api/resources/plans/types/CountBillingProductMatchCompaniesResponse.d.ts +6 -0
  150. package/dist/api/resources/plans/types/CountPlansParams.d.ts +4 -0
  151. package/dist/api/resources/plans/types/CreateCustomPlanResponse.d.ts +6 -0
  152. package/dist/api/resources/plans/types/DeletePlanVersionParams.d.ts +6 -0
  153. package/dist/api/resources/plans/types/DeletePlanVersionResponse.d.ts +1 -1
  154. package/dist/api/resources/plans/types/ListBillingProductMatchCompaniesParams.d.ts +13 -0
  155. package/dist/api/resources/plans/types/ListBillingProductMatchCompaniesResponse.d.ts +6 -0
  156. package/dist/api/resources/plans/types/ListPlansParams.d.ts +4 -0
  157. package/dist/api/resources/plans/types/UpsertPlanForBillingProductResponse.d.ts +6 -0
  158. package/dist/api/resources/plans/types/index.d.ts +7 -0
  159. package/dist/api/resources/scheduledcheckout/client/Client.d.ts +2 -2
  160. package/dist/api/resources/scheduledcheckout/client/requests/ListScheduledCheckoutsRequest.d.ts +2 -2
  161. package/dist/api/resources/scheduledcheckout/exports.d.ts +2 -0
  162. package/dist/api/resources/webhooks/client/Client.d.ts +8 -8
  163. package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +2 -2
  164. package/dist/api/resources/webhooks/client/requests/CountWebhooksRequest.d.ts +2 -2
  165. package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +2 -2
  166. package/dist/api/resources/webhooks/client/requests/ListWebhooksRequest.d.ts +2 -2
  167. package/dist/api/resources/webhooks/exports.d.ts +2 -0
  168. package/dist/api/types/AccountMemberPermission.d.ts +18 -0
  169. package/dist/api/types/AccountMemberResponseData.d.ts +11 -0
  170. package/dist/api/types/AccountMemberRole.d.ts +5 -0
  171. package/dist/api/types/BillingCreditBundleResponseData.d.ts +2 -0
  172. package/dist/api/types/BillingCreditBundleView.d.ts +1 -0
  173. package/dist/api/types/BillingCreditGrantReason.d.ts +1 -0
  174. package/dist/api/types/BillingCreditGrantResponseData.d.ts +1 -0
  175. package/dist/api/types/BillingCreditResponseData.d.ts +1 -0
  176. package/dist/api/types/BillingLinkedResourceResponseData.d.ts +6 -0
  177. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +1 -0
  178. package/dist/api/types/BillingProductPlanResponseData.d.ts +1 -1
  179. package/dist/api/types/BillingProviderType.d.ts +1 -0
  180. package/dist/api/types/CheckoutSubscription.d.ts +1 -0
  181. package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
  182. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +7 -2
  183. package/dist/api/types/ConditionGroupResponseData.d.ts +0 -1
  184. package/dist/api/types/ConditionGroupView.d.ts +0 -1
  185. package/dist/api/types/ConditionResponseData.d.ts +0 -1
  186. package/dist/api/types/ConditionView.d.ts +0 -1
  187. package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  188. package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +1 -0
  189. package/dist/api/types/CreatePlanRequestBody.d.ts +1 -1
  190. package/dist/api/types/CreditBundleCurrencyPrice.d.ts +5 -0
  191. package/dist/api/types/CreditBundleCurrencyPriceRequestBody.d.ts +5 -0
  192. package/dist/api/types/CreditBundleCurrencyPriceResponseData.d.ts +5 -0
  193. package/dist/api/types/CreditCompanyGrantView.d.ts +1 -0
  194. package/dist/api/types/CreditCurrencyPriceRequestBody.d.ts +5 -0
  195. package/dist/api/types/CreditCurrencyPriceResponseData.d.ts +5 -0
  196. package/dist/api/types/CurrencyPriceRequestBody.d.ts +10 -0
  197. package/dist/api/types/CustomPlanActivationStrategy.d.ts +5 -0
  198. package/dist/api/types/CustomPlanBillingResponseData.d.ts +14 -0
  199. package/dist/api/types/CustomPlanBillingStatus.d.ts +6 -0
  200. package/dist/api/types/DatastreamCompanyPlan.d.ts +2 -0
  201. package/dist/api/types/EntitlementCurrencyPricesResponseData.d.ts +6 -0
  202. package/dist/api/types/FeatureDetailResponseData.d.ts +1 -0
  203. package/dist/api/types/FeatureView.d.ts +1 -0
  204. package/dist/api/types/IntegrationType.d.ts +7 -0
  205. package/dist/api/types/IntegrationWebhookUrlResponseData.d.ts +5 -0
  206. package/dist/api/types/ManagePlanRequest.d.ts +1 -0
  207. package/dist/api/types/PlanCreditGrantView.d.ts +1 -0
  208. package/dist/api/types/PlanCurrencyPriceRequestBody.d.ts +6 -0
  209. package/dist/api/types/PlanCurrencyPricesResponseData.d.ts +7 -0
  210. package/dist/api/types/PlanDetailResponseData.d.ts +7 -2
  211. package/dist/api/types/PlanEntitlementResponseData.d.ts +2 -0
  212. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +7 -2
  213. package/dist/api/types/PlanIcon.d.ts +28 -0
  214. package/dist/api/types/PlanResponseData.d.ts +3 -1
  215. package/dist/api/types/PlanSelection.d.ts +1 -0
  216. package/dist/api/types/PlanVersionResponseData.d.ts +1 -1
  217. package/dist/api/types/PlanViewPublicResponseData.d.ts +7 -2
  218. package/dist/api/types/RuleView.d.ts +0 -1
  219. package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
  220. package/dist/api/types/TrialStatus.d.ts +6 -0
  221. package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  222. package/dist/api/types/UpdatePlanRequestBody.d.ts +2 -1
  223. package/dist/api/types/UpsertBillingProductRequestBody.d.ts +1 -0
  224. package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
  225. package/dist/api/types/WebScheduledDowngradeWebhookOutput.d.ts +10 -0
  226. package/dist/api/types/WebhookRequestType.d.ts +1 -0
  227. package/dist/api/types/WebhookUrl.d.ts +5 -0
  228. package/dist/api/types/index.d.ts +22 -1
  229. package/dist/auth/HeaderAuthProvider.d.ts +14 -10
  230. package/dist/core/fetcher/BinaryResponse.d.ts +1 -1
  231. package/dist/core/fetcher/EndpointSupplier.d.ts +2 -2
  232. package/dist/core/fetcher/Fetcher.d.ts +1 -2
  233. package/dist/core/fetcher/index.d.ts +2 -0
  234. package/dist/core/fetcher/makePassthroughRequest.d.ts +49 -0
  235. package/dist/core/fetcher/makeRequest.d.ts +6 -1
  236. package/dist/core/headers.d.ts +2 -2
  237. package/dist/core/schemas/builders/record/index.d.ts +2 -2
  238. package/dist/core/schemas/builders/record/record.d.ts +2 -1
  239. package/dist/core/schemas/builders/record/types.d.ts +2 -0
  240. package/dist/datastream/merge.d.ts +25 -0
  241. package/dist/datastream/types.d.ts +1 -0
  242. package/dist/index.js +3 -3
  243. package/dist/serialization/resources/accounts/types/GetAccountMemberResponse.d.ts +11 -0
  244. package/dist/serialization/resources/accounts/types/ListAccountMembersParams.d.ts +12 -0
  245. package/dist/serialization/resources/accounts/types/ListAccountMembersResponse.d.ts +12 -0
  246. package/dist/serialization/resources/accounts/types/index.d.ts +3 -0
  247. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +2 -0
  248. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +2 -0
  249. package/dist/serialization/resources/billing/types/ListBillingPricesParams.d.ts +1 -0
  250. package/dist/serialization/resources/billing/types/ListBillingProductPricesParams.d.ts +1 -0
  251. package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  252. package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  253. package/dist/serialization/resources/companies/types/ListPlanChangesParams.d.ts +4 -2
  254. package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +2 -0
  255. package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -0
  256. package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -0
  257. package/dist/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +2 -0
  258. package/dist/serialization/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +2 -0
  259. package/dist/serialization/resources/credits/types/GetSingleBillingPlanCreditGrantResponse.d.ts +11 -0
  260. package/dist/serialization/resources/credits/types/index.d.ts +1 -0
  261. package/dist/serialization/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +46 -0
  262. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +2 -0
  263. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -0
  264. package/dist/serialization/resources/entitlements/client/requests/index.d.ts +1 -0
  265. package/dist/serialization/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod.d.ts +7 -0
  266. package/dist/serialization/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +7 -0
  267. package/dist/serialization/resources/entitlements/types/UpsertPlanEntitlementForBillingProductResponse.d.ts +11 -0
  268. package/dist/serialization/resources/entitlements/types/index.d.ts +3 -0
  269. package/dist/serialization/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +25 -0
  270. package/dist/serialization/resources/features/client/requests/index.d.ts +1 -0
  271. package/dist/serialization/resources/features/types/UpsertFeatureForBillingProductResponse.d.ts +11 -0
  272. package/dist/serialization/resources/features/types/index.d.ts +1 -0
  273. package/dist/serialization/resources/index.d.ts +2 -0
  274. package/dist/serialization/resources/integrationsapi/index.d.ts +1 -0
  275. package/dist/serialization/resources/integrationsapi/types/GetIntegrationWebhookUrlResponse.d.ts +11 -0
  276. package/dist/serialization/resources/integrationsapi/types/index.d.ts +1 -0
  277. package/dist/serialization/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +17 -0
  278. package/dist/serialization/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +14 -0
  279. package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +6 -0
  280. package/dist/serialization/resources/plans/client/requests/index.d.ts +2 -0
  281. package/dist/serialization/resources/plans/types/CountBillingProductMatchCompaniesParams.d.ts +12 -0
  282. package/dist/serialization/resources/plans/types/CountBillingProductMatchCompaniesResponse.d.ts +12 -0
  283. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  284. package/dist/serialization/resources/plans/types/CreateCustomPlanResponse.d.ts +11 -0
  285. package/dist/serialization/resources/plans/types/DeletePlanVersionParams.d.ts +9 -0
  286. package/dist/serialization/resources/plans/types/DeletePlanVersionResponse.d.ts +2 -1
  287. package/dist/serialization/resources/plans/types/ListBillingProductMatchCompaniesParams.d.ts +12 -0
  288. package/dist/serialization/resources/plans/types/ListBillingProductMatchCompaniesResponse.d.ts +12 -0
  289. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  290. package/dist/serialization/resources/plans/types/UpsertPlanForBillingProductResponse.d.ts +11 -0
  291. package/dist/serialization/resources/plans/types/index.d.ts +7 -0
  292. package/dist/serialization/types/AccountMemberPermission.d.ts +7 -0
  293. package/dist/serialization/types/AccountMemberResponseData.d.ts +18 -0
  294. package/dist/serialization/types/AccountMemberRole.d.ts +7 -0
  295. package/dist/serialization/types/BillingCreditBundleResponseData.d.ts +3 -0
  296. package/dist/serialization/types/BillingCreditBundleView.d.ts +2 -0
  297. package/dist/serialization/types/BillingCreditGrantReason.d.ts +1 -1
  298. package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +1 -0
  299. package/dist/serialization/types/BillingCreditResponseData.d.ts +2 -0
  300. package/dist/serialization/types/BillingLinkedResourceResponseData.d.ts +12 -0
  301. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +1 -0
  302. package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -2
  303. package/dist/serialization/types/BillingProviderType.d.ts +1 -1
  304. package/dist/serialization/types/CheckoutSubscription.d.ts +1 -0
  305. package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -0
  306. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +10 -3
  307. package/dist/serialization/types/ConditionGroupResponseData.d.ts +0 -1
  308. package/dist/serialization/types/ConditionGroupView.d.ts +0 -1
  309. package/dist/serialization/types/ConditionResponseData.d.ts +0 -1
  310. package/dist/serialization/types/ConditionView.d.ts +0 -1
  311. package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  312. package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +2 -0
  313. package/dist/serialization/types/CreatePlanRequestBody.d.ts +2 -1
  314. package/dist/serialization/types/CreditBundleCurrencyPrice.d.ts +11 -0
  315. package/dist/serialization/types/CreditBundleCurrencyPriceRequestBody.d.ts +11 -0
  316. package/dist/serialization/types/CreditBundleCurrencyPriceResponseData.d.ts +11 -0
  317. package/dist/serialization/types/CreditCompanyGrantView.d.ts +1 -0
  318. package/dist/serialization/types/CreditCurrencyPriceRequestBody.d.ts +11 -0
  319. package/dist/serialization/types/CreditCurrencyPriceResponseData.d.ts +11 -0
  320. package/dist/serialization/types/CurrencyPriceRequestBody.d.ts +16 -0
  321. package/dist/serialization/types/CustomPlanActivationStrategy.d.ts +7 -0
  322. package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +21 -0
  323. package/dist/serialization/types/CustomPlanBillingStatus.d.ts +7 -0
  324. package/dist/serialization/types/DatastreamCompanyPlan.d.ts +2 -0
  325. package/dist/serialization/types/EntitlementCurrencyPricesResponseData.d.ts +12 -0
  326. package/dist/serialization/types/FeatureDetailResponseData.d.ts +2 -0
  327. package/dist/serialization/types/FeatureView.d.ts +2 -0
  328. package/dist/serialization/types/IntegrationType.d.ts +7 -0
  329. package/dist/serialization/types/IntegrationWebhookUrlResponseData.d.ts +11 -0
  330. package/dist/serialization/types/ManagePlanRequest.d.ts +1 -0
  331. package/dist/serialization/types/PlanCreditGrantView.d.ts +1 -0
  332. package/dist/serialization/types/PlanCurrencyPriceRequestBody.d.ts +12 -0
  333. package/dist/serialization/types/PlanCurrencyPricesResponseData.d.ts +13 -0
  334. package/dist/serialization/types/PlanDetailResponseData.d.ts +10 -3
  335. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
  336. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +10 -3
  337. package/dist/serialization/types/PlanIcon.d.ts +7 -0
  338. package/dist/serialization/types/PlanResponseData.d.ts +4 -1
  339. package/dist/serialization/types/PlanSelection.d.ts +1 -0
  340. package/dist/serialization/types/PlanVersionResponseData.d.ts +2 -1
  341. package/dist/serialization/types/PlanViewPublicResponseData.d.ts +10 -3
  342. package/dist/serialization/types/RuleView.d.ts +0 -1
  343. package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
  344. package/dist/serialization/types/TrialStatus.d.ts +7 -0
  345. package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  346. package/dist/serialization/types/UpdatePlanRequestBody.d.ts +2 -1
  347. package/dist/serialization/types/UpsertBillingProductRequestBody.d.ts +2 -0
  348. package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +2 -0
  349. package/dist/serialization/types/WebScheduledDowngradeWebhookOutput.d.ts +17 -0
  350. package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
  351. package/dist/serialization/types/WebhookUrl.d.ts +11 -0
  352. package/dist/serialization/types/index.d.ts +22 -1
  353. package/dist/wasm/rulesengine.d.ts +10 -0
  354. package/dist/wasm/rulesengine.js +193 -0
  355. package/dist/wasm/rulesengine_bg.wasm +0 -0
  356. package/dist/wasm/rulesengine_bg.wasm.d.ts +25 -0
  357. package/package.json +9 -9
  358. package/dist/api/types/PlanControlledByType.d.ts +0 -5
  359. package/dist/serialization/types/PlanControlledByType.d.ts +0 -7
@@ -13,6 +13,8 @@ export interface ListPlansParams {
13
13
  /** Filter out plans that do not have a billing product ID */
14
14
  hasProductId?: boolean;
15
15
  ids?: string[];
16
+ /** Include billing settings from draft versions for plans which have draft version */
17
+ includeDraftVersions?: boolean;
16
18
  /** Page limit (default 100) */
17
19
  limit?: number;
18
20
  /** Page offset (default 0) */
@@ -20,6 +22,8 @@ export interface ListPlansParams {
20
22
  /** Filter by plan type */
21
23
  planType?: Schematic.PlanType;
22
24
  q?: string;
25
+ /** Filter plans scoped to a specific company (custom plans) */
26
+ scopedToCompanyId?: string;
23
27
  /** Filter out plans that already have a plan entitlement for the specified feature ID */
24
28
  withoutEntitlementFor?: string;
25
29
  /** Filter out plans that have a paid billing product ID */
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface UpsertPlanForBillingProductResponse {
3
+ data: Schematic.PlanDetailResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -1,10 +1,16 @@
1
+ export * from "./CountBillingProductMatchCompaniesParams";
2
+ export * from "./CountBillingProductMatchCompaniesResponse";
1
3
  export * from "./CountPlansParams";
2
4
  export * from "./CountPlansResponse";
5
+ export * from "./CreateCustomPlanResponse";
3
6
  export * from "./CreatePlanResponse";
4
7
  export * from "./DeletePlanResponse";
8
+ export * from "./DeletePlanVersionParams";
5
9
  export * from "./DeletePlanVersionResponse";
6
10
  export * from "./GetPlanParams";
7
11
  export * from "./GetPlanResponse";
12
+ export * from "./ListBillingProductMatchCompaniesParams";
13
+ export * from "./ListBillingProductMatchCompaniesResponse";
8
14
  export * from "./ListPlanIssuesParams";
9
15
  export * from "./ListPlanIssuesResponse";
10
16
  export * from "./ListPlansParams";
@@ -13,3 +19,4 @@ export * from "./PublishPlanVersionResponse";
13
19
  export * from "./UpdateCompanyPlansResponse";
14
20
  export * from "./UpdatePlanResponse";
15
21
  export * from "./UpsertBillingProductPlanResponse";
22
+ export * from "./UpsertPlanForBillingProductResponse";
@@ -24,8 +24,8 @@ export declare class ScheduledcheckoutClient {
24
24
  * await client.scheduledcheckout.listScheduledCheckouts({
25
25
  * companyId: "company_id",
26
26
  * status: "cancelled",
27
- * limit: 1,
28
- * offset: 1
27
+ * limit: 1000000,
28
+ * offset: 1000000
29
29
  * })
30
30
  */
31
31
  listScheduledCheckouts(request?: Schematic.ListScheduledCheckoutsRequest, requestOptions?: ScheduledcheckoutClient.RequestOptions): core.HttpResponsePromise<Schematic.ListScheduledCheckoutsResponse>;
@@ -4,8 +4,8 @@ import type * as Schematic from "../../../../index";
4
4
  * {
5
5
  * companyId: "company_id",
6
6
  * status: "cancelled",
7
- * limit: 1,
8
- * offset: 1
7
+ * limit: 1000000,
8
+ * offset: 1000000
9
9
  * }
10
10
  */
11
11
  export interface ListScheduledCheckoutsRequest {
@@ -0,0 +1,2 @@
1
+ export { ScheduledcheckoutClient } from "./client/Client";
2
+ export * from "./client/index";
@@ -24,8 +24,8 @@ export declare class WebhooksClient {
24
24
  * await client.webhooks.listWebhookEvents({
25
25
  * q: "q",
26
26
  * webhookId: "webhook_id",
27
- * limit: 1,
28
- * offset: 1
27
+ * limit: 1000000,
28
+ * offset: 1000000
29
29
  * })
30
30
  */
31
31
  listWebhookEvents(request?: Schematic.ListWebhookEventsRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<Schematic.ListWebhookEventsResponse>;
@@ -58,8 +58,8 @@ export declare class WebhooksClient {
58
58
  * await client.webhooks.countWebhookEvents({
59
59
  * q: "q",
60
60
  * webhookId: "webhook_id",
61
- * limit: 1,
62
- * offset: 1
61
+ * limit: 1000000,
62
+ * offset: 1000000
63
63
  * })
64
64
  */
65
65
  countWebhookEvents(request?: Schematic.CountWebhookEventsRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<Schematic.CountWebhookEventsResponse>;
@@ -77,8 +77,8 @@ export declare class WebhooksClient {
77
77
  * @example
78
78
  * await client.webhooks.listWebhooks({
79
79
  * q: "q",
80
- * limit: 1,
81
- * offset: 1
80
+ * limit: 1000000,
81
+ * offset: 1000000
82
82
  * })
83
83
  */
84
84
  listWebhooks(request?: Schematic.ListWebhooksRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<Schematic.ListWebhooksResponse>;
@@ -160,8 +160,8 @@ export declare class WebhooksClient {
160
160
  * @example
161
161
  * await client.webhooks.countWebhooks({
162
162
  * q: "q",
163
- * limit: 1,
164
- * offset: 1
163
+ * limit: 1000000,
164
+ * offset: 1000000
165
165
  * })
166
166
  */
167
167
  countWebhooks(request?: Schematic.CountWebhooksRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<Schematic.CountWebhooksResponse>;
@@ -3,8 +3,8 @@
3
3
  * {
4
4
  * q: "q",
5
5
  * webhookId: "webhook_id",
6
- * limit: 1,
7
- * offset: 1
6
+ * limit: 1000000,
7
+ * offset: 1000000
8
8
  * }
9
9
  */
10
10
  export interface CountWebhookEventsRequest {
@@ -2,8 +2,8 @@
2
2
  * @example
3
3
  * {
4
4
  * q: "q",
5
- * limit: 1,
6
- * offset: 1
5
+ * limit: 1000000,
6
+ * offset: 1000000
7
7
  * }
8
8
  */
9
9
  export interface CountWebhooksRequest {
@@ -3,8 +3,8 @@
3
3
  * {
4
4
  * q: "q",
5
5
  * webhookId: "webhook_id",
6
- * limit: 1,
7
- * offset: 1
6
+ * limit: 1000000,
7
+ * offset: 1000000
8
8
  * }
9
9
  */
10
10
  export interface ListWebhookEventsRequest {
@@ -2,8 +2,8 @@
2
2
  * @example
3
3
  * {
4
4
  * q: "q",
5
- * limit: 1,
6
- * offset: 1
5
+ * limit: 1000000,
6
+ * offset: 1000000
7
7
  * }
8
8
  */
9
9
  export interface ListWebhooksRequest {
@@ -0,0 +1,2 @@
1
+ export { WebhooksClient } from "./client/Client";
2
+ export * from "./client/index";
@@ -0,0 +1,18 @@
1
+ export declare const AccountMemberPermission: {
2
+ readonly BillingCreditsEdit: "billing_credits_edit";
3
+ readonly CompaniesEdit: "companies_edit";
4
+ readonly CompanyUsersEdit: "company_users_edit";
5
+ readonly ComponentsEdit: "components_edit";
6
+ readonly DataExportsEdit: "data_exports_edit";
7
+ readonly FeaturesEdit: "features_edit";
8
+ readonly FlagRulesEdit: "flag_rules_edit";
9
+ readonly FlagsEdit: "flags_edit";
10
+ readonly OverridesEdit: "overrides_edit";
11
+ readonly PlanBillingEdit: "plan_billing_edit";
12
+ readonly PlanEntitlementsEdit: "plan_entitlements_edit";
13
+ readonly PlanVersionsEdit: "plan_versions_edit";
14
+ readonly PlansEdit: "plans_edit";
15
+ readonly WebhooksEdit: "webhooks_edit";
16
+ readonly WebhooksRevealSecret: "webhooks_reveal_secret";
17
+ };
18
+ export type AccountMemberPermission = (typeof AccountMemberPermission)[keyof typeof AccountMemberPermission];
@@ -0,0 +1,11 @@
1
+ import type * as Schematic from "../index";
2
+ export interface AccountMemberResponseData {
3
+ createdAt: Date;
4
+ email?: string;
5
+ id: string;
6
+ imageUrl?: string;
7
+ name?: string;
8
+ permissions: Record<string, Schematic.AccountMemberPermission[]>;
9
+ role?: Schematic.AccountMemberRole;
10
+ updatedAt: Date;
11
+ }
@@ -0,0 +1,5 @@
1
+ export declare const AccountMemberRole: {
2
+ readonly Admin: "admin";
3
+ readonly Member: "member";
4
+ };
5
+ export type AccountMemberRole = (typeof AccountMemberRole)[keyof typeof AccountMemberRole];
@@ -1,11 +1,13 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface BillingCreditBundleResponseData {
3
+ billingInvoiceId?: string;
3
4
  bundleType: Schematic.BillingCreditBundleType;
4
5
  createdAt: Date;
5
6
  creditDescription?: string;
6
7
  creditIcon?: string;
7
8
  creditId: string;
8
9
  creditName: string;
10
+ currencyPrices: Schematic.CreditBundleCurrencyPriceResponseData[];
9
11
  expiryType: Schematic.BillingCreditExpiryType;
10
12
  expiryUnit: Schematic.BillingCreditExpiryUnit;
11
13
  expiryUnitCount?: number;
@@ -6,6 +6,7 @@ export interface BillingCreditBundleView {
6
6
  creditIcon?: string;
7
7
  creditId: string;
8
8
  creditName: string;
9
+ currencyPrices?: Schematic.CreditBundleCurrencyPrice[];
9
10
  expiryType: Schematic.BillingCreditExpiryType;
10
11
  expiryUnit: Schematic.BillingCreditExpiryUnit;
11
12
  expiryUnitCount?: number;
@@ -1,4 +1,5 @@
1
1
  export declare const BillingCreditGrantReason: {
2
+ readonly Adjustment: "adjustment";
2
3
  readonly BillingCreditAutoTopup: "billing_credit_auto_topup";
3
4
  readonly Free: "free";
4
5
  readonly Plan: "plan";
@@ -6,6 +6,7 @@ export interface BillingCreditGrantResponseData {
6
6
  creditIcon?: string;
7
7
  creditId: string;
8
8
  creditName: string;
9
+ currency?: string;
9
10
  expiresAt?: Date;
10
11
  grantReason: Schematic.BillingCreditGrantReason;
11
12
  id: string;
@@ -3,6 +3,7 @@ export interface BillingCreditResponseData {
3
3
  burnStrategy: Schematic.BillingCreditBurnStrategy;
4
4
  costEditable: boolean;
5
5
  createdAt: Date;
6
+ currencyPrices: Schematic.CreditCurrencyPriceResponseData[];
6
7
  defaultExpiryUnit: Schematic.BillingCreditExpiryUnit;
7
8
  defaultExpiryUnitCount?: number;
8
9
  defaultRolloverPolicy: Schematic.BillingCreditRolloverPolicy;
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../index";
2
+ export interface BillingLinkedResourceResponseData {
3
+ billingProvider: Schematic.BillingProviderType;
4
+ externalResourceId: string;
5
+ originator: Schematic.BillingProviderType;
6
+ }
@@ -6,6 +6,7 @@ export interface BillingPlanCreditGrantResponseData {
6
6
  autoTopupExpiryType?: Schematic.BillingCreditExpiryType;
7
7
  autoTopupExpiryUnit?: Schematic.BillingCreditExpiryUnit;
8
8
  autoTopupExpiryUnitCount?: number;
9
+ autoTopupThresholdCredits?: number;
9
10
  autoTopupThresholdPercent?: number;
10
11
  createdAt: Date;
11
12
  credit?: Schematic.BillingCreditResponseData;
@@ -3,7 +3,7 @@ export interface BillingProductPlanResponseData {
3
3
  accountId: string;
4
4
  billingProductId: string;
5
5
  chargeType: Schematic.ChargeType;
6
- controlledBy: Schematic.PlanControlledByType;
6
+ controlledBy: Schematic.BillingProviderType;
7
7
  environmentId: string;
8
8
  isTrialable: boolean;
9
9
  monthlyPriceId?: string;
@@ -1,4 +1,5 @@
1
1
  export declare const BillingProviderType: {
2
+ readonly Orb: "orb";
2
3
  readonly Schematic: "schematic";
3
4
  readonly Stripe: "stripe";
4
5
  };
@@ -13,6 +13,7 @@ export interface CheckoutSubscription {
13
13
  expiredAt?: Date;
14
14
  id: string;
15
15
  interval: string;
16
+ invoiceUrl?: string;
16
17
  metadata?: Record<string, unknown>;
17
18
  periodEnd: number;
18
19
  periodStart: number;
@@ -5,6 +5,7 @@ export interface CompanyDetailResponseData {
5
5
  billingSubscription?: Schematic.BillingSubscriptionView;
6
6
  billingSubscriptions: Schematic.BillingSubscriptionView[];
7
7
  createdAt: Date;
8
+ customPlanBillings: Schematic.CustomPlanBillingResponseData[];
8
9
  defaultPaymentMethod?: Schematic.PaymentMethodResponseData;
9
10
  entitlements: Schematic.FeatureEntitlement[];
10
11
  entityTraits: Schematic.EntityTraitDetailResponseData[];
@@ -2,13 +2,18 @@ import type * as Schematic from "../index";
2
2
  export interface CompanyPlanDetailResponseData {
3
3
  activeVersion?: Schematic.PlanVersionResponseData;
4
4
  audienceType?: string;
5
+ billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
5
6
  billingProduct?: Schematic.BillingProductDetailResponseData;
6
7
  chargeType: Schematic.ChargeType;
7
8
  companyCanTrial: boolean;
8
9
  companyCount: number;
10
+ companyId?: string;
11
+ companyName?: string;
9
12
  compatiblePlanIds: string[];
10
- controlledBy: Schematic.PlanControlledByType;
13
+ controlledBy: string;
14
+ copiedFromPlanId?: string;
11
15
  createdAt: Date;
16
+ currencyPrices: Schematic.PlanCurrencyPricesResponseData[];
12
17
  current: boolean;
13
18
  custom: boolean;
14
19
  customPlanConfig?: Schematic.CustomPlanConfig;
@@ -16,7 +21,7 @@ export interface CompanyPlanDetailResponseData {
16
21
  draftVersion?: Schematic.PlanVersionResponseData;
17
22
  entitlements: Schematic.PlanEntitlementResponseData[];
18
23
  features: Schematic.FeatureDetailResponseData[];
19
- icon: string;
24
+ icon: Schematic.PlanIcon;
20
25
  id: string;
21
26
  includedCreditGrants: Schematic.PlanCreditGrantView[];
22
27
  invalidReason?: Schematic.CompanyPlanInvalidReason;
@@ -4,7 +4,6 @@ export interface ConditionGroupResponseData {
4
4
  environmentId: string;
5
5
  flagId?: string;
6
6
  id: string;
7
- planVersionId?: string;
8
7
  ruleId: string;
9
8
  updatedAt: Date;
10
9
  }
@@ -6,7 +6,6 @@ export interface ConditionGroupView {
6
6
  environmentId: string;
7
7
  flagId?: string;
8
8
  id: string;
9
- planVersionId?: string;
10
9
  ruleId: string;
11
10
  updatedAt: Date;
12
11
  }
@@ -15,7 +15,6 @@ export interface ConditionResponseData {
15
15
  metricPeriodMonthReset?: string;
16
16
  metricValue?: number;
17
17
  operator: string;
18
- planVersionId?: string;
19
18
  resourceUnspecifiedIds: string[];
20
19
  ruleId: string;
21
20
  traitEntityType?: Schematic.EntityType;
@@ -18,7 +18,6 @@ export interface ConditionView {
18
18
  metricPeriodMonthReset?: string;
19
19
  metricValue?: number;
20
20
  operator: string;
21
- planVersionId?: string;
22
21
  planVersions: Schematic.GenericPreviewObject[];
23
22
  plans: Schematic.GenericPreviewObject[];
24
23
  resourceUnspecifiedIds: string[];
@@ -7,6 +7,7 @@ export interface CreateBillingPlanCreditGrantRequestBody {
7
7
  autoTopupExpiryType?: Schematic.BillingCreditExpiryType;
8
8
  autoTopupExpiryUnit?: Schematic.BillingCreditExpiryUnit;
9
9
  autoTopupExpiryUnitCount?: number;
10
+ autoTopupThresholdCredits?: number;
10
11
  autoTopupThresholdPercent?: number;
11
12
  creditAmount: number;
12
13
  creditId: string;
@@ -4,6 +4,7 @@ export interface CreateEntitlementInBundleRequestBody {
4
4
  billingThreshold?: number;
5
5
  creditConsumptionRate?: number;
6
6
  currency?: string;
7
+ currencyPrices?: Schematic.CurrencyPriceRequestBody[];
7
8
  featureId: string;
8
9
  metricPeriod?: Schematic.CreateEntitlementInBundleRequestBodyMetricPeriod;
9
10
  metricPeriodMonthReset?: Schematic.CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset;
@@ -1,7 +1,7 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface CreatePlanRequestBody {
3
3
  description: string;
4
- icon?: string;
4
+ icon?: Schematic.PlanIcon;
5
5
  name: string;
6
6
  planType: Schematic.PlanType;
7
7
  }
@@ -0,0 +1,5 @@
1
+ import type * as Schematic from "../index";
2
+ export interface CreditBundleCurrencyPrice {
3
+ currency: string;
4
+ price?: Schematic.BillingPriceView;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface CreditBundleCurrencyPriceRequestBody {
2
+ currency: string;
3
+ pricePerUnit?: number;
4
+ pricePerUnitDecimal?: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import type * as Schematic from "../index";
2
+ export interface CreditBundleCurrencyPriceResponseData {
3
+ currency: string;
4
+ price?: Schematic.BillingPriceResponseData;
5
+ }
@@ -8,6 +8,7 @@ export interface CreditCompanyGrantView {
8
8
  creditDescription: string;
9
9
  creditIcon?: string;
10
10
  creditName: string;
11
+ currency?: string;
11
12
  exhaustedAt?: Date;
12
13
  expiresAt?: Date;
13
14
  expiryType?: Schematic.BillingCreditExpiryType;
@@ -0,0 +1,5 @@
1
+ export interface CreditCurrencyPriceRequestBody {
2
+ currency: string;
3
+ pricePerUnit?: number;
4
+ pricePerUnitDecimal?: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import type * as Schematic from "../index";
2
+ export interface CreditCurrencyPriceResponseData {
3
+ currency: string;
4
+ price?: Schematic.BillingPriceResponseData;
5
+ }
@@ -0,0 +1,10 @@
1
+ import type * as Schematic from "../index";
2
+ export interface CurrencyPriceRequestBody {
3
+ currency: string;
4
+ monthlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
5
+ monthlyUnitPrice?: number;
6
+ monthlyUnitPriceDecimal?: string;
7
+ yearlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
8
+ yearlyUnitPrice?: number;
9
+ yearlyUnitPriceDecimal?: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ export declare const CustomPlanActivationStrategy: {
2
+ readonly OnPayment: "on_payment";
3
+ readonly OnPublish: "on_publish";
4
+ };
5
+ export type CustomPlanActivationStrategy = (typeof CustomPlanActivationStrategy)[keyof typeof CustomPlanActivationStrategy];
@@ -0,0 +1,14 @@
1
+ import type * as Schematic from "../index";
2
+ export interface CustomPlanBillingResponseData {
3
+ activationStrategy: Schematic.CustomPlanActivationStrategy;
4
+ companyId: string;
5
+ createdAt: Date;
6
+ daysUntilDue: number;
7
+ id: string;
8
+ paidAt?: Date;
9
+ planId: string;
10
+ publishedAt?: Date;
11
+ status: Schematic.CustomPlanBillingStatus;
12
+ stripeInvoiceUrl?: string;
13
+ updatedAt: Date;
14
+ }
@@ -0,0 +1,6 @@
1
+ export declare const CustomPlanBillingStatus: {
2
+ readonly Active: "active";
3
+ readonly Paid: "paid";
4
+ readonly Pending: "pending";
5
+ };
6
+ export type CustomPlanBillingStatus = (typeof CustomPlanBillingStatus)[keyof typeof CustomPlanBillingStatus];
@@ -1,5 +1,7 @@
1
+ import type * as Schematic from "../index";
1
2
  export interface DatastreamCompanyPlan {
2
3
  id: string;
3
4
  name: string;
4
5
  trialEndDate?: Date;
6
+ trialStatus?: Schematic.TrialStatus;
5
7
  }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../index";
2
+ export interface EntitlementCurrencyPricesResponseData {
3
+ currency: string;
4
+ monthlyPrice?: Schematic.BillingPriceView;
5
+ yearlyPrice?: Schematic.BillingPriceView;
6
+ }
@@ -1,5 +1,6 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface FeatureDetailResponseData {
3
+ billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
3
4
  createdAt: Date;
4
5
  description: string;
5
6
  eventSubtype?: string;
@@ -1,6 +1,7 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface FeatureView {
3
3
  accountId: string;
4
+ billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
4
5
  createdAt: Date;
5
6
  description: string;
6
7
  eventSubtype?: string;
@@ -0,0 +1,7 @@
1
+ export declare const IntegrationType: {
2
+ readonly Clerk: "clerk";
3
+ readonly Orb: "orb";
4
+ readonly Stripe: "stripe";
5
+ readonly Unknown: "unknown";
6
+ };
7
+ export type IntegrationType = (typeof IntegrationType)[keyof typeof IntegrationType];
@@ -0,0 +1,5 @@
1
+ import type * as Schematic from "../index";
2
+ export interface IntegrationWebhookUrlResponseData {
3
+ type: Schematic.IntegrationType;
4
+ url: string;
5
+ }
@@ -3,6 +3,7 @@ export interface ManagePlanRequest {
3
3
  addOnSelections: Schematic.PlanSelection[];
4
4
  basePlanId?: string;
5
5
  basePlanPriceId?: string;
6
+ basePlanVersionId?: string;
6
7
  /** If false, subscription cancels at period end. Only applies when removing all plans. Defaults to true. */
7
8
  cancelImmediately?: boolean;
8
9
  companyId: string;
@@ -6,6 +6,7 @@ export interface PlanCreditGrantView {
6
6
  billingCreditAutoTopupExpiryType?: Schematic.BillingCreditExpiryType;
7
7
  billingCreditAutoTopupExpiryUnit?: Schematic.BillingCreditExpiryUnit;
8
8
  billingCreditAutoTopupExpiryUnitCount?: number;
9
+ billingCreditAutoTopupThresholdCredits?: number;
9
10
  billingCreditAutoTopupThresholdPercent?: number;
10
11
  createdAt: Date;
11
12
  credit?: Schematic.BillingCreditView;
@@ -0,0 +1,6 @@
1
+ export interface PlanCurrencyPriceRequestBody {
2
+ currency: string;
3
+ monthlyPrice?: number;
4
+ oneTimePrice?: number;
5
+ yearlyPrice?: number;
6
+ }
@@ -0,0 +1,7 @@
1
+ import type * as Schematic from "../index";
2
+ export interface PlanCurrencyPricesResponseData {
3
+ currency: string;
4
+ monthlyPrice?: Schematic.BillingPriceResponseData;
5
+ oneTimePrice?: Schematic.BillingPriceResponseData;
6
+ yearlyPrice?: Schematic.BillingPriceResponseData;
7
+ }
@@ -2,15 +2,20 @@ import type * as Schematic from "../index";
2
2
  export interface PlanDetailResponseData {
3
3
  activeVersion?: Schematic.PlanVersionResponseData;
4
4
  audienceType?: string;
5
+ billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
5
6
  billingProduct?: Schematic.BillingProductDetailResponseData;
6
7
  chargeType: Schematic.ChargeType;
7
8
  companyCount: number;
8
- controlledBy: Schematic.PlanControlledByType;
9
+ companyId?: string;
10
+ companyName?: string;
11
+ controlledBy: string;
12
+ copiedFromPlanId?: string;
9
13
  createdAt: Date;
14
+ currencyPrices: Schematic.PlanCurrencyPricesResponseData[];
10
15
  description: string;
11
16
  draftVersion?: Schematic.PlanVersionResponseData;
12
17
  features: Schematic.FeatureDetailResponseData[];
13
- icon: string;
18
+ icon: Schematic.PlanIcon;
14
19
  id: string;
15
20
  includedCreditGrants?: Schematic.BillingPlanCreditGrantResponseData[];
16
21
  isDefault: boolean;
@@ -1,8 +1,10 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface PlanEntitlementResponseData {
3
+ billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
3
4
  billingThreshold?: number;
4
5
  consumptionRate?: number;
5
6
  createdAt: Date;
7
+ currencyPrices: Schematic.EntitlementCurrencyPricesResponseData[];
6
8
  environmentId: string;
7
9
  feature?: Schematic.FeatureResponseData;
8
10
  featureId: string;