slack-ruby-client 2.7.0 → 3.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 (207) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/lint.yml +1 -1
  3. data/.github/workflows/pr_lint.yml +1 -1
  4. data/.github/workflows/test.yml +4 -11
  5. data/.github/workflows/update_api.yml +1 -1
  6. data/.rubocop_todo.yml +45 -67
  7. data/CHANGELOG.md +12 -0
  8. data/Gemfile +0 -9
  9. data/LICENSE.md +1 -1
  10. data/README.md +16 -219
  11. data/Rakefile +0 -1
  12. data/UPGRADING.md +4 -0
  13. data/bin/commands/admin_analytics.rb +1 -1
  14. data/bin/commands/admin_apps.rb +4 -4
  15. data/bin/commands/admin_apps_activities.rb +7 -7
  16. data/bin/commands/admin_apps_approved.rb +4 -4
  17. data/bin/commands/admin_apps_config.rb +3 -1
  18. data/bin/commands/admin_apps_requests.rb +5 -5
  19. data/bin/commands/admin_apps_restricted.rb +4 -4
  20. data/bin/commands/admin_audit_anomaly_allow.rb +6 -6
  21. data/bin/commands/admin_auth_policy.rb +5 -5
  22. data/bin/commands/admin_barriers.rb +3 -3
  23. data/bin/commands/admin_conversations.rb +15 -15
  24. data/bin/commands/admin_conversations_ekm.rb +2 -2
  25. data/bin/commands/admin_conversations_restrictAccess.rb +5 -5
  26. data/bin/commands/admin_emoji.rb +5 -5
  27. data/bin/commands/admin_functions.rb +4 -3
  28. data/bin/commands/admin_functions_permissions.rb +2 -2
  29. data/bin/commands/admin_inviteRequests.rb +3 -3
  30. data/bin/commands/admin_inviteRequests_approved.rb +1 -1
  31. data/bin/commands/admin_inviteRequests_denied.rb +1 -1
  32. data/bin/commands/admin_roles.rb +3 -3
  33. data/bin/commands/admin_teams.rb +3 -3
  34. data/bin/commands/admin_teams_admins.rb +2 -2
  35. data/bin/commands/admin_teams_owners.rb +2 -2
  36. data/bin/commands/admin_teams_settings.rb +5 -5
  37. data/bin/commands/admin_usergroups.rb +4 -4
  38. data/bin/commands/admin_users.rb +22 -11
  39. data/bin/commands/admin_users_session.rb +6 -5
  40. data/bin/commands/admin_users_unsupportedVersions.rb +1 -1
  41. data/bin/commands/admin_workflows.rb +6 -6
  42. data/bin/commands/admin_workflows_collaborators.rb +2 -2
  43. data/bin/commands/apps_activities.rb +7 -7
  44. data/bin/commands/apps_auth_external.rb +1 -1
  45. data/bin/commands/apps_datastore.rb +12 -12
  46. data/bin/commands/apps_event_authorizations.rb +3 -3
  47. data/bin/commands/apps_manifest.rb +1 -1
  48. data/bin/commands/assistant_search.rb +22 -3
  49. data/bin/commands/assistant_threads.rb +3 -2
  50. data/bin/commands/auth.rb +1 -1
  51. data/bin/commands/auth_teams.rb +1 -1
  52. data/bin/commands/bookmarks.rb +6 -6
  53. data/bin/commands/calls.rb +5 -5
  54. data/bin/commands/canvases.rb +2 -2
  55. data/bin/commands/canvases_access.rb +1 -1
  56. data/bin/commands/chat.rb +63 -25
  57. data/bin/commands/conversations.rb +8 -8
  58. data/bin/commands/conversations_canvases.rb +1 -1
  59. data/bin/commands/conversations_externalInvitePermissions.rb +1 -1
  60. data/bin/commands/conversations_requestSharedInvite.rb +4 -4
  61. data/bin/commands/dnd.rb +1 -1
  62. data/bin/commands/entity.rb +24 -0
  63. data/bin/commands/files.rb +6 -6
  64. data/bin/commands/files_remote.rb +1 -1
  65. data/bin/commands/functions.rb +1 -1
  66. data/bin/commands/functions_distributions_permissions.rb +15 -15
  67. data/bin/commands/functions_workflows_steps.rb +2 -2
  68. data/bin/commands/functions_workflows_steps_responses.rb +2 -2
  69. data/bin/commands/migration.rb +2 -2
  70. data/bin/commands/oauth_v2.rb +2 -1
  71. data/bin/commands/openid_connect.rb +1 -1
  72. data/bin/commands/reactions.rb +3 -3
  73. data/bin/commands/reminders.rb +2 -2
  74. data/bin/commands/rtm.rb +15 -0
  75. data/bin/commands/search.rb +4 -4
  76. data/bin/commands/slackLists.rb +37 -0
  77. data/bin/commands/slackLists_access.rb +34 -0
  78. data/bin/commands/slackLists_download.rb +31 -0
  79. data/bin/commands/slackLists_items.rb +76 -0
  80. data/bin/commands/team.rb +1 -1
  81. data/bin/commands/team_externalTeams.rb +4 -4
  82. data/bin/commands/usergroups.rb +10 -10
  83. data/bin/commands/usergroups_users.rb +5 -5
  84. data/bin/commands/users.rb +1 -1
  85. data/bin/commands/users_discoverableContacts.rb +1 -1
  86. data/bin/commands/views.rb +4 -4
  87. data/bin/commands/workflows_featured.rb +50 -0
  88. data/bin/commands/workflows_triggers_permissions.rb +7 -7
  89. data/examples/oauth_v2/README.md +3 -3
  90. data/lib/slack/version.rb +1 -1
  91. data/lib/slack/web/api/endpoints/admin_analytics.rb +2 -2
  92. data/lib/slack/web/api/endpoints/admin_apps.rb +8 -8
  93. data/lib/slack/web/api/endpoints/admin_apps_activities.rb +14 -14
  94. data/lib/slack/web/api/endpoints/admin_apps_approved.rb +5 -7
  95. data/lib/slack/web/api/endpoints/admin_apps_config.rb +6 -3
  96. data/lib/slack/web/api/endpoints/admin_apps_requests.rb +7 -9
  97. data/lib/slack/web/api/endpoints/admin_apps_restricted.rb +5 -7
  98. data/lib/slack/web/api/endpoints/admin_audit_anomaly_allow.rb +5 -5
  99. data/lib/slack/web/api/endpoints/admin_auth_policy.rb +14 -14
  100. data/lib/slack/web/api/endpoints/admin_barriers.rb +8 -8
  101. data/lib/slack/web/api/endpoints/admin_conversations.rb +27 -28
  102. data/lib/slack/web/api/endpoints/admin_conversations_ekm.rb +4 -4
  103. data/lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb +11 -12
  104. data/lib/slack/web/api/endpoints/admin_emoji.rb +5 -5
  105. data/lib/slack/web/api/endpoints/admin_functions.rb +5 -3
  106. data/lib/slack/web/api/endpoints/admin_functions_permissions.rb +1 -1
  107. data/lib/slack/web/api/endpoints/admin_inviteRequests.rb +6 -6
  108. data/lib/slack/web/api/endpoints/admin_inviteRequests_approved.rb +2 -2
  109. data/lib/slack/web/api/endpoints/admin_inviteRequests_denied.rb +2 -2
  110. data/lib/slack/web/api/endpoints/admin_roles.rb +8 -8
  111. data/lib/slack/web/api/endpoints/admin_teams.rb +3 -3
  112. data/lib/slack/web/api/endpoints/admin_teams_admins.rb +3 -4
  113. data/lib/slack/web/api/endpoints/admin_teams_owners.rb +2 -3
  114. data/lib/slack/web/api/endpoints/admin_teams_settings.rb +12 -13
  115. data/lib/slack/web/api/endpoints/admin_usergroups.rb +11 -11
  116. data/lib/slack/web/api/endpoints/admin_users.rb +40 -25
  117. data/lib/slack/web/api/endpoints/admin_users_session.rb +12 -9
  118. data/lib/slack/web/api/endpoints/admin_users_unsupportedVersions.rb +2 -2
  119. data/lib/slack/web/api/endpoints/admin_workflows.rb +12 -12
  120. data/lib/slack/web/api/endpoints/admin_workflows_collaborators.rb +6 -6
  121. data/lib/slack/web/api/endpoints/apps_activities.rb +14 -14
  122. data/lib/slack/web/api/endpoints/apps_auth_external.rb +2 -2
  123. data/lib/slack/web/api/endpoints/apps_datastore.rb +8 -15
  124. data/lib/slack/web/api/endpoints/apps_event_authorizations.rb +0 -3
  125. data/lib/slack/web/api/endpoints/apps_manifest.rb +5 -5
  126. data/lib/slack/web/api/endpoints/assistant_search.rb +35 -4
  127. data/lib/slack/web/api/endpoints/assistant_threads.rb +9 -7
  128. data/lib/slack/web/api/endpoints/auth.rb +1 -1
  129. data/lib/slack/web/api/endpoints/auth_teams.rb +2 -2
  130. data/lib/slack/web/api/endpoints/bookmarks.rb +14 -14
  131. data/lib/slack/web/api/endpoints/calls.rb +10 -10
  132. data/lib/slack/web/api/endpoints/canvases.rb +4 -4
  133. data/lib/slack/web/api/endpoints/canvases_access.rb +3 -3
  134. data/lib/slack/web/api/endpoints/chat.rb +123 -60
  135. data/lib/slack/web/api/endpoints/conversations.rb +16 -16
  136. data/lib/slack/web/api/endpoints/conversations_canvases.rb +1 -1
  137. data/lib/slack/web/api/endpoints/conversations_externalInvitePermissions.rb +3 -3
  138. data/lib/slack/web/api/endpoints/conversations_requestSharedInvite.rb +8 -8
  139. data/lib/slack/web/api/endpoints/dnd.rb +2 -2
  140. data/lib/slack/web/api/endpoints/entity.rb +32 -0
  141. data/lib/slack/web/api/endpoints/files.rb +12 -12
  142. data/lib/slack/web/api/endpoints/files_remote.rb +2 -2
  143. data/lib/slack/web/api/endpoints/functions.rb +3 -3
  144. data/lib/slack/web/api/endpoints/functions_distributions_permissions.rb +24 -24
  145. data/lib/slack/web/api/endpoints/functions_workflows_steps.rb +4 -4
  146. data/lib/slack/web/api/endpoints/functions_workflows_steps_responses.rb +4 -4
  147. data/lib/slack/web/api/endpoints/migration.rb +1 -1
  148. data/lib/slack/web/api/endpoints/oauth_v2.rb +4 -2
  149. data/lib/slack/web/api/endpoints/openid_connect.rb +2 -2
  150. data/lib/slack/web/api/endpoints/reactions.rb +6 -6
  151. data/lib/slack/web/api/endpoints/reminders.rb +4 -4
  152. data/lib/slack/web/api/endpoints/rtm.rb +23 -0
  153. data/lib/slack/web/api/endpoints/search.rb +8 -8
  154. data/lib/slack/web/api/endpoints/slackLists.rb +52 -0
  155. data/lib/slack/web/api/endpoints/slackLists_access.rb +47 -0
  156. data/lib/slack/web/api/endpoints/slackLists_download.rb +40 -0
  157. data/lib/slack/web/api/endpoints/slackLists_items.rb +116 -0
  158. data/lib/slack/web/api/endpoints/team.rb +3 -3
  159. data/lib/slack/web/api/endpoints/team_externalTeams.rb +8 -8
  160. data/lib/slack/web/api/endpoints/usergroups.rb +18 -18
  161. data/lib/slack/web/api/endpoints/usergroups_users.rb +8 -8
  162. data/lib/slack/web/api/endpoints/users.rb +2 -2
  163. data/lib/slack/web/api/endpoints/users_discoverableContacts.rb +0 -1
  164. data/lib/slack/web/api/endpoints/views.rb +9 -9
  165. data/lib/slack/web/api/endpoints/workflows_featured.rb +69 -0
  166. data/lib/slack/web/api/endpoints/workflows_triggers_permissions.rb +15 -15
  167. data/lib/slack/web/api/endpoints.rb +12 -2
  168. data/lib/slack/web/api/errors.rb +126 -16
  169. data/lib/slack/web/api/helpers/files.rb +4 -1
  170. data/lib/slack/web/faraday/response/raise_error.rb +20 -2
  171. data/lib/slack-ruby-client.rb +0 -12
  172. data/lib/tasks/update.rake +0 -1
  173. data/lib/tasks/web.rake +2 -4
  174. metadata +15 -40
  175. data/.github/workflows/integration_test.yml +0 -45
  176. data/bin/commands/workflows.rb +0 -44
  177. data/examples/hi_real_time_and_web/Gemfile +0 -6
  178. data/examples/hi_real_time_and_web/hi.gif +0 -0
  179. data/examples/hi_real_time_and_web/hi.rb +0 -28
  180. data/examples/hi_real_time_async_async/Gemfile +0 -7
  181. data/examples/hi_real_time_async_async/Procfile +0 -2
  182. data/examples/hi_real_time_async_async/hi.rb +0 -41
  183. data/lib/slack/real_time/api/message.rb +0 -23
  184. data/lib/slack/real_time/api/message_id.rb +0 -15
  185. data/lib/slack/real_time/api/ping.rb +0 -19
  186. data/lib/slack/real_time/api/schema/event.json +0 -23
  187. data/lib/slack/real_time/api/templates/event_handler.erb +0 -8
  188. data/lib/slack/real_time/api/typing.rb +0 -20
  189. data/lib/slack/real_time/client.rb +0 -271
  190. data/lib/slack/real_time/concurrency/async.rb +0 -142
  191. data/lib/slack/real_time/concurrency.rb +0 -8
  192. data/lib/slack/real_time/config.rb +0 -62
  193. data/lib/slack/real_time/models/base.rb +0 -11
  194. data/lib/slack/real_time/models/bot.rb +0 -9
  195. data/lib/slack/real_time/models/channel.rb +0 -13
  196. data/lib/slack/real_time/models/im.rb +0 -9
  197. data/lib/slack/real_time/models/mpim.rb +0 -9
  198. data/lib/slack/real_time/models/team.rb +0 -9
  199. data/lib/slack/real_time/models/user.rb +0 -9
  200. data/lib/slack/real_time/models.rb +0 -9
  201. data/lib/slack/real_time/socket.rb +0 -118
  202. data/lib/slack/real_time/stores/base.rb +0 -47
  203. data/lib/slack/real_time/stores/starter.rb +0 -449
  204. data/lib/slack/real_time/stores/store.rb +0 -624
  205. data/lib/slack/real_time/stores.rb +0 -5
  206. data/lib/slack/web/api/endpoints/workflows.rb +0 -63
  207. data/lib/tasks/real_time.rake +0 -81
