Skip to content

Commit a6f2b00

Browse files
committed
Update API from slack-api-ref@3275786 (2026-03-09)
1 parent 891aecf commit a6f2b00

35 files changed

+561
-79
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# frozen_string_literal: true
2+
# This file was auto-generated by lib/tasks/web.rake
3+
4+
module Slack
5+
module Cli
6+
class App
7+
desc 'AdminAnalyticsMessages methods.'
8+
command 'admin_analytics_messages' do |g|
9+
g.desc 'Retrieves activity metrics for messages from a given channel.'
10+
g.long_desc %( Retrieves activity metrics for messages from a given channel. )
11+
g.command 'activity' do |c|
12+
c.flag 'channel', desc: 'Channel ID for channel of the message activity to query.'
13+
c.flag 'oldest_ts', desc: 'Oldest timestamp to include in the results. Defaults to 7 days before current time. If not passed while still passing the latest_ts parameter, defaults to 7 days before latest_ts.'
14+
c.flag 'latest_ts', desc: 'Most recent timestamp to include in results. Defaults to current time. If not passed while still passing the oldest_ts parameter, defaults to 7 days after oldest_ts.'
15+
c.flag 'cursor', desc: "Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first 'page' of the collection."
16+
c.flag 'limit', desc: 'Maximum number of entries to return. The maximum limit is 100.'
17+
c.action do |_global_options, options, _args|
18+
puts JSON.dump(@client.admin_analytics_messages_activity(options))
19+
end
20+
end
21+
22+
g.desc 'Retrieves metadata for a list of messages from a given channel.'
23+
g.long_desc %( Retrieves metadata for a list of messages from a given channel. )
24+
g.command 'metadata' do |c|
25+
c.flag 'channel', desc: 'Channel ID for channel containing the messages to query.'
26+
c.flag 'oldest_ts', desc: 'Oldest timestamp to include in the results.'
27+
c.flag 'latest_ts', desc: 'Most recent timestamp to include in the results. If not passed, defaults to current time.'
28+
c.flag 'cursor', desc: "Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first 'page' of the collection. See pagination for more details."
29+
c.action do |_global_options, options, _args|
30+
puts JSON.dump(@client.admin_analytics_messages_metadata(options))
31+
end
32+
end
33+
end
34+
end
35+
end
36+
end

bin/commands/admin_conversations.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ class App
4343
end
4444
end
4545

46+
g.desc 'Exclude channels from Slack AI in bulk'
47+
g.long_desc %( Exclude channels from Slack AI in bulk )
48+
g.command 'bulkSetExcludeFromSlackAi' do |c|
49+
c.flag 'channel_ids', desc: 'An array of channel IDs to exclude from Slack AI.'
50+
c.flag 'exclude', desc: 'Whether the channels should be excluded from Slack AI.'
51+
c.action do |_global_options, options, _args|
52+
puts JSON.dump(@client.admin_conversations_bulkSetExcludeFromSlackAi(options))
53+
end
54+
end
55+
4656
g.desc 'Convert a public channel to a private channel.'
4757
g.long_desc %( Convert a public channel to a private channel. )
4858
g.command 'convertToPrivate' do |c|

bin/commands/admin_functions_permissions.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class App
2121
c.flag 'function_id', desc: 'The function ID to set permissions for.'
2222
c.flag 'visibility', desc: 'The function visibility.'
2323
c.flag 'user_ids', desc: 'List of user IDs to allow for named_entities visibility.'
24+
c.flag 'permissions', desc: 'Array of permissions for the function.'
2425
c.action do |_global_options, options, _args|
2526
puts JSON.dump(@client.admin_functions_permissions_set(options))
2627
end

bin/commands/admin_users.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ class App
7171
end
7272
end
7373

