Skip to content

feat(generated): Changes to agents, connect, organizations, and 1 more service - #786

Merged
workos-sdk-automation[bot] merged 5 commits into
mainfrom
oagen/batch-ca0385a9
Nov 30, 2026
Merged

workos-sdk-automation[bot] merged 5 commits into
mainfrom
oagen/batch-ca0385a9

Conversation

@workos-sdk-automation

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

Copy link
Copy Markdown
Contributor

Summary

feat(agents): Add endpoint GET /agents/registrations

  • Added endpoint GET /agents/registrations.

feat(connect): Add Connect API surface

  • Added unverified_email_domain to ApplicationTokenExchangeFailedData.
  • Added signature_verified to ApplicationTokenExchangeFailedData.

feat(organizations): Add organization API surface

  • Added invalid_organization_membership to ErrorBodyCode.
  • Added radar_email_challenge to ErrorBodyCode.

feat(user_management): Add user management API surface

  • Added organization_id to UserManagementLoginRequest.
  • Added endpoint GET /user_management/users/identities/{provider}/{idp_id}.

fix(connect): Change errors for endpoint POST /authkit/oauth2/complete

  • Changed errors for endpoint POST /authkit/oauth2/complete.

fix(user_management): Change errors for endpoint POST /user_management/authenticate

  • Changed errors for endpoint POST /user_management/authenticate.

Triggered by workos/openapi-spec@2107056

BEGIN_COMMIT_OVERRIDE
feat(agents): Add endpoint GET /agents/registrations (#786)
feat(connect): Add Connect API surface (#786)
feat(organizations): Add organization API surface (#786)
feat(user_management): Add user management API surface (#786)
fix(connect): Change errors for endpoint POST /authkit/oauth2/complete (#786)
fix(user_management): Change errors for endpoint POST /user_management/authenticate (#786)
END_COMMIT_OVERRIDE

@workos-sdk-automation
workos-sdk-automation Bot requested a review from a team as a code owner November 30, 2026 18:47
@workos-sdk-automation workos-sdk-automation Bot added the autogenerated Autogenerated code or content label Nov 30, 2026
@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5 · Restore the removed public exports before merging so existing applications keep working.RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The PR changes several public SDK entry points and generated exports.

Restore the removed public exports before merging so existing applications keep working.

Findings

  1. P1 Existing imports now fail ▶
  2. P2 Organization choice lacks tests ▶
Fix with agent prompt
### Issue 1
src/workos/radar/models/__init__.py:26
Removing these exports breaks imports such as `from workos.radar.models import RadarListTypeLiteral`. The types still exist in their own modules, but callers using the previously exported names now get `ImportError`, which can stop their applications from starting. The same removal affects the common, organization membership, and Pipes Provider packages. Keep the existing exports alongside the new API additions.

### Issue 2
src/workos/connect/_resource.py:84
Neither `complete_oauth2` test passes the new `organization_id` argument, and no test loads `UserManagementLoginRequest` or its updated fixture. The code sends the field correctly today, but dropping it could silently restore the organization picker without failing a test. Add sync and async request tests for the sent value and its omission when unset, plus a model round-trip test.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

---

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

Summary

Adds agent registration listing and user lookup by external identity, with sync and async methods.

  • Callers can list agent registrations with filters and page cursors.
  • Callers can find a user by an identity provider and its user ID.
  • Connect login completion can bind authorization to an organization.
  • Callers can represent organization-membership and email-challenge errors.
  • Generated *Literal type aliases are no longer re-exported.

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

@@ -24,7 +24,6 @@
from .radar_list_action import RadarListAction as RadarListAction
from .radar_list_action import RadarListActionLiteral as RadarListActionLiteral
from .radar_list_type import RadarListType as RadarListType

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 imports now fail

Removing these exports breaks imports such as from workos.radar.models import RadarListTypeLiteral. The types still exist in their own modules, but callers using the previously exported names now get ImportError, which can stop their applications from starting. The same removal affects the common, organization membership, and Pipes Provider packages. Keep the existing exports alongside the new API additions.

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

Comment:
**Existing imports now fail**

Removing these exports breaks imports such as `from workos.radar.models import RadarListTypeLiteral`. The types still exist in their own modules, but callers using the previously exported names now get `ImportError`, which can stop their applications from starting. The same removal affects the common, organization membership, and Pipes Provider packages. Keep the existing exports alongside the new API additions.

---

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

]
if user_consent_options is not None
else None,
"organization_id": organization_id,

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 Organization choice lacks tests

Neither complete_oauth2 test passes the new organization_id argument, and no test loads UserManagementLoginRequest or its updated fixture. The code sends the field correctly today, but dropping it could silently restore the organization picker without failing a test. Add sync and async request tests for the sent value and its omission when unset, plus a model round-trip test.

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/workos/connect/_resource.py
Line: 84

Comment:
**Organization choice lacks tests**

Neither `complete_oauth2` test passes the new `organization_id` argument, and no test loads `UserManagementLoginRequest` or its updated fixture. The code sends the field correctly today, but dropping it could silently restore the organization picker without failing a test. Add sync and async request tests for the sent value and its omission when unset, plus a model round-trip test.

---

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

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@workos-sdk-automation
workos-sdk-automation Bot merged commit ba797b2 into main Nov 30, 2026
13 checks passed
@workos-sdk-automation
workos-sdk-automation Bot deleted the oagen/batch-ca0385a9 branch November 30, 2026 18:57
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