slack-ruby-client 2.7.0 → 3.0.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 (198) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +3 -10
  3. data/.rubocop_todo.yml +45 -67
  4. data/CHANGELOG.md +7 -0
  5. data/Gemfile +0 -9
  6. data/LICENSE.md +1 -1
  7. data/README.md +16 -219
  8. data/Rakefile +0 -1
  9. data/UPGRADING.md +4 -0
  10. data/bin/commands/admin_analytics.rb +1 -1
  11. data/bin/commands/admin_apps.rb +4 -4
  12. data/bin/commands/admin_apps_activities.rb +7 -7
  13. data/bin/commands/admin_apps_approved.rb +4 -4
  14. data/bin/commands/admin_apps_config.rb +3 -1
  15. data/bin/commands/admin_apps_requests.rb +5 -5
  16. data/bin/commands/admin_apps_restricted.rb +4 -4
  17. data/bin/commands/admin_audit_anomaly_allow.rb +6 -6
  18. data/bin/commands/admin_auth_policy.rb +5 -5
  19. data/bin/commands/admin_barriers.rb +3 -3
  20. data/bin/commands/admin_conversations.rb +15 -15
  21. data/bin/commands/admin_conversations_ekm.rb +2 -2
  22. data/bin/commands/admin_conversations_restrictAccess.rb +5 -5
  23. data/bin/commands/admin_emoji.rb +5 -5
  24. data/bin/commands/admin_functions.rb +1 -1
  25. data/bin/commands/admin_inviteRequests.rb +3 -3
  26. data/bin/commands/admin_inviteRequests_approved.rb +1 -1
  27. data/bin/commands/admin_inviteRequests_denied.rb +1 -1
  28. data/bin/commands/admin_roles.rb +3 -3
  29. data/bin/commands/admin_teams.rb +3 -3
  30. data/bin/commands/admin_teams_admins.rb +2 -2
  31. data/bin/commands/admin_teams_owners.rb +2 -2
  32. data/bin/commands/admin_teams_settings.rb +5 -5
  33. data/bin/commands/admin_usergroups.rb +4 -4
  34. data/bin/commands/admin_users.rb +12 -11
  35. data/bin/commands/admin_users_session.rb +6 -5
  36. data/bin/commands/admin_users_unsupportedVersions.rb +1 -1
  37. data/bin/commands/admin_workflows.rb +6 -6
  38. data/bin/commands/admin_workflows_collaborators.rb +2 -2
  39. data/bin/commands/apps_activities.rb +7 -7
  40. data/bin/commands/apps_auth_external.rb +1 -1
  41. data/bin/commands/apps_datastore.rb +12 -12
  42. data/bin/commands/apps_event_authorizations.rb +3 -3
  43. data/bin/commands/apps_manifest.rb +1 -1
  44. data/bin/commands/assistant_search.rb +18 -2
  45. data/bin/commands/assistant_threads.rb +2 -2
  46. data/bin/commands/auth.rb +1 -1
  47. data/bin/commands/auth_teams.rb +1 -1
  48. data/bin/commands/bookmarks.rb +6 -6
  49. data/bin/commands/calls.rb +5 -5
  50. data/bin/commands/canvases.rb +2 -2
  51. data/bin/commands/canvases_access.rb +1 -1
  52. data/bin/commands/chat.rb +23 -24
  53. data/bin/commands/conversations.rb +8 -8
  54. data/bin/commands/conversations_canvases.rb +1 -1
  55. data/bin/commands/conversations_externalInvitePermissions.rb +1 -1
  56. data/bin/commands/conversations_requestSharedInvite.rb +4 -4
  57. data/bin/commands/dnd.rb +1 -1
  58. data/bin/commands/files.rb +5 -5
  59. data/bin/commands/files_remote.rb +1 -1
  60. data/bin/commands/functions.rb +1 -1
  61. data/bin/commands/functions_distributions_permissions.rb +15 -15
  62. data/bin/commands/functions_workflows_steps.rb +2 -2
  63. data/bin/commands/functions_workflows_steps_responses.rb +2 -2
  64. data/bin/commands/migration.rb +2 -2
  65. data/bin/commands/oauth_v2.rb +1 -1
  66. data/bin/commands/openid_connect.rb +1 -1
  67. data/bin/commands/reactions.rb +3 -3
  68. data/bin/commands/reminders.rb +2 -2
  69. data/bin/commands/rtm.rb +15 -0
  70. data/bin/commands/search.rb +4 -4
  71. data/bin/commands/slackLists.rb +37 -0
  72. data/bin/commands/slackLists_access.rb +34 -0
  73. data/bin/commands/slackLists_download.rb +31 -0
  74. data/bin/commands/slackLists_items.rb +76 -0
  75. data/bin/commands/team.rb +1 -1
  76. data/bin/commands/team_externalTeams.rb +4 -4
  77. data/bin/commands/usergroups.rb +10 -10
  78. data/bin/commands/usergroups_users.rb +5 -5
  79. data/bin/commands/users.rb +1 -1
  80. data/bin/commands/users_discoverableContacts.rb +1 -1
  81. data/bin/commands/views.rb +4 -4
  82. data/bin/commands/workflows_featured.rb +50 -0
  83. data/bin/commands/workflows_triggers_permissions.rb +7 -7
  84. data/lib/slack/version.rb +1 -1
  85. data/lib/slack/web/api/endpoints/admin_analytics.rb +2 -2
  86. data/lib/slack/web/api/endpoints/admin_apps.rb +8 -8
  87. data/lib/slack/web/api/endpoints/admin_apps_activities.rb +14 -14
  88. data/lib/slack/web/api/endpoints/admin_apps_approved.rb +5 -7
  89. data/lib/slack/web/api/endpoints/admin_apps_config.rb +6 -3
  90. data/lib/slack/web/api/endpoints/admin_apps_requests.rb +7 -9
  91. data/lib/slack/web/api/endpoints/admin_apps_restricted.rb +5 -7
  92. data/lib/slack/web/api/endpoints/admin_audit_anomaly_allow.rb +5 -5
  93. data/lib/slack/web/api/endpoints/admin_auth_policy.rb +14 -14
  94. data/lib/slack/web/api/endpoints/admin_barriers.rb +8 -8
  95. data/lib/slack/web/api/endpoints/admin_conversations.rb +27 -28
  96. data/lib/slack/web/api/endpoints/admin_conversations_ekm.rb +4 -4
  97. data/lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb +11 -12
  98. data/lib/slack/web/api/endpoints/admin_emoji.rb +5 -5
  99. data/lib/slack/web/api/endpoints/admin_functions.rb +2 -2
  100. data/lib/slack/web/api/endpoints/admin_inviteRequests.rb +6 -6
  101. data/lib/slack/web/api/endpoints/admin_inviteRequests_approved.rb +2 -2
  102. data/lib/slack/web/api/endpoints/admin_inviteRequests_denied.rb +2 -2
  103. data/lib/slack/web/api/endpoints/admin_roles.rb +8 -8
  104. data/lib/slack/web/api/endpoints/admin_teams.rb +3 -3
  105. data/lib/slack/web/api/endpoints/admin_teams_admins.rb +3 -4
  106. data/lib/slack/web/api/endpoints/admin_teams_owners.rb +2 -3
  107. data/lib/slack/web/api/endpoints/admin_teams_settings.rb +12 -13
  108. data/lib/slack/web/api/endpoints/admin_usergroups.rb +11 -11
  109. data/lib/slack/web/api/endpoints/admin_users.rb +27 -25
  110. data/lib/slack/web/api/endpoints/admin_users_session.rb +12 -9
  111. data/lib/slack/web/api/endpoints/admin_users_unsupportedVersions.rb +2 -2
  112. data/lib/slack/web/api/endpoints/admin_workflows.rb +12 -12
  113. data/lib/slack/web/api/endpoints/admin_workflows_collaborators.rb +6 -6
  114. data/lib/slack/web/api/endpoints/apps_activities.rb +14 -14
  115. data/lib/slack/web/api/endpoints/apps_auth_external.rb +2 -2
  116. data/lib/slack/web/api/endpoints/apps_datastore.rb +8 -15
  117. data/lib/slack/web/api/endpoints/apps_event_authorizations.rb +0 -3
  118. data/lib/slack/web/api/endpoints/apps_manifest.rb +5 -5
  119. data/lib/slack/web/api/endpoints/assistant_search.rb +28 -3
  120. data/lib/slack/web/api/endpoints/assistant_threads.rb +6 -6
  121. data/lib/slack/web/api/endpoints/auth.rb +1 -1
  122. data/lib/slack/web/api/endpoints/auth_teams.rb +2 -2
  123. data/lib/slack/web/api/endpoints/bookmarks.rb +14 -14
  124. data/lib/slack/web/api/endpoints/calls.rb +10 -10
  125. data/lib/slack/web/api/endpoints/canvases.rb +4 -4
  126. data/lib/slack/web/api/endpoints/canvases_access.rb +3 -3
  127. data/lib/slack/web/api/endpoints/chat.rb +53 -55
  128. data/lib/slack/web/api/endpoints/conversations.rb +16 -16
  129. data/lib/slack/web/api/endpoints/conversations_canvases.rb +1 -1
  130. data/lib/slack/web/api/endpoints/conversations_externalInvitePermissions.rb +3 -3
  131. data/lib/slack/web/api/endpoints/conversations_requestSharedInvite.rb +8 -8
  132. data/lib/slack/web/api/endpoints/dnd.rb +2 -2
  133. data/lib/slack/web/api/endpoints/files.rb +11 -11
  134. data/lib/slack/web/api/endpoints/files_remote.rb +2 -2
  135. data/lib/slack/web/api/endpoints/functions.rb +3 -3
  136. data/lib/slack/web/api/endpoints/functions_distributions_permissions.rb +24 -24
  137. data/lib/slack/web/api/endpoints/functions_workflows_steps.rb +4 -4
  138. data/lib/slack/web/api/endpoints/functions_workflows_steps_responses.rb +4 -4
  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/openid_connect.rb +2 -2
  142. data/lib/slack/web/api/endpoints/reactions.rb +6 -6
  143. data/lib/slack/web/api/endpoints/reminders.rb +4 -4
  144. data/lib/slack/web/api/endpoints/rtm.rb +23 -0
  145. data/lib/slack/web/api/endpoints/search.rb +8 -8
  146. data/lib/slack/web/api/endpoints/slackLists.rb +52 -0
  147. data/lib/slack/web/api/endpoints/slackLists_access.rb +47 -0
  148. data/lib/slack/web/api/endpoints/slackLists_download.rb +40 -0
  149. data/lib/slack/web/api/endpoints/slackLists_items.rb +116 -0
  150. data/lib/slack/web/api/endpoints/team.rb +3 -3
  151. data/lib/slack/web/api/endpoints/team_externalTeams.rb +8 -8
  152. data/lib/slack/web/api/endpoints/usergroups.rb +18 -18
  153. data/lib/slack/web/api/endpoints/usergroups_users.rb +8 -8
  154. data/lib/slack/web/api/endpoints/users.rb +2 -2
  155. data/lib/slack/web/api/endpoints/users_discoverableContacts.rb +0 -1
  156. data/lib/slack/web/api/endpoints/views.rb +9 -9
  157. data/lib/slack/web/api/endpoints/workflows_featured.rb +69 -0
  158. data/lib/slack/web/api/endpoints/workflows_triggers_permissions.rb +15 -15
  159. data/lib/slack/web/api/endpoints.rb +10 -2
  160. data/lib/slack/web/api/errors.rb +88 -46
  161. data/lib/slack/web/faraday/response/raise_error.rb +20 -2
  162. data/lib/slack-ruby-client.rb +0 -12
  163. data/lib/tasks/update.rake +0 -1
  164. data/lib/tasks/web.rake +0 -4
  165. metadata +12 -35
  166. data/.github/workflows/integration_test.yml +0 -45
  167. data/bin/commands/workflows.rb +0 -44
  168. data/examples/hi_real_time_and_web/Gemfile +0 -6
  169. data/examples/hi_real_time_and_web/hi.gif +0 -0
  170. data/examples/hi_real_time_and_web/hi.rb +0 -28
  171. data/examples/hi_real_time_async_async/Gemfile +0 -7
  172. data/examples/hi_real_time_async_async/Procfile +0 -2
  173. data/examples/hi_real_time_async_async/hi.rb +0 -41
  174. data/lib/slack/real_time/api/message.rb +0 -23
  175. data/lib/slack/real_time/api/message_id.rb +0 -15
  176. data/lib/slack/real_time/api/ping.rb +0 -19
  177. data/lib/slack/real_time/api/schema/event.json +0 -23
  178. data/lib/slack/real_time/api/templates/event_handler.erb +0 -8
  179. data/lib/slack/real_time/api/typing.rb +0 -20
  180. data/lib/slack/real_time/client.rb +0 -271
  181. data/lib/slack/real_time/concurrency/async.rb +0 -142
  182. data/lib/slack/real_time/concurrency.rb +0 -8
  183. data/lib/slack/real_time/config.rb +0 -62
  184. data/lib/slack/real_time/models/base.rb +0 -11
  185. data/lib/slack/real_time/models/bot.rb +0 -9
  186. data/lib/slack/real_time/models/channel.rb +0 -13
  187. data/lib/slack/real_time/models/im.rb +0 -9
  188. data/lib/slack/real_time/models/mpim.rb +0 -9
  189. data/lib/slack/real_time/models/team.rb +0 -9
  190. data/lib/slack/real_time/models/user.rb +0 -9
  191. data/lib/slack/real_time/models.rb +0 -9
  192. data/lib/slack/real_time/socket.rb +0 -118
  193. data/lib/slack/real_time/stores/base.rb +0 -47
  194. data/lib/slack/real_time/stores/starter.rb +0 -449
  195. data/lib/slack/real_time/stores/store.rb +0 -624
  196. data/lib/slack/real_time/stores.rb +0 -5
  197. data/lib/slack/web/api/endpoints/workflows.rb +0 -63
  198. data/lib/tasks/real_time.rake +0 -81
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+ # This file was auto-generated by lib/tasks/web.rake
3
+
4
+ module Slack
5
+ module Cli
6
+ class App
7
+ desc 'SlackLists methods.'
8
+ command 'slackLists' do |g|
9
+ g.desc 'Create a List.'
10
+ g.long_desc %( Create a List. )
11
+ g.command 'create' do |c|
12
+ c.flag 'name', desc: 'Name of the List.'
13
+ c.flag 'description_blocks', desc: 'A rich text description of the List.'
14
+ c.flag 'schema', desc: 'Column definition for the List.'
15
+ c.flag 'copy_from_list_id', desc: 'ID of the List to copy.'
16
+ c.flag 'include_copied_list_records', desc: 'Boolean indicating whether to include records when a List is copied.'
17
+ c.flag 'todo_mode', desc: 'Boolean indicating whether the List should be used to track todo tasks.'
18
+ c.action do |_global_options, options, _args|
19
+ puts JSON.dump(@client.slackLists_create(options))
20
+ end
21
+ end
22
+
23
+ g.desc 'Update a List.'
24
+ g.long_desc %( Update a List. )
25
+ g.command 'update' do |c|
26
+ c.flag 'id', desc: 'The ID of the List to update.'
27
+ c.flag 'name', desc: 'The updated name of the List.'
28
+ c.flag 'description_blocks', desc: 'A rich text description of the List.'
29
+ c.flag 'todo_mode', desc: 'Boolean indicating whether the List should be in todo mode.'
30
+ c.action do |_global_options, options, _args|
31
+ puts JSON.dump(@client.slackLists_update(options))
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+ # This file was auto-generated by lib/tasks/web.rake
3
+
4
+ module Slack
5
+ module Cli
6
+ class App
7
+ desc 'SlackListsAccess methods.'
8
+ command 'slackLists_access' do |g|
9
+ g.desc 'Revoke access to a List for specified entities.'
10
+ g.long_desc %( Revoke access to a List for specified entities. )
11
+ g.command 'delete' do |c|
12
+ c.flag 'list_id', desc: 'Encoded ID of the List.'
13
+ c.flag 'channel_ids', desc: 'List of channels you wish to update access for. Can only be used if user_ids is not provided.'
14
+ c.flag 'user_ids', desc: 'List of users you wish to update access for. Can only be used if channel_ids is not provided.'
15
+ c.action do |_global_options, options, _args|
16
+ puts JSON.dump(@client.slackLists_access_delete(options))
17
+ end
18
+ end
19
+
20
+ g.desc 'Set the access level to a List for specified entities.'
21
+ g.long_desc %( Set the access level to a List for specified entities. )
22
+ g.command 'set' do |c|
23
+ c.flag 'list_id', desc: 'Encoded ID of the List.'
24
+ c.flag 'access_level', desc: 'Desired level of access.'
25
+ c.flag 'channel_ids', desc: 'List of channels you wish to update access for. Can only be used if user_ids is not provided.'
26
+ c.flag 'user_ids', desc: 'List of users you wish to update access for. Can only be used if channel_ids is not provided.'
27
+ c.action do |_global_options, options, _args|
28
+ puts JSON.dump(@client.slackLists_access_set(options))
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+ # This file was auto-generated by lib/tasks/web.rake
3
+
4
+ module Slack
5
+ module Cli
6
+ class App
7
+ desc 'SlackListsDownload methods.'
8
+ command 'slackLists_download' do |g|
9
+ g.desc 'Retrieve List download URL from an export job to download List contents.'
10
+ g.long_desc %( Retrieve List download URL from an export job to download List contents. )
11
+ g.command 'get' do |c|
12
+ c.flag 'list_id', desc: 'ID of the List to export.'
13
+ c.flag 'job_id', desc: 'The ID of the recently started job to export the List.'
14
+ c.action do |_global_options, options, _args|
15
+ puts JSON.dump(@client.slackLists_download_get(options))
16
+ end
17
+ end
18
+
19
+ g.desc 'Initiate a job to export List contents.'
20
+ g.long_desc %( Initiate a job to export List contents. )
21
+ g.command 'start' do |c|
22
+ c.flag 'list_id', desc: 'ID of the List to export.'
23
+ c.flag 'include_archived', desc: ''
24
+ c.action do |_global_options, options, _args|
25
+ puts JSON.dump(@client.slackLists_download_start(options))
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,76 @@
1
+ # frozen_string_literal: true
2
+ # This file was auto-generated by lib/tasks/web.rake
3
+
4
+ module Slack
5
+ module Cli
6
+ class App
7
+ desc 'SlackListsItems methods.'
8
+ command 'slackLists_items' do |g|
9
+ g.desc 'Add a new item to an existing List.'
10
+ g.long_desc %( Add a new item to an existing List. )
11
+ g.command 'create' do |c|
12
+ c.flag 'list_id', desc: 'ID of the List to add the item to.'
13
+ c.flag 'duplicated_item_id', desc: 'ID of the record to make a copy of.'
14
+ c.flag 'parent_item_id', desc: 'ID of the parent record for this subtask.'
15
+ c.flag 'initial_fields', desc: 'Initial item data.'
16
+ c.action do |_global_options, options, _args|
17
+ puts JSON.dump(@client.slackLists_items_create(options))
18
+ end
19
+ end
20
+
21
+ g.desc 'Deletes an item from an existing List.'
22
+ g.long_desc %( Deletes an item from an existing List. )
23
+ g.command 'delete' do |c|
24
+ c.flag 'list_id', desc: 'ID of the List containing the item.'
25
+ c.flag 'id', desc: 'ID of item to delete.'
26
+ c.action do |_global_options, options, _args|
27
+ puts JSON.dump(@client.slackLists_items_delete(options))
28
+ end
29
+ end
30
+
31
+ g.desc 'Deletes multiple items from an existing List.'
32
+ g.long_desc %( Deletes multiple items from an existing List. )
33
+ g.command 'deleteMultiple' do |c|
34
+ c.flag 'list_id', desc: 'ID of the List containing the items.'
35
+ c.flag 'ids', desc: 'IDs of items to delete.'
36
+ c.action do |_global_options, options, _args|
37
+ puts JSON.dump(@client.slackLists_items_deleteMultiple(options))
38
+ end
39
+ end
40
+
41
+ g.desc 'Get a row from a List.'
42
+ g.long_desc %( Get a row from a List. )
43
+ g.command 'info' do |c|
44
+ c.flag 'list_id', desc: 'ID of the List.'
45
+ c.flag 'id', desc: 'ID of the row to get.'
46
+ c.flag 'include_is_subscribed', desc: 'Set to true to include is_subscribed data for the returned List row.'
47
+ c.action do |_global_options, options, _args|
48
+ puts JSON.dump(@client.slackLists_items_info(options))
49
+ end
50
+ end
51
+
52
+ g.desc 'Get records from a List.'
53
+ g.long_desc %( Get records from a List. )
54
+ g.command 'list' do |c|
55
+ c.flag 'list_id', desc: 'ID of the List.'
56
+ c.flag 'limit', desc: 'The maximum number of records to return.'
57
+ c.flag 'cursor', desc: 'Next cursor for pagination.'
58
+ c.flag 'archived', desc: 'Boolean indicating whether archived items or normal items should be returned.'
59
+ c.action do |_global_options, options, _args|
60
+ puts JSON.dump(@client.slackLists_items_list(options))
61
+ end
62
+ end
63
+
64
+ g.desc 'Updates cells in a List.'
65
+ g.long_desc %( Updates cells in a List. )
66
+ g.command 'update' do |c|
67
+ c.flag 'list_id', desc: 'ID of the List to add or update cells.'
68
+ c.flag 'cells', desc: 'Cells to update.'
69
+ c.action do |_global_options, options, _args|
70
+ puts JSON.dump(@client.slackLists_items_update(options))
71
+ end
72
+ end
73
+ end
74
+ end
75
+ end
76
+ end
data/bin/commands/team.rb CHANGED
@@ -23,8 +23,8 @@ module Slack
23
23
  g.command 'billableInfo' do |c|
