48 lines
882 B
TypeScript
48 lines
882 B
TypeScript
/**
|
|
* Dify Dataset API 客户端统一导出
|
|
*
|
|
* @module api/dify-dataset/api
|
|
*/
|
|
|
|
// 知识库 API
|
|
export {
|
|
fetchDatasets,
|
|
fetchDataset,
|
|
updateDatasetName,
|
|
} from './datasetApi';
|
|
|
|
// 文档 API
|
|
export {
|
|
fetchDocuments,
|
|
fetchDocument,
|
|
deleteDocument,
|
|
toggleDocumentStatus,
|
|
uploadDocument,
|
|
uploadDocumentWithConfig,
|
|
updateDocumentByFile,
|
|
fetchIndexingStatus,
|
|
fetchUploadFileInfo,
|
|
} from './documentApi';
|
|
|
|
// 文档 API 类型
|
|
export type {
|
|
ProcessRule,
|
|
UploadDocumentConfig,
|
|
UploadDocumentResponse,
|
|
} from './documentApi';
|
|
|
|
// 分段、子分段、检索 API
|
|
export {
|
|
fetchSegments,
|
|
fetchSegment,
|
|
createSegments,
|
|
updateSegment,
|
|
deleteSegment,
|
|
toggleSegmentStatus,
|
|
fetchChildChunks,
|
|
createChildChunk,
|
|
updateChildChunk,
|
|
deleteChildChunk,
|
|
retrieveDataset,
|
|
} from './segmentApi';
|