@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Interface InboxRecord

    One journaled inbound event.

    interface InboxRecord {
        id: string;
        idempotencyKey?: string;
        partitionKey: string;
        kind: "message" | "interaction";
        payload: JsonValue;
        state: InboxState;
        attempts: number;
        nextAttemptAt: number;
        leaseUntil?: number;
        owner?: string;
        fencingToken: number;
        receivedAt: number;
        completedAt?: number;
        lastError?: string;
    }
    Index
    id: string

    Stable id: a hash of the namespace + the event's idempotency key, or a random id for events without one.

    idempotencyKey?: string

    The inbound dedupe key + content fingerprint the id was derived from (diagnostics).

    partitionKey: string

    Ordering partition (namespace + chat): records of one partition are replayed in receivedAt order.

    kind: "message" | "interaction"
    payload: JsonValue

    The serialized inbound event (raw is never stored).

    state: InboxState
    attempts: number

    Claims charged so far (a release is not charged).

    nextAttemptAt: number

    Epoch ms when a pending/failed record becomes due.

    leaseUntil?: number

    Epoch ms when the current processing lease expires.

    owner?: string

    Lease owner (DurabilityConfig.instanceId).

    fencingToken: number

    Strictly increasing per record; 0 before the first claim.

    receivedAt: number
    completedAt?: number
    lastError?: string