@camstack/addon-mqtt-broker 1.2.56 → 1.2.58
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/mqtt-broker.addon.js +45 -4
- package/dist/mqtt-broker.addon.mjs +45 -4
- package/package.json +1 -1
|
@@ -18938,7 +18938,20 @@ var RecentTracksQueryInput = object({
|
|
|
18938
18938
|
projection: TrackProjectionSchema.optional(),
|
|
18939
18939
|
/** Include stationary-promoted rows (parked objects). Default false: the
|
|
18940
18940
|
* feed lists passages; parking records live on the stationary registry. */
|
|
18941
|
-
includeStationary: boolean().optional()
|
|
18941
|
+
includeStationary: boolean().optional(),
|
|
18942
|
+
/**
|
|
18943
|
+
* Restrict to these track classes. ABSENT or EMPTY means no filter.
|
|
18944
|
+
*
|
|
18945
|
+
* The same filter `listTracks` takes, because the timeline's class chips must
|
|
18946
|
+
* mean the same thing whether the scope is one camera or twelve. Until this
|
|
18947
|
+
* existed the scoped feed downloaded a page and narrowed it on the phone
|
|
18948
|
+
* while the single-camera path narrowed the read — one filter, two costs.
|
|
18949
|
+
*
|
|
18950
|
+
* A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
|
|
18951
|
+
* whose class list is unreadable are kept, and the client's rule stays the
|
|
18952
|
+
* exact one.
|
|
18953
|
+
*/
|
|
18954
|
+
classes: array(string()).optional()
|
|
18942
18955
|
});
|
|
18943
18956
|
var RecentTracksPageSchema = object({
|
|
18944
18957
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -19325,7 +19338,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
19325
19338
|
/** Include stationary-promoted rows (parked objects handed to the
|
|
19326
19339
|
* stationary registry). Default false: the timeline lists passages,
|
|
19327
19340
|
* not parking records (operator decision, 2026-08-15). */
|
|
19328
|
-
includeStationary: boolean().optional()
|
|
19341
|
+
includeStationary: boolean().optional(),
|
|
19342
|
+
/**
|
|
19343
|
+
* Restrict to these track classes. ABSENT or EMPTY means no filter.
|
|
19344
|
+
*
|
|
19345
|
+
* Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
|
|
19346
|
+
* on a day of rows already downloaded. The zone filter had been moved
|
|
19347
|
+
* here for exactly that reason — and it is also what lets the rows come
|
|
19348
|
+
* back `slim` — but the class filter was left behind, so a narrow
|
|
19349
|
+
* selection was still a wide read followed by a wide discard.
|
|
19350
|
+
*
|
|
19351
|
+
* Empty is "show all", not "nothing matches": a chip row with nothing
|
|
19352
|
+
* selected is an operator who has not narrowed anything, and an empty
|
|
19353
|
+
* timeline would read as a camera that saw nothing.
|
|
19354
|
+
*/
|
|
19355
|
+
classes: array(string()).optional()
|
|
19329
19356
|
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
19330
19357
|
kind: "mutation",
|
|
19331
19358
|
auth: "admin"
|
|
@@ -22962,8 +22989,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
|
|
|
22962
22989
|
* threshold.
|
|
22963
22990
|
*/
|
|
22964
22991
|
var BatteryStatusSchema = object({
|
|
22965
|
-
/**
|
|
22966
|
-
|
|
22992
|
+
/**
|
|
22993
|
+
* 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
|
|
22994
|
+
* provider has registered the capability but no reading has landed.
|
|
22995
|
+
*
|
|
22996
|
+
* It is nullable because it was not, and the only value a provider could
|
|
22997
|
+
* seed with was `0`. A battery camera behind an NVR therefore announced
|
|
22998
|
+
* itself at 0% on every start and corrected itself a moment later, which is
|
|
22999
|
+
* indistinguishable from a real flat battery: it fires the low-battery alert
|
|
23000
|
+
* every time the hub restarts. Unknown is not empty (D315), and on a battery
|
|
23001
|
+
* reading the difference is an alarm.
|
|
23002
|
+
*
|
|
23003
|
+
* `vacuum-control` and `lawn-mower-control` already model it this way.
|
|
23004
|
+
* Consumers must SKIP a null rather than coerce it — `battery-band` already
|
|
23005
|
+
* declines to band a non-finite reading, which is the correct shape.
|
|
23006
|
+
*/
|
|
23007
|
+
percentage: number().min(0).max(100).nullable(),
|
|
22967
23008
|
/**
|
|
22968
23009
|
* Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
|
|
22969
23010
|
* Reolink-specific for the Solar Panel 2 accessory (will become
|
|
@@ -18933,7 +18933,20 @@ var RecentTracksQueryInput = object({
|
|
|
18933
18933
|
projection: TrackProjectionSchema.optional(),
|
|
18934
18934
|
/** Include stationary-promoted rows (parked objects). Default false: the
|
|
18935
18935
|
* feed lists passages; parking records live on the stationary registry. */
|
|
18936
|
-
includeStationary: boolean().optional()
|
|
18936
|
+
includeStationary: boolean().optional(),
|
|
18937
|
+
/**
|
|
18938
|
+
* Restrict to these track classes. ABSENT or EMPTY means no filter.
|
|
18939
|
+
*
|
|
18940
|
+
* The same filter `listTracks` takes, because the timeline's class chips must
|
|
18941
|
+
* mean the same thing whether the scope is one camera or twelve. Until this
|
|
18942
|
+
* existed the scoped feed downloaded a page and narrowed it on the phone
|
|
18943
|
+
* while the single-camera path narrowed the read — one filter, two costs.
|
|
18944
|
+
*
|
|
18945
|
+
* A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
|
|
18946
|
+
* whose class list is unreadable are kept, and the client's rule stays the
|
|
18947
|
+
* exact one.
|
|
18948
|
+
*/
|
|
18949
|
+
classes: array(string()).optional()
|
|
18937
18950
|
});
|
|
18938
18951
|
var RecentTracksPageSchema = object({
|
|
18939
18952
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -19320,7 +19333,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
19320
19333
|
/** Include stationary-promoted rows (parked objects handed to the
|
|
19321
19334
|
* stationary registry). Default false: the timeline lists passages,
|
|
19322
19335
|
* not parking records (operator decision, 2026-08-15). */
|
|
19323
|
-
includeStationary: boolean().optional()
|
|
19336
|
+
includeStationary: boolean().optional(),
|
|
19337
|
+
/**
|
|
19338
|
+
* Restrict to these track classes. ABSENT or EMPTY means no filter.
|
|
19339
|
+
*
|
|
19340
|
+
* Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
|
|
19341
|
+
* on a day of rows already downloaded. The zone filter had been moved
|
|
19342
|
+
* here for exactly that reason — and it is also what lets the rows come
|
|
19343
|
+
* back `slim` — but the class filter was left behind, so a narrow
|
|
19344
|
+
* selection was still a wide read followed by a wide discard.
|
|
19345
|
+
*
|
|
19346
|
+
* Empty is "show all", not "nothing matches": a chip row with nothing
|
|
19347
|
+
* selected is an operator who has not narrowed anything, and an empty
|
|
19348
|
+
* timeline would read as a camera that saw nothing.
|
|
19349
|
+
*/
|
|
19350
|
+
classes: array(string()).optional()
|
|
19324
19351
|
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
19325
19352
|
kind: "mutation",
|
|
19326
19353
|
auth: "admin"
|
|
@@ -22957,8 +22984,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
|
|
|
22957
22984
|
* threshold.
|
|
22958
22985
|
*/
|
|
22959
22986
|
var BatteryStatusSchema = object({
|
|
22960
|
-
/**
|
|
22961
|
-
|
|
22987
|
+
/**
|
|
22988
|
+
* 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
|
|
22989
|
+
* provider has registered the capability but no reading has landed.
|
|
22990
|
+
*
|
|
22991
|
+
* It is nullable because it was not, and the only value a provider could
|
|
22992
|
+
* seed with was `0`. A battery camera behind an NVR therefore announced
|
|
22993
|
+
* itself at 0% on every start and corrected itself a moment later, which is
|
|
22994
|
+
* indistinguishable from a real flat battery: it fires the low-battery alert
|
|
22995
|
+
* every time the hub restarts. Unknown is not empty (D315), and on a battery
|
|
22996
|
+
* reading the difference is an alarm.
|
|
22997
|
+
*
|
|
22998
|
+
* `vacuum-control` and `lawn-mower-control` already model it this way.
|
|
22999
|
+
* Consumers must SKIP a null rather than coerce it — `battery-band` already
|
|
23000
|
+
* declines to band a non-finite reading, which is the correct shape.
|
|
23001
|
+
*/
|
|
23002
|
+
percentage: number().min(0).max(100).nullable(),
|
|
22962
23003
|
/**
|
|
22963
23004
|
* Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
|
|
22964
23005
|
* Reolink-specific for the Solar Panel 2 accessory (will become
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-mqtt-broker",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.58",
|
|
4
4
|
"description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|