Skip to content

Commit

Permalink
Add new args to admin.users.list and update web API response types (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch authored and filmaj committed Nov 2, 2023
1 parent c80fdc2 commit 6e07903
Show file tree
Hide file tree
Showing 24 changed files with 351 additions and 33 deletions.
2 changes: 2 additions & 0 deletions packages/web-api/src/methods.ts
Expand Up @@ -1289,6 +1289,8 @@ export interface AdminUsersInviteArguments extends WebAPICallOptions, TokenOverr
}
export interface AdminUsersListArguments extends WebAPICallOptions, TokenOverridable, CursorPaginationEnabled {
team_id: string;
include_deactivated_user_workspaces?: boolean;
is_active?: boolean;
}
cursorPaginationEnabledMethods.add('admin.users.list');
export interface AdminUsersRemoveArguments extends WebAPICallOptions, TokenOverridable {
Expand Down
Expand Up @@ -35,13 +35,16 @@ export interface Activity {
export interface Payload {
actor?: string;
billing_reason?: string[];
bot_user_id?: string;
channel_id?: string;
current_step?: number;
error?: string;
exec_outcome?: string;
function_execution_id?: string;
function_id?: string;
function_name?: string;
function_type?: string;
inputs?: Inputs;
is_billing_excluded?: boolean;
log?: string;
total_steps?: number;
Expand All @@ -50,6 +53,9 @@ export interface Payload {
workflow_name?: string;
}

export interface Inputs {
}

export interface Trigger {
config?: Config;
id?: string;
Expand All @@ -60,6 +66,7 @@ export interface Trigger {
export interface Config {
description?: string;
name?: string;
schema?: Inputs;
}

export interface TripInformation {
Expand Down
8 changes: 8 additions & 0 deletions packages/web-api/src/response/AdminUsersListResponse.ts
Expand Up @@ -24,13 +24,21 @@ export interface ResponseMetadata {
}

export interface User {
date_created?: number;
email?: string;
expiration_ts?: number;
full_name?: string;
has_2fa?: boolean;
has_sso?: boolean;
id?: string;
is_active?: boolean;
is_admin?: boolean;
is_bot?: boolean;
is_owner?: boolean;
is_primary_owner?: boolean;
is_restricted?: boolean;
is_ultra_restricted?: boolean;
roles?: string[];
username?: string;
workspaces?: string[];
}
21 changes: 21 additions & 0 deletions packages/web-api/src/response/ChatPostMessageResponse.ts
Expand Up @@ -66,13 +66,15 @@ export interface Attachment {
footer?: string;
footer_icon?: string;
from_url?: string;
hide_color?: boolean;
id?: number;
image_bytes?: number;
image_height?: number;
image_url?: string;
image_width?: number;
indent?: boolean;
is_app_unfurl?: boolean;
is_file_attachment?: boolean;
is_msg_unfurl?: boolean;
is_reply_unfurl?: boolean;
is_thread_root_unfurl?: boolean;
Expand Down Expand Up @@ -345,6 +347,7 @@ export interface FileElement {
attachments?: any[];
blocks?: TitleBlockElement[];
bot_id?: string;
canvas_template_mode?: string;
cc?: Cc[];
channel_actions_count?: number;
channel_actions_ts?: string;
Expand All @@ -358,8 +361,10 @@ export interface FileElement {
dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[];
duration_ms?: number;
edit_link?: string;
edit_timestamp?: number;
editable?: boolean;
editor?: string;
editors?: string[];
external_id?: string;
external_type?: string;
external_url?: string;
Expand Down Expand Up @@ -422,6 +427,11 @@ export interface FileElement {
subject?: string;
subtype?: string;
teams_shared_with?: any[];
template_conversion_ts?: number;
template_description?: string;
template_icon?: string;
template_name?: string;
template_title?: string;
thumb_1024?: string;
thumb_1024_gif?: string;
thumb_1024_h?: string;
Expand Down Expand Up @@ -471,6 +481,7 @@ export interface FileElement {
title_blocks?: TitleBlockElement[];
to?: Cc[];
transcription?: Transcription;
update_notification?: number;
updated?: number;
url_private?: string;
url_private_download?: string;
Expand Down Expand Up @@ -535,6 +546,7 @@ export interface Shares {
}

export interface Private {
access?: string;
channel_name?: string;
latest_reply?: string;
reply_count?: number;
Expand Down Expand Up @@ -677,6 +689,7 @@ export interface MessageFile {
attachments?: any[];
blocks?: any[];
bot_id?: string;
canvas_template_mode?: string;
cc?: any[];
channel_actions_count?: number;
channel_actions_ts?: string;
Expand All @@ -690,8 +703,10 @@ export interface MessageFile {
dm_mpdm_users_with_file_access?: any[];
duration_ms?: number;
edit_link?: string;
edit_timestamp?: number;
editable?: boolean;
editor?: string;
editors?: any[];
external_id?: string;
external_type?: string;
external_url?: string;
Expand Down Expand Up @@ -754,6 +769,11 @@ export interface MessageFile {
subject?: string;
subtype?: string;
teams_shared_with?: any[];
template_conversion_ts?: number;
template_description?: string;
template_icon?: string;
template_name?: string;
template_title?: string;
thumb_1024?: string;
thumb_1024_gif?: string;
thumb_1024_h?: string;
Expand Down Expand Up @@ -803,6 +823,7 @@ export interface MessageFile {
title_blocks?: any[];
to?: any[];
transcription?: Transcription;
update_notification?: number;
updated?: number;
url_private?: string;
url_private_download?: string;
Expand Down
9 changes: 9 additions & 0 deletions packages/web-api/src/response/ChatScheduleMessageResponse.ts
Expand Up @@ -279,6 +279,7 @@ export interface File {
attachments?: any[];
blocks?: any[];
bot_id?: string;
canvas_template_mode?: string;
cc?: any[];
channel_actions_count?: number;
channel_actions_ts?: string;
Expand All @@ -292,8 +293,10 @@ export interface File {
dm_mpdm_users_with_file_access?: any[];
duration_ms?: number;
edit_link?: string;
edit_timestamp?: number;
editable?: boolean;
editor?: string;
editors?: any[];
external_id?: string;
external_type?: string;
external_url?: string;
Expand Down Expand Up @@ -356,6 +359,11 @@ export interface File {
subject?: string;
subtype?: string;
teams_shared_with?: any[];
template_conversion_ts?: number;
template_description?: string;
template_icon?: string;
template_name?: string;
template_title?: string;
thumb_1024?: string;
thumb_1024_gif?: string;
thumb_1024_h?: string;
Expand Down Expand Up @@ -405,6 +413,7 @@ export interface File {
title_blocks?: any[];
to?: any[];
transcription?: Transcription;
update_notification?: number;
updated?: number;
url_private?: string;
url_private_download?: string;
Expand Down
19 changes: 19 additions & 0 deletions packages/web-api/src/response/ChatUpdateResponse.ts
Expand Up @@ -291,6 +291,7 @@ export interface BlockFile {
attachments?: any[];
blocks?: any[];
bot_id?: string;
canvas_template_mode?: string;
cc?: any[];
channel_actions_count?: number;
channel_actions_ts?: string;
Expand All @@ -304,8 +305,10 @@ export interface BlockFile {
dm_mpdm_users_with_file_access?: any[];
duration_ms?: number;
edit_link?: string;
edit_timestamp?: number;
editable?: boolean;
editor?: string;
editors?: any[];
external_id?: string;
external_type?: string;
external_url?: string;
Expand Down Expand Up @@ -368,6 +371,11 @@ export interface BlockFile {
subject?: string;
subtype?: string;
teams_shared_with?: any[];
template_conversion_ts?: number;
template_description?: string;
template_icon?: string;
template_name?: string;
template_title?: string;
thumb_1024?: string;
thumb_1024_gif?: string;
thumb_1024_h?: string;
Expand Down Expand Up @@ -417,6 +425,7 @@ export interface BlockFile {
title_blocks?: any[];
to?: any[];
transcription?: Transcription;
update_notification?: number;
updated?: number;
url_private?: string;
url_private_download?: string;
Expand Down Expand Up @@ -492,6 +501,7 @@ export interface FileElement {
app_id?: string;
app_name?: string;
bot_id?: string;
canvas_template_mode?: string;
cc?: Cc[];
channel_actions_count?: number;
channel_actions_ts?: string;
Expand All @@ -505,8 +515,10 @@ export interface FileElement {
dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[];
duration_ms?: number;
edit_link?: string;
edit_timestamp?: number;
editable?: boolean;
editor?: string;
editors?: string[];
external_id?: string;
external_type?: string;
external_url?: string;
Expand Down Expand Up @@ -569,6 +581,11 @@ export interface FileElement {
subject?: string;
subtype?: string;
teams_shared_with?: any[];
template_conversion_ts?: number;
template_description?: string;
template_icon?: string;
template_name?: string;
template_title?: string;
thumb_1024?: string;
thumb_1024_gif?: string;
thumb_1024_h?: string;
Expand Down Expand Up @@ -618,6 +635,7 @@ export interface FileElement {
title_blocks?: TitleBlock[];
to?: Cc[];
transcription?: Transcription;
update_notification?: number;
updated?: number;
url_private?: string;
url_private_download?: string;
Expand Down Expand Up @@ -652,6 +670,7 @@ export interface Shares {
}

export interface Private {
access?: string;
channel_name?: string;
latest_reply?: string;
reply_count?: number;
Expand Down
21 changes: 21 additions & 0 deletions packages/web-api/src/response/ConversationsHistoryResponse.ts
Expand Up @@ -82,13 +82,15 @@ export interface Attachment {
footer?: string;
footer_icon?: string;
from_url?: string;
hide_color?: boolean;
id?: number;
image_bytes?: number;
image_height?: number;
image_url?: string;
image_width?: number;
indent?: boolean;
is_app_unfurl?: boolean;
is_file_attachment?: boolean;
is_msg_unfurl?: boolean;
is_reply_unfurl?: boolean;
is_thread_root_unfurl?: boolean;
Expand Down Expand Up @@ -361,6 +363,7 @@ export interface FileElement {
attachments?: any[];
blocks?: TitleBlockElement[];
bot_id?: string;
canvas_template_mode?: string;
cc?: Cc[];
channel_actions_count?: number;
channel_actions_ts?: string;
Expand All @@ -374,8 +377,10 @@ export interface FileElement {
dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[];
duration_ms?: number;
edit_link?: string;
edit_timestamp?: number;
editable?: boolean;
editor?: string;
editors?: string[];
external_id?: string;
external_type?: string;
external_url?: string;
Expand Down Expand Up @@ -438,6 +443,11 @@ export interface FileElement {
subject?: string;
subtype?: string;
teams_shared_with?: any[];
template_conversion_ts?: number;
template_description?: string;
template_icon?: string;
template_name?: string;
template_title?: string;
thumb_1024?: string;
thumb_1024_gif?: string;
thumb_1024_h?: string;
Expand Down Expand Up @@ -487,6 +497,7 @@ export interface FileElement {
title_blocks?: TitleBlockElement[];
to?: Cc[];
transcription?: Transcription;
update_notification?: number;
updated?: number;
url_private?: string;
url_private_download?: string;
Expand Down Expand Up @@ -551,6 +562,7 @@ export interface Shares {
}

export interface Private {
access?: string;
channel_name?: string;
latest_reply?: string;
reply_count?: number;
Expand Down Expand Up @@ -693,6 +705,7 @@ export interface BlockFile {
attachments?: any[];
blocks?: any[];
bot_id?: string;
canvas_template_mode?: string;
cc?: any[];
channel_actions_count?: number;
channel_actions_ts?: string;
Expand All @@ -706,8 +719,10 @@ export interface BlockFile {
dm_mpdm_users_with_file_access?: any[];
duration_ms?: number;
edit_link?: string;
edit_timestamp?: number;
editable?: boolean;
editor?: string;
editors?: any[];
external_id?: string;
external_type?: string;
external_url?: string;
Expand Down Expand Up @@ -770,6 +785,11 @@ export interface BlockFile {
subject?: string;
subtype?: string;
teams_shared_with?: any[];
template_conversion_ts?: number;
template_description?: string;
template_icon?: string;
template_name?: string;
template_title?: string;
thumb_1024?: string;
thumb_1024_gif?: string;
thumb_1024_h?: string;
Expand Down Expand Up @@ -819,6 +839,7 @@ export interface BlockFile {
title_blocks?: any[];
to?: any[];
transcription?: Transcription;
update_notification?: number;
updated?: number;
url_private?: string;
url_private_download?: string;
Expand Down

0 comments on commit 6e07903

Please sign in to comment.