|
| 1 | +# frozen_string_literal: true |
| 2 | +# This file was auto-generated by lib/tasks/web.rake |
| 3 | + |
| 4 | +module Slack |
| 5 | + module Cli |
| 6 | + class App |
| 7 | + desc 'ConversationsRequestsharedinvite methods.' |
| 8 | + command 'conversations_requestSharedInvite' do |g| |
| 9 | + g.desc 'Approves a request to add an external user to a channel and sends them a Slack Connect invite' |
| 10 | + g.long_desc %( Approves a request to add an external user to a channel and sends them a Slack Connect invite ) |
| 11 | + g.command 'approve' do |c| |
| 12 | + c.flag 'invite_id', desc: 'ID of the requested shared channel invite to approve.' |
| 13 | + c.flag 'channel_id', desc: 'Optional channel_id to which external user will be invited to. Will override the value on the requested invite.' |
| 14 | + 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.' |
| 15 | + 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.' |
| 16 | + c.action do |_global_options, options, _args| |
| 17 | + puts JSON.dump(@client.conversations_requestSharedInvite_approve(options)) |
| 18 | + end |
| 19 | + end |
| 20 | + |
| 21 | + g.desc 'Denies a request to invite an external user to a channel' |
| 22 | + g.long_desc %( Denies a request to invite an external user to a channel ) |
| 23 | + g.command 'deny' do |c| |
| 24 | + c.flag 'invite_id', desc: 'ID of the requested shared channel invite to deny.' |
| 25 | + c.flag 'message', desc: 'Optional message explaining why the request to invite was denied.' |
| 26 | + c.action do |_global_options, options, _args| |
| 27 | + puts JSON.dump(@client.conversations_requestSharedInvite_deny(options)) |
| 28 | + end |
| 29 | + end |
| 30 | + |
| 31 | + g.desc 'Lists requests to add external users to channels with ability to filter.' |
| 32 | + g.long_desc %( Lists requests to add external users to channels with ability to filter. ) |
| 33 | + g.command 'list' do |c| |
| 34 | + 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." |
| 35 | + c.flag 'include_approved', desc: 'When true approved invitation requests will be returned, otherwise they will be excluded.' |
| 36 | + c.flag 'include_denied', desc: 'When true denied invitation requests will be returned, otherwise they will be excluded.' |
| 37 | + c.flag 'include_expired', desc: 'When true expired invitation requests will be returned, otherwise they will be excluded.' |
| 38 | + c.flag 'invite_ids', desc: 'An optional list of invitation ids to look up.' |
| 39 | + c.flag 'limit', desc: 'The number of items to return. Must be between 1 - 1000 (inclusive).' |
| 40 | + c.flag 'user_id', desc: 'Optional filter to return invitation requests for the inviting user.' |
| 41 | + c.action do |_global_options, options, _args| |
| 42 | + puts JSON.dump(@client.conversations_requestSharedInvite_list(options)) |
| 43 | + end |
| 44 | + end |
| 45 | + end |
| 46 | + end |
| 47 | + end |
| 48 | +end |
0 commit comments