Skip to content

Commit 920ee91

Browse files
authored
Add missing LiteralOrUntyped wrappers (#344)
1 parent a82dd6a commit 920ee91

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

workos/types/audit_logs/audit_log_export.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from typing import Literal, Optional
22

33
from workos.types.workos_model import WorkOSModel
4+
from workos.typing.literals import LiteralOrUntyped
45

56

67
AuditLogExportState = Literal["error", "pending", "ready"]
@@ -13,5 +14,5 @@ class AuditLogExport(WorkOSModel):
1314
id: str
1415
created_at: str
1516
updated_at: str
16-
state: AuditLogExportState
17+
state: LiteralOrUntyped[AuditLogExportState]
1718
url: Optional[str] = None

workos/types/fga/check.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from typing import Any, Literal, Mapping, Optional, Sequence, TypedDict
22

33
from workos.types.workos_model import WorkOSModel
4+
from workos.typing.literals import LiteralOrUntyped
45

56
from .warrant import Subject
67

@@ -41,7 +42,7 @@ class DebugInfo(WorkOSModel):
4142

4243

4344
class CheckResponse(WorkOSModel):
44-
result: CheckResult
45+
result: LiteralOrUntyped[CheckResult]
4546
is_implicit: bool
4647
debug_info: Optional[DebugInfo] = None
4748

workos/types/mfa/authentication_factor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
SmsAuthenticationFactorType,
66
TotpAuthenticationFactorType,
77
)
8+
from workos.typing.literals import LiteralOrUntyped
89

910

1011
AuthenticationFactorType = Literal[
@@ -38,7 +39,7 @@ class AuthenticationFactorBase(WorkOSModel):
3839
id: str
3940
created_at: str
4041
updated_at: str
41-
type: AuthenticationFactorType
42+
type: LiteralOrUntyped[AuthenticationFactorType]
4243
user_id: Optional[str] = None
4344

4445

workos/types/user_management/organization_membership.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from typing_extensions import TypedDict
33

44
from workos.types.workos_model import WorkOSModel
5+
from workos.typing.literals import LiteralOrUntyped
56

67
OrganizationMembershipStatus = Literal["active", "inactive", "pending"]
78

@@ -18,6 +19,6 @@ class OrganizationMembership(WorkOSModel):
1819
user_id: str
1920
organization_id: str
2021
role: OrganizationMembershipRole
21-
status: OrganizationMembershipStatus
22+
status: LiteralOrUntyped[OrganizationMembershipStatus]
2223
created_at: str
2324
updated_at: str

0 commit comments

Comments
 (0)