From 5df239e3cbb5440d418825c92503b5444e294461 Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Thu, 14 Mar 2024 14:25:41 +0900 Subject: [PATCH] Generate the latest web api responses --- .../AdminAppsActivitiesListResponse.ts | 10 +++ ...nversationsGetConversationPrefsResponse.ts | 16 +++- .../response/AdminFunctionsListResponse.ts | 1 + ...AdminFunctionsPermissionsLookupResponse.ts | 10 ++- .../types/response/ChatPostMessageResponse.ts | 14 ++++ .../response/ChatScheduleMessageResponse.ts | 11 +++ .../src/types/response/ChatUpdateResponse.ts | 14 ++++ .../response/ConversationsHistoryResponse.ts | 12 +++ .../response/ConversationsInviteResponse.ts | 1 + .../response/ConversationsOpenResponse.ts | 9 +++ .../response/ConversationsRepliesResponse.ts | 12 +++ .../FilesCompleteUploadExternalResponse.ts | 7 ++ .../types/response/FilesRemoteAddResponse.ts | 9 +++ .../types/response/FilesRemoteInfoResponse.ts | 9 +++ .../response/FilesRemoteShareResponse.ts | 9 +++ .../response/FilesRemoteUpdateResponse.ts | 9 +++ .../response/FilesRevokePublicURLResponse.ts | 9 +++ .../response/FilesSharedPublicURLResponse.ts | 9 +++ .../src/types/response/FilesUploadResponse.ts | 9 +++ .../src/types/response/PinsListResponse.ts | 9 +++ .../types/response/ReactionsGetResponse.ts | 17 ++++- .../types/response/ReactionsListResponse.ts | 20 ++++- .../src/types/response/RtmStartResponse.ts | 12 +++ .../src/types/response/SearchAllResponse.ts | 76 ++++++++++++------- .../src/types/response/SearchFilesResponse.ts | 33 ++++---- .../types/response/SearchMessagesResponse.ts | 12 +++ .../src/types/response/TeamInfoResponse.ts | 25 +++--- .../src/types/response/UsersListResponse.ts | 1 + .../src/types/response/ViewsOpenResponse.ts | 10 +++ .../types/response/ViewsPublishResponse.ts | 10 +++ .../src/types/response/ViewsPushResponse.ts | 10 +++ .../src/types/response/ViewsUpdateResponse.ts | 10 +++ scripts/package.json | 2 +- 33 files changed, 363 insertions(+), 64 deletions(-) diff --git a/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts b/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts index 7a1f08579..d579ea7cd 100644 --- a/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts @@ -33,11 +33,15 @@ export interface Activity { } export interface Payload { + action?: string; actor?: string; billing_reason?: string[]; bot_user_id?: string; + bundle_size_kb?: number; channel_id?: string; current_step?: number; + datastore_name?: string; + details?: string; error?: string; exec_outcome?: string; function_execution_id?: string; @@ -47,9 +51,12 @@ export interface Payload { inputs?: Inputs; is_billing_excluded?: boolean; log?: string; + request_type?: string; + team_id?: string; total_steps?: number; trigger?: Trigger; type?: string; + user_id?: string; workflow_name?: string; } @@ -65,12 +72,15 @@ export interface Trigger { export interface Config { description?: string; + event_type?: string; name?: string; schema?: Inputs; } export interface TripInformation { channel_id?: string; + message_ts?: string; + reaction?: string; user_id?: string; } diff --git a/packages/web-api/src/types/response/AdminConversationsGetConversationPrefsResponse.ts b/packages/web-api/src/types/response/AdminConversationsGetConversationPrefsResponse.ts index 53ccdd209..82e944eab 100644 --- a/packages/web-api/src/types/response/AdminConversationsGetConversationPrefsResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsGetConversationPrefsResponse.ts @@ -18,11 +18,23 @@ export type AdminConversationsGetConversationPrefsResponse = WebAPICallResult & }; export interface Prefs { - can_thread?: CanThread; - who_can_post?: CanThread; + can_huddle?: CanHuddle; + can_thread?: CanThread; + enable_at_channel?: CanHuddle; + enable_at_here?: CanHuddle; + membership_limit?: MembershipLimit; + who_can_post?: CanThread; +} + +export interface CanHuddle { + enabled?: boolean; } export interface CanThread { type?: string[]; user?: string[]; } + +export interface MembershipLimit { + value?: number; +} diff --git a/packages/web-api/src/types/response/AdminFunctionsListResponse.ts b/packages/web-api/src/types/response/AdminFunctionsListResponse.ts index 4817f3cca..12312052d 100644 --- a/packages/web-api/src/types/response/AdminFunctionsListResponse.ts +++ b/packages/web-api/src/types/response/AdminFunctionsListResponse.ts @@ -23,6 +23,7 @@ export interface Function { callback_id?: string; date_created?: number; date_deleted?: number; + date_released?: number; date_updated?: number; description?: string; form_enabled?: boolean; diff --git a/packages/web-api/src/types/response/AdminFunctionsPermissionsLookupResponse.ts b/packages/web-api/src/types/response/AdminFunctionsPermissionsLookupResponse.ts index e28455e47..fb3eb75fc 100644 --- a/packages/web-api/src/types/response/AdminFunctionsPermissionsLookupResponse.ts +++ b/packages/web-api/src/types/response/AdminFunctionsPermissionsLookupResponse.ts @@ -24,7 +24,7 @@ export interface Errors { export interface Permission { allowed_by_admin?: AllowedByAdmin; - allowed_entities?: AllowedByAdmin; + allowed_entities?: AllowedEntities; distribution?: AllowedByAdmin; } @@ -33,6 +33,14 @@ export interface AllowedByAdmin { user_ids?: string[]; } +export interface AllowedEntities { + channel_ids?: string[]; + org_ids?: string[]; + team_ids?: string[]; + type?: string; + user_ids?: string[]; +} + export interface ResponseMetadata { messages?: string[]; } diff --git a/packages/web-api/src/types/response/ChatPostMessageResponse.ts b/packages/web-api/src/types/response/ChatPostMessageResponse.ts index e9651e4c0..4b0c77f3e 100644 --- a/packages/web-api/src/types/response/ChatPostMessageResponse.ts +++ b/packages/web-api/src/types/response/ChatPostMessageResponse.ts @@ -156,12 +156,14 @@ export interface TitleBlockElement { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: DescriptionElement; thumbnail_url?: string; title?: DescriptionElement | string; @@ -208,6 +210,7 @@ export interface Accessory { options?: InitialOptionElement[]; placeholder?: DescriptionElement; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: DescriptionElement; timezone?: string; @@ -308,6 +311,11 @@ export interface AccessoryOptionGroup { options?: InitialOptionElement[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } @@ -421,6 +429,7 @@ export interface FileElement { saved?: Saved; sent_to_self?: boolean; shares?: Shares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -766,6 +775,7 @@ export interface MessageFile { saved?: Saved; sent_to_self?: boolean; shares?: EventPayload; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -871,6 +881,8 @@ export interface Room { is_dm_call?: boolean; is_prewarmed?: boolean; is_scheduled?: boolean; + knocks?: EventPayload; + last_invite_status_by_user?: EventPayload; media_backend_type?: string; media_server?: string; name?: string; @@ -964,6 +976,7 @@ export interface PurpleBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; label?: DescriptionElement; optional?: boolean; @@ -972,6 +985,7 @@ export interface PurpleBlock { provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; source?: string; text?: DescriptionElement; thumbnail_url?: string; diff --git a/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts b/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts index bcdfa530d..4626fd8b9 100644 --- a/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts +++ b/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts @@ -62,6 +62,7 @@ export interface Block { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; label?: Description; optional?: boolean; @@ -70,6 +71,7 @@ export interface Block { provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; source?: string; text?: Description; thumbnail_url?: string; @@ -117,6 +119,7 @@ export interface Accessory { options?: Option[]; placeholder?: Description; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Description; timezone?: string; @@ -210,6 +213,11 @@ export interface OptionGroup { options?: Option[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } @@ -353,6 +361,7 @@ export interface File { saved?: Saved; sent_to_self?: boolean; shares?: EventPayload; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -502,6 +511,8 @@ export interface Room { is_dm_call?: boolean; is_prewarmed?: boolean; is_scheduled?: boolean; + knocks?: EventPayload; + last_invite_status_by_user?: EventPayload; media_backend_type?: string; media_server?: string; name?: string; diff --git a/packages/web-api/src/types/response/ChatUpdateResponse.ts b/packages/web-api/src/types/response/ChatUpdateResponse.ts index d685ed58d..eb736bbd7 100644 --- a/packages/web-api/src/types/response/ChatUpdateResponse.ts +++ b/packages/web-api/src/types/response/ChatUpdateResponse.ts @@ -67,6 +67,7 @@ export interface Block { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; label?: DescriptionElement; optional?: boolean; @@ -75,6 +76,7 @@ export interface Block { provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; source?: string; text?: DescriptionElement; thumbnail_url?: string; @@ -122,6 +124,7 @@ export interface Accessory { options?: Option[]; placeholder?: DescriptionElement; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: DescriptionElement; timezone?: string; @@ -222,6 +225,11 @@ export interface OptionGroup { options?: Option[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } @@ -365,6 +373,7 @@ export interface BlockFile { saved?: Saved; sent_to_self?: boolean; shares?: EventPayload; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -576,6 +585,7 @@ export interface FileElement { saved?: Saved; sent_to_self?: boolean; shares?: Shares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -705,12 +715,14 @@ export interface TitleBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: DescriptionElement; thumbnail_url?: string; title?: DescriptionElement | string; @@ -746,6 +758,8 @@ export interface Room { is_dm_call?: boolean; is_prewarmed?: boolean; is_scheduled?: boolean; + knocks?: EventPayload; + last_invite_status_by_user?: EventPayload; media_backend_type?: string; media_server?: string; name?: string; diff --git a/packages/web-api/src/types/response/ConversationsHistoryResponse.ts b/packages/web-api/src/types/response/ConversationsHistoryResponse.ts index cb7a47f46..4c274be00 100644 --- a/packages/web-api/src/types/response/ConversationsHistoryResponse.ts +++ b/packages/web-api/src/types/response/ConversationsHistoryResponse.ts @@ -172,12 +172,14 @@ export interface TitleBlockElement { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: DescriptionElement; thumbnail_url?: string; title?: DescriptionElement | string; @@ -224,6 +226,7 @@ export interface Accessory { options?: InitialOptionElement[]; placeholder?: DescriptionElement; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: DescriptionElement; timezone?: string; @@ -324,6 +327,11 @@ export interface AccessoryOptionGroup { options?: InitialOptionElement[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } @@ -437,6 +445,7 @@ export interface FileElement { saved?: Saved; sent_to_self?: boolean; shares?: Shares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -782,6 +791,7 @@ export interface BlockFile { saved?: Saved; sent_to_self?: boolean; shares?: EventPayload; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -979,6 +989,7 @@ export interface PurpleBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; label?: DescriptionElement; optional?: boolean; @@ -987,6 +998,7 @@ export interface PurpleBlock { provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; source?: string; text?: DescriptionElement; thumbnail_url?: string; diff --git a/packages/web-api/src/types/response/ConversationsInviteResponse.ts b/packages/web-api/src/types/response/ConversationsInviteResponse.ts index e7c4325f5..15a9c2384 100644 --- a/packages/web-api/src/types/response/ConversationsInviteResponse.ts +++ b/packages/web-api/src/types/response/ConversationsInviteResponse.ts @@ -60,4 +60,5 @@ export interface Purpose { export interface Error { error?: string; ok?: boolean; + user?: string; } diff --git a/packages/web-api/src/types/response/ConversationsOpenResponse.ts b/packages/web-api/src/types/response/ConversationsOpenResponse.ts index dc0e76340..dbb5cbca4 100644 --- a/packages/web-api/src/types/response/ConversationsOpenResponse.ts +++ b/packages/web-api/src/types/response/ConversationsOpenResponse.ts @@ -78,6 +78,7 @@ export interface Block { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; label?: Description; optional?: boolean; @@ -86,6 +87,7 @@ export interface Block { provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; source?: string; text?: Description; thumbnail_url?: string; @@ -133,6 +135,7 @@ export interface Accessory { options?: Option[]; placeholder?: Description; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Description; timezone?: string; @@ -226,6 +229,11 @@ export interface OptionGroup { options?: Option[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } @@ -369,6 +377,7 @@ export interface File { saved?: Saved; sent_to_self?: boolean; shares?: Shares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; diff --git a/packages/web-api/src/types/response/ConversationsRepliesResponse.ts b/packages/web-api/src/types/response/ConversationsRepliesResponse.ts index d40fd98d5..247677335 100644 --- a/packages/web-api/src/types/response/ConversationsRepliesResponse.ts +++ b/packages/web-api/src/types/response/ConversationsRepliesResponse.ts @@ -161,12 +161,14 @@ export interface TitleBlockElement { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: DescriptionElement; thumbnail_url?: string; title?: DescriptionElement | string; @@ -213,6 +215,7 @@ export interface Accessory { options?: InitialOptionElement[]; placeholder?: DescriptionElement; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: DescriptionElement; timezone?: string; @@ -313,6 +316,11 @@ export interface AccessoryOptionGroup { options?: InitialOptionElement[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } @@ -426,6 +434,7 @@ export interface FileElement { saved?: Saved; sent_to_self?: boolean; shares?: Shares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -771,6 +780,7 @@ export interface BlockFile { saved?: Saved; sent_to_self?: boolean; shares?: EventPayload; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -968,6 +978,7 @@ export interface PurpleBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; label?: DescriptionElement; optional?: boolean; @@ -976,6 +987,7 @@ export interface PurpleBlock { provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; source?: string; text?: DescriptionElement; thumbnail_url?: string; diff --git a/packages/web-api/src/types/response/FilesCompleteUploadExternalResponse.ts b/packages/web-api/src/types/response/FilesCompleteUploadExternalResponse.ts index 28ff9f3e5..64fd51c80 100644 --- a/packages/web-api/src/types/response/FilesCompleteUploadExternalResponse.ts +++ b/packages/web-api/src/types/response/FilesCompleteUploadExternalResponse.ts @@ -22,6 +22,8 @@ export interface File { channels?: string[]; comments_count?: number; created?: number; + deanimate?: string; + deanimate_gif?: string; display_as_bot?: boolean; edit_link?: string; editable?: boolean; @@ -55,8 +57,13 @@ export interface File { size?: number; thumb_160?: string; 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_80?: string; thumb_tiny?: string; diff --git a/packages/web-api/src/types/response/FilesRemoteAddResponse.ts b/packages/web-api/src/types/response/FilesRemoteAddResponse.ts index f42db8498..b15bf550f 100644 --- a/packages/web-api/src/types/response/FilesRemoteAddResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteAddResponse.ts @@ -97,6 +97,7 @@ export interface File { saved?: Saved; sent_to_self?: boolean; shares?: Shares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -256,12 +257,14 @@ export interface TitleBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: Text; thumbnail_url?: string; title?: Text | string; @@ -308,6 +311,7 @@ export interface Accessory { options?: Option[]; placeholder?: Text; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Text; timezone?: string; @@ -401,6 +405,11 @@ export interface OptionGroup { options?: Option[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } diff --git a/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts b/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts index 209d61f5d..b9258032e 100644 --- a/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts @@ -97,6 +97,7 @@ export interface File { saved?: Saved; sent_to_self?: boolean; shares?: Shares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -256,12 +257,14 @@ export interface TitleBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: Text; thumbnail_url?: string; title?: Text | string; @@ -308,6 +311,7 @@ export interface Accessory { options?: Option[]; placeholder?: Text; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Text; timezone?: string; @@ -401,6 +405,11 @@ export interface OptionGroup { options?: Option[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } diff --git a/packages/web-api/src/types/response/FilesRemoteShareResponse.ts b/packages/web-api/src/types/response/FilesRemoteShareResponse.ts index b855cf5bb..c43feca13 100644 --- a/packages/web-api/src/types/response/FilesRemoteShareResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteShareResponse.ts @@ -97,6 +97,7 @@ export interface File { saved?: Saved; sent_to_self?: boolean; shares?: Shares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -256,12 +257,14 @@ export interface TitleBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: Text; thumbnail_url?: string; title?: Text | string; @@ -308,6 +311,7 @@ export interface Accessory { options?: Option[]; placeholder?: Text; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Text; timezone?: string; @@ -401,6 +405,11 @@ export interface OptionGroup { options?: Option[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } diff --git a/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts b/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts index 441e3b5dc..f8419e34e 100644 --- a/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts @@ -97,6 +97,7 @@ export interface File { saved?: Saved; sent_to_self?: boolean; shares?: Shares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -256,12 +257,14 @@ export interface TitleBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: Text; thumbnail_url?: string; title?: Text | string; @@ -308,6 +311,7 @@ export interface Accessory { options?: Option[]; placeholder?: Text; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Text; timezone?: string; @@ -401,6 +405,11 @@ export interface OptionGroup { options?: Option[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } diff --git a/packages/web-api/src/types/response/FilesRevokePublicURLResponse.ts b/packages/web-api/src/types/response/FilesRevokePublicURLResponse.ts index e9f999296..3b8e3b45f 100644 --- a/packages/web-api/src/types/response/FilesRevokePublicURLResponse.ts +++ b/packages/web-api/src/types/response/FilesRevokePublicURLResponse.ts @@ -97,6 +97,7 @@ export interface File { saved?: Saved; sent_to_self?: boolean; shares?: Shares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -256,12 +257,14 @@ export interface TitleBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: Text; thumbnail_url?: string; title?: Text | string; @@ -308,6 +311,7 @@ export interface Accessory { options?: Option[]; placeholder?: Text; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Text; timezone?: string; @@ -401,6 +405,11 @@ export interface OptionGroup { options?: Option[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } diff --git a/packages/web-api/src/types/response/FilesSharedPublicURLResponse.ts b/packages/web-api/src/types/response/FilesSharedPublicURLResponse.ts index 81f93035b..d99e56e39 100644 --- a/packages/web-api/src/types/response/FilesSharedPublicURLResponse.ts +++ b/packages/web-api/src/types/response/FilesSharedPublicURLResponse.ts @@ -97,6 +97,7 @@ export interface File { saved?: Saved; sent_to_self?: boolean; shares?: Shares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -256,12 +257,14 @@ export interface TitleBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: Text; thumbnail_url?: string; title?: Text | string; @@ -308,6 +311,7 @@ export interface Accessory { options?: Option[]; placeholder?: Text; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Text; timezone?: string; @@ -401,6 +405,11 @@ export interface OptionGroup { options?: Option[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } diff --git a/packages/web-api/src/types/response/FilesUploadResponse.ts b/packages/web-api/src/types/response/FilesUploadResponse.ts index 2b0dab0d9..b8dbcda5b 100644 --- a/packages/web-api/src/types/response/FilesUploadResponse.ts +++ b/packages/web-api/src/types/response/FilesUploadResponse.ts @@ -97,6 +97,7 @@ export interface File { saved?: Saved; sent_to_self?: boolean; shares?: Shares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -256,12 +257,14 @@ export interface TitleBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: Text; thumbnail_url?: string; title?: Text | string; @@ -308,6 +311,7 @@ export interface Accessory { options?: Option[]; placeholder?: Text; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Text; timezone?: string; @@ -401,6 +405,11 @@ export interface OptionGroup { options?: Option[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } diff --git a/packages/web-api/src/types/response/PinsListResponse.ts b/packages/web-api/src/types/response/PinsListResponse.ts index 52a657978..6c46ca2b4 100644 --- a/packages/web-api/src/types/response/PinsListResponse.ts +++ b/packages/web-api/src/types/response/PinsListResponse.ts @@ -105,6 +105,7 @@ export interface File { saved?: Saved; sent_to_self?: boolean; shares?: Shares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -264,12 +265,14 @@ export interface TitleBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: Text; thumbnail_url?: string; title?: Text | string; @@ -316,6 +319,7 @@ export interface Accessory { options?: Option[]; placeholder?: Text; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Text; timezone?: string; @@ -409,6 +413,11 @@ export interface OptionGroup { options?: Option[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } diff --git a/packages/web-api/src/types/response/ReactionsGetResponse.ts b/packages/web-api/src/types/response/ReactionsGetResponse.ts index 6375c3c02..dbf6c9f0d 100644 --- a/packages/web-api/src/types/response/ReactionsGetResponse.ts +++ b/packages/web-api/src/types/response/ReactionsGetResponse.ts @@ -62,6 +62,7 @@ export interface Block { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; label?: Description; optional?: boolean; @@ -70,6 +71,7 @@ export interface Block { provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; source?: string; text?: Description; thumbnail_url?: string; @@ -117,6 +119,7 @@ export interface Accessory { options?: Option[]; placeholder?: Description; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Description; timezone?: string; @@ -210,6 +213,11 @@ export interface OptionGroup { options?: Option[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } @@ -352,7 +360,8 @@ export interface File { reactions?: any[]; saved?: Saved; sent_to_self?: boolean; - shares?: PendingInvitees; + shares?: Knocks; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -455,7 +464,7 @@ export interface Saved { state?: string; } -export interface PendingInvitees { +export interface Knocks { } export interface Transcription { @@ -503,6 +512,8 @@ export interface Room { is_dm_call?: boolean; is_prewarmed?: boolean; is_scheduled?: boolean; + knocks?: Knocks; + last_invite_status_by_user?: Knocks; media_backend_type?: string; media_server?: string; name?: string; @@ -512,7 +523,7 @@ export interface Room { participants_camera_on?: string[]; participants_screenshare_off?: string[]; participants_screenshare_on?: string[]; - pending_invitees?: PendingInvitees; + pending_invitees?: Knocks; thread_root_ts?: string; was_accepted?: boolean; was_missed?: boolean; diff --git a/packages/web-api/src/types/response/ReactionsListResponse.ts b/packages/web-api/src/types/response/ReactionsListResponse.ts index acff10b44..46c29821a 100644 --- a/packages/web-api/src/types/response/ReactionsListResponse.ts +++ b/packages/web-api/src/types/response/ReactionsListResponse.ts @@ -173,12 +173,14 @@ export interface TitleBlockElement { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: DescriptionElement; thumbnail_url?: string; title?: DescriptionElement | string; @@ -225,6 +227,7 @@ export interface Accessory { options?: InitialOptionElement[]; placeholder?: DescriptionElement; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: DescriptionElement; timezone?: string; @@ -325,6 +328,11 @@ export interface AccessoryOptionGroup { options?: InitialOptionElement[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } @@ -438,6 +446,7 @@ export interface FileElement { saved?: Saved; sent_to_self?: boolean; shares?: Shares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -782,7 +791,8 @@ export interface BlockFile { reactions?: any[]; saved?: Saved; sent_to_self?: boolean; - shares?: PendingInvitees; + shares?: Knocks; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -855,7 +865,7 @@ export interface BlockFile { vtt?: string; } -export interface PendingInvitees { +export interface Knocks { } export interface RootIcons { @@ -888,6 +898,8 @@ export interface Room { is_dm_call?: boolean; is_prewarmed?: boolean; is_scheduled?: boolean; + knocks?: Knocks; + last_invite_status_by_user?: Knocks; media_backend_type?: string; media_server?: string; name?: string; @@ -897,7 +909,7 @@ export interface Room { participants_camera_on?: string[]; participants_screenshare_off?: string[]; participants_screenshare_on?: string[]; - pending_invitees?: PendingInvitees; + pending_invitees?: Knocks; thread_root_ts?: string; was_accepted?: boolean; was_missed?: boolean; @@ -981,6 +993,7 @@ export interface PurpleBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; label?: DescriptionElement; optional?: boolean; @@ -989,6 +1002,7 @@ export interface PurpleBlock { provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; source?: string; text?: DescriptionElement; thumbnail_url?: string; diff --git a/packages/web-api/src/types/response/RtmStartResponse.ts b/packages/web-api/src/types/response/RtmStartResponse.ts index b66fc6632..988e27f11 100644 --- a/packages/web-api/src/types/response/RtmStartResponse.ts +++ b/packages/web-api/src/types/response/RtmStartResponse.ts @@ -267,12 +267,14 @@ export interface TitleBlockElement { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: DescriptionElement; thumbnail_url?: string; title?: DescriptionElement | string; @@ -319,6 +321,7 @@ export interface Accessory { options?: InitialOptionElement[]; placeholder?: DescriptionElement; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: DescriptionElement; timezone?: string; @@ -419,6 +422,11 @@ export interface AccessoryOptionGroup { options?: InitialOptionElement[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } @@ -532,6 +540,7 @@ export interface FileElement { saved?: Saved; sent_to_self?: boolean; shares?: PurpleShares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -861,6 +870,7 @@ export interface MessageFile { saved?: Saved; sent_to_self?: boolean; shares?: FluffyShares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -1058,6 +1068,7 @@ export interface LatestBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; label?: DescriptionElement; optional?: boolean; @@ -1066,6 +1077,7 @@ export interface LatestBlock { provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; source?: string; text?: DescriptionElement; thumbnail_url?: string; diff --git a/packages/web-api/src/types/response/SearchAllResponse.ts b/packages/web-api/src/types/response/SearchAllResponse.ts index 1fa7f7092..9ce768e48 100644 --- a/packages/web-api/src/types/response/SearchAllResponse.ts +++ b/packages/web-api/src/types/response/SearchAllResponse.ts @@ -36,11 +36,13 @@ export interface FilesMatch { comments_count?: number; converted_pdf?: string; created?: number; + deanimate?: string; + deanimate_gif?: string; display_as_bot?: boolean; dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; edit_link?: string; editable?: boolean; - editors?: string[]; + editors?: LastEditor[]; editors_count?: number; external_id?: string; external_type?: string; @@ -60,7 +62,7 @@ export interface FilesMatch { is_external?: boolean; is_public?: boolean; is_starred?: boolean; - last_editor?: string; + last_editor?: LastEditor; lines?: number; lines_more?: number; linked_channel_id?: string; @@ -95,9 +97,11 @@ export interface FilesMatch { thumb_1024_w?: number; thumb_160?: string; 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; @@ -125,8 +129,8 @@ export interface FilesMatch { url_private?: string; url_private_download?: string; url_static_preview?: string; - user?: string; - user_team?: string; + user?: LastEditor; + user_team?: UserTeam; username?: string; } @@ -269,12 +273,14 @@ export interface AttachmentBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: DescriptionElement; thumbnail_url?: string; title?: DescriptionElement | string; @@ -321,6 +327,7 @@ export interface Accessory { options?: InitialOptionElement[]; placeholder?: DescriptionElement; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: DescriptionElement; timezone?: string; @@ -414,6 +421,11 @@ export interface AccessoryOptionGroup { options?: InitialOptionElement[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } @@ -527,6 +539,7 @@ export interface FileElement { saved?: Saved; sent_to_self?: boolean; shares?: PurpleShares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -607,7 +620,12 @@ export interface Cc { export interface DmMpdmUsersWithFileAccess { access?: string; - user_id?: string; + user_id?: LastEditor; +} + +export enum LastEditor { + Empty = '', + U00000000 = 'U00000000', } export interface FileHeaders { @@ -648,11 +666,11 @@ export interface Saved { } export interface PurpleShares { - private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + private?: { [key: string]: Public[] }; + public?: { [key: string]: Public[] }; } -export interface Private { +export interface Public { access?: string; channel_name?: string; date_last_shared?: number; @@ -660,11 +678,21 @@ export interface Private { reply_count?: number; reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; + share_user_id?: LastEditor; source?: string; - team_id?: string; + team_id?: UserTeam; thread_ts?: string; - ts?: string; + ts?: Ts; +} + +export enum UserTeam { + Empty = '', + T00000000 = 'T00000000', +} + +export enum Ts { + Empty = '', + The0000000000000000 = '0000000000.000000', } export interface Transcription { @@ -872,6 +900,7 @@ export interface MessageFile { saved?: Saved; sent_to_self?: boolean; shares?: FluffyShares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -1049,17 +1078,6 @@ export interface MatchShares { public?: { [key: string]: Public[] }; } -export interface Public { - channel_name?: string; - reply_count?: number; - reply_users?: string[]; - reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - ts?: string; -} - export interface MatchTitleBlock { accessory?: Accessory; alt_text?: string; @@ -1088,6 +1106,7 @@ export interface MatchTitleBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; label?: DescriptionElement; optional?: boolean; @@ -1096,6 +1115,7 @@ export interface MatchTitleBlock { provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; source?: string; text?: DescriptionElement; thumbnail_url?: string; @@ -1191,11 +1211,11 @@ export interface MessagesMatch { previous?: Previous; previous_2?: Previous; score?: number; - team?: string; + team?: UserTeam; text?: string; - ts?: string; + ts?: Ts; type?: string; - user?: string; + user?: LastEditor; username?: string; } @@ -1214,7 +1234,7 @@ export interface Channel { name?: string; name_normalized?: string; pending_shared?: string[]; - user?: string; + user?: LastEditor; } export interface Previous { @@ -1223,9 +1243,9 @@ export interface Previous { iid?: string; permalink?: string; text?: string; - ts?: string; + ts?: Ts; type?: string; - user?: string; + user?: LastEditor; username?: string; } diff --git a/packages/web-api/src/types/response/SearchFilesResponse.ts b/packages/web-api/src/types/response/SearchFilesResponse.ts index 8e54c78ee..049d70f57 100644 --- a/packages/web-api/src/types/response/SearchFilesResponse.ts +++ b/packages/web-api/src/types/response/SearchFilesResponse.ts @@ -34,6 +34,8 @@ export interface Match { comments_count?: number; converted_pdf?: string; created?: number; + deanimate?: string; + deanimate_gif?: string; display_as_bot?: boolean; dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; edit_link?: string; @@ -93,9 +95,11 @@ export interface Match { thumb_1024_w?: number; thumb_160?: string; 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; @@ -241,12 +245,14 @@ export interface Block { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: DescriptionElement; thumbnail_url?: string; title?: DescriptionElement | string; @@ -293,6 +299,7 @@ export interface Accessory { options?: InitialOptionElement[]; placeholder?: DescriptionElement; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: DescriptionElement; timezone?: string; @@ -393,6 +400,11 @@ export interface AccessoryOptionGroup { options?: InitialOptionElement[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } @@ -506,6 +518,7 @@ export interface FileElement { saved?: Saved; sent_to_self?: boolean; shares?: PurpleShares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -627,11 +640,11 @@ export interface Saved { } export interface PurpleShares { - private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + private?: { [key: string]: Public[] }; + public?: { [key: string]: Public[] }; } -export interface Private { +export interface Public { access?: string; channel_name?: string; date_last_shared?: number; @@ -851,6 +864,7 @@ export interface MessageFile { saved?: Saved; sent_to_self?: boolean; shares?: FluffyShares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -1028,17 +1042,6 @@ export interface MatchShares { public?: { [key: string]: Public[] }; } -export interface Public { - channel_name?: string; - reply_count?: number; - reply_users?: string[]; - reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - ts?: string; -} - export interface TitleBlock { accessory?: Accessory; alt_text?: string; @@ -1067,6 +1070,7 @@ export interface TitleBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; label?: DescriptionElement; optional?: boolean; @@ -1075,6 +1079,7 @@ export interface TitleBlock { provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; source?: string; text?: DescriptionElement; thumbnail_url?: string; diff --git a/packages/web-api/src/types/response/SearchMessagesResponse.ts b/packages/web-api/src/types/response/SearchMessagesResponse.ts index 48921ca1b..fa502260f 100644 --- a/packages/web-api/src/types/response/SearchMessagesResponse.ts +++ b/packages/web-api/src/types/response/SearchMessagesResponse.ts @@ -184,12 +184,14 @@ export interface TitleBlockElement { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; owning_team_id?: string; provider_icon_url?: string; provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; text?: DescriptionElement; thumbnail_url?: string; title?: DescriptionElement | string; @@ -236,6 +238,7 @@ export interface Accessory { options?: InitialOptionElement[]; placeholder?: DescriptionElement; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: DescriptionElement; timezone?: string; @@ -329,6 +332,11 @@ export interface AccessoryOptionGroup { options?: InitialOptionElement[]; } +export interface SlackFile { + id?: string; + url?: string; +} + export interface Workflow { trigger?: Trigger; } @@ -442,6 +450,7 @@ export interface FileElement { saved?: Saved; sent_to_self?: boolean; shares?: PurpleShares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -787,6 +796,7 @@ export interface MessageFile { saved?: Saved; sent_to_self?: boolean; shares?: FluffyShares; + show_badge?: boolean; simplified_html?: string; size?: number; source_team?: string; @@ -984,6 +994,7 @@ export interface MatchBlock { image_height?: number; image_url?: string; image_width?: number; + is_animated?: boolean; is_workflow_app?: boolean; label?: DescriptionElement; optional?: boolean; @@ -992,6 +1003,7 @@ export interface MatchBlock { provider_name?: string; sales_home_workflow_app_type?: number; share_url?: string; + slack_file?: SlackFile; source?: string; text?: DescriptionElement; thumbnail_url?: string; diff --git a/packages/web-api/src/types/response/TeamInfoResponse.ts b/packages/web-api/src/types/response/TeamInfoResponse.ts index 5712ab9a9..fc93fd118 100644 --- a/packages/web-api/src/types/response/TeamInfoResponse.ts +++ b/packages/web-api/src/types/response/TeamInfoResponse.ts @@ -18,18 +18,19 @@ export type TeamInfoResponse = WebAPICallResult & { }; export interface Team { - avatar_base_url?: string; - discoverable?: string; - domain?: string; - email_domain?: string; - enterprise_domain?: string; - enterprise_id?: string; - enterprise_name?: string; - icon?: Icon; - id?: string; - is_verified?: boolean; - name?: string; - url?: string; + avatar_base_url?: string; + discoverable?: string; + domain?: string; + email_domain?: string; + enterprise_domain?: string; + enterprise_id?: string; + enterprise_name?: string; + icon?: Icon; + id?: string; + is_verified?: boolean; + lob_sales_home_enabled?: boolean; + name?: string; + url?: string; } export interface Icon { diff --git a/packages/web-api/src/types/response/UsersListResponse.ts b/packages/web-api/src/types/response/UsersListResponse.ts index 12ffc4907..bb17aa38f 100644 --- a/packages/web-api/src/types/response/UsersListResponse.ts +++ b/packages/web-api/src/types/response/UsersListResponse.ts @@ -43,6 +43,7 @@ export interface Member { profile?: Profile; real_name?: string; team_id?: string; + two_factor_type?: string; tz?: string; tz_label?: string; tz_offset?: number; diff --git a/packages/web-api/src/types/response/ViewsOpenResponse.ts b/packages/web-api/src/types/response/ViewsOpenResponse.ts index 112da3b50..d8c1099ba 100644 --- a/packages/web-api/src/types/response/ViewsOpenResponse.ts +++ b/packages/web-api/src/types/response/ViewsOpenResponse.ts @@ -62,10 +62,12 @@ export interface Block { 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; @@ -81,9 +83,15 @@ export interface Accessory { 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; @@ -127,6 +135,7 @@ export interface PurpleElement { options?: Option[]; placeholder?: Close; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Close; timezone?: string; @@ -256,6 +265,7 @@ export interface StickyElement { options?: Option[]; placeholder?: Close; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Close; timezone?: string; diff --git a/packages/web-api/src/types/response/ViewsPublishResponse.ts b/packages/web-api/src/types/response/ViewsPublishResponse.ts index 19f501ed8..d510d241e 100644 --- a/packages/web-api/src/types/response/ViewsPublishResponse.ts +++ b/packages/web-api/src/types/response/ViewsPublishResponse.ts @@ -62,10 +62,12 @@ export interface Block { 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; @@ -81,9 +83,15 @@ export interface Accessory { 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; @@ -127,6 +135,7 @@ export interface PurpleElement { options?: Option[]; placeholder?: Close; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Close; timezone?: string; @@ -256,6 +265,7 @@ export interface StickyElement { options?: Option[]; placeholder?: Close; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Close; timezone?: string; diff --git a/packages/web-api/src/types/response/ViewsPushResponse.ts b/packages/web-api/src/types/response/ViewsPushResponse.ts index 76ebaaac2..dd264d4f6 100644 --- a/packages/web-api/src/types/response/ViewsPushResponse.ts +++ b/packages/web-api/src/types/response/ViewsPushResponse.ts @@ -62,10 +62,12 @@ export interface Block { 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; @@ -81,9 +83,15 @@ export interface Accessory { 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; @@ -127,6 +135,7 @@ export interface PurpleElement { options?: Option[]; placeholder?: Close; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Close; timezone?: string; @@ -256,6 +265,7 @@ export interface StickyElement { options?: Option[]; placeholder?: Close; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Close; timezone?: string; diff --git a/packages/web-api/src/types/response/ViewsUpdateResponse.ts b/packages/web-api/src/types/response/ViewsUpdateResponse.ts index bf52086b1..5bf5f9d65 100644 --- a/packages/web-api/src/types/response/ViewsUpdateResponse.ts +++ b/packages/web-api/src/types/response/ViewsUpdateResponse.ts @@ -62,10 +62,12 @@ export interface Block { 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; @@ -81,9 +83,15 @@ export interface Accessory { 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; @@ -127,6 +135,7 @@ export interface PurpleElement { options?: Option[]; placeholder?: Close; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Close; timezone?: string; @@ -256,6 +265,7 @@ export interface StickyElement { options?: Option[]; placeholder?: Close; response_url_enabled?: boolean; + slack_file?: SlackFile; style?: string; text?: Close; timezone?: string; diff --git a/scripts/package.json b/scripts/package.json index b818a1b2b..0f5872494 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -6,6 +6,6 @@ "author": "", "license": "MIT", "devDependencies": { - "quicktype": "^15.0.260" + "quicktype": "^23.0.106" } }