@@ -7,16 +7,18 @@ module Slack
7
7
  module Endpoints
8
8
  module AdminFunctions
9
9
  #
10
- # Look up functions by a set of apps
10
+ # Look up functions by a set of apps.
11
11
  #
12
+ # @option options [Object] :team_id
13
+ # The team context to retrieve functions from.
12
14
  # @option options [array] :app_ids
13
15
  # Comma-separated array of app IDs to get functions for; max 50.
16
+ # @option options [boolean] :include_non_distributed_functions
17
+ # Whether to also include functions that are not yet distributed to any users in the function count. This is needed for admins that are approving an app request and will only work if the team owns the app.
14
18
  # @option options [string] :cursor
15
19
  # Set cursor to next_cursor returned by the previous call to list items in the next page.
16
20
  # @option options [integer] :limit
17
21
  # The number of results that will be returned by the API on each invocation. Must be between 1 and 1000, both inclusive.
18
- # @option options [Object] :team_id
19
- # The team context to retrieve functions from.
20
22
  # @see https://api.slack.com/methods/admin.functions.list
21
23
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.functions/admin.functions.list.json
22
24
  def admin_functions_list(options = {})
@@ -19,7 +19,7 @@ module Slack
19
19
  end
20
20
 
21
21
  #
22
- # Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities
22
+ # Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities.
23
23
  #
