@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/app.js CHANGED
@@ -22,7 +22,7 @@ import {
22
22
  validateToolRefs,
23
23
  withDefaultEnabledCapabilityMcpTools,
24
24
  workflowIdForSession
25
- } from "./chunk-ZD5YBUNA.js";
25
+ } from "./chunk-TFHWQL2W.js";
26
26
  export {
27
27
  API_MAX_REQUEST_BODY_BYTES,
28
28
  allowedCorsOrigin,
@@ -11999,7 +11999,7 @@ import {
11999
11999
  ensureDefaultBase,
12000
12000
  getDocument,
12001
12001
  getDocumentBase,
12002
- listDocumentBases as listDocumentBases2,
12002
+ listDocumentBasesEnsuringDefault,
12003
12003
  listDocuments,
12004
12004
  moveDocumentToBase,
12005
12005
  queueDocumentForReindex,
@@ -12677,9 +12677,12 @@ function registerDocumentRoutes(app, deps) {
12677
12677
  });
12678
12678
  app.get("/v1/workspaces/:workspaceId/document-bases", async (c) => {
12679
12679
  const workspaceId = c.req.param("workspaceId");
12680
- await requireAccessGrant5(c, deps, workspaceId, "documents:search");
12680
+ const grant = await requireAccessGrant5(c, deps, workspaceId, "documents:search");
12681
12681
  return c.json(
12682
- (await listDocumentBases2(db, workspaceId)).map((base) => DocumentBase.parse(base))
12682
+ (await listDocumentBasesEnsuringDefault(db, {
12683
+ accountId: grant.accountId,
12684
+ workspaceId
12685
+ })).map((base) => DocumentBase.parse(base))
12683
12686
  );
12684
12687
  });
12685
12688
  app.get("/v1/workspaces/:workspaceId/document-bases/:baseId", async (c) => {
@@ -18205,6 +18208,7 @@ function registerSessionRoutes(app, deps) {
18205
18208
  accountId: grant.accountId,
18206
18209
  workspaceId,
18207
18210
  sessionId,
18211
+ subjectId: grant.subjectId,
18208
18212
  payload: event.payload,
18209
18213
  clientEventId: event.clientEventId ?? null
18210
18214
  });
@@ -23540,4 +23544,4 @@ export {
23540
23544
  withDefaultEnabledCapabilityMcpTools,
23541
23545
  workflowIdForSession2 as workflowIdForSession
23542
23546
  };
23543
- //# sourceMappingURL=chunk-ZD5YBUNA.js.map
23547
+ //# sourceMappingURL=chunk-TFHWQL2W.js.map