@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/dist/enums.mjs CHANGED
@@ -1,4 +1,258 @@
1
- import { t as EventCategory } from "./event-category-7P4A3bYA.mjs";
1
+ import { r as isOwnerOnlyEventCategory, t as EventCategory } from "./event-category-7P4A3bYA.mjs";
2
+ //#region src/enums/event-category-catalog.ts
3
+ /**
4
+ * The event-category catalogue: what an operator-facing surface (a picker, the
5
+ * Logs → Events section, the automation `device-event` row) needs to know about
6
+ * each {@link EventCategory}.
7
+ *
8
+ * `EVENT_CATEGORY_CATALOG` is a `Record<EventCategory, …>`, so it is TOTAL over
9
+ * the enum: a category without an entry here does not compile. That is the
10
+ * whole point — a new category cannot ship unlabelled, ungrouped and unclassified
11
+ * as noise. The kernel's ring-buffer deny list is derived from `noise`, so the
12
+ * broker's "do not retain" set cannot drift from the catalogue.
13
+ *
14
+ * Descriptions are not catalogued yet; a label is the shortest thing a picker
15
+ * can show next to the raw id.
16
+ */
17
+ /** Display order of the groups in a picker. */
18
+ var EVENT_CATEGORY_GROUPS = [
19
+ "devices",
20
+ "detection",
21
+ "recording",
22
+ "storage",
23
+ "streams",
24
+ "pipeline",
25
+ "enrichment",
26
+ "notifications",
27
+ "integrations",
28
+ "addons",
29
+ "agents",
30
+ "network",
31
+ "backup",
32
+ "system",
33
+ "metrics"
34
+ ];
35
+ function e(group, en, it, flags = {}) {
36
+ return {
37
+ group,
38
+ label: {
39
+ en,
40
+ it
41
+ },
42
+ noise: flags.noise === true,
43
+ deprecated: flags.deprecated === true
44
+ };
45
+ }
46
+ var N = { noise: true };
47
+ var EVENT_CATEGORY_CATALOG = {
48
+ [EventCategory.SystemBoot]: e("system", "System booted", "Sistema avviato"),
49
+ [EventCategory.SystemAddonsReady]: e("system", "Addons ready", "Addon pronti"),
50
+ [EventCategory.SystemRestarting]: e("system", "System restarting", "Sistema in riavvio"),
51
+ [EventCategory.SystemRestartCompleted]: e("system", "Restart completed", "Riavvio completato"),
52
+ [EventCategory.SystemTlsCertChanged]: e("system", "TLS certificate changed", "Certificato TLS cambiato"),
53
+ [EventCategory.UpdateAvailable]: e("system", "Update available", "Aggiornamento disponibile"),
54
+ [EventCategory.SystemReadyState]: e("system", "Readiness changed", "Stato di prontezza cambiato"),
55
+ [EventCategory.AddonStarted]: e("addons", "Addon started", "Addon avviato"),
56
+ [EventCategory.AddonStopped]: e("addons", "Addon stopped", "Addon fermato"),
57
+ [EventCategory.AddonRestarted]: e("addons", "Addon restarted", "Addon riavviato"),
58
+ [EventCategory.AddonUpdated]: e("addons", "Addon updated", "Addon aggiornato"),
59
+ [EventCategory.AddonInstalled]: e("addons", "Addon installed", "Addon installato"),
60
+ [EventCategory.AddonUninstalled]: e("addons", "Addon uninstalled", "Addon disinstallato"),
61
+ [EventCategory.AddonCrashed]: e("addons", "Addon crashed", "Addon in errore fatale"),
62
+ [EventCategory.AddonRunnerFailed]: e("addons", "Runner failed for good", "Runner fallito definitivamente"),
63
+ [EventCategory.AddonRunnerRefused]: e("addons", "Runner refused", "Runner rifiutato"),
64
+ [EventCategory.ProcessStateChanged]: e("addons", "Process state changed", "Stato del processo cambiato"),
65
+ [EventCategory.SystemRunnerCheck]: e("system", "Runner check", "Verifica dei runner"),
66
+ [EventCategory.AlertEpisode]: e("system", "Alert episode", "Episodio di allarme"),
67
+ [EventCategory.AddonError]: e("addons", "Addon error", "Errore di un addon"),
68
+ [EventCategory.AddonPageReady]: e("addons", "Addon page ready", "Pagina addon pronta"),
69
+ [EventCategory.AddonWidgetReady]: e("addons", "Addon widget ready", "Widget addon pronto"),
70
+ [EventCategory.AddonLoadFailed]: e("addons", "Addon failed to load", "Caricamento addon fallito"),
71
+ [EventCategory.KeychainChanged]: e("system", "Keychain changed", "Portachiavi modificato"),
72
+ [EventCategory.AddonLoadRecovered]: e("addons", "Addon load recovered", "Caricamento addon ripristinato"),
73
+ [EventCategory.AddonUnsupportedVersion]: e("addons", "Addon version unsupported", "Versione addon non supportata"),
74
+ [EventCategory.AddonUnsupportedResolved]: e("addons", "Unsupported addon resolved", "Addon non supportato risolto"),
75
+ [EventCategory.AddonRetryScheduled]: e("addons", "Addon retry scheduled", "Nuovo tentativo addon pianificato"),
76
+ [EventCategory.SystemLivenessFailed]: e("system", "Liveness check failed", "Controllo di attività fallito"),
77
+ [EventCategory.SystemLivenessRecovered]: e("system", "Liveness recovered", "Controllo di attività ripristinato"),
78
+ [EventCategory.AddonRetryAttempting]: e("addons", "Addon retry running", "Nuovo tentativo addon in corso"),
79
+ [EventCategory.DeviceRegistered]: e("devices", "Device registered", "Dispositivo registrato"),
80
+ [EventCategory.DeviceUnregistered]: e("devices", "Device removed", "Dispositivo rimosso"),
81
+ [EventCategory.DeviceEnabled]: e("devices", "Device enabled", "Dispositivo abilitato"),
82
+ [EventCategory.DeviceDisabled]: e("devices", "Device disabled", "Dispositivo disabilitato"),
83
+ [EventCategory.DeviceSettingsUpdated]: e("devices", "Device settings updated", "Impostazioni dispositivo aggiornate"),
84
+ [EventCategory.DeviceBindingsChanged]: e("devices", "Device bindings changed", "Collegamenti dispositivo cambiati"),
85
+ [EventCategory.DeviceMetaChanged]: e("devices", "Device details changed", "Dettagli dispositivo cambiati"),
86
+ [EventCategory.DeviceSourceInfoChanged]: e("devices", "Device source info changed", "Info sorgente dispositivo cambiate"),
87
+ [EventCategory.DeviceStreamsRegistered]: e("streams", "Device streams registered", "Stream del dispositivo registrati"),
88
+ [EventCategory.DeviceProvisioned]: e("devices", "Device provisioned", "Dispositivo configurato"),
89
+ [EventCategory.DeviceReady]: e("devices", "Device ready", "Dispositivo pronto"),
90
+ [EventCategory.IdentityLinkCreated]: e("integrations", "Identity linked", "Identità collegata"),
91
+ [EventCategory.IdentityLinkLost]: e("integrations", "Identity link lost", "Collegamento identità perso"),
92
+ [EventCategory.IntegrationEnabled]: e("integrations", "Integration enabled", "Integrazione abilitata"),
93
+ [EventCategory.IntegrationDisabled]: e("integrations", "Integration disabled", "Integrazione disabilitata"),
94
+ [EventCategory.IntegrationDeleted]: e("integrations", "Integration deleted", "Integrazione eliminata"),
95
+ [EventCategory.BrokerStatusChanged]: e("integrations", "Broker status changed", "Stato del broker cambiato"),
96
+ [EventCategory.BrokerMessage]: e("integrations", "Broker message", "Messaggio del broker", N),
97
+ [EventCategory.ProviderStarted]: e("integrations", "Provider started", "Provider avviato"),
98
+ [EventCategory.ProviderStopped]: e("integrations", "Provider stopped", "Provider fermato"),
99
+ [EventCategory.ProcessCrashed]: e("addons", "Process crashed", "Processo andato in crash"),
100
+ [EventCategory.ProcessRestartScheduled]: e("addons", "Process restart scheduled", "Riavvio del processo pianificato"),
101
+ [EventCategory.ProcessRestarted]: e("addons", "Process restarted", "Processo riavviato"),
102
+ [EventCategory.StorageLocationsChanged]: e("storage", "Storage locations changed", "Posizioni di archiviazione cambiate"),
103
+ [EventCategory.RecordingStarted]: e("recording", "Recording started", "Registrazione avviata"),
104
+ [EventCategory.RecordingStopped]: e("recording", "Recording stopped", "Registrazione fermata"),
105
+ [EventCategory.RecordingError]: e("recording", "Recording error", "Errore di registrazione"),
106
+ [EventCategory.RecordingHealthDegraded]: e("recording", "Recording degraded", "Registrazione degradata"),
107
+ [EventCategory.RecordingHealthStalled]: e("recording", "Recording stalled", "Registrazione bloccata"),
108
+ [EventCategory.RecordingHealthOk]: e("recording", "Recording healthy", "Registrazione regolare"),
109
+ [EventCategory.RecordingStorageCritical]: e("recording", "Recording storage critical", "Spazio di registrazione critico"),
110
+ [EventCategory.StorageLocationLow]: e("storage", "Storage location low", "Spazio in esaurimento"),
111
+ [EventCategory.StorageLocationCritical]: e("storage", "Storage location critical", "Spazio critico"),
112
+ [EventCategory.StorageLocationOk]: e("storage", "Storage location recovered", "Spazio tornato regolare"),
113
+ [EventCategory.StorageDrainProgress]: e("storage", "Drain progress", "Avanzamento dello svuotamento"),
114
+ [EventCategory.StorageDrainComplete]: e("storage", "Drain complete", "Svuotamento completato"),
115
+ [EventCategory.RecordingSegmentWritten]: e("recording", "Segment written", "Segmento scritto"),
116
+ [EventCategory.RecordingPolicyFallback]: e("recording", "Recording policy fallback", "Politica di registrazione di ripiego"),
117
+ [EventCategory.RecordingRetentionCompleted]: e("recording", "Retention completed", "Pulizia completata"),
118
+ [EventCategory.RecordingExportProgress]: e("recording", "Export progress", "Avanzamento esportazione"),
119
+ [EventCategory.RecordingExportCompleted]: e("recording", "Export completed", "Esportazione completata"),
120
+ [EventCategory.RecordingExportFailed]: e("recording", "Export failed", "Esportazione fallita"),
121
+ [EventCategory.DetectionEvent]: e("detection", "Detection", "Rilevamento"),
122
+ [EventCategory.SessionTrackNew]: e("detection", "Session track started", "Nuova traccia di sessione"),
123
+ [EventCategory.SessionTrackExpired]: e("detection", "Session track expired", "Traccia di sessione scaduta"),
124
+ [EventCategory.BenchmarkProgress]: e("metrics", "Benchmark progress", "Avanzamento benchmark", N),
125
+ [EventCategory.PlatformProbePhase]: e("metrics", "Platform probe phase", "Fase di analisi piattaforma", N),
126
+ [EventCategory.PipelineProgress]: e("pipeline", "Pipeline progress", "Avanzamento pipeline", N),
127
+ [EventCategory.PipelineTrace]: e("pipeline", "Pipeline trace", "Traccia pipeline", N),
128
+ [EventCategory.PipelineInferenceResult]: e("pipeline", "Inference result", "Risultato di inferenza", N),
129
+ [EventCategory.PipelineCameraAssigned]: e("pipeline", "Camera assigned to pipeline", "Camera assegnata alla pipeline"),
130
+ [EventCategory.PipelineCameraUnassigned]: e("pipeline", "Camera unassigned from pipeline", "Camera rimossa dalla pipeline"),
131
+ [EventCategory.PipelineNodeInferenceUnavailable]: e("pipeline", "Node inference unavailable", "Inferenza del nodo non disponibile"),
132
+ [EventCategory.PipelineDetectionBlind]: e("pipeline", "Detection blind", "Rilevamento cieco"),
133
+ [EventCategory.PipelineMotionNoisy]: e("pipeline", "Motion too noisy", "Movimento troppo disturbato"),
134
+ [EventCategory.PipelineMotionCalm]: e("pipeline", "Motion calm again", "Movimento di nuovo calmo"),
135
+ [EventCategory.PipelinePackageLlmSilent]: e("pipeline", "Package check silent", "Verifica pacchi senza risposta"),
136
+ [EventCategory.PipelinePackageLlmAnswered]: e("pipeline", "Package check answered", "Verifica pacchi con risposta"),
137
+ [EventCategory.PipelineCameraUpdated]: e("pipeline", "Pipeline camera updated", "Camera della pipeline aggiornata"),
138
+ [EventCategory.PipelineIngestOwnerChanged]: e("pipeline", "Ingest owner changed", "Responsabile dell’acquisizione cambiato"),
139
+ [EventCategory.PipelineRunnerLoadSnapshot]: e("metrics", "Runner load snapshot", "Carico dei runner", N),
140
+ [EventCategory.PipelineCameraMetricsSnapshot]: e("metrics", "Camera metrics snapshot", "Metriche delle camere", N),
141
+ [EventCategory.StreamBrokerMetricsSnapshot]: e("metrics", "Stream broker metrics", "Metriche dello stream broker", N),
142
+ [EventCategory.StreamBrokerOnCamStreamDemand]: e("streams", "Stream requested", "Stream richiesto"),
143
+ [EventCategory.StreamBrokerOnCamStreamIdle]: e("streams", "Stream idle", "Stream inattivo"),
144
+ [EventCategory.StreamBrokerOnRequestStreamSourceRefresh]: e("streams", "Stream source refresh requested", "Aggiornamento sorgente stream richiesto"),
145
+ [EventCategory.StreamParamsChanged]: e("streams", "Stream parameters changed", "Parametri dello stream cambiati"),
146
+ [EventCategory.DeviceStateChanged]: e("devices", "Device state changed", "Stato dispositivo cambiato"),
147
+ [EventCategory.DeviceCommandSettled]: e("devices", "Device command settled", "Comando al dispositivo concluso"),
148
+ [EventCategory.DeviceNativeShadowChanged]: e("devices", "Device native state changed", "Stato nativo del dispositivo cambiato"),
149
+ [EventCategory.ZoneAnalyticsOccupancyChanged]: e("detection", "Zone occupancy changed", "Occupazione zona cambiata"),
150
+ [EventCategory.BatteryOnStatusChanged]: e("devices", "Battery status changed", "Stato batteria cambiato"),
151
+ [EventCategory.NetworkLinkOnStatusChanged]: e("devices", "Network link status changed", "Stato del collegamento di rete cambiato"),
152
+ [EventCategory.BatteryOnWakeStarted]: e("devices", "Battery device woke up", "Dispositivo a batteria attivato"),
153
+ [EventCategory.DoorbellOnPressed]: e("devices", "Doorbell pressed", "Campanello premuto"),
154
+ [EventCategory.RunningStarted]: e("devices", "Run started", "Esecuzione avviata"),
155
+ [EventCategory.RunningFinished]: e("devices", "Run finished", "Esecuzione terminata"),
156
+ [EventCategory.WorkloadStarted]: e("devices", "Workload started", "Carico di lavoro avviato"),
157
+ [EventCategory.WorkloadStopped]: e("devices", "Workload stopped", "Carico di lavoro fermato"),
158
+ [EventCategory.WorkloadCrashed]: e("devices", "Workload crashed", "Carico di lavoro in crash"),
159
+ [EventCategory.WorkloadRecovered]: e("devices", "Workload recovered", "Carico di lavoro ripristinato"),
160
+ [EventCategory.DeviceRunOpened]: e("devices", "Device run opened", "Ciclo del dispositivo aperto"),
161
+ [EventCategory.DeviceRunClosed]: e("devices", "Device run closed", "Ciclo del dispositivo chiuso"),
162
+ [EventCategory.EventEmitted]: e("devices", "Device event", "Evento del dispositivo"),
163
+ [EventCategory.PipelineEngineMetricsSnapshot]: e("metrics", "Engine metrics snapshot", "Metriche dei motori", N),
164
+ [EventCategory.PipelineEngineProvisioning]: e("pipeline", "Engine provisioning", "Preparazione del motore"),
165
+ [EventCategory.ClusterTopologySnapshot]: e("metrics", "Cluster topology snapshot", "Topologia del cluster", N),
166
+ [EventCategory.MetricsNodeResourcesSnapshot]: e("metrics", "Node resources snapshot", "Risorse dei nodi", N),
167
+ [EventCategory.MetricsNodeProcessesSnapshot]: e("metrics", "Node processes snapshot", "Processi dei nodi", N),
168
+ [EventCategory.CapabilityBindingChanged]: e("system", "Capability binding changed", "Collegamento di capability cambiato", N),
169
+ [EventCategory.ModelDownloadProgress]: e("pipeline", "Model download progress", "Avanzamento download modello", N),
170
+ [EventCategory.AgentRegistered]: e("agents", "Agent registered", "Agent registrato"),
171
+ [EventCategory.AgentUnregistered]: e("agents", "Agent removed", "Agent rimosso"),
172
+ [EventCategory.AgentOnline]: e("agents", "Agent online", "Agent online"),
173
+ [EventCategory.AgentOffline]: e("agents", "Agent offline", "Agent offline"),
174
+ [EventCategory.WorkerOnline]: e("agents", "Worker online", "Worker online"),
175
+ [EventCategory.WorkerOffline]: e("agents", "Worker offline", "Worker offline"),
176
+ [EventCategory.AgentTaskDispatched]: e("agents", "Agent task dispatched", "Attività inviata a un agent"),
177
+ [EventCategory.AgentTaskAssigned]: e("agents", "Agent task assigned", "Attività assegnata a un agent"),
178
+ [EventCategory.AgentTrpcConnected]: e("agents", "Agent API connected", "API dell’agent connessa"),
179
+ [EventCategory.AgentWsConnected]: e("agents", "Agent socket connected", "Socket dell’agent connesso"),
180
+ [EventCategory.AgentWsDisconnected]: e("agents", "Agent socket disconnected", "Socket dell’agent disconnesso"),
181
+ [EventCategory.AgentBackupActivated]: e("agents", "Agent backup activated", "Backup dell’agent attivato"),
182
+ [EventCategory.OrchestrationSettingsUpdated]: e("pipeline", "Orchestration settings updated", "Impostazioni di orchestrazione aggiornate"),
183
+ [EventCategory.MotionAnalysis]: e("detection", "Motion analysis", "Analisi del movimento", N),
184
+ [EventCategory.MotionZonesRaw]: e("detection", "Raw motion zones", "Zone di movimento grezze", N),
185
+ [EventCategory.MotionOnMotionChanged]: e("detection", "Motion changed", "Movimento cambiato", N),
186
+ [EventCategory.DetectionResult]: e("detection", "Detection result", "Risultato del rilevamento", N),
187
+ [EventCategory.DetectionRaw]: e("detection", "Raw detection", "Rilevamento grezzo"),
188
+ [EventCategory.DetectionCameraNative]: e("detection", "Camera native detection", "Rilevamento nativo della camera"),
189
+ [EventCategory.PipelineAudioInferenceResult]: e("pipeline", "Audio inference result", "Risultato di inferenza audio", N),
190
+ [EventCategory.DetectionPhaseTransition]: e("detection", "Detection phase changed", "Fase di rilevamento cambiata"),
191
+ [EventCategory.ProviderMotion]: e("detection", "Camera raw motion", "Movimento grezzo della camera", N),
192
+ [EventCategory.ProviderDetection]: e("detection", "Camera onboard detection", "Rilevamento a bordo camera"),
193
+ [EventCategory.EnrichmentEmbeddingStored]: e("enrichment", "Embedding stored", "Embedding salvato"),
194
+ [EventCategory.EnrichmentSceneStateChanged]: e("enrichment", "Scene state changed", "Stato della scena cambiato"),
195
+ [EventCategory.EnrichmentActivitySummary]: e("enrichment", "Activity summary", "Riepilogo dell’attività"),
196
+ [EventCategory.PipelineAnalyticsTrackLifecycle]: e("detection", "Track lifecycle", "Ciclo di vita della traccia"),
197
+ [EventCategory.PipelineAnalyticsTrackStarted]: e("detection", "Track started", "Traccia iniziata", {
198
+ noise: true,
199
+ deprecated: true
200
+ }),
201
+ [EventCategory.PipelineAnalyticsTrackEnded]: e("detection", "Track ended", "Traccia terminata", {
202
+ noise: true,
203
+ deprecated: true
204
+ }),
205
+ [EventCategory.PipelineAnalyticsDetectionEvent]: e("detection", "Analytics detection", "Rilevamento analitico", N),
206
+ [EventCategory.PipelineAnalyticsFrameTracked]: e("detection", "Frame tracked", "Fotogramma tracciato", N),
207
+ [EventCategory.PipelineAnalyticsStationaryChanged]: e("detection", "Stationary object changed", "Oggetto fermo cambiato"),
208
+ [EventCategory.PipelineAnalyticsPackageDelivered]: e("detection", "Package delivered", "Pacco consegnato"),
209
+ [EventCategory.PipelineAnalyticsPackagePickedUp]: e("detection", "Package picked up", "Pacco ritirato"),
210
+ [EventCategory.PipelineAnalyticsFaceGalleryChanged]: e("enrichment", "Face gallery changed", "Galleria volti cambiata"),
211
+ [EventCategory.PipelineAnalyticsPlateGalleryChanged]: e("enrichment", "Plate gallery changed", "Galleria targhe cambiata"),
212
+ [EventCategory.CameraStreamsProfileSlotsChanged]: e("streams", "Stream profile slots changed", "Slot dei profili stream cambiati"),
213
+ [EventCategory.StreamOnline]: e("streams", "Stream online", "Stream online"),
214
+ [EventCategory.StreamOffline]: e("streams", "Stream offline", "Stream offline"),
215
+ [EventCategory.NetworkTunnelStarted]: e("network", "Tunnel started", "Tunnel avviato"),
216
+ [EventCategory.NetworkTunnelStopped]: e("network", "Tunnel stopped", "Tunnel fermato"),
217
+ [EventCategory.LocalNetworkChanged]: e("network", "Local network changed", "Rete locale cambiata"),
218
+ [EventCategory.MeshNetworkChanged]: e("network", "Mesh network changed", "Rete mesh cambiata"),
219
+ [EventCategory.BackupCompleted]: e("backup", "Backup completed", "Backup completato"),
220
+ [EventCategory.BackupRunCompleted]: e("backup", "Backup run completed", "Esecuzione backup completata"),
221
+ [EventCategory.BackupRestored]: e("backup", "Backup restored", "Backup ripristinato"),
222
+ [EventCategory.NotificationDispatched]: e("notifications", "Notification sent", "Notifica inviata"),
223
+ [EventCategory.NotificationFailed]: e("notifications", "Notification failed", "Notifica non riuscita"),
224
+ [EventCategory.NotificationRuleBroken]: e("notifications", "Notification rule broken", "Regola di notifica non valida"),
225
+ [EventCategory.NotificationRuleRepaired]: e("notifications", "Notification rule repaired", "Regola di notifica riparata"),
226
+ [EventCategory.MigrationFailed]: e("system", "Migration failed", "Migrazione fallita"),
227
+ [EventCategory.MigrationApplied]: e("system", "Migration applied", "Migrazione applicata"),
228
+ [EventCategory.DeviceUpdated]: e("devices", "Device updated", "Dispositivo aggiornato"),
229
+ [EventCategory.DeviceOnline]: e("devices", "Device online", "Dispositivo online"),
230
+ [EventCategory.DeviceOffline]: e("devices", "Device offline", "Dispositivo offline"),
231
+ [EventCategory.DeviceAwake]: e("devices", "Device awake", "Dispositivo attivo"),
232
+ [EventCategory.DeviceSleeping]: e("devices", "Device sleeping", "Dispositivo in standby"),
233
+ [EventCategory.RetentionCleanup]: e("storage", "Retention cleanup", "Pulizia della conservazione"),
234
+ [EventCategory.AddonsBulkUpdateProgress]: e("addons", "Bulk update progress", "Avanzamento aggiornamento multiplo"),
235
+ [EventCategory.AddonsJobProgress]: e("addons", "Addon job progress", "Avanzamento attività addon"),
236
+ [EventCategory.AddonsJobLog]: e("addons", "Addon job log", "Log attività addon"),
237
+ [EventCategory.AccessoriesChildVisibilityChanged]: e("devices", "Child visibility changed", "Visibilità del dispositivo figlio cambiata"),
238
+ [EventCategory.AccessoriesChanged]: e("devices", "Accessories changed", "Accessori cambiati"),
239
+ [EventCategory.ActionsRunChanged]: e("system", "Action run changed", "Esecuzione dell’azione cambiata"),
240
+ [EventCategory.ModelConvertProgress]: e("pipeline", "Model conversion progress", "Avanzamento conversione modello")
241
+ };
242
+ /** Every distinct category value of the enum. */
243
+ function catalogedEventCategories() {
244
+ const all = Object.values(EventCategory).filter((value) => typeof value === "string");
245
+ return [...new Set(all)];
246
+ }
247
+ /** The raw ids a picker may offer: public (not owner-only), not deprecated. Sorted. */
248
+ function offerableEventCategories() {
249
+ return catalogedEventCategories().filter((c) => !isOwnerOnlyEventCategory(c) && !EVENT_CATEGORY_CATALOG[c].deprecated).toSorted();
250
+ }
251
+ /** Categories marked `noise`: what the ring-buffer deny list and live views consume. Sorted. */
252
+ function noiseEventCategories() {
253
+ return catalogedEventCategories().filter((c) => EVENT_CATEGORY_CATALOG[c].noise).toSorted();
254
+ }
255
+ //#endregion
2
256
  //#region src/enums/event-source-type.ts
