@camstack/addon-cloudflare 1.2.17 → 1.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.
@@ -19082,7 +19082,31 @@ DeviceType.Camera, method(object({
19082
19082
  lastCapturedAt: number().nullable(),
19083
19083
  cacheAgeMs: number().nullable(),
19084
19084
  etag: string().nullable()
19085
- }))), systemMethod(object({
19085
+ }))), systemMethod(object({ deviceId: number() }), object({
19086
+ /** The battery slice as read, or null when the device has none. */
19087
+ battery: object({
19088
+ sleeping: boolean(),
19089
+ lastUpdated: number(),
19090
+ lastContactAt: number().optional()
19091
+ }).nullable(),
19092
+ /** The resolved snapshot state (what the overlay decision used). */
19093
+ state: object({
19094
+ isBattery: boolean(),
19095
+ reason: _enum([
19096
+ "disabled",
19097
+ "sleeping",
19098
+ "unreachable",
19099
+ "waking"
19100
+ ]).nullable()
19101
+ }),
19102
+ /** The cached frame behind the next paint. */
19103
+ frame: object({
19104
+ capturedAt: number().nullable(),
19105
+ ageMs: number().nullable()
19106
+ }),
19107
+ /** A wake window is currently open (the Waking overlay's source). */
19108
+ waking: boolean()
19109
+ })), systemMethod(object({
19086
19110
  /** The tiles a surface is actually rendering. One entry per (device,
19087
19111
  * width) the caller will paint — the width is snapped to the server's
19088
19112
  * ladder and becomes part of the link's SIGNED identity. */
@@ -30320,6 +30344,12 @@ Object.freeze({
30320
30344
  addonId: null,
30321
30345
  access: "view"
30322
30346
  },
30347
+ "snapshot.getDebugState": {
30348
+ capName: "snapshot",
30349
+ capScope: "device",
30350
+ addonId: null,
30351
+ access: "view"
30352
+ },
30323
30353
  "snapshot.getSnapshot": {
30324
30354
  capName: "snapshot",
30325
30355
  capScope: "device",
@@ -32917,6 +32947,11 @@ Object.freeze({
32917
32947
  form: "single",
32918
32948
  optional: false
32919
32949
  }],
32950
+ "snapshot.getDebugState": [{
32951
+ name: "deviceId",
32952
+ form: "single",
32953
+ optional: false
32954
+ }],
32920
32955
  "snapshot.getSnapshot": [{
32921
32956
  name: "deviceId",
32922
32957
  form: "single",
@@ -19082,7 +19082,31 @@ DeviceType.Camera, method(object({
19082
19082
  lastCapturedAt: number().nullable(),
19083
19083
  cacheAgeMs: number().nullable(),
19084
19084
  etag: string().nullable()
19085
- }))), systemMethod(object({
19085
+ }))), systemMethod(object({ deviceId: number() }), object({
19086
+ /** The battery slice as read, or null when the device has none. */
19087
+ battery: object({
19088
+ sleeping: boolean(),
19089
+ lastUpdated: number(),
19090
+ lastContactAt: number().optional()
19091
+ }).nullable(),
19092
+ /** The resolved snapshot state (what the overlay decision used). */
19093
+ state: object({
19094
+ isBattery: boolean(),
19095
+ reason: _enum([
19096
+ "disabled",
19097
+ "sleeping",
19098
+ "unreachable",
19099
+ "waking"
19100
+ ]).nullable()
19101
+ }),
19102
+ /** The cached frame behind the next paint. */
19103
+ frame: object({
19104
+ capturedAt: number().nullable(),
19105
+ ageMs: number().nullable()
19106
+ }),
19107
+ /** A wake window is currently open (the Waking overlay's source). */
19108
+ waking: boolean()
19109
+ })), systemMethod(object({
19086
19110
  /** The tiles a surface is actually rendering. One entry per (device,
19087
19111
  * width) the caller will paint — the width is snapped to the server's
19088
19112
  * ladder and becomes part of the link's SIGNED identity. */
@@ -30320,6 +30344,12 @@ Object.freeze({
30320
30344
  addonId: null,
30321
30345
  access: "view"
30322
30346
  },
30347
+ "snapshot.getDebugState": {
30348
+ capName: "snapshot",
30349
+ capScope: "device",
30350
+ addonId: null,
30351
+ access: "view"
30352
+ },
30323
30353
  "snapshot.getSnapshot": {
30324
30354
  capName: "snapshot",
30325
30355
  capScope: "device",
@@ -32917,6 +32947,11 @@ Object.freeze({
32917
32947
  form: "single",
32918
32948
  optional: false
32919
32949
  }],
32950
+ "snapshot.getDebugState": [{
32951
+ name: "deviceId",
32952
+ form: "single",
32953
+ optional: false
32954
+ }],
32920
32955
  "snapshot.getSnapshot": [{
32921
32956
  name: "deviceId",
32922
32957
  form: "single",
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  enumerable: true
22
22
  }) : target, mod));
23
23
  //#endregion
24
- const require_dist = require("../dist-D3Q9MVLi.js");
24
+ const require_dist = require("../dist-CU7i0NTx.js");
25
25
  let node_crypto = require("node:crypto");
26
26
  let node_path = require("node:path");
27
27
  node_path = __toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { a as BaseAddon, c as boolean, d as number, f as object, m as EventCategory, n as defineCustomActions, o as _enum, p as string, r as networkAccessCapability, s as array, t as customAction, u as literal } from "../dist-B2cHtR7y.mjs";
1
+ import { a as BaseAddon, c as boolean, d as number, f as object, m as EventCategory, n as defineCustomActions, o as _enum, p as string, r as networkAccessCapability, s as array, t as customAction, u as literal } from "../dist-CacCTyRx.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import * as path from "node:path";
4
4
  import { spawn } from "node:child_process";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("../dist-D3Q9MVLi.js");
2
+ const require_dist = require("../dist-CU7i0NTx.js");
3
3
  //#region src/turn/cloudflare-turn.ts
4
4
  /**
5
5
  * Cloudflare returns ICE servers in several flavours depending on which
@@ -1,4 +1,4 @@
1
- import { a as BaseAddon, c as boolean, d as number, f as object, i as turnProviderCapability, l as discriminatedUnion, n as defineCustomActions, p as string, t as customAction, u as literal } from "../dist-B2cHtR7y.mjs";
1
+ import { a as BaseAddon, c as boolean, d as number, f as object, i as turnProviderCapability, l as discriminatedUnion, n as defineCustomActions, p as string, t as customAction, u as literal } from "../dist-CacCTyRx.mjs";
2
2
  //#region src/turn/cloudflare-turn.ts
3
3
  /**
4
4
  * Cloudflare returns ICE servers in several flavours depending on which
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-cloudflare",
3
- "version": "1.2.17",
3
+ "version": "1.2.18",
4
4
  "description": "Cloudflare bundle — Tunnel (network-access) + TURN relay (turn-provider). Multi-entry npm package shipping 2 addons under a single bundle.",
5
5
  "keywords": [
6
6
  "camstack",