mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 15:14:10 +00:00
feat(asset): record and display agent provenance on assets and audit logs (#380)
* feat(asset): record and display agent provenance on assets and audit logs * style(webui): apply 30% translucent frosted glass background to bot badges * style(webui): match bot icon badge style to thumbnail media overlay (bg-black/60 text-white) * style(webui): use "AI" text badge with pdf overlay style instead of bot icon
This commit is contained in:
@@ -70,6 +70,14 @@ export const auditLogSchema = z.object({
|
||||
action: z.nativeEnum(AuditAction),
|
||||
teamId: z.string(),
|
||||
userId: z.string().nullable().optional(),
|
||||
agentId: z.string().nullable().optional(),
|
||||
agent: z
|
||||
.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
})
|
||||
.nullable()
|
||||
.optional(),
|
||||
projectId: z.string().nullable().optional(),
|
||||
itemId: z.string().nullable().optional(),
|
||||
createdAt: z.string(),
|
||||
@@ -88,6 +96,10 @@ export const listAuditLogsQuerySchema = z.object({
|
||||
.union([z.string(), z.array(z.string())])
|
||||
.transform((val) => (Array.isArray(val) ? val : [val]))
|
||||
.optional(),
|
||||
agentIds: z
|
||||
.union([z.string(), z.array(z.string())])
|
||||
.transform((val) => (Array.isArray(val) ? val : [val]))
|
||||
.optional(),
|
||||
itemId: z.string().optional(),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user