1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { Activity, BotFrameworkSkill, InvokeResponse, SkillConversationIdFactoryBase } from 'botbuilder-core';
|
9 | import { ICredentialProvider } from 'botframework-connector';
|
10 | import { BotFrameworkHttpClient } from '../botFrameworkHttpClient';
|
11 |
|
12 |
|
13 |
|
14 | export declare class SkillHttpClient extends BotFrameworkHttpClient {
|
15 | private readonly conversationIdFactory;
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | constructor(credentialProvider: ICredentialProvider, conversationIdFactory: SkillConversationIdFactoryBase, channelService?: string);
|
23 | /**
|
24 | * Uses the SkillConversationIdFactory to create or retrieve a Skill Conversation Id, and sends the activity.
|
25 | * @template T The type of body in the InvokeResponse.
|
26 | * @param originatingAudience The OAuth audience scope, used during token retrieval. (Either https:
|
27 | * @param fromBotId The MicrosoftAppId of the bot sending the activity.
|
28 | * @param toSkill The skill to create the Conversation Id for.
|
29 | * @param callbackUrl The callback Url for the skill host.
|
30 | * @param activity The activity to send.
|
31 | */
|
32 | postToSkill<T>(originatingAudience: string, fromBotId: string, toSkill: BotFrameworkSkill, callbackUrl: string, activity: Activity): Promise<InvokeResponse<T>>;
|
33 | |
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 | postToSkill(fromBotId: string, toSkill: BotFrameworkSkill, callbackUrl: string, activity: Activity): Promise<InvokeResponse>;
|
42 | }
|
43 |
|
\ | No newline at end of file |