@@ -304,6 +304,22 @@ public function commentOnUser($request)
304304 ->go ();
305305 }
306306
307+ /**
308+ * Completes verification of an identity using verification codes from the Verify Start API.
309+ *
310+ * @param array $request The identity verify complete request that contains all the information used to verify the identity.
311+ *
312+ * @return ClientResponse The ClientResponse.
313+ * @throws \Exception
314+ */
315+ public function completeVerifyIdentity ($ request )
316+ {
317+ return $ this ->start ()->uri ("/api/identity/verify/complete " )
318+ ->bodyHandler (new JSONBodyHandler ($ request ))
319+ ->post ()
320+ ->go ();
321+ }
322+
307323 /**
308324 * Complete a WebAuthn authentication ceremony by validating the signature against the previously generated challenge without logging the user in
309325 *
@@ -5319,6 +5335,22 @@ public function sendTwoFactorCodeForLoginUsingMethod($twoFactorId, $request)
53195335 ->go ();
53205336 }
53215337
5338+ /**
5339+ * Send a verification code using the appropriate transport for the identity type being verified.
5340+ *
5341+ * @param array $request The identity verify send request that contains all the information used send the code.
5342+ *
5343+ * @return ClientResponse The ClientResponse.
5344+ * @throws \Exception
5345+ */
5346+ public function sendVerifyIdentity ($ request )
5347+ {
5348+ return $ this ->start ()->uri ("/api/identity/verify/send " )
5349+ ->bodyHandler (new JSONBodyHandler ($ request ))
5350+ ->post ()
5351+ ->go ();
5352+ }
5353+
53225354 /**
53235355 * Begins a login request for a 3rd party login that requires user interaction such as HYPR.
53245356 *
@@ -5374,6 +5406,23 @@ public function startTwoFactorLogin($request)
53745406 ->go ();
53755407 }
53765408
5409+ /**
5410+ * Start a verification of an identity by generating a code. This code can be sent to the User using the Verify Send API
5411+ * Verification Code API or using a mechanism outside of FusionAuth. The verification is completed by using the Verify Complete API with this code.
5412+ *
5413+ * @param array $request The identity verify start request that contains all the information used to begin the request.
5414+ *
5415+ * @return ClientResponse The ClientResponse.
5416+ * @throws \Exception
5417+ */
5418+ public function startVerifyIdentity ($ request )
5419+ {
5420+ return $ this ->start ()->uri ("/api/identity/verify/start " )
5421+ ->bodyHandler (new JSONBodyHandler ($ request ))
5422+ ->post ()
5423+ ->go ();
5424+ }
5425+
53775426 /**
53785427 * Start a WebAuthn authentication ceremony by generating a new challenge for the user
53795428 *
0 commit comments