@aws-amplify/interactions
Version:
Interactions category of aws-amplify
13 lines (12 loc) • 535 B
TypeScript
import { InteractionsOptions } from './Interactions';
import { InteractionsResponse } from './Response';
export interface InteractionsProvider {
configure(config: InteractionsOptions): InteractionsOptions;
getCategory(): string;
getProviderName(): string;
sendMessage(botname: string, message: string | Object): Promise<object>;
onComplete(botname: string, callback: (err: any, confirmation: InteractionsResponse) => void): any;
}
export interface InteractionsProviders {
[key: string]: InteractionsProvider;
}