feat(web-api): add agents.sessions.rename and agents.sessions.setStatus - #2703
feat(web-api): add agents.sessions.rename and agents.sessions.setStatus#2703zimeg wants to merge 1 commit into
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2703 +/- ##
==========================================
+ Coverage 89.14% 89.15% +0.01%
==========================================
Files 65 65
Lines 10361 10383 +22
Branches 473 473
==========================================
+ Hits 9236 9257 +21
- Misses 1094 1095 +1
Partials 31 31
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Mirror the Python SDK (slackapi/python-slack-sdk#1942) for the two agents.sessions methods: - agents.sessions.rename Rename an agent session. - agents.sessions.setStatus Set an agent session's lifecycle status, creating the session if needed. Adds the client.agents.sessions.{rename,setStatus} bindings, the request argument types, and the response types. The response types are generated from the java-slack-sdk API sample logs via scripts/generate-web-api-types.sh; the samples land in slackapi/java-slack-sdk#1633, so the generator must be re-run against java-slack-sdk main once that ships to pick up the final response shape. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
74a4330 to
ee66240
Compare
Mirror the Python examples (slack-samples/bolt-python-examples#201) for the two agents.sessions methods, nested under agents/sessions/ to match: - agents.sessions.rename Rename an agent session. - agents.sessions.setStatus Set an agent session's lifecycle status, creating the session if needed. Adds the two example scripts, a per-family manifest (agent view + the agent session bot events) with its .slack CLI config, and an "agents" section in the methods README. Requires client.agents.sessions.{rename,setStatus} in @slack/web-api (adds via slackapi/node-slack-sdk#2703); the package stays on the released ^8.0.0 range until that ships, so the typecheck can't resolve the methods until then. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Mirror the Python examples (slack-samples/bolt-python-examples#201) for the two agents.sessions methods, nested under agents/sessions/ to match: - agents.sessions.rename Rename an agent session. - agents.sessions.setStatus Set an agent session's lifecycle status, creating the session if needed. Adds the two example scripts, a per-family manifest (agent view + the agent session bot events) with its .slack CLI config, and an "agents" section in the methods README. Requires client.agents.sessions.{rename,setStatus} in @slack/web-api (adds via slackapi/node-slack-sdk#2703); the package stays on the released ^8.0.0 range until that ships, so the typecheck can't resolve the methods until then. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Mirror the Python examples (slack-samples/bolt-python-examples#201) for the two agents.sessions methods, nested under agents/sessions/ to match: - agents.sessions.rename Rename an agent session. - agents.sessions.setStatus Set an agent session's lifecycle status, creating the session if needed. Adds the two example scripts, a per-family manifest (agent view + the agent session bot events) with its .slack CLI config, and an "agents" section in the methods README. Requires client.agents.sessions.{rename,setStatus} in @slack/web-api (adds via slackapi/node-slack-sdk#2703); the package stays on the released ^8.0.0 range until that ships, so the typecheck can't resolve the methods until then. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Mirror the Python examples (slack-samples/bolt-python-examples#201) for the two agents.sessions methods, nested under agents/sessions/ to match: - agents.sessions.rename Rename an agent session. - agents.sessions.setStatus Set an agent session's lifecycle status, creating the session if needed. Adds the two example scripts, a per-family manifest (agent view + the agent session bot events) with its .slack CLI config, and an "agents" section in the methods README. Requires client.agents.sessions.{rename,setStatus} in @slack/web-api (adds via slackapi/node-slack-sdk#2703); the package stays on the released ^8.0.0 range until that ships, so the typecheck can't resolve the methods until then. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Mirrors the Python SDK (slackapi/python-slack-sdk#1942) for the two
agents.sessionsmethods.What's here
client.agents.sessions.rename— Rename an agent session.client.agents.sessions.setStatus— Set an agent session's lifecycle status, creating the session if needed.src/types/request/agents.ts)src/types/response/AgentsSessions{Rename,SetStatus}Response.ts)Response types — regenerate after the Java SDK PR lands
The response types are produced by
scripts/generate-web-api-types.sh, which runs quicktype over the API sample logs in java-slack-sdk (json-logs/samples/api/). Those samples are added in slackapi/java-slack-sdk#1633.The two response files here were generated by running that exact quicktype pipeline against the #1633 samples, so they should match — but the generator clones
java-slack-sdkmain, so it must be re-run once #1633 is merged to make the response shape authoritative. That's the main reason this is draft.Verified
tsc --noEmit— cleancheck(fullpackages/tree, via pre-commit) — no fixes🤖 Generated with Claude Code