@memori.ai/memori-api-client
Version:
React library to integrate a Memori in your app or website
23 lines (22 loc) • 1.04 kB
TypeScript
import type { ResponseSpec, ExpertReference } from '../types';
declare const _default: (apiUrl: string) => {
getExpertReferences: (sessionId: string) => Promise<ResponseSpec & {
count: number;
experts: ExpertReference[];
}>;
getExpertReferencesPaginated: (sessionId: string, from: number, howMany: number) => Promise<ResponseSpec & {
count: number;
experts: ExpertReference[];
}>;
getExpertReference: (sessionId: string, expertID: string) => Promise<ResponseSpec & {
expert: ExpertReference;
}>;
updateExpertReference: (sessionId: string, expertReference: Partial<ExpertReference> & {
expertID: ExpertReference['expertID'];
}) => Promise<ResponseSpec>;
createExpertReference: (sessionId: string, expertReference: Omit<Partial<ExpertReference>, 'expertID'>) => Promise<ResponseSpec & {
expertID: ExpertReference['expertID'];
}>;
deleteExpertReference: (sessionId: string, expertID: string) => Promise<ResponseSpec>;
};
export default _default;