@opengeni/db 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/attached-browser-devices.d.ts +10 -6
- package/dist/{chunk-V5RB2JM3.js → chunk-3CSN5YUS.js} +9 -4
- package/dist/chunk-3CSN5YUS.js.map +1 -0
- package/dist/{chunk-RB27IMCX.js → chunk-3JHBH7LA.js} +3 -3
- package/dist/{chunk-N733GXFH.js → chunk-3VEDJM6S.js} +3 -3
- package/dist/{chunk-2HZ5YPMZ.js → chunk-7GORHVP2.js} +3894 -3806
- package/dist/{chunk-2HZ5YPMZ.js.map → chunk-7GORHVP2.js.map} +1 -1
- package/dist/{chunk-HV72U5ZC.js → chunk-BR4TNIVA.js} +2 -2
- package/dist/{chunk-XRKVFGZ3.js → chunk-DSTAGKBM.js} +4 -4
- package/dist/{chunk-A6YJT4K2.js → chunk-FJNSQ3K3.js} +2 -2
- package/dist/{chunk-AINSVQYI.js → chunk-GYQABR2L.js} +35 -5
- package/dist/chunk-GYQABR2L.js.map +1 -0
- package/dist/{chunk-XAMEXLVJ.js → chunk-IYUTXSFX.js} +11 -2
- package/dist/{chunk-XAMEXLVJ.js.map → chunk-IYUTXSFX.js.map} +1 -1
- package/dist/{chunk-REL42QPT.js → chunk-UWJCRJC5.js} +2 -2
- package/dist/connection-metadata.d.ts +10 -0
- package/dist/index.d.ts +9 -3
- package/dist/index.js +18 -10
- package/dist/migrate.js +10 -10
- package/dist/provision-roles.js +1 -1
- package/dist/retained-provider-commands.js +4 -4
- package/dist/runtime-posture.d.ts +2 -2
- package/dist/session-background-commands.js +2 -2
- package/dist/session-command-output.js +3 -3
- package/dist/session-mcp-credential-rotation.js +2 -2
- package/dist/session-tenancy.d.ts +9 -1
- package/dist/session-tenancy.js +5 -3
- package/dist/subscription-core/operations.d.ts +11 -2
- package/dist/{subscription-core-codex-TIIFU3BD.js → subscription-core-codex-XG2FNEPR.js} +4 -4
- package/dist/{subscription-core-codex-compat-PTNBUGJ7.js → subscription-core-codex-compat-3NPCY6YG.js} +5 -5
- package/dist/subscription-core-codex-operations.d.ts +20 -4
- package/dist/workspace-tool-defaults.js +2 -2
- package/drizzle/0777_workspace_admin_subscription_connections.sql +92 -0
- package/drizzle/0779_provider_connection_home_workspace.sql +49 -0
- package/drizzle/0780_only_me_vault_availability.sql +141 -0
- package/drizzle/0781_session_usage_limit_statement_seed.sql +59 -0
- package/package.json +9 -9
- package/src/attached-browser-devices.ts +93 -28
- package/src/connection-metadata.ts +26 -2
- package/src/index.ts +11 -4
- package/src/provision-roles.ts +6 -2
- package/src/runtime-posture.ts +1 -0
- package/src/session-tenancy.ts +47 -2
- package/src/subscription-core/administered-connections.ts +12 -3
- package/src/subscription-core/connections.ts +67 -27
- package/src/subscription-core/operation-connections.ts +3 -1
- package/src/subscription-core/operations.ts +23 -2
- package/src/subscription-core-codex-adapter.ts +10 -0
- package/src/subscription-core-codex-operations.ts +40 -0
- package/dist/chunk-AINSVQYI.js.map +0 -1
- package/dist/chunk-V5RB2JM3.js.map +0 -1
- /package/dist/{chunk-RB27IMCX.js.map → chunk-3JHBH7LA.js.map} +0 -0
- /package/dist/{chunk-N733GXFH.js.map → chunk-3VEDJM6S.js.map} +0 -0
- /package/dist/{chunk-HV72U5ZC.js.map → chunk-BR4TNIVA.js.map} +0 -0
- /package/dist/{chunk-XRKVFGZ3.js.map → chunk-DSTAGKBM.js.map} +0 -0
- /package/dist/{chunk-A6YJT4K2.js.map → chunk-FJNSQ3K3.js.map} +0 -0
- /package/dist/{chunk-REL42QPT.js.map → chunk-UWJCRJC5.js.map} +0 -0
- /package/dist/{subscription-core-codex-TIIFU3BD.js.map → subscription-core-codex-XG2FNEPR.js.map} +0 -0
- /package/dist/{subscription-core-codex-compat-PTNBUGJ7.js.map → subscription-core-codex-compat-3NPCY6YG.js.map} +0 -0
|
@@ -18,6 +18,14 @@ export type ReconcileAttachedBrowserInventoryResult = {
|
|
|
18
18
|
changed: boolean;
|
|
19
19
|
revision: number;
|
|
20
20
|
};
|
|
21
|
+
/** Who is looking at a workspace's attached browsers. Personal (Only me)
|
|
22
|
+
* machines show their browsers only to their owner, exactly like the machines
|
|
23
|
+
* themselves; for an agent this is the person its turn acts for. */
|
|
24
|
+
export type AttachedBrowserViewer = {
|
|
25
|
+
accountId: string;
|
|
26
|
+
workspaceId: string;
|
|
27
|
+
subjectId: string;
|
|
28
|
+
};
|
|
21
29
|
/** Reconcile one full browser-bridge snapshot. The enrollment row serializes
|
|
22
30
|
* concurrent heartbeats; a lower revision from the same bridge generation is
|
|
23
31
|
* ignored, and a replay only refreshes liveness. */
|
|
@@ -44,14 +52,10 @@ export declare function disconnectAttachedBrowserDevices(db: Database, input: {
|
|
|
44
52
|
changed: boolean;
|
|
45
53
|
revision: number;
|
|
46
54
|
}>;
|
|
47
|
-
export declare function listAttachedBrowserDevices(db: Database, input: {
|
|
48
|
-
accountId: string;
|
|
49
|
-
workspaceId: string;
|
|
55
|
+
export declare function listAttachedBrowserDevices(db: Database, input: AttachedBrowserViewer & {
|
|
50
56
|
includeDisconnected?: boolean;
|
|
51
57
|
}): Promise<AttachedBrowserDeviceListResponseValue>;
|
|
52
|
-
export declare function getAttachedBrowserDevice(db: Database, input: {
|
|
53
|
-
accountId: string;
|
|
54
|
-
workspaceId: string;
|
|
58
|
+
export declare function getAttachedBrowserDevice(db: Database, input: AttachedBrowserViewer & {
|
|
55
59
|
deviceId: string;
|
|
56
60
|
}): Promise<AttachedBrowserDeviceValue>;
|
|
57
61
|
export {};
|
|
@@ -624,7 +624,8 @@ var VAULT_RUNTIME_ROUTINES = [
|
|
|
624
624
|
"apply_secret_answers(uuid, uuid, jsonb, jsonb)",
|
|
625
625
|
"link_provider_vault(jsonb, jsonb)",
|
|
626
626
|
"provider_vault_sync_target(uuid, jsonb)",
|
|
627
|
-
"provider_vault_item_ref(uuid, uuid, text, jsonb)"
|
|
627
|
+
"provider_vault_item_ref(uuid, uuid, text, jsonb)",
|
|
628
|
+
"provider_connection_home_workspace(uuid)"
|
|
628
629
|
];
|
|
629
630
|
var VAULT_TABLES = [
|
|
630
631
|
"vaults",
|
|
@@ -6481,8 +6482,12 @@ BEGIN
|
|
|
6481
6482
|
vault_table text;
|
|
6482
6483
|
BEGIN
|
|
6483
6484
|
FOREACH vault_routine IN ARRAY ARRAY[${VAULT_RUNTIME_ROUTINES.map((routine) => literal(routine)).join(", ")}] LOOP
|
|
6484
|
-
|
|
6485
|
-
|
|
6485
|
+
-- Later vault routines arrive with later migrations; runtime posture
|
|
6486
|
+
-- reports any that are missing.
|
|
6487
|
+
IF to_regprocedure(format('%I.%s', ${literal(schema)}, vault_routine)) IS NOT NULL THEN
|
|
6488
|
+
EXECUTE format('REVOKE ALL ON FUNCTION %I.%s FROM PUBLIC', ${literal(schema)}, vault_routine);
|
|
6489
|
+
EXECUTE format('GRANT EXECUTE ON FUNCTION %I.%s TO %I', ${literal(schema)}, vault_routine, ${literal(role)});
|
|
6490
|
+
END IF;
|
|
6486
6491
|
END LOOP;
|
|
6487
6492
|
FOREACH vault_table IN ARRAY ARRAY[${VAULT_TABLES.map((table) => literal(table)).join(", ")}] LOOP
|
|
6488
6493
|
EXECUTE format('REVOKE ALL PRIVILEGES ON TABLE %I.%I FROM %I', ${literal(schema)}, vault_table, ${literal(role)});
|
|
@@ -7407,4 +7412,4 @@ export {
|
|
|
7407
7412
|
provisionRoles,
|
|
7408
7413
|
runProvisionRolesCli
|
|
7409
7414
|
};
|
|
7410
|
-
//# sourceMappingURL=chunk-
|
|
7415
|
+
//# sourceMappingURL=chunk-3CSN5YUS.js.map
|