@@ -265,6 +265,18 @@ def comment_on_user(request)
265
265
. go
266
266
end
267
267
268
+ #
269
+ # Completes verification of an identity using verification codes from the Verify Start API.
270
+ #
271
+ # @param request [OpenStruct, Hash] The identity verify complete request that contains all the information used to verify the identity.
272
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
273
+ def complete_verify_identity ( request )
274
+ start . uri ( '/api/identity/verify/complete' )
275
+ . body_handler ( FusionAuth ::JSONBodyHandler . new ( request ) )
276
+ . post
277
+ . go
278
+ end
279
+
268
280
#
269
281
# Complete a WebAuthn authentication ceremony by validating the signature against the previously generated challenge without logging the user in
270
282
#
@@ -3405,6 +3417,20 @@ def retrieve_user_by_login_id(login_id)
3405
3417
. go
3406
3418
end
3407
3419
3420
+ #
3421
+ # Retrieves the user for the loginId, using specific loginIdTypes.
3422
+ #
3423
+ # @param login_id [string] The email or username of the user.
3424
+ # @param login_id_types [Array] the identity types that FusionAuth will compare the loginId to.
3425
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
3426
+ def retrieve_user_by_login_id_with_login_id_types ( login_id , login_id_types )
3427
+ start . uri ( '/api/user' )
3428
+ . url_parameter ( 'loginId' , login_id )
3429
+ . url_parameter ( 'loginIdTypes' , login_id_types )
3430
+ . get
3431
+ . go
3432
+ end
3433
+
3408
3434
#
3409
3435
# Retrieves the user for the given username.
3410
3436
#
@@ -3586,6 +3612,27 @@ def retrieve_user_login_report_by_login_id(application_id, login_id, start, _end
3586
3612
. go
3587
3613
end
3588
3614
3615
+ #
3616
+ # Retrieves the login report between the two instants for a particular user by login Id, using specific loginIdTypes. If you specify an application id, it will only return the
3617
+ # login counts for that application.
3618
+ #
3619
+ # @param application_id [string] (Optional) The application id.
3620
+ # @param login_id [string] The userId id.
3621
+ # @param start [OpenStruct, Hash] The start instant as UTC milliseconds since Epoch.
3622
+ # @param _end [OpenStruct, Hash] The end instant as UTC milliseconds since Epoch.
3623
+ # @param login_id_types [Array] the identity types that FusionAuth will compare the loginId to.
3624
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
3625
+ def retrieve_user_login_report_by_login_id_and_login_id_types ( application_id , login_id , start , _end , login_id_types )
3626
+ start . uri ( '/api/report/login' )
3627
+ . url_parameter ( 'applicationId' , application_id )
3628
+ . url_parameter ( 'loginId' , login_id )
3629
+ . url_parameter ( 'start' , start )
3630
+ . url_parameter ( 'end' , _end )
3631
+ . url_parameter ( 'loginIdTypes' , login_id_types )
3632
+ . get
3633
+ . go
3634
+ end
3635
+
3589
3636
#
3590
3637
# Retrieves the last number of login records for a user.
3591
3638
#
@@ -4215,6 +4262,18 @@ def send_two_factor_code_for_login_using_method(two_factor_id, request)
4215
4262
. go
4216
4263
end
4217
4264
4265
+ #
4266
+ # Send a verification code using the appropriate transport for the identity type being verified.
4267
+ #
4268
+ # @param request [OpenStruct, Hash] The identity verify send request that contains all the information used send the code.
4269
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
4270
+ def send_verify_identity ( request )
4271
+ start . uri ( '/api/identity/verify/send' )
4272
+ . body_handler ( FusionAuth ::JSONBodyHandler . new ( request ) )
4273
+ . post
4274
+ . go
4275
+ end
4276
+
4218
4277
#
4219
4278
# Begins a login request for a 3rd party login that requires user interaction such as HYPR.
4220
4279
#
@@ -4258,6 +4317,19 @@ def start_two_factor_login(request)
4258
4317
. go
4259
4318
end
4260
4319
4320
+ #
4321
+ # Start a verification of an identity by generating a code. This code can be sent to the User using the Verify Send API
4322
+ # Verification Code API or using a mechanism outside of FusionAuth. The verification is completed by using the Verify Complete API with this code.
4323
+ #
4324
+ # @param request [OpenStruct, Hash] The identity verify start request that contains all the information used to begin the request.
4325
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
4326
+ def start_verify_identity ( request )
4327
+ start . uri ( '/api/identity/verify/start' )
4328
+ . body_handler ( FusionAuth ::JSONBodyHandler . new ( request ) )
4329
+ . post
4330
+ . go
4331
+ end
4332
+
4261
4333
#
4262
4334
# Start a WebAuthn authentication ceremony by generating a new challenge for the user
4263
4335
#
@@ -4840,6 +4912,18 @@ def verify_email_address_by_user_id(request)
4840
4912
. go
4841
4913
end
4842
4914
4915
+ #
4916
+ # Administratively verify a user identity.
4917
+ #
4918
+ # @param request [OpenStruct, Hash] The identity verify request that contains information to verify the identity.
4919
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
4920
+ def verify_identity ( request )
4921
+ start . uri ( '/api/identity/verify' )
4922
+ . body_handler ( FusionAuth ::JSONBodyHandler . new ( request ) )
4923
+ . post
4924
+ . go
4925
+ end
4926
+
4843
4927
#
4844
4928
# Confirms an application registration. The Id given is usually from an email sent to the user.
4845
4929
#
0 commit comments