24
24
  # @option options [string] :function_id
25
25
  # The function ID to set permissions for.
@@ -9,10 +9,10 @@ module Slack
9
9
  #
10
10
  # Approve a workspace invite request.
11
11
  #
12
- # @option options [string] :invite_request_id
13
- # ID of the request to invite.
14
12
  # @option options [string] :team_id
15
13
  # ID for the workspace where the invite request was made.
14
+ # @option options [string] :invite_request_id
15
+ # ID of the request to invite.
16
16
  # @see https://api.slack.com/methods/admin.inviteRequests.approve
17
17
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.inviteRequests/admin.inviteRequests.approve.json
18
18
  def admin_inviteRequests_approve(options = {})
@@ -23,10 +23,10 @@ module Slack
23
23
  #
24
24
  # Deny a workspace invite request.
25
25
  #
26
- # @option options [string] :invite_request_id
27
- # ID of the request to invite.
28
26
  # @option options [string] :team_id
29
27
  # ID for the workspace where the invite request was made.
28
+ # @option options [string] :invite_request_id
29
+ # ID of the request to invite.
30
30
  # @see https://api.slack.com/methods/admin.inviteRequests.deny
31
31
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.inviteRequests/admin.inviteRequests.deny.json
32
32
  def admin_inviteRequests_deny(options = {})
@@ -37,12 +37,12 @@ module Slack
37
37
  #
38
38
  # List all pending workspace invite requests.
39
39
  #
40
+ # @option options [string] :team_id
41
+ # ID for the workspace where the invite requests were made.
40
42
  # @option options [string] :cursor
41
43
  # Value of the next_cursor field sent as part of the previous API response.
