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 2, 2022
1 parent 60879af commit f428ba0
Show file tree
Hide file tree
Showing 36 changed files with 137 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* eslint-disable */
/////////////////////////////////////////////////////////////////////////////////////////
// //
// !!! DO NOT EDIT THIS FILE !!! //
// //
// This file is auto-generated by scripts/generate-web-api-types.sh in the repository. //
// Please refer to the script code to learn how to update the source data. //
// //
/////////////////////////////////////////////////////////////////////////////////////////

import { WebAPICallResult } from '../WebClient';
export type AdminConversationsBulkArchiveResponse = WebAPICallResult & {
bulk_action_id?: string;
error?: string;
needed?: string;
not_added?: NotAdded[];
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
};

export interface NotAdded {
channel_id?: string;
errors?: string[];
}

export interface ResponseMetadata {
messages?: string[];
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* eslint-disable */
/////////////////////////////////////////////////////////////////////////////////////////
// //
// !!! DO NOT EDIT THIS FILE !!! //
// //
// This file is auto-generated by scripts/generate-web-api-types.sh in the repository. //
// Please refer to the script code to learn how to update the source data. //
// //
/////////////////////////////////////////////////////////////////////////////////////////

import { WebAPICallResult } from '../WebClient';
export type AdminConversationsBulkDeleteResponse = WebAPICallResult & {
bulk_action_id?: string;
error?: string;
needed?: string;
not_added?: NotAdded[];
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
};

export interface NotAdded {
channel_id?: string;
errors?: string[];
}

export interface ResponseMetadata {
messages?: string[];
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* eslint-disable */
/////////////////////////////////////////////////////////////////////////////////////////
// //
// !!! DO NOT EDIT THIS FILE !!! //
// //
// This file is auto-generated by scripts/generate-web-api-types.sh in the repository. //
// Please refer to the script code to learn how to update the source data. //
// //
/////////////////////////////////////////////////////////////////////////////////////////

import { WebAPICallResult } from '../WebClient';
export type AdminConversationsBulkMoveResponse = WebAPICallResult & {
bulk_action_id?: string;
error?: string;
needed?: string;
not_added?: NotAdded[];
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
};

export interface NotAdded {
channel_id?: string;
errors?: string[];
}

export interface ResponseMetadata {
messages?: string[];
}
15 changes: 10 additions & 5 deletions packages/web-api/src/response/AdminConversationsCreateResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@

import { WebAPICallResult } from '../WebClient';
export type AdminConversationsCreateResponse = WebAPICallResult & {
channel_id?: string;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
channel_id?: string;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
};

export interface ResponseMetadata {
messages?: string[];
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface Channel {
purpose?: Purpose;
topic?: Purpose;
unlinked?: number;
updated?: number;
}

export interface Purpose {
Expand Down
2 changes: 1 addition & 1 deletion packages/web-api/src/response/ChatPostMessageResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export interface Accessory {
initial_conversation?: string;
initial_conversations?: string[];
initial_date?: string;
initial_date_time?: number;
initial_option?: InitialOptionElement;
initial_options?: InitialOptionElement[];
initial_time?: string;
Expand Down Expand Up @@ -236,7 +237,6 @@ export interface AccessoryElement {
indent?: number;
offset?: number;
style?: string;
text?: string;
type?: string;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export interface Accessory {
initial_conversation?: string;
initial_conversations?: string[];
initial_date?: string;
initial_date_time?: number;
initial_option?: Option;
initial_options?: Option[];
initial_time?: string;
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/ChatUpdateResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export interface Accessory {
initial_conversation?: string;
initial_conversations?: string[];
initial_date?: string;
initial_date_time?: number;
initial_option?: Option;
initial_options?: Option[];
initial_time?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export interface Channel {
shared_team_ids?: string[];
topic?: Purpose;
unlinked?: number;
updated?: number;
}

export interface Purpose {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export interface Accessory {
initial_conversation?: string;
initial_conversations?: string[];
initial_date?: string;
initial_date_time?: number;
initial_option?: InitialOptionElement;
initial_options?: InitialOptionElement[];
initial_time?: string;
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/ConversationsInfoResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export interface Channel {
shared_team_ids?: string[];
topic?: Purpose;
unlinked?: number;
updated?: number;
}

export interface Purpose {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export interface Channel {
shared_team_ids?: string[];
topic?: Purpose;
unlinked?: number;
updated?: number;
}

export interface Purpose {
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/ConversationsJoinResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export interface Channel {
shared_team_ids?: string[];
topic?: Purpose;
unlinked?: number;
updated?: number;
}

export interface Purpose {
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/ConversationsListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export interface Channel {
shared_team_ids?: string[];
topic?: Purpose;
unlinked?: number;
updated?: number;
user?: string;
}

Expand Down
2 changes: 2 additions & 0 deletions packages/web-api/src/response/ConversationsOpenResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export interface Channel {
priority?: number;
unread_count?: number;
unread_count_display?: number;
updated?: number;
user?: string;
}

Expand Down Expand Up @@ -111,6 +112,7 @@ export interface Accessory {
initial_conversation?: string;
initial_conversations?: string[];
initial_date?: string;
initial_date_time?: number;
initial_option?: Option;
initial_options?: Option[];
initial_time?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export interface Channel {
shared_team_ids?: string[];
topic?: Purpose;
unlinked?: number;
updated?: number;
}

export interface Purpose {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ export interface Accessory {
initial_conversation?: string;
initial_conversations?: string[];
initial_date?: string;
initial_date_time?: number;
initial_option?: InitialOptionElement;
initial_options?: InitialOptionElement[];
initial_time?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export interface Channel {
shared_team_ids?: string[];
topic?: Purpose;
unlinked?: number;
updated?: number;
}

export interface Purpose {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export interface Channel {
shared_team_ids?: string[];
topic?: Purpose;
unlinked?: number;
updated?: number;
}

export interface Purpose {
Expand Down
2 changes: 1 addition & 1 deletion packages/web-api/src/response/ReactionsGetResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export interface Accessory {
initial_conversation?: string;
initial_conversations?: string[];
initial_date?: string;
initial_date_time?: number;
initial_option?: Option;
initial_options?: Option[];
initial_time?: string;
Expand Down Expand Up @@ -137,7 +138,6 @@ export interface AccessoryElement {
indent?: number;
offset?: number;
style?: string;
text?: string;
type?: string;
}

Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/ReactionsListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export interface Accessory {
initial_conversation?: string;
initial_conversations?: string[];
initial_date?: string;
initial_date_time?: number;
initial_option?: Option;
initial_options?: Option[];
initial_time?: string;
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 @@ -307,6 +307,7 @@ export interface Accessory {
initial_conversation?: string;
initial_conversations?: string[];
initial_date?: string;
initial_date_time?: number;
initial_option?: InitialOptionElement;
initial_options?: InitialOptionElement[];
initial_time?: string;
Expand Down Expand Up @@ -1733,4 +1734,5 @@ export interface StatusEmojiDisplayInfo {
display_alias?: string;
display_url?: string;
emoji_name?: string;
unicode?: string;
}
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 @@ -330,6 +330,7 @@ export interface Accessory {
initial_conversation?: string;
initial_conversations?: string[];
initial_date?: string;
initial_date_time?: number;
initial_option?: InitialOptionElement;
initial_options?: InitialOptionElement[];
initial_time?: string;
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/SearchMessagesResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ export interface Accessory {
initial_conversation?: string;
initial_conversations?: string[];
initial_date?: string;
initial_date_time?: number;
initial_option?: InitialOptionElement;
initial_options?: InitialOptionElement[];
initial_time?: string;
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/StarsListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ export interface Accessory {
initial_conversation?: string;
initial_conversations?: string[];
initial_date?: string;
initial_date_time?: number;
initial_option?: InitialOptionElement;
initial_options?: InitialOptionElement[];
initial_time?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export interface Channel {
shared_team_ids?: string[];
topic?: Purpose;
unlinked?: number;
updated?: number;
user?: string;
}

Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/UsersInfoResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,5 @@ export interface StatusEmojiDisplayInfo {
display_alias?: string;
display_url?: string;
emoji_name?: string;
unicode?: string;
}
1 change: 1 addition & 0 deletions packages/web-api/src/response/UsersListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export interface StatusEmojiDisplayInfo {
display_alias?: string;
display_url?: string;
emoji_name?: string;
unicode?: string;
}

export interface ResponseMetadata {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,5 @@ export interface StatusEmojiDisplayInfo {
display_alias?: string;
display_url?: string;
emoji_name?: string;
unicode?: string;
}
1 change: 1 addition & 0 deletions packages/web-api/src/response/UsersProfileGetResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,5 @@ export interface StatusEmojiDisplayInfo {
display_alias?: string;
display_url?: string;
emoji_name?: string;
unicode?: string;
}
1 change: 1 addition & 0 deletions packages/web-api/src/response/UsersProfileSetResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,5 @@ export interface StatusEmojiDisplayInfo {
display_alias?: string;
display_url?: string;
emoji_name?: string;
unicode?: string;
}
2 changes: 2 additions & 0 deletions packages/web-api/src/response/ViewsOpenResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export interface PurpleElement {
initial_channel?: string;
initial_conversation?: string;
initial_date?: string;
initial_date_time?: number;
initial_option?: Option;
initial_time?: string;
initial_user?: string;
Expand Down Expand Up @@ -182,6 +183,7 @@ export interface ElementElement {
initial_conversation?: string;
initial_conversations?: string[];
initial_date?: string;
initial_date_time?: number;
initial_option?: Option;
initial_options?: Option[];
initial_time?: string;
Expand Down
2 changes: 2 additions & 0 deletions packages/web-api/src/response/ViewsPublishResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export interface PurpleElement {
initial_channel?: string;
initial_conversation?: string;
initial_date?: string;
initial_date_time?: number;
initial_option?: Option;
initial_time?: string;
initial_user?: string;
Expand Down Expand Up @@ -182,6 +183,7 @@ export interface ElementElement {
initial_conversation?: string;
initial_conversations?: string[];
initial_date?: string;
initial_date_time?: number;
initial_option?: Option;
initial_options?: Option[];
initial_time?: string;
Expand Down
2 changes: 2 additions & 0 deletions packages/web-api/src/response/ViewsPushResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export interface PurpleElement {
initial_channel?: string;
initial_conversation?: string;
initial_date?: string;
initial_date_time?: number;
initial_option?: Option;
initial_time?: string;
initial_user?: string;
Expand Down Expand Up @@ -182,6 +183,7 @@ export interface ElementElement {
initial_conversation?: string;
initial_conversations?: string[];
initial_date?: string;
initial_date_time?: number;
initial_option?: Option;
initial_options?: Option[];
initial_time?: string;
Expand Down
Loading

0 comments on commit f428ba0

Please sign in to comment.