vapor-chamber API reference - v1.16.0
    Preparing search index...

    Type Alias OutboxRecord

    A queued command awaiting replay. JSON-serializable by design — target and payload round-trip through the storage adapter, so keep them plain data (no functions, no DOM nodes) for actions routed through the outbox.

    type OutboxRecord = {
        id: string;
        action: string;
        target: any;
        payload?: any;
        key: string;
        queuedAt: number;
    }
    Index
    id: string

    Unique record ID (distinct from the command's meta.id, which is re-stamped on replay).

    action: string

    The command's action name.

    target: any

    The command's target, exactly as dispatched.

    payload?: any

    The command's payload, exactly as dispatched.

    key: string

    The idempotency key derived at ENQUEUE time. Replays stamp this original key onto cmd.meta.idempotencyKey, so the backend sees the same Idempotency-Key header for every delivery attempt of this command.

    queuedAt: number

    Date.now() at enqueue time.