@camstack/addon-provider-rademacher 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
@@ -20387,7 +20387,31 @@ DeviceType.Camera, method(object({
20387
20387
  lastCapturedAt: number().nullable(),
20388
20388
  cacheAgeMs: number().nullable(),
20389
20389
  etag: string().nullable()
20390
- }))), systemMethod(object({
20390
+ }))), systemMethod(object({ deviceId: number() }), object({
20391
+ /** The battery slice as read, or null when the device has none. */
20392
+ battery: object({
20393
+ sleeping: boolean(),
20394
+ lastUpdated: number(),
20395
+ lastContactAt: number().optional()
20396
+ }).nullable(),
20397
+ /** The resolved snapshot state (what the overlay decision used). */
20398
+ state: object({
20399
+ isBattery: boolean(),
20400
+ reason: _enum([
20401
+ "disabled",
20402
+ "sleeping",
20403
+ "unreachable",
20404
+ "waking"
20405
+ ]).nullable()
20406
+ }),
20407
+ /** The cached frame behind the next paint. */
20408
+ frame: object({
20409
+ capturedAt: number().nullable(),
20410
+ ageMs: number().nullable()
20411
+ }),
20412
+ /** A wake window is currently open (the Waking overlay's source). */
20413
+ waking: boolean()
20414
+ })), systemMethod(object({
20391
20415
  /** The tiles a surface is actually rendering. One entry per (device,
20392
20416
  * width) the caller will paint — the width is snapped to the server's
20393
20417
  * ladder and becomes part of the link's SIGNED identity. */
@@ -20426,7 +20450,14 @@ targets: array(object({
20426
20450
  "sleeping",
20427
20451
  "unreachable",
20428
20452
  "waking"
20429
- ]).nullable()
20453
+ ]).nullable(),
20454
+ /** A battery camera (whatever its current state). An AWAKE battery
20455
+ * camera is deliberately NOT recaptured on the poll cadence — every
20456
+ * capture is a camera hit that would keep it out of sleep — so its
20457
+ * cached frame legitimately ages past the currency ceiling while
20458
+ * nothing is streaming. A surface must keep painting it (a fresh
20459
+ * frame is captured at each wake), not blank to "unavailable". */
20460
+ battery: boolean()
20430
20461
  })));
20431
20462
  /**
20432
20463
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -34975,6 +35006,12 @@ Object.freeze({
34975
35006
  addonId: null,
34976
35007
  access: "view"
34977
35008
  },
35009
+ "snapshot.getDebugState": {
35010
+ capName: "snapshot",
35011
+ capScope: "device",
35012
+ addonId: null,
35013
+ access: "view"
35014
+ },
34978
35015
  "snapshot.getSnapshot": {
34979
35016
  capName: "snapshot",
34980
35017
  capScope: "device",
@@ -37572,6 +37609,11 @@ Object.freeze({
37572
37609
  form: "single",
37573
37610
  optional: false
37574
37611
  }],
37612
+ "snapshot.getDebugState": [{
37613
+ name: "deviceId",
37614
+ form: "single",
37615
+ optional: false
37616
+ }],
37575
37617
  "snapshot.getSnapshot": [{
37576
37618
  name: "deviceId",
37577
37619
  form: "single",
package/dist/addon.mjs CHANGED
@@ -20386,7 +20386,31 @@ DeviceType.Camera, method(object({
20386
20386
  lastCapturedAt: number().nullable(),
20387
20387
  cacheAgeMs: number().nullable(),
20388
20388
  etag: string().nullable()
20389
- }))), systemMethod(object({
20389
+ }))), systemMethod(object({ deviceId: number() }), object({
20390
+ /** The battery slice as read, or null when the device has none. */
20391
+ battery: object({
20392
+ sleeping: boolean(),
20393
+ lastUpdated: number(),
20394
+ lastContactAt: number().optional()
20395
+ }).nullable(),
20396
+ /** The resolved snapshot state (what the overlay decision used). */
20397
+ state: object({
20398
+ isBattery: boolean(),
20399
+ reason: _enum([
20400
+ "disabled",
20401
+ "sleeping",
20402
+ "unreachable",
20403
+ "waking"
20404
+ ]).nullable()
20405
+ }),
20406
+ /** The cached frame behind the next paint. */
20407
+ frame: object({
20408
+ capturedAt: number().nullable(),
20409
+ ageMs: number().nullable()
20410
+ }),
20411
+ /** A wake window is currently open (the Waking overlay's source). */
20412
+ waking: boolean()
20413
+ })), systemMethod(object({
20390
20414
  /** The tiles a surface is actually rendering. One entry per (device,
20391
20415
  * width) the caller will paint — the width is snapped to the server's
20392
20416
  * ladder and becomes part of the link's SIGNED identity. */
@@ -20425,7 +20449,14 @@ targets: array(object({
20425
20449
  "sleeping",
20426
20450
  "unreachable",
20427
20451
  "waking"
20428
- ]).nullable()
20452
+ ]).nullable(),
20453
+ /** A battery camera (whatever its current state). An AWAKE battery
20454
+ * camera is deliberately NOT recaptured on the poll cadence — every
20455
+ * capture is a camera hit that would keep it out of sleep — so its
20456
+ * cached frame legitimately ages past the currency ceiling while
20457
+ * nothing is streaming. A surface must keep painting it (a fresh
20458
+ * frame is captured at each wake), not blank to "unavailable". */
20459
+ battery: boolean()
20429
20460
  })));
20430
20461
  /**
20431
20462
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -34974,6 +35005,12 @@ Object.freeze({
34974
35005
  addonId: null,
34975
35006
  access: "view"
34976
35007
  },
35008
+ "snapshot.getDebugState": {
35009
+ capName: "snapshot",
35010
+ capScope: "device",
35011
+ addonId: null,
35012
+ access: "view"
35013
+ },
34977
35014
  "snapshot.getSnapshot": {
34978
35015
  capName: "snapshot",
34979
35016
  capScope: "device",
@@ -37571,6 +37608,11 @@ Object.freeze({
37571
37608
  form: "single",
37572
37609
  optional: false
37573
37610
  }],
37611
+ "snapshot.getDebugState": [{
37612
+ name: "deviceId",
37613
+ form: "single",
37614
+ optional: false
37615
+ }],
37574
37616
  "snapshot.getSnapshot": [{
37575
37617
  name: "deviceId",
37576
37618
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-rademacher",
3
- "version": "0.2.17",
3
+ "version": "0.2.19",
4
4
  "description": "Rademacher HomePilot device-provider addon for CamStack — wraps the @apocaliss92/noderademacher local-hub client (roller shutters over the cover cap)",
5
5
  "keywords": [
6
6
  "camstack",