Skip to content

Commit 2b654eb

Browse files
web-flowdblock
authored andcommitted
Update API from slack-api-ref@f2e768a (2023-09-16)
1 parent 506376c commit 2b654eb

30 files changed

+567
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* [#491](https://github.com/slack-ruby/slack-ruby-client/pull/491): Added code coverage - [@dblock](https://github.com/dblock).
1919
* [#486](https://github.com/slack-ruby/slack-ruby-client/pull/486): Async handler support for Slack::RealTime::Config and Client - [@milestruecar](https://github.com/milestruecar).
2020
* [#489](https://github.com/slack-ruby-client/pulls/489): Update API from [slack-api-ref@0d3f0b6](https://github.com/slack-ruby/slack-api-ref/commit/0d3f0b6) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot).
21+
* [#493](https://github.com/slack-ruby-client/pulls/493): Update API from [slack-api-ref@f2e768a](https://github.com/slack-ruby/slack-api-ref/commit/f2e768a) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot).
2122
* Your contribution here.
2223

2324
### 2.1.0 (2023/03/17)

bin/commands/admin_apps_activities.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class App
99
g.desc 'Get logs for a specified team/org'
1010
g.long_desc %( Get logs for a specified team/org )
1111
g.command 'list' do |c|
12-
c.flag 'app_id', desc: 'The id of the app to get activities from.'
13-
c.flag 'component_id', desc: "The component id of log events to be returned. Will be 'FnXXXXXX' for functions, and 'WfXXXXXX' for worflows."
12+
c.flag 'app_id', desc: 'The ID of the app to get activities from.'
13+
c.flag 'component_id', desc: "The component ID of log events to be returned. Will be 'FnXXXXXX' for functions, and 'WfXXXXXX' for worflows."
1414
c.flag 'component_type', desc: "The component type of log events to be returned. Acceptable values are ('events_api', 'workflows', 'functions', 'tables')."
1515
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."
1616
c.flag 'limit', desc: 'The maximum number of items to return.'
@@ -21,7 +21,7 @@ class App
2121
c.flag 'sort_direction', desc: 'The direction you want the data sorted by (always by timestamp).'
2222
c.flag 'source', desc: "The source of log events to be returned. Acceptable values are ('slack', 'developer')."
2323
c.flag 'team_id', desc: 'The team who owns this log.'
24-
c.flag 'trace_id', desc: 'The trace id of log events to be returned.'
24+
c.flag 'trace_id', desc: 'The trace ID of log events to be returned.'
2525
c.action do |_global_options, options, _args|
2626
puts JSON.dump(@client.admin_apps_activities_list(options))
2727
end

bin/commands/admin_apps_config.rb

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 'AdminAppsConfig methods.'
8+
command 'admin_apps_config' do |g|
9+
g.desc 'Look up the app config for connectors by their IDs'
10+
g.long_desc %( Look up the app config for connectors by their IDs )
11+
g.command 'lookup' do |c|
12+
c.flag 'app_ids', desc: 'An array of app IDs to get app configs for.'
13+
c.action do |_global_options, options, _args|
14+
puts JSON.dump(@client.admin_apps_config_lookup(options))
15+
end
16+
end
17+
18+
g.desc 'Set the app config for a connector'
19+
g.long_desc %( Set the app config for a connector )
20+
g.command 'set' do |c|
21+
c.flag 'app_id', desc: 'The encoded app ID to set the app config for.'
22+
c.flag 'domain_restrictions', desc: 'Domain restrictions for the app.'
23+
c.flag 'workflow_auth_strategy', desc: 'The workflow auth permission.'
24+
c.action do |_global_options, options, _args|
25+
puts JSON.dump(@client.admin_apps_config_set(options))
26+
end
27+
end
28+
end
29+
end
30+
end
31+
end

bin/commands/admin_functions.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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 'AdminFunctions methods.'
8+
command 'admin_functions' do |g|
9+
g.desc 'Look up functions by a set of apps'
10+
g.long_desc %( Look up functions by a set of apps )
11+
g.command 'list' do |c|
12+
c.flag 'app_ids', desc: 'Comma-separated array of app IDs to get functions for; max 50.'
13+
c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.'
14+
c.flag 'limit', desc: 'The number of results that will be returned by the API on each invocation. Must be between 1 and 1000, both inclusive.'
15+
c.flag 'team_id', desc: 'The team context to retrieve functions from.'
16+
c.action do |_global_options, options, _args|
17+
puts JSON.dump(@client.admin_functions_list(options))
18+
end
19+
end
20+
end
21+
end
22+
end
23+
end
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 'AdminFunctionsPermissions methods.'
8+
command 'admin_functions_permissions' do |g|
9+
g.desc 'Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities.'
10+
g.long_desc %( Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. )
11+
g.command 'lookup' do |c|
12+
c.flag 'function_ids', desc: 'An array of function IDs to get permissions for.'
13+
c.action do |_global_options, options, _args|
14+
puts JSON.dump(@client.admin_functions_permissions_lookup(options))
15+
end
16+
end
17+
18+
g.desc 'Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities'
19+
g.long_desc %( Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities )
20+
g.command 'set' do |c|
21+
c.flag 'function_id', desc: 'The function ID to set permissions for.'
22+
c.flag 'visibility', desc: 'The function visibility.'
23+
c.flag 'user_ids', desc: 'List of user IDs to allow for named_entities visibility.'
24+
c.action do |_global_options, options, _args|
25+
puts JSON.dump(@client.admin_functions_permissions_set(options))
26+
end
27+
end
28+
end
29+
end
30+
end
31+
end

bin/commands/admin_teams.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class App
2222
g.long_desc %( List all teams on an Enterprise organization )
2323
g.command 'list' do |c|
2424
c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.'
25-
c.flag 'limit', desc: 'The maximum number of items to return. Must be between 1 - 100 both inclusive.'
25+
c.flag 'limit', desc: 'The maximum number of items to return. Must be a positive integer no larger than 1000.'
2626
c.action do |_global_options, options, _args|
2727
puts JSON.dump(@client.admin_teams_list(options))
2828
end

bin/commands/admin_users.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class App
7171
g.desc 'Set an expiration for a guest user'
7272
g.long_desc %( Set an expiration for a guest user )
7373
g.command 'setExpiration' do |c|
74-
c.flag 'expiration_ts', desc: 'Timestamp when guest account should be disabled.'
74+
c.flag 'expiration_ts', desc: 'Epoch timestamp in seconds when guest account should be disabled.'
7575
c.flag 'user_id', desc: 'The ID of the user to set an expiration for.'
7676
c.flag 'team_id', desc: 'The ID (T1234) of the workspace.'
7777
c.action do |_global_options, options, _args|

bin/commands/admin_workflows.rb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 'AdminWorkflows methods.'
8+
command 'admin_workflows' do |g|
9+
g.desc 'Search workflows within the team or enterprise'
10+
g.long_desc %( Search workflows within the team or enterprise )
11+
g.command 'search' do |c|
12+
c.flag 'app_id', desc: 'The parent app ID for which to return workflows.'
13+
c.flag 'collaborator_ids', desc: 'Only include workflows by the collaborators inputted.'
14+
c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.'
15+
c.flag 'limit', desc: 'The number of results that will be returned by the API on each invocation.'
16+
c.flag 'no_collaborators', desc: 'Only include workflows with no collaborators in the result; default is false.'
17+
c.flag 'num_trigger_ids', desc: 'Number of trigger IDs to fetch for each workflow; default is 0.'
18+
c.flag 'query', desc: 'A search query to filter for workflow name or description.'
19+
c.flag 'sort', desc: 'The field used to sort the returned workflows.'
20+
c.flag 'sort_dir', desc: 'Sort direction. Possible values are asc for ascending order like (1, 2, 3) or (a, b, c), and desc for descending order like (3, 2, 1) or (c, b, a).'
21+
c.flag 'source', desc: 'Source of workflow creation, either from code or workflow builder.'
22+
c.action do |_global_options, options, _args|
23+
puts JSON.dump(@client.admin_workflows_search(options))
24+
end
25+
end
26+
27+
g.desc 'Unpublish workflows within the team or enterprise'
28+
g.long_desc %( Unpublish workflows within the team or enterprise )
29+
g.command 'unpublish' do |c|
30+
c.flag 'workflow_ids', desc: 'Array of workflow IDs to unpublish.'
31+
c.action do |_global_options, options, _args|
32+
puts JSON.dump(@client.admin_workflows_unpublish(options))
33+
end
34+
end
35+
end
36+
end
37+
end
38+
end
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 'AdminWorkflowsCollaborators methods.'
8+
command 'admin_workflows_collaborators' do |g|
9+
g.desc 'Add collaborators to workflows within the team or enterprise'
10+
g.long_desc %( Add collaborators to workflows within the team or enterprise )
11+
g.command 'add' do |c|
12+
c.flag 'collaborator_ids', desc: 'Array of collaborators (encoded user IDs) to add; max 50.'
13+
c.flag 'workflow_ids', desc: 'Array of workflow IDs to edit; max 50.'
14+
c.action do |_global_options, options, _args|
15+
puts JSON.dump(@client.admin_workflows_collaborators_add(options))
16+
end
17+
end
18+
19+
g.desc 'Remove collaborators from workflows within the team or enterprise'
20+
g.long_desc %( Remove collaborators from workflows within the team or enterprise )
21+
g.command 'remove' do |c|
22+
c.flag 'collaborator_ids', desc: 'Array of collaborators (encoded user IDs) to remove; max 50.'
23+
c.flag 'workflow_ids', desc: 'Array of workflow IDs to edit; max 50.'
24+
c.action do |_global_options, options, _args|
25+
puts JSON.dump(@client.admin_workflows_collaborators_remove(options))
26+
end
27+
end
28+
end
29+
end
30+
end
31+
end
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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 'AdminWorkflowsPermissions methods.'
8+
command 'admin_workflows_permissions' do |g|
9+
g.desc 'Look up the permissions for a set of workflows'
10+
g.long_desc %( Look up the permissions for a set of workflows )
11+
g.command 'lookup' do |c|
12+
c.flag 'workflow_ids', desc: 'An array of workflow IDs to look up permissions for.'
13+
c.flag 'max_workflow_triggers', desc: 'Maximum number of triggers to fetch for each workflow when determining overall run permissions; max 1000.'
14+
c.action do |_global_options, options, _args|
15+
puts JSON.dump(@client.admin_workflows_permissions_lookup(options))
16+
end
17+
end
18+
end
19+
end
20+
end
21+
end

0 commit comments

Comments
 (0)