Skip to content

Commit a026f1e

Browse files
committed
Update API from slack-api-ref@c408935 (2025-07-28)
1 parent cec95a5 commit a026f1e

18 files changed

+431
-7
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))
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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 'AdminWorkflowsTriggersTypesPermissionswithsteprestrictions methods.'
8+
command 'admin_workflows_triggers_types_permissionsWithStepRestrictions' do |g|
9+
g.desc 'list the permissions for using each trigger type with step restrictions'
10+
g.long_desc %( list the permissions for using each trigger type with step restrictions )
11+
g.command 'lookup' do |c|
12+
c.flag 'trigger_type_ids', desc: 'The trigger types IDs for which to get the permissions.'
13+
c.action do |_global_options, options, _args|
14+
puts JSON.dump(@client.admin_workflows_triggers_types_permissionsWithStepRestrictions_lookup(options))
15+
end
16+
end
17+
18+
g.desc 'Set the permissions for using a trigger type with step restrictions'
19+
g.long_desc %( Set the permissions for using a trigger type with step restrictions )
20+
g.command 'set' do |c|
21+
c.flag 'id', desc: 'The trigger type ID for which to set the permissions.'
22+
c.flag 'visibility', desc: 'The function visibility.'
23+
c.flag 'step_restrictions', desc: 'List of steps to restrict.'
24+
c.flag 'user_ids', desc: 'List of user IDs to allow for named_entities visibility.'
25+
c.action do |_global_options, options, _args|
26+
puts JSON.dump(@client.admin_workflows_triggers_types_permissionsWithStepRestrictions_set(options))
27+
end
28+
end
29+
end
30+
end
31+
end
32+
end

bin/commands/assistant_search.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ class App
2121
puts JSON.dump(@client.assistant_search_context(options))
2222
end
2323
end
24+
25+
g.desc 'Returns search capabilities on a given team.'
26+
g.long_desc %( Returns search capabilities on a given team. )
27+
g.command 'info' do |c|
28+
c.action do |_global_options, options, _args|
29+
puts JSON.dump(@client.assistant_search_info(options))
30+
end
31+
end
2432
end
2533
end
2634
end

bin/commands/slackLists_items.rb

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 'Deletes an item from an existing list.'
10+
g.long_desc %( Deletes an item from an existing list. )
11+
g.command 'delete' do |c|
12+
c.flag 'id', desc: 'Id of item to delete.'
13+
c.flag 'list_id', desc: 'Id of list that contains the item.'
14+
c.action do |_global_options, options, _args|
15+
puts JSON.dump(@client.slackLists_items_delete(options))
16+
end
17+
end
18+
19+
g.desc 'Deletes multiple items from an existing list.'
20+
g.long_desc %( Deletes multiple items from an existing list. )
21+
g.command 'deleteMultiple' do |c|
22+
c.flag 'ids', desc: 'Ids of items to delete.'
23+
c.flag 'list_id', desc: 'Id of list that contains the items.'
24+
c.action do |_global_options, options, _args|
25+
puts JSON.dump(@client.slackLists_items_deleteMultiple(options))
26+
end
27+
end
28+
29+
g.desc 'Get records from a list'
30+
g.long_desc %( Get records from a list )
31+
g.command 'list' do |c|
32+
c.flag 'list_id', desc: 'Id of list.'
33+
c.flag 'archived', desc: 'Boolean indicating whether archived items or normal items should be returned.'
34+
c.flag 'cursor', desc: 'Next cursor for pagination.'
35+
c.flag 'limit', desc: 'The maximum number of records to return.'
36+
c.action do |_global_options, options, _args|
37+
puts JSON.dump(@client.slackLists_items_list(options))
38+
end
39+
end
40+
end
41+
end
42+
end
43+
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

lib/slack/web/api/endpoints.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
require_relative 'endpoints/admin_workflows_collaborators'
3434
require_relative 'endpoints/admin_workflows_permissions'
3535
require_relative 'endpoints/admin_workflows_triggers_types_permissions'
36+
require_relative 'endpoints/admin_workflows_triggers_types_permissionsWithStepRestrictions'
3637
require_relative 'endpoints/api'
3738
require_relative 'endpoints/apps'
3839
require_relative 'endpoints/apps_activities'
@@ -77,6 +78,7 @@
7778
require_relative 'endpoints/reminders'
7879
require_relative 'endpoints/rtm'
7980
require_relative 'endpoints/search'
81+
require_relative 'endpoints/slackLists_items'
8082
require_relative 'endpoints/stars'
8183
require_relative 'endpoints/team'
8284
require_relative 'endpoints/team_billing'
@@ -93,6 +95,7 @@
9395
require_relative 'endpoints/users_profile'
9496
require_relative 'endpoints/views'
9597
require_relative 'endpoints/workflows'
98+
require_relative 'endpoints/workflows_featured'
9699
require_relative 'endpoints/workflows_triggers_permissions'
97100

