@camstack/addon-provider-homeassistant 1.2.105 → 1.2.108

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/addon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("./dist-Ds45JTMq.js");
2
+ const require_dist = require("./dist-DAVF2Q_0.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  let node_zlib = require("node:zlib");
5
5
  //#region src/ha-device-source.ts
@@ -6455,14 +6455,13 @@ function createHaIconRouteProvider() {
6455
6455
  * `discoverTargets` issues a `get_services` WS message and turns every
6456
6456
  * `notify.*` service into a candidate.
6457
6457
  *
6458
- * The notify `service_data`/`data` mapping matches the user's battle-tested
6459
- * Scrypted HA plugin (`scrypted-homeassistant/src/notify.ts`): image URL in
6460
- * `data.image`, iOS critical via `data.push['interruption-level']='critical'`,
6461
- * Android priority via `data.priority='high'`. It extends that minimal shape
6462
- * with the per-level Android `importance` + iOS interruption-level gradation
6463
- * and the HA Companion actionable-notification `actions:[{action,title,uri}]`
6464
- * block (the action id round-trips as the `mobile_app_notification_action`
6465
- * event — see `scrypted-advanced-notifier-homeassistant`'s `action_listener`).
6458
+ * The notify `service_data`/`data` mapping is the battle-tested minimal
6459
+ * shape: image URL in `data.image`, iOS critical via
6460
+ * `data.push['interruption-level']='critical'`, Android priority via
6461
+ * `data.priority='high'`. It extends that with the per-level Android
6462
+ * `importance` + iOS interruption-level gradation and the HA Companion
6463
+ * actionable-notification `actions:[{action,title,uri}]` block (the action
6464
+ * id round-trips as the `mobile_app_notification_action` event).
6466
6465
  */
6467
6466
  /** The single kind this provider contributes to the shared catalog. */
6468
6467
  var HA_NOTIFICATION_KIND = "homeassistant";
@@ -6545,9 +6544,8 @@ function homeassistantTargetKind(addonId) {
6545
6544
  * Map a resolved level onto the HA Companion `data` gradation:
6546
6545
  * - Android: `importance` (default|high) + `priority` (high on high/critical).
6547
6546
  * - iOS: `push['interruption-level']` (active|time-sensitive|critical).
6548
- * Matches `scrypted-homeassistant/notify.ts` (priority:'high' + push
6549
- * interruption-level 'critical' for critical), extended with the per-level
6550
- * importance/interruption gradation.
6547
+ * The baseline is priority:'high' + push interruption-level 'critical' for
6548
+ * critical, extended with the per-level importance/interruption gradation.
6551
6549
  */
6552
6550
  function applyLevel(data, level) {
6553
6551
  const isCritical = level?.flags?.critical === true || level?.id === "critical";
package/dist/addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-4WKeNf6a.mjs";
1
+ import { $ as presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-CBPvkoKj.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
4
4
  //#region src/ha-device-source.ts
@@ -6454,14 +6454,13 @@ function createHaIconRouteProvider() {
6454
6454
  * `discoverTargets` issues a `get_services` WS message and turns every
6455
6455
  * `notify.*` service into a candidate.
6456
6456
  *
6457
- * The notify `service_data`/`data` mapping matches the user's battle-tested
6458
- * Scrypted HA plugin (`scrypted-homeassistant/src/notify.ts`): image URL in
6459
- * `data.image`, iOS critical via `data.push['interruption-level']='critical'`,
6460
- * Android priority via `data.priority='high'`. It extends that minimal shape
6461
- * with the per-level Android `importance` + iOS interruption-level gradation
6462
- * and the HA Companion actionable-notification `actions:[{action,title,uri}]`
6463
- * block (the action id round-trips as the `mobile_app_notification_action`
6464
- * event — see `scrypted-advanced-notifier-homeassistant`'s `action_listener`).
6457
+ * The notify `service_data`/`data` mapping is the battle-tested minimal
6458
+ * shape: image URL in `data.image`, iOS critical via
6459
+ * `data.push['interruption-level']='critical'`, Android priority via
6460
+ * `data.priority='high'`. It extends that with the per-level Android
6461
+ * `importance` + iOS interruption-level gradation and the HA Companion
6462
+ * actionable-notification `actions:[{action,title,uri}]` block (the action
6463
+ * id round-trips as the `mobile_app_notification_action` event).
6465
6464
  */
6466
6465
  /** The single kind this provider contributes to the shared catalog. */
6467
6466
  var HA_NOTIFICATION_KIND = "homeassistant";
@@ -6544,9 +6543,8 @@ function homeassistantTargetKind(addonId) {
6544
6543
  * Map a resolved level onto the HA Companion `data` gradation:
6545
6544
  * - Android: `importance` (default|high) + `priority` (high on high/critical).
6546
6545
  * - iOS: `push['interruption-level']` (active|time-sensitive|critical).
6547
- * Matches `scrypted-homeassistant/notify.ts` (priority:'high' + push
6548
- * interruption-level 'critical' for critical), extended with the per-level
6549
- * importance/interruption gradation.
6546
+ * The baseline is priority:'high' + push interruption-level 'critical' for
6547
+ * critical, extended with the per-level importance/interruption gradation.
6550
6548
  */
6551
6549
  function applyLevel(data, level) {
6552
6550
  const isCritical = level?.flags?.critical === true || level?.id === "critical";
@@ -1,4 +1,4 @@
1
- //#region ../types/dist/event-category-CnLqLOKs.mjs
1
+ //#region ../types/dist/event-category-DAXzJeTX.mjs
2
2
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
3
3
  EventCategory["SystemBoot"] = "system.boot";
4
4
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -590,7 +590,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
590
590
  * issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
591
591
  */
592
592
  EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
593
- EventCategory["FrigateLiveEvent"] = "frigate.live-event";
594
593
  EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
595
594
  /**
596
595
  * Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
@@ -12896,7 +12895,7 @@ DeviceType.Camera;
12896
12895
  var SourceInfoSchema = object({
12897
12896
  /** Live dispatch key — mutable when the source system allows rename. */
12898
12897
  id: string(),
12899
- /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'frigate'. */
12898
+ /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
12900
12899
  system: string(),
12901
12900
  /** Immutable upstream identifier when available (HA `unique_id`, … ).
12902
12901
  * Used to detect rename when `id` changes. */
@@ -12909,7 +12908,7 @@ var SourceInfoSchema = object({
12909
12908
  /**
12910
12909
  * Build the synthetic SourceInfo every existing provider falls back to
12911
12910
  * when no upstream value has been persisted. Keeps non-migrated providers
12912
- * (Reolink / Hikvision / ONVIF / Frigate / RTSP) functional without code
12911
+ * (Reolink / Hikvision / ONVIF / RTSP) functional without code
12913
12912
  * changes — `id` reuses the CamStack stableId, `system` reuses the addon
12914
12913
  * id. Real upstream identity replaces this once a provider migrates and
12915
12914
  * calls `updateSourceInfo()` with concrete values.
@@ -13658,7 +13657,7 @@ var deviceProviderCapability = {
13658
13657
  * - `device-management.router.ts` (deleted in Phase 2)
13659
13658
  * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
13660
13659
  *
13661
- * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
13660
+ * All device provider addons (rtsp, onvif, …) are hub-local: they may
13662
13661
  * fork into separate processes but never run on remote cluster agents. Therefore:
13663
13662
  * - No nodeId routing needed — this is a pure hub singleton.
13664
13663
  * - The hub's DeviceRegistry is the single source of truth for all live devices.
@@ -17720,7 +17719,7 @@ var NcRuleInputSchema = object({
17720
17719
  * The measured seven-person arrival on device 590 spans 110 s with every
17721
17720
  * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
17722
17721
  * idle cutoff holds it as one and ends it when the arrival actually ends.
17723
- * 30 is Frigate's shipped value for the same decision.
17722
+ * 30 s is a widely shipped value for the same decision.
17724
17723
  *
17725
17724
  * ### What it replaces
17726
17725
  *
@@ -19818,6 +19817,13 @@ var ZoneCrossingSchema = object({
19818
19817
  /** Zone display name at crossing time (falls back to the id). */
19819
19818
  zoneName: string().optional()
19820
19819
  });
19820
+ /** One zone a box was stamped with, and how much of the BOX fell inside it. */
19821
+ var ZoneOverlapSchema = object({
19822
+ zoneId: string(),
19823
+ zoneName: string().optional(),
19824
+ /** Percentage of the BOX area inside the zone, 0–100. */
19825
+ overlapPct: number()
19826
+ });
19821
19827
  var ObjectEventSchema = object({
19822
19828
  ...BaseEventFields,
19823
19829
  kind: literal("object"),
@@ -19842,6 +19848,35 @@ var ObjectEventSchema = object({
19842
19848
  bbox: BoundingBoxSchema.optional(),
19843
19849
  /** Heavy JSON — omitted in slim projection. */
19844
19850
  zones: array(string()).readonly().optional(),
19851
+ /**
19852
+ * How far inside each stamped zone the box actually was, as a percentage of
19853
+ * the BOX area.
19854
+ *
19855
+ * Membership alone cannot express "at least a third of it inside", which is
19856
+ * the bar an operator argues with — and the number already existed: the
19857
+ * engine computed it, the pipeline logged it, and then discarded it. It
19858
+ * matters most on the events that carry no track, where a rule has nothing
19859
+ * else to judge by.
19860
+ */
19861
+ zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
19862
+ /**
19863
+ * Present when this event describes a detection the TRACKER refused, so it
19864
+ * has no track and never will.
19865
+ *
19866
+ * A zone-scoped immediate rule asks "is there an animal in the flowerbed
19867
+ * NOW?"; tracking answers a different question ("is this the same subject as
19868
+ * before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
19869
+ * dog at 0.7729, 100% inside a watched zone, was refused three times in six
19870
+ * seconds with three different candidate ids — seven analysed frames in the
19871
+ * window, the subject in a handful of them, metres apart — and produced no
19872
+ * event at all.
19873
+ *
19874
+ * It is NAMED rather than merely implied by a missing `trackId`: an event
19875
+ * with no track and no reason is indistinguishable from a track whose media
19876
+ * went missing, and a consumer that asks this one for a best shot or a
19877
+ * history is asking for something that never existed.
19878
+ */
19879
+ spawnRefused: string().optional(),
19845
19880
  /** Omitted in slim projection. */
19846
19881
  state: TrackStateSchema.optional(),
19847
19882
  /**
@@ -20915,6 +20950,60 @@ var NativeCropResultSchema = object({
20915
20950
  */
20916
20951
  tier: _enum(["native", "ram-fullframe"]).optional()
20917
20952
  });
20953
+ /**
20954
+ * What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
20955
+ * kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
20956
+ *
20957
+ * - `keyFrame` — the track's clean best FULL frame at native width (capped by
20958
+ * the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
20959
+ * from, and what the detail plane's full-frame rung cuts from.
20960
+ * - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
20961
+ * window, cut by the runner at uncapped native resolution.
20962
+ *
20963
+ * The runner never interprets `trackId`; it is an opaque key the hub owns.
20964
+ */
20965
+ var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
20966
+ /**
20967
+ * Why a park did NOT happen. Every one is logged on the runner with
20968
+ * `tags: { deviceId }` and the handle's measured age, because a handle already
20969
+ * gone at park time IS the defect the 150–500 ms window exists to prevent —
20970
+ * never a reason to retry in a loop.
20971
+ *
20972
+ * - `handle-gone` — the native surface no longer resolves this handle (never
20973
+ * registered, past the lease bound, or the worker released it). `detail`
20974
+ * carries the runner's own miss reason.
20975
+ * - `encode-failed` — pixels resolved and the JPEG encode threw.
20976
+ */
20977
+ var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
20978
+ /** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
20979
+ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20980
+ parked: literal(true),
20981
+ /** The node holding the parcel — what a later retrieval must be pinned to. */
20982
+ nodeId: string(),
20983
+ width: number().int().positive(),
20984
+ height: number().int().positive(),
20985
+ /** JPEG bytes the parcel costs on the node. */
20986
+ bytes: number().int().nonnegative(),
20987
+ /** Whether this park replaced a parcel already held for the key. */
20988
+ replaced: boolean()
20989
+ }), object({
20990
+ parked: literal(false),
20991
+ nodeId: string(),
20992
+ reason: ParkRefusalSchema,
20993
+ /** Age of the handle at the park, on the runner's clock; null if unknown. */
20994
+ handleAgeMs: number().nullable(),
20995
+ detail: string().optional()
20996
+ })]);
20997
+ /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20998
+ var ParkedTrackFrameSchema = object({
20999
+ jpeg: string(),
21000
+ width: number().int().positive(),
21001
+ height: number().int().positive(),
21002
+ /** The frame instant the parcel shows (the caller's clock, echoed back). */
21003
+ timestamp: number(),
21004
+ /** When the node stored it (the node's clock). */
21005
+ parkedAt: number()
21006
+ });
20918
21007
  /** Parent detection context passed to `runDetailSubtree` — the crop's
20919
21008
  * originating detection, in FRAME-space coordinates. Reuses
20920
21009
  * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
@@ -21304,7 +21393,7 @@ var RunnerCameraConfigSchema = object({
21304
21393
  * - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
21305
21394
  * analyzer providers) running on decoded frames in this runner.
21306
21395
  * - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
21307
- * analytics, Frigate motion). The provider emits ProviderMotion
21396
+ * analytics). The provider emits ProviderMotion
21308
21397
  * events; the orchestrator forwards to `reportMotion`.
21309
21398
  */
21310
21399
  motionSources: MotionSourcesSchema.default(["analyzer"]),
@@ -21546,7 +21635,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21546
21635
  className: string(),
21547
21636
  /** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
21548
21637
  sourceDeviceId: number()
21549
- }), RunStatelessStepResultSchema, { kind: "mutation" });
21638
+ }), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
21639
+ deviceId: number(),
21640
+ /** Opaque to the runner — the hub's track id. */
21641
+ trackId: string(),
21642
+ kind: ParkedFrameKindSchema,
21643
+ handle: FrameHandleSchema,
21644
+ /** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
21645
+ bbox: NativeCropBboxSchema,
21646
+ /** Width cap for a full-frame park (the `keyFrame` native cap). */
21647
+ maxWidth: number().int().positive().optional(),
21648
+ /** The frame instant (caller's clock) — orders parks for one key. */
21649
+ timestamp: number()
21650
+ }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21651
+ deviceId: number(),
21652
+ trackId: string(),
21653
+ kind: ParkedFrameKindSchema
21654
+ }), ParkedTrackFrameSchema.nullable()), method(object({
21655
+ deviceId: number(),
21656
+ trackId: string()
21657
+ }), object({ released: number().int().nonnegative() }), { kind: "mutation" });
21550
21658
  var CameraPipelineConfigSchema = object({
21551
21659
  engine: PipelineEngineChoiceSchema.optional(),
21552
21660
  steps: array(PipelineStepInputSchema).readonly(),
@@ -24688,8 +24796,8 @@ onStatusChanged: { data: object({
24688
24796
  /**
24689
24797
  * Runtime-state slice — every provider that registers this cap
24690
24798
  * stores the same shape under `device.runtimeState[battery]`.
24691
- * Cross-provider uniformity: a Reolink Argus, a Frigate sensor
24692
- * proxy, an ONVIF battery cam all read/write the same keys.
24799
+ * Cross-provider uniformity: a Reolink Argus, a sensor proxy,
24800
+ * an ONVIF battery cam all read/write the same keys.
24693
24801
  * Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
24694
24802
  * via `device.runtimeState.getCapState('battery')` regardless of
24695
24803
  * the underlying driver.
@@ -24839,7 +24947,7 @@ var buttonCapability = {
24839
24947
  *
24840
24948
  * Implementations:
24841
24949
  * - Each camera-providing addon registers this cap natively per
24842
- * device (Reolink, Hikvision, RTSP, Frigate, ONVIF self).
24950
+ * device (Reolink, Hikvision, RTSP, ONVIF self).
24843
24951
  * - Returns a snapshot from the persisted device config blob — no
24844
24952
  * extra round-trip to the camera, no probing.
24845
24953
  * - The cap is admin-only (`auth: 'admin'`) — credentials must not
@@ -26931,7 +27039,7 @@ var AvailableIntegrationTypeSchema = object({
26931
27039
  * Which integration-marker cap the addon declared, so the wizard can
26932
27040
  * branch on CAP — never on addon name. `device-adoption` integrations
26933
27041
  * (Home Assistant, …) route through the broker step (Approach A);
26934
- * `device-provider` integrations (Reolink/Frigate/ONVIF) keep the
27042
+ * `device-provider` integrations (Reolink/ONVIF) keep the
26935
27043
  * legacy config → discovery flow.
26936
27044
  */
26937
27045
  kind: _enum(["device-adoption", "device-provider"]),
@@ -30355,13 +30463,31 @@ var RecordingManifestSchema = object({
30355
30463
  */
30356
30464
  playbackEndpoints: array(string())
30357
30465
  });
30358
- /** Recording storage usage for one camera (bytes on disk across all its
30359
- * profiles/subtrees/locations on this node). */
30466
+ /**
30467
+ * Recording storage usage for one camera — what the ARCHIVE holds for it,
30468
+ * across every profile and every resolvable location on this node.
30469
+ *
30470
+ * ## Archive vs residency, which is the whole point of this shape (D418)
30471
+ *
30472
+ * `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
30473
+ * the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
30474
+ * this camera writes to, so the two can be added up and compared.
30475
+ *
30476
+ * They were not always. Until D418 this row came from the recorder's in-RAM
30477
+ * `RecordingIndex`, which since D287 holds only the live tail plus the hours
30478
+ * somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
30479
+ * 60.5 GB and "oldest: three hours ago" on the same page as the volume row
30480
+ * that said otherwise, and two people read it as retention eating recent
30481
+ * footage. Residency is still reported, under `residentBytes` /
30482
+ * `residentOldestMs`, which answer a different question and say so.
30483
+ */
30360
30484
  var RecordingDeviceUsageSchema = object({
30361
30485
  deviceId: number(),
30486
+ /** Bytes the ARCHIVE holds for this camera on this node's resolvable
30487
+ * recordings locations. */
30362
30488
  usedBytes: number(),
30363
30489
  /**
30364
- * Start of this camera's OLDEST indexed segment, across every profile and
30490
+ * Start of this camera's OLDEST ARCHIVED segment, across every profile and
30365
30491
  * location — the "Oldest footage" column in Recordings → Storage, and the
30366
30492
  * only honest answer to "is retention actually holding?" per camera.
30367
30493
  *
@@ -30371,7 +30497,24 @@ var RecordingDeviceUsageSchema = object({
30371
30497
  * (types) and the addon ship on different trains, and the addon is usually
30372
30498
  * the later of the two.
30373
30499
  */
30374
- oldestMs: number().nullable().optional()
30500
+ oldestMs: number().nullable().optional(),
30501
+ /** Segments the archive holds for this camera — the "M" beside `usedBytes`.
30502
+ * OPTIONAL for the same train-skew reason as `oldestMs`. */
30503
+ segments: number().optional(),
30504
+ /**
30505
+ * RESIDENCY, not the archive: bytes the recorder process currently holds in
30506
+ * its RAM index — the live tail plus the hours a reader hydrated.
30507
+ *
30508
+ * It answers "what can be served without touching the disk", never "how much
30509
+ * footage this camera has". A UI that renders it must label it as such, and
30510
+ * must never total it as storage. OPTIONAL: a recorder predating D418 omits
30511
+ * it, and so does a node whose ledger could not answer.
30512
+ */
30513
+ residentBytes: number().optional(),
30514
+ /** The residency counterpart of `oldestMs` — the oldest segment currently in
30515
+ * RAM, which on a healthy recorder is minutes ago and means nothing about
30516
+ * retention. `null` = nothing resident. */
30517
+ residentOldestMs: number().nullable().optional()
30375
30518
  });
30376
30519
  /** Recording storage usage + capacity for one storage location. */
30377
30520
  var RecordingLocationUsageSchema = object({
@@ -30409,6 +30552,17 @@ var RecordingStorageUsageSchema = object({
30409
30552
  totalUsedBytes: number(),
30410
30553
  devices: array(RecordingDeviceUsageSchema),
30411
30554
  /**
30555
+ * WHERE `devices[]` came from, so an empty table is never mistaken for empty
30556
+ * disks (D418).
30557
+ *
30558
+ * `archive` = the durable hour ledger answered. `unavailable` = this node
30559
+ * declared no ledger and the recorder REFUSED rather than answering the
30560
+ * question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
30561
+ * zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
30562
+ * and its rows are residency.
30563
+ */
30564
+ devicesRead: _enum(["archive", "unavailable"]).optional(),
30565
+ /**
30412
30566
  * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
30413
30567
  * of the payload without it: the hub serves this method through a BAKED
30414
30568
  * router, so a hub whose framework train predates a change to this array
@@ -34288,7 +34442,7 @@ function toDeviceSummary(device, addonId) {
34288
34442
  };
34289
34443
  }
34290
34444
  /**
34291
- * Base class for device-provider addons (rtsp, onvif, frigate).
34445
+ * Base class for device-provider addons (rtsp, onvif).
34292
34446
  *
34293
34447
  * Provides default implementations for the common device-provider cap
34294
34448
  * methods (`start`, `stop`, `getStatus`, `getDevices`, `supportsDiscovery`,
@@ -38944,6 +39098,24 @@ Object.freeze({
38944
39098
  addonId: null,
38945
39099
  access: "view"
38946
39100
  },
39101
+ "pipelineRunner.getParkedTrackFrame": {
39102
+ capName: "pipeline-runner",
39103
+ capScope: "system",
39104
+ addonId: null,
39105
+ access: "view"
39106
+ },
39107
+ "pipelineRunner.parkTrackFrame": {
39108
+ capName: "pipeline-runner",
39109
+ capScope: "system",
39110
+ addonId: null,
39111
+ access: "create"
39112
+ },
39113
+ "pipelineRunner.releaseParkedTrackFrames": {
39114
+ capName: "pipeline-runner",
39115
+ capScope: "system",
39116
+ addonId: null,
39117
+ access: "create"
39118
+ },
38947
39119
  "pipelineRunner.reportMotion": {
38948
39120
  capName: "pipeline-runner",
38949
39121
  capScope: "system",
@@ -42221,6 +42393,21 @@ Object.freeze({
42221
42393
  form: "single",
42222
42394
  optional: false
42223
42395
  }],
42396
+ "pipelineRunner.getParkedTrackFrame": [{
42397
+ name: "deviceId",
42398
+ form: "single",
42399
+ optional: false
42400
+ }],
42401
+ "pipelineRunner.parkTrackFrame": [{
42402
+ name: "deviceId",
42403
+ form: "single",
42404
+ optional: false
42405
+ }],
42406
+ "pipelineRunner.releaseParkedTrackFrames": [{
42407
+ name: "deviceId",
42408
+ form: "single",
42409
+ optional: false
42410
+ }],
42224
42411
  "pipelineRunner.reportMotion": [{
42225
42412
  name: "deviceId",
42226
42413
  form: "single",
@@ -43119,7 +43306,7 @@ var PreviewTextField = string().max(200);
43119
43306
  * Whether the notification's preview is a STILL or a short animation.
43120
43307
  *
43121
43308
  * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
43122
- * rule)"* — his Scrypted advanced-notifier has a `gifRule`, and a ten-hour
43309
+ * rule)"* — the other rules already offer an animated preview, and a ten-hour
43123
43310
  * night reads better as three seconds of motion than as one frame of it. Both
43124
43311
  * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
43125
43312
  * simply applies it to a dozen frames sampled across the render and assembles
@@ -1,4 +1,4 @@
1
- //#region ../types/dist/event-category-CnLqLOKs.mjs
1
+ //#region ../types/dist/event-category-DAXzJeTX.mjs
2
2
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
3
3
  EventCategory["SystemBoot"] = "system.boot";
4
4
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -590,7 +590,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
590
590
  * issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
591
591
  */
592
592
  EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
593
- EventCategory["FrigateLiveEvent"] = "frigate.live-event";
594
593
  EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
595
594
  /**
596
595
  * Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
@@ -12896,7 +12895,7 @@ DeviceType.Camera;
12896
12895
  var SourceInfoSchema = object({
12897
12896
  /** Live dispatch key — mutable when the source system allows rename. */
12898
12897
  id: string(),
12899
- /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'frigate'. */
12898
+ /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
12900
12899
  system: string(),
12901
12900
  /** Immutable upstream identifier when available (HA `unique_id`, … ).
12902
12901
  * Used to detect rename when `id` changes. */
@@ -12909,7 +12908,7 @@ var SourceInfoSchema = object({
12909
12908
  /**
12910
12909
  * Build the synthetic SourceInfo every existing provider falls back to
12911
12910
  * when no upstream value has been persisted. Keeps non-migrated providers
12912
- * (Reolink / Hikvision / ONVIF / Frigate / RTSP) functional without code
12911
+ * (Reolink / Hikvision / ONVIF / RTSP) functional without code
12913
12912
  * changes — `id` reuses the CamStack stableId, `system` reuses the addon
12914
12913
  * id. Real upstream identity replaces this once a provider migrates and
12915
12914
  * calls `updateSourceInfo()` with concrete values.
@@ -13658,7 +13657,7 @@ var deviceProviderCapability = {
13658
13657
  * - `device-management.router.ts` (deleted in Phase 2)
13659
13658
  * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
13660
13659
  *
13661
- * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
13660
+ * All device provider addons (rtsp, onvif, …) are hub-local: they may
13662
13661
  * fork into separate processes but never run on remote cluster agents. Therefore:
13663
13662
  * - No nodeId routing needed — this is a pure hub singleton.
13664
13663
  * - The hub's DeviceRegistry is the single source of truth for all live devices.
@@ -17720,7 +17719,7 @@ var NcRuleInputSchema = object({
17720
17719
  * The measured seven-person arrival on device 590 spans 110 s with every
17721
17720
  * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
17722
17721
  * idle cutoff holds it as one and ends it when the arrival actually ends.
17723
- * 30 is Frigate's shipped value for the same decision.
17722
+ * 30 s is a widely shipped value for the same decision.
17724
17723
  *
17725
17724
  * ### What it replaces
17726
17725
  *
@@ -19818,6 +19817,13 @@ var ZoneCrossingSchema = object({
19818
19817
  /** Zone display name at crossing time (falls back to the id). */
19819
19818
  zoneName: string().optional()
19820
19819
  });
19820
+ /** One zone a box was stamped with, and how much of the BOX fell inside it. */
19821
+ var ZoneOverlapSchema = object({
19822
+ zoneId: string(),
19823
+ zoneName: string().optional(),
19824
+ /** Percentage of the BOX area inside the zone, 0–100. */
19825
+ overlapPct: number()
19826
+ });
19821
19827
  var ObjectEventSchema = object({
19822
19828
  ...BaseEventFields,
19823
19829
  kind: literal("object"),
@@ -19842,6 +19848,35 @@ var ObjectEventSchema = object({
19842
19848
  bbox: BoundingBoxSchema.optional(),
19843
19849
  /** Heavy JSON — omitted in slim projection. */
19844
19850
  zones: array(string()).readonly().optional(),
19851
+ /**
19852
+ * How far inside each stamped zone the box actually was, as a percentage of
19853
+ * the BOX area.
19854
+ *
19855
+ * Membership alone cannot express "at least a third of it inside", which is
19856
+ * the bar an operator argues with — and the number already existed: the
19857
+ * engine computed it, the pipeline logged it, and then discarded it. It
19858
+ * matters most on the events that carry no track, where a rule has nothing
19859
+ * else to judge by.
19860
+ */
19861
+ zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
19862
+ /**
19863
+ * Present when this event describes a detection the TRACKER refused, so it
19864
+ * has no track and never will.
19865
+ *
19866
+ * A zone-scoped immediate rule asks "is there an animal in the flowerbed
19867
+ * NOW?"; tracking answers a different question ("is this the same subject as
19868
+ * before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
19869
+ * dog at 0.7729, 100% inside a watched zone, was refused three times in six
19870
+ * seconds with three different candidate ids — seven analysed frames in the
19871
+ * window, the subject in a handful of them, metres apart — and produced no
19872
+ * event at all.
19873
+ *
19874
+ * It is NAMED rather than merely implied by a missing `trackId`: an event
19875
+ * with no track and no reason is indistinguishable from a track whose media
19876
+ * went missing, and a consumer that asks this one for a best shot or a
19877
+ * history is asking for something that never existed.
19878
+ */
19879
+ spawnRefused: string().optional(),
19845
19880
  /** Omitted in slim projection. */
19846
19881
  state: TrackStateSchema.optional(),
19847
19882
  /**
@@ -20915,6 +20950,60 @@ var NativeCropResultSchema = object({
20915
20950
  */
20916
20951
  tier: _enum(["native", "ram-fullframe"]).optional()
20917
20952
  });
20953
+ /**
20954
+ * What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
20955
+ * kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
20956
+ *
20957
+ * - `keyFrame` — the track's clean best FULL frame at native width (capped by
20958
+ * the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
20959
+ * from, and what the detail plane's full-frame rung cuts from.
20960
+ * - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
20961
+ * window, cut by the runner at uncapped native resolution.
20962
+ *
20963
+ * The runner never interprets `trackId`; it is an opaque key the hub owns.
20964
+ */
20965
+ var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
20966
+ /**
20967
+ * Why a park did NOT happen. Every one is logged on the runner with
20968
+ * `tags: { deviceId }` and the handle's measured age, because a handle already
20969
+ * gone at park time IS the defect the 150–500 ms window exists to prevent —
20970
+ * never a reason to retry in a loop.
20971
+ *
20972
+ * - `handle-gone` — the native surface no longer resolves this handle (never
20973
+ * registered, past the lease bound, or the worker released it). `detail`
20974
+ * carries the runner's own miss reason.
20975
+ * - `encode-failed` — pixels resolved and the JPEG encode threw.
20976
+ */
20977
+ var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
20978
+ /** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
20979
+ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20980
+ parked: literal(true),
20981
+ /** The node holding the parcel — what a later retrieval must be pinned to. */
20982
+ nodeId: string(),
20983
+ width: number().int().positive(),
20984
+ height: number().int().positive(),
20985
+ /** JPEG bytes the parcel costs on the node. */
20986
+ bytes: number().int().nonnegative(),
20987
+ /** Whether this park replaced a parcel already held for the key. */
20988
+ replaced: boolean()
20989
+ }), object({
20990
+ parked: literal(false),
20991
+ nodeId: string(),
20992
+ reason: ParkRefusalSchema,
20993
+ /** Age of the handle at the park, on the runner's clock; null if unknown. */
20994
+ handleAgeMs: number().nullable(),
20995
+ detail: string().optional()
20996
+ })]);
20997
+ /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20998
+ var ParkedTrackFrameSchema = object({
20999
+ jpeg: string(),
21000
+ width: number().int().positive(),
21001
+ height: number().int().positive(),
21002
+ /** The frame instant the parcel shows (the caller's clock, echoed back). */
21003
+ timestamp: number(),
21004
+ /** When the node stored it (the node's clock). */
21005
+ parkedAt: number()
21006
+ });
20918
21007
  /** Parent detection context passed to `runDetailSubtree` — the crop's
20919
21008
  * originating detection, in FRAME-space coordinates. Reuses
20920
21009
  * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
@@ -21304,7 +21393,7 @@ var RunnerCameraConfigSchema = object({
21304
21393
  * - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
21305
21394
  * analyzer providers) running on decoded frames in this runner.
21306
21395
  * - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
21307
- * analytics, Frigate motion). The provider emits ProviderMotion
21396
+ * analytics). The provider emits ProviderMotion
21308
21397
  * events; the orchestrator forwards to `reportMotion`.
21309
21398
  */
21310
21399
  motionSources: MotionSourcesSchema.default(["analyzer"]),
@@ -21546,7 +21635,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21546
21635
  className: string(),
21547
21636
  /** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
21548
21637
  sourceDeviceId: number()
21549
- }), RunStatelessStepResultSchema, { kind: "mutation" });
21638
+ }), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
21639
+ deviceId: number(),
21640
+ /** Opaque to the runner — the hub's track id. */
21641
+ trackId: string(),
21642
+ kind: ParkedFrameKindSchema,
21643
+ handle: FrameHandleSchema,
21644
+ /** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
21645
+ bbox: NativeCropBboxSchema,
21646
+ /** Width cap for a full-frame park (the `keyFrame` native cap). */
21647
+ maxWidth: number().int().positive().optional(),
21648
+ /** The frame instant (caller's clock) — orders parks for one key. */
21649
+ timestamp: number()
21650
+ }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21651
+ deviceId: number(),
21652
+ trackId: string(),
21653
+ kind: ParkedFrameKindSchema
21654
+ }), ParkedTrackFrameSchema.nullable()), method(object({
21655
+ deviceId: number(),
21656
+ trackId: string()
21657
+ }), object({ released: number().int().nonnegative() }), { kind: "mutation" });
21550
21658
  var CameraPipelineConfigSchema = object({
21551
21659
  engine: PipelineEngineChoiceSchema.optional(),
21552
21660
  steps: array(PipelineStepInputSchema).readonly(),
@@ -24688,8 +24796,8 @@ onStatusChanged: { data: object({
24688
24796
  /**
24689
24797
  * Runtime-state slice — every provider that registers this cap
24690
24798
  * stores the same shape under `device.runtimeState[battery]`.
24691
- * Cross-provider uniformity: a Reolink Argus, a Frigate sensor
24692
- * proxy, an ONVIF battery cam all read/write the same keys.
24799
+ * Cross-provider uniformity: a Reolink Argus, a sensor proxy,
24800
+ * an ONVIF battery cam all read/write the same keys.
24693
24801
  * Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
24694
24802
  * via `device.runtimeState.getCapState('battery')` regardless of
24695
24803
  * the underlying driver.
@@ -24839,7 +24947,7 @@ var buttonCapability = {
24839
24947
  *
24840
24948
  * Implementations:
24841
24949
  * - Each camera-providing addon registers this cap natively per
24842
- * device (Reolink, Hikvision, RTSP, Frigate, ONVIF self).
24950
+ * device (Reolink, Hikvision, RTSP, ONVIF self).
24843
24951
  * - Returns a snapshot from the persisted device config blob — no
24844
24952
  * extra round-trip to the camera, no probing.
24845
24953
  * - The cap is admin-only (`auth: 'admin'`) — credentials must not
@@ -26931,7 +27039,7 @@ var AvailableIntegrationTypeSchema = object({
26931
27039
  * Which integration-marker cap the addon declared, so the wizard can
26932
27040
  * branch on CAP — never on addon name. `device-adoption` integrations
26933
27041
  * (Home Assistant, …) route through the broker step (Approach A);
26934
- * `device-provider` integrations (Reolink/Frigate/ONVIF) keep the
27042
+ * `device-provider` integrations (Reolink/ONVIF) keep the
26935
27043
  * legacy config → discovery flow.
26936
27044
  */
26937
27045
  kind: _enum(["device-adoption", "device-provider"]),
@@ -30355,13 +30463,31 @@ var RecordingManifestSchema = object({
30355
30463
  */
30356
30464
  playbackEndpoints: array(string())
30357
30465
  });
30358
- /** Recording storage usage for one camera (bytes on disk across all its
30359
- * profiles/subtrees/locations on this node). */
30466
+ /**
30467
+ * Recording storage usage for one camera — what the ARCHIVE holds for it,
30468
+ * across every profile and every resolvable location on this node.
30469
+ *
30470
+ * ## Archive vs residency, which is the whole point of this shape (D418)
30471
+ *
30472
+ * `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
30473
+ * the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
30474
+ * this camera writes to, so the two can be added up and compared.
30475
+ *
30476
+ * They were not always. Until D418 this row came from the recorder's in-RAM
30477
+ * `RecordingIndex`, which since D287 holds only the live tail plus the hours
30478
+ * somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
30479
+ * 60.5 GB and "oldest: three hours ago" on the same page as the volume row
30480
+ * that said otherwise, and two people read it as retention eating recent
30481
+ * footage. Residency is still reported, under `residentBytes` /
30482
+ * `residentOldestMs`, which answer a different question and say so.
30483
+ */
30360
30484
  var RecordingDeviceUsageSchema = object({
30361
30485
  deviceId: number(),
30486
+ /** Bytes the ARCHIVE holds for this camera on this node's resolvable
30487
+ * recordings locations. */
30362
30488
  usedBytes: number(),
30363
30489
  /**
30364
- * Start of this camera's OLDEST indexed segment, across every profile and
30490
+ * Start of this camera's OLDEST ARCHIVED segment, across every profile and
30365
30491
  * location — the "Oldest footage" column in Recordings → Storage, and the
30366
30492
  * only honest answer to "is retention actually holding?" per camera.
30367
30493
  *
@@ -30371,7 +30497,24 @@ var RecordingDeviceUsageSchema = object({
30371
30497
  * (types) and the addon ship on different trains, and the addon is usually
30372
30498
  * the later of the two.
30373
30499
  */
30374
- oldestMs: number().nullable().optional()
30500
+ oldestMs: number().nullable().optional(),
30501
+ /** Segments the archive holds for this camera — the "M" beside `usedBytes`.
30502
+ * OPTIONAL for the same train-skew reason as `oldestMs`. */
30503
+ segments: number().optional(),
30504
+ /**
30505
+ * RESIDENCY, not the archive: bytes the recorder process currently holds in
30506
+ * its RAM index — the live tail plus the hours a reader hydrated.
30507
+ *
30508
+ * It answers "what can be served without touching the disk", never "how much
30509
+ * footage this camera has". A UI that renders it must label it as such, and
30510
+ * must never total it as storage. OPTIONAL: a recorder predating D418 omits
30511
+ * it, and so does a node whose ledger could not answer.
30512
+ */
30513
+ residentBytes: number().optional(),
30514
+ /** The residency counterpart of `oldestMs` — the oldest segment currently in
30515
+ * RAM, which on a healthy recorder is minutes ago and means nothing about
30516
+ * retention. `null` = nothing resident. */
30517
+ residentOldestMs: number().nullable().optional()
30375
30518
  });
30376
30519
  /** Recording storage usage + capacity for one storage location. */
30377
30520
  var RecordingLocationUsageSchema = object({
@@ -30409,6 +30552,17 @@ var RecordingStorageUsageSchema = object({
30409
30552
  totalUsedBytes: number(),
30410
30553
  devices: array(RecordingDeviceUsageSchema),
30411
30554
  /**
30555
+ * WHERE `devices[]` came from, so an empty table is never mistaken for empty
30556
+ * disks (D418).
30557
+ *
30558
+ * `archive` = the durable hour ledger answered. `unavailable` = this node
30559
+ * declared no ledger and the recorder REFUSED rather than answering the
30560
+ * question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
30561
+ * zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
30562
+ * and its rows are residency.
30563
+ */
30564
+ devicesRead: _enum(["archive", "unavailable"]).optional(),
30565
+ /**
30412
30566
  * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
30413
30567
  * of the payload without it: the hub serves this method through a BAKED
30414
30568
  * router, so a hub whose framework train predates a change to this array
@@ -34288,7 +34442,7 @@ function toDeviceSummary(device, addonId) {
34288
34442
  };
34289
34443
  }
34290
34444
  /**
34291
- * Base class for device-provider addons (rtsp, onvif, frigate).
34445
+ * Base class for device-provider addons (rtsp, onvif).
34292
34446
  *
34293
34447
  * Provides default implementations for the common device-provider cap
34294
34448
  * methods (`start`, `stop`, `getStatus`, `getDevices`, `supportsDiscovery`,
@@ -38944,6 +39098,24 @@ Object.freeze({
38944
39098
  addonId: null,
38945
39099
  access: "view"
38946
39100
  },
39101
+ "pipelineRunner.getParkedTrackFrame": {
39102
+ capName: "pipeline-runner",
39103
+ capScope: "system",
39104
+ addonId: null,
39105
+ access: "view"
39106
+ },
39107
+ "pipelineRunner.parkTrackFrame": {
39108
+ capName: "pipeline-runner",
39109
+ capScope: "system",
39110
+ addonId: null,
39111
+ access: "create"
39112
+ },
39113
+ "pipelineRunner.releaseParkedTrackFrames": {
39114
+ capName: "pipeline-runner",
39115
+ capScope: "system",
39116
+ addonId: null,
39117
+ access: "create"
39118
+ },
38947
39119
  "pipelineRunner.reportMotion": {
38948
39120
  capName: "pipeline-runner",
38949
39121
  capScope: "system",
@@ -42221,6 +42393,21 @@ Object.freeze({
42221
42393
  form: "single",
42222
42394
  optional: false
42223
42395
  }],
42396
+ "pipelineRunner.getParkedTrackFrame": [{
42397
+ name: "deviceId",
42398
+ form: "single",
42399
+ optional: false
42400
+ }],
42401
+ "pipelineRunner.parkTrackFrame": [{
42402
+ name: "deviceId",
42403
+ form: "single",
42404
+ optional: false
42405
+ }],
42406
+ "pipelineRunner.releaseParkedTrackFrames": [{
42407
+ name: "deviceId",
42408
+ form: "single",
42409
+ optional: false
42410
+ }],
42224
42411
  "pipelineRunner.reportMotion": [{
42225
42412
  name: "deviceId",
42226
42413
  form: "single",
@@ -43119,7 +43306,7 @@ var PreviewTextField = string().max(200);
43119
43306
  * Whether the notification's preview is a STILL or a short animation.
43120
43307
  *
43121
43308
  * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
43122
- * rule)"* — his Scrypted advanced-notifier has a `gifRule`, and a ten-hour
43309
+ * rule)"* — the other rules already offer an animated preview, and a ten-hour
43123
43310
  * night reads better as three seconds of motion than as one frame of it. Both
43124
43311
  * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
43125
43312
  * simply applies it to a dozen frames sampled across the render and assembles
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  //#endregion
6
- const require_dist = require("../dist-Ds45JTMq.js");
6
+ const require_dist = require("../dist-DAVF2Q_0.js");
7
7
  let node_crypto = require("node:crypto");
8
8
  //#region src/ha-export/topics.ts
9
9
  /**
@@ -2756,6 +2756,18 @@ function capEntitySpecs(capName) {
2756
2756
  return specs;
2757
2757
  }
2758
2758
  var CAPS_NOT_EXPORTED = [
2759
+ {
2760
+ cap: "network-link",
2761
+ reason: "Already exported, imperatively: the device catalog pushes a `Network link` sensor and a `Signal` percentage sensor for any device carrying the slice. A CAP_ENTITY_MAP row would produce a THIRD entity from the same slice, and the cap needs two entities from one slice (a link type and a percentage that is null on a wired link) which a single mapping row cannot express."
2762
+ },
2763
+ {
2764
+ cap: "recording-signal",
2765
+ reason: "A signal ABOUT the recorder, not a state of the device: it says whether this camera's footage is being written and why not when it is not. Home Assistant would carry it as a property of the camera the operator is looking at, and the camera catalog does not model the recorder — exporting it here would put a CamStack-internal reason string on a device entity nothing in HA can act on."
2766
+ },
2767
+ {
2768
+ cap: "navigation",
2769
+ reason: "Rooms, zones and a map for a robot: a spatial surface with no Home Assistant entity shape. HA models a vacuum as a `vacuum` entity with commands, which `vacuum-control` already provides; the map behind it is drawn by the CamStack UI and has no projection that survives being flattened into a state string."
2770
+ },
2759
2771
  {
2760
2772
  cap: "snapshot",
2761
2773
  reason: "Carried by the camera catalog as `last_image`; a second image entity from the cap would duplicate it."
@@ -1,4 +1,4 @@
1
- import { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-4WKeNf6a.mjs";
1
+ import { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-CBPvkoKj.mjs";
2
2
  import { createHmac, timingSafeEqual } from "node:crypto";
3
3
  //#region src/ha-export/topics.ts
4
4
  /**
@@ -2751,6 +2751,18 @@ function capEntitySpecs(capName) {
2751
2751
  return specs;
2752
2752
  }
2753
2753
  var CAPS_NOT_EXPORTED = [
2754
+ {
2755
+ cap: "network-link",
2756
+ reason: "Already exported, imperatively: the device catalog pushes a `Network link` sensor and a `Signal` percentage sensor for any device carrying the slice. A CAP_ENTITY_MAP row would produce a THIRD entity from the same slice, and the cap needs two entities from one slice (a link type and a percentage that is null on a wired link) which a single mapping row cannot express."
2757
+ },
2758
+ {
2759
+ cap: "recording-signal",
2760
+ reason: "A signal ABOUT the recorder, not a state of the device: it says whether this camera's footage is being written and why not when it is not. Home Assistant would carry it as a property of the camera the operator is looking at, and the camera catalog does not model the recorder — exporting it here would put a CamStack-internal reason string on a device entity nothing in HA can act on."
2761
+ },
2762
+ {
2763
+ cap: "navigation",
2764
+ reason: "Rooms, zones and a map for a robot: a spatial surface with no Home Assistant entity shape. HA models a vacuum as a `vacuum` entity with commands, which `vacuum-control` already provides; the map behind it is drawn by the CamStack UI and has no projection that survives being flattened into a state string."
2765
+ },
2754
2766
  {
2755
2767
  cap: "snapshot",
2756
2768
  reason: "Carried by the camera catalog as `last_image`; a second image entity from the cap would duplicate it."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homeassistant",
3
- "version": "1.2.105",
3
+ "version": "1.2.108",
4
4
  "description": "Home Assistant device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",