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
5 changes: 2 additions & 3 deletions src/workos/types/directory_sync/directory_user.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from typing import Any, Dict, Literal, Optional, Sequence, Union

from workos.types.workos_model import WorkOSModel
from workos.types.directory_sync.directory_group import DirectoryGroup

from workos.types.workos_model import WorkOSModel

DirectoryUserState = Literal["active", "inactive"]

Expand Down Expand Up @@ -33,7 +32,7 @@ class DirectoryUser(WorkOSModel):
# @deprecated Will be removed in a future major version. Enable the `username` custom attribute in dashboard and pull from customAttributes instead. See https://workos.com/docs/directory-sync/attributes/custom-attributes/auto-mapped-attributes for details.
username: Optional[str] = None
state: DirectoryUserState
custom_attributes: Dict[str, Any]
custom_attributes: Optional[Dict[str, Any]] = None
raw_attributes: Dict[str, Any]
created_at: str
updated_at: str
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from typing import Any, Literal, Mapping, Optional, Sequence

from typing_extensions import TypedDict

from workos.types.workos_model import WorkOSModel
Expand All @@ -21,6 +22,6 @@ class OrganizationMembership(WorkOSModel):
role: OrganizationMembershipRole
roles: Optional[Sequence[OrganizationMembershipRole]] = None
status: LiteralOrUntyped[OrganizationMembershipStatus]
custom_attributes: Mapping[str, Any]
custom_attributes: Optional[Mapping[str, Any]] = None
created_at: str
updated_at: str