24
24
  c.flag 'cursor', desc: '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.'
25
25
  c.flag 'limit', desc: 'The maximum number of items to return.'
26
- c.flag 'team_id', desc: 'encoded team id to get the billable information from, required if org token is used.'
27
26
  c.flag 'user', desc: 'A user to retrieve the billable information for. Defaults to all users.'
27
+ c.flag 'team_id', desc: 'encoded team id to get the billable information from, required if org token is used.'
28
28
  c.action do |_global_options, options, _args|
29
29
  puts JSON.dump(@client.team_billableInfo(options))
30
30
  end
@@ -18,13 +18,13 @@ module Slack
18
18
  g.desc 'Returns a list of all the external teams connected and details about the connection.'
19
19
  g.long_desc %( Returns a list of all the external teams connected and details about the connection. )
20
20
  g.command 'list' do |c|
21
- c.flag 'connection_status_filter', desc: 'Status of the connected team.'
22
- c.flag 'cursor', desc: "Paginate through collections of data by setting parameter to the team_id attribute returned by a previous request's response_metadata. If not provided, the first page of the collection is returned. See pagination for more detail."
23
21
  c.flag 'limit', desc: 'The maximum number of items to return per page.'
24
- c.flag 'slack_connect_pref_filter', desc: 'Filters connected orgs by Slack Connect pref override(s). Value can be: approved_orgs_only allow_sc_file_uploads profile_visibility away_team_sc_invite_permissions accept_sc_invites sc_mpdm_to_private require_sc_channel_for_sc_dm external_awareness_context_bar.'
25
- c.flag 'sort_direction', desc: 'Direction to sort in asc or desc.'
22
+ c.flag 'cursor', desc: "Paginate through collections of data by setting parameter to the team_id attribute returned by a previous request's response_metadata. If not provided, the first page of the collection is returned. See pagination for more detail."
26
23
  c.flag 'sort_field', desc: 'Name of the parameter that we are sorting by.'
