@camstack/addon-cloudflare 1.2.20 → 1.2.22
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-BTQicH-E.js → dist-BXYYqqcb.js} +37 -3
- package/dist/{dist-xprKIU2W.mjs → dist-CMk_yoz7.mjs} +37 -3
- 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
|
@@ -19925,6 +19925,14 @@ var ClipSchema = object({
|
|
|
19925
19925
|
endMs: number()
|
|
19926
19926
|
}),
|
|
19927
19927
|
/**
|
|
19928
|
+
* Distinct object classes attached to this visit (`person`, `car`, …),
|
|
19929
|
+
* dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
|
|
19930
|
+
* instead of the bare kind — "Object" tells the operator nothing a colour bar
|
|
19931
|
+
* did not. Absent (never empty) when the visit attached no classified object
|
|
19932
|
+
* event, so a motion/audio-only visit keeps its kind label.
|
|
19933
|
+
*/
|
|
19934
|
+
labels: array(string()).max(3).optional(),
|
|
19935
|
+
/**
|
|
19928
19936
|
* Lazy thumbnail URL, never inlined.
|
|
19929
19937
|
*
|
|
19930
19938
|
* Recording-derived clips (events-mode keep-window, and the prepared
|
|
@@ -24259,9 +24267,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
24259
24267
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
24260
24268
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
24261
24269
|
locationIds: array(string()).optional(),
|
|
24262
|
-
/**
|
|
24270
|
+
/**
|
|
24271
|
+
* Filesystem root of the physical volume this row accounts — the only
|
|
24272
|
+
* operator-legible identity when a location has no `displayName` yet, and
|
|
24273
|
+
* what a "which disk is full" alert has to name. OPTIONAL for the same
|
|
24274
|
+
* train-skew reason as `oldestMs`: a recorder that predates the field omits
|
|
24275
|
+
* it, and this schema must keep validating that older provider's payload.
|
|
24276
|
+
*/
|
|
24277
|
+
root: string().optional(),
|
|
24278
|
+
/** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
|
|
24279
|
+
* the footage's SHARE of the volume, not how full the volume is — the disk
|
|
24280
|
+
* also holds everything that is not recordings. Volume fill is
|
|
24281
|
+
* `(totalBytes - availableBytes) / totalBytes`. */
|
|
24263
24282
|
usedBytes: number(),
|
|
24264
|
-
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24283
|
+
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24284
|
+
* (remote/unstattable — the recorder logs the statfs failure with the root). */
|
|
24265
24285
|
availableBytes: number().nullable(),
|
|
24266
24286
|
/** Total bytes of the location's volume; null when unknown. */
|
|
24267
24287
|
totalBytes: number().nullable()
|
|
@@ -24273,7 +24293,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
24273
24293
|
nodeId: string(),
|
|
24274
24294
|
totalUsedBytes: number(),
|
|
24275
24295
|
devices: array(RecordingDeviceUsageSchema),
|
|
24276
|
-
|
|
24296
|
+
/**
|
|
24297
|
+
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
24298
|
+
* of the payload without it: the hub serves this method through a BAKED
|
|
24299
|
+
* router, so a hub whose framework train predates a change to this array
|
|
24300
|
+
* strips it out of an answer a newer recorder happily produced. A UI that
|
|
24301
|
+
* dereferences it unconditionally crashes the whole Storage page over a
|
|
24302
|
+
* missing disk bar.
|
|
24303
|
+
*/
|
|
24304
|
+
locations: array(RecordingLocationUsageSchema).optional()
|
|
24277
24305
|
});
|
|
24278
24306
|
/**
|
|
24279
24307
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -33389,8 +33417,14 @@ Object.freeze({
|
|
|
33389
33417
|
"network-access": "ingress",
|
|
33390
33418
|
"smtp-provider": "email"
|
|
33391
33419
|
});
|
|
33420
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
33421
|
+
var NC_AUDIO_DEFAULTS = {
|
|
33422
|
+
hitPercent: 60,
|
|
33423
|
+
samplingSeconds: 10
|
|
33424
|
+
};
|
|
33392
33425
|
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33393
33426
|
new Set(["devices", "classes"]);
|
|
33427
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
33394
33428
|
/**
|
|
33395
33429
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
33396
33430
|
*
|
|
@@ -19925,6 +19925,14 @@ var ClipSchema = object({
|
|
|
19925
19925
|
endMs: number()
|
|
19926
19926
|
}),
|
|
19927
19927
|
/**
|
|
19928
|
+
* Distinct object classes attached to this visit (`person`, `car`, …),
|
|
19929
|
+
* dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
|
|
19930
|
+
* instead of the bare kind — "Object" tells the operator nothing a colour bar
|
|
19931
|
+
* did not. Absent (never empty) when the visit attached no classified object
|
|
19932
|
+
* event, so a motion/audio-only visit keeps its kind label.
|
|
19933
|
+
*/
|
|
19934
|
+
labels: array(string()).max(3).optional(),
|
|
19935
|
+
/**
|
|
19928
19936
|
* Lazy thumbnail URL, never inlined.
|
|
19929
19937
|
*
|
|
19930
19938
|
* Recording-derived clips (events-mode keep-window, and the prepared
|
|
@@ -24259,9 +24267,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
24259
24267
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
24260
24268
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
24261
24269
|
locationIds: array(string()).optional(),
|
|
24262
|
-
/**
|
|
24270
|
+
/**
|
|
24271
|
+
* Filesystem root of the physical volume this row accounts — the only
|
|
24272
|
+
* operator-legible identity when a location has no `displayName` yet, and
|
|
24273
|
+
* what a "which disk is full" alert has to name. OPTIONAL for the same
|
|
24274
|
+
* train-skew reason as `oldestMs`: a recorder that predates the field omits
|
|
24275
|
+
* it, and this schema must keep validating that older provider's payload.
|
|
24276
|
+
*/
|
|
24277
|
+
root: string().optional(),
|
|
24278
|
+
/** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
|
|
24279
|
+
* the footage's SHARE of the volume, not how full the volume is — the disk
|
|
24280
|
+
* also holds everything that is not recordings. Volume fill is
|
|
24281
|
+
* `(totalBytes - availableBytes) / totalBytes`. */
|
|
24263
24282
|
usedBytes: number(),
|
|
24264
|
-
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24283
|
+
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24284
|
+
* (remote/unstattable — the recorder logs the statfs failure with the root). */
|
|
24265
24285
|
availableBytes: number().nullable(),
|
|
24266
24286
|
/** Total bytes of the location's volume; null when unknown. */
|
|
24267
24287
|
totalBytes: number().nullable()
|
|
@@ -24273,7 +24293,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
24273
24293
|
nodeId: string(),
|
|
24274
24294
|
totalUsedBytes: number(),
|
|
24275
24295
|
devices: array(RecordingDeviceUsageSchema),
|
|
24276
|
-
|
|
24296
|
+
/**
|
|
24297
|
+
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
24298
|
+
* of the payload without it: the hub serves this method through a BAKED
|
|
24299
|
+
* router, so a hub whose framework train predates a change to this array
|
|
24300
|
+
* strips it out of an answer a newer recorder happily produced. A UI that
|
|
24301
|
+
* dereferences it unconditionally crashes the whole Storage page over a
|
|
24302
|
+
* missing disk bar.
|
|
24303
|
+
*/
|
|
24304
|
+
locations: array(RecordingLocationUsageSchema).optional()
|
|
24277
24305
|
});
|
|
24278
24306
|
/**
|
|
24279
24307
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -33389,8 +33417,14 @@ Object.freeze({
|
|
|
33389
33417
|
"network-access": "ingress",
|
|
33390
33418
|
"smtp-provider": "email"
|
|
33391
33419
|
});
|
|
33420
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
33421
|
+
var NC_AUDIO_DEFAULTS = {
|
|
33422
|
+
hitPercent: 60,
|
|
33423
|
+
samplingSeconds: 10
|
|
33424
|
+
};
|
|
33392
33425
|
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33393
33426
|
new Set(["devices", "classes"]);
|
|
33427
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
33394
33428
|
/**
|
|
33395
33429
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
33396
33430
|
*
|
|
@@ -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-BXYYqqcb.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-CMk_yoz7.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-BXYYqqcb.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-CMk_yoz7.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.22",
|
|
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",
|