@camstack/addon-decoder-nodeav 1.2.15 → 1.2.16
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/index.js +76 -8
- package/dist/index.mjs +76 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13067,11 +13067,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13067
13067
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13068
13068
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13069
13069
|
* differently.
|
|
13070
|
+
*
|
|
13071
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13072
|
+
*
|
|
13073
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13074
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13075
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13076
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13077
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13078
|
+
* honestly.
|
|
13079
|
+
*
|
|
13080
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13081
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13082
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13083
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13084
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13085
|
+
*
|
|
13086
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13087
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13088
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13089
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13090
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13070
13091
|
*/
|
|
13071
13092
|
var NotificationActionIconSchema = _enum([
|
|
13072
13093
|
"acknowledge",
|
|
13073
13094
|
"dismiss",
|
|
13074
13095
|
"silence",
|
|
13096
|
+
"snooze",
|
|
13075
13097
|
"view",
|
|
13076
13098
|
"play",
|
|
13077
13099
|
"open",
|
|
@@ -13079,9 +13101,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13079
13101
|
"lock",
|
|
13080
13102
|
"unlock",
|
|
13081
13103
|
"arm",
|
|
13104
|
+
"arm-home",
|
|
13105
|
+
"arm-away",
|
|
13106
|
+
"arm-night",
|
|
13082
13107
|
"disarm",
|
|
13083
13108
|
"light",
|
|
13084
|
-
"alert"
|
|
13109
|
+
"alert",
|
|
13110
|
+
"camera"
|
|
13085
13111
|
]);
|
|
13086
13112
|
/** A single tap-through action button. */
|
|
13087
13113
|
var NotificationActionSchema = object({
|
|
@@ -13281,6 +13307,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13281
13307
|
targetId: string(),
|
|
13282
13308
|
enabled: boolean()
|
|
13283
13309
|
}), _void(), { kind: "mutation" });
|
|
13310
|
+
new Set([
|
|
13311
|
+
{
|
|
13312
|
+
id: "person",
|
|
13313
|
+
name: "Person"
|
|
13314
|
+
},
|
|
13315
|
+
{
|
|
13316
|
+
id: "vehicle",
|
|
13317
|
+
name: "Vehicle"
|
|
13318
|
+
},
|
|
13319
|
+
{
|
|
13320
|
+
id: "animal",
|
|
13321
|
+
name: "Animal"
|
|
13322
|
+
},
|
|
13323
|
+
{
|
|
13324
|
+
id: "package",
|
|
13325
|
+
name: "Package"
|
|
13326
|
+
}
|
|
13327
|
+
].map((l) => l.id));
|
|
13284
13328
|
var COCO_TO_MACRO = {
|
|
13285
13329
|
mapping: {
|
|
13286
13330
|
person: "person",
|
|
@@ -14078,6 +14122,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14078
14122
|
"alarm-triggered",
|
|
14079
14123
|
"alarm-armed",
|
|
14080
14124
|
"alarm-disarmed",
|
|
14125
|
+
"alarm-arming",
|
|
14126
|
+
"alarm-arm-refused",
|
|
14081
14127
|
"camera-online",
|
|
14082
14128
|
"camera-offline",
|
|
14083
14129
|
"camera-disabled",
|
|
@@ -17310,6 +17356,22 @@ var detectionFpsField = {
|
|
|
17310
17356
|
default: 10,
|
|
17311
17357
|
step: 1
|
|
17312
17358
|
};
|
|
17359
|
+
/**
|
|
17360
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17361
|
+
*
|
|
17362
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17363
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17364
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17365
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17366
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17367
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17368
|
+
*
|
|
17369
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17370
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17371
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17372
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17373
|
+
* that ships with an addon deploy.
|
|
17374
|
+
*/
|
|
17313
17375
|
var occupancyRecheckSecField = {
|
|
17314
17376
|
min: 0,
|
|
17315
17377
|
max: 300,
|
|
@@ -17511,15 +17573,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17511
17573
|
*/
|
|
17512
17574
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17513
17575
|
/**
|
|
17514
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17515
|
-
*
|
|
17516
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17517
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17518
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17576
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17577
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17519
17578
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17520
17579
|
* (and only render) when this is enabled.
|
|
17521
|
-
|
|
17522
|
-
|
|
17580
|
+
*
|
|
17581
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17582
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17583
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17584
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17585
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17586
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17587
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17588
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17589
|
+
*/
|
|
17590
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17523
17591
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17524
17592
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17525
17593
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -13063,11 +13063,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13063
13063
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13064
13064
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13065
13065
|
* differently.
|
|
13066
|
+
*
|
|
13067
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13068
|
+
*
|
|
13069
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13070
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13071
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13072
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13073
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13074
|
+
* honestly.
|
|
13075
|
+
*
|
|
13076
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13077
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13078
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13079
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13080
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13081
|
+
*
|
|
13082
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13083
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13084
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13085
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13086
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13066
13087
|
*/
|
|
13067
13088
|
var NotificationActionIconSchema = _enum([
|
|
13068
13089
|
"acknowledge",
|
|
13069
13090
|
"dismiss",
|
|
13070
13091
|
"silence",
|
|
13092
|
+
"snooze",
|
|
13071
13093
|
"view",
|
|
13072
13094
|
"play",
|
|
13073
13095
|
"open",
|
|
@@ -13075,9 +13097,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13075
13097
|
"lock",
|
|
13076
13098
|
"unlock",
|
|
13077
13099
|
"arm",
|
|
13100
|
+
"arm-home",
|
|
13101
|
+
"arm-away",
|
|
13102
|
+
"arm-night",
|
|
13078
13103
|
"disarm",
|
|
13079
13104
|
"light",
|
|
13080
|
-
"alert"
|
|
13105
|
+
"alert",
|
|
13106
|
+
"camera"
|
|
13081
13107
|
]);
|
|
13082
13108
|
/** A single tap-through action button. */
|
|
13083
13109
|
var NotificationActionSchema = object({
|
|
@@ -13277,6 +13303,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13277
13303
|
targetId: string(),
|
|
13278
13304
|
enabled: boolean()
|
|
13279
13305
|
}), _void(), { kind: "mutation" });
|
|
13306
|
+
new Set([
|
|
13307
|
+
{
|
|
13308
|
+
id: "person",
|
|
13309
|
+
name: "Person"
|
|
13310
|
+
},
|
|
13311
|
+
{
|
|
13312
|
+
id: "vehicle",
|
|
13313
|
+
name: "Vehicle"
|
|
13314
|
+
},
|
|
13315
|
+
{
|
|
13316
|
+
id: "animal",
|
|
13317
|
+
name: "Animal"
|
|
13318
|
+
},
|
|
13319
|
+
{
|
|
13320
|
+
id: "package",
|
|
13321
|
+
name: "Package"
|
|
13322
|
+
}
|
|
13323
|
+
].map((l) => l.id));
|
|
13280
13324
|
var COCO_TO_MACRO = {
|
|
13281
13325
|
mapping: {
|
|
13282
13326
|
person: "person",
|
|
@@ -14074,6 +14118,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14074
14118
|
"alarm-triggered",
|
|
14075
14119
|
"alarm-armed",
|
|
14076
14120
|
"alarm-disarmed",
|
|
14121
|
+
"alarm-arming",
|
|
14122
|
+
"alarm-arm-refused",
|
|
14077
14123
|
"camera-online",
|
|
14078
14124
|
"camera-offline",
|
|
14079
14125
|
"camera-disabled",
|
|
@@ -17306,6 +17352,22 @@ var detectionFpsField = {
|
|
|
17306
17352
|
default: 10,
|
|
17307
17353
|
step: 1
|
|
17308
17354
|
};
|
|
17355
|
+
/**
|
|
17356
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17357
|
+
*
|
|
17358
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17359
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17360
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17361
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17362
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17363
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17364
|
+
*
|
|
17365
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17366
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17367
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17368
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17369
|
+
* that ships with an addon deploy.
|
|
17370
|
+
*/
|
|
17309
17371
|
var occupancyRecheckSecField = {
|
|
17310
17372
|
min: 0,
|
|
17311
17373
|
max: 300,
|
|
@@ -17507,15 +17569,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17507
17569
|
*/
|
|
17508
17570
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17509
17571
|
/**
|
|
17510
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17511
|
-
*
|
|
17512
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17513
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17514
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17572
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17573
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17515
17574
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17516
17575
|
* (and only render) when this is enabled.
|
|
17517
|
-
|
|
17518
|
-
|
|
17576
|
+
*
|
|
17577
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17578
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17579
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17580
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17581
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17582
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17583
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17584
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17585
|
+
*/
|
|
17586
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17519
17587
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17520
17588
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17521
17589
|
/**
|