import { AnyActionBlockElementType, AnyModalBlock, PlainTextField, RichTextBlock } from "slack-web-api-client"; export interface ViewStateSelectedOption { text: PlainTextField; value: string; } export interface UploadedFile { id: string; created: number; timestamp: number; name: string; title: string; filetype: string; mimetype: string; permalink: string; url_private: string; url_private_download: string; user: string; user_team: string; username?: string; access?: string; alt_txt?: string; app_id?: string; app_name?: string; bot_id?: string; channel_actions_count?: number; channel_actions_ts?: string; channels?: string[]; comments_count?: number; converted_pdf?: string; deanimate?: string; deanimate_gif?: string; display_as_bot?: boolean; duration_ms?: number; edit_link?: string; editable?: boolean; editor?: string; external_id?: string; external_type?: string; external_url?: string; file_access?: string; groups?: string[]; has_more?: boolean; has_more_shares?: boolean; has_rich_preview?: boolean; hls?: string; hls_embed?: string; image_exif_rotation?: number; ims?: string[]; is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; lines?: number; lines_more?: number; linked_channel_id?: string; media_display_type?: string; mode?: string; mp4?: string; mp4_low?: string; non_owner_editable?: boolean; num_stars?: number; org_or_workspace_access?: string; original_attachment_count?: number; original_h?: number; original_w?: number; permalink_public?: string; pinned_to?: string[]; pjpeg?: string; plain_text?: string; pretty_type?: string; preview?: string; preview_highlight?: string; preview_is_truncated?: boolean; preview_plain_text?: string; private_channels_with_file_access_count?: number; public_url_shared?: boolean; simplified_html?: string; size?: number; source_team?: string; subject?: string; subtype?: string; thumb_1024?: string; thumb_1024_gif?: string; thumb_1024_h?: number; thumb_1024_w?: number; thumb_160?: string; thumb_160_gif?: string; thumb_160_h?: number; thumb_160_w?: number; thumb_360?: string; thumb_360_gif?: string; thumb_360_h?: number; thumb_360_w?: number; thumb_480?: string; thumb_480_gif?: string; thumb_480_h?: number; thumb_480_w?: number; thumb_64?: string; thumb_64_gif?: string; thumb_64_h?: number; thumb_64_w?: number; thumb_720?: string; thumb_720_gif?: string; thumb_720_h?: number; thumb_720_w?: number; thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; thumb_800_h?: number; thumb_800_w?: number; thumb_80_gif?: string; thumb_80_h?: number; thumb_80_w?: number; thumb_960?: string; thumb_960_gif?: string; thumb_960_h?: number; thumb_960_w?: number; thumb_gif?: string; thumb_pdf?: string; thumb_pdf_h?: number; thumb_pdf_w?: number; thumb_tiny?: string; thumb_video?: string; thumb_video_h?: number; thumb_video_w?: number; updated?: number; url_static_preview?: string; vtt?: string; } export interface ViewStateValue { type: AnyActionBlockElementType; value?: string; selected_date?: string; selected_time?: string; selected_date_time?: number; selected_conversation?: string; selected_channel?: string; selected_user?: string; selected_option?: ViewStateSelectedOption; selected_conversations?: string[]; selected_channels?: string[]; selected_users?: string[]; selected_options?: ViewStateSelectedOption[]; timezone?: string; rich_text_value?: RichTextBlock; files?: UploadedFile[]; } export interface DataSubmissionView { id: string; callback_id: string; team_id: string; app_installed_team_id?: string; app_id: string | null; bot_id: string; title: PlainTextField; type: string; blocks: AnyModalBlock[]; close: PlainTextField | null; submit: PlainTextField | null; state: { /** * A dictionary of objects. Each object represents a block in the source view that contained stateful, interactive components. Objects are keyed by the block_id of those blocks. These objects each contain a child object. The child object is keyed by the action_id of the interactive element in the block. This final child object will contain the type and submitted value of the input block element. */ values: { [blockId: string]: { [actionId: string]: ViewStateValue; }; }; }; /** * A unique value that is optionally accepted in views.update and views.publish API calls. When provided to those APIs, the hash is validated such that only the most recent view can be updated. This should be used to ensure the correct view is being updated when updates are happening asynchronously. */ hash: string; private_metadata: string; root_view_id: string | null; previous_view_id: string | null; clear_on_close: boolean; notify_on_close: boolean; external_id?: string; } //# sourceMappingURL=view-objects.d.ts.map