@camstack/addon-export-google 0.1.54 → 0.1.56

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.
@@ -77,7 +77,7 @@ function createApiDeviceGateway(deps) {
77
77
  };
78
78
  }
79
79
  //#endregion
80
- //#region ../types/dist/event-category-CnLqLOKs.mjs
80
+ //#region ../types/dist/event-category-DAXzJeTX.mjs
81
81
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
82
82
  EventCategory["SystemBoot"] = "system.boot";
83
83
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -669,7 +669,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
669
669
  * issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
670
670
  */
671
671
  EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
672
- EventCategory["FrigateLiveEvent"] = "frigate.live-event";
673
672
  EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
674
673
  /**
675
674
  * Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
@@ -12764,7 +12763,7 @@ DeviceType.Camera;
12764
12763
  var SourceInfoSchema = object({
12765
12764
  /** Live dispatch key — mutable when the source system allows rename. */
12766
12765
  id: string(),
12767
- /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'frigate'. */
12766
+ /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
12768
12767
  system: string(),
12769
12768
  /** Immutable upstream identifier when available (HA `unique_id`, … ).
12770
12769
  * Used to detect rename when `id` changes. */
@@ -13276,7 +13275,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
13276
13275
  * - `device-management.router.ts` (deleted in Phase 2)
13277
13276
  * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
13278
13277
  *
13279
- * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
13278
+ * All device provider addons (rtsp, onvif, …) are hub-local: they may
13280
13279
  * fork into separate processes but never run on remote cluster agents. Therefore:
13281
13280
  * - No nodeId routing needed — this is a pure hub singleton.
13282
13281
  * - The hub's DeviceRegistry is the single source of truth for all live devices.
