@camstack/types 1.2.259 → 1.2.260

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 (46) hide show
  1. package/dist/addon.js +12 -2
  2. package/dist/addon.mjs +12 -2
  3. package/dist/capabilities/camera-streams.cap.d.ts +5 -5
  4. package/dist/capabilities/custom-model-registry.cap.d.ts +0 -12
  5. package/dist/capabilities/decoder.cap.d.ts +12 -12
  6. package/dist/capabilities/index.d.ts +3 -3
  7. package/dist/capabilities/load-contribution.cap.d.ts +2 -2
  8. package/dist/capabilities/model-convert.cap.d.ts +0 -6
  9. package/dist/capabilities/model-distributor.cap.d.ts +0 -12
  10. package/dist/capabilities/motion-detection.cap.d.ts +4 -4
  11. package/dist/capabilities/notification-rules.cap.d.ts +572 -18
  12. package/dist/capabilities/osd-manager.cap.d.ts +1 -1
  13. package/dist/capabilities/pipeline-analytics.cap.d.ts +50 -127
  14. package/dist/capabilities/pipeline-executor.cap.d.ts +78 -120
  15. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +16 -64
  16. package/dist/capabilities/pipeline-runner.cap.d.ts +6 -6
  17. package/dist/capabilities/platform-probe.cap.d.ts +4 -13
  18. package/dist/capabilities/recording-export.cap.d.ts +7 -7
  19. package/dist/capabilities/schemas/detection-shared.d.ts +4 -4
  20. package/dist/capabilities/schemas/streaming-shared.d.ts +8 -8
  21. package/dist/capabilities/stream-broker.cap.d.ts +9 -9
  22. package/dist/capabilities/system.cap.d.ts +2 -2
  23. package/dist/capabilities/vacuum-control.cap.d.ts +13 -13
  24. package/dist/capabilities/videoclips.cap.d.ts +5 -5
  25. package/dist/capabilities/webrtc-session.cap.d.ts +2 -2
  26. package/dist/generated/addon-api.d.ts +9 -9
  27. package/dist/generated/cap-input-defaults.d.ts +1 -1
  28. package/dist/generated/method-device-selectors.d.ts +1 -1
  29. package/dist/index.d.ts +4 -2
  30. package/dist/index.js +1782 -1413
  31. package/dist/index.mjs +1767 -1409
  32. package/dist/interfaces/event-bus.d.ts +1 -1
  33. package/dist/interfaces/pipeline-executor-capability.d.ts +15 -6
  34. package/dist/interfaces/platform.d.ts +2 -2
  35. package/dist/interfaces/stream-broker.d.ts +2 -2
  36. package/dist/notification/system-event-summary.d.ts +83 -0
  37. package/dist/notification/template-vars.d.ts +15 -0
  38. package/dist/{sleep-DtomDrRW.js → sleep-BDYxE1ax.js} +1 -1
  39. package/dist/{sleep-DU7mu4wb.mjs → sleep-BaRu0bS5.mjs} +1 -1
  40. package/dist/types/detection.d.ts +9 -0
  41. package/dist/types/models.d.ts +0 -19
  42. package/dist/types/pipeline-step.d.ts +9 -1
  43. package/dist/types/pipeline.d.ts +2 -1
  44. package/dist/utils/background-run-registry.d.ts +69 -0
  45. package/dist/utils/runtime-mapping.d.ts +9 -54
  46. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as AudioStreamPickSchema, A as DeviceType, At as DATAPLANE_SECRET_HEADER, B as optionalMethod, Bt as WELL_KNOWN_TAB_MAP, C as customAction, Ct as parseProfileBrokerId, D as ChargingStatus, Dt as PEER_BYTES_STALL_MS, E as deviceCustomAction, Et as PEER_BYTES_MAX_OUTSTANDING, F as PROVIDER_PIN_FIELD, Ft as createDurableState, G as readNodePin, Gt as AUDIO_CHUNK_FORMATS, H as systemMethod, Ht as collectHydratedFieldValues, I as event, It as createEvent, J as ReadinessTimeoutError, Jt as isAudioChunkFormat, K as toNodeId, Kt as audioChunkBytesPerSample, L as expandCapMethods, Lt as emitReadiness, M as DEFAULT_RUNTIME_STATE_DURABILITY, Mt as DisposerChain, N as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Nt as BaseAddon, O as DeviceFeature, Ot as PEER_BYTES_TICKET_TTL_MS, P as DEVICE_STATUS_METHOD, Pt as normalizeAddonInitResult, Q as AudioChunkFormatSchema, R as isDeviceConfigCap, Rt as isEvent, S as DEVICE_CHILDREN_BATCH_MAX, St as makeSourceBrokerId, T as describeCustomActions, Tt as PEER_BYTES_CHUNK_BYTES, U as CAP_NODE_PIN_CONTEXT_KEY, Ut as hydrateSchema, V as resolveCapMount, Vt as collectHydratedFieldEntries, W as nodePin, Wt as resolveHydratedFieldValue, X as readinessKey, Y as emitDownForOwnedCaps, Z as scopeKey, _ as createMirrorSource, _t as SubscribeAudioChunksInputSchema, a as asJsonObject, at as CamStreamResolutionSchema, b as deviceOpsCapability, bt as SubscribeFramesResultSchema, c as parseJsonArray, ct as DecodedFrameSchema, d as BOOT_RECOVERY_BACKOFF_MS, dt as FrameHandleSchema, et as BrokerStatsSchema, f as DEVICE_SCOPED_CAPS, ft as ProfileRtspEntrySchema, g as createLazyTrpcSource, gt as StreamSourceSchema, h as createEventBusSliceSource, ht as StreamSourceEntrySchema, i as asJsonArray, it as CamStreamKindSchema, j as adminUiCapability, jt as SHARE_VIEW_KINDS, k as DeviceRole, kt as PeerBytesTicketSchema, l as parseJsonObject, lt as EncodedPacketSchema, m as createDeviceProxy, mt as ProfileSlotStatusSchema, n as sleepCancellable, nt as CAM_PROFILE_ORDER, o as asNumber, ot as CameraStreamSchema, p as isDeviceScopedCap, pt as ProfileSlotSchema, q as ReadinessRegistry, qt as expandAudioChunkToF32le, r as asBoolean, rt as CamProfileSchema, s as asString, st as DecodedAudioChunkSchema, t as sleep, tt as BrokerStatusSchema, u as parseJsonUnknown, ut as FrameHandleFormatSchema, v as createSliceHandle, vt as SubscribeAudioChunksResultSchema, w as defineCustomActions, wt as selectAssignedProfileSlots, x as viewerUiCapability, xt as makeProfileBrokerId, y as RawStateResultSchema, yt as SubscribeFramesInputSchema, z as method, zt as WELL_KNOWN_TABS } from "./sleep-DU7mu4wb.mjs";
1
+ import { $ as AudioStreamPickSchema, A as DeviceType, At as DATAPLANE_SECRET_HEADER, B as optionalMethod, Bt as WELL_KNOWN_TAB_MAP, C as customAction, Ct as parseProfileBrokerId, D as ChargingStatus, Dt as PEER_BYTES_STALL_MS, E as deviceCustomAction, Et as PEER_BYTES_MAX_OUTSTANDING, F as PROVIDER_PIN_FIELD, Ft as createDurableState, G as readNodePin, Gt as AUDIO_CHUNK_FORMATS, H as systemMethod, Ht as collectHydratedFieldValues, I as event, It as createEvent, J as ReadinessTimeoutError, Jt as isAudioChunkFormat, K as toNodeId, Kt as audioChunkBytesPerSample, L as expandCapMethods, Lt as emitReadiness, M as DEFAULT_RUNTIME_STATE_DURABILITY, Mt as DisposerChain, N as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Nt as BaseAddon, O as DeviceFeature, Ot as PEER_BYTES_TICKET_TTL_MS, P as DEVICE_STATUS_METHOD, Pt as normalizeAddonInitResult, Q as AudioChunkFormatSchema, R as isDeviceConfigCap, Rt as isEvent, S as DEVICE_CHILDREN_BATCH_MAX, St as makeSourceBrokerId, T as describeCustomActions, Tt as PEER_BYTES_CHUNK_BYTES, U as CAP_NODE_PIN_CONTEXT_KEY, Ut as hydrateSchema, V as resolveCapMount, Vt as collectHydratedFieldEntries, W as nodePin, Wt as resolveHydratedFieldValue, X as readinessKey, Y as emitDownForOwnedCaps, Z as scopeKey, _ as createMirrorSource, _t as SubscribeAudioChunksInputSchema, a as asJsonObject, at as CamStreamResolutionSchema, b as deviceOpsCapability, bt as SubscribeFramesResultSchema, c as parseJsonArray, ct as DecodedFrameSchema, d as BOOT_RECOVERY_BACKOFF_MS, dt as FrameHandleSchema, et as BrokerStatsSchema, f as DEVICE_SCOPED_CAPS, ft as ProfileRtspEntrySchema, g as createLazyTrpcSource, gt as StreamSourceSchema, h as createEventBusSliceSource, ht as StreamSourceEntrySchema, i as asJsonArray, it as CamStreamKindSchema, j as adminUiCapability, jt as SHARE_VIEW_KINDS, k as DeviceRole, kt as PeerBytesTicketSchema, l as parseJsonObject, lt as EncodedPacketSchema, m as createDeviceProxy, mt as ProfileSlotStatusSchema, n as sleepCancellable, nt as CAM_PROFILE_ORDER, o as asNumber, ot as CameraStreamSchema, p as isDeviceScopedCap, pt as ProfileSlotSchema, q as ReadinessRegistry, qt as expandAudioChunkToF32le, r as asBoolean, rt as CamProfileSchema, s as asString, st as DecodedAudioChunkSchema, t as sleep, tt as BrokerStatusSchema, u as parseJsonUnknown, ut as FrameHandleFormatSchema, v as createSliceHandle, vt as SubscribeAudioChunksResultSchema, w as defineCustomActions, wt as selectAssignedProfileSlots, x as viewerUiCapability, xt as makeProfileBrokerId, y as RawStateResultSchema, yt as SubscribeFramesInputSchema, z as method, zt as WELL_KNOWN_TABS } from "./sleep-BaRu0bS5.mjs";
2
2
  import { t as EventCategory } from "./event-category-BVDXG4tB.mjs";
3
3
  import { a as buildAudioArgs, c as buildVideoArgs, d as logBannerArgs, f as pickVideoEncoder, i as audioPlanFromEncodeProfile, l as invocationFromEncodeProfile, n as Fmp4BoxSplitter, o as buildFfmpegArgs, p as resolveStreamMaps, r as AUDIO_PRESETS, s as buildInputArgs, t as canonicalHash, u as isSoftwareDecode } from "./canonical-hash-CPK2Dy60.mjs";
4
4
  import { EventSourceType } from "./enums.mjs";
@@ -5045,7 +5045,7 @@ var ModelFormatEntrySchema = z.object({
5045
5045
  /** Multi-file payload (directory members or sibling files). */
5046
5046
  files: z.array(z.string()).readonly().optional(),
5047
5047
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
5048
- runtimes: z.array(z.enum(["node", "python"])).readonly().optional()
5048
+ runtimes: z.array(z.enum(["python"])).readonly().optional()
5049
5049
  });
5050
5050
  /**
5051
5051
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -17406,6 +17406,25 @@ var NcScheduleSchema = z.object({
17406
17406
  /** Active OUTSIDE the windows (e.g. "only outside business hours"). */
17407
17407
  invert: z.boolean().optional()
17408
17408
  });
