mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 04:44:28 +00:00
feat(agent): replace isAi with sessionId & implement admin logs UI
This commit is contained in:
@@ -98,3 +98,10 @@ export interface DeleteAgentParams {
|
||||
export interface ListAgentsParams {
|
||||
teamId: string
|
||||
}
|
||||
|
||||
export const agentSessionEntrySchema = z.object({
|
||||
id: z.string(),
|
||||
sessionId: z.string(),
|
||||
entry: z.unknown(),
|
||||
})
|
||||
export type AgentSessionEntryInfo = z.infer<typeof agentSessionEntrySchema>
|
||||
|
||||
+2
-2
@@ -173,7 +173,7 @@ export type CommentInfo = {
|
||||
mentions: UserInfo[]
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
isAi: boolean
|
||||
sessionId: string | null
|
||||
}
|
||||
|
||||
export const commentInfoSchema: z.ZodType<CommentInfo> = z.object({
|
||||
@@ -188,7 +188,7 @@ export const commentInfoSchema: z.ZodType<CommentInfo> = z.object({
|
||||
mentions: z.array(userInfoSchema),
|
||||
createdAt: z.string(),
|
||||
updatedAt: z.string(),
|
||||
isAi: z.boolean(),
|
||||
sessionId: z.string().nullable(),
|
||||
})
|
||||
|
||||
export const reparentAssetsRequestSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user