@camstack/addon-pipeline 1.2.68 → 1.2.70
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/audio-analyzer/index.js +1 -1
- package/dist/audio-analyzer/index.mjs +1 -1
- package/dist/detection-pipeline/index.js +32 -30
- package/dist/detection-pipeline/index.mjs +32 -30
- package/dist/{dist-CwUPxdAB.mjs → dist-BPaa4_z6.mjs} +525 -9
- package/dist/{dist-Bv9CqUAF.js → dist-cR-pvD_z.js} +525 -9
- package/dist/{event-loop-stall-monitor-D2dL-_bE.mjs → event-loop-stall-monitor-B79REtL2.mjs} +1 -1
- package/dist/{event-loop-stall-monitor-Bz3lx_aY.js → event-loop-stall-monitor-STRdnQWm.js} +1 -1
- package/dist/motion-wasm/index.js +1 -1
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/pipeline-runner/index.js +8 -5
- package/dist/pipeline-runner/index.mjs +8 -5
- package/dist/recorder/index.js +5195 -3820
- package/dist/recorder/index.mjs +5195 -3820
- package/dist/session-decode/decode-worker-child.js +1 -1
- package/dist/session-decode/decode-worker-child.mjs +1 -1
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Cl4eU4eN.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-B-HGBNad.mjs} +3 -3
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D1CqbPrT.mjs +26 -0
- package/dist/stream-broker/{_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DU7u9EJt.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-NjvjJWz-.mjs} +1 -1
- package/dist/stream-broker/{hostInit-_NJ0GBOO.mjs → hostInit-B12DHOv7.mjs} +3 -3
- package/dist/stream-broker/index.js +501 -32
- package/dist/stream-broker/index.mjs +501 -32
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/dist/{worker-protocol-D8M43suz.js → worker-protocol-C7V1qIIA.js} +1 -1
- package/dist/{worker-protocol-0uQE5Lfd.mjs → worker-protocol-CBO8nwQj.mjs} +1 -1
- package/package.json +1 -1
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-ircnzt0s.mjs +0 -26
|
@@ -8584,7 +8584,15 @@ function deriveRecordingMode(config) {
|
|
|
8584
8584
|
* Each completed/failed run also lands one durable ops-log row on its owning
|
|
8585
8585
|
* addon surface.
|
|
8586
8586
|
*/
|
|
8587
|
+
/**
|
|
8588
|
+
* `queued` exists because the recorder mover is SINGLE-FLIGHT and an operator
|
|
8589
|
+
* rebalance enqueues one job per (camera, profile). Refusing the second job —
|
|
8590
|
+
* what the engine did before — turned a fifteen-camera rebalance into fifteen
|
|
8591
|
+
* manual retries. Queued jobs run FIFO; a queued job that is cancelled never
|
|
8592
|
+
* runs at all.
|
|
8593
|
+
*/
|
|
8587
8594
|
var RelocateJobStateSchema = _enum([
|
|
8595
|
+
"queued",
|
|
8588
8596
|
"running",
|
|
8589
8597
|
"done",
|
|
8590
8598
|
"failed",
|
|
@@ -8619,6 +8627,15 @@ var RelocateFootageInputSchema = object({
|
|
|
8619
8627
|
/** Limits relocation to the logical profile class. Omit only for the
|
|
8620
8628
|
* pre-orchestration compatibility path. */
|
|
8621
8629
|
footageClass: RelocateFootageClassSchema.optional(),
|
|
8630
|
+
/** Scope the move to ONE camera. Absent = every camera on the source, which
|
|
8631
|
+
* is what a whole-disk drain means. The rebalance path always sets it: its
|
|
8632
|
+
* unit is a (camera, profile) pile, not a disk. */
|
|
8633
|
+
deviceId: number().int().optional(),
|
|
8634
|
+
/** Scope the move to specific segment profiles (`high` / `mid` / `low`).
|
|
8635
|
+
* Finer than `footageClass`, which cannot separate high from mid — and the
|
|
8636
|
+
* placement plan assigns those two independently, so a rebalance that could
|
|
8637
|
+
* only say "recordings" would move footage the plan never asked to move. */
|
|
8638
|
+
profiles: array(string()).optional(),
|
|
8622
8639
|
/** Copy throttle in MB/s (default 40) — the drain is a background chore,
|
|
8623
8640
|
* never allowed to starve live writers. */
|
|
8624
8641
|
throttleMbps: number().min(1).max(1e3).optional()
|
|
@@ -8754,6 +8771,21 @@ var StorageLocationSchema = object({
|
|
|
8754
8771
|
nodeId: string().optional(),
|
|
8755
8772
|
isDefault: boolean().default(false),
|
|
8756
8773
|
isSystem: boolean().default(false),
|
|
8774
|
+
/**
|
|
8775
|
+
* Operator opt-in: whether consumers that BALANCE across several locations
|
|
8776
|
+
* of a type may write here. Recordings reads it today; event media and
|
|
8777
|
+
* backups are the next consumers, which is why the flag lives on the
|
|
8778
|
+
* location rather than in any one addon's store — nothing has to be
|
|
8779
|
+
* extended to add the next consumer.
|
|
8780
|
+
*
|
|
8781
|
+
* OPTIONAL, and ABSENT MEANS ACTIVE. Every location persisted before the
|
|
8782
|
+
* flag existed reads back with no flag and keeps working exactly as before;
|
|
8783
|
+
* that is the whole compat story, and it is why no migration ships with it.
|
|
8784
|
+
* A newly CREATED sibling is stamped `false` by the orchestrator (creating a
|
|
8785
|
+
* disk must not silently start writing to it); the default of a type is
|
|
8786
|
+
* always stamped `true`.
|
|
8787
|
+
*/
|
|
8788
|
+
enabled: boolean().optional(),
|
|
8757
8789
|
/** COMPUTED at read time by the orchestrator (statfs of the backing volume
|
|
8758
8790
|
* for node-local locations it can reach) — never persisted, absent when the
|
|
8759
8791
|
* volume is remote/unreachable. The single capacity truth every UI reads. */
|
|
@@ -13499,7 +13531,8 @@ method(object({
|
|
|
13499
13531
|
}), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
|
|
13500
13532
|
/**
|
|
13501
13533
|
* filesystem-browse — per-node capability for browsing the node's local
|
|
13502
|
-
* filesystem
|
|
13534
|
+
* filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
|
|
13535
|
+
* are sandboxed to operator-configured allowed roots (D115). Used by the
|
|
13503
13536
|
* admin "Add filesystem location" flow to pick a node + path. `mode:'per-node'`
|
|
13504
13537
|
* (one provider per node); the hub calls it with `{nodeId}` so the codegen
|
|
13505
13538
|
* routes to that exact node (default `nodeIdMode:'routing'`).
|
|
@@ -15655,6 +15688,13 @@ var MaskGridDimsSchema = object({
|
|
|
15655
15688
|
* `package-event` are pure trigger kinds (no urgency dimension). Extending
|
|
15656
15689
|
* this one field keeps the schema additive — a rule still declares exactly
|
|
15657
15690
|
* one trigger.
|
|
15691
|
+
*
|
|
15692
|
+
* AUDIO rules add no member here, for the reason occupancy added none: the
|
|
15693
|
+
* enum is mirrored by hand in the viewer (`scripts/check-viewer-condition-
|
|
15694
|
+
* mirror.ts` fails the build on a member the app cannot render) and every
|
|
15695
|
+
* member costs a release train. A sustained-sound rule is therefore an
|
|
15696
|
+
* `immediate` rule carrying {@link NcConditions.audio} — the condition is the
|
|
15697
|
+
* trigger discriminator, exactly as `occupancy` is on `device-event`.
|
|
15658
15698
|
*/
|
|
15659
15699
|
var NcDeliverySchema = _enum([
|
|
15660
15700
|
"immediate",
|
|
@@ -15669,15 +15709,32 @@ var NcDeliverySchema = _enum([
|
|
|
15669
15709
|
* depend on a provider's raw event name or payload shape.
|
|
15670
15710
|
*/
|
|
15671
15711
|
var NcSystemEventKindSchema = _enum([
|
|
15672
|
-
"
|
|
15673
|
-
"
|
|
15712
|
+
"device-online",
|
|
15713
|
+
"device-offline",
|
|
15714
|
+
"device-disabled",
|
|
15715
|
+
"device-enabled",
|
|
15674
15716
|
"stream-online",
|
|
15675
15717
|
"stream-offline",
|
|
15676
15718
|
"node-online",
|
|
15677
15719
|
"node-offline",
|
|
15678
15720
|
"addon-update-available",
|
|
15679
|
-
"server-update-available"
|
|
15721
|
+
"server-update-available",
|
|
15722
|
+
"alarm-triggered",
|
|
15723
|
+
"alarm-armed",
|
|
15724
|
+
"alarm-disarmed",
|
|
15725
|
+
"camera-online",
|
|
15726
|
+
"camera-offline",
|
|
15727
|
+
"camera-disabled",
|
|
15728
|
+
"camera-enabled"
|
|
15729
|
+
]);
|
|
15730
|
+
/** The legacy tail of {@link NcSystemEventKindSchema} — see its docblock. */
|
|
15731
|
+
var NC_LEGACY_SYSTEM_EVENT_KINDS = new Set([
|
|
15732
|
+
"camera-online",
|
|
15733
|
+
"camera-offline",
|
|
15734
|
+
"camera-disabled",
|
|
15735
|
+
"camera-enabled"
|
|
15680
15736
|
]);
|
|
15737
|
+
NcSystemEventKindSchema.options.filter((kind) => !NC_LEGACY_SYSTEM_EVENT_KINDS.has(kind));
|
|
15681
15738
|
/**
|
|
15682
15739
|
* One coherent system-event condition. `kinds` is the required opt-in safety
|
|
15683
15740
|
* gate; the remaining lists are optional narrowing filters relevant to the
|
|
@@ -15686,6 +15743,18 @@ var NcSystemEventKindSchema = _enum([
|
|
|
15686
15743
|
var NcSystemEventConditionSchema = object({
|
|
15687
15744
|
kinds: array(NcSystemEventKindSchema).min(1),
|
|
15688
15745
|
deviceIds: array(number().int()).min(1).optional(),
|
|
15746
|
+
/**
|
|
15747
|
+
* Narrow a `device-*` kind to these device TYPES (`DeviceType` values —
|
|
15748
|
+
* `camera`, `switch`, `sensor`, `container`, …). Absent = every type, which
|
|
15749
|
+
* is what a liveness rule means when nobody said otherwise.
|
|
15750
|
+
*
|
|
15751
|
+
* This is where "only my cameras" is expressed, and it lives on the rule for
|
|
15752
|
+
* one reason: the intake cannot know which devices this household cares
|
|
15753
|
+
* about, and a producer-side filter is one no operator can change. Fails
|
|
15754
|
+
* CLOSED — a subject whose device type is unknown (an id the device mirror
|
|
15755
|
+
* does not carry) matches no `deviceTypes` list.
|
|
15756
|
+
*/
|
|
15757
|
+
deviceTypes: array(string().min(1)).min(1).optional(),
|
|
15689
15758
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
15690
15759
|
packageNames: array(string().min(1)).min(1).optional()
|
|
15691
15760
|
});
|
|
@@ -15736,6 +15805,47 @@ var NcOccupancyConditionSchema = object({
|
|
|
15736
15805
|
sustainSeconds: number().int().min(0).max(3600).default(15)
|
|
15737
15806
|
});
|
|
15738
15807
|
/**
|
|
15808
|
+
* Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
|
|
15809
|
+
*
|
|
15810
|
+
* Operator-approved vocabulary (2026-08-12, option A — the same one the
|
|
15811
|
+
* reference notifier uses, so an operator moving between them re-uses what
|
|
15812
|
+
* they already know): a rule matches when, over a sampling window of
|
|
15813
|
+
* `samplingSeconds`, at least `hitPercent`% of the audio samples in that
|
|
15814
|
+
* window are HITS. A sample is a hit when it satisfies BOTH present filters:
|
|
15815
|
+
*
|
|
15816
|
+
* - `dbThreshold` — its level is at or above this many dBFS (see
|
|
15817
|
+
* {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
|
|
15818
|
+
* - `labels` — the classifier put at least one of these labels on it.
|
|
15819
|
+
*
|
|
15820
|
+
* Both are OPTIONAL and independent, which is the point of the shape: a
|
|
15821
|
+
* loudness rule ("something loud at 3am") needs no model to be right, and a
|
|
15822
|
+
* label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
|
|
15823
|
+
* is given** — a window in which every sample is trivially a hit would fire on
|
|
15824
|
+
* silence, so the engine refuses such a condition rather than notifying on
|
|
15825
|
+
* nothing (the schema cannot express "at least one of" without becoming a
|
|
15826
|
+
* ZodEffects the cap path would have to special-case).
|
|
15827
|
+
*
|
|
15828
|
+
* `hitPercent` is over the samples the window actually HOLDS, and the window
|
|
15829
|
+
* must be FULL before it can match — a window that has been open for two
|
|
15830
|
+
* seconds of its ten is 100% of nothing, and firing on it would make
|
|
15831
|
+
* `samplingSeconds` decorative.
|
|
15832
|
+
*
|
|
15833
|
+
* Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
|
|
15834
|
+
* `audio-*` ids). Both spellings are accepted — the matcher normalizes the
|
|
15835
|
+
* `audio-` prefix away on both sides, so a picker that offers taxonomy ids and
|
|
15836
|
+
* an operator who typed `dog` mean the same thing.
|
|
15837
|
+
*/
|
|
15838
|
+
var NcAudioConditionSchema = object({
|
|
15839
|
+
/** Audio macro labels; absent = any sound (level-only rule). */
|
|
15840
|
+
labels: array(string().min(1)).min(1).optional(),
|
|
15841
|
+
/** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
|
|
15842
|
+
dbThreshold: number().min(-96).max(0).optional(),
|
|
15843
|
+
/** Percentage of the window's samples that must be hits (1–100). */
|
|
15844
|
+
hitPercent: number().int().min(1).max(100).default(60),
|
|
15845
|
+
/** Length of the sampling window in seconds. */
|
|
15846
|
+
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
15847
|
+
});
|
|
15848
|
+
/**
|
|
15739
15849
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
15740
15850
|
*
|
|
15741
15851
|
* The values are not symmetric, and deliberately so — the absent value has to
|
|
@@ -16008,7 +16118,33 @@ var NcConditionsSchema = object({
|
|
|
16008
16118
|
* threshold and holds for `sustainSeconds`. Fail-closed on missing
|
|
16009
16119
|
* substrate (no snapshot / missing zone). See {@link NcOccupancyCondition}.
|
|
16010
16120
|
*/
|
|
16011
|
-
occupancy: NcOccupancyConditionSchema.optional()
|
|
16121
|
+
occupancy: NcOccupancyConditionSchema.optional(),
|
|
16122
|
+
/**
|
|
16123
|
+
* IMMEDIATE only. Sustained-sound matcher — `hitPercent` of the samples in a
|
|
16124
|
+
* `samplingSeconds` window clear the optional `dbThreshold` and carry one of
|
|
16125
|
+
* the optional `labels`. Fail-closed on missing substrate (no audio samples,
|
|
16126
|
+
* a window that is not full yet, neither filter given). See
|
|
16127
|
+
* {@link NcAudioCondition}.
|
|
16128
|
+
*
|
|
16129
|
+
* Presence of this key is what makes a rule an AUDIO rule: the engine fires
|
|
16130
|
+
* it ONLY on a confirmed audio window, and a rule carrying it never fires on
|
|
16131
|
+
* a detection, a track or a device event (the same fail-closed pairing
|
|
16132
|
+
* `occupancy` has with the `device-event` trigger). That is how audio labels
|
|
16133
|
+
* leave `classes`: an audio rule names its sounds HERE, and the legacy path
|
|
16134
|
+
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
16135
|
+
* classified sample) stays exactly as it was for rules that already use it.
|
|
16136
|
+
*
|
|
16137
|
+
* NOT in {@link NC_CONDITION_CATALOG} yet, and that is the sequencing rule
|
|
16138
|
+
* rather than an oversight: the viewer mirrors the descriptor enums BY HAND
|
|
16139
|
+
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
16140
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor STRIPS the
|
|
16141
|
+
* condition fields it does not know when a rule is saved from the phone.
|
|
16142
|
+
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
16143
|
+
* operator loses a rule's conditions by opening it — so the descriptor, the
|
|
16144
|
+
* admin widget and the viewer mirror land together (P2 + P3), and only then
|
|
16145
|
+
* does an audio rule become authorable.
|
|
16146
|
+
*/
|
|
16147
|
+
audio: NcAudioConditionSchema.optional()
|
|
16012
16148
|
});
|
|
16013
16149
|
/** One delivery target: a `notification-output` Target ref + passthrough params. */
|
|
16014
16150
|
var NcRuleTargetSchema = object({
|
|
@@ -16122,6 +16258,73 @@ var NcThrottleSchema = object({
|
|
|
16122
16258
|
*/
|
|
16123
16259
|
granularity: NcThrottleGranularitySchema.optional()
|
|
16124
16260
|
});
|
|
16261
|
+
/**
|
|
16262
|
+
* How long the confirm gate may hold ONE notification, and how big the picture
|
|
16263
|
+
* it judges may be.
|
|
16264
|
+
*
|
|
16265
|
+
* The clamp is the product decision, not a coincidence of the model: p50 was
|
|
16266
|
+
* 4.9 s warm and 15.3 s cold against qwen3-vl-8b, and a notification that
|
|
16267
|
+
* arrives after the visitor has gone is not a notification. 448 px was enough
|
|
16268
|
+
* to score 16/16 on the operator's parking scenario — bigger costs latency and
|
|
16269
|
+
* tokens for pixels the model pools away.
|
|
16270
|
+
*/
|
|
16271
|
+
var NC_CONFIRM_MIN_TIMEOUT_MS = 1e3;
|
|
16272
|
+
var NC_CONFIRM_MAX_TIMEOUT_MS = 2e4;
|
|
16273
|
+
var NC_CONFIRM_DEFAULT_TIMEOUT_MS = 8e3;
|
|
16274
|
+
/** Comparison the model's COUNT must satisfy for the notification to fire. */
|
|
16275
|
+
var NcConfirmExpectSchema = object({
|
|
16276
|
+
op: _enum([
|
|
16277
|
+
">=",
|
|
16278
|
+
">",
|
|
16279
|
+
"<=",
|
|
16280
|
+
"<",
|
|
16281
|
+
"=="
|
|
16282
|
+
]),
|
|
16283
|
+
count: number().int().min(0).max(1e3)
|
|
16284
|
+
});
|
|
16285
|
+
/**
|
|
16286
|
+
* AI CONFIRM — a vision model looks at the picture this notification is about
|
|
16287
|
+
* to ship and says whether it agrees with the rule.
|
|
16288
|
+
*
|
|
16289
|
+
* It runs AFTER the attachments resolve, deliberately: the crop JUDGED is the
|
|
16290
|
+
* crop SHIPPED (D52). A verdict about a different pixel rectangle than the one
|
|
16291
|
+
* on the operator's phone is not a verdict about this notification.
|
|
16292
|
+
*
|
|
16293
|
+
* FAIL-OPEN is the only safe default. A gate that cannot reach its model, or
|
|
16294
|
+
* whose model is cold, must not silence a camera — so `onTimeout: 'fire'` is
|
|
16295
|
+
* the default and every fail-open is COUNTED, because a gate that always fails
|
|
16296
|
+
* open looks in the log exactly like a gate that works.
|
|
16297
|
+
*
|
|
16298
|
+
* Every field is `.optional()` rather than relied on as a Zod default at the
|
|
16299
|
+
* runtime seam: a Zod default does NOT run on the addon→addon cap path (three
|
|
16300
|
+
* production failures in one day), so the gate reads absent as the constant
|
|
16301
|
+
* above rather than trusting a parse it may never have seen.
|
|
16302
|
+
*/
|
|
16303
|
+
var NcConfirmSchema = object({
|
|
16304
|
+
/** Off unless asked for. An absent `confirm` and `enabled:false` are the
|
|
16305
|
+
* same thing, and both mean "deliver exactly as before". */
|
|
16306
|
+
enabled: boolean().default(false),
|
|
16307
|
+
/** Explicit vision profile; absent = the `purpose:'vision'` cluster default. */
|
|
16308
|
+
profileId: string().optional(),
|
|
16309
|
+
/**
|
|
16310
|
+
* The operator's question, in his own words. Absent = a question derived
|
|
16311
|
+
* from the rule (its class and its expectation).
|
|
16312
|
+
*
|
|
16313
|
+
* NEVER composed with text READ OUT OF THE FRAME. The model reads OSD
|
|
16314
|
+
* banners, signage and plates as instructions if you let them reach the
|
|
16315
|
+
* prompt — proven live — so the authoritative contract stays in the system
|
|
16316
|
+
* turn and only rule-authored words land here.
|
|
16317
|
+
*/
|
|
16318
|
+
prompt: string().max(1e3).optional(),
|
|
16319
|
+
/** Fire only when the model's count satisfies this. Absent = the model's
|
|
16320
|
+
* own boolean verdict decides. */
|
|
16321
|
+
expect: NcConfirmExpectSchema.optional(),
|
|
16322
|
+
timeoutMs: number().int().min(NC_CONFIRM_MIN_TIMEOUT_MS).max(NC_CONFIRM_MAX_TIMEOUT_MS).default(NC_CONFIRM_DEFAULT_TIMEOUT_MS),
|
|
16323
|
+
/** What a timeout / unreachable model MEANS. `fire` (default) = fail-open. */
|
|
16324
|
+
onTimeout: _enum(["fire", "suppress"]).default("fire"),
|
|
16325
|
+
/** Longest edge the judged image is downscaled to before it is sent. */
|
|
16326
|
+
maxImagePx: number().int().min(64).max(2048).default(448)
|
|
16327
|
+
});
|
|
16125
16328
|
/** Client-supplied rule fields (server stamps id/createdBy/createdAt/updatedAt). */
|
|
16126
16329
|
var NcRuleInputSchema = object({
|
|
16127
16330
|
name: string().min(1).max(200),
|
|
@@ -16182,7 +16385,13 @@ var NcRuleInputSchema = object({
|
|
|
16182
16385
|
* `{ cap: 'alarm-panel', method: 'arm', args: { mode: 'away' } }`, the same
|
|
16183
16386
|
* shape as every other actuation.
|
|
16184
16387
|
*/
|
|
16185
|
-
actions: NcRuleActionsSchema.optional()
|
|
16388
|
+
actions: NcRuleActionsSchema.optional(),
|
|
16389
|
+
/**
|
|
16390
|
+
* AI CONFIRM — see {@link NcConfirmSchema}. `.optional()`, never defaulted:
|
|
16391
|
+
* a rule that predates the gate must keep delivering byte-for-byte as it
|
|
16392
|
+
* did, and absent is the only way to say that without a migration.
|
|
16393
|
+
*/
|
|
16394
|
+
confirm: NcConfirmSchema.optional()
|
|
16186
16395
|
});
|
|
16187
16396
|
/**
|
|
16188
16397
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -16193,7 +16402,37 @@ var NcRuleInputSchema = object({
|
|
|
16193
16402
|
* still flow through `nc.setRuleTargetEnabled` (owner-checked), never a raw
|
|
16194
16403
|
* `updateRule` patch.
|
|
16195
16404
|
*/
|
|
16196
|
-
var NcRulePatchSchema = NcRuleInputSchema.partial().extend({
|
|
16405
|
+
var NcRulePatchSchema = NcRuleInputSchema.partial().extend({
|
|
16406
|
+
disabledTargetIds: array(string()).optional(),
|
|
16407
|
+
/**
|
|
16408
|
+
* `.partial()` DOES NOT REMOVE A FIELD'S `.default()`.
|
|
16409
|
+
*
|
|
16410
|
+
* It makes the key optional to SUPPLY; the parse still materialises the
|
|
16411
|
+
* default when the key is absent. And `NcRuleStore.update` merges with
|
|
16412
|
+
* `{ ...existing, ...patch }`, so a materialised key OVERWRITES the stored
|
|
16413
|
+
* one — which made every partial edit destructive:
|
|
16414
|
+
*
|
|
16415
|
+
* nc.updateRule({ throttle }) → conditions reset to `{}`
|
|
16416
|
+
* nc.setRuleTargetEnabled(...) → conditions reset to `{}`
|
|
16417
|
+
* setEnabled(ruleId, false) → conditions reset to `{}`
|
|
16418
|
+
*
|
|
16419
|
+
* A rule scoped to one camera and one zone silently became a rule that
|
|
16420
|
+
* matches EVERY event on EVERY camera, and lost its `media` policy
|
|
16421
|
+
* (zoneCrop / gif / clip / frame) and its `priority` at the same time. Seen
|
|
16422
|
+
* live on 2026-08-12: a rule scoped to device 617 fired on 590 and 615
|
|
16423
|
+
* within a minute of a two-field patch.
|
|
16424
|
+
*
|
|
16425
|
+
* So every defaulted field is re-declared here WITHOUT its default. The
|
|
16426
|
+
* inner defaults still apply when the caller DOES send the key — `{}` for
|
|
16427
|
+
* conditions remains a real instruction ("clear them") — and only the
|
|
16428
|
+
* absent key is now genuinely absent.
|
|
16429
|
+
*/
|
|
16430
|
+
enabled: boolean().optional(),
|
|
16431
|
+
conditions: NcConditionsSchema.optional(),
|
|
16432
|
+
media: NcMediaPolicySchema.optional(),
|
|
16433
|
+
throttle: NcThrottleSchema.optional(),
|
|
16434
|
+
priority: number().int().min(1).max(5).optional()
|
|
16435
|
+
});
|
|
16197
16436
|
/** A persisted rule. */
|
|
16198
16437
|
var NcRuleSchema = NcRuleInputSchema.extend({
|
|
16199
16438
|
id: string(),
|
|
@@ -16494,6 +16733,25 @@ var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.partial();
|
|
|
16494
16733
|
* Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
|
|
16495
16734
|
* copy would lie the first time a rule is disabled.
|
|
16496
16735
|
*/
|
|
16736
|
+
/**
|
|
16737
|
+
* Why a device a mode NAMES is nonetheless not armed by it.
|
|
16738
|
+
*
|
|
16739
|
+
* Each value is an existing authority, never a new flag (D62): `muted` is the
|
|
16740
|
+
* per-camera notification switch the Notification Center already owns,
|
|
16741
|
+
* `detection-off` is the device's own detection binding being inactive, and
|
|
16742
|
+
* `offline` is the device manager's liveness. A fourth reason would mean a
|
|
16743
|
+
* fourth authority, and inventing one here is how a panel starts disagreeing
|
|
16744
|
+
* with the switches the operator actually used.
|
|
16745
|
+
*/
|
|
16746
|
+
var NcAlarmSkipReasonSchema = _enum([
|
|
16747
|
+
"muted",
|
|
16748
|
+
"detection-off",
|
|
16749
|
+
"offline"
|
|
16750
|
+
]);
|
|
16751
|
+
var NcAlarmSkippedDeviceSchema = object({
|
|
16752
|
+
deviceId: number().int(),
|
|
16753
|
+
reason: NcAlarmSkipReasonSchema
|
|
16754
|
+
});
|
|
16497
16755
|
var NcAlarmModeCoverageSchema = object({
|
|
16498
16756
|
mode: AlarmArmModeSchema,
|
|
16499
16757
|
/** Enabled rules gated on `armed_<mode>`. Zero means the mode does nothing. */
|
|
@@ -16501,7 +16759,18 @@ var NcAlarmModeCoverageSchema = object({
|
|
|
16501
16759
|
/** At least one covering rule has no device scope, so the mode covers all. */
|
|
16502
16760
|
allDevices: boolean(),
|
|
16503
16761
|
/** Ids named by the covering rules. A SUBSET when `allDevices` is true. */
|
|
16504
|
-
deviceIds: array(number().int())
|
|
16762
|
+
deviceIds: array(number().int()),
|
|
16763
|
+
/**
|
|
16764
|
+
* Devices this mode NAMES but cannot actually arm, each with the switch that
|
|
16765
|
+
* excludes it.
|
|
16766
|
+
*
|
|
16767
|
+
* "Away armed — 12 cameras" is a promise, and a muted camera among those
|
|
16768
|
+
* twelve makes it false in exactly the way nobody notices until an incident.
|
|
16769
|
+
* Defaulted to `[]` so a coverage answer computed before this field existed
|
|
16770
|
+
* still parses as "nothing known to be skipped" rather than failing the whole
|
|
16771
|
+
* alarm tab.
|
|
16772
|
+
*/
|
|
16773
|
+
skippedDevices: array(NcAlarmSkippedDeviceSchema).default([])
|
|
16505
16774
|
});
|
|
16506
16775
|
var NcAlarmConfigSchema = object({
|
|
16507
16776
|
/**
|
|
@@ -25207,7 +25476,19 @@ var RecordingManifestSchema = object({
|
|
|
25207
25476
|
* profiles/subtrees/locations on this node). */
|
|
25208
25477
|
var RecordingDeviceUsageSchema = object({
|
|
25209
25478
|
deviceId: number(),
|
|
25210
|
-
usedBytes: number()
|
|
25479
|
+
usedBytes: number(),
|
|
25480
|
+
/**
|
|
25481
|
+
* Start of this camera's OLDEST indexed segment, across every profile and
|
|
25482
|
+
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
25483
|
+
* only honest answer to "is retention actually holding?" per camera.
|
|
25484
|
+
*
|
|
25485
|
+
* `null` = the camera has no footage. OPTIONAL because a recorder that
|
|
25486
|
+
* predates this field omits it entirely, and a hub whose types carry the
|
|
25487
|
+
* field must keep validating that older provider's payload: the framework
|
|
25488
|
+
* (types) and the addon ship on different trains, and the addon is usually
|
|
25489
|
+
* the later of the two.
|
|
25490
|
+
*/
|
|
25491
|
+
oldestMs: number().nullable().optional()
|
|
25211
25492
|
});
|
|
25212
25493
|
/** Recording storage usage + capacity for one storage location. */
|
|
25213
25494
|
var RecordingLocationUsageSchema = object({
|
|
@@ -25235,6 +25516,57 @@ var RecordingStorageUsageSchema = object({
|
|
|
25235
25516
|
locations: array(RecordingLocationUsageSchema)
|
|
25236
25517
|
});
|
|
25237
25518
|
/**
|
|
25519
|
+
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
25520
|
+
*
|
|
25521
|
+
* The placement plan decides where NEW writes go and moves nothing. A rebalance
|
|
25522
|
+
* is the operator asking for the EXISTING archive to be brought into line with
|
|
25523
|
+
* that plan: one relocate job per (camera, profile) pile that sits on the wrong
|
|
25524
|
+
* location, run FIFO behind the single-flight mover.
|
|
25525
|
+
*
|
|
25526
|
+
* `plan…` and `start…` return the SAME shape deliberately — what the operator
|
|
25527
|
+
* confirms is exactly what gets enqueued, and `jobIds` is the only difference
|
|
25528
|
+
* (empty on the plan).
|
|
25529
|
+
*/
|
|
25530
|
+
var RecordingRebalanceMoveSchema = object({
|
|
25531
|
+
deviceId: number(),
|
|
25532
|
+
profile: string(),
|
|
25533
|
+
fromLocationId: string(),
|
|
25534
|
+
toLocationId: string(),
|
|
25535
|
+
bytes: number(),
|
|
25536
|
+
files: number().int()
|
|
25537
|
+
});
|
|
25538
|
+
/** Why a pile that is out of place is staying there. Every refusal is
|
|
25539
|
+
* reported: a rebalance that silently drops a camera reads exactly like one
|
|
25540
|
+
* that had nothing to do. */
|
|
25541
|
+
var RecordingRebalanceSkipReasonSchema = _enum([
|
|
25542
|
+
"unassigned",
|
|
25543
|
+
"target-not-writable",
|
|
25544
|
+
"below-threshold",
|
|
25545
|
+
"no-headroom"
|
|
25546
|
+
]);
|
|
25547
|
+
var RecordingRebalanceSkipSchema = object({
|
|
25548
|
+
deviceId: number(),
|
|
25549
|
+
profile: string(),
|
|
25550
|
+
fromLocationId: string(),
|
|
25551
|
+
/** The location the plan wants; null when the camera has no assignment. */
|
|
25552
|
+
toLocationId: string().nullable(),
|
|
25553
|
+
bytes: number(),
|
|
25554
|
+
reason: RecordingRebalanceSkipReasonSchema
|
|
25555
|
+
});
|
|
25556
|
+
var RecordingRebalancePlanSchema = object({
|
|
25557
|
+
moves: array(RecordingRebalanceMoveSchema),
|
|
25558
|
+
skipped: array(RecordingRebalanceSkipSchema),
|
|
25559
|
+
bytesToMove: number(),
|
|
25560
|
+
/** Relocate job ids enqueued. Always empty for the plan (dry-run) call. */
|
|
25561
|
+
jobIds: array(string())
|
|
25562
|
+
});
|
|
25563
|
+
var RecordingRebalanceInputSchema = object({
|
|
25564
|
+
/** Copy throttle in MB/s (default 40) — a rebalance is a background chore. */
|
|
25565
|
+
throttleMbps: number().min(1).max(1e3).optional(),
|
|
25566
|
+
/** Ignore piles smaller than this (default 1 GB). */
|
|
25567
|
+
minMoveGb: number().min(0).optional()
|
|
25568
|
+
});
|
|
25569
|
+
/**
|
|
25238
25570
|
* Result of locating footage at a wall-clock instant for one device/profile.
|
|
25239
25571
|
* `segment` carries the covering segment's window; `gap` reports the forward
|
|
25240
25572
|
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
@@ -25478,6 +25810,36 @@ var recordingCapability = {
|
|
|
25478
25810
|
cancelStorageMigrationMove: method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
25479
25811
|
kind: "mutation",
|
|
25480
25812
|
auth: "admin"
|
|
25813
|
+
}),
|
|
25814
|
+
/**
|
|
25815
|
+
* Move footage between locations — the OPERATOR's mover, scoped to one
|
|
25816
|
+
* camera (and optionally to specific profiles) rather than a whole disk.
|
|
25817
|
+
* Queued FIFO behind the single-flight engine, so arming several is safe.
|
|
25818
|
+
*/
|
|
25819
|
+
relocateFootage: method(RelocateFootageInputSchema, object({ jobId: string() }), {
|
|
25820
|
+
kind: "mutation",
|
|
25821
|
+
auth: "admin"
|
|
25822
|
+
}),
|
|
25823
|
+
/** Every relocate job this recorder knows about, newest first (in RAM: the
|
|
25824
|
+
* move is resumable, so a lost list costs nothing but the display). */
|
|
25825
|
+
listRelocateJobs: method(object({}), array(RelocateJobSchema).readonly(), {
|
|
25826
|
+
kind: "query",
|
|
25827
|
+
auth: "admin"
|
|
25828
|
+
}),
|
|
25829
|
+
/** Cancel a running or queued relocate job. A queued job never runs. */
|
|
25830
|
+
cancelRelocateJob: method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
25831
|
+
kind: "mutation",
|
|
25832
|
+
auth: "admin"
|
|
25833
|
+
}),
|
|
25834
|
+
/** What a rebalance WOULD move, and what it would refuse. Moves nothing. */
|
|
25835
|
+
planStorageRebalance: method(RecordingRebalanceInputSchema, RecordingRebalancePlanSchema, {
|
|
25836
|
+
kind: "query",
|
|
25837
|
+
auth: "admin"
|
|
25838
|
+
}),
|
|
25839
|
+
/** Arm the rebalance: enqueue one relocate job per planned move. */
|
|
25840
|
+
startStorageRebalance: method(RecordingRebalanceInputSchema, RecordingRebalancePlanSchema, {
|
|
25841
|
+
kind: "mutation",
|
|
25842
|
+
auth: "admin"
|
|
25481
25843
|
})
|
|
25482
25844
|
}
|
|
25483
25845
|
};
|
|
@@ -30878,6 +31240,12 @@ Object.freeze({
|
|
|
30878
31240
|
addonId: null,
|
|
30879
31241
|
access: "create"
|
|
30880
31242
|
},
|
|
31243
|
+
"recording.cancelRelocateJob": {
|
|
31244
|
+
capName: "recording",
|
|
31245
|
+
capScope: "system",
|
|
31246
|
+
addonId: null,
|
|
31247
|
+
access: "create"
|
|
31248
|
+
},
|
|
30881
31249
|
"recording.cancelStorageMigrationMove": {
|
|
30882
31250
|
capName: "recording",
|
|
30883
31251
|
capScope: "system",
|
|
@@ -30932,6 +31300,12 @@ Object.freeze({
|
|
|
30932
31300
|
addonId: null,
|
|
30933
31301
|
access: "view"
|
|
30934
31302
|
},
|
|
31303
|
+
"recording.listRelocateJobs": {
|
|
31304
|
+
capName: "recording",
|
|
31305
|
+
capScope: "system",
|
|
31306
|
+
addonId: null,
|
|
31307
|
+
access: "view"
|
|
31308
|
+
},
|
|
30935
31309
|
"recording.locateSegment": {
|
|
30936
31310
|
capName: "recording",
|
|
30937
31311
|
capScope: "system",
|
|
@@ -30944,6 +31318,12 @@ Object.freeze({
|
|
|
30944
31318
|
addonId: null,
|
|
30945
31319
|
access: "create"
|
|
30946
31320
|
},
|
|
31321
|
+
"recording.planStorageRebalance": {
|
|
31322
|
+
capName: "recording",
|
|
31323
|
+
capScope: "system",
|
|
31324
|
+
addonId: null,
|
|
31325
|
+
access: "view"
|
|
31326
|
+
},
|
|
30947
31327
|
"recording.pruneFootage": {
|
|
30948
31328
|
capName: "recording",
|
|
30949
31329
|
capScope: "system",
|
|
@@ -30968,6 +31348,12 @@ Object.freeze({
|
|
|
30968
31348
|
addonId: null,
|
|
30969
31349
|
access: "create"
|
|
30970
31350
|
},
|
|
31351
|
+
"recording.relocateFootage": {
|
|
31352
|
+
capName: "recording",
|
|
31353
|
+
capScope: "system",
|
|
31354
|
+
addonId: null,
|
|
31355
|
+
access: "create"
|
|
31356
|
+
},
|
|
30971
31357
|
"recording.renderClip": {
|
|
30972
31358
|
capName: "recording",
|
|
30973
31359
|
capScope: "system",
|
|
@@ -31004,6 +31390,12 @@ Object.freeze({
|
|
|
31004
31390
|
addonId: null,
|
|
31005
31391
|
access: "create"
|
|
31006
31392
|
},
|
|
31393
|
+
"recording.startStorageRebalance": {
|
|
31394
|
+
capName: "recording",
|
|
31395
|
+
capScope: "system",
|
|
31396
|
+
addonId: null,
|
|
31397
|
+
access: "create"
|
|
31398
|
+
},
|
|
31007
31399
|
"recordingExport.cancelExport": {
|
|
31008
31400
|
capName: "recording-export",
|
|
31009
31401
|
capScope: "system",
|
|
@@ -32418,6 +32810,104 @@ var FramerateField = number().int().min(1).max(60);
|
|
|
32418
32810
|
var TargetsField = array(NcRuleTargetSchema).min(1);
|
|
32419
32811
|
var PriorityField = number().int().min(1).max(5);
|
|
32420
32812
|
/**
|
|
32813
|
+
* Explicit override of the DENSE sampling cadence, seconds.
|
|
32814
|
+
*
|
|
32815
|
+
* Absent ⇒ derived as `max(1s, cadenceSec / 30)` — a 30 s base samples every
|
|
32816
|
+
* 1 s inside a detection range. (It was `base / 10` until 2026-08-12, which
|
|
32817
|
+
* made that same base 3 s and rendered a person pass as two frames.)
|
|
32818
|
+
*
|
|
32819
|
+
* THE ARITHMETIC. A detection range of `rangeSec` seconds sampled every
|
|
32820
|
+
* `denseCadenceSec` and played at `framerate` occupies
|
|
32821
|
+
*
|
|
32822
|
+
* outputSeconds = (rangeSec / denseCadenceSec) / framerate
|
|
32823
|
+
*
|
|
32824
|
+
* so a 7 s pass at 1 s / 12 fps is 0.58 s of video, and at 0.5 s it is 1.17 s.
|
|
32825
|
+
* Halving this field doubles the frames INSIDE ranges only — the base cadence,
|
|
32826
|
+
* and therefore the length of a quiet night, does not move.
|
|
32827
|
+
*
|
|
32828
|
+
* Floored at {@link TIMELAPSE_DENSE_FLOOR_SEC}: asking for frames faster than
|
|
32829
|
+
* the recording has them returns the same frames, requested twice. Must be
|
|
32830
|
+
* STRICTLY smaller than `cadenceSec` — a dense rate that is not denser renders
|
|
32831
|
+
* a uniform video the operator believes is two-rate — and upsert refuses it
|
|
32832
|
+
* rather than letting the export cap reject the render hours after the window.
|
|
32833
|
+
*/
|
|
32834
|
+
var DenseCadenceSecField = number().min(.1).max(3600);
|
|
32835
|
+
/**
|
|
32836
|
+
* Minimum seconds of OUTPUT video each detection range must occupy.
|
|
32837
|
+
*
|
|
32838
|
+
* The operator-facing form of the arithmetic above: instead of solving for a
|
|
32839
|
+
* cadence, state the dwell and let the renderer solve. `minDwellSec: 1` on a
|
|
32840
|
+
* 30 s base at 12 fps turns a 7 s pass into a full second of video by sampling
|
|
32841
|
+
* that range every ~583 ms.
|
|
32842
|
+
*
|
|
32843
|
+
* ONE CADENCE SERVES EVERY RANGE. `ExportDenseSchema.everyMs` is global — the
|
|
32844
|
+
* ranges are terms of a single ffmpeg `select` expression that cannot vary rate
|
|
32845
|
+
* per term — so the MOST DEMANDING (shortest) range sets the rate and longer
|
|
32846
|
+
* ranges are sampled denser than they need. Per-range cadences require a cap
|
|
32847
|
+
* schema change and are the tracked follow-up.
|
|
32848
|
+
*
|
|
32849
|
+
* A range too short to reach the dwell even at {@link TIMELAPSE_DENSE_FLOOR_SEC}
|
|
32850
|
+
* is rendered with every frame that EXISTS and no more: the guarantee is capped
|
|
32851
|
+
* by real footage, never met by duplicating frames into motion that never
|
|
32852
|
+
* happened.
|
|
32853
|
+
*/
|
|
32854
|
+
var MinDwellSecField = number().min(0).max(60);
|
|
32855
|
+
/**
|
|
32856
|
+
* Caption burned into the notification's preview frame.
|
|
32857
|
+
*
|
|
32858
|
+
* Same `{{var}}` vocabulary as {@link TimelapseTemplateSchema} (`camera`,
|
|
32859
|
+
* `rule`, `from`, `to`) and rendered by the SAME renderer — a second
|
|
32860
|
+
* templating dialect for one field would be a second thing to explain.
|
|
32861
|
+
*
|
|
32862
|
+
* Absent ⇒ {@link DEFAULT_TIMELAPSE_PREVIEW_TEXT}. An EMPTY STRING is the
|
|
32863
|
+
* operator saying "the frame, no caption" — a distinct, reachable answer, and
|
|
32864
|
+
* the reason this is not `.min(1)`.
|
|
32865
|
+
*/
|
|
32866
|
+
var PreviewTextField = string().max(200);
|
|
32867
|
+
/**
|
|
32868
|
+
* Whether the notification's preview is a STILL or a short animation.
|
|
32869
|
+
*
|
|
32870
|
+
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
32871
|
+
* rule)"* — his Scrypted advanced-notifier has a `gifRule`, and a ten-hour
|
|
32872
|
+
* night reads better as three seconds of motion than as one frame of it. Both
|
|
32873
|
+
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
32874
|
+
* simply applies it to a dozen frames sampled across the render and assembles
|
|
32875
|
+
* them.
|
|
32876
|
+
*
|
|
32877
|
+
* `'image'` is the default and stays the default: a GIF costs a dozen ffmpeg
|
|
32878
|
+
* seeks and a palette pass, and no rule that never asked for one should start
|
|
32879
|
+
* paying that on the deploy that shipped it.
|
|
32880
|
+
*
|
|
32881
|
+
* A GIF that cannot be assembled DEGRADES to the still — never to nothing.
|
|
32882
|
+
*/
|
|
32883
|
+
var PreviewModeField = _enum(["image", "gif"]);
|
|
32884
|
+
/**
|
|
32885
|
+
* Which detection classes the notification reports counts for.
|
|
32886
|
+
*
|
|
32887
|
+
* The counts come from the tracks the render ALREADY fetched for its dense-range
|
|
32888
|
+
* plan — no second query — aggregated per class. Absent or empty means "every
|
|
32889
|
+
* class the window actually contained", which is what an operator who never
|
|
32890
|
+
* opened the field wants; a list narrows it (`['person']` on a driveway that
|
|
32891
|
+
* counts cars all night).
|
|
32892
|
+
*
|
|
32893
|
+
* Class names are the tracker's own (`person`, `vehicle`, `animal`, `package`,
|
|
32894
|
+
* …). An unknown name simply never matches and reports nothing — it is not an
|
|
32895
|
+
* error, because a rule may legitimately name a class this camera's model does
|
|
32896
|
+
* not emit.
|
|
32897
|
+
*
|
|
32898
|
+
* The counts are exposed to {@link TimelapseTemplateSchema} as:
|
|
32899
|
+
* - `{{detections}}` — total over the reported classes
|
|
32900
|
+
* - `{{detectionSummary}}` — `2 persone, 1 veicolo`
|
|
32901
|
+
* - `{{count_person}}` / `{{count_vehicle}}` / `{{count_animal}}` / … —
|
|
32902
|
+
* one per class, `count_` + the class name
|
|
32903
|
+
*
|
|
32904
|
+
* With NO custom body template the summary is appended to the derived body, and
|
|
32905
|
+
* only when the total is non-zero: a nightly `0 rilevamenti` is a line nobody
|
|
32906
|
+
* reads. With a custom template the operator owns every word — nothing is
|
|
32907
|
+
* appended, so `{{detectionSummary}}` is how he asks for it.
|
|
32908
|
+
*/
|
|
32909
|
+
var ReportClassesField = array(string().min(1).max(40)).max(20);
|
|
32910
|
+
/**
|
|
32421
32911
|
* Client-supplied timelapse-rule fields. The server stamps id / createdBy /
|
|
32422
32912
|
* createdAt / updatedAt / ownerUserId / lastGeneratedAt — none of them appear
|
|
32423
32913
|
* here (see the ownership note above).
|
|
@@ -32437,9 +32927,30 @@ var TimelapseRuleInputSchema = object({
|
|
|
32437
32927
|
cadenceSec: CadenceSecField.default(15),
|
|
32438
32928
|
/** Output frames per second of the assembled mp4 (predecessor parity). */
|
|
32439
32929
|
framerate: FramerateField.default(10),
|
|
32930
|
+
/**
|
|
32931
|
+
* Explicit dense cadence — see {@link DenseCadenceSecField}. Absent ⇒ derived
|
|
32932
|
+
* as `max(1s, cadenceSec / 30)`, which is what every rule written before this
|
|
32933
|
+
* field gets.
|
|
32934
|
+
*/
|
|
32935
|
+
denseCadenceSec: DenseCadenceSecField.optional(),
|
|
32936
|
+
/** Output-seconds guarantee per detection range — see {@link MinDwellSecField}. */
|
|
32937
|
+
minDwellSec: MinDwellSecField.optional(),
|
|
32440
32938
|
/** `notification-output` targets the finished video/thumbnail is sent to. */
|
|
32441
32939
|
targets: TargetsField,
|
|
32442
32940
|
template: TimelapseTemplateSchema.optional(),
|
|
32941
|
+
/**
|
|
32942
|
+
* Caption on the notification's PREVIEW FRAME — see {@link PreviewTextField}
|
|
32943
|
+
* and {@link DEFAULT_TIMELAPSE_PREVIEW_TEXT}.
|
|
32944
|
+
*
|
|
32945
|
+
* Deliberately NOT part of {@link TimelapseTemplateSchema}: that object is
|
|
32946
|
+
* the notification's title/body, and clearing it (`template: null`) must not
|
|
32947
|
+
* silently clear the caption too.
|
|
32948
|
+
*/
|
|
32949
|
+
previewText: PreviewTextField.optional(),
|
|
32950
|
+
/** Still or animation — see {@link PreviewModeField}. */
|
|
32951
|
+
previewMode: PreviewModeField.default("image"),
|
|
32952
|
+
/** Classes the notification counts — see {@link ReportClassesField}. */
|
|
32953
|
+
reportClasses: ReportClassesField.optional(),
|
|
32443
32954
|
/** Canonical notification priority ordinal (1..5); per-target overridable. */
|
|
32444
32955
|
priority: PriorityField.default(3)
|
|
32445
32956
|
});
|
|
@@ -32450,8 +32961,13 @@ object({
|
|
|
32450
32961
|
schedule: NcScheduleSchema.optional(),
|
|
32451
32962
|
cadenceSec: CadenceSecField.optional(),
|
|
32452
32963
|
framerate: FramerateField.optional(),
|
|
32964
|
+
denseCadenceSec: DenseCadenceSecField.optional(),
|
|
32965
|
+
minDwellSec: MinDwellSecField.optional(),
|
|
32453
32966
|
targets: TargetsField.optional(),
|
|
32454
32967
|
template: TimelapseTemplateSchema.nullable().optional(),
|
|
32968
|
+
previewText: PreviewTextField.optional(),
|
|
32969
|
+
previewMode: PreviewModeField.optional(),
|
|
32970
|
+
reportClasses: ReportClassesField.optional(),
|
|
32455
32971
|
priority: PriorityField.optional()
|
|
32456
32972
|
});
|
|
32457
32973
|
TimelapseRuleInputSchema.extend({
|