Stratal API Reference
    Preparing search index...

    Interface QueueMessage<T>

    Queue message structure

    All messages dispatched to queues follow this structure. The id and timestamp are auto-generated by QueueSender.

    interface QueueMessage<T = unknown> {
        id: string;
        metadata?: { locale?: string; [key: string]: unknown };
        payload: T;
        timestamp: number;
        type: string;
    }

    Type Parameters

    • T = unknown
    Index

    Properties

    id: string

    Unique message identifier (UUID)

    metadata?: { locale?: string; [key: string]: unknown }

    Optional metadata including locale for i18n

    payload: T

    Message payload

    timestamp: number

    Timestamp when message was dispatched (milliseconds since epoch)

    type: string

    Message type for routing to consumers