2026-05-19 16:05:09 +08:00
|
|
|
import { z } from 'zod'
|
|
|
|
|
|
|
|
|
|
export const createFolderRequestSchema = z.object({
|
|
|
|
|
name: z.string(),
|
|
|
|
|
parentId: z.string(),
|
|
|
|
|
})
|
|
|
|
|
export type CreateFolderRequest = z.infer<typeof createFolderRequestSchema>
|
|
|
|
|
|
|
|
|
|
export const updateFolderRequestSchema = z.object({
|
|
|
|
|
name: z.string(),
|
|
|
|
|
})
|
|
|
|
|
export type UpdateFolderRequest = z.infer<typeof updateFolderRequestSchema>
|
|
|
|
|
|
|
|
|
|
export const deleteFoldersRequestSchema = z.object({
|
|
|
|
|
ids: z.array(z.string()),
|
|
|
|
|
})
|
|
|
|
|
export type DeleteFoldersRequest = z.infer<typeof deleteFoldersRequestSchema>
|
|
|
|
|
|
|
|
|
|
export const restoreFoldersRequestSchema = z.object({
|
|
|
|
|
ids: z.array(z.string()),
|
|
|
|
|
})
|
|
|
|
|
export type RestoreFoldersRequest = z.infer<typeof restoreFoldersRequestSchema>
|
2026-08-15 10:25:46 +08:00
|
|
|
|
|
|
|
|
export const updateAgentsMdRequestSchema = z.object({
|
|
|
|
|
content: z.string().max(100_000),
|
|
|
|
|
})
|
|
|
|
|
export type UpdateAgentsMdRequest = z.infer<typeof updateAgentsMdRequestSchema>
|