@camstack/addon-provider-ecowitt 0.2.17 → 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
@@ -19405,7 +19405,31 @@ DeviceType.Camera, method(object({
19405
19405
  lastCapturedAt: number().nullable(),
19406
19406
  cacheAgeMs: number().nullable(),
19407
19407
  etag: string().nullable()
19408
- }))), systemMethod(object({
19408
+ }))), systemMethod(object({ deviceId: number() }), object({
19409
+ /** The battery slice as read, or null when the device has none. */
19410
+ battery: object({
19411
+ sleeping: boolean(),
19412
+ lastUpdated: number(),
19413
+ lastContactAt: number().optional()
19414
+ }).nullable(),
19415
+ /** The resolved snapshot state (what the overlay decision used). */
19416
+ state: object({
19417
+ isBattery: boolean(),
19418
+ reason: _enum([
19419
+ "disabled",
19420
+ "sleeping",
19421
+ "unreachable",
19422
+ "waking"
19423
+ ]).nullable()
19424
+ }),
19425
+ /** The cached frame behind the next paint. */
19426
+ frame: object({
19427
+ capturedAt: number().nullable(),
19428
+ ageMs: number().nullable()
19429
+ }),
19430
+ /** A wake window is currently open (the Waking overlay's source). */
19431
+ waking: boolean()
19432
+ })), systemMethod(object({
19409
19433
  /** The tiles a surface is actually rendering. One entry per (device,
19410
19434
  * width) the caller will paint — the width is snapped to the server's
19411
19435
  * ladder and becomes part of the link's SIGNED identity. */
@@ -19444,7 +19468,14 @@ targets: array(object({
19444
19468
  "sleeping",
19445
19469
  "unreachable",
19446
19470
  "waking"
19447
- ]).nullable()
19471
+ ]).nullable(),
19472
+ /** A battery camera (whatever its current state). An AWAKE battery
19473
+ * camera is deliberately NOT recaptured on the poll cadence — every
19474
+ * capture is a camera hit that would keep it out of sleep — so its
19475
+ * cached frame legitimately ages past the currency ceiling while
19476
+ * nothing is streaming. A surface must keep painting it (a fresh
19477
+ * frame is captured at each wake), not blank to "unavailable". */
19478
+ battery: boolean()
19448
19479
  })));
19449
19480
  /**
19450
19481
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -33993,6 +34024,12 @@ Object.freeze({
33993
34024
  addonId: null,
33994
34025
  access: "view"
33995
34026
  },
34027
+ "snapshot.getDebugState": {
34028
+ capName: "snapshot",
34029
+ capScope: "device",
34030
+ addonId: null,
34031
+ access: "view"
34032
+ },
33996
34033
  "snapshot.getSnapshot": {
33997
34034
  capName: "snapshot",
33998
34035
  capScope: "device",
@@ -36590,6 +36627,11 @@ Object.freeze({
36590
36627
  form: "single",
36591
36628
  optional: false
36592
36629
  }],
36630
+ "snapshot.getDebugState": [{
36631
+ name: "deviceId",
36632
+ form: "single",
36633
+ optional: false
36634
+ }],
36593
36635
  "snapshot.getSnapshot": [{
36594
36636
  name: "deviceId",
36595
36637
  form: "single",
package/dist/addon.mjs CHANGED
@@ -19404,7 +19404,31 @@ DeviceType.Camera, method(object({
19404
19404
  lastCapturedAt: number().nullable(),
19405
19405
  cacheAgeMs: number().nullable(),
19406
19406
  etag: string().nullable()
19407
- }))), systemMethod(object({
19407
+ }))), systemMethod(object({ deviceId: number() }), object({
19408
+ /** The battery slice as read, or null when the device has none. */
19409
+ battery: object({
19410
+ sleeping: boolean(),
19411
+ lastUpdated: number(),
19412
+ lastContactAt: number().optional()
19413
+ }).nullable(),
19414
+ /** The resolved snapshot state (what the overlay decision used). */
19415
+ state: object({
19416
+ isBattery: boolean(),
19417
+ reason: _enum([
19418
+ "disabled",
19419
+ "sleeping",
19420
+ "unreachable",
19421
+ "waking"
19422
+ ]).nullable()
19423
+ }),
19424
+ /** The cached frame behind the next paint. */
19425
+ frame: object({
19426
+ capturedAt: number().nullable(),
19427
+ ageMs: number().nullable()
19428
+ }),
19429
+ /** A wake window is currently open (the Waking overlay's source). */
19430
+ waking: boolean()
19431
+ })), systemMethod(object({
19408
19432
  /** The tiles a surface is actually rendering. One entry per (device,
19409
19433
  * width) the caller will paint — the width is snapped to the server's
19410
19434
  * ladder and becomes part of the link's SIGNED identity. */
@@ -19443,7 +19467,14 @@ targets: array(object({
19443
19467
  "sleeping",
19444
19468
  "unreachable",
19445
19469
  "waking"
19446
- ]).nullable()
19470
+ ]).nullable(),
19471
+ /** A battery camera (whatever its current state). An AWAKE battery
19472
+ * camera is deliberately NOT recaptured on the poll cadence — every
19473
+ * capture is a camera hit that would keep it out of sleep — so its
19474
+ * cached frame legitimately ages past the currency ceiling while
19475
+ * nothing is streaming. A surface must keep painting it (a fresh
19476
+ * frame is captured at each wake), not blank to "unavailable". */
19477
+ battery: boolean()
19447
19478
  })));
19448
19479
  /**
19449
19480
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -33992,6 +34023,12 @@ Object.freeze({
33992
34023
  addonId: null,
33993
34024
  access: "view"
33994
34025
  },
34026
+ "snapshot.getDebugState": {
34027
+ capName: "snapshot",
34028
+ capScope: "device",
34029
+ addonId: null,
34030
+ access: "view"
34031
+ },
33995
34032
  "snapshot.getSnapshot": {
33996
34033
  capName: "snapshot",
33997
34034
  capScope: "device",
@@ -36589,6 +36626,11 @@ Object.freeze({
36589
36626
  form: "single",
36590
36627
  optional: false
36591
36628
  }],
36629
+ "snapshot.getDebugState": [{
36630
+ name: "deviceId",
36631
+ form: "single",
36632
+ optional: false
36633
+ }],
36592
36634
  "snapshot.getSnapshot": [{
36593
36635
  name: "deviceId",
36594
36636
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-ecowitt",
3
- "version": "0.2.17",
3
+ "version": "0.2.19",
4
4
  "description": "Ecowitt weather-station device-provider addon for CamStack — wraps the @apocaliss92/nodewitt local-poll / push client",
5
5
  "keywords": [
6
6
  "camstack",