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.0.1 (Next)
2
2
3
+
*[#574](https://github.com/slack-ruby/slack-ruby-client/pull/574): Update API from [slack-api-ref@bd5dd34](https://github.com/slack-ruby/slack-api-ref/commit/bd5dd34) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot).
3
4
* Your contribution here.
4
5
*[#576](https://github.com/slack-ruby/slack-ruby-client/pull/576): Add support for `blocks` in `files_upload_v2` - [@childish-sambino](https://github.com/childish-sambino).
Copy file name to clipboardExpand all lines: bin/commands/admin_functions.rb
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,12 @@ module Cli
6
6
classApp
7
7
desc'AdminFunctions methods.'
8
8
command'admin_functions'do |g|
9
-
g.desc'Look up functions by a set of apps'
10
-
g.long_desc%( Look up functions by a set of apps )
9
+
g.desc'Look up functions by a set of apps.'
10
+
g.long_desc%( Look up functions by a set of apps. )
11
11
g.command'list'do |c|
12
12
c.flag'team_id',desc: 'The team context to retrieve functions from.'
13
13
c.flag'app_ids',desc: 'Comma-separated array of app IDs to get functions for; max 50.'
14
+
c.flag'include_non_distributed_functions',desc: 'Whether to also include functions that are not yet distributed to any users in the function count. This is needed for admins that are approving an app request and will only work if the team owns the app.'
14
15
c.flag'cursor',desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.'
15
16
c.flag'limit',desc: 'The number of results that will be returned by the API on each invocation. Must be between 1 and 1000, both inclusive.'
Copy file name to clipboardExpand all lines: bin/commands/admin_users.rb
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,16 @@ class App
19
19
end
20
20
end
21
21
22
+
g.desc'Fetches the expiration timestamp for a guest'
23
+
g.long_desc%( Fetches the expiration timestamp for a guest )
24
+
g.command'getExpiration'do |c|
25
+
c.flag'user_id',desc: 'The ID of the guest user to get the expiration for.'
26
+
c.flag'target_team',desc: 'If an org token is passed in and this team is on the org, it will operate on the workspace level on the specified team. Otherwise it will operate on the org or team in context.'
Copy file name to clipboardExpand all lines: bin/commands/assistant_search.rb
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -13,18 +13,21 @@ class App
13
13
c.flag'action_token',desc: 'Send action_token as received in a message event.'
14
14
c.flag'channel_types',desc: 'Mix and match channel types by providing a comma-separated list of any combination of public_channel, private_channel, mpim, im.'
15
15
c.flag'content_types',desc: 'Content types to include, a comma-separated list of any combination of messages, files, channels, users.'
16
-
c.flag'include_bots',desc: 'If you want the results to include bots.'
16
+
c.flag'include_bots',desc: 'Whether the results should include bots.'
17
+
c.flag'include_deleted_users',desc: 'Whether to include deleted users in the user search results. Defaults to false.'
17
18
c.flag'before',desc: 'UNIX timestamp filter. If present, filters for results before this date.'
18
19
c.flag'after',desc: 'UNIX timestamp filter. If present, filters for results after this date.'
19
20
c.flag'include_context_messages',desc: 'Whether to include context messages surrounding the main message result. Defaults to false if unspecified.'
20
21
c.flag'context_channel_id',desc: 'Context channel ID to support scoping the search when applicable.'
21
-
c.flag'cursor',desc: 'The cursor returned by the API. Leave this blank for the first request, and use this to get the next page of results.'
22
+
c.flag'cursor',desc: 'The cursor returned by the API. Leave this blank for the first request and use this to get the next page of results.'
22
23
c.flag'limit',desc: 'Number of results to return, up to a max of 20. Defaults to 20.'
23
24
c.flag'sort',desc: 'The field to sort the results by. Defaults to score. Can be one of: score, timestamp.'
24
25
c.flag'sort_dir',desc: 'The direction to sort the results by. Defaults to desc.'
25
26
c.flag'include_message_blocks',desc: 'Whether to return the message blocks in the response.'
26
27
c.flag'highlight',desc: 'Whether to highlight the search query in the results. Defaults to false if unspecified.'
27
-
c.flag'term_clauses',desc: 'A list of term clauses. A term clause is a string with search terms. Search results returned will match every term clause specified (i.e. conjunctive normal form).'
28
+
c.flag'term_clauses',desc: 'A list of term clauses. A term clause is a string with search terms. Search results returned will match every term clause specified (i.e., conjunctive normal form).'
29
+
c.flag'modifiers',desc: 'A string containing only modifiers in the format of modifier:value. Search results returned will match the modifier value. For now modifiers only affect term clauses.'
30
+
c.flag'include_archived_channels',desc: 'Whether to include archived channels in the search results.'
Copy file name to clipboardExpand all lines: bin/commands/chat.rb
+40-1Lines changed: 40 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,17 @@ module Cli
6
6
classApp
7
7
desc'Chat methods.'
8
8
command'chat'do |g|
9
+
g.desc'Appends text to an existing streaming conversation.'
10
+
g.long_desc%( Appends text to an existing streaming conversation. )
11
+
g.command'appendStream'do |c|
12
+
c.flag'channel',desc: 'An encoded ID that represents a channel, private group, or DM.'
13
+
c.flag'ts',desc: 'The timestamp of the streaming message.'
14
+
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
+
c.actiondo |_global_options,options,_args|
16
+
putsJSON.dump(@client.chat_appendStream(options))
17
+
end
18
+
end
19
+
9
20
g.desc'Execute a slash command in a public channel (undocumented)'
10
21
g.long_desc%( Execute a slash command in a public channel )
11
22
g.command'command'do |c|
@@ -87,6 +98,7 @@ class App
87
98
c.flag'attachments',desc: 'A JSON-based array of structured attachments, presented as a URL-encoded string.'
88
99
c.flag'blocks',desc: 'A JSON-based array of structured blocks, presented as a URL-encoded string.'
89
100
c.flag'channel',desc: 'An encoded ID or channel name that represents a channel, private group, or IM channel to send the message to. See below for more details.'
101
+
c.flag'current_draft_last_updated_ts',desc: "This field represents the timestamp of the draft's last update at the time this API is called. If the current message is a draft, this field can be provided to ensure synchronization with the server."
90
102
c.flag'icon_emoji',desc: 'Emoji to use as the icon for this message. Overrides icon_url.'
91
103
c.flag'icon_url',desc: 'URL to an image to use as the icon for this message.'
92
104
c.flag'link_names',desc: 'Find and link user groups. No longer supports linking individual users; use syntax shown in Mentioning Users instead.'
@@ -127,18 +139,45 @@ class App
127
139
end
128
140
end
129
141
142
+
g.desc'Starts a new streaming conversation.'
143
+
g.long_desc%( Starts a new streaming conversation. )
144
+
g.command'startStream'do |c|
145
+
c.flag'channel',desc: 'An encoded ID that represents a channel, private group, or DM.'
146
+
c.flag'markdown_text',desc: 'Accepts message text formatted in markdown. Limit this field to 12,000 characters.'
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
+
c.flag'recipient_user_id',desc: 'The encoded ID of the user to receive the streaming text. Required when streaming to channels.'
149
+
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.'
150
+
c.actiondo |_global_options,options,_args|
151
+
putsJSON.dump(@client.chat_startStream(options))
152
+
end
153
+
end
154
+
155
+
g.desc'Stops a streaming conversation.'
156
+
g.long_desc%( Stops a streaming conversation. )
157
+
g.command'stopStream'do |c|
158
+
c.flag'channel',desc: 'An encoded ID that represents a channel, private group, or DM.'
159
+
c.flag'ts',desc: 'The timestamp of the streaming message.'
160
+
c.flag'markdown_text',desc: 'Accepts message text formatted in markdown. Limit this field to 12,000 characters.'
161
+
c.flag'blocks',desc: 'A list of blocks that will be rendered at the bottom of the finalized message.'
162
+
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.'
163
+
c.actiondo |_global_options,options,_args|
164
+
putsJSON.dump(@client.chat_stopStream(options))
165
+
end
166
+
end
167
+
130
168
g.desc'Provide custom unfurl behavior for user-posted URLs'
131
169
g.long_desc%( Provide custom unfurl behavior for user-posted URLs )
132
170
g.command'unfurl'do |c|
133
171
c.flag'channel',desc: 'Channel ID of the message. Both channel and ts must be provided together, or unfurl_id and source must be provided together.'
134
172
c.flag'ts',desc: 'Timestamp of the message to add unfurl behavior to.'
135
-
c.flag'unfurls',desc: 'URL-encoded JSON map with keys set to URLs featured in the the message, pointing to their unfurl blocks or message attachments.'
173
+
c.flag'unfurls',desc: 'URL-encoded JSON map with keys set to URLs featured in the the message, pointing to their unfurl blocks or message attachments. Either unfurls or metadata must be provided.'
136
174
c.flag'user_auth_message',desc: 'Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior. Provides two buttons, Not now or Never ask me again.'
137
175
c.flag'user_auth_required',desc: 'Set to true or 1 to indicate the user must install your Slack app to trigger unfurls for this domain.'
138
176
c.flag'user_auth_url',desc: 'Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling. Value should be properly URL-encoded.'
139
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.'
140
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.'
141
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.'
# This file was auto-generated by lib/tasks/web.rake
3
+
4
+
moduleSlack
5
+
moduleCli
6
+
classApp
7
+
desc'Entity methods.'
8
+
command'entity'do |g|
9
+
g.desc'Provide custom flexpane behavior for Work Objects. Apps call this endpoint to send per-user flexpane metadata to the client.'
10
+
g.long_desc%( Provide custom flexpane behavior for Work Objects. Apps call this endpoint to send per-user flexpane metadata to the client. )
11
+
g.command'presentDetails'do |c|
12
+
c.flag'metadata',desc: 'URL-encoded JSON object containing flexpane metadata from the app that will be conformed to a Work Object metadata schema, keyed by entity ID.'
13
+
c.flag'trigger_id',desc: 'A reference to the original user action that initiated the request.'
14
+
c.flag'user_auth_required',desc: 'Set to true (or 1) to indicate that the user must authenticate to view full flexpane data.'
15
+
c.flag'user_auth_url',desc: 'A custom URL to which users are directed for authentication if required.'
Copy file name to clipboardExpand all lines: bin/commands/files.rb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ class App
12
12
c.flag'files',desc: 'Array of file ids and their corresponding (optional) titles.'
13
13
c.flag'channel_id',desc: 'Channel ID where the file will be shared. If not specified the file will be private.'
14
14
c.flag'thread_ts',desc: "Provide another message's ts value to upload this file as a reply. Never use a reply's ts value; use its parent instead. Also make sure to provide only one channel when using 'thread_ts'."
15
-
c.flag'channels',desc: 'Comma-separated string of channel IDs where the file will be shared.'
15
+
c.flag'channels',desc: 'Comma-separated string of channel IDs or user IDs where the file will be shared.'
16
16
c.flag'initial_comment',desc: 'The message text introducing the file in specified channels.'
17
17
c.flag'blocks',desc: 'A JSON-based array of structured rich text blocks, presented as a URL-encoded string. If the initial_comment field is provided, the blocks field is ignored.'
Copy file name to clipboardExpand all lines: bin/commands/oauth_v2.rb
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ class App
12
12
c.flag'client_id',desc: 'Issued when you created your application. If possible, avoid sending client_id and client_secret as parameters in your request and instead supply the Client ID and Client Secret using the HTTP Basic authentication scheme.'
13
13
c.flag'client_secret',desc: 'Issued when you created your application. If possible, avoid sending client_id and client_secret as parameters in your request and instead supply the Client ID and Client Secret using the HTTP Basic authentication scheme.'
14
14
c.flag'code',desc: 'The code param returned via the OAuth callback.'
15
+
c.flag'code_verifier',desc: 'The code_verifier param used to generate the code_challenge originally. Used for PKCE.'
15
16
c.flag'redirect_uri',desc: 'This must match the originally submitted URI (if one was sent).'
16
17
c.flag'grant_type',desc: 'The grant_type param as described in the OAuth spec.'
17
18
c.flag'refresh_token',desc: 'The refresh_token param as described in the OAuth spec.'
0 commit comments