@camstack/addon-provider-wyze 0.1.20 → 0.1.22
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 +220 -15
- package/dist/addon.mjs +220 -15
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -30,7 +30,7 @@ let events = require("events");
|
|
|
30
30
|
let net = require("net");
|
|
31
31
|
net = __toESM(net, 1);
|
|
32
32
|
let node_child_process = require("node:child_process");
|
|
33
|
-
//#region ../types/dist/event-category-
|
|
33
|
+
//#region ../types/dist/event-category-H4AVePnn.mjs
|
|
34
34
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
35
35
|
EventCategory["SystemBoot"] = "system.boot";
|
|
36
36
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -180,6 +180,9 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
180
180
|
EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
|
|
181
181
|
EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
|
|
182
182
|
EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
|
|
183
|
+
/** Runner-sampled scrub thumbnail (~1/5 s/camera). Telemetry (D8): a lost
|
|
184
|
+
* thumb is a scrub gap the recorder's keyframe backfill covers. */
|
|
185
|
+
EventCategory["RecordingThumbSampled"] = "recording.thumb-sampled";
|
|
183
186
|
EventCategory["DetectionEvent"] = "detection.event";
|
|
184
187
|
EventCategory["SessionTrackNew"] = "session.track.new";
|
|
185
188
|
EventCategory["SessionTrackExpired"] = "session.track.expired";
|
|
@@ -7265,6 +7268,24 @@ var RecordingRetentionSchema = object({
|
|
|
7265
7268
|
maxSizeGb: number().min(0).optional()
|
|
7266
7269
|
});
|
|
7267
7270
|
/**
|
|
7271
|
+
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7272
|
+
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7273
|
+
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7274
|
+
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7275
|
+
*
|
|
7276
|
+
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7277
|
+
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7278
|
+
* preset changed over time renders every historical window at the dims it was
|
|
7279
|
+
* written with.
|
|
7280
|
+
*/
|
|
7281
|
+
var ScrubThumbnailPresetSchema = _enum([
|
|
7282
|
+
"minimal",
|
|
7283
|
+
"low",
|
|
7284
|
+
"standard",
|
|
7285
|
+
"high",
|
|
7286
|
+
"max"
|
|
7287
|
+
]);
|
|
7288
|
+
/**
|
|
7268
7289
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7269
7290
|
*
|
|
7270
7291
|
* `mode` is the authoritative storage choice; `schedule`/`triggers`/`pre`/`post`
|
|
@@ -7301,7 +7322,14 @@ var RecordingConfigSchema = object({
|
|
|
7301
7322
|
* derived into bands once via `migrateConfigToBands`.
|
|
7302
7323
|
*/
|
|
7303
7324
|
bands: array(RecordingBandSchema).optional(),
|
|
7304
|
-
retention: RecordingRetentionSchema.optional()
|
|
7325
|
+
retention: RecordingRetentionSchema.optional(),
|
|
7326
|
+
/**
|
|
7327
|
+
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7328
|
+
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7329
|
+
* windows only — existing sheets are immutable, and each window's index
|
|
7330
|
+
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7331
|
+
*/
|
|
7332
|
+
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7305
7333
|
});
|
|
7306
7334
|
/**
|
|
7307
7335
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
@@ -10813,10 +10841,23 @@ var deviceDiscoveryCapability = {
|
|
|
10813
10841
|
}
|
|
10814
10842
|
};
|
|
10815
10843
|
/**
|
|
10816
|
-
* Doorbell button cap.
|
|
10817
|
-
*
|
|
10818
|
-
*
|
|
10819
|
-
*
|
|
10844
|
+
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
10845
|
+
* name (same pattern as `snapshot`):
|
|
10846
|
+
*
|
|
10847
|
+
* - **Native** providers: registered per-device by device-driver
|
|
10848
|
+
* addons via `ctx.registerNativeCap` — either on a
|
|
10849
|
+
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
10850
|
+
* or directly on the camera (Reolink registers at camera level).
|
|
10851
|
+
* Emits an `onPressed` event every time the firmware pushes a
|
|
10852
|
+
* ring; status tracks the last press and a pressCount since start
|
|
10853
|
+
* (diagnostic).
|
|
10854
|
+
*
|
|
10855
|
+
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
10856
|
+
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
10857
|
+
* device (contact / switch / event-emitter …) into a doorbell for
|
|
10858
|
+
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
10859
|
+
* it per camera in the device-bindings UI, then picks the source
|
|
10860
|
+
* device + trigger in the per-device settings.
|
|
10820
10861
|
*
|
|
10821
10862
|
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
10822
10863
|
* — subscribers listening at the camera level receive ring events
|
|
@@ -10837,7 +10878,10 @@ var doorbellCapability = {
|
|
|
10837
10878
|
scope: "device",
|
|
10838
10879
|
deviceNative: true,
|
|
10839
10880
|
mode: "singleton",
|
|
10840
|
-
|
|
10881
|
+
kind: "wrapper",
|
|
10882
|
+
defaultActive: false,
|
|
10883
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
10884
|
+
exposesDeviceSettings: true,
|
|
10841
10885
|
methods: {},
|
|
10842
10886
|
events: {
|
|
10843
10887
|
/**
|
|
@@ -17206,6 +17250,14 @@ var ConfigEntrySchema = object({
|
|
|
17206
17250
|
value: unknown(),
|
|
17207
17251
|
description: string().optional()
|
|
17208
17252
|
});
|
|
17253
|
+
var DeviceLinkModeSchema = _enum(["auto", "manual"]);
|
|
17254
|
+
/** One resolved linked device — the compact projection consumers need. */
|
|
17255
|
+
var LinkedDeviceSchema = object({
|
|
17256
|
+
deviceId: number(),
|
|
17257
|
+
name: string(),
|
|
17258
|
+
location: string().nullable(),
|
|
17259
|
+
features: array(string())
|
|
17260
|
+
});
|
|
17209
17261
|
var SavedDeviceRowSchema = object({
|
|
17210
17262
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
17211
17263
|
id: number(),
|
|
@@ -17427,7 +17479,10 @@ method(object({
|
|
|
17427
17479
|
}), _void(), {
|
|
17428
17480
|
kind: "mutation",
|
|
17429
17481
|
auth: "admin"
|
|
17430
|
-
}), method(object({ addonId: string() }), array(SavedDeviceRowSchema)), method(object({ addonId: string().optional() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }),
|
|
17482
|
+
}), method(object({ addonId: string() }), array(SavedDeviceRowSchema)), method(object({ addonId: string().optional() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
17483
|
+
mode: DeviceLinkModeSchema,
|
|
17484
|
+
devices: array(LinkedDeviceSchema)
|
|
17485
|
+
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
17431
17486
|
deviceId: number(),
|
|
17432
17487
|
values: record(string(), unknown())
|
|
17433
17488
|
}), object({ success: literal(true) }), {
|
|
@@ -18696,6 +18751,61 @@ var EventKindSchema = _enum([
|
|
|
18696
18751
|
"object",
|
|
18697
18752
|
"audio"
|
|
18698
18753
|
]);
|
|
18754
|
+
/**
|
|
18755
|
+
* Spatial filter for `listTracks` — the rect + polygon variants of the shared
|
|
18756
|
+
* MaskShape vocabulary (see `mask-shape.ts`). Coordinates are NORMALIZED 0..1
|
|
18757
|
+
* of the camera frame (top-left origin), matching the drawing-plane editor.
|
|
18758
|
+
*/
|
|
18759
|
+
var TrackZoneFilterSchema = discriminatedUnion("kind", [MaskRectShapeSchema, MaskPolygonShapeSchema]);
|
|
18760
|
+
/** Closed icon vocabulary so clients render a known glyph per kind. */
|
|
18761
|
+
var EventKindIconSchema = _enum([
|
|
18762
|
+
"motion",
|
|
18763
|
+
"audio",
|
|
18764
|
+
"person",
|
|
18765
|
+
"vehicle",
|
|
18766
|
+
"animal",
|
|
18767
|
+
"door",
|
|
18768
|
+
"pir",
|
|
18769
|
+
"smoke",
|
|
18770
|
+
"water",
|
|
18771
|
+
"button",
|
|
18772
|
+
"generic"
|
|
18773
|
+
]);
|
|
18774
|
+
var EventKindCategorySchema = _enum([
|
|
18775
|
+
"motion",
|
|
18776
|
+
"audio",
|
|
18777
|
+
"detection",
|
|
18778
|
+
"sensor",
|
|
18779
|
+
"custom"
|
|
18780
|
+
]);
|
|
18781
|
+
var EventKindDescriptorSchema = object({
|
|
18782
|
+
/** Stable kind id (e.g. 'motion', 'person', 'contact'). */
|
|
18783
|
+
kind: string(),
|
|
18784
|
+
label: string(),
|
|
18785
|
+
/** Hex color for timeline/legend rendering. */
|
|
18786
|
+
color: string(),
|
|
18787
|
+
icon: EventKindIconSchema,
|
|
18788
|
+
category: EventKindCategorySchema,
|
|
18789
|
+
/** Which cap + device contributes this kind. For built-ins the camera
|
|
18790
|
+
* itself; for sensor kinds the LINKED source device. */
|
|
18791
|
+
source: object({
|
|
18792
|
+
capName: string(),
|
|
18793
|
+
deviceId: number()
|
|
18794
|
+
})
|
|
18795
|
+
});
|
|
18796
|
+
var SensorEventSchema = object({
|
|
18797
|
+
id: string(),
|
|
18798
|
+
/** The CAMERA the event is attributed to (a sensor linked to N cameras
|
|
18799
|
+
* yields N rows, one per camera). */
|
|
18800
|
+
deviceId: number(),
|
|
18801
|
+
/** The linked sensor device whose state changed. */
|
|
18802
|
+
sourceDeviceId: number(),
|
|
18803
|
+
/** Event kind id — matches an `EventKindDescriptor.kind`. */
|
|
18804
|
+
kind: string(),
|
|
18805
|
+
/** Snapshot of the sensor cap's runtime-state slice at the change. */
|
|
18806
|
+
value: record(string(), unknown()).nullable(),
|
|
18807
|
+
timestamp: number()
|
|
18808
|
+
});
|
|
18699
18809
|
var TrackPositionSchema = object({
|
|
18700
18810
|
x: number(),
|
|
18701
18811
|
y: number(),
|
|
@@ -18709,6 +18819,30 @@ var TrackSnapshotSchema = object({
|
|
|
18709
18819
|
mediaKey: string()
|
|
18710
18820
|
});
|
|
18711
18821
|
/**
|
|
18822
|
+
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
18823
|
+
* divided by the track's detection-frame dims), computed at persist time.
|
|
18824
|
+
* Absent when the frame dims were unknown when the track was persisted
|
|
18825
|
+
* (legacy rows / dims-less sources) and on active (in-RAM) tracks.
|
|
18826
|
+
*/
|
|
18827
|
+
var TrackEnvelopeSchema = object({
|
|
18828
|
+
minX: number(),
|
|
18829
|
+
minY: number(),
|
|
18830
|
+
maxX: number(),
|
|
18831
|
+
maxY: number()
|
|
18832
|
+
});
|
|
18833
|
+
/**
|
|
18834
|
+
* Row projection for track list queries. `full` (default) returns the
|
|
18835
|
+
* complete Track including the frame-rate `positions[]` history and the
|
|
18836
|
+
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
18837
|
+
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
18838
|
+
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
18839
|
+
* zonesVisited, bestEventId, envelope) and returns `positions` /
|
|
18840
|
+
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
18841
|
+
* `getTrack`. Mirrors the event-store `projection` convention
|
|
18842
|
+
* (`getObjectEvents` et al.).
|
|
18843
|
+
*/
|
|
18844
|
+
var TrackProjectionSchema = _enum(["full", "slim"]);
|
|
18845
|
+
/**
|
|
18712
18846
|
* One audio-classification label heard on the track's camera while the
|
|
18713
18847
|
* track was alive, aggregated per label. An "episode" is one persisted
|
|
18714
18848
|
* audio event (the confident-classification path: score ≥ the device's
|
|
@@ -18759,7 +18893,11 @@ var TrackSchema = object({
|
|
|
18759
18893
|
/** Audio-classification labels heard on the camera during the track's
|
|
18760
18894
|
* life (score ≥ device `classificationMinScore`), aggregated per label.
|
|
18761
18895
|
* Absent on legacy rows / tracks with no confident audio. */
|
|
18762
|
-
audioLabels: array(TrackAudioLabelSchema).readonly().optional()
|
|
18896
|
+
audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
|
|
18897
|
+
/** Normalized 0..1 trajectory envelope (see {@link TrackEnvelopeSchema}).
|
|
18898
|
+
* Populated from the persisted envelope columns on historical reads;
|
|
18899
|
+
* absent on legacy rows, dims-less tracks and active (in-RAM) tracks. */
|
|
18900
|
+
envelope: TrackEnvelopeSchema.optional()
|
|
18763
18901
|
});
|
|
18764
18902
|
var BaseEventFields = {
|
|
18765
18903
|
id: string(),
|
|
@@ -18869,11 +19007,13 @@ var MediaFileSchema = object({
|
|
|
18869
19007
|
sizeBytes: number(),
|
|
18870
19008
|
timestamp: number()
|
|
18871
19009
|
});
|
|
19010
|
+
var DEFAULT_EVENT_QUERY_LIMIT = 1e3;
|
|
19011
|
+
var MAX_EVENT_QUERY_LIMIT = 5e3;
|
|
18872
19012
|
var DeviceEventQueryInput = object({
|
|
18873
19013
|
deviceId: number(),
|
|
18874
19014
|
since: number().optional(),
|
|
18875
19015
|
until: number().optional(),
|
|
18876
|
-
limit: number().int().min(1).max(
|
|
19016
|
+
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT),
|
|
18877
19017
|
/** `slim` drops heavy JSON fields (regions/bbox/zones) and carries an
|
|
18878
19018
|
* optional `mediaUrl` (populated by B5). `full` (default) keeps today's
|
|
18879
19019
|
* exact behaviour. Callers may omit this field — the store defaults to
|
|
@@ -18881,6 +19021,27 @@ var DeviceEventQueryInput = object({
|
|
|
18881
19021
|
projection: _enum(["full", "slim"]).optional()
|
|
18882
19022
|
});
|
|
18883
19023
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
19024
|
+
var RecentTracksQueryInput = object({
|
|
19025
|
+
/** Devices to merge. An empty array yields `{ tracks: [], nextCursor: null }`. */
|
|
19026
|
+
deviceIds: array(number()),
|
|
19027
|
+
/** Window lower bound on `lastSeen` (inclusive). */
|
|
19028
|
+
since: number().optional(),
|
|
19029
|
+
/** Window upper bound on `lastSeen` (inclusive). */
|
|
19030
|
+
until: number().optional(),
|
|
19031
|
+
/** Page size. Default 200, max 1000. */
|
|
19032
|
+
limit: number().int().min(1).max(1e3).default(200),
|
|
19033
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`.
|
|
19034
|
+
* Encodes the (lastSeen, trackId) sort position — treat as opaque. */
|
|
19035
|
+
cursor: string().optional(),
|
|
19036
|
+
/** See {@link TrackProjectionSchema}. Default `full`. */
|
|
19037
|
+
projection: TrackProjectionSchema.optional()
|
|
19038
|
+
});
|
|
19039
|
+
var RecentTracksPageSchema = object({
|
|
19040
|
+
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
19041
|
+
tracks: array(TrackSchema).readonly(),
|
|
19042
|
+
/** Cursor for the next page, or null when this page is the last. */
|
|
19043
|
+
nextCursor: string().nullable()
|
|
19044
|
+
});
|
|
18884
19045
|
var KeyEventQueryInput = object({
|
|
18885
19046
|
deviceId: number(),
|
|
18886
19047
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -18963,11 +19124,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18963
19124
|
deviceId: number(),
|
|
18964
19125
|
since: number().optional(),
|
|
18965
19126
|
until: number().optional(),
|
|
18966
|
-
limit: number().optional()
|
|
18967
|
-
|
|
19127
|
+
limit: number().optional(),
|
|
19128
|
+
/** Spatial filter — only tracks whose trajectory intersects the zone
|
|
19129
|
+
* (normalized 0..1 rect or polygon). SQL-prefiltered on the persisted
|
|
19130
|
+
* envelope columns, then precisely tested per position. Tracks with
|
|
19131
|
+
* an unknown envelope (no frame dims at persist time) always match. */
|
|
19132
|
+
zone: TrackZoneFilterSchema.optional(),
|
|
19133
|
+
/** See {@link TrackProjectionSchema}. Default `full` (backward
|
|
19134
|
+
* compatible — omitting the field keeps today's exact behaviour). */
|
|
19135
|
+
projection: TrackProjectionSchema.optional()
|
|
19136
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
18968
19137
|
kind: "mutation",
|
|
18969
19138
|
auth: "admin"
|
|
18970
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(
|
|
19139
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({
|
|
19140
|
+
deviceId: number(),
|
|
19141
|
+
since: number().optional(),
|
|
19142
|
+
until: number().optional(),
|
|
19143
|
+
kinds: array(string()).optional(),
|
|
19144
|
+
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
19145
|
+
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
18971
19146
|
deviceId: number(),
|
|
18972
19147
|
since: number(),
|
|
18973
19148
|
until: number(),
|
|
@@ -22270,7 +22445,12 @@ var RecordingStorageUsageSchema = object({
|
|
|
22270
22445
|
/**
|
|
22271
22446
|
* Result of locating footage at a wall-clock instant for one device/profile.
|
|
22272
22447
|
* `segment` carries the covering segment's window; `gap` reports the forward
|
|
22273
|
-
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
22448
|
+
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
22449
|
+
* and the backward covered edge `prevEndMs` (exclusive end of the nearest
|
|
22450
|
+
* footage behind the epoch; `null` when none — optional so older providers
|
|
22451
|
+
* that omit it stay valid). `prevEndMs` lets a backward frame-step hop the
|
|
22452
|
+
* small inter-segment cracks (durMs under-covers the span to the next
|
|
22453
|
+
* startMs by ~11-17 ms) instead of no-opping at a segment head.
|
|
22274
22454
|
*/
|
|
22275
22455
|
var LocateSegmentResultSchema = discriminatedUnion("kind", [object({
|
|
22276
22456
|
kind: literal("segment"),
|
|
@@ -22279,7 +22459,8 @@ var LocateSegmentResultSchema = discriminatedUnion("kind", [object({
|
|
|
22279
22459
|
bytes: number()
|
|
22280
22460
|
}), object({
|
|
22281
22461
|
kind: literal("gap"),
|
|
22282
|
-
nearestEdgeMs: number().nullable()
|
|
22462
|
+
nearestEdgeMs: number().nullable(),
|
|
22463
|
+
prevEndMs: number().nullable().optional()
|
|
22283
22464
|
})]);
|
|
22284
22465
|
/** Raw bytes of one finalized footage segment (read off disk on the recording node). */
|
|
22285
22466
|
var ReadSegmentBytesResultSchema = object({ data: _instanceof(Uint8Array) });
|
|
@@ -23861,6 +24042,12 @@ Object.freeze({
|
|
|
23861
24042
|
addonId: null,
|
|
23862
24043
|
access: "view"
|
|
23863
24044
|
},
|
|
24045
|
+
"deviceManager.getLinkedDevices": {
|
|
24046
|
+
capName: "device-manager",
|
|
24047
|
+
capScope: "system",
|
|
24048
|
+
addonId: null,
|
|
24049
|
+
access: "view"
|
|
24050
|
+
},
|
|
23864
24051
|
"deviceManager.getRoleDisplayDefaults": {
|
|
23865
24052
|
capName: "device-manager",
|
|
23866
24053
|
capScope: "system",
|
|
@@ -25415,6 +25602,12 @@ Object.freeze({
|
|
|
25415
25602
|
addonId: null,
|
|
25416
25603
|
access: "view"
|
|
25417
25604
|
},
|
|
25605
|
+
"pipelineAnalytics.getSensorEvents": {
|
|
25606
|
+
capName: "pipeline-analytics",
|
|
25607
|
+
capScope: "device",
|
|
25608
|
+
addonId: null,
|
|
25609
|
+
access: "view"
|
|
25610
|
+
},
|
|
25418
25611
|
"pipelineAnalytics.getTrack": {
|
|
25419
25612
|
capName: "pipeline-analytics",
|
|
25420
25613
|
capScope: "device",
|
|
@@ -25427,6 +25620,18 @@ Object.freeze({
|
|
|
25427
25620
|
addonId: null,
|
|
25428
25621
|
access: "view"
|
|
25429
25622
|
},
|
|
25623
|
+
"pipelineAnalytics.listEventKinds": {
|
|
25624
|
+
capName: "pipeline-analytics",
|
|
25625
|
+
capScope: "device",
|
|
25626
|
+
addonId: null,
|
|
25627
|
+
access: "view"
|
|
25628
|
+
},
|
|
25629
|
+
"pipelineAnalytics.listRecentTracks": {
|
|
25630
|
+
capName: "pipeline-analytics",
|
|
25631
|
+
capScope: "device",
|
|
25632
|
+
addonId: null,
|
|
25633
|
+
access: "view"
|
|
25634
|
+
},
|
|
25430
25635
|
"pipelineAnalytics.listTracks": {
|
|
25431
25636
|
capName: "pipeline-analytics",
|
|
25432
25637
|
capScope: "device",
|
package/dist/addon.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { spawn } from "node:child_process";
|
|
|
9
9
|
//#region \0rolldown/runtime.js
|
|
10
10
|
var __require$1 = /* @__PURE__ */ createRequire(import.meta.url);
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region ../types/dist/event-category-
|
|
12
|
+
//#region ../types/dist/event-category-H4AVePnn.mjs
|
|
13
13
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
14
14
|
EventCategory["SystemBoot"] = "system.boot";
|
|
15
15
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -159,6 +159,9 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
159
159
|
EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
|
|
160
160
|
EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
|
|
161
161
|
EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
|
|
162
|
+
/** Runner-sampled scrub thumbnail (~1/5 s/camera). Telemetry (D8): a lost
|
|
163
|
+
* thumb is a scrub gap the recorder's keyframe backfill covers. */
|
|
164
|
+
EventCategory["RecordingThumbSampled"] = "recording.thumb-sampled";
|
|
162
165
|
EventCategory["DetectionEvent"] = "detection.event";
|
|
163
166
|
EventCategory["SessionTrackNew"] = "session.track.new";
|
|
164
167
|
EventCategory["SessionTrackExpired"] = "session.track.expired";
|
|
@@ -7244,6 +7247,24 @@ var RecordingRetentionSchema = object({
|
|
|
7244
7247
|
maxSizeGb: number().min(0).optional()
|
|
7245
7248
|
});
|
|
7246
7249
|
/**
|
|
7250
|
+
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7251
|
+
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7252
|
+
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7253
|
+
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7254
|
+
*
|
|
7255
|
+
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7256
|
+
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7257
|
+
* preset changed over time renders every historical window at the dims it was
|
|
7258
|
+
* written with.
|
|
7259
|
+
*/
|
|
7260
|
+
var ScrubThumbnailPresetSchema = _enum([
|
|
7261
|
+
"minimal",
|
|
7262
|
+
"low",
|
|
7263
|
+
"standard",
|
|
7264
|
+
"high",
|
|
7265
|
+
"max"
|
|
7266
|
+
]);
|
|
7267
|
+
/**
|
|
7247
7268
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7248
7269
|
*
|
|
7249
7270
|
* `mode` is the authoritative storage choice; `schedule`/`triggers`/`pre`/`post`
|
|
@@ -7280,7 +7301,14 @@ var RecordingConfigSchema = object({
|
|
|
7280
7301
|
* derived into bands once via `migrateConfigToBands`.
|
|
7281
7302
|
*/
|
|
7282
7303
|
bands: array(RecordingBandSchema).optional(),
|
|
7283
|
-
retention: RecordingRetentionSchema.optional()
|
|
7304
|
+
retention: RecordingRetentionSchema.optional(),
|
|
7305
|
+
/**
|
|
7306
|
+
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7307
|
+
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7308
|
+
* windows only — existing sheets are immutable, and each window's index
|
|
7309
|
+
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7310
|
+
*/
|
|
7311
|
+
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7284
7312
|
});
|
|
7285
7313
|
/**
|
|
7286
7314
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
@@ -10792,10 +10820,23 @@ var deviceDiscoveryCapability = {
|
|
|
10792
10820
|
}
|
|
10793
10821
|
};
|
|
10794
10822
|
/**
|
|
10795
|
-
* Doorbell button cap.
|
|
10796
|
-
*
|
|
10797
|
-
*
|
|
10798
|
-
*
|
|
10823
|
+
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
10824
|
+
* name (same pattern as `snapshot`):
|
|
10825
|
+
*
|
|
10826
|
+
* - **Native** providers: registered per-device by device-driver
|
|
10827
|
+
* addons via `ctx.registerNativeCap` — either on a
|
|
10828
|
+
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
10829
|
+
* or directly on the camera (Reolink registers at camera level).
|
|
10830
|
+
* Emits an `onPressed` event every time the firmware pushes a
|
|
10831
|
+
* ring; status tracks the last press and a pressCount since start
|
|
10832
|
+
* (diagnostic).
|
|
10833
|
+
*
|
|
10834
|
+
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
10835
|
+
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
10836
|
+
* device (contact / switch / event-emitter …) into a doorbell for
|
|
10837
|
+
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
10838
|
+
* it per camera in the device-bindings UI, then picks the source
|
|
10839
|
+
* device + trigger in the per-device settings.
|
|
10799
10840
|
*
|
|
10800
10841
|
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
10801
10842
|
* — subscribers listening at the camera level receive ring events
|
|
@@ -10816,7 +10857,10 @@ var doorbellCapability = {
|
|
|
10816
10857
|
scope: "device",
|
|
10817
10858
|
deviceNative: true,
|
|
10818
10859
|
mode: "singleton",
|
|
10819
|
-
|
|
10860
|
+
kind: "wrapper",
|
|
10861
|
+
defaultActive: false,
|
|
10862
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
10863
|
+
exposesDeviceSettings: true,
|
|
10820
10864
|
methods: {},
|
|
10821
10865
|
events: {
|
|
10822
10866
|
/**
|
|
@@ -17185,6 +17229,14 @@ var ConfigEntrySchema = object({
|
|
|
17185
17229
|
value: unknown(),
|
|
17186
17230
|
description: string().optional()
|
|
17187
17231
|
});
|
|
17232
|
+
var DeviceLinkModeSchema = _enum(["auto", "manual"]);
|
|
17233
|
+
/** One resolved linked device — the compact projection consumers need. */
|
|
17234
|
+
var LinkedDeviceSchema = object({
|
|
17235
|
+
deviceId: number(),
|
|
17236
|
+
name: string(),
|
|
17237
|
+
location: string().nullable(),
|
|
17238
|
+
features: array(string())
|
|
17239
|
+
});
|
|
17188
17240
|
var SavedDeviceRowSchema = object({
|
|
17189
17241
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
17190
17242
|
id: number(),
|
|
@@ -17406,7 +17458,10 @@ method(object({
|
|
|
17406
17458
|
}), _void(), {
|
|
17407
17459
|
kind: "mutation",
|
|
17408
17460
|
auth: "admin"
|
|
17409
|
-
}), method(object({ addonId: string() }), array(SavedDeviceRowSchema)), method(object({ addonId: string().optional() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }),
|
|
17461
|
+
}), method(object({ addonId: string() }), array(SavedDeviceRowSchema)), method(object({ addonId: string().optional() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
17462
|
+
mode: DeviceLinkModeSchema,
|
|
17463
|
+
devices: array(LinkedDeviceSchema)
|
|
17464
|
+
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
17410
17465
|
deviceId: number(),
|
|
17411
17466
|
values: record(string(), unknown())
|
|
17412
17467
|
}), object({ success: literal(true) }), {
|
|
@@ -18675,6 +18730,61 @@ var EventKindSchema = _enum([
|
|
|
18675
18730
|
"object",
|
|
18676
18731
|
"audio"
|
|
18677
18732
|
]);
|
|
18733
|
+
/**
|
|
18734
|
+
* Spatial filter for `listTracks` — the rect + polygon variants of the shared
|
|
18735
|
+
* MaskShape vocabulary (see `mask-shape.ts`). Coordinates are NORMALIZED 0..1
|
|
18736
|
+
* of the camera frame (top-left origin), matching the drawing-plane editor.
|
|
18737
|
+
*/
|
|
18738
|
+
var TrackZoneFilterSchema = discriminatedUnion("kind", [MaskRectShapeSchema, MaskPolygonShapeSchema]);
|
|
18739
|
+
/** Closed icon vocabulary so clients render a known glyph per kind. */
|
|
18740
|
+
var EventKindIconSchema = _enum([
|
|
18741
|
+
"motion",
|
|
18742
|
+
"audio",
|
|
18743
|
+
"person",
|
|
18744
|
+
"vehicle",
|
|
18745
|
+
"animal",
|
|
18746
|
+
"door",
|
|
18747
|
+
"pir",
|
|
18748
|
+
"smoke",
|
|
18749
|
+
"water",
|
|
18750
|
+
"button",
|
|
18751
|
+
"generic"
|
|
18752
|
+
]);
|
|
18753
|
+
var EventKindCategorySchema = _enum([
|
|
18754
|
+
"motion",
|
|
18755
|
+
"audio",
|
|
18756
|
+
"detection",
|
|
18757
|
+
"sensor",
|
|
18758
|
+
"custom"
|
|
18759
|
+
]);
|
|
18760
|
+
var EventKindDescriptorSchema = object({
|
|
18761
|
+
/** Stable kind id (e.g. 'motion', 'person', 'contact'). */
|
|
18762
|
+
kind: string(),
|
|
18763
|
+
label: string(),
|
|
18764
|
+
/** Hex color for timeline/legend rendering. */
|
|
18765
|
+
color: string(),
|
|
18766
|
+
icon: EventKindIconSchema,
|
|
18767
|
+
category: EventKindCategorySchema,
|
|
18768
|
+
/** Which cap + device contributes this kind. For built-ins the camera
|
|
18769
|
+
* itself; for sensor kinds the LINKED source device. */
|
|
18770
|
+
source: object({
|
|
18771
|
+
capName: string(),
|
|
18772
|
+
deviceId: number()
|
|
18773
|
+
})
|
|
18774
|
+
});
|
|
18775
|
+
var SensorEventSchema = object({
|
|
18776
|
+
id: string(),
|
|
18777
|
+
/** The CAMERA the event is attributed to (a sensor linked to N cameras
|
|
18778
|
+
* yields N rows, one per camera). */
|
|
18779
|
+
deviceId: number(),
|
|
18780
|
+
/** The linked sensor device whose state changed. */
|
|
18781
|
+
sourceDeviceId: number(),
|
|
18782
|
+
/** Event kind id — matches an `EventKindDescriptor.kind`. */
|
|
18783
|
+
kind: string(),
|
|
18784
|
+
/** Snapshot of the sensor cap's runtime-state slice at the change. */
|
|
18785
|
+
value: record(string(), unknown()).nullable(),
|
|
18786
|
+
timestamp: number()
|
|
18787
|
+
});
|
|
18678
18788
|
var TrackPositionSchema = object({
|
|
18679
18789
|
x: number(),
|
|
18680
18790
|
y: number(),
|
|
@@ -18688,6 +18798,30 @@ var TrackSnapshotSchema = object({
|
|
|
18688
18798
|
mediaKey: string()
|
|
18689
18799
|
});
|
|
18690
18800
|
/**
|
|
18801
|
+
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
18802
|
+
* divided by the track's detection-frame dims), computed at persist time.
|
|
18803
|
+
* Absent when the frame dims were unknown when the track was persisted
|
|
18804
|
+
* (legacy rows / dims-less sources) and on active (in-RAM) tracks.
|
|
18805
|
+
*/
|
|
18806
|
+
var TrackEnvelopeSchema = object({
|
|
18807
|
+
minX: number(),
|
|
18808
|
+
minY: number(),
|
|
18809
|
+
maxX: number(),
|
|
18810
|
+
maxY: number()
|
|
18811
|
+
});
|
|
18812
|
+
/**
|
|
18813
|
+
* Row projection for track list queries. `full` (default) returns the
|
|
18814
|
+
* complete Track including the frame-rate `positions[]` history and the
|
|
18815
|
+
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
18816
|
+
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
18817
|
+
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
18818
|
+
* zonesVisited, bestEventId, envelope) and returns `positions` /
|
|
18819
|
+
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
18820
|
+
* `getTrack`. Mirrors the event-store `projection` convention
|
|
18821
|
+
* (`getObjectEvents` et al.).
|
|
18822
|
+
*/
|
|
18823
|
+
var TrackProjectionSchema = _enum(["full", "slim"]);
|
|
18824
|
+
/**
|
|
18691
18825
|
* One audio-classification label heard on the track's camera while the
|
|
18692
18826
|
* track was alive, aggregated per label. An "episode" is one persisted
|
|
18693
18827
|
* audio event (the confident-classification path: score ≥ the device's
|
|
@@ -18738,7 +18872,11 @@ var TrackSchema = object({
|
|
|
18738
18872
|
/** Audio-classification labels heard on the camera during the track's
|
|
18739
18873
|
* life (score ≥ device `classificationMinScore`), aggregated per label.
|
|
18740
18874
|
* Absent on legacy rows / tracks with no confident audio. */
|
|
18741
|
-
audioLabels: array(TrackAudioLabelSchema).readonly().optional()
|
|
18875
|
+
audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
|
|
18876
|
+
/** Normalized 0..1 trajectory envelope (see {@link TrackEnvelopeSchema}).
|
|
18877
|
+
* Populated from the persisted envelope columns on historical reads;
|
|
18878
|
+
* absent on legacy rows, dims-less tracks and active (in-RAM) tracks. */
|
|
18879
|
+
envelope: TrackEnvelopeSchema.optional()
|
|
18742
18880
|
});
|
|
18743
18881
|
var BaseEventFields = {
|
|
18744
18882
|
id: string(),
|
|
@@ -18848,11 +18986,13 @@ var MediaFileSchema = object({
|
|
|
18848
18986
|
sizeBytes: number(),
|
|
18849
18987
|
timestamp: number()
|
|
18850
18988
|
});
|
|
18989
|
+
var DEFAULT_EVENT_QUERY_LIMIT = 1e3;
|
|
18990
|
+
var MAX_EVENT_QUERY_LIMIT = 5e3;
|
|
18851
18991
|
var DeviceEventQueryInput = object({
|
|
18852
18992
|
deviceId: number(),
|
|
18853
18993
|
since: number().optional(),
|
|
18854
18994
|
until: number().optional(),
|
|
18855
|
-
limit: number().int().min(1).max(
|
|
18995
|
+
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT),
|
|
18856
18996
|
/** `slim` drops heavy JSON fields (regions/bbox/zones) and carries an
|
|
18857
18997
|
* optional `mediaUrl` (populated by B5). `full` (default) keeps today's
|
|
18858
18998
|
* exact behaviour. Callers may omit this field — the store defaults to
|
|
@@ -18860,6 +19000,27 @@ var DeviceEventQueryInput = object({
|
|
|
18860
19000
|
projection: _enum(["full", "slim"]).optional()
|
|
18861
19001
|
});
|
|
18862
19002
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
19003
|
+
var RecentTracksQueryInput = object({
|
|
19004
|
+
/** Devices to merge. An empty array yields `{ tracks: [], nextCursor: null }`. */
|
|
19005
|
+
deviceIds: array(number()),
|
|
19006
|
+
/** Window lower bound on `lastSeen` (inclusive). */
|
|
19007
|
+
since: number().optional(),
|
|
19008
|
+
/** Window upper bound on `lastSeen` (inclusive). */
|
|
19009
|
+
until: number().optional(),
|
|
19010
|
+
/** Page size. Default 200, max 1000. */
|
|
19011
|
+
limit: number().int().min(1).max(1e3).default(200),
|
|
19012
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`.
|
|
19013
|
+
* Encodes the (lastSeen, trackId) sort position — treat as opaque. */
|
|
19014
|
+
cursor: string().optional(),
|
|
19015
|
+
/** See {@link TrackProjectionSchema}. Default `full`. */
|
|
19016
|
+
projection: TrackProjectionSchema.optional()
|
|
19017
|
+
});
|
|
19018
|
+
var RecentTracksPageSchema = object({
|
|
19019
|
+
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
19020
|
+
tracks: array(TrackSchema).readonly(),
|
|
19021
|
+
/** Cursor for the next page, or null when this page is the last. */
|
|
19022
|
+
nextCursor: string().nullable()
|
|
19023
|
+
});
|
|
18863
19024
|
var KeyEventQueryInput = object({
|
|
18864
19025
|
deviceId: number(),
|
|
18865
19026
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -18942,11 +19103,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18942
19103
|
deviceId: number(),
|
|
18943
19104
|
since: number().optional(),
|
|
18944
19105
|
until: number().optional(),
|
|
18945
|
-
limit: number().optional()
|
|
18946
|
-
|
|
19106
|
+
limit: number().optional(),
|
|
19107
|
+
/** Spatial filter — only tracks whose trajectory intersects the zone
|
|
19108
|
+
* (normalized 0..1 rect or polygon). SQL-prefiltered on the persisted
|
|
19109
|
+
* envelope columns, then precisely tested per position. Tracks with
|
|
19110
|
+
* an unknown envelope (no frame dims at persist time) always match. */
|
|
19111
|
+
zone: TrackZoneFilterSchema.optional(),
|
|
19112
|
+
/** See {@link TrackProjectionSchema}. Default `full` (backward
|
|
19113
|
+
* compatible — omitting the field keeps today's exact behaviour). */
|
|
19114
|
+
projection: TrackProjectionSchema.optional()
|
|
19115
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
18947
19116
|
kind: "mutation",
|
|
18948
19117
|
auth: "admin"
|
|
18949
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(
|
|
19118
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({
|
|
19119
|
+
deviceId: number(),
|
|
19120
|
+
since: number().optional(),
|
|
19121
|
+
until: number().optional(),
|
|
19122
|
+
kinds: array(string()).optional(),
|
|
19123
|
+
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
19124
|
+
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
18950
19125
|
deviceId: number(),
|
|
18951
19126
|
since: number(),
|
|
18952
19127
|
until: number(),
|
|
@@ -22249,7 +22424,12 @@ var RecordingStorageUsageSchema = object({
|
|
|
22249
22424
|
/**
|
|
22250
22425
|
* Result of locating footage at a wall-clock instant for one device/profile.
|
|
22251
22426
|
* `segment` carries the covering segment's window; `gap` reports the forward
|
|
22252
|
-
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
22427
|
+
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
22428
|
+
* and the backward covered edge `prevEndMs` (exclusive end of the nearest
|
|
22429
|
+
* footage behind the epoch; `null` when none — optional so older providers
|
|
22430
|
+
* that omit it stay valid). `prevEndMs` lets a backward frame-step hop the
|
|
22431
|
+
* small inter-segment cracks (durMs under-covers the span to the next
|
|
22432
|
+
* startMs by ~11-17 ms) instead of no-opping at a segment head.
|
|
22253
22433
|
*/
|
|
22254
22434
|
var LocateSegmentResultSchema = discriminatedUnion("kind", [object({
|
|
22255
22435
|
kind: literal("segment"),
|
|
@@ -22258,7 +22438,8 @@ var LocateSegmentResultSchema = discriminatedUnion("kind", [object({
|
|
|
22258
22438
|
bytes: number()
|
|
22259
22439
|
}), object({
|
|
22260
22440
|
kind: literal("gap"),
|
|
22261
|
-
nearestEdgeMs: number().nullable()
|
|
22441
|
+
nearestEdgeMs: number().nullable(),
|
|
22442
|
+
prevEndMs: number().nullable().optional()
|
|
22262
22443
|
})]);
|
|
22263
22444
|
/** Raw bytes of one finalized footage segment (read off disk on the recording node). */
|
|
22264
22445
|
var ReadSegmentBytesResultSchema = object({ data: _instanceof(Uint8Array) });
|
|
@@ -23840,6 +24021,12 @@ Object.freeze({
|
|
|
23840
24021
|
addonId: null,
|
|
23841
24022
|
access: "view"
|
|
23842
24023
|
},
|
|
24024
|
+
"deviceManager.getLinkedDevices": {
|
|
24025
|
+
capName: "device-manager",
|
|
24026
|
+
capScope: "system",
|
|
24027
|
+
addonId: null,
|
|
24028
|
+
access: "view"
|
|
24029
|
+
},
|
|
23843
24030
|
"deviceManager.getRoleDisplayDefaults": {
|
|
23844
24031
|
capName: "device-manager",
|
|
23845
24032
|
capScope: "system",
|
|
@@ -25394,6 +25581,12 @@ Object.freeze({
|
|
|
25394
25581
|
addonId: null,
|
|
25395
25582
|
access: "view"
|
|
25396
25583
|
},
|
|
25584
|
+
"pipelineAnalytics.getSensorEvents": {
|
|
25585
|
+
capName: "pipeline-analytics",
|
|
25586
|
+
capScope: "device",
|
|
25587
|
+
addonId: null,
|
|
25588
|
+
access: "view"
|
|
25589
|
+
},
|
|
25397
25590
|
"pipelineAnalytics.getTrack": {
|
|
25398
25591
|
capName: "pipeline-analytics",
|
|
25399
25592
|
capScope: "device",
|
|
@@ -25406,6 +25599,18 @@ Object.freeze({
|
|
|
25406
25599
|
addonId: null,
|
|
25407
25600
|
access: "view"
|
|
25408
25601
|
},
|
|
25602
|
+
"pipelineAnalytics.listEventKinds": {
|
|
25603
|
+
capName: "pipeline-analytics",
|
|
25604
|
+
capScope: "device",
|
|
25605
|
+
addonId: null,
|
|
25606
|
+
access: "view"
|
|
25607
|
+
},
|
|
25608
|
+
"pipelineAnalytics.listRecentTracks": {
|
|
25609
|
+
capName: "pipeline-analytics",
|
|
25610
|
+
capScope: "device",
|
|
25611
|
+
addonId: null,
|
|
25612
|
+
access: "view"
|
|
25613
|
+
},
|
|
25409
25614
|
"pipelineAnalytics.listTracks": {
|
|
25410
25615
|
capName: "pipeline-analytics",
|
|
25411
25616
|
capScope: "device",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-wyze",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.22",
|
|
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",
|