API Reference
    Preparing search index...
    CustomSMSSenderTriggerSchema: 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>>;
                        code: ZodString;
                        type: ZodLiteral<"customSMSSenderRequestV1">;
                        userAttributes: ZodRecord<ZodString, ZodString>;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        clientMetadata?: Record<string, string>;
                        code: string;
                        type: "customSMSSenderRequestV1";
                        userAttributes: Record<string, string>;
                    },
                    {
                        clientMetadata?: Record<string, string>;
                        code: string;
                        type: "customSMSSenderRequestV1";
                        userAttributes: Record<string, string>;
                    },
                >;
                triggerSource: ZodLiteral<"CustomSMSSender_SignUp">;
            },
        >,
        "strip",
        ZodTypeAny,
        {
            callerContext: { awsSdkVersion: string; clientId: string };
            region: string;
            request: {
                clientMetadata?: Record<string, string>;
                code: string;
                type: "customSMSSenderRequestV1";
                userAttributes: Record<string, string>;
            };
            response: {};
            triggerSource: "CustomSMSSender_SignUp";
            userName?: string;
            userPoolId: string;
            version: string;
        },
        {
            callerContext: { awsSdkVersion: string; clientId: string };
            region: string;
            request: {
                clientMetadata?: Record<string, string>;
                code: string;
                type: "customSMSSenderRequestV1";
                userAttributes: Record<string, string>;
            };
            response: {};
            triggerSource: "CustomSMSSender_SignUp";
            userName?: string;
            userPoolId: string;
            version: string;
        },
    > = ...

    A zod schema for a Cognito Custom SMS Sender trigger event.

    {
    "version": "1",
    "triggerSource": "CustomSMSSender_SignUp",
    "region": "us-east-1",
    "userPoolId": "us-east-1_ABC123",
    "userName": "johndoe",
    "callerContext": {
    "awsSdkVersion": "2.814.0",
    "clientId": "client123"
    },
    "request": {
    "type": "customSMSSenderRequestV1",
    "code": "string",
    "clientMetadata": {
    "string": "string"
    },
    "userAttributes": { "string": "string" }
    },
    "response": {}
    }