slack-ruby-client 3.2.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.coveralls.yml +0 -0
- data/.github/FUNDING.yml +0 -0
- data/.github/dependabot.yml +0 -0
- data/.github/prompts/changelog-entries.prompt.yml +32 -0
- data/.github/workflows/danger-comment.yml +11 -2
- data/.github/workflows/danger.yml +10 -2
- data/.github/workflows/lint.yml +21 -6
- data/.github/workflows/release.yml +27 -0
- data/.github/workflows/test.yml +0 -0
- data/.github/workflows/update_api.yml +86 -6
- data/.gitignore +1 -0
- data/.gitmodules +0 -0
- data/.rspec +0 -0
- data/.rubocop.yml +94 -1
- data/.rubocop_todo.yml +13 -2
- data/.ruby-version +0 -0
- data/.spellcheck.txt +256 -0
- data/AGENTS.md +12 -0
- data/CHANGELOG.md +50 -0
- data/CONTRIBUTING.md +59 -59
- data/Dangerfile +0 -0
- data/Gemfile +33 -5
- data/LICENSE.md +1 -1
- data/README.md +139 -104
- data/RELEASING.md +20 -58
- data/Rakefile +29 -3
- data/SECURITY.md +1 -1
- data/UPGRADING.md +48 -40
- data/benchmarks/events.rb +26 -0
- data/benchmarks/formatting.rb +17 -0
- data/benchmarks/support.rb +67 -0
- data/benchmarks/web_client.rb +28 -0
- data/bin/commands/admin_analytics.rb +0 -0
- data/bin/commands/admin_analytics_members.rb +39 -0
- data/bin/commands/admin_analytics_messages.rb +4 -4
- data/bin/commands/admin_analytics_slackbot.rb +33 -0
- data/bin/commands/admin_apps.rb +0 -0
- data/bin/commands/admin_apps_activities.rb +0 -0
- data/bin/commands/admin_apps_approved.rb +0 -0
- data/bin/commands/admin_apps_config.rb +0 -0
- data/bin/commands/admin_apps_mcp_servers.rb +21 -0
- data/bin/commands/admin_apps_mcp_servers_permissions.rb +33 -0
- data/bin/commands/admin_apps_permissions.rb +58 -0
- data/bin/commands/admin_apps_requests.rb +0 -0
- data/bin/commands/admin_apps_restricted.rb +0 -0
- data/bin/commands/admin_audit_anomaly_allow.rb +0 -0
- data/bin/commands/admin_auth_policy.rb +0 -0
- data/bin/commands/admin_barriers.rb +0 -0
- data/bin/commands/admin_conversations.rb +23 -3
- data/bin/commands/admin_conversations_ekm.rb +0 -0
- data/bin/commands/admin_conversations_restrictAccess.rb +0 -0
- data/bin/commands/admin_emoji.rb +0 -0
- data/bin/commands/admin_functions.rb +1 -1
- data/bin/commands/admin_functions_permissions.rb +0 -0
- data/bin/commands/admin_inviteRequests.rb +0 -0
- data/bin/commands/admin_inviteRequests_approved.rb +0 -0
- data/bin/commands/admin_inviteRequests_denied.rb +0 -0
- data/bin/commands/admin_roles.rb +0 -0
- data/bin/commands/admin_slackbot_skills.rb +56 -0
- data/bin/commands/admin_teams.rb +0 -0
- data/bin/commands/admin_teams_admins.rb +0 -0
- data/bin/commands/admin_teams_owners.rb +0 -0
- data/bin/commands/admin_teams_settings.rb +0 -0
- data/bin/commands/admin_usergroups.rb +74 -0
- data/bin/commands/admin_users.rb +11 -2
- data/bin/commands/admin_users_access.rb +31 -0
- data/bin/commands/admin_users_session.rb +0 -1
- data/bin/commands/admin_users_unsupportedVersions.rb +0 -0
- data/bin/commands/admin_workflows.rb +0 -0
- data/bin/commands/admin_workflows_collaborators.rb +0 -0
- data/bin/commands/admin_workflows_permissions.rb +0 -0
- data/bin/commands/admin_workflows_triggers_types_permissions.rb +0 -0
- data/bin/commands/agents_conversations.rb +122 -0
- data/bin/commands/agents_sessions.rb +38 -0
- data/bin/commands/api.rb +0 -0
- data/bin/commands/apps.rb +0 -0
- data/bin/commands/apps_activities.rb +0 -0
- data/bin/commands/apps_auth_external.rb +0 -0
- data/bin/commands/apps_connections.rb +0 -0
- data/bin/commands/apps_datastore.rb +0 -0
- data/bin/commands/apps_event_authorizations.rb +0 -0
- data/bin/commands/apps_icon.rb +0 -0
- data/bin/commands/apps_managed_permissions.rb +21 -0
- data/bin/commands/apps_manifest.rb +0 -0
- data/bin/commands/apps_user_connection.rb +0 -0
- data/bin/commands/assistant_search.rb +0 -0
- data/bin/commands/assistant_threads.rb +1 -1
- data/bin/commands/auth.rb +0 -0
- data/bin/commands/auth_teams.rb +0 -0
- data/bin/commands/blocks.rb +0 -0
- data/bin/commands/bookmarks.rb +0 -0
- data/bin/commands/bots.rb +0 -0
- data/bin/commands/calls.rb +0 -0
- data/bin/commands/calls_participants.rb +0 -0
- data/bin/commands/canvases.rb +12 -2
- data/bin/commands/canvases_access.rb +0 -0
- data/bin/commands/canvases_sections.rb +0 -0
- data/bin/commands/chat.rb +10 -7
- data/bin/commands/chat_scheduledMessages.rb +0 -0
- data/bin/commands/conversations.rb +1 -1
- data/bin/commands/conversations_canvases.rb +1 -1
- data/bin/commands/conversations_externalInvitePermissions.rb +0 -0
- data/bin/commands/conversations_requestSharedInvite.rb +0 -0
- data/bin/commands/dialog.rb +0 -0
- data/bin/commands/dnd.rb +0 -0
- data/bin/commands/emoji.rb +0 -0
- data/bin/commands/entity.rb +27 -0
- data/bin/commands/files.rb +3 -0
- data/bin/commands/files_comments.rb +0 -0
- data/bin/commands/files_remote.rb +0 -0
- data/bin/commands/functions.rb +0 -0
- data/bin/commands/functions_distributions_permissions.rb +0 -0
- data/bin/commands/functions_workflows_steps.rb +0 -0
- data/bin/commands/functions_workflows_steps_responses.rb +0 -0
- data/bin/commands/migration.rb +0 -0
- data/bin/commands/oauth.rb +0 -0
- data/bin/commands/oauth_v2.rb +21 -0
- data/bin/commands/oauth_v2_user.rb +0 -0
- data/bin/commands/openid_connect.rb +0 -0
- data/bin/commands/pins.rb +1 -1
- data/bin/commands/reactions.rb +0 -0
- data/bin/commands/reminders.rb +0 -0
- data/bin/commands/rtm.rb +0 -0
- data/bin/commands/search.rb +0 -0
- data/bin/commands/slackLists.rb +0 -0
- data/bin/commands/slackLists_access.rb +0 -0
- data/bin/commands/slackLists_download.rb +7 -0
- data/bin/commands/slackLists_items.rb +2 -1
- data/bin/commands/slackbot_skills.rb +71 -0
- data/bin/commands/slackbot_skills_library.rb +29 -0
- data/bin/commands/stars.rb +0 -0
- data/bin/commands/team.rb +1 -0
- data/bin/commands/team_billing.rb +0 -0
- data/bin/commands/team_externalTeams.rb +1 -1
- data/bin/commands/team_preferences.rb +0 -0
- data/bin/commands/team_profile.rb +0 -0
- data/bin/commands/tooling_tokens.rb +0 -0
- data/bin/commands/usergroups.rb +0 -0
- data/bin/commands/usergroups_users.rb +0 -0
- data/bin/commands/users.rb +1 -0
- data/bin/commands/users_admin.rb +0 -0
- data/bin/commands/users_discoverableContacts.rb +0 -0
- data/bin/commands/users_prefs.rb +0 -0
- data/bin/commands/users_profile.rb +0 -0
- data/bin/commands/views.rb +0 -0
- data/bin/commands/workflows_featured.rb +0 -0
- data/bin/commands/workflows_triggers_permissions.rb +0 -0
- data/bin/slack +5 -1
- data/examples/files_upload_v2/.env.example +0 -0
- data/examples/files_upload_v2/Gemfile +0 -0
- data/examples/files_upload_v2/README.md +4 -3
- data/examples/files_upload_v2/files_upload_v2.rb +1 -1
- data/examples/hi_web/Gemfile +0 -0
- data/examples/hi_web/hi.gif +0 -0
- data/examples/hi_web/hi.rb +1 -1
- data/examples/new_ticket/Gemfile +0 -0
- data/examples/new_ticket/new_ticket.rb +1 -1
- data/examples/oauth_v2/.env.example +0 -0
- data/examples/oauth_v2/Gemfile +0 -0
- data/examples/oauth_v2/README.md +5 -4
- data/examples/oauth_v2/oauth_v2.rb +6 -6
- data/lib/slack/config.rb +0 -0
- data/lib/slack/events/config.rb +1 -1
- data/lib/slack/events/request.rb +2 -2
- data/lib/slack/logger.rb +0 -0
- data/lib/slack/messages/formatting.rb +29 -20
- data/lib/slack/messages/message.rb +0 -0
- data/lib/slack/utils/security.rb +0 -0
- data/lib/slack/version.rb +1 -1
- data/lib/slack/web/api/endpoints/admin_analytics.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_analytics_members.rb +66 -0
- data/lib/slack/web/api/endpoints/admin_analytics_messages.rb +3 -3
- data/lib/slack/web/api/endpoints/admin_analytics_slackbot.rb +54 -0
- data/lib/slack/web/api/endpoints/admin_apps.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_apps_activities.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_apps_approved.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_apps_config.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_apps_mcp_servers.rb +31 -0
- data/lib/slack/web/api/endpoints/admin_apps_mcp_servers_permissions.rb +46 -0
- data/lib/slack/web/api/endpoints/admin_apps_permissions.rb +83 -0
- data/lib/slack/web/api/endpoints/admin_apps_requests.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_apps_restricted.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_audit_anomaly_allow.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_auth_policy.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_barriers.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_conversations.rb +32 -2
- data/lib/slack/web/api/endpoints/admin_conversations_ekm.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_emoji.rb +0 -1
- data/lib/slack/web/api/endpoints/admin_functions.rb +1 -1
- data/lib/slack/web/api/endpoints/admin_functions_permissions.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_inviteRequests.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_inviteRequests_approved.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_inviteRequests_denied.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_roles.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_slackbot_skills.rb +84 -0
- data/lib/slack/web/api/endpoints/admin_teams.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_teams_admins.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_teams_owners.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_teams_settings.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_usergroups.rb +111 -0
- data/lib/slack/web/api/endpoints/admin_users.rb +14 -1
- data/lib/slack/web/api/endpoints/admin_users_access.rb +40 -0
- data/lib/slack/web/api/endpoints/admin_users_session.rb +0 -2
- data/lib/slack/web/api/endpoints/admin_users_unsupportedVersions.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_workflows.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_workflows_collaborators.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_workflows_permissions.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_workflows_triggers_types_permissions.rb +0 -0
- data/lib/slack/web/api/endpoints/agents_conversations.rb +186 -0
- data/lib/slack/web/api/endpoints/agents_sessions.rb +54 -0
- data/lib/slack/web/api/endpoints/api.rb +0 -0
- data/lib/slack/web/api/endpoints/apps.rb +0 -0
- data/lib/slack/web/api/endpoints/apps_activities.rb +0 -0
- data/lib/slack/web/api/endpoints/apps_auth_external.rb +0 -0
- data/lib/slack/web/api/endpoints/apps_connections.rb +0 -0
- data/lib/slack/web/api/endpoints/apps_datastore.rb +0 -0
- data/lib/slack/web/api/endpoints/apps_event_authorizations.rb +0 -0
- data/lib/slack/web/api/endpoints/apps_icon.rb +0 -0
- data/lib/slack/web/api/endpoints/apps_managed_permissions.rb +27 -0
- data/lib/slack/web/api/endpoints/apps_manifest.rb +0 -0
- data/lib/slack/web/api/endpoints/apps_user_connection.rb +0 -0
- data/lib/slack/web/api/endpoints/assistant_search.rb +0 -0
- data/lib/slack/web/api/endpoints/assistant_threads.rb +1 -1
- data/lib/slack/web/api/endpoints/auth.rb +0 -0
- data/lib/slack/web/api/endpoints/auth_teams.rb +0 -0
- data/lib/slack/web/api/endpoints/blocks.rb +0 -0
- data/lib/slack/web/api/endpoints/bookmarks.rb +0 -0
- data/lib/slack/web/api/endpoints/bots.rb +0 -0
- data/lib/slack/web/api/endpoints/calls.rb +0 -0
- data/lib/slack/web/api/endpoints/calls_participants.rb +0 -0
- data/lib/slack/web/api/endpoints/canvases.rb +16 -2
- data/lib/slack/web/api/endpoints/canvases_access.rb +0 -0
- data/lib/slack/web/api/endpoints/canvases_sections.rb +0 -0
- data/lib/slack/web/api/endpoints/chat.rb +14 -10
- data/lib/slack/web/api/endpoints/chat_scheduledMessages.rb +0 -0
- data/lib/slack/web/api/endpoints/conversations.rb +1 -1
- data/lib/slack/web/api/endpoints/conversations_canvases.rb +1 -1
- data/lib/slack/web/api/endpoints/conversations_externalInvitePermissions.rb +0 -0
- data/lib/slack/web/api/endpoints/conversations_requestSharedInvite.rb +0 -0
- data/lib/slack/web/api/endpoints/dialog.rb +0 -0
- data/lib/slack/web/api/endpoints/dnd.rb +0 -0
- data/lib/slack/web/api/endpoints/emoji.rb +0 -0
- data/lib/slack/web/api/endpoints/entity.rb +48 -0
- data/lib/slack/web/api/endpoints/files.rb +7 -0
- data/lib/slack/web/api/endpoints/files_comments.rb +0 -0
- data/lib/slack/web/api/endpoints/files_remote.rb +0 -0
- data/lib/slack/web/api/endpoints/functions.rb +0 -0
- data/lib/slack/web/api/endpoints/functions_distributions_permissions.rb +0 -0
- data/lib/slack/web/api/endpoints/functions_workflows_steps.rb +0 -0
- data/lib/slack/web/api/endpoints/functions_workflows_steps_responses.rb +0 -0
- data/lib/slack/web/api/endpoints/migration.rb +0 -0
- data/lib/slack/web/api/endpoints/oauth.rb +0 -0
- data/lib/slack/web/api/endpoints/oauth_v2.rb +33 -0
- data/lib/slack/web/api/endpoints/oauth_v2_user.rb +0 -0
- data/lib/slack/web/api/endpoints/openid_connect.rb +0 -0
- data/lib/slack/web/api/endpoints/pins.rb +1 -1
- data/lib/slack/web/api/endpoints/reactions.rb +0 -0
- data/lib/slack/web/api/endpoints/reminders.rb +0 -0
- data/lib/slack/web/api/endpoints/rtm.rb +0 -0
- data/lib/slack/web/api/endpoints/search.rb +0 -0
- data/lib/slack/web/api/endpoints/slackLists.rb +0 -0
- data/lib/slack/web/api/endpoints/slackLists_access.rb +0 -0
- data/lib/slack/web/api/endpoints/slackLists_download.rb +14 -0
- data/lib/slack/web/api/endpoints/slackLists_items.rb +3 -1
- data/lib/slack/web/api/endpoints/slackbot_skills.rb +107 -0
- data/lib/slack/web/api/endpoints/slackbot_skills_library.rb +36 -0
- data/lib/slack/web/api/endpoints/stars.rb +0 -0
- data/lib/slack/web/api/endpoints/team.rb +2 -0
- data/lib/slack/web/api/endpoints/team_billing.rb +0 -0
- data/lib/slack/web/api/endpoints/team_externalTeams.rb +1 -1
- data/lib/slack/web/api/endpoints/team_preferences.rb +0 -0
- data/lib/slack/web/api/endpoints/team_profile.rb +0 -0
- data/lib/slack/web/api/endpoints/tooling_tokens.rb +0 -0
- data/lib/slack/web/api/endpoints/usergroups.rb +0 -0
- data/lib/slack/web/api/endpoints/usergroups_users.rb +0 -0
- data/lib/slack/web/api/endpoints/users.rb +2 -1
- data/lib/slack/web/api/endpoints/users_admin.rb +0 -0
- data/lib/slack/web/api/endpoints/users_discoverableContacts.rb +0 -0
- data/lib/slack/web/api/endpoints/users_prefs.rb +0 -0
- data/lib/slack/web/api/endpoints/users_profile.rb +0 -0
- data/lib/slack/web/api/endpoints/views.rb +0 -0
- data/lib/slack/web/api/endpoints/workflows_featured.rb +0 -0
- data/lib/slack/web/api/endpoints/workflows_triggers_permissions.rb +0 -0
- data/lib/slack/web/api/endpoints.rb +24 -0
- data/lib/slack/web/api/error.rb +0 -0
- data/lib/slack/web/api/errors/server_error.rb +1 -1
- data/lib/slack/web/api/errors/slack_error.rb +1 -1
- data/lib/slack/web/api/errors/too_many_requests_error.rb +1 -1
- data/lib/slack/web/api/errors.rb +384 -10
- data/lib/slack/web/api/helpers/files.rb +2 -2
- data/lib/slack/web/api/helpers.rb +0 -0
- data/lib/slack/web/api/mixins/conversations.id.rb +2 -1
- data/lib/slack/web/api/mixins/ids.id.rb +2 -1
- data/lib/slack/web/api/mixins/users.id.json +0 -0
- data/lib/slack/web/api/mixins/users.id.rb +2 -1
- data/lib/slack/web/api/mixins/users.search.json +0 -0
- data/lib/slack/web/api/mixins/users.search.rb +1 -1
- data/lib/slack/web/api/mixins.rb +0 -0
- data/lib/slack/web/api/options.rb +0 -0
- data/lib/slack/web/api/patches/.gitkeep +0 -0
- data/lib/slack/web/api/patches/files.default-filename.patch +12 -0
- data/lib/slack/web/api/schema/group.json +0 -0
- data/lib/slack/web/api/schema/method.json +0 -0
- data/lib/slack/web/api/templates/command.erb +0 -0
- data/lib/slack/web/api/templates/endpoints.erb +0 -0
- data/lib/slack/web/api/templates/errors.erb +0 -0
- data/lib/slack/web/api/templates/method.erb +0 -0
- data/lib/slack/web/api/templates/method_spec.erb +0 -0
- data/lib/slack/web/client.rb +29 -0
- data/lib/slack/web/config.rb +0 -0
- data/lib/slack/web/faraday/connection.rb +0 -0
- data/lib/slack/web/faraday/options.rb +0 -0
- data/lib/slack/web/faraday/request.rb +22 -2
- data/lib/slack/web/faraday/response/raise_error.rb +0 -0
- data/lib/slack/web/faraday/response/wrap_error.rb +0 -0
- data/lib/slack/web/pagination/cursor.rb +0 -0
- data/lib/slack-ruby-client.rb +0 -0
- data/lib/slack.rb +0 -0
- data/lib/slack_ruby_client.rb +0 -0
- data/lib/tasks/git.rake +0 -0
- data/lib/tasks/update.rake +0 -0
- data/lib/tasks/web.rake +0 -0
- data/script/release.rb +33 -0
- data/slack-ruby-client.gemspec +1 -3
- data/slack.png +0 -0
- metadata +41 -17
|
@@ -12,7 +12,7 @@ module Slack
|
|
|
12
12
|
# @option options [channel] :channel
|
|
13
13
|
# An encoded ID that represents a channel, private group, or DM.
|
|
14
14
|
# @option options [array] :chunks
|
|
15
|
-
# Array of streaming chunks.
|
|
15
|
+
# Array of streaming chunks that can contain either markdown text or task updates.
|
|
16
16
|
# @option options [timestamp] :ts
|
|
17
17
|
# The timestamp of the streaming message.
|
|
18
18
|
# @option options [string] :markdown_text
|
|
@@ -22,7 +22,6 @@ module Slack
|
|
|
22
22
|
def chat_appendStream(options = {})
|
|
23
23
|
raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil?
|
|
24
24
|
raise ArgumentError, 'Required arguments :ts missing' if options[:ts].nil?
|
|
25
|
-
raise ArgumentError, 'Required arguments :markdown_text missing' if options[:markdown_text].nil?
|
|
26
25
|
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
|
27
26
|
post('chat.appendStream', options)
|
|
28
27
|
end
|
|
@@ -131,6 +130,8 @@ module Slack
|
|
|
131
130
|
# Find and link channel names and usernames.
|
|
132
131
|
# @option options [string] :markdown_text
|
|
133
132
|
# 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.
|
|
133
|
+
# @option options [string] :metadata
|
|
134
|
+
# JSON object with an entities array of work object entity metadata, presented as a URL-encoded string. Only entity metadata is supported: ephemeral messages are not persisted and never dispatch message_metadata_* events, so event_type/event_payload message metadata is ignored here. Each entity requires entity_type, entity_payload, external_ref, and url.
|
|
134
135
|
# @option options [string] :parse
|
|
135
136
|
# Change how messages are treated. Defaults to none. See below.
|
|
136
137
|
# @option options [string] :text
|
|
@@ -149,7 +150,7 @@ module Slack
|
|
|
149
150
|
raise ArgumentError, 'At least one of :attachments, :blocks, :text, :markdown_text is required' if options[:attachments].nil? && options[:blocks].nil? && options[:text].nil? && options[:markdown_text].nil?
|
|
150
151
|
raise ArgumentError, ':text, :markdown_text are mutually exclusive' if !options[:text].nil? && !options[:markdown_text].nil?
|
|
151
152
|
options = options.merge(user: users_id(options)['user']['id']) if options[:user]
|
|
152
|
-
options = encode_options_as_json(options, %i[attachments blocks])
|
|
153
|
+
options = encode_options_as_json(options, %i[attachments blocks metadata])
|
|
153
154
|
post('chat.postEphemeral', options)
|
|
154
155
|
end
|
|
155
156
|
|
|
@@ -192,6 +193,8 @@ module Slack
|
|
|
192
193
|
# Pass false to disable unfurling of media content.
|
|
193
194
|
# @option options [string] :username
|
|
194
195
|
# Set your bot's user name.
|
|
196
|
+
# @option options [boolean] :unfurl_app_links
|
|
197
|
+
# Pass true to unfurl links from installed apps, or false to prevent app links from unfurling. When omitted, app links follow the unfurl_links setting.
|
|
195
198
|
# @see https://api.slack.com/methods/chat.postMessage
|
|
196
199
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/chat/chat.postMessage.json
|
|
197
200
|
def chat_postMessage(options = {})
|
|
@@ -248,19 +251,19 @@ module Slack
|
|
|
248
251
|
# Starts a new streaming conversation.
|
|
249
252
|
#
|
|
250
253
|
# @option options [channel] :channel
|
|
251
|
-
# An encoded ID that represents a channel thread or DM.
|
|
254
|
+
# An encoded ID that represents a channel, thread, or DM.
|
|
252
255
|
# @option options [array] :chunks
|
|
253
|
-
# Array of streaming chunks.
|
|
256
|
+
# Array of streaming chunks. Can include markdown text chunk objects, task update chunk objects, plan update chunks, or blocks chunks.
|
|
254
257
|
# @option options [string] :markdown_text
|
|
255
258
|
# Accepts message text formatted in markdown. Limit this field to 12,000 characters.
|
|
256
259
|
# @option options [string] :thread_ts
|
|
257
|
-
# Provide another message's ts value to reply to.
|
|
260
|
+
# Provide another message's ts value to reply to. Omit it to stream a top-level message instead of a thread reply; this is only supported in channels where the whole channel is one session, such as Slack Code, and returns invalid_thread_ts elsewhere. Passing "0" is equivalent to omitting it.
|
|
258
261
|
# @option options [Object] :recipient_user_id
|
|
259
262
|
# The encoded ID of the user to receive the streaming text. Required when streaming to channels.
|
|
260
263
|
# @option options [string] :recipient_team_id
|
|
261
264
|
# The encoded ID of the team the user receiving the streaming text belongs to. Required when streaming to channels.
|
|
262
265
|
# @option options [enum] :task_display_mode
|
|
263
|
-
# Specifies how tasks are displayed in the message.
|
|
266
|
+
# Specifies how tasks are displayed in the message. timeline task updates render as individual task cards interleaved with streamed text. plan task updates render together in a plan block.
|
|
264
267
|
# @option options [string] :icon_emoji
|
|
265
268
|
# Emoji to use as the icon for this message. Overrides icon_url.
|
|
266
269
|
# @option options [string] :icon_url
|
|
@@ -271,7 +274,6 @@ module Slack
|
|
|
271
274
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/chat/chat.startStream.json
|
|
272
275
|
def chat_startStream(options = {})
|
|
273
276
|
raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil?
|
|
274
|
-
raise ArgumentError, 'Required arguments :thread_ts missing' if options[:thread_ts].nil?
|
|
275
277
|
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
|
276
278
|
post('chat.startStream', options)
|
|
277
279
|
end
|
|
@@ -282,7 +284,7 @@ module Slack
|
|
|
282
284
|
# @option options [channel] :channel
|
|
283
285
|
# An encoded ID that represents a channel, private group, or DM.
|
|
284
286
|
# @option options [array] :chunks
|
|
285
|
-
# Array of streaming chunks.
|
|
287
|
+
# Array of streaming chunks. Can include markdown text chunk objects, task update chunk objects, plan update chunks, or blocks chunks.
|
|
286
288
|
# @option options [timestamp] :ts
|
|
287
289
|
# The timestamp of the streaming message.
|
|
288
290
|
# @option options [string] :markdown_text
|
|
@@ -291,6 +293,8 @@ module Slack
|
|
|
291
293
|
# A list of blocks that will be rendered at the bottom of the finalized message.
|
|
292
294
|
# @option options [string] :metadata
|
|
293
295
|
# 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.
|
|
296
|
+
# @option options [enum] :session_status
|
|
297
|
+
# The session status to set after stopping the stream.
|
|
294
298
|
# @see https://api.slack.com/methods/chat.stopStream
|
|
295
299
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/chat/chat.stopStream.json
|
|
296
300
|
def chat_stopStream(options = {})
|
|
@@ -309,7 +313,7 @@ module Slack
|
|
|
309
313
|
# @option options [timestamp] :ts
|
|
310
314
|
# Timestamp of the message to add unfurl behavior to. Required for public channels.
|
|
311
315
|
# @option options [string] :unfurls
|
|
312
|
-
# URL-encoded JSON map with keys set to URLs featured in the
|
|
316
|
+
# URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl blocks or message attachments. Required for public channels.
|
|
313
317
|
# @option options [string] :user_auth_message
|
|
314
318
|
# 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.
|
|
315
319
|
# @option options [boolean] :user_auth_required
|
|
File without changes
|
|
@@ -154,7 +154,7 @@ module Slack
|
|
|
154
154
|
# @option options [boolean] :force
|
|
155
155
|
# When set to true and multiple user IDs are provided, continue inviting the valid ones while disregarding invalid IDs. Defaults to false.
|
|
156
156
|
# @option options [string] :users
|
|
157
|
-
# A comma separated list of user IDs. Up to
|
|
157
|
+
# A comma separated list of user IDs. Up to 1000 users may be listed.
|
|
158
158
|
# @see https://api.slack.com/methods/conversations.invite
|
|
159
159
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/conversations/conversations.invite.json
|
|
160
160
|
def conversations_invite(options = {})
|
|
@@ -12,7 +12,7 @@ module Slack
|
|
|
12
12
|
# @option options [string] :channel_id
|
|
13
13
|
# Channel ID of the channel the canvas will be tabbed in.
|
|
14
14
|
# @option options [Object] :document_content
|
|
15
|
-
# Structure describing the type and value of the content to create.
|
|
15
|
+
# Structure describing the type and value of the content to create. The markdown content is limited to 1 MiB (1,048,576 characters).
|
|
16
16
|
# @option options [string] :title
|
|
17
17
|
# Title of the newly created canvas.
|
|
18
18
|
# @see https://api.slack.com/methods/conversations.canvases.create
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,6 +6,54 @@ module Slack
|
|
|
6
6
|
module Api
|
|
7
7
|
module Endpoints
|
|
8
8
|
module Entity
|
|
9
|
+
#
|
|
10
|
+
# Acknowledge a comment mutation (edit, delete, or post) on a work object entity. Apps call this endpoint to confirm they have processed a comment action, and the backend emits a dedicated RTM event to the user.
|
|
11
|
+
#
|
|
12
|
+
# @option options [string] :trigger_id
|
|
13
|
+
# A reference to the original user action that initiated the comment mutation.
|
|
14
|
+
# @option options [object] :comment
|
|
15
|
+
# The full comment data. Required for edit and post actions. See the comment schema for the full list of properties.
|
|
16
|
+
# @option options [string] :error
|
|
17
|
+
# Error message if the action failed in the app. When present, signals that the mutation could not be completed.
|
|
18
|
+
# @see https://api.slack.com/methods/entity.acknowledgeCommentAction
|
|
19
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/entity/entity.acknowledgeCommentAction.json
|
|
20
|
+
def entity_acknowledgeCommentAction(options = {})
|
|
21
|
+
raise ArgumentError, 'Required arguments :trigger_id missing' if options[:trigger_id].nil?
|
|
22
|
+
post('entity.acknowledgeCommentAction', options)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
#
|
|
26
|
+
# Provide comments for work objects. Apps call this endpoint to send per-user flexpane comment data to the client.
|
|
27
|
+
#
|
|
28
|
+
# @option options [array] :comments
|
|
29
|
+
# Array of comments to present to the user. See the comment schema for the full list of properties.
|
|
30
|
+
# @option options [string] :cursor
|
|
31
|
+
# App supplied cursor used for pagination, will be sent in the next request for comments.
|
|
32
|
+
# @option options [boolean] :can_post_comment
|
|
33
|
+
# Indicates whether the user has permissions to post comments.
|
|
34
|
+
# @option options [string] :trigger_id
|
|
35
|
+
# A reference to the original user action that initiated the request.
|
|
36
|
+
# @option options [string] :delete_action_id
|
|
37
|
+
# The block action id that will be sent when a delete request is initiated for a comment.
|
|
38
|
+
# @option options [boolean] :user_auth_required
|
|
39
|
+
# Set to true (or 1) to indicate that the user must authenticate to see the comments data.
|
|
40
|
+
# @option options [string] :user_auth_url
|
|
41
|
+
# A custom URL to which users are directed for authentication if required.
|
|
42
|
+
# @option options [Object] :error
|
|
43
|
+
# @see https://api.slack.com/methods/entity.presentComments
|
|
44
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/entity/entity.presentComments.json
|
|
45
|
+
def entity_presentComments(options = {})
|
|
46
|
+
raise ArgumentError, 'Required arguments :comments missing' if options[:comments].nil?
|
|
47
|
+
raise ArgumentError, 'Required arguments :trigger_id missing' if options[:trigger_id].nil?
|
|
48
|
+
if block_given?
|
|
49
|
+
Pagination::Cursor.new(self, :entity_presentComments, options).each do |page|
|
|
50
|
+
yield page
|
|
51
|
+
end
|
|
52
|
+
else
|
|
53
|
+
post('entity.presentComments', options)
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
9
57
|
#
|
|
10
58
|
# Provide custom flexpane behavior for Work Objects. Apps call this endpoint to send per-user flexpane metadata to the client.
|
|
11
59
|
#
|
|
@@ -21,6 +21,12 @@ module Slack
|
|
|
21
21
|
# The message text introducing the file in specified channels.
|
|
22
22
|
# @option options [string] :blocks
|
|
23
23
|
# 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.
|
|
24
|
+
# @option options [string] :username
|
|
25
|
+
# Set your bot's user name for the file share message. Requires the chat:write.customize scope.
|
|
26
|
+
# @option options [string] :icon_url
|
|
27
|
+
# URL to an image to use as the icon for the file share message. Requires the chat:write.customize scope.
|
|
28
|
+
# @option options [string] :icon_emoji
|
|
29
|
+
# Emoji to use as the icon for the file share message. Overrides icon_url. Requires the chat:write.customize scope.
|
|
24
30
|
# @see https://api.slack.com/methods/files.completeUploadExternal
|
|
25
31
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files/files.completeUploadExternal.json
|
|
26
32
|
def files_completeUploadExternal(options = {})
|
|
@@ -186,6 +192,7 @@ module Slack
|
|
|
186
192
|
# @see https://api.slack.com/methods/files.upload
|
|
187
193
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files/files.upload.json
|
|
188
194
|
def files_upload(options = {})
|
|
195
|
+
options = options.merge(filename: 'file') if options[:file] && !options[:filename]
|
|
189
196
|
post('files.upload', options)
|
|
190
197
|
end
|
|
191
198
|
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -31,6 +31,39 @@ module Slack
|
|
|
31
31
|
post('oauth.v2.access', options)
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
+
#
|
|
35
|
+
# Call this to rotate the secret on an old API token with a short secret. Must be paired with a call to oauth.v2.completeShortTokenRotation to confirm the change.
|
|
36
|
+
#
|
|
37
|
+
# @option options [string] :client_id
|
|
38
|
+
# Issued when you created your application. Must be the app the token being rotated was issued to.
|
|
39
|
+
# @option options [string] :client_secret
|
|
40
|
+
# Issued when you created your application.
|
|
41
|
+
# @see https://api.slack.com/methods/oauth.v2.beginShortTokenRotation
|
|
42
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/oauth.v2/oauth.v2.beginShortTokenRotation.json
|
|
43
|
+
def oauth_v2_beginShortTokenRotation(options = {})
|
|
44
|
+
raise ArgumentError, 'Required arguments :client_id missing' if options[:client_id].nil?
|
|
45
|
+
raise ArgumentError, 'Required arguments :client_secret missing' if options[:client_secret].nil?
|
|
46
|
+
post('oauth.v2.beginShortTokenRotation', options)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
#
|
|
50
|
+
# Call this to finish rotating the secret on an old API token with a short secret. Must be paired with a call to oauth.v2.beginShortTokenRotation to start the process.
|
|
51
|
+
#
|
|
52
|
+
# @option options [string] :client_id
|
|
53
|
+
# Issued when you created your application. Must be the app the token being rotated was issued to.
|
|
54
|
+
# @option options [string] :client_secret
|
|
55
|
+
# Issued when you created your application.
|
|
56
|
+
# @option options [string] :new_token
|
|
57
|
+
# The new xoxp token returned by oauth.v2.beginShortTokenRotation.
|
|
58
|
+
# @see https://api.slack.com/methods/oauth.v2.completeShortTokenRotation
|
|
59
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/oauth.v2/oauth.v2.completeShortTokenRotation.json
|
|
60
|
+
def oauth_v2_completeShortTokenRotation(options = {})
|
|
61
|
+
raise ArgumentError, 'Required arguments :client_id missing' if options[:client_id].nil?
|
|
62
|
+
raise ArgumentError, 'Required arguments :client_secret missing' if options[:client_secret].nil?
|
|
63
|
+
raise ArgumentError, 'Required arguments :new_token missing' if options[:new_token].nil?
|
|
64
|
+
post('oauth.v2.completeShortTokenRotation', options)
|
|
65
|
+
end
|
|
66
|
+
|
|
34
67
|
#
|
|
35
68
|
# Exchanges a legacy access token for a new expiring access token and refresh token
|
|
36
69
|
#
|
|
File without changes
|
|
File without changes
|
|
@@ -10,7 +10,7 @@ module Slack
|
|
|
10
10
|
# Pins an item to a channel.
|
|
11
11
|
#
|
|
12
12
|
# @option options [channel] :channel
|
|
13
|
-
# Channel to pin the
|
|
13
|
+
# Channel to pin the message to. You must also include a timestamp when pinning messages.
|
|
14
14
|
# @option options [string] :timestamp
|
|
15
15
|
# Timestamp of the message to pin. You must also include the channel.
|
|
16
16
|
# @see https://api.slack.com/methods/pins.add
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -13,6 +13,14 @@ module Slack
|
|
|
13
13
|
# ID of the List to export.
|
|
14
14
|
# @option options [string] :job_id
|
|
15
15
|
# The ID of the recently started job to export the List.
|
|
16
|
+
# @option options [Object] :format
|
|
17
|
+
# Format the export was started with. Must match the format passed to slackLists.download.start. Defaults to csv.
|
|
18
|
+
# @option options [boolean] :include_threads
|
|
19
|
+
# Must match the include_threads passed to slackLists.download.start. The returned download_url carries this through so the served export matches what was generated. Only applies when format is json.
|
|
20
|
+
# @option options [boolean] :include_attachments
|
|
21
|
+
# Must match the include_attachments passed to slackLists.download.start. The returned download_url carries this through so the served export matches what was generated. Only applies when format is json.
|
|
22
|
+
# @option options [boolean] :include_archived
|
|
23
|
+
# Must match the include_archived passed to slackLists.download.start. The returned download_url carries this through so the served export includes archived items when they were requested.
|
|
16
24
|
# @see https://api.slack.com/methods/slackLists.download.get
|
|
17
25
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackLists.download/slackLists.download.get.json
|
|
18
26
|
def slackLists_download_get(options = {})
|
|
@@ -27,6 +35,12 @@ module Slack
|
|
|
27
35
|
# @option options [string] :list_id
|
|
28
36
|
# ID of the List to export.
|
|
29
37
|
# @option options [boolean] :include_archived
|
|
38
|
+
# @option options [Object] :format
|
|
39
|
+
# Format of the export. Defaults to csv for backward compatibility. Use json for a complete, hierarchical export.
|
|
40
|
+
# @option options [boolean] :include_threads
|
|
41
|
+
# Include each item's conversation thread in the export. Only applies when format is json.
|
|
42
|
+
# @option options [boolean] :include_attachments
|
|
43
|
+
# Include file attachment metadata and access paths in the export. Only applies when format is json.
|
|
30
44
|
# @see https://api.slack.com/methods/slackLists.download.start
|
|
31
45
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackLists.download/slackLists.download.start.json
|
|
32
46
|
def slackLists_download_start(options = {})
|
|
@@ -77,11 +77,13 @@ module Slack
|
|
|
77
77
|
# @option options [string] :list_id
|
|
78
78
|
# ID of the List.
|
|
79
79
|
# @option options [integer] :limit
|
|
80
|
-
# The maximum number of records to return.
|
|
80
|
+
# The maximum number of records to return, up to the list row limit of 5000.
|
|
81
81
|
# @option options [string] :cursor
|
|
82
82
|
# Next cursor for pagination.
|
|
83
83
|
# @option options [boolean] :archived
|
|
84
84
|
# Boolean indicating whether archived items or normal items should be returned.
|
|
85
|
+
# @option options [boolean] :include_list
|
|
86
|
+
# Set to true to also return the parent list object, including its title, column schema, and total row count. Defaults to false to keep the response small.
|
|
85
87
|
# @see https://api.slack.com/methods/slackLists.items.list
|
|
86
88
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackLists.items/slackLists.items.list.json
|
|
87
89
|
def slackLists_items_list(options = {})
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file was auto-generated by lib/tasks/web.rake
|
|
3
|
+
|
|
4
|
+
module Slack
|
|
5
|
+
module Web
|
|
6
|
+
module Api
|
|
7
|
+
module Endpoints
|
|
8
|
+
module SlackbotSkills
|
|
9
|
+
#
|
|
10
|
+
# Creates a skill from markdown instructions, or turns an existing canvas the caller owns into a skill.
|
|
11
|
+
#
|
|
12
|
+
# @option options [string] :display_name
|
|
13
|
+
# Human-readable label. Max 255 characters; not unique.
|
|
14
|
+
# @option options [string] :instructions
|
|
15
|
+
# Markdown body of the skill. Send exactly one of instructions or canvas_id.
|
|
16
|
+
# @option options [Object] :canvas_id
|
|
17
|
+
# Canvas the caller owns to turn into a skill. Send exactly one of instructions or canvas_id.
|
|
18
|
+
# @option options [string] :description
|
|
19
|
+
# When Slackbot should use the skill. Max 400 characters.
|
|
20
|
+
# @option options [enum] :category
|
|
21
|
+
# One of the skill categories.
|
|
22
|
+
# @option options [string] :example_prompt
|
|
23
|
+
# Max 200 characters. May contain {skill}, which becomes the skill mention.
|
|
24
|
+
# @option options [array] :mcp_servers
|
|
25
|
+
# Apps the skill needs, capped at the caller's MCP server limit. Declaring an app doesn't grant access to it.
|
|
26
|
+
# @see https://api.slack.com/methods/slackbot.skills.create
|
|
27
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackbot.skills/slackbot.skills.create.json
|
|
28
|
+
def slackbot_skills_create(options = {})
|
|
29
|
+
raise ArgumentError, 'Required arguments :display_name missing' if options[:display_name].nil?
|
|
30
|
+
post('slackbot.skills.create', options)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
#
|
|
34
|
+
# Deletes a Slackbot skill and its canvas, and removes it from every library, skill set, and the org catalog.
|
|
35
|
+
#
|
|
36
|
+
# @option options [string] :skill_id
|
|
37
|
+
# Skill to delete.
|
|
38
|
+
# @see https://api.slack.com/methods/slackbot.skills.delete
|
|
39
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackbot.skills/slackbot.skills.delete.json
|
|
40
|
+
def slackbot_skills_delete(options = {})
|
|
41
|
+
raise ArgumentError, 'Required arguments :skill_id missing' if options[:skill_id].nil?
|
|
42
|
+
post('slackbot.skills.delete', options)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
#
|
|
46
|
+
# Returns one Slackbot skill, including its instructions.
|
|
47
|
+
#
|
|
48
|
+
# @option options [string] :skill_id
|
|
49
|
+
# Skill to fetch: a canvas file ID or a builtin: reference.
|
|
50
|
+
# @see https://api.slack.com/methods/slackbot.skills.info
|
|
51
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackbot.skills/slackbot.skills.info.json
|
|
52
|
+
def slackbot_skills_info(options = {})
|
|
53
|
+
raise ArgumentError, 'Required arguments :skill_id missing' if options[:skill_id].nil?
|
|
54
|
+
post('slackbot.skills.info', options)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
#
|
|
58
|
+
# Lists Slackbot skills from the caller's point of view. Instructions are not included.
|
|
59
|
+
#
|
|
60
|
+
# @option options [enum] :filter
|
|
61
|
+
# library: skills enabled for the caller, including auto-enabled skills and skills from skill sets. owned: skills the caller created. catalog: the organization's official skills.
|
|
62
|
+
# @option options [string] :category
|
|
63
|
+
# Only return skills in this category.
|
|
64
|
+
# @option options [string] :cursor
|
|
65
|
+
# Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Must be used with the same filter and category.
|
|
66
|
+
# @option options [integer] :limit
|
|
67
|
+
# The maximum number of skills to return. Fewer may be returned even when more remain.
|
|
68
|
+
# @see https://api.slack.com/methods/slackbot.skills.list
|
|
69
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackbot.skills/slackbot.skills.list.json
|
|
70
|
+
def slackbot_skills_list(options = {})
|
|
71
|
+
if block_given?
|
|
72
|
+
Pagination::Cursor.new(self, :slackbot_skills_list, options).each do |page|
|
|
73
|
+
yield page
|
|
74
|
+
end
|
|
75
|
+
else
|
|
76
|
+
post('slackbot.skills.list', options)
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
#
|
|
81
|
+
# Changes a Slackbot skill's instructions or metadata. Only the inputs you send are changed; a call that changes nothing succeeds without writing.
|
|
82
|
+
#
|
|
83
|
+
# @option options [string] :skill_id
|
|
84
|
+
# Skill to change.
|
|
85
|
+
# @option options [string] :display_name
|
|
86
|
+
# Human-readable label. Max 255 characters.
|
|
87
|
+
# @option options [string] :instructions
|
|
88
|
+
# Markdown that replaces the whole document.
|
|
89
|
+
# @option options [string] :description
|
|
90
|
+
# When Slackbot should use the skill. Max 400 characters. Send an empty string to clear.
|
|
91
|
+
# @option options [enum] :category
|
|
92
|
+
# One of the skill categories. Send an empty string to clear.
|
|
93
|
+
# @option options [string] :example_prompt
|
|
94
|
+
# Max 200 characters. May contain {skill}. Send an empty string to clear.
|
|
95
|
+
# @option options [array] :mcp_servers
|
|
96
|
+
# Apps the skill needs. Replaces the whole list; send [] to clear.
|
|
97
|
+
# @see https://api.slack.com/methods/slackbot.skills.update
|
|
98
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackbot.skills/slackbot.skills.update.json
|
|
99
|
+
def slackbot_skills_update(options = {})
|
|
100
|
+
raise ArgumentError, 'Required arguments :skill_id missing' if options[:skill_id].nil?
|
|
101
|
+
post('slackbot.skills.update', options)
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file was auto-generated by lib/tasks/web.rake
|
|
3
|
+
|
|
4
|
+
module Slack
|
|
5
|
+
module Web
|
|
6
|
+
module Api
|
|
7
|
+
module Endpoints
|
|
8
|
+
module SlackbotSkillsLibrary
|
|
9
|
+
#
|
|
10
|
+
# Turns a skill on in the caller's personal library.
|
|
11
|
+
#
|
|
12
|
+
# @option options [string] :skill_id
|
|
13
|
+
# Skill to turn on for the caller.
|
|
14
|
+
# @see https://api.slack.com/methods/slackbot.skills.library.add
|
|
15
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackbot.skills.library/slackbot.skills.library.add.json
|
|
16
|
+
def slackbot_skills_library_add(options = {})
|
|
17
|
+
raise ArgumentError, 'Required arguments :skill_id missing' if options[:skill_id].nil?
|
|
18
|
+
post('slackbot.skills.library.add', options)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
#
|
|
22
|
+
# Turns a skill off in the caller's personal library.
|
|
23
|
+
#
|
|
24
|
+
# @option options [string] :skill_id
|
|
25
|
+
# Skill to turn off for the caller.
|
|
26
|
+
# @see https://api.slack.com/methods/slackbot.skills.library.remove
|
|
27
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackbot.skills.library/slackbot.skills.library.remove.json
|
|
28
|
+
def slackbot_skills_library_remove(options = {})
|
|
29
|
+
raise ArgumentError, 'Required arguments :skill_id missing' if options[:skill_id].nil?
|
|
30
|
+
post('slackbot.skills.library.remove', options)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
File without changes
|
|
@@ -60,6 +60,8 @@ module Slack
|
|
|
60
60
|
# Query by domain instead of team (only when team is null). This only works for domains in the same enterprise as the querying team token. This also expects the domain to belong to a team and not the enterprise itself. This is the value set up for the 'Joining This Workspace' workspace setting. If it contains more than one domain, the field will contain multiple comma-separated domain values. If no domain is set, the field is empty.
|
|
61
61
|
# @option options [string] :team
|
|
62
62
|
# Team to get info about; if omitted, will return information about the current team.
|
|
63
|
+
# @option options [boolean] :include_slackbot_availability
|
|
64
|
+
# Include advisory Slackbot availability for the returned workspace or organization. Only applies to a single team in the caller's own workspace or organization; omitted for external teams. Does not guarantee individual eligibility, remaining usage, or access to a particular app.
|
|
63
65
|
# @see https://api.slack.com/methods/team.info
|
|
64
66
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/team/team.info.json
|
|
65
67
|
def team_info(options = {})
|
|
File without changes
|
|
@@ -30,7 +30,7 @@ module Slack
|
|
|
30
30
|
# @option options [enum] :sort_direction
|
|
31
31
|
# Direction to sort in asc or desc.
|
|
32
32
|
# @option options [array] :slack_connect_pref_filter
|
|
33
|
-
# Filters connected orgs by Slack Connect pref override(s). Value can be: approved_orgs_only allow_sc_file_uploads profile_visibility away_team_sc_invite_permissions accept_sc_invites sc_mpdm_to_private
|
|
33
|
+
# Filters connected orgs by Slack Connect pref override(s). Value can be: approved_orgs_only allow_sc_file_uploads profile_visibility away_team_sc_invite_permissions accept_sc_invites sc_mpdm_to_private external_awareness_context_bar.
|
|
34
34
|
# @option options [array] :workspace_filter
|
|
35
35
|
# Shows connected orgs which are connected on a specified encoded workspace ID.
|
|
36
36
|
# @option options [enum] :connection_status_filter
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -13,6 +13,8 @@ module Slack
|
|
|
13
13
|
# 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.
|
|
14
14
|
# @option options [boolean] :exclude_archived
|
|
15
15
|
# Set to true to exclude archived channels from the list.
|
|
16
|
+
# @option options [boolean] :exclude_muted
|
|
17
|
+
# Set to true to exclude muted channels from the list.
|
|
16
18
|
# @option options [number] :limit
|
|
17
19
|
# 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 with a max value of 999.
|
|
18
20
|
# @option options [string] :team_id
|
|
@@ -74,7 +76,6 @@ module Slack
|
|
|
74
76
|
# @see https://api.slack.com/methods/users.info
|
|
75
77
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/users/users.info.json
|
|
76
78
|
def users_info(options = {})
|
|
77
|
-
raise ArgumentError, 'Required arguments :user missing' if options[:user].nil?
|
|
78
79
|
options = options.merge(user: users_id(options)['user']['id']) if options[:user]
|
|
79
80
|
post('users.info', options)
|
|
80
81
|
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|