slack-ruby-client 1.0.0 → 2.1.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/.github/FUNDING.yml +1 -0
- data/.github/workflows/integration_test.yml +45 -0
- data/.github/workflows/lint.yml +14 -0
- data/.github/workflows/pr_lint.yml +21 -0
- data/.github/workflows/test.yml +37 -0
- data/.gitignore +4 -3
- data/.rubocop.yml +6 -1
- data/.rubocop_todo.yml +88 -34
- data/.ruby-version +1 -0
- data/CHANGELOG.md +36 -0
- data/CONTRIBUTING.md +6 -5
- data/Gemfile +13 -1
- data/Gemfile.danger +6 -0
- data/README.md +78 -76
- data/RELEASING.md +2 -2
- data/SECURITY.md +9 -0
- data/UPGRADING.md +28 -0
- data/bin/commands/admin_analytics.rb +16 -10
- data/bin/commands/admin_apps.rb +48 -42
- data/bin/commands/admin_apps_approved.rb +17 -11
- data/bin/commands/admin_apps_requests.rb +28 -11
- data/bin/commands/admin_apps_restricted.rb +17 -11
- data/bin/commands/admin_audit_anomaly_allow.rb +29 -0
- data/bin/commands/admin_auth_policy.rb +37 -31
- data/bin/commands/admin_barriers.rb +44 -38
- data/bin/commands/admin_conversations.rb +221 -163
- data/bin/commands/admin_conversations_ekm.rb +17 -11
- data/bin/commands/admin_conversations_restrictAccess.rb +35 -29
- data/bin/commands/admin_emoji.rb +50 -44
- data/bin/commands/admin_inviteRequests.rb +34 -28
- data/bin/commands/admin_inviteRequests_approved.rb +16 -10
- data/bin/commands/admin_inviteRequests_denied.rb +16 -10
- data/bin/commands/admin_roles.rb +46 -0
- data/bin/commands/admin_teams.rb +26 -20
- data/bin/commands/admin_teams_admins.rb +16 -10
- data/bin/commands/admin_teams_owners.rb +16 -10
- data/bin/commands/admin_teams_settings.rb +59 -53
- data/bin/commands/admin_usergroups.rb +45 -39
- data/bin/commands/admin_users.rb +91 -85
- data/bin/commands/admin_users_session.rb +72 -66
- data/bin/commands/admin_users_unsupportedVersions.rb +21 -0
- data/bin/commands/api.rb +14 -8
- data/bin/commands/apps.rb +15 -9
- data/bin/commands/apps_connections.rb +13 -7
- data/bin/commands/apps_event_authorizations.rb +16 -10
- data/bin/commands/apps_manifest.rb +48 -41
- data/bin/commands/auth.rb +21 -15
- data/bin/commands/auth_teams.rb +16 -10
- data/bin/commands/bookmarks.rb +59 -0
- data/bin/commands/bots.rb +15 -9
- data/bin/commands/calls.rb +49 -43
- data/bin/commands/calls_participants.rb +24 -18
- data/bin/commands/chat.rb +150 -141
- data/bin/commands/chat_scheduledMessages.rb +19 -13
- data/bin/commands/conversations.rb +233 -225
- data/bin/commands/dialog.rb +15 -9
- data/bin/commands/dnd.rb +46 -40
- data/bin/commands/emoji.rb +14 -7
- data/bin/commands/files.rb +112 -83
- data/bin/commands/files_comments.rb +15 -9
- data/bin/commands/files_remote.rb +73 -67
- data/bin/commands/functions_workflows_steps.rb +22 -0
- data/bin/commands/functions_workflows_steps_responses.rb +22 -0
- data/bin/commands/migration.rb +16 -10
- data/bin/commands/oauth.rb +18 -12
- data/bin/commands/oauth_v2.rb +28 -22
- data/bin/commands/openid_connect.rb +26 -20
- data/bin/commands/pins.rb +33 -26
- data/bin/commands/reactions.rb +52 -46
- data/bin/commands/reminders.rb +53 -47
- data/bin/commands/rtm.rb +15 -24
- data/bin/commands/search.rb +43 -37
- data/bin/commands/stars.rb +38 -32
- data/bin/commands/team.rb +47 -38
- data/bin/commands/team_billing.rb +13 -7
- data/bin/commands/team_preferences.rb +13 -7
- data/bin/commands/team_profile.rb +14 -8
- data/bin/commands/tooling_tokens.rb +14 -8
- data/bin/commands/usergroups.rb +64 -58
- data/bin/commands/usergroups_users.rb +27 -21
- data/bin/commands/users.rb +111 -105
- data/bin/commands/users_admin.rb +28 -22
- data/bin/commands/users_prefs.rb +13 -7
- data/bin/commands/users_profile.rb +26 -20
- data/bin/commands/views.rb +47 -39
- data/bin/commands/workflows.rb +36 -30
- data/bin/slack +48 -43
- data/lib/slack/real_time/api/message.rb +3 -2
- data/lib/slack/real_time/api/templates/event_handler.erb +5 -1
- data/lib/slack/real_time/api/typing.rb +2 -1
- data/lib/slack/real_time/client.rb +10 -28
- data/lib/slack/real_time/config.rb +3 -3
- data/lib/slack/real_time/models/channel.rb +4 -0
- data/lib/slack/real_time/models/{group.rb → mpim.rb} +1 -1
- data/lib/slack/real_time/models.rb +2 -1
- data/lib/slack/real_time/stores/base.rb +25 -9
- data/lib/slack/real_time/stores/starter.rb +323 -309
- data/lib/slack/real_time/stores/store.rb +265 -198
- data/lib/slack/real_time/stores.rb +1 -7
- data/lib/slack/version.rb +1 -1
- data/lib/slack/web/api/endpoints/admin_analytics.rb +2 -2
- data/lib/slack/web/api/endpoints/admin_apps.rb +2 -2
- data/lib/slack/web/api/endpoints/admin_apps_requests.rb +16 -0
- data/lib/slack/web/api/endpoints/admin_audit_anomaly_allow.rb +34 -0
- data/lib/slack/web/api/endpoints/admin_auth_policy.rb +7 -7
- data/lib/slack/web/api/endpoints/admin_barriers.rb +8 -8
- data/lib/slack/web/api/endpoints/admin_conversations.rb +110 -28
- data/lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb +6 -6
- data/lib/slack/web/api/endpoints/admin_emoji.rb +9 -9
- data/lib/slack/web/api/endpoints/admin_inviteRequests.rb +2 -2
- data/lib/slack/web/api/endpoints/admin_roles.rb +73 -0
- data/lib/slack/web/api/endpoints/admin_teams.rb +2 -2
- data/lib/slack/web/api/endpoints/admin_teams_admins.rb +1 -1
- data/lib/slack/web/api/endpoints/admin_teams_owners.rb +1 -1
- data/lib/slack/web/api/endpoints/admin_teams_settings.rb +11 -11
- data/lib/slack/web/api/endpoints/admin_usergroups.rb +7 -7
- data/lib/slack/web/api/endpoints/admin_users.rb +16 -16
- data/lib/slack/web/api/endpoints/admin_users_session.rb +8 -8
- data/lib/slack/web/api/endpoints/admin_users_unsupportedVersions.rb +25 -0
- data/lib/slack/web/api/endpoints/apps.rb +2 -2
- data/lib/slack/web/api/endpoints/apps_connections.rb +1 -1
- data/lib/slack/web/api/endpoints/apps_event_authorizations.rb +1 -1
- data/lib/slack/web/api/endpoints/apps_manifest.rb +8 -6
- data/lib/slack/web/api/endpoints/bookmarks.rb +88 -0
- data/lib/slack/web/api/endpoints/bots.rb +1 -1
- data/lib/slack/web/api/endpoints/calls.rb +5 -5
- data/lib/slack/web/api/endpoints/calls_participants.rb +4 -4
- data/lib/slack/web/api/endpoints/chat.rb +37 -31
- data/lib/slack/web/api/endpoints/conversations.rb +38 -34
- data/lib/slack/web/api/endpoints/dialog.rb +2 -2
- data/lib/slack/web/api/endpoints/dnd.rb +1 -1
- data/lib/slack/web/api/endpoints/emoji.rb +2 -0
- data/lib/slack/web/api/endpoints/files.rb +45 -10
- data/lib/slack/web/api/endpoints/files_comments.rb +2 -2
- data/lib/slack/web/api/endpoints/files_remote.rb +8 -8
- data/lib/slack/web/api/endpoints/functions_workflows_steps.rb +28 -0
- data/lib/slack/web/api/endpoints/functions_workflows_steps_responses.rb +28 -0
- data/lib/slack/web/api/endpoints/migration.rb +1 -1
- data/lib/slack/web/api/endpoints/oauth_v2.rb +2 -2
- data/lib/slack/web/api/endpoints/pins.rb +5 -3
- data/lib/slack/web/api/endpoints/reactions.rb +4 -4
- data/lib/slack/web/api/endpoints/reminders.rb +5 -5
- data/lib/slack/web/api/endpoints/rtm.rb +0 -23
- data/lib/slack/web/api/endpoints/search.rb +3 -3
- data/lib/slack/web/api/endpoints/team.rb +13 -1
- data/lib/slack/web/api/endpoints/tooling_tokens.rb +1 -1
- data/lib/slack/web/api/endpoints/usergroups.rb +5 -5
- data/lib/slack/web/api/endpoints/usergroups_users.rb +3 -3
- data/lib/slack/web/api/endpoints/users.rb +4 -4
- data/lib/slack/web/api/endpoints/users_admin.rb +2 -2
- data/lib/slack/web/api/endpoints/users_profile.rb +1 -1
- data/lib/slack/web/api/endpoints/views.rb +16 -11
- data/lib/slack/web/api/endpoints/workflows.rb +4 -4
- data/lib/slack/web/api/endpoints.rb +12 -0
- data/lib/slack/web/api/errors.rb +146 -8
- data/lib/slack/web/api/mixins/conversations.id.rb +1 -1
- data/lib/slack/web/api/mixins/users.id.rb +1 -1
- data/lib/slack/web/api/mixins/users.search.rb +2 -1
- data/lib/slack/web/api/patches/{chat.1.patch → chat.attachments-blocks.patch} +13 -14
- data/lib/slack/web/api/patches/{dialog.1.open-json-support.patch → dialog.encoded-json.patch} +4 -4
- data/lib/slack/web/api/patches/views.view-json.patch +55 -0
- data/lib/slack/web/api/templates/command.erb +18 -12
- data/lib/slack/web/api/templates/method.erb +1 -1
- data/lib/slack/web/config.rb +2 -2
- data/lib/slack/web/faraday/connection.rb +4 -4
- data/lib/slack/web/faraday/request.rb +2 -0
- data/lib/slack/web/faraday/response/raise_error.rb +2 -10
- data/lib/slack/web/faraday/response/wrap_error.rb +1 -1
- data/lib/slack-ruby-client.rb +2 -1
- data/lib/tasks/real_time.rake +44 -24
- data/lib/tasks/web.rake +9 -8
- data/slack-ruby-client.gemspec +5 -14
- data/spec/fixtures/slack/web/rtm_connect.yml +85 -1
- data/spec/integration/integration_spec.rb +1 -1
- data/spec/slack/events/config_spec.rb +2 -0
- data/spec/slack/events/request_spec.rb +5 -1
- data/spec/slack/messages/formatting_spec.rb +10 -0
- data/spec/slack/real_time/api/message_spec.rb +1 -1
- data/spec/slack/real_time/api/ping_spec.rb +1 -1
- data/spec/slack/real_time/api/typing_spec.rb +1 -1
- data/spec/slack/real_time/client_spec.rb +91 -127
- data/spec/slack/real_time/event_handlers/bot_spec.rb +19 -17
- data/spec/slack/real_time/event_handlers/event_handlers_spec.rb +1 -1
- data/spec/slack/real_time/event_handlers/im_spec.rb +30 -27
- data/spec/slack/real_time/event_handlers/{group_spec.rb → private_channel_spec.rb} +35 -27
- data/spec/slack/real_time/event_handlers/{channel_spec.rb → public_channel_spec.rb} +27 -23
- data/spec/slack/real_time/event_handlers/team_spec.rb +7 -8
- data/spec/slack/real_time/event_handlers/user_spec.rb +6 -5
- data/spec/slack/real_time/stores/store_spec.rb +50 -0
- data/spec/slack/slack_spec.rb +5 -4
- data/spec/slack/version_spec.rb +1 -1
- data/spec/slack/web/api/endpoints/admin_apps_requests_spec.rb +5 -0
- data/spec/slack/web/api/endpoints/admin_audit_anomaly_allow_spec.rb +8 -0
- data/spec/slack/web/api/endpoints/admin_conversations_spec.rb +31 -0
- data/spec/slack/web/api/endpoints/admin_roles_spec.rb +30 -0
- data/spec/slack/web/api/endpoints/admin_users_unsupportedVersions_spec.rb +8 -0
- data/spec/slack/web/api/endpoints/bookmarks_spec.rb +40 -0
- data/spec/slack/web/api/endpoints/custom_specs/chat_spec.rb +45 -17
- data/spec/slack/web/api/endpoints/custom_specs/dialog_spec.rb +6 -2
- data/spec/slack/web/api/endpoints/custom_specs/views_spec.rb +33 -16
- data/spec/slack/web/api/endpoints/files_spec.rb +13 -0
- data/spec/slack/web/api/endpoints/functions_workflows_steps_responses_spec.rb +13 -0
- data/spec/slack/web/api/endpoints/functions_workflows_steps_spec.rb +13 -0
- data/spec/slack/web/api/mixins/conversations_spec.rb +2 -0
- data/spec/slack/web/api/mixins/users_spec.rb +2 -0
- data/spec/slack/web/api/pagination/cursor_spec.rb +11 -7
- data/spec/slack/web/client_spec.rb +39 -11
- data/spec/slack/web/faraday/response/raise_error_spec.rb +1 -1
- data/spec/support/real_time/connected_client.rb +1 -1
- data/spec/support/real_time/loaded_client.rb +120 -0
- metadata +45 -197
- data/.travis.yml +0 -29
- data/bin/commands/admin_conversations_whitelist.rb +0 -37
- data/bin/commands/apps_permissions.rb +0 -23
- data/bin/commands/apps_permissions_resources.rb +0 -15
- data/bin/commands/apps_permissions_scopes.rb +0 -13
- data/bin/commands/apps_permissions_users.rb +0 -26
- data/bin/commands/channels.rb +0 -23
- data/bin/commands/groups.rb +0 -14
- data/bin/commands/im.rb +0 -6
- data/bin/commands/mpim.rb +0 -6
- data/bin/commands.rb +0 -66
- data/lib/slack/web/api/endpoints/admin_conversations_whitelist.rb +0 -64
- data/lib/slack/web/api/endpoints/apps_permissions.rb +0 -36
- data/lib/slack/web/api/endpoints/apps_permissions_resources.rb +0 -31
- data/lib/slack/web/api/endpoints/apps_permissions_scopes.rb +0 -21
- data/lib/slack/web/api/endpoints/apps_permissions_users.rb +0 -50
- data/lib/slack/web/api/endpoints/channels.rb +0 -25
- data/lib/slack/web/api/endpoints/groups.rb +0 -13
- data/lib/slack/web/api/endpoints/im.rb +0 -13
- data/lib/slack/web/api/endpoints/mpim.rb +0 -13
- data/lib/slack/web/api/endpoints/presence.rb +0 -23
- data/lib/slack/web/api/patches/views.1.view-json.patch +0 -40
- data/lib/slack/web/api/patches/views.1.views-published.patch +0 -16
- data/lib/slack/web/api/templates/commands.erb +0 -6
- data/spec/fixtures/slack/web/rtm_start.yml +0 -815
- data/spec/slack/real_time/rtm_start_spec.rb +0 -14
- data/spec/slack/real_time/store_spec.rb +0 -12
|
@@ -17,16 +17,16 @@ module Slack
|
|
|
17
17
|
# Title of the file being shared.
|
|
18
18
|
# @option options [string] :filetype
|
|
19
19
|
# type of file.
|
|
20
|
-
# @option options [
|
|
20
|
+
# @option options [Object] :indexable_file_contents
|
|
21
21
|
# A text file (txt, pdf, doc, etc.) containing textual search terms that are used to improve discovery of the remote file.
|
|
22
|
-
# @option options [
|
|
22
|
+
# @option options [Object] :preview_image
|
|
23
23
|
# Preview of the document via multipart/form-data.
|
|
24
24
|
# @see https://api.slack.com/methods/files.remote.add
|
|
25
25
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files.remote/files.remote.add.json
|
|
26
26
|
def files_remote_add(options = {})
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
raise ArgumentError, 'Required arguments :external_id missing' if options[:external_id].nil?
|
|
28
|
+
raise ArgumentError, 'Required arguments :external_url missing' if options[:external_url].nil?
|
|
29
|
+
raise ArgumentError, 'Required arguments :title missing' if options[:title].nil?
|
|
30
30
|
post('files.remote.add', options)
|
|
31
31
|
end
|
|
32
32
|
|
|
@@ -94,7 +94,7 @@ module Slack
|
|
|
94
94
|
# @see https://api.slack.com/methods/files.remote.share
|
|
95
95
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files.remote/files.remote.share.json
|
|
96
96
|
def files_remote_share(options = {})
|
|
97
|
-
|
|
97
|
+
raise ArgumentError, 'Required arguments :channels missing' if options[:channels].nil?
|
|
98
98
|
post('files.remote.share', options)
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -109,9 +109,9 @@ module Slack
|
|
|
109
109
|
# Specify a file by providing its ID.
|
|
110
110
|
# @option options [string] :filetype
|
|
111
111
|
# type of file.
|
|
112
|
-
# @option options [
|
|
112
|
+
# @option options [Object] :indexable_file_contents
|
|
113
113
|
# File containing contents that can be used to improve searchability for the remote file.
|
|
114
|
-
# @option options [
|
|
114
|
+
# @option options [Object] :preview_image
|
|
115
115
|
# Preview of the document via multipart/form-data.
|
|
116
116
|
# @option options [string] :title
|
|
117
117
|
# Title of the file being shared.
|
|
@@ -0,0 +1,28 @@
|
|
|
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 FunctionsWorkflowsSteps
|
|
9
|
+
#
|
|
10
|
+
# List the steps of a specific function of a workflow's versions
|
|
11
|
+
#
|
|
12
|
+
# @option options [string] :function_id
|
|
13
|
+
# .
|
|
14
|
+
# @option options [string] :workflow
|
|
15
|
+
# The workflow encoded ID or workflow reference.
|
|
16
|
+
# @option options [string] :workflow_id
|
|
17
|
+
# The workflow ID, starts with Wf*.
|
|
18
|
+
# @see https://api.slack.com/methods/functions.workflows.steps.list
|
|
19
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/functions.workflows.steps/functions.workflows.steps.list.json
|
|
20
|
+
def functions_workflows_steps_list(options = {})
|
|
21
|
+
raise ArgumentError, 'Required arguments :function_id missing' if options[:function_id].nil?
|
|
22
|
+
post('functions.workflows.steps.list', options)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
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 FunctionsWorkflowsStepsResponses
|
|
9
|
+
#
|
|
10
|
+
# Download form responses of a workflow
|
|
11
|
+
#
|
|
12
|
+
# @option options [string] :step_id
|
|
13
|
+
# .
|
|
14
|
+
# @option options [string] :workflow
|
|
15
|
+
# The workflow encoded ID or workflow reference.
|
|
16
|
+
# @option options [string] :workflow_id
|
|
17
|
+
# The workflow ID, starts with Wf*.
|
|
18
|
+
# @see https://api.slack.com/methods/functions.workflows.steps.responses.export
|
|
19
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/functions.workflows.steps.responses/functions.workflows.steps.responses.export.json
|
|
20
|
+
def functions_workflows_steps_responses_export(options = {})
|
|
21
|
+
raise ArgumentError, 'Required arguments :step_id missing' if options[:step_id].nil?
|
|
22
|
+
post('functions.workflows.steps.responses.export', options)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -18,7 +18,7 @@ module Slack
|
|
|
18
18
|
# @see https://api.slack.com/methods/migration.exchange
|
|
19
19
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/migration/migration.exchange.json
|
|
20
20
|
def migration_exchange(options = {})
|
|
21
|
-
|
|
21
|
+
raise ArgumentError, 'Required arguments :users missing' if options[:users].nil?
|
|
22
22
|
post('migration.exchange', options)
|
|
23
23
|
end
|
|
24
24
|
end
|
|
@@ -37,8 +37,8 @@ module Slack
|
|
|
37
37
|
# @see https://api.slack.com/methods/oauth.v2.exchange
|
|
38
38
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/oauth.v2/oauth.v2.exchange.json
|
|
39
39
|
def oauth_v2_exchange(options = {})
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
raise ArgumentError, 'Required arguments :client_id missing' if options[:client_id].nil?
|
|
41
|
+
raise ArgumentError, 'Required arguments :client_secret missing' if options[:client_secret].nil?
|
|
42
42
|
post('oauth.v2.exchange', options)
|
|
43
43
|
end
|
|
44
44
|
end
|
|
@@ -11,12 +11,14 @@ module Slack
|
|
|
11
11
|
#
|
|
12
12
|
# @option options [channel] :channel
|
|
13
13
|
# Channel to pin the messsage to. You must also include a timestamp when pinning messages.
|
|
14
|
+
# @option options [string] :quip_component_id
|
|
15
|
+
# Component ID for the pins component that was inserted into the channel canvas, if any.
|
|
14
16
|
# @option options [string] :timestamp
|
|
15
17
|
# Timestamp of the message to pin. You must also include the channel.
|
|
16
18
|
# @see https://api.slack.com/methods/pins.add
|
|
17
19
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/pins/pins.add.json
|
|
18
20
|
def pins_add(options = {})
|
|
19
|
-
|
|
21
|
+
raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil?
|
|
20
22
|
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
|
21
23
|
post('pins.add', options)
|
|
22
24
|
end
|
|
@@ -29,7 +31,7 @@ module Slack
|
|
|
29
31
|
# @see https://api.slack.com/methods/pins.list
|
|
30
32
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/pins/pins.list.json
|
|
31
33
|
def pins_list(options = {})
|
|
32
|
-
|
|
34
|
+
raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil?
|
|
33
35
|
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
|
34
36
|
post('pins.list', options)
|
|
35
37
|
end
|
|
@@ -44,7 +46,7 @@ module Slack
|
|
|
44
46
|
# @see https://api.slack.com/methods/pins.remove
|
|
45
47
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/pins/pins.remove.json
|
|
46
48
|
def pins_remove(options = {})
|
|
47
|
-
|
|
49
|
+
raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil?
|
|
48
50
|
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
|
49
51
|
post('pins.remove', options)
|
|
50
52
|
end
|
|
@@ -18,9 +18,9 @@ module Slack
|
|
|
18
18
|
# @see https://api.slack.com/methods/reactions.add
|
|
19
19
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/reactions/reactions.add.json
|
|
20
20
|
def reactions_add(options = {})
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil?
|
|
22
|
+
raise ArgumentError, 'Required arguments :name missing' if options[:name].nil?
|
|
23
|
+
raise ArgumentError, 'Required arguments :timestamp missing' if options[:timestamp].nil?
|
|
24
24
|
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
|
25
25
|
post('reactions.add', options)
|
|
26
26
|
end
|
|
@@ -87,7 +87,7 @@ module Slack
|
|
|
87
87
|
# @see https://api.slack.com/methods/reactions.remove
|
|
88
88
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/reactions/reactions.remove.json
|
|
89
89
|
def reactions_remove(options = {})
|
|
90
|
-
|
|
90
|
+
raise ArgumentError, 'Required arguments :name missing' if options[:name].nil?
|
|
91
91
|
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
|
92
92
|
post('reactions.remove', options)
|
|
93
93
|
end
|
|
@@ -22,8 +22,8 @@ module Slack
|
|
|
22
22
|
# @see https://api.slack.com/methods/reminders.add
|
|
23
23
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/reminders/reminders.add.json
|
|
24
24
|
def reminders_add(options = {})
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
raise ArgumentError, 'Required arguments :text missing' if options[:text].nil?
|
|
26
|
+
raise ArgumentError, 'Required arguments :time missing' if options[:time].nil?
|
|
27
27
|
options = options.merge(user: users_id(options)['user']['id']) if options[:user]
|
|
28
28
|
post('reminders.add', options)
|
|
29
29
|
end
|
|
@@ -38,7 +38,7 @@ module Slack
|
|
|
38
38
|
# @see https://api.slack.com/methods/reminders.complete
|
|
39
39
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/reminders/reminders.complete.json
|
|
40
40
|
def reminders_complete(options = {})
|
|
41
|
-
|
|
41
|
+
raise ArgumentError, 'Required arguments :reminder missing' if options[:reminder].nil?
|
|
42
42
|
post('reminders.complete', options)
|
|
43
43
|
end
|
|
44
44
|
|
|
@@ -52,7 +52,7 @@ module Slack
|
|
|
52
52
|
# @see https://api.slack.com/methods/reminders.delete
|
|
53
53
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/reminders/reminders.delete.json
|
|
54
54
|
def reminders_delete(options = {})
|
|
55
|
-
|
|
55
|
+
raise ArgumentError, 'Required arguments :reminder missing' if options[:reminder].nil?
|
|
56
56
|
post('reminders.delete', options)
|
|
57
57
|
end
|
|
58
58
|
|
|
@@ -66,7 +66,7 @@ module Slack
|
|
|
66
66
|
# @see https://api.slack.com/methods/reminders.info
|
|
67
67
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/reminders/reminders.info.json
|
|
68
68
|
def reminders_info(options = {})
|
|
69
|
-
|
|
69
|
+
raise ArgumentError, 'Required arguments :reminder missing' if options[:reminder].nil?
|
|
70
70
|
post('reminders.info', options)
|
|
71
71
|
end
|
|
72
72
|
|
|
@@ -18,29 +18,6 @@ module Slack
|
|
|
18
18
|
def rtm_connect(options = {})
|
|
19
19
|
post('rtm.connect', options)
|
|
20
20
|
end
|
|
21
|
-
|
|
22
|
-
#
|
|
23
|
-
# Deprecated: Starts a Real Time Messaging session. Use rtm.connect instead.
|
|
24
|
-
#
|
|
25
|
-
# @option options [boolean] :batch_presence_aware
|
|
26
|
-
# Batch presence deliveries via subscription. Enabling changes the shape of presence_change events. See batch presence.
|
|
27
|
-
# @option options [boolean] :include_locale
|
|
28
|
-
# Set this to true to receive the locale for users and channels. Defaults to false.
|
|
29
|
-
# @option options [boolean] :mpim_aware
|
|
30
|
-
# Returns MPIMs to the client in the API response.
|
|
31
|
-
# @option options [boolean] :no_latest
|
|
32
|
-
# Exclude latest timestamps for channels, groups, mpims, and ims. Automatically sets no_unreads to 1.
|
|
33
|
-
# @option options [boolean] :no_unreads
|
|
34
|
-
# Skip unread counts for each channel (improves performance).
|
|
35
|
-
# @option options [boolean] :presence_sub
|
|
36
|
-
# Only deliver presence events when requested by subscription. See presence subscriptions.
|
|
37
|
-
# @option options [boolean] :simple_latest
|
|
38
|
-
# Return timestamp only for latest message object of each channel (improves performance).
|
|
39
|
-
# @see https://api.slack.com/methods/rtm.start
|
|
40
|
-
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/rtm/rtm.start.json
|
|
41
|
-
def rtm_start(options = {})
|
|
42
|
-
post('rtm.start', options)
|
|
43
|
-
end
|
|
44
21
|
end
|
|
45
22
|
end
|
|
46
23
|
end
|
|
@@ -22,7 +22,7 @@ module Slack
|
|
|
22
22
|
# @see https://api.slack.com/methods/search.all
|
|
23
23
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/search/search.all.json
|
|
24
24
|
def search_all(options = {})
|
|
25
|
-
|
|
25
|
+
raise ArgumentError, 'Required arguments :query missing' if options[:query].nil?
|
|
26
26
|
post('search.all', options)
|
|
27
27
|
end
|
|
28
28
|
|
|
@@ -42,7 +42,7 @@ module Slack
|
|
|
42
42
|
# @see https://api.slack.com/methods/search.files
|
|
43
43
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/search/search.files.json
|
|
44
44
|
def search_files(options = {})
|
|
45
|
-
|
|
45
|
+
raise ArgumentError, 'Required arguments :query missing' if options[:query].nil?
|
|
46
46
|
post('search.files', options)
|
|
47
47
|
end
|
|
48
48
|
|
|
@@ -64,7 +64,7 @@ module Slack
|
|
|
64
64
|
# @see https://api.slack.com/methods/search.messages
|
|
65
65
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/search/search.messages.json
|
|
66
66
|
def search_messages(options = {})
|
|
67
|
-
|
|
67
|
+
raise ArgumentError, 'Required arguments :query missing' if options[:query].nil?
|
|
68
68
|
if block_given?
|
|
69
69
|
Pagination::Cursor.new(self, :search_messages, options).each do |page|
|
|
70
70
|
yield page
|
|
@@ -22,6 +22,10 @@ module Slack
|
|
|
22
22
|
#
|
|
23
23
|
# Gets billable users information for the current team.
|
|
24
24
|
#
|
|
25
|
+
# @option options [string] :cursor
|
|
26
|
+
# Set cursor to next_cursor returned by previous call, to indicate from where you want to list next page of users list. Default value fetches the first page.
|
|
27
|
+
# @option options [integer] :limit
|
|
28
|
+
# The maximum number of items to return.
|
|
25
29
|
# @option options [string] :team_id
|
|
26
30
|
# encoded team id to get the billable information from, required if org token is used.
|
|
27
31
|
# @option options [user] :user
|
|
@@ -30,12 +34,20 @@ module Slack
|
|
|
30
34
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/team/team.billableInfo.json
|
|
31
35
|
def team_billableInfo(options = {})
|
|
32
36
|
options = options.merge(user: users_id(options)['user']['id']) if options[:user]
|
|
33
|
-
|
|
37
|
+
if block_given?
|
|
38
|
+
Pagination::Cursor.new(self, :team_billableInfo, options).each do |page|
|
|
39
|
+
yield page
|
|
40
|
+
end
|
|
41
|
+
else
|
|
42
|
+
post('team.billableInfo', options)
|
|
43
|
+
end
|
|
34
44
|
end
|
|
35
45
|
|
|
36
46
|
#
|
|
37
47
|
# Gets information about the current team.
|
|
38
48
|
#
|
|
49
|
+
# @option options [string] :domain
|
|
50
|
+
# 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.
|
|
39
51
|
# @option options [string] :team
|
|
40
52
|
# Team to get info on, if omitted, will return information about the current team. Will only return team that the authenticated token is allowed to see through external shared channels.
|
|
41
53
|
# @see https://api.slack.com/methods/team.info
|
|
@@ -14,7 +14,7 @@ module Slack
|
|
|
14
14
|
# @see https://api.slack.com/methods/tooling.tokens.rotate
|
|
15
15
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/tooling.tokens/tooling.tokens.rotate.json
|
|
16
16
|
def tooling_tokens_rotate(options = {})
|
|
17
|
-
|
|
17
|
+
raise ArgumentError, 'Required arguments :refresh_token missing' if options[:refresh_token].nil?
|
|
18
18
|
post('tooling.tokens.rotate', options)
|
|
19
19
|
end
|
|
20
20
|
end
|
|
@@ -24,7 +24,7 @@ module Slack
|
|
|
24
24
|
# @see https://api.slack.com/methods/usergroups.create
|
|
25
25
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups/usergroups.create.json
|
|
26
26
|
def usergroups_create(options = {})
|
|
27
|
-
|
|
27
|
+
raise ArgumentError, 'Required arguments :name missing' if options[:name].nil?
|
|
28
28
|
post('usergroups.create', options)
|
|
29
29
|
end
|
|
30
30
|
|
|
@@ -36,11 +36,11 @@ module Slack
|
|
|
36
36
|
# @option options [boolean] :include_count
|
|
37
37
|
# Include the number of users in the User Group.
|
|
38
38
|
# @option options [Object] :team_id
|
|
39
|
-
# Encoded team id where the user group is, required if org token is used.
|
|
39
|
+
# Encoded target team id where the user group is, required if org token is used.
|
|
40
40
|
# @see https://api.slack.com/methods/usergroups.disable
|
|
41
41
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups/usergroups.disable.json
|
|
42
42
|
def usergroups_disable(options = {})
|
|
43
|
-
|
|
43
|
+
raise ArgumentError, 'Required arguments :usergroup missing' if options[:usergroup].nil?
|
|
44
44
|
post('usergroups.disable', options)
|
|
45
45
|
end
|
|
46
46
|
|
|
@@ -56,7 +56,7 @@ module Slack
|
|
|
56
56
|
# @see https://api.slack.com/methods/usergroups.enable
|
|
57
57
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups/usergroups.enable.json
|
|
58
58
|
def usergroups_enable(options = {})
|
|
59
|
-
|
|
59
|
+
raise ArgumentError, 'Required arguments :usergroup missing' if options[:usergroup].nil?
|
|
60
60
|
post('usergroups.enable', options)
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -97,7 +97,7 @@ module Slack
|
|
|
97
97
|
# @see https://api.slack.com/methods/usergroups.update
|
|
98
98
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups/usergroups.update.json
|
|
99
99
|
def usergroups_update(options = {})
|
|
100
|
-
|
|
100
|
+
raise ArgumentError, 'Required arguments :usergroup missing' if options[:usergroup].nil?
|
|
101
101
|
post('usergroups.update', options)
|
|
102
102
|
end
|
|
103
103
|
end
|
|
@@ -18,7 +18,7 @@ module Slack
|
|
|
18
18
|
# @see https://api.slack.com/methods/usergroups.users.list
|
|
19
19
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups.users/usergroups.users.list.json
|
|
20
20
|
def usergroups_users_list(options = {})
|
|
21
|
-
|
|
21
|
+
raise ArgumentError, 'Required arguments :usergroup missing' if options[:usergroup].nil?
|
|
22
22
|
post('usergroups.users.list', options)
|
|
23
23
|
end
|
|
24
24
|
|
|
@@ -36,8 +36,8 @@ module Slack
|
|
|
36
36
|
# @see https://api.slack.com/methods/usergroups.users.update
|
|
37
37
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups.users/usergroups.users.update.json
|
|
38
38
|
def usergroups_users_update(options = {})
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
raise ArgumentError, 'Required arguments :usergroup missing' if options[:usergroup].nil?
|
|
40
|
+
raise ArgumentError, 'Required arguments :users missing' if options[:users].nil?
|
|
41
41
|
post('usergroups.users.update', options)
|
|
42
42
|
end
|
|
43
43
|
end
|
|
@@ -74,7 +74,7 @@ module Slack
|
|
|
74
74
|
# @see https://api.slack.com/methods/users.info
|
|
75
75
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/users/users.info.json
|
|
76
76
|
def users_info(options = {})
|
|
77
|
-
|
|
77
|
+
raise ArgumentError, 'Required arguments :user missing' if options[:user].nil?
|
|
78
78
|
options = options.merge(user: users_id(options)['user']['id']) if options[:user]
|
|
79
79
|
post('users.info', options)
|
|
80
80
|
end
|
|
@@ -110,7 +110,7 @@ module Slack
|
|
|
110
110
|
# @see https://api.slack.com/methods/users.lookupByEmail
|
|
111
111
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/users/users.lookupByEmail.json
|
|
112
112
|
def users_lookupByEmail(options = {})
|
|
113
|
-
|
|
113
|
+
raise ArgumentError, 'Required arguments :email missing' if options[:email].nil?
|
|
114
114
|
post('users.lookupByEmail', options)
|
|
115
115
|
end
|
|
116
116
|
|
|
@@ -132,7 +132,7 @@ module Slack
|
|
|
132
132
|
# X coordinate of top-left corner of crop box.
|
|
133
133
|
# @option options [string] :crop_y
|
|
134
134
|
# Y coordinate of top-left corner of crop box.
|
|
135
|
-
# @option options [
|
|
135
|
+
# @option options [Object] :image
|
|
136
136
|
# File contents via multipart/form-data.
|
|
137
137
|
# @see https://api.slack.com/methods/users.setPhoto
|
|
138
138
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/users/users.setPhoto.json
|
|
@@ -148,7 +148,7 @@ module Slack
|
|
|
148
148
|
# @see https://api.slack.com/methods/users.setPresence
|
|
149
149
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/users/users.setPresence.json
|
|
150
150
|
def users_setPresence(options = {})
|
|
151
|
-
|
|
151
|
+
raise ArgumentError, 'Required arguments :presence missing' if options[:presence].nil?
|
|
152
152
|
post('users.setPresence', options)
|
|
153
153
|
end
|
|
154
154
|
end
|
|
@@ -25,7 +25,7 @@ module Slack
|
|
|
25
25
|
# Invite a guest that can use one channel only
|
|
26
26
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/undocumented/users.admin/users.admin.invite.json
|
|
27
27
|
def users_admin_invite(options = {})
|
|
28
|
-
|
|
28
|
+
raise ArgumentError, 'Required arguments :email missing' if options[:email].nil?
|
|
29
29
|
logger.warn('The users.admin.invite method is undocumented.')
|
|
30
30
|
post('users.admin.invite', options)
|
|
31
31
|
end
|
|
@@ -37,7 +37,7 @@ module Slack
|
|
|
37
37
|
# User to disable
|
|
38
38
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/undocumented/users.admin/users.admin.setInactive.json
|
|
39
39
|
def users_admin_setInactive(options = {})
|
|
40
|
-
|
|
40
|
+
raise ArgumentError, 'Required arguments :user missing' if options[:user].nil?
|
|
41
41
|
options = options.merge(user: users_id(options)['user']['id']) if options[:user]
|
|
42
42
|
logger.warn('The users.admin.setInactive method is undocumented.')
|
|
43
43
|
post('users.admin.setInactive', options)
|
|
@@ -28,7 +28,7 @@ module Slack
|
|
|
28
28
|
# @option options [string] :profile
|
|
29
29
|
# Collection of key:value pairs presented as a URL-encoded JSON hash. At most 50 fields may be set. Each field name is limited to 255 characters.
|
|
30
30
|
# @option options [user] :user
|
|
31
|
-
# ID of user to change. This argument may only be specified by
|
|
31
|
+
# ID of user to change. This argument may only be specified by admins on paid teams.
|
|
32
32
|
# @option options [string] :value
|
|
33
33
|
# Value to set a single key to. Usable only if profile is not passed.
|
|
34
34
|
# @see https://api.slack.com/methods/users.profile.set
|
|
@@ -9,15 +9,17 @@ module Slack
|
|
|
9
9
|
#
|
|
10
10
|
# Open a view for a user.
|
|
11
11
|
#
|
|
12
|
-
# @option options [string] :trigger_id
|
|
13
|
-
# Exchange a trigger to post to the user.
|
|
14
12
|
# @option options [view as string] :view
|
|
15
13
|
# A view payload. This must be a JSON-encoded string.
|
|
14
|
+
# @option options [string] :trigger_id
|
|
15
|
+
# Exchange a trigger to post to the user.
|
|
16
|
+
# @option options [string] :interactivity_pointer
|
|
17
|
+
# Exchange an interactivity pointer to post to the user.
|
|
16
18
|
# @see https://api.slack.com/methods/views.open
|
|
17
19
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/views/views.open.json
|
|
18
20
|
def views_open(options = {})
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
raise ArgumentError, 'Required arguments :view missing' if options[:view].nil?
|
|
22
|
+
raise ArgumentError, 'One of :trigger_id, :interactivity_pointer is required' unless options[:trigger_id].nil? ^ options[:interactivity_pointer].nil?
|
|
21
23
|
if options.key?(:view)
|
|
22
24
|
view = options[:view]
|
|
23
25
|
view = JSON.dump(view) unless view.is_a?(String)
|
|
@@ -38,8 +40,8 @@ module Slack
|
|
|
38
40
|
# @see https://api.slack.com/methods/views.publish
|
|
39
41
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/views/views.publish.json
|
|
40
42
|
def views_publish(options = {})
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
raise ArgumentError, 'Required arguments :user_id missing' if options[:user_id].nil?
|
|
44
|
+
raise ArgumentError, 'Required arguments :view missing' if options[:view].nil?
|
|
43
45
|
if options.key?(:view)
|
|
44
46
|
view = options[:view]
|
|
45
47
|
view = JSON.dump(view) unless view.is_a?(String)
|
|
@@ -51,15 +53,17 @@ module Slack
|
|
|
51
53
|
#
|
|
52
54
|
# Push a view onto the stack of a root view.
|
|
53
55
|
#
|
|
54
|
-
# @option options [string] :trigger_id
|
|
55
|
-
# Exchange a trigger to post to the user.
|
|
56
56
|
# @option options [view as string] :view
|
|
57
57
|
# A view payload. This must be a JSON-encoded string.
|
|
58
|
+
# @option options [string] :trigger_id
|
|
59
|
+
# Exchange a trigger to post to the user.
|
|
60
|
+
# @option options [string] :interactivity_pointer
|
|
61
|
+
# Exchange an interactivity pointer to post to the user.
|
|
58
62
|
# @see https://api.slack.com/methods/views.push
|
|
59
63
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/views/views.push.json
|
|
60
64
|
def views_push(options = {})
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
raise ArgumentError, 'Required arguments :view missing' if options[:view].nil?
|
|
66
|
+
raise ArgumentError, 'One of :trigger_id, :interactivity_pointer is required' unless options[:trigger_id].nil? ^ options[:interactivity_pointer].nil?
|
|
63
67
|
if options.key?(:view)
|
|
64
68
|
view = options[:view]
|
|
65
69
|
view = JSON.dump(view) unless view.is_a?(String)
|
|
@@ -82,7 +86,8 @@ module Slack
|
|
|
82
86
|
# @see https://api.slack.com/methods/views.update
|
|
83
87
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/views/views.update.json
|
|
84
88
|
def views_update(options = {})
|
|
85
|
-
|
|
89
|
+
raise ArgumentError, 'Required arguments :view missing' if options[:view].nil?
|
|
90
|
+
raise ArgumentError, 'One of :external_id, :view_id is required' unless options[:external_id].nil? ^ options[:view_id].nil?
|
|
86
91
|
if options.key?(:view)
|
|
87
92
|
view = options[:view]
|
|
88
93
|
view = JSON.dump(view) unless view.is_a?(String)
|
|
@@ -16,7 +16,7 @@ module Slack
|
|
|
16
16
|
# @see https://api.slack.com/methods/workflows.stepCompleted
|
|
17
17
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows/workflows.stepCompleted.json
|
|
18
18
|
def workflows_stepCompleted(options = {})
|
|
19
|
-
|
|
19
|
+
raise ArgumentError, 'Required arguments :workflow_step_execute_id missing' if options[:workflow_step_execute_id].nil?
|
|
20
20
|
post('workflows.stepCompleted', options)
|
|
21
21
|
end
|
|
22
22
|
|
|
@@ -30,8 +30,8 @@ module Slack
|
|
|
30
30
|
# @see https://api.slack.com/methods/workflows.stepFailed
|
|
31
31
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows/workflows.stepFailed.json
|
|
32
32
|
def workflows_stepFailed(options = {})
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
raise ArgumentError, 'Required arguments :error missing' if options[:error].nil?
|
|
34
|
+
raise ArgumentError, 'Required arguments :workflow_step_execute_id missing' if options[:workflow_step_execute_id].nil?
|
|
35
35
|
post('workflows.stepFailed', options)
|
|
36
36
|
end
|
|
37
37
|
|
|
@@ -51,7 +51,7 @@ module Slack
|
|
|
51
51
|
# @see https://api.slack.com/methods/workflows.updateStep
|
|
52
52
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows/workflows.updateStep.json
|
|
53
53
|
def workflows_updateStep(options = {})
|
|
54
|
-
|
|
54
|
+
raise ArgumentError, 'Required arguments :workflow_step_edit_id missing' if options[:workflow_step_edit_id].nil?
|
|
55
55
|
post('workflows.updateStep', options)
|
|
56
56
|
end
|
|
57
57
|
end
|
|
@@ -6,6 +6,7 @@ require_relative 'endpoints/admin_apps'
|
|
|
6
6
|
require_relative 'endpoints/admin_apps_approved'
|
|
7
7
|
require_relative 'endpoints/admin_apps_requests'
|
|
8
8
|
require_relative 'endpoints/admin_apps_restricted'
|
|
9
|
+
require_relative 'endpoints/admin_audit_anomaly_allow'
|
|
9
10
|
require_relative 'endpoints/admin_auth_policy'
|
|
10
11
|
require_relative 'endpoints/admin_barriers'
|
|
11
12
|
require_relative 'endpoints/admin_conversations'
|
|
@@ -15,6 +16,7 @@ require_relative 'endpoints/admin_emoji'
|
|
|
15
16
|
require_relative 'endpoints/admin_inviteRequests'
|
|
16
17
|
require_relative 'endpoints/admin_inviteRequests_approved'
|
|
17
18
|
require_relative 'endpoints/admin_inviteRequests_denied'
|
|
19
|
+
require_relative 'endpoints/admin_roles'
|
|
18
20
|
require_relative 'endpoints/admin_teams'
|
|
19
21
|
require_relative 'endpoints/admin_teams_admins'
|
|
20
22
|
require_relative 'endpoints/admin_teams_owners'
|
|
@@ -22,6 +24,7 @@ require_relative 'endpoints/admin_teams_settings'
|
|
|
22
24
|
require_relative 'endpoints/admin_usergroups'
|
|
23
25
|
require_relative 'endpoints/admin_users'
|
|
24
26
|
require_relative 'endpoints/admin_users_session'
|
|
27
|
+
require_relative 'endpoints/admin_users_unsupportedVersions'
|
|
25
28
|
require_relative 'endpoints/api'
|
|
26
29
|
require_relative 'endpoints/apps'
|
|
27
30
|
require_relative 'endpoints/apps_connections'
|
|
@@ -29,6 +32,7 @@ require_relative 'endpoints/apps_event_authorizations'
|
|
|
29
32
|
require_relative 'endpoints/apps_manifest'
|
|
30
33
|
require_relative 'endpoints/auth'
|
|
31
34
|
require_relative 'endpoints/auth_teams'
|
|
35
|
+
require_relative 'endpoints/bookmarks'
|
|
32
36
|
require_relative 'endpoints/bots'
|
|
33
37
|
require_relative 'endpoints/calls'
|
|
34
38
|
require_relative 'endpoints/calls_participants'
|
|
@@ -41,6 +45,8 @@ require_relative 'endpoints/emoji'
|
|
|
41
45
|
require_relative 'endpoints/files'
|
|
42
46
|
require_relative 'endpoints/files_comments'
|
|
43
47
|
require_relative 'endpoints/files_remote'
|
|
48
|
+
require_relative 'endpoints/functions_workflows_steps'
|
|
49
|
+
require_relative 'endpoints/functions_workflows_steps_responses'
|
|
44
50
|
require_relative 'endpoints/migration'
|
|
45
51
|
require_relative 'endpoints/oauth'
|
|
46
52
|
require_relative 'endpoints/oauth_v2'
|
|
@@ -77,6 +83,7 @@ module Slack
|
|
|
77
83
|
include AdminAppsApproved
|
|
78
84
|
include AdminAppsRequests
|
|
79
85
|
include AdminAppsRestricted
|
|
86
|
+
include AdminAuditAnomalyAllow
|
|
80
87
|
include AdminAuthPolicy
|
|
81
88
|
include AdminBarriers
|
|
82
89
|
include AdminConversations
|
|
@@ -86,6 +93,7 @@ module Slack
|
|
|
86
93
|
include AdminInviterequests
|
|
87
94
|
include AdminInviterequestsApproved
|
|
88
95
|
include AdminInviterequestsDenied
|
|
96
|
+
include AdminRoles
|
|
89
97
|
include AdminTeams
|
|
90
98
|
include AdminTeamsAdmins
|
|
91
99
|
include AdminTeamsOwners
|
|
@@ -93,6 +101,7 @@ module Slack
|
|
|
93
101
|
include AdminUsergroups
|
|
94
102
|
include AdminUsers
|
|
95
103
|
include AdminUsersSession
|
|
104
|
+
include AdminUsersUnsupportedversions
|
|
96
105
|
include Api
|
|
97
106
|
include Apps
|
|
98
107
|
include AppsConnections
|
|
@@ -100,6 +109,7 @@ module Slack
|
|
|
100
109
|
include AppsManifest
|
|
101
110
|
include Auth
|
|
102
111
|
include AuthTeams
|
|
112
|
+
include Bookmarks
|
|
103
113
|
include Bots
|
|
104
114
|
include Calls
|
|
105
115
|
include CallsParticipants
|
|
@@ -112,6 +122,8 @@ module Slack
|
|
|
112
122
|
include Files
|
|
113
123
|
include FilesComments
|
|
114
124
|
include FilesRemote
|
|
125
|
+
include FunctionsWorkflowsSteps
|
|
126
|
+
include FunctionsWorkflowsStepsResponses
|
|
115
127
|
include Migration
|
|
116
128
|
include Oauth
|
|
117
129
|
include OauthV2
|