24
+ c.flag 'sort_direction', desc: 'Direction to sort in asc or desc.'
25
+ c.flag 'slack_connect_pref_filter', desc: 'Filters connected orgs by Slack Connect pref override(s). Value can be: approved_orgs_only allow_sc_file_uploads profile_visibility away_team_sc_invite_permissions accept_sc_invites sc_mpdm_to_private require_sc_channel_for_sc_dm external_awareness_context_bar.'
27
26
  c.flag 'workspace_filter', desc: 'Shows connected orgs which are connected on a specified encoded workspace ID.'
27
+ c.flag 'connection_status_filter', desc: 'Status of the connected team.'
28
28
  c.action do |_global_options, options, _args|
29
29
  puts JSON.dump(@client.team_externalTeams_list(options))
30
30
  end
@@ -9,14 +9,14 @@ module Slack
9
9
  g.desc 'Create a User Group.'
10
10
  g.long_desc %( Create a User Group. )
11
11
  g.command 'create' do |c|
12
- c.flag 'name', desc: 'A name for the User Group. Must be unique among User Groups.'
13
- c.flag 'additional_channels', desc: 'A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too.'
14
12
  c.flag 'channels', desc: 'A comma separated string of encoded channel IDs for which the User Group uses as a default.'
13
+ c.flag 'additional_channels', desc: 'A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too.'
15
14
  c.flag 'description', desc: 'A short description of the User Group.'
