-
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update API from slack-api-ref@3ec3c10 (2024-09-09)
- Loading branch information
Showing
14 changed files
with
140 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
module Slack | ||
module Cli | ||
class App | ||
desc 'ConversationsRequestsharedinvite methods.' | ||
command 'conversations_requestSharedInvite' do |g| | ||
g.desc 'Approves a request to add an external user to a channel and sends them a Slack Connect invite' | ||
g.long_desc %( Approves a request to add an external user to a channel and sends them a Slack Connect invite ) | ||
g.command 'approve' do |c| | ||
c.flag 'invite_id', desc: 'ID of the requested shared channel invite to approve.' | ||
c.flag 'channel_id', desc: 'Optional channel_id to which external user will be invited to. Will override the value on the requested invite.' | ||
c.flag 'is_external_limited', desc: 'Optional boolean on whether the invited team will have post-only permissions in the channel. Will override the value on the requested invite.' | ||
c.flag 'message', desc: 'Object describing the text to send along with the invite. If this object is specified, both text and is_override are required properties. If is_override is set to true, text will override the original invitation message. Otherwise, text will be appended to the original invitation message. The total length of the message cannot exceed 560 characters. If is_override is set to false, the length of text and the user specified message on the invite request in total must be less than 560 characters.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.conversations_requestSharedInvite_approve(options)) | ||
end | ||
end | ||
|
||
g.desc 'Denies a request to invite an external user to a channel' | ||
g.long_desc %( Denies a request to invite an external user to a channel ) | ||
g.command 'deny' do |c| | ||
c.flag 'invite_id', desc: 'ID of the requested shared channel invite to deny.' | ||
c.flag 'message', desc: 'Optional message explaining why the request to invite was denied.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.conversations_requestSharedInvite_deny(options)) | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
lib/slack/web/api/endpoints/conversations_requestSharedInvite.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
module Slack | ||
module Web | ||
module Api | ||
module Endpoints | ||
module ConversationsRequestsharedinvite | ||
# | ||
# Approves a request to add an external user to a channel and sends them a Slack Connect invite | ||
# | ||
# @option options [Object] :invite_id | ||
# ID of the requested shared channel invite to approve. | ||
# @option options [string] :channel_id | ||
# Optional channel_id to which external user will be invited to. Will override the value on the requested invite. | ||
# @option options [boolean] :is_external_limited | ||
# Optional boolean on whether the invited team will have post-only permissions in the channel. Will override the value on the requested invite. | ||
# @option options [object] :message | ||
# Object describing the text to send along with the invite. If this object is specified, both text and is_override are required properties. If is_override is set to true, text will override the original invitation message. Otherwise, text will be appended to the original invitation message. The total length of the message cannot exceed 560 characters. If is_override is set to false, the length of text and the user specified message on the invite request in total must be less than 560 characters. | ||
# @see https://api.slack.com/methods/conversations.requestSharedInvite.approve | ||
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/conversations.requestSharedInvite/conversations.requestSharedInvite.approve.json | ||
def conversations_requestSharedInvite_approve(options = {}) | ||
raise ArgumentError, 'Required arguments :invite_id missing' if options[:invite_id].nil? | ||
post('conversations.requestSharedInvite.approve', options) | ||
end | ||
|
||
# | ||
# Denies a request to invite an external user to a channel | ||
# | ||
# @option options [Object] :invite_id | ||
# ID of the requested shared channel invite to deny. | ||
# @option options [string] :message | ||
# Optional message explaining why the request to invite was denied. | ||
# @see https://api.slack.com/methods/conversations.requestSharedInvite.deny | ||
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/conversations.requestSharedInvite/conversations.requestSharedInvite.deny.json | ||
def conversations_requestSharedInvite_deny(options = {}) | ||
raise ArgumentError, 'Required arguments :invite_id missing' if options[:invite_id].nil? | ||
post('conversations.requestSharedInvite.deny', options) | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule slack-api-ref
updated
14 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.