ApiGatewayV2Envelope: {
    parse<T extends ZodType<any, ZodTypeDef, any>>(
        data: unknown,
        schema: T,
    ): TypeOf<T>;
    safeParse<T extends ZodType<any, ZodTypeDef, any>>(
        data: unknown,
        schema: T,
    ): ParsedResult<unknown, TypeOf<T>>;
} = ...

API Gateway V2 envelope to extract data within body key

Type declaration