UNPKG

1.54 kBTypeScriptView Raw
1export declare class Botonic {
2 current_path: string;
3 bot_path: string;
4 path: string;
5 conf: any;
6 private app;
7 private df_session_id;
8 constructor(config_path: string);
9 getAction(input: any): any;
10 matchRoute(prop: string, matcher: any, input: any): boolean;
11 processInput(input: any): Promise<any>;
12 getIntent(input: any): Promise<any>;
13}
14export declare class BotonicAPIService {
15 cliendId: string;
16 clientSecret: string;
17 baseUrl: string;
18 baseApiUrl: string;
19 loginUrl: string;
20 botPath: string;
21 botCredentialsPath: string;
22 globalConfigPath: string;
23 globalCredentialsPath: string;
24 oauth: any;
25 me: any;
26 mixpanel: any;
27 bot: any;
28 headers: object | null;
29 constructor();
30 beforeExit(): void;
31 loadGlobalCredentials(): void;
32 loadBotCredentials(): void;
33 checkGlobalCredentialsPath(): Promise<void>;
34 saveGlobalCredentials(): Promise<void>;
35 saveBotCredentials(): void;
36 setCurrentBot(bot: any): void;
37 setMixpanelInfo(mixpanel_id: any): void;
38 logout(): void;
39 api(path: string, body?: any, method?: string, headers?: object | null, params?: any): Promise<any>;
40 login(email: any, password: any): Promise<any>;
41 signup(email: string, password: string, org_name: string, campaign: any): Promise<any>;
42 saveBot(bot_name: string): Promise<any>;
43 getBots(): Promise<any>;
44 getProviders(): Promise<any>;
45 deployBot(bundlePath: string, password: any): Promise<any>;
46 getHeaders(form: any): Promise<{}>;
47}