feat(dashboard): add agent sessions view for team owners

This commit is contained in:
yiling
2026-07-29 10:10:07 +08:00
parent 825044f16d
commit 03f8ad90d2
34 changed files with 1249 additions and 334 deletions
+18
View File
@@ -110,3 +110,21 @@ export const agentSessionEntrySchema = z.object({
entry: z.unknown(),
})
export type AgentSessionEntryInfo = z.infer<typeof agentSessionEntrySchema>
export const agentSessionSchema = z.object({
id: z.string(),
name: z.string().nullable().optional(),
type: z.string(),
createdAt: z.string(),
creator: z
.object({
id: z.string(),
name: z.string().nullable().optional(),
email: z.string().nullable().optional(),
image: z.string().nullable().optional(),
})
.nullable()
.optional(),
agentId: z.string().optional(),
})
export type AgentSessionInfo = z.infer<typeof agentSessionSchema>