From 70b813145d52f757f93505815de14bdbc87e259b Mon Sep 17 00:00:00 2001 From: Brady Wied Date: Sat, 21 Dec 2024 09:54:47 -0700 Subject: [PATCH] client builder regen --- src/FusionAuth/FusionAuthClient.php | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/src/FusionAuth/FusionAuthClient.php b/src/FusionAuth/FusionAuthClient.php index ec0bf2c..aff67ee 100644 --- a/src/FusionAuth/FusionAuthClient.php +++ b/src/FusionAuth/FusionAuthClient.php @@ -304,6 +304,22 @@ public function commentOnUser($request) ->go(); } + /** + * Completes verification of an identity using verification codes from the Verify Start API. + * + * @param array $request The identity verify complete request that contains all the information used to verify the identity. + * + * @return ClientResponse The ClientResponse. + * @throws \Exception + */ + public function completeVerifyIdentity($request) + { + return $this->start()->uri("/api/identity/verify/complete") + ->bodyHandler(new JSONBodyHandler($request)) + ->post() + ->go(); + } + /** * Complete a WebAuthn authentication ceremony by validating the signature against the previously generated challenge without logging the user in * @@ -5319,6 +5335,22 @@ public function sendTwoFactorCodeForLoginUsingMethod($twoFactorId, $request) ->go(); } + /** + * Send a verification code using the appropriate transport for the identity type being verified. + * + * @param array $request The identity verify send request that contains all the information used send the code. + * + * @return ClientResponse The ClientResponse. + * @throws \Exception + */ + public function sendVerifyIdentity($request) + { + return $this->start()->uri("/api/identity/verify/send") + ->bodyHandler(new JSONBodyHandler($request)) + ->post() + ->go(); + } + /** * Begins a login request for a 3rd party login that requires user interaction such as HYPR. * @@ -5374,6 +5406,23 @@ public function startTwoFactorLogin($request) ->go(); } + /** + * Start a verification of an identity by generating a code. This code can be sent to the User using the Verify Send API + * Verification Code API or using a mechanism outside of FusionAuth. The verification is completed by using the Verify Complete API with this code. + * + * @param array $request The identity verify start request that contains all the information used to begin the request. + * + * @return ClientResponse The ClientResponse. + * @throws \Exception + */ + public function startVerifyIdentity($request) + { + return $this->start()->uri("/api/identity/verify/start") + ->bodyHandler(new JSONBodyHandler($request)) + ->post() + ->go(); + } + /** * Start a WebAuthn authentication ceremony by generating a new challenge for the user *