feat(generated): Add user management operations and models (+1 more)#412
feat(generated): Add user management operations and models (+1 more)#412workos-sdk-automation[bot] wants to merge 4 commits into
Conversation
Greptile SummaryThis PR adds Radar-related user management models and service methods. The main changes are:
Confidence Score: 3/5The user management service API needs attention before merge because new Radar-capable models are not fully reachable through the public wrappers. The changed model surface is broad and mostly generated, but the service layer appears to omit newly added authentication fields and challenge completion entry points. lib/Service/UserManagement.php
What T-Rex did
|
| /** | ||
| * Send a Radar SMS challenge | ||
| * | ||
| * Sends a one-time verification code over SMS to a user as part of a Radar challenge. Use the returned `verification_id` to authenticate the user with the `urn:workos:oauth:grant-type:radar-sms-challenge:code` grant type. |
There was a problem hiding this comment.
Challenge flow incomplete
This doc directs callers to finish the SMS challenge with the urn:workos:oauth:grant-type:radar-sms-challenge:code grant type, and the PR adds RadarSmsChallengeCodeSessionAuthenticateRequest, but UserManagement exposes no authenticate method for that grant. After calling createRadarChallenge(), SDK users cannot complete the documented SMS challenge flow through the service API; the email challenge request model is similarly unreachable.
Prompt To Fix With AI
This is a comment left during a code review.
Path: lib/Service/UserManagement.php
Line: 455
Comment:
**Challenge flow incomplete**
This doc directs callers to finish the SMS challenge with the `urn:workos:oauth:grant-type:radar-sms-challenge:code` grant type, and the PR adds `RadarSmsChallengeCodeSessionAuthenticateRequest`, but `UserManagement` exposes no authenticate method for that grant. After calling `createRadarChallenge()`, SDK users cannot complete the documented SMS challenge flow through the service API; the email challenge request model is similarly unreachable.
How can I resolve this? If you propose a fix, please make it concise.
Summary
feat(user_management): Add user management operations and models
SendRadarSmsChallenge.SendRadarSmsChallengeResponse.UrnWorkosOAuthGrantTypeRadarEmailChallengeCodeSessionAuthenticateRequest.UrnWorkosOAuthGrantTypeRadarSmsChallengeCodeSessionAuthenticateRequest.MagicAuthSendMagicAuthCodeAndReturnResponse.UserCreateResponse.ip_addresstoCreateMagicCodeAndReturn.user_agenttoCreateMagicCodeAndReturn.radar_auth_attempt_idtoCreateMagicCodeAndReturn.signals_idtoCreateMagicCodeAndReturn.ip_addresstoCreateUser.user_agenttoCreateUser.signals_idtoCreateUser.signals_idtoAuthorizationCodeSessionAuthenticateRequest.signals_idtoPasswordSessionAuthenticateRequest.radar_auth_attempt_idtoPasswordSessionAuthenticateRequest.radar_auth_attempt_idtoUrnWorkosOAuthGrantTypeMagicAuthCodeSessionAuthenticateRequest.POST /user_management/radar_challenges.fix(user_management): Update user management API surface
UserManagementAuthentication.authenticate.UserManagementUsers.createfromUsertoUserCreateResponse.UserManagementMagicAuth.sendMagicAuthCodeAndReturnfromMagicAuthtoMagicAuthSendMagicAuthCodeAndReturnResponse.Triggered by workos/openapi-spec@e350eb0
BEGIN_COMMIT_OVERRIDE
feat(user_management): Add user management operations and models (#412)
fix(user_management): Update user management API surface (#412)
END_COMMIT_OVERRIDE