slack-ruby-client 3.2.0 → 3.4.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 (328) 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/prompts/changelog-entries.prompt.yml +32 -0
  6. data/.github/workflows/danger-comment.yml +11 -2
  7. data/.github/workflows/danger.yml +10 -2
  8. data/.github/workflows/lint.yml +21 -6
  9. data/.github/workflows/release.yml +27 -0
  10. data/.github/workflows/test.yml +0 -0
  11. data/.github/workflows/update_api.yml +86 -6
  12. data/.gitignore +1 -0
  13. data/.gitmodules +0 -0
  14. data/.rspec +0 -0
  15. data/.rubocop.yml +94 -1
  16. data/.rubocop_todo.yml +13 -2
  17. data/.ruby-version +0 -0
  18. data/.spellcheck.txt +256 -0
  19. data/AGENTS.md +12 -0
  20. data/CHANGELOG.md +50 -0
  21. data/CONTRIBUTING.md +59 -59
  22. data/Dangerfile +0 -0
  23. data/Gemfile +33 -5
  24. data/LICENSE.md +1 -1
  25. data/README.md +139 -104
  26. data/RELEASING.md +20 -58
  27. data/Rakefile +29 -3
  28. data/SECURITY.md +1 -1
  29. data/UPGRADING.md +48 -40
  30. data/benchmarks/events.rb +26 -0
  31. data/benchmarks/formatting.rb +17 -0
  32. data/benchmarks/support.rb +67 -0
  33. data/benchmarks/web_client.rb +28 -0
  34. data/bin/commands/admin_analytics.rb +0 -0
  35. data/bin/commands/admin_analytics_members.rb +39 -0
  36. data/bin/commands/admin_analytics_messages.rb +4 -4
  37. data/bin/commands/admin_analytics_slackbot.rb +33 -0
  38. data/bin/commands/admin_apps.rb +0 -0
  39. data/bin/commands/admin_apps_activities.rb +0 -0
  40. data/bin/commands/admin_apps_approved.rb +0 -0
  41. data/bin/commands/admin_apps_config.rb +0 -0
  42. data/bin/commands/admin_apps_mcp_servers.rb +21 -0
  43. data/bin/commands/admin_apps_mcp_servers_permissions.rb +33 -0
  44. data/bin/commands/admin_apps_permissions.rb +58 -0
  45. data/bin/commands/admin_apps_requests.rb +0 -0
  46. data/bin/commands/admin_apps_restricted.rb +0 -0
  47. data/bin/commands/admin_audit_anomaly_allow.rb +0 -0
  48. data/bin/commands/admin_auth_policy.rb +0 -0
  49. data/bin/commands/admin_barriers.rb +0 -0
  50. data/bin/commands/admin_conversations.rb +23 -3
  51. data/bin/commands/admin_conversations_ekm.rb +0 -0
  52. data/bin/commands/admin_conversations_restrictAccess.rb +0 -0
  53. data/bin/commands/admin_emoji.rb +0 -0
  54. data/bin/commands/admin_functions.rb +1 -1
  55. data/bin/commands/admin_functions_permissions.rb +0 -0
  56. data/bin/commands/admin_inviteRequests.rb +0 -0
  57. data/bin/commands/admin_inviteRequests_approved.rb +0 -0
  58. data/bin/commands/admin_inviteRequests_denied.rb +0 -0
  59. data/bin/commands/admin_roles.rb +0 -0
  60. data/bin/commands/admin_slackbot_skills.rb +56 -0
  61. data/bin/commands/admin_teams.rb +0 -0
  62. data/bin/commands/admin_teams_admins.rb +0 -0
  63. data/bin/commands/admin_teams_owners.rb +0 -0
  64. data/bin/commands/admin_teams_settings.rb +0 -0
  65. data/bin/commands/admin_usergroups.rb +74 -0
  66. data/bin/commands/admin_users.rb +11 -2
  67. data/bin/commands/admin_users_access.rb +31 -0
  68. data/bin/commands/admin_users_session.rb +0 -1
  69. data/bin/commands/admin_users_unsupportedVersions.rb +0 -0
  70. data/bin/commands/admin_workflows.rb +0 -0
  71. data/bin/commands/admin_workflows_collaborators.rb +0 -0
  72. data/bin/commands/admin_workflows_permissions.rb +0 -0
  73. data/bin/commands/admin_workflows_triggers_types_permissions.rb +0 -0
  74. data/bin/commands/agents_conversations.rb +122 -0
  75. data/bin/commands/agents_sessions.rb +38 -0
  76. data/bin/commands/api.rb +0 -0
  77. data/bin/commands/apps.rb +0 -0
  78. data/bin/commands/apps_activities.rb +0 -0
  79. data/bin/commands/apps_auth_external.rb +0 -0
  80. data/bin/commands/apps_connections.rb +0 -0
  81. data/bin/commands/apps_datastore.rb +0 -0
  82. data/bin/commands/apps_event_authorizations.rb +0 -0
  83. data/bin/commands/apps_icon.rb +0 -0
  84. data/bin/commands/apps_managed_permissions.rb +21 -0
  85. data/bin/commands/apps_manifest.rb +0 -0
  86. data/bin/commands/apps_user_connection.rb +0 -0
  87. data/bin/commands/assistant_search.rb +0 -0
  88. data/bin/commands/assistant_threads.rb +1 -1
  89. data/bin/commands/auth.rb +0 -0
  90. data/bin/commands/auth_teams.rb +0 -0
  91. data/bin/commands/blocks.rb +0 -0
  92. data/bin/commands/bookmarks.rb +0 -0
  93. data/bin/commands/bots.rb +0 -0
  94. data/bin/commands/calls.rb +0 -0
  95. data/bin/commands/calls_participants.rb +0 -0
  96. data/bin/commands/canvases.rb +12 -2
  97. data/bin/commands/canvases_access.rb +0 -0
  98. data/bin/commands/canvases_sections.rb +0 -0
  99. data/bin/commands/chat.rb +10 -7
  100. data/bin/commands/chat_scheduledMessages.rb +0 -0
  101. data/bin/commands/conversations.rb +1 -1
  102. data/bin/commands/conversations_canvases.rb +1 -1
  103. data/bin/commands/conversations_externalInvitePermissions.rb +0 -0
  104. data/bin/commands/conversations_requestSharedInvite.rb +0 -0
  105. data/bin/commands/dialog.rb +0 -0
  106. data/bin/commands/dnd.rb +0 -0
  107. data/bin/commands/emoji.rb +0 -0
  108. data/bin/commands/entity.rb +27 -0
  109. data/bin/commands/files.rb +3 -0
  110. data/bin/commands/files_comments.rb +0 -0
  111. data/bin/commands/files_remote.rb +0 -0
  112. data/bin/commands/functions.rb +0 -0
  113. data/bin/commands/functions_distributions_permissions.rb +0 -0
  114. data/bin/commands/functions_workflows_steps.rb +0 -0
  115. data/bin/commands/functions_workflows_steps_responses.rb +0 -0
  116. data/bin/commands/migration.rb +0 -0
  117. data/bin/commands/oauth.rb +0 -0
  118. data/bin/commands/oauth_v2.rb +21 -0
  119. data/bin/commands/oauth_v2_user.rb +0 -0
  120. data/bin/commands/openid_connect.rb +0 -0
  121. data/bin/commands/pins.rb +1 -1
  122. data/bin/commands/reactions.rb +0 -0
  123. data/bin/commands/reminders.rb +0 -0
  124. data/bin/commands/rtm.rb +0 -0
  125. data/bin/commands/search.rb +0 -0
  126. data/bin/commands/slackLists.rb +0 -0
  127. data/bin/commands/slackLists_access.rb +0 -0
  128. data/bin/commands/slackLists_download.rb +7 -0
  129. data/bin/commands/slackLists_items.rb +2 -1
  130. data/bin/commands/slackbot_skills.rb +71 -0
  131. data/bin/commands/slackbot_skills_library.rb +29 -0
  132. data/bin/commands/stars.rb +0 -0
  133. data/bin/commands/team.rb +1 -0
  134. data/bin/commands/team_billing.rb +0 -0
  135. data/bin/commands/team_externalTeams.rb +1 -1
  136. data/bin/commands/team_preferences.rb +0 -0
  137. data/bin/commands/team_profile.rb +0 -0
  138. data/bin/commands/tooling_tokens.rb +0 -0
  139. data/bin/commands/usergroups.rb +0 -0
  140. data/bin/commands/usergroups_users.rb +0 -0
  141. data/bin/commands/users.rb +1 -0
  142. data/bin/commands/users_admin.rb +0 -0
  143. data/bin/commands/users_discoverableContacts.rb +0 -0
  144. data/bin/commands/users_prefs.rb +0 -0
  145. data/bin/commands/users_profile.rb +0 -0
  146. data/bin/commands/views.rb +0 -0
  147. data/bin/commands/workflows_featured.rb +0 -0
  148. data/bin/commands/workflows_triggers_permissions.rb +0 -0
  149. data/bin/slack +5 -1
  150. data/examples/files_upload_v2/.env.example +0 -0
  151. data/examples/files_upload_v2/Gemfile +0 -0
  152. data/examples/files_upload_v2/README.md +4 -3
  153. data/examples/files_upload_v2/files_upload_v2.rb +1 -1
  154. data/examples/hi_web/Gemfile +0 -0
  155. data/examples/hi_web/hi.gif +0 -0
  156. data/examples/hi_web/hi.rb +1 -1
  157. data/examples/new_ticket/Gemfile +0 -0
  158. data/examples/new_ticket/new_ticket.rb +1 -1
  159. data/examples/oauth_v2/.env.example +0 -0
  160. data/examples/oauth_v2/Gemfile +0 -0
  161. data/examples/oauth_v2/README.md +5 -4
  162. data/examples/oauth_v2/oauth_v2.rb +6 -6
  163. data/lib/slack/config.rb +0 -0
  164. data/lib/slack/events/config.rb +1 -1
  165. data/lib/slack/events/request.rb +2 -2
  166. data/lib/slack/logger.rb +0 -0
  167. data/lib/slack/messages/formatting.rb +29 -20
  168. data/lib/slack/messages/message.rb +0 -0
  169. data/lib/slack/utils/security.rb +0 -0
  170. data/lib/slack/version.rb +1 -1
  171. data/lib/slack/web/api/endpoints/admin_analytics.rb +0 -0
  172. data/lib/slack/web/api/endpoints/admin_analytics_members.rb +66 -0
  173. data/lib/slack/web/api/endpoints/admin_analytics_messages.rb +3 -3
  174. data/lib/slack/web/api/endpoints/admin_analytics_slackbot.rb +54 -0
  175. data/lib/slack/web/api/endpoints/admin_apps.rb +0 -0
  176. data/lib/slack/web/api/endpoints/admin_apps_activities.rb +0 -0
  177. data/lib/slack/web/api/endpoints/admin_apps_approved.rb +0 -0
  178. data/lib/slack/web/api/endpoints/admin_apps_config.rb +0 -0
  179. data/lib/slack/web/api/endpoints/admin_apps_mcp_servers.rb +31 -0
  180. data/lib/slack/web/api/endpoints/admin_apps_mcp_servers_permissions.rb +46 -0
  181. data/lib/slack/web/api/endpoints/admin_apps_permissions.rb +83 -0
  182. data/lib/slack/web/api/endpoints/admin_apps_requests.rb +0 -0
  183. data/lib/slack/web/api/endpoints/admin_apps_restricted.rb +0 -0
  184. data/lib/slack/web/api/endpoints/admin_audit_anomaly_allow.rb +0 -0
  185. data/lib/slack/web/api/endpoints/admin_auth_policy.rb +0 -0
  186. data/lib/slack/web/api/endpoints/admin_barriers.rb +0 -0
  187. data/lib/slack/web/api/endpoints/admin_conversations.rb +32 -2
  188. data/lib/slack/web/api/endpoints/admin_conversations_ekm.rb +0 -0
  189. data/lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb +0 -0
  190. data/lib/slack/web/api/endpoints/admin_emoji.rb +0 -1
  191. data/lib/slack/web/api/endpoints/admin_functions.rb +1 -1
  192. data/lib/slack/web/api/endpoints/admin_functions_permissions.rb +0 -0
  193. data/lib/slack/web/api/endpoints/admin_inviteRequests.rb +0 -0
  194. data/lib/slack/web/api/endpoints/admin_inviteRequests_approved.rb +0 -0
  195. data/lib/slack/web/api/endpoints/admin_inviteRequests_denied.rb +0 -0
  196. data/lib/slack/web/api/endpoints/admin_roles.rb +0 -0
  197. data/lib/slack/web/api/endpoints/admin_slackbot_skills.rb +84 -0
  198. data/lib/slack/web/api/endpoints/admin_teams.rb +0 -0
  199. data/lib/slack/web/api/endpoints/admin_teams_admins.rb +0 -0
  200. data/lib/slack/web/api/endpoints/admin_teams_owners.rb +0 -0
  201. data/lib/slack/web/api/endpoints/admin_teams_settings.rb +0 -0
  202. data/lib/slack/web/api/endpoints/admin_usergroups.rb +111 -0
  203. data/lib/slack/web/api/endpoints/admin_users.rb +14 -1
  204. data/lib/slack/web/api/endpoints/admin_users_access.rb +40 -0
  205. data/lib/slack/web/api/endpoints/admin_users_session.rb +0 -2
  206. data/lib/slack/web/api/endpoints/admin_users_unsupportedVersions.rb +0 -0
  207. data/lib/slack/web/api/endpoints/admin_workflows.rb +0 -0
  208. data/lib/slack/web/api/endpoints/admin_workflows_collaborators.rb +0 -0
  209. data/lib/slack/web/api/endpoints/admin_workflows_permissions.rb +0 -0
  210. data/lib/slack/web/api/endpoints/admin_workflows_triggers_types_permissions.rb +0 -0
  211. data/lib/slack/web/api/endpoints/agents_conversations.rb +186 -0
  212. data/lib/slack/web/api/endpoints/agents_sessions.rb +54 -0
  213. data/lib/slack/web/api/endpoints/api.rb +0 -0
  214. data/lib/slack/web/api/endpoints/apps.rb +0 -0
  215. data/lib/slack/web/api/endpoints/apps_activities.rb +0 -0
  216. data/lib/slack/web/api/endpoints/apps_auth_external.rb +0 -0
  217. data/lib/slack/web/api/endpoints/apps_connections.rb +0 -0
  218. data/lib/slack/web/api/endpoints/apps_datastore.rb +0 -0
  219. data/lib/slack/web/api/endpoints/apps_event_authorizations.rb +0 -0
  220. data/lib/slack/web/api/endpoints/apps_icon.rb +0 -0
  221. data/lib/slack/web/api/endpoints/apps_managed_permissions.rb +27 -0
  222. data/lib/slack/web/api/endpoints/apps_manifest.rb +0 -0
  223. data/lib/slack/web/api/endpoints/apps_user_connection.rb +0 -0
  224. data/lib/slack/web/api/endpoints/assistant_search.rb +0 -0
  225. data/lib/slack/web/api/endpoints/assistant_threads.rb +1 -1
  226. data/lib/slack/web/api/endpoints/auth.rb +0 -0
  227. data/lib/slack/web/api/endpoints/auth_teams.rb +0 -0
  228. data/lib/slack/web/api/endpoints/blocks.rb +0 -0
  229. data/lib/slack/web/api/endpoints/bookmarks.rb +0 -0
  230. data/lib/slack/web/api/endpoints/bots.rb +0 -0
  231. data/lib/slack/web/api/endpoints/calls.rb +0 -0
  232. data/lib/slack/web/api/endpoints/calls_participants.rb +0 -0
  233. data/lib/slack/web/api/endpoints/canvases.rb +16 -2
  234. data/lib/slack/web/api/endpoints/canvases_access.rb +0 -0
  235. data/lib/slack/web/api/endpoints/canvases_sections.rb +0 -0
  236. data/lib/slack/web/api/endpoints/chat.rb +14 -10
  237. data/lib/slack/web/api/endpoints/chat_scheduledMessages.rb +0 -0
  238. data/lib/slack/web/api/endpoints/conversations.rb +1 -1
  239. data/lib/slack/web/api/endpoints/conversations_canvases.rb +1 -1
  240. data/lib/slack/web/api/endpoints/conversations_externalInvitePermissions.rb +0 -0
  241. data/lib/slack/web/api/endpoints/conversations_requestSharedInvite.rb +0 -0
  242. data/lib/slack/web/api/endpoints/dialog.rb +0 -0
  243. data/lib/slack/web/api/endpoints/dnd.rb +0 -0
  244. data/lib/slack/web/api/endpoints/emoji.rb +0 -0
  245. data/lib/slack/web/api/endpoints/entity.rb +48 -0
  246. data/lib/slack/web/api/endpoints/files.rb +7 -0
  247. data/lib/slack/web/api/endpoints/files_comments.rb +0 -0
  248. data/lib/slack/web/api/endpoints/files_remote.rb +0 -0
  249. data/lib/slack/web/api/endpoints/functions.rb +0 -0
  250. data/lib/slack/web/api/endpoints/functions_distributions_permissions.rb +0 -0
  251. data/lib/slack/web/api/endpoints/functions_workflows_steps.rb +0 -0
  252. data/lib/slack/web/api/endpoints/functions_workflows_steps_responses.rb +0 -0
  253. data/lib/slack/web/api/endpoints/migration.rb +0 -0
  254. data/lib/slack/web/api/endpoints/oauth.rb +0 -0
  255. data/lib/slack/web/api/endpoints/oauth_v2.rb +33 -0
  256. data/lib/slack/web/api/endpoints/oauth_v2_user.rb +0 -0
  257. data/lib/slack/web/api/endpoints/openid_connect.rb +0 -0
  258. data/lib/slack/web/api/endpoints/pins.rb +1 -1
  259. data/lib/slack/web/api/endpoints/reactions.rb +0 -0
  260. data/lib/slack/web/api/endpoints/reminders.rb +0 -0
  261. data/lib/slack/web/api/endpoints/rtm.rb +0 -0
  262. data/lib/slack/web/api/endpoints/search.rb +0 -0
  263. data/lib/slack/web/api/endpoints/slackLists.rb +0 -0
  264. data/lib/slack/web/api/endpoints/slackLists_access.rb +0 -0
  265. data/lib/slack/web/api/endpoints/slackLists_download.rb +14 -0
  266. data/lib/slack/web/api/endpoints/slackLists_items.rb +3 -1
  267. data/lib/slack/web/api/endpoints/slackbot_skills.rb +107 -0
  268. data/lib/slack/web/api/endpoints/slackbot_skills_library.rb +36 -0
  269. data/lib/slack/web/api/endpoints/stars.rb +0 -0
  270. data/lib/slack/web/api/endpoints/team.rb +2 -0
  271. data/lib/slack/web/api/endpoints/team_billing.rb +0 -0
  272. data/lib/slack/web/api/endpoints/team_externalTeams.rb +1 -1
  273. data/lib/slack/web/api/endpoints/team_preferences.rb +0 -0
  274. data/lib/slack/web/api/endpoints/team_profile.rb +0 -0
  275. data/lib/slack/web/api/endpoints/tooling_tokens.rb +0 -0
  276. data/lib/slack/web/api/endpoints/usergroups.rb +0 -0
  277. data/lib/slack/web/api/endpoints/usergroups_users.rb +0 -0
  278. data/lib/slack/web/api/endpoints/users.rb +2 -1
  279. data/lib/slack/web/api/endpoints/users_admin.rb +0 -0
  280. data/lib/slack/web/api/endpoints/users_discoverableContacts.rb +0 -0
  281. data/lib/slack/web/api/endpoints/users_prefs.rb +0 -0
  282. data/lib/slack/web/api/endpoints/users_profile.rb +0 -0
  283. data/lib/slack/web/api/endpoints/views.rb +0 -0
  284. data/lib/slack/web/api/endpoints/workflows_featured.rb +0 -0
  285. data/lib/slack/web/api/endpoints/workflows_triggers_permissions.rb +0 -0
  286. data/lib/slack/web/api/endpoints.rb +24 -0
  287. data/lib/slack/web/api/error.rb +0 -0
  288. data/lib/slack/web/api/errors/server_error.rb +1 -1
  289. data/lib/slack/web/api/errors/slack_error.rb +1 -1
  290. data/lib/slack/web/api/errors/too_many_requests_error.rb +1 -1
  291. data/lib/slack/web/api/errors.rb +384 -10
  292. data/lib/slack/web/api/helpers/files.rb +2 -2
  293. data/lib/slack/web/api/helpers.rb +0 -0
  294. data/lib/slack/web/api/mixins/conversations.id.rb +2 -1
  295. data/lib/slack/web/api/mixins/ids.id.rb +2 -1
  296. data/lib/slack/web/api/mixins/users.id.json +0 -0
  297. data/lib/slack/web/api/mixins/users.id.rb +2 -1
  298. data/lib/slack/web/api/mixins/users.search.json +0 -0
  299. data/lib/slack/web/api/mixins/users.search.rb +1 -1
  300. data/lib/slack/web/api/mixins.rb +0 -0
  301. data/lib/slack/web/api/options.rb +0 -0
  302. data/lib/slack/web/api/patches/.gitkeep +0 -0
  303. data/lib/slack/web/api/patches/files.default-filename.patch +12 -0
  304. data/lib/slack/web/api/schema/group.json +0 -0
  305. data/lib/slack/web/api/schema/method.json +0 -0
  306. data/lib/slack/web/api/templates/command.erb +0 -0
  307. data/lib/slack/web/api/templates/endpoints.erb +0 -0
  308. data/lib/slack/web/api/templates/errors.erb +0 -0
  309. data/lib/slack/web/api/templates/method.erb +0 -0
  310. data/lib/slack/web/api/templates/method_spec.erb +0 -0
  311. data/lib/slack/web/client.rb +29 -0
  312. data/lib/slack/web/config.rb +0 -0
  313. data/lib/slack/web/faraday/connection.rb +0 -0
  314. data/lib/slack/web/faraday/options.rb +0 -0
  315. data/lib/slack/web/faraday/request.rb +22 -2
  316. data/lib/slack/web/faraday/response/raise_error.rb +0 -0
  317. data/lib/slack/web/faraday/response/wrap_error.rb +0 -0
  318. data/lib/slack/web/pagination/cursor.rb +0 -0
  319. data/lib/slack-ruby-client.rb +0 -0
  320. data/lib/slack.rb +0 -0
  321. data/lib/slack_ruby_client.rb +0 -0
  322. data/lib/tasks/git.rake +0 -0
  323. data/lib/tasks/update.rake +0 -0
  324. data/lib/tasks/web.rake +0 -0
  325. data/script/release.rb +33 -0
  326. data/slack-ruby-client.gemspec +1 -3
  327. data/slack.png +0 -0
  328. metadata +41 -17