3
257
  var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
4
258
  EventSourceType["Addon"] = "addon";
@@ -9,4 +263,4 @@ var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
9
263
  return EventSourceType;
10
264
  }({});
11
265
  //#endregion
12
- export { EventCategory, EventSourceType };
266
+ export { EventCategory, EventSourceType, offerableEventCategories as i, EVENT_CATEGORY_GROUPS as n, noiseEventCategories, catalogedEventCategories as r, EVENT_CATEGORY_CATALOG as t };
@@ -1,7 +1,7 @@
1
1
  import type { CapabilityHistoryField, CapabilityHistoryItems, CapabilityHistoryPrimary } from '../capabilities/capability-definition.js';
2
2
  /**
3
3
  * Cap history catalog, projected from every `*.cap.ts` `history` block.
4
- * 47 caps with series (130 series), 40 caps answered `'none'`.
4
+ * 47 caps with series (131 series), 40 caps answered `'none'`.
5
5
  * Field keys are `runtimeState` paths (`a.b` into fixed objects only).
6
6
  */
7
7
  export declare const HISTORY_CATALOG: Readonly<Record<string, Readonly<Record<string, CapabilityHistoryField>>>>;
package/dist/index.d.ts CHANGED
@@ -328,6 +328,8 @@ export type { DeviceConfigEntry } from './device/zod-to-config-ui.js';
328
328
  export { zodEntriesToConfigUI } from './device/zod-to-config-ui.js';
