@opengeni/api-router 1.4.5-canary.38533006839001 → 2.0.1
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.
- package/dist/app.js +1 -1
- package/dist/attached-browser-viewer.d.ts +11 -0
- package/dist/auth/managed-auth-session-adapter.d.ts +6 -0
- package/dist/{chunk-LWJIMOGC.js → chunk-ZDTWXRFX.js} +2075 -2013
- package/dist/{chunk-LWJIMOGC.js.map → chunk-ZDTWXRFX.js.map} +1 -1
- package/dist/connection-ownership.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/integrations/marketplace-plugin.d.ts +43 -43
- package/dist/routes/native-app-auth.d.ts +5 -0
- package/dist/sandbox/screen-control.d.ts +1 -1
- package/package.json +23 -22
- package/src/access-grant-rls.ts +25 -6
- package/src/app.ts +1 -0
- package/src/attached-browser-viewer.ts +26 -0
- package/src/auth/managed-auth-session-adapter.ts +38 -25
- package/src/connection-ownership.ts +2 -2
- package/src/integrations/oauth-client.ts +18 -19
- package/src/mcp/action-descriptions.ts +1 -1
- package/src/mcp/server.ts +6 -6
- package/src/routes/browser-sessions.ts +7 -11
- package/src/routes/codex-core.ts +5 -2
- package/src/routes/computer-sessions.ts +5 -7
- package/src/routes/machines.ts +1 -1
- package/src/routes/native-app-auth.ts +51 -4
- package/src/routes/sessions.ts +21 -2
- package/src/routes/subscription-pool-core.ts +2 -2
- package/src/routes/vault-providers.ts +3 -3
- package/src/sandbox/screen-control.ts +1 -1
package/dist/app.js
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AccessGrant } from "@opengeni/contracts";
|
|
2
|
+
import { type ApiRouteDeps } from "@opengeni/core";
|
|
3
|
+
import type { AttachedBrowserViewer } from "@opengeni/db";
|
|
4
|
+
/**
|
|
5
|
+
* The person whose machine access decides which attached browsers a caller
|
|
6
|
+
* may see and control. Personal (Only me) machines belong to one person, so a
|
|
7
|
+
* human sees and controls their own; an agent acts for the person who started
|
|
8
|
+
* its turn (never merely for the workspace). Other callers (keys, services)
|
|
9
|
+
* reach only machines that are not personal.
|
|
10
|
+
*/
|
|
11
|
+
export declare function attachedBrowserViewer(deps: Pick<ApiRouteDeps, "db">, grant: AccessGrant, workspaceId: string): Promise<AttachedBrowserViewer>;
|
|
@@ -4,3 +4,9 @@ import { type ManagedAuth } from "@opengeni/core";
|
|
|
4
4
|
/** Server-only proof for a product-owned endpoint; never returned to a browser. */
|
|
5
5
|
export declare function managedAuthSelectedProofHeaders(auth: ManagedAuth, token: string): Promise<Headers>;
|
|
6
6
|
export declare function createBetterAuthSessionAdapter(auth: ManagedAuth, db: Database): ManagedAuthSessionAdapter;
|
|
7
|
+
/**
|
|
8
|
+
* The provider's own session cookie for an exact session token (or its
|
|
9
|
+
* expiry when `token` is null), plus invalidation of stale provider cache
|
|
10
|
+
* cookies, exactly as a browser sign-in would set them.
|
|
11
|
+
*/
|
|
12
|
+
export declare function managedAuthSessionCookieHeaders(auth: ManagedAuth, token: string | null, currentCookieHeader?: string | null): Promise<string[]>;
|