Skip to content

Commit d3da145

Browse files
authored
Merge pull request #504 from slack-ruby/automated-api-update
Update API from slack-api-ref@bc54564
2 parents fac7a6a + 175ddaa commit d3da145

28 files changed

+150
-38
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* [#494](https://github.com/slack-ruby/slack-ruby-client/pull/494): Configure Dependabot to update GitHub Actions - [@olleolleolle](https://github.com/olleolleolle).
44
* [#508](https://github.com/slack-ruby/slack-ruby-client/pull/508): Fix `Slack::Events::Request#verify!` compatibility with Rack 3.x - [@dblock](https://github.com/dblock).
55
* [#503](https://github.com/slack-ruby/slack-ruby-client/pull/503): Update Slack API Update API from [slack-api-ref@bc545649](https://github.com/slack-ruby/slack-api-ref/commit/bc545649) - [@dblock](https://github.com/dblock).
6+
* [#504](https://github.com/slack-ruby-client/pulls/504): Update API from [slack-api-ref@bc54564](https://github.com/slack-ruby/slack-api-ref/commit/bc54564) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot).
67
* Your contribution here.
78

89
### 2.2.0 (2023/09/17)

bin/commands/admin_conversations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class App
1818
g.desc 'Archive public or private channels in bulk.'
1919
g.long_desc %( Archive public or private channels in bulk. )
2020
g.command 'bulkArchive' do |c|
21-
c.flag 'channel_ids', desc: 'An array of channel IDs to archive.'
21+
c.flag 'channel_ids', desc: 'An array of channel IDs to archive. No more than 100 items are allowed.'
2222
c.action do |_global_options, options, _args|
2323
puts JSON.dump(@client.admin_conversations_bulkArchive(options))
2424
end

bin/commands/chat.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ class App
9494
c.flag 'mrkdwn', desc: 'Disable Slack markup parsing by setting to false. Enabled by default.'
9595
c.flag 'parse', desc: 'Change how messages are treated. See below.'
9696
c.flag 'reply_broadcast', desc: 'Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false.'
97-
c.flag 'service_team_id', desc: 'For a message posted in App Home, Team ID corresponding to the selected app installation.'
9897
c.flag 'thread_ts', desc: "Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead."
9998
c.flag 'unfurl_links', desc: 'Pass true to enable unfurling of primarily text-based content.'
10099
c.flag 'unfurl_media', desc: 'Pass false to disable unfurling of media content.'
@@ -108,7 +107,7 @@ class App
108107
g.long_desc %( Schedules a message to be sent to a channel. )
109108
g.command 'scheduleMessage' do |c|
110109
c.flag 'channel', desc: 'Channel, private group, or DM channel to send message to. Can be an encoded ID, or a name. See below for more details.'
111-
c.flag 'post_at', desc: 'Unix EPOCH timestamp of time in future to send the message.'
110+
c.flag 'post_at', desc: 'Unix timestamp representing the future time the message should post to Slack.'
112111
c.flag 'attachments', desc: 'A JSON-based array of structured attachments, presented as a URL-encoded string.'
113112
c.flag 'blocks', desc: 'A JSON-based array of structured blocks, presented as a URL-encoded string.'
114113
c.flag 'text', desc: 'How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.'

bin/commands/conversations.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ class App
100100
g.command 'invite' do |c|
101101
c.flag 'channel', desc: 'The ID of the public or private channel to invite user(s) to.'
102102
c.flag 'users', desc: 'A comma separated list of user IDs. Up to 1000 users may be listed.'
103+
c.flag 'force', desc: 'When set to true and multiple user IDs are provided, continue inviting the valid ones while disregarding invalid IDs. Defaults to false.'
103104
c.action do |_global_options, options, _args|
104105
puts JSON.dump(@client.conversations_invite(options))
105106
end

bin/commands/functions.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 'Functions methods.'
8+
command 'functions' do |g|
9+
g.desc 'Signal that a function failed to complete'
10+
g.long_desc %( Signal that a function failed to complete )
11+
g.command 'completeError' do |c|
12+
c.flag 'error', desc: 'A human-readable error message that contains information about why the function failed to complete.'
13+
c.flag 'function_execution_id', desc: 'Context identifier that maps to the executed function.'
14+
c.action do |_global_options, options, _args|
15+
puts JSON.dump(@client.functions_completeError(options))
16+
end
17+
end
18+
19+
g.desc 'Signal the successful completion of a function'
20+
g.long_desc %( Signal the successful completion of a function )
21+
g.command 'completeSuccess' do |c|
22+
c.flag 'function_execution_id', desc: 'Context identifier that maps to the executed function.'
23+
c.flag 'outputs', desc: 'A JSON-based object that conforms to the output parameters schema for the custom function defined in the manifest.'
24+
c.action do |_global_options, options, _args|
25+
puts JSON.dump(@client.functions_completeSuccess(options))
26+
end
27+
end
28+
end
29+
end
30+
end
31+
end

bin/commands/pins.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class App
1010
g.long_desc %( Pins an item to a channel. )
1111
g.command 'add' do |c|
1212
c.flag 'channel', desc: 'Channel to pin the messsage to. You must also include a timestamp when pinning messages.'
13-
c.flag 'quip_component_id', desc: 'Component ID for the pins component that was inserted into the channel canvas, if any.'
1413
c.flag 'timestamp', desc: 'Timestamp of the message to pin. You must also include the channel.'
1514
c.action do |_global_options, options, _args|
1615
puts JSON.dump(@client.pins_add(options))

bin/commands/team.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class App
3333
g.desc 'Gets information about the current team.'
3434
g.long_desc %( Gets information about the current team. )
3535
g.command 'info' do |c|
36-
c.flag 'domain', desc: 'Query by domain instead of team (only when team is null). This only works for domains in the same enterprise as the querying team token. This also expects the domain to belong to a team and not the enterprise itself.'
36+
c.flag 'domain', desc: "Query by domain instead of team (only when team is null). This only works for domains in the same enterprise as the querying team token. This also expects the domain to belong to a team and not the enterprise itself. This is the value set up for the 'Joining This Workspace' workspace setting. If it contains more than one domain, the field will contain multiple comma-separated domain values. If no domain is set, the field is empty."
3737
c.flag 'team', desc: 'Team to get info about; if omitted, will return information about the current team.'
3838
c.action do |_global_options, options, _args|
3939
puts JSON.dump(@client.team_info(options))

bin/commands/usergroups_users.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ class App
1717
end
1818
end
1919

20-
g.desc 'Update the list of users for a User Group.'
21-
g.long_desc %( Update the list of users for a User Group. )
20+
g.desc 'Update the list of users for a user group.'
21+
g.long_desc %( Update the list of users for a user group. )
2222
g.command 'update' do |c|
23-
c.flag 'usergroup', desc: 'The encoded ID of the User Group to update.'
24-
c.flag 'users', desc: 'A comma separated string of encoded user IDs that represent the entire list of users for the User Group.'
25-
c.flag 'include_count', desc: 'Include the number of users in the User Group.'
23+
c.flag 'usergroup', desc: 'The encoded ID of the user group to update.'
24+
c.flag 'users', desc: 'A comma separated string of encoded user IDs that represent the entire list of users for the user group.'
25+
c.flag 'include_count', desc: 'Include the number of users in the user group.'
2626
c.flag 'team_id', desc: 'encoded team id where the user group exists, required if org token is used.'
2727
c.action do |_global_options, options, _args|
2828
puts JSON.dump(@client.usergroups_users_update(options))

lib/slack/web/api/endpoints.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
require_relative 'endpoints/files'
5656
require_relative 'endpoints/files_comments'
5757
require_relative 'endpoints/files_remote'
58+
require_relative 'endpoints/functions'
5859
require_relative 'endpoints/functions_workflows_steps'
5960
require_relative 'endpoints/functions_workflows_steps_responses'
6061
require_relative 'endpoints/migration'
@@ -142,6 +143,7 @@ module Endpoints
142143
include Files
143144
include FilesComments
144145
include FilesRemote
146+
include Functions
145147
include FunctionsWorkflowsSteps
146148
include FunctionsWorkflowsStepsResponses
147149
include Migration

lib/slack/web/api/endpoints/admin_apps_activities.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module AdminAppsActivities
2727
# The earliest timestamp of the log to retrieve (epoch microseconds).
2828
# @option options [string] :min_log_level
2929
# The minimum log level of the log events to be returned. Defaults to info. Acceptable values (in order of relative importance from smallest to largest) are trace, debug, info, warn, error and fatal.
30-
# @option options [string] :sort_direction
30+
# @option options [enum] :sort_direction
3131
# The direction you want the data sorted by (always by timestamp).
3232
# @option options [string] :source
3333
# The source of log events to be returned. Acceptable values are slack and developer.

0 commit comments

Comments
 (0)