@camstack/types 1.1.43 → 1.1.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/addon.js +1 -1
  2. package/dist/addon.mjs +1 -1
  3. package/dist/capabilities/advanced-notifier.cap.d.ts +4 -0
  4. package/dist/capabilities/cap-router-predicates.d.ts +60 -0
  5. package/dist/capabilities/capability-definition.d.ts +1 -1
  6. package/dist/capabilities/custom-model-registry.cap.d.ts +24 -0
  7. package/dist/capabilities/index.d.ts +14 -7
  8. package/dist/capabilities/llm-runtime.cap.d.ts +286 -0
  9. package/dist/capabilities/llm-shared.d.ts +104 -0
  10. package/dist/capabilities/llm.cap.d.ts +596 -0
  11. package/dist/capabilities/login-method.cap.d.ts +53 -7
  12. package/dist/capabilities/model-convert.cap.d.ts +13 -0
  13. package/dist/capabilities/model-distributor.cap.d.ts +26 -0
  14. package/dist/capabilities/pipeline-analytics.cap.d.ts +144 -25
  15. package/dist/capabilities/pipeline-executor.cap.d.ts +24 -0
  16. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +16 -0
  17. package/dist/capabilities/plate-gallery.cap.d.ts +114 -0
  18. package/dist/capabilities/platform-probe.cap.d.ts +9 -0
  19. package/dist/capabilities/scene-monitor.cap.d.ts +483 -0
  20. package/dist/capabilities/zone-analytics.cap.d.ts +78 -1
  21. package/dist/enums/event-category.d.ts +41 -0
  22. package/dist/generated/addon-api.d.ts +3135 -933
  23. package/dist/generated/cap-status-types.d.ts +3 -1
  24. package/dist/generated/capability-router-map.d.ts +13 -4
  25. package/dist/generated/device-local-state.d.ts +3 -0
  26. package/dist/generated/device-proxy.d.ts +3 -0
  27. package/dist/generated/method-access-map.d.ts +1 -1
  28. package/dist/generated/provider-kind-map.d.ts +1 -1
  29. package/dist/generated/system-proxy.d.ts +3 -1
  30. package/dist/index.js +1307 -58
  31. package/dist/index.mjs +1272 -59
  32. package/dist/inference/runtime-capabilities.d.ts +1 -1
  33. package/dist/interfaces/addon.d.ts +5 -1
  34. package/dist/interfaces/advanced-notifier.d.ts +2 -0
  35. package/dist/interfaces/event-bus.d.ts +107 -2
  36. package/dist/interfaces/platform.d.ts +17 -0
  37. package/dist/{sleep-DmvEGsRg.js → sleep-BdhADtqT.js} +55 -0
  38. package/dist/{sleep-Baang_XW.mjs → sleep-_sv7WKkq.mjs} +55 -0
  39. package/dist/types/models.d.ts +38 -1
  40. package/dist/types/pipeline-step.d.ts +20 -2
  41. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as StreamSourceSchema, A as parseJsonUnknown, B as CamProfileSchema, C as asBoolean, D as asString, E as asNumber, F as readinessKey, G as DecodedFrameSchema, H as CamStreamResolutionSchema, I as scopeKey, J as FrameHandleSchema, K as EncodedPacketSchema, L as BrokerStatsSchema, M as ReadinessRegistry, N as ReadinessTimeoutError, O as parseJsonArray, P as emitDownForOwnedCaps, Q as StreamSourceEntrySchema, R as BrokerStatusSchema, S as DeviceType, T as asJsonObject, U as CameraStreamSchema, V as CamStreamKindSchema, W as DecodedAudioChunkSchema, X as ProfileSlotSchema, Y as ProfileRtspEntrySchema, Z as ProfileSlotStatusSchema, _ as resolveCapMount, _t as collectHydratedFieldValues, a as viewerUiCapability, at as makeSourceBrokerId, b as DeviceFeature, bt as EventCategory, c as createLazyTrpcSource, ct as BaseAddon, d as DEVICE_SETTINGS_CONTRIBUTION_METHODS, dt as createEvent, et as SubscribeAudioChunksInputSchema, f as DEVICE_STATUS_METHOD, ft as emitReadiness, g as method, gt as collectHydratedFieldEntries, h as isDeviceConfigCap, ht as WELL_KNOWN_TAB_MAP, i as deviceOpsCapability, it as makeProfileBrokerId, j as DATAPLANE_SECRET_HEADER, k as parseJsonObject, l as createMirrorSource, lt as normalizeAddonInitResult, m as expandCapMethods, mt as WELL_KNOWN_TABS, n as sleepCancellable, nt as SubscribeFramesInputSchema, o as adminUiCapability, ot as parseProfileBrokerId, p as event, pt as isEvent, q as FrameHandleFormatSchema, r as RawStateResultSchema, rt as SubscribeFramesResultSchema, s as createDeviceProxy, st as selectAssignedProfileSlots, t as sleep, tt as SubscribeAudioChunksResultSchema, u as createSliceHandle, ut as createDurableState, v as systemMethod, vt as hydrateSchema, w as asJsonArray, x as DeviceRole, xt as DisposerChain, y as ChargingStatus, yt as resolveHydratedFieldValue, z as CAM_PROFILE_ORDER } from "./sleep-Baang_XW.mjs";
1
+ import { $ as StreamSourceSchema, A as parseJsonUnknown, B as CamProfileSchema, C as asBoolean, D as asString, E as asNumber, F as readinessKey, G as DecodedFrameSchema, H as CamStreamResolutionSchema, I as scopeKey, J as FrameHandleSchema, K as EncodedPacketSchema, L as BrokerStatsSchema, M as ReadinessRegistry, N as ReadinessTimeoutError, O as parseJsonArray, P as emitDownForOwnedCaps, Q as StreamSourceEntrySchema, R as BrokerStatusSchema, S as DeviceType, T as asJsonObject, U as CameraStreamSchema, V as CamStreamKindSchema, W as DecodedAudioChunkSchema, X as ProfileSlotSchema, Y as ProfileRtspEntrySchema, Z as ProfileSlotStatusSchema, _ as resolveCapMount, _t as collectHydratedFieldValues, a as viewerUiCapability, at as makeSourceBrokerId, b as DeviceFeature, bt as EventCategory, c as createLazyTrpcSource, ct as BaseAddon, d as DEVICE_SETTINGS_CONTRIBUTION_METHODS, dt as createEvent, et as SubscribeAudioChunksInputSchema, f as DEVICE_STATUS_METHOD, ft as emitReadiness, g as method, gt as collectHydratedFieldEntries, h as isDeviceConfigCap, ht as WELL_KNOWN_TAB_MAP, i as deviceOpsCapability, it as makeProfileBrokerId, j as DATAPLANE_SECRET_HEADER, k as parseJsonObject, l as createMirrorSource, lt as normalizeAddonInitResult, m as expandCapMethods, mt as WELL_KNOWN_TABS, n as sleepCancellable, nt as SubscribeFramesInputSchema, o as adminUiCapability, ot as parseProfileBrokerId, p as event, pt as isEvent, q as FrameHandleFormatSchema, r as RawStateResultSchema, rt as SubscribeFramesResultSchema, s as createDeviceProxy, st as selectAssignedProfileSlots, t as sleep, tt as SubscribeAudioChunksResultSchema, u as createSliceHandle, ut as createDurableState, v as systemMethod, vt as hydrateSchema, w as asJsonArray, x as DeviceRole, xt as DisposerChain, y as ChargingStatus, yt as resolveHydratedFieldValue, z as CAM_PROFILE_ORDER } from "./sleep-_sv7WKkq.mjs";
2
2
  import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
3
3
  import { z } from "zod";
4
4
  //#region src/health/wiring-health.ts
@@ -68,7 +68,8 @@ var MODEL_FORMATS = [
68
68
  "coreml",
69
69
  "openvino",
70
70
  "tflite",
71
- "pt"
71
+ "pt",
72
+ "gguf"
72
73
  ];
73
74
  /**
74
75
  * Multi-file format payload.
@@ -112,7 +113,8 @@ var ModelFormatsSchema = z.object({
112
113
  coreml: ModelFormatEntrySchema.optional(),
113
114
  openvino: ModelFormatEntrySchema.optional(),
114
115
  tflite: ModelFormatEntrySchema.optional(),
115
- pt: ModelFormatEntrySchema.optional()
116
+ pt: ModelFormatEntrySchema.optional(),
117
+ gguf: ModelFormatEntrySchema.optional()
116
118
  });
117
119
  /**
118
120
  * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
@@ -153,6 +155,15 @@ var ModelCatalogEntrySchema = z.object({
153
155
  width: z.number(),
154
156
  height: z.number()
155
157
  }),
158
+ /**
159
+ * Channel count of the model input tensor. Omit ⇒ 3 (RGB), the default for
160
+ * every detector / classifier / embedder. Set to 1 for a grayscale CTC text
161
+ * recognizer (EasyOCR VGG plate-OCR: input `[N,1,H,W]`) so the preprocess
162
+ * feeds a single-channel, EasyOCR-normalized tensor instead of the default
163
+ * 3-channel RGB one. Threaded through `PoolModelConfig.inputChannels` to the
164
+ * Python inference pool.
165
+ */
166
+ inputChannels: z.number().int().positive().optional(),
156
167
  labels: z.array(LabelDefinitionSchema).readonly(),
157
168
  inputLayout: z.enum(["nchw", "nhwc"]).optional(),
