Skip to content

Contact

Defined in: src/model/types.ts:69

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.


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).


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


optional lastSeenMs?: number;

Defined in: src/model/types.ts:74


name: string;

Defined in: src/model/types.ts:72


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.


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.


optional pathLearnedAt?: number;

Defined in: src/model/types.ts:97

Wall-clock ms of the most recent auto-learn that wrote outPathHex.


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.


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: 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