@@ -17286,7 +17285,7 @@ var NcRuleInputSchema = object({
17286
17285
  * The measured seven-person arrival on device 590 spans 110 s with every
17287
17286
  * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
17288
17287
  * idle cutoff holds it as one and ends it when the arrival actually ends.
17289
- * 30 is Frigate's shipped value for the same decision.
17288
+ * 30 s is a widely shipped value for the same decision.
17290
17289
  *
17291
17290
  * ### What it replaces
17292
17291
  *
@@ -19344,6 +19343,13 @@ var ZoneCrossingSchema = object({
19344
19343
  /** Zone display name at crossing time (falls back to the id). */
19345
19344
  zoneName: string().optional()
19346
19345
  });
19346
+ /** One zone a box was stamped with, and how much of the BOX fell inside it. */
19347
+ var ZoneOverlapSchema = object({
19348
+ zoneId: string(),
19349
+ zoneName: string().optional(),
19350
+ /** Percentage of the BOX area inside the zone, 0–100. */
19351
+ overlapPct: number()
19352
+ });
19347
19353
  var ObjectEventSchema = object({
19348
19354
  ...BaseEventFields,
19349
19355
  kind: literal("object"),
@@ -19368,6 +19374,35 @@ var ObjectEventSchema = object({
19368
19374
  bbox: BoundingBoxSchema.optional(),
19369
19375
  /** Heavy JSON — omitted in slim projection. */
19370
19376
  zones: array(string()).readonly().optional(),
19377
+ /**
19378
+ * How far inside each stamped zone the box actually was, as a percentage of
19379
+ * the BOX area.
19380
+ *
19381
+ * Membership alone cannot express "at least a third of it inside", which is
19382
+ * the bar an operator argues with — and the number already existed: the
19383
+ * engine computed it, the pipeline logged it, and then discarded it. It
19384
+ * matters most on the events that carry no track, where a rule has nothing
19385
+ * else to judge by.
19386
+ */
19387
+ zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
19388
+ /**
19389
+ * Present when this event describes a detection the TRACKER refused, so it
19390
+ * has no track and never will.
19391
+ *
19392
+ * A zone-scoped immediate rule asks "is there an animal in the flowerbed
19393
+ * NOW?"; tracking answers a different question ("is this the same subject as
19394
+ * before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
19395
+ * dog at 0.7729, 100% inside a watched zone, was refused three times in six
19396
+ * seconds with three different candidate ids — seven analysed frames in the
19397
+ * window, the subject in a handful of them, metres apart — and produced no
19398
+ * event at all.
19399
+ *
19400
+ * It is NAMED rather than merely implied by a missing `trackId`: an event
19401
+ * with no track and no reason is indistinguishable from a track whose media
19402
+ * went missing, and a consumer that asks this one for a best shot or a
19403
+ * history is asking for something that never existed.
19404
+ */
19405
+ spawnRefused: string().optional(),
19371
19406
  /** Omitted in slim projection. */
19372
19407
  state: TrackStateSchema.optional(),
19373
19408
  /**
@@ -20441,6 +20476,60 @@ var NativeCropResultSchema = object({
20441
20476
  */
20442
20477
  tier: _enum(["native", "ram-fullframe"]).optional()
20443
20478
  });
20479
+ /**
20480
+ * What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
20481
+ * kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
20482
+ *
20483
+ * - `keyFrame` — the track's clean best FULL frame at native width (capped by
20484
+ * the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
20485
+ * from, and what the detail plane's full-frame rung cuts from.
20486
+ * - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
20487
+ * window, cut by the runner at uncapped native resolution.
20488
+ *
20489
+ * The runner never interprets `trackId`; it is an opaque key the hub owns.
20490
+ */
20491
+ var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
20492
+ /**
20493
+ * Why a park did NOT happen. Every one is logged on the runner with
20494
+ * `tags: { deviceId }` and the handle's measured age, because a handle already
20495
+ * gone at park time IS the defect the 150–500 ms window exists to prevent —
20496
+ * never a reason to retry in a loop.
20497
+ *
20498
+ * - `handle-gone` — the native surface no longer resolves this handle (never
20499
+ * registered, past the lease bound, or the worker released it). `detail`
20500
+ * carries the runner's own miss reason.
20501
+ * - `encode-failed` — pixels resolved and the JPEG encode threw.
20502
+ */
20503
+ var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
20504
+ /** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
20505
+ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20506
+ parked: literal(true),
20507
+ /** The node holding the parcel — what a later retrieval must be pinned to. */
20508
+ nodeId: string(),
20509
+ width: number().int().positive(),
20510
+ height: number().int().positive(),
20511
+ /** JPEG bytes the parcel costs on the node. */
20512
+ bytes: number().int().nonnegative(),
20513
+ /** Whether this park replaced a parcel already held for the key. */
20514
+ replaced: boolean()
20515
+ }), object({
20516
+ parked: literal(false),
20517
+ nodeId: string(),
20518
+ reason: ParkRefusalSchema,
20519
+ /** Age of the handle at the park, on the runner's clock; null if unknown. */
20520
+ handleAgeMs: number().nullable(),
20521
+ detail: string().optional()
20522
+ })]);
20523
+ /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20524
+ var ParkedTrackFrameSchema = object({
20525
+ jpeg: string(),
20526
+ width: number().int().positive(),
20527
+ height: number().int().positive(),
20528
+ /** The frame instant the parcel shows (the caller's clock, echoed back). */
20529
+ timestamp: number(),
20530
+ /** When the node stored it (the node's clock). */
20531
+ parkedAt: number()
20532
+ });
20444
20533
  /** Parent detection context passed to `runDetailSubtree` — the crop's
20445
20534
  * originating detection, in FRAME-space coordinates. Reuses
20446
20535
  * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
@@ -20830,7 +20919,7 @@ var RunnerCameraConfigSchema = object({
20830
20919
  * - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
20831
20920
  * analyzer providers) running on decoded frames in this runner.
20832
20921
  * - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
20833
- * analytics, Frigate motion). The provider emits ProviderMotion
20922
+ * analytics). The provider emits ProviderMotion
20834
20923
  * events; the orchestrator forwards to `reportMotion`.
20835
20924
  */
20836
20925
  motionSources: MotionSourcesSchema.default(["analyzer"]),
@@ -21072,7 +21161,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21072
21161
  className: string(),
