Skip to content

Commit 3677176

Browse files
committed
Update API from slack-api-ref@1ee282e (2025-05-17)
1 parent d93052c commit 3677176

27 files changed

+192
-21
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* [#549](https://github.com/slack-ruby/slack-ruby-client/pull/549): Add group ID formatting support for message mentions - [@n0h0](https://github.com/n0h0).
44
* [#553](https://github.com/slack-ruby/slack-ruby-client/pull/553): Use `secure_compare` during signature verification - [@hieuk09](https://github.com/hieuk09).
55
* [#555](https://github.com/slack-ruby/slack-ruby-client/pull/555): Make page size in resolving IDs configurable - [@eizengan](https://github.com/eizengan).
6+
* [#547](https://github.com/slack-ruby/slack-ruby-client/pull/547): Update API from [slack-api-ref@1ee282e](https://github.com/slack-ruby/slack-api-ref/commit/1ee282e) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot).
67
* Your contribution here.
78

89
### 2.5.2 (2025/02/19)

bin/commands/admin_conversations.rb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,17 @@ class App
7575
end
7676
end
7777

78+
g.desc 'Create a Salesforce channel for the corresponding object provided.'
79+
g.long_desc %( Create a Salesforce channel for the corresponding object provided. )
80+
g.command 'createForObjects' do |c|
81+
c.flag 'object_id', desc: 'Object / Record ID (15 or 18 digit accepted). See here for how to look up an ID.'
82+
c.flag 'salesforce_org_id', desc: 'Salesforce org ID (15 or 18 digit accepted). See here for how to look up Salesforce org ID.'
83+
c.flag 'invite_object_team', desc: 'Optional flag to add all team members related to the object to the newly created Salesforce channel. When true, adds a maximum of 100 team members to the channel.'
84+
c.action do |_global_options, options, _args|
85+
puts JSON.dump(@client.admin_conversations_createForObjects(options))
86+
end
87+
end
88+
7889
g.desc 'Delete a public or private channel.'
7990
g.long_desc %( Delete a public or private channel. )
8091
g.command 'delete' do |c|
@@ -219,7 +230,7 @@ class App
219230
c.flag 'channel_id', desc: 'The encoded channel_id to add or remove to workspaces.'
220231
c.flag 'org_channel', desc: 'True if channel has to be converted to an org channel.'
221232
c.flag 'target_team_ids', desc: 'A comma-separated list of workspaces to which the channel should be shared. Not required if the channel is being shared org-wide.'
222-
c.flag 'team_id', desc: 'The workspace to which the channel belongs. Omit this argument if the channel is a cross-workspace shared channel.'
233+
c.flag 'team_id', desc: 'The workspace to which the channel belongs if the channel is a local workspace channel. Omit this argument if the channel is a cross-workspace or org-wide shared channel.'
223234
c.action do |_global_options, options, _args|
224235
puts JSON.dump(@client.admin_conversations_setTeams(options))
225236
end

bin/commands/admin_users.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class App
4444
c.flag 'include_deactivated_user_workspaces', desc: 'Only applies with org token and no team_id. If true, return workspaces for a user even if they may be deactivated on them. If false, return workspaces for a user only when user is active on them. Default is false.'
4545
c.flag 'is_active', desc: 'If true, only active users will be returned. If false, only deactivated users will be returned. Default is true.'
4646
c.flag 'limit', desc: 'Limit for how many users to be retrieved per page.'
47-
c.flag 'team_id', desc: 'The ID (T1234) of the workspace. The team_id is required if you use an org-level token.'
47+
c.flag 'team_id', desc: 'The ID (T1234) of a workspace. Filters results to just the specified workspace.'
4848
c.action do |_global_options, options, _args|
4949
puts JSON.dump(@client.admin_users_list(options))
5050
end

bin/commands/assistant_search.rb

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 'AssistantSearch methods.'
8+
command 'assistant_search' do |g|
9+
g.desc 'Searches messages across your Slack organization—perfect for broad, specific, and real-time data retrieval.'
10+
g.long_desc %( Searches messages across your Slack organization—perfect for broad, specific, and real-time data retrieval. )
11+
g.command 'context' do |c|
12+
c.flag 'query', desc: 'User prompt or search query.'
13+
c.flag 'action_token', desc: 'Send action_token as received in a message event.'
14+
c.flag 'channel_types', desc: 'Mix and match channel types by providing a comma-separated list of any combination of public_channel, private_channel, mpim, im.'
15+
c.flag 'content_types', desc: 'Content types to include, a comma-separated list of any combination of messages, files.'
16+
c.flag 'context_channel_id', desc: 'Context channel ID to support scoping the search when applicable.'
17+
c.flag 'cursor', desc: 'The cursor returned by the API. Leave this blank for the first request, and use this to get the next page of results.'
18+
c.flag 'include_bots', desc: 'If you want the results to include bots.'
19+
c.flag 'limit', desc: 'Number of results to return, up to a max of 20. Defaults to 20.'
20+
c.action do |_global_options, options, _args|
21+
puts JSON.dump(@client.assistant_search_context(options))
22+
end
23+
end
24+
end
25+
end
26+
end
27+
end

bin/commands/canvases.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class App
99
g.desc 'Create canvas for a user'
1010
g.long_desc %( Create canvas for a user )
1111
g.command 'create' do |c|
12+
c.flag 'channel_id', desc: 'Channel ID of the channel the canvas will be tabbed in. This is a required field for free teams.'
1213
c.flag 'document_content', desc: 'Structure describing the type and value of the content to create.'
1314
c.flag 'title', desc: 'Title of the newly created canvas.'
1415
c.action do |_global_options, options, _args|

bin/commands/chat.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ class App
8787
c.flag 'attachments', desc: 'A JSON-based array of structured attachments, presented as a URL-encoded string.'
8888
c.flag 'blocks', desc: 'A JSON-based array of structured blocks, presented as a URL-encoded string.'
8989
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.'
90+
c.flag 'agent_message_source_type', desc: 'Identify how the message was posted for agentforce BE logging.'
9091
c.flag 'as_user', desc: '(Legacy) Pass true to post the message as the authed user instead of as a bot. Defaults to false. Can only be used by classic apps. See legacy as_user parameter below.'
9192
c.flag 'icon_emoji', desc: 'Emoji to use as the icon for this message. Overrides icon_url.'
9293
c.flag 'icon_url', desc: 'URL to an image to use as the icon for this message.'

bin/commands/conversations_canvases.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class App
1111
g.command 'create' do |c|
1212
c.flag 'channel_id', desc: 'Channel ID of the channel we create the channel canvas for.'
1313
c.flag 'document_content', desc: 'Structure describing the type and value of the content to create.'
14+
c.flag 'title', desc: 'Title of the newly created canvas.'
1415
c.action do |_global_options, options, _args|
1516
puts JSON.dump(@client.conversations_canvases_create(options))
1617
end

bin/commands/files.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class App
1010
g.long_desc %( Finishes an upload started with files.getUploadURLExternal )
1111
g.command 'completeUploadExternal' do |c|
1212
c.flag 'files', desc: 'Array of file ids and their corresponding (optional) titles.'
13+
c.flag 'blocks', desc: 'A JSON-based array of structured rich text blocks, presented as a URL-encoded string. If the initial_comment field is provided, the blocks field is ignored.'
1314
c.flag 'channel_id', desc: 'Channel ID where the file will be shared. If not specified the file will be private.'
1415
c.flag 'channels', desc: 'Comma-separated string of channel IDs where the file will be shared.'
1516
c.flag 'initial_comment', desc: 'The message text introducing the file in specified channels.'

bin/commands/functions_distributions_permissions.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class App
1818
end
1919
end
2020

21-
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'
22-
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 )
21+
g.desc 'List the access type of a custom slack function and include the users or team or org ids with access if its permission_type is set to named_entities'
22+
g.long_desc %( List the access type of a custom slack function and include the users or team or org ids with access if its permission_type is set to named_entities )
2323
g.command 'list' do |c|
2424
c.flag 'function_app_id', desc: 'The encoded ID of the app.'
2525
c.flag 'function_callback_id', desc: "The callback ID defined in the function's definition file."
@@ -41,13 +41,15 @@ class App
4141
end
4242
end
4343

44-
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'
45-
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 )
44+
g.desc 'Set the access type of a custom slack function and define the users or team or org ids to be granted access if permission_type is set to named_entities'
45+
g.long_desc %( Set the access type of a custom slack function and define the users or team or org ids to be granted access if permission_type is set to named_entities )
4646
g.command 'set' do |c|
4747
c.flag 'permission_type', desc: 'The type of permission that defines how the function can be distributed.'
4848
c.flag 'function_app_id', desc: 'The encoded ID of the app.'
4949
c.flag 'function_callback_id', desc: "The callback ID defined in the function's definition file."
5050
c.flag 'function_id', desc: 'The encoded ID of the function.'
51+
c.flag 'org_ids', desc: 'List of org IDs to allow for named_entities permission.'
52+
c.flag 'team_ids', desc: 'List of team IDs to allow for named_entities permission.'
5153
c.flag 'user_ids', desc: 'List of encoded user IDs.'
5254
c.action do |_global_options, options, _args|
5355
puts JSON.dump(@client.functions_distributions_permissions_set(options))

bin/commands/usergroups.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ class App
5151
c.flag 'include_disabled', desc: 'Include disabled User Groups.'
5252
c.flag 'include_users', desc: 'Include the list of users for each User Group.'
5353
c.flag 'team_id', desc: 'encoded team id to list user groups in, required if org token is used.'
54-
c.flag 'usergroup_id', desc: 'The id of the usergroup you would like to filter the results down to.'
5554
c.action do |_global_options, options, _args|
5655
puts JSON.dump(@client.usergroups_list(options))
5756
end

0 commit comments

Comments
 (0)