API Reference
    Preparing search index...
    AppSyncEventsPublishSchema: ZodObject<
        {
            error: 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 },
                    >,
                ],
            >;
            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, {}, {}>;
        } & {
            events: ZodArray<
                ZodObject<
                    { id: ZodString; payload: ZodRecord<ZodString, ZodUnknown> },
                    "strip",
                    ZodTypeAny,
                    { id: string; payload: Record<string, unknown> },
                    { id: string; payload: Record<string, unknown> },
                >,
                "many",
            >;
            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: ZodLiteral<"PUBLISH"> },
                "strip",
                ZodTypeAny,
                {
                    channel: { path: string; segments: string[] };
                    channelNamespace: { name: string };
                    operation: "PUBLISH";
                },
                {
                    channel: { path: string; segments: string[] };
                    channelNamespace: { name: string };
                    operation: "PUBLISH";
                },
            >;
        },
        "strip",
        ZodTypeAny,
        {
            error: null;
            events: { id: string; payload: Record<string, unknown> }[];
            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";
            };
            outErrors: unknown[];
            prev: null;
            request: { domainName: null
            | string; headers?: Record<string, string> };
            result: null;
            stash: {};
        },
        {
            error: null;
            events: { id: string; payload: Record<string, unknown> }[];
            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";
            };
            outErrors: unknown[];
            prev: null;
            request: { domainName: null
            | string; headers?: Record<string, string> };
            result: null;
            stash: {};
        },
    > = ...

    A zod schema for AppSync Events publish events.

    {
    "identity": null,
    "result": null,
    "request": {
    "headers": {
    "header1": "value1",
    },
    "domainName": "example.com"
    },
    "info": {
    "channel": {
    "path": "/default/foo",
    "segments": ["default", "foo"]
    },
    "channelNamespace": {
    "name": "default"
    },
    "operation": "PUBLISH"
    },
    "error": null,
    "prev": null,
    "stash": {},
    "outErrors": [],
    "events": [
    {
    "payload": {
    "key": "value"
    },
    "id": "12345"
    },
    {
    "payload": {
    "key2": "value2"
    },
    "id": "67890"
    }
    ]
    }