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
File without changes
File without changes
File without changes
File without changes
@@ -43,8 +43,8 @@ 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 )
46
+ g.desc 'Exclude channels from Slack AI in bulk.'
47
+ g.long_desc %( Exclude channels from Slack AI in bulk. )
48
48
  g.command 'bulkSetExcludeFromSlackAi' do |c|
49
49
  c.flag 'channel_ids', desc: 'An array of channel IDs to exclude from Slack AI.'
50
50
  c.flag 'exclude', desc: 'Whether the channels should be excluded from Slack AI.'
@@ -53,6 +53,16 @@ module Slack
53
53
  end
54
54
  end
55
55
 
56
+ g.desc 'Set properties on channels in bulk.'
57
+ g.long_desc %( Set properties on channels in bulk. )
58
+ g.command 'bulkSetProperties' do |c|
59
+ c.flag 'channel_ids', desc: 'An array of channel IDs on which to set the property.'
60
+ c.flag 'property', desc: 'The property for this channel in a key value format. Only one property can be updated at a time.'
61
+ c.action do |_global_options, options, _args|
62
+ puts JSON.dump(@client.admin_conversations_bulkSetProperties(options))
63
+ end
64
+ end
65
+
56
66
  g.desc 'Convert a public channel to a private channel.'
57
67
  g.long_desc %( Convert a public channel to a private channel. )
58
68
  g.command 'convertToPrivate' do |c|
@@ -154,6 +164,16 @@ module Slack
154
164
  end
155
165
  end
156
166
 
167
+ g.desc 'Remove multiple users from a conversation. Admin version of conversations.kick with support for bulk user removal.'
168
+ g.long_desc %( Remove multiple users from a conversation. Admin version of conversations.kick with support for bulk user removal. )
169
+ g.command 'kick' do |c|
170
+ c.flag 'channel_id', desc: 'ID of conversation to remove users from.'
171
+ c.flag 'user_ids', desc: 'The users to remove from the channel.'
172
+ c.action do |_global_options, options, _args|
173
+ puts JSON.dump(@client.admin_conversations_kick(options))
174
+ end
175
+ end
176
+
157
177
  g.desc 'Link a Salesforce record to a channel'
158
178
  g.long_desc %( Link a Salesforce record to a channel )
159
179
  g.command 'linkObjects' do |c|
@@ -202,7 +222,7 @@ module Slack
202
222
  g.command 'search' do |c|
203
223
  c.flag 'team_ids', desc: 'Comma separated string of team IDs, signifying the internal workspaces to search through.'
204
224
  c.flag 'connected_team_ids', desc: 'Array of encoded team IDs, signifying the external orgs to search through.'
205
- c.flag 'query', desc: 'Name of the the channel to query by.'
225
+ c.flag 'query', desc: 'Name of the channel to query by.'
206
226
  c.flag 'limit', desc: 'Maximum number of items to be returned. Must be between 1 - 20 both inclusive. Default is 10.'
207
227
  c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.'
208
228
  c.flag 'search_channel_types', desc: 'The type of channel to include or exclude in the search. For example private will search private channels, while private_exclude will exclude them. For a full list of types, check the Types section.'
File without changes
File without changes
File without changes
@@ -11,7 +11,7 @@ module Slack
11
11
  g.command 'list' do |c|
12
12
  c.flag 'team_id', desc: 'The team context to retrieve functions from.'
13
13
  c.flag 'app_ids', desc: 'Comma-separated array of app IDs to get functions for; max 50.'
14
- c.flag 'include_non_distributed_functions', desc: 'Whether to also include functions that are not yet distributed to any users in the function count. This is needed for admins that are approving an app request and will only work if the team owns the app.'
14
+ c.flag 'include_non_distributed_functions', desc: 'Whether to also include functions that are not yet distributed to any users in the function list. This is needed for admins that are approving an app request and will only work if the team owns the app.'
15
15
  c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.'
16
16
  c.flag 'limit', desc: 'The number of results that will be returned by the API on each invocation. Must be between 1 and 1000, both inclusive.'
