slack-ruby-client 2.6.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.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +4 -10
- data/.github/workflows/update_api.yml +1 -1
- data/.rubocop_todo.yml +58 -71
- data/CHANGELOG.md +15 -0
- data/CONTRIBUTING.md +1 -1
- data/Gemfile +0 -9
- data/LICENSE.md +1 -1
- data/README.md +31 -220
- data/Rakefile +0 -1
- data/UPGRADING.md +4 -0
- data/bin/commands/admin_analytics.rb +1 -1
- data/bin/commands/admin_apps.rb +4 -4
- data/bin/commands/admin_apps_activities.rb +7 -7
- data/bin/commands/admin_apps_approved.rb +4 -4
- data/bin/commands/admin_apps_config.rb +3 -1
- data/bin/commands/admin_apps_requests.rb +5 -5
- data/bin/commands/admin_apps_restricted.rb +4 -4
- data/bin/commands/admin_audit_anomaly_allow.rb +6 -6
- data/bin/commands/admin_auth_policy.rb +5 -5
- data/bin/commands/admin_barriers.rb +3 -3
- data/bin/commands/admin_conversations.rb +15 -15
- data/bin/commands/admin_conversations_ekm.rb +2 -2
- data/bin/commands/admin_conversations_restrictAccess.rb +5 -5
- data/bin/commands/admin_emoji.rb +5 -5
- data/bin/commands/admin_functions.rb +1 -1
- data/bin/commands/admin_inviteRequests.rb +3 -3
- data/bin/commands/admin_inviteRequests_approved.rb +1 -1
- data/bin/commands/admin_inviteRequests_denied.rb +1 -1
- data/bin/commands/admin_roles.rb +3 -3
- data/bin/commands/admin_teams.rb +3 -3
- data/bin/commands/admin_teams_admins.rb +2 -2
- data/bin/commands/admin_teams_owners.rb +2 -2
- data/bin/commands/admin_teams_settings.rb +5 -5
- data/bin/commands/admin_usergroups.rb +4 -4
- data/bin/commands/admin_users.rb +12 -11
- data/bin/commands/admin_users_session.rb +6 -5
- data/bin/commands/admin_users_unsupportedVersions.rb +1 -1
- data/bin/commands/admin_workflows.rb +6 -6
- data/bin/commands/admin_workflows_collaborators.rb +2 -2
- data/bin/commands/apps_activities.rb +7 -7
- data/bin/commands/apps_auth_external.rb +1 -1
- data/bin/commands/apps_datastore.rb +12 -12
- data/bin/commands/apps_event_authorizations.rb +3 -3
- data/bin/commands/apps_manifest.rb +1 -1
- data/bin/commands/assistant_search.rb +18 -2
- data/bin/commands/assistant_threads.rb +2 -2
- data/bin/commands/auth.rb +1 -1
- data/bin/commands/auth_teams.rb +1 -1
- data/bin/commands/bookmarks.rb +6 -6
- data/bin/commands/calls.rb +5 -5
- data/bin/commands/canvases.rb +2 -2
- data/bin/commands/canvases_access.rb +1 -1
- data/bin/commands/chat.rb +23 -24
- data/bin/commands/conversations.rb +8 -8
- data/bin/commands/conversations_canvases.rb +1 -1
- data/bin/commands/conversations_externalInvitePermissions.rb +1 -1
- data/bin/commands/conversations_requestSharedInvite.rb +4 -4
- data/bin/commands/dnd.rb +1 -1
- data/bin/commands/files.rb +5 -5
- data/bin/commands/files_remote.rb +1 -1
- data/bin/commands/functions.rb +1 -1
- data/bin/commands/functions_distributions_permissions.rb +15 -15
- data/bin/commands/functions_workflows_steps.rb +2 -2
- data/bin/commands/functions_workflows_steps_responses.rb +2 -2
- data/bin/commands/migration.rb +2 -2
- data/bin/commands/oauth_v2.rb +1 -1
- data/bin/commands/openid_connect.rb +1 -1
- data/bin/commands/reactions.rb +3 -3
- data/bin/commands/reminders.rb +2 -2
- data/bin/commands/rtm.rb +15 -0
- data/bin/commands/search.rb +4 -4
- data/bin/commands/slackLists.rb +37 -0
- data/bin/commands/slackLists_access.rb +34 -0
- data/bin/commands/slackLists_download.rb +31 -0
- data/bin/commands/slackLists_items.rb +76 -0
- data/bin/commands/team.rb +1 -1
- data/bin/commands/team_externalTeams.rb +4 -4
- data/bin/commands/usergroups.rb +10 -10
- data/bin/commands/usergroups_users.rb +5 -5
- data/bin/commands/users.rb +1 -1
- data/bin/commands/users_discoverableContacts.rb +1 -1
- data/bin/commands/views.rb +4 -4
- data/bin/commands/workflows_featured.rb +50 -0
- data/bin/commands/workflows_triggers_permissions.rb +7 -7
- data/examples/files_upload_v2/files_upload_v2.rb +8 -0
- data/lib/slack/events/request.rb +1 -0
- data/lib/slack/version.rb +1 -1
- data/lib/slack/web/api/endpoints/admin_analytics.rb +2 -2
- data/lib/slack/web/api/endpoints/admin_apps.rb +8 -8
- data/lib/slack/web/api/endpoints/admin_apps_activities.rb +14 -14
- data/lib/slack/web/api/endpoints/admin_apps_approved.rb +5 -7
- data/lib/slack/web/api/endpoints/admin_apps_config.rb +6 -3
- data/lib/slack/web/api/endpoints/admin_apps_requests.rb +7 -9
- data/lib/slack/web/api/endpoints/admin_apps_restricted.rb +5 -7
- data/lib/slack/web/api/endpoints/admin_audit_anomaly_allow.rb +5 -5
- data/lib/slack/web/api/endpoints/admin_auth_policy.rb +14 -14
- data/lib/slack/web/api/endpoints/admin_barriers.rb +8 -8
- data/lib/slack/web/api/endpoints/admin_conversations.rb +27 -28
- data/lib/slack/web/api/endpoints/admin_conversations_ekm.rb +4 -4
- data/lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb +11 -12
- data/lib/slack/web/api/endpoints/admin_emoji.rb +5 -5
- data/lib/slack/web/api/endpoints/admin_functions.rb +2 -2
- data/lib/slack/web/api/endpoints/admin_inviteRequests.rb +6 -6
- data/lib/slack/web/api/endpoints/admin_inviteRequests_approved.rb +2 -2
- data/lib/slack/web/api/endpoints/admin_inviteRequests_denied.rb +2 -2
- data/lib/slack/web/api/endpoints/admin_roles.rb +8 -8
- data/lib/slack/web/api/endpoints/admin_teams.rb +3 -3
- data/lib/slack/web/api/endpoints/admin_teams_admins.rb +3 -4
- data/lib/slack/web/api/endpoints/admin_teams_owners.rb +2 -3
- data/lib/slack/web/api/endpoints/admin_teams_settings.rb +12 -13
- data/lib/slack/web/api/endpoints/admin_usergroups.rb +11 -11
- data/lib/slack/web/api/endpoints/admin_users.rb +27 -25
- data/lib/slack/web/api/endpoints/admin_users_session.rb +12 -9
- data/lib/slack/web/api/endpoints/admin_users_unsupportedVersions.rb +2 -2
- data/lib/slack/web/api/endpoints/admin_workflows.rb +12 -12
- data/lib/slack/web/api/endpoints/admin_workflows_collaborators.rb +6 -6
- data/lib/slack/web/api/endpoints/apps_activities.rb +14 -14
- data/lib/slack/web/api/endpoints/apps_auth_external.rb +2 -2
- data/lib/slack/web/api/endpoints/apps_datastore.rb +8 -15
- data/lib/slack/web/api/endpoints/apps_event_authorizations.rb +0 -3
- data/lib/slack/web/api/endpoints/apps_manifest.rb +5 -5
- data/lib/slack/web/api/endpoints/assistant_search.rb +28 -3
- data/lib/slack/web/api/endpoints/assistant_threads.rb +6 -6
- data/lib/slack/web/api/endpoints/auth.rb +1 -1
- data/lib/slack/web/api/endpoints/auth_teams.rb +2 -2
- data/lib/slack/web/api/endpoints/bookmarks.rb +14 -14
- data/lib/slack/web/api/endpoints/calls.rb +10 -10
- data/lib/slack/web/api/endpoints/canvases.rb +4 -4
- data/lib/slack/web/api/endpoints/canvases_access.rb +3 -3
- data/lib/slack/web/api/endpoints/chat.rb +53 -55
- data/lib/slack/web/api/endpoints/conversations.rb +16 -16
- data/lib/slack/web/api/endpoints/conversations_canvases.rb +1 -1
- data/lib/slack/web/api/endpoints/conversations_externalInvitePermissions.rb +3 -3
- data/lib/slack/web/api/endpoints/conversations_requestSharedInvite.rb +8 -8
- data/lib/slack/web/api/endpoints/dnd.rb +2 -2
- data/lib/slack/web/api/endpoints/files.rb +11 -11
- data/lib/slack/web/api/endpoints/files_remote.rb +2 -2
- data/lib/slack/web/api/endpoints/functions.rb +3 -3
- data/lib/slack/web/api/endpoints/functions_distributions_permissions.rb +24 -24
- data/lib/slack/web/api/endpoints/functions_workflows_steps.rb +4 -4
- data/lib/slack/web/api/endpoints/functions_workflows_steps_responses.rb +4 -4
- data/lib/slack/web/api/endpoints/migration.rb +1 -1
- data/lib/slack/web/api/endpoints/oauth_v2.rb +2 -2
- data/lib/slack/web/api/endpoints/openid_connect.rb +2 -2
- data/lib/slack/web/api/endpoints/reactions.rb +6 -6
- data/lib/slack/web/api/endpoints/reminders.rb +4 -4
- data/lib/slack/web/api/endpoints/rtm.rb +23 -0
- data/lib/slack/web/api/endpoints/search.rb +8 -8
- data/lib/slack/web/api/endpoints/slackLists.rb +52 -0
- data/lib/slack/web/api/endpoints/slackLists_access.rb +47 -0
- data/lib/slack/web/api/endpoints/slackLists_download.rb +40 -0
- data/lib/slack/web/api/endpoints/slackLists_items.rb +116 -0
- data/lib/slack/web/api/endpoints/team.rb +3 -3
- data/lib/slack/web/api/endpoints/team_externalTeams.rb +8 -8
- data/lib/slack/web/api/endpoints/usergroups.rb +18 -18
- data/lib/slack/web/api/endpoints/usergroups_users.rb +8 -8
- data/lib/slack/web/api/endpoints/users.rb +2 -2
- data/lib/slack/web/api/endpoints/users_discoverableContacts.rb +0 -1
- data/lib/slack/web/api/endpoints/views.rb +9 -9
- data/lib/slack/web/api/endpoints/workflows_featured.rb +69 -0
- data/lib/slack/web/api/endpoints/workflows_triggers_permissions.rb +15 -15
- data/lib/slack/web/api/endpoints.rb +10 -2
- data/lib/slack/web/api/errors.rb +88 -46
- data/lib/slack/web/api/helpers/files.rb +32 -22
- data/lib/slack/web/api/mixins/conversations.id.rb +14 -3
- data/lib/slack/web/api/mixins/users.id.rb +7 -3
- data/lib/slack/web/faraday/response/raise_error.rb +20 -2
- data/lib/slack-ruby-client.rb +0 -12
- data/lib/tasks/update.rake +0 -1
- data/lib/tasks/web.rake +0 -4
- data/slack-ruby-client.gemspec +1 -1
- metadata +19 -38
- data/.github/workflows/integration_test.yml +0 -45
- data/bin/commands/workflows.rb +0 -44
- data/examples/hi_real_time_and_web/Gemfile +0 -6
- data/examples/hi_real_time_and_web/hi.gif +0 -0
- data/examples/hi_real_time_and_web/hi.rb +0 -28
- data/examples/hi_real_time_async_async/Gemfile +0 -7
- data/examples/hi_real_time_async_async/Procfile +0 -2
- data/examples/hi_real_time_async_async/hi.rb +0 -41
- data/lib/slack/real_time/api/message.rb +0 -23
- data/lib/slack/real_time/api/message_id.rb +0 -15
- data/lib/slack/real_time/api/ping.rb +0 -19
- data/lib/slack/real_time/api/schema/event.json +0 -23
- data/lib/slack/real_time/api/templates/event_handler.erb +0 -8
- data/lib/slack/real_time/api/typing.rb +0 -20
- data/lib/slack/real_time/client.rb +0 -271
- data/lib/slack/real_time/concurrency/async.rb +0 -142
- data/lib/slack/real_time/concurrency.rb +0 -8
- data/lib/slack/real_time/config.rb +0 -62
- data/lib/slack/real_time/models/base.rb +0 -11
- data/lib/slack/real_time/models/bot.rb +0 -9
- data/lib/slack/real_time/models/channel.rb +0 -13
- data/lib/slack/real_time/models/im.rb +0 -9
- data/lib/slack/real_time/models/mpim.rb +0 -9
- data/lib/slack/real_time/models/team.rb +0 -9
- data/lib/slack/real_time/models/user.rb +0 -9
- data/lib/slack/real_time/models.rb +0 -9
- data/lib/slack/real_time/socket.rb +0 -118
- data/lib/slack/real_time/stores/base.rb +0 -47
- data/lib/slack/real_time/stores/starter.rb +0 -449
- data/lib/slack/real_time/stores/store.rb +0 -624
- data/lib/slack/real_time/stores.rb +0 -5
- data/lib/slack/web/api/endpoints/workflows.rb +0 -63
- data/lib/tasks/real_time.rake +0 -81
@@ -9,22 +9,22 @@ module Slack
|
|
9
9
|
#
|
10
10
|
# Create a User Group.
|
11
11
|
#
|
12
|
-
# @option options [string] :name
|
13
|
-
# A name for the User Group. Must be unique among User Groups.
|
14
|
-
# @option options [array] :additional_channels
|
15
|
-
# A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too.
|
16
12
|
# @option options [array] :channels
|
17
13
|
# A comma separated string of encoded channel IDs for which the User Group uses as a default.
|
14
|
+
# @option options [array] :additional_channels
|
15
|
+
# A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too.
|
18
16
|
# @option options [string] :description
|
19
17
|
# A short description of the User Group.
|
20
|
-
# @option options [boolean] :enable_section
|
21
|
-
# 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.
|
22
18
|
# @option options [string] :handle
|
23
19
|
# A mention handle. Must be unique among channels, users and User Groups.
|
24
20
|
# @option options [boolean] :include_count
|
25
21
|
# Include the number of users in each User Group.
|
22
|
+
# @option options [string] :name
|
23
|
+
# A name for the User Group. Must be unique among User Groups.
|
26
24
|
# @option options [string] :team_id
|
27
25
|
# Encoded team id where the user group has to be created, required if org token is used.
|
26
|
+
# @option options [boolean] :enable_section
|
27
|
+
# 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.
|
28
28
|
# @see https://api.slack.com/methods/usergroups.create
|
29
29
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups/usergroups.create.json
|
30
30
|
def usergroups_create(options = {})
|
@@ -35,12 +35,12 @@ module Slack
|
|
35
35
|
#
|
36
36
|
# Disable an existing User Group.
|
37
37
|
#
|
38
|
-
# @option options [Object] :usergroup
|
39
|
-
# The encoded ID of the User Group to disable.
|
40
38
|
# @option options [boolean] :include_count
|
41
39
|
# Include the number of users in the User Group.
|
42
40
|
# @option options [Object] :team_id
|
43
41
|
# Encoded target team id where the user group is, required if org token is used.
|
42
|
+
# @option options [Object] :usergroup
|
43
|
+
# The encoded ID of the User Group to disable.
|
44
44
|
# @see https://api.slack.com/methods/usergroups.disable
|
45
45
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups/usergroups.disable.json
|
46
46
|
def usergroups_disable(options = {})
|
@@ -51,12 +51,12 @@ module Slack
|
|
51
51
|
#
|
52
52
|
# Enable a User Group.
|
53
53
|
#
|
54
|
-
# @option options [string] :usergroup
|
55
|
-
# The encoded ID of the User Group to enable.
|
56
54
|
# @option options [boolean] :include_count
|
57
55
|
# Include the number of users in the User Group.
|
58
56
|
# @option options [string] :team_id
|
59
57
|
# Encoded team id where the user group is, required if org token is used.
|
58
|
+
# @option options [string] :usergroup
|
59
|
+
# The encoded ID of the User Group to enable.
|
60
60
|
# @see https://api.slack.com/methods/usergroups.enable
|
61
61
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups/usergroups.enable.json
|
62
62
|
def usergroups_enable(options = {})
|
@@ -70,11 +70,11 @@ module Slack
|
|
70
70
|
# @option options [boolean] :include_count
|
71
71
|
# Include the number of users in each User Group.
|
72
72
|
# @option options [boolean] :include_disabled
|
73
|
-
# Include disabled User Groups.
|
73
|
+
# Include results for disabled User Groups.
|
74
74
|
# @option options [boolean] :include_users
|
75
75
|
# Include the list of users for each User Group.
|
76
76
|
# @option options [string] :team_id
|
77
|
-
#
|
77
|
+
# The user group's encoded team ID. Required if org token is used.
|
78
78
|
# @see https://api.slack.com/methods/usergroups.list
|
79
79
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups/usergroups.list.json
|
80
80
|
def usergroups_list(options = {})
|
@@ -84,16 +84,12 @@ module Slack
|
|
84
84
|
#
|
85
85
|
# Update an existing User Group.
|
86
86
|
#
|
87
|
-
# @option options [Object] :usergroup
|
88
|
-
# The encoded ID of the User Group to update.
|
89
|
-
# @option options [array] :additional_channels
|
90
|
-
# A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too.
|
91
87
|
# @option options [array] :channels
|
92
88
|
# A comma separated string of encoded channel IDs for which the User Group uses as a default.
|
89
|
+
# @option options [array] :additional_channels
|
90
|
+
# A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too.
|
93
91
|
# @option options [string] :description
|
94
92
|
# A short description of the User Group.
|
95
|
-
# @option options [boolean] :enable_section
|
96
|
-
# 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.
|
97
93
|
# @option options [string] :handle
|
98
94
|
# A mention handle. Must be unique among channels, users and User Groups.
|
99
95
|
# @option options [boolean] :include_count
|
@@ -102,6 +98,10 @@ module Slack
|
|
102
98
|
# A name for the User Group. Must be unique among User Groups.
|
103
99
|
# @option options [Object] :team_id
|
104
100
|
# encoded team id where the user group exists, required if org token is used.
|
101
|
+
# @option options [Object] :usergroup
|
102
|
+
# The encoded ID of the User Group to update.
|
103
|
+
# @option options [boolean] :enable_section
|
104
|
+
# 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.
|
105
105
|
# @see https://api.slack.com/methods/usergroups.update
|
106
106
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups/usergroups.update.json
|
107
107
|
def usergroups_update(options = {})
|
@@ -9,12 +9,12 @@ module Slack
|
|
9
9
|
#
|
10
10
|
# List all users in a User Group.
|
11
11
|
#
|
12
|
-
# @option options [string] :usergroup
|
13
|
-
# The encoded ID of the User Group to list users for.
|
14
12
|
# @option options [boolean] :include_disabled
|
15
|
-
#
|
13
|
+
# Include results for disabled User Groups.
|
14
|
+
# @option options [string] :usergroup
|
15
|
+
# The encoded ID of the User Group.
|
16
16
|
# @option options [string] :team_id
|
17
|
-
#
|
17
|
+
# The user group's encoded team ID. Required if org token is used.
|
18
18
|
# @see https://api.slack.com/methods/usergroups.users.list
|
19
19
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups.users/usergroups.users.list.json
|
20
20
|
def usergroups_users_list(options = {})
|
@@ -25,18 +25,18 @@ module Slack
|
|
25
25
|
#
|
26
26
|
# Update the list of users for a user group.
|
27
27
|
#
|
28
|
+
# @option options [boolean] :include_count
|
29
|
+
# Include the number of users in the user group.
|
30
|
+
# @option options [string] :team_id
|
31
|
+
# encoded team id where the user group exists, required if org token is used.
|
28
32
|
# @option options [string] :usergroup
|
29
33
|
# The encoded ID of the user group to update.
|
30
34
|
# @option options [array] :users
|
31
35
|
# A comma separated string of encoded user IDs that represent the entire list of users for the user group.
|
32
36
|
# @option options [array] :additional_channels
|
33
37
|
# A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too.
|
34
|
-
# @option options [boolean] :include_count
|
35
|
-
# Include the number of users in the user group.
|
36
38
|
# @option options [boolean] :is_shared
|
37
39
|
# Boolean to identify if the API is getting called when a shared section is getting shared.
|
38
|
-
# @option options [string] :team_id
|
39
|
-
# encoded team id where the user group exists, required if org token is used.
|
40
40
|
# @see https://api.slack.com/methods/usergroups.users.update
|
41
41
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups.users/usergroups.users.update.json
|
42
42
|
def usergroups_users_update(options = {})
|
@@ -67,10 +67,10 @@ module Slack
|
|
67
67
|
#
|
68
68
|
# Gets information about a user.
|
69
69
|
#
|
70
|
-
# @option options [user] :user
|
71
|
-
# User to get info on.
|
72
70
|
# @option options [boolean] :include_locale
|
73
71
|
# Set this to true to receive the locale for this user. Defaults to false.
|
72
|
+
# @option options [user] :user
|
73
|
+
# User to get info on.
|
74
74
|
# @see https://api.slack.com/methods/users.info
|
75
75
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/users/users.info.json
|
76
76
|
def users_info(options = {})
|
@@ -10,7 +10,6 @@ module Slack
|
|
10
10
|
# Look up an email address to see if someone is discoverable on Slack
|
11
11
|
#
|
12
12
|
# @option options [string] :email
|
13
|
-
# .
|
14
13
|
# @see https://api.slack.com/methods/users.discoverableContacts.lookup
|
15
14
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/users.discoverableContacts/users.discoverableContacts.lookup.json
|
16
15
|
def users_discoverableContacts_lookup(options = {})
|
@@ -9,12 +9,12 @@ module Slack
|
|
9
9
|
#
|
10
10
|
# Open a view for a user.
|
11
11
|
#
|
12
|
-
# @option options [view as string] :view
|
13
|
-
# A view payload. This must be a JSON-encoded string.
|
14
12
|
# @option options [string] :trigger_id
|
15
13
|
# Exchange a trigger to post to the user.
|
16
14
|
# @option options [string] :interactivity_pointer
|
17
15
|
# Exchange an interactivity pointer to post to the user.
|
16
|
+
# @option options [Object] :view
|
17
|
+
# A view payload. This must be a JSON-encoded string.
|
18
18
|
# @see https://api.slack.com/methods/views.open
|
19
19
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/views/views.open.json
|
20
20
|
def views_open(options = {})
|
@@ -29,7 +29,7 @@ module Slack
|
|
29
29
|
#
|
30
30
|
# @option options [string] :user_id
|
31
31
|
# id of the user you want publish a view to.
|
32
|
-
# @option options [
|
32
|
+
# @option options [Object] :view
|
33
33
|
# A view payload. This must be a JSON-encoded string.
|
34
34
|
# @option options [string] :hash
|
35
35
|
# A string that represents view state to protect against possible race conditions.
|
@@ -45,12 +45,12 @@ module Slack
|
|
45
45
|
#
|
46
46
|
# Push a view onto the stack of a root view.
|
47
47
|
#
|
48
|
-
# @option options [view as string] :view
|
49
|
-
# A view payload. This must be a JSON-encoded string.
|
50
48
|
# @option options [string] :trigger_id
|
51
49
|
# Exchange a trigger to post to the user.
|
52
50
|
# @option options [string] :interactivity_pointer
|
53
51
|
# Exchange an interactivity pointer to post to the user.
|
52
|
+
# @option options [Object] :view
|
53
|
+
# A view payload. This must be a JSON-encoded string.
|
54
54
|
# @see https://api.slack.com/methods/views.push
|
55
55
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/views/views.push.json
|
56
56
|
def views_push(options = {})
|
@@ -63,12 +63,12 @@ module Slack
|
|
63
63
|
#
|
64
64
|
# Update an existing view.
|
65
65
|
#
|
66
|
-
# @option options [view as string] :view
|
67
|
-
# A view object. This must be a JSON-encoded string.
|
68
|
-
# @option options [string] :external_id
|
69
|
-
# 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.
|
70
66
|
# @option options [string] :view_id
|
71
67
|
# A unique identifier of the view to be updated. Either view_id or external_id is required.
|
68
|
+
# @option options [string] :external_id
|
69
|
+
# 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.
|
70
|
+
# @option options [Object] :view
|
71
|
+
# A view object. This must be a JSON-encoded string.
|
72
72
|
# @option options [string] :hash
|
73
73
|
# A string that represents view state to protect against possible race conditions.
|
74
74
|
# @see https://api.slack.com/methods/views.update
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# This file was auto-generated by lib/tasks/web.rake
|
3
|
+
|
4
|
+
module Slack
|
5
|
+
module Web
|
6
|
+
module Api
|
7
|
+
module Endpoints
|
8
|
+
module WorkflowsFeatured
|
9
|
+
#
|
10
|
+
# Add featured workflows to a channel.
|
11
|
+
#
|
12
|
+
# @option options [string] :channel_id
|
13
|
+
# Channel to add featured workflow in.
|
14
|
+
# @option options [array] :trigger_ids
|
15
|
+
# Comma-separated array of trigger IDs to add; max 15.
|
16
|
+
# @see https://api.slack.com/methods/workflows.featured.add
|
17
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows.featured/workflows.featured.add.json
|
18
|
+
def workflows_featured_add(options = {})
|
19
|
+
raise ArgumentError, 'Required arguments :channel_id missing' if options[:channel_id].nil?
|
20
|
+
raise ArgumentError, 'Required arguments :trigger_ids missing' if options[:trigger_ids].nil?
|
21
|
+
post('workflows.featured.add', options)
|
22
|
+
end
|
23
|
+
|
24
|
+
#
|
25
|
+
# List the featured workflows for specified channels.
|
26
|
+
#
|
27
|
+
# @option options [array] :channel_ids
|
28
|
+
# Comma-separated array of channel IDs to list featured workflows for.
|
29
|
+
# @see https://api.slack.com/methods/workflows.featured.list
|
30
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows.featured/workflows.featured.list.json
|
31
|
+
def workflows_featured_list(options = {})
|
32
|
+
raise ArgumentError, 'Required arguments :channel_ids missing' if options[:channel_ids].nil?
|
33
|
+
post('workflows.featured.list', options)
|
34
|
+
end
|
35
|
+
|
36
|
+
#
|
37
|
+
# Remove featured workflows from a channel.
|
38
|
+
#
|
39
|
+
# @option options [string] :channel_id
|
40
|
+
# Channel to remove featured workflow from.
|
41
|
+
# @option options [array] :trigger_ids
|
42
|
+
# Comma-separated array of trigger IDs to remove; max 15.
|
43
|
+
# @see https://api.slack.com/methods/workflows.featured.remove
|
44
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows.featured/workflows.featured.remove.json
|
45
|
+
def workflows_featured_remove(options = {})
|
46
|
+
raise ArgumentError, 'Required arguments :channel_id missing' if options[:channel_id].nil?
|
47
|
+
raise ArgumentError, 'Required arguments :trigger_ids missing' if options[:trigger_ids].nil?
|
48
|
+
post('workflows.featured.remove', options)
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# Set featured workflows for a channel.
|
53
|
+
#
|
54
|
+
# @option options [string] :channel_id
|
55
|
+
# Channel to set featured workflows in.
|
56
|
+
# @option options [array] :trigger_ids
|
57
|
+
# Comma-separated array of trigger IDs that will replace any existing featured workflows in the channel; max 15.
|
58
|
+
# @see https://api.slack.com/methods/workflows.featured.set
|
59
|
+
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows.featured/workflows.featured.set.json
|
60
|
+
def workflows_featured_set(options = {})
|
61
|
+
raise ArgumentError, 'Required arguments :channel_id missing' if options[:channel_id].nil?
|
62
|
+
raise ArgumentError, 'Required arguments :trigger_ids missing' if options[:trigger_ids].nil?
|
63
|
+
post('workflows.featured.set', options)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -11,14 +11,14 @@ module Slack
|
|
11
11
|
#
|
12
12
|
# @option options [string] :trigger_id
|
13
13
|
# Encoded ID of the trigger.
|
14
|
+
# @option options [array] :user_ids
|
15
|
+
# List of encoded user IDs.
|
14
16
|
# @option options [array] :channel_ids
|
15
17
|
# List of encoded channel IDs.
|
16
|
-
# @option options [array] :org_ids
|
17
|
-
# List of encoded organization IDs.
|
18
18
|
# @option options [array] :team_ids
|
19
19
|
# List of encoded workspace IDs.
|
20
|
-
# @option options [array] :
|
21
|
-
# List of encoded
|
20
|
+
# @option options [array] :org_ids
|
21
|
+
# List of encoded organization IDs.
|
22
22
|
# @see https://api.slack.com/methods/workflows.triggers.permissions.add
|
23
23
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows.triggers.permissions/workflows.triggers.permissions.add.json
|
24
24
|
def workflows_triggers_permissions_add(options = {})
|
@@ -43,14 +43,14 @@ module Slack
|
|
43
43
|
#
|
44
44
|
# @option options [string] :trigger_id
|
45
45
|
# Encoded ID of the trigger.
|
46
|
+
# @option options [array] :user_ids
|
47
|
+
# List of encoded user IDs.
|
46
48
|
# @option options [array] :channel_ids
|
47
49
|
# List of encoded channel IDs.
|
48
|
-
# @option options [array] :org_ids
|
49
|
-
# List of encoded organization IDs.
|
50
50
|
# @option options [array] :team_ids
|
51
51
|
# List of encoded workspace IDs.
|
52
|
-
# @option options [array] :
|
53
|
-
# List of encoded
|
52
|
+
# @option options [array] :org_ids
|
53
|
+
# List of encoded organization IDs.
|
54
54
|
# @see https://api.slack.com/methods/workflows.triggers.permissions.remove
|
55
55
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows.triggers.permissions/workflows.triggers.permissions.remove.json
|
56
56
|
def workflows_triggers_permissions_remove(options = {})
|
@@ -61,23 +61,23 @@ module Slack
|
|
61
61
|
#
|
62
62
|
# Set the permission type for who can run a trigger
|
63
63
|
#
|
64
|
-
# @option options [enum] :permission_type
|
65
|
-
# The type of permission that defines who can run a trigger.
|
66
64
|
# @option options [string] :trigger_id
|
67
65
|
# Encoded ID of the trigger.
|
66
|
+
# @option options [enum] :permission_type
|
67
|
+
# The type of permission that defines who can run a trigger.
|
68
|
+
# @option options [array] :user_ids
|
69
|
+
# List of encoded user IDs.
|
68
70
|
# @option options [array] :channel_ids
|
69
71
|
# List of encoded channel IDs.
|
70
|
-
# @option options [array] :org_ids
|
71
|
-
# List of encoded organization IDs.
|
72
72
|
# @option options [array] :team_ids
|
73
73
|
# List of encoded workspace IDs.
|
74
|
-
# @option options [array] :
|
75
|
-
# List of encoded
|
74
|
+
# @option options [array] :org_ids
|
75
|
+
# List of encoded organization IDs.
|
76
76
|
# @see https://api.slack.com/methods/workflows.triggers.permissions.set
|
77
77
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows.triggers.permissions/workflows.triggers.permissions.set.json
|
78
78
|
def workflows_triggers_permissions_set(options = {})
|
79
|
-
raise ArgumentError, 'Required arguments :permission_type missing' if options[:permission_type].nil?
|
80
79
|
raise ArgumentError, 'Required arguments :trigger_id missing' if options[:trigger_id].nil?
|
80
|
+
raise ArgumentError, 'Required arguments :permission_type missing' if options[:permission_type].nil?
|
81
81
|
post('workflows.triggers.permissions.set', options)
|
82
82
|
end
|
83
83
|
end
|
@@ -77,6 +77,10 @@ require_relative 'endpoints/reactions'
|
|
77
77
|
require_relative 'endpoints/reminders'
|
78
78
|
require_relative 'endpoints/rtm'
|
79
79
|
require_relative 'endpoints/search'
|
80
|
+
require_relative 'endpoints/slackLists'
|
81
|
+
require_relative 'endpoints/slackLists_access'
|
82
|
+
require_relative 'endpoints/slackLists_download'
|
83
|
+
require_relative 'endpoints/slackLists_items'
|
80
84
|
require_relative 'endpoints/stars'
|
81
85
|
require_relative 'endpoints/team'
|
82
86
|
require_relative 'endpoints/team_billing'
|
@@ -92,7 +96,7 @@ require_relative 'endpoints/users_discoverableContacts'
|
|
92
96
|
require_relative 'endpoints/users_prefs'
|
93
97
|
require_relative 'endpoints/users_profile'
|
94
98
|
require_relative 'endpoints/views'
|
95
|
-
require_relative 'endpoints/
|
99
|
+
require_relative 'endpoints/workflows_featured'
|
96
100
|
require_relative 'endpoints/workflows_triggers_permissions'
|
97
101
|
|
98
102
|
module Slack
|
@@ -178,6 +182,10 @@ module Slack
|
|
178
182
|
include Reminders
|
179
183
|
include Rtm
|
180
184
|
include Search
|
185
|
+
include SlackLists
|
186
|
+
include SlackListsAccess
|
187
|
+
include SlackListsDownload
|
188
|
+
include SlackListsItems
|
181
189
|
include Stars
|
182
190
|
include Team
|
183
191
|
include TeamBilling
|
@@ -193,7 +201,7 @@ module Slack
|
|
193
201
|
include UsersPrefs
|
194
202
|
include UsersProfile
|
195
203
|
include Views
|
196
|
-
include
|
204
|
+
include WorkflowsFeatured
|
197
205
|
include WorkflowsTriggersPermissions
|
198
206
|
end
|
199
207
|
end
|