Conversation
Add the 9 Slack Code / code channel Web API methods to the Java Web API client, extending the existing agents.* namespace (agents.sessions.* already ships): - agents.conversations.create - agents.conversations.archive - agents.conversations.setProperties - agents.conversations.setView - agents.conversations.setCommands - agents.conversations.listViews - agents.conversations.removeView - agents.conversations.getCanvas - agents.conversations.setCanvasContent All require the bot scope code_channels:manage. Arg schemas follow docs PR #816. getCanvas + setCanvasContent use the `channel` arg (not `channel_id`); the rest use `channel_id`. Only agents.conversations.* names are added — no legacy codeChannels.* aliases (decision 2026-09-23). Undocumented complex/object args (code_channel, agent_resource, csp, commands) are exposed as JSON-encoded String params (the *AsString pattern, mirroring blocks.validate) rather than guessing nested shapes; setView also accepts a typed List<LayoutBlock>. Response classes carry only the common top-level fields since the API reference does not yet document response bodies (Slack Code is developer-GA). Wires each method into MethodsClient/Impl, AsyncMethodsClient/Impl, RequestFormBuilder, the Methods constants, and MethodsRateLimits. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1647 +/- ##
============================================
- Coverage 72.79% 72.31% -0.48%
Complexity 4550 4550
============================================
Files 483 483
Lines 14456 14564 +108
Branches 1513 1516 +3
============================================
+ Hits 10523 10532 +9
- Misses 3038 3137 +99
Partials 895 895
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the 9 Slack Code / code channel Web API methods to the Java Web API client, extending the existing
agents.*namespace (agents.sessions.*already ships). All 9 require the bot scopecode_channels:manage.agents.conversations.createagents.conversations.archiveagents.conversations.setPropertiesagents.conversations.setViewagents.conversations.setCommandsagents.conversations.listViewsagents.conversations.removeViewagents.conversations.getCanvasagents.conversations.setCanvasContentNotes
getCanvasandsetCanvasContenttake thechannelargument (modeled as thechannelfield); the other 7 takechannel_id(modeled aschannelId).codeChannels.*names are added (per the 2026-09-23 decision to shipagents.conversations.*only).code_channel,agent_resource,csp,commands) are exposed as JSON-encodedStringparams (the*AsStringpattern, mirroringblocks.validate) rather than guessing nested models;setViewadditionally accepts a typedList<LayoutBlock>forblocks. Response classes carry only the common top-level fields (ok/error/warning/needed/provided) because the API reference does not yet document response bodies.Files
18 new request/response classes under
com.slack.api.methods.{request,response}.agents.conversations, plus wiring inMethodsClient/MethodsClientImpl,AsyncMethodsClient/AsyncMethodsClientImpl,RequestFormBuilder, theMethodsconstants, andMethodsRateLimits.Testing
mvn -pl slack-api-client -am compile— BUILD SUCCESSmvn -pl slack-api-client -am test-compile— BUILD SUCCESSMethodsTest(endpoint coverage) +MethodsRateLimitsTest— green (3 tests, 0 failures)🤖 Generated with Claude Code