Repository navigation
feat(generated): Changes to agents, connect, organizations, and 1 more service - #786
Conversation
…zationsIssuerTrusts, Pipes, UserManagement
[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. FindingsFix 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.SummaryAdds agent registration listing and user lookup by external identity, with sync and async methods.
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 | |||
There was a problem hiding this comment.
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, |
There was a problem hiding this 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.
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!
Summary
feat(agents): Add endpoint
GET /agents/registrationsGET /agents/registrations.feat(connect): Add Connect API surface
unverified_email_domaintoApplicationTokenExchangeFailedData.signature_verifiedtoApplicationTokenExchangeFailedData.feat(organizations): Add organization API surface
invalid_organization_membershiptoErrorBodyCode.radar_email_challengetoErrorBodyCode.feat(user_management): Add user management API surface
organization_idtoUserManagementLoginRequest.GET /user_management/users/identities/{provider}/{idp_id}.fix(connect): Change errors for endpoint
POST /authkit/oauth2/completePOST /authkit/oauth2/complete.fix(user_management): Change errors for endpoint
POST /user_management/authenticatePOST /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