import type { CreateThreadDto } from '../models/CreateThreadDto'; import type { PaginatedResponseOfThreadEntity } from '../models/PaginatedResponseOfThreadEntity'; import type { ThreadEntity } from '../models/ThreadEntity'; import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class Threads { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Create a new thread * Create a new thread. USER and ADMIN can access this endpoint. * @returns ThreadEntity Successfully created a new thread * @throws ApiError */ create({ orgname, agentId, requestBody, }: { orgname: string; agentId: string; requestBody: CreateThreadDto; }): CancelablePromise; /** * Get all threads * Get all threads. ADMIN ONLY. * @returns PaginatedResponseOfThreadEntity Successfully returned paginated results * @throws ApiError */ findAll({ orgname, agentId, limit, offset, sortBy, sortDirection, searchTerm, startDate, endDate, aggregates, aggregateGranularity, }: { orgname: string; agentId: 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' | 'credits'; /** * 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; /** * Whether or not to include aggregates in the response */ aggregates?: boolean; /** * The granularity to use for ranged aggregates */ aggregateGranularity?: 'day' | 'week' | 'month' | 'year'; }): CancelablePromise; /** * Get a thread * Get a thread. ADMIN ONLY. * @returns ThreadEntity Successfully retrieved the thread * @throws ApiError */ findOne({ orgname, agentId, threadId, }: { orgname: string; agentId: string; threadId: string; }): CancelablePromise; /** * Delete a thread * Delete a thread. ADMIN ONLY. * @returns any Successfully deleted the thread * @throws ApiError */ remove({ orgname, agentId, threadId, }: { orgname: string; agentId: string; threadId: string; }): CancelablePromise; }