158
169
  inputNormalization: z.enum([
@@ -162,6 +173,16 @@ var ModelCatalogEntrySchema = z.object({
162
173
  ]).optional(),
163
174
  preprocessMode: z.enum(["letterbox", "resize"]).optional(),
164
175
  /**
176
+ * Per-MODEL postprocessor override. Absent ⇒ the step's own
177
+ * `StepDefinition.postprocessor` applies (the normal case — every model in a
178
+ * step shares its decode). Set it when a step hosts models with DIFFERENT raw
179
+ * output layouts under one slot: e.g. object-detection is `'yolo'` by default,
180
+ * but a Coral SSD MobileNet build emits the `TFLite_Detection_PostProcess`
181
+ * 4-tensor layout and needs `'ssd'`. Threaded into `PoolModelConfig.postprocessor`
182
+ * by the engine factory (`modelEntry.postprocessor ?? def.postprocessor`).
183
+ */
184
+ postprocessor: z.custom().optional(),
185
+ /**
165
186
  * When true, the executor produces a landmark-aligned crop (similarity warp
166
187
  * onto the canonical template) before this step runs, instead of a plain
167
188
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -7514,7 +7535,8 @@ var ModelFormatSchema$1 = z.enum([
7514
7535
  "coreml",
7515
7536
  "openvino",
7516
7537
  "tflite",
7517
- "pt"
7538
+ "pt",
7539
+ "gguf"
7518
7540
  ]);
7519
7541
  var PipelineSlotSchema = z.enum([
7520
7542
  "detector",
@@ -7609,7 +7631,8 @@ var EngineProvisioningSchema = z.object({
7609
7631
  runtimeId: z.enum([
7610
7632
  "onnx",
7611
7633
  "openvino",
7612
- "coreml"
7634
+ "coreml",
7635
+ "edgetpu"
7613
7636
  ]).nullable(),
7614
7637
  device: z.string().nullable(),
7615
7638
  state: z.enum([
@@ -9712,6 +9735,169 @@ var ptzAutotrackCapability = {
9712
9735
  runtimeState: PtzAutotrackRuntimeStateSchema
9713
9736
  };
9714
9737
  //#endregion
9738
+ //#region src/capabilities/scene-monitor.cap.ts
9739
+ /**
9740
+ * scene-monitor — device-scoped reference-region state cap. An operator marks
9741
+ * a rect ROI on a camera frame and names one or more states; the engine
9742
+ * (pipeline-analytics, designated post-processing node) reports which state is
9743
+ * active on an ongoing basis. Two operator-selectable check modes share every-
9744
+ * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
9745
+ * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
9746
+ *
9747
+ * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) — the framework
9748
+ * derives the device-detail contribution; the provider carries NO hand-written
9749
+ * settings-contribution methods. `status.kind:'push'` — the engine pushes on
9750
+ * every hysteresis flip / availability change; consumers never poll.
9751
+ */
9752
+ /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
9753
+ * be added without a wire break (matching falls back to any-condition refs). */
9754
+ var SceneConditionSchema = z.string();
9755
+ /** One captured reference — condition-tagged, model-version-gated. `embedding`
9756
+ * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
9757
+ var SceneReferenceSchema = z.object({
9758
+ embedding: z.array(z.number()),
9759
+ modelId: z.string(),
9760
+ condition: SceneConditionSchema,
9761
+ capturedAt: z.number(),
9762
+ thumbnailMediaId: z.string().optional()
9763
+ });
9764
+ var SceneMonitorStateSchema = z.object({
9765
+ id: z.string(),
9766
+ label: z.string(),
9767
+ references: z.array(SceneReferenceSchema),
9768
+ textPrompts: z.array(z.string()).optional(),
9769
+ referenceCount: z.number(),
9770
+ currentlyMatched: z.boolean()
9771
+ });
9772
+ /** Per-mode comparator params in a discriminated union so an `llm` scene never
9773
+ * carries similarity knobs and vice-versa. */
9774
+ var SceneCheckSchema = z.discriminatedUnion("mode", [z.object({
9775
+ mode: z.literal("similarity"),
9776
+ threshold: z.number().min(0).max(1),
9777
+ hysteresisCount: z.number().int().positive()
9778
+ }), z.object({
9779
+ mode: z.literal("llm"),
9780
+ prompt: z.string(),
9781
+ profileId: z.string().optional(),
9782
+ hysteresisCount: z.number().int().positive()
9783
+ })]);
9784
+ var SceneMonitorSchema = z.object({
9785
+ id: z.string(),
9786
+ label: z.string(),
9787
+ roi: MaskRectShapeSchema,
9788
+ enabled: z.boolean(),
9789
+ triggerMode: z.enum([
9790
+ "periodic",
9791
+ "on-motion",
9792
+ "both"
9793
+ ]),
9794
+ checkIntervalSec: z.number().optional(),
9795
+ check: SceneCheckSchema,
9796
+ states: z.array(SceneMonitorStateSchema),
9797
+ currentStateId: z.string().nullable(),
9798
+ lastCheckedAt: z.number().nullable(),
9799
+ lastConfidence: z.number().nullable(),
9800
+ currentCondition: SceneConditionSchema.nullable(),
9801
+ availability: z.enum(["ok", "unavailable"]),
9802
+ unavailableReason: z.string().nullable()
9803
+ });
9804
+ var SceneMonitorStatusSchema = z.object({
9805
+ monitors: z.array(SceneMonitorSchema),
9806
+ lastFetchedAt: z.number()
9807
+ });
9808
+ var sceneMonitorCapability = {
9809
+ name: "scene-monitor",
9810
+ scope: "device",
9811
+ mode: "singleton",
9812
+ kind: "wrapper",
9813
+ defaultActive: true,
9814
+ deviceTypes: [DeviceType.Camera],
9815
+ deviceConfig: { ui: {
9816
+ kind: "widget",
9817
+ widgetId: "host/scene-monitor-editor",
9818
+ tab: "scenes",
9819
+ label: "Scenes"
9820
+ } },
9821
+ methods: {
9822
+ listScenes: method(z.object({ deviceId: z.number() }), SceneMonitorStatusSchema),
9823
+ createScene: method(z.object({
9824
+ deviceId: z.number(),
9825
+ label: z.string(),
9826
+ roi: MaskRectShapeSchema,
9827
+ check: SceneCheckSchema,
9828
+ triggerMode: z.enum([
9829
+ "periodic",
9830
+ "on-motion",
9831
+ "both"
9832
+ ]).optional(),
9833
+ checkIntervalSec: z.number().optional()
9834
+ }), SceneMonitorSchema, {
9835
+ kind: "mutation",
9836
+ auth: "admin"
9837
+ }),
9838
+ updateScene: method(z.object({
9839
+ deviceId: z.number(),
9840
+ monitorId: z.string(),
9841
+ patch: z.object({
9842
+ label: z.string().optional(),
9843
+ roi: MaskRectShapeSchema.optional(),
9844
+ enabled: z.boolean().optional(),
9845
+ triggerMode: z.enum([
9846
+ "periodic",
9847
+ "on-motion",
9848
+ "both"
9849
+ ]).optional(),
9850
+ checkIntervalSec: z.number().optional(),
9851
+ check: SceneCheckSchema.optional()
9852
+ })
9853
+ }), z.void(), {
9854
+ kind: "mutation",
9855
+ auth: "admin"
9856
+ }),
9857
+ deleteScene: method(z.object({
9858
+ deviceId: z.number(),
9859
+ monitorId: z.string()
9860
+ }), z.void(), {
9861
+ kind: "mutation",
9862
+ auth: "admin"
9863
+ }),
9864
+ captureReference: method(z.object({
9865
+ deviceId: z.number(),
9866
+ monitorId: z.string(),
9867
+ stateId: z.string().optional(),
9868
+ label: z.string().optional(),
9869
+ condition: SceneConditionSchema.optional()
9870
+ }), z.object({
9871
+ stateId: z.string(),
9872
+ referenceCount: z.number()
9873
+ }), {
9874
+ kind: "mutation",
9875
+ auth: "admin"
9876
+ }),
9877
+ deleteReference: method(z.object({
9878
+ deviceId: z.number(),
9879
+ monitorId: z.string(),
9880
+ stateId: z.string(),
9881
+ index: z.number()
9882
+ }), z.void(), {
9883
+ kind: "mutation",
9884
+ auth: "admin"
9885
+ }),
9886
+ recheckNow: method(z.object({
9887
+ deviceId: z.number(),
9888
+ monitorId: z.string()
9889
+ }), z.void(), {
9890
+ kind: "mutation",
9891
+ auth: "admin"
9892
+ })
9893
+ },
9894
+ status: {
9895
+ schema: SceneMonitorStatusSchema,
9896
+ kind: "push"
9897
+ },
9898
+ runtimeState: SceneMonitorStatusSchema
9899
+ };
9900
+ //#endregion
9715
9901
  //#region src/capabilities/script-runner.cap.ts
9716
9902
  /**
9717
9903
  * Script-runner cap. Models HA `script.*` entities on
@@ -10487,6 +10673,36 @@ var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
10487
10673
  * with the per-track detail panel and live overlay. */
10488
10674
  trackIds: z.array(z.string()).readonly()
10489
10675
  });
10676
+ /**
10677
+ * A parked ("stationary") object surfaced alongside occupancy — an object that
10678
+ * settled and stopped moving. It is NO LONGER a tracked object (the tracker was
10679
+ * told to forget it so it stops re-spawning tracks/events), but it IS still
10680
+ * physically present, so it keeps counting toward `frame` occupancy and is
10681
+ * listed here so the UI can show it in a dedicated "Stationary" section instead
10682
+ * of flooding the live event feed.
10683
+ */
10684
+ var StationaryObjectSchema = z.object({
10685
+ id: z.string(),
10686
+ className: z.string(),
10687
+ bbox: z.object({
10688
+ x: z.number(),
10689
+ y: z.number(),
10690
+ w: z.number(),
10691
+ h: z.number()
10692
+ }),
10693
+ frameWidth: z.number().int().nonnegative(),
10694
+ frameHeight: z.number().int().nonnegative(),
10695
+ /** When the source track was first seen. */
10696
+ firstSeenAt: z.number().int(),
10697
+ /** When the object was recognised as parked (promotion time). */
10698
+ becameStationaryAt: z.number().int(),
10699
+ /** Last frame a detection confirmed the object is still there. */
10700
+ lastConfirmedAt: z.number().int(),
10701
+ /** Enrichment label carried from the source track (identity / plate). */
10702
+ label: z.string().optional(),
10703
+ /** Native-resolution key-frame media key for the parked object's best image. */
10704
+ keyFrameMediaKey: z.string().optional()
10705
+ });
10490
10706
  var CameraOccupancySnapshotSchema = z.object({
10491
10707
  /** Frame timestamp of the inference result that produced this snapshot. */
10492
10708
  ts: z.number().int(),
@@ -10495,10 +10711,15 @@ var CameraOccupancySnapshotSchema = z.object({
10495
10711
  frameHeight: z.number().int().nonnegative(),
10496
10712
  /** Per-zone breakdown — one entry per defined zone (user + onboard). */
10497
10713
  zones: z.array(ZoneScopeBreakdownSchema).readonly(),
10498
- /** Frame-wide aggregate (everywhere, regardless of zone membership). */
10714
+ /** Frame-wide aggregate (everywhere, regardless of zone membership).
10715
+ * INCLUDES currently-confirmed stationary objects (they are still present). */
10499
10716
  frame: PerScopeBreakdownSchema,
10500
10717
  /** Detections that landed outside every zone. Empty when no zones defined. */
10501
- unzoned: PerScopeBreakdownSchema
10718
+ unzoned: PerScopeBreakdownSchema,
10719
+ /** Parked objects on this camera (additive — absent on legacy snapshots).
10720
+ * Surfaced separately so the UI shows them in a dedicated section rather
10721
+ * than as repeated tracks/events. */
10722
+ stationaryObjects: z.array(StationaryObjectSchema).readonly().optional()
10502
10723
  });
10503
10724
  /**
10504
10725
  * Time-series resolution. The history methods return one bucket per
@@ -10798,6 +11019,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
10798
11019
  pressureSensor: pressureSensorCapability,
10799
11020
  privacyMask: privacyMaskCapability,
10800
11021
  ptzAutotrack: ptzAutotrackCapability,
11022
+ sceneMonitor: sceneMonitorCapability,
10801
11023
  scriptRunner: scriptRunnerCapability,
10802
11024
  smoke: smokeCapability,
10803
11025
  streamParams: streamParamsCapability,
@@ -12557,6 +12779,27 @@ function createSystemProxy(api) {
12557
12779
  getAvailableTypes: (input) => dispatch("integrations", "getAvailableTypes", "query", input),
12558
12780
  testConnection: (input) => dispatch("integrations", "testConnection", "mutation", input)
12559
12781
  },
12782
+ llm: {
12783
+ generate: (input) => dispatch("llm", "generate", "mutation", input),
12784
+ generateVision: (input) => dispatch("llm", "generateVision", "mutation", input),
12785
+ listProfileKinds: (input) => dispatch("llm", "listProfileKinds", "query", input),
12786
+ listProfiles: (input) => dispatch("llm", "listProfiles", "query", input),
12787
+ upsertProfile: (input) => dispatch("llm", "upsertProfile", "mutation", input),
12788
+ deleteProfile: (input) => dispatch("llm", "deleteProfile", "mutation", input),
12789
+ testProfile: (input) => dispatch("llm", "testProfile", "mutation", input),
12790
+ listModels: (input) => dispatch("llm", "listModels", "query", input),
12791
+ getDefaults: (input) => dispatch("llm", "getDefaults", "query", input),
12792
+ setDefault: (input) => dispatch("llm", "setDefault", "mutation", input),
12793
+ getUsage: (input) => dispatch("llm", "getUsage", "query", input),
12794
+ listModelCatalog: (input) => dispatch("llm", "listModelCatalog", "query", input),
12795
+ listRuntimeNodes: (input) => dispatch("llm", "listRuntimeNodes", "query", input),
12796
+ listNodeModels: (input) => dispatch("llm", "listNodeModels", "query", input),
12797
+ installModel: (input) => dispatch("llm", "installModel", "mutation", input),
12798
+ deleteModel: (input) => dispatch("llm", "deleteModel", "mutation", input),
12799
+ getRuntimeStatus: (input) => dispatch("llm", "getRuntimeStatus", "query", input),
12800
+ startRuntime: (input) => dispatch("llm", "startRuntime", "mutation", input),
12801
+ stopRuntime: (input) => dispatch("llm", "stopRuntime", "mutation", input)
12802
+ },
12560
12803
  localNetwork: {
12561
12804
  list: (input) => dispatch("localNetwork", "list", "query", input),
12562
12805
  getPreferred: (input) => dispatch("localNetwork", "getPreferred", "query", input),
@@ -12706,7 +12949,17 @@ function createSystemProxy(api) {
12706
12949
  searchPlates: (input) => dispatch("plateGallery", "searchPlates", "query", input),
12707
12950
  suggestPlateClusters: (input) => dispatch("plateGallery", "suggestPlateClusters", "query", input),
12708
12951
  correctPlateText: (input) => dispatch("plateGallery", "correctPlateText", "mutation", input),
12709
- deletePlate: (input) => dispatch("plateGallery", "deletePlate", "mutation", input)
12952
+ deletePlate: (input) => dispatch("plateGallery", "deletePlate", "mutation", input),
12953
+ listVehicles: (input) => dispatch("plateGallery", "listVehicles", "query", input),
12954
+ createVehicle: (input) => dispatch("plateGallery", "createVehicle", "mutation", input),
12955
+ renameVehicle: (input) => dispatch("plateGallery", "renameVehicle", "mutation", input),
12956
+ deleteVehicle: (input) => dispatch("plateGallery", "deleteVehicle", "mutation", input),
12957
+ listVehicleSamples: (input) => dispatch("plateGallery", "listVehicleSamples", "query", input),
12958
+ removeVehicleSample: (input) => dispatch("plateGallery", "removeVehicleSample", "mutation", input),
12959
+ assignPlate: (input) => dispatch("plateGallery", "assignPlate", "mutation", input),
12960
+ unassignPlate: (input) => dispatch("plateGallery", "unassignPlate", "mutation", input),
12961
+ assignPlates: (input) => dispatch("plateGallery", "assignPlates", "mutation", input),
12962
+ unassignPlates: (input) => dispatch("plateGallery", "unassignPlates", "mutation", input)
12710
12963
  },
12711
12964
  recording: { getStorageUsage: (input) => dispatch("recording", "getStorageUsage", "query", input) },
12712
12965
  serverManagement: {
@@ -13908,7 +14161,12 @@ var NotificationRuleConditionsSchema = z.object({
13908
14161
  clipDescription: z.object({
13909
14162
  text: z.string().min(1),
13910
14163
  minSimilarity: z.number().min(0).max(1)
13911
- }).optional()
14164
+ }).optional(),
14165
+ /** Match events whose recognized-entity label (face identity name or plate
14166
+ * vehicle name, propagated onto `event.data.label`) is one of these values.
14167
+ * Empty/absent → unaffected (back-compat). Enables "notify me when <named
14168
+ * vehicle/person> is seen". */
14169
+ labels: z.array(z.string()).readonly().optional()
13912
14170
  });
