diff --git a/lib/Botkit.d.ts b/lib/Botkit.d.ts index ba072f4ea..5107f5323 100644 --- a/lib/Botkit.d.ts +++ b/lib/Botkit.d.ts @@ -9,7 +9,9 @@ declare namespace botkit { function sparkbot(configuration: CiscoSparkConfiguration): CiscoSparkController; function twilioipmbot(configuration: TwilioIPMConfiguration): TwilioIPMController; function twiliosmsbot(configuration: TwilioSMSConfiguration): TwilioSMSController; - function socketbot(configuration: SocketConfiguration): SocketController; + function socketbot(configuration: WebConfiguration): WebController; + function anywhere(configuration: WebConfiguration): WebController; + interface Bot { readonly botkit: Controller; readonly identity: Identity; @@ -492,21 +494,22 @@ declare namespace botkit { } interface TwilioSMSSpawnConfiguration { } - interface SocketBot extends Bot { - send(src: SocketMessage, cb?: (err: Error, res: any) => void): void; - findConversation(message: SocketMessage, cb: (convo?: Conversation) => void): void; + interface WebBot extends Bot { + connected: boolean; + send(src: WebMessage, cb?: (err: Error, res: any) => void): void; + findConversation(message: WebMessage, cb: (convo?: Conversation) => void): void; } - interface SocketConfiguration extends Configuration { + interface WebConfiguration extends Configuration { replyWithTyping?: boolean; } - interface SocketController extends Controller { + interface WebController extends Controller { httpserver: http.Server; webserver: express.Express; openSocketServer(server: http.Server): void; } - export interface SocketMessage extends Message { + export interface WebMessage extends Message { } - interface SocketSpawnConfiguration { + interface WebSpawnConfiguration { } interface User { id: string;