UNPKG

1.03 kBTypeScriptView Raw
1import { WebAPICallResult } from '../../WebClient';
2export type OauthAccessResponse = WebAPICallResult & {
3 access_token?: string;
4 authorizing_user?: User;
5 bot?: Bot;
6 enterprise_id?: string;
7 error?: string;
8 incoming_webhook?: IncomingWebhook;
9 installer_user?: User;
10 needed?: string;
11 ok?: boolean;
12 provided?: string;
13 scope?: string;
14 scopes?: Scopes;
15 team_id?: string;
16 team_name?: string;
17 token_type?: string;
18 user_id?: string;
19 warning?: string;
20};
21export interface User {
22 app_home?: string;
23 user_id?: string;
24}
25export interface Bot {
26 bot_access_token?: string;
27 bot_user_id?: string;
28}
29export interface IncomingWebhook {
30 channel?: string;
31 channel_id?: string;
32 configuration_url?: string;
33 url?: string;
34}
35export interface Scopes {
36 app_home?: string[];
37 channel?: string[];
38 group?: string[];
39 im?: string[];
40 mpim?: string[];
41 team?: string[];
42 user?: string[];
43}
44//# sourceMappingURL=OauthAccessResponse.d.ts.map
\No newline at end of file