@opengeni/api-router 0.16.1 → 0.16.4
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/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/api-router",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.4",
|
|
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": {
|
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
45
45
|
"@opengeni/agent-proto": "^0.3.0",
|
|
46
46
|
"@opengeni/codex": "^0.2.9",
|
|
47
|
-
"@opengeni/config": "^0.
|
|
48
|
-
"@opengeni/contracts": "^0.
|
|
49
|
-
"@opengeni/core": "^0.
|
|
50
|
-
"@opengeni/db": "^0.
|
|
51
|
-
"@opengeni/documents": "^0.2.
|
|
52
|
-
"@opengeni/events": "^0.3.
|
|
53
|
-
"@opengeni/github": "^0.4.
|
|
47
|
+
"@opengeni/config": "^0.10.0",
|
|
48
|
+
"@opengeni/contracts": "^0.31.0",
|
|
49
|
+
"@opengeni/core": "^0.18.0",
|
|
50
|
+
"@opengeni/db": "^0.22.1",
|
|
51
|
+
"@opengeni/documents": "^0.2.69",
|
|
52
|
+
"@opengeni/events": "^0.3.59",
|
|
53
|
+
"@opengeni/github": "^0.4.16",
|
|
54
54
|
"@opengeni/network": "^0.1.1",
|
|
55
|
-
"@opengeni/observability": "^0.4.
|
|
56
|
-
"@opengeni/runtime": "^0.
|
|
57
|
-
"@opengeni/storage": "^0.2.
|
|
55
|
+
"@opengeni/observability": "^0.4.3",
|
|
56
|
+
"@opengeni/runtime": "^0.17.0",
|
|
57
|
+
"@opengeni/storage": "^0.2.53",
|
|
58
58
|
"@temporalio/client": "^1.17.0",
|
|
59
59
|
"better-auth": "^1.6.14",
|
|
60
60
|
"hono": "^4.12.18",
|
package/src/routes/documents.ts
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
ensureDefaultBase,
|
|
31
31
|
getDocument,
|
|
32
32
|
getDocumentBase,
|
|
33
|
-
|
|
33
|
+
listDocumentBasesEnsuringDefault,
|
|
34
34
|
listDocuments,
|
|
35
35
|
moveDocumentToBase,
|
|
36
36
|
queueDocumentForReindex,
|
|
@@ -62,9 +62,14 @@ export function registerDocumentRoutes(app: Hono, deps: ApiRouteDeps): void {
|
|
|
62
62
|
|
|
63
63
|
app.get("/v1/workspaces/:workspaceId/document-bases", async (c) => {
|
|
64
64
|
const workspaceId = c.req.param("workspaceId");
|
|
65
|
-
await requireAccessGrant(c, deps, workspaceId, "documents:search");
|
|
65
|
+
const grant = await requireAccessGrant(c, deps, workspaceId, "documents:search");
|
|
66
66
|
return c.json(
|
|
67
|
-
(
|
|
67
|
+
(
|
|
68
|
+
await listDocumentBasesEnsuringDefault(db, {
|
|
69
|
+
accountId: grant.accountId,
|
|
70
|
+
workspaceId,
|
|
71
|
+
})
|
|
72
|
+
).map((base) => DocumentBase.parse(base)),
|
|
68
73
|
);
|
|
69
74
|
});
|
|
70
75
|
|
package/src/routes/sessions.ts
CHANGED
|
@@ -1367,6 +1367,7 @@ export function registerSessionRoutes(app: Hono, deps: SessionRouteDeps): void {
|
|
|
1367
1367
|
accountId: grant.accountId,
|
|
1368
1368
|
workspaceId,
|
|
1369
1369
|
sessionId,
|
|
1370
|
+
subjectId: grant.subjectId,
|
|
1370
1371
|
payload: event.payload,
|
|
1371
1372
|
clientEventId: event.clientEventId ?? null,
|
|
1372
1373
|
});
|