-
-
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.
Merge pull request #522 from slack-ruby/automated-api-update
Update API from slack-api-ref@8a22e57
- Loading branch information
Showing
53 changed files
with
1,263 additions
and
29 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
31 changes: 31 additions & 0 deletions
31
bin/commands/admin_workflows_triggers_types_permissions.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,31 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
module Slack | ||
module Cli | ||
class App | ||
desc 'AdminWorkflowsTriggersTypesPermissions methods.' | ||
command 'admin_workflows_triggers_types_permissions' do |g| | ||
g.desc 'list the permissions for using each trigger type in workflow builder' | ||
g.long_desc %( list the permissions for using each trigger type in workflow builder ) | ||
g.command 'lookup' do |c| | ||
c.flag 'trigger_type_ids', desc: 'The trigger types IDs for which to get the permissions.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.admin_workflows_triggers_types_permissions_lookup(options)) | ||
end | ||
end | ||
|
||
g.desc 'Set the permissions for using a trigger type in workflow builder' | ||
g.long_desc %( Set the permissions for using a trigger type in workflow builder ) | ||
g.command 'set' do |c| | ||
c.flag 'id', desc: 'The trigger type ID for which to set the permissions.' | ||
c.flag 'visibility', desc: 'The function visibility.' | ||
c.flag 'user_ids', desc: 'List of user IDs to allow for named_entities visibility.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.admin_workflows_triggers_types_permissions_set(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,40 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
module Slack | ||
module Cli | ||
class App | ||
desc 'Canvases methods.' | ||
command 'canvases' do |g| | ||
g.desc 'Create Canvas for a user.' | ||
g.long_desc %( Create Canvas for a user. ) | ||
g.command 'create' do |c| | ||
c.flag 'document_content', desc: 'Structure describing the type and value of the content to create.' | ||
c.flag 'title', desc: 'Title of the newly created canvas.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.canvases_create(options)) | ||
end | ||
end | ||
|
||
g.desc 'Deletes a canvas.' | ||
g.long_desc %( Deletes a canvas. ) | ||
g.command 'delete' do |c| | ||
c.flag 'canvas_id', desc: 'Encoded ID of the canvas.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.canvases_delete(options)) | ||
end | ||
end | ||
|
||
g.desc 'Update an existing canvas' | ||
g.long_desc %( Update an existing canvas ) | ||
g.command 'edit' do |c| | ||
c.flag 'canvas_id', desc: 'Encoded ID of the canvas.' | ||
c.flag 'changes', desc: 'List of changes to apply on the specified canvas.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.canvases_edit(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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
module Slack | ||
module Cli | ||
class App | ||
desc 'CanvasesAccess methods.' | ||
command 'canvases_access' do |g| | ||
g.desc 'Remove access to a canvas for specified entities' | ||
g.long_desc %( Remove access to a canvas for specified entities ) | ||
g.command 'delete' do |c| | ||
c.flag 'canvas_id', desc: 'Encoded ID of the canvas.' | ||
c.flag 'channel_ids', desc: 'List of channels you wish to update access for.' | ||
c.flag 'user_ids', desc: 'List of users you wish to update access for.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.canvases_access_delete(options)) | ||
end | ||
end | ||
|
||
g.desc 'Sets the access level to a canvas for specified entities' | ||
g.long_desc %( Sets the access level to a canvas for specified entities ) | ||
g.command 'set' do |c| | ||
c.flag 'access_level', desc: 'Desired level of access (e.g. read, write).' | ||
c.flag 'canvas_id', desc: 'Encoded ID of the canvas.' | ||
c.flag 'channel_ids', desc: 'List of channels you wish to update access for.' | ||
c.flag 'user_ids', desc: 'List of users you wish to update access for.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.canvases_access_set(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
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 'CanvasesSections methods.' | ||
command 'canvases_sections' do |g| | ||
g.desc 'Find sections matching the provided criteria' | ||
g.long_desc %( Find sections matching the provided criteria ) | ||
g.command 'lookup' do |c| | ||
c.flag 'canvas_id', desc: 'Encoded ID of the canvas.' | ||
c.flag 'criteria', desc: 'Filtering criteria.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.canvases_sections_lookup(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,21 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
module Slack | ||
module Cli | ||
class App | ||
desc 'ConversationsCanvases methods.' | ||
command 'conversations_canvases' do |g| | ||
g.desc 'Create a Channel Canvas for a channel.' | ||
g.long_desc %( Create a Channel Canvas for a channel. ) | ||
g.command 'create' do |c| | ||
c.flag 'channel_id', desc: 'Channel ID of the channel we create the channel canvas for.' | ||
c.flag 'document_content', desc: 'Structure describing the type and value of the content to create.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.conversations_canvases_create(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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
module Slack | ||
module Cli | ||
class App | ||
desc 'ConversationsExternalinvitepermissions methods.' | ||
command 'conversations_externalInvitePermissions' do |g| | ||
g.desc "Upgrade or downgrade Slack Connect channel permissions between 'can post only' and 'can post and invite'." | ||
g.long_desc %( Upgrade or downgrade Slack Connect channel permissions between 'can post only' and 'can post and invite'. ) | ||
g.command 'set' do |c| | ||
c.flag 'action', desc: 'Type of action to be taken: upgrade or downgrade.' | ||
c.flag 'channel', desc: 'The channel ID to change external invite permissions for.' | ||
c.flag 'target_team', desc: 'The encoded team ID of the target team. Must be in the specified channel.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.conversations_externalInvitePermissions_set(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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
module Slack | ||
module Cli | ||
class App | ||
desc 'FunctionsDistributionsPermissions methods.' | ||
command 'functions_distributions_permissions' do |g| | ||
g.desc 'Grant users access to a custom slack function if its permission_type is set to named_entities' | ||
g.long_desc %( Grant users access to a custom slack function if its permission_type is set to named_entities ) | ||
g.command 'add' do |c| | ||
c.flag 'function_app_id', desc: 'The encoded ID of the app.' | ||
c.flag 'function_callback_id', desc: "The callback ID defined in the function's definition file." | ||
c.flag 'function_id', desc: 'The encoded ID of the function.' | ||
c.flag 'user_ids', desc: 'List of encoded user IDs.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.functions_distributions_permissions_add(options)) | ||
end | ||
end | ||
|
||
g.desc 'List the access type of a custom slack function and include the users with access if its permission_type is set to named_entities' | ||
g.long_desc %( List the access type of a custom slack function and include the users with access if its permission_type is set to named_entities ) | ||
g.command 'list' do |c| | ||
c.flag 'function_app_id', desc: 'The encoded ID of the app.' | ||
c.flag 'function_callback_id', desc: "The callback ID defined in the function's definition file." | ||
c.flag 'function_id', desc: 'The encoded ID of the function.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.functions_distributions_permissions_list(options)) | ||
end | ||
end | ||
|
||
g.desc 'Revoke user access to a custom slack function if permission_type set to named_entities' | ||
g.long_desc %( Revoke user access to a custom slack function if permission_type set to named_entities ) | ||
g.command 'remove' do |c| | ||
c.flag 'function_app_id', desc: 'The encoded ID of the app.' | ||
c.flag 'function_callback_id', desc: "The callback ID defined in the function's definition file." | ||
c.flag 'function_id', desc: 'The encoded ID of the function.' | ||
c.flag 'user_ids', desc: 'List of encoded user IDs.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.functions_distributions_permissions_remove(options)) | ||
end | ||
end | ||
|
||
g.desc 'Set the access type of a custom slack function and define the users to be granted access if permission_type is set to named_entities' | ||
g.long_desc %( Set the access type of a custom slack function and define the users to be granted access if permission_type is set to named_entities ) | ||
g.command 'set' do |c| | ||
c.flag 'permission_type', desc: 'The type of permission that defines how the function can be distributed.' | ||
c.flag 'function_app_id', desc: 'The encoded ID of the app.' | ||
c.flag 'function_callback_id', desc: "The callback ID defined in the function's definition file." | ||
c.flag 'function_id', desc: 'The encoded ID of the function.' | ||
c.flag 'user_ids', desc: 'List of encoded user IDs.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.functions_distributions_permissions_set(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.