eufy-mega / core/contracts / RawDpField
Type Alias: RawDpField
ts
type RawDpField =
| {
field: number;
kind: "int";
value: bigint;
}
| {
field: number;
kind: "bytes";
value: Buffer;
};One top-level field of a payload decoded by a RawDpCodec, identified by its numeric position in the message. kind reports how the value was encoded, not what it means: a variable- or fixed-width integer arrives as int, and a length-delimited run — a string, a byte blob, or a nested message — arrives as bytes, for the reader to interpret.