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.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +3 -10
- data/.rubocop_todo.yml +45 -67
- data/CHANGELOG.md +7 -0
- data/Gemfile +0 -9
- data/LICENSE.md +1 -1
- data/README.md +16 -219
- 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/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/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
- metadata +12 -35
- 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
@@ -11,10 +11,11 @@ module Slack
|
|
11
11
|
#
|
12
12
|
# @option options [array] :app_ids
|
13
13
|
# An array of app IDs to get app configs for.
|
14
|
+
# @option options [array] :rich_link_preview_types
|
15
|
+
# return apps with the corresponding rich link preview layouts.
|
14
16
|
# @see https://api.slack.com/methods/admin.apps.config.lookup
|
15
17
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps.config/admin.apps.config.lookup.json
|
16
18
|
def admin_apps_config_lookup(options = {})
|
17
|
-
raise ArgumentError, 'Required arguments :app_ids missing' if options[:app_ids].nil?
|
18
19
|
post('admin.apps.config.lookup', options)
|
19
20
|
end
|
20
21
|
|
@@ -23,10 +24,12 @@ module Slack
|
|
23
24
|
#
|
24
25
|
# @option options [Object] :app_id
|
25
26
|
# The encoded app ID to set the app config for.
|
26
|
-
# @option options [object] :domain_restrictions
|
27
|
-
# Domain restrictions for the app. Should be an object with two properties: urls and emails. Each is an array of strings, and each sets the allowed URLs and emails for connector authorization, respectively.
|
28
27
|
# @option options [enum] :workflow_auth_strategy
|
29
28
|
# The workflow auth permission. Can be one of builder_choice or end_user_only.
|
29
|
+
# @option options [enum] :rich_link_preview_type
|
30
|
+
# Indicates the app-level override for rich link preview. Unsupported for free teams.
|
31
|
+
# @option options [object] :domain_restrictions
|
32
|
+
# Domain restrictions for the app. Should be an object with two properties: urls and emails. Each is an array of strings, and each sets the allowed URLs and emails for connector authorization, respectively.
|
30
33
|
# @see https://api.slack.com/methods/admin.apps.config.set
|
31
34
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps.config/admin.apps.config.set.json
|
32
35
|
def admin_apps_config_set(options = {})
|
@@ -11,10 +11,10 @@ module Slack
|
|
11
11
|
#
|
12
12
|
# @option options [string] :request_id
|
13
13
|
# The id of the request to cancel.
|
14
|
-
# @option options [Object] :enterprise_id
|
15
|
-
# The ID of the enterprise where this request belongs.
|
16
14
|
# @option options [Object] :team_id
|
17
15
|
# The ID of the workspace where this request belongs.
|
16
|
+
# @option options [Object] :enterprise_id
|
17
|
+
# The ID of the enterprise where this request belongs.
|
18
18
|
# @see https://api.slack.com/methods/admin.apps.requests.cancel
|
19
19
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps.requests/admin.apps.requests.cancel.json
|
20
20
|
def admin_apps_requests_cancel(options = {})
|
@@ -25,16 +25,14 @@ module Slack
|
|
25
25
|
#
|
26
26
|
# List app requests for a team/workspace.
|
27
27
|
#
|
28
|
-
# @option options [boolean] :certified
|
29
|
-
# Include requests for certified apps.
|
30
|
-
# @option options [string] :cursor
|
31
|
-
# Set cursor to next_cursor returned by the previous call to list items in the next page.
|
32
|
-
# @option options [Object] :enterprise_id
|
33
|
-
# .
|
34
28
|
# @option options [integer] :limit
|
35
29
|
# The maximum number of items to return. Must be between 1 - 1000 both inclusive.
|
30
|
+
# @option options [string] :cursor
|
31
|
+
# Set cursor to next_cursor returned by the previous call to list items in the next page.
|
36
32
|
# @option options [Object] :team_id
|
37
|
-
#
|
33
|
+
# @option options [Object] :enterprise_id
|
34
|
+
# @option options [boolean] :certified
|
35
|
+
# Include requests for certified apps.
|
38
36
|
# @see https://api.slack.com/methods/admin.apps.requests.list
|
39
37
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps.requests/admin.apps.requests.list.json
|
40
38
|
def admin_apps_requests_list(options = {})
|
@@ -9,16 +9,14 @@ module Slack
|
|
9
9
|
#
|
10
10
|
# List restricted 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.restricted.list
|
23
21
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps.restricted/admin.apps.restricted.list.json
|
24
22
|
def admin_apps_restricted_list(options = {})
|
@@ -7,7 +7,7 @@ module Slack
|
|
7
7
|
module Endpoints
|
8
8
|
module AdminAuditAnomalyAllow
|
9
9
|
#
|
10
|
-
# API to allow
|
10
|
+
# API to allow Enterprise org admins to read the allow list of IP blocks and ASNs from the enterprise configuration.
|
11
11
|
#
|
12
12
|
# @see https://api.slack.com/methods/admin.audit.anomaly.allow.getItem
|
13
13
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.audit.anomaly.allow/admin.audit.anomaly.allow.getItem.json
|
@@ -16,12 +16,12 @@ module Slack
|
|
16
16
|
end
|
17
17
|
|
18
18
|
#
|
19
|
-
# API to allow
|
19
|
+
# API to allow Enterprise org admins to write/overwrite the allow list of IP blocks and ASNs from the enterprise configuration.
|
20
20
|
#
|
21
|
-
# @option options [array] :trusted_asns
|
22
|
-
# allow list of Autonomous System Numbers (ASN) in the enterprise grid configuarion.
|
23
21
|
# @option options [array] :trusted_cidr
|
24
|
-
# allow list of IPv4
|
22
|
+
# allow list of IPv4 addresses using cidr notation in the Enterprise organization configuration.
|
23
|
+
# @option options [array] :trusted_asns
|
24
|
+
# allow list of Autonomous System Numbers (ASN) in the Enterprise organization configuration.
|
25
25
|
# @see https://api.slack.com/methods/admin.audit.anomaly.allow.updateItem
|
26
26
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.audit.anomaly.allow/admin.audit.anomaly.allow.updateItem.json
|
27
27
|
def admin_audit_anomaly_allow_updateItem(options = {})
|
@@ -9,18 +9,18 @@ module Slack
|
|
9
9
|
#
|
10
10
|
# Assign entities to a particular authentication policy.
|
11
11
|
#
|
12
|
-
# @option options [array] :entity_ids
|
13
|
-
# Array of IDs to assign to the policy.
|
14
|
-
# @option options [Object] :entity_type
|
15
|
-
# The type of entity to assign to the policy. Currently, USER is supported.
|
16
12
|
# @option options [string] :policy_name
|
17
13
|
# The name of the authentication policy to assign the entities to. Currently, email_password is the only policy that may be used with this method.
|
14
|
+
# @option options [Object] :entity_type
|
15
|
+
# The type of entity to assign to the policy. Currently, USER is supported.
|
16
|
+
# @option options [array] :entity_ids
|
17
|
+
# Array of IDs to assign to the policy.
|
18
18
|
# @see https://api.slack.com/methods/admin.auth.policy.assignEntities
|
19
19
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.auth.policy/admin.auth.policy.assignEntities.json
|
20
20
|
def admin_auth_policy_assignEntities(options = {})
|
21
|
-
raise ArgumentError, 'Required arguments :entity_ids missing' if options[:entity_ids].nil?
|
22
|
-
raise ArgumentError, 'Required arguments :entity_type missing' if options[:entity_type].nil?
|
23
21
|
raise ArgumentError, 'Required arguments :policy_name missing' if options[:policy_name].nil?
|
22
|
+
raise ArgumentError, 'Required arguments :entity_type missing' if options[:entity_type].nil?
|
23
|
+
raise ArgumentError, 'Required arguments :entity_ids missing' if options[:entity_ids].nil?
|
24
24
|
post('admin.auth.policy.assignEntities', options)
|
25
25
|
end
|
26
26
|
|
@@ -29,12 +29,12 @@ module Slack
|
|
29
29
|
#
|
30
30
|
# @option options [string] :policy_name
|
31
31
|
# The name of the policy to fetch entities for. Currently, email_password is the only policy that may be used with this method.
|
32
|
-
# @option options [string] :cursor
|
33
|
-
# Set cursor to next_cursor returned by the previous call to list items in the next page.
|
34
32
|
# @option options [Object] :entity_type
|
35
33
|
# The type of entity to assign to the policy. Currently, USER is supported.
|
36
34
|
# @option options [integer] :limit
|
37
35
|
# The maximum number of items to return. Must be between 1 and 1000, both inclusive.
|
36
|
+
# @option options [string] :cursor
|
37
|
+
# Set cursor to next_cursor returned by the previous call to list items in the next page.
|
38
38
|
# @see https://api.slack.com/methods/admin.auth.policy.getEntities
|
39
39
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.auth.policy/admin.auth.policy.getEntities.json
|
40
40
|
def admin_auth_policy_getEntities(options = {})
|
@@ -51,18 +51,18 @@ module Slack
|
|
51
51
|
#
|
52
52
|
# Remove specified entities from a specified authentication policy.
|
53
53
|
#
|
54
|
-
# @option options [array] :entity_ids
|
55
|
-
# Encoded IDs of the entities you'd like to remove from the policy.
|
56
|
-
# @option options [Object] :entity_type
|
57
|
-
# The type of entity to assign to the policy. Currently, USER is supported.
|
58
54
|
# @option options [string] :policy_name
|
59
55
|
# The name of the policy to remove entities from. Currently, email_password is the only policy that may be used with this method.
|
56
|
+
# @option options [Object] :entity_type
|
57
|
+
# The type of entity to assign to the policy. Currently, USER is supported.
|
58
|
+
# @option options [array] :entity_ids
|
59
|
+
# Encoded IDs of the entities you'd like to remove from the policy.
|
60
60
|
# @see https://api.slack.com/methods/admin.auth.policy.removeEntities
|
61
61
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.auth.policy/admin.auth.policy.removeEntities.json
|
62
62
|
def admin_auth_policy_removeEntities(options = {})
|
63
|
-
raise ArgumentError, 'Required arguments :entity_ids missing' if options[:entity_ids].nil?
|
64
|
-
raise ArgumentError, 'Required arguments :entity_type missing' if options[:entity_type].nil?
|
65
63
|
raise ArgumentError, 'Required arguments :policy_name missing' if options[:policy_name].nil?
|
64
|
+
raise ArgumentError, 'Required arguments :entity_type missing' if options[:entity_type].nil?
|
65
|
+
raise ArgumentError, 'Required arguments :entity_ids missing' if options[:entity_ids].nil?
|
66
66
|
post('admin.auth.policy.removeEntities', options)
|
67
67
|
end
|
68
68
|
end
|
@@ -9,17 +9,17 @@ module Slack
|
|
9
9
|
#
|
10
10
|
# Create an Information Barrier
|
11
11
|
#
|
12
|
-
# @option options [array] :barriered_from_usergroup_ids
|
13
|
-
# A list of IDP Groups ids that the primary usergroup is to be barriered from.
|
14
12
|
# @option options [Object] :primary_usergroup_id
|
15
13
|
# The id of the primary IDP Group.
|
14
|
+
# @option options [array] :barriered_from_usergroup_ids
|
15
|
+
# A list of IDP Groups ids that the primary usergroup is to be barriered from.
|
16
16
|
# @option options [array] :restricted_subjects
|
17
17
|
# What kind of interactions are blocked by this barrier? For v1, we only support a list of all 3, eg im, mpim, call.
|
18
18
|
# @see https://api.slack.com/methods/admin.barriers.create
|
19
19
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.barriers/admin.barriers.create.json
|
20
20
|
def admin_barriers_create(options = {})
|
21
|
-
raise ArgumentError, 'Required arguments :barriered_from_usergroup_ids missing' if options[:barriered_from_usergroup_ids].nil?
|
22
21
|
raise ArgumentError, 'Required arguments :primary_usergroup_id missing' if options[:primary_usergroup_id].nil?
|
22
|
+
raise ArgumentError, 'Required arguments :barriered_from_usergroup_ids missing' if options[:barriered_from_usergroup_ids].nil?
|
23
23
|
raise ArgumentError, 'Required arguments :restricted_subjects missing' if options[:restricted_subjects].nil?
|
24
24
|
post('admin.barriers.create', options)
|
25
25
|
end
|
@@ -39,10 +39,10 @@ module Slack
|
|
39
39
|
#
|
40
40
|
# Get all Information Barriers for your organization
|
41
41
|
#
|
42
|
-
# @option options [string] :cursor
|
43
|
-
# Set cursor to next_cursor returned by the previous call to list items in the next page.
|
44
42
|
# @option options [integer] :limit
|
45
43
|
# The maximum number of items to return. Must be between 1 - 1000 both inclusive.
|
44
|
+
# @option options [string] :cursor
|
45
|
+
# Set cursor to next_cursor returned by the previous call to list items in the next page.
|
46
46
|
# @see https://api.slack.com/methods/admin.barriers.list
|
47
47
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.barriers/admin.barriers.list.json
|
48
48
|
def admin_barriers_list(options = {})
|
@@ -60,18 +60,18 @@ module Slack
|
|
60
60
|
#
|
61
61
|
# @option options [Object] :barrier_id
|
62
62
|
# The ID of the barrier you're trying to modify.
|
63
|
-
# @option options [array] :barriered_from_usergroup_ids
|
64
|
-
# A list of IDP Groups ids that the primary usergroup is to be barriered from.
|
65
63
|
# @option options [Object] :primary_usergroup_id
|
66
64
|
# The id of the primary IDP Group.
|
65
|
+
# @option options [array] :barriered_from_usergroup_ids
|
66
|
+
# A list of IDP Groups ids that the primary usergroup is to be barriered from.
|
67
67
|
# @option options [array] :restricted_subjects
|
68
68
|
# What kind of interactions are blocked by this barrier? For v1, we only support a list of all 3, eg im, mpim, call.
|
69
69
|
# @see https://api.slack.com/methods/admin.barriers.update
|
70
70
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.barriers/admin.barriers.update.json
|
71
71
|
def admin_barriers_update(options = {})
|
72
72
|
raise ArgumentError, 'Required arguments :barrier_id missing' if options[:barrier_id].nil?
|
73
|
-
raise ArgumentError, 'Required arguments :barriered_from_usergroup_ids missing' if options[:barriered_from_usergroup_ids].nil?
|
74
73
|
raise ArgumentError, 'Required arguments :primary_usergroup_id missing' if options[:primary_usergroup_id].nil?
|
74
|
+
raise ArgumentError, 'Required arguments :barriered_from_usergroup_ids missing' if options[:barriered_from_usergroup_ids].nil?
|
75
75
|
raise ArgumentError, 'Required arguments :restricted_subjects missing' if options[:restricted_subjects].nil?
|
76
76
|
post('admin.barriers.update', options)
|
77
77
|
end
|
@@ -45,15 +45,15 @@ module Slack
|
|
45
45
|
#
|
46
46
|
# Move public or private channels in bulk.
|
47
47
|
#
|
48
|
-
# @option options [array] :channel_ids
|
49
|
-
# An array of channel IDs.
|
50
48
|
# @option options [string] :target_team_id
|
51
49
|
# Target team ID.
|
50
|
+
# @option options [array] :channel_ids
|
51
|
+
# An array of channel IDs.
|
52
52
|
# @see https://api.slack.com/methods/admin.conversations.bulkMove
|
53
53
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations/admin.conversations.bulkMove.json
|
54
54
|
def admin_conversations_bulkMove(options = {})
|
55
|
-
raise ArgumentError, 'Required arguments :channel_ids missing' if options[:channel_ids].nil?
|
56
55
|
raise ArgumentError, 'Required arguments :target_team_id missing' if options[:target_team_id].nil?
|
56
|
+
raise ArgumentError, 'Required arguments :channel_ids missing' if options[:channel_ids].nil?
|
57
57
|
post('admin.conversations.bulkMove', options)
|
58
58
|
end
|
59
59
|
|
@@ -86,12 +86,12 @@ module Slack
|
|
86
86
|
#
|
87
87
|
# Create a public or private channel-based conversation.
|
88
88
|
#
|
89
|
-
# @option options [boolean] :is_private
|
90
|
-
# When true, creates a private channel instead of a public channel.
|
91
89
|
# @option options [string] :name
|
92
90
|
# Name of the public or private channel to create.
|
93
91
|
# @option options [string] :description
|
94
92
|
# Description of the public or private channel to create.
|
93
|
+
# @option options [boolean] :is_private
|
94
|
+
# When true, creates a private channel instead of a public channel.
|
95
95
|
# @option options [boolean] :org_wide
|
96
96
|
# When true, the channel will be available org-wide. Note: if the channel is not org_wide=true, you must specify a team_id for this channel.
|
97
97
|
# @option options [Object] :team_id
|
@@ -99,8 +99,8 @@ module Slack
|
|
99
99
|
# @see https://api.slack.com/methods/admin.conversations.create
|
100
100
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations/admin.conversations.create.json
|
101
101
|
def admin_conversations_create(options = {})
|
102
|
-
raise ArgumentError, 'Required arguments :is_private missing' if options[:is_private].nil?
|
103
102
|
raise ArgumentError, 'Required arguments :name missing' if options[:name].nil?
|
103
|
+
raise ArgumentError, 'Required arguments :is_private missing' if options[:is_private].nil?
|
104
104
|
post('admin.conversations.create', options)
|
105
105
|
end
|
106
106
|
|
@@ -139,7 +139,7 @@ module Slack
|
|
139
139
|
# @option options [Object] :channel_id
|
140
140
|
# The channel to be disconnected from some workspaces.
|
141
141
|
# @option options [array] :leaving_team_ids
|
142
|
-
#
|
142
|
+
# Used for disconnecting a team from a shared channel. Only one team ID may be passed at a time.
|
143
143
|
# @see https://api.slack.com/methods/admin.conversations.disconnectShared
|
144
144
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations/admin.conversations.disconnectShared.json
|
145
145
|
def admin_conversations_disconnectShared(options = {})
|
@@ -196,15 +196,15 @@ module Slack
|
|
196
196
|
#
|
197
197
|
# Invite a user to a public or private channel.
|
198
198
|
#
|
199
|
-
# @option options [Object] :channel_id
|
200
|
-
# The channel that the users will be invited to.
|
201
199
|
# @option options [array] :user_ids
|
202
200
|
# The users to invite.
|
201
|
+
# @option options [Object] :channel_id
|
202
|
+
# The channel that the users will be invited to.
|
203
203
|
# @see https://api.slack.com/methods/admin.conversations.invite
|
204
204
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations/admin.conversations.invite.json
|
205
205
|
def admin_conversations_invite(options = {})
|
206
|
-
raise ArgumentError, 'Required arguments :channel_id missing' if options[:channel_id].nil?
|
207
206
|
raise ArgumentError, 'Required arguments :user_ids missing' if options[:user_ids].nil?
|
207
|
+
raise ArgumentError, 'Required arguments :channel_id missing' if options[:channel_id].nil?
|
208
208
|
post('admin.conversations.invite', options)
|
209
209
|
end
|
210
210
|
|
@@ -230,21 +230,21 @@ module Slack
|
|
230
230
|
#
|
231
231
|
# Returns channels on the given team using the filters.
|
232
232
|
#
|
233
|
-
# @option options [integer] :last_message_activity_before
|
234
|
-
# Filter by public channels where the most recent message was sent before last_message_activity.
|
235
233
|
# @option options [array] :team_ids
|
236
234
|
# Array of team IDs to filter by.
|
235
|
+
# @option options [integer] :max_member_count
|
236
|
+
# Filter by public channels with member count equal to or less than the specified number.
|
237
|
+
# @option options [integer] :last_message_activity_before
|
238
|
+
# Filter by public channels where the most recent message was sent before last_message_activity.
|
237
239
|
# @option options [string] :cursor
|
238
240
|
# Set cursor to next_cursor returned in the previous call, to fetch the next page.
|
239
241
|
# @option options [integer] :limit
|
240
242
|
# Maximum number of results.
|
241
|
-
# @option options [integer] :max_member_count
|
242
|
-
# Filter by public channels with member count equal to or less than the specified number.
|
243
243
|
# @see https://api.slack.com/methods/admin.conversations.lookup
|
244
244
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations/admin.conversations.lookup.json
|
245
245
|
def admin_conversations_lookup(options = {})
|
246
|
-
raise ArgumentError, 'Required arguments :last_message_activity_before missing' if options[:last_message_activity_before].nil?
|
247
246
|
raise ArgumentError, 'Required arguments :team_ids missing' if options[:team_ids].nil?
|
247
|
+
raise ArgumentError, 'Required arguments :last_message_activity_before missing' if options[:last_message_activity_before].nil?
|
248
248
|
if block_given?
|
249
249
|
Pagination::Cursor.new(self, :admin_conversations_lookup, options).each do |page|
|
250
250
|
yield page
|
@@ -272,7 +272,6 @@ module Slack
|
|
272
272
|
# @option options [Object] :channel_id
|
273
273
|
# The channel to rename.
|
274
274
|
# @option options [string] :name
|
275
|
-
# .
|
276
275
|
# @see https://api.slack.com/methods/admin.conversations.rename
|
277
276
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations/admin.conversations.rename.json
|
278
277
|
def admin_conversations_rename(options = {})
|
@@ -284,22 +283,22 @@ module Slack
|
|
284
283
|
#
|
285
284
|
# Search for public or private channels in an Enterprise organization.
|
286
285
|
#
|
286
|
+
# @option options [array] :team_ids
|
287
|
+
# Comma separated string of team IDs, signifying the internal workspaces to search through.
|
287
288
|
# @option options [array] :connected_team_ids
|
288
289
|
# Array of encoded team IDs, signifying the external orgs to search through.
|
289
|
-
# @option options [string] :cursor
|
290
|
-
# Set cursor to next_cursor returned by the previous call to list items in the next page.
|
291
|
-
# @option options [integer] :limit
|
292
|
-
# Maximum number of items to be returned. Must be between 1 - 20 both inclusive. Default is 10.
|
293
290
|
# @option options [string] :query
|
294
291
|
# Name of the the channel to query by.
|
292
|
+
# @option options [integer] :limit
|
293
|
+
# Maximum number of items to be returned. Must be between 1 - 20 both inclusive. Default is 10.
|
294
|
+
# @option options [string] :cursor
|
295
|
+
# Set cursor to next_cursor returned by the previous call to list items in the next page.
|
295
296
|
# @option options [array] :search_channel_types
|
296
297
|
# The type of channel to include or exclude in the search. For example private will search private channels, while private_exclude will exclude them. For a full list of types, check the Types section.
|
297
298
|
# @option options [string] :sort
|
298
|
-
# Possible values are relevant (search ranking based on what we think is closest), name (alphabetical), member_count (number of users in the channel), and created (date channel was created). You can optionally pair this with the sort_dir arg to change how it is sorted.
|
299
|
+
# Possible values are relevant (search ranking based on what we think is closest), name (alphabetical), member_count (number of users in the channel), and created (date channel was created). You can optionally pair this with the sort_dir arg to change how it is sorted .
|
299
300
|
# @option options [string] :sort_dir
|
300
301
|
# 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).
|
301
|
-
# @option options [array] :team_ids
|
302
|
-
# Comma separated string of team IDs, signifying the internal workspaces to search through.
|
303
302
|
# @option options [boolean] :total_count_only
|
304
303
|
# Only return the total_count of channels. Omits channel data and allows access for admins without channel manager permissions.
|
305
304
|
# @see https://api.slack.com/methods/admin.conversations.search
|
@@ -346,16 +345,16 @@ module Slack
|
|
346
345
|
end
|
347
346
|
|
348
347
|
#
|
349
|
-
# Set the workspaces in an Enterprise
|
348
|
+
# Set the workspaces in an Enterprise org that connect to a public or private channel.
|
350
349
|
#
|
351
350
|
# @option options [string] :channel_id
|
352
351
|
# The encoded channel_id to add or remove to workspaces.
|
353
|
-
# @option options [boolean] :org_channel
|
354
|
-
# True if channel has to be converted to an org channel.
|
355
|
-
# @option options [array] :target_team_ids
|
356
|
-
# A comma-separated list of workspaces to which the channel should be shared. Not required if the channel is being shared org-wide.
|
357
352
|
# @option options [Object] :team_id
|
358
353
|
# The workspace to which the channel belongs if the channel is a local workspace channel. Omit this argument if the channel is a cross-workspace or org-wide shared channel.
|
354
|
+
# @option options [array] :target_team_ids
|
355
|
+
# A comma-separated list of workspaces to which the channel should be shared. Not required if the channel is being shared org-wide.
|
356
|
+
# @option options [boolean] :org_channel
|
357
|
+
# True if channel has to be converted to an org channel.
|
359
358
|
# @see https://api.slack.com/methods/admin.conversations.setTeams
|
360
359
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations/admin.conversations.setTeams.json
|
361
360
|
def admin_conversations_setTeams(options = {})
|
@@ -11,12 +11,12 @@ module Slack
|
|
11
11
|
#
|
12
12
|
# @option options [string] :channel_ids
|
13
13
|
# A comma-separated list of channels to filter to.
|
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 [integer] :limit
|
17
|
-
# The maximum number of items to return. Must be between 1 - 1000 both inclusive.
|
18
14
|
# @option options [string] :team_ids
|
19
15
|
# A comma-separated list of the workspaces to which the channels you would like returned belong.
|
16
|
+
# @option options [integer] :limit
|
17
|
+
# The maximum number of items to return. Must be between 1 - 1000 both inclusive.
|
18
|
+
# @option options [string] :cursor
|
19
|
+
# Set cursor to next_cursor returned by the previous call to list items in the next page.
|
20
20
|
# @see https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo
|
21
21
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations.ekm/admin.conversations.ekm.listOriginalConnectedChannelInfo.json
|
22
22
|
def admin_conversations_ekm_listOriginalConnectedChannelInfo(options = {})
|
@@ -9,17 +9,17 @@ module Slack
|
|
9
9
|
#
|
10
10
|
# Add an allowlist of IDP groups for accessing a channel
|
11
11
|
#
|
12
|
-
# @option options [Object] :channel_id
|
13
|
-
# The channel to link this group to.
|
14
|
-
# @option options [Object] :group_id
|
15
|
-
# The IDP Group ID to be an allowlist for the private channel.
|
16
12
|
# @option options [Object] :team_id
|
17
13
|
# The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization.
|
14
|
+
# @option options [Object] :group_id
|
15
|
+
# The IDP Group ID to be an allowlist for the private channel.
|
16
|
+
# @option options [Object] :channel_id
|
17
|
+
# The channel to link this group to.
|
18
18
|
# @see https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup
|
19
19
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations.restrictAccess/admin.conversations.restrictAccess.addGroup.json
|
20
20
|
def admin_conversations_restrictAccess_addGroup(options = {})
|
21
|
-
raise ArgumentError, 'Required arguments :channel_id missing' if options[:channel_id].nil?
|
22
21
|
raise ArgumentError, 'Required arguments :group_id missing' if options[:group_id].nil?
|
22
|
+
raise ArgumentError, 'Required arguments :channel_id missing' if options[:channel_id].nil?
|
23
23
|
post('admin.conversations.restrictAccess.addGroup', options)
|
24
24
|
end
|
25
25
|
|
@@ -27,7 +27,6 @@ module Slack
|
|
27
27
|
# List all IDP Groups linked to a channel
|
28
28
|
#
|
29
29
|
# @option options [Object] :channel_id
|
30
|
-
# .
|
31
30
|
# @option options [Object] :team_id
|
32
31
|
# The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization.
|
33
32
|
# @see https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups
|
@@ -40,18 +39,18 @@ module Slack
|
|
40
39
|
#
|
41
40
|
# Remove a linked IDP group linked from a private channel
|
42
41
|
#
|
43
|
-
# @option options [Object] :channel_id
|
44
|
-
# The channel to remove the linked group from.
|
45
|
-
# @option options [Object] :group_id
|
46
|
-
# The IDP Group ID to remove from the private channel.
|
47
42
|
# @option options [Object] :team_id
|
48
43
|
# The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization.
|
44
|
+
# @option options [Object] :group_id
|
45
|
+
# The IDP Group ID to remove from the private channel.
|
46
|
+
# @option options [Object] :channel_id
|
47
|
+
# The channel to remove the linked group from.
|
49
48
|
# @see https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup
|
50
49
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations.restrictAccess/admin.conversations.restrictAccess.removeGroup.json
|
51
50
|
def admin_conversations_restrictAccess_removeGroup(options = {})
|
52
|
-
raise ArgumentError, 'Required arguments :channel_id missing' if options[:channel_id].nil?
|
53
|
-
raise ArgumentError, 'Required arguments :group_id missing' if options[:group_id].nil?
|
54
51
|
raise ArgumentError, 'Required arguments :team_id missing' if options[:team_id].nil?
|
52
|
+
raise ArgumentError, 'Required arguments :group_id missing' if options[:group_id].nil?
|
53
|
+
raise ArgumentError, 'Required arguments :channel_id missing' if options[:channel_id].nil?
|
55
54
|
post('admin.conversations.restrictAccess.removeGroup', options)
|
56
55
|
end
|
57
56
|
end
|
@@ -24,20 +24,20 @@ module Slack
|
|
24
24
|
#
|
25
25
|
# Add an emoji alias.
|
26
26
|
#
|
27
|
-
# @option options [string] :alias_for
|
28
|
-
# Name of the emoji for which the alias is being made. Any wrapping whitespace or colons will be automatically trimmed.
|
29
27
|
# @option options [string] :name
|
30
28
|
# The new alias for the specified emoji. Any wrapping whitespace or colons will be automatically trimmed.
|
29
|
+
# @option options [string] :alias_for
|
30
|
+
# Name of the emoji for which the alias is being made. Any wrapping whitespace or colons will be automatically trimmed.
|
31
31
|
# @see https://api.slack.com/methods/admin.emoji.addAlias
|
32
32
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.emoji/admin.emoji.addAlias.json
|
33
33
|
def admin_emoji_addAlias(options = {})
|
34
|
-
raise ArgumentError, 'Required arguments :alias_for missing' if options[:alias_for].nil?
|
35
34
|
raise ArgumentError, 'Required arguments :name missing' if options[:name].nil?
|
35
|
+
raise ArgumentError, 'Required arguments :alias_for missing' if options[:alias_for].nil?
|
36
36
|
post('admin.emoji.addAlias', options)
|
37
37
|
end
|
38
38
|
|
39
39
|
#
|
40
|
-
# List emoji for an Enterprise
|
40
|
+
# List emoji for an Enterprise organization.
|
41
41
|
#
|
42
42
|
# @option options [string] :cursor
|
43
43
|
# Set cursor to next_cursor returned by the previous call to list items in the next page.
|
@@ -56,7 +56,7 @@ module Slack
|
|
56
56
|
end
|
57
57
|
|
58
58
|
#
|
59
|
-
# Remove an emoji across an Enterprise
|
59
|
+
# Remove an emoji across an Enterprise organization
|
60
60
|
#
|
61
61
|
# @option options [string] :name
|
62
62
|
# The name of the emoji to be removed. Colons (:myemoji:) around the value are not required, although they may be included.
|
@@ -9,14 +9,14 @@ module Slack
|
|
9
9
|
#
|
10
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.
|
14
16
|
# @option options [string] :cursor
|
15
17
|
# Set cursor to next_cursor returned by the previous call to list items in the next page.
|
16
18
|
# @option options [integer] :limit
|
17
19
|
# 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
20
|
# @see https://api.slack.com/methods/admin.functions.list
|
21
21
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.functions/admin.functions.list.json
|
22
22
|
def admin_functions_list(options = {})
|
@@ -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 = {})
|