@camstack/addon-pipeline 1.1.61 → 1.1.63

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.
Files changed (32) hide show
  1. package/dist/audio-analyzer/index.js +1 -1
  2. package/dist/audio-analyzer/index.mjs +1 -1
  3. package/dist/detection-pipeline/index.js +2 -2
  4. package/dist/detection-pipeline/index.mjs +2 -2
  5. package/dist/{dist-p_JqOxtk.js → dist-B2jTt7Lq.js} +377 -3
  6. package/dist/{dist-D16_dBsr.mjs → dist-BzVZ2I4P.mjs} +372 -4
  7. package/dist/motion-wasm/index.js +1 -1
  8. package/dist/motion-wasm/index.mjs +1 -1
  9. package/dist/pipeline-runner/index.js +126 -3
  10. package/dist/pipeline-runner/index.mjs +126 -3
  11. package/dist/recorder/index.js +161 -20
  12. package/dist/recorder/index.mjs +161 -20
  13. package/dist/{step-definitions-DxAcpUV-.mjs → step-definitions-B07M9qhj.mjs} +68 -1
  14. package/dist/{step-definitions-CoxF5G31.js → step-definitions-DXkY5Zor.js} +68 -1
  15. package/dist/stream-broker/_stub.js +2 -2
  16. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Wu4TlSuq.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-dTMki_1D.mjs} +3 -3
  17. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-bAh96WNb.mjs +26 -0
  18. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CV2WbUaO.mjs +26 -0
  19. package/dist/stream-broker/{hostInit-D_dSciqF.mjs → hostInit-BY2oQAEX.mjs} +3 -3
  20. package/dist/stream-broker/index.js +1 -1
  21. package/dist/stream-broker/index.mjs +1 -1
  22. package/dist/stream-broker/remoteEntry.js +1 -1
  23. package/embed-dist/assets/{MaskShapeCanvas-DI4BY7W2-BldL9_Ee.js → MaskShapeCanvas-DI4BY7W2-C03fx7Sp.js} +1 -1
  24. package/embed-dist/assets/{MotionZonesSettings-NcxxQN8r-BgWqMe4f.js → MotionZonesSettings-NcxxQN8r-BTxzn1rQ.js} +1 -1
  25. package/embed-dist/assets/{PrivacyMaskSettings-APgPLF7p-YBgaXffP.js → PrivacyMaskSettings-APgPLF7p-GKO8O7rC.js} +1 -1
  26. package/embed-dist/assets/index-Bm9LaQPH.css +2 -0
  27. package/embed-dist/assets/{index-e0bQ8yep.js → index-QdssILAA.js} +10 -10
  28. package/embed-dist/index.html +2 -2
  29. package/package.json +1 -1
  30. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BPujpbZ0.mjs +0 -26
  31. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DGxcX3Wf.mjs +0 -26
  32. package/embed-dist/assets/index-Bmpl9O1K.css +0 -2
@@ -7580,6 +7580,62 @@ function migrateConfigToBands(config) {
7580
7580
  return schedules.map((schedule) => bandFromSchedule(schedule, bandMode, config));
7581
7581
  }
