API Reference
    Preparing search index...

    Variable EventBridgeWithMetadataEnvelopeConst

    EventBridgeWithMetadataEnvelope: {
        parse<T>(data: unknown, schema: ZodType<T>): T[];
        safeParse<T>(data: unknown, schema: ZodType<T>): ParsedResult<unknown, T[]>;
    } = ...

    Validates a WITH_METADATA batch and extracts each record's parsed Data.detail.

    Returns details in input order. Invalid records fail the whole batch, with validation paths relative to the original input. Use the record schema directly for single-object delivery or to retain delivery metadata.

    Type Declaration

    • parse: function
      • Parses every record's detail using the supplied schema.

        Type Parameters

        • T

        Parameters

        • data: unknown

          the batch to parse

        • schema: ZodType<T>

          the schema for each record's detail

        Returns T[]

    • safeParse: function