From 9c79f934fdbbabc896b4cddefabe635bb1842502 Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Fri, 6 Jan 2023 09:28:09 +0900 Subject: [PATCH] Update the web-api response types using the latest source --- .../src/response/ChatPostMessageResponse.ts | 9 ++ .../response/ChatScheduleMessageResponse.ts | 7 + .../src/response/ChatUpdateResponse.ts | 8 + .../response/ConversationsHistoryResponse.ts | 8 + .../src/response/ConversationsOpenResponse.ts | 7 + .../response/ConversationsRepliesResponse.ts | 8 + .../web-api/src/response/FilesInfoResponse.ts | 7 + .../src/response/FilesRemoteAddResponse.ts | 7 + .../src/response/FilesRemoteInfoResponse.ts | 7 + .../src/response/FilesRemoteListResponse.ts | 28 ++-- .../src/response/FilesRemoteShareResponse.ts | 7 + .../src/response/FilesRemoteUpdateResponse.ts | 7 + .../response/FilesRevokePublicURLResponse.ts | 7 + .../response/FilesSharedPublicURLResponse.ts | 7 + .../src/response/FilesUploadResponse.ts | 7 + .../web-api/src/response/PinsListResponse.ts | 7 + .../src/response/ReactionsGetResponse.ts | 8 + .../src/response/ReactionsListResponse.ts | 9 ++ .../web-api/src/response/RtmStartResponse.ts | 8 + .../web-api/src/response/SearchAllResponse.ts | 148 ++++++++++++++++-- .../src/response/SearchMessagesResponse.ts | 8 + .../web-api/src/response/StarsListResponse.ts | 8 + 22 files changed, 303 insertions(+), 24 deletions(-) diff --git a/packages/web-api/src/response/ChatPostMessageResponse.ts b/packages/web-api/src/response/ChatPostMessageResponse.ts index 12cee2cc2..ef6ceb54a 100644 --- a/packages/web-api/src/response/ChatPostMessageResponse.ts +++ b/packages/web-api/src/response/ChatPostMessageResponse.ts @@ -237,6 +237,7 @@ export interface AccessoryElement { indent?: number; offset?: number; style?: string; + text?: string; type?: string; } @@ -371,6 +372,7 @@ export interface BlockFile { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -478,6 +480,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; @@ -555,6 +563,7 @@ export interface FileElement { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; diff --git a/packages/web-api/src/response/ChatScheduleMessageResponse.ts b/packages/web-api/src/response/ChatScheduleMessageResponse.ts index 0d1224c58..9e69d2b9e 100644 --- a/packages/web-api/src/response/ChatScheduleMessageResponse.ts +++ b/packages/web-api/src/response/ChatScheduleMessageResponse.ts @@ -272,6 +272,7 @@ export interface File { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -379,6 +380,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; diff --git a/packages/web-api/src/response/ChatUpdateResponse.ts b/packages/web-api/src/response/ChatUpdateResponse.ts index fdec667cd..701336e99 100644 --- a/packages/web-api/src/response/ChatUpdateResponse.ts +++ b/packages/web-api/src/response/ChatUpdateResponse.ts @@ -277,6 +277,7 @@ export interface BlockFile { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -384,6 +385,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; @@ -476,6 +483,7 @@ export interface FileElement { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; diff --git a/packages/web-api/src/response/ConversationsHistoryResponse.ts b/packages/web-api/src/response/ConversationsHistoryResponse.ts index 746d62833..0954a298b 100644 --- a/packages/web-api/src/response/ConversationsHistoryResponse.ts +++ b/packages/web-api/src/response/ConversationsHistoryResponse.ts @@ -388,6 +388,7 @@ export interface BlockFile { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -495,6 +496,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; @@ -572,6 +579,7 @@ export interface FileElement { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; diff --git a/packages/web-api/src/response/ConversationsOpenResponse.ts b/packages/web-api/src/response/ConversationsOpenResponse.ts index 75c543e6f..8a4f06cb4 100644 --- a/packages/web-api/src/response/ConversationsOpenResponse.ts +++ b/packages/web-api/src/response/ConversationsOpenResponse.ts @@ -288,6 +288,7 @@ export interface File { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -395,6 +396,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; diff --git a/packages/web-api/src/response/ConversationsRepliesResponse.ts b/packages/web-api/src/response/ConversationsRepliesResponse.ts index ff0c167bb..e744dc059 100644 --- a/packages/web-api/src/response/ConversationsRepliesResponse.ts +++ b/packages/web-api/src/response/ConversationsRepliesResponse.ts @@ -377,6 +377,7 @@ export interface BlockFile { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -484,6 +485,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; @@ -561,6 +568,7 @@ export interface FileElement { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; diff --git a/packages/web-api/src/response/FilesInfoResponse.ts b/packages/web-api/src/response/FilesInfoResponse.ts index ee1bbf0bf..d9b9a11cf 100644 --- a/packages/web-api/src/response/FilesInfoResponse.ts +++ b/packages/web-api/src/response/FilesInfoResponse.ts @@ -75,6 +75,7 @@ export interface File { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -172,6 +173,12 @@ export interface Headers { reply_to?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; diff --git a/packages/web-api/src/response/FilesRemoteAddResponse.ts b/packages/web-api/src/response/FilesRemoteAddResponse.ts index eeffcb8db..2f978b05e 100644 --- a/packages/web-api/src/response/FilesRemoteAddResponse.ts +++ b/packages/web-api/src/response/FilesRemoteAddResponse.ts @@ -59,6 +59,7 @@ export interface File { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -166,6 +167,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; diff --git a/packages/web-api/src/response/FilesRemoteInfoResponse.ts b/packages/web-api/src/response/FilesRemoteInfoResponse.ts index d50a88981..9c3000788 100644 --- a/packages/web-api/src/response/FilesRemoteInfoResponse.ts +++ b/packages/web-api/src/response/FilesRemoteInfoResponse.ts @@ -59,6 +59,7 @@ export interface File { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -166,6 +167,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; diff --git a/packages/web-api/src/response/FilesRemoteListResponse.ts b/packages/web-api/src/response/FilesRemoteListResponse.ts index 4729d4573..7fefbc115 100644 --- a/packages/web-api/src/response/FilesRemoteListResponse.ts +++ b/packages/web-api/src/response/FilesRemoteListResponse.ts @@ -67,8 +67,8 @@ export interface File { non_owner_editable?: boolean; num_stars?: number; original_attachment_count?: number; - original_h?: string; - original_w?: string; + original_h?: number; + original_w?: number; permalink?: string; permalink_public?: string; pinned_to?: string[]; @@ -89,40 +89,40 @@ export interface File { subtype?: string; thumb_1024?: string; thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; + thumb_1024_h?: number; + thumb_1024_w?: number; thumb_160?: string; thumb_160_gif?: string; thumb_160_h?: string; thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; + thumb_360_h?: number; + thumb_360_w?: number; thumb_480?: string; thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; + thumb_480_h?: number; + thumb_480_w?: number; thumb_64?: string; thumb_64_gif?: string; thumb_64_h?: string; thumb_64_w?: string; thumb_720?: string; thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; + thumb_720_h?: number; + thumb_720_w?: number; thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; + thumb_800_h?: number; + thumb_800_w?: number; thumb_80_gif?: string; thumb_80_h?: string; thumb_80_w?: string; thumb_960?: string; thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; + thumb_960_h?: number; + thumb_960_w?: number; thumb_gif?: string; thumb_pdf?: string; thumb_pdf_h?: string; diff --git a/packages/web-api/src/response/FilesRemoteShareResponse.ts b/packages/web-api/src/response/FilesRemoteShareResponse.ts index d9eb33184..ee95ab48f 100644 --- a/packages/web-api/src/response/FilesRemoteShareResponse.ts +++ b/packages/web-api/src/response/FilesRemoteShareResponse.ts @@ -59,6 +59,7 @@ export interface File { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -166,6 +167,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; diff --git a/packages/web-api/src/response/FilesRemoteUpdateResponse.ts b/packages/web-api/src/response/FilesRemoteUpdateResponse.ts index 8790b83c7..197975009 100644 --- a/packages/web-api/src/response/FilesRemoteUpdateResponse.ts +++ b/packages/web-api/src/response/FilesRemoteUpdateResponse.ts @@ -59,6 +59,7 @@ export interface File { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -166,6 +167,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; diff --git a/packages/web-api/src/response/FilesRevokePublicURLResponse.ts b/packages/web-api/src/response/FilesRevokePublicURLResponse.ts index a0eee59dd..640b535a8 100644 --- a/packages/web-api/src/response/FilesRevokePublicURLResponse.ts +++ b/packages/web-api/src/response/FilesRevokePublicURLResponse.ts @@ -59,6 +59,7 @@ export interface File { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -166,6 +167,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; diff --git a/packages/web-api/src/response/FilesSharedPublicURLResponse.ts b/packages/web-api/src/response/FilesSharedPublicURLResponse.ts index bc859e0cc..21bfa1f02 100644 --- a/packages/web-api/src/response/FilesSharedPublicURLResponse.ts +++ b/packages/web-api/src/response/FilesSharedPublicURLResponse.ts @@ -59,6 +59,7 @@ export interface File { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -166,6 +167,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; diff --git a/packages/web-api/src/response/FilesUploadResponse.ts b/packages/web-api/src/response/FilesUploadResponse.ts index 75741ee3e..c42bb4f2f 100644 --- a/packages/web-api/src/response/FilesUploadResponse.ts +++ b/packages/web-api/src/response/FilesUploadResponse.ts @@ -59,6 +59,7 @@ export interface File { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -166,6 +167,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; diff --git a/packages/web-api/src/response/PinsListResponse.ts b/packages/web-api/src/response/PinsListResponse.ts index 10891c5a1..f1a4776d9 100644 --- a/packages/web-api/src/response/PinsListResponse.ts +++ b/packages/web-api/src/response/PinsListResponse.ts @@ -67,6 +67,7 @@ export interface File { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -174,6 +175,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; diff --git a/packages/web-api/src/response/ReactionsGetResponse.ts b/packages/web-api/src/response/ReactionsGetResponse.ts index d10bfbd50..10e4ed631 100644 --- a/packages/web-api/src/response/ReactionsGetResponse.ts +++ b/packages/web-api/src/response/ReactionsGetResponse.ts @@ -138,6 +138,7 @@ export interface AccessoryElement { indent?: number; offset?: number; style?: string; + text?: string; type?: string; } @@ -272,6 +273,7 @@ export interface File { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -379,6 +381,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; diff --git a/packages/web-api/src/response/ReactionsListResponse.ts b/packages/web-api/src/response/ReactionsListResponse.ts index 13f3628ac..794408e96 100644 --- a/packages/web-api/src/response/ReactionsListResponse.ts +++ b/packages/web-api/src/response/ReactionsListResponse.ts @@ -33,6 +33,7 @@ export interface Message { client_msg_id?: string; display_as_bot?: boolean; files?: FileElement[]; + icons?: Icons; inviter?: string; is_locked?: boolean; latest_reply?: string; @@ -293,6 +294,7 @@ export interface BlockFile { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -400,6 +402,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; @@ -487,6 +495,7 @@ export interface FileElement { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; diff --git a/packages/web-api/src/response/RtmStartResponse.ts b/packages/web-api/src/response/RtmStartResponse.ts index ed9c42434..a3b94bd3a 100644 --- a/packages/web-api/src/response/RtmStartResponse.ts +++ b/packages/web-api/src/response/RtmStartResponse.ts @@ -483,6 +483,7 @@ export interface BlockFile { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -590,6 +591,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; @@ -667,6 +674,7 @@ export interface FileElement { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; diff --git a/packages/web-api/src/response/SearchAllResponse.ts b/packages/web-api/src/response/SearchAllResponse.ts index 6179459bf..601aebb7d 100644 --- a/packages/web-api/src/response/SearchAllResponse.ts +++ b/packages/web-api/src/response/SearchAllResponse.ts @@ -161,7 +161,7 @@ export interface MessagesMatch { attachments?: Attachment[]; blocks?: Block[]; channel?: Channel; - files?: File[]; + files?: FileElement[]; iid?: string; is_mpim?: boolean; no_reactions?: boolean; @@ -195,7 +195,7 @@ export interface Attachment { fallback?: string; fields?: Field[]; filename?: string; - files?: File[]; + files?: FileElement[]; footer?: string; footer_icon?: string; from_url?: string; @@ -286,7 +286,7 @@ export interface Block { external_id?: string; fallback?: string; fields?: Description[]; - file?: File; + file?: BlockFile; file_id?: string; function_trigger_id?: string; hint?: Description; @@ -464,7 +464,7 @@ export interface AppIconUrls { image_original?: string; } -export interface File { +export interface BlockFile { alt_txt?: string; app_id?: string; app_name?: string; @@ -483,7 +483,6 @@ export interface File { edit_link?: string; editable?: boolean; editor?: string; - external_id?: string; external_type?: string; external_url?: string; file_access?: string; @@ -494,7 +493,6 @@ export interface File { has_rich_preview?: boolean; headers?: Headers; hls?: string; - hls_embed?: string; id?: string; image_exif_rotation?: number; ims?: string[]; @@ -506,11 +504,11 @@ export interface File { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; name?: string; - non_owner_editable?: boolean; num_stars?: number; original_attachment_count?: number; original_h?: string; @@ -557,7 +555,6 @@ export interface File { thumb_720_gif?: string; thumb_720_h?: string; thumb_720_w?: string; - thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; thumb_800_h?: string; @@ -576,7 +573,6 @@ export interface File { thumb_tiny?: string; thumb_video?: string; thumb_video_h?: number; - thumb_video_w?: number; timestamp?: number; title?: string; to?: Cc[]; @@ -584,7 +580,6 @@ export interface File { updated?: number; url_private?: string; url_private_download?: string; - user?: string; user_team?: string; username?: string; vtt?: string; @@ -613,6 +608,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; @@ -636,6 +637,133 @@ export interface Field { value?: string; } +export interface FileElement { + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + 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; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + 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; + public_url_shared?: boolean; + reactions?: Reaction[]; + sent_to_self?: boolean; + shares?: FileShares; + simplified_html?: string; + size?: number; + subject?: string; + subtype?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + to?: Cc[]; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; +} + export interface Metadata { extension?: string; format?: string; diff --git a/packages/web-api/src/response/SearchMessagesResponse.ts b/packages/web-api/src/response/SearchMessagesResponse.ts index 341190d89..4b61f3d33 100644 --- a/packages/web-api/src/response/SearchMessagesResponse.ts +++ b/packages/web-api/src/response/SearchMessagesResponse.ts @@ -374,6 +374,7 @@ export interface BlockFile { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -481,6 +482,12 @@ export interface InitialComment { user?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; @@ -558,6 +565,7 @@ export interface FileElement { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; diff --git a/packages/web-api/src/response/StarsListResponse.ts b/packages/web-api/src/response/StarsListResponse.ts index a0ab0032f..4fbde5fe2 100644 --- a/packages/web-api/src/response/StarsListResponse.ts +++ b/packages/web-api/src/response/StarsListResponse.ts @@ -81,6 +81,7 @@ export interface ItemFile { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string; @@ -178,6 +179,12 @@ export interface Headers { reply_to?: string; } +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + export interface Reaction { count?: number; name?: string; @@ -573,6 +580,7 @@ export interface FileElement { lines?: number; lines_more?: number; media_display_type?: string; + media_progress?: MediaProgress; mimetype?: string; mode?: string; mp4?: string;