@@ -12,7 +12,7 @@ module Slack
12
12
  # @option options [channel] :channel
13
13
  # An encoded ID that represents a channel, private group, or DM.
14
14
  # @option options [array] :chunks
15
- # Array of streaming chunks.
15
+ # Array of streaming chunks that can contain either markdown text or task updates.
16
16
  # @option options [timestamp] :ts
17
17
  # The timestamp of the streaming message.
18
18
  # @option options [string] :markdown_text
@@ -22,7 +22,6 @@ module Slack
22
22
  def chat_appendStream(options = {})
23
23
  raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil?
24
24
  raise ArgumentError, 'Required arguments :ts missing' if options[:ts].nil?
25
- raise ArgumentError, 'Required arguments :markdown_text missing' if options[:markdown_text].nil?
26
25
  options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
27
26
  post('chat.appendStream', options)
28
27
  end
@@ -131,6 +130,8 @@ module Slack
131
130
  # Find and link channel names and usernames.
132
131
  # @option options [string] :markdown_text
133
132
  # Accepts message text formatted in markdown. This argument should not be used in conjunction with blocks or text. Limit this field to 12,000 characters.
133
+ # @option options [string] :metadata
134
+ # JSON object with an entities array of work object entity metadata, presented as a URL-encoded string. Only entity metadata is supported: ephemeral messages are not persisted and never dispatch message_metadata_* events, so event_type/event_payload message metadata is ignored here. Each entity requires entity_type, entity_payload, external_ref, and url.
134
135
  # @option options [string] :parse
