@camstack/addon-import-alexa 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
@@ -19645,7 +19645,31 @@ DeviceType.Camera, method(object({
19645
19645
  lastCapturedAt: number().nullable(),
19646
19646
  cacheAgeMs: number().nullable(),
19647
19647
  etag: string().nullable()
19648
- }))), systemMethod(object({
19648
+ }))), systemMethod(object({ deviceId: number() }), object({
19649
+ /** The battery slice as read, or null when the device has none. */
19650
+ battery: object({
19651
+ sleeping: boolean(),
19652
+ lastUpdated: number(),
19653
+ lastContactAt: number().optional()
19654
+ }).nullable(),
19655
+ /** The resolved snapshot state (what the overlay decision used). */
19656
+ state: object({
19657
+ isBattery: boolean(),
19658
+ reason: _enum([
19659
+ "disabled",
19660
+ "sleeping",
19661
+ "unreachable",
19662
+ "waking"
19663
+ ]).nullable()
19664
+ }),
19665
+ /** The cached frame behind the next paint. */
19666
+ frame: object({
19667
+ capturedAt: number().nullable(),
19668
+ ageMs: number().nullable()
19669
+ }),
19670
+ /** A wake window is currently open (the Waking overlay's source). */
19671
+ waking: boolean()
19672
+ })), systemMethod(object({
19649
19673
  /** The tiles a surface is actually rendering. One entry per (device,
19650
19674
  * width) the caller will paint — the width is snapped to the server's
19651
19675
  * ladder and becomes part of the link's SIGNED identity. */
@@ -19684,7 +19708,14 @@ targets: array(object({
19684
19708
  "sleeping",
19685
19709
  "unreachable",
19686
19710
  "waking"
19687
- ]).nullable()
19711
+ ]).nullable(),
19712
+ /** A battery camera (whatever its current state). An AWAKE battery
19713
+ * camera is deliberately NOT recaptured on the poll cadence — every
19714
+ * capture is a camera hit that would keep it out of sleep — so its
19715
+ * cached frame legitimately ages past the currency ceiling while
19716
+ * nothing is streaming. A surface must keep painting it (a fresh
19717
+ * frame is captured at each wake), not blank to "unavailable". */
19718
+ battery: boolean()
19688
19719
  })));
19689
19720
  /**
19690
19721
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -34250,6 +34281,12 @@ Object.freeze({
34250
34281
  addonId: null,
34251
34282
  access: "view"
34252
34283
  },
34284
+ "snapshot.getDebugState": {
34285
+ capName: "snapshot",
34286
+ capScope: "device",
34287
+ addonId: null,
34288
+ access: "view"
34289
+ },
34253
34290
  "snapshot.getSnapshot": {
34254
34291
  capName: "snapshot",
34255
34292
  capScope: "device",
@@ -36847,6 +36884,11 @@ Object.freeze({
36847
36884
  form: "single",
36848
36885
  optional: false
36849
36886
  }],
36887
+ "snapshot.getDebugState": [{
36888
+ name: "deviceId",
36889
+ form: "single",
36890
+ optional: false
36891
+ }],
36850
36892
  "snapshot.getSnapshot": [{
36851
36893
  name: "deviceId",
36852
36894
  form: "single",
package/dist/addon.mjs CHANGED
@@ -19645,7 +19645,31 @@ DeviceType.Camera, method(object({
19645
19645
  lastCapturedAt: number().nullable(),
19646
19646
  cacheAgeMs: number().nullable(),
19647
19647
  etag: string().nullable()
19648
- }))), systemMethod(object({
19648
+ }))), systemMethod(object({ deviceId: number() }), object({
19649
+ /** The battery slice as read, or null when the device has none. */
19650
+ battery: object({
19651
+ sleeping: boolean(),
19652
+ lastUpdated: number(),
19653
+ lastContactAt: number().optional()
19654
+ }).nullable(),
19655
+ /** The resolved snapshot state (what the overlay decision used). */
19656
+ state: object({
19657
+ isBattery: boolean(),
19658
+ reason: _enum([
19659
+ "disabled",
19660
+ "sleeping",
19661
+ "unreachable",
19662
+ "waking"
19663
+ ]).nullable()
19664
+ }),
19665
+ /** The cached frame behind the next paint. */
19666
+ frame: object({
19667
+ capturedAt: number().nullable(),
19668
+ ageMs: number().nullable()
19669
+ }),
19670
+ /** A wake window is currently open (the Waking overlay's source). */
19671
+ waking: boolean()
19672
+ })), systemMethod(object({
19649
19673
  /** The tiles a surface is actually rendering. One entry per (device,
19650
19674
  * width) the caller will paint — the width is snapped to the server's
19651
19675
  * ladder and becomes part of the link's SIGNED identity. */
@@ -19684,7 +19708,14 @@ targets: array(object({
19684
19708
  "sleeping",
19685
19709
  "unreachable",
19686
19710
  "waking"
19687
- ]).nullable()
19711
+ ]).nullable(),
19712
+ /** A battery camera (whatever its current state). An AWAKE battery
19713
+ * camera is deliberately NOT recaptured on the poll cadence — every
19714
+ * capture is a camera hit that would keep it out of sleep — so its
19715
+ * cached frame legitimately ages past the currency ceiling while
19716
+ * nothing is streaming. A surface must keep painting it (a fresh
19717
+ * frame is captured at each wake), not blank to "unavailable". */
19718
+ battery: boolean()
19688
19719
  })));
19689
19720
  /**
19690
19721
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -34250,6 +34281,12 @@ Object.freeze({
34250
34281
  addonId: null,
34251
34282
  access: "view"
34252
34283
  },
34284
+ "snapshot.getDebugState": {
34285
+ capName: "snapshot",
34286
+ capScope: "device",
34287
+ addonId: null,
34288
+ access: "view"
34289
+ },
34253
34290
  "snapshot.getSnapshot": {
34254
34291
  capName: "snapshot",
34255
34292
  capScope: "device",
@@ -36847,6 +36884,11 @@ Object.freeze({
36847
36884
  form: "single",
36848
36885
  optional: false
36849
36886
  }],
36887
+ "snapshot.getDebugState": [{
36888
+ name: "deviceId",
36889
+ form: "single",
36890
+ optional: false
36891
+ }],
36850
36892
  "snapshot.getSnapshot": [{
36851
36893
  name: "deviceId",
36852
36894
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-import-alexa",
3
- "version": "0.2.17",
3
+ "version": "0.2.19",
4
4
  "description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
5
5
  "keywords": [
6
6
  "camstack",