@@ -1121,9 +1121,35 @@ export class FusionAuthClient {
11211121 }
11221122
11231123 /**
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.
11271153 *
11281154 * @param {ImportRequest } request The request that contains all of the information about all of the users to import.
11291155 * @returns {Promise<ClientResponse<void>> }
@@ -1146,7 +1172,7 @@ export class FusionAuthClient {
11461172 * @param {UUID } applicationId The Application Id for which you are requesting a new access token be issued.
11471173 * @param {string } encodedJWT The encoded JWT (access token).
11481174 * @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
11501176 * tokens enabled in order to receive a refresh token in the response.</p>
11511177 * @returns {Promise<ClientResponse<IssueResponse>> }
11521178 */
@@ -3528,6 +3554,7 @@ export interface Application {
35283554 authenticationTokenConfiguration ?: AuthenticationTokenConfiguration ;
35293555 cleanSpeakConfiguration ?: CleanSpeakConfiguration ;
35303556 data ?: Record < string , any > ;
3557+ emailConfiguration ?: ApplicationEmailConfiguration ;
35313558 id ?: UUID ;
35323559 insertInstant ?: number ;
35333560 jwtConfiguration ?: JWTConfiguration ;
@@ -3546,6 +3573,13 @@ export interface Application {
35463573 verifyRegistration ?: boolean ;
35473574}
35483575
3576+ export interface ApplicationEmailConfiguration {
3577+ emailVerificationEmailTemplateId ?: UUID ;
3578+ forgotPasswordEmailTemplateId ?: UUID ;
3579+ passwordlessEmailTemplateId ?: UUID ;
3580+ setPasswordEmailTemplateId ?: UUID ;
3581+ }
3582+
35493583/**
35503584 * Events that are bound to applications.
35513585 *
@@ -4446,6 +4480,7 @@ export enum FamilyRole {
44464480 * @author Brian Pontarelli
44474481 */
44484482export interface ForgotPasswordRequest {
4483+ applicationId ?: UUID ;
44494484 changePasswordId ?: string ;
44504485 email ?: string ;
44514486 loginId ?: string ;
@@ -5700,6 +5735,8 @@ export interface RefreshResponse {
57005735 */
57015736export interface RefreshToken {
57025737 applicationId ?: UUID ;
5738+ data ?: Record < string , any > ;
5739+ id ?: UUID ;
57035740 insertInstant ?: number ;
57045741 metaData ?: MetaData ;
57055742 startInstant ?: number ;
@@ -5715,6 +5752,16 @@ export enum RefreshTokenExpirationPolicy {
57155752 SlidingWindow = "SlidingWindow"
57165753}
57175754
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+
57185765/**
57195766 * @author Daniel DeGroff
57205767 */
@@ -5969,7 +6016,6 @@ export interface SortField {
59696016 */
59706017export interface SystemConfiguration {
59716018 auditLogConfiguration ?: AuditLogConfiguration ;
5972- cookieEncryptionIV ?: string ;
59736019 cookieEncryptionKey ?: string ;
59746020 corsConfiguration ?: CORSConfiguration ;
59756021 data ?: Record < string , any > ;
0 commit comments