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 Jan 6, 2023
1 parent e110b56 commit 9c79f93
Show file tree
Hide file tree
Showing 22 changed files with 303 additions and 24 deletions.
9 changes: 9 additions & 0 deletions packages/web-api/src/response/ChatPostMessageResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ export interface AccessoryElement {
indent?: number;
offset?: number;
style?: string;
text?: string;
type?: string;
}

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions packages/web-api/src/response/ChatScheduleMessageResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
8 changes: 8 additions & 0 deletions packages/web-api/src/response/ChatUpdateResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
8 changes: 8 additions & 0 deletions packages/web-api/src/response/ConversationsHistoryResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions packages/web-api/src/response/ConversationsOpenResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
8 changes: 8 additions & 0 deletions packages/web-api/src/response/ConversationsRepliesResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions packages/web-api/src/response/FilesInfoResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions packages/web-api/src/response/FilesRemoteAddResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions packages/web-api/src/response/FilesRemoteInfoResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
28 changes: 14 additions & 14 deletions packages/web-api/src/response/FilesRemoteListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand All @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions packages/web-api/src/response/FilesRemoteShareResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions packages/web-api/src/response/FilesRemoteUpdateResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions packages/web-api/src/response/FilesRevokePublicURLResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions packages/web-api/src/response/FilesSharedPublicURLResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions packages/web-api/src/response/FilesUploadResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 9c79f93

Please sign in to comment.