@camstack/types 1.1.49 → 1.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as StreamSourceSchema, A as parseJsonUnknown, B as CamProfileSchema, C as asBoolean, D as asString, E as asNumber, F as readinessKey, G as DecodedFrameSchema, H as CamStreamResolutionSchema, I as scopeKey, J as FrameHandleSchema, K as EncodedPacketSchema, L as BrokerStatsSchema, M as ReadinessRegistry, N as ReadinessTimeoutError, O as parseJsonArray, P as emitDownForOwnedCaps, Q as StreamSourceEntrySchema, R as BrokerStatusSchema, S as DeviceType, T as asJsonObject, U as CameraStreamSchema, V as CamStreamKindSchema, W as DecodedAudioChunkSchema, X as ProfileSlotSchema, Y as ProfileRtspEntrySchema, Z as ProfileSlotStatusSchema, _ as resolveCapMount, _t as collectHydratedFieldValues, a as viewerUiCapability, at as makeSourceBrokerId, b as DeviceFeature, bt as DisposerChain, c as createLazyTrpcSource, ct as BaseAddon, d as DEVICE_SETTINGS_CONTRIBUTION_METHODS, dt as createEvent, et as SubscribeAudioChunksInputSchema, f as DEVICE_STATUS_METHOD, ft as emitReadiness, g as method, gt as collectHydratedFieldEntries, h as isDeviceConfigCap, ht as WELL_KNOWN_TAB_MAP, i as deviceOpsCapability, it as makeProfileBrokerId, j as DATAPLANE_SECRET_HEADER, k as parseJsonObject, l as createMirrorSource, lt as normalizeAddonInitResult, m as expandCapMethods, mt as WELL_KNOWN_TABS, n as sleepCancellable, nt as SubscribeFramesInputSchema, o as adminUiCapability, ot as parseProfileBrokerId, p as event, pt as isEvent, q as FrameHandleFormatSchema, r as RawStateResultSchema, rt as SubscribeFramesResultSchema, s as createDeviceProxy, st as selectAssignedProfileSlots, t as sleep, tt as SubscribeAudioChunksResultSchema, u as createSliceHandle, ut as createDurableState, v as systemMethod, vt as hydrateSchema, w as asJsonArray, x as DeviceRole, y as ChargingStatus, yt as resolveHydratedFieldValue, z as CAM_PROFILE_ORDER } from "./sleep-DOq2moJx.mjs";
1
+ import { $ as StreamSourceSchema, A as parseJsonUnknown, B as CamProfileSchema, C as asBoolean, D as asString, E as asNumber, F as readinessKey, G as DecodedFrameSchema, H as CamStreamResolutionSchema, I as scopeKey, J as FrameHandleSchema, K as EncodedPacketSchema, L as BrokerStatsSchema, M as ReadinessRegistry, N as ReadinessTimeoutError, O as parseJsonArray, P as emitDownForOwnedCaps, Q as StreamSourceEntrySchema, R as BrokerStatusSchema, S as DeviceType, T as asJsonObject, U as CameraStreamSchema, V as CamStreamKindSchema, W as DecodedAudioChunkSchema, X as ProfileSlotSchema, Y as ProfileRtspEntrySchema, Z as ProfileSlotStatusSchema, _ as resolveCapMount, _t as collectHydratedFieldValues, a as viewerUiCapability, at as makeSourceBrokerId, b as DeviceFeature, bt as DisposerChain, c as createLazyTrpcSource, ct as BaseAddon, d as DEVICE_SETTINGS_CONTRIBUTION_METHODS, dt as createEvent, et as SubscribeAudioChunksInputSchema, f as DEVICE_STATUS_METHOD, ft as emitReadiness, g as method, gt as collectHydratedFieldEntries, h as isDeviceConfigCap, ht as WELL_KNOWN_TAB_MAP, i as deviceOpsCapability, it as makeProfileBrokerId, j as DATAPLANE_SECRET_HEADER, k as parseJsonObject, l as createMirrorSource, lt as normalizeAddonInitResult, m as expandCapMethods, mt as WELL_KNOWN_TABS, n as sleepCancellable, nt as SubscribeFramesInputSchema, o as adminUiCapability, ot as parseProfileBrokerId, p as event, pt as isEvent, q as FrameHandleFormatSchema, r as RawStateResultSchema, rt as SubscribeFramesResultSchema, s as createDeviceProxy, st as selectAssignedProfileSlots, t as sleep, tt as SubscribeAudioChunksResultSchema, u as createSliceHandle, ut as createDurableState, v as systemMethod, vt as hydrateSchema, w as asJsonArray, x as DeviceRole, y as ChargingStatus, yt as resolveHydratedFieldValue, z as CAM_PROFILE_ORDER } from "./sleep-D8ZkNoYz.mjs";
2
2
  import { t as EventCategory } from "./event-category-D4HJq7Mw.mjs";
3
3
  import { EventSourceType } from "./enums.mjs";
4
4
  import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
@@ -1047,6 +1047,71 @@ function migrateConfigToBands(config) {
1047
1047
  return schedules.map((schedule) => bandFromSchedule(schedule, bandMode, config));
1048
1048
  }
1049
1049
  //#endregion
