import type { AgentEntity } from '../models/AgentEntity'; import type { CreateAgentDto } from '../models/CreateAgentDto'; import type { PaginatedResponseOfAgentEntity } from '../models/PaginatedResponseOfAgentEntity'; import type { UpdateAgentDto } from '../models/UpdateAgentDto'; import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class Agents { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Create an agent * Create an agent. ADMIN ONLY. * @returns AgentEntity Successfully created agent * @throws ApiError */ create({ orgname, requestBody, }: { orgname: string; requestBody: CreateAgentDto; }): CancelablePromise; /** * Get all agents * Get all agents. ADMIN ONLY. * @returns PaginatedResponseOfAgentEntity 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'; /** * 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; /** * Update an agent * Update an agent. ADMIN ONLY. * @returns AgentEntity Successfully returned agent * @throws ApiError */ update({ orgname, agentId, requestBody, }: { orgname: string; agentId: string; requestBody: UpdateAgentDto; }): CancelablePromise; /** * Get an agent * Get an agent. ADMIN ONLY. * @returns AgentEntity Successfully returned agent * @throws ApiError */ findOne({ orgname, agentId, }: { orgname: string; agentId: string; }): CancelablePromise; /** * Delete an agent * Delete an agent. ADMIN ONLY. * @returns any Successfully deleted agent * @throws ApiError */ remove({ orgname, agentId, }: { orgname: string; agentId: string; }): CancelablePromise; }