Skip to content

Commit 4ded7d8

Browse files
authored
Merge wied03/ENG-3602/mfa-lambda-invocation (#206)
* propagate client changes * client code update from Javadoc
1 parent 664439e commit 4ded7d8

File tree

1 file changed

+48
-2
lines changed

1 file changed

+48
-2
lines changed

src/FusionAuthClient.ts

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9275,6 +9275,52 @@ export interface IdentityProviderDetails {
92759275
type?: IdentityProviderType;
92769276
}
92779277

9278+
/**
9279+
* Represents the inbound lambda parameter 'context' for MFA Required lambdas.
9280+
*/
9281+
export interface MFAContext {
9282+
authenticationThreats?: Array<AuthenticationThreats>;
9283+
eventInfo?: EventInfo;
9284+
mfaTrust?: MFATrust;
9285+
registration?: UserRegistration;
9286+
}
9287+
9288+
/**
9289+
* Represents the inbound lambda parameter 'policies' for MFA Required lambdas.
9290+
*/
9291+
export interface MFAPolicies {
9292+
applicationLoginPolicy?: MultiFactorLoginPolicy;
9293+
applicationMultiFactorTrustPolicy?: ApplicationMultiFactorTrustPolicy;
9294+
tenantLoginPolicy?: MultiFactorLoginPolicy;
9295+
}
9296+
9297+
/**
9298+
* Represents the inbound lambda parameter 'result' for MFA Required lambdas.
9299+
*/
9300+
export interface MFARequiredLambdaResult {
9301+
required?: boolean;
9302+
}
9303+
9304+
/**
9305+
* Represents the inbound lambda parameter 'mfaTrust' inside the 'context' parameter for MFA Required lambdas.
9306+
*/
9307+
export interface MFATrust {
9308+
applicationId?: UUID;
9309+
attributes?: Record<string, string>;
9310+
expirationInstant?: number;
9311+
id?: string;
9312+
insertInstant?: number;
9313+
startInstants?: StartInstant;
9314+
state?: Record<string, any>;
9315+
tenantId?: UUID;
9316+
userId?: UUID;
9317+
}
9318+
9319+
export interface StartInstant {
9320+
applications?: Record<UUID, number>;
9321+
tenant?: number;
9322+
}
9323+
92789324
/**
92799325
* This class contains the managed fields that are also put into the database during FusionAuth setup.
92809326
* <p>
@@ -9413,9 +9459,9 @@ export interface MonthlyActiveUserReportResponse {
94139459
}
94149460

94159461
/**
9416-
* Communicate various contexts in which multi-factor authentication can be used.
9462+
* Communicate various actions/contexts in which multi-factor authentication can be used.
94179463
*/
9418-
export enum MultiFactorContext {
9464+
export enum MultiFactorAction {
94199465
changePassword = "changePassword",
94209466
login = "login",
94219467
stepUp = "stepUp"

0 commit comments

Comments
 (0)