UNPKG

botframework-connector

Version:

Bot Connector is autorest generated connector client.

35 lines (34 loc) 2.92 kB
import { AuthenticationConfiguration } from './authenticationConfiguration'; import { BotFrameworkAuthentication } from './botFrameworkAuthentication'; import { ServiceClientCredentialsFactory } from './serviceClientCredentialsFactory'; import { ConnectorClientOptions } from '../connectorApi/models'; /** * A factory for [BotFrameworkAuthentication](xref:botframework-connector.BotFrameworkAuthentication) which encapsulates the environment specific Bot Framework Protocol auth code. */ export declare class BotFrameworkAuthenticationFactory { /** * Creates a new [BotFrameworkAuthentication](xref:botframework-connector.BotFrameworkAuthentication) instance for anonymous testing scenarios. * * @returns A new [BotFrameworkAuthentication](xref:botframework-connector.BotFrameworkAuthentication) instance. */ static create(): BotFrameworkAuthentication; /** * Creates the appropriate [BotFrameworkAuthentication](xref:botframework-connector.BotFrameworkAuthentication) instance. * * @param channelService The Channel Service. * @param validateAuthority The validate authority value to use. * @param toChannelFromBotLoginUrl The to Channel from bot login url. * @param toChannelFromBotOAuthScope The to Channel from bot oauth scope. * @param toBotFromChannelTokenIssuer The to bot from Channel Token Issuer. * @param oAuthUrl The OAuth url. * @param toBotFromChannelOpenIdMetadataUrl The to bot from Channel Open Id Metadata url. * @param toBotFromEmulatorOpenIdMetadataUrl The to bot from Emulator Open Id Metadata url. * @param callerId The callerId set on on authenticated [Activities](xref:botframework-schema.Activity). * @param credentialFactory The [ServiceClientCredentialsFactory](xref:botframework-connector.ServiceClientCredentialsFactory) to use to create credentials. * @param authConfiguration The [AuthenticationConfiguration](xref:botframework-connector.AuthenticationConfiguration) to use. * @param botFrameworkClientFetch The fetch to use in BotFrameworkClient. * @param connectorClientOptions The [ConnectorClientOptions](xref:botframework-connector.ConnectorClientOptions) to use when creating ConnectorClients. */ static create(channelService: string, validateAuthority: boolean, toChannelFromBotLoginUrl: string, toChannelFromBotOAuthScope: string, toBotFromChannelTokenIssuer: string, oAuthUrl: string, toBotFromChannelOpenIdMetadataUrl: string, toBotFromEmulatorOpenIdMetadataUrl: string, callerId: string, credentialFactory: ServiceClientCredentialsFactory, authConfiguration: AuthenticationConfiguration, botFrameworkClientFetch?: (input: RequestInfo, init?: RequestInit) => Promise<Response>, connectorClientOptions?: ConnectorClientOptions): BotFrameworkAuthentication; } //# sourceMappingURL=botFrameworkAuthenticationFactory.d.ts.map