msbot
Version:
MSBot command line tool for manipulating Microsoft Bot Framework .bot files
56 lines (55 loc) • 1.42 kB
TypeScript
/**
* Copyright(c) Microsoft Corporation.All rights reserved.
* Licensed under the MIT License.
*/
export declare enum ServiceType {
Endpoint = "endpoint",
AzureBotService = "abs",
Luis = "luis",
QnA = "qna",
Dispatch = "dispatch",
File = "file",
}
export interface IConnectedService {
readonly type: ServiceType;
name: string;
id?: string;
}
export interface IEndpointService extends IConnectedService {
appId: string;
appPassword: string;
endpoint: string;
}
export interface IAzureBotService extends IConnectedService {
tenantId: string;
subscriptionId: string;
resourceGroup: string;
}
export interface ILuisService extends IConnectedService {
appId: string;
authoringKey: string;
subscriptionKey: string;
version: string;
}
export interface IDispatchService extends IConnectedService {
appId: string;
authoringKey: string;
subscriptionKey: string;
version: string;
serviceIds: string[];
}
export interface IQnAService extends IConnectedService {
subscriptionKey: string;
kbId: string;
hostname: string;
endpointKey: string;
}
export interface IFileService extends IConnectedService {
filePath: string;
}
export interface IBotConfig {
name: string;
description: string;
secretKey: string;
services: IConnectedService[];
}