MCPcopy
hub / github.com/1Panel-dev/MaxKB / getDownloadSourceFile

Function getDownloadSourceFile

ui/src/api/system-resource-management/document.ts:138–144  ·  view source on GitHub ↗
(
  knowledge_id,
  document_id,
  document_name
)

Source from the content-addressed store, hash-verified

136 * @param 参数 knowledge_id
137 */
138const getDownloadSourceFile: (knowledge_id: string, document_id: string, document_name: string) => Promise<Result<any>> = (
139 knowledge_id,
140 document_id,
141 document_name
142) => {
143 return exportFile(document_name, `${prefix}/${knowledge_id}/document/${document_id}/download_source_file`, {}, undefined)
144}
145
146const postReplaceSourceFile: (knowledge_id: string, document_id: string, data: any) => Promise<Result<any>> = (
147 knowledge_id,

Callers

nothing calls this directly

Calls 1

exportFileFunction · 0.90

Tested by

no test coverage detected