@camstack/addon-provider-homematic 1.2.97 → 1.2.98

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
@@ -20773,6 +20773,14 @@ var NativeCropResultSchema = object({
20773
20773
  * set `encodeJpeg: true`; `bytes` is then absent.
20774
20774
  */
20775
20775
  jpeg: string().optional(),
20776
+ /**
20777
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20778
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20779
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20780
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20781
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20782
+ */
20783
+ jpegBytes: _instanceof(Uint8Array).optional(),
20776
20784
  width: number().int().positive(),
20777
20785
  height: number().int().positive(),
20778
20786
  /**
@@ -20839,7 +20847,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20839
20847
  })]);
20840
20848
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20841
20849
  var ParkedTrackFrameSchema = object({
20842
- jpeg: string(),
20850
+ /**
20851
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20852
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20853
+ * Exactly one of the two is present.
20854
+ */
20855
+ jpeg: string().optional(),
20856
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20857
+ jpegBytes: _instanceof(Uint8Array).optional(),
20843
20858
  width: number().int().positive(),
20844
20859
  height: number().int().positive(),
20845
20860
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21426,6 +21441,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21426
21441
  bbox: NativeCropBboxSchema,
21427
21442
  maxWidth: number().int().positive().optional(),
21428
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(),
21450
+ /**
21429
21451
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21430
21452
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21431
21453
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21493,7 +21515,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21493
21515
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21494
21516
  deviceId: number(),
21495
21517
  trackId: string(),
21496
- kind: ParkedFrameKindSchema
21518
+ kind: ParkedFrameKindSchema,
21519
+ /**
21520
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21521
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21522
+ * wire — never assume consent: a pre-D462 caller parses the field as
21523
+ * base64 and bytes would decode to garbage rather than fail.
21524
+ */
21525
+ acceptJpegBytes: boolean().optional()
21497
21526
  }), ParkedTrackFrameSchema.nullable()), method(object({
21498
21527
  deviceId: number(),
21499
21528
  trackId: string()
package/dist/addon.mjs CHANGED
@@ -20774,6 +20774,14 @@ var NativeCropResultSchema = object({
20774
20774
  * set `encodeJpeg: true`; `bytes` is then absent.
20775
20775
  */
20776
20776
  jpeg: string().optional(),
20777
+ /**
20778
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20779
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20780
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20781
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20782
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20783
+ */
20784
+ jpegBytes: _instanceof(Uint8Array).optional(),
20777
20785
  width: number().int().positive(),
20778
20786
  height: number().int().positive(),
20779
20787
  /**
@@ -20840,7 +20848,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20840
20848
  })]);
20841
20849
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20842
20850
  var ParkedTrackFrameSchema = object({
20843
- jpeg: string(),
20851
+ /**
20852
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20853
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20854
+ * Exactly one of the two is present.
20855
+ */
20856
+ jpeg: string().optional(),
20857
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20858
+ jpegBytes: _instanceof(Uint8Array).optional(),
20844
20859
  width: number().int().positive(),
20845
20860
  height: number().int().positive(),
20846
20861
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21427,6 +21442,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21427
21442
  bbox: NativeCropBboxSchema,
21428
21443
  maxWidth: number().int().positive().optional(),
21429
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(),
21451
+ /**
21430
21452
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21431
21453
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21432
21454
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21494,7 +21516,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21494
21516
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21495
21517
  deviceId: number(),
21496
21518
  trackId: string(),
21497
- kind: ParkedFrameKindSchema
21519
+ kind: ParkedFrameKindSchema,
21520
+ /**
21521
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21522
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21523
+ * wire — never assume consent: a pre-D462 caller parses the field as
21524
+ * base64 and bytes would decode to garbage rather than fail.
21525
+ */
21526
+ acceptJpegBytes: boolean().optional()
21498
21527
  }), ParkedTrackFrameSchema.nullable()), method(object({
21499
21528
  deviceId: number(),
21500
21529
  trackId: string()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homematic",
3
- "version": "1.2.97",
3
+ "version": "1.2.98",
4
4
  "description": "Homematic / HomematicIP (CCU3 / RaspberryMatic) device-provider addon for CamStack — wraps the nodehomematic library",
5
5
  "keywords": [
6
6
  "camstack",