Skip to content

Commit

Permalink
Generate the latest web api responses
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed May 17, 2023
1 parent 816aad0 commit 8707834
Show file tree
Hide file tree
Showing 27 changed files with 81 additions and 20 deletions.
11 changes: 11 additions & 0 deletions packages/web-api/src/response/AdminConversationsSearchResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export type AdminConversationsSearchResponse = WebAPICallResult & {
};

export interface Conversation {
canvas?: Canvas;
channel_email_addresses?: string[];
channel_manager_count?: number;
connected_limited_team_ids?: string[];
Expand Down Expand Up @@ -48,3 +49,13 @@ export interface Conversation {
pending_connected_team_ids?: string[];
purpose?: string;
}

export interface Canvas {
ownership_details?: OwnershipDetail[];
total_count?: number;
}

export interface OwnershipDetail {
count?: number;
team_id?: string;
}
2 changes: 2 additions & 0 deletions packages/web-api/src/response/ChatPostMessageResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ export interface BlockFile {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down Expand Up @@ -579,6 +580,7 @@ export interface FileElement {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ export interface File {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
2 changes: 2 additions & 0 deletions packages/web-api/src/response/ChatUpdateResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ export interface BlockFile {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down Expand Up @@ -498,6 +499,7 @@ export interface FileElement {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
2 changes: 2 additions & 0 deletions packages/web-api/src/response/ConversationsHistoryResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ export interface BlockFile {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down Expand Up @@ -595,6 +596,7 @@ export interface FileElement {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
7 changes: 7 additions & 0 deletions packages/web-api/src/response/ConversationsListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,17 @@ export interface Channel {
}

export interface Properties {
canvas?: Canvas;
posting_restricted_to?: RestrictedTo;
threads_restricted_to?: RestrictedTo;
}

export interface Canvas {
file_id?: string;
is_empty?: boolean;
quip_thread_id?: string;
}

export interface RestrictedTo {
type?: string[];
user?: string[];
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/ConversationsOpenResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ export interface File {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
2 changes: 2 additions & 0 deletions packages/web-api/src/response/ConversationsRepliesResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ export interface BlockFile {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down Expand Up @@ -584,6 +585,7 @@ export interface FileElement {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/FilesInfoResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export interface File {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/FilesListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export interface File {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/FilesRemoteAddResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export interface File {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/FilesRemoteInfoResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export interface File {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
29 changes: 15 additions & 14 deletions packages/web-api/src/response/FilesRemoteListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,13 @@ export interface File {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
original_attachment_count?: number;
original_h?: number;
original_w?: number;
original_h?: string;
original_w?: string;
permalink?: string;
permalink_public?: string;
pinned_to?: string[];
Expand All @@ -93,40 +94,40 @@ export interface File {
subtype?: string;
thumb_1024?: string;
thumb_1024_gif?: string;
thumb_1024_h?: number;
thumb_1024_w?: number;
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?: number;
thumb_360_w?: number;
thumb_360_h?: string;
thumb_360_w?: string;
thumb_480?: string;
thumb_480_gif?: string;
thumb_480_h?: number;
thumb_480_w?: number;
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?: number;
thumb_720_w?: number;
thumb_720_h?: string;
thumb_720_w?: string;
thumb_80?: string;
thumb_800?: string;
thumb_800_gif?: string;
thumb_800_h?: number;
thumb_800_w?: number;
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?: number;
thumb_960_w?: number;
thumb_960_h?: string;
thumb_960_w?: string;
thumb_gif?: string;
thumb_pdf?: string;
thumb_pdf_h?: string;
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/FilesRemoteShareResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export interface File {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/FilesRemoteUpdateResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export interface File {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export interface File {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export interface File {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/FilesUploadResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export interface File {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/PinsListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export interface File {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/ReactionsGetResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ export interface File {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
2 changes: 2 additions & 0 deletions packages/web-api/src/response/ReactionsListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ export interface BlockFile {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down Expand Up @@ -592,6 +593,7 @@ export interface FileElement {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
2 changes: 2 additions & 0 deletions packages/web-api/src/response/RtmStartResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ export interface BlockFile {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down Expand Up @@ -690,6 +691,7 @@ export interface FileElement {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/SearchAllResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ export interface File {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
2 changes: 2 additions & 0 deletions packages/web-api/src/response/SearchMessagesResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ export interface BlockFile {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down Expand Up @@ -581,6 +582,7 @@ export interface FileElement {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
2 changes: 2 additions & 0 deletions packages/web-api/src/response/StarsListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export interface ItemFile {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down Expand Up @@ -596,6 +597,7 @@ export interface FileElement {
mimetype?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
name?: string;
non_owner_editable?: boolean;
num_stars?: number;
Expand Down
17 changes: 11 additions & 6 deletions packages/web-api/src/response/TeamAccessLogsResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@

import { WebAPICallResult } from '../WebClient';
export type TeamAccessLogsResponse = WebAPICallResult & {
error?: string;
logins?: Login[];
needed?: string;
ok?: boolean;
paging?: Paging;
provided?: string;
error?: string;
logins?: Login[];
needed?: string;
ok?: boolean;
paging?: Paging;
provided?: string;
response_metadata?: ResponseMetadata;
};

export interface Login {
Expand All @@ -37,3 +38,7 @@ export interface Paging {
pages?: number;
total?: number;
}

export interface ResponseMetadata {
next_cursor?: string;
}
7 changes: 7 additions & 0 deletions packages/web-api/src/response/UsersConversationsResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,17 @@ export interface Channel {
}

export interface Properties {
canvas?: Canvas;
huddles_restricted?: boolean;
posting_restricted_to?: PostingRestrictedTo;
}

export interface Canvas {
file_id?: string;
is_empty?: boolean;
quip_thread_id?: string;
}

export interface PostingRestrictedTo {
type?: string[];
}
Expand Down

0 comments on commit 8707834

Please sign in to comment.