@camstack/addon-provider-dreame 0.1.29 → 0.1.31
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
|
@@ -37,7 +37,7 @@ let crypto$1 = require("crypto");
|
|
|
37
37
|
let events = require("events");
|
|
38
38
|
let zlib = require("zlib");
|
|
39
39
|
zlib = __toESM(zlib, 1);
|
|
40
|
-
//#region ../types/dist/event-category-
|
|
40
|
+
//#region ../types/dist/event-category-H4AVePnn.mjs
|
|
41
41
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
42
42
|
EventCategory["SystemBoot"] = "system.boot";
|
|
43
43
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -187,6 +187,9 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
187
187
|
EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
|
|
188
188
|
EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
|
|
189
189
|
EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
|
|
190
|
+
/** Runner-sampled scrub thumbnail (~1/5 s/camera). Telemetry (D8): a lost
|
|
191
|
+
* thumb is a scrub gap the recorder's keyframe backfill covers. */
|
|
192
|
+
EventCategory["RecordingThumbSampled"] = "recording.thumb-sampled";
|
|
190
193
|
EventCategory["DetectionEvent"] = "detection.event";
|
|
191
194
|
EventCategory["SessionTrackNew"] = "session.track.new";
|
|
192
195
|
EventCategory["SessionTrackExpired"] = "session.track.expired";
|
|
@@ -7286,6 +7289,24 @@ var RecordingRetentionSchema = object({
|
|
|
7286
7289
|
maxSizeGb: number().min(0).optional()
|
|
7287
7290
|
});
|
|
7288
7291
|
/**
|
|
7292
|
+
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7293
|
+
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7294
|
+
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7295
|
+
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7296
|
+
*
|
|
7297
|
+
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7298
|
+
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7299
|
+
* preset changed over time renders every historical window at the dims it was
|
|
7300
|
+
* written with.
|
|
7301
|
+
*/
|
|
7302
|
+
var ScrubThumbnailPresetSchema = _enum([
|
|
7303
|
+
"minimal",
|
|
7304
|
+
"low",
|
|
7305
|
+
"standard",
|
|
7306
|
+
"high",
|
|
7307
|
+
"max"
|
|
7308
|
+
]);
|
|
7309
|
+
/**
|
|
7289
7310
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7290
7311
|
*
|
|
7291
7312
|
* `mode` is the authoritative storage choice; `schedule`/`triggers`/`pre`/`post`
|
|
@@ -7322,7 +7343,14 @@ var RecordingConfigSchema = object({
|
|
|
7322
7343
|
* derived into bands once via `migrateConfigToBands`.
|
|
7323
7344
|
*/
|
|
7324
7345
|
bands: array(RecordingBandSchema).optional(),
|
|
7325
|
-
retention: RecordingRetentionSchema.optional()
|
|
7346
|
+
retention: RecordingRetentionSchema.optional(),
|
|
7347
|
+
/**
|
|
7348
|
+
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7349
|
+
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7350
|
+
* windows only — existing sheets are immutable, and each window's index
|
|
7351
|
+
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7352
|
+
*/
|
|
7353
|
+
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7326
7354
|
});
|
|
7327
7355
|
/**
|
|
7328
7356
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
@@ -10834,10 +10862,23 @@ var deviceDiscoveryCapability = {
|
|
|
10834
10862
|
}
|
|
10835
10863
|
};
|
|
10836
10864
|
/**
|
|
10837
|
-
* Doorbell button cap.
|
|
10838
|
-
*
|
|
10839
|
-
*
|
|
10840
|
-
*
|
|
10865
|
+
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
10866
|
+
* name (same pattern as `snapshot`):
|
|
10867
|
+
*
|
|
10868
|
+
* - **Native** providers: registered per-device by device-driver
|
|
10869
|
+
* addons via `ctx.registerNativeCap` — either on a
|
|
10870
|
+
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
10871
|
+
* or directly on the camera (Reolink registers at camera level).
|
|
10872
|
+
* Emits an `onPressed` event every time the firmware pushes a
|
|
10873
|
+
* ring; status tracks the last press and a pressCount since start
|
|
10874
|
+
* (diagnostic).
|
|
10875
|
+
*
|
|
10876
|
+
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
10877
|
+
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
10878
|
+
* device (contact / switch / event-emitter …) into a doorbell for
|
|
10879
|
+
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
10880
|
+
* it per camera in the device-bindings UI, then picks the source
|
|
10881
|
+
* device + trigger in the per-device settings.
|
|
10841
10882
|
*
|
|
10842
10883
|
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
10843
10884
|
* — subscribers listening at the camera level receive ring events
|
|
@@ -10858,7 +10899,10 @@ var doorbellCapability = {
|
|
|
10858
10899
|
scope: "device",
|
|
10859
10900
|
deviceNative: true,
|
|
10860
10901
|
mode: "singleton",
|
|
10861
|
-
|
|
10902
|
+
kind: "wrapper",
|
|
10903
|
+
defaultActive: false,
|
|
10904
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
10905
|
+
exposesDeviceSettings: true,
|
|
10862
10906
|
methods: {},
|
|
10863
10907
|
events: {
|
|
10864
10908
|
/**
|
|
@@ -17227,6 +17271,14 @@ var ConfigEntrySchema = object({
|
|
|
17227
17271
|
value: unknown(),
|
|
17228
17272
|
description: string().optional()
|
|
17229
17273
|
});
|
|
17274
|
+
var DeviceLinkModeSchema = _enum(["auto", "manual"]);
|
|
17275
|
+
/** One resolved linked device — the compact projection consumers need. */
|
|
17276
|
+
var LinkedDeviceSchema = object({
|
|
17277
|
+
deviceId: number(),
|
|
17278
|
+
name: string(),
|
|
17279
|
+
location: string().nullable(),
|
|
17280
|
+
features: array(string())
|
|
17281
|
+
});
|
|
17230
17282
|
var SavedDeviceRowSchema = object({
|
|
17231
17283
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
17232
17284
|
id: number(),
|
|
@@ -17448,7 +17500,10 @@ method(object({
|
|
|
17448
17500
|
}), _void(), {
|
|
17449
17501
|
kind: "mutation",
|
|
17450
17502
|
auth: "admin"
|
|
17451
|
-
}), 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() }),
|
|
17503
|
+
}), 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({
|
|
17504
|
+
mode: DeviceLinkModeSchema,
|
|
17505
|
+
devices: array(LinkedDeviceSchema)
|
|
17506
|
+
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
17452
17507
|
deviceId: number(),
|
|
17453
17508
|
values: record(string(), unknown())
|
|
17454
17509
|
}), object({ success: literal(true) }), {
|
|
@@ -18717,6 +18772,61 @@ var EventKindSchema = _enum([
|
|
|
18717
18772
|
"object",
|
|
18718
18773
|
"audio"
|
|
18719
18774
|
]);
|
|
18775
|
+
/**
|
|
18776
|
+
* Spatial filter for `listTracks` — the rect + polygon variants of the shared
|
|
18777
|
+
* MaskShape vocabulary (see `mask-shape.ts`). Coordinates are NORMALIZED 0..1
|
|
18778
|
+
* of the camera frame (top-left origin), matching the drawing-plane editor.
|
|
18779
|
+
*/
|
|
18780
|
+
var TrackZoneFilterSchema = discriminatedUnion("kind", [MaskRectShapeSchema, MaskPolygonShapeSchema]);
|
|
18781
|
+
/** Closed icon vocabulary so clients render a known glyph per kind. */
|
|
18782
|
+
var EventKindIconSchema = _enum([
|
|
18783
|
+
"motion",
|
|
18784
|
+
"audio",
|
|
18785
|
+
"person",
|
|
18786
|
+
"vehicle",
|
|
18787
|
+
"animal",
|
|
18788
|
+
"door",
|
|
18789
|
+
"pir",
|
|
18790
|
+
"smoke",
|
|
18791
|
+
"water",
|
|
18792
|
+
"button",
|
|
18793
|
+
"generic"
|
|
18794
|
+
]);
|
|
18795
|
+
var EventKindCategorySchema = _enum([
|
|
18796
|
+
"motion",
|
|
18797
|
+
"audio",
|
|
18798
|
+
"detection",
|
|
18799
|
+
"sensor",
|
|
18800
|
+
"custom"
|
|
18801
|
+
]);
|
|
18802
|
+
var EventKindDescriptorSchema = object({
|
|
18803
|
+
/** Stable kind id (e.g. 'motion', 'person', 'contact'). */
|
|
18804
|
+
kind: string(),
|
|
18805
|
+
label: string(),
|
|
18806
|
+
/** Hex color for timeline/legend rendering. */
|
|
18807
|
+
color: string(),
|
|
18808
|
+
icon: EventKindIconSchema,
|
|
18809
|
+
category: EventKindCategorySchema,
|
|
18810
|
+
/** Which cap + device contributes this kind. For built-ins the camera
|
|
18811
|
+
* itself; for sensor kinds the LINKED source device. */
|
|
18812
|
+
source: object({
|
|
18813
|
+
capName: string(),
|
|
18814
|
+
deviceId: number()
|
|
18815
|
+
})
|
|
18816
|
+
});
|
|
18817
|
+
var SensorEventSchema = object({
|
|
18818
|
+
id: string(),
|
|
18819
|
+
/** The CAMERA the event is attributed to (a sensor linked to N cameras
|
|
18820
|
+
* yields N rows, one per camera). */
|
|
18821
|
+
deviceId: number(),
|
|
18822
|
+
/** The linked sensor device whose state changed. */
|
|
18823
|
+
sourceDeviceId: number(),
|
|
18824
|
+
/** Event kind id — matches an `EventKindDescriptor.kind`. */
|
|
18825
|
+
kind: string(),
|
|
18826
|
+
/** Snapshot of the sensor cap's runtime-state slice at the change. */
|
|
18827
|
+
value: record(string(), unknown()).nullable(),
|
|
18828
|
+
timestamp: number()
|
|
18829
|
+
});
|
|
18720
18830
|
var TrackPositionSchema = object({
|
|
18721
18831
|
x: number(),
|
|
18722
18832
|
y: number(),
|
|
@@ -18730,6 +18840,30 @@ var TrackSnapshotSchema = object({
|
|
|
18730
18840
|
mediaKey: string()
|
|
18731
18841
|
});
|
|
18732
18842
|
/**
|
|
18843
|
+
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
18844
|
+
* divided by the track's detection-frame dims), computed at persist time.
|
|
18845
|
+
* Absent when the frame dims were unknown when the track was persisted
|
|
18846
|
+
* (legacy rows / dims-less sources) and on active (in-RAM) tracks.
|
|
18847
|
+
*/
|
|
18848
|
+
var TrackEnvelopeSchema = object({
|
|
18849
|
+
minX: number(),
|
|
18850
|
+
minY: number(),
|
|
18851
|
+
maxX: number(),
|
|
18852
|
+
maxY: number()
|
|
18853
|
+
});
|
|
18854
|
+
/**
|
|
18855
|
+
* Row projection for track list queries. `full` (default) returns the
|
|
18856
|
+
* complete Track including the frame-rate `positions[]` history and the
|
|
18857
|
+
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
18858
|
+
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
18859
|
+
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
18860
|
+
* zonesVisited, bestEventId, envelope) and returns `positions` /
|
|
18861
|
+
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
18862
|
+
* `getTrack`. Mirrors the event-store `projection` convention
|
|
18863
|
+
* (`getObjectEvents` et al.).
|
|
18864
|
+
*/
|
|
18865
|
+
var TrackProjectionSchema = _enum(["full", "slim"]);
|
|
18866
|
+
/**
|
|
18733
18867
|
* One audio-classification label heard on the track's camera while the
|
|
18734
18868
|
* track was alive, aggregated per label. An "episode" is one persisted
|
|
18735
18869
|
* audio event (the confident-classification path: score ≥ the device's
|
|
@@ -18780,7 +18914,11 @@ var TrackSchema = object({
|
|
|
18780
18914
|
/** Audio-classification labels heard on the camera during the track's
|
|
18781
18915
|
* life (score ≥ device `classificationMinScore`), aggregated per label.
|
|
18782
18916
|
* Absent on legacy rows / tracks with no confident audio. */
|
|
18783
|
-
audioLabels: array(TrackAudioLabelSchema).readonly().optional()
|
|
18917
|
+
audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
|
|
18918
|
+
/** Normalized 0..1 trajectory envelope (see {@link TrackEnvelopeSchema}).
|
|
18919
|
+
* Populated from the persisted envelope columns on historical reads;
|
|
18920
|
+
* absent on legacy rows, dims-less tracks and active (in-RAM) tracks. */
|
|
18921
|
+
envelope: TrackEnvelopeSchema.optional()
|
|
18784
18922
|
});
|
|
18785
18923
|
var BaseEventFields = {
|
|
18786
18924
|
id: string(),
|
|
@@ -18890,11 +19028,13 @@ var MediaFileSchema = object({
|
|
|
18890
19028
|
sizeBytes: number(),
|
|
18891
19029
|
timestamp: number()
|
|
18892
19030
|
});
|
|
19031
|
+
var DEFAULT_EVENT_QUERY_LIMIT = 1e3;
|
|
19032
|
+
var MAX_EVENT_QUERY_LIMIT = 5e3;
|
|
18893
19033
|
var DeviceEventQueryInput = object({
|
|
18894
19034
|
deviceId: number(),
|
|
18895
19035
|
since: number().optional(),
|
|
18896
19036
|
until: number().optional(),
|
|
18897
|
-
limit: number().int().min(1).max(
|
|
19037
|
+
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT),
|
|
18898
19038
|
/** `slim` drops heavy JSON fields (regions/bbox/zones) and carries an
|
|
18899
19039
|
* optional `mediaUrl` (populated by B5). `full` (default) keeps today's
|
|
18900
19040
|
* exact behaviour. Callers may omit this field — the store defaults to
|
|
@@ -18902,6 +19042,27 @@ var DeviceEventQueryInput = object({
|
|
|
18902
19042
|
projection: _enum(["full", "slim"]).optional()
|
|
18903
19043
|
});
|
|
18904
19044
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
19045
|
+
var RecentTracksQueryInput = object({
|
|
19046
|
+
/** Devices to merge. An empty array yields `{ tracks: [], nextCursor: null }`. */
|
|
19047
|
+
deviceIds: array(number()),
|
|
19048
|
+
/** Window lower bound on `lastSeen` (inclusive). */
|
|
19049
|
+
since: number().optional(),
|
|
19050
|
+
/** Window upper bound on `lastSeen` (inclusive). */
|
|
19051
|
+
until: number().optional(),
|
|
19052
|
+
/** Page size. Default 200, max 1000. */
|
|
19053
|
+
limit: number().int().min(1).max(1e3).default(200),
|
|
19054
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`.
|
|
19055
|
+
* Encodes the (lastSeen, trackId) sort position — treat as opaque. */
|
|
19056
|
+
cursor: string().optional(),
|
|
19057
|
+
/** See {@link TrackProjectionSchema}. Default `full`. */
|
|
19058
|
+
projection: TrackProjectionSchema.optional()
|
|
19059
|
+
});
|
|
19060
|
+
var RecentTracksPageSchema = object({
|
|
19061
|
+
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
19062
|
+
tracks: array(TrackSchema).readonly(),
|
|
19063
|
+
/** Cursor for the next page, or null when this page is the last. */
|
|
19064
|
+
nextCursor: string().nullable()
|
|
19065
|
+
});
|
|
18905
19066
|
var KeyEventQueryInput = object({
|
|
18906
19067
|
deviceId: number(),
|
|
18907
19068
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -18984,11 +19145,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18984
19145
|
deviceId: number(),
|
|
18985
19146
|
since: number().optional(),
|
|
18986
19147
|
until: number().optional(),
|
|
18987
|
-
limit: number().optional()
|
|
18988
|
-
|
|
19148
|
+
limit: number().optional(),
|
|
19149
|
+
/** Spatial filter — only tracks whose trajectory intersects the zone
|
|
19150
|
+
* (normalized 0..1 rect or polygon). SQL-prefiltered on the persisted
|
|
19151
|
+
* envelope columns, then precisely tested per position. Tracks with
|
|
19152
|
+
* an unknown envelope (no frame dims at persist time) always match. */
|
|
19153
|
+
zone: TrackZoneFilterSchema.optional(),
|
|
19154
|
+
/** See {@link TrackProjectionSchema}. Default `full` (backward
|
|
19155
|
+
* compatible — omitting the field keeps today's exact behaviour). */
|
|
19156
|
+
projection: TrackProjectionSchema.optional()
|
|
19157
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
18989
19158
|
kind: "mutation",
|
|
18990
19159
|
auth: "admin"
|
|
18991
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(
|
|
19160
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({
|
|
19161
|
+
deviceId: number(),
|
|
19162
|
+
since: number().optional(),
|
|
19163
|
+
until: number().optional(),
|
|
19164
|
+
kinds: array(string()).optional(),
|
|
19165
|
+
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
19166
|
+
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
18992
19167
|
deviceId: number(),
|
|
18993
19168
|
since: number(),
|
|
18994
19169
|
until: number(),
|
|
@@ -22206,7 +22381,12 @@ var RecordingStorageUsageSchema = object({
|
|
|
22206
22381
|
/**
|
|
22207
22382
|
* Result of locating footage at a wall-clock instant for one device/profile.
|
|
22208
22383
|
* `segment` carries the covering segment's window; `gap` reports the forward
|
|
22209
|
-
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
22384
|
+
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
22385
|
+
* and the backward covered edge `prevEndMs` (exclusive end of the nearest
|
|
22386
|
+
* footage behind the epoch; `null` when none — optional so older providers
|
|
22387
|
+
* that omit it stay valid). `prevEndMs` lets a backward frame-step hop the
|
|
22388
|
+
* small inter-segment cracks (durMs under-covers the span to the next
|
|
22389
|
+
* startMs by ~11-17 ms) instead of no-opping at a segment head.
|
|
22210
22390
|
*/
|
|
22211
22391
|
var LocateSegmentResultSchema = discriminatedUnion("kind", [object({
|
|
22212
22392
|
kind: literal("segment"),
|
|
@@ -22215,7 +22395,8 @@ var LocateSegmentResultSchema = discriminatedUnion("kind", [object({
|
|
|
22215
22395
|
bytes: number()
|
|
22216
22396
|
}), object({
|
|
22217
22397
|
kind: literal("gap"),
|
|
22218
|
-
nearestEdgeMs: number().nullable()
|
|
22398
|
+
nearestEdgeMs: number().nullable(),
|
|
22399
|
+
prevEndMs: number().nullable().optional()
|
|
22219
22400
|
})]);
|
|
22220
22401
|
/** Raw bytes of one finalized footage segment (read off disk on the recording node). */
|
|
22221
22402
|
var ReadSegmentBytesResultSchema = object({ data: _instanceof(Uint8Array) });
|
|
@@ -23784,6 +23965,12 @@ Object.freeze({
|
|
|
23784
23965
|
addonId: null,
|
|
23785
23966
|
access: "view"
|
|
23786
23967
|
},
|
|
23968
|
+
"deviceManager.getLinkedDevices": {
|
|
23969
|
+
capName: "device-manager",
|
|
23970
|
+
capScope: "system",
|
|
23971
|
+
addonId: null,
|
|
23972
|
+
access: "view"
|
|
23973
|
+
},
|
|
23787
23974
|
"deviceManager.getRoleDisplayDefaults": {
|
|
23788
23975
|
capName: "device-manager",
|
|
23789
23976
|
capScope: "system",
|
|
@@ -25338,6 +25525,12 @@ Object.freeze({
|
|
|
25338
25525
|
addonId: null,
|
|
25339
25526
|
access: "view"
|
|
25340
25527
|
},
|
|
25528
|
+
"pipelineAnalytics.getSensorEvents": {
|
|
25529
|
+
capName: "pipeline-analytics",
|
|
25530
|
+
capScope: "device",
|
|
25531
|
+
addonId: null,
|
|
25532
|
+
access: "view"
|
|
25533
|
+
},
|
|
25341
25534
|
"pipelineAnalytics.getTrack": {
|
|
25342
25535
|
capName: "pipeline-analytics",
|
|
25343
25536
|
capScope: "device",
|
|
@@ -25350,6 +25543,18 @@ Object.freeze({
|
|
|
25350
25543
|
addonId: null,
|
|
25351
25544
|
access: "view"
|
|
25352
25545
|
},
|
|
25546
|
+
"pipelineAnalytics.listEventKinds": {
|
|
25547
|
+
capName: "pipeline-analytics",
|
|
25548
|
+
capScope: "device",
|
|
25549
|
+
addonId: null,
|
|
25550
|
+
access: "view"
|
|
25551
|
+
},
|
|
25552
|
+
"pipelineAnalytics.listRecentTracks": {
|
|
25553
|
+
capName: "pipeline-analytics",
|
|
25554
|
+
capScope: "device",
|
|
25555
|
+
addonId: null,
|
|
25556
|
+
access: "view"
|
|
25557
|
+
},
|
|
25353
25558
|
"pipelineAnalytics.listTracks": {
|
|
25354
25559
|
capName: "pipeline-analytics",
|
|
25355
25560
|
capScope: "device",
|
package/dist/addon.mjs
CHANGED
|
@@ -37,7 +37,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
37
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
38
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
39
39
|
//#endregion
|
|
40
|
-
//#region ../types/dist/event-category-
|
|
40
|
+
//#region ../types/dist/event-category-H4AVePnn.mjs
|
|
41
41
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
42
42
|
EventCategory["SystemBoot"] = "system.boot";
|
|
43
43
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -187,6 +187,9 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
187
187
|
EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
|
|
188
188
|
EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
|
|
189
189
|
EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
|
|
190
|
+
/** Runner-sampled scrub thumbnail (~1/5 s/camera). Telemetry (D8): a lost
|
|
191
|
+
* thumb is a scrub gap the recorder's keyframe backfill covers. */
|
|
192
|
+
EventCategory["RecordingThumbSampled"] = "recording.thumb-sampled";
|
|
190
193
|
EventCategory["DetectionEvent"] = "detection.event";
|
|
191
194
|
EventCategory["SessionTrackNew"] = "session.track.new";
|
|
192
195
|
EventCategory["SessionTrackExpired"] = "session.track.expired";
|
|
@@ -7286,6 +7289,24 @@ var RecordingRetentionSchema = object({
|
|
|
7286
7289
|
maxSizeGb: number().min(0).optional()
|
|
7287
7290
|
});
|
|
7288
7291
|
/**
|
|
7292
|
+
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7293
|
+
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7294
|
+
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7295
|
+
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7296
|
+
*
|
|
7297
|
+
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7298
|
+
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7299
|
+
* preset changed over time renders every historical window at the dims it was
|
|
7300
|
+
* written with.
|
|
7301
|
+
*/
|
|
7302
|
+
var ScrubThumbnailPresetSchema = _enum([
|
|
7303
|
+
"minimal",
|
|
7304
|
+
"low",
|
|
7305
|
+
"standard",
|
|
7306
|
+
"high",
|
|
7307
|
+
"max"
|
|
7308
|
+
]);
|
|
7309
|
+
/**
|
|
7289
7310
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7290
7311
|
*
|
|
7291
7312
|
* `mode` is the authoritative storage choice; `schedule`/`triggers`/`pre`/`post`
|
|
@@ -7322,7 +7343,14 @@ var RecordingConfigSchema = object({
|
|
|
7322
7343
|
* derived into bands once via `migrateConfigToBands`.
|
|
7323
7344
|
*/
|
|
7324
7345
|
bands: array(RecordingBandSchema).optional(),
|
|
7325
|
-
retention: RecordingRetentionSchema.optional()
|
|
7346
|
+
retention: RecordingRetentionSchema.optional(),
|
|
7347
|
+
/**
|
|
7348
|
+
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7349
|
+
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7350
|
+
* windows only — existing sheets are immutable, and each window's index
|
|
7351
|
+
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7352
|
+
*/
|
|
7353
|
+
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7326
7354
|
});
|
|
7327
7355
|
/**
|
|
7328
7356
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
@@ -10834,10 +10862,23 @@ var deviceDiscoveryCapability = {
|
|
|
10834
10862
|
}
|
|
10835
10863
|
};
|
|
10836
10864
|
/**
|
|
10837
|
-
* Doorbell button cap.
|
|
10838
|
-
*
|
|
10839
|
-
*
|
|
10840
|
-
*
|
|
10865
|
+
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
10866
|
+
* name (same pattern as `snapshot`):
|
|
10867
|
+
*
|
|
10868
|
+
* - **Native** providers: registered per-device by device-driver
|
|
10869
|
+
* addons via `ctx.registerNativeCap` — either on a
|
|
10870
|
+
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
10871
|
+
* or directly on the camera (Reolink registers at camera level).
|
|
10872
|
+
* Emits an `onPressed` event every time the firmware pushes a
|
|
10873
|
+
* ring; status tracks the last press and a pressCount since start
|
|
10874
|
+
* (diagnostic).
|
|
10875
|
+
*
|
|
10876
|
+
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
10877
|
+
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
10878
|
+
* device (contact / switch / event-emitter …) into a doorbell for
|
|
10879
|
+
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
10880
|
+
* it per camera in the device-bindings UI, then picks the source
|
|
10881
|
+
* device + trigger in the per-device settings.
|
|
10841
10882
|
*
|
|
10842
10883
|
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
10843
10884
|
* — subscribers listening at the camera level receive ring events
|
|
@@ -10858,7 +10899,10 @@ var doorbellCapability = {
|
|
|
10858
10899
|
scope: "device",
|
|
10859
10900
|
deviceNative: true,
|
|
10860
10901
|
mode: "singleton",
|
|
10861
|
-
|
|
10902
|
+
kind: "wrapper",
|
|
10903
|
+
defaultActive: false,
|
|
10904
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
10905
|
+
exposesDeviceSettings: true,
|
|
10862
10906
|
methods: {},
|
|
10863
10907
|
events: {
|
|
10864
10908
|
/**
|
|
@@ -17227,6 +17271,14 @@ var ConfigEntrySchema = object({
|
|
|
17227
17271
|
value: unknown(),
|
|
17228
17272
|
description: string().optional()
|
|
17229
17273
|
});
|
|
17274
|
+
var DeviceLinkModeSchema = _enum(["auto", "manual"]);
|
|
17275
|
+
/** One resolved linked device — the compact projection consumers need. */
|
|
17276
|
+
var LinkedDeviceSchema = object({
|
|
17277
|
+
deviceId: number(),
|
|
17278
|
+
name: string(),
|
|
17279
|
+
location: string().nullable(),
|
|
17280
|
+
features: array(string())
|
|
17281
|
+
});
|
|
17230
17282
|
var SavedDeviceRowSchema = object({
|
|
17231
17283
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
17232
17284
|
id: number(),
|
|
@@ -17448,7 +17500,10 @@ method(object({
|
|
|
17448
17500
|
}), _void(), {
|
|
17449
17501
|
kind: "mutation",
|
|
17450
17502
|
auth: "admin"
|
|
17451
|
-
}), 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() }),
|
|
17503
|
+
}), 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({
|
|
17504
|
+
mode: DeviceLinkModeSchema,
|
|
17505
|
+
devices: array(LinkedDeviceSchema)
|
|
17506
|
+
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
17452
17507
|
deviceId: number(),
|
|
17453
17508
|
values: record(string(), unknown())
|
|
17454
17509
|
}), object({ success: literal(true) }), {
|
|
@@ -18717,6 +18772,61 @@ var EventKindSchema = _enum([
|
|
|
18717
18772
|
"object",
|
|
18718
18773
|
"audio"
|
|
18719
18774
|
]);
|
|
18775
|
+
/**
|
|
18776
|
+
* Spatial filter for `listTracks` — the rect + polygon variants of the shared
|
|
18777
|
+
* MaskShape vocabulary (see `mask-shape.ts`). Coordinates are NORMALIZED 0..1
|
|
18778
|
+
* of the camera frame (top-left origin), matching the drawing-plane editor.
|
|
18779
|
+
*/
|
|
18780
|
+
var TrackZoneFilterSchema = discriminatedUnion("kind", [MaskRectShapeSchema, MaskPolygonShapeSchema]);
|
|
18781
|
+
/** Closed icon vocabulary so clients render a known glyph per kind. */
|
|
18782
|
+
var EventKindIconSchema = _enum([
|
|
18783
|
+
"motion",
|
|
18784
|
+
"audio",
|
|
18785
|
+
"person",
|
|
18786
|
+
"vehicle",
|
|
18787
|
+
"animal",
|
|
18788
|
+
"door",
|
|
18789
|
+
"pir",
|
|
18790
|
+
"smoke",
|
|
18791
|
+
"water",
|
|
18792
|
+
"button",
|
|
18793
|
+
"generic"
|
|
18794
|
+
]);
|
|
18795
|
+
var EventKindCategorySchema = _enum([
|
|
18796
|
+
"motion",
|
|
18797
|
+
"audio",
|
|
18798
|
+
"detection",
|
|
18799
|
+
"sensor",
|
|
18800
|
+
"custom"
|
|
18801
|
+
]);
|
|
18802
|
+
var EventKindDescriptorSchema = object({
|
|
18803
|
+
/** Stable kind id (e.g. 'motion', 'person', 'contact'). */
|
|
18804
|
+
kind: string(),
|
|
18805
|
+
label: string(),
|
|
18806
|
+
/** Hex color for timeline/legend rendering. */
|
|
18807
|
+
color: string(),
|
|
18808
|
+
icon: EventKindIconSchema,
|
|
18809
|
+
category: EventKindCategorySchema,
|
|
18810
|
+
/** Which cap + device contributes this kind. For built-ins the camera
|
|
18811
|
+
* itself; for sensor kinds the LINKED source device. */
|
|
18812
|
+
source: object({
|
|
18813
|
+
capName: string(),
|
|
18814
|
+
deviceId: number()
|
|
18815
|
+
})
|
|
18816
|
+
});
|
|
18817
|
+
var SensorEventSchema = object({
|
|
18818
|
+
id: string(),
|
|
18819
|
+
/** The CAMERA the event is attributed to (a sensor linked to N cameras
|
|
18820
|
+
* yields N rows, one per camera). */
|
|
18821
|
+
deviceId: number(),
|
|
18822
|
+
/** The linked sensor device whose state changed. */
|
|
18823
|
+
sourceDeviceId: number(),
|
|
18824
|
+
/** Event kind id — matches an `EventKindDescriptor.kind`. */
|
|
18825
|
+
kind: string(),
|
|
18826
|
+
/** Snapshot of the sensor cap's runtime-state slice at the change. */
|
|
18827
|
+
value: record(string(), unknown()).nullable(),
|
|
18828
|
+
timestamp: number()
|
|
18829
|
+
});
|
|
18720
18830
|
var TrackPositionSchema = object({
|
|
18721
18831
|
x: number(),
|
|
18722
18832
|
y: number(),
|
|
@@ -18730,6 +18840,30 @@ var TrackSnapshotSchema = object({
|
|
|
18730
18840
|
mediaKey: string()
|
|
18731
18841
|
});
|
|
18732
18842
|
/**
|
|
18843
|
+
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
18844
|
+
* divided by the track's detection-frame dims), computed at persist time.
|
|
18845
|
+
* Absent when the frame dims were unknown when the track was persisted
|
|
18846
|
+
* (legacy rows / dims-less sources) and on active (in-RAM) tracks.
|
|
18847
|
+
*/
|
|
18848
|
+
var TrackEnvelopeSchema = object({
|
|
18849
|
+
minX: number(),
|
|
18850
|
+
minY: number(),
|
|
18851
|
+
maxX: number(),
|
|
18852
|
+
maxY: number()
|
|
18853
|
+
});
|
|
18854
|
+
/**
|
|
18855
|
+
* Row projection for track list queries. `full` (default) returns the
|
|
18856
|
+
* complete Track including the frame-rate `positions[]` history and the
|
|
18857
|
+
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
18858
|
+
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
18859
|
+
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
18860
|
+
* zonesVisited, bestEventId, envelope) and returns `positions` /
|
|
18861
|
+
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
18862
|
+
* `getTrack`. Mirrors the event-store `projection` convention
|
|
18863
|
+
* (`getObjectEvents` et al.).
|
|
18864
|
+
*/
|
|
18865
|
+
var TrackProjectionSchema = _enum(["full", "slim"]);
|
|
18866
|
+
/**
|
|
18733
18867
|
* One audio-classification label heard on the track's camera while the
|
|
18734
18868
|
* track was alive, aggregated per label. An "episode" is one persisted
|
|
18735
18869
|
* audio event (the confident-classification path: score ≥ the device's
|
|
@@ -18780,7 +18914,11 @@ var TrackSchema = object({
|
|
|
18780
18914
|
/** Audio-classification labels heard on the camera during the track's
|
|
18781
18915
|
* life (score ≥ device `classificationMinScore`), aggregated per label.
|
|
18782
18916
|
* Absent on legacy rows / tracks with no confident audio. */
|
|
18783
|
-
audioLabels: array(TrackAudioLabelSchema).readonly().optional()
|
|
18917
|
+
audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
|
|
18918
|
+
/** Normalized 0..1 trajectory envelope (see {@link TrackEnvelopeSchema}).
|
|
18919
|
+
* Populated from the persisted envelope columns on historical reads;
|
|
18920
|
+
* absent on legacy rows, dims-less tracks and active (in-RAM) tracks. */
|
|
18921
|
+
envelope: TrackEnvelopeSchema.optional()
|
|
18784
18922
|
});
|
|
18785
18923
|
var BaseEventFields = {
|
|
18786
18924
|
id: string(),
|
|
@@ -18890,11 +19028,13 @@ var MediaFileSchema = object({
|
|
|
18890
19028
|
sizeBytes: number(),
|
|
18891
19029
|
timestamp: number()
|
|
18892
19030
|
});
|
|
19031
|
+
var DEFAULT_EVENT_QUERY_LIMIT = 1e3;
|
|
19032
|
+
var MAX_EVENT_QUERY_LIMIT = 5e3;
|
|
18893
19033
|
var DeviceEventQueryInput = object({
|
|
18894
19034
|
deviceId: number(),
|
|
18895
19035
|
since: number().optional(),
|
|
18896
19036
|
until: number().optional(),
|
|
18897
|
-
limit: number().int().min(1).max(
|
|
19037
|
+
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT),
|
|
18898
19038
|
/** `slim` drops heavy JSON fields (regions/bbox/zones) and carries an
|
|
18899
19039
|
* optional `mediaUrl` (populated by B5). `full` (default) keeps today's
|
|
18900
19040
|
* exact behaviour. Callers may omit this field — the store defaults to
|
|
@@ -18902,6 +19042,27 @@ var DeviceEventQueryInput = object({
|
|
|
18902
19042
|
projection: _enum(["full", "slim"]).optional()
|
|
18903
19043
|
});
|
|
18904
19044
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
19045
|
+
var RecentTracksQueryInput = object({
|
|
19046
|
+
/** Devices to merge. An empty array yields `{ tracks: [], nextCursor: null }`. */
|
|
19047
|
+
deviceIds: array(number()),
|
|
19048
|
+
/** Window lower bound on `lastSeen` (inclusive). */
|
|
19049
|
+
since: number().optional(),
|
|
19050
|
+
/** Window upper bound on `lastSeen` (inclusive). */
|
|
19051
|
+
until: number().optional(),
|
|
19052
|
+
/** Page size. Default 200, max 1000. */
|
|
19053
|
+
limit: number().int().min(1).max(1e3).default(200),
|
|
19054
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`.
|
|
19055
|
+
* Encodes the (lastSeen, trackId) sort position — treat as opaque. */
|
|
19056
|
+
cursor: string().optional(),
|
|
19057
|
+
/** See {@link TrackProjectionSchema}. Default `full`. */
|
|
19058
|
+
projection: TrackProjectionSchema.optional()
|
|
19059
|
+
});
|
|
19060
|
+
var RecentTracksPageSchema = object({
|
|
19061
|
+
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
19062
|
+
tracks: array(TrackSchema).readonly(),
|
|
19063
|
+
/** Cursor for the next page, or null when this page is the last. */
|
|
19064
|
+
nextCursor: string().nullable()
|
|
19065
|
+
});
|
|
18905
19066
|
var KeyEventQueryInput = object({
|
|
18906
19067
|
deviceId: number(),
|
|
18907
19068
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -18984,11 +19145,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18984
19145
|
deviceId: number(),
|
|
18985
19146
|
since: number().optional(),
|
|
18986
19147
|
until: number().optional(),
|
|
18987
|
-
limit: number().optional()
|
|
18988
|
-
|
|
19148
|
+
limit: number().optional(),
|
|
19149
|
+
/** Spatial filter — only tracks whose trajectory intersects the zone
|
|
19150
|
+
* (normalized 0..1 rect or polygon). SQL-prefiltered on the persisted
|
|
19151
|
+
* envelope columns, then precisely tested per position. Tracks with
|
|
19152
|
+
* an unknown envelope (no frame dims at persist time) always match. */
|
|
19153
|
+
zone: TrackZoneFilterSchema.optional(),
|
|
19154
|
+
/** See {@link TrackProjectionSchema}. Default `full` (backward
|
|
19155
|
+
* compatible — omitting the field keeps today's exact behaviour). */
|
|
19156
|
+
projection: TrackProjectionSchema.optional()
|
|
19157
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
18989
19158
|
kind: "mutation",
|
|
18990
19159
|
auth: "admin"
|
|
18991
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(
|
|
19160
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({
|
|
19161
|
+
deviceId: number(),
|
|
19162
|
+
since: number().optional(),
|
|
19163
|
+
until: number().optional(),
|
|
19164
|
+
kinds: array(string()).optional(),
|
|
19165
|
+
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
19166
|
+
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
18992
19167
|
deviceId: number(),
|
|
18993
19168
|
since: number(),
|
|
18994
19169
|
until: number(),
|
|
@@ -22206,7 +22381,12 @@ var RecordingStorageUsageSchema = object({
|
|
|
22206
22381
|
/**
|
|
22207
22382
|
* Result of locating footage at a wall-clock instant for one device/profile.
|
|
22208
22383
|
* `segment` carries the covering segment's window; `gap` reports the forward
|
|
22209
|
-
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
22384
|
+
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
22385
|
+
* and the backward covered edge `prevEndMs` (exclusive end of the nearest
|
|
22386
|
+
* footage behind the epoch; `null` when none — optional so older providers
|
|
22387
|
+
* that omit it stay valid). `prevEndMs` lets a backward frame-step hop the
|
|
22388
|
+
* small inter-segment cracks (durMs under-covers the span to the next
|
|
22389
|
+
* startMs by ~11-17 ms) instead of no-opping at a segment head.
|
|
22210
22390
|
*/
|
|
22211
22391
|
var LocateSegmentResultSchema = discriminatedUnion("kind", [object({
|
|
22212
22392
|
kind: literal("segment"),
|
|
@@ -22215,7 +22395,8 @@ var LocateSegmentResultSchema = discriminatedUnion("kind", [object({
|
|
|
22215
22395
|
bytes: number()
|
|
22216
22396
|
}), object({
|
|
22217
22397
|
kind: literal("gap"),
|
|
22218
|
-
nearestEdgeMs: number().nullable()
|
|
22398
|
+
nearestEdgeMs: number().nullable(),
|
|
22399
|
+
prevEndMs: number().nullable().optional()
|
|
22219
22400
|
})]);
|
|
22220
22401
|
/** Raw bytes of one finalized footage segment (read off disk on the recording node). */
|
|
22221
22402
|
var ReadSegmentBytesResultSchema = object({ data: _instanceof(Uint8Array) });
|
|
@@ -23784,6 +23965,12 @@ Object.freeze({
|
|
|
23784
23965
|
addonId: null,
|
|
23785
23966
|
access: "view"
|
|
23786
23967
|
},
|
|
23968
|
+
"deviceManager.getLinkedDevices": {
|
|
23969
|
+
capName: "device-manager",
|
|
23970
|
+
capScope: "system",
|
|
23971
|
+
addonId: null,
|
|
23972
|
+
access: "view"
|
|
23973
|
+
},
|
|
23787
23974
|
"deviceManager.getRoleDisplayDefaults": {
|
|
23788
23975
|
capName: "device-manager",
|
|
23789
23976
|
capScope: "system",
|
|
@@ -25338,6 +25525,12 @@ Object.freeze({
|
|
|
25338
25525
|
addonId: null,
|
|
25339
25526
|
access: "view"
|
|
25340
25527
|
},
|
|
25528
|
+
"pipelineAnalytics.getSensorEvents": {
|
|
25529
|
+
capName: "pipeline-analytics",
|
|
25530
|
+
capScope: "device",
|
|
25531
|
+
addonId: null,
|
|
25532
|
+
access: "view"
|
|
25533
|
+
},
|
|
25341
25534
|
"pipelineAnalytics.getTrack": {
|
|
25342
25535
|
capName: "pipeline-analytics",
|
|
25343
25536
|
capScope: "device",
|
|
@@ -25350,6 +25543,18 @@ Object.freeze({
|
|
|
25350
25543
|
addonId: null,
|
|
25351
25544
|
access: "view"
|
|
25352
25545
|
},
|
|
25546
|
+
"pipelineAnalytics.listEventKinds": {
|
|
25547
|
+
capName: "pipeline-analytics",
|
|
25548
|
+
capScope: "device",
|
|
25549
|
+
addonId: null,
|
|
25550
|
+
access: "view"
|
|
25551
|
+
},
|
|
25552
|
+
"pipelineAnalytics.listRecentTracks": {
|
|
25553
|
+
capName: "pipeline-analytics",
|
|
25554
|
+
capScope: "device",
|
|
25555
|
+
addonId: null,
|
|
25556
|
+
access: "view"
|
|
25557
|
+
},
|
|
25353
25558
|
"pipelineAnalytics.listTracks": {
|
|
25354
25559
|
capName: "pipeline-analytics",
|
|
25355
25560
|
capScope: "device",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreame",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|