42
44
  # @option options [integer] :limit
43
45
  # The number of results that will be returned by the API on each invocation. Must be between 1 - 1000, both inclusive.
44
- # @option options [string] :team_id
45
- # ID for the workspace where the invite requests were made.
46
46
  # @see https://api.slack.com/methods/admin.inviteRequests.list
47
47
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.inviteRequests/admin.inviteRequests.list.json
48
48
  def admin_inviteRequests_list(options = {})
@@ -9,12 +9,12 @@ module Slack
9
9
  #
10
10
  # List all approved workspace invite requests.
11
11
  #
12
+ # @option options [string] :team_id
13
+ # ID for the workspace where the invite requests were made.
12
14
  # @option options [string] :cursor
13
15
  # Value of the next_cursor field sent as part of the previous API response.
14
16
  # @option options [integer] :limit
15
17
  # The number of results that will be returned by the API on each invocation. Must be between 1 - 1000, both inclusive.
16
- # @option options [string] :team_id
17
- # ID for the workspace where the invite requests were made.
18
18
  # @see https://api.slack.com/methods/admin.inviteRequests.approved.list
19
19
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.inviteRequests.approved/admin.inviteRequests.approved.list.json
20
20
  def admin_inviteRequests_approved_list(options = {})
@@ -9,12 +9,12 @@ module Slack
9
9
  #
10
10
  # List all denied workspace invite requests.
11
11
  #
12
+ # @option options [Object] :team_id
13
+ # ID for the workspace where the invite requests were made.
12
14
  # @option options [string] :cursor
13
15
  # Value of the next_cursor field sent as part of the previous api response.
14
16
  # @option options [integer] :limit
15
17
  # The number of results that will be returned by the API on each invocation. Must be between 1 - 1000 both inclusive.
16
- # @option options [Object] :team_id
17
- # ID for the workspace where the invite requests were made.
18
18
  # @see https://api.slack.com/methods/admin.inviteRequests.denied.list
19
19
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.inviteRequests.denied/admin.inviteRequests.denied.list.json
20
20
  def admin_inviteRequests_denied_list(options = {})
@@ -9,17 +9,17 @@ module Slack
9
9
  #
10
10
  # Adds members to the specified role with the specified scopes
11
11
  #
12
- # @option options [array] :entity_ids
13
- # List of the entity IDs for which roles will be assigned. These can be Org IDs, Team IDs or Channel IDs.
14
12
  # @option options [string] :role_id
15
13
  # ID of the role to which users will be assigned.
14
+ # @option options [array] :entity_ids
15
+ # List of the entity IDs for which roles will be assigned. These can be Org IDs, Team IDs or Channel IDs.
16
16
  # @option options [array] :user_ids
17
17
  # List of IDs from the users to be added to the given role.
18
18
  # @see https://api.slack.com/methods/admin.roles.addAssignments
19
19
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.roles/admin.roles.addAssignments.json
20
20
  def admin_roles_addAssignments(options = {})
21
- raise ArgumentError, 'Required arguments :entity_ids missing' if options[:entity_ids].nil?
22
21
  raise ArgumentError, 'Required arguments :role_id missing' if options[:role_id].nil?
22
+ raise ArgumentError, 'Required arguments :entity_ids missing' if options[:entity_ids].nil?
23
23
  raise ArgumentError, 'Required arguments :user_ids missing' if options[:user_ids].nil?
24
24
  post('admin.roles.addAssignments', options)
25
25
  end
@@ -29,12 +29,12 @@ module Slack
29
29
  #
30
30
  # @option options [string] :cursor
31
31
  # Set cursor to next_cursor returned by the previous call to list items in the next page.
32
- # @option options [array] :entity_ids
33
- # The entities for which the roles apply.
34
32
  # @option options [integer] :limit
35
33
  # The maximum number of items to return. Must be between 1 - 200 both inclusive.
36
34
  # @option options [array] :role_ids
37
35
  # collection of role ids to scope results by.
36
+ # @option options [array] :entity_ids
37
+ # The entities for which the roles apply.
38
38
  # @option options [string] :sort_dir
39
39
  # Sort direction. Default is descending on date_create, can be either ASC or DESC.
40
40
  # @see https://api.slack.com/methods/admin.roles.listAssignments
@@ -52,17 +52,17 @@ module Slack
52
52
  #
53
53
  # Removes a set of users from a role for the given scopes and entities
54
54
  #
55
- # @option options [array] :entity_ids
56
- # List of the entity IDs for which roles will be revoked. These can be Org IDs, Team IDs or Channel IDs.
57
55
  # @option options [string] :role_id
58
56
  # ID of the role to which users will be assigned.
57
+ # @option options [array] :entity_ids
58
+ # List of the entity IDs for which roles will be revoked. These can be Org IDs, Team IDs or Channel IDs.
59
59
  # @option options [array] :user_ids
60
60
  # List of IDs of the users whose roles will be revoked.
61
61
  # @see https://api.slack.com/methods/admin.roles.removeAssignments
62
62
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.roles/admin.roles.removeAssignments.json
63
63
  def admin_roles_removeAssignments(options = {})
64
- raise ArgumentError, 'Required arguments :entity_ids missing' if options[:entity_ids].nil?
65
64
  raise ArgumentError, 'Required arguments :role_id missing' if options[:role_id].nil?
65
+ raise ArgumentError, 'Required arguments :entity_ids missing' if options[:entity_ids].nil?
66
66
  raise ArgumentError, 'Required arguments :user_ids missing' if options[:user_ids].nil?
67
67
  post('admin.roles.removeAssignments', options)
68
68
  end
@@ -26,12 +26,12 @@ module Slack
26
26
  end
27
27
 
28
28
  #
29
- # List all teams on an Enterprise organization
29
+ # List all teams in an Enterprise organization
30
30
  #
31
- # @option options [string] :cursor
32
- # Set cursor to next_cursor returned by the previous call to list items in the next page.
33
31
  # @option options [integer] :limit
34
32
  # The maximum number of items to return. Must be a positive integer no larger than 1000.
