import { AxiosInstance, AxiosRequestConfig } from 'axios'; import * as Models from './models/knowledge-base'; /** * KnowledgeBase Service * Documentation for Knowledge Base API */ export declare class KnowledgeBase { private client; constructor(httpClient: AxiosInstance); /** * Get all FAQs by knowledge base with pagination support * Retrieves FAQs for a knowledge base. Supports pagination using limit and lastFaqId parameters. */ list(params: { knowledgeBaseId: string; locationId: string; limit?: number; lastFaqId?: string; }, options?: AxiosRequestConfig): Promise; /** * Create a new FAQ inside knowledge base * */ create(requestBody: Models.AddFaqDTO, options?: AxiosRequestConfig): Promise; /** * Update an existing knowledge base FAQ * */ update(params: { id: string; }, requestBody: Models.UpdateFaqBodyDTO, options?: AxiosRequestConfig): Promise; /** * Delete an existing knowledge base FAQ * */ delete(params: { id: string; }, options?: AxiosRequestConfig): Promise; /** * Get all trained page links by knowledge base * */ getAllWebsiteUrlsDataByKnowledgeBase(params: { knowledgeBaseId: string; locationId: string; page?: number; pageLength?: number; query?: string; }, options?: AxiosRequestConfig): Promise; /** * Start crawling and discover pages for training * */ discoverWebsite(requestBody: Models.DiscoverWebsiteRequestDTO, options?: AxiosRequestConfig): Promise; /** * Delete trained pages * */ deleteTrainedUrlsForKnowledgeBase(requestBody: Models.DeleteWebsiteUrlRequestDTO, options?: AxiosRequestConfig): Promise; /** * Get crawling status for the latest operation * */ getCrawlingStatusForLatestOperation(params: { locationId: string; operationId: string; knowledgeBaseId: string; }, options?: AxiosRequestConfig): Promise; /** * Train discovered website pages and ingest into the knowledge base * */ trainDiscoveredUrls(requestBody: Models.TrainDiscoveredUrlsDTO, options?: AxiosRequestConfig): Promise; /** * Get knowledge base by ID * */ getKnowledgeBaseById(params: { knowledgeBaseId: string; }, options?: AxiosRequestConfig): Promise; /** * Delete a knowledge base * */ deleteKnowledgeBase(params: { knowledgeBaseId: string; }, options?: AxiosRequestConfig): Promise; /** * Update a knowledge base * */ updateKnowledgeBase(params: { id: string; }, requestBody: Models.UpdateKnowledgeBaseDTO, options?: AxiosRequestConfig): Promise; /** * Get all knowledge bases for a location by location Id (paginated) * */ listAllKnowledgeBasesPaginated(params: { locationId: string; query?: string; limit?: number; lastKnowledgeBaseId?: string; }, options?: AxiosRequestConfig): Promise; /** * Create a new knowledge base (max 15 knowledge bases per location) * */ createKnowledgeBase(requestBody: Models.CreateKnowledgeBaseDTO, options?: AxiosRequestConfig): Promise; } export default KnowledgeBase; //# sourceMappingURL=knowledge-base.d.ts.map