Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* [#581](https://github.com/slack-ruby/slack-ruby-client/pull/581): Migrate Danger to use danger-pr-comment workflow - [@dblock](https://github.com/dblock).
* [#583](https://github.com/slack-ruby/slack-ruby-client/pull/583): Not found errors raised by id_for use more specific error classes when they exist - [@eizengan](https://github.com/eizengan).
* [#585](https://github.com/slack-ruby/slack-ruby-client/pull/585): Fix ci not triggering on automated api update prs - [@Copilot](https://github.com/Copilot).
* [#578](https://github.com/slack-ruby/slack-ruby-client/pull/578): Update API from [slack-api-ref@3275786](https://github.com/slack-ruby/slack-api-ref/commit/3275786) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot).
* Your contribution here.

### 3.1.0 (2025/11/15)
Expand Down
36 changes: 36 additions & 0 deletions bin/commands/admin_analytics_messages.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

module Slack
module Cli
class App
desc 'AdminAnalyticsMessages methods.'
command 'admin_analytics_messages' do |g|
g.desc 'Retrieves activity metrics for messages from a given channel.'
g.long_desc %( Retrieves activity metrics for messages from a given channel. )
g.command 'activity' do |c|
c.flag 'channel', desc: 'Channel ID for channel of the message activity to query.'
c.flag 'oldest_ts', desc: 'Oldest timestamp to include in the results. Defaults to 7 days before current time. If not passed while still passing the latest_ts parameter, defaults to 7 days before latest_ts.'
c.flag 'latest_ts', desc: 'Most recent timestamp to include in results. Defaults to current time. If not passed while still passing the oldest_ts parameter, defaults to 7 days after oldest_ts.'
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. Default value fetches the first 'page' of the collection."
c.flag 'limit', desc: 'Maximum number of entries to return. The maximum limit is 100.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.admin_analytics_messages_activity(options))
end
end

g.desc 'Retrieves metadata for a list of messages from a given channel.'
g.long_desc %( Retrieves metadata for a list of messages from a given channel. )
g.command 'metadata' do |c|
c.flag 'channel', desc: 'Channel ID for channel containing the messages to query.'
c.flag 'oldest_ts', desc: 'Oldest timestamp to include in the results.'
c.flag 'latest_ts', desc: 'Most recent timestamp to include in the results. If not passed, defaults to current time.'
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. Default value fetches the first 'page' of the collection. See pagination for more details."
c.action do |_global_options, options, _args|
puts JSON.dump(@client.admin_analytics_messages_metadata(options))
end
end
end
end
end
end
10 changes: 10 additions & 0 deletions bin/commands/admin_conversations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ class App
end
end

g.desc 'Exclude channels from Slack AI in bulk'
g.long_desc %( Exclude channels from Slack AI in bulk )
g.command 'bulkSetExcludeFromSlackAi' do |c|
c.flag 'channel_ids', desc: 'An array of channel IDs to exclude from Slack AI.'
c.flag 'exclude', desc: 'Whether the channels should be excluded from Slack AI.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.admin_conversations_bulkSetExcludeFromSlackAi(options))
end
end

g.desc 'Convert a public channel to a private channel.'
g.long_desc %( Convert a public channel to a private channel. )
g.command 'convertToPrivate' do |c|
Expand Down
1 change: 1 addition & 0 deletions bin/commands/admin_functions_permissions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class App
c.flag 'function_id', desc: 'The function ID to set permissions for.'
c.flag 'visibility', desc: 'The function visibility.'
c.flag 'user_ids', desc: 'List of user IDs to allow for named_entities visibility.'
c.flag 'permissions', desc: 'Array of permissions for the function.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.admin_functions_permissions_set(options))
end
Expand Down
18 changes: 10 additions & 8 deletions bin/commands/admin_users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class App
c.flag 'is_active', desc: 'If true, only active users will be returned. If false, only deactivated users will be returned. Default is true.'
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.'
c.flag 'only_guests', desc: 'If true, returns only guests and their expiration dates that belong to the team_id.'
c.flag 'include_admins', desc: 'If true, only admin users will be returned (excludes owners). Returns all admins and owners when combined with include_owners. Cannot be used together with only_guests.'
c.flag 'include_owners', desc: 'If true, only owner users will be returned. Cannot be used together with only_guests.'
c.flag 'limit', desc: 'Limit for how many users to be retrieved per page.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.admin_users_list(options))
Expand All @@ -71,10 +73,10 @@ class App
end
end

g.desc 'Set an existing regular user or owner to be a workspace admin.'
g.long_desc %( Set an existing regular user or owner to be a workspace admin. )
g.desc 'Set an existing regular user or owner to be a workspace or org admin.'
g.long_desc %( Set an existing regular user or owner to be a workspace or org admin. )
g.command 'setAdmin' do |c|
c.flag 'team_id', desc: 'The ID (T1234) of the workspace.'
c.flag 'team_id', desc: 'The ID of the workspace or organization.'
c.flag 'user_id', desc: 'The ID of the user to designate as an admin.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.admin_users_setAdmin(options))
Expand All @@ -92,11 +94,11 @@ class App
end
end

g.desc 'Set an existing regular user or admin to be a workspace owner.'
g.long_desc %( Set an existing regular user or admin to be a workspace owner. )
g.desc 'Set an existing regular user or admin to be a workspace or org owner.'
g.long_desc %( Set an existing regular user or admin to be a workspace or org owner. )
g.command 'setOwner' do |c|
c.flag 'team_id', desc: 'The ID (T1234) of the workspace.'
c.flag 'user_id', desc: 'Id of the user to promote to owner.'
c.flag 'team_id', desc: 'The ID of the workspace or organization.'
c.flag 'user_id', desc: 'ID of the user to promote to owner.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.admin_users_setOwner(options))
end
Expand All @@ -105,7 +107,7 @@ class App
g.desc 'Set an existing guest user, admin user, or owner to be a regular user.'
g.long_desc %( Set an existing guest user, admin user, or owner to be a regular user. )
g.command 'setRegular' do |c|
c.flag 'team_id', desc: 'The ID (T1234) of the workspace.'
c.flag 'team_id', desc: 'The ID of the workspace or organization.'
c.flag 'user_id', desc: 'The ID of the user to designate as a regular user.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.admin_users_setRegular(options))
Expand Down
7 changes: 4 additions & 3 deletions bin/commands/admin_workflows_triggers_types_permissions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ module Cli
class App
desc 'AdminWorkflowsTriggersTypesPermissions methods.'
command 'admin_workflows_triggers_types_permissions' do |g|
g.desc 'list the permissions for using each trigger type'
g.long_desc %( list the permissions for using each trigger type )
g.desc 'List the permissions for using each trigger type.'
g.long_desc %( List the permissions for using each trigger type. )
g.command 'lookup' do |c|
c.flag 'trigger_type_ids', desc: 'The trigger types IDs for which to get the permissions.'
c.flag 'trigger_type_ids', desc: 'The trigger type IDs for which to get the permissions.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.admin_workflows_triggers_types_permissions_lookup(options))
end
Expand All @@ -21,6 +21,7 @@ class App
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.flag 'permissions', desc: ''
c.action do |_global_options, options, _args|
puts JSON.dump(@client.admin_workflows_triggers_types_permissions_set(options))
end
Expand Down
22 changes: 22 additions & 0 deletions bin/commands/apps_icon.rb
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 'AppsIcon methods.'
command 'apps_icon' do |g|
g.desc 'Sets the app icon'
g.long_desc %( Sets the app icon )
g.command 'set' do |c|
c.flag 'app_id', desc: 'The ID of the app whose icon you want to set.'
c.flag 'file', desc: 'File contents via multipart/form-data.'
c.flag 'url', desc: 'URL of a publicly hosted image.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.apps_icon_set(options))
end
end
end
end
end
end
1 change: 1 addition & 0 deletions bin/commands/apps_manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class App
g.long_desc %( Create an app from an app manifest. )
g.command 'create' do |c|
c.flag 'manifest', desc: 'A JSON app manifest encoded as a string. This manifest must use a valid app manifest schema - read our guide to creating one.'
c.flag 'team_id', desc: 'When called with an org token, which specific team to create app on.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.apps_manifest_create(options))
end
Expand Down
21 changes: 21 additions & 0 deletions bin/commands/apps_user_connection.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

module Slack
module Cli
class App
desc 'AppsUserConnection methods.'
command 'apps_user_connection' do |g|
g.desc 'Updates the connection status between a user and an app.'
g.long_desc %( Updates the connection status between a user and an app. )
g.command 'update' do |c|
c.flag 'user_id', desc: 'The ID of the user for the status update.'
c.flag 'status', desc: 'The status that should be set for the user.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.apps_user_connection_update(options))
end
end
end
end
end
end
5 changes: 3 additions & 2 deletions bin/commands/assistant_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module Cli
class App
desc 'AssistantSearch methods.'
command 'assistant_search' do |g|
g.desc 'Searches messages across your Slack organization—perfect for broad, specific, and real-time data retrieval.'
g.long_desc %( Searches messages across your Slack organization—perfect for broad, specific, and real-time data retrieval. )
g.desc 'Searches messages, files, channels and users across your Slack organization.'
g.long_desc %( Searches messages, files, channels and users across your Slack organization. )
g.command 'context' do |c|
c.flag 'query', desc: 'User prompt or search query.'
c.flag 'action_token', desc: 'Send action_token as received in a message event.'
Expand All @@ -28,6 +28,7 @@ class App
c.flag 'term_clauses', desc: 'A list of term clauses. A term clause is a string with search terms. Search results returned will match every term clause specified (i.e., conjunctive normal form).'
c.flag 'modifiers', desc: 'A string containing only modifiers in the format of modifier:value. Search results returned will match the modifier value. For now modifiers only affect term clauses.'
c.flag 'include_archived_channels', desc: 'Whether to include archived channels in the search results.'
c.flag 'disable_semantic_search', desc: 'Whether to disable semantic search. When true, only keyword-based search is used. Defaults to false.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.assistant_search_context(options))
end
Expand Down
7 changes: 5 additions & 2 deletions bin/commands/assistant_threads.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ class App
g.command 'setStatus' do |c|
c.flag 'channel_id', desc: 'Channel ID containing the assistant thread.'
c.flag 'thread_ts', desc: 'Message timestamp of the thread of where to set the status.'
c.flag 'status', desc: "Status of the specified bot user, e.g. 'is thinking...'."
c.flag 'loading_messages', desc: 'The list of messages to rotate through as a loading indicator.'
c.flag 'status', desc: "Status of the specified bot user, e.g., 'is thinking...'. A two minute timeout applies, which will cause the status to be removed if no message has been sent."
c.flag 'loading_messages', desc: 'The list of messages to rotate through as a loading indicator. Maximum of 10 messages.'
c.flag 'icon_emoji', desc: 'Emoji to use as the icon for this message. Overrides icon_url.'
c.flag 'icon_url', desc: 'Image URL to use as the icon for this message.'
c.flag 'username', desc: "The bot's username to display."
c.action do |_global_options, options, _args|
puts JSON.dump(@client.assistant_threads_setStatus(options))
end
Expand Down
Loading