Skip to content

Commit 4d3eacd

Browse files
feat: managed-auth: surface awaiting_external_action even when fallback actions exist
1 parent d4d579e commit 4d3eacd

2 files changed

Lines changed: 18 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/resources/auth/connections.ts

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ export interface ManagedAuth {
272272
credential?: ManagedAuth.Credential;
273273

274274
/**
275-
* Fields awaiting input (present when flow_step=awaiting_input)
275+
* Fields awaiting input (present when flow_step=awaiting_input; may also be
276+
* present with awaiting_external_action as fallback actions)
276277
*/
277278
discovered_fields?: Array<ManagedAuth.DiscoveredField> | null;
278279

@@ -362,13 +363,14 @@ export interface ManagedAuth {
362363
login_url?: string;
363364

364365
/**
365-
* MFA method options (present when flow_step=awaiting_input and MFA selection
366-
* required)
366+
* MFA method options (present when flow_step=awaiting_input; may also be present
367+
* with awaiting_external_action as fallback actions)
367368
*/
368369
mfa_options?: Array<ManagedAuth.MfaOption> | null;
369370

370371
/**
371-
* SSO buttons available (present when flow_step=awaiting_input)
372+
* SSO buttons available (present when flow_step=awaiting_input; may also be
373+
* present with awaiting_external_action as fallback actions)
372374
*/
373375
pending_sso_buttons?: Array<ManagedAuth.PendingSSOButton> | null;
374376

@@ -384,7 +386,8 @@ export interface ManagedAuth {
384386

385387
/**
386388
* Non-MFA choices presented during the auth flow, such as account selection or org
387-
* pickers (present when flow_step=awaiting_input).
389+
* pickers (present when flow_step=awaiting_input; may also be present with
390+
* awaiting_external_action as fallback actions).
388391
*/
389392
sign_in_options?: Array<ManagedAuth.SignInOption> | null;
390393

@@ -830,7 +833,8 @@ export namespace ConnectionFollowResponse {
830833
timestamp: string;
831834

832835
/**
833-
* Fields awaiting input (present when flow_step=AWAITING_INPUT).
836+
* Fields awaiting input (present when flow_step=AWAITING_INPUT; may also be
837+
* present with AWAITING_EXTERNAL_ACTION as fallback actions).
834838
*/
835839
discovered_fields?: Array<ManagedAuthStateEvent.DiscoveredField>;
836840

@@ -866,13 +870,14 @@ export namespace ConnectionFollowResponse {
866870
live_view_url?: string;
867871

868872
/**
869-
* MFA method options (present when flow_step=AWAITING_INPUT and MFA selection
870-
* required).
873+
* MFA method options (present when flow_step=AWAITING_INPUT; may also be present
874+
* with AWAITING_EXTERNAL_ACTION as fallback actions).
871875
*/
872876
mfa_options?: Array<ManagedAuthStateEvent.MfaOption>;
873877

874878
/**
875-
* SSO buttons available (present when flow_step=AWAITING_INPUT).
879+
* SSO buttons available (present when flow_step=AWAITING_INPUT; may also be
880+
* present with AWAITING_EXTERNAL_ACTION as fallback actions).
876881
*/
877882
pending_sso_buttons?: Array<ManagedAuthStateEvent.PendingSSOButton>;
878883

@@ -883,7 +888,8 @@ export namespace ConnectionFollowResponse {
883888

884889
/**
885890
* Non-MFA choices presented during the auth flow, such as account selection or org
886-
* pickers (present when flow_step=AWAITING_INPUT).
891+
* pickers (present when flow_step=AWAITING_INPUT; may also be present with
892+
* AWAITING_EXTERNAL_ACTION as fallback actions).
887893
*/
888894
sign_in_options?: Array<ManagedAuthStateEvent.SignInOption>;
889895

0 commit comments

Comments
 (0)