Skip to content

Commit

Permalink
Update the web-api response types using the latest source
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Dec 6, 2021
1 parent 331aa7f commit 8fe609a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 35 deletions.
42 changes: 21 additions & 21 deletions packages/web-api/src/response/ChatUpdateResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,26 +142,39 @@ export interface File {
timestamp?: number;
name?: string;
title?: string;
subject?: string;
mimetype?: string;
filetype?: string;
pretty_type?: string;
user?: string;
mode?: string;
editable?: boolean;
size?: number;
mode?: string;
is_external?: boolean;
external_type?: string;
is_public?: boolean;
public_url_shared?: boolean;
display_as_bot?: boolean;
username?: string;
url_private?: string;
url_private_download?: string;
permalink?: string;
permalink_public?: string;
edit_link?: string;
preview?: string;
preview_highlight?: string;
lines?: number;
lines_more?: number;
preview_is_truncated?: boolean;
is_starred?: boolean;
has_rich_preview?: boolean;
subject?: string;
non_owner_editable?: boolean;
editor?: string;
last_editor?: string;
updated?: number;
original_attachment_count?: number;
is_external?: boolean;
external_type?: string;
external_id?: string;
external_url?: string;
username?: string;
size?: number;
url_private?: string;
url_private_download?: string;
app_id?: string;
app_name?: string;
thumb_64?: string;
Expand Down Expand Up @@ -213,23 +226,11 @@ export interface File {
deanimate?: string;
deanimate_gif?: string;
pjpeg?: string;
permalink?: string;
permalink_public?: string;
edit_link?: string;
has_rich_preview?: boolean;
media_display_type?: string;
preview_is_truncated?: boolean;
preview?: string;
preview_highlight?: string;
plain_text?: string;
preview_plain_text?: string;
has_more?: boolean;
sent_to_self?: boolean;
lines?: number;
lines_more?: number;
is_public?: boolean;
public_url_shared?: boolean;
display_as_bot?: boolean;
shares?: Shares;
channel_actions_ts?: string;
channel_actions_count?: number;
Expand All @@ -238,7 +239,6 @@ export interface File {
bot_id?: string;
initial_comment?: InitialComment;
num_stars?: number;
is_starred?: boolean;
comments_count?: number;
}

Expand Down
10 changes: 8 additions & 2 deletions packages/web-api/src/response/ConversationsOpenResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export interface Latest {

export interface Block {
type?: string;
elements?: Element[];
block_id?: string;
elements?: BlockElement[];
fallback?: string;
image_url?: string;
image_width?: number;
Expand All @@ -72,8 +72,9 @@ export interface Accessory {
image_bytes?: number;
}

export interface Element {
export interface BlockElement {
type?: string;
elements?: ElementElementClass[];
text?: Text;
action_id?: string;
url?: string;
Expand Down Expand Up @@ -115,6 +116,11 @@ export interface Text {
verbatim?: boolean;
}

export interface ElementElementClass {
type?: string;
text?: string;
}

export interface Filter {
exclude_external_shared_channels?: boolean;
exclude_bot_users?: boolean;
Expand Down
24 changes: 12 additions & 12 deletions packages/web-api/src/response/SearchAllResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,42 +154,42 @@ export interface MessagesMatch {
}

export interface Attachment {
msg_subtype?: string;
service_name?: string;
title?: string;
title_link?: string;
text?: string;
fallback?: string;
thumb_url?: string;
from_url?: string;
thumb_width?: number;
thumb_height?: number;
service_icon?: string;
id?: number;
original_url?: string;
msg_subtype?: string;
callback_id?: string;
color?: string;
pretext?: string;
service_url?: string;
service_name?: string;
service_icon?: string;
author_id?: string;
author_name?: string;
author_link?: string;
author_icon?: string;
from_url?: string;
original_url?: string;
author_subname?: string;
channel_id?: string;
channel_name?: string;
id?: number;
bot_id?: string;
indent?: boolean;
is_msg_unfurl?: boolean;
is_reply_unfurl?: boolean;
is_thread_root_unfurl?: boolean;
is_app_unfurl?: boolean;
app_unfurl_url?: string;
title?: string;
title_link?: string;
text?: string;
fields?: Field[];
image_url?: string;
image_width?: number;
image_height?: number;
image_bytes?: number;
thumb_url?: string;
thumb_width?: number;
thumb_height?: number;
video_url?: string;
video_html?: string;
video_html_width?: number;
Expand Down

0 comments on commit 8fe609a

Please sign in to comment.