mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
feat: document update change to batch api
This commit is contained in:
@ -614,3 +614,20 @@ export type ChildChunkDetail = {
|
||||
created_at: number
|
||||
type: ChildChunkType
|
||||
}
|
||||
|
||||
export type UpdateDocumentParams = {
|
||||
datasetId: string
|
||||
documentId: string
|
||||
}
|
||||
|
||||
export enum BatchActionType {
|
||||
enable = 'enable',
|
||||
disable = 'disable',
|
||||
archive = 'archive',
|
||||
}
|
||||
|
||||
export type UpdateDocumentBatchParams = {
|
||||
datasetId: string
|
||||
documentIds: string[]
|
||||
action: BatchActionType
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user