Skip to content

feat(sso): Add state filter to listConnections - #1763

Merged
esussmann merged 1 commit into
mainfrom
erin/feat-3187-list-connections-state
Nov 17, 2026
Merged

esussmann merged 1 commit into
mainfrom
erin/feat-3187-list-connections-state

Conversation

@esussmann

Copy link
Copy Markdown
Contributor

Description

GET /connections now accepts an optional state filter (workos/workos#80097). This exposes it on listConnections, so callers can fetch only the Connections in one state:

const { data } = await workos.sso.listConnections({ state: 'active' });

state accepts active, inactive or validating, the same values the API accepts. The API rejects deleting with a 422, so the type leaves it out and TypeScript catches it before the request is sent.

Related: FEAT-3187

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[ ] Yes

The API reference for List Connections was updated in workos/workos#80097.

🤖 Generated with Claude Code

GET /connections now accepts an optional state of active, inactive or
validating (workos/workos#80097). Expose it on listConnections so callers
can fetch only the Connections in one state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Nov 13, 2026

Copy link
Copy Markdown

FEAT-3187

@esussmann
esussmann marked this pull request as ready for review November 16, 2026 14:25
@esussmann
esussmann requested review from a team as code owners November 16, 2026 14:25
@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Adds an optional state filter to listConnections.

  • Callers can list connections in one supported state.

No actionable issues found.

Reviews (1) · Last reviewed commit: "feat(sso): Add state filter to listConne..." · Reviewed by Greptile

@esussmann
esussmann merged commit f85e8be into main Nov 17, 2026
9 checks passed
@esussmann
esussmann deleted the erin/feat-3187-list-connections-state branch November 17, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants