slack-ruby-client 3.1.0 → 3.2.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/.coveralls.yml +0 -0
- data/.github/FUNDING.yml +0 -0
- data/.github/dependabot.yml +0 -0
- data/.github/workflows/danger-comment.yml +11 -0
- data/.github/workflows/danger.yml +13 -0
- data/.github/workflows/lint.yml +1 -1
- data/.github/workflows/test.yml +1 -1
- data/.github/workflows/update_api.yml +8 -10
- data/.gitignore +0 -0
- data/.gitmodules +0 -0
- data/.rspec +0 -0
- data/.rubocop.yml +0 -0
- data/.rubocop_todo.yml +5 -2
- data/.ruby-version +0 -0
- data/CHANGELOG.md +10 -1
- data/CONTRIBUTING.md +0 -0
- data/Dangerfile +4 -1
- data/Gemfile +3 -0
- data/LICENSE.md +0 -0
- data/README.md +1 -1
- data/RELEASING.md +0 -0
- data/Rakefile +0 -0
- data/SECURITY.md +0 -0
- data/UPGRADING.md +4 -0
- data/bin/commands/admin_analytics.rb +0 -0
- data/bin/commands/admin_analytics_messages.rb +36 -0
- data/bin/commands/admin_apps.rb +3 -0
- data/bin/commands/admin_apps_activities.rb +0 -0
- data/bin/commands/admin_apps_approved.rb +0 -0
- data/bin/commands/admin_apps_config.rb +0 -0
- data/bin/commands/admin_apps_requests.rb +0 -0
- data/bin/commands/admin_apps_restricted.rb +0 -0
- data/bin/commands/admin_audit_anomaly_allow.rb +0 -0
- data/bin/commands/admin_auth_policy.rb +0 -0
- data/bin/commands/admin_barriers.rb +0 -0
- data/bin/commands/admin_conversations.rb +10 -0
- data/bin/commands/admin_conversations_ekm.rb +0 -0
- data/bin/commands/admin_conversations_restrictAccess.rb +0 -0
- data/bin/commands/admin_emoji.rb +0 -0
- data/bin/commands/admin_functions.rb +0 -0
- data/bin/commands/admin_functions_permissions.rb +1 -0
- data/bin/commands/admin_inviteRequests.rb +0 -0
- data/bin/commands/admin_inviteRequests_approved.rb +0 -0
- data/bin/commands/admin_inviteRequests_denied.rb +0 -0
- data/bin/commands/admin_roles.rb +0 -0
- data/bin/commands/admin_teams.rb +0 -0
- data/bin/commands/admin_teams_admins.rb +0 -0
- data/bin/commands/admin_teams_owners.rb +0 -0
- data/bin/commands/admin_teams_settings.rb +0 -0
- data/bin/commands/admin_usergroups.rb +0 -0
- data/bin/commands/admin_users.rb +10 -8
- data/bin/commands/admin_users_session.rb +0 -0
- data/bin/commands/admin_users_unsupportedVersions.rb +0 -0
- data/bin/commands/admin_workflows.rb +0 -0
- data/bin/commands/admin_workflows_collaborators.rb +0 -0
- data/bin/commands/admin_workflows_permissions.rb +0 -0
- data/bin/commands/admin_workflows_triggers_types_permissions.rb +4 -3
- data/bin/commands/api.rb +0 -0
- data/bin/commands/apps.rb +0 -0
- data/bin/commands/apps_activities.rb +0 -0
- data/bin/commands/apps_auth_external.rb +0 -0
- data/bin/commands/apps_connections.rb +0 -0
- data/bin/commands/apps_datastore.rb +0 -0
- data/bin/commands/apps_event_authorizations.rb +0 -0
- data/bin/commands/apps_icon.rb +22 -0
- data/bin/commands/apps_manifest.rb +7 -6
- data/bin/commands/apps_user_connection.rb +21 -0
- data/bin/commands/assistant_search.rb +3 -2
- data/bin/commands/assistant_threads.rb +5 -2
- data/bin/commands/auth.rb +0 -0
- data/bin/commands/auth_teams.rb +0 -0
- data/bin/commands/blocks.rb +22 -0
- data/bin/commands/bookmarks.rb +6 -6
- data/bin/commands/bots.rb +0 -0
- data/bin/commands/calls.rb +0 -0
- data/bin/commands/calls_participants.rb +0 -0
- data/bin/commands/canvases.rb +0 -0
- data/bin/commands/canvases_access.rb +0 -0
- data/bin/commands/canvases_sections.rb +0 -0
- data/bin/commands/chat.rb +13 -6
- data/bin/commands/chat_scheduledMessages.rb +0 -0
- data/bin/commands/conversations.rb +1 -1
- data/bin/commands/conversations_canvases.rb +0 -0
- data/bin/commands/conversations_externalInvitePermissions.rb +0 -0
- data/bin/commands/conversations_requestSharedInvite.rb +0 -0
- data/bin/commands/dialog.rb +0 -0
- data/bin/commands/dnd.rb +0 -0
- data/bin/commands/emoji.rb +0 -0
- data/bin/commands/entity.rb +0 -0
- data/bin/commands/files.rb +2 -2
- data/bin/commands/files_comments.rb +0 -0
- data/bin/commands/files_remote.rb +0 -0
- data/bin/commands/functions.rb +0 -0
- data/bin/commands/functions_distributions_permissions.rb +0 -0
- data/bin/commands/functions_workflows_steps.rb +0 -0
- data/bin/commands/functions_workflows_steps_responses.rb +0 -0
- data/bin/commands/migration.rb +0 -0
- data/bin/commands/oauth.rb +0 -0
- data/bin/commands/oauth_v2.rb +1 -0
- data/bin/commands/oauth_v2_user.rb +27 -0
- data/bin/commands/openid_connect.rb +1 -0
- data/bin/commands/pins.rb +0 -0
- data/bin/commands/reactions.rb +0 -0
- data/bin/commands/reminders.rb +0 -0
- data/bin/commands/rtm.rb +0 -0
- data/bin/commands/search.rb +0 -0
- data/bin/commands/slackLists.rb +0 -0
- data/bin/commands/slackLists_access.rb +0 -0
- data/bin/commands/slackLists_download.rb +0 -0
- data/bin/commands/slackLists_items.rb +0 -0
- data/bin/commands/stars.rb +0 -0
- data/bin/commands/team.rb +0 -0
- data/bin/commands/team_billing.rb +0 -0
- data/bin/commands/team_externalTeams.rb +0 -0
- data/bin/commands/team_preferences.rb +0 -0
- data/bin/commands/team_profile.rb +0 -0
- data/bin/commands/tooling_tokens.rb +0 -0
- data/bin/commands/usergroups.rb +0 -0
- data/bin/commands/usergroups_users.rb +0 -0
- data/bin/commands/users.rb +2 -2
- data/bin/commands/users_admin.rb +0 -0
- data/bin/commands/users_discoverableContacts.rb +0 -0
- data/bin/commands/users_prefs.rb +0 -0
- data/bin/commands/users_profile.rb +0 -0
- data/bin/commands/views.rb +1 -0
- data/bin/commands/workflows_featured.rb +0 -0
- data/bin/commands/workflows_triggers_permissions.rb +0 -0
- data/examples/files_upload_v2/.env.example +0 -0
- data/examples/files_upload_v2/Gemfile +0 -0
- data/examples/files_upload_v2/README.md +0 -0
- data/examples/files_upload_v2/files_upload_v2.rb +0 -0
- data/examples/hi_web/Gemfile +0 -0
- data/examples/hi_web/hi.gif +0 -0
- data/examples/hi_web/hi.rb +0 -0
- data/examples/new_ticket/Gemfile +0 -0
- data/examples/new_ticket/new_ticket.rb +0 -0
- data/examples/oauth_v2/.env.example +0 -0
- data/examples/oauth_v2/Gemfile +0 -0
- data/examples/oauth_v2/README.md +0 -0
- data/lib/slack/config.rb +0 -0
- data/lib/slack/events/config.rb +0 -0
- data/lib/slack/events/request.rb +0 -0
- data/lib/slack/logger.rb +0 -0
- data/lib/slack/messages/formatting.rb +0 -0
- data/lib/slack/messages/message.rb +0 -0
- data/lib/slack/utils/security.rb +0 -0
- data/lib/slack/version.rb +1 -1
- data/lib/slack/web/api/endpoints/admin_analytics.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_analytics_messages.rb +64 -0
- data/lib/slack/web/api/endpoints/admin_apps.rb +6 -0
- data/lib/slack/web/api/endpoints/admin_apps_activities.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_apps_approved.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_apps_config.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_apps_requests.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_apps_restricted.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_audit_anomaly_allow.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_auth_policy.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_barriers.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_conversations.rb +15 -0
- data/lib/slack/web/api/endpoints/admin_conversations_ekm.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_emoji.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_functions.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_functions_permissions.rb +2 -1
- data/lib/slack/web/api/endpoints/admin_inviteRequests.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_inviteRequests_approved.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_inviteRequests_denied.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_roles.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_teams.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_teams_admins.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_teams_owners.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_teams_settings.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_usergroups.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_users.rb +10 -6
- data/lib/slack/web/api/endpoints/admin_users_session.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_users_unsupportedVersions.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_workflows.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_workflows_collaborators.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_workflows_permissions.rb +0 -0
- data/lib/slack/web/api/endpoints/admin_workflows_triggers_types_permissions.rb +3 -3
- data/lib/slack/web/api/endpoints/api.rb +0 -0
- data/lib/slack/web/api/endpoints/apps.rb +0 -0
- data/lib/slack/web/api/endpoints/apps_activities.rb +0 -0
- data/lib/slack/web/api/endpoints/apps_auth_external.rb +0 -0
- data/lib/slack/web/api/endpoints/apps_connections.rb +0 -0
- data/lib/slack/web/api/endpoints/apps_datastore.rb +0 -0
- data/lib/slack/web/api/endpoints/apps_event_authorizations.rb +0 -0
- data/lib/slack/web/api/endpoints/apps_icon.rb +28 -0
- data/lib/slack/web/api/endpoints/apps_manifest.rb +5 -3
- data/lib/slack/web/api/endpoints/apps_user_connection.rb +27 -0
- data/lib/slack/web/api/endpoints/assistant_search.rb +3 -1
- data/lib/slack/web/api/endpoints/assistant_threads.rb +8 -3
- data/lib/slack/web/api/endpoints/auth.rb +0 -0
- data/lib/slack/web/api/endpoints/auth_teams.rb +0 -0
- data/lib/slack/web/api/endpoints/blocks.rb +28 -0
- data/lib/slack/web/api/endpoints/bookmarks.rb +6 -12
- data/lib/slack/web/api/endpoints/bots.rb +0 -0
- data/lib/slack/web/api/endpoints/calls.rb +0 -0
- data/lib/slack/web/api/endpoints/calls_participants.rb +0 -0
- data/lib/slack/web/api/endpoints/canvases.rb +0 -0
- data/lib/slack/web/api/endpoints/canvases_access.rb +0 -0
- data/lib/slack/web/api/endpoints/canvases_sections.rb +0 -0
- data/lib/slack/web/api/endpoints/chat.rb +31 -13
- data/lib/slack/web/api/endpoints/chat_scheduledMessages.rb +0 -0
- data/lib/slack/web/api/endpoints/conversations.rb +1 -1
- data/lib/slack/web/api/endpoints/conversations_canvases.rb +0 -0
- data/lib/slack/web/api/endpoints/conversations_externalInvitePermissions.rb +0 -0
- data/lib/slack/web/api/endpoints/conversations_requestSharedInvite.rb +0 -0
- data/lib/slack/web/api/endpoints/dialog.rb +0 -0
- data/lib/slack/web/api/endpoints/dnd.rb +0 -0
- data/lib/slack/web/api/endpoints/emoji.rb +0 -0
- data/lib/slack/web/api/endpoints/entity.rb +0 -0
- data/lib/slack/web/api/endpoints/files.rb +1 -1
- data/lib/slack/web/api/endpoints/files_comments.rb +0 -0
- data/lib/slack/web/api/endpoints/files_remote.rb +0 -0
- data/lib/slack/web/api/endpoints/functions.rb +0 -0
- data/lib/slack/web/api/endpoints/functions_distributions_permissions.rb +0 -0
- data/lib/slack/web/api/endpoints/functions_workflows_steps.rb +0 -0
- data/lib/slack/web/api/endpoints/functions_workflows_steps_responses.rb +0 -0
- data/lib/slack/web/api/endpoints/migration.rb +0 -0
- data/lib/slack/web/api/endpoints/oauth.rb +0 -0
- data/lib/slack/web/api/endpoints/oauth_v2.rb +2 -0
- data/lib/slack/web/api/endpoints/oauth_v2_user.rb +37 -0
- data/lib/slack/web/api/endpoints/openid_connect.rb +2 -0
- data/lib/slack/web/api/endpoints/pins.rb +0 -0
- data/lib/slack/web/api/endpoints/reactions.rb +0 -0
- data/lib/slack/web/api/endpoints/reminders.rb +0 -0
- data/lib/slack/web/api/endpoints/rtm.rb +0 -0
- data/lib/slack/web/api/endpoints/search.rb +0 -0
- data/lib/slack/web/api/endpoints/slackLists.rb +0 -0
- data/lib/slack/web/api/endpoints/slackLists_access.rb +0 -0
- data/lib/slack/web/api/endpoints/slackLists_download.rb +0 -0
- data/lib/slack/web/api/endpoints/slackLists_items.rb +0 -0
- data/lib/slack/web/api/endpoints/stars.rb +0 -0
- data/lib/slack/web/api/endpoints/team.rb +0 -0
- data/lib/slack/web/api/endpoints/team_billing.rb +0 -0
- data/lib/slack/web/api/endpoints/team_externalTeams.rb +0 -0
- data/lib/slack/web/api/endpoints/team_preferences.rb +0 -0
- data/lib/slack/web/api/endpoints/team_profile.rb +0 -0
- data/lib/slack/web/api/endpoints/tooling_tokens.rb +0 -0
- data/lib/slack/web/api/endpoints/usergroups.rb +0 -0
- data/lib/slack/web/api/endpoints/usergroups_users.rb +0 -0
- data/lib/slack/web/api/endpoints/users.rb +1 -1
- data/lib/slack/web/api/endpoints/users_admin.rb +0 -0
- data/lib/slack/web/api/endpoints/users_discoverableContacts.rb +0 -0
- data/lib/slack/web/api/endpoints/users_prefs.rb +0 -0
- data/lib/slack/web/api/endpoints/users_profile.rb +0 -0
- data/lib/slack/web/api/endpoints/views.rb +1 -0
- data/lib/slack/web/api/endpoints/workflows_featured.rb +0 -0
- data/lib/slack/web/api/endpoints/workflows_triggers_permissions.rb +0 -0
- data/lib/slack/web/api/endpoints.rb +10 -0
- data/lib/slack/web/api/error.rb +0 -0
- data/lib/slack/web/api/errors/server_error.rb +0 -0
- data/lib/slack/web/api/errors/slack_error.rb +0 -0
- data/lib/slack/web/api/errors/too_many_requests_error.rb +0 -0
- data/lib/slack/web/api/errors.rb +112 -6
- data/lib/slack/web/api/helpers/files.rb +0 -0
- data/lib/slack/web/api/helpers.rb +0 -0
- data/lib/slack/web/api/mixins/conversations.id.rb +0 -0
- data/lib/slack/web/api/mixins/ids.id.rb +3 -1
- data/lib/slack/web/api/mixins/users.id.json +0 -0
- data/lib/slack/web/api/mixins/users.id.rb +0 -0
- data/lib/slack/web/api/mixins/users.search.json +0 -0
- data/lib/slack/web/api/mixins/users.search.rb +0 -0
- data/lib/slack/web/api/mixins.rb +0 -0
- data/lib/slack/web/api/options.rb +0 -0
- data/lib/slack/web/api/patches/.gitkeep +0 -0
- data/lib/slack/web/api/schema/group.json +0 -0
- data/lib/slack/web/api/schema/method.json +0 -0
- data/lib/slack/web/api/templates/command.erb +0 -0
- data/lib/slack/web/api/templates/endpoints.erb +0 -0
- data/lib/slack/web/api/templates/errors.erb +0 -0
- data/lib/slack/web/api/templates/method.erb +3 -1
- data/lib/slack/web/api/templates/method_spec.erb +32 -3
- data/lib/slack/web/client.rb +0 -0
- data/lib/slack/web/config.rb +0 -0
- data/lib/slack/web/faraday/connection.rb +0 -0
- data/lib/slack/web/faraday/options.rb +0 -0
- data/lib/slack/web/faraday/request.rb +0 -0
- data/lib/slack/web/faraday/response/raise_error.rb +0 -0
- data/lib/slack/web/faraday/response/wrap_error.rb +0 -0
- data/lib/slack/web/pagination/cursor.rb +0 -0
- data/lib/slack-ruby-client.rb +0 -0
- data/lib/slack.rb +0 -0
- data/lib/slack_ruby_client.rb +0 -0
- data/lib/tasks/git.rake +0 -0
- data/lib/tasks/update.rake +0 -0
- data/lib/tasks/web.rake +5 -2
- data/slack-ruby-client.gemspec +0 -0
- data/slack.png +0 -0
- metadata +13 -3
- data/.github/workflows/pr_lint.yml +0 -21
- data/Gemfile.danger +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a057a75d8b3d01ab039746d48088770fd5aca2edbc833e8963540d6f776a3e0
|
|
4
|
+
data.tar.gz: 2627e79b84280d7c15c822085d25e99ce6f74e3b231778a0a931029b6e113ede
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eb7c40566f3d080375bae84a179be662fa38f65b8288326896ad1ddb96d76d6a5e61f904bf864dc180cfa718fb2796bd7aa08cf58d265816cb72c9a4143ede14
|
|
7
|
+
data.tar.gz: d30ea958d1558ca9acf2eba48c8a36f423550abcec7c24b8780dc284bfe1067b1a5651c92571946ad49e47e2d74cd5b7ac3c7cc8ced42f64d70709d74fd4ffe5
|
data/.coveralls.yml
CHANGED
|
File without changes
|
data/.github/FUNDING.yml
CHANGED
|
File without changes
|
data/.github/dependabot.yml
CHANGED
|
File without changes
|
data/.github/workflows/lint.yml
CHANGED
data/.github/workflows/test.yml
CHANGED
|
@@ -11,7 +11,7 @@ jobs:
|
|
|
11
11
|
contents: write
|
|
12
12
|
pull-requests: write
|
|
13
13
|
steps:
|
|
14
|
-
- uses: actions/checkout@
|
|
14
|
+
- uses: actions/checkout@v7
|
|
15
15
|
with:
|
|
16
16
|
submodules: recursive
|
|
17
17
|
fetch-depth: 0
|
|
@@ -28,10 +28,10 @@ jobs:
|
|
|
28
28
|
run: rm -rf vendor
|
|
29
29
|
- name: Get current date
|
|
30
30
|
id: date
|
|
31
|
-
run: echo "
|
|
31
|
+
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
|
32
32
|
- name: Get slack-api-ref ref
|
|
33
33
|
id: api-ref
|
|
34
|
-
run: echo "
|
|
34
|
+
run: echo "api-ref=$(git rev-parse --short HEAD:lib/slack/web/api/slack-api-ref)" >> $GITHUB_OUTPUT
|
|
35
35
|
- name: GitHub App token
|
|
36
36
|
if: ${{ github.repository == 'slack-ruby/slack-ruby-client' }}
|
|
37
37
|
id: github_app_token
|
|
@@ -39,12 +39,13 @@ jobs:
|
|
|
39
39
|
with:
|
|
40
40
|
app_id: ${{ secrets.CI_APP_ID }}
|
|
41
41
|
private_key: ${{ secrets.CI_APP_PRIVATE_KEY }}
|
|
42
|
-
|
|
42
|
+
installation_retrieval_mode: id
|
|
43
|
+
installation_retrieval_payload: 36985419
|
|
43
44
|
- name: Create pull request
|
|
44
45
|
id: cpr
|
|
45
|
-
uses: peter-evans/create-pull-request@
|
|
46
|
+
uses: peter-evans/create-pull-request@v8
|
|
46
47
|
with:
|
|
47
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
48
|
+
token: ${{ steps.github_app_token.outputs.token || secrets.GITHUB_TOKEN }}
|
|
48
49
|
commit-message: Update API from slack-api-ref@${{ steps.api-ref.outputs.api-ref }} (${{ steps.date.outputs.date }})
|
|
49
50
|
title: Update API from slack-api-ref@${{ steps.api-ref.outputs.api-ref }}
|
|
50
51
|
body: |
|
|
@@ -72,10 +73,7 @@ jobs:
|
|
|
72
73
|
run: |
|
|
73
74
|
git config --local user.name 'slack-ruby-ci-bot'
|
|
74
75
|
git config --local user.email 'noreply@github.com'
|
|
75
|
-
git config --local --unset-all http.https://github.com/.extraheader || true
|
|
76
|
-
AUTH=$(echo -n "x-access-token:${{ steps.github_app_token.outputs.token || secrets.GITHUB_TOKEN }}" | base64)
|
|
77
|
-
echo "::add-mask::${AUTH}"
|
|
78
|
-
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic ${AUTH}"
|
|
79
76
|
git add CHANGELOG.md
|
|
80
77
|
git commit --amend --no-edit
|
|
78
|
+
git remote set-url origin https://x-access-token:${{ steps.github_app_token.outputs.token || secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
|
|
81
79
|
git push origin automated-api-update -f
|
data/.gitignore
CHANGED
|
File without changes
|
data/.gitmodules
CHANGED
|
File without changes
|
data/.rspec
CHANGED
|
File without changes
|
data/.rubocop.yml
CHANGED
|
File without changes
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on
|
|
3
|
+
# on 2026-07-05 15:28:32 UTC using RuboCop version 1.26.1.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
@@ -33,6 +33,9 @@ Metrics/CyclomaticComplexity:
|
|
|
33
33
|
Metrics/MethodLength:
|
|
34
34
|
Max: 45
|
|
35
35
|
|
|
36
|
+
Metrics/ModuleLength:
|
|
37
|
+
Enabled: false
|
|
38
|
+
|
|
36
39
|
# Offense count: 1
|
|
37
40
|
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
|
|
38
41
|
Metrics/ParameterLists:
|
|
@@ -96,7 +99,7 @@ RSpec/ContextWording:
|
|
|
96
99
|
- 'spec/slack/web/client_spec.rb'
|
|
97
100
|
- 'spec/slack/web/faraday/request_spec.rb'
|
|
98
101
|
|
|
99
|
-
# Offense count:
|
|
102
|
+
# Offense count: 36
|
|
100
103
|
# Configuration parameters: CountAsOne.
|
|
101
104
|
RSpec/ExampleLength:
|
|
102
105
|
Max: 17
|
data/.ruby-version
CHANGED
|
File without changes
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
### 3.
|
|
1
|
+
### 3.2.0 (2026/07/05)
|
|
2
|
+
|
|
3
|
+
* [#581](https://github.com/slack-ruby/slack-ruby-client/pull/581): Migrate Danger to use danger-pr-comment workflow - [@dblock](https://github.com/dblock).
|
|
4
|
+
* [#583](https://github.com/slack-ruby/slack-ruby-client/pull/583): Not found errors raised by id_for use more specific error classes when they exist - [@eizengan](https://github.com/eizengan).
|
|
5
|
+
* [#585](https://github.com/slack-ruby/slack-ruby-client/pull/585): Fix ci not triggering on automated api update prs - [@Copilot](https://github.com/Copilot).
|
|
6
|
+
* [#588](https://github.com/slack-ruby/slack-ruby-client/pull/588): Fix text/markdown_text mutual exclusion in chat methods - [@dblock](https://github.com/dblock).
|
|
7
|
+
* [#589](https://github.com/slack-ruby/slack-ruby-client/pull/589): Fix Ruby-version-dependent hash literal syntax in generated specs - [@dblock](https://github.com/dblock).
|
|
8
|
+
* [#578](https://github.com/slack-ruby/slack-ruby-client/pull/578): Update API from [slack-api-ref@38cb2f4](https://github.com/slack-ruby/slack-api-ref/commit/38cb2f4) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot).
|
|
9
|
+
|
|
10
|
+
### 3.1.0 (2025/11/15)
|
|
2
11
|
|
|
3
12
|
* [#576](https://github.com/slack-ruby/slack-ruby-client/pull/576): Add support for `blocks` in `files_upload_v2` - [@childish-sambino](https://github.com/childish-sambino).
|
|
4
13
|
* [#574](https://github.com/slack-ruby/slack-ruby-client/pull/574): Update API from [slack-api-ref@bd5dd34](https://github.com/slack-ruby/slack-api-ref/commit/bd5dd34) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot).
|
data/CONTRIBUTING.md
CHANGED
|
File without changes
|
data/Dangerfile
CHANGED
data/Gemfile
CHANGED
data/LICENSE.md
CHANGED
|
File without changes
|
data/README.md
CHANGED
|
@@ -70,7 +70,7 @@ A Ruby client for the Slack [Web](https://api.slack.com/web) and [Events](https:
|
|
|
70
70
|
|
|
71
71
|
## Stable Release
|
|
72
72
|
|
|
73
|
-
You're reading the documentation for the **stable** release of slack-ruby-client. See [UPGRADING](UPGRADING.md) when upgrading from an older version.
|
|
73
|
+
You're reading the documentation for the **stable** release of slack-ruby-client, 3.2.0. See [UPGRADING](UPGRADING.md) when upgrading from an older version.
|
|
74
74
|
|
|
75
75
|
## Installation
|
|
76
76
|
|
data/RELEASING.md
CHANGED
|
File without changes
|
data/Rakefile
CHANGED
|
File without changes
|
data/SECURITY.md
CHANGED
|
File without changes
|
data/UPGRADING.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
Upgrading Slack-Ruby-Client
|
|
2
2
|
===========================
|
|
3
3
|
|
|
4
|
+
### Upgrading to >= 3.2.0
|
|
5
|
+
|
|
6
|
+
[#583](https://github.com/slack-ruby/slack-ruby-client/pull/583) modifies the error types raised when a nonexistent #channel-name or @user-handle is looked up. These will now raise `ChannelNotFound` and `UserNotFound` respectively, whereas they previously raised a `SlackError`. If your code relies on these types without accounting for inheritance, it will need to be migrated. Notably, `rescue SlackError` will continue to work as normal, since both error classes inherit from it.
|
|
7
|
+
|
|
4
8
|
### Upgrading to >= 3.0.0
|
|
5
9
|
|
|
6
10
|
Support for the [RTM API](https://docs.slack.dev/tools/java-slack-sdk/guides/rtm/) has been removed in [#573](https://github.com/slack-ruby/slack-ruby-client/pull/573). By now you should have [migrated your app to granular permissions](https://code.dblock.org/2020/11/30/migrating-classic-slack-ruby-bots-to-granular-permissions.html), and you should lock your slack-ruby-client to 2.x for those bots. Next, to remove RTM components we found it more effective to just [write a new version of a bot](https://code.dblock.org/2024/06/30/writing-a-channel-slack-bot.html) and avoid a complex migration.
|
|
File without changes
|
|
@@ -0,0 +1,36 @@
|
|
|
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 'AdminAnalyticsMessages methods.'
|
|
8
|
+
command 'admin_analytics_messages' do |g|
|
|
9
|
+
g.desc 'Retrieves activity metrics for messages from a given channel.'
|
|
10
|
+
g.long_desc %( Retrieves activity metrics for messages from a given channel. )
|
|
11
|
+
g.command 'activity' do |c|
|
|
12
|
+
c.flag 'channel', desc: 'Channel ID for channel of the message activity to query.'
|
|
13
|
+
c.flag 'oldest_ts', desc: 'Oldest timestamp to include in the results. Defaults to 7 days before current time. If not passed while still passing the latest_ts parameter, defaults to 7 days before latest_ts.'
|
|
14
|
+
c.flag 'latest_ts', desc: 'Most recent timestamp to include in results. Defaults to current time. If not passed while still passing the oldest_ts parameter, defaults to 7 days after oldest_ts.'
|
|
15
|
+
c.flag 'cursor', desc: "Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first 'page' of the collection."
|
|
16
|
+
c.flag 'limit', desc: 'Maximum number of entries to return. The maximum limit is 100.'
|
|
17
|
+
c.action do |_global_options, options, _args|
|
|
18
|
+
puts JSON.dump(@client.admin_analytics_messages_activity(options))
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
g.desc 'Retrieves metadata for a list of messages from a given channel.'
|
|
23
|
+
g.long_desc %( Retrieves metadata for a list of messages from a given channel. )
|
|
24
|
+
g.command 'metadata' do |c|
|
|
25
|
+
c.flag 'channel', desc: 'Channel ID for channel containing the messages to query.'
|
|
26
|
+
c.flag 'oldest_ts', desc: 'Oldest timestamp to include in the results.'
|
|
27
|
+
c.flag 'latest_ts', desc: 'Most recent timestamp to include in the results. If not passed, defaults to current time.'
|
|
28
|
+
c.flag 'cursor', desc: "Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first 'page' of the collection. See pagination for more details."
|
|
29
|
+
c.action do |_global_options, options, _args|
|
|
30
|
+
puts JSON.dump(@client.admin_analytics_messages_metadata(options))
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
data/bin/commands/admin_apps.rb
CHANGED
|
@@ -9,10 +9,13 @@ module Slack
|
|
|
9
9
|
g.desc 'Approve an app for installation on a workspace.'
|
|
10
10
|
g.long_desc %( Approve an app for installation on a workspace. )
|
|
11
11
|
g.command 'approve' do |c|
|
|
12
|
+
c.flag 'allow_child_auto_install', desc: 'Auto-create an Admin-Approved App automation rule that pre-approves future child app installs from this manager app.'
|
|
12
13
|
c.flag 'app_id', desc: 'The id of the app to approve.'
|
|
13
14
|
c.flag 'request_id', desc: 'The id of the request to approve.'
|
|
14
15
|
c.flag 'team_id', desc: 'The ID of the workspace to approve the app on.'
|
|
15
16
|
c.flag 'enterprise_id', desc: 'The ID of the enterprise to approve the app on.'
|
|
17
|
+
c.flag 'user_scopes', desc: 'User scopes to approve for the app.'
|
|
18
|
+
c.flag 'bot_scopes', desc: 'Bot scopes to approve for the app.'
|
|
16
19
|
c.action do |_global_options, options, _args|
|
|
17
20
|
puts JSON.dump(@client.admin_apps_approve(options))
|
|
18
21
|
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -43,6 +43,16 @@ module Slack
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
+
g.desc 'Exclude channels from Slack AI in bulk'
|
|
47
|
+
g.long_desc %( Exclude channels from Slack AI in bulk )
|
|
48
|
+
g.command 'bulkSetExcludeFromSlackAi' do |c|
|
|
49
|
+
c.flag 'channel_ids', desc: 'An array of channel IDs to exclude from Slack AI.'
|
|
50
|
+
c.flag 'exclude', desc: 'Whether the channels should be excluded from Slack AI.'
|
|
51
|
+
c.action do |_global_options, options, _args|
|
|
52
|
+
puts JSON.dump(@client.admin_conversations_bulkSetExcludeFromSlackAi(options))
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
46
56
|
g.desc 'Convert a public channel to a private channel.'
|
|
47
57
|
g.long_desc %( Convert a public channel to a private channel. )
|
|
48
58
|
g.command 'convertToPrivate' do |c|
|
|
File without changes
|
|
File without changes
|
data/bin/commands/admin_emoji.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -21,6 +21,7 @@ module Slack
|
|
|
21
21
|
c.flag 'function_id', desc: 'The function ID to set permissions for.'
|
|
22
22
|
c.flag 'visibility', desc: 'The function visibility.'
|
|
23
23
|
c.flag 'user_ids', desc: 'List of user IDs to allow for named_entities visibility.'
|
|
24
|
+
c.flag 'permissions', desc: 'Array of permissions for the function.'
|
|
24
25
|
c.action do |_global_options, options, _args|
|
|
25
26
|
puts JSON.dump(@client.admin_functions_permissions_set(options))
|
|
26
27
|
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/bin/commands/admin_roles.rb
CHANGED
|
File without changes
|
data/bin/commands/admin_teams.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/bin/commands/admin_users.rb
CHANGED
|
@@ -55,6 +55,8 @@ module Slack
|
|
|
55
55
|
c.flag 'is_active', desc: 'If true, only active users will be returned. If false, only deactivated users will be returned. Default is true.'
|
|
56
56
|
c.flag 'include_deactivated_user_workspaces', desc: 'Only applies with org token and no team_id. If true, return workspaces for a user even if they may be deactivated on them. If false, return workspaces for a user only when user is active on them. Default is false.'
|
|
57
57
|
c.flag 'only_guests', desc: 'If true, returns only guests and their expiration dates that belong to the team_id.'
|
|
58
|
+
c.flag 'include_admins', desc: 'If true, only admin users will be returned (excludes owners). Returns all admins and owners when combined with include_owners. Cannot be used together with only_guests.'
|
|
59
|
+
c.flag 'include_owners', desc: 'If true, only owner users will be returned. Cannot be used together with only_guests.'
|
|
58
60
|
c.flag 'limit', desc: 'Limit for how many users to be retrieved per page.'
|
|
59
61
|
c.action do |_global_options, options, _args|
|
|
60
62
|
puts JSON.dump(@client.admin_users_list(options))
|
|
@@ -71,10 +73,10 @@ module Slack
|
|
|
71
73
|
end
|
|
72
74
|
end
|
|
73
75
|
|
|
74
|
-
g.desc 'Set an existing regular user or owner to be a workspace admin.'
|
|
75
|
-
g.long_desc %( Set an existing regular user or owner to be a workspace admin. )
|
|
76
|
+
g.desc 'Set an existing regular user or owner to be a workspace or org admin.'
|
|
77
|
+
g.long_desc %( Set an existing regular user or owner to be a workspace or org admin. )
|
|
76
78
|
g.command 'setAdmin' do |c|
|
|
77
|
-
c.flag 'team_id', desc: 'The ID
|
|
79
|
+
c.flag 'team_id', desc: 'The ID of the workspace or organization.'
|
|
78
80
|
c.flag 'user_id', desc: 'The ID of the user to designate as an admin.'
|
|
79
81
|
c.action do |_global_options, options, _args|
|
|
80
82
|
puts JSON.dump(@client.admin_users_setAdmin(options))
|
|
@@ -92,11 +94,11 @@ module Slack
|
|
|
92
94
|
end
|
|
93
95
|
end
|
|
94
96
|
|
|
95
|
-
g.desc 'Set an existing regular user or admin to be a workspace owner.'
|
|
96
|
-
g.long_desc %( Set an existing regular user or admin to be a workspace owner. )
|
|
97
|
+
g.desc 'Set an existing regular user or admin to be a workspace or org owner.'
|
|
98
|
+
g.long_desc %( Set an existing regular user or admin to be a workspace or org owner. )
|
|
97
99
|
g.command 'setOwner' do |c|
|
|
98
|
-
c.flag 'team_id', desc: 'The ID
|
|
99
|
-
c.flag 'user_id', desc: '
|
|
100
|
+
c.flag 'team_id', desc: 'The ID of the workspace or organization.'
|
|
101
|
+
c.flag 'user_id', desc: 'ID of the user to promote to owner.'
|
|
100
102
|
c.action do |_global_options, options, _args|
|
|
101
103
|
puts JSON.dump(@client.admin_users_setOwner(options))
|
|
102
104
|
end
|
|
@@ -105,7 +107,7 @@ module Slack
|
|
|
105
107
|
g.desc 'Set an existing guest user, admin user, or owner to be a regular user.'
|
|
106
108
|
g.long_desc %( Set an existing guest user, admin user, or owner to be a regular user. )
|
|
107
109
|
g.command 'setRegular' do |c|
|
|
108
|
-
c.flag 'team_id', desc: 'The ID
|
|
110
|
+
c.flag 'team_id', desc: 'The ID of the workspace or organization.'
|
|
109
111
|
c.flag 'user_id', desc: 'The ID of the user to designate as a regular user.'
|
|
110
112
|
c.action do |_global_options, options, _args|
|
|
111
113
|
puts JSON.dump(@client.admin_users_setRegular(options))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,10 +6,10 @@ module Slack
|
|
|
6
6
|
class App
|
|
7
7
|
desc 'AdminWorkflowsTriggersTypesPermissions methods.'
|
|
8
8
|
command 'admin_workflows_triggers_types_permissions' do |g|
|
|
9
|
-
g.desc '
|
|
10
|
-
g.long_desc %(
|
|
9
|
+
g.desc 'List the permissions for using each trigger type.'
|
|
10
|
+
g.long_desc %( List the permissions for using each trigger type. )
|
|
11
11
|
g.command 'lookup' do |c|
|
|
12
|
-
c.flag 'trigger_type_ids', desc: 'The trigger
|
|
12
|
+
c.flag 'trigger_type_ids', desc: 'The trigger type IDs for which to get the permissions.'
|
|
13
13
|
c.action do |_global_options, options, _args|
|
|
14
14
|
puts JSON.dump(@client.admin_workflows_triggers_types_permissions_lookup(options))
|
|
15
15
|
end
|
|
@@ -21,6 +21,7 @@ module Slack
|
|
|
21
21
|
c.flag 'id', desc: 'The trigger type ID for which to set the permissions.'
|
|
22
22
|
c.flag 'visibility', desc: 'The function visibility.'
|
|
23
23
|
c.flag 'user_ids', desc: 'List of user IDs to allow for named_entities visibility.'
|
|
24
|
+
c.flag 'permissions', desc: ''
|
|
24
25
|
c.action do |_global_options, options, _args|
|
|
25
26
|
puts JSON.dump(@client.admin_workflows_triggers_types_permissions_set(options))
|
|
26
27
|
end
|
data/bin/commands/api.rb
CHANGED
|
File without changes
|
data/bin/commands/apps.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
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 'AppsIcon methods.'
|
|
8
|
+
command 'apps_icon' do |g|
|
|
9
|
+
g.desc 'Sets the app icon'
|
|
10
|
+
g.long_desc %( Sets the app icon )
|
|
11
|
+
g.command 'set' do |c|
|
|
12
|
+
c.flag 'app_id', desc: 'The ID of the app whose icon you want to set.'
|
|
13
|
+
c.flag 'file', desc: 'File contents via multipart/form-data.'
|
|
14
|
+
c.flag 'url', desc: 'URL of a publicly hosted image.'
|
|
15
|
+
c.action do |_global_options, options, _args|
|
|
16
|
+
puts JSON.dump(@client.apps_icon_set(options))
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -10,13 +10,14 @@ module Slack
|
|
|
10
10
|
g.long_desc %( Create an app from an app manifest. )
|
|
11
11
|
g.command 'create' do |c|
|
|
12
12
|
c.flag 'manifest', desc: 'A JSON app manifest encoded as a string. This manifest must use a valid app manifest schema - read our guide to creating one.'
|
|
13
|
+
c.flag 'team_id', desc: 'When called with an org token, which specific team to create app on.'
|
|
13
14
|
c.action do |_global_options, options, _args|
|
|
14
15
|
puts JSON.dump(@client.apps_manifest_create(options))
|
|
15
16
|
end
|
|
16
17
|
end
|
|
17
18
|
|
|
18
|
-
g.desc 'Permanently deletes an app created through app manifests'
|
|
19
|
-
g.long_desc %( Permanently deletes an app created through app manifests )
|
|
19
|
+
g.desc 'Permanently deletes an app created through app manifests. When called with a manager app token, this method can only delete apps that were created by that manager app.'
|
|
20
|
+
g.long_desc %( Permanently deletes an app created through app manifests. When called with a manager app token, this method can only delete apps that were created by that manager app. )
|
|
20
21
|
g.command 'delete' do |c|
|
|
21
22
|
c.flag 'app_id', desc: 'The ID of the app you want to delete.'
|
|
22
23
|
c.action do |_global_options, options, _args|
|
|
@@ -24,8 +25,8 @@ module Slack
|
|
|
24
25
|
end
|
|
25
26
|
end
|
|
26
27
|
|
|
27
|
-
g.desc 'Export an app manifest from an existing app'
|
|
28
|
-
g.long_desc %( Export an app manifest from an existing app )
|
|
28
|
+
g.desc 'Export an app manifest from an existing app. When called with a manager app token, this method can only export apps that were created by that manager app.'
|
|
29
|
+
g.long_desc %( Export an app manifest from an existing app. When called with a manager app token, this method can only export apps that were created by that manager app. )
|
|
29
30
|
g.command 'export' do |c|
|
|
30
31
|
c.flag 'app_id', desc: 'The ID of the app whose configuration you want to export as a manifest.'
|
|
31
32
|
c.action do |_global_options, options, _args|
|
|
@@ -33,8 +34,8 @@ module Slack
|
|
|
33
34
|
end
|
|
34
35
|
end
|
|
35
36
|
|
|
36
|
-
g.desc 'Update an app from an app manifest'
|
|
37
|
-
g.long_desc %( Update an app from an app manifest )
|
|
37
|
+
g.desc 'Update an app from an app manifest. When called with a manager app token, this method can only update apps that were created by that manager app.'
|
|
38
|
+
g.long_desc %( Update an app from an app manifest. When called with a manager app token, this method can only update apps that were created by that manager app. )
|
|
38
39
|
g.command 'update' do |c|
|
|
39
40
|
c.flag 'manifest', desc: 'A JSON app manifest encoded as a string. This manifest must use a valid app manifest schema - read our guide to creating one. As this method entirely _replaces_ any previous configuration, manifest must contain both unmodified and modified fields.'
|
|
40
41
|
c.flag 'app_id', desc: 'The ID of the app whose configuration you want to update.'
|
|
@@ -0,0 +1,21 @@
|
|
|
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 'AppsUserConnection methods.'
|
|
8
|
+
command 'apps_user_connection' do |g|
|
|
9
|
+
g.desc 'Updates the connection status between a user and an app.'
|
|
10
|
+
g.long_desc %( Updates the connection status between a user and an app. )
|
|
11
|
+
g.command 'update' do |c|
|
|
12
|
+
c.flag 'user_id', desc: 'The ID of the user for the status update.'
|
|
13
|
+
c.flag 'status', desc: 'The status that should be set for the user.'
|
|
14
|
+
c.action do |_global_options, options, _args|
|
|
15
|
+
puts JSON.dump(@client.apps_user_connection_update(options))
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -6,8 +6,8 @@ module Slack
|
|
|
6
6
|
class App
|
|
7
7
|
desc 'AssistantSearch methods.'
|
|
8
8
|
command 'assistant_search' do |g|
|
|
9
|
-
g.desc 'Searches messages across your Slack organization
|
|
10
|
-
g.long_desc %( Searches messages across your Slack organization
|
|
9
|
+
g.desc 'Searches messages, files, channels and users across your Slack organization.'
|
|
10
|
+
g.long_desc %( Searches messages, files, channels and users across your Slack organization. )
|
|
11
11
|
g.command 'context' do |c|
|
|
12
12
|
c.flag 'query', desc: 'User prompt or search query.'
|
|
13
13
|
c.flag 'action_token', desc: 'Send action_token as received in a message event.'
|
|
@@ -28,6 +28,7 @@ module Slack
|
|
|
28
28
|
c.flag 'term_clauses', desc: 'A list of term clauses. A term clause is a string with search terms. Search results returned will match every term clause specified (i.e., conjunctive normal form).'
|
|
29
29
|
c.flag 'modifiers', desc: 'A string containing only modifiers in the format of modifier:value. Search results returned will match the modifier value. For now modifiers only affect term clauses.'
|
|
30
30
|
c.flag 'include_archived_channels', desc: 'Whether to include archived channels in the search results.'
|
|
31
|
+
c.flag 'disable_semantic_search', desc: 'Whether to disable semantic search. When true, only keyword-based search is used. Defaults to false.'
|
|
31
32
|
c.action do |_global_options, options, _args|
|
|
32
33
|
puts JSON.dump(@client.assistant_search_context(options))
|
|
33
34
|
end
|
|
@@ -11,8 +11,11 @@ module Slack
|
|
|
11
11
|
g.command 'setStatus' do |c|
|
|
12
12
|
c.flag 'channel_id', desc: 'Channel ID containing the assistant thread.'
|
|
13
13
|
c.flag 'thread_ts', desc: 'Message timestamp of the thread of where to set the status.'
|
|
14
|
-
c.flag 'status', desc: "Status of the specified bot user, e.g
|
|
15
|
-
c.flag 'loading_messages', desc: 'The list of messages to rotate through as a loading indicator.'
|
|
14
|
+
c.flag 'status', desc: "Status of the specified bot user, e.g., 'is thinking...'. A two minute timeout applies, which will cause the status to be removed if no message has been sent."
|
|
15
|
+
c.flag 'loading_messages', desc: 'The list of messages to rotate through as a loading indicator. Maximum of 10 messages.'
|
|
16
|
+
c.flag 'icon_emoji', desc: 'Emoji to use as the icon for this message. Overrides icon_url.'
|
|
17
|
+
c.flag 'icon_url', desc: 'Image URL to use as the icon for this message.'
|
|
18
|
+
c.flag 'username', desc: "The bot's username to display."
|
|
16
19
|
c.action do |_global_options, options, _args|
|
|
17
20
|
puts JSON.dump(@client.assistant_threads_setStatus(options))
|
|
18
21
|
end
|
data/bin/commands/auth.rb
CHANGED
|
File without changes
|
data/bin/commands/auth_teams.rb
CHANGED
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
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 'Blocks methods.'
|
|
8
|
+
command 'blocks' do |g|
|
|
9
|
+
g.desc 'Validates blocks, messages, and views Block Kit JSON payloads.'
|
|
10
|
+
g.long_desc %( Validates blocks, messages, and views Block Kit JSON payloads. )
|
|
11
|
+
g.command 'validate' do |c|
|
|
12
|
+
c.flag 'blocks', desc: 'A JSON-encoded array of structured blocks. Provide exactly one of blocks, view, or message.'
|
|
13
|
+
c.flag 'message', desc: 'A JSON-encoded message payload to validate. Provide exactly one of blocks, view, or message.'
|
|
14
|
+
c.flag 'view', desc: 'A JSON-encoded view payload to validate. Provide exactly one of blocks, view, or message.'
|
|
15
|
+
c.action do |_global_options, options, _args|
|
|
16
|
+
puts JSON.dump(@client.blocks_validate(options))
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|