@camstack/addon-tailscale 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/client/tailscale.addon.js +1 -1
- package/dist/client/tailscale.addon.mjs +1 -1
- package/dist/{dist-UJ8lP0Bf.mjs → dist-DaQABWY4.mjs} +148 -17
- package/dist/{dist-BbpHpbVk.js → dist-IOeQBNag.js} +148 -17
- package/dist/ingress/tailscale-ingress.addon.js +1 -1
- package/dist/ingress/tailscale-ingress.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
//#endregion
|
|
27
|
-
const require_dist = require("../dist-
|
|
27
|
+
const require_dist = require("../dist-IOeQBNag.js");
|
|
28
28
|
let node_child_process = require("node:child_process");
|
|
29
29
|
let node_util = require("node:util");
|
|
30
30
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as EventCategory, n as networkAccessCapability, r as BaseAddon, t as meshNetworkCapability } from "../dist-
|
|
1
|
+
import { i as EventCategory, n as networkAccessCapability, r as BaseAddon, t as meshNetworkCapability } from "../dist-DaQABWY4.mjs";
|
|
2
2
|
import { execFile, spawn } from "node:child_process";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import * as fs from "node:fs";
|
|
@@ -12937,11 +12937,33 @@ var NotificationFormatSchema = _enum([
|
|
|
12937
12937
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
12938
12938
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
12939
12939
|
* differently.
|
|
12940
|
+
*
|
|
12941
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
12942
|
+
*
|
|
12943
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
12944
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
12945
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
12946
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
12947
|
+
* decides its glyph, which is the only place that decision can be made
|
|
12948
|
+
* honestly.
|
|
12949
|
+
*
|
|
12950
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
12951
|
+
* `disarm` straight through; iOS feeds that string to
|
|
12952
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
12953
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
12954
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
12955
|
+
*
|
|
12956
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
12957
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
12958
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
12959
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
12960
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
12940
12961
|
*/
|
|
12941
12962
|
var NotificationActionIconSchema = _enum([
|
|
12942
12963
|
"acknowledge",
|
|
12943
12964
|
"dismiss",
|
|
12944
12965
|
"silence",
|
|
12966
|
+
"snooze",
|
|
12945
12967
|
"view",
|
|
12946
12968
|
"play",
|
|
12947
12969
|
"open",
|
|
@@ -12949,9 +12971,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
12949
12971
|
"lock",
|
|
12950
12972
|
"unlock",
|
|
12951
12973
|
"arm",
|
|
12974
|
+
"arm-home",
|
|
12975
|
+
"arm-away",
|
|
12976
|
+
"arm-night",
|
|
12952
12977
|
"disarm",
|
|
12953
12978
|
"light",
|
|
12954
|
-
"alert"
|
|
12979
|
+
"alert",
|
|
12980
|
+
"camera"
|
|
12955
12981
|
]);
|
|
12956
12982
|
/** A single tap-through action button. */
|
|
12957
12983
|
var NotificationActionSchema = object({
|
|
@@ -12967,7 +12993,23 @@ var NotificationActionSchema = object({
|
|
|
12967
12993
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
12968
12994
|
* does not buy.
|
|
12969
12995
|
*/
|
|
12970
|
-
destructive: boolean().optional()
|
|
12996
|
+
destructive: boolean().optional(),
|
|
12997
|
+
/**
|
|
12998
|
+
* How the tap should REACH the url.
|
|
12999
|
+
*
|
|
13000
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13001
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13002
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13003
|
+
*
|
|
13004
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13005
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13006
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13007
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13008
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13009
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13010
|
+
* a requirement.
|
|
13011
|
+
*/
|
|
13012
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
12971
13013
|
});
|
|
12972
13014
|
/**
|
|
12973
13015
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13135,6 +13177,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13135
13177
|
targetId: string(),
|
|
13136
13178
|
enabled: boolean()
|
|
13137
13179
|
}), _void(), { kind: "mutation" });
|
|
13180
|
+
new Set([
|
|
13181
|
+
{
|
|
13182
|
+
id: "person",
|
|
13183
|
+
name: "Person"
|
|
13184
|
+
},
|
|
13185
|
+
{
|
|
13186
|
+
id: "vehicle",
|
|
13187
|
+
name: "Vehicle"
|
|
13188
|
+
},
|
|
13189
|
+
{
|
|
13190
|
+
id: "animal",
|
|
13191
|
+
name: "Animal"
|
|
13192
|
+
},
|
|
13193
|
+
{
|
|
13194
|
+
id: "package",
|
|
13195
|
+
name: "Package"
|
|
13196
|
+
}
|
|
13197
|
+
].map((l) => l.id));
|
|
13138
13198
|
var COCO_TO_MACRO = {
|
|
13139
13199
|
mapping: {
|
|
13140
13200
|
person: "person",
|
|
@@ -13932,6 +13992,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
13932
13992
|
"alarm-triggered",
|
|
13933
13993
|
"alarm-armed",
|
|
13934
13994
|
"alarm-disarmed",
|
|
13995
|
+
"alarm-arming",
|
|
13996
|
+
"alarm-arm-refused",
|
|
13935
13997
|
"camera-online",
|
|
13936
13998
|
"camera-offline",
|
|
13937
13999
|
"camera-disabled",
|
|
@@ -13968,6 +14030,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
13968
14030
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
13969
14031
|
packageNames: array(string().min(1)).min(1).optional()
|
|
13970
14032
|
});
|
|
14033
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14034
|
+
* outage the operator asked for once and forgot. */
|
|
14035
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
13971
14036
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
13972
14037
|
var NcScheduleSchema = object({
|
|
13973
14038
|
windows: array(object({
|
|
@@ -14344,15 +14409,15 @@ var NcConditionsSchema = object({
|
|
|
14344
14409
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14345
14410
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14346
14411
|
*
|
|
14347
|
-
*
|
|
14348
|
-
* rather than an
|
|
14349
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14350
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14412
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14413
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14414
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14415
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14351
14416
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14352
14417
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14353
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14354
|
-
*
|
|
14355
|
-
*
|
|
14418
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14419
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14420
|
+
* follows here.
|
|
14356
14421
|
*/
|
|
14357
14422
|
audio: NcAudioConditionSchema.optional()
|
|
14358
14423
|
});
|
|
@@ -14588,6 +14653,30 @@ var NcRuleInputSchema = object({
|
|
|
14588
14653
|
*/
|
|
14589
14654
|
snoozeAllowGlobal: boolean().optional(),
|
|
14590
14655
|
/**
|
|
14656
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
14657
|
+
* minutes.
|
|
14658
|
+
*
|
|
14659
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
14660
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
14661
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
14662
|
+
* would collapse the first two:
|
|
14663
|
+
*
|
|
14664
|
+
* | value | meaning |
|
|
14665
|
+
* | --- | --- |
|
|
14666
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
14667
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
14668
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
14669
|
+
*
|
|
14670
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
14671
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
14672
|
+
* would push its own tap-through actions off the notification.
|
|
14673
|
+
*
|
|
14674
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
14675
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
14676
|
+
* window from anywhere (D133).
|
|
14677
|
+
*/
|
|
14678
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
14679
|
+
/**
|
|
14591
14680
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14592
14681
|
*
|
|
14593
14682
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -14687,6 +14776,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14687
14776
|
"device",
|
|
14688
14777
|
"package",
|
|
14689
14778
|
"occupancy",
|
|
14779
|
+
"audio",
|
|
14690
14780
|
"system"
|
|
14691
14781
|
]),
|
|
14692
14782
|
label: string(),
|
|
@@ -14705,6 +14795,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14705
14795
|
"crossingSelect",
|
|
14706
14796
|
"polygonDraw",
|
|
14707
14797
|
"occupancy",
|
|
14798
|
+
"audio",
|
|
14708
14799
|
"deviceState",
|
|
14709
14800
|
"systemEvent"
|
|
14710
14801
|
]),
|
|
@@ -14856,7 +14947,20 @@ var NcSnoozeInputSchema = object({
|
|
|
14856
14947
|
ruleId: string().optional(),
|
|
14857
14948
|
/** Required when `scope: 'device'`. */
|
|
14858
14949
|
deviceId: number().int().optional(),
|
|
14859
|
-
|
|
14950
|
+
/**
|
|
14951
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
14952
|
+
*
|
|
14953
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
14954
|
+
* what every window authored before this field meant, so no persisted row
|
|
14955
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
14956
|
+
*
|
|
14957
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
14958
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
14959
|
+
* not at whichever of their four rules happened to produce the notification
|
|
14960
|
+
* they are dismissing.
|
|
14961
|
+
*/
|
|
14962
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14963
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
14860
14964
|
/**
|
|
14861
14965
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
14862
14966
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -14881,6 +14985,10 @@ var NcSnoozeSchema = object({
|
|
|
14881
14985
|
scope: NcSnoozeScopeSchema,
|
|
14882
14986
|
ruleId: string().optional(),
|
|
14883
14987
|
deviceId: number().int().optional(),
|
|
14988
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
14989
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
14990
|
+
* no SQLite column: nothing queries a window by class. */
|
|
14991
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14884
14992
|
startedAt: number(),
|
|
14885
14993
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
14886
14994
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17118,6 +17226,22 @@ var detectionFpsField = {
|
|
|
17118
17226
|
default: 10,
|
|
17119
17227
|
step: 1
|
|
17120
17228
|
};
|
|
17229
|
+
/**
|
|
17230
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17231
|
+
*
|
|
17232
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17233
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17234
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17235
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17236
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17237
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17238
|
+
*
|
|
17239
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17240
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17241
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17242
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17243
|
+
* that ships with an addon deploy.
|
|
17244
|
+
*/
|
|
17121
17245
|
var occupancyRecheckSecField = {
|
|
17122
17246
|
min: 0,
|
|
17123
17247
|
max: 300,
|
|
@@ -17319,15 +17443,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17319
17443
|
*/
|
|
17320
17444
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17321
17445
|
/**
|
|
17322
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17323
|
-
*
|
|
17324
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17325
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17326
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17446
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17447
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17327
17448
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17328
17449
|
* (and only render) when this is enabled.
|
|
17329
|
-
|
|
17330
|
-
|
|
17450
|
+
*
|
|
17451
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17452
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17453
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17454
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17455
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17456
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17457
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17458
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17459
|
+
*/
|
|
17460
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17331
17461
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17332
17462
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17333
17463
|
/**
|
|
@@ -30514,6 +30644,7 @@ Object.freeze({
|
|
|
30514
30644
|
"network-access": "ingress",
|
|
30515
30645
|
"smtp-provider": "email"
|
|
30516
30646
|
});
|
|
30647
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
30517
30648
|
new Set(["devices", "classes"]);
|
|
30518
30649
|
/**
|
|
30519
30650
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
@@ -12937,11 +12937,33 @@ var NotificationFormatSchema = _enum([
|
|
|
12937
12937
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
12938
12938
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
12939
12939
|
* differently.
|
|
12940
|
+
*
|
|
12941
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
12942
|
+
*
|
|
12943
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
12944
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
12945
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
12946
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
12947
|
+
* decides its glyph, which is the only place that decision can be made
|
|
12948
|
+
* honestly.
|
|
12949
|
+
*
|
|
12950
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
12951
|
+
* `disarm` straight through; iOS feeds that string to
|
|
12952
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
12953
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
12954
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
12955
|
+
*
|
|
12956
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
12957
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
12958
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
12959
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
12960
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
12940
12961
|
*/
|
|
12941
12962
|
var NotificationActionIconSchema = _enum([
|
|
12942
12963
|
"acknowledge",
|
|
12943
12964
|
"dismiss",
|
|
12944
12965
|
"silence",
|
|
12966
|
+
"snooze",
|
|
12945
12967
|
"view",
|
|
12946
12968
|
"play",
|
|
12947
12969
|
"open",
|
|
@@ -12949,9 +12971,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
12949
12971
|
"lock",
|
|
12950
12972
|
"unlock",
|
|
12951
12973
|
"arm",
|
|
12974
|
+
"arm-home",
|
|
12975
|
+
"arm-away",
|
|
12976
|
+
"arm-night",
|
|
12952
12977
|
"disarm",
|
|
12953
12978
|
"light",
|
|
12954
|
-
"alert"
|
|
12979
|
+
"alert",
|
|
12980
|
+
"camera"
|
|
12955
12981
|
]);
|
|
12956
12982
|
/** A single tap-through action button. */
|
|
12957
12983
|
var NotificationActionSchema = object({
|
|
@@ -12967,7 +12993,23 @@ var NotificationActionSchema = object({
|
|
|
12967
12993
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
12968
12994
|
* does not buy.
|
|
12969
12995
|
*/
|
|
12970
|
-
destructive: boolean().optional()
|
|
12996
|
+
destructive: boolean().optional(),
|
|
12997
|
+
/**
|
|
12998
|
+
* How the tap should REACH the url.
|
|
12999
|
+
*
|
|
13000
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13001
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13002
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13003
|
+
*
|
|
13004
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13005
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13006
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13007
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13008
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13009
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13010
|
+
* a requirement.
|
|
13011
|
+
*/
|
|
13012
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
12971
13013
|
});
|
|
12972
13014
|
/**
|
|
12973
13015
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13135,6 +13177,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13135
13177
|
targetId: string(),
|
|
13136
13178
|
enabled: boolean()
|
|
13137
13179
|
}), _void(), { kind: "mutation" });
|
|
13180
|
+
new Set([
|
|
13181
|
+
{
|
|
13182
|
+
id: "person",
|
|
13183
|
+
name: "Person"
|
|
13184
|
+
},
|
|
13185
|
+
{
|
|
13186
|
+
id: "vehicle",
|
|
13187
|
+
name: "Vehicle"
|
|
13188
|
+
},
|
|
13189
|
+
{
|
|
13190
|
+
id: "animal",
|
|
13191
|
+
name: "Animal"
|
|
13192
|
+
},
|
|
13193
|
+
{
|
|
13194
|
+
id: "package",
|
|
13195
|
+
name: "Package"
|
|
13196
|
+
}
|
|
13197
|
+
].map((l) => l.id));
|
|
13138
13198
|
var COCO_TO_MACRO = {
|
|
13139
13199
|
mapping: {
|
|
13140
13200
|
person: "person",
|
|
@@ -13932,6 +13992,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
13932
13992
|
"alarm-triggered",
|
|
13933
13993
|
"alarm-armed",
|
|
13934
13994
|
"alarm-disarmed",
|
|
13995
|
+
"alarm-arming",
|
|
13996
|
+
"alarm-arm-refused",
|
|
13935
13997
|
"camera-online",
|
|
13936
13998
|
"camera-offline",
|
|
13937
13999
|
"camera-disabled",
|
|
@@ -13968,6 +14030,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
13968
14030
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
13969
14031
|
packageNames: array(string().min(1)).min(1).optional()
|
|
13970
14032
|
});
|
|
14033
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14034
|
+
* outage the operator asked for once and forgot. */
|
|
14035
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
13971
14036
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
13972
14037
|
var NcScheduleSchema = object({
|
|
13973
14038
|
windows: array(object({
|
|
@@ -14344,15 +14409,15 @@ var NcConditionsSchema = object({
|
|
|
14344
14409
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14345
14410
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14346
14411
|
*
|
|
14347
|
-
*
|
|
14348
|
-
* rather than an
|
|
14349
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14350
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14412
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14413
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14414
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14415
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14351
14416
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14352
14417
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14353
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14354
|
-
*
|
|
14355
|
-
*
|
|
14418
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14419
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14420
|
+
* follows here.
|
|
14356
14421
|
*/
|
|
14357
14422
|
audio: NcAudioConditionSchema.optional()
|
|
14358
14423
|
});
|
|
@@ -14588,6 +14653,30 @@ var NcRuleInputSchema = object({
|
|
|
14588
14653
|
*/
|
|
14589
14654
|
snoozeAllowGlobal: boolean().optional(),
|
|
14590
14655
|
/**
|
|
14656
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
14657
|
+
* minutes.
|
|
14658
|
+
*
|
|
14659
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
14660
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
14661
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
14662
|
+
* would collapse the first two:
|
|
14663
|
+
*
|
|
14664
|
+
* | value | meaning |
|
|
14665
|
+
* | --- | --- |
|
|
14666
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
14667
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
14668
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
14669
|
+
*
|
|
14670
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
14671
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
14672
|
+
* would push its own tap-through actions off the notification.
|
|
14673
|
+
*
|
|
14674
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
14675
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
14676
|
+
* window from anywhere (D133).
|
|
14677
|
+
*/
|
|
14678
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
14679
|
+
/**
|
|
14591
14680
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14592
14681
|
*
|
|
14593
14682
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -14687,6 +14776,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14687
14776
|
"device",
|
|
14688
14777
|
"package",
|
|
14689
14778
|
"occupancy",
|
|
14779
|
+
"audio",
|
|
14690
14780
|
"system"
|
|
14691
14781
|
]),
|
|
14692
14782
|
label: string(),
|
|
@@ -14705,6 +14795,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14705
14795
|
"crossingSelect",
|
|
14706
14796
|
"polygonDraw",
|
|
14707
14797
|
"occupancy",
|
|
14798
|
+
"audio",
|
|
14708
14799
|
"deviceState",
|
|
14709
14800
|
"systemEvent"
|
|
14710
14801
|
]),
|
|
@@ -14856,7 +14947,20 @@ var NcSnoozeInputSchema = object({
|
|
|
14856
14947
|
ruleId: string().optional(),
|
|
14857
14948
|
/** Required when `scope: 'device'`. */
|
|
14858
14949
|
deviceId: number().int().optional(),
|
|
14859
|
-
|
|
14950
|
+
/**
|
|
14951
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
14952
|
+
*
|
|
14953
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
14954
|
+
* what every window authored before this field meant, so no persisted row
|
|
14955
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
14956
|
+
*
|
|
14957
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
14958
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
14959
|
+
* not at whichever of their four rules happened to produce the notification
|
|
14960
|
+
* they are dismissing.
|
|
14961
|
+
*/
|
|
14962
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14963
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
14860
14964
|
/**
|
|
14861
14965
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
14862
14966
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -14881,6 +14985,10 @@ var NcSnoozeSchema = object({
|
|
|
14881
14985
|
scope: NcSnoozeScopeSchema,
|
|
14882
14986
|
ruleId: string().optional(),
|
|
14883
14987
|
deviceId: number().int().optional(),
|
|
14988
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
14989
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
14990
|
+
* no SQLite column: nothing queries a window by class. */
|
|
14991
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14884
14992
|
startedAt: number(),
|
|
14885
14993
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
14886
14994
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17118,6 +17226,22 @@ var detectionFpsField = {
|
|
|
17118
17226
|
default: 10,
|
|
17119
17227
|
step: 1
|
|
17120
17228
|
};
|
|
17229
|
+
/**
|
|
17230
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17231
|
+
*
|
|
17232
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17233
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17234
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17235
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17236
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17237
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17238
|
+
*
|
|
17239
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17240
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17241
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17242
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17243
|
+
* that ships with an addon deploy.
|
|
17244
|
+
*/
|
|
17121
17245
|
var occupancyRecheckSecField = {
|
|
17122
17246
|
min: 0,
|
|
17123
17247
|
max: 300,
|
|
@@ -17319,15 +17443,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17319
17443
|
*/
|
|
17320
17444
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17321
17445
|
/**
|
|
17322
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17323
|
-
*
|
|
17324
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17325
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17326
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17446
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17447
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17327
17448
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17328
17449
|
* (and only render) when this is enabled.
|
|
17329
|
-
|
|
17330
|
-
|
|
17450
|
+
*
|
|
17451
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17452
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17453
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17454
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17455
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17456
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17457
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17458
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17459
|
+
*/
|
|
17460
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17331
17461
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17332
17462
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17333
17463
|
/**
|
|
@@ -30514,6 +30644,7 @@ Object.freeze({
|
|
|
30514
30644
|
"network-access": "ingress",
|
|
30515
30645
|
"smtp-provider": "email"
|
|
30516
30646
|
});
|
|
30647
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
30517
30648
|
new Set(["devices", "classes"]);
|
|
30518
30649
|
/**
|
|
30519
30650
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-IOeQBNag.js");
|
|
6
6
|
let node_crypto = require("node:crypto");
|
|
7
7
|
let node_child_process = require("node:child_process");
|
|
8
8
|
//#region src/ingress/tailscale-cli.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as EventCategory, n as networkAccessCapability, r as BaseAddon } from "../dist-
|
|
1
|
+
import { i as EventCategory, n as networkAccessCapability, r as BaseAddon } from "../dist-DaQABWY4.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { execFile } from "node:child_process";
|
|
4
4
|
import { promisify } from "node:util";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-tailscale",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.16",
|
|
4
4
|
"description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|