66use Appwrite \Client ;
77use Appwrite \Service ;
88use Appwrite \InputFile ;
9- use Appwrite \Enums \Factor ;
10- use Appwrite \Enums \Type ;
9+ use Appwrite \Enums \AuthenticationFactor ;
10+ use Appwrite \Enums \AuthenticatorType ;
1111use Appwrite \Enums \OAuthProvider ;
1212
1313class Account extends Service
@@ -263,12 +263,12 @@ public function updateMFA(bool $mfa): array
263263 /**
264264 * Create 2FA Challenge
265265 *
266- * @param Factor $factor
266+ * @param AuthenticationFactor $factor
267267 * @throws AppwriteException
268268 * @return array
269269
270270 */
271- public function create2FAChallenge (Factor $ factor ): array
271+ public function create2FAChallenge (AuthenticationFactor $ factor ): array
272272 {
273273 $ apiPath = str_replace ([], [], '/account/mfa/challenge ' );
274274
@@ -341,12 +341,12 @@ public function listFactors(): array
341341 /**
342342 * Add Authenticator
343343 *
344- * @param Type $type
344+ * @param AuthenticatorType $type
345345 * @throws AppwriteException
346346 * @return array
347347
348348 */
349- public function addAuthenticator (Type $ type ): array
349+ public function addAuthenticator (AuthenticatorType $ type ): array
350350 {
351351 $ apiPath = str_replace (['{type} ' ], [$ type ], '/account/mfa/{type} ' );
352352
@@ -363,13 +363,13 @@ public function addAuthenticator(Type $type): array
363363 /**
364364 * Verify Authenticator
365365 *
366- * @param Type $type
366+ * @param AuthenticatorType $type
367367 * @param string $otp
368368 * @throws AppwriteException
369369 * @return array
370370
371371 */
372- public function verifyAuthenticator (Type $ type , string $ otp ): array
372+ public function verifyAuthenticator (AuthenticatorType $ type , string $ otp ): array
373373 {
374374 $ apiPath = str_replace (['{type} ' ], [$ type ], '/account/mfa/{type} ' );
375375
@@ -393,13 +393,13 @@ public function verifyAuthenticator(Type $type, string $otp): array
393393 /**
394394 * Delete Authenticator
395395 *
396- * @param Type $type
396+ * @param AuthenticatorType $type
397397 * @param string $otp
398398 * @throws AppwriteException
399399 * @return array
400400
401401 */
402- public function deleteAuthenticator (Type $ type , string $ otp ): array
402+ public function deleteAuthenticator (AuthenticatorType $ type , string $ otp ): array
403403 {
404404 $ apiPath = str_replace (['{type} ' ], [$ type ], '/account/mfa/{type} ' );
405405
0 commit comments