Skip to content
Open
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
2 changes: 1 addition & 1 deletion .last-synced-sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
92db0495807c86fbbc4d45bd266a6c1f5bcbb59c
ff939ff075453287993e1e6182f1d6f23c67ab80
61 changes: 47 additions & 14 deletions .oagen-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 2,
"language": "python",
"generatedAt": "2026-05-01T16:11:18.992Z",
"generatedAt": "2026-05-03T22:57:53.434Z",
"files": [
"src/workos/_client.py",
"src/workos/admin_portal/__init__.py",
Expand All @@ -18,9 +18,11 @@
"src/workos/api_keys/models/api_key.py",
"src/workos/api_keys/models/api_key_owner.py",
"src/workos/api_keys/models/api_key_validation_response.py",
"src/workos/api_keys/models/api_key_with_value.py",
"src/workos/api_keys/models/api_key_with_value_owner.py",
"src/workos/api_keys/models/create_organization_api_key.py",
"src/workos/api_keys/models/organization_api_key.py",
"src/workos/api_keys/models/organization_api_key_owner.py",
"src/workos/api_keys/models/organization_api_key_with_value.py",
"src/workos/api_keys/models/organization_api_key_with_value_owner.py",
"src/workos/api_keys/models/organizations_api_keys_order.py",
"src/workos/api_keys/models/validate_api_key.py",
"src/workos/audit_logs/__init__.py",
Expand Down Expand Up @@ -378,6 +380,9 @@
"src/workos/common/models/user_sessions_auth_method.py",
"src/workos/common/models/user_sessions_status.py",
"src/workos/common/models/user_updated.py",
"src/workos/common/models/vault_byok_key_deleted.py",
"src/workos/common/models/vault_byok_key_deleted_data.py",
"src/workos/common/models/vault_byok_key_deleted_data_key_provider.py",
"src/workos/common/models/vault_byok_key_verification_completed.py",
"src/workos/common/models/vault_byok_key_verification_completed_data.py",
"src/workos/common/models/vault_byok_key_verification_completed_data_key_provider.py",
Expand Down Expand Up @@ -565,6 +570,7 @@
"src/workos/user_management/__init__.py",
"src/workos/user_management/_resource.py",
"src/workos/user_management/models/__init__.py",
"src/workos/user_management/models/api_keys_order.py",
"src/workos/user_management/models/authenticate_response.py",
"src/workos/user_management/models/authenticate_response_impersonator.py",
"src/workos/user_management/models/authenticate_response_oauth_token.py",
Expand All @@ -578,6 +584,7 @@
"src/workos/user_management/models/create_password_reset_token.py",
"src/workos/user_management/models/create_redirect_uri.py",
"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_user_organization_membership.py",
"src/workos/user_management/models/device_authorization_response.py",
Expand Down Expand Up @@ -610,6 +617,10 @@
"src/workos/user_management/models/update_user.py",
"src/workos/user_management/models/update_user_organization_membership.py",
"src/workos/user_management/models/user.py",
"src/workos/user_management/models/user_api_key.py",
"src/workos/user_management/models/user_api_key_owner.py",
"src/workos/user_management/models/user_api_key_with_value.py",
"src/workos/user_management/models/user_api_key_with_value_owner.py",
"src/workos/user_management/models/user_identities_get_item.py",
"src/workos/user_management/models/user_invite.py",
"src/workos/user_management/models/user_management_authentication_provider.py",
Expand Down Expand Up @@ -654,8 +665,6 @@
"tests/fixtures/api_key_revoked_data.json",
"tests/fixtures/api_key_revoked_data_owner.json",
"tests/fixtures/api_key_validation_response.json",
"tests/fixtures/api_key_with_value.json",
"tests/fixtures/api_key_with_value_owner.json",
"tests/fixtures/application_credentials_list_item.json",
"tests/fixtures/assign_role.json",
"tests/fixtures/audit_log_action_json.json",
Expand Down Expand Up @@ -781,6 +790,7 @@
"tests/fixtures/create_redirect_uri.json",
"tests/fixtures/create_role.json",
"tests/fixtures/create_user.json",
"tests/fixtures/create_user_api_key.json",
"tests/fixtures/create_user_invite_options.json",
"tests/fixtures/create_user_organization_membership.json",
"tests/fixtures/create_webhook_endpoint.json",
Expand Down Expand Up @@ -895,7 +905,6 @@
"tests/fixtures/jwks_response.json",
"tests/fixtures/jwks_response_keys.json",
"tests/fixtures/jwt_template_response.json",
"tests/fixtures/list_api_key.json",
"tests/fixtures/list_audit_log_action_json.json",
"tests/fixtures/list_audit_log_schema_json.json",
"tests/fixtures/list_authentication_factor.json",
Expand All @@ -911,8 +920,10 @@
"tests/fixtures/list_flag.json",
"tests/fixtures/list_group.json",
"tests/fixtures/list_organization.json",
"tests/fixtures/list_organization_api_key.json",
"tests/fixtures/list_role_assignment.json",
"tests/fixtures/list_user.json",
"tests/fixtures/list_user_api_key.json",
"tests/fixtures/list_user_invite.json",
"tests/fixtures/list_user_organization_membership.json",
"tests/fixtures/list_user_organization_membership_base_list_data.json",
Expand All @@ -925,6 +936,10 @@
"tests/fixtures/mfa_totp_session_authenticate_request.json",
"tests/fixtures/new_connect_application_secret.json",
"tests/fixtures/organization.json",
"tests/fixtures/organization_api_key.json",
"tests/fixtures/organization_api_key_owner.json",
"tests/fixtures/organization_api_key_with_value.json",
"tests/fixtures/organization_api_key_with_value_owner.json",
"tests/fixtures/organization_created.json",
"tests/fixtures/organization_created_data.json",
"tests/fixtures/organization_created_data_domain.json",
Expand Down Expand Up @@ -1032,6 +1047,10 @@
"tests/fixtures/update_user_organization_membership.json",
"tests/fixtures/update_webhook_endpoint.json",
"tests/fixtures/user.json",
"tests/fixtures/user_api_key.json",
"tests/fixtures/user_api_key_owner.json",
"tests/fixtures/user_api_key_with_value.json",
"tests/fixtures/user_api_key_with_value_owner.json",
"tests/fixtures/user_authentication_factor_enroll_response.json",
"tests/fixtures/user_consent_option.json",
"tests/fixtures/user_consent_option_choice.json",
Expand All @@ -1047,6 +1066,8 @@
"tests/fixtures/user_sessions_list_item.json",
"tests/fixtures/user_updated.json",
"tests/fixtures/validate_api_key.json",
"tests/fixtures/vault_byok_key_deleted.json",
"tests/fixtures/vault_byok_key_deleted_data.json",
"tests/fixtures/vault_byok_key_verification_completed.json",
"tests/fixtures/vault_byok_key_verification_completed_data.json",
"tests/fixtures/vault_data_created.json",
Expand Down Expand Up @@ -1098,14 +1119,6 @@
"tests/test_widgets.py"
],
"operations": {
"POST /api_keys/validations": {
"sdkMethod": "create_validation",
"service": "api_keys"
},
"DELETE /api_keys/{id}": {
"sdkMethod": "delete_api_key",
"service": "api_keys"
},
"POST /auth/challenges/{id}/verify": {
"sdkMethod": "verify_challenge",
"service": "multi_factor_auth"
Expand Down Expand Up @@ -1642,6 +1655,10 @@
"sdkMethod": "revoke_invitation",
"service": "user_management"
},
"GET /user_management/jwt_template": {
"sdkMethod": "list_jwt_template",
"service": "user_management"
},
"PUT /user_management/jwt_template": {
"sdkMethod": "update_jwt_template",
"service": "user_management"
Expand Down Expand Up @@ -1742,6 +1759,22 @@
"sdkMethod": "create_token",
"service": "widgets"
},
"POST /api_keys/validations": {
"sdkMethod": "create_validation",
"service": "api_keys"
},
"DELETE /api_keys/{id}": {
"sdkMethod": "delete_api_key",
"service": "api_keys"
},
"GET /user_management/users/{userId}/api_keys": {
"sdkMethod": "list_user_api_keys",
"service": "user_management"
},
"POST /user_management/users/{userId}/api_keys": {
"sdkMethod": "create_user_api_key",
"service": "user_management"
},
"GET /audit_logs/actions": {
"sdkMethod": "list_actions",
"service": "audit_logs"
Expand Down
22 changes: 11 additions & 11 deletions src/workos/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
WorkOSClient as _SyncBase,
AsyncWorkOSClient as _AsyncBase,
)
from .api_keys._resource import ApiKeys, AsyncApiKeys
from .multi_factor_auth._resource import MultiFactorAuth, AsyncMultiFactorAuth
from .connect._resource import Connect, AsyncConnect
from .authorization._resource import Authorization, AsyncAuthorization
Expand All @@ -22,6 +21,7 @@
AsyncOrganizationDomains,
)
from .organizations._resource import Organizations, AsyncOrganizations
from .api_keys._resource import ApiKeys, AsyncApiKeys
from .groups._resource import Groups, AsyncGroups
from .admin_portal._resource import AdminPortal, AsyncAdminPortal
from .radar._resource import Radar, AsyncRadar
Expand All @@ -42,11 +42,6 @@
class WorkOSClient(_SyncBase):
"""Synchronous WorkOS API client with service accessors."""

@functools.cached_property
def api_keys(self) -> ApiKeys:
"""Api Keys API resources."""
return ApiKeys(self)

@functools.cached_property
def multi_factor_auth(self) -> MultiFactorAuth:
"""Multi Factor Auth API resources."""
Expand Down Expand Up @@ -97,6 +92,11 @@ def organizations(self) -> Organizations:
"""Organizations API resources."""
return Organizations(self)

@functools.cached_property
def api_keys(self) -> ApiKeys:
"""Api Keys API resources."""
return ApiKeys(self)

@functools.cached_property
def groups(self) -> Groups:
"""Groups API resources."""
Expand Down Expand Up @@ -172,11 +172,6 @@ def pkce(self) -> PKCE:
class AsyncWorkOSClient(_AsyncBase):
"""Asynchronous WorkOS API client with service accessors."""

@functools.cached_property
def api_keys(self) -> AsyncApiKeys:
"""Api Keys API resources."""
return AsyncApiKeys(self)

@functools.cached_property
def multi_factor_auth(self) -> AsyncMultiFactorAuth:
"""Multi Factor Auth API resources."""
Expand Down Expand Up @@ -227,6 +222,11 @@ def organizations(self) -> AsyncOrganizations:
"""Organizations API resources."""
return AsyncOrganizations(self)

@functools.cached_property
def api_keys(self) -> AsyncApiKeys:
"""Api Keys API resources."""
return AsyncApiKeys(self)

@functools.cached_property
def groups(self) -> AsyncGroups:
"""Groups API resources."""
Expand Down
Loading
Loading