aimpress-chatbot/node_modules/botframework-connector/lib/auth/botFrameworkClientImpl.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

36 lines
No EOL
2.2 KiB
TypeScript

import { Activity, InvokeResponse } from 'botframework-schema';
import { BotFrameworkClient } from '../skills';
import type { ConnectorClientOptions } from '../connectorApi/models';
import { ServiceClientCredentialsFactory } from './serviceClientCredentialsFactory';
declare const botFrameworkClientFetchImpl: (connectorClientOptions: ConnectorClientOptions) => typeof fetch;
/**
* @internal
* Implementation of [BotFrameworkClient](xref:botframework-connector.BotFrameworkClient).
*/
export declare class BotFrameworkClientImpl implements BotFrameworkClient {
private readonly credentialsFactory;
private readonly loginEndpoint;
private readonly botFrameworkClientFetch?;
private readonly connectorClientOptions?;
/**
* @param credentialsFactory A [ServiceClientCredentialsFactory](xref:botframework-connector.ServiceClientCredentialsFactory) instance.
* @param loginEndpoint The login url.
* @param botFrameworkClientFetch A custom Fetch implementation to be used in the [BotFrameworkClient](xref:botframework-connector.BotFrameworkClient).
* @param connectorClientOptions A [ConnectorClientOptions](xref:botframework-connector.ConnectorClientOptions) object.
*/
constructor(credentialsFactory: ServiceClientCredentialsFactory, loginEndpoint: string, botFrameworkClientFetch?: ReturnType<typeof botFrameworkClientFetchImpl>, connectorClientOptions?: ConnectorClientOptions);
private toJSON;
/**
* @template T The type of body in the InvokeResponse.
* @param fromBotId The MicrosoftAppId of the bot sending the activity.
* @param toBotId The MicrosoftAppId of the bot receiving the activity.
* @param toUrl The URL of the bot receiving the activity.
* @param serviceUrl The callback Url for the skill host.
* @param conversationId A conversation ID to use for the conversation with the skill.
* @param activity The Activity to send to forward.
* @returns {Promise<InvokeResponse<T>>} A promise representing the asynchronous operation.
*/
postActivity<T>(fromBotId: string, toBotId: string, toUrl: string, serviceUrl: string, conversationId: string, activity: Activity): Promise<InvokeResponse<T>>;
}
export {};
//# sourceMappingURL=botFrameworkClientImpl.d.ts.map