@camstack/addon-matter-broker 0.2.17 → 0.2.18

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
@@ -19482,7 +19482,31 @@ DeviceType.Camera, method(object({
19482
19482
  lastCapturedAt: number().nullable(),
19483
19483
  cacheAgeMs: number().nullable(),
19484
19484
  etag: string$2().nullable()
19485
- }))), systemMethod(object({
19485
+ }))), systemMethod(object({ deviceId: number() }), object({
19486
+ /** The battery slice as read, or null when the device has none. */
19487
+ battery: object({
19488
+ sleeping: boolean(),
19489
+ lastUpdated: number(),
19490
+ lastContactAt: number().optional()
19491
+ }).nullable(),
19492
+ /** The resolved snapshot state (what the overlay decision used). */
19493
+ state: object({
19494
+ isBattery: boolean(),
19495
+ reason: _enum([
19496
+ "disabled",
19497
+ "sleeping",
19498
+ "unreachable",
19499
+ "waking"
19500
+ ]).nullable()
19501
+ }),
19502
+ /** The cached frame behind the next paint. */
19503
+ frame: object({
19504
+ capturedAt: number().nullable(),
19505
+ ageMs: number().nullable()
19506
+ }),
19507
+ /** A wake window is currently open (the Waking overlay's source). */
19508
+ waking: boolean()
19509
+ })), systemMethod(object({
19486
19510
  /** The tiles a surface is actually rendering. One entry per (device,
19487
19511
  * width) the caller will paint — the width is snapped to the server's
19488
19512
  * ladder and becomes part of the link's SIGNED identity. */
@@ -34087,6 +34111,12 @@ Object.freeze({
34087
34111
  addonId: null,
34088
34112
  access: "view"
34089
34113
  },
34114
+ "snapshot.getDebugState": {
34115
+ capName: "snapshot",
34116
+ capScope: "device",
34117
+ addonId: null,
34118
+ access: "view"
34119
+ },
34090
34120
  "snapshot.getSnapshot": {
34091
34121
  capName: "snapshot",
34092
34122
  capScope: "device",
@@ -36684,6 +36714,11 @@ Object.freeze({
36684
36714
  form: "single",
36685
36715
  optional: false
36686
36716
  }],
36717
+ "snapshot.getDebugState": [{
36718
+ name: "deviceId",
36719
+ form: "single",
36720
+ optional: false
36721
+ }],
36687
36722
  "snapshot.getSnapshot": [{
36688
36723
  name: "deviceId",
36689
36724
  form: "single",
package/dist/addon.mjs CHANGED
@@ -19480,7 +19480,31 @@ DeviceType.Camera, method(object({
19480
19480
  lastCapturedAt: number().nullable(),
19481
19481
  cacheAgeMs: number().nullable(),
19482
19482
  etag: string$2().nullable()
19483
- }))), systemMethod(object({
19483
+ }))), systemMethod(object({ deviceId: number() }), object({
19484
+ /** The battery slice as read, or null when the device has none. */
19485
+ battery: object({
19486
+ sleeping: boolean(),
19487
+ lastUpdated: number(),
19488
+ lastContactAt: number().optional()
19489
+ }).nullable(),
19490
+ /** The resolved snapshot state (what the overlay decision used). */
19491
+ state: object({
19492
+ isBattery: boolean(),
19493
+ reason: _enum([
19494
+ "disabled",
19495
+ "sleeping",
19496
+ "unreachable",
19497
+ "waking"
19498
+ ]).nullable()
19499
+ }),
19500
+ /** The cached frame behind the next paint. */
19501
+ frame: object({
19502
+ capturedAt: number().nullable(),
19503
+ ageMs: number().nullable()
19504
+ }),
19505
+ /** A wake window is currently open (the Waking overlay's source). */
19506
+ waking: boolean()
19507
+ })), systemMethod(object({
19484
19508
  /** The tiles a surface is actually rendering. One entry per (device,
19485
19509
  * width) the caller will paint — the width is snapped to the server's
19486
19510
  * ladder and becomes part of the link's SIGNED identity. */
@@ -34085,6 +34109,12 @@ Object.freeze({
34085
34109
  addonId: null,
34086
34110
  access: "view"
34087
34111
  },
34112
+ "snapshot.getDebugState": {
34113
+ capName: "snapshot",
34114
+ capScope: "device",
34115
+ addonId: null,
34116
+ access: "view"
34117
+ },
34088
34118
  "snapshot.getSnapshot": {
34089
34119
  capName: "snapshot",
34090
34120
  capScope: "device",
@@ -36682,6 +36712,11 @@ Object.freeze({
36682
36712
  form: "single",
36683
36713
  optional: false
36684
36714
  }],
36715
+ "snapshot.getDebugState": [{
36716
+ name: "deviceId",
36717
+ form: "single",
36718
+ optional: false
36719
+ }],
36685
36720
  "snapshot.getSnapshot": [{
36686
36721
  name: "deviceId",
36687
36722
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-matter-broker",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
5
5
  "keywords": [
6
6
  "camstack",