@camstack/addon-mqtt-broker 1.2.18 → 1.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.
@@ -19157,7 +19157,31 @@ DeviceType.Camera, method(object({
19157
19157
  lastCapturedAt: number().nullable(),
19158
19158
  cacheAgeMs: number().nullable(),
19159
19159
  etag: string().nullable()
19160
- }))), systemMethod(object({
19160
+ }))), systemMethod(object({ deviceId: number() }), object({
19161
+ /** The battery slice as read, or null when the device has none. */
19162
+ battery: object({
19163
+ sleeping: boolean(),
19164
+ lastUpdated: number(),
19165
+ lastContactAt: number().optional()
19166
+ }).nullable(),
19167
+ /** The resolved snapshot state (what the overlay decision used). */
19168
+ state: object({
19169
+ isBattery: boolean(),
19170
+ reason: _enum([
19171
+ "disabled",
19172
+ "sleeping",
19173
+ "unreachable",
19174
+ "waking"
19175
+ ]).nullable()
19176
+ }),
19177
+ /** The cached frame behind the next paint. */
19178
+ frame: object({
19179
+ capturedAt: number().nullable(),
19180
+ ageMs: number().nullable()
19181
+ }),
19182
+ /** A wake window is currently open (the Waking overlay's source). */
19183
+ waking: boolean()
19184
+ })), systemMethod(object({
19161
19185
  /** The tiles a surface is actually rendering. One entry per (device,
19162
19186
  * width) the caller will paint — the width is snapped to the server's
19163
19187
  * ladder and becomes part of the link's SIGNED identity. */
@@ -19196,7 +19220,14 @@ targets: array(object({
19196
19220
  "sleeping",
19197
19221
  "unreachable",
19198
19222
  "waking"
19199
- ]).nullable()
19223
+ ]).nullable(),
19224
+ /** A battery camera (whatever its current state). An AWAKE battery
19225
+ * camera is deliberately NOT recaptured on the poll cadence — every
19226
+ * capture is a camera hit that would keep it out of sleep — so its
19227
+ * cached frame legitimately ages past the currency ceiling while
19228
+ * nothing is streaming. A surface must keep painting it (a fresh
19229
+ * frame is captured at each wake), not blank to "unavailable". */
19230
+ battery: boolean()
19200
19231
  })));
19201
19232
  /**
19202
19233
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -30372,6 +30403,12 @@ Object.freeze({
30372
30403
  addonId: null,
30373
30404
  access: "view"
30374
30405
  },
30406
+ "snapshot.getDebugState": {
30407
+ capName: "snapshot",
30408
+ capScope: "device",
30409
+ addonId: null,
30410
+ access: "view"
30411
+ },
30375
30412
  "snapshot.getSnapshot": {
30376
30413
  capName: "snapshot",
30377
30414
  capScope: "device",
@@ -32969,6 +33006,11 @@ Object.freeze({
32969
33006
  form: "single",
32970
33007
  optional: false
32971
33008
  }],
33009
+ "snapshot.getDebugState": [{
33010
+ name: "deviceId",
33011
+ form: "single",
33012
+ optional: false
33013
+ }],
32972
33014
  "snapshot.getSnapshot": [{
32973
33015
  name: "deviceId",
32974
33016
  form: "single",
@@ -19152,7 +19152,31 @@ DeviceType.Camera, method(object({
19152
19152
  lastCapturedAt: number().nullable(),
19153
19153
  cacheAgeMs: number().nullable(),
19154
19154
  etag: string().nullable()
19155
- }))), systemMethod(object({
19155
+ }))), systemMethod(object({ deviceId: number() }), object({
19156
+ /** The battery slice as read, or null when the device has none. */
19157
+ battery: object({
19158
+ sleeping: boolean(),
19159
+ lastUpdated: number(),
19160
+ lastContactAt: number().optional()
19161
+ }).nullable(),
19162
+ /** The resolved snapshot state (what the overlay decision used). */
19163
+ state: object({
19164
+ isBattery: boolean(),
19165
+ reason: _enum([
19166
+ "disabled",
19167
+ "sleeping",
19168
+ "unreachable",
19169
+ "waking"
19170
+ ]).nullable()
19171
+ }),
19172
+ /** The cached frame behind the next paint. */
19173
+ frame: object({
19174
+ capturedAt: number().nullable(),
19175
+ ageMs: number().nullable()
19176
+ }),
19177
+ /** A wake window is currently open (the Waking overlay's source). */
19178
+ waking: boolean()
19179
+ })), systemMethod(object({
19156
19180
  /** The tiles a surface is actually rendering. One entry per (device,
19157
19181
  * width) the caller will paint — the width is snapped to the server's
19158
19182
  * ladder and becomes part of the link's SIGNED identity. */
@@ -19191,7 +19215,14 @@ targets: array(object({
19191
19215
  "sleeping",
19192
19216
  "unreachable",
19193
19217
  "waking"
19194
- ]).nullable()
19218
+ ]).nullable(),
19219
+ /** A battery camera (whatever its current state). An AWAKE battery
19220
+ * camera is deliberately NOT recaptured on the poll cadence — every
19221
+ * capture is a camera hit that would keep it out of sleep — so its
19222
+ * cached frame legitimately ages past the currency ceiling while
19223
+ * nothing is streaming. A surface must keep painting it (a fresh
19224
+ * frame is captured at each wake), not blank to "unavailable". */
19225
+ battery: boolean()
19195
19226
  })));
19196
19227
  /**
19197
19228
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -30367,6 +30398,12 @@ Object.freeze({
30367
30398
  addonId: null,
30368
30399
  access: "view"
30369
30400
  },
30401
+ "snapshot.getDebugState": {
30402
+ capName: "snapshot",
30403
+ capScope: "device",
30404
+ addonId: null,
30405
+ access: "view"
30406
+ },
30370
30407
  "snapshot.getSnapshot": {
30371
30408
  capName: "snapshot",
30372
30409
  capScope: "device",
@@ -32964,6 +33001,11 @@ Object.freeze({
32964
33001
  form: "single",
32965
33002
  optional: false
32966
33003
  }],
33004
+ "snapshot.getDebugState": [{
33005
+ name: "deviceId",
33006
+ form: "single",
33007
+ optional: false
33008
+ }],
32967
33009
  "snapshot.getSnapshot": [{
32968
33010
  name: "deviceId",
32969
33011
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.2.18",
3
+ "version": "1.2.20",
4
4
  "description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
5
5
  "keywords": [
6
6
  "camstack",