33
+ # @option options [string] :cursor
34
+ # Set cursor to next_cursor returned by the previous call to list items in the next page.
35
35
  # @see https://api.slack.com/methods/admin.teams.list
36
36
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.teams/admin.teams.list.json
37
37
  def admin_teams_list(options = {})
@@ -9,12 +9,11 @@ module Slack
9
9
  #
10
10
  # List all of the admins on a given workspace.
11
11
  #
12
- # @option options [Object] :team_id
13
- # .
14
- # @option options [string] :cursor
15
- # Set cursor to next_cursor returned by the previous call to list items in the next page.
16
12
  # @option options [integer] :limit
17
13
  # The maximum number of items to return.
14
+ # @option options [string] :cursor
15
+ # Set cursor to next_cursor returned by the previous call to list items in the next page.
16
+ # @option options [Object] :team_id
18
17
  # @see https://api.slack.com/methods/admin.teams.admins.list
19
18
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.teams.admins/admin.teams.admins.list.json
20
19
  def admin_teams_admins_list(options = {})
@@ -10,11 +10,10 @@ module Slack
10
10
  # List all of the owners on a given workspace.
11
11
  #
12
12
  # @option options [Object] :team_id
13
- # .
14
- # @option options [string] :cursor
15
- # Set cursor to next_cursor returned by the previous call to list items in the next page.
16
13
  # @option options [integer] :limit
17
14
  # The maximum number of items to return. Must be between 1 - 1000 both inclusive.
15
+ # @option options [string] :cursor
16
+ # Set cursor to next_cursor returned by the previous call to list items in the next page.
18
17
  # @see https://api.slack.com/methods/admin.teams.owners.list
19
18
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.teams.owners/admin.teams.owners.list.json
20
19
  def admin_teams_owners_list(options = {})
@@ -10,7 +10,6 @@ module Slack
10
10
  # Fetch information about settings in a workspace
11
11
  #
12
12
  # @option options [Object] :team_id
13
- # .
14
13
  # @see https://api.slack.com/methods/admin.teams.settings.info
15
14
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.teams.settings/admin.teams.settings.info.json
16
15
  def admin_teams_settings_info(options = {})
@@ -21,45 +20,45 @@ module Slack
21
20
  #
22
21
  # Set the default channels of a workspace.
23
22
  #
24
- # @option options [array] :channel_ids
25
- # An array of channel IDs.
26
23
  # @option options [Object] :team_id
27
24
  # ID for the workspace to set the default channel for.
25
+ # @option options [array] :channel_ids
26
+ # An array of channel IDs.
28
27
  # @see https://api.slack.com/methods/admin.teams.settings.setDefaultChannels
29
28
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.teams.settings/admin.teams.settings.setDefaultChannels.json
30
29
  def admin_teams_settings_setDefaultChannels(options = {})
31
- raise ArgumentError, 'Required arguments :channel_ids missing' if options[:channel_ids].nil?
32
30
  raise ArgumentError, 'Required arguments :team_id missing' if options[:team_id].nil?
31
+ raise ArgumentError, 'Required arguments :channel_ids missing' if options[:channel_ids].nil?
33
32
  post('admin.teams.settings.setDefaultChannels', options)
34
33
  end
35
34
 
36
35
  #
37
36
  # Set the description of a given workspace.
38
37
  #
39
- # @option options [string] :description
40
- # The new description for the workspace.
41
38
  # @option options [Object] :team_id
42
39
  # ID for the workspace to set the description for.
40
+ # @option options [string] :description
41
+ # The new description for the workspace.
43
42
  # @see https://api.slack.com/methods/admin.teams.settings.setDescription
44
43
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.teams.settings/admin.teams.settings.setDescription.json
45
44
  def admin_teams_settings_setDescription(options = {})
46
- raise ArgumentError, 'Required arguments :description missing' if options[:description].nil?
47
45
  raise ArgumentError, 'Required arguments :team_id missing' if options[:team_id].nil?
46
+ raise ArgumentError, 'Required arguments :description missing' if options[:description].nil?
48
47
  post('admin.teams.settings.setDescription', options)
49
48
  end
50
49
 
51
50
  #
52
51
  # An API method that allows admins to set the discoverability of a given workspace
53
52
  #
54
- # @option options [string] :discoverability
55
- # This workspace's discovery setting. It must be set to one of open, invite_only, closed, or unlisted.
56
53
  # @option options [Object] :team_id
57
54
  # The ID of the workspace to set discoverability on.
55
+ # @option options [string] :discoverability
56
+ # This workspace's discovery setting. It must be set to one of open, invite_only, closed, or unlisted.
58
57
  # @see https://api.slack.com/methods/admin.teams.settings.setDiscoverability
59
58
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.teams.settings/admin.teams.settings.setDiscoverability.json
60
59
  def admin_teams_settings_setDiscoverability(options = {})
61
- raise ArgumentError, 'Required arguments :discoverability missing' if options[:discoverability].nil?
62
60
  raise ArgumentError, 'Required arguments :team_id missing' if options[:team_id].nil?
61
+ raise ArgumentError, 'Required arguments :discoverability missing' if options[:discoverability].nil?
63
62
  post('admin.teams.settings.setDiscoverability', options)
64
63
  end
65
64
 
@@ -81,15 +80,15 @@ module Slack
81
80
  #
82
81
  # Set the name of a given workspace.
83
82
  #
84
- # @option options [string] :name
85
- # The new name of the workspace.
86
83
  # @option options [Object] :team_id
87
84
  # ID for the workspace to set the name for.
85
+ # @option options [string] :name
86
+ # The new name of the workspace.
88
87
  # @see https://api.slack.com/methods/admin.teams.settings.setName
89
88
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.teams.settings/admin.teams.settings.setName.json
90
89
  def admin_teams_settings_setName(options = {})
91
- raise ArgumentError, 'Required arguments :name missing' if options[:name].nil?
92
90
  raise ArgumentError, 'Required arguments :team_id missing' if options[:team_id].nil?
