From c14ffbb05c4d4be857e706f1d2a3f12dfe7bab23 Mon Sep 17 00:00:00 2001 From: slack-ruby-ci-bot Date: Thu, 27 Jul 2023 23:18:43 +0000 Subject: [PATCH] Update API from slack-api-ref@0d3f0b6 (2023-07-27) --- bin/commands/admin_users.rb | 2 +- lib/slack/web/api/endpoints/admin_users.rb | 2 +- lib/slack/web/api/errors.rb | 2 -- lib/slack/web/api/slack-api-ref | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/commands/admin_users.rb b/bin/commands/admin_users.rb index 036b003a..4515cbbb 100644 --- a/bin/commands/admin_users.rb +++ b/bin/commands/admin_users.rb @@ -31,7 +31,7 @@ class App c.flag 'is_restricted', desc: 'Is this user a multi-channel guest user? (default: false).' c.flag 'is_ultra_restricted', desc: 'Is this user a single channel guest user? (default: false).' c.flag 'real_name', desc: 'Full name of the user.' - c.flag 'resend', desc: 'Allow this invite to be resent in the future if a user has not signed up yet. (default: false).' + c.flag 'resend', desc: 'Allow this invite to be resent in the future if a user has not signed up yet. Resending can only be done via the UI and has no expiration. (default: false).' c.action do |_global_options, options, _args| puts JSON.dump(@client.admin_users_invite(options)) end diff --git a/lib/slack/web/api/endpoints/admin_users.rb b/lib/slack/web/api/endpoints/admin_users.rb index ba22e893..b5f2eaad 100644 --- a/lib/slack/web/api/endpoints/admin_users.rb +++ b/lib/slack/web/api/endpoints/admin_users.rb @@ -49,7 +49,7 @@ def admin_users_assign(options = {}) # @option options [string] :real_name # Full name of the user. # @option options [boolean] :resend - # Allow this invite to be resent in the future if a user has not signed up yet. (default: false). + # Allow this invite to be resent in the future if a user has not signed up yet. Resending can only be done via the UI and has no expiration. (default: false). # @see https://api.slack.com/methods/admin.users.invite # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.users/admin.users.invite.json def admin_users_invite(options = {}) diff --git a/lib/slack/web/api/errors.rb b/lib/slack/web/api/errors.rb index 5d3ff3fd..c785dcfe 100644 --- a/lib/slack/web/api/errors.rb +++ b/lib/slack/web/api/errors.rb @@ -594,7 +594,6 @@ class UserIsRestricted < SlackError; end class UserIsUltraRestricted < SlackError; end class UserMustBeAdmin < SlackError; end class UserMustBeInWorkspace < SlackError; end - class UserNotAMemberOfThisWorkspace < SlackError; end class UserNotFound < SlackError; end class UserNotInChannel < SlackError; end class UserNotVisible < SlackError; end @@ -1199,7 +1198,6 @@ class WorkflowsExportCsvNotEnabled < SlackError; end 'user_is_ultra_restricted' => UserIsUltraRestricted, 'user_must_be_admin' => UserMustBeAdmin, 'user_must_be_in_workspace' => UserMustBeInWorkspace, - 'user_not_a_member_of_this_workspace' => UserNotAMemberOfThisWorkspace, 'user_not_found' => UserNotFound, 'user_not_in_channel' => UserNotInChannel, 'user_not_visible' => UserNotVisible, diff --git a/lib/slack/web/api/slack-api-ref b/lib/slack/web/api/slack-api-ref index 0d3f0b66..19aa0f0f 160000 --- a/lib/slack/web/api/slack-api-ref +++ b/lib/slack/web/api/slack-api-ref @@ -1 +1 @@ -Subproject commit 0d3f0b6629e1a13722604dcdfae53ad1b7a7f59e +Subproject commit 19aa0f0f6eecc106574f687f52aa27e66f473bfd