Variable CreateAuthChallengeTriggerSchemaConst
CreateAuthChallengeTriggerSchema: ZodObject<
{
callerContext: ZodObject<
{ awsSdkVersion: ZodString; clientId: ZodString },
$strip,
>;
region: ZodString;
request: ZodObject<
{
challengeName: ZodString;
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<
{
challengeMetadata: ZodOptional<ZodNullable<ZodString>>;
privateChallengeParameters: ZodOptional<
ZodNullable<ZodRecord<ZodString, ZodString>>,
>;
publicChallengeParameters: ZodOptional<
ZodNullable<ZodRecord<ZodString, ZodString>>,
>;
},
$strip,
>;
triggerSource: ZodLiteral<"CreateAuthChallenge_Authentication">;
userName: ZodOptional<ZodString>;
userPoolId: ZodString;
version: ZodString;
},
$strip,
> = ...
A zod schema for a Cognito Create Auth Challenge trigger event.