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.
Files changed (239) hide show
  1. checksums.yaml +4 -4
  2. data/.github/FUNDING.yml +1 -0
  3. data/.github/workflows/integration_test.yml +45 -0
  4. data/.github/workflows/lint.yml +14 -0
  5. data/.github/workflows/pr_lint.yml +21 -0
  6. data/.github/workflows/test.yml +37 -0
  7. data/.gitignore +4 -3
  8. data/.rubocop.yml +6 -1
  9. data/.rubocop_todo.yml +88 -34
  10. data/.ruby-version +1 -0
  11. data/CHANGELOG.md +36 -0
  12. data/CONTRIBUTING.md +6 -5
  13. data/Gemfile +13 -1
  14. data/Gemfile.danger +6 -0
  15. data/README.md +78 -76
  16. data/RELEASING.md +2 -2
  17. data/SECURITY.md +9 -0
  18. data/UPGRADING.md +28 -0
  19. data/bin/commands/admin_analytics.rb +16 -10
  20. data/bin/commands/admin_apps.rb +48 -42
  21. data/bin/commands/admin_apps_approved.rb +17 -11
  22. data/bin/commands/admin_apps_requests.rb +28 -11
  23. data/bin/commands/admin_apps_restricted.rb +17 -11
  24. data/bin/commands/admin_audit_anomaly_allow.rb +29 -0
  25. data/bin/commands/admin_auth_policy.rb +37 -31
  26. data/bin/commands/admin_barriers.rb +44 -38
  27. data/bin/commands/admin_conversations.rb +221 -163
  28. data/bin/commands/admin_conversations_ekm.rb +17 -11
  29. data/bin/commands/admin_conversations_restrictAccess.rb +35 -29
  30. data/bin/commands/admin_emoji.rb +50 -44
  31. data/bin/commands/admin_inviteRequests.rb +34 -28
  32. data/bin/commands/admin_inviteRequests_approved.rb +16 -10
  33. data/bin/commands/admin_inviteRequests_denied.rb +16 -10
  34. data/bin/commands/admin_roles.rb +46 -0
  35. data/bin/commands/admin_teams.rb +26 -20
  36. data/bin/commands/admin_teams_admins.rb +16 -10
  37. data/bin/commands/admin_teams_owners.rb +16 -10
  38. data/bin/commands/admin_teams_settings.rb +59 -53
  39. data/bin/commands/admin_usergroups.rb +45 -39
  40. data/bin/commands/admin_users.rb +91 -85
  41. data/bin/commands/admin_users_session.rb +72 -66
  42. data/bin/commands/admin_users_unsupportedVersions.rb +21 -0
  43. data/bin/commands/api.rb +14 -8
  44. data/bin/commands/apps.rb +15 -9
  45. data/bin/commands/apps_connections.rb +13 -7
  46. data/bin/commands/apps_event_authorizations.rb +16 -10
  47. data/bin/commands/apps_manifest.rb +48 -41
  48. data/bin/commands/auth.rb +21 -15
  49. data/bin/commands/auth_teams.rb +16 -10
  50. data/bin/commands/bookmarks.rb +59 -0
  51. data/bin/commands/bots.rb +15 -9
  52. data/bin/commands/calls.rb +49 -43
  53. data/bin/commands/calls_participants.rb +24 -18
  54. data/bin/commands/chat.rb +150 -141
  55. data/bin/commands/chat_scheduledMessages.rb +19 -13
  56. data/bin/commands/conversations.rb +233 -225
  57. data/bin/commands/dialog.rb +15 -9
  58. data/bin/commands/dnd.rb +46 -40
  59. data/bin/commands/emoji.rb +14 -7
  60. data/bin/commands/files.rb +112 -83
  61. data/bin/commands/files_comments.rb +15 -9
  62. data/bin/commands/files_remote.rb +73 -67
  63. data/bin/commands/functions_workflows_steps.rb +22 -0
  64. data/bin/commands/functions_workflows_steps_responses.rb +22 -0
  65. data/bin/commands/migration.rb +16 -10
  66. data/bin/commands/oauth.rb +18 -12
  67. data/bin/commands/oauth_v2.rb +28 -22
  68. data/bin/commands/openid_connect.rb +26 -20
  69. data/bin/commands/pins.rb +33 -26
  70. data/bin/commands/reactions.rb +52 -46
  71. data/bin/commands/reminders.rb +53 -47
  72. data/bin/commands/rtm.rb +15 -24
  73. data/bin/commands/search.rb +43 -37
  74. data/bin/commands/stars.rb +38 -32
  75. data/bin/commands/team.rb +47 -38
  76. data/bin/commands/team_billing.rb +13 -7
  77. data/bin/commands/team_preferences.rb +13 -7
  78. data/bin/commands/team_profile.rb +14 -8
  79. data/bin/commands/tooling_tokens.rb +14 -8
  80. data/bin/commands/usergroups.rb +64 -58
  81. data/bin/commands/usergroups_users.rb +27 -21
  82. data/bin/commands/users.rb +111 -105
  83. data/bin/commands/users_admin.rb +28 -22
  84. data/bin/commands/users_prefs.rb +13 -7
  85. data/bin/commands/users_profile.rb +26 -20
  86. data/bin/commands/views.rb +47 -39
  87. data/bin/commands/workflows.rb +36 -30
  88. data/bin/slack +48 -43
  89. data/lib/slack/real_time/api/message.rb +3 -2
  90. data/lib/slack/real_time/api/templates/event_handler.erb +5 -1
  91. data/lib/slack/real_time/api/typing.rb +2 -1
  92. data/lib/slack/real_time/client.rb +10 -28
  93. data/lib/slack/real_time/config.rb +3 -3
  94. data/lib/slack/real_time/models/channel.rb +4 -0
  95. data/lib/slack/real_time/models/{group.rb → mpim.rb} +1 -1
  96. data/lib/slack/real_time/models.rb +2 -1
  97. data/lib/slack/real_time/stores/base.rb +25 -9
  98. data/lib/slack/real_time/stores/starter.rb +323 -309
  99. data/lib/slack/real_time/stores/store.rb +265 -198
  100. data/lib/slack/real_time/stores.rb +1 -7
  101. data/lib/slack/version.rb +1 -1
  102. data/lib/slack/web/api/endpoints/admin_analytics.rb +2 -2
  103. data/lib/slack/web/api/endpoints/admin_apps.rb +2 -2
  104. data/lib/slack/web/api/endpoints/admin_apps_requests.rb +16 -0
  105. data/lib/slack/web/api/endpoints/admin_audit_anomaly_allow.rb +34 -0
  106. data/lib/slack/web/api/endpoints/admin_auth_policy.rb +7 -7
  107. data/lib/slack/web/api/endpoints/admin_barriers.rb +8 -8
  108. data/lib/slack/web/api/endpoints/admin_conversations.rb +110 -28
  109. data/lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb +6 -6
  110. data/lib/slack/web/api/endpoints/admin_emoji.rb +9 -9
  111. data/lib/slack/web/api/endpoints/admin_inviteRequests.rb +2 -2
  112. data/lib/slack/web/api/endpoints/admin_roles.rb +73 -0
  113. data/lib/slack/web/api/endpoints/admin_teams.rb +2 -2
  114. data/lib/slack/web/api/endpoints/admin_teams_admins.rb +1 -1
  115. data/lib/slack/web/api/endpoints/admin_teams_owners.rb +1 -1
  116. data/lib/slack/web/api/endpoints/admin_teams_settings.rb +11 -11
  117. data/lib/slack/web/api/endpoints/admin_usergroups.rb +7 -7
  118. data/lib/slack/web/api/endpoints/admin_users.rb +16 -16
  119. data/lib/slack/web/api/endpoints/admin_users_session.rb +8 -8
  120. data/lib/slack/web/api/endpoints/admin_users_unsupportedVersions.rb +25 -0
  121. data/lib/slack/web/api/endpoints/apps.rb +2 -2
  122. data/lib/slack/web/api/endpoints/apps_connections.rb +1 -1
  123. data/lib/slack/web/api/endpoints/apps_event_authorizations.rb +1 -1
  124. data/lib/slack/web/api/endpoints/apps_manifest.rb +8 -6
  125. data/lib/slack/web/api/endpoints/bookmarks.rb +88 -0
  126. data/lib/slack/web/api/endpoints/bots.rb +1 -1
  127. data/lib/slack/web/api/endpoints/calls.rb +5 -5
  128. data/lib/slack/web/api/endpoints/calls_participants.rb +4 -4
  129. data/lib/slack/web/api/endpoints/chat.rb +37 -31
  130. data/lib/slack/web/api/endpoints/conversations.rb +38 -34
  131. data/lib/slack/web/api/endpoints/dialog.rb +2 -2
  132. data/lib/slack/web/api/endpoints/dnd.rb +1 -1
  133. data/lib/slack/web/api/endpoints/emoji.rb +2 -0
  134. data/lib/slack/web/api/endpoints/files.rb +45 -10
  135. data/lib/slack/web/api/endpoints/files_comments.rb +2 -2
  136. data/lib/slack/web/api/endpoints/files_remote.rb +8 -8
  137. data/lib/slack/web/api/endpoints/functions_workflows_steps.rb +28 -0
  138. data/lib/slack/web/api/endpoints/functions_workflows_steps_responses.rb +28 -0
  139. data/lib/slack/web/api/endpoints/migration.rb +1 -1
  140. data/lib/slack/web/api/endpoints/oauth_v2.rb +2 -2
  141. data/lib/slack/web/api/endpoints/pins.rb +5 -3
  142. data/lib/slack/web/api/endpoints/reactions.rb +4 -4
  143. data/lib/slack/web/api/endpoints/reminders.rb +5 -5
  144. data/lib/slack/web/api/endpoints/rtm.rb +0 -23
  145. data/lib/slack/web/api/endpoints/search.rb +3 -3
  146. data/lib/slack/web/api/endpoints/team.rb +13 -1
  147. data/lib/slack/web/api/endpoints/tooling_tokens.rb +1 -1
  148. data/lib/slack/web/api/endpoints/usergroups.rb +5 -5
  149. data/lib/slack/web/api/endpoints/usergroups_users.rb +3 -3
  150. data/lib/slack/web/api/endpoints/users.rb +4 -4
  151. data/lib/slack/web/api/endpoints/users_admin.rb +2 -2
  152. data/lib/slack/web/api/endpoints/users_profile.rb +1 -1
  153. data/lib/slack/web/api/endpoints/views.rb +16 -11
  154. data/lib/slack/web/api/endpoints/workflows.rb +4 -4
  155. data/lib/slack/web/api/endpoints.rb +12 -0
  156. data/lib/slack/web/api/errors.rb +146 -8
  157. data/lib/slack/web/api/mixins/conversations.id.rb +1 -1
  158. data/lib/slack/web/api/mixins/users.id.rb +1 -1
  159. data/lib/slack/web/api/mixins/users.search.rb +2 -1
  160. data/lib/slack/web/api/patches/{chat.1.patch → chat.attachments-blocks.patch} +13 -14
  161. data/lib/slack/web/api/patches/{dialog.1.open-json-support.patch → dialog.encoded-json.patch} +4 -4
  162. data/lib/slack/web/api/patches/views.view-json.patch +55 -0
  163. data/lib/slack/web/api/templates/command.erb +18 -12
  164. data/lib/slack/web/api/templates/method.erb +1 -1
  165. data/lib/slack/web/config.rb +2 -2
  166. data/lib/slack/web/faraday/connection.rb +4 -4
  167. data/lib/slack/web/faraday/request.rb +2 -0
  168. data/lib/slack/web/faraday/response/raise_error.rb +2 -10
  169. data/lib/slack/web/faraday/response/wrap_error.rb +1 -1
  170. data/lib/slack-ruby-client.rb +2 -1
  171. data/lib/tasks/real_time.rake +44 -24
  172. data/lib/tasks/web.rake +9 -8
  173. data/slack-ruby-client.gemspec +5 -14
  174. data/spec/fixtures/slack/web/rtm_connect.yml +85 -1
  175. data/spec/integration/integration_spec.rb +1 -1
  176. data/spec/slack/events/config_spec.rb +2 -0
  177. data/spec/slack/events/request_spec.rb +5 -1
  178. data/spec/slack/messages/formatting_spec.rb +10 -0
  179. data/spec/slack/real_time/api/message_spec.rb +1 -1
  180. data/spec/slack/real_time/api/ping_spec.rb +1 -1
  181. data/spec/slack/real_time/api/typing_spec.rb +1 -1
  182. data/spec/slack/real_time/client_spec.rb +91 -127
  183. data/spec/slack/real_time/event_handlers/bot_spec.rb +19 -17
  184. data/spec/slack/real_time/event_handlers/event_handlers_spec.rb +1 -1
  185. data/spec/slack/real_time/event_handlers/im_spec.rb +30 -27
  186. data/spec/slack/real_time/event_handlers/{group_spec.rb → private_channel_spec.rb} +35 -27
  187. data/spec/slack/real_time/event_handlers/{channel_spec.rb → public_channel_spec.rb} +27 -23
  188. data/spec/slack/real_time/event_handlers/team_spec.rb +7 -8
  189. data/spec/slack/real_time/event_handlers/user_spec.rb +6 -5
  190. data/spec/slack/real_time/stores/store_spec.rb +50 -0
  191. data/spec/slack/slack_spec.rb +5 -4
  192. data/spec/slack/version_spec.rb +1 -1
  193. data/spec/slack/web/api/endpoints/admin_apps_requests_spec.rb +5 -0
  194. data/spec/slack/web/api/endpoints/admin_audit_anomaly_allow_spec.rb +8 -0
  195. data/spec/slack/web/api/endpoints/admin_conversations_spec.rb +31 -0
  196. data/spec/slack/web/api/endpoints/admin_roles_spec.rb +30 -0
  197. data/spec/slack/web/api/endpoints/admin_users_unsupportedVersions_spec.rb +8 -0
  198. data/spec/slack/web/api/endpoints/bookmarks_spec.rb +40 -0
  199. data/spec/slack/web/api/endpoints/custom_specs/chat_spec.rb +45 -17
  200. data/spec/slack/web/api/endpoints/custom_specs/dialog_spec.rb +6 -2
  201. data/spec/slack/web/api/endpoints/custom_specs/views_spec.rb +33 -16
  202. data/spec/slack/web/api/endpoints/files_spec.rb +13 -0
  203. data/spec/slack/web/api/endpoints/functions_workflows_steps_responses_spec.rb +13 -0
  204. data/spec/slack/web/api/endpoints/functions_workflows_steps_spec.rb +13 -0
  205. data/spec/slack/web/api/mixins/conversations_spec.rb +2 -0
  206. data/spec/slack/web/api/mixins/users_spec.rb +2 -0
  207. data/spec/slack/web/api/pagination/cursor_spec.rb +11 -7
  208. data/spec/slack/web/client_spec.rb +39 -11
  209. data/spec/slack/web/faraday/response/raise_error_spec.rb +1 -1
  210. data/spec/support/real_time/connected_client.rb +1 -1
  211. data/spec/support/real_time/loaded_client.rb +120 -0
  212. metadata +45 -197
  213. data/.travis.yml +0 -29
  214. data/bin/commands/admin_conversations_whitelist.rb +0 -37
  215. data/bin/commands/apps_permissions.rb +0 -23
  216. data/bin/commands/apps_permissions_resources.rb +0 -15
  217. data/bin/commands/apps_permissions_scopes.rb +0 -13
  218. data/bin/commands/apps_permissions_users.rb +0 -26
  219. data/bin/commands/channels.rb +0 -23
  220. data/bin/commands/groups.rb +0 -14
  221. data/bin/commands/im.rb +0 -6
  222. data/bin/commands/mpim.rb +0 -6
  223. data/bin/commands.rb +0 -66
  224. data/lib/slack/web/api/endpoints/admin_conversations_whitelist.rb +0 -64
  225. data/lib/slack/web/api/endpoints/apps_permissions.rb +0 -36
  226. data/lib/slack/web/api/endpoints/apps_permissions_resources.rb +0 -31
  227. data/lib/slack/web/api/endpoints/apps_permissions_scopes.rb +0 -21
  228. data/lib/slack/web/api/endpoints/apps_permissions_users.rb +0 -50
  229. data/lib/slack/web/api/endpoints/channels.rb +0 -25
  230. data/lib/slack/web/api/endpoints/groups.rb +0 -13
  231. data/lib/slack/web/api/endpoints/im.rb +0 -13
  232. data/lib/slack/web/api/endpoints/mpim.rb +0 -13
  233. data/lib/slack/web/api/endpoints/presence.rb +0 -23
  234. data/lib/slack/web/api/patches/views.1.view-json.patch +0 -40
  235. data/lib/slack/web/api/patches/views.1.views-published.patch +0 -16
  236. data/lib/slack/web/api/templates/commands.erb +0 -6
  237. data/spec/fixtures/slack/web/rtm_start.yml +0 -815
  238. data/spec/slack/real_time/rtm_start_spec.rb +0 -14
  239. 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 [string] :indexable_file_contents
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 [string] :preview_image
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
- throw ArgumentError.new('Required arguments :external_id missing') if options[:external_id].nil?
28
- throw ArgumentError.new('Required arguments :external_url missing') if options[:external_url].nil?
29
- throw ArgumentError.new('Required arguments :title missing') if options[:title].nil?
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
- throw ArgumentError.new('Required arguments :channels missing') if options[:channels].nil?
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 [string] :indexable_file_contents
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 [string] :preview_image
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
- throw ArgumentError.new('Required arguments :users missing') if options[:users].nil?
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
- throw ArgumentError.new('Required arguments :client_id missing') if options[:client_id].nil?
41
- throw ArgumentError.new('Required arguments :client_secret missing') if options[:client_secret].nil?
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
- throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
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
- throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
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
- throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
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
- throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
22
- throw ArgumentError.new('Required arguments :name missing') if options[:name].nil?
23
- throw ArgumentError.new('Required arguments :timestamp missing') if options[:timestamp].nil?
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
- throw ArgumentError.new('Required arguments :name missing') if options[:name].nil?
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
- throw ArgumentError.new('Required arguments :text missing') if options[:text].nil?
26
- throw ArgumentError.new('Required arguments :time missing') if options[:time].nil?
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
- throw ArgumentError.new('Required arguments :reminder missing') if options[:reminder].nil?
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
- throw ArgumentError.new('Required arguments :reminder missing') if options[:reminder].nil?
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
- throw ArgumentError.new('Required arguments :reminder missing') if options[:reminder].nil?
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
- throw ArgumentError.new('Required arguments :query missing') if options[:query].nil?
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
- throw ArgumentError.new('Required arguments :query missing') if options[:query].nil?
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
- throw ArgumentError.new('Required arguments :query missing') if options[:query].nil?
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
- post('team.billableInfo', options)
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
- throw ArgumentError.new('Required arguments :refresh_token missing') if options[:refresh_token].nil?
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
- throw ArgumentError.new('Required arguments :name missing') if options[:name].nil?
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
- throw ArgumentError.new('Required arguments :usergroup missing') if options[:usergroup].nil?
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
- throw ArgumentError.new('Required arguments :usergroup missing') if options[:usergroup].nil?
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
- throw ArgumentError.new('Required arguments :usergroup missing') if options[:usergroup].nil?
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
- throw ArgumentError.new('Required arguments :usergroup missing') if options[:usergroup].nil?
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
- throw ArgumentError.new('Required arguments :usergroup missing') if options[:usergroup].nil?
40
- throw ArgumentError.new('Required arguments :users missing') if options[:users].nil?
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
- throw ArgumentError.new('Required arguments :user missing') if options[:user].nil?
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
- throw ArgumentError.new('Required arguments :email missing') if options[:email].nil?
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 [string] :image
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
- throw ArgumentError.new('Required arguments :presence missing') if options[:presence].nil?
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
- throw ArgumentError.new('Required arguments :email missing') if options[:email].nil?
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
- throw ArgumentError.new('Required arguments :user missing') if options[:user].nil?
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 team admins on paid teams.
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
- throw ArgumentError.new('Required arguments :trigger_id missing') if options[:trigger_id].nil?
20
- throw ArgumentError.new('Required arguments :view missing') if options[:view].nil?
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
- throw ArgumentError.new('Required arguments :user_id missing') if options[:user_id].nil?
42
- throw ArgumentError.new('Required arguments :view missing') if options[:view].nil?
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
- throw ArgumentError.new('Required arguments :trigger_id missing') if options[:trigger_id].nil?
62
- throw ArgumentError.new('Required arguments :view missing') if options[:view].nil?
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
- throw ArgumentError.new('Required arguments :view missing') if options[:view].nil?
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
- throw ArgumentError.new('Required arguments :workflow_step_execute_id missing') if options[:workflow_step_execute_id].nil?
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
- throw ArgumentError.new('Required arguments :error missing') if options[:error].nil?
34
- throw ArgumentError.new('Required arguments :workflow_step_execute_id missing') if options[:workflow_step_execute_id].nil?
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
- throw ArgumentError.new('Required arguments :workflow_step_edit_id missing') if options[:workflow_step_edit_id].nil?
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