1050
+ //#region src/interfaces/ops-log.ts
1051
+ /**
1052
+ * Ops-log — the durable, append-only operations audit shared by the
1053
+ * recordings and events management surfaces.
1054
+ *
1055
+ * ONE row shape is reused for both domains so a single "Activity" view can
1056
+ * merge the recorder's DurableState ring (recordings ops-log) and the
1057
+ * pipeline-analytics SQLite collection (events ops-log). Each row records a
1058
+ * management operation, WHY it ran (reason), and its measurable effect
1059
+ * (itemsAffected + bytesReclaimed). Writes are best-effort — a failed log must
1060
+ * never fail the operation it records.
1061
+ */
1062
+ /** Which management domain the operation belongs to. */
1063
+ var OpsLogDomainSchema = z.enum(["recording", "events"]);
1064
+ /** The kind of management operation performed. */
1065
+ var OpsLogOpSchema = z.enum([
1066
+ "prune",
1067
+ "manual-delete",
1068
+ "rescan",
1069
+ "retention-run"
1070
+ ]);
1071
+ /** Why the operation ran. */
1072
+ var OpsLogReasonSchema = z.enum([
1073
+ "retention",
1074
+ "quota",
1075
+ "manual",
1076
+ "operator"
1077
+ ]);
1078
+ /** One audit row, shared verbatim by both domains. */
1079
+ var OpsLogEntrySchema = z.object({
1080
+ /** Unique row id. */
1081
+ id: z.string(),
1082
+ /** Epoch ms the operation completed. */
1083
+ at: z.number(),
1084
+ domain: OpsLogDomainSchema,
1085
+ op: OpsLogOpSchema,
1086
+ reason: OpsLogReasonSchema,
1087
+ /** The camera the op targeted; null for a cluster/global op. */
1088
+ deviceId: z.number().nullable(),
1089
+ /** Node that performed the op (the log carries nodeId — no cross-node aggregation). */
1090
+ nodeId: z.string(),
1091
+ /** Buckets / rows deleted (op-specific unit). */
1092
+ itemsAffected: z.number(),
1093
+ /** Bytes reclaimed by the op (0 when not measurable). */
1094
+ bytesReclaimed: z.number(),
1095
+ /** Free-text detail (e.g. "floor moved to <ts>"); null when none. */
1096
+ detail: z.string().nullable(),
1097
+ /** Who/what triggered the op. */
1098
+ actor: z.string()
1099
+ });
1100
+ /** Shared query input for the per-domain `listOpsLog` cap methods. */
1101
+ var OpsLogQueryInputSchema = z.object({
1102
+ /** Restrict to a single camera; omit for every row. */
1103
+ deviceId: z.number().optional(),
1104
+ /** Max rows returned, newest-first. */
1105
+ limit: z.number().int().min(1).max(1e3).optional()
1106
+ });
1107
+ /**
1108
+ * Default cap on the recorder's DurableState ops-log ring — the newest N rows
1109
+ * survive; older ones are evicted on append.
1110
+ */
1111
+ var OPS_LOG_RING_DEFAULT_MAX = 500;
1112
+ /** Default page size for a `listOpsLog` query when the caller omits `limit`. */
1113
+ var OPS_LOG_DEFAULT_LIMIT = 200;
1114
+ //#endregion
1050
1115
  //#region src/interfaces/storage-location.ts
