feat(asset): add move to and copy to functionalities

This commit is contained in:
yiling
2026-05-24 20:15:55 +08:00
parent ffba9940e2
commit c5fba746be
9 changed files with 687 additions and 5 deletions
+8
View File
@@ -220,6 +220,14 @@ export const reparentAssetsRequestSchema = z.object({
})
export type ReparentAssetsRequest = z.infer<typeof reparentAssetsRequestSchema>
export const copyAssetsRequestSchema = z.object({
newParentId: z.string(),
assetIds: z.array(z.string()),
withComments: z.boolean().default(false),
creatorId: z.string().optional(),
})
export type CopyAssetsRequest = z.infer<typeof copyAssetsRequestSchema>
export const updateFileRequestSchema = z.object({
name: z.string(),
})