74-
g.desc 'Set an existing regular user or owner to be a workspace admin.'
75-
g.long_desc %( Set an existing regular user or owner to be a workspace admin. )
74+
g.desc 'Set an existing regular user or owner to be a workspace or org admin.'
75+
g.long_desc %( Set an existing regular user or owner to be a workspace or org admin. )
7676
g.command 'setAdmin' do |c|
77-
c.flag 'team_id', desc: 'The ID (T1234) of the workspace.'
77+
c.flag 'team_id', desc: 'The ID of the workspace or organization.'
7878
c.flag 'user_id', desc: 'The ID of the user to designate as an admin.'
7979
c.action do |_global_options, options, _args|
8080
puts JSON.dump(@client.admin_users_setAdmin(options))
@@ -92,11 +92,11 @@ class App
9292
end
9393
end
9494

95-
g.desc 'Set an existing regular user or admin to be a workspace owner.'
96-
g.long_desc %( Set an existing regular user or admin to be a workspace owner. )
95+
g.desc 'Set an existing regular user or admin to be a workspace or org owner.'
96+
g.long_desc %( Set an existing regular user or admin to be a workspace or org owner. )
9797
g.command 'setOwner' do |c|
98-
c.flag 'team_id', desc: 'The ID (T1234) of the workspace.'
99-
c.flag 'user_id', desc: 'Id of the user to promote to owner.'
98+
c.flag 'team_id', desc: 'The ID of the workspace or organization.'
99+
c.flag 'user_id', desc: 'ID of the user to promote to owner.'
100100
c.action do |_global_options, options, _args|
101101
puts JSON.dump(@client.admin_users_setOwner(options))
102102
end
@@ -105,7 +105,7 @@ class App
105105
g.desc 'Set an existing guest user, admin user, or owner to be a regular user.'
106106
g.long_desc %( Set an existing guest user, admin user, or owner to be a regular user. )
107107
g.command 'setRegular' do |c|
108-
c.flag 'team_id', desc: 'The ID (T1234) of the workspace.'
108+
c.flag 'team_id', desc: 'The ID of the workspace or organization.'
109109
c.flag 'user_id', desc: 'The ID of the user to designate as a regular user.'
110110
c.action do |_global_options, options, _args|
111111
puts JSON.dump(@client.admin_users_setRegular(options))

bin/commands/admin_workflows_triggers_types_permissions.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ module Cli
66
class App
77
desc 'AdminWorkflowsTriggersTypesPermissions methods.'
88
command 'admin_workflows_triggers_types_permissions' do |g|
9-
g.desc 'list the permissions for using each trigger type'
10-
g.long_desc %( list the permissions for using each trigger type )
9+
g.desc 'List the permissions for using each trigger type.'
10+
g.long_desc %( List the permissions for using each trigger type. )
1111
g.command 'lookup' do |c|
12-
c.flag 'trigger_type_ids', desc: 'The trigger types IDs for which to get the permissions.'
12+
c.flag 'trigger_type_ids', desc: 'The trigger type IDs for which to get the permissions.'
1313
c.action do |_global_options, options, _args|
1414
puts JSON.dump(@client.admin_workflows_triggers_types_permissions_lookup(options))
1515
end
@@ -21,6 +21,7 @@ class App
2121
c.flag 'id', desc: 'The trigger type ID for which to set the permissions.'
2222
c.flag 'visibility', desc: 'The function visibility.'
2323
c.flag 'user_ids', desc: 'List of user IDs to allow for named_entities visibility.'
24+
c.flag 'permissions', desc: ''
2425
c.action do |_global_options, options, _args|
2526
puts JSON.dump(@client.admin_workflows_triggers_types_permissions_set(options))
2627
end
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# frozen_string_literal: true
2+
# This file was auto-generated by lib/tasks/web.rake
3+
4+
module Slack
5+
module Cli
6+
class App
7+
desc 'AppsUserConnection methods.'
8+
command 'apps_user_connection' do |g|
9+
g.desc 'Updates the connection status between a user and an app.'
10+
g.long_desc %( Updates the connection status between a user and an app. )
11+
g.command 'update' do |c|
12+
c.flag 'user_id', desc: 'The ID of the user for the status update.'
13+
c.flag 'status', desc: 'The status that should be set for the user.'
14+
c.action do |_global_options, options, _args|
15+
puts JSON.dump(@client.apps_user_connection_update(options))
16+
end
17+
end
18+
end
19+
end
20+
end
21+
end