21073
21162
  /** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
21074
21163
  sourceDeviceId: number()
21075
- }), RunStatelessStepResultSchema, { kind: "mutation" });
21164
+ }), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
21165
+ deviceId: number(),
21166
+ /** Opaque to the runner — the hub's track id. */
21167
+ trackId: string(),
21168
+ kind: ParkedFrameKindSchema,
21169
+ handle: FrameHandleSchema,
21170
+ /** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
21171
+ bbox: NativeCropBboxSchema,
21172
+ /** Width cap for a full-frame park (the `keyFrame` native cap). */
21173
+ maxWidth: number().int().positive().optional(),
21174
+ /** The frame instant (caller's clock) — orders parks for one key. */
21175
+ timestamp: number()
21176
+ }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21177
+ deviceId: number(),
21178
+ trackId: string(),
21179
+ kind: ParkedFrameKindSchema
21180
+ }), ParkedTrackFrameSchema.nullable()), method(object({
21181
+ deviceId: number(),
21182
+ trackId: string()
21183
+ }), object({ released: number().int().nonnegative() }), { kind: "mutation" });
21076
21184
  var CameraPipelineConfigSchema = object({
21077
21185
  engine: PipelineEngineChoiceSchema.optional(),
21078
21186
  steps: array(PipelineStepInputSchema).readonly(),
@@ -24013,7 +24121,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
24013
24121
  *
24014
24122
  * Implementations:
24015
24123
  * - Each camera-providing addon registers this cap natively per
24016
- * device (Reolink, Hikvision, RTSP, Frigate, ONVIF self).
24124
+ * device (Reolink, Hikvision, RTSP, ONVIF self).
24017
24125
  * - Returns a snapshot from the persisted device config blob — no
24018
24126
  * extra round-trip to the camera, no probing.
24019
24127
  * - The cap is admin-only (`auth: 'admin'`) — credentials must not
@@ -25399,7 +25507,7 @@ var AvailableIntegrationTypeSchema = object({
25399
25507
  * Which integration-marker cap the addon declared, so the wizard can
25400
25508
  * branch on CAP — never on addon name. `device-adoption` integrations
25401
25509
  * (Home Assistant, …) route through the broker step (Approach A);
25402
- * `device-provider` integrations (Reolink/Frigate/ONVIF) keep the
25510
+ * `device-provider` integrations (Reolink/ONVIF) keep the
25403
25511
  * legacy config → discovery flow.
25404
25512
  */
25405
25513
  kind: _enum(["device-adoption", "device-provider"]),
@@ -27956,13 +28064,31 @@ var RecordingManifestSchema = object({
27956
28064
  */
27957
28065
  playbackEndpoints: array(string())
27958
28066
  });
27959
- /** Recording storage usage for one camera (bytes on disk across all its
27960
- * profiles/subtrees/locations on this node). */
28067
+ /**
28068
+ * Recording storage usage for one camera — what the ARCHIVE holds for it,
28069
+ * across every profile and every resolvable location on this node.
28070
+ *
28071
+ * ## Archive vs residency, which is the whole point of this shape (D418)
28072
+ *
28073
+ * `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
28074
+ * the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
28075
+ * this camera writes to, so the two can be added up and compared.
28076
+ *
28077
+ * They were not always. Until D418 this row came from the recorder's in-RAM
28078
+ * `RecordingIndex`, which since D287 holds only the live tail plus the hours
28079
+ * somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
28080
+ * 60.5 GB and "oldest: three hours ago" on the same page as the volume row
28081
+ * that said otherwise, and two people read it as retention eating recent
28082
+ * footage. Residency is still reported, under `residentBytes` /
28083
+ * `residentOldestMs`, which answer a different question and say so.
28084
+ */
27961
28085
  var RecordingDeviceUsageSchema = object({
27962
28086
  deviceId: number(),
28087
+ /** Bytes the ARCHIVE holds for this camera on this node's resolvable
28088
+ * recordings locations. */
27963
28089
  usedBytes: number(),
27964
28090
  /**
27965
- * Start of this camera's OLDEST indexed segment, across every profile and
28091
+ * Start of this camera's OLDEST ARCHIVED segment, across every profile and
27966
28092
  * location — the "Oldest footage" column in Recordings → Storage, and the
27967
28093
  * only honest answer to "is retention actually holding?" per camera.
27968
28094
  *
@@ -27972,7 +28098,24 @@ var RecordingDeviceUsageSchema = object({
27972
28098
  * (types) and the addon ship on different trains, and the addon is usually
27973
28099
  * the later of the two.
27974
28100
  */
27975
- oldestMs: number().nullable().optional()
28101
+ oldestMs: number().nullable().optional(),
28102
+ /** Segments the archive holds for this camera — the "M" beside `usedBytes`.
28103
+ * OPTIONAL for the same train-skew reason as `oldestMs`. */
28104
+ segments: number().optional(),
28105
+ /**
28106
+ * RESIDENCY, not the archive: bytes the recorder process currently holds in
28107
+ * its RAM index — the live tail plus the hours a reader hydrated.
28108
+ *
28109
+ * It answers "what can be served without touching the disk", never "how much
28110
+ * footage this camera has". A UI that renders it must label it as such, and
28111
+ * must never total it as storage. OPTIONAL: a recorder predating D418 omits
28112
+ * it, and so does a node whose ledger could not answer.
28113
+ */
28114
+ residentBytes: number().optional(),
28115
+ /** The residency counterpart of `oldestMs` — the oldest segment currently in
28116
+ * RAM, which on a healthy recorder is minutes ago and means nothing about
28117
+ * retention. `null` = nothing resident. */
28118
+ residentOldestMs: number().nullable().optional()
27976
28119
  });
27977
28120
  /** Recording storage usage + capacity for one storage location. */
27978
28121
  var RecordingLocationUsageSchema = object({
@@ -28010,6 +28153,17 @@ var RecordingStorageUsageSchema = object({
28010
28153
  totalUsedBytes: number(),
28011
28154
  devices: array(RecordingDeviceUsageSchema),
28012
28155
  /**
28156
+ * WHERE `devices[]` came from, so an empty table is never mistaken for empty
28157
+ * disks (D418).
28158
+ *
28159
+ * `archive` = the durable hour ledger answered. `unavailable` = this node
28160
+ * declared no ledger and the recorder REFUSED rather than answering the
28161
+ * question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
28162
+ * zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
28163
+ * and its rows are residency.
28164
+ */
28165
+ devicesRead: _enum(["archive", "unavailable"]).optional(),
28166
+ /**
28013
28167
  * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
28014
28168
  * of the payload without it: the hub serves this method through a BAKED
28015
28169
  * router, so a hub whose framework train predates a change to this array
@@ -34404,6 +34558,24 @@ Object.freeze({
34404
34558
  addonId: null,
34405
34559
  access: "view"
34406
34560
  },
34561
+ "pipelineRunner.getParkedTrackFrame": {
34562
+ capName: "pipeline-runner",
34563
+ capScope: "system",
34564
+ addonId: null,
34565
+ access: "view"
34566
+ },
34567
+ "pipelineRunner.parkTrackFrame": {
34568
+ capName: "pipeline-runner",
34569
+ capScope: "system",
34570
+ addonId: null,
34571
+ access: "create"
34572
+ },
34573
+ "pipelineRunner.releaseParkedTrackFrames": {
34574
+ capName: "pipeline-runner",
34575
+ capScope: "system",
34576
+ addonId: null,
34577
+ access: "create"
34578
+ },
34407
34579
  "pipelineRunner.reportMotion": {
34408
34580
  capName: "pipeline-runner",
34409
34581
  capScope: "system",
@@ -37681,6 +37853,21 @@ Object.freeze({
37681
37853
  form: "single",
37682
37854
  optional: false
37683
37855
  }],
37856
+ "pipelineRunner.getParkedTrackFrame": [{
37857
+ name: "deviceId",
37858
+ form: "single",
37859
+ optional: false
37860
+ }],
37861
+ "pipelineRunner.parkTrackFrame": [{
37862
+ name: "deviceId",
37863
+ form: "single",
37864
+ optional: false
37865
+ }],
37866
+ "pipelineRunner.releaseParkedTrackFrames": [{
37867
+ name: "deviceId",
37868
+ form: "single",
37869
+ optional: false
37870
+ }],
37684
37871
  "pipelineRunner.reportMotion": [{
37685
37872
  name: "deviceId",
37686
37873
  form: "single",
@@ -38372,7 +38559,7 @@ var PreviewTextField = string().max(200);
38372
38559
  * Whether the notification's preview is a STILL or a short animation.
38373
38560
  *
38374
38561
  * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
38375
- * rule)"* — his Scrypted advanced-notifier has a `gifRule`, and a ten-hour
38562
+ * rule)"* — the other rules already offer an animated preview, and a ten-hour
38376
38563
  * night reads better as three seconds of motion than as one frame of it. Both
38377
38564
  * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
38378
38565
  * simply applies it to a dozen frames sampled across the render and assembles
@@ -73,7 +73,7 @@ function createApiDeviceGateway(deps) {
73
73
  };
74
74
  }
75
75
  //#endregion
76
- //#region ../types/dist/event-category-CnLqLOKs.mjs
76
+ //#region ../types/dist/event-category-DAXzJeTX.mjs
77
77
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
78
78
  EventCategory["SystemBoot"] = "system.boot";
79
79
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -665,7 +665,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
665
665
  * issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
666
666
  */
667
667
  EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
668
- EventCategory["FrigateLiveEvent"] = "frigate.live-event";
669
668
  EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
670
669
  /**
671
670
  * Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
@@ -12760,7 +12759,7 @@ DeviceType.Camera;
12760
12759
  var SourceInfoSchema = object({
12761
12760
  /** Live dispatch key — mutable when the source system allows rename. */
12762
12761
  id: string(),
12763
- /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'frigate'. */
12762
+ /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
12764
12763
  system: string(),
12765
12764
  /** Immutable upstream identifier when available (HA `unique_id`, … ).
12766
12765
  * Used to detect rename when `id` changes. */
@@ -13272,7 +13271,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
13272
13271
  * - `device-management.router.ts` (deleted in Phase 2)
13273
13272
  * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
13274
13273
  *
13275
- * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
13274
+ * All device provider addons (rtsp, onvif, …) are hub-local: they may
13276
13275
  * fork into separate processes but never run on remote cluster agents. Therefore:
13277
13276
  * - No nodeId routing needed — this is a pure hub singleton.
13278
13277
  * - The hub's DeviceRegistry is the single source of truth for all live devices.
@@ -17282,7 +17281,7 @@ var NcRuleInputSchema = object({
17282
17281
  * The measured seven-person arrival on device 590 spans 110 s with every
17283
17282
  * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
17284
17283
  * idle cutoff holds it as one and ends it when the arrival actually ends.
17285
- * 30 is Frigate's shipped value for the same decision.
17284
+ * 30 s is a widely shipped value for the same decision.
17286
17285
  *
17287
17286
  * ### What it replaces
17288
17287
  *
@@ -19340,6 +19339,13 @@ var ZoneCrossingSchema = object({
19340
19339
  /** Zone display name at crossing time (falls back to the id). */
19341
19340
  zoneName: string().optional()
19342
19341
  });
19342
+ /** One zone a box was stamped with, and how much of the BOX fell inside it. */
19343
+ var ZoneOverlapSchema = object({
19344
+ zoneId: string(),
19345
+ zoneName: string().optional(),
19346
+ /** Percentage of the BOX area inside the zone, 0–100. */
19347
+ overlapPct: number()
19348
+ });
19343
19349
  var ObjectEventSchema = object({
19344
19350
  ...BaseEventFields,
19345
19351
  kind: literal("object"),
@@ -19364,6 +19370,35 @@ var ObjectEventSchema = object({
19364
19370
  bbox: BoundingBoxSchema.optional(),
19365
19371
  /** Heavy JSON — omitted in slim projection. */
19366
19372
  zones: array(string()).readonly().optional(),
19373
+ /**
19374
+ * How far inside each stamped zone the box actually was, as a percentage of
19375
+ * the BOX area.
19376
+ *
19377
+ * Membership alone cannot express "at least a third of it inside", which is
19378
+ * the bar an operator argues with — and the number already existed: the
19379
+ * engine computed it, the pipeline logged it, and then discarded it. It
19380
+ * matters most on the events that carry no track, where a rule has nothing
19381
+ * else to judge by.
19382
+ */
19383
+ zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
19384
+ /**
19385
+ * Present when this event describes a detection the TRACKER refused, so it
19386
+ * has no track and never will.
19387
+ *
19388
+ * A zone-scoped immediate rule asks "is there an animal in the flowerbed
19389
+ * NOW?"; tracking answers a different question ("is this the same subject as
19390
+ * before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
19391
+ * dog at 0.7729, 100% inside a watched zone, was refused three times in six
19392
+ * seconds with three different candidate ids — seven analysed frames in the
19393
+ * window, the subject in a handful of them, metres apart — and produced no
19394
+ * event at all.
19395
+ *
19396
+ * It is NAMED rather than merely implied by a missing `trackId`: an event
19397
+ * with no track and no reason is indistinguishable from a track whose media
19398
+ * went missing, and a consumer that asks this one for a best shot or a
19399
+ * history is asking for something that never existed.
19400
+ */
19401
+ spawnRefused: string().optional(),
19367
19402
  /** Omitted in slim projection. */
19368
19403
  state: TrackStateSchema.optional(),
19369
19404
  /**
@@ -20437,6 +20472,60 @@ var NativeCropResultSchema = object({
20437
20472
  */
20438
20473
  tier: _enum(["native", "ram-fullframe"]).optional()
20439
20474
  });
20475
+ /**
20476
+ * What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
20477
+ * kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
20478
+ *
20479
+ * - `keyFrame` — the track's clean best FULL frame at native width (capped by
20480
+ * the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
20481
+ * from, and what the detail plane's full-frame rung cuts from.
20482
+ * - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
20483
+ * window, cut by the runner at uncapped native resolution.
20484
+ *
20485
+ * The runner never interprets `trackId`; it is an opaque key the hub owns.
20486
+ */
20487
+ var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
20488
+ /**
20489
+ * Why a park did NOT happen. Every one is logged on the runner with
20490
+ * `tags: { deviceId }` and the handle's measured age, because a handle already
20491
+ * gone at park time IS the defect the 150–500 ms window exists to prevent —
20492
+ * never a reason to retry in a loop.
20493
+ *
20494
+ * - `handle-gone` — the native surface no longer resolves this handle (never
20495
+ * registered, past the lease bound, or the worker released it). `detail`
20496
+ * carries the runner's own miss reason.
20497
+ * - `encode-failed` — pixels resolved and the JPEG encode threw.
20498
+ */
20499
+ var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
20500
+ /** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
20501
+ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20502
+ parked: literal(true),
20503
+ /** The node holding the parcel — what a later retrieval must be pinned to. */
20504
+ nodeId: string(),
20505
+ width: number().int().positive(),
20506
+ height: number().int().positive(),
20507
+ /** JPEG bytes the parcel costs on the node. */
20508
+ bytes: number().int().nonnegative(),
20509
+ /** Whether this park replaced a parcel already held for the key. */
20510
+ replaced: boolean()
20511
+ }), object({
20512
+ parked: literal(false),
20513
+ nodeId: string(),
20514
+ reason: ParkRefusalSchema,
20515
+ /** Age of the handle at the park, on the runner's clock; null if unknown. */
20516
+ handleAgeMs: number().nullable(),
20517
+ detail: string().optional()
20518
+ })]);
20519
+ /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20520
+ var ParkedTrackFrameSchema = object({
20521
+ jpeg: string(),
20522
+ width: number().int().positive(),
20523
+ height: number().int().positive(),
20524
+ /** The frame instant the parcel shows (the caller's clock, echoed back). */
20525
+ timestamp: number(),
20526
+ /** When the node stored it (the node's clock). */
20527
+ parkedAt: number()
20528
+ });
20440
20529
  /** Parent detection context passed to `runDetailSubtree` — the crop's
20441
20530
  * originating detection, in FRAME-space coordinates. Reuses
20442
20531
  * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
@@ -20826,7 +20915,7 @@ var RunnerCameraConfigSchema = object({
20826
20915
  * - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
20827
20916
  * analyzer providers) running on decoded frames in this runner.
20828
20917
  * - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
20829
- * analytics, Frigate motion). The provider emits ProviderMotion
20918
+ * analytics). The provider emits ProviderMotion
20830
20919
  * events; the orchestrator forwards to `reportMotion`.
20831
20920
  */
20832
20921
  motionSources: MotionSourcesSchema.default(["analyzer"]),
@@ -21068,7 +21157,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21068
21157
  className: string(),
21069
21158
  /** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
21070
21159
  sourceDeviceId: number()
21071
- }), RunStatelessStepResultSchema, { kind: "mutation" });
21160
+ }), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
21161
+ deviceId: number(),
21162
+ /** Opaque to the runner — the hub's track id. */
21163
+ trackId: string(),
21164
+ kind: ParkedFrameKindSchema,
21165
+ handle: FrameHandleSchema,
21166
+ /** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
21167
+ bbox: NativeCropBboxSchema,
21168
+ /** Width cap for a full-frame park (the `keyFrame` native cap). */
21169
+ maxWidth: number().int().positive().optional(),
21170
+ /** The frame instant (caller's clock) — orders parks for one key. */
21171
+ timestamp: number()
21172
+ }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21173
+ deviceId: number(),
21174
+ trackId: string(),
21175
+ kind: ParkedFrameKindSchema
21176
+ }), ParkedTrackFrameSchema.nullable()), method(object({
21177
+ deviceId: number(),
21178
+ trackId: string()
21179
+ }), object({ released: number().int().nonnegative() }), { kind: "mutation" });
21072
21180
  var CameraPipelineConfigSchema = object({
21073
21181
  engine: PipelineEngineChoiceSchema.optional(),
21074
21182
  steps: array(PipelineStepInputSchema).readonly(),
@@ -24009,7 +24117,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
24009
24117
  *
24010
24118
  * Implementations:
24011
24119
  * - Each camera-providing addon registers this cap natively per
24012
- * device (Reolink, Hikvision, RTSP, Frigate, ONVIF self).
24120
+ * device (Reolink, Hikvision, RTSP, ONVIF self).
24013
24121
  * - Returns a snapshot from the persisted device config blob — no
24014
24122
  * extra round-trip to the camera, no probing.
24015
24123
  * - The cap is admin-only (`auth: 'admin'`) — credentials must not
@@ -25395,7 +25503,7 @@ var AvailableIntegrationTypeSchema = object({
25395
25503
  * Which integration-marker cap the addon declared, so the wizard can
25396
25504
  * branch on CAP — never on addon name. `device-adoption` integrations
25397
25505
  * (Home Assistant, …) route through the broker step (Approach A);
25398
- * `device-provider` integrations (Reolink/Frigate/ONVIF) keep the
25506
+ * `device-provider` integrations (Reolink/ONVIF) keep the
25399
25507
  * legacy config → discovery flow.
25400
25508
  */
25401
25509
  kind: _enum(["device-adoption", "device-provider"]),
@@ -27952,13 +28060,31 @@ var RecordingManifestSchema = object({
27952
28060
  */
27953
28061
  playbackEndpoints: array(string())
27954
28062
  });
27955
- /** Recording storage usage for one camera (bytes on disk across all its
27956
- * profiles/subtrees/locations on this node). */
28063
+ /**
28064
+ * Recording storage usage for one camera — what the ARCHIVE holds for it,
28065
+ * across every profile and every resolvable location on this node.
28066
+ *
28067
+ * ## Archive vs residency, which is the whole point of this shape (D418)
28068
+ *
28069
+ * `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
28070
+ * the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
28071
+ * this camera writes to, so the two can be added up and compared.
28072
+ *
28073
+ * They were not always. Until D418 this row came from the recorder's in-RAM
28074
+ * `RecordingIndex`, which since D287 holds only the live tail plus the hours
28075
+ * somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
28076
+ * 60.5 GB and "oldest: three hours ago" on the same page as the volume row
28077
+ * that said otherwise, and two people read it as retention eating recent
28078
+ * footage. Residency is still reported, under `residentBytes` /
28079
+ * `residentOldestMs`, which answer a different question and say so.
28080
+ */
27957
28081
  var RecordingDeviceUsageSchema = object({
27958
28082
  deviceId: number(),
28083
+ /** Bytes the ARCHIVE holds for this camera on this node's resolvable
28084
+ * recordings locations. */
27959
28085
  usedBytes: number(),
27960
28086
  /**
27961
- * Start of this camera's OLDEST indexed segment, across every profile and
28087
+ * Start of this camera's OLDEST ARCHIVED segment, across every profile and
27962
28088
  * location — the "Oldest footage" column in Recordings → Storage, and the
27963
28089
  * only honest answer to "is retention actually holding?" per camera.
27964
28090
  *
@@ -27968,7 +28094,24 @@ var RecordingDeviceUsageSchema = object({
27968
28094
  * (types) and the addon ship on different trains, and the addon is usually
27969
28095
  * the later of the two.
27970
28096
  */
27971
- oldestMs: number().nullable().optional()
28097
+ oldestMs: number().nullable().optional(),
28098
+ /** Segments the archive holds for this camera — the "M" beside `usedBytes`.
28099
+ * OPTIONAL for the same train-skew reason as `oldestMs`. */
28100
+ segments: number().optional(),
28101
+ /**
28102
+ * RESIDENCY, not the archive: bytes the recorder process currently holds in
28103
+ * its RAM index — the live tail plus the hours a reader hydrated.
28104
+ *
28105
+ * It answers "what can be served without touching the disk", never "how much
28106
+ * footage this camera has". A UI that renders it must label it as such, and
28107
+ * must never total it as storage. OPTIONAL: a recorder predating D418 omits
28108
+ * it, and so does a node whose ledger could not answer.
28109
+ */
28110
+ residentBytes: number().optional(),
28111
+ /** The residency counterpart of `oldestMs` — the oldest segment currently in
28112
+ * RAM, which on a healthy recorder is minutes ago and means nothing about
28113
+ * retention. `null` = nothing resident. */
28114
+ residentOldestMs: number().nullable().optional()
27972
28115
  });
27973
28116
  /** Recording storage usage + capacity for one storage location. */
27974
28117
  var RecordingLocationUsageSchema = object({
@@ -28006,6 +28149,17 @@ var RecordingStorageUsageSchema = object({
28006
28149
  totalUsedBytes: number(),
28007
28150
  devices: array(RecordingDeviceUsageSchema),
28008
28151
  /**
28152
+ * WHERE `devices[]` came from, so an empty table is never mistaken for empty
28153
+ * disks (D418).
28154
+ *
28155
+ * `archive` = the durable hour ledger answered. `unavailable` = this node
28156
+ * declared no ledger and the recorder REFUSED rather than answering the
28157
+ * question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
28158
+ * zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
28159
+ * and its rows are residency.
28160
+ */
28161
+ devicesRead: _enum(["archive", "unavailable"]).optional(),
28162
+ /**
28009
28163
  * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
28010
28164
  * of the payload without it: the hub serves this method through a BAKED
28011
28165
  * router, so a hub whose framework train predates a change to this array
@@ -34400,6 +34554,24 @@ Object.freeze({
34400
34554
  addonId: null,
34401
34555
  access: "view"
34402
34556
  },
34557
+ "pipelineRunner.getParkedTrackFrame": {
34558
+ capName: "pipeline-runner",
34559
+ capScope: "system",
34560
+ addonId: null,
34561
+ access: "view"
34562
+ },
34563
+ "pipelineRunner.parkTrackFrame": {
34564
+ capName: "pipeline-runner",
34565
+ capScope: "system",
34566
+ addonId: null,
34567
+ access: "create"
34568
+ },
34569
+ "pipelineRunner.releaseParkedTrackFrames": {
34570
+ capName: "pipeline-runner",
34571
+ capScope: "system",
34572
+ addonId: null,
34573
+ access: "create"
34574
+ },
34403
34575
  "pipelineRunner.reportMotion": {
34404
34576
  capName: "pipeline-runner",
34405
34577
  capScope: "system",
@@ -37677,6 +37849,21 @@ Object.freeze({
37677
37849
  form: "single",
37678
37850
  optional: false
37679
37851
  }],
37852
+ "pipelineRunner.getParkedTrackFrame": [{
37853
+ name: "deviceId",
37854
+ form: "single",
37855
+ optional: false
37856
+ }],
37857
+ "pipelineRunner.parkTrackFrame": [{
37858
+ name: "deviceId",
37859
+ form: "single",
37860
+ optional: false
37861
+ }],
37862
+ "pipelineRunner.releaseParkedTrackFrames": [{
37863
+ name: "deviceId",
37864
+ form: "single",
37865
+ optional: false
37866
+ }],
37680
37867
  "pipelineRunner.reportMotion": [{
37681
37868
  name: "deviceId",
37682
37869
  form: "single",
@@ -38368,7 +38555,7 @@ var PreviewTextField = string().max(200);
38368
38555
  * Whether the notification's preview is a STILL or a short animation.
38369
38556
  *
38370
38557
  * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
38371
- * rule)"* — his Scrypted advanced-notifier has a `gifRule`, and a ten-hour
38558
+ * rule)"* — the other rules already offer an animated preview, and a ten-hour
38372
38559
  * night reads better as three seconds of motion than as one frame of it. Both
38373
38560
  * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
38374
38561
  * simply applies it to a dozen frames sampled across the render and assembles
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-google",
3
- "version": "0.1.54",
3
+ "version": "0.1.56",
4
4
  "description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
5
5
  "keywords": [
6
6
  "camstack",