329
329
  export { collectZodSecretPaths, isZodSecret, SECRET_META } from './device/zod-secret.js';
330
330
  export { EventCategory, isOwnerOnlyEventCategory, OWNER_ONLY_EVENT_CATEGORIES, publicEventCategories, } from './enums/event-category.js';
331
+ export { catalogedEventCategories, EVENT_CATEGORY_CATALOG, EVENT_CATEGORY_GROUPS, noiseEventCategories, offerableEventCategories, } from './enums/event-category-catalog.js';
332
+ export type { EventCategoryEntry, EventCategoryGroup, EventCategoryLabel, } from './enums/event-category-catalog.js';
331
333
  export * from './enums/index.js';
332
334
  export type { CompileResult, EvaluateExpressionSourceResult, ExpressionBinaryOperator, ExpressionBindingSource, ExpressionBuiltin, ExpressionEvalHooks, ExpressionEvalOptions, ExpressionFieldBinding, ExpressionGlobalBinding, ExpressionLiteralBinding, ExpressionLogicalOperator, ExpressionNode, ExpressionNodePath, ExpressionSource, ExpressionSourceInput, ExpressionUnaryOperator, ExpressionValue, CountCallState, RoseCallState, StatefulCallState, StatefulCallInvocation, StatefulExpressionEnvironment, StatefulExpressionMemory, StatefulExpressionBuiltin, Keyword, ParsedExpression, Punctuator, Token, } from './expression/index.js';
