@camstack/addon-export-hap 1.2.23 → 1.2.24
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/hap-export.addon.js +518 -17
- package/dist/hap-export.addon.mjs +518 -17
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -8246,7 +8246,15 @@ var RecordingConfigSchema = object({
|
|
|
8246
8246
|
* Each completed/failed run also lands one durable ops-log row on its owning
|
|
8247
8247
|
* addon surface.
|
|
8248
8248
|
*/
|
|
8249
|
+
/**
|
|
8250
|
+
* `queued` exists because the recorder mover is SINGLE-FLIGHT and an operator
|
|
8251
|
+
* rebalance enqueues one job per (camera, profile). Refusing the second job —
|
|
8252
|
+
* what the engine did before — turned a fifteen-camera rebalance into fifteen
|
|
8253
|
+
* manual retries. Queued jobs run FIFO; a queued job that is cancelled never
|
|
8254
|
+
* runs at all.
|
|
8255
|
+
*/
|
|
8249
8256
|
var RelocateJobStateSchema = _enum([
|
|
8257
|
+
"queued",
|
|
8250
8258
|
"running",
|
|
8251
8259
|
"done",
|
|
8252
8260
|
"failed",
|
|
@@ -8281,6 +8289,15 @@ var RelocateFootageInputSchema = object({
|
|
|
8281
8289
|
/** Limits relocation to the logical profile class. Omit only for the
|
|
8282
8290
|
* pre-orchestration compatibility path. */
|
|
8283
8291
|
footageClass: RelocateFootageClassSchema.optional(),
|
|
8292
|
+
/** Scope the move to ONE camera. Absent = every camera on the source, which
|
|
8293
|
+
* is what a whole-disk drain means. The rebalance path always sets it: its
|
|
8294
|
+
* unit is a (camera, profile) pile, not a disk. */
|
|
8295
|
+
deviceId: number().int().optional(),
|
|
8296
|
+
/** Scope the move to specific segment profiles (`high` / `mid` / `low`).
|
|
8297
|
+
* Finer than `footageClass`, which cannot separate high from mid — and the
|
|
8298
|
+
* placement plan assigns those two independently, so a rebalance that could
|
|
8299
|
+
* only say "recordings" would move footage the plan never asked to move. */
|
|
8300
|
+
profiles: array(string()).optional(),
|
|
8284
8301
|
/** Copy throttle in MB/s (default 40) — the drain is a background chore,
|
|
8285
8302
|
* never allowed to starve live writers. */
|
|
8286
8303
|
throttleMbps: number().min(1).max(1e3).optional()
|
|
@@ -8416,6 +8433,21 @@ var StorageLocationSchema = object({
|
|
|
8416
8433
|
nodeId: string().optional(),
|
|
8417
8434
|
isDefault: boolean().default(false),
|
|
8418
8435
|
isSystem: boolean().default(false),
|
|
8436
|
+
/**
|
|
8437
|
+
* Operator opt-in: whether consumers that BALANCE across several locations
|
|
8438
|
+
* of a type may write here. Recordings reads it today; event media and
|
|
8439
|
+
* backups are the next consumers, which is why the flag lives on the
|
|
8440
|
+
* location rather than in any one addon's store — nothing has to be
|
|
8441
|
+
* extended to add the next consumer.
|
|
8442
|
+
*
|
|
8443
|
+
* OPTIONAL, and ABSENT MEANS ACTIVE. Every location persisted before the
|
|
8444
|
+
* flag existed reads back with no flag and keeps working exactly as before;
|
|
8445
|
+
* that is the whole compat story, and it is why no migration ships with it.
|
|
8446
|
+
* A newly CREATED sibling is stamped `false` by the orchestrator (creating a
|
|
8447
|
+
* disk must not silently start writing to it); the default of a type is
|
|
8448
|
+
* always stamped `true`.
|
|
8449
|
+
*/
|
|
8450
|
+
enabled: boolean().optional(),
|
|
8419
8451
|
/** COMPUTED at read time by the orchestrator (statfs of the backing volume
|
|
8420
8452
|
* for node-local locations it can reach) — never persisted, absent when the
|
|
8421
8453
|
* volume is remote/unreachable. The single capacity truth every UI reads. */
|
|
@@ -12853,7 +12885,8 @@ method(object({
|
|
|
12853
12885
|
}), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
|
|
12854
12886
|
/**
|
|
12855
12887
|
* filesystem-browse — per-node capability for browsing the node's local
|
|
12856
|
-
* filesystem
|
|
12888
|
+
* filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
|
|
12889
|
+
* are sandboxed to operator-configured allowed roots (D115). Used by the
|
|
12857
12890
|
* admin "Add filesystem location" flow to pick a node + path. `mode:'per-node'`
|
|
12858
12891
|
* (one provider per node); the hub calls it with `{nodeId}` so the codegen
|
|
12859
12892
|
* routes to that exact node (default `nodeIdMode:'routing'`).
|
|
@@ -14666,6 +14699,13 @@ var MaskGridDimsSchema = object({
|
|
|
14666
14699
|
* `package-event` are pure trigger kinds (no urgency dimension). Extending
|
|
14667
14700
|
* this one field keeps the schema additive — a rule still declares exactly
|
|
14668
14701
|
* one trigger.
|
|
14702
|
+
*
|
|
14703
|
+
* AUDIO rules add no member here, for the reason occupancy added none: the
|
|
14704
|
+
* enum is mirrored by hand in the viewer (`scripts/check-viewer-condition-
|
|
14705
|
+
* mirror.ts` fails the build on a member the app cannot render) and every
|
|
14706
|
+
* member costs a release train. A sustained-sound rule is therefore an
|
|
14707
|
+
* `immediate` rule carrying {@link NcConditions.audio} — the condition is the
|
|
14708
|
+
* trigger discriminator, exactly as `occupancy` is on `device-event`.
|
|
14669
14709
|
*/
|
|
14670
14710
|
var NcDeliverySchema = _enum([
|
|
14671
14711
|
"immediate",
|
|
@@ -14680,15 +14720,32 @@ var NcDeliverySchema = _enum([
|
|
|
14680
14720
|
* depend on a provider's raw event name or payload shape.
|
|
14681
14721
|
*/
|
|
14682
14722
|
var NcSystemEventKindSchema = _enum([
|
|
14683
|
-
"
|
|
14684
|
-
"
|
|
14723
|
+
"device-online",
|
|
14724
|
+
"device-offline",
|
|
14725
|
+
"device-disabled",
|
|
14726
|
+
"device-enabled",
|
|
14685
14727
|
"stream-online",
|
|
14686
14728
|
"stream-offline",
|
|
14687
14729
|
"node-online",
|
|
14688
14730
|
"node-offline",
|
|
14689
14731
|
"addon-update-available",
|
|
14690
|
-
"server-update-available"
|
|
14732
|
+
"server-update-available",
|
|
14733
|
+
"alarm-triggered",
|
|
14734
|
+
"alarm-armed",
|
|
14735
|
+
"alarm-disarmed",
|
|
14736
|
+
"camera-online",
|
|
14737
|
+
"camera-offline",
|
|
14738
|
+
"camera-disabled",
|
|
14739
|
+
"camera-enabled"
|
|
14691
14740
|
]);
|
|
14741
|
+
/** The legacy tail of {@link NcSystemEventKindSchema} — see its docblock. */
|
|
14742
|
+
var NC_LEGACY_SYSTEM_EVENT_KINDS = new Set([
|
|
14743
|
+
"camera-online",
|
|
14744
|
+
"camera-offline",
|
|
14745
|
+
"camera-disabled",
|
|
14746
|
+
"camera-enabled"
|
|
14747
|
+
]);
|
|
14748
|
+
NcSystemEventKindSchema.options.filter((kind) => !NC_LEGACY_SYSTEM_EVENT_KINDS.has(kind));
|
|
14692
14749
|
/**
|
|
14693
14750
|
* One coherent system-event condition. `kinds` is the required opt-in safety
|
|
14694
14751
|
* gate; the remaining lists are optional narrowing filters relevant to the
|
|
@@ -14697,6 +14754,18 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14697
14754
|
var NcSystemEventConditionSchema = object({
|
|
14698
14755
|
kinds: array(NcSystemEventKindSchema).min(1),
|
|
14699
14756
|
deviceIds: array(number().int()).min(1).optional(),
|
|
14757
|
+
/**
|
|
14758
|
+
* Narrow a `device-*` kind to these device TYPES (`DeviceType` values —
|
|
14759
|
+
* `camera`, `switch`, `sensor`, `container`, …). Absent = every type, which
|
|
14760
|
+
* is what a liveness rule means when nobody said otherwise.
|
|
14761
|
+
*
|
|
14762
|
+
* This is where "only my cameras" is expressed, and it lives on the rule for
|
|
14763
|
+
* one reason: the intake cannot know which devices this household cares
|
|
14764
|
+
* about, and a producer-side filter is one no operator can change. Fails
|
|
14765
|
+
* CLOSED — a subject whose device type is unknown (an id the device mirror
|
|
14766
|
+
* does not carry) matches no `deviceTypes` list.
|
|
14767
|
+
*/
|
|
14768
|
+
deviceTypes: array(string().min(1)).min(1).optional(),
|
|
14700
14769
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14701
14770
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14702
14771
|
});
|
|
@@ -14747,6 +14816,47 @@ var NcOccupancyConditionSchema = object({
|
|
|
14747
14816
|
sustainSeconds: number().int().min(0).max(3600).default(15)
|
|
14748
14817
|
});
|
|
14749
14818
|
/**
|
|
14819
|
+
* Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
|
|
14820
|
+
*
|
|
14821
|
+
* Operator-approved vocabulary (2026-08-12, option A — the same one the
|
|
14822
|
+
* reference notifier uses, so an operator moving between them re-uses what
|
|
14823
|
+
* they already know): a rule matches when, over a sampling window of
|
|
14824
|
+
* `samplingSeconds`, at least `hitPercent`% of the audio samples in that
|
|
14825
|
+
* window are HITS. A sample is a hit when it satisfies BOTH present filters:
|
|
14826
|
+
*
|
|
14827
|
+
* - `dbThreshold` — its level is at or above this many dBFS (see
|
|
14828
|
+
* {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
|
|
14829
|
+
* - `labels` — the classifier put at least one of these labels on it.
|
|
14830
|
+
*
|
|
14831
|
+
* Both are OPTIONAL and independent, which is the point of the shape: a
|
|
14832
|
+
* loudness rule ("something loud at 3am") needs no model to be right, and a
|
|
14833
|
+
* label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
|
|
14834
|
+
* is given** — a window in which every sample is trivially a hit would fire on
|
|
14835
|
+
* silence, so the engine refuses such a condition rather than notifying on
|
|
14836
|
+
* nothing (the schema cannot express "at least one of" without becoming a
|
|
14837
|
+
* ZodEffects the cap path would have to special-case).
|
|
14838
|
+
*
|
|
14839
|
+
* `hitPercent` is over the samples the window actually HOLDS, and the window
|
|
14840
|
+
* must be FULL before it can match — a window that has been open for two
|
|
14841
|
+
* seconds of its ten is 100% of nothing, and firing on it would make
|
|
14842
|
+
* `samplingSeconds` decorative.
|
|
14843
|
+
*
|
|
14844
|
+
* Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
|
|
14845
|
+
* `audio-*` ids). Both spellings are accepted — the matcher normalizes the
|
|
14846
|
+
* `audio-` prefix away on both sides, so a picker that offers taxonomy ids and
|
|
14847
|
+
* an operator who typed `dog` mean the same thing.
|
|
14848
|
+
*/
|
|
14849
|
+
var NcAudioConditionSchema = object({
|
|
14850
|
+
/** Audio macro labels; absent = any sound (level-only rule). */
|
|
14851
|
+
labels: array(string().min(1)).min(1).optional(),
|
|
14852
|
+
/** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
|
|
14853
|
+
dbThreshold: number().min(-96).max(0).optional(),
|
|
14854
|
+
/** Percentage of the window's samples that must be hits (1–100). */
|
|
14855
|
+
hitPercent: number().int().min(1).max(100).default(60),
|
|
14856
|
+
/** Length of the sampling window in seconds. */
|
|
14857
|
+
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14858
|
+
});
|
|
14859
|
+
/**
|
|
14750
14860
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
14751
14861
|
*
|
|
14752
14862
|
* The values are not symmetric, and deliberately so — the absent value has to
|
|
@@ -15019,7 +15129,33 @@ var NcConditionsSchema = object({
|
|
|
15019
15129
|
* threshold and holds for `sustainSeconds`. Fail-closed on missing
|
|
15020
15130
|
* substrate (no snapshot / missing zone). See {@link NcOccupancyCondition}.
|
|
15021
15131
|
*/
|
|
15022
|
-
occupancy: NcOccupancyConditionSchema.optional()
|
|
15132
|
+
occupancy: NcOccupancyConditionSchema.optional(),
|
|
15133
|
+
/**
|
|
15134
|
+
* IMMEDIATE only. Sustained-sound matcher — `hitPercent` of the samples in a
|
|
15135
|
+
* `samplingSeconds` window clear the optional `dbThreshold` and carry one of
|
|
15136
|
+
* the optional `labels`. Fail-closed on missing substrate (no audio samples,
|
|
15137
|
+
* a window that is not full yet, neither filter given). See
|
|
15138
|
+
* {@link NcAudioCondition}.
|
|
15139
|
+
*
|
|
15140
|
+
* Presence of this key is what makes a rule an AUDIO rule: the engine fires
|
|
15141
|
+
* it ONLY on a confirmed audio window, and a rule carrying it never fires on
|
|
15142
|
+
* a detection, a track or a device event (the same fail-closed pairing
|
|
15143
|
+
* `occupancy` has with the `device-event` trigger). That is how audio labels
|
|
15144
|
+
* leave `classes`: an audio rule names its sounds HERE, and the legacy path
|
|
15145
|
+
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
15146
|
+
* classified sample) stays exactly as it was for rules that already use it.
|
|
15147
|
+
*
|
|
15148
|
+
* NOT in {@link NC_CONDITION_CATALOG} yet, and that is the sequencing rule
|
|
15149
|
+
* rather than an oversight: the viewer mirrors the descriptor enums BY HAND
|
|
15150
|
+
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
15151
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor STRIPS the
|
|
15152
|
+
* condition fields it does not know when a rule is saved from the phone.
|
|
15153
|
+
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
15154
|
+
* operator loses a rule's conditions by opening it — so the descriptor, the
|
|
15155
|
+
* admin widget and the viewer mirror land together (P2 + P3), and only then
|
|
15156
|
+
* does an audio rule become authorable.
|
|
15157
|
+
*/
|
|
15158
|
+
audio: NcAudioConditionSchema.optional()
|
|
15023
15159
|
});
|
|
15024
15160
|
/** One delivery target: a `notification-output` Target ref + passthrough params. */
|
|
15025
15161
|
var NcRuleTargetSchema = object({
|
|
@@ -15133,6 +15269,73 @@ var NcThrottleSchema = object({
|
|
|
15133
15269
|
*/
|
|
15134
15270
|
granularity: NcThrottleGranularitySchema.optional()
|
|
15135
15271
|
});
|
|
15272
|
+
/**
|
|
15273
|
+
* How long the confirm gate may hold ONE notification, and how big the picture
|
|
15274
|
+
* it judges may be.
|
|
15275
|
+
*
|
|
15276
|
+
* The clamp is the product decision, not a coincidence of the model: p50 was
|
|
15277
|
+
* 4.9 s warm and 15.3 s cold against qwen3-vl-8b, and a notification that
|
|
15278
|
+
* arrives after the visitor has gone is not a notification. 448 px was enough
|
|
15279
|
+
* to score 16/16 on the operator's parking scenario — bigger costs latency and
|
|
15280
|
+
* tokens for pixels the model pools away.
|
|
15281
|
+
*/
|
|
15282
|
+
var NC_CONFIRM_MIN_TIMEOUT_MS = 1e3;
|
|
15283
|
+
var NC_CONFIRM_MAX_TIMEOUT_MS = 2e4;
|
|
15284
|
+
var NC_CONFIRM_DEFAULT_TIMEOUT_MS = 8e3;
|
|
15285
|
+
/** Comparison the model's COUNT must satisfy for the notification to fire. */
|
|
15286
|
+
var NcConfirmExpectSchema = object({
|
|
15287
|
+
op: _enum([
|
|
15288
|
+
">=",
|
|
15289
|
+
">",
|
|
15290
|
+
"<=",
|
|
15291
|
+
"<",
|
|
15292
|
+
"=="
|
|
15293
|
+
]),
|
|
15294
|
+
count: number().int().min(0).max(1e3)
|
|
15295
|
+
});
|
|
15296
|
+
/**
|
|
15297
|
+
* AI CONFIRM — a vision model looks at the picture this notification is about
|
|
15298
|
+
* to ship and says whether it agrees with the rule.
|
|
15299
|
+
*
|
|
15300
|
+
* It runs AFTER the attachments resolve, deliberately: the crop JUDGED is the
|
|
15301
|
+
* crop SHIPPED (D52). A verdict about a different pixel rectangle than the one
|
|
15302
|
+
* on the operator's phone is not a verdict about this notification.
|
|
15303
|
+
*
|
|
15304
|
+
* FAIL-OPEN is the only safe default. A gate that cannot reach its model, or
|
|
15305
|
+
* whose model is cold, must not silence a camera — so `onTimeout: 'fire'` is
|
|
15306
|
+
* the default and every fail-open is COUNTED, because a gate that always fails
|
|
15307
|
+
* open looks in the log exactly like a gate that works.
|
|
15308
|
+
*
|
|
15309
|
+
* Every field is `.optional()` rather than relied on as a Zod default at the
|
|
15310
|
+
* runtime seam: a Zod default does NOT run on the addon→addon cap path (three
|
|
15311
|
+
* production failures in one day), so the gate reads absent as the constant
|
|
15312
|
+
* above rather than trusting a parse it may never have seen.
|
|
15313
|
+
*/
|
|
15314
|
+
var NcConfirmSchema = object({
|
|
15315
|
+
/** Off unless asked for. An absent `confirm` and `enabled:false` are the
|
|
15316
|
+
* same thing, and both mean "deliver exactly as before". */
|
|
15317
|
+
enabled: boolean().default(false),
|
|
15318
|
+
/** Explicit vision profile; absent = the `purpose:'vision'` cluster default. */
|
|
15319
|
+
profileId: string().optional(),
|
|
15320
|
+
/**
|
|
15321
|
+
* The operator's question, in his own words. Absent = a question derived
|
|
15322
|
+
* from the rule (its class and its expectation).
|
|
15323
|
+
*
|
|
15324
|
+
* NEVER composed with text READ OUT OF THE FRAME. The model reads OSD
|
|
15325
|
+
* banners, signage and plates as instructions if you let them reach the
|
|
15326
|
+
* prompt — proven live — so the authoritative contract stays in the system
|
|
15327
|
+
* turn and only rule-authored words land here.
|
|
15328
|
+
*/
|
|
15329
|
+
prompt: string().max(1e3).optional(),
|
|
15330
|
+
/** Fire only when the model's count satisfies this. Absent = the model's
|
|
15331
|
+
* own boolean verdict decides. */
|
|
15332
|
+
expect: NcConfirmExpectSchema.optional(),
|
|
15333
|
+
timeoutMs: number().int().min(NC_CONFIRM_MIN_TIMEOUT_MS).max(NC_CONFIRM_MAX_TIMEOUT_MS).default(NC_CONFIRM_DEFAULT_TIMEOUT_MS),
|
|
15334
|
+
/** What a timeout / unreachable model MEANS. `fire` (default) = fail-open. */
|
|
15335
|
+
onTimeout: _enum(["fire", "suppress"]).default("fire"),
|
|
15336
|
+
/** Longest edge the judged image is downscaled to before it is sent. */
|
|
15337
|
+
maxImagePx: number().int().min(64).max(2048).default(448)
|
|
15338
|
+
});
|
|
15136
15339
|
/** Client-supplied rule fields (server stamps id/createdBy/createdAt/updatedAt). */
|
|
15137
15340
|
var NcRuleInputSchema = object({
|
|
15138
15341
|
name: string().min(1).max(200),
|
|
@@ -15193,7 +15396,13 @@ var NcRuleInputSchema = object({
|
|
|
15193
15396
|
* `{ cap: 'alarm-panel', method: 'arm', args: { mode: 'away' } }`, the same
|
|
15194
15397
|
* shape as every other actuation.
|
|
15195
15398
|
*/
|
|
15196
|
-
actions: NcRuleActionsSchema.optional()
|
|
15399
|
+
actions: NcRuleActionsSchema.optional(),
|
|
15400
|
+
/**
|
|
15401
|
+
* AI CONFIRM — see {@link NcConfirmSchema}. `.optional()`, never defaulted:
|
|
15402
|
+
* a rule that predates the gate must keep delivering byte-for-byte as it
|
|
15403
|
+
* did, and absent is the only way to say that without a migration.
|
|
15404
|
+
*/
|
|
15405
|
+
confirm: NcConfirmSchema.optional()
|
|
15197
15406
|
});
|
|
15198
15407
|
/**
|
|
15199
15408
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -15204,7 +15413,37 @@ var NcRuleInputSchema = object({
|
|
|
15204
15413
|
* still flow through `nc.setRuleTargetEnabled` (owner-checked), never a raw
|
|
15205
15414
|
* `updateRule` patch.
|
|
15206
15415
|
*/
|
|
15207
|
-
var NcRulePatchSchema = NcRuleInputSchema.partial().extend({
|
|
15416
|
+
var NcRulePatchSchema = NcRuleInputSchema.partial().extend({
|
|
15417
|
+
disabledTargetIds: array(string()).optional(),
|
|
15418
|
+
/**
|
|
15419
|
+
* `.partial()` DOES NOT REMOVE A FIELD'S `.default()`.
|
|
15420
|
+
*
|
|
15421
|
+
* It makes the key optional to SUPPLY; the parse still materialises the
|
|
15422
|
+
* default when the key is absent. And `NcRuleStore.update` merges with
|
|
15423
|
+
* `{ ...existing, ...patch }`, so a materialised key OVERWRITES the stored
|
|
15424
|
+
* one — which made every partial edit destructive:
|
|
15425
|
+
*
|
|
15426
|
+
* nc.updateRule({ throttle }) → conditions reset to `{}`
|
|
15427
|
+
* nc.setRuleTargetEnabled(...) → conditions reset to `{}`
|
|
15428
|
+
* setEnabled(ruleId, false) → conditions reset to `{}`
|
|
15429
|
+
*
|
|
15430
|
+
* A rule scoped to one camera and one zone silently became a rule that
|
|
15431
|
+
* matches EVERY event on EVERY camera, and lost its `media` policy
|
|
15432
|
+
* (zoneCrop / gif / clip / frame) and its `priority` at the same time. Seen
|
|
15433
|
+
* live on 2026-08-12: a rule scoped to device 617 fired on 590 and 615
|
|
15434
|
+
* within a minute of a two-field patch.
|
|
15435
|
+
*
|
|
15436
|
+
* So every defaulted field is re-declared here WITHOUT its default. The
|
|
15437
|
+
* inner defaults still apply when the caller DOES send the key — `{}` for
|
|
15438
|
+
* conditions remains a real instruction ("clear them") — and only the
|
|
15439
|
+
* absent key is now genuinely absent.
|
|
15440
|
+
*/
|
|
15441
|
+
enabled: boolean().optional(),
|
|
15442
|
+
conditions: NcConditionsSchema.optional(),
|
|
15443
|
+
media: NcMediaPolicySchema.optional(),
|
|
15444
|
+
throttle: NcThrottleSchema.optional(),
|
|
15445
|
+
priority: number().int().min(1).max(5).optional()
|
|
15446
|
+
});
|
|
15208
15447
|
/** A persisted rule. */
|
|
15209
15448
|
var NcRuleSchema = NcRuleInputSchema.extend({
|
|
15210
15449
|
id: string(),
|
|
@@ -15505,6 +15744,25 @@ var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.partial();
|
|
|
15505
15744
|
* Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
|
|
15506
15745
|
* copy would lie the first time a rule is disabled.
|
|
15507
15746
|
*/
|
|
15747
|
+
/**
|
|
15748
|
+
* Why a device a mode NAMES is nonetheless not armed by it.
|
|
15749
|
+
*
|
|
15750
|
+
* Each value is an existing authority, never a new flag (D62): `muted` is the
|
|
15751
|
+
* per-camera notification switch the Notification Center already owns,
|
|
15752
|
+
* `detection-off` is the device's own detection binding being inactive, and
|
|
15753
|
+
* `offline` is the device manager's liveness. A fourth reason would mean a
|
|
15754
|
+
* fourth authority, and inventing one here is how a panel starts disagreeing
|
|
15755
|
+
* with the switches the operator actually used.
|
|
15756
|
+
*/
|
|
15757
|
+
var NcAlarmSkipReasonSchema = _enum([
|
|
15758
|
+
"muted",
|
|
15759
|
+
"detection-off",
|
|
15760
|
+
"offline"
|
|
15761
|
+
]);
|
|
15762
|
+
var NcAlarmSkippedDeviceSchema = object({
|
|
15763
|
+
deviceId: number().int(),
|
|
15764
|
+
reason: NcAlarmSkipReasonSchema
|
|
15765
|
+
});
|
|
15508
15766
|
var NcAlarmModeCoverageSchema = object({
|
|
15509
15767
|
mode: AlarmArmModeSchema,
|
|
15510
15768
|
/** Enabled rules gated on `armed_<mode>`. Zero means the mode does nothing. */
|
|
@@ -15512,7 +15770,18 @@ var NcAlarmModeCoverageSchema = object({
|
|
|
15512
15770
|
/** At least one covering rule has no device scope, so the mode covers all. */
|
|
15513
15771
|
allDevices: boolean(),
|
|
15514
15772
|
/** Ids named by the covering rules. A SUBSET when `allDevices` is true. */
|
|
15515
|
-
deviceIds: array(number().int())
|
|
15773
|
+
deviceIds: array(number().int()),
|
|
15774
|
+
/**
|
|
15775
|
+
* Devices this mode NAMES but cannot actually arm, each with the switch that
|
|
15776
|
+
* excludes it.
|
|
15777
|
+
*
|
|
15778
|
+
* "Away armed — 12 cameras" is a promise, and a muted camera among those
|
|
15779
|
+
* twelve makes it false in exactly the way nobody notices until an incident.
|
|
15780
|
+
* Defaulted to `[]` so a coverage answer computed before this field existed
|
|
15781
|
+
* still parses as "nothing known to be skipped" rather than failing the whole
|
|
15782
|
+
* alarm tab.
|
|
15783
|
+
*/
|
|
15784
|
+
skippedDevices: array(NcAlarmSkippedDeviceSchema).default([])
|
|
15516
15785
|
});
|
|
15517
15786
|
var NcAlarmConfigSchema = object({
|
|
15518
15787
|
/**
|
|
@@ -23829,7 +24098,19 @@ var RecordingManifestSchema = object({
|
|
|
23829
24098
|
* profiles/subtrees/locations on this node). */
|
|
23830
24099
|
var RecordingDeviceUsageSchema = object({
|
|
23831
24100
|
deviceId: number(),
|
|
23832
|
-
usedBytes: number()
|
|
24101
|
+
usedBytes: number(),
|
|
24102
|
+
/**
|
|
24103
|
+
* Start of this camera's OLDEST indexed segment, across every profile and
|
|
24104
|
+
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
24105
|
+
* only honest answer to "is retention actually holding?" per camera.
|
|
24106
|
+
*
|
|
24107
|
+
* `null` = the camera has no footage. OPTIONAL because a recorder that
|
|
24108
|
+
* predates this field omits it entirely, and a hub whose types carry the
|
|
24109
|
+
* field must keep validating that older provider's payload: the framework
|
|
24110
|
+
* (types) and the addon ship on different trains, and the addon is usually
|
|
24111
|
+
* the later of the two.
|
|
24112
|
+
*/
|
|
24113
|
+
oldestMs: number().nullable().optional()
|
|
23833
24114
|
});
|
|
23834
24115
|
/** Recording storage usage + capacity for one storage location. */
|
|
23835
24116
|
var RecordingLocationUsageSchema = object({
|
|
@@ -23857,6 +24138,57 @@ var RecordingStorageUsageSchema = object({
|
|
|
23857
24138
|
locations: array(RecordingLocationUsageSchema)
|
|
23858
24139
|
});
|
|
23859
24140
|
/**
|
|
24141
|
+
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
24142
|
+
*
|
|
24143
|
+
* The placement plan decides where NEW writes go and moves nothing. A rebalance
|
|
24144
|
+
* is the operator asking for the EXISTING archive to be brought into line with
|
|
24145
|
+
* that plan: one relocate job per (camera, profile) pile that sits on the wrong
|
|
24146
|
+
* location, run FIFO behind the single-flight mover.
|
|
24147
|
+
*
|
|
24148
|
+
* `plan…` and `start…` return the SAME shape deliberately — what the operator
|
|
24149
|
+
* confirms is exactly what gets enqueued, and `jobIds` is the only difference
|
|
24150
|
+
* (empty on the plan).
|
|
24151
|
+
*/
|
|
24152
|
+
var RecordingRebalanceMoveSchema = object({
|
|
24153
|
+
deviceId: number(),
|
|
24154
|
+
profile: string(),
|
|
24155
|
+
fromLocationId: string(),
|
|
24156
|
+
toLocationId: string(),
|
|
24157
|
+
bytes: number(),
|
|
24158
|
+
files: number().int()
|
|
24159
|
+
});
|
|
24160
|
+
/** Why a pile that is out of place is staying there. Every refusal is
|
|
24161
|
+
* reported: a rebalance that silently drops a camera reads exactly like one
|
|
24162
|
+
* that had nothing to do. */
|
|
24163
|
+
var RecordingRebalanceSkipReasonSchema = _enum([
|
|
24164
|
+
"unassigned",
|
|
24165
|
+
"target-not-writable",
|
|
24166
|
+
"below-threshold",
|
|
24167
|
+
"no-headroom"
|
|
24168
|
+
]);
|
|
24169
|
+
var RecordingRebalanceSkipSchema = object({
|
|
24170
|
+
deviceId: number(),
|
|
24171
|
+
profile: string(),
|
|
24172
|
+
fromLocationId: string(),
|
|
24173
|
+
/** The location the plan wants; null when the camera has no assignment. */
|
|
24174
|
+
toLocationId: string().nullable(),
|
|
24175
|
+
bytes: number(),
|
|
24176
|
+
reason: RecordingRebalanceSkipReasonSchema
|
|
24177
|
+
});
|
|
24178
|
+
var RecordingRebalancePlanSchema = object({
|
|
24179
|
+
moves: array(RecordingRebalanceMoveSchema),
|
|
24180
|
+
skipped: array(RecordingRebalanceSkipSchema),
|
|
24181
|
+
bytesToMove: number(),
|
|
24182
|
+
/** Relocate job ids enqueued. Always empty for the plan (dry-run) call. */
|
|
24183
|
+
jobIds: array(string())
|
|
24184
|
+
});
|
|
24185
|
+
var RecordingRebalanceInputSchema = object({
|
|
24186
|
+
/** Copy throttle in MB/s (default 40) — a rebalance is a background chore. */
|
|
24187
|
+
throttleMbps: number().min(1).max(1e3).optional(),
|
|
24188
|
+
/** Ignore piles smaller than this (default 1 GB). */
|
|
24189
|
+
minMoveGb: number().min(0).optional()
|
|
24190
|
+
});
|
|
24191
|
+
/**
|
|
23860
24192
|
* Result of locating footage at a wall-clock instant for one device/profile.
|
|
23861
24193
|
* `segment` carries the covering segment's window; `gap` reports the forward
|
|
23862
24194
|
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
@@ -24019,9 +24351,24 @@ method(object({
|
|
|
24019
24351
|
}), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
24020
24352
|
kind: "mutation",
|
|
24021
24353
|
auth: "admin"
|
|
24354
|
+
}), method(RelocateFootageInputSchema, object({ jobId: string() }), {
|
|
24355
|
+
kind: "mutation",
|
|
24356
|
+
auth: "admin"
|
|
24357
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
24358
|
+
kind: "query",
|
|
24359
|
+
auth: "admin"
|
|
24360
|
+
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
24361
|
+
kind: "mutation",
|
|
24362
|
+
auth: "admin"
|
|
24363
|
+
}), method(RecordingRebalanceInputSchema, RecordingRebalancePlanSchema, {
|
|
24364
|
+
kind: "query",
|
|
24365
|
+
auth: "admin"
|
|
24366
|
+
}), method(RecordingRebalanceInputSchema, RecordingRebalancePlanSchema, {
|
|
24367
|
+
kind: "mutation",
|
|
24368
|
+
auth: "admin"
|
|
24022
24369
|
});
|
|
24023
24370
|
/**
|
|
24024
|
-
* `
|
|
24371
|
+
* `recording-export` cap — render a footage time range into a single downloadable
|
|
24025
24372
|
* MP4 (regular / accelerated / decelerated / timelapse, ± audio), kept for a
|
|
24026
24373
|
* bounded lifetime with a durable history, auto-expiry, and optional
|
|
24027
24374
|
* delete-after-download.
|
|
@@ -29362,6 +29709,12 @@ Object.freeze({
|
|
|
29362
29709
|
addonId: null,
|
|
29363
29710
|
access: "create"
|
|
29364
29711
|
},
|
|
29712
|
+
"recording.cancelRelocateJob": {
|
|
29713
|
+
capName: "recording",
|
|
29714
|
+
capScope: "system",
|
|
29715
|
+
addonId: null,
|
|
29716
|
+
access: "create"
|
|
29717
|
+
},
|
|
29365
29718
|
"recording.cancelStorageMigrationMove": {
|
|
29366
29719
|
capName: "recording",
|
|
29367
29720
|
capScope: "system",
|
|
@@ -29416,6 +29769,12 @@ Object.freeze({
|
|
|
29416
29769
|
addonId: null,
|
|
29417
29770
|
access: "view"
|
|
29418
29771
|
},
|
|
29772
|
+
"recording.listRelocateJobs": {
|
|
29773
|
+
capName: "recording",
|
|
29774
|
+
capScope: "system",
|
|
29775
|
+
addonId: null,
|
|
29776
|
+
access: "view"
|
|
29777
|
+
},
|
|
29419
29778
|
"recording.locateSegment": {
|
|
29420
29779
|
capName: "recording",
|
|
29421
29780
|
capScope: "system",
|
|
@@ -29428,6 +29787,12 @@ Object.freeze({
|
|
|
29428
29787
|
addonId: null,
|
|
29429
29788
|
access: "create"
|
|
29430
29789
|
},
|
|
29790
|
+
"recording.planStorageRebalance": {
|
|
29791
|
+
capName: "recording",
|
|
29792
|
+
capScope: "system",
|
|
29793
|
+
addonId: null,
|
|
29794
|
+
access: "view"
|
|
29795
|
+
},
|
|
29431
29796
|
"recording.pruneFootage": {
|
|
29432
29797
|
capName: "recording",
|
|
29433
29798
|
capScope: "system",
|
|
@@ -29452,6 +29817,12 @@ Object.freeze({
|
|
|
29452
29817
|
addonId: null,
|
|
29453
29818
|
access: "create"
|
|
29454
29819
|
},
|
|
29820
|
+
"recording.relocateFootage": {
|
|
29821
|
+
capName: "recording",
|
|
29822
|
+
capScope: "system",
|
|
29823
|
+
addonId: null,
|
|
29824
|
+
access: "create"
|
|
29825
|
+
},
|
|
29455
29826
|
"recording.renderClip": {
|
|
29456
29827
|
capName: "recording",
|
|
29457
29828
|
capScope: "system",
|
|
@@ -29488,44 +29859,50 @@ Object.freeze({
|
|
|
29488
29859
|
addonId: null,
|
|
29489
29860
|
access: "create"
|
|
29490
29861
|
},
|
|
29862
|
+
"recording.startStorageRebalance": {
|
|
29863
|
+
capName: "recording",
|
|
29864
|
+
capScope: "system",
|
|
29865
|
+
addonId: null,
|
|
29866
|
+
access: "create"
|
|
29867
|
+
},
|
|
29491
29868
|
"recordingExport.cancelExport": {
|
|
29492
|
-
capName: "
|
|
29869
|
+
capName: "recording-export",
|
|
29493
29870
|
capScope: "system",
|
|
29494
29871
|
addonId: null,
|
|
29495
29872
|
access: "create"
|
|
29496
29873
|
},
|
|
29497
29874
|
"recordingExport.createExport": {
|
|
29498
|
-
capName: "
|
|
29875
|
+
capName: "recording-export",
|
|
29499
29876
|
capScope: "system",
|
|
29500
29877
|
addonId: null,
|
|
29501
29878
|
access: "create"
|
|
29502
29879
|
},
|
|
29503
29880
|
"recordingExport.deleteExport": {
|
|
29504
|
-
capName: "
|
|
29881
|
+
capName: "recording-export",
|
|
29505
29882
|
capScope: "system",
|
|
29506
29883
|
addonId: null,
|
|
29507
29884
|
access: "delete"
|
|
29508
29885
|
},
|
|
29509
29886
|
"recordingExport.getDownloadUrl": {
|
|
29510
|
-
capName: "
|
|
29887
|
+
capName: "recording-export",
|
|
29511
29888
|
capScope: "system",
|
|
29512
29889
|
addonId: null,
|
|
29513
29890
|
access: "view"
|
|
29514
29891
|
},
|
|
29515
29892
|
"recordingExport.getExport": {
|
|
29516
|
-
capName: "
|
|
29893
|
+
capName: "recording-export",
|
|
29517
29894
|
capScope: "system",
|
|
29518
29895
|
addonId: null,
|
|
29519
29896
|
access: "view"
|
|
29520
29897
|
},
|
|
29521
29898
|
"recordingExport.listExports": {
|
|
29522
|
-
capName: "
|
|
29899
|
+
capName: "recording-export",
|
|
29523
29900
|
capScope: "system",
|
|
29524
29901
|
addonId: null,
|
|
29525
29902
|
access: "view"
|
|
29526
29903
|
},
|
|
29527
29904
|
"recordingExport.readExportBytes": {
|
|
29528
|
-
capName: "
|
|
29905
|
+
capName: "recording-export",
|
|
29529
29906
|
capScope: "system",
|
|
29530
29907
|
addonId: null,
|
|
29531
29908
|
access: "view"
|
|
@@ -30902,6 +31279,104 @@ var FramerateField = number().int().min(1).max(60);
|
|
|
30902
31279
|
var TargetsField = array(NcRuleTargetSchema).min(1);
|
|
30903
31280
|
var PriorityField = number().int().min(1).max(5);
|
|
30904
31281
|
/**
|
|
31282
|
+
* Explicit override of the DENSE sampling cadence, seconds.
|
|
31283
|
+
*
|
|
31284
|
+
* Absent ⇒ derived as `max(1s, cadenceSec / 30)` — a 30 s base samples every
|
|
31285
|
+
* 1 s inside a detection range. (It was `base / 10` until 2026-08-12, which
|
|
31286
|
+
* made that same base 3 s and rendered a person pass as two frames.)
|
|
31287
|
+
*
|
|
31288
|
+
* THE ARITHMETIC. A detection range of `rangeSec` seconds sampled every
|
|
31289
|
+
* `denseCadenceSec` and played at `framerate` occupies
|
|
31290
|
+
*
|
|
31291
|
+
* outputSeconds = (rangeSec / denseCadenceSec) / framerate
|
|
31292
|
+
*
|
|
31293
|
+
* 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.
|
|
31294
|
+
* Halving this field doubles the frames INSIDE ranges only — the base cadence,
|
|
31295
|
+
* and therefore the length of a quiet night, does not move.
|
|
31296
|
+
*
|
|
31297
|
+
* Floored at {@link TIMELAPSE_DENSE_FLOOR_SEC}: asking for frames faster than
|
|
31298
|
+
* the recording has them returns the same frames, requested twice. Must be
|
|
31299
|
+
* STRICTLY smaller than `cadenceSec` — a dense rate that is not denser renders
|
|
31300
|
+
* a uniform video the operator believes is two-rate — and upsert refuses it
|
|
31301
|
+
* rather than letting the export cap reject the render hours after the window.
|
|
31302
|
+
*/
|
|
31303
|
+
var DenseCadenceSecField = number().min(.1).max(3600);
|
|
31304
|
+
/**
|
|
31305
|
+
* Minimum seconds of OUTPUT video each detection range must occupy.
|
|
31306
|
+
*
|
|
31307
|
+
* The operator-facing form of the arithmetic above: instead of solving for a
|
|
31308
|
+
* cadence, state the dwell and let the renderer solve. `minDwellSec: 1` on a
|
|
31309
|
+
* 30 s base at 12 fps turns a 7 s pass into a full second of video by sampling
|
|
31310
|
+
* that range every ~583 ms.
|
|
31311
|
+
*
|
|
31312
|
+
* ONE CADENCE SERVES EVERY RANGE. `ExportDenseSchema.everyMs` is global — the
|
|
31313
|
+
* ranges are terms of a single ffmpeg `select` expression that cannot vary rate
|
|
31314
|
+
* per term — so the MOST DEMANDING (shortest) range sets the rate and longer
|
|
31315
|
+
* ranges are sampled denser than they need. Per-range cadences require a cap
|
|
31316
|
+
* schema change and are the tracked follow-up.
|
|
31317
|
+
*
|
|
31318
|
+
* A range too short to reach the dwell even at {@link TIMELAPSE_DENSE_FLOOR_SEC}
|
|
31319
|
+
* is rendered with every frame that EXISTS and no more: the guarantee is capped
|
|
31320
|
+
* by real footage, never met by duplicating frames into motion that never
|
|
31321
|
+
* happened.
|
|
31322
|
+
*/
|
|
31323
|
+
var MinDwellSecField = number().min(0).max(60);
|
|
31324
|
+
/**
|
|
31325
|
+
* Caption burned into the notification's preview frame.
|
|
31326
|
+
*
|
|
31327
|
+
* Same `{{var}}` vocabulary as {@link TimelapseTemplateSchema} (`camera`,
|
|
31328
|
+
* `rule`, `from`, `to`) and rendered by the SAME renderer — a second
|
|
31329
|
+
* templating dialect for one field would be a second thing to explain.
|
|
31330
|
+
*
|
|
31331
|
+
* Absent ⇒ {@link DEFAULT_TIMELAPSE_PREVIEW_TEXT}. An EMPTY STRING is the
|
|
31332
|
+
* operator saying "the frame, no caption" — a distinct, reachable answer, and
|
|
31333
|
+
* the reason this is not `.min(1)`.
|
|
31334
|
+
*/
|
|
31335
|
+
var PreviewTextField = string().max(200);
|
|
31336
|
+
/**
|
|
31337
|
+
* Whether the notification's preview is a STILL or a short animation.
|
|
31338
|
+
*
|
|
31339
|
+
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
31340
|
+
* rule)"* — his Scrypted advanced-notifier has a `gifRule`, and a ten-hour
|
|
31341
|
+
* night reads better as three seconds of motion than as one frame of it. Both
|
|
31342
|
+
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
31343
|
+
* simply applies it to a dozen frames sampled across the render and assembles
|
|
31344
|
+
* them.
|
|
31345
|
+
*
|
|
31346
|
+
* `'image'` is the default and stays the default: a GIF costs a dozen ffmpeg
|
|
31347
|
+
* seeks and a palette pass, and no rule that never asked for one should start
|
|
31348
|
+
* paying that on the deploy that shipped it.
|
|
31349
|
+
*
|
|
31350
|
+
* A GIF that cannot be assembled DEGRADES to the still — never to nothing.
|
|
31351
|
+
*/
|
|
31352
|
+
var PreviewModeField = _enum(["image", "gif"]);
|
|
31353
|
+
/**
|
|
31354
|
+
* Which detection classes the notification reports counts for.
|
|
31355
|
+
*
|
|
31356
|
+
* The counts come from the tracks the render ALREADY fetched for its dense-range
|
|
31357
|
+
* plan — no second query — aggregated per class. Absent or empty means "every
|
|
31358
|
+
* class the window actually contained", which is what an operator who never
|
|
31359
|
+
* opened the field wants; a list narrows it (`['person']` on a driveway that
|
|
31360
|
+
* counts cars all night).
|
|
31361
|
+
*
|
|
31362
|
+
* Class names are the tracker's own (`person`, `vehicle`, `animal`, `package`,
|
|
31363
|
+
* …). An unknown name simply never matches and reports nothing — it is not an
|
|
31364
|
+
* error, because a rule may legitimately name a class this camera's model does
|
|
31365
|
+
* not emit.
|
|
31366
|
+
*
|
|
31367
|
+
* The counts are exposed to {@link TimelapseTemplateSchema} as:
|
|
31368
|
+
* - `{{detections}}` — total over the reported classes
|
|
31369
|
+
* - `{{detectionSummary}}` — `2 persone, 1 veicolo`
|
|
31370
|
+
* - `{{count_person}}` / `{{count_vehicle}}` / `{{count_animal}}` / … —
|
|
31371
|
+
* one per class, `count_` + the class name
|
|
31372
|
+
*
|
|
31373
|
+
* With NO custom body template the summary is appended to the derived body, and
|
|
31374
|
+
* only when the total is non-zero: a nightly `0 rilevamenti` is a line nobody
|
|
31375
|
+
* reads. With a custom template the operator owns every word — nothing is
|
|
31376
|
+
* appended, so `{{detectionSummary}}` is how he asks for it.
|
|
31377
|
+
*/
|
|
31378
|
+
var ReportClassesField = array(string().min(1).max(40)).max(20);
|
|
31379
|
+
/**
|
|
30905
31380
|
* Client-supplied timelapse-rule fields. The server stamps id / createdBy /
|
|
30906
31381
|
* createdAt / updatedAt / ownerUserId / lastGeneratedAt — none of them appear
|
|
30907
31382
|
* here (see the ownership note above).
|
|
@@ -30921,9 +31396,30 @@ var TimelapseRuleInputSchema = object({
|
|
|
30921
31396
|
cadenceSec: CadenceSecField.default(15),
|
|
30922
31397
|
/** Output frames per second of the assembled mp4 (predecessor parity). */
|
|
30923
31398
|
framerate: FramerateField.default(10),
|
|
31399
|
+
/**
|
|
31400
|
+
* Explicit dense cadence — see {@link DenseCadenceSecField}. Absent ⇒ derived
|
|
31401
|
+
* as `max(1s, cadenceSec / 30)`, which is what every rule written before this
|
|
31402
|
+
* field gets.
|
|
31403
|
+
*/
|
|
31404
|
+
denseCadenceSec: DenseCadenceSecField.optional(),
|
|
31405
|
+
/** Output-seconds guarantee per detection range — see {@link MinDwellSecField}. */
|
|
31406
|
+
minDwellSec: MinDwellSecField.optional(),
|
|
30924
31407
|
/** `notification-output` targets the finished video/thumbnail is sent to. */
|
|
30925
31408
|
targets: TargetsField,
|
|
30926
31409
|
template: TimelapseTemplateSchema.optional(),
|
|
31410
|
+
/**
|
|
31411
|
+
* Caption on the notification's PREVIEW FRAME — see {@link PreviewTextField}
|
|
31412
|
+
* and {@link DEFAULT_TIMELAPSE_PREVIEW_TEXT}.
|
|
31413
|
+
*
|
|
31414
|
+
* Deliberately NOT part of {@link TimelapseTemplateSchema}: that object is
|
|
31415
|
+
* the notification's title/body, and clearing it (`template: null`) must not
|
|
31416
|
+
* silently clear the caption too.
|
|
31417
|
+
*/
|
|
31418
|
+
previewText: PreviewTextField.optional(),
|
|
31419
|
+
/** Still or animation — see {@link PreviewModeField}. */
|
|
31420
|
+
previewMode: PreviewModeField.default("image"),
|
|
31421
|
+
/** Classes the notification counts — see {@link ReportClassesField}. */
|
|
31422
|
+
reportClasses: ReportClassesField.optional(),
|
|
30927
31423
|
/** Canonical notification priority ordinal (1..5); per-target overridable. */
|
|
30928
31424
|
priority: PriorityField.default(3)
|
|
30929
31425
|
});
|
|
@@ -30934,8 +31430,13 @@ object({
|
|
|
30934
31430
|
schedule: NcScheduleSchema.optional(),
|
|
30935
31431
|
cadenceSec: CadenceSecField.optional(),
|
|
30936
31432
|
framerate: FramerateField.optional(),
|
|
31433
|
+
denseCadenceSec: DenseCadenceSecField.optional(),
|
|
31434
|
+
minDwellSec: MinDwellSecField.optional(),
|
|
30937
31435
|
targets: TargetsField.optional(),
|
|
30938
31436
|
template: TimelapseTemplateSchema.nullable().optional(),
|
|
31437
|
+
previewText: PreviewTextField.optional(),
|
|
31438
|
+
previewMode: PreviewModeField.optional(),
|
|
31439
|
+
reportClasses: ReportClassesField.optional(),
|
|
30939
31440
|
priority: PriorityField.optional()
|
|
30940
31441
|
});
|
|
30941
31442
|
TimelapseRuleInputSchema.extend({
|