Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/FusionAuthClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7695,6 +7695,14 @@ export enum EventType {
UserIdentityUpdate = "user.identity.update"
}

/**
* Represent the various states/expectations of a user in the context of starting verification
*/
export enum ExistingUserStrategy {
mustExist = "mustExist",
mustNotExist = "mustNotExist"
}

/**
* An expandable API request.
*
Expand Down Expand Up @@ -8052,6 +8060,16 @@ export interface FormResponse {
*/
export interface FormStep {
fields?: Array<UUID>;
type?: FormStepType;
}

/**
* Denotes the type of form step. This is used to configure different behavior on form steps in the registration flow.
*/
export enum FormStepType {
collectData = "collectData",
verifyEmail = "verifyEmail",
verifyPhoneNumber = "verifyPhoneNumber"
}

/**
Expand Down Expand Up @@ -10398,6 +10416,7 @@ export interface RegistrationRequest extends BaseEventRequest {
skipRegistrationVerification?: boolean;
skipVerification?: boolean;
user?: User;
verificationIds?: Array<string>;
}

/**
Expand All @@ -10414,6 +10433,7 @@ export interface RegistrationResponse {
token?: string;
tokenExpirationInstant?: number;
user?: User;
verificationIds?: Array<VerificationId>;
}

/**
Expand Down Expand Up @@ -12536,6 +12556,7 @@ export interface VerifySendRequest {
*/
export interface VerifyStartRequest {
applicationId?: UUID;
existingUserStrategy?: ExistingUserStrategy;
loginId?: string;
loginIdType?: string;
state?: Record<string, any>;
Expand Down