7582
7582
  /**
7583
+ * Ops-log — the durable, append-only operations audit shared by the
7584
+ * recordings and events management surfaces.
7585
+ *
7586
+ * ONE row shape is reused for both domains so a single "Activity" view can
7587
+ * merge the recorder's DurableState ring (recordings ops-log) and the
7588
+ * pipeline-analytics SQLite collection (events ops-log). Each row records a
7589
+ * management operation, WHY it ran (reason), and its measurable effect
7590
+ * (itemsAffected + bytesReclaimed). Writes are best-effort — a failed log must
7591
+ * never fail the operation it records.
7592
+ */
7593
+ /** Which management domain the operation belongs to. */
7594
+ var OpsLogDomainSchema = _enum(["recording", "events"]);
7595
+ /** The kind of management operation performed. */
7596
+ var OpsLogOpSchema = _enum([
7597
+ "prune",
7598
+ "manual-delete",
7599
+ "rescan",
7600
+ "retention-run"
7601
+ ]);
7602
+ /** Why the operation ran. */
7603
+ var OpsLogReasonSchema = _enum([
7604
+ "retention",
7605
+ "quota",
7606
+ "manual",
7607
+ "operator"
7608
+ ]);
7609
+ /** One audit row, shared verbatim by both domains. */
7610
+ var OpsLogEntrySchema = object({
7611
+ /** Unique row id. */
7612
+ id: string(),
7613
+ /** Epoch ms the operation completed. */
7614
+ at: number(),
7615
+ domain: OpsLogDomainSchema,
7616
+ op: OpsLogOpSchema,
7617
+ reason: OpsLogReasonSchema,
7618
+ /** The camera the op targeted; null for a cluster/global op. */
7619
+ deviceId: number().nullable(),
7620
+ /** Node that performed the op (the log carries nodeId — no cross-node aggregation). */
7621
+ nodeId: string(),
7622
+ /** Buckets / rows deleted (op-specific unit). */
7623
+ itemsAffected: number(),
7624
+ /** Bytes reclaimed by the op (0 when not measurable). */
7625
+ bytesReclaimed: number(),
7626
+ /** Free-text detail (e.g. "floor moved to <ts>"); null when none. */
7627
+ detail: string().nullable(),
7628
+ /** Who/what triggered the op. */
7629
+ actor: string()
7630
+ });
7631
+ /** Shared query input for the per-domain `listOpsLog` cap methods. */
7632
+ var OpsLogQueryInputSchema = object({
7633
+ /** Restrict to a single camera; omit for every row. */
7634
+ deviceId: number().optional(),
7635
+ /** Max rows returned, newest-first. */
7636
+ limit: number().int().min(1).max(1e3).optional()
7637
+ });
7638
+ /**
7583
7639
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
7584
7640
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
7585
7641
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8603,6 +8659,125 @@ function mapAudioLabelToMacro(label) {
8603
8659
  return _macroLookup.get(label.toLowerCase()) ?? null;
8604
8660
  }
8605
8661
  /**
8662
+ * Unified event-kind taxonomy — THE single source of truth for
8663
+ * `kind → { parentKind, category, level, color, iconId, labelKey, label,
8664
+ * icon }`.
8665
+ *
8666
+ * This dictionary folds together what used to be scattered across four
8667
+ * copies:
8668
+ * - `capabilities/sensor-event-kinds.ts` (sensor cap colors)
8669
+ * - `addon-post-analysis/.../services/event-kinds.ts`
8670
+ * (MOTION/PERSON/VEHICLE… _COLOR constants)
8671
+ * - `ui-library/composites/detection-colors.ts` (CLASS_COLORS)
8672
+ * - `addon-post-analysis/shared/frame/box-drawer.ts` (DEFAULT_COLOR)
8673
+ * - the COCO / audio class maps (macro ↔ sub relationships)
8674
+ *
8675
+ * The DATA (serializable — color/iconId/labelKey/parentKind) lives here in
8676
+ * `@camstack/types`. The UI-side mapping `iconId → lucide component` and
8677
+ * `labelKey → t()` lives in `@camstack/ui-library`. UIs never hardcode a
8678
+ * color or an icon: they read this dictionary (server descriptors carry the
8679
+ * fields inline; the client resolves color/icon/label from `iconId`/`kind`).
8680
+ *
8681
+ * Two levels only (v1 YAGNI): macro → sub. `person` is a leaf macro.
8682
+ */
8683
+ var TAXONOMY_COLORS = {
8684
+ motion: "#f59e0b",
8685
+ audio: "#06b6d4",
8686
+ person: "#22c55e",
8687
+ vehicle: "#3b82f6",
8688
+ animal: "#f97316",
8689
+ package: "#a855f7",
8690
+ sensor: "#8b5cf6",
8691
+ control: "#10b981",
8692
+ genericDetection: "#64748b"
8693
+ };
8694
+ var DETECTION_SUB_COLORS = {
8695
+ car: "#f59e0b",
8696
+ truck: "#d97706",
8697
+ bus: "#b45309",
8698
+ motorcycle: "#eab308",
8699
+ bicycle: "#ca8a04",
8700
+ airplane: "#60a5fa",
8701
+ boat: "#2563eb",
8702
+ train: "#1d4ed8",
8703
+ bird: "#14b8a6",
8704
+ dog: "#84cc16",
8705
+ cat: "#f97316",
8706
+ horse: "#a16207",
8707
+ sheep: "#a3a3a3",
8708
+ cow: "#78716c",
8709
+ elephant: "#6b7280",
8710
+ bear: "#7c2d12",
8711
+ zebra: "#404040",
8712
+ giraffe: "#d4a373"
8713
+ };
8714
+ function titleCase(id) {
8715
+ return id.split(/[-_ ]/).filter((p) => p.length > 0).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" ");
8716
+ }
8717
+ var entries = /* @__PURE__ */ new Map();
8718
+ function macro(kind, category, color, iconId, label) {
8719
+ entries.set(kind, {
8720
+ kind,
8721
+ parentKind: null,
8722
+ level: "macro",
8723
+ category,
8724
+ color,
8725
+ iconId,
8726
+ labelKey: `eventKind.${kind}`,
8727
+ label
8728
+ });
8729
+ }
8730
+ function sub(kind, parentKind, category, color, iconId, label) {
8731
+ entries.set(kind, {
8732
+ kind,
8733
+ parentKind,
8734
+ level: "sub",
8735
+ category,
8736
+ color,
8737
+ iconId,
8738
+ labelKey: `eventKind.${kind}`,
8739
+ label
8740
+ });
8741
+ }
8742
+ macro("motion", "motion", TAXONOMY_COLORS.motion, "motion", "Motion");
8743
+ macro("audio", "audio", TAXONOMY_COLORS.audio, "audio", "Audio");
8744
+ macro("person", "detection", TAXONOMY_COLORS.person, "person", "Person");
8745
+ macro("vehicle", "detection", TAXONOMY_COLORS.vehicle, "vehicle", "Vehicle");
8746
+ macro("animal", "detection", TAXONOMY_COLORS.animal, "animal", "Animal");
8747
+ macro("package", "package", TAXONOMY_COLORS.package, "package", "Package");
8748
+ macro("sensor", "sensor", TAXONOMY_COLORS.sensor, "sensor", "Sensor");
8749
+ macro("control", "control", TAXONOMY_COLORS.control, "control", "Control");
8750
+ for (const [cocoClass, macroClass] of Object.entries(COCO_TO_MACRO.mapping)) {
8751
+ if (macroClass !== "vehicle" && macroClass !== "animal") continue;
8752
+ if (entries.has(cocoClass)) continue;
8753
+ sub(cocoClass, macroClass, "detection", DETECTION_SUB_COLORS[cocoClass] ?? TAXONOMY_COLORS.genericDetection, cocoClass, titleCase(cocoClass));
8754
+ }
8755
+ sub("package-delivered", "package", "package", TAXONOMY_COLORS.package, "package", "Package delivered");
8756
+ sub("package-picked-up", "package", "package", TAXONOMY_COLORS.package, "package", "Package picked up");
8757
+ sub("contact", "sensor", "sensor", "#f59e0b", "door", "Contact");
8758
+ sub("motion-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "pir", "Motion sensor");
8759
+ sub("smoke", "sensor", "sensor", "#ef4444", "smoke", "Smoke");
8760
+ sub("flood", "sensor", "sensor", "#3b82f6", "water", "Water leak");
8761
+ sub("gas", "sensor", "sensor", "#ef4444", "gas", "Gas");
8762
+ sub("carbon-monoxide", "sensor", "sensor", "#dc2626", "smoke", "Carbon monoxide");
8763
+ sub("vibration", "sensor", "sensor", "#eab308", "vibration", "Vibration");
8764
+ sub("tamper", "sensor", "sensor", "#f97316", "tamper", "Tamper");
8765
+ sub("presence", "sensor", "sensor", "#22c55e", "presence", "Presence");
8766
+ sub("enum-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "generic", "Sensor state");
8767
+ sub("device-event", "sensor", "sensor", "#10b981", "button", "Device event");
8768
+ sub("lock", "control", "control", "#0ea5e9", "lock", "Lock");
8769
+ sub("switch", "control", "control", TAXONOMY_COLORS.control, "switch", "Switch");
8770
+ sub("siren", "control", "control", "#dc2626", "siren", "Siren");
8771
+ sub("button", "control", "control", "#10b981", "button", "Button");
8772
+ sub("doorbell", "control", "control", "#a855f7", "doorbell", "Doorbell");
8773
+ for (const l of AUDIO_MACRO_LABELS) {
8774
+ const kind = `audio-${l.id}`;
8775
+ if (entries.has(kind)) continue;
8776
+ sub(kind, "audio", "audio", TAXONOMY_COLORS.audio, kind, l.name);
8777
+ }
8778
+ /** The complete taxonomy dictionary, keyed by kind. */
8779
+ var EVENT_TAXONOMY = Object.freeze(Object.fromEntries(entries));
8780
+ /**
8606
8781
  * Error types for the safe expression engine. Two distinct classes so callers
8607
8782
  * can tell a compile-time (grammar) failure from a runtime (evaluation)
8608
8783
  * failure — both are non-fatal to the host: read paths degrade to "skip link".
@@ -17216,17 +17391,30 @@ var EventKindCategorySchema = _enum([
17216
17391
  "audio",
17217
17392
  "detection",
17218
17393
  "sensor",
17394
+ "control",
17219
17395
  "custom",
17220
17396
  "package"
17221
17397
  ]);
17398
+ /** Taxonomy level — macro (timeline lane) vs sub (events-page leaf). */
17399
+ var EventKindLevelSchema = _enum(["macro", "sub"]);
17222
17400
  var EventKindDescriptorSchema = object({
17223
- /** Stable kind id (e.g. 'motion', 'person', 'contact'). */
17401
+ /** Stable kind id (e.g. 'motion', 'vehicle', 'car', 'lock'). */
17224
17402
  kind: string(),
17403
+ /** i18n key resolved on the UI side; `label` is the English fallback. */
17404
+ labelKey: string(),
17405
+ /** English fallback label (kept for clients that don't translate). */
17225
17406
  label: string(),
17226
17407
  /** Hex color for timeline/legend rendering. */
17227
17408
  color: string(),
17409
+ /** Dictionary id → lucide component on the UI side. */
17410
+ iconId: string(),
17411
+ /** Legacy closed-vocab glyph — fallback for `iconId`. */
17228
17412
  icon: EventKindIconSchema,
17229
17413
  category: EventKindCategorySchema,
17414
+ /** Macro parent for this kind ('car' → 'vehicle'); null for a macro. */
17415
+ parentKind: string().nullable(),
17416
+ /** Derived from `parentKind`, explicit for the client tree. */
17417
+ level: EventKindLevelSchema,
17230
17418
  /** Which cap + device contributes this kind. For built-ins the camera
17231
17419
  * itself; for sensor kinds the LINKED source device. */
17232
17420
  source: object({
@@ -17299,11 +17487,21 @@ var TrackAudioLabelSchema = object({
17299
17487
  firstAt: number(),
17300
17488
  lastAt: number()
17301
17489
  });
17490
+ /**
17491
+ * How a track was produced. `pipeline` (default / absent) = the spatial
17492
+ * detection+tracking pipeline. `sensor` = a SYNTHETIC track projected from a
17493
+ * linked sensor/control state change (no positions; carries a snapshot). The
17494
+ * spatial subsystems (tracker association, occupancy count, re-id/embedding,
17495
+ * resurrection) MUST skip `sensor` tracks — they have no bbox trajectory.
17496
+ */
17497
+ var TrackSourceSchema = _enum(["pipeline", "sensor"]);
17302
17498
  var TrackSchema = object({
17303
17499
  trackId: string(),
17304
17500
  deviceId: number(),
17305
17501
  className: string(),
17306
17502
  label: string().optional(),
17503
+ /** Track provenance. Absent ⇒ `pipeline` (legacy rows). */
17504
+ source: TrackSourceSchema.optional(),
17307
17505
  firstSeen: number(),
17308
17506
  lastSeen: number(),
17309
17507
  /** Frame-rate position history (subject to maxPositionHistory cap). */
@@ -17558,6 +17756,26 @@ var TrackCascadeCountsSchema = object({
17558
17756
  /** Per-track CLIP search vectors removed (best-effort). */
17559
17757
  embeddings: number().int()
17560
17758
  });
17759
+ /** Event-store footprint for one camera. */
17760
+ var EventStoreDeviceFootprintSchema = object({
17761
+ deviceId: number(),
17762
+ /** Persisted event rows (motion + object + audio) for the camera. */
17763
+ rows: number().int(),
17764
+ /** Event-owned media bytes on disk for the camera. */
17765
+ bytes: number().int()
17766
+ });
17767
+ /** Aggregate event-store footprint: global totals + per-camera breakdown. */
17768
+ var EventStoreFootprintSchema = object({
17769
+ totalRows: number().int(),
17770
+ totalBytes: number().int(),
17771
+ devices: array(EventStoreDeviceFootprintSchema).readonly()
17772
+ });
17773
+ /** Per-kind counts returned by the event-prune / device-delete mutations. */
17774
+ var EventPruneCountsSchema = object({
17775
+ motion: number().int(),
17776
+ object: number().int(),
17777
+ audio: number().int()
17778
+ });
17561
17779
  DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
17562
17780
  deviceId: number(),
17563
17781
  trackId: string()
@@ -17621,6 +17839,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17621
17839
  }), {
17622
17840
  kind: "mutation",
17623
17841
  auth: "admin"
17842
+ }), method(object({}), EventStoreFootprintSchema, {
17843
+ kind: "query",
17844
+ auth: "admin"
17845
+ }), method(object({
17846
+ olderThanMs: number(),
17847
+ reason: OpsLogReasonSchema.optional()
17848
+ }), EventPruneCountsSchema, {
17849
+ kind: "mutation",
17850
+ auth: "admin"
17851
+ }), method(object({ deviceId: number() }), EventPruneCountsSchema, {
17852
+ kind: "mutation",
17853
+ auth: "admin"
17854
+ }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
17855
+ kind: "query",
17856
+ auth: "admin"
17624
17857
  }), method(object({
17625
17858
  eventId: string(),
17626
17859
  kind: MediaFileKindEnum.optional()
@@ -17645,6 +17878,76 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17645
17878
  eventId: string(),
17646
17879
  timestamp: number()
17647
17880
  });
17881
+ /**
17882
+ * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
17883
+ * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
17884
+ * caps into per-camera event-kind descriptors.
17885
+ *
17886
+ * The descriptor DATA (color / iconId / labelKey / parentKind / category)
17887
+ * is NOT duplicated here — every entry is derived from the single
17888
+ * `EVENT_TAXONOMY` dictionary (`catalogs/event-taxonomy.ts`). This file owns
17889
+ * ONLY the cap-name → taxonomy-kind mapping. Adding a new eventful sensor /
17890
+ * control cap means adding one line here (and a taxonomy entry); the anti-
17891
+ * drift guard `scripts/check-event-kind-coverage.ts` fails the build if an
17892
+ * eventful cap is missing.
17893
+ */
17894
+ /** Map a taxonomy `iconId` onto the legacy closed `EventKindIcon` enum. */
17895
+ var LEGACY_ICON = {
17896
+ motion: "motion",
17897
+ audio: "audio",
17898
+ person: "person",
17899
+ vehicle: "vehicle",
17900
+ animal: "animal",
17901
+ package: "package",
17902
+ door: "door",
17903
+ pir: "pir",
17904
+ smoke: "smoke",
17905
+ water: "water",
17906
+ button: "button",
17907
+ generic: "generic",
17908
+ gas: "smoke",
17909
+ vibration: "generic",
17910
+ tamper: "generic",
17911
+ presence: "person",
17912
+ lock: "generic",
17913
+ siren: "generic",
17914
+ switch: "generic",
17915
+ doorbell: "button"
17916
+ };
17917
+ function legacyIcon(iconId) {
17918
+ return LEGACY_ICON[iconId] ?? "generic";
17919
+ }
17920
+ /**
17921
+ * Cap name → taxonomy kind id. Covers EVERY eventful sensor / control cap.
17922
+ * The anti-drift guard cross-checks this against the eventful caps declared
17923
+ * in `packages/types/src/capabilities/*.cap.ts`.
17924
+ */
17925
+ var CAP_TO_KIND = {
17926
+ contact: "contact",
17927
+ motion: "motion-sensor",
17928
+ smoke: "smoke",
17929
+ flood: "flood",
17930
+ gas: "gas",
17931
+ "carbon-monoxide": "carbon-monoxide",
17932
+ vibration: "vibration",
17933
+ tamper: "tamper",
17934
+ presence: "presence",
17935
+ "enum-sensor": "enum-sensor",
17936
+ "event-emitter": "device-event",
17937
+ "lock-control": "lock",
17938
+ switch: "switch",
17939
+ button: "button",
17940
+ doorbell: "doorbell"
17941
+ };
17942
+ function buildDescriptor(capName, kind) {
17943
+ const t = EVENT_TAXONOMY[kind];
17944
+ if (t === void 0) throw new Error(`EVENT_KIND_BY_CAP: cap '${capName}' maps to unknown taxonomy kind '${kind}'`);
17945
+ return {
17946
+ ...t,
17947
+ icon: legacyIcon(t.iconId)
17948
+ };
17949
+ }
17950
+ Object.freeze(Object.fromEntries(Object.entries(CAP_TO_KIND).map(([capName, kind]) => [capName, buildDescriptor(capName, kind)])));
17648
17951
  var CameraPipelineConfigSchema = object({
17649
17952
  engine: PipelineEngineChoiceSchema.optional(),
17650
17953
  steps: array(PipelineStepInputSchema).readonly(),
@@ -20979,14 +21282,43 @@ var recordingCapability = {
20979
21282
  auth: "admin"
20980
21283
  }),
20981
21284
  /** Apply this device's retention policy to footage now; returns the oldest
20982
- * surviving footage start (the retention floor) or null if no footage. */
20983
- pruneFootage: method(object({ deviceId: number() }), object({
21285
+ * surviving footage start (the retention floor) or null if no footage. The
21286
+ * prune is logged to the recordings ops-log with `reason` (default
21287
+ * `'retention'` — the policy-driven prune; `'quota'` when disk-pressure
21288
+ * triggered). */
21289
+ pruneFootage: method(object({
21290
+ deviceId: number(),
21291
+ reason: OpsLogReasonSchema.optional()
21292
+ }), object({
20984
21293
  floorMs: number().nullable(),
20985
21294
  deletedBuckets: number().int(),
20986
21295
  reclaimedBytes: number().int()
20987
21296
  }), {
20988
21297
  kind: "mutation",
20989
21298
  auth: "admin"
21299
+ }),
21300
+ /**
21301
+ * Manually delete a camera's footage — the whole footprint, or a
21302
+ * `[fromMs, toMs)` window when either bound is given. Logged to the
21303
+ * recordings ops-log as `op:'manual-delete', reason:'manual'`. Destructive:
21304
+ * the admin UI guards it behind a confirm.
21305
+ */
21306
+ deleteFootprint: method(object({
21307
+ deviceId: number(),
21308
+ fromMs: number().optional(),
21309
+ toMs: number().optional()
21310
+ }), object({
21311
+ deletedBuckets: number().int(),
21312
+ reclaimedBytes: number().int()
21313
+ }), {
21314
+ kind: "mutation",
21315
+ auth: "admin"
21316
+ }),
21317
+ /** The recordings ops-log rows (newest-first), optionally scoped to one
21318
+ * camera. Backed by the recorder's bounded DurableState ring. */
21319
+ listOpsLog: method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
21320
+ kind: "query",
21321
+ auth: "admin"
20990
21322
  })
20991
21323
  }
20992
21324
  };
@@ -24127,6 +24459,12 @@ Object.freeze({
24127
24459
  addonId: null,
24128
24460
  access: "delete"
24129
24461
  },
24462
+ "pipelineAnalytics.deleteDeviceEvents": {
24463
+ capName: "pipeline-analytics",
24464
+ capScope: "device",
24465
+ addonId: null,
24466
+ access: "delete"
24467
+ },
24130
24468
  "pipelineAnalytics.deleteTracks": {
24131
24469
  capName: "pipeline-analytics",
24132
24470
  capScope: "device",
@@ -24157,6 +24495,12 @@ Object.freeze({
24157
24495
  addonId: null,
24158
24496
  access: "view"
24159
24497
  },
24498
+ "pipelineAnalytics.getEventStoreFootprint": {
24499
+ capName: "pipeline-analytics",
24500
+ capScope: "device",
24501
+ addonId: null,
24502
+ access: "view"
24503
+ },
24160
24504
  "pipelineAnalytics.getKeyEvents": {
24161
24505
  capName: "pipeline-analytics",
24162
24506
  capScope: "device",
@@ -24199,6 +24543,12 @@ Object.freeze({
24199
24543
  addonId: null,
24200
24544
  access: "view"
24201
24545
  },
24546
+ "pipelineAnalytics.listOpsLog": {
24547
+ capName: "pipeline-analytics",
24548
+ capScope: "device",
24549
+ addonId: null,
24550
+ access: "view"
24551
+ },
24202
24552
  "pipelineAnalytics.listRecentTracks": {
24203
24553
  capName: "pipeline-analytics",
24204
24554
  capScope: "device",
@@ -24211,6 +24561,12 @@ Object.freeze({
24211
24561
  addonId: null,
24212
24562
  access: "view"
24213
24563
  },
24564
+ "pipelineAnalytics.pruneEvents": {
24565
+ capName: "pipeline-analytics",
24566
+ capScope: "device",
24567
+ addonId: null,
24568
+ access: "create"
24569
+ },
24214
24570
  "pipelineAnalytics.pruneEventsBefore": {
24215
24571
  capName: "pipeline-analytics",
24216
24572
  capScope: "device",
@@ -24973,6 +25329,12 @@ Object.freeze({
24973
25329
  addonId: null,
24974
25330
  access: "create"
24975
25331
  },
25332
+ "recording.deleteFootprint": {
25333
+ capName: "recording",
25334
+ capScope: "system",
25335
+ addonId: null,
25336
+ access: "delete"
25337
+ },
24976
25338
  "recording.getAvailability": {
24977
25339
  capName: "recording",
24978
25340
  capScope: "system",
@@ -25003,6 +25365,12 @@ Object.freeze({
25003
25365
  addonId: null,
25004
25366
  access: "view"
25005
25367
  },
25368
+ "recording.listOpsLog": {
25369
+ capName: "recording",
25370
+ capScope: "system",
25371
+ addonId: null,
25372
+ access: "view"
25373
+ },
25006
25374
  "recording.locateSegment": {
25007
25375
  capName: "recording",
25008
25376
  capScope: "system",
@@ -26430,4 +26798,4 @@ function defaultDeviceFor(id) {
26430
26798
  return def(id).defaultDevice;
26431
26799
  }
26432
26800
  //#endregion
26433
- export { _enum as $, pipelineRunnerCapability as A, BaseAddon as B, hfModelUrl as C, motionDetectionCapability as D, migrateConfigToBands as E, storageEvictableCapability as F, hydrateSchema as G, DeviceFeature as H, streamBrokerCapability as I, makeSourceBrokerId as J, isEvent as K, supportedRuntimes as L, recordingExportCapability as M, resolveScrubThumbnailGeometry as N, nodePin as O, runtimeDevices as P, sleep as Q, webrtcSessionCapability as R, evaluateZoneRules as S, maskUrlCredentials as T, DeviceType as U, CAM_PROFILE_ORDER as V, createEvent as W, parseProfileBrokerId as X, parseJsonUnknown as Y, selectAssignedProfileSlots as Z, cameraStreamsCapability as _, COCO_TO_MACRO as a, number as at, defineCustomActions as b, EncodeProfileSchema as c, string as ct, RecordingConfigSchema as d, array as et, RingBuffer as f, audioAnalyzerCapability as g, audioAnalysisCapability as h, COCO_80_LABELS as i, literal as it, recordingCapability as j, pipelineExecutorCapability as k, ExportRecordSchema as l, union as lt, addonWidgetsSourceCapability as m, AUDIO_BACKEND_CHOICES as n, discriminatedUnion as nt, DEFAULT_AUDIO_ANALYZER_CONFIG as o, object as ot, YAMNET_TO_MACRO as p, makeProfileBrokerId as q, AUDIO_MACRO_LABELS as r, lazy as rt, EVENT_PAD_MS as s, record as st, APPLE_SA_TO_MACRO as t, boolean as tt, HF_BASE_URL as u, EventCategory as ut, customAction as v, mapAudioLabelToMacro as w, detectionPipelineCapability as x, defaultDeviceFor as y, errMsg as z };
26801
+ export { sleep as $, pipelineExecutorCapability as A, errMsg as B, evaluateZoneRules as C, migrateConfigToBands as D, maskUrlCredentials as E, runtimeDevices as F, createEvent as G, CAM_PROFILE_ORDER as H, storageEvictableCapability as I, makeProfileBrokerId as J, hydrateSchema as K, streamBrokerCapability as L, recordingCapability as M, recordingExportCapability as N, motionDetectionCapability as O, resolveScrubThumbnailGeometry as P, selectAssignedProfileSlots as Q, supportedRuntimes as R, detectionPipelineCapability as S, mapAudioLabelToMacro as T, DeviceFeature as U, BaseAddon as V, DeviceType as W, parseJsonUnknown as X, makeSourceBrokerId as Y, parseProfileBrokerId as Z, audioAnalyzerCapability as _, COCO_TO_MACRO as a, literal as at, defaultDeviceFor as b, EncodeProfileSchema as c, record as ct, OpsLogEntrySchema as d, EventCategory as dt, _enum as et, RecordingConfigSchema as f, audioAnalysisCapability as g, addonWidgetsSourceCapability as h, COCO_80_LABELS as i, lazy as it, pipelineRunnerCapability as j, nodePin as k, ExportRecordSchema as l, string as lt, YAMNET_TO_MACRO as m, AUDIO_BACKEND_CHOICES as n, boolean as nt, DEFAULT_AUDIO_ANALYZER_CONFIG as o, number as ot, RingBuffer as p, isEvent as q, AUDIO_MACRO_LABELS as r, discriminatedUnion as rt, EVENT_PAD_MS as s, object as st, APPLE_SA_TO_MACRO as t, array as tt, HF_BASE_URL as u, union as ut, cameraStreamsCapability as v, hfModelUrl as w, defineCustomActions as x, customAction as y, webrtcSessionCapability as z };
@@ -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-p_JqOxtk.js");
5
+ const require_dist = require("../dist-B2jTt7Lq.js");
6
6
  let node_fs = require("node:fs");
7
7
  let node_path = require("node:path");
8
8
  //#region src/motion-wasm/wasm-motion-detector.ts
@@ -1,4 +1,4 @@
1
- import { B as BaseAddon, D as motionDetectionCapability, G as hydrateSchema, S as evaluateZoneRules, U as DeviceType } from "../dist-D16_dBsr.mjs";
1
+ import { C as evaluateZoneRules, K as hydrateSchema, O as motionDetectionCapability, V as BaseAddon, W as DeviceType } from "../dist-BzVZ2I4P.mjs";
2
2
  import { readFileSync } from "node:fs";
3
3
  import { join } from "node:path";
4
4
  //#region src/motion-wasm/wasm-motion-detector.ts