From b1e6550d84ff1cb80a8ed386e5f288aadc70b07f Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Wed, 5 Jul 2023 14:44:12 +0900 Subject: [PATCH] Generate the latest web api responses --- ...AdminInviteRequestsApprovedListResponse.ts | 38 +- .../AdminInviteRequestsDeniedListResponse.ts | 22 +- .../AdminInviteRequestsListResponse.ts | 13 +- .../web-api/src/response/SearchAllResponse.ts | 316 ++++---- .../src/response/SearchFilesResponse.ts | 689 ++++++++++++++++-- 5 files changed, 847 insertions(+), 231 deletions(-) diff --git a/packages/web-api/src/response/AdminInviteRequestsApprovedListResponse.ts b/packages/web-api/src/response/AdminInviteRequestsApprovedListResponse.ts index 359a12161..6b24c14be 100644 --- a/packages/web-api/src/response/AdminInviteRequestsApprovedListResponse.ts +++ b/packages/web-api/src/response/AdminInviteRequestsApprovedListResponse.ts @@ -10,9 +10,45 @@ import { WebAPICallResult } from '../WebClient'; export type AdminInviteRequestsApprovedListResponse = WebAPICallResult & { - approved_requests?: string[]; + approved_requests?: ApprovedRequest[]; error?: string; needed?: string; ok?: boolean; provided?: string; }; + +export interface ApprovedRequest { + approved_by?: ApprovedBy; + invite?: Invite; + invite_request?: InviteRequest; +} + +export interface ApprovedBy { + actor_id?: string; + actor_type?: string; +} + +export interface Invite { + date_created?: number; + email?: string; + id?: string; + invite_preferences?: InvitePreferences; + inviter_id?: string; + is_bouncing?: boolean; +} + +export interface InvitePreferences { + channel_ids?: string[]; + is_domain_matched?: boolean; + is_restricted?: boolean; + is_ultra_restricted?: boolean; +} + +export interface InviteRequest { + channel_ids?: string[]; + date_created?: number; + email?: string; + id?: string; + invite_type?: string; + requester_ids?: string[]; +} diff --git a/packages/web-api/src/response/AdminInviteRequestsDeniedListResponse.ts b/packages/web-api/src/response/AdminInviteRequestsDeniedListResponse.ts index 5b2300251..b6c69e024 100644 --- a/packages/web-api/src/response/AdminInviteRequestsDeniedListResponse.ts +++ b/packages/web-api/src/response/AdminInviteRequestsDeniedListResponse.ts @@ -10,9 +10,29 @@ import { WebAPICallResult } from '../WebClient'; export type AdminInviteRequestsDeniedListResponse = WebAPICallResult & { - denied_requests?: string[]; + denied_requests?: DeniedRequest[]; error?: string; needed?: string; ok?: boolean; provided?: string; }; + +export interface DeniedRequest { + denied_by?: DeniedBy; + invite_request?: InviteRequest; +} + +export interface DeniedBy { + actor_id?: string; + actor_type?: string; +} + +export interface InviteRequest { + channel_ids?: string[]; + date_created?: number; + email?: string; + id?: string; + invite_type?: string; + request_reason?: string; + requester_ids?: string[]; +} diff --git a/packages/web-api/src/response/AdminInviteRequestsListResponse.ts b/packages/web-api/src/response/AdminInviteRequestsListResponse.ts index cb4828d95..5c85d6c22 100644 --- a/packages/web-api/src/response/AdminInviteRequestsListResponse.ts +++ b/packages/web-api/src/response/AdminInviteRequestsListResponse.ts @@ -11,8 +11,19 @@ import { WebAPICallResult } from '../WebClient'; export type AdminInviteRequestsListResponse = WebAPICallResult & { error?: string; - invite_requests?: string[]; + invite_requests?: InviteRequest[]; needed?: string; ok?: boolean; provided?: string; }; + +export interface InviteRequest { + channel_ids?: string[]; + date_created?: number; + date_expire?: number; + email?: string; + id?: string; + invite_type?: string; + request_reason?: string; + requester_ids?: string[]; +} diff --git a/packages/web-api/src/response/SearchAllResponse.ts b/packages/web-api/src/response/SearchAllResponse.ts index d7ef70ef6..9c0ce9346 100644 --- a/packages/web-api/src/response/SearchAllResponse.ts +++ b/packages/web-api/src/response/SearchAllResponse.ts @@ -28,154 +28,92 @@ export interface Files { } export interface FilesMatch { - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_id?: string; - external_type?: string; - external_url?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: LastEditor; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - non_owner_editable?: boolean; - original_h?: number; - original_w?: number; - permalink?: string; - permalink_public?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - public_url_shared?: boolean; - shares?: MatchShares; - size?: number; - thumb_1024?: string; - thumb_1024_h?: number; - thumb_1024_w?: number; - thumb_160?: string; - thumb_360?: string; - thumb_360_h?: number; - thumb_360_w?: number; - thumb_480?: string; - thumb_480_h?: number; - thumb_480_w?: number; - thumb_64?: string; - thumb_720?: string; - thumb_720_h?: number; - thumb_720_w?: number; - thumb_80?: string; - thumb_800?: string; - thumb_800_h?: number; - thumb_800_w?: number; - thumb_960?: string; - thumb_960_h?: number; - thumb_960_w?: number; - thumb_pdf?: string; - thumb_pdf_h?: number; - thumb_pdf_w?: number; - thumb_tiny?: string; - thumb_video?: string; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: LastEditor; - user_team?: UserTeam; - username?: string; -} - -export enum LastEditor { - Empty = '', - U00000000 = 'U00000000', -} - -export interface MatchShares { - public?: { [key: string]: Public[] }; -} - -export interface Public { - channel_name?: string; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; - reply_users_count?: number; - share_user_id?: LastEditor; - team_id?: UserTeam; - thread_ts?: string; - ts?: Ts; -} - -export enum UserTeam { - Empty = '', - T00000000 = 'T00000000', -} - -export enum Ts { - Empty = '', - The0000000000000000 = '0000000000.000000', -} - -export interface Pagination { - first?: number; - last?: number; - page?: number; - page_count?: number; - per_page?: number; - total_count?: number; -} - -export interface Paging { - count?: number; - page?: number; - pages?: number; - total?: number; -} - -export interface Messages { - matches?: MessagesMatch[]; - pagination?: Pagination; - paging?: Paging; - total?: number; -} - -export interface MessagesMatch { - attachments?: Attachment[]; - blocks?: Block[]; - channel?: Channel; - files?: File[]; - iid?: string; - is_mpim?: boolean; - no_reactions?: boolean; - permalink?: string; - previous?: Previous; - previous_2?: Previous; - score?: number; - team?: UserTeam; - text?: string; - ts?: Ts; - type?: string; - user?: LastEditor; - username?: string; + attachments?: Attachment[]; + bot_id?: string; + cc?: Cc[]; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_id?: string; + external_type?: string; + external_url?: string; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: MatchHeaders; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: LastEditor; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + non_owner_editable?: boolean; + original_attachment_count?: number; + original_h?: number; + original_w?: number; + permalink?: string; + permalink_public?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; + public_url_shared?: boolean; + sent_to_self?: boolean; + shares?: MatchShares; + size?: number; + subject?: string; + thumb_1024?: string; + thumb_1024_h?: number; + thumb_1024_w?: number; + thumb_160?: string; + thumb_360?: string; + thumb_360_h?: number; + thumb_360_w?: number; + thumb_480?: string; + thumb_480_h?: number; + thumb_480_w?: number; + thumb_64?: string; + thumb_720?: string; + thumb_720_h?: number; + thumb_720_w?: number; + thumb_80?: string; + thumb_800?: string; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: string; + thumb_960_h?: number; + thumb_960_w?: number; + thumb_pdf?: string; + thumb_pdf_h?: number; + thumb_pdf_w?: number; + thumb_tiny?: string; + thumb_video?: string; + timestamp?: number; + title?: string; + to?: Cc[]; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: LastEditor; + user_team?: UserTeam; + username?: string; } export interface Attachment { @@ -495,7 +433,7 @@ export interface File { has_more?: boolean; has_more_shares?: boolean; has_rich_preview?: boolean; - headers?: Headers; + headers?: FileHeaders; hls?: string; hls_embed?: string; id?: string; @@ -603,7 +541,7 @@ export interface Cc { original?: string; } -export interface Headers { +export interface FileHeaders { date?: string; in_reply_to?: string; message_id?: string; @@ -645,6 +583,33 @@ export interface FileShares { public?: { [key: string]: Public[] }; } +export interface Public { + channel_name?: string; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; + reply_users_count?: number; + share_user_id?: LastEditor; + team_id?: UserTeam; + thread_ts?: string; + ts?: Ts; +} + +export enum LastEditor { + Empty = '', + U00000000 = 'U00000000', +} + +export enum UserTeam { + Empty = '', + T00000000 = 'T00000000', +} + +export enum Ts { + Empty = '', + The0000000000000000 = '0000000000.000000', +} + export interface Transcription { locale?: string; status?: string; @@ -678,6 +643,57 @@ export interface Preview { type?: string; } +export interface MatchHeaders { + date?: string; +} + +export interface MatchShares { + public?: { [key: string]: Public[] }; +} + +export interface Pagination { + first?: number; + last?: number; + page?: number; + page_count?: number; + per_page?: number; + total_count?: number; +} + +export interface Paging { + count?: number; + page?: number; + pages?: number; + total?: number; +} + +export interface Messages { + matches?: MessagesMatch[]; + pagination?: Pagination; + paging?: Paging; + total?: number; +} + +export interface MessagesMatch { + attachments?: Attachment[]; + blocks?: Block[]; + channel?: Channel; + files?: File[]; + iid?: string; + is_mpim?: boolean; + no_reactions?: boolean; + permalink?: string; + previous?: Previous; + previous_2?: Previous; + score?: number; + team?: UserTeam; + text?: string; + ts?: Ts; + type?: string; + user?: LastEditor; + username?: string; +} + export interface Channel { id?: string; is_channel?: boolean; diff --git a/packages/web-api/src/response/SearchFilesResponse.ts b/packages/web-api/src/response/SearchFilesResponse.ts index e9a64eda5..9113342c7 100644 --- a/packages/web-api/src/response/SearchFilesResponse.ts +++ b/packages/web-api/src/response/SearchFilesResponse.ts @@ -26,94 +26,627 @@ export interface Files { } export interface Match { + attachments?: Attachment[]; + bot_id?: string; + cc?: Cc[]; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_id?: string; + external_type?: string; + external_url?: string; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: MatchHeaders; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: LastEditor; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + non_owner_editable?: boolean; + original_attachment_count?: number; + original_h?: number; + original_w?: number; + permalink?: string; + permalink_public?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; + public_url_shared?: boolean; + sent_to_self?: boolean; + shares?: MatchShares; + size?: number; + subject?: string; + thumb_1024?: string; + thumb_1024_h?: number; + thumb_1024_w?: number; + thumb_160?: string; + thumb_360?: string; + thumb_360_h?: number; + thumb_360_w?: number; + thumb_480?: string; + thumb_480_h?: number; + thumb_480_w?: number; + thumb_64?: string; + thumb_720?: string; + thumb_720_h?: number; + thumb_720_w?: number; + thumb_80?: string; + thumb_800?: string; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: string; + thumb_960_h?: number; + thumb_960_w?: number; + thumb_pdf?: string; + thumb_pdf_h?: number; + thumb_pdf_w?: number; + thumb_tiny?: string; + thumb_video?: string; + timestamp?: number; + title?: string; + to?: Cc[]; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: LastEditor; + user_team?: UserTeam; + username?: string; +} + +export interface Attachment { + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: Field[]; + filename?: string; + files?: File[]; + footer?: string; + footer_icon?: string; + from_url?: string; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; + is_thread_root_unfurl?: boolean; + metadata?: Metadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; +} + +export interface Action { + confirm?: ActionConfirm; + data_source?: string; + id?: string; + min_query_length?: number; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; + selected_options?: SelectedOptionElement[]; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; +} + +export interface ActionConfirm { + dismiss_text?: string; + ok_text?: string; + text?: string; + title?: string; +} + +export interface ActionOptionGroup { + options?: SelectedOptionElement[]; + text?: string; +} + +export interface SelectedOptionElement { + text?: string; + value?: string; +} + +export interface Block { + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: Subtitle; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: Subtitle[]; + file?: File; + file_id?: string; + function_trigger_id?: string; + hint?: Subtitle; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_workflow_app?: boolean; + label?: Subtitle; + optional?: boolean; + provider_icon_url?: string; + provider_name?: string; + source?: string; + text?: Subtitle; + thumbnail_url?: string; + title?: Subtitle; + title_url?: string; + type?: string; + url?: string; + video_url?: string; +} + +export interface Accessory { + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; + default_to_current_conversation?: boolean; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: Subtitle; + response_url_enabled?: boolean; + style?: string; + text?: Subtitle; + timezone?: string; + type?: string; + url?: string; + value?: string; +} + +export interface AccessoryConfirm { + confirm?: Subtitle; + deny?: Subtitle; + style?: string; + text?: Subtitle; + title?: Subtitle; +} + +export interface Subtitle { + emoji?: boolean; + text?: string; + type?: string; + verbatim?: boolean; +} + +export interface AccessoryElement { + border?: number; + elements?: PurpleElement[]; + indent?: number; + offset?: number; + style?: string; + type?: string; +} + +export interface PurpleElement { + channel_id?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: string; + type?: string; + unicode?: string; + url?: string; + user_id?: string; + usergroup_id?: string; + value?: string; +} + +export interface Style { + bold?: boolean; + code?: boolean; + italic?: boolean; + strike?: boolean; +} + +export interface Filter { + exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: string[]; +} + +export interface InitialOptionElement { + description?: Subtitle; + text?: Subtitle; + url?: string; + value?: string; +} + +export interface AccessoryOptionGroup { + label?: Subtitle; + options?: InitialOptionElement[]; +} + +export interface Call { + media_backend_type?: string; + v1?: V1; +} + +export interface V1 { + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_id?: string; - external_type?: string; - external_url?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; + created_by?: string; + date_end?: number; + date_start?: number; + desktop_app_join_url?: string; + display_id?: string; + has_ended?: boolean; id?: string; - image_exif_rotation?: number; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; + is_dm_call?: boolean; + join_url?: string; name?: string; - non_owner_editable?: boolean; - original_h?: number; - original_w?: number; - permalink?: string; - permalink_public?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - public_url_shared?: boolean; - shares?: Shares; - size?: number; - thumb_1024?: string; - thumb_1024_h?: number; - thumb_1024_w?: number; - thumb_160?: string; - thumb_360?: string; - thumb_360_h?: number; - thumb_360_w?: number; - thumb_480?: string; - thumb_480_h?: number; - thumb_480_w?: number; - thumb_64?: string; - thumb_720?: string; - thumb_720_h?: number; - thumb_720_w?: number; - thumb_80?: string; - thumb_800?: string; - thumb_800_h?: number; - thumb_800_w?: number; - thumb_960?: string; - thumb_960_h?: number; - thumb_960_w?: number; - thumb_pdf?: string; - thumb_pdf_h?: number; - thumb_pdf_w?: number; - thumb_tiny?: string; - thumb_video?: string; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; -} - -export interface Shares { - public?: { [key: string]: Public[] }; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; +} + +export interface Participant { + avatar_url?: string; + display_name?: string; + external_id?: string; + slack_id?: string; +} + +export interface AppIconUrls { + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; + image_original?: string; +} + +export interface File { + 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_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: FileHeaders; + 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; + mp4_low?: 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[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: FileShares; + simplified_html?: string; + size?: number; + source_team?: string; + 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 Cc { + address?: string; + name?: string; + original?: string; +} + +export interface FileHeaders { + date?: string; + in_reply_to?: string; + message_id?: string; + reply_to?: string; +} + +export interface InitialComment { + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; + timestamp?: number; + user?: string; +} + +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + offset_ms?: number; +} + +export interface Reaction { + count?: number; + name?: string; + url?: string; + users?: string[]; +} + +export interface Saved { + date_completed?: number; + date_due?: number; + is_archived?: boolean; + state?: string; +} + +export interface FileShares { + private?: { [key: string]: Public[] }; + public?: { [key: string]: Public[] }; } export interface Public { channel_name?: string; + latest_reply?: string; reply_count?: number; reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - team_id?: string; - ts?: string; + share_user_id?: LastEditor; + team_id?: UserTeam; + thread_ts?: string; + ts?: Ts; +} + +export enum LastEditor { + Empty = '', + U00000000 = 'U00000000', +} + +export enum UserTeam { + Empty = '', + T00000000 = 'T00000000', +} + +export enum Ts { + Empty = '', + The0000000000000000 = '0000000000.000000', +} + +export interface Transcription { + locale?: string; + status?: string; +} + +export interface Field { + short?: boolean; + title?: string; + value?: string; +} + +export interface Metadata { + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; + thumb_360_h?: number; + thumb_360_w?: number; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; +} + +export interface Preview { + can_remove?: boolean; + icon_url?: string; + subtitle?: Subtitle; + title?: Subtitle; + type?: string; +} + +export interface MatchHeaders { + date?: string; +} + +export interface MatchShares { + public?: { [key: string]: Public[] }; } export interface Pagination {