@opengeni/core 2.9.4-canary.3 → 2.10.0-canary.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/application/session-mcp-credential-rotation.d.ts +29 -0
- package/dist/domain/pr-review.d.ts +1 -1
- package/dist/domain/sessions.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8043 -7922
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
- package/src/application/session-mcp-credential-rotation.ts +174 -0
- package/src/domain/sessions.ts +1 -1
- package/src/index.ts +1 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { RotateSessionMcpCredentialsRequest, type AccessGrant } from "@opengeni/contracts";
|
|
2
|
+
import { type Database } from "@opengeni/db";
|
|
3
|
+
import type { Settings } from "@opengeni/config";
|
|
4
|
+
import { type AccessGrantAuthorization } from "../access/index.js";
|
|
5
|
+
import { type SessionAuthorizationDependencies } from "../session-authorization.js";
|
|
6
|
+
/** HMAC domains separate request identity from key availability. The key tag
|
|
7
|
+
* carries no request material and neither fingerprint is returned publicly. */
|
|
8
|
+
export declare function sessionMcpRotationFingerprint(key: Uint8Array, scope: {
|
|
9
|
+
accountId: string;
|
|
10
|
+
workspaceId: string;
|
|
11
|
+
sessionId: string;
|
|
12
|
+
subjectId: string;
|
|
13
|
+
}, request: RotateSessionMcpCredentialsRequest): {
|
|
14
|
+
digestKeyTag: string;
|
|
15
|
+
requestDigest: string;
|
|
16
|
+
};
|
|
17
|
+
/** HTTP/SDK host boundary only. The mandatory callback re-resolves request
|
|
18
|
+
* authentication with the transaction handle, not a cached route-time grant. */
|
|
19
|
+
export declare function rotateSessionMcpCredentialsForRequest(deps: SessionAuthorizationDependencies & {
|
|
20
|
+
settings: Settings;
|
|
21
|
+
}, authorization: AccessGrantAuthorization, sessionId: string, raw: unknown, reauthorize: (tx: Database) => Promise<AccessGrant>): Promise<{
|
|
22
|
+
operationKey: string;
|
|
23
|
+
sessionId: string;
|
|
24
|
+
servers: {
|
|
25
|
+
id: string;
|
|
26
|
+
credentialVersion: number;
|
|
27
|
+
}[];
|
|
28
|
+
appliedAt: string;
|
|
29
|
+
}>;
|
|
@@ -42,7 +42,7 @@ export declare const prReviewAutomationAdapter: {
|
|
|
42
42
|
}) => {
|
|
43
43
|
initialMessage: string;
|
|
44
44
|
sessionTemplate: {
|
|
45
|
-
bundledSkillIds?: ("builtin:opengeni-documents" | "builtin:opengeni-presentations" | "builtin:opengeni-projects" | "builtin:opengeni-sites" | "builtin:opengeni-skills" | "builtin:opengeni-spreadsheets" | "builtin:opengeni-video-generation")[] | undefined;
|
|
45
|
+
bundledSkillIds?: ("builtin:document-parsing" | "builtin:opengeni-documents" | "builtin:opengeni-presentations" | "builtin:opengeni-projects" | "builtin:opengeni-sites" | "builtin:opengeni-skills" | "builtin:opengeni-spreadsheets" | "builtin:opengeni-video-generation" | "builtin:opengeni-visualize")[] | undefined;
|
|
46
46
|
prompt: string;
|
|
47
47
|
instructions: string | null;
|
|
48
48
|
resources: ({
|
|
@@ -67,6 +67,7 @@ export type FrozenCreationInitiator = {
|
|
|
67
67
|
}>;
|
|
68
68
|
};
|
|
69
69
|
export declare function creationInitiatorForGrant(grant: AccessGrant): FrozenCreationInitiator;
|
|
70
|
+
export declare function normalizedSessionMcpCredentialHeaders(headers: Record<string, string> | undefined): Record<string, string>;
|
|
70
71
|
export declare function settingsWithSessionMcpServerMetadata(settings: Settings, servers: SessionMcpServerMetadata[]): Settings;
|
|
71
72
|
export type CreateSessionOutcome = {
|
|
72
73
|
session: CreateSessionResponse;
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from "./access/index.js";
|
|
|
13
13
|
export * from "./application/external-workspace-members.js";
|
|
14
14
|
export * from "./application/external-identity-lifecycle.js";
|
|
15
15
|
export * from "./application/external-continuation.js";
|
|
16
|
+
export * from "./application/session-mcp-credential-rotation.js";
|
|
16
17
|
export * from "./application/external-link-work-admission.js";
|
|
17
18
|
export * from "./application/connect-authority.js";
|
|
18
19
|
export * from "./application/host-mcp-owner.js";
|