@camstack/addon-import-alexa 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 +75 -7
- package/dist/addon.mjs +75 -7
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -13458,11 +13458,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13458
13458
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13459
13459
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13460
13460
|
* differently.
|
|
13461
|
+
*
|
|
13462
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13463
|
+
*
|
|
13464
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13465
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13466
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13467
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13468
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13469
|
+
* honestly.
|
|
13470
|
+
*
|
|
13471
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13472
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13473
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13474
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13475
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13476
|
+
*
|
|
13477
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13478
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13479
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13480
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13481
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13461
13482
|
*/
|
|
13462
13483
|
var NotificationActionIconSchema = _enum([
|
|
13463
13484
|
"acknowledge",
|
|
13464
13485
|
"dismiss",
|
|
13465
13486
|
"silence",
|
|
13487
|
+
"snooze",
|
|
13466
13488
|
"view",
|
|
13467
13489
|
"play",
|
|
13468
13490
|
"open",
|
|
@@ -13470,9 +13492,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13470
13492
|
"lock",
|
|
13471
13493
|
"unlock",
|
|
13472
13494
|
"arm",
|
|
13495
|
+
"arm-home",
|
|
13496
|
+
"arm-away",
|
|
13497
|
+
"arm-night",
|
|
13473
13498
|
"disarm",
|
|
13474
13499
|
"light",
|
|
13475
|
-
"alert"
|
|
13500
|
+
"alert",
|
|
13501
|
+
"camera"
|
|
13476
13502
|
]);
|
|
13477
13503
|
/** A single tap-through action button. */
|
|
13478
13504
|
var NotificationActionSchema = object({
|
|
@@ -13672,6 +13698,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13672
13698
|
targetId: string(),
|
|
13673
13699
|
enabled: boolean()
|
|
13674
13700
|
}), _void(), { kind: "mutation" });
|
|
13701
|
+
new Set([
|
|
13702
|
+
{
|
|
13703
|
+
id: "person",
|
|
13704
|
+
name: "Person"
|
|
13705
|
+
},
|
|
13706
|
+
{
|
|
13707
|
+
id: "vehicle",
|
|
13708
|
+
name: "Vehicle"
|
|
13709
|
+
},
|
|
13710
|
+
{
|
|
13711
|
+
id: "animal",
|
|
13712
|
+
name: "Animal"
|
|
13713
|
+
},
|
|
13714
|
+
{
|
|
13715
|
+
id: "package",
|
|
13716
|
+
name: "Package"
|
|
13717
|
+
}
|
|
13718
|
+
].map((l) => l.id));
|
|
13675
13719
|
var COCO_TO_MACRO = {
|
|
13676
13720
|
mapping: {
|
|
13677
13721
|
person: "person",
|
|
@@ -14507,6 +14551,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14507
14551
|
"alarm-triggered",
|
|
14508
14552
|
"alarm-armed",
|
|
14509
14553
|
"alarm-disarmed",
|
|
14554
|
+
"alarm-arming",
|
|
14555
|
+
"alarm-arm-refused",
|
|
14510
14556
|
"camera-online",
|
|
14511
14557
|
"camera-offline",
|
|
14512
14558
|
"camera-disabled",
|
|
@@ -17779,6 +17825,22 @@ var detectionFpsField = {
|
|
|
17779
17825
|
default: 10,
|
|
17780
17826
|
step: 1
|
|
17781
17827
|
};
|
|
17828
|
+
/**
|
|
17829
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17830
|
+
*
|
|
17831
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17832
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17833
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17834
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17835
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17836
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17837
|
+
*
|
|
17838
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17839
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17840
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17841
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17842
|
+
* that ships with an addon deploy.
|
|
17843
|
+
*/
|
|
17782
17844
|
var occupancyRecheckSecField = {
|
|
17783
17845
|
min: 0,
|
|
17784
17846
|
max: 300,
|
|
@@ -17980,15 +18042,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17980
18042
|
*/
|
|
17981
18043
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17982
18044
|
/**
|
|
17983
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17984
|
-
*
|
|
17985
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17986
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17987
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
18045
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
18046
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17988
18047
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17989
18048
|
* (and only render) when this is enabled.
|
|
18049
|
+
*
|
|
18050
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
18051
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
18052
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
18053
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
18054
|
+
* object is counted only while the stationary registry holds it, and the
|
|
18055
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
18056
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
18057
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17990
18058
|
*/
|
|
17991
|
-
occupancyRecheckEnabled: boolean().default(
|
|
18059
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17992
18060
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17993
18061
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17994
18062
|
/**
|
package/dist/addon.mjs
CHANGED
|
@@ -13458,11 +13458,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13458
13458
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13459
13459
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13460
13460
|
* differently.
|
|
13461
|
+
*
|
|
13462
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13463
|
+
*
|
|
13464
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13465
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13466
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13467
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13468
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13469
|
+
* honestly.
|
|
13470
|
+
*
|
|
13471
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13472
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13473
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13474
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13475
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13476
|
+
*
|
|
13477
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13478
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13479
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13480
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13481
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13461
13482
|
*/
|
|
13462
13483
|
var NotificationActionIconSchema = _enum([
|
|
13463
13484
|
"acknowledge",
|
|
13464
13485
|
"dismiss",
|
|
13465
13486
|
"silence",
|
|
13487
|
+
"snooze",
|
|
13466
13488
|
"view",
|
|
13467
13489
|
"play",
|
|
13468
13490
|
"open",
|
|
@@ -13470,9 +13492,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13470
13492
|
"lock",
|
|
13471
13493
|
"unlock",
|
|
13472
13494
|
"arm",
|
|
13495
|
+
"arm-home",
|
|
13496
|
+
"arm-away",
|
|
13497
|
+
"arm-night",
|
|
13473
13498
|
"disarm",
|
|
13474
13499
|
"light",
|
|
13475
|
-
"alert"
|
|
13500
|
+
"alert",
|
|
13501
|
+
"camera"
|
|
13476
13502
|
]);
|
|
13477
13503
|
/** A single tap-through action button. */
|
|
13478
13504
|
var NotificationActionSchema = object({
|
|
@@ -13672,6 +13698,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13672
13698
|
targetId: string(),
|
|
13673
13699
|
enabled: boolean()
|
|
13674
13700
|
}), _void(), { kind: "mutation" });
|
|
13701
|
+
new Set([
|
|
13702
|
+
{
|
|
13703
|
+
id: "person",
|
|
13704
|
+
name: "Person"
|
|
13705
|
+
},
|
|
13706
|
+
{
|
|
13707
|
+
id: "vehicle",
|
|
13708
|
+
name: "Vehicle"
|
|
13709
|
+
},
|
|
13710
|
+
{
|
|
13711
|
+
id: "animal",
|
|
13712
|
+
name: "Animal"
|
|
13713
|
+
},
|
|
13714
|
+
{
|
|
13715
|
+
id: "package",
|
|
13716
|
+
name: "Package"
|
|
13717
|
+
}
|
|
13718
|
+
].map((l) => l.id));
|
|
13675
13719
|
var COCO_TO_MACRO = {
|
|
13676
13720
|
mapping: {
|
|
13677
13721
|
person: "person",
|
|
@@ -14507,6 +14551,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14507
14551
|
"alarm-triggered",
|
|
14508
14552
|
"alarm-armed",
|
|
14509
14553
|
"alarm-disarmed",
|
|
14554
|
+
"alarm-arming",
|
|
14555
|
+
"alarm-arm-refused",
|
|
14510
14556
|
"camera-online",
|
|
14511
14557
|
"camera-offline",
|
|
14512
14558
|
"camera-disabled",
|
|
@@ -17779,6 +17825,22 @@ var detectionFpsField = {
|
|
|
17779
17825
|
default: 10,
|
|
17780
17826
|
step: 1
|
|
17781
17827
|
};
|
|
17828
|
+
/**
|
|
17829
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17830
|
+
*
|
|
17831
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17832
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17833
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17834
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17835
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17836
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17837
|
+
*
|
|
17838
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17839
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17840
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17841
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17842
|
+
* that ships with an addon deploy.
|
|
17843
|
+
*/
|
|
17782
17844
|
var occupancyRecheckSecField = {
|
|
17783
17845
|
min: 0,
|
|
17784
17846
|
max: 300,
|
|
@@ -17980,15 +18042,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17980
18042
|
*/
|
|
17981
18043
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17982
18044
|
/**
|
|
17983
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17984
|
-
*
|
|
17985
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17986
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17987
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
18045
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
18046
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17988
18047
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17989
18048
|
* (and only render) when this is enabled.
|
|
18049
|
+
*
|
|
18050
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
18051
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
18052
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
18053
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
18054
|
+
* object is counted only while the stationary registry holds it, and the
|
|
18055
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
18056
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
18057
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17990
18058
|
*/
|
|
17991
|
-
occupancyRecheckEnabled: boolean().default(
|
|
18059
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17992
18060
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17993
18061
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17994
18062
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-import-alexa",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|