@camstack/types 1.1.44 → 1.1.46

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.
@@ -1,3 +1,4 @@
1
+ import { t as EventCategory } from "./event-category-CFZs3jI4.mjs";
1
2
  import { z } from "zod";
2
3
  //#region src/disposer-chain.ts
3
4
  var DisposerChain = class {
@@ -64,539 +65,6 @@ var DisposerChain = class {
64
65
  }
65
66
  };
66
67
  //#endregion
67
- //#region src/enums/event-category.ts
68
- var EventCategory = /* @__PURE__ */ function(EventCategory) {
69
- EventCategory["SystemBoot"] = "system.boot";
70
- EventCategory["SystemAddonsReady"] = "system.addons-ready";
71
- EventCategory["SystemRestarting"] = "system.restarting";
72
- /**
73
- * Fired exactly once after the hub finishes booting following a
74
- * restart that was triggered by `RestartCoordinator` (today: framework
75
- * live-update). Payload is the marker that was on disk at boot
76
- * (`PendingRestartMarkerPayload`); admin UI listens for it to display a
77
- * success toast describing what changed.
78
- *
79
- * Spec: docs/superpowers/specs/2026-05-14-framework-live-update-design.md
80
- */
81
- EventCategory["SystemRestartCompleted"] = "system.restart-completed";
82
- /**
83
- * Readiness transition for a capability provider. Every producer emits
84
- * this event on `onInitialize` completion, `onDestroy`, and
85
- * `$node.reconnect`; every consumer that needs to gate on a cross-process
86
- * cap subscribes via the kernel's readiness module (`awaitReady` /
87
- * `onReadyState`) instead of polling. Payload is
88
- * `SystemReadyStatePayload` — see event-bus.ts.
89
- */
90
- EventCategory["SystemReadyState"] = "system.ready-state";
91
- EventCategory["AddonStarted"] = "addon.started";
92
- EventCategory["AddonStopped"] = "addon.stopped";
93
- EventCategory["AddonRestarted"] = "addon.restarted";
94
- EventCategory["AddonUpdated"] = "addon.updated";
95
- EventCategory["AddonInstalled"] = "addon.installed";
96
- EventCategory["AddonUninstalled"] = "addon.uninstalled";
97
- EventCategory["AddonCrashed"] = "addon.crashed";
98
- EventCategory["AddonError"] = "addon.error";
99
- EventCategory["AddonPageReady"] = "addon.page-ready";
100
- EventCategory["AddonWidgetReady"] = "addon.widget-ready";
101
- /**
102
- * Addon failed to load (import or initialize). Emitted by the kernel's
103
- * AddonHealthMonitor only AFTER the boot grace period ends — failures
104
- * during the first 5 minutes are silently retried without alerting
105
- * (slow-starting addons must have time to come up). Post-grace, this
106
- * event is emitted exactly once per failure-streak; AlertCenter
107
- * consumes it to create a persistent operator-visible alert.
108
- *
109
- * Payload: `{ packageName, addonId?, error: { message, stack }, retryCount, nextRetryAt }`.
110
- */
111
- EventCategory["AddonLoadFailed"] = "addon.load-failed";
112
- /**
113
- * Addon recovered from a previous failure. Emitted when an addon
114
- * transitions from `failed` back to `healthy` (typically via the
115
- * monitor's auto-retry loop, or after manual `addons.retryLoad`).
116
- * AlertCenter dismisses the corresponding `AddonLoadFailed` alert
117
- * on this event.
118
- */
119
- EventCategory["AddonLoadRecovered"] = "addon.load-recovered";
120
- /**
121
- * Monitor scheduled the next retry for a failed addon. Transient —
122
- * surfaced to the UI for live-updating the "next retry in Ns"
123
- * countdown on the Addons page row, NOT persisted as an alert.
124
- */
125
- EventCategory["AddonRetryScheduled"] = "addon.retry-scheduled";
126
- /**
127
- * Monitor is attempting to reload a failed addon NOW. UI uses this
128
- * to show a spinner during the retry attempt. Same transient nature
129
- * as AddonRetryScheduled.
130
- */
131
- EventCategory["AddonRetryAttempting"] = "addon.retry-attempting";
132
- EventCategory["DeviceRegistered"] = "device.registered";
133
- EventCategory["DeviceUnregistered"] = "device.unregistered";
134
- EventCategory["DeviceEnabled"] = "device.enabled";
135
- EventCategory["DeviceDisabled"] = "device.disabled";
136
- EventCategory["DeviceSettingsUpdated"] = "device.settings-updated";
137
- /**
138
- * Emitted when the set of native capability providers bound to a device
139
- * changes — e.g. an addon registers a new native cap via
140
- * `DeviceContext.registerNativeCap`, or all native bindings for a device
141
- * are cleared on removal. Hub consumers re-resolve device-proxy routes
142
- * when this fires.
143
- */
144
- EventCategory["DeviceBindingsChanged"] = "device.bindings-changed";
145
- /**
146
- * Emitted when the operator-organisational meta surface changes
147
- * (`name` / `location` / `disabled`). Payload: `{deviceId, field,
148
- * value}`. Live consumers (UI device list, alert center) react
149
- * without polling. Distinct from `DeviceSettingsUpdated` which
150
- * fires on hardware-config changes (host/port/credentials/etc).
151
- */
152
- EventCategory["DeviceMetaChanged"] = "device.meta-changed";
153
- /**
154
- * Emitted by `BaseDevice.updateSourceInfo()` after a successful patch
155
- * to the device's upstream-system identity / rendering envelope. The
156
- * full new SourceInfo travels in the payload so cross-process listeners
157
- * (UI, export adapters) don't need to re-read the meta blob.
158
- *
159
- * Payload: `{deviceId, sourceInfo}`.
160
- *
161
- * Distinct from `DeviceMetaChanged` which covers the operator-edited
162
- * surface (`name` / `location` / `disabled`). The two share the
163
- * persistence layer (both ride on `device-manager.setMetadata` for
164
- * SourceInfo, or `setName`/`setLocation`/`setDisabled` for the meta
165
- * fields) but consumers care about different subsets.
166
- */
167
- EventCategory["DeviceSourceInfoChanged"] = "device.source-info-changed";
168
- /**
169
- * Emitted by DeviceStreamWiringService after a successful
170
- * `stream-broker.registerDeviceStreams` call. Payload includes
171
- * deviceId — consumers look up the full registered device info via
172
- * `brokerManager.getRegisteredDevice(deviceId)`.
173
- *
174
- * Replaces the legacy `StreamRouterService.onDeviceRegistered` callback.
175
- */
176
- EventCategory["DeviceStreamsRegistered"] = "device.streams-registered";
177
- /**
178
- * Device-level "fully provisioned" signal — the EXPORT trigger. Emitted once
179
- * a device's persisted export-relevant shape (its `DeviceFeature` set) is
180
- * established or changes, carrying `{deviceId, fingerprint, generation}`.
181
- * Export adapters (Alexa / HAP) react to THIS instead of the chatty per-cap
182
- * `DeviceBindingsChanged`, turning a boot's incomplete→complete trickle into
183
- * one clean delta. `fingerprint` is `canonicalDeviceFingerprint(shape)`.
184
- *
185
- * Spec: docs/superpowers/specs/2026-06-01-alexa-hap-export-reconciler-design.md
186
- */
187
- EventCategory["DeviceProvisioned"] = "device.provisioned";
188
- /**
189
- * Fires once when a device's initial feature-probe completes successfully
190
- * (lastProbedAt 0→>0); exported shape is now stable. Telemetry (may be
191
- * dropped) — consumers MUST also gate on the device record's `probed` flag.
192
- */
193
- EventCategory["DeviceReady"] = "device.ready";
194
- EventCategory["IntegrationEnabled"] = "integration.enabled";
195
- EventCategory["IntegrationDisabled"] = "integration.disabled";
196
- EventCategory["IntegrationDeleted"] = "integration.deleted";
197
- /** Emitted when a broker connection's status flips (connected /
198
- * disconnected / error). Carries `{ brokerId, status, error? }`. */
199
- EventCategory["BrokerStatusChanged"] = "broker.status-changed";
200
- /** Emitted for every subscription-matched message routed by a
201
- * broker provider. Carries `{ brokerId, subscriptionId, key, payload }`.
202
- * Consumers filter by `brokerId` + `subscriptionId` in the handler. */
203
- EventCategory["BrokerMessage"] = "broker.message";
204
- EventCategory["ProviderStarted"] = "provider.started";
205
- EventCategory["ProviderStopped"] = "provider.stopped";
206
- EventCategory["ProcessCrashed"] = "process.crashed";
207
- EventCategory["ProcessRestartScheduled"] = "process.restart_scheduled";
208
- EventCategory["ProcessRestarted"] = "process.restarted";
209
- EventCategory["RecordingStarted"] = "recording.started";
210
- EventCategory["RecordingStopped"] = "recording.stopped";
211
- EventCategory["RecordingError"] = "recording.error";
212
- EventCategory["RecordingHealthDegraded"] = "recording.health.degraded";
213
- EventCategory["RecordingStorageCritical"] = "recording.storage.critical";
214
- EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
215
- EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
216
- EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
217
- EventCategory["DetectionEvent"] = "detection.event";
218
- EventCategory["SessionTrackNew"] = "session.track.new";
219
- EventCategory["SessionTrackExpired"] = "session.track.expired";
220
- EventCategory["BenchmarkProgress"] = "benchmark.progress";
221
- EventCategory["PlatformProbePhase"] = "platform-probe.phase";
222
- EventCategory["PipelineProgress"] = "pipeline.progress";
223
- /** Per-frame execution trace emitted by the pipeline executor for live observability. */
224
- EventCategory["PipelineTrace"] = "pipeline.trace";
225
- /**
226
- * Raw inference output emitted by `addon-pipeline-runner` after running the
227
- * detection pipeline on a frame. Carries the `FrameResult` (with
228
- * `detections[]`, `width`/`height`, timing debug) — never the frame
229
- * buffer itself. Hub-side consumers (analysis pipeline, class filters,
230
- * notifications) subscribe to this and re-emit `detection.result` after
231
- * post-processing.
232
- */
233
- EventCategory["PipelineInferenceResult"] = "pipeline.inference-result";
234
- /**
235
- * Camera lifecycle event emitted by `addon-pipeline-orchestrator` when it
236
- * assigns or unassigns a camera to/from an agent. Carries no frame data;
237
- * pure observability for UI dashboards and metrics consumers.
238
- */
239
- EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
240
- EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
241
- /**
242
- * Per-camera pipeline config was mutated by the orchestrator
243
- * (3-level settings change via `setAgentAddonDefaults` /
244
- * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
245
- * pipeline-scoped `applyDeviceSettingsPatch`). Orchestrator
246
- * subscribes to its own emission to hot-reload the assigned runner
247
- * via `attachCamera` so the next frame executes against the new
248
- * engine/steps without waiting for a rebalance or the next
249
- * `DeviceStreamsRegistered` cycle.
250
- */
251
- EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
252
- /**
253
- * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
254
- * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
255
- * capabilities — at boot, on agent online/offline, and on an ingest-node
256
- * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
257
- * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
258
- * cross-process `getIngestOwner` query (push the authority's decision instead
259
- * of polling it on the hot path). Idempotent state — re-emitted on every
260
- * topology change, so a dropped event self-heals on the next one (plus the
261
- * broker's long backstop reconcile query).
262
- */
263
- EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
264
- /**
265
- * Periodic snapshot of per-node pipeline-runner load
266
- * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
267
- * subscribe instead of polling `pipelineRunner.getLocalLoad`.
268
- * `nodeId` carried in the payload + on `event.source.nodeId`.
269
- */
270
- EventCategory["PipelineRunnerLoadSnapshot"] = "pipeline.runner-load-snapshot";
271
- /**
272
- * Periodic snapshot of per-camera pipeline metrics (`CameraMetrics`
273
- * + `deviceId` + `nodeId`). Emitted ~1Hz by every runner for each
274
- * attached camera. UI subscribes to drive overlay phase / fps /
275
- * inference time without polling `getCameraMetrics`.
276
- */
277
- EventCategory["PipelineCameraMetricsSnapshot"] = "pipeline.camera-metrics-snapshot";
278
- /**
279
- * Periodic snapshot of stream-broker per-broker statistics (input
280
- * fps, decoded fps, bitrate, codec). Emitted ~1Hz by every
281
- * stream-broker process for each active broker so the UI can drive
282
- * the Stream / Cluster dashboards without polling
283
- * `streamBroker.listAllProfileSlots` and friends.
284
- */
285
- EventCategory["StreamBrokerMetricsSnapshot"] = "stream-broker.metrics-snapshot";
286
- /**
287
- * Cap event fired by `stream-broker` when a profile slot enters
288
- * "demanded" state — a cam stream has been assigned and at least one
289
- * consumer (RTSP restream, decoded subscriber, WebRTC session, …) is
290
- * present. Camera-provider addons (Reolink Baichuan push, …)
291
- * subscribe to this category to start their underlying transport
292
- * lazily. Payload: `{ deviceId, camStreamId, profile }`.
293
- */
294
- EventCategory["StreamBrokerOnCamStreamDemand"] = "stream-broker.onCamStreamDemand";
295
- /**
296
- * Cap event fired by `stream-broker` when the last consumer leaves a
297
- * previously-demanded cam stream. Providers tear down their
298
- * underlying transport on receipt. Payload: `{ deviceId, camStreamId }`.
299
- */
300
- EventCategory["StreamBrokerOnCamStreamIdle"] = "stream-broker.onCamStreamIdle";
301
- /**
302
- * Cap event fired by `stream-broker` when a broker fails to dial a
303
- * managed-loopback source (today: `pull-rfc4571`) and the publisher
304
- * needs to refresh the cached URL. The lib's TCP server idle-tears-down
305
- * on its own schedule, so a re-publish with a fresh `host:port` is the
306
- * only way to keep the broker dialable. Camera providers (Reolink
307
- * Baichuan native, …) subscribe and respond by re-running their publish
308
- * pipeline.
309
- * Payload: `{ deviceId, camStreamId, brokerId }`.
310
- */
311
- EventCategory["StreamBrokerOnRequestStreamSourceRefresh"] = "stream-broker.onRequestStreamSourceRefresh";
312
- /**
313
- * A camera provider changed a device's stream parameters (codec /
314
- * resolution / bitrate / a stream added or removed). A LOW-LATENCY NUDGE
315
- * for the stream-broker's catalog reconcile: it carries NO authoritative
316
- * data — the broker re-PULLS that device's `stream-catalog` cap on receipt
317
- * (the 30s reconcile poll is the backstop if this nudge is dropped). Emitted
318
- * by providers from `stream-params.setProfile`. Payload: `{ deviceId }`.
319
- */
320
- EventCategory["StreamParamsChanged"] = "stream-params.changed";
321
- /**
322
- * Generic per-device runtime-state change. Fired by `device-manager`
323
- * whenever a persisted slice in any cap's `runtimeState` shape
324
- * mutates. Payload: `{deviceId, capName, slice}`. Subscribers are
325
- * the `deviceState` cap router (cross-process listeners) and the
326
- * deviceProxy reactive bindings (`device.state.<capName>.value`).
327
- * Cap-specific events (`battery.onStatusChanged`, …) still fire
328
- * — they're authoritative for callers that want a typed payload
329
- * without filtering on `capName`.
330
- */
331
- EventCategory["DeviceStateChanged"] = "device.state-changed";
332
- /**
333
- * Cap event fired by every device that registers the `battery`
334
- * capability. Mirrors the cap definition's `onStatusChanged`. Carries
335
- * `{ deviceId, status: BatteryStatus }`. Subscribers (alert center,
336
- * snapshot wrapper, UI) react to charge/sleep transitions without
337
- * polling `batteryCapability.getStatus`.
338
- */
339
- EventCategory["BatteryOnStatusChanged"] = "battery.onStatusChanged";
340
- /**
341
- * Emitted by the battery cap provider WHEN `wakeForStream` enters the
342
- * "wake in progress" window — between the Baichuan wake-up issue and
343
- * the camera's first dialed-back RTP packet. The stream-broker
344
- * manager subscribes to flip the per-broker placeholder reason to
345
- * `'waking'` so viewers see a labelled "WAKING UP" tile instead of
346
- * the generic `'reconnecting'` frame. Carries `{ deviceId }`. The
347
- * complementary "wake complete" signal is the existing
348
- * `BatteryOnStatusChanged { sleeping: false }` event.
349
- */
350
- EventCategory["BatteryOnWakeStarted"] = "battery.onWakeStarted";
351
- /**
352
- * Cap event fired by every device that registers the `doorbell`
353
- * capability. Mirrors `doorbellCapability.events.onPressed`. Carries
354
- * `{ deviceId, timestamp }`. Operators consuming the UI subscribe
355
- * here to render transient ring toasts and a "Recent presses" row
356
- * on the device detail page.
357
- */
358
- EventCategory["DoorbellOnPressed"] = "doorbell.onPressed";
359
- /**
360
- * Cap event fired by every device that registers the `event-emitter`
361
- * capability. Mirrors `eventEmitterCapability.events.onEvent`. Carries
362
- * `{ deviceId, eventType, data, timestamp, seq }` — the device's EXACT
363
- * declared event verbatim (NO normalization). Subscribers (UI event
364
- * stream, advanced-notifier rules) react to fired events without
365
- * holding a cap reference.
366
- */
367
- EventCategory["EventEmitted"] = "event-emitter.event";
368
- /**
369
- * Periodic snapshot of the per-node detection-pipeline engine
370
- * registry (loaded engines, models resident, in-use cameras, idle
371
- * TTL). Emitted ~0.2Hz (every 5 s) by every detection-pipeline
372
- * process. The Engines tab subscribes to drive its inventory view
373
- * without polling `pipelineExecutor.listLoadedEngines`.
374
- */
375
- EventCategory["PipelineEngineMetricsSnapshot"] = "pipeline.engine-metrics-snapshot";
376
- /**
377
- * Per-node detection-engine runtime-provisioning transition. Emitted by
378
- * the detection-pipeline provider on every state change of its lazy
379
- * engine-provisioning machine (idle → installing → verifying → ready,
380
- * or → failed with a `nextRetryAt`). Payload is the
381
- * `EngineProvisioningState` snapshot; `event.source.nodeId` carries the
382
- * node. The Pipeline page subscribes to drive a live "installing
383
- * OpenVINO… / ready" indicator per node without polling
384
- * `pipelineExecutor.getEngineProvisioning`. Telemetry-grade (D8): the UI
385
- * also reads the cap snapshot on mount / reconnect. Phase 2.
386
- */
387
- EventCategory["PipelineEngineProvisioning"] = "pipeline.engine-provisioning";
388
- /**
389
- * Cluster topology snapshot. Carries the same payload returned by
390
- * `nodes.topology` (every reachable node + addons + processes).
391
- * Emitted by the hub on any agent / addon lifecycle change
392
- * (debounced) plus a periodic safety net. Replaces UI polling on
393
- * `nodes.topology` — admin-ui dashboards subscribe to drive the
394
- * cluster view directly from the event payload.
395
- */
396
- EventCategory["ClusterTopologySnapshot"] = "cluster.topology-snapshot";
397
- /**
398
- * Periodic per-node system metrics snapshot (CPU / memory / GPU /
399
- * disk / network). Emitted ~0.2 Hz by the metrics-provider addon
400
- * for each node. Drives the dashboard SystemStatus / ProcessResources
401
- * widgets without polling `metricsProvider.getCurrent`.
402
- */
403
- EventCategory["MetricsNodeResourcesSnapshot"] = "metrics.node-resources-snapshot";
404
- /**
405
- * Periodic per-node process-tree snapshot (camstack-related pids
406
- * with ghost / managed / root classification). Emitted ~0.2 Hz by
407
- * the metrics-provider addon. Drives the Cluster → Processes tab
408
- * without polling `metricsProvider.listNodeProcesses`.
409
- */
410
- EventCategory["MetricsNodeProcessesSnapshot"] = "metrics.node-processes-snapshot";
411
- /**
412
- * Capability binding change event emitted by `addon-pipeline-orchestrator`
413
- * when a user changes which addon implements a cap on a node. Subscribed
414
- * by every kernel process to update its local `preferredProviderRegistry`
415
- * so future capability lookups respect the new binding.
416
- */
417
- /**
418
- * A capability binding was changed for a node — addon X now provides
419
- * capability `cap` on node `nodeId`. Lives under the generic
420
- * `capability.*` namespace because capability bindings are a kernel-
421
- * level concept used by many addons, not strictly pipeline-scoped.
422
- */
423
- EventCategory["CapabilityBindingChanged"] = "capability.binding-changed";
424
- EventCategory["ModelDownloadProgress"] = "model.download.progress";
425
- EventCategory["AgentRegistered"] = "agent.registered";
426
- EventCategory["AgentUnregistered"] = "agent.unregistered";
427
- EventCategory["AgentOnline"] = "agent.online";
428
- EventCategory["AgentOffline"] = "agent.offline";
429
- /** Forked worker process (e.g. hub/pipeline) connected to the broker. */
430
- EventCategory["WorkerOnline"] = "worker.online";
431
- /** Forked worker process disconnected from the broker. */
432
- EventCategory["WorkerOffline"] = "worker.offline";
433
- EventCategory["AgentTaskDispatched"] = "agent.task.dispatched";
434
- EventCategory["AgentTaskAssigned"] = "agent.task.assigned";
435
- EventCategory["AgentTrpcConnected"] = "agent.trpc.connected";
436
- EventCategory["AgentWsConnected"] = "agent.ws.connected";
437
- EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
438
- EventCategory["AgentBackupActivated"] = "agent.backup.activated";
439
- EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
440
- /**
441
- * Per-agent hwaccel preference changed (user override set, cleared, or
442
- * re-probed). Observability event — decoders pull the current pref at
443
- * `createSession`, so running sessions keep their current backend until
444
- * they rotate naturally (camera add/remove, stream restart). Future
445
- * work can wire a listener in stream-broker that force-rotates live
446
- * sessions; for now this event powers logs + admin-UI toast feedback.
447
- */
448
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
449
- EventCategory["MotionAnalysis"] = "detection.motion-analysis";
450
- /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
451
- EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
452
- /**
453
- * Per-camera motion phase transition (`watching ↔ active`) emitted
454
- * by the runner. Mirrors the `motion.onMotionChanged` cap event
455
- * surface — payload `MotionOnMotionChangedPayload` carries
456
- * `{deviceId, detected, timestamp, source, regions?}`. Subscribers
457
- * include addons that need to react to motion state without
458
- * polling the runtime-state mirror.
459
- */
460
- EventCategory["MotionOnMotionChanged"] = "motion.on-motion-changed";
461
- EventCategory["DetectionResult"] = "detection.result";
462
- EventCategory["DetectionRaw"] = "detection.raw";
463
- EventCategory["DetectionCameraNative"] = "detection.camera-native";
464
- /**
465
- * Canonical per-chunk live audio pipeline output. Payload is
466
- * `PipelineAudioInferenceResultPayload` carrying a full `AudioResult`
467
- * (level + detections + debug). Lives on the pipeline.* namespace
468
- * alongside `pipeline.inference-result` (video) for symmetry.
469
- */
470
- EventCategory["PipelineAudioInferenceResult"] = "pipeline.audio-inference-result";
471
- EventCategory["DetectionPhaseTransition"] = "detection.phase-transition";
472
- EventCategory["ProviderMotion"] = "provider.motion";
473
- EventCategory["ProviderDetection"] = "provider.detection";
474
- EventCategory["EnrichmentEmbeddingStored"] = "enrichment.embedding.stored";
475
- EventCategory["EnrichmentSceneStateChanged"] = "enrichment.scene.state-changed";
476
- EventCategory["EnrichmentActivitySummary"] = "enrichment.activity.summary";
477
- /**
478
- * Unified track-lifecycle event: ONE category carrying `phase:
479
- * 'start' | 'update' | 'end'` with a rich, typed
480
- * `PipelineAnalyticsTrackLifecyclePayload`. Supersedes the thin
481
- * `PipelineAnalyticsTrackStarted` / `PipelineAnalyticsTrackEnded`
482
- * pair — a consumer subscribes once and branches on `phase`.
483
- */
484
- EventCategory["PipelineAnalyticsTrackLifecycle"] = "pipeline-analytics.track-lifecycle";
485
- /**
486
- * @deprecated Superseded by {@link PipelineAnalyticsTrackLifecycle}
487
- * (`phase:'start'`). Kept as a soft alias — no known subscribers.
488
- */
489
- EventCategory["PipelineAnalyticsTrackStarted"] = "pipeline-analytics.track-started";
490
- /**
491
- * @deprecated Superseded by {@link PipelineAnalyticsTrackLifecycle}
492
- * (`phase:'end'`). Kept as a soft alias — no known subscribers.
493
- */
494
- EventCategory["PipelineAnalyticsTrackEnded"] = "pipeline-analytics.track-ended";
495
- EventCategory["PipelineAnalyticsDetectionEvent"] = "pipeline-analytics.detection-event";
496
- EventCategory["PipelineAnalyticsFrameTracked"] = "pipeline-analytics.frame-tracked";
497
- /**
498
- * Fired by `addon-post-analysis` whenever a gallery face row changes:
499
- * `kind:'buffered'` a new detected face was persisted, `'assigned'` /
500
- * `'unassigned'` its identity link changed, `'deleted'` the row was
501
- * removed. Telemetry semantics (D8): a lost event only delays a refresh,
502
- * never a correctness issue. Payload `PipelineAnalyticsFaceGalleryChangedPayload`.
503
- */
504
- EventCategory["PipelineAnalyticsFaceGalleryChanged"] = "pipeline-analytics.face-gallery-changed";
505
- /**
506
- * Fired by `addon-post-analysis` whenever a gallery plate row changes:
507
- * `kind:'buffered'` a new read was persisted (`PlateRecognizer.onTrackEnd`),
508
- * `'assigned'` / `'unassigned'` its vehicle link changed
509
- * (`PlateGalleryProvider`), `'deleted'` the row was removed. Telemetry
510
- * semantics (D8): a lost event only delays a refresh, never a correctness
511
- * issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
512
- */
513
- EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
514
- EventCategory["FrigateLiveEvent"] = "frigate.live-event";
515
- EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
516
- /**
517
- * Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
518
- * `stream.offline` fires after STREAM_STALE_TIMEOUT_MS without an encoded
519
- * packet on an active broker. `stream.online` fires on first packet
520
- * after a stale gap (or on initial first packet). Payload includes
521
- * the assigned camStreamId as `profileKey`.
522
- */
523
- EventCategory["StreamOnline"] = "stream.online";
524
- EventCategory["StreamOffline"] = "stream.offline";
525
- EventCategory["NetworkTunnelStarted"] = "network.tunnel.started";
526
- EventCategory["NetworkTunnelStopped"] = "network.tunnel.stopped";
527
- /** Fired by the `local-network` cap when the host's interface set
528
- * changes (new IP from DHCP, VPN connect, docker bridge added). */
529
- EventCategory["LocalNetworkChanged"] = "network.local.changed";
530
- /**
531
- * Fired by a `mesh-network` provider (Tailscale, …) when its
532
- * mesh-reachable host changes (join / leave / MagicDNS or 100.x IP
533
- * change). Lets `local-network` fold the mesh endpoint into its
534
- * connection-endpoint list without a cross-package import. Payload
535
- * carries the preferred host (`host: ''` = no longer reachable),
536
- * the hub port, and the scheme. Telemetry-grade (D8): consumers
537
- * pull-reconcile from the provider's `getStatus` on reconnect. */
538
- EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
539
- EventCategory["BackupCompleted"] = "backup.completed";
540
- EventCategory["BackupRestored"] = "backup.restored";
541
- EventCategory["NotificationDispatched"] = "notification.dispatched";
542
- EventCategory["NotificationFailed"] = "notification.failed";
543
- EventCategory["DeviceUpdated"] = "device.updated";
544
- /**
545
- * Transport-level connectivity. Emitted by the device driver when
546
- * the underlying control socket actually connects / disconnects
547
- * (Baichuan TCP, ONVIF probe response, RTSP DESCRIBE, …) — NOT for
548
- * power-state transitions on a battery camera. For battery wake /
549
- * doze cycles see `DeviceAwake` / `DeviceSleeping`.
550
- */
551
- EventCategory["DeviceOnline"] = "device.online";
552
- /**
553
- * Stream-broker watchdog — emitted when no encoded packet has been
554
- * received for STREAM_STALE_TIMEOUT_MS on an active broker (rtsp or
555
- * push). Paired with DeviceOnline which fires on first packet after
556
- * a stale gap. Payload: DeviceStreamHealthPayload.
557
- */
558
- EventCategory["DeviceOffline"] = "device.offline";
559
- /**
560
- * Battery cam woke up — physical power-state transition reported
561
- * by the device firmware. Distinct from `DeviceOnline` so a UI panel
562
- * watching power state doesn't flap on every UDP socket reconnect.
563
- */
564
- EventCategory["DeviceAwake"] = "device.awake";
565
- /**
566
- * Battery cam went to sleep. See `DeviceAwake`.
567
- */
568
- EventCategory["DeviceSleeping"] = "device.sleeping";
569
- EventCategory["RetentionCleanup"] = "retention.cleanup";
570
- /**
571
- * Legacy bulk-update progress snapshot (payload `BulkUpdateState`). No longer
572
- * emitted — F3 removed the coordinator that produced it; "Update all" now runs
573
- * as one lifecycle engine job (`AddonsJobProgress`/`AddonsJobLog`). Retained
574
- * (with `BulkUpdateState`) only to avoid regenerating the event maps; removed
575
- * in F4 once live bulk progress is re-implemented over the engine events.
576
- */
577
- EventCategory["AddonsBulkUpdateProgress"] = "addons.bulk-update-progress";
578
- EventCategory["AddonsJobProgress"] = "addons.job-progress";
579
- EventCategory["AddonsJobLog"] = "addons.job-log";
580
- /**
581
- * A container's child visibility toggled (hidden/shown). Emitted by the
582
- * `accessories` cap when a child device is hidden or revealed.
583
- * Payload: `{ deviceId, childDeviceId, hidden }`.
584
- */
585
- EventCategory["AccessoriesChildVisibilityChanged"] = "accessories.onChildVisibilityChanged";
586
- /**
587
- * A container's child set changed (children added/removed/reordered).
588
- * Payload: `{ deviceId, childDeviceIds, hiddenChildIds }`.
589
- */
590
- EventCategory["AccessoriesChanged"] = "accessories.onAccessoriesChanged";
591
- /**
592
- * Progress update from a running model conversion job.
593
- * Payload: `{ kind: 'model-convert', phase, sessionId?, pct?, detail? }`.
594
- * Emitted by `addon-model-studio` on the converting node.
595
- */
596
- EventCategory["ModelConvertProgress"] = "model-convert.progress";
597
- return EventCategory;
598
- }({});
599
- //#endregion
600
68
  //#region src/interfaces/config-ui.ts
