@@ -400,12 +400,12 @@ open class Account: Service {
400400 ///
401401 /// Create 2FA Challenge
402402 ///
403- /// @param AppwriteEnums.Factor factor
403+ /// @param AppwriteEnums.AuthenticationFactor factor
404404 /// @throws Exception
405405 /// @return array
406406 ///
407407 open func create2FAChallenge(
408- factor: AppwriteEnums . Factor
408+ factor: AppwriteEnums . AuthenticationFactor
409409 ) async throws -> AppwriteModels . MfaChallenge {
410410 let apiPath : String = " /account/mfa/challenge "
411411
@@ -492,12 +492,12 @@ open class Account: Service {
492492 ///
493493 /// Add Authenticator
494494 ///
495- /// @param AppwriteEnums.Type type
495+ /// @param AppwriteEnums.AuthenticatorType type
496496 /// @throws Exception
497497 /// @return array
498498 ///
499499 open func addAuthenticator(
500- type: AppwriteEnums . Type
500+ type: AppwriteEnums . AuthenticatorType
501501 ) async throws -> AppwriteModels . MfaType {
502502 let apiPath : String = " /account/mfa/{type} "
503503 . replacingOccurrences ( of: " {type} " , with: type. rawValue)
@@ -524,13 +524,13 @@ open class Account: Service {
524524 ///
525525 /// Verify Authenticator
526526 ///
527- /// @param AppwriteEnums.Type type
527+ /// @param AppwriteEnums.AuthenticatorType type
528528 /// @param String otp
529529 /// @throws Exception
530530 /// @return array
531531 ///
532532 open func verifyAuthenticator< T> (
533- type: AppwriteEnums . Type ,
533+ type: AppwriteEnums . AuthenticatorType ,
534534 otp: String ,
535535 nestedType: T . Type
536536 ) async throws -> AppwriteModels . User < T > {
@@ -561,13 +561,13 @@ open class Account: Service {
561561 ///
562562 /// Verify Authenticator
563563 ///
564- /// @param AppwriteEnums.Type type
564+ /// @param AppwriteEnums.AuthenticatorType type
565565 /// @param String otp
566566 /// @throws Exception
567567 /// @return array
568568 ///
569569 open func verifyAuthenticator(
570- type: AppwriteEnums . Type ,
570+ type: AppwriteEnums . AuthenticatorType ,
571571 otp: String
572572 ) async throws -> AppwriteModels . User < [ String : AnyCodable ] > {
573573 return try await verifyAuthenticator (
@@ -580,13 +580,13 @@ open class Account: Service {
580580 ///
581581 /// Delete Authenticator
582582 ///
583- /// @param AppwriteEnums.Type type
583+ /// @param AppwriteEnums.AuthenticatorType type
584584 /// @param String otp
585585 /// @throws Exception
586586 /// @return array
587587 ///
588588 open func deleteAuthenticator< T> (
589- type: AppwriteEnums . Type ,
589+ type: AppwriteEnums . AuthenticatorType ,
590590 otp: String ,
591591 nestedType: T . Type
592592 ) async throws -> AppwriteModels . User < T > {
@@ -617,13 +617,13 @@ open class Account: Service {
617617 ///
618618 /// Delete Authenticator
619619 ///
620- /// @param AppwriteEnums.Type type
620+ /// @param AppwriteEnums.AuthenticatorType type
621621 /// @param String otp
622622 /// @throws Exception
623623 /// @return array
624624 ///
625625 open func deleteAuthenticator(
626- type: AppwriteEnums . Type ,
626+ type: AppwriteEnums . AuthenticatorType ,
627627 otp: String
628628 ) async throws -> AppwriteModels . User < [ String : AnyCodable ] > {
629629 return try await deleteAuthenticator (
0 commit comments