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

DynamoDB Stream Envelope to extract data within NewImage/OldImage

Note: Values are the parsed models. Images' values can also be None, and length of the list is the record's amount in the original event.

Type declaration