Skip to content

feat: add AuthProviderBlock to @slack/types - #2778

Merged
WilliamBergamin merged 3 commits into
mainfrom
feat-auth-provider-block
Oct 16, 2026
Merged

WilliamBergamin merged 3 commits into
mainfrom
feat-auth-provider-block

Conversation

@WilliamBergamin

@WilliamBergamin WilliamBergamin commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This pull request adds the auth_provider block to @slack/types, matching slackapi/java-slack-sdk#1659.

  • New AuthProviderBlock interface, added to KnownBlock.

Testing

Publish a Home tab with the block from an app that has features.user_connections enabled:

await client.views.publish({
  user_id: userId,
  view: {
    type: 'home',
    blocks: [
      {
        type: 'auth_provider',
        value: 'acme',
        name: { type: 'plain_text', text: 'Acme' },
        is_connected: false,
        auth_url: 'https://acme.example.com/oauth',
      },
    ],
  },
});
  1. Confirm the provider renders with a Connect button.
  2. Publish again with is_connected: true and confirm the connected state renders.

Requirements

🤖 Generated with Claude Code

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

changeset-bot Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f50c642

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

This PR includes changesets to release 1 package
Name Type
@slack/types 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 Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.39%. Comparing base (604135c) to head (f50c642).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2778      +/-   ##
==========================================
- Coverage   89.45%   89.39%   -0.06%     
==========================================
  Files          65       65              
  Lines       10545    10545              
  Branches      478      478              
==========================================
- Hits         9433     9427       -6     
- Misses       1081     1087       +6     
  Partials       31       31              
Flag Coverage Δ
cli-hooks 89.35% <ø> (ø)
cli-test 89.35% <ø> (ø)
logger 89.35% <ø> (ø)
oauth 89.35% <ø> (ø)
socket-mode 89.35% <ø> (ø)
web-api 89.35% <ø> (ø)
webhook 89.35% <ø> (ø)

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.

… is_connected

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@WilliamBergamin
WilliamBergamin marked this pull request as ready for review October 15, 2026 19:52
@WilliamBergamin
WilliamBergamin requested a review from a team as a code owner October 15, 2026 19:52
@WilliamBergamin WilliamBergamin self-assigned this Oct 15, 2026
@WilliamBergamin WilliamBergamin added semver:minor area:typescript issues that specifically impact using the package from typescript projects pkg:types applies to `@slack/types` labels Oct 15, 2026
@WilliamBergamin WilliamBergamin added this to the types@next milestone Oct 15, 2026

@zimeg zimeg 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.

@WilliamBergamin I'm liking what I see 👁️‍🗨️

@WilliamBergamin
WilliamBergamin merged commit 1fabb45 into main Oct 16, 2026
17 of 18 checks passed
@WilliamBergamin
WilliamBergamin deleted the feat-auth-provider-block branch October 16, 2026 14:37
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 pkg:types applies to `@slack/types` semver:minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants