Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/web-api-response-types.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@slack/web-api": minor
---

feat(web-api): add webapi response changes as of 2026-11-20
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,24 @@ export interface Trigger {
export interface Config {
description?: string;
event_type?: string;
function_inputs?: { [key: string]: FunctionInput };
name?: string;
schema?: Inputs;
trigger_type_app_id?: number;
trigger_type_id?: number;
}

export interface FunctionInput {
hidden?: boolean;
label?: { [key: string]: string };
locked?: boolean;
value?: ValueClass | string;
Comment thread
zimeg marked this conversation as resolved.
Resolved
}

export interface ValueClass {
credential_source?: string;
external_token_id?: string;
user_context_source?: string;
}

export interface TripInformation {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions packages/web-api/src/types/response/AppsIconSetResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@ export type AppsIconSetResponse = WebAPICallResult & {
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
warning?: string;
};

export interface ResponseMetadata {
messages?: string[];
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export interface Features {
shortcuts?: Shortcut[];
slash_commands?: SlashCommand[];
unfurl_domains?: string[];
user_connections?: UserConnections;
}

export interface AppHome {
Expand Down Expand Up @@ -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 };
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
/////////////////////////////////////////////////////////////////////////////////////////

import type { WebAPICallResult } from '../../WebClient';

export type BlocksValidateResponse = WebAPICallResult & {
error?: string;
errors?: Error[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ export type CanvasesGetContentResponse = WebAPICallResult & {
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
warning?: string;
};

export type ResponseMetadata = {};
50 changes: 50 additions & 0 deletions packages/web-api/src/types/response/ChatPostMessageResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -144,6 +146,7 @@ export interface Accessory {
type?: AccessoryType;
url?: string;
value?: string;
visible_to_user_ids?: any[];
workflow?: Workflow;
}

Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -134,6 +136,7 @@ export interface Accessory {
type?: string;
url?: string;
value?: string;
visible_to_user_ids?: any[];
workflow?: Workflow;
}

Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Loading