Skip to content

Commit e91bf3a

Browse files
committed
Update API from slack-api-ref@c408935 (2025-08-18)
1 parent cec95a5 commit e91bf3a

28 files changed

+838
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* [#568](https://github.com/slack-ruby/slack-ruby-client/pull/568): Redact Authorization header in response stored in the error - [@levenleven](https://github.com/levenleven).
44

5+
* [#558](https://github.com/slack-ruby/slack-ruby-client/pull/558): Update API from [slack-api-ref@c408935](https://github.com/slack-ruby/slack-api-ref/commit/c408935) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot).
56
* Your contribution here.
67

78
### 2.7.0 (2025/07/20)

bin/commands/admin_apps_config.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class App
1010
g.long_desc %( Look up the app config for connectors by their IDs )
1111
g.command 'lookup' do |c|
1212
c.flag 'app_ids', desc: 'An array of app IDs to get app configs for.'
13+
c.flag 'rich_link_preview_types', desc: 'return apps with the corresponding rich link preview layouts.'
1314
c.action do |_global_options, options, _args|
1415
puts JSON.dump(@client.admin_apps_config_lookup(options))
1516
end
@@ -20,6 +21,7 @@ class App
2021
g.command 'set' do |c|
2122
c.flag 'app_id', desc: 'The encoded app ID to set the app config for.'
2223
c.flag 'domain_restrictions', desc: 'Domain restrictions for the app. Should be an object with two properties: urls and emails. Each is an array of strings, and each sets the allowed URLs and emails for connector authorization, respectively.'
24+
c.flag 'rich_link_preview_type', desc: 'Indicates the app-level override for rich link preview. Unsupported for free teams.'
2325
c.flag 'workflow_auth_strategy', desc: 'The workflow auth permission. Can be one of builder_choice or end_user_only.'
2426
c.action do |_global_options, options, _args|
2527
puts JSON.dump(@client.admin_apps_config_set(options))

bin/commands/admin_users.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class App
4444
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.'
4545
c.flag 'is_active', desc: 'If true, only active users will be returned. If false, only deactivated users will be returned. Default is true.'
4646
c.flag 'limit', desc: 'Limit for how many users to be retrieved per page.'
47+
c.flag 'only_guests', desc: 'If true, returns only guests and their expiration dates that belong to the team_id.'
4748
c.flag 'team_id', desc: 'The ID (T1234) of a workspace. Filters results to just the specified workspace.'
4849
c.action do |_global_options, options, _args|
4950
puts JSON.dump(@client.admin_users_list(options))

bin/commands/assistant_search.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,30 @@ class App
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.'
14+
c.flag 'after', desc: 'UNIX timestamp filter. If present, filters for results after this date.'
15+
c.flag 'before', desc: 'UNIX timestamp filter. If present, filters for results before this date.'
1416
c.flag 'channel_types', desc: 'Mix and match channel types by providing a comma-separated list of any combination of public_channel, private_channel, mpim, im.'
1517
c.flag 'content_types', desc: 'Content types to include, a comma-separated list of any combination of messages, files.'
1618
c.flag 'context_channel_id', desc: 'Context channel ID to support scoping the search when applicable.'
1719
c.flag 'cursor', desc: 'The cursor returned by the API. Leave this blank for the first request, and use this to get the next page of results.'
1820
c.flag 'include_bots', desc: 'If you want the results to include bots.'
21+
c.flag 'include_context_messages', desc: 'Whether to include context messages surrounding the main message result. Defaults to false if unspecified.'
22+
c.flag 'include_message_blocks', desc: 'Whether to return the message blocks in the response.'
1923
c.flag 'limit', desc: 'Number of results to return, up to a max of 20. Defaults to 20.'
24+
c.flag 'sort', desc: 'The field to sort the results by. Defaults to score. Can be one of: score, timestamp.'
25+
c.flag 'sort_dir', desc: 'The direction to sort the results by. Defaults to desc.'
2026
c.action do |_global_options, options, _args|
2127
puts JSON.dump(@client.assistant_search_context(options))
2228
end
2329
end
30+
31+
g.desc 'Returns search capabilities on a given team.'
32+
g.long_desc %( Returns search capabilities on a given team. )
33+
g.command 'info' do |c|
34+
c.action do |_global_options, options, _args|
35+
puts JSON.dump(@client.assistant_search_info(options))
36+
end
37+
end
2438
end
2539
end
2640
end

bin/commands/chat.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ class App
8787
c.flag 'attachments', desc: 'A JSON-based array of structured attachments, presented as a URL-encoded string.'
8888
c.flag 'blocks', desc: 'A JSON-based array of structured blocks, presented as a URL-encoded string.'
8989
c.flag 'text', desc: 'How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.'
90-
c.flag 'agent_message_source_type', desc: 'Identify how the message was posted for agentforce BE logging.'
9190
c.flag 'as_user', desc: '(Legacy) Pass true to post the message as the authed user instead of as a bot. Defaults to false. Can only be used by classic apps. See legacy as_user parameter below.'
9291
c.flag 'icon_emoji', desc: 'Emoji to use as the icon for this message. Overrides icon_url.'
9392
c.flag 'icon_url', desc: 'URL to an image to use as the icon for this message.'

bin/commands/slackLists.rb

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 'SlackLists methods.'
8+
command 'slackLists' do |g|
9+
g.desc 'Create a list'
10+
g.long_desc %( Create a list )
11+
g.command 'create' do |c|
12+
c.flag 'name', desc: 'Name of the list.'
13+
c.flag 'copy_from_list_id', desc: 'Id of the list to copy.'
14+
c.flag 'description_blocks', desc: 'A rich text description of the list.'
15+
c.flag 'include_copied_list_records', desc: 'Option to include records when a list is copied.'
16+
c.flag 'schema', desc: 'Column definition for the list.'
17+
c.flag 'todo_mode', desc: 'Boolean indicating if list should be used to track todo tasks.'
18+
c.action do |_global_options, options, _args|
19+
puts JSON.dump(@client.slackLists_create(options))
20+
end
21+
end
22+
23+
g.desc 'Update a list'
24+
g.long_desc %( Update a list )
25+
g.command 'update' do |c|
26+
c.flag 'id', desc: 'Id of list to update.'
27+
c.flag 'description_blocks', desc: 'A rich text description of the list.'
28+
c.flag 'name', desc: 'Updated name of the list.'
29+
c.flag 'todo_mode', desc: 'Boolean indicating if list should be in todo mode.'
30+
c.action do |_global_options, options, _args|
31+
puts JSON.dump(@client.slackLists_update(options))
32+
end
33+
end
34+
end
35+
end
36+
end
37+
end

bin/commands/slackLists_access.rb

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 'SlackListsAccess methods.'
8+
command 'slackLists_access' do |g|
9+
g.desc 'Remove access to a list for specified entities'
10+
g.long_desc %( Remove access to a list for specified entities )
11+
g.command 'delete' do |c|
12+
c.flag 'list_id', desc: 'Encoded ID of the list.'
13+
c.flag 'channel_ids', desc: 'List of channels you wish to update access for. Can only be used if user_ids is not provided.'
14+
c.flag 'user_ids', desc: 'List of users you wish to update access for. Can only be used if channel_ids is not provided.'
15+
c.action do |_global_options, options, _args|
16+
puts JSON.dump(@client.slackLists_access_delete(options))
17+
end
18+
end
19+
20+
g.desc 'Sets the access level to a list for specified entities'
21+
g.long_desc %( Sets the access level to a list for specified entities )
22+
g.command 'set' do |c|
23+
c.flag 'access_level', desc: 'Desired level of access.'
24+
c.flag 'list_id', desc: 'Encoded ID of the list.'
25+
c.flag 'channel_ids', desc: 'List of channels you wish to update access for. Can only be used if user_ids is not provided.'
26+
c.flag 'user_ids', desc: 'List of users you wish to update access for. Can only be used if channel_ids is not provided.'
27+
c.action do |_global_options, options, _args|
28+
puts JSON.dump(@client.slackLists_access_set(options))
29+
end
30+
end
31+
end
32+
end
33+
end
34+
end
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 'SlackListsDownload methods.'
8+
command 'slackLists_download' do |g|
9+
g.desc 'Retrieve list download URL from an export job to download list contents'
10+
g.long_desc %( Retrieve list download URL from an export job to download list contents )
11+
g.command 'get' do |c|
12+
c.flag 'job_id', desc: 'The ID of the recently started job to export the list.'
13+
c.flag 'list_id', desc: 'Id of the list to export.'
14+
c.action do |_global_options, options, _args|
15+
puts JSON.dump(@client.slackLists_download_get(options))
16+
end
17+
end
18+
19+
g.desc 'Initiate a job to export list contents'
20+
g.long_desc %( Initiate a job to export list contents )
21+
g.command 'start' do |c|
22+
c.flag 'list_id', desc: 'Id of the list to export.'
23+
c.flag 'include_archived', desc: '.'
24+
c.action do |_global_options, options, _args|
25+
puts JSON.dump(@client.slackLists_download_start(options))
26+
end
27+
end
28+
end
29+
end
30+
end
31+
end

bin/commands/slackLists_items.rb

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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 'SlackListsItems methods.'
8+
command 'slackLists_items' do |g|
9+
g.desc 'Adds a new item to an existing list.'
10+
g.long_desc %( Adds a new item to an existing list. )
11+
g.command 'create' do |c|
12+
c.flag 'list_id', desc: 'Id of the list to add the item to.'
13+
c.flag 'duplicated_item_id', desc: 'Id of the record to make a copy of.'
14+
c.flag 'initial_fields', desc: 'Initial item data.'
15+
c.flag 'parent_item_id', desc: 'Id of the parent record for this subtask.'
16+
c.action do |_global_options, options, _args|
17+
puts JSON.dump(@client.slackLists_items_create(options))
18+
end
19+
end
20+
21+
g.desc 'Deletes an item from an existing list.'
22+
g.long_desc %( Deletes an item from an existing list. )
23+
g.command 'delete' do |c|
24+
c.flag 'id', desc: 'Id of item to delete.'
25+
c.flag 'list_id', desc: 'Id of list that contains the item.'
26+
c.action do |_global_options, options, _args|
27+
puts JSON.dump(@client.slackLists_items_delete(options))
28+
end
29+
end
30+
31+
g.desc 'Deletes multiple items from an existing list.'
32+
g.long_desc %( Deletes multiple items from an existing list. )
33+
g.command 'deleteMultiple' do |c|
34+
c.flag 'ids', desc: 'Ids of items to delete.'
35+
c.flag 'list_id', desc: 'Id of list that contains the items.'
36+
c.action do |_global_options, options, _args|
37+
puts JSON.dump(@client.slackLists_items_deleteMultiple(options))
38+
end
39+
end
40+
41+
g.desc 'Get a row from a list'
42+
g.long_desc %( Get a row from a list )
43+
g.command 'info' do |c|
44+
c.flag 'id', desc: 'Id of row to get.'
45+
c.flag 'list_id', desc: 'Id of the list to export.'
46+
c.flag 'include_is_subscribed', desc: 'Set to true to include is_subscribed data for returned list row.'
47+
c.action do |_global_options, options, _args|
48+
puts JSON.dump(@client.slackLists_items_info(options))
49+
end
50+
end
51+
52+
g.desc 'Get records from a list'
53+
g.long_desc %( Get records from a list )
54+
g.command 'list' do |c|
55+
c.flag 'list_id', desc: 'Id of list.'
56+
c.flag 'archived', desc: 'Boolean indicating whether archived items or normal items should be returned.'
57+
c.flag 'cursor', desc: 'Next cursor for pagination.'
58+
c.flag 'limit', desc: 'The maximum number of records to return.'
59+
c.action do |_global_options, options, _args|
60+
puts JSON.dump(@client.slackLists_items_list(options))
61+
end
62+
end
63+
64+
g.desc 'Updates cells in a list'
65+
g.long_desc %( Updates cells in a list )
66+
g.command 'update' do |c|
67+
c.flag 'cells', desc: 'Cells to update.'
68+
c.flag 'list_id', desc: 'Id of list to add or update cells.'
69+
c.action do |_global_options, options, _args|
70+
puts JSON.dump(@client.slackLists_items_update(options))
71+
end
72+
end
73+
end
74+
end
75+
end
76+
end

bin/commands/workflows_featured.rb

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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 'WorkflowsFeatured methods.'
8+
command 'workflows_featured' do |g|
9+
g.desc 'Add featured workflows to a channel.'
10+
g.long_desc %( Add featured workflows to a channel. )
11+
g.command 'add' do |c|
12+
c.flag 'channel_id', desc: 'Channel to add featured workflow in.'
13+
c.flag 'trigger_ids', desc: 'Comma-separated array of trigger IDs to add; max 15.'
14+
c.action do |_global_options, options, _args|
15+
puts JSON.dump(@client.workflows_featured_add(options))
16+
end
17+
end
18+
19+
g.desc 'List the featured workflows for specified channels.'
20+
g.long_desc %( List the featured workflows for specified channels. )
21+
g.command 'list' do |c|
22+
c.flag 'channel_ids', desc: 'Comma-separated array of channel IDs to list featured workflows for.'
23+
c.action do |_global_options, options, _args|
24+
puts JSON.dump(@client.workflows_featured_list(options))
25+
end
26+
end
27+
28+
g.desc 'Remove featured workflows from a channel.'
29+
g.long_desc %( Remove featured workflows from a channel. )
30+
g.command 'remove' do |c|
31+
c.flag 'channel_id', desc: 'Channel to remove featured workflow from.'
32+
c.flag 'trigger_ids', desc: 'Comma-separated array of trigger IDs to remove; max 15.'
33+
c.action do |_global_options, options, _args|
34+
puts JSON.dump(@client.workflows_featured_remove(options))
35+
end
36+
end
37+
38+
g.desc 'Set featured workflows for a channel.'
39+
g.long_desc %( Set featured workflows for a channel. )
40+
g.command 'set' do |c|
41+
c.flag 'channel_id', desc: 'Channel to set featured workflows in.'
42+
c.flag 'trigger_ids', desc: 'Comma-separated array of trigger IDs that will replace any existing featured workflows in the channel; max 15.'
43+
c.action do |_global_options, options, _args|
44+
puts JSON.dump(@client.workflows_featured_set(options))
45+
end
46+
end
47+
end
48+
end
49+
end
50+
end

0 commit comments

Comments
 (0)