@@ -98,6 +98,8 @@ func newGuardianManager(m *Management) *GuardianManager {
9898 & MultiFactorEmail {m },
9999 & MultiFactorDUO {m },
100100 & MultiFactorOTP {m },
101+ & MultiFactorWebAuthnRoaming {m },
102+ & MultiFactorWebAuthnPlatform {m },
101103 },
102104 }
103105}
@@ -166,12 +168,14 @@ func (m *EnrollmentManager) Delete(id string, opts ...RequestOption) (err error)
166168
167169type MultiFactorManager struct {
168170 * Management
169- Phone * MultiFactorPhone
170- SMS * MultiFactorSMS
171- Push * MultiFactorPush
172- Email * MultiFactorEmail
173- DUO * MultiFactorDUO
174- OTP * MultiFactorOTP
171+ Phone * MultiFactorPhone
172+ SMS * MultiFactorSMS
173+ Push * MultiFactorPush
174+ Email * MultiFactorEmail
175+ DUO * MultiFactorDUO
176+ OTP * MultiFactorOTP
177+ WebAuthnRoaming * MultiFactorWebAuthnRoaming
178+ WebAuthnPlatform * MultiFactorWebAuthnPlatform
175179}
176180
177181// Retrieves all factors.
@@ -330,6 +334,28 @@ func (m *MultiFactorDUO) Enable(enabled bool, opts ...RequestOption) error {
330334 }, opts ... )
331335}
332336
337+ type MultiFactorWebAuthnRoaming struct { * Management }
338+
339+ // Enable enables or disables WebAuthn Roaming Multi-factor Authentication.
340+ //
341+ // See: https://auth0.com/docs/api/management/v2#!/Guardian/put_factors_by_name
342+ func (m * MultiFactorWebAuthnRoaming ) Enable (enabled bool , opts ... RequestOption ) error {
343+ return m .Request ("PUT" , m .URI ("guardian" , "factors" , "webauthn-roaming" ), & MultiFactor {
344+ Enabled : & enabled ,
345+ }, opts ... )
346+ }
347+
348+ type MultiFactorWebAuthnPlatform struct { * Management }
349+
350+ // Enable enables or disables WebAuthn Platform Multi-factor Authentication.
351+ //
352+ // See: https://auth0.com/docs/api/management/v2#!/Guardian/put_factors_by_name
353+ func (m * MultiFactorWebAuthnPlatform ) Enable (enabled bool , opts ... RequestOption ) error {
354+ return m .Request ("PUT" , m .URI ("guardian" , "factors" , "webauthn-roaming" ), & MultiFactor {
355+ Enabled : & enabled ,
356+ }, opts ... )
357+ }
358+
333359type MultiFactorOTP struct { * Management }
334360
335361// Enable enables or disables One-time Password Multi-factor Authentication.
0 commit comments