Skip to content

feat(web-api): add admin.slackbot.skills.setAutoEnabled method - #2839

Merged
zimeg merged 46 commits into
mainfrom
zimeg-feat-slackbot-skills-admin-set-auto-enabled
Nov 13, 2026
Merged

zimeg merged 46 commits into
mainfrom
zimeg-feat-slackbot-skills-admin-set-auto-enabled

Conversation

@zimeg

@zimeg zimeg commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Summary

This pull request adds the admin.slackbot.skills.setAutoEnabled method to @slack/web-api.

  • client.admin.slackbot.skills.setAutoEnabled() takes a required skill_id and permission_type (everyone, named_entities, or no_one), and optional usergroup_ids.
  • AdminSlackbotSkillsSetAutoEnabledResponse includes invalid_usergroup_ids, which the live API returns with usergroup_not_found.
  • AdminSlackbotSkillsSetAutoEnabledResponse is generated with scripts/code_generator.rb from the json-logs/samples/api/admin.slackbot.skills.setAutoEnabled.json sample recorded live in feat: add admin.slackbot.skills.setAutoEnabled method java-slack-sdk#1693.
  • Adds type tests and a minor changeset.

This is part 9 of 11 in a stack that adds the Slackbot skills methods one at a time, following a skill from creation to deletion. Each pull request builds on the one before it and merges on its own, bottom to top. It replaces #2830.

  1. feat(web-api): add slackbot.skills.create method #2831 slackbot.skills.create
  2. feat(web-api): add slackbot.skills.info method #2832 slackbot.skills.info
  3. feat(web-api): add slackbot.skills.update method #2833 slackbot.skills.update
  4. feat(web-api): add slackbot.skills.list method #2834 slackbot.skills.list
  5. feat(web-api): add slackbot.skills.library.add method #2835 slackbot.skills.library.add
  6. feat(web-api): add slackbot.skills.library.remove method #2836 slackbot.skills.library.remove
  7. feat(web-api): add admin.slackbot.skills.list method #2837 admin.slackbot.skills.list
  8. feat(web-api): add admin.slackbot.skills.publish method #2838 admin.slackbot.skills.publish
  9. feat(web-api): add admin.slackbot.skills.setAutoEnabled method #2839 admin.slackbot.skills.setAutoEnabled 👈 this pull request
  10. feat(web-api): add admin.slackbot.skills.unpublish method #2840 admin.slackbot.skills.unpublish
  11. feat(web-api): add slackbot.skills.delete method #2841 slackbot.skills.delete

Testing

  1. Call client.admin.slackbot.skills.setAutoEnabled({ skill_id, permission_type: 'everyone' }) on a published skill, then again with no_one, and confirm permission_type in each response.

Each layer of this stack was checked against an Enterprise developer sandbox by running every method added so far, in order, with that layer's WebClient.

Requirements

🤖 Generated with Claude Code

zimeg and others added 9 commits November 11, 2026 22:23
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg zimeg added this to the web-api@next milestone Nov 12, 2026
@zimeg zimeg added semver:minor enhancement M-T: A feature request for new functionality area:typescript issues that specifically impact using the package from typescript projects pkg:web-api applies to `@slack/web-api` labels Nov 12, 2026
@zimeg zimeg self-assigned this Nov 12, 2026
@changeset-bot

changeset-bot Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 52ecec4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@slack/web-api Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.29%. Comparing base (3d2a7af) to head (52ecec4).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2839   +/-   ##
=======================================
  Coverage   94.28%   94.29%           
=======================================
  Files          67       67           
  Lines       10745    10755   +10     
  Branches      680      680           
=======================================
+ Hits        10131    10141   +10     
+ Misses        585      583    -2     
- Partials       29       31    +2     
Flag Coverage Δ
cli-hooks 94.15% <100.00%> (+<0.01%) ⬆️
cli-test 94.15% <100.00%> (+<0.01%) ⬆️
logger 94.15% <100.00%> (+<0.01%) ⬆️
oauth 94.15% <100.00%> (+<0.01%) ⬆️
socket-mode 94.15% <100.00%> (+<0.01%) ⬆️
web-api 94.15% <100.00%> (+<0.01%) ⬆️
webhook 94.15% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…rded java-slack-sdk sample

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
zimeg and others added 3 commits November 11, 2026 23:00
…at-slackbot-skills-admin-set-auto-enabled

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…from the recorded java-slack-sdk sample

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg marked this pull request as ready for review November 12, 2026 23:42
@zimeg
zimeg requested a review from a team as a code owner November 12, 2026 23:42
zimeg and others added 18 commits November 12, 2026 15:45
…kbot-skills-info

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…ot-skills-update

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…kbot-skills-list

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…ot-skills-library-add

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…-slackbot-skills-library-remove

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…eat-slackbot-skills-admin-list

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…slackbot-skills-admin-publish

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…at-slackbot-skills-admin-set-auto-enabled

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…s.create arguments

Leaves the exactly-one-of check to the API, which returns invalid_arguments, and the
JSDoc. Also line-breaks the mcp_servers object type.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…kbot-skills-info

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…ot-skills-update

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…kbot-skills-list

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…ot-skills-library-add

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…-slackbot-skills-library-remove

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…eat-slackbot-skills-admin-list

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…slackbot-skills-admin-publish

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…at-slackbot-skills-admin-set-auto-enabled

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>

@mwbrooks mwbrooks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Thanks @zimeg, the tests for all three permission_type values make the rollout options clear.

@zimeg zimeg changed the title feat: add admin.slackbot.skills.setAutoEnabled method feat(web-api): add admin.slackbot.skills.setAutoEnabled method Nov 13, 2026
Base automatically changed from zimeg-feat-slackbot-skills-admin-publish to main November 13, 2026 06:59
…abled

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg

zimeg commented Nov 13, 2026

Copy link
Copy Markdown
Member Author

🚀 Thanks so much @mwbrooks! Rollouts are where admins need the most confidence, so your read on the permission_type tests means a lot.

@zimeg
zimeg merged commit d70965c into main Nov 13, 2026
22 checks passed
@zimeg
zimeg deleted the zimeg-feat-slackbot-skills-admin-set-auto-enabled branch November 13, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:typescript issues that specifically impact using the package from typescript projects enhancement M-T: A feature request for new functionality pkg:web-api applies to `@slack/web-api` semver:minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants