@broid/kit
Version:
Bot framework supported all messaging plateforms and middlewares.
22 lines (21 loc) • 739 B
TypeScript
import { IActivityStream } from '@broid/schemas';
import { Observable } from 'rxjs/Rx';
export declare type callbackType = (message: any, error?: any) => any;
export declare type middlewareIncomingType = (bot: any, message: any, acc?: any) => Promise<any> | Observable<any>;
export declare type middlewareOutgoingType = (bot: any, content: string, message: IActivityStream, acc?: any) => Promise<any> | Observable<any>;
export interface IHTTPOptions {
host: string;
port: number;
}
export interface IListenerArgs {
callback?: callbackType;
msgTypes?: string | void;
}
export interface IMetaMediaSend {
name?: string;
content?: string;
}
export interface IOptions {
logLevel?: string;
http?: IHTTPOptions;
}