98101
module Slack
@@ -134,6 +137,7 @@ module Endpoints
134137
include AdminWorkflowsCollaborators
135138
include AdminWorkflowsPermissions
136139
include AdminWorkflowsTriggersTypesPermissions
140+
include AdminWorkflowsTriggersTypesPermissionswithsteprestrictions
137141
include Api
138142
include Apps
139143
include AppsActivities
@@ -178,6 +182,7 @@ module Endpoints
178182
include Reminders
179183
include Rtm
180184
include Search
185+
include SlackListsItems
181186
include Stars
182187
include Team
183188
include TeamBilling
@@ -194,6 +199,7 @@ module Endpoints
194199
include UsersProfile
195200
include Views
196201
include Workflows
202+
include WorkflowsFeatured
197203
include WorkflowsTriggersPermissions
198204
end
199205
end

lib/slack/web/api/endpoints/admin_apps_config.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ module AdminAppsConfig
1111
#
1212
# @option options [array] :app_ids
1313
# An array of app IDs to get app configs for.
14+
# @option options [array] :rich_link_preview_types
15+
# return apps with the corresponding rich link preview layouts.
1416
# @see https://api.slack.com/methods/admin.apps.config.lookup
1517
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps.config/admin.apps.config.lookup.json
1618
def admin_apps_config_lookup(options = {})
17-
raise ArgumentError, 'Required arguments :app_ids missing' if options[:app_ids].nil?
1819
post('admin.apps.config.lookup', options)
1920
end
2021

@@ -25,6 +26,8 @@ def admin_apps_config_lookup(options = {})
2526
# The encoded app ID to set the app config for.
2627
# @option options [object] :domain_restrictions
2728
# 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.
29+
# @option options [enum] :rich_link_preview_type
30+
# Indicates the app-level override for rich link preview. Unsupported for free teams.
2831
# @option options [enum] :workflow_auth_strategy
2932
# The workflow auth permission. Can be one of builder_choice or end_user_only.
3033
# @see https://api.slack.com/methods/admin.apps.config.set
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# frozen_string_literal: true
2+
# This file was auto-generated by lib/tasks/web.rake
3+
4+
module Slack
5+
module Web
6+
module Api
7+
module Endpoints
8+
module AdminWorkflowsTriggersTypesPermissionswithsteprestrictions
9+
#
10+
# list the permissions for using each trigger type with step restrictions
11+
#
12+
# @option options [array] :trigger_type_ids
13+
# The trigger types IDs for which to get the permissions.
14+
# @see https://api.slack.com/methods/admin.workflows.triggers.types.permissionsWithStepRestrictions.lookup
15+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.workflows.triggers.types.permissionsWithStepRestrictions/admin.workflows.triggers.types.permissionsWithStepRestrictions.lookup.json
16+
def admin_workflows_triggers_types_permissionsWithStepRestrictions_lookup(options = {})
17+
raise ArgumentError, 'Required arguments :trigger_type_ids missing' if options[:trigger_type_ids].nil?
18+
post('admin.workflows.triggers.types.permissionsWithStepRestrictions.lookup', options)
19+
end
20+
21+
#
22+
# Set the permissions for using a trigger type with step restrictions
23+
#
24+
# @option options [Object] :id
25+
# The trigger type ID for which to set the permissions.
26+
# @option options [enum] :visibility
27+
# The function visibility.
28+
# @option options [array] :step_restrictions
29+
# List of steps to restrict.
30+
# @option options [array] :user_ids
31+
# List of user IDs to allow for named_entities visibility.
32+
# @see https://api.slack.com/methods/admin.workflows.triggers.types.permissionsWithStepRestrictions.set
33+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.workflows.triggers.types.permissionsWithStepRestrictions/admin.workflows.triggers.types.permissionsWithStepRestrictions.set.json
34+
def admin_workflows_triggers_types_permissionsWithStepRestrictions_set(options = {})
35+
raise ArgumentError, 'Required arguments :id missing' if options[:id].nil?
36+
raise ArgumentError, 'Required arguments :visibility missing' if options[:visibility].nil?
37+
post('admin.workflows.triggers.types.permissionsWithStepRestrictions.set', options)
38+
end
39+
end
40+
end
41+
end
42+
end
43+
end

lib/slack/web/api/endpoints/assistant_search.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ def assistant_search_context(options = {})
3737
post('assistant.search.context', options)
3838
end
3939
end
40+
41+
#
42+
# Returns search capabilities on a given team.
43+
#
44+
# @see https://api.slack.com/methods/assistant.search.info
45+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/assistant.search/assistant.search.info.json
46+
def assistant_search_info(options = {})
47+
post('assistant.search.info', options)
48+
end
4049
end
4150
end
4251
end

0 commit comments

Comments
 (0)