@camstack/addon-provider-onvif 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.
Files changed (3) hide show
  1. package/dist/addon.js +148 -17
  2. package/dist/addon.mjs +148 -17
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -12991,11 +12991,33 @@ var NotificationFormatSchema = _enum([
12991
12991
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
12992
12992
  * renderer's icon set; "acknowledge" survives an adapter that draws it
12993
12993
  * differently.
12994
+ *
12995
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
12996
+ *
12997
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
12998
+ * the whole set onto its own renderer's vocabulary through a
12999
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13000
+ * fallback, so adding a member here fails every adapter's build until someone
13001
+ * decides its glyph, which is the only place that decision can be made
13002
+ * honestly.
13003
+ *
13004
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13005
+ * `disarm` straight through; iOS feeds that string to
13006
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13007
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13008
+ * mapping, and "the field is documented" is not "the value renders".
13009
+ *
13010
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13011
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13012
+ * so an addon that emits a token the running hub does not know does not lose an
13013
+ * icon — its whole `send` fails Zod validation and the notification never
13014
+ * arrives. Never emit a new token from an addon before the train carrying it.
12994
13015
  */
12995
13016
  var NotificationActionIconSchema = _enum([
12996
13017
  "acknowledge",
12997
13018
  "dismiss",
12998
13019
  "silence",
13020
+ "snooze",
12999
13021
  "view",
13000
13022
  "play",
13001
13023
  "open",
@@ -13003,9 +13025,13 @@ var NotificationActionIconSchema = _enum([
13003
13025
  "lock",
13004
13026
  "unlock",
13005
13027
  "arm",
13028
+ "arm-home",
13029
+ "arm-away",
13030
+ "arm-night",
13006
13031
  "disarm",
13007
13032
  "light",
13008
- "alert"
13033
+ "alert",
13034
+ "camera"
13009
13035
  ]);
13010
13036
  /** A single tap-through action button. */
13011
13037
  var NotificationActionSchema = object({
@@ -13021,7 +13047,23 @@ var NotificationActionSchema = object({
13021
13047
  * else — see `notification-center/action-token.ts` for what that does and
13022
13048
  * does not buy.
13023
13049
  */
13024
- destructive: boolean().optional()
13050
+ destructive: boolean().optional(),
13051
+ /**
13052
+ * How the tap should REACH the url.
13053
+ *
13054
+ * `navigate` (absent, and every button authored before this field) opens it:
13055
+ * the phone leaves the notification and shows whatever the callback returns.
13056
+ * That is right for a button whose answer the operator wants to read.
13057
+ *
13058
+ * `background` fires it as a POST and stays put. It exists for the buttons
13059
+ * whose whole point is not to interrupt — "silence this for 30 minutes" is
13060
+ * an answer to the notification, and being thrown into a browser tab to
13061
+ * confirm it costs more attention than the notification did. A backend that
13062
+ * cannot do a background call renders it as an ordinary link (the adapters
13063
+ * fall back rather than dropping the button), so this is a preference, never
13064
+ * a requirement.
13065
+ */
13066
+ mode: _enum(["navigate", "background"]).optional()
13025
13067
  });
13026
13068
  /**
13027
13069
  * The canonical notification. `body` is the only hard field (Apprise model).
@@ -13189,6 +13231,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13189
13231
  targetId: string(),
13190
13232
  enabled: boolean()
13191
13233
  }), _void(), { kind: "mutation" });
13234
+ new Set([
13235
+ {
13236
+ id: "person",
13237
+ name: "Person"
13238
+ },
13239
+ {
13240
+ id: "vehicle",
13241
+ name: "Vehicle"
13242
+ },
13243
+ {
13244
+ id: "animal",
13245
+ name: "Animal"
13246
+ },
13247
+ {
13248
+ id: "package",
13249
+ name: "Package"
13250
+ }
13251
+ ].map((l) => l.id));
13192
13252
  var COCO_TO_MACRO = {
13193
13253
  mapping: {
13194
13254
  person: "person",
@@ -13986,6 +14046,8 @@ var NcSystemEventKindSchema = _enum([
13986
14046
  "alarm-triggered",
13987
14047
  "alarm-armed",
13988
14048
  "alarm-disarmed",
14049
+ "alarm-arming",
14050
+ "alarm-arm-refused",
13989
14051
  "camera-online",
13990
14052
  "camera-offline",
13991
14053
  "camera-disabled",
@@ -14022,6 +14084,9 @@ var NcSystemEventConditionSchema = object({
14022
14084
  nodeIds: array(string().min(1)).min(1).optional(),
14023
14085
  packageNames: array(string().min(1)).min(1).optional()
14024
14086
  });
14087
+ /** Hard ceiling on a window (24h). A snooze that could not expire would be an
14088
+ * outage the operator asked for once and forgot. */
14089
+ var NC_SNOOZE_MAX_MINUTES = 1440;
14025
14090
  /** Weekly schedule — OR of windows; absence on the rule = always active. */
14026
14091
  var NcScheduleSchema = object({
14027
14092
  windows: array(object({
@@ -14398,15 +14463,15 @@ var NcConditionsSchema = object({
14398
14463
  * (an `immediate` rule naming an `audio-*` class, one notification per
14399
14464
  * classified sample) stays exactly as it was for rules that already use it.
14400
14465
  *
14401
- * NOT in {@link NC_CONDITION_CATALOG} yet, and that is the sequencing rule
14402
- * rather than an oversight: the viewer mirrors the descriptor enums BY HAND
14403
- * (`camstack/src/data/notification-center.ts`, guarded by
14404
- * `scripts/check-viewer-condition-mirror.ts`) and its rule editor STRIPS the
14466
+ * In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
14467
+ * rule rather than an accident: the viewer mirrors the descriptor enums BY
14468
+ * HAND (`camstack/src/data/notification-center.ts`, guarded by
14469
+ * `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
14405
14470
  * condition fields it does not know when a rule is saved from the phone.
14406
14471
  * Publishing an editor for a condition the app cannot round-trip is how an
14407
- * operator loses a rule's conditions by opening it — so the descriptor, the
14408
- * admin widget and the viewer mirror land together (P2 + P3), and only then
14409
- * does an audio rule become authorable.
14472
+ * operator loses a rule's conditions by opening it — so the viewer mirror
14473
+ * (P3, shipped) went FIRST, and the descriptor an editor renders from
14474
+ * follows here.
14410
14475
  */
14411
14476
  audio: NcAudioConditionSchema.optional()
14412
14477
  });
@@ -14642,6 +14707,30 @@ var NcRuleInputSchema = object({
14642
14707
  */
14643
14708
  snoozeAllowGlobal: boolean().optional(),
14644
14709
  /**
14710
+ * The snooze durations THIS rule's notification offers as buttons, in
14711
+ * minutes.
14712
+ *
14713
+ * Three states, and all three are distinct — which is exactly why this is
14714
+ * `.optional()` and never `.default()`. A Zod default does not run on the
14715
+ * addon cap path (three production failures in one day), so a schema default
14716
+ * would collapse the first two:
14717
+ *
14718
+ * | value | meaning |
14719
+ * | --- | --- |
14720
+ * | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
14721
+ * | `[]` | **no snooze buttons on this rule** — the explicit override |
14722
+ * | a list | these choices, de-duplicated and sorted, at most four |
14723
+ *
14724
+ * `.max(4)` because the notifier's own action budget is small (ntfy allows
14725
+ * three buttons in total) and a rule that spent it all on snooze choices
14726
+ * would push its own tap-through actions off the notification.
14727
+ *
14728
+ * An empty list is NOT an alarm exemption: a rule the alarm is about, or
14729
+ * that arms the panel, is exempt automatically and cannot be silenced by a
14730
+ * window from anywhere (D133).
14731
+ */
14732
+ snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
14733
+ /**
14645
14734
  * Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
14646
14735
  *
14647
14736
  * This is what makes the rule set the alarm's trigger set without the alarm
@@ -14741,6 +14830,7 @@ var NcConditionDescriptorSchema = object({
14741
14830
  "device",
14742
14831
  "package",
14743
14832
  "occupancy",
14833
+ "audio",
14744
14834
  "system"
14745
14835
  ]),
14746
14836
  label: string(),
@@ -14759,6 +14849,7 @@ var NcConditionDescriptorSchema = object({
14759
14849
  "crossingSelect",
14760
14850
  "polygonDraw",
14761
14851
  "occupancy",
14852
+ "audio",
14762
14853
  "deviceState",
14763
14854
  "systemEvent"
14764
14855
  ]),
@@ -14910,7 +15001,20 @@ var NcSnoozeInputSchema = object({
14910
15001
  ruleId: string().optional(),
14911
15002
  /** Required when `scope: 'device'`. */
14912
15003
  deviceId: number().int().optional(),
14913
- durationMinutes: number().int().min(1).max(1440),
15004
+ /**
15005
+ * Narrow the window to these subject classes — "the cat, not the person".
15006
+ *
15007
+ * ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
15008
+ * what every window authored before this field meant, so no persisted row
15009
+ * changes meaning and no client has to learn anything to keep working.
15010
+ *
15011
+ * It is what makes the window's real key `(deviceId, classes[])` and lets it
15012
+ * cross rules (D133): the operator points at a camera and a kind of thing,
15013
+ * not at whichever of their four rules happened to produce the notification
15014
+ * they are dismissing.
15015
+ */
15016
+ classes: array(string().min(1)).min(1).optional(),
15017
+ durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
14914
15018
  /**
14915
15019
  * Silence this for EVERY recipient, not just the caller. Permission is
14916
15020
  * checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
@@ -14935,6 +15039,10 @@ var NcSnoozeSchema = object({
14935
15039
  scope: NcSnoozeScopeSchema,
14936
15040
  ruleId: string().optional(),
14937
15041
  deviceId: number().int().optional(),
15042
+ /** Subject classes this window covers. ABSENT = every class — see
15043
+ * {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
15044
+ * no SQLite column: nothing queries a window by class. */
15045
+ classes: array(string().min(1)).min(1).optional(),
14938
15046
  startedAt: number(),
14939
15047
  /** Exclusive: at exactly this instant the snooze is over. Expiry is a
14940
15048
  * COMPARISON, not a job — no sweeper can leave the operator silenced. */
@@ -17172,6 +17280,22 @@ var detectionFpsField = {
17172
17280
  default: 10,
17173
17281
  step: 1
17174
17282
  };
17283
+ /**
17284
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17285
+ *
17286
+ * The recheck is now on by default (a parked car is invisible to occupancy
17287
+ * rules until the stationary registry has been rebuilt by motion, which after a
17288
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17289
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17290
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17291
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17292
+ *
17293
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17294
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17295
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17296
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17297
+ * that ships with an addon deploy.
17298
+ */
17175
17299
  var occupancyRecheckSecField = {
17176
17300
  min: 0,
17177
17301
  max: 300,
@@ -17373,15 +17497,21 @@ var RunnerCameraConfigSchema = object({
17373
17497
  */
17374
17498
  onboardMotionDrivesAnalyzer: boolean().default(true),
17375
17499
  /**
17376
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17377
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17378
- * this is off by default because the recheck re-subscribes a detection session
17379
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17380
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17500
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17501
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17381
17502
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17382
17503
  * (and only render) when this is enabled.
17383
- */
17384
- occupancyRecheckEnabled: boolean().default(false),
17504
+ *
17505
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17506
+ * recheck re-subscribes a detection session every N seconds while `watching`
17507
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17508
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17509
+ * object is counted only while the stationary registry holds it, and the
17510
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17511
+ * to every occupancy rule until something moved in front of it. The churn is
17512
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17513
+ */
17514
+ occupancyRecheckEnabled: boolean().default(true),
17385
17515
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17386
17516
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17387
17517
  /**
@@ -31053,6 +31183,7 @@ Object.freeze({
31053
31183
  "network-access": "ingress",
31054
31184
  "smtp-provider": "email"
31055
31185
  });
31186
+ new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
31056
31187
  new Set(["devices", "classes"]);
31057
31188
  /**
31058
31189
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
package/dist/addon.mjs CHANGED
@@ -12992,11 +12992,33 @@ var NotificationFormatSchema = _enum([
12992
12992
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
12993
12993
  * renderer's icon set; "acknowledge" survives an adapter that draws it
12994
12994
  * differently.
12995
+ *
12996
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
12997
+ *
12998
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
12999
+ * the whole set onto its own renderer's vocabulary through a
13000
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13001
+ * fallback, so adding a member here fails every adapter's build until someone
13002
+ * decides its glyph, which is the only place that decision can be made
13003
+ * honestly.
13004
+ *
13005
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13006
+ * `disarm` straight through; iOS feeds that string to
13007
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13008
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13009
+ * mapping, and "the field is documented" is not "the value renders".
13010
+ *
13011
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13012
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13013
+ * so an addon that emits a token the running hub does not know does not lose an
13014
+ * icon — its whole `send` fails Zod validation and the notification never
13015
+ * arrives. Never emit a new token from an addon before the train carrying it.
12995
13016
  */
12996
13017
  var NotificationActionIconSchema = _enum([
12997
13018
  "acknowledge",
12998
13019
  "dismiss",
12999
13020
  "silence",
13021
+ "snooze",
13000
13022
  "view",
13001
13023
  "play",
13002
13024
  "open",
@@ -13004,9 +13026,13 @@ var NotificationActionIconSchema = _enum([
13004
13026
  "lock",
13005
13027
  "unlock",
13006
13028
  "arm",
13029
+ "arm-home",
13030
+ "arm-away",
13031
+ "arm-night",
13007
13032
  "disarm",
13008
13033
  "light",
13009
- "alert"
13034
+ "alert",
13035
+ "camera"
13010
13036
  ]);
13011
13037
  /** A single tap-through action button. */
13012
13038
  var NotificationActionSchema = object({
@@ -13022,7 +13048,23 @@ var NotificationActionSchema = object({
13022
13048
  * else — see `notification-center/action-token.ts` for what that does and
13023
13049
  * does not buy.
13024
13050
  */
13025
- destructive: boolean().optional()
13051
+ destructive: boolean().optional(),
13052
+ /**
13053
+ * How the tap should REACH the url.
13054
+ *
13055
+ * `navigate` (absent, and every button authored before this field) opens it:
13056
+ * the phone leaves the notification and shows whatever the callback returns.
13057
+ * That is right for a button whose answer the operator wants to read.
13058
+ *
13059
+ * `background` fires it as a POST and stays put. It exists for the buttons
13060
+ * whose whole point is not to interrupt — "silence this for 30 minutes" is
13061
+ * an answer to the notification, and being thrown into a browser tab to
13062
+ * confirm it costs more attention than the notification did. A backend that
13063
+ * cannot do a background call renders it as an ordinary link (the adapters
13064
+ * fall back rather than dropping the button), so this is a preference, never
13065
+ * a requirement.
13066
+ */
13067
+ mode: _enum(["navigate", "background"]).optional()
13026
13068
  });
13027
13069
  /**
13028
13070
  * The canonical notification. `body` is the only hard field (Apprise model).
@@ -13190,6 +13232,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13190
13232
  targetId: string(),
13191
13233
  enabled: boolean()
13192
13234
  }), _void(), { kind: "mutation" });
13235
+ new Set([
13236
+ {
13237
+ id: "person",
13238
+ name: "Person"
13239
+ },
13240
+ {
13241
+ id: "vehicle",
13242
+ name: "Vehicle"
13243
+ },
13244
+ {
13245
+ id: "animal",
13246
+ name: "Animal"
13247
+ },
13248
+ {
13249
+ id: "package",
13250
+ name: "Package"
13251
+ }
13252
+ ].map((l) => l.id));
13193
13253
  var COCO_TO_MACRO = {
13194
13254
  mapping: {
13195
13255
  person: "person",
@@ -13987,6 +14047,8 @@ var NcSystemEventKindSchema = _enum([
13987
14047
  "alarm-triggered",
13988
14048
  "alarm-armed",
13989
14049
  "alarm-disarmed",
14050
+ "alarm-arming",
14051
+ "alarm-arm-refused",
13990
14052
  "camera-online",
13991
14053
  "camera-offline",
13992
14054
  "camera-disabled",
@@ -14023,6 +14085,9 @@ var NcSystemEventConditionSchema = object({
14023
14085
  nodeIds: array(string().min(1)).min(1).optional(),
14024
14086
  packageNames: array(string().min(1)).min(1).optional()
14025
14087
  });
14088
+ /** Hard ceiling on a window (24h). A snooze that could not expire would be an
14089
+ * outage the operator asked for once and forgot. */
14090
+ var NC_SNOOZE_MAX_MINUTES = 1440;
14026
14091
  /** Weekly schedule — OR of windows; absence on the rule = always active. */
14027
14092
  var NcScheduleSchema = object({
14028
14093
  windows: array(object({
@@ -14399,15 +14464,15 @@ var NcConditionsSchema = object({
14399
14464
  * (an `immediate` rule naming an `audio-*` class, one notification per
14400
14465
  * classified sample) stays exactly as it was for rules that already use it.
14401
14466
  *
14402
- * NOT in {@link NC_CONDITION_CATALOG} yet, and that is the sequencing rule
14403
- * rather than an oversight: the viewer mirrors the descriptor enums BY HAND
14404
- * (`camstack/src/data/notification-center.ts`, guarded by
14405
- * `scripts/check-viewer-condition-mirror.ts`) and its rule editor STRIPS the
14467
+ * In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
14468
+ * rule rather than an accident: the viewer mirrors the descriptor enums BY
14469
+ * HAND (`camstack/src/data/notification-center.ts`, guarded by
14470
+ * `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
14406
14471
  * condition fields it does not know when a rule is saved from the phone.
14407
14472
  * Publishing an editor for a condition the app cannot round-trip is how an
14408
- * operator loses a rule's conditions by opening it — so the descriptor, the
14409
- * admin widget and the viewer mirror land together (P2 + P3), and only then
14410
- * does an audio rule become authorable.
14473
+ * operator loses a rule's conditions by opening it — so the viewer mirror
14474
+ * (P3, shipped) went FIRST, and the descriptor an editor renders from
14475
+ * follows here.
14411
14476
  */
14412
14477
  audio: NcAudioConditionSchema.optional()
14413
14478
  });
@@ -14643,6 +14708,30 @@ var NcRuleInputSchema = object({
14643
14708
  */
14644
14709
  snoozeAllowGlobal: boolean().optional(),
14645
14710
  /**
14711
+ * The snooze durations THIS rule's notification offers as buttons, in
14712
+ * minutes.
14713
+ *
14714
+ * Three states, and all three are distinct — which is exactly why this is
14715
+ * `.optional()` and never `.default()`. A Zod default does not run on the
14716
+ * addon cap path (three production failures in one day), so a schema default
14717
+ * would collapse the first two:
14718
+ *
14719
+ * | value | meaning |
14720
+ * | --- | --- |
14721
+ * | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
14722
+ * | `[]` | **no snooze buttons on this rule** — the explicit override |
14723
+ * | a list | these choices, de-duplicated and sorted, at most four |
14724
+ *
14725
+ * `.max(4)` because the notifier's own action budget is small (ntfy allows
14726
+ * three buttons in total) and a rule that spent it all on snooze choices
14727
+ * would push its own tap-through actions off the notification.
14728
+ *
14729
+ * An empty list is NOT an alarm exemption: a rule the alarm is about, or
14730
+ * that arms the panel, is exempt automatically and cannot be silenced by a
14731
+ * window from anywhere (D133).
14732
+ */
14733
+ snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
14734
+ /**
14646
14735
  * Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
14647
14736
  *
14648
14737
  * This is what makes the rule set the alarm's trigger set without the alarm
@@ -14742,6 +14831,7 @@ var NcConditionDescriptorSchema = object({
14742
14831
  "device",
14743
14832
  "package",
14744
14833
  "occupancy",
14834
+ "audio",
14745
14835
  "system"
14746
14836
  ]),
14747
14837
  label: string(),
@@ -14760,6 +14850,7 @@ var NcConditionDescriptorSchema = object({
14760
14850
  "crossingSelect",
14761
14851
  "polygonDraw",
14762
14852
  "occupancy",
14853
+ "audio",
14763
14854
  "deviceState",
14764
14855
  "systemEvent"
14765
14856
  ]),
@@ -14911,7 +15002,20 @@ var NcSnoozeInputSchema = object({
14911
15002
  ruleId: string().optional(),
14912
15003
  /** Required when `scope: 'device'`. */
14913
15004
  deviceId: number().int().optional(),
14914
- durationMinutes: number().int().min(1).max(1440),
15005
+ /**
15006
+ * Narrow the window to these subject classes — "the cat, not the person".
15007
+ *
15008
+ * ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
15009
+ * what every window authored before this field meant, so no persisted row
15010
+ * changes meaning and no client has to learn anything to keep working.
15011
+ *
15012
+ * It is what makes the window's real key `(deviceId, classes[])` and lets it
15013
+ * cross rules (D133): the operator points at a camera and a kind of thing,
15014
+ * not at whichever of their four rules happened to produce the notification
15015
+ * they are dismissing.
15016
+ */
15017
+ classes: array(string().min(1)).min(1).optional(),
15018
+ durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
14915
15019
  /**
14916
15020
  * Silence this for EVERY recipient, not just the caller. Permission is
14917
15021
  * checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
@@ -14936,6 +15040,10 @@ var NcSnoozeSchema = object({
14936
15040
  scope: NcSnoozeScopeSchema,
14937
15041
  ruleId: string().optional(),
14938
15042
  deviceId: number().int().optional(),
15043
+ /** Subject classes this window covers. ABSENT = every class — see
15044
+ * {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
15045
+ * no SQLite column: nothing queries a window by class. */
15046
+ classes: array(string().min(1)).min(1).optional(),
14939
15047
  startedAt: number(),
14940
15048
  /** Exclusive: at exactly this instant the snooze is over. Expiry is a
14941
15049
  * COMPARISON, not a job — no sweeper can leave the operator silenced. */
@@ -17173,6 +17281,22 @@ var detectionFpsField = {
17173
17281
  default: 10,
17174
17282
  step: 1
17175
17283
  };
17284
+ /**
17285
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17286
+ *
17287
+ * The recheck is now on by default (a parked car is invisible to occupancy
17288
+ * rules until the stationary registry has been rebuilt by motion, which after a
17289
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17290
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17291
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17292
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17293
+ *
17294
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17295
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17296
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17297
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17298
+ * that ships with an addon deploy.
17299
+ */
17176
17300
  var occupancyRecheckSecField = {
17177
17301
  min: 0,
17178
17302
  max: 300,
@@ -17374,15 +17498,21 @@ var RunnerCameraConfigSchema = object({
17374
17498
  */
17375
17499
  onboardMotionDrivesAnalyzer: boolean().default(true),
17376
17500
  /**
17377
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17378
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17379
- * this is off by default because the recheck re-subscribes a detection session
17380
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17381
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17501
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17502
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17382
17503
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17383
17504
  * (and only render) when this is enabled.
17384
- */
17385
- occupancyRecheckEnabled: boolean().default(false),
17505
+ *
17506
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17507
+ * recheck re-subscribes a detection session every N seconds while `watching`
17508
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17509
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17510
+ * object is counted only while the stationary registry holds it, and the
17511
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17512
+ * to every occupancy rule until something moved in front of it. The churn is
17513
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17514
+ */
17515
+ occupancyRecheckEnabled: boolean().default(true),
17386
17516
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17387
17517
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17388
17518
  /**
@@ -31054,6 +31184,7 @@ Object.freeze({
31054
31184
  "network-access": "ingress",
31055
31185
  "smtp-provider": "email"
31056
31186
  });
31187
+ new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
31057
31188
  new Set(["devices", "classes"]);
31058
31189
  /**
31059
31190
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-onvif",
3
- "version": "1.2.14",
3
+ "version": "1.2.16",
4
4
  "description": "ONVIF camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",