(kbId, fileId, variant = 'original')
| 36 | } |
| 37 | |
| 38 | export const downloadWorkspaceKnowledgeFile = (kbId, fileId, variant = 'original') => { |
| 39 | const query = buildQuery({ kb_id: kbId, file_id: fileId, variant }) |
| 40 | return apiGet(`/api/workspace/knowledge/download?${query}`, {}, true, 'blob') |
| 41 | } |
| 42 | |
| 43 | export const saveWorkspaceFileContent = (path, content) => { |
| 44 | return apiPut('/api/workspace/file', { path, content }) |
nothing calls this directly
no test coverage detected