16
- c.flag 'enable_section', desc: 'Configure this user group to show as a sidebar section for all group members. Note: Only relevant if group has 1 or more default channels added.'
17
15
  c.flag 'handle', desc: 'A mention handle. Must be unique among channels, users and User Groups.'
18
16
  c.flag 'include_count', desc: 'Include the number of users in each User Group.'
17
+ c.flag 'name', desc: 'A name for the User Group. Must be unique among User Groups.'
19
18
  c.flag 'team_id', desc: 'Encoded team id where the user group has to be created, required if org token is used.'
19
+ c.flag 'enable_section', desc: 'Configure this user group to show as a sidebar section for all group members. Note: Only relevant if group has 1 or more default channels added.'
20
20
  c.action do |_global_options, options, _args|
21
21
  puts JSON.dump(@client.usergroups_create(options))
22
22
  end
@@ -25,9 +25,9 @@ module Slack
25
25
  g.desc 'Disable an existing User Group.'
26
26
  g.long_desc %( Disable an existing User Group. )
27
27
  g.command 'disable' do |c|
28
- c.flag 'usergroup', desc: 'The encoded ID of the User Group to disable.'
29
28
  c.flag 'include_count', desc: 'Include the number of users in the User Group.'
30
29
  c.flag 'team_id', desc: 'Encoded target team id where the user group is, required if org token is used.'
