Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
* [#717](https://github.com/workos/workos-python/pull/717) feat(generated)!: regenerate from spec (1 change)

**Features**
* **[user_management](https://workos.com/docs/reference/authkit/user)**:
* Added model `CreateWaitlistEntry`
* Added model `Waitlist`
* Added model `WaitlistEntry`
* Added enum `WaitlistEntryState`
* Added enum `UserManagementWaitlistsState`
* Added service `UserManagementWaitlists`

**Fixes**
* **[user_management](https://workos.com/docs/reference/authkit/user)**:
* Removed `DiscordOAuth` from `AuthenticateResponseAuthenticationMethod`
* Removed `GrokOAuth` from `AuthenticateResponseAuthenticationMethod`
* Removed `XOAuth` from `AuthenticateResponseAuthenticationMethod`
* Removed `DiscordOAuth` from `UserIdentitiesGetItemProvider`
* Removed `GrokOAuth` from `UserIdentitiesGetItemProvider`
* Removed `XOAuth` from `UserIdentitiesGetItemProvider`
* Changed errors for endpoint `DELETE /user_management/users/{id}`
2 changes: 1 addition & 1 deletion .last-synced-sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a07d8e7988d035c2d727787f18f64d71b4b89a84
d57167a3c5beebe16cde40de046773b9861a6b47
150 changes: 150 additions & 0 deletions .oagen-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@
"src/workos/common/models/vault_names_listed.py",
"src/workos/common/models/vault_names_listed_data.py",
"src/workos/common/models/vault_names_listed_data_actor_source.py",
"src/workos/common/models/waitlist_entry_state.py",
"src/workos/common/models/waitlist_user.py",
"src/workos/common/models/waitlist_user_approved.py",
"src/workos/common/models/waitlist_user_created.py",
Expand Down Expand Up @@ -701,6 +702,7 @@
"src/workos/user_management/models/create_user.py",
"src/workos/user_management/models/create_user_api_key.py",
"src/workos/user_management/models/create_user_invite_options.py",
"src/workos/user_management/models/create_waitlist_entry.py",
"src/workos/user_management/models/device_authorization_response.py",
"src/workos/user_management/models/device_code_session_authenticate_request.py",
"src/workos/user_management/models/email_change.py",
Expand Down Expand Up @@ -743,8 +745,11 @@
"src/workos/user_management/models/user_invite.py",
"src/workos/user_management/models/user_management_authentication_provider.py",
"src/workos/user_management/models/user_management_authentication_screen_hint.py",
"src/workos/user_management/models/user_management_waitlists_state.py",
"src/workos/user_management/models/verify_email_address.py",
"src/workos/user_management/models/verify_email_response.py",
"src/workos/user_management/models/waitlist.py",
"src/workos/user_management/models/waitlist_entry.py",
"src/workos/vault/__init__.py",
"src/workos/vault/_resource.py",
"src/workos/vault/models/__init__.py",
Expand Down Expand Up @@ -968,6 +973,7 @@
"tests/fixtures/create_user_api_key.json",
"tests/fixtures/create_user_invite_options.json",
"tests/fixtures/create_user_organization_membership.json",
"tests/fixtures/create_waitlist_entry.json",
"tests/fixtures/create_webhook_endpoint.json",
"tests/fixtures/custom_provider_definition.json",
"tests/fixtures/data_integration.json",
Expand Down Expand Up @@ -1132,6 +1138,8 @@
"tests/fixtures/list_user_organization_membership_base_list_data.json",
"tests/fixtures/list_user_role_assignment.json",
"tests/fixtures/list_user_sessions_list_item.json",
"tests/fixtures/list_waitlist.json",
"tests/fixtures/list_waitlist_entry.json",
"tests/fixtures/list_webhook_endpoint.json",
"tests/fixtures/magic_auth.json",
"tests/fixtures/magic_auth_code_session_authenticate_request.json",
Expand Down Expand Up @@ -1326,6 +1334,8 @@
"tests/fixtures/verify_email_address.json",
"tests/fixtures/verify_email_response.json",
"tests/fixtures/version_list_response.json",
"tests/fixtures/waitlist.json",
"tests/fixtures/waitlist_entry.json",
"tests/fixtures/waitlist_user.json",
"tests/fixtures/waitlist_user_approved.json",
"tests/fixtures/waitlist_user_created.json",
Expand Down Expand Up @@ -2229,6 +2239,146 @@
"PUT /data-integrations/{slug}/client-credentials": {
"sdkMethod": "update_data_integration_client_credentials",
"service": "pipes"
},
"GET /agents/blueprints": {
"sdkMethod": "list_blueprints",
"service": "agents"
},
"POST /agents/blueprints": {
"sdkMethod": "create_blueprint",
"service": "agents"
},
"GET /agents/blueprints/{agent_blueprint_id}": {
"sdkMethod": "get_blueprint",
"service": "agents"
},
"PATCH /agents/blueprints/{agent_blueprint_id}": {
"sdkMethod": "update_blueprint",
"service": "agents"
},
"DELETE /agents/blueprints/{agent_blueprint_id}": {
"sdkMethod": "delete_blueprint",
"service": "agents"
},
"POST /agents/blueprints/{agent_blueprint_id}/tokens": {
"sdkMethod": "create_blueprint_token",
"service": "agents"
},
"GET /agents/instances": {
"sdkMethod": "list_instances",
"service": "agents"
},
"GET /agents/instances/{agent_instance_id}": {
"sdkMethod": "get_instance",
"service": "agents"
},
"DELETE /agents/instances/{agent_instance_id}": {
"sdkMethod": "delete_instance",
"service": "agents"
},
"GET /agents/sessions": {
"sdkMethod": "list_sessions",
"service": "agents"
},
"GET /agents/sessions/{agent_instance_session_id}": {
"sdkMethod": "get_session",
"service": "agents"
},
"POST /agents/sessions/{agent_instance_session_id}/revoke": {
"sdkMethod": "revoke_session",
"service": "agents"
},
"POST /connections": {
"sdkMethod": "create_connection",
"service": "sso"
},
"GET /connections/{connectionId}/saml_idp_signing_certs": {
"sdkMethod": "list_connection_saml_idp_signing_certs",
"service": "sso"
},
"POST /connections/{connectionId}/saml_idp_signing_certs": {
"sdkMethod": "create_connection_saml_idp_signing_cert",
"service": "sso"
},
"DELETE /connections/{connectionId}/saml_idp_signing_certs/{certificateId}": {
"sdkMethod": "delete_connection_saml_idp_signing_cert",
"service": "sso"
},
"GET /connections/{connectionId}/saml_sp_encryption_certs": {
"sdkMethod": "list_connection_saml_sp_encryption_certs",
"service": "sso"
},
"POST /connections/{connectionId}/saml_sp_encryption_certs": {
"sdkMethod": "create_connection_saml_sp_encryption_cert",
"service": "sso"
},
"DELETE /connections/{connectionId}/saml_sp_encryption_certs/{certificateId}": {
"sdkMethod": "delete_connection_saml_sp_encryption_cert",
"service": "sso"
},
"GET /connections/{connectionId}/saml_sp_signing_cert": {
"sdkMethod": "list_connection_saml_sp_signing_cert",
"service": "sso"
},
"POST /connections/{connectionId}/saml_sp_signing_cert": {
"sdkMethod": "create_connection_saml_sp_signing_cert",
"service": "sso"
},
"DELETE /connections/{connectionId}/saml_sp_signing_cert/{certificateId}": {
"sdkMethod": "delete_connection_saml_sp_signing_cert",
"service": "sso"
},
"PATCH /connections/{id}": {
"sdkMethod": "update_connection",
"service": "sso"
},
"GET /organizations/{organization_id}/it_contacts": {
"sdkMethod": "list_it_contacts",
"service": "organizations"
},
"POST /organizations/{organization_id}/it_contacts": {
"sdkMethod": "create_it_contact",
"service": "organizations"
},
"DELETE /organizations/{organization_id}/it_contacts/{contact_id}": {
"sdkMethod": "delete_it_contact",
"service": "organizations"
},
"POST /organizations/{organization_id}/it_contacts/{contact_id}/invite": {
"sdkMethod": "invite_it_contact",
"service": "organizations"
},
"POST /organizations/{organization_id}/it_contacts/{contact_id}/revoke": {
"sdkMethod": "revoke_it_contact",
"service": "organizations"
},
"DELETE /user_management/waitlist_entries/{id}": {
"sdkMethod": "delete_waitlist_entry",
"service": "user_management"
},
"POST /user_management/waitlist_entries/{id}/approve": {
"sdkMethod": "create_waitlist_entry_approve",
"service": "user_management"
},
"POST /user_management/waitlist_entries/{id}/deny": {
"sdkMethod": "create_waitlist_entry_deny",
"service": "user_management"
},
"GET /user_management/waitlists": {
"sdkMethod": "list_waitlists",
"service": "user_management"
},
"GET /user_management/waitlists/{id}": {
"sdkMethod": "get_waitlist",
"service": "user_management"
},
"GET /user_management/waitlists/{id}/entries": {
"sdkMethod": "list_waitlist_entries",
"service": "user_management"
},
"POST /user_management/waitlists/{id}/entries": {
"sdkMethod": "create_waitlist_entry",
"service": "user_management"
}
}
}
2 changes: 2 additions & 0 deletions src/workos/agents/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# This file is auto-generated by oagen. Do not edit.

from workos.common.models.pagination_order import PaginationOrder as PaginationOrder

from .agent_admin_link_claim_attempt_to_external_user_request import (
AgentAdminLinkClaimAttemptToExternalUserRequest as AgentAdminLinkClaimAttemptToExternalUserRequest,
)
Expand Down
1 change: 0 additions & 1 deletion src/workos/authorization/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
AuthorizationPermission as AuthorizationPermission,
)
from workos.common.models.list_metadata import ListMetadata as ListMetadata
from workos.common.models.pagination_order import PaginationOrder as PaginationOrder
from workos.common.models.slim_role import SlimRole as SlimRole

from .assign_role import AssignRole as AssignRole
Expand Down
1 change: 1 addition & 0 deletions src/workos/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@
from .models import VaultMetadataReadData as VaultMetadataReadData
from .models import VaultNamesListed as VaultNamesListed
from .models import VaultNamesListedData as VaultNamesListedData
from .models import WaitlistEntryState as WaitlistEntryState
from .models import WaitlistUser as WaitlistUser
from .models import WaitlistUserApproved as WaitlistUserApproved
from .models import WaitlistUserCreated as WaitlistUserCreated
Expand Down
1 change: 1 addition & 0 deletions src/workos/common/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@
from .vault_names_listed import VaultNamesListed as VaultNamesListed
from .vault_names_listed_data import VaultNamesListedData as VaultNamesListedData
from .vault_names_listed_data_actor_source import *
from .waitlist_entry_state import WaitlistEntryState as WaitlistEntryState
from .waitlist_user import WaitlistUser as WaitlistUser
from .waitlist_user_approved import WaitlistUserApproved as WaitlistUserApproved
from .waitlist_user_created import WaitlistUserCreated as WaitlistUserCreated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@ class AuthenticateResponseAuthenticationMethod(str, Enum):
APPLE_OAUTH = "AppleOAuth"
BITBUCKET_OAUTH = "BitbucketOAuth"
CROSS_APP_AUTH = "CrossAppAuth"
DISCORD_OAUTH = "DiscordOAuth"
EXTERNAL_AUTH = "ExternalAuth"
GIT_HUB_OAUTH = "GitHubOAuth"
GIT_LAB_OAUTH = "GitLabOAuth"
GOOGLE_OAUTH = "GoogleOAuth"
GROK_OAUTH = "GrokOAuth"
XO_AUTH = "XOAuth"
INTUIT_OAUTH = "IntuitOAuth"
LINKED_IN_OAUTH = "LinkedInOAuth"
MICROSOFT_OAUTH = "MicrosoftOAuth"
Expand Down Expand Up @@ -55,13 +52,10 @@ def _missing_(
"AppleOAuth",
"BitbucketOAuth",
"CrossAppAuth",
"DiscordOAuth",
"ExternalAuth",
"GitHubOAuth",
"GitLabOAuth",
"GoogleOAuth",
"GrokOAuth",
"XOAuth",
"IntuitOAuth",
"LinkedInOAuth",
"MicrosoftOAuth",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@ class UserIdentitiesGetItemProvider(str, Enum):

APPLE_OAUTH = "AppleOAuth"
BITBUCKET_OAUTH = "BitbucketOAuth"
DISCORD_OAUTH = "DiscordOAuth"
GITHUB_OAUTH = "GithubOAuth"
GIT_LAB_OAUTH = "GitLabOAuth"
GOOGLE_OAUTH = "GoogleOAuth"
GROK_OAUTH = "GrokOAuth"
XO_AUTH = "XOAuth"
INTUIT_OAUTH = "IntuitOAuth"
LINKED_IN_OAUTH = "LinkedInOAuth"
MICROSOFT_OAUTH = "MicrosoftOAuth"
Expand All @@ -41,12 +38,9 @@ def _missing_(cls, value: object) -> UserIdentitiesGetItemProvider | None:
UserIdentitiesGetItemProviderLiteral: TypeAlias = Literal[
"AppleOAuth",
"BitbucketOAuth",
"DiscordOAuth",
"GithubOAuth",
"GitLabOAuth",
"GoogleOAuth",
"GrokOAuth",
"XOAuth",
"IntuitOAuth",
"LinkedInOAuth",
"MicrosoftOAuth",
Expand Down
5 changes: 3 additions & 2 deletions src/workos/common/models/user_sessions_status.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# This file is auto-generated by oagen. Do not edit.

from typing import TypeAlias
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.


UserSessionsStatus: TypeAlias = AgentInstanceSessionStatus
__all__ = ["UserSessionsStatus"]
21 changes: 21 additions & 0 deletions src/workos/common/models/waitlist_entry_state.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file is auto-generated by oagen. Do not edit.

from typing import TYPE_CHECKING

if TYPE_CHECKING:
from workos.user_management.models.user_management_waitlists_state import (
UserManagementWaitlistsState as WaitlistEntryState,
)
else:

def __getattr__(name: str):
if name == "WaitlistEntryState":
from workos.user_management.models.user_management_waitlists_state import (
UserManagementWaitlistsState,
)

return UserManagementWaitlistsState
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")


__all__ = ["WaitlistEntryState"]
7 changes: 6 additions & 1 deletion src/workos/sso/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# This file is auto-generated by oagen. Do not edit.

from ._resource import SSO as SSO, AsyncSSO as AsyncSSO
from ._resource import SSO as SSO
from ._resource import AsyncSSO as AsyncSSO
from ._resource import CreateProtocolOptionsOIDC as CreateProtocolOptionsOIDC
from ._resource import CreateProtocolOptionsSAML as CreateProtocolOptionsSAML
from ._resource import PatchProtocolOptionsOIDC as PatchProtocolOptionsOIDC
from ._resource import PatchProtocolOptionsSAML as PatchProtocolOptionsSAML
from .models import *
2 changes: 1 addition & 1 deletion src/workos/sso/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
from .sso_token_response_oauth_token import (
SSOTokenResponseOAuthToken as SSOTokenResponseOAuthToken,
)
from .token_query import TokenQuery as TokenQuery
from .token_query import *
Loading
Loading