@@ -3890,6 +3890,22 @@ export class FusionAuthClient {
3890
3890
. go ( ) ;
3891
3891
}
3892
3892
3893
+ /**
3894
+ * Retrieves the user for the loginId for specific loginIdTypes.
3895
+ *
3896
+ * @param {string } loginId The email or username of the user.
3897
+ * @param {List<String> } loginIdTypes The identity types that FusionAuth will compare the loginId to.
3898
+ * @returns {Promise<ClientResponse<UserResponse>> }
3899
+ */
3900
+ retrieveUserByLoginId ( loginId : string , loginIdTypes : List < String > ) : Promise < ClientResponse < UserResponse > > {
3901
+ return this . start < UserResponse , Errors > ( )
3902
+ . withUri ( '/api/user' )
3903
+ . withParameter ( 'loginId' , loginId )
3904
+ . withParameter ( 'loginIdTypes' , loginIdTypes )
3905
+ . withMethod ( "GET" )
3906
+ . go ( ) ;
3907
+ }
3908
+
3893
3909
/**
3894
3910
* Retrieves the user for the given username.
3895
3911
*
@@ -4095,6 +4111,29 @@ export class FusionAuthClient {
4095
4111
. go ( ) ;
4096
4112
}
4097
4113
4114
+ /**
4115
+ * Retrieves the login report between the two instants for a particular user by login Id. If you specify an application id, it will only return the
4116
+ * login counts for that application.
4117
+ *
4118
+ * @param {UUID } applicationId (Optional) The application id.
4119
+ * @param {string } loginId The userId id.
4120
+ * @param {List<String> } loginIdTypes The identity types that FusionAuth will compare the loginId to.
4121
+ * @param {number } start The start instant as UTC milliseconds since Epoch.
4122
+ * @param {number } end The end instant as UTC milliseconds since Epoch.
4123
+ * @returns {Promise<ClientResponse<LoginReportResponse>> }
4124
+ */
4125
+ retrieveUserLoginReportByLoginId ( applicationId : UUID , loginId : string , loginIdTypes : List < String > , start : number , end : number ) : Promise < ClientResponse < LoginReportResponse > > {
4126
+ return this . start < LoginReportResponse , Errors > ( )
4127
+ . withUri ( '/api/report/login' )
4128
+ . withParameter ( 'applicationId' , applicationId )
4129
+ . withParameter ( 'loginId' , loginId )
4130
+ . withParameter ( 'loginIdTypes' , loginIdTypes )
4131
+ . withParameter ( 'start' , start )
4132
+ . withParameter ( 'end' , end )
4133
+ . withMethod ( "GET" )
4134
+ . go ( ) ;
4135
+ }
4136
+
4098
4137
/**
4099
4138
* Retrieves the last number of login records for a user.
4100
4139
*
@@ -10960,6 +10999,7 @@ export interface Templates {
10960
10999
oauth2Error ?: string ;
10961
11000
oauth2Logout ?: string ;
10962
11001
oauth2Passwordless ?: string ;
11002
+ oauth2PasswordlessFormField ?: string ;
10963
11003
oauth2Register ?: string ;
10964
11004
oauth2StartIdPLink ?: string ;
10965
11005
oauth2TwoFactor ?: string ;
0 commit comments