@camstack/addon-cloudflare 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.
- package/dist/{dist-B2cHtR7y.mjs → dist-BmXs2LPS.mjs} +44 -2
- package/dist/{dist-D3Q9MVLi.js → dist-DJIQkocy.js} +44 -2
- package/dist/tunnel/cloudflare-tunnel.addon.js +1 -1
- package/dist/tunnel/cloudflare-tunnel.addon.mjs +1 -1
- package/dist/turn/cloudflare-turn.addon.js +1 -1
- package/dist/turn/cloudflare-turn.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -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. */
|
|
@@ -19121,7 +19145,14 @@ targets: array(object({
|
|
|
19121
19145
|
"sleeping",
|
|
19122
19146
|
"unreachable",
|
|
19123
19147
|
"waking"
|
|
19124
|
-
]).nullable()
|
|
19148
|
+
]).nullable(),
|
|
19149
|
+
/** A battery camera (whatever its current state). An AWAKE battery
|
|
19150
|
+
* camera is deliberately NOT recaptured on the poll cadence — every
|
|
19151
|
+
* capture is a camera hit that would keep it out of sleep — so its
|
|
19152
|
+
* cached frame legitimately ages past the currency ceiling while
|
|
19153
|
+
* nothing is streaming. A surface must keep painting it (a fresh
|
|
19154
|
+
* frame is captured at each wake), not blank to "unavailable". */
|
|
19155
|
+
battery: boolean()
|
|
19125
19156
|
})));
|
|
19126
19157
|
/**
|
|
19127
19158
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
@@ -30320,6 +30351,12 @@ Object.freeze({
|
|
|
30320
30351
|
addonId: null,
|
|
30321
30352
|
access: "view"
|
|
30322
30353
|
},
|
|
30354
|
+
"snapshot.getDebugState": {
|
|
30355
|
+
capName: "snapshot",
|
|
30356
|
+
capScope: "device",
|
|
30357
|
+
addonId: null,
|
|
30358
|
+
access: "view"
|
|
30359
|
+
},
|
|
30323
30360
|
"snapshot.getSnapshot": {
|
|
30324
30361
|
capName: "snapshot",
|
|
30325
30362
|
capScope: "device",
|
|
@@ -32917,6 +32954,11 @@ Object.freeze({
|
|
|
32917
32954
|
form: "single",
|
|
32918
32955
|
optional: false
|
|
32919
32956
|
}],
|
|
32957
|
+
"snapshot.getDebugState": [{
|
|
32958
|
+
name: "deviceId",
|
|
32959
|
+
form: "single",
|
|
32960
|
+
optional: false
|
|
32961
|
+
}],
|
|
32920
32962
|
"snapshot.getSnapshot": [{
|
|
32921
32963
|
name: "deviceId",
|
|
32922
32964
|
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. */
|
|
@@ -19121,7 +19145,14 @@ targets: array(object({
|
|
|
19121
19145
|
"sleeping",
|
|
19122
19146
|
"unreachable",
|
|
19123
19147
|
"waking"
|
|
19124
|
-
]).nullable()
|
|
19148
|
+
]).nullable(),
|
|
19149
|
+
/** A battery camera (whatever its current state). An AWAKE battery
|
|
19150
|
+
* camera is deliberately NOT recaptured on the poll cadence — every
|
|
19151
|
+
* capture is a camera hit that would keep it out of sleep — so its
|
|
19152
|
+
* cached frame legitimately ages past the currency ceiling while
|
|
19153
|
+
* nothing is streaming. A surface must keep painting it (a fresh
|
|
19154
|
+
* frame is captured at each wake), not blank to "unavailable". */
|
|
19155
|
+
battery: boolean()
|
|
19125
19156
|
})));
|
|
19126
19157
|
/**
|
|
19127
19158
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
@@ -30320,6 +30351,12 @@ Object.freeze({
|
|
|
30320
30351
|
addonId: null,
|
|
30321
30352
|
access: "view"
|
|
30322
30353
|
},
|
|
30354
|
+
"snapshot.getDebugState": {
|
|
30355
|
+
capName: "snapshot",
|
|
30356
|
+
capScope: "device",
|
|
30357
|
+
addonId: null,
|
|
30358
|
+
access: "view"
|
|
30359
|
+
},
|
|
30323
30360
|
"snapshot.getSnapshot": {
|
|
30324
30361
|
capName: "snapshot",
|
|
30325
30362
|
capScope: "device",
|
|
@@ -32917,6 +32954,11 @@ Object.freeze({
|
|
|
32917
32954
|
form: "single",
|
|
32918
32955
|
optional: false
|
|
32919
32956
|
}],
|
|
32957
|
+
"snapshot.getDebugState": [{
|
|
32958
|
+
name: "deviceId",
|
|
32959
|
+
form: "single",
|
|
32960
|
+
optional: false
|
|
32961
|
+
}],
|
|
32920
32962
|
"snapshot.getSnapshot": [{
|
|
32921
32963
|
name: "deviceId",
|
|
32922
32964
|
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-
|
|
24
|
+
const require_dist = require("../dist-DJIQkocy.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-
|
|
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-BmXs2LPS.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-
|
|
2
|
+
const require_dist = require("../dist-DJIQkocy.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-
|
|
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-BmXs2LPS.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.
|
|
3
|
+
"version": "1.2.19",
|
|
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",
|