@camstack/addon-provider-dreo 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
@@ -20751,6 +20751,14 @@ var NativeCropResultSchema = object({
20751
20751
  * set `encodeJpeg: true`; `bytes` is then absent.
20752
20752
  */
20753
20753
  jpeg: string().optional(),
20754
+ /**
20755
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20756
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20757
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20758
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20759
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20760
+ */
20761
+ jpegBytes: _instanceof(Uint8Array).optional(),
20754
20762
  width: number().int().positive(),
20755
20763
  height: number().int().positive(),
20756
20764
  /**
@@ -20817,7 +20825,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20817
20825
  })]);
20818
20826
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20819
20827
  var ParkedTrackFrameSchema = object({
20820
- jpeg: string(),
20828
+ /**
20829
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20830
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20831
+ * Exactly one of the two is present.
20832
+ */
20833
+ jpeg: string().optional(),
20834
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20835
+ jpegBytes: _instanceof(Uint8Array).optional(),
20821
20836
  width: number().int().positive(),
20822
20837
  height: number().int().positive(),
20823
20838
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21404,6 +21419,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21404
21419
  bbox: NativeCropBboxSchema,
21405
21420
  maxWidth: number().int().positive().optional(),
21406
21421
  /**
21422
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21423
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21424
+ * wire — never assume consent: a pre-D462 caller parses the field as
21425
+ * base64 and bytes would decode to garbage rather than fail.
21426
+ */
21427
+ acceptJpegBytes: boolean().optional(),
21428
+ /**
21407
21429
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21408
21430
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21409
21431
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21471,7 +21493,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21471
21493
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21472
21494
  deviceId: number(),
21473
21495
  trackId: string(),
21474
- kind: ParkedFrameKindSchema
21496
+ kind: ParkedFrameKindSchema,
21497
+ /**
21498
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21499
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21500
+ * wire — never assume consent: a pre-D462 caller parses the field as
21501
+ * base64 and bytes would decode to garbage rather than fail.
21502
+ */
21503
+ acceptJpegBytes: boolean().optional()
21475
21504
  }), ParkedTrackFrameSchema.nullable()), method(object({
21476
21505
  deviceId: number(),
21477
21506
  trackId: string()
package/dist/addon.mjs CHANGED
@@ -20752,6 +20752,14 @@ var NativeCropResultSchema = object({
20752
20752
  * set `encodeJpeg: true`; `bytes` is then absent.
20753
20753
  */
20754
20754
  jpeg: string().optional(),
20755
+ /**
20756
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20757
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20758
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20759
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20760
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20761
+ */
20762
+ jpegBytes: _instanceof(Uint8Array).optional(),
20755
20763
  width: number().int().positive(),
20756
20764
  height: number().int().positive(),
20757
20765
  /**
@@ -20818,7 +20826,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20818
20826
  })]);
20819
20827
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20820
20828
  var ParkedTrackFrameSchema = object({
20821
- jpeg: string(),
20829
+ /**
20830
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20831
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20832
+ * Exactly one of the two is present.
20833
+ */
20834
+ jpeg: string().optional(),
20835
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20836
+ jpegBytes: _instanceof(Uint8Array).optional(),
20822
20837
  width: number().int().positive(),
20823
20838
  height: number().int().positive(),
20824
20839
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21405,6 +21420,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21405
21420
  bbox: NativeCropBboxSchema,
21406
21421
  maxWidth: number().int().positive().optional(),
21407
21422
  /**
21423
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21424
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21425
+ * wire — never assume consent: a pre-D462 caller parses the field as
21426
+ * base64 and bytes would decode to garbage rather than fail.
21427
+ */
21428
+ acceptJpegBytes: boolean().optional(),
21429
+ /**
21408
21430
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21409
21431
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21410
21432
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21472,7 +21494,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21472
21494
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21473
21495
  deviceId: number(),
21474
21496
  trackId: string(),
21475
- kind: ParkedFrameKindSchema
21497
+ kind: ParkedFrameKindSchema,
21498
+ /**
21499
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21500
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21501
+ * wire — never assume consent: a pre-D462 caller parses the field as
21502
+ * base64 and bytes would decode to garbage rather than fail.
21503
+ */
21504
+ acceptJpegBytes: boolean().optional()
21476
21505
  }), ParkedTrackFrameSchema.nullable()), method(object({
21477
21506
  deviceId: number(),
21478
21507
  trackId: string()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreo",
3
- "version": "0.2.96",
3
+ "version": "0.2.97",
4
4
  "description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
5
5
  "keywords": [
6
6
  "camstack",