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.
Files changed (294) hide show
  1. checksums.yaml +4 -4
  2. data/.coveralls.yml +0 -0
  3. data/.github/FUNDING.yml +0 -0
  4. data/.github/dependabot.yml +0 -0
  5. data/.github/workflows/danger-comment.yml +11 -0
  6. data/.github/workflows/danger.yml +13 -0
  7. data/.github/workflows/lint.yml +1 -1
  8. data/.github/workflows/test.yml +1 -1
  9. data/.github/workflows/update_api.yml +8 -10
  10. data/.gitignore +0 -0
  11. data/.gitmodules +0 -0
  12. data/.rspec +0 -0
  13. data/.rubocop.yml +0 -0
  14. data/.rubocop_todo.yml +5 -2
  15. data/.ruby-version +0 -0
  16. data/CHANGELOG.md +10 -1
  17. data/CONTRIBUTING.md +0 -0
  18. data/Dangerfile +4 -1
  19. data/Gemfile +3 -0
  20. data/LICENSE.md +0 -0
  21. data/README.md +1 -1
  22. data/RELEASING.md +0 -0
  23. data/Rakefile +0 -0
  24. data/SECURITY.md +0 -0
  25. data/UPGRADING.md +4 -0
  26. data/bin/commands/admin_analytics.rb +0 -0
  27. data/bin/commands/admin_analytics_messages.rb +36 -0
  28. data/bin/commands/admin_apps.rb +3 -0
  29. data/bin/commands/admin_apps_activities.rb +0 -0
  30. data/bin/commands/admin_apps_approved.rb +0 -0
  31. data/bin/commands/admin_apps_config.rb +0 -0
  32. data/bin/commands/admin_apps_requests.rb +0 -0
  33. data/bin/commands/admin_apps_restricted.rb +0 -0
  34. data/bin/commands/admin_audit_anomaly_allow.rb +0 -0
  35. data/bin/commands/admin_auth_policy.rb +0 -0
  36. data/bin/commands/admin_barriers.rb +0 -0
  37. data/bin/commands/admin_conversations.rb +10 -0
  38. data/bin/commands/admin_conversations_ekm.rb +0 -0
  39. data/bin/commands/admin_conversations_restrictAccess.rb +0 -0
  40. data/bin/commands/admin_emoji.rb +0 -0
  41. data/bin/commands/admin_functions.rb +0 -0
  42. data/bin/commands/admin_functions_permissions.rb +1 -0
  43. data/bin/commands/admin_inviteRequests.rb +0 -0
  44. data/bin/commands/admin_inviteRequests_approved.rb +0 -0
  45. data/bin/commands/admin_inviteRequests_denied.rb +0 -0
  46. data/bin/commands/admin_roles.rb +0 -0
  47. data/bin/commands/admin_teams.rb +0 -0
  48. data/bin/commands/admin_teams_admins.rb +0 -0
  49. data/bin/commands/admin_teams_owners.rb +0 -0
  50. data/bin/commands/admin_teams_settings.rb +0 -0
  51. data/bin/commands/admin_usergroups.rb +0 -0
  52. data/bin/commands/admin_users.rb +10 -8
  53. data/bin/commands/admin_users_session.rb +0 -0
  54. data/bin/commands/admin_users_unsupportedVersions.rb +0 -0
  55. data/bin/commands/admin_workflows.rb +0 -0
  56. data/bin/commands/admin_workflows_collaborators.rb +0 -0
  57. data/bin/commands/admin_workflows_permissions.rb +0 -0
  58. data/bin/commands/admin_workflows_triggers_types_permissions.rb +4 -3
  59. data/bin/commands/api.rb +0 -0
  60. data/bin/commands/apps.rb +0 -0
  61. data/bin/commands/apps_activities.rb +0 -0
  62. data/bin/commands/apps_auth_external.rb +0 -0
  63. data/bin/commands/apps_connections.rb +0 -0
  64. data/bin/commands/apps_datastore.rb +0 -0
  65. data/bin/commands/apps_event_authorizations.rb +0 -0
  66. data/bin/commands/apps_icon.rb +22 -0
  67. data/bin/commands/apps_manifest.rb +7 -6
  68. data/bin/commands/apps_user_connection.rb +21 -0
  69. data/bin/commands/assistant_search.rb +3 -2
  70. data/bin/commands/assistant_threads.rb +5 -2
  71. data/bin/commands/auth.rb +0 -0
  72. data/bin/commands/auth_teams.rb +0 -0
  73. data/bin/commands/blocks.rb +22 -0
  74. data/bin/commands/bookmarks.rb +6 -6
  75. data/bin/commands/bots.rb +0 -0
  76. data/bin/commands/calls.rb +0 -0
  77. data/bin/commands/calls_participants.rb +0 -0
  78. data/bin/commands/canvases.rb +0 -0
  79. data/bin/commands/canvases_access.rb +0 -0
  80. data/bin/commands/canvases_sections.rb +0 -0
  81. data/bin/commands/chat.rb +13 -6
  82. data/bin/commands/chat_scheduledMessages.rb +0 -0
  83. data/bin/commands/conversations.rb +1 -1
  84. data/bin/commands/conversations_canvases.rb +0 -0
  85. data/bin/commands/conversations_externalInvitePermissions.rb +0 -0
  86. data/bin/commands/conversations_requestSharedInvite.rb +0 -0
  87. data/bin/commands/dialog.rb +0 -0
  88. data/bin/commands/dnd.rb +0 -0
  89. data/bin/commands/emoji.rb +0 -0
  90. data/bin/commands/entity.rb +0 -0
  91. data/bin/commands/files.rb +2 -2
  92. data/bin/commands/files_comments.rb +0 -0
  93. data/bin/commands/files_remote.rb +0 -0
  94. data/bin/commands/functions.rb +0 -0
  95. data/bin/commands/functions_distributions_permissions.rb +0 -0
  96. data/bin/commands/functions_workflows_steps.rb +0 -0
  97. data/bin/commands/functions_workflows_steps_responses.rb +0 -0
  98. data/bin/commands/migration.rb +0 -0
  99. data/bin/commands/oauth.rb +0 -0
  100. data/bin/commands/oauth_v2.rb +1 -0
  101. data/bin/commands/oauth_v2_user.rb +27 -0
  102. data/bin/commands/openid_connect.rb +1 -0
  103. data/bin/commands/pins.rb +0 -0
  104. data/bin/commands/reactions.rb +0 -0
  105. data/bin/commands/reminders.rb +0 -0
  106. data/bin/commands/rtm.rb +0 -0
  107. data/bin/commands/search.rb +0 -0
  108. data/bin/commands/slackLists.rb +0 -0
  109. data/bin/commands/slackLists_access.rb +0 -0
  110. data/bin/commands/slackLists_download.rb +0 -0
  111. data/bin/commands/slackLists_items.rb +0 -0
  112. data/bin/commands/stars.rb +0 -0
  113. data/bin/commands/team.rb +0 -0
  114. data/bin/commands/team_billing.rb +0 -0
  115. data/bin/commands/team_externalTeams.rb +0 -0
  116. data/bin/commands/team_preferences.rb +0 -0
  117. data/bin/commands/team_profile.rb +0 -0
  118. data/bin/commands/tooling_tokens.rb +0 -0
  119. data/bin/commands/usergroups.rb +0 -0
  120. data/bin/commands/usergroups_users.rb +0 -0
  121. data/bin/commands/users.rb +2 -2
  122. data/bin/commands/users_admin.rb +0 -0
  123. data/bin/commands/users_discoverableContacts.rb +0 -0
  124. data/bin/commands/users_prefs.rb +0 -0
  125. data/bin/commands/users_profile.rb +0 -0
  126. data/bin/commands/views.rb +1 -0
  127. data/bin/commands/workflows_featured.rb +0 -0
  128. data/bin/commands/workflows_triggers_permissions.rb +0 -0
  129. data/examples/files_upload_v2/.env.example +0 -0
  130. data/examples/files_upload_v2/Gemfile +0 -0
  131. data/examples/files_upload_v2/README.md +0 -0
  132. data/examples/files_upload_v2/files_upload_v2.rb +0 -0
  133. data/examples/hi_web/Gemfile +0 -0
  134. data/examples/hi_web/hi.gif +0 -0
  135. data/examples/hi_web/hi.rb +0 -0
  136. data/examples/new_ticket/Gemfile +0 -0
  137. data/examples/new_ticket/new_ticket.rb +0 -0
  138. data/examples/oauth_v2/.env.example +0 -0
  139. data/examples/oauth_v2/Gemfile +0 -0
  140. data/examples/oauth_v2/README.md +0 -0
  141. data/lib/slack/config.rb +0 -0
  142. data/lib/slack/events/config.rb +0 -0
  143. data/lib/slack/events/request.rb +0 -0
  144. data/lib/slack/logger.rb +0 -0
  145. data/lib/slack/messages/formatting.rb +0 -0
  146. data/lib/slack/messages/message.rb +0 -0
  147. data/lib/slack/utils/security.rb +0 -0
  148. data/lib/slack/version.rb +1 -1
  149. data/lib/slack/web/api/endpoints/admin_analytics.rb +0 -0
  150. data/lib/slack/web/api/endpoints/admin_analytics_messages.rb +64 -0
  151. data/lib/slack/web/api/endpoints/admin_apps.rb +6 -0
  152. data/lib/slack/web/api/endpoints/admin_apps_activities.rb +0 -0
  153. data/lib/slack/web/api/endpoints/admin_apps_approved.rb +0 -0
  154. data/lib/slack/web/api/endpoints/admin_apps_config.rb +0 -0
  155. data/lib/slack/web/api/endpoints/admin_apps_requests.rb +0 -0
  156. data/lib/slack/web/api/endpoints/admin_apps_restricted.rb +0 -0
  157. data/lib/slack/web/api/endpoints/admin_audit_anomaly_allow.rb +0 -0
  158. data/lib/slack/web/api/endpoints/admin_auth_policy.rb +0 -0
  159. data/lib/slack/web/api/endpoints/admin_barriers.rb +0 -0
  160. data/lib/slack/web/api/endpoints/admin_conversations.rb +15 -0
  161. data/lib/slack/web/api/endpoints/admin_conversations_ekm.rb +0 -0
  162. data/lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb +0 -0
  163. data/lib/slack/web/api/endpoints/admin_emoji.rb +0 -0
  164. data/lib/slack/web/api/endpoints/admin_functions.rb +0 -0
  165. data/lib/slack/web/api/endpoints/admin_functions_permissions.rb +2 -1
  166. data/lib/slack/web/api/endpoints/admin_inviteRequests.rb +0 -0
  167. data/lib/slack/web/api/endpoints/admin_inviteRequests_approved.rb +0 -0
  168. data/lib/slack/web/api/endpoints/admin_inviteRequests_denied.rb +0 -0
  169. data/lib/slack/web/api/endpoints/admin_roles.rb +0 -0
  170. data/lib/slack/web/api/endpoints/admin_teams.rb +0 -0
  171. data/lib/slack/web/api/endpoints/admin_teams_admins.rb +0 -0
  172. data/lib/slack/web/api/endpoints/admin_teams_owners.rb +0 -0
  173. data/lib/slack/web/api/endpoints/admin_teams_settings.rb +0 -0
  174. data/lib/slack/web/api/endpoints/admin_usergroups.rb +0 -0
  175. data/lib/slack/web/api/endpoints/admin_users.rb +10 -6
  176. data/lib/slack/web/api/endpoints/admin_users_session.rb +0 -0
  177. data/lib/slack/web/api/endpoints/admin_users_unsupportedVersions.rb +0 -0
  178. data/lib/slack/web/api/endpoints/admin_workflows.rb +0 -0
  179. data/lib/slack/web/api/endpoints/admin_workflows_collaborators.rb +0 -0
  180. data/lib/slack/web/api/endpoints/admin_workflows_permissions.rb +0 -0
  181. data/lib/slack/web/api/endpoints/admin_workflows_triggers_types_permissions.rb +3 -3
  182. data/lib/slack/web/api/endpoints/api.rb +0 -0
  183. data/lib/slack/web/api/endpoints/apps.rb +0 -0
  184. data/lib/slack/web/api/endpoints/apps_activities.rb +0 -0
  185. data/lib/slack/web/api/endpoints/apps_auth_external.rb +0 -0
  186. data/lib/slack/web/api/endpoints/apps_connections.rb +0 -0
  187. data/lib/slack/web/api/endpoints/apps_datastore.rb +0 -0
  188. data/lib/slack/web/api/endpoints/apps_event_authorizations.rb +0 -0
  189. data/lib/slack/web/api/endpoints/apps_icon.rb +28 -0
  190. data/lib/slack/web/api/endpoints/apps_manifest.rb +5 -3
  191. data/lib/slack/web/api/endpoints/apps_user_connection.rb +27 -0
  192. data/lib/slack/web/api/endpoints/assistant_search.rb +3 -1
  193. data/lib/slack/web/api/endpoints/assistant_threads.rb +8 -3
  194. data/lib/slack/web/api/endpoints/auth.rb +0 -0
  195. data/lib/slack/web/api/endpoints/auth_teams.rb +0 -0
  196. data/lib/slack/web/api/endpoints/blocks.rb +28 -0
  197. data/lib/slack/web/api/endpoints/bookmarks.rb +6 -12
  198. data/lib/slack/web/api/endpoints/bots.rb +0 -0
  199. data/lib/slack/web/api/endpoints/calls.rb +0 -0
  200. data/lib/slack/web/api/endpoints/calls_participants.rb +0 -0
  201. data/lib/slack/web/api/endpoints/canvases.rb +0 -0
  202. data/lib/slack/web/api/endpoints/canvases_access.rb +0 -0
  203. data/lib/slack/web/api/endpoints/canvases_sections.rb +0 -0
  204. data/lib/slack/web/api/endpoints/chat.rb +31 -13
  205. data/lib/slack/web/api/endpoints/chat_scheduledMessages.rb +0 -0
  206. data/lib/slack/web/api/endpoints/conversations.rb +1 -1
  207. data/lib/slack/web/api/endpoints/conversations_canvases.rb +0 -0
  208. data/lib/slack/web/api/endpoints/conversations_externalInvitePermissions.rb +0 -0
  209. data/lib/slack/web/api/endpoints/conversations_requestSharedInvite.rb +0 -0
  210. data/lib/slack/web/api/endpoints/dialog.rb +0 -0
  211. data/lib/slack/web/api/endpoints/dnd.rb +0 -0
  212. data/lib/slack/web/api/endpoints/emoji.rb +0 -0
  213. data/lib/slack/web/api/endpoints/entity.rb +0 -0
  214. data/lib/slack/web/api/endpoints/files.rb +1 -1
  215. data/lib/slack/web/api/endpoints/files_comments.rb +0 -0
  216. data/lib/slack/web/api/endpoints/files_remote.rb +0 -0
  217. data/lib/slack/web/api/endpoints/functions.rb +0 -0
  218. data/lib/slack/web/api/endpoints/functions_distributions_permissions.rb +0 -0
  219. data/lib/slack/web/api/endpoints/functions_workflows_steps.rb +0 -0
  220. data/lib/slack/web/api/endpoints/functions_workflows_steps_responses.rb +0 -0
  221. data/lib/slack/web/api/endpoints/migration.rb +0 -0
  222. data/lib/slack/web/api/endpoints/oauth.rb +0 -0
  223. data/lib/slack/web/api/endpoints/oauth_v2.rb +2 -0
  224. data/lib/slack/web/api/endpoints/oauth_v2_user.rb +37 -0
  225. data/lib/slack/web/api/endpoints/openid_connect.rb +2 -0
  226. data/lib/slack/web/api/endpoints/pins.rb +0 -0
  227. data/lib/slack/web/api/endpoints/reactions.rb +0 -0
  228. data/lib/slack/web/api/endpoints/reminders.rb +0 -0
  229. data/lib/slack/web/api/endpoints/rtm.rb +0 -0
  230. data/lib/slack/web/api/endpoints/search.rb +0 -0
  231. data/lib/slack/web/api/endpoints/slackLists.rb +0 -0
  232. data/lib/slack/web/api/endpoints/slackLists_access.rb +0 -0
  233. data/lib/slack/web/api/endpoints/slackLists_download.rb +0 -0
  234. data/lib/slack/web/api/endpoints/slackLists_items.rb +0 -0
  235. data/lib/slack/web/api/endpoints/stars.rb +0 -0
  236. data/lib/slack/web/api/endpoints/team.rb +0 -0
  237. data/lib/slack/web/api/endpoints/team_billing.rb +0 -0
  238. data/lib/slack/web/api/endpoints/team_externalTeams.rb +0 -0
  239. data/lib/slack/web/api/endpoints/team_preferences.rb +0 -0
  240. data/lib/slack/web/api/endpoints/team_profile.rb +0 -0
  241. data/lib/slack/web/api/endpoints/tooling_tokens.rb +0 -0
  242. data/lib/slack/web/api/endpoints/usergroups.rb +0 -0
  243. data/lib/slack/web/api/endpoints/usergroups_users.rb +0 -0
  244. data/lib/slack/web/api/endpoints/users.rb +1 -1
  245. data/lib/slack/web/api/endpoints/users_admin.rb +0 -0
  246. data/lib/slack/web/api/endpoints/users_discoverableContacts.rb +0 -0
  247. data/lib/slack/web/api/endpoints/users_prefs.rb +0 -0
  248. data/lib/slack/web/api/endpoints/users_profile.rb +0 -0
  249. data/lib/slack/web/api/endpoints/views.rb +1 -0
  250. data/lib/slack/web/api/endpoints/workflows_featured.rb +0 -0
  251. data/lib/slack/web/api/endpoints/workflows_triggers_permissions.rb +0 -0
  252. data/lib/slack/web/api/endpoints.rb +10 -0
  253. data/lib/slack/web/api/error.rb +0 -0
  254. data/lib/slack/web/api/errors/server_error.rb +0 -0
  255. data/lib/slack/web/api/errors/slack_error.rb +0 -0
  256. data/lib/slack/web/api/errors/too_many_requests_error.rb +0 -0
  257. data/lib/slack/web/api/errors.rb +112 -6
  258. data/lib/slack/web/api/helpers/files.rb +0 -0
  259. data/lib/slack/web/api/helpers.rb +0 -0
  260. data/lib/slack/web/api/mixins/conversations.id.rb +0 -0
  261. data/lib/slack/web/api/mixins/ids.id.rb +3 -1
  262. data/lib/slack/web/api/mixins/users.id.json +0 -0
  263. data/lib/slack/web/api/mixins/users.id.rb +0 -0
  264. data/lib/slack/web/api/mixins/users.search.json +0 -0
  265. data/lib/slack/web/api/mixins/users.search.rb +0 -0
  266. data/lib/slack/web/api/mixins.rb +0 -0
  267. data/lib/slack/web/api/options.rb +0 -0
  268. data/lib/slack/web/api/patches/.gitkeep +0 -0
  269. data/lib/slack/web/api/schema/group.json +0 -0
  270. data/lib/slack/web/api/schema/method.json +0 -0
  271. data/lib/slack/web/api/templates/command.erb +0 -0
  272. data/lib/slack/web/api/templates/endpoints.erb +0 -0
  273. data/lib/slack/web/api/templates/errors.erb +0 -0
  274. data/lib/slack/web/api/templates/method.erb +3 -1
  275. data/lib/slack/web/api/templates/method_spec.erb +32 -3
  276. data/lib/slack/web/client.rb +0 -0
  277. data/lib/slack/web/config.rb +0 -0
  278. data/lib/slack/web/faraday/connection.rb +0 -0
  279. data/lib/slack/web/faraday/options.rb +0 -0
  280. data/lib/slack/web/faraday/request.rb +0 -0
  281. data/lib/slack/web/faraday/response/raise_error.rb +0 -0
  282. data/lib/slack/web/faraday/response/wrap_error.rb +0 -0
  283. data/lib/slack/web/pagination/cursor.rb +0 -0
  284. data/lib/slack-ruby-client.rb +0 -0
  285. data/lib/slack.rb +0 -0
  286. data/lib/slack_ruby_client.rb +0 -0
  287. data/lib/tasks/git.rake +0 -0
  288. data/lib/tasks/update.rake +0 -0
  289. data/lib/tasks/web.rake +5 -2
  290. data/slack-ruby-client.gemspec +0 -0
  291. data/slack.png +0 -0
  292. metadata +13 -3
  293. data/.github/workflows/pr_lint.yml +0 -21
  294. data/Gemfile.danger +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2adaaa262bea7ceba8032b2a8ff54c179e1a972a94a34c1ca9fb526fb2e82728
