@camstack/addon-provider-tuya 0.2.96 → 0.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 +31 -2
- package/dist/addon.mjs +31 -2
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -21535,6 +21535,14 @@ var NativeCropResultSchema = object({
|
|
|
21535
21535
|
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
21536
21536
|
*/
|
|
21537
21537
|
jpeg: string().optional(),
|
|
21538
|
+
/**
|
|
21539
|
+
* The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
|
|
21540
|
+
* `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
|
|
21541
|
+
* `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
|
|
21542
|
+
* `bytes` above has crossed this boundary as a `Uint8Array` all along — so
|
|
21543
|
+
* base64 was buying nothing but a multi-megabyte string in the relay's heap.
|
|
21544
|
+
*/
|
|
21545
|
+
jpegBytes: _instanceof(Uint8Array).optional(),
|
|
21538
21546
|
width: number().int().positive(),
|
|
21539
21547
|
height: number().int().positive(),
|
|
21540
21548
|
/**
|
|
@@ -21601,7 +21609,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
|
21601
21609
|
})]);
|
|
21602
21610
|
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
21603
21611
|
var ParkedTrackFrameSchema = object({
|
|
21604
|
-
|
|
21612
|
+
/**
|
|
21613
|
+
* Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
|
|
21614
|
+
* `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
|
|
21615
|
+
* Exactly one of the two is present.
|
|
21616
|
+
*/
|
|
21617
|
+
jpeg: string().optional(),
|
|
21618
|
+
/** The same JPEG as bytes, for a caller that declared it reads them (D462). */
|
|
21619
|
+
jpegBytes: _instanceof(Uint8Array).optional(),
|
|
21605
21620
|
width: number().int().positive(),
|
|
21606
21621
|
height: number().int().positive(),
|
|
21607
21622
|
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
@@ -22188,6 +22203,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
22188
22203
|
bbox: NativeCropBboxSchema,
|
|
22189
22204
|
maxWidth: number().int().positive().optional(),
|
|
22190
22205
|
/**
|
|
22206
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
22207
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
22208
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
22209
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
22210
|
+
*/
|
|
22211
|
+
acceptJpegBytes: boolean().optional(),
|
|
22212
|
+
/**
|
|
22191
22213
|
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
22192
22214
|
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
22193
22215
|
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
@@ -22255,7 +22277,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
22255
22277
|
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
22256
22278
|
deviceId: number(),
|
|
22257
22279
|
trackId: string(),
|
|
22258
|
-
kind: ParkedFrameKindSchema
|
|
22280
|
+
kind: ParkedFrameKindSchema,
|
|
22281
|
+
/**
|
|
22282
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
22283
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
22284
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
22285
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
22286
|
+
*/
|
|
22287
|
+
acceptJpegBytes: boolean().optional()
|
|
22259
22288
|
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
22260
22289
|
deviceId: number(),
|
|
22261
22290
|
trackId: string()
|
package/dist/addon.mjs
CHANGED
|
@@ -21534,6 +21534,14 @@ var NativeCropResultSchema = object({
|
|
|
21534
21534
|
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
21535
21535
|
*/
|
|
21536
21536
|
jpeg: string().optional(),
|
|
21537
|
+
/**
|
|
21538
|
+
* The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
|
|
21539
|
+
* `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
|
|
21540
|
+
* `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
|
|
21541
|
+
* `bytes` above has crossed this boundary as a `Uint8Array` all along — so
|
|
21542
|
+
* base64 was buying nothing but a multi-megabyte string in the relay's heap.
|
|
21543
|
+
*/
|
|
21544
|
+
jpegBytes: _instanceof(Uint8Array).optional(),
|
|
21537
21545
|
width: number().int().positive(),
|
|
21538
21546
|
height: number().int().positive(),
|
|
21539
21547
|
/**
|
|
@@ -21600,7 +21608,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
|
21600
21608
|
})]);
|
|
21601
21609
|
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
21602
21610
|
var ParkedTrackFrameSchema = object({
|
|
21603
|
-
|
|
21611
|
+
/**
|
|
21612
|
+
* Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
|
|
21613
|
+
* `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
|
|
21614
|
+
* Exactly one of the two is present.
|
|
21615
|
+
*/
|
|
21616
|
+
jpeg: string().optional(),
|
|
21617
|
+
/** The same JPEG as bytes, for a caller that declared it reads them (D462). */
|
|
21618
|
+
jpegBytes: _instanceof(Uint8Array).optional(),
|
|
21604
21619
|
width: number().int().positive(),
|
|
21605
21620
|
height: number().int().positive(),
|
|
21606
21621
|
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
@@ -22187,6 +22202,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
22187
22202
|
bbox: NativeCropBboxSchema,
|
|
22188
22203
|
maxWidth: number().int().positive().optional(),
|
|
22189
22204
|
/**
|
|
22205
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
22206
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
22207
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
22208
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
22209
|
+
*/
|
|
22210
|
+
acceptJpegBytes: boolean().optional(),
|
|
22211
|
+
/**
|
|
22190
22212
|
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
22191
22213
|
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
22192
22214
|
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
@@ -22254,7 +22276,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
22254
22276
|
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
22255
22277
|
deviceId: number(),
|
|
22256
22278
|
trackId: string(),
|
|
22257
|
-
kind: ParkedFrameKindSchema
|
|
22279
|
+
kind: ParkedFrameKindSchema,
|
|
22280
|
+
/**
|
|
22281
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
22282
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
22283
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
22284
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
22285
|
+
*/
|
|
22286
|
+
acceptJpegBytes: boolean().optional()
|
|
22258
22287
|
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
22259
22288
|
deviceId: number(),
|
|
22260
22289
|
trackId: string()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-tuya",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.97",
|
|
4
4
|
"description": "Tuya / Smart Life device-provider addon for CamStack — account-onboarded (Tuya IoT cloud fetch of device localKeys) + LOCAL DP control via the @apocaliss92/nodetuya encrypted-LAN client, exposing switch / water-heater-family kettle entities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|