Skip to content

Commit ed6a2d2

Browse files
feat: Add 'switch' MFA option type for generic method-switcher links
1 parent c1e8e07 commit ed6a2d2

3 files changed

Lines changed: 16 additions & 10 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 112
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-4ce09d1a7546ab36f578cb27d819187eeb90c580b11834c7ff7a375aa22f9a20.yml
3-
openapi_spec_hash: 1043ab2d699f6c828680c3352cd4cece
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-81659c4d18e7992d17a0930d6c13c8592a0ff5bb974ea9e2e4b3f46d43b117d2.yml
3+
openapi_spec_hash: f3d12a3a0a5e9ce711fb1c571ee36f9c
44
config_hash: 08d55086449943a8fec212b870061a3f

src/kernel/types/auth/connection_follow_response.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ManagedAuthStateEventDiscoveredField(BaseModel):
4040
"Enter the phone ending in (**_) _**-\\**\\**92")
4141
"""
4242

43-
linked_mfa_type: Optional[Literal["sms", "call", "email", "totp", "push", "password"]] = None
43+
linked_mfa_type: Optional[Literal["sms", "call", "email", "totp", "push", "password", "switch"]] = None
4444
"""
4545
If this field is associated with an MFA option, the type of that option (e.g.,
4646
password field linked to "Enter password" option)
@@ -59,9 +59,12 @@ class ManagedAuthStateEventMfaOption(BaseModel):
5959
label: str
6060
"""The visible option text"""
6161

62-
type: Literal["sms", "call", "email", "totp", "push", "password"]
63-
"""
64-
The MFA delivery method type (includes password for auth method selection pages)
62+
type: Literal["sms", "call", "email", "totp", "push", "password", "switch"]
63+
"""The MFA delivery method type.
64+
65+
Includes 'password' for auth method selection pages and 'switch' for generic
66+
method-switcher links like "Use another method" that do not name a specific
67+
method.
6568
"""
6669

6770
description: Optional[str] = None

src/kernel/types/auth/managed_auth.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class DiscoveredField(BaseModel):
5252
"Enter the phone ending in (**_) _**-\\**\\**92")
5353
"""
5454

55-
linked_mfa_type: Optional[Literal["sms", "call", "email", "totp", "push", "password"]] = None
55+
linked_mfa_type: Optional[Literal["sms", "call", "email", "totp", "push", "password", "switch"]] = None
5656
"""
5757
If this field is associated with an MFA option, the type of that option (e.g.,
5858
password field linked to "Enter password" option)
@@ -71,9 +71,12 @@ class MfaOption(BaseModel):
7171
label: str
7272
"""The visible option text"""
7373

74-
type: Literal["sms", "call", "email", "totp", "push", "password"]
75-
"""
76-
The MFA delivery method type (includes password for auth method selection pages)
74+
type: Literal["sms", "call", "email", "totp", "push", "password", "switch"]
75+
"""The MFA delivery method type.
76+
77+
Includes 'password' for auth method selection pages and 'switch' for generic
78+
method-switcher links like "Use another method" that do not name a specific
79+
method.
7780
"""
7881

7982
description: Optional[str] = None

0 commit comments

Comments
 (0)