135
136
  # Change how messages are treated. Defaults to none. See below.
136
137
  # @option options [string] :text
@@ -149,7 +150,7 @@ module Slack
149
150
  raise ArgumentError, 'At least one of :attachments, :blocks, :text, :markdown_text is required' if options[:attachments].nil? && options[:blocks].nil? && options[:text].nil? && options[:markdown_text].nil?
150
151
  raise ArgumentError, ':text, :markdown_text are mutually exclusive' if !options[:text].nil? && !options[:markdown_text].nil?
151
152
  options = options.merge(user: users_id(options)['user']['id']) if options[:user]
152
- options = encode_options_as_json(options, %i[attachments blocks])
153
+ options = encode_options_as_json(options, %i[attachments blocks metadata])
153
154
  post('chat.postEphemeral', options)
154
155
  end
155
156
 
@@ -192,6 +193,8 @@ module Slack
192
193
  # Pass false to disable unfurling of media content.
193
194
  # @option options [string] :username
194
195
  # Set your bot's user name.
196
+ # @option options [boolean] :unfurl_app_links
197
+ # Pass true to unfurl links from installed apps, or false to prevent app links from unfurling. When omitted, app links follow the unfurl_links setting.
195
198
  # @see https://api.slack.com/methods/chat.postMessage