17409
+ /**
17410
+ * How a system-event rule of the `device-events` or `system` family speaks
17411
+ * (D647): at once, per event (`instant`, the only behaviour before D647), or
17412
+ * as a STATE SUMMARY at the end of each window of `schedule`.
17413
+ */
17414
+ var NcSystemEventDeliveryModeSchema = z.enum(["instant", "summary"]);
17415
+ /**
17416
+ * `summary`: the rule sends NOTHING per event. When a window of `schedule`
17417
+ * CLOSES, it sends one notification with the current state of its kinds
17418
+ * (low batteries, consumables to replace, devices offline, updates
17419
+ * available, ...), after its own filters. Nothing to report sends nothing.
17420
+ * The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
17421
+ * midnight crossing); the send time is each window's END. Refused on the
17422
+ * `alarm` family, which stays instant (`systemEventDeliveryProblems`).
17423
+ */
17424
+ var NcSystemEventDeliverySchema = z.discriminatedUnion("mode", [z.object({ mode: z.literal("instant") }), z.object({
17425
+ mode: z.literal("summary"),
17426
+ schedule: NcScheduleSchema
17427
+ })]);
17409
17428
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
17410
17429
  var NcPlateMatcherSchema = z.object({
17411
17430
  /**
@@ -18160,6 +18179,16 @@ var NcRuleInputSchema = z.object({
18160
18179
  delivery: NcDeliverySchema,
18161
18180
  conditions: NcConditionsSchema.default({}),
18162
18181
  schedule: NcScheduleSchema.optional(),
18182
+ /**
18183
+ * A `device-events` / `system` rule's delivery (D647): absent or `instant`
18184
+ * is a notification per event; `summary` is one state summary per closed
18185
+ * window of its schedule. `.optional()` and never defaulted: absent must
18186
+ * keep meaning what every rule authored before D647 meant, with no
18187
+ * migration. Top-level rather than inside `conditions.systemEvent`, so a
18188
+ * client that does not know it (an older viewer re-sending `conditions`
18189
+ * whole) leaves it standing through the store's patch merge.
18190
+ */
18191
+ systemEventDelivery: NcSystemEventDeliverySchema.optional(),
18163
18192
  /** May be empty when `targetUsers` addresses at least one user — the
18164
18193
  * "at least one addressee" invariant is enforced by the provider, because
18165
18194
  * a cross-field refine here would break `NcRulePatchSchema.partial()`. */
@@ -18399,6 +18428,28 @@ var NcRuleSchema = NcRuleInputSchema.extend({
18399
18428
  */
18400
18429
  disabledTargetIds: z.array(z.string()).default([])
18401
18430
  });
18431
+ /** One section of a previewed state summary. `unavailable` = its state could not be read. */
18432
+ var NcStateSummaryPreviewSectionSchema = z.object({
18433
+ id: z.string(),
18434
+ status: z.enum(["read", "unavailable"]),
18435
+ items: z.number().int().nonnegative(),
18436
+ reason: z.string().optional()
18437
+ });
18438
+ /**
18439
+ * The summary a rule would send now. `empty` = nothing to report and every
18440
+ * section read: such a summary is NOT sent. `dropped` counts the open states
18441
+ * the rule's own filters (or a camera mute) left out, by reason.
18442
+ * `excludedGroups` names the kind groups selected that have no state to report
18443
+ * (backups & exports).
18444
+ */
18445
+ var NcStateSummaryPreviewSchema = z.object({
18446
+ empty: z.boolean(),
18447
+ count: z.number().int().nonnegative(),
18448
+ text: z.string(),
18449
+ sections: z.array(NcStateSummaryPreviewSectionSchema),
18450
+ dropped: z.record(z.string(), z.number().int().nonnegative()),
18451
+ excludedGroups: z.array(z.string())
18452
+ });
18402
18453
  var NcTestResultSchema = z.object({
18403
18454
  recordId: z.string(),
18404
18455
  recordKind: z.enum([
@@ -18490,6 +18541,13 @@ var NcTemplateVarDescriptorSchema = z.object({
18490
18541
  kinds: z.array(NcTemplateVarKindSchema).optional(),
18491
18542
  deliveries: z.array(NcDeliverySchema).optional(),
18492
18543
  systemEventKinds: z.array(NcSystemEventKindSchema).optional(),
18544
+ /**
18545
+ * Which system-event DELIVERY has a value for it (D647). Absent = an
18546
+ * instant row only when the descriptor names `systemEventKinds` (a
18547
+ * per-event fact: a summary row has no single device), and both otherwise.
18548
+ * `['summary']` marks the state-summary vocabulary (`{{summaryText}}`, ...).
18549
+ */
18550
+ systemEventDeliveries: z.array(NcSystemEventDeliveryModeSchema).optional(),
18493
18551
  dynamic: z.object({
18494
18552
  prefix: z.literal("count_"),
18495
18553
  from: z.literal("classes")
@@ -18501,7 +18559,9 @@ var NcTemplateVarContextSchema = z.object({
18501
18559
  field: NcTemplateFieldSchema,
18502
18560
  kind: NcRuleKindSchema.optional(),
18503
18561
  delivery: NcDeliverySchema.optional(),
18504
- systemEventKinds: z.array(NcSystemEventKindSchema).optional()
18562
+ systemEventKinds: z.array(NcSystemEventKindSchema).optional(),
18563
+ /** The rule's system-event delivery (D647); absent = instant. */
18564
+ systemEventDelivery: NcSystemEventDeliveryModeSchema.optional()
18505
18565
  });
18506
18566
  /** Input to `previewTemplate` — the editor's own context, plus the draft text. */
18507
18567
  var NcTemplatePreviewInputSchema = z.object({
@@ -19675,6 +19735,17 @@ var notificationRulesCapability = {
19675
19735
  auth: "admin"
19676
19736
  }),
19677
19737
  /**
19738
+ * The STATE SUMMARY a system rule would send now (D647) — for a saved rule
19739
+ * or an unsaved draft. Pure: sends nothing, stamps nothing. A MUTATION
19740
+ * only for transport (a whole rule does not belong in a GET URL). Admin,
19741
+ * like `testRule`: it names devices and nodes across the installation.
19742
+ */
19743
+ previewStateSummary: method(z.object({ rule: NcRuleInputSchema }), NcStateSummaryPreviewSchema, {
19744
+ kind: "mutation",
19745
+ auth: "admin",
19746
+ access: "view"
19747
+ }),
19748
+ /**
19678
19749
  * The machine-readable condition surface a rule editor renders from, plus
19679
19750
  * the picker VOCABULARY those conditions draw on.
19680
19751
  *
@@ -20139,1049 +20210,214 @@ var oauthIntegrationCapability = {
20139
20210
  getDescriptor: method(z.void(), OauthIntegrationDescriptorSchema, { auth: "admin" }) }
20140
20211
  };
20141
20212
  //#endregion
20142
- //#region src/capabilities/pipeline-executor.cap.ts
20213
+ //#region src/capabilities/pipeline-analytics.cap.ts
20143
20214
  /**
20144
- * Reference to the frame's retained NATIVE surface + the parent crop's placement
20145
- * within the frame, so the executor can re-cut a leaf child ROI at native
20146
- * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
20215
+ * pipeline-analytics — device-scoped wrapper cap. Refines raw
20216
+ * per-frame detections emitted by the pipeline runner into tracked
20217
+ * objects, per-kind event collections (motion / object / audio), and
20218
+ * persisted media. Owns the post-detection domain end-to-end:
20219
+ *
20220
+ * runner emits PipelineInferenceResult
20221
+ * ↓ (event bus)
20222
+ * pipeline-analytics subscriber
20223
+ * ↓ SORT tracker + zone engine + state analyzer + event emitter
20224
+ * → three DB collections (one per kind), one FS media tree, one
20225
+ * unified event emitter (FrameTracked + TrackStarted/Ended +
20226
+ * DetectionEvent on bus)
20227
+ *
20228
+ * Pure subscriber model. No `processFrame` cap method — the runner
20229
+ * already publishes the raw frame on the bus. The cap surface is
20230
+ * only QUERIES + per-device settings, bound on/off via
20231
+ * `device-manager.setWrapperActive`. `defaultActive: true` because
20232
+ * every camera with a detection pipeline wants its raw detections
20233
+ * refined; operators opt out per-device via BindingsTab when needed.
20234
+ *
20235
+ * Replaces the legacy `analysis-pipeline`, `analysis-data-persistence`
20236
+ * (per-device surface) and `track-trail` caps — see P11 cleanup.
20147
20237
  */
20148
- var NativeCropRefSchema = z.object({
20149
- /** Handle keying the retained native surface (node-pinned to its owner). */
20150
- handle: FrameHandleSchema,
20151
- /** The parent crop's padded/clamped rectangle in FRAME-space pixels. */
20152
- cropFrameSpace: z.object({
20153
- x: z.number(),
20154
- y: z.number(),
20155
- w: z.number(),
20156
- h: z.number()
20157
- })
20158
- });
20159
- z.object({
20160
- crop: z.object({
20161
- left: z.number(),
20162
- top: z.number(),
20163
- width: z.number().positive(),
20164
- height: z.number().positive()
20165
- }).optional(),
20166
- content: z.object({
20167
- width: z.number().int().positive(),
20168
- height: z.number().int().positive()
20169
- }),
20170
- fit: z.enum(["stretch", "contain"]),
20171
- format: z.enum([
20172
- "rgb",
20173
- "gray",
20174
- "jpeg"
20175
- ])
20176
- });
20238
+ var TrackStateSchema = z.enum([
20239
+ "new",
20240
+ "entered",
20241
+ "left",
20242
+ "moving",
20243
+ "idle"
20244
+ ]);
20245
+ var EventKindSchema = z.enum([
20246
+ "motion",
20247
+ "object",
20248
+ "audio"
20249
+ ]);
20177
20250
  /**
20178
- * Process-local frame identity. It is serializable so it can ride an in-process
20179
- * capability call, but `registryId` deliberately prevents resolution in any
20180
- * other process or execution group.
20251
+ * Spatial filter for `listTracks` — the rect + polygon variants of the shared
20252
+ * MaskShape vocabulary (see `mask-shape.ts`). Coordinates are NORMALIZED 0..1
20253
+ * of the camera frame (top-left origin), matching the drawing-plane editor.
20181
20254
  */
20182
- var FrameRefSchema = z.object({
20183
- registryId: z.string().min(1),
20184
- id: z.string().min(1),
20185
- width: z.number().int().positive(),
20186
- height: z.number().int().positive(),
20187
- format: z.enum(["rgb", "gray"]),
20188
- timestamp: z.number(),
20189
- capturedAt: z.number().optional()
20190
- });
20191
- var ModelFormatSchema$1 = z.enum([
20192
- "onnx",
20193
- "coreml",
20194
- "openvino",
20195
- "tflite",
20196
- "pt",
20197
- "gguf"
20255
+ var TrackZoneFilterSchema = z.discriminatedUnion("kind", [MaskRectShapeSchema, MaskPolygonShapeSchema]);
20256
+ /** Closed icon vocabulary so clients render a known glyph per kind. */
20257
+ var EventKindIconSchema = z.enum([
20258
+ "motion",
20259
+ "audio",
20260
+ "person",
20261
+ "vehicle",
20262
+ "animal",
20263
+ "door",
20264
+ "pir",
20265
+ "smoke",
20266
+ "water",
20267
+ "button",
20268
+ "package",
20269
+ "generic"
20198
20270
  ]);
20199
- var PipelineSlotSchema = z.enum([
20200
- "detector",
20201
- "cropper",
20202
- "classifier",
20203
- "refiner",
20204
- "audio-classifier"
20271
+ var EventKindCategorySchema = z.enum([
20272
+ "motion",
20273
+ "audio",
20274
+ "detection",
20275
+ "sensor",
20276
+ "control",
20277
+ "custom",
20278
+ "package"
20205
20279
  ]);
20206
- var PipelineEngineChoiceSchema = z.object({
20207
- runtime: z.enum(["node", "python"]),
20208
- backend: z.string(),
20209
- format: ModelFormatSchema$1,
20210
- device: z.string().optional()
20211
- });
20212
- var EngineDeviceInfoSchema = z.object({
20213
- id: z.string(),
20280
+ /** Taxonomy level — macro (timeline lane) vs sub (events-page leaf). */
20281
+ var EventKindLevelSchema = z.enum(["macro", "sub"]);
20282
+ var EventKindDescriptorSchema = z.object({
20283
+ /** Stable kind id (e.g. 'motion', 'vehicle', 'car', 'lock'). */
20284
+ kind: z.string(),
20285
+ /** i18n key resolved on the UI side; `label` is the English fallback. */
20286
+ labelKey: z.string(),
20287
+ /** English fallback label (kept for clients that don't translate). */
20214
20288
  label: z.string(),
20215
- description: z.string().optional()
20216
- });
20217
- var AvailableEngineSchema = z.object({
20218
- engine: PipelineEngineChoiceSchema,
20219
- devices: z.array(EngineDeviceInfoSchema).readonly(),
20220
- defaultDevice: z.string()
20221
- });
20222
- var PipelineDefaultStepSchema = z.lazy(() => z.object({
20223
- addonId: z.string(),
20224
- addonName: z.string(),
20225
- slot: PipelineSlotSchema,
20226
- inputClasses: z.array(z.string()).readonly(),
20227
- outputClasses: z.array(z.string()).readonly(),
20228
- enabled: z.boolean(),
20229
- modelId: z.string(),
20230
- children: z.array(PipelineDefaultStepSchema).readonly(),
20231
- group: z.string().optional(),
20232
- settings: z.record(z.string(), z.unknown()).optional()
20233
- }));
20234
- var PipelineTemplateStepSchema = z.lazy(() => z.object({
20235
- addonId: z.string(),
20236
- enabled: z.boolean(),
20237
- modelId: z.string(),
20238
- children: z.array(PipelineTemplateStepSchema).readonly(),
20239
- settings: z.record(z.string(), z.unknown()).optional()
20240
- }));
20241
- var PipelineTemplateSchema$1 = z.object({
20242
- id: z.string(),
20243
- name: z.string(),
20244
- createdAt: z.string(),
20245
- updatedAt: z.string(),
20246
- engine: PipelineEngineChoiceSchema,
20247
- steps: z.array(PipelineTemplateStepSchema).readonly()
20289
+ /** Hex color for timeline/legend rendering. */
20290
+ color: z.string(),
20291
+ /** Dictionary id → lucide component on the UI side. */
20292
+ iconId: z.string(),
20293
+ /** Legacy closed-vocab glyph — fallback for `iconId`. */
20294
+ icon: EventKindIconSchema,
20295
+ category: EventKindCategorySchema,
20296
+ /** Macro parent for this kind ('car' → 'vehicle'); null for a macro. */
20297
+ parentKind: z.string().nullable(),
20298
+ /** Derived from `parentKind`, explicit for the client tree. */
20299
+ level: EventKindLevelSchema,
20300
+ /** Which cap + device contributes this kind. For built-ins the camera
20301
+ * itself; for sensor kinds the LINKED source device. */
20302
+ source: z.object({
20303
+ capName: z.string(),
20304
+ deviceId: z.number()
20305
+ })
20248
20306
  });
20249
- var PipelineModelOptionSchema = z.object({
20250
- id: z.string(),
20251
- name: z.string(),
20252
- formats: z.record(z.string(), z.object({
20253
- downloaded: z.boolean(),
20254
- sizeMB: z.number()
20255
- })),
20256
- group: ModelVariantGroupSchema.optional(),
20257
- legacy: z.boolean().optional(),
20258
- provider: ModelProviderIdSchema.optional()
20307
+ /** One camera's event vocabulary, as returned by `listEventKindsBatch`. */
20308
+ var EventKindsForDeviceSchema = z.object({
20309
+ deviceId: z.number(),
20310
+ kinds: z.array(EventKindDescriptorSchema).readonly()
20259
20311
  });
20260
- var ConfigFieldBridge = z.custom();
20261
- var PipelineAddonSchemaSchema = z.object({
20312
+ var SensorEventSchema = z.object({
20262
20313
  id: z.string(),
20263
- name: z.string(),
20264
- slot: PipelineSlotSchema,
20265
- inputClasses: z.array(z.string()).readonly(),
20266
- outputClasses: z.array(z.string()).readonly(),
20267
- childSlots: z.array(PipelineSlotSchema).readonly(),
20268
- models: z.array(PipelineModelOptionSchema).readonly(),
20269
- defaultModelId: z.string(),
20270
- defaultModelIdByFormat: z.record(z.string(), z.string()).optional(),
20271
- enabledByDefault: z.boolean().optional(),
20272
- backfillIntoExistingOverrides: z.boolean().optional(),
20273
- defaultConfidence: z.number(),
20274
- group: z.string().optional(),
20275
- configSchema: z.array(ConfigFieldBridge).readonly().optional()
20276
- });
20277
- var PipelineSlotSchemaSchema = z.object({
20278
- id: PipelineSlotSchema,
20279
- label: z.string(),
20280
- priority: z.number(),
20281
- parentSlot: PipelineSlotSchema.nullable(),
20282
- addons: z.array(PipelineAddonSchemaSchema).readonly()
20283
- });
20284
- var PipelineSchemaSchema = z.object({
20285
- availableEngines: z.array(AvailableEngineSchema).readonly(),
20286
- selectedEngine: PipelineEngineChoiceSchema,
20287
- slots: z.array(PipelineSlotSchemaSchema).readonly()
20288
- });
20289
- var EngineProvisioningSchema = z.object({
20290
- runtimeId: z.enum([
20291
- "onnx",
20292
- "openvino",
20293
- "coreml",
20294
- "edgetpu"
20295
- ]).nullable(),
20296
- device: z.string().nullable(),
20297
- state: z.enum([
20298
- "idle",
20299
- "installing",
20300
- "verifying",
20301
- "ready",
20302
- "failed"
20303
- ]),
20304
- progress: z.number().optional(),
20305
- error: z.string().optional(),
20306
- nextRetryAt: z.number().optional(),
20307
- /**
20308
- * Gate A (config-correctness gate at engine change): human-readable
20309
- * config issues surfaced EAGERLY when the node's engine changes — model
20310
- * substitutions ("chose X, running Y") and zero-build steps ("no model
20311
- * has a <format> build"). Additive/optional: informational only, never
20312
- * enforced here — `assertEngineReady` (readiness) still gates inference.
20313
- * Absent/empty when the node-default tree resolves cleanly.
20314
- */
20315
- configIssues: z.array(z.string()).optional()
20316
- });
20317
- var PipelineStepInputSchema = z.lazy(() => z.object({
20318
- addonId: z.string(),
20319
- modelId: z.string().optional(),
20320
- enabled: z.boolean().default(true),
20321
- children: z.array(PipelineStepInputSchema).optional(),
20322
- settings: z.record(z.string(), z.unknown()).optional(),
20323
- jumpDeviceKey: z.string().optional()
20324
- }));
20325
- var ModelSubstitutionSchema = z.object({
20326
- addonId: z.string(),
20327
- chosen: z.string(),
20328
- running: z.string(),
20329
- format: z.string()
20330
- });
20331
- var PipelineValidationIssueSchema = z.object({
20332
- addonId: z.string(),
20333
- kind: z.enum(["unknown-addon", "no-format-build"]),
20334
- detail: z.string()
20335
- });
20336
- var PipelineValidationResultSchema = z.object({
20337
- ok: z.boolean(),
20338
- issues: z.array(PipelineValidationIssueSchema).readonly(),
20339
- substitutions: z.array(ModelSubstitutionSchema).readonly(),
20340
- /** The node's `currentEngine.format` this validation ran against. */
20341
- format: z.string()
20342
- });
20343
- var ReferenceImageEntrySchema = z.object({
20344
- filename: z.string(),
20345
- stepIds: z.array(z.string()).readonly().optional()
20346
- });
20347
- var ReferenceImageBodySchema = z.object({
20348
- base64: z.string(),
20349
- filename: z.string()
20350
- });
20351
- var ReferenceAudioEntrySchema = z.object({
20352
- filename: z.string(),
20353
- sizeKb: z.number()
20314
+ /** The CAMERA the event is attributed to (a sensor linked to N cameras
20315
+ * yields N rows, one per camera). */
20316
+ deviceId: z.number(),
20317
+ /** The linked sensor device whose state changed. */
20318
+ sourceDeviceId: z.number(),
20319
+ /** Event kind id — matches an `EventKindDescriptor.kind`. */
20320
+ kind: z.string(),
20321
+ /** Snapshot of the sensor cap's runtime-state slice at the change. */
20322
+ value: z.record(z.string(), z.unknown()).nullable(),
20323
+ timestamp: z.number()
20354
20324
  });
20355
- var ReferenceAudioBodySchema = z.object({ base64: z.string() });
20356
- var AudioBackendSchema = z.object({
20357
- id: z.string(),
20358
- name: z.string(),
20359
- description: z.string(),
20360
- available: z.boolean(),
20325
+ /**
20326
+ * One stored sighting on a track's trajectory.
20327
+ *
20328
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
20329
+ * arrival order, and the two detector passes interleave, so a consumer must not
20330
+ * assume the two are the same on a row written by an older build.
20331
+ */
20332
+ var TrackPositionSchema = z.object({
20333
+ x: z.number(),
20334
+ y: z.number(),
20335
+ timestamp: z.number(),
20336
+ bbox: BoundingBoxSchema,
20361
20337
  /**
20362
- * Raw classifier labels this backend can emit (e.g. YAMNet's
20363
- * 521-class set or Apple SoundAnalysis's 303-class set). Used by
20364
- * the benchmark UI to populate the `enabledMicroClasses` filter
20365
- * specific to the selected backend without a separate fetch.
20338
+ * Which detector pass measured this box (D399): `frame` is the full-frame
20339
+ * pass on the analysis raster, `recovery` is the native-resolution
20340
+ * small-subject second pass (D377/D378). Both write into one array, and until
20341
+ * this field existed the only way to tell them apart was that full-frame boxes
20342
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
20343
+ * Absent on rows written before D399.
20366
20344
  */
20367
- rawLabels: z.array(z.string()).readonly().optional()
20345
+ source: z.enum(["frame", "recovery"]).optional(),
20346
+ /** Detection score of this box, so a position can be weighed and not only
20347
+ * plotted. Absent on rows written before D399. */
20348
+ score: z.number().optional()
20368
20349
  });
20369
- var AudioCapabilitiesSchema = z.object({
20370
- activeBackend: z.string(),
20371
- availableBackends: z.array(AudioBackendSchema).readonly(),
20372
- sampleRate: z.number(),
20373
- chunkDurationMs: z.number()
20350
+ var TrackSnapshotSchema = z.object({
20351
+ timestamp: z.number(),
20352
+ position: TrackPositionSchema,
20353
+ /** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
20354
+ mediaId: z.number().int()
20374
20355
  });
20375
- var DownloadModelResultSchema = z.object({
20376
- filePath: z.string(),
20377
- sizeMB: z.number(),
20378
- durationMs: z.number()
20356
+ /**
20357
+ * Normalized 0..1 trajectory envelope (min/max over every position bbox,
20358
+ * divided by the track's detection-frame dims), computed at persist time.
20359
+ * Absent when the frame dims were unknown when the track was persisted
20360
+ * (legacy rows / dims-less sources) and on active (in-RAM) tracks.
20361
+ */
20362
+ var TrackEnvelopeSchema = z.object({
20363
+ minX: z.number(),
20364
+ minY: z.number(),
20365
+ maxX: z.number(),
20366
+ maxY: z.number()
20379
20367
  });
20380
20368
  /**
20381
- * Wrapper carrying a single test run's result. Replaces the legacy
20382
- * ad-hoc `{labels: [{className, originalClass, score}]}` shape with the
20383
- * canonical `AudioResult` from the Phase 6 output rework: one
20384
- * `AudioDetection` per class above `minScore`, top-N candidates in
20385
- * `debug.alternateLabels['audio-classifier']`, per-source timings in
20386
- * `debug.stepTimings`. The outer `success`/`error` fields stay so the
20387
- * benchmark UI can still report a clean failure when the classifier
20388
- * cap isn't available.
20369
+ * Row projection for track list queries. `full` (default) returns the
20370
+ * complete Track including the frame-rate `positions[]` history and the
20371
+ * `snapshots[]` references — megabytes across a page of tracks. `slim`
20372
+ * keeps every scalar the list surfaces actually render (ids, class(es),
20373
+ * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
20374
+ * zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
20375
+ * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
20376
+ * `getTrack`. Mirrors the event-store `projection` convention
20377
+ * (`getObjectEvents` et al.).
20389
20378
  */
20390
- var AudioTestResultSchema = z.object({
20391
- success: z.boolean(),
20392
- error: z.string().optional(),
20393
- frame: z.custom().optional()
20379
+ var TrackProjectionSchema = z.enum(["full", "slim"]);
20380
+ /**
20381
+ * One audio-classification label heard on the track's camera while the
20382
+ * track was alive, aggregated per label. An "episode" is one persisted
20383
+ * audio event (the confident-classification path: score ≥ the device's
20384
+ * `classificationMinScore`, class-change-or-heartbeat coalesced) — NOT
20385
+ * one 32 ms inference chunk, so counts stay human-scaled.
20386
+ */
20387
+ var TrackAudioLabelSchema = z.object({
20388
+ label: z.string(),
20389
+ /** Highest classification score observed across the label's episodes. */
20390
+ peakScore: z.number(),
20391
+ /** Number of coalesced audio-event episodes carrying this label. */
20392
+ count: z.number(),
20393
+ firstAt: z.number(),
20394
+ lastAt: z.number()
20394
20395
  });
20395
- var PipelineConfigBridge = z.custom();
20396
- var ConfigUISchemaBridge = z.custom();
20397
- var ConfigUISchemaNullableBridge = z.custom();
20398
- var InferenceCapabilitiesBridge = z.custom();
20399
- var ModelAvailabilityListBridge = z.custom();
20400
- var PipelineRunResultBridge = z.custom();
20401
20396
  /**
20402
- * Pipeline executor — detection engine + configuration + inference API.
20397
+ * How a track was produced. `pipeline` (default / absent) = the spatial
20398
+ * detection+tracking pipeline. Every OTHER value is a SYNTHETIC projection —
20399
+ * no positions, a single snapshot, and no bbox trajectory at all:
20403
20400
  *
20404
- * Merged from: pipeline-executor, pipeline-config, inference, detection-config.
20405
- * Implemented by the detection-pipeline addon.
20401
+ * - `sensor` — a linked sensor/control device state change.
20402
+ * - `audio` — an audio event on the camera itself that was anomalous for
20403
+ * THAT camera, loud, and heard while nothing visual was happening (D62).
20406
20404
  *
20407
- * Per-device surface (DeviceSettingsContribution + the "is detection
20408
- * enabled for this camera?" toggle) lives on the paired
20409
- * `detection-pipeline` cap (device-scoped, singleton, wrapper
20410
- * defaultActive) — same split pattern used by stream-broker /
20411
- * camera-streams and audio-analyzer / audio-analysis.
20412
- */
20413
- var pipelineExecutorCapability = {
20414
- name: "pipeline-executor",
20415
- scope: "system",
20416
- mode: "singleton",
20417
- methods: {
20418
- getAvailableEngines: method(z.void(), z.array(PipelineEngineChoiceSchema)),
20419
- getSelectedEngine: method(z.void(), PipelineEngineChoiceSchema),
20420
- getDefaultSteps: method(PipelineEngineChoiceSchema, z.array(PipelineDefaultStepSchema)),
20421
- /**
20422
- * Per-node detection-engine provisioning snapshot. Returns the live
20423
- * state of the lazy runtime-provisioning machine on `nodeId`
20424
- * (idle / installing / verifying / ready / failed). The UI pairs this
20425
- * one-shot query with the `pipeline.engine-provisioning` live event
20426
- * (emitted on every transition) to drive a per-node "engine ready?"
20427
- * indicator without polling. Phase 2.
20428
- */
20429
- getEngineProvisioning: method(z.object({ nodeId: z.string() }), EngineProvisioningSchema),
20430
- getVideoPipelineSteps: method(z.void(), z.record(z.string(), z.object({
20431
- modelId: z.string(),
20432
- settings: z.record(z.string(), z.unknown()).readonly()
20433
- }))),
20434
- setVideoPipelineSteps: method(z.object({ steps: z.record(z.string(), z.object({
20435
- modelId: z.string(),
20436
- settings: z.record(z.string(), z.unknown()).readonly()
20437
- })) }), z.object({ success: z.literal(true) }), {
20438
- kind: "mutation",
20439
- auth: "admin"
20440
- }),
20441
- /**
20442
- * Clear THIS node's executor-side PER-DEVICE settings stores (the
20443
- * per-camera step overrides the object-detection root reads via
20444
- * `applyDeviceOverridesToTree`). `nodeId` is the ROUTING key — the
20445
- * generated cap-router strips it (default `nodeIdMode: 'routing'`) and
20446
- * dispatches to that node, so the provider method runs ON the target
20447
- * node and receives no `nodeId`.
20448
- *
20449
- * This is the slimmed executor leg of the orchestrator's
20450
- * `resetNodePipelineDefaults` flow (which owns the real reset: node
20451
- * addonDefaults pins + per-camera orchestrator overrides). The legacy
20452
- * `resetToDefault` — which reset a persisted global step-tree seed
20453
- * nothing in the live per-camera path read — was removed together with
20454
- * that seed.
20455
- */
20456
- clearDeviceOverrides: method(z.object({ nodeId: z.string() }), z.object({
20457
- success: z.literal(true),
20458
- clearedDevices: z.number()
20459
- }), {
20460
- kind: "mutation",
20461
- auth: "admin"
20462
- }),
20463
- /**
20464
- * Which of THIS node's inference devices the executor currently refuses,
20465
- * and why. `nodeId` is the ROUTING key (stripped by the generated router).
20466
- *
20467
- * The channel that did not exist. Pool health was known only inside the
20468
- * detection addon and was an input to no routing decision anywhere: the
20469
- * per-dispatch capability gate is keyed on model FORMAT and so can never
20470
- * separate `openvino:gpu` from `openvino:npu`, and the orchestrator's live
20471
- * eligibility probe (`platformProbe.getCapabilities`) answers about
20472
- * HARDWARE — which was present throughout. So when the hub's `openvino:gpu`
20473
- * Python worker was SIGABRT'd by the Intel GPU plugin on 2026-08-25, the
20474
- * balancer went on handing that dead pool cameras by rotation for 31 hours:
20475
- * ~370 000 `PoolWorker[w0]: not initialized` lines, every frame lost.
20476
- *
20477
- * Read semantics the caller depends on, and which the provider guarantees:
20478
- * this is a synchronous read of in-memory state. It never probes hardware,
20479
- * never spawns a pool and never throws — an EMPTY `unhealthy` means "asked,
20480
- * nothing is refused", which is what re-admits a device. A read that FAILS
20481
- * (node offline, version skew) must therefore be distinguishable from an
20482
- * empty answer, and it is: it rejects.
20483
- */
20484
- getInferenceDeviceHealth: method(z.object({ nodeId: z.string() }), z.object({ unhealthy: z.array(z.object({
20485
- /** `<backend>:<device>`, e.g. `openvino:gpu`. */
20486
- deviceKey: z.string(),
20487
- /**
20488
- * `failed` — the per-device restart budget is exhausted; no pool
20489
- * will be spawned until an operator re-arms it or the runner
20490
- * respawns. `backoff` — under budget, waiting out the backoff (or
20491
- * a cached pool observed dead and not yet condemned).
20492
- */
20493
- state: z.enum(["failed", "backoff"]),
20494
- /** Epoch ms of the death that produced this state. */
20495
- since: z.number(),
20496
- /** Pool deaths inside the current window. */
20497
- deaths: z.number(),
20498
- /** The last death's message. */
20499
- lastError: z.string()
20500
- })).readonly() })),
20501
- /**
20502
- * Re-arm a terminally `failed` inference device on `nodeId`: forget its
20503
- * restart budget so the next dispatch builds a fresh pool.
20504
- *
20505
- * The terminal state is deliberate (the abort it bounds is deterministic —
20506
- * an automatic probation would just respawn Python forever, more slowly),
20507
- * and a terminal state an operator cannot leave is a silent fault. This is
20508
- * the way out. `rearmed:false` means there was nothing to forget.
20509
- */
20510
- rearmInferenceDevice: method(z.object({
20511
- nodeId: z.string(),
20512
- deviceKey: z.string()
20513
- }), z.object({ rearmed: z.boolean() }), {
20514
- kind: "mutation",
20515
- auth: "admin"
20516
- }),
20517
- getSchema: method(z.void(), PipelineSchemaSchema),
20518
- getGlobalSteps: method(z.void(), z.array(PipelineDefaultStepSchema).readonly().nullable()),
20519
- getGlobalPipelineConfig: method(z.void(), PipelineConfigBridge),
20520
- getOrchestratorConfigSchema: method(z.void(), ConfigUISchemaBridge),
20521
- /**
20522
- * Gate B (pre-init config-correctness gate). PURE COMPUTE against this
20523
- * node's `currentEngine.format` — resolves `steps` the same way the
20524
- * runtime dispatch path would, and reports what WOULD happen without
20525
- * touching any node-global state. Called by the orchestrator at attach
20526
- * time (`attachOn`), node-pinned to the TARGET node, so config problems
20527
- * surface BEFORE `pipelineRunner.attachCamera` rather than at the first
20528
- * per-frame resolve. `ok` is false iff `issues` is non-empty (both
20529
- * `unknown-addon` and `no-format-build` are HARD issues); `substitutions`
20530
- * is informational (a degraded-but-loadable model swap) and never
20531
- * affects `ok`. Never throws.
20532
- */
20533
- validatePipeline: method(z.object({ steps: z.array(PipelineStepInputSchema) }), PipelineValidationResultSchema),
20534
- listTemplates: method(z.void(), z.array(PipelineTemplateSchema$1).readonly()),
20535
- saveTemplate: method(z.object({
20536
- name: z.string(),
20537
- steps: z.array(PipelineTemplateStepSchema).readonly(),
20538
- engine: PipelineEngineChoiceSchema
20539
- }), PipelineTemplateSchema$1, { kind: "mutation" }),
20540
- updateTemplate: method(z.object({
20541
- id: z.string(),
20542
- name: z.string().optional(),
20543
- steps: z.array(PipelineTemplateStepSchema).readonly().optional()
20544
- }), PipelineTemplateSchema$1, { kind: "mutation" }),
20545
- deleteTemplate: method(z.object({ id: z.string() }), z.void(), { kind: "mutation" }),
20546
- getCapabilities: method(z.void(), InferenceCapabilitiesBridge),
20547
- getAddonModels: method(z.object({ addonId: z.string() }), ModelAvailabilityListBridge),
20548
- downloadModel: method(z.object({
20549
- addonId: z.string(),
20550
- modelId: z.string(),
20551
- format: ModelFormatSchema$1
20552
- }), DownloadModelResultSchema, { kind: "mutation" }),
20553
- deleteModel: method(z.object({
20554
- addonId: z.string(),
20555
- modelId: z.string(),
20556
- format: ModelFormatSchema$1
20557
- }), z.object({ success: z.literal(true) }), { kind: "mutation" }),
20558
- /**
20559
- * Stateless single-frame execution. Callers (runner, benchmark) pass
20560
- * the complete `engine` + `steps` tree; the executor holds no state
20561
- * about cameras or saved pipelines.
20562
- *
20563
- * `engine` is optional during the migration window to preserve the
20564
- * legacy call shape used by existing benchmark code; once all
20565
- * callers pass it explicitly we make it required.
20566
- *
20567
- * Exactly one of `frame`, `frameRef`, `frameHandle`, `imageBase64`,
20568
- * `referenceImage` must be provided:
20569
- * - `frame`: runtime dispatch path (runner → decoded broker frame).
20570
- * Carries the raw buffer, dimensions, and format; the executor
20571
- * uses it directly without base64 round-tripping.
20572
- * - `frameHandle` (CB5): a zero-pixel shm `FrameHandle` for the SAME
20573
- * decoded frame. Both runner and executor are hub-local processes
20574
- * sharing `/dev/shm`, so the executor maps the named segment and
20575
- * reads the pixels back zero-copy — eliminating the ~1.2MB
20576
- * re-serialisation over UDS/MsgPack the `frame` path pays per call.
20577
- * High-risk: the FrameRing is a latest-wins seqlock with no
20578
- * refcount, so a recycled slot yields a null read; the executor
20579
- * then degrades to an empty result and the runner ships pixels via
20580
- * `frame` as the fallback (queue-depth gated on the runner side).
20581
- * - `imageBase64`: one-shot test path (benchmark ImageTab).
20582
- * - `referenceImage`: named file from the reference-image store.
20583
- */
20584
- runPipeline: method(z.object({
20585
- engine: PipelineEngineChoiceSchema.optional(),
20586
- steps: z.array(PipelineStepInputSchema).min(1),
20587
- frame: FrameInputSchema.optional(),
20588
- /**
20589
- * Process-local lazy frame. Valid only when caller and provider resolve
20590
- * in the same execution-group process; split/cross-node callers use
20591
- * `frame`/`image` inline compatibility instead.
20592
- */
20593
- frameRef: FrameRefSchema.optional(),
20594
- /**
20595
- * CB5 shm passthrough — a `FrameHandle` naming the same ring slot
20596
- * the decoded pixels live in. One more member of the one-of
20597
- * frame/frameHandle/image/imageBase64/referenceImage group.
20598
- */
20599
- frameHandle: FrameHandleSchema.optional(),
20600
- imageBase64: z.string().optional(),
20601
- /**
20602
- * Binary JPEG bytes — preferred over `imageBase64` on internal
20603
- * hops (hub → forked worker via Moleculer MsgPack) because it
20604
- * skips the 33% base64 overhead + the per-call base64 decode on
20605
- * the detection-pipeline worker. Callers can pass either; exactly
20606
- * one of `frame`/`image`/`imageBase64`/`referenceImage` is required.
20607
- */
20608
- image: z.instanceof(Uint8Array).optional(),
20609
- referenceImage: z.string().optional(),
20610
- deviceId: z.number().optional(),
20611
- sessionId: z.string().optional(),
20612
- /**
20613
- * Execution plane. 'full' (default) runs the whole tree — benchmark,
20614
- * reference-image, and detail-subtree calls. 'frame' is the live
20615
- * per-frame dispatch: ONLY root-plane steps run; crop children
20616
- * (inputClasses ≠ null) are skipped and served per-track via
20617
- * pipelineRunner.runDetailSubtree (two-plane design).
20618
- */
20619
- plane: z.enum(["full", "frame"]).optional(),
20620
- /**
20621
- * Inference-device selector (Phase 2 multi-device). Format
20622
- * `<backend>:<device>` (e.g. `openvino:gpu`, `edgetpu:usb`, `cpu`).
20623
- * Omitted ⇒ the runner's default device (current single-engine
20624
- * behaviour). Selects WHICH device pool of the node runs the call.
20625
- */
20626
- deviceKey: z.string().optional(),
20627
- /**
20628
- * Two-plane NATIVE child-crop reference. Set by `runDetailSubtree` ONLY
20629
- * when the parent crop was resolved from the frame's retained NATIVE
20630
- * surface (a frameHandle HIT). Lets the executor re-cut a LEAF crop
20631
- * child's ROI (plate-ocr, face-embedding, leaf classifiers) at native
20632
- * resolution from that surface — the SAME quality path faces already
20633
- * had — instead of the downscaled parent tile. `handle` keys the native
20634
- * surface (node-pinned to its owner); `cropFrameSpace` is the parent
20635
- * crop's padded/clamped rectangle in FRAME-space pixels, used to compose
20636
- * the executor's crop-normalized child ROI back into frame-normalized
20637
- * coordinates. Auxiliary to the image source (`image`/`frame`/…), NOT one
20638
- * of the mutually-exclusive image inputs. Absent ⇒ tile-crop children
20639
- * (today's behaviour on the fallback path).
20640
- */
20641
- nativeCropRef: NativeCropRefSchema.optional()
20642
- }), PipelineRunResultBridge, { kind: "mutation" }),
20643
- /**
20644
- * Batched run — N raw frames packed into one cap call. The provider
20645
- * routes the batch through `SharedInferencePool.inferBatch`
20646
- * (`MSG_INFER_BATCH = 0x03`) so the IPC framing and JSON response
20647
- * envelope cost is amortised N:1 vs N concurrent `runPipeline`
20648
- * calls. Single root step + uniform model assumed; trees with crop
20649
- * children fall back to sequential execution.
20650
- *
20651
- * Used by `scripts/bench-batch-style.mts` for batch benchmarking —
20652
- * N frames in one call to amortise per-call IPC overhead.
20653
- */
20654
- runPipelineBatch: method(z.object({
20655
- engine: PipelineEngineChoiceSchema.optional(),
20656
- steps: z.array(PipelineStepInputSchema).min(1),
20657
- frames: z.array(FrameInputSchema).min(1).max(255),
20658
- deviceId: z.number().optional(),
20659
- sessionId: z.string().optional(),
20660
- /**
20661
- * Pure-inference benchmark hint. A NONZERO uint32 pins every frame in
20662
- * the batch to the Python pool's bench preprocess cache
20663
- * (`_bench_frame_id`) so a REPEATED benchmark frame is decoded +
20664
- * preprocessed ONCE and every later inference is a pure-inference cache
20665
- * hit — the sustained-throughput run measures inference, not
20666
- * decode+preprocess+infer. Omitted/0 for live frames (all different →
20667
- * full preprocess every call, correct). Fresh per sustained run;
20668
- * released via `uncacheFrame`.
20669
- */
20670
- frameId: z.number().int().nonnegative().optional(),
20671
- /** Inference-device selector (Phase 2 multi-device); see runPipeline. */
20672
- deviceKey: z.string().optional()
20673
- }), z.object({ results: z.array(PipelineRunResultBridge).readonly() }), { kind: "mutation" }),
20674
- /**
20675
- * Cache a raw frame inside the Python inference pool's memory.
20676
- * Returns a numeric `frameId` that `inferCached` references —
20677
- * subsequent calls send only 5 bytes through the pipe instead of
20678
- * 1.2MB raw data, eliminating the pipe transfer bottleneck.
20679
- */
20680
- cacheFrameInPool: method(z.object({
20681
- data: z.instanceof(Uint8Array),
20682
- width: z.number().int().positive(),
20683
- height: z.number().int().positive(),
20684
- format: z.enum([
20685
- "rgb",
20686
- "bgr",
20687
- "gray"
20688
- ])
20689
- }), z.object({
20690
- frameId: z.number(),
20691
- width: z.number(),
20692
- height: z.number()
20693
- }), { kind: "mutation" }),
20694
- /**
20695
- * Run inference on a previously cached frame. Sends only 5 bytes
20696
- * (model_idx + frameId) through the IPC pipe — eliminates the
20697
- * ~35ms per-call overhead of transferring 1.2MB raw data.
20698
- */
20699
- inferCached: method(z.object({
20700
- stepId: z.string(),
20701
- frameId: z.number().int()
20702
- }), z.record(z.string(), z.unknown()), { kind: "mutation" }),
20703
- /**
20704
- * Release a cached frame from the Python pool's memory.
20705
- */
20706
- uncacheFrame: method(z.object({ frameId: z.number().int() }), z.void(), { kind: "mutation" }),
20707
- /** Returns the effective pool tuning (resolved from user overrides + backend defaults). */
20708
- getEffectiveTuning: method(z.void(), z.object({
20709
- batchMode: z.string(),
20710
- windowMs: z.number(),
20711
- maxBatchSize: z.number(),
20712
- concurrency: z.number()
20713
- })),
20714
- /**
20715
- * List every EngineFactory currently loaded in this executor's RAM,
20716
- * with the models resident and a coarse "in use" marker derived from
20717
- * ongoing inference activity. Used by the Pipeline page Engines tab.
20718
- */
20719
- listLoadedEngines: method(z.void(), z.array(z.object({
20720
- engineKey: z.string(),
20721
- engine: PipelineEngineChoiceSchema,
20722
- modelsLoaded: z.array(z.string()).readonly(),
20723
- inUseByCameras: z.array(z.number()).readonly(),
20724
- /**
20725
- * Origin of this resident factory.
20726
- * - `runtime` — main camera-serving engine (no idle TTL).
20727
- * - `warm-override` — benchmark/test override held in the warm
20728
- * cache; auto-disposed after the idle TTL.
20729
- * - `device-pool` — a concurrent per-device pool (Phase 2
20730
- * multi-device, keyed by `deviceKey`) resolved
20731
- * via `resolveDeviceFactory`. Runs alongside the
20732
- * `runtime` engine on a DIFFERENT accelerator
20733
- * (NPU / iGPU / Coral) — this is how the
20734
- * Engines tab shows all pools running at once.
20735
- */
20736
- kind: z.enum([
20737
- "runtime",
20738
- "warm-override",
20739
- "device-pool"
20740
- ]),
20741
- /** Native pid of the underlying Python pool (null when no pool). */
20742
- poolPid: z.number().nullable(),
20743
- /** ms since this factory was last used (null when not warm-tracked). */
20744
- idleMs: z.number().nullable(),
20745
- /** Idle TTL after which `warm-override` factories self-evict (null when not applicable). */
20746
- idleTtlMs: z.number().nullable()
20747
- })).readonly()),
20748
- /** Warm up an engine without running a frame. No-op if already loaded. */
20749
- spinEngine: method(z.object({ engine: PipelineEngineChoiceSchema }), z.object({ success: z.literal(true) }), {
20750
- kind: "mutation",
20751
- auth: "admin"
20752
- }),
20753
- /**
20754
- * Unload an engine from RAM. `force:true` unloads even when cameras
20755
- * are actively using it (they re-spin on next frame). Default is
20756
- * gated — returns `{success:false, reason}` when in use.
20757
- */
20758
- killEngine: method(z.object({
20759
- engine: PipelineEngineChoiceSchema,
20760
- force: z.boolean().optional()
20761
- }), z.object({
20762
- success: z.boolean(),
20763
- reason: z.string().optional()
20764
- }), {
20765
- kind: "mutation",
20766
- auth: "admin"
20767
- }),
20768
- listReferenceImages: method(z.void(), z.array(ReferenceImageEntrySchema).readonly()),
20769
- getReferenceImage: method(z.object({ filename: z.string() }), ReferenceImageBodySchema.nullable()),
20770
- getReferenceAudioFiles: method(z.void(), z.array(ReferenceAudioEntrySchema).readonly()),
20771
- getReferenceAudio: method(z.object({ filename: z.string() }), ReferenceAudioBodySchema.nullable()),
20772
- getAudioCapabilities: method(z.void(), AudioCapabilitiesSchema),
20773
- runAudioTest: method(z.object({
20774
- addonId: z.string(),
20775
- modelId: z.string(),
20776
- filename: z.string().optional(),
20777
- settings: z.record(z.string(), z.unknown()).optional()
20778
- }), AudioTestResultSchema, { kind: "mutation" }),
20779
- getDetectionConfigSchema: method(z.void(), ConfigUISchemaNullableBridge)
20780
- }
20781
- };
20782
- //#endregion
20783
- //#region src/capabilities/schemas/zone-rule.ts
20784
- /**
20785
- * Per-stage gating mode applied to the zones a rule references.
20786
- *
20787
- * - `include`: the rule contributes to a **whitelist** for its stage.
20788
- * When at least one `include` rule fires for a stage, only entities
20789
- * inside one of those zones pass that stage.
20790
- * - `exclude`: the rule contributes to a **blacklist** for its stage.
20791
- * Entities inside one of those zones are dropped at that stage.
20792
- *
20793
- * `monitor`-style observation (count without filtering) is not a rule
20794
- * mode — zones without any matching rule are observed naturally by
20795
- * `zone-analytics` (live snapshot + history), so an "I just want to
20796
- * count, not filter" use case needs no rule at all.
20797
- */
20798
- var ZoneRuleModeEnum = z.enum(["include", "exclude"]);
20799
- /**
20800
- * Per-consumer rule that references existing zones (geometry) and
20801
- * defines how a specific pipeline stage should treat them. Each
20802
- * consumer addon owns its own `ZoneRule[]` array in its per-device
20803
- * settings:
20804
- *
20805
- * - `addon-motion-wasm` → `motionZoneRules: ZoneRule[]` (motion stage)
20806
- * - `addon-detection-pipeline` → `detectionZoneRules: ZoneRule[]` (detection stage)
20807
- * - future: notification rules, audio gating, etc.
20808
- *
20809
- * One rule applies to N zones (`zoneIds[]`) so the operator can
20810
- * express "ignore motion in ALL of {garden, street}" with a single
20811
- * rule. `classFilter` narrows the rule to specific object classes —
20812
- * "drop person detections in the street, but keep cars" is one
20813
- * `exclude` rule with `classFilter: ['person']`.
20814
- *
20815
- * `enabled` is a soft toggle — the operator can keep the rule
20816
- * configured but inert without deleting it.
20817
- */
20818
- var ZoneRuleSchema = z.object({
20819
- /** Stable rule id — survives edits, used by the UI for diffing. */
20820
- id: z.string(),
20821
- /** Optional human-readable label rendered in the rule editor. */
20822
- name: z.string().optional(),
20823
- /** Zones this rule targets. The rule's `mode` applies to ALL
20824
- * listed zones (OR-set: a detection in any one of them counts).
20825
- * At least one zone id required — a rule with no targets is a
20826
- * configuration mistake and the form validator rejects it. */
20827
- zoneIds: z.array(z.string()).min(1).readonly(),
20828
- mode: ZoneRuleModeEnum,
20829
- /**
20830
- * Class names this rule applies to. Empty / undefined ⇒ rule
20831
- * applies to every class. Class strings match the `macroClass`
20832
- * field on detections (e.g. `person`, `car`, `dog`).
20833
- */
20834
- classFilter: z.array(z.string()).readonly().optional(),
20835
- /**
20836
- * Minimum bbox/mask overlap (0–1) with any of the rule's zones
20837
- * required to consider an entity "in the zone". Defaults to the
20838
- * consumer's stage default when omitted. Kept for back-compat with
20839
- * existing per-rule overrides; new operators pick the value via
20840
- * `bboxInclusionPct` (operator-friendly 0–100). Whichever field is
20841
- * set, the lower-level engine reads it as a 0–1 fraction.
20842
- */
20843
- overlapThreshold: z.number().min(0).max(1).optional(),
20844
- /**
20845
- * Operator-friendly version of `overlapThreshold` — the percentage
20846
- * of the detection's bbox that must lie inside the zone for the
20847
- * rule to match. Documented default is 85%; the engine substitutes
20848
- * that when the field is omitted (kept optional so existing rules
20849
- * stored without it stay valid).
20850
- *
20851
- * When BOTH `overlapThreshold` and `bboxInclusionPct` are set on a
20852
- * rule, the engine prefers `bboxInclusionPct` because it's the
20853
- * field exposed in the UI. Internally both feed the same gate.
20854
- */
20855
- bboxInclusionPct: z.number().min(0).max(100).optional(),
20856
- /**
20857
- * When `true` and a detection has a segmentation mask, use the
20858
- * mask for overlap instead of the bbox. Detection-stage only;
20859
- * motion rules ignore this field.
20860
- */
20861
- preferMask: z.boolean().optional(),
20862
- /**
20863
- * Soft-toggle: `false` disables the rule without deleting it.
20864
- * Defaults to `true` so operators creating a rule via the UI
20865
- * see it active immediately.
20866
- */
20867
- enabled: z.boolean().default(true)
20868
- });
20869
- /**
20870
- * Convenience array schema — used by addon device-settings
20871
- * contributions and runtime payloads (e.g. `RunnerCameraConfig`).
20872
- */
20873
- var ZoneRulesArraySchema = z.array(ZoneRuleSchema).readonly();
20874
- //#endregion
20875
- //#region src/capabilities/zones.cap.ts
20876
- /**
20877
- * Zone — pure geometry + identity. NO filtering behaviour.
20878
- *
20879
- * Zones describe **where** in the frame the operator wants to flag
20880
- * something; consumer-owned {@link ZoneRule} arrays describe **how**
20881
- * each pipeline stage uses them. Splitting the two means a single
20882
- * polygon "Driveway" can simultaneously back a motion-exclude rule,
20883
- * a detection-include rule on `['car']`, and an occupancy aggregate
20884
- * — without three duplicated polygons.
20885
- *
20886
- * Owned by the orchestrator addon (provider) and mirrored into the
20887
- * `zones` device-state slice on every mutation. Consumers
20888
- * (motion-wasm, pipeline-executor, analytics, admin UI) read either
20889
- * via `api.zones.listZones` (one-shot) or via `dev.state.zones` (live
20890
- * mirror with `onChanged`).
20891
- *
20892
- * Coordinates are normalised fractions of the frame (0–1) so zones
20893
- * survive resolution changes and stream profile switches.
20894
- *
20895
- * `kind` discriminates between full polygons (closed regions used
20896
- * for intrusion / occupancy filters) and tripwires (open 2-point
20897
- * line segments used for cross events). Onboard / firmware-reported
20898
- * zones (Reolink, ONVIF) are out of scope for now — see the deferred
20899
- * task list.
20900
- */
20901
- var ZoneKindEnum = z.enum(["polygon", "tripwire"]);
20902
- /** Polygon vertex in fraction-of-frame coordinates (0–1). */
20903
- var PolygonPointSchema = z.object({
20904
- x: z.number(),
20905
- y: z.number()
20906
- });
20907
- /** A camera detection zone — pure geometry/identity. */
20908
- var ZoneSchema = z.object({
20909
- id: z.string(),
20910
- name: z.string(),
20911
- kind: ZoneKindEnum.default("polygon"),
20912
- /** Polygon vertices, fraction of frame (0–1). */
20913
- polygon: z.array(PolygonPointSchema).readonly(),
20914
- /** Visual color for UI rendering. */
20915
- color: z.string().default("#3b82f6")
20916
- });
20917
- /**
20918
- * Zones capability — per-camera CRUD over polygon detection zones.
20919
- *
20920
- * Provider lives in `addon-pipeline-orchestrator` (hub-only). Persists
20921
- * to per-device settings and mirrors into the `zones` device-state
20922
- * slice on every mutation, so downstream consumers can subscribe via
20923
- * `dev.state.zones.onChanged`.
20924
- *
20925
- * The cap surface only handles geometry + identity; filtering
20926
- * behaviour (per-class, include/exclude, threshold) lives in the
20927
- * consumer addons' rule arrays — see `ZoneRuleSchema` exported from
20928
- * `capabilities/schemas/zone-rule.js`.
20929
- */
20930
- var zonesCapability = {
20931
- name: "zones",
20932
- scope: "device",
20933
- mode: "singleton",
20934
- deviceTypes: [DeviceType.Camera],
20935
- methods: {
20936
- listZones: method(z.object({ deviceId: z.number() }), z.array(ZoneSchema).readonly()),
20937
- addZone: method(z.object({
20938
- deviceId: z.number(),
20939
- zone: ZoneSchema
20940
- }), z.void(), {
20941
- kind: "mutation",
20942
- auth: "admin"
20943
- }),
20944
- removeZone: method(z.object({
20945
- deviceId: z.number(),
20946
- zoneId: z.string()
20947
- }), z.void(), {
20948
- kind: "mutation",
20949
- auth: "admin"
20950
- }),
20951
- updateZone: method(z.object({
20952
- deviceId: z.number(),
20953
- zone: ZoneSchema
20954
- }), z.void(), {
20955
- kind: "mutation",
20956
- auth: "admin"
20957
- })
20958
- },
20959
- /**
20960
- * Runtime-state slice — the live zone catalogue mirrored by the
20961
- * orchestrator on every CRUD mutation. Consumers read via
20962
- * `device.state.zones.value` / `.watch(...)` without round-tripping
20963
- * the cap, and the codegen DeviceProxy auto-wires the reactive
20964
- * handle. Slice shape is `{ zones: Zone[] }` so future extensions
20965
- * (e.g. zone groupings) can sit alongside the polygon list.
20966
- */
20967
- runtimeState: z.object({ zones: z.array(ZoneSchema).readonly() }),
20968
- /**
20969
- * Runtime-state durability: **restored** — written only on operator mutation, so a camera that never had one has nothing to re-derive from. This is the slice `zone-mirror-hydration.ts` exists to paper over.
20970
- *
20971
- * See `RuntimeStateDurability`. Enforced by
20972
- * `scripts/check-runtime-state-durability.ts`.
20973
- */
20974
- durability: "restored"
20975
- };
20976
- //#endregion
20977
- //#region src/capabilities/pipeline-analytics.cap.ts
20978
- /**
20979
- * pipeline-analytics — device-scoped wrapper cap. Refines raw
20980
- * per-frame detections emitted by the pipeline runner into tracked
20981
- * objects, per-kind event collections (motion / object / audio), and
20982
- * persisted media. Owns the post-detection domain end-to-end:
20983
- *
20984
- * runner emits PipelineInferenceResult
20985
- * ↓ (event bus)
20986
- * pipeline-analytics subscriber
20987
- * ↓ SORT tracker + zone engine + state analyzer + event emitter
20988
- * → three DB collections (one per kind), one FS media tree, one
20989
- * unified event emitter (FrameTracked + TrackStarted/Ended +
20990
- * DetectionEvent on bus)
20991
- *
20992
- * Pure subscriber model. No `processFrame` cap method — the runner
20993
- * already publishes the raw frame on the bus. The cap surface is
20994
- * only QUERIES + per-device settings, bound on/off via
20995
- * `device-manager.setWrapperActive`. `defaultActive: true` because
20996
- * every camera with a detection pipeline wants its raw detections
20997
- * refined; operators opt out per-device via BindingsTab when needed.
20998
- *
20999
- * Replaces the legacy `analysis-pipeline`, `analysis-data-persistence`
21000
- * (per-device surface) and `track-trail` caps — see P11 cleanup.
21001
- */
21002
- var TrackStateSchema = z.enum([
21003
- "new",
21004
- "entered",
21005
- "left",
21006
- "moving",
21007
- "idle"
21008
- ]);
21009
- var EventKindSchema = z.enum([
21010
- "motion",
21011
- "object",
21012
- "audio"
21013
- ]);
21014
- /**
21015
- * Spatial filter for `listTracks` — the rect + polygon variants of the shared
21016
- * MaskShape vocabulary (see `mask-shape.ts`). Coordinates are NORMALIZED 0..1
21017
- * of the camera frame (top-left origin), matching the drawing-plane editor.
21018
- */
21019
- var TrackZoneFilterSchema = z.discriminatedUnion("kind", [MaskRectShapeSchema, MaskPolygonShapeSchema]);
21020
- /** Closed icon vocabulary so clients render a known glyph per kind. */
21021
- var EventKindIconSchema = z.enum([
21022
- "motion",
21023
- "audio",
21024
- "person",
21025
- "vehicle",
21026
- "animal",
21027
- "door",
21028
- "pir",
21029
- "smoke",
21030
- "water",
21031
- "button",
21032
- "package",
21033
- "generic"
21034
- ]);
21035
- var EventKindCategorySchema = z.enum([
21036
- "motion",
21037
- "audio",
21038
- "detection",
21039
- "sensor",
21040
- "control",
21041
- "custom",
21042
- "package"
21043
- ]);
21044
- /** Taxonomy level — macro (timeline lane) vs sub (events-page leaf). */
21045
- var EventKindLevelSchema = z.enum(["macro", "sub"]);
21046
- var EventKindDescriptorSchema = z.object({
21047
- /** Stable kind id (e.g. 'motion', 'vehicle', 'car', 'lock'). */
21048
- kind: z.string(),
21049
- /** i18n key resolved on the UI side; `label` is the English fallback. */
21050
- labelKey: z.string(),
21051
- /** English fallback label (kept for clients that don't translate). */
21052
- label: z.string(),
21053
- /** Hex color for timeline/legend rendering. */
21054
- color: z.string(),
21055
- /** Dictionary id → lucide component on the UI side. */
21056
- iconId: z.string(),
21057
- /** Legacy closed-vocab glyph — fallback for `iconId`. */
21058
- icon: EventKindIconSchema,
21059
- category: EventKindCategorySchema,
21060
- /** Macro parent for this kind ('car' → 'vehicle'); null for a macro. */
21061
- parentKind: z.string().nullable(),
21062
- /** Derived from `parentKind`, explicit for the client tree. */
21063
- level: EventKindLevelSchema,
21064
- /** Which cap + device contributes this kind. For built-ins the camera
21065
- * itself; for sensor kinds the LINKED source device. */
21066
- source: z.object({
21067
- capName: z.string(),
21068
- deviceId: z.number()
21069
- })
21070
- });
21071
- /** One camera's event vocabulary, as returned by `listEventKindsBatch`. */
21072
- var EventKindsForDeviceSchema = z.object({
21073
- deviceId: z.number(),
21074
- kinds: z.array(EventKindDescriptorSchema).readonly()
21075
- });
21076
- var SensorEventSchema = z.object({
21077
- id: z.string(),
21078
- /** The CAMERA the event is attributed to (a sensor linked to N cameras
21079
- * yields N rows, one per camera). */
21080
- deviceId: z.number(),
21081
- /** The linked sensor device whose state changed. */
21082
- sourceDeviceId: z.number(),
21083
- /** Event kind id — matches an `EventKindDescriptor.kind`. */
21084
- kind: z.string(),
21085
- /** Snapshot of the sensor cap's runtime-state slice at the change. */
21086
- value: z.record(z.string(), z.unknown()).nullable(),
21087
- timestamp: z.number()
21088
- });
21089
- /**
21090
- * One stored sighting on a track's trajectory.
21091
- *
21092
- * The array these live in is returned in TIME order (D399) — it is APPENDED in
21093
- * arrival order, and the two detector passes interleave, so a consumer must not
21094
- * assume the two are the same on a row written by an older build.
21095
- */
21096
- var TrackPositionSchema = z.object({
21097
- x: z.number(),
21098
- y: z.number(),
21099
- timestamp: z.number(),
21100
- bbox: BoundingBoxSchema,
21101
- /**
21102
- * Which detector pass measured this box (D399): `frame` is the full-frame
21103
- * pass on the analysis raster, `recovery` is the native-resolution
21104
- * small-subject second pass (D377/D378). Both write into one array, and until
21105
- * this field existed the only way to tell them apart was that full-frame boxes
21106
- * are exact multiples of 1.2 while recovery boxes are full-precision floats.
21107
- * Absent on rows written before D399.
21108
- */
21109
- source: z.enum(["frame", "recovery"]).optional(),
21110
- /** Detection score of this box, so a position can be weighed and not only
21111
- * plotted. Absent on rows written before D399. */
21112
- score: z.number().optional()
21113
- });
21114
- var TrackSnapshotSchema = z.object({
21115
- timestamp: z.number(),
21116
- position: TrackPositionSchema,
21117
- /** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
21118
- mediaId: z.number().int()
21119
- });
21120
- /**
21121
- * Normalized 0..1 trajectory envelope (min/max over every position bbox,
21122
- * divided by the track's detection-frame dims), computed at persist time.
21123
- * Absent when the frame dims were unknown when the track was persisted
21124
- * (legacy rows / dims-less sources) and on active (in-RAM) tracks.
21125
- */
21126
- var TrackEnvelopeSchema = z.object({
21127
- minX: z.number(),
21128
- minY: z.number(),
21129
- maxX: z.number(),
21130
- maxY: z.number()
21131
- });
21132
- /**
21133
- * Row projection for track list queries. `full` (default) returns the
21134
- * complete Track including the frame-rate `positions[]` history and the
21135
- * `snapshots[]` references — megabytes across a page of tracks. `slim`
21136
- * keeps every scalar the list surfaces actually render (ids, class(es),
21137
- * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
21138
- * zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
21139
- * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
21140
- * `getTrack`. Mirrors the event-store `projection` convention
21141
- * (`getObjectEvents` et al.).
21142
- */
21143
- var TrackProjectionSchema = z.enum(["full", "slim"]);
21144
- /**
21145
- * One audio-classification label heard on the track's camera while the
21146
- * track was alive, aggregated per label. An "episode" is one persisted
21147
- * audio event (the confident-classification path: score ≥ the device's
21148
- * `classificationMinScore`, class-change-or-heartbeat coalesced) — NOT
21149
- * one 32 ms inference chunk, so counts stay human-scaled.
21150
- */
21151
- var TrackAudioLabelSchema = z.object({
21152
- label: z.string(),
21153
- /** Highest classification score observed across the label's episodes. */
21154
- peakScore: z.number(),
21155
- /** Number of coalesced audio-event episodes carrying this label. */
21156
- count: z.number(),
21157
- firstAt: z.number(),
21158
- lastAt: z.number()
21159
- });
21160
- /**
21161
- * How a track was produced. `pipeline` (default / absent) = the spatial
21162
- * detection+tracking pipeline. Every OTHER value is a SYNTHETIC projection —
21163
- * no positions, a single snapshot, and no bbox trajectory at all:
21164
- *
21165
- * - `sensor` — a linked sensor/control device state change.
21166
- * - `audio` — an audio event on the camera itself that was anomalous for
21167
- * THAT camera, loud, and heard while nothing visual was happening (D62).
21168
- *
21169
- * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
21170
- * that frame's pixel space. A real root detector and a SPATIAL one: its
21171
- * boxes are the same kind of fact `pipeline`'s are, produced by a different
21172
- * detector.
21173
- *
21174
- * `onboard` was missing here while `DetectionSourceSchema` already had it, so
21175
- * a persisted onboard track failed `safeParse` on read and came back with NO
21176
- * source at all — which `isSpatialTrack` then admitted by accident, through the
21177
- * `undefined` arm rather than by anybody's decision, and which `excludeSources`
21178
- * could not name.
21179
- *
21180
- * The spatial subsystems (tracker association, occupancy count, re-id /
21181
- * embedding, resurrection) MUST skip every synthetic source. Test for that
21182
- * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
21183
- * `!== 'sensor'` check silently readmits every source added after it was
21184
- * written.
20405
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
20406
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
20407
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
20408
+ * detector.
20409
+ *
20410
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
20411
+ * a persisted onboard track failed `safeParse` on read and came back with NO
20412
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
20413
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
20414
+ * could not name.
20415
+ *
20416
+ * The spatial subsystems (tracker association, occupancy count, re-id /
20417
+ * embedding, resurrection) MUST skip every synthetic source. Test for that
20418
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
20419
+ * `!== 'sensor'` check silently readmits every source added after it was
20420
+ * written.
21185
20421
  */
21186
20422
  var TrackSourceSchema = z.enum([
21187
20423
  "pipeline",
@@ -21573,6 +20809,22 @@ var TrackSchema = z.object({
21573
20809
  * omit it. Render nothing when absent.
21574
20810
  */
21575
20811
  previewMissReason: z.string().optional(),
20812
+ /**
20813
+ * The ROOT model that produced this track — the `FrameResult.rootModelId` of
20814
+ * the frame it was BORN on (D646). What a later replay compares against, so
20815
+ * "the original model" is named rather than assumed. A birth fact: never
20816
+ * rewritten by a later frame. **Absent ≠ unknown-model**: a row from before
20817
+ * the column, and a track the camera's own detector produced, carry none.
20818
+ */
20819
+ modelId: z.string().optional(),
20820
+ /**
20821
+ * Size (px) of the detection frame this track's `positions[].bbox` live in —
20822
+ * the frame it was born on, else the camera's latest analysis frame at
20823
+ * persist time. Divide a position by these to normalise it. Absent when the
20824
+ * size was never known.
20825
+ */
20826
+ frameWidth: z.number().optional(),
20827
+ frameHeight: z.number().optional(),
21576
20828
  ...TrackFlagFields,
21577
20829
  ...TrackRetrainFields
21578
20830
  });
@@ -22624,25 +21876,6 @@ var MediaReclaimStatusSchema = z.object({
22624
21876
  finishedAtMs: z.number().nullable(),
22625
21877
  error: z.string().nullable()
22626
21878
  });
22627
- var ReplayFrameInputSchema = z.object({
22628
- timestamp: z.number(),
22629
- frame: PipelineRunResultBridge
22630
- });
22631
- var ReplayTrackSchema = z.object({
22632
- className: z.string(),
22633
- firstSeenMs: z.number(),
22634
- lastSeenMs: z.number(),
22635
- /** Bbox of the track's FIRST matched detection, pixel-space in the clip's
22636
- * frame — a representative box for the diff's `(className, window, IoU)`
22637
- * pairing (`replay-diff.ts`). A replay does not need the full per-frame
22638
- * trajectory production's `Track.positions` keeps. */
22639
- bbox: BoundingBoxSchema,
22640
- /** How many of the input frames this track matched a real detection on
22641
- * (never a coasted/extrapolated frame) — the replay's own signal for "how
22642
- * solid is this track", cheaper than re-deriving it from a trajectory. */
22643
- framesMatched: z.number().int()
22644
- });
22645
- var RunReplayFrameProcessorResultSchema = z.object({ tracks: z.array(ReplayTrackSchema).readonly() });
22646
21879
  /**
22647
21880
  * The long-term series a camera produces. A closed union so a typo cannot
22648
21881
  * invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
@@ -23337,320 +22570,965 @@ var pipelineAnalyticsCapability = {
23337
22570
  deselectRetrainFrame: method(z.object({
23338
22571
  deviceId: z.number(),
23339
22572
  trackId: z.string(),
23340
- frameId: z.string()
23341
- }), z.object({
23342
- removed: z.boolean(),
23343
- removedAnnotations: z.number().int()
23344
- }), {
23345
- kind: "mutation",
23346
- auth: "admin"
23347
- }),
22573
+ frameId: z.string()
22574
+ }), z.object({
22575
+ removed: z.boolean(),
22576
+ removedAnnotations: z.number().int()
22577
+ }), {
22578
+ kind: "mutation",
22579
+ auth: "admin"
22580
+ }),
22581
+ /**
22582
+ * The pixels of ONE copied frame, base64.
22583
+ *
22584
+ * Through the cap rather than a data plane because it is genuinely one
22585
+ * frame at a time, on demand, at human speed — the shape D9/D18 permit
22586
+ * (what they forbid is frames crossing a boundary at frame RATE). The
22587
+ * annotation canvas needs the image and its exact dimensions in the same
22588
+ * answer: a canvas that places a normalised box against a size it guessed
22589
+ * draws every box in the wrong place.
22590
+ */
22591
+ getRetrainFrameImage: method(z.object({ frameId: z.string() }), z.object({
22592
+ base64: z.string(),
22593
+ width: z.number().int(),
22594
+ height: z.number().int()
22595
+ }), {
22596
+ kind: "query",
22597
+ auth: "admin"
22598
+ }),
22599
+ /**
22600
+ * Ask the pipeline what it sees, as a PROPOSAL.
22601
+ *
22602
+ * Runs through `pipelineRunner.runStatelessStep` on the COPIED frame, and
22603
+ * every box comes back as a draft with `source: 'assist'` plus the model and
22604
+ * score that produced it. The operator confirms, edits, adds and deletes;
22605
+ * nothing is stored until `saveRetrainAnnotations`.
22606
+ *
22607
+ * For packages the request is `rfdetr-package` on the ZONE CROP at 0.35 —
22608
+ * never the whole frame, where a package detector at that threshold proposes
22609
+ * furniture. A package request with no zone is REFUSED rather than widened,
22610
+ * because the silent widening would look like a bad model for as long as
22611
+ * nobody checked which rectangle it ran on.
22612
+ */
22613
+ proposeRetrainAnnotations: method(z.object({
22614
+ deviceId: z.number(),
22615
+ trackId: z.string(),
22616
+ frameId: z.string(),
22617
+ subject: RetrainAssistSubjectSchema,
22618
+ /** Which node runs it. Absent ⇒ wherever an unowned call lands. */
22619
+ nodeId: z.string().optional()
22620
+ }), RetrainAssistResultSchema, {
22621
+ kind: "mutation",
22622
+ auth: "admin"
22623
+ }),
22624
+ /** Every annotation on a track, oldest first. */
22625
+ listRetrainAnnotations: method(z.object({ trackId: z.string() }), z.array(RetrainAnnotationSchema).readonly(), {
22626
+ kind: "query",
22627
+ auth: "admin"
22628
+ }),
22629
+ /**
22630
+ * Replace EVERY annotation on one frame with the supplied set.
22631
+ *
22632
+ * Whole-frame replacement, not per-box upsert: the unit of ground truth is
22633
+ * the frame, and "the operator deleted a box" must be the same durable
22634
+ * outcome as "the operator never drew it". A per-box patch would let a frame
22635
+ * keep a box the operator removed on a surface that only knew about the
22636
+ * boxes it sent.
22637
+ *
22638
+ * Refuses a macro class typed into `label` or `subLabel` — the tiers are
22639
+ * separate and the guard is at the WRITE, because a mixed taxonomy cannot
22640
+ * be un-mixed by reading it.
22641
+ */
22642
+ saveRetrainAnnotations: method(z.object({
22643
+ deviceId: z.number(),
22644
+ trackId: z.string(),
22645
+ frameId: z.string(),
22646
+ annotations: z.array(RetrainAnnotationDraftSchema)
22647
+ }), z.array(RetrainAnnotationSchema).readonly(), {
22648
+ kind: "mutation",
22649
+ auth: "admin"
22650
+ }),
22651
+ /**
22652
+ * Finish with a track: `staging → trained`. **The only writer of that
22653
+ * state** — D81 shipped the column with it deliberately unreachable.
22654
+ *
22655
+ * Refuses a track the dataset holds no copies from. `trained` un-pins the
22656
+ * track's media, so completing without a copy is a delete order for material
22657
+ * nothing ever extracted anything from; that refusal IS the safety argument
22658
+ * of D81, expressed as a precondition.
22659
+ */
22660
+ completeRetrainTrack: method(z.object({
22661
+ deviceId: z.number(),
22662
+ trackId: z.string()
22663
+ }), RetrainTransitionResultSchema, {
22664
+ kind: "mutation",
22665
+ auth: "admin"
22666
+ }),
22667
+ /**
22668
+ * The deliberate return: `trained → staging`, for the rare case.
22669
+ *
22670
+ * The generic `setTrackFlags` toggle refuses this in both directions by
22671
+ * design (D81) — re-staging from a checkbox is how the same material gets
22672
+ * annotated twice under two ground truths. Doing it here means the operator
22673
+ * is looking at the annotations that already exist while they decide, and
22674
+ * those annotations are LEFT ALONE: "put this back" must not be a
22675
+ * destructive act wearing a navigational name.
22676
+ */
22677
+ restageRetrainTrack: method(z.object({
22678
+ deviceId: z.number(),
22679
+ trackId: z.string()
22680
+ }), RetrainTransitionResultSchema, {
22681
+ kind: "mutation",
22682
+ auth: "admin"
22683
+ }),
22684
+ /**
22685
+ * Where to download the ANNOTATED dataset.
22686
+ *
22687
+ * The sibling of `getTrainingExportUrl` and deliberately not the same
22688
+ * archive: that one streams a marked track's stored media verbatim, this one
22689
+ * streams the retrain COPIES plus an `annotations.json` carrying, for every
22690
+ * subject, the canonical full-frame box AND the geometry derived for each
22691
+ * model shape (letterboxed root / zone-cropped package / subject-cropped
22692
+ * classifier). Derived at export, never stored — one box in, three shapes
22693
+ * out, so two crops of the same subject can never end up in one feature
22694
+ * space (D52).
22695
+ */
22696
+ getRetrainExportUrl: method(z.object({ deviceIds: z.array(z.number()).optional() }), z.object({ url: z.string() }), {
22697
+ kind: "query",
22698
+ auth: "admin"
22699
+ }),
22700
+ /**
22701
+ * The media an EVENT owns.
22702
+ *
22703
+ * `ownerType` is REQUIRED, and that is the whole correction (D482). An
22704
+ * event is a row in ONE of three tables, and since D474 each numbers from
22705
+ * 1 independently: `motion:101314` and `object:101314` both exist. This
22706
+ * method took a bare `eventId` and the provider probed motion → object →
22707
+ * audio, stopping at the first hit — so on the live hub, where object
22708
+ * events own no media of their own and 299 883 of 300 559 media rows are
22709
+ * motion-owned, EVERY object event resolved to its motion namesake. A
22710
+ * track from 17:34 on camera 615 was served a snapshot from 22:35 eleven
22711
+ * days earlier, silently.
22712
+ *
22713
+ * D476 had already disambiguated the KEY (`motion:` vs `object:`); this is
22714
+ * the API catching up to it. Naming the table is not a "qualification" of
22715
+ * the ambiguity — a listing BY OWNER has no address to make surrogate: the
22716
+ * owner IS (table, id), and half of it is not a question.
22717
+ */
22718
+ getEventMedia: method(z.object({
22719
+ /** Which of the three event tables owns the row. */
22720
+ ownerType: EventOwnerTypeSchema,
22721
+ /** The event's rowid in that table (D474: an event id is a number). */
22722
+ eventId: z.number().int(),
22723
+ kind: MediaFileKindEnum.optional(),
22724
+ deviceId: z.number()
22725
+ }), z.array(MediaFileSchema).readonly()),
22726
+ /** All media rows owned by a track. `kinds` narrows to a kind subset so a
22727
+ * client can fetch the SMALL display variants on open and pull the
22728
+ * multi-MB native variants only on demand (mirrors `getEventMedia.kind`).
22729
+ * Absent ⇒ every kind (back-compat). */
22730
+ getTrackMedia: method(z.object({
22731
+ trackId: z.string(),
22732
+ kinds: z.array(MediaFileKindEnum).optional(),
22733
+ deviceId: z.number()
22734
+ }), z.array(MediaFileSchema).readonly()),
22735
+ /**
22736
+ * What media a track HAS, without any of it.
22737
+ *
22738
+ * The detail view needs the shape of a track's media to build its strip —
22739
+ * which kinds exist, in what order, at what size — and then wants each tile
22740
+ * fetched as an image, not as base64 inside this response. Measured: the
22741
+ * full `getTrackMedia` is 5.3-7.7 MB and blocks the view; this manifest is
22742
+ * ~2 KB.
22743
+ *
22744
+ * It also restores a fact a `kinds` filter destroys: filtering
22745
+ * `getTrackMedia` drops whole ROWS, taking `kind` and `sizeBytes` with
22746
+ * them, so a client that fetched only the small variants could no longer
22747
+ * tell a full-resolution variant existed — and the affordance that opens it
22748
+ * would silently disappear.
22749
+ */
22750
+ listTrackMedia: method(z.object({
22751
+ trackId: z.string(),
22752
+ deviceId: z.number()
22753
+ }), z.array(MediaFileInfoSchema).readonly()),
23348
22754
  /**
23349
- * The pixels of ONE copied frame, base64.
22755
+ * What media an EVENT has, without any of it — the twin `getEventMedia`
22756
+ * never had.
23350
22757
  *
23351
- * Through the cap rather than a data plane because it is genuinely one
23352
- * frame at a time, on demand, at human speed — the shape D9/D18 permit
23353
- * (what they forbid is frames crossing a boundary at frame RATE). The
23354
- * annotation canvas needs the image and its exact dimensions in the same
23355
- * answer: a canvas that places a normalised box against a size it guessed
23356
- * draws every box in the wrong place.
22758
+ * `listTrackMedia` above got this treatment because a track's media is
22759
+ * 5-8 MB. An event's is worse per row, not better: an old-style event owns
22760
+ * a `crop` AND a native-resolution `fullFrameBoxed`, and the track DETAIL
22761
+ * modal — the one surface that legitimately shows the big kinds — unions
22762
+ * both listings to build its filmstrip. It then renders every tile from
22763
+ * the `event-media` plane by key and throws the bytes away. Measured on
22764
+ * the live hub: one event's `fullFrameBoxed` is 2 824 077 B, base64'd to
22765
+ * ~3.8 MB, allocated whole in hub-main's heap, for a list of keys.
22766
+ *
22767
+ * Same `deviceId` authorization subject as `getEventMedia`, the same
22768
+ * REQUIRED `ownerType` (read that method's docblock for the night-time
22769
+ * thumbnail this closes — D482), and the same rows: this is a projection
22770
+ * of that method, never a different question.
23357
22771
  */
23358
- getRetrainFrameImage: method(z.object({ frameId: z.string() }), z.object({
23359
- base64: z.string(),
23360
- width: z.number().int(),
23361
- height: z.number().int()
23362
- }), {
23363
- kind: "query",
23364
- auth: "admin"
23365
- }),
22772
+ listEventMedia: method(z.object({
22773
+ ownerType: EventOwnerTypeSchema,
22774
+ eventId: z.number().int(),
22775
+ deviceId: z.number()
22776
+ }), z.array(MediaFileInfoSchema).readonly()),
23366
22777
  /**
23367
- * Ask the pipeline what it sees, as a PROPOSAL.
22778
+ * Which of `ownerIds` hold at least ONE media row — an INDEX read, never a
22779
+ * blob read, and the LICENCE `videoclips` needs to publish a `thumbnail`.
23368
22780
  *
23369
- * Runs through `pipelineRunner.runStatelessStep` on the COPIED frame, and
23370
- * every box comes back as a draft with `source: 'assist'` plus the model and
23371
- * score that produced it. The operator confirms, edits, adds and deletes;
23372
- * nothing is stored until `saveRetrainAnnotations`.
22781
+ * The event-media URL is stamped from a template for every event in the
22782
+ * system, so "the plane is up" was being served as "there are bytes": 64 of
22783
+ * one camera's 179 clips pointed at a 404 (device 3836, 2026-08-17). This
22784
+ * is the question that turns the stamp into a claim.
23373
22785
  *
23374
- * For packages the request is `rfdetr-package` on the ZONE CROP at 0.35 —
23375
- * never the whole frame, where a package detector at that threshold proposes
23376
- * furniture. A package request with no zone is REFUSED rather than widened,
23377
- * because the silent widening would look like a bad model for as long as
23378
- * nobody checked which rectangle it ran on.
22786
+ * It is on the WIRE because the clip source is registered by the addon that
22787
+ * owns the FOOTAGE, not by this one (D560) — the probe used to be an
22788
+ * in-process `MediaStore` read. One call per OWNER KIND, never one per
22789
+ * owner: that N+1 is what `MediaStore.ownersWithMedia` was written to
22790
+ * prevent, and crossing a process boundary makes it worse, not better.
22791
+ * `ownerIds` is bounded at the same 5 000 the annotation fetch is bounded
22792
+ * at, so one pathological camera-day cannot mint an unbounded request.
22793
+ *
22794
+ * THROWS rather than answering partially. A probe that quietly
22795
+ * under-reports reads as "these owners have nothing" and the caller drops
22796
+ * thumbnails that exist — the opposite failure to the one above, and
22797
+ * equally invisible.
22798
+ *
22799
+ * `deviceId` is the authorization subject, exactly as on `getEventMedia`.
23379
22800
  */
23380
- proposeRetrainAnnotations: method(z.object({
22801
+ ownersWithMedia: method(z.object({
23381
22802
  deviceId: z.number(),
23382
- trackId: z.string(),
23383
- frameId: z.string(),
23384
- subject: RetrainAssistSubjectSchema,
23385
- /** Which node runs it. Absent ⇒ wherever an unowned call lands. */
23386
- nodeId: z.string().optional()
23387
- }), RetrainAssistResultSchema, {
23388
- kind: "mutation",
23389
- auth: "admin"
23390
- }),
22803
+ ownerKind: MediaPresenceOwnerKindSchema,
22804
+ ownerIds: z.array(z.string()).max(5e3)
22805
+ }), z.array(z.string()).readonly()),
23391
22806
  /**
23392
- * The FrameProcessor pass of a replay run — see the `Replay` section
23393
- * above this capability's definition for why this is not the
23394
- * `processFrame` method this file's header says pipeline-analytics does
23395
- * not have.
23396
- *
23397
- * Constructs a FRESH `FrameProcessor` for `(deviceId, source)`, feeds it
23398
- * `frames` IN THE ORDER GIVEN (the caller is responsible for time
23399
- * ordering — this method does not sort), and returns the tracks it
23400
- * produced. Zero persistence: no `TrackStore`, no event bus, no media
23401
- * capture. `zones` / `detectionRules` are the run's OWN zone set —
23402
- * typically the camera's real zones plus an ephemeral overlay
23403
- * (`addon-benchmark`'s `replay-plan.ts`), never read from or written to
23404
- * the `zones` capability by this method itself.
22807
+ * Search object events by text query using CLIP cosine similarity.
22808
+ * Encodes `text` via the `embedding-encoder` cap, queries the
22809
+ * `ObjectEmbeddingStore` with optional prefilters, ranks all matching
22810
+ * embeddings by cosine similarity, and joins winners to their
22811
+ * ObjectEvents by trackId. Returns up to `limit` events scored ≥
22812
+ * `minScore`, sorted descending by score.
23405
22813
  */
23406
- runReplayFrameProcessor: method(z.object({
23407
- deviceId: z.number(),
23408
- source: DetectionSourceSchema,
23409
- zones: z.array(ZoneSchema).readonly().optional(),
23410
- detectionRules: z.array(ZoneRuleSchema).readonly().optional(),
23411
- zoneMembershipMinOverlap: z.number().min(0).max(1).optional(),
23412
- frames: z.array(ReplayFrameInputSchema).min(1)
23413
- }), RunReplayFrameProcessorResultSchema, {
22814
+ searchObjectEvents: method(SearchObjectEventsInput, z.array(ScoredObjectEventSchema).readonly()),
22815
+ wipeObjectEmbeddings: method(z.object({}), WipeObjectEmbeddingsResultSchema, {
23414
22816
  kind: "mutation",
23415
22817
  auth: "admin"
23416
22818
  }),
23417
- /** Every annotation on a track, oldest first. */
23418
- listRetrainAnnotations: method(z.object({ trackId: z.string() }), z.array(RetrainAnnotationSchema).readonly(), {
23419
- kind: "query",
22819
+ rebuildObjectEmbeddings: method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
22820
+ kind: "mutation",
23420
22821
  auth: "admin"
23421
22822
  }),
22823
+ getObjectEmbeddingRebuildStatus: method(z.object({}), RebuildStatusSchema)
22824
+ },
22825
+ events: {
23422
22826
  /**
23423
- * Replace EVERY annotation on one frame with the supplied set.
23424
- *
23425
- * Whole-frame replacement, not per-box upsert: the unit of ground truth is
23426
- * the frame, and "the operator deleted a box" must be the same durable
23427
- * outcome as "the operator never drew it". A per-box patch would let a frame
23428
- * keep a box the operator removed on a surface that only knew about the
23429
- * boxes it sent.
23430
- *
23431
- * Refuses a macro class typed into `label` or `subLabel` — the tiers are
23432
- * separate and the guard is at the WRITE, because a mixed taxonomy cannot
23433
- * be un-mixed by reading it.
22827
+ * Enriched frame emitted after refinement — the live-overlay source of
22828
+ * truth (two-plane re-injection). Carries the frame's detections in the
22829
+ * `ObjectDetection` wire shape: first-level roots (with track info +
22830
+ * enrichment labels) plus synthesized `kind:'detail'` face/plate entries
22831
+ * re-projected from per-track detail state, so stream overlays render
22832
+ * boxes + recognized names without querying full Track state.
23434
22833
  */
23435
- saveRetrainAnnotations: method(z.object({
22834
+ onFrameTracked: { data: z.object({
22835
+ deviceId: z.number(),
22836
+ timestamp: z.number(),
22837
+ frameWidth: z.number(),
22838
+ frameHeight: z.number(),
22839
+ detections: z.array(OverlayDetectionSchema).readonly()
22840
+ }) },
22841
+ /** Track entered active state (first-seen). */
22842
+ onTrackStarted: { data: z.object({
23436
22843
  deviceId: z.number(),
23437
22844
  trackId: z.string(),
23438
- frameId: z.string(),
23439
- annotations: z.array(RetrainAnnotationDraftSchema)
23440
- }), z.array(RetrainAnnotationSchema).readonly(), {
22845
+ className: z.string()
22846
+ }) },
22847
+ /** Track expired (TTL reached after last detection). */
22848
+ onTrackEnded: { data: z.object({
22849
+ deviceId: z.number(),
22850
+ trackId: z.string(),
22851
+ className: z.string(),
22852
+ durationMs: z.number()
22853
+ }) },
22854
+ /** Canonical "something happened at device X" event, per-kind. */
22855
+ onDetectionEvent: { data: z.object({
22856
+ deviceId: z.number(),
22857
+ kind: EventKindSchema,
22858
+ eventId: z.string(),
22859
+ timestamp: z.number()
22860
+ }) }
22861
+ }
22862
+ };
22863
+ //#endregion
22864
+ //#region src/capabilities/pipeline-executor.cap.ts
22865
+ /**
22866
+ * Reference to the frame's retained NATIVE surface + the parent crop's placement
22867
+ * within the frame, so the executor can re-cut a leaf child ROI at native
22868
+ * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
22869
+ */
22870
+ var NativeCropRefSchema = z.object({
22871
+ /** Handle keying the retained native surface (node-pinned to its owner). */
22872
+ handle: FrameHandleSchema,
22873
+ /** The parent crop's padded/clamped rectangle in FRAME-space pixels. */
22874
+ cropFrameSpace: z.object({
22875
+ x: z.number(),
22876
+ y: z.number(),
22877
+ w: z.number(),
22878
+ h: z.number()
22879
+ })
22880
+ });
22881
+ z.object({
22882
+ crop: z.object({
22883
+ left: z.number(),
22884
+ top: z.number(),
22885
+ width: z.number().positive(),
22886
+ height: z.number().positive()
22887
+ }).optional(),
22888
+ content: z.object({
22889
+ width: z.number().int().positive(),
22890
+ height: z.number().int().positive()
22891
+ }),
22892
+ fit: z.enum(["stretch", "contain"]),
22893
+ format: z.enum([
22894
+ "rgb",
22895
+ "gray",
22896
+ "jpeg"
22897
+ ])
22898
+ });
22899
+ /**
22900
+ * Process-local frame identity. It is serializable so it can ride an in-process
22901
+ * capability call, but `registryId` deliberately prevents resolution in any
22902
+ * other process or execution group.
22903
+ */
22904
+ var FrameRefSchema = z.object({
22905
+ registryId: z.string().min(1),
22906
+ id: z.string().min(1),
22907
+ width: z.number().int().positive(),
22908
+ height: z.number().int().positive(),
22909
+ format: z.enum(["rgb", "gray"]),
22910
+ timestamp: z.number(),
22911
+ capturedAt: z.number().optional()
22912
+ });
22913
+ var ModelFormatSchema$1 = z.enum([
22914
+ "onnx",
22915
+ "coreml",
22916
+ "openvino",
22917
+ "tflite",
22918
+ "pt",
22919
+ "gguf"
22920
+ ]);
22921
+ var PipelineSlotSchema = z.enum([
22922
+ "detector",
22923
+ "cropper",
22924
+ "classifier",
22925
+ "refiner",
22926
+ "audio-classifier"
22927
+ ]);
22928
+ var PipelineEngineChoiceSchema = z.object({
22929
+ runtime: z.literal("python"),
22930
+ backend: z.string(),
22931
+ format: ModelFormatSchema$1,
22932
+ device: z.string().optional()
22933
+ });
22934
+ /**
22935
+ * One pool's resolved provisioning (`getEffectiveTuning`). `numWorkers` is the
22936
+ * knob that lifts a saturated pool (`inference-devices.md`); `concurrency` is
22937
+ * per-worker in-flight requests. `deviceKey` echoes the pool asked about —
22938
+ * `null` for the node-default pool.
22939
+ */
22940
+ var EffectiveTuningSchema = z.object({
22941
+ deviceKey: z.string().nullable(),
22942
+ runtime: z.string(),
22943
+ batchMode: z.string(),
22944
+ windowMs: z.number(),
22945
+ maxBatchSize: z.number(),
22946
+ concurrency: z.number(),
22947
+ numWorkers: z.number()
22948
+ });
22949
+ var EngineDeviceInfoSchema = z.object({
22950
+ id: z.string(),
22951
+ label: z.string(),
22952
+ description: z.string().optional()
22953
+ });
22954
+ var AvailableEngineSchema = z.object({
22955
+ engine: PipelineEngineChoiceSchema,
22956
+ devices: z.array(EngineDeviceInfoSchema).readonly(),
22957
+ defaultDevice: z.string()
22958
+ });
22959
+ var PipelineDefaultStepSchema = z.lazy(() => z.object({
22960
+ addonId: z.string(),
22961
+ addonName: z.string(),
22962
+ slot: PipelineSlotSchema,
22963
+ inputClasses: z.array(z.string()).readonly(),
22964
+ outputClasses: z.array(z.string()).readonly(),
22965
+ enabled: z.boolean(),
22966
+ modelId: z.string(),
22967
+ children: z.array(PipelineDefaultStepSchema).readonly(),
22968
+ group: z.string().optional(),
22969
+ settings: z.record(z.string(), z.unknown()).optional()
22970
+ }));
22971
+ var PipelineTemplateStepSchema = z.lazy(() => z.object({
22972
+ addonId: z.string(),
22973
+ enabled: z.boolean(),
22974
+ modelId: z.string(),
22975
+ children: z.array(PipelineTemplateStepSchema).readonly(),
22976
+ settings: z.record(z.string(), z.unknown()).optional()
22977
+ }));
22978
+ var PipelineTemplateSchema$1 = z.object({
22979
+ id: z.string(),
22980
+ name: z.string(),
22981
+ createdAt: z.string(),
22982
+ updatedAt: z.string(),
22983
+ engine: PipelineEngineChoiceSchema,
22984
+ steps: z.array(PipelineTemplateStepSchema).readonly()
22985
+ });
22986
+ var PipelineModelOptionSchema = z.object({
22987
+ id: z.string(),
22988
+ name: z.string(),
22989
+ formats: z.record(z.string(), z.object({
22990
+ downloaded: z.boolean(),
22991
+ sizeMB: z.number()
22992
+ })),
22993
+ group: ModelVariantGroupSchema.optional(),
22994
+ legacy: z.boolean().optional(),
22995
+ provider: ModelProviderIdSchema.optional()
22996
+ });
22997
+ var ConfigFieldBridge = z.custom();
22998
+ var PipelineAddonSchemaSchema = z.object({
22999
+ id: z.string(),
23000
+ name: z.string(),
23001
+ slot: PipelineSlotSchema,
23002
+ inputClasses: z.array(z.string()).readonly(),
23003
+ outputClasses: z.array(z.string()).readonly(),
23004
+ childSlots: z.array(PipelineSlotSchema).readonly(),
23005
+ models: z.array(PipelineModelOptionSchema).readonly(),
23006
+ defaultModelId: z.string(),
23007
+ defaultModelIdByFormat: z.record(z.string(), z.string()).optional(),
23008
+ enabledByDefault: z.boolean().optional(),
23009
+ backfillIntoExistingOverrides: z.boolean().optional(),
23010
+ defaultConfidence: z.number(),
23011
+ group: z.string().optional(),
23012
+ configSchema: z.array(ConfigFieldBridge).readonly().optional()
23013
+ });
23014
+ var PipelineSlotSchemaSchema = z.object({
23015
+ id: PipelineSlotSchema,
23016
+ label: z.string(),
23017
+ priority: z.number(),
23018
+ parentSlot: PipelineSlotSchema.nullable(),
23019
+ addons: z.array(PipelineAddonSchemaSchema).readonly()
23020
+ });
23021
+ var PipelineSchemaSchema = z.object({
23022
+ availableEngines: z.array(AvailableEngineSchema).readonly(),
23023
+ selectedEngine: PipelineEngineChoiceSchema,
23024
+ slots: z.array(PipelineSlotSchemaSchema).readonly()
23025
+ });
23026
+ var EngineProvisioningSchema = z.object({
23027
+ runtimeId: z.enum([
23028
+ "onnx",
23029
+ "openvino",
23030
+ "coreml",
23031
+ "edgetpu"
23032
+ ]).nullable(),
23033
+ device: z.string().nullable(),
23034
+ state: z.enum([
23035
+ "idle",
23036
+ "installing",
23037
+ "verifying",
23038
+ "ready",
23039
+ "failed"
23040
+ ]),
23041
+ progress: z.number().optional(),
23042
+ error: z.string().optional(),
23043
+ nextRetryAt: z.number().optional(),
23044
+ /**
23045
+ * Gate A (config-correctness gate at engine change): human-readable
23046
+ * config issues surfaced EAGERLY when the node's engine changes — model
23047
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
23048
+ * has a <format> build"). Additive/optional: informational only, never
23049
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
23050
+ * Absent/empty when the node-default tree resolves cleanly.
23051
+ */
23052
+ configIssues: z.array(z.string()).optional()
23053
+ });
23054
+ var PipelineStepInputSchema = z.lazy(() => z.object({
23055
+ addonId: z.string(),
23056
+ modelId: z.string().optional(),
23057
+ enabled: z.boolean().default(true),
23058
+ children: z.array(PipelineStepInputSchema).optional(),
23059
+ settings: z.record(z.string(), z.unknown()).optional(),
23060
+ jumpDeviceKey: z.string().optional()
23061
+ }));
23062
+ var ModelSubstitutionSchema = z.object({
23063
+ addonId: z.string(),
23064
+ chosen: z.string(),
23065
+ running: z.string(),
23066
+ format: z.string()
23067
+ });
23068
+ var PipelineValidationIssueSchema = z.object({
23069
+ addonId: z.string(),
23070
+ kind: z.enum([
23071
+ "unknown-addon",
23072
+ "no-format-build",
23073
+ "unknown-device"
23074
+ ]),
23075
+ detail: z.string()
23076
+ });
23077
+ var PipelineValidationResultSchema = z.object({
23078
+ ok: z.boolean(),
23079
+ issues: z.array(PipelineValidationIssueSchema).readonly(),
23080
+ substitutions: z.array(ModelSubstitutionSchema).readonly(),
23081
+ /** The node's `currentEngine.format` this validation ran against. */
23082
+ format: z.string()
23083
+ });
23084
+ var ReferenceImageEntrySchema = z.object({
23085
+ filename: z.string(),
23086
+ stepIds: z.array(z.string()).readonly().optional()
23087
+ });
23088
+ var ReferenceImageBodySchema = z.object({
23089
+ base64: z.string(),
23090
+ filename: z.string()
23091
+ });
23092
+ var ReferenceAudioEntrySchema = z.object({
23093
+ filename: z.string(),
23094
+ sizeKb: z.number()
23095
+ });
23096
+ var ReferenceAudioBodySchema = z.object({ base64: z.string() });
23097
+ var AudioBackendSchema = z.object({
23098
+ id: z.string(),
23099
+ name: z.string(),
23100
+ description: z.string(),
23101
+ available: z.boolean(),
23102
+ /**
23103
+ * Raw classifier labels this backend can emit (e.g. YAMNet's
23104
+ * 521-class set or Apple SoundAnalysis's 303-class set). Used by
23105
+ * the benchmark UI to populate the `enabledMicroClasses` filter
23106
+ * specific to the selected backend without a separate fetch.
23107
+ */
23108
+ rawLabels: z.array(z.string()).readonly().optional()
23109
+ });
23110
+ var AudioCapabilitiesSchema = z.object({
23111
+ activeBackend: z.string(),
23112
+ availableBackends: z.array(AudioBackendSchema).readonly(),
23113
+ sampleRate: z.number(),
23114
+ chunkDurationMs: z.number()
23115
+ });
23116
+ var DownloadModelResultSchema = z.object({
23117
+ filePath: z.string(),
23118
+ sizeMB: z.number(),
23119
+ durationMs: z.number()
23120
+ });
23121
+ /**
23122
+ * Wrapper carrying a single test run's result. Replaces the legacy
23123
+ * ad-hoc `{labels: [{className, originalClass, score}]}` shape with the
23124
+ * canonical `AudioResult` from the Phase 6 output rework: one
23125
+ * `AudioDetection` per class above `minScore`, top-N candidates in
23126
+ * `debug.alternateLabels['audio-classifier']`, per-source timings in
23127
+ * `debug.stepTimings`. The outer `success`/`error` fields stay so the
23128
+ * benchmark UI can still report a clean failure when the classifier
23129
+ * cap isn't available.
23130
+ */
23131
+ var AudioTestResultSchema = z.object({
23132
+ success: z.boolean(),
23133
+ error: z.string().optional(),
23134
+ frame: z.custom().optional()
23135
+ });
23136
+ var PipelineConfigBridge = z.custom();
23137
+ var ConfigUISchemaBridge = z.custom();
23138
+ var ConfigUISchemaNullableBridge = z.custom();
23139
+ var InferenceCapabilitiesBridge = z.custom();
23140
+ var ModelAvailabilityListBridge = z.custom();
23141
+ var PipelineRunResultBridge = z.custom();
23142
+ /**
23143
+ * Pipeline executor — detection engine + configuration + inference API.
23144
+ *
23145
+ * Merged from: pipeline-executor, pipeline-config, inference, detection-config.
23146
+ * Implemented by the detection-pipeline addon.
23147
+ *
23148
+ * Per-device surface (DeviceSettingsContribution + the "is detection
23149
+ * enabled for this camera?" toggle) lives on the paired
23150
+ * `detection-pipeline` cap (device-scoped, singleton, wrapper
23151
+ * defaultActive) — same split pattern used by stream-broker /
23152
+ * camera-streams and audio-analyzer / audio-analysis.
23153
+ */
23154
+ var pipelineExecutorCapability = {
23155
+ name: "pipeline-executor",
23156
+ scope: "system",
23157
+ mode: "singleton",
23158
+ methods: {
23159
+ getAvailableEngines: method(z.void(), z.array(PipelineEngineChoiceSchema)),
23160
+ getSelectedEngine: method(z.void(), PipelineEngineChoiceSchema),
23161
+ getDefaultSteps: method(PipelineEngineChoiceSchema, z.array(PipelineDefaultStepSchema)),
23162
+ /**
23163
+ * Per-node detection-engine provisioning snapshot. Returns the live
23164
+ * state of the lazy runtime-provisioning machine on `nodeId`
23165
+ * (idle / installing / verifying / ready / failed). The UI pairs this
23166
+ * one-shot query with the `pipeline.engine-provisioning` live event
23167
+ * (emitted on every transition) to drive a per-node "engine ready?"
23168
+ * indicator without polling. Phase 2.
23169
+ */
23170
+ getEngineProvisioning: method(z.object({ nodeId: z.string() }), EngineProvisioningSchema),
23171
+ getVideoPipelineSteps: method(z.void(), z.record(z.string(), z.object({
23172
+ modelId: z.string(),
23173
+ settings: z.record(z.string(), z.unknown()).readonly()
23174
+ }))),
23175
+ setVideoPipelineSteps: method(z.object({ steps: z.record(z.string(), z.object({
23176
+ modelId: z.string(),
23177
+ settings: z.record(z.string(), z.unknown()).readonly()
23178
+ })) }), z.object({ success: z.literal(true) }), {
23441
23179
  kind: "mutation",
23442
23180
  auth: "admin"
23443
23181
  }),
23444
23182
  /**
23445
- * Finish with a track: `staging → trained`. **The only writer of that
23446
- * state** — D81 shipped the column with it deliberately unreachable.
23183
+ * Clear THIS node's executor-side PER-DEVICE settings stores (the
23184
+ * per-camera step overrides the object-detection root reads via
23185
+ * `applyDeviceOverridesToTree`). `nodeId` is the ROUTING key — the
23186
+ * generated cap-router strips it (default `nodeIdMode: 'routing'`) and
23187
+ * dispatches to that node, so the provider method runs ON the target
23188
+ * node and receives no `nodeId`.
23447
23189
  *
23448
- * Refuses a track the dataset holds no copies from. `trained` un-pins the
23449
- * track's media, so completing without a copy is a delete order for material
23450
- * nothing ever extracted anything from; that refusal IS the safety argument
23451
- * of D81, expressed as a precondition.
23190
+ * This is the slimmed executor leg of the orchestrator's
23191
+ * `resetNodePipelineDefaults` flow (which owns the real reset: node
23192
+ * addonDefaults pins + per-camera orchestrator overrides). The legacy
23193
+ * `resetToDefault` — which reset a persisted global step-tree seed
23194
+ * nothing in the live per-camera path read — was removed together with
23195
+ * that seed.
23452
23196
  */
23453
- completeRetrainTrack: method(z.object({
23454
- deviceId: z.number(),
23455
- trackId: z.string()
23456
- }), RetrainTransitionResultSchema, {
23197
+ clearDeviceOverrides: method(z.object({ nodeId: z.string() }), z.object({
23198
+ success: z.literal(true),
23199
+ clearedDevices: z.number()
23200
+ }), {
23457
23201
  kind: "mutation",
23458
23202
  auth: "admin"
23459
23203
  }),
23460
23204
  /**
23461
- * The deliberate return: `trained → staging`, for the rare case.
23205
+ * Which of THIS node's inference devices the executor currently refuses,
23206
+ * and why. `nodeId` is the ROUTING key (stripped by the generated router).
23207
+ *
23208
+ * The channel that did not exist. Pool health was known only inside the
23209
+ * detection addon and was an input to no routing decision anywhere: the
23210
+ * per-dispatch capability gate is keyed on model FORMAT and so can never
23211
+ * separate `openvino:gpu` from `openvino:npu`, and the orchestrator's live
23212
+ * eligibility probe (`platformProbe.getCapabilities`) answers about
23213
+ * HARDWARE — which was present throughout. So when the hub's `openvino:gpu`
23214
+ * Python worker was SIGABRT'd by the Intel GPU plugin on 2026-08-25, the
23215
+ * balancer went on handing that dead pool cameras by rotation for 31 hours:
23216
+ * ~370 000 `PoolWorker[w0]: not initialized` lines, every frame lost.
23217
+ *
23218
+ * Read semantics the caller depends on, and which the provider guarantees:
23219
+ * this is a synchronous read of in-memory state. It never probes hardware,
23220
+ * never spawns a pool and never throws — an EMPTY `unhealthy` means "asked,
23221
+ * nothing is refused", which is what re-admits a device. A read that FAILS
23222
+ * (node offline, version skew) must therefore be distinguishable from an
23223
+ * empty answer, and it is: it rejects.
23224
+ */
23225
+ getInferenceDeviceHealth: method(z.object({ nodeId: z.string() }), z.object({ unhealthy: z.array(z.object({
23226
+ /** `<backend>:<device>`, e.g. `openvino:gpu`. */
23227
+ deviceKey: z.string(),
23228
+ /**
23229
+ * `failed` — the per-device restart budget is exhausted; no pool
23230
+ * will be spawned until an operator re-arms it or the runner
23231
+ * respawns. `backoff` — under budget, waiting out the backoff (or
23232
+ * a cached pool observed dead and not yet condemned).
23233
+ */
23234
+ state: z.enum(["failed", "backoff"]),
23235
+ /** Epoch ms of the death that produced this state. */
23236
+ since: z.number(),
23237
+ /** Pool deaths inside the current window. */
23238
+ deaths: z.number(),
23239
+ /** The last death's message. */
23240
+ lastError: z.string()
23241
+ })).readonly() })),
23242
+ /**
23243
+ * Re-arm a terminally `failed` inference device on `nodeId`: forget its
23244
+ * restart budget so the next dispatch builds a fresh pool.
23462
23245
  *
23463
- * The generic `setTrackFlags` toggle refuses this in both directions by
23464
- * design (D81) — re-staging from a checkbox is how the same material gets
23465
- * annotated twice under two ground truths. Doing it here means the operator
23466
- * is looking at the annotations that already exist while they decide, and
23467
- * those annotations are LEFT ALONE: "put this back" must not be a
23468
- * destructive act wearing a navigational name.
23246
+ * The terminal state is deliberate (the abort it bounds is deterministic —
23247
+ * an automatic probation would just respawn Python forever, more slowly),
23248
+ * and a terminal state an operator cannot leave is a silent fault. This is
23249
+ * the way out. `rearmed:false` means there was nothing to forget.
23469
23250
  */
23470
- restageRetrainTrack: method(z.object({
23471
- deviceId: z.number(),
23472
- trackId: z.string()
23473
- }), RetrainTransitionResultSchema, {
23251
+ rearmInferenceDevice: method(z.object({
23252
+ nodeId: z.string(),
23253
+ deviceKey: z.string()
23254
+ }), z.object({ rearmed: z.boolean() }), {
23474
23255
  kind: "mutation",
23475
23256
  auth: "admin"
23476
23257
  }),
23258
+ getSchema: method(z.void(), PipelineSchemaSchema),
23259
+ getGlobalSteps: method(z.void(), z.array(PipelineDefaultStepSchema).readonly().nullable()),
23260
+ getGlobalPipelineConfig: method(z.void(), PipelineConfigBridge),
23261
+ getOrchestratorConfigSchema: method(z.void(), ConfigUISchemaBridge),
23477
23262
  /**
23478
- * Where to download the ANNOTATED dataset.
23263
+ * Gate B (pre-init config-correctness gate). PURE COMPUTE against this
23264
+ * node's `currentEngine.format` — resolves `steps` the same way the
23265
+ * runtime dispatch path would, and reports what WOULD happen without
23266
+ * touching any node-global state. Called by the orchestrator at attach
23267
+ * time (`attachOn`), node-pinned to the TARGET node, so config problems
23268
+ * surface BEFORE `pipelineRunner.attachCamera` rather than at the first
23269
+ * per-frame resolve. `ok` is false iff `issues` is non-empty (both
23270
+ * `unknown-addon` and `no-format-build` are HARD issues); `substitutions`
23271
+ * is informational (a degraded-but-loadable model swap) and never
23272
+ * affects `ok`. Never throws.
23479
23273
  *
23480
- * The sibling of `getTrainingExportUrl` and deliberately not the same
23481
- * archive: that one streams a marked track's stored media verbatim, this one
23482
- * streams the retrain COPIES plus an `annotations.json` carrying, for every
23483
- * subject, the canonical full-frame box AND the geometry derived for each
23484
- * model shape (letterboxed root / zone-cropped package / subject-cropped
23485
- * classifier). Derived at export, never stored — one box in, three shapes
23486
- * out, so two crops of the same subject can never end up in one feature
23487
- * space (D52).
23274
+ * `deviceKey` validates against THAT device pool's format instead of the
23275
+ * node default (D646) — the cheap question a pinned replay asks before it
23276
+ * reads any media: can this (node, deviceKey) run exactly this model?
23488
23277
  */
23489
- getRetrainExportUrl: method(z.object({ deviceIds: z.array(z.number()).optional() }), z.object({ url: z.string() }), {
23490
- kind: "query",
23491
- auth: "admin"
23492
- }),
23278
+ validatePipeline: method(z.object({
23279
+ steps: z.array(PipelineStepInputSchema),
23280
+ deviceKey: z.string().optional()
23281
+ }), PipelineValidationResultSchema),
23282
+ listTemplates: method(z.void(), z.array(PipelineTemplateSchema$1).readonly()),
23283
+ saveTemplate: method(z.object({
23284
+ name: z.string(),
23285
+ steps: z.array(PipelineTemplateStepSchema).readonly(),
23286
+ engine: PipelineEngineChoiceSchema
23287
+ }), PipelineTemplateSchema$1, { kind: "mutation" }),
23288
+ updateTemplate: method(z.object({
23289
+ id: z.string(),
23290
+ name: z.string().optional(),
23291
+ steps: z.array(PipelineTemplateStepSchema).readonly().optional()
23292
+ }), PipelineTemplateSchema$1, { kind: "mutation" }),
23293
+ deleteTemplate: method(z.object({ id: z.string() }), z.void(), { kind: "mutation" }),
23294
+ getCapabilities: method(z.void(), InferenceCapabilitiesBridge),
23295
+ getAddonModels: method(z.object({ addonId: z.string() }), ModelAvailabilityListBridge),
23296
+ downloadModel: method(z.object({
23297
+ addonId: z.string(),
23298
+ modelId: z.string(),
23299
+ format: ModelFormatSchema$1
23300
+ }), DownloadModelResultSchema, { kind: "mutation" }),
23301
+ deleteModel: method(z.object({
23302
+ addonId: z.string(),
23303
+ modelId: z.string(),
23304
+ format: ModelFormatSchema$1
23305
+ }), z.object({ success: z.literal(true) }), { kind: "mutation" }),
23493
23306
  /**
23494
- * The media an EVENT owns.
23307
+ * Stateless single-frame execution. Callers (runner, benchmark) pass
23308
+ * the complete `steps` tree; the executor holds no state about cameras
23309
+ * or saved pipelines. WHICH pool answers is the node's own engine, or the
23310
+ * `deviceKey` pool when one is named.
23495
23311
  *
23496
- * `ownerType` is REQUIRED, and that is the whole correction (D482). An
23497
- * event is a row in ONE of three tables, and since D474 each numbers from
23498
- * 1 independently: `motion:101314` and `object:101314` both exist. This
23499
- * method took a bare `eventId` and the provider probed motion → object →
23500
- * audio, stopping at the first hit — so on the live hub, where object
23501
- * events own no media of their own and 299 883 of 300 559 media rows are
23502
- * motion-owned, EVERY object event resolved to its motion namesake. A
23503
- * track from 17:34 on camera 615 was served a snapshot from 22:35 eleven
23504
- * days earlier, silently.
23312
+ * There is no `engine` field (D646). It existed for the benchmark and was
23313
+ * honoured by swapping the SHARED provider's engine, factory and executor
23314
+ * for the duration of the call, on a node serving live cameras. A caller
23315
+ * that still sends the key has it stripped here and changes nothing.
23505
23316
  *
23506
- * D476 had already disambiguated the KEY (`motion:` vs `object:`); this is
23507
- * the API catching up to it. Naming the table is not a "qualification" of
23508
- * the ambiguity — a listing BY OWNER has no address to make surrogate: the
23509
- * owner IS (table, id), and half of it is not a question.
23317
+ * Exactly one of `frame`, `frameRef`, `frameHandle`, `imageBase64`,
23318
+ * `referenceImage` must be provided:
23319
+ * - `frame`: runtime dispatch path (runner → decoded broker frame).
23320
+ * Carries the raw buffer, dimensions, and format; the executor
23321
+ * uses it directly without base64 round-tripping.
23322
+ * - `frameHandle` (CB5): a zero-pixel shm `FrameHandle` for the SAME
23323
+ * decoded frame. Both runner and executor are hub-local processes
23324
+ * sharing `/dev/shm`, so the executor maps the named segment and
23325
+ * reads the pixels back zero-copy — eliminating the ~1.2MB
23326
+ * re-serialisation over UDS/MsgPack the `frame` path pays per call.
23327
+ * High-risk: the FrameRing is a latest-wins seqlock with no
23328
+ * refcount, so a recycled slot yields a null read; the executor
23329
+ * then degrades to an empty result and the runner ships pixels via
23330
+ * `frame` as the fallback (queue-depth gated on the runner side).
23331
+ * - `imageBase64`: one-shot test path (benchmark ImageTab).
23332
+ * - `referenceImage`: named file from the reference-image store.
23510
23333
  */
23511
- getEventMedia: method(z.object({
23512
- /** Which of the three event tables owns the row. */
23513
- ownerType: EventOwnerTypeSchema,
23514
- /** The event's rowid in that table (D474: an event id is a number). */
23515
- eventId: z.number().int(),
23516
- kind: MediaFileKindEnum.optional(),
23517
- deviceId: z.number()
23518
- }), z.array(MediaFileSchema).readonly()),
23519
- /** All media rows owned by a track. `kinds` narrows to a kind subset so a
23520
- * client can fetch the SMALL display variants on open and pull the
23521
- * multi-MB native variants only on demand (mirrors `getEventMedia.kind`).
23522
- * Absent ⇒ every kind (back-compat). */
23523
- getTrackMedia: method(z.object({
23524
- trackId: z.string(),
23525
- kinds: z.array(MediaFileKindEnum).optional(),
23526
- deviceId: z.number()
23527
- }), z.array(MediaFileSchema).readonly()),
23334
+ runPipeline: method(z.object({
23335
+ steps: z.array(PipelineStepInputSchema).min(1),
23336
+ frame: FrameInputSchema.optional(),
23337
+ /**
23338
+ * Process-local lazy frame. Valid only when caller and provider resolve
23339
+ * in the same execution-group process; split/cross-node callers use
23340
+ * `frame`/`image` inline compatibility instead.
23341
+ */
23342
+ frameRef: FrameRefSchema.optional(),
23343
+ /**
23344
+ * CB5 shm passthrough — a `FrameHandle` naming the same ring slot
23345
+ * the decoded pixels live in. One more member of the one-of
23346
+ * frame/frameHandle/image/imageBase64/referenceImage group.
23347
+ */
23348
+ frameHandle: FrameHandleSchema.optional(),
23349
+ imageBase64: z.string().optional(),
23350
+ /**
23351
+ * Binary JPEG bytes — preferred over `imageBase64` on internal
23352
+ * hops (hub → forked worker via Moleculer MsgPack) because it
23353
+ * skips the 33% base64 overhead + the per-call base64 decode on
23354
+ * the detection-pipeline worker. Callers can pass either; exactly
23355
+ * one of `frame`/`image`/`imageBase64`/`referenceImage` is required.
23356
+ */
23357
+ image: z.instanceof(Uint8Array).optional(),
23358
+ referenceImage: z.string().optional(),
23359
+ deviceId: z.number().optional(),
23360
+ sessionId: z.string().optional(),
23361
+ /**
23362
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
23363
+ * reference-image, and detail-subtree calls. 'frame' is the live
23364
+ * per-frame dispatch: ONLY root-plane steps run; crop children
23365
+ * (inputClasses ≠ null) are skipped and served per-track via
23366
+ * pipelineRunner.runDetailSubtree (two-plane design).
23367
+ */
23368
+ plane: z.enum(["full", "frame"]).optional(),
23369
+ /**
23370
+ * Inference-device selector (Phase 2 multi-device). Format
23371
+ * `<backend>:<device>` (e.g. `openvino:gpu`, `edgetpu:usb`, `cpu`).
23372
+ * Omitted ⇒ the runner's default device (current single-engine
23373
+ * behaviour). Selects WHICH device pool of the node runs the call.
23374
+ */
23375
+ deviceKey: z.string().optional(),
23376
+ /**
23377
+ * Two-plane NATIVE child-crop reference. Set by `runDetailSubtree` ONLY
23378
+ * when the parent crop was resolved from the frame's retained NATIVE
23379
+ * surface (a frameHandle HIT). Lets the executor re-cut a LEAF crop
23380
+ * child's ROI (plate-ocr, face-embedding, leaf classifiers) at native
23381
+ * resolution from that surface — the SAME quality path faces already
23382
+ * had — instead of the downscaled parent tile. `handle` keys the native
23383
+ * surface (node-pinned to its owner); `cropFrameSpace` is the parent
23384
+ * crop's padded/clamped rectangle in FRAME-space pixels, used to compose
23385
+ * the executor's crop-normalized child ROI back into frame-normalized
23386
+ * coordinates. Auxiliary to the image source (`image`/`frame`/…), NOT one
23387
+ * of the mutually-exclusive image inputs. Absent ⇒ tile-crop children
23388
+ * (today's behaviour on the fallback path).
23389
+ */
23390
+ nativeCropRef: NativeCropRefSchema.optional(),
23391
+ /**
23392
+ * Offline REPLAY of stored media for `deviceId` (D56, D646): the
23393
+ * camera's zone gate and overrides apply as live, every executing
23394
+ * step runs EXACTLY the model it names on the `deviceKey` pool it
23395
+ * names or the call refuses (`model-not-servable` /
23396
+ * `device-not-servable`), and nothing reaches the camera's live
23397
+ * trace stream. Absent ⇒ unchanged behaviour.
23398
+ */
23399
+ replay: z.literal(true).optional()
23400
+ }), PipelineRunResultBridge, { kind: "mutation" }),
23528
23401
  /**
23529
- * What media a track HAS, without any of it.
23530
- *
23531
- * The detail view needs the shape of a track's media to build its strip —
23532
- * which kinds exist, in what order, at what size — and then wants each tile
23533
- * fetched as an image, not as base64 inside this response. Measured: the
23534
- * full `getTrackMedia` is 5.3-7.7 MB and blocks the view; this manifest is
23535
- * ~2 KB.
23402
+ * Batched run — N raw frames packed into one cap call. The provider
23403
+ * routes the batch through `SharedInferencePool.inferBatch`
23404
+ * (`MSG_INFER_BATCH = 0x03`) so the IPC framing and JSON response
23405
+ * envelope cost is amortised N:1 vs N concurrent `runPipeline`
23406
+ * calls. Single root step + uniform model assumed; trees with crop
23407
+ * children fall back to sequential execution.
23536
23408
  *
23537
- * It also restores a fact a `kinds` filter destroys: filtering
23538
- * `getTrackMedia` drops whole ROWS, taking `kind` and `sizeBytes` with
23539
- * them, so a client that fetched only the small variants could no longer
23540
- * tell a full-resolution variant existed — and the affordance that opens it
23541
- * would silently disappear.
23409
+ * Used by `scripts/bench-batch-style.mts` for batch benchmarking —
23410
+ * N frames in one call to amortise per-call IPC overhead.
23542
23411
  */
23543
- listTrackMedia: method(z.object({
23544
- trackId: z.string(),
23545
- deviceId: z.number()
23546
- }), z.array(MediaFileInfoSchema).readonly()),
23412
+ runPipelineBatch: method(z.object({
23413
+ steps: z.array(PipelineStepInputSchema).min(1),
23414
+ frames: z.array(FrameInputSchema).min(1).max(255),
23415
+ deviceId: z.number().optional(),
23416
+ sessionId: z.string().optional(),
23417
+ /**
23418
+ * Pure-inference benchmark hint. A NONZERO uint32 pins every frame in
23419
+ * the batch to the Python pool's bench preprocess cache
23420
+ * (`_bench_frame_id`) so a REPEATED benchmark frame is decoded +
23421
+ * preprocessed ONCE and every later inference is a pure-inference cache
23422
+ * hit — the sustained-throughput run measures inference, not
23423
+ * decode+preprocess+infer. Omitted/0 for live frames (all different →
23424
+ * full preprocess every call, correct). Fresh per sustained run;
23425
+ * released via `uncacheFrame`.
23426
+ */
23427
+ frameId: z.number().int().nonnegative().optional(),
23428
+ /** Inference-device selector (Phase 2 multi-device); see runPipeline. */
23429
+ deviceKey: z.string().optional()
23430
+ }), z.object({ results: z.array(PipelineRunResultBridge).readonly() }), { kind: "mutation" }),
23547
23431
  /**
23548
- * What media an EVENT has, without any of it — the twin `getEventMedia`
23549
- * never had.
23550
- *
23551
- * `listTrackMedia` above got this treatment because a track's media is
23552
- * 5-8 MB. An event's is worse per row, not better: an old-style event owns
23553
- * a `crop` AND a native-resolution `fullFrameBoxed`, and the track DETAIL
23554
- * modal — the one surface that legitimately shows the big kinds — unions
23555
- * both listings to build its filmstrip. It then renders every tile from
23556
- * the `event-media` plane by key and throws the bytes away. Measured on
23557
- * the live hub: one event's `fullFrameBoxed` is 2 824 077 B, base64'd to
23558
- * ~3.8 MB, allocated whole in hub-main's heap, for a list of keys.
23559
- *
23560
- * Same `deviceId` authorization subject as `getEventMedia`, the same
23561
- * REQUIRED `ownerType` (read that method's docblock for the night-time
23562
- * thumbnail this closes — D482), and the same rows: this is a projection
23563
- * of that method, never a different question.
23432
+ * Cache a raw frame inside the Python inference pool's memory.
23433
+ * Returns a numeric `frameId` that `inferCached` references —
23434
+ * subsequent calls send only 5 bytes through the pipe instead of
23435
+ * 1.2MB raw data, eliminating the pipe transfer bottleneck.
23564
23436
  */
23565
- listEventMedia: method(z.object({
23566
- ownerType: EventOwnerTypeSchema,
23567
- eventId: z.number().int(),
23568
- deviceId: z.number()
23569
- }), z.array(MediaFileInfoSchema).readonly()),
23437
+ cacheFrameInPool: method(z.object({
23438
+ data: z.instanceof(Uint8Array),
23439
+ width: z.number().int().positive(),
23440
+ height: z.number().int().positive(),
23441
+ format: z.enum([
23442
+ "rgb",
23443
+ "bgr",
23444
+ "gray"
23445
+ ])
23446
+ }), z.object({
23447
+ frameId: z.number(),
23448
+ width: z.number(),
23449
+ height: z.number()
23450
+ }), { kind: "mutation" }),
23570
23451
  /**
23571
- * Which of `ownerIds` hold at least ONE media row — an INDEX read, never a
23572
- * blob read, and the LICENCE `videoclips` needs to publish a `thumbnail`.
23573
- *
23574
- * The event-media URL is stamped from a template for every event in the
23575
- * system, so "the plane is up" was being served as "there are bytes": 64 of
23576
- * one camera's 179 clips pointed at a 404 (device 3836, 2026-08-17). This
23577
- * is the question that turns the stamp into a claim.
23578
- *
23579
- * It is on the WIRE because the clip source is registered by the addon that
23580
- * owns the FOOTAGE, not by this one (D560) — the probe used to be an
23581
- * in-process `MediaStore` read. One call per OWNER KIND, never one per
23582
- * owner: that N+1 is what `MediaStore.ownersWithMedia` was written to
23583
- * prevent, and crossing a process boundary makes it worse, not better.
23584
- * `ownerIds` is bounded at the same 5 000 the annotation fetch is bounded
23585
- * at, so one pathological camera-day cannot mint an unbounded request.
23586
- *
23587
- * THROWS rather than answering partially. A probe that quietly
23588
- * under-reports reads as "these owners have nothing" and the caller drops
23589
- * thumbnails that exist — the opposite failure to the one above, and
23590
- * equally invisible.
23591
- *
23592
- * `deviceId` is the authorization subject, exactly as on `getEventMedia`.
23452
+ * Run inference on a previously cached frame. Sends only 5 bytes
23453
+ * (model_idx + frameId) through the IPC pipe — eliminates the
23454
+ * ~35ms per-call overhead of transferring 1.2MB raw data.
23593
23455
  */
23594
- ownersWithMedia: method(z.object({
23595
- deviceId: z.number(),
23596
- ownerKind: MediaPresenceOwnerKindSchema,
23597
- ownerIds: z.array(z.string()).max(5e3)
23598
- }), z.array(z.string()).readonly()),
23456
+ inferCached: method(z.object({
23457
+ stepId: z.string(),
23458
+ frameId: z.number().int()
23459
+ }), z.record(z.string(), z.unknown()), { kind: "mutation" }),
23599
23460
  /**
23600
- * Search object events by text query using CLIP cosine similarity.
23601
- * Encodes `text` via the `embedding-encoder` cap, queries the
23602
- * `ObjectEmbeddingStore` with optional prefilters, ranks all matching
23603
- * embeddings by cosine similarity, and joins winners to their
23604
- * ObjectEvents by trackId. Returns up to `limit` events scored ≥
23605
- * `minScore`, sorted descending by score.
23461
+ * Release a cached frame from the Python pool's memory.
23606
23462
  */
23607
- searchObjectEvents: method(SearchObjectEventsInput, z.array(ScoredObjectEventSchema).readonly()),
23608
- wipeObjectEmbeddings: method(z.object({}), WipeObjectEmbeddingsResultSchema, {
23463
+ uncacheFrame: method(z.object({ frameId: z.number().int() }), z.void(), { kind: "mutation" }),
23464
+ /**
23465
+ * The effective provisioning of ONE pool of this node (operator override →
23466
+ * the pool's own runtime row). `deviceKey` names the device pool; absent is
23467
+ * the node-default pool. It answered only for the node default until
23468
+ * D646, so a benchmark on `openvino:npu` recorded the onnx pool's tuning
23469
+ * beside an NPU measurement.
23470
+ */
23471
+ getEffectiveTuning: method(z.object({ deviceKey: z.string().optional() }), EffectiveTuningSchema),
23472
+ /**
23473
+ * List every EngineFactory currently loaded in this executor's RAM,
23474
+ * with the models resident and a coarse "in use" marker derived from
23475
+ * ongoing inference activity. Used by the Pipeline page Engines tab.
23476
+ */
23477
+ listLoadedEngines: method(z.void(), z.array(z.object({
23478
+ engineKey: z.string(),
23479
+ engine: PipelineEngineChoiceSchema,
23480
+ modelsLoaded: z.array(z.string()).readonly(),
23481
+ inUseByCameras: z.array(z.number()).readonly(),
23482
+ /**
23483
+ * Origin of this resident factory.
23484
+ * - `runtime` — main camera-serving engine (no idle TTL).
23485
+ * - `device-pool` — a concurrent per-device pool (Phase 2
23486
+ * multi-device, keyed by `deviceKey`) resolved
23487
+ * via `resolveDeviceFactory`. Runs alongside the
23488
+ * `runtime` engine on a DIFFERENT accelerator
23489
+ * (NPU / iGPU / Coral) — this is how the
23490
+ * Engines tab shows all pools running at once.
23491
+ */
23492
+ kind: z.enum(["runtime", "device-pool"]),
23493
+ /** Native pid of the underlying Python pool (null when no pool). */
23494
+ poolPid: z.number().nullable(),
23495
+ /** ms since this factory was last used (null when not warm-tracked). */
23496
+ idleMs: z.number().nullable(),
23497
+ /** Idle TTL after which the factory self-evicts (null when not applicable). */
23498
+ idleTtlMs: z.number().nullable()
23499
+ })).readonly()),
23500
+ /** Warm up an engine without running a frame. No-op if already loaded. */
23501
+ spinEngine: method(z.object({ engine: PipelineEngineChoiceSchema }), z.object({ success: z.literal(true) }), {
23609
23502
  kind: "mutation",
23610
23503
  auth: "admin"
23611
23504
  }),
23612
- rebuildObjectEmbeddings: method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
23505
+ /**
23506
+ * Unload an engine from RAM. `force:true` unloads even when cameras
23507
+ * are actively using it (they re-spin on next frame). Default is
23508
+ * gated — returns `{success:false, reason}` when in use.
23509
+ */
23510
+ killEngine: method(z.object({
23511
+ engine: PipelineEngineChoiceSchema,
23512
+ force: z.boolean().optional()
23513
+ }), z.object({
23514
+ success: z.boolean(),
23515
+ reason: z.string().optional()
23516
+ }), {
23613
23517
  kind: "mutation",
23614
23518
  auth: "admin"
23615
23519
  }),
23616
- getObjectEmbeddingRebuildStatus: method(z.object({}), RebuildStatusSchema)
23617
- },
23618
- events: {
23619
- /**
23620
- * Enriched frame emitted after refinement — the live-overlay source of
23621
- * truth (two-plane re-injection). Carries the frame's detections in the
23622
- * `ObjectDetection` wire shape: first-level roots (with track info +
23623
- * enrichment labels) plus synthesized `kind:'detail'` face/plate entries
23624
- * re-projected from per-track detail state, so stream overlays render
23625
- * boxes + recognized names without querying full Track state.
23626
- */
23627
- onFrameTracked: { data: z.object({
23628
- deviceId: z.number(),
23629
- timestamp: z.number(),
23630
- frameWidth: z.number(),
23631
- frameHeight: z.number(),
23632
- detections: z.array(OverlayDetectionSchema).readonly()
23633
- }) },
23634
- /** Track entered active state (first-seen). */
23635
- onTrackStarted: { data: z.object({
23636
- deviceId: z.number(),
23637
- trackId: z.string(),
23638
- className: z.string()
23639
- }) },
23640
- /** Track expired (TTL reached after last detection). */
23641
- onTrackEnded: { data: z.object({
23642
- deviceId: z.number(),
23643
- trackId: z.string(),
23644
- className: z.string(),
23645
- durationMs: z.number()
23646
- }) },
23647
- /** Canonical "something happened at device X" event, per-kind. */
23648
- onDetectionEvent: { data: z.object({
23649
- deviceId: z.number(),
23650
- kind: EventKindSchema,
23651
- eventId: z.string(),
23652
- timestamp: z.number()
23653
- }) }
23520
+ listReferenceImages: method(z.void(), z.array(ReferenceImageEntrySchema).readonly()),
23521
+ getReferenceImage: method(z.object({ filename: z.string() }), ReferenceImageBodySchema.nullable()),
23522
+ getReferenceAudioFiles: method(z.void(), z.array(ReferenceAudioEntrySchema).readonly()),
23523
+ getReferenceAudio: method(z.object({ filename: z.string() }), ReferenceAudioBodySchema.nullable()),
23524
+ getAudioCapabilities: method(z.void(), AudioCapabilitiesSchema),
23525
+ runAudioTest: method(z.object({
23526
+ addonId: z.string(),
23527
+ modelId: z.string(),
23528
+ filename: z.string().optional(),
23529
+ settings: z.record(z.string(), z.unknown()).optional()
23530
+ }), AudioTestResultSchema, { kind: "mutation" }),
23531
+ getDetectionConfigSchema: method(z.void(), ConfigUISchemaNullableBridge)
23654
23532
  }
23655
23533
  };
23656
23534
  //#endregion
@@ -23681,6 +23559,108 @@ var CameraMetricsSchema = z.object({
23681
23559
  });
23682
23560
  var CameraMetricsWithDeviceIdSchema = CameraMetricsSchema.extend({ deviceId: z.number() });
23683
23561
  //#endregion
23562
+ //#region src/capabilities/zones.cap.ts
23563
+ /**
23564
+ * Zone — pure geometry + identity. NO filtering behaviour.
23565
+ *
23566
+ * Zones describe **where** in the frame the operator wants to flag
23567
+ * something; consumer-owned {@link ZoneRule} arrays describe **how**
23568
+ * each pipeline stage uses them. Splitting the two means a single
23569
+ * polygon "Driveway" can simultaneously back a motion-exclude rule,
23570
+ * a detection-include rule on `['car']`, and an occupancy aggregate
23571
+ * — without three duplicated polygons.
23572
+ *
23573
+ * Owned by the orchestrator addon (provider) and mirrored into the
23574
+ * `zones` device-state slice on every mutation. Consumers
23575
+ * (motion-wasm, pipeline-executor, analytics, admin UI) read either
23576
+ * via `api.zones.listZones` (one-shot) or via `dev.state.zones` (live
23577
+ * mirror with `onChanged`).
23578
+ *
23579
+ * Coordinates are normalised fractions of the frame (0–1) so zones
23580
+ * survive resolution changes and stream profile switches.
23581
+ *
23582
+ * `kind` discriminates between full polygons (closed regions used
23583
+ * for intrusion / occupancy filters) and tripwires (open 2-point
23584
+ * line segments used for cross events). Onboard / firmware-reported
23585
+ * zones (Reolink, ONVIF) are out of scope for now — see the deferred
23586
+ * task list.
23587
+ */
23588
+ var ZoneKindEnum = z.enum(["polygon", "tripwire"]);
23589
+ /** Polygon vertex in fraction-of-frame coordinates (0–1). */
23590
+ var PolygonPointSchema = z.object({
23591
+ x: z.number(),
23592
+ y: z.number()
23593
+ });
23594
+ /** A camera detection zone — pure geometry/identity. */
23595
+ var ZoneSchema = z.object({
23596
+ id: z.string(),
23597
+ name: z.string(),
23598
+ kind: ZoneKindEnum.default("polygon"),
23599
+ /** Polygon vertices, fraction of frame (0–1). */
23600
+ polygon: z.array(PolygonPointSchema).readonly(),
23601
+ /** Visual color for UI rendering. */
23602
+ color: z.string().default("#3b82f6")
23603
+ });
23604
+ /**
23605
+ * Zones capability — per-camera CRUD over polygon detection zones.
23606
+ *
23607
+ * Provider lives in `addon-pipeline-orchestrator` (hub-only). Persists
23608
+ * to per-device settings and mirrors into the `zones` device-state
23609
+ * slice on every mutation, so downstream consumers can subscribe via
23610
+ * `dev.state.zones.onChanged`.
23611
+ *
23612
+ * The cap surface only handles geometry + identity; filtering
23613
+ * behaviour (per-class, include/exclude, threshold) lives in the
23614
+ * consumer addons' rule arrays — see `ZoneRuleSchema` exported from
23615
+ * `capabilities/schemas/zone-rule.js`.
23616
+ */
23617
+ var zonesCapability = {
23618
+ name: "zones",
23619
+ scope: "device",
23620
+ mode: "singleton",
23621
+ deviceTypes: [DeviceType.Camera],
23622
+ methods: {
23623
+ listZones: method(z.object({ deviceId: z.number() }), z.array(ZoneSchema).readonly()),
23624
+ addZone: method(z.object({
23625
+ deviceId: z.number(),
23626
+ zone: ZoneSchema
23627
+ }), z.void(), {
23628
+ kind: "mutation",
23629
+ auth: "admin"
23630
+ }),
23631
+ removeZone: method(z.object({
23632
+ deviceId: z.number(),
23633
+ zoneId: z.string()
23634
+ }), z.void(), {
23635
+ kind: "mutation",
23636
+ auth: "admin"
23637
+ }),
23638
+ updateZone: method(z.object({
23639
+ deviceId: z.number(),
23640
+ zone: ZoneSchema
23641
+ }), z.void(), {
23642
+ kind: "mutation",
23643
+ auth: "admin"
23644
+ })
23645
+ },
23646
+ /**
23647
+ * Runtime-state slice — the live zone catalogue mirrored by the
23648
+ * orchestrator on every CRUD mutation. Consumers read via
23649
+ * `device.state.zones.value` / `.watch(...)` without round-tripping
23650
+ * the cap, and the codegen DeviceProxy auto-wires the reactive
23651
+ * handle. Slice shape is `{ zones: Zone[] }` so future extensions
23652
+ * (e.g. zone groupings) can sit alongside the polygon list.
23653
+ */
23654
+ runtimeState: z.object({ zones: z.array(ZoneSchema).readonly() }),
23655
+ /**
23656
+ * Runtime-state durability: **restored** — written only on operator mutation, so a camera that never had one has nothing to re-derive from. This is the slice `zone-mirror-hydration.ts` exists to paper over.
23657
+ *
23658
+ * See `RuntimeStateDurability`. Enforced by
23659
+ * `scripts/check-runtime-state-durability.ts`.
23660
+ */
23661
+ durability: "restored"
23662
+ };
23663
+ //#endregion
23684
23664
  //#region src/capabilities/pipeline-runner.cap.ts
23685
23665
  /**
23686
23666
  * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
@@ -37123,7 +37103,7 @@ var HardwareInfoSchema = z.object({
37123
37103
  coral: CoralInfoSchema.nullable().optional()
37124
37104
  });
37125
37105
  var PlatformScoreSchema = z.object({
37126
- runtime: z.enum(["node", "python"]),
37106
+ runtime: z.literal("python"),
37127
37107
  backend: z.string(),
37128
37108
  format: z.enum([
37129
37109
  "onnx",
@@ -37160,7 +37140,7 @@ var ModelRequirementSchema = z.object({
37160
37140
  });
37161
37141
  var ResolvedInferenceConfigSchema = z.object({
37162
37142
  modelId: z.string(),
37163
- runtime: z.enum(["node", "python"]),
37143
+ runtime: z.literal("python"),
37164
37144
  backend: z.string(),
37165
37145
  format: ModelFormatSchema,
37166
37146
  reason: z.string()
@@ -40818,6 +40798,98 @@ var sceneMonitorCapability = {
40818
40798
  durability: "session"
40819
40799
  };
40820
40800
  //#endregion
40801
+ //#region src/capabilities/schemas/zone-rule.ts
40802
+ /**
40803
+ * Per-stage gating mode applied to the zones a rule references.
40804
+ *
40805
+ * - `include`: the rule contributes to a **whitelist** for its stage.
40806
+ * When at least one `include` rule fires for a stage, only entities
40807
+ * inside one of those zones pass that stage.
40808
+ * - `exclude`: the rule contributes to a **blacklist** for its stage.
40809
+ * Entities inside one of those zones are dropped at that stage.
40810
+ *
40811
+ * `monitor`-style observation (count without filtering) is not a rule
40812
+ * mode — zones without any matching rule are observed naturally by
40813
+ * `zone-analytics` (live snapshot + history), so an "I just want to
40814
+ * count, not filter" use case needs no rule at all.
40815
+ */
40816
+ var ZoneRuleModeEnum = z.enum(["include", "exclude"]);
40817
+ /**
40818
+ * Per-consumer rule that references existing zones (geometry) and
40819
+ * defines how a specific pipeline stage should treat them. Each
40820
+ * consumer addon owns its own `ZoneRule[]` array in its per-device
40821
+ * settings:
40822
+ *
40823
+ * - `addon-motion-wasm` → `motionZoneRules: ZoneRule[]` (motion stage)
40824
+ * - `addon-detection-pipeline` → `detectionZoneRules: ZoneRule[]` (detection stage)
40825
+ * - future: notification rules, audio gating, etc.
40826
+ *
40827
+ * One rule applies to N zones (`zoneIds[]`) so the operator can
40828
+ * express "ignore motion in ALL of {garden, street}" with a single
40829
+ * rule. `classFilter` narrows the rule to specific object classes —
40830
+ * "drop person detections in the street, but keep cars" is one
40831
+ * `exclude` rule with `classFilter: ['person']`.
40832
+ *
40833
+ * `enabled` is a soft toggle — the operator can keep the rule
40834
+ * configured but inert without deleting it.
40835
+ */
40836
+ var ZoneRuleSchema = z.object({
40837
+ /** Stable rule id — survives edits, used by the UI for diffing. */
40838
+ id: z.string(),
40839
+ /** Optional human-readable label rendered in the rule editor. */
40840
+ name: z.string().optional(),
40841
+ /** Zones this rule targets. The rule's `mode` applies to ALL
40842
+ * listed zones (OR-set: a detection in any one of them counts).
40843
+ * At least one zone id required — a rule with no targets is a
40844
+ * configuration mistake and the form validator rejects it. */
40845
+ zoneIds: z.array(z.string()).min(1).readonly(),
40846
+ mode: ZoneRuleModeEnum,
40847
+ /**
40848
+ * Class names this rule applies to. Empty / undefined ⇒ rule
40849
+ * applies to every class. Class strings match the `macroClass`
40850
+ * field on detections (e.g. `person`, `car`, `dog`).
40851
+ */
40852
+ classFilter: z.array(z.string()).readonly().optional(),
40853
+ /**
40854
+ * Minimum bbox/mask overlap (0–1) with any of the rule's zones
40855
+ * required to consider an entity "in the zone". Defaults to the
40856
+ * consumer's stage default when omitted. Kept for back-compat with
40857
+ * existing per-rule overrides; new operators pick the value via
40858
+ * `bboxInclusionPct` (operator-friendly 0–100). Whichever field is
40859
+ * set, the lower-level engine reads it as a 0–1 fraction.
40860
+ */
40861
+ overlapThreshold: z.number().min(0).max(1).optional(),
40862
+ /**
40863
+ * Operator-friendly version of `overlapThreshold` — the percentage
40864
+ * of the detection's bbox that must lie inside the zone for the
40865
+ * rule to match. Documented default is 85%; the engine substitutes
40866
+ * that when the field is omitted (kept optional so existing rules
40867
+ * stored without it stay valid).
40868
+ *
40869
+ * When BOTH `overlapThreshold` and `bboxInclusionPct` are set on a
40870
+ * rule, the engine prefers `bboxInclusionPct` because it's the
40871
+ * field exposed in the UI. Internally both feed the same gate.
40872
+ */
40873
+ bboxInclusionPct: z.number().min(0).max(100).optional(),
40874
+ /**
40875
+ * When `true` and a detection has a segmentation mask, use the
40876
+ * mask for overlap instead of the bbox. Detection-stage only;
40877
+ * motion rules ignore this field.
40878
+ */
40879
+ preferMask: z.boolean().optional(),
40880
+ /**
40881
+ * Soft-toggle: `false` disables the rule without deleting it.
40882
+ * Defaults to `true` so operators creating a rule via the UI
40883
+ * see it active immediately.
40884
+ */
40885
+ enabled: z.boolean().default(true)
40886
+ });
40887
+ /**
40888
+ * Convenience array schema — used by addon device-settings
40889
+ * contributions and runtime payloads (e.g. `RunnerCameraConfig`).
40890
+ */
40891
+ var ZoneRulesArraySchema = z.array(ZoneRuleSchema).readonly();
40892
+ //#endregion
40821
40893
  //#region src/capabilities/script-runner.cap.ts
40822
40894
  /**
40823
40895
  * Script-runner cap. Models HA `script.*` entities on
@@ -53105,6 +53177,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
53105
53177
  addonId: null,
53106
53178
  access: "view"
53107
53179
  },
53180
+ "notificationRules.previewStateSummary": {
53181
+ capName: "notification-rules",
53182
+ capScope: "system",
53183
+ addonId: null,
53184
+ access: "view"
53185
+ },
53108
53186
  "notificationRules.previewTemplate": {
53109
53187
  capName: "notification-rules",
53110
53188
  capScope: "system",
@@ -53681,12 +53759,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
53681
53759
  addonId: null,
53682
53760
  access: "create"
53683
53761
  },
53684
- "pipelineAnalytics.runReplayFrameProcessor": {
53685
- capName: "pipeline-analytics",
53686
- capScope: "device",
53687
- addonId: null,
53688
- access: "create"
53689
- },
53690
53762
  "pipelineAnalytics.saveRetrainAnnotations": {
53691
53763
  capName: "pipeline-analytics",
53692
53764
  capScope: "device",
@@ -58115,11 +58187,6 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
58115
58187
  form: "single",
58116
58188
  optional: false
58117
58189
  }],
58118
- "pipelineAnalytics.runReplayFrameProcessor": [{
58119
- name: "deviceId",
58120
- form: "single",
58121
- optional: false
58122
- }],
58123
58190
  "pipelineAnalytics.saveRetrainAnnotations": [{
58124
58191
  name: "deviceId",
58125
58192
  form: "single",
@@ -61727,18 +61794,38 @@ var WEEKDAY_TO_DAY = {
61727
61794
  Fri: 5,
61728
61795
  Sat: 6
61729
61796
  };
61730
- /** Resolve (weekday, minute-of-day) of `atMs` in the schedule's timezone.
61731
- * An invalid/unknown IANA name falls back to the host timezone. */
61732
- function localDayMinute(atMs, timezone) {
61733
- const d = new Date(atMs);
61734
- if (timezone !== void 0) try {
61735
- const parts = new Intl.DateTimeFormat("en-US", {
61797
+ /**
61798
+ * One formatter per timezone, built once (D647 review I4). Constructing an
61799
+ * `Intl.DateTimeFormat` is the expensive part of this function, and a caller
61800
+ * that asks about many instants — a window scan — used to build one per
61801
+ * instant. `null` = an invalid IANA name (the host timezone is used).
61802
+ */
61803
+ var FORMATTERS = /* @__PURE__ */ new Map();
61804
+ function formatterFor(timezone) {
61805
+ const held = FORMATTERS.get(timezone);
61806
+ if (held !== void 0) return held;
61807
+ let made;
61808
+ try {
61809
+ made = new Intl.DateTimeFormat("en-US", {
61736
61810
  timeZone: timezone,
61737
61811
  weekday: "short",
61738
61812
  hour: "numeric",
61739
61813
  minute: "numeric",
61740
61814
  hourCycle: "h23"
61741
- }).formatToParts(d);
61815
+ });
61816
+ } catch {
61817
+ made = null;
61818
+ }
61819
+ FORMATTERS.set(timezone, made);
61820
+ return made;
61821
+ }
61822
+ /** Resolve (weekday, minute-of-day) of `atMs` in the schedule's timezone.
61823
+ * An invalid/unknown IANA name falls back to the host timezone. */
61824
+ function localDayMinute(atMs, timezone) {
61825
+ const d = new Date(atMs);
61826
+ const formatter = timezone !== void 0 ? formatterFor(timezone) : null;
61827
+ if (formatter !== null) try {
61828
+ const parts = formatter.formatToParts(d);
61742
61829
  let weekday;
61743
61830
  let hour;
61744
61831
  let minute;
@@ -61925,6 +62012,119 @@ var DEVICE_EVENTS = [
61925
62012
  "detection-blind",
61926
62013
  ...ALARM
61927
62014
  ];
62015
+ /** Every kind a summary may speak about — the two summarisable families. */
62016
+ var SUMMARISABLE = [...systemEventKindsOfFamily("device-events"), ...systemEventKindsOfFamily("system")];
62017
+ /** One per summary SECTION (`NC_STATE_SUMMARY_SECTIONS` in the notification
62018
+ * centre): the section's lines, offered when one of its kinds is selected. */
62019
+ var STATE_SUMMARY_SECTION_VARS = [
62020
+ {
62021
+ name: "summaryDevices",
62022
+ label: "Summary: devices offline / switched off",
62023
+ example: "Garage — offline since 07:12",
62024
+ kinds: [
62025
+ "device-offline",
62026
+ "device-online",
62027
+ "device-disabled",
62028
+ "device-enabled"
62029
+ ]
62030
+ },
62031
+ {
62032
+ name: "summaryStreams",
62033
+ label: "Summary: streams offline",
62034
+ example: "Ingresso (high) — since 06:40",
62035
+ kinds: ["stream-offline", "stream-online"]
62036
+ },
62037
+ {
62038
+ name: "summaryBattery",
62039
+ label: "Summary: low batteries",
62040
+ example: "Sensore porta — 8 %",
62041
+ kinds: BATTERY
62042
+ },
62043
+ {
62044
+ name: "summaryConsumables",
62045
+ label: "Summary: consumables",
62046
+ example: "Robot — filter 10 %",
62047
+ kinds: CONSUMABLE
62048
+ },
62049
+ {
62050
+ name: "summaryTanks",
62051
+ label: "Summary: tanks",
62052
+ example: "Robot — clean water low",
62053
+ kinds: TANK
62054
+ },
62055
+ {
62056
+ name: "summaryDetection",
62057
+ label: "Summary: cameras detecting nothing",
62058
+ example: "Ingresso — since 05:10",
62059
+ kinds: ["detection-blind"]
62060
+ },
62061
+ {
62062
+ name: "summaryNodes",
62063
+ label: "Summary: nodes",
62064
+ example: "little-unraid — offline since 03:00",
62065
+ kinds: [
62066
+ "node-offline",
62067
+ "node-online",
62068
+ "node-inference-unavailable"
62069
+ ]
62070
+ },
62071
+ {
62072
+ name: "summaryAddons",
62073
+ label: "Summary: addons",
62074
+ example: "@camstack/addon-recorder 1.2.3 → 1.2.4",
62075
+ kinds: [
62076
+ "addon-crash-loop",
62077
+ "addon-update-available",
62078
+ "addon-updated"
62079
+ ]
62080
+ },
62081
+ {
62082
+ name: "summaryUpdates",
62083
+ label: "Summary: server & container updates",
62084
+ example: "server 1.2.377 → 1.2.378",
62085
+ kinds: [
62086
+ "server-update-available",
62087
+ "server-updated",
62088
+ "wrapper-update-available"
62089
+ ]
62090
+ }
62091
+ ];
62092
+ var STATE_SUMMARY_VARS = [
62093
+ {
62094
+ name: "summaryText",
62095
+ label: "Summary: every section",
62096
+ description: "One block per section with something to report, one line per item.",
62097
+ example: "Batterie scariche: Sensore porta — 8 %",
62098
+ group: "system",
62099
+ families: ["rule"],
62100
+ fields: [...RULE_TEXT],
62101
+ kinds: ["system"],
62102
+ systemEventKinds: [...SUMMARISABLE],
62103
+ systemEventDeliveries: ["summary"]
62104
+ },
62105
+ {
62106
+ name: "summaryCount",
62107
+ label: "Summary: items reported",
62108
+ example: "3",
62109
+ group: "system",
62110
+ families: ["rule"],
62111
+ fields: [...RULE_TEXT],
62112
+ kinds: ["system"],
62113
+ systemEventKinds: [...SUMMARISABLE],
62114
+ systemEventDeliveries: ["summary"]
62115
+ },
62116
+ ...STATE_SUMMARY_SECTION_VARS.map((v) => ({
62117
+ name: v.name,
62118
+ label: v.label,
62119
+ example: v.example,
62120
+ group: "system",
62121
+ families: ["rule"],
62122
+ fields: [...RULE_TEXT],
62123
+ kinds: ["system"],
62124
+ systemEventKinds: [...v.kinds],
62125
+ systemEventDeliveries: ["summary"]
62126
+ }))
62127
+ ];
61928
62128
  var NC_TEMPLATE_VARS = [
61929
62129
  {
61930
62130
  name: "camera",
@@ -62175,7 +62375,8 @@ var NC_TEMPLATE_VARS = [
62175
62375
  group: "system",
62176
62376
  families: ["rule"],
62177
62377
  fields: [...RULE_TEXT],
62178
- kinds: ["system"]
62378
+ kinds: ["system"],
62379
+ systemEventDeliveries: ["instant"]
62179
62380
  },
62180
62381
  {
62181
62382
  name: "deviceName",
@@ -62618,7 +62819,8 @@ var NC_TEMPLATE_VARS = [
62618
62819
  group: "digest",
62619
62820
  families: ["summary"],
62620
62821
  fields: [...RULE_TEXT]
62621
- }
62822
+ },
62823
+ ...STATE_SUMMARY_VARS
62622
62824
  ];
62623
62825
  /**
62624
62826
  * System-event kinds the SERVED catalog holds back (D642): the kinds the hub
@@ -62647,11 +62849,32 @@ var NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS = [
62647
62849
  * rule an installed viewer can author, which is exactly true.
62648
62850
  */
62649
62851
  function servedTemplateVars() {
62650
- return NC_TEMPLATE_VARS.map((d) => d.systemEventKinds === void 0 ? d : {
62852
+ return NC_TEMPLATE_VARS.filter((d) => !isHeldBackTemplateVar(d)).map((d) => d.systemEventKinds === void 0 ? d : {
62651
62853
  ...d,
62652
62854
  systemEventKinds: d.systemEventKinds.filter((kind) => !NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS.includes(kind))
62653
62855
  });
62654
62856
  }
62857
+ /**
62858
+ * Is this descriptor held back from the SERVED catalog as a whole (D647)?
62859
+ * A summary-only variable is: an installed viewer does not read the delivery
62860
+ * axis, and would offer it on every instant system rule. The admin, built
62861
+ * from the workspace, restores it from its own `NC_TEMPLATE_VARS`.
62862
+ */
62863
+ function isHeldBackTemplateVar(d) {
62864
+ return d.systemEventDeliveries !== void 0 && !d.systemEventDeliveries.includes("instant");
62865
+ }
62866
+ /**
62867
+ * Does a descriptor have a value on a system rule of this DELIVERY (D647)?
62868
+ * Read only for a system rule kind. An absent axis is `instant` for a
62869
+ * descriptor that names `systemEventKinds` (a per-event fact: a summary row
62870
+ * has no one device, node or package) and BOTH for one that does not
62871
+ * (`{{rule}}`, `{{time}}`).
62872
+ */
62873
+ function templateVarDeliveryApplies(d, ctx) {
62874
+ if (!isSystemRuleKind(ctx.kind)) return true;
62875
+ const mode = ctx.systemEventDelivery ?? "instant";
62876
+ return (d.systemEventDeliveries ?? (d.systemEventKinds !== void 0 ? ["instant"] : [mode])).includes(mode);
62877
+ }
62655
62878
  /** The caption fields see a fixed, smaller vocabulary (`timelapsePreviewText`,
62656
62879
  * `summaryCaptionText`). Declared here rather than as `fields` on every
62657
62880
  * descriptor so the whole rule stays in one line of code. */
@@ -62716,13 +62939,122 @@ function templateVarsFor(ctx) {
62716
62939
  const allowed = CAPTION_VARS[ctx.field];
62717
62940
  return NC_TEMPLATE_VARS.filter((d) => d.families.includes(ctx.family) && allowed.includes(d.name) && d.dynamic === void 0);
62718
62941
  }
62719
- return NC_TEMPLATE_VARS.filter((d) => d.families.includes(ctx.family) && onAxis(d.fields, ctx.field) && templateVarKindApplies(d.kinds, ctx.kind) && onAxis(d.deliveries, ctx.delivery) && templateVarSystemEventApplies(d, ctx));
62942
+ return NC_TEMPLATE_VARS.filter((d) => d.families.includes(ctx.family) && onAxis(d.fields, ctx.field) && templateVarKindApplies(d.kinds, ctx.kind) && onAxis(d.deliveries, ctx.delivery) && templateVarSystemEventApplies(d, ctx) && templateVarDeliveryApplies(d, ctx));
62720
62943
  }
62721
62944
  /** True when `name` is supplied in `ctx`, dynamic families (`count_<class>`) included. */
62722
62945
  function isKnownTemplateVar(name, ctx) {
62723
62946
  return templateVarsFor(ctx).some((d) => d.dynamic !== void 0 ? name.startsWith(d.dynamic.prefix) && name.length > d.dynamic.prefix.length : d.name === name);
62724
62947
  }
62725
62948
  //#endregion
62949
+ //#region src/notification/system-event-summary.ts
62950
+ /** The families a rule may summarise. The alarm is not one of them. */
62951
+ var NC_SYSTEM_EVENT_SUMMARY_FAMILIES = ["device-events", "system"];
62952
+ /** The summary's schedule, or `null` for any rule that is not a summary system rule. */
62953
+ function systemEventSummaryScheduleOf(rule) {
62954
+ if (!isSystemDelivery(rule.delivery)) return null;
62955
+ const delivery = rule.systemEventDelivery;
62956
+ return delivery?.mode === "summary" ? delivery.schedule : null;
62957
+ }
62958
+ /** Absent and `instant` are the same answer: a notification per event. */
62959
+ function isSystemEventSummaryRule(rule) {
62960
+ return systemEventSummaryScheduleOf(rule) !== null;
62961
+ }
62962
+ function actionsAreSet(actions) {
62963
+ return (actions?.onTrigger?.length ?? 0) > 0 || (actions?.buttons?.length ?? 0) > 0;
62964
+ }
62965
+ /**
62966
+ * Why the hub refuses this rule's delivery. Empty = accepted. An instant rule
62967
+ * (absent or `{ mode: 'instant' }`) is never refused here.
62968
+ *
62969
+ * Beside a summary, two fields are refused because they would do nothing:
62970
+ * the rule's own `schedule` (the summary's schedule is the send time; a second
62971
+ * active-hours gate would silently empty it) and `actions` (a summary is not a
62972
+ * match, so nothing would ever run them).
62973
+ */
62974
+ function systemEventDeliveryProblems(rule) {
62975
+ if (rule.systemEventDelivery?.mode !== "summary") return [];
62976
+ if (!isSystemDelivery(rule.delivery)) return [{
62977
+ code: "not-a-system-rule",
62978
+ delivery: rule.delivery
62979
+ }];
62980
+ const problems = [];
62981
+ const verdict = systemEventFamilyOf(rule.conditions.systemEvent?.kinds ?? []);
62982
+ const family = verdict.kind === "family" ? verdict.family : "mixed";
62983
+ if (family === "mixed" || !NC_SYSTEM_EVENT_SUMMARY_FAMILIES.includes(family)) problems.push({
62984
+ code: "family-not-summarisable",
62985
+ family
62986
+ });
62987
+ const windows = rule.systemEventDelivery.schedule.windows;
62988
+ if (windows.length === 0) problems.push({ code: "empty-schedule" });
62989
+ windows.forEach((window, index) => {
62990
+ if (window.days.length === 0 || window.startMinute === window.endMinute) problems.push({
62991
+ code: "degenerate-window",
62992
+ index
62993
+ });
62994
+ });
62995
+ if (rule.schedule !== void 0) problems.push({ code: "schedule-beside-summary" });
62996
+ if (actionsAreSet(rule.actions)) problems.push({ code: "actions-beside-summary" });
62997
+ return problems;
62998
+ }
62999
+ function describeSystemEventDeliveryProblem(problem) {
63000
+ switch (problem.code) {
63001
+ case "not-a-system-rule": return `a '${problem.delivery}' rule has no summary delivery — only device-events and system rules do`;
63002
+ case "family-not-summarisable": return problem.family === "alarm" ? "an alarm rule cannot be a scheduled summary — the alarm stays instant" : `a ${problem.family} rule cannot be a scheduled summary — only device-events and system rules`;
63003
+ case "degenerate-window": return `send time ${String(problem.index + 1)} has no day, or starts and ends on the same minute — it never closes, so nothing would be sent`;
63004
+ case "empty-schedule": return "a summary rule needs at least one send time — its schedule has no window";
63005
+ case "schedule-beside-summary": return "a summary rule is sent on its summary schedule — remove the active-hours schedule";
63006
+ case "actions-beside-summary": return "a summary rule never matches an event, so its actions would never run — remove them";
63007
+ }
63008
+ }
63009
+ var DAY_MINUTES = 1440;
63010
+ /**
63011
+ * A send time is a ONE-MINUTE window that closes at that minute: the summary is
63012
+ * sent when a window ends. Midnight starts the window at 23:59 of the day
63013
+ * BEFORE, because a window's `days` are the days it STARTS on.
63014
+ */
63015
+ function scheduleForSendTimes(times, timezone) {
63016
+ return {
63017
+ windows: times.map((time) => {
63018
+ const startMinute = (time.minute + DAY_MINUTES - 1) % DAY_MINUTES;
63019
+ return {
63020
+ days: (time.minute === 0 ? time.days.map((day) => (day + 6) % 7) : [...time.days]).toSorted((a, b) => a - b),
63021
+ startMinute,
63022
+ endMinute: time.minute
63023
+ };
63024
+ }),
63025
+ ...timezone !== void 0 ? { timezone } : {}
63026
+ };
63027
+ }
63028
+ /**
63029
+ * The send times a schedule stands for, or `null` when it is not a list of
63030
+ * one-minute windows (an inverted or a longer window): the editor then shows
63031
+ * the raw windows and says the summary is sent when each one ENDS.
63032
+ */
63033
+ function sendTimesOfSchedule(schedule) {
63034
+ if (schedule.invert === true) return null;
63035
+ const times = [];
63036
+ for (const window of schedule.windows) {
63037
+ if ((window.endMinute - window.startMinute + DAY_MINUTES) % DAY_MINUTES !== 1) return null;
63038
+ const days = window.endMinute === 0 ? window.days.map((day) => (day + 1) % 7) : window.days;
63039
+ times.push({
63040
+ days: days.toSorted((a, b) => a - b),
63041
+ minute: window.endMinute
63042
+ });
63043
+ }
63044
+ return times;
63045
+ }
63046
+ var SUMMARY_CONTENT_VAR = /\{\{\s*summary(?:Text|Devices|Streams|Battery|Consumables|Tanks|Detection|Nodes|Addons|Updates)\s*\}\}/;
63047
+ /**
63048
+ * Does a custom BODY carry the summary's content (`{{summaryText}}` or a
63049
+ * section variable)? A body that does not would send a summary with nothing
63050
+ * in it; the hub then appends `{{summaryText}}` and the admin warns (review
63051
+ * M3). An absent or blank body uses the hub's own wording, which does.
63052
+ */
63053
+ function templateCarriesSummary(body) {
63054
+ if (body === void 0 || body.trim().length === 0) return true;
63055
+ return SUMMARY_CONTENT_VAR.test(body);
63056
+ }
63057
+ //#endregion
62726
63058
  //#region src/notification/scope-picker-items.ts
62727
63059
  function nodePickerItems(nodes) {
62728
63060
  return nodes.map((node) => ({
@@ -64534,6 +64866,112 @@ function isSameAddonId(a, b) {
64534
64866
  return bareAddonId(a) === bareAddonId(b);
64535
64867
  }
64536
64868
  //#endregion
64869
+ //#region src/utils/background-run-registry.ts
64870
+ function snapshot(run) {
64871
+ return {
64872
+ runId: run.runId,
64873
+ state: run.state,
64874
+ startedAtMs: run.startedAtMs,
64875
+ finishedAtMs: run.finishedAtMs,
64876
+ progress: run.progress,
64877
+ result: run.result,
64878
+ error: run.error
64879
+ };
64880
+ }
64881
+ var BackgroundRunRegistry = class {
64882
+ opts;
64883
+ runs = /* @__PURE__ */ new Map();
64884
+ now;
64885
+ constructor(opts) {
64886
+ this.opts = opts;
64887
+ this.now = opts.now ?? Date.now;
64888
+ }
64889
+ /** Runs still going. */
64890
+ get runningCount() {
64891
+ let n = 0;
64892
+ for (const run of this.runs.values()) if (run.state === "running") n += 1;
64893
+ return n;
64894
+ }
64895
+ /**
64896
+ * Register and start `work`. Returns the `running` receipt immediately.
64897
+ * Throws only for a refusal the caller must see (duplicate id, busy) — a
64898
+ * failure of the work itself lands in `status`, never here.
64899
+ */
64900
+ start(runId, work) {
64901
+ const existing = this.runs.get(runId);
64902
+ if (existing !== void 0 && existing.state === "running") throw new Error(`run '${runId}' is already running`);
64903
+ if (this.runningCount >= this.opts.maxConcurrent) throw new Error(`busy: ${this.runningCount}/${this.opts.maxConcurrent} run(s) already in progress — wait for one to finish or abort it`);
64904
+ const run = {
64905
+ runId,
64906
+ state: "running",
64907
+ startedAtMs: this.now(),
64908
+ finishedAtMs: null,
64909
+ progress: null,
64910
+ result: null,
64911
+ error: null,
64912
+ controller: new AbortController()
64913
+ };
64914
+ this.runs.delete(runId);
64915
+ this.runs.set(runId, run);
64916
+ const ctx = {
64917
+ signal: run.controller.signal,
64918
+ report: (progress) => {
64919
+ run.progress = progress;
64920
+ }
64921
+ };
64922
+ const settle = (patch) => {
64923
+ if (patch.error !== void 0) {
64924
+ run.state = "failed";
64925
+ run.error = patch.error;
64926
+ } else {
64927
+ run.state = run.controller.signal.aborted ? "aborted" : "done";
64928
+ run.result = patch.result ?? null;
64929
+ }
64930
+ run.finishedAtMs = this.now();
64931
+ this.prune();
64932
+ this.opts.onSettled?.(snapshot(run));
64933
+ };
64934
+ let pending;
64935
+ try {
64936
+ pending = work(ctx);
64937
+ } catch (err) {
64938
+ pending = Promise.reject(err);
64939
+ }
64940
+ pending.then((result) => settle({ result }), (err) => settle({ error: err instanceof Error ? err.message : String(err) }));
64941
+ return snapshot(run);
64942
+ }
64943
+ status(runId) {
64944
+ const run = this.runs.get(runId);
64945
+ return run === void 0 ? null : snapshot(run);
64946
+ }
64947
+ /** Running runs first (newest start first), then finished ones (newest finish first). */
64948
+ list() {
64949
+ const all = [...this.runs.values()];
64950
+ const running = all.filter((r) => r.state === "running").toSorted((a, b) => b.startedAtMs - a.startedAtMs);
64951
+ const finished = all.filter((r) => r.state !== "running").toSorted((a, b) => (b.finishedAtMs ?? 0) - (a.finishedAtMs ?? 0));
64952
+ return [...running, ...finished].map(snapshot);
64953
+ }
64954
+ /** Signal a running run to stop. `false` for an unknown or already finished run. */
64955
+ abort(runId) {
64956
+ const run = this.runs.get(runId);
64957
+ if (run === void 0 || run.state !== "running") return false;
64958
+ run.controller.abort();
64959
+ return true;
64960
+ }
64961
+ /** Abort every running run (shutdown). */
64962
+ abortAll() {
64963
+ for (const run of this.runs.values()) if (run.state === "running") run.controller.abort();
64964
+ }
64965
+ prune() {
64966
+ const finished = [...this.runs.values()].filter((r) => r.state !== "running").toSorted((a, b) => (a.finishedAtMs ?? 0) - (b.finishedAtMs ?? 0));
64967
+ const excess = finished.length - this.opts.keepFinished;
64968
+ for (let i = 0; i < excess; i++) {
64969
+ const victim = finished[i];
64970
+ if (victim !== void 0) this.runs.delete(victim.runId);
64971
+ }
64972
+ }
64973
+ };
64974
+ //#endregion
64537
64975
  //#region src/utils/cosine-similarity.ts
64538
64976
  /** Cosine similarity between two embedding vectors */
64539
64977
  function cosineSimilarity(a, b) {
@@ -65208,27 +65646,10 @@ function withTimeout(promise, ms) {
65208
65646
  //#endregion
65209
65647
  //#region src/utils/runtime-mapping.ts
65210
65648
  /**
65211
- * Map a backend ID to the model format it requires.
65212
- *
65213
- * Node.js backends (cpu, coreml, cuda, tensorrt) all use ONNX format
65214
- * because onnxruntime-node loads .onnx and uses execution providers internally.
65215
- *
65216
- * Python backends use their native format.
65217
- */
65218
- var BACKEND_TO_FORMAT = {
65219
- cpu: "onnx",
65220
- coreml: "onnx",
65221
- cuda: "onnx",
65222
- tensorrt: "onnx",
65223
- "onnx-py": "onnx",
65224
- pytorch: "pt",
65225
- openvino: "openvino"
65226
- };
65227
- /**
65228
65649
  * DEVICE-POOL backend → model format — the SSOT for the multi-device inference
65229
- * DESCRIPTOR path (Python per-device pools), distinct from {@link BACKEND_TO_FORMAT}
65230
- * above which is the legacy NODE runtime map (where `coreml → onnx` because
65231
- * onnxruntime-node's CoreML EP loads `.onnx`). Here a device pool runs the
65650
+ * DESCRIPTOR path (Python per-device pools), distinct from the former BACKEND_TO_FORMAT,
65651
+ * which was the removed NODE runtime map (where `coreml → onnx` because
65652
+ * onnxruntime-node's CoreML EP loaded `.onnx`). A device pool runs the
65232
65653
  * backend NATIVELY, so `coreml → coreml` and `edgetpu → tflite`. Consumed by
65233
65654
  * `resolveDeviceEngine` (addon-pipeline) and the orchestrator's
65234
65655
  * `parseDeviceKey`/`getNodeInferenceDevices` — the previously-duplicated
@@ -65269,69 +65690,6 @@ var PYTHON_SCRIPT = {
65269
65690
  openvino: "openvino_inference.py"
65270
65691
  };
65271
65692
  /**
65272
- * Resolve pipeline config (runtime + backend) to a DetectionRuntime.
65273
- *
65274
- * Pipeline config uses two levels:
65275
- * runtime: 'node' | 'python'
65276
- * backend: 'cpu' | 'coreml' | 'cuda' | 'openvino' | 'pytorch' | ...
65277
- *
65278
- * Addons expect a DetectionRuntime:
65279
- * 'onnx' | 'coreml' | 'pytorch' | 'openvino' | 'tflite'
65280
- *
65281
- * Mapping rules:
65282
- * node + any backend → 'onnx' (onnxruntime-node handles backend via EP)
65283
- * python + coreml → 'coreml' (native .mlpackage via coremltools)
65284
- * python + openvino → 'openvino'
65285
- * python + pytorch → 'pytorch'
65286
- * python + onnx-py → 'onnx'
65287
- * python + <other> → backend as-is
65288
- */
65289
- function resolveDetectionRuntime(pipelineRuntime, backend) {
65290
- if (pipelineRuntime === "node") return "onnx";
65291
- return {
65292
- coreml: "coreml",
65293
- openvino: "openvino",
65294
- pytorch: "pytorch",
65295
- "onnx-py": "onnx",
65296
- cpu: "onnx"
65297
- }[backend] ?? backend;
65298
- }
65299
- /**
65300
- * Resolve pipeline config (runtime + backend) to a ModelFormat.
65301
- *
65302
- * Determines which model file format is needed (.onnx, .mlpackage, etc.)
65303
- */
65304
- function resolveModelFormat(pipelineRuntime, backend) {
65305
- if (pipelineRuntime === "node") return BACKEND_TO_FORMAT[backend] ?? "onnx";
65306
- return {
65307
- coreml: "coreml",
65308
- openvino: "openvino",
65309
- pytorch: "pt",
65310
- "onnx-py": "onnx",
65311
- cpu: "onnx"
65312
- }[backend] ?? "onnx";
65313
- }
65314
- /**
65315
- * Resolve pipeline runtime string to 'auto' | DetectionRuntime for addon consumption.
65316
- * Used when building addon addonConfig from pipeline step config.
65317
- *
65318
- * 'python' + 'coreml' → 'coreml'
65319
- * 'node' + 'coreml' → 'onnx'
65320
- * 'node' + 'cpu' → 'onnx'
65321
- * 'auto' → 'auto'
65322
- */
65323
- function resolveAddonRuntime(pipelineRuntime, backend) {
65324
- if (!pipelineRuntime || pipelineRuntime === "auto") return "auto";
65325
- return resolveDetectionRuntime(pipelineRuntime, backend ?? "cpu");
65326
- }
65327
- /**
65328
- * Get the model format needed for a given backend.
65329
- * Convenience wrapper for backend-only lookup (e.g., UI components).
65330
- */
65331
- function formatForBackend(backend) {
65332
- return BACKEND_TO_FORMAT[backend] ?? "onnx";
65333
- }
65334
- /**
65335
65693
  * Get the model format for a given DetectionRuntime.
65336
65694
  */
65337
65695
  function formatForRuntime(runtime) {
@@ -65716,4 +66074,4 @@ function enumerateInferenceDevices(hw) {
65716
66074
  return out;
65717
66075
  }
65718
66076
  //#endregion
65719
- export { ACCESSORY_LABEL, ACCESS_ROLES, ALEXA_EGRESS_PROFILE, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT, AUDIO_ANALYSIS_CAP_NAME, AUDIO_BACKEND_CHOICES, AUDIO_CHUNK_FORMATS, AUDIO_MACRO_LABELS, AUDIO_PRESETS, AUDIO_SCALE_EPOCH_ISO, AUDIO_SCALE_EPOCH_MS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdminLinkTargetEnum, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionCandidateResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, AdoptionJobSchema, AdoptionJobStateSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, AdoptionOutcomeSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, AnalyticsLtsSeriesSchema, ApiKeyRecordSchema, ApiKeySummarySchema, AppleFmAvailabilitySchema, AppleFmUnavailableReasonSchema, ArchiveEntrySchema, ArchiveManifestSchema, ArchivedDebugNoteQueryInputSchema, ArchivedDebugNoteSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioAttachDeviceInputSchema, AudioAttachDeviceResultSchema, AudioChunkFormatSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioDetachDeviceResultSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AudioStreamPickSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationActionSchema, AutomationConditionOperatorSchema, AutomationConditionSchema, AutomationControlStatusSchema, AutomationRecipeSchema, AutomationTriggerSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BASE_LIVE_EGRESS_PROFILE, BATTERY_DEVICE_PROFILE, BATTERY_UNREACHABLE_AFTER_MS, BIRTH_DECISION_DEFAULT_LIMIT, BOOT_RECOVERY_BACKOFF_MS, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BackupRunPhaseSchema, BackupRunSchema, BackupRunStateSchema, BackupTriggerResultSchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BirthDecisionQueryInputSchema, BirthDecisionRecordSchema, BirthDecisionVerdictSchema, 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, BulkRecordSchema, CAMERA_SWITCH_CATALOG, CAMERA_SWITCH_ORDER, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, CLASS_MAP_MACRO_TARGETS, CLIP_BROKER_PACED_RATES, CLIP_PLAYBACK_OPTIONS, CLIP_REALTIME_SOURCE_RATES, CLIP_REASON_HEADER_MAX, CLIP_STILL_DISPOSITION_HEADER, CLIP_STILL_REASON_CODE_HEADER, CLIP_STILL_REASON_HEADER, CLIP_STREAM_SOURCE_RATES, CLIP_STREAM_TRANSPORT_HEADER, CLUSTER_MODEL_SCOPED_STEPS, CLUSTER_MODEL_SECTION_ID, CLUSTER_STEP_SETTING_FIELDS, COCO_80_LABELS, COCO_TO_MACRO, CONNECTION_TEST_TIMEOUT_MS, CONTAINER_CHILD_PRIORITY, CORE_BLOCKS_ADDON_ID, CORE_BLOCK_ADDON_PREFIX, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraOccupancySnapshotForDeviceSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CameraStreamSchema, CameraSwitchAuthoritySchema, CameraSwitchGroupSchema, CameraSwitchIdSchema, CameraSwitchSchema, CameraSwitchUnavailableReasonSchema, CameraSwitchWarningSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipBytesOfferSchema, ClipBytesSchema, ClipExportFailureSchema, ClipPlaybackOptionsSchema, ClipPlaybackSchema, ClipSchema, ClipSourceAvailabilitySchema, ClipSourceSchema, ClipStillDispositionSchema, ClipStillRefusalCodeSchema, ClipStreamAudioReasonSchema, ClipStreamAudioSchema, ClipStreamDialSchema, ClipWakeSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectionTestDescriptorSchema, ConnectionTestInputSchema, ConnectionTestOutcomeSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoreBlockCompileResultSchema, CoreBlockInputSchema, CoreBlockPlacementSchema, CoreBlockSchema, CoreBlockStatusSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DAYS_PER_WEEK, DAY_NAMES, DECLARED_DEVICE_SWEEP_LIMIT, DECLARED_INTEGRATION_FIXED_KEY, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_CLUSTER_STEP_MODELS, DEFAULT_CLUSTER_STEP_SETTINGS, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_DETAIL_CROP_CONVENTION, DEFAULT_EVENTS_BAND_BUFFER_SEC, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS, DEFAULT_MIN_LANDMARK_FACE_SIZE_PX, DEFAULT_NATIVE_LEASE_SETTINGS, DEFAULT_OVERLAY_LAYERS, DEFAULT_POOL_MEMORY_POLICY, DEFAULT_RECORDING_PROFILES, DEFAULT_RETENTION, DEFAULT_RUNTIME_STATE_DURABILITY, DEFAULT_TIMELAPSE_PREVIEW_TEXT, DEFAULT_TOKEN_EXPIRY, DERIVED_CAMERA_SILENCED_CAP_NAMES, DETAIL_CROP_PADDING_FIELD, DETAIL_CROP_PADDING_KEY, DETAIL_CROP_SECTION_ID, DETAIL_CROP_SQUARE_KEY, DETECTION_MACRO_CLASSES, DETECTION_PIPELINE_CAP_NAME, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_CHILDREN_BATCH_MAX, DEVICE_PROFILES, DEVICE_RESTORE_RETRY_CONCURRENCY, DEVICE_RESTORE_RETRY_DELAYS_MS, DEVICE_SCOPED_CAPS, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATE_READERS, DEVICE_STATUS_METHOD, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_INFO, DISPLAY_ICON_GROUPS, DISPLAY_ICON_KEYS, DISPLAY_ICON_OFFERED_KEYS, DISPLAY_ICON_VOCABULARY, EngineInfoSchema as DataStoreEngineInfoSchema, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DeclaredDevices, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetailCropConventionSchema, DetectionCatalogClassMapSchema, DetectionSourceSchema, DetectionSourcesSchema, DeviceAdminLinkSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRestoreRetryScheduler, DeviceRole, DeviceRuntimeState, DeviceSelectorSchema, DeviceStatusSchema, DeviceType, DiagnosticIdSchema, DiagnosticWindowPatchSchema, DiagnosticWindowSchema, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DiskReconcileJobSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENTFUL_CAP_NAMES, EVENT_DENSITY_BATCH_MAX, EVENT_KIND_BY_CAP, EVENT_OWNER_TYPES, EVENT_PAD_MS, EVENT_TAXONOMY, EXPORT_DENSE_MAX_RANGES, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, EgressEncodeSchema, EgressRateControlSchema, EgressTranscodeRequestSchema, EgressTranscodeSchema, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventDensityBucketSchema, EventDensityForDeviceSchema, EventEmitterStatusSchema, EventFireSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventKindsForDeviceSchema, EventMediaArtifactSchema, EventMediaCoverageSchema, EventMediaKindSchema, EventMediaProductionSchema, EventOwnerTypeSchema, EventSourceType, ExportBytesSchema, ExportClipSubjectSchema, ExportDenseRangeSchema, ExportDenseSchema, ExportDownloadSchema, ExportFootageSubjectSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportSubjectSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionBindingSourceSchema, ExpressionEvalError, ExpressionFieldBindingSchema, ExpressionGlobalBindingSchema, ExpressionLiteralBindingSchema, ExpressionParseError, ExpressionSourceSchema, FIRST_LEVEL_MACRO_CLASSES, FULL_IMAGE_BBOX, FailureContributionSchema, FailureCounters, FailureReasonCountSchema, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, Fmp4BoxSplitter, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, FrameLazyCountersSchema, FrameLazyMetricsSchema, G711_SCALE_CORRECTION_DB, GasStatusSchema, GetLoggingSettingsInputSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, GridLayoutPatchSchema, GridLayoutViewSchema, HAP_AUDIO_BASE, HAP_AUDIO_BITRATE_KBPS, HAP_AUDIO_VBV_KBITS, HAP_KEYFRAME_INTERVAL_SEC, HF_BASE_URL, HF_REPO, HOURS_PER_DAY, HWACCEL_OPTIONS, HealthStatusSchema, HfModelResolutionSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, INFERENCE_DEVICE_EXCLUSION_REASONS, ImageContractSchema, ImageContractStateSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, InferenceDeviceExclusionReasonSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LEGACY_READ_ONLY_CONFIG_KEY, LOAD_CONTRIBUTION_ATTRIBUTIONS, LOAD_CONTRIBUTION_ROLES, LOCATION_DESCRIPTION_MAX, LOCATION_ICON_FALLBACK, LOCATION_ICON_IDS, LOG_CHANNEL_TICK_MS, LOG_LEVEL_RANK, LTS_SCOPE_CLASS_SEPARATOR, LabelAttributionSchema, LabelDefinitionSchema, LabelTierSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LedgerWalkDeviceReportSchema, LedgerWalkInputSchema, LedgerWalkRefusalSchema, LedgerWalkReportSchema, LedgerWalkSkipCountsSchema, LedgerWalkSkipReasonSchema, LegacyStorageLocationDefaultSchema, LinkedDeviceSchema, LinkedDevicesModeSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmDownloadProgressSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRefusalSourceSchema, LlmRetryPolicySchema, LlmRuntimeAppleCompleteInputSchema, LlmRuntimeCancelInputSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmTimeoutDefaults, LlmUsageRollupSchema, LlmUsageSchema, LoadContributionSchema, LocateSegmentResultSchema, LocationDescriptionAssignmentSchema, LocationIconAssignmentSchema, LocationIconIdSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogChannelApplyResultSchema, LogChannelDescriptorSchema, LogChannelGate, LogChannelLevelSchema, LogChannelRegistry, LogChannelWindowPatchSchema, LogChannelWindowSchema, LogChannelWindowStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoggingEffectiveSchema, LoggingExplicitSchema, LoggingLevelLayerSchema, LoggingLevelSourceSchema, LoggingScopeKindSchema, LoggingSettingsPatchSchema, LoggingSettingsStateSchema, LoginMethodContributionSchema, LoginStageEnum, LtsBucketSchema, MACRO_LABELS, MAX_ARCHIVED_DEBUG_NOTES, MAX_BIRTH_DECISION_RECORDS, MAX_BIRTH_LATENCY_PROXY_MS, MAX_CLIP_EVENT_IDS, MAX_CLIP_LABELS, MAX_CONDITION_DEPTH, MAX_CONDITION_LEAVES, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, MAX_KEYS, MAX_REASONS_PER_KEY, MAX_SENSOR_TRIGGER_DEVICES, MAX_TRACK_DEBUG_NOTE_LEN, MEDIA_OWNER_TYPES, MEDIA_PRESENCE_OWNER_KINDS, METHOD_ACCESS_MAP, METHOD_DEVICE_SELECTORS, MINUTES_PER_DAY, MODEL_FORMATS, MODEL_PROVIDER_IDS, MOTION_CLOSE_AFTER_MS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelExtraFileSchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileInfoSchema, MediaFileKindEnum, MediaFileRefSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MediaPresenceOwnerKindSchema, MediaRelocateModeSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, MigrateDeviceResultSchema, MigrateSwitchOutcomeSchema, MigrateSwitchReportSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelProviderIdSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, MutationFilterSchema, NATIVE_LEASE_ACTIVITY_FIELD, NATIVE_LEASE_ACTIVITY_KEY, NATIVE_LEASE_ADMISSION_FIELD, NATIVE_LEASE_ADMISSION_KEY, NATIVE_LEASE_BUDGET_FIELD, NATIVE_LEASE_BUDGET_KEY, NATIVE_LEASE_HOLD_FIELD, NATIVE_LEASE_HOLD_KEY, NATIVE_LEASE_SCENE_BUDGET_FIELD, NATIVE_LEASE_SCENE_BUDGET_KEY, NATIVE_LEASE_SECTION_ID, NATIVE_LEASE_TILE_BUDGET_FIELD, NATIVE_LEASE_TILE_BUDGET_KEY, NAVIGATION_ACTION_CATALOG, NAVIGATION_LIGHT_LEVEL_MAX, NAVIGATION_LIGHT_LEVEL_MIN, NC_ALARM_OPENING_EVENT_KINDS, NC_ALARM_SYSTEM_EVENT_KINDS, NC_AUDIO_CONFIRM_HITS_DEFAULT, NC_AUDIO_CONFIRM_HITS_MAX, NC_AUDIO_CONFIRM_HITS_MIN, NC_AUDIO_CONFIRM_WINDOW_MAX_SEC, NC_AUDIO_CONFIRM_WINDOW_MIN_SEC, NC_AUDIO_CONFIRM_WINDOW_SEC_DEFAULT, NC_AUDIO_DBFS_FLOOR, NC_AUDIO_DB_MAX, NC_AUDIO_DB_MIN, NC_AUDIO_DB_OFFERED, NC_AUDIO_DB_STEP, NC_AUDIO_DEFAULTS, NC_AUDIO_HIT_PERCENT_MAX, NC_AUDIO_HIT_PERCENT_MIN, NC_AUDIO_SAMPLING_MAX_SEC, NC_AUDIO_SAMPLING_MIN_SEC, NC_AUDIO_SEED, NC_AUTHORABLE_SYSTEM_EVENT_KINDS, NC_BASE_CONDITION_KEYS, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CLIP_RETENTION_MAX_SEC, NC_CONDITION_CATALOG, NC_CONFIRM_DEFAULT_MAX_IMAGE_PX, NC_CONFIRM_DEFAULT_TIMEOUT_MS, NC_CONFIRM_MAX_TIMEOUT_MS, NC_CONFIRM_MIN_TIMEOUT_MS, NC_CONSUMABLE_LOW_PERCENT_DEFAULT, NC_CONSUMABLE_LOW_PERCENT_MAX, NC_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_DEFAULT_SNOOZE_MINUTES, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_OCCUPANCY_DEFAULTS, NC_RULE_CLEARABLE_KEYS, NC_RULE_EDITOR_SECTION_ORDER, NC_RULE_KIND_SPECS, NC_RULE_SECTIONS, NC_SENSOR_RAISED_FIELD_BY_KIND, NC_SENSOR_TRANSITION_KINDS, NC_SENSOR_TRANSITION_NEVER_FIRES_WARNING, NC_SENSOR_TRANSITION_UNSUPPORTED_REASON, NC_SERVER_PACKAGE_NAME, NC_SNOOZE_MAX_MINUTES, NC_SYSTEM_DELIVERY, NC_SYSTEM_EVENT_CONDITION_FILTER_KEYS, NC_SYSTEM_EVENT_FAMILIES, NC_SYSTEM_EVENT_FAMILY, NC_SYSTEM_EVENT_FAMILY_FILTERS, NC_SYSTEM_EVENT_FILTER_KEYS, NC_SYSTEM_EVENT_KIND_GROUP_SPECS, NC_SYSTEM_RULE_KINDS, NC_TANK_SYSTEM_EVENT_KINDS, NC_TAXONOMY, NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS, NC_TEMPLATE_VARS, NC_UPDATE_EVENT_PACKAGE_NAMES, NETWORK_LINK_TYPES, NETWORK_LINK_UNKNOWN, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeLeaseAdmissionSchema, NativeLeaseSettingsSchema, NativeObjectClassEnum, NativeObjectDetectionOptionsSchema, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionSettingsPatchSchema, NativeObjectDetectionStatusSchema, NativeObjectGeometryEnum, NavigationActionEntrySchema, NavigationActionIdSchema, NavigationEntryKindSchema, NavigationFeaturesSchema, NavigationLightModeSchema, NavigationModeSchema, NavigationMoveCommandSchema, NavigationPointSchema, NavigationRuntimeStateSchema, NavigationStatusSchema, NcAlarmConfigSchema, NcAlarmModeCoverageSchema, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, NcAlarmSkipReasonSchema, NcAlarmSkippedDeviceSchema, NcAudioConditionSchema, NcClipRetentionAskSchema, NcClipRetentionPlanSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcConfirmExpectSchema, NcConfirmSchema, NcCrossingSchema, NcDeliverySchema, NcDeviceStateConditionSchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcLinkedCameraModeSchema, NcMediaFrameSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleActionSchema, NcRuleActionSequenceSchema, NcRuleActionsSchema, NcRuleClearableKeySchema, NcRuleInputSchema, NcRuleKindSchema, NcRuleLastRunSchema, NcRuleLastRunsSchema, NcRuleNotificationButtonSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcRuleUpdateInputSchema, NcSceneConditionSchema, NcScheduleSchema, NcScheduleWindowSchema, NcSensorTransitionSchema, NcSnoozeInputSchema, NcSnoozeSchema, NcSnoozeScopeSchema, NcSnoozeSuppressedSchema, NcSystemEventConditionSchema, NcSystemEventKindSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTemplateFamilySchema, NcTemplateFieldSchema, NcTemplatePreviewInputSchema, NcTemplatePreviewSchema, NcTemplateVarContextSchema, NcTemplateVarDescriptorSchema, NcTemplateVarGroupSchema, NcTemplateVarKindSchema, NcTestResultSchema, NcThrottleGranularitySchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NetworkLinkStatusSchema, NodeDirectoryEntrySchema, NodeDirectorySchema, NotificationActionIconSchema, NotificationActionSchema, NotificationFormatSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPERATOR_WRITTEN_STALE_MS, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OVERFLOW_REASON, OVERLAY_LAYERS, OauthIntegrationDescriptorSchema, ObjectEventSchema, OccupancyBurstRefusalSchema, OnboardFieldSupportSchema, OnboardRecordTrackSchema, OnboardScheduleSupportSchema, OnboardStorageSchema, OnboardStorageVolumeSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdRenderOutcomeEnum, OsdRenderResultSchema, OsdSlotBindingSchema, OsdSlotViewSchema, OsdSourceOptionSchema, OsdSourceSchema, OsdSourceValueTypeEnum, OsdStatusSchema, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_ANALYTICS_CAP_NAME, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PRIVACY_MASK_CAP_NAME, PROVIDER_KIND_CAP_NAMES, PROVIDER_PIN_FIELD, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, ParkRefusalSchema, ParkTrackFrameResultSchema, ParkedFrameKindSchema, ParkedTrackFrameSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PeerBytesTicketSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PoolMemoryWatchdog, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzHomePresetSchema, PtzHomeReturnSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetFunctionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, RATE_CONTROL_RELAXED, RATE_CONTROL_TIGHT, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RECORDING_AUDIO_TRIGGER_OFFERED_DBFS, RECORDING_EXPORT_MAX_READ_BYTES, RECORDING_SOURCE_CAMSTACK, RECORDING_SOURCE_CAMSTACK_ADDON, RECORDING_TIMELINE_BATCH_MAX, REDACTED_SECRET, RESERVED_BINDING_NAMES, RESERVED_COLLECTION_SOURCES, RESTORED_CAP_NAMES, ROOT_BUCKET_KEY, RUNTIME_DEFAULTS, RUNTIME_STATE_POLICY, RUNTIME_STATE_REFRESH_MISS_COOLDOWN_MS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadGopBytesResultSchema, ReadSegmentBytesResultSchema, ReadWindowBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordTriggerSchema, RecordWindowSchema, RecordingAvailabilityForDeviceSchema, RecordingAvailabilitySchema, RecordingBandAudioSchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysForDeviceSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingObjectTriggerClassSchema, RecordingOnboardOptionsSchema, RecordingOnboardPatchSchema, RecordingOnboardStatusSchema, RecordingPlaybackSchema, RecordingRangeSchema, RecordingReadSchema, RecordingRebalanceInputSchema, RecordingRebalanceMoveSchema, RecordingRebalancePlanSchema, RecordingRebalanceSkipReasonSchema, RecordingRebalanceSkipSchema, RecordingRetentionSchema, RecordingSignalRuntimeStateSchema, RecordingSignalStatusSchema, RecordingSourceAvailabilitySchema, RecordingSourceOptionsSchema, RecordingSourceSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, RelocateFootageClassSchema, RelocateFootageInputSchema, RelocateJobSchema, RelocateJobStateSchema, RelocateMediaInputSchema, RelocateResidueInputSchema, RelocateResidueSchema, RenderedAsSchema, ReportMotionInputSchema, ReportedFailureContributionSchema, ReportedLoadContributionSchema, RequestCensusGroupSchema, RequestCensusProcedureSchema, RequestCensusSnapshotSchema, RequestCensusStatusSchema, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, RetrainFrameCandidateSchema, RetrainFrameListSchema, RetrainFrameSchema, RetrainFrameSelectionSchema, RetrainMacroClassSchema, RetrainStatusSchema, RetrainTrackSchema, RetrainTransitionResultSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCENE_CONDITIONS, SCENE_CONFIRM_DEFAULT_MAX_IMAGE_PX, SCENE_CONFIRM_DEFAULT_TIMEOUT_MS, SCENE_DEFAULT_ANCHOR_THRESHOLD, SCENE_DEFAULT_CHECK_INTERVAL_SEC, SCENE_DEFAULT_OBSERVATION_SPACING_SEC, SCENE_DEFAULT_QUIET_SECONDS, SCENE_DEFAULT_UNCOVERED_POLICY, SCENE_DIVERGED, SCENE_RESET_RECAPTURES, SCOPE_PRESETS, SENSOR_FEATURES, SENSOR_MAP, SHARE_VIEW_KINDS, SOURCE_CAPS, SOURCE_CAP_ACTIVE_FIELD, SOURCE_CAP_CHANGED_AT_FIELD, SOURCE_DEVICE_TYPES, SOURCE_INFO_METADATA_KEY, STATIONARY_OVERLAY_STYLE, STORAGE_ACCESS_FALLBACK, STORAGE_BYTES_PER_GB, STORAGE_LOCATION_MODES, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SUMMARIES_DEFAULT_LIMIT, SUMMARIES_MAX_LIMIT, SYSTEM_CAP_NAMES, SYSTEM_SCOPE_DEVICE_METHODS, SceneCheckSchema, SceneConditionSchema, SceneConfirmSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusForDeviceSchema, SceneMonitorStatusSchema, SceneReferenceSchema, SceneUnavailableSchema, SceneUncoveredPolicySchema, SceneVerdictSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateOutcomeSchema, ServerUpdateStateSchema, SetLoggingSettingsInputSchema, SetSiteLocationInputSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SiteLocationSchema, SiteLocationSourceSchema, SiteLocationStatusSchema, SiteZoneSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, StorageAccessSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, StorageCleanupInputSchema, StorageCleanupJobSchema, StorageCleanupPhaseSchema, StorageCleanupStatusInputSchema, StorageDrainProgressSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, StorageEvictionPolicySchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationModeSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, StorageMigrationClassSchema, StorageMigrationDestinationsSchema, StorageMigrationDrainInputSchema, StorageMigrationFindingCodeSchema, StorageMigrationFindingSchema, StorageMigrationFootageMoveInputSchema, StorageMigrationInputSchema, StorageMigrationJobSchema, StorageMigrationLaneSchema, StorageMigrationLeaseInputSchema, StorageMigrationMediaMoveInputSchema, StorageMigrationModeSchema, StorageMigrationMoveProgressSchema, StorageMigrationMoveSchema, StorageMigrationMoverSchema, StorageMigrationParticipantSchema, StorageMigrationPhaseSchema, StorageMigrationPlanSchema, StorageMigrationResidueSchema, StorageMigrationSourcesSchema, StorageOccupancyReportSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSignalSchema, StreamSignalsStatusSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SummarySchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, TIMELAPSE_DENSE_FLOOR_SEC, TIMEZONES, TRANSCODE_DOWN_MAX_BITRATE_KBPS, TRANSCODE_DOWN_MAX_HEIGHT, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TerminalInstanceInfoSchema, TerminalLegacyCameraSchema, TerminalOutputBatchSchema, TerminalOutputEventSchema, TerminalProfileInfoSchema, TerminalSessionInfoSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestConnectionStatusEnum, TestResultSchema, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackFlagsPatchSchema, TrackFlagsSchema, TrackProjectionSchema, TrackSchema, TrackSourceSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TrainingExportDeviceTotalsSchema, TrainingExportSummarySchema, TransportPlaneCountsSchema, TransportPlaneSchema, TurnServerSchema, UNATTRIBUTED_BUCKET_KEY, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UnstampedEventMediaCountSchema, UnstampedRowsSchema, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VIDEOCLIPS_MAX_OFFER_BYTES, VIDEOCLIPS_MAX_READ_BYTES, VISIT_MERGE_GAP_MS, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VectorDeclareIndexInputSchema, VectorDeleteByFilterInputSchema, VectorDeleteInputSchema, VectorDeleteResultSchema, VectorFilterSchema, VectorGetInputSchema, VectorGetResultSchema, VectorItemSchema, VectorMatchSchema, VectorMetadataSchema, VectorMetricSchema, VectorQueryInputSchema, VectorQueryResultSchema, VectorStatsInputSchema, VectorStatsResultSchema, VectorUpsertInputSchema, VectorUpsertResultSchema, VibrationStatusSchema, VideoEncodeSchema, WEBRTC_CLIMB_HOLD_CODES, WEBRTC_EGRESS_PROFILE, WEBRTC_TRY_BLOCKERS, WEEKLY_MASK_LENGTH, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcClimbHoldSchema, WebrtcLadderDecisionSchema, WebrtcSessionDebugSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WebrtcTierFailureSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, WrapperEvidenceSchema, WrapperIdentitySchema, WrapperKindSchema, YAMNET_TO_MACRO, ZoneCrossingDirectionSchema, ZoneCrossingSchema, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, __resetLogChannelRegistryForTests, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, asBoolean, asJsonArray, asJsonObject, asNumber, asString, assertTimelapseCadences, audioAnalysisCapability, audioAnalyzerCapability, audioChunkBytesPerSample, audioCodecCapability, audioIsFailClosed, audioKindId, audioLabelChoices, audioMetricsCapability, audioModeOf, audioOrDefaults, audioPlanFromEncodeProfile, audioScaleEraOf, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, bareAddonId, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildAudioArgs, buildDeviceAdminUrl, buildEventKindDescriptor, buildFfmpegArgs, buildInputArgs, buildModelVariantGroups, buildNcTaxonomy, buildRoleScopes, buildStreamParamsConfigSchema, buildVideoArgs, buttonCapability, cameraCredentialsCapability, cameraGridLayoutCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, canonicalEgressPlan, carbonMonoxideCapability, cellsToRects, classifyBearerPrincipal, classifyStream, classifyStreams, climateControlCapability, clipExportFailure, clipExportFailureOf, clipReasonHeaderValue, clusterModelSettingKey, clusterStepSettingFieldsFor, clusterStepSettingKey, codecIsAccepted, collectHydratedFieldEntries, collectHydratedFieldValues, collectSecretConfigKeys, colorCapability, colorForKind, commitWatchdogRestart, compareToTarget, compileExpression, compileExpressionSafe, composeSwitchedOff, conditionDepth, conditionExclusionReason, conditionVisibleForKind, connectionTestCapability, connectivityCapability, consumableLowPercentOf, consumablesCapability, contactCapability, controlCapability, convertUnit, coreBlockAddonId, coreBlockIdFromAddonId, coreBlocksCapability, cosineSimilarity, countConditionLeaves, coverCapability, createDeviceProxy, createDurableState, createEvent, createEventBusSliceSource, createExpressionScope, createHwAccelCache, createLazyTrpcSource, createLogChannelsProvider, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dataStoreProviderCapability, dayNightCapability, dayOfWeekToIndex, declarationOwnerNodeId, declareLogChannel, decodeVectorBase64, decoderCapability, defaultDeliveryForSection, defaultDeviceFor, defineCustomActions, deriveBatteryPresence, deriveCameraSwitches, deriveDetailCropRect, deriveRecordingMode, describeCustomActions, describeModelVariant, describeOnboardClamp, describeOnboardRefusal, describeSystemEventFamilyProblem, detectAccessRole, detectionPipelineCapability, deviceAdminLinkCapability, deviceAdoptionCapability, deviceBackendToFormat, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceSelectorMatches, deviceStateCapability, deviceStatusCapability, displayIconEntry, displayIconsInGroup, doorbellCapability, droppedConditionsForKind, egressTranscodeSharingKey, egressTransportFromRequest, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, emitsCollectionSelector, encodeProfileFromStreamShape, encodeVectorBase64, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateExpressionSource, evaluatePoolMemory, evaluateSensorEdge, evaluateZoneRules, event, eventEmitterCapability, evictionPolicyForMode, evictionPolicyOfLocation, expandAudioChunkToF32le, expandCapMethods, expandContainer, exportSubjectOf, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, failureContributionCapability, failureRate, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, foldSnapshotByFunction, formatForBackend, formatForRuntime, formatMediaOwnerKey, formatMinutes, formatParkedFor, gasCapability, gbToBytes, generateAutomationBlock, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getLogChannelRegistry, getTaxonomyEntry, hasMotionTrigger, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, inferModelProvider, initialPoolMemoryState, integrationsCapability, intercomCapability, invocationFromEncodeProfile, isAgentOnlyPlacement, isArrayOutputSchema, isAudioChunkFormat, isAudioLabelSelected, isAudioRule, isBaseConditionKey, isBatteryPresenceFault, isClusterScopedStep, isCollectionArrayMethod, isDeployableToAgent, isDetectionMacroClass, isDeviceConfigCap, isDeviceScopedCap, isDisplayIconKey, isEvent, isEventOwnerType, isFirstLevelMacroClass, isIsolatedBuiltin, isKnownTemplateVar, isLocationEnabled, isMediaOwnerType, isNode, isObjectInput, isOccupancyRule, isRestoredCap, isSameAddonId, isScheduleActive, isSecretConfigField, isSoftwareDecode, isSourceCap, isStorageLocationMode, isSystemDelivery, isSystemEventFamily, isSystemRuleKind, isVoidInput, ituDbfsFromPreEpoch, jobKindSchema, kebabToCamel, kindsForDiscriminator, knownValues, lawnMowerControlCapability, legacyAutoLinkIds, legacyModeOf, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, loadContributionCapability, localNetworkCapability, locationIconKey, locationSimilarity, lockControlCapability, logBannerArgs, logChannelsCapability, logDestinationCapability, logLevelAtMost, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mayReadLocation, mayWriteToLocation, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, methodAccessForHttpMethod, metricsProviderCapability, migrateLegacyDeviceSignalConfig, minutesToTimeOfDay, modeMayRead, modeMayWrite, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, navigationCapability, networkAccessCapability, networkLinkCapability, networkQualityCapability, nodePickerItems, nodePin, nodesCapability, normalizeAddonInitResult, normalizeAudioLabel, normalizeTokenScopes, normalizeUnit, notificationOutputCapability, notificationRulesCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, objectInputDeclaresRequiredDeviceId, occupancyScope, optionalMethod, osdCapability, osdManagerCapability, overlayClusterStepSettings, packagePickerItems, parseAdminBase, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseMediaOwnerKey, parseOccupancyScope, parseProcStatus, parseProfileBrokerId, parseRuleSection, parseStreamParamsFormPatch, patchAudio, petFeederCapability, pickAccessoryControl, pickClusterStepModels, pickClusterStepSettings, pickDetailCropConvention, pickNativeLeaseOverride, pickPreferredRtspEntry, pickRestartCandidate, pickVideoEncoder, pickerForCondition, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, poolMemoryThreshold, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, principalMayReachAddon, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, rankStreams, readClusterStepModels, readClusterStepSettings, readDetailCropConvention, readDeviceStateFrom, readNativeLeaseOverride, readNodePin, readTimelapseGeneratedAt, readinessKey, rebootCapability, recordingArchiveCapability, recordingCapability, recordingExportCapability, recordingOnboardCapability, recordingSignalCapability, rectsToCells, reducePoints, requiresPython, reservedSourceOwner, resetPoolBaseline, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveBucketMs, resolveCapMount, resolveClusterStepModelId, resolveContainerPrimaryChild, resolveCreateExportSubject, resolveDetectionRuntime, resolveDeviceControlKind, resolveDeviceProfile, resolveEgressDecodeHwAccel, resolveExportProfiles, resolveFormat, resolveHydratedFieldValue, resolveLocationIcon, resolveLocationMode, resolveMethodAuth, resolveModelFormat, resolveMutate, resolvePoolMemoryPolicy, resolveRecordingProfiles, resolveRunnerId, resolveStreamMaps, resolveVariantModelId, resolveViewableDeviceIds, roleSpec, ruleBelongsToAlarm, ruleEditorSectionsForKind, ruleKindOf, ruleKindSpec, ruleMatchesSection, ruleSection, ruleSectionOf, ruleSeedForSection, runInferenceStep, runtimeDevices, runtimeStatePolicyFor, sceneMonitorCapability, schemaDeclaresAnyField, scopeInherits, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, scoreRuntimes, scriptRunnerCapability, searchDisplayIcons, selectAssignedProfileSlots, sensorRaisedOf, sensorTransitionNeverFires, sensorTransitionOffered, servedTemplateVars, serverManagementCapability, setByPath, settingsStoreCapability, signalPercentFromBars, signalPercentFromRssi, siteZoneKey, sleep, sleepCancellable, sliceActiveValue, sliceChangedAt, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, stateVocabularyFor, storageCapability, storageEvictableCapability, storageMigrationCapability, storageOccupancyCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, streamSignalsCapability, stripRetiredBandPreBufferSec, strippedOfLegacyReadOnly, subKindsOf, summarisePrivacyAudio, summarizeEffectiveScope, supportedRuntimes, switchCapability, switchedOffIds, synthesizeSourceInfo, systemCapability, systemEventFamilyOf, systemEventFamilyProblems, systemEventFilterApplies, systemEventFilterAppliesToAnyKind, systemEventKindNamesOf, systemEventKindsOfFamily, systemFamilyOfKind, systemRuleKindOf, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, templateVarKindApplies, templateVarSystemEventApplies, templateVarsFor, terminalSessionCapability, textToHtml, timeOfDayToMinutes, toDeviceSummary, toExpressionValue, toNodeId, toStreamSourceEntry, toastCapability, toggleAudioLabel, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, validateRecipeBounds, valveCapability, vectorDimFromBase64, vectorStoreCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, weeklyMaskIndex, weeklyMaskIsUniform, weeklyMaskToWindows, windowsToWeeklyMask, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, withLocationMode, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
66077
+ export { ACCESSORY_LABEL, ACCESS_ROLES, ALEXA_EGRESS_PROFILE, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT, AUDIO_ANALYSIS_CAP_NAME, AUDIO_BACKEND_CHOICES, AUDIO_CHUNK_FORMATS, AUDIO_MACRO_LABELS, AUDIO_PRESETS, AUDIO_SCALE_EPOCH_ISO, AUDIO_SCALE_EPOCH_MS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdminLinkTargetEnum, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionCandidateResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, AdoptionJobSchema, AdoptionJobStateSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, AdoptionOutcomeSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, AnalyticsLtsSeriesSchema, ApiKeyRecordSchema, ApiKeySummarySchema, AppleFmAvailabilitySchema, AppleFmUnavailableReasonSchema, ArchiveEntrySchema, ArchiveManifestSchema, ArchivedDebugNoteQueryInputSchema, ArchivedDebugNoteSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioAttachDeviceInputSchema, AudioAttachDeviceResultSchema, AudioChunkFormatSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioDetachDeviceResultSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AudioStreamPickSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationActionSchema, AutomationConditionOperatorSchema, AutomationConditionSchema, AutomationControlStatusSchema, AutomationRecipeSchema, AutomationTriggerSchema, AvailableIntegrationTypeSchema, BASE_LIVE_EGRESS_PROFILE, BATTERY_DEVICE_PROFILE, BATTERY_UNREACHABLE_AFTER_MS, BIRTH_DECISION_DEFAULT_LIMIT, BOOT_RECOVERY_BACKOFF_MS, BackgroundRunRegistry, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BackupRunPhaseSchema, BackupRunSchema, BackupRunStateSchema, BackupTriggerResultSchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BirthDecisionQueryInputSchema, BirthDecisionRecordSchema, BirthDecisionVerdictSchema, 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, BulkRecordSchema, CAMERA_SWITCH_CATALOG, CAMERA_SWITCH_ORDER, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, CLASS_MAP_MACRO_TARGETS, CLIP_BROKER_PACED_RATES, CLIP_PLAYBACK_OPTIONS, CLIP_REALTIME_SOURCE_RATES, CLIP_REASON_HEADER_MAX, CLIP_STILL_DISPOSITION_HEADER, CLIP_STILL_REASON_CODE_HEADER, CLIP_STILL_REASON_HEADER, CLIP_STREAM_SOURCE_RATES, CLIP_STREAM_TRANSPORT_HEADER, CLUSTER_MODEL_SCOPED_STEPS, CLUSTER_MODEL_SECTION_ID, CLUSTER_STEP_SETTING_FIELDS, COCO_80_LABELS, COCO_TO_MACRO, CONNECTION_TEST_TIMEOUT_MS, CONTAINER_CHILD_PRIORITY, CORE_BLOCKS_ADDON_ID, CORE_BLOCK_ADDON_PREFIX, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraOccupancySnapshotForDeviceSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CameraStreamSchema, CameraSwitchAuthoritySchema, CameraSwitchGroupSchema, CameraSwitchIdSchema, CameraSwitchSchema, CameraSwitchUnavailableReasonSchema, CameraSwitchWarningSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipBytesOfferSchema, ClipBytesSchema, ClipExportFailureSchema, ClipPlaybackOptionsSchema, ClipPlaybackSchema, ClipSchema, ClipSourceAvailabilitySchema, ClipSourceSchema, ClipStillDispositionSchema, ClipStillRefusalCodeSchema, ClipStreamAudioReasonSchema, ClipStreamAudioSchema, ClipStreamDialSchema, ClipWakeSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectionTestDescriptorSchema, ConnectionTestInputSchema, ConnectionTestOutcomeSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoreBlockCompileResultSchema, CoreBlockInputSchema, CoreBlockPlacementSchema, CoreBlockSchema, CoreBlockStatusSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DAYS_PER_WEEK, DAY_NAMES, DECLARED_DEVICE_SWEEP_LIMIT, DECLARED_INTEGRATION_FIXED_KEY, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_CLUSTER_STEP_MODELS, DEFAULT_CLUSTER_STEP_SETTINGS, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_DETAIL_CROP_CONVENTION, DEFAULT_EVENTS_BAND_BUFFER_SEC, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS, DEFAULT_MIN_LANDMARK_FACE_SIZE_PX, DEFAULT_NATIVE_LEASE_SETTINGS, DEFAULT_OVERLAY_LAYERS, DEFAULT_POOL_MEMORY_POLICY, DEFAULT_RECORDING_PROFILES, DEFAULT_RETENTION, DEFAULT_RUNTIME_STATE_DURABILITY, DEFAULT_TIMELAPSE_PREVIEW_TEXT, DEFAULT_TOKEN_EXPIRY, DERIVED_CAMERA_SILENCED_CAP_NAMES, DETAIL_CROP_PADDING_FIELD, DETAIL_CROP_PADDING_KEY, DETAIL_CROP_SECTION_ID, DETAIL_CROP_SQUARE_KEY, DETECTION_MACRO_CLASSES, DETECTION_PIPELINE_CAP_NAME, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_CHILDREN_BATCH_MAX, DEVICE_PROFILES, DEVICE_RESTORE_RETRY_CONCURRENCY, DEVICE_RESTORE_RETRY_DELAYS_MS, DEVICE_SCOPED_CAPS, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATE_READERS, DEVICE_STATUS_METHOD, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_INFO, DISPLAY_ICON_GROUPS, DISPLAY_ICON_KEYS, DISPLAY_ICON_OFFERED_KEYS, DISPLAY_ICON_VOCABULARY, EngineInfoSchema as DataStoreEngineInfoSchema, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DeclaredDevices, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetailCropConventionSchema, DetectionCatalogClassMapSchema, DetectionSourceSchema, DetectionSourcesSchema, DeviceAdminLinkSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRestoreRetryScheduler, DeviceRole, DeviceRuntimeState, DeviceSelectorSchema, DeviceStatusSchema, DeviceType, DiagnosticIdSchema, DiagnosticWindowPatchSchema, DiagnosticWindowSchema, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DiskReconcileJobSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENTFUL_CAP_NAMES, EVENT_DENSITY_BATCH_MAX, EVENT_KIND_BY_CAP, EVENT_OWNER_TYPES, EVENT_PAD_MS, EVENT_TAXONOMY, EXPORT_DENSE_MAX_RANGES, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, EffectiveTuningSchema, EgressEncodeSchema, EgressRateControlSchema, EgressTranscodeRequestSchema, EgressTranscodeSchema, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventDensityBucketSchema, EventDensityForDeviceSchema, EventEmitterStatusSchema, EventFireSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventKindsForDeviceSchema, EventMediaArtifactSchema, EventMediaCoverageSchema, EventMediaKindSchema, EventMediaProductionSchema, EventOwnerTypeSchema, EventSourceType, ExportBytesSchema, ExportClipSubjectSchema, ExportDenseRangeSchema, ExportDenseSchema, ExportDownloadSchema, ExportFootageSubjectSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportSubjectSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionBindingSourceSchema, ExpressionEvalError, ExpressionFieldBindingSchema, ExpressionGlobalBindingSchema, ExpressionLiteralBindingSchema, ExpressionParseError, ExpressionSourceSchema, FIRST_LEVEL_MACRO_CLASSES, FULL_IMAGE_BBOX, FailureContributionSchema, FailureCounters, FailureReasonCountSchema, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, Fmp4BoxSplitter, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, FrameLazyCountersSchema, FrameLazyMetricsSchema, G711_SCALE_CORRECTION_DB, GasStatusSchema, GetLoggingSettingsInputSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, GridLayoutPatchSchema, GridLayoutViewSchema, HAP_AUDIO_BASE, HAP_AUDIO_BITRATE_KBPS, HAP_AUDIO_VBV_KBITS, HAP_KEYFRAME_INTERVAL_SEC, HF_BASE_URL, HF_REPO, HOURS_PER_DAY, HWACCEL_OPTIONS, HealthStatusSchema, HfModelResolutionSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, INFERENCE_DEVICE_EXCLUSION_REASONS, ImageContractSchema, ImageContractStateSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, InferenceDeviceExclusionReasonSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LEGACY_READ_ONLY_CONFIG_KEY, LOAD_CONTRIBUTION_ATTRIBUTIONS, LOAD_CONTRIBUTION_ROLES, LOCATION_DESCRIPTION_MAX, LOCATION_ICON_FALLBACK, LOCATION_ICON_IDS, LOG_CHANNEL_TICK_MS, LOG_LEVEL_RANK, LTS_SCOPE_CLASS_SEPARATOR, LabelAttributionSchema, LabelDefinitionSchema, LabelTierSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LedgerWalkDeviceReportSchema, LedgerWalkInputSchema, LedgerWalkRefusalSchema, LedgerWalkReportSchema, LedgerWalkSkipCountsSchema, LedgerWalkSkipReasonSchema, LegacyStorageLocationDefaultSchema, LinkedDeviceSchema, LinkedDevicesModeSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmDownloadProgressSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRefusalSourceSchema, LlmRetryPolicySchema, LlmRuntimeAppleCompleteInputSchema, LlmRuntimeCancelInputSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmTimeoutDefaults, LlmUsageRollupSchema, LlmUsageSchema, LoadContributionSchema, LocateSegmentResultSchema, LocationDescriptionAssignmentSchema, LocationIconAssignmentSchema, LocationIconIdSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogChannelApplyResultSchema, LogChannelDescriptorSchema, LogChannelGate, LogChannelLevelSchema, LogChannelRegistry, LogChannelWindowPatchSchema, LogChannelWindowSchema, LogChannelWindowStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoggingEffectiveSchema, LoggingExplicitSchema, LoggingLevelLayerSchema, LoggingLevelSourceSchema, LoggingScopeKindSchema, LoggingSettingsPatchSchema, LoggingSettingsStateSchema, LoginMethodContributionSchema, LoginStageEnum, LtsBucketSchema, MACRO_LABELS, MAX_ARCHIVED_DEBUG_NOTES, MAX_BIRTH_DECISION_RECORDS, MAX_BIRTH_LATENCY_PROXY_MS, MAX_CLIP_EVENT_IDS, MAX_CLIP_LABELS, MAX_CONDITION_DEPTH, MAX_CONDITION_LEAVES, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, MAX_KEYS, MAX_REASONS_PER_KEY, MAX_SENSOR_TRIGGER_DEVICES, MAX_TRACK_DEBUG_NOTE_LEN, MEDIA_OWNER_TYPES, MEDIA_PRESENCE_OWNER_KINDS, METHOD_ACCESS_MAP, METHOD_DEVICE_SELECTORS, MINUTES_PER_DAY, MODEL_FORMATS, MODEL_PROVIDER_IDS, MOTION_CLOSE_AFTER_MS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelExtraFileSchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileInfoSchema, MediaFileKindEnum, MediaFileRefSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MediaPresenceOwnerKindSchema, MediaRelocateModeSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, MigrateDeviceResultSchema, MigrateSwitchOutcomeSchema, MigrateSwitchReportSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelProviderIdSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, MutationFilterSchema, NATIVE_LEASE_ACTIVITY_FIELD, NATIVE_LEASE_ACTIVITY_KEY, NATIVE_LEASE_ADMISSION_FIELD, NATIVE_LEASE_ADMISSION_KEY, NATIVE_LEASE_BUDGET_FIELD, NATIVE_LEASE_BUDGET_KEY, NATIVE_LEASE_HOLD_FIELD, NATIVE_LEASE_HOLD_KEY, NATIVE_LEASE_SCENE_BUDGET_FIELD, NATIVE_LEASE_SCENE_BUDGET_KEY, NATIVE_LEASE_SECTION_ID, NATIVE_LEASE_TILE_BUDGET_FIELD, NATIVE_LEASE_TILE_BUDGET_KEY, NAVIGATION_ACTION_CATALOG, NAVIGATION_LIGHT_LEVEL_MAX, NAVIGATION_LIGHT_LEVEL_MIN, NC_ALARM_OPENING_EVENT_KINDS, NC_ALARM_SYSTEM_EVENT_KINDS, NC_AUDIO_CONFIRM_HITS_DEFAULT, NC_AUDIO_CONFIRM_HITS_MAX, NC_AUDIO_CONFIRM_HITS_MIN, NC_AUDIO_CONFIRM_WINDOW_MAX_SEC, NC_AUDIO_CONFIRM_WINDOW_MIN_SEC, NC_AUDIO_CONFIRM_WINDOW_SEC_DEFAULT, NC_AUDIO_DBFS_FLOOR, NC_AUDIO_DB_MAX, NC_AUDIO_DB_MIN, NC_AUDIO_DB_OFFERED, NC_AUDIO_DB_STEP, NC_AUDIO_DEFAULTS, NC_AUDIO_HIT_PERCENT_MAX, NC_AUDIO_HIT_PERCENT_MIN, NC_AUDIO_SAMPLING_MAX_SEC, NC_AUDIO_SAMPLING_MIN_SEC, NC_AUDIO_SEED, NC_AUTHORABLE_SYSTEM_EVENT_KINDS, NC_BASE_CONDITION_KEYS, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CLIP_RETENTION_MAX_SEC, NC_CONDITION_CATALOG, NC_CONFIRM_DEFAULT_MAX_IMAGE_PX, NC_CONFIRM_DEFAULT_TIMEOUT_MS, NC_CONFIRM_MAX_TIMEOUT_MS, NC_CONFIRM_MIN_TIMEOUT_MS, NC_CONSUMABLE_LOW_PERCENT_DEFAULT, NC_CONSUMABLE_LOW_PERCENT_MAX, NC_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_DEFAULT_SNOOZE_MINUTES, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_OCCUPANCY_DEFAULTS, NC_RULE_CLEARABLE_KEYS, NC_RULE_EDITOR_SECTION_ORDER, NC_RULE_KIND_SPECS, NC_RULE_SECTIONS, NC_SENSOR_RAISED_FIELD_BY_KIND, NC_SENSOR_TRANSITION_KINDS, NC_SENSOR_TRANSITION_NEVER_FIRES_WARNING, NC_SENSOR_TRANSITION_UNSUPPORTED_REASON, NC_SERVER_PACKAGE_NAME, NC_SNOOZE_MAX_MINUTES, NC_SYSTEM_DELIVERY, NC_SYSTEM_EVENT_CONDITION_FILTER_KEYS, NC_SYSTEM_EVENT_FAMILIES, NC_SYSTEM_EVENT_FAMILY, NC_SYSTEM_EVENT_FAMILY_FILTERS, NC_SYSTEM_EVENT_FILTER_KEYS, NC_SYSTEM_EVENT_KIND_GROUP_SPECS, NC_SYSTEM_EVENT_SUMMARY_FAMILIES, NC_SYSTEM_RULE_KINDS, NC_TANK_SYSTEM_EVENT_KINDS, NC_TAXONOMY, NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS, NC_TEMPLATE_VARS, NC_UPDATE_EVENT_PACKAGE_NAMES, NETWORK_LINK_TYPES, NETWORK_LINK_UNKNOWN, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeLeaseAdmissionSchema, NativeLeaseSettingsSchema, NativeObjectClassEnum, NativeObjectDetectionOptionsSchema, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionSettingsPatchSchema, NativeObjectDetectionStatusSchema, NativeObjectGeometryEnum, NavigationActionEntrySchema, NavigationActionIdSchema, NavigationEntryKindSchema, NavigationFeaturesSchema, NavigationLightModeSchema, NavigationModeSchema, NavigationMoveCommandSchema, NavigationPointSchema, NavigationRuntimeStateSchema, NavigationStatusSchema, NcAlarmConfigSchema, NcAlarmModeCoverageSchema, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, NcAlarmSkipReasonSchema, NcAlarmSkippedDeviceSchema, NcAudioConditionSchema, NcClipRetentionAskSchema, NcClipRetentionPlanSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcConfirmExpectSchema, NcConfirmSchema, NcCrossingSchema, NcDeliverySchema, NcDeviceStateConditionSchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcLinkedCameraModeSchema, NcMediaFrameSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleActionSchema, NcRuleActionSequenceSchema, NcRuleActionsSchema, NcRuleClearableKeySchema, NcRuleInputSchema, NcRuleKindSchema, NcRuleLastRunSchema, NcRuleLastRunsSchema, NcRuleNotificationButtonSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcRuleUpdateInputSchema, NcSceneConditionSchema, NcScheduleSchema, NcScheduleWindowSchema, NcSensorTransitionSchema, NcSnoozeInputSchema, NcSnoozeSchema, NcSnoozeScopeSchema, NcSnoozeSuppressedSchema, NcStateSummaryPreviewSchema, NcStateSummaryPreviewSectionSchema, NcSystemEventConditionSchema, NcSystemEventDeliveryModeSchema, NcSystemEventDeliverySchema, NcSystemEventKindSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTemplateFamilySchema, NcTemplateFieldSchema, NcTemplatePreviewInputSchema, NcTemplatePreviewSchema, NcTemplateVarContextSchema, NcTemplateVarDescriptorSchema, NcTemplateVarGroupSchema, NcTemplateVarKindSchema, NcTestResultSchema, NcThrottleGranularitySchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NetworkLinkStatusSchema, NodeDirectoryEntrySchema, NodeDirectorySchema, NotificationActionIconSchema, NotificationActionSchema, NotificationFormatSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPERATOR_WRITTEN_STALE_MS, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OVERFLOW_REASON, OVERLAY_LAYERS, OauthIntegrationDescriptorSchema, ObjectEventSchema, OccupancyBurstRefusalSchema, OnboardFieldSupportSchema, OnboardRecordTrackSchema, OnboardScheduleSupportSchema, OnboardStorageSchema, OnboardStorageVolumeSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdRenderOutcomeEnum, OsdRenderResultSchema, OsdSlotBindingSchema, OsdSlotViewSchema, OsdSourceOptionSchema, OsdSourceSchema, OsdSourceValueTypeEnum, OsdStatusSchema, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_ANALYTICS_CAP_NAME, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PRIVACY_MASK_CAP_NAME, PROVIDER_KIND_CAP_NAMES, PROVIDER_PIN_FIELD, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, ParkRefusalSchema, ParkTrackFrameResultSchema, ParkedFrameKindSchema, ParkedTrackFrameSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PeerBytesTicketSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PoolMemoryWatchdog, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzHomePresetSchema, PtzHomeReturnSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetFunctionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, RATE_CONTROL_RELAXED, RATE_CONTROL_TIGHT, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RECORDING_AUDIO_TRIGGER_OFFERED_DBFS, RECORDING_EXPORT_MAX_READ_BYTES, RECORDING_SOURCE_CAMSTACK, RECORDING_SOURCE_CAMSTACK_ADDON, RECORDING_TIMELINE_BATCH_MAX, REDACTED_SECRET, RESERVED_BINDING_NAMES, RESERVED_COLLECTION_SOURCES, RESTORED_CAP_NAMES, ROOT_BUCKET_KEY, RUNTIME_DEFAULTS, RUNTIME_STATE_POLICY, RUNTIME_STATE_REFRESH_MISS_COOLDOWN_MS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadGopBytesResultSchema, ReadSegmentBytesResultSchema, ReadWindowBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordTriggerSchema, RecordWindowSchema, RecordingAvailabilityForDeviceSchema, RecordingAvailabilitySchema, RecordingBandAudioSchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysForDeviceSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingObjectTriggerClassSchema, RecordingOnboardOptionsSchema, RecordingOnboardPatchSchema, RecordingOnboardStatusSchema, RecordingPlaybackSchema, RecordingRangeSchema, RecordingReadSchema, RecordingRebalanceInputSchema, RecordingRebalanceMoveSchema, RecordingRebalancePlanSchema, RecordingRebalanceSkipReasonSchema, RecordingRebalanceSkipSchema, RecordingRetentionSchema, RecordingSignalRuntimeStateSchema, RecordingSignalStatusSchema, RecordingSourceAvailabilitySchema, RecordingSourceOptionsSchema, RecordingSourceSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, RelocateFootageClassSchema, RelocateFootageInputSchema, RelocateJobSchema, RelocateJobStateSchema, RelocateMediaInputSchema, RelocateResidueInputSchema, RelocateResidueSchema, RenderedAsSchema, ReportMotionInputSchema, ReportedFailureContributionSchema, ReportedLoadContributionSchema, RequestCensusGroupSchema, RequestCensusProcedureSchema, RequestCensusSnapshotSchema, RequestCensusStatusSchema, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, RetrainFrameCandidateSchema, RetrainFrameListSchema, RetrainFrameSchema, RetrainFrameSelectionSchema, RetrainMacroClassSchema, RetrainStatusSchema, RetrainTrackSchema, RetrainTransitionResultSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCENE_CONDITIONS, SCENE_CONFIRM_DEFAULT_MAX_IMAGE_PX, SCENE_CONFIRM_DEFAULT_TIMEOUT_MS, SCENE_DEFAULT_ANCHOR_THRESHOLD, SCENE_DEFAULT_CHECK_INTERVAL_SEC, SCENE_DEFAULT_OBSERVATION_SPACING_SEC, SCENE_DEFAULT_QUIET_SECONDS, SCENE_DEFAULT_UNCOVERED_POLICY, SCENE_DIVERGED, SCENE_RESET_RECAPTURES, SCOPE_PRESETS, SENSOR_FEATURES, SENSOR_MAP, SHARE_VIEW_KINDS, SOURCE_CAPS, SOURCE_CAP_ACTIVE_FIELD, SOURCE_CAP_CHANGED_AT_FIELD, SOURCE_DEVICE_TYPES, SOURCE_INFO_METADATA_KEY, STATIONARY_OVERLAY_STYLE, STORAGE_ACCESS_FALLBACK, STORAGE_BYTES_PER_GB, STORAGE_LOCATION_MODES, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SUMMARIES_DEFAULT_LIMIT, SUMMARIES_MAX_LIMIT, SYSTEM_CAP_NAMES, SYSTEM_SCOPE_DEVICE_METHODS, SceneCheckSchema, SceneConditionSchema, SceneConfirmSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusForDeviceSchema, SceneMonitorStatusSchema, SceneReferenceSchema, SceneUnavailableSchema, SceneUncoveredPolicySchema, SceneVerdictSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateOutcomeSchema, ServerUpdateStateSchema, SetLoggingSettingsInputSchema, SetSiteLocationInputSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SiteLocationSchema, SiteLocationSourceSchema, SiteLocationStatusSchema, SiteZoneSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, StorageAccessSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, StorageCleanupInputSchema, StorageCleanupJobSchema, StorageCleanupPhaseSchema, StorageCleanupStatusInputSchema, StorageDrainProgressSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, StorageEvictionPolicySchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationModeSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, StorageMigrationClassSchema, StorageMigrationDestinationsSchema, StorageMigrationDrainInputSchema, StorageMigrationFindingCodeSchema, StorageMigrationFindingSchema, StorageMigrationFootageMoveInputSchema, StorageMigrationInputSchema, StorageMigrationJobSchema, StorageMigrationLaneSchema, StorageMigrationLeaseInputSchema, StorageMigrationMediaMoveInputSchema, StorageMigrationModeSchema, StorageMigrationMoveProgressSchema, StorageMigrationMoveSchema, StorageMigrationMoverSchema, StorageMigrationParticipantSchema, StorageMigrationPhaseSchema, StorageMigrationPlanSchema, StorageMigrationResidueSchema, StorageMigrationSourcesSchema, StorageOccupancyReportSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSignalSchema, StreamSignalsStatusSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SummarySchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, TIMELAPSE_DENSE_FLOOR_SEC, TIMEZONES, TRANSCODE_DOWN_MAX_BITRATE_KBPS, TRANSCODE_DOWN_MAX_HEIGHT, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TerminalInstanceInfoSchema, TerminalLegacyCameraSchema, TerminalOutputBatchSchema, TerminalOutputEventSchema, TerminalProfileInfoSchema, TerminalSessionInfoSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestConnectionStatusEnum, TestResultSchema, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackFlagsPatchSchema, TrackFlagsSchema, TrackProjectionSchema, TrackSchema, TrackSourceSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TrainingExportDeviceTotalsSchema, TrainingExportSummarySchema, TransportPlaneCountsSchema, TransportPlaneSchema, TurnServerSchema, UNATTRIBUTED_BUCKET_KEY, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UnstampedEventMediaCountSchema, UnstampedRowsSchema, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VIDEOCLIPS_MAX_OFFER_BYTES, VIDEOCLIPS_MAX_READ_BYTES, VISIT_MERGE_GAP_MS, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VectorDeclareIndexInputSchema, VectorDeleteByFilterInputSchema, VectorDeleteInputSchema, VectorDeleteResultSchema, VectorFilterSchema, VectorGetInputSchema, VectorGetResultSchema, VectorItemSchema, VectorMatchSchema, VectorMetadataSchema, VectorMetricSchema, VectorQueryInputSchema, VectorQueryResultSchema, VectorStatsInputSchema, VectorStatsResultSchema, VectorUpsertInputSchema, VectorUpsertResultSchema, VibrationStatusSchema, VideoEncodeSchema, WEBRTC_CLIMB_HOLD_CODES, WEBRTC_EGRESS_PROFILE, WEBRTC_TRY_BLOCKERS, WEEKLY_MASK_LENGTH, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcClimbHoldSchema, WebrtcLadderDecisionSchema, WebrtcSessionDebugSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WebrtcTierFailureSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, WrapperEvidenceSchema, WrapperIdentitySchema, WrapperKindSchema, YAMNET_TO_MACRO, ZoneCrossingDirectionSchema, ZoneCrossingSchema, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, __resetLogChannelRegistryForTests, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, asBoolean, asJsonArray, asJsonObject, asNumber, asString, assertTimelapseCadences, audioAnalysisCapability, audioAnalyzerCapability, audioChunkBytesPerSample, audioCodecCapability, audioIsFailClosed, audioKindId, audioLabelChoices, audioMetricsCapability, audioModeOf, audioOrDefaults, audioPlanFromEncodeProfile, audioScaleEraOf, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, bareAddonId, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildAudioArgs, buildDeviceAdminUrl, buildEventKindDescriptor, buildFfmpegArgs, buildInputArgs, buildModelVariantGroups, buildNcTaxonomy, buildRoleScopes, buildStreamParamsConfigSchema, buildVideoArgs, buttonCapability, cameraCredentialsCapability, cameraGridLayoutCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, canonicalEgressPlan, carbonMonoxideCapability, cellsToRects, classifyBearerPrincipal, classifyStream, classifyStreams, climateControlCapability, clipExportFailure, clipExportFailureOf, clipReasonHeaderValue, clusterModelSettingKey, clusterStepSettingFieldsFor, clusterStepSettingKey, codecIsAccepted, collectHydratedFieldEntries, collectHydratedFieldValues, collectSecretConfigKeys, colorCapability, colorForKind, commitWatchdogRestart, compareToTarget, compileExpression, compileExpressionSafe, composeSwitchedOff, conditionDepth, conditionExclusionReason, conditionVisibleForKind, connectionTestCapability, connectivityCapability, consumableLowPercentOf, consumablesCapability, contactCapability, controlCapability, convertUnit, coreBlockAddonId, coreBlockIdFromAddonId, coreBlocksCapability, cosineSimilarity, countConditionLeaves, coverCapability, createDeviceProxy, createDurableState, createEvent, createEventBusSliceSource, createExpressionScope, createHwAccelCache, createLazyTrpcSource, createLogChannelsProvider, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dataStoreProviderCapability, dayNightCapability, dayOfWeekToIndex, declarationOwnerNodeId, declareLogChannel, decodeVectorBase64, decoderCapability, defaultDeliveryForSection, defaultDeviceFor, defineCustomActions, deriveBatteryPresence, deriveCameraSwitches, deriveDetailCropRect, deriveRecordingMode, describeCustomActions, describeModelVariant, describeOnboardClamp, describeOnboardRefusal, describeSystemEventDeliveryProblem, describeSystemEventFamilyProblem, detectAccessRole, detectionPipelineCapability, deviceAdminLinkCapability, deviceAdoptionCapability, deviceBackendToFormat, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceSelectorMatches, deviceStateCapability, deviceStatusCapability, displayIconEntry, displayIconsInGroup, doorbellCapability, droppedConditionsForKind, egressTranscodeSharingKey, egressTransportFromRequest, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, emitsCollectionSelector, encodeProfileFromStreamShape, encodeVectorBase64, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateExpressionSource, evaluatePoolMemory, evaluateSensorEdge, evaluateZoneRules, event, eventEmitterCapability, evictionPolicyForMode, evictionPolicyOfLocation, expandAudioChunkToF32le, expandCapMethods, expandContainer, exportSubjectOf, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, failureContributionCapability, failureRate, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, foldSnapshotByFunction, formatForRuntime, formatMediaOwnerKey, formatMinutes, formatParkedFor, gasCapability, gbToBytes, generateAutomationBlock, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getLogChannelRegistry, getTaxonomyEntry, hasMotionTrigger, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, inferModelProvider, initialPoolMemoryState, integrationsCapability, intercomCapability, invocationFromEncodeProfile, isAgentOnlyPlacement, isArrayOutputSchema, isAudioChunkFormat, isAudioLabelSelected, isAudioRule, isBaseConditionKey, isBatteryPresenceFault, isClusterScopedStep, isCollectionArrayMethod, isDeployableToAgent, isDetectionMacroClass, isDeviceConfigCap, isDeviceScopedCap, isDisplayIconKey, isEvent, isEventOwnerType, isFirstLevelMacroClass, isHeldBackTemplateVar, isIsolatedBuiltin, isKnownTemplateVar, isLocationEnabled, isMediaOwnerType, isNode, isObjectInput, isOccupancyRule, isRestoredCap, isSameAddonId, isScheduleActive, isSecretConfigField, isSoftwareDecode, isSourceCap, isStorageLocationMode, isSystemDelivery, isSystemEventFamily, isSystemEventSummaryRule, isSystemRuleKind, isVoidInput, ituDbfsFromPreEpoch, jobKindSchema, kebabToCamel, kindsForDiscriminator, knownValues, lawnMowerControlCapability, legacyAutoLinkIds, legacyModeOf, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, loadContributionCapability, localNetworkCapability, locationIconKey, locationSimilarity, lockControlCapability, logBannerArgs, logChannelsCapability, logDestinationCapability, logLevelAtMost, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mayReadLocation, mayWriteToLocation, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, methodAccessForHttpMethod, metricsProviderCapability, migrateLegacyDeviceSignalConfig, minutesToTimeOfDay, modeMayRead, modeMayWrite, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, navigationCapability, networkAccessCapability, networkLinkCapability, networkQualityCapability, nodePickerItems, nodePin, nodesCapability, normalizeAddonInitResult, normalizeAudioLabel, normalizeTokenScopes, normalizeUnit, notificationOutputCapability, notificationRulesCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, objectInputDeclaresRequiredDeviceId, occupancyScope, optionalMethod, osdCapability, osdManagerCapability, overlayClusterStepSettings, packagePickerItems, parseAdminBase, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseMediaOwnerKey, parseOccupancyScope, parseProcStatus, parseProfileBrokerId, parseRuleSection, parseStreamParamsFormPatch, patchAudio, petFeederCapability, pickAccessoryControl, pickClusterStepModels, pickClusterStepSettings, pickDetailCropConvention, pickNativeLeaseOverride, pickPreferredRtspEntry, pickRestartCandidate, pickVideoEncoder, pickerForCondition, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, poolMemoryThreshold, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, principalMayReachAddon, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, rankStreams, readClusterStepModels, readClusterStepSettings, readDetailCropConvention, readDeviceStateFrom, readNativeLeaseOverride, readNodePin, readTimelapseGeneratedAt, readinessKey, rebootCapability, recordingArchiveCapability, recordingCapability, recordingExportCapability, recordingOnboardCapability, recordingSignalCapability, rectsToCells, reducePoints, requiresPython, reservedSourceOwner, resetPoolBaseline, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveBucketMs, resolveCapMount, resolveClusterStepModelId, resolveContainerPrimaryChild, resolveCreateExportSubject, resolveDeviceControlKind, resolveDeviceProfile, resolveEgressDecodeHwAccel, resolveExportProfiles, resolveFormat, resolveHydratedFieldValue, resolveLocationIcon, resolveLocationMode, resolveMethodAuth, resolveMutate, resolvePoolMemoryPolicy, resolveRecordingProfiles, resolveRunnerId, resolveStreamMaps, resolveVariantModelId, resolveViewableDeviceIds, roleSpec, ruleBelongsToAlarm, ruleEditorSectionsForKind, ruleKindOf, ruleKindSpec, ruleMatchesSection, ruleSection, ruleSectionOf, ruleSeedForSection, runInferenceStep, runtimeDevices, runtimeStatePolicyFor, sceneMonitorCapability, scheduleForSendTimes, schemaDeclaresAnyField, scopeInherits, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, scoreRuntimes, scriptRunnerCapability, searchDisplayIcons, selectAssignedProfileSlots, sendTimesOfSchedule, sensorRaisedOf, sensorTransitionNeverFires, sensorTransitionOffered, servedTemplateVars, serverManagementCapability, setByPath, settingsStoreCapability, signalPercentFromBars, signalPercentFromRssi, siteZoneKey, sleep, sleepCancellable, sliceActiveValue, sliceChangedAt, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, stateVocabularyFor, storageCapability, storageEvictableCapability, storageMigrationCapability, storageOccupancyCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, streamSignalsCapability, stripRetiredBandPreBufferSec, strippedOfLegacyReadOnly, subKindsOf, summarisePrivacyAudio, summarizeEffectiveScope, supportedRuntimes, switchCapability, switchedOffIds, synthesizeSourceInfo, systemCapability, systemEventDeliveryProblems, systemEventFamilyOf, systemEventFamilyProblems, systemEventFilterApplies, systemEventFilterAppliesToAnyKind, systemEventKindNamesOf, systemEventKindsOfFamily, systemEventSummaryScheduleOf, systemFamilyOfKind, systemRuleKindOf, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, templateCarriesSummary, templateVarDeliveryApplies, templateVarKindApplies, templateVarSystemEventApplies, templateVarsFor, terminalSessionCapability, textToHtml, timeOfDayToMinutes, toDeviceSummary, toExpressionValue, toNodeId, toStreamSourceEntry, toastCapability, toggleAudioLabel, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, validateRecipeBounds, valveCapability, vectorDimFromBase64, vectorStoreCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, weeklyMaskIndex, weeklyMaskIsUniform, weeklyMaskToWindows, windowsToWeeklyMask, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, withLocationMode, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };