@memori.ai/memori-api-client
Version:
React library to integrate a Memori in your app or website
28 lines (27 loc) • 1.33 kB
TypeScript
import { ChatLog, ChatLogFilters, ResponseSpec } from '../types';
declare const _default: (apiUrl: string) => {
getChatLogs: (sessionId: string, dateFrom?: string, dateTo?: string) => Promise<ResponseSpec & {
chatLogs: ChatLog[];
}>;
getChatLogsPaged: (sessionId: string, filters?: ChatLogFilters) => Promise<ResponseSpec & {
chatLogs: ChatLog[];
}>;
getChatLogsByUser: (sessionId: string, dateFrom?: string, dateTo?: string) => Promise<ResponseSpec & {
chatLogs: ChatLog[];
}>;
getSessionChatLogs: (sessionId: string, chatLogSessionID: string) => Promise<ResponseSpec & {
chatLogs: ChatLog[];
}>;
getUserChatLogs: (sessionId: string, userID: string, dateFrom?: string, dateTo?: string) => Promise<ResponseSpec & {
chatLogs: ChatLog[];
}>;
deleteChatLogs: (sessionId: string, dateFrom?: string, dateTo?: string) => Promise<ResponseSpec>;
deleteChatLog: (sessionId: string, chatLogId: string) => Promise<ResponseSpec>;
getUserChatLogsByToken: (loginToken: string, memoriID: string, dateFrom?: string, dateTo?: string) => Promise<ResponseSpec & {
chatLogs: ChatLog[];
}>;
getUserChatLogsByTokenPaged: (filters?: ChatLogFilters) => Promise<ResponseSpec & {
chatLogs: ChatLog[];
}>;
};
export default _default;