feat(generated)!: Changes to user_management - #718
feat(generated)!: Changes to user_management#718workos-sdk-automation[bot] wants to merge 5 commits into
Conversation
…r "body" on "UserManagement.create_authenticate"
Greptile SummaryThe PR regenerates the User Management API surface with email-completion authentication and waitlist models and operations. It also introduces two generated aliases whose target modules are missing, breaking package imports.
Confidence Score: 3/5The PR is not safe to merge until the two generated imports are restored or their referenced model modules are included. Eager package exports execute both missing-module imports, preventing consumers from importing the user-management and common model surfaces. Files Needing Attention: src/workos/user_management/models/create_password_reset_token.py; src/workos/common/models/user_sessions_status.py Important Files Changed
Prompt To Fix All With AI### Issue 1
src/workos/user_management/models/create_password_reset_token.py:5
**Password-reset model import is broken**
When `workos.user_management.models` is imported, its eager export of `CreatePasswordResetToken` loads the nonexistent `workos.organizations.models.create_it_contact` module, causing `ModuleNotFoundError` and preventing the user-management models package from loading.
### Issue 2
src/workos/common/models/user_sessions_status.py:5
**Session-status model import is broken**
When `workos.common.models` is imported, its eager user-session exports load the nonexistent `agent_instance_session_status` module, causing `ModuleNotFoundError` and preventing the common models package from loading.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (1): Last reviewed commit: "chore(generated): add release notes frag..." | Re-trigger Greptile |
|
|
||
| from dataclasses import dataclass | ||
| from typing import Any | ||
| from workos.organizations.models.create_it_contact import CreateItContact |
There was a problem hiding this comment.
Password-reset model import is broken
When workos.user_management.models is imported, its eager export of CreatePasswordResetToken loads the nonexistent workos.organizations.models.create_it_contact module, causing ModuleNotFoundError and preventing the user-management models package from loading.
Knowledge Base Used: User management
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/workos/user_management/models/create_password_reset_token.py
Line: 5
Comment:
**Password-reset model import is broken**
When `workos.user_management.models` is imported, its eager export of `CreatePasswordResetToken` loads the nonexistent `workos.organizations.models.create_it_contact` module, causing `ModuleNotFoundError` and preventing the user-management models package from loading.
**Knowledge Base Used:** [User management](https://app.greptile.com/workos/-/custom-context/knowledge-base/workos/workos-python/-/docs/user-management.md)
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| from .session_created_data_status import SessionCreatedDataStatus | ||
|
|
||
| UserSessionsStatus: TypeAlias = SessionCreatedDataStatus | ||
| from .agent_instance_session_status import AgentInstanceSessionStatus |
There was a problem hiding this comment.
Session-status model import is broken
When workos.common.models is imported, its eager user-session exports load the nonexistent agent_instance_session_status module, causing ModuleNotFoundError and preventing the common models package from loading.
Knowledge Base Used: User management
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/workos/common/models/user_sessions_status.py
Line: 5
Comment:
**Session-status model import is broken**
When `workos.common.models` is imported, its eager user-session exports load the nonexistent `agent_instance_session_status` module, causing `ModuleNotFoundError` and preventing the common models package from loading.
**Knowledge Base Used:** [User management](https://app.greptile.com/workos/-/custom-context/knowledge-base/workos/workos-python/-/docs/user-management.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: Parameter type changed for "body" on "UserManagement.create_authenticate"
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: Parameter type changed for "body" on "UserManagement.create_authenticate" (#718)
feat(user_management): Add model
EmailCompletionSessionAuthenticateRequest(#718)fix(user_management): Update user management API surface (#718)
END_COMMIT_OVERRIDE