Skip to content

Commit b13e71c

Browse files
committed
Update API from slack-api-ref@3275786 (2025-12-01)
1 parent adfde85 commit b13e71c

File tree

10 files changed

+32
-17
lines changed

10 files changed

+32
-17
lines changed

CHANGELOG.md

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

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

56
### 3.1.0 (2025/11/15)

bin/commands/admin_workflows_triggers_types_permissions.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ module Cli
66
class App
77
desc 'AdminWorkflowsTriggersTypesPermissions methods.'
88
command 'admin_workflows_triggers_types_permissions' do |g|
9-
g.desc 'list the permissions for using each trigger type'
10-
g.long_desc %( list the permissions for using each trigger type )
9+
g.desc 'List the permissions for using each trigger type.'
10+
g.long_desc %( List the permissions for using each trigger type. )
1111
g.command 'lookup' do |c|
12-
c.flag 'trigger_type_ids', desc: 'The trigger types IDs for which to get the permissions.'
12+
c.flag 'trigger_type_ids', desc: 'The trigger type IDs for which to get the permissions.'
1313
c.action do |_global_options, options, _args|
1414
puts JSON.dump(@client.admin_workflows_triggers_types_permissions_lookup(options))
1515
end
@@ -21,6 +21,7 @@ class App
2121
c.flag 'id', desc: 'The trigger type ID for which to set the permissions.'
2222
c.flag 'visibility', desc: 'The function visibility.'
2323
c.flag 'user_ids', desc: 'List of user IDs to allow for named_entities visibility.'
24+
c.flag 'permissions', desc: ''
2425
c.action do |_global_options, options, _args|
2526
puts JSON.dump(@client.admin_workflows_triggers_types_permissions_set(options))
2627
end

bin/commands/assistant_threads.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class App
1111
g.command 'setStatus' do |c|
1212
c.flag 'channel_id', desc: 'Channel ID containing the assistant thread.'
1313
c.flag 'thread_ts', desc: 'Message timestamp of the thread of where to set the status.'
14-
c.flag 'status', desc: "Status of the specified bot user, e.g. 'is thinking...'."
15-
c.flag 'loading_messages', desc: 'The list of messages to rotate through as a loading indicator.'
14+
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."
15+
c.flag 'loading_messages', desc: 'The list of messages to rotate through as a loading indicator. Maximum of 10 messages.'
1616
c.action do |_global_options, options, _args|
1717
puts JSON.dump(@client.assistant_threads_setStatus(options))
1818
end

bin/commands/chat.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class App
142142
g.desc 'Starts a new streaming conversation.'
143143
g.long_desc %( Starts a new streaming conversation. )
144144
g.command 'startStream' do |c|
145-
c.flag 'channel', desc: 'An encoded ID that represents a channel, private group, or DM.'
145+
c.flag 'channel', desc: 'An encoded ID that represents a channel thread or DM.'
146146
c.flag 'markdown_text', desc: 'Accepts message text formatted in markdown. Limit this field to 12,000 characters.'
147147
c.flag 'thread_ts', desc: "Provide another message's ts value to reply to. Streamed messages should always be replies to a user request."
148148
c.flag 'recipient_user_id', desc: 'The encoded ID of the user to receive the streaming text. Required when streaming to channels.'

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ module Api
77
module Endpoints
88
module AdminWorkflowsTriggersTypesPermissions
99
#
10-
# list the permissions for using each trigger type
10+
# List the permissions for using each trigger type.
1111
#
1212
# @option options [array] :trigger_type_ids
13-
# The trigger types IDs for which to get the permissions.
13+
# The trigger type IDs for which to get the permissions.
1414
# @see https://api.slack.com/methods/admin.workflows.triggers.types.permissions.lookup
1515
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.workflows.triggers.types.permissions/admin.workflows.triggers.types.permissions.lookup.json
1616
def admin_workflows_triggers_types_permissions_lookup(options = {})
@@ -27,11 +27,11 @@ def admin_workflows_triggers_types_permissions_lookup(options = {})
2727
# The function visibility.
2828
# @option options [array] :user_ids
2929
# List of user IDs to allow for named_entities visibility.
30+
# @option options [object] :permissions
3031
# @see https://api.slack.com/methods/admin.workflows.triggers.types.permissions.set
3132
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.workflows.triggers.types.permissions/admin.workflows.triggers.types.permissions.set.json
3233
def admin_workflows_triggers_types_permissions_set(options = {})
3334
raise ArgumentError, 'Required arguments :id missing' if options[:id].nil?
34-
raise ArgumentError, 'Required arguments :visibility missing' if options[:visibility].nil?
3535
post('admin.workflows.triggers.types.permissions.set', options)
3636
end
3737
end

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ module AssistantThreads
1414
# @option options [string] :thread_ts
1515
# Message timestamp of the thread of where to set the status.
1616
# @option options [string] :status
17-
# Status of the specified bot user, e.g. 'is thinking...'.
17+
# 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.
1818
# @option options [array] :loading_messages
19-
# The list of messages to rotate through as a loading indicator.
19+
# The list of messages to rotate through as a loading indicator. Maximum of 10 messages.
2020
# @see https://api.slack.com/methods/assistant.threads.setStatus
2121
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/assistant.threads/assistant.threads.setStatus.json
2222
def assistant_threads_setStatus(options = {})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def chat_scheduleMessage(options = {})
243243
# Starts a new streaming conversation.
244244
#
245245
# @option options [channel] :channel
246-
# An encoded ID that represents a channel, private group, or DM.
246+
# An encoded ID that represents a channel thread or DM.
247247
# @option options [string] :markdown_text
248248
# Accepts message text formatted in markdown. Limit this field to 12,000 characters.
249249
# @option options [string] :thread_ts

