Skip to content

Commit 9bed035

Browse files
feat: Add 'switch' MFA option type for generic method-switcher links
1 parent 58b459b commit 9bed035

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

authconnection.go

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ type ManagedAuthDiscoveredField struct {
430430
// If this field is associated with an MFA option, the type of that option (e.g.,
431431
// password field linked to "Enter password" option)
432432
//
433-
// Any of "sms", "call", "email", "totp", "push", "password".
433+
// Any of "sms", "call", "email", "totp", "push", "password", "switch".
434434
LinkedMfaType string `json:"linked_mfa_type" api:"nullable"`
435435
// Field placeholder
436436
Placeholder string `json:"placeholder"`
@@ -491,9 +491,11 @@ const (
491491
type ManagedAuthMfaOption struct {
492492
// The visible option text
493493
Label string `json:"label" api:"required"`
494-
// The MFA delivery method type (includes password for auth method selection pages)
494+
// The MFA delivery method type. Includes 'password' for auth method selection
495+
// pages and 'switch' for generic method-switcher links like "Use another method"
496+
// that do not name a specific method.
495497
//
496-
// Any of "sms", "call", "email", "totp", "push", "password".
498+
// Any of "sms", "call", "email", "totp", "push", "password", "switch".
497499
Type string `json:"type" api:"required"`
498500
// Additional instructions from the site
499501
Description string `json:"description" api:"nullable"`
@@ -992,7 +994,7 @@ type AuthConnectionFollowResponseManagedAuthStateDiscoveredField struct {
992994
// If this field is associated with an MFA option, the type of that option (e.g.,
993995
// password field linked to "Enter password" option)
994996
//
995-
// Any of "sms", "call", "email", "totp", "push", "password".
997+
// Any of "sms", "call", "email", "totp", "push", "password", "switch".
996998
LinkedMfaType string `json:"linked_mfa_type" api:"nullable"`
997999
// Field placeholder
9981000
Placeholder string `json:"placeholder"`
@@ -1025,9 +1027,11 @@ func (r *AuthConnectionFollowResponseManagedAuthStateDiscoveredField) UnmarshalJ
10251027
type AuthConnectionFollowResponseManagedAuthStateMfaOption struct {
10261028
// The visible option text
10271029
Label string `json:"label" api:"required"`
1028-
// The MFA delivery method type (includes password for auth method selection pages)
1030+
// The MFA delivery method type. Includes 'password' for auth method selection
1031+
// pages and 'switch' for generic method-switcher links like "Use another method"
1032+
// that do not name a specific method.
10291033
//
1030-
// Any of "sms", "call", "email", "totp", "push", "password".
1034+
// Any of "sms", "call", "email", "totp", "push", "password", "switch".
10311035
Type string `json:"type" api:"required"`
10321036
// Additional instructions from the site
10331037
Description string `json:"description" api:"nullable"`

0 commit comments

Comments
 (0)