Skip to content

Commit 2dc98d5

Browse files
committed
Update API from slack-api-ref@3275786 (2026-04-20)
1 parent 891aecf commit 2dc98d5

41 files changed

Lines changed: 673 additions & 79 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* [#581](https://github.com/slack-ruby/slack-ruby-client/pull/581): Migrate Danger to use danger-pr-comment workflow - [@dblock](https://github.com/dblock).
44
* [#583](https://github.com/slack-ruby/slack-ruby-client/pull/583): Not found errors raised by id_for use more specific error classes when they exist - [@eizengan](https://github.com/eizengan).
55
* [#585](https://github.com/slack-ruby/slack-ruby-client/pull/585): Fix ci not triggering on automated api update prs - [@Copilot](https://github.com/Copilot).
6+
* [#578](https://github.com/slack-ruby/slack-ruby-client/pull/578): Update API from [slack-api-ref@3275786](https://github.com/slack-ruby/slack-api-ref/commit/3275786) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot).
67
* Your contribution here.
78

89
### 3.1.0 (2025/11/15)
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: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ class App
5555
c.flag 'is_active', desc: 'If true, only active users will be returned. If false, only deactivated users will be returned. Default is true.'
5656
c.flag 'include_deactivated_user_workspaces', desc: 'Only applies with org token and no team_id. If true, return workspaces for a user even if they may be deactivated on them. If false, return workspaces for a user only when user is active on them. Default is false.'
5757
c.flag 'only_guests', desc: 'If true, returns only guests and their expiration dates that belong to the team_id.'
58+
c.flag 'include_admins', desc: 'If true, only admin users will be returned (excludes owners). Returns all admins and owners when combined with include_owners. Cannot be used together with only_guests.'
59+
c.flag 'include_owners', desc: 'If true, only owner users will be returned. Cannot be used together with only_guests.'
5860
c.flag 'limit', desc: 'Limit for how many users to be retrieved per page.'
5961
c.action do |_global_options, options, _args|
6062
puts JSON.dump(@client.admin_users_list(options))
@@ -71,10 +73,10 @@ class App
7173
end
7274
end
7375

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. )
76+
g.desc 'Set an existing regular user or owner to be a workspace or org admin.'
77+
g.long_desc %( Set an existing regular user or owner to be a workspace or org admin. )
7678
g.command 'setAdmin' do |c|
77-
c.flag 'team_id', desc: 'The ID (T1234) of the workspace.'
79+
c.flag 'team_id', desc: 'The ID of the workspace or organization.'
7880
c.flag 'user_id', desc: 'The ID of the user to designate as an admin.'
7981
c.action do |_global_options, options, _args|
8082
puts JSON.dump(@client.admin_users_setAdmin(options))
@@ -92,11 +94,11 @@ class App
9294
end
9395
end
9496

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. )
97+
g.desc 'Set an existing regular user or admin to be a workspace or org owner.'
98+
g.long_desc %( Set an existing regular user or admin to be a workspace or org owner. )
9799
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.'
100+
c.flag 'team_id', desc: 'The ID of the workspace or organization.'
101+
c.flag 'user_id', desc: 'ID of the user to promote to owner.'
100102
c.action do |_global_options, options, _args|
101103
puts JSON.dump(@client.admin_users_setOwner(options))
102104
end
@@ -105,7 +107,7 @@ class App
105107
g.desc 'Set an existing guest user, admin user, or owner to be a regular user.'
106108
g.long_desc %( Set an existing guest user, admin user, or owner to be a regular user. )
107109
g.command 'setRegular' do |c|
108-
c.flag 'team_id', desc: 'The ID (T1234) of the workspace.'
110+
c.flag 'team_id', desc: 'The ID of the workspace or organization.'
109111
c.flag 'user_id', desc: 'The ID of the user to designate as a regular user.'
110112
c.action do |_global_options, options, _args|
111113
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

bin/commands/apps_icon.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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 'AppsIcon methods.'
8+
command 'apps_icon' do |g|
9+
g.desc 'Sets the app icon'
10+
g.long_desc %( Sets the app icon )
11+
g.command 'set' do |c|
12+
c.flag 'app_id', desc: 'The ID of the app whose icon you want to set.'
13+
c.flag 'file', desc: 'File contents via multipart/form-data.'
14+
c.flag 'url', desc: 'URL of a publicly hosted image.'
15+
c.action do |_global_options, options, _args|
16+
puts JSON.dump(@client.apps_icon_set(options))
17+
end
18+
end
19+
end
20+
end
21+
end
22+
end

bin/commands/apps_manifest.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class App
1010
g.long_desc %( Create an app from an app manifest. )
1111
g.command 'create' do |c|
1212
c.flag 'manifest', desc: 'A JSON app manifest encoded as a string. This manifest must use a valid app manifest schema - read our guide to creating one.'
13+
c.flag 'team_id', desc: 'When called with an org token, which specific team to create app on.'
1314
c.action do |_global_options, options, _args|
1415
puts JSON.dump(@client.apps_manifest_create(options))
1516
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: 3 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.'
@@ -28,6 +28,7 @@ class App
2828
c.flag 'term_clauses', desc: 'A list of term clauses. A term clause is a string with search terms. Search results returned will match every term clause specified (i.e., conjunctive normal form).'
2929
c.flag 'modifiers', desc: 'A string containing only modifiers in the format of modifier:value. Search results returned will match the modifier value. For now modifiers only affect term clauses.'
3030
c.flag 'include_archived_channels', desc: 'Whether to include archived channels in the search results.'
31+
c.flag 'disable_semantic_search', desc: 'Whether to disable semantic search. When true, only keyword-based search is used. Defaults to false.'
3132
c.action do |_global_options, options, _args|
3233
puts JSON.dump(@client.assistant_search_context(options))
3334
end

0 commit comments

Comments
 (0)