lib/slack/web/api/errors.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,11 @@ class FileChannelRenameError < SlackError; end
265265
class FileCommentNotFound < SlackError; end
266266
class FileDeleted < SlackError; end
267267
class FileDeletingDisabled < SlackError; end
268+
class FileIsDeleted < SlackError; end
268269
class FileNotFound < SlackError; end
269270
class FileNotShared < SlackError; end
270271
class FileNotYetAvailable < SlackError; end
272+
class FileShareLimitReached < SlackError; end
271273
class FileUnderReview < SlackError; end
272274
class FileUpdateFailed < SlackError; end
273275
class FileUploadSizeRestricted < SlackError; end
@@ -359,6 +361,7 @@ class InvalidOptionId < SlackError; end
359361
class InvalidOrgId < SlackError; end
360362
class InvalidParameters < SlackError; end
361363
class InvalidParentType < SlackError; end
364+
class InvalidPermissionSet < SlackError; end
362365
class InvalidPermissionType < SlackError; end
363366
class InvalidPermissions < SlackError; end
364367
class InvalidPhoneNumber < SlackError; end
@@ -446,11 +449,13 @@ class ListsDisabledUserTeam < SlackError; end
446449
class MalwareDetected < SlackError; end
447450
class ManagedChannelNotSupported < SlackError; end
448451
class MarkdownTextConflict < SlackError; end
452+
class MaxFileSharingExceeded < SlackError; end
449453
class MemberAnalyticsDisabled < SlackError; end
450454
class MemberLimitExceeded < SlackError; end
451455
class MessageLimitExceeded < SlackError; end
452456
class MessageNotFound < SlackError; end
453457
class MessageNotInStreamingState < SlackError; end
458+
class MessageNotOwnedByBot < SlackError; end
454459
class MessageTooLong < SlackError; end
455460
class MessagesTabDisabled < SlackError; end
456461
class MessagingProcessingFailed < SlackError; end
@@ -612,6 +617,7 @@ class RequestAlreadyResolved < SlackError; end
612617
class RequestIdOrAppIdIsRequired < SlackError; end
613618
class RequestIdRequiredForCustomIntegrations < SlackError; end
614619
class RequestTimeout < SlackError; end
620+
class RequiredVisibility < SlackError; end
615621
class ReservedName < SlackError; end
616622
class ResizedButStillTooLarge < SlackError; end
617623
class RestrictedAction < SlackError; end
@@ -651,6 +657,7 @@ class TargetTeamNotOnOrg < SlackError; end
651657
class TeamAddedToOrg < SlackError; end
652658
class TeamIdOrOrgRequired < SlackError; end
653659
class TeamIdRequiredForEnterprise < SlackError; end
660+
class TeamLimitExceeded < SlackError; end
654661
class TeamNotConnected < SlackError; end
655662
class TeamNotFound < SlackError; end
656663
class TeamNotOnEnterprise < SlackError; end
@@ -698,6 +705,7 @@ class UnableToDelete < SlackError; end
698705
class UnableToFetchCustomEmojis < SlackError; end
699706
class UnableToLinkIdpGroupAndChannel < SlackError; end
700707
class UnableToProcessPostRequest < SlackError; end
708+
class UnableToShareFiles < SlackError; end
701709
class UnableToUnlinkIdpGroupAndChannel < SlackError; end
702710
class UnableToUpdateExistingSessions < SlackError; end
703711
class UneditableColumn < SlackError; end
@@ -1013,9 +1021,11 @@ class WorkflowsExportCsvNotEnabled < SlackError; end
10131021
'file_comment_not_found' => FileCommentNotFound,
10141022
'file_deleted' => FileDeleted,
10151023
'file_deleting_disabled' => FileDeletingDisabled,
1024+
'file_is_deleted' => FileIsDeleted,
10161025
'file_not_found' => FileNotFound,
10171026
'file_not_shared' => FileNotShared,
10181027
'file_not_yet_available' => FileNotYetAvailable,
1028+
'file_share_limit_reached' => FileShareLimitReached,
10191029
'file_under_review' => FileUnderReview,
10201030
'file_update_failed' => FileUpdateFailed,
10211031
'file_upload_size_restricted' => FileUploadSizeRestricted,
@@ -1107,6 +1117,7 @@ class WorkflowsExportCsvNotEnabled < SlackError; end
11071117
'invalid_org_id' => InvalidOrgId,
11081118
'invalid_parameters' => InvalidParameters,
11091119
'invalid_parent_type' => InvalidParentType,
1120+
'invalid_permission_set' => InvalidPermissionSet,
11101121
'invalid_permission_type' => InvalidPermissionType,
11111122
'invalid_permissions' => InvalidPermissions,
11121123
'invalid_phone_number' => InvalidPhoneNumber,
@@ -1194,11 +1205,13 @@ class WorkflowsExportCsvNotEnabled < SlackError; end
11941205
'malware_detected' => MalwareDetected,
11951206
'managed_channel_not_supported' => ManagedChannelNotSupported,
11961207
'markdown_text_conflict' => MarkdownTextConflict,
1208+
'max_file_sharing_exceeded' => MaxFileSharingExceeded,
11971209
'member_analytics_disabled' => MemberAnalyticsDisabled,
11981210
'member_limit_exceeded' => MemberLimitExceeded,
11991211
'message_limit_exceeded' => MessageLimitExceeded,
12001212
'message_not_found' => MessageNotFound,
12011213
'message_not_in_streaming_state' => MessageNotInStreamingState,
1214+
'message_not_owned_by_bot' => MessageNotOwnedByBot,
12021215
'message_too_long' => MessageTooLong,
12031216
'messages_tab_disabled' => MessagesTabDisabled,
12041217
'messaging_processing_failed' => MessagingProcessingFailed,
@@ -1360,6 +1373,7 @@ class WorkflowsExportCsvNotEnabled < SlackError; end
13601373
'request_id_or_app_id_is_required' => RequestIdOrAppIdIsRequired,
13611374
'request_id_required_for_custom_integrations' => RequestIdRequiredForCustomIntegrations,
13621375
'request_timeout' => RequestTimeout,
1376+
'required_visibility' => RequiredVisibility,
13631377
'reserved_name' => ReservedName,
13641378
'resized_but_still_too_large' => ResizedButStillTooLarge,
13651379
'restricted_action' => RestrictedAction,
@@ -1399,6 +1413,7 @@ class WorkflowsExportCsvNotEnabled < SlackError; end
13991413
'team_added_to_org' => TeamAddedToOrg,
14001414
'team_id_or_org_required' => TeamIdOrOrgRequired,
14011415
'team_id_required_for_enterprise' => TeamIdRequiredForEnterprise,
1416+
'team_limit_exceeded' => TeamLimitExceeded,
14021417
'team_not_connected' => TeamNotConnected,
14031418
'team_not_found' => TeamNotFound,
14041419
'team_not_on_enterprise' => TeamNotOnEnterprise,
@@ -1446,6 +1461,7 @@ class WorkflowsExportCsvNotEnabled < SlackError; end
14461461
'unable_to_fetch_custom_emojis' => UnableToFetchCustomEmojis,
14471462
'unable_to_link_idp_group_and_channel' => UnableToLinkIdpGroupAndChannel,
14481463
'unable_to_process_post_request' => UnableToProcessPostRequest,
1464+
'unable_to_share_files' => UnableToShareFiles,
14491465
'unable_to_unlink_idp_group_and_channel' => UnableToUnlinkIdpGroupAndChannel,
14501466
'unable_to_update_existing_sessions' => UnableToUpdateExistingSessions,
14511467
'uneditable_column' => UneditableColumn,

spec/slack/web/api/endpoints/admin_workflows_triggers_types_permissions_spec.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
end
1313
context 'admin.workflows.triggers.types.permissions_set' do
1414
it 'requires id' do
15-
expect { client.admin_workflows_triggers_types_permissions_set(visibility: %q[]) }.to raise_error ArgumentError, /Required arguments :id missing/
16-
end
17-
it 'requires visibility' do
18-
expect { client.admin_workflows_triggers_types_permissions_set(id: %q[['FTT01', 'FTT02', 'FTT03']]) }.to raise_error ArgumentError, /Required arguments :visibility missing/
15+
expect { client.admin_workflows_triggers_types_permissions_set }.to raise_error ArgumentError, /Required arguments :id missing/
1916
end
2017
end
2118
end

0 commit comments

Comments
 (0)