Skip to content

Commit 399a3d2

Browse files
feat: Add 'switch' MFA option type for generic method-switcher links
1 parent d4599cc commit 399a3d2

2 files changed

Lines changed: 12 additions & 8 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/resources/auth/connections.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ export namespace ManagedAuth {
464464
* If this field is associated with an MFA option, the type of that option (e.g.,
465465
* password field linked to "Enter password" option)
466466
*/
467-
linked_mfa_type?: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password' | null;
467+
linked_mfa_type?: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password' | 'switch' | null;
468468

469469
/**
470470
* Field placeholder
@@ -487,9 +487,11 @@ export namespace ManagedAuth {
487487
label: string;
488488

489489
/**
490-
* The MFA delivery method type (includes password for auth method selection pages)
490+
* The MFA delivery method type. Includes 'password' for auth method selection
491+
* pages and 'switch' for generic method-switcher links like "Use another method"
492+
* that do not name a specific method.
491493
*/
492-
type: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password';
494+
type: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password' | 'switch';
493495

494496
/**
495497
* Additional instructions from the site
@@ -927,7 +929,7 @@ export namespace ConnectionFollowResponse {
927929
* If this field is associated with an MFA option, the type of that option (e.g.,
928930
* password field linked to "Enter password" option)
929931
*/
930-
linked_mfa_type?: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password' | null;
932+
linked_mfa_type?: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password' | 'switch' | null;
931933

932934
/**
933935
* Field placeholder
@@ -950,9 +952,11 @@ export namespace ConnectionFollowResponse {
950952
label: string;
951953

952954
/**
953-
* The MFA delivery method type (includes password for auth method selection pages)
955+
* The MFA delivery method type. Includes 'password' for auth method selection
956+
* pages and 'switch' for generic method-switcher links like "Use another method"
957+
* that do not name a specific method.
954958
*/
955-
type: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password';
959+
type: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password' | 'switch';
956960

957961
/**
958962
* Additional instructions from the site

0 commit comments

Comments
 (0)