Skip to content

Commit 3299579

Browse files
Merge remote-tracking branch 'origin/main' into stlc/promote-next
2 parents 5c88933 + 3bb6956 commit 3299579

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

src/kernel/types/auth/connection_follow_response.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,24 @@ class ManagedAuthStateEventChoice(BaseModel):
3535
]
3636
"""Choice type."""
3737

38+
context: Optional[str] = None
39+
"""Context captured for a choice."""
40+
3841
description: Optional[str] = None
3942
"""Additional context for the choice."""
4043

44+
display_text: Optional[str] = None
45+
"""Display text captured for a choice."""
46+
47+
masked_destination: Optional[str] = None
48+
"""Masked phone number or email address shown for an MFA choice."""
49+
50+
mfa_type: Optional[Literal["sms", "call", "email", "totp", "push", "password", "passkey", "switch", "other"]] = None
51+
"""Semantic MFA method.
52+
53+
Choice id remains the stable identity of the exact option selected.
54+
"""
55+
4156
observed_selector: Optional[str] = None
4257
"""Selector for the visible choice, when available."""
4358

@@ -88,6 +103,9 @@ class ManagedAuthStateEventField(BaseModel):
88103
type: Literal["identifier", "password", "code", "totp_code", "totp_secret", "text"]
89104
"""Managed-auth field type."""
90105

106+
hint: Optional[str] = None
107+
"""Context shown near the field, including a masked code destination."""
108+
91109
label: Optional[str] = None
92110
"""Human-readable label shown to the user."""
93111

src/kernel/types/auth/managed_auth.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,24 @@ class Choice(BaseModel):
122122
]
123123
"""Choice type."""
124124

125+
context: Optional[str] = None
126+
"""Context captured for a choice."""
127+
125128
description: Optional[str] = None
126129
"""Additional context for the choice."""
127130

131+
display_text: Optional[str] = None
132+
"""Display text captured for a choice."""
133+
134+
masked_destination: Optional[str] = None
135+
"""Masked phone number or email address shown for an MFA choice."""
136+
137+
mfa_type: Optional[Literal["sms", "call", "email", "totp", "push", "password", "passkey", "switch", "other"]] = None
138+
"""Semantic MFA method.
139+
140+
Choice id remains the stable identity of the exact option selected.
141+
"""
142+
128143
observed_selector: Optional[str] = None
129144
"""Selector for the visible choice, when available."""
130145

@@ -197,6 +212,9 @@ class Field(BaseModel):
197212
type: Literal["identifier", "password", "code", "totp_code", "totp_secret", "text"]
198213
"""Managed-auth field type."""
199214

215+
hint: Optional[str] = None
216+
"""Context shown near the field, including a masked code destination."""
217+
200218
label: Optional[str] = None
201219
"""Human-readable label shown to the user."""
202220

0 commit comments

Comments
 (0)