Skip to content

Commit a394617

Browse files
committed
Update API from slack-api-ref@c408935 (2025-06-18)
1 parent ada6f96 commit a394617

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
### 2.6.1 (Next)
22

33
* [#554](https://github.com/slack-ruby/slack-ruby-client/pull/557): Require Faraday >= 2.0.1 - [@anrichvs](https://github.com/AnrichVS).
4+
* [#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).
45
* Your contribution here.
56

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

bin/commands/admin_apps_config.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 %( 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

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

Lines changed: 2 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

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)