Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: remove unnecessary patch. #503

Merged
merged 3 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
### 2.2.1 (Next)

* Your contribution here.
* [#494](https://github.com/slack-ruby/slack-ruby-client/pull/494): Configure Dependabot to update GitHub Actions - [@olleolleolle](https://github.com/olleolleolle).
* [#503](https://github.com/slack-ruby/slack-ruby-client/pull/503): Update Slack API Update API from [slack-api-ref@bc545649](https://github.com/slack-ruby/slack-api-ref/commit/bc545649) - [@dblock](https://github.com/dblock).
* Your contribution here.

### 2.2.0 (2023/09/17)

Expand Down
8 changes: 4 additions & 4 deletions bin/commands/admin_apps_activities.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ class App
g.long_desc %( Get logs for a specified team/org )
g.command 'list' do |c|
c.flag 'app_id', desc: 'The ID of the app to get activities from.'
c.flag 'component_id', desc: "The component ID of log events to be returned. Will be 'FnXXXXXX' for functions, and 'WfXXXXXX' for worflows."
c.flag 'component_type', desc: "The component type of log events to be returned. Acceptable values are ('events_api', 'workflows', 'functions', 'tables')."
c.flag 'component_id', desc: 'The component ID of log events to be returned. Will be FnXXXXXX for functions, and WfXXXXXX for worflows.'
c.flag 'component_type', desc: 'The component type of log events to be returned. Acceptable values are events_api, workflows, functions and tables.'
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. See pagination for more detail."
c.flag 'limit', desc: 'The maximum number of items to return.'
c.flag 'log_event_type', desc: 'The event type of log events to be returned.'
c.flag 'max_date_created', desc: 'The latest timestamp of the log to retrieve (epoch microseconds).'
c.flag 'min_date_created', desc: 'The earliest timestamp of the log to retrieve (epoch microseconds).'
c.flag 'min_log_level', desc: "The minimum log level of the log events to be returned. Defaults to 'info'. Acceptable values (in order of relative importance from smallest to largest) are ('trace', 'debug', 'info', 'warn', 'error', 'fatal')."
c.flag 'min_log_level', desc: 'The minimum log level of the log events to be returned. Defaults to info. Acceptable values (in order of relative importance from smallest to largest) are trace, debug, info, warn, error and fatal.'
c.flag 'sort_direction', desc: 'The direction you want the data sorted by (always by timestamp).'
c.flag 'source', desc: "The source of log events to be returned. Acceptable values are ('slack', 'developer')."
c.flag 'source', desc: 'The source of log events to be returned. Acceptable values are slack and developer.'
c.flag 'team_id', desc: 'The team who owns this log.'
c.flag 'trace_id', desc: 'The trace ID of log events to be returned.'
c.action do |_global_options, options, _args|
Expand Down
4 changes: 2 additions & 2 deletions bin/commands/admin_apps_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class App
g.long_desc %( Set the app config for a connector )
g.command 'set' do |c|
c.flag 'app_id', desc: 'The encoded app ID to set the app config for.'
c.flag 'domain_restrictions', desc: 'Domain restrictions for the app.'
c.flag 'workflow_auth_strategy', desc: 'The workflow auth permission.'
c.flag 'domain_restrictions', desc: 'Domain restrictions for the app. Should be an object with two properties: urls and emails. Each is an array of strings, and each sets the allowed URLs and emails for connector authorization, respectively.'
c.flag 'workflow_auth_strategy', desc: 'The workflow auth permission. Can be one of builder_choice or end_user_only.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.admin_apps_config_set(options))
end
Expand Down
1 change: 1 addition & 0 deletions bin/commands/admin_conversations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions bin/commands/admin_users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class App
g.long_desc %( List users on a workspace )
g.command 'list' do |c|
c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.'
c.flag 'include_deactivated_user_workspaces', desc: 'Only applies with org token and no team_id. If true, return workspaces for a user even if they may be deactivated on them. If false, return workspaces for a user only when user is active on them. Default is false.'
c.flag 'is_active', desc: 'If true, only active users will be returned. If false, only deactivated users will be returned. Default is true.'
c.flag 'limit', desc: 'Limit for how many users to be retrieved per page.'
c.flag 'team_id', desc: 'The ID (T1234) of the workspace. The team_id is required if you use an org-level token.'
c.action do |_global_options, options, _args|
Expand Down
17 changes: 9 additions & 8 deletions bin/commands/chat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ class App
g.long_desc %( Sends an ephemeral message to a user in a channel. )
g.command 'postEphemeral' do |c|
c.flag 'channel', desc: 'Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name.'
c.flag 'text', desc: 'How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.'
c.flag 'user', desc: 'id of the user who will receive the ephemeral message. The user should be in the channel specified by the channel argument.'
c.flag 'as_user', desc: '(Legacy) Pass true to post the message as the authed user. Defaults to true if the chat:write:bot scope is not included. Otherwise, defaults to false.'
c.flag 'attachments', desc: 'A JSON-based array of structured attachments, presented as a URL-encoded string.'
c.flag 'blocks', desc: 'A JSON-based array of structured blocks, presented as a URL-encoded string.'
c.flag 'text', desc: 'How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.'
c.flag 'as_user', desc: '(Legacy) Pass true to post the message as the authed user. Defaults to true if the chat:write:bot scope is not included. Otherwise, defaults to false.'
c.flag 'icon_emoji', desc: 'Emoji to use as the icon for this message. Overrides icon_url.'
c.flag 'icon_url', desc: 'URL to an image to use as the icon for this message.'
c.flag 'link_names', desc: 'Find and link channel names and usernames.'
Expand All @@ -85,7 +85,7 @@ class App
c.flag 'channel', desc: 'Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. See below for more details.'
c.flag 'attachments', desc: 'A JSON-based array of structured attachments, presented as a URL-encoded string.'
c.flag 'blocks', desc: 'A JSON-based array of structured blocks, presented as a URL-encoded string.'
c.flag 'text', desc: 'The formatted text of the message to be published. If blocks are included, this will become the fallback text used in notifications.'
c.flag 'text', desc: 'How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.'
c.flag 'as_user', desc: '(Legacy) Pass true to post the message as the authed user instead of as a bot. Defaults to false. Can only be used by classic Slack apps. See authorship below.'
c.flag 'icon_emoji', desc: 'Emoji to use as the icon for this message. Overrides icon_url.'
c.flag 'icon_url', desc: 'URL to an image to use as the icon for this message.'
Expand All @@ -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.'
Expand All @@ -108,10 +109,10 @@ class App
g.command 'scheduleMessage' do |c|
c.flag 'channel', desc: 'Channel, private group, or DM channel to send message to. Can be an encoded ID, or a name. See below for more details.'
c.flag 'post_at', desc: 'Unix EPOCH timestamp of time in future to send the message.'
c.flag 'text', desc: 'How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.'
c.flag 'as_user', desc: 'Set to true to post the message as the authed user, instead of as a bot. Defaults to false. Cannot be used by new Slack apps. See chat.postMessage.'
c.flag 'attachments', desc: 'A JSON-based array of structured attachments, presented as a URL-encoded string.'
c.flag 'blocks', desc: 'A JSON-based array of structured blocks, presented as a URL-encoded string.'
c.flag 'text', desc: 'How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.'
c.flag 'as_user', desc: 'Set to true to post the message as the authed user, instead of as a bot. Defaults to false. Cannot be used by new Slack apps. See chat.postMessage.'
c.flag 'link_names', desc: 'Find and link user groups. No longer supports linking individual users; use syntax shown in Mentioning Users instead.'
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.'
c.flag 'parse', desc: 'Change how messages are treated. See chat.postMessage.'
Expand Down Expand Up @@ -146,15 +147,15 @@ class App
g.command 'update' do |c|
c.flag 'channel', desc: 'Channel containing the message to be updated.'
c.flag 'ts', desc: 'Timestamp of the message to be updated.'
c.flag 'attachments', desc: 'A JSON-based array of structured attachments, presented as a URL-encoded string.'
c.flag 'blocks', desc: 'A JSON-based array of structured blocks, presented as a URL-encoded string.'
c.flag 'text', desc: 'How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.'
c.flag 'as_user', desc: 'Pass true to update the message as the authed user. Bot users in this context are considered authed users.'
c.flag 'attachments', desc: "A JSON-based array of structured attachments, presented as a URL-encoded string. This field is required when not presenting text. If you don't include this field, the message's previous attachments will be retained. To remove previous attachments, include an empty array for this field."
c.flag 'blocks', desc: "A JSON-based array of structured blocks, presented as a URL-encoded string. If you don't include this field, the message's previous blocks will be retained. To remove previous blocks, include an empty array for this field."
c.flag 'file_ids', desc: 'Array of new file ids that will be sent with this message.'
c.flag 'link_names', desc: 'Find and link channel names and usernames. Defaults to none. If you do not specify a value for this field, the original value set for the message will be overwritten with the default, none.'
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."
c.flag 'parse', desc: 'Change how messages are treated. Defaults to client, unlike chat.postMessage. Accepts either none or full. If you do not specify a value for this field, the original value set for the message will be overwritten with the default, client.'
c.flag 'reply_broadcast', desc: 'Broadcast an existing thread reply to make it visible to everyone in the channel or conversation.'
c.flag 'text', desc: "New text for the message, using the default formatting rules. It's not required when presenting blocks or attachments."
c.action do |_global_options, options, _args|
puts JSON.dump(@client.chat_update(options))
end
Expand Down
2 changes: 1 addition & 1 deletion bin/commands/conversations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class App
g.command 'list' do |c|
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 detail."
c.flag 'exclude_archived', desc: 'Set to true to exclude archived channels from the list.'
c.flag 'limit', desc: "The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached. Must be an integer no larger than 1000."
c.flag 'limit', desc: "The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached. Must be an integer under 1000."
c.flag 'team_id', desc: 'encoded team id to list channels in, required if token belongs to org-wide app.'
c.flag 'types', desc: 'Mix and match channel types by providing a comma-separated list of any combination of public_channel, private_channel, mpim, im.'
c.action do |_global_options, options, _args|
Expand Down
2 changes: 1 addition & 1 deletion bin/commands/team.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class App
g.long_desc %( Gets the integration logs for the current team. )
g.command 'integrationLogs' do |c|
c.flag 'app_id', desc: 'Filter logs to this Slack app. Defaults to all logs.'
c.flag 'change_type', desc: 'Filter logs with this change type. Defaults to all logs.'
c.flag 'change_type', desc: 'Filter logs with this change type. Possible values are added, removed, enabled, disabled, and updated. Defaults to all logs.'
c.flag 'service_id', desc: 'Filter logs to this service. Defaults to all logs.'
c.flag 'team_id', desc: 'encoded team id to get logs from, required if org token is used.'
c.flag 'user', desc: "Filter logs generated by this user's actions. Defaults to all logs."
Expand Down
20 changes: 10 additions & 10 deletions bin/commands/usergroups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module Cli
class App
desc 'Usergroups methods.'
command 'usergroups' do |g|
g.desc 'Create a User Group'
g.long_desc %( Create a User Group )
g.desc 'Create a User Group.'
g.long_desc %( Create a User Group. )
g.command 'create' do |c|
c.flag 'name', desc: 'A name for the User Group. Must be unique among User Groups.'
c.flag 'channels', desc: 'A comma separated string of encoded channel IDs for which the User Group uses as a default.'
Expand All @@ -20,8 +20,8 @@ class App
end
end

g.desc 'Disable an existing User Group'
g.long_desc %( Disable an existing User Group )
g.desc 'Disable an existing User Group.'
g.long_desc %( Disable an existing User Group. )
g.command 'disable' do |c|
c.flag 'usergroup', desc: 'The encoded ID of the User Group to disable.'
c.flag 'include_count', desc: 'Include the number of users in the User Group.'
Expand All @@ -31,8 +31,8 @@ class App
end
end

g.desc 'Enable a User Group'
g.long_desc %( Enable a User Group )
g.desc 'Enable a User Group.'
g.long_desc %( Enable a User Group. )
g.command 'enable' do |c|
c.flag 'usergroup', desc: 'The encoded ID of the User Group to enable.'
c.flag 'include_count', desc: 'Include the number of users in the User Group.'
Expand All @@ -42,8 +42,8 @@ class App
end
end

g.desc 'List all User Groups for a team'
g.long_desc %( List all User Groups for a team )
g.desc 'List all User Groups for a team.'
g.long_desc %( List all User Groups for a team. )
g.command 'list' do |c|
c.flag 'include_count', desc: 'Include the number of users in each User Group.'
c.flag 'include_disabled', desc: 'Include disabled User Groups.'
Expand All @@ -54,8 +54,8 @@ class App
end
end

g.desc 'Update an existing User Group'
g.long_desc %( Update an existing User Group )
g.desc 'Update an existing User Group.'
g.long_desc %( Update an existing User Group. )
g.command 'update' do |c|
c.flag 'usergroup', desc: 'The encoded ID of the User Group to update.'
c.flag 'channels', desc: 'A comma separated string of encoded channel IDs for which the User Group uses as a default.'
Expand Down
10 changes: 5 additions & 5 deletions bin/commands/usergroups_users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ module Cli
class App
desc 'UsergroupsUsers methods.'
command 'usergroups_users' do |g|
g.desc 'List all users in a User Group'
g.long_desc %( List all users in a User Group )
g.desc 'List all users in a User Group.'
g.long_desc %( List all users in a User Group. )
g.command 'list' do |c|
c.flag 'usergroup', desc: 'The encoded ID of the User Group to update.'
c.flag 'usergroup', desc: 'The encoded ID of the User Group to list users for.'
c.flag 'include_disabled', desc: 'Allow results that involve disabled User Groups.'
c.flag 'team_id', desc: 'encoded team id where the user group exists, required if org token is used.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.usergroups_users_list(options))
end
end

g.desc 'Update the list of users for a User Group'
g.long_desc %( Update the list of users for a User Group )
g.desc 'Update the list of users for a User Group.'
g.long_desc %( Update the list of users for a User Group. )
g.command 'update' do |c|
c.flag 'usergroup', desc: 'The encoded ID of the User Group to update.'
c.flag 'users', desc: 'A comma separated string of encoded user IDs that represent the entire list of users for the User Group.'
Expand Down
Loading
Loading