Skip to content

Commit 1d4fdfa

Browse files
committed
Update API from slack-api-ref@1ee282e (2025-03-26)
1 parent f2423d4 commit 1d4fdfa

22 files changed

+128
-19
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
### 2.5.3 (Next)
22

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).
4+
* [#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).
45
* Your contribution here.
56

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

bin/commands/admin_conversations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class App
219219
c.flag 'channel_id', desc: 'The encoded channel_id to add or remove to workspaces.'
220220
c.flag 'org_channel', desc: 'True if channel has to be converted to an org channel.'
221221
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.'
222+
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.'
223223
c.action do |_global_options, options, _args|
224224
puts JSON.dump(@client.admin_conversations_setTeams(options))
225225
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/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/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

lib/slack/web/api/endpoints.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
require_relative 'endpoints/apps_datastore'
4242
require_relative 'endpoints/apps_event_authorizations'
4343
require_relative 'endpoints/apps_manifest'
44+
require_relative 'endpoints/assistant_search'
4445
require_relative 'endpoints/assistant_threads'
4546
require_relative 'endpoints/auth'
4647
require_relative 'endpoints/auth_teams'
@@ -141,6 +142,7 @@ module Endpoints
141142
include AppsDatastore
142143
include AppsEventAuthorizations
143144
include AppsManifest
145+
include AssistantSearch
144146
include AssistantThreads
145147
include Auth
146148
include AuthTeams

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def admin_conversations_setCustomRetention(options = {})
338338
# @option options [array] :target_team_ids
339339
# A comma-separated list of workspaces to which the channel should be shared. Not required if the channel is being shared org-wide.
340340
# @option options [Object] :team_id
341-
# The workspace to which the channel belongs. Omit this argument if the channel is a cross-workspace shared channel.
341+
# 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.
342342
# @see https://api.slack.com/methods/admin.conversations.setTeams
343343
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations/admin.conversations.setTeams.json
344344
def admin_conversations_setTeams(options = {})

0 commit comments

Comments
 (0)