Variable DefineAuthChallengeTriggerSchemaConst
DefineAuthChallengeTriggerSchema: ZodObject<
{
callerContext: ZodObject<
{ awsSdkVersion: ZodString; clientId: ZodString },
$strip,
>;
region: ZodString;
request: ZodObject<
{
clientMetadata: ZodOptional<ZodRecord<ZodString, ZodString>>;
session: ZodArray<
ZodObject<
{
challengeMetadata: ZodOptional<ZodString>;
challengeName: ZodUnion<
readonly [
ZodLiteral<"CUSTOM_CHALLENGE">,
ZodLiteral<"SRP_A">,
ZodLiteral<"PASSWORD_VERIFIER">,
ZodLiteral<"SMS_MFA">,
ZodLiteral<"EMAIL_OTP">,
ZodLiteral<"SOFTWARE_TOKEN_MFA">,
ZodLiteral<"DEVICE_SRP_AUTH">,
ZodLiteral<"DEVICE_PASSWORD_VERIFIER">,
ZodLiteral<"ADMIN_NO_SRP_AUTH">,
],
>;
challengeResult: ZodBoolean;
},
$strip,
>,
>;
userAttributes: ZodRecord<ZodString, ZodString>;
userNotFound: ZodOptional<ZodBoolean>;
},
$strip,
>;
response: ZodObject<
{
challengeName: ZodOptional<ZodNullable<ZodString>>;
failAuthentication: ZodOptional<ZodNullable<ZodBoolean>>;
issueTokens: ZodOptional<ZodNullable<ZodBoolean>>;
},
$strip,
>;
triggerSource: ZodLiteral<"DefineAuthChallenge_Authentication">;
userName: ZodOptional<ZodString>;
userPoolId: ZodString;
version: ZodString;
},
$strip,
> = ...
A zod schema for a Cognito Define Auth Challenge trigger event.