UNPKG

@memori.ai/memori-api-client

Version:

React library to integrate a Memori in your app or website

39 lines (38 loc) 1.45 kB
import { ResponseSpec, Intent, IntentSlot } from '../types'; declare const _default: (apiUrl: string) => { getIntents: (sessionId: string) => Promise<ResponseSpec & { intents: (Intent & { intentID: string; })[]; }>; getIntent: (sessionId: string, intentId: string) => Promise<ResponseSpec & { intent: Intent & { intentID: string; }; }>; patchIntent: (sessionId: string, intent: Partial<Intent> & { intentID: string; }) => Promise<ResponseSpec>; deleteIntent: (sessionId: string, intentId: string) => Promise<ResponseSpec>; createIntent: (sessionId: string, intent: Intent) => Promise<ResponseSpec & { intentID: string; }>; getIntentSlots: (sessionId: string) => Promise<ResponseSpec & { intentSlots: (IntentSlot & { intentSlotID: string; })[]; }>; getIntentSlot: (sessionId: string, slotId: string) => Promise<ResponseSpec & { intentSlot: IntentSlot & { intentSlotID: string; }; }>; patchIntentSlot: (sessionId: string, intentSlot: Partial<IntentSlot> & { intentSlotID: string; }) => Promise<ResponseSpec>; deleteIntentSlot: (sessionId: string, slotId: string) => Promise<ResponseSpec>; createIntentSlot: (sessionId: string, intentSlot: IntentSlot) => Promise<ResponseSpec & { intentSlotID: string; }>; }; export default _default;