Skip to content

Commit 0c36529

Browse files
committed
Update API from slack-api-ref@c408935 (2025-07-14)
1 parent fb8f307 commit 0c36529

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* [#559](https://github.com/slack-ruby/slack-ruby-client/pull/559): Enable name-to-id translation of non-public channels - [@eizengan](https://github.com/eizengan).
55
* [#560](https://github.com/slack-ruby/slack-ruby-client/pull/560): Name-to-id translation can supply all sensible list options - [@eizengan](https://github.com/eizengan).
66
* [#561](https://github.com/slack-ruby/slack-ruby-client/issues/563): Raise InvalidSignature when verifying a request without a signature - [@wesleyjellis](https://github.com/wesleyjellis).
7+
* [#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).
78
* Your contribution here.
89

910
### 2.6.0 (2025/05/24)

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))

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

lib/slack/web/api/errors.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@ class UserDoesNotOwnChannel < SlackError; end
676676
class UserEmailUnverified < SlackError; end
677677
class UserIsAlreadyDeleted < SlackError; end
678678
class UserIsBot < SlackError; end
679+
class UserIsDeactivated < SlackError; end
679680
class UserIsNotAGuest < SlackError; end
680681
class UserIsRestricted < SlackError; end
681682
class UserIsUltraRestricted < SlackError; end
@@ -1369,6 +1370,7 @@ class WorkflowsExportCsvNotEnabled < SlackError; end
13691370
'user_email_unverified' => UserEmailUnverified,
13701371
'user_is_already_deleted' => UserIsAlreadyDeleted,
13711372
'user_is_bot' => UserIsBot,
1373+
'user_is_deactivated' => UserIsDeactivated,
13721374
'user_is_not_a_guest' => UserIsNotAGuest,
13731375
'user_is_restricted' => UserIsRestricted,
13741376
'user_is_ultra_restricted' => UserIsUltraRestricted,

spec/slack/web/api/endpoints/admin_apps_config_spec.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55

66
RSpec.describe Slack::Web::Api::Endpoints::AdminAppsConfig do
77
let(:client) { Slack::Web::Client.new }
8-
context 'admin.apps.config_lookup' do
9-
it 'requires app_ids' do
10-
expect { client.admin_apps_config_lookup }.to raise_error ArgumentError, /Required arguments :app_ids missing/
11-
end
12-
end
138
context 'admin.apps.config_set' do
149
it 'requires app_id' do
1510
expect { client.admin_apps_config_set }.to raise_error ArgumentError, /Required arguments :app_id missing/

0 commit comments

Comments
 (0)