mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 09:41:04 +01:00
fix(server): document agent action audit route
This commit is contained in:
1 parent
0d4979ba44
commit
a49b09321d
1 file changed
+24
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user