-
-
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@8a22e57 (2024-02-18)
- Loading branch information
Showing
14 changed files
with
193 additions
and
9 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
22 changes: 22 additions & 0 deletions
22
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,22 @@ | ||
# 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 '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
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
29 changes: 29 additions & 0 deletions
29
lib/slack/web/api/endpoints/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,29 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
module Slack | ||
module Web | ||
module Api | ||
module Endpoints | ||
module AdminWorkflowsTriggersTypesPermissions | ||
# | ||
# Set the permissions for using a trigger type in workflow builder | ||
# | ||
# @option options [Object] :id | ||
# The trigger type ID for which to set the permissions. | ||
# @option options [enum] :visibility | ||
# The function visibility. | ||
# @option options [array] :user_ids | ||
# List of user IDs to allow for named_entities visibility. | ||
# @see https://api.slack.com/methods/admin.workflows.triggers.types.permissions.set | ||
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.workflows.triggers.types.permissions/admin.workflows.triggers.types.permissions.set.json | ||
def admin_workflows_triggers_types_permissions_set(options = {}) | ||
raise ArgumentError, 'Required arguments :id missing' if options[:id].nil? | ||
raise ArgumentError, 'Required arguments :visibility missing' if options[:visibility].nil? | ||
post('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
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
10 files
16 changes: 16 additions & 0 deletions
16
spec/slack/web/api/endpoints/admin_workflows_triggers_types_permissions_spec.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,16 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
require 'spec_helper' | ||
|
||
RSpec.describe Slack::Web::Api::Endpoints::AdminWorkflowsTriggersTypesPermissions do | ||
let(:client) { Slack::Web::Client.new } | ||
context 'admin.workflows.triggers.types.permissions_set' do | ||
it 'requires id' do | ||
expect { client.admin_workflows_triggers_types_permissions_set(visibility: %q[]) }.to raise_error ArgumentError, /Required arguments :id missing/ | ||
end | ||
it 'requires visibility' do | ||
expect { client.admin_workflows_triggers_types_permissions_set(id: %q[['FTT01', 'FTT02', 'FTT03']]) }.to raise_error ArgumentError, /Required arguments :visibility missing/ | ||
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