aimpress-chatbot/node_modules/botbuilder/lib/skills/skillHttpClient.d.ts
“SamoilenkoVadym” 55445dbc86
Some checks failed
Build and deploy Node.js app to Azure Web App - ChatBot2222 / build (push) Has been cancelled
Build and deploy Node.js app to Azure Web App - ChatBot2222 / deploy (push) Has been cancelled
Deploy bot to Azure
2025-04-27 19:55:19 +01:00

46 lines
No EOL
2.6 KiB
TypeScript

/**
* @module botbuilder
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { Activity, BotFrameworkSkill, InvokeResponse, SkillConversationIdFactoryBase } from 'botbuilder-core';
import { ICredentialProvider } from 'botframework-connector';
import { BotFrameworkHttpClient } from '../botFrameworkHttpClient';
/**
* A BotFrameworkHttpClient specialized for Skills that encapsulates Conversation ID generation.
*/
export declare class SkillHttpClient extends BotFrameworkHttpClient {
private readonly conversationIdFactory;
/**
* Creates a new instance of the [SkillHttpClient](xref:botbuilder-core.SkillHttpClient) class.
*
* @param credentialProvider An instance of [ICredentialProvider](xref:botframework-connector.ICredentialProvider).
* @param conversationIdFactory An instance of a class derived from [SkillConversationIdFactoryBase](xref:botbuilder-core.SkillConversationIdFactoryBase).
* @param channelService Optional. The channel service.
*/
constructor(credentialProvider: ICredentialProvider, conversationIdFactory: SkillConversationIdFactoryBase, channelService?: string);
/**
* Uses the SkillConversationIdFactory to create or retrieve a Skill Conversation Id, and sends the activity.
*
* @template T The type of body in the InvokeResponse.
* @param originatingAudience The OAuth audience scope, used during token retrieval. (Either https://api.botframework.com or bot app id.)
* @param fromBotId The MicrosoftAppId of the bot sending the activity.
* @param toSkill The skill to create the Conversation Id for.
* @param callbackUrl The callback Url for the skill host.
* @param activity The activity to send.
*/
postToSkill<T>(originatingAudience: string, fromBotId: string, toSkill: BotFrameworkSkill, callbackUrl: string, activity: Activity): Promise<InvokeResponse<T>>;
/**
* Uses the SkillConversationIdFactory to create or retrieve a Skill Conversation Id, and sends the activity.
*
* @deprecated This overload is deprecated. Please use SkillHttpClient.postToSkill() that takes an `originatingAudience`.
* @param fromBotId The MicrosoftAppId of the bot sending the activity.
* @param toSkill The skill to create the Conversation Id for.
* @param callbackUrl The callback Url for the skill host.
* @param activity The activity to send.
*/
postToSkill(fromBotId: string, toSkill: BotFrameworkSkill, callbackUrl: string, activity: Activity): Promise<InvokeResponse>;
}
//# sourceMappingURL=skillHttpClient.d.ts.map