91
+ raise ArgumentError, 'Required arguments :name missing' if options[:name].nil?
93
92
  post('admin.teams.settings.setName', options)
94
93
  end
95
94
  end
@@ -9,34 +9,34 @@ module Slack
9
9
  #
10
10
  # Add up to one hundred default channels to an IDP group.
11
11
  #
12
- # @option options [array] :channel_ids
13
- # Comma separated string of channel IDs.
14
12
  # @option options [string] :usergroup_id
15
13
  # ID of the IDP group to add default channels for.
16
14
  # @option options [string] :team_id
17
15
  # The workspace to add default channels in.
16
+ # @option options [array] :channel_ids
17
+ # Comma separated string of channel IDs.
18
18
  # @see https://api.slack.com/methods/admin.usergroups.addChannels
19
19
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.usergroups/admin.usergroups.addChannels.json
20
20
  def admin_usergroups_addChannels(options = {})
21
- raise ArgumentError, 'Required arguments :channel_ids missing' if options[:channel_ids].nil?
22
21
  raise ArgumentError, 'Required arguments :usergroup_id missing' if options[:usergroup_id].nil?
22
+ raise ArgumentError, 'Required arguments :channel_ids missing' if options[:channel_ids].nil?
23
23
  post('admin.usergroups.addChannels', options)
24
24
  end
25
25
 
26
26
  #
27
27
  # Associate one or more default workspaces with an organization-wide IDP group.
28
28
  #
29
- # @option options [array] :team_ids
30
- # A comma separated list of encoded team (workspace) IDs. Each workspace MUST belong to the organization associated with the token.
31
29
  # @option options [string] :usergroup_id
32
30
  # An encoded usergroup (IDP Group) ID.
31
+ # @option options [array] :team_ids
32
+ # A comma separated list of encoded team (workspace) IDs. Each workspace MUST belong to the organization associated with the token.
33
33
  # @option options [boolean] :auto_provision
34
34
  # When true, this method automatically creates new workspace accounts for the IDP group members.
35
35
  # @see https://api.slack.com/methods/admin.usergroups.addTeams
36
36
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.usergroups/admin.usergroups.addTeams.json
37
37
  def admin_usergroups_addTeams(options = {})
38
- raise ArgumentError, 'Required arguments :team_ids missing' if options[:team_ids].nil?
39
38
  raise ArgumentError, 'Required arguments :usergroup_id missing' if options[:usergroup_id].nil?
39
+ raise ArgumentError, 'Required arguments :team_ids missing' if options[:team_ids].nil?
40
40
  post('admin.usergroups.addTeams', options)
41
41
  end
42
42
 
@@ -45,10 +45,10 @@ module Slack
45
45
  #
46
46
  # @option options [Object] :usergroup_id
47
47
  # ID of the IDP group to list default channels for.
48
- # @option options [boolean] :include_num_members
49
- # Flag to include or exclude the count of members per channel.
50
48
  # @option options [string] :team_id
51
49
  # ID of the the workspace.
50
+ # @option options [boolean] :include_num_members
51
+ # Flag to include or exclude the count of members per channel.
52
52
  # @see https://api.slack.com/methods/admin.usergroups.listChannels
53
53
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.usergroups/admin.usergroups.listChannels.json
54
54
  def admin_usergroups_listChannels(options = {})
@@ -59,15 +59,15 @@ module Slack
59
59
  #
60
60
  # Remove one or more default channels from an org-level IDP group (user group).
61
61
  #
62
- # @option options [array] :channel_ids
63
- # Comma-separated string of channel IDs.
64
62
  # @option options [string] :usergroup_id
65
63
  # ID of the IDP Group.
64
+ # @option options [array] :channel_ids
65
+ # Comma-separated string of channel IDs.
66
66
  # @see https://api.slack.com/methods/admin.usergroups.removeChannels
67
67
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.usergroups/admin.usergroups.removeChannels.json
68
68
  def admin_usergroups_removeChannels(options = {})
69
- raise ArgumentError, 'Required arguments :channel_ids missing' if options[:channel_ids].nil?
70
69
  raise ArgumentError, 'Required arguments :usergroup_id missing' if options[:usergroup_id].nil?
70
+ raise ArgumentError, 'Required arguments :channel_ids missing' if options[:channel_ids].nil?
71
71
  post('admin.usergroups.removeChannels', options)
72
72
  end
73
73
  end
@@ -13,12 +13,12 @@ module Slack
13
13
  # The ID (T1234) of the workspace.
14
14
  # @option options [Object] :user_id
15
15
  # The ID of the user to add to the workspace.
16
- # @option options [string] :channel_ids
17
- # Comma separated values of channel IDs to add user in the new workspace.
18
16
  # @option options [boolean] :is_restricted
19
17
  # True if user should be added to the workspace as a guest.
20
18
  # @option options [boolean] :is_ultra_restricted
21
19
  # True if user should be added to the workspace as a single-channel guest.
20
+ # @option options [string] :channel_ids
21
+ # Comma separated values of channel IDs to add user in the new workspace.
22
22
  # @see https://api.slack.com/methods/admin.users.assign
23
23
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.users/admin.users.assign.json
24
24
  def admin_users_assign(options = {})
@@ -27,51 +27,66 @@ module Slack
27
27
  post('admin.users.assign', options)
28
28
  end
29
29
 
30
+ #
31
+ # Fetches the expiration timestamp for a guest
32
+ #
33
+ # @option options [Object] :user_id
34
+ # The ID of the guest user to get the expiration for.
35
+ # @option options [Object] :target_team
36
+ # If an org token is passed in and this team is on the org, it will operate on the workspace level on the specified team. Otherwise it will operate on the org or team in context.
37
+ # @see https://api.slack.com/methods/admin.users.getExpiration
38
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.users/admin.users.getExpiration.json
39
+ def admin_users_getExpiration(options = {})
40
+ post('admin.users.getExpiration', options)
41
+ end
42
+
30
43
  #
31
44
  # Invite a user to a workspace.
32
45
  #
33
- # @option options [string] :channel_ids
34
- # A comma-separated list of channel_ids for this user to join. At least one channel is required.
35
- # @option options [string] :email
36
- # The email address of the person to invite.
37
46
  # @option options [Object] :team_id
38
47
  # The ID (T1234) of the workspace.
48
+ # @option options [string] :email
49
+ # The email address of the person to invite.
50
+ # @option options [string] :channel_ids
51
+ # A comma-separated list of channel_ids for this user to join. At least one channel is required.
39
52
  # @option options [string] :custom_message
40
53
  # An optional message to send to the user in the invite email.
41
- # @option options [boolean] :email_password_policy_enabled
42
- # Allow invited user to sign in via email and password. Only available for Enterprise Grid teams via admin invite.
43
- # @option options [string] :guest_expiration_ts
44
- # Timestamp when guest account should be disabled. Only include this timestamp if you are inviting a guest user and you want their account to expire on a certain date.
45
- # @option options [boolean] :is_restricted
46
- # Is this user a multi-channel guest user? (default: false).
47
- # @option options [boolean] :is_ultra_restricted
48
- # Is this user a single channel guest user? (default: false).
49
54
  # @option options [string] :real_name
50
55
  # Full name of the user.
51
56
  # @option options [boolean] :resend
52
57
  # Allow this invite to be resent in the future if a user has not signed up yet. Resending can only be done via the UI and has no expiration. (default: false).
58
+ # @option options [boolean] :is_restricted
59
+ # Is this user a multi-channel guest user? (default: false).
60
+ # @option options [boolean] :is_ultra_restricted
61
+ # Is this user a single channel guest user? (default: false).
62
+ # @option options [string] :guest_expiration_ts
63
+ # Timestamp when guest account should be disabled. Only include this timestamp if you are inviting a guest user and you want their account to expire on a certain date.
64
+ # @option options [boolean] :email_password_policy_enabled
65
+ # Allow invited user to sign in via email and password. Only available for Enterprise org teams via admin invite.
53
66
  # @see https://api.slack.com/methods/admin.users.invite
54
67
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.users/admin.users.invite.json
55
68
  def admin_users_invite(options = {})
56
- raise ArgumentError, 'Required arguments :channel_ids missing' if options[:channel_ids].nil?
57
- raise ArgumentError, 'Required arguments :email missing' if options[:email].nil?
58
69
  raise ArgumentError, 'Required arguments :team_id missing' if options[:team_id].nil?
70
+ raise ArgumentError, 'Required arguments :email missing' if options[:email].nil?
71
+ raise ArgumentError, 'Required arguments :channel_ids missing' if options[:channel_ids].nil?
59
72
  post('admin.users.invite', options)
60
73
  end
61
74
 
62
75
  #
63
76
  # List users on a workspace
64
77
  #
78
+ # @option options [Object] :team_id
79
+ # The ID (T1234) of a workspace. Filters results to just the specified workspace.
65
80
  # @option options [string] :cursor
66
81
  # Set cursor to next_cursor returned by the previous call to list items in the next page.
67
- # @option options [boolean] :include_deactivated_user_workspaces
68
- # Only applies with org token and no team_id. If true, return workspaces for a user even if they may be deactivated on them. If false, return workspaces for a user only when user is active on them. Default is false.
69
82
  # @option options [boolean] :is_active
70
83
  # If true, only active users will be returned. If false, only deactivated users will be returned. Default is true.
84
+ # @option options [boolean] :include_deactivated_user_workspaces
85
+ # Only applies with org token and no team_id. If true, return workspaces for a user even if they may be deactivated on them. If false, return workspaces for a user only when user is active on them. Default is false.
86
+ # @option options [boolean] :only_guests
87
+ # If true, returns only guests and their expiration dates that belong to the team_id.
71
88
  # @option options [integer] :limit
72
89
  # Limit for how many users to be retrieved per page.
73
- # @option options [Object] :team_id
74
- # The ID (T1234) of a workspace. Filters results to just the specified workspace.
75
90
  # @see https://api.slack.com/methods/admin.users.list
76
91
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.users/admin.users.list.json
77
92
  def admin_users_list(options = {})
@@ -117,17 +132,17 @@ module Slack
117
132
  #
118
133
  # Set an expiration for a guest user
119
134
  #
120
- # @option options [integer] :expiration_ts
121
- # Epoch timestamp in seconds when guest account should be disabled.
122
- # @option options [string] :user_id
123
- # The ID of the user to set an expiration for.
124
135
  # @option options [Object] :team_id
125
136
  # The ID (T1234) of the workspace.
137
+ # @option options [string] :user_id
138
+ # The ID of the user to set an expiration for.
139
+ # @option options [integer] :expiration_ts
140
+ # Epoch timestamp in seconds when guest account should be disabled.
126
141
  # @see https://api.slack.com/methods/admin.users.setExpiration
127
142
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.users/admin.users.setExpiration.json
128
143
  def admin_users_setExpiration(options = {})
129
- raise ArgumentError, 'Required arguments :expiration_ts missing' if options[:expiration_ts].nil?
130
144
  raise ArgumentError, 'Required arguments :user_id missing' if options[:user_id].nil?
145
+ raise ArgumentError, 'Required arguments :expiration_ts missing' if options[:expiration_ts].nil?
131
146
  post('admin.users.setExpiration', options)
132
147
  end
133
148
 
@@ -33,13 +33,16 @@ module Slack
33
33
  #
34
34
  # Revoke a single session for a user. The user will be forced to login to Slack.
35
35
  #
36
- # @option options [integer] :session_id
37
- # ID of the session to invalidate.
36
+ # @option options [Object] :team_id
37
+ # ID of the workspace that the session belongs to.
38
38
  # @option options [Object] :user_id
39
39
  # ID of the user that the session belongs to.
40
+ # @option options [integer] :session_id
41
+ # ID of the session to invalidate.
40
42
  # @see https://api.slack.com/methods/admin.users.session.invalidate
41
43
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.users.session/admin.users.session.invalidate.json
42
44
  def admin_users_session_invalidate(options = {})