333
335
  export { DEVICE_TEMPLATE_BUDGET_MS, DEVICE_TEMPLATE_FILTERS, DEVICE_TEMPLATE_MAX_LENGTH, DEVICE_TEMPLATE_MAX_OUTPUT, DEVICE_TEMPLATE_NOW_ALIAS, DEVICE_TEMPLATE_THIS_ALIAS, DEVICE_TEMPLATE_VALUES_CAP, DEVICE_TEMPLATE_UNAVAILABLE, DEVICE_TEMPLATE_REFUSAL_REASONS, DEVICE_TEMPLATE_TRACE_REASONS, DeviceTemplateRefusalSchema, DeviceTemplateRenderSchema, DeviceTemplateSchema, DeviceTemplateThisDeviceSchema, DeviceTemplateTraceEntrySchema, DeviceTemplateValueSchema, resolveTemplateRef, templateCapKey, } from './expression/device-template.js';
package/dist/index.js CHANGED
@@ -39023,6 +39023,10 @@ function normalizeConditionUnits(condition, resolver, path = "when") {
39023
39023
  }
39024
39024
  }
39025
39025
  function normalizeCommandStepUnits(step, resolver, path) {
39026
+ if (require_runtime_capabilities.findVocabAction(step.actionId) === void 0) return {
39027
+ value: step,
39028
+ warnings: []
39029
+ };
39026
39030
  const deviceId = step.target.kind === "devices" && step.target.ids.length === 1 ? step.target.ids[0] : void 0;
39027
39031
  const { cap, method } = require_runtime_capabilities.vocabCall(step.actionId, void 0);
39028
39032
  const args = { ...step.args };
@@ -39139,6 +39143,7 @@ function stampCondition(condition, resolver) {
39139
39143
  }
39140
39144
  function stampAction(action, resolver) {
39141
39145
  if (action.kind !== "command" || action.args === void 0) return action;
39146
+ if (require_runtime_capabilities.findVocabAction(action.actionId) === void 0) return action;
39142
39147
  const { cap, method } = require_runtime_capabilities.vocabCall(action.actionId, void 0);
39143
39148
  const argUnits = { ...action.argUnits };
39144
39149
  for (const [arg, value] of Object.entries(action.args)) {
@@ -51657,7 +51662,7 @@ function groupTemplate(id) {
51657
51662
  //#region src/generated/history-catalog.ts
51658
51663
  /**
51659
51664
  * Cap history catalog, projected from every `*.cap.ts` `history` block.
51660
- * 47 caps with series (130 series), 40 caps answered `'none'`.
51665
+ * 47 caps with series (131 series), 40 caps answered `'none'`.
51661
51666
  * Field keys are `runtimeState` paths (`a.b` into fixed objects only).
51662
51667
  */
51663
51668
  var HISTORY_CATALOG = {
@@ -51873,6 +51878,12 @@ var HISTORY_CATALOG = {
51873
51878
  deadband: .05,
51874
51879
  displayName: "Stored energy"
51875
51880
  },
51881
+ "storage.capacityKwh": {
51882
+ kind: "gauge",
51883
+ unit: "kWh",
51884
+ deadband: .1,
51885
+ displayName: "Storage capacity"
51886
+ },
51876
51887
  "storage.powerW": {
51877
51888
  group: "power-flow",
51878
51889
  kind: "gauge",
@@ -62514,6 +62525,12 @@ var energySystemCapability = {
62514
62525
  deadband: .05,
62515
62526
  displayName: "Stored energy"
62516
62527
  },
62528
+ "storage.capacityKwh": {
62529
+ kind: "gauge",
62530
+ unit: "kWh",
62531
+ deadband: .1,
62532
+ displayName: "Storage capacity"
62533
+ },
62517
62534
  "storage.powerW": {
62518
62535
  group: "power-flow",
62519
62536
  kind: "gauge",
@@ -152178,6 +152195,8 @@ exports.ERROR_STATUS_COLD = ERROR_STATUS_COLD;
152178
152195
  exports.ESTIMATE_COMPUTE_RATIO_MAX = ESTIMATE_COMPUTE_RATIO_MAX;
152179
152196
  exports.ESTIMATE_COMPUTE_RATIO_MIN = ESTIMATE_COMPUTE_RATIO_MIN;
152180
152197
  exports.EVENTFUL_CAP_NAMES = EVENTFUL_CAP_NAMES;
152198
+ exports.EVENT_CATEGORY_CATALOG = require_enums.EVENT_CATEGORY_CATALOG;
152199
+ exports.EVENT_CATEGORY_GROUPS = require_enums.EVENT_CATEGORY_GROUPS;
152181
152200
  exports.EVENT_DENSITY_BATCH_MAX = EVENT_DENSITY_BATCH_MAX;
152182
152201
  exports.EVENT_KIND_BY_CAP = EVENT_KIND_BY_CAP;
152183
152202
  exports.EVENT_KIND_LABELS = EVENT_KIND_LABELS;
@@ -154307,6 +154326,7 @@ exports.capacityForModel = capacityForModel;
154307
154326
  exports.capacitySessionsOf = capacitySessionsOf;
154308
154327
  exports.carbonMonoxideCapability = carbonMonoxideCapability;
154309
154328
  exports.carriesDeviceTemplate = carriesDeviceTemplate;
154329
+ exports.catalogedEventCategories = require_enums.catalogedEventCategories;
154310
154330
  exports.catalogueIssues = catalogueIssues;
154311
154331
  exports.cellsToRects = cellsToRects;
154312
154332
  exports.checkDeviceAlias = checkDeviceAlias;
@@ -155061,6 +155081,7 @@ exports.nodePickerItems = nodePickerItems;
155061
155081
  exports.nodePin = require_runtime_capabilities.nodePin;
155062
155082
  exports.nodeRemovalHookCapability = nodeRemovalHookCapability;
155063
155083
  exports.nodesCapability = nodesCapability;
155084
+ exports.noiseEventCategories = require_enums.noiseEventCategories$1;
155064
155085
  exports.normaliseIdentifiers = normaliseIdentifiers;
155065
155086
  exports.normaliseMac = normaliseMac;
155066
155087
  exports.normalizeActionUnits = normalizeActionUnits;
@@ -155096,6 +155117,7 @@ exports.objectInputDeclaresRequiredDeviceId = objectInputDeclaresRequiredDeviceI
155096
155117
  exports.observeHoldLeaves = observeHoldLeaves;
155097
155118
  exports.occupancyScope = occupancyScope;
155098
155119
  exports.occurrenceOn = occurrenceOn;
155120
+ exports.offerableEventCategories = require_enums.offerableEventCategories;
155099
155121
  exports.offeredActionsWith = offeredActionsWith;
155100
155122
  exports.omitTransientConfig = require_runtime_capabilities.omitTransientConfig;
155101
155123
  exports.openReset = require_implemented_methods.openReset;