You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
### 3.1.1 (Next)
2
2
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).
Copy file name to clipboardExpand all lines: bin/commands/assistant_threads.rb
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@ class App
11
11
g.command'setStatus'do |c|
12
12
c.flag'channel_id',desc: 'Channel ID containing the assistant thread.'
13
13
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.'
Copy file name to clipboardExpand all lines: bin/commands/chat.rb
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ class App
103
103
c.flag'icon_url',desc: 'URL to an image to use as the icon for this message.'
104
104
c.flag'link_names',desc: 'Find and link user groups. No longer supports linking individual users; use syntax shown in Mentioning Users instead.'
105
105
c.flag'markdown_text',desc: 'Accepts message text formatted in markdown. This argument should not be used in conjunction with blocks or text. Limit this field to 12,000 characters.'
106
-
c.flag'metadata',desc: 'JSON object with event_type and event_payload fields, presented as a URL-encoded string. Metadata you post to Slack is accessible to any app or user who is a member of that workspace.'
106
+
c.flag'metadata',desc: 'JSON object with event_type and event_payload fields, presented as a URL-encoded string. You can also provide Work Object entity metadata using this parameter. Metadata you post to Slack is accessible to any app or user who is a member of that workspace.'
107
107
c.flag'mrkdwn',desc: 'Disable Slack markup parsing by setting to false. Enabled by default.'
108
108
c.flag'parse',desc: 'Change how messages are treated. See below.'
109
109
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.'
@@ -142,7 +142,7 @@ class App
142
142
g.desc'Starts a new streaming conversation.'
143
143
g.long_desc%( Starts a new streaming conversation. )
144
144
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.'
146
146
c.flag'markdown_text',desc: 'Accepts message text formatted in markdown. Limit this field to 12,000 characters.'
147
147
c.flag'thread_ts',desc: "Provide another message's ts value to reply to. Streamed messages should always be replies to a user request."
148
148
c.flag'recipient_user_id',desc: 'The encoded ID of the user to receive the streaming text. Required when streaming to channels.'
@@ -177,7 +177,7 @@ class App
177
177
c.flag'user_auth_blocks',desc: 'Provide a JSON based array of structured blocks presented as URL-encoded string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior.'
178
178
c.flag'unfurl_id',desc: 'The ID of the link to unfurl. Both unfurl_id and source must be provided together, or channel and ts must be provided together.'
179
179
c.flag'source',desc: 'The source of the link to unfurl. The source may either be composer, when the link is inside the message composer, or conversations_history, when the link has been posted to a conversation.'
180
-
c.flag'metadata',desc: 'JSON object with entity_type and entity_payload fields, presented as a URL-encoded string. Either unfurls or metadata must be provided.'
180
+
c.flag'metadata',desc: 'JSON object with an entities field providing an array of Work Object entities. Either unfurls or metadata must be provided.'
Copy file name to clipboardExpand all lines: lib/slack/web/api/endpoints/assistant_threads.rb
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@ module AssistantThreads
14
14
# @option options [string] :thread_ts
15
15
# Message timestamp of the thread of where to set the status.
16
16
# @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.
18
18
# @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.
raiseArgumentError,'At least one of :attachments, :blocks, :text is required'ifoptions[:attachments].nil? && options[:blocks].nil? && options[:text].nil?
147
+
raiseArgumentError,'At least one of :attachments, :blocks, :text, :markdown_text is required'ifoptions[:attachments].nil? && options[:blocks].nil? && options[:text].nil? && options[:markdown_text].nil?
148
+
raiseArgumentError,'Exactly one of :text, :markdown_text is required'unlessoptions[:text].nil? ^ options[:markdown_text].nil?
# Accepts message text formatted in markdown. This argument should not be used in conjunction with blocks or text. Limit this field to 12,000 characters.
174
175
# @option options [string] :metadata
175
-
# JSON object with event_type and event_payload fields, presented as a URL-encoded string. Metadata you post to Slack is accessible to any app or user who is a member of that workspace.
176
+
# JSON object with event_type and event_payload fields, presented as a URL-encoded string. You can also provide Work Object entity metadata using this parameter. Metadata you post to Slack is accessible to any app or user who is a member of that workspace.
176
177
# @option options [boolean] :mrkdwn
177
178
# Disable Slack markup parsing by setting to false. Enabled by default.
raiseArgumentError,'At least one of :attachments, :blocks, :text is required'ifoptions[:attachments].nil? && options[:blocks].nil? && options[:text].nil?
197
+
raiseArgumentError,'At least one of :attachments, :blocks, :text, :markdown_text is required'ifoptions[:attachments].nil? && options[:blocks].nil? && options[:text].nil? && options[:markdown_text].nil?
198
+
raiseArgumentError,'Exactly one of :text, :markdown_text is required'unlessoptions[:text].nil? ^ options[:markdown_text].nil?
raiseArgumentError,'At least one of :attachments, :blocks, :text is required'ifoptions[:attachments].nil? && options[:blocks].nil? && options[:text].nil?
239
+
raiseArgumentError,'At least one of :attachments, :blocks, :text, :markdown_text is required'ifoptions[:attachments].nil? && options[:blocks].nil? && options[:text].nil? && options[:markdown_text].nil?
240
+
raiseArgumentError,'Exactly one of :text, :markdown_text is required'unlessoptions[:text].nil? ^ options[:markdown_text].nil?
# The source of the link to unfurl. The source may either be composer, when the link is inside the message composer, or conversations_history, when the link has been posted to a conversation.
308
311
# @option options [string] :metadata
309
-
# JSON object with entity_type and entity_payload fields, presented as a URL-encoded string. Either unfurls or metadata must be provided.
312
+
# JSON object with an entities field providing an array of Work Object entities. Either unfurls or metadata must be provided.
raiseArgumentError,'At least one of :attachments, :blocks, :text is required'ifoptions[:attachments].nil? && options[:blocks].nil? && options[:text].nil?
353
+
raiseArgumentError,'At least one of :attachments, :blocks, :text, :markdown_text is required'ifoptions[:attachments].nil? && options[:blocks].nil? && options[:text].nil? && options[:markdown_text].nil?
354
+
raiseArgumentError,'Exactly one of :text, :markdown_text is required'unlessoptions[:text].nil? ^ options[:markdown_text].nil?
0 commit comments