mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat: add file upload support
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user