-
-
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-10-26)
- Loading branch information
Showing
26 changed files
with
437 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
module Slack | ||
module Cli | ||
class App | ||
desc 'AdminRecordchannels methods.' | ||
command 'admin_recordChannels' do |g| | ||
g.desc 'Unlink a Salesforce Record from channel' | ||
g.long_desc %( Unlink a Salesforce Record from channel ) | ||
g.command 'unlink' do |c| | ||
c.flag 'channel', desc: 'Salesforce Chanel ID to be unlinked from Salesforce Record.' | ||
c.flag 'new_name', desc: 'The new name of the channel.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.admin_recordChannels_unlink(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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
module Slack | ||
module Cli | ||
class App | ||
desc 'AssistantThreads methods.' | ||
command 'assistant_threads' do |g| | ||
g.desc 'Set the status for an AI assistant thread.' | ||
g.long_desc %( Set the status for an AI assistant thread. ) | ||
g.command 'setStatus' do |c| | ||
c.flag 'channel_id', desc: 'Channel ID containing the assistant thread.' | ||
c.flag 'status', desc: "Status of the specified bot user, e.g. 'is thinking...'." | ||
c.flag 'thread_ts', desc: 'Message timestamp of the thread of where to set the status.' | ||
c.flag 'is_send_allowed', desc: 'Whether or not the user is allowed to send a message while the status is being displayed.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.assistant_threads_setStatus(options)) | ||
end | ||
end | ||
|
||
g.desc 'Set suggested prompts for the given assistant thread' | ||
g.long_desc %( Set suggested prompts for the given assistant thread ) | ||
g.command 'setSuggestedPrompts' do |c| | ||
c.flag 'channel_id', desc: 'Channel ID containing the assistant thread.' | ||
c.flag 'prompts', desc: '.' | ||
c.flag 'thread_ts', desc: 'Message timestamp of the thread to set suggested prompts for.' | ||
c.flag 'title', desc: 'Title for the prompts. For example: Suggested Prompts, Related questions.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.assistant_threads_setSuggestedPrompts(options)) | ||
end | ||
end | ||
|
||
g.desc 'Set the title for the given assistant thread' | ||
g.long_desc %( Set the title for the given assistant thread ) | ||
g.command 'setTitle' do |c| | ||
c.flag 'channel_id', desc: 'Channel ID containing the assistant thread.' | ||
c.flag 'thread_ts', desc: 'Message timestamp of the thread to set suggested prompts for.' | ||
c.flag 'title', desc: 'The title to use for the thread.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.assistant_threads_setTitle(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
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,48 @@ | ||
# 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 | ||
|
||
g.desc 'Lists requests to add external users to channels with ability to filter.' | ||
g.long_desc %( Lists requests to add external users to channels with ability to filter. ) | ||
g.command 'list' do |c| | ||
c.flag 'cursor', desc: "Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. See pagination for more detail." | ||
c.flag 'include_approved', desc: 'When true approved invitation requests will be returned, otherwise they will be excluded.' | ||
c.flag 'include_denied', desc: 'When true denied invitation requests will be returned, otherwise they will be excluded.' | ||
c.flag 'include_expired', desc: 'When true expired invitation requests will be returned, otherwise they will be excluded.' | ||
c.flag 'invite_ids', desc: 'An optional list of invitation ids to look up.' | ||
c.flag 'limit', desc: 'The number of items to return. Must be between 1 - 1000 (inclusive).' | ||
c.flag 'user_id', desc: 'Optional filter to return invitation requests for the inviting user.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.conversations_requestSharedInvite_list(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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
module Slack | ||
module Web | ||
module Api | ||
module Endpoints | ||
module AdminRecordchannels | ||
# | ||
# Unlink a Salesforce Record from channel | ||
# | ||
# @option options [channel] :channel | ||
# Salesforce Chanel ID to be unlinked from Salesforce Record. | ||
# @option options [string] :new_name | ||
# The new name of the channel. | ||
# @see https://api.slack.com/methods/admin.recordChannels.unlink | ||
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.recordChannels/admin.recordChannels.unlink.json | ||
def admin_recordChannels_unlink(options = {}) | ||
raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil? | ||
raise ArgumentError, 'Required arguments :new_name missing' if options[:new_name].nil? | ||
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel] | ||
post('admin.recordChannels.unlink', 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
Oops, something went wrong.