@camstack/addon-provider-tuya 0.2.18 → 0.2.19

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
@@ -20239,7 +20239,31 @@ DeviceType.Camera, method(object({
20239
20239
  lastCapturedAt: number().nullable(),
20240
20240
  cacheAgeMs: number().nullable(),
20241
20241
  etag: string().nullable()
20242
- }))), systemMethod(object({
20242
+ }))), systemMethod(object({ deviceId: number() }), object({
20243
+ /** The battery slice as read, or null when the device has none. */
20244
+ battery: object({
20245
+ sleeping: boolean(),
20246
+ lastUpdated: number(),
20247
+ lastContactAt: number().optional()
20248
+ }).nullable(),
20249
+ /** The resolved snapshot state (what the overlay decision used). */
20250
+ state: object({
20251
+ isBattery: boolean(),
20252
+ reason: _enum([
20253
+ "disabled",
20254
+ "sleeping",
20255
+ "unreachable",
20256
+ "waking"
20257
+ ]).nullable()
20258
+ }),
20259
+ /** The cached frame behind the next paint. */
20260
+ frame: object({
20261
+ capturedAt: number().nullable(),
20262
+ ageMs: number().nullable()
20263
+ }),
20264
+ /** A wake window is currently open (the Waking overlay's source). */
20265
+ waking: boolean()
20266
+ })), systemMethod(object({
20243
20267
  /** The tiles a surface is actually rendering. One entry per (device,
20244
20268
  * width) the caller will paint — the width is snapped to the server's
20245
20269
  * ladder and becomes part of the link's SIGNED identity. */
@@ -34835,6 +34859,12 @@ Object.freeze({
34835
34859
  addonId: null,
34836
34860
  access: "view"
34837
34861
  },
34862
+ "snapshot.getDebugState": {
34863
+ capName: "snapshot",
34864
+ capScope: "device",
34865
+ addonId: null,
34866
+ access: "view"
34867
+ },
34838
34868
  "snapshot.getSnapshot": {
34839
34869
  capName: "snapshot",
34840
34870
  capScope: "device",
@@ -37432,6 +37462,11 @@ Object.freeze({
37432
37462
  form: "single",
37433
37463
  optional: false
37434
37464
  }],
37465
+ "snapshot.getDebugState": [{
37466
+ name: "deviceId",
37467
+ form: "single",
37468
+ optional: false
37469
+ }],
37435
37470
  "snapshot.getSnapshot": [{
37436
37471
  name: "deviceId",
37437
37472
  form: "single",
package/dist/addon.mjs CHANGED
@@ -20238,7 +20238,31 @@ DeviceType.Camera, method(object({
20238
20238
  lastCapturedAt: number().nullable(),
20239
20239
  cacheAgeMs: number().nullable(),
20240
20240
  etag: string().nullable()
20241
- }))), systemMethod(object({
20241
+ }))), systemMethod(object({ deviceId: number() }), object({
20242
+ /** The battery slice as read, or null when the device has none. */
20243
+ battery: object({
20244
+ sleeping: boolean(),
20245
+ lastUpdated: number(),
20246
+ lastContactAt: number().optional()
20247
+ }).nullable(),
20248
+ /** The resolved snapshot state (what the overlay decision used). */
20249
+ state: object({
20250
+ isBattery: boolean(),
20251
+ reason: _enum([
20252
+ "disabled",
20253
+ "sleeping",
20254
+ "unreachable",
20255
+ "waking"
20256
+ ]).nullable()
20257
+ }),
20258
+ /** The cached frame behind the next paint. */
20259
+ frame: object({
20260
+ capturedAt: number().nullable(),
20261
+ ageMs: number().nullable()
20262
+ }),
20263
+ /** A wake window is currently open (the Waking overlay's source). */
20264
+ waking: boolean()
20265
+ })), systemMethod(object({
20242
20266
  /** The tiles a surface is actually rendering. One entry per (device,
20243
20267
  * width) the caller will paint — the width is snapped to the server's
20244
20268
  * ladder and becomes part of the link's SIGNED identity. */
@@ -34834,6 +34858,12 @@ Object.freeze({
34834
34858
  addonId: null,
34835
34859
  access: "view"
34836
34860
  },
34861
+ "snapshot.getDebugState": {
34862
+ capName: "snapshot",
34863
+ capScope: "device",
34864
+ addonId: null,
34865
+ access: "view"
34866
+ },
34837
34867
  "snapshot.getSnapshot": {
34838
34868
  capName: "snapshot",
34839
34869
  capScope: "device",
@@ -37431,6 +37461,11 @@ Object.freeze({
37431
37461
  form: "single",
37432
37462
  optional: false
37433
37463
  }],
37464
+ "snapshot.getDebugState": [{
37465
+ name: "deviceId",
37466
+ form: "single",
37467
+ optional: false
37468
+ }],
37434
37469
  "snapshot.getSnapshot": [{
37435
37470
  name: "deviceId",
37436
37471
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-tuya",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
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",