@camstack/addon-agent-ui 1.2.22 → 1.2.24
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/addon.js +30 -4
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -24216,9 +24216,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
24216
24216
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
24217
24217
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
24218
24218
|
locationIds: array(string()).optional(),
|
|
24219
|
-
/**
|
|
24219
|
+
/**
|
|
24220
|
+
* Filesystem root of the physical volume this row accounts — the only
|
|
24221
|
+
* operator-legible identity when a location has no `displayName` yet, and
|
|
24222
|
+
* what a "which disk is full" alert has to name. OPTIONAL for the same
|
|
24223
|
+
* train-skew reason as `oldestMs`: a recorder that predates the field omits
|
|
24224
|
+
* it, and this schema must keep validating that older provider's payload.
|
|
24225
|
+
*/
|
|
24226
|
+
root: string().optional(),
|
|
24227
|
+
/** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
|
|
24228
|
+
* the footage's SHARE of the volume, not how full the volume is — the disk
|
|
24229
|
+
* also holds everything that is not recordings. Volume fill is
|
|
24230
|
+
* `(totalBytes - availableBytes) / totalBytes`. */
|
|
24220
24231
|
usedBytes: number(),
|
|
24221
|
-
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24232
|
+
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24233
|
+
* (remote/unstattable — the recorder logs the statfs failure with the root). */
|
|
24222
24234
|
availableBytes: number().nullable(),
|
|
24223
24235
|
/** Total bytes of the location's volume; null when unknown. */
|
|
24224
24236
|
totalBytes: number().nullable()
|
|
@@ -24230,7 +24242,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
24230
24242
|
nodeId: string(),
|
|
24231
24243
|
totalUsedBytes: number(),
|
|
24232
24244
|
devices: array(RecordingDeviceUsageSchema),
|
|
24233
|
-
|
|
24245
|
+
/**
|
|
24246
|
+
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
24247
|
+
* of the payload without it: the hub serves this method through a BAKED
|
|
24248
|
+
* router, so a hub whose framework train predates a change to this array
|
|
24249
|
+
* strips it out of an answer a newer recorder happily produced. A UI that
|
|
24250
|
+
* dereferences it unconditionally crashes the whole Storage page over a
|
|
24251
|
+
* missing disk bar.
|
|
24252
|
+
*/
|
|
24253
|
+
locations: array(RecordingLocationUsageSchema).optional()
|
|
24234
24254
|
});
|
|
24235
24255
|
/**
|
|
24236
24256
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -33346,8 +33366,14 @@ Object.freeze({
|
|
|
33346
33366
|
"network-access": "ingress",
|
|
33347
33367
|
"smtp-provider": "email"
|
|
33348
33368
|
});
|
|
33369
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
33370
|
+
var NC_AUDIO_DEFAULTS = {
|
|
33371
|
+
hitPercent: 60,
|
|
33372
|
+
samplingSeconds: 10
|
|
33373
|
+
};
|
|
33349
33374
|
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33350
33375
|
new Set(["devices", "classes"]);
|
|
33376
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
33351
33377
|
/**
|
|
33352
33378
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
33353
33379
|
*
|
|
@@ -33738,7 +33764,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
33738
33764
|
capability: adminUiCapability,
|
|
33739
33765
|
provider: {
|
|
33740
33766
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
33741
|
-
getVersion: async () => ({ version: "1.2.
|
|
33767
|
+
getVersion: async () => ({ version: "1.2.24" })
|
|
33742
33768
|
}
|
|
33743
33769
|
}];
|
|
33744
33770
|
}
|