@fusionauth/typescript-client 1.58.1 → 1.59.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 +271 -14
- package/build/src/FusionAuthClient.js +132 -13
- package/build/src/FusionAuthClient.js.map +1 -1
- package/dist/fusionauth-typescript-client.js +133 -14
- package/dist/fusionauth-typescript-client.min.js +1 -1
- package/dist/fusionauth-typescript-client.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -160,6 +160,13 @@ export declare class FusionAuthClient {
|
|
|
160
160
|
* @returns {Promise<ClientResponse<UserCommentResponse>>}
|
|
161
161
|
*/
|
|
162
162
|
commentOnUser(request: UserCommentRequest): Promise<ClientResponse<UserCommentResponse>>;
|
|
163
|
+
/**
|
|
164
|
+
* Completes verification of an identity using verification codes from the Verify Start API.
|
|
165
|
+
*
|
|
166
|
+
* @param {VerifyCompleteRequest} request The identity verify complete request that contains all the information used to verify the identity.
|
|
167
|
+
* @returns {Promise<ClientResponse<VerifyCompleteResponse>>}
|
|
168
|
+
*/
|
|
169
|
+
completeVerifyIdentity(request: VerifyCompleteRequest): Promise<ClientResponse<VerifyCompleteResponse>>;
|
|
163
170
|
/**
|
|
164
171
|
* Complete a WebAuthn authentication ceremony by validating the signature against the previously generated challenge without logging the user in
|
|
165
172
|
*
|
|
@@ -2001,6 +2008,14 @@ export declare class FusionAuthClient {
|
|
|
2001
2008
|
* @returns {Promise<ClientResponse<UserResponse>>}
|
|
2002
2009
|
*/
|
|
2003
2010
|
retrieveUserByLoginId(loginId: string): Promise<ClientResponse<UserResponse>>;
|
|
2011
|
+
/**
|
|
2012
|
+
* Retrieves the user for the loginId, using specific loginIdTypes.
|
|
2013
|
+
*
|
|
2014
|
+
* @param {string} loginId The email or username of the user.
|
|
2015
|
+
* @param {Array<String>} loginIdTypes the identity types that FusionAuth will compare the loginId to.
|
|
2016
|
+
* @returns {Promise<ClientResponse<UserResponse>>}
|
|
2017
|
+
*/
|
|
2018
|
+
retrieveUserByLoginIdWithLoginIdTypes(loginId: string, loginIdTypes: Array<String>): Promise<ClientResponse<UserResponse>>;
|
|
2004
2019
|
/**
|
|
2005
2020
|
* Retrieves the user for the given username.
|
|
2006
2021
|
*
|
|
@@ -2105,6 +2120,18 @@ export declare class FusionAuthClient {
|
|
|
2105
2120
|
* @returns {Promise<ClientResponse<LoginReportResponse>>}
|
|
2106
2121
|
*/
|
|
2107
2122
|
retrieveUserLoginReportByLoginId(applicationId: UUID, loginId: string, start: number, end: number): Promise<ClientResponse<LoginReportResponse>>;
|
|
2123
|
+
/**
|
|
2124
|
+
* Retrieves the login report between the two instants for a particular user by login Id, using specific loginIdTypes. If you specify an application id, it will only return the
|
|
2125
|
+
* login counts for that application.
|
|
2126
|
+
*
|
|
2127
|
+
* @param {UUID} applicationId (Optional) The application id.
|
|
2128
|
+
* @param {string} loginId The userId id.
|
|
2129
|
+
* @param {number} start The start instant as UTC milliseconds since Epoch.
|
|
2130
|
+
* @param {number} end The end instant as UTC milliseconds since Epoch.
|
|
2131
|
+
* @param {Array<String>} loginIdTypes the identity types that FusionAuth will compare the loginId to.
|
|
2132
|
+
* @returns {Promise<ClientResponse<LoginReportResponse>>}
|
|
2133
|
+
*/
|
|
2134
|
+
retrieveUserLoginReportByLoginIdAndLoginIdTypes(applicationId: UUID, loginId: string, start: number, end: number, loginIdTypes: Array<String>): Promise<ClientResponse<LoginReportResponse>>;
|
|
2108
2135
|
/**
|
|
2109
2136
|
* Retrieves the last number of login records for a user.
|
|
2110
2137
|
*
|
|
@@ -2488,6 +2515,13 @@ export declare class FusionAuthClient {
|
|
|
2488
2515
|
* @returns {Promise<ClientResponse<void>>}
|
|
2489
2516
|
*/
|
|
2490
2517
|
sendTwoFactorCodeForLoginUsingMethod(twoFactorId: string, request: TwoFactorSendRequest): Promise<ClientResponse<void>>;
|
|
2518
|
+
/**
|
|
2519
|
+
* Send a verification code using the appropriate transport for the identity type being verified.
|
|
2520
|
+
*
|
|
2521
|
+
* @param {VerifySendRequest} request The identity verify send request that contains all the information used send the code.
|
|
2522
|
+
* @returns {Promise<ClientResponse<void>>}
|
|
2523
|
+
*/
|
|
2524
|
+
sendVerifyIdentity(request: VerifySendRequest): Promise<ClientResponse<void>>;
|
|
2491
2525
|
/**
|
|
2492
2526
|
* Begins a login request for a 3rd party login that requires user interaction such as HYPR.
|
|
2493
2527
|
*
|
|
@@ -2516,6 +2550,14 @@ export declare class FusionAuthClient {
|
|
|
2516
2550
|
* @returns {Promise<ClientResponse<TwoFactorStartResponse>>}
|
|
2517
2551
|
*/
|
|
2518
2552
|
startTwoFactorLogin(request: TwoFactorStartRequest): Promise<ClientResponse<TwoFactorStartResponse>>;
|
|
2553
|
+
/**
|
|
2554
|
+
* Start a verification of an identity by generating a code. This code can be sent to the User using the Verify Send API
|
|
2555
|
+
* Verification Code API or using a mechanism outside of FusionAuth. The verification is completed by using the Verify Complete API with this code.
|
|
2556
|
+
*
|
|
2557
|
+
* @param {VerifyStartRequest} request The identity verify start request that contains all the information used to begin the request.
|
|
2558
|
+
* @returns {Promise<ClientResponse<VerifyStartResponse>>}
|
|
2559
|
+
*/
|
|
2560
|
+
startVerifyIdentity(request: VerifyStartRequest): Promise<ClientResponse<VerifyStartResponse>>;
|
|
2519
2561
|
/**
|
|
2520
2562
|
* Start a WebAuthn authentication ceremony by generating a new challenge for the user
|
|
2521
2563
|
*
|
|
@@ -2857,6 +2899,13 @@ export declare class FusionAuthClient {
|
|
|
2857
2899
|
* @returns {Promise<ClientResponse<void>>}
|
|
2858
2900
|
*/
|
|
2859
2901
|
verifyEmailAddressByUserId(request: VerifyEmailRequest): Promise<ClientResponse<void>>;
|
|
2902
|
+
/**
|
|
2903
|
+
* Administratively verify a user identity.
|
|
2904
|
+
*
|
|
2905
|
+
* @param {VerifyRequest} request The identity verify request that contains information to verify the identity.
|
|
2906
|
+
* @returns {Promise<ClientResponse<void>>}
|
|
2907
|
+
*/
|
|
2908
|
+
verifyIdentity(request: VerifyRequest): Promise<ClientResponse<void>>;
|
|
2860
2909
|
/**
|
|
2861
2910
|
* Confirms an application registration. The Id given is usually from an email sent to the user.
|
|
2862
2911
|
*
|
|
@@ -3041,6 +3090,7 @@ export interface Application {
|
|
|
3041
3090
|
name?: string;
|
|
3042
3091
|
oauthConfiguration?: OAuth2Configuration;
|
|
3043
3092
|
passwordlessConfiguration?: PasswordlessConfiguration;
|
|
3093
|
+
phoneConfiguration?: ApplicationPhoneConfiguration;
|
|
3044
3094
|
registrationConfiguration?: RegistrationConfiguration;
|
|
3045
3095
|
registrationDeletePolicy?: ApplicationRegistrationDeletePolicy;
|
|
3046
3096
|
roles?: Array<ApplicationRole>;
|
|
@@ -3103,6 +3153,7 @@ export interface RegistrationConfiguration extends Enableable {
|
|
|
3103
3153
|
}
|
|
3104
3154
|
export declare enum LoginIdType {
|
|
3105
3155
|
email = "email",
|
|
3156
|
+
phoneNumber = "phoneNumber",
|
|
3106
3157
|
username = "username"
|
|
3107
3158
|
}
|
|
3108
3159
|
export declare enum RegistrationType {
|
|
@@ -3238,6 +3289,25 @@ export interface ApplicationOAuthScopeRequest {
|
|
|
3238
3289
|
export interface ApplicationOAuthScopeResponse {
|
|
3239
3290
|
scope?: ApplicationOAuthScope;
|
|
3240
3291
|
}
|
|
3292
|
+
/**
|
|
3293
|
+
* Hold application phone configuration for template overrides.
|
|
3294
|
+
*/
|
|
3295
|
+
export interface ApplicationPhoneConfiguration {
|
|
3296
|
+
forgotPasswordTemplateId?: UUID;
|
|
3297
|
+
identityUpdateTemplateId?: UUID;
|
|
3298
|
+
loginIdInUseOnCreateTemplateId?: UUID;
|
|
3299
|
+
loginIdInUseOnUpdateTemplateId?: UUID;
|
|
3300
|
+
loginNewDeviceTemplateId?: UUID;
|
|
3301
|
+
loginSuspiciousTemplateId?: UUID;
|
|
3302
|
+
passwordlessTemplateId?: UUID;
|
|
3303
|
+
passwordResetSuccessTemplateId?: UUID;
|
|
3304
|
+
passwordUpdateTemplateId?: UUID;
|
|
3305
|
+
setPasswordTemplateId?: UUID;
|
|
3306
|
+
twoFactorMethodAddTemplateId?: UUID;
|
|
3307
|
+
twoFactorMethodRemoveTemplateId?: UUID;
|
|
3308
|
+
verificationCompleteTemplateId?: UUID;
|
|
3309
|
+
verificationTemplateId?: UUID;
|
|
3310
|
+
}
|
|
3241
3311
|
/**
|
|
3242
3312
|
* A Application-level policy for deleting Users.
|
|
3243
3313
|
*
|
|
@@ -3600,6 +3670,10 @@ export interface BaseSearchCriteria {
|
|
|
3600
3670
|
export interface BaseUserEvent extends BaseEvent {
|
|
3601
3671
|
user?: User;
|
|
3602
3672
|
}
|
|
3673
|
+
export interface IdentityInfo {
|
|
3674
|
+
type?: string;
|
|
3675
|
+
value?: string;
|
|
3676
|
+
}
|
|
3603
3677
|
/**
|
|
3604
3678
|
* @author Daniel DeGroff
|
|
3605
3679
|
*/
|
|
@@ -3672,6 +3746,7 @@ export interface ChangePasswordRequest extends BaseEventRequest {
|
|
|
3672
3746
|
changePasswordId?: string;
|
|
3673
3747
|
currentPassword?: string;
|
|
3674
3748
|
loginId?: string;
|
|
3749
|
+
loginIdTypes?: Array<string>;
|
|
3675
3750
|
password?: string;
|
|
3676
3751
|
refreshToken?: string;
|
|
3677
3752
|
trustChallenge?: string;
|
|
@@ -3956,6 +4031,7 @@ export interface DisplayableRawLogin extends RawLogin {
|
|
|
3956
4031
|
applicationName?: string;
|
|
3957
4032
|
location?: Location;
|
|
3958
4033
|
loginId?: string;
|
|
4034
|
+
loginIdType?: IdentityType;
|
|
3959
4035
|
}
|
|
3960
4036
|
/**
|
|
3961
4037
|
* Interface for all identity providers that can be domain based.
|
|
@@ -4498,7 +4574,9 @@ export declare enum EventType {
|
|
|
4498
4574
|
UserTwoFactorMethodRemove = "user.two-factor.method.remove",
|
|
4499
4575
|
UserUpdate = "user.update",
|
|
4500
4576
|
UserUpdateComplete = "user.update.complete",
|
|
4501
|
-
Test = "test"
|
|
4577
|
+
Test = "test",
|
|
4578
|
+
UserIdentityVerified = "user.identity.verified",
|
|
4579
|
+
UserIdentityUpdate = "user.identity.update"
|
|
4502
4580
|
}
|
|
4503
4581
|
/**
|
|
4504
4582
|
* An expandable API request.
|
|
@@ -4543,8 +4621,12 @@ export interface ExternalIdentifierConfiguration {
|
|
|
4543
4621
|
loginIntentTimeToLiveInSeconds?: number;
|
|
4544
4622
|
oneTimePasswordTimeToLiveInSeconds?: number;
|
|
4545
4623
|
passwordlessLoginGenerator?: SecureGeneratorConfiguration;
|
|
4624
|
+
passwordlessLoginOneTimeCodeGenerator?: SecureGeneratorConfiguration;
|
|
4546
4625
|
passwordlessLoginTimeToLiveInSeconds?: number;
|
|
4547
4626
|
pendingAccountLinkTimeToLiveInSeconds?: number;
|
|
4627
|
+
phoneVerificationIdGenerator?: SecureGeneratorConfiguration;
|
|
4628
|
+
phoneVerificationIdTimeToLiveInSeconds?: number;
|
|
4629
|
+
phoneVerificationOneTimeCodeGenerator?: SecureGeneratorConfiguration;
|
|
4548
4630
|
registrationVerificationIdGenerator?: SecureGeneratorConfiguration;
|
|
4549
4631
|
registrationVerificationIdTimeToLiveInSeconds?: number;
|
|
4550
4632
|
registrationVerificationOneTimeCodeGenerator?: SecureGeneratorConfiguration;
|
|
@@ -4702,7 +4784,9 @@ export interface ForgotPasswordRequest extends BaseEventRequest {
|
|
|
4702
4784
|
changePasswordId?: string;
|
|
4703
4785
|
email?: string;
|
|
4704
4786
|
loginId?: string;
|
|
4787
|
+
loginIdTypes?: Array<string>;
|
|
4705
4788
|
sendForgotPasswordEmail?: boolean;
|
|
4789
|
+
sendForgotPasswordMessage?: boolean;
|
|
4706
4790
|
state?: Record<string, any>;
|
|
4707
4791
|
username?: string;
|
|
4708
4792
|
}
|
|
@@ -4747,6 +4831,7 @@ export declare enum FormDataType {
|
|
|
4747
4831
|
date = "date",
|
|
4748
4832
|
email = "email",
|
|
4749
4833
|
number = "number",
|
|
4834
|
+
phoneNumber = "phoneNumber",
|
|
4750
4835
|
string = "string"
|
|
4751
4836
|
}
|
|
4752
4837
|
/**
|
|
@@ -5343,6 +5428,7 @@ export interface IdentityProviderStartLoginRequest extends BaseLoginRequest {
|
|
|
5343
5428
|
data?: Record<string, string>;
|
|
5344
5429
|
identityProviderId?: UUID;
|
|
5345
5430
|
loginId?: string;
|
|
5431
|
+
loginIdTypes?: Array<string>;
|
|
5346
5432
|
state?: Record<string, any>;
|
|
5347
5433
|
}
|
|
5348
5434
|
/**
|
|
@@ -5379,6 +5465,28 @@ export declare enum IdentityProviderType {
|
|
|
5379
5465
|
Twitter = "Twitter",
|
|
5380
5466
|
Xbox = "Xbox"
|
|
5381
5467
|
}
|
|
5468
|
+
/**
|
|
5469
|
+
* Model identity types provided by FusionAuth.
|
|
5470
|
+
*/
|
|
5471
|
+
export interface IdentityType {
|
|
5472
|
+
name?: string;
|
|
5473
|
+
}
|
|
5474
|
+
/**
|
|
5475
|
+
* Models the reason that {@link UserIdentity#verified} was set to true or false.
|
|
5476
|
+
*
|
|
5477
|
+
* @author Brady Wied
|
|
5478
|
+
*/
|
|
5479
|
+
export declare enum IdentityVerifiedReason {
|
|
5480
|
+
Skipped = "Skipped",
|
|
5481
|
+
Trusted = "Trusted",
|
|
5482
|
+
Unverifiable = "Unverifiable",
|
|
5483
|
+
Implicit = "Implicit",
|
|
5484
|
+
Pending = "Pending",
|
|
5485
|
+
Completed = "Completed",
|
|
5486
|
+
Disabled = "Disabled",
|
|
5487
|
+
Administrative = "Administrative",
|
|
5488
|
+
Import = "Import"
|
|
5489
|
+
}
|
|
5382
5490
|
/**
|
|
5383
5491
|
* Import request.
|
|
5384
5492
|
*
|
|
@@ -5960,6 +6068,7 @@ export interface LoginReportResponse {
|
|
|
5960
6068
|
*/
|
|
5961
6069
|
export interface LoginRequest extends BaseLoginRequest {
|
|
5962
6070
|
loginId?: string;
|
|
6071
|
+
loginIdTypes?: Array<string>;
|
|
5963
6072
|
oneTimePassword?: string;
|
|
5964
6073
|
password?: string;
|
|
5965
6074
|
twoFactorTrustId?: string;
|
|
@@ -5973,6 +6082,7 @@ export interface LoginResponse {
|
|
|
5973
6082
|
changePasswordReason?: ChangePasswordReason;
|
|
5974
6083
|
configurableMethods?: Array<string>;
|
|
5975
6084
|
emailVerificationId?: string;
|
|
6085
|
+
identityVerificationId?: string;
|
|
5976
6086
|
methods?: Array<TwoFactorMethod>;
|
|
5977
6087
|
pendingIdPLinkId?: string;
|
|
5978
6088
|
refreshToken?: string;
|
|
@@ -6245,6 +6355,7 @@ export declare enum OAuthErrorReason {
|
|
|
6245
6355
|
refresh_token_not_found = "refresh_token_not_found",
|
|
6246
6356
|
refresh_token_type_not_supported = "refresh_token_type_not_supported",
|
|
6247
6357
|
invalid_client_id = "invalid_client_id",
|
|
6358
|
+
invalid_expires_in = "invalid_expires_in",
|
|
6248
6359
|
invalid_user_credentials = "invalid_user_credentials",
|
|
6249
6360
|
invalid_grant_type = "invalid_grant_type",
|
|
6250
6361
|
invalid_origin = "invalid_origin",
|
|
@@ -6467,6 +6578,7 @@ export interface PasswordlessIdentityProvider {
|
|
|
6467
6578
|
*/
|
|
6468
6579
|
export interface PasswordlessLoginRequest extends BaseLoginRequest {
|
|
6469
6580
|
code?: string;
|
|
6581
|
+
oneTimeCode?: string;
|
|
6470
6582
|
twoFactorTrustId?: string;
|
|
6471
6583
|
}
|
|
6472
6584
|
/**
|
|
@@ -6484,6 +6596,8 @@ export interface PasswordlessSendRequest {
|
|
|
6484
6596
|
export interface PasswordlessStartRequest {
|
|
6485
6597
|
applicationId?: UUID;
|
|
6486
6598
|
loginId?: string;
|
|
6599
|
+
loginIdTypes?: Array<string>;
|
|
6600
|
+
loginStrategy?: PasswordlessStrategy;
|
|
6487
6601
|
state?: Record<string, any>;
|
|
6488
6602
|
}
|
|
6489
6603
|
/**
|
|
@@ -6491,6 +6605,14 @@ export interface PasswordlessStartRequest {
|
|
|
6491
6605
|
*/
|
|
6492
6606
|
export interface PasswordlessStartResponse {
|
|
6493
6607
|
code?: string;
|
|
6608
|
+
oneTimeCode?: string;
|
|
6609
|
+
}
|
|
6610
|
+
/**
|
|
6611
|
+
* @author Daniel DeGroff
|
|
6612
|
+
*/
|
|
6613
|
+
export declare enum PasswordlessStrategy {
|
|
6614
|
+
ClickableLink = "ClickableLink",
|
|
6615
|
+
FormField = "FormField"
|
|
6494
6616
|
}
|
|
6495
6617
|
/**
|
|
6496
6618
|
* @author Daniel DeGroff
|
|
@@ -6513,6 +6635,15 @@ export interface PendingIdPLink {
|
|
|
6513
6635
|
export interface PendingResponse {
|
|
6514
6636
|
users?: Array<User>;
|
|
6515
6637
|
}
|
|
6638
|
+
/**
|
|
6639
|
+
* Configuration for unverified phone number identities.
|
|
6640
|
+
*
|
|
6641
|
+
* @author Spencer Witt
|
|
6642
|
+
*/
|
|
6643
|
+
export interface PhoneUnverifiedOptions {
|
|
6644
|
+
allowPhoneNumberChangeWhenGated?: boolean;
|
|
6645
|
+
behavior?: UnverifiedBehavior;
|
|
6646
|
+
}
|
|
6516
6647
|
/**
|
|
6517
6648
|
* @author Michael Sleevi
|
|
6518
6649
|
*/
|
|
@@ -6654,17 +6785,6 @@ export interface RateLimitedRequestConfiguration extends Enableable {
|
|
|
6654
6785
|
limit?: number;
|
|
6655
6786
|
timePeriodInSeconds?: number;
|
|
6656
6787
|
}
|
|
6657
|
-
/**
|
|
6658
|
-
* @author Daniel DeGroff
|
|
6659
|
-
*/
|
|
6660
|
-
export declare enum RateLimitedRequestType {
|
|
6661
|
-
FailedLogin = "FailedLogin",
|
|
6662
|
-
ForgotPassword = "ForgotPassword",
|
|
6663
|
-
SendEmailVerification = "SendEmailVerification",
|
|
6664
|
-
SendPasswordless = "SendPasswordless",
|
|
6665
|
-
SendRegistrationVerification = "SendRegistrationVerification",
|
|
6666
|
-
SendTwoFactor = "SendTwoFactor"
|
|
6667
|
-
}
|
|
6668
6788
|
/**
|
|
6669
6789
|
* Raw login information for each time a user logs into an application.
|
|
6670
6790
|
*
|
|
@@ -6753,6 +6873,7 @@ export interface RecentLoginResponse {
|
|
|
6753
6873
|
*/
|
|
6754
6874
|
export interface RefreshRequest extends BaseEventRequest {
|
|
6755
6875
|
refreshToken?: string;
|
|
6876
|
+
timeToLiveInSeconds?: number;
|
|
6756
6877
|
token?: string;
|
|
6757
6878
|
}
|
|
6758
6879
|
/**
|
|
@@ -6874,6 +6995,7 @@ export interface RegistrationRequest extends BaseEventRequest {
|
|
|
6874
6995
|
generateAuthenticationToken?: boolean;
|
|
6875
6996
|
registration?: UserRegistration;
|
|
6876
6997
|
sendSetPasswordEmail?: boolean;
|
|
6998
|
+
sendSetPasswordIdentityType?: SendSetPasswordIdentityType;
|
|
6877
6999
|
skipRegistrationVerification?: boolean;
|
|
6878
7000
|
skipVerification?: boolean;
|
|
6879
7001
|
user?: User;
|
|
@@ -7107,6 +7229,7 @@ export interface SecureIdentity {
|
|
|
7107
7229
|
encryptionScheme?: string;
|
|
7108
7230
|
factor?: number;
|
|
7109
7231
|
id?: UUID;
|
|
7232
|
+
identities?: Array<UserIdentity>;
|
|
7110
7233
|
lastLoginInstant?: number;
|
|
7111
7234
|
password?: string;
|
|
7112
7235
|
passwordChangeReason?: ChangePasswordReason;
|
|
@@ -7148,6 +7271,15 @@ export interface EmailTemplateErrors {
|
|
|
7148
7271
|
parseErrors?: Record<string, string>;
|
|
7149
7272
|
renderErrors?: Record<string, string>;
|
|
7150
7273
|
}
|
|
7274
|
+
/**
|
|
7275
|
+
* Used to indicate which identity type a password "request" might go to. It could be
|
|
7276
|
+
* used for send set passwords or send password resets.
|
|
7277
|
+
*/
|
|
7278
|
+
export declare enum SendSetPasswordIdentityType {
|
|
7279
|
+
email = "email",
|
|
7280
|
+
phone = "phone",
|
|
7281
|
+
doNotSend = "doNotSend"
|
|
7282
|
+
}
|
|
7151
7283
|
/**
|
|
7152
7284
|
* Theme object for values used in the css variables for simple themes.
|
|
7153
7285
|
*
|
|
@@ -7369,6 +7501,7 @@ export interface Tenant {
|
|
|
7369
7501
|
oauthConfiguration?: TenantOAuth2Configuration;
|
|
7370
7502
|
passwordEncryptionConfiguration?: PasswordEncryptionConfiguration;
|
|
7371
7503
|
passwordValidationRules?: PasswordValidationRules;
|
|
7504
|
+
phoneConfiguration?: TenantPhoneConfiguration;
|
|
7372
7505
|
rateLimitConfiguration?: TenantRateLimitConfiguration;
|
|
7373
7506
|
registrationConfiguration?: TenantRegistrationConfiguration;
|
|
7374
7507
|
scimServerConfiguration?: TenantSCIMServerConfiguration;
|
|
@@ -7450,6 +7583,32 @@ export interface MultiFactorSMSMethod extends Enableable {
|
|
|
7450
7583
|
messengerId?: UUID;
|
|
7451
7584
|
templateId?: UUID;
|
|
7452
7585
|
}
|
|
7586
|
+
/**
|
|
7587
|
+
* Hold tenant phone configuration for passwordless and verification cases.
|
|
7588
|
+
*
|
|
7589
|
+
* @author Brady Wied
|
|
7590
|
+
*/
|
|
7591
|
+
export interface TenantPhoneConfiguration {
|
|
7592
|
+
forgotPasswordTemplateId?: UUID;
|
|
7593
|
+
identityUpdateTemplateId?: UUID;
|
|
7594
|
+
implicitPhoneVerificationAllowed?: boolean;
|
|
7595
|
+
loginIdInUseOnCreateTemplateId?: UUID;
|
|
7596
|
+
loginIdInUseOnUpdateTemplateId?: UUID;
|
|
7597
|
+
loginNewDeviceTemplateId?: UUID;
|
|
7598
|
+
loginSuspiciousTemplateId?: UUID;
|
|
7599
|
+
messengerId?: UUID;
|
|
7600
|
+
passwordlessTemplateId?: UUID;
|
|
7601
|
+
passwordResetSuccessTemplateId?: UUID;
|
|
7602
|
+
passwordUpdateTemplateId?: UUID;
|
|
7603
|
+
setPasswordTemplateId?: UUID;
|
|
7604
|
+
twoFactorMethodAddTemplateId?: UUID;
|
|
7605
|
+
twoFactorMethodRemoveTemplateId?: UUID;
|
|
7606
|
+
unverified?: PhoneUnverifiedOptions;
|
|
7607
|
+
verificationCompleteTemplateId?: UUID;
|
|
7608
|
+
verificationStrategy?: VerificationStrategy;
|
|
7609
|
+
verificationTemplateId?: UUID;
|
|
7610
|
+
verifyPhoneNumber?: boolean;
|
|
7611
|
+
}
|
|
7453
7612
|
/**
|
|
7454
7613
|
* @author Daniel DeGroff
|
|
7455
7614
|
*/
|
|
@@ -7458,6 +7617,8 @@ export interface TenantRateLimitConfiguration {
|
|
|
7458
7617
|
forgotPassword?: RateLimitedRequestConfiguration;
|
|
7459
7618
|
sendEmailVerification?: RateLimitedRequestConfiguration;
|
|
7460
7619
|
sendPasswordless?: RateLimitedRequestConfiguration;
|
|
7620
|
+
sendPasswordlessPhone?: RateLimitedRequestConfiguration;
|
|
7621
|
+
sendPhoneVerification?: RateLimitedRequestConfiguration;
|
|
7461
7622
|
sendRegistrationVerification?: RateLimitedRequestConfiguration;
|
|
7462
7623
|
sendTwoFactor?: RateLimitedRequestConfiguration;
|
|
7463
7624
|
}
|
|
@@ -7640,6 +7801,10 @@ export interface Templates {
|
|
|
7640
7801
|
passwordComplete?: string;
|
|
7641
7802
|
passwordForgot?: string;
|
|
7642
7803
|
passwordSent?: string;
|
|
7804
|
+
phoneComplete?: string;
|
|
7805
|
+
phoneSent?: string;
|
|
7806
|
+
phoneVerificationRequired?: string;
|
|
7807
|
+
phoneVerify?: string;
|
|
7643
7808
|
registrationComplete?: string;
|
|
7644
7809
|
registrationSend?: string;
|
|
7645
7810
|
registrationSent?: string;
|
|
@@ -7878,6 +8043,7 @@ export interface TwoFactorStartRequest {
|
|
|
7878
8043
|
applicationId?: UUID;
|
|
7879
8044
|
code?: string;
|
|
7880
8045
|
loginId?: string;
|
|
8046
|
+
loginIdTypes?: Array<string>;
|
|
7881
8047
|
state?: Record<string, any>;
|
|
7882
8048
|
trustChallenge?: string;
|
|
7883
8049
|
userId?: UUID;
|
|
@@ -7934,7 +8100,7 @@ export interface UsageDataConfiguration extends Enableable {
|
|
|
7934
8100
|
numberOfDaysToRetain?: number;
|
|
7935
8101
|
}
|
|
7936
8102
|
/**
|
|
7937
|
-
* The global view of a User. This object contains all global information about the user including birthdate, registration information
|
|
8103
|
+
* The public, global view of a User. This object contains all global information about the user including birthdate, registration information
|
|
7938
8104
|
* preferred languages, global attributes, etc.
|
|
7939
8105
|
*
|
|
7940
8106
|
* @author Seth Musselman
|
|
@@ -7956,6 +8122,7 @@ export interface User extends SecureIdentity {
|
|
|
7956
8122
|
middleName?: string;
|
|
7957
8123
|
mobilePhone?: string;
|
|
7958
8124
|
parentEmail?: string;
|
|
8125
|
+
phoneNumber?: string;
|
|
7959
8126
|
preferredLanguages?: Array<string>;
|
|
7960
8127
|
registrations?: Array<UserRegistration>;
|
|
7961
8128
|
tenantId?: UUID;
|
|
@@ -8290,6 +8457,22 @@ export interface UserEmailUpdateEvent extends BaseUserEvent {
|
|
|
8290
8457
|
*/
|
|
8291
8458
|
export interface UserEmailVerifiedEvent extends BaseUserEvent {
|
|
8292
8459
|
}
|
|
8460
|
+
/**
|
|
8461
|
+
* @author Daniel DeGroff
|
|
8462
|
+
*/
|
|
8463
|
+
export interface UserIdentity {
|
|
8464
|
+
displayValue?: string;
|
|
8465
|
+
insertInstant?: number;
|
|
8466
|
+
lastLoginInstant?: number;
|
|
8467
|
+
lastUpdateInstant?: number;
|
|
8468
|
+
moderationStatus?: ContentStatus;
|
|
8469
|
+
primary?: boolean;
|
|
8470
|
+
type?: IdentityType;
|
|
8471
|
+
value?: string;
|
|
8472
|
+
verified?: boolean;
|
|
8473
|
+
verifiedInstant?: number;
|
|
8474
|
+
verifiedReason?: IdentityVerifiedReason;
|
|
8475
|
+
}
|
|
8293
8476
|
/**
|
|
8294
8477
|
* Models the User Identity Provider Link Event.
|
|
8295
8478
|
*
|
|
@@ -8306,6 +8489,25 @@ export interface UserIdentityProviderLinkEvent extends BaseUserEvent {
|
|
|
8306
8489
|
export interface UserIdentityProviderUnlinkEvent extends BaseUserEvent {
|
|
8307
8490
|
identityProviderLink?: IdentityProviderLink;
|
|
8308
8491
|
}
|
|
8492
|
+
/**
|
|
8493
|
+
* Models the user identity update event
|
|
8494
|
+
*
|
|
8495
|
+
* @author Brent Halsey
|
|
8496
|
+
*/
|
|
8497
|
+
export interface UserIdentityUpdateEvent extends BaseUserEvent {
|
|
8498
|
+
loginIdType?: string;
|
|
8499
|
+
newLoginId?: string;
|
|
8500
|
+
previousLoginId?: string;
|
|
8501
|
+
}
|
|
8502
|
+
/**
|
|
8503
|
+
* Models the user identity verified event
|
|
8504
|
+
*
|
|
8505
|
+
* @author Brady Wied
|
|
8506
|
+
*/
|
|
8507
|
+
export interface UserIdentityVerifiedEvent extends BaseUserEvent {
|
|
8508
|
+
loginId?: string;
|
|
8509
|
+
loginIdType?: string;
|
|
8510
|
+
}
|
|
8309
8511
|
/**
|
|
8310
8512
|
* Models the User Login Failed Event.
|
|
8311
8513
|
*
|
|
@@ -8333,12 +8535,14 @@ export interface UserLoginFailedReason {
|
|
|
8333
8535
|
export interface UserLoginFailedReasonCode {
|
|
8334
8536
|
}
|
|
8335
8537
|
/**
|
|
8336
|
-
* Models an event where a user is being created with an "in-use" login Id (email or
|
|
8538
|
+
* Models an event where a user is being created with an "in-use" login Id (email, username, or other identities).
|
|
8337
8539
|
*
|
|
8338
8540
|
* @author Daniel DeGroff
|
|
8339
8541
|
*/
|
|
8340
8542
|
export interface UserLoginIdDuplicateOnCreateEvent extends BaseUserEvent {
|
|
8341
8543
|
duplicateEmail?: string;
|
|
8544
|
+
duplicateIdentities?: Array<IdentityInfo>;
|
|
8545
|
+
duplicatePhoneNumber?: string;
|
|
8342
8546
|
duplicateUsername?: string;
|
|
8343
8547
|
existing?: User;
|
|
8344
8548
|
}
|
|
@@ -8524,8 +8728,10 @@ export interface UserRequest extends BaseEventRequest {
|
|
|
8524
8728
|
currentPassword?: string;
|
|
8525
8729
|
disableDomainBlock?: boolean;
|
|
8526
8730
|
sendSetPasswordEmail?: boolean;
|
|
8731
|
+
sendSetPasswordIdentityType?: SendSetPasswordIdentityType;
|
|
8527
8732
|
skipVerification?: boolean;
|
|
8528
8733
|
user?: User;
|
|
8734
|
+
verificationIds?: Array<string>;
|
|
8529
8735
|
}
|
|
8530
8736
|
/**
|
|
8531
8737
|
* User API response object.
|
|
@@ -8540,6 +8746,13 @@ export interface UserResponse {
|
|
|
8540
8746
|
token?: string;
|
|
8541
8747
|
tokenExpirationInstant?: number;
|
|
8542
8748
|
user?: User;
|
|
8749
|
+
verificationIds?: Array<VerificationId>;
|
|
8750
|
+
}
|
|
8751
|
+
export interface VerificationId {
|
|
8752
|
+
id?: string;
|
|
8753
|
+
oneTimeCode?: string;
|
|
8754
|
+
type?: IdentityType;
|
|
8755
|
+
value?: string;
|
|
8543
8756
|
}
|
|
8544
8757
|
/**
|
|
8545
8758
|
* This class is the user query. It provides a build pattern as well as public fields for use on forms and in actions.
|
|
@@ -8625,6 +8838,19 @@ export declare enum VerificationStrategy {
|
|
|
8625
8838
|
ClickableLink = "ClickableLink",
|
|
8626
8839
|
FormField = "FormField"
|
|
8627
8840
|
}
|
|
8841
|
+
/**
|
|
8842
|
+
* Verify Complete API request object.
|
|
8843
|
+
*/
|
|
8844
|
+
export interface VerifyCompleteRequest extends BaseEventRequest {
|
|
8845
|
+
oneTimeCode?: string;
|
|
8846
|
+
verificationId?: string;
|
|
8847
|
+
}
|
|
8848
|
+
/**
|
|
8849
|
+
* Verify Complete API response object.
|
|
8850
|
+
*/
|
|
8851
|
+
export interface VerifyCompleteResponse {
|
|
8852
|
+
state?: Record<string, any>;
|
|
8853
|
+
}
|
|
8628
8854
|
/**
|
|
8629
8855
|
* @author Daniel DeGroff
|
|
8630
8856
|
*/
|
|
@@ -8654,6 +8880,36 @@ export interface VerifyRegistrationResponse {
|
|
|
8654
8880
|
oneTimeCode?: string;
|
|
8655
8881
|
verificationId?: string;
|
|
8656
8882
|
}
|
|
8883
|
+
/**
|
|
8884
|
+
* Identity verify request. Used to administratively verify an identity.
|
|
8885
|
+
*/
|
|
8886
|
+
export interface VerifyRequest extends BaseEventRequest {
|
|
8887
|
+
loginId?: string;
|
|
8888
|
+
loginIdType?: string;
|
|
8889
|
+
}
|
|
8890
|
+
/**
|
|
8891
|
+
* Verify Send API request object.
|
|
8892
|
+
*/
|
|
8893
|
+
export interface VerifySendRequest {
|
|
8894
|
+
verificationId?: string;
|
|
8895
|
+
}
|
|
8896
|
+
/**
|
|
8897
|
+
* @author Brady Wied
|
|
8898
|
+
*/
|
|
8899
|
+
export interface VerifyStartRequest {
|
|
8900
|
+
applicationId?: UUID;
|
|
8901
|
+
loginId?: string;
|
|
8902
|
+
loginIdType?: string;
|
|
8903
|
+
state?: Record<string, any>;
|
|
8904
|
+
verificationStrategy?: VerificationStrategy;
|
|
8905
|
+
}
|
|
8906
|
+
/**
|
|
8907
|
+
* @author Brady Wied
|
|
8908
|
+
*/
|
|
8909
|
+
export interface VerifyStartResponse {
|
|
8910
|
+
oneTimeCode?: string;
|
|
8911
|
+
verificationId?: string;
|
|
8912
|
+
}
|
|
8657
8913
|
/**
|
|
8658
8914
|
* @author Daniel DeGroff
|
|
8659
8915
|
*/
|
|
@@ -8831,6 +9087,7 @@ export interface WebAuthnStartRequest {
|
|
|
8831
9087
|
applicationId?: UUID;
|
|
8832
9088
|
credentialId?: UUID;
|
|
8833
9089
|
loginId?: string;
|
|
9090
|
+
loginIdTypes?: Array<string>;
|
|
8834
9091
|
state?: Record<string, any>;
|
|
8835
9092
|
userId?: UUID;
|
|
8836
9093
|
workflow?: WebAuthnWorkflow;
|