From 82def6da2164fd16848567b2a52bfecae77d54c7 Mon Sep 17 00:00:00 2001 From: slack-ruby-ci-bot Date: Wed, 4 Oct 2023 23:19:52 +0000 Subject: [PATCH] Update API from slack-api-ref@d3eba1e (2023-10-04) --- bin/commands/admin_conversations.rb | 1 + bin/commands/chat.rb | 1 + lib/slack/web/api/endpoints/admin_conversations.rb | 2 ++ lib/slack/web/api/endpoints/chat.rb | 2 ++ lib/slack/web/api/slack-api-ref | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/commands/admin_conversations.rb b/bin/commands/admin_conversations.rb index 71ff12f6..a2a27ba0 100644 --- a/bin/commands/admin_conversations.rb +++ b/bin/commands/admin_conversations.rb @@ -176,6 +176,7 @@ class App 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.' 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).' c.flag 'team_ids', desc: 'Comma separated string of team IDs, signifying the internal workspaces to search through.' + 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.' c.action do |_global_options, options, _args| puts JSON.dump(@client.admin_conversations_search(options)) end diff --git a/bin/commands/chat.rb b/bin/commands/chat.rb index 33936f24..a7b3a1b6 100644 --- a/bin/commands/chat.rb +++ b/bin/commands/chat.rb @@ -94,6 +94,7 @@ class App c.flag 'mrkdwn', desc: 'Disable Slack markup parsing by setting to false. Enabled by default.' c.flag 'parse', desc: 'Change how messages are treated. See below.' c.flag 'reply_broadcast', desc: 'Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false.' + c.flag 'service_team_id', desc: 'For a message posted in App Home, Team ID corresponding to the selected app installation.' c.flag 'thread_ts', desc: "Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead." c.flag 'unfurl_links', desc: 'Pass true to enable unfurling of primarily text-based content.' c.flag 'unfurl_media', desc: 'Pass false to disable unfurling of media content.' diff --git a/lib/slack/web/api/endpoints/admin_conversations.rb b/lib/slack/web/api/endpoints/admin_conversations.rb index 6431d5b4..325b494f 100644 --- a/lib/slack/web/api/endpoints/admin_conversations.rb +++ b/lib/slack/web/api/endpoints/admin_conversations.rb @@ -264,6 +264,8 @@ def admin_conversations_rename(options = {}) # 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). # @option options [array] :team_ids # Comma separated string of team IDs, signifying the internal workspaces to search through. + # @option options [boolean] :total_count_only + # Only return the total_count of channels. Omits channel data and allows access for admins without channel manager permissions. # @see https://api.slack.com/methods/admin.conversations.search # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations/admin.conversations.search.json def admin_conversations_search(options = {}) diff --git a/lib/slack/web/api/endpoints/chat.rb b/lib/slack/web/api/endpoints/chat.rb index 4f5f7ab8..8929a7ac 100644 --- a/lib/slack/web/api/endpoints/chat.rb +++ b/lib/slack/web/api/endpoints/chat.rb @@ -156,6 +156,8 @@ def chat_postEphemeral(options = {}) # Change how messages are treated. See below. # @option options [boolean] :reply_broadcast # Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false. + # @option options [string] :service_team_id + # For a message posted in App Home, Team ID corresponding to the selected app installation. # @option options [string] :thread_ts # Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead. # @option options [boolean] :unfurl_links diff --git a/lib/slack/web/api/slack-api-ref b/lib/slack/web/api/slack-api-ref index d3eba1e6..f6b1a0f7 160000 --- a/lib/slack/web/api/slack-api-ref +++ b/lib/slack/web/api/slack-api-ref @@ -1 +1 @@ -Subproject commit d3eba1e6e06f1ea3f4f2eaaec832c68ff0163e78 +Subproject commit f6b1a0f7a75a5307c5f69797f69549a54cc5b3b8