@camstack/addon-provider-amcrest 0.2.98 → 0.2.99
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 +31 -2
- package/dist/addon.mjs +31 -2
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -20693,6 +20693,14 @@ var NativeCropResultSchema = object({
|
|
|
20693
20693
|
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
20694
20694
|
*/
|
|
20695
20695
|
jpeg: string().optional(),
|
|
20696
|
+
/**
|
|
20697
|
+
* The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
|
|
20698
|
+
* `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
|
|
20699
|
+
* `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
|
|
20700
|
+
* `bytes` above has crossed this boundary as a `Uint8Array` all along — so
|
|
20701
|
+
* base64 was buying nothing but a multi-megabyte string in the relay's heap.
|
|
20702
|
+
*/
|
|
20703
|
+
jpegBytes: _instanceof(Uint8Array).optional(),
|
|
20696
20704
|
width: number().int().positive(),
|
|
20697
20705
|
height: number().int().positive(),
|
|
20698
20706
|
/**
|
|
@@ -20759,7 +20767,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
|
20759
20767
|
})]);
|
|
20760
20768
|
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20761
20769
|
var ParkedTrackFrameSchema = object({
|
|
20762
|
-
|
|
20770
|
+
/**
|
|
20771
|
+
* Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
|
|
20772
|
+
* `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
|
|
20773
|
+
* Exactly one of the two is present.
|
|
20774
|
+
*/
|
|
20775
|
+
jpeg: string().optional(),
|
|
20776
|
+
/** The same JPEG as bytes, for a caller that declared it reads them (D462). */
|
|
20777
|
+
jpegBytes: _instanceof(Uint8Array).optional(),
|
|
20763
20778
|
width: number().int().positive(),
|
|
20764
20779
|
height: number().int().positive(),
|
|
20765
20780
|
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
@@ -21346,6 +21361,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21346
21361
|
bbox: NativeCropBboxSchema,
|
|
21347
21362
|
maxWidth: number().int().positive().optional(),
|
|
21348
21363
|
/**
|
|
21364
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
21365
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
21366
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
21367
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
21368
|
+
*/
|
|
21369
|
+
acceptJpegBytes: boolean().optional(),
|
|
21370
|
+
/**
|
|
21349
21371
|
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
21350
21372
|
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
21351
21373
|
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
@@ -21413,7 +21435,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21413
21435
|
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21414
21436
|
deviceId: number(),
|
|
21415
21437
|
trackId: string(),
|
|
21416
|
-
kind: ParkedFrameKindSchema
|
|
21438
|
+
kind: ParkedFrameKindSchema,
|
|
21439
|
+
/**
|
|
21440
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
21441
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
21442
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
21443
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
21444
|
+
*/
|
|
21445
|
+
acceptJpegBytes: boolean().optional()
|
|
21417
21446
|
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21418
21447
|
deviceId: number(),
|
|
21419
21448
|
trackId: string()
|
package/dist/addon.mjs
CHANGED
|
@@ -20694,6 +20694,14 @@ var NativeCropResultSchema = object({
|
|
|
20694
20694
|
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
20695
20695
|
*/
|
|
20696
20696
|
jpeg: string().optional(),
|
|
20697
|
+
/**
|
|
20698
|
+
* The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
|
|
20699
|
+
* `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
|
|
20700
|
+
* `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
|
|
20701
|
+
* `bytes` above has crossed this boundary as a `Uint8Array` all along — so
|
|
20702
|
+
* base64 was buying nothing but a multi-megabyte string in the relay's heap.
|
|
20703
|
+
*/
|
|
20704
|
+
jpegBytes: _instanceof(Uint8Array).optional(),
|
|
20697
20705
|
width: number().int().positive(),
|
|
20698
20706
|
height: number().int().positive(),
|
|
20699
20707
|
/**
|
|
@@ -20760,7 +20768,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
|
20760
20768
|
})]);
|
|
20761
20769
|
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20762
20770
|
var ParkedTrackFrameSchema = object({
|
|
20763
|
-
|
|
20771
|
+
/**
|
|
20772
|
+
* Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
|
|
20773
|
+
* `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
|
|
20774
|
+
* Exactly one of the two is present.
|
|
20775
|
+
*/
|
|
20776
|
+
jpeg: string().optional(),
|
|
20777
|
+
/** The same JPEG as bytes, for a caller that declared it reads them (D462). */
|
|
20778
|
+
jpegBytes: _instanceof(Uint8Array).optional(),
|
|
20764
20779
|
width: number().int().positive(),
|
|
20765
20780
|
height: number().int().positive(),
|
|
20766
20781
|
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
@@ -21347,6 +21362,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21347
21362
|
bbox: NativeCropBboxSchema,
|
|
21348
21363
|
maxWidth: number().int().positive().optional(),
|
|
21349
21364
|
/**
|
|
21365
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
21366
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
21367
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
21368
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
21369
|
+
*/
|
|
21370
|
+
acceptJpegBytes: boolean().optional(),
|
|
21371
|
+
/**
|
|
21350
21372
|
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
21351
21373
|
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
21352
21374
|
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
@@ -21414,7 +21436,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21414
21436
|
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21415
21437
|
deviceId: number(),
|
|
21416
21438
|
trackId: string(),
|
|
21417
|
-
kind: ParkedFrameKindSchema
|
|
21439
|
+
kind: ParkedFrameKindSchema,
|
|
21440
|
+
/**
|
|
21441
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
21442
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
21443
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
21444
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
21445
|
+
*/
|
|
21446
|
+
acceptJpegBytes: boolean().optional()
|
|
21418
21447
|
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21419
21448
|
deviceId: number(),
|
|
21420
21449
|
trackId: string()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-amcrest",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.99",
|
|
4
4
|
"description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|