@camstack/addon-provider-unifi 0.2.96 → 0.2.97

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/addon.js CHANGED
@@ -20698,6 +20698,14 @@ var NativeCropResultSchema = object({
20698
20698
  * set `encodeJpeg: true`; `bytes` is then absent.
20699
20699
  */
20700
20700
  jpeg: string().optional(),
20701
+ /**
20702
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20703
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20704
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20705
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20706
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20707
+ */
20708
+ jpegBytes: _instanceof(Uint8Array).optional(),
20701
20709
  width: number().int().positive(),
20702
20710
  height: number().int().positive(),
20703
20711
  /**
@@ -20764,7 +20772,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20764
20772
  })]);
20765
20773
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20766
20774
  var ParkedTrackFrameSchema = object({
20767
- jpeg: string(),
20775
+ /**
20776
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20777
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20778
+ * Exactly one of the two is present.
20779
+ */
20780
+ jpeg: string().optional(),
20781
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20782
+ jpegBytes: _instanceof(Uint8Array).optional(),
20768
20783
  width: number().int().positive(),
20769
20784
  height: number().int().positive(),
20770
20785
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21351,6 +21366,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21351
21366
  bbox: NativeCropBboxSchema,
21352
21367
  maxWidth: number().int().positive().optional(),
21353
21368
  /**
21369
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21370
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21371
+ * wire — never assume consent: a pre-D462 caller parses the field as
21372
+ * base64 and bytes would decode to garbage rather than fail.
21373
+ */
21374
+ acceptJpegBytes: boolean().optional(),
21375
+ /**
21354
21376
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21355
21377
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21356
21378
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21418,7 +21440,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21418
21440
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21419
21441
  deviceId: number(),
21420
21442
  trackId: string(),
21421
- kind: ParkedFrameKindSchema
21443
+ kind: ParkedFrameKindSchema,
21444
+ /**
21445
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21446
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21447
+ * wire — never assume consent: a pre-D462 caller parses the field as
21448
+ * base64 and bytes would decode to garbage rather than fail.
21449
+ */
21450
+ acceptJpegBytes: boolean().optional()
21422
21451
  }), ParkedTrackFrameSchema.nullable()), method(object({
21423
21452
  deviceId: number(),
21424
21453
  trackId: string()
package/dist/addon.mjs CHANGED
@@ -20697,6 +20697,14 @@ var NativeCropResultSchema = object({
20697
20697
  * set `encodeJpeg: true`; `bytes` is then absent.
20698
20698
  */
20699
20699
  jpeg: string().optional(),
20700
+ /**
20701
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20702
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20703
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20704
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20705
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20706
+ */
20707
+ jpegBytes: _instanceof(Uint8Array).optional(),
20700
20708
  width: number().int().positive(),
20701
20709
  height: number().int().positive(),
20702
20710
  /**
@@ -20763,7 +20771,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20763
20771
  })]);
20764
20772
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20765
20773
  var ParkedTrackFrameSchema = object({
20766
- jpeg: string(),
20774
+ /**
20775
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20776
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20777
+ * Exactly one of the two is present.
20778
+ */
20779
+ jpeg: string().optional(),
20780
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20781
+ jpegBytes: _instanceof(Uint8Array).optional(),
20767
20782
  width: number().int().positive(),
20768
20783
  height: number().int().positive(),
20769
20784
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21350,6 +21365,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21350
21365
  bbox: NativeCropBboxSchema,
21351
21366
  maxWidth: number().int().positive().optional(),
21352
21367
  /**
21368
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21369
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21370
+ * wire — never assume consent: a pre-D462 caller parses the field as
21371
+ * base64 and bytes would decode to garbage rather than fail.
21372
+ */
21373
+ acceptJpegBytes: boolean().optional(),
21374
+ /**
21353
21375
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21354
21376
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21355
21377
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21417,7 +21439,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21417
21439
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21418
21440
  deviceId: number(),
21419
21441
  trackId: string(),
21420
- kind: ParkedFrameKindSchema
21442
+ kind: ParkedFrameKindSchema,
21443
+ /**
21444
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21445
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21446
+ * wire — never assume consent: a pre-D462 caller parses the field as
21447
+ * base64 and bytes would decode to garbage rather than fail.
21448
+ */
21449
+ acceptJpegBytes: boolean().optional()
21421
21450
  }), ParkedTrackFrameSchema.nullable()), method(object({
21422
21451
  deviceId: number(),
21423
21452
  trackId: string()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-unifi",
3
- "version": "0.2.96",
3
+ "version": "0.2.97",
4
4
  "description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. NO cameras/Protect.",
5
5
  "keywords": [
6
6
  "camstack",