API Reference
    Preparing search index...
    AppSyncEventsBaseSchema: ZodObject<
        {
            error: ZodNull;
            events: ZodNull;
            identity: ZodUnion<
                [
                    ZodNull,
                    ZodObject<
                        {
                            claims: ZodRecord<ZodString, ZodUnknown>;
                            defaultAuthStrategy: ZodNullable<ZodString>;
                            groups: ZodNullable<ZodArray<ZodString, "many">>;
                            issuer: ZodString;
                            sourceIp: ZodArray<ZodString, "many">;
                            sub: ZodString;
                            username: ZodString;
                        },
                        "strip",
                        ZodTypeAny,
                        {
                            claims: Record<string, unknown>;
                            defaultAuthStrategy: null | string;
                            groups: null | string[];
                            issuer: string;
                            sourceIp: string[];
                            sub: string;
                            username: string;
                        },
                        {
                            claims: Record<string, unknown>;
                            defaultAuthStrategy: null | string;
                            groups: null | string[];
                            issuer: string;
                            sourceIp: string[];
                            sub: string;
                            username: string;
                        },
                    >,
                    ZodObject<
                        {
                            accountId: ZodString;
                            cognitoIdentityAuthProvider: ZodNullable<ZodString>;
                            cognitoIdentityAuthType: ZodNullable<ZodString>;
                            cognitoIdentityId: ZodNullable<ZodString>;
                            cognitoIdentityPoolId: ZodNullable<ZodString>;
                            sourceIp: ZodArray<ZodString, "many">;
                            userArn: ZodString;
                            username: ZodString;
                        },
                        "strip",
                        ZodTypeAny,
                        {
                            accountId: string;
                            cognitoIdentityAuthProvider: null
                            | string;
                            cognitoIdentityAuthType: null | string;
                            cognitoIdentityId: null | string;
                            cognitoIdentityPoolId: null | string;
                            sourceIp: string[];
                            userArn: string;
                            username: string;
                        },
                        {
                            accountId: string;
                            cognitoIdentityAuthProvider: null
                            | string;
                            cognitoIdentityAuthType: null | string;
                            cognitoIdentityId: null | string;
                            cognitoIdentityPoolId: null | string;
                            sourceIp: string[];
                            userArn: string;
                            username: string;
                        },
                    >,
                    ZodObject<
                        { handlerContext: ZodRecord<ZodString, ZodUnknown> },
                        "strip",
                        ZodTypeAny,
                        { handlerContext: Record<string, unknown> },
                        { handlerContext: Record<string, unknown> },
                    >,
                    ZodObject<
                        { claims: ZodAny; issuer: ZodString; sub: ZodString },
                        "strip",
                        ZodTypeAny,
                        { claims?: any; issuer: string; sub: string },
                        { claims?: any; issuer: string; sub: string },
                    >,
                ],
            >;
            info: ZodObject<
                {
                    channel: ZodObject<
                        { path: ZodString; segments: ZodArray<ZodString, "many"> },
                        "strip",
                        ZodTypeAny,
                        { path: string; segments: string[] },
                        { path: string; segments: string[] },
                    >;
                    channelNamespace: ZodObject<
                        { name: ZodString },
                        "strip",
                        ZodTypeAny,
                        { name: string },
                        { name: string },
                    >;
                    operation: ZodUnion<[ZodLiteral<"PUBLISH">, ZodLiteral<"SUBSCRIBE">]>;
                },
                "strip",
                ZodTypeAny,
                {
                    channel: { path: string; segments: string[] };
                    channelNamespace: { name: string };
                    operation: "PUBLISH" | "SUBSCRIBE";
                },
                {
                    channel: { path: string; segments: string[] };
                    channelNamespace: { name: string };
                    operation: "PUBLISH" | "SUBSCRIBE";
                },
            >;
            outErrors: ZodArray<ZodUnknown, "many">;
            prev: ZodNull;
            request: ZodObject<
                {
                    domainName: ZodNullable<ZodString>;
                    headers: ZodOptional<ZodRecord<ZodString, ZodString>>;
                },
                "strip",
                ZodTypeAny,
                { domainName: null
                | string; headers?: Record<string, string> },
                { domainName: null | string; headers?: Record<string, string> },
            >;
            result: ZodNull;
            stash: ZodObject<{}, "strip", ZodTypeAny, {}, {}>;
        },
        "strip",
        ZodTypeAny,
        {
            error: null;
            events: null;
            identity: | null
            | {
                accountId: string;
                cognitoIdentityAuthProvider: null
                | string;
                cognitoIdentityAuthType: null | string;
                cognitoIdentityId: null | string;
                cognitoIdentityPoolId: null | string;
                sourceIp: string[];
                userArn: string;
                username: string;
            }
            | {
                claims: Record<string, unknown>;
                defaultAuthStrategy: null | string;
                groups: null | string[];
                issuer: string;
                sourceIp: string[];
                sub: string;
                username: string;
            }
            | { claims?: any; issuer: string; sub: string }
            | { handlerContext: Record<string, unknown> };
            info: {
                channel: { path: string; segments: string[] };
                channelNamespace: { name: string };
                operation: "PUBLISH" | "SUBSCRIBE";
            };
            outErrors: unknown[];
            prev: null;
            request: { domainName: null
            | string; headers?: Record<string, string> };
            result: null;
            stash: {};
        },
        {
            error: null;
            events: null;
            identity: | null
            | {
                accountId: string;
                cognitoIdentityAuthProvider: null
                | string;
                cognitoIdentityAuthType: null | string;
                cognitoIdentityId: null | string;
                cognitoIdentityPoolId: null | string;
                sourceIp: string[];
                userArn: string;
                username: string;
            }
            | {
                claims: Record<string, unknown>;
                defaultAuthStrategy: null | string;
                groups: null | string[];
                issuer: string;
                sourceIp: string[];
                sub: string;
                username: string;
            }
            | { claims?: any; issuer: string; sub: string }
            | { handlerContext: Record<string, unknown> };
            info: {
                channel: { path: string; segments: string[] };
                channelNamespace: { name: string };
                operation: "PUBLISH" | "SUBSCRIBE";
            };
            outErrors: unknown[];
            prev: null;
            request: { domainName: null
            | string; headers?: Record<string, string> };
            result: null;
            stash: {};
        },
    > = ...

    A zod schema for AppSync Events base events.

    This schema is used as a base for both publish and subscribe events.