@camstack/addon-provider-dreame 0.2.18 → 0.2.20

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
@@ -69924,7 +69924,31 @@ DeviceType.Camera, method(object({
69924
69924
  lastCapturedAt: number().nullable(),
69925
69925
  cacheAgeMs: number().nullable(),
69926
69926
  etag: string().nullable()
69927
- }))), systemMethod(object({
69927
+ }))), systemMethod(object({ deviceId: number() }), object({
69928
+ /** The battery slice as read, or null when the device has none. */
69929
+ battery: object({
69930
+ sleeping: boolean(),
69931
+ lastUpdated: number(),
69932
+ lastContactAt: number().optional()
69933
+ }).nullable(),
69934
+ /** The resolved snapshot state (what the overlay decision used). */
69935
+ state: object({
69936
+ isBattery: boolean(),
69937
+ reason: _enum([
69938
+ "disabled",
69939
+ "sleeping",
69940
+ "unreachable",
69941
+ "waking"
69942
+ ]).nullable()
69943
+ }),
69944
+ /** The cached frame behind the next paint. */
69945
+ frame: object({
69946
+ capturedAt: number().nullable(),
69947
+ ageMs: number().nullable()
69948
+ }),
69949
+ /** A wake window is currently open (the Waking overlay's source). */
69950
+ waking: boolean()
69951
+ })), systemMethod(object({
69928
69952
  /** The tiles a surface is actually rendering. One entry per (device,
69929
69953
  * width) the caller will paint — the width is snapped to the server's
69930
69954
  * ladder and becomes part of the link's SIGNED identity. */
@@ -69963,7 +69987,14 @@ targets: array(object({
69963
69987
  "sleeping",
69964
69988
  "unreachable",
69965
69989
  "waking"
69966
- ]).nullable()
69990
+ ]).nullable(),
69991
+ /** A battery camera (whatever its current state). An AWAKE battery
69992
+ * camera is deliberately NOT recaptured on the poll cadence — every
69993
+ * capture is a camera hit that would keep it out of sleep — so its
69994
+ * cached frame legitimately ages past the currency ceiling while
69995
+ * nothing is streaming. A surface must keep painting it (a fresh
69996
+ * frame is captured at each wake), not blank to "unavailable". */
69997
+ battery: boolean()
69967
69998
  })));
69968
69999
  /**
69969
70000
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -84537,6 +84568,12 @@ Object.freeze({
84537
84568
  addonId: null,
84538
84569
  access: "view"
84539
84570
  },
84571
+ "snapshot.getDebugState": {
84572
+ capName: "snapshot",
84573
+ capScope: "device",
84574
+ addonId: null,
84575
+ access: "view"
84576
+ },
84540
84577
  "snapshot.getSnapshot": {
84541
84578
  capName: "snapshot",
84542
84579
  capScope: "device",
@@ -87134,6 +87171,11 @@ Object.freeze({
87134
87171
  form: "single",
87135
87172
  optional: false
87136
87173
  }],
87174
+ "snapshot.getDebugState": [{
87175
+ name: "deviceId",
87176
+ form: "single",
87177
+ optional: false
87178
+ }],
87137
87179
  "snapshot.getSnapshot": [{
87138
87180
  name: "deviceId",
87139
87181
  form: "single",
package/dist/addon.mjs CHANGED
@@ -69924,7 +69924,31 @@ DeviceType.Camera, method(object({
69924
69924
  lastCapturedAt: number().nullable(),
69925
69925
  cacheAgeMs: number().nullable(),
69926
69926
  etag: string().nullable()
69927
- }))), systemMethod(object({
69927
+ }))), systemMethod(object({ deviceId: number() }), object({
69928
+ /** The battery slice as read, or null when the device has none. */
69929
+ battery: object({
69930
+ sleeping: boolean(),
69931
+ lastUpdated: number(),
69932
+ lastContactAt: number().optional()
69933
+ }).nullable(),
69934
+ /** The resolved snapshot state (what the overlay decision used). */
69935
+ state: object({
69936
+ isBattery: boolean(),
69937
+ reason: _enum([
69938
+ "disabled",
69939
+ "sleeping",
69940
+ "unreachable",
69941
+ "waking"
69942
+ ]).nullable()
69943
+ }),
69944
+ /** The cached frame behind the next paint. */
69945
+ frame: object({
69946
+ capturedAt: number().nullable(),
69947
+ ageMs: number().nullable()
69948
+ }),
69949
+ /** A wake window is currently open (the Waking overlay's source). */
69950
+ waking: boolean()
69951
+ })), systemMethod(object({
69928
69952
  /** The tiles a surface is actually rendering. One entry per (device,
69929
69953
  * width) the caller will paint — the width is snapped to the server's
69930
69954
  * ladder and becomes part of the link's SIGNED identity. */
@@ -69963,7 +69987,14 @@ targets: array(object({
69963
69987
  "sleeping",
69964
69988
  "unreachable",
69965
69989
  "waking"
69966
- ]).nullable()
69990
+ ]).nullable(),
69991
+ /** A battery camera (whatever its current state). An AWAKE battery
69992
+ * camera is deliberately NOT recaptured on the poll cadence — every
69993
+ * capture is a camera hit that would keep it out of sleep — so its
69994
+ * cached frame legitimately ages past the currency ceiling while
69995
+ * nothing is streaming. A surface must keep painting it (a fresh
69996
+ * frame is captured at each wake), not blank to "unavailable". */
69997
+ battery: boolean()
69967
69998
  })));
69968
69999
  /**
69969
70000
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -84537,6 +84568,12 @@ Object.freeze({
84537
84568
  addonId: null,
84538
84569
  access: "view"
84539
84570
  },
84571
+ "snapshot.getDebugState": {
84572
+ capName: "snapshot",
84573
+ capScope: "device",
84574
+ addonId: null,
84575
+ access: "view"
84576
+ },
84540
84577
  "snapshot.getSnapshot": {
84541
84578
  capName: "snapshot",
84542
84579
  capScope: "device",
@@ -87134,6 +87171,11 @@ Object.freeze({
87134
87171
  form: "single",
87135
87172
  optional: false
87136
87173
  }],
87174
+ "snapshot.getDebugState": [{
87175
+ name: "deviceId",
87176
+ form: "single",
87177
+ optional: false
87178
+ }],
87137
87179
  "snapshot.getSnapshot": [{
87138
87180
  name: "deviceId",
87139
87181
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreame",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
4
4
  "description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
5
5
  "keywords": [
6
6
  "camstack",