17
17
  c.action do |_global_options, options, _args|
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,56 @@
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 'AdminSlackbotSkills methods.'
8
+ command 'admin_slackbot_skills' do |g|
9
+ g.desc 'Lists metadata for skills owned by the organization, including invite-only skills.'
10
+ g.long_desc %( Lists metadata for skills owned by the organization, including invite-only skills. )
11
+ g.command 'list' do |c|
12
+ c.flag 'category', desc: 'Only return skills in this category.'
13
+ c.flag 'cursor', desc: 'Continuation from the previous page. Keep all filters and sorting unchanged. Pages can be empty while a continuation remains; continue until next_cursor is empty. Changes during traversal may move results; pagination is not a snapshot.'
14
+ c.flag 'limit', desc: 'The maximum number of skills to return. Fewer may be returned even when more remain.'
15
+ c.flag 'creator_ids', desc: 'Only return skills created by these users. Accepts U or W user IDs.'
16
+ c.flag 'publish_status', desc: 'Filter by publication to the org catalog.'
17
+ c.flag 'auto_enabled_status', desc: 'Filter by org deployment, independently of publication.'
18
+ c.flag 'sort', desc: 'Sort across the inventory. Name uses case-insensitive ordering. Unedited skills use their creation date for date_updated sorting.'
19
+ c.flag 'sort_dir', desc: 'Sort direction; file ID breaks ties.'
20
+ c.action do |_global_options, options, _args|
21
+ puts JSON.dump(@client.admin_slackbot_skills_list(options))
22
+ end
23
+ end
24
+
25
+ g.desc "Publishes Slackbot skills to an organization's catalog."
26
+ g.long_desc %( Publishes Slackbot skills to an organization's catalog. )
27
+ g.command 'publish' do |c|
28
+ c.flag 'skill_ids', desc: 'One to 50 skill IDs. Successful items are not rolled back if other items fail.'
29
+ c.action do |_global_options, options, _args|
30
+ puts JSON.dump(@client.admin_slackbot_skills_publish(options))
31
+ end
32
+ end
33
+
34
+ g.desc 'Sets who a Slackbot skill is automatically turned on for.'
35
+ g.long_desc %( Sets who a Slackbot skill is automatically turned on for. )
36
+ g.command 'setAutoEnabled' do |c|
37
+ c.flag 'skill_id', desc: 'Canvas skill to deploy.'
38
+ c.flag 'permission_type', desc: 'Deployment audience.'
39
+ c.flag 'usergroup_ids', desc: 'One to 100 user groups for named_entities. Duplicates count toward the input limit and are stored once. Omit for other permission types.'
40
+ c.action do |_global_options, options, _args|
41
+ puts JSON.dump(@client.admin_slackbot_skills_setAutoEnabled(options))
42
+ end
43
+ end
44
+
45
+ g.desc 'Removes Slackbot skills from the org catalog, preserving access, libraries, and deployments.'
46
+ g.long_desc %( Removes Slackbot skills from the org catalog, preserving access, libraries, and deployments. )
47
+ g.command 'unpublish' do |c|
48
+ c.flag 'skill_ids', desc: 'One to 50 skill IDs. Successful items are not rolled back if other items fail.'
49
+ c.action do |_global_options, options, _args|
50
+ puts JSON.dump(@client.admin_slackbot_skills_unpublish(options))
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
File without changes
File without changes
File without changes
File without changes
@@ -28,6 +28,37 @@ module Slack
28
28
  end
29
29
  end
30
30
 
31
+ g.desc 'Add members to an existing organizational usergroup. This method is only available to Enterprise Grid organizations.'
32
+ g.long_desc %( Add members to an existing organizational usergroup. This method is only available to Enterprise Grid organizations. )
33
+ g.command 'addUsers' do |c|
34
+ c.flag 'id', desc: 'ID of the usergroup to add users to.'
35
+ c.flag 'users', desc: 'The encoded user IDs to add to the usergroup, provided as a JSON array or a comma-separated string.'
36
+ c.action do |_global_options, options, _args|
37
+ puts JSON.dump(@client.admin_usergroups_addUsers(options))
38
+ end
39
+ end
40
+
41
+ g.desc 'Create a new organizational usergroup. This method is only available to Enterprise Grid organizations.'
42
+ g.long_desc %( Create a new organizational usergroup. This method is only available to Enterprise Grid organizations. )
43
+ g.command 'create' do |c|
44
+ c.flag 'name', desc: 'Unique name for the usergroup.'
45
+ c.flag 'handle', desc: 'Optional handle used to mention the usergroup in channel, must be unique.'
46
+ c.flag 'purpose', desc: 'Optional purpose that describes what the usergroup is about.'
47
+ c.flag 'is_visible', desc: 'Configure whether or not this usergroup should be visible in the client.'
48
+ c.action do |_global_options, options, _args|
49
+ puts JSON.dump(@client.admin_usergroups_create(options))
50
+ end
51
+ end
52
+
53
+ g.desc 'Fetch an organizational usergroup.'
54
+ g.long_desc %( Fetch an organizational usergroup. )
55
+ g.command 'fetch' do |c|
56
+ c.flag 'id', desc: 'ID of the usergroup to fetch.'
57
+ c.action do |_global_options, options, _args|
58
+ puts JSON.dump(@client.admin_usergroups_fetch(options))
59
+ end
60
+ end
61
+
31
62
  g.desc 'List the channels linked to an org-level IDP group (user group).'
32
63
  g.long_desc %( List the channels linked to an org-level IDP group (user group). )
33
64
  g.command 'listChannels' do |c|
@@ -48,6 +79,49 @@ module Slack
48
79
  puts JSON.dump(@client.admin_usergroups_removeChannels(options))
49
80
  end
50
81
  end
82
+
83
+ g.desc 'Remove one or more default workspaces from an organization-wide IDP Group or Admin Group.'
84
+ g.long_desc %( Remove one or more default workspaces from an organization-wide IDP Group or Admin Group. )
85
+ g.command 'removeTeams' do |c|
86
+ c.flag 'usergroup_id', desc: 'An encoded usergroup (IDP Group) ID.'
87
+ c.flag 'team_ids', desc: 'A comma separated list of encoded team (workspace) IDs. Each workspace MUST belong to the organization associated with the token.'
88
+ c.action do |_global_options, options, _args|
89
+ puts JSON.dump(@client.admin_usergroups_removeTeams(options))
90
+ end
91
+ end
92
+
93
+ g.desc 'Remove members from an existing organizational usergroup. This method is only available to Enterprise Grid organizations.'
94
+ g.long_desc %( Remove members from an existing organizational usergroup. This method is only available to Enterprise Grid organizations. )
95
+ g.command 'removeUsers' do |c|
96
+ c.flag 'id', desc: 'ID of the usergroup to remove users from.'
97
+ c.flag 'users', desc: 'The encoded user IDs to remove from the usergroup, provided as a JSON array or a comma-separated string.'
98
+ c.action do |_global_options, options, _args|
99
+ puts JSON.dump(@client.admin_usergroups_removeUsers(options))
100
+ end
101
+ end
102
+
103
+ g.desc 'Update one or more properties of an existing organizational usergroup.'
104
+ g.long_desc %( Update one or more properties of an existing organizational usergroup. )
105
+ g.command 'update' do |c|
106
+ c.flag 'id', desc: 'ID of the usergroup to update.'
107
+ c.flag 'name', desc: 'The name of the group.'
108
+ c.flag 'handle', desc: 'The handle used for mentioning the group in a channel, must be unique.'
109
+ c.flag 'description', desc: "The usergroup's purpose or description."
110
+ c.flag 'is_visible', desc: 'Configure whether or not this usergroup should be visible in the client.'
111
+ c.action do |_global_options, options, _args|
112
+ puts JSON.dump(@client.admin_usergroups_update(options))
113
+ end
114
+ end
115
+
116
+ g.desc 'Add members to an existing organizational usergroup in bulk via CSV upload. This method is only available to Enterprise Grid organizations.'
117
+ g.long_desc %( Add members to an existing organizational usergroup in bulk via CSV upload. This method is only available to Enterprise Grid organizations. )
118
+ g.command 'uploadUsers' do |c|
119
+ c.flag 'id', desc: 'ID of the usergroup to upload users to.'
120
+ c.flag 'file', desc: 'Csv of users to upload in format member id, email.'
121
+ c.action do |_global_options, options, _args|
122
+ puts JSON.dump(@client.admin_usergroups_uploadUsers(options))
123
+ end
124
+ end
51
125
  end
52
126
  end
53
127
  end
@@ -19,6 +19,15 @@ module Slack
19
19
  end
20
20
  end
21
21
 
22
+ g.desc 'Deactivate a user from an enterprise organization and all its workspaces.'
23
+ g.long_desc %( Deactivate a user from an enterprise organization and all its workspaces. )
24
+ g.command 'deactivate' do |c|
25
+ c.flag 'user_id', desc: 'The ID of the user to deactivate.'
26
+ c.action do |_global_options, options, _args|
27
+ puts JSON.dump(@client.admin_users_deactivate(options))
28
+ end
29
+ end
30
+
22
31
  g.desc 'Fetches the expiration timestamp for a guest'
23
32
  g.long_desc %( Fetches the expiration timestamp for a guest )
24
33
  g.command 'getExpiration' do |c|
@@ -104,8 +113,8 @@ module Slack
104
113
  end
105
114
  end
106
115
 
107
- g.desc 'Set an existing guest user, admin user, or owner to be a regular user.'
108
- g.long_desc %( Set an existing guest user, admin user, or owner to be a regular user. )
116
+ g.desc 'Set an existing guest user, admin user, or owner to be a regular user. When team_id is an organization, the user is also set to a regular user on every workspace where they are a workspace owner, including workspaces where they were an owner before becoming an org admin or owner.'
117
+ g.long_desc %( Set an existing guest user, admin user, or owner to be a regular user. When team_id is an organization, the user is also set to a regular user on every workspace where they are a workspace owner, including workspaces where they were an owner before becoming an org admin or owner. )
109
118
  g.command 'setRegular' do |c|
110
119
  c.flag 'team_id', desc: 'The ID of the workspace or organization.'
111
120
  c.flag 'user_id', desc: 'The ID of the user to designate as a regular user.'
@@ -0,0 +1,31 @@
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 'AdminUsersAccess methods.'
8
+ command 'admin_users_access' do |g|
9
+ g.desc 'Pause access across the organization for up to 1,000 frontline members. Success means the request was queued, not that all updates have completed.'
10
+ g.long_desc %( Pause access across the organization for up to 1,000 frontline members. Success means the request was queued, not that all updates have completed. )
11
+ g.command 'pause' do |c|
12
+ c.flag 'user_ids', desc: 'IDs of frontline members in the authenticated organization. Valid users are queued; rejected IDs are returned in invalid_users.'
13
+ c.flag 'reason', desc: 'Optional explanation for the access change.'
14
+ c.action do |_global_options, options, _args|
15
+ puts JSON.dump(@client.admin_users_access_pause(options))
16
+ end
17
+ end
18
+
19
+ g.desc 'Resume access across the organization for up to 1,000 frontline members. Success means the request was queued, not that all updates have completed.'
20
+ g.long_desc %( Resume access across the organization for up to 1,000 frontline members. Success means the request was queued, not that all updates have completed. )
21
+ g.command 'resume' do |c|
22
+ c.flag 'user_ids', desc: 'IDs of frontline members in the authenticated organization. Valid users are queued; rejected IDs are returned in invalid_users.'
23
+ c.flag 'reason', desc: 'Optional explanation for the access change.'
24
+ c.action do |_global_options, options, _args|
25
+ puts JSON.dump(@client.admin_users_access_resume(options))
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -27,7 +27,6 @@ module Slack
27
27
  g.desc 'Revoke a single session for a user. The user will be forced to login to Slack.'
28
28
  g.long_desc %( Revoke a single session for a user. The user will be forced to login to Slack. )
29
29
  g.command 'invalidate' do |c|
30
- c.flag 'team_id', desc: 'ID of the workspace that the session belongs to.'
31
30
  c.flag 'user_id', desc: 'ID of the user that the session belongs to.'
32
31
  c.flag 'session_id', desc: 'ID of the session to invalidate.'
33
32
  c.action do |_global_options, options, _args|
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,122 @@
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 'AgentsConversations methods.'
8
+ command 'agents_conversations' do |g|
9
+ g.desc 'Archive a code channel.'
10
+ g.long_desc %( Archive a code channel. )
11
+ g.command 'archive' do |c|
12
+ c.flag 'channel_id', desc: 'ID of the code channel to archive.'
13
+ c.flag 'summary_message_ts', desc: 'Timestamp of a message in the code channel to share back as a thread reply on the origin message. Requires the channel to have an origin_link set.'
14
+ c.action do |_global_options, options, _args|
15
+ puts JSON.dump(@client.agents_conversations_archive(options))
16
+ end
17
+ end
18
+
19
+ g.desc 'Create a dedicated code channel for an agent session.'
20
+ g.long_desc %( Create a dedicated code channel for an agent session. )
21
+ g.command 'create' do |c|
22
+ c.flag 'team_id', desc: 'Encoded team id to create the channel in. Required for org tokens when origin_channel_id is not provided. When omitted, the workspace is derived from the origin channel.'
23
+ c.flag 'session_id', desc: 'An opaque identifier for the agent session. When provided, the call is idempotent: if a channel already exists for this session_id, it is returned instead of creating a new one.'
24
+ c.flag 'name', desc: 'A friendly display name for the code channel. Optional when origin_channel_id and origin_message_ts are provided — in that case the channel is named from the origin message and re-titled automatically. Required when no origin link is given.'
25
+ c.flag 'is_private', desc: "Whether the code channel is private. When omitted, the channel matches the privacy of origin_channel_id, or is public if no origin is given. An explicit value is always honored, even if it differs from the origin channel's privacy: passing false creates a public channel from a private origin."
26
+ c.flag 'origin_channel_id', desc: 'The channel ID where the agent session was initiated from. Must be provided together with origin_message_ts. The channel must be accessible to the calling user and must not be externally shared (Slack Connect). When team_id is omitted with an org token, the channel is created in the same workspace as this origin channel.'
27
+ c.flag 'origin_message_ts', desc: 'The message timestamp in the origin channel that started the agent session. Must be provided together with origin_channel_id. The author of this message is automatically invited to the newly created code channel.'
28
+ c.action do |_global_options, options, _args|
29
+ puts JSON.dump(@client.agents_conversations_create(options))
30
+ end
31
+ end
32
+
33
+ g.desc 'Fetch a canvas attached to a code channel.'
34
+ g.long_desc %( Fetch a canvas attached to a code channel. )
35
+ g.command 'getCanvas' do |c|
36
+ c.flag 'channel', desc: 'ID of the agent session channel the canvas belongs to.'
37
+ c.flag 'canvas_id', desc: 'Encoded ID of the canvas to fetch.'
38
+ c.flag 'content_format', desc: 'Format to render the canvas content in. Defaults to markdown.'
39
+ c.flag 'include_resolved', desc: 'Whether to include resolved comment threads in the response. Defaults to false.'
40
+ c.action do |_global_options, options, _args|
41
+ puts JSON.dump(@client.agents_conversations_getCanvas(options))
42
+ end
43
+ end
44
+
45
+ g.desc 'List the views currently attached to a code channel.'
46
+ g.long_desc %( List the views currently attached to a code channel. )
47
+ g.command 'listViews' do |c|
48
+ c.flag 'channel_id', desc: 'ID of the code channel to list views for.'
49
+ c.action do |_global_options, options, _args|
50
+ puts JSON.dump(@client.agents_conversations_listViews(options))
51
+ end
52
+ end
53
+
54
+ g.desc 'Remove a view from a code channel.'
55
+ g.long_desc %( Remove a view from a code channel. )
56
+ g.command 'removeView' do |c|
57
+ c.flag 'channel_id', desc: 'ID of the code channel to remove the view from.'
58
+ c.flag 'view_key', desc: 'Agent-assigned key of the view to remove. Provide exactly one of view_key or view_id.'
59
+ c.flag 'view_id', desc: 'Encoded channel tab ID of the view to remove. Provide exactly one of view_key or view_id.'
60
+ c.action do |_global_options, options, _args|
61
+ puts JSON.dump(@client.agents_conversations_removeView(options))
62
+ end
63
+ end
64
+
65
+ g.desc 'Replace the full markdown content of a plan canvas attached to a code channel.'
66
+ g.long_desc %( Replace the full markdown content of a plan canvas attached to a code channel. )
67
+ g.command 'setCanvasContent' do |c|
68
+ c.flag 'channel', desc: 'ID of the agent session channel the canvas is attached to.'
69
+ c.flag 'canvas_id', desc: 'Encoded ID of the canvas whose content to replace.'
70
+ c.flag 'content', desc: 'The full new canvas content as markdown. The server diffs this against the current content and applies only the changed sections.'
71
+ c.action do |_global_options, options, _args|
72
+ puts JSON.dump(@client.agents_conversations_setCanvasContent(options))
73
+ end
74
+ end
75
+
76
+ g.desc 'Register the set of agent-defined slash commands for the calling agent in a code channel.'
77
+ g.long_desc %( Register the set of agent-defined slash commands for the calling agent in a code channel. )
78
+ g.command 'setCommands' do |c|
79
+ c.flag 'channel_id', desc: 'ID of the code channel to register commands for.'
80
+ c.flag 'commands', desc: "Full set of commands to register for the calling agent in this channel, replacing that agent's previously registered set. Pass an empty array to clear the agent's commands. At most 10 commands may exist across all agents in the channel; names must be unique within the set and must not collide with builtin Slack commands."
81
+ c.action do |_global_options, options, _args|
82
+ puts JSON.dump(@client.agents_conversations_setCommands(options))
83
+ end
84
+ end
85
+
86
+ g.desc 'Set properties on a code channel.'
87
+ g.long_desc %( Set properties on a code channel. )
88
+ g.command 'setProperties' do |c|
89
+ c.flag 'channel_id', desc: 'ID of the code channel to update.'
90
+ c.flag 'title', desc: 'New display title for the agent session.'
91
+ c.flag 'status', desc: 'New status for the agent session.'
92
+ c.flag 'code_channel', desc: 'Code channel properties to set. Only provided fields are updated.'
93
+ c.flag 'agent_resource', desc: 'Agent resource properties to set. Only provided fields are updated.'
94
+ c.action do |_global_options, options, _args|
95
+ puts JSON.dump(@client.agents_conversations_setProperties(options))
96
+ end
97
+ end
98
+
99
+ g.desc 'Create or update a view in a code channel.'
100
+ g.long_desc %( Create or update a view in a code channel. )
101
+ g.command 'setView' do |c|
102
+ c.flag 'channel_id', desc: 'ID of the code channel to render the view in.'
103
+ c.flag 'type', desc: 'The kind of view to create or update. Defaults to html. Determines which other arguments are required: html and diff require content, block_kit requires blocks, and canvas requires canvas_id.'
104
+ c.flag 'view_key', desc: "Agent-assigned stable identity for the view (e.g. the source file path on the agent's machine). Used as the upsert key: calls with the same view_key update the same view. Required for html, block_kit, and canvas views; ignored for diff (a diff view is a per-channel singleton)."
105
+ c.flag 'content', desc: 'View content. For html, a full self-contained HTML document; for diff, raw unified diff text. Capped at 1,000,000 bytes; larger content returns content_too_large. The cap is enforced by the handler (not schema maxLength) so the documented error code actually surfaces instead of a generic argument-validation failure. Required when type is html or diff.'
106
+ c.flag 'blocks', desc: 'Block Kit blocks to render in the view tab. Required when type is block_kit; ignored otherwise.'
107
+ c.flag 'canvas_id', desc: 'Encoded ID of the canvas to attach as the view. Required when type is canvas; ignored otherwise.'
108
+ c.flag 'access_level', desc: 'For canvas views: access level granted to the channel for the canvas tab. Defaults to write. Use comment to grant channel members comment access (read and comment, no editing) so the agent remains the sole author of the canvas text.'
109
+ c.flag 'agent_content_hash', desc: 'For canvas views: hash of the canvas-derived markdown the agent last wrote, recorded so the agent can later detect human edits to the canvas. Opaque to the server.'
110
+ c.flag 'base_branch', desc: 'For diff views: base branch name for display purposes.'
111
+ c.flag 'head_branch', desc: 'For diff views: head branch name for display purposes.'
112
+ c.flag 'name', desc: 'Display label for the view tab. Preferred over the legacy label argument (name wins if both are supplied). Defaults to the last path segment of view_key, stripped of any .html or .htm extension.'
113
+ c.flag 'label', desc: 'Deprecated alias for name. Display label for the view tab. Defaults to the last path segment of view_key, stripped of any .html or .htm extension.'
114
+ c.flag 'csp', desc: 'Content-Security-Policy domain declarations for the view. Domains are validated server-side (https:// only, no private or internal hosts) and persisted.'
115
+ c.action do |_global_options, options, _args|
116
+ puts JSON.dump(@client.agents_conversations_setView(options))
117
+ end
118
+ end
119
+ end
120
+ end
121
+ end
122
+ end
@@ -0,0 +1,38 @@
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 'AgentsSessions methods.'
8
+ command 'agents_sessions' do |g|
9
+ g.desc 'Rename an agent session.'
10
+ g.long_desc %( Rename an agent session. )
11
+ g.command 'rename' do |c|
12
+ c.flag 'channel_id', desc: 'ID of the channel containing the agent session. Required for public channels.'
13
+ c.flag 'title', desc: 'New title for the agent session (1-200 characters). For a session channel, this also renames the channel.'
14
+ c.flag 'thread_ts', desc: 'Timestamp of the thread root message the session is scoped to. Required for thread-based sessions in regular channels and DMs. Must be omitted for session channels.'
15
+ c.action do |_global_options, options, _args|
16
+ puts JSON.dump(@client.agents_sessions_rename(options))
17
+ end
18
+ end
19
+
20
+ g.desc "Set an agent session's lifecycle status, creating the session if needed."
21
+ g.long_desc %( Set an agent session's lifecycle status, creating the session if needed. )
22
+ g.command 'setStatus' do |c|
23
+ c.flag 'channel_id', desc: 'ID of the channel containing the agent session. Required for public channels.'
24
+ c.flag 'status', desc: 'The lifecycle status to set.'
25
+ c.flag 'thread_ts', desc: 'Timestamp of the thread root message the session is scoped to. Required for thread-based sessions in regular channels and DMs. Must be omitted for session channels.'
26
+ c.flag 'title', desc: 'Title for the agent session (max 200 characters). Only used when creating a new session; ignored if the session already exists. To rename an existing session, use agents.sessions.rename.'
27
+ c.flag 'initiator_user_id', desc: 'The user who initiated the session. Only used when creating a new session; ignored if the session already exists. Must be a member of the channel.'
28
+ c.flag 'icon_emoji', desc: "Emoji to use as the agent's icon. Takes priority over icon_url. Remains in effect until you clear it (pass null) or set a new value. Requires the chat:write.customize scope."
29
+ c.flag 'icon_url', desc: "URL to an image to use as the agent's icon. Remains in effect until you clear it (pass null) or set a new value. Requires the chat:write.customize scope."
30
+ c.flag 'username', desc: 'Display name override for the agent (max 200 characters). Remains in effect until you clear it (pass null) or set a new value. Requires the chat:write.customize scope.'
31
+ c.action do |_global_options, options, _args|
32
+ puts JSON.dump(@client.agents_sessions_setStatus(options))
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
38
+ 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
File without changes
@@ -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 'AppsManagedPermissions methods.'
8
+ command 'apps_managed_permissions' do |g|
9
+ g.desc "Set who can interact with a managed app. Lets the builder who created a managed app on a partner platform configure the app's permissions, using a user token or bot token from the manager app. Permissions can only be set before the app is installed: if the app is already installed, this method makes no change and returns the app's current permissions."
10
+ g.long_desc %( Set who can interact with a managed app. Lets the builder who created a managed app on a partner platform configure the app's permissions, using a user token or bot token from the manager app. Permissions can only be set before the app is installed: if the app is already installed, this method makes no change and returns the app's current permissions. )
11
+ g.command 'set' do |c|
12
+ c.flag 'app_id', desc: 'Encoded ID of the managed app to configure.'
13
+ c.flag 'permissions', desc: "Who can interact with the app. Use everyone to allow all members, or app_owner to restrict access to the app's owner."
14
+ c.action do |_global_options, options, _args|
15
+ puts JSON.dump(@client.apps_managed_permissions_set(options))
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
File without changes
File without changes
File without changes
@@ -25,7 +25,7 @@ module Slack
25
25
  g.long_desc %( Set suggested prompts for the given assistant thread )
26
26
  g.command 'setSuggestedPrompts' do |c|
27
27
  c.flag 'channel_id', desc: 'Channel ID containing the assistant thread.'
28
- c.flag 'thread_ts', desc: 'Message timestamp of the thread to set suggested prompts for.'
28
+ c.flag 'thread_ts', desc: 'Message timestamp of the thread to set suggested prompts for. If not provided, the prompts will be set for the latest message in the channel.'
29
29
  c.flag 'prompts', desc: 'Each prompt should be supplied with its title and message attribute.'
30
30
  c.flag 'title', desc: 'Title for the list of provided prompts. For example: Suggested Prompts, Related Questions.'
31
31
  c.action do |_global_options, options, _args|
data/bin/commands/auth.rb CHANGED
File without changes
File without changes
File without changes
File without changes
data/bin/commands/bots.rb CHANGED
File without changes
File without changes
File without changes
@@ -10,7 +10,7 @@ module Slack
10
10
  g.long_desc %( Create canvas for a user )
11
11
  g.command 'create' do |c|
12
12
  c.flag 'title', desc: 'Title of the newly created canvas.'
13
- c.flag 'document_content', desc: 'Structure describing the type and value of the content to create.'
13
+ c.flag 'document_content', desc: 'Structure describing the type and value of the content to create. The markdown content is limited to 1 MiB (1,048,576 characters).'
14
14
  c.flag 'channel_id', desc: 'Channel ID of the channel the canvas will be tabbed in. This is a required field for free teams.'
15
15
  c.action do |_global_options, options, _args|
16
16
  puts JSON.dump(@client.canvases_create(options))
@@ -30,11 +30,21 @@ module Slack
30
30
  g.long_desc %( Update an existing canvas )
31
31
  g.command 'edit' do |c|
32
32
  c.flag 'canvas_id', desc: 'Encoded ID of the canvas.'
33
- c.flag 'changes', desc: 'List of changes to apply on the specified canvas.'
33
+ c.flag 'changes', desc: 'List of changes to apply on the specified canvas. The markdown content of each change is limited to 1 MiB (1,048,576 characters).'
34
34
  c.action do |_global_options, options, _args|
35
35
  puts JSON.dump(@client.canvases_edit(options))
36
36
  end
37
37
  end
38
+
39
+ g.desc 'Get the content of a canvas as markdown (default) or HTML.'
40
+ g.long_desc %( Get the content of a canvas as markdown (default) or HTML. )
41
+ g.command 'getContent' do |c|
42
+ c.flag 'canvas_id', desc: 'Encoded ID of the canvas.'
43
+ c.flag 'content_type', desc: 'Format in which to return the canvas content. Defaults to markdown.'
44
+ c.action do |_global_options, options, _args|
45
+ puts JSON.dump(@client.canvases_getContent(options))
46
+ end
47
+ end
38
48
  end
39
49
  end
40
50
  end
File without changes
File without changes