( knowledgeBaseId: string, documentId: string, chunkId: string, userId: string )
| 363 | * Check if a user has read access to a chunk within a document and knowledge base. |
| 364 | */ |
| 365 | export async function checkChunkAccess( |
| 366 | knowledgeBaseId: string, |
| 367 | documentId: string, |
| 368 | chunkId: string, |
| 369 | userId: string |
| 370 | ): Promise<ChunkAccessCheck> { |
| 371 | return resolveChunkAccess(knowledgeBaseId, documentId, chunkId, userId, false) |
| 372 | } |
| 373 | |
| 374 | /** |
| 375 | * Check if a user has write access to a chunk. |
no test coverage detected