/** * ThinkHive SDK - Documents API * * Agent document management for RAG (Retrieval-Augmented Generation) */ /** An agent document used for RAG */ export interface Document { id: string; agentId: string; fileName: string; fileType: string; fileSize: number; status: string; uploadedAt: string; processedAt?: string; metadata?: Record; } /** Upload response with signed URL or document details */ export interface DocumentUploadResponse { document: Document; uploadUrl?: string; } /** * Documents API client for managing agent RAG documents */ export declare const documents: { /** * List all documents for an agent * * @param agentId - The agent ID * @returns List of documents */ list(agentId: string): Promise; /** * Upload a document for an agent * * @param agentId - The agent ID * @param fileName - Name of the file * @param fileType - MIME type of the file * @param fileSize - Size of the file in bytes * @returns Upload response with document details */ upload(agentId: string, fileName: string, fileType: string, fileSize: number): Promise; /** * Delete a document from an agent * * @param agentId - The agent ID * @param docId - The document ID to delete */ remove(agentId: string, docId: string): Promise; }; export { documents as default };