@opengeni/api-router 0.26.1 → 0.30.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.
- package/dist/app.d.ts +1 -0
- package/dist/app.js +5 -3
- package/dist/auth/canonical-human-session-admission.d.ts +27 -0
- package/dist/browser-auth-broker.d.ts +20 -0
- package/dist/browser-controller-authority.d.ts +19 -1
- package/dist/browser-network-route.d.ts +8 -0
- package/dist/{chunk-JIKNR5YL.js → chunk-2PQMSRCB.js} +15518 -6863
- package/dist/chunk-2PQMSRCB.js.map +1 -0
- package/dist/controller-data-plane.d.ts +12 -0
- package/dist/http/auth.d.ts +1 -1
- package/dist/http/sse.d.ts +18 -1
- package/dist/index.js +1 -1
- package/dist/integrations/api-integrations.d.ts +2 -2
- package/dist/integrations/fiken.d.ts +233 -0
- package/dist/integrations/google-drive.d.ts +6 -6
- package/dist/integrations/provider-oauth.d.ts +0 -2
- package/dist/integrations/slack-bot.d.ts +171 -1
- package/dist/integrations/slack-interactions.d.ts +17 -5
- package/dist/interaction-holder-heartbeat.d.ts +17 -0
- package/dist/interaction-metrics.d.ts +11 -0
- package/dist/mcp/server.d.ts +3 -2
- package/dist/model-catalog.d.ts +1 -0
- package/dist/routes/canonical-human-identities.d.ts +3 -0
- package/dist/routes/channels.d.ts +3 -0
- package/dist/routes/integration-facets.d.ts +3 -0
- package/dist/routes/interaction-resources.d.ts +5 -0
- package/dist/routes/organization-memberships.d.ts +3 -0
- package/dist/routes/sessions.d.ts +2 -1
- package/dist/routes/slack-task-policy.d.ts +3 -0
- package/dist/routes/supergrok.d.ts +3 -0
- package/dist/sandbox/channel-a.d.ts +8 -1
- package/dist/sandbox/machines.d.ts +2 -2
- package/dist/sandbox/viewer.d.ts +3 -1
- package/dist/slack-reaction-files.d.ts +27 -0
- package/dist/transcription/providers/xai-subscription.d.ts +8 -0
- package/dist/xai-realtime.d.ts +26 -0
- package/dist/xai-subscription-auth.d.ts +23 -0
- package/package.json +17 -16
- package/src/app.ts +352 -49
- package/src/auth/canonical-human-session-admission.ts +116 -0
- package/src/auth/managed-auth.ts +101 -0
- package/src/browser-auth-broker.ts +155 -0
- package/src/browser-controller-authority.ts +50 -1
- package/src/browser-network-route.ts +34 -0
- package/src/controller-data-plane.ts +35 -0
- package/src/http/auth.ts +27 -9
- package/src/http/sse.ts +229 -5
- package/src/integrations/api-integrations.ts +57 -42
- package/src/integrations/fiken.ts +1230 -0
- package/src/integrations/google-drive.ts +31 -26
- package/src/integrations/provider-oauth.ts +70 -91
- package/src/integrations/slack-bot.ts +638 -9
- package/src/integrations/slack-interactions.ts +1583 -73
- package/src/interaction-holder-heartbeat.ts +95 -0
- package/src/interaction-metrics.ts +159 -0
- package/src/mcp/documents.ts +115 -6
- package/src/mcp/server.ts +865 -242
- package/src/model-catalog.ts +19 -6
- package/src/routes/api-integrations.ts +32 -29
- package/src/routes/browser-identities.ts +24 -0
- package/src/routes/browser-sessions.ts +2122 -183
- package/src/routes/canonical-human-identities.ts +156 -0
- package/src/routes/channels.ts +90 -0
- package/src/routes/computer-sessions.ts +441 -86
- package/src/routes/connections.ts +141 -4
- package/src/routes/{integration-features.ts → integration-facets.ts} +63 -63
- package/src/routes/interaction-resources.ts +595 -0
- package/src/routes/organization-memberships.ts +53 -0
- package/src/routes/plugins.ts +2 -1
- package/src/routes/sessions.ts +419 -43
- package/src/routes/skills.ts +92 -10
- package/src/routes/slack-task-policy.ts +115 -0
- package/src/routes/supergrok.ts +717 -0
- package/src/routes/transcription-recordings.ts +9 -2
- package/src/routes/transcriptions.ts +2 -1
- package/src/routes/video-generation.ts +34 -4
- package/src/routes/workspaces.ts +22 -4
- package/src/sandbox/channel-a.ts +29 -2
- package/src/sandbox/machines.ts +5 -5
- package/src/sandbox/viewer.ts +10 -3
- package/src/slack-reaction-files.ts +181 -0
- package/src/transcription/providers/xai-subscription.ts +110 -0
- package/src/transcription/service.ts +17 -2
- package/src/xai-realtime.ts +216 -0
- package/src/xai-subscription-auth.ts +132 -0
- package/dist/chunk-JIKNR5YL.js.map +0 -1
- package/dist/routes/integration-features.d.ts +0 -3
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type Settings } from "@opengeni/config";
|
|
2
|
+
import type { GatewayRealtimeInitialItem } from "@opengeni/contracts";
|
|
3
|
+
import { type Database } from "@opengeni/db";
|
|
4
|
+
export declare class XaiRealtimeBrokerError extends Error {
|
|
5
|
+
readonly code: "model_unavailable" | "credential_unavailable" | "provider_error" | "invalid_provider_response";
|
|
6
|
+
readonly providerStatus: number | null;
|
|
7
|
+
constructor(code: "model_unavailable" | "credential_unavailable" | "provider_error" | "invalid_provider_response", message: string, providerStatus?: number | null);
|
|
8
|
+
}
|
|
9
|
+
export type XaiRealtimeConnectionSecret = {
|
|
10
|
+
token: string;
|
|
11
|
+
url: string;
|
|
12
|
+
upstreamModelId: string;
|
|
13
|
+
expiresAt: number | null;
|
|
14
|
+
initialItems: GatewayRealtimeInitialItem[];
|
|
15
|
+
instructions: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function createXaiRealtimeConnectionSecret(input: {
|
|
18
|
+
db: Database;
|
|
19
|
+
settings: Settings;
|
|
20
|
+
accountId: string;
|
|
21
|
+
workspaceId: string;
|
|
22
|
+
subjectId: string;
|
|
23
|
+
sessionId: string;
|
|
24
|
+
model: string;
|
|
25
|
+
fetchImpl?: typeof fetch;
|
|
26
|
+
}): Promise<XaiRealtimeConnectionSecret>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Settings } from "@opengeni/config";
|
|
2
|
+
import type { XaiProviderAccountAuthoritySnapshotV1 } from "@opengeni/contracts";
|
|
3
|
+
import { type Database } from "@opengeni/db";
|
|
4
|
+
import { type XaiFetch, type XaiProxyAuthContext } from "@opengeni/xai-subscription";
|
|
5
|
+
export type XaiSubscriptionAuthorization = {
|
|
6
|
+
context: XaiProxyAuthContext;
|
|
7
|
+
credentialId: string;
|
|
8
|
+
authoritySnapshot: XaiProviderAccountAuthoritySnapshotV1;
|
|
9
|
+
rotationEnabled: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare function buildXaiSubscriptionAuthorization(input: {
|
|
12
|
+
db: Database;
|
|
13
|
+
settings: Settings;
|
|
14
|
+
accountId: string;
|
|
15
|
+
workspaceId: string;
|
|
16
|
+
subjectId: string;
|
|
17
|
+
shardKey: string;
|
|
18
|
+
pinnedCredentialId?: string | null;
|
|
19
|
+
pinSource?: "manual" | "policy" | null;
|
|
20
|
+
authoritySnapshot?: XaiProviderAccountAuthoritySnapshotV1;
|
|
21
|
+
sessionId?: string;
|
|
22
|
+
fetch?: XaiFetch;
|
|
23
|
+
}): Promise<XaiSubscriptionAuthorization>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/api-router",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "OpenGeni HTTP surface: the Hono adapter/router (createApp), routes, MCP HTTP transport, and HTTP access adapters over @opengeni/core. An engine-distribution surface — its runtime closure includes engine-internal packages.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -43,22 +43,23 @@
|
|
|
43
43
|
"@hono/zod-validator": "^0.7.6",
|
|
44
44
|
"@llamaindex/liteparse": "^1.5.3",
|
|
45
45
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
46
|
-
"@opengeni/agent-proto": "^0.
|
|
47
|
-
"@opengeni/artifact-tool": "^0.2.
|
|
48
|
-
"@opengeni/capabilities": "^0.
|
|
49
|
-
"@opengeni/codemode": "^0.
|
|
50
|
-
"@opengeni/codex": "^0.2.
|
|
51
|
-
"@opengeni/config": "^0.
|
|
52
|
-
"@opengeni/contracts": "^0.
|
|
53
|
-
"@opengeni/core": "^0.
|
|
54
|
-
"@opengeni/db": "^0.
|
|
55
|
-
"@opengeni/documents": "^0.5.
|
|
56
|
-
"@opengeni/events": "^0.3.
|
|
57
|
-
"@opengeni/github": "^0.4.
|
|
46
|
+
"@opengeni/agent-proto": "^0.5.0",
|
|
47
|
+
"@opengeni/artifact-tool": "^0.2.8",
|
|
48
|
+
"@opengeni/capabilities": "^0.2.0",
|
|
49
|
+
"@opengeni/codemode": "^0.4.1",
|
|
50
|
+
"@opengeni/codex": "^0.2.16",
|
|
51
|
+
"@opengeni/config": "^0.16.1",
|
|
52
|
+
"@opengeni/contracts": "^0.50.0",
|
|
53
|
+
"@opengeni/core": "^0.28.0",
|
|
54
|
+
"@opengeni/db": "^0.36.0",
|
|
55
|
+
"@opengeni/documents": "^0.5.38",
|
|
56
|
+
"@opengeni/events": "^0.3.109",
|
|
57
|
+
"@opengeni/github": "^0.4.56",
|
|
58
58
|
"@opengeni/network": "^0.2.2",
|
|
59
|
-
"@opengeni/observability": "^0.
|
|
60
|
-
"@opengeni/runtime": "^0.
|
|
61
|
-
"@opengeni/storage": "^0.2.
|
|
59
|
+
"@opengeni/observability": "^0.7.5",
|
|
60
|
+
"@opengeni/runtime": "^0.23.0",
|
|
61
|
+
"@opengeni/storage": "^0.2.93",
|
|
62
|
+
"@opengeni/xai-subscription": "^0.1.0",
|
|
62
63
|
"@temporalio/client": "^1.17.0",
|
|
63
64
|
"better-auth": "^1.6.14",
|
|
64
65
|
"hono": "^4.12.18",
|