@camstack/addon-provider-wyze 0.2.15 → 0.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/addon.js +76 -8
- package/dist/addon.mjs +76 -8
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -13249,11 +13249,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13249
13249
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13250
13250
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13251
13251
|
* differently.
|
|
13252
|
+
*
|
|
13253
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13254
|
+
*
|
|
13255
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13256
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13257
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13258
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13259
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13260
|
+
* honestly.
|
|
13261
|
+
*
|
|
13262
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13263
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13264
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13265
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13266
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13267
|
+
*
|
|
13268
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13269
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13270
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13271
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13272
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13252
13273
|
*/
|
|
13253
13274
|
var NotificationActionIconSchema = _enum([
|
|
13254
13275
|
"acknowledge",
|
|
13255
13276
|
"dismiss",
|
|
13256
13277
|
"silence",
|
|
13278
|
+
"snooze",
|
|
13257
13279
|
"view",
|
|
13258
13280
|
"play",
|
|
13259
13281
|
"open",
|
|
@@ -13261,9 +13283,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13261
13283
|
"lock",
|
|
13262
13284
|
"unlock",
|
|
13263
13285
|
"arm",
|
|
13286
|
+
"arm-home",
|
|
13287
|
+
"arm-away",
|
|
13288
|
+
"arm-night",
|
|
13264
13289
|
"disarm",
|
|
13265
13290
|
"light",
|
|
13266
|
-
"alert"
|
|
13291
|
+
"alert",
|
|
13292
|
+
"camera"
|
|
13267
13293
|
]);
|
|
13268
13294
|
/** A single tap-through action button. */
|
|
13269
13295
|
var NotificationActionSchema = object({
|
|
@@ -13463,6 +13489,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13463
13489
|
targetId: string(),
|
|
13464
13490
|
enabled: boolean()
|
|
13465
13491
|
}), _void(), { kind: "mutation" });
|
|
13492
|
+
new Set([
|
|
13493
|
+
{
|
|
13494
|
+
id: "person",
|
|
13495
|
+
name: "Person"
|
|
13496
|
+
},
|
|
13497
|
+
{
|
|
13498
|
+
id: "vehicle",
|
|
13499
|
+
name: "Vehicle"
|
|
13500
|
+
},
|
|
13501
|
+
{
|
|
13502
|
+
id: "animal",
|
|
13503
|
+
name: "Animal"
|
|
13504
|
+
},
|
|
13505
|
+
{
|
|
13506
|
+
id: "package",
|
|
13507
|
+
name: "Package"
|
|
13508
|
+
}
|
|
13509
|
+
].map((l) => l.id));
|
|
13466
13510
|
var COCO_TO_MACRO = {
|
|
13467
13511
|
mapping: {
|
|
13468
13512
|
person: "person",
|
|
@@ -14298,6 +14342,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14298
14342
|
"alarm-triggered",
|
|
14299
14343
|
"alarm-armed",
|
|
14300
14344
|
"alarm-disarmed",
|
|
14345
|
+
"alarm-arming",
|
|
14346
|
+
"alarm-arm-refused",
|
|
14301
14347
|
"camera-online",
|
|
14302
14348
|
"camera-offline",
|
|
14303
14349
|
"camera-disabled",
|
|
@@ -17570,6 +17616,22 @@ var detectionFpsField = {
|
|
|
17570
17616
|
default: 10,
|
|
17571
17617
|
step: 1
|
|
17572
17618
|
};
|
|
17619
|
+
/**
|
|
17620
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17621
|
+
*
|
|
17622
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17623
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17624
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17625
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17626
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17627
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17628
|
+
*
|
|
17629
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17630
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17631
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17632
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17633
|
+
* that ships with an addon deploy.
|
|
17634
|
+
*/
|
|
17573
17635
|
var occupancyRecheckSecField = {
|
|
17574
17636
|
min: 0,
|
|
17575
17637
|
max: 300,
|
|
@@ -17771,15 +17833,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17771
17833
|
*/
|
|
17772
17834
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17773
17835
|
/**
|
|
17774
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17775
|
-
*
|
|
17776
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17777
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17778
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17836
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17837
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17779
17838
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17780
17839
|
* (and only render) when this is enabled.
|
|
17781
|
-
|
|
17782
|
-
|
|
17840
|
+
*
|
|
17841
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17842
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17843
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17844
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17845
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17846
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17847
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17848
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17849
|
+
*/
|
|
17850
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17783
17851
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17784
17852
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17785
17853
|
/**
|
package/dist/addon.mjs
CHANGED
|
@@ -13228,11 +13228,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13228
13228
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13229
13229
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13230
13230
|
* differently.
|
|
13231
|
+
*
|
|
13232
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13233
|
+
*
|
|
13234
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13235
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13236
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13237
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13238
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13239
|
+
* honestly.
|
|
13240
|
+
*
|
|
13241
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13242
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13243
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13244
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13245
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13246
|
+
*
|
|
13247
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13248
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13249
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13250
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13251
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13231
13252
|
*/
|
|
13232
13253
|
var NotificationActionIconSchema = _enum([
|
|
13233
13254
|
"acknowledge",
|
|
13234
13255
|
"dismiss",
|
|
13235
13256
|
"silence",
|
|
13257
|
+
"snooze",
|
|
13236
13258
|
"view",
|
|
13237
13259
|
"play",
|
|
13238
13260
|
"open",
|
|
@@ -13240,9 +13262,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13240
13262
|
"lock",
|
|
13241
13263
|
"unlock",
|
|
13242
13264
|
"arm",
|
|
13265
|
+
"arm-home",
|
|
13266
|
+
"arm-away",
|
|
13267
|
+
"arm-night",
|
|
13243
13268
|
"disarm",
|
|
13244
13269
|
"light",
|
|
13245
|
-
"alert"
|
|
13270
|
+
"alert",
|
|
13271
|
+
"camera"
|
|
13246
13272
|
]);
|
|
13247
13273
|
/** A single tap-through action button. */
|
|
13248
13274
|
var NotificationActionSchema = object({
|
|
@@ -13442,6 +13468,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13442
13468
|
targetId: string(),
|
|
13443
13469
|
enabled: boolean()
|
|
13444
13470
|
}), _void(), { kind: "mutation" });
|
|
13471
|
+
new Set([
|
|
13472
|
+
{
|
|
13473
|
+
id: "person",
|
|
13474
|
+
name: "Person"
|
|
13475
|
+
},
|
|
13476
|
+
{
|
|
13477
|
+
id: "vehicle",
|
|
13478
|
+
name: "Vehicle"
|
|
13479
|
+
},
|
|
13480
|
+
{
|
|
13481
|
+
id: "animal",
|
|
13482
|
+
name: "Animal"
|
|
13483
|
+
},
|
|
13484
|
+
{
|
|
13485
|
+
id: "package",
|
|
13486
|
+
name: "Package"
|
|
13487
|
+
}
|
|
13488
|
+
].map((l) => l.id));
|
|
13445
13489
|
var COCO_TO_MACRO = {
|
|
13446
13490
|
mapping: {
|
|
13447
13491
|
person: "person",
|
|
@@ -14277,6 +14321,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14277
14321
|
"alarm-triggered",
|
|
14278
14322
|
"alarm-armed",
|
|
14279
14323
|
"alarm-disarmed",
|
|
14324
|
+
"alarm-arming",
|
|
14325
|
+
"alarm-arm-refused",
|
|
14280
14326
|
"camera-online",
|
|
14281
14327
|
"camera-offline",
|
|
14282
14328
|
"camera-disabled",
|
|
@@ -17549,6 +17595,22 @@ var detectionFpsField = {
|
|
|
17549
17595
|
default: 10,
|
|
17550
17596
|
step: 1
|
|
17551
17597
|
};
|
|
17598
|
+
/**
|
|
17599
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17600
|
+
*
|
|
17601
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17602
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17603
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17604
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17605
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17606
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17607
|
+
*
|
|
17608
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17609
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17610
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17611
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17612
|
+
* that ships with an addon deploy.
|
|
17613
|
+
*/
|
|
17552
17614
|
var occupancyRecheckSecField = {
|
|
17553
17615
|
min: 0,
|
|
17554
17616
|
max: 300,
|
|
@@ -17750,15 +17812,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17750
17812
|
*/
|
|
17751
17813
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17752
17814
|
/**
|
|
17753
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17754
|
-
*
|
|
17755
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17756
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17757
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17815
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17816
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17758
17817
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17759
17818
|
* (and only render) when this is enabled.
|
|
17760
|
-
|
|
17761
|
-
|
|
17819
|
+
*
|
|
17820
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17821
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17822
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17823
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17824
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17825
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17826
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17827
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17828
|
+
*/
|
|
17829
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17762
17830
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17763
17831
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17764
17832
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-wyze",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|