Feat/customizable file upload config (#818)

This commit is contained in:
Matri 2023-08-16 23:14:27 +08:00 committed by GitHub
commit 155a4733f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 122 additions and 83 deletions

View file

@ -168,3 +168,8 @@ export type PluginProvider = {
api_key: string
} | null
}
export type FileUploadConfigResponse = {
file_size_limit: number
batch_count_limit: number
}

View file

@ -24,14 +24,18 @@ export type DataSet = {
word_count: number
}
export type File = {
id: string
name: string
size: number
extension: string
mime_type: string
created_by: string
created_at: number
export type CustomFile = File & {
id?: string
extension?: string
mime_type?: string
created_by?: string
created_at?: number
}
export type FileItem = {
fileID: string
file: CustomFile
progress: number
}
export type DataSetListResponse = {