UNPKG

@memori.ai/memori-api-client

Version:

React library to integrate a Memori in your app or website

16 lines (15 loc) 746 B
import { ResponseSpec, UnansweredQuestion } from '../types'; declare const _default: (apiUrl: string) => { getUnansweredQuestions: (sessionId: string) => Promise<ResponseSpec & { unansweredQuestions: UnansweredQuestion[]; }>; getUnansweredQuestionsPaginated: (sessionId: string, from: number, howMany: number) => Promise<ResponseSpec & { count: number; unansweredQuestions: UnansweredQuestion[]; }>; postUnansweredQuestion: (sessionId: string, unansweredQuestion: UnansweredQuestion) => Promise<ResponseSpec & { unansweredQuestion: UnansweredQuestion; }>; deleteUnansweredQuestion: (sessionId: string, unansweredQuestionId: string) => Promise<ResponseSpec>; }; export default _default;