@camstack/addon-provider-gree 0.1.21 → 0.1.23
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
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
let dgram = require("dgram");
|
|
3
3
|
let crypto$1 = require("crypto");
|
|
4
4
|
let events = require("events");
|
|
5
|
-
//#region ../types/dist/event-category-
|
|
5
|
+
//#region ../types/dist/event-category-H4AVePnn.mjs
|
|
6
6
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
7
7
|
EventCategory["SystemBoot"] = "system.boot";
|
|
8
8
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -152,6 +152,9 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
152
152
|
EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
|
|
153
153
|
EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
|
|
154
154
|
EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
|
|
155
|
+
/** Runner-sampled scrub thumbnail (~1/5 s/camera). Telemetry (D8): a lost
|
|
156
|
+
* thumb is a scrub gap the recorder's keyframe backfill covers. */
|
|
157
|
+
EventCategory["RecordingThumbSampled"] = "recording.thumb-sampled";
|
|
155
158
|
EventCategory["DetectionEvent"] = "detection.event";
|
|
156
159
|
EventCategory["SessionTrackNew"] = "session.track.new";
|
|
157
160
|
EventCategory["SessionTrackExpired"] = "session.track.expired";
|
|
@@ -7251,6 +7254,24 @@ var RecordingRetentionSchema = object({
|
|
|
7251
7254
|
maxSizeGb: number().min(0).optional()
|
|
7252
7255
|
});
|
|
7253
7256
|
/**
|
|
7257
|
+
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7258
|
+
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7259
|
+
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7260
|
+
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7261
|
+
*
|
|
7262
|
+
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7263
|
+
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7264
|
+
* preset changed over time renders every historical window at the dims it was
|
|
7265
|
+
* written with.
|
|
7266
|
+
*/
|
|
7267
|
+
var ScrubThumbnailPresetSchema = _enum([
|
|
7268
|
+
"minimal",
|
|
7269
|
+
"low",
|
|
7270
|
+
"standard",
|
|
7271
|
+
"high",
|
|
7272
|
+
"max"
|
|
7273
|
+
]);
|
|
7274
|
+
/**
|
|
7254
7275
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7255
7276
|
*
|
|
7256
7277
|
* `mode` is the authoritative storage choice; `schedule`/`triggers`/`pre`/`post`
|
|
@@ -7287,7 +7308,14 @@ var RecordingConfigSchema = object({
|
|
|
7287
7308
|
* derived into bands once via `migrateConfigToBands`.
|
|
7288
7309
|
*/
|
|
7289
7310
|
bands: array(RecordingBandSchema).optional(),
|
|
7290
|
-
retention: RecordingRetentionSchema.optional()
|
|
7311
|
+
retention: RecordingRetentionSchema.optional(),
|
|
7312
|
+
/**
|
|
7313
|
+
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7314
|
+
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7315
|
+
* windows only — existing sheets are immutable, and each window's index
|
|
7316
|
+
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7317
|
+
*/
|
|
7318
|
+
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7291
7319
|
});
|
|
7292
7320
|
/**
|
|
7293
7321
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
@@ -10799,10 +10827,23 @@ var deviceDiscoveryCapability = {
|
|
|
10799
10827
|
}
|
|
10800
10828
|
};
|
|
10801
10829
|
/**
|
|
10802
|
-
* Doorbell button cap.
|
|
10803
|
-
*
|
|
10804
|
-
*
|
|
10805
|
-
*
|
|
10830
|
+
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
10831
|
+
* name (same pattern as `snapshot`):
|
|
10832
|
+
*
|
|
10833
|
+
* - **Native** providers: registered per-device by device-driver
|
|
10834
|
+
* addons via `ctx.registerNativeCap` — either on a
|
|
10835
|
+
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
10836
|
+
* or directly on the camera (Reolink registers at camera level).
|
|
10837
|
+
* Emits an `onPressed` event every time the firmware pushes a
|
|
10838
|
+
* ring; status tracks the last press and a pressCount since start
|
|
10839
|
+
* (diagnostic).
|
|
10840
|
+
*
|
|
10841
|
+
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
10842
|
+
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
10843
|
+
* device (contact / switch / event-emitter …) into a doorbell for
|
|
10844
|
+
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
10845
|
+
* it per camera in the device-bindings UI, then picks the source
|
|
10846
|
+
* device + trigger in the per-device settings.
|
|
10806
10847
|
*
|
|
10807
10848
|
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
10808
10849
|
* — subscribers listening at the camera level receive ring events
|
|
@@ -10823,7 +10864,10 @@ var doorbellCapability = {
|
|
|
10823
10864
|
scope: "device",
|
|
10824
10865
|
deviceNative: true,
|
|
10825
10866
|
mode: "singleton",
|
|
10826
|
-
|
|
10867
|
+
kind: "wrapper",
|
|
10868
|
+
defaultActive: false,
|
|
10869
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
10870
|
+
exposesDeviceSettings: true,
|
|
10827
10871
|
methods: {},
|
|
10828
10872
|
events: {
|
|
10829
10873
|
/**
|
|
@@ -17175,6 +17219,14 @@ var ConfigEntrySchema = object({
|
|
|
17175
17219
|
value: unknown(),
|
|
17176
17220
|
description: string().optional()
|
|
17177
17221
|
});
|
|
17222
|
+
var DeviceLinkModeSchema = _enum(["auto", "manual"]);
|
|
17223
|
+
/** One resolved linked device — the compact projection consumers need. */
|
|
17224
|
+
var LinkedDeviceSchema = object({
|
|
17225
|
+
deviceId: number(),
|
|
17226
|
+
name: string(),
|
|
17227
|
+
location: string().nullable(),
|
|
17228
|
+
features: array(string())
|
|
17229
|
+
});
|
|
17178
17230
|
var SavedDeviceRowSchema = object({
|
|
17179
17231
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
17180
17232
|
id: number(),
|
|
@@ -17396,7 +17448,10 @@ method(object({
|
|
|
17396
17448
|
}), _void(), {
|
|
17397
17449
|
kind: "mutation",
|
|
17398
17450
|
auth: "admin"
|
|
17399
|
-
}), 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() }),
|
|
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() }), object({
|
|
17452
|
+
mode: DeviceLinkModeSchema,
|
|
17453
|
+
devices: array(LinkedDeviceSchema)
|
|
17454
|
+
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
17400
17455
|
deviceId: number(),
|
|
17401
17456
|
values: record(string(), unknown())
|
|
17402
17457
|
}), object({ success: literal(true) }), {
|
|
@@ -18665,6 +18720,61 @@ var EventKindSchema = _enum([
|
|
|
18665
18720
|
"object",
|
|
18666
18721
|
"audio"
|
|
18667
18722
|
]);
|
|
18723
|
+
/**
|
|
18724
|
+
* Spatial filter for `listTracks` — the rect + polygon variants of the shared
|
|
18725
|
+
* MaskShape vocabulary (see `mask-shape.ts`). Coordinates are NORMALIZED 0..1
|
|
18726
|
+
* of the camera frame (top-left origin), matching the drawing-plane editor.
|
|
18727
|
+
*/
|
|
18728
|
+
var TrackZoneFilterSchema = discriminatedUnion("kind", [MaskRectShapeSchema, MaskPolygonShapeSchema]);
|
|
18729
|
+
/** Closed icon vocabulary so clients render a known glyph per kind. */
|
|
18730
|
+
var EventKindIconSchema = _enum([
|
|
18731
|
+
"motion",
|
|
18732
|
+
"audio",
|
|
18733
|
+
"person",
|
|
18734
|
+
"vehicle",
|
|
18735
|
+
"animal",
|
|
18736
|
+
"door",
|
|
18737
|
+
"pir",
|
|
18738
|
+
"smoke",
|
|
18739
|
+
"water",
|
|
18740
|
+
"button",
|
|
18741
|
+
"generic"
|
|
18742
|
+
]);
|
|
18743
|
+
var EventKindCategorySchema = _enum([
|
|
18744
|
+
"motion",
|
|
18745
|
+
"audio",
|
|
18746
|
+
"detection",
|
|
18747
|
+
"sensor",
|
|
18748
|
+
"custom"
|
|
18749
|
+
]);
|
|
18750
|
+
var EventKindDescriptorSchema = object({
|
|
18751
|
+
/** Stable kind id (e.g. 'motion', 'person', 'contact'). */
|
|
18752
|
+
kind: string(),
|
|
18753
|
+
label: string(),
|
|
18754
|
+
/** Hex color for timeline/legend rendering. */
|
|
18755
|
+
color: string(),
|
|
18756
|
+
icon: EventKindIconSchema,
|
|
18757
|
+
category: EventKindCategorySchema,
|
|
18758
|
+
/** Which cap + device contributes this kind. For built-ins the camera
|
|
18759
|
+
* itself; for sensor kinds the LINKED source device. */
|
|
18760
|
+
source: object({
|
|
18761
|
+
capName: string(),
|
|
18762
|
+
deviceId: number()
|
|
18763
|
+
})
|
|
18764
|
+
});
|
|
18765
|
+
var SensorEventSchema = object({
|
|
18766
|
+
id: string(),
|
|
18767
|
+
/** The CAMERA the event is attributed to (a sensor linked to N cameras
|
|
18768
|
+
* yields N rows, one per camera). */
|
|
18769
|
+
deviceId: number(),
|
|
18770
|
+
/** The linked sensor device whose state changed. */
|
|
18771
|
+
sourceDeviceId: number(),
|
|
18772
|
+
/** Event kind id — matches an `EventKindDescriptor.kind`. */
|
|
18773
|
+
kind: string(),
|
|
18774
|
+
/** Snapshot of the sensor cap's runtime-state slice at the change. */
|
|
18775
|
+
value: record(string(), unknown()).nullable(),
|
|
18776
|
+
timestamp: number()
|
|
18777
|
+
});
|
|
18668
18778
|
var TrackPositionSchema = object({
|
|
18669
18779
|
x: number(),
|
|
18670
18780
|
y: number(),
|
|
@@ -18678,6 +18788,30 @@ var TrackSnapshotSchema = object({
|
|
|
18678
18788
|
mediaKey: string()
|
|
18679
18789
|
});
|
|
18680
18790
|
/**
|
|
18791
|
+
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
18792
|
+
* divided by the track's detection-frame dims), computed at persist time.
|
|
18793
|
+
* Absent when the frame dims were unknown when the track was persisted
|
|
18794
|
+
* (legacy rows / dims-less sources) and on active (in-RAM) tracks.
|
|
18795
|
+
*/
|
|
18796
|
+
var TrackEnvelopeSchema = object({
|
|
18797
|
+
minX: number(),
|
|
18798
|
+
minY: number(),
|
|
18799
|
+
maxX: number(),
|
|
18800
|
+
maxY: number()
|
|
18801
|
+
});
|
|
18802
|
+
/**
|
|
18803
|
+
* Row projection for track list queries. `full` (default) returns the
|
|
18804
|
+
* complete Track including the frame-rate `positions[]` history and the
|
|
18805
|
+
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
18806
|
+
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
18807
|
+
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
18808
|
+
* zonesVisited, bestEventId, envelope) and returns `positions` /
|
|
18809
|
+
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
18810
|
+
* `getTrack`. Mirrors the event-store `projection` convention
|
|
18811
|
+
* (`getObjectEvents` et al.).
|
|
18812
|
+
*/
|
|
18813
|
+
var TrackProjectionSchema = _enum(["full", "slim"]);
|
|
18814
|
+
/**
|
|
18681
18815
|
* One audio-classification label heard on the track's camera while the
|
|
18682
18816
|
* track was alive, aggregated per label. An "episode" is one persisted
|
|
18683
18817
|
* audio event (the confident-classification path: score ≥ the device's
|
|
@@ -18728,7 +18862,11 @@ var TrackSchema = object({
|
|
|
18728
18862
|
/** Audio-classification labels heard on the camera during the track's
|
|
18729
18863
|
* life (score ≥ device `classificationMinScore`), aggregated per label.
|
|
18730
18864
|
* Absent on legacy rows / tracks with no confident audio. */
|
|
18731
|
-
audioLabels: array(TrackAudioLabelSchema).readonly().optional()
|
|
18865
|
+
audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
|
|
18866
|
+
/** Normalized 0..1 trajectory envelope (see {@link TrackEnvelopeSchema}).
|
|
18867
|
+
* Populated from the persisted envelope columns on historical reads;
|
|
18868
|
+
* absent on legacy rows, dims-less tracks and active (in-RAM) tracks. */
|
|
18869
|
+
envelope: TrackEnvelopeSchema.optional()
|
|
18732
18870
|
});
|
|
18733
18871
|
var BaseEventFields = {
|
|
18734
18872
|
id: string(),
|
|
@@ -18838,11 +18976,13 @@ var MediaFileSchema = object({
|
|
|
18838
18976
|
sizeBytes: number(),
|
|
18839
18977
|
timestamp: number()
|
|
18840
18978
|
});
|
|
18979
|
+
var DEFAULT_EVENT_QUERY_LIMIT = 1e3;
|
|
18980
|
+
var MAX_EVENT_QUERY_LIMIT = 5e3;
|
|
18841
18981
|
var DeviceEventQueryInput = object({
|
|
18842
18982
|
deviceId: number(),
|
|
18843
18983
|
since: number().optional(),
|
|
18844
18984
|
until: number().optional(),
|
|
18845
|
-
limit: number().int().min(1).max(
|
|
18985
|
+
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT),
|
|
18846
18986
|
/** `slim` drops heavy JSON fields (regions/bbox/zones) and carries an
|
|
18847
18987
|
* optional `mediaUrl` (populated by B5). `full` (default) keeps today's
|
|
18848
18988
|
* exact behaviour. Callers may omit this field — the store defaults to
|
|
@@ -18850,6 +18990,27 @@ var DeviceEventQueryInput = object({
|
|
|
18850
18990
|
projection: _enum(["full", "slim"]).optional()
|
|
18851
18991
|
});
|
|
18852
18992
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
18993
|
+
var RecentTracksQueryInput = object({
|
|
18994
|
+
/** Devices to merge. An empty array yields `{ tracks: [], nextCursor: null }`. */
|
|
18995
|
+
deviceIds: array(number()),
|
|
18996
|
+
/** Window lower bound on `lastSeen` (inclusive). */
|
|
18997
|
+
since: number().optional(),
|
|
18998
|
+
/** Window upper bound on `lastSeen` (inclusive). */
|
|
18999
|
+
until: number().optional(),
|
|
19000
|
+
/** Page size. Default 200, max 1000. */
|
|
19001
|
+
limit: number().int().min(1).max(1e3).default(200),
|
|
19002
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`.
|
|
19003
|
+
* Encodes the (lastSeen, trackId) sort position — treat as opaque. */
|
|
19004
|
+
cursor: string().optional(),
|
|
19005
|
+
/** See {@link TrackProjectionSchema}. Default `full`. */
|
|
19006
|
+
projection: TrackProjectionSchema.optional()
|
|
19007
|
+
});
|
|
19008
|
+
var RecentTracksPageSchema = object({
|
|
19009
|
+
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
19010
|
+
tracks: array(TrackSchema).readonly(),
|
|
19011
|
+
/** Cursor for the next page, or null when this page is the last. */
|
|
19012
|
+
nextCursor: string().nullable()
|
|
19013
|
+
});
|
|
18853
19014
|
var KeyEventQueryInput = object({
|
|
18854
19015
|
deviceId: number(),
|
|
18855
19016
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -18932,11 +19093,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18932
19093
|
deviceId: number(),
|
|
18933
19094
|
since: number().optional(),
|
|
18934
19095
|
until: number().optional(),
|
|
18935
|
-
limit: number().optional()
|
|
18936
|
-
|
|
19096
|
+
limit: number().optional(),
|
|
19097
|
+
/** Spatial filter — only tracks whose trajectory intersects the zone
|
|
19098
|
+
* (normalized 0..1 rect or polygon). SQL-prefiltered on the persisted
|
|
19099
|
+
* envelope columns, then precisely tested per position. Tracks with
|
|
19100
|
+
* an unknown envelope (no frame dims at persist time) always match. */
|
|
19101
|
+
zone: TrackZoneFilterSchema.optional(),
|
|
19102
|
+
/** See {@link TrackProjectionSchema}. Default `full` (backward
|
|
19103
|
+
* compatible — omitting the field keeps today's exact behaviour). */
|
|
19104
|
+
projection: TrackProjectionSchema.optional()
|
|
19105
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
18937
19106
|
kind: "mutation",
|
|
18938
19107
|
auth: "admin"
|
|
18939
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(
|
|
19108
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({
|
|
19109
|
+
deviceId: number(),
|
|
19110
|
+
since: number().optional(),
|
|
19111
|
+
until: number().optional(),
|
|
19112
|
+
kinds: array(string()).optional(),
|
|
19113
|
+
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
19114
|
+
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
18940
19115
|
deviceId: number(),
|
|
18941
19116
|
since: number(),
|
|
18942
19117
|
until: number(),
|
|
@@ -22137,7 +22312,12 @@ var RecordingStorageUsageSchema = object({
|
|
|
22137
22312
|
/**
|
|
22138
22313
|
* Result of locating footage at a wall-clock instant for one device/profile.
|
|
22139
22314
|
* `segment` carries the covering segment's window; `gap` reports the forward
|
|
22140
|
-
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
22315
|
+
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
22316
|
+
* and the backward covered edge `prevEndMs` (exclusive end of the nearest
|
|
22317
|
+
* footage behind the epoch; `null` when none — optional so older providers
|
|
22318
|
+
* that omit it stay valid). `prevEndMs` lets a backward frame-step hop the
|
|
22319
|
+
* small inter-segment cracks (durMs under-covers the span to the next
|
|
22320
|
+
* startMs by ~11-17 ms) instead of no-opping at a segment head.
|
|
22141
22321
|
*/
|
|
22142
22322
|
var LocateSegmentResultSchema = discriminatedUnion("kind", [object({
|
|
22143
22323
|
kind: literal("segment"),
|
|
@@ -22146,7 +22326,8 @@ var LocateSegmentResultSchema = discriminatedUnion("kind", [object({
|
|
|
22146
22326
|
bytes: number()
|
|
22147
22327
|
}), object({
|
|
22148
22328
|
kind: literal("gap"),
|
|
22149
|
-
nearestEdgeMs: number().nullable()
|
|
22329
|
+
nearestEdgeMs: number().nullable(),
|
|
22330
|
+
prevEndMs: number().nullable().optional()
|
|
22150
22331
|
})]);
|
|
22151
22332
|
/** Raw bytes of one finalized footage segment (read off disk on the recording node). */
|
|
22152
22333
|
var ReadSegmentBytesResultSchema = object({ data: _instanceof(Uint8Array) });
|
|
@@ -23715,6 +23896,12 @@ Object.freeze({
|
|
|
23715
23896
|
addonId: null,
|
|
23716
23897
|
access: "view"
|
|
23717
23898
|
},
|
|
23899
|
+
"deviceManager.getLinkedDevices": {
|
|
23900
|
+
capName: "device-manager",
|
|
23901
|
+
capScope: "system",
|
|
23902
|
+
addonId: null,
|
|
23903
|
+
access: "view"
|
|
23904
|
+
},
|
|
23718
23905
|
"deviceManager.getRoleDisplayDefaults": {
|
|
23719
23906
|
capName: "device-manager",
|
|
23720
23907
|
capScope: "system",
|
|
@@ -25269,6 +25456,12 @@ Object.freeze({
|
|
|
25269
25456
|
addonId: null,
|
|
25270
25457
|
access: "view"
|
|
25271
25458
|
},
|
|
25459
|
+
"pipelineAnalytics.getSensorEvents": {
|
|
25460
|
+
capName: "pipeline-analytics",
|
|
25461
|
+
capScope: "device",
|
|
25462
|
+
addonId: null,
|
|
25463
|
+
access: "view"
|
|
25464
|
+
},
|
|
25272
25465
|
"pipelineAnalytics.getTrack": {
|
|
25273
25466
|
capName: "pipeline-analytics",
|
|
25274
25467
|
capScope: "device",
|
|
@@ -25281,6 +25474,18 @@ Object.freeze({
|
|
|
25281
25474
|
addonId: null,
|
|
25282
25475
|
access: "view"
|
|
25283
25476
|
},
|
|
25477
|
+
"pipelineAnalytics.listEventKinds": {
|
|
25478
|
+
capName: "pipeline-analytics",
|
|
25479
|
+
capScope: "device",
|
|
25480
|
+
addonId: null,
|
|
25481
|
+
access: "view"
|
|
25482
|
+
},
|
|
25483
|
+
"pipelineAnalytics.listRecentTracks": {
|
|
25484
|
+
capName: "pipeline-analytics",
|
|
25485
|
+
capScope: "device",
|
|
25486
|
+
addonId: null,
|
|
25487
|
+
access: "view"
|
|
25488
|
+
},
|
|
25284
25489
|
"pipelineAnalytics.listTracks": {
|
|
25285
25490
|
capName: "pipeline-analytics",
|
|
25286
25491
|
capScope: "device",
|
package/dist/addon.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createSocket } from "dgram";
|
|
2
2
|
import { createCipheriv, createDecipheriv } from "crypto";
|
|
3
3
|
import { EventEmitter } from "events";
|
|
4
|
-
//#region ../types/dist/event-category-
|
|
4
|
+
//#region ../types/dist/event-category-H4AVePnn.mjs
|
|
5
5
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
6
6
|
EventCategory["SystemBoot"] = "system.boot";
|
|
7
7
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -151,6 +151,9 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
151
151
|
EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
|
|
152
152
|
EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
|
|
153
153
|
EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
|
|
154
|
+
/** Runner-sampled scrub thumbnail (~1/5 s/camera). Telemetry (D8): a lost
|
|
155
|
+
* thumb is a scrub gap the recorder's keyframe backfill covers. */
|
|
156
|
+
EventCategory["RecordingThumbSampled"] = "recording.thumb-sampled";
|
|
154
157
|
EventCategory["DetectionEvent"] = "detection.event";
|
|
155
158
|
EventCategory["SessionTrackNew"] = "session.track.new";
|
|
156
159
|
EventCategory["SessionTrackExpired"] = "session.track.expired";
|
|
@@ -7250,6 +7253,24 @@ var RecordingRetentionSchema = object({
|
|
|
7250
7253
|
maxSizeGb: number().min(0).optional()
|
|
7251
7254
|
});
|
|
7252
7255
|
/**
|
|
7256
|
+
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7257
|
+
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7258
|
+
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7259
|
+
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7260
|
+
*
|
|
7261
|
+
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7262
|
+
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7263
|
+
* preset changed over time renders every historical window at the dims it was
|
|
7264
|
+
* written with.
|
|
7265
|
+
*/
|
|
7266
|
+
var ScrubThumbnailPresetSchema = _enum([
|
|
7267
|
+
"minimal",
|
|
7268
|
+
"low",
|
|
7269
|
+
"standard",
|
|
7270
|
+
"high",
|
|
7271
|
+
"max"
|
|
7272
|
+
]);
|
|
7273
|
+
/**
|
|
7253
7274
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7254
7275
|
*
|
|
7255
7276
|
* `mode` is the authoritative storage choice; `schedule`/`triggers`/`pre`/`post`
|
|
@@ -7286,7 +7307,14 @@ var RecordingConfigSchema = object({
|
|
|
7286
7307
|
* derived into bands once via `migrateConfigToBands`.
|
|
7287
7308
|
*/
|
|
7288
7309
|
bands: array(RecordingBandSchema).optional(),
|
|
7289
|
-
retention: RecordingRetentionSchema.optional()
|
|
7310
|
+
retention: RecordingRetentionSchema.optional(),
|
|
7311
|
+
/**
|
|
7312
|
+
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7313
|
+
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7314
|
+
* windows only — existing sheets are immutable, and each window's index
|
|
7315
|
+
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7316
|
+
*/
|
|
7317
|
+
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7290
7318
|
});
|
|
7291
7319
|
/**
|
|
7292
7320
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
@@ -10798,10 +10826,23 @@ var deviceDiscoveryCapability = {
|
|
|
10798
10826
|
}
|
|
10799
10827
|
};
|
|
10800
10828
|
/**
|
|
10801
|
-
* Doorbell button cap.
|
|
10802
|
-
*
|
|
10803
|
-
*
|
|
10804
|
-
*
|
|
10829
|
+
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
10830
|
+
* name (same pattern as `snapshot`):
|
|
10831
|
+
*
|
|
10832
|
+
* - **Native** providers: registered per-device by device-driver
|
|
10833
|
+
* addons via `ctx.registerNativeCap` — either on a
|
|
10834
|
+
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
10835
|
+
* or directly on the camera (Reolink registers at camera level).
|
|
10836
|
+
* Emits an `onPressed` event every time the firmware pushes a
|
|
10837
|
+
* ring; status tracks the last press and a pressCount since start
|
|
10838
|
+
* (diagnostic).
|
|
10839
|
+
*
|
|
10840
|
+
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
10841
|
+
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
10842
|
+
* device (contact / switch / event-emitter …) into a doorbell for
|
|
10843
|
+
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
10844
|
+
* it per camera in the device-bindings UI, then picks the source
|
|
10845
|
+
* device + trigger in the per-device settings.
|
|
10805
10846
|
*
|
|
10806
10847
|
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
10807
10848
|
* — subscribers listening at the camera level receive ring events
|
|
@@ -10822,7 +10863,10 @@ var doorbellCapability = {
|
|
|
10822
10863
|
scope: "device",
|
|
10823
10864
|
deviceNative: true,
|
|
10824
10865
|
mode: "singleton",
|
|
10825
|
-
|
|
10866
|
+
kind: "wrapper",
|
|
10867
|
+
defaultActive: false,
|
|
10868
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
10869
|
+
exposesDeviceSettings: true,
|
|
10826
10870
|
methods: {},
|
|
10827
10871
|
events: {
|
|
10828
10872
|
/**
|
|
@@ -17174,6 +17218,14 @@ var ConfigEntrySchema = object({
|
|
|
17174
17218
|
value: unknown(),
|
|
17175
17219
|
description: string().optional()
|
|
17176
17220
|
});
|
|
17221
|
+
var DeviceLinkModeSchema = _enum(["auto", "manual"]);
|
|
17222
|
+
/** One resolved linked device — the compact projection consumers need. */
|
|
17223
|
+
var LinkedDeviceSchema = object({
|
|
17224
|
+
deviceId: number(),
|
|
17225
|
+
name: string(),
|
|
17226
|
+
location: string().nullable(),
|
|
17227
|
+
features: array(string())
|
|
17228
|
+
});
|
|
17177
17229
|
var SavedDeviceRowSchema = object({
|
|
17178
17230
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
17179
17231
|
id: number(),
|
|
@@ -17395,7 +17447,10 @@ method(object({
|
|
|
17395
17447
|
}), _void(), {
|
|
17396
17448
|
kind: "mutation",
|
|
17397
17449
|
auth: "admin"
|
|
17398
|
-
}), 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() }),
|
|
17450
|
+
}), 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({
|
|
17451
|
+
mode: DeviceLinkModeSchema,
|
|
17452
|
+
devices: array(LinkedDeviceSchema)
|
|
17453
|
+
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
17399
17454
|
deviceId: number(),
|
|
17400
17455
|
values: record(string(), unknown())
|
|
17401
17456
|
}), object({ success: literal(true) }), {
|
|
@@ -18664,6 +18719,61 @@ var EventKindSchema = _enum([
|
|
|
18664
18719
|
"object",
|
|
18665
18720
|
"audio"
|
|
18666
18721
|
]);
|
|
18722
|
+
/**
|
|
18723
|
+
* Spatial filter for `listTracks` — the rect + polygon variants of the shared
|
|
18724
|
+
* MaskShape vocabulary (see `mask-shape.ts`). Coordinates are NORMALIZED 0..1
|
|
18725
|
+
* of the camera frame (top-left origin), matching the drawing-plane editor.
|
|
18726
|
+
*/
|
|
18727
|
+
var TrackZoneFilterSchema = discriminatedUnion("kind", [MaskRectShapeSchema, MaskPolygonShapeSchema]);
|
|
18728
|
+
/** Closed icon vocabulary so clients render a known glyph per kind. */
|
|
18729
|
+
var EventKindIconSchema = _enum([
|
|
18730
|
+
"motion",
|
|
18731
|
+
"audio",
|
|
18732
|
+
"person",
|
|
18733
|
+
"vehicle",
|
|
18734
|
+
"animal",
|
|
18735
|
+
"door",
|
|
18736
|
+
"pir",
|
|
18737
|
+
"smoke",
|
|
18738
|
+
"water",
|
|
18739
|
+
"button",
|
|
18740
|
+
"generic"
|
|
18741
|
+
]);
|
|
18742
|
+
var EventKindCategorySchema = _enum([
|
|
18743
|
+
"motion",
|
|
18744
|
+
"audio",
|
|
18745
|
+
"detection",
|
|
18746
|
+
"sensor",
|
|
18747
|
+
"custom"
|
|
18748
|
+
]);
|
|
18749
|
+
var EventKindDescriptorSchema = object({
|
|
18750
|
+
/** Stable kind id (e.g. 'motion', 'person', 'contact'). */
|
|
18751
|
+
kind: string(),
|
|
18752
|
+
label: string(),
|
|
18753
|
+
/** Hex color for timeline/legend rendering. */
|
|
18754
|
+
color: string(),
|
|
18755
|
+
icon: EventKindIconSchema,
|
|
18756
|
+
category: EventKindCategorySchema,
|
|
18757
|
+
/** Which cap + device contributes this kind. For built-ins the camera
|
|
18758
|
+
* itself; for sensor kinds the LINKED source device. */
|
|
18759
|
+
source: object({
|
|
18760
|
+
capName: string(),
|
|
18761
|
+
deviceId: number()
|
|
18762
|
+
})
|
|
18763
|
+
});
|
|
18764
|
+
var SensorEventSchema = object({
|
|
18765
|
+
id: string(),
|
|
18766
|
+
/** The CAMERA the event is attributed to (a sensor linked to N cameras
|
|
18767
|
+
* yields N rows, one per camera). */
|
|
18768
|
+
deviceId: number(),
|
|
18769
|
+
/** The linked sensor device whose state changed. */
|
|
18770
|
+
sourceDeviceId: number(),
|
|
18771
|
+
/** Event kind id — matches an `EventKindDescriptor.kind`. */
|
|
18772
|
+
kind: string(),
|
|
18773
|
+
/** Snapshot of the sensor cap's runtime-state slice at the change. */
|
|
18774
|
+
value: record(string(), unknown()).nullable(),
|
|
18775
|
+
timestamp: number()
|
|
18776
|
+
});
|
|
18667
18777
|
var TrackPositionSchema = object({
|
|
18668
18778
|
x: number(),
|
|
18669
18779
|
y: number(),
|
|
@@ -18677,6 +18787,30 @@ var TrackSnapshotSchema = object({
|
|
|
18677
18787
|
mediaKey: string()
|
|
18678
18788
|
});
|
|
18679
18789
|
/**
|
|
18790
|
+
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
18791
|
+
* divided by the track's detection-frame dims), computed at persist time.
|
|
18792
|
+
* Absent when the frame dims were unknown when the track was persisted
|
|
18793
|
+
* (legacy rows / dims-less sources) and on active (in-RAM) tracks.
|
|
18794
|
+
*/
|
|
18795
|
+
var TrackEnvelopeSchema = object({
|
|
18796
|
+
minX: number(),
|
|
18797
|
+
minY: number(),
|
|
18798
|
+
maxX: number(),
|
|
18799
|
+
maxY: number()
|
|
18800
|
+
});
|
|
18801
|
+
/**
|
|
18802
|
+
* Row projection for track list queries. `full` (default) returns the
|
|
18803
|
+
* complete Track including the frame-rate `positions[]` history and the
|
|
18804
|
+
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
18805
|
+
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
18806
|
+
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
18807
|
+
* zonesVisited, bestEventId, envelope) and returns `positions` /
|
|
18808
|
+
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
18809
|
+
* `getTrack`. Mirrors the event-store `projection` convention
|
|
18810
|
+
* (`getObjectEvents` et al.).
|
|
18811
|
+
*/
|
|
18812
|
+
var TrackProjectionSchema = _enum(["full", "slim"]);
|
|
18813
|
+
/**
|
|
18680
18814
|
* One audio-classification label heard on the track's camera while the
|
|
18681
18815
|
* track was alive, aggregated per label. An "episode" is one persisted
|
|
18682
18816
|
* audio event (the confident-classification path: score ≥ the device's
|
|
@@ -18727,7 +18861,11 @@ var TrackSchema = object({
|
|
|
18727
18861
|
/** Audio-classification labels heard on the camera during the track's
|
|
18728
18862
|
* life (score ≥ device `classificationMinScore`), aggregated per label.
|
|
18729
18863
|
* Absent on legacy rows / tracks with no confident audio. */
|
|
18730
|
-
audioLabels: array(TrackAudioLabelSchema).readonly().optional()
|
|
18864
|
+
audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
|
|
18865
|
+
/** Normalized 0..1 trajectory envelope (see {@link TrackEnvelopeSchema}).
|
|
18866
|
+
* Populated from the persisted envelope columns on historical reads;
|
|
18867
|
+
* absent on legacy rows, dims-less tracks and active (in-RAM) tracks. */
|
|
18868
|
+
envelope: TrackEnvelopeSchema.optional()
|
|
18731
18869
|
});
|
|
18732
18870
|
var BaseEventFields = {
|
|
18733
18871
|
id: string(),
|
|
@@ -18837,11 +18975,13 @@ var MediaFileSchema = object({
|
|
|
18837
18975
|
sizeBytes: number(),
|
|
18838
18976
|
timestamp: number()
|
|
18839
18977
|
});
|
|
18978
|
+
var DEFAULT_EVENT_QUERY_LIMIT = 1e3;
|
|
18979
|
+
var MAX_EVENT_QUERY_LIMIT = 5e3;
|
|
18840
18980
|
var DeviceEventQueryInput = object({
|
|
18841
18981
|
deviceId: number(),
|
|
18842
18982
|
since: number().optional(),
|
|
18843
18983
|
until: number().optional(),
|
|
18844
|
-
limit: number().int().min(1).max(
|
|
18984
|
+
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT),
|
|
18845
18985
|
/** `slim` drops heavy JSON fields (regions/bbox/zones) and carries an
|
|
18846
18986
|
* optional `mediaUrl` (populated by B5). `full` (default) keeps today's
|
|
18847
18987
|
* exact behaviour. Callers may omit this field — the store defaults to
|
|
@@ -18849,6 +18989,27 @@ var DeviceEventQueryInput = object({
|
|
|
18849
18989
|
projection: _enum(["full", "slim"]).optional()
|
|
18850
18990
|
});
|
|
18851
18991
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
18992
|
+
var RecentTracksQueryInput = object({
|
|
18993
|
+
/** Devices to merge. An empty array yields `{ tracks: [], nextCursor: null }`. */
|
|
18994
|
+
deviceIds: array(number()),
|
|
18995
|
+
/** Window lower bound on `lastSeen` (inclusive). */
|
|
18996
|
+
since: number().optional(),
|
|
18997
|
+
/** Window upper bound on `lastSeen` (inclusive). */
|
|
18998
|
+
until: number().optional(),
|
|
18999
|
+
/** Page size. Default 200, max 1000. */
|
|
19000
|
+
limit: number().int().min(1).max(1e3).default(200),
|
|
19001
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`.
|
|
19002
|
+
* Encodes the (lastSeen, trackId) sort position — treat as opaque. */
|
|
19003
|
+
cursor: string().optional(),
|
|
19004
|
+
/** See {@link TrackProjectionSchema}. Default `full`. */
|
|
19005
|
+
projection: TrackProjectionSchema.optional()
|
|
19006
|
+
});
|
|
19007
|
+
var RecentTracksPageSchema = object({
|
|
19008
|
+
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
19009
|
+
tracks: array(TrackSchema).readonly(),
|
|
19010
|
+
/** Cursor for the next page, or null when this page is the last. */
|
|
19011
|
+
nextCursor: string().nullable()
|
|
19012
|
+
});
|
|
18852
19013
|
var KeyEventQueryInput = object({
|
|
18853
19014
|
deviceId: number(),
|
|
18854
19015
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -18931,11 +19092,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18931
19092
|
deviceId: number(),
|
|
18932
19093
|
since: number().optional(),
|
|
18933
19094
|
until: number().optional(),
|
|
18934
|
-
limit: number().optional()
|
|
18935
|
-
|
|
19095
|
+
limit: number().optional(),
|
|
19096
|
+
/** Spatial filter — only tracks whose trajectory intersects the zone
|
|
19097
|
+
* (normalized 0..1 rect or polygon). SQL-prefiltered on the persisted
|
|
19098
|
+
* envelope columns, then precisely tested per position. Tracks with
|
|
19099
|
+
* an unknown envelope (no frame dims at persist time) always match. */
|
|
19100
|
+
zone: TrackZoneFilterSchema.optional(),
|
|
19101
|
+
/** See {@link TrackProjectionSchema}. Default `full` (backward
|
|
19102
|
+
* compatible — omitting the field keeps today's exact behaviour). */
|
|
19103
|
+
projection: TrackProjectionSchema.optional()
|
|
19104
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
18936
19105
|
kind: "mutation",
|
|
18937
19106
|
auth: "admin"
|
|
18938
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(
|
|
19107
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({
|
|
19108
|
+
deviceId: number(),
|
|
19109
|
+
since: number().optional(),
|
|
19110
|
+
until: number().optional(),
|
|
19111
|
+
kinds: array(string()).optional(),
|
|
19112
|
+
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
19113
|
+
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
18939
19114
|
deviceId: number(),
|
|
18940
19115
|
since: number(),
|
|
18941
19116
|
until: number(),
|
|
@@ -22136,7 +22311,12 @@ var RecordingStorageUsageSchema = object({
|
|
|
22136
22311
|
/**
|
|
22137
22312
|
* Result of locating footage at a wall-clock instant for one device/profile.
|
|
22138
22313
|
* `segment` carries the covering segment's window; `gap` reports the forward
|
|
22139
|
-
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
22314
|
+
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
22315
|
+
* and the backward covered edge `prevEndMs` (exclusive end of the nearest
|
|
22316
|
+
* footage behind the epoch; `null` when none — optional so older providers
|
|
22317
|
+
* that omit it stay valid). `prevEndMs` lets a backward frame-step hop the
|
|
22318
|
+
* small inter-segment cracks (durMs under-covers the span to the next
|
|
22319
|
+
* startMs by ~11-17 ms) instead of no-opping at a segment head.
|
|
22140
22320
|
*/
|
|
22141
22321
|
var LocateSegmentResultSchema = discriminatedUnion("kind", [object({
|
|
22142
22322
|
kind: literal("segment"),
|
|
@@ -22145,7 +22325,8 @@ var LocateSegmentResultSchema = discriminatedUnion("kind", [object({
|
|
|
22145
22325
|
bytes: number()
|
|
22146
22326
|
}), object({
|
|
22147
22327
|
kind: literal("gap"),
|
|
22148
|
-
nearestEdgeMs: number().nullable()
|
|
22328
|
+
nearestEdgeMs: number().nullable(),
|
|
22329
|
+
prevEndMs: number().nullable().optional()
|
|
22149
22330
|
})]);
|
|
22150
22331
|
/** Raw bytes of one finalized footage segment (read off disk on the recording node). */
|
|
22151
22332
|
var ReadSegmentBytesResultSchema = object({ data: _instanceof(Uint8Array) });
|
|
@@ -23714,6 +23895,12 @@ Object.freeze({
|
|
|
23714
23895
|
addonId: null,
|
|
23715
23896
|
access: "view"
|
|
23716
23897
|
},
|
|
23898
|
+
"deviceManager.getLinkedDevices": {
|
|
23899
|
+
capName: "device-manager",
|
|
23900
|
+
capScope: "system",
|
|
23901
|
+
addonId: null,
|
|
23902
|
+
access: "view"
|
|
23903
|
+
},
|
|
23717
23904
|
"deviceManager.getRoleDisplayDefaults": {
|
|
23718
23905
|
capName: "device-manager",
|
|
23719
23906
|
capScope: "system",
|
|
@@ -25268,6 +25455,12 @@ Object.freeze({
|
|
|
25268
25455
|
addonId: null,
|
|
25269
25456
|
access: "view"
|
|
25270
25457
|
},
|
|
25458
|
+
"pipelineAnalytics.getSensorEvents": {
|
|
25459
|
+
capName: "pipeline-analytics",
|
|
25460
|
+
capScope: "device",
|
|
25461
|
+
addonId: null,
|
|
25462
|
+
access: "view"
|
|
25463
|
+
},
|
|
25271
25464
|
"pipelineAnalytics.getTrack": {
|
|
25272
25465
|
capName: "pipeline-analytics",
|
|
25273
25466
|
capScope: "device",
|
|
@@ -25280,6 +25473,18 @@ Object.freeze({
|
|
|
25280
25473
|
addonId: null,
|
|
25281
25474
|
access: "view"
|
|
25282
25475
|
},
|
|
25476
|
+
"pipelineAnalytics.listEventKinds": {
|
|
25477
|
+
capName: "pipeline-analytics",
|
|
25478
|
+
capScope: "device",
|
|
25479
|
+
addonId: null,
|
|
25480
|
+
access: "view"
|
|
25481
|
+
},
|
|
25482
|
+
"pipelineAnalytics.listRecentTracks": {
|
|
25483
|
+
capName: "pipeline-analytics",
|
|
25484
|
+
capScope: "device",
|
|
25485
|
+
addonId: null,
|
|
25486
|
+
access: "view"
|
|
25487
|
+
},
|
|
25283
25488
|
"pipelineAnalytics.listTracks": {
|
|
25284
25489
|
capName: "pipeline-analytics",
|
|
25285
25490
|
capScope: "device",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-gree",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"description": "Gree air-conditioner device-provider addon for CamStack — wraps the @apocaliss92/nodegree local-UDP client (LAN discovery + AES control), exposing climate-control and fan-control",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|