@camstack/addon-static-turn 1.2.17 → 1.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.
@@ -19044,7 +19044,31 @@ DeviceType.Camera, method(object({
19044
19044
  lastCapturedAt: number().nullable(),
19045
19045
  cacheAgeMs: number().nullable(),
19046
19046
  etag: string().nullable()
19047
- }))), systemMethod(object({
19047
+ }))), systemMethod(object({ deviceId: number() }), object({
19048
+ /** The battery slice as read, or null when the device has none. */
19049
+ battery: object({
19050
+ sleeping: boolean(),
19051
+ lastUpdated: number(),
19052
+ lastContactAt: number().optional()
19053
+ }).nullable(),
19054
+ /** The resolved snapshot state (what the overlay decision used). */
19055
+ state: object({
19056
+ isBattery: boolean(),
19057
+ reason: _enum([
19058
+ "disabled",
19059
+ "sleeping",
19060
+ "unreachable",
19061
+ "waking"
19062
+ ]).nullable()
19063
+ }),
19064
+ /** The cached frame behind the next paint. */
19065
+ frame: object({
19066
+ capturedAt: number().nullable(),
19067
+ ageMs: number().nullable()
19068
+ }),
19069
+ /** A wake window is currently open (the Waking overlay's source). */
19070
+ waking: boolean()
19071
+ })), systemMethod(object({
19048
19072
  /** The tiles a surface is actually rendering. One entry per (device,
19049
19073
  * width) the caller will paint — the width is snapped to the server's
19050
19074
  * ladder and becomes part of the link's SIGNED identity. */
@@ -19083,7 +19107,14 @@ targets: array(object({
19083
19107
  "sleeping",
19084
19108
  "unreachable",
19085
19109
  "waking"
19086
- ]).nullable()
19110
+ ]).nullable(),
19111
+ /** A battery camera (whatever its current state). An AWAKE battery
19112
+ * camera is deliberately NOT recaptured on the poll cadence — every
19113
+ * capture is a camera hit that would keep it out of sleep — so its
19114
+ * cached frame legitimately ages past the currency ceiling while
19115
+ * nothing is streaming. A surface must keep painting it (a fresh
19116
+ * frame is captured at each wake), not blank to "unavailable". */
19117
+ battery: boolean()
19087
19118
  })));
19088
19119
  /**
19089
19120
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -30282,6 +30313,12 @@ Object.freeze({
30282
30313
  addonId: null,
30283
30314
  access: "view"
30284
30315
  },
30316
+ "snapshot.getDebugState": {
30317
+ capName: "snapshot",
30318
+ capScope: "device",
30319
+ addonId: null,
30320
+ access: "view"
30321
+ },
30285
30322
  "snapshot.getSnapshot": {
30286
30323
  capName: "snapshot",
30287
30324
  capScope: "device",
@@ -32879,6 +32916,11 @@ Object.freeze({
32879
32916
  form: "single",
32880
32917
  optional: false
32881
32918
  }],
32919
+ "snapshot.getDebugState": [{
32920
+ name: "deviceId",
32921
+ form: "single",
32922
+ optional: false
32923
+ }],
32882
32924
  "snapshot.getSnapshot": [{
32883
32925
  name: "deviceId",
32884
32926
  form: "single",
@@ -19043,7 +19043,31 @@ DeviceType.Camera, method(object({
19043
19043
  lastCapturedAt: number().nullable(),
19044
19044
  cacheAgeMs: number().nullable(),
19045
19045
  etag: string().nullable()
19046
- }))), systemMethod(object({
19046
+ }))), systemMethod(object({ deviceId: number() }), object({
19047
+ /** The battery slice as read, or null when the device has none. */
19048
+ battery: object({
19049
+ sleeping: boolean(),
19050
+ lastUpdated: number(),
19051
+ lastContactAt: number().optional()
19052
+ }).nullable(),
19053
+ /** The resolved snapshot state (what the overlay decision used). */
19054
+ state: object({
19055
+ isBattery: boolean(),
19056
+ reason: _enum([
19057
+ "disabled",
19058
+ "sleeping",
19059
+ "unreachable",
19060
+ "waking"
19061
+ ]).nullable()
19062
+ }),
19063
+ /** The cached frame behind the next paint. */
19064
+ frame: object({
19065
+ capturedAt: number().nullable(),
19066
+ ageMs: number().nullable()
19067
+ }),
19068
+ /** A wake window is currently open (the Waking overlay's source). */
19069
+ waking: boolean()
19070
+ })), systemMethod(object({
19047
19071
  /** The tiles a surface is actually rendering. One entry per (device,
19048
19072
  * width) the caller will paint — the width is snapped to the server's
19049
19073
  * ladder and becomes part of the link's SIGNED identity. */
@@ -19082,7 +19106,14 @@ targets: array(object({
19082
19106
  "sleeping",
19083
19107
  "unreachable",
19084
19108
  "waking"
19085
- ]).nullable()
19109
+ ]).nullable(),
19110
+ /** A battery camera (whatever its current state). An AWAKE battery
19111
+ * camera is deliberately NOT recaptured on the poll cadence — every
19112
+ * capture is a camera hit that would keep it out of sleep — so its
19113
+ * cached frame legitimately ages past the currency ceiling while
19114
+ * nothing is streaming. A surface must keep painting it (a fresh
19115
+ * frame is captured at each wake), not blank to "unavailable". */
19116
+ battery: boolean()
19086
19117
  })));
19087
19118
  /**
19088
19119
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -30281,6 +30312,12 @@ Object.freeze({
30281
30312
  addonId: null,
30282
30313
  access: "view"
30283
30314
  },
30315
+ "snapshot.getDebugState": {
30316
+ capName: "snapshot",
30317
+ capScope: "device",
30318
+ addonId: null,
30319
+ access: "view"
30320
+ },
30284
30321
  "snapshot.getSnapshot": {
30285
30322
  capName: "snapshot",
30286
30323
  capScope: "device",
@@ -32878,6 +32915,11 @@ Object.freeze({
32878
32915
  form: "single",
32879
32916
  optional: false
32880
32917
  }],
32918
+ "snapshot.getDebugState": [{
32919
+ name: "deviceId",
32920
+ form: "single",
32921
+ optional: false
32922
+ }],
32881
32923
  "snapshot.getSnapshot": [{
32882
32924
  name: "deviceId",
32883
32925
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-static-turn",
3
- "version": "1.2.17",
3
+ "version": "1.2.19",
4
4
  "description": "Static / self-hosted (coturn) TURN provider for CamStack",
5
5
  "keywords": [
6
6
  "camstack",