UNPKG

@memori.ai/memori-api-client

Version:

React library to integrate a Memori in your app or website

27 lines (26 loc) 1.04 kB
import type { ResponseSpec, Function, MacroFunction } from '../types'; declare const _default: (apiUrl: string) => { getAllFunctions: (sessionId: string) => Promise<ResponseSpec & { count: number; functions: Function[]; }>; getFunctionsPaginated: (sessionId: string, from: number, howMany: number) => Promise<ResponseSpec & { count: number; functions: Function[]; }>; getFunction: (sessionId: string, functionID: string) => Promise<ResponseSpec & { function: Function; }>; patchFunction: (sessionId: string, func: Partial<Function> & { functionID: string; }) => Promise<ResponseSpec>; deleteFunction: (sessionId: string, functionID: string) => Promise<ResponseSpec>; createFunction: (sessionId: string, func: Function) => Promise<ResponseSpec & { functionID: string; }>; getMacroFunctions: (sessionId: string) => Promise<ResponseSpec & { count: number; macroFunctions: MacroFunction[]; }>; }; export default _default;