@camstack/addon-static-turn 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/static-turn.addon.js +76 -8
- package/dist/static-turn.addon.mjs +76 -8
- package/package.json +1 -1
|
@@ -12921,11 +12921,33 @@ var NotificationFormatSchema = _enum([
|
|
|
12921
12921
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
12922
12922
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
12923
12923
|
* differently.
|
|
12924
|
+
*
|
|
12925
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
12926
|
+
*
|
|
12927
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
12928
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
12929
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
12930
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
12931
|
+
* decides its glyph, which is the only place that decision can be made
|
|
12932
|
+
* honestly.
|
|
12933
|
+
*
|
|
12934
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
12935
|
+
* `disarm` straight through; iOS feeds that string to
|
|
12936
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
12937
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
12938
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
12939
|
+
*
|
|
12940
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
12941
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
12942
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
12943
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
12944
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
12924
12945
|
*/
|
|
12925
12946
|
var NotificationActionIconSchema = _enum([
|
|
12926
12947
|
"acknowledge",
|
|
12927
12948
|
"dismiss",
|
|
12928
12949
|
"silence",
|
|
12950
|
+
"snooze",
|
|
12929
12951
|
"view",
|
|
12930
12952
|
"play",
|
|
12931
12953
|
"open",
|
|
@@ -12933,9 +12955,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
12933
12955
|
"lock",
|
|
12934
12956
|
"unlock",
|
|
12935
12957
|
"arm",
|
|
12958
|
+
"arm-home",
|
|
12959
|
+
"arm-away",
|
|
12960
|
+
"arm-night",
|
|
12936
12961
|
"disarm",
|
|
12937
12962
|
"light",
|
|
12938
|
-
"alert"
|
|
12963
|
+
"alert",
|
|
12964
|
+
"camera"
|
|
12939
12965
|
]);
|
|
12940
12966
|
/** A single tap-through action button. */
|
|
12941
12967
|
var NotificationActionSchema = object({
|
|
@@ -13135,6 +13161,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13135
13161
|
targetId: string(),
|
|
13136
13162
|
enabled: boolean()
|
|
13137
13163
|
}), _void(), { kind: "mutation" });
|
|
13164
|
+
new Set([
|
|
13165
|
+
{
|
|
13166
|
+
id: "person",
|
|
13167
|
+
name: "Person"
|
|
13168
|
+
},
|
|
13169
|
+
{
|
|
13170
|
+
id: "vehicle",
|
|
13171
|
+
name: "Vehicle"
|
|
13172
|
+
},
|
|
13173
|
+
{
|
|
13174
|
+
id: "animal",
|
|
13175
|
+
name: "Animal"
|
|
13176
|
+
},
|
|
13177
|
+
{
|
|
13178
|
+
id: "package",
|
|
13179
|
+
name: "Package"
|
|
13180
|
+
}
|
|
13181
|
+
].map((l) => l.id));
|
|
13138
13182
|
var COCO_TO_MACRO = {
|
|
13139
13183
|
mapping: {
|
|
13140
13184
|
person: "person",
|
|
@@ -13932,6 +13976,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
13932
13976
|
"alarm-triggered",
|
|
13933
13977
|
"alarm-armed",
|
|
13934
13978
|
"alarm-disarmed",
|
|
13979
|
+
"alarm-arming",
|
|
13980
|
+
"alarm-arm-refused",
|
|
13935
13981
|
"camera-online",
|
|
13936
13982
|
"camera-offline",
|
|
13937
13983
|
"camera-disabled",
|
|
@@ -17164,6 +17210,22 @@ var detectionFpsField = {
|
|
|
17164
17210
|
default: 10,
|
|
17165
17211
|
step: 1
|
|
17166
17212
|
};
|
|
17213
|
+
/**
|
|
17214
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17215
|
+
*
|
|
17216
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17217
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17218
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17219
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17220
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17221
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17222
|
+
*
|
|
17223
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17224
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17225
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17226
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17227
|
+
* that ships with an addon deploy.
|
|
17228
|
+
*/
|
|
17167
17229
|
var occupancyRecheckSecField = {
|
|
17168
17230
|
min: 0,
|
|
17169
17231
|
max: 300,
|
|
@@ -17365,15 +17427,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17365
17427
|
*/
|
|
17366
17428
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17367
17429
|
/**
|
|
17368
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17369
|
-
*
|
|
17370
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17371
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17372
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17430
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17431
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17373
17432
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17374
17433
|
* (and only render) when this is enabled.
|
|
17375
|
-
|
|
17376
|
-
|
|
17434
|
+
*
|
|
17435
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17436
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17437
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17438
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17439
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17440
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17441
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17442
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17443
|
+
*/
|
|
17444
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17377
17445
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17378
17446
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17379
17447
|
/**
|
|
@@ -12920,11 +12920,33 @@ var NotificationFormatSchema = _enum([
|
|
|
12920
12920
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
12921
12921
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
12922
12922
|
* differently.
|
|
12923
|
+
*
|
|
12924
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
12925
|
+
*
|
|
12926
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
12927
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
12928
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
12929
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
12930
|
+
* decides its glyph, which is the only place that decision can be made
|
|
12931
|
+
* honestly.
|
|
12932
|
+
*
|
|
12933
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
12934
|
+
* `disarm` straight through; iOS feeds that string to
|
|
12935
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
12936
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
12937
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
12938
|
+
*
|
|
12939
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
12940
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
12941
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
12942
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
12943
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
12923
12944
|
*/
|
|
12924
12945
|
var NotificationActionIconSchema = _enum([
|
|
12925
12946
|
"acknowledge",
|
|
12926
12947
|
"dismiss",
|
|
12927
12948
|
"silence",
|
|
12949
|
+
"snooze",
|
|
12928
12950
|
"view",
|
|
12929
12951
|
"play",
|
|
12930
12952
|
"open",
|
|
@@ -12932,9 +12954,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
12932
12954
|
"lock",
|
|
12933
12955
|
"unlock",
|
|
12934
12956
|
"arm",
|
|
12957
|
+
"arm-home",
|
|
12958
|
+
"arm-away",
|
|
12959
|
+
"arm-night",
|
|
12935
12960
|
"disarm",
|
|
12936
12961
|
"light",
|
|
12937
|
-
"alert"
|
|
12962
|
+
"alert",
|
|
12963
|
+
"camera"
|
|
12938
12964
|
]);
|
|
12939
12965
|
/** A single tap-through action button. */
|
|
12940
12966
|
var NotificationActionSchema = object({
|
|
@@ -13134,6 +13160,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13134
13160
|
targetId: string(),
|
|
13135
13161
|
enabled: boolean()
|
|
13136
13162
|
}), _void(), { kind: "mutation" });
|
|
13163
|
+
new Set([
|
|
13164
|
+
{
|
|
13165
|
+
id: "person",
|
|
13166
|
+
name: "Person"
|
|
13167
|
+
},
|
|
13168
|
+
{
|
|
13169
|
+
id: "vehicle",
|
|
13170
|
+
name: "Vehicle"
|
|
13171
|
+
},
|
|
13172
|
+
{
|
|
13173
|
+
id: "animal",
|
|
13174
|
+
name: "Animal"
|
|
13175
|
+
},
|
|
13176
|
+
{
|
|
13177
|
+
id: "package",
|
|
13178
|
+
name: "Package"
|
|
13179
|
+
}
|
|
13180
|
+
].map((l) => l.id));
|
|
13137
13181
|
var COCO_TO_MACRO = {
|
|
13138
13182
|
mapping: {
|
|
13139
13183
|
person: "person",
|
|
@@ -13931,6 +13975,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
13931
13975
|
"alarm-triggered",
|
|
13932
13976
|
"alarm-armed",
|
|
13933
13977
|
"alarm-disarmed",
|
|
13978
|
+
"alarm-arming",
|
|
13979
|
+
"alarm-arm-refused",
|
|
13934
13980
|
"camera-online",
|
|
13935
13981
|
"camera-offline",
|
|
13936
13982
|
"camera-disabled",
|
|
@@ -17163,6 +17209,22 @@ var detectionFpsField = {
|
|
|
17163
17209
|
default: 10,
|
|
17164
17210
|
step: 1
|
|
17165
17211
|
};
|
|
17212
|
+
/**
|
|
17213
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17214
|
+
*
|
|
17215
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17216
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17217
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17218
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17219
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17220
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17221
|
+
*
|
|
17222
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17223
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17224
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17225
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17226
|
+
* that ships with an addon deploy.
|
|
17227
|
+
*/
|
|
17166
17228
|
var occupancyRecheckSecField = {
|
|
17167
17229
|
min: 0,
|
|
17168
17230
|
max: 300,
|
|
@@ -17364,15 +17426,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17364
17426
|
*/
|
|
17365
17427
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17366
17428
|
/**
|
|
17367
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17368
|
-
*
|
|
17369
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17370
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17371
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17429
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17430
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17372
17431
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17373
17432
|
* (and only render) when this is enabled.
|
|
17374
|
-
|
|
17375
|
-
|
|
17433
|
+
*
|
|
17434
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17435
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17436
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17437
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17438
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17439
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17440
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17441
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17442
|
+
*/
|
|
17443
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17376
17444
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17377
17445
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17378
17446
|
/**
|