feat(generated)!: Changes to user_management - #717
feat(generated)!: Changes to user_management#717workos-sdk-automation[bot] wants to merge 3 commits into
Conversation
Greptile SummaryThe PR regenerates the User Management SDK surface, adding synchronous and asynchronous waitlist operations and models while updating several generated aliases and enums. It also removes or changes generated symbols based on the latest specification.
Confidence Score: 4/5The PR is not safe to merge until the missing AgentInstanceSessionStatus module or the incorrect alias is fixed, because ordinary SDK imports currently fail. The changed UserSessionsStatus import references a nonexistent generated module and is reached through the common-model re-export chain, causing package initialization to raise ModuleNotFoundError. Files Needing Attention: src/workos/common/models/user_sessions_status.py Important Files Changed
Prompt To Fix All With AI### Issue 1
src/workos/common/models/user_sessions_status.py:5
**Session status import is missing**
When applications import `workos` or its common models, this changed line imports a module that is absent from the repository, causing SDK initialization to fail with `ModuleNotFoundError`.
```suggestion
from .session_created_data_status import SessionCreatedDataStatus
```
---
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 .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 import is missing
When applications import workos or its common models, this changed line imports a module that is absent from the repository, causing SDK initialization to fail with ModuleNotFoundError.
| from .agent_instance_session_status import AgentInstanceSessionStatus | |
| from .session_created_data_status import SessionCreatedDataStatus |
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 import is missing**
When applications import `workos` or its common models, this changed line imports a module that is absent from the repository, causing SDK initialization to fail with `ModuleNotFoundError`.
```suggestion
from .session_created_data_status import SessionCreatedDataStatus
```
**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: Symbol "CreatePasswordResetToken" was removed
Triggered by workos/openapi-spec@a70a517
BEGIN_COMMIT_OVERRIDE
feat(user_management)!: SDK surface change: Symbol "CreatePasswordResetToken" was removed (#717)
END_COMMIT_OVERRIDE