UNPKG

1.99 kBTypeScriptView Raw
1import { WebAPICallResult } from '../../WebClient';
2export type UsersLookupByEmailResponse = WebAPICallResult & {
3 error?: string;
4 needed?: string;
5 ok?: boolean;
6 provided?: string;
7 response_metadata?: ResponseMetadata;
8 user?: User;
9};
10export interface ResponseMetadata {
11 messages?: string[];
12}
13export interface User {
14 color?: string;
15 deleted?: boolean;
16 has_2fa?: boolean;
17 id?: string;
18 is_admin?: boolean;
19 is_app_user?: boolean;
20 is_bot?: boolean;
21 is_email_confirmed?: boolean;
22 is_invited_user?: boolean;
23 is_owner?: boolean;
24 is_primary_owner?: boolean;
25 is_restricted?: boolean;
26 is_ultra_restricted?: boolean;
27 name?: string;
28 profile?: Profile;
29 real_name?: string;
30 team_id?: string;
31 tz?: string;
32 tz_label?: string;
33 tz_offset?: number;
34 updated?: number;
35 who_can_share_contact_card?: string;
36}
37export interface Profile {
38 avatar_hash?: string;
39 display_name?: string;
40 display_name_normalized?: string;
41 email?: string;
42 first_name?: string;
43 guest_invited_by?: string;
44 huddle_state?: string;
45 huddle_state_expiration_ts?: number;
46 image_1024?: string;
47 image_192?: string;
48 image_24?: string;
49 image_32?: string;
50 image_48?: string;
51 image_512?: string;
52 image_72?: string;
53 image_original?: string;
54 is_custom_image?: boolean;
55 last_name?: string;
56 phone?: string;
57 pronouns?: string;
58 real_name?: string;
59 real_name_normalized?: string;
60 skype?: string;
61 status_emoji?: string;
62 status_emoji_display_info?: StatusEmojiDisplayInfo[];
63 status_emoji_url?: string;
64 status_expiration?: number;
65 status_text?: string;
66 status_text_canonical?: string;
67 team?: string;
68 title?: string;
69}
70export interface StatusEmojiDisplayInfo {
71 display_alias?: string;
72 display_url?: string;
73 emoji_name?: string;
74 unicode?: string;
75}
76//# sourceMappingURL=UsersLookupByEmailResponse.d.ts.map
\No newline at end of file