API Reference
    Preparing search index...
    APIGatewayProxyEventSchema: ZodObject<
        {
            body: ZodNullable<ZodString>;
            headers: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodString>>>;
            httpMethod: ZodEnum<
                {
                    DELETE: "DELETE";
                    GET: "GET";
                    HEAD: "HEAD";
                    OPTIONS: "OPTIONS";
                    PATCH: "PATCH";
                    POST: "POST";
                    PUT: "PUT";
                },
            >;
            isBase64Encoded: ZodBoolean;
            multiValueHeaders: ZodOptional<
                ZodNullable<ZodRecord<ZodString, ZodArray<ZodString>>>,
            >;
            multiValueQueryStringParameters: ZodNullable<
                ZodRecord<ZodString, ZodArray<ZodString>>,
            >;
            path: ZodString;
            pathParameters: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodString>>>;
            queryStringParameters: ZodNullable<ZodRecord<ZodString, ZodString>>;
            requestContext: ZodObject<
                {
                    accountId: ZodString;
                    apiId: ZodString;
                    authorizer: ZodOptional<
                        ZodNullable<
                            ZodUnion<
                                readonly [
                                    ZodObject<
                                        { integrationLatency: ZodNumber; principalId: ZodString },
                                        $strip,
                                    >,
                                    ZodObject<
                                        { claims: ZodRecord<(...), (...)>; scopes: ZodOptional<(...)> },
                                        $strip,
                                    >,
                                ],
                            >,
                        >,
                    >;
                    connectedAt: ZodOptional<ZodNullable<ZodNumber>>;
                    connectionId: ZodOptional<ZodNullable<ZodString>>;
                    deploymentId: ZodOptional<ZodNullable<ZodString>>;
                    domainName: ZodOptional<ZodNullable<ZodString>>;
                    domainPrefix: ZodOptional<ZodNullable<ZodString>>;
                    eventType: ZodOptional<
                        ZodNullable<
                            ZodEnum<
                                {
                                    CONNECT: "CONNECT";
                                    DISCONNECT: "DISCONNECT";
                                    MESSAGE: "MESSAGE";
                                },
                            >,
                        >,
                    >;
                    extendedRequestId: ZodOptional<ZodNullable<ZodString>>;
                    httpMethod: ZodEnum<
                        {
                            DELETE: "DELETE";
                            GET: "GET";
                            HEAD: "HEAD";
                            OPTIONS: "OPTIONS";
                            PATCH: "PATCH";
                            POST: "POST";
                            PUT: "PUT";
                        },
                    >;
                    identity: ZodObject<
                        {
                            accessKey: ZodOptional<ZodNullable<ZodString>>;
                            accountId: ZodOptional<ZodNullable<ZodString>>;
                            apiKey: ZodOptional<ZodNullable<ZodString>>;
                            apiKeyId: ZodOptional<ZodNullable<ZodString>>;
                            caller: ZodOptional<ZodNullable<ZodString>>;
                            clientCert: ZodOptional<
                                ZodNullable<
                                    ZodObject<
                                        {
                                            clientCertPem: ZodString;
                                            issuerDN: ZodString;
                                            serialNumber: ZodString;
                                            subjectDN: ZodString;
                                            validity: ZodObject<(...), (...)>;
                                        },
                                        $strip,
                                    >,
                                >,
                            >;
                            cognitoAuthenticationProvider: ZodOptional<ZodNullable<ZodString>>;
                            cognitoAuthenticationType: ZodOptional<ZodNullable<ZodString>>;
                            cognitoIdentityId: ZodOptional<ZodNullable<ZodString>>;
                            cognitoIdentityPoolId: ZodOptional<ZodNullable<ZodString>>;
                            principalOrgId: ZodOptional<ZodNullable<ZodString>>;
                            sourceIp: ZodOptional<
                                ZodUnion<readonly [ZodIPv4, ZodLiteral<"test-invoke-source-ip">]>,
                            >;
                            user: ZodOptional<ZodNullable<ZodString>>;
                            userAgent: ZodOptional<ZodNullable<ZodString>>;
                            userArn: ZodOptional<ZodNullable<ZodString>>;
                        },
                        $strip,
                    >;
                    messageDirection: ZodOptional<ZodNullable<ZodString>>;
                    messageId: ZodOptional<ZodNullable<ZodString>>;
                    operationName: ZodOptional<ZodNullable<ZodString>>;
                    path: ZodString;
                    protocol: ZodString;
                    requestId: ZodString;
                    requestTime: ZodString;
                    requestTimeEpoch: ZodNumber;
                    resourceId: ZodOptional<ZodNullable<ZodString>>;
                    resourcePath: ZodString;
                    routeKey: ZodOptional<ZodNullable<ZodString>>;
                    stage: ZodString;
                },
                $strip,
            >;
            resource: ZodString;
            stageVariables: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodString>>>;
        },
        $strip,
    > = ...

    A zod schema for an API Gateway Proxy event

    {
    "type": "REQUEST",
    "methodArn": "arn:aws:execute-api:us-east-1:123456789012:abcdef123/test/GET/request",
    "resource": "/request",
    "path": "/request",
    "httpMethod": "GET",
    "headers": {
    "X-AMZ-Date": "20170718T062915Z",
    "Accept": "application/json",
    "HeaderAuth1": "headerValue1"
    },
    "queryStringParameters": {
    "QueryString1": "queryValue1"
    },
    "pathParameters": {},
    "stageVariables": null,
    "requestContext": {
    "path": "/request",
    "accountId": "123456789012",
    "resourceId": "05c7jb",
    "stage": "test",
    "requestId": "...",
    "identity": {
    "cognitoIdentityPoolId": null,
    "accountId": null,
    "cognitoIdentityId": null,
    "caller": null,
    "sourceIp": "192.168.1.1",
    "principalOrgId": null,
    "accessKey": null,
    "cognitoAuthenticationType": null,
    "cognitoAuthenticationProvider": null,
    "userArn": null,
    "userAgent": "HTTPie/3.2.2",
    "user": null
    }
    },
    "resourcePath": "/request",
    "httpMethod": "GET",
    "apiId": "abcdef123"
    }