EventBridgeEnvelope: {
    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>>;
} = ...

Envelope for EventBridge schema that extracts and parses data from the detail key.

Type declaration