Skip to content

Commit ba5ec95

Browse files
committed
Update API from slack-api-ref@bd5dd34 (2025-09-29)
1 parent 789e975 commit ba5ec95

File tree

12 files changed

+39
-13
lines changed

12 files changed

+39
-13
lines changed

bin/commands/admin_functions.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ module Cli
66
class App
77
desc 'AdminFunctions methods.'
88
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. )
1111
g.command 'list' do |c|
1212
c.flag 'team_id', desc: 'The team context to retrieve functions from.'
1313
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.'
1415
c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.'
1516
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.'
1617
c.action do |_global_options, options, _args|

bin/commands/admin_functions_permissions.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class App
1515
end
1616
end
1717

18-
g.desc 'Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities'
19-
g.long_desc %( Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities )
18+
g.desc 'Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities.'
19+
g.long_desc %( Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities. )
2020
g.command 'set' do |c|
2121
c.flag 'function_id', desc: 'The function ID to set permissions for.'
2222
c.flag 'visibility', desc: 'The function visibility.'

bin/commands/assistant_search.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,19 @@ class App
1313
c.flag 'action_token', desc: 'Send action_token as received in a message event.'
1414
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.'
1515
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.'
1717
c.flag 'before', desc: 'UNIX timestamp filter. If present, filters for results before this date.'
1818
c.flag 'after', desc: 'UNIX timestamp filter. If present, filters for results after this date.'
1919
c.flag 'include_context_messages', desc: 'Whether to include context messages surrounding the main message result. Defaults to false if unspecified.'
2020
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.'
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.'
2222
c.flag 'limit', desc: 'Number of results to return, up to a max of 20. Defaults to 20.'
2323
c.flag 'sort', desc: 'The field to sort the results by. Defaults to score. Can be one of: score, timestamp.'
2424
c.flag 'sort_dir', desc: 'The direction to sort the results by. Defaults to desc.'
2525
c.flag 'include_message_blocks', desc: 'Whether to return the message blocks in the response.'
2626
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).'
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 '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.'
2829
c.action do |_global_options, options, _args|
2930
puts JSON.dump(@client.assistant_search_context(options))
3031
end

bin/commands/chat.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ class App
8787
c.flag 'attachments', desc: 'A JSON-based array of structured attachments, presented as a URL-encoded string.'
8888
c.flag 'blocks', desc: 'A JSON-based array of structured blocks, presented as a URL-encoded string.'
8989
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.'
90+
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."
9091
c.flag 'icon_emoji', desc: 'Emoji to use as the icon for this message. Overrides icon_url.'
9192
c.flag 'icon_url', desc: 'URL to an image to use as the icon for this message.'
9293
c.flag 'link_names', desc: 'Find and link user groups. No longer supports linking individual users; use syntax shown in Mentioning Users instead.'

bin/commands/oauth_v2.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class App
1212
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.'
1313
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.'
1414
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.'
1516
c.flag 'redirect_uri', desc: 'This must match the originally submitted URI (if one was sent).'
1617
c.flag 'grant_type', desc: 'The grant_type param as described in the OAuth spec.'
1718
c.flag 'refresh_token', desc: 'The refresh_token param as described in the OAuth spec.'

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ module Api
77
module Endpoints
88
module AdminFunctions
99
#
10-
# Look up functions by a set of apps
10+
# Look up functions by a set of apps.
1111
#
1212
# @option options [Object] :team_id
1313
# The team context to retrieve functions from.
1414
# @option options [array] :app_ids
1515
# Comma-separated array of app IDs to get functions for; max 50.
16+
# @option options [boolean] :include_non_distributed_functions
17+
# 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.
1618
# @option options [string] :cursor
1719
# Set cursor to next_cursor returned by the previous call to list items in the next page.
1820
# @option options [integer] :limit

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def admin_functions_permissions_lookup(options = {})
1919
end
2020

2121
#
22-
# Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities
22+
# Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities.
2323
#
2424
# @option options [string] :function_id
2525
# The function ID to set permissions for.

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module AssistantSearch
1818
# @option options [array] :content_types
1919
# Content types to include, a comma-separated list of any combination of messages, files, channels, users.
2020
# @option options [boolean] :include_bots
21-
# If you want the results to include bots.
21+
# Whether the results should include bots.
2222
# @option options [integer] :before
2323
# UNIX timestamp filter. If present, filters for results before this date.
2424
# @option options [integer] :after
@@ -28,7 +28,7 @@ module AssistantSearch
2828
# @option options [Object] :context_channel_id
2929
# Context channel ID to support scoping the search when applicable.
3030
# @option options [string] :cursor
31-
# The cursor returned by the API. Leave this blank for the first request, and use this to get the next page of results.
31+
# The cursor returned by the API. Leave this blank for the first request and use this to get the next page of results.
3232
# @option options [integer] :limit
3333
# Number of results to return, up to a max of 20. Defaults to 20.
3434
# @option options [enum] :sort
@@ -40,7 +40,9 @@ module AssistantSearch
4040
# @option options [boolean] :highlight
4141
# Whether to highlight the search query in the results. Defaults to false if unspecified.
4242
# @option options [array] :term_clauses
43-
# 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).
43+
# 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).
44+
# @option options [string] :modifiers
45+
# 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.
4446
# @see https://api.slack.com/methods/assistant.search.context
4547
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/assistant.search/assistant.search.context.json
4648
def assistant_search_context(options = {})

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ def chat_postEphemeral(options = {})
142142
# A JSON-based array of structured blocks, presented as a URL-encoded string.
143143
# @option options [channel] :channel
144144
# 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.
145+
# @option options [string] :current_draft_last_updated_ts
146+
# 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.
145147
# @option options [string] :icon_emoji
146148
# Emoji to use as the icon for this message. Overrides icon_url.
147149
# @option options [string] :icon_url

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ module OauthV2
1515
# 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.
1616
# @option options [string] :code
1717
# The code param returned via the OAuth callback.
18+
# @option options [string] :code_verifier
19+
# The code_verifier param used to generate the code_challenge originally. Used for PKCE.
1820
# @option options [string] :redirect_uri
1921
# This must match the originally submitted URI (if one was sent).
2022
# @option options [string] :grant_type

0 commit comments

Comments
 (0)