4
- data.tar.gz: 12da6b07266549b471b6ca7e07ccb525269a074f0f4f0b8f8fc9fc9563c4a620
3
+ metadata.gz: 2a057a75d8b3d01ab039746d48088770fd5aca2edbc833e8963540d6f776a3e0
4
+ data.tar.gz: 2627e79b84280d7c15c822085d25e99ce6f74e3b231778a0a931029b6e113ede
5
5
  SHA512:
6
- metadata.gz: 2998c891be3fc2195b24ff696989fd748695f3350a9f8db14672fc94a66519aac0a3c332f5002adda414a628574094348de2de6b5010fd06cfe61e50fc0eeb08
7
- data.tar.gz: 13ece08f3789dbed0edbc3c5e3a150ce171a8b89585b554710165af55008eb798b5a08c7062a5a7735eb0082f67818f02ea428b6653d6959609881bc6794fc17
6
+ metadata.gz: eb7c40566f3d080375bae84a179be662fa38f65b8288326896ad1ddb96d76d6a5e61f904bf864dc180cfa718fb2796bd7aa08cf58d265816cb72c9a4143ede14
7
+ data.tar.gz: d30ea958d1558ca9acf2eba48c8a36f423550abcec7c24b8780dc284bfe1067b1a5651c92571946ad49e47e2d74cd5b7ac3c7cc8ced42f64d70709d74fd4ffe5
data/.coveralls.yml CHANGED
File without changes
data/.github/FUNDING.yml CHANGED
File without changes
File without changes
@@ -0,0 +1,11 @@
1
+ name: Danger Comment
2
+
3
+ on:
4
+ workflow_run:
5
+ workflows: [Danger]
6
+ types: [completed]
7
+
8
+ jobs:
9
+ comment:
10
+ uses: numbata/danger-pr-comment/.github/workflows/danger-comment.yml@v0.1.0
11
+ secrets: inherit
@@ -0,0 +1,13 @@
1
+ name: Danger
2
+
3
+ on:
4
+ pull_request:
5
+ types: [opened, reopened, edited, synchronize]
6
+
7
+ jobs:
8
+ danger:
9
+ uses: numbata/danger-pr-comment/.github/workflows/danger-run.yml@v0.1.0
10
+ secrets: inherit
11
+ with:
12
+ ruby-version: '4.0'
13
+ bundler-cache: true
@@ -6,7 +6,7 @@ jobs:
6
6
  runs-on: ubuntu-latest
