import type { CreateDocumentDto } from '../models/CreateDocumentDto'; import type { DocumentEntity } from '../models/DocumentEntity'; import type { PaginatedResponseOfDocumentEntity } from '../models/PaginatedResponseOfDocumentEntity'; import type { PaginatedResponseOfTextSegmentEntity } from '../models/PaginatedResponseOfTextSegmentEntity'; import type { UpdateDocumentDto } from '../models/UpdateDocumentDto'; import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class Documents { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Index a document * Index a document. ADMIN ONLY. * @returns DocumentEntity Successfully created document * @throws ApiError */ create({ orgname, requestBody, }: { orgname: string; requestBody: CreateDocumentDto; }): CancelablePromise; /** * Get all documents * Get all documents. ADMIN ONLY. * @returns PaginatedResponseOfDocumentEntity Successfully returned paginated results * @throws ApiError */ findAll({ orgname, limit, offset, sortBy, sortDirection, searchTerm, startDate, endDate, }: { orgname: string; /** * The limit of the number of results returned */ limit?: number; /** * The offset of the returned results */ offset?: number; /** * The field to sort the results by */ sortBy?: 'createdAt' | 'name'; /** * The direction to sort the results by */ sortDirection?: 'asc' | 'desc'; /** * Search term */ searchTerm?: string; /** * The start date to search from */ startDate?: string; /** * The end date to search to */ endDate?: string; }): CancelablePromise; /** * Get a document * Get a document. ADMIN ONLY. * @returns DocumentEntity Successfully returned document * @throws ApiError */ findOne({ orgname, docId, }: { orgname: string; docId: string; }): CancelablePromise; /** * Update a document * Update a document. ADMIN ONLY. * @returns DocumentEntity Successfully updated document * @throws ApiError */ update({ orgname, docId, requestBody, }: { orgname: string; docId: string; requestBody: UpdateDocumentDto; }): CancelablePromise; /** * Delete a document * Delete a document. ADMIN ONLY. * @returns any Successfully deleted document * @throws ApiError */ remove({ orgname, docId, }: { orgname: string; docId: string; }): CancelablePromise; /** * Get all text segments * Get all text segments from a document. ADMIN ONLY. * @returns PaginatedResponseOfTextSegmentEntity Successfully returned paginated results * @throws ApiError */ getTextSegments({ orgname, docId, limit, offset, sortDirection, sortBy, }: { orgname: string; docId: string; /** * The limit of the number of results returned */ limit?: number; /** * The offset of the returned results */ offset?: number; /** * The direction to sort the results by */ sortDirection?: 'asc' | 'desc'; sortBy?: 'index' | 'page'; }): CancelablePromise; }