@opengeni/api-router 3.2.2 → 3.4.0

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 (45) hide show
  1. package/dist/access-grant-rls.d.ts +15 -0
  2. package/dist/app.js +1 -1
  3. package/dist/billing-stripe-customer.d.ts +18 -0
  4. package/dist/billing-subscription-store.d.ts +34 -0
  5. package/dist/billing-subscriptions.d.ts +64 -0
  6. package/dist/{chunk-PQBHZ2YH.js → chunk-6DZ4H5JQ.js} +3133 -1711
  7. package/dist/{chunk-PQBHZ2YH.js.map → chunk-6DZ4H5JQ.js.map} +1 -1
  8. package/dist/index.js +4 -2
  9. package/dist/index.js.map +1 -1
  10. package/dist/integrations/marketplace-plugin.d.ts +43 -43
  11. package/dist/mcp/server.d.ts +11 -1
  12. package/dist/routes/browser-sessions.d.ts +23 -2
  13. package/dist/routes/sessions.d.ts +1 -0
  14. package/dist/sandbox/channel-a.d.ts +10 -1
  15. package/dist/site-publishing/agent-data-tools.d.ts +5 -5
  16. package/dist/site-publishing/agent-session.d.ts +3 -2
  17. package/dist/site-publishing/runtime.d.ts +7 -6
  18. package/dist/site-publishing/service.d.ts +8 -11
  19. package/dist/site-publishing/session-request-authority.d.ts +3 -0
  20. package/package.json +24 -24
  21. package/src/access-grant-rls.ts +99 -10
  22. package/src/app.ts +105 -43
  23. package/src/billing-stripe-customer.ts +40 -0
  24. package/src/billing-subscription-store.ts +121 -0
  25. package/src/billing-subscriptions.ts +759 -0
  26. package/src/http/sse.ts +5 -1
  27. package/src/index.ts +3 -0
  28. package/src/mcp/action-catalog.gen.ts +113 -0
  29. package/src/mcp/action-schema-imports.gen.ts +5 -1
  30. package/src/mcp/server.ts +28 -0
  31. package/src/routes/billing.ts +161 -21
  32. package/src/routes/browser-sessions.ts +420 -26
  33. package/src/routes/computer-sessions.ts +102 -39
  34. package/src/routes/insights-usage.ts +22 -0
  35. package/src/routes/organization-memberships.ts +12 -0
  36. package/src/routes/sessions.ts +30 -5
  37. package/src/routes/site-runtime.ts +62 -20
  38. package/src/sandbox/channel-a.ts +18 -1
  39. package/src/sandbox/metrics-ingestion.ts +1 -0
  40. package/src/site-frame-guard.ts +11 -2
  41. package/src/site-publishing/agent-data-tools.ts +16 -8
  42. package/src/site-publishing/agent-session.ts +24 -6
  43. package/src/site-publishing/runtime.ts +29 -7
  44. package/src/site-publishing/service.ts +65 -77
  45. package/src/site-publishing/session-request-authority.ts +14 -0
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  startSlackInteractionPump,
16
16
  startTemporalScheduleCleanupPump,
17
17
  withAccessGrantSessionRlsContext
18
- } from "./chunk-PQBHZ2YH.js";
18
+ } from "./chunk-6DZ4H5JQ.js";
19
19
  import "./chunk-OGQDXVXY.js";
20
20
 
21
21
  // src/index.ts
@@ -822,6 +822,7 @@ function helloRuntimeCapabilities(hello) {
822
822
  operationCpuQuota: caps.operationCpuQuota === true,
823
823
  transactionalFsWrite: caps.transactionalFsWrite === true,
824
824
  credentialRenew: caps.credentialRenew === true,
825
+ browserControlHttp: caps.browserControlHttp === true,
825
826
  screenControl: caps.consentedScreenControl === true,
826
827
  ...caps.macPermissions ? enrollmentMacPermissionCapabilities(caps.macPermissions) : {}
827
828
  };
@@ -4064,7 +4065,8 @@ async function startApi(options = {}) {
4064
4065
  const dbClient = createDb(settings.databaseUrl, {
4065
4066
  max: settings.apiDatabasePoolMax,
4066
4067
  ...searchPath ? { searchPath } : {},
4067
- rlsStrategy: settings.rlsStrategy
4068
+ rlsStrategy: settings.rlsStrategy,
4069
+ ...settings.databasePreparedStatements === void 0 ? {} : { preparedStatements: settings.databasePreparedStatements }
4068
4070
  });
4069
4071
  let bus;
4070
4072
  let workflowClient;