import { AppRequest, Authorization, Block, Channel, Configuration, Dnd, FullChannel, FullUser, Icon, Invite, InviteRequest, Item, Message, Metadata, PinnedInfo, Room, State, Subteam, Team, User, View, WorkflowStep } from "./types"; export interface SlashCommandEvent { api_app_id: string; channel_id: string; channel_name: string; command: string; is_enterprise_install: string; response_url: string; team_domain: string; team_id: string; text: string; token: string; trigger_id: string; user_id: string; user_name: string; } export interface CommonEvent { readonly token?: string; readonly team_id: string | null; readonly api_app_id: string; readonly type?: string; readonly event_id?: string; readonly event_time?: number; readonly authorizations?: Authorization[] | null; readonly is_ext_shared_channel?: boolean; readonly event_context?: string; readonly authed_users?: string[]; readonly enterprise_id?: string; } export interface AppHomeOpenedEvent extends CommonEvent { readonly event: { readonly type: "app_home_opened"; readonly user: string; readonly channel: string; readonly tab: string; readonly view: View; readonly events_ts: string; }; } export interface AppMentionEvent extends CommonEvent { readonly event: { readonly type: "app_mention"; readonly client_msg_id: string; readonly text: string; readonly user: string; readonly ts: string; readonly team: string; readonly blocks: Block[]; readonly channel: string; readonly events_ts: string; }; } export interface AppRateLimitedEvent { readonly token: string; readonly type: "app_rate_limited"; readonly team_id: string; readonly minute_rate_limited: number; readonly api_app_id: string; } export interface AppRequestedEvent extends CommonEvent { readonly event: { readonly type: "app_requested"; readonly app_request?: AppRequest; readonly events_ts: string; }; } export interface AppUninstalledEvent extends CommonEvent { readonly event: { readonly type: "app_uninstalled"; readonly events_ts: string; }; } export interface CallRejectedEvent extends CommonEvent { readonly event: { readonly type: "call_rejected"; readonly call_id: string; readonly user_id: string; readonly channel_id: string; readonly external_unique_id: string; readonly events_ts: string; }; } export interface ChannelArchiveEvent extends CommonEvent { readonly event: { readonly type: "channel_archive"; readonly is_moved: number; readonly channel: string; readonly user: string; readonly event_ts: string; }; } export interface ChannelCreatedEvent extends CommonEvent { readonly event: { readonly type: "channel_created"; readonly channel: FullChannel; readonly event_ts: string; }; } export interface ChannelDeletedEvent extends CommonEvent { readonly event: { readonly type: "channel_deleted"; readonly channel: string; readonly actor_id: string; readonly event_ts: string; }; } export interface ChannelHistoryChangedEvent extends CommonEvent { readonly event: { readonly type: "channel_history_changed"; readonly latest: string; readonly channel: string; readonly event_ts: string; }; } export interface ChannelIdChangedEvent extends CommonEvent { readonly event: { readonly type: "channel_id_changed"; readonly old_channel_id: string; readonly new_channel_id: string; readonly event_ts: string; }; } export interface ChannelLeftEvent extends CommonEvent { readonly event: { readonly type: "channel_left"; readonly channel: string; readonly actor_its: string; readonly event_ts: string; }; } export interface ChannelRenameEvent extends CommonEvent { readonly event: { readonly type: "channel_rename"; readonly channel: FullChannel; readonly event_ts: string; }; } export interface ChannelSharedEvent extends CommonEvent { readonly event: { readonly type: "channel_shared"; readonly connected_team_id: string; readonly channel: string; readonly event_ts: string; }; } export interface ChannelUnarchiveEvent extends CommonEvent { readonly event: { readonly type: "channel_unarchive"; readonly channel: string; readonly user: string; readonly event_ts: string; }; } export interface ChannelUnsharedEvent extends CommonEvent { readonly event: { readonly type: "channel_unshared"; readonly previously_connected_team_id: string; readonly is_ext_shared: boolean; readonly channel: string; readonly event_ts: string; }; } export interface DndUpdatedEvent extends CommonEvent { readonly event: { readonly type: "dnd_updated"; readonly user: string; readonly dnd_status: Dnd; readonly event_ts: string; }; } export interface DndUpdatedUserEvent extends CommonEvent { readonly event: { readonly type: "dnd_updated_user"; readonly user: string; readonly dnd_status: Dnd; readonly event_ts: string; }; } export interface EmailDomainChangedEvent extends CommonEvent { readonly event: { readonly type: "email_domain_changed"; readonly email_domain: string; readonly event_ts: string; }; } export interface EmojiChangedEvent extends CommonEvent { readonly event: { readonly type: "emoji_changed"; readonly subtype: string; readonly name?: string; readonly names?: string[]; readonly value: string; readonly old_name?: string; readonly new_name?: string; readonly event_ts: string; }; } export interface FileChangeEvent extends CommonEvent { readonly event: { readonly type: "file_change"; readonly file_id: string; readonly user_id: string; readonly file: { readonly id: string; }; readonly event_ts: string; }; } export interface FileCreatedEvent extends CommonEvent { readonly event: { readonly type: "file_created"; readonly file_id: string; readonly user_id: string; readonly file: { readonly id: string; }; readonly event_ts: string; }; } export interface FileDeletedEvent extends CommonEvent { readonly event: { readonly type: "file_deleted"; readonly file_id: string; readonly channel_ids: string[]; readonly event_ts: string; }; } export interface FilePublicEvent extends CommonEvent { readonly event: { readonly type: "file_public"; readonly file_id: string; readonly user_id: string; readonly file: { readonly id: string; }; readonly event_ts: string; }; } export interface FileSharedEvent extends CommonEvent { readonly event: { readonly type: "file_shared"; readonly file_id: string; readonly user_id: string; readonly file: { readonly id: string; }; readonly channel_id: string; readonly event_ts: string; }; } export interface FileUnsharedEvent extends CommonEvent { readonly event: { readonly type: "file_unshared"; readonly file_id: string; readonly user_id: string; readonly file: { readonly id: string; }; readonly channel_id: string; readonly event_ts: string; }; } export interface GridMigrationFinishedEvent extends CommonEvent { readonly event: { readonly type: "grid_migration_finished"; readonly enterprise_id: string; readonly event_ts: string; }; } export interface GridMigrationStartedEvent extends CommonEvent { readonly event: { readonly type: "grid_migration_started"; readonly enterprise_id: string; readonly event_ts: string; }; } export interface GroupArchiveEvent extends CommonEvent { readonly event: { readonly type: "group_archive"; readonly channel: string; readonly event_ts: string; }; } export interface GroupCloseEvent extends CommonEvent { readonly event: { readonly type: "group_close"; readonly user: string; readonly channel: string; readonly event_ts: string; }; } export interface GroupDeletedEvent extends CommonEvent { readonly event: { readonly type: "group_deleted"; readonly channel: string; readonly event_ts: string; }; } export interface GroupHistoryChangedEvent extends CommonEvent { readonly event: { readonly type: "group_history_changed"; readonly latest: string; readonly ts: string; readonly event_ts: string; }; } export interface GroupLeftEvent extends CommonEvent { readonly event: { readonly type: "group_left"; readonly channel: string; readonly event_ts: string; }; } export interface GroupOpenEvent extends CommonEvent { readonly event: { readonly type: "group_open"; readonly user: string; readonly channel: string; readonly event_ts: string; }; } export interface GroupRenameEvent extends CommonEvent { readonly event: { readonly type: "group_rename"; readonly channel: FullChannel; readonly event_ts: string; }; } export interface GroupUnarchiveEvent extends CommonEvent { readonly event: { readonly type: "group_unarchive"; readonly channel: string; readonly event_ts: string; }; } export interface ImCloseEvent extends CommonEvent { readonly event: { readonly type: "im_close"; readonly user: string; readonly channel: string; readonly event_ts: string; }; } export interface ImCreatedEvent extends CommonEvent { readonly event: { readonly type: "im_created"; readonly user: string; readonly channel: FullChannel; readonly event_ts: string; }; } export interface ImHistoryChangedEvent extends CommonEvent { readonly event: { readonly type: "im_history_changed"; readonly latest: string; readonly ts: string; readonly event_ts: string; }; } export interface ImOpenEvent extends CommonEvent { readonly event: { readonly type: "im_open"; readonly user: string; readonly channel: string; readonly event_ts: string; }; } export interface InviteRequestedEvent extends CommonEvent { readonly event: { readonly type: "invite_requested"; readonly invite_request: InviteRequest; readonly event_ts: string; }; } export interface LinkSharedEvent extends CommonEvent { readonly event: { readonly type: "link_shared"; readonly user: string; readonly channel: string; readonly message_ts: string; readonly links: { url: string; domain: string; }[]; readonly source: string; readonly unfurl_id: string; readonly is_bot_user_member: boolean; readonly event_ts: string; }; } export interface MemberJoinedChannelEvent extends CommonEvent { readonly event: { readonly type: "member_joined_channel"; readonly user: string; readonly channel: string; readonly channel_type: string; readonly team: string; readonly event_ts: string; }; } export interface MemberLeftChannelEvent extends CommonEvent { readonly event: { readonly type: "member_left_channel"; readonly user: string; readonly channel: string; readonly channel_type: string; readonly team: string; readonly event_ts: string; }; } export interface CommonMessageEvent extends CommonEvent { readonly event: { readonly client_msg_id?: string; readonly type: "message"; readonly subtype?: string; readonly ts?: string; readonly text?: string; readonly bot_id?: string; readonly username?: string; readonly icons?: Icon; readonly user?: string; readonly team?: string; readonly blocks?: Block[]; readonly channel?: string; readonly event_ts: string; readonly channel_type?: string; readonly message?: Message; readonly previous_message?: Message; readonly hidden?: boolean; readonly room?: Room; readonly no_notifications?: boolean; readonly permalink?: string; readonly deleted_ts?: string; readonly thread_ts?: string; readonly root?: Message; readonly inviter?: string; readonly actor_id?: string; readonly topic?: string; readonly purpose?: string; readonly old_name?: string; readonly members?: string[]; readonly files?: File[]; readonly upload?: File[]; readonly display_as_bot?: boolean; readonly authed_teams?: string[]; }; } export interface MessageEvent extends CommonMessageEvent { } export interface MessageChannelsEvent extends CommonMessageEvent { } export interface MessageGroupsEvent extends CommonMessageEvent { } export interface MessageImEvent extends CommonMessageEvent { } export interface MessageMetadataDeletedEvent extends CommonEvent { readonly event: { readonly type: "message_metadata_deleted"; readonly channel_id: string; readonly previous_metadata: Metadata; readonly app_id: string; readonly bot_id: string; readonly user_id: string; readonly team_id: string; readonly message_ts: string; readonly deleted_ts: string; readonly event_ts: string; }; } export interface MessageMetadataPostedEvent extends CommonEvent { readonly event: { readonly type: "message_metadata_posted"; readonly channel_id: string; readonly metadata: Metadata; readonly app_id: string; readonly bot_id: string; readonly user_id: string; readonly team_id: string; readonly message_ts: string; readonly deleted_ts: string; readonly event_ts: string; }; } export interface MessageMetadataUpdatedEvent extends CommonEvent { readonly event: { readonly type: "message_metadata_updated"; readonly channel_id: string; readonly metadata: Metadata; readonly previous_metadata: Metadata; readonly app_id: string; readonly bot_id: string; readonly user_id: string; readonly team_id: string; readonly message_ts: string; readonly deleted_ts: string; readonly event_ts: string; }; } export interface MessageMpimEvent extends CommonMessageEvent { } export interface PinAddedEvent extends CommonEvent { readonly event: { readonly type: "pin_added"; readonly channel_id: string; readonly item: Item; readonly item_user: string; readonly pin_count: number; readonly pinned_info: PinnedInfo; readonly event_ts: string; }; } export interface PinRemovedEvent extends CommonEvent { readonly event: { readonly type: "pin_removed"; readonly channel_id: string; readonly item: Item; readonly item_user: string; readonly pin_count: number; readonly pinned_info: PinnedInfo; readonly has_pins: boolean; readonly event_ts: string; }; } export interface ReactionAddedEvent extends CommonEvent { readonly event: { readonly type: "reaction_added"; readonly user: string; readonly reaction: string; readonly item: Item; readonly item_user: string; readonly event_ts: string; }; } export interface ReactionRemovedEvent extends CommonEvent { readonly event: { readonly type: "reaction_removed"; readonly user: string; readonly reaction: string; readonly item: Item; readonly item_user: string; readonly event_ts: string; }; } export interface SharedChannelInviteAcceptedEvent extends CommonEvent { readonly event: { readonly type: "shared_channel_invite_accepted"; readonly approval_required: boolean; readonly invite: Invite; readonly channel: FullChannel; readonly teams_in_channel: Team[]; readonly accepting_user: FullUser; readonly event_ts: string; }; } export interface SharedChannelInviteApprovedEvent extends CommonEvent { readonly event: { readonly type: "shared_channel_invite_approved"; readonly invite: Invite; readonly channel: FullChannel; readonly teams_in_channel: Team[]; readonly approving_team_id: string; readonly event_ts: string; }; } export interface SharedChannelInviteDeclinedEvent extends CommonEvent { readonly event: { readonly type: "shared_channel_invite_declined"; readonly invite: Invite; readonly channel: FullChannel; readonly declining_team_id: string; readonly teams_in_channel: Team[]; readonly declining_user: Team[]; readonly event_ts: string; }; } export interface SharedChannelInviteReceivedEvent extends CommonEvent { readonly event: { readonly type: "shared_channel_invite_received"; readonly invite: Invite; readonly channel: FullChannel; readonly event_ts: string; }; } export interface StarAddedEvent extends CommonEvent { readonly event: { readonly type: "star_added"; readonly user: string; readonly item: Item; readonly event_ts: string; }; } export interface StarRemovedEvent extends CommonEvent { readonly event: { readonly type: "star_removed"; readonly user: string; readonly item: Item; readonly event_ts: string; }; } export interface SubteamCreatedEvent extends CommonEvent { readonly event: { readonly type: "subteam_created"; readonly subteam: Subteam; readonly event_ts: string; }; } export interface SubteamMembersChangedEvent extends CommonEvent { readonly event: { readonly type: "subteam_members_changed"; readonly subteam_id: string; readonly team_id: string; readonly date_previous_update: string; readonly date_update: string; readonly added_users: string[]; readonly added_users_count: string; readonly removed_users: string[]; readonly removed_users_count: string; readonly event_ts: string; }; } export interface SubteamSelfAddedEvent extends CommonEvent { readonly event: { readonly type: "subteam_self_added"; readonly subteam_id: string; readonly event_ts: string; }; } export interface SubteamSelfRemovedEvent extends CommonEvent { readonly event: { readonly type: "subteam_self_removed"; readonly subteam_id: string; readonly event_ts: string; }; } export interface SubteamUpdatedEvent extends CommonEvent { readonly event: { readonly type: "subteam_updated"; readonly subteam: Subteam; readonly event_ts: string; }; } export interface TeamAccessGrantedEvent extends CommonEvent { readonly event: { readonly type: "team_access_granted"; readonly team_ids: string[]; readonly event_ts: string; }; } export interface TeamAccessRevokedEvent extends CommonEvent { readonly event: { readonly type: "team_access_revoked"; readonly team_ids: string[]; readonly event_ts: string; }; } export interface TeamDomainChangeEvent extends CommonEvent { readonly event: { readonly type: "team_domain_change"; readonly url: string; readonly domain: string; readonly team_ids: string[]; readonly event_ts: string; }; } export interface TeamJoinEvent extends CommonEvent { readonly event: { readonly type: "team_join"; readonly user: FullUser; readonly cache_ts: string; readonly event_ts: string; }; } export interface TeamRenameEvent extends CommonEvent { readonly event: { readonly type: "team_rename"; readonly name: string; readonly team_id: string; readonly event_ts: string; }; } export interface TokensRevokedEvent extends CommonEvent { readonly event: { readonly type: "tokens_revoked"; readonly tokens: { readonly oauth: string[]; readonly bot: string[]; }; readonly event_ts: string; }; } export interface UrlVerificationEvent { readonly token: string; readonly challenge: string; readonly type: "url_verification"; } export interface UserChangeEvent extends CommonEvent { readonly event: { readonly type: "user_change"; readonly user: FullUser; readonly cache_ts: string; readonly event_ts: string; }; } export interface UserHuddleChangedEvent extends CommonEvent { readonly event: { readonly type: "user_huddle_changed"; readonly user: FullUser; readonly cache_ts: string; readonly event_ts: string; }; } export interface UserProfileChangedEvent extends CommonEvent { readonly event: { readonly type: "user_profile_changed"; readonly user: FullUser; readonly cache_ts: string; readonly event_ts: string; }; } export interface UserStatusChangedEvent extends CommonEvent { readonly event: { readonly type: "user_status_changed"; readonly user: FullUser; readonly cache_ts: string; readonly event_ts: string; }; } export interface WorkflowDeletedEvent extends CommonEvent { readonly event: { readonly type: "workflow_deleted"; readonly workflow_id: string; readonly workflow_draft_configuration: Configuration; readonly event_ts: string; }; } export interface WorkflowPublishedEvent extends CommonEvent { readonly event: { readonly type: "workflow_published"; readonly workflow_id: string; readonly workflow_published_configuration: Configuration; readonly event_ts: string; }; } export interface WorkflowStepDeletedEvent extends CommonEvent { readonly event: { readonly type: "workflow_step_deleted"; readonly workflow_id: string; readonly workflow_draft_configuration: Configuration; readonly workflow_published_configuration: Configuration; readonly event_ts: string; }; } export interface WorkflowStepExecuteEvent extends CommonEvent { readonly event: { readonly type: "workflow_step_execute"; readonly callback_id: string; readonly workflow_step: WorkflowStep; readonly event_ts: string; }; } export interface WorkflowUnpublishedEvent extends CommonEvent { readonly event: { readonly type: "workflow_unpublished"; readonly workflow_id: string; readonly workflow_draft_configuration: Configuration; readonly event_ts: string; }; } export interface InteractiveCommonEvent { readonly user: User; readonly token: string; readonly trigger_id: string; readonly team: Team; readonly enterprise: string | null; readonly is_enterprise_install: boolean; readonly [x: string]: any; } export interface BlockActionsEvent extends InteractiveCommonEvent { readonly type: "block_actions"; readonly api_app_id: string; readonly container: { readonly type: string; readonly message_ts: string; readonly channel_id: string; readonly is_ephemeral: boolean; readonly attachment_id?: number; readonly is_app_unfurl?: number; }; readonly channel: Channel; readonly message: Message; readonly state: State; readonly response_url: string; readonly actions: Element; } export interface ShortcutEvent extends InteractiveCommonEvent { readonly type: "shortcut"; readonly action_ts: string; readonly callback_id: string; } export interface MessageActionEvent extends InteractiveCommonEvent { readonly type: "message_action"; readonly action_ts: string; readonly channel: Channel; readonly callback_id: string; readonly response_url: string; readonly message_ts: string; readonly message: Message; } export interface ViewCommonEvent { readonly team: Team; readonly user: User; readonly view: View; readonly api_app_id?: string; readonly token?: string; readonly is_enterprise_install?: boolean; readonly enterprise?: string | boolean; readonly [x: string]: any; } export interface ViewSubmissionEvent extends ViewCommonEvent { readonly type: "view_submission"; readonly hash?: string; readonly response_urls?: { readonly block_id?: string; readonly action_id?: string; readonly channel_id?: string; readonly response_url?: string; }[]; readonly trigger_id?: string; } export interface ViewClosedEvent extends ViewCommonEvent { readonly type: "view_closed"; readonly is_cleared: boolean; } //# sourceMappingURL=events.d.ts.map