From 98f4178c39f932083005782d76a8a4cf6fb385f6 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Mon, 19 Feb 2024 16:53:43 +1300 Subject: [PATCH] Fix enums for API changes --- src/Appwrite/Specification/Format.php | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/Appwrite/Specification/Format.php b/src/Appwrite/Specification/Format.php index 9ddcbccdf6..726aeb328c 100644 --- a/src/Appwrite/Specification/Format.php +++ b/src/Appwrite/Specification/Format.php @@ -125,17 +125,14 @@ abstract class Format case 'verifyAuthenticator': case 'deleteAuthenticator': switch ($param) { - case 'factor': - return 'AuthenticatorFactor'; - case 'provider': - return 'AuthenticatorProvider'; + case 'type': + return 'AuthenticatorType'; } break; - case 'createChallenge': - case 'verifyChallenge': + case 'create2FAChallenge': switch ($param) { - case 'provider': - return 'AuthenticatorProvider'; + case 'factor': + return 'AuthenticationFactor'; } break; } @@ -322,10 +319,8 @@ abstract class Format break; case 'deleteAuthenticator': switch ($param) { - case 'factor': - return 'AuthenticatorFactor'; - case 'provider': - return 'AuthenticatorProvider'; + case 'type': + return 'AuthenticatorType'; } break; case 'createTarget':