feat: add frontend support for surfsense docs citations

This commit is contained in:
CREDO23 2026-01-09 18:21:59 +02:00
parent 3539b2a83d
commit abd3bace53
4 changed files with 43 additions and 15 deletions

View file

@ -209,6 +209,18 @@ class DocumentsApiService {
);
};
/**
* Get Surfsense documentation by chunk ID
* Used for resolving [citation:doc-XXX] citations
*/
getSurfsenseDocByChunk = async (chunkId: number) => {
// Response shape matches getDocumentByChunkResponse structure
return baseApiService.get(
`/api/v1/surfsense-docs/by-chunk/${chunkId}`,
getDocumentByChunkResponse
);
};
/**
* Update a document
*/