bin/commands/assistant_search.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ module Cli
66
class App
77
desc 'AssistantSearch methods.'
88
command 'assistant_search' do |g|
9-
g.desc 'Searches messages across your Slack organization—perfect for broad, specific, and real-time data retrieval.'
10-
g.long_desc %( Searches messages across your Slack organization—perfect for broad, specific, and real-time data retrieval. )
9+
g.desc 'Searches messages, files, channels and users across your Slack organization.'
10+
g.long_desc %( Searches messages, files, channels and users across your Slack organization. )
1111
g.command 'context' do |c|
1212
c.flag 'query', desc: 'User prompt or search query.'
1313
c.flag 'action_token', desc: 'Send action_token as received in a message event.'

bin/commands/assistant_threads.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class App
1111
g.command 'setStatus' do |c|
1212
c.flag 'channel_id', desc: 'Channel ID containing the assistant thread.'
1313
c.flag 'thread_ts', desc: 'Message timestamp of the thread of where to set the status.'
14-
c.flag 'status', desc: "Status of the specified bot user, e.g. 'is thinking...'."
15-
c.flag 'loading_messages', desc: 'The list of messages to rotate through as a loading indicator.'
14+
c.flag 'status', desc: "Status of the specified bot user, e.g., 'is thinking...'. A two minute timeout applies, which will cause the status to be removed if no message has been sent."
15+
c.flag 'loading_messages', desc: 'The list of messages to rotate through as a loading indicator. Maximum of 10 messages.'
1616
c.action do |_global_options, options, _args|
1717
puts JSON.dump(@client.assistant_threads_setStatus(options))
1818
end

