import { WebAPICallResult } from '../../WebClient'; export type ViewsPushResponse = WebAPICallResult & { error?: string; needed?: string; ok?: boolean; provided?: string; response_metadata?: ResponseMetadata; view?: View; warning?: string; }; export interface ResponseMetadata { messages?: string[]; } export interface View { app_id?: string; app_installed_team_id?: string; blocks?: Block[]; bot_id?: string; callback_id?: string; clear_on_close?: boolean; close?: Close; external_id?: string; hash?: string; id?: string; notify_on_close?: boolean; previous_view_id?: string; private_metadata?: string; root_view_id?: string; state?: State; submit?: Close; submit_disabled?: boolean; team_id?: string; title?: Close; type?: string; } export interface Block { accessory?: Accessory; alt_text?: string; author_name?: string; block_id?: string; description?: Close; dispatch_action?: boolean; element?: PurpleElement; elements?: StickyElement[]; fallback?: string; fields?: Close[]; hint?: Close; image_bytes?: number; image_height?: number; image_url?: string; image_width?: number; is_animated?: boolean; label?: Close; optional?: boolean; provider_icon_url?: string; provider_name?: string; slack_file?: SlackFile; text?: Close; thumbnail_url?: string; title?: Close; title_url?: string; type?: string; video_url?: string; } export interface Accessory { alt_text?: string; fallback?: string; image_bytes?: number; image_height?: number; image_url?: string; image_width?: number; slack_file?: SlackFile; type?: string; } export interface SlackFile { id?: string; url?: string; } export interface Close { emoji?: boolean; text?: string; type?: CloseType; verbatim?: boolean; } export declare enum CloseType { Empty = "", Mrkdwn = "mrkdwn", PlainText = "plain_text" } export interface PurpleElement { accessibility_label?: string; action_id?: string; alt_text?: string; confirm?: Confirm; default_to_current_conversation?: boolean; dispatch_action_config?: DispatchActionConfig; fallback?: string; filter?: Filter; focus_on_load?: boolean; image_bytes?: number; image_height?: number; image_url?: string; image_width?: number; initial_channel?: string; initial_conversation?: string; initial_date?: string; initial_date_time?: number; initial_option?: Option; initial_time?: string; initial_user?: string; initial_value?: InitialValueClass | string; max_length?: number; min_length?: number; min_query_length?: number; multiline?: boolean; option_groups?: OptionGroup[]; options?: Option[]; placeholder?: Close; response_url_enabled?: boolean; slack_file?: SlackFile; style?: string; text?: Close; timezone?: string; type?: string; url?: string; value?: string; } export interface Confirm { confirm?: Close; deny?: Close; style?: string; text?: Close; title?: Close; } export interface DispatchActionConfig { trigger_actions_on?: string[]; } export interface Filter { exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; include?: any[]; } export interface Option { description?: Close; text?: Close; url?: string; value?: string; } export interface InitialValueClass { block_id?: string; elements?: InitialValueElement[]; type?: string; } export interface InitialValueElement { border?: number; elements?: FluffyElement[]; indent?: number; offset?: number; style?: string; type?: string; } export interface FluffyElement { border?: number; elements?: TentacledElement[]; indent?: number; offset?: number; style?: string; type?: string; } export interface TentacledElement { channel_id?: string; name?: string; range?: string; skin_tone?: number; style?: Style; team_id?: string; text?: string; timestamp?: string; type?: ElementType; unicode?: string; url?: string; user_id?: string; usergroup_id?: string; value?: string; } export interface Style { bold?: boolean; code?: boolean; italic?: boolean; strike?: boolean; } export declare enum ElementType { Broadcast = "broadcast", Channel = "channel", Color = "color", Date = "date", Emoji = "emoji", Link = "link", Team = "team", Text = "text", User = "user", Usergroup = "usergroup" } export interface OptionGroup { label?: Close; options?: Option[]; } export interface StickyElement { accessibility_label?: string; action_id?: string; alt_text?: string; confirm?: Confirm; default_to_current_conversation?: boolean; fallback?: string; filter?: Filter; focus_on_load?: boolean; image_bytes?: number; image_height?: number; image_url?: string; image_width?: number; initial_channel?: string; initial_channels?: string[]; initial_conversation?: string; initial_conversations?: string[]; initial_date?: string; initial_date_time?: number; initial_option?: Option; initial_options?: Option[]; initial_time?: string; initial_user?: string; initial_users?: string[]; max_selected_items?: number; min_query_length?: number; option_groups?: OptionGroup[]; options?: Option[]; placeholder?: Close; response_url_enabled?: boolean; slack_file?: SlackFile; style?: string; text?: Close; timezone?: string; type?: string; url?: string; value?: string; workflow?: Workflow; } export interface Workflow { trigger?: Trigger; } export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; url?: string; } export interface CustomizableInputParameter { name?: string; value?: string; } export interface State { } //# sourceMappingURL=ViewsPushResponse.d.ts.map