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
# This file was auto-generated by lib/tasks/web.rake
3
+
4
+
moduleSlack
5
+
moduleCli
6
+
classApp
7
+
desc'AdminAnalyticsMessages methods.'
8
+
command'admin_analytics_messages'do |g|
9
+
g.desc'Retrieves activity metrics for messages from a given channel.'
10
+
g.long_desc%( Retrieves activity metrics for messages from a given channel. )
11
+
g.command'activity'do |c|
12
+
c.flag'channel',desc: 'Channel ID for channel of the message activity to query.'
13
+
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.'
14
+
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.'
15
+
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."
16
+
c.flag'limit',desc: 'Maximum number of entries to return. The maximum limit is 100.'
g.desc'Retrieves metadata for a list of messages from a given channel.'
23
+
g.long_desc%( Retrieves metadata for a list of messages from a given channel. )
24
+
g.command'metadata'do |c|
25
+
c.flag'channel',desc: 'Channel ID for channel containing the messages to query.'
26
+
c.flag'oldest_ts',desc: 'Oldest timestamp to include in the results.'
27
+
c.flag'latest_ts',desc: 'Most recent timestamp to include in the results. If not passed, defaults to current time.'
28
+
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."
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
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ class App
10
10
g.long_desc%( Appends text to an existing streaming conversation. )
11
11
g.command'appendStream'do |c|
12
12
c.flag'channel',desc: 'An encoded ID that represents a channel, private group, or DM.'
13
+
c.flag'chunks',desc: 'An array of streaming chunks. Chunks can be markdown text chunks, task update chunks, and plan update chunks.'
13
14
c.flag'ts',desc: 'The timestamp of the streaming message.'
14
15
c.flag'markdown_text',desc: 'Accepts message text formatted in markdown. Limit this field to 12,000 characters. This text is what will be appended to the message received so far.'
15
16
c.actiondo |_global_options,options,_args|
@@ -103,7 +104,7 @@ class App
103
104
c.flag'icon_url',desc: 'URL to an image to use as the icon for this message.'
104
105
c.flag'link_names',desc: 'Find and link user groups. No longer supports linking individual users; use syntax shown in Mentioning Users instead.'
105
106
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.'
107
+
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
108
c.flag'mrkdwn',desc: 'Disable Slack markup parsing by setting to false. Enabled by default.'
108
109
c.flag'parse',desc: 'Change how messages are treated. See below.'
109
110
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,11 +143,13 @@ class App
142
143
g.desc'Starts a new streaming conversation.'
143
144
g.long_desc%( Starts a new streaming conversation. )
144
145
g.command'startStream'do |c|
145
-
c.flag'channel',desc: 'An encoded ID that represents a channel, private group, or DM.'
146
+
c.flag'channel',desc: 'An encoded ID that represents a channel thread or DM.'
147
+
c.flag'chunks',desc: 'An array of streaming chunks. Chunks can be markdown text chunks, task update chunks, and plan update chunks.'
146
148
c.flag'markdown_text',desc: 'Accepts message text formatted in markdown. Limit this field to 12,000 characters.'
147
149
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
150
c.flag'recipient_user_id',desc: 'The encoded ID of the user to receive the streaming text. Required when streaming to channels.'
149
151
c.flag'recipient_team_id',desc: 'The encoded ID of the team the user receiving the streaming text belongs to. Required when streaming to channels.'
152
+
c.flag'task_display_mode',desc: "Specifies how tasks are displayed in the message. A timeline displays individual tasks with text in sequential order, and plan displays all tasks together, with the first tasks's placement determining the placement of the rest of the tasks."
150
153
c.actiondo |_global_options,options,_args|
151
154
putsJSON.dump(@client.chat_startStream(options))
152
155
end
@@ -156,6 +159,7 @@ class App
156
159
g.long_desc%( Stops a streaming conversation. )
157
160
g.command'stopStream'do |c|
158
161
c.flag'channel',desc: 'An encoded ID that represents a channel, private group, or DM.'
162
+
c.flag'chunks',desc: 'An array of streaming chunks. Chunks can be markdown text chunks, task update chunks, and plan update chunks.'
159
163
c.flag'ts',desc: 'The timestamp of the streaming message.'
160
164
c.flag'markdown_text',desc: 'Accepts message text formatted in markdown. Limit this field to 12,000 characters.'
161
165
c.flag'blocks',desc: 'A list of blocks that will be rendered at the bottom of the finalized message.'
@@ -177,7 +181,7 @@ class App
177
181
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
182
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
183
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.'
184
+
c.flag'metadata',desc: 'JSON object with an entities field providing an array of Work Object entities. Either unfurls or metadata must be provided.'
181
185
c.actiondo |_global_options,options,_args|
182
186
putsJSON.dump(@client.chat_unfurl(options))
183
187
end
@@ -188,6 +192,7 @@ class App
188
192
g.command'update'do |c|
189
193
c.flag'as_user',desc: 'Pass true to update the message as the authed user. Bot users in this context are considered authed users.'
190
194
c.flag'attachments',desc: 'A JSON-based array of structured attachments, presented as a URL-encoded string.'
195
+
c.flag'unfurled_attachments',desc: 'A JSON-based array of structured attachments, presented as a URL-encoded string.'
191
196
c.flag'blocks',desc: 'A JSON-based array of structured blocks, presented as a URL-encoded string.'
192
197
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.'
193
198
c.flag'metadata',desc: "JSON object with event_type and event_payload fields, presented as a URL-encoded string. If you don't include this field, the message's previous metadata will be retained. To remove previous metadata, include an empty object for this field. Metadata you post to Slack is accessible to any app or user who is a member of that workspace."
Copy file name to clipboardExpand all lines: bin/commands/files.rb
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -63,8 +63,8 @@ class App
63
63
end
64
64
end
65
65
66
-
g.desc'List for a team, in a channel, or from a user with applied filters.'
67
-
g.long_desc%( List for a team, in a channel, or from a user with applied filters. )
66
+
g.desc'List files for a team, in a channel, or from a user with applied filters.'
67
+
g.long_desc%( List files for a team, in a channel, or from a user with applied filters. )
68
68
g.command'list'do |c|
69
69
c.flag'channel',desc: 'Filter files appearing in a specific channel, indicated by its ID.'
70
70
c.flag'show_files_hidden_by_limit',desc: 'Show truncated file info for files hidden due to being too old, and the team who owns the file being over the file limit.'
0 commit comments