Skip to content

Commit fd4ffe4

Browse files
feat: managed-auth: surface awaiting_external_action even when fallback actions exist
1 parent b30bc1e commit fd4ffe4

3 files changed

Lines changed: 26 additions & 12 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-7d2d29d7598105d50e5118e0bc5ac654361a92cb95555705dbd1d236848e1456.yml
3-
openapi_spec_hash: 10002eae793e08f81932239bbc72b503
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-38c6ce8b0ce54e6c62517b9635acaf65369c26cdb1b55eb66290c13a8ab2b33d.yml
3+
openapi_spec_hash: e6f6ed157b1e318d1a1db72fd1d27091
44
config_hash: 08d55086449943a8fec212b870061a3f

src/kernel/types/auth/connection_follow_response.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ class ManagedAuthStateEvent(BaseModel):
119119
"""Time the state was reported."""
120120

121121
discovered_fields: Optional[List[ManagedAuthStateEventDiscoveredField]] = None
122-
"""Fields awaiting input (present when flow_step=AWAITING_INPUT)."""
122+
"""
123+
Fields awaiting input (present when flow_step=AWAITING_INPUT; may also be
124+
present with AWAITING_EXTERNAL_ACTION as fallback actions).
125+
"""
123126

124127
error_code: Optional[str] = None
125128
"""Machine-readable error code (present when flow_status=FAILED)."""
@@ -144,20 +147,24 @@ class ManagedAuthStateEvent(BaseModel):
144147

145148
mfa_options: Optional[List[ManagedAuthStateEventMfaOption]] = None
146149
"""
147-
MFA method options (present when flow_step=AWAITING_INPUT and MFA selection
148-
required).
150+
MFA method options (present when flow_step=AWAITING_INPUT; may also be present
151+
with AWAITING_EXTERNAL_ACTION as fallback actions).
149152
"""
150153

151154
pending_sso_buttons: Optional[List[ManagedAuthStateEventPendingSSOButton]] = None
152-
"""SSO buttons available (present when flow_step=AWAITING_INPUT)."""
155+
"""
156+
SSO buttons available (present when flow_step=AWAITING_INPUT; may also be
157+
present with AWAITING_EXTERNAL_ACTION as fallback actions).
158+
"""
153159

154160
post_login_url: Optional[str] = None
155161
"""URL where the browser landed after successful login."""
156162

157163
sign_in_options: Optional[List[ManagedAuthStateEventSignInOption]] = None
158164
"""
159165
Non-MFA choices presented during the auth flow, such as account selection or org
160-
pickers (present when flow_step=AWAITING_INPUT).
166+
pickers (present when flow_step=AWAITING_INPUT; may also be present with
167+
AWAITING_EXTERNAL_ACTION as fallback actions).
161168
"""
162169

163170
website_error: Optional[str] = None

src/kernel/types/auth/managed_auth.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ class ManagedAuth(BaseModel):
185185
"""
186186

187187
discovered_fields: Optional[List[DiscoveredField]] = None
188-
"""Fields awaiting input (present when flow_step=awaiting_input)"""
188+
"""
189+
Fields awaiting input (present when flow_step=awaiting_input; may also be
190+
present with awaiting_external_action as fallback actions)
191+
"""
189192

190193
error_code: Optional[str] = None
191194
"""Machine-readable error code (present when flow_status=failed)"""
@@ -254,12 +257,15 @@ class ManagedAuth(BaseModel):
254257

255258
mfa_options: Optional[List[MfaOption]] = None
256259
"""
257-
MFA method options (present when flow_step=awaiting_input and MFA selection
258-
required)
260+
MFA method options (present when flow_step=awaiting_input; may also be present
261+
with awaiting_external_action as fallback actions)
259262
"""
260263

261264
pending_sso_buttons: Optional[List[PendingSSOButton]] = None
262-
"""SSO buttons available (present when flow_step=awaiting_input)"""
265+
"""
266+
SSO buttons available (present when flow_step=awaiting_input; may also be
267+
present with awaiting_external_action as fallback actions)
268+
"""
263269

264270
post_login_url: Optional[str] = None
265271
"""URL where the browser landed after successful login"""
@@ -270,7 +276,8 @@ class ManagedAuth(BaseModel):
270276
sign_in_options: Optional[List[SignInOption]] = None
271277
"""
272278
Non-MFA choices presented during the auth flow, such as account selection or org
273-
pickers (present when flow_step=awaiting_input).
279+
pickers (present when flow_step=awaiting_input; may also be present with
280+
awaiting_external_action as fallback actions).
274281
"""
275282

276283
sso_provider: Optional[str] = None

0 commit comments

Comments
 (0)