@camstack/addon-provider-wyze 0.1.24 → 0.1.25
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 +367 -1
- package/dist/addon.mjs +367 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -7674,6 +7674,160 @@ var EncodeProfileSchema = object({
|
|
|
7674
7674
|
*/
|
|
7675
7675
|
outputArgs: array(string()).optional()
|
|
7676
7676
|
});
|
|
7677
|
+
var COCO_TO_MACRO = {
|
|
7678
|
+
mapping: {
|
|
7679
|
+
person: "person",
|
|
7680
|
+
bicycle: "vehicle",
|
|
7681
|
+
car: "vehicle",
|
|
7682
|
+
motorcycle: "vehicle",
|
|
7683
|
+
airplane: "vehicle",
|
|
7684
|
+
bus: "vehicle",
|
|
7685
|
+
train: "vehicle",
|
|
7686
|
+
truck: "vehicle",
|
|
7687
|
+
boat: "vehicle",
|
|
7688
|
+
bird: "animal",
|
|
7689
|
+
cat: "animal",
|
|
7690
|
+
dog: "animal",
|
|
7691
|
+
horse: "animal",
|
|
7692
|
+
sheep: "animal",
|
|
7693
|
+
cow: "animal",
|
|
7694
|
+
elephant: "animal",
|
|
7695
|
+
bear: "animal",
|
|
7696
|
+
zebra: "animal",
|
|
7697
|
+
giraffe: "animal",
|
|
7698
|
+
suitcase: "package",
|
|
7699
|
+
backpack: "package",
|
|
7700
|
+
handbag: "package"
|
|
7701
|
+
},
|
|
7702
|
+
preserveOriginal: false
|
|
7703
|
+
};
|
|
7704
|
+
var AUDIO_MACRO_LABELS = [
|
|
7705
|
+
{
|
|
7706
|
+
id: "speech",
|
|
7707
|
+
name: "Speech",
|
|
7708
|
+
icon: "🗣️"
|
|
7709
|
+
},
|
|
7710
|
+
{
|
|
7711
|
+
id: "scream",
|
|
7712
|
+
name: "Scream / Shout",
|
|
7713
|
+
icon: "😱"
|
|
7714
|
+
},
|
|
7715
|
+
{
|
|
7716
|
+
id: "crying",
|
|
7717
|
+
name: "Crying / Baby",
|
|
7718
|
+
icon: "😢"
|
|
7719
|
+
},
|
|
7720
|
+
{
|
|
7721
|
+
id: "laughter",
|
|
7722
|
+
name: "Laughter",
|
|
7723
|
+
icon: "😂"
|
|
7724
|
+
},
|
|
7725
|
+
{
|
|
7726
|
+
id: "music",
|
|
7727
|
+
name: "Music",
|
|
7728
|
+
icon: "🎵"
|
|
7729
|
+
},
|
|
7730
|
+
{
|
|
7731
|
+
id: "dog",
|
|
7732
|
+
name: "Dog",
|
|
7733
|
+
icon: "🐕"
|
|
7734
|
+
},
|
|
7735
|
+
{
|
|
7736
|
+
id: "cat",
|
|
7737
|
+
name: "Cat",
|
|
7738
|
+
icon: "🐈"
|
|
7739
|
+
},
|
|
7740
|
+
{
|
|
7741
|
+
id: "bird",
|
|
7742
|
+
name: "Bird",
|
|
7743
|
+
icon: "🐦"
|
|
7744
|
+
},
|
|
7745
|
+
{
|
|
7746
|
+
id: "animal",
|
|
7747
|
+
name: "Animal (other)",
|
|
7748
|
+
icon: "🐾"
|
|
7749
|
+
},
|
|
7750
|
+
{
|
|
7751
|
+
id: "alarm",
|
|
7752
|
+
name: "Alarm / Siren",
|
|
7753
|
+
icon: "🚨"
|
|
7754
|
+
},
|
|
7755
|
+
{
|
|
7756
|
+
id: "doorbell",
|
|
7757
|
+
name: "Doorbell / Knock",
|
|
7758
|
+
icon: "🔔"
|
|
7759
|
+
},
|
|
7760
|
+
{
|
|
7761
|
+
id: "glass_breaking",
|
|
7762
|
+
name: "Glass Breaking",
|
|
7763
|
+
icon: "💥"
|
|
7764
|
+
},
|
|
7765
|
+
{
|
|
7766
|
+
id: "gunshot",
|
|
7767
|
+
name: "Gunshot / Explosion",
|
|
7768
|
+
icon: "💣"
|
|
7769
|
+
},
|
|
7770
|
+
{
|
|
7771
|
+
id: "vehicle",
|
|
7772
|
+
name: "Vehicle",
|
|
7773
|
+
icon: "🚗"
|
|
7774
|
+
},
|
|
7775
|
+
{
|
|
7776
|
+
id: "siren",
|
|
7777
|
+
name: "Emergency Siren",
|
|
7778
|
+
icon: "🚑"
|
|
7779
|
+
},
|
|
7780
|
+
{
|
|
7781
|
+
id: "fire",
|
|
7782
|
+
name: "Fire / Smoke",
|
|
7783
|
+
icon: "🔥"
|
|
7784
|
+
},
|
|
7785
|
+
{
|
|
7786
|
+
id: "water",
|
|
7787
|
+
name: "Water",
|
|
7788
|
+
icon: "💧"
|
|
7789
|
+
},
|
|
7790
|
+
{
|
|
7791
|
+
id: "wind",
|
|
7792
|
+
name: "Wind / Weather",
|
|
7793
|
+
icon: "🌬️"
|
|
7794
|
+
},
|
|
7795
|
+
{
|
|
7796
|
+
id: "door",
|
|
7797
|
+
name: "Door",
|
|
7798
|
+
icon: "🚪"
|
|
7799
|
+
},
|
|
7800
|
+
{
|
|
7801
|
+
id: "footsteps",
|
|
7802
|
+
name: "Footsteps",
|
|
7803
|
+
icon: "👣"
|
|
7804
|
+
},
|
|
7805
|
+
{
|
|
7806
|
+
id: "crowd",
|
|
7807
|
+
name: "Crowd / Chatter",
|
|
7808
|
+
icon: "👥"
|
|
7809
|
+
},
|
|
7810
|
+
{
|
|
7811
|
+
id: "telephone",
|
|
7812
|
+
name: "Telephone",
|
|
7813
|
+
icon: "📞"
|
|
7814
|
+
},
|
|
7815
|
+
{
|
|
7816
|
+
id: "engine",
|
|
7817
|
+
name: "Engine / Motor",
|
|
7818
|
+
icon: "⚙️"
|
|
7819
|
+
},
|
|
7820
|
+
{
|
|
7821
|
+
id: "tools",
|
|
7822
|
+
name: "Tools / Construction",
|
|
7823
|
+
icon: "🔨"
|
|
7824
|
+
},
|
|
7825
|
+
{
|
|
7826
|
+
id: "silence",
|
|
7827
|
+
name: "Silence",
|
|
7828
|
+
icon: "🤫"
|
|
7829
|
+
}
|
|
7830
|
+
];
|
|
7677
7831
|
var YAMNET_TO_MACRO = {
|
|
7678
7832
|
mapping: {
|
|
7679
7833
|
Speech: "speech",
|
|
@@ -7940,6 +8094,125 @@ var _macroLookup = /* @__PURE__ */ new Map();
|
|
|
7940
8094
|
for (const [k, v] of Object.entries(YAMNET_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
7941
8095
|
for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
7942
8096
|
/**
|
|
8097
|
+
* Unified event-kind taxonomy — THE single source of truth for
|
|
8098
|
+
* `kind → { parentKind, category, level, color, iconId, labelKey, label,
|
|
8099
|
+
* icon }`.
|
|
8100
|
+
*
|
|
8101
|
+
* This dictionary folds together what used to be scattered across four
|
|
8102
|
+
* copies:
|
|
8103
|
+
* - `capabilities/sensor-event-kinds.ts` (sensor cap colors)
|
|
8104
|
+
* - `addon-post-analysis/.../services/event-kinds.ts`
|
|
8105
|
+
* (MOTION/PERSON/VEHICLE… _COLOR constants)
|
|
8106
|
+
* - `ui-library/composites/detection-colors.ts` (CLASS_COLORS)
|
|
8107
|
+
* - `addon-post-analysis/shared/frame/box-drawer.ts` (DEFAULT_COLOR)
|
|
8108
|
+
* - the COCO / audio class maps (macro ↔ sub relationships)
|
|
8109
|
+
*
|
|
8110
|
+
* The DATA (serializable — color/iconId/labelKey/parentKind) lives here in
|
|
8111
|
+
* `@camstack/types`. The UI-side mapping `iconId → lucide component` and
|
|
8112
|
+
* `labelKey → t()` lives in `@camstack/ui-library`. UIs never hardcode a
|
|
8113
|
+
* color or an icon: they read this dictionary (server descriptors carry the
|
|
8114
|
+
* fields inline; the client resolves color/icon/label from `iconId`/`kind`).
|
|
8115
|
+
*
|
|
8116
|
+
* Two levels only (v1 YAGNI): macro → sub. `person` is a leaf macro.
|
|
8117
|
+
*/
|
|
8118
|
+
var TAXONOMY_COLORS = {
|
|
8119
|
+
motion: "#f59e0b",
|
|
8120
|
+
audio: "#06b6d4",
|
|
8121
|
+
person: "#22c55e",
|
|
8122
|
+
vehicle: "#3b82f6",
|
|
8123
|
+
animal: "#f97316",
|
|
8124
|
+
package: "#a855f7",
|
|
8125
|
+
sensor: "#8b5cf6",
|
|
8126
|
+
control: "#10b981",
|
|
8127
|
+
genericDetection: "#64748b"
|
|
8128
|
+
};
|
|
8129
|
+
var DETECTION_SUB_COLORS = {
|
|
8130
|
+
car: "#f59e0b",
|
|
8131
|
+
truck: "#d97706",
|
|
8132
|
+
bus: "#b45309",
|
|
8133
|
+
motorcycle: "#eab308",
|
|
8134
|
+
bicycle: "#ca8a04",
|
|
8135
|
+
airplane: "#60a5fa",
|
|
8136
|
+
boat: "#2563eb",
|
|
8137
|
+
train: "#1d4ed8",
|
|
8138
|
+
bird: "#14b8a6",
|
|
8139
|
+
dog: "#84cc16",
|
|
8140
|
+
cat: "#f97316",
|
|
8141
|
+
horse: "#a16207",
|
|
8142
|
+
sheep: "#a3a3a3",
|
|
8143
|
+
cow: "#78716c",
|
|
8144
|
+
elephant: "#6b7280",
|
|
8145
|
+
bear: "#7c2d12",
|
|
8146
|
+
zebra: "#404040",
|
|
8147
|
+
giraffe: "#d4a373"
|
|
8148
|
+
};
|
|
8149
|
+
function titleCase(id) {
|
|
8150
|
+
return id.split(/[-_ ]/).filter((p) => p.length > 0).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" ");
|
|
8151
|
+
}
|
|
8152
|
+
var entries = /* @__PURE__ */ new Map();
|
|
8153
|
+
function macro(kind, category, color, iconId, label) {
|
|
8154
|
+
entries.set(kind, {
|
|
8155
|
+
kind,
|
|
8156
|
+
parentKind: null,
|
|
8157
|
+
level: "macro",
|
|
8158
|
+
category,
|
|
8159
|
+
color,
|
|
8160
|
+
iconId,
|
|
8161
|
+
labelKey: `eventKind.${kind}`,
|
|
8162
|
+
label
|
|
8163
|
+
});
|
|
8164
|
+
}
|
|
8165
|
+
function sub(kind, parentKind, category, color, iconId, label) {
|
|
8166
|
+
entries.set(kind, {
|
|
8167
|
+
kind,
|
|
8168
|
+
parentKind,
|
|
8169
|
+
level: "sub",
|
|
8170
|
+
category,
|
|
8171
|
+
color,
|
|
8172
|
+
iconId,
|
|
8173
|
+
labelKey: `eventKind.${kind}`,
|
|
8174
|
+
label
|
|
8175
|
+
});
|
|
8176
|
+
}
|
|
8177
|
+
macro("motion", "motion", TAXONOMY_COLORS.motion, "motion", "Motion");
|
|
8178
|
+
macro("audio", "audio", TAXONOMY_COLORS.audio, "audio", "Audio");
|
|
8179
|
+
macro("person", "detection", TAXONOMY_COLORS.person, "person", "Person");
|
|
8180
|
+
macro("vehicle", "detection", TAXONOMY_COLORS.vehicle, "vehicle", "Vehicle");
|
|
8181
|
+
macro("animal", "detection", TAXONOMY_COLORS.animal, "animal", "Animal");
|
|
8182
|
+
macro("package", "package", TAXONOMY_COLORS.package, "package", "Package");
|
|
8183
|
+
macro("sensor", "sensor", TAXONOMY_COLORS.sensor, "sensor", "Sensor");
|
|
8184
|
+
macro("control", "control", TAXONOMY_COLORS.control, "control", "Control");
|
|
8185
|
+
for (const [cocoClass, macroClass] of Object.entries(COCO_TO_MACRO.mapping)) {
|
|
8186
|
+
if (macroClass !== "vehicle" && macroClass !== "animal") continue;
|
|
8187
|
+
if (entries.has(cocoClass)) continue;
|
|
8188
|
+
sub(cocoClass, macroClass, "detection", DETECTION_SUB_COLORS[cocoClass] ?? TAXONOMY_COLORS.genericDetection, cocoClass, titleCase(cocoClass));
|
|
8189
|
+
}
|
|
8190
|
+
sub("package-delivered", "package", "package", TAXONOMY_COLORS.package, "package", "Package delivered");
|
|
8191
|
+
sub("package-picked-up", "package", "package", TAXONOMY_COLORS.package, "package", "Package picked up");
|
|
8192
|
+
sub("contact", "sensor", "sensor", "#f59e0b", "door", "Contact");
|
|
8193
|
+
sub("motion-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "pir", "Motion sensor");
|
|
8194
|
+
sub("smoke", "sensor", "sensor", "#ef4444", "smoke", "Smoke");
|
|
8195
|
+
sub("flood", "sensor", "sensor", "#3b82f6", "water", "Water leak");
|
|
8196
|
+
sub("gas", "sensor", "sensor", "#ef4444", "gas", "Gas");
|
|
8197
|
+
sub("carbon-monoxide", "sensor", "sensor", "#dc2626", "smoke", "Carbon monoxide");
|
|
8198
|
+
sub("vibration", "sensor", "sensor", "#eab308", "vibration", "Vibration");
|
|
8199
|
+
sub("tamper", "sensor", "sensor", "#f97316", "tamper", "Tamper");
|
|
8200
|
+
sub("presence", "sensor", "sensor", "#22c55e", "presence", "Presence");
|
|
8201
|
+
sub("enum-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "generic", "Sensor state");
|
|
8202
|
+
sub("device-event", "sensor", "sensor", "#10b981", "button", "Device event");
|
|
8203
|
+
sub("lock", "control", "control", "#0ea5e9", "lock", "Lock");
|
|
8204
|
+
sub("switch", "control", "control", TAXONOMY_COLORS.control, "switch", "Switch");
|
|
8205
|
+
sub("siren", "control", "control", "#dc2626", "siren", "Siren");
|
|
8206
|
+
sub("button", "control", "control", "#10b981", "button", "Button");
|
|
8207
|
+
sub("doorbell", "control", "control", "#a855f7", "doorbell", "Doorbell");
|
|
8208
|
+
for (const l of AUDIO_MACRO_LABELS) {
|
|
8209
|
+
const kind = `audio-${l.id}`;
|
|
8210
|
+
if (entries.has(kind)) continue;
|
|
8211
|
+
sub(kind, "audio", "audio", TAXONOMY_COLORS.audio, kind, l.name);
|
|
8212
|
+
}
|
|
8213
|
+
/** The complete taxonomy dictionary, keyed by kind. */
|
|
8214
|
+
var EVENT_TAXONOMY = Object.freeze(Object.fromEntries(entries));
|
|
8215
|
+
/**
|
|
7943
8216
|
* Error types for the safe expression engine. Two distinct classes so callers
|
|
7944
8217
|
* can tell a compile-time (grammar) failure from a runtime (evaluation)
|
|
7945
8218
|
* failure — both are non-fatal to the host: read paths degrade to "skip link".
|
|
@@ -18889,17 +19162,30 @@ var EventKindCategorySchema = _enum([
|
|
|
18889
19162
|
"audio",
|
|
18890
19163
|
"detection",
|
|
18891
19164
|
"sensor",
|
|
19165
|
+
"control",
|
|
18892
19166
|
"custom",
|
|
18893
19167
|
"package"
|
|
18894
19168
|
]);
|
|
19169
|
+
/** Taxonomy level — macro (timeline lane) vs sub (events-page leaf). */
|
|
19170
|
+
var EventKindLevelSchema = _enum(["macro", "sub"]);
|
|
18895
19171
|
var EventKindDescriptorSchema = object({
|
|
18896
|
-
/** Stable kind id (e.g. 'motion', '
|
|
19172
|
+
/** Stable kind id (e.g. 'motion', 'vehicle', 'car', 'lock'). */
|
|
18897
19173
|
kind: string(),
|
|
19174
|
+
/** i18n key resolved on the UI side; `label` is the English fallback. */
|
|
19175
|
+
labelKey: string(),
|
|
19176
|
+
/** English fallback label (kept for clients that don't translate). */
|
|
18898
19177
|
label: string(),
|
|
18899
19178
|
/** Hex color for timeline/legend rendering. */
|
|
18900
19179
|
color: string(),
|
|
19180
|
+
/** Dictionary id → lucide component on the UI side. */
|
|
19181
|
+
iconId: string(),
|
|
19182
|
+
/** Legacy closed-vocab glyph — fallback for `iconId`. */
|
|
18901
19183
|
icon: EventKindIconSchema,
|
|
18902
19184
|
category: EventKindCategorySchema,
|
|
19185
|
+
/** Macro parent for this kind ('car' → 'vehicle'); null for a macro. */
|
|
19186
|
+
parentKind: string().nullable(),
|
|
19187
|
+
/** Derived from `parentKind`, explicit for the client tree. */
|
|
19188
|
+
level: EventKindLevelSchema,
|
|
18903
19189
|
/** Which cap + device contributes this kind. For built-ins the camera
|
|
18904
19190
|
* itself; for sensor kinds the LINKED source device. */
|
|
18905
19191
|
source: object({
|
|
@@ -18972,11 +19258,21 @@ var TrackAudioLabelSchema = object({
|
|
|
18972
19258
|
firstAt: number(),
|
|
18973
19259
|
lastAt: number()
|
|
18974
19260
|
});
|
|
19261
|
+
/**
|
|
19262
|
+
* How a track was produced. `pipeline` (default / absent) = the spatial
|
|
19263
|
+
* detection+tracking pipeline. `sensor` = a SYNTHETIC track projected from a
|
|
19264
|
+
* linked sensor/control state change (no positions; carries a snapshot). The
|
|
19265
|
+
* spatial subsystems (tracker association, occupancy count, re-id/embedding,
|
|
19266
|
+
* resurrection) MUST skip `sensor` tracks — they have no bbox trajectory.
|
|
19267
|
+
*/
|
|
19268
|
+
var TrackSourceSchema = _enum(["pipeline", "sensor"]);
|
|
18975
19269
|
var TrackSchema = object({
|
|
18976
19270
|
trackId: string(),
|
|
18977
19271
|
deviceId: number(),
|
|
18978
19272
|
className: string(),
|
|
18979
19273
|
label: string().optional(),
|
|
19274
|
+
/** Track provenance. Absent ⇒ `pipeline` (legacy rows). */
|
|
19275
|
+
source: TrackSourceSchema.optional(),
|
|
18980
19276
|
firstSeen: number(),
|
|
18981
19277
|
lastSeen: number(),
|
|
18982
19278
|
/** Frame-rate position history (subject to maxPositionHistory cap). */
|
|
@@ -19353,6 +19649,76 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
19353
19649
|
eventId: string(),
|
|
19354
19650
|
timestamp: number()
|
|
19355
19651
|
});
|
|
19652
|
+
/**
|
|
19653
|
+
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
19654
|
+
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
19655
|
+
* caps into per-camera event-kind descriptors.
|
|
19656
|
+
*
|
|
19657
|
+
* The descriptor DATA (color / iconId / labelKey / parentKind / category)
|
|
19658
|
+
* is NOT duplicated here — every entry is derived from the single
|
|
19659
|
+
* `EVENT_TAXONOMY` dictionary (`catalogs/event-taxonomy.ts`). This file owns
|
|
19660
|
+
* ONLY the cap-name → taxonomy-kind mapping. Adding a new eventful sensor /
|
|
19661
|
+
* control cap means adding one line here (and a taxonomy entry); the anti-
|
|
19662
|
+
* drift guard `scripts/check-event-kind-coverage.ts` fails the build if an
|
|
19663
|
+
* eventful cap is missing.
|
|
19664
|
+
*/
|
|
19665
|
+
/** Map a taxonomy `iconId` onto the legacy closed `EventKindIcon` enum. */
|
|
19666
|
+
var LEGACY_ICON = {
|
|
19667
|
+
motion: "motion",
|
|
19668
|
+
audio: "audio",
|
|
19669
|
+
person: "person",
|
|
19670
|
+
vehicle: "vehicle",
|
|
19671
|
+
animal: "animal",
|
|
19672
|
+
package: "package",
|
|
19673
|
+
door: "door",
|
|
19674
|
+
pir: "pir",
|
|
19675
|
+
smoke: "smoke",
|
|
19676
|
+
water: "water",
|
|
19677
|
+
button: "button",
|
|
19678
|
+
generic: "generic",
|
|
19679
|
+
gas: "smoke",
|
|
19680
|
+
vibration: "generic",
|
|
19681
|
+
tamper: "generic",
|
|
19682
|
+
presence: "person",
|
|
19683
|
+
lock: "generic",
|
|
19684
|
+
siren: "generic",
|
|
19685
|
+
switch: "generic",
|
|
19686
|
+
doorbell: "button"
|
|
19687
|
+
};
|
|
19688
|
+
function legacyIcon(iconId) {
|
|
19689
|
+
return LEGACY_ICON[iconId] ?? "generic";
|
|
19690
|
+
}
|
|
19691
|
+
/**
|
|
19692
|
+
* Cap name → taxonomy kind id. Covers EVERY eventful sensor / control cap.
|
|
19693
|
+
* The anti-drift guard cross-checks this against the eventful caps declared
|
|
19694
|
+
* in `packages/types/src/capabilities/*.cap.ts`.
|
|
19695
|
+
*/
|
|
19696
|
+
var CAP_TO_KIND = {
|
|
19697
|
+
contact: "contact",
|
|
19698
|
+
motion: "motion-sensor",
|
|
19699
|
+
smoke: "smoke",
|
|
19700
|
+
flood: "flood",
|
|
19701
|
+
gas: "gas",
|
|
19702
|
+
"carbon-monoxide": "carbon-monoxide",
|
|
19703
|
+
vibration: "vibration",
|
|
19704
|
+
tamper: "tamper",
|
|
19705
|
+
presence: "presence",
|
|
19706
|
+
"enum-sensor": "enum-sensor",
|
|
19707
|
+
"event-emitter": "device-event",
|
|
19708
|
+
"lock-control": "lock",
|
|
19709
|
+
switch: "switch",
|
|
19710
|
+
button: "button",
|
|
19711
|
+
doorbell: "doorbell"
|
|
19712
|
+
};
|
|
19713
|
+
function buildDescriptor(capName, kind) {
|
|
19714
|
+
const t = EVENT_TAXONOMY[kind];
|
|
19715
|
+
if (t === void 0) throw new Error(`EVENT_KIND_BY_CAP: cap '${capName}' maps to unknown taxonomy kind '${kind}'`);
|
|
19716
|
+
return {
|
|
19717
|
+
...t,
|
|
19718
|
+
icon: legacyIcon(t.iconId)
|
|
19719
|
+
};
|
|
19720
|
+
}
|
|
19721
|
+
Object.freeze(Object.fromEntries(Object.entries(CAP_TO_KIND).map(([capName, kind]) => [capName, buildDescriptor(capName, kind)])));
|
|
19356
19722
|
var CameraPipelineConfigSchema = object({
|
|
19357
19723
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
19358
19724
|
steps: array(PipelineStepInputSchema).readonly(),
|
package/dist/addon.mjs
CHANGED
|
@@ -7653,6 +7653,160 @@ var EncodeProfileSchema = object({
|
|
|
7653
7653
|
*/
|
|
7654
7654
|
outputArgs: array(string()).optional()
|
|
7655
7655
|
});
|
|
7656
|
+
var COCO_TO_MACRO = {
|
|
7657
|
+
mapping: {
|
|
7658
|
+
person: "person",
|
|
7659
|
+
bicycle: "vehicle",
|
|
7660
|
+
car: "vehicle",
|
|
7661
|
+
motorcycle: "vehicle",
|
|
7662
|
+
airplane: "vehicle",
|
|
7663
|
+
bus: "vehicle",
|
|
7664
|
+
train: "vehicle",
|
|
7665
|
+
truck: "vehicle",
|
|
7666
|
+
boat: "vehicle",
|
|
7667
|
+
bird: "animal",
|
|
7668
|
+
cat: "animal",
|
|
7669
|
+
dog: "animal",
|
|
7670
|
+
horse: "animal",
|
|
7671
|
+
sheep: "animal",
|
|
7672
|
+
cow: "animal",
|
|
7673
|
+
elephant: "animal",
|
|
7674
|
+
bear: "animal",
|
|
7675
|
+
zebra: "animal",
|
|
7676
|
+
giraffe: "animal",
|
|
7677
|
+
suitcase: "package",
|
|
7678
|
+
backpack: "package",
|
|
7679
|
+
handbag: "package"
|
|
7680
|
+
},
|
|
7681
|
+
preserveOriginal: false
|
|
7682
|
+
};
|
|
7683
|
+
var AUDIO_MACRO_LABELS = [
|
|
7684
|
+
{
|
|
7685
|
+
id: "speech",
|
|
7686
|
+
name: "Speech",
|
|
7687
|
+
icon: "🗣️"
|
|
7688
|
+
},
|
|
7689
|
+
{
|
|
7690
|
+
id: "scream",
|
|
7691
|
+
name: "Scream / Shout",
|
|
7692
|
+
icon: "😱"
|
|
7693
|
+
},
|
|
7694
|
+
{
|
|
7695
|
+
id: "crying",
|
|
7696
|
+
name: "Crying / Baby",
|
|
7697
|
+
icon: "😢"
|
|
7698
|
+
},
|
|
7699
|
+
{
|
|
7700
|
+
id: "laughter",
|
|
7701
|
+
name: "Laughter",
|
|
7702
|
+
icon: "😂"
|
|
7703
|
+
},
|
|
7704
|
+
{
|
|
7705
|
+
id: "music",
|
|
7706
|
+
name: "Music",
|
|
7707
|
+
icon: "🎵"
|
|
7708
|
+
},
|
|
7709
|
+
{
|
|
7710
|
+
id: "dog",
|
|
7711
|
+
name: "Dog",
|
|
7712
|
+
icon: "🐕"
|
|
7713
|
+
},
|
|
7714
|
+
{
|
|
7715
|
+
id: "cat",
|
|
7716
|
+
name: "Cat",
|
|
7717
|
+
icon: "🐈"
|
|
7718
|
+
},
|
|
7719
|
+
{
|
|
7720
|
+
id: "bird",
|
|
7721
|
+
name: "Bird",
|
|
7722
|
+
icon: "🐦"
|
|
7723
|
+
},
|
|
7724
|
+
{
|
|
7725
|
+
id: "animal",
|
|
7726
|
+
name: "Animal (other)",
|
|
7727
|
+
icon: "🐾"
|
|
7728
|
+
},
|
|
7729
|
+
{
|
|
7730
|
+
id: "alarm",
|
|
7731
|
+
name: "Alarm / Siren",
|
|
7732
|
+
icon: "🚨"
|
|
7733
|
+
},
|
|
7734
|
+
{
|
|
7735
|
+
id: "doorbell",
|
|
7736
|
+
name: "Doorbell / Knock",
|
|
7737
|
+
icon: "🔔"
|
|
7738
|
+
},
|
|
7739
|
+
{
|
|
7740
|
+
id: "glass_breaking",
|
|
7741
|
+
name: "Glass Breaking",
|
|
7742
|
+
icon: "💥"
|
|
7743
|
+
},
|
|
7744
|
+
{
|
|
7745
|
+
id: "gunshot",
|
|
7746
|
+
name: "Gunshot / Explosion",
|
|
7747
|
+
icon: "💣"
|
|
7748
|
+
},
|
|
7749
|
+
{
|
|
7750
|
+
id: "vehicle",
|
|
7751
|
+
name: "Vehicle",
|
|
7752
|
+
icon: "🚗"
|
|
7753
|
+
},
|
|
7754
|
+
{
|
|
7755
|
+
id: "siren",
|
|
7756
|
+
name: "Emergency Siren",
|
|
7757
|
+
icon: "🚑"
|
|
7758
|
+
},
|
|
7759
|
+
{
|
|
7760
|
+
id: "fire",
|
|
7761
|
+
name: "Fire / Smoke",
|
|
7762
|
+
icon: "🔥"
|
|
7763
|
+
},
|
|
7764
|
+
{
|
|
7765
|
+
id: "water",
|
|
7766
|
+
name: "Water",
|
|
7767
|
+
icon: "💧"
|
|
7768
|
+
},
|
|
7769
|
+
{
|
|
7770
|
+
id: "wind",
|
|
7771
|
+
name: "Wind / Weather",
|
|
7772
|
+
icon: "🌬️"
|
|
7773
|
+
},
|
|
7774
|
+
{
|
|
7775
|
+
id: "door",
|
|
7776
|
+
name: "Door",
|
|
7777
|
+
icon: "🚪"
|
|
7778
|
+
},
|
|
7779
|
+
{
|
|
7780
|
+
id: "footsteps",
|
|
7781
|
+
name: "Footsteps",
|
|
7782
|
+
icon: "👣"
|
|
7783
|
+
},
|
|
7784
|
+
{
|
|
7785
|
+
id: "crowd",
|
|
7786
|
+
name: "Crowd / Chatter",
|
|
7787
|
+
icon: "👥"
|
|
7788
|
+
},
|
|
7789
|
+
{
|
|
7790
|
+
id: "telephone",
|
|
7791
|
+
name: "Telephone",
|
|
7792
|
+
icon: "📞"
|
|
7793
|
+
},
|
|
7794
|
+
{
|
|
7795
|
+
id: "engine",
|
|
7796
|
+
name: "Engine / Motor",
|
|
7797
|
+
icon: "⚙️"
|
|
7798
|
+
},
|
|
7799
|
+
{
|
|
7800
|
+
id: "tools",
|
|
7801
|
+
name: "Tools / Construction",
|
|
7802
|
+
icon: "🔨"
|
|
7803
|
+
},
|
|
7804
|
+
{
|
|
7805
|
+
id: "silence",
|
|
7806
|
+
name: "Silence",
|
|
7807
|
+
icon: "🤫"
|
|
7808
|
+
}
|
|
7809
|
+
];
|
|
7656
7810
|
var YAMNET_TO_MACRO = {
|
|
7657
7811
|
mapping: {
|
|
7658
7812
|
Speech: "speech",
|
|
@@ -7919,6 +8073,125 @@ var _macroLookup = /* @__PURE__ */ new Map();
|
|
|
7919
8073
|
for (const [k, v] of Object.entries(YAMNET_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
7920
8074
|
for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
7921
8075
|
/**
|
|
8076
|
+
* Unified event-kind taxonomy — THE single source of truth for
|
|
8077
|
+
* `kind → { parentKind, category, level, color, iconId, labelKey, label,
|
|
8078
|
+
* icon }`.
|
|
8079
|
+
*
|
|
8080
|
+
* This dictionary folds together what used to be scattered across four
|
|
8081
|
+
* copies:
|
|
8082
|
+
* - `capabilities/sensor-event-kinds.ts` (sensor cap colors)
|
|
8083
|
+
* - `addon-post-analysis/.../services/event-kinds.ts`
|
|
8084
|
+
* (MOTION/PERSON/VEHICLE… _COLOR constants)
|
|
8085
|
+
* - `ui-library/composites/detection-colors.ts` (CLASS_COLORS)
|
|
8086
|
+
* - `addon-post-analysis/shared/frame/box-drawer.ts` (DEFAULT_COLOR)
|
|
8087
|
+
* - the COCO / audio class maps (macro ↔ sub relationships)
|
|
8088
|
+
*
|
|
8089
|
+
* The DATA (serializable — color/iconId/labelKey/parentKind) lives here in
|
|
8090
|
+
* `@camstack/types`. The UI-side mapping `iconId → lucide component` and
|
|
8091
|
+
* `labelKey → t()` lives in `@camstack/ui-library`. UIs never hardcode a
|
|
8092
|
+
* color or an icon: they read this dictionary (server descriptors carry the
|
|
8093
|
+
* fields inline; the client resolves color/icon/label from `iconId`/`kind`).
|
|
8094
|
+
*
|
|
8095
|
+
* Two levels only (v1 YAGNI): macro → sub. `person` is a leaf macro.
|
|
8096
|
+
*/
|
|
8097
|
+
var TAXONOMY_COLORS = {
|
|
8098
|
+
motion: "#f59e0b",
|
|
8099
|
+
audio: "#06b6d4",
|
|
8100
|
+
person: "#22c55e",
|
|
8101
|
+
vehicle: "#3b82f6",
|
|
8102
|
+
animal: "#f97316",
|
|
8103
|
+
package: "#a855f7",
|
|
8104
|
+
sensor: "#8b5cf6",
|
|
8105
|
+
control: "#10b981",
|
|
8106
|
+
genericDetection: "#64748b"
|
|
8107
|
+
};
|
|
8108
|
+
var DETECTION_SUB_COLORS = {
|
|
8109
|
+
car: "#f59e0b",
|
|
8110
|
+
truck: "#d97706",
|
|
8111
|
+
bus: "#b45309",
|
|
8112
|
+
motorcycle: "#eab308",
|
|
8113
|
+
bicycle: "#ca8a04",
|
|
8114
|
+
airplane: "#60a5fa",
|
|
8115
|
+
boat: "#2563eb",
|
|
8116
|
+
train: "#1d4ed8",
|
|
8117
|
+
bird: "#14b8a6",
|
|
8118
|
+
dog: "#84cc16",
|
|
8119
|
+
cat: "#f97316",
|
|
8120
|
+
horse: "#a16207",
|
|
8121
|
+
sheep: "#a3a3a3",
|
|
8122
|
+
cow: "#78716c",
|
|
8123
|
+
elephant: "#6b7280",
|
|
8124
|
+
bear: "#7c2d12",
|
|
8125
|
+
zebra: "#404040",
|
|
8126
|
+
giraffe: "#d4a373"
|
|
8127
|
+
};
|
|
8128
|
+
function titleCase(id) {
|
|
8129
|
+
return id.split(/[-_ ]/).filter((p) => p.length > 0).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" ");
|
|
8130
|
+
}
|
|
8131
|
+
var entries = /* @__PURE__ */ new Map();
|
|
8132
|
+
function macro(kind, category, color, iconId, label) {
|
|
8133
|
+
entries.set(kind, {
|
|
8134
|
+
kind,
|
|
8135
|
+
parentKind: null,
|
|
8136
|
+
level: "macro",
|
|
8137
|
+
category,
|
|
8138
|
+
color,
|
|
8139
|
+
iconId,
|
|
8140
|
+
labelKey: `eventKind.${kind}`,
|
|
8141
|
+
label
|
|
8142
|
+
});
|
|
8143
|
+
}
|
|
8144
|
+
function sub(kind, parentKind, category, color, iconId, label) {
|
|
8145
|
+
entries.set(kind, {
|
|
8146
|
+
kind,
|
|
8147
|
+
parentKind,
|
|
8148
|
+
level: "sub",
|
|
8149
|
+
category,
|
|
8150
|
+
color,
|
|
8151
|
+
iconId,
|
|
8152
|
+
labelKey: `eventKind.${kind}`,
|
|
8153
|
+
label
|
|
8154
|
+
});
|
|
8155
|
+
}
|
|
8156
|
+
macro("motion", "motion", TAXONOMY_COLORS.motion, "motion", "Motion");
|
|
8157
|
+
macro("audio", "audio", TAXONOMY_COLORS.audio, "audio", "Audio");
|
|
8158
|
+
macro("person", "detection", TAXONOMY_COLORS.person, "person", "Person");
|
|
8159
|
+
macro("vehicle", "detection", TAXONOMY_COLORS.vehicle, "vehicle", "Vehicle");
|
|
8160
|
+
macro("animal", "detection", TAXONOMY_COLORS.animal, "animal", "Animal");
|
|
8161
|
+
macro("package", "package", TAXONOMY_COLORS.package, "package", "Package");
|
|
8162
|
+
macro("sensor", "sensor", TAXONOMY_COLORS.sensor, "sensor", "Sensor");
|
|
8163
|
+
macro("control", "control", TAXONOMY_COLORS.control, "control", "Control");
|
|
8164
|
+
for (const [cocoClass, macroClass] of Object.entries(COCO_TO_MACRO.mapping)) {
|
|
8165
|
+
if (macroClass !== "vehicle" && macroClass !== "animal") continue;
|
|
8166
|
+
if (entries.has(cocoClass)) continue;
|
|
8167
|
+
sub(cocoClass, macroClass, "detection", DETECTION_SUB_COLORS[cocoClass] ?? TAXONOMY_COLORS.genericDetection, cocoClass, titleCase(cocoClass));
|
|
8168
|
+
}
|
|
8169
|
+
sub("package-delivered", "package", "package", TAXONOMY_COLORS.package, "package", "Package delivered");
|
|
8170
|
+
sub("package-picked-up", "package", "package", TAXONOMY_COLORS.package, "package", "Package picked up");
|
|
8171
|
+
sub("contact", "sensor", "sensor", "#f59e0b", "door", "Contact");
|
|
8172
|
+
sub("motion-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "pir", "Motion sensor");
|
|
8173
|
+
sub("smoke", "sensor", "sensor", "#ef4444", "smoke", "Smoke");
|
|
8174
|
+
sub("flood", "sensor", "sensor", "#3b82f6", "water", "Water leak");
|
|
8175
|
+
sub("gas", "sensor", "sensor", "#ef4444", "gas", "Gas");
|
|
8176
|
+
sub("carbon-monoxide", "sensor", "sensor", "#dc2626", "smoke", "Carbon monoxide");
|
|
8177
|
+
sub("vibration", "sensor", "sensor", "#eab308", "vibration", "Vibration");
|
|
8178
|
+
sub("tamper", "sensor", "sensor", "#f97316", "tamper", "Tamper");
|
|
8179
|
+
sub("presence", "sensor", "sensor", "#22c55e", "presence", "Presence");
|
|
8180
|
+
sub("enum-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "generic", "Sensor state");
|
|
8181
|
+
sub("device-event", "sensor", "sensor", "#10b981", "button", "Device event");
|
|
8182
|
+
sub("lock", "control", "control", "#0ea5e9", "lock", "Lock");
|
|
8183
|
+
sub("switch", "control", "control", TAXONOMY_COLORS.control, "switch", "Switch");
|
|
8184
|
+
sub("siren", "control", "control", "#dc2626", "siren", "Siren");
|
|
8185
|
+
sub("button", "control", "control", "#10b981", "button", "Button");
|
|
8186
|
+
sub("doorbell", "control", "control", "#a855f7", "doorbell", "Doorbell");
|
|
8187
|
+
for (const l of AUDIO_MACRO_LABELS) {
|
|
8188
|
+
const kind = `audio-${l.id}`;
|
|
8189
|
+
if (entries.has(kind)) continue;
|
|
8190
|
+
sub(kind, "audio", "audio", TAXONOMY_COLORS.audio, kind, l.name);
|
|
8191
|
+
}
|
|
8192
|
+
/** The complete taxonomy dictionary, keyed by kind. */
|
|
8193
|
+
var EVENT_TAXONOMY = Object.freeze(Object.fromEntries(entries));
|
|
8194
|
+
/**
|
|
7922
8195
|
* Error types for the safe expression engine. Two distinct classes so callers
|
|
7923
8196
|
* can tell a compile-time (grammar) failure from a runtime (evaluation)
|
|
7924
8197
|
* failure — both are non-fatal to the host: read paths degrade to "skip link".
|
|
@@ -18868,17 +19141,30 @@ var EventKindCategorySchema = _enum([
|
|
|
18868
19141
|
"audio",
|
|
18869
19142
|
"detection",
|
|
18870
19143
|
"sensor",
|
|
19144
|
+
"control",
|
|
18871
19145
|
"custom",
|
|
18872
19146
|
"package"
|
|
18873
19147
|
]);
|
|
19148
|
+
/** Taxonomy level — macro (timeline lane) vs sub (events-page leaf). */
|
|
19149
|
+
var EventKindLevelSchema = _enum(["macro", "sub"]);
|
|
18874
19150
|
var EventKindDescriptorSchema = object({
|
|
18875
|
-
/** Stable kind id (e.g. 'motion', '
|
|
19151
|
+
/** Stable kind id (e.g. 'motion', 'vehicle', 'car', 'lock'). */
|
|
18876
19152
|
kind: string(),
|
|
19153
|
+
/** i18n key resolved on the UI side; `label` is the English fallback. */
|
|
19154
|
+
labelKey: string(),
|
|
19155
|
+
/** English fallback label (kept for clients that don't translate). */
|
|
18877
19156
|
label: string(),
|
|
18878
19157
|
/** Hex color for timeline/legend rendering. */
|
|
18879
19158
|
color: string(),
|
|
19159
|
+
/** Dictionary id → lucide component on the UI side. */
|
|
19160
|
+
iconId: string(),
|
|
19161
|
+
/** Legacy closed-vocab glyph — fallback for `iconId`. */
|
|
18880
19162
|
icon: EventKindIconSchema,
|
|
18881
19163
|
category: EventKindCategorySchema,
|
|
19164
|
+
/** Macro parent for this kind ('car' → 'vehicle'); null for a macro. */
|
|
19165
|
+
parentKind: string().nullable(),
|
|
19166
|
+
/** Derived from `parentKind`, explicit for the client tree. */
|
|
19167
|
+
level: EventKindLevelSchema,
|
|
18882
19168
|
/** Which cap + device contributes this kind. For built-ins the camera
|
|
18883
19169
|
* itself; for sensor kinds the LINKED source device. */
|
|
18884
19170
|
source: object({
|
|
@@ -18951,11 +19237,21 @@ var TrackAudioLabelSchema = object({
|
|
|
18951
19237
|
firstAt: number(),
|
|
18952
19238
|
lastAt: number()
|
|
18953
19239
|
});
|
|
19240
|
+
/**
|
|
19241
|
+
* How a track was produced. `pipeline` (default / absent) = the spatial
|
|
19242
|
+
* detection+tracking pipeline. `sensor` = a SYNTHETIC track projected from a
|
|
19243
|
+
* linked sensor/control state change (no positions; carries a snapshot). The
|
|
19244
|
+
* spatial subsystems (tracker association, occupancy count, re-id/embedding,
|
|
19245
|
+
* resurrection) MUST skip `sensor` tracks — they have no bbox trajectory.
|
|
19246
|
+
*/
|
|
19247
|
+
var TrackSourceSchema = _enum(["pipeline", "sensor"]);
|
|
18954
19248
|
var TrackSchema = object({
|
|
18955
19249
|
trackId: string(),
|
|
18956
19250
|
deviceId: number(),
|
|
18957
19251
|
className: string(),
|
|
18958
19252
|
label: string().optional(),
|
|
19253
|
+
/** Track provenance. Absent ⇒ `pipeline` (legacy rows). */
|
|
19254
|
+
source: TrackSourceSchema.optional(),
|
|
18959
19255
|
firstSeen: number(),
|
|
18960
19256
|
lastSeen: number(),
|
|
18961
19257
|
/** Frame-rate position history (subject to maxPositionHistory cap). */
|
|
@@ -19332,6 +19628,76 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
19332
19628
|
eventId: string(),
|
|
19333
19629
|
timestamp: number()
|
|
19334
19630
|
});
|
|
19631
|
+
/**
|
|
19632
|
+
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
19633
|
+
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
19634
|
+
* caps into per-camera event-kind descriptors.
|
|
19635
|
+
*
|
|
19636
|
+
* The descriptor DATA (color / iconId / labelKey / parentKind / category)
|
|
19637
|
+
* is NOT duplicated here — every entry is derived from the single
|
|
19638
|
+
* `EVENT_TAXONOMY` dictionary (`catalogs/event-taxonomy.ts`). This file owns
|
|
19639
|
+
* ONLY the cap-name → taxonomy-kind mapping. Adding a new eventful sensor /
|
|
19640
|
+
* control cap means adding one line here (and a taxonomy entry); the anti-
|
|
19641
|
+
* drift guard `scripts/check-event-kind-coverage.ts` fails the build if an
|
|
19642
|
+
* eventful cap is missing.
|
|
19643
|
+
*/
|
|
19644
|
+
/** Map a taxonomy `iconId` onto the legacy closed `EventKindIcon` enum. */
|
|
19645
|
+
var LEGACY_ICON = {
|
|
19646
|
+
motion: "motion",
|
|
19647
|
+
audio: "audio",
|
|
19648
|
+
person: "person",
|
|
19649
|
+
vehicle: "vehicle",
|
|
19650
|
+
animal: "animal",
|
|
19651
|
+
package: "package",
|
|
19652
|
+
door: "door",
|
|
19653
|
+
pir: "pir",
|
|
19654
|
+
smoke: "smoke",
|
|
19655
|
+
water: "water",
|
|
19656
|
+
button: "button",
|
|
19657
|
+
generic: "generic",
|
|
19658
|
+
gas: "smoke",
|
|
19659
|
+
vibration: "generic",
|
|
19660
|
+
tamper: "generic",
|
|
19661
|
+
presence: "person",
|
|
19662
|
+
lock: "generic",
|
|
19663
|
+
siren: "generic",
|
|
19664
|
+
switch: "generic",
|
|
19665
|
+
doorbell: "button"
|
|
19666
|
+
};
|
|
19667
|
+
function legacyIcon(iconId) {
|
|
19668
|
+
return LEGACY_ICON[iconId] ?? "generic";
|
|
19669
|
+
}
|
|
19670
|
+
/**
|
|
19671
|
+
* Cap name → taxonomy kind id. Covers EVERY eventful sensor / control cap.
|
|
19672
|
+
* The anti-drift guard cross-checks this against the eventful caps declared
|
|
19673
|
+
* in `packages/types/src/capabilities/*.cap.ts`.
|
|
19674
|
+
*/
|
|
19675
|
+
var CAP_TO_KIND = {
|
|
19676
|
+
contact: "contact",
|
|
19677
|
+
motion: "motion-sensor",
|
|
19678
|
+
smoke: "smoke",
|
|
19679
|
+
flood: "flood",
|
|
19680
|
+
gas: "gas",
|
|
19681
|
+
"carbon-monoxide": "carbon-monoxide",
|
|
19682
|
+
vibration: "vibration",
|
|
19683
|
+
tamper: "tamper",
|
|
19684
|
+
presence: "presence",
|
|
19685
|
+
"enum-sensor": "enum-sensor",
|
|
19686
|
+
"event-emitter": "device-event",
|
|
19687
|
+
"lock-control": "lock",
|
|
19688
|
+
switch: "switch",
|
|
19689
|
+
button: "button",
|
|
19690
|
+
doorbell: "doorbell"
|
|
19691
|
+
};
|
|
19692
|
+
function buildDescriptor(capName, kind) {
|
|
19693
|
+
const t = EVENT_TAXONOMY[kind];
|
|
19694
|
+
if (t === void 0) throw new Error(`EVENT_KIND_BY_CAP: cap '${capName}' maps to unknown taxonomy kind '${kind}'`);
|
|
19695
|
+
return {
|
|
19696
|
+
...t,
|
|
19697
|
+
icon: legacyIcon(t.iconId)
|
|
19698
|
+
};
|
|
19699
|
+
}
|
|
19700
|
+
Object.freeze(Object.fromEntries(Object.entries(CAP_TO_KIND).map(([capName, kind]) => [capName, buildDescriptor(capName, kind)])));
|
|
19335
19701
|
var CameraPipelineConfigSchema = object({
|
|
19336
19702
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
19337
19703
|
steps: array(PipelineStepInputSchema).readonly(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-wyze",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|