@camstack/addon-provider-wyze 0.2.100 → 0.2.101

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
@@ -20747,6 +20747,14 @@ var NativeCropResultSchema = object({
20747
20747
  * set `encodeJpeg: true`; `bytes` is then absent.
20748
20748
  */
20749
20749
  jpeg: string().optional(),
20750
+ /**
20751
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20752
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20753
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20754
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20755
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20756
+ */
20757
+ jpegBytes: _instanceof(Uint8Array).optional(),
20750
20758
  width: number().int().positive(),
20751
20759
  height: number().int().positive(),
20752
20760
  /**
@@ -20813,7 +20821,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20813
20821
  })]);
20814
20822
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20815
20823
  var ParkedTrackFrameSchema = object({
20816
- jpeg: string(),
20824
+ /**
20825
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20826
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20827
+ * Exactly one of the two is present.
20828
+ */
20829
+ jpeg: string().optional(),
20830
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20831
+ jpegBytes: _instanceof(Uint8Array).optional(),
20817
20832
  width: number().int().positive(),
20818
20833
  height: number().int().positive(),
20819
20834
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21400,6 +21415,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21400
21415
  bbox: NativeCropBboxSchema,
21401
21416
  maxWidth: number().int().positive().optional(),
21402
21417
  /**
21418
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21419
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21420
+ * wire — never assume consent: a pre-D462 caller parses the field as
21421
+ * base64 and bytes would decode to garbage rather than fail.
21422
+ */
21423
+ acceptJpegBytes: boolean().optional(),
21424
+ /**
21403
21425
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21404
21426
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21405
21427
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21467,7 +21489,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21467
21489
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21468
21490
  deviceId: number(),
21469
21491
  trackId: string(),
21470
- kind: ParkedFrameKindSchema
21492
+ kind: ParkedFrameKindSchema,
21493
+ /**
21494
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21495
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21496
+ * wire — never assume consent: a pre-D462 caller parses the field as
21497
+ * base64 and bytes would decode to garbage rather than fail.
21498
+ */
21499
+ acceptJpegBytes: boolean().optional()
21471
21500
  }), ParkedTrackFrameSchema.nullable()), method(object({
21472
21501
  deviceId: number(),
21473
21502
  trackId: string()
package/dist/addon.mjs CHANGED
@@ -20726,6 +20726,14 @@ var NativeCropResultSchema = object({
20726
20726
  * set `encodeJpeg: true`; `bytes` is then absent.
20727
20727
  */
20728
20728
  jpeg: string().optional(),
20729
+ /**
20730
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20731
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20732
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20733
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20734
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20735
+ */
20736
+ jpegBytes: _instanceof(Uint8Array).optional(),
20729
20737
  width: number().int().positive(),
20730
20738
  height: number().int().positive(),
20731
20739
  /**
@@ -20792,7 +20800,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20792
20800
  })]);
20793
20801
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20794
20802
  var ParkedTrackFrameSchema = object({
20795
- jpeg: string(),
20803
+ /**
20804
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20805
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20806
+ * Exactly one of the two is present.
20807
+ */
20808
+ jpeg: string().optional(),
20809
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20810
+ jpegBytes: _instanceof(Uint8Array).optional(),
20796
20811
  width: number().int().positive(),
20797
20812
  height: number().int().positive(),
20798
20813
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21379,6 +21394,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21379
21394
  bbox: NativeCropBboxSchema,
21380
21395
  maxWidth: number().int().positive().optional(),
21381
21396
  /**
21397
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21398
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21399
+ * wire — never assume consent: a pre-D462 caller parses the field as
21400
+ * base64 and bytes would decode to garbage rather than fail.
21401
+ */
21402
+ acceptJpegBytes: boolean().optional(),
21403
+ /**
21382
21404
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21383
21405
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21384
21406
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21446,7 +21468,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21446
21468
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21447
21469
  deviceId: number(),
21448
21470
  trackId: string(),
21449
- kind: ParkedFrameKindSchema
21471
+ kind: ParkedFrameKindSchema,
21472
+ /**
21473
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21474
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21475
+ * wire — never assume consent: a pre-D462 caller parses the field as
21476
+ * base64 and bytes would decode to garbage rather than fail.
21477
+ */
21478
+ acceptJpegBytes: boolean().optional()
21450
21479
  }), ParkedTrackFrameSchema.nullable()), method(object({
21451
21480
  deviceId: number(),
21452
21481
  trackId: string()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-wyze",
3
- "version": "0.2.100",
3
+ "version": "0.2.101",
4
4
  "description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
5
5
  "keywords": [
6
6
  "camstack",