@camstack/addon-provider-petkit 0.2.16 → 0.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
|
@@ -14334,11 +14334,33 @@ var NotificationFormatSchema = _enum([
|
|
|
14334
14334
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
14335
14335
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
14336
14336
|
* differently.
|
|
14337
|
+
*
|
|
14338
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
14339
|
+
*
|
|
14340
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
14341
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
14342
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
14343
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
14344
|
+
* decides its glyph, which is the only place that decision can be made
|
|
14345
|
+
* honestly.
|
|
14346
|
+
*
|
|
14347
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
14348
|
+
* `disarm` straight through; iOS feeds that string to
|
|
14349
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
14350
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
14351
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
14352
|
+
*
|
|
14353
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
14354
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
14355
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
14356
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
14357
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
14337
14358
|
*/
|
|
14338
14359
|
var NotificationActionIconSchema = _enum([
|
|
14339
14360
|
"acknowledge",
|
|
14340
14361
|
"dismiss",
|
|
14341
14362
|
"silence",
|
|
14363
|
+
"snooze",
|
|
14342
14364
|
"view",
|
|
14343
14365
|
"play",
|
|
14344
14366
|
"open",
|
|
@@ -14346,9 +14368,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
14346
14368
|
"lock",
|
|
14347
14369
|
"unlock",
|
|
14348
14370
|
"arm",
|
|
14371
|
+
"arm-home",
|
|
14372
|
+
"arm-away",
|
|
14373
|
+
"arm-night",
|
|
14349
14374
|
"disarm",
|
|
14350
14375
|
"light",
|
|
14351
|
-
"alert"
|
|
14376
|
+
"alert",
|
|
14377
|
+
"camera"
|
|
14352
14378
|
]);
|
|
14353
14379
|
/** A single tap-through action button. */
|
|
14354
14380
|
var NotificationActionSchema = object({
|
|
@@ -14548,6 +14574,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
14548
14574
|
targetId: string(),
|
|
14549
14575
|
enabled: boolean()
|
|
14550
14576
|
}), _void(), { kind: "mutation" });
|
|
14577
|
+
new Set([
|
|
14578
|
+
{
|
|
14579
|
+
id: "person",
|
|
14580
|
+
name: "Person"
|
|
14581
|
+
},
|
|
14582
|
+
{
|
|
14583
|
+
id: "vehicle",
|
|
14584
|
+
name: "Vehicle"
|
|
14585
|
+
},
|
|
14586
|
+
{
|
|
14587
|
+
id: "animal",
|
|
14588
|
+
name: "Animal"
|
|
14589
|
+
},
|
|
14590
|
+
{
|
|
14591
|
+
id: "package",
|
|
14592
|
+
name: "Package"
|
|
14593
|
+
}
|
|
14594
|
+
].map((l) => l.id));
|
|
14551
14595
|
var COCO_TO_MACRO = {
|
|
14552
14596
|
mapping: {
|
|
14553
14597
|
person: "person",
|
|
@@ -15383,6 +15427,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
15383
15427
|
"alarm-triggered",
|
|
15384
15428
|
"alarm-armed",
|
|
15385
15429
|
"alarm-disarmed",
|
|
15430
|
+
"alarm-arming",
|
|
15431
|
+
"alarm-arm-refused",
|
|
15386
15432
|
"camera-online",
|
|
15387
15433
|
"camera-offline",
|
|
15388
15434
|
"camera-disabled",
|
|
@@ -18655,6 +18701,22 @@ var detectionFpsField = {
|
|
|
18655
18701
|
default: 10,
|
|
18656
18702
|
step: 1
|
|
18657
18703
|
};
|
|
18704
|
+
/**
|
|
18705
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
18706
|
+
*
|
|
18707
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
18708
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
18709
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
18710
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
18711
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
18712
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
18713
|
+
*
|
|
18714
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
18715
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
18716
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
18717
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
18718
|
+
* that ships with an addon deploy.
|
|
18719
|
+
*/
|
|
18658
18720
|
var occupancyRecheckSecField = {
|
|
18659
18721
|
min: 0,
|
|
18660
18722
|
max: 300,
|
|
@@ -18856,15 +18918,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
18856
18918
|
*/
|
|
18857
18919
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
18858
18920
|
/**
|
|
18859
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
18860
|
-
*
|
|
18861
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
18862
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
18863
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
18921
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
18922
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
18864
18923
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
18865
18924
|
* (and only render) when this is enabled.
|
|
18866
|
-
|
|
18867
|
-
|
|
18925
|
+
*
|
|
18926
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
18927
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
18928
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
18929
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
18930
|
+
* object is counted only while the stationary registry holds it, and the
|
|
18931
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
18932
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
18933
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
18934
|
+
*/
|
|
18935
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
18868
18936
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
18869
18937
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
18870
18938
|
/**
|
package/dist/addon.mjs
CHANGED
|
@@ -14333,11 +14333,33 @@ var NotificationFormatSchema = _enum([
|
|
|
14333
14333
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
14334
14334
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
14335
14335
|
* differently.
|
|
14336
|
+
*
|
|
14337
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
14338
|
+
*
|
|
14339
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
14340
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
14341
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
14342
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
14343
|
+
* decides its glyph, which is the only place that decision can be made
|
|
14344
|
+
* honestly.
|
|
14345
|
+
*
|
|
14346
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
14347
|
+
* `disarm` straight through; iOS feeds that string to
|
|
14348
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
14349
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
14350
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
14351
|
+
*
|
|
14352
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
14353
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
14354
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
14355
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
14356
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
14336
14357
|
*/
|
|
14337
14358
|
var NotificationActionIconSchema = _enum([
|
|
14338
14359
|
"acknowledge",
|
|
14339
14360
|
"dismiss",
|
|
14340
14361
|
"silence",
|
|
14362
|
+
"snooze",
|
|
14341
14363
|
"view",
|
|
14342
14364
|
"play",
|
|
14343
14365
|
"open",
|
|
@@ -14345,9 +14367,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
14345
14367
|
"lock",
|
|
14346
14368
|
"unlock",
|
|
14347
14369
|
"arm",
|
|
14370
|
+
"arm-home",
|
|
14371
|
+
"arm-away",
|
|
14372
|
+
"arm-night",
|
|
14348
14373
|
"disarm",
|
|
14349
14374
|
"light",
|
|
14350
|
-
"alert"
|
|
14375
|
+
"alert",
|
|
14376
|
+
"camera"
|
|
14351
14377
|
]);
|
|
14352
14378
|
/** A single tap-through action button. */
|
|
14353
14379
|
var NotificationActionSchema = object({
|
|
@@ -14547,6 +14573,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
14547
14573
|
targetId: string(),
|
|
14548
14574
|
enabled: boolean()
|
|
14549
14575
|
}), _void(), { kind: "mutation" });
|
|
14576
|
+
new Set([
|
|
14577
|
+
{
|
|
14578
|
+
id: "person",
|
|
14579
|
+
name: "Person"
|
|
14580
|
+
},
|
|
14581
|
+
{
|
|
14582
|
+
id: "vehicle",
|
|
14583
|
+
name: "Vehicle"
|
|
14584
|
+
},
|
|
14585
|
+
{
|
|
14586
|
+
id: "animal",
|
|
14587
|
+
name: "Animal"
|
|
14588
|
+
},
|
|
14589
|
+
{
|
|
14590
|
+
id: "package",
|
|
14591
|
+
name: "Package"
|
|
14592
|
+
}
|
|
14593
|
+
].map((l) => l.id));
|
|
14550
14594
|
var COCO_TO_MACRO = {
|
|
14551
14595
|
mapping: {
|
|
14552
14596
|
person: "person",
|
|
@@ -15382,6 +15426,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
15382
15426
|
"alarm-triggered",
|
|
15383
15427
|
"alarm-armed",
|
|
15384
15428
|
"alarm-disarmed",
|
|
15429
|
+
"alarm-arming",
|
|
15430
|
+
"alarm-arm-refused",
|
|
15385
15431
|
"camera-online",
|
|
15386
15432
|
"camera-offline",
|
|
15387
15433
|
"camera-disabled",
|
|
@@ -18654,6 +18700,22 @@ var detectionFpsField = {
|
|
|
18654
18700
|
default: 10,
|
|
18655
18701
|
step: 1
|
|
18656
18702
|
};
|
|
18703
|
+
/**
|
|
18704
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
18705
|
+
*
|
|
18706
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
18707
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
18708
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
18709
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
18710
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
18711
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
18712
|
+
*
|
|
18713
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
18714
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
18715
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
18716
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
18717
|
+
* that ships with an addon deploy.
|
|
18718
|
+
*/
|
|
18657
18719
|
var occupancyRecheckSecField = {
|
|
18658
18720
|
min: 0,
|
|
18659
18721
|
max: 300,
|
|
@@ -18855,15 +18917,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
18855
18917
|
*/
|
|
18856
18918
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
18857
18919
|
/**
|
|
18858
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
18859
|
-
*
|
|
18860
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
18861
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
18862
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
18920
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
18921
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
18863
18922
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
18864
18923
|
* (and only render) when this is enabled.
|
|
18865
|
-
|
|
18866
|
-
|
|
18924
|
+
*
|
|
18925
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
18926
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
18927
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
18928
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
18929
|
+
* object is counted only while the stationary registry holds it, and the
|
|
18930
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
18931
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
18932
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
18933
|
+
*/
|
|
18934
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
18867
18935
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
18868
18936
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
18869
18937
|
/**
|
package/package.json
CHANGED