Skip to content

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

Closed
workos-sdk-automation[bot] wants to merge 5 commits into
mainfrom
oagen/batch-0c83d704
Closed

feat(generated)!: Changes to user_management#718
workos-sdk-automation[bot] wants to merge 5 commits into
mainfrom
oagen/batch-0c83d704

Conversation

@workos-sdk-automation

@workos-sdk-automation workos-sdk-automation Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

feat(user_management)!: SDK surface change: Parameter type changed for "body" on "UserManagement.create_authenticate"

  • SDK surface change: Parameter type changed for "body" on "UserManagement.create_authenticate".

feat(user_management): Add model EmailCompletionSessionAuthenticateRequest

  • Added model EmailCompletionSessionAuthenticateRequest.

fix(user_management): Update user management API surface

  • Changed request body for UserManagementAuthentication.authenticate.
  • Changed errors for endpoint 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

@workos-sdk-automation
workos-sdk-automation Bot requested a review from a team as a code owner September 1, 2026 16:10
@workos-sdk-automation workos-sdk-automation Bot added the autogenerated Autogenerated code or content label Sep 1, 2026
@workos-sdk-automation
workos-sdk-automation Bot requested a review from a team as a code owner September 1, 2026 16:10
@workos-sdk-automation workos-sdk-automation Bot added the autogenerated Autogenerated code or content label Sep 1, 2026
@greptile-apps

greptile-apps Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

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

  • Adds synchronous and asynchronous waitlist CRUD and state-transition methods.
  • Adds email-completion authentication request support and waitlist response models.
  • Updates generated shared enums, exports, fixtures, and round-trip tests.
  • Introduces unresolved generated imports for password-reset and user-session types.

Confidence Score: 3/5

The 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

Filename Overview
src/workos/user_management/models/create_password_reset_token.py Replaces a working request model with an alias to a nonexistent organizations model, breaking user-management model imports.
src/workos/common/models/user_sessions_status.py Changes the shared session-status alias to a nonexistent agent model, breaking common model imports.
src/workos/user_management/_resource.py Adds matching synchronous and asynchronous email-completion and waitlist API surfaces using established request and pagination conventions.
src/workos/user_management/models/email_completion_session_authenticate_request.py Adds the typed email-completion authentication request with complete serialization support.
src/workos/user_management/models/waitlist_entry.py Adds typed waitlist-entry serialization and forward-compatible enum handling.
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

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

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

@gjtorikian gjtorikian closed this Sep 1, 2026
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.

1 participant