@camstack/addon-provider-wyze 0.2.94 → 0.2.96
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 +208 -23
- package/dist/addon.mjs +208 -23
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -31,7 +31,7 @@ let net = require("net");
|
|
|
31
31
|
net = __toESM(net, 1);
|
|
32
32
|
let node_child_process = require("node:child_process");
|
|
33
33
|
let node_tls = require("node:tls");
|
|
34
|
-
//#region ../types/dist/event-category-
|
|
34
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
35
35
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
36
36
|
EventCategory["SystemBoot"] = "system.boot";
|
|
37
37
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -623,7 +623,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
623
623
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
624
624
|
*/
|
|
625
625
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
626
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
627
626
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
628
627
|
/**
|
|
629
628
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -12657,7 +12656,7 @@ DeviceType.Camera;
|
|
|
12657
12656
|
var SourceInfoSchema = object({
|
|
12658
12657
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12659
12658
|
id: string(),
|
|
12660
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12659
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12661
12660
|
system: string(),
|
|
12662
12661
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12663
12662
|
* Used to detect rename when `id` changes. */
|
|
@@ -12670,7 +12669,7 @@ var SourceInfoSchema = object({
|
|
|
12670
12669
|
/**
|
|
12671
12670
|
* Build the synthetic SourceInfo every existing provider falls back to
|
|
12672
12671
|
* when no upstream value has been persisted. Keeps non-migrated providers
|
|
12673
|
-
* (Reolink / Hikvision / ONVIF /
|
|
12672
|
+
* (Reolink / Hikvision / ONVIF / RTSP) functional without code
|
|
12674
12673
|
* changes — `id` reuses the CamStack stableId, `system` reuses the addon
|
|
12675
12674
|
* id. Real upstream identity replaces this once a provider migrates and
|
|
12676
12675
|
* calls `updateSourceInfo()` with concrete values.
|
|
@@ -13349,7 +13348,7 @@ var deviceProviderCapability = {
|
|
|
13349
13348
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13350
13349
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13351
13350
|
*
|
|
13352
|
-
* All device provider addons (rtsp, onvif,
|
|
13351
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13353
13352
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13354
13353
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13355
13354
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17397,7 +17396,7 @@ var NcRuleInputSchema = object({
|
|
|
17397
17396
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17398
17397
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17399
17398
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17400
|
-
* 30 is
|
|
17399
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17401
17400
|
*
|
|
17402
17401
|
* ### What it replaces
|
|
17403
17402
|
*
|
|
@@ -19479,6 +19478,13 @@ var ZoneCrossingSchema = object({
|
|
|
19479
19478
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19480
19479
|
zoneName: string().optional()
|
|
19481
19480
|
});
|
|
19481
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19482
|
+
var ZoneOverlapSchema = object({
|
|
19483
|
+
zoneId: string(),
|
|
19484
|
+
zoneName: string().optional(),
|
|
19485
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19486
|
+
overlapPct: number()
|
|
19487
|
+
});
|
|
19482
19488
|
var ObjectEventSchema = object({
|
|
19483
19489
|
...BaseEventFields,
|
|
19484
19490
|
kind: literal("object"),
|
|
@@ -19503,6 +19509,35 @@ var ObjectEventSchema = object({
|
|
|
19503
19509
|
bbox: BoundingBoxSchema.optional(),
|
|
19504
19510
|
/** Heavy JSON — omitted in slim projection. */
|
|
19505
19511
|
zones: array(string()).readonly().optional(),
|
|
19512
|
+
/**
|
|
19513
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19514
|
+
* the BOX area.
|
|
19515
|
+
*
|
|
19516
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19517
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19518
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19519
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19520
|
+
* else to judge by.
|
|
19521
|
+
*/
|
|
19522
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19523
|
+
/**
|
|
19524
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19525
|
+
* has no track and never will.
|
|
19526
|
+
*
|
|
19527
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19528
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19529
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19530
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19531
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19532
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19533
|
+
* event at all.
|
|
19534
|
+
*
|
|
19535
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19536
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19537
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19538
|
+
* history is asking for something that never existed.
|
|
19539
|
+
*/
|
|
19540
|
+
spawnRefused: string().optional(),
|
|
19506
19541
|
/** Omitted in slim projection. */
|
|
19507
19542
|
state: TrackStateSchema.optional(),
|
|
19508
19543
|
/**
|
|
@@ -20576,6 +20611,60 @@ var NativeCropResultSchema = object({
|
|
|
20576
20611
|
*/
|
|
20577
20612
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20578
20613
|
});
|
|
20614
|
+
/**
|
|
20615
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20616
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20617
|
+
*
|
|
20618
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20619
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20620
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20621
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20622
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20623
|
+
*
|
|
20624
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20625
|
+
*/
|
|
20626
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20627
|
+
/**
|
|
20628
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20629
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20630
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20631
|
+
* never a reason to retry in a loop.
|
|
20632
|
+
*
|
|
20633
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20634
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20635
|
+
* carries the runner's own miss reason.
|
|
20636
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20637
|
+
*/
|
|
20638
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20639
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20640
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20641
|
+
parked: literal(true),
|
|
20642
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20643
|
+
nodeId: string(),
|
|
20644
|
+
width: number().int().positive(),
|
|
20645
|
+
height: number().int().positive(),
|
|
20646
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20647
|
+
bytes: number().int().nonnegative(),
|
|
20648
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20649
|
+
replaced: boolean()
|
|
20650
|
+
}), object({
|
|
20651
|
+
parked: literal(false),
|
|
20652
|
+
nodeId: string(),
|
|
20653
|
+
reason: ParkRefusalSchema,
|
|
20654
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20655
|
+
handleAgeMs: number().nullable(),
|
|
20656
|
+
detail: string().optional()
|
|
20657
|
+
})]);
|
|
20658
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20659
|
+
var ParkedTrackFrameSchema = object({
|
|
20660
|
+
jpeg: string(),
|
|
20661
|
+
width: number().int().positive(),
|
|
20662
|
+
height: number().int().positive(),
|
|
20663
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20664
|
+
timestamp: number(),
|
|
20665
|
+
/** When the node stored it (the node's clock). */
|
|
20666
|
+
parkedAt: number()
|
|
20667
|
+
});
|
|
20579
20668
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20580
20669
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20581
20670
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20965,7 +21054,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20965
21054
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20966
21055
|
* analyzer providers) running on decoded frames in this runner.
|
|
20967
21056
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20968
|
-
* analytics
|
|
21057
|
+
* analytics). The provider emits ProviderMotion
|
|
20969
21058
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20970
21059
|
*/
|
|
20971
21060
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -21207,7 +21296,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21207
21296
|
className: string(),
|
|
21208
21297
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
21209
21298
|
sourceDeviceId: number()
|
|
21210
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21299
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21300
|
+
deviceId: number(),
|
|
21301
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21302
|
+
trackId: string(),
|
|
21303
|
+
kind: ParkedFrameKindSchema,
|
|
21304
|
+
handle: FrameHandleSchema,
|
|
21305
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21306
|
+
bbox: NativeCropBboxSchema,
|
|
21307
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21308
|
+
maxWidth: number().int().positive().optional(),
|
|
21309
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21310
|
+
timestamp: number()
|
|
21311
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21312
|
+
deviceId: number(),
|
|
21313
|
+
trackId: string(),
|
|
21314
|
+
kind: ParkedFrameKindSchema
|
|
21315
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21316
|
+
deviceId: number(),
|
|
21317
|
+
trackId: string()
|
|
21318
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
21211
21319
|
var CameraPipelineConfigSchema = object({
|
|
21212
21320
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
21213
21321
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -24381,8 +24489,8 @@ onStatusChanged: { data: object({
|
|
|
24381
24489
|
/**
|
|
24382
24490
|
* Runtime-state slice — every provider that registers this cap
|
|
24383
24491
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
24384
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
24385
|
-
*
|
|
24492
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
24493
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
24386
24494
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
24387
24495
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
24388
24496
|
* the underlying driver.
|
|
@@ -24515,7 +24623,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
24515
24623
|
*
|
|
24516
24624
|
* Implementations:
|
|
24517
24625
|
* - Each camera-providing addon registers this cap natively per
|
|
24518
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24626
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
24519
24627
|
* - Returns a snapshot from the persisted device config blob — no
|
|
24520
24628
|
* extra round-trip to the camera, no probing.
|
|
24521
24629
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -26615,7 +26723,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
26615
26723
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
26616
26724
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
26617
26725
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
26618
|
-
* `device-provider` integrations (Reolink/
|
|
26726
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
26619
26727
|
* legacy config → discovery flow.
|
|
26620
26728
|
*/
|
|
26621
26729
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -30039,13 +30147,31 @@ var RecordingManifestSchema = object({
|
|
|
30039
30147
|
*/
|
|
30040
30148
|
playbackEndpoints: array(string())
|
|
30041
30149
|
});
|
|
30042
|
-
/**
|
|
30043
|
-
*
|
|
30150
|
+
/**
|
|
30151
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
30152
|
+
* across every profile and every resolvable location on this node.
|
|
30153
|
+
*
|
|
30154
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
30155
|
+
*
|
|
30156
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
30157
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
30158
|
+
* this camera writes to, so the two can be added up and compared.
|
|
30159
|
+
*
|
|
30160
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
30161
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
30162
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
30163
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
30164
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
30165
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
30166
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
30167
|
+
*/
|
|
30044
30168
|
var RecordingDeviceUsageSchema = object({
|
|
30045
30169
|
deviceId: number(),
|
|
30170
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
30171
|
+
* recordings locations. */
|
|
30046
30172
|
usedBytes: number(),
|
|
30047
30173
|
/**
|
|
30048
|
-
* Start of this camera's OLDEST
|
|
30174
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
30049
30175
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
30050
30176
|
* only honest answer to "is retention actually holding?" per camera.
|
|
30051
30177
|
*
|
|
@@ -30055,7 +30181,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
30055
30181
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
30056
30182
|
* the later of the two.
|
|
30057
30183
|
*/
|
|
30058
|
-
oldestMs: number().nullable().optional()
|
|
30184
|
+
oldestMs: number().nullable().optional(),
|
|
30185
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
30186
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
30187
|
+
segments: number().optional(),
|
|
30188
|
+
/**
|
|
30189
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
30190
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
30191
|
+
*
|
|
30192
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
30193
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
30194
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
30195
|
+
* it, and so does a node whose ledger could not answer.
|
|
30196
|
+
*/
|
|
30197
|
+
residentBytes: number().optional(),
|
|
30198
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
30199
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
30200
|
+
* retention. `null` = nothing resident. */
|
|
30201
|
+
residentOldestMs: number().nullable().optional()
|
|
30059
30202
|
});
|
|
30060
30203
|
/** Recording storage usage + capacity for one storage location. */
|
|
30061
30204
|
var RecordingLocationUsageSchema = object({
|
|
@@ -30093,6 +30236,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
30093
30236
|
totalUsedBytes: number(),
|
|
30094
30237
|
devices: array(RecordingDeviceUsageSchema),
|
|
30095
30238
|
/**
|
|
30239
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
30240
|
+
* disks (D418).
|
|
30241
|
+
*
|
|
30242
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
30243
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
30244
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
30245
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
30246
|
+
* and its rows are residency.
|
|
30247
|
+
*/
|
|
30248
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
30249
|
+
/**
|
|
30096
30250
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
30097
30251
|
* of the payload without it: the hub serves this method through a BAKED
|
|
30098
30252
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -33972,7 +34126,7 @@ function toDeviceSummary(device, addonId) {
|
|
|
33972
34126
|
};
|
|
33973
34127
|
}
|
|
33974
34128
|
/**
|
|
33975
|
-
* Base class for device-provider addons (rtsp, onvif
|
|
34129
|
+
* Base class for device-provider addons (rtsp, onvif).
|
|
33976
34130
|
*
|
|
33977
34131
|
* Provides default implementations for the common device-provider cap
|
|
33978
34132
|
* methods (`start`, `stop`, `getStatus`, `getDevices`, `supportsDiscovery`,
|
|
@@ -38628,6 +38782,24 @@ Object.freeze({
|
|
|
38628
38782
|
addonId: null,
|
|
38629
38783
|
access: "view"
|
|
38630
38784
|
},
|
|
38785
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
38786
|
+
capName: "pipeline-runner",
|
|
38787
|
+
capScope: "system",
|
|
38788
|
+
addonId: null,
|
|
38789
|
+
access: "view"
|
|
38790
|
+
},
|
|
38791
|
+
"pipelineRunner.parkTrackFrame": {
|
|
38792
|
+
capName: "pipeline-runner",
|
|
38793
|
+
capScope: "system",
|
|
38794
|
+
addonId: null,
|
|
38795
|
+
access: "create"
|
|
38796
|
+
},
|
|
38797
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
38798
|
+
capName: "pipeline-runner",
|
|
38799
|
+
capScope: "system",
|
|
38800
|
+
addonId: null,
|
|
38801
|
+
access: "create"
|
|
38802
|
+
},
|
|
38631
38803
|
"pipelineRunner.reportMotion": {
|
|
38632
38804
|
capName: "pipeline-runner",
|
|
38633
38805
|
capScope: "system",
|
|
@@ -41905,6 +42077,21 @@ Object.freeze({
|
|
|
41905
42077
|
form: "single",
|
|
41906
42078
|
optional: false
|
|
41907
42079
|
}],
|
|
42080
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
42081
|
+
name: "deviceId",
|
|
42082
|
+
form: "single",
|
|
42083
|
+
optional: false
|
|
42084
|
+
}],
|
|
42085
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
42086
|
+
name: "deviceId",
|
|
42087
|
+
form: "single",
|
|
42088
|
+
optional: false
|
|
42089
|
+
}],
|
|
42090
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
42091
|
+
name: "deviceId",
|
|
42092
|
+
form: "single",
|
|
42093
|
+
optional: false
|
|
42094
|
+
}],
|
|
41908
42095
|
"pipelineRunner.reportMotion": [{
|
|
41909
42096
|
name: "deviceId",
|
|
41910
42097
|
form: "single",
|
|
@@ -42596,7 +42783,7 @@ var PreviewTextField = string().max(200);
|
|
|
42596
42783
|
* Whether the notification's preview is a STILL or a short animation.
|
|
42597
42784
|
*
|
|
42598
42785
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
42599
|
-
* rule)"* —
|
|
42786
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
42600
42787
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
42601
42788
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
42602
42789
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -46344,8 +46531,7 @@ var WYZE_BITRATE = {
|
|
|
46344
46531
|
* `discoverDevices()` enumerates the Wyze cloud's camera list and the
|
|
46345
46532
|
* operator adopts a candidate (every P2P parameter auto-populated from
|
|
46346
46533
|
* the cloud blob). This manual form is the fallback for adding a camera
|
|
46347
|
-
* by its P2P parameters directly
|
|
46348
|
-
* `getCreateDeviceSettings`). The parameters come from the Wyze cloud
|
|
46534
|
+
* by its P2P parameters directly. The parameters come from the Wyze cloud
|
|
46349
46535
|
* (`mac`, `p2pId`/uid, `enr`, local `ip`, `productModel`), not a LAN scan.
|
|
46350
46536
|
*/
|
|
46351
46537
|
function buildCreationFormSchema() {
|
|
@@ -46847,8 +47033,7 @@ function buildWyzeAdoptionProvider(deps) {
|
|
|
46847
47033
|
/**
|
|
46848
47034
|
* Decode a raw Annex-B keyframe (H264 or H265) into a single JPEG via
|
|
46849
47035
|
* ffmpeg. The Wyze lib's `grabKeyframe()` yields raw Annex-B IDR bytes;
|
|
46850
|
-
* we pipe them through ffmpeg's image2 muxer to get a JPEG
|
|
46851
|
-
* scrypted-wyze-native's `takePicture`.
|
|
47036
|
+
* we pipe them through ffmpeg's image2 muxer to get a JPEG.
|
|
46852
47037
|
*
|
|
46853
47038
|
* Pure module: takes a `spawn`-like factory so the ffmpeg invocation is
|
|
46854
47039
|
* unit-testable and the addon can inject a resolved binary path.
|
|
@@ -46943,7 +47128,7 @@ async function keyframeToJpeg(annexB, opts) {
|
|
|
46943
47128
|
* fires `onServerClose`; we evict the cache so the next `ensure()`
|
|
46944
47129
|
* re-dials a fresh server.
|
|
46945
47130
|
* - idle teardown: on the last client disconnect, schedule an explicit
|
|
46946
|
-
* `close()` after a grace window
|
|
47131
|
+
* `close()` after a grace window.
|
|
46947
47132
|
*/
|
|
46948
47133
|
/** A console-shaped logger adapter the lib expects (`.log`/`.error`/…). */
|
|
46949
47134
|
function libLogger(logger) {
|
package/dist/addon.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { getCACertificates, setDefaultCACertificates } from "node:tls";
|
|
|
10
10
|
//#region \0rolldown/runtime.js
|
|
11
11
|
var __require$1 = /* @__PURE__ */ createRequire(import.meta.url);
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region ../types/dist/event-category-
|
|
13
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
14
14
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
15
15
|
EventCategory["SystemBoot"] = "system.boot";
|
|
16
16
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -602,7 +602,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
602
602
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
603
603
|
*/
|
|
604
604
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
605
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
606
605
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
607
606
|
/**
|
|
608
607
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -12636,7 +12635,7 @@ DeviceType.Camera;
|
|
|
12636
12635
|
var SourceInfoSchema = object({
|
|
12637
12636
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12638
12637
|
id: string(),
|
|
12639
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12638
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12640
12639
|
system: string(),
|
|
12641
12640
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12642
12641
|
* Used to detect rename when `id` changes. */
|
|
@@ -12649,7 +12648,7 @@ var SourceInfoSchema = object({
|
|
|
12649
12648
|
/**
|
|
12650
12649
|
* Build the synthetic SourceInfo every existing provider falls back to
|
|
12651
12650
|
* when no upstream value has been persisted. Keeps non-migrated providers
|
|
12652
|
-
* (Reolink / Hikvision / ONVIF /
|
|
12651
|
+
* (Reolink / Hikvision / ONVIF / RTSP) functional without code
|
|
12653
12652
|
* changes — `id` reuses the CamStack stableId, `system` reuses the addon
|
|
12654
12653
|
* id. Real upstream identity replaces this once a provider migrates and
|
|
12655
12654
|
* calls `updateSourceInfo()` with concrete values.
|
|
@@ -13328,7 +13327,7 @@ var deviceProviderCapability = {
|
|
|
13328
13327
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13329
13328
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13330
13329
|
*
|
|
13331
|
-
* All device provider addons (rtsp, onvif,
|
|
13330
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13332
13331
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13333
13332
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13334
13333
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17376,7 +17375,7 @@ var NcRuleInputSchema = object({
|
|
|
17376
17375
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17377
17376
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17378
17377
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17379
|
-
* 30 is
|
|
17378
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17380
17379
|
*
|
|
17381
17380
|
* ### What it replaces
|
|
17382
17381
|
*
|
|
@@ -19458,6 +19457,13 @@ var ZoneCrossingSchema = object({
|
|
|
19458
19457
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19459
19458
|
zoneName: string().optional()
|
|
19460
19459
|
});
|
|
19460
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19461
|
+
var ZoneOverlapSchema = object({
|
|
19462
|
+
zoneId: string(),
|
|
19463
|
+
zoneName: string().optional(),
|
|
19464
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19465
|
+
overlapPct: number()
|
|
19466
|
+
});
|
|
19461
19467
|
var ObjectEventSchema = object({
|
|
19462
19468
|
...BaseEventFields,
|
|
19463
19469
|
kind: literal("object"),
|
|
@@ -19482,6 +19488,35 @@ var ObjectEventSchema = object({
|
|
|
19482
19488
|
bbox: BoundingBoxSchema.optional(),
|
|
19483
19489
|
/** Heavy JSON — omitted in slim projection. */
|
|
19484
19490
|
zones: array(string()).readonly().optional(),
|
|
19491
|
+
/**
|
|
19492
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19493
|
+
* the BOX area.
|
|
19494
|
+
*
|
|
19495
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19496
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19497
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19498
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19499
|
+
* else to judge by.
|
|
19500
|
+
*/
|
|
19501
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19502
|
+
/**
|
|
19503
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19504
|
+
* has no track and never will.
|
|
19505
|
+
*
|
|
19506
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19507
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19508
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19509
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19510
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19511
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19512
|
+
* event at all.
|
|
19513
|
+
*
|
|
19514
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19515
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19516
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19517
|
+
* history is asking for something that never existed.
|
|
19518
|
+
*/
|
|
19519
|
+
spawnRefused: string().optional(),
|
|
19485
19520
|
/** Omitted in slim projection. */
|
|
19486
19521
|
state: TrackStateSchema.optional(),
|
|
19487
19522
|
/**
|
|
@@ -20555,6 +20590,60 @@ var NativeCropResultSchema = object({
|
|
|
20555
20590
|
*/
|
|
20556
20591
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20557
20592
|
});
|
|
20593
|
+
/**
|
|
20594
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20595
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20596
|
+
*
|
|
20597
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20598
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20599
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20600
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20601
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20602
|
+
*
|
|
20603
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20604
|
+
*/
|
|
20605
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20606
|
+
/**
|
|
20607
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20608
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20609
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20610
|
+
* never a reason to retry in a loop.
|
|
20611
|
+
*
|
|
20612
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20613
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20614
|
+
* carries the runner's own miss reason.
|
|
20615
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20616
|
+
*/
|
|
20617
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20618
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20619
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20620
|
+
parked: literal(true),
|
|
20621
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20622
|
+
nodeId: string(),
|
|
20623
|
+
width: number().int().positive(),
|
|
20624
|
+
height: number().int().positive(),
|
|
20625
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20626
|
+
bytes: number().int().nonnegative(),
|
|
20627
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20628
|
+
replaced: boolean()
|
|
20629
|
+
}), object({
|
|
20630
|
+
parked: literal(false),
|
|
20631
|
+
nodeId: string(),
|
|
20632
|
+
reason: ParkRefusalSchema,
|
|
20633
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20634
|
+
handleAgeMs: number().nullable(),
|
|
20635
|
+
detail: string().optional()
|
|
20636
|
+
})]);
|
|
20637
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20638
|
+
var ParkedTrackFrameSchema = object({
|
|
20639
|
+
jpeg: string(),
|
|
20640
|
+
width: number().int().positive(),
|
|
20641
|
+
height: number().int().positive(),
|
|
20642
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20643
|
+
timestamp: number(),
|
|
20644
|
+
/** When the node stored it (the node's clock). */
|
|
20645
|
+
parkedAt: number()
|
|
20646
|
+
});
|
|
20558
20647
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20559
20648
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20560
20649
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20944,7 +21033,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20944
21033
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20945
21034
|
* analyzer providers) running on decoded frames in this runner.
|
|
20946
21035
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20947
|
-
* analytics
|
|
21036
|
+
* analytics). The provider emits ProviderMotion
|
|
20948
21037
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20949
21038
|
*/
|
|
20950
21039
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -21186,7 +21275,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21186
21275
|
className: string(),
|
|
21187
21276
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
21188
21277
|
sourceDeviceId: number()
|
|
21189
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21278
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21279
|
+
deviceId: number(),
|
|
21280
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21281
|
+
trackId: string(),
|
|
21282
|
+
kind: ParkedFrameKindSchema,
|
|
21283
|
+
handle: FrameHandleSchema,
|
|
21284
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21285
|
+
bbox: NativeCropBboxSchema,
|
|
21286
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21287
|
+
maxWidth: number().int().positive().optional(),
|
|
21288
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21289
|
+
timestamp: number()
|
|
21290
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21291
|
+
deviceId: number(),
|
|
21292
|
+
trackId: string(),
|
|
21293
|
+
kind: ParkedFrameKindSchema
|
|
21294
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21295
|
+
deviceId: number(),
|
|
21296
|
+
trackId: string()
|
|
21297
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
21190
21298
|
var CameraPipelineConfigSchema = object({
|
|
21191
21299
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
21192
21300
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -24360,8 +24468,8 @@ onStatusChanged: { data: object({
|
|
|
24360
24468
|
/**
|
|
24361
24469
|
* Runtime-state slice — every provider that registers this cap
|
|
24362
24470
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
24363
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
24364
|
-
*
|
|
24471
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
24472
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
24365
24473
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
24366
24474
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
24367
24475
|
* the underlying driver.
|
|
@@ -24494,7 +24602,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
24494
24602
|
*
|
|
24495
24603
|
* Implementations:
|
|
24496
24604
|
* - Each camera-providing addon registers this cap natively per
|
|
24497
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24605
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
24498
24606
|
* - Returns a snapshot from the persisted device config blob — no
|
|
24499
24607
|
* extra round-trip to the camera, no probing.
|
|
24500
24608
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -26594,7 +26702,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
26594
26702
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
26595
26703
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
26596
26704
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
26597
|
-
* `device-provider` integrations (Reolink/
|
|
26705
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
26598
26706
|
* legacy config → discovery flow.
|
|
26599
26707
|
*/
|
|
26600
26708
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -30018,13 +30126,31 @@ var RecordingManifestSchema = object({
|
|
|
30018
30126
|
*/
|
|
30019
30127
|
playbackEndpoints: array(string())
|
|
30020
30128
|
});
|
|
30021
|
-
/**
|
|
30022
|
-
*
|
|
30129
|
+
/**
|
|
30130
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
30131
|
+
* across every profile and every resolvable location on this node.
|
|
30132
|
+
*
|
|
30133
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
30134
|
+
*
|
|
30135
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
30136
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
30137
|
+
* this camera writes to, so the two can be added up and compared.
|
|
30138
|
+
*
|
|
30139
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
30140
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
30141
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
30142
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
30143
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
30144
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
30145
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
30146
|
+
*/
|
|
30023
30147
|
var RecordingDeviceUsageSchema = object({
|
|
30024
30148
|
deviceId: number(),
|
|
30149
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
30150
|
+
* recordings locations. */
|
|
30025
30151
|
usedBytes: number(),
|
|
30026
30152
|
/**
|
|
30027
|
-
* Start of this camera's OLDEST
|
|
30153
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
30028
30154
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
30029
30155
|
* only honest answer to "is retention actually holding?" per camera.
|
|
30030
30156
|
*
|
|
@@ -30034,7 +30160,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
30034
30160
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
30035
30161
|
* the later of the two.
|
|
30036
30162
|
*/
|
|
30037
|
-
oldestMs: number().nullable().optional()
|
|
30163
|
+
oldestMs: number().nullable().optional(),
|
|
30164
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
30165
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
30166
|
+
segments: number().optional(),
|
|
30167
|
+
/**
|
|
30168
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
30169
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
30170
|
+
*
|
|
30171
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
30172
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
30173
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
30174
|
+
* it, and so does a node whose ledger could not answer.
|
|
30175
|
+
*/
|
|
30176
|
+
residentBytes: number().optional(),
|
|
30177
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
30178
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
30179
|
+
* retention. `null` = nothing resident. */
|
|
30180
|
+
residentOldestMs: number().nullable().optional()
|
|
30038
30181
|
});
|
|
30039
30182
|
/** Recording storage usage + capacity for one storage location. */
|
|
30040
30183
|
var RecordingLocationUsageSchema = object({
|
|
@@ -30072,6 +30215,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
30072
30215
|
totalUsedBytes: number(),
|
|
30073
30216
|
devices: array(RecordingDeviceUsageSchema),
|
|
30074
30217
|
/**
|
|
30218
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
30219
|
+
* disks (D418).
|
|
30220
|
+
*
|
|
30221
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
30222
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
30223
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
30224
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
30225
|
+
* and its rows are residency.
|
|
30226
|
+
*/
|
|
30227
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
30228
|
+
/**
|
|
30075
30229
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
30076
30230
|
* of the payload without it: the hub serves this method through a BAKED
|
|
30077
30231
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -33951,7 +34105,7 @@ function toDeviceSummary(device, addonId) {
|
|
|
33951
34105
|
};
|
|
33952
34106
|
}
|
|
33953
34107
|
/**
|
|
33954
|
-
* Base class for device-provider addons (rtsp, onvif
|
|
34108
|
+
* Base class for device-provider addons (rtsp, onvif).
|
|
33955
34109
|
*
|
|
33956
34110
|
* Provides default implementations for the common device-provider cap
|
|
33957
34111
|
* methods (`start`, `stop`, `getStatus`, `getDevices`, `supportsDiscovery`,
|
|
@@ -38607,6 +38761,24 @@ Object.freeze({
|
|
|
38607
38761
|
addonId: null,
|
|
38608
38762
|
access: "view"
|
|
38609
38763
|
},
|
|
38764
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
38765
|
+
capName: "pipeline-runner",
|
|
38766
|
+
capScope: "system",
|
|
38767
|
+
addonId: null,
|
|
38768
|
+
access: "view"
|
|
38769
|
+
},
|
|
38770
|
+
"pipelineRunner.parkTrackFrame": {
|
|
38771
|
+
capName: "pipeline-runner",
|
|
38772
|
+
capScope: "system",
|
|
38773
|
+
addonId: null,
|
|
38774
|
+
access: "create"
|
|
38775
|
+
},
|
|
38776
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
38777
|
+
capName: "pipeline-runner",
|
|
38778
|
+
capScope: "system",
|
|
38779
|
+
addonId: null,
|
|
38780
|
+
access: "create"
|
|
38781
|
+
},
|
|
38610
38782
|
"pipelineRunner.reportMotion": {
|
|
38611
38783
|
capName: "pipeline-runner",
|
|
38612
38784
|
capScope: "system",
|
|
@@ -41884,6 +42056,21 @@ Object.freeze({
|
|
|
41884
42056
|
form: "single",
|
|
41885
42057
|
optional: false
|
|
41886
42058
|
}],
|
|
42059
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
42060
|
+
name: "deviceId",
|
|
42061
|
+
form: "single",
|
|
42062
|
+
optional: false
|
|
42063
|
+
}],
|
|
42064
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
42065
|
+
name: "deviceId",
|
|
42066
|
+
form: "single",
|
|
42067
|
+
optional: false
|
|
42068
|
+
}],
|
|
42069
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
42070
|
+
name: "deviceId",
|
|
42071
|
+
form: "single",
|
|
42072
|
+
optional: false
|
|
42073
|
+
}],
|
|
41887
42074
|
"pipelineRunner.reportMotion": [{
|
|
41888
42075
|
name: "deviceId",
|
|
41889
42076
|
form: "single",
|
|
@@ -42575,7 +42762,7 @@ var PreviewTextField = string().max(200);
|
|
|
42575
42762
|
* Whether the notification's preview is a STILL or a short animation.
|
|
42576
42763
|
*
|
|
42577
42764
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
42578
|
-
* rule)"* —
|
|
42765
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
42579
42766
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
42580
42767
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
42581
42768
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -46323,8 +46510,7 @@ var WYZE_BITRATE = {
|
|
|
46323
46510
|
* `discoverDevices()` enumerates the Wyze cloud's camera list and the
|
|
46324
46511
|
* operator adopts a candidate (every P2P parameter auto-populated from
|
|
46325
46512
|
* the cloud blob). This manual form is the fallback for adding a camera
|
|
46326
|
-
* by its P2P parameters directly
|
|
46327
|
-
* `getCreateDeviceSettings`). The parameters come from the Wyze cloud
|
|
46513
|
+
* by its P2P parameters directly. The parameters come from the Wyze cloud
|
|
46328
46514
|
* (`mac`, `p2pId`/uid, `enr`, local `ip`, `productModel`), not a LAN scan.
|
|
46329
46515
|
*/
|
|
46330
46516
|
function buildCreationFormSchema() {
|
|
@@ -46826,8 +47012,7 @@ function buildWyzeAdoptionProvider(deps) {
|
|
|
46826
47012
|
/**
|
|
46827
47013
|
* Decode a raw Annex-B keyframe (H264 or H265) into a single JPEG via
|
|
46828
47014
|
* ffmpeg. The Wyze lib's `grabKeyframe()` yields raw Annex-B IDR bytes;
|
|
46829
|
-
* we pipe them through ffmpeg's image2 muxer to get a JPEG
|
|
46830
|
-
* scrypted-wyze-native's `takePicture`.
|
|
47015
|
+
* we pipe them through ffmpeg's image2 muxer to get a JPEG.
|
|
46831
47016
|
*
|
|
46832
47017
|
* Pure module: takes a `spawn`-like factory so the ffmpeg invocation is
|
|
46833
47018
|
* unit-testable and the addon can inject a resolved binary path.
|
|
@@ -46922,7 +47107,7 @@ async function keyframeToJpeg(annexB, opts) {
|
|
|
46922
47107
|
* fires `onServerClose`; we evict the cache so the next `ensure()`
|
|
46923
47108
|
* re-dials a fresh server.
|
|
46924
47109
|
* - idle teardown: on the last client disconnect, schedule an explicit
|
|
46925
|
-
* `close()` after a grace window
|
|
47110
|
+
* `close()` after a grace window.
|
|
46926
47111
|
*/
|
|
46927
47112
|
/** A console-shaped logger adapter the lib expects (`.log`/`.error`/…). */
|
|
46928
47113
|
function libLogger(logger) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-wyze",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.96",
|
|
4
4
|
"description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|