fix(openapi): register trigger and relay routes in OpenAPI spec

Add missing registerCurrentRoute entries and BOARD_ONLY_OPERATIONS
declarations for the 6 new tool-connection routes introduced by the
connector seam branch: connection triggers (CRUD), relay/register,
and oauth/claim. Fixes the openapi-routes test failure.
This commit is contained in:
Dotta committed 2026-07-22 18:30:18 +00:00
1 parent ac596e03a2
commit 587bf45d6f
1 file changed
+49
+49
View File
@@ -789,6 +789,12 @@ const BOARD_ONLY_OPERATIONS = new Set([
"GET /api/tool-connections/{connectionId}/test-agents",
"POST /api/tool-connections/{connectionId}/test-calls",
"GET /api/tool-connections/{connectionId}/test-calls/{actionRequestId}",
"GET /api/tool-connections/{connectionId}/triggers",
"POST /api/tool-connections/{connectionId}/triggers",
"PATCH /api/tool-connections/{connectionId}/triggers/{triggerId}",
"DELETE /api/tool-connections/{connectionId}/triggers/{triggerId}",
"POST /api/tool-connections/{connectionId}/relay/register",
"POST /api/tools/oauth/{connectionId}/claim",
"POST /api/agents/me/connections/{connectionId}/start-authorization",
"POST /api/agents/me/connections/{connectionId}/token",
"POST /api/tools/oauth/{connectionId}/start",
@@ -6159,6 +6165,49 @@ registerCurrentRoute({
responses: { 200: r.ok(), 400: r.badRequest, 401: r.unauthorized, 403: r.forbidden, 404: r.notFound, 501: r.ok() },
});
registerCurrentRoute({
method: "get",
path: "/api/tool-connections/{connectionId}/triggers",
tags: ["tool-access"],
summary: "List triggers for a tool connection",
});
registerCurrentRoute({
method: "post",
path: "/api/tool-connections/{connectionId}/triggers",
tags: ["tool-access"],
summary: "Create a trigger for a tool connection",
responses: { 201: r.ok(), 400: r.badRequest, 401: r.unauthorized, 403: r.forbidden, 404: r.notFound, 422: r.unprocessable },
});
registerCurrentRoute({
method: "patch",
path: "/api/tool-connections/{connectionId}/triggers/{triggerId}",
tags: ["tool-access"],
summary: "Update a tool connection trigger",
});
registerCurrentRoute({
method: "delete",
path: "/api/tool-connections/{connectionId}/triggers/{triggerId}",
tags: ["tool-access"],
summary: "Delete a tool connection trigger",
});
registerCurrentRoute({
method: "post",
path: "/api/tool-connections/{connectionId}/relay/register",
tags: ["tool-access"],
summary: "Register a relay destination for a tool connection",
});
registerCurrentRoute({
method: "post",
path: "/api/tools/oauth/{connectionId}/claim",
tags: ["tool-access"],
summary: "Claim an OAuth token for a tool connection",
});
registerCurrentRoute({
method: "post",
path: "/api/tools/oauth/{connectionId}/start",