diff --git a/.gitignore b/.gitignore index fee148184..08b649545 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ tmp/ *.bk .DS_Store +.nyc_output/ diff --git a/packages/web-api/src/types/response/ChatPostMessageResponse.ts b/packages/web-api/src/types/response/ChatPostMessageResponse.ts index a591ace6f..d0d4642d5 100644 --- a/packages/web-api/src/types/response/ChatPostMessageResponse.ts +++ b/packages/web-api/src/types/response/ChatPostMessageResponse.ts @@ -355,6 +355,7 @@ export interface FileElement { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -652,6 +653,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -691,9 +693,15 @@ export interface Private { export interface Transcription { locale?: string; + preview?: TranscriptionPreview; status?: string; } +export interface TranscriptionPreview { + content?: string; + has_more?: boolean; +} + export interface Attachment { actions?: Action[]; app_id?: string; @@ -745,7 +753,7 @@ export interface Attachment { msg_subtype?: string; original_url?: string; pretext?: string; - preview?: Preview; + preview?: AttachmentPreview; service_icon?: string; service_name?: string; service_url?: string; @@ -1036,6 +1044,7 @@ export interface MessageFile { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -1265,7 +1274,7 @@ export interface AttachmentMetadata { thumb_tiny?: string; } -export interface Preview { +export interface AttachmentPreview { can_remove?: boolean; icon_url?: string; subtitle?: DescriptionElement; diff --git a/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts b/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts index 71d79247a..c3b85b03f 100644 --- a/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts +++ b/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts @@ -346,6 +346,7 @@ export interface File { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -643,6 +644,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -682,9 +684,15 @@ export interface Private { export interface Transcription { locale?: string; + preview?: Preview; status?: string; } +export interface Preview { + content?: string; + has_more?: boolean; +} + export interface BotProfile { app_id?: string; deleted?: boolean; diff --git a/packages/web-api/src/types/response/ChatUpdateResponse.ts b/packages/web-api/src/types/response/ChatUpdateResponse.ts index 7a04b0b9a..54dc5ddef 100644 --- a/packages/web-api/src/types/response/ChatUpdateResponse.ts +++ b/packages/web-api/src/types/response/ChatUpdateResponse.ts @@ -351,6 +351,7 @@ export interface File { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -648,6 +649,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -687,9 +689,15 @@ export interface Private { export interface Transcription { locale?: string; + preview?: Preview; status?: string; } +export interface Preview { + content?: string; + has_more?: boolean; +} + export interface BotProfile { app_id?: string; deleted?: boolean; diff --git a/packages/web-api/src/types/response/ConversationsHistoryResponse.ts b/packages/web-api/src/types/response/ConversationsHistoryResponse.ts index ac43f3b14..16a2916d4 100644 --- a/packages/web-api/src/types/response/ConversationsHistoryResponse.ts +++ b/packages/web-api/src/types/response/ConversationsHistoryResponse.ts @@ -371,6 +371,7 @@ export interface FileElement { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -668,6 +669,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -707,9 +709,15 @@ export interface Private { export interface Transcription { locale?: string; + preview?: TranscriptionPreview; status?: string; } +export interface TranscriptionPreview { + content?: string; + has_more?: boolean; +} + export interface Attachment { actions?: Action[]; app_id?: string; @@ -761,7 +769,7 @@ export interface Attachment { msg_subtype?: string; original_url?: string; pretext?: string; - preview?: Preview; + preview?: AttachmentPreview; service_icon?: string; service_name?: string; service_url?: string; @@ -1052,6 +1060,7 @@ export interface PurpleFile { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -1278,7 +1287,7 @@ export interface AttachmentMetadata { thumb_tiny?: string; } -export interface Preview { +export interface AttachmentPreview { can_remove?: boolean; icon_url?: string; subtitle?: DescriptionElement; diff --git a/packages/web-api/src/types/response/ConversationsOpenResponse.ts b/packages/web-api/src/types/response/ConversationsOpenResponse.ts index 3eed11cc2..14de7dbb4 100644 --- a/packages/web-api/src/types/response/ConversationsOpenResponse.ts +++ b/packages/web-api/src/types/response/ConversationsOpenResponse.ts @@ -362,6 +362,7 @@ export interface File { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -659,6 +660,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -698,9 +700,15 @@ export interface Private { export interface Transcription { locale?: string; + preview?: Preview; status?: string; } +export interface Preview { + content?: string; + has_more?: boolean; +} + export interface BotProfile { app_id?: string; deleted?: boolean; diff --git a/packages/web-api/src/types/response/ConversationsRepliesResponse.ts b/packages/web-api/src/types/response/ConversationsRepliesResponse.ts index cd3e2c279..798b0da61 100644 --- a/packages/web-api/src/types/response/ConversationsRepliesResponse.ts +++ b/packages/web-api/src/types/response/ConversationsRepliesResponse.ts @@ -360,6 +360,7 @@ export interface FileElement { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -657,6 +658,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -696,9 +698,15 @@ export interface Private { export interface Transcription { locale?: string; + preview?: TranscriptionPreview; status?: string; } +export interface TranscriptionPreview { + content?: string; + has_more?: boolean; +} + export interface Attachment { actions?: Action[]; app_id?: string; @@ -750,7 +758,7 @@ export interface Attachment { msg_subtype?: string; original_url?: string; pretext?: string; - preview?: Preview; + preview?: AttachmentPreview; service_icon?: string; service_name?: string; service_url?: string; @@ -1041,6 +1049,7 @@ export interface PurpleFile { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -1267,7 +1276,7 @@ export interface AttachmentMetadata { thumb_tiny?: string; } -export interface Preview { +export interface AttachmentPreview { can_remove?: boolean; icon_url?: string; subtitle?: DescriptionElement; diff --git a/packages/web-api/src/types/response/ConversationsRequestSharedInviteListResponse.ts b/packages/web-api/src/types/response/ConversationsRequestSharedInviteListResponse.ts index 65f4d5b96..e3d0a7e3c 100644 --- a/packages/web-api/src/types/response/ConversationsRequestSharedInviteListResponse.ts +++ b/packages/web-api/src/types/response/ConversationsRequestSharedInviteListResponse.ts @@ -9,8 +9,11 @@ import type { WebAPICallResult } from '../../WebClient'; export type ConversationsRequestSharedInviteListResponse = WebAPICallResult & { + error?: string; invite_requests?: InviteRequest[]; + needed?: string; ok?: boolean; + provided?: string; }; export interface InviteRequest { @@ -32,8 +35,8 @@ export interface Channel { is_im?: boolean; is_private?: boolean; name?: string; - pending_connections?: any[]; - previous_connections?: any[]; + pending_connections?: Connection[]; + previous_connections?: Connection[]; } export interface Connection { diff --git a/packages/web-api/src/types/response/FilesInfoResponse.ts b/packages/web-api/src/types/response/FilesInfoResponse.ts index e810b6747..6a9791723 100644 --- a/packages/web-api/src/types/response/FilesInfoResponse.ts +++ b/packages/web-api/src/types/response/FilesInfoResponse.ts @@ -79,6 +79,7 @@ export interface File { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -316,6 +317,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -547,9 +549,15 @@ export interface CustomizableInputParameter { export interface Transcription { locale?: string; + preview?: Preview; status?: string; } +export interface Preview { + content?: string; + has_more?: boolean; +} + export interface Paging { count?: number; page?: number; diff --git a/packages/web-api/src/types/response/FilesListResponse.ts b/packages/web-api/src/types/response/FilesListResponse.ts index 44969599b..cbc20d36e 100644 --- a/packages/web-api/src/types/response/FilesListResponse.ts +++ b/packages/web-api/src/types/response/FilesListResponse.ts @@ -63,6 +63,7 @@ export interface File { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -310,6 +311,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -541,9 +543,15 @@ export interface CustomizableInputParameter { export interface Transcription { locale?: string; + preview?: Preview; status?: string; } +export interface Preview { + content?: string; + has_more?: boolean; +} + export interface Paging { count?: number; page?: number; diff --git a/packages/web-api/src/types/response/FilesRemoteAddResponse.ts b/packages/web-api/src/types/response/FilesRemoteAddResponse.ts index cea891642..5db667903 100644 --- a/packages/web-api/src/types/response/FilesRemoteAddResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteAddResponse.ts @@ -62,6 +62,7 @@ export interface File { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -309,6 +310,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -540,5 +542,11 @@ export interface CustomizableInputParameter { export interface Transcription { locale?: string; + preview?: Preview; status?: string; } + +export interface Preview { + content?: string; + has_more?: boolean; +} diff --git a/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts b/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts index 5936bfbe8..b9b679b9d 100644 --- a/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts @@ -62,6 +62,7 @@ export interface File { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -309,6 +310,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -540,5 +542,11 @@ export interface CustomizableInputParameter { export interface Transcription { locale?: string; + preview?: Preview; status?: string; } + +export interface Preview { + content?: string; + has_more?: boolean; +} diff --git a/packages/web-api/src/types/response/FilesRemoteListResponse.ts b/packages/web-api/src/types/response/FilesRemoteListResponse.ts index 2fa197b96..c3b4fc7fd 100644 --- a/packages/web-api/src/types/response/FilesRemoteListResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteListResponse.ts @@ -63,6 +63,7 @@ export interface File { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -310,6 +311,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -541,9 +543,15 @@ export interface CustomizableInputParameter { export interface Transcription { locale?: string; + preview?: Preview; status?: string; } +export interface Preview { + content?: string; + has_more?: boolean; +} + export interface ResponseMetadata { next_cursor?: string; } diff --git a/packages/web-api/src/types/response/FilesRemoteShareResponse.ts b/packages/web-api/src/types/response/FilesRemoteShareResponse.ts index 5ca48fc30..f8fe76d2d 100644 --- a/packages/web-api/src/types/response/FilesRemoteShareResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteShareResponse.ts @@ -62,6 +62,7 @@ export interface File { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -309,6 +310,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -540,5 +542,11 @@ export interface CustomizableInputParameter { export interface Transcription { locale?: string; + preview?: Preview; status?: string; } + +export interface Preview { + content?: string; + has_more?: boolean; +} diff --git a/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts b/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts index fc01a4e8f..7a2f61c4e 100644 --- a/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts @@ -62,6 +62,7 @@ export interface File { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -309,6 +310,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -540,5 +542,11 @@ export interface CustomizableInputParameter { export interface Transcription { locale?: string; + preview?: Preview; status?: string; } + +export interface Preview { + content?: string; + has_more?: boolean; +} diff --git a/packages/web-api/src/types/response/FilesRevokePublicURLResponse.ts b/packages/web-api/src/types/response/FilesRevokePublicURLResponse.ts index 202ff9402..bd7857525 100644 --- a/packages/web-api/src/types/response/FilesRevokePublicURLResponse.ts +++ b/packages/web-api/src/types/response/FilesRevokePublicURLResponse.ts @@ -62,6 +62,7 @@ export interface File { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -309,6 +310,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -540,5 +542,11 @@ export interface CustomizableInputParameter { export interface Transcription { locale?: string; + preview?: Preview; status?: string; } + +export interface Preview { + content?: string; + has_more?: boolean; +} diff --git a/packages/web-api/src/types/response/FilesSharedPublicURLResponse.ts b/packages/web-api/src/types/response/FilesSharedPublicURLResponse.ts index 6cc07937b..290c98f31 100644 --- a/packages/web-api/src/types/response/FilesSharedPublicURLResponse.ts +++ b/packages/web-api/src/types/response/FilesSharedPublicURLResponse.ts @@ -62,6 +62,7 @@ export interface File { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -309,6 +310,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -540,5 +542,11 @@ export interface CustomizableInputParameter { export interface Transcription { locale?: string; + preview?: Preview; status?: string; } + +export interface Preview { + content?: string; + has_more?: boolean; +} diff --git a/packages/web-api/src/types/response/FilesUploadResponse.ts b/packages/web-api/src/types/response/FilesUploadResponse.ts index c162594b3..13184d572 100644 --- a/packages/web-api/src/types/response/FilesUploadResponse.ts +++ b/packages/web-api/src/types/response/FilesUploadResponse.ts @@ -62,6 +62,7 @@ export interface File { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -309,6 +310,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -540,5 +542,11 @@ export interface CustomizableInputParameter { export interface Transcription { locale?: string; + preview?: Preview; status?: string; } + +export interface Preview { + content?: string; + has_more?: boolean; +} diff --git a/packages/web-api/src/types/response/PinsListResponse.ts b/packages/web-api/src/types/response/PinsListResponse.ts index 4a828d781..52515fe76 100644 --- a/packages/web-api/src/types/response/PinsListResponse.ts +++ b/packages/web-api/src/types/response/PinsListResponse.ts @@ -70,6 +70,7 @@ export interface File { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -317,6 +318,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -548,5 +550,11 @@ export interface CustomizableInputParameter { export interface Transcription { locale?: string; + preview?: Preview; status?: string; } + +export interface Preview { + content?: string; + has_more?: boolean; +} diff --git a/packages/web-api/src/types/response/ReactionsGetResponse.ts b/packages/web-api/src/types/response/ReactionsGetResponse.ts index 3003f59ae..a159270eb 100644 --- a/packages/web-api/src/types/response/ReactionsGetResponse.ts +++ b/packages/web-api/src/types/response/ReactionsGetResponse.ts @@ -346,6 +346,7 @@ export interface File { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -643,6 +644,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -682,9 +684,15 @@ export interface Private { export interface Transcription { locale?: string; + preview?: Preview; status?: string; } +export interface Preview { + content?: string; + has_more?: boolean; +} + export interface BotProfile { app_id?: string; deleted?: boolean; diff --git a/packages/web-api/src/types/response/ReactionsListResponse.ts b/packages/web-api/src/types/response/ReactionsListResponse.ts index 06158352f..3fe00689d 100644 --- a/packages/web-api/src/types/response/ReactionsListResponse.ts +++ b/packages/web-api/src/types/response/ReactionsListResponse.ts @@ -372,6 +372,7 @@ export interface FileElement { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -669,6 +670,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -708,9 +710,15 @@ export interface Private { export interface Transcription { locale?: string; + preview?: TranscriptionPreview; status?: string; } +export interface TranscriptionPreview { + content?: string; + has_more?: boolean; +} + export interface Attachment { actions?: Action[]; app_id?: string; @@ -762,7 +770,7 @@ export interface Attachment { msg_subtype?: string; original_url?: string; pretext?: string; - preview?: Preview; + preview?: AttachmentPreview; service_icon?: string; service_name?: string; service_url?: string; @@ -1053,6 +1061,7 @@ export interface PurpleFile { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -1282,7 +1291,7 @@ export interface AttachmentMetadata { thumb_tiny?: string; } -export interface Preview { +export interface AttachmentPreview { can_remove?: boolean; icon_url?: string; subtitle?: DescriptionElement; diff --git a/packages/web-api/src/types/response/RtmStartResponse.ts b/packages/web-api/src/types/response/RtmStartResponse.ts index c7be070b6..1f54768e2 100644 --- a/packages/web-api/src/types/response/RtmStartResponse.ts +++ b/packages/web-api/src/types/response/RtmStartResponse.ts @@ -214,7 +214,7 @@ export interface Attachment { msg_subtype?: string; original_url?: string; pretext?: string; - preview?: Preview; + preview?: AttachmentPreview; service_icon?: string; service_name?: string; service_url?: string; @@ -549,6 +549,7 @@ export interface FileElement { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -796,6 +797,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -835,9 +837,15 @@ export interface Private { export interface Transcription { locale?: string; + preview?: TranscriptionPreview; status?: string; } +export interface TranscriptionPreview { + content?: string; + has_more?: boolean; +} + export interface List { channels?: string[]; comments_count?: number; @@ -1061,6 +1069,7 @@ export interface MessageFile { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -1287,7 +1296,7 @@ export interface AttachmentMetadata { thumb_tiny?: string; } -export interface Preview { +export interface AttachmentPreview { can_remove?: boolean; icon_url?: string; subtitle?: DescriptionElement; diff --git a/packages/web-api/src/types/response/SearchAllResponse.ts b/packages/web-api/src/types/response/SearchAllResponse.ts index bcf55a281..52fcf8954 100644 --- a/packages/web-api/src/types/response/SearchAllResponse.ts +++ b/packages/web-api/src/types/response/SearchAllResponse.ts @@ -41,7 +41,7 @@ export interface FilesMatch { dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; edit_link?: string; editable?: boolean; - editors?: LastEditor[]; + editors?: string[]; editors_count?: number; external_id?: string; external_type?: string; @@ -185,7 +185,7 @@ export interface Attachment { msg_subtype?: string; original_url?: string; pretext?: string; - preview?: Preview; + preview?: AttachmentPreview; service_icon?: string; service_name?: string; service_url?: string; @@ -520,6 +520,7 @@ export interface FileElement { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -772,6 +773,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -821,9 +823,15 @@ export enum Ts { export interface Transcription { locale?: string; + preview?: TranscriptionPreview; status?: string; } +export interface TranscriptionPreview { + content?: string; + has_more?: boolean; +} + export interface List { channels?: string[]; comments_count?: number; @@ -1063,6 +1071,7 @@ export interface MessageFile { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -1289,7 +1298,7 @@ export interface AttachmentMetadata { thumb_tiny?: string; } -export interface Preview { +export interface AttachmentPreview { can_remove?: boolean; icon_url?: string; subtitle?: DescriptionElement; diff --git a/packages/web-api/src/types/response/SearchFilesResponse.ts b/packages/web-api/src/types/response/SearchFilesResponse.ts index 7ae6e2ea2..886332918 100644 --- a/packages/web-api/src/types/response/SearchFilesResponse.ts +++ b/packages/web-api/src/types/response/SearchFilesResponse.ts @@ -39,7 +39,7 @@ export interface Match { dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; edit_link?: string; editable?: boolean; - editors?: LastEditor[]; + editors?: string[]; editors_count?: number; external_id?: string; external_type?: string; @@ -183,7 +183,7 @@ export interface Attachment { msg_subtype?: string; original_url?: string; pretext?: string; - preview?: Preview; + preview?: AttachmentPreview; service_icon?: string; service_name?: string; service_url?: string; @@ -499,6 +499,7 @@ export interface FileElement { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -751,6 +752,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -800,9 +802,15 @@ export enum Ts { export interface Transcription { locale?: string; + preview?: TranscriptionPreview; status?: string; } +export interface TranscriptionPreview { + content?: string; + has_more?: boolean; +} + export interface List { channels?: string[]; comments_count?: number; @@ -1042,6 +1050,7 @@ export interface MessageFile { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -1268,7 +1277,7 @@ export interface AttachmentMetadata { thumb_tiny?: string; } -export interface Preview { +export interface AttachmentPreview { can_remove?: boolean; icon_url?: string; subtitle?: DescriptionElement; diff --git a/packages/web-api/src/types/response/SearchMessagesResponse.ts b/packages/web-api/src/types/response/SearchMessagesResponse.ts index 932d87db5..93a4c0f5b 100644 --- a/packages/web-api/src/types/response/SearchMessagesResponse.ts +++ b/packages/web-api/src/types/response/SearchMessagesResponse.ts @@ -95,7 +95,7 @@ export interface Attachment { msg_subtype?: string; original_url?: string; pretext?: string; - preview?: Preview; + preview?: AttachmentPreview; service_icon?: string; service_name?: string; service_url?: string; @@ -430,6 +430,7 @@ export interface FileElement { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -677,6 +678,7 @@ export interface Column { export interface MediaProgress { duration_ms?: number; max_offset_ms?: number; + media_watched?: boolean; offset_ms?: number; } @@ -716,9 +718,15 @@ export interface Private { export interface Transcription { locale?: string; + preview?: TranscriptionPreview; status?: string; } +export interface TranscriptionPreview { + content?: string; + has_more?: boolean; +} + export interface List { channels?: string[]; comments_count?: number; @@ -958,6 +966,7 @@ export interface MessageFile { is_channel_space?: boolean; is_external?: boolean; is_public?: boolean; + is_restricted_sharing_enabled?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -1184,7 +1193,7 @@ export interface AttachmentMetadata { thumb_tiny?: string; } -export interface Preview { +export interface AttachmentPreview { can_remove?: boolean; icon_url?: string; subtitle?: DescriptionElement;