@camstack/addon-remote-storage 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/s3.addon.js +1 -1
- package/dist/s3.addon.mjs +1 -1
- package/dist/sftp.addon.js +1 -1
- package/dist/sftp.addon.mjs +1 -1
- package/dist/{shared-EsnEAfgQ.mjs → shared-DSSvJCiv.mjs} +148 -17
- package/dist/{shared-BiN4gTjL.js → shared-SC5SVzlS.js} +148 -17
- package/dist/webdav.addon.js +1 -1
- package/dist/webdav.addon.mjs +1 -1
- package/package.json +1 -1
package/dist/s3.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-SC5SVzlS.js");
|
|
6
6
|
let node_stream = require("node:stream");
|
|
7
7
|
let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
|
|
8
8
|
let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
|
package/dist/s3.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-DSSvJCiv.mjs";
|
|
2
2
|
import { PassThrough } from "node:stream";
|
|
3
3
|
import { DeleteObjectCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
|
|
4
4
|
import { Upload } from "@aws-sdk/lib-storage";
|
package/dist/sftp.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-SC5SVzlS.js");
|
|
6
6
|
let ssh2 = require("ssh2");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_shared.__toESM(node_path);
|
package/dist/sftp.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-DSSvJCiv.mjs";
|
|
2
2
|
import { Client } from "ssh2";
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
//#region src/providers/sftp/sftp-config-schema.ts
|
|
@@ -12922,11 +12922,33 @@ var NotificationFormatSchema = _enum([
|
|
|
12922
12922
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
12923
12923
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
12924
12924
|
* differently.
|
|
12925
|
+
*
|
|
12926
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
12927
|
+
*
|
|
12928
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
12929
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
12930
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
12931
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
12932
|
+
* decides its glyph, which is the only place that decision can be made
|
|
12933
|
+
* honestly.
|
|
12934
|
+
*
|
|
12935
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
12936
|
+
* `disarm` straight through; iOS feeds that string to
|
|
12937
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
12938
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
12939
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
12940
|
+
*
|
|
12941
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
12942
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
12943
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
12944
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
12945
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
12925
12946
|
*/
|
|
12926
12947
|
var NotificationActionIconSchema = _enum([
|
|
12927
12948
|
"acknowledge",
|
|
12928
12949
|
"dismiss",
|
|
12929
12950
|
"silence",
|
|
12951
|
+
"snooze",
|
|
12930
12952
|
"view",
|
|
12931
12953
|
"play",
|
|
12932
12954
|
"open",
|
|
@@ -12934,9 +12956,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
12934
12956
|
"lock",
|
|
12935
12957
|
"unlock",
|
|
12936
12958
|
"arm",
|
|
12959
|
+
"arm-home",
|
|
12960
|
+
"arm-away",
|
|
12961
|
+
"arm-night",
|
|
12937
12962
|
"disarm",
|
|
12938
12963
|
"light",
|
|
12939
|
-
"alert"
|
|
12964
|
+
"alert",
|
|
12965
|
+
"camera"
|
|
12940
12966
|
]);
|
|
12941
12967
|
/** A single tap-through action button. */
|
|
12942
12968
|
var NotificationActionSchema = object({
|
|
@@ -12952,7 +12978,23 @@ var NotificationActionSchema = object({
|
|
|
12952
12978
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
12953
12979
|
* does not buy.
|
|
12954
12980
|
*/
|
|
12955
|
-
destructive: boolean().optional()
|
|
12981
|
+
destructive: boolean().optional(),
|
|
12982
|
+
/**
|
|
12983
|
+
* How the tap should REACH the url.
|
|
12984
|
+
*
|
|
12985
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
12986
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
12987
|
+
* That is right for a button whose answer the operator wants to read.
|
|
12988
|
+
*
|
|
12989
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
12990
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
12991
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
12992
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
12993
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
12994
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
12995
|
+
* a requirement.
|
|
12996
|
+
*/
|
|
12997
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
12956
12998
|
});
|
|
12957
12999
|
/**
|
|
12958
13000
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13120,6 +13162,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13120
13162
|
targetId: string(),
|
|
13121
13163
|
enabled: boolean()
|
|
13122
13164
|
}), _void(), { kind: "mutation" });
|
|
13165
|
+
new Set([
|
|
13166
|
+
{
|
|
13167
|
+
id: "person",
|
|
13168
|
+
name: "Person"
|
|
13169
|
+
},
|
|
13170
|
+
{
|
|
13171
|
+
id: "vehicle",
|
|
13172
|
+
name: "Vehicle"
|
|
13173
|
+
},
|
|
13174
|
+
{
|
|
13175
|
+
id: "animal",
|
|
13176
|
+
name: "Animal"
|
|
13177
|
+
},
|
|
13178
|
+
{
|
|
13179
|
+
id: "package",
|
|
13180
|
+
name: "Package"
|
|
13181
|
+
}
|
|
13182
|
+
].map((l) => l.id));
|
|
13123
13183
|
var COCO_TO_MACRO = {
|
|
13124
13184
|
mapping: {
|
|
13125
13185
|
person: "person",
|
|
@@ -13917,6 +13977,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
13917
13977
|
"alarm-triggered",
|
|
13918
13978
|
"alarm-armed",
|
|
13919
13979
|
"alarm-disarmed",
|
|
13980
|
+
"alarm-arming",
|
|
13981
|
+
"alarm-arm-refused",
|
|
13920
13982
|
"camera-online",
|
|
13921
13983
|
"camera-offline",
|
|
13922
13984
|
"camera-disabled",
|
|
@@ -13953,6 +14015,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
13953
14015
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
13954
14016
|
packageNames: array(string().min(1)).min(1).optional()
|
|
13955
14017
|
});
|
|
14018
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14019
|
+
* outage the operator asked for once and forgot. */
|
|
14020
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
13956
14021
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
13957
14022
|
var NcScheduleSchema = object({
|
|
13958
14023
|
windows: array(object({
|
|
@@ -14329,15 +14394,15 @@ var NcConditionsSchema = object({
|
|
|
14329
14394
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14330
14395
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14331
14396
|
*
|
|
14332
|
-
*
|
|
14333
|
-
* rather than an
|
|
14334
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14335
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14397
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14398
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14399
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14400
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14336
14401
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14337
14402
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14338
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14339
|
-
*
|
|
14340
|
-
*
|
|
14403
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14404
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14405
|
+
* follows here.
|
|
14341
14406
|
*/
|
|
14342
14407
|
audio: NcAudioConditionSchema.optional()
|
|
14343
14408
|
});
|
|
@@ -14573,6 +14638,30 @@ var NcRuleInputSchema = object({
|
|
|
14573
14638
|
*/
|
|
14574
14639
|
snoozeAllowGlobal: boolean().optional(),
|
|
14575
14640
|
/**
|
|
14641
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
14642
|
+
* minutes.
|
|
14643
|
+
*
|
|
14644
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
14645
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
14646
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
14647
|
+
* would collapse the first two:
|
|
14648
|
+
*
|
|
14649
|
+
* | value | meaning |
|
|
14650
|
+
* | --- | --- |
|
|
14651
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
14652
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
14653
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
14654
|
+
*
|
|
14655
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
14656
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
14657
|
+
* would push its own tap-through actions off the notification.
|
|
14658
|
+
*
|
|
14659
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
14660
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
14661
|
+
* window from anywhere (D133).
|
|
14662
|
+
*/
|
|
14663
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
14664
|
+
/**
|
|
14576
14665
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14577
14666
|
*
|
|
14578
14667
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -14672,6 +14761,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14672
14761
|
"device",
|
|
14673
14762
|
"package",
|
|
14674
14763
|
"occupancy",
|
|
14764
|
+
"audio",
|
|
14675
14765
|
"system"
|
|
14676
14766
|
]),
|
|
14677
14767
|
label: string(),
|
|
@@ -14690,6 +14780,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14690
14780
|
"crossingSelect",
|
|
14691
14781
|
"polygonDraw",
|
|
14692
14782
|
"occupancy",
|
|
14783
|
+
"audio",
|
|
14693
14784
|
"deviceState",
|
|
14694
14785
|
"systemEvent"
|
|
14695
14786
|
]),
|
|
@@ -14841,7 +14932,20 @@ var NcSnoozeInputSchema = object({
|
|
|
14841
14932
|
ruleId: string().optional(),
|
|
14842
14933
|
/** Required when `scope: 'device'`. */
|
|
14843
14934
|
deviceId: number().int().optional(),
|
|
14844
|
-
|
|
14935
|
+
/**
|
|
14936
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
14937
|
+
*
|
|
14938
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
14939
|
+
* what every window authored before this field meant, so no persisted row
|
|
14940
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
14941
|
+
*
|
|
14942
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
14943
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
14944
|
+
* not at whichever of their four rules happened to produce the notification
|
|
14945
|
+
* they are dismissing.
|
|
14946
|
+
*/
|
|
14947
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14948
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
14845
14949
|
/**
|
|
14846
14950
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
14847
14951
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -14866,6 +14970,10 @@ var NcSnoozeSchema = object({
|
|
|
14866
14970
|
scope: NcSnoozeScopeSchema,
|
|
14867
14971
|
ruleId: string().optional(),
|
|
14868
14972
|
deviceId: number().int().optional(),
|
|
14973
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
14974
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
14975
|
+
* no SQLite column: nothing queries a window by class. */
|
|
14976
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14869
14977
|
startedAt: number(),
|
|
14870
14978
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
14871
14979
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17103,6 +17211,22 @@ var detectionFpsField = {
|
|
|
17103
17211
|
default: 10,
|
|
17104
17212
|
step: 1
|
|
17105
17213
|
};
|
|
17214
|
+
/**
|
|
17215
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17216
|
+
*
|
|
17217
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17218
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17219
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17220
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17221
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17222
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17223
|
+
*
|
|
17224
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17225
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17226
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17227
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17228
|
+
* that ships with an addon deploy.
|
|
17229
|
+
*/
|
|
17106
17230
|
var occupancyRecheckSecField = {
|
|
17107
17231
|
min: 0,
|
|
17108
17232
|
max: 300,
|
|
@@ -17304,15 +17428,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17304
17428
|
*/
|
|
17305
17429
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17306
17430
|
/**
|
|
17307
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17308
|
-
*
|
|
17309
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17310
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17311
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17431
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17432
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17312
17433
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17313
17434
|
* (and only render) when this is enabled.
|
|
17314
|
-
|
|
17315
|
-
|
|
17435
|
+
*
|
|
17436
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17437
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17438
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17439
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17440
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17441
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17442
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17443
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17444
|
+
*/
|
|
17445
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17316
17446
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17317
17447
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17318
17448
|
/**
|
|
@@ -30483,6 +30613,7 @@ Object.freeze({
|
|
|
30483
30613
|
"network-access": "ingress",
|
|
30484
30614
|
"smtp-provider": "email"
|
|
30485
30615
|
});
|
|
30616
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
30486
30617
|
new Set(["devices", "classes"]);
|
|
30487
30618
|
/**
|
|
30488
30619
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
@@ -12945,11 +12945,33 @@ var NotificationFormatSchema = _enum([
|
|
|
12945
12945
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
12946
12946
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
12947
12947
|
* differently.
|
|
12948
|
+
*
|
|
12949
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
12950
|
+
*
|
|
12951
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
12952
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
12953
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
12954
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
12955
|
+
* decides its glyph, which is the only place that decision can be made
|
|
12956
|
+
* honestly.
|
|
12957
|
+
*
|
|
12958
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
12959
|
+
* `disarm` straight through; iOS feeds that string to
|
|
12960
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
12961
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
12962
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
12963
|
+
*
|
|
12964
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
12965
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
12966
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
12967
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
12968
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
12948
12969
|
*/
|
|
12949
12970
|
var NotificationActionIconSchema = _enum([
|
|
12950
12971
|
"acknowledge",
|
|
12951
12972
|
"dismiss",
|
|
12952
12973
|
"silence",
|
|
12974
|
+
"snooze",
|
|
12953
12975
|
"view",
|
|
12954
12976
|
"play",
|
|
12955
12977
|
"open",
|
|
@@ -12957,9 +12979,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
12957
12979
|
"lock",
|
|
12958
12980
|
"unlock",
|
|
12959
12981
|
"arm",
|
|
12982
|
+
"arm-home",
|
|
12983
|
+
"arm-away",
|
|
12984
|
+
"arm-night",
|
|
12960
12985
|
"disarm",
|
|
12961
12986
|
"light",
|
|
12962
|
-
"alert"
|
|
12987
|
+
"alert",
|
|
12988
|
+
"camera"
|
|
12963
12989
|
]);
|
|
12964
12990
|
/** A single tap-through action button. */
|
|
12965
12991
|
var NotificationActionSchema = object({
|
|
@@ -12975,7 +13001,23 @@ var NotificationActionSchema = object({
|
|
|
12975
13001
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
12976
13002
|
* does not buy.
|
|
12977
13003
|
*/
|
|
12978
|
-
destructive: boolean().optional()
|
|
13004
|
+
destructive: boolean().optional(),
|
|
13005
|
+
/**
|
|
13006
|
+
* How the tap should REACH the url.
|
|
13007
|
+
*
|
|
13008
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13009
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13010
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13011
|
+
*
|
|
13012
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13013
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13014
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13015
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13016
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13017
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13018
|
+
* a requirement.
|
|
13019
|
+
*/
|
|
13020
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
12979
13021
|
});
|
|
12980
13022
|
/**
|
|
12981
13023
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13143,6 +13185,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13143
13185
|
targetId: string(),
|
|
13144
13186
|
enabled: boolean()
|
|
13145
13187
|
}), _void(), { kind: "mutation" });
|
|
13188
|
+
new Set([
|
|
13189
|
+
{
|
|
13190
|
+
id: "person",
|
|
13191
|
+
name: "Person"
|
|
13192
|
+
},
|
|
13193
|
+
{
|
|
13194
|
+
id: "vehicle",
|
|
13195
|
+
name: "Vehicle"
|
|
13196
|
+
},
|
|
13197
|
+
{
|
|
13198
|
+
id: "animal",
|
|
13199
|
+
name: "Animal"
|
|
13200
|
+
},
|
|
13201
|
+
{
|
|
13202
|
+
id: "package",
|
|
13203
|
+
name: "Package"
|
|
13204
|
+
}
|
|
13205
|
+
].map((l) => l.id));
|
|
13146
13206
|
var COCO_TO_MACRO = {
|
|
13147
13207
|
mapping: {
|
|
13148
13208
|
person: "person",
|
|
@@ -13940,6 +14000,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
13940
14000
|
"alarm-triggered",
|
|
13941
14001
|
"alarm-armed",
|
|
13942
14002
|
"alarm-disarmed",
|
|
14003
|
+
"alarm-arming",
|
|
14004
|
+
"alarm-arm-refused",
|
|
13943
14005
|
"camera-online",
|
|
13944
14006
|
"camera-offline",
|
|
13945
14007
|
"camera-disabled",
|
|
@@ -13976,6 +14038,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
13976
14038
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
13977
14039
|
packageNames: array(string().min(1)).min(1).optional()
|
|
13978
14040
|
});
|
|
14041
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14042
|
+
* outage the operator asked for once and forgot. */
|
|
14043
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
13979
14044
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
13980
14045
|
var NcScheduleSchema = object({
|
|
13981
14046
|
windows: array(object({
|
|
@@ -14352,15 +14417,15 @@ var NcConditionsSchema = object({
|
|
|
14352
14417
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14353
14418
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14354
14419
|
*
|
|
14355
|
-
*
|
|
14356
|
-
* rather than an
|
|
14357
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14358
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14420
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14421
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14422
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14423
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14359
14424
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14360
14425
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14361
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14362
|
-
*
|
|
14363
|
-
*
|
|
14426
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14427
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14428
|
+
* follows here.
|
|
14364
14429
|
*/
|
|
14365
14430
|
audio: NcAudioConditionSchema.optional()
|
|
14366
14431
|
});
|
|
@@ -14596,6 +14661,30 @@ var NcRuleInputSchema = object({
|
|
|
14596
14661
|
*/
|
|
14597
14662
|
snoozeAllowGlobal: boolean().optional(),
|
|
14598
14663
|
/**
|
|
14664
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
14665
|
+
* minutes.
|
|
14666
|
+
*
|
|
14667
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
14668
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
14669
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
14670
|
+
* would collapse the first two:
|
|
14671
|
+
*
|
|
14672
|
+
* | value | meaning |
|
|
14673
|
+
* | --- | --- |
|
|
14674
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
14675
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
14676
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
14677
|
+
*
|
|
14678
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
14679
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
14680
|
+
* would push its own tap-through actions off the notification.
|
|
14681
|
+
*
|
|
14682
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
14683
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
14684
|
+
* window from anywhere (D133).
|
|
14685
|
+
*/
|
|
14686
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
14687
|
+
/**
|
|
14599
14688
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14600
14689
|
*
|
|
14601
14690
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -14695,6 +14784,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14695
14784
|
"device",
|
|
14696
14785
|
"package",
|
|
14697
14786
|
"occupancy",
|
|
14787
|
+
"audio",
|
|
14698
14788
|
"system"
|
|
14699
14789
|
]),
|
|
14700
14790
|
label: string(),
|
|
@@ -14713,6 +14803,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14713
14803
|
"crossingSelect",
|
|
14714
14804
|
"polygonDraw",
|
|
14715
14805
|
"occupancy",
|
|
14806
|
+
"audio",
|
|
14716
14807
|
"deviceState",
|
|
14717
14808
|
"systemEvent"
|
|
14718
14809
|
]),
|
|
@@ -14864,7 +14955,20 @@ var NcSnoozeInputSchema = object({
|
|
|
14864
14955
|
ruleId: string().optional(),
|
|
14865
14956
|
/** Required when `scope: 'device'`. */
|
|
14866
14957
|
deviceId: number().int().optional(),
|
|
14867
|
-
|
|
14958
|
+
/**
|
|
14959
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
14960
|
+
*
|
|
14961
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
14962
|
+
* what every window authored before this field meant, so no persisted row
|
|
14963
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
14964
|
+
*
|
|
14965
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
14966
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
14967
|
+
* not at whichever of their four rules happened to produce the notification
|
|
14968
|
+
* they are dismissing.
|
|
14969
|
+
*/
|
|
14970
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14971
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
14868
14972
|
/**
|
|
14869
14973
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
14870
14974
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -14889,6 +14993,10 @@ var NcSnoozeSchema = object({
|
|
|
14889
14993
|
scope: NcSnoozeScopeSchema,
|
|
14890
14994
|
ruleId: string().optional(),
|
|
14891
14995
|
deviceId: number().int().optional(),
|
|
14996
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
14997
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
14998
|
+
* no SQLite column: nothing queries a window by class. */
|
|
14999
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14892
15000
|
startedAt: number(),
|
|
14893
15001
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
14894
15002
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17126,6 +17234,22 @@ var detectionFpsField = {
|
|
|
17126
17234
|
default: 10,
|
|
17127
17235
|
step: 1
|
|
17128
17236
|
};
|
|
17237
|
+
/**
|
|
17238
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17239
|
+
*
|
|
17240
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17241
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17242
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17243
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17244
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17245
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17246
|
+
*
|
|
17247
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17248
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17249
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17250
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17251
|
+
* that ships with an addon deploy.
|
|
17252
|
+
*/
|
|
17129
17253
|
var occupancyRecheckSecField = {
|
|
17130
17254
|
min: 0,
|
|
17131
17255
|
max: 300,
|
|
@@ -17327,15 +17451,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17327
17451
|
*/
|
|
17328
17452
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17329
17453
|
/**
|
|
17330
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17331
|
-
*
|
|
17332
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17333
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17334
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17454
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17455
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17335
17456
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17336
17457
|
* (and only render) when this is enabled.
|
|
17337
|
-
|
|
17338
|
-
|
|
17458
|
+
*
|
|
17459
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17460
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17461
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17462
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17463
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17464
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17465
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17466
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17467
|
+
*/
|
|
17468
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17339
17469
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17340
17470
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17341
17471
|
/**
|
|
@@ -30506,6 +30636,7 @@ Object.freeze({
|
|
|
30506
30636
|
"network-access": "ingress",
|
|
30507
30637
|
"smtp-provider": "email"
|
|
30508
30638
|
});
|
|
30639
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
30509
30640
|
new Set(["devices", "classes"]);
|
|
30510
30641
|
/**
|
|
30511
30642
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
package/dist/webdav.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-SC5SVzlS.js");
|
|
6
6
|
let node_stream = require("node:stream");
|
|
7
7
|
let webdav = require("webdav");
|
|
8
8
|
//#region src/providers/webdav/webdav-config-schema.ts
|
package/dist/webdav.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-DSSvJCiv.mjs";
|
|
2
2
|
import { PassThrough } from "node:stream";
|
|
3
3
|
import { AuthType, createClient } from "webdav";
|
|
4
4
|
//#region src/providers/webdav/webdav-config-schema.ts
|
package/package.json
CHANGED