Skip to content

Commit 95e70d0

Browse files
committed
Update API from slack-api-ref@c408935 (2025-09-08)
1 parent cec95a5 commit 95e70d0

File tree

129 files changed

+1327
-792
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+1327
-792
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* [#568](https://github.com/slack-ruby/slack-ruby-client/pull/568): Redact Authorization header in response stored in the error - [@levenleven](https://github.com/levenleven).
44

5+
* [#558](https://github.com/slack-ruby/slack-ruby-client/pull/558): Update API from [slack-api-ref@c408935](https://github.com/slack-ruby/slack-api-ref/commit/c408935) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot).
56
* Your contribution here.
67

78
### 2.7.0 (2025/07/20)

bin/commands/admin_analytics.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ class App
99
g.desc 'Retrieve analytics data for a given date, presented as a compressed JSON file'
1010
g.long_desc %( Retrieve analytics data for a given date, presented as a compressed JSON file )
1111
g.command 'getFile' do |c|
12-
c.flag 'type', desc: 'The type of analytics to retrieve. The options are currently limited to member (for grid member analytics) and public_channel (for public channel analytics).'
1312
c.flag 'date', desc: 'Date to retrieve the analytics data for, expressed as YYYY-MM-DD in UTC. Required unless metadata_only is set to true.'
1413
c.flag 'metadata_only', desc: 'Retrieve metadata for the type of analytics indicated. Can be used only with type set to public_channel analytics. See detail below. Omit the date parameter when using this argument.'
14+
c.flag 'type', desc: 'The type of analytics to retrieve. The options are currently limited to member (for Enterprise org member analytics) and public_channel (for public channel analytics).'
1515
c.action do |_global_options, options, _args|
1616
puts JSON.dump(@client.admin_analytics_getFile(options))
1717
end

bin/commands/admin_apps_activities.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class App
1010
g.long_desc %( Get logs for a specified team/org )
1111
g.command 'list' do |c|
1212
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.'
13+
c.flag 'component_id', desc: 'The component ID of log events to be returned. Will be FnXXXXXX for functions, and WfXXXXXX for workflows.'
1414
c.flag 'component_type', desc: 'The component type of log events to be returned. Acceptable values are events_api, workflows, functions and 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.'

bin/commands/admin_apps_approved.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ class App
1111
g.command 'list' do |c|
1212
c.flag 'certified', desc: 'Limit the results to only include certified apps. When false, no certified apps will appear in the result.'
1313
c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.'
14-
c.flag 'enterprise_id', desc: '.'
14+
c.flag 'enterprise_id', desc: ''
1515
c.flag 'limit', desc: 'The maximum number of items to return. Must be between 1 - 1000 both inclusive.'
16-
c.flag 'team_id', desc: '.'
16+
c.flag 'team_id', desc: ''
1717
c.action do |_global_options, options, _args|
1818
puts JSON.dump(@client.admin_apps_approved_list(options))
1919
end

bin/commands/admin_apps_config.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class App
1010
g.long_desc %( Look up the app config for connectors by their IDs )
1111
g.command 'lookup' do |c|
1212
c.flag 'app_ids', desc: 'An array of app IDs to get app configs for.'
13+
c.flag 'rich_link_preview_types', desc: 'return apps with the corresponding rich link preview layouts.'
1314
c.action do |_global_options, options, _args|
1415
puts JSON.dump(@client.admin_apps_config_lookup(options))
1516
end
@@ -20,6 +21,7 @@ class App
2021
g.command 'set' do |c|
2122
c.flag 'app_id', desc: 'The encoded app ID to set the app config for.'
2223
c.flag 'domain_restrictions', desc: 'Domain restrictions for the app. Should be an object with two properties: urls and emails. Each is an array of strings, and each sets the allowed URLs and emails for connector authorization, respectively.'
24+
c.flag 'rich_link_preview_type', desc: 'Indicates the app-level override for rich link preview. Unsupported for free teams.'
2325
c.flag 'workflow_auth_strategy', desc: 'The workflow auth permission. Can be one of builder_choice or end_user_only.'
2426
c.action do |_global_options, options, _args|
2527
puts JSON.dump(@client.admin_apps_config_set(options))

bin/commands/admin_apps_requests.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class App
99
g.desc 'Cancel app request for team'
1010
g.long_desc %( Cancel app request for team )
1111
g.command 'cancel' do |c|
12-
c.flag 'request_id', desc: 'The id of the request to cancel.'
1312
c.flag 'enterprise_id', desc: 'The ID of the enterprise where this request belongs.'
13+
c.flag 'request_id', desc: 'The id of the request to cancel.'
1414
c.flag 'team_id', desc: 'The ID of the workspace where this request belongs.'
1515
c.action do |_global_options, options, _args|
1616
puts JSON.dump(@client.admin_apps_requests_cancel(options))
@@ -22,9 +22,9 @@ class App
2222
g.command 'list' do |c|
2323
c.flag 'certified', desc: 'Include requests for certified apps.'
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 'enterprise_id', desc: '.'
25+
c.flag 'enterprise_id', desc: ''
2626
c.flag 'limit', desc: 'The maximum number of items to return. Must be between 1 - 1000 both inclusive.'
27-
c.flag 'team_id', desc: '.'
27+
c.flag 'team_id', desc: ''
2828
c.action do |_global_options, options, _args|
2929
puts JSON.dump(@client.admin_apps_requests_list(options))
3030
end

bin/commands/admin_apps_restricted.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ class App
1111
g.command 'list' do |c|
1212
c.flag 'certified', desc: 'Limit the results to only include certified apps. When false, no certified apps will appear in the result.'
1313
c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.'
14-
c.flag 'enterprise_id', desc: '.'
14+
c.flag 'enterprise_id', desc: ''
1515
c.flag 'limit', desc: 'The maximum number of items to return. Must be between 1 - 1000 both inclusive.'
16-
c.flag 'team_id', desc: '.'
16+
c.flag 'team_id', desc: ''
1717
c.action do |_global_options, options, _args|
1818
puts JSON.dump(@client.admin_apps_restricted_list(options))
1919
end

bin/commands/admin_audit_anomaly_allow.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ module Cli
66
class App
77
desc 'AdminAuditAnomalyAllow methods.'
88
command 'admin_audit_anomaly_allow' do |g|
9-
g.desc 'API to allow enterprise grid admins to read the allow list of IP blocks and ASNs from the enterprise configuration.'
10-
g.long_desc %( API to allow enterprise grid admins to read the allow list of IP blocks and ASNs from the enterprise configuration. )
9+
g.desc 'API to allow Enterprise org admins to read the allow list of IP blocks and ASNs from the enterprise configuration.'
10+
g.long_desc %( API to allow Enterprise org admins to read the allow list of IP blocks and ASNs from the enterprise configuration. )
1111
g.command 'getItem' do |c|
1212
c.action do |_global_options, options, _args|
1313
puts JSON.dump(@client.admin_audit_anomaly_allow_getItem(options))
1414
end
1515
end
1616

17-
g.desc 'API to allow enterprise grid admins to write/overwrite the allow list of IP blocks and ASNs from the enterprise configuration.'
18-
g.long_desc %( API to allow enterprise grid admins to write/overwrite the allow list of IP blocks and ASNs from the enterprise configuration. )
17+
g.desc 'API to allow Enterprise org admins to write/overwrite the allow list of IP blocks and ASNs from the enterprise configuration.'
18+
g.long_desc %( API to allow Enterprise org admins to write/overwrite the allow list of IP blocks and ASNs from the enterprise configuration. )
1919
g.command 'updateItem' do |c|
20-
c.flag 'trusted_asns', desc: 'allow list of Autonomous System Numbers (ASN) in the enterprise grid configuarion.'
21-
c.flag 'trusted_cidr', desc: 'allow list of IPv4 addressses using cidr notation in the enterprise grid configuarion.'
20+
c.flag 'trusted_asns', desc: 'allow list of Autonomous System Numbers (ASN) in the Enterprise organization configuration.'
21+
c.flag 'trusted_cidr', desc: 'allow list of IPv4 addresses using cidr notation in the Enterprise organization configuration.'
2222
c.action do |_global_options, options, _args|
2323
puts JSON.dump(@client.admin_audit_anomaly_allow_updateItem(options))
2424
end

bin/commands/admin_auth_policy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ class App
2020
g.desc 'Fetch all the entities assigned to a particular authentication policy by name.'
2121
g.long_desc %( Fetch all the entities assigned to a particular authentication policy by name. )
2222
g.command 'getEntities' do |c|
23-
c.flag 'policy_name', desc: 'The name of the policy to fetch entities for. Currently, email_password is the only policy that may be used with this method.'
2423
c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.'
2524
c.flag 'entity_type', desc: 'The type of entity to assign to the policy. Currently, USER is supported.'
2625
c.flag 'limit', desc: 'The maximum number of items to return. Must be between 1 and 1000, both inclusive.'
26+
c.flag 'policy_name', desc: 'The name of the policy to fetch entities for. Currently, email_password is the only policy that may be used with this method.'
2727
c.action do |_global_options, options, _args|
2828
puts JSON.dump(@client.admin_auth_policy_getEntities(options))
2929
end

bin/commands/admin_conversations.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ class App
6565
g.desc 'Create a public or private channel-based conversation.'
6666
g.long_desc %( Create a public or private channel-based conversation. )
6767
g.command 'create' do |c|
68+
c.flag 'description', desc: 'Description of the public or private channel to create.'
6869
c.flag 'is_private', desc: 'When true, creates a private channel instead of a public channel.'
6970
c.flag 'name', desc: 'Name of the public or private channel to create.'
70-
c.flag 'description', desc: 'Description of the public or private channel to create.'
7171
c.flag 'org_wide', desc: 'When true, the channel will be available org-wide. Note: if the channel is not org_wide=true, you must specify a team_id for this channel.'
7272
c.flag 'team_id', desc: 'The workspace to create the channel in. Note: this argument is required unless you set org_wide=true.'
7373
c.action do |_global_options, options, _args|
@@ -78,9 +78,9 @@ class App
7878
g.desc 'Create a Salesforce channel for the corresponding object provided.'
7979
g.long_desc %( Create a Salesforce channel for the corresponding object provided. )
8080
g.command 'createForObjects' do |c|
81+
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.'
8182
c.flag 'object_id', desc: 'Object / Record ID (15 or 18 digit accepted). See here for how to look up an ID.'
8283
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.'
8484
c.action do |_global_options, options, _args|
8585
puts JSON.dump(@client.admin_conversations_createForObjects(options))
8686
end
@@ -99,7 +99,7 @@ class App
9999
g.long_desc %( Disconnect a connected channel from one or more workspaces. )
100100
g.command 'disconnectShared' do |c|
101101
c.flag 'channel_id', desc: 'The channel to be disconnected from some workspaces.'
102-
c.flag 'leaving_team_ids', desc: 'team IDs getting removed from the channel, optional if there are only two teams in the channel.'
102+
c.flag 'leaving_team_ids', desc: 'Used for disconnecting a team from a shared channel. Only one team ID may be passed at a time.'
103103
c.action do |_global_options, options, _args|
104104
puts JSON.dump(@client.admin_conversations_disconnectShared(options))
105105
end
@@ -158,11 +158,11 @@ class App
158158
g.desc 'Returns channels on the given team using the filters.'
159159
g.long_desc %( Returns channels on the given team using the filters. )
160160
g.command 'lookup' do |c|
161-
c.flag 'last_message_activity_before', desc: 'Filter by public channels where the most recent message was sent before last_message_activity.'
162-
c.flag 'team_ids', desc: 'Array of team IDs to filter by.'
163161
c.flag 'cursor', desc: 'Set cursor to next_cursor returned in the previous call, to fetch the next page.'
162+
c.flag 'last_message_activity_before', desc: 'Filter by public channels where the most recent message was sent before last_message_activity.'
164163
c.flag 'limit', desc: 'Maximum number of results.'
165164
c.flag 'max_member_count', desc: 'Filter by public channels with member count equal to or less than the specified number.'
165+
c.flag 'team_ids', desc: 'Array of team IDs to filter by.'
166166
c.action do |_global_options, options, _args|
167167
puts JSON.dump(@client.admin_conversations_lookup(options))
168168
end
@@ -181,7 +181,7 @@ class App
181181
g.long_desc %( Rename a public or private channel. )
182182
g.command 'rename' do |c|
183183
c.flag 'channel_id', desc: 'The channel to rename.'
184-
c.flag 'name', desc: '.'
184+
c.flag 'name', desc: ''
185185
c.action do |_global_options, options, _args|
186186
puts JSON.dump(@client.admin_conversations_rename(options))
187187
end
@@ -195,7 +195,7 @@ class App
195195
c.flag 'limit', desc: 'Maximum number of items to be returned. Must be between 1 - 20 both inclusive. Default is 10.'
196196
c.flag 'query', desc: 'Name of the the channel to query by.'
197197
c.flag 'search_channel_types', desc: 'The type of channel to include or exclude in the search. For example private will search private channels, while private_exclude will exclude them. For a full list of types, check the Types section.'
198-
c.flag 'sort', desc: 'Possible values are relevant (search ranking based on what we think is closest), name (alphabetical), member_count (number of users in the channel), and created (date channel was created). You can optionally pair this with the sort_dir arg to change how it is sorted.'
198+
c.flag 'sort', desc: 'Possible values are relevant (search ranking based on what we think is closest), name (alphabetical), member_count (number of users in the channel), and created (date channel was created). You can optionally pair this with the sort_dir arg to change how it is sorted .'
199199
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).'
200200
c.flag 'team_ids', desc: 'Comma separated string of team IDs, signifying the internal workspaces to search through.'
201201
c.flag 'total_count_only', desc: 'Only return the total_count of channels. Omits channel data and allows access for admins without channel manager permissions.'
@@ -224,8 +224,8 @@ class App
224224
end
225225
end
226226

227-
g.desc 'Set the workspaces in an Enterprise grid org that connect to a public or private channel.'
228-
g.long_desc %( Set the workspaces in an Enterprise grid org that connect to a public or private channel. )
227+
g.desc 'Set the workspaces in an Enterprise org that connect to a public or private channel.'
228+
g.long_desc %( Set the workspaces in an Enterprise org that connect to a public or private channel. )
229229
g.command 'setTeams' do |c|
230230
c.flag 'channel_id', desc: 'The encoded channel_id to add or remove to workspaces.'
231231
c.flag 'org_channel', desc: 'True if channel has to be converted to an org channel.'

0 commit comments

Comments
 (0)