@camstack/addon-smtp-nodemailer 1.2.14 → 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/smtp.addon.js +148 -17
- package/dist/smtp.addon.mjs +148 -17
- package/package.json +1 -1
package/dist/smtp.addon.js
CHANGED
|
@@ -12958,11 +12958,33 @@ var NotificationFormatSchema = _enum([
|
|
|
12958
12958
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
12959
12959
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
12960
12960
|
* differently.
|
|
12961
|
+
*
|
|
12962
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
12963
|
+
*
|
|
12964
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
12965
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
12966
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
12967
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
12968
|
+
* decides its glyph, which is the only place that decision can be made
|
|
12969
|
+
* honestly.
|
|
12970
|
+
*
|
|
12971
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
12972
|
+
* `disarm` straight through; iOS feeds that string to
|
|
12973
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
12974
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
12975
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
12976
|
+
*
|
|
12977
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
12978
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
12979
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
12980
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
12981
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
12961
12982
|
*/
|
|
12962
12983
|
var NotificationActionIconSchema = _enum([
|
|
12963
12984
|
"acknowledge",
|
|
12964
12985
|
"dismiss",
|
|
12965
12986
|
"silence",
|
|
12987
|
+
"snooze",
|
|
12966
12988
|
"view",
|
|
12967
12989
|
"play",
|
|
12968
12990
|
"open",
|
|
@@ -12970,9 +12992,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
12970
12992
|
"lock",
|
|
12971
12993
|
"unlock",
|
|
12972
12994
|
"arm",
|
|
12995
|
+
"arm-home",
|
|
12996
|
+
"arm-away",
|
|
12997
|
+
"arm-night",
|
|
12973
12998
|
"disarm",
|
|
12974
12999
|
"light",
|
|
12975
|
-
"alert"
|
|
13000
|
+
"alert",
|
|
13001
|
+
"camera"
|
|
12976
13002
|
]);
|
|
12977
13003
|
/** A single tap-through action button. */
|
|
12978
13004
|
var NotificationActionSchema = object({
|
|
@@ -12988,7 +13014,23 @@ var NotificationActionSchema = object({
|
|
|
12988
13014
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
12989
13015
|
* does not buy.
|
|
12990
13016
|
*/
|
|
12991
|
-
destructive: boolean().optional()
|
|
13017
|
+
destructive: boolean().optional(),
|
|
13018
|
+
/**
|
|
13019
|
+
* How the tap should REACH the url.
|
|
13020
|
+
*
|
|
13021
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13022
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13023
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13024
|
+
*
|
|
13025
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13026
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13027
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13028
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13029
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13030
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13031
|
+
* a requirement.
|
|
13032
|
+
*/
|
|
13033
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
12992
13034
|
});
|
|
12993
13035
|
/**
|
|
12994
13036
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13156,6 +13198,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13156
13198
|
targetId: string(),
|
|
13157
13199
|
enabled: boolean()
|
|
13158
13200
|
}), _void(), { kind: "mutation" });
|
|
13201
|
+
new Set([
|
|
13202
|
+
{
|
|
13203
|
+
id: "person",
|
|
13204
|
+
name: "Person"
|
|
13205
|
+
},
|
|
13206
|
+
{
|
|
13207
|
+
id: "vehicle",
|
|
13208
|
+
name: "Vehicle"
|
|
13209
|
+
},
|
|
13210
|
+
{
|
|
13211
|
+
id: "animal",
|
|
13212
|
+
name: "Animal"
|
|
13213
|
+
},
|
|
13214
|
+
{
|
|
13215
|
+
id: "package",
|
|
13216
|
+
name: "Package"
|
|
13217
|
+
}
|
|
13218
|
+
].map((l) => l.id));
|
|
13159
13219
|
var COCO_TO_MACRO = {
|
|
13160
13220
|
mapping: {
|
|
13161
13221
|
person: "person",
|
|
@@ -13953,6 +14013,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
13953
14013
|
"alarm-triggered",
|
|
13954
14014
|
"alarm-armed",
|
|
13955
14015
|
"alarm-disarmed",
|
|
14016
|
+
"alarm-arming",
|
|
14017
|
+
"alarm-arm-refused",
|
|
13956
14018
|
"camera-online",
|
|
13957
14019
|
"camera-offline",
|
|
13958
14020
|
"camera-disabled",
|
|
@@ -13989,6 +14051,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
13989
14051
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
13990
14052
|
packageNames: array(string().min(1)).min(1).optional()
|
|
13991
14053
|
});
|
|
14054
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14055
|
+
* outage the operator asked for once and forgot. */
|
|
14056
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
13992
14057
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
13993
14058
|
var NcScheduleSchema = object({
|
|
13994
14059
|
windows: array(object({
|
|
@@ -14365,15 +14430,15 @@ var NcConditionsSchema = object({
|
|
|
14365
14430
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14366
14431
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14367
14432
|
*
|
|
14368
|
-
*
|
|
14369
|
-
* rather than an
|
|
14370
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14371
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14433
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14434
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14435
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14436
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14372
14437
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14373
14438
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14374
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14375
|
-
*
|
|
14376
|
-
*
|
|
14439
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14440
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14441
|
+
* follows here.
|
|
14377
14442
|
*/
|
|
14378
14443
|
audio: NcAudioConditionSchema.optional()
|
|
14379
14444
|
});
|
|
@@ -14609,6 +14674,30 @@ var NcRuleInputSchema = object({
|
|
|
14609
14674
|
*/
|
|
14610
14675
|
snoozeAllowGlobal: boolean().optional(),
|
|
14611
14676
|
/**
|
|
14677
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
14678
|
+
* minutes.
|
|
14679
|
+
*
|
|
14680
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
14681
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
14682
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
14683
|
+
* would collapse the first two:
|
|
14684
|
+
*
|
|
14685
|
+
* | value | meaning |
|
|
14686
|
+
* | --- | --- |
|
|
14687
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
14688
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
14689
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
14690
|
+
*
|
|
14691
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
14692
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
14693
|
+
* would push its own tap-through actions off the notification.
|
|
14694
|
+
*
|
|
14695
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
14696
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
14697
|
+
* window from anywhere (D133).
|
|
14698
|
+
*/
|
|
14699
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
14700
|
+
/**
|
|
14612
14701
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14613
14702
|
*
|
|
14614
14703
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -14708,6 +14797,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14708
14797
|
"device",
|
|
14709
14798
|
"package",
|
|
14710
14799
|
"occupancy",
|
|
14800
|
+
"audio",
|
|
14711
14801
|
"system"
|
|
14712
14802
|
]),
|
|
14713
14803
|
label: string(),
|
|
@@ -14726,6 +14816,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14726
14816
|
"crossingSelect",
|
|
14727
14817
|
"polygonDraw",
|
|
14728
14818
|
"occupancy",
|
|
14819
|
+
"audio",
|
|
14729
14820
|
"deviceState",
|
|
14730
14821
|
"systemEvent"
|
|
14731
14822
|
]),
|
|
@@ -14877,7 +14968,20 @@ var NcSnoozeInputSchema = object({
|
|
|
14877
14968
|
ruleId: string().optional(),
|
|
14878
14969
|
/** Required when `scope: 'device'`. */
|
|
14879
14970
|
deviceId: number().int().optional(),
|
|
14880
|
-
|
|
14971
|
+
/**
|
|
14972
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
14973
|
+
*
|
|
14974
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
14975
|
+
* what every window authored before this field meant, so no persisted row
|
|
14976
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
14977
|
+
*
|
|
14978
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
14979
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
14980
|
+
* not at whichever of their four rules happened to produce the notification
|
|
14981
|
+
* they are dismissing.
|
|
14982
|
+
*/
|
|
14983
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14984
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
14881
14985
|
/**
|
|
14882
14986
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
14883
14987
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -14902,6 +15006,10 @@ var NcSnoozeSchema = object({
|
|
|
14902
15006
|
scope: NcSnoozeScopeSchema,
|
|
14903
15007
|
ruleId: string().optional(),
|
|
14904
15008
|
deviceId: number().int().optional(),
|
|
15009
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15010
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15011
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15012
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14905
15013
|
startedAt: number(),
|
|
14906
15014
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
14907
15015
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17139,6 +17247,22 @@ var detectionFpsField = {
|
|
|
17139
17247
|
default: 10,
|
|
17140
17248
|
step: 1
|
|
17141
17249
|
};
|
|
17250
|
+
/**
|
|
17251
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17252
|
+
*
|
|
17253
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17254
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17255
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17256
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17257
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17258
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17259
|
+
*
|
|
17260
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17261
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17262
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17263
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17264
|
+
* that ships with an addon deploy.
|
|
17265
|
+
*/
|
|
17142
17266
|
var occupancyRecheckSecField = {
|
|
17143
17267
|
min: 0,
|
|
17144
17268
|
max: 300,
|
|
@@ -17340,15 +17464,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17340
17464
|
*/
|
|
17341
17465
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17342
17466
|
/**
|
|
17343
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17344
|
-
*
|
|
17345
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17346
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17347
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17467
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17468
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17348
17469
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17349
17470
|
* (and only render) when this is enabled.
|
|
17350
|
-
|
|
17351
|
-
|
|
17471
|
+
*
|
|
17472
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17473
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17474
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17475
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17476
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17477
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17478
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17479
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17480
|
+
*/
|
|
17481
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17352
17482
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17353
17483
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17354
17484
|
/**
|
|
@@ -30487,6 +30617,7 @@ Object.freeze({
|
|
|
30487
30617
|
"network-access": "ingress",
|
|
30488
30618
|
"smtp-provider": "email"
|
|
30489
30619
|
});
|
|
30620
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
30490
30621
|
new Set(["devices", "classes"]);
|
|
30491
30622
|
/**
|
|
30492
30623
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
package/dist/smtp.addon.mjs
CHANGED
|
@@ -12956,11 +12956,33 @@ var NotificationFormatSchema = _enum([
|
|
|
12956
12956
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
12957
12957
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
12958
12958
|
* differently.
|
|
12959
|
+
*
|
|
12960
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
12961
|
+
*
|
|
12962
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
12963
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
12964
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
12965
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
12966
|
+
* decides its glyph, which is the only place that decision can be made
|
|
12967
|
+
* honestly.
|
|
12968
|
+
*
|
|
12969
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
12970
|
+
* `disarm` straight through; iOS feeds that string to
|
|
12971
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
12972
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
12973
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
12974
|
+
*
|
|
12975
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
12976
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
12977
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
12978
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
12979
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
12959
12980
|
*/
|
|
12960
12981
|
var NotificationActionIconSchema = _enum([
|
|
12961
12982
|
"acknowledge",
|
|
12962
12983
|
"dismiss",
|
|
12963
12984
|
"silence",
|
|
12985
|
+
"snooze",
|
|
12964
12986
|
"view",
|
|
12965
12987
|
"play",
|
|
12966
12988
|
"open",
|
|
@@ -12968,9 +12990,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
12968
12990
|
"lock",
|
|
12969
12991
|
"unlock",
|
|
12970
12992
|
"arm",
|
|
12993
|
+
"arm-home",
|
|
12994
|
+
"arm-away",
|
|
12995
|
+
"arm-night",
|
|
12971
12996
|
"disarm",
|
|
12972
12997
|
"light",
|
|
12973
|
-
"alert"
|
|
12998
|
+
"alert",
|
|
12999
|
+
"camera"
|
|
12974
13000
|
]);
|
|
12975
13001
|
/** A single tap-through action button. */
|
|
12976
13002
|
var NotificationActionSchema = object({
|
|
@@ -12986,7 +13012,23 @@ var NotificationActionSchema = object({
|
|
|
12986
13012
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
12987
13013
|
* does not buy.
|
|
12988
13014
|
*/
|
|
12989
|
-
destructive: boolean().optional()
|
|
13015
|
+
destructive: boolean().optional(),
|
|
13016
|
+
/**
|
|
13017
|
+
* How the tap should REACH the url.
|
|
13018
|
+
*
|
|
13019
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13020
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13021
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13022
|
+
*
|
|
13023
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13024
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13025
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13026
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13027
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13028
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13029
|
+
* a requirement.
|
|
13030
|
+
*/
|
|
13031
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
12990
13032
|
});
|
|
12991
13033
|
/**
|
|
12992
13034
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13154,6 +13196,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13154
13196
|
targetId: string(),
|
|
13155
13197
|
enabled: boolean()
|
|
13156
13198
|
}), _void(), { kind: "mutation" });
|
|
13199
|
+
new Set([
|
|
13200
|
+
{
|
|
13201
|
+
id: "person",
|
|
13202
|
+
name: "Person"
|
|
13203
|
+
},
|
|
13204
|
+
{
|
|
13205
|
+
id: "vehicle",
|
|
13206
|
+
name: "Vehicle"
|
|
13207
|
+
},
|
|
13208
|
+
{
|
|
13209
|
+
id: "animal",
|
|
13210
|
+
name: "Animal"
|
|
13211
|
+
},
|
|
13212
|
+
{
|
|
13213
|
+
id: "package",
|
|
13214
|
+
name: "Package"
|
|
13215
|
+
}
|
|
13216
|
+
].map((l) => l.id));
|
|
13157
13217
|
var COCO_TO_MACRO = {
|
|
13158
13218
|
mapping: {
|
|
13159
13219
|
person: "person",
|
|
@@ -13951,6 +14011,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
13951
14011
|
"alarm-triggered",
|
|
13952
14012
|
"alarm-armed",
|
|
13953
14013
|
"alarm-disarmed",
|
|
14014
|
+
"alarm-arming",
|
|
14015
|
+
"alarm-arm-refused",
|
|
13954
14016
|
"camera-online",
|
|
13955
14017
|
"camera-offline",
|
|
13956
14018
|
"camera-disabled",
|
|
@@ -13987,6 +14049,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
13987
14049
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
13988
14050
|
packageNames: array(string().min(1)).min(1).optional()
|
|
13989
14051
|
});
|
|
14052
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14053
|
+
* outage the operator asked for once and forgot. */
|
|
14054
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
13990
14055
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
13991
14056
|
var NcScheduleSchema = object({
|
|
13992
14057
|
windows: array(object({
|
|
@@ -14363,15 +14428,15 @@ var NcConditionsSchema = object({
|
|
|
14363
14428
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14364
14429
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14365
14430
|
*
|
|
14366
|
-
*
|
|
14367
|
-
* rather than an
|
|
14368
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14369
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14431
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14432
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14433
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14434
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14370
14435
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14371
14436
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14372
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14373
|
-
*
|
|
14374
|
-
*
|
|
14437
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14438
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14439
|
+
* follows here.
|
|
14375
14440
|
*/
|
|
14376
14441
|
audio: NcAudioConditionSchema.optional()
|
|
14377
14442
|
});
|
|
@@ -14607,6 +14672,30 @@ var NcRuleInputSchema = object({
|
|
|
14607
14672
|
*/
|
|
14608
14673
|
snoozeAllowGlobal: boolean().optional(),
|
|
14609
14674
|
/**
|
|
14675
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
14676
|
+
* minutes.
|
|
14677
|
+
*
|
|
14678
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
14679
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
14680
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
14681
|
+
* would collapse the first two:
|
|
14682
|
+
*
|
|
14683
|
+
* | value | meaning |
|
|
14684
|
+
* | --- | --- |
|
|
14685
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
14686
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
14687
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
14688
|
+
*
|
|
14689
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
14690
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
14691
|
+
* would push its own tap-through actions off the notification.
|
|
14692
|
+
*
|
|
14693
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
14694
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
14695
|
+
* window from anywhere (D133).
|
|
14696
|
+
*/
|
|
14697
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
14698
|
+
/**
|
|
14610
14699
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14611
14700
|
*
|
|
14612
14701
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -14706,6 +14795,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14706
14795
|
"device",
|
|
14707
14796
|
"package",
|
|
14708
14797
|
"occupancy",
|
|
14798
|
+
"audio",
|
|
14709
14799
|
"system"
|
|
14710
14800
|
]),
|
|
14711
14801
|
label: string(),
|
|
@@ -14724,6 +14814,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14724
14814
|
"crossingSelect",
|
|
14725
14815
|
"polygonDraw",
|
|
14726
14816
|
"occupancy",
|
|
14817
|
+
"audio",
|
|
14727
14818
|
"deviceState",
|
|
14728
14819
|
"systemEvent"
|
|
14729
14820
|
]),
|
|
@@ -14875,7 +14966,20 @@ var NcSnoozeInputSchema = object({
|
|
|
14875
14966
|
ruleId: string().optional(),
|
|
14876
14967
|
/** Required when `scope: 'device'`. */
|
|
14877
14968
|
deviceId: number().int().optional(),
|
|
14878
|
-
|
|
14969
|
+
/**
|
|
14970
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
14971
|
+
*
|
|
14972
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
14973
|
+
* what every window authored before this field meant, so no persisted row
|
|
14974
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
14975
|
+
*
|
|
14976
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
14977
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
14978
|
+
* not at whichever of their four rules happened to produce the notification
|
|
14979
|
+
* they are dismissing.
|
|
14980
|
+
*/
|
|
14981
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14982
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
14879
14983
|
/**
|
|
14880
14984
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
14881
14985
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -14900,6 +15004,10 @@ var NcSnoozeSchema = object({
|
|
|
14900
15004
|
scope: NcSnoozeScopeSchema,
|
|
14901
15005
|
ruleId: string().optional(),
|
|
14902
15006
|
deviceId: number().int().optional(),
|
|
15007
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15008
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15009
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15010
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14903
15011
|
startedAt: number(),
|
|
14904
15012
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
14905
15013
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17137,6 +17245,22 @@ var detectionFpsField = {
|
|
|
17137
17245
|
default: 10,
|
|
17138
17246
|
step: 1
|
|
17139
17247
|
};
|
|
17248
|
+
/**
|
|
17249
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17250
|
+
*
|
|
17251
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17252
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17253
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17254
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17255
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17256
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17257
|
+
*
|
|
17258
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17259
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17260
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17261
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17262
|
+
* that ships with an addon deploy.
|
|
17263
|
+
*/
|
|
17140
17264
|
var occupancyRecheckSecField = {
|
|
17141
17265
|
min: 0,
|
|
17142
17266
|
max: 300,
|
|
@@ -17338,15 +17462,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17338
17462
|
*/
|
|
17339
17463
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17340
17464
|
/**
|
|
17341
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17342
|
-
*
|
|
17343
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17344
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17345
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17465
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17466
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17346
17467
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17347
17468
|
* (and only render) when this is enabled.
|
|
17348
|
-
|
|
17349
|
-
|
|
17469
|
+
*
|
|
17470
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17471
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17472
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17473
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17474
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17475
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17476
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17477
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17478
|
+
*/
|
|
17479
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17350
17480
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17351
17481
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17352
17482
|
/**
|
|
@@ -30485,6 +30615,7 @@ Object.freeze({
|
|
|
30485
30615
|
"network-access": "ingress",
|
|
30486
30616
|
"smtp-provider": "email"
|
|
30487
30617
|
});
|
|
30618
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
30488
30619
|
new Set(["devices", "classes"]);
|
|
30489
30620
|
/**
|
|
30490
30621
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-smtp-nodemailer",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.16",
|
|
4
4
|
"description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|