Skip to content

feat(generated): Changes to sso - #778

Merged
workos-sdk-automation[bot] merged 3 commits into
mainfrom
oagen/batch-0ee71ebb
Nov 13, 2026
Merged

workos-sdk-automation[bot] merged 3 commits into
mainfrom
oagen/batch-0ee71ebb

Conversation

@workos-sdk-automation

@workos-sdk-automation workos-sdk-automation Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

feat(sso): Update SSO API surface

  • Added enum ConnectionsState.
  • Added parameter Connections.list.state.

Triggered by workos/openapi-spec@ae24da5

BEGIN_COMMIT_OVERRIDE
feat(sso): Update SSO API surface (#778)
END_COMMIT_OVERRIDE

@workos-sdk-automation
workos-sdk-automation Bot requested review from a team as code owners November 13, 2026 20:24
@workos-sdk-automation workos-sdk-automation Bot added the autogenerated Autogenerated code or content label Nov 13, 2026
@greptile-apps

greptile-apps Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The PR reaches SSO list callers and package-level imports across several SDK areas.

Restore the removed public type exports before merging.

Findings

  1. P1 Existing type imports fail ▶
  2. P2 Existing model tests disappear ▶
Fix with agent prompt
### Issue 1
src/workos/pipes/models/__init__.py:94
Removing the `*Literal` exports breaks existing imports. For example, `from workos.pipes.models import PipesOwnershipLiteral` now raises `ImportError`, even though the alias still exists in its source module. Applications using that import can fail to start after upgrading. This also affects `workos.pipes` and `workos.types.pipes`, which copy the model exports.

Restore these exports and the matching removals in the other model namespaces.

### Issue 2
tests/test_common_models_round_trip.py:606
This removes four round-trip and minimal-payload tests for public models that remain in the SDK. No remaining test references `OrganizationSelectionRequiredErrorBodyWithOrganizations`, so future changes to its nested organization list can break without these checks catching it. Keep these tests; the new SSO filter tests do not replace their coverage.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

Adds ConnectionsState and an optional state filter to synchronous and asynchronous SSO connection lists.

  • SSO connection lists can now filter results by state.
  • Several generated model names are no longer re-exported from package modules.

Reviews (1) · Last reviewed commit: "chore(generated): add release notes frag..." · Reviewed by Greptile

@@ -92,7 +92,6 @@
OrganizationConnectedAccount as OrganizationConnectedAccount,
)
from .pipes_ownership import PipesOwnership as PipesOwnership

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Existing type imports fail

Removing the *Literal exports breaks existing imports. For example, from workos.pipes.models import PipesOwnershipLiteral now raises ImportError, even though the alias still exists in its source module. Applications using that import can fail to start after upgrading. This also affects workos.pipes and workos.types.pipes, which copy the model exports.

Restore these exports and the matching removals in the other model namespaces.

Knowledge Base Used: Pagination and shared types

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/workos/pipes/models/__init__.py
Line: 94

Comment:
**Existing type imports fail**

Removing the `*Literal` exports breaks existing imports. For example, `from workos.pipes.models import PipesOwnershipLiteral` now raises `ImportError`, even though the alias still exists in its source module. Applications using that import can fail to start after upgrading. This also affects `workos.pipes` and `workos.types.pipes`, which copy the model exports.

Restore these exports and the matching removals in the other model namespaces.

**Knowledge Base Used:** [Pagination and shared types](https://app.greptile.com/-/switch-tenant?tenant=workos&next=%2Fcustom-context%2Fknowledge-base%2Fworkos%2Fworkos-python%2F-%2Fdocs%2Fpagination-and-shared-types.md)

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

@@ -607,67 +605,6 @@ def test_error_body_minimal_payload(self):
serialized = instance.to_dict()
assert serialized["message"] == data["message"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Existing model tests disappear

This removes four round-trip and minimal-payload tests for public models that remain in the SDK. No remaining test references OrganizationSelectionRequiredErrorBodyWithOrganizations, so future changes to its nested organization list can break without these checks catching it. Keep these tests; the new SSO filter tests do not replace their coverage.

Prompt To Fix With AI
This is a comment left during a code review.
Path: tests/test_common_models_round_trip.py
Line: 606

Comment:
**Existing model tests disappear**

This removes four round-trip and minimal-payload tests for public models that remain in the SDK. No remaining test references `OrganizationSelectionRequiredErrorBodyWithOrganizations`, so future changes to its nested organization list can break without these checks catching it. Keep these tests; the new SSO filter tests do not replace their coverage.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

@workos-sdk-automation
workos-sdk-automation Bot merged commit ef3fa56 into main Nov 13, 2026
13 checks passed
@workos-sdk-automation
workos-sdk-automation Bot deleted the oagen/batch-0ee71ebb branch November 13, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autogenerated Autogenerated code or content

Development

Successfully merging this pull request may close these issues.

0 participants