30
+ c.flag 'usergroup', desc: 'The encoded ID of the User Group to disable.'
31
31
  c.action do |_global_options, options, _args|
32
32
  puts JSON.dump(@client.usergroups_disable(options))
33
33
  end
@@ -36,9 +36,9 @@ module Slack
36
36
  g.desc 'Enable a User Group.'
37
37
  g.long_desc %( Enable a User Group. )
38
38
  g.command 'enable' do |c|
39
- c.flag 'usergroup', desc: 'The encoded ID of the User Group to enable.'
40
39
  c.flag 'include_count', desc: 'Include the number of users in the User Group.'
41
40
  c.flag 'team_id', desc: 'Encoded team id where the user group is, required if org token is used.'
41
+ c.flag 'usergroup', desc: 'The encoded ID of the User Group to enable.'
42
42
  c.action do |_global_options, options, _args|
43
43
  puts JSON.dump(@client.usergroups_enable(options))
44
44
  end
@@ -48,9 +48,9 @@ module Slack
48
48
  g.long_desc %( List all User Groups for a team. )
49
49
  g.command 'list' do |c|
50
50
  c.flag 'include_count', desc: 'Include the number of users in each User Group.'
51
- c.flag 'include_disabled', desc: 'Include disabled User Groups.'
51
+ c.flag 'include_disabled', desc: 'Include results for disabled User Groups.'
52
52
  c.flag 'include_users', desc: 'Include the list of users for each User Group.'
53
- c.flag 'team_id', desc: 'encoded team id to list user groups in, required if org token is used.'
53
+ c.flag 'team_id', desc: "The user group's encoded team ID. Required if org token is used."
54
54
  c.action do |_global_options, options, _args|
55
55
  puts JSON.dump(@client.usergroups_list(options))
56
56
  end
@@ -59,15 +59,15 @@ module Slack
59
59
  g.desc 'Update an existing User Group.'
60
60
  g.long_desc %( Update an existing User Group. )
61
61
  g.command 'update' do |c|
62
- c.flag 'usergroup', desc: 'The encoded ID of the User Group to update.'
63
- c.flag 'additional_channels', desc: 'A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too.'
64
62
  c.flag 'channels', desc: 'A comma separated string of encoded channel IDs for which the User Group uses as a default.'
63
+ c.flag 'additional_channels', desc: 'A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too.'
65
64
  c.flag 'description', desc: 'A short description of the User Group.'
66
- c.flag 'enable_section', desc: 'Configure this user group to show as a sidebar section for all group members. Note: Only relevant if group has 1 or more default channels added.'
67
65
  c.flag 'handle', desc: 'A mention handle. Must be unique among channels, users and User Groups.'
68
66
  c.flag 'include_count', desc: 'Include the number of users in the User Group.'
69
67
  c.flag 'name', desc: 'A name for the User Group. Must be unique among User Groups.'
70
68
  c.flag 'team_id', desc: 'encoded team id where the user group exists, required if org token is used.'
69
+ c.flag 'usergroup', desc: 'The encoded ID of the User Group to update.'
70
+ c.flag 'enable_section', desc: 'Configure this user group to show as a sidebar section for all group members. Note: Only relevant if group has 1 or more default channels added.'
71
71
  c.action do |_global_options, options, _args|
72
72
  puts JSON.dump(@client.usergroups_update(options))
73
73
  end
@@ -9,9 +9,9 @@ module Slack
9
9
  g.desc 'List all users in a User Group.'
10
10
  g.long_desc %( List all users in a User Group. )
11
11
  g.command 'list' do |c|
12
- c.flag 'usergroup', desc: 'The encoded ID of the User Group to list users for.'
13
- c.flag 'include_disabled', desc: 'Allow results that involve disabled User Groups.'
14
- c.flag 'team_id', desc: 'encoded team id where the user group exists, required if org token is used.'
12
+ c.flag 'include_disabled', desc: 'Include results for disabled User Groups.'
13
+ c.flag 'usergroup', desc: 'The encoded ID of the User Group.'
14
+ c.flag 'team_id', desc: "The user group's encoded team ID. Required if org token is used."
15
15
  c.action do |_global_options, options, _args|
16
16
  puts JSON.dump(@client.usergroups_users_list(options))
17
17
  end
@@ -20,12 +20,12 @@ module Slack
20
20
  g.desc 'Update the list of users for a user group.'
21
21
  g.long_desc %( Update the list of users for a user group. )
22
22
  g.command 'update' do |c|
23
+ c.flag 'include_count', desc: 'Include the number of users in the user group.'
24
+ c.flag 'team_id', desc: 'encoded team id where the user group exists, required if org token is used.'
23
25
  c.flag 'usergroup', desc: 'The encoded ID of the user group to update.'
24
26
  c.flag 'users', desc: 'A comma separated string of encoded user IDs that represent the entire list of users for the user group.'
25
27
  c.flag 'additional_channels', desc: 'A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too.'
26
- c.flag 'include_count', desc: 'Include the number of users in the user group.'
27
28
  c.flag 'is_shared', desc: 'Boolean to identify if the API is getting called when a shared section is getting shared.'
28
- c.flag 'team_id', desc: 'encoded team id where the user group exists, required if org token is used.'
29
29
  c.action do |_global_options, options, _args|
30
30
  puts JSON.dump(@client.usergroups_users_update(options))
31
31
  end
@@ -57,8 +57,8 @@ module Slack
57
57
  g.desc 'Gets information about a user.'
58
58
  g.long_desc %( Gets information about a user. )
59
59
  g.command 'info' do |c|
60
- c.flag 'user', desc: 'User to get info on.'
61
60
  c.flag 'include_locale', desc: 'Set this to true to receive the locale for this user. Defaults to false.'
61
+ c.flag 'user', desc: 'User to get info on.'
62
62
  c.action do |_global_options, options, _args|
63
63
  puts JSON.dump(@client.users_info(options))
64
64
  end
@@ -9,7 +9,7 @@ module Slack
9
9
  g.desc 'Look up an email address to see if someone is discoverable on Slack'
10
10
  g.long_desc %( Look up an email address to see if someone is discoverable on Slack )
11
11
  g.command 'lookup' do |c|
12
- c.flag 'email', desc: '.'
12
+ c.flag 'email', desc: ''
13
13
  c.action do |_global_options, options, _args|
14
14
  puts JSON.dump(@client.users_discoverableContacts_lookup(options))
15
15
  end
@@ -9,9 +9,9 @@ module Slack
9
9
  g.desc 'Open a view for a user.'
10
10
  g.long_desc %( Open a view for a user. )
11
11
  g.command 'open' do |c|
12
- c.flag 'view', desc: 'A view payload. This must be a JSON-encoded string.'
13
12
  c.flag 'trigger_id', desc: 'Exchange a trigger to post to the user.'
14
13
  c.flag 'interactivity_pointer', desc: 'Exchange an interactivity pointer to post to the user.'
14
+ c.flag 'view', desc: 'A view payload. This must be a JSON-encoded string.'
15
15
  c.action do |_global_options, options, _args|
16
16
  puts JSON.dump(@client.views_open(options))
17
17
  end
@@ -31,9 +31,9 @@ module Slack
31
31
  g.desc 'Push a view onto the stack of a root view.'
32
32
  g.long_desc %( Push a view onto the stack of a root view. )
33
33
  g.command 'push' do |c|
34
- c.flag 'view', desc: 'A view payload. This must be a JSON-encoded string.'
35
34
  c.flag 'trigger_id', desc: 'Exchange a trigger to post to the user.'
36
35
  c.flag 'interactivity_pointer', desc: 'Exchange an interactivity pointer to post to the user.'
36
+ c.flag 'view', desc: 'A view payload. This must be a JSON-encoded string.'
37
37
  c.action do |_global_options, options, _args|
38
38
  puts JSON.dump(@client.views_push(options))
39
39
  end
@@ -42,9 +42,9 @@ module Slack
42
42
  g.desc 'Update an existing view.'
43
43
  g.long_desc %( Update an existing view. )
44
44
  g.command 'update' do |c|
45
- c.flag 'view', desc: 'A view object. This must be a JSON-encoded string.'
46
- c.flag 'external_id', desc: 'A unique identifier of the view set by the developer. Must be unique for all views on a team. Max length of 255 characters. Either view_id or external_id is required.'
47
45
  c.flag 'view_id', desc: 'A unique identifier of the view to be updated. Either view_id or external_id is required.'
46
+ c.flag 'external_id', desc: 'A unique identifier of the view set by the developer. Must be unique for all views on a team. Max length of 255 characters. Either view_id or external_id is required.'
47
+ c.flag 'view', desc: 'A view object. This must be a JSON-encoded string.'
48
48
  c.flag 'hash', desc: 'A string that represents view state to protect against possible race conditions.'
49
49
  c.action do |_global_options, options, _args|
50
50
  puts JSON.dump(@client.views_update(options))
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+ # This file was auto-generated by lib/tasks/web.rake
3
+
4
+ module Slack
5
+ module Cli
6
+ class App
7
+ desc 'WorkflowsFeatured methods.'
8
+ command 'workflows_featured' do |g|
9
+ g.desc 'Add featured workflows to a channel.'
10
+ g.long_desc %( Add featured workflows to a channel. )
11
+ g.command 'add' do |c|
12
+ c.flag 'channel_id', desc: 'Channel to add featured workflow in.'
13
+ c.flag 'trigger_ids', desc: 'Comma-separated array of trigger IDs to add; max 15.'
14
+ c.action do |_global_options, options, _args|
15
+ puts JSON.dump(@client.workflows_featured_add(options))
16
+ end
17
+ end
18
+
19
+ g.desc 'List the featured workflows for specified channels.'
20
+ g.long_desc %( List the featured workflows for specified channels. )
21
+ g.command 'list' do |c|
22
+ c.flag 'channel_ids', desc: 'Comma-separated array of channel IDs to list featured workflows for.'
23
+ c.action do |_global_options, options, _args|
24
+ puts JSON.dump(@client.workflows_featured_list(options))
25
+ end
26
+ end
27
+
28
+ g.desc 'Remove featured workflows from a channel.'
29
+ g.long_desc %( Remove featured workflows from a channel. )
30
+ g.command 'remove' do |c|
31
+ c.flag 'channel_id', desc: 'Channel to remove featured workflow from.'
32
+ c.flag 'trigger_ids', desc: 'Comma-separated array of trigger IDs to remove; max 15.'
33
+ c.action do |_global_options, options, _args|
34
+ puts JSON.dump(@client.workflows_featured_remove(options))
35
+ end
36
+ end
37
+
38
+ g.desc 'Set featured workflows for a channel.'
39
+ g.long_desc %( Set featured workflows for a channel. )
40
+ g.command 'set' do |c|
41
+ c.flag 'channel_id', desc: 'Channel to set featured workflows in.'
42
+ c.flag 'trigger_ids', desc: 'Comma-separated array of trigger IDs that will replace any existing featured workflows in the channel; max 15.'
43
+ c.action do |_global_options, options, _args|
44
+ puts JSON.dump(@client.workflows_featured_set(options))
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -10,10 +10,10 @@ module Slack
10
10
  g.long_desc %( Allows users to run a trigger that has its permission type set to named_entities )
11
11
  g.command 'add' do |c|
12
12
  c.flag 'trigger_id', desc: 'Encoded ID of the trigger.'
13
+ c.flag 'user_ids', desc: 'List of encoded user IDs.'
13
14
  c.flag 'channel_ids', desc: 'List of encoded channel IDs.'
14
- c.flag 'org_ids', desc: 'List of encoded organization IDs.'
15
15
  c.flag 'team_ids', desc: 'List of encoded workspace IDs.'
16
- c.flag 'user_ids', desc: 'List of encoded user IDs.'
16
+ c.flag 'org_ids', desc: 'List of encoded organization IDs.'
17
17
  c.action do |_global_options, options, _args|
18
18
  puts JSON.dump(@client.workflows_triggers_permissions_add(options))
19
19
  end
