@slack/web-api
Version:
Official library for using the Slack Platform's Web API
89 lines • 2.31 kB
TypeScript
import type { WebAPICallResult } from '../../WebClient';
export type UsersInfoResponse = WebAPICallResult & {
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
user?: User;
};
export interface User {
color?: string;
deleted?: boolean;
enterprise_user?: EnterpriseUser;
has_2fa?: boolean;
id?: string;
is_admin?: boolean;
is_app_user?: boolean;
is_bot?: boolean;
is_connector_bot?: boolean;
is_email_confirmed?: boolean;
is_invited_user?: boolean;
is_owner?: boolean;
is_primary_owner?: boolean;
is_restricted?: boolean;
is_stranger?: boolean;
is_ultra_restricted?: boolean;
is_workflow_bot?: boolean;
locale?: string;
name?: string;
profile?: Profile;
real_name?: string;
team_id?: string;
tz?: string;
tz_label?: string;
tz_offset?: number;
updated?: number;
who_can_share_contact_card?: string;
}
export interface EnterpriseUser {
enterprise_id?: string;
enterprise_name?: string;
id?: string;
is_admin?: boolean;
is_owner?: boolean;
is_primary_owner?: boolean;
teams?: string[];
}
export interface Profile {
always_active?: boolean;
api_app_id?: string;
avatar_hash?: string;
bot_id?: string;
display_name?: string;
display_name_normalized?: string;
email?: string;
first_name?: string;
guest_invited_by?: string;
huddle_state?: string;
huddle_state_expiration_ts?: number;
image_1024?: string;
image_192?: string;
image_24?: string;
image_32?: string;
image_48?: string;
image_512?: string;
image_72?: string;
image_original?: string;
is_custom_image?: boolean;
last_name?: string;
phone?: string;
pronouns?: string;
real_name?: string;
real_name_normalized?: string;
skype?: string;
status_emoji?: string;
status_emoji_display_info?: StatusEmojiDisplayInfo[];
status_emoji_url?: string;
status_expiration?: number;
status_text?: string;
status_text_canonical?: string;
team?: string;
title?: string;
}
export interface StatusEmojiDisplayInfo {
display_alias?: string;
display_url?: string;
emoji_name?: string;
unicode?: string;
}
//# sourceMappingURL=UsersInfoResponse.d.ts.map