UNPKG

express-msteams-host

Version:
23 lines (22 loc) 1.49 kB
import { Storage } from "botbuilder"; import "reflect-metadata"; export interface IBotDeclarationSettings { endpoint: string; storage: Storage; appId: string | undefined | (() => string); appPassword: string | undefined | (() => string); certificatePrivateKey?: string | undefined | (() => string); certificateThumbprint?: string | undefined | (() => string); namespace?: string | undefined; } /** * Decorator function for Bots * @param endpoint The endpoint to expose for the bot (typically '/api/messages') * @param storage The Storage to use for the bot (ex: new MemoryStorage()) * @param appId The App Id for the bot, string or function that returns a string * @param appPassword The app password for the bot, string or function that returns a string * @param certificatePrivateKey (Optional) Client Certificate Credential - PK, , string or function that returns a string * @param certificateThumbprint (Optional) Client Certificate Credential - TP, , string or function that returns a string * @param namespace (Optional) Namespace to be appended to storage keys, defaults to empty string */ export declare function BotDeclaration(endpoint: string, storage: Storage, appId: string | undefined | (() => string), appPassword: string | undefined | (() => string), certificatePrivateKey?: string | undefined | (() => string), certificateThumbprint?: string | undefined | (() => string), namespace?: string | undefined): (target: Function) => void;