From a49b09321dc6a158cd76904384fd9ec31ee87126 Mon Sep 17 00:00:00 2001 From: Dotta Date: Fri, 17 Jul 2026 02:53:26 +0000 Subject: [PATCH] fix(server): document agent action audit route --- server/src/routes/openapi.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/server/src/routes/openapi.ts b/server/src/routes/openapi.ts index 5a4c5c7d367..b6272b6ec6f 100644 --- a/server/src/routes/openapi.ts +++ b/server/src/routes/openapi.ts @@ -2885,6 +2885,30 @@ registry.registerPath({ responses: { 200: r.ok(), 401: r.unauthorized }, }); +registry.registerPath({ + method: "get", + path: "/api/companies/{companyId}/audit/agent-actions", + tags: ["activity"], + summary: "List agent action audit entries", + request: { + params: z.object({ companyId: z.string() }), + query: z.object({ + agentId: z.string().uuid().optional(), + responsibleUserId: z.string().min(1).optional(), + runId: z.string().uuid().optional(), + entityType: z.string().min(1).optional(), + entityId: z.string().min(1).optional(), + action: z.string().min(1).optional(), + actorType: z.enum(["agent", "user", "system", "plugin"]).optional(), + from: z.string().datetime().optional(), + to: z.string().datetime().optional(), + cursor: z.string().min(1).optional(), + limit: z.coerce.number().int().min(1).max(200).optional(), + }), + }, + responses: { 200: r.ok(), 400: r.badRequest, 401: r.unauthorized, 403: r.forbidden }, +}); + registry.registerPath({ method: "post", path: "/api/companies/{companyId}/activity",