601
69
  /** Predefined tabs with standard label, icon, and sort order.
602
70
  *
@@ -3914,4 +3382,4 @@ function sleepCancellable(ms, signal) {
3914
3382
  });
3915
3383
  }
3916
3384
  //#endregion
3917
- export { StreamSourceSchema as $, parseJsonUnknown as A, CamProfileSchema as B, asBoolean as C, asString as D, asNumber as E, readinessKey as F, DecodedFrameSchema as G, CamStreamResolutionSchema as H, scopeKey as I, FrameHandleSchema as J, EncodedPacketSchema as K, BrokerStatsSchema as L, ReadinessRegistry as M, ReadinessTimeoutError as N, parseJsonArray as O, emitDownForOwnedCaps as P, StreamSourceEntrySchema$1 as Q, BrokerStatusSchema as R, DeviceType as S, asJsonObject as T, CameraStreamSchema as U, CamStreamKindSchema as V, DecodedAudioChunkSchema as W, ProfileSlotSchema as X, ProfileRtspEntrySchema as Y, ProfileSlotStatusSchema as Z, resolveCapMount as _, collectHydratedFieldValues as _t, viewerUiCapability as a, makeSourceBrokerId as at, DeviceFeature as b, EventCategory as bt, createLazyTrpcSource as c, BaseAddon as ct, DEVICE_SETTINGS_CONTRIBUTION_METHODS as d, createEvent as dt, SubscribeAudioChunksInputSchema as et, DEVICE_STATUS_METHOD as f, emitReadiness as ft, method as g, collectHydratedFieldEntries as gt, isDeviceConfigCap as h, WELL_KNOWN_TAB_MAP as ht, deviceOpsCapability as i, makeProfileBrokerId as it, DATAPLANE_SECRET_HEADER as j, parseJsonObject as k, createMirrorSource as l, normalizeAddonInitResult as lt, expandCapMethods as m, WELL_KNOWN_TABS as mt, sleepCancellable as n, SubscribeFramesInputSchema as nt, adminUiCapability as o, parseProfileBrokerId as ot, event as p, isEvent as pt, FrameHandleFormatSchema as q, RawStateResultSchema as r, SubscribeFramesResultSchema as rt, createDeviceProxy as s, selectAssignedProfileSlots as st, sleep as t, SubscribeAudioChunksResultSchema as tt, createSliceHandle as u, createDurableState as ut, systemMethod as v, hydrateSchema as vt, asJsonArray as w, DeviceRole as x, DisposerChain as xt, ChargingStatus as y, resolveHydratedFieldValue as yt, CAM_PROFILE_ORDER as z };
3385
+ export { StreamSourceSchema as $, parseJsonUnknown as A, CamProfileSchema as B, asBoolean as C, asString as D, asNumber as E, readinessKey as F, DecodedFrameSchema as G, CamStreamResolutionSchema as H, scopeKey as I, FrameHandleSchema as J, EncodedPacketSchema as K, BrokerStatsSchema as L, ReadinessRegistry as M, ReadinessTimeoutError as N, parseJsonArray as O, emitDownForOwnedCaps as P, StreamSourceEntrySchema$1 as Q, BrokerStatusSchema as R, DeviceType as S, asJsonObject as T, CameraStreamSchema as U, CamStreamKindSchema as V, DecodedAudioChunkSchema as W, ProfileSlotSchema as X, ProfileRtspEntrySchema as Y, ProfileSlotStatusSchema as Z, resolveCapMount as _, collectHydratedFieldValues as _t, viewerUiCapability as a, makeSourceBrokerId as at, DeviceFeature as b, DisposerChain as bt, createLazyTrpcSource as c, BaseAddon as ct, DEVICE_SETTINGS_CONTRIBUTION_METHODS as d, createEvent as dt, SubscribeAudioChunksInputSchema as et, DEVICE_STATUS_METHOD as f, emitReadiness as ft, method as g, collectHydratedFieldEntries as gt, isDeviceConfigCap as h, WELL_KNOWN_TAB_MAP as ht, deviceOpsCapability as i, makeProfileBrokerId as it, DATAPLANE_SECRET_HEADER as j, parseJsonObject as k, createMirrorSource as l, normalizeAddonInitResult as lt, expandCapMethods as m, WELL_KNOWN_TABS as mt, sleepCancellable as n, SubscribeFramesInputSchema as nt, adminUiCapability as o, parseProfileBrokerId as ot, event as p, isEvent as pt, FrameHandleFormatSchema as q, RawStateResultSchema as r, SubscribeFramesResultSchema as rt, createDeviceProxy as s, selectAssignedProfileSlots as st, sleep as t, SubscribeAudioChunksResultSchema as tt, createSliceHandle as u, createDurableState as ut, systemMethod as v, hydrateSchema as vt, asJsonArray as w, DeviceRole as x, ChargingStatus as y, resolveHydratedFieldValue as yt, CAM_PROFILE_ORDER as z };