UNPKG

2.53 kBTypeScriptView Raw
1import { WebAPICallResult } from '../../WebClient';
2export type UsersListResponse = WebAPICallResult & {
3 arg?: string;
4 cache_ts?: number;
5 error?: string;
6 members?: Member[];
7 needed?: string;
8 offset?: string;
9 ok?: boolean;
10 provided?: string;
11 response_metadata?: ResponseMetadata;
12};
13export interface Member {
14 color?: string;
15 deleted?: boolean;
16 enterprise_user?: EnterpriseUser;
17 has_2fa?: boolean;
18 id?: string;
19 is_admin?: boolean;
20 is_app_user?: boolean;
21 is_bot?: boolean;
22 is_connector_bot?: boolean;
23 is_email_confirmed?: boolean;
24 is_invited_user?: boolean;
25 is_owner?: boolean;
26 is_primary_owner?: boolean;
27 is_restricted?: boolean;
28 is_ultra_restricted?: boolean;
29 is_workflow_bot?: boolean;
30 locale?: string;
31 name?: string;
32 profile?: Profile;
33 real_name?: string;
34 team_id?: string;
35 two_factor_type?: string;
36 tz?: string;
37 tz_label?: string;
38 tz_offset?: number;
39 updated?: number;
40 who_can_share_contact_card?: string;
41}
42export interface EnterpriseUser {
43 enterprise_id?: string;
44 enterprise_name?: string;
45 id?: string;
46 is_admin?: boolean;
47 is_owner?: boolean;
48 is_primary_owner?: boolean;
49 teams?: string[];
50}
51export interface Profile {
52 always_active?: boolean;
53 api_app_id?: string;
54 avatar_hash?: string;
55 bot_id?: string;
56 display_name?: string;
57 display_name_normalized?: string;
58 email?: string;
59 fields?: Fields;
60 first_name?: string;
61 guest_expiration_ts?: number;
62 guest_invited_by?: string;
63 huddle_state?: string;
64 huddle_state_expiration_ts?: number;
65 image_1024?: string;
66 image_192?: string;
67 image_24?: string;
68 image_32?: string;
69 image_48?: string;
70 image_512?: string;
71 image_72?: string;
72 image_original?: string;
73 is_custom_image?: boolean;
74 last_name?: string;
75 phone?: string;
76 pronouns?: string;
77 real_name?: string;
78 real_name_normalized?: string;
79 skype?: string;
80 status_emoji?: string;
81 status_emoji_display_info?: StatusEmojiDisplayInfo[];
82 status_expiration?: number;
83 status_text?: string;
84 status_text_canonical?: string;
85 team?: string;
86 title?: string;
87}
88export interface Fields {
89}
90export interface StatusEmojiDisplayInfo {
91 display_alias?: string;
92 display_url?: string;
93 emoji_name?: string;
94 unicode?: string;
95}
96export interface ResponseMetadata {
97 next_cursor?: string;
98}
99//# sourceMappingURL=UsersListResponse.d.ts.map
\No newline at end of file