Variable PreSignupTriggerSchemaConst
PreSignupTriggerSchema: ZodObject<
extendShape<
{
callerContext: ZodObject<
{ awsSdkVersion: ZodString; clientId: ZodString },
"strip",
ZodTypeAny,
{ awsSdkVersion: string; clientId: string },
{ awsSdkVersion: string; clientId: string },
>;
region: ZodString;
request: ZodObject<{}, "strip", ZodTypeAny, {}, {}>;
response: ZodObject<{}, "strip", ZodTypeAny, {}, {}>;
triggerSource: ZodString;
userName: ZodOptional<ZodString>;
userPoolId: ZodString;
version: ZodString;
},
{
request: ZodObject<
{
clientMetadata: ZodOptional<ZodRecord<ZodString, ZodString>>;
userAttributes: ZodRecord<ZodString, ZodString>;
userNotFound: ZodOptional<ZodBoolean>;
validationData: ZodNullable<ZodRecord<ZodString, ZodString>>;
},
"strip",
ZodTypeAny,
{
clientMetadata?: Record<string, string>;
userAttributes: Record<string, string>;
userNotFound?: boolean;
validationData: null | Record<string, string>;
},
{
clientMetadata?: Record<string, string>;
userAttributes: Record<string, string>;
userNotFound?: boolean;
validationData: null | Record<string, string>;
},
>;
response: ZodObject<
{
autoConfirmUser: ZodLiteral<false>;
autoVerifyEmail: ZodLiteral<false>;
autoVerifyPhone: ZodLiteral<false>;
},
"strip",
ZodTypeAny,
{
autoConfirmUser: false;
autoVerifyEmail: false;
autoVerifyPhone: false;
},
{
autoConfirmUser: false;
autoVerifyEmail: false;
autoVerifyPhone: false;
},
>;
triggerSource: ZodLiteral<"PreSignUp_SignUp">;
},
>,
"strip",
ZodTypeAny,
{
callerContext: { awsSdkVersion: string; clientId: string };
region: string;
request: {
clientMetadata?: Record<string, string>;
userAttributes: Record<string, string>;
userNotFound?: boolean;
validationData: null | Record<string, string>;
};
response: {
autoConfirmUser: false;
autoVerifyEmail: false;
autoVerifyPhone: false;
};
triggerSource: "PreSignUp_SignUp";
userName?: string;
userPoolId: string;
version: string;
},
{
callerContext: { awsSdkVersion: string; clientId: string };
region: string;
request: {
clientMetadata?: Record<string, string>;
userAttributes: Record<string, string>;
userNotFound?: boolean;
validationData: null | Record<string, string>;
};
response: {
autoConfirmUser: false;
autoVerifyEmail: false;
autoVerifyPhone: false;
};
triggerSource: "PreSignUp_SignUp";
userName?: string;
userPoolId: string;
version: string;
},
> = ...
A zod schema for a Cognito Pre-Signup trigger event.