From 1467eb47526b16b1db62be856cee1bbcfc1ef673 Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Thu, 19 Nov 2026 17:46:02 -0800 Subject: [PATCH 1/7] feat(web-api): update web api response types from java samples Co-Authored-By: Claude --- .../AdminAppsActivitiesListResponse.ts | 32 + .../AgentsConversationsListViewsResponse.ts | 12 + .../src/types/response/AppsIconSetResponse.ts | 5 + .../response/AppsManifestExportResponse.ts | 7 + .../types/response/BlocksValidateResponse.ts | 1 - .../response/CanvasesGetContentResponse.ts | 3 + .../types/response/ChatPostMessageResponse.ts | 50 + .../response/ChatScheduleMessageResponse.ts | 21 + .../types/response/ChatStopStreamResponse.ts | 21 + .../src/types/response/ChatUpdateResponse.ts | 21 + .../response/ConversationsCreateResponse.ts | 3 + .../response/ConversationsHistoryResponse.ts | 50 + .../response/ConversationsInfoResponse.ts | 2 + .../response/ConversationsInviteResponse.ts | 3 + .../response/ConversationsListResponse.ts | 1463 +++++++++++++++++ .../response/ConversationsOpenResponse.ts | 21 + .../response/ConversationsRenameResponse.ts | 3 + .../response/ConversationsRepliesResponse.ts | 50 + .../ConversationsSetPurposeResponse.ts | 3 + .../response/ConversationsSetTopicResponse.ts | 3 + .../src/types/response/FilesInfoResponse.ts | 22 + .../src/types/response/FilesListResponse.ts | 21 + .../types/response/FilesRemoteAddResponse.ts | 21 + .../types/response/FilesRemoteInfoResponse.ts | 21 + .../types/response/FilesRemoteListResponse.ts | 21 + .../response/FilesRemoteShareResponse.ts | 21 + .../response/FilesRemoteUpdateResponse.ts | 21 + .../src/types/response/PinsListResponse.ts | 68 +- .../types/response/ReactionsGetResponse.ts | 21 + .../types/response/ReactionsListResponse.ts | 50 + .../src/types/response/SearchAllResponse.ts | 112 +- .../src/types/response/SearchFilesResponse.ts | 103 +- .../types/response/SearchMessagesResponse.ts | 50 + .../src/types/response/UsersListResponse.ts | 1 + .../src/types/response/ViewsOpenResponse.ts | 6 + .../types/response/ViewsPublishResponse.ts | 6 + .../src/types/response/ViewsPushResponse.ts | 6 + .../src/types/response/ViewsUpdateResponse.ts | 6 + 38 files changed, 2303 insertions(+), 48 deletions(-) diff --git a/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts b/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts index 7face3589..865c24cb9 100644 --- a/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts @@ -91,8 +91,40 @@ export interface Trigger { export interface Config { description?: string; event_type?: string; + function_inputs?: FunctionInputs; name?: string; schema?: Inputs; + trigger_type_app_id?: number; + trigger_type_id?: number; +} + +export interface FunctionInputs { + '0000000000'?: The0000000000; + '0000000000_'?: The0000000000_; +} + +export interface The0000000000 { + hidden?: boolean; + label?: Label; + locked?: boolean; + value?: string; +} + +export interface Label { + '0000000000'?: string; + '0000000000_'?: string; +} + +export interface The0000000000_ { + hidden?: boolean; + locked?: boolean; + value?: Value; +} + +export interface Value { + credential_source?: string; + external_token_id?: string; + user_context_source?: string; } export interface TripInformation { diff --git a/packages/web-api/src/types/response/AgentsConversationsListViewsResponse.ts b/packages/web-api/src/types/response/AgentsConversationsListViewsResponse.ts index 2001f4af0..3dd433c17 100644 --- a/packages/web-api/src/types/response/AgentsConversationsListViewsResponse.ts +++ b/packages/web-api/src/types/response/AgentsConversationsListViewsResponse.ts @@ -13,10 +13,22 @@ export type AgentsConversationsListViewsResponse = WebAPICallResult & { needed?: string; ok?: boolean; provided?: string; + session_views?: SessionView[]; views?: View[]; warning?: string; }; +export interface SessionView { + content_version?: number; + date_added?: number; + file_id?: string; + name?: string; + owner_bot_user_id?: string; + type?: string; + view_id?: string; + view_key?: string; +} + export interface View { content_version?: number; date_added?: number; diff --git a/packages/web-api/src/types/response/AppsIconSetResponse.ts b/packages/web-api/src/types/response/AppsIconSetResponse.ts index 4f9b87b9d..6ced1983e 100644 --- a/packages/web-api/src/types/response/AppsIconSetResponse.ts +++ b/packages/web-api/src/types/response/AppsIconSetResponse.ts @@ -13,5 +13,10 @@ export type AppsIconSetResponse = WebAPICallResult & { needed?: string; ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; warning?: string; }; + +export interface ResponseMetadata { + messages?: string[]; +} diff --git a/packages/web-api/src/types/response/AppsManifestExportResponse.ts b/packages/web-api/src/types/response/AppsManifestExportResponse.ts index bfd275fa3..a77476712 100644 --- a/packages/web-api/src/types/response/AppsManifestExportResponse.ts +++ b/packages/web-api/src/types/response/AppsManifestExportResponse.ts @@ -44,6 +44,7 @@ export interface Features { shortcuts?: Shortcut[]; slash_commands?: SlashCommand[]; unfurl_domains?: string[]; + user_connections?: UserConnections; } export interface AppHome { @@ -72,6 +73,11 @@ export interface SlashCommand { usage_hint?: string; } +export interface UserConnections { + auth_hosts?: string[]; + is_enabled?: boolean; +} + export interface Function { description?: string; input_parameters?: { [key: string]: PutParameter }; @@ -106,6 +112,7 @@ export interface Scopes { export interface Settings { allowed_ip_address_ranges?: string[]; + app_level_token_rotation_enabled?: boolean; background_color?: string; description?: string; event_subscriptions?: EventSubscriptions; diff --git a/packages/web-api/src/types/response/BlocksValidateResponse.ts b/packages/web-api/src/types/response/BlocksValidateResponse.ts index 98ac25f84..26417aede 100644 --- a/packages/web-api/src/types/response/BlocksValidateResponse.ts +++ b/packages/web-api/src/types/response/BlocksValidateResponse.ts @@ -8,7 +8,6 @@ ///////////////////////////////////////////////////////////////////////////////////////// import type { WebAPICallResult } from '../../WebClient'; - export type BlocksValidateResponse = WebAPICallResult & { error?: string; errors?: Error[]; diff --git a/packages/web-api/src/types/response/CanvasesGetContentResponse.ts b/packages/web-api/src/types/response/CanvasesGetContentResponse.ts index 8f363767b..c7844fae6 100644 --- a/packages/web-api/src/types/response/CanvasesGetContentResponse.ts +++ b/packages/web-api/src/types/response/CanvasesGetContentResponse.ts @@ -14,5 +14,8 @@ export type CanvasesGetContentResponse = WebAPICallResult & { needed?: string; ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; warning?: string; }; + +export type ResponseMetadata = {}; diff --git a/packages/web-api/src/types/response/ChatPostMessageResponse.ts b/packages/web-api/src/types/response/ChatPostMessageResponse.ts index 237f040e9..884fda782 100644 --- a/packages/web-api/src/types/response/ChatPostMessageResponse.ts +++ b/packages/web-api/src/types/response/ChatPostMessageResponse.ts @@ -106,6 +106,8 @@ export interface AssistantAppThreadBlock { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: AccessoryConfirm; @@ -144,6 +146,7 @@ export interface Accessory { type?: AccessoryType; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } @@ -332,6 +335,12 @@ export interface AppIconUrls { export interface FileElement { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -340,7 +349,9 @@ export interface FileElement { blocks?: DescriptionBlockElement[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -386,6 +397,8 @@ export interface FileElement { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -429,6 +442,7 @@ export interface FileElement { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -500,6 +514,13 @@ export interface FileElement { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface DescriptionBlockElement { accessory?: Accessory; alt_text?: string; @@ -822,6 +843,7 @@ export interface Attachment { list_schema?: Schema[]; list_view?: View; list_view_id?: string; + media_type?: string; message_blocks?: MessageBlock[]; metadata?: AttachmentMetadata; mimetype?: string; @@ -1026,6 +1048,7 @@ export interface AgentSession { agent_bot_user_ids?: any[]; agent_statuses?: any[]; date_status_processing_expire?: number; + encoded_initiator_user_id?: string; status?: string; title?: string; } @@ -1090,6 +1113,12 @@ export interface Edited { export interface MessageFile { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -1098,7 +1127,9 @@ export interface MessageFile { blocks?: any[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -1144,6 +1175,8 @@ export interface MessageFile { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -1187,6 +1220,7 @@ export interface MessageFile { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -1382,11 +1416,27 @@ export interface AttachmentMetadata { original_h?: number; original_w?: number; rotation?: number; + thumb_1024?: boolean; + thumb_1024_h?: number; + thumb_1024_w?: number; thumb_160?: boolean; + thumb_360?: boolean; thumb_360_h?: number; thumb_360_w?: number; + thumb_480?: boolean; + thumb_480_h?: number; + thumb_480_w?: number; thumb_64?: boolean; + thumb_720?: boolean; + thumb_720_h?: number; + thumb_720_w?: number; thumb_80?: boolean; + thumb_800?: boolean; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: boolean; + thumb_960_h?: number; + thumb_960_w?: number; thumb_tiny?: string; } diff --git a/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts b/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts index 65378d1b8..f5f7c8f5d 100644 --- a/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts +++ b/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts @@ -96,6 +96,8 @@ export interface AssistantAppThreadBlock { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: Confirm; @@ -134,6 +136,7 @@ export interface Accessory { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } @@ -303,6 +306,12 @@ export interface AppIconUrls { export interface File { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -311,7 +320,9 @@ export interface File { blocks?: DescriptionBlockElement[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -357,6 +368,8 @@ export interface File { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -400,6 +413,7 @@ export interface File { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -471,6 +485,13 @@ export interface File { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface DescriptionBlockElement { accessory?: Accessory; alt_text?: string; diff --git a/packages/web-api/src/types/response/ChatStopStreamResponse.ts b/packages/web-api/src/types/response/ChatStopStreamResponse.ts index e30b45212..6794d5993 100644 --- a/packages/web-api/src/types/response/ChatStopStreamResponse.ts +++ b/packages/web-api/src/types/response/ChatStopStreamResponse.ts @@ -90,6 +90,8 @@ export interface MessageBlock { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: Confirm; @@ -128,6 +130,7 @@ export interface Accessory { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } @@ -297,6 +300,12 @@ export interface AppIconUrls { export interface File { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -305,7 +314,9 @@ export interface File { blocks?: TitleBlockElement[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -351,6 +362,8 @@ export interface File { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -394,6 +407,7 @@ export interface File { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -465,6 +479,13 @@ export interface File { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface TitleBlockElement { accessory?: Accessory; alt_text?: string; diff --git a/packages/web-api/src/types/response/ChatUpdateResponse.ts b/packages/web-api/src/types/response/ChatUpdateResponse.ts index 48e1cc39f..6027a8323 100644 --- a/packages/web-api/src/types/response/ChatUpdateResponse.ts +++ b/packages/web-api/src/types/response/ChatUpdateResponse.ts @@ -102,6 +102,8 @@ export interface AssistantAppThreadBlock { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: Confirm; @@ -140,6 +142,7 @@ export interface Accessory { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } @@ -309,6 +312,12 @@ export interface AppIconUrls { export interface File { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -317,7 +326,9 @@ export interface File { blocks?: DescriptionBlockElement[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -363,6 +374,8 @@ export interface File { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -406,6 +419,7 @@ export interface File { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -477,6 +491,13 @@ export interface File { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface DescriptionBlockElement { accessory?: Accessory; alt_text?: string; diff --git a/packages/web-api/src/types/response/ConversationsCreateResponse.ts b/packages/web-api/src/types/response/ConversationsCreateResponse.ts index 23d895e9d..0427dd23e 100644 --- a/packages/web-api/src/types/response/ConversationsCreateResponse.ts +++ b/packages/web-api/src/types/response/ConversationsCreateResponse.ts @@ -45,6 +45,7 @@ export interface Channel { pending_shared?: string[]; previous_names?: string[]; priority?: number; + properties?: Properties; purpose?: Purpose; shared_team_ids?: string[]; topic?: Purpose; @@ -52,6 +53,8 @@ export interface Channel { updated?: number; } +export type Properties = {}; + export interface Purpose { creator?: string; last_set?: number; diff --git a/packages/web-api/src/types/response/ConversationsHistoryResponse.ts b/packages/web-api/src/types/response/ConversationsHistoryResponse.ts index a69f4343c..bf5845573 100644 --- a/packages/web-api/src/types/response/ConversationsHistoryResponse.ts +++ b/packages/web-api/src/types/response/ConversationsHistoryResponse.ts @@ -68,6 +68,7 @@ export interface AgentSession { agent_bot_user_ids?: string[]; agent_statuses?: AgentStatus[]; date_status_processing_expire?: number; + encoded_initiator_user_id?: string; status?: string; title?: string; } @@ -140,6 +141,8 @@ export interface AssistantAppThreadBlock { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: AccessoryConfirm; @@ -178,6 +181,7 @@ export interface Accessory { type?: AccessoryType; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } @@ -366,6 +370,12 @@ export interface AppIconUrls { export interface FileElement { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -374,7 +384,9 @@ export interface FileElement { blocks?: DescriptionBlockElement[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -420,6 +432,8 @@ export interface FileElement { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -463,6 +477,7 @@ export interface FileElement { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -534,6 +549,13 @@ export interface FileElement { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface DescriptionBlockElement { accessory?: Accessory; alt_text?: string; @@ -856,6 +878,7 @@ export interface Attachment { list_schema?: Schema[]; list_view?: View; list_view_id?: string; + media_type?: string; message_blocks?: MessageBlock[]; metadata?: AttachmentMetadata; mimetype?: string; @@ -1116,6 +1139,12 @@ export interface Edited { export interface PurpleFile { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -1124,7 +1153,9 @@ export interface PurpleFile { blocks?: any[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -1170,6 +1201,8 @@ export interface PurpleFile { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -1213,6 +1246,7 @@ export interface PurpleFile { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -1405,11 +1439,27 @@ export interface AttachmentMetadata { original_h?: number; original_w?: number; rotation?: number; + thumb_1024?: boolean; + thumb_1024_h?: number; + thumb_1024_w?: number; thumb_160?: boolean; + thumb_360?: boolean; thumb_360_h?: number; thumb_360_w?: number; + thumb_480?: boolean; + thumb_480_h?: number; + thumb_480_w?: number; thumb_64?: boolean; + thumb_720?: boolean; + thumb_720_h?: number; + thumb_720_w?: number; thumb_80?: boolean; + thumb_800?: boolean; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: boolean; + thumb_960_h?: number; + thumb_960_w?: number; thumb_tiny?: string; } diff --git a/packages/web-api/src/types/response/ConversationsInfoResponse.ts b/packages/web-api/src/types/response/ConversationsInfoResponse.ts index 93b6861f4..09f5c3dd8 100644 --- a/packages/web-api/src/types/response/ConversationsInfoResponse.ts +++ b/packages/web-api/src/types/response/ConversationsInfoResponse.ts @@ -29,6 +29,7 @@ export interface Channel { is_archived?: boolean; is_channel?: boolean; is_ext_shared?: boolean; + is_file?: boolean; is_general?: boolean; is_global_shared?: boolean; is_group?: boolean; @@ -75,6 +76,7 @@ export interface Properties { export interface AgentSession { agent_bot_user_ids?: string[]; encoded_agent_bot_user_ids?: string[]; + encoded_initiator_user_id?: string; origin_link?: OriginLink; status?: string; title?: string; diff --git a/packages/web-api/src/types/response/ConversationsInviteResponse.ts b/packages/web-api/src/types/response/ConversationsInviteResponse.ts index ff7b67bf1..a3faf6cdc 100644 --- a/packages/web-api/src/types/response/ConversationsInviteResponse.ts +++ b/packages/web-api/src/types/response/ConversationsInviteResponse.ts @@ -44,6 +44,7 @@ export interface Channel { pending_connected_team_ids?: string[]; pending_shared?: string[]; previous_names?: string[]; + properties?: Properties; purpose?: Purpose; shared_team_ids?: string[]; topic?: Purpose; @@ -51,6 +52,8 @@ export interface Channel { updated?: number; } +export type Properties = {}; + export interface Purpose { creator?: string; last_set?: number; diff --git a/packages/web-api/src/types/response/ConversationsListResponse.ts b/packages/web-api/src/types/response/ConversationsListResponse.ts index 52204eb30..c861c7a4f 100644 --- a/packages/web-api/src/types/response/ConversationsListResponse.ts +++ b/packages/web-api/src/types/response/ConversationsListResponse.ts @@ -21,15 +21,21 @@ export type ConversationsListResponse = WebAPICallResult & { }; export interface Channel { + channel_email_addresses?: ChannelEmailAddress[]; + connected_limited_team_ids?: string[]; + connected_team_ids?: string[]; context_team_id?: string; conversation_host_id?: string; created?: number; creator?: string; + date_connected?: number; + enterprise_id?: string; id?: string; internal_team_ids?: string[]; is_archived?: boolean; is_channel?: boolean; is_ext_shared?: boolean; + is_file?: boolean; is_general?: boolean; is_global_shared?: boolean; is_group?: boolean; @@ -37,16 +43,25 @@ export interface Channel { is_member?: boolean; is_moved?: number; is_mpim?: boolean; + is_non_threadable?: boolean; + is_open?: boolean; is_org_default?: boolean; is_org_mandatory?: boolean; is_org_shared?: boolean; is_pending_ext_shared?: boolean; is_private?: boolean; + is_read_only?: boolean; is_shared?: boolean; + is_starred?: boolean; + is_thread_only?: boolean; is_user_deleted?: boolean; + last_read?: string; + latest?: Latest; + locale?: string; name?: string; name_normalized?: string; num_members?: number; + parent_conversation?: string; pending_connected_team_ids?: string[]; pending_shared?: string[]; previous_names?: string[]; @@ -56,14 +71,1462 @@ export interface Channel { shared_team_ids?: string[]; topic?: Purpose; unlinked?: number; + unread_count?: number; + unread_count_display?: number; updated?: number; user?: string; } +export interface ChannelEmailAddress { + address?: string; + conversation_id?: string; + date_created?: number; + icons?: ChannelEmailAddressIcons; + name?: string; + team_id?: string; + user_id?: string; +} + +export interface ChannelEmailAddressIcons { + image_36?: string; + image_48?: string; + image_72?: string; +} + +export interface Latest { + app_id?: string; + assistant_app_thread?: AssistantAppThread; + attachments?: Attachment[]; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_link?: string; + bot_profile?: BotProfile; + client_msg_id?: string; + display_as_bot?: boolean; + edited?: Edited; + files?: FileElement[]; + icons?: MessageIcons; + metadata?: MessageMetadata; + parent_user_id?: string; + reactions?: Reaction[]; + root?: Root; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + upload?: boolean; + user?: string; + username?: string; + x_files?: string[]; +} + +export interface AssistantAppThread { + first_user_thread_reply?: string; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; +} + +export interface AssistantAppThreadBlock { + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + expand?: boolean; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; + sales_home_workflow_app_type?: number; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; +} + +export interface Accessory { + accessibility_label?: string; + action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; + default_to_current_conversation?: boolean; + elements?: AccessoryElement[]; + fallback?: string; + filter?: AccessoryFilter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: AccessoryType; + url?: string; + value?: string; + visible_to_user_ids?: any[]; + workflow?: Workflow; +} + +export interface AccessoryConfirm { + confirm?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; +} + +export interface DescriptionElement { + emoji?: boolean; + text?: string; + type?: DescriptionType; + verbatim?: boolean; +} + +export enum DescriptionType { + Mrkdwn = 'mrkdwn', + PlainText = 'plain_text', +} + +export interface AccessoryElement { + border?: number; + elements?: PurpleElement[]; + indent?: number; + offset?: number; + style?: string; + type?: AccessoryType; +} + +export interface PurpleElement { + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; + usergroup_id?: string; + value?: string; +} + +export interface Style { + bold?: boolean; + client_highlight?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + underline?: boolean; + unlink?: boolean; +} + +export enum PurpleType { + Broadcast = 'broadcast', + Channel = 'channel', + Color = 'color', + Date = 'date', + Emoji = 'emoji', + Link = 'link', + Team = 'team', + Text = 'text', + User = 'user', + Usergroup = 'usergroup', +} + +export enum AccessoryType { + Button = 'button', + ChannelsSelect = 'channels_select', + Checkboxes = 'checkboxes', + ConversationsSelect = 'conversations_select', + Datepicker = 'datepicker', + Datetimepicker = 'datetimepicker', + ExternalSelect = 'external_select', + Image = 'image', + MultiChannelsSelect = 'multi_channels_select', + MultiConversationsSelect = 'multi_conversations_select', + MultiExternalSelect = 'multi_external_select', + MultiStaticSelect = 'multi_static_select', + MultiUsersSelect = 'multi_users_select', + Overflow = 'overflow', + RadioButtons = 'radio_buttons', + RichTextList = 'rich_text_list', + RichTextPreformatted = 'rich_text_preformatted', + RichTextQuote = 'rich_text_quote', + RichTextSection = 'rich_text_section', + StaticSelect = 'static_select', + Timepicker = 'timepicker', + UsersSelect = 'users_select', + WorkflowButton = 'workflow_button', +} + +export interface AccessoryFilter { + exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: any[]; +} + +export interface InitialOptionElement { + description?: DescriptionElement; + text?: DescriptionElement; + url?: string; + value?: string; +} + +export interface AccessoryOptionGroup { + label?: DescriptionElement; + options?: InitialOptionElement[]; +} + +export interface SlackFile { + id?: string; + url?: string; +} + +export interface Workflow { + trigger?: Trigger; +} + +export interface Trigger { + customizable_input_parameters?: CustomizableInputParameter[]; + url?: string; +} + +export interface CustomizableInputParameter { + name?: string; + value?: string; +} + +export interface Call { + media_backend_type?: string; + v1?: V1; +} + +export interface V1 { + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; + desktop_app_join_url?: string; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; +} + +export interface Participant { + avatar_url?: string; + display_name?: string; + external_id?: string; + slack_id?: string; +} + +export interface AppIconUrls { + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; + image_original?: string; +} + +export interface FileElement { + access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; + alt_txt?: string; + app_id?: string; + app_name?: string; + app_provides_file_work_objects?: boolean; + attachments?: any[]; + blocks?: DescriptionBlockElement[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; + canvas_creator_id?: string; + canvas_default_agent_id?: string; + canvas_printing_enabled?: boolean; + canvas_readtime?: number; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + 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; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + inline_attachment_count?: number; + is_ai_suggested?: boolean; + is_channel_space?: boolean; + is_external?: boolean; + is_modified_by_ai?: boolean; + is_public?: boolean; + is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_csv_download_url?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; + private_channels_with_file_access_count?: number; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + skill_description?: string; + skipped_shares?: boolean; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + 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; + 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?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + 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?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + 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?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: DescriptionBlockElement[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; +} + +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + +export interface DescriptionBlockElement { + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + expand?: boolean; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; + sales_home_workflow_app_type?: number; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; +} + +export enum BlockType { + Actions = 'actions', + Context = 'context', + Divider = 'divider', + Image = 'image', + RichText = 'rich_text', + Section = 'section', + ShareShortcut = 'share_shortcut', + Video = 'video', +} + +export interface Cc { + address?: string; + name?: string; + original?: string; + slack_user_id?: string; +} + +export interface DmMpdmUsersWithFileAccess { + access?: string; + user_id?: string; +} + +export interface Favorite { + collection_id?: string; + collection_name?: string; + position?: string; +} + +export interface Headers { + date?: string; + in_reply_to?: string; + message_id?: string; + reply_to?: string; +} + +export interface InitialComment { + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; + timestamp?: number; + user?: string; +} + +export interface ListLimits { + archived_row_count?: number; + column_count?: number; + column_count_limit?: number; + max_attachments_per_cell?: number; + over_column_maximum?: boolean; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; +} + +export interface ListMetadata { + creation_source?: CreationSource; + default_view?: string; + description?: string; + description_blocks?: DescriptionBlockElement[]; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + subtask_schema?: any[]; + todo_mode?: boolean; + views?: View[]; +} + +export interface CreationSource { + reference_id?: string; + type?: string; + workflow_function_id?: string; +} + +export interface Schema { + id?: string; + is_primary_column?: boolean; + key?: string; + name?: string; + options?: ListSchemaOptions; + type?: string; +} + +export interface ListSchemaOptions { + canvas_id?: string; + canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + emoji_url?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; +} + +export interface CanvasPlaceholderMapping { + column?: string; + variable?: string; +} + +export interface Choice { + color?: string; + label?: string; + value?: string; +} + +export interface DefaultValueTyped { + channel?: any[]; + select?: string[]; + user?: any[]; +} + +export interface View { + calculations?: any[]; + columns?: Column[]; + created_by?: string; + date_created?: number; + default_view_key?: string; + filters?: FilterElement[]; + grouping?: Grouping; + id?: string; + info_column_filters?: any[]; + is_all_items_view?: boolean; + is_locked?: boolean; + is_template_initial_view?: boolean; + name?: string; + options?: ListViewOptions; + position?: string; + row_height?: number; + show_completed_items?: boolean; + sorts?: any[]; + stick_column_left?: boolean; + type?: string; +} + +export interface Column { + id?: string; + key?: string; + position?: string; + should_wrap_text?: boolean; + visible?: boolean; + width?: number; +} + +export interface FilterElement { + column_id?: string; + key?: string; + operator?: string; + typed_values?: any[]; + values?: string[]; +} + +export interface Grouping { + group_by?: string; + group_by_column_id?: string; + order?: any[]; +} + +export interface ListViewOptions { + calendar_field?: string; + cover_field?: string; + cover_fit?: string; +} + +export interface MediaProgress { + duration_ms?: number; + max_offset_ms?: number; + media_watched?: boolean; + offset_ms?: number; +} + +export interface Reaction { + count?: number; + name?: string; + url?: string; + users?: string[]; +} + +export interface Saved { + date_completed?: number; + date_due?: number; + is_archived?: boolean; + state?: string; +} + +export interface Shares { + private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; +} + +export interface Private { + access?: string; + channel_name?: string; + date_last_shared?: number; + is_silent_share?: boolean; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; + reply_users_count?: number; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; +} + +export interface Transcription { + locale?: string; + preview?: TranscriptionPreview; + status?: string; +} + +export interface TranscriptionPreview { + content?: string; + has_more?: boolean; +} + +export interface Attachment { + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: DescriptionBlockElement[]; + bot_id?: string; + bot_team_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + 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; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + media_type?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: AttachmentPreview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + slack_file_id?: string; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; +} + +export interface Action { + confirm?: ActionConfirm; + data_source?: string; + id?: string; + min_query_length?: number; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; + selected_options?: SelectedOptionElement[]; + style?: string; + text?: string; + type?: AccessoryType; + url?: string; + value?: string; +} + +export interface ActionConfirm { + dismiss_text?: string; + ok_text?: string; + text?: string; + title?: string; +} + +export interface ActionOptionGroup { + options?: SelectedOptionElement[]; + text?: string; +} + +export interface SelectedOptionElement { + text?: string; + value?: string; +} + +export interface AttachmentField { + short?: boolean; + title?: string; + value?: string; +} + +export interface List { + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; + private_channels_with_file_access_count?: number; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: Knocks; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; +} + +export type Knocks = {}; + +export interface PurpleListRecord { + record?: Record; + schema?: Schema[]; +} + +export interface Record { + fields?: RecordField[]; + record_id?: string; +} + +export interface RecordField { + attachment?: any[]; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + link?: any[]; + message?: Message; + number?: any[]; + phone?: any[]; + rating?: any[]; + reference?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; +} + +export interface Message { + agent_session?: AgentSession; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + attachments?: any[]; + blocks?: DescriptionBlockElement[]; + bot_id?: string; + bot_link?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: MessageFile; + files?: any[]; + hidden?: boolean; + icons?: MessageIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + language?: Language; + last_read?: string; + latest_reply?: string; + metadata?: MessageMetadata; + no_notifications?: boolean; + parent_user_id?: string; + permalink?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: Root; + streaming_state?: string; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; +} + +export interface AgentSession { + agent_bot_user_ids?: any[]; + agent_statuses?: any[]; + date_status_processing_expire?: number; + encoded_initiator_user_id?: string; + status?: string; + title?: string; +} + +export interface BotProfile { + app_id?: string; + deleted?: boolean; + icons?: ChannelEmailAddressIcons; + id?: string; + name?: string; + team_id?: string; + updated?: number; + user_id?: string; +} + +export interface Comment { + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + public_url_shared?: boolean; + size?: number; + timestamp?: string; + title?: string; + url_private?: string; + url_private_download?: boolean; + user?: string; + username?: string; +} + +export interface Edited { + ts?: string; + user?: string; +} + +export interface MessageFile { + access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; + alt_txt?: string; + app_id?: string; + app_name?: string; + app_provides_file_work_objects?: boolean; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; + canvas_creator_id?: string; + canvas_default_agent_id?: string; + canvas_printing_enabled?: boolean; + canvas_readtime?: number; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + 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; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + inline_attachment_count?: number; + is_ai_suggested?: boolean; + is_channel_space?: boolean; + is_external?: boolean; + is_modified_by_ai?: boolean; + is_public?: boolean; + is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_csv_download_url?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; + private_channels_with_file_access_count?: number; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Knocks; + show_badge?: boolean; + simplified_html?: string; + size?: number; + skill_description?: string; + skipped_shares?: boolean; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + 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; + 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?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + 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?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + 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?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; +} + +export interface MessageIcons { + emoji?: string; + image_36?: string; + image_48?: string; + image_64?: string; + image_72?: string; +} + +export interface Language { + is_reliable?: boolean; + locale?: string; +} + +export interface MessageMetadata { + event_type?: string; +} + +export interface Room { + app_id?: string; + attached_file_ids?: string[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + huddle_link?: string; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + knocks?: Knocks; + last_invite_status_by_user?: Knocks; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: string[]; + participants?: string[]; + participants_camera_off?: string[]; + participants_camera_on?: string[]; + participants_screenshare_off?: string[]; + participants_screenshare_on?: string[]; + pending_invitees?: Knocks; + recording?: Recording; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; +} + +export interface Recording { + can_record_summary?: string; + notetaking?: boolean; + summary?: boolean; + summary_status?: string; + transcript?: boolean; +} + +export interface Root { + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: MessageIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: Edited[]; + reply_count?: number; + reply_users?: string[]; + reply_users_count?: number; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; +} + +export interface ListRecordElement { + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; + updated_timestamp?: string; +} + +export interface PlatformRefs { + bot_created_by?: string; + bot_deleted_by?: string; + bot_updated_by?: string; +} + +export interface MessageBlock { + channel?: string; + message?: Message; + team?: string; + ts?: string; +} + +export interface AttachmentMetadata { + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_1024?: boolean; + thumb_1024_h?: number; + thumb_1024_w?: number; + thumb_160?: boolean; + thumb_360?: boolean; + thumb_360_h?: number; + thumb_360_w?: number; + thumb_480?: boolean; + thumb_480_h?: number; + thumb_480_w?: number; + thumb_64?: boolean; + thumb_720?: boolean; + thumb_720_h?: number; + thumb_720_w?: number; + thumb_80?: boolean; + thumb_800?: boolean; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: boolean; + thumb_960_h?: number; + thumb_960_w?: number; + thumb_tiny?: string; +} + +export interface AttachmentPreview { + can_remove?: boolean; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; +} + export interface Properties { + at_channel_restricted?: boolean; + at_here_restricted?: boolean; canvas?: Canvas; channel_workflows?: ChannelWorkflow[]; has_slack_connect_invite_created?: boolean; + huddles_restricted?: boolean; is_dormant?: boolean; meeting_notes?: MeetingNotes; posting_restricted_to?: RestrictedTo; diff --git a/packages/web-api/src/types/response/ConversationsOpenResponse.ts b/packages/web-api/src/types/response/ConversationsOpenResponse.ts index 3fe64836e..21643687b 100644 --- a/packages/web-api/src/types/response/ConversationsOpenResponse.ts +++ b/packages/web-api/src/types/response/ConversationsOpenResponse.ts @@ -112,6 +112,8 @@ export interface AssistantAppThreadBlock { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: Confirm; @@ -150,6 +152,7 @@ export interface Accessory { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } @@ -319,6 +322,12 @@ export interface AppIconUrls { export interface File { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -327,7 +336,9 @@ export interface File { blocks?: DescriptionBlockElement[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -373,6 +384,8 @@ export interface File { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -416,6 +429,7 @@ export interface File { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -487,6 +501,13 @@ export interface File { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface DescriptionBlockElement { accessory?: Accessory; alt_text?: string; diff --git a/packages/web-api/src/types/response/ConversationsRenameResponse.ts b/packages/web-api/src/types/response/ConversationsRenameResponse.ts index 8582c6c4b..5386c5fa0 100644 --- a/packages/web-api/src/types/response/ConversationsRenameResponse.ts +++ b/packages/web-api/src/types/response/ConversationsRenameResponse.ts @@ -43,6 +43,7 @@ export interface Channel { pending_connected_team_ids?: string[]; pending_shared?: string[]; previous_names?: string[]; + properties?: Properties; purpose?: Purpose; shared_team_ids?: string[]; topic?: Purpose; @@ -50,6 +51,8 @@ export interface Channel { updated?: number; } +export type Properties = {}; + export interface Purpose { creator?: string; last_set?: number; diff --git a/packages/web-api/src/types/response/ConversationsRepliesResponse.ts b/packages/web-api/src/types/response/ConversationsRepliesResponse.ts index 5b954f8a8..9e309cc5d 100644 --- a/packages/web-api/src/types/response/ConversationsRepliesResponse.ts +++ b/packages/web-api/src/types/response/ConversationsRepliesResponse.ts @@ -111,6 +111,8 @@ export interface AssistantAppThreadBlock { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: AccessoryConfirm; @@ -149,6 +151,7 @@ export interface Accessory { type?: AccessoryType; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } @@ -337,6 +340,12 @@ export interface AppIconUrls { export interface FileElement { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -345,7 +354,9 @@ export interface FileElement { blocks?: DescriptionBlockElement[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -391,6 +402,8 @@ export interface FileElement { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -434,6 +447,7 @@ export interface FileElement { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -505,6 +519,13 @@ export interface FileElement { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface DescriptionBlockElement { accessory?: Accessory; alt_text?: string; @@ -827,6 +848,7 @@ export interface Attachment { list_schema?: Schema[]; list_view?: View; list_view_id?: string; + media_type?: string; message_blocks?: MessageBlock[]; metadata?: AttachmentMetadata; mimetype?: string; @@ -1031,6 +1053,7 @@ export interface AgentSession { agent_bot_user_ids?: any[]; agent_statuses?: any[]; date_status_processing_expire?: number; + encoded_initiator_user_id?: string; status?: string; title?: string; } @@ -1095,6 +1118,12 @@ export interface Edited { export interface PurpleFile { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -1103,7 +1132,9 @@ export interface PurpleFile { blocks?: any[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -1149,6 +1180,8 @@ export interface PurpleFile { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -1192,6 +1225,7 @@ export interface PurpleFile { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -1384,11 +1418,27 @@ export interface AttachmentMetadata { original_h?: number; original_w?: number; rotation?: number; + thumb_1024?: boolean; + thumb_1024_h?: number; + thumb_1024_w?: number; thumb_160?: boolean; + thumb_360?: boolean; thumb_360_h?: number; thumb_360_w?: number; + thumb_480?: boolean; + thumb_480_h?: number; + thumb_480_w?: number; thumb_64?: boolean; + thumb_720?: boolean; + thumb_720_h?: number; + thumb_720_w?: number; thumb_80?: boolean; + thumb_800?: boolean; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: boolean; + thumb_960_h?: number; + thumb_960_w?: number; thumb_tiny?: string; } diff --git a/packages/web-api/src/types/response/ConversationsSetPurposeResponse.ts b/packages/web-api/src/types/response/ConversationsSetPurposeResponse.ts index cc5d0d45c..9991ad02b 100644 --- a/packages/web-api/src/types/response/ConversationsSetPurposeResponse.ts +++ b/packages/web-api/src/types/response/ConversationsSetPurposeResponse.ts @@ -40,6 +40,7 @@ export interface Channel { pending_connected_team_ids?: string[]; pending_shared?: string[]; previous_names?: string[]; + properties?: Properties; purpose?: Purpose; shared_team_ids?: string[]; topic?: Purpose; @@ -47,6 +48,8 @@ export interface Channel { updated?: number; } +export type Properties = {}; + export interface Purpose { creator?: string; last_set?: number; diff --git a/packages/web-api/src/types/response/ConversationsSetTopicResponse.ts b/packages/web-api/src/types/response/ConversationsSetTopicResponse.ts index 845b5115d..66f94f1a3 100644 --- a/packages/web-api/src/types/response/ConversationsSetTopicResponse.ts +++ b/packages/web-api/src/types/response/ConversationsSetTopicResponse.ts @@ -40,6 +40,7 @@ export interface Channel { pending_connected_team_ids?: string[]; pending_shared?: string[]; previous_names?: string[]; + properties?: Properties; purpose?: Purpose; shared_team_ids?: string[]; topic?: Purpose; @@ -47,6 +48,8 @@ export interface Channel { updated?: number; } +export type Properties = {}; + export interface Purpose { creator?: string; last_set?: number; diff --git a/packages/web-api/src/types/response/FilesInfoResponse.ts b/packages/web-api/src/types/response/FilesInfoResponse.ts index 682f706f5..0bc3332d2 100644 --- a/packages/web-api/src/types/response/FilesInfoResponse.ts +++ b/packages/web-api/src/types/response/FilesInfoResponse.ts @@ -14,6 +14,7 @@ export type FilesInfoResponse = WebAPICallResult & { content_highlight_css?: string; content_highlight_html?: string; content_highlight_html_truncated?: boolean; + content_html?: string; error?: string; file?: File; is_truncated?: boolean; @@ -37,13 +38,21 @@ export interface Comment { export interface File { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; app_provides_file_work_objects?: boolean; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -89,6 +98,8 @@ export interface File { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -132,6 +143,7 @@ export interface File { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -203,6 +215,13 @@ export interface File { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface Cc { address?: string; name?: string; @@ -307,6 +326,8 @@ export interface Block { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: Confirm; @@ -345,6 +366,7 @@ export interface Accessory { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } diff --git a/packages/web-api/src/types/response/FilesListResponse.ts b/packages/web-api/src/types/response/FilesListResponse.ts index d4ee0b2cd..1297e02e0 100644 --- a/packages/web-api/src/types/response/FilesListResponse.ts +++ b/packages/web-api/src/types/response/FilesListResponse.ts @@ -20,13 +20,21 @@ export type FilesListResponse = WebAPICallResult & { export interface File { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; app_provides_file_work_objects?: boolean; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -72,6 +80,8 @@ export interface File { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -115,6 +125,7 @@ export interface File { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -186,6 +197,13 @@ export interface File { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface Cc { address?: string; name?: string; @@ -300,6 +318,8 @@ export interface Block { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: Confirm; @@ -338,6 +358,7 @@ export interface Accessory { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } diff --git a/packages/web-api/src/types/response/FilesRemoteAddResponse.ts b/packages/web-api/src/types/response/FilesRemoteAddResponse.ts index 0335b9804..5256a4ae2 100644 --- a/packages/web-api/src/types/response/FilesRemoteAddResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteAddResponse.ts @@ -19,13 +19,21 @@ export type FilesRemoteAddResponse = WebAPICallResult & { export interface File { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; app_provides_file_work_objects?: boolean; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -71,6 +79,8 @@ export interface File { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -114,6 +124,7 @@ export interface File { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -185,6 +196,13 @@ export interface File { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface Cc { address?: string; name?: string; @@ -299,6 +317,8 @@ export interface Block { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: Confirm; @@ -337,6 +357,7 @@ export interface Accessory { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } diff --git a/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts b/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts index 6f9dc73b4..499df5ef4 100644 --- a/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts @@ -19,13 +19,21 @@ export type FilesRemoteInfoResponse = WebAPICallResult & { export interface File { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; app_provides_file_work_objects?: boolean; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -71,6 +79,8 @@ export interface File { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -114,6 +124,7 @@ export interface File { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -185,6 +196,13 @@ export interface File { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface Cc { address?: string; name?: string; @@ -299,6 +317,8 @@ export interface Block { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: Confirm; @@ -337,6 +357,7 @@ export interface Accessory { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } diff --git a/packages/web-api/src/types/response/FilesRemoteListResponse.ts b/packages/web-api/src/types/response/FilesRemoteListResponse.ts index de22d9d3d..34867d256 100644 --- a/packages/web-api/src/types/response/FilesRemoteListResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteListResponse.ts @@ -20,13 +20,21 @@ export type FilesRemoteListResponse = WebAPICallResult & { export interface File { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; app_provides_file_work_objects?: boolean; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -72,6 +80,8 @@ export interface File { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -115,6 +125,7 @@ export interface File { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -186,6 +197,13 @@ export interface File { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface Cc { address?: string; name?: string; @@ -300,6 +318,8 @@ export interface Block { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: Confirm; @@ -338,6 +358,7 @@ export interface Accessory { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } diff --git a/packages/web-api/src/types/response/FilesRemoteShareResponse.ts b/packages/web-api/src/types/response/FilesRemoteShareResponse.ts index 350d2524b..ea07db30b 100644 --- a/packages/web-api/src/types/response/FilesRemoteShareResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteShareResponse.ts @@ -19,13 +19,21 @@ export type FilesRemoteShareResponse = WebAPICallResult & { export interface File { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; app_provides_file_work_objects?: boolean; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -71,6 +79,8 @@ export interface File { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -114,6 +124,7 @@ export interface File { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -185,6 +196,13 @@ export interface File { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface Cc { address?: string; name?: string; @@ -299,6 +317,8 @@ export interface Block { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: Confirm; @@ -337,6 +357,7 @@ export interface Accessory { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } diff --git a/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts b/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts index 6f9018412..063bcbbf9 100644 --- a/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts @@ -19,13 +19,21 @@ export type FilesRemoteUpdateResponse = WebAPICallResult & { export interface File { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; app_provides_file_work_objects?: boolean; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -71,6 +79,8 @@ export interface File { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -114,6 +124,7 @@ export interface File { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -185,6 +196,13 @@ export interface File { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface Cc { address?: string; name?: string; @@ -299,6 +317,8 @@ export interface Block { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: Confirm; @@ -337,6 +357,7 @@ export interface Accessory { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } diff --git a/packages/web-api/src/types/response/PinsListResponse.ts b/packages/web-api/src/types/response/PinsListResponse.ts index 6515d0e4e..6d67326d2 100644 --- a/packages/web-api/src/types/response/PinsListResponse.ts +++ b/packages/web-api/src/types/response/PinsListResponse.ts @@ -29,6 +29,12 @@ export interface Item { export interface FileElement { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -37,7 +43,9 @@ export interface FileElement { blocks?: TitleBlockElement[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -83,6 +91,8 @@ export interface FileElement { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -126,6 +136,7 @@ export interface FileElement { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -197,6 +208,13 @@ export interface FileElement { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface TitleBlockElement { accessory?: Accessory; alt_text?: string; @@ -240,6 +258,8 @@ export interface TitleBlockElement { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: AccessoryConfirm; @@ -278,6 +298,7 @@ export interface Accessory { type?: AccessoryType; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } @@ -655,6 +676,7 @@ export interface TranscriptionPreview { } export interface ItemMessage { + agent_session?: PurpleAgentSession; app_id?: string; attachments?: Attachment[]; blocks?: PurpleBlock[]; @@ -664,6 +686,7 @@ export interface ItemMessage { display_as_bot?: boolean; files?: FileElement[]; is_locked?: boolean; + language?: Language; latest_reply?: string; parent_user_id?: string; permalink?: string; @@ -682,6 +705,18 @@ export interface ItemMessage { user?: string; } +export interface PurpleAgentSession { + agent_bot_user_ids?: string[]; + agent_statuses?: AgentStatus[]; + status?: string; +} + +export interface AgentStatus { + agent_bot_user_id?: string; + is_stoppable?: boolean; + status?: string; +} + export interface Attachment { actions?: Action[]; app_id?: string; @@ -727,6 +762,7 @@ export interface Attachment { list_schema?: Schema[]; list_view?: View; list_view_id?: string; + media_type?: string; message_blocks?: MessageBlock[]; metadata?: AttachmentMetadata; mimetype?: string; @@ -869,7 +905,7 @@ export interface RecordField { } export interface FieldMessage { - agent_session?: AgentSession; + agent_session?: FluffyAgentSession; app_id?: string; assistant_app_thread?: AssistantAppThread; attachments?: any[]; @@ -927,10 +963,11 @@ export interface FieldMessage { x_files?: any[]; } -export interface AgentSession { +export interface FluffyAgentSession { agent_bot_user_ids?: any[]; agent_statuses?: any[]; date_status_processing_expire?: number; + encoded_initiator_user_id?: string; status?: string; title?: string; } @@ -1001,6 +1038,12 @@ export interface Edited { export interface PurpleFile { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -1009,7 +1052,9 @@ export interface PurpleFile { blocks?: any[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -1055,6 +1100,8 @@ export interface PurpleFile { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -1098,6 +1145,7 @@ export interface PurpleFile { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -1293,11 +1341,27 @@ export interface AttachmentMetadata { original_h?: number; original_w?: number; rotation?: number; + thumb_1024?: boolean; + thumb_1024_h?: number; + thumb_1024_w?: number; thumb_160?: boolean; + thumb_360?: boolean; thumb_360_h?: number; thumb_360_w?: number; + thumb_480?: boolean; + thumb_480_h?: number; + thumb_480_w?: number; thumb_64?: boolean; + thumb_720?: boolean; + thumb_720_h?: number; + thumb_720_w?: number; thumb_80?: boolean; + thumb_800?: boolean; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: boolean; + thumb_960_h?: number; + thumb_960_w?: number; thumb_tiny?: string; } diff --git a/packages/web-api/src/types/response/ReactionsGetResponse.ts b/packages/web-api/src/types/response/ReactionsGetResponse.ts index c7bf41454..88f2e6d4e 100644 --- a/packages/web-api/src/types/response/ReactionsGetResponse.ts +++ b/packages/web-api/src/types/response/ReactionsGetResponse.ts @@ -96,6 +96,8 @@ export interface AssistantAppThreadBlock { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: Confirm; @@ -134,6 +136,7 @@ export interface Accessory { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } @@ -303,6 +306,12 @@ export interface AppIconUrls { export interface File { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -311,7 +320,9 @@ export interface File { blocks?: DescriptionBlockElement[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -357,6 +368,8 @@ export interface File { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -400,6 +413,7 @@ export interface File { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -471,6 +485,13 @@ export interface File { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface DescriptionBlockElement { accessory?: Accessory; alt_text?: string; diff --git a/packages/web-api/src/types/response/ReactionsListResponse.ts b/packages/web-api/src/types/response/ReactionsListResponse.ts index a67a5434f..31b78bb99 100644 --- a/packages/web-api/src/types/response/ReactionsListResponse.ts +++ b/packages/web-api/src/types/response/ReactionsListResponse.ts @@ -122,6 +122,8 @@ export interface AssistantAppThreadBlock { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: AccessoryConfirm; @@ -160,6 +162,7 @@ export interface Accessory { type?: AccessoryType; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } @@ -348,6 +351,12 @@ export interface AppIconUrls { export interface FileElement { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -356,7 +365,9 @@ export interface FileElement { blocks?: DescriptionBlockElement[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -402,6 +413,8 @@ export interface FileElement { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -445,6 +458,7 @@ export interface FileElement { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -516,6 +530,13 @@ export interface FileElement { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface DescriptionBlockElement { accessory?: Accessory; alt_text?: string; @@ -838,6 +859,7 @@ export interface Attachment { list_schema?: Schema[]; list_view?: View; list_view_id?: string; + media_type?: string; message_blocks?: MessageBlock[]; metadata?: AttachmentMetadata; mimetype?: string; @@ -1042,6 +1064,7 @@ export interface AgentSession { agent_bot_user_ids?: any[]; agent_statuses?: any[]; date_status_processing_expire?: number; + encoded_initiator_user_id?: string; status?: string; title?: string; } @@ -1106,6 +1129,12 @@ export interface Edited { export interface PurpleFile { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -1114,7 +1143,9 @@ export interface PurpleFile { blocks?: any[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -1160,6 +1191,8 @@ export interface PurpleFile { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -1203,6 +1236,7 @@ export interface PurpleFile { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -1398,11 +1432,27 @@ export interface AttachmentMetadata { original_h?: number; original_w?: number; rotation?: number; + thumb_1024?: boolean; + thumb_1024_h?: number; + thumb_1024_w?: number; thumb_160?: boolean; + thumb_360?: boolean; thumb_360_h?: number; thumb_360_w?: number; + thumb_480?: boolean; + thumb_480_h?: number; + thumb_480_w?: number; thumb_64?: boolean; + thumb_720?: boolean; + thumb_720_h?: number; + thumb_720_w?: number; thumb_80?: boolean; + thumb_800?: boolean; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: boolean; + thumb_960_h?: number; + thumb_960_w?: number; thumb_tiny?: string; } diff --git a/packages/web-api/src/types/response/SearchAllResponse.ts b/packages/web-api/src/types/response/SearchAllResponse.ts index 0f44e280d..150bc73ad 100644 --- a/packages/web-api/src/types/response/SearchAllResponse.ts +++ b/packages/web-api/src/types/response/SearchAllResponse.ts @@ -31,7 +31,9 @@ export interface FilesMatch { access?: string; attachments?: Attachment[]; bot_id?: string; + canvas_creator_id?: CanvasCreatorid; canvas_printing_enabled?: boolean; + canvas_readtime?: number; cc?: Cc[]; channels?: string[]; comments_count?: number; @@ -59,13 +61,14 @@ export interface FilesMatch { id?: string; image_exif_rotation?: number; ims?: string[]; + is_ai_suggested?: boolean; is_channel_space?: boolean; is_external?: boolean; is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; is_starred?: boolean; - last_editor?: LastEditor; + last_editor?: CanvasCreatorid; lines?: number; lines_more?: number; linked_channel_id?: string; @@ -92,6 +95,7 @@ export interface FilesMatch { quip_thread_id?: string; sent_to_self?: boolean; shares?: MatchShares; + show_badge?: boolean; size?: number; subject?: string; team_pref_version_history_enabled?: boolean; @@ -133,8 +137,8 @@ export interface FilesMatch { url_private?: string; url_private_download?: string; url_static_preview?: string; - user?: LastEditor; - user_team?: string; + user?: CanvasCreatorid; + user_team?: UserTeam; username?: string; } @@ -183,6 +187,7 @@ export interface Attachment { list_schema?: Schema[]; list_view?: View; list_view_id?: string; + media_type?: string; message_blocks?: MessageBlock[]; metadata?: AttachmentMetadata; mimetype?: string; @@ -312,6 +317,8 @@ export interface DescriptionBlockElement { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: AccessoryConfirm; @@ -350,6 +357,7 @@ export interface Accessory { type?: ActionType; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } @@ -482,6 +490,12 @@ export interface AttachmentField { export interface FileElement { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -490,7 +504,9 @@ export interface FileElement { blocks?: DescriptionBlockElement[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -536,6 +552,8 @@ export interface FileElement { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -579,6 +597,7 @@ export interface FileElement { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -650,6 +669,13 @@ export interface FileElement { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface Cc { address?: string; name?: string; @@ -659,10 +685,10 @@ export interface Cc { export interface DmMpdmUsersWithFileAccess { access?: string; - user_id?: LastEditor; + user_id?: CanvasCreatorid; } -export enum LastEditor { +export enum CanvasCreatorid { Empty = '', U00000000 = 'U00000000', } @@ -850,11 +876,11 @@ export interface Saved { } export interface FileShares { - private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + private?: { [key: string]: Public[] }; + public?: { [key: string]: Public[] }; } -export interface Private { +export interface Public { access?: string; channel_name?: string; date_last_shared?: number; @@ -863,11 +889,21 @@ export interface Private { reply_count?: number; reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; + share_user_id?: CanvasCreatorid; source?: string; - team_id?: string; + team_id?: UserTeam; thread_ts?: string; - ts?: string; + ts?: Ts; +} + +export enum UserTeam { + Empty = '', + T00000000 = 'T00000000', +} + +export enum Ts { + Empty = '', + The0000000000000000 = '0000000000.000000', } export interface Transcription { @@ -1019,6 +1055,7 @@ export interface AgentSession { agent_bot_user_ids?: any[]; agent_statuses?: any[]; date_status_processing_expire?: number; + encoded_initiator_user_id?: string; status?: string; title?: string; } @@ -1089,6 +1126,12 @@ export interface Edited { export interface MessageFile { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -1097,7 +1140,9 @@ export interface MessageFile { blocks?: any[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -1143,6 +1188,8 @@ export interface MessageFile { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -1186,6 +1233,7 @@ export interface MessageFile { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -1378,11 +1426,27 @@ export interface AttachmentMetadata { original_h?: number; original_w?: number; rotation?: number; + thumb_1024?: boolean; + thumb_1024_h?: number; + thumb_1024_w?: number; thumb_160?: boolean; + thumb_360?: boolean; thumb_360_h?: number; thumb_360_w?: number; + thumb_480?: boolean; + thumb_480_h?: number; + thumb_480_w?: number; thumb_64?: boolean; + thumb_720?: boolean; + thumb_720_h?: number; + thumb_720_w?: number; thumb_80?: boolean; + thumb_800?: boolean; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: boolean; + thumb_960_h?: number; + thumb_960_w?: number; thumb_tiny?: string; } @@ -1399,19 +1463,15 @@ export interface MatchHeaders { } export interface MatchShares { + private?: { [key: string]: Private[] }; public?: { [key: string]: Public[] }; } -export interface Public { - access?: string; - channel_name?: string; - reply_count?: number; - reply_users?: string[]; - reply_users_count?: number; - share_user_id?: LastEditor; +export interface Private { + is_silent_share?: boolean; + share_user_id?: CanvasCreatorid; source?: string; - team_id?: string; - ts?: string; + ts?: Ts; } export interface MatchTitleBlock { @@ -1549,11 +1609,11 @@ export interface MessagesMatch { previous?: Previous; previous_2?: Previous; score?: number; - team?: string; + team?: UserTeam; text?: string; - ts?: string; + ts?: Ts; type?: string; - user?: LastEditor; + user?: CanvasCreatorid; username?: string; } @@ -1573,7 +1633,7 @@ export interface Channel { name?: string; name_normalized?: string; pending_shared?: string[]; - user?: LastEditor; + user?: CanvasCreatorid; } export interface Previous { @@ -1582,9 +1642,9 @@ export interface Previous { iid?: string; permalink?: string; text?: string; - ts?: string; + ts?: Ts; type?: string; - user?: LastEditor; + user?: CanvasCreatorid; username?: string; } diff --git a/packages/web-api/src/types/response/SearchFilesResponse.ts b/packages/web-api/src/types/response/SearchFilesResponse.ts index c4a63be8a..27180c237 100644 --- a/packages/web-api/src/types/response/SearchFilesResponse.ts +++ b/packages/web-api/src/types/response/SearchFilesResponse.ts @@ -29,7 +29,9 @@ export interface Match { access?: string; attachments?: Attachment[]; bot_id?: string; + canvas_creator_id?: CanvasCreatorid; canvas_printing_enabled?: boolean; + canvas_readtime?: number; cc?: Cc[]; channels?: string[]; comments_count?: number; @@ -57,13 +59,14 @@ export interface Match { id?: string; image_exif_rotation?: number; ims?: string[]; + is_ai_suggested?: boolean; is_channel_space?: boolean; is_external?: boolean; is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; is_starred?: boolean; - last_editor?: string; + last_editor?: CanvasCreatorid; lines?: number; lines_more?: number; linked_channel_id?: string; @@ -90,6 +93,7 @@ export interface Match { quip_thread_id?: string; sent_to_self?: boolean; shares?: MatchShares; + show_badge?: boolean; size?: number; subject?: string; team_pref_version_history_enabled?: boolean; @@ -131,8 +135,8 @@ export interface Match { url_private?: string; url_private_download?: string; url_static_preview?: string; - user?: string; - user_team?: string; + user?: CanvasCreatorid; + user_team?: UserTeam; username?: string; } @@ -181,6 +185,7 @@ export interface Attachment { list_schema?: Schema[]; list_view?: View; list_view_id?: string; + media_type?: string; message_blocks?: MessageBlock[]; metadata?: AttachmentMetadata; mimetype?: string; @@ -284,6 +289,8 @@ export interface Block { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: AccessoryConfirm; @@ -322,6 +329,7 @@ export interface Accessory { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } @@ -461,6 +469,12 @@ export interface AttachmentField { export interface FileElement { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -469,7 +483,9 @@ export interface FileElement { blocks?: Block[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -515,6 +531,8 @@ export interface FileElement { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -558,6 +576,7 @@ export interface FileElement { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -629,6 +648,13 @@ export interface FileElement { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface Cc { address?: string; name?: string; @@ -638,7 +664,12 @@ export interface Cc { export interface DmMpdmUsersWithFileAccess { access?: string; - user_id?: string; + user_id?: CanvasCreatorid; +} + +export enum CanvasCreatorid { + Empty = '', + U00000000 = 'U00000000', } export interface Favorite { @@ -824,11 +855,11 @@ export interface Saved { } export interface PurpleShares { - private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + private?: { [key: string]: Public[] }; + public?: { [key: string]: Public[] }; } -export interface Private { +export interface Public { access?: string; channel_name?: string; date_last_shared?: number; @@ -837,11 +868,21 @@ export interface Private { reply_count?: number; reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; + share_user_id?: CanvasCreatorid; source?: string; - team_id?: string; + team_id?: UserTeam; thread_ts?: string; - ts?: string; + ts?: Ts; +} + +export enum UserTeam { + Empty = '', + T00000000 = 'T00000000', +} + +export enum Ts { + Empty = '', + The0000000000000000 = '0000000000.000000', } export interface Transcription { @@ -993,6 +1034,7 @@ export interface AgentSession { agent_bot_user_ids?: any[]; agent_statuses?: any[]; date_status_processing_expire?: number; + encoded_initiator_user_id?: string; status?: string; title?: string; } @@ -1063,6 +1105,12 @@ export interface Edited { export interface MessageFile { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -1071,7 +1119,9 @@ export interface MessageFile { blocks?: any[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -1117,6 +1167,8 @@ export interface MessageFile { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -1160,6 +1212,7 @@ export interface MessageFile { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -1352,11 +1405,27 @@ export interface AttachmentMetadata { original_h?: number; original_w?: number; rotation?: number; + thumb_1024?: boolean; + thumb_1024_h?: number; + thumb_1024_w?: number; thumb_160?: boolean; + thumb_360?: boolean; thumb_360_h?: number; thumb_360_w?: number; + thumb_480?: boolean; + thumb_480_h?: number; + thumb_480_w?: number; thumb_64?: boolean; + thumb_720?: boolean; + thumb_720_h?: number; + thumb_720_w?: number; thumb_80?: boolean; + thumb_800?: boolean; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: boolean; + thumb_960_h?: number; + thumb_960_w?: number; thumb_tiny?: string; } @@ -1373,19 +1442,15 @@ export interface MatchHeaders { } export interface MatchShares { + private?: { [key: string]: Private[] }; public?: { [key: string]: Public[] }; } -export interface Public { - access?: string; - channel_name?: string; - reply_count?: number; - reply_users?: string[]; - reply_users_count?: number; - share_user_id?: string; +export interface Private { + is_silent_share?: boolean; + share_user_id?: CanvasCreatorid; source?: string; - team_id?: string; - ts?: string; + ts?: Ts; } export interface TitleBlock { diff --git a/packages/web-api/src/types/response/SearchMessagesResponse.ts b/packages/web-api/src/types/response/SearchMessagesResponse.ts index 180e69561..100875aec 100644 --- a/packages/web-api/src/types/response/SearchMessagesResponse.ts +++ b/packages/web-api/src/types/response/SearchMessagesResponse.ts @@ -91,6 +91,7 @@ export interface Attachment { list_schema?: Schema[]; list_view?: View; list_view_id?: string; + media_type?: string; message_blocks?: MessageBlock[]; metadata?: AttachmentMetadata; mimetype?: string; @@ -220,6 +221,8 @@ export interface TitleBlockElement { export interface Accessory { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; border?: number; confirm?: AccessoryConfirm; @@ -258,6 +261,7 @@ export interface Accessory { type?: ActionType; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } @@ -390,6 +394,12 @@ export interface AttachmentField { export interface FileElement { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -398,7 +408,9 @@ export interface FileElement { blocks?: TitleBlockElement[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -444,6 +456,8 @@ export interface FileElement { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -487,6 +501,7 @@ export interface FileElement { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -558,6 +573,13 @@ export interface FileElement { vtt?: string; } +export interface AiSummary { + content?: string; + id?: string; + status?: string; + unfurl_enabled?: boolean; +} + export interface Cc { address?: string; name?: string; @@ -922,6 +944,7 @@ export interface AgentSession { agent_bot_user_ids?: any[]; agent_statuses?: any[]; date_status_processing_expire?: number; + encoded_initiator_user_id?: string; status?: string; title?: string; } @@ -992,6 +1015,12 @@ export interface Edited { export interface MessageFile { access?: string; + ai_skill_example_prompts?: any[]; + ai_skill_library_count?: number; + ai_skill_mcp_servers?: any[]; + ai_skill_share_link_count?: number; + ai_skill_usage_count?: number; + ai_summary?: AiSummary; alt_txt?: string; app_id?: string; app_name?: string; @@ -1000,7 +1029,9 @@ export interface MessageFile { blocks?: any[]; bot_id?: string; can_toggle_canvas_lock?: boolean; + canvas_agent_creator_id?: string; canvas_creator_id?: string; + canvas_default_agent_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; canvas_template_mode?: string; @@ -1046,6 +1077,8 @@ export interface MessageFile { is_modified_by_ai?: boolean; is_public?: boolean; is_restricted_sharing_enabled?: boolean; + is_skill?: boolean; + is_skill_admin_deactivated?: boolean; is_starred?: boolean; last_editor?: string; last_read?: number; @@ -1089,6 +1122,7 @@ export interface MessageFile { show_badge?: boolean; simplified_html?: string; size?: number; + skill_description?: string; skipped_shares?: boolean; source_team?: string; subject?: string; @@ -1281,11 +1315,27 @@ export interface AttachmentMetadata { original_h?: number; original_w?: number; rotation?: number; + thumb_1024?: boolean; + thumb_1024_h?: number; + thumb_1024_w?: number; thumb_160?: boolean; + thumb_360?: boolean; thumb_360_h?: number; thumb_360_w?: number; + thumb_480?: boolean; + thumb_480_h?: number; + thumb_480_w?: number; thumb_64?: boolean; + thumb_720?: boolean; + thumb_720_h?: number; + thumb_720_w?: number; thumb_80?: boolean; + thumb_800?: boolean; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: boolean; + thumb_960_h?: number; + thumb_960_w?: number; thumb_tiny?: string; } diff --git a/packages/web-api/src/types/response/UsersListResponse.ts b/packages/web-api/src/types/response/UsersListResponse.ts index d2a63c584..3ea58d2d4 100644 --- a/packages/web-api/src/types/response/UsersListResponse.ts +++ b/packages/web-api/src/types/response/UsersListResponse.ts @@ -34,6 +34,7 @@ export interface Member { is_owner?: boolean; is_primary_owner?: boolean; is_restricted?: boolean; + is_seamless_enabled_app_bot?: boolean; is_ultra_restricted?: boolean; is_workflow_bot?: boolean; locale?: string; diff --git a/packages/web-api/src/types/response/ViewsOpenResponse.ts b/packages/web-api/src/types/response/ViewsOpenResponse.ts index b76d6f797..8abea8027 100644 --- a/packages/web-api/src/types/response/ViewsOpenResponse.ts +++ b/packages/web-api/src/types/response/ViewsOpenResponse.ts @@ -115,6 +115,8 @@ export enum CloseType { export interface PurpleElement { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; confirm?: Confirm; default_to_current_conversation?: boolean; @@ -151,6 +153,7 @@ export interface PurpleElement { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; } export interface Confirm { @@ -254,6 +257,8 @@ export interface OptionGroup { export interface StickyElement { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; confirm?: Confirm; default_to_current_conversation?: boolean; @@ -288,6 +293,7 @@ export interface StickyElement { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } diff --git a/packages/web-api/src/types/response/ViewsPublishResponse.ts b/packages/web-api/src/types/response/ViewsPublishResponse.ts index baa342a9c..209f9a369 100644 --- a/packages/web-api/src/types/response/ViewsPublishResponse.ts +++ b/packages/web-api/src/types/response/ViewsPublishResponse.ts @@ -115,6 +115,8 @@ export enum CloseType { export interface PurpleElement { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; confirm?: Confirm; default_to_current_conversation?: boolean; @@ -151,6 +153,7 @@ export interface PurpleElement { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; } export interface Confirm { @@ -254,6 +257,8 @@ export interface OptionGroup { export interface StickyElement { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; confirm?: Confirm; default_to_current_conversation?: boolean; @@ -288,6 +293,7 @@ export interface StickyElement { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } diff --git a/packages/web-api/src/types/response/ViewsPushResponse.ts b/packages/web-api/src/types/response/ViewsPushResponse.ts index 53ebaa5f0..10de475ee 100644 --- a/packages/web-api/src/types/response/ViewsPushResponse.ts +++ b/packages/web-api/src/types/response/ViewsPushResponse.ts @@ -115,6 +115,8 @@ export enum CloseType { export interface PurpleElement { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; confirm?: Confirm; default_to_current_conversation?: boolean; @@ -151,6 +153,7 @@ export interface PurpleElement { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; } export interface Confirm { @@ -254,6 +257,8 @@ export interface OptionGroup { export interface StickyElement { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; confirm?: Confirm; default_to_current_conversation?: boolean; @@ -288,6 +293,7 @@ export interface StickyElement { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } diff --git a/packages/web-api/src/types/response/ViewsUpdateResponse.ts b/packages/web-api/src/types/response/ViewsUpdateResponse.ts index 92416d632..39abe9d37 100644 --- a/packages/web-api/src/types/response/ViewsUpdateResponse.ts +++ b/packages/web-api/src/types/response/ViewsUpdateResponse.ts @@ -115,6 +115,8 @@ export enum CloseType { export interface PurpleElement { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; confirm?: Confirm; default_to_current_conversation?: boolean; @@ -151,6 +153,7 @@ export interface PurpleElement { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; } export interface Confirm { @@ -254,6 +257,8 @@ export interface OptionGroup { export interface StickyElement { accessibility_label?: string; action_id?: string; + agent_prompt?: string; + agent_prompt_display?: string; alt_text?: string; confirm?: Confirm; default_to_current_conversation?: boolean; @@ -288,6 +293,7 @@ export interface StickyElement { type?: string; url?: string; value?: string; + visible_to_user_ids?: any[]; workflow?: Workflow; } From 3bc1c911fa527fa63813e93dab00bc2c9b8a345d Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Thu, 19 Nov 2026 17:47:01 -0800 Subject: [PATCH 2/7] chore: add a minor changeset for the response types update Co-Authored-By: Claude --- .changeset/web-api-response-types.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/web-api-response-types.md diff --git a/.changeset/web-api-response-types.md b/.changeset/web-api-response-types.md new file mode 100644 index 000000000..af7b10a62 --- /dev/null +++ b/.changeset/web-api-response-types.md @@ -0,0 +1,5 @@ +--- +"@slack/web-api": minor +--- + +feat(web-api): update Web API response types from the latest `java-slack-sdk` response samples From b2b3d3a6c4832e675a314a9d029f7d6bb0d3fe0d Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Thu, 19 Nov 2026 19:27:52 -0800 Subject: [PATCH 3/7] fix(web-api): keep search.all and search.files ID fields as strings Co-Authored-By: Claude --- .../src/types/response/SearchAllResponse.ts | 47 +++++++------------ .../src/types/response/SearchFilesResponse.ts | 35 ++++---------- 2 files changed, 26 insertions(+), 56 deletions(-) diff --git a/packages/web-api/src/types/response/SearchAllResponse.ts b/packages/web-api/src/types/response/SearchAllResponse.ts index 150bc73ad..53fd07bd5 100644 --- a/packages/web-api/src/types/response/SearchAllResponse.ts +++ b/packages/web-api/src/types/response/SearchAllResponse.ts @@ -31,7 +31,7 @@ export interface FilesMatch { access?: string; attachments?: Attachment[]; bot_id?: string; - canvas_creator_id?: CanvasCreatorid; + canvas_creator_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; cc?: Cc[]; @@ -68,7 +68,7 @@ export interface FilesMatch { is_public?: boolean; is_restricted_sharing_enabled?: boolean; is_starred?: boolean; - last_editor?: CanvasCreatorid; + last_editor?: string; lines?: number; lines_more?: number; linked_channel_id?: string; @@ -137,8 +137,8 @@ export interface FilesMatch { url_private?: string; url_private_download?: string; url_static_preview?: string; - user?: CanvasCreatorid; - user_team?: UserTeam; + user?: string; + user_team?: string; username?: string; } @@ -685,12 +685,7 @@ export interface Cc { export interface DmMpdmUsersWithFileAccess { access?: string; - user_id?: CanvasCreatorid; -} - -export enum CanvasCreatorid { - Empty = '', - U00000000 = 'U00000000', + user_id?: string; } export interface Favorite { @@ -889,21 +884,11 @@ export interface Public { reply_count?: number; reply_users?: string[]; reply_users_count?: number; - share_user_id?: CanvasCreatorid; + share_user_id?: string; source?: string; - team_id?: UserTeam; + team_id?: string; thread_ts?: string; - ts?: Ts; -} - -export enum UserTeam { - Empty = '', - T00000000 = 'T00000000', -} - -export enum Ts { - Empty = '', - The0000000000000000 = '0000000000.000000', + ts?: string; } export interface Transcription { @@ -1469,9 +1454,9 @@ export interface MatchShares { export interface Private { is_silent_share?: boolean; - share_user_id?: CanvasCreatorid; + share_user_id?: string; source?: string; - ts?: Ts; + ts?: string; } export interface MatchTitleBlock { @@ -1609,11 +1594,11 @@ export interface MessagesMatch { previous?: Previous; previous_2?: Previous; score?: number; - team?: UserTeam; + team?: string; text?: string; - ts?: Ts; + ts?: string; type?: string; - user?: CanvasCreatorid; + user?: string; username?: string; } @@ -1633,7 +1618,7 @@ export interface Channel { name?: string; name_normalized?: string; pending_shared?: string[]; - user?: CanvasCreatorid; + user?: string; } export interface Previous { @@ -1642,9 +1627,9 @@ export interface Previous { iid?: string; permalink?: string; text?: string; - ts?: Ts; + ts?: string; type?: string; - user?: CanvasCreatorid; + user?: string; username?: string; } diff --git a/packages/web-api/src/types/response/SearchFilesResponse.ts b/packages/web-api/src/types/response/SearchFilesResponse.ts index 27180c237..98560adec 100644 --- a/packages/web-api/src/types/response/SearchFilesResponse.ts +++ b/packages/web-api/src/types/response/SearchFilesResponse.ts @@ -29,7 +29,7 @@ export interface Match { access?: string; attachments?: Attachment[]; bot_id?: string; - canvas_creator_id?: CanvasCreatorid; + canvas_creator_id?: string; canvas_printing_enabled?: boolean; canvas_readtime?: number; cc?: Cc[]; @@ -66,7 +66,7 @@ export interface Match { is_public?: boolean; is_restricted_sharing_enabled?: boolean; is_starred?: boolean; - last_editor?: CanvasCreatorid; + last_editor?: string; lines?: number; lines_more?: number; linked_channel_id?: string; @@ -135,8 +135,8 @@ export interface Match { url_private?: string; url_private_download?: string; url_static_preview?: string; - user?: CanvasCreatorid; - user_team?: UserTeam; + user?: string; + user_team?: string; username?: string; } @@ -664,12 +664,7 @@ export interface Cc { export interface DmMpdmUsersWithFileAccess { access?: string; - user_id?: CanvasCreatorid; -} - -export enum CanvasCreatorid { - Empty = '', - U00000000 = 'U00000000', + user_id?: string; } export interface Favorite { @@ -868,21 +863,11 @@ export interface Public { reply_count?: number; reply_users?: string[]; reply_users_count?: number; - share_user_id?: CanvasCreatorid; + share_user_id?: string; source?: string; - team_id?: UserTeam; + team_id?: string; thread_ts?: string; - ts?: Ts; -} - -export enum UserTeam { - Empty = '', - T00000000 = 'T00000000', -} - -export enum Ts { - Empty = '', - The0000000000000000 = '0000000000.000000', + ts?: string; } export interface Transcription { @@ -1448,9 +1433,9 @@ export interface MatchShares { export interface Private { is_silent_share?: boolean; - share_user_id?: CanvasCreatorid; + share_user_id?: string; source?: string; - ts?: Ts; + ts?: string; } export interface TitleBlock { From 5c18e2bc97ff6b316af3c1bab5dd104694cac734 Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Thu, 19 Nov 2026 19:40:00 -0800 Subject: [PATCH 4/7] fix(web-api): blank sample placeholders before generating response types Co-Authored-By: Claude --- .../AdminAppsActivitiesListResponse.ts | 26 +++------------ .../src/types/response/RtmStartResponse.ts | 16 ++------- scripts/code_generator.rb | 33 ++++++++++++++++++- 3 files changed, 40 insertions(+), 35 deletions(-) diff --git a/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts b/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts index 865c24cb9..9b37f90c1 100644 --- a/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts @@ -91,37 +91,21 @@ export interface Trigger { export interface Config { description?: string; event_type?: string; - function_inputs?: FunctionInputs; + function_inputs?: { [key: string]: FunctionInput }; name?: string; schema?: Inputs; trigger_type_app_id?: number; trigger_type_id?: number; } -export interface FunctionInputs { - '0000000000'?: The0000000000; - '0000000000_'?: The0000000000_; -} - -export interface The0000000000 { - hidden?: boolean; - label?: Label; - locked?: boolean; - value?: string; -} - -export interface Label { - '0000000000'?: string; - '0000000000_'?: string; -} - -export interface The0000000000_ { +export interface FunctionInput { hidden?: boolean; + label?: { [key: string]: string }; locked?: boolean; - value?: Value; + value?: ValueClass | string; } -export interface Value { +export interface ValueClass { credential_source?: string; external_token_id?: string; user_context_source?: string; diff --git a/packages/web-api/src/types/response/RtmStartResponse.ts b/packages/web-api/src/types/response/RtmStartResponse.ts index 17722398f..543a671e1 100644 --- a/packages/web-api/src/types/response/RtmStartResponse.ts +++ b/packages/web-api/src/types/response/RtmStartResponse.ts @@ -39,32 +39,22 @@ export type RtmStartResponse = WebAPICallResult & { }; export interface Bot { - app_id?: Appid; + app_id?: string; deleted?: boolean; icons?: BotIcons; - id?: Id; + id?: string; is_workflow_bot?: boolean; name?: string; team_id?: string; updated?: number; } -export enum Appid { - A00000000 = 'A00000000', - Empty = '', -} - export interface BotIcons { image_36?: string; image_48?: string; image_72?: string; } -export enum Id { - B00000000 = 'B00000000', - Empty = '', -} - export interface Channel { connected_limited_team_ids?: string[]; connected_team_ids?: string[]; @@ -2315,7 +2305,7 @@ export interface Profile { always_active?: boolean; api_app_id?: string; avatar_hash?: string; - bot_id?: Id; + bot_id?: string; display_name?: string; display_name_normalized?: string; email?: string; diff --git a/scripts/code_generator.rb b/scripts/code_generator.rb index defdf0ed3..47310ba41 100644 --- a/scripts/code_generator.rb +++ b/scripts/code_generator.rb @@ -3,11 +3,42 @@ # prerequisites # npm install quicktype +require 'json' require 'open3' index_file = __dir__ + '/../packages/web-api/src/types/response/index.ts' File.truncate(index_file, 0) +# The java-slack-sdk sample recorder masks each ID as "00000000" and each +# timestamp as "0000000000.000000", and writes map keys as "0000000000", +# "0000000000_" and so on. quicktype reads a placeholder repeated across a sample +# as an enum or a literal type, and only reads an object as a map when its keys +# are all digits, so these placeholders are blanked and the map keys renumbered. +module SampleNormalizer + PLACEHOLDER_VALUE = /\A(?:[A-Z]0{8}|0{10}\.0{6})\z/ + PLACEHOLDER_KEY = /\A0{10}_*\z/ + + def self.normalize(node) + case node + when Hash + placeholder_keys = 0 + node.each_with_object({}) do |(key, value), normalized| + if key.match?(PLACEHOLDER_KEY) + key = format('%010d', placeholder_keys) + placeholder_keys += 1 + end + normalized[key] = normalize(value) + end + when Array + node.map { |value| normalize(value) } + when String + node.match?(PLACEHOLDER_VALUE) ? '' : node + else + node + end + end +end + class TsWriter NOTICE = [ @@ -91,7 +122,7 @@ def append_multiple_classes_to_index(classes, class_file_name, index_file) root_class_name << 'Response' typedef_filepath = __dir__ + "/../packages/web-api/src/types/response/#{root_class_name}.ts" - input_json = json_file.read + input_json = JSON.generate(SampleNormalizer.normalize(JSON.parse(json_file.read))) ts_writer.write(root_class_name, json_path, typedef_filepath, input_json) ts_writer.append_to_index(root_class_name, index_file) end From 526821ec7eb2f3357f375a2f579c62bc9ed7cb33 Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Thu, 19 Nov 2026 19:57:54 -0800 Subject: [PATCH 5/7] fix(web-api): blank sample placeholders before generating response types Co-Authored-By: Claude --- .changeset/web-api-placeholder-enums.md | 5 +++ .../src/types/response/RtmStartResponse.ts | 16 ++------- .../src/types/response/SearchAllResponse.ts | 19 ++++------- scripts/code_generator.rb | 33 ++++++++++++++++++- 4 files changed, 47 insertions(+), 26 deletions(-) create mode 100644 .changeset/web-api-placeholder-enums.md diff --git a/.changeset/web-api-placeholder-enums.md b/.changeset/web-api-placeholder-enums.md new file mode 100644 index 000000000..d7d1d6ff8 --- /dev/null +++ b/.changeset/web-api-placeholder-enums.md @@ -0,0 +1,5 @@ +--- +"@slack/web-api": patch +--- + +fix(web-api): type the ID fields that `search.all` and `rtm.start` responses typed as placeholder enums as `string` diff --git a/packages/web-api/src/types/response/RtmStartResponse.ts b/packages/web-api/src/types/response/RtmStartResponse.ts index 17722398f..543a671e1 100644 --- a/packages/web-api/src/types/response/RtmStartResponse.ts +++ b/packages/web-api/src/types/response/RtmStartResponse.ts @@ -39,32 +39,22 @@ export type RtmStartResponse = WebAPICallResult & { }; export interface Bot { - app_id?: Appid; + app_id?: string; deleted?: boolean; icons?: BotIcons; - id?: Id; + id?: string; is_workflow_bot?: boolean; name?: string; team_id?: string; updated?: number; } -export enum Appid { - A00000000 = 'A00000000', - Empty = '', -} - export interface BotIcons { image_36?: string; image_48?: string; image_72?: string; } -export enum Id { - B00000000 = 'B00000000', - Empty = '', -} - export interface Channel { connected_limited_team_ids?: string[]; connected_team_ids?: string[]; @@ -2315,7 +2305,7 @@ export interface Profile { always_active?: boolean; api_app_id?: string; avatar_hash?: string; - bot_id?: Id; + bot_id?: string; display_name?: string; display_name_normalized?: string; email?: string; diff --git a/packages/web-api/src/types/response/SearchAllResponse.ts b/packages/web-api/src/types/response/SearchAllResponse.ts index 0f44e280d..fa6dd1f29 100644 --- a/packages/web-api/src/types/response/SearchAllResponse.ts +++ b/packages/web-api/src/types/response/SearchAllResponse.ts @@ -65,7 +65,7 @@ export interface FilesMatch { is_public?: boolean; is_restricted_sharing_enabled?: boolean; is_starred?: boolean; - last_editor?: LastEditor; + last_editor?: string; lines?: number; lines_more?: number; linked_channel_id?: string; @@ -133,7 +133,7 @@ export interface FilesMatch { url_private?: string; url_private_download?: string; url_static_preview?: string; - user?: LastEditor; + user?: string; user_team?: string; username?: string; } @@ -659,12 +659,7 @@ export interface Cc { export interface DmMpdmUsersWithFileAccess { access?: string; - user_id?: LastEditor; -} - -export enum LastEditor { - Empty = '', - U00000000 = 'U00000000', + user_id?: string; } export interface Favorite { @@ -1408,7 +1403,7 @@ export interface Public { reply_count?: number; reply_users?: string[]; reply_users_count?: number; - share_user_id?: LastEditor; + share_user_id?: string; source?: string; team_id?: string; ts?: string; @@ -1553,7 +1548,7 @@ export interface MessagesMatch { text?: string; ts?: string; type?: string; - user?: LastEditor; + user?: string; username?: string; } @@ -1573,7 +1568,7 @@ export interface Channel { name?: string; name_normalized?: string; pending_shared?: string[]; - user?: LastEditor; + user?: string; } export interface Previous { @@ -1584,7 +1579,7 @@ export interface Previous { text?: string; ts?: string; type?: string; - user?: LastEditor; + user?: string; username?: string; } diff --git a/scripts/code_generator.rb b/scripts/code_generator.rb index defdf0ed3..47310ba41 100644 --- a/scripts/code_generator.rb +++ b/scripts/code_generator.rb @@ -3,11 +3,42 @@ # prerequisites # npm install quicktype +require 'json' require 'open3' index_file = __dir__ + '/../packages/web-api/src/types/response/index.ts' File.truncate(index_file, 0) +# The java-slack-sdk sample recorder masks each ID as "00000000" and each +# timestamp as "0000000000.000000", and writes map keys as "0000000000", +# "0000000000_" and so on. quicktype reads a placeholder repeated across a sample +# as an enum or a literal type, and only reads an object as a map when its keys +# are all digits, so these placeholders are blanked and the map keys renumbered. +module SampleNormalizer + PLACEHOLDER_VALUE = /\A(?:[A-Z]0{8}|0{10}\.0{6})\z/ + PLACEHOLDER_KEY = /\A0{10}_*\z/ + + def self.normalize(node) + case node + when Hash + placeholder_keys = 0 + node.each_with_object({}) do |(key, value), normalized| + if key.match?(PLACEHOLDER_KEY) + key = format('%010d', placeholder_keys) + placeholder_keys += 1 + end + normalized[key] = normalize(value) + end + when Array + node.map { |value| normalize(value) } + when String + node.match?(PLACEHOLDER_VALUE) ? '' : node + else + node + end + end +end + class TsWriter NOTICE = [ @@ -91,7 +122,7 @@ def append_multiple_classes_to_index(classes, class_file_name, index_file) root_class_name << 'Response' typedef_filepath = __dir__ + "/../packages/web-api/src/types/response/#{root_class_name}.ts" - input_json = json_file.read + input_json = JSON.generate(SampleNormalizer.normalize(JSON.parse(json_file.read))) ts_writer.write(root_class_name, json_path, typedef_filepath, input_json) ts_writer.append_to_index(root_class_name, index_file) end From 56d46c9b7cff45f783a3100e13c9a202b2ff303e Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Thu, 19 Nov 2026 20:04:22 -0800 Subject: [PATCH 6/7] chore: match the changeset to the pull request title Co-Authored-By: Claude --- .changeset/web-api-response-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/web-api-response-types.md b/.changeset/web-api-response-types.md index af7b10a62..dedf74352 100644 --- a/.changeset/web-api-response-types.md +++ b/.changeset/web-api-response-types.md @@ -2,4 +2,4 @@ "@slack/web-api": minor --- -feat(web-api): update Web API response types from the latest `java-slack-sdk` response samples +feat(web-api): add webapi response changes as of 2026-11-20 From a82159001b986903e286d591d9b87ac7d9fe859d Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Thu, 19 Nov 2026 20:07:44 -0800 Subject: [PATCH 7/7] chore: generalize the changeset Co-Authored-By: Claude --- .changeset/web-api-placeholder-enums.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/web-api-placeholder-enums.md b/.changeset/web-api-placeholder-enums.md index d7d1d6ff8..4966cdbff 100644 --- a/.changeset/web-api-placeholder-enums.md +++ b/.changeset/web-api-placeholder-enums.md @@ -2,4 +2,4 @@ "@slack/web-api": patch --- -fix(web-api): type the ID fields that `search.all` and `rtm.start` responses typed as placeholder enums as `string` +fix(web-api): accept string values for ID fields in response types