@camstack/addon-cloudflare 1.2.21 → 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.
@@ -24267,9 +24267,21 @@ var RecordingLocationUsageSchema = object({
24267
24267
  * previously rendered as two identical "disks" with a nonsensical used
24268
24268
  * split — hydrate attribution across aliases is arbitrary by nature. */
24269
24269
  locationIds: array(string()).optional(),
24270
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
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`. */
24271
24282
  usedBytes: number(),
24272
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
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). */
24273
24285
  availableBytes: number().nullable(),
24274
24286
  /** Total bytes of the location's volume; null when unknown. */
24275
24287
  totalBytes: number().nullable()
@@ -24281,7 +24293,15 @@ var RecordingStorageUsageSchema = object({
24281
24293
  nodeId: string(),
24282
24294
  totalUsedBytes: number(),
24283
24295
  devices: array(RecordingDeviceUsageSchema),
24284
- locations: array(RecordingLocationUsageSchema)
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()
24285
24305
  });
24286
24306
  /**
24287
24307
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -33397,8 +33417,14 @@ Object.freeze({
33397
33417
  "network-access": "ingress",
33398
33418
  "smtp-provider": "email"
33399
33419
  });
33420
+ /** Schema defaults — an untouched sub-field must author exactly these. */
33421
+ var NC_AUDIO_DEFAULTS = {
33422
+ hitPercent: 60,
33423
+ samplingSeconds: 10
33424
+ };
33400
33425
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33401
33426
  new Set(["devices", "classes"]);
33427
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33402
33428
  /**
33403
33429
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
33404
33430
  *
@@ -24267,9 +24267,21 @@ var RecordingLocationUsageSchema = object({
24267
24267
  * previously rendered as two identical "disks" with a nonsensical used
24268
24268
  * split — hydrate attribution across aliases is arbitrary by nature. */
24269
24269
  locationIds: array(string()).optional(),
24270
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
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`. */
24271
24282
  usedBytes: number(),
24272
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
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). */
24273
24285
  availableBytes: number().nullable(),
24274
24286
  /** Total bytes of the location's volume; null when unknown. */
24275
24287
  totalBytes: number().nullable()
@@ -24281,7 +24293,15 @@ var RecordingStorageUsageSchema = object({
24281
24293
  nodeId: string(),
24282
24294
  totalUsedBytes: number(),
24283
24295
  devices: array(RecordingDeviceUsageSchema),
24284
- locations: array(RecordingLocationUsageSchema)
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()
24285
24305
  });
24286
24306
  /**
24287
24307
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -33397,8 +33417,14 @@ Object.freeze({
33397
33417
  "network-access": "ingress",
33398
33418
  "smtp-provider": "email"
33399
33419
  });
33420
+ /** Schema defaults — an untouched sub-field must author exactly these. */
33421
+ var NC_AUDIO_DEFAULTS = {
33422
+ hitPercent: 60,
33423
+ samplingSeconds: 10
33424
+ };
33400
33425
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33401
33426
  new Set(["devices", "classes"]);
33427
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33402
33428
  /**
33403
33429
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
33404
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-CfYr3SWQ.js");
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-DP9CmDJx.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-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-CfYr3SWQ.js");
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-DP9CmDJx.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-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.21",
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",