@nextera.one/axis-server-sdk 2.3.19 → 2.3.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -511,7 +511,7 @@ declare const T: {
511
511
  type AxisPacket = {
512
512
  intent: string;
513
513
  intentVersion: number;
514
- actorId: string;
514
+ actorId?: string;
515
515
  capsuleId?: Buffer;
516
516
  pid: Buffer;
517
517
  nonce: Buffer;
package/dist/index.d.ts CHANGED
@@ -511,7 +511,7 @@ declare const T: {
511
511
  type AxisPacket = {
512
512
  intent: string;
513
513
  intentVersion: number;
514
- actorId: string;
514
+ actorId?: string;
515
515
  capsuleId?: Buffer;
516
516
  pid: Buffer;
517
517
  nonce: Buffer;
package/dist/index.js CHANGED
@@ -5476,7 +5476,6 @@ function buildPacket(hdr, body, sig, flags = 0) {
5476
5476
  const nonce = hm.get(T.NONCE)?.[0];
5477
5477
  const tsMs = asBigint64BE(hm.get(T.TS_MS)?.[0]);
5478
5478
  if (!intent) throw new Error("PACKET_MISSING_INTENT");
5479
- if (!actorId) throw new Error("PACKET_MISSING_ACTOR_ID");
5480
5479
  if (!nonce || nonce.length < 16 || nonce.length > 32)
5481
5480
  throw new Error("PACKET_BAD_NONCE");
5482
5481
  if (!pid) throw new Error("PACKET_MISSING_PID");