@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
@@ -26,8 +26,8 @@ export declare class EntitlementsClient {
26
26
  * featureId: "feature_id",
27
27
  * withoutExpired: true,
28
28
  * q: "q",
29
- * limit: 1,
30
- * offset: 1
29
+ * limit: 1000000,
30
+ * offset: 1000000
31
31
  * })
32
32
  */
33
33
  listCompanyOverrides(request?: Schematic.ListCompanyOverridesRequest, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListCompanyOverridesResponse>;
@@ -114,8 +114,8 @@ export declare class EntitlementsClient {
114
114
  * featureId: "feature_id",
115
115
  * withoutExpired: true,
116
116
  * q: "q",
117
- * limit: 1,
118
- * offset: 1
117
+ * limit: 1000000,
118
+ * offset: 1000000
119
119
  * })
120
120
  */
121
121
  countCompanyOverrides(request?: Schematic.CountCompanyOverridesRequest, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.CountCompanyOverridesResponse>;
@@ -134,8 +134,8 @@ export declare class EntitlementsClient {
134
134
  * await client.entitlements.listFeatureCompanies({
135
135
  * featureId: "feature_id",
136
136
  * q: "q",
137
- * limit: 1,
138
- * offset: 1
137
+ * limit: 1000000,
138
+ * offset: 1000000
139
139
  * })
140
140
  */
141
141
  listFeatureCompanies(request: Schematic.ListFeatureCompaniesRequest, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListFeatureCompaniesResponse>;
@@ -154,8 +154,8 @@ export declare class EntitlementsClient {
154
154
  * await client.entitlements.countFeatureCompanies({
155
155
  * featureId: "feature_id",
156
156
  * q: "q",
157
- * limit: 1,
158
- * offset: 1
157
+ * limit: 1000000,
158
+ * offset: 1000000
159
159
  * })
160
160
  */
161
161
  countFeatureCompanies(request: Schematic.CountFeatureCompaniesRequest, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.CountFeatureCompaniesResponse>;
@@ -176,8 +176,8 @@ export declare class EntitlementsClient {
176
176
  * includeUsageAggregation: true,
177
177
  * q: "q",
178
178
  * withoutNegativeEntitlements: true,
179
- * limit: 1,
180
- * offset: 1
179
+ * limit: 1000000,
180
+ * offset: 1000000
181
181
  * })
182
182
  */
183
183
  listFeatureUsage(request?: Schematic.ListFeatureUsageRequest, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListFeatureUsageResponse>;
@@ -218,8 +218,8 @@ export declare class EntitlementsClient {
218
218
  * includeUsageAggregation: true,
219
219
  * q: "q",
220
220
  * withoutNegativeEntitlements: true,
221
- * limit: 1,
222
- * offset: 1
221
+ * limit: 1000000,
222
+ * offset: 1000000
223
223
  * })
224
224
  */
225
225
  countFeatureUsage(request?: Schematic.CountFeatureUsageRequest, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.CountFeatureUsageResponse>;
@@ -238,8 +238,8 @@ export declare class EntitlementsClient {
238
238
  * await client.entitlements.listFeatureUsers({
239
239
  * featureId: "feature_id",
240
240
  * q: "q",
241
- * limit: 1,
242
- * offset: 1
241
+ * limit: 1000000,
242
+ * offset: 1000000
243
243
  * })
244
244
  */
245
245
  listFeatureUsers(request: Schematic.ListFeatureUsersRequest, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListFeatureUsersResponse>;
@@ -258,8 +258,8 @@ export declare class EntitlementsClient {
258
258
  * await client.entitlements.countFeatureUsers({
259
259
  * featureId: "feature_id",
260
260
  * q: "q",
261
- * limit: 1,
262
- * offset: 1
261
+ * limit: 1000000,
262
+ * offset: 1000000
263
263
  * })
264
264
  */
265
265
  countFeatureUsers(request: Schematic.CountFeatureUsersRequest, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.CountFeatureUsersResponse>;
@@ -281,8 +281,8 @@ export declare class EntitlementsClient {
281
281
  * planVersionId: "plan_version_id",
282
282
  * q: "q",
283
283
  * withMeteredProducts: true,
284
- * limit: 1,
285
- * offset: 1
284
+ * limit: 1000000,
285
+ * offset: 1000000
286
286
  * })
287
287
  */
288
288
  listPlanEntitlements(request?: Schematic.ListPlanEntitlementsRequest, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListPlanEntitlementsResponse>;
@@ -353,6 +353,27 @@ export declare class EntitlementsClient {
353
353
  */
354
354
  deletePlanEntitlement(plan_entitlement_id: string, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.DeletePlanEntitlementResponse>;
355
355
  private __deletePlanEntitlement;
356
+ /**
357
+ * @param {Schematic.CreateBillingLinkedPlanEntitlementRequestBody} request
358
+ * @param {EntitlementsClient.RequestOptions} requestOptions - Request-specific configuration.
359
+ *
360
+ * @throws {@link Schematic.BadRequestError}
361
+ * @throws {@link Schematic.UnauthorizedError}
362
+ * @throws {@link Schematic.ForbiddenError}
363
+ * @throws {@link Schematic.NotFoundError}
364
+ * @throws {@link Schematic.InternalServerError}
365
+ *
366
+ * @example
367
+ * await client.entitlements.upsertPlanEntitlementForBillingProduct({
368
+ * billingProvider: "orb",
369
+ * externalResourceId: "external_resource_id",
370
+ * featureId: "feature_id",
371
+ * planId: "plan_id",
372
+ * valueType: "boolean"
373
+ * })
374
+ */
375
+ upsertPlanEntitlementForBillingProduct(request: Schematic.CreateBillingLinkedPlanEntitlementRequestBody, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.UpsertPlanEntitlementForBillingProductResponse>;
376
+ private __upsertPlanEntitlementForBillingProduct;
356
377
  /**
357
378
  * @param {Schematic.CountPlanEntitlementsRequest} request
358
379
  * @param {EntitlementsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -370,8 +391,8 @@ export declare class EntitlementsClient {
370
391
  * planVersionId: "plan_version_id",
371
392
  * q: "q",
372
393
  * withMeteredProducts: true,
373
- * limit: 1,
374
- * offset: 1
394
+ * limit: 1000000,
395
+ * offset: 1000000
375
396
  * })
376
397
  */
377
398
  countPlanEntitlements(request?: Schematic.CountPlanEntitlementsRequest, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.CountPlanEntitlementsResponse>;
@@ -5,8 +5,8 @@
5
5
  * featureId: "feature_id",
6
6
  * withoutExpired: true,
7
7
  * q: "q",
8
- * limit: 1,
9
- * offset: 1
8
+ * limit: 1000000,
9
+ * offset: 1000000
10
10
  * }
11
11
  */
12
12
  export interface CountCompanyOverridesRequest {
@@ -3,8 +3,8 @@
3
3
  * {
4
4
  * featureId: "feature_id",
5
5
  * q: "q",
6
- * limit: 1,
7
- * offset: 1
6
+ * limit: 1000000,
7
+ * offset: 1000000
8
8
  * }
9
9
  */
10
10
  export interface CountFeatureCompaniesRequest {
@@ -5,8 +5,8 @@
5
5
  * includeUsageAggregation: true,
6
6
  * q: "q",
7
7
  * withoutNegativeEntitlements: true,
8
- * limit: 1,
9
- * offset: 1
8
+ * limit: 1000000,
9
+ * offset: 1000000
10
10
  * }
11
11
  */
12
12
  export interface CountFeatureUsageRequest {
@@ -3,8 +3,8 @@
3
3
  * {
4
4
  * featureId: "feature_id",
5
5
  * q: "q",
6
- * limit: 1,
7
- * offset: 1
6
+ * limit: 1000000,
7
+ * offset: 1000000
8
8
  * }
9
9
  */
10
10
  export interface CountFeatureUsersRequest {
@@ -6,8 +6,8 @@
6
6
  * planVersionId: "plan_version_id",
7
7
  * q: "q",
8
8
  * withMeteredProducts: true,
9
- * limit: 1,
10
- * offset: 1
9
+ * limit: 1000000,
10
+ * offset: 1000000
11
11
  * }
12
12
  */
13
13
  export interface CountPlanEntitlementsRequest {
@@ -0,0 +1,44 @@
1
+ import type * as Schematic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * billingProvider: "orb",
6
+ * externalResourceId: "external_resource_id",
7
+ * featureId: "feature_id",
8
+ * planId: "plan_id",
9
+ * valueType: "boolean"
10
+ * }
11
+ */
12
+ export interface CreateBillingLinkedPlanEntitlementRequestBody {
13
+ billingProductId?: string;
14
+ billingProvider: Schematic.BillingProviderType;
15
+ billingThreshold?: number;
16
+ creditConsumptionRate?: number;
17
+ currency?: string;
18
+ currencyPrices?: Schematic.CurrencyPriceRequestBody[];
19
+ externalResourceId: string;
20
+ featureId: string;
21
+ metricPeriod?: Schematic.CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod;
22
+ metricPeriodMonthReset?: Schematic.CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset;
23
+ monthlyMeteredPriceId?: string;
24
+ monthlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
25
+ monthlyUnitPrice?: number;
26
+ monthlyUnitPriceDecimal?: string;
27
+ overageBillingProductId?: string;
28
+ planId: string;
29
+ planVersionId?: string;
30
+ priceBehavior?: Schematic.EntitlementPriceBehavior;
31
+ /** Use MonthlyPriceTiers or YearlyPriceTiers instead */
32
+ priceTiers?: Schematic.CreatePriceTierRequestBody[];
33
+ softLimit?: number;
34
+ tierMode?: Schematic.BillingTiersMode;
35
+ valueBool?: boolean;
36
+ valueCreditId?: string;
37
+ valueNumeric?: number;
38
+ valueTraitId?: string;
39
+ valueType: Schematic.EntitlementValueType;
40
+ yearlyMeteredPriceId?: string;
41
+ yearlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
42
+ yearlyUnitPrice?: number;
43
+ yearlyUnitPriceDecimal?: string;
44
+ }
@@ -12,6 +12,7 @@ export interface CreatePlanEntitlementRequestBody {
12
12
  billingThreshold?: number;
13
13
  creditConsumptionRate?: number;
14
14
  currency?: string;
15
+ currencyPrices?: Schematic.CurrencyPriceRequestBody[];
15
16
  featureId: string;
16
17
  metricPeriod?: Schematic.CreatePlanEntitlementRequestBodyMetricPeriod;
17
18
  metricPeriodMonthReset?: Schematic.CreatePlanEntitlementRequestBodyMetricPeriodMonthReset;
@@ -5,8 +5,8 @@
5
5
  * featureId: "feature_id",
6
6
  * withoutExpired: true,
7
7
  * q: "q",
8
- * limit: 1,
9
- * offset: 1
8
+ * limit: 1000000,
9
+ * offset: 1000000
10
10
  * }
11
11
  */
12
12
  export interface ListCompanyOverridesRequest {
@@ -3,8 +3,8 @@
3
3
  * {
4
4
  * featureId: "feature_id",
5
5
  * q: "q",
6
- * limit: 1,
7
- * offset: 1
6
+ * limit: 1000000,
7
+ * offset: 1000000
8
8
  * }
9
9
  */
10
10
  export interface ListFeatureCompaniesRequest {
@@ -5,8 +5,8 @@
5
5
  * includeUsageAggregation: true,
6
6
  * q: "q",
7
7
  * withoutNegativeEntitlements: true,
8
- * limit: 1,
9
- * offset: 1
8
+ * limit: 1000000,
9
+ * offset: 1000000
10
10
  * }
11
11
  */
12
12
  export interface ListFeatureUsageRequest {
@@ -3,8 +3,8 @@
3
3
  * {
4
4
  * featureId: "feature_id",
5
5
  * q: "q",
6
- * limit: 1,
7
- * offset: 1
6
+ * limit: 1000000,
7
+ * offset: 1000000
8
8
  * }
9
9
  */
10
10
  export interface ListFeatureUsersRequest {
@@ -6,8 +6,8 @@
6
6
  * planVersionId: "plan_version_id",
7
7
  * q: "q",
8
8
  * withMeteredProducts: true,
9
- * limit: 1,
10
- * offset: 1
9
+ * limit: 1000000,
10
+ * offset: 1000000
11
11
  * }
12
12
  */
13
13
  export interface ListPlanEntitlementsRequest {
@@ -10,6 +10,7 @@ export interface UpdatePlanEntitlementRequestBody {
10
10
  billingThreshold?: number;
11
11
  creditConsumptionRate?: number;
12
12
  currency?: string;
13
+ currencyPrices?: Schematic.CurrencyPriceRequestBody[];
13
14
  metricPeriod?: Schematic.UpdatePlanEntitlementRequestBodyMetricPeriod;
14
15
  metricPeriodMonthReset?: Schematic.UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset;
15
16
  monthlyMeteredPriceId?: string;
@@ -3,6 +3,7 @@ export type { CountFeatureCompaniesRequest } from "./CountFeatureCompaniesReques
3
3
  export type { CountFeatureUsageRequest } from "./CountFeatureUsageRequest";
4
4
  export type { CountFeatureUsersRequest } from "./CountFeatureUsersRequest";
5
5
  export type { CountPlanEntitlementsRequest } from "./CountPlanEntitlementsRequest";
6
+ export type { CreateBillingLinkedPlanEntitlementRequestBody } from "./CreateBillingLinkedPlanEntitlementRequestBody";
6
7
  export type { CreateCompanyOverrideRequestBody } from "./CreateCompanyOverrideRequestBody";
7
8
  export type { CreatePlanEntitlementRequestBody } from "./CreatePlanEntitlementRequestBody";
8
9
  export type { DuplicatePlanEntitlementsRequestBody } from "./DuplicatePlanEntitlementsRequestBody";
@@ -0,0 +1,2 @@
1
+ export { EntitlementsClient } from "./client/Client";
2
+ export * from "./client/index";
@@ -0,0 +1,7 @@
1
+ export declare const CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod: {
2
+ readonly AllTime: "all_time";
3
+ readonly CurrentMonth: "current_month";
4
+ readonly CurrentWeek: "current_week";
5
+ readonly CurrentDay: "current_day";
6
+ };
7
+ export type CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod = (typeof CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod)[keyof typeof CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod];
@@ -0,0 +1,5 @@
1
+ export declare const CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset: {
2
+ readonly FirstOfMonth: "first_of_month";
3
+ readonly BillingCycle: "billing_cycle";
4
+ };
5
+ export type CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset = (typeof CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset)[keyof typeof CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset];
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface UpsertPlanEntitlementForBillingProductResponse {
3
+ data: Schematic.PlanEntitlementResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -8,6 +8,8 @@ export * from "./CountFeatureUsersParams";
8
8
  export * from "./CountFeatureUsersResponse";
9
9
  export * from "./CountPlanEntitlementsParams";
10
10
  export * from "./CountPlanEntitlementsResponse";
11
+ export * from "./CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod";
12
+ export * from "./CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset";
11
13
  export * from "./CreateCompanyOverrideRequestBodyMetricPeriod";
12
14
  export * from "./CreateCompanyOverrideRequestBodyMetricPeriodMonthReset";
13
15
  export * from "./CreateCompanyOverrideResponse";
@@ -39,3 +41,4 @@ export * from "./UpdateCompanyOverrideResponse";
39
41
  export * from "./UpdatePlanEntitlementRequestBodyMetricPeriod";
40
42
  export * from "./UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset";
41
43
  export * from "./UpdatePlanEntitlementResponse";
44
+ export * from "./UpsertPlanEntitlementForBillingProductResponse";
@@ -42,8 +42,8 @@ export declare class EventsClient {
42
42
  * @example
43
43
  * await client.events.getEventSummaries({
44
44
  * q: "q",
45
- * limit: 1,
46
- * offset: 1
45
+ * limit: 1000000,
46
+ * offset: 1000000
47
47
  * })
48
48
  */
49
49
  getEventSummaries(request?: Schematic.GetEventSummariesRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<Schematic.GetEventSummariesResponse>;
@@ -64,8 +64,8 @@ export declare class EventsClient {
64
64
  * eventSubtype: "event_subtype",
65
65
  * flagId: "flag_id",
66
66
  * userId: "user_id",
67
- * limit: 1,
68
- * offset: 1
67
+ * limit: 1000000,
68
+ * offset: 1000000
69
69
  * })
70
70
  */
71
71
  listEvents(request?: Schematic.ListEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListEventsResponse>;
@@ -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 GetEventSummariesRequest {
@@ -6,8 +6,8 @@ import type * as Schematic from "../../../../index";
6
6
  * eventSubtype: "event_subtype",
7
7
  * flagId: "flag_id",
8
8
  * userId: "user_id",
9
- * limit: 1,
10
- * offset: 1
9
+ * limit: 1000000,
10
+ * offset: 1000000
11
11
  * }
12
12
  */
13
13
  export interface ListEventsRequest {
@@ -0,0 +1,2 @@
1
+ export { EventsClient } from "./client/Client";
2
+ export * from "./client/index";
@@ -22,13 +22,13 @@ export declare class FeaturesClient {
22
22
  *
23
23
  * @example
24
24
  * await client.features.listFeatures({
25
+ * booleanRequireEvent: true,
26
+ * planVersionId: "plan_version_id",
25
27
  * q: "q",
26
28
  * withoutCompanyOverrideFor: "without_company_override_for",
27
- * planVersionId: "plan_version_id",
28
29
  * withoutPlanEntitlementFor: "without_plan_entitlement_for",
29
- * booleanRequireEvent: true,
30
- * limit: 1,
31
- * offset: 1
30
+ * limit: 1000000,
31
+ * offset: 1000000
32
32
  * })
33
33
  */
34
34
  listFeatures(request?: Schematic.ListFeaturesRequest, requestOptions?: FeaturesClient.RequestOptions): core.HttpResponsePromise<Schematic.ListFeaturesResponse>;
@@ -97,6 +97,27 @@ export declare class FeaturesClient {
97
97
  */
98
98
  deleteFeature(feature_id: string, requestOptions?: FeaturesClient.RequestOptions): core.HttpResponsePromise<Schematic.DeleteFeatureResponse>;
99
99
  private __deleteFeature;
100
+ /**
101
+ * @param {Schematic.CreateBillingLinkedFeatureRequestBody} request
102
+ * @param {FeaturesClient.RequestOptions} requestOptions - Request-specific configuration.
103
+ *
104
+ * @throws {@link Schematic.BadRequestError}
105
+ * @throws {@link Schematic.UnauthorizedError}
106
+ * @throws {@link Schematic.ForbiddenError}
107
+ * @throws {@link Schematic.NotFoundError}
108
+ * @throws {@link Schematic.InternalServerError}
109
+ *
110
+ * @example
111
+ * await client.features.upsertFeatureForBillingProduct({
112
+ * billingProvider: "orb",
113
+ * description: "description",
114
+ * externalResourceId: "external_resource_id",
115
+ * featureType: "boolean",
116
+ * name: "name"
117
+ * })
118
+ */
119
+ upsertFeatureForBillingProduct(request: Schematic.CreateBillingLinkedFeatureRequestBody, requestOptions?: FeaturesClient.RequestOptions): core.HttpResponsePromise<Schematic.UpsertFeatureForBillingProductResponse>;
120
+ private __upsertFeatureForBillingProduct;
100
121
  /**
101
122
  * @param {Schematic.CountFeaturesRequest} request
102
123
  * @param {FeaturesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -109,13 +130,13 @@ export declare class FeaturesClient {
109
130
  *
110
131
  * @example
111
132
  * await client.features.countFeatures({
133
+ * booleanRequireEvent: true,
134
+ * planVersionId: "plan_version_id",
112
135
  * q: "q",
113
136
  * withoutCompanyOverrideFor: "without_company_override_for",
114
- * planVersionId: "plan_version_id",
115
137
  * withoutPlanEntitlementFor: "without_plan_entitlement_for",
116
- * booleanRequireEvent: true,
117
- * limit: 1,
118
- * offset: 1
138
+ * limit: 1000000,
139
+ * offset: 1000000
119
140
  * })
120
141
  */
121
142
  countFeatures(request?: Schematic.CountFeaturesRequest, requestOptions?: FeaturesClient.RequestOptions): core.HttpResponsePromise<Schematic.CountFeaturesResponse>;
@@ -134,8 +155,8 @@ export declare class FeaturesClient {
134
155
  * await client.features.listFlags({
135
156
  * featureId: "feature_id",
136
157
  * q: "q",
137
- * limit: 1,
138
- * offset: 1
158
+ * limit: 1000000,
159
+ * offset: 1000000
139
160
  * })
140
161
  */
141
162
  listFlags(request?: Schematic.ListFlagsRequest, requestOptions?: FeaturesClient.RequestOptions): core.HttpResponsePromise<Schematic.ListFlagsResponse>;
@@ -239,7 +260,7 @@ export declare class FeaturesClient {
239
260
  * resourceIds: ["resource_ids"]
240
261
  * }],
241
262
  * name: "name",
242
- * priority: 1,
263
+ * priority: 1000000,
243
264
  * value: true
244
265
  * }]
245
266
  * })
@@ -308,8 +329,8 @@ export declare class FeaturesClient {
308
329
  * await client.features.countFlags({
309
330
  * featureId: "feature_id",
310
331
  * q: "q",
311
- * limit: 1,
312
- * offset: 1
332
+ * limit: 1000000,
333
+ * offset: 1000000
313
334
  * })
314
335
  */
315
336
  countFlags(request?: Schematic.CountFlagsRequest, requestOptions?: FeaturesClient.RequestOptions): core.HttpResponsePromise<Schematic.CountFlagsResponse>;
@@ -2,29 +2,29 @@ import type * as Schematic from "../../../../index";
2
2
  /**
3
3
  * @example
4
4
  * {
5
+ * booleanRequireEvent: true,
6
+ * planVersionId: "plan_version_id",
5
7
  * q: "q",
6
8
  * withoutCompanyOverrideFor: "without_company_override_for",
7
- * planVersionId: "plan_version_id",
8
9
  * withoutPlanEntitlementFor: "without_plan_entitlement_for",
9
- * booleanRequireEvent: true,
10
- * limit: 1,
11
- * offset: 1
10
+ * limit: 1000000,
11
+ * offset: 1000000
12
12
  * }
13
13
  */
14
14
  export interface CountFeaturesRequest {
15
+ /** Only return boolean features if there is an associated event. Automatically includes boolean in the feature types filter. */
16
+ booleanRequireEvent?: boolean;
17
+ /** Filter by one or more feature types (boolean, event, trait) */
18
+ featureType?: Schematic.FeatureType | Schematic.FeatureType[];
15
19
  ids?: string | string[];
20
+ /** Filter by plan version ID when used with without_plan_entitlement_for; if not provided, the latest published version is used */
21
+ planVersionId?: string;
16
22
  /** Search by feature name or ID */
17
23
  q?: string;
18
24
  /** Filter out features that already have a company override for the specified company ID */
19
25
  withoutCompanyOverrideFor?: string;
20
- /** Filter by plan version ID when used with without_plan_entitlement_for; if not provided, the latest published version is used */
21
- planVersionId?: string;
22
26
  /** Filter out features that already have a plan entitlement for the specified plan ID */
23
27
  withoutPlanEntitlementFor?: string;
24
- /** Filter by one or more feature types (boolean, event, trait) */
25
- featureType?: Schematic.FeatureType | Schematic.FeatureType[];
26
- /** Only return boolean features if there is an associated event. Automatically includes boolean in the feature types filter. */
27
- booleanRequireEvent?: boolean;
28
28
  /** Page limit (default 100) */
29
29
  limit?: number;
30
30
  /** Page offset (default 0) */
@@ -3,8 +3,8 @@
3
3
  * {
4
4
  * featureId: "feature_id",
5
5
  * q: "q",
6
- * limit: 1,
7
- * offset: 1
6
+ * limit: 1000000,
7
+ * offset: 1000000
8
8
  * }
9
9
  */
10
10
  export interface CountFlagsRequest {
@@ -0,0 +1,26 @@
1
+ import type * as Schematic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * billingProvider: "orb",
6
+ * description: "description",
7
+ * externalResourceId: "external_resource_id",
8
+ * featureType: "boolean",
9
+ * name: "name"
10
+ * }
11
+ */
12
+ export interface CreateBillingLinkedFeatureRequestBody {
13
+ billingProvider: Schematic.BillingProviderType;
14
+ description: string;
15
+ eventSubtype?: string;
16
+ externalResourceId: string;
17
+ featureType: Schematic.FeatureType;
18
+ flag?: Schematic.CreateOrUpdateFlagRequestBody;
19
+ icon?: string;
20
+ lifecyclePhase?: Schematic.FeatureLifecyclePhase;
21
+ maintainerId?: string;
22
+ name: string;
23
+ pluralName?: string;
24
+ singularName?: string;
25
+ traitId?: string;
26
+ }
@@ -2,29 +2,29 @@ import type * as Schematic from "../../../../index";
2
2
  /**
3
3
  * @example
4
4
  * {
5
+ * booleanRequireEvent: true,
6
+ * planVersionId: "plan_version_id",
5
7
  * q: "q",
6
8
  * withoutCompanyOverrideFor: "without_company_override_for",
7
- * planVersionId: "plan_version_id",
8
9
  * withoutPlanEntitlementFor: "without_plan_entitlement_for",
9
- * booleanRequireEvent: true,
10
- * limit: 1,
11
- * offset: 1
10
+ * limit: 1000000,
11
+ * offset: 1000000
12
12
  * }
13
13
  */
14
14
  export interface ListFeaturesRequest {
15
+ /** Only return boolean features if there is an associated event. Automatically includes boolean in the feature types filter. */
16
+ booleanRequireEvent?: boolean;
17
+ /** Filter by one or more feature types (boolean, event, trait) */
18
+ featureType?: Schematic.FeatureType | Schematic.FeatureType[];
15
19
  ids?: string | string[];
20
+ /** Filter by plan version ID when used with without_plan_entitlement_for; if not provided, the latest published version is used */
21
+ planVersionId?: string;
16
22
  /** Search by feature name or ID */
17
23
  q?: string;
18
24
  /** Filter out features that already have a company override for the specified company ID */
19
25
  withoutCompanyOverrideFor?: string;
20
- /** Filter by plan version ID when used with without_plan_entitlement_for; if not provided, the latest published version is used */
21
- planVersionId?: string;
22
26
  /** Filter out features that already have a plan entitlement for the specified plan ID */
23
27
  withoutPlanEntitlementFor?: string;
24
- /** Filter by one or more feature types (boolean, event, trait) */
25
- featureType?: Schematic.FeatureType | Schematic.FeatureType[];
26
- /** Only return boolean features if there is an associated event. Automatically includes boolean in the feature types filter. */
27
- booleanRequireEvent?: boolean;
28
28
  /** Page limit (default 100) */
29
29
  limit?: number;
30
30
  /** Page offset (default 0) */
@@ -3,8 +3,8 @@
3
3
  * {
4
4
  * featureId: "feature_id",
5
5
  * q: "q",
6
- * limit: 1,
7
- * offset: 1
6
+ * limit: 1000000,
7
+ * offset: 1000000
8
8
  * }
9
9
  */
10
10
  export interface ListFlagsRequest {