@@ -32,10 +32,10 @@ module Slack
32
32
  g.long_desc %( Revoke an entity's access to a trigger that has its permission type set to named_entities )
33
33
  g.command 'remove' do |c|
34
34
  c.flag 'trigger_id', desc: 'Encoded ID of the trigger.'
35
+ c.flag 'user_ids', desc: 'List of encoded user IDs.'
35
36
  c.flag 'channel_ids', desc: 'List of encoded channel IDs.'
36
- c.flag 'org_ids', desc: 'List of encoded organization IDs.'
37
37
  c.flag 'team_ids', desc: 'List of encoded workspace IDs.'
38
- c.flag 'user_ids', desc: 'List of encoded user IDs.'
38
+ c.flag 'org_ids', desc: 'List of encoded organization IDs.'
39
39
  c.action do |_global_options, options, _args|
40
40
  puts JSON.dump(@client.workflows_triggers_permissions_remove(options))
41
41
  end
@@ -44,12 +44,12 @@ module Slack
44
44
  g.desc 'Set the permission type for who can run a trigger'
45
45
  g.long_desc %( Set the permission type for who can run a trigger )
46
46
  g.command 'set' do |c|
47
- c.flag 'permission_type', desc: 'The type of permission that defines who can run a trigger.'
48
47
  c.flag 'trigger_id', desc: 'Encoded ID of the trigger.'
48
+ c.flag 'permission_type', desc: 'The type of permission that defines who can run a trigger.'
49
+ c.flag 'user_ids', desc: 'List of encoded user IDs.'
49
50
  c.flag 'channel_ids', desc: 'List of encoded channel IDs.'
50
- c.flag 'org_ids', desc: 'List of encoded organization IDs.'
51
51
  c.flag 'team_ids', desc: 'List of encoded workspace IDs.'
52
- c.flag 'user_ids', desc: 'List of encoded user IDs.'
52
+ c.flag 'org_ids', desc: 'List of encoded organization IDs.'
53
53
  c.action do |_global_options, options, _args|
54
54
  puts JSON.dump(@client.workflows_triggers_permissions_set(options))
55
55
  end
data/lib/slack/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Slack
3
- VERSION = '2.7.0'
3
+ VERSION = '3.0.0'
4
4
  end
@@ -9,10 +9,10 @@ module Slack
9
9
  #
10
10
  # Retrieve analytics data for a given date, presented as a compressed JSON file
11
11
  #
12
- # @option options [string] :type
13
- # The type of analytics to retrieve. The options are currently limited to member (for grid member analytics) and public_channel (for public channel analytics).
14
12
  # @option options [date] :date
15
13
  # Date to retrieve the analytics data for, expressed as YYYY-MM-DD in UTC. Required unless metadata_only is set to true.
14
+ # @option options [string] :type
15
+ # The type of analytics to retrieve. The options are currently limited to member (for Enterprise org member analytics) and public_channel (for public channel analytics).
16
16
  # @option options [boolean] :metadata_only
17
17
  # Retrieve metadata for the type of analytics indicated. Can be used only with type set to public_channel analytics. See detail below. Omit the date parameter when using this argument.
18
18
  # @see https://api.slack.com/methods/admin.analytics.getFile
@@ -11,12 +11,12 @@ module Slack
11
11
  #
12
12
  # @option options [string] :app_id
13
13
  # The id of the app to approve.
14
- # @option options [Object] :enterprise_id
15
- # The ID of the enterprise to approve the app on.
16
14
  # @option options [string] :request_id
17
15
  # The id of the request to approve.
18
16
  # @option options [Object] :team_id
19
17
  # The ID of the workspace to approve the app on.
18
+ # @option options [Object] :enterprise_id
19
+ # The ID of the enterprise to approve the app on.
20
20
  # @see https://api.slack.com/methods/admin.apps.approve
21
21
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps/admin.apps.approve.json
22
22
  def admin_apps_approve(options = {})
@@ -28,10 +28,10 @@ module Slack
28
28
  #
29
29
  # @option options [string] :app_id
30
30
  # The id of the app whose resolution you want to clear/undo.
31
- # @option options [Object] :enterprise_id
32
- # The enterprise to clear the app resolution from.
33
31
  # @option options [Object] :team_id
34
32
  # The workspace to clear the app resolution from.
33
+ # @option options [Object] :enterprise_id
34
+ # The enterprise to clear the app resolution from.
35
35
  # @see https://api.slack.com/methods/admin.apps.clearResolution
36
36
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps/admin.apps.clearResolution.json
37
37
  def admin_apps_clearResolution(options = {})
@@ -44,12 +44,12 @@ module Slack
44
44
  #
45
45
  # @option options [string] :app_id
46
46
  # The id of the app to restrict.
47
- # @option options [Object] :enterprise_id
48
- # The ID of the enterprise to approve the app on.
49
47
  # @option options [string] :request_id
50
48
  # The id of the request to restrict.
51
49
  # @option options [Object] :team_id
52
50
  # The ID of the workspace to approve the app on.
51
+ # @option options [Object] :enterprise_id
52
+ # The ID of the enterprise to approve the app on.
53
53
  # @see https://api.slack.com/methods/admin.apps.restrict
54
54
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps/admin.apps.restrict.json
55
55
  def admin_apps_restrict(options = {})
@@ -61,10 +61,10 @@ module Slack
61
61
  #
62
62
  # @option options [string] :app_id
63
63
  # The ID of the app to uninstall.
64
- # @option options [string] :enterprise_id
65
- # The enterprise to completely uninstall the application from (across all workspaces). With an org-level token, this or team_ids is required.
66
64
  # @option options [string] :team_ids
67
65
  # IDs of the teams to uninstall from (max 100). With an org-level token, this or enterprise_id is required.
66
+ # @option options [string] :enterprise_id
67
+ # The enterprise to completely uninstall the application from (across all workspaces). With an org-level token, this or team_ids is required.
68
68
  # @see https://api.slack.com/methods/admin.apps.uninstall
69
69
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps/admin.apps.uninstall.json
70
70
  def admin_apps_uninstall(options = {})
@@ -11,30 +11,30 @@ module Slack
11
11
  #
12
12
  # @option options [Object] :app_id
13
13
  # The ID of the app to get activities from.
14
- # @option options [string] :component_id
15
- # The component ID of log events to be returned. Will be FnXXXXXX for functions, and WfXXXXXX for worflows.
16
- # @option options [string] :component_type
17
- # The component type of log events to be returned. Acceptable values are events_api, workflows, functions and tables.
14
+ # @option options [string] :team_id
15
+ # The team who owns this log.
18
16
  # @option options [string] :cursor
19
17
  # Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. See pagination for more detail.
20
18
  # @option options [integer] :limit
21
19
  # The maximum number of items to return.
22
- # @option options [string] :log_event_type
23
- # The event type of log events to be returned.
24
- # @option options [integer] :max_date_created
25
- # The latest timestamp of the log to retrieve (epoch microseconds).
26
- # @option options [integer] :min_date_created
27
- # The earliest timestamp of the log to retrieve (epoch microseconds).
28
20
  # @option options [string] :min_log_level
29
21
  # The minimum log level of the log events to be returned. Defaults to info. Acceptable values (in order of relative importance from smallest to largest) are trace, debug, info, warn, error and fatal.
30
- # @option options [enum] :sort_direction
31
- # The direction you want the data sorted by (always by timestamp).
22
+ # @option options [string] :log_event_type
23
+ # The event type of log events to be returned.
32
24
  # @option options [string] :source
33
25
  # The source of log events to be returned. Acceptable values are slack and developer.
34
- # @option options [string] :team_id
35
- # The team who owns this log.
26
+ # @option options [string] :component_type
27
+ # The component type of log events to be returned. Acceptable values are events_api, workflows, functions and tables.
28
+ # @option options [string] :component_id
29
+ # The component ID of log events to be returned. Will be FnXXXXXX for functions, and WfXXXXXX for workflows.
36
30
  # @option options [string] :trace_id
37
31
  # The trace ID of log events to be returned.
32
+ # @option options [integer] :min_date_created
33
+ # The earliest timestamp of the log to retrieve (epoch microseconds).
34
+ # @option options [integer] :max_date_created
35
+ # The latest timestamp of the log to retrieve (epoch microseconds).
36
+ # @option options [enum] :sort_direction
37
+ # The direction you want the data sorted by (always by timestamp).
38
38
  # @see https://api.slack.com/methods/admin.apps.activities.list
39
39
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps.activities/admin.apps.activities.list.json
40
40
  def admin_apps_activities_list(options = {})
@@ -9,16 +9,14 @@ module Slack
9
9
  #
10
10
  # List approved apps for an org or workspace.
11
11
  #
12
- # @option options [boolean] :certified
13
- # Limit the results to only include certified apps. When false, no certified apps will appear in the result.
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] :enterprise_id
17
- # .
18
12
  # @option options [integer] :limit
19
13
  # The maximum number of items to return. Must be between 1 - 1000 both inclusive.
14
+ # @option options [string] :cursor
15
+ # Set cursor to next_cursor returned by the previous call to list items in the next page.
20
16
  # @option options [Object] :team_id
21
- # .
17
+ # @option options [Object] :enterprise_id
18
+ # @option options [boolean] :certified
19
+ # Limit the results to only include certified apps. When false, no certified apps will appear in the result.
22
20
  # @see https://api.slack.com/methods/admin.apps.approved.list
23
21
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps.approved/admin.apps.approved.list.json
24
22
  def admin_apps_approved_list(options = {})