7
7
  steps:
8
8
  - name: Checkout
9
- uses: actions/checkout@v5
9
+ uses: actions/checkout@v7
10
10
  - name: Set up Ruby
11
11
  uses: ruby/setup-ruby@v1
12
12
  with:
@@ -17,7 +17,7 @@ jobs:
17
17
  name: test (ruby=${{ matrix.entry.ruby }})
18
18
  steps:
19
19
  - name: Checkout
20
- uses: actions/checkout@v5
20
+ uses: actions/checkout@v7
21
21
  - name: Set up Ruby
22
22
  uses: ruby/setup-ruby@v1
23
23
  with:
@@ -11,7 +11,7 @@ jobs:
11
11
  contents: write
12
12
  pull-requests: write
13
13
  steps:
14
- - uses: actions/checkout@v5
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 "::set-output name=date::$(date +'%Y-%m-%d')"
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 "::set-output name=api-ref::$(git rev-parse --short HEAD:lib/slack/web/api/slack-api-ref)"
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
- installation_id: 36985419
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@v7
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 2025-09-21 17:08:14 UTC using RuboCop version 1.26.1.
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: 35
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.0 (Next)
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
@@ -1,3 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- danger.import_dangerfile(gem: 'slack-ruby-danger')
3
+ danger.import_dangerfile(gem: 'danger-pr-comment')
4
+
5
+ changelog.check!
6
+ toc.check!
data/Gemfile CHANGED
@@ -7,6 +7,9 @@ group :test do
7
7
  gem 'activesupport'
8
8
  gem 'base64'
9
9
  gem 'bigdecimal'
10
+ gem 'danger-changelog', require: false
11
+ gem 'danger-pr-comment', require: false
12
+ gem 'danger-toc', require: false
10
13
  gem 'erubis'
11
14
  gem 'faraday-typhoeus'
12
15
  gem 'json-schema'
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
@@ -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
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -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 (T1234) of the workspace.'
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 (T1234) of the workspace.'
99
- c.flag 'user_id', desc: 'Id of the user to promote to owner.'
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 (T1234) of the workspace.'
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 'list the permissions for using each trigger type'
10
- g.long_desc %( list the permissions for using each trigger type )
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 types IDs for which to get the permissions.'
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—perfect for broad, specific, and real-time data retrieval.'
10
- g.long_desc %( Searches messages across your Slack organization—perfect for broad, specific, and real-time data retrieval. )
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. 'is thinking...'."
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
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