@camstack/addon-provider-rtsp 1.2.16 → 1.2.17
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 +76 -8
- package/dist/addon.mjs +76 -8
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -13271,11 +13271,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13271
13271
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13272
13272
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13273
13273
|
* differently.
|
|
13274
|
+
*
|
|
13275
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13276
|
+
*
|
|
13277
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13278
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13279
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13280
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13281
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13282
|
+
* honestly.
|
|
13283
|
+
*
|
|
13284
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13285
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13286
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13287
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13288
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13289
|
+
*
|
|
13290
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13291
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13292
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13293
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13294
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13274
13295
|
*/
|
|
13275
13296
|
var NotificationActionIconSchema = _enum([
|
|
13276
13297
|
"acknowledge",
|
|
13277
13298
|
"dismiss",
|
|
13278
13299
|
"silence",
|
|
13300
|
+
"snooze",
|
|
13279
13301
|
"view",
|
|
13280
13302
|
"play",
|
|
13281
13303
|
"open",
|
|
@@ -13283,9 +13305,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13283
13305
|
"lock",
|
|
13284
13306
|
"unlock",
|
|
13285
13307
|
"arm",
|
|
13308
|
+
"arm-home",
|
|
13309
|
+
"arm-away",
|
|
13310
|
+
"arm-night",
|
|
13286
13311
|
"disarm",
|
|
13287
13312
|
"light",
|
|
13288
|
-
"alert"
|
|
13313
|
+
"alert",
|
|
13314
|
+
"camera"
|
|
13289
13315
|
]);
|
|
13290
13316
|
/** A single tap-through action button. */
|
|
13291
13317
|
var NotificationActionSchema = object({
|
|
@@ -13485,6 +13511,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13485
13511
|
targetId: string(),
|
|
13486
13512
|
enabled: boolean()
|
|
13487
13513
|
}), _void(), { kind: "mutation" });
|
|
13514
|
+
new Set([
|
|
13515
|
+
{
|
|
13516
|
+
id: "person",
|
|
13517
|
+
name: "Person"
|
|
13518
|
+
},
|
|
13519
|
+
{
|
|
13520
|
+
id: "vehicle",
|
|
13521
|
+
name: "Vehicle"
|
|
13522
|
+
},
|
|
13523
|
+
{
|
|
13524
|
+
id: "animal",
|
|
13525
|
+
name: "Animal"
|
|
13526
|
+
},
|
|
13527
|
+
{
|
|
13528
|
+
id: "package",
|
|
13529
|
+
name: "Package"
|
|
13530
|
+
}
|
|
13531
|
+
].map((l) => l.id));
|
|
13488
13532
|
var COCO_TO_MACRO = {
|
|
13489
13533
|
mapping: {
|
|
13490
13534
|
person: "person",
|
|
@@ -14320,6 +14364,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14320
14364
|
"alarm-triggered",
|
|
14321
14365
|
"alarm-armed",
|
|
14322
14366
|
"alarm-disarmed",
|
|
14367
|
+
"alarm-arming",
|
|
14368
|
+
"alarm-arm-refused",
|
|
14323
14369
|
"camera-online",
|
|
14324
14370
|
"camera-offline",
|
|
14325
14371
|
"camera-disabled",
|
|
@@ -17592,6 +17638,22 @@ var detectionFpsField = {
|
|
|
17592
17638
|
default: 10,
|
|
17593
17639
|
step: 1
|
|
17594
17640
|
};
|
|
17641
|
+
/**
|
|
17642
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17643
|
+
*
|
|
17644
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17645
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17646
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17647
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17648
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17649
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17650
|
+
*
|
|
17651
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17652
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17653
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17654
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17655
|
+
* that ships with an addon deploy.
|
|
17656
|
+
*/
|
|
17595
17657
|
var occupancyRecheckSecField = {
|
|
17596
17658
|
min: 0,
|
|
17597
17659
|
max: 300,
|
|
@@ -17793,15 +17855,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17793
17855
|
*/
|
|
17794
17856
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17795
17857
|
/**
|
|
17796
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17797
|
-
*
|
|
17798
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17799
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17800
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17858
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17859
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17801
17860
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17802
17861
|
* (and only render) when this is enabled.
|
|
17803
|
-
|
|
17804
|
-
|
|
17862
|
+
*
|
|
17863
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17864
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17865
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17866
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17867
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17868
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17869
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17870
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17871
|
+
*/
|
|
17872
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17805
17873
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17806
17874
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17807
17875
|
/**
|
package/dist/addon.mjs
CHANGED
|
@@ -13247,11 +13247,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13247
13247
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13248
13248
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13249
13249
|
* differently.
|
|
13250
|
+
*
|
|
13251
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13252
|
+
*
|
|
13253
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13254
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13255
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13256
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13257
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13258
|
+
* honestly.
|
|
13259
|
+
*
|
|
13260
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13261
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13262
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13263
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13264
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13265
|
+
*
|
|
13266
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13267
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13268
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13269
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13270
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13250
13271
|
*/
|
|
13251
13272
|
var NotificationActionIconSchema = _enum([
|
|
13252
13273
|
"acknowledge",
|
|
13253
13274
|
"dismiss",
|
|
13254
13275
|
"silence",
|
|
13276
|
+
"snooze",
|
|
13255
13277
|
"view",
|
|
13256
13278
|
"play",
|
|
13257
13279
|
"open",
|
|
@@ -13259,9 +13281,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13259
13281
|
"lock",
|
|
13260
13282
|
"unlock",
|
|
13261
13283
|
"arm",
|
|
13284
|
+
"arm-home",
|
|
13285
|
+
"arm-away",
|
|
13286
|
+
"arm-night",
|
|
13262
13287
|
"disarm",
|
|
13263
13288
|
"light",
|
|
13264
|
-
"alert"
|
|
13289
|
+
"alert",
|
|
13290
|
+
"camera"
|
|
13265
13291
|
]);
|
|
13266
13292
|
/** A single tap-through action button. */
|
|
13267
13293
|
var NotificationActionSchema = object({
|
|
@@ -13461,6 +13487,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13461
13487
|
targetId: string(),
|
|
13462
13488
|
enabled: boolean()
|
|
13463
13489
|
}), _void(), { kind: "mutation" });
|
|
13490
|
+
new Set([
|
|
13491
|
+
{
|
|
13492
|
+
id: "person",
|
|
13493
|
+
name: "Person"
|
|
13494
|
+
},
|
|
13495
|
+
{
|
|
13496
|
+
id: "vehicle",
|
|
13497
|
+
name: "Vehicle"
|
|
13498
|
+
},
|
|
13499
|
+
{
|
|
13500
|
+
id: "animal",
|
|
13501
|
+
name: "Animal"
|
|
13502
|
+
},
|
|
13503
|
+
{
|
|
13504
|
+
id: "package",
|
|
13505
|
+
name: "Package"
|
|
13506
|
+
}
|
|
13507
|
+
].map((l) => l.id));
|
|
13464
13508
|
var COCO_TO_MACRO = {
|
|
13465
13509
|
mapping: {
|
|
13466
13510
|
person: "person",
|
|
@@ -14296,6 +14340,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14296
14340
|
"alarm-triggered",
|
|
14297
14341
|
"alarm-armed",
|
|
14298
14342
|
"alarm-disarmed",
|
|
14343
|
+
"alarm-arming",
|
|
14344
|
+
"alarm-arm-refused",
|
|
14299
14345
|
"camera-online",
|
|
14300
14346
|
"camera-offline",
|
|
14301
14347
|
"camera-disabled",
|
|
@@ -17568,6 +17614,22 @@ var detectionFpsField = {
|
|
|
17568
17614
|
default: 10,
|
|
17569
17615
|
step: 1
|
|
17570
17616
|
};
|
|
17617
|
+
/**
|
|
17618
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17619
|
+
*
|
|
17620
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17621
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17622
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17623
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17624
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17625
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17626
|
+
*
|
|
17627
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17628
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17629
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17630
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17631
|
+
* that ships with an addon deploy.
|
|
17632
|
+
*/
|
|
17571
17633
|
var occupancyRecheckSecField = {
|
|
17572
17634
|
min: 0,
|
|
17573
17635
|
max: 300,
|
|
@@ -17769,15 +17831,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17769
17831
|
*/
|
|
17770
17832
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17771
17833
|
/**
|
|
17772
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17773
|
-
*
|
|
17774
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17775
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17776
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17834
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17835
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17777
17836
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17778
17837
|
* (and only render) when this is enabled.
|
|
17779
|
-
|
|
17780
|
-
|
|
17838
|
+
*
|
|
17839
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17840
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17841
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17842
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17843
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17844
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17845
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17846
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17847
|
+
*/
|
|
17848
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17781
17849
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17782
17850
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17783
17851
|
/**
|