@camstack/addon-provider-onvif 1.2.95 → 1.2.96

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
@@ -20410,6 +20410,14 @@ var NativeCropResultSchema = object({
20410
20410
  * set `encodeJpeg: true`; `bytes` is then absent.
20411
20411
  */
20412
20412
  jpeg: string().optional(),
20413
+ /**
20414
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20415
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20416
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20417
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20418
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20419
+ */
20420
+ jpegBytes: _instanceof(Uint8Array).optional(),
20413
20421
  width: number().int().positive(),
20414
20422
  height: number().int().positive(),
20415
20423
  /**
@@ -20476,7 +20484,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20476
20484
  })]);
20477
20485
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20478
20486
  var ParkedTrackFrameSchema = object({
20479
- jpeg: string(),
20487
+ /**
20488
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20489
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20490
+ * Exactly one of the two is present.
20491
+ */
20492
+ jpeg: string().optional(),
20493
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20494
+ jpegBytes: _instanceof(Uint8Array).optional(),
20480
20495
  width: number().int().positive(),
20481
20496
  height: number().int().positive(),
20482
20497
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21063,6 +21078,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21063
21078
  bbox: NativeCropBboxSchema,
21064
21079
  maxWidth: number().int().positive().optional(),
21065
21080
  /**
21081
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21082
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21083
+ * wire — never assume consent: a pre-D462 caller parses the field as
21084
+ * base64 and bytes would decode to garbage rather than fail.
21085
+ */
21086
+ acceptJpegBytes: boolean().optional(),
21087
+ /**
21066
21088
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21067
21089
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21068
21090
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21130,7 +21152,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21130
21152
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21131
21153
  deviceId: number(),
21132
21154
  trackId: string(),
21133
- kind: ParkedFrameKindSchema
21155
+ kind: ParkedFrameKindSchema,
21156
+ /**
21157
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21158
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21159
+ * wire — never assume consent: a pre-D462 caller parses the field as
21160
+ * base64 and bytes would decode to garbage rather than fail.
21161
+ */
21162
+ acceptJpegBytes: boolean().optional()
21134
21163
  }), ParkedTrackFrameSchema.nullable()), method(object({
21135
21164
  deviceId: number(),
21136
21165
  trackId: string()
package/dist/addon.mjs CHANGED
@@ -20411,6 +20411,14 @@ var NativeCropResultSchema = object({
20411
20411
  * set `encodeJpeg: true`; `bytes` is then absent.
20412
20412
  */
20413
20413
  jpeg: string().optional(),
20414
+ /**
20415
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20416
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20417
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20418
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20419
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20420
+ */
20421
+ jpegBytes: _instanceof(Uint8Array).optional(),
20414
20422
  width: number().int().positive(),
20415
20423
  height: number().int().positive(),
20416
20424
  /**
@@ -20477,7 +20485,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20477
20485
  })]);
20478
20486
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20479
20487
  var ParkedTrackFrameSchema = object({
20480
- jpeg: string(),
20488
+ /**
20489
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20490
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20491
+ * Exactly one of the two is present.
20492
+ */
20493
+ jpeg: string().optional(),
20494
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20495
+ jpegBytes: _instanceof(Uint8Array).optional(),
20481
20496
  width: number().int().positive(),
20482
20497
  height: number().int().positive(),
20483
20498
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21064,6 +21079,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21064
21079
  bbox: NativeCropBboxSchema,
21065
21080
  maxWidth: number().int().positive().optional(),
21066
21081
  /**
21082
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21083
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21084
+ * wire — never assume consent: a pre-D462 caller parses the field as
21085
+ * base64 and bytes would decode to garbage rather than fail.
21086
+ */
21087
+ acceptJpegBytes: boolean().optional(),
21088
+ /**
21067
21089
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21068
21090
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21069
21091
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21131,7 +21153,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21131
21153
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21132
21154
  deviceId: number(),
21133
21155
  trackId: string(),
21134
- kind: ParkedFrameKindSchema
21156
+ kind: ParkedFrameKindSchema,
21157
+ /**
21158
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21159
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21160
+ * wire — never assume consent: a pre-D462 caller parses the field as
21161
+ * base64 and bytes would decode to garbage rather than fail.
21162
+ */
21163
+ acceptJpegBytes: boolean().optional()
21135
21164
  }), ParkedTrackFrameSchema.nullable()), method(object({
21136
21165
  deviceId: number(),
21137
21166
  trackId: string()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-onvif",
3
- "version": "1.2.95",
3
+ "version": "1.2.96",
4
4
  "description": "ONVIF camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",