@camstack/addon-provider-rtsp 1.2.96 → 1.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
@@ -20754,6 +20754,14 @@ var NativeCropResultSchema = object({
20754
20754
  * set `encodeJpeg: true`; `bytes` is then absent.
20755
20755
  */
20756
20756
  jpeg: string().optional(),
20757
+ /**
20758
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20759
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20760
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20761
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20762
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20763
+ */
20764
+ jpegBytes: _instanceof(Uint8Array).optional(),
20757
20765
  width: number().int().positive(),
20758
20766
  height: number().int().positive(),
20759
20767
  /**
@@ -20820,7 +20828,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20820
20828
  })]);
20821
20829
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20822
20830
  var ParkedTrackFrameSchema = object({
20823
- jpeg: string(),
20831
+ /**
20832
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20833
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20834
+ * Exactly one of the two is present.
20835
+ */
20836
+ jpeg: string().optional(),
20837
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20838
+ jpegBytes: _instanceof(Uint8Array).optional(),
20824
20839
  width: number().int().positive(),
20825
20840
  height: number().int().positive(),
20826
20841
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21407,6 +21422,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21407
21422
  bbox: NativeCropBboxSchema,
21408
21423
  maxWidth: number().int().positive().optional(),
21409
21424
  /**
21425
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21426
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21427
+ * wire — never assume consent: a pre-D462 caller parses the field as
21428
+ * base64 and bytes would decode to garbage rather than fail.
21429
+ */
21430
+ acceptJpegBytes: boolean().optional(),
21431
+ /**
21410
21432
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21411
21433
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21412
21434
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21474,7 +21496,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21474
21496
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21475
21497
  deviceId: number(),
21476
21498
  trackId: string(),
21477
- kind: ParkedFrameKindSchema
21499
+ kind: ParkedFrameKindSchema,
21500
+ /**
21501
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21502
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21503
+ * wire — never assume consent: a pre-D462 caller parses the field as
21504
+ * base64 and bytes would decode to garbage rather than fail.
21505
+ */
21506
+ acceptJpegBytes: boolean().optional()
21478
21507
  }), ParkedTrackFrameSchema.nullable()), method(object({
21479
21508
  deviceId: number(),
21480
21509
  trackId: string()
package/dist/addon.mjs CHANGED
@@ -20730,6 +20730,14 @@ var NativeCropResultSchema = object({
20730
20730
  * set `encodeJpeg: true`; `bytes` is then absent.
20731
20731
  */
20732
20732
  jpeg: string().optional(),
20733
+ /**
20734
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20735
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20736
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20737
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20738
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20739
+ */
20740
+ jpegBytes: _instanceof(Uint8Array).optional(),
20733
20741
  width: number().int().positive(),
20734
20742
  height: number().int().positive(),
20735
20743
  /**
@@ -20796,7 +20804,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20796
20804
  })]);
20797
20805
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20798
20806
  var ParkedTrackFrameSchema = object({
20799
- jpeg: string(),
20807
+ /**
20808
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20809
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20810
+ * Exactly one of the two is present.
20811
+ */
20812
+ jpeg: string().optional(),
20813
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20814
+ jpegBytes: _instanceof(Uint8Array).optional(),
20800
20815
  width: number().int().positive(),
20801
20816
  height: number().int().positive(),
20802
20817
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21383,6 +21398,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21383
21398
  bbox: NativeCropBboxSchema,
21384
21399
  maxWidth: number().int().positive().optional(),
21385
21400
  /**
21401
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21402
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21403
+ * wire — never assume consent: a pre-D462 caller parses the field as
21404
+ * base64 and bytes would decode to garbage rather than fail.
21405
+ */
21406
+ acceptJpegBytes: boolean().optional(),
21407
+ /**
21386
21408
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21387
21409
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21388
21410
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21450,7 +21472,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21450
21472
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21451
21473
  deviceId: number(),
21452
21474
  trackId: string(),
21453
- kind: ParkedFrameKindSchema
21475
+ kind: ParkedFrameKindSchema,
21476
+ /**
21477
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21478
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21479
+ * wire — never assume consent: a pre-D462 caller parses the field as
21480
+ * base64 and bytes would decode to garbage rather than fail.
21481
+ */
21482
+ acceptJpegBytes: boolean().optional()
21454
21483
  }), ParkedTrackFrameSchema.nullable()), method(object({
21455
21484
  deviceId: number(),
21456
21485
  trackId: string()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-rtsp",
3
- "version": "1.2.96",
3
+ "version": "1.2.97",
4
4
  "description": "Generic RTSP camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",