Contact
Defined in: src/model/types.ts:69
Properties
Section titled “Properties”favourite?
Section titled “favourite?”optional favourite?: boolean;Defined in: src/model/types.ts:80
Radio-level favourite — maps to the firmware contact flag bit 0, which protects the contact from overwrite-oldest eviction.
gpsLat?
Section titled “gpsLat?”optional gpsLat?: number;Defined in: src/model/types.ts:101
Last advertised position in WGS84 degrees. Both present together or both absent — a partial fix is never written. 0/0 from firmware is treated as absent (default for radios without a GPS module).
gpsLon?
Section titled “gpsLon?”optional gpsLon?: number;Defined in: src/model/types.ts:102
optional hops?: number;Defined in: src/model/types.ts:77
key: string;Defined in: src/model/types.ts:70
kind: ContactKind;Defined in: src/model/types.ts:73
lastSeenMs?
Section titled “lastSeenMs?”optional lastSeenMs?: number;Defined in: src/model/types.ts:74
name: string;Defined in: src/model/types.ts:72
outPathHashSize?
Section titled “outPathHashSize?”optional outPathHashSize?: PathHashSize;Defined in: src/model/types.ts:88
Bytes per hop prefix (1, 2 or 4). Snapshot of the radio’s path.hash.mode
at the time the path was captured / written. Needed to split outPathHex
into the per-hop chips.
outPathHex?
Section titled “outPathHex?”optional outPathHex?: string;Defined in: src/model/types.ts:84
Hex-encoded out-path bytes (no separators) mirroring the firmware’s
advert.out_path. Empty / undefined means “flood” (no source-route). The
byte length must be a multiple of outPathHashSize.
pathLearnedAt?
Section titled “pathLearnedAt?”optional pathLearnedAt?: number;Defined in: src/model/types.ts:97
Wall-clock ms of the most recent auto-learn that wrote outPathHex.
pathManual?
Section titled “pathManual?”optional pathManual?: boolean;Defined in: src/model/types.ts:95
True iff the current outPathHex was set by hand (not learned by the
auto-retry pipeline). Drives the “overwrite manual path?” dialog.
preferDirect?
Section titled “preferDirect?”optional preferDirect?: boolean;Defined in: src/model/types.ts:92
When true, mesh routing is skipped entirely and the companion-side direct
flow is used for this contact (CMD_SEND_LOGIN for repeaters; direct DM
otherwise). Takes precedence over outPathHex.
publicKeyHex
Section titled “publicKeyHex”publicKeyHex: string;Defined in: src/model/types.ts:71
optional rssi?: number;Defined in: src/model/types.ts:75
optional snr?: number;Defined in: src/model/types.ts:76