45
+ raise ArgumentError, 'Required arguments :user_id missing' if options[:user_id].nil?
43
46
  raise ArgumentError, 'Required arguments :session_id missing' if options[:session_id].nil?
44
47
  post('admin.users.session.invalidate', options)
45
48
  end
@@ -47,14 +50,14 @@ module Slack
47
50
  #
48
51
  # List active user sessions for an organization
49
52
  #
50
- # @option options [string] :cursor
51
- # Set cursor to next_cursor returned by the previous call to list items in the next page.
52
- # @option options [integer] :limit
53
- # The maximum number of items to return. Must be between 1 - 1000 both inclusive.
54
53
  # @option options [string] :team_id
55
54
  # The ID of the workspace you'd like active sessions for. If you pass a team_id, you'll need to pass a user_id as well.
56
55
  # @option options [string] :user_id
57
56
  # The ID of user you'd like active sessions for. If you pass a user_id, you'll need to pass a team_id as well.
57
+ # @option options [integer] :limit
58
+ # The maximum number of items to return. Must be between 1 - 1000 both inclusive.
59
+ # @option options [string] :cursor
60
+ # Set cursor to next_cursor returned by the previous call to list items in the next page.
58
61
  # @see https://api.slack.com/methods/admin.users.session.list
59
62
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.users.session/admin.users.session.list.json
60
63
  def admin_users_session_list(options = {})
@@ -87,7 +90,7 @@ module Slack
87
90
  # Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users
88
91
  #
89
92
  # @option options [array] :user_ids
90
- # The ID of the user to wipe sessions for.
93
+ # The list of up to 1,000 user IDs to wipe sessions for.
91
94
  # @option options [boolean] :mobile_only
92
95
  # Only expire mobile sessions (default: false).
93
96
  # @option options [boolean] :web_only
@@ -104,10 +107,10 @@ module Slack
104
107
  #
105
108
  # @option options [array] :user_ids
106
109
  # The list of up to 1,000 user IDs to apply the session settings for.
107
- # @option options [boolean] :desktop_app_browser_quit
108
- # Terminate the session when the client—either the desktop app or a browser window—is closed.
109
110
  # @option options [integer] :duration
110
111
  # The session duration, in seconds. The minimum value is 28800, which represents 8 hours; the max value is 315569520 or 10 years (that's a long Slack session).
112
+ # @option options [boolean] :desktop_app_browser_quit
113
+ # Terminate the session when the client—either the desktop app or a browser window—is closed.
111
114
  # @see https://api.slack.com/methods/admin.users.session.setSettings
112
115
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.users.session/admin.users.session.setSettings.json
113
116
  def admin_users_session_setSettings(options = {})
@@ -9,10 +9,10 @@ module Slack
9
9
  #
10
10
  # Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file.
11
11
  #
12
- # @option options [integer] :date_end_of_support
13
- # Unix timestamp of the date of past or upcoming end of support cycles. If not provided will include all announced end of support cycles.
14
12
  # @option options [integer] :date_sessions_started
15
13
  # Unix timestamp of a date to start looking for user sessions. If not provided will start six months ago.
14
+ # @option options [integer] :date_end_of_support
15
+ # Unix timestamp of the date of past or upcoming end of support cycles. If not provided will include all announced end of support cycles.
16
16
  # @see https://api.slack.com/methods/admin.users.unsupportedVersions.export
17
17
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.users.unsupportedVersions/admin.users.unsupportedVersions.export.json
18
18
  def admin_users_unsupportedVersions_export(options = {})
@@ -9,34 +9,34 @@ module Slack
9
9
  #
10
10
  # Search workflows within the team or enterprise
11
11
  #
12
+ # @option options [string] :query
13
+ # A search query to filter for workflow name or description.
12
14
  # @option options [Object] :app_id
13
15
  # The parent app ID for which to return workflows.
14
- # @option options [array] :collaborator_ids
15
- # Only include workflows where all of the provided user IDs are a manager/collaborator of that workflow.
16
16
  # @option options [string] :cursor
17
17
  # Set cursor to next_cursor returned by the previous call to list items in the next page.
18
- # @option options [boolean] :is_sales_elevate
19
- # Filter workflows by their Sales Elevate status.
20
18
  # @option options [integer] :limit
21
19
  # The number of results that will be returned by the API on each invocation.
22
20
  # @option options [boolean] :no_collaborators
23
21
  # Only include workflows with no collaborators in the result; default is false.
22
+ # @option options [array] :collaborator_ids
23
+ # Only include workflows where all of the provided user IDs are a manager/collaborator of that workflow.
24
24
  # @option options [integer] :num_trigger_ids
25
25
  # Number of trigger IDs to fetch for each workflow; default is 10.
26
- # @option options [enum] :publish_status
27
- # Filter workflows by their published status.
28
- # @option options [string] :query
29
- # A search query to filter for workflow name or description.
26
+ # @option options [boolean] :is_sales_elevate
27
+ # Filter workflows by their Sales Elevate status.
28
+ # @option options [enum] :source
29
+ # Source of workflow creation, either from code or workflow builder.
30
30
  # @option options [enum] :sort
31
31
  # The field used to sort the returned workflows.
32
32
  # @option options [enum] :sort_dir
33
33
  # Sort direction. Possible values are asc for ascending order like (1, 2, 3) or (a, b, c), and desc for descending order like (3, 2, 1) or (c, b, a).
34
- # @option options [enum] :source
35
- # Source of workflow creation, either from code or workflow builder.
36
- # @option options [array] :step_function_ids
37
- # Only include workflows that use all of the provided step function ids.
38
34
  # @option options [string] :trigger_type_id
39
35
  # Only include workflows with this trigger type.
36
+ # @option options [enum] :publish_status
37
+ # Filter workflows by their published status.
38
+ # @option options [array] :step_function_ids
39
+ # Only include workflows that use all of the provided step function ids.
40
40
  # @see https://api.slack.com/methods/admin.workflows.search
41
41
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.workflows/admin.workflows.search.json
42
42
  def admin_workflows_search(options = {})