13913
14171
  var NotificationRuleTemplateSchema = z.object({
13914
14172
  title: z.string(),
@@ -14338,11 +14596,19 @@ var authProviderCapability = {
14338
14596
  * login page needs NO change.
14339
14597
  *
14340
14598
  * - `widget` — a Module-Federation widget the login page mounts (via
14341
- * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
14342
- * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
14343
- * addon bundle. The referenced widget also declares `preAuth: true` in
14344
- * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
14345
- * stamps a public `bundleUrl` from `addonId` + `bundle`.
14599
+ * `loadRemoteBundle`) for an in-page ceremony. `auth.listLoginMethods`
14600
+ * stamps a public `bundleUrl` from `addonId` + `bundle`. Generic
14601
+ * mechanism kept for future use; no shipped addon uses it on the login
14602
+ * page (the passkey ceremony below runs natively in the shell instead).
14603
+ *
14604
+ * - `passkey` — a declarative WebAuthn ceremony the shell renders
14605
+ * natively (`@simplewebauthn/browser` lives in `addon-admin-ui`, not in
14606
+ * a remotely-loaded bundle). Carries the addon's effective `rpId` /
14607
+ * `origin` (from its `resolveRpID()` / `resolveOrigin()`) so the shell
14608
+ * can gate visibility (IP-literal origin, hostname/rpId mismatch) WITHOUT
14609
+ * fetching any remote code pre-auth. Contribution stays unconditional —
14610
+ * enrollment state is never leaked pre-auth; visibility is a shell
14611
+ * decision.
14346
14612
  *
14347
14613
  * Every contribution carries a `stage`:
14348
14614
  * - `primary` — shown on the first credentials screen (OIDC /
@@ -14391,8 +14657,30 @@ var WidgetLoginMethodSchema = z.object({
14391
14657
  remote: WidgetRemoteSchema,
14392
14658
  stage: LoginStageEnum
14393
14659
  });
14394
- /** One login-method contribution — redirect button OR pre-auth widget. */
14395
- var LoginMethodContributionSchema = z.discriminatedUnion("kind", [RedirectLoginMethodSchema, WidgetLoginMethodSchema]);
14660
+ /**
14661
+ * A declarative WebAuthn ceremony the shell renders natively (no remote
14662
+ * code). Carries the addon's EFFECTIVE `rpId`/`origin` so the shell can
14663
+ * gate visibility (IP-literal origin, hostname/rpId mismatch) before ever
14664
+ * showing the button — the contribution itself stays unconditional.
14665
+ */
14666
+ var PasskeyLoginMethodSchema = z.object({
14667
+ kind: z.literal("passkey"),
14668
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-direct-login`). */
14669
+ id: z.string(),
14670
+ /** Operator-facing button label. */
14671
+ label: z.string(),
14672
+ stage: LoginStageEnum,
14673
+ /** Effective WebAuthn RP ID (`resolveRpID()`) — the shell gates visibility on it. */
14674
+ rpId: z.string(),
14675
+ /** Effective expected origin (`resolveOrigin()`), null when unconfigured. */
14676
+ origin: z.string().nullable()
14677
+ });
14678
+ /** One login-method contribution — redirect button, pre-auth widget, or native passkey ceremony. */
14679
+ var LoginMethodContributionSchema = z.discriminatedUnion("kind", [
14680
+ RedirectLoginMethodSchema,
14681
+ WidgetLoginMethodSchema,
14682
+ PasskeyLoginMethodSchema
14683
+ ]);
14396
14684
  var loginMethodCapability = {
14397
14685
  name: "login-method",
14398
14686
  scope: "system",
@@ -14914,18 +15202,6 @@ var cameraPipelineConfigCapability = {
14914
15202
  };
14915
15203
  //#endregion
14916
15204
  //#region src/capabilities/cap-router-predicates.ts
14917
- /**
14918
- * Shared cap-router predicates — the SINGLE source for the structural Zod-shape
14919
- * checks + naming used by BOTH the runtime cap-router builder
14920
- * (`@camstack/system` `cap-router-builder.ts` + the server's
14921
- * `cap-router-runtime.ts`) AND the codegen scripts (`scripts/generate-cap-*.ts`).
14922
- *
14923
- * These used to be independently reimplemented on each side, held in sync only
14924
- * by "must stay byte-identical" comments — a live drift risk. Consolidating them
14925
- * here (next to `resolveCapMount` / `expandCapMethods`, the other shared model)
14926
- * makes the two paths provably agree. Each predicate accepts both Zod 4
14927
- * (`_def.type`) and legacy Zod 3 (`_def.typeName` / `constructor.name`) shapes.
14928
- */
14929
15205
  /** `z.void()` — input carries no data. */
14930
15206
  function isVoidInput(schema) {
14931
15207
  const def = schema._def;
@@ -14953,6 +15229,26 @@ function isArrayOutputSchema(schema) {
14953
15229
  return false;
14954
15230
  }
14955
15231
  /**
15232
+ * True when `method` on cap `def` is a COLLECTION cap's array-returning
15233
+ * (non-subscription) method — the methods whose contract is "union the result
15234
+ * across every registered provider" (`listTargets`, `listTargetKinds`,
15235
+ * `discoverTargets`, `listEndpoints`, …).
15236
+ *
15237
+ * Such a method is aggregated at the hub via `concatCollection` / the runtime
15238
+ * `concatArrayMethod`, both of which SKIP a provider that doesn't implement it
15239
+ * (contributes `[]`). That local skip is invisible across the UDS boundary — a
15240
+ * hub-side per-provider proxy fabricates a callable for every property, so the
15241
+ * call reaches the child's real (possibly partial) provider. This predicate lets
15242
+ * the child-side dispatcher reproduce the same graceful skip: a missing method
15243
+ * here yields `[]`, not a "method not found" error. Singleton caps and non-array
15244
+ * methods return `false` so a genuinely missing method still surfaces as a bug.
15245
+ */
15246
+ function isCollectionArrayMethod(def, method) {
15247
+ if (def === void 0 || def.mode !== "collection") return false;
15248
+ const m = expandCapMethods(def)[method];
15249
+ return m !== void 0 && m.kind !== "subscription" && isArrayOutputSchema(m.output);
15250
+ }
15251
+ /**
14956
15252
  * Apply `.loose()` to an object input schema when available (Zod 4) so the
14957
15253
  * router accepts the out-of-band `nodeId`/`addonId` selector keys without
14958
15254
  * stripping them. Falls back to the schema unchanged when `.loose()` is absent.
@@ -14961,6 +15257,64 @@ function looseSchema(schema) {
14961
15257
  const loose = schema.loose;
14962
15258
  return typeof loose === "function" ? loose.call(schema) : schema;
14963
15259
  }
15260
+ /**
15261
+ * Derive a COLLECTION-cap routing `addonId` from a NON-array mutation input
15262
+ * when the caller did NOT supply the top-level `{ addonId }` selector.
15263
+ *
15264
+ * Background: a `scope:'system', mode:'collection'` cap fans its ARRAY methods
15265
+ * (`listTargets`, `listTargetKinds`, …) across every provider, but routes each
15266
+ * single-object method (`send` / CRUD) to ONE provider. The runtime router
15267
+ * strips a TOP-LEVEL `addonId` selector and routes it via
15268
+ * `getProviderByAddonId`; absent that selector it falls through to the FIRST
15269
+ * registered provider — which misroutes (or hard-crashes on a partial provider)
15270
+ * when the target is owned by a DIFFERENT provider. See
15271
+ * `notification-output.cap.ts` (`Target.addonId` / `TargetKind.addonId` are
15272
+ * "stamped by each provider so the concat-fanned catalog stays routable").
15273
+ *
15274
+ * That routing `addonId` is ALREADY carried inside the mutation payload the
15275
+ * caller sends — e.g. `upsertTarget({ target: { …, addonId } })`. This helper
15276
+ * recovers it: it scans the input's DIRECT child object properties (bounded to
15277
+ * one level, first match wins) for a string `addonId`. Mirrors the child-side
15278
+ * `extractArgsAddonId` fallback in `child-cap-dispatch.ts`, which reads a
15279
+ * top-level `addonId` off the raw args; this covers the one-level-nested case
15280
+ * the top-level scan misses.
15281
+ *
15282
+ * Only used for non-array collection methods (array fan-out is never rerouted),
15283
+ * so it can never collapse a catalog aggregation onto a single provider. `null`
15284
+ * / non-object inputs yield `undefined` (fall back to the first provider,
15285
+ * preserving single-provider and id-only-payload back-compat).
15286
+ */
15287
+ function extractNestedAddonId(input) {
15288
+ if (input === null || typeof input !== "object") return void 0;
15289
+ for (const value of Object.values(input)) if (value !== null && typeof value === "object") {
15290
+ const nested = value.addonId;
15291
+ if (typeof nested === "string") return nested;
15292
+ }
15293
+ }
15294
+ /**
15295
+ * True when an OBJECT input schema declares a top-level `addonId` field.
15296
+ *
15297
+ * Such a cap method routes explicitly via the top-level `{ addonId }` selector
15298
+ * (the `llm.generate` / `deleteProfile` posture). The runtime router therefore
15299
+ * MUST NOT also fall back to {@link extractNestedAddonId} for it — that would
15300
+ * let an incidental nested `addonId` (e.g. a key inside a free-form `jsonSchema`
15301
+ * record) hijack routing. Nested recovery is reserved for methods whose input
15302
+ * carries NO top-level selector but embeds the owning `addonId` inside a domain
15303
+ * entity (`upsertTarget({ target: { addonId } })`, `upsertProfile({ profile })`).
15304
+ *
15305
+ * Accepts both Zod 4 (`.shape` / `_def.shape`) and legacy shapes; returns false
15306
+ * for non-object schemas.
15307
+ */
15308
+ function objectInputDeclaresAddonId(schema) {
15309
+ if (schema === null || typeof schema !== "object" && typeof schema !== "function") return false;
15310
+ const direct = schema.shape;
15311
+ const shape = direct !== void 0 && direct !== null ? direct : resolveDefShape(schema._def?.shape);
15312
+ return shape !== void 0 && shape !== null && typeof shape === "object" && Object.prototype.hasOwnProperty.call(shape, "addonId");
15313
+ }
15314
+ /** `_def.shape` may be a thunk (Zod defers object-shape evaluation) or a plain record. */
15315
+ function resolveDefShape(defShape) {
15316
+ return typeof defShape === "function" ? defShape() : defShape;
15317
+ }
14964
15318
  /** Auth level → base-procedure key. `superAdmin` collapses to `admin`. */
14965
15319
  function procedureAuthKey(auth) {
14966
15320
  if (auth === "public") return "public";
@@ -17211,14 +17565,14 @@ var TargetKindCapsSchema = z.object({
17211
17565
  * the union is large and not meant for runtime validation here; the exported
17212
17566
  * `TargetKind` type re-tightens `configSchema` to `ConfigUISchema`.
17213
17567
  */
17214
- var ConfigSchemaPassthrough = z.unknown();
17568
+ var ConfigSchemaPassthrough$1 = z.unknown();
17215
17569
  var TargetKindSchema = z.object({
17216
17570
  kind: z.string(),
17217
17571
  label: z.string(),
17218
17572
  icon: z.string(),
17219
17573
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
17220
17574
  addonId: z.string(),
17221
- configSchema: ConfigSchemaPassthrough,
17575
+ configSchema: ConfigSchemaPassthrough$1,
17222
17576
  supportsDiscovery: z.boolean(),
17223
17577
  caps: TargetKindCapsSchema
17224
17578
  });
@@ -17285,6 +17639,352 @@ var notificationOutputCapability = {
17285
17639
  }
17286
17640
  };
17287
17641
  //#endregion
17642
+ //#region src/capabilities/llm-shared.ts
17643
+ /**
17644
+ * Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
17645
+ * surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
17646
+ * caps stay wire-compatible without a circular cap→cap import.
17647
+ *
17648
+ * Errors are a discriminated-union RESULT, never thrown: the shape survives
17649
+ * every transport tier structurally, and failed calls still write usage rows.
17650
+ * Token counts only in v1 — no costUsd (operator decision, 2026-07-15).
17651
+ */
17652
+ var LlmUsageSchema = z.object({
17653
+ inputTokens: z.number(),
17654
+ outputTokens: z.number()
17655
+ });
17656
+ var LlmErrorCodeSchema = z.enum([
17657
+ "timeout",
17658
+ "rate-limited",
17659
+ "auth",
17660
+ "refusal",
17661
+ "bad-request",
17662
+ "unavailable",
17663
+ "no-profile",
17664
+ "budget-exceeded",
17665
+ "adapter-error"
17666
+ ]);
17667
+ var LlmGenerateOkSchema = z.object({
17668
+ ok: z.literal(true),
17669
+ text: z.string(),
17670
+ model: z.string(),
17671
+ usage: LlmUsageSchema,
17672
+ truncated: z.boolean(),
17673
+ latencyMs: z.number()
17674
+ });
17675
+ var LlmGenerateErrSchema = z.object({
17676
+ ok: z.literal(false),
17677
+ code: LlmErrorCodeSchema,
17678
+ message: z.string(),
17679
+ retryAfterMs: z.number().optional()
17680
+ });
17681
+ var LlmGenerateResultSchema = z.discriminatedUnion("ok", [LlmGenerateOkSchema, LlmGenerateErrSchema]);
17682
+ /**
17683
+ * `Uint8Array` is the sanctioned binary convention — superjson + the UDS
17684
+ * MsgPack channel round-trip typed arrays (embedding-encoder.cap.ts:29,
17685
+ * notification-output.cap.ts:27-31 precedents).
17686
+ */
17687
+ var LlmImageSchema = z.object({
17688
+ bytes: z.instanceof(Uint8Array),
17689
+ mimeType: z.string()
17690
+ });
17691
+ var LlmGenerateBaseInputSchema = z.object({
17692
+ /** Collection routing (the notification-output posture). */
17693
+ addonId: z.string().optional(),
17694
+ /** Explicit profile; else the resolution chain (spec §3). */
17695
+ profileId: z.string().optional(),
17696
+ /** MANDATORY usage tag: 'ai-summary', 'notifier-rules', 'adhoc-ui', … */
17697
+ consumer: z.string(),
17698
+ system: z.string().optional(),
17699
+ /** v1: single-turn. `messages[]` is a v2 additive field. */
17700
+ prompt: z.string(),
17701
+ /** Structured output — adapter-mapped (response_format / forced tool / responseSchema). */
17702
+ jsonSchema: z.record(z.string(), z.unknown()).optional(),
17703
+ /** Per-call override of the profile default. */
17704
+ maxTokens: z.number().int().positive().optional(),
17705
+ temperature: z.number().optional()
17706
+ });
17707
+ //#endregion
17708
+ //#region src/capabilities/llm-runtime.cap.ts
17709
+ /**
17710
+ * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
17711
+ * on EVERY node where `addon-ai` is installed; the hub `llm` provider reaches
17712
+ * a specific node's runtime with `nodePin(profile.runtime.nodeId)` — normal
17713
+ * cap routing, zero bespoke plumbing. `internal: true`: the operator reaches
17714
+ * this only through the `llm` cap's methods.
17715
+ *
17716
+ * One running llama-server child per node in v1 (models are RAM-heavy).
17717
+ * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
17718
+ * watchdog — operator decision #3).
17719
+ */
17720
+ var ManagedModelRefSchema = z.discriminatedUnion("kind", [
17721
+ z.object({
17722
+ kind: z.literal("catalog"),
17723
+ catalogId: z.string()
17724
+ }),
17725
+ z.object({
17726
+ kind: z.literal("url"),
17727
+ url: z.string(),
17728
+ sha256: z.string().optional()
17729
+ }),
17730
+ z.object({
17731
+ kind: z.literal("path"),
17732
+ path: z.string()
17733
+ })
17734
+ ]);
17735
+ var ManagedRuntimeConfigSchema = z.object({
17736
+ /** WHERE the runtime lives — hub or any agent. */
17737
+ nodeId: z.string(),
17738
+ /** Closed for v1; 'ollama' is a v2 candidate. */
17739
+ engine: z.enum(["llama-cpp"]),
17740
+ model: ManagedModelRefSchema,
17741
+ contextSize: z.number().int().default(4096),
17742
+ /** 0 = CPU-only. */
17743
+ gpuLayers: z.number().int().default(0),
17744
+ /** Default: cpus-2, clamped ≥1 (resolved node-side). */
17745
+ threads: z.number().int().optional(),
17746
+ /** Concurrent slots. */
17747
+ parallel: z.number().int().default(1),
17748
+ /** Else lazy: first generate boots it. */
17749
+ autoStart: z.boolean().default(false),
17750
+ /** 0 = never; frees RAM after quiet periods. */
17751
+ idleStopMinutes: z.number().int().default(30)
17752
+ });
17753
+ var LlmRuntimeStatusSchema = z.object({
17754
+ /** Status is ALWAYS node-qualified. */
17755
+ nodeId: z.string(),
17756
+ state: z.enum([
17757
+ "stopped",
17758
+ "downloading",
17759
+ "starting",
17760
+ "ready",
17761
+ "crashed",
17762
+ "failed"
17763
+ ]),
17764
+ pid: z.number().optional(),
17765
+ port: z.number().optional(),
17766
+ modelPath: z.string().optional(),
17767
+ modelId: z.string().optional(),
17768
+ downloadProgress: z.number().min(0).max(1).optional(),
17769
+ lastError: z.string().optional(),
17770
+ crashesInWindow: z.number(),
17771
+ /** Child RSS (sampled best-effort). */
17772
+ memoryBytes: z.number().optional(),
17773
+ vramBytes: z.number().optional()
17774
+ });
17775
+ var LlmNodeModelSchema = z.object({
17776
+ file: z.string(),
17777
+ sizeBytes: z.number(),
17778
+ catalogId: z.string().optional(),
17779
+ installedAt: z.number().optional()
17780
+ });
17781
+ var LlmRuntimeDiskUsageSchema = z.object({
17782
+ nodeId: z.string(),
17783
+ modelsBytes: z.number(),
17784
+ freeBytes: z.number().optional()
17785
+ });
17786
+ var LlmRuntimeCompleteInputSchema = LlmGenerateBaseInputSchema.extend({
17787
+ images: z.array(LlmImageSchema).optional(),
17788
+ runtime: ManagedRuntimeConfigSchema,
17789
+ /** The managed profile's timeout, threaded by the hub provider. */
17790
+ timeoutMs: z.number().int().positive().optional()
17791
+ });
17792
+ var llmRuntimeCapability = {
17793
+ name: "llm-runtime",
17794
+ scope: "system",
17795
+ mode: "singleton",
17796
+ internal: true,
17797
+ methods: {
17798
+ complete: method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, { kind: "mutation" }),
17799
+ ensureStarted: method(z.object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
17800
+ kind: "mutation",
17801
+ auth: "admin"
17802
+ }),
17803
+ stop: method(z.object({}), z.void(), {
17804
+ kind: "mutation",
17805
+ auth: "admin"
17806
+ }),
17807
+ status: method(z.object({}), LlmRuntimeStatusSchema),
17808
+ installModel: method(z.object({ model: ManagedModelRefSchema }), z.void(), {
17809
+ kind: "mutation",
17810
+ auth: "admin"
17811
+ }),
17812
+ deleteModel: method(z.object({ file: z.string() }), z.void(), {
17813
+ kind: "mutation",
17814
+ auth: "admin"
17815
+ }),
17816
+ listLocalModels: method(z.object({}), z.array(LlmNodeModelSchema)),
17817
+ getDiskUsage: method(z.object({}), LlmRuntimeDiskUsageSchema)
17818
+ }
17819
+ };
17820
+ //#endregion
17821
+ //#region src/capabilities/llm.cap.ts
17822
+ /**
17823
+ * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
17824
+ * methods concat-fan across providers; single-row methods route to ONE
17825
+ * provider by the `addonId` in the call input (the notification-output
17826
+ * posture, notification-output.cap.ts:215-250). Provided by `addon-ai`
17827
+ * (hub-placed); the cap stays open for future providers.
17828
+ *
17829
+ * Profiles are ROWS (data), not addons: one row = one usable model endpoint.
17830
+ * `apiKey` is a password field — providers REDACT it on read and merge on
17831
+ * write; a stored key NEVER round-trips to a client.
17832
+ */
17833
+ var LlmProfileKindSchema = z.enum([
17834
+ "openai-compatible",
17835
+ "openai",
17836
+ "anthropic",
17837
+ "google",
17838
+ "managed-local"
17839
+ ]);
17840
+ var LlmProfileSchema = z.object({
17841
+ id: z.string(),
17842
+ name: z.string(),
17843
+ kind: LlmProfileKindSchema,
17844
+ /** Stamped by the provider — keeps the fanned catalog routable. */
17845
+ addonId: z.string(),
17846
+ enabled: z.boolean(),
17847
+ /** Vendor model id, or the managed runtime's loaded model. */
17848
+ model: z.string(),
17849
+ /** Required for openai-compatible; override for cloud kinds. */
17850
+ baseUrl: z.string().optional(),
17851
+ /** ConfigUISchema type:'password' — never round-trips (spec §5). */
17852
+ apiKey: z.string().optional(),
17853
+ supportsVision: z.boolean(),
17854
+ temperature: z.number().min(0).max(2).optional(),
17855
+ maxTokens: z.number().int().positive().optional(),
17856
+ timeoutMs: z.number().int().positive().default(6e4),
17857
+ extraHeaders: z.record(z.string(), z.string()).optional(),
17858
+ /** kind === 'managed-local' only (spec §4). */
17859
+ runtime: ManagedRuntimeConfigSchema.optional()
17860
+ });
17861
+ /** ConfigUISchema tree passed through untyped on the wire (the
17862
+ * notification-output `ConfigSchemaPassthrough` precedent at
17863
+ * notification-output.cap.ts:151); the exported TS type re-tightens it. */
17864
+ var ConfigSchemaPassthrough = z.unknown();
17865
+ var LlmProfileKindDescriptorSchema = z.object({
17866
+ kind: LlmProfileKindSchema,
17867
+ label: z.string(),
17868
+ icon: z.string(),
17869
+ /** Stamped by each provider so the concat-fanned catalog stays routable. */
17870
+ addonId: z.string(),
17871
+ configSchema: ConfigSchemaPassthrough
17872
+ });
17873
+ var LlmDefaultSelectorSchema = z.union([z.object({ consumer: z.string() }), z.object({ purpose: z.enum(["text", "vision"]) })]);
17874
+ var LlmDefaultSchema = z.object({
17875
+ selector: LlmDefaultSelectorSchema,
17876
+ profileId: z.string()
17877
+ });
17878
+ /** Server-side rollup row — getUsage never dumps raw call rows (spec §6). */
17879
+ var LlmUsageRollupSchema = z.object({
17880
+ day: z.string(),
17881
+ consumer: z.string(),
17882
+ profileId: z.string(),
17883
+ calls: z.number(),
17884
+ okCalls: z.number(),
17885
+ errorCalls: z.number(),
17886
+ inputTokens: z.number(),
17887
+ outputTokens: z.number(),
17888
+ avgLatencyMs: z.number()
17889
+ });
17890
+ /** LLM-facing view over the reused ModelCatalogEntry mechanism (spec §4.2). */
17891
+ var ManagedModelCatalogEntrySchema = z.object({
17892
+ id: z.string(),
17893
+ label: z.string(),
17894
+ family: z.string(),
17895
+ purpose: z.enum(["text", "vision"]),
17896
+ url: z.string(),
17897
+ sha256: z.string(),
17898
+ sizeBytes: z.number(),
17899
+ quantization: z.string(),
17900
+ /** Load-time guidance shown in the picker. */
17901
+ minRamBytes: z.number(),
17902
+ contextSizeDefault: z.number().int(),
17903
+ /** Vision models: companion projector file. */
17904
+ mmprojUrl: z.string().optional()
17905
+ });
17906
+ var LlmRuntimeNodeSchema = z.object({
17907
+ nodeId: z.string(),
17908
+ reachable: z.boolean(),
17909
+ status: LlmRuntimeStatusSchema.optional(),
17910
+ disk: LlmRuntimeDiskUsageSchema.optional(),
17911
+ error: z.string().optional()
17912
+ });
17913
+ var GenerateVisionInputSchema = LlmGenerateBaseInputSchema.extend({ images: z.array(LlmImageSchema).min(1) });
17914
+ var ProfileRefInputSchema = z.object({
17915
+ addonId: z.string(),
17916
+ profileId: z.string()
17917
+ });
17918
+ var llmCapability = {
17919
+ name: "llm",
17920
+ scope: "system",
17921
+ mode: "collection",
17922
+ internal: false,
17923
+ providerKind: "ai",
17924
+ /** `nodeId` inputs below are DATA (the hub provider pins itself), never routing. */
17925
+ nodeIdMode: "data",
17926
+ methods: {
17927
+ generate: method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }),
17928
+ generateVision: method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }),
17929
+ listProfileKinds: method(z.object({}), z.array(LlmProfileKindDescriptorSchema)),
17930
+ listProfiles: method(z.object({}), z.array(LlmProfileSchema)),
17931
+ upsertProfile: method(z.object({ profile: LlmProfileSchema }), LlmProfileSchema, {
17932
+ kind: "mutation",
17933
+ auth: "admin"
17934
+ }),
17935
+ deleteProfile: method(ProfileRefInputSchema, z.void(), {
17936
+ kind: "mutation",
17937
+ auth: "admin"
17938
+ }),
17939
+ testProfile: method(ProfileRefInputSchema, LlmGenerateResultSchema, {
17940
+ kind: "mutation",
17941
+ auth: "admin"
17942
+ }),
17943
+ /** Live vendor enumeration (GET /models etc.). */
17944
+ listModels: method(ProfileRefInputSchema, z.array(z.string())),
17945
+ getDefaults: method(z.object({}), z.array(LlmDefaultSchema)),
17946
+ setDefault: method(z.object({
17947
+ selector: LlmDefaultSelectorSchema,
17948
+ profileId: z.string().nullable()
17949
+ }), z.void(), {
17950
+ kind: "mutation",
17951
+ auth: "admin"
17952
+ }),
17953
+ getUsage: method(z.object({
17954
+ since: z.number().optional(),
17955
+ until: z.number().optional(),
17956
+ consumer: z.string().optional(),
17957
+ profileId: z.string().optional()
17958
+ }), z.array(LlmUsageRollupSchema)),
17959
+ listModelCatalog: method(z.object({}), z.array(ManagedModelCatalogEntrySchema)),
17960
+ listRuntimeNodes: method(z.object({}), z.array(LlmRuntimeNodeSchema)),
17961
+ listNodeModels: method(z.object({ nodeId: z.string() }), z.array(LlmNodeModelSchema)),
17962
+ installModel: method(z.object({
17963
+ nodeId: z.string(),
17964
+ model: ManagedModelRefSchema
17965
+ }), z.void(), {
17966
+ kind: "mutation",
17967
+ auth: "admin"
17968
+ }),
17969
+ deleteModel: method(z.object({
17970
+ nodeId: z.string(),
17971
+ file: z.string()
17972
+ }), z.void(), {
17973
+ kind: "mutation",
17974
+ auth: "admin"
17975
+ }),
17976
+ getRuntimeStatus: method(ProfileRefInputSchema, LlmRuntimeStatusSchema),
17977
+ startRuntime: method(ProfileRefInputSchema, LlmRuntimeStatusSchema, {
17978
+ kind: "mutation",
17979
+ auth: "admin"
17980
+ }),
17981
+ stopRuntime: method(ProfileRefInputSchema, z.void(), {
17982
+ kind: "mutation",
17983
+ auth: "admin"
17984
+ })
17985
+ }
17986
+ };
17987
+ //#endregion
17288
17988
  //#region src/schemas/auth-records.ts
17289
17989
  /**
17290
17990
  * Zod schemas for persisted record types.
@@ -17498,6 +18198,22 @@ var TrackSnapshotSchema = z.object({
17498
18198
  /** MediaStore key; resolve via `getTrackMedia({ trackId })`. */
17499
18199
  mediaKey: z.string()
17500
18200
  });
18201
+ /**
18202
+ * One audio-classification label heard on the track's camera while the
18203
+ * track was alive, aggregated per label. An "episode" is one persisted
18204
+ * audio event (the confident-classification path: score ≥ the device's
18205
+ * `classificationMinScore`, class-change-or-heartbeat coalesced) — NOT
18206
+ * one 32 ms inference chunk, so counts stay human-scaled.
18207
+ */
18208
+ var TrackAudioLabelSchema = z.object({
18209
+ label: z.string(),
18210
+ /** Highest classification score observed across the label's episodes. */
18211
+ peakScore: z.number(),
18212
+ /** Number of coalesced audio-event episodes carrying this label. */
18213
+ count: z.number(),
18214
+ firstAt: z.number(),
18215
+ lastAt: z.number()
18216
+ });
17501
18217
  var TrackSchema = z.object({
17502
18218
  trackId: z.string(),
17503
18219
  deviceId: z.number(),
@@ -17512,6 +18228,10 @@ var TrackSchema = z.object({
17512
18228
  snapshots: z.array(TrackSnapshotSchema).readonly(),
17513
18229
  /** Deduplicated zones the track has entered at least once. */
17514
18230
  zonesVisited: z.array(z.string()).readonly(),
18231
+ /** Deduplicated set of detector classes observed for this track over its
18232
+ * life (a track may be reclassified, e.g. person→vehicle). Absent on
18233
+ * legacy rows written before class accumulation shipped. */
18234
+ classes: z.array(z.string()).readonly().optional(),
17515
18235
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17516
18236
  totalDistance: z.number(),
17517
18237
  state: TrackStateSchema,
@@ -17525,7 +18245,11 @@ var TrackSchema = z.object({
17525
18245
  bestEventId: z.string().optional(),
17526
18246
  /** Tag of the importance sub-signal that dominated the score
17527
18247
  * (identity|dwell|proximity|class|confidence|travel|zone). */
17528
- importanceReason: z.string().optional()
18248
+ importanceReason: z.string().optional(),
18249
+ /** Audio-classification labels heard on the camera during the track's
18250
+ * life (score ≥ device `classificationMinScore`), aggregated per label.
18251
+ * Absent on legacy rows / tracks with no confident audio. */
18252
+ audioLabels: z.array(TrackAudioLabelSchema).readonly().optional()
17529
18253
  });
17530
18254
  var BaseEventFields = {
17531
18255
  id: z.string(),
@@ -17681,6 +18405,23 @@ var TrackedDetectionSchema = z.object({
17681
18405
  zones: z.array(z.string()).readonly(),
17682
18406
  state: TrackStateSchema
17683
18407
  });
18408
+ var OverlayDetectionSchema = z.looseObject({
18409
+ id: z.string(),
18410
+ kind: z.enum(["first-level", "detail"]),
18411
+ macroClass: z.string(),
18412
+ score: z.number(),
18413
+ bbox: z.object({
18414
+ x: z.number(),
18415
+ y: z.number(),
18416
+ width: z.number(),
18417
+ height: z.number()
18418
+ }),
18419
+ labels: z.array(z.looseObject({
18420
+ label: z.string(),
18421
+ score: z.number()
18422
+ })).readonly(),
18423
+ parentId: z.string().optional()
18424
+ });
17684
18425
  var ScoredObjectEventSchema = ObjectEventSchema.extend({ score: z.number() });
17685
18426
  var SearchObjectEventsInput = z.object({
17686
18427
  text: z.string(),
@@ -17691,6 +18432,20 @@ var SearchObjectEventsInput = z.object({
17691
18432
  limit: z.number().default(50),
17692
18433
  minScore: z.number().min(0).max(1).default(.2)
17693
18434
  });
18435
+ var TrackCascadeCountsSchema = z.object({
18436
+ /** Persisted track roots deleted (authoritative). */
18437
+ tracks: z.number().int(),
18438
+ /** Object events removed with their tracks (best-effort; see note above). */
18439
+ events: z.number().int(),
18440
+ /** Track/face/plate-owned media removed (best-effort). Never identity media. */
18441
+ media: z.number().int(),
18442
+ /** Unassigned (non-enrolled) face reads removed (best-effort). */
18443
+ faces: z.number().int(),
18444
+ /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
18445
+ plates: z.number().int(),
18446
+ /** Per-track CLIP search vectors removed (best-effort). */
18447
+ embeddings: z.number().int()
18448
+ });
17694
18449
  var pipelineAnalyticsCapability = {
17695
18450
  name: "pipeline-analytics",
17696
18451
  scope: "device",
@@ -17744,12 +18499,14 @@ var pipelineAnalyticsCapability = {
17744
18499
  audio: z.number().int()
17745
18500
  })).readonly()),
17746
18501
  /**
17747
- * Delete all events (motion + object + audio) for the given device
17748
- * that are older than `cutoffMs` (exclusive), and delete their
17749
- * thumbnails in lockstep. Returns per-kind deleted counts.
17750
- *
17751
- * Called by Phase B3 recorder orchestration to keep event history
17752
- * aligned with available footage.
18502
+ * @deprecated Prefer `pruneTracksBefore` the track is the ROOT of the
18503
+ * analytics model and retention must cascade from it (design §5.1). This
18504
+ * event-only prune leaves orphaned tracks/faces/plates/embeddings behind.
18505
+ * Retained as a compat shim for the Phase-B3 recorder orchestration caller,
18506
+ * which prunes events to keep history aligned with available footage and
18507
+ * reads the per-kind counts. Delete all events (motion + object + audio)
18508
+ * for the given device older than `cutoffMs` (exclusive) + their thumbnails
18509
+ * in lockstep; returns per-kind deleted counts.
17753
18510
  */
17754
18511
  pruneEventsBefore: method(z.object({
17755
18512
  deviceId: z.number(),
@@ -17762,34 +18519,85 @@ var pipelineAnalyticsCapability = {
17762
18519
  kind: "mutation",
17763
18520
  auth: "admin"
17764
18521
  }),
17765
- getEventMedia: method(z.object({
17766
- eventId: z.string(),
17767
- kind: MediaFileKindEnum.optional()
17768
- }), z.array(MediaFileSchema).readonly()),
17769
- getTrackMedia: method(z.object({ trackId: z.string() }), z.array(MediaFileSchema).readonly()),
17770
18522
  /**
17771
- * Search object events by text query using CLIP cosine similarity.
17772
- * Encodes `text` via the `embedding-encoder` cap, queries the
17773
- * `ObjectEmbeddingStore` with optional prefilters, ranks all matching
17774
- * embeddings by cosine similarity, and joins winners to their
17775
- * ObjectEvents by trackId. Returns up to `limit` events scored
17776
- * `minScore`, sorted descending by score.
18523
+ * Track-centric retention entry point (design §5.1). Selects every
18524
+ * persisted track for the device whose `lastSeen < cutoffMs` (paged) and
18525
+ * runs the extensible whole-track deletion cascade (design §3): object
18526
+ * events + their media, track/face/plate-owned media, unassigned face
18527
+ * reads, per-track CLIP embeddings, then the track root LAST. ENROLLED
18528
+ * (assigned) faces/plates and `ownerKind:'identity'` media are exempt
18529
+ * the durable matching gallery always persists. Fires the per-track
18530
+ * live-state cleanup so a pruned track can't linger in dispatch/overlay
18531
+ * state. Returns per-family deleted counts (`tracks` authoritative).
18532
+ *
18533
+ * Replaces `pruneEventsBefore` as the correct time-based retention prune.
17777
18534
  */
17778
- searchObjectEvents: method(SearchObjectEventsInput, z.array(ScoredObjectEventSchema).readonly())
17779
- },
17780
- events: {
17781
- /**
17782
- * Enriched frame emitted after refinement. Carries lightweight
17783
- * tracked-detection metadata (track id, class, zones, state) so
17784
- * downstream consumers (stream overlays, notifications) can
17785
- * annotate without querying full Track state.
18535
+ pruneTracksBefore: method(z.object({
18536
+ deviceId: z.number(),
18537
+ cutoffMs: z.number()
18538
+ }), TrackCascadeCountsSchema, {
18539
+ kind: "mutation",
18540
+ auth: "admin"
18541
+ }),
18542
+ /**
18543
+ * Operator "clean slate" for a device (design §5.3): prune EVERY track for
18544
+ * the device via the same cascade as `pruneTracksBefore` with `cutoffMs =
18545
+ * now`. One call per device — no client-side track enumeration. Enrolled
18546
+ * gallery + identity media are exempt (design §4). Returns per-family
18547
+ * deleted counts.
18548
+ */
18549
+ wipeAllAnalytics: method(z.object({ deviceId: z.number() }), TrackCascadeCountsSchema, {
18550
+ kind: "mutation",
18551
+ auth: "admin"
18552
+ }),
18553
+ /**
18554
+ * Delete whole tracks (object events) by id for the given device,
18555
+ * cascading their media in lockstep. Returns the number of tracks
18556
+ * actually deleted plus the ids that could not be removed.
18557
+ *
18558
+ * Operator-driven from the DI Events page (batch delete). Routes through
18559
+ * the same widened track-deletion cascade (design §5.2).
18560
+ */
18561
+ deleteTracks: method(z.object({
18562
+ deviceId: z.number(),
18563
+ trackIds: z.array(z.string()).min(1)
18564
+ }), z.object({
18565
+ deleted: z.number().int(),
18566
+ failed: z.array(z.string()).readonly()
18567
+ }), {
18568
+ kind: "mutation",
18569
+ auth: "admin"
18570
+ }),
18571
+ getEventMedia: method(z.object({
18572
+ eventId: z.string(),
18573
+ kind: MediaFileKindEnum.optional()
18574
+ }), z.array(MediaFileSchema).readonly()),
18575
+ getTrackMedia: method(z.object({ trackId: z.string() }), z.array(MediaFileSchema).readonly()),
18576
+ /**
18577
+ * Search object events by text query using CLIP cosine similarity.
18578
+ * Encodes `text` via the `embedding-encoder` cap, queries the
18579
+ * `ObjectEmbeddingStore` with optional prefilters, ranks all matching
18580
+ * embeddings by cosine similarity, and joins winners to their
18581
+ * ObjectEvents by trackId. Returns up to `limit` events scored ≥
18582
+ * `minScore`, sorted descending by score.
18583
+ */
18584
+ searchObjectEvents: method(SearchObjectEventsInput, z.array(ScoredObjectEventSchema).readonly())
18585
+ },
18586
+ events: {
18587
+ /**
18588
+ * Enriched frame emitted after refinement — the live-overlay source of
18589
+ * truth (two-plane re-injection). Carries the frame's detections in the
18590
+ * `ObjectDetection` wire shape: first-level roots (with track info +
18591
+ * enrichment labels) plus synthesized `kind:'detail'` face/plate entries
18592
+ * re-projected from per-track detail state, so stream overlays render
18593
+ * boxes + recognized names without querying full Track state.
17786
18594
  */
17787
18595
  onFrameTracked: { data: z.object({
17788
18596
  deviceId: z.number(),
17789
18597
  timestamp: z.number(),
17790
18598
  frameWidth: z.number(),
17791
18599
  frameHeight: z.number(),
17792
- detections: z.array(TrackedDetectionSchema).readonly()
18600
+ detections: z.array(OverlayDetectionSchema).readonly()
17793
18601
  }) },
17794
18602
  /** Track entered active state (first-seen). */
17795
18603
  onTrackStarted: { data: z.object({
@@ -21841,6 +22649,24 @@ setOverlay: method(z.object({
21841
22649
  };
21842
22650
  //#endregion
21843
22651
  //#region src/capabilities/plate-gallery.cap.ts
22652
+ var VehicleSchema = z.object({
22653
+ id: z.string(),
22654
+ name: z.string(),
22655
+ sampleCount: z.number().int().nonnegative(),
22656
+ coverMediaKey: z.string().optional(),
22657
+ /** Inline base64 of the cover sample's plate crop, resolved from `coverMediaKey`. */
22658
+ coverBase64: z.string().optional()
22659
+ });
22660
+ var VehicleSampleInfoSchema = z.object({
22661
+ id: z.string(),
22662
+ /** The plate text this sample enrolled (self-labeling — no embedding). */
22663
+ text: z.string(),
22664
+ /** OCR confidence of the enrolled read (0..1). */
22665
+ score: z.number(),
22666
+ addedAt: z.number().int(),
22667
+ deviceId: z.number().int().optional(),
22668
+ base64: z.string().optional()
22669
+ });
21844
22670
  var PlateInfoSchema = z.object({
21845
22671
  plateId: z.string(),
21846
22672
  deviceId: z.number().int(),
@@ -21852,6 +22678,16 @@ var PlateInfoSchema = z.object({
21852
22678
  score: z.number(),
21853
22679
  /** True when the text was manually corrected (exempt from retention). */
21854
22680
  corrected: z.boolean(),
22681
+ /** Recognized vehicle id when a matcher lookup named this read (SQL NULL → absent). */
22682
+ recognizedVehicleId: z.string().optional(),
22683
+ /** Resolved vehicle name for `recognizedVehicleId` (UI convenience). */
22684
+ vehicleName: z.string().optional(),
22685
+ /** True once the read was assigned to a vehicle (enrolled as a sample). */
22686
+ assigned: z.boolean(),
22687
+ /** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
22688
+ plateBbox: BoundingBoxSchema.optional(),
22689
+ /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
22690
+ keyFrameMediaKey: z.string().optional(),
21855
22691
  base64: z.string().optional()
21856
22692
  });
21857
22693
  var MediaFileLiteSchema = z.object({
@@ -21913,6 +22749,58 @@ var plateGalleryCapability = {
21913
22749
  deletePlate: method(z.object({ plateId: z.string() }), z.void(), {
21914
22750
  kind: "mutation",
21915
22751
  auth: "admin"
22752
+ }),
22753
+ listVehicles: method(z.void(), z.array(VehicleSchema).readonly()),
22754
+ createVehicle: method(z.object({ name: z.string().min(1) }), VehicleSchema, {
22755
+ kind: "mutation",
22756
+ auth: "admin"
22757
+ }),
22758
+ renameVehicle: method(z.object({
22759
+ id: z.string(),
22760
+ name: z.string().min(1)
22761
+ }), z.void(), {
22762
+ kind: "mutation",
22763
+ auth: "admin"
22764
+ }),
22765
+ deleteVehicle: method(z.object({ id: z.string() }), z.void(), {
22766
+ kind: "mutation",
22767
+ auth: "admin"
22768
+ }),
22769
+ listVehicleSamples: method(z.object({ vehicleId: z.string() }), z.array(VehicleSampleInfoSchema).readonly()),
22770
+ removeVehicleSample: method(z.object({
22771
+ vehicleId: z.string(),
22772
+ sampleId: z.string()
22773
+ }), z.void(), {
22774
+ kind: "mutation",
22775
+ auth: "admin"
22776
+ }),
22777
+ assignPlate: method(z.object({
22778
+ plateId: z.string(),
22779
+ vehicleId: z.string()
22780
+ }), z.void(), {
22781
+ kind: "mutation",
22782
+ auth: "admin"
22783
+ }),
22784
+ unassignPlate: method(z.object({ plateId: z.string() }), z.void(), {
22785
+ kind: "mutation",
22786
+ auth: "admin"
22787
+ }),
22788
+ assignPlates: method(z.object({
22789
+ plateIds: z.array(z.string()).min(1),
22790
+ vehicleId: z.string()
22791
+ }), z.object({
22792
+ assigned: z.number().int(),
22793
+ failed: z.array(z.string()).readonly()
22794
+ }), {
22795
+ kind: "mutation",
22796
+ auth: "admin"
22797
+ }),
22798
+ unassignPlates: method(z.object({ plateIds: z.array(z.string()).min(1) }), z.object({
22799
+ unassigned: z.number().int(),
22800
+ failed: z.array(z.string()).readonly()
22801
+ }), {
22802
+ kind: "mutation",
22803
+ auth: "admin"
21916
22804
  })
21917
22805
  }
21918
22806
  };
@@ -21996,6 +22884,10 @@ var GpuInfoSchema = z.object({
21996
22884
  memoryMB: z.number().optional()
21997
22885
  });
21998
22886
  var NpuInfoSchema = z.object({ type: z.enum(["apple-ane", "intel-npu"]) });
22887
+ var CoralInfoSchema = z.object({
22888
+ type: z.literal("coral-edgetpu"),
22889
+ bus: z.string().optional()
22890
+ });
21999
22891
  var HardwareInfoSchema = z.object({
22000
22892
  platform: HardwarePlatformSchema,
22001
22893
  arch: HardwareArchSchema,
@@ -22004,7 +22896,8 @@ var HardwareInfoSchema = z.object({
22004
22896
  totalRAM_MB: z.number(),
22005
22897
  availableRAM_MB: z.number(),
22006
22898
  gpu: GpuInfoSchema.nullable(),
22007
- npu: NpuInfoSchema.nullable()
22899
+ npu: NpuInfoSchema.nullable(),
22900
+ coral: CoralInfoSchema.nullable().optional()
22008
22901
  });
22009
22902
  var PlatformScoreSchema = z.object({
22010
22903
  runtime: z.enum(["node", "python"]),
@@ -23111,6 +24004,8 @@ var CAPABILITY_NAMES = {
23111
24004
  integrations: "integrations",
23112
24005
  intercom: "intercom",
23113
24006
  lawnMowerControl: "lawn-mower-control",
24007
+ llm: "llm",
24008
+ llmRuntime: "llm-runtime",
23114
24009
  localNetwork: "local-network",
23115
24010
  lockControl: "lock-control",
23116
24011
  logDestination: "log-destination",
@@ -23149,6 +24044,7 @@ var CAPABILITY_NAMES = {
23149
24044
  ptzAutotrack: "ptz-autotrack",
23150
24045
  reboot: "reboot",
23151
24046
  recording: "recording",
24047
+ sceneMonitor: "scene-monitor",
23152
24048
  scriptRunner: "script-runner",
23153
24049
  serverManagement: "server-management",
23154
24050
  settingsStore: "settings-store",
@@ -23453,6 +24349,14 @@ var CAPABILITY_ROUTER_KEYS = [
23453
24349
  key: "lawnMowerControl",
23454
24350
  name: "lawn-mower-control"
23455
24351
  },
24352
+ {
24353
+ key: "llm",
24354
+ name: "llm"
24355
+ },
24356
+ {
24357
+ key: "llmRuntime",
24358
+ name: "llm-runtime"
24359
+ },
23456
24360
  {
23457
24361
  key: "localNetwork",
23458
24362
  name: "local-network"
@@ -23605,6 +24509,10 @@ var CAPABILITY_ROUTER_KEYS = [
23605
24509
  key: "recording",
23606
24510
  name: "recording"
23607
24511
  },
24512
+ {
24513
+ key: "sceneMonitor",
24514
+ name: "scene-monitor"
24515
+ },
23608
24516
  {
23609
24517
  key: "scriptRunner",
23610
24518
  name: "script-runner"
@@ -23815,6 +24723,8 @@ var ALL_CAPABILITY_DEFINITIONS = [
23815
24723
  integrationsCapability,
23816
24724
  intercomCapability,
23817
24725
  lawnMowerControlCapability,
24726
+ llmCapability,
24727
+ llmRuntimeCapability,
23818
24728
  localNetworkCapability,
23819
24729
  lockControlCapability,
23820
24730
  logDestinationCapability,
@@ -23853,6 +24763,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
23853
24763
  ptzAutotrackCapability,
23854
24764
  rebootCapability,
23855
24765
  recordingCapability,
24766
+ sceneMonitorCapability,
23856
24767
  scriptRunnerCapability,
23857
24768
  serverManagementCapability,
23858
24769
  settingsStoreCapability,
@@ -23949,6 +24860,7 @@ var CAP_NAMES_WITH_STATUS = [
23949
24860
  "ptz",
23950
24861
  "ptz-autotrack",
23951
24862
  "recording",
24863
+ "scene-monitor",
23952
24864
  "script-runner",
23953
24865
  "smoke",
23954
24866
  "snapshot",
@@ -25874,6 +26786,168 @@ var METHOD_ACCESS_MAP = Object.freeze({
25874
26786
  addonId: null,
25875
26787
  access: "create"
25876
26788
  },
26789
+ "llm.deleteModel": {
26790
+ capName: "llm",
26791
+ capScope: "system",
26792
+ addonId: null,
26793
+ access: "delete"
26794
+ },
26795
+ "llm.deleteProfile": {
26796
+ capName: "llm",
26797
+ capScope: "system",
26798
+ addonId: null,
26799
+ access: "delete"
26800
+ },
26801
+ "llm.generate": {
26802
+ capName: "llm",
26803
+ capScope: "system",
26804
+ addonId: null,
26805
+ access: "create"
26806
+ },
26807
+ "llm.generateVision": {
26808
+ capName: "llm",
26809
+ capScope: "system",
26810
+ addonId: null,
26811
+ access: "create"
26812
+ },
26813
+ "llm.getDefaults": {
26814
+ capName: "llm",
26815
+ capScope: "system",
26816
+ addonId: null,
26817
+ access: "view"
26818
+ },
26819
+ "llm.getRuntimeStatus": {
26820
+ capName: "llm",
26821
+ capScope: "system",
26822
+ addonId: null,
26823
+ access: "view"
26824
+ },
26825
+ "llm.getUsage": {
26826
+ capName: "llm",
26827
+ capScope: "system",
26828
+ addonId: null,
26829
+ access: "view"
26830
+ },
26831
+ "llm.installModel": {
26832
+ capName: "llm",
26833
+ capScope: "system",
26834
+ addonId: null,
26835
+ access: "create"
26836
+ },
26837
+ "llm.listModelCatalog": {
26838
+ capName: "llm",
26839
+ capScope: "system",
26840
+ addonId: null,
26841
+ access: "view"
26842
+ },
26843
+ "llm.listModels": {
26844
+ capName: "llm",
26845
+ capScope: "system",
26846
+ addonId: null,
26847
+ access: "view"
26848
+ },
26849
+ "llm.listNodeModels": {
26850
+ capName: "llm",
26851
+ capScope: "system",
26852
+ addonId: null,
26853
+ access: "view"
26854
+ },
26855
+ "llm.listProfileKinds": {
26856
+ capName: "llm",
26857
+ capScope: "system",
26858
+ addonId: null,
26859
+ access: "view"
26860
+ },
26861
+ "llm.listProfiles": {
26862
+ capName: "llm",
26863
+ capScope: "system",
26864
+ addonId: null,
26865
+ access: "view"
26866
+ },
26867
+ "llm.listRuntimeNodes": {
26868
+ capName: "llm",
26869
+ capScope: "system",
26870
+ addonId: null,
26871
+ access: "view"
26872
+ },
26873
+ "llm.setDefault": {
26874
+ capName: "llm",
26875
+ capScope: "system",
26876
+ addonId: null,
26877
+ access: "create"
26878
+ },
26879
+ "llm.startRuntime": {
26880
+ capName: "llm",
26881
+ capScope: "system",
26882
+ addonId: null,
26883
+ access: "create"
26884
+ },
26885
+ "llm.stopRuntime": {
26886
+ capName: "llm",
26887
+ capScope: "system",
26888
+ addonId: null,
26889
+ access: "create"
26890
+ },
26891
+ "llm.testProfile": {
26892
+ capName: "llm",
26893
+ capScope: "system",
26894
+ addonId: null,
26895
+ access: "create"
26896
+ },
26897
+ "llm.upsertProfile": {
26898
+ capName: "llm",
26899
+ capScope: "system",
26900
+ addonId: null,
26901
+ access: "create"
26902
+ },
26903
+ "llmRuntime.complete": {
26904
+ capName: "llm-runtime",
26905
+ capScope: "system",
26906
+ addonId: null,
26907
+ access: "create"
26908
+ },
26909
+ "llmRuntime.deleteModel": {
26910
+ capName: "llm-runtime",
26911
+ capScope: "system",
26912
+ addonId: null,
26913
+ access: "delete"
26914
+ },
26915
+ "llmRuntime.ensureStarted": {
26916
+ capName: "llm-runtime",
26917
+ capScope: "system",
26918
+ addonId: null,
26919
+ access: "create"
26920
+ },
26921
+ "llmRuntime.getDiskUsage": {
26922
+ capName: "llm-runtime",
26923
+ capScope: "system",
26924
+ addonId: null,
26925
+ access: "view"
26926
+ },
26927
+ "llmRuntime.installModel": {
26928
+ capName: "llm-runtime",
26929
+ capScope: "system",
26930
+ addonId: null,
26931
+ access: "create"
26932
+ },
26933
+ "llmRuntime.listLocalModels": {
26934
+ capName: "llm-runtime",
26935
+ capScope: "system",
26936
+ addonId: null,
26937
+ access: "view"
26938
+ },
26939
+ "llmRuntime.status": {
26940
+ capName: "llm-runtime",
26941
+ capScope: "system",
26942
+ addonId: null,
26943
+ access: "view"
26944
+ },
26945
+ "llmRuntime.stop": {
26946
+ capName: "llm-runtime",
26947
+ capScope: "system",
26948
+ addonId: null,
26949
+ access: "create"
26950
+ },
25877
26951
  "localNetwork.getAllowedAddresses": {
25878
26952
  capName: "local-network",
25879
26953
  capScope: "system",
@@ -26504,6 +27578,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
26504
27578
  addonId: null,
26505
27579
  access: "delete"
26506
27580
  },
27581
+ "pipelineAnalytics.deleteTracks": {
27582
+ capName: "pipeline-analytics",
27583
+ capScope: "device",
27584
+ addonId: null,
27585
+ access: "delete"
27586
+ },
26507
27587
  "pipelineAnalytics.getActiveTracks": {
26508
27588
  capName: "pipeline-analytics",
26509
27589
  capScope: "device",
@@ -26570,12 +27650,24 @@ var METHOD_ACCESS_MAP = Object.freeze({
26570
27650
  addonId: null,
26571
27651
  access: "create"
26572
27652
  },
27653
+ "pipelineAnalytics.pruneTracksBefore": {
27654
+ capName: "pipeline-analytics",
27655
+ capScope: "device",
27656
+ addonId: null,
27657
+ access: "create"
27658
+ },
26573
27659
  "pipelineAnalytics.searchObjectEvents": {
26574
27660
  capName: "pipeline-analytics",
26575
27661
  capScope: "device",
26576
27662
  addonId: null,
26577
27663
  access: "view"
26578
27664
  },
27665
+ "pipelineAnalytics.wipeAllAnalytics": {
27666
+ capName: "pipeline-analytics",
27667
+ capScope: "device",
27668
+ addonId: null,
27669
+ access: "delete"
27670
+ },
26579
27671
  "pipelineExecutor.cacheFrameInPool": {
26580
27672
  capName: "pipeline-executor",
26581
27673
  capScope: "system",
@@ -27080,18 +28172,42 @@ var METHOD_ACCESS_MAP = Object.freeze({
27080
28172
  addonId: null,
27081
28173
  access: "create"
27082
28174
  },
28175
+ "plateGallery.assignPlate": {
28176
+ capName: "plate-gallery",
28177
+ capScope: "system",
28178
+ addonId: null,
28179
+ access: "create"
28180
+ },
28181
+ "plateGallery.assignPlates": {
28182
+ capName: "plate-gallery",
28183
+ capScope: "system",
28184
+ addonId: null,
28185
+ access: "create"
28186
+ },
27083
28187
  "plateGallery.correctPlateText": {
27084
28188
  capName: "plate-gallery",
27085
28189
  capScope: "system",
27086
28190
  addonId: null,
27087
28191
  access: "create"
27088
28192
  },
28193
+ "plateGallery.createVehicle": {
28194
+ capName: "plate-gallery",
28195
+ capScope: "system",
28196
+ addonId: null,
28197
+ access: "create"
28198
+ },
27089
28199
  "plateGallery.deletePlate": {
27090
28200
  capName: "plate-gallery",
27091
28201
  capScope: "system",
27092
28202
  addonId: null,
27093
28203
  access: "delete"
27094
28204
  },
28205
+ "plateGallery.deleteVehicle": {
28206
+ capName: "plate-gallery",
28207
+ capScope: "system",
28208
+ addonId: null,
28209
+ access: "delete"
28210
+ },
27095
28211
  "plateGallery.getPlateByTrack": {
27096
28212
  capName: "plate-gallery",
27097
28213
  capScope: "system",
@@ -27110,6 +28226,30 @@ var METHOD_ACCESS_MAP = Object.freeze({
27110
28226
  addonId: null,
27111
28227
  access: "view"
27112
28228
  },
28229
+ "plateGallery.listVehicles": {
28230
+ capName: "plate-gallery",
28231
+ capScope: "system",
28232
+ addonId: null,
28233
+ access: "view"
28234
+ },
28235
+ "plateGallery.listVehicleSamples": {
28236
+ capName: "plate-gallery",
28237
+ capScope: "system",
28238
+ addonId: null,
28239
+ access: "view"
28240
+ },
28241
+ "plateGallery.removeVehicleSample": {
28242
+ capName: "plate-gallery",
28243
+ capScope: "system",
28244
+ addonId: null,
28245
+ access: "delete"
28246
+ },
28247
+ "plateGallery.renameVehicle": {
28248
+ capName: "plate-gallery",
28249
+ capScope: "system",
28250
+ addonId: null,
28251
+ access: "create"
28252
+ },
27113
28253
  "plateGallery.searchPlates": {
27114
28254
  capName: "plate-gallery",
27115
28255
  capScope: "system",
@@ -27122,6 +28262,18 @@ var METHOD_ACCESS_MAP = Object.freeze({
27122
28262
  addonId: null,
27123
28263
  access: "view"
27124
28264
  },
28265
+ "plateGallery.unassignPlate": {
28266
+ capName: "plate-gallery",
28267
+ capScope: "system",
28268
+ addonId: null,
28269
+ access: "create"
28270
+ },
28271
+ "plateGallery.unassignPlates": {
28272
+ capName: "plate-gallery",
28273
+ capScope: "system",
28274
+ addonId: null,
28275
+ access: "create"
28276
+ },
27125
28277
  "platformProbe.getCapabilities": {
27126
28278
  capName: "platform-probe",
27127
28279
  capScope: "system",
@@ -27314,6 +28466,48 @@ var METHOD_ACCESS_MAP = Object.freeze({
27314
28466
  addonId: null,
27315
28467
  access: "create"
27316
28468
  },
28469
+ "sceneMonitor.captureReference": {
28470
+ capName: "scene-monitor",
28471
+ capScope: "device",
28472
+ addonId: null,
28473
+ access: "create"
28474
+ },
28475
+ "sceneMonitor.createScene": {
28476
+ capName: "scene-monitor",
28477
+ capScope: "device",
28478
+ addonId: null,
28479
+ access: "create"
28480
+ },
28481
+ "sceneMonitor.deleteReference": {
28482
+ capName: "scene-monitor",
28483
+ capScope: "device",
28484
+ addonId: null,
28485
+ access: "delete"
28486
+ },
28487
+ "sceneMonitor.deleteScene": {
28488
+ capName: "scene-monitor",
28489
+ capScope: "device",
28490
+ addonId: null,
28491
+ access: "delete"
28492
+ },
28493
+ "sceneMonitor.listScenes": {
28494
+ capName: "scene-monitor",
28495
+ capScope: "device",
28496
+ addonId: null,
28497
+ access: "view"
28498
+ },
28499
+ "sceneMonitor.recheckNow": {
28500
+ capName: "scene-monitor",
28501
+ capScope: "device",
28502
+ addonId: null,
28503
+ access: "create"
28504
+ },
28505
+ "sceneMonitor.updateScene": {
28506
+ capName: "scene-monitor",
28507
+ capScope: "device",
28508
+ addonId: null,
28509
+ access: "create"
28510
+ },
27317
28511
  "scriptRunner.run": {
27318
28512
  capName: "script-runner",
27319
28513
  capScope: "device",
@@ -28447,6 +29641,8 @@ var KNOWN_CAP_NAMES = [
28447
29641
  "integrations",
28448
29642
  "intercom",
28449
29643
  "lawn-mower-control",
29644
+ "llm",
29645
+ "llm-runtime",
28450
29646
  "local-network",
28451
29647
  "lock-control",
28452
29648
  "log-destination",
@@ -28481,6 +29677,7 @@ var KNOWN_CAP_NAMES = [
28481
29677
  "ptz-autotrack",
28482
29678
  "reboot",
28483
29679
  "recording",
29680
+ "scene-monitor",
28484
29681
  "script-runner",
28485
29682
  "server-management",
28486
29683
  "settings-store",
@@ -28551,6 +29748,7 @@ var DEVICE_CAP_NAMES = [
28551
29748
  "ptz",
28552
29749
  "ptz-autotrack",
28553
29750
  "reboot",
29751
+ "scene-monitor",
28554
29752
  "script-runner",
28555
29753
  "snapshot",
28556
29754
  "stream-catalog",
@@ -28594,6 +29792,8 @@ var SYSTEM_CAP_NAMES = [
28594
29792
  "face-gallery",
28595
29793
  "filesystem-browse",
28596
29794
  "integrations",
29795
+ "llm",
29796
+ "llm-runtime",
28597
29797
  "local-network",
28598
29798
  "log-destination",
28599
29799
  "login-method",
@@ -28689,6 +29889,7 @@ var SCOPE_PRESETS = [
28689
29889
  var CAP_PROVIDER_KIND_MAP = Object.freeze({
28690
29890
  "broker": "broker",
28691
29891
  "device-export": "device-export",
29892
+ "llm": "ai",
28692
29893
  "mesh-network": "mesh",
28693
29894
  "mqtt-broker": "broker",
28694
29895
  "network-access": "ingress",
@@ -28698,6 +29899,7 @@ var CAP_PROVIDER_KIND_MAP = Object.freeze({
28698
29899
  var PROVIDER_KIND_CAP_NAMES = [
28699
29900
  "broker",
28700
29901
  "device-export",
29902
+ "llm",
28701
29903
  "mesh-network",
28702
29904
  "mqtt-broker",
28703
29905
  "network-access",
@@ -29034,6 +30236,10 @@ var CPU = {
29034
30236
  value: "cpu",
29035
30237
  label: "CPU"
29036
30238
  };
30239
+ var USB = {
30240
+ value: "usb",
30241
+ label: "Coral USB"
30242
+ };
29037
30243
  var RUNTIMES = [
29038
30244
  {
29039
30245
  id: "onnx",
@@ -29092,6 +30298,12 @@ var RUNTIMES = [
29092
30298
  return out;
29093
30299
  },
29094
30300
  defaultDevice: "all"
30301
+ },
30302
+ {
30303
+ id: "edgetpu",
30304
+ supports: (hw) => hw?.coral != null,
30305
+ devices: () => [USB],
30306
+ defaultDevice: "usb"
29095
30307
  }
29096
30308
  ];
29097
30309
  function def(id) {
@@ -29124,6 +30336,7 @@ function defaultDeviceFor(id) {
29124
30336
  * Delegates to `formatForRuntime` from runtime-mapping.ts.
29125
30337
  */
29126
30338
  function modelFormatForRuntime(id) {
30339
+ if (id === "edgetpu") return "tflite";
29127
30340
  return formatForRuntime(id);
29128
30341
  }
29129
30342
  /**
@@ -29183,4 +30396,4 @@ function scoreRuntimes(hw) {
29183
30396
  };
29184
30397
  }
29185
30398
  //#endregion
29186
- export { ACCESSORY_LABEL, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BATTERY_DEVICE_PROFILE, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStreamSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_FEATURES, DEFAULT_RETENTION, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DEVICE_TYPE_INFO, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetectionSourceSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENT_PAD_MS, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindSchema, EventSourceType, ExportSetupFieldSchema, ExportSetupSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionEvalError, ExpressionParseError, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LabelDefinitionSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoginMethodContributionSchema, LoginStageEnum, MACRO_LABELS, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, METHOD_ACCESS_MAP, MODEL_FORMATS, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, NativeDetectionSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationActionSchema, NotificationFormatSchema, NotificationHistoryEntrySchema, NotificationRuleSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OauthIntegrationDescriptorSchema, ObjectEventSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdStatusSchema, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RESERVED_BINDING_NAMES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingModeSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingRuleSchema, RecordingScheduleSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RenderedAsSchema, ReportMotionInputSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateStateSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TIMEZONES, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestResultSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackSchema, TrackStateSchema, TrackedDetectionSchema, TurnServerSchema, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VibrationStatusSchema, VideoEncodeSchema, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, advancedNotifierCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, applyTransform, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildModelVariantGroups, buildStreamParamsConfigSchema, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, collectHydratedFieldEntries, collectHydratedFieldValues, colorCapability, compileExpression, compileExpressionSafe, connectivityCapability, consumablesCapability, contactCapability, controlCapability, convertUnit, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createExpressionScope, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dayNightCapability, decoderCapability, defaultDeviceFor, defineCustomActions, describeModelVariant, detectionPipelineCapability, deviceAdoptionCapability, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, enumSensorCapability, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateLinkExpression, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, frameworkSwapConfirmSchema, frameworkSwapPackageSchema, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, integrationsCapability, intercomCapability, isAgentOnlyPlacement, isArrayOutputSchema, isDeployableToAgent, isDeviceConfigCap, isEvent, isObjectInput, isVoidInput, jobKindSchema, kebabToCamel, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, localNetworkCapability, locationSimilarity, lockControlCapability, logDestinationCapability, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, migrateConfigToBands, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, osdCapability, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, pendingFrameworkSwapSchema, petFeederCapability, pickPreferredRtspEntry, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readNodePin, readinessKey, rebootCapability, recordingCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveCapMount, resolveDetectionRuntime, resolveDeviceProfile, resolveFormat, resolveHydratedFieldValue, resolveModelFormat, resolveRunnerId, resolveVariantModelId, runInferenceStep, runtimeDevices, scopeKey, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, serverManagementCapability, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, supportedRuntimes, switchCapability, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, textToHtml, toDeviceSummary, toExpressionValue, toStreamSourceEntry, toastCapability, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, valveCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
30399
+ export { ACCESSORY_LABEL, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BATTERY_DEVICE_PROFILE, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStreamSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_FEATURES, DEFAULT_RETENTION, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DEVICE_TYPE_INFO, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetectionSourceSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENT_PAD_MS, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindSchema, EventSourceType, ExportSetupFieldSchema, ExportSetupSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionEvalError, ExpressionParseError, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LabelDefinitionSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmUsageRollupSchema, LlmUsageSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoginMethodContributionSchema, LoginStageEnum, MACRO_LABELS, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, METHOD_ACCESS_MAP, MODEL_FORMATS, ManagedModelCatalogEntrySchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, NativeDetectionSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationActionSchema, NotificationFormatSchema, NotificationHistoryEntrySchema, NotificationRuleSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OauthIntegrationDescriptorSchema, ObjectEventSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdStatusSchema, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RESERVED_BINDING_NAMES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingModeSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingRuleSchema, RecordingScheduleSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RenderedAsSchema, ReportMotionInputSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, SceneCheckSchema, SceneConditionSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusSchema, SceneReferenceSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateStateSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TIMEZONES, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestResultSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackSchema, TrackStateSchema, TrackedDetectionSchema, TurnServerSchema, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VibrationStatusSchema, VideoEncodeSchema, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, advancedNotifierCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, applyTransform, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildModelVariantGroups, buildStreamParamsConfigSchema, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, collectHydratedFieldEntries, collectHydratedFieldValues, colorCapability, compileExpression, compileExpressionSafe, connectivityCapability, consumablesCapability, contactCapability, controlCapability, convertUnit, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createExpressionScope, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dayNightCapability, decoderCapability, defaultDeviceFor, defineCustomActions, describeModelVariant, detectionPipelineCapability, deviceAdoptionCapability, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, enumSensorCapability, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateLinkExpression, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, frameworkSwapConfirmSchema, frameworkSwapPackageSchema, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, integrationsCapability, intercomCapability, isAgentOnlyPlacement, isArrayOutputSchema, isCollectionArrayMethod, isDeployableToAgent, isDeviceConfigCap, isEvent, isObjectInput, isVoidInput, jobKindSchema, kebabToCamel, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, localNetworkCapability, locationSimilarity, lockControlCapability, logDestinationCapability, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, migrateConfigToBands, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, osdCapability, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, pendingFrameworkSwapSchema, petFeederCapability, pickPreferredRtspEntry, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readNodePin, readinessKey, rebootCapability, recordingCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveCapMount, resolveDetectionRuntime, resolveDeviceProfile, resolveFormat, resolveHydratedFieldValue, resolveModelFormat, resolveRunnerId, resolveVariantModelId, runInferenceStep, runtimeDevices, sceneMonitorCapability, scopeKey, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, serverManagementCapability, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, supportedRuntimes, switchCapability, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, textToHtml, toDeviceSummary, toExpressionValue, toStreamSourceEntry, toastCapability, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, valveCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };