UNPKG

1.13 kBTypeScriptView Raw
1/**
2 * Copyright (c) Microsoft Corporation. All rights reserved.
3 * Licensed under the MIT License.
4 */
5import { TurnContext } from 'botbuilder-core';
6import { Activity, ConversationAccount, Transcript } from 'botframework-schema';
7/**
8 * Contains utility methods for creating various event types.
9 */
10export declare class EventFactory {
11 /**
12 * Create handoff initiation event.
13 * @param context The context object for the turn.
14 * @param handoffContext Agent hub-specific context.
15 * @param transcript Transcript of the conversation.
16 */
17 static createHandoffInitiation(context: TurnContext, handoffContext: any, transcript?: Transcript): Activity;
18 /**
19 * Create handoff status event.
20 * @param conversation Conversation being handed over.
21 * @param state State, possible values are: "accepted", "failed", "completed".
22 * @param message Additional message for failed handoff.
23 */
24 static createHandoffStatus(conversation: ConversationAccount, state: string, message?: string): Activity;
25 private static createHandoffEvent;
26}
27//# sourceMappingURL=eventFactory.d.ts.map
\No newline at end of file