196
199
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/chat/chat.postMessage.json
197
200
  def chat_postMessage(options = {})
@@ -248,19 +251,19 @@ module Slack
248
251
  # Starts a new streaming conversation.
249
252
  #
250
253
  # @option options [channel] :channel
251
- # An encoded ID that represents a channel thread or DM.
254
+ # An encoded ID that represents a channel, thread, or DM.
252
255
  # @option options [array] :chunks
253
- # Array of streaming chunks.
256
+ # Array of streaming chunks. Can include markdown text chunk objects, task update chunk objects, plan update chunks, or blocks chunks.
254
257
  # @option options [string] :markdown_text
255
258
  # Accepts message text formatted in markdown. Limit this field to 12,000 characters.
256
259
  # @option options [string] :thread_ts
257
- # Provide another message's ts value to reply to. Streamed messages should always be replies to a user request.
260
+ # Provide another message's ts value to reply to. Omit it to stream a top-level message instead of a thread reply; this is only supported in channels where the whole channel is one session, such as Slack Code, and returns invalid_thread_ts elsewhere. Passing "0" is equivalent to omitting it.
258
261
  # @option options [Object] :recipient_user_id
259
262
  # The encoded ID of the user to receive the streaming text. Required when streaming to channels.
260
263
  # @option options [string] :recipient_team_id
