@fusionauth/typescript-client 1.30.0 → 1.32.1
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 +82 -66
- package/build/src/FusionAuthClient.js +48 -37
- package/build/src/FusionAuthClient.js.map +1 -1
- package/dist/fusionauth-typescript-client.js +49 -38
- package/dist/fusionauth-typescript-client.min.js +1 -1
- package/dist/fusionauth-typescript-client.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -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) {
|
|
@@ -136,7 +136,7 @@ class FusionAuthClient {
|
|
|
136
136
|
/**
|
|
137
137
|
* Adds a comment to the user's account.
|
|
138
138
|
*
|
|
139
|
-
* @param {UserCommentRequest} request The request object that contains all
|
|
139
|
+
* @param {UserCommentRequest} request The request object that contains all the information used to create the user comment.
|
|
140
140
|
* @returns {Promise<ClientResponse<void>>}
|
|
141
141
|
*/
|
|
142
142
|
commentOnUser(request) {
|
|
@@ -169,7 +169,7 @@ class FusionAuthClient {
|
|
|
169
169
|
* Creates an application. You can optionally specify an Id for the application, if not provided one will be generated.
|
|
170
170
|
*
|
|
171
171
|
* @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
|
|
172
|
+
* @param {ApplicationRequest} request The request object that contains all the information used to create the application.
|
|
173
173
|
* @returns {Promise<ClientResponse<ApplicationResponse>>}
|
|
174
174
|
*/
|
|
175
175
|
createApplication(applicationId, request) {
|
|
@@ -186,7 +186,7 @@ class FusionAuthClient {
|
|
|
186
186
|
*
|
|
187
187
|
* @param {UUID} applicationId The Id of the application to create the role on.
|
|
188
188
|
* @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
|
|
189
|
+
* @param {ApplicationRequest} request The request object that contains all the information used to create the application role.
|
|
190
190
|
* @returns {Promise<ClientResponse<ApplicationResponse>>}
|
|
191
191
|
*/
|
|
192
192
|
createApplicationRole(applicationId, roleId, request) {
|
|
@@ -204,7 +204,7 @@ class FusionAuthClient {
|
|
|
204
204
|
* make changes to the FusionAuth database. When using the FusionAuth App web interface, any changes are automatically
|
|
205
205
|
* written to the audit log. However, if you are accessing the API, you must write the audit logs yourself.
|
|
206
206
|
*
|
|
207
|
-
* @param {AuditLogRequest} request The request object that contains all
|
|
207
|
+
* @param {AuditLogRequest} request The request object that contains all the information used to create the audit log entry.
|
|
208
208
|
* @returns {Promise<ClientResponse<AuditLogResponse>>}
|
|
209
209
|
*/
|
|
210
210
|
createAuditLog(request) {
|
|
@@ -218,7 +218,7 @@ class FusionAuthClient {
|
|
|
218
218
|
* Creates a connector. You can optionally specify an Id for the connector, if not provided one will be generated.
|
|
219
219
|
*
|
|
220
220
|
* @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
|
|
221
|
+
* @param {ConnectorRequest} request The request object that contains all the information used to create the connector.
|
|
222
222
|
* @returns {Promise<ClientResponse<ConnectorResponse>>}
|
|
223
223
|
*/
|
|
224
224
|
createConnector(connectorId, request) {
|
|
@@ -233,7 +233,7 @@ class FusionAuthClient {
|
|
|
233
233
|
* Creates a user consent type. You can optionally specify an Id for the consent type, if not provided one will be generated.
|
|
234
234
|
*
|
|
235
235
|
* @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
|
|
236
|
+
* @param {ConsentRequest} request The request object that contains all the information used to create the consent.
|
|
237
237
|
* @returns {Promise<ClientResponse<ConsentResponse>>}
|
|
238
238
|
*/
|
|
239
239
|
createConsent(consentId, request) {
|
|
@@ -248,7 +248,7 @@ class FusionAuthClient {
|
|
|
248
248
|
* Creates an email template. You can optionally specify an Id for the template, if not provided one will be generated.
|
|
249
249
|
*
|
|
250
250
|
* @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
|
|
251
|
+
* @param {EmailTemplateRequest} request The request object that contains all the information used to create the email template.
|
|
252
252
|
* @returns {Promise<ClientResponse<EmailTemplateResponse>>}
|
|
253
253
|
*/
|
|
254
254
|
createEmailTemplate(emailTemplateId, request) {
|
|
@@ -263,7 +263,7 @@ class FusionAuthClient {
|
|
|
263
263
|
* Creates an Entity. You can optionally specify an Id for the Entity. If not provided one will be generated.
|
|
264
264
|
*
|
|
265
265
|
* @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
|
|
266
|
+
* @param {EntityRequest} request The request object that contains all the information used to create the Entity.
|
|
267
267
|
* @returns {Promise<ClientResponse<EntityResponse>>}
|
|
268
268
|
*/
|
|
269
269
|
createEntity(entityId, request) {
|
|
@@ -278,7 +278,7 @@ class FusionAuthClient {
|
|
|
278
278
|
* Creates a Entity Type. You can optionally specify an Id for the Entity Type, if not provided one will be generated.
|
|
279
279
|
*
|
|
280
280
|
* @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
|
|
281
|
+
* @param {EntityTypeRequest} request The request object that contains all the information used to create the Entity Type.
|
|
282
282
|
* @returns {Promise<ClientResponse<EntityTypeResponse>>}
|
|
283
283
|
*/
|
|
284
284
|
createEntityType(entityTypeId, request) {
|
|
@@ -295,7 +295,7 @@ class FusionAuthClient {
|
|
|
295
295
|
*
|
|
296
296
|
* @param {UUID} entityTypeId The Id of the entity type to create the permission on.
|
|
297
297
|
* @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
|
|
298
|
+
* @param {EntityTypeRequest} request The request object that contains all the information used to create the permission.
|
|
299
299
|
* @returns {Promise<ClientResponse<EntityTypeResponse>>}
|
|
300
300
|
*/
|
|
301
301
|
createEntityTypePermission(entityTypeId, permissionId, request) {
|
|
@@ -313,7 +313,7 @@ class FusionAuthClient {
|
|
|
313
313
|
* family, if not provided one will be generated.
|
|
314
314
|
*
|
|
315
315
|
* @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
|
|
316
|
+
* @param {FamilyRequest} request The request object that contains all the information used to create the family.
|
|
317
317
|
* @returns {Promise<ClientResponse<FamilyResponse>>}
|
|
318
318
|
*/
|
|
319
319
|
createFamily(familyId, request) {
|
|
@@ -328,7 +328,7 @@ class FusionAuthClient {
|
|
|
328
328
|
* Creates a form. You can optionally specify an Id for the form, if not provided one will be generated.
|
|
329
329
|
*
|
|
330
330
|
* @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
|
|
331
|
+
* @param {FormRequest} request The request object that contains all the information used to create the form.
|
|
332
332
|
* @returns {Promise<ClientResponse<FormResponse>>}
|
|
333
333
|
*/
|
|
334
334
|
createForm(formId, request) {
|
|
@@ -343,7 +343,7 @@ class FusionAuthClient {
|
|
|
343
343
|
* Creates a form field. You can optionally specify an Id for the form, if not provided one will be generated.
|
|
344
344
|
*
|
|
345
345
|
* @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
|
|
346
|
+
* @param {FormFieldRequest} request The request object that contains all the information used to create the form field.
|
|
347
347
|
* @returns {Promise<ClientResponse<FormFieldResponse>>}
|
|
348
348
|
*/
|
|
349
349
|
createFormField(fieldId, request) {
|
|
@@ -358,7 +358,7 @@ class FusionAuthClient {
|
|
|
358
358
|
* Creates a group. You can optionally specify an Id for the group, if not provided one will be generated.
|
|
359
359
|
*
|
|
360
360
|
* @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
|
|
361
|
+
* @param {GroupRequest} request The request object that contains all the information used to create the group.
|
|
362
362
|
* @returns {Promise<ClientResponse<GroupResponse>>}
|
|
363
363
|
*/
|
|
364
364
|
createGroup(groupId, request) {
|
|
@@ -372,7 +372,7 @@ class FusionAuthClient {
|
|
|
372
372
|
/**
|
|
373
373
|
* Creates a member in a group.
|
|
374
374
|
*
|
|
375
|
-
* @param {MemberRequest} request The request object that contains all
|
|
375
|
+
* @param {MemberRequest} request The request object that contains all the information used to create the group member(s).
|
|
376
376
|
* @returns {Promise<ClientResponse<MemberResponse>>}
|
|
377
377
|
*/
|
|
378
378
|
createGroupMembers(request) {
|
|
@@ -386,7 +386,7 @@ class FusionAuthClient {
|
|
|
386
386
|
* 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
387
|
*
|
|
388
388
|
* @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
|
|
389
|
+
* @param {IPAccessControlListRequest} request The request object that contains all the information used to create the IP Access Control List.
|
|
390
390
|
* @returns {Promise<ClientResponse<IPAccessControlListResponse>>}
|
|
391
391
|
*/
|
|
392
392
|
createIPAccessControlList(accessControlListId, request) {
|
|
@@ -401,7 +401,7 @@ class FusionAuthClient {
|
|
|
401
401
|
* Creates an identity provider. You can optionally specify an Id for the identity provider, if not provided one will be generated.
|
|
402
402
|
*
|
|
403
403
|
* @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
|
|
404
|
+
* @param {IdentityProviderRequest} request The request object that contains all the information used to create the identity provider.
|
|
405
405
|
* @returns {Promise<ClientResponse<IdentityProviderResponse>>}
|
|
406
406
|
*/
|
|
407
407
|
createIdentityProvider(identityProviderId, request) {
|
|
@@ -416,7 +416,7 @@ class FusionAuthClient {
|
|
|
416
416
|
* Creates a Lambda. You can optionally specify an Id for the lambda, if not provided one will be generated.
|
|
417
417
|
*
|
|
418
418
|
* @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
|
|
419
|
+
* @param {LambdaRequest} request The request object that contains all the information used to create the lambda.
|
|
420
420
|
* @returns {Promise<ClientResponse<LambdaResponse>>}
|
|
421
421
|
*/
|
|
422
422
|
createLambda(lambdaId, request) {
|
|
@@ -431,7 +431,7 @@ class FusionAuthClient {
|
|
|
431
431
|
* Creates an message template. You can optionally specify an Id for the template, if not provided one will be generated.
|
|
432
432
|
*
|
|
433
433
|
* @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
|
|
434
|
+
* @param {MessageTemplateRequest} request The request object that contains all the information used to create the message template.
|
|
435
435
|
* @returns {Promise<ClientResponse<MessageTemplateResponse>>}
|
|
436
436
|
*/
|
|
437
437
|
createMessageTemplate(messageTemplateId, request) {
|
|
@@ -446,7 +446,7 @@ class FusionAuthClient {
|
|
|
446
446
|
* Creates a messenger. You can optionally specify an Id for the messenger, if not provided one will be generated.
|
|
447
447
|
*
|
|
448
448
|
* @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
|
|
449
|
+
* @param {MessengerRequest} request The request object that contains all the information used to create the messenger.
|
|
450
450
|
* @returns {Promise<ClientResponse<MessengerResponse>>}
|
|
451
451
|
*/
|
|
452
452
|
createMessenger(messengerId, request) {
|
|
@@ -461,7 +461,7 @@ class FusionAuthClient {
|
|
|
461
461
|
* Creates a tenant. You can optionally specify an Id for the tenant, if not provided one will be generated.
|
|
462
462
|
*
|
|
463
463
|
* @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
|
|
464
|
+
* @param {TenantRequest} request The request object that contains all the information used to create the tenant.
|
|
465
465
|
* @returns {Promise<ClientResponse<TenantResponse>>}
|
|
466
466
|
*/
|
|
467
467
|
createTenant(tenantId, request) {
|
|
@@ -476,7 +476,7 @@ class FusionAuthClient {
|
|
|
476
476
|
* Creates a Theme. You can optionally specify an Id for the theme, if not provided one will be generated.
|
|
477
477
|
*
|
|
478
478
|
* @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
|
|
479
|
+
* @param {ThemeRequest} request The request object that contains all the information used to create the theme.
|
|
480
480
|
* @returns {Promise<ClientResponse<ThemeResponse>>}
|
|
481
481
|
*/
|
|
482
482
|
createTheme(themeId, request) {
|
|
@@ -491,7 +491,7 @@ class FusionAuthClient {
|
|
|
491
491
|
* Creates a user. You can optionally specify an Id for the user, if not provided one will be generated.
|
|
492
492
|
*
|
|
493
493
|
* @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
|
|
494
|
+
* @param {UserRequest} request The request object that contains all the information used to create the user.
|
|
495
495
|
* @returns {Promise<ClientResponse<UserResponse>>}
|
|
496
496
|
*/
|
|
497
497
|
createUser(userId, request) {
|
|
@@ -507,7 +507,7 @@ class FusionAuthClient {
|
|
|
507
507
|
* that the user action can be applied to any user.
|
|
508
508
|
*
|
|
509
509
|
* @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
|
|
510
|
+
* @param {UserActionRequest} request The request object that contains all the information used to create the user action.
|
|
511
511
|
* @returns {Promise<ClientResponse<UserActionResponse>>}
|
|
512
512
|
*/
|
|
513
513
|
createUserAction(userActionId, request) {
|
|
@@ -523,7 +523,7 @@ class FusionAuthClient {
|
|
|
523
523
|
* successfully. Anytime after that the user action reason can be used.
|
|
524
524
|
*
|
|
525
525
|
* @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
|
|
526
|
+
* @param {UserActionReasonRequest} request The request object that contains all the information used to create the user action reason.
|
|
527
527
|
* @returns {Promise<ClientResponse<UserActionReasonResponse>>}
|
|
528
528
|
*/
|
|
529
529
|
createUserActionReason(userActionReasonId, request) {
|
|
@@ -552,7 +552,7 @@ class FusionAuthClient {
|
|
|
552
552
|
/**
|
|
553
553
|
* Link an external user from a 3rd party identity provider to a FusionAuth user.
|
|
554
554
|
*
|
|
555
|
-
* @param {IdentityProviderLinkRequest} request The request object that contains all
|
|
555
|
+
* @param {IdentityProviderLinkRequest} request The request object that contains all the information used to link the FusionAuth user.
|
|
556
556
|
* @returns {Promise<ClientResponse<IdentityProviderLinkResponse>>}
|
|
557
557
|
*/
|
|
558
558
|
createUserLink(request) {
|
|
@@ -566,7 +566,7 @@ class FusionAuthClient {
|
|
|
566
566
|
* Creates a webhook. You can optionally specify an Id for the webhook, if not provided one will be generated.
|
|
567
567
|
*
|
|
568
568
|
* @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
|
|
569
|
+
* @param {WebhookRequest} request The request object that contains all the information used to create the webhook.
|
|
570
570
|
* @returns {Promise<ClientResponse<WebhookResponse>>}
|
|
571
571
|
*/
|
|
572
572
|
createWebhook(webhookId, request) {
|
|
@@ -1002,7 +1002,7 @@ class FusionAuthClient {
|
|
|
1002
1002
|
* with the tenant and everything under the tenant (applications, users, etc).
|
|
1003
1003
|
*
|
|
1004
1004
|
* @param {UUID} tenantId The Id of the tenant to delete.
|
|
1005
|
-
* @param {TenantDeleteRequest} request The request object that contains all
|
|
1005
|
+
* @param {TenantDeleteRequest} request The request object that contains all the information used to delete the user.
|
|
1006
1006
|
* @returns {Promise<ClientResponse<void>>}
|
|
1007
1007
|
*/
|
|
1008
1008
|
deleteTenantWithRequest(tenantId, request) {
|
|
@@ -1091,7 +1091,7 @@ class FusionAuthClient {
|
|
|
1091
1091
|
* with the user.
|
|
1092
1092
|
*
|
|
1093
1093
|
* @param {UUID} userId The Id of the user to delete (required).
|
|
1094
|
-
* @param {UserDeleteSingleRequest} request The request object that contains all
|
|
1094
|
+
* @param {UserDeleteSingleRequest} request The request object that contains all the information used to delete the user.
|
|
1095
1095
|
* @returns {Promise<ClientResponse<void>>}
|
|
1096
1096
|
*/
|
|
1097
1097
|
deleteUserWithRequest(userId, request) {
|
|
@@ -1343,7 +1343,7 @@ class FusionAuthClient {
|
|
|
1343
1343
|
* Generate a new RSA or EC key pair or an HMAC secret.
|
|
1344
1344
|
*
|
|
1345
1345
|
* @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
|
|
1346
|
+
* @param {KeyRequest} request The request object that contains all the information used to create the key.
|
|
1347
1347
|
* @returns {Promise<ClientResponse<KeyResponse>>}
|
|
1348
1348
|
*/
|
|
1349
1349
|
generateKey(keyId, request) {
|
|
@@ -1432,7 +1432,7 @@ class FusionAuthClient {
|
|
|
1432
1432
|
* Import an existing RSA or EC key pair or an HMAC secret.
|
|
1433
1433
|
*
|
|
1434
1434
|
* @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
|
|
1435
|
+
* @param {KeyRequest} request The request object that contains all the information used to create the key.
|
|
1436
1436
|
* @returns {Promise<ClientResponse<KeyResponse>>}
|
|
1437
1437
|
*/
|
|
1438
1438
|
importKey(keyId, request) {
|
|
@@ -1583,7 +1583,7 @@ class FusionAuthClient {
|
|
|
1583
1583
|
* The Logout API is intended to be used to remove the refresh token and access token cookies if they exist on the
|
|
1584
1584
|
* client and revoke the refresh token stored. This API takes the refresh token in the JSON body.
|
|
1585
1585
|
*
|
|
1586
|
-
* @param {LogoutRequest} request The request object that contains all
|
|
1586
|
+
* @param {LogoutRequest} request The request object that contains all the information used to logout the user.
|
|
1587
1587
|
* @returns {Promise<ClientResponse<void>>}
|
|
1588
1588
|
*/
|
|
1589
1589
|
logoutWithRequest(request) {
|
|
@@ -2891,6 +2891,17 @@ class FusionAuthClient {
|
|
|
2891
2891
|
.withMethod("GET")
|
|
2892
2892
|
.go();
|
|
2893
2893
|
}
|
|
2894
|
+
/**
|
|
2895
|
+
* Retrieves the FusionAuth Reactor metrics.
|
|
2896
|
+
*
|
|
2897
|
+
* @returns {Promise<ClientResponse<ReactorMetricsResponse>>}
|
|
2898
|
+
*/
|
|
2899
|
+
retrieveReactorMetrics() {
|
|
2900
|
+
return this.start()
|
|
2901
|
+
.withUri('/api/reactor/metrics')
|
|
2902
|
+
.withMethod("GET")
|
|
2903
|
+
.go();
|
|
2904
|
+
}
|
|
2894
2905
|
/**
|
|
2895
2906
|
* Retrieves the FusionAuth Reactor status.
|
|
2896
2907
|
*
|
|
@@ -3732,7 +3743,7 @@ class FusionAuthClient {
|
|
|
3732
3743
|
/**
|
|
3733
3744
|
* Send a Two Factor authentication code to assist in setting up Two Factor authentication or disabling.
|
|
3734
3745
|
*
|
|
3735
|
-
* @param {TwoFactorSendRequest} request The request object that contains all
|
|
3746
|
+
* @param {TwoFactorSendRequest} request The request object that contains all the information used to send the code.
|
|
3736
3747
|
* @returns {Promise<ClientResponse<void>>}
|
|
3737
3748
|
*
|
|
3738
3749
|
* @deprecated This method has been renamed to sendTwoFactorCodeForEnableDisable, use that method instead.
|
|
@@ -3747,7 +3758,7 @@ class FusionAuthClient {
|
|
|
3747
3758
|
/**
|
|
3748
3759
|
* Send a Two Factor authentication code to assist in setting up Two Factor authentication or disabling.
|
|
3749
3760
|
*
|
|
3750
|
-
* @param {TwoFactorSendRequest} request The request object that contains all
|
|
3761
|
+
* @param {TwoFactorSendRequest} request The request object that contains all the information used to send the code.
|
|
3751
3762
|
* @returns {Promise<ClientResponse<void>>}
|
|
3752
3763
|
*/
|
|
3753
3764
|
sendTwoFactorCodeForEnableDisable(request) {
|
|
@@ -3851,7 +3862,7 @@ class FusionAuthClient {
|
|
|
3851
3862
|
* Updates an API key by given id
|
|
3852
3863
|
*
|
|
3853
3864
|
* @param {UUID} apiKeyId The Id of the API key to update.
|
|
3854
|
-
* @param {APIKeyRequest} request The request object that contains all
|
|
3865
|
+
* @param {APIKeyRequest} request The request object that contains all the information used to create the API Key.
|
|
3855
3866
|
* @returns {Promise<ClientResponse<APIKeyResponse>>}
|
|
3856
3867
|
*/
|
|
3857
3868
|
updateAPIKey(apiKeyId, request) {
|
|
@@ -4273,7 +4284,7 @@ class FusionAuthClient {
|
|
|
4273
4284
|
* Creates or updates an Entity Grant. This is when a User/Entity is granted permissions to an Entity.
|
|
4274
4285
|
*
|
|
4275
4286
|
* @param {UUID} entityId The Id of the Entity that the User/Entity is being granted access to.
|
|
4276
|
-
* @param {EntityGrantRequest} request The request object that contains all
|
|
4287
|
+
* @param {EntityGrantRequest} request The request object that contains all the information used to create the Entity Grant.
|
|
4277
4288
|
* @returns {Promise<ClientResponse<void>>}
|
|
4278
4289
|
*/
|
|
4279
4290
|
upsertEntityGrant(entityId, request) {
|