Skip to content

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.

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations or eufy. "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.