261
264
  # The encoded ID of the team the user receiving the streaming text belongs to. Required when streaming to channels.
262
265
  # @option options [enum] :task_display_mode
263
- # Specifies how tasks are displayed in the message. A timeline displays individual tasks with text in sequential order, plan displays all tasks together, with the first tasks's placement determining the placement of the rest of the tasks, and dense collapses consecutive tool calls into a single summarized task card.
266
+ # Specifies how tasks are displayed in the message. timeline task updates render as individual task cards interleaved with streamed text. plan task updates render together in a plan block.
264
267
  # @option options [string] :icon_emoji
265
268
  # Emoji to use as the icon for this message. Overrides icon_url.
266
269
  # @option options [string] :icon_url
@@ -271,7 +274,6 @@ module Slack
271
274
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/chat/chat.startStream.json
272
275
  def chat_startStream(options = {})
273
276
  raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil?
274
- raise ArgumentError, 'Required arguments :thread_ts missing' if options[:thread_ts].nil?
275
277
  options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
276
278
  post('chat.startStream', options)
277
279
  end
@@ -282,7 +284,7 @@ module Slack
282
284
  # @option options [channel] :channel
283
285
  # An encoded ID that represents a channel, private group, or DM.
284
286
  # @option options [array] :chunks
285
- # Array of streaming chunks.
287
+ # Array of streaming chunks. Can include markdown text chunk objects, task update chunk objects, plan update chunks, or blocks chunks.
286
288
  # @option options [timestamp] :ts
287
289
  # The timestamp of the streaming message.
288
290
  # @option options [string] :markdown_text
@@ -291,6 +293,8 @@ module Slack
291
293
  # A list of blocks that will be rendered at the bottom of the finalized message.
292
294
  # @option options [string] :metadata
293
295
  # JSON object with event_type and event_payload fields, presented as a URL-encoded string. Metadata you post to Slack is accessible to any app or user who is a member of that workspace.
296
+ # @option options [enum] :session_status
297
+ # The session status to set after stopping the stream.
294
298
  # @see https://api.slack.com/methods/chat.stopStream
295
299
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/chat/chat.stopStream.json
296
300
  def chat_stopStream(options = {})
@@ -309,7 +313,7 @@ module Slack
309
313
  # @option options [timestamp] :ts
310
314
  # Timestamp of the message to add unfurl behavior to. Required for public channels.
311
315
  # @option options [string] :unfurls
312
- # URL-encoded JSON map with keys set to URLs featured in the the message, pointing to their unfurl blocks or message attachments. Required for public channels.
316
+ # URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl blocks or message attachments. Required for public channels.
313
317
  # @option options [string] :user_auth_message
314
318
  # Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior. Provides two buttons, Not now or Never ask me again.
315
319
  # @option options [boolean] :user_auth_required
@@ -154,7 +154,7 @@ module Slack
154
154
  # @option options [boolean] :force
155
155
  # When set to true and multiple user IDs are provided, continue inviting the valid ones while disregarding invalid IDs. Defaults to false.
156
156
  # @option options [string] :users
157
- # A comma separated list of user IDs. Up to 100 users may be listed.
157
+ # A comma separated list of user IDs. Up to 1000 users may be listed.
158
158
  # @see https://api.slack.com/methods/conversations.invite
159
159
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/conversations/conversations.invite.json
160
160
  def conversations_invite(options = {})
@@ -12,7 +12,7 @@ module Slack
12
12
  # @option options [string] :channel_id
13
13
  # Channel ID of the channel the canvas will be tabbed in.
14
14
  # @option options [Object] :document_content
15
- # Structure describing the type and value of the content to create.
15
+ # Structure describing the type and value of the content to create. The markdown content is limited to 1 MiB (1,048,576 characters).
16
16
  # @option options [string] :title
