/** * Athena API * REST API for the Athena system * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { Chat, ChatRequest, CreateChatRequest, PaginatedChats, UpdateChatRequest } from '../models/index'; export interface CreateChatOperationRequest { xUserId: string; createChatRequest: CreateChatRequest; xAthenaClient?: string; } export interface DeleteChatRequest { chatId: string; xUserId: string; } export interface GetChatRequest { chatId: string; xUserId: string; } export interface ListChatsRequest { xUserId: string; limit?: number; cursor?: string; chatType?: string; } export interface MarkChatAsViewedRequest { chatId: string; xUserId: string; } export interface ResumeChatStreamRequest { chatId: string; xUserId: string; } export interface SendChatMessageRequest { xUserId: string; chatRequest: ChatRequest; xAthenaClient?: string; xCanvasDomain?: string; xCanvasToken?: string; xUserTimezone?: string; } export interface UpdateChatOperationRequest { chatId: string; xUserId: string; updateChatRequest: UpdateChatRequest; } /** * */ export declare class ChatsApi extends runtime.BaseAPI { /** * Creates a new chat for the authenticated account user. * Create a chat */ createChatRaw(requestParameters: CreateChatOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Creates a new chat for the authenticated account user. * Create a chat */ createChat(requestParameters: CreateChatOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Deletes a chat and its messages belonging to the authenticated account user. * Delete a chat */ deleteChatRaw(requestParameters: DeleteChatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Deletes a chat and its messages belonging to the authenticated account user. * Delete a chat */ deleteChat(requestParameters: DeleteChatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Returns a single chat belonging to the authenticated account user. * Get a chat */ getChatRaw(requestParameters: GetChatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Returns a single chat belonging to the authenticated account user. * Get a chat */ getChat(requestParameters: GetChatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Returns paginated chats belonging to the authenticated account user, ordered by creation date (newest first). * List chats */ listChatsRaw(requestParameters: ListChatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Returns paginated chats belonging to the authenticated account user, ordered by creation date (newest first). * List chats */ listChats(requestParameters: ListChatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Updates the lastViewedAt timestamp for a chat belonging to the authenticated account user. * Mark chat as viewed */ markChatAsViewedRaw(requestParameters: MarkChatAsViewedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Updates the lastViewedAt timestamp for a chat belonging to the authenticated account user. * Mark chat as viewed */ markChatAsViewed(requestParameters: MarkChatAsViewedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Reconnects to an active or recently completed chat stream. Returns 200 with an SSE body if a stream is available, or 204 No Content if no stream exists. * Resume a chat stream */ resumeChatStreamRaw(requestParameters: ResumeChatStreamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Reconnects to an active or recently completed chat stream. Returns 200 with an SSE body if a stream is available, or 204 No Content if no stream exists. * Resume a chat stream */ resumeChatStream(requestParameters: ResumeChatStreamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Sends a message to a chat conversation with an AI assistant. The client must provide a chatId (UUID v4). If the chatId doesn\'t exist, a new chat will be created with that ID. If it exists and belongs to the user, the conversation continues. The response is streamed in real-time. An optional externalFileUrl (url + mediaType) can be included to have the model read a file as part of its response. * Send a message to a chat */ sendChatMessageRaw(requestParameters: SendChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Sends a message to a chat conversation with an AI assistant. The client must provide a chatId (UUID v4). If the chatId doesn\'t exist, a new chat will be created with that ID. If it exists and belongs to the user, the conversation continues. The response is streamed in real-time. An optional externalFileUrl (url + mediaType) can be included to have the model read a file as part of its response. * Send a message to a chat */ sendChatMessage(requestParameters: SendChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Updates a chat belonging to the authenticated account user. * Update a chat */ updateChatRaw(requestParameters: UpdateChatOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Updates a chat belonging to the authenticated account user. * Update a chat */ updateChat(requestParameters: UpdateChatOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }