|
1 | 1 | from typing import Literal, Optional, Union |
2 | 2 |
|
3 | | -from workos.types.workos_model import WorkOSModel |
4 | 3 | from workos.types.mfa.enroll_authentication_factor_type import ( |
5 | 4 | SmsAuthenticationFactorType, |
6 | 5 | TotpAuthenticationFactorType, |
7 | 6 | ) |
| 7 | +from workos.types.workos_model import WorkOSModel |
8 | 8 | from workos.typing.literals import LiteralOrUntyped |
9 | 9 |
|
10 | | - |
11 | 10 | AuthenticationFactorType = Literal[ |
12 | 11 | "generic_otp", SmsAuthenticationFactorType, TotpAuthenticationFactorType |
13 | 12 | ] |
@@ -43,21 +42,21 @@ class AuthenticationFactorBase(WorkOSModel): |
43 | 42 | user_id: Optional[str] = None |
44 | 43 |
|
45 | 44 |
|
46 | | -class AuthenticationFactorTotp(AuthenticationFactorBase): # type: ignore[override] |
| 45 | +class AuthenticationFactorTotp(AuthenticationFactorBase): # type: ignore[override, unused-ignore] |
47 | 46 | """Representation of a MFA Authentication Factor Response as returned by WorkOS through the MFA feature.""" |
48 | 47 |
|
49 | 48 | type: TotpAuthenticationFactorType |
50 | 49 | totp: TotpFactor |
51 | 50 |
|
52 | 51 |
|
53 | | -class AuthenticationFactorTotpExtended(AuthenticationFactorBase): # type: ignore[override] |
| 52 | +class AuthenticationFactorTotpExtended(AuthenticationFactorBase): # type: ignore[override, unused-ignore] |
54 | 53 | """Representation of a MFA Authentication Factor Response when enrolling an authentication factor.""" |
55 | 54 |
|
56 | 55 | type: TotpAuthenticationFactorType |
57 | 56 | totp: ExtendedTotpFactor |
58 | 57 |
|
59 | 58 |
|
60 | | -class AuthenticationFactorSms(AuthenticationFactorBase): # type: ignore[override] |
| 59 | +class AuthenticationFactorSms(AuthenticationFactorBase): # type: ignore[override, unused-ignore] |
61 | 60 | """Representation of a SMS Authentication Factor Response as returned by WorkOS through the MFA feature.""" |
62 | 61 |
|
63 | 62 | type: SmsAuthenticationFactorType |
|
0 commit comments