1051
1116
  /**
1052
1117
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
@@ -2706,6 +2771,143 @@ function getAudioMacroClassIds() {
2706
2771
  return AUDIO_MACRO_LABELS.map((l) => l.id);
2707
2772
  }
2708
2773
  //#endregion
2774
+ //#region src/catalogs/event-taxonomy.ts
2775
+ /**
2776
+ * Unified event-kind taxonomy — THE single source of truth for
2777
+ * `kind → { parentKind, category, level, color, iconId, labelKey, label,
2778
+ * icon }`.
2779
+ *
2780
+ * This dictionary folds together what used to be scattered across four
2781
+ * copies:
2782
+ * - `capabilities/sensor-event-kinds.ts` (sensor cap colors)
2783
+ * - `addon-post-analysis/.../services/event-kinds.ts`
2784
+ * (MOTION/PERSON/VEHICLE… _COLOR constants)
2785
+ * - `ui-library/composites/detection-colors.ts` (CLASS_COLORS)
2786
+ * - `addon-post-analysis/shared/frame/box-drawer.ts` (DEFAULT_COLOR)
2787
+ * - the COCO / audio class maps (macro ↔ sub relationships)
2788
+ *
2789
+ * The DATA (serializable — color/iconId/labelKey/parentKind) lives here in
2790
+ * `@camstack/types`. The UI-side mapping `iconId → lucide component` and
2791
+ * `labelKey → t()` lives in `@camstack/ui-library`. UIs never hardcode a
2792
+ * color or an icon: they read this dictionary (server descriptors carry the
2793
+ * fields inline; the client resolves color/icon/label from `iconId`/`kind`).
2794
+ *
2795
+ * Two levels only (v1 YAGNI): macro → sub. `person` is a leaf macro.
2796
+ */
2797
+ var TAXONOMY_COLORS = {
2798
+ motion: "#f59e0b",
2799
+ audio: "#06b6d4",
2800
+ person: "#22c55e",
2801
+ vehicle: "#3b82f6",
2802
+ animal: "#f97316",
2803
+ package: "#a855f7",
2804
+ sensor: "#8b5cf6",
2805
+ control: "#10b981",
2806
+ genericDetection: "#64748b"
2807
+ };
2808
+ /** Global default color when a kind is unknown (matches legacy box-drawer). */
2809
+ var DEFAULT_EVENT_COLOR = "#22ff55";
2810
+ var DETECTION_SUB_COLORS = {
2811
+ car: "#f59e0b",
2812
+ truck: "#d97706",
2813
+ bus: "#b45309",
2814
+ motorcycle: "#eab308",
2815
+ bicycle: "#ca8a04",
2816
+ airplane: "#60a5fa",
2817
+ boat: "#2563eb",
2818
+ train: "#1d4ed8",
2819
+ bird: "#14b8a6",
2820
+ dog: "#84cc16",
2821
+ cat: "#f97316",
2822
+ horse: "#a16207",
2823
+ sheep: "#a3a3a3",
2824
+ cow: "#78716c",
2825
+ elephant: "#6b7280",
2826
+ bear: "#7c2d12",
2827
+ zebra: "#404040",
2828
+ giraffe: "#d4a373"
2829
+ };
2830
+ function titleCase(id) {
2831
+ return id.split(/[-_ ]/).filter((p) => p.length > 0).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" ");
2832
+ }
2833
+ var entries = /* @__PURE__ */ new Map();
2834
+ function macro(kind, category, color, iconId, label) {
2835
+ entries.set(kind, {
2836
+ kind,
2837
+ parentKind: null,
2838
+ level: "macro",
2839
+ category,
2840
+ color,
2841
+ iconId,
2842
+ labelKey: `eventKind.${kind}`,
2843
+ label
2844
+ });
2845
+ }
2846
+ function sub(kind, parentKind, category, color, iconId, label) {
2847
+ entries.set(kind, {
2848
+ kind,
2849
+ parentKind,
2850
+ level: "sub",
2851
+ category,
2852
+ color,
2853
+ iconId,
2854
+ labelKey: `eventKind.${kind}`,
2855
+ label
2856
+ });
2857
+ }
2858
+ macro("motion", "motion", TAXONOMY_COLORS.motion, "motion", "Motion");
2859
+ macro("audio", "audio", TAXONOMY_COLORS.audio, "audio", "Audio");
2860
+ macro("person", "detection", TAXONOMY_COLORS.person, "person", "Person");
2861
+ macro("vehicle", "detection", TAXONOMY_COLORS.vehicle, "vehicle", "Vehicle");
2862
+ macro("animal", "detection", TAXONOMY_COLORS.animal, "animal", "Animal");
2863
+ macro("package", "package", TAXONOMY_COLORS.package, "package", "Package");
2864
+ macro("sensor", "sensor", TAXONOMY_COLORS.sensor, "sensor", "Sensor");
2865
+ macro("control", "control", TAXONOMY_COLORS.control, "control", "Control");
2866
+ for (const [cocoClass, macroClass] of Object.entries(COCO_TO_MACRO.mapping)) {
2867
+ if (macroClass !== "vehicle" && macroClass !== "animal") continue;
2868
+ if (entries.has(cocoClass)) continue;
2869
+ sub(cocoClass, macroClass, "detection", DETECTION_SUB_COLORS[cocoClass] ?? TAXONOMY_COLORS.genericDetection, cocoClass, titleCase(cocoClass));
2870
+ }
2871
+ sub("package-delivered", "package", "package", TAXONOMY_COLORS.package, "package", "Package delivered");
2872
+ sub("package-picked-up", "package", "package", TAXONOMY_COLORS.package, "package", "Package picked up");
2873
+ sub("contact", "sensor", "sensor", "#f59e0b", "door", "Contact");
2874
+ sub("motion-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "pir", "Motion sensor");
2875
+ sub("smoke", "sensor", "sensor", "#ef4444", "smoke", "Smoke");
2876
+ sub("flood", "sensor", "sensor", "#3b82f6", "water", "Water leak");
2877
+ sub("gas", "sensor", "sensor", "#ef4444", "gas", "Gas");
2878
+ sub("carbon-monoxide", "sensor", "sensor", "#dc2626", "smoke", "Carbon monoxide");
2879
+ sub("vibration", "sensor", "sensor", "#eab308", "vibration", "Vibration");
2880
+ sub("tamper", "sensor", "sensor", "#f97316", "tamper", "Tamper");
2881
+ sub("presence", "sensor", "sensor", "#22c55e", "presence", "Presence");
2882
+ sub("enum-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "generic", "Sensor state");
2883
+ sub("device-event", "sensor", "sensor", "#10b981", "button", "Device event");
2884
+ sub("lock", "control", "control", "#0ea5e9", "lock", "Lock");
2885
+ sub("switch", "control", "control", TAXONOMY_COLORS.control, "switch", "Switch");
2886
+ sub("siren", "control", "control", "#dc2626", "siren", "Siren");
2887
+ sub("button", "control", "control", "#10b981", "button", "Button");
2888
+ sub("doorbell", "control", "control", "#a855f7", "doorbell", "Doorbell");
2889
+ for (const l of AUDIO_MACRO_LABELS) {
2890
+ const kind = `audio-${l.id}`;
2891
+ if (entries.has(kind)) continue;
2892
+ sub(kind, "audio", "audio", TAXONOMY_COLORS.audio, kind, l.name);
2893
+ }
2894
+ /** The complete taxonomy dictionary, keyed by kind. */
2895
+ var EVENT_TAXONOMY = Object.freeze(Object.fromEntries(entries));
2896
+ /** Taxonomy entry for a kind, or undefined when unknown. */
2897
+ function getTaxonomyEntry(kind) {
2898
+ return EVENT_TAXONOMY[kind];
2899
+ }
2900
+ /** Color for a kind — dictionary value, else the global default. */
2901
+ function colorForKind(kind) {
2902
+ return EVENT_TAXONOMY[kind]?.color ?? "#22ff55";
2903
+ }
2904
+ /** The sub kinds whose `parentKind` is `macro` (empty for a leaf macro). */
2905
+ function subKindsOf(macro) {
2906
+ const out = [];
2907
+ for (const e of Object.values(EVENT_TAXONOMY)) if (e.parentKind === macro) out.push(e);
2908
+ return out;
2909
+ }
2910
+ //#endregion
2709
2911
  //#region src/types/device-type.ts
2710
2912
  var DEVICE_TYPE_INFO = { ["camera"]: {
2711
2913
  type: "camera",
@@ -11065,9 +11267,10 @@ var zoneRulesCapability = {
11065
11267
  * `package` backs the package-drop detector — a package zone is a
11066
11268
  * `ZoneRule` on the `'package'` stage referencing drawn polygons
11067
11269
  * (see docs/superpowers/specs/2026-07-17-package-zones-design.md §3.1).
11068
- * The orchestrator provider that writes this stage lands in a later
11069
- * slice; until then the mirror carries only `{motion, detection}` and
11070
- * consumers read `package` as absent (treat as `[]`).
11270
+ * The orchestrator provider writes this stage as a first-class slice
11271
+ * (Phase 4): every mutation mirrors the full `{motion, detection,
11272
+ * package}` shape, so consumers read the current package rules directly
11273
+ * off `device.state.zoneRules.value.package`.
11071
11274
  */
11072
11275
  runtimeState: z.object({
11073
11276
  motion: z.array(ZoneRuleSchema).readonly(),
@@ -13072,7 +13275,10 @@ function createSystemProxy(api) {
13072
13275
  assignPlates: (input) => dispatch("plateGallery", "assignPlates", "mutation", input),
13073
13276
  unassignPlates: (input) => dispatch("plateGallery", "unassignPlates", "mutation", input)
13074
13277
  },
13075
- recording: { getStorageUsage: (input) => dispatch("recording", "getStorageUsage", "query", input) },
13278
+ recording: {
13279
+ getStorageUsage: (input) => dispatch("recording", "getStorageUsage", "query", input),
13280
+ listOpsLog: (input) => dispatch("recording", "listOpsLog", "query", input)
13281
+ },
13076
13282
  recordingExport: {
13077
13283
  getExport: (input) => dispatch("recordingExport", "getExport", "query", input),
13078
13284
  cancelExport: (input) => dispatch("recordingExport", "cancelExport", "mutation", input),
@@ -18351,17 +18557,30 @@ var EventKindCategorySchema = z.enum([
18351
18557
  "audio",
18352
18558
  "detection",
18353
18559
  "sensor",
18560
+ "control",
18354
18561
  "custom",
18355
18562
  "package"
18356
18563
  ]);
18564
+ /** Taxonomy level — macro (timeline lane) vs sub (events-page leaf). */
18565
+ var EventKindLevelSchema = z.enum(["macro", "sub"]);
18357
18566
  var EventKindDescriptorSchema = z.object({
18358
- /** Stable kind id (e.g. 'motion', 'person', 'contact'). */
18567
+ /** Stable kind id (e.g. 'motion', 'vehicle', 'car', 'lock'). */
18359
18568
  kind: z.string(),
18569
+ /** i18n key resolved on the UI side; `label` is the English fallback. */
18570
+ labelKey: z.string(),
18571
+ /** English fallback label (kept for clients that don't translate). */
18360
18572
  label: z.string(),
18361
18573
  /** Hex color for timeline/legend rendering. */
18362
18574
  color: z.string(),
18575
+ /** Dictionary id → lucide component on the UI side. */
18576
+ iconId: z.string(),
18577
+ /** Legacy closed-vocab glyph — fallback for `iconId`. */
18363
18578
  icon: EventKindIconSchema,
18364
18579
  category: EventKindCategorySchema,
18580
+ /** Macro parent for this kind ('car' → 'vehicle'); null for a macro. */
18581
+ parentKind: z.string().nullable(),
18582
+ /** Derived from `parentKind`, explicit for the client tree. */
18583
+ level: EventKindLevelSchema,
18365
18584
  /** Which cap + device contributes this kind. For built-ins the camera
18366
18585
  * itself; for sensor kinds the LINKED source device. */
18367
18586
  source: z.object({
@@ -18434,11 +18653,21 @@ var TrackAudioLabelSchema = z.object({
18434
18653
  firstAt: z.number(),
18435
18654
  lastAt: z.number()
18436
18655
  });
18656
+ /**
18657
+ * How a track was produced. `pipeline` (default / absent) = the spatial
18658
+ * detection+tracking pipeline. `sensor` = a SYNTHETIC track projected from a
18659
+ * linked sensor/control state change (no positions; carries a snapshot). The
18660
+ * spatial subsystems (tracker association, occupancy count, re-id/embedding,
18661
+ * resurrection) MUST skip `sensor` tracks — they have no bbox trajectory.
18662
+ */
18663
+ var TrackSourceSchema = z.enum(["pipeline", "sensor"]);
18437
18664
  var TrackSchema = z.object({
18438
18665
  trackId: z.string(),
18439
18666
  deviceId: z.number(),
18440
18667
  className: z.string(),
18441
18668
  label: z.string().optional(),
18669
+ /** Track provenance. Absent ⇒ `pipeline` (legacy rows). */
18670
+ source: TrackSourceSchema.optional(),
18442
18671
  firstSeen: z.number(),
18443
18672
  lastSeen: z.number(),
18444
18673
  /** Frame-rate position history (subject to maxPositionHistory cap). */
@@ -18693,6 +18922,26 @@ var TrackCascadeCountsSchema = z.object({
18693
18922
  /** Per-track CLIP search vectors removed (best-effort). */
18694
18923
  embeddings: z.number().int()
18695
18924
  });
18925
+ /** Event-store footprint for one camera. */
18926
+ var EventStoreDeviceFootprintSchema = z.object({
18927
+ deviceId: z.number(),
18928
+ /** Persisted event rows (motion + object + audio) for the camera. */
18929
+ rows: z.number().int(),
18930
+ /** Event-owned media bytes on disk for the camera. */
18931
+ bytes: z.number().int()
18932
+ });
18933
+ /** Aggregate event-store footprint: global totals + per-camera breakdown. */
18934
+ var EventStoreFootprintSchema = z.object({
18935
+ totalRows: z.number().int(),
18936
+ totalBytes: z.number().int(),
18937
+ devices: z.array(EventStoreDeviceFootprintSchema).readonly()
18938
+ });
18939
+ /** Per-kind counts returned by the event-prune / device-delete mutations. */
18940
+ var EventPruneCountsSchema = z.object({
18941
+ motion: z.number().int(),
18942
+ object: z.number().int(),
18943
+ audio: z.number().int()
18944
+ });
18696
18945
  var pipelineAnalyticsCapability = {
18697
18946
  name: "pipeline-analytics",
18698
18947
  scope: "device",
@@ -18854,6 +19103,45 @@ var pipelineAnalyticsCapability = {
18854
19103
  kind: "mutation",
18855
19104
  auth: "admin"
18856
19105
  }),
19106
+ /**
19107
+ * Durable event-store footprint for the management UI: event rows
19108
+ * (motion + object + audio) counted per camera + total, plus the
19109
+ * event-owned media bytes on disk per camera + total. Stat/count-based,
19110
+ * computed on demand.
19111
+ */
19112
+ getEventStoreFootprint: method(z.object({}), EventStoreFootprintSchema, {
19113
+ kind: "query",
19114
+ auth: "admin"
19115
+ }),
19116
+ /**
19117
+ * Cluster-wide prune of events older than `olderThanMs` (exclusive) across
19118
+ * every camera, deleting each event's media in lockstep. Logged to the
19119
+ * events ops-log with `reason` (default `'retention'`). Returns the summed
19120
+ * per-kind deleted counts.
19121
+ */
19122
+ pruneEvents: method(z.object({
19123
+ olderThanMs: z.number(),
19124
+ reason: OpsLogReasonSchema.optional()
19125
+ }), EventPruneCountsSchema, {
19126
+ kind: "mutation",
19127
+ auth: "admin"
19128
+ }),
19129
+ /**
19130
+ * Manually delete EVERY event (motion + object + audio) for one camera and
19131
+ * its event-owned media in lockstep. Logged to the events ops-log as
19132
+ * `op:'manual-delete', reason:'manual'`. Destructive — the admin UI guards
19133
+ * it behind a confirm.
19134
+ */
19135
+ deleteDeviceEvents: method(z.object({ deviceId: z.number() }), EventPruneCountsSchema, {
19136
+ kind: "mutation",
19137
+ auth: "admin"
19138
+ }),
19139
+ /** The events ops-log rows (newest-first), optionally scoped to one camera.
19140
+ * Backed by a declared pipeline-analytics SQLite collection. */
19141
+ listOpsLog: method(OpsLogQueryInputSchema, z.array(OpsLogEntrySchema).readonly(), {
19142
+ kind: "query",
19143
+ auth: "admin"
19144
+ }),
18857
19145
  getEventMedia: method(z.object({
18858
19146
  eventId: z.string(),
18859
19147
  kind: MediaFileKindEnum.optional()
@@ -18910,53 +19198,107 @@ var pipelineAnalyticsCapability = {
18910
19198
  //#endregion
18911
19199
  //#region src/capabilities/sensor-event-kinds.ts
18912
19200
  /**
18913
- * Sensor cap name static event-kind descriptor. A linked device
18914
- * contributes one entry per bound cap present in this map.
19201
+ * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
19202
+ * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
19203
+ * caps into per-camera event-kind descriptors.
19204
+ *
19205
+ * The descriptor DATA (color / iconId / labelKey / parentKind / category)
19206
+ * is NOT duplicated here — every entry is derived from the single
19207
+ * `EVENT_TAXONOMY` dictionary (`catalogs/event-taxonomy.ts`). This file owns
19208
+ * ONLY the cap-name → taxonomy-kind mapping. Adding a new eventful sensor /
19209
+ * control cap means adding one line here (and a taxonomy entry); the anti-
19210
+ * drift guard `scripts/check-event-kind-coverage.ts` fails the build if an
19211
+ * eventful cap is missing.
18915
19212
  */
18916
- var EVENT_KIND_BY_CAP = {
18917
- contact: {
18918
- kind: "contact",
18919
- label: "Contact",
18920
- color: "#f59e0b",
18921
- icon: "door",
18922
- category: "sensor"
18923
- },
18924
- flood: {
18925
- kind: "flood",
18926
- label: "Water leak",
18927
- color: "#3b82f6",
18928
- icon: "water",
18929
- category: "sensor"
18930
- },
18931
- gas: {
18932
- kind: "gas",
18933
- label: "Gas",
18934
- color: "#ef4444",
18935
- icon: "smoke",
18936
- category: "sensor"
18937
- },
18938
- "carbon-monoxide": {
18939
- kind: "carbon-monoxide",
18940
- label: "Carbon monoxide",
18941
- color: "#dc2626",
18942
- icon: "smoke",
18943
- category: "sensor"
18944
- },
18945
- "enum-sensor": {
18946
- kind: "enum-sensor",
18947
- label: "Sensor state",
18948
- color: "#8b5cf6",
18949
- icon: "generic",
18950
- category: "sensor"
18951
- },
18952
- "event-emitter": {
18953
- kind: "device-event",
18954
- label: "Device event",
18955
- color: "#10b981",
18956
- icon: "button",
18957
- category: "sensor"
18958
- }
19213
+ /** Map a taxonomy `iconId` onto the legacy closed `EventKindIcon` enum. */
19214
+ var LEGACY_ICON = {
19215
+ motion: "motion",
19216
+ audio: "audio",
19217
+ person: "person",
19218
+ vehicle: "vehicle",
19219
+ animal: "animal",
19220
+ package: "package",
19221
+ door: "door",
19222
+ pir: "pir",
19223
+ smoke: "smoke",
19224
+ water: "water",
19225
+ button: "button",
19226
+ generic: "generic",
19227
+ gas: "smoke",
19228
+ vibration: "generic",
19229
+ tamper: "generic",
19230
+ presence: "person",
19231
+ lock: "generic",
19232
+ siren: "generic",
19233
+ switch: "generic",
19234
+ doorbell: "button"
19235
+ };
19236
+ function legacyIcon(iconId) {
19237
+ return LEGACY_ICON[iconId] ?? "generic";
19238
+ }
19239
+ /**
19240
+ * Cap name → taxonomy kind id. Covers EVERY eventful sensor / control cap.
19241
+ * The anti-drift guard cross-checks this against the eventful caps declared
19242
+ * in `packages/types/src/capabilities/*.cap.ts`.
19243
+ */
19244
+ var CAP_TO_KIND = {
19245
+ contact: "contact",
19246
+ motion: "motion-sensor",
19247
+ smoke: "smoke",
19248
+ flood: "flood",
19249
+ gas: "gas",
19250
+ "carbon-monoxide": "carbon-monoxide",
19251
+ vibration: "vibration",
19252
+ tamper: "tamper",
19253
+ presence: "presence",
19254
+ "enum-sensor": "enum-sensor",
19255
+ "event-emitter": "device-event",
19256
+ "lock-control": "lock",
19257
+ switch: "switch",
19258
+ button: "button",
19259
+ doorbell: "doorbell"
18959
19260
  };
19261
+ function buildDescriptor(capName, kind) {
19262
+ const t = EVENT_TAXONOMY[kind];
19263
+ if (t === void 0) throw new Error(`EVENT_KIND_BY_CAP: cap '${capName}' maps to unknown taxonomy kind '${kind}'`);
19264
+ return {
19265
+ ...t,
19266
+ icon: legacyIcon(t.iconId)
19267
+ };
19268
+ }
19269
+ /**
19270
+ * Sensor / control cap name → static event-kind descriptor. A linked device
19271
+ * contributes one entry per bound cap present in this map.
19272
+ */
19273
+ var EVENT_KIND_BY_CAP = Object.freeze(Object.fromEntries(Object.entries(CAP_TO_KIND).map(([capName, kind]) => [capName, buildDescriptor(capName, kind)])));
19274
+ /** The cap names covered by the taxonomy (for the anti-drift guard). */
19275
+ var EVENTFUL_CAP_NAMES = Object.keys(CAP_TO_KIND);
19276
+ /**
19277
+ * Build a full `EventKindDescriptor` for a taxonomy `kind`, stamping the
19278
+ * per-device `source`. Returns null when `kind` is not in the taxonomy.
19279
+ * This is THE bridge from the serializable taxonomy dictionary to the cap
19280
+ * wire shape — every event-kind descriptor the server emits goes through it,
19281
+ * so color/iconId/labelKey are never re-declared at a call site.
19282
+ */
19283
+ function buildEventKindDescriptor(kind, source) {
19284
+ const t = EVENT_TAXONOMY[kind];
19285
+ if (t === void 0) return null;
19286
+ return {
19287
+ kind: t.kind,
19288
+ labelKey: t.labelKey,
19289
+ label: t.label,
19290
+ color: t.color,
19291
+ iconId: t.iconId,
19292
+ icon: legacyIcon(t.iconId),
19293
+ category: t.category,
19294
+ parentKind: t.parentKind,
19295
+ level: t.level,
19296
+ source: {
19297
+ capName: source.capName,
19298
+ deviceId: source.deviceId
19299
+ }
19300
+ };
19301
+ }
18960
19302
  //#endregion
18961
19303
  //#region src/capabilities/pipeline-orchestrator.cap.ts
18962
19304
  var CameraPipelineConfigSchema = z.object({
@@ -23591,14 +23933,43 @@ var recordingCapability = {
23591
23933
  auth: "admin"
23592
23934
  }),
23593
23935
  /** Apply this device's retention policy to footage now; returns the oldest
23594
- * surviving footage start (the retention floor) or null if no footage. */
23595
- pruneFootage: method(z.object({ deviceId: z.number() }), z.object({
23936
+ * surviving footage start (the retention floor) or null if no footage. The
23937
+ * prune is logged to the recordings ops-log with `reason` (default
23938
+ * `'retention'` — the policy-driven prune; `'quota'` when disk-pressure
23939
+ * triggered). */
23940
+ pruneFootage: method(z.object({
23941
+ deviceId: z.number(),
23942
+ reason: OpsLogReasonSchema.optional()
23943
+ }), z.object({
23596
23944
  floorMs: z.number().nullable(),
23597
23945
  deletedBuckets: z.number().int(),
23598
23946
  reclaimedBytes: z.number().int()
23599
23947
  }), {
23600
23948
  kind: "mutation",
23601
23949
  auth: "admin"
23950
+ }),
23951
+ /**
23952
+ * Manually delete a camera's footage — the whole footprint, or a
23953
+ * `[fromMs, toMs)` window when either bound is given. Logged to the
23954
+ * recordings ops-log as `op:'manual-delete', reason:'manual'`. Destructive:
23955
+ * the admin UI guards it behind a confirm.
23956
+ */
23957
+ deleteFootprint: method(z.object({
23958
+ deviceId: z.number(),
23959
+ fromMs: z.number().optional(),
23960
+ toMs: z.number().optional()
23961
+ }), z.object({
23962
+ deletedBuckets: z.number().int(),
23963
+ reclaimedBytes: z.number().int()
23964
+ }), {
23965
+ kind: "mutation",
23966
+ auth: "admin"
23967
+ }),
23968
+ /** The recordings ops-log rows (newest-first), optionally scoped to one
23969
+ * camera. Backed by the recorder's bounded DurableState ring. */
23970
+ listOpsLog: method(OpsLogQueryInputSchema, z.array(OpsLogEntrySchema).readonly(), {
23971
+ kind: "query",
23972
+ auth: "admin"
23602
23973
  })
23603
23974
  }
23604
23975
  };
@@ -28061,6 +28432,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
28061
28432
  addonId: null,
28062
28433
  access: "delete"
28063
28434
  },
28435
+ "pipelineAnalytics.deleteDeviceEvents": {
28436
+ capName: "pipeline-analytics",
28437
+ capScope: "device",
28438
+ addonId: null,
28439
+ access: "delete"
28440
+ },
28064
28441
  "pipelineAnalytics.deleteTracks": {
28065
28442
  capName: "pipeline-analytics",
28066
28443
  capScope: "device",
@@ -28091,6 +28468,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
28091
28468
  addonId: null,
28092
28469
  access: "view"
28093
28470
  },
28471
+ "pipelineAnalytics.getEventStoreFootprint": {
28472
+ capName: "pipeline-analytics",
28473
+ capScope: "device",
28474
+ addonId: null,
28475
+ access: "view"
28476
+ },
28094
28477
  "pipelineAnalytics.getKeyEvents": {
28095
28478
  capName: "pipeline-analytics",
28096
28479
  capScope: "device",
@@ -28133,6 +28516,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
28133
28516
  addonId: null,
28134
28517
  access: "view"
28135
28518
  },
28519
+ "pipelineAnalytics.listOpsLog": {
28520
+ capName: "pipeline-analytics",
28521
+ capScope: "device",
28522
+ addonId: null,
28523
+ access: "view"
28524
+ },
28136
28525
  "pipelineAnalytics.listRecentTracks": {
28137
28526
  capName: "pipeline-analytics",
28138
28527
  capScope: "device",
@@ -28145,6 +28534,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
28145
28534
  addonId: null,
28146
28535
  access: "view"
28147
28536
  },
28537
+ "pipelineAnalytics.pruneEvents": {
28538
+ capName: "pipeline-analytics",
28539
+ capScope: "device",
28540
+ addonId: null,
28541
+ access: "create"
28542
+ },
28148
28543
  "pipelineAnalytics.pruneEventsBefore": {
28149
28544
  capName: "pipeline-analytics",
28150
28545
  capScope: "device",
@@ -28907,6 +29302,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
28907
29302
  addonId: null,
28908
29303
  access: "create"
28909
29304
  },
29305
+ "recording.deleteFootprint": {
29306
+ capName: "recording",
29307
+ capScope: "system",
29308
+ addonId: null,
29309
+ access: "delete"
29310
+ },
28910
29311
  "recording.getAvailability": {
28911
29312
  capName: "recording",
28912
29313
  capScope: "system",
@@ -28937,6 +29338,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
28937
29338
  addonId: null,
28938
29339
  access: "view"
28939
29340
  },
29341
+ "recording.listOpsLog": {
29342
+ capName: "recording",
29343
+ capScope: "system",
29344
+ addonId: null,
29345
+ access: "view"
29346
+ },
28940
29347
  "recording.locateSegment": {
28941
29348
  capName: "recording",
28942
29349
  capScope: "system",
@@ -30935,4 +31342,4 @@ function scoreRuntimes(hw) {
30935
31342
  };
30936
31343
  }
30937
31344
  //#endregion
30938
- export { ACCESSORY_LABEL, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BATTERY_DEVICE_PROFILE, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStreamSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_FEATURES, DEFAULT_RETENTION, DEFAULT_SCRUB_THUMBNAIL_PRESET, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DEVICE_TYPE_INFO, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetectionSourceSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceLinkModeSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENT_KIND_BY_CAP, EVENT_PAD_MS, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventSourceType, ExportDownloadSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionEvalError, ExpressionParseError, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LabelDefinitionSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LinkedDeviceSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmUsageRollupSchema, LlmUsageSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoginMethodContributionSchema, LoginStageEnum, MACRO_LABELS, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, METHOD_ACCESS_MAP, MODEL_FORMATS, ManagedModelCatalogEntrySchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, NativeDetectionSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationActionSchema, NotificationFormatSchema, NotificationHistoryEntrySchema, NotificationRuleSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OauthIntegrationDescriptorSchema, ObjectEventSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdStatusSchema, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RESERVED_BINDING_NAMES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingModeSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingRuleSchema, RecordingScheduleSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RenderedAsSchema, ReportMotionInputSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SCRUB_THUMBNAIL_PRESETS, SCRUB_THUMBNAIL_PRESET_LABELS, SCRUB_THUMBNAIL_PRESET_ORDER, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, SceneCheckSchema, SceneConditionSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusSchema, SceneReferenceSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, ScrubThumbnailPresetSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateStateSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TIMEZONES, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestResultSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackProjectionSchema, TrackSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TurnServerSchema, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VibrationStatusSchema, VideoEncodeSchema, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, advancedNotifierCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, applyTransform, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildModelVariantGroups, buildStreamParamsConfigSchema, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, collectHydratedFieldEntries, collectHydratedFieldValues, colorCapability, compileExpression, compileExpressionSafe, connectivityCapability, consumablesCapability, contactCapability, controlCapability, convertUnit, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createExpressionScope, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dayNightCapability, decoderCapability, defaultDeviceFor, defineCustomActions, describeModelVariant, detectionPipelineCapability, deviceAdoptionCapability, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, enumSensorCapability, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateLinkExpression, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, frameworkSwapConfirmSchema, frameworkSwapPackageSchema, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, integrationsCapability, intercomCapability, isAgentOnlyPlacement, isArrayOutputSchema, isCollectionArrayMethod, isDeployableToAgent, isDeviceConfigCap, isEvent, isObjectInput, isVoidInput, jobKindSchema, kebabToCamel, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, localNetworkCapability, locationSimilarity, lockControlCapability, logDestinationCapability, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, migrateConfigToBands, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, osdCapability, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, pendingFrameworkSwapSchema, petFeederCapability, pickPreferredRtspEntry, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readNodePin, readinessKey, rebootCapability, recordingCapability, recordingExportCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveCapMount, resolveDetectionRuntime, resolveDeviceProfile, resolveFormat, resolveHydratedFieldValue, resolveModelFormat, resolveRunnerId, resolveScrubThumbnailGeometry, resolveVariantModelId, runInferenceStep, runtimeDevices, sceneMonitorCapability, scopeKey, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, serverManagementCapability, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, supportedRuntimes, switchCapability, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, textToHtml, toDeviceSummary, toExpressionValue, toStreamSourceEntry, toastCapability, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, valveCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
31345
+ export { ACCESSORY_LABEL, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BATTERY_DEVICE_PROFILE, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStreamSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_RETENTION, DEFAULT_SCRUB_THUMBNAIL_PRESET, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DEVICE_TYPE_INFO, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetectionSourceSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceLinkModeSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_PAD_MS, EVENT_TAXONOMY, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventSourceType, ExportDownloadSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionEvalError, ExpressionParseError, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LabelDefinitionSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LinkedDeviceSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmUsageRollupSchema, LlmUsageSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoginMethodContributionSchema, LoginStageEnum, MACRO_LABELS, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, METHOD_ACCESS_MAP, MODEL_FORMATS, ManagedModelCatalogEntrySchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, NativeDetectionSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationActionSchema, NotificationFormatSchema, NotificationHistoryEntrySchema, NotificationRuleSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OauthIntegrationDescriptorSchema, ObjectEventSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdStatusSchema, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RESERVED_BINDING_NAMES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingModeSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingRuleSchema, RecordingScheduleSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RenderedAsSchema, ReportMotionInputSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SCRUB_THUMBNAIL_PRESETS, SCRUB_THUMBNAIL_PRESET_LABELS, SCRUB_THUMBNAIL_PRESET_ORDER, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, SceneCheckSchema, SceneConditionSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusSchema, SceneReferenceSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, ScrubThumbnailPresetSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateStateSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, TIMEZONES, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestResultSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackProjectionSchema, TrackSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TurnServerSchema, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VibrationStatusSchema, VideoEncodeSchema, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, advancedNotifierCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, applyTransform, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildEventKindDescriptor, buildModelVariantGroups, buildStreamParamsConfigSchema, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, collectHydratedFieldEntries, collectHydratedFieldValues, colorCapability, colorForKind, compileExpression, compileExpressionSafe, connectivityCapability, consumablesCapability, contactCapability, controlCapability, convertUnit, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createExpressionScope, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dayNightCapability, decoderCapability, defaultDeviceFor, defineCustomActions, describeModelVariant, detectionPipelineCapability, deviceAdoptionCapability, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, enumSensorCapability, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateLinkExpression, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, frameworkSwapConfirmSchema, frameworkSwapPackageSchema, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getTaxonomyEntry, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, integrationsCapability, intercomCapability, isAgentOnlyPlacement, isArrayOutputSchema, isCollectionArrayMethod, isDeployableToAgent, isDeviceConfigCap, isEvent, isObjectInput, isVoidInput, jobKindSchema, kebabToCamel, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, localNetworkCapability, locationSimilarity, lockControlCapability, logDestinationCapability, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, migrateConfigToBands, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, osdCapability, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, pendingFrameworkSwapSchema, petFeederCapability, pickPreferredRtspEntry, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readNodePin, readinessKey, rebootCapability, recordingCapability, recordingExportCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveCapMount, resolveDetectionRuntime, resolveDeviceProfile, resolveFormat, resolveHydratedFieldValue, resolveModelFormat, resolveRunnerId, resolveScrubThumbnailGeometry, resolveVariantModelId, runInferenceStep, runtimeDevices, sceneMonitorCapability, scopeKey, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, serverManagementCapability, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, subKindsOf, supportedRuntimes, switchCapability, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, textToHtml, toDeviceSummary, toExpressionValue, toStreamSourceEntry, toastCapability, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, valveCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };