@@ -370,7 +370,7 @@ class Account(client: Client) : Service(client) {
370
370
*/
371
371
@Throws(AppwriteException ::class )
372
372
suspend fun create2FAChallenge (
373
- factor : Factor ,
373
+ factor : AuthenticationFactor ,
374
374
): io.appwrite.models.MfaChallenge {
375
375
val apiPath = " /account/mfa/challenge"
376
376
@@ -465,7 +465,7 @@ class Account(client: Client) : Service(client) {
465
465
*/
466
466
@Throws(AppwriteException ::class )
467
467
suspend fun addAuthenticator (
468
- type : Type ,
468
+ type : AuthenticatorType ,
469
469
): io.appwrite.models.MfaType {
470
470
val apiPath = " /account/mfa/{type}"
471
471
.replace(" {type}" , type.value)
@@ -499,7 +499,7 @@ class Account(client: Client) : Service(client) {
499
499
*/
500
500
@Throws(AppwriteException ::class )
501
501
suspend fun <T > verifyAuthenticator (
502
- type : Type ,
502
+ type : AuthenticatorType ,
503
503
otp : String ,
504
504
nestedType : Class <T >,
505
505
): io.appwrite.models.User <T > {
@@ -536,7 +536,7 @@ class Account(client: Client) : Service(client) {
536
536
*/
537
537
@Throws(AppwriteException ::class )
538
538
suspend fun verifyAuthenticator (
539
- type : Type ,
539
+ type : AuthenticatorType ,
540
540
otp : String ,
541
541
): io.appwrite.models.User <Map <String , Any >> = verifyAuthenticator(
542
542
type,
@@ -555,7 +555,7 @@ class Account(client: Client) : Service(client) {
555
555
*/
556
556
@Throws(AppwriteException ::class )
557
557
suspend fun <T > deleteAuthenticator (
558
- type : Type ,
558
+ type : AuthenticatorType ,
559
559
otp : String ,
560
560
nestedType : Class <T >,
561
561
): io.appwrite.models.User <T > {
@@ -592,7 +592,7 @@ class Account(client: Client) : Service(client) {
592
592
*/
593
593
@Throws(AppwriteException ::class )
594
594
suspend fun deleteAuthenticator (
595
- type : Type ,
595
+ type : AuthenticatorType ,
596
596
otp : String ,
597
597
): io.appwrite.models.User <Map <String , Any >> = deleteAuthenticator(
598
598
type,
0 commit comments