2025-06-18 15:06:50 +08:00
|
|
|
export type DataSourceNodeProcessingResponse = {
|
|
|
|
event: 'datasource_processing'
|
|
|
|
total: number
|
|
|
|
completed: number
|
|
|
|
}
|
|
|
|
|
|
|
|
export type DataSourceNodeError = {
|
|
|
|
event: 'datasource_error'
|
|
|
|
message: string
|
|
|
|
code?: string
|
|
|
|
}
|
|
|
|
|
2025-07-04 13:42:36 +08:00
|
|
|
export type OnlineDriveFile = {
|
|
|
|
key: string
|
|
|
|
size: number
|
|
|
|
}
|
|
|
|
|
|
|
|
export type OnlineDriveData = {
|
|
|
|
bucket: string
|
|
|
|
files: OnlineDriveFile[]
|
|
|
|
is_truncated: boolean
|
|
|
|
}
|
|
|
|
|
2025-06-18 15:06:50 +08:00
|
|
|
export type DataSourceNodeCompletedResponse = {
|
|
|
|
event: 'datasource_completed'
|
2025-07-04 13:42:36 +08:00
|
|
|
data: OnlineDriveData[]
|
|
|
|
time_consuming: number
|
2025-06-18 15:06:50 +08:00
|
|
|
}
|
2025-07-03 14:58:58 +08:00
|
|
|
|
|
|
|
export type DataSourceNodeErrorResponse = {
|
|
|
|
event: 'datasource_error'
|
|
|
|
error: string
|
|
|
|
}
|