feat: add file upload support

This commit is contained in:
weishu
2026-01-17 19:38:12 +08:00
parent 940d7b8233
commit 53e4de6684
28 changed files with 1018 additions and 49 deletions
+20
View File
@@ -104,6 +104,17 @@ export type FileReadResponse = {
error?: string
}
export type UploadFileResponse = {
success: boolean
path?: string
error?: string
}
export type DeleteUploadResponse = {
success: boolean
error?: string
}
export type GitFileStatus = {
fileName: string
filePath: string
@@ -160,3 +171,12 @@ export type VisibilityPayload = {
}
export type SyncEvent = ProtocolSyncEvent
export type AttachmentMetadata = {
id: string
filename: string
mimeType: string
size: number
path: string
previewUrl?: string
}