@camstack/types 1.2.602 → 1.2.604

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/CHANGELOG.md CHANGED
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.604] - 2026-11-20
11
+
12
+ ### Changed
13
+
14
+ - Energy systems now record the storage capacity next to the other storage series
15
+
16
+ ## [1.2.603] - 2026-11-19
17
+
18
+ ### Changed
19
+
20
+ - Unit preparation no longer throws on a command step with no action chosen yet
21
+ - Every event category now has a catalogue entry (group, English and Italian label, noise and deprecated flags); the event-ring deny list is derived from it
22
+
10
23
  ## [1.2.602] - 2026-11-19
11
24
 
12
25
  ### Changed
@@ -268,6 +268,12 @@ export declare const energySystemCapability: {
268
268
  readonly deadband: 0.05;
269
269
  readonly displayName: 'Stored energy';
270
270
  };
271
+ readonly 'storage.capacityKwh': {
272
+ readonly kind: 'gauge';
273
+ readonly unit: 'kWh';
274
+ readonly deadband: 0.1;
275
+ readonly displayName: 'Storage capacity';
276
+ };
271
277
  readonly 'storage.powerW': {
272
278
  readonly group: 'power-flow';
273
279
  readonly kind: 'gauge';
@@ -0,0 +1,37 @@
1
+ /**
2
+ * The event-category catalogue: what an operator-facing surface (a picker, the
3
+ * Logs → Events section, the automation `device-event` row) needs to know about
4
+ * each {@link EventCategory}.
5
+ *
6
+ * `EVENT_CATEGORY_CATALOG` is a `Record<EventCategory, …>`, so it is TOTAL over
7
+ * the enum: a category without an entry here does not compile. That is the
8
+ * whole point — a new category cannot ship unlabelled, ungrouped and unclassified
9
+ * as noise. The kernel's ring-buffer deny list is derived from `noise`, so the
10
+ * broker's "do not retain" set cannot drift from the catalogue.
11
+ *
12
+ * Descriptions are not catalogued yet; a label is the shortest thing a picker
13
+ * can show next to the raw id.
14
+ */
15
+ import { EventCategory } from './event-category.js';
16
+ export type EventCategoryGroup = 'system' | 'addons' | 'devices' | 'integrations' | 'recording' | 'storage' | 'detection' | 'pipeline' | 'enrichment' | 'streams' | 'network' | 'agents' | 'notifications' | 'backup' | 'metrics';
17
+ /** Display order of the groups in a picker. */
18
+ export declare const EVENT_CATEGORY_GROUPS: readonly EventCategoryGroup[];
19
+ export interface EventCategoryLabel {
20
+ readonly en: string;
21
+ readonly it: string;
22
+ }
23
+ export interface EventCategoryEntry {
24
+ readonly group: EventCategoryGroup;
25
+ readonly label: EventCategoryLabel;
26
+ /** High-frequency telemetry: hidden from live views by default and never retained in the event ring. */
27
+ readonly noise: boolean;
28
+ /** Superseded by another category; still emitted or kept as an alias, never offered for new use. */
29
+ readonly deprecated: boolean;
30
+ }
31
+ export declare const EVENT_CATEGORY_CATALOG: Readonly<Record<EventCategory, EventCategoryEntry>>;
32
+ /** Every distinct category value of the enum. */
33
+ export declare function catalogedEventCategories(): readonly EventCategory[];
34
+ /** The raw ids a picker may offer: public (not owner-only), not deprecated. Sorted. */
35
+ export declare function offerableEventCategories(): readonly EventCategory[];
36
+ /** Categories marked `noise`: what the ring-buffer deny list and live views consume. Sorted. */
37
+ export declare function noiseEventCategories(): readonly EventCategory[];
@@ -1,2 +1,3 @@
1
1
  export { EventCategory } from './event-category.js';
2
2
  export { EventSourceType } from './event-source-type.js';
3
+ export { noiseEventCategories } from './event-category-catalog.js';
package/dist/enums.js CHANGED
@@ -1,5 +1,259 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_event_category = require("./event-category-CMA0-jGW.js");
3
+ //#region src/enums/event-category-catalog.ts
4
+ /**
5
+ * The event-category catalogue: what an operator-facing surface (a picker, the
6
+ * Logs → Events section, the automation `device-event` row) needs to know about
7
+ * each {@link EventCategory}.
8
+ *
9
+ * `EVENT_CATEGORY_CATALOG` is a `Record<EventCategory, …>`, so it is TOTAL over
10
+ * the enum: a category without an entry here does not compile. That is the
11
+ * whole point — a new category cannot ship unlabelled, ungrouped and unclassified
12
+ * as noise. The kernel's ring-buffer deny list is derived from `noise`, so the
13
+ * broker's "do not retain" set cannot drift from the catalogue.
14
+ *
15
+ * Descriptions are not catalogued yet; a label is the shortest thing a picker
16
+ * can show next to the raw id.
17
+ */
18
+ /** Display order of the groups in a picker. */
19
+ var EVENT_CATEGORY_GROUPS = [
20
+ "devices",
21
+ "detection",
22
+ "recording",
23
+ "storage",
24
+ "streams",
25
+ "pipeline",
26
+ "enrichment",
27
+ "notifications",
28
+ "integrations",
29
+ "addons",
30
+ "agents",
31
+ "network",
32
+ "backup",
33
+ "system",
34
+ "metrics"
35
+ ];
36
+ function e(group, en, it, flags = {}) {
37
+ return {
38
+ group,
39
+ label: {
40
+ en,
41
+ it
42
+ },
43
+ noise: flags.noise === true,
44
+ deprecated: flags.deprecated === true
45
+ };
46
+ }
47
+ var N = { noise: true };
48
+ var EVENT_CATEGORY_CATALOG = {
49
+ [require_event_category.EventCategory.SystemBoot]: e("system", "System booted", "Sistema avviato"),
50
+ [require_event_category.EventCategory.SystemAddonsReady]: e("system", "Addons ready", "Addon pronti"),
51
+ [require_event_category.EventCategory.SystemRestarting]: e("system", "System restarting", "Sistema in riavvio"),
52
+ [require_event_category.EventCategory.SystemRestartCompleted]: e("system", "Restart completed", "Riavvio completato"),
53
+ [require_event_category.EventCategory.SystemTlsCertChanged]: e("system", "TLS certificate changed", "Certificato TLS cambiato"),
54
+ [require_event_category.EventCategory.UpdateAvailable]: e("system", "Update available", "Aggiornamento disponibile"),
55
+ [require_event_category.EventCategory.SystemReadyState]: e("system", "Readiness changed", "Stato di prontezza cambiato"),
56
+ [require_event_category.EventCategory.AddonStarted]: e("addons", "Addon started", "Addon avviato"),
57
+ [require_event_category.EventCategory.AddonStopped]: e("addons", "Addon stopped", "Addon fermato"),
58
+ [require_event_category.EventCategory.AddonRestarted]: e("addons", "Addon restarted", "Addon riavviato"),
59
+ [require_event_category.EventCategory.AddonUpdated]: e("addons", "Addon updated", "Addon aggiornato"),
60
+ [require_event_category.EventCategory.AddonInstalled]: e("addons", "Addon installed", "Addon installato"),
61
+ [require_event_category.EventCategory.AddonUninstalled]: e("addons", "Addon uninstalled", "Addon disinstallato"),
62
+ [require_event_category.EventCategory.AddonCrashed]: e("addons", "Addon crashed", "Addon in errore fatale"),
63
+ [require_event_category.EventCategory.AddonRunnerFailed]: e("addons", "Runner failed for good", "Runner fallito definitivamente"),
64
+ [require_event_category.EventCategory.AddonRunnerRefused]: e("addons", "Runner refused", "Runner rifiutato"),
65
+ [require_event_category.EventCategory.ProcessStateChanged]: e("addons", "Process state changed", "Stato del processo cambiato"),
66
+ [require_event_category.EventCategory.SystemRunnerCheck]: e("system", "Runner check", "Verifica dei runner"),
67
+ [require_event_category.EventCategory.AlertEpisode]: e("system", "Alert episode", "Episodio di allarme"),
68
+ [require_event_category.EventCategory.AddonError]: e("addons", "Addon error", "Errore di un addon"),
69
+ [require_event_category.EventCategory.AddonPageReady]: e("addons", "Addon page ready", "Pagina addon pronta"),
70
+ [require_event_category.EventCategory.AddonWidgetReady]: e("addons", "Addon widget ready", "Widget addon pronto"),
71
+ [require_event_category.EventCategory.AddonLoadFailed]: e("addons", "Addon failed to load", "Caricamento addon fallito"),
72
+ [require_event_category.EventCategory.KeychainChanged]: e("system", "Keychain changed", "Portachiavi modificato"),
73
+ [require_event_category.EventCategory.AddonLoadRecovered]: e("addons", "Addon load recovered", "Caricamento addon ripristinato"),
74
+ [require_event_category.EventCategory.AddonUnsupportedVersion]: e("addons", "Addon version unsupported", "Versione addon non supportata"),
75
+ [require_event_category.EventCategory.AddonUnsupportedResolved]: e("addons", "Unsupported addon resolved", "Addon non supportato risolto"),
76
+ [require_event_category.EventCategory.AddonRetryScheduled]: e("addons", "Addon retry scheduled", "Nuovo tentativo addon pianificato"),
77
+ [require_event_category.EventCategory.SystemLivenessFailed]: e("system", "Liveness check failed", "Controllo di attività fallito"),
78
+ [require_event_category.EventCategory.SystemLivenessRecovered]: e("system", "Liveness recovered", "Controllo di attività ripristinato"),
79
+ [require_event_category.EventCategory.AddonRetryAttempting]: e("addons", "Addon retry running", "Nuovo tentativo addon in corso"),
80
+ [require_event_category.EventCategory.DeviceRegistered]: e("devices", "Device registered", "Dispositivo registrato"),
81
+ [require_event_category.EventCategory.DeviceUnregistered]: e("devices", "Device removed", "Dispositivo rimosso"),
82
+ [require_event_category.EventCategory.DeviceEnabled]: e("devices", "Device enabled", "Dispositivo abilitato"),
83
+ [require_event_category.EventCategory.DeviceDisabled]: e("devices", "Device disabled", "Dispositivo disabilitato"),
84
+ [require_event_category.EventCategory.DeviceSettingsUpdated]: e("devices", "Device settings updated", "Impostazioni dispositivo aggiornate"),
85
+ [require_event_category.EventCategory.DeviceBindingsChanged]: e("devices", "Device bindings changed", "Collegamenti dispositivo cambiati"),
86
+ [require_event_category.EventCategory.DeviceMetaChanged]: e("devices", "Device details changed", "Dettagli dispositivo cambiati"),
87
+ [require_event_category.EventCategory.DeviceSourceInfoChanged]: e("devices", "Device source info changed", "Info sorgente dispositivo cambiate"),
88
+ [require_event_category.EventCategory.DeviceStreamsRegistered]: e("streams", "Device streams registered", "Stream del dispositivo registrati"),
89
+ [require_event_category.EventCategory.DeviceProvisioned]: e("devices", "Device provisioned", "Dispositivo configurato"),
90
+ [require_event_category.EventCategory.DeviceReady]: e("devices", "Device ready", "Dispositivo pronto"),
91
+ [require_event_category.EventCategory.IdentityLinkCreated]: e("integrations", "Identity linked", "Identità collegata"),
92
+ [require_event_category.EventCategory.IdentityLinkLost]: e("integrations", "Identity link lost", "Collegamento identità perso"),
93
+ [require_event_category.EventCategory.IntegrationEnabled]: e("integrations", "Integration enabled", "Integrazione abilitata"),
94
+ [require_event_category.EventCategory.IntegrationDisabled]: e("integrations", "Integration disabled", "Integrazione disabilitata"),
95
+ [require_event_category.EventCategory.IntegrationDeleted]: e("integrations", "Integration deleted", "Integrazione eliminata"),
96
+ [require_event_category.EventCategory.BrokerStatusChanged]: e("integrations", "Broker status changed", "Stato del broker cambiato"),
97
+ [require_event_category.EventCategory.BrokerMessage]: e("integrations", "Broker message", "Messaggio del broker", N),
98
+ [require_event_category.EventCategory.ProviderStarted]: e("integrations", "Provider started", "Provider avviato"),
99
+ [require_event_category.EventCategory.ProviderStopped]: e("integrations", "Provider stopped", "Provider fermato"),
100
+ [require_event_category.EventCategory.ProcessCrashed]: e("addons", "Process crashed", "Processo andato in crash"),
101
+ [require_event_category.EventCategory.ProcessRestartScheduled]: e("addons", "Process restart scheduled", "Riavvio del processo pianificato"),
102
+ [require_event_category.EventCategory.ProcessRestarted]: e("addons", "Process restarted", "Processo riavviato"),
103
+ [require_event_category.EventCategory.StorageLocationsChanged]: e("storage", "Storage locations changed", "Posizioni di archiviazione cambiate"),
104
+ [require_event_category.EventCategory.RecordingStarted]: e("recording", "Recording started", "Registrazione avviata"),
105
+ [require_event_category.EventCategory.RecordingStopped]: e("recording", "Recording stopped", "Registrazione fermata"),
106
+ [require_event_category.EventCategory.RecordingError]: e("recording", "Recording error", "Errore di registrazione"),
107
+ [require_event_category.EventCategory.RecordingHealthDegraded]: e("recording", "Recording degraded", "Registrazione degradata"),
108
+ [require_event_category.EventCategory.RecordingHealthStalled]: e("recording", "Recording stalled", "Registrazione bloccata"),
109
+ [require_event_category.EventCategory.RecordingHealthOk]: e("recording", "Recording healthy", "Registrazione regolare"),
110
+ [require_event_category.EventCategory.RecordingStorageCritical]: e("recording", "Recording storage critical", "Spazio di registrazione critico"),
111
+ [require_event_category.EventCategory.StorageLocationLow]: e("storage", "Storage location low", "Spazio in esaurimento"),
112
+ [require_event_category.EventCategory.StorageLocationCritical]: e("storage", "Storage location critical", "Spazio critico"),
113
+ [require_event_category.EventCategory.StorageLocationOk]: e("storage", "Storage location recovered", "Spazio tornato regolare"),
114
+ [require_event_category.EventCategory.StorageDrainProgress]: e("storage", "Drain progress", "Avanzamento dello svuotamento"),
115
+ [require_event_category.EventCategory.StorageDrainComplete]: e("storage", "Drain complete", "Svuotamento completato"),
116
+ [require_event_category.EventCategory.RecordingSegmentWritten]: e("recording", "Segment written", "Segmento scritto"),
117
+ [require_event_category.EventCategory.RecordingPolicyFallback]: e("recording", "Recording policy fallback", "Politica di registrazione di ripiego"),
118
+ [require_event_category.EventCategory.RecordingRetentionCompleted]: e("recording", "Retention completed", "Pulizia completata"),
119
+ [require_event_category.EventCategory.RecordingExportProgress]: e("recording", "Export progress", "Avanzamento esportazione"),
120
+ [require_event_category.EventCategory.RecordingExportCompleted]: e("recording", "Export completed", "Esportazione completata"),
121
+ [require_event_category.EventCategory.RecordingExportFailed]: e("recording", "Export failed", "Esportazione fallita"),
122
+ [require_event_category.EventCategory.DetectionEvent]: e("detection", "Detection", "Rilevamento"),
123
+ [require_event_category.EventCategory.SessionTrackNew]: e("detection", "Session track started", "Nuova traccia di sessione"),
124
+ [require_event_category.EventCategory.SessionTrackExpired]: e("detection", "Session track expired", "Traccia di sessione scaduta"),
125
+ [require_event_category.EventCategory.BenchmarkProgress]: e("metrics", "Benchmark progress", "Avanzamento benchmark", N),
126
+ [require_event_category.EventCategory.PlatformProbePhase]: e("metrics", "Platform probe phase", "Fase di analisi piattaforma", N),
127
+ [require_event_category.EventCategory.PipelineProgress]: e("pipeline", "Pipeline progress", "Avanzamento pipeline", N),
128
+ [require_event_category.EventCategory.PipelineTrace]: e("pipeline", "Pipeline trace", "Traccia pipeline", N),
129
+ [require_event_category.EventCategory.PipelineInferenceResult]: e("pipeline", "Inference result", "Risultato di inferenza", N),
130
+ [require_event_category.EventCategory.PipelineCameraAssigned]: e("pipeline", "Camera assigned to pipeline", "Camera assegnata alla pipeline"),
131
+ [require_event_category.EventCategory.PipelineCameraUnassigned]: e("pipeline", "Camera unassigned from pipeline", "Camera rimossa dalla pipeline"),
132
+ [require_event_category.EventCategory.PipelineNodeInferenceUnavailable]: e("pipeline", "Node inference unavailable", "Inferenza del nodo non disponibile"),
133
+ [require_event_category.EventCategory.PipelineDetectionBlind]: e("pipeline", "Detection blind", "Rilevamento cieco"),
134
+ [require_event_category.EventCategory.PipelineMotionNoisy]: e("pipeline", "Motion too noisy", "Movimento troppo disturbato"),
135
+ [require_event_category.EventCategory.PipelineMotionCalm]: e("pipeline", "Motion calm again", "Movimento di nuovo calmo"),
136
+ [require_event_category.EventCategory.PipelinePackageLlmSilent]: e("pipeline", "Package check silent", "Verifica pacchi senza risposta"),
137
+ [require_event_category.EventCategory.PipelinePackageLlmAnswered]: e("pipeline", "Package check answered", "Verifica pacchi con risposta"),
138
+ [require_event_category.EventCategory.PipelineCameraUpdated]: e("pipeline", "Pipeline camera updated", "Camera della pipeline aggiornata"),
139
+ [require_event_category.EventCategory.PipelineIngestOwnerChanged]: e("pipeline", "Ingest owner changed", "Responsabile dell’acquisizione cambiato"),
140
+ [require_event_category.EventCategory.PipelineRunnerLoadSnapshot]: e("metrics", "Runner load snapshot", "Carico dei runner", N),
141
+ [require_event_category.EventCategory.PipelineCameraMetricsSnapshot]: e("metrics", "Camera metrics snapshot", "Metriche delle camere", N),
142
+ [require_event_category.EventCategory.StreamBrokerMetricsSnapshot]: e("metrics", "Stream broker metrics", "Metriche dello stream broker", N),
143
+ [require_event_category.EventCategory.StreamBrokerOnCamStreamDemand]: e("streams", "Stream requested", "Stream richiesto"),
144
+ [require_event_category.EventCategory.StreamBrokerOnCamStreamIdle]: e("streams", "Stream idle", "Stream inattivo"),
145
+ [require_event_category.EventCategory.StreamBrokerOnRequestStreamSourceRefresh]: e("streams", "Stream source refresh requested", "Aggiornamento sorgente stream richiesto"),
146
+ [require_event_category.EventCategory.StreamParamsChanged]: e("streams", "Stream parameters changed", "Parametri dello stream cambiati"),
147
+ [require_event_category.EventCategory.DeviceStateChanged]: e("devices", "Device state changed", "Stato dispositivo cambiato"),
148
+ [require_event_category.EventCategory.DeviceCommandSettled]: e("devices", "Device command settled", "Comando al dispositivo concluso"),
149
+ [require_event_category.EventCategory.DeviceNativeShadowChanged]: e("devices", "Device native state changed", "Stato nativo del dispositivo cambiato"),
150
+ [require_event_category.EventCategory.ZoneAnalyticsOccupancyChanged]: e("detection", "Zone occupancy changed", "Occupazione zona cambiata"),
151
+ [require_event_category.EventCategory.BatteryOnStatusChanged]: e("devices", "Battery status changed", "Stato batteria cambiato"),
152
+ [require_event_category.EventCategory.NetworkLinkOnStatusChanged]: e("devices", "Network link status changed", "Stato del collegamento di rete cambiato"),
153
+ [require_event_category.EventCategory.BatteryOnWakeStarted]: e("devices", "Battery device woke up", "Dispositivo a batteria attivato"),
154
+ [require_event_category.EventCategory.DoorbellOnPressed]: e("devices", "Doorbell pressed", "Campanello premuto"),
155
+ [require_event_category.EventCategory.RunningStarted]: e("devices", "Run started", "Esecuzione avviata"),
156
+ [require_event_category.EventCategory.RunningFinished]: e("devices", "Run finished", "Esecuzione terminata"),
157
+ [require_event_category.EventCategory.WorkloadStarted]: e("devices", "Workload started", "Carico di lavoro avviato"),
158
+ [require_event_category.EventCategory.WorkloadStopped]: e("devices", "Workload stopped", "Carico di lavoro fermato"),
159
+ [require_event_category.EventCategory.WorkloadCrashed]: e("devices", "Workload crashed", "Carico di lavoro in crash"),
160
+ [require_event_category.EventCategory.WorkloadRecovered]: e("devices", "Workload recovered", "Carico di lavoro ripristinato"),
161
+ [require_event_category.EventCategory.DeviceRunOpened]: e("devices", "Device run opened", "Ciclo del dispositivo aperto"),
162
+ [require_event_category.EventCategory.DeviceRunClosed]: e("devices", "Device run closed", "Ciclo del dispositivo chiuso"),
163
+ [require_event_category.EventCategory.EventEmitted]: e("devices", "Device event", "Evento del dispositivo"),
164
+ [require_event_category.EventCategory.PipelineEngineMetricsSnapshot]: e("metrics", "Engine metrics snapshot", "Metriche dei motori", N),
165
+ [require_event_category.EventCategory.PipelineEngineProvisioning]: e("pipeline", "Engine provisioning", "Preparazione del motore"),
166
+ [require_event_category.EventCategory.ClusterTopologySnapshot]: e("metrics", "Cluster topology snapshot", "Topologia del cluster", N),
167
+ [require_event_category.EventCategory.MetricsNodeResourcesSnapshot]: e("metrics", "Node resources snapshot", "Risorse dei nodi", N),
168
+ [require_event_category.EventCategory.MetricsNodeProcessesSnapshot]: e("metrics", "Node processes snapshot", "Processi dei nodi", N),
169
+ [require_event_category.EventCategory.CapabilityBindingChanged]: e("system", "Capability binding changed", "Collegamento di capability cambiato", N),
170
+ [require_event_category.EventCategory.ModelDownloadProgress]: e("pipeline", "Model download progress", "Avanzamento download modello", N),
171
+ [require_event_category.EventCategory.AgentRegistered]: e("agents", "Agent registered", "Agent registrato"),
172
+ [require_event_category.EventCategory.AgentUnregistered]: e("agents", "Agent removed", "Agent rimosso"),
173
+ [require_event_category.EventCategory.AgentOnline]: e("agents", "Agent online", "Agent online"),
174
+ [require_event_category.EventCategory.AgentOffline]: e("agents", "Agent offline", "Agent offline"),
175
+ [require_event_category.EventCategory.WorkerOnline]: e("agents", "Worker online", "Worker online"),
176
+ [require_event_category.EventCategory.WorkerOffline]: e("agents", "Worker offline", "Worker offline"),
177
+ [require_event_category.EventCategory.AgentTaskDispatched]: e("agents", "Agent task dispatched", "Attività inviata a un agent"),
178
+ [require_event_category.EventCategory.AgentTaskAssigned]: e("agents", "Agent task assigned", "Attività assegnata a un agent"),
179
+ [require_event_category.EventCategory.AgentTrpcConnected]: e("agents", "Agent API connected", "API dell’agent connessa"),
180
+ [require_event_category.EventCategory.AgentWsConnected]: e("agents", "Agent socket connected", "Socket dell’agent connesso"),
181
+ [require_event_category.EventCategory.AgentWsDisconnected]: e("agents", "Agent socket disconnected", "Socket dell’agent disconnesso"),
182
+ [require_event_category.EventCategory.AgentBackupActivated]: e("agents", "Agent backup activated", "Backup dell’agent attivato"),
183
+ [require_event_category.EventCategory.OrchestrationSettingsUpdated]: e("pipeline", "Orchestration settings updated", "Impostazioni di orchestrazione aggiornate"),
184
+ [require_event_category.EventCategory.MotionAnalysis]: e("detection", "Motion analysis", "Analisi del movimento", N),
185
+ [require_event_category.EventCategory.MotionZonesRaw]: e("detection", "Raw motion zones", "Zone di movimento grezze", N),
186
+ [require_event_category.EventCategory.MotionOnMotionChanged]: e("detection", "Motion changed", "Movimento cambiato", N),
187
+ [require_event_category.EventCategory.DetectionResult]: e("detection", "Detection result", "Risultato del rilevamento", N),
188
+ [require_event_category.EventCategory.DetectionRaw]: e("detection", "Raw detection", "Rilevamento grezzo"),
189
+ [require_event_category.EventCategory.DetectionCameraNative]: e("detection", "Camera native detection", "Rilevamento nativo della camera"),
190
+ [require_event_category.EventCategory.PipelineAudioInferenceResult]: e("pipeline", "Audio inference result", "Risultato di inferenza audio", N),
191
+ [require_event_category.EventCategory.DetectionPhaseTransition]: e("detection", "Detection phase changed", "Fase di rilevamento cambiata"),
192
+ [require_event_category.EventCategory.ProviderMotion]: e("detection", "Camera raw motion", "Movimento grezzo della camera", N),
193
+ [require_event_category.EventCategory.ProviderDetection]: e("detection", "Camera onboard detection", "Rilevamento a bordo camera"),
194
+ [require_event_category.EventCategory.EnrichmentEmbeddingStored]: e("enrichment", "Embedding stored", "Embedding salvato"),
195
+ [require_event_category.EventCategory.EnrichmentSceneStateChanged]: e("enrichment", "Scene state changed", "Stato della scena cambiato"),
196
+ [require_event_category.EventCategory.EnrichmentActivitySummary]: e("enrichment", "Activity summary", "Riepilogo dell’attività"),
197
+ [require_event_category.EventCategory.PipelineAnalyticsTrackLifecycle]: e("detection", "Track lifecycle", "Ciclo di vita della traccia"),
198
+ [require_event_category.EventCategory.PipelineAnalyticsTrackStarted]: e("detection", "Track started", "Traccia iniziata", {
199
+ noise: true,
200
+ deprecated: true
201
+ }),
202
+ [require_event_category.EventCategory.PipelineAnalyticsTrackEnded]: e("detection", "Track ended", "Traccia terminata", {
203
+ noise: true,
204
+ deprecated: true
205
+ }),
206
+ [require_event_category.EventCategory.PipelineAnalyticsDetectionEvent]: e("detection", "Analytics detection", "Rilevamento analitico", N),
207
+ [require_event_category.EventCategory.PipelineAnalyticsFrameTracked]: e("detection", "Frame tracked", "Fotogramma tracciato", N),
208
+ [require_event_category.EventCategory.PipelineAnalyticsStationaryChanged]: e("detection", "Stationary object changed", "Oggetto fermo cambiato"),
209
+ [require_event_category.EventCategory.PipelineAnalyticsPackageDelivered]: e("detection", "Package delivered", "Pacco consegnato"),
210
+ [require_event_category.EventCategory.PipelineAnalyticsPackagePickedUp]: e("detection", "Package picked up", "Pacco ritirato"),
211
+ [require_event_category.EventCategory.PipelineAnalyticsFaceGalleryChanged]: e("enrichment", "Face gallery changed", "Galleria volti cambiata"),
212
+ [require_event_category.EventCategory.PipelineAnalyticsPlateGalleryChanged]: e("enrichment", "Plate gallery changed", "Galleria targhe cambiata"),
213
+ [require_event_category.EventCategory.CameraStreamsProfileSlotsChanged]: e("streams", "Stream profile slots changed", "Slot dei profili stream cambiati"),
214
+ [require_event_category.EventCategory.StreamOnline]: e("streams", "Stream online", "Stream online"),
215
+ [require_event_category.EventCategory.StreamOffline]: e("streams", "Stream offline", "Stream offline"),
216
+ [require_event_category.EventCategory.NetworkTunnelStarted]: e("network", "Tunnel started", "Tunnel avviato"),
217
+ [require_event_category.EventCategory.NetworkTunnelStopped]: e("network", "Tunnel stopped", "Tunnel fermato"),
218
+ [require_event_category.EventCategory.LocalNetworkChanged]: e("network", "Local network changed", "Rete locale cambiata"),
219
+ [require_event_category.EventCategory.MeshNetworkChanged]: e("network", "Mesh network changed", "Rete mesh cambiata"),
220
+ [require_event_category.EventCategory.BackupCompleted]: e("backup", "Backup completed", "Backup completato"),
221
+ [require_event_category.EventCategory.BackupRunCompleted]: e("backup", "Backup run completed", "Esecuzione backup completata"),
222
+ [require_event_category.EventCategory.BackupRestored]: e("backup", "Backup restored", "Backup ripristinato"),
223
+ [require_event_category.EventCategory.NotificationDispatched]: e("notifications", "Notification sent", "Notifica inviata"),
224
+ [require_event_category.EventCategory.NotificationFailed]: e("notifications", "Notification failed", "Notifica non riuscita"),
225
+ [require_event_category.EventCategory.NotificationRuleBroken]: e("notifications", "Notification rule broken", "Regola di notifica non valida"),
226
+ [require_event_category.EventCategory.NotificationRuleRepaired]: e("notifications", "Notification rule repaired", "Regola di notifica riparata"),
227
+ [require_event_category.EventCategory.MigrationFailed]: e("system", "Migration failed", "Migrazione fallita"),
228
+ [require_event_category.EventCategory.MigrationApplied]: e("system", "Migration applied", "Migrazione applicata"),
229
+ [require_event_category.EventCategory.DeviceUpdated]: e("devices", "Device updated", "Dispositivo aggiornato"),
230
+ [require_event_category.EventCategory.DeviceOnline]: e("devices", "Device online", "Dispositivo online"),
231
+ [require_event_category.EventCategory.DeviceOffline]: e("devices", "Device offline", "Dispositivo offline"),
232
+ [require_event_category.EventCategory.DeviceAwake]: e("devices", "Device awake", "Dispositivo attivo"),
233
+ [require_event_category.EventCategory.DeviceSleeping]: e("devices", "Device sleeping", "Dispositivo in standby"),
234
+ [require_event_category.EventCategory.RetentionCleanup]: e("storage", "Retention cleanup", "Pulizia della conservazione"),
235
+ [require_event_category.EventCategory.AddonsBulkUpdateProgress]: e("addons", "Bulk update progress", "Avanzamento aggiornamento multiplo"),
236
+ [require_event_category.EventCategory.AddonsJobProgress]: e("addons", "Addon job progress", "Avanzamento attività addon"),
237
+ [require_event_category.EventCategory.AddonsJobLog]: e("addons", "Addon job log", "Log attività addon"),
238
+ [require_event_category.EventCategory.AccessoriesChildVisibilityChanged]: e("devices", "Child visibility changed", "Visibilità del dispositivo figlio cambiata"),
239
+ [require_event_category.EventCategory.AccessoriesChanged]: e("devices", "Accessories changed", "Accessori cambiati"),
240
+ [require_event_category.EventCategory.ActionsRunChanged]: e("system", "Action run changed", "Esecuzione dell’azione cambiata"),
241
+ [require_event_category.EventCategory.ModelConvertProgress]: e("pipeline", "Model conversion progress", "Avanzamento conversione modello")
242
+ };
243
+ /** Every distinct category value of the enum. */
244
+ function catalogedEventCategories() {
245
+ const all = Object.values(require_event_category.EventCategory).filter((value) => typeof value === "string");
246
+ return [...new Set(all)];
247
+ }
248
+ /** The raw ids a picker may offer: public (not owner-only), not deprecated. Sorted. */
249
+ function offerableEventCategories() {
250
+ return catalogedEventCategories().filter((c) => !require_event_category.isOwnerOnlyEventCategory(c) && !EVENT_CATEGORY_CATALOG[c].deprecated).toSorted();
251
+ }
252
+ /** Categories marked `noise`: what the ring-buffer deny list and live views consume. Sorted. */
253
+ function noiseEventCategories() {
254
+ return catalogedEventCategories().filter((c) => EVENT_CATEGORY_CATALOG[c].noise).toSorted();
255
+ }
256
+ //#endregion
3
257
  //#region src/enums/event-source-type.ts
4
258
  var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
5
259
  EventSourceType["Addon"] = "addon";
@@ -10,6 +264,12 @@ var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
10
264
  return EventSourceType;
11
265
  }({});
12
266
  //#endregion
267
+ exports.EVENT_CATEGORY_CATALOG = EVENT_CATEGORY_CATALOG;
268
+ exports.EVENT_CATEGORY_GROUPS = EVENT_CATEGORY_GROUPS;
13
269
  exports.EventCategory = require_event_category.EventCategory;
14
270
  exports.EventSourceType = EventSourceType;
15
271
  exports.EventSourceType$1 = EventSourceType;
272
+ exports.catalogedEventCategories = catalogedEventCategories;
273
+ exports.noiseEventCategories = noiseEventCategories;
274
+ exports.noiseEventCategories$1 = noiseEventCategories;
275
+ exports.offerableEventCategories = offerableEventCategories;