Skip to content

feat(generated)!: Changes to user_management - #717

Closed
workos-sdk-automation[bot] wants to merge 3 commits into
mainfrom
oagen/batch-eeb9cab8
Closed

feat(generated)!: Changes to user_management#717
workos-sdk-automation[bot] wants to merge 3 commits into
mainfrom
oagen/batch-eeb9cab8

Conversation

@workos-sdk-automation

@workos-sdk-automation workos-sdk-automation Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

feat(user_management)!: SDK surface change: Symbol "CreatePasswordResetToken" was removed

  • 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

@workos-sdk-automation
workos-sdk-automation Bot requested a review from a team as a code owner August 31, 2026 20:17
@workos-sdk-automation workos-sdk-automation Bot added the autogenerated Autogenerated code or content label Aug 31, 2026
@workos-sdk-automation
workos-sdk-automation Bot requested a review from a team as a code owner August 31, 2026 20:17
@workos-sdk-automation
workos-sdk-automation Bot requested a review from mattgd August 31, 2026 20:17
@greptile-apps

greptile-apps Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The 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.

  • Adds waitlist list, lookup, entry creation, approval, denial, and deletion APIs.
  • Adds waitlist models, state aliases, fixtures, and sync/async tests.
  • Updates generated authentication-provider and session-status types.
  • Contains a broken generated session-status import that prevents the SDK package from loading.

Confidence Score: 4/5

The 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

Filename Overview
src/workos/common/models/user_sessions_status.py Changes the public user-session status alias to a missing module, breaking normal SDK imports.
src/workos/user_management/_resource.py Adds matching synchronous and asynchronous waitlist resource operations with focused request tests.
src/workos/user_management/models/waitlist_entry.py Adds typed serialization and deserialization for waitlist entries.
tests/test_user_management.py Adds request-shape coverage for the new waitlist methods in both client modes.
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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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.

Suggested change
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autogenerated Autogenerated code or content

Development

Successfully merging this pull request may close these issues.

0 participants