17
17
  # Title of the newly created canvas.
18
18
  # @see https://api.slack.com/methods/conversations.canvases.create
File without changes
File without changes
File without changes
@@ -6,6 +6,54 @@ module Slack
6
6
  module Api
7
7
  module Endpoints
8
8
  module Entity
9
+ #
10
+ # Acknowledge a comment mutation (edit, delete, or post) on a work object entity. Apps call this endpoint to confirm they have processed a comment action, and the backend emits a dedicated RTM event to the user.
11
+ #
12
+ # @option options [string] :trigger_id
13
+ # A reference to the original user action that initiated the comment mutation.
14
+ # @option options [object] :comment
15
+ # The full comment data. Required for edit and post actions. See the comment schema for the full list of properties.
16
+ # @option options [string] :error
17
+ # Error message if the action failed in the app. When present, signals that the mutation could not be completed.
18
+ # @see https://api.slack.com/methods/entity.acknowledgeCommentAction
19
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/entity/entity.acknowledgeCommentAction.json
20
+ def entity_acknowledgeCommentAction(options = {})
21
+ raise ArgumentError, 'Required arguments :trigger_id missing' if options[:trigger_id].nil?
22
+ post('entity.acknowledgeCommentAction', options)
23
+ end
24
+
25
+ #
26
+ # Provide comments for work objects. Apps call this endpoint to send per-user flexpane comment data to the client.
27
+ #
28
+ # @option options [array] :comments
29
+ # Array of comments to present to the user. See the comment schema for the full list of properties.
30
+ # @option options [string] :cursor
31
+ # App supplied cursor used for pagination, will be sent in the next request for comments.
32
+ # @option options [boolean] :can_post_comment
33
+ # Indicates whether the user has permissions to post comments.
34
+ # @option options [string] :trigger_id
35
+ # A reference to the original user action that initiated the request.
36
+ # @option options [string] :delete_action_id
37
+ # The block action id that will be sent when a delete request is initiated for a comment.
38
+ # @option options [boolean] :user_auth_required
39
+ # Set to true (or 1) to indicate that the user must authenticate to see the comments data.
40
+ # @option options [string] :user_auth_url
41
+ # A custom URL to which users are directed for authentication if required.
42
+ # @option options [Object] :error
43
+ # @see https://api.slack.com/methods/entity.presentComments
44
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/entity/entity.presentComments.json
45
+ def entity_presentComments(options = {})
46
+ raise ArgumentError, 'Required arguments :comments missing' if options[:comments].nil?
47
+ raise ArgumentError, 'Required arguments :trigger_id missing' if options[:trigger_id].nil?
48
+ if block_given?
49
+ Pagination::Cursor.new(self, :entity_presentComments, options).each do |page|
50
+ yield page
51
+ end
52
+ else
53
+ post('entity.presentComments', options)
54
+ end
55
+ end
56
+
9
57
  #
10
58
  # Provide custom flexpane behavior for Work Objects. Apps call this endpoint to send per-user flexpane metadata to the client.
11
59
  #
@@ -21,6 +21,12 @@ module Slack
21
21
  # The message text introducing the file in specified channels.
22
22
  # @option options [string] :blocks
23
23
  # A JSON-based array of structured rich text blocks, presented as a URL-encoded string. If the initial_comment field is provided, the blocks field is ignored.
24
+ # @option options [string] :username
25
+ # Set your bot's user name for the file share message. Requires the chat:write.customize scope.
26
+ # @option options [string] :icon_url
27
+ # URL to an image to use as the icon for the file share message. Requires the chat:write.customize scope.
28
+ # @option options [string] :icon_emoji
29
+ # Emoji to use as the icon for the file share message. Overrides icon_url. Requires the chat:write.customize scope.
24
30
  # @see https://api.slack.com/methods/files.completeUploadExternal
25
31
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files/files.completeUploadExternal.json
26
32
  def files_completeUploadExternal(options = {})
@@ -186,6 +192,7 @@ module Slack
186
192
  # @see https://api.slack.com/methods/files.upload
187
193
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files/files.upload.json
188
194
  def files_upload(options = {})
195
+ options = options.merge(filename: 'file') if options[:file] && !options[:filename]
189
196
  post('files.upload', options)
190
197
  end
191
198
  end
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -31,6 +31,39 @@ module Slack
31
31
  post('oauth.v2.access', options)
32
32
  end
33
33
 
34
+ #
35
+ # Call this to rotate the secret on an old API token with a short secret. Must be paired with a call to oauth.v2.completeShortTokenRotation to confirm the change.
36
+ #
37
+ # @option options [string] :client_id
38
+ # Issued when you created your application. Must be the app the token being rotated was issued to.
39
+ # @option options [string] :client_secret
40
+ # Issued when you created your application.
41
+ # @see https://api.slack.com/methods/oauth.v2.beginShortTokenRotation
42
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/oauth.v2/oauth.v2.beginShortTokenRotation.json
43
+ def oauth_v2_beginShortTokenRotation(options = {})
44
+ raise ArgumentError, 'Required arguments :client_id missing' if options[:client_id].nil?
45
+ raise ArgumentError, 'Required arguments :client_secret missing' if options[:client_secret].nil?
46
+ post('oauth.v2.beginShortTokenRotation', options)
47
+ end
48
+
49
+ #
50
+ # Call this to finish rotating the secret on an old API token with a short secret. Must be paired with a call to oauth.v2.beginShortTokenRotation to start the process.
51
+ #
52
+ # @option options [string] :client_id
53
+ # Issued when you created your application. Must be the app the token being rotated was issued to.
54
+ # @option options [string] :client_secret
55
+ # Issued when you created your application.
56
+ # @option options [string] :new_token
57
+ # The new xoxp token returned by oauth.v2.beginShortTokenRotation.
58
+ # @see https://api.slack.com/methods/oauth.v2.completeShortTokenRotation
59
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/oauth.v2/oauth.v2.completeShortTokenRotation.json
60
+ def oauth_v2_completeShortTokenRotation(options = {})
61
+ raise ArgumentError, 'Required arguments :client_id missing' if options[:client_id].nil?
62
+ raise ArgumentError, 'Required arguments :client_secret missing' if options[:client_secret].nil?
63
+ raise ArgumentError, 'Required arguments :new_token missing' if options[:new_token].nil?
64
+ post('oauth.v2.completeShortTokenRotation', options)
65
+ end
66
+
34
67
  #
