feat(generated)!: Changes to user_management - #545
workos-sdk-automation[bot] wants to merge 5 commits into
Conversation
…etToken" was removed
Greptile SummaryThe PR regenerates User Management to add email-completion authentication support and a waitlist API surface while removing several generated symbols and enum values.
Confidence Score: 1/5The PR is not safe to merge until the undefined generated aliases and incorrect User Management RBI declarations are corrected. Two public constants now fail during autoload because their alias targets do not exist, while typed consumers cannot correctly call the new email-completion flow or use the paginated waitlist return values. Files Needing Attention: lib/workos/user_management/create_password_reset_token.rb, lib/workos/types/user_sessions_status.rb, rbi/workos/user_management.rbi Important Files Changed
|
| @email = hash[:email] | ||
| end | ||
| end | ||
| CreatePasswordResetToken = CreateItContact |
There was a problem hiding this comment.
Password reset alias is undefined
When WorkOS::CreatePasswordResetToken is loaded or instantiated, this alias resolves CreateItContact, which has no runtime definition, causing a NameError in the retained round-trip test and downstream callers.
Knowledge Base Used:
Prompt To Fix With AI
This is a comment left during a code review.
Path: lib/workos/user_management/create_password_reset_token.rb
Line: 6
Comment:
**Password reset alias is undefined**
When `WorkOS::CreatePasswordResetToken` is loaded or instantiated, this alias resolves `CreateItContact`, which has no runtime definition, causing a `NameError` in the retained round-trip test and downstream callers.
**Knowledge Base Used:**
- [Shared models and utilities](https://app.greptile.com/workos/-/custom-context/knowledge-base/workos/workos-ruby/-/docs/shared-models-and-utilities.md)
- [User management and sessions](https://app.greptile.com/workos/-/custom-context/knowledge-base/workos/workos-ruby/-/docs/user-management-and-sessions.md)
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| module WorkOS | ||
| module Types | ||
| UserSessionsStatus = SessionCreatedDataStatus | ||
| UserSessionsStatus = AgentInstanceSessionStatus |
There was a problem hiding this comment.
Session status alias is undefined
When an application references WorkOS::Types::UserSessionsStatus, this alias resolves AgentInstanceSessionStatus, which has no runtime definition, causing a NameError instead of exposing the session-status constants.
Knowledge Base Used:
Prompt To Fix With AI
This is a comment left during a code review.
Path: lib/workos/types/user_sessions_status.rb
Line: 7
Comment:
**Session status alias is undefined**
When an application references `WorkOS::Types::UserSessionsStatus`, this alias resolves `AgentInstanceSessionStatus`, which has no runtime definition, causing a `NameError` instead of exposing the session-status constants.
**Knowledge Base Used:**
- [Shared models and utilities](https://app.greptile.com/workos/-/custom-context/knowledge-base/workos/workos-ruby/-/docs/shared-models-and-utilities.md)
- [User management and sessions](https://app.greptile.com/workos/-/custom-context/knowledge-base/workos/workos-ruby/-/docs/user-management-and-sessions.md)
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| sig do | ||
| params( | ||
| request_options: T::Hash[Symbol, T.untyped] | ||
| ).returns(T::Array[WorkOS::Waitlist]) | ||
| end | ||
| def list_waitlists(request_options:); end | ||
|
|
||
| sig do | ||
| params( | ||
| id: String, | ||
| request_options: T::Hash[Symbol, T.untyped] | ||
| ).returns(WorkOS::Waitlist) | ||
| end | ||
| def get_waitlist(id:, request_options:); end | ||
|
|
||
| sig do | ||
| params( | ||
| id: String, | ||
| before: T.nilable(String), | ||
| after: T.nilable(String), | ||
| limit: T.nilable(Integer), | ||
| order: T.nilable(String), | ||
| state: T.nilable(String), | ||
| email: T.nilable(String), | ||
| request_options: T::Hash[Symbol, T.untyped] | ||
| ).returns(T::Array[WorkOS::WaitlistEntry]) | ||
| end | ||
| def list_waitlist_entries(id:, before:, after:, limit:, order:, state:, email:, request_options:); end |
There was a problem hiding this comment.
Waitlist pagination types are incorrect
The runtime returns WorkOS::Types::ListStruct from both waitlist list methods, but these signatures declare arrays. Sorbet therefore rejects valid pagination methods such as next_page and permits Array-only operations that the returned object does not implement.
Knowledge Base Used: Shared models and utilities
Prompt To Fix With AI
This is a comment left during a code review.
Path: rbi/workos/user_management.rbi
Line: 490-517
Comment:
**Waitlist pagination types are incorrect**
The runtime returns `WorkOS::Types::ListStruct` from both waitlist list methods, but these signatures declare arrays. Sorbet therefore rejects valid pagination methods such as `next_page` and permits Array-only operations that the returned object does not implement.
**Knowledge Base Used:** [Shared models and utilities](https://app.greptile.com/workos/-/custom-context/knowledge-base/workos/workos-ruby/-/docs/shared-models-and-utilities.md)
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Summary
feat(user_management)!: SDK surface change: Symbol "CreatePasswordResetToken" was removed
feat(user_management): Add model
EmailCompletionSessionAuthenticateRequestEmailCompletionSessionAuthenticateRequest.fix(user_management): Update user management API surface
UserManagementAuthentication.authenticate.POST /user_management/authenticate.Triggered by workos/openapi-spec@6676276
BEGIN_COMMIT_OVERRIDE
feat(user_management)!: SDK surface change: Symbol "CreatePasswordResetToken" was removed (#545)
feat(user_management): Add model
EmailCompletionSessionAuthenticateRequest(#545)fix(user_management): Update user management API surface (#545)
END_COMMIT_OVERRIDE