@fusionauth/typescript-client 1.31.0 → 1.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/FusionAuthClient.d.ts +111 -39
- package/build/src/FusionAuthClient.js +91 -37
- package/build/src/FusionAuthClient.js.map +1 -1
- package/dist/fusionauth-typescript-client.js +92 -38
- package/dist/fusionauth-typescript-client.min.js +1 -1
- package/dist/fusionauth-typescript-client.min.js.map +1 -1
- package/package.json +3 -3
|
@@ -76,7 +76,7 @@ class FusionAuthClient {
|
|
|
76
76
|
* Adds a user to an existing family. The family id must be specified.
|
|
77
77
|
*
|
|
78
78
|
* @param {UUID} familyId The id of the family.
|
|
79
|
-
* @param {FamilyRequest} request The request object that contains all
|
|
79
|
+
* @param {FamilyRequest} request The request object that contains all the information used to determine which user to add to the family.
|
|
80
80
|
* @returns {Promise<ClientResponse<FamilyResponse>>}
|
|
81
81
|
*/
|
|
82
82
|
addUserToFamily(familyId, request) {
|
|
@@ -106,6 +106,9 @@ class FusionAuthClient {
|
|
|
106
106
|
* Changes a user's password using the change password Id. This usually occurs after an email has been sent to the user
|
|
107
107
|
* and they clicked on a link to reset their password.
|
|
108
108
|
*
|
|
109
|
+
* As of version 1.32.2, prefer sending the changePasswordId in the request body. To do this, omit the first parameter, and set
|
|
110
|
+
* the value in the request body.
|
|
111
|
+
*
|
|
109
112
|
* @param {string} changePasswordId The change password Id used to find the user. This value is generated by FusionAuth once the change password workflow has been initiated.
|
|
110
113
|
* @param {ChangePasswordRequest} request The change password request that contains all of the information used to change the password.
|
|
111
114
|
* @returns {Promise<ClientResponse<ChangePasswordResponse>>}
|
|
@@ -133,10 +136,61 @@ class FusionAuthClient {
|
|
|
133
136
|
.withMethod("POST")
|
|
134
137
|
.go();
|
|
135
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* Check to see if the user must obtain a Trust Token Id in order to complete a change password request.
|
|
141
|
+
* When a user has enabled Two-Factor authentication, before you are allowed to use the Change Password API to change
|
|
142
|
+
* your password, you must obtain a Truest Token by completing a Two-Factor Step-Up authentication.
|
|
143
|
+
*
|
|
144
|
+
* An HTTP status code of 412 indicates that a Trust Token is required to make a POST request to this API.
|
|
145
|
+
*
|
|
146
|
+
* @param {string} changePasswordId The change password Id used to find the user. This value is generated by FusionAuth once the change password workflow has been initiated.
|
|
147
|
+
* @returns {Promise<ClientResponse<void>>}
|
|
148
|
+
*/
|
|
149
|
+
checkChangePasswordUsingId(changePasswordId) {
|
|
150
|
+
return this.startAnonymous()
|
|
151
|
+
.withUri('/api/user/change-password')
|
|
152
|
+
.withUriSegment(changePasswordId)
|
|
153
|
+
.withMethod("GET")
|
|
154
|
+
.go();
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Check to see if the user must obtain a Trust Token Id in order to complete a change password request.
|
|
158
|
+
* When a user has enabled Two-Factor authentication, before you are allowed to use the Change Password API to change
|
|
159
|
+
* your password, you must obtain a Truest Token by completing a Two-Factor Step-Up authentication.
|
|
160
|
+
*
|
|
161
|
+
* An HTTP status code of 412 indicates that a Trust Token is required to make a POST request to this API.
|
|
162
|
+
*
|
|
163
|
+
* @param {string} encodedJWT The encoded JWT (access token).
|
|
164
|
+
* @returns {Promise<ClientResponse<void>>}
|
|
165
|
+
*/
|
|
166
|
+
checkChangePasswordUsingJWT(encodedJWT) {
|
|
167
|
+
return this.startAnonymous()
|
|
168
|
+
.withUri('/api/user/change-password')
|
|
169
|
+
.withAuthorization('Bearer ' + encodedJWT)
|
|
170
|
+
.withMethod("GET")
|
|
171
|
+
.go();
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Check to see if the user must obtain a Trust Request Id in order to complete a change password request.
|
|
175
|
+
* When a user has enabled Two-Factor authentication, before you are allowed to use the Change Password API to change
|
|
176
|
+
* your password, you must obtain a Truest Request Id by completing a Two-Factor Step-Up authentication.
|
|
177
|
+
*
|
|
178
|
+
* An HTTP status code of 412 indicates that a Trust Token is required to make a POST request to this API.
|
|
179
|
+
*
|
|
180
|
+
* @param {string} loginId The loginId of the User that you intend to change the password for.
|
|
181
|
+
* @returns {Promise<ClientResponse<void>>}
|
|
182
|
+
*/
|
|
183
|
+
checkChangePasswordUsingLoginId(loginId) {
|
|
184
|
+
return this.start()
|
|
185
|
+
.withUri('/api/user/change-password')
|
|
186
|
+
.withParameter('username', loginId)
|
|
187
|
+
.withMethod("GET")
|
|
188
|
+
.go();
|
|
189
|
+
}
|
|
136
190
|
/**
|
|
137
191
|
* Adds a comment to the user's account.
|
|
138
192
|
*
|
|
139
|
-
* @param {UserCommentRequest} request The request object that contains all
|
|
193
|
+
* @param {UserCommentRequest} request The request object that contains all the information used to create the user comment.
|
|
140
194
|
* @returns {Promise<ClientResponse<void>>}
|
|
141
195
|
*/
|
|
142
196
|
commentOnUser(request) {
|
|
@@ -169,7 +223,7 @@ class FusionAuthClient {
|
|
|
169
223
|
* Creates an application. You can optionally specify an Id for the application, if not provided one will be generated.
|
|
170
224
|
*
|
|
171
225
|
* @param {UUID} applicationId (Optional) The Id to use for the application. If not provided a secure random UUID will be generated.
|
|
172
|
-
* @param {ApplicationRequest} request The request object that contains all
|
|
226
|
+
* @param {ApplicationRequest} request The request object that contains all the information used to create the application.
|
|
173
227
|
* @returns {Promise<ClientResponse<ApplicationResponse>>}
|
|
174
228
|
*/
|
|
175
229
|
createApplication(applicationId, request) {
|
|
@@ -186,7 +240,7 @@ class FusionAuthClient {
|
|
|
186
240
|
*
|
|
187
241
|
* @param {UUID} applicationId The Id of the application to create the role on.
|
|
188
242
|
* @param {UUID} roleId (Optional) The Id of the role. If not provided a secure random UUID will be generated.
|
|
189
|
-
* @param {ApplicationRequest} request The request object that contains all
|
|
243
|
+
* @param {ApplicationRequest} request The request object that contains all the information used to create the application role.
|
|
190
244
|
* @returns {Promise<ClientResponse<ApplicationResponse>>}
|
|
191
245
|
*/
|
|
192
246
|
createApplicationRole(applicationId, roleId, request) {
|
|
@@ -204,7 +258,7 @@ class FusionAuthClient {
|
|
|
204
258
|
* make changes to the FusionAuth database. When using the FusionAuth App web interface, any changes are automatically
|
|
205
259
|
* written to the audit log. However, if you are accessing the API, you must write the audit logs yourself.
|
|
206
260
|
*
|
|
207
|
-
* @param {AuditLogRequest} request The request object that contains all
|
|
261
|
+
* @param {AuditLogRequest} request The request object that contains all the information used to create the audit log entry.
|
|
208
262
|
* @returns {Promise<ClientResponse<AuditLogResponse>>}
|
|
209
263
|
*/
|
|
210
264
|
createAuditLog(request) {
|
|
@@ -218,7 +272,7 @@ class FusionAuthClient {
|
|
|
218
272
|
* Creates a connector. You can optionally specify an Id for the connector, if not provided one will be generated.
|
|
219
273
|
*
|
|
220
274
|
* @param {UUID} connectorId (Optional) The Id for the connector. If not provided a secure random UUID will be generated.
|
|
221
|
-
* @param {ConnectorRequest} request The request object that contains all
|
|
275
|
+
* @param {ConnectorRequest} request The request object that contains all the information used to create the connector.
|
|
222
276
|
* @returns {Promise<ClientResponse<ConnectorResponse>>}
|
|
223
277
|
*/
|
|
224
278
|
createConnector(connectorId, request) {
|
|
@@ -233,7 +287,7 @@ class FusionAuthClient {
|
|
|
233
287
|
* Creates a user consent type. You can optionally specify an Id for the consent type, if not provided one will be generated.
|
|
234
288
|
*
|
|
235
289
|
* @param {UUID} consentId (Optional) The Id for the consent. If not provided a secure random UUID will be generated.
|
|
236
|
-
* @param {ConsentRequest} request The request object that contains all
|
|
290
|
+
* @param {ConsentRequest} request The request object that contains all the information used to create the consent.
|
|
237
291
|
* @returns {Promise<ClientResponse<ConsentResponse>>}
|
|
238
292
|
*/
|
|
239
293
|
createConsent(consentId, request) {
|
|
@@ -248,7 +302,7 @@ class FusionAuthClient {
|
|
|
248
302
|
* Creates an email template. You can optionally specify an Id for the template, if not provided one will be generated.
|
|
249
303
|
*
|
|
250
304
|
* @param {UUID} emailTemplateId (Optional) The Id for the template. If not provided a secure random UUID will be generated.
|
|
251
|
-
* @param {EmailTemplateRequest} request The request object that contains all
|
|
305
|
+
* @param {EmailTemplateRequest} request The request object that contains all the information used to create the email template.
|
|
252
306
|
* @returns {Promise<ClientResponse<EmailTemplateResponse>>}
|
|
253
307
|
*/
|
|
254
308
|
createEmailTemplate(emailTemplateId, request) {
|
|
@@ -263,7 +317,7 @@ class FusionAuthClient {
|
|
|
263
317
|
* Creates an Entity. You can optionally specify an Id for the Entity. If not provided one will be generated.
|
|
264
318
|
*
|
|
265
319
|
* @param {UUID} entityId (Optional) The Id for the Entity. If not provided a secure random UUID will be generated.
|
|
266
|
-
* @param {EntityRequest} request The request object that contains all
|
|
320
|
+
* @param {EntityRequest} request The request object that contains all the information used to create the Entity.
|
|
267
321
|
* @returns {Promise<ClientResponse<EntityResponse>>}
|
|
268
322
|
*/
|
|
269
323
|
createEntity(entityId, request) {
|
|
@@ -278,7 +332,7 @@ class FusionAuthClient {
|
|
|
278
332
|
* Creates a Entity Type. You can optionally specify an Id for the Entity Type, if not provided one will be generated.
|
|
279
333
|
*
|
|
280
334
|
* @param {UUID} entityTypeId (Optional) The Id for the Entity Type. If not provided a secure random UUID will be generated.
|
|
281
|
-
* @param {EntityTypeRequest} request The request object that contains all
|
|
335
|
+
* @param {EntityTypeRequest} request The request object that contains all the information used to create the Entity Type.
|
|
282
336
|
* @returns {Promise<ClientResponse<EntityTypeResponse>>}
|
|
283
337
|
*/
|
|
284
338
|
createEntityType(entityTypeId, request) {
|
|
@@ -295,7 +349,7 @@ class FusionAuthClient {
|
|
|
295
349
|
*
|
|
296
350
|
* @param {UUID} entityTypeId The Id of the entity type to create the permission on.
|
|
297
351
|
* @param {UUID} permissionId (Optional) The Id of the permission. If not provided a secure random UUID will be generated.
|
|
298
|
-
* @param {EntityTypeRequest} request The request object that contains all
|
|
352
|
+
* @param {EntityTypeRequest} request The request object that contains all the information used to create the permission.
|
|
299
353
|
* @returns {Promise<ClientResponse<EntityTypeResponse>>}
|
|
300
354
|
*/
|
|
301
355
|
createEntityTypePermission(entityTypeId, permissionId, request) {
|
|
@@ -313,7 +367,7 @@ class FusionAuthClient {
|
|
|
313
367
|
* family, if not provided one will be generated.
|
|
314
368
|
*
|
|
315
369
|
* @param {UUID} familyId (Optional) The id for the family. If not provided a secure random UUID will be generated.
|
|
316
|
-
* @param {FamilyRequest} request The request object that contains all
|
|
370
|
+
* @param {FamilyRequest} request The request object that contains all the information used to create the family.
|
|
317
371
|
* @returns {Promise<ClientResponse<FamilyResponse>>}
|
|
318
372
|
*/
|
|
319
373
|
createFamily(familyId, request) {
|
|
@@ -328,7 +382,7 @@ class FusionAuthClient {
|
|
|
328
382
|
* Creates a form. You can optionally specify an Id for the form, if not provided one will be generated.
|
|
329
383
|
*
|
|
330
384
|
* @param {UUID} formId (Optional) The Id for the form. If not provided a secure random UUID will be generated.
|
|
331
|
-
* @param {FormRequest} request The request object that contains all
|
|
385
|
+
* @param {FormRequest} request The request object that contains all the information used to create the form.
|
|
332
386
|
* @returns {Promise<ClientResponse<FormResponse>>}
|
|
333
387
|
*/
|
|
334
388
|
createForm(formId, request) {
|
|
@@ -343,7 +397,7 @@ class FusionAuthClient {
|
|
|
343
397
|
* Creates a form field. You can optionally specify an Id for the form, if not provided one will be generated.
|
|
344
398
|
*
|
|
345
399
|
* @param {UUID} fieldId (Optional) The Id for the form field. If not provided a secure random UUID will be generated.
|
|
346
|
-
* @param {FormFieldRequest} request The request object that contains all
|
|
400
|
+
* @param {FormFieldRequest} request The request object that contains all the information used to create the form field.
|
|
347
401
|
* @returns {Promise<ClientResponse<FormFieldResponse>>}
|
|
348
402
|
*/
|
|
349
403
|
createFormField(fieldId, request) {
|
|
@@ -358,7 +412,7 @@ class FusionAuthClient {
|
|
|
358
412
|
* Creates a group. You can optionally specify an Id for the group, if not provided one will be generated.
|
|
359
413
|
*
|
|
360
414
|
* @param {UUID} groupId (Optional) The Id for the group. If not provided a secure random UUID will be generated.
|
|
361
|
-
* @param {GroupRequest} request The request object that contains all
|
|
415
|
+
* @param {GroupRequest} request The request object that contains all the information used to create the group.
|
|
362
416
|
* @returns {Promise<ClientResponse<GroupResponse>>}
|
|
363
417
|
*/
|
|
364
418
|
createGroup(groupId, request) {
|
|
@@ -372,7 +426,7 @@ class FusionAuthClient {
|
|
|
372
426
|
/**
|
|
373
427
|
* Creates a member in a group.
|
|
374
428
|
*
|
|
375
|
-
* @param {MemberRequest} request The request object that contains all
|
|
429
|
+
* @param {MemberRequest} request The request object that contains all the information used to create the group member(s).
|
|
376
430
|
* @returns {Promise<ClientResponse<MemberResponse>>}
|
|
377
431
|
*/
|
|
378
432
|
createGroupMembers(request) {
|
|
@@ -386,7 +440,7 @@ class FusionAuthClient {
|
|
|
386
440
|
* Creates an IP Access Control List. You can optionally specify an Id on this create request, if one is not provided one will be generated.
|
|
387
441
|
*
|
|
388
442
|
* @param {UUID} accessControlListId (Optional) The Id for the IP Access Control List. If not provided a secure random UUID will be generated.
|
|
389
|
-
* @param {IPAccessControlListRequest} request The request object that contains all
|
|
443
|
+
* @param {IPAccessControlListRequest} request The request object that contains all the information used to create the IP Access Control List.
|
|
390
444
|
* @returns {Promise<ClientResponse<IPAccessControlListResponse>>}
|
|
391
445
|
*/
|
|
392
446
|
createIPAccessControlList(accessControlListId, request) {
|
|
@@ -401,7 +455,7 @@ class FusionAuthClient {
|
|
|
401
455
|
* Creates an identity provider. You can optionally specify an Id for the identity provider, if not provided one will be generated.
|
|
402
456
|
*
|
|
403
457
|
* @param {UUID} identityProviderId (Optional) The Id of the identity provider. If not provided a secure random UUID will be generated.
|
|
404
|
-
* @param {IdentityProviderRequest} request The request object that contains all
|
|
458
|
+
* @param {IdentityProviderRequest} request The request object that contains all the information used to create the identity provider.
|
|
405
459
|
* @returns {Promise<ClientResponse<IdentityProviderResponse>>}
|
|
406
460
|
*/
|
|
407
461
|
createIdentityProvider(identityProviderId, request) {
|
|
@@ -416,7 +470,7 @@ class FusionAuthClient {
|
|
|
416
470
|
* Creates a Lambda. You can optionally specify an Id for the lambda, if not provided one will be generated.
|
|
417
471
|
*
|
|
418
472
|
* @param {UUID} lambdaId (Optional) The Id for the lambda. If not provided a secure random UUID will be generated.
|
|
419
|
-
* @param {LambdaRequest} request The request object that contains all
|
|
473
|
+
* @param {LambdaRequest} request The request object that contains all the information used to create the lambda.
|
|
420
474
|
* @returns {Promise<ClientResponse<LambdaResponse>>}
|
|
421
475
|
*/
|
|
422
476
|
createLambda(lambdaId, request) {
|
|
@@ -431,7 +485,7 @@ class FusionAuthClient {
|
|
|
431
485
|
* Creates an message template. You can optionally specify an Id for the template, if not provided one will be generated.
|
|
432
486
|
*
|
|
433
487
|
* @param {UUID} messageTemplateId (Optional) The Id for the template. If not provided a secure random UUID will be generated.
|
|
434
|
-
* @param {MessageTemplateRequest} request The request object that contains all
|
|
488
|
+
* @param {MessageTemplateRequest} request The request object that contains all the information used to create the message template.
|
|
435
489
|
* @returns {Promise<ClientResponse<MessageTemplateResponse>>}
|
|
436
490
|
*/
|
|
437
491
|
createMessageTemplate(messageTemplateId, request) {
|
|
@@ -446,7 +500,7 @@ class FusionAuthClient {
|
|
|
446
500
|
* Creates a messenger. You can optionally specify an Id for the messenger, if not provided one will be generated.
|
|
447
501
|
*
|
|
448
502
|
* @param {UUID} messengerId (Optional) The Id for the messenger. If not provided a secure random UUID will be generated.
|
|
449
|
-
* @param {MessengerRequest} request The request object that contains all
|
|
503
|
+
* @param {MessengerRequest} request The request object that contains all the information used to create the messenger.
|
|
450
504
|
* @returns {Promise<ClientResponse<MessengerResponse>>}
|
|
451
505
|
*/
|
|
452
506
|
createMessenger(messengerId, request) {
|
|
@@ -461,7 +515,7 @@ class FusionAuthClient {
|
|
|
461
515
|
* Creates a tenant. You can optionally specify an Id for the tenant, if not provided one will be generated.
|
|
462
516
|
*
|
|
463
517
|
* @param {UUID} tenantId (Optional) The Id for the tenant. If not provided a secure random UUID will be generated.
|
|
464
|
-
* @param {TenantRequest} request The request object that contains all
|
|
518
|
+
* @param {TenantRequest} request The request object that contains all the information used to create the tenant.
|
|
465
519
|
* @returns {Promise<ClientResponse<TenantResponse>>}
|
|
466
520
|
*/
|
|
467
521
|
createTenant(tenantId, request) {
|
|
@@ -476,7 +530,7 @@ class FusionAuthClient {
|
|
|
476
530
|
* Creates a Theme. You can optionally specify an Id for the theme, if not provided one will be generated.
|
|
477
531
|
*
|
|
478
532
|
* @param {UUID} themeId (Optional) The Id for the theme. If not provided a secure random UUID will be generated.
|
|
479
|
-
* @param {ThemeRequest} request The request object that contains all
|
|
533
|
+
* @param {ThemeRequest} request The request object that contains all the information used to create the theme.
|
|
480
534
|
* @returns {Promise<ClientResponse<ThemeResponse>>}
|
|
481
535
|
*/
|
|
482
536
|
createTheme(themeId, request) {
|
|
@@ -491,7 +545,7 @@ class FusionAuthClient {
|
|
|
491
545
|
* Creates a user. You can optionally specify an Id for the user, if not provided one will be generated.
|
|
492
546
|
*
|
|
493
547
|
* @param {UUID} userId (Optional) The Id for the user. If not provided a secure random UUID will be generated.
|
|
494
|
-
* @param {UserRequest} request The request object that contains all
|
|
548
|
+
* @param {UserRequest} request The request object that contains all the information used to create the user.
|
|
495
549
|
* @returns {Promise<ClientResponse<UserResponse>>}
|
|
496
550
|
*/
|
|
497
551
|
createUser(userId, request) {
|
|
@@ -507,7 +561,7 @@ class FusionAuthClient {
|
|
|
507
561
|
* that the user action can be applied to any user.
|
|
508
562
|
*
|
|
509
563
|
* @param {UUID} userActionId (Optional) The Id for the user action. If not provided a secure random UUID will be generated.
|
|
510
|
-
* @param {UserActionRequest} request The request object that contains all
|
|
564
|
+
* @param {UserActionRequest} request The request object that contains all the information used to create the user action.
|
|
511
565
|
* @returns {Promise<ClientResponse<UserActionResponse>>}
|
|
512
566
|
*/
|
|
513
567
|
createUserAction(userActionId, request) {
|
|
@@ -523,7 +577,7 @@ class FusionAuthClient {
|
|
|
523
577
|
* successfully. Anytime after that the user action reason can be used.
|
|
524
578
|
*
|
|
525
579
|
* @param {UUID} userActionReasonId (Optional) The Id for the user action reason. If not provided a secure random UUID will be generated.
|
|
526
|
-
* @param {UserActionReasonRequest} request The request object that contains all
|
|
580
|
+
* @param {UserActionReasonRequest} request The request object that contains all the information used to create the user action reason.
|
|
527
581
|
* @returns {Promise<ClientResponse<UserActionReasonResponse>>}
|
|
528
582
|
*/
|
|
529
583
|
createUserActionReason(userActionReasonId, request) {
|
|
@@ -552,7 +606,7 @@ class FusionAuthClient {
|
|
|
552
606
|
/**
|
|
553
607
|
* Link an external user from a 3rd party identity provider to a FusionAuth user.
|
|
554
608
|
*
|
|
555
|
-
* @param {IdentityProviderLinkRequest} request The request object that contains all
|
|
609
|
+
* @param {IdentityProviderLinkRequest} request The request object that contains all the information used to link the FusionAuth user.
|
|
556
610
|
* @returns {Promise<ClientResponse<IdentityProviderLinkResponse>>}
|
|
557
611
|
*/
|
|
558
612
|
createUserLink(request) {
|
|
@@ -566,7 +620,7 @@ class FusionAuthClient {
|
|
|
566
620
|
* Creates a webhook. You can optionally specify an Id for the webhook, if not provided one will be generated.
|
|
567
621
|
*
|
|
568
622
|
* @param {UUID} webhookId (Optional) The Id for the webhook. If not provided a secure random UUID will be generated.
|
|
569
|
-
* @param {WebhookRequest} request The request object that contains all
|
|
623
|
+
* @param {WebhookRequest} request The request object that contains all the information used to create the webhook.
|
|
570
624
|
* @returns {Promise<ClientResponse<WebhookResponse>>}
|
|
571
625
|
*/
|
|
572
626
|
createWebhook(webhookId, request) {
|
|
@@ -1002,7 +1056,7 @@ class FusionAuthClient {
|
|
|
1002
1056
|
* with the tenant and everything under the tenant (applications, users, etc).
|
|
1003
1057
|
*
|
|
1004
1058
|
* @param {UUID} tenantId The Id of the tenant to delete.
|
|
1005
|
-
* @param {TenantDeleteRequest} request The request object that contains all
|
|
1059
|
+
* @param {TenantDeleteRequest} request The request object that contains all the information used to delete the user.
|
|
1006
1060
|
* @returns {Promise<ClientResponse<void>>}
|
|
1007
1061
|
*/
|
|
1008
1062
|
deleteTenantWithRequest(tenantId, request) {
|
|
@@ -1091,7 +1145,7 @@ class FusionAuthClient {
|
|
|
1091
1145
|
* with the user.
|
|
1092
1146
|
*
|
|
1093
1147
|
* @param {UUID} userId The Id of the user to delete (required).
|
|
1094
|
-
* @param {UserDeleteSingleRequest} request The request object that contains all
|
|
1148
|
+
* @param {UserDeleteSingleRequest} request The request object that contains all the information used to delete the user.
|
|
1095
1149
|
* @returns {Promise<ClientResponse<void>>}
|
|
1096
1150
|
*/
|
|
1097
1151
|
deleteUserWithRequest(userId, request) {
|
|
@@ -1343,7 +1397,7 @@ class FusionAuthClient {
|
|
|
1343
1397
|
* Generate a new RSA or EC key pair or an HMAC secret.
|
|
1344
1398
|
*
|
|
1345
1399
|
* @param {UUID} keyId (Optional) The Id for the key. If not provided a secure random UUID will be generated.
|
|
1346
|
-
* @param {KeyRequest} request The request object that contains all
|
|
1400
|
+
* @param {KeyRequest} request The request object that contains all the information used to create the key.
|
|
1347
1401
|
* @returns {Promise<ClientResponse<KeyResponse>>}
|
|
1348
1402
|
*/
|
|
1349
1403
|
generateKey(keyId, request) {
|
|
@@ -1432,7 +1486,7 @@ class FusionAuthClient {
|
|
|
1432
1486
|
* Import an existing RSA or EC key pair or an HMAC secret.
|
|
1433
1487
|
*
|
|
1434
1488
|
* @param {UUID} keyId (Optional) The Id for the key. If not provided a secure random UUID will be generated.
|
|
1435
|
-
* @param {KeyRequest} request The request object that contains all
|
|
1489
|
+
* @param {KeyRequest} request The request object that contains all the information used to create the key.
|
|
1436
1490
|
* @returns {Promise<ClientResponse<KeyResponse>>}
|
|
1437
1491
|
*/
|
|
1438
1492
|
importKey(keyId, request) {
|
|
@@ -1583,7 +1637,7 @@ class FusionAuthClient {
|
|
|
1583
1637
|
* The Logout API is intended to be used to remove the refresh token and access token cookies if they exist on the
|
|
1584
1638
|
* client and revoke the refresh token stored. This API takes the refresh token in the JSON body.
|
|
1585
1639
|
*
|
|
1586
|
-
* @param {LogoutRequest} request The request object that contains all
|
|
1640
|
+
* @param {LogoutRequest} request The request object that contains all the information used to logout the user.
|
|
1587
1641
|
* @returns {Promise<ClientResponse<void>>}
|
|
1588
1642
|
*/
|
|
1589
1643
|
logoutWithRequest(request) {
|
|
@@ -3743,7 +3797,7 @@ class FusionAuthClient {
|
|
|
3743
3797
|
/**
|
|
3744
3798
|
* Send a Two Factor authentication code to assist in setting up Two Factor authentication or disabling.
|
|
3745
3799
|
*
|
|
3746
|
-
* @param {TwoFactorSendRequest} request The request object that contains all
|
|
3800
|
+
* @param {TwoFactorSendRequest} request The request object that contains all the information used to send the code.
|
|
3747
3801
|
* @returns {Promise<ClientResponse<void>>}
|
|
3748
3802
|
*
|
|
3749
3803
|
* @deprecated This method has been renamed to sendTwoFactorCodeForEnableDisable, use that method instead.
|
|
@@ -3758,7 +3812,7 @@ class FusionAuthClient {
|
|
|
3758
3812
|
/**
|
|
3759
3813
|
* Send a Two Factor authentication code to assist in setting up Two Factor authentication or disabling.
|
|
3760
3814
|
*
|
|
3761
|
-
* @param {TwoFactorSendRequest} request The request object that contains all
|
|
3815
|
+
* @param {TwoFactorSendRequest} request The request object that contains all the information used to send the code.
|
|
3762
3816
|
* @returns {Promise<ClientResponse<void>>}
|
|
3763
3817
|
*/
|
|
3764
3818
|
sendTwoFactorCodeForEnableDisable(request) {
|
|
@@ -3862,7 +3916,7 @@ class FusionAuthClient {
|
|
|
3862
3916
|
* Updates an API key by given id
|
|
3863
3917
|
*
|
|
3864
3918
|
* @param {UUID} apiKeyId The Id of the API key to update.
|
|
3865
|
-
* @param {APIKeyRequest} request The request object that contains all
|
|
3919
|
+
* @param {APIKeyRequest} request The request object that contains all the information used to create the API Key.
|
|
3866
3920
|
* @returns {Promise<ClientResponse<APIKeyResponse>>}
|
|
3867
3921
|
*/
|
|
3868
3922
|
updateAPIKey(apiKeyId, request) {
|
|
@@ -4284,7 +4338,7 @@ class FusionAuthClient {
|
|
|
4284
4338
|
* Creates or updates an Entity Grant. This is when a User/Entity is granted permissions to an Entity.
|
|
4285
4339
|
*
|
|
4286
4340
|
* @param {UUID} entityId The Id of the Entity that the User/Entity is being granted access to.
|
|
4287
|
-
* @param {EntityGrantRequest} request The request object that contains all
|
|
4341
|
+
* @param {EntityGrantRequest} request The request object that contains all the information used to create the Entity Grant.
|
|
4288
4342
|
* @returns {Promise<ClientResponse<void>>}
|
|
4289
4343
|
*/
|
|
4290
4344
|
upsertEntityGrant(entityId, request) {
|