@@ -1121,9 +1121,35 @@ export class FusionAuthClient {
1121
1121
}
1122
1122
1123
1123
/**
1124
- * Bulk imports multiple users. This does some validation, but then tries to run batch inserts of users. This reduces
1125
- * latency when inserting lots of users. Therefore, the error response might contain some information about failures,
1126
- * but it will likely be pretty generic.
1124
+ * Bulk imports refresh tokens. This request performs minimal validation and runs batch inserts of refresh tokens with the
1125
+ * expectation that each token represents a user that already exists and is registered for the corresponding FusionAuth
1126
+ * Application. This is done to increases the insert performance.
1127
+ *
1128
+ * Therefore, if you encounter an error due to a database key violation, the response will likely offer a generic
1129
+ * explanation. If you encounter an error, you may optionally enable additional validation to receive a JSON response
1130
+ * body with specific validation errors. This will slow the request down but will allow you to identify the cause of
1131
+ * the failure. See the validateDbConstraints request parameter.
1132
+ *
1133
+ * @param {RefreshTokenImportRequest } request The request that contains all of the information about all of the refresh tokens to import.
1134
+ * @returns {Promise<ClientResponse<void>> }
1135
+ */
1136
+ importRefreshTokens ( request : RefreshTokenImportRequest ) : Promise < ClientResponse < void > > {
1137
+ return this . start < void , Errors > ( )
1138
+ . withUri ( '/api/user/refresh-token/import' )
1139
+ . withJSONBody ( request )
1140
+ . withMethod ( "POST" )
1141
+ . go ( ) ;
1142
+ }
1143
+
1144
+ /**
1145
+ * Bulk imports users. This request performs minimal validation and runs batch inserts of users with the expectation
1146
+ * that each user does not yet exist and each registration corresponds to an existing FusionAuth Application. This is done to
1147
+ * increases the insert performance.
1148
+ *
1149
+ * Therefore, if you encounter an error due to a database key violation, the response will likely offer
1150
+ * a generic explanation. If you encounter an error, you may optionally enable additional validation to receive a JSON response
1151
+ * body with specific validation errors. This will slow the request down but will allow you to identify the cause of the failure. See
1152
+ * the validateDbConstraints request parameter.
1127
1153
*
1128
1154
* @param {ImportRequest } request The request that contains all of the information about all of the users to import.
1129
1155
* @returns {Promise<ClientResponse<void>> }
@@ -1146,7 +1172,7 @@ export class FusionAuthClient {
1146
1172
* @param {UUID } applicationId The Application Id for which you are requesting a new access token be issued.
1147
1173
* @param {string } encodedJWT The encoded JWT (access token).
1148
1174
* @param {string } refreshToken (Optional) An existing refresh token used to request a refresh token in addition to a JWT in the response.
1149
- * <p>The target application represented by the applicationid request parameter must have refresh
1175
+ * <p>The target application represented by the applicationId request parameter must have refresh
1150
1176
* tokens enabled in order to receive a refresh token in the response.</p>
1151
1177
* @returns {Promise<ClientResponse<IssueResponse>> }
1152
1178
*/
@@ -3528,6 +3554,7 @@ export interface Application {
3528
3554
authenticationTokenConfiguration ?: AuthenticationTokenConfiguration ;
3529
3555
cleanSpeakConfiguration ?: CleanSpeakConfiguration ;
3530
3556
data ?: Record < string , any > ;
3557
+ emailConfiguration ?: ApplicationEmailConfiguration ;
3531
3558
id ?: UUID ;
3532
3559
insertInstant ?: number ;
3533
3560
jwtConfiguration ?: JWTConfiguration ;
@@ -3546,6 +3573,13 @@ export interface Application {
3546
3573
verifyRegistration ?: boolean ;
3547
3574
}
3548
3575
3576
+ export interface ApplicationEmailConfiguration {
3577
+ emailVerificationEmailTemplateId ?: UUID ;
3578
+ forgotPasswordEmailTemplateId ?: UUID ;
3579
+ passwordlessEmailTemplateId ?: UUID ;
3580
+ setPasswordEmailTemplateId ?: UUID ;
3581
+ }
3582
+
3549
3583
/**
3550
3584
* Events that are bound to applications.
3551
3585
*
@@ -4446,6 +4480,7 @@ export enum FamilyRole {
4446
4480
* @author Brian Pontarelli
4447
4481
*/
4448
4482
export interface ForgotPasswordRequest {
4483
+ applicationId ?: UUID ;
4449
4484
changePasswordId ?: string ;
4450
4485
email ?: string ;
4451
4486
loginId ?: string ;
@@ -5700,6 +5735,8 @@ export interface RefreshResponse {
5700
5735
*/
5701
5736
export interface RefreshToken {
5702
5737
applicationId ?: UUID ;
5738
+ data ?: Record < string , any > ;
5739
+ id ?: UUID ;
5703
5740
insertInstant ?: number ;
5704
5741
metaData ?: MetaData ;
5705
5742
startInstant ?: number ;
@@ -5715,6 +5752,16 @@ export enum RefreshTokenExpirationPolicy {
5715
5752
SlidingWindow = "SlidingWindow"
5716
5753
}
5717
5754
5755
+ /**
5756
+ * Refresh Token Import request.
5757
+ *
5758
+ * @author Brett Guy
5759
+ */
5760
+ export interface RefreshTokenImportRequest {
5761
+ refreshTokens ?: Array < RefreshToken > ;
5762
+ validateDbConstraints ?: boolean ;
5763
+ }
5764
+
5718
5765
/**
5719
5766
* @author Daniel DeGroff
5720
5767
*/
@@ -5969,7 +6016,6 @@ export interface SortField {
5969
6016
*/
5970
6017
export interface SystemConfiguration {
5971
6018
auditLogConfiguration ?: AuditLogConfiguration ;
5972
- cookieEncryptionIV ?: string ;
5973
6019
cookieEncryptionKey ?: string ;
5974
6020
corsConfiguration ?: CORSConfiguration ;
5975
6021
data ?: Record < string , any > ;
0 commit comments