@camstack/addon-tailscale 1.1.26 → 1.1.28
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/client/tailscale.addon.js +1 -1
- package/dist/client/tailscale.addon.mjs +1 -1
- package/dist/{dist-AxWhb5Uh.js → dist-CPFhFQVO.js} +511 -2
- package/dist/{dist-D7Ao4Euk.mjs → dist-C_oio-xb.mjs} +511 -2
- package/dist/ingress/tailscale-ingress.addon.js +1 -1
- package/dist/ingress/tailscale-ingress.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
//#endregion
|
|
27
|
-
const require_dist = require("../dist-
|
|
27
|
+
const require_dist = require("../dist-CPFhFQVO.js");
|
|
28
28
|
let node_child_process = require("node:child_process");
|
|
29
29
|
let node_util = require("node:util");
|
|
30
30
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as EventCategory, n as networkAccessCapability, r as BaseAddon, t as meshNetworkCapability } from "../dist-
|
|
1
|
+
import { i as EventCategory, n as networkAccessCapability, r as BaseAddon, t as meshNetworkCapability } from "../dist-C_oio-xb.mjs";
|
|
2
2
|
import { execFile, spawn } from "node:child_process";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import * as fs from "node:fs";
|
|
@@ -7327,6 +7327,62 @@ var RecordingConfigSchema = object({
|
|
|
7327
7327
|
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7328
7328
|
});
|
|
7329
7329
|
/**
|
|
7330
|
+
* Ops-log — the durable, append-only operations audit shared by the
|
|
7331
|
+
* recordings and events management surfaces.
|
|
7332
|
+
*
|
|
7333
|
+
* ONE row shape is reused for both domains so a single "Activity" view can
|
|
7334
|
+
* merge the recorder's DurableState ring (recordings ops-log) and the
|
|
7335
|
+
* pipeline-analytics SQLite collection (events ops-log). Each row records a
|
|
7336
|
+
* management operation, WHY it ran (reason), and its measurable effect
|
|
7337
|
+
* (itemsAffected + bytesReclaimed). Writes are best-effort — a failed log must
|
|
7338
|
+
* never fail the operation it records.
|
|
7339
|
+
*/
|
|
7340
|
+
/** Which management domain the operation belongs to. */
|
|
7341
|
+
var OpsLogDomainSchema = _enum(["recording", "events"]);
|
|
7342
|
+
/** The kind of management operation performed. */
|
|
7343
|
+
var OpsLogOpSchema = _enum([
|
|
7344
|
+
"prune",
|
|
7345
|
+
"manual-delete",
|
|
7346
|
+
"rescan",
|
|
7347
|
+
"retention-run"
|
|
7348
|
+
]);
|
|
7349
|
+
/** Why the operation ran. */
|
|
7350
|
+
var OpsLogReasonSchema = _enum([
|
|
7351
|
+
"retention",
|
|
7352
|
+
"quota",
|
|
7353
|
+
"manual",
|
|
7354
|
+
"operator"
|
|
7355
|
+
]);
|
|
7356
|
+
/** One audit row, shared verbatim by both domains. */
|
|
7357
|
+
var OpsLogEntrySchema = object({
|
|
7358
|
+
/** Unique row id. */
|
|
7359
|
+
id: string(),
|
|
7360
|
+
/** Epoch ms the operation completed. */
|
|
7361
|
+
at: number(),
|
|
7362
|
+
domain: OpsLogDomainSchema,
|
|
7363
|
+
op: OpsLogOpSchema,
|
|
7364
|
+
reason: OpsLogReasonSchema,
|
|
7365
|
+
/** The camera the op targeted; null for a cluster/global op. */
|
|
7366
|
+
deviceId: number().nullable(),
|
|
7367
|
+
/** Node that performed the op (the log carries nodeId — no cross-node aggregation). */
|
|
7368
|
+
nodeId: string(),
|
|
7369
|
+
/** Buckets / rows deleted (op-specific unit). */
|
|
7370
|
+
itemsAffected: number(),
|
|
7371
|
+
/** Bytes reclaimed by the op (0 when not measurable). */
|
|
7372
|
+
bytesReclaimed: number(),
|
|
7373
|
+
/** Free-text detail (e.g. "floor moved to <ts>"); null when none. */
|
|
7374
|
+
detail: string().nullable(),
|
|
7375
|
+
/** Who/what triggered the op. */
|
|
7376
|
+
actor: string()
|
|
7377
|
+
});
|
|
7378
|
+
/** Shared query input for the per-domain `listOpsLog` cap methods. */
|
|
7379
|
+
var OpsLogQueryInputSchema = object({
|
|
7380
|
+
/** Restrict to a single camera; omit for every row. */
|
|
7381
|
+
deviceId: number().optional(),
|
|
7382
|
+
/** Max rows returned, newest-first. */
|
|
7383
|
+
limit: number().int().min(1).max(1e3).optional()
|
|
7384
|
+
});
|
|
7385
|
+
/**
|
|
7330
7386
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
7331
7387
|
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
7332
7388
|
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
@@ -7570,6 +7626,160 @@ var EncodeProfileSchema = object({
|
|
|
7570
7626
|
*/
|
|
7571
7627
|
outputArgs: array(string()).optional()
|
|
7572
7628
|
});
|
|
7629
|
+
var COCO_TO_MACRO = {
|
|
7630
|
+
mapping: {
|
|
7631
|
+
person: "person",
|
|
7632
|
+
bicycle: "vehicle",
|
|
7633
|
+
car: "vehicle",
|
|
7634
|
+
motorcycle: "vehicle",
|
|
7635
|
+
airplane: "vehicle",
|
|
7636
|
+
bus: "vehicle",
|
|
7637
|
+
train: "vehicle",
|
|
7638
|
+
truck: "vehicle",
|
|
7639
|
+
boat: "vehicle",
|
|
7640
|
+
bird: "animal",
|
|
7641
|
+
cat: "animal",
|
|
7642
|
+
dog: "animal",
|
|
7643
|
+
horse: "animal",
|
|
7644
|
+
sheep: "animal",
|
|
7645
|
+
cow: "animal",
|
|
7646
|
+
elephant: "animal",
|
|
7647
|
+
bear: "animal",
|
|
7648
|
+
zebra: "animal",
|
|
7649
|
+
giraffe: "animal",
|
|
7650
|
+
suitcase: "package",
|
|
7651
|
+
backpack: "package",
|
|
7652
|
+
handbag: "package"
|
|
7653
|
+
},
|
|
7654
|
+
preserveOriginal: false
|
|
7655
|
+
};
|
|
7656
|
+
var AUDIO_MACRO_LABELS = [
|
|
7657
|
+
{
|
|
7658
|
+
id: "speech",
|
|
7659
|
+
name: "Speech",
|
|
7660
|
+
icon: "🗣️"
|
|
7661
|
+
},
|
|
7662
|
+
{
|
|
7663
|
+
id: "scream",
|
|
7664
|
+
name: "Scream / Shout",
|
|
7665
|
+
icon: "😱"
|
|
7666
|
+
},
|
|
7667
|
+
{
|
|
7668
|
+
id: "crying",
|
|
7669
|
+
name: "Crying / Baby",
|
|
7670
|
+
icon: "😢"
|
|
7671
|
+
},
|
|
7672
|
+
{
|
|
7673
|
+
id: "laughter",
|
|
7674
|
+
name: "Laughter",
|
|
7675
|
+
icon: "😂"
|
|
7676
|
+
},
|
|
7677
|
+
{
|
|
7678
|
+
id: "music",
|
|
7679
|
+
name: "Music",
|
|
7680
|
+
icon: "🎵"
|
|
7681
|
+
},
|
|
7682
|
+
{
|
|
7683
|
+
id: "dog",
|
|
7684
|
+
name: "Dog",
|
|
7685
|
+
icon: "🐕"
|
|
7686
|
+
},
|
|
7687
|
+
{
|
|
7688
|
+
id: "cat",
|
|
7689
|
+
name: "Cat",
|
|
7690
|
+
icon: "🐈"
|
|
7691
|
+
},
|
|
7692
|
+
{
|
|
7693
|
+
id: "bird",
|
|
7694
|
+
name: "Bird",
|
|
7695
|
+
icon: "🐦"
|
|
7696
|
+
},
|
|
7697
|
+
{
|
|
7698
|
+
id: "animal",
|
|
7699
|
+
name: "Animal (other)",
|
|
7700
|
+
icon: "🐾"
|
|
7701
|
+
},
|
|
7702
|
+
{
|
|
7703
|
+
id: "alarm",
|
|
7704
|
+
name: "Alarm / Siren",
|
|
7705
|
+
icon: "🚨"
|
|
7706
|
+
},
|
|
7707
|
+
{
|
|
7708
|
+
id: "doorbell",
|
|
7709
|
+
name: "Doorbell / Knock",
|
|
7710
|
+
icon: "🔔"
|
|
7711
|
+
},
|
|
7712
|
+
{
|
|
7713
|
+
id: "glass_breaking",
|
|
7714
|
+
name: "Glass Breaking",
|
|
7715
|
+
icon: "💥"
|
|
7716
|
+
},
|
|
7717
|
+
{
|
|
7718
|
+
id: "gunshot",
|
|
7719
|
+
name: "Gunshot / Explosion",
|
|
7720
|
+
icon: "💣"
|
|
7721
|
+
},
|
|
7722
|
+
{
|
|
7723
|
+
id: "vehicle",
|
|
7724
|
+
name: "Vehicle",
|
|
7725
|
+
icon: "🚗"
|
|
7726
|
+
},
|
|
7727
|
+
{
|
|
7728
|
+
id: "siren",
|
|
7729
|
+
name: "Emergency Siren",
|
|
7730
|
+
icon: "🚑"
|
|
7731
|
+
},
|
|
7732
|
+
{
|
|
7733
|
+
id: "fire",
|
|
7734
|
+
name: "Fire / Smoke",
|
|
7735
|
+
icon: "🔥"
|
|
7736
|
+
},
|
|
7737
|
+
{
|
|
7738
|
+
id: "water",
|
|
7739
|
+
name: "Water",
|
|
7740
|
+
icon: "💧"
|
|
7741
|
+
},
|
|
7742
|
+
{
|
|
7743
|
+
id: "wind",
|
|
7744
|
+
name: "Wind / Weather",
|
|
7745
|
+
icon: "🌬️"
|
|
7746
|
+
},
|
|
7747
|
+
{
|
|
7748
|
+
id: "door",
|
|
7749
|
+
name: "Door",
|
|
7750
|
+
icon: "🚪"
|
|
7751
|
+
},
|
|
7752
|
+
{
|
|
7753
|
+
id: "footsteps",
|
|
7754
|
+
name: "Footsteps",
|
|
7755
|
+
icon: "👣"
|
|
7756
|
+
},
|
|
7757
|
+
{
|
|
7758
|
+
id: "crowd",
|
|
7759
|
+
name: "Crowd / Chatter",
|
|
7760
|
+
icon: "👥"
|
|
7761
|
+
},
|
|
7762
|
+
{
|
|
7763
|
+
id: "telephone",
|
|
7764
|
+
name: "Telephone",
|
|
7765
|
+
icon: "📞"
|
|
7766
|
+
},
|
|
7767
|
+
{
|
|
7768
|
+
id: "engine",
|
|
7769
|
+
name: "Engine / Motor",
|
|
7770
|
+
icon: "⚙️"
|
|
7771
|
+
},
|
|
7772
|
+
{
|
|
7773
|
+
id: "tools",
|
|
7774
|
+
name: "Tools / Construction",
|
|
7775
|
+
icon: "🔨"
|
|
7776
|
+
},
|
|
7777
|
+
{
|
|
7778
|
+
id: "silence",
|
|
7779
|
+
name: "Silence",
|
|
7780
|
+
icon: "🤫"
|
|
7781
|
+
}
|
|
7782
|
+
];
|
|
7573
7783
|
var YAMNET_TO_MACRO = {
|
|
7574
7784
|
mapping: {
|
|
7575
7785
|
Speech: "speech",
|
|
@@ -7836,6 +8046,125 @@ var _macroLookup = /* @__PURE__ */ new Map();
|
|
|
7836
8046
|
for (const [k, v] of Object.entries(YAMNET_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
7837
8047
|
for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
7838
8048
|
/**
|
|
8049
|
+
* Unified event-kind taxonomy — THE single source of truth for
|
|
8050
|
+
* `kind → { parentKind, category, level, color, iconId, labelKey, label,
|
|
8051
|
+
* icon }`.
|
|
8052
|
+
*
|
|
8053
|
+
* This dictionary folds together what used to be scattered across four
|
|
8054
|
+
* copies:
|
|
8055
|
+
* - `capabilities/sensor-event-kinds.ts` (sensor cap colors)
|
|
8056
|
+
* - `addon-post-analysis/.../services/event-kinds.ts`
|
|
8057
|
+
* (MOTION/PERSON/VEHICLE… _COLOR constants)
|
|
8058
|
+
* - `ui-library/composites/detection-colors.ts` (CLASS_COLORS)
|
|
8059
|
+
* - `addon-post-analysis/shared/frame/box-drawer.ts` (DEFAULT_COLOR)
|
|
8060
|
+
* - the COCO / audio class maps (macro ↔ sub relationships)
|
|
8061
|
+
*
|
|
8062
|
+
* The DATA (serializable — color/iconId/labelKey/parentKind) lives here in
|
|
8063
|
+
* `@camstack/types`. The UI-side mapping `iconId → lucide component` and
|
|
8064
|
+
* `labelKey → t()` lives in `@camstack/ui-library`. UIs never hardcode a
|
|
8065
|
+
* color or an icon: they read this dictionary (server descriptors carry the
|
|
8066
|
+
* fields inline; the client resolves color/icon/label from `iconId`/`kind`).
|
|
8067
|
+
*
|
|
8068
|
+
* Two levels only (v1 YAGNI): macro → sub. `person` is a leaf macro.
|
|
8069
|
+
*/
|
|
8070
|
+
var TAXONOMY_COLORS = {
|
|
8071
|
+
motion: "#f59e0b",
|
|
8072
|
+
audio: "#06b6d4",
|
|
8073
|
+
person: "#22c55e",
|
|
8074
|
+
vehicle: "#3b82f6",
|
|
8075
|
+
animal: "#f97316",
|
|
8076
|
+
package: "#a855f7",
|
|
8077
|
+
sensor: "#8b5cf6",
|
|
8078
|
+
control: "#10b981",
|
|
8079
|
+
genericDetection: "#64748b"
|
|
8080
|
+
};
|
|
8081
|
+
var DETECTION_SUB_COLORS = {
|
|
8082
|
+
car: "#f59e0b",
|
|
8083
|
+
truck: "#d97706",
|
|
8084
|
+
bus: "#b45309",
|
|
8085
|
+
motorcycle: "#eab308",
|
|
8086
|
+
bicycle: "#ca8a04",
|
|
8087
|
+
airplane: "#60a5fa",
|
|
8088
|
+
boat: "#2563eb",
|
|
8089
|
+
train: "#1d4ed8",
|
|
8090
|
+
bird: "#14b8a6",
|
|
8091
|
+
dog: "#84cc16",
|
|
8092
|
+
cat: "#f97316",
|
|
8093
|
+
horse: "#a16207",
|
|
8094
|
+
sheep: "#a3a3a3",
|
|
8095
|
+
cow: "#78716c",
|
|
8096
|
+
elephant: "#6b7280",
|
|
8097
|
+
bear: "#7c2d12",
|
|
8098
|
+
zebra: "#404040",
|
|
8099
|
+
giraffe: "#d4a373"
|
|
8100
|
+
};
|
|
8101
|
+
function titleCase(id) {
|
|
8102
|
+
return id.split(/[-_ ]/).filter((p) => p.length > 0).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" ");
|
|
8103
|
+
}
|
|
8104
|
+
var entries = /* @__PURE__ */ new Map();
|
|
8105
|
+
function macro(kind, category, color, iconId, label) {
|
|
8106
|
+
entries.set(kind, {
|
|
8107
|
+
kind,
|
|
8108
|
+
parentKind: null,
|
|
8109
|
+
level: "macro",
|
|
8110
|
+
category,
|
|
8111
|
+
color,
|
|
8112
|
+
iconId,
|
|
8113
|
+
labelKey: `eventKind.${kind}`,
|
|
8114
|
+
label
|
|
8115
|
+
});
|
|
8116
|
+
}
|
|
8117
|
+
function sub(kind, parentKind, category, color, iconId, label) {
|
|
8118
|
+
entries.set(kind, {
|
|
8119
|
+
kind,
|
|
8120
|
+
parentKind,
|
|
8121
|
+
level: "sub",
|
|
8122
|
+
category,
|
|
8123
|
+
color,
|
|
8124
|
+
iconId,
|
|
8125
|
+
labelKey: `eventKind.${kind}`,
|
|
8126
|
+
label
|
|
8127
|
+
});
|
|
8128
|
+
}
|
|
8129
|
+
macro("motion", "motion", TAXONOMY_COLORS.motion, "motion", "Motion");
|
|
8130
|
+
macro("audio", "audio", TAXONOMY_COLORS.audio, "audio", "Audio");
|
|
8131
|
+
macro("person", "detection", TAXONOMY_COLORS.person, "person", "Person");
|
|
8132
|
+
macro("vehicle", "detection", TAXONOMY_COLORS.vehicle, "vehicle", "Vehicle");
|
|
8133
|
+
macro("animal", "detection", TAXONOMY_COLORS.animal, "animal", "Animal");
|
|
8134
|
+
macro("package", "package", TAXONOMY_COLORS.package, "package", "Package");
|
|
8135
|
+
macro("sensor", "sensor", TAXONOMY_COLORS.sensor, "sensor", "Sensor");
|
|
8136
|
+
macro("control", "control", TAXONOMY_COLORS.control, "control", "Control");
|
|
8137
|
+
for (const [cocoClass, macroClass] of Object.entries(COCO_TO_MACRO.mapping)) {
|
|
8138
|
+
if (macroClass !== "vehicle" && macroClass !== "animal") continue;
|
|
8139
|
+
if (entries.has(cocoClass)) continue;
|
|
8140
|
+
sub(cocoClass, macroClass, "detection", DETECTION_SUB_COLORS[cocoClass] ?? TAXONOMY_COLORS.genericDetection, cocoClass, titleCase(cocoClass));
|
|
8141
|
+
}
|
|
8142
|
+
sub("package-delivered", "package", "package", TAXONOMY_COLORS.package, "package", "Package delivered");
|
|
8143
|
+
sub("package-picked-up", "package", "package", TAXONOMY_COLORS.package, "package", "Package picked up");
|
|
8144
|
+
sub("contact", "sensor", "sensor", "#f59e0b", "door", "Contact");
|
|
8145
|
+
sub("motion-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "pir", "Motion sensor");
|
|
8146
|
+
sub("smoke", "sensor", "sensor", "#ef4444", "smoke", "Smoke");
|
|
8147
|
+
sub("flood", "sensor", "sensor", "#3b82f6", "water", "Water leak");
|
|
8148
|
+
sub("gas", "sensor", "sensor", "#ef4444", "gas", "Gas");
|
|
8149
|
+
sub("carbon-monoxide", "sensor", "sensor", "#dc2626", "smoke", "Carbon monoxide");
|
|
8150
|
+
sub("vibration", "sensor", "sensor", "#eab308", "vibration", "Vibration");
|
|
8151
|
+
sub("tamper", "sensor", "sensor", "#f97316", "tamper", "Tamper");
|
|
8152
|
+
sub("presence", "sensor", "sensor", "#22c55e", "presence", "Presence");
|
|
8153
|
+
sub("enum-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "generic", "Sensor state");
|
|
8154
|
+
sub("device-event", "sensor", "sensor", "#10b981", "button", "Device event");
|
|
8155
|
+
sub("lock", "control", "control", "#0ea5e9", "lock", "Lock");
|
|
8156
|
+
sub("switch", "control", "control", TAXONOMY_COLORS.control, "switch", "Switch");
|
|
8157
|
+
sub("siren", "control", "control", "#dc2626", "siren", "Siren");
|
|
8158
|
+
sub("button", "control", "control", "#10b981", "button", "Button");
|
|
8159
|
+
sub("doorbell", "control", "control", "#a855f7", "doorbell", "Doorbell");
|
|
8160
|
+
for (const l of AUDIO_MACRO_LABELS) {
|
|
8161
|
+
const kind = `audio-${l.id}`;
|
|
8162
|
+
if (entries.has(kind)) continue;
|
|
8163
|
+
sub(kind, "audio", "audio", TAXONOMY_COLORS.audio, kind, l.name);
|
|
8164
|
+
}
|
|
8165
|
+
/** The complete taxonomy dictionary, keyed by kind. */
|
|
8166
|
+
var EVENT_TAXONOMY = Object.freeze(Object.fromEntries(entries));
|
|
8167
|
+
/**
|
|
7839
8168
|
* Error types for the safe expression engine. Two distinct classes so callers
|
|
7840
8169
|
* can tell a compile-time (grammar) failure from a runtime (evaluation)
|
|
7841
8170
|
* failure — both are non-fatal to the host: read paths degrade to "skip link".
|
|
@@ -15802,17 +16131,30 @@ var EventKindCategorySchema = _enum([
|
|
|
15802
16131
|
"audio",
|
|
15803
16132
|
"detection",
|
|
15804
16133
|
"sensor",
|
|
16134
|
+
"control",
|
|
15805
16135
|
"custom",
|
|
15806
16136
|
"package"
|
|
15807
16137
|
]);
|
|
16138
|
+
/** Taxonomy level — macro (timeline lane) vs sub (events-page leaf). */
|
|
16139
|
+
var EventKindLevelSchema = _enum(["macro", "sub"]);
|
|
15808
16140
|
var EventKindDescriptorSchema = object({
|
|
15809
|
-
/** Stable kind id (e.g. 'motion', '
|
|
16141
|
+
/** Stable kind id (e.g. 'motion', 'vehicle', 'car', 'lock'). */
|
|
15810
16142
|
kind: string(),
|
|
16143
|
+
/** i18n key resolved on the UI side; `label` is the English fallback. */
|
|
16144
|
+
labelKey: string(),
|
|
16145
|
+
/** English fallback label (kept for clients that don't translate). */
|
|
15811
16146
|
label: string(),
|
|
15812
16147
|
/** Hex color for timeline/legend rendering. */
|
|
15813
16148
|
color: string(),
|
|
16149
|
+
/** Dictionary id → lucide component on the UI side. */
|
|
16150
|
+
iconId: string(),
|
|
16151
|
+
/** Legacy closed-vocab glyph — fallback for `iconId`. */
|
|
15814
16152
|
icon: EventKindIconSchema,
|
|
15815
16153
|
category: EventKindCategorySchema,
|
|
16154
|
+
/** Macro parent for this kind ('car' → 'vehicle'); null for a macro. */
|
|
16155
|
+
parentKind: string().nullable(),
|
|
16156
|
+
/** Derived from `parentKind`, explicit for the client tree. */
|
|
16157
|
+
level: EventKindLevelSchema,
|
|
15816
16158
|
/** Which cap + device contributes this kind. For built-ins the camera
|
|
15817
16159
|
* itself; for sensor kinds the LINKED source device. */
|
|
15818
16160
|
source: object({
|
|
@@ -15885,11 +16227,21 @@ var TrackAudioLabelSchema = object({
|
|
|
15885
16227
|
firstAt: number(),
|
|
15886
16228
|
lastAt: number()
|
|
15887
16229
|
});
|
|
16230
|
+
/**
|
|
16231
|
+
* How a track was produced. `pipeline` (default / absent) = the spatial
|
|
16232
|
+
* detection+tracking pipeline. `sensor` = a SYNTHETIC track projected from a
|
|
16233
|
+
* linked sensor/control state change (no positions; carries a snapshot). The
|
|
16234
|
+
* spatial subsystems (tracker association, occupancy count, re-id/embedding,
|
|
16235
|
+
* resurrection) MUST skip `sensor` tracks — they have no bbox trajectory.
|
|
16236
|
+
*/
|
|
16237
|
+
var TrackSourceSchema = _enum(["pipeline", "sensor"]);
|
|
15888
16238
|
var TrackSchema = object({
|
|
15889
16239
|
trackId: string(),
|
|
15890
16240
|
deviceId: number(),
|
|
15891
16241
|
className: string(),
|
|
15892
16242
|
label: string().optional(),
|
|
16243
|
+
/** Track provenance. Absent ⇒ `pipeline` (legacy rows). */
|
|
16244
|
+
source: TrackSourceSchema.optional(),
|
|
15893
16245
|
firstSeen: number(),
|
|
15894
16246
|
lastSeen: number(),
|
|
15895
16247
|
/** Frame-rate position history (subject to maxPositionHistory cap). */
|
|
@@ -16144,6 +16496,26 @@ var TrackCascadeCountsSchema = object({
|
|
|
16144
16496
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
16145
16497
|
embeddings: number().int()
|
|
16146
16498
|
});
|
|
16499
|
+
/** Event-store footprint for one camera. */
|
|
16500
|
+
var EventStoreDeviceFootprintSchema = object({
|
|
16501
|
+
deviceId: number(),
|
|
16502
|
+
/** Persisted event rows (motion + object + audio) for the camera. */
|
|
16503
|
+
rows: number().int(),
|
|
16504
|
+
/** Event-owned media bytes on disk for the camera. */
|
|
16505
|
+
bytes: number().int()
|
|
16506
|
+
});
|
|
16507
|
+
/** Aggregate event-store footprint: global totals + per-camera breakdown. */
|
|
16508
|
+
var EventStoreFootprintSchema = object({
|
|
16509
|
+
totalRows: number().int(),
|
|
16510
|
+
totalBytes: number().int(),
|
|
16511
|
+
devices: array(EventStoreDeviceFootprintSchema).readonly()
|
|
16512
|
+
});
|
|
16513
|
+
/** Per-kind counts returned by the event-prune / device-delete mutations. */
|
|
16514
|
+
var EventPruneCountsSchema = object({
|
|
16515
|
+
motion: number().int(),
|
|
16516
|
+
object: number().int(),
|
|
16517
|
+
audio: number().int()
|
|
16518
|
+
});
|
|
16147
16519
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
16148
16520
|
deviceId: number(),
|
|
16149
16521
|
trackId: string()
|
|
@@ -16207,6 +16579,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16207
16579
|
}), {
|
|
16208
16580
|
kind: "mutation",
|
|
16209
16581
|
auth: "admin"
|
|
16582
|
+
}), method(object({}), EventStoreFootprintSchema, {
|
|
16583
|
+
kind: "query",
|
|
16584
|
+
auth: "admin"
|
|
16585
|
+
}), method(object({
|
|
16586
|
+
olderThanMs: number(),
|
|
16587
|
+
reason: OpsLogReasonSchema.optional()
|
|
16588
|
+
}), EventPruneCountsSchema, {
|
|
16589
|
+
kind: "mutation",
|
|
16590
|
+
auth: "admin"
|
|
16591
|
+
}), method(object({ deviceId: number() }), EventPruneCountsSchema, {
|
|
16592
|
+
kind: "mutation",
|
|
16593
|
+
auth: "admin"
|
|
16594
|
+
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
16595
|
+
kind: "query",
|
|
16596
|
+
auth: "admin"
|
|
16210
16597
|
}), method(object({
|
|
16211
16598
|
eventId: string(),
|
|
16212
16599
|
kind: MediaFileKindEnum.optional()
|
|
@@ -16231,6 +16618,76 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16231
16618
|
eventId: string(),
|
|
16232
16619
|
timestamp: number()
|
|
16233
16620
|
});
|
|
16621
|
+
/**
|
|
16622
|
+
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
16623
|
+
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
16624
|
+
* caps into per-camera event-kind descriptors.
|
|
16625
|
+
*
|
|
16626
|
+
* The descriptor DATA (color / iconId / labelKey / parentKind / category)
|
|
16627
|
+
* is NOT duplicated here — every entry is derived from the single
|
|
16628
|
+
* `EVENT_TAXONOMY` dictionary (`catalogs/event-taxonomy.ts`). This file owns
|
|
16629
|
+
* ONLY the cap-name → taxonomy-kind mapping. Adding a new eventful sensor /
|
|
16630
|
+
* control cap means adding one line here (and a taxonomy entry); the anti-
|
|
16631
|
+
* drift guard `scripts/check-event-kind-coverage.ts` fails the build if an
|
|
16632
|
+
* eventful cap is missing.
|
|
16633
|
+
*/
|
|
16634
|
+
/** Map a taxonomy `iconId` onto the legacy closed `EventKindIcon` enum. */
|
|
16635
|
+
var LEGACY_ICON = {
|
|
16636
|
+
motion: "motion",
|
|
16637
|
+
audio: "audio",
|
|
16638
|
+
person: "person",
|
|
16639
|
+
vehicle: "vehicle",
|
|
16640
|
+
animal: "animal",
|
|
16641
|
+
package: "package",
|
|
16642
|
+
door: "door",
|
|
16643
|
+
pir: "pir",
|
|
16644
|
+
smoke: "smoke",
|
|
16645
|
+
water: "water",
|
|
16646
|
+
button: "button",
|
|
16647
|
+
generic: "generic",
|
|
16648
|
+
gas: "smoke",
|
|
16649
|
+
vibration: "generic",
|
|
16650
|
+
tamper: "generic",
|
|
16651
|
+
presence: "person",
|
|
16652
|
+
lock: "generic",
|
|
16653
|
+
siren: "generic",
|
|
16654
|
+
switch: "generic",
|
|
16655
|
+
doorbell: "button"
|
|
16656
|
+
};
|
|
16657
|
+
function legacyIcon(iconId) {
|
|
16658
|
+
return LEGACY_ICON[iconId] ?? "generic";
|
|
16659
|
+
}
|
|
16660
|
+
/**
|
|
16661
|
+
* Cap name → taxonomy kind id. Covers EVERY eventful sensor / control cap.
|
|
16662
|
+
* The anti-drift guard cross-checks this against the eventful caps declared
|
|
16663
|
+
* in `packages/types/src/capabilities/*.cap.ts`.
|
|
16664
|
+
*/
|
|
16665
|
+
var CAP_TO_KIND = {
|
|
16666
|
+
contact: "contact",
|
|
16667
|
+
motion: "motion-sensor",
|
|
16668
|
+
smoke: "smoke",
|
|
16669
|
+
flood: "flood",
|
|
16670
|
+
gas: "gas",
|
|
16671
|
+
"carbon-monoxide": "carbon-monoxide",
|
|
16672
|
+
vibration: "vibration",
|
|
16673
|
+
tamper: "tamper",
|
|
16674
|
+
presence: "presence",
|
|
16675
|
+
"enum-sensor": "enum-sensor",
|
|
16676
|
+
"event-emitter": "device-event",
|
|
16677
|
+
"lock-control": "lock",
|
|
16678
|
+
switch: "switch",
|
|
16679
|
+
button: "button",
|
|
16680
|
+
doorbell: "doorbell"
|
|
16681
|
+
};
|
|
16682
|
+
function buildDescriptor(capName, kind) {
|
|
16683
|
+
const t = EVENT_TAXONOMY[kind];
|
|
16684
|
+
if (t === void 0) throw new Error(`EVENT_KIND_BY_CAP: cap '${capName}' maps to unknown taxonomy kind '${kind}'`);
|
|
16685
|
+
return {
|
|
16686
|
+
...t,
|
|
16687
|
+
icon: legacyIcon(t.iconId)
|
|
16688
|
+
};
|
|
16689
|
+
}
|
|
16690
|
+
Object.freeze(Object.fromEntries(Object.entries(CAP_TO_KIND).map(([capName, kind]) => [capName, buildDescriptor(capName, kind)])));
|
|
16234
16691
|
var CameraPipelineConfigSchema = object({
|
|
16235
16692
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
16236
16693
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -19501,13 +19958,29 @@ method(object({
|
|
|
19501
19958
|
}), method(object({ deviceId: number() }), RecordingStatusSchema, {
|
|
19502
19959
|
kind: "mutation",
|
|
19503
19960
|
auth: "admin"
|
|
19504
|
-
}), method(object({
|
|
19961
|
+
}), method(object({
|
|
19962
|
+
deviceId: number(),
|
|
19963
|
+
reason: OpsLogReasonSchema.optional()
|
|
19964
|
+
}), object({
|
|
19505
19965
|
floorMs: number().nullable(),
|
|
19506
19966
|
deletedBuckets: number().int(),
|
|
19507
19967
|
reclaimedBytes: number().int()
|
|
19508
19968
|
}), {
|
|
19509
19969
|
kind: "mutation",
|
|
19510
19970
|
auth: "admin"
|
|
19971
|
+
}), method(object({
|
|
19972
|
+
deviceId: number(),
|
|
19973
|
+
fromMs: number().optional(),
|
|
19974
|
+
toMs: number().optional()
|
|
19975
|
+
}), object({
|
|
19976
|
+
deletedBuckets: number().int(),
|
|
19977
|
+
reclaimedBytes: number().int()
|
|
19978
|
+
}), {
|
|
19979
|
+
kind: "mutation",
|
|
19980
|
+
auth: "admin"
|
|
19981
|
+
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
19982
|
+
kind: "query",
|
|
19983
|
+
auth: "admin"
|
|
19511
19984
|
});
|
|
19512
19985
|
/**
|
|
19513
19986
|
* `recordingExport` cap — render a footage time range into a single downloadable
|
|
@@ -22629,6 +23102,12 @@ Object.freeze({
|
|
|
22629
23102
|
addonId: null,
|
|
22630
23103
|
access: "delete"
|
|
22631
23104
|
},
|
|
23105
|
+
"pipelineAnalytics.deleteDeviceEvents": {
|
|
23106
|
+
capName: "pipeline-analytics",
|
|
23107
|
+
capScope: "device",
|
|
23108
|
+
addonId: null,
|
|
23109
|
+
access: "delete"
|
|
23110
|
+
},
|
|
22632
23111
|
"pipelineAnalytics.deleteTracks": {
|
|
22633
23112
|
capName: "pipeline-analytics",
|
|
22634
23113
|
capScope: "device",
|
|
@@ -22659,6 +23138,12 @@ Object.freeze({
|
|
|
22659
23138
|
addonId: null,
|
|
22660
23139
|
access: "view"
|
|
22661
23140
|
},
|
|
23141
|
+
"pipelineAnalytics.getEventStoreFootprint": {
|
|
23142
|
+
capName: "pipeline-analytics",
|
|
23143
|
+
capScope: "device",
|
|
23144
|
+
addonId: null,
|
|
23145
|
+
access: "view"
|
|
23146
|
+
},
|
|
22662
23147
|
"pipelineAnalytics.getKeyEvents": {
|
|
22663
23148
|
capName: "pipeline-analytics",
|
|
22664
23149
|
capScope: "device",
|
|
@@ -22701,6 +23186,12 @@ Object.freeze({
|
|
|
22701
23186
|
addonId: null,
|
|
22702
23187
|
access: "view"
|
|
22703
23188
|
},
|
|
23189
|
+
"pipelineAnalytics.listOpsLog": {
|
|
23190
|
+
capName: "pipeline-analytics",
|
|
23191
|
+
capScope: "device",
|
|
23192
|
+
addonId: null,
|
|
23193
|
+
access: "view"
|
|
23194
|
+
},
|
|
22704
23195
|
"pipelineAnalytics.listRecentTracks": {
|
|
22705
23196
|
capName: "pipeline-analytics",
|
|
22706
23197
|
capScope: "device",
|
|
@@ -22713,6 +23204,12 @@ Object.freeze({
|
|
|
22713
23204
|
addonId: null,
|
|
22714
23205
|
access: "view"
|
|
22715
23206
|
},
|
|
23207
|
+
"pipelineAnalytics.pruneEvents": {
|
|
23208
|
+
capName: "pipeline-analytics",
|
|
23209
|
+
capScope: "device",
|
|
23210
|
+
addonId: null,
|
|
23211
|
+
access: "create"
|
|
23212
|
+
},
|
|
22716
23213
|
"pipelineAnalytics.pruneEventsBefore": {
|
|
22717
23214
|
capName: "pipeline-analytics",
|
|
22718
23215
|
capScope: "device",
|
|
@@ -23475,6 +23972,12 @@ Object.freeze({
|
|
|
23475
23972
|
addonId: null,
|
|
23476
23973
|
access: "create"
|
|
23477
23974
|
},
|
|
23975
|
+
"recording.deleteFootprint": {
|
|
23976
|
+
capName: "recording",
|
|
23977
|
+
capScope: "system",
|
|
23978
|
+
addonId: null,
|
|
23979
|
+
access: "delete"
|
|
23980
|
+
},
|
|
23478
23981
|
"recording.getAvailability": {
|
|
23479
23982
|
capName: "recording",
|
|
23480
23983
|
capScope: "system",
|
|
@@ -23505,6 +24008,12 @@ Object.freeze({
|
|
|
23505
24008
|
addonId: null,
|
|
23506
24009
|
access: "view"
|
|
23507
24010
|
},
|
|
24011
|
+
"recording.listOpsLog": {
|
|
24012
|
+
capName: "recording",
|
|
24013
|
+
capScope: "system",
|
|
24014
|
+
addonId: null,
|
|
24015
|
+
access: "view"
|
|
24016
|
+
},
|
|
23508
24017
|
"recording.locateSegment": {
|
|
23509
24018
|
capName: "recording",
|
|
23510
24019
|
capScope: "system",
|
|
@@ -7327,6 +7327,62 @@ var RecordingConfigSchema = object({
|
|
|
7327
7327
|
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7328
7328
|
});
|
|
7329
7329
|
/**
|
|
7330
|
+
* Ops-log — the durable, append-only operations audit shared by the
|
|
7331
|
+
* recordings and events management surfaces.
|
|
7332
|
+
*
|
|
7333
|
+
* ONE row shape is reused for both domains so a single "Activity" view can
|
|
7334
|
+
* merge the recorder's DurableState ring (recordings ops-log) and the
|
|
7335
|
+
* pipeline-analytics SQLite collection (events ops-log). Each row records a
|
|
7336
|
+
* management operation, WHY it ran (reason), and its measurable effect
|
|
7337
|
+
* (itemsAffected + bytesReclaimed). Writes are best-effort — a failed log must
|
|
7338
|
+
* never fail the operation it records.
|
|
7339
|
+
*/
|
|
7340
|
+
/** Which management domain the operation belongs to. */
|
|
7341
|
+
var OpsLogDomainSchema = _enum(["recording", "events"]);
|
|
7342
|
+
/** The kind of management operation performed. */
|
|
7343
|
+
var OpsLogOpSchema = _enum([
|
|
7344
|
+
"prune",
|
|
7345
|
+
"manual-delete",
|
|
7346
|
+
"rescan",
|
|
7347
|
+
"retention-run"
|
|
7348
|
+
]);
|
|
7349
|
+
/** Why the operation ran. */
|
|
7350
|
+
var OpsLogReasonSchema = _enum([
|
|
7351
|
+
"retention",
|
|
7352
|
+
"quota",
|
|
7353
|
+
"manual",
|
|
7354
|
+
"operator"
|
|
7355
|
+
]);
|
|
7356
|
+
/** One audit row, shared verbatim by both domains. */
|
|
7357
|
+
var OpsLogEntrySchema = object({
|
|
7358
|
+
/** Unique row id. */
|
|
7359
|
+
id: string(),
|
|
7360
|
+
/** Epoch ms the operation completed. */
|
|
7361
|
+
at: number(),
|
|
7362
|
+
domain: OpsLogDomainSchema,
|
|
7363
|
+
op: OpsLogOpSchema,
|
|
7364
|
+
reason: OpsLogReasonSchema,
|
|
7365
|
+
/** The camera the op targeted; null for a cluster/global op. */
|
|
7366
|
+
deviceId: number().nullable(),
|
|
7367
|
+
/** Node that performed the op (the log carries nodeId — no cross-node aggregation). */
|
|
7368
|
+
nodeId: string(),
|
|
7369
|
+
/** Buckets / rows deleted (op-specific unit). */
|
|
7370
|
+
itemsAffected: number(),
|
|
7371
|
+
/** Bytes reclaimed by the op (0 when not measurable). */
|
|
7372
|
+
bytesReclaimed: number(),
|
|
7373
|
+
/** Free-text detail (e.g. "floor moved to <ts>"); null when none. */
|
|
7374
|
+
detail: string().nullable(),
|
|
7375
|
+
/** Who/what triggered the op. */
|
|
7376
|
+
actor: string()
|
|
7377
|
+
});
|
|
7378
|
+
/** Shared query input for the per-domain `listOpsLog` cap methods. */
|
|
7379
|
+
var OpsLogQueryInputSchema = object({
|
|
7380
|
+
/** Restrict to a single camera; omit for every row. */
|
|
7381
|
+
deviceId: number().optional(),
|
|
7382
|
+
/** Max rows returned, newest-first. */
|
|
7383
|
+
limit: number().int().min(1).max(1e3).optional()
|
|
7384
|
+
});
|
|
7385
|
+
/**
|
|
7330
7386
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
7331
7387
|
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
7332
7388
|
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
@@ -7570,6 +7626,160 @@ var EncodeProfileSchema = object({
|
|
|
7570
7626
|
*/
|
|
7571
7627
|
outputArgs: array(string()).optional()
|
|
7572
7628
|
});
|
|
7629
|
+
var COCO_TO_MACRO = {
|
|
7630
|
+
mapping: {
|
|
7631
|
+
person: "person",
|
|
7632
|
+
bicycle: "vehicle",
|
|
7633
|
+
car: "vehicle",
|
|
7634
|
+
motorcycle: "vehicle",
|
|
7635
|
+
airplane: "vehicle",
|
|
7636
|
+
bus: "vehicle",
|
|
7637
|
+
train: "vehicle",
|
|
7638
|
+
truck: "vehicle",
|
|
7639
|
+
boat: "vehicle",
|
|
7640
|
+
bird: "animal",
|
|
7641
|
+
cat: "animal",
|
|
7642
|
+
dog: "animal",
|
|
7643
|
+
horse: "animal",
|
|
7644
|
+
sheep: "animal",
|
|
7645
|
+
cow: "animal",
|
|
7646
|
+
elephant: "animal",
|
|
7647
|
+
bear: "animal",
|
|
7648
|
+
zebra: "animal",
|
|
7649
|
+
giraffe: "animal",
|
|
7650
|
+
suitcase: "package",
|
|
7651
|
+
backpack: "package",
|
|
7652
|
+
handbag: "package"
|
|
7653
|
+
},
|
|
7654
|
+
preserveOriginal: false
|
|
7655
|
+
};
|
|
7656
|
+
var AUDIO_MACRO_LABELS = [
|
|
7657
|
+
{
|
|
7658
|
+
id: "speech",
|
|
7659
|
+
name: "Speech",
|
|
7660
|
+
icon: "🗣️"
|
|
7661
|
+
},
|
|
7662
|
+
{
|
|
7663
|
+
id: "scream",
|
|
7664
|
+
name: "Scream / Shout",
|
|
7665
|
+
icon: "😱"
|
|
7666
|
+
},
|
|
7667
|
+
{
|
|
7668
|
+
id: "crying",
|
|
7669
|
+
name: "Crying / Baby",
|
|
7670
|
+
icon: "😢"
|
|
7671
|
+
},
|
|
7672
|
+
{
|
|
7673
|
+
id: "laughter",
|
|
7674
|
+
name: "Laughter",
|
|
7675
|
+
icon: "😂"
|
|
7676
|
+
},
|
|
7677
|
+
{
|
|
7678
|
+
id: "music",
|
|
7679
|
+
name: "Music",
|
|
7680
|
+
icon: "🎵"
|
|
7681
|
+
},
|
|
7682
|
+
{
|
|
7683
|
+
id: "dog",
|
|
7684
|
+
name: "Dog",
|
|
7685
|
+
icon: "🐕"
|
|
7686
|
+
},
|
|
7687
|
+
{
|
|
7688
|
+
id: "cat",
|
|
7689
|
+
name: "Cat",
|
|
7690
|
+
icon: "🐈"
|
|
7691
|
+
},
|
|
7692
|
+
{
|
|
7693
|
+
id: "bird",
|
|
7694
|
+
name: "Bird",
|
|
7695
|
+
icon: "🐦"
|
|
7696
|
+
},
|
|
7697
|
+
{
|
|
7698
|
+
id: "animal",
|
|
7699
|
+
name: "Animal (other)",
|
|
7700
|
+
icon: "🐾"
|
|
7701
|
+
},
|
|
7702
|
+
{
|
|
7703
|
+
id: "alarm",
|
|
7704
|
+
name: "Alarm / Siren",
|
|
7705
|
+
icon: "🚨"
|
|
7706
|
+
},
|
|
7707
|
+
{
|
|
7708
|
+
id: "doorbell",
|
|
7709
|
+
name: "Doorbell / Knock",
|
|
7710
|
+
icon: "🔔"
|
|
7711
|
+
},
|
|
7712
|
+
{
|
|
7713
|
+
id: "glass_breaking",
|
|
7714
|
+
name: "Glass Breaking",
|
|
7715
|
+
icon: "💥"
|
|
7716
|
+
},
|
|
7717
|
+
{
|
|
7718
|
+
id: "gunshot",
|
|
7719
|
+
name: "Gunshot / Explosion",
|
|
7720
|
+
icon: "💣"
|
|
7721
|
+
},
|
|
7722
|
+
{
|
|
7723
|
+
id: "vehicle",
|
|
7724
|
+
name: "Vehicle",
|
|
7725
|
+
icon: "🚗"
|
|
7726
|
+
},
|
|
7727
|
+
{
|
|
7728
|
+
id: "siren",
|
|
7729
|
+
name: "Emergency Siren",
|
|
7730
|
+
icon: "🚑"
|
|
7731
|
+
},
|
|
7732
|
+
{
|
|
7733
|
+
id: "fire",
|
|
7734
|
+
name: "Fire / Smoke",
|
|
7735
|
+
icon: "🔥"
|
|
7736
|
+
},
|
|
7737
|
+
{
|
|
7738
|
+
id: "water",
|
|
7739
|
+
name: "Water",
|
|
7740
|
+
icon: "💧"
|
|
7741
|
+
},
|
|
7742
|
+
{
|
|
7743
|
+
id: "wind",
|
|
7744
|
+
name: "Wind / Weather",
|
|
7745
|
+
icon: "🌬️"
|
|
7746
|
+
},
|
|
7747
|
+
{
|
|
7748
|
+
id: "door",
|
|
7749
|
+
name: "Door",
|
|
7750
|
+
icon: "🚪"
|
|
7751
|
+
},
|
|
7752
|
+
{
|
|
7753
|
+
id: "footsteps",
|
|
7754
|
+
name: "Footsteps",
|
|
7755
|
+
icon: "👣"
|
|
7756
|
+
},
|
|
7757
|
+
{
|
|
7758
|
+
id: "crowd",
|
|
7759
|
+
name: "Crowd / Chatter",
|
|
7760
|
+
icon: "👥"
|
|
7761
|
+
},
|
|
7762
|
+
{
|
|
7763
|
+
id: "telephone",
|
|
7764
|
+
name: "Telephone",
|
|
7765
|
+
icon: "📞"
|
|
7766
|
+
},
|
|
7767
|
+
{
|
|
7768
|
+
id: "engine",
|
|
7769
|
+
name: "Engine / Motor",
|
|
7770
|
+
icon: "⚙️"
|
|
7771
|
+
},
|
|
7772
|
+
{
|
|
7773
|
+
id: "tools",
|
|
7774
|
+
name: "Tools / Construction",
|
|
7775
|
+
icon: "🔨"
|
|
7776
|
+
},
|
|
7777
|
+
{
|
|
7778
|
+
id: "silence",
|
|
7779
|
+
name: "Silence",
|
|
7780
|
+
icon: "🤫"
|
|
7781
|
+
}
|
|
7782
|
+
];
|
|
7573
7783
|
var YAMNET_TO_MACRO = {
|
|
7574
7784
|
mapping: {
|
|
7575
7785
|
Speech: "speech",
|
|
@@ -7836,6 +8046,125 @@ var _macroLookup = /* @__PURE__ */ new Map();
|
|
|
7836
8046
|
for (const [k, v] of Object.entries(YAMNET_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
7837
8047
|
for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
7838
8048
|
/**
|
|
8049
|
+
* Unified event-kind taxonomy — THE single source of truth for
|
|
8050
|
+
* `kind → { parentKind, category, level, color, iconId, labelKey, label,
|
|
8051
|
+
* icon }`.
|
|
8052
|
+
*
|
|
8053
|
+
* This dictionary folds together what used to be scattered across four
|
|
8054
|
+
* copies:
|
|
8055
|
+
* - `capabilities/sensor-event-kinds.ts` (sensor cap colors)
|
|
8056
|
+
* - `addon-post-analysis/.../services/event-kinds.ts`
|
|
8057
|
+
* (MOTION/PERSON/VEHICLE… _COLOR constants)
|
|
8058
|
+
* - `ui-library/composites/detection-colors.ts` (CLASS_COLORS)
|
|
8059
|
+
* - `addon-post-analysis/shared/frame/box-drawer.ts` (DEFAULT_COLOR)
|
|
8060
|
+
* - the COCO / audio class maps (macro ↔ sub relationships)
|
|
8061
|
+
*
|
|
8062
|
+
* The DATA (serializable — color/iconId/labelKey/parentKind) lives here in
|
|
8063
|
+
* `@camstack/types`. The UI-side mapping `iconId → lucide component` and
|
|
8064
|
+
* `labelKey → t()` lives in `@camstack/ui-library`. UIs never hardcode a
|
|
8065
|
+
* color or an icon: they read this dictionary (server descriptors carry the
|
|
8066
|
+
* fields inline; the client resolves color/icon/label from `iconId`/`kind`).
|
|
8067
|
+
*
|
|
8068
|
+
* Two levels only (v1 YAGNI): macro → sub. `person` is a leaf macro.
|
|
8069
|
+
*/
|
|
8070
|
+
var TAXONOMY_COLORS = {
|
|
8071
|
+
motion: "#f59e0b",
|
|
8072
|
+
audio: "#06b6d4",
|
|
8073
|
+
person: "#22c55e",
|
|
8074
|
+
vehicle: "#3b82f6",
|
|
8075
|
+
animal: "#f97316",
|
|
8076
|
+
package: "#a855f7",
|
|
8077
|
+
sensor: "#8b5cf6",
|
|
8078
|
+
control: "#10b981",
|
|
8079
|
+
genericDetection: "#64748b"
|
|
8080
|
+
};
|
|
8081
|
+
var DETECTION_SUB_COLORS = {
|
|
8082
|
+
car: "#f59e0b",
|
|
8083
|
+
truck: "#d97706",
|
|
8084
|
+
bus: "#b45309",
|
|
8085
|
+
motorcycle: "#eab308",
|
|
8086
|
+
bicycle: "#ca8a04",
|
|
8087
|
+
airplane: "#60a5fa",
|
|
8088
|
+
boat: "#2563eb",
|
|
8089
|
+
train: "#1d4ed8",
|
|
8090
|
+
bird: "#14b8a6",
|
|
8091
|
+
dog: "#84cc16",
|
|
8092
|
+
cat: "#f97316",
|
|
8093
|
+
horse: "#a16207",
|
|
8094
|
+
sheep: "#a3a3a3",
|
|
8095
|
+
cow: "#78716c",
|
|
8096
|
+
elephant: "#6b7280",
|
|
8097
|
+
bear: "#7c2d12",
|
|
8098
|
+
zebra: "#404040",
|
|
8099
|
+
giraffe: "#d4a373"
|
|
8100
|
+
};
|
|
8101
|
+
function titleCase(id) {
|
|
8102
|
+
return id.split(/[-_ ]/).filter((p) => p.length > 0).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" ");
|
|
8103
|
+
}
|
|
8104
|
+
var entries = /* @__PURE__ */ new Map();
|
|
8105
|
+
function macro(kind, category, color, iconId, label) {
|
|
8106
|
+
entries.set(kind, {
|
|
8107
|
+
kind,
|
|
8108
|
+
parentKind: null,
|
|
8109
|
+
level: "macro",
|
|
8110
|
+
category,
|
|
8111
|
+
color,
|
|
8112
|
+
iconId,
|
|
8113
|
+
labelKey: `eventKind.${kind}`,
|
|
8114
|
+
label
|
|
8115
|
+
});
|
|
8116
|
+
}
|
|
8117
|
+
function sub(kind, parentKind, category, color, iconId, label) {
|
|
8118
|
+
entries.set(kind, {
|
|
8119
|
+
kind,
|
|
8120
|
+
parentKind,
|
|
8121
|
+
level: "sub",
|
|
8122
|
+
category,
|
|
8123
|
+
color,
|
|
8124
|
+
iconId,
|
|
8125
|
+
labelKey: `eventKind.${kind}`,
|
|
8126
|
+
label
|
|
8127
|
+
});
|
|
8128
|
+
}
|
|
8129
|
+
macro("motion", "motion", TAXONOMY_COLORS.motion, "motion", "Motion");
|
|
8130
|
+
macro("audio", "audio", TAXONOMY_COLORS.audio, "audio", "Audio");
|
|
8131
|
+
macro("person", "detection", TAXONOMY_COLORS.person, "person", "Person");
|
|
8132
|
+
macro("vehicle", "detection", TAXONOMY_COLORS.vehicle, "vehicle", "Vehicle");
|
|
8133
|
+
macro("animal", "detection", TAXONOMY_COLORS.animal, "animal", "Animal");
|
|
8134
|
+
macro("package", "package", TAXONOMY_COLORS.package, "package", "Package");
|
|
8135
|
+
macro("sensor", "sensor", TAXONOMY_COLORS.sensor, "sensor", "Sensor");
|
|
8136
|
+
macro("control", "control", TAXONOMY_COLORS.control, "control", "Control");
|
|
8137
|
+
for (const [cocoClass, macroClass] of Object.entries(COCO_TO_MACRO.mapping)) {
|
|
8138
|
+
if (macroClass !== "vehicle" && macroClass !== "animal") continue;
|
|
8139
|
+
if (entries.has(cocoClass)) continue;
|
|
8140
|
+
sub(cocoClass, macroClass, "detection", DETECTION_SUB_COLORS[cocoClass] ?? TAXONOMY_COLORS.genericDetection, cocoClass, titleCase(cocoClass));
|
|
8141
|
+
}
|
|
8142
|
+
sub("package-delivered", "package", "package", TAXONOMY_COLORS.package, "package", "Package delivered");
|
|
8143
|
+
sub("package-picked-up", "package", "package", TAXONOMY_COLORS.package, "package", "Package picked up");
|
|
8144
|
+
sub("contact", "sensor", "sensor", "#f59e0b", "door", "Contact");
|
|
8145
|
+
sub("motion-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "pir", "Motion sensor");
|
|
8146
|
+
sub("smoke", "sensor", "sensor", "#ef4444", "smoke", "Smoke");
|
|
8147
|
+
sub("flood", "sensor", "sensor", "#3b82f6", "water", "Water leak");
|
|
8148
|
+
sub("gas", "sensor", "sensor", "#ef4444", "gas", "Gas");
|
|
8149
|
+
sub("carbon-monoxide", "sensor", "sensor", "#dc2626", "smoke", "Carbon monoxide");
|
|
8150
|
+
sub("vibration", "sensor", "sensor", "#eab308", "vibration", "Vibration");
|
|
8151
|
+
sub("tamper", "sensor", "sensor", "#f97316", "tamper", "Tamper");
|
|
8152
|
+
sub("presence", "sensor", "sensor", "#22c55e", "presence", "Presence");
|
|
8153
|
+
sub("enum-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "generic", "Sensor state");
|
|
8154
|
+
sub("device-event", "sensor", "sensor", "#10b981", "button", "Device event");
|
|
8155
|
+
sub("lock", "control", "control", "#0ea5e9", "lock", "Lock");
|
|
8156
|
+
sub("switch", "control", "control", TAXONOMY_COLORS.control, "switch", "Switch");
|
|
8157
|
+
sub("siren", "control", "control", "#dc2626", "siren", "Siren");
|
|
8158
|
+
sub("button", "control", "control", "#10b981", "button", "Button");
|
|
8159
|
+
sub("doorbell", "control", "control", "#a855f7", "doorbell", "Doorbell");
|
|
8160
|
+
for (const l of AUDIO_MACRO_LABELS) {
|
|
8161
|
+
const kind = `audio-${l.id}`;
|
|
8162
|
+
if (entries.has(kind)) continue;
|
|
8163
|
+
sub(kind, "audio", "audio", TAXONOMY_COLORS.audio, kind, l.name);
|
|
8164
|
+
}
|
|
8165
|
+
/** The complete taxonomy dictionary, keyed by kind. */
|
|
8166
|
+
var EVENT_TAXONOMY = Object.freeze(Object.fromEntries(entries));
|
|
8167
|
+
/**
|
|
7839
8168
|
* Error types for the safe expression engine. Two distinct classes so callers
|
|
7840
8169
|
* can tell a compile-time (grammar) failure from a runtime (evaluation)
|
|
7841
8170
|
* failure — both are non-fatal to the host: read paths degrade to "skip link".
|
|
@@ -15802,17 +16131,30 @@ var EventKindCategorySchema = _enum([
|
|
|
15802
16131
|
"audio",
|
|
15803
16132
|
"detection",
|
|
15804
16133
|
"sensor",
|
|
16134
|
+
"control",
|
|
15805
16135
|
"custom",
|
|
15806
16136
|
"package"
|
|
15807
16137
|
]);
|
|
16138
|
+
/** Taxonomy level — macro (timeline lane) vs sub (events-page leaf). */
|
|
16139
|
+
var EventKindLevelSchema = _enum(["macro", "sub"]);
|
|
15808
16140
|
var EventKindDescriptorSchema = object({
|
|
15809
|
-
/** Stable kind id (e.g. 'motion', '
|
|
16141
|
+
/** Stable kind id (e.g. 'motion', 'vehicle', 'car', 'lock'). */
|
|
15810
16142
|
kind: string(),
|
|
16143
|
+
/** i18n key resolved on the UI side; `label` is the English fallback. */
|
|
16144
|
+
labelKey: string(),
|
|
16145
|
+
/** English fallback label (kept for clients that don't translate). */
|
|
15811
16146
|
label: string(),
|
|
15812
16147
|
/** Hex color for timeline/legend rendering. */
|
|
15813
16148
|
color: string(),
|
|
16149
|
+
/** Dictionary id → lucide component on the UI side. */
|
|
16150
|
+
iconId: string(),
|
|
16151
|
+
/** Legacy closed-vocab glyph — fallback for `iconId`. */
|
|
15814
16152
|
icon: EventKindIconSchema,
|
|
15815
16153
|
category: EventKindCategorySchema,
|
|
16154
|
+
/** Macro parent for this kind ('car' → 'vehicle'); null for a macro. */
|
|
16155
|
+
parentKind: string().nullable(),
|
|
16156
|
+
/** Derived from `parentKind`, explicit for the client tree. */
|
|
16157
|
+
level: EventKindLevelSchema,
|
|
15816
16158
|
/** Which cap + device contributes this kind. For built-ins the camera
|
|
15817
16159
|
* itself; for sensor kinds the LINKED source device. */
|
|
15818
16160
|
source: object({
|
|
@@ -15885,11 +16227,21 @@ var TrackAudioLabelSchema = object({
|
|
|
15885
16227
|
firstAt: number(),
|
|
15886
16228
|
lastAt: number()
|
|
15887
16229
|
});
|
|
16230
|
+
/**
|
|
16231
|
+
* How a track was produced. `pipeline` (default / absent) = the spatial
|
|
16232
|
+
* detection+tracking pipeline. `sensor` = a SYNTHETIC track projected from a
|
|
16233
|
+
* linked sensor/control state change (no positions; carries a snapshot). The
|
|
16234
|
+
* spatial subsystems (tracker association, occupancy count, re-id/embedding,
|
|
16235
|
+
* resurrection) MUST skip `sensor` tracks — they have no bbox trajectory.
|
|
16236
|
+
*/
|
|
16237
|
+
var TrackSourceSchema = _enum(["pipeline", "sensor"]);
|
|
15888
16238
|
var TrackSchema = object({
|
|
15889
16239
|
trackId: string(),
|
|
15890
16240
|
deviceId: number(),
|
|
15891
16241
|
className: string(),
|
|
15892
16242
|
label: string().optional(),
|
|
16243
|
+
/** Track provenance. Absent ⇒ `pipeline` (legacy rows). */
|
|
16244
|
+
source: TrackSourceSchema.optional(),
|
|
15893
16245
|
firstSeen: number(),
|
|
15894
16246
|
lastSeen: number(),
|
|
15895
16247
|
/** Frame-rate position history (subject to maxPositionHistory cap). */
|
|
@@ -16144,6 +16496,26 @@ var TrackCascadeCountsSchema = object({
|
|
|
16144
16496
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
16145
16497
|
embeddings: number().int()
|
|
16146
16498
|
});
|
|
16499
|
+
/** Event-store footprint for one camera. */
|
|
16500
|
+
var EventStoreDeviceFootprintSchema = object({
|
|
16501
|
+
deviceId: number(),
|
|
16502
|
+
/** Persisted event rows (motion + object + audio) for the camera. */
|
|
16503
|
+
rows: number().int(),
|
|
16504
|
+
/** Event-owned media bytes on disk for the camera. */
|
|
16505
|
+
bytes: number().int()
|
|
16506
|
+
});
|
|
16507
|
+
/** Aggregate event-store footprint: global totals + per-camera breakdown. */
|
|
16508
|
+
var EventStoreFootprintSchema = object({
|
|
16509
|
+
totalRows: number().int(),
|
|
16510
|
+
totalBytes: number().int(),
|
|
16511
|
+
devices: array(EventStoreDeviceFootprintSchema).readonly()
|
|
16512
|
+
});
|
|
16513
|
+
/** Per-kind counts returned by the event-prune / device-delete mutations. */
|
|
16514
|
+
var EventPruneCountsSchema = object({
|
|
16515
|
+
motion: number().int(),
|
|
16516
|
+
object: number().int(),
|
|
16517
|
+
audio: number().int()
|
|
16518
|
+
});
|
|
16147
16519
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
16148
16520
|
deviceId: number(),
|
|
16149
16521
|
trackId: string()
|
|
@@ -16207,6 +16579,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16207
16579
|
}), {
|
|
16208
16580
|
kind: "mutation",
|
|
16209
16581
|
auth: "admin"
|
|
16582
|
+
}), method(object({}), EventStoreFootprintSchema, {
|
|
16583
|
+
kind: "query",
|
|
16584
|
+
auth: "admin"
|
|
16585
|
+
}), method(object({
|
|
16586
|
+
olderThanMs: number(),
|
|
16587
|
+
reason: OpsLogReasonSchema.optional()
|
|
16588
|
+
}), EventPruneCountsSchema, {
|
|
16589
|
+
kind: "mutation",
|
|
16590
|
+
auth: "admin"
|
|
16591
|
+
}), method(object({ deviceId: number() }), EventPruneCountsSchema, {
|
|
16592
|
+
kind: "mutation",
|
|
16593
|
+
auth: "admin"
|
|
16594
|
+
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
16595
|
+
kind: "query",
|
|
16596
|
+
auth: "admin"
|
|
16210
16597
|
}), method(object({
|
|
16211
16598
|
eventId: string(),
|
|
16212
16599
|
kind: MediaFileKindEnum.optional()
|
|
@@ -16231,6 +16618,76 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16231
16618
|
eventId: string(),
|
|
16232
16619
|
timestamp: number()
|
|
16233
16620
|
});
|
|
16621
|
+
/**
|
|
16622
|
+
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
16623
|
+
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
16624
|
+
* caps into per-camera event-kind descriptors.
|
|
16625
|
+
*
|
|
16626
|
+
* The descriptor DATA (color / iconId / labelKey / parentKind / category)
|
|
16627
|
+
* is NOT duplicated here — every entry is derived from the single
|
|
16628
|
+
* `EVENT_TAXONOMY` dictionary (`catalogs/event-taxonomy.ts`). This file owns
|
|
16629
|
+
* ONLY the cap-name → taxonomy-kind mapping. Adding a new eventful sensor /
|
|
16630
|
+
* control cap means adding one line here (and a taxonomy entry); the anti-
|
|
16631
|
+
* drift guard `scripts/check-event-kind-coverage.ts` fails the build if an
|
|
16632
|
+
* eventful cap is missing.
|
|
16633
|
+
*/
|
|
16634
|
+
/** Map a taxonomy `iconId` onto the legacy closed `EventKindIcon` enum. */
|
|
16635
|
+
var LEGACY_ICON = {
|
|
16636
|
+
motion: "motion",
|
|
16637
|
+
audio: "audio",
|
|
16638
|
+
person: "person",
|
|
16639
|
+
vehicle: "vehicle",
|
|
16640
|
+
animal: "animal",
|
|
16641
|
+
package: "package",
|
|
16642
|
+
door: "door",
|
|
16643
|
+
pir: "pir",
|
|
16644
|
+
smoke: "smoke",
|
|
16645
|
+
water: "water",
|
|
16646
|
+
button: "button",
|
|
16647
|
+
generic: "generic",
|
|
16648
|
+
gas: "smoke",
|
|
16649
|
+
vibration: "generic",
|
|
16650
|
+
tamper: "generic",
|
|
16651
|
+
presence: "person",
|
|
16652
|
+
lock: "generic",
|
|
16653
|
+
siren: "generic",
|
|
16654
|
+
switch: "generic",
|
|
16655
|
+
doorbell: "button"
|
|
16656
|
+
};
|
|
16657
|
+
function legacyIcon(iconId) {
|
|
16658
|
+
return LEGACY_ICON[iconId] ?? "generic";
|
|
16659
|
+
}
|
|
16660
|
+
/**
|
|
16661
|
+
* Cap name → taxonomy kind id. Covers EVERY eventful sensor / control cap.
|
|
16662
|
+
* The anti-drift guard cross-checks this against the eventful caps declared
|
|
16663
|
+
* in `packages/types/src/capabilities/*.cap.ts`.
|
|
16664
|
+
*/
|
|
16665
|
+
var CAP_TO_KIND = {
|
|
16666
|
+
contact: "contact",
|
|
16667
|
+
motion: "motion-sensor",
|
|
16668
|
+
smoke: "smoke",
|
|
16669
|
+
flood: "flood",
|
|
16670
|
+
gas: "gas",
|
|
16671
|
+
"carbon-monoxide": "carbon-monoxide",
|
|
16672
|
+
vibration: "vibration",
|
|
16673
|
+
tamper: "tamper",
|
|
16674
|
+
presence: "presence",
|
|
16675
|
+
"enum-sensor": "enum-sensor",
|
|
16676
|
+
"event-emitter": "device-event",
|
|
16677
|
+
"lock-control": "lock",
|
|
16678
|
+
switch: "switch",
|
|
16679
|
+
button: "button",
|
|
16680
|
+
doorbell: "doorbell"
|
|
16681
|
+
};
|
|
16682
|
+
function buildDescriptor(capName, kind) {
|
|
16683
|
+
const t = EVENT_TAXONOMY[kind];
|
|
16684
|
+
if (t === void 0) throw new Error(`EVENT_KIND_BY_CAP: cap '${capName}' maps to unknown taxonomy kind '${kind}'`);
|
|
16685
|
+
return {
|
|
16686
|
+
...t,
|
|
16687
|
+
icon: legacyIcon(t.iconId)
|
|
16688
|
+
};
|
|
16689
|
+
}
|
|
16690
|
+
Object.freeze(Object.fromEntries(Object.entries(CAP_TO_KIND).map(([capName, kind]) => [capName, buildDescriptor(capName, kind)])));
|
|
16234
16691
|
var CameraPipelineConfigSchema = object({
|
|
16235
16692
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
16236
16693
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -19501,13 +19958,29 @@ method(object({
|
|
|
19501
19958
|
}), method(object({ deviceId: number() }), RecordingStatusSchema, {
|
|
19502
19959
|
kind: "mutation",
|
|
19503
19960
|
auth: "admin"
|
|
19504
|
-
}), method(object({
|
|
19961
|
+
}), method(object({
|
|
19962
|
+
deviceId: number(),
|
|
19963
|
+
reason: OpsLogReasonSchema.optional()
|
|
19964
|
+
}), object({
|
|
19505
19965
|
floorMs: number().nullable(),
|
|
19506
19966
|
deletedBuckets: number().int(),
|
|
19507
19967
|
reclaimedBytes: number().int()
|
|
19508
19968
|
}), {
|
|
19509
19969
|
kind: "mutation",
|
|
19510
19970
|
auth: "admin"
|
|
19971
|
+
}), method(object({
|
|
19972
|
+
deviceId: number(),
|
|
19973
|
+
fromMs: number().optional(),
|
|
19974
|
+
toMs: number().optional()
|
|
19975
|
+
}), object({
|
|
19976
|
+
deletedBuckets: number().int(),
|
|
19977
|
+
reclaimedBytes: number().int()
|
|
19978
|
+
}), {
|
|
19979
|
+
kind: "mutation",
|
|
19980
|
+
auth: "admin"
|
|
19981
|
+
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
19982
|
+
kind: "query",
|
|
19983
|
+
auth: "admin"
|
|
19511
19984
|
});
|
|
19512
19985
|
/**
|
|
19513
19986
|
* `recordingExport` cap — render a footage time range into a single downloadable
|
|
@@ -22629,6 +23102,12 @@ Object.freeze({
|
|
|
22629
23102
|
addonId: null,
|
|
22630
23103
|
access: "delete"
|
|
22631
23104
|
},
|
|
23105
|
+
"pipelineAnalytics.deleteDeviceEvents": {
|
|
23106
|
+
capName: "pipeline-analytics",
|
|
23107
|
+
capScope: "device",
|
|
23108
|
+
addonId: null,
|
|
23109
|
+
access: "delete"
|
|
23110
|
+
},
|
|
22632
23111
|
"pipelineAnalytics.deleteTracks": {
|
|
22633
23112
|
capName: "pipeline-analytics",
|
|
22634
23113
|
capScope: "device",
|
|
@@ -22659,6 +23138,12 @@ Object.freeze({
|
|
|
22659
23138
|
addonId: null,
|
|
22660
23139
|
access: "view"
|
|
22661
23140
|
},
|
|
23141
|
+
"pipelineAnalytics.getEventStoreFootprint": {
|
|
23142
|
+
capName: "pipeline-analytics",
|
|
23143
|
+
capScope: "device",
|
|
23144
|
+
addonId: null,
|
|
23145
|
+
access: "view"
|
|
23146
|
+
},
|
|
22662
23147
|
"pipelineAnalytics.getKeyEvents": {
|
|
22663
23148
|
capName: "pipeline-analytics",
|
|
22664
23149
|
capScope: "device",
|
|
@@ -22701,6 +23186,12 @@ Object.freeze({
|
|
|
22701
23186
|
addonId: null,
|
|
22702
23187
|
access: "view"
|
|
22703
23188
|
},
|
|
23189
|
+
"pipelineAnalytics.listOpsLog": {
|
|
23190
|
+
capName: "pipeline-analytics",
|
|
23191
|
+
capScope: "device",
|
|
23192
|
+
addonId: null,
|
|
23193
|
+
access: "view"
|
|
23194
|
+
},
|
|
22704
23195
|
"pipelineAnalytics.listRecentTracks": {
|
|
22705
23196
|
capName: "pipeline-analytics",
|
|
22706
23197
|
capScope: "device",
|
|
@@ -22713,6 +23204,12 @@ Object.freeze({
|
|
|
22713
23204
|
addonId: null,
|
|
22714
23205
|
access: "view"
|
|
22715
23206
|
},
|
|
23207
|
+
"pipelineAnalytics.pruneEvents": {
|
|
23208
|
+
capName: "pipeline-analytics",
|
|
23209
|
+
capScope: "device",
|
|
23210
|
+
addonId: null,
|
|
23211
|
+
access: "create"
|
|
23212
|
+
},
|
|
22716
23213
|
"pipelineAnalytics.pruneEventsBefore": {
|
|
22717
23214
|
capName: "pipeline-analytics",
|
|
22718
23215
|
capScope: "device",
|
|
@@ -23475,6 +23972,12 @@ Object.freeze({
|
|
|
23475
23972
|
addonId: null,
|
|
23476
23973
|
access: "create"
|
|
23477
23974
|
},
|
|
23975
|
+
"recording.deleteFootprint": {
|
|
23976
|
+
capName: "recording",
|
|
23977
|
+
capScope: "system",
|
|
23978
|
+
addonId: null,
|
|
23979
|
+
access: "delete"
|
|
23980
|
+
},
|
|
23478
23981
|
"recording.getAvailability": {
|
|
23479
23982
|
capName: "recording",
|
|
23480
23983
|
capScope: "system",
|
|
@@ -23505,6 +24008,12 @@ Object.freeze({
|
|
|
23505
24008
|
addonId: null,
|
|
23506
24009
|
access: "view"
|
|
23507
24010
|
},
|
|
24011
|
+
"recording.listOpsLog": {
|
|
24012
|
+
capName: "recording",
|
|
24013
|
+
capScope: "system",
|
|
24014
|
+
addonId: null,
|
|
24015
|
+
access: "view"
|
|
24016
|
+
},
|
|
23508
24017
|
"recording.locateSegment": {
|
|
23509
24018
|
capName: "recording",
|
|
23510
24019
|
capScope: "system",
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-CPFhFQVO.js");
|
|
6
6
|
let node_child_process = require("node:child_process");
|
|
7
7
|
let node_util = require("node:util");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as EventCategory, n as networkAccessCapability, r as BaseAddon } from "../dist-
|
|
1
|
+
import { i as EventCategory, n as networkAccessCapability, r as BaseAddon } from "../dist-C_oio-xb.mjs";
|
|
2
2
|
import { execFile } from "node:child_process";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-tailscale",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.28",
|
|
4
4
|
"description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|