bin/commands/chat.rb

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class App
1010
g.long_desc %( Appends text to an existing streaming conversation. )
1111
g.command 'appendStream' do |c|
1212
c.flag 'channel', desc: 'An encoded ID that represents a channel, private group, or DM.'
13+
c.flag 'chunks', desc: 'An array of streaming chunks. Chunks can be markdown text chunks, task update chunks, and plan update chunks.'
1314
c.flag 'ts', desc: 'The timestamp of the streaming message.'
1415
c.flag 'markdown_text', desc: 'Accepts message text formatted in markdown. Limit this field to 12,000 characters. This text is what will be appended to the message received so far.'
1516
c.action do |_global_options, options, _args|
@@ -103,7 +104,7 @@ class App
103104
c.flag 'icon_url', desc: 'URL to an image to use as the icon for this message.'
104105
c.flag 'link_names', desc: 'Find and link user groups. No longer supports linking individual users; use syntax shown in Mentioning Users instead.'
105106
c.flag 'markdown_text', desc: 'Accepts message text formatted in markdown. This argument should not be used in conjunction with blocks or text. Limit this field to 12,000 characters.'
106-
c.flag 'metadata', desc: 'JSON object with event_type and event_payload fields, presented as a URL-encoded string. Metadata you post to Slack is accessible to any app or user who is a member of that workspace.'
107+
c.flag 'metadata', desc: 'JSON object with event_type and event_payload fields, presented as a URL-encoded string. You can also provide Work Object entity metadata using this parameter. Metadata you post to Slack is accessible to any app or user who is a member of that workspace.'
107108
c.flag 'mrkdwn', desc: 'Disable Slack markup parsing by setting to false. Enabled by default.'
108109
c.flag 'parse', desc: 'Change how messages are treated. See below.'
109110
c.flag 'reply_broadcast', desc: 'Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false.'
@@ -142,11 +143,13 @@ class App
142143
g.desc 'Starts a new streaming conversation.'
143144
g.long_desc %( Starts a new streaming conversation. )
144145
g.command 'startStream' do |c|
145-
c.flag 'channel', desc: 'An encoded ID that represents a channel, private group, or DM.'
146+
c.flag 'channel', desc: 'An encoded ID that represents a channel thread or DM.'
147+
c.flag 'chunks', desc: 'An array of streaming chunks. Chunks can be markdown text chunks, task update chunks, and plan update chunks.'
146148
c.flag 'markdown_text', desc: 'Accepts message text formatted in markdown. Limit this field to 12,000 characters.'
147149
c.flag 'thread_ts', desc: "Provide another message's ts value to reply to. Streamed messages should always be replies to a user request."
148150
c.flag 'recipient_user_id', desc: 'The encoded ID of the user to receive the streaming text. Required when streaming to channels.'
149151
c.flag 'recipient_team_id', desc: 'The encoded ID of the team the user receiving the streaming text belongs to. Required when streaming to channels.'
152+
c.flag 'task_display_mode', desc: "Specifies how tasks are displayed in the message. A timeline displays individual tasks with text in sequential order, and plan displays all tasks together, with the first tasks's placement determining the placement of the rest of the tasks."
150153
c.action do |_global_options, options, _args|
151154
puts JSON.dump(@client.chat_startStream(options))
152155
end
@@ -156,6 +159,7 @@ class App
156159
g.long_desc %( Stops a streaming conversation. )
157160
g.command 'stopStream' do |c|
158161
c.flag 'channel', desc: 'An encoded ID that represents a channel, private group, or DM.'
162+
c.flag 'chunks', desc: 'An array of streaming chunks. Chunks can be markdown text chunks, task update chunks, and plan update chunks.'
159163
c.flag 'ts', desc: 'The timestamp of the streaming message.'
160164
c.flag 'markdown_text', desc: 'Accepts message text formatted in markdown. Limit this field to 12,000 characters.'
161165
c.flag 'blocks', desc: 'A list of blocks that will be rendered at the bottom of the finalized message.'
@@ -177,7 +181,7 @@ class App
177181
c.flag 'user_auth_blocks', desc: 'Provide a JSON based array of structured blocks presented as URL-encoded string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior.'
178182
c.flag 'unfurl_id', desc: 'The ID of the link to unfurl. Both unfurl_id and source must be provided together, or channel and ts must be provided together.'
179183
c.flag 'source', desc: 'The source of the link to unfurl. The source may either be composer, when the link is inside the message composer, or conversations_history, when the link has been posted to a conversation.'
180-
c.flag 'metadata', desc: 'JSON object with entity_type and entity_payload fields, presented as a URL-encoded string. Either unfurls or metadata must be provided.'
184+
c.flag 'metadata', desc: 'JSON object with an entities field providing an array of Work Object entities. Either unfurls or metadata must be provided.'
181185
c.action do |_global_options, options, _args|
182186
puts JSON.dump(@client.chat_unfurl(options))
183187
end
@@ -188,6 +192,7 @@ class App
188192
g.command 'update' do |c|
189193
c.flag 'as_user', desc: 'Pass true to update the message as the authed user. Bot users in this context are considered authed users.'
190194
c.flag 'attachments', desc: 'A JSON-based array of structured attachments, presented as a URL-encoded string.'
195+
c.flag 'unfurled_attachments', desc: 'A JSON-based array of structured attachments, presented as a URL-encoded string.'
191196
c.flag 'blocks', desc: 'A JSON-based array of structured blocks, presented as a URL-encoded string.'
192197
c.flag 'markdown_text', desc: 'Accepts message text formatted in markdown. This argument should not be used in conjunction with blocks or text. Limit this field to 12,000 characters.'
193198
c.flag 'metadata', desc: "JSON object with event_type and event_payload fields, presented as a URL-encoded string. If you don't include this field, the message's previous metadata will be retained. To remove previous metadata, include an empty object for this field. Metadata you post to Slack is accessible to any app or user who is a member of that workspace."

bin/commands/files.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ class App
6363
end
6464
end
6565

66-
g.desc 'List for a team, in a channel, or from a user with applied filters.'
67-
g.long_desc %( List for a team, in a channel, or from a user with applied filters. )
66+
g.desc 'List files for a team, in a channel, or from a user with applied filters.'
67+
g.long_desc %( List files for a team, in a channel, or from a user with applied filters. )
6868
g.command 'list' do |c|
6969
c.flag 'channel', desc: 'Filter files appearing in a specific channel, indicated by its ID.'
7070
c.flag 'show_files_hidden_by_limit', desc: 'Show truncated file info for files hidden due to being too old, and the team who owns the file being over the file limit.'

0 commit comments

Comments
 (0)