35
68
  # Exchanges a legacy access token for a new expiring access token and refresh token
36
69
  #
File without changes
File without changes
@@ -10,7 +10,7 @@ module Slack
10
10
  # Pins an item to a channel.
11
11
  #
12
12
  # @option options [channel] :channel
13
- # Channel to pin the messsage to. You must also include a timestamp when pinning messages.
13
+ # Channel to pin the message to. You must also include a timestamp when pinning messages.
14
14
  # @option options [string] :timestamp
15
15
  # Timestamp of the message to pin. You must also include the channel.
16
16
  # @see https://api.slack.com/methods/pins.add
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -13,6 +13,14 @@ module Slack
13
13
  # ID of the List to export.
14
14
  # @option options [string] :job_id
15
15
  # The ID of the recently started job to export the List.
16
+ # @option options [Object] :format
17
+ # Format the export was started with. Must match the format passed to slackLists.download.start. Defaults to csv.
18
+ # @option options [boolean] :include_threads
19
+ # Must match the include_threads passed to slackLists.download.start. The returned download_url carries this through so the served export matches what was generated. Only applies when format is json.
20
+ # @option options [boolean] :include_attachments
21
+ # Must match the include_attachments passed to slackLists.download.start. The returned download_url carries this through so the served export matches what was generated. Only applies when format is json.
22
+ # @option options [boolean] :include_archived
23
+ # Must match the include_archived passed to slackLists.download.start. The returned download_url carries this through so the served export includes archived items when they were requested.
16
24
  # @see https://api.slack.com/methods/slackLists.download.get
17
25
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackLists.download/slackLists.download.get.json
18
26
  def slackLists_download_get(options = {})
@@ -27,6 +35,12 @@ module Slack
27
35
  # @option options [string] :list_id
28
36
  # ID of the List to export.
29
37
  # @option options [boolean] :include_archived
38
+ # @option options [Object] :format
39
+ # Format of the export. Defaults to csv for backward compatibility. Use json for a complete, hierarchical export.
40
+ # @option options [boolean] :include_threads
41
+ # Include each item's conversation thread in the export. Only applies when format is json.
42
+ # @option options [boolean] :include_attachments
43
+ # Include file attachment metadata and access paths in the export. Only applies when format is json.
30
44
  # @see https://api.slack.com/methods/slackLists.download.start
31
45
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackLists.download/slackLists.download.start.json
32
46
  def slackLists_download_start(options = {})
@@ -77,11 +77,13 @@ module Slack
77
77
  # @option options [string] :list_id
78
78
  # ID of the List.
79
79
  # @option options [integer] :limit
80
- # The maximum number of records to return.
80
+ # The maximum number of records to return, up to the list row limit of 5000.
81
81
  # @option options [string] :cursor
82
82
  # Next cursor for pagination.
83
83
  # @option options [boolean] :archived
84
84
  # Boolean indicating whether archived items or normal items should be returned.
85
+ # @option options [boolean] :include_list
86
+ # Set to true to also return the parent list object, including its title, column schema, and total row count. Defaults to false to keep the response small.
85
87
  # @see https://api.slack.com/methods/slackLists.items.list
86
88
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackLists.items/slackLists.items.list.json
87
89
  def slackLists_items_list(options = {})
@@ -0,0 +1,107 @@
1
+ # frozen_string_literal: true
2
+ # This file was auto-generated by lib/tasks/web.rake
3
+
4
+ module Slack
5
+ module Web
6
+ module Api
7
+ module Endpoints
8
+ module SlackbotSkills
9
+ #
10
+ # Creates a skill from markdown instructions, or turns an existing canvas the caller owns into a skill.
11
+ #
12
+ # @option options [string] :display_name
13
+ # Human-readable label. Max 255 characters; not unique.
14
+ # @option options [string] :instructions
15
+ # Markdown body of the skill. Send exactly one of instructions or canvas_id.
16
+ # @option options [Object] :canvas_id
17
+ # Canvas the caller owns to turn into a skill. Send exactly one of instructions or canvas_id.
18
+ # @option options [string] :description
19
+ # When Slackbot should use the skill. Max 400 characters.
20
+ # @option options [enum] :category
21
+ # One of the skill categories.
22
+ # @option options [string] :example_prompt
23
+ # Max 200 characters. May contain {skill}, which becomes the skill mention.
24
+ # @option options [array] :mcp_servers
25
+ # Apps the skill needs, capped at the caller's MCP server limit. Declaring an app doesn't grant access to it.
26
+ # @see https://api.slack.com/methods/slackbot.skills.create
27
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackbot.skills/slackbot.skills.create.json
28
+ def slackbot_skills_create(options = {})
29
+ raise ArgumentError, 'Required arguments :display_name missing' if options[:display_name].nil?
30
+ post('slackbot.skills.create', options)
31
+ end
32
+
33
+ #
34
+ # Deletes a Slackbot skill and its canvas, and removes it from every library, skill set, and the org catalog.
35
+ #
36
+ # @option options [string] :skill_id
37
+ # Skill to delete.
38
+ # @see https://api.slack.com/methods/slackbot.skills.delete
39
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackbot.skills/slackbot.skills.delete.json
40
+ def slackbot_skills_delete(options = {})
41
+ raise ArgumentError, 'Required arguments :skill_id missing' if options[:skill_id].nil?
42
+ post('slackbot.skills.delete', options)
43
+ end
44
+
45
+ #
46
+ # Returns one Slackbot skill, including its instructions.
47
+ #
48
+ # @option options [string] :skill_id
49
+ # Skill to fetch: a canvas file ID or a builtin: reference.
50
+ # @see https://api.slack.com/methods/slackbot.skills.info
51
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackbot.skills/slackbot.skills.info.json
52
+ def slackbot_skills_info(options = {})
53
+ raise ArgumentError, 'Required arguments :skill_id missing' if options[:skill_id].nil?
54
+ post('slackbot.skills.info', options)
55
+ end
56
+
57
+ #
58
+ # Lists Slackbot skills from the caller's point of view. Instructions are not included.
59
+ #
60
+ # @option options [enum] :filter
61
+ # library: skills enabled for the caller, including auto-enabled skills and skills from skill sets. owned: skills the caller created. catalog: the organization's official skills.
62
+ # @option options [string] :category
63
+ # Only return skills in this category.
64
+ # @option options [string] :cursor
65
+ # Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Must be used with the same filter and category.
66
+ # @option options [integer] :limit
67
+ # The maximum number of skills to return. Fewer may be returned even when more remain.
68
+ # @see https://api.slack.com/methods/slackbot.skills.list
69
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackbot.skills/slackbot.skills.list.json
70
+ def slackbot_skills_list(options = {})
71
+ if block_given?
72
+ Pagination::Cursor.new(self, :slackbot_skills_list, options).each do |page|
73
+ yield page
74
+ end
75
+ else
76
+ post('slackbot.skills.list', options)
77
+ end
78
+ end
79
+
80
+ #
81
+ # Changes a Slackbot skill's instructions or metadata. Only the inputs you send are changed; a call that changes nothing succeeds without writing.
82
+ #
83
+ # @option options [string] :skill_id
84
+ # Skill to change.
85
+ # @option options [string] :display_name
86
+ # Human-readable label. Max 255 characters.
87
+ # @option options [string] :instructions
88
+ # Markdown that replaces the whole document.
89
+ # @option options [string] :description
90
+ # When Slackbot should use the skill. Max 400 characters. Send an empty string to clear.
91
+ # @option options [enum] :category
92
+ # One of the skill categories. Send an empty string to clear.
93
+ # @option options [string] :example_prompt
94
+ # Max 200 characters. May contain {skill}. Send an empty string to clear.
95
+ # @option options [array] :mcp_servers
96
+ # Apps the skill needs. Replaces the whole list; send [] to clear.
97
+ # @see https://api.slack.com/methods/slackbot.skills.update
98
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackbot.skills/slackbot.skills.update.json
99
+ def slackbot_skills_update(options = {})
100
+ raise ArgumentError, 'Required arguments :skill_id missing' if options[:skill_id].nil?
101
+ post('slackbot.skills.update', options)
102
+ end
103
+ end
104
+ end
105
+ end
106
+ end
107
+ end
@@ -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 Web
6
+ module Api
7
+ module Endpoints
8
+ module SlackbotSkillsLibrary
9
+ #
10
+ # Turns a skill on in the caller's personal library.
11
+ #
12
+ # @option options [string] :skill_id
13
+ # Skill to turn on for the caller.
14
+ # @see https://api.slack.com/methods/slackbot.skills.library.add
15
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackbot.skills.library/slackbot.skills.library.add.json
16
+ def slackbot_skills_library_add(options = {})
17
+ raise ArgumentError, 'Required arguments :skill_id missing' if options[:skill_id].nil?
18
+ post('slackbot.skills.library.add', options)
19
+ end
20
+
21
+ #
22
+ # Turns a skill off in the caller's personal library.
23
+ #
24
+ # @option options [string] :skill_id
25
+ # Skill to turn off for the caller.
26
+ # @see https://api.slack.com/methods/slackbot.skills.library.remove
27
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/slackbot.skills.library/slackbot.skills.library.remove.json
28
+ def slackbot_skills_library_remove(options = {})
29
+ raise ArgumentError, 'Required arguments :skill_id missing' if options[:skill_id].nil?
30
+ post('slackbot.skills.library.remove', options)
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
File without changes
@@ -60,6 +60,8 @@ module Slack
60
60
  # Query by domain instead of team (only when team is null). This only works for domains in the same enterprise as the querying team token. This also expects the domain to belong to a team and not the enterprise itself. This is the value set up for the 'Joining This Workspace' workspace setting. If it contains more than one domain, the field will contain multiple comma-separated domain values. If no domain is set, the field is empty.
61
61
  # @option options [string] :team
62
62
  # Team to get info about; if omitted, will return information about the current team.
63
+ # @option options [boolean] :include_slackbot_availability
64
+ # Include advisory Slackbot availability for the returned workspace or organization. Only applies to a single team in the caller's own workspace or organization; omitted for external teams. Does not guarantee individual eligibility, remaining usage, or access to a particular app.
63
65
  # @see https://api.slack.com/methods/team.info
64
66
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/team/team.info.json
65
67
  def team_info(options = {})
File without changes
@@ -30,7 +30,7 @@ module Slack
30
30
  # @option options [enum] :sort_direction
31
31
  # Direction to sort in asc or desc.
32
32
  # @option options [array] :slack_connect_pref_filter
33
- # Filters connected orgs by Slack Connect pref override(s). Value can be: approved_orgs_only allow_sc_file_uploads profile_visibility away_team_sc_invite_permissions accept_sc_invites sc_mpdm_to_private require_sc_channel_for_sc_dm external_awareness_context_bar.
33
+ # Filters connected orgs by Slack Connect pref override(s). Value can be: approved_orgs_only allow_sc_file_uploads profile_visibility away_team_sc_invite_permissions accept_sc_invites sc_mpdm_to_private external_awareness_context_bar.
34
34
  # @option options [array] :workspace_filter
35
35
  # Shows connected orgs which are connected on a specified encoded workspace ID.
36
36
  # @option options [enum] :connection_status_filter
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -13,6 +13,8 @@ module Slack
13
13
  # 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 detail.
14
14
  # @option options [boolean] :exclude_archived
15
15
  # Set to true to exclude archived channels from the list.
16
+ # @option options [boolean] :exclude_muted
17
+ # Set to true to exclude muted channels from the list.
16
18
  # @option options [number] :limit
17
19
  # The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached. Must be an integer with a max value of 999.
18
20
  # @option options [string] :team_id
@@ -74,7 +76,6 @@ module Slack
74
76
  # @see https://api.slack.com/methods/users.info
75
77
  # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/users/users.info.json
76
78
  def users_info(options = {})
77
- raise ArgumentError, 'Required arguments :user missing' if options[:user].nil?
78
79
  options = options.merge(user: users_id(options)['user']['id']) if options[:user]
79
80
  post('users.info', options)
80
81
  end
File without changes
File without changes
File without changes
File without changes
File without changes