@camstack/addon-ai 0.2.9 → 0.2.11
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/addon.js +536 -80
- package/dist/addon.mjs +536 -80
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -43,7 +43,7 @@ let node_fs_promises = require("node:fs/promises");
|
|
|
43
43
|
node_fs_promises = __toESM(node_fs_promises);
|
|
44
44
|
let node_child_process = require("node:child_process");
|
|
45
45
|
let node_net = require("node:net");
|
|
46
|
-
//#region ../types/dist/event-category-
|
|
46
|
+
//#region ../types/dist/event-category-Bz24uP1U.mjs
|
|
47
47
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
48
48
|
EventCategory["SystemBoot"] = "system.boot";
|
|
49
49
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -314,6 +314,19 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
314
314
|
*/
|
|
315
315
|
EventCategory["DeviceStateChanged"] = "device.state-changed";
|
|
316
316
|
/**
|
|
317
|
+
* Frame occupancy for a camera CHANGED — a tracked object was gained or
|
|
318
|
+
* lost. Carries `{ deviceId, totalObjects, byClass, zones }`.
|
|
319
|
+
*
|
|
320
|
+
* Emitted only on a change, so a steady scene is silent. It exists so a
|
|
321
|
+
* client can stop polling `zoneAnalytics.getCurrentSnapshot`: that was the
|
|
322
|
+
* one live badge with no push signal at all, and it cost a request every
|
|
323
|
+
* four seconds per visible camera.
|
|
324
|
+
*
|
|
325
|
+
* Like every event it is telemetry and may be dropped ([D8]) — a consumer
|
|
326
|
+
* keeps a slow reconcile rather than trusting it alone.
|
|
327
|
+
*/
|
|
328
|
+
EventCategory["ZoneAnalyticsOccupancyChanged"] = "zone-analytics.occupancy-changed";
|
|
329
|
+
/**
|
|
317
330
|
* Cap event fired by every device that registers the `battery`
|
|
318
331
|
* capability. Mirrors the cap definition's `onStatusChanged`. Carries
|
|
319
332
|
* `{ deviceId, status: BatteryStatus }`. Subscribers (alert center,
|
|
@@ -7257,35 +7270,22 @@ var ConvertResultSchema = object({
|
|
|
7257
7270
|
*/
|
|
7258
7271
|
var RecordingWeekdaySchema = number().int().min(0).max(6);
|
|
7259
7272
|
var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
7260
|
-
var RecordingScheduleSchema = discriminatedUnion("kind", [object({ kind: literal("always") }), object({
|
|
7261
|
-
kind: literal("timeOfDay"),
|
|
7262
|
-
start: string().regex(HHMM),
|
|
7263
|
-
end: string().regex(HHMM),
|
|
7264
|
-
/** Restrict to these weekdays; omit = every day. */
|
|
7265
|
-
days: array(RecordingWeekdaySchema).optional()
|
|
7266
|
-
})]);
|
|
7267
|
-
var RecordingModeSchema = _enum([
|
|
7268
|
-
"continuous",
|
|
7269
|
-
"onMotion",
|
|
7270
|
-
"onAudioThreshold"
|
|
7271
|
-
]);
|
|
7272
7273
|
/**
|
|
7273
|
-
*
|
|
7274
|
-
*
|
|
7275
|
-
* - `off` —
|
|
7276
|
-
* - `events` —
|
|
7277
|
-
*
|
|
7278
|
-
* - `continuous` — record 24/7 within the schedule.
|
|
7274
|
+
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
7275
|
+
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
7276
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
7277
|
+
* - `events` — every band records around triggers only.
|
|
7278
|
+
* - `continuous` — at least one band records continuously.
|
|
7279
7279
|
*
|
|
7280
|
-
*
|
|
7281
|
-
*
|
|
7280
|
+
* NEVER authored: the recorder stamps it from the authoritative `bands` on
|
|
7281
|
+
* every save (`activeModeForConfig`). Writing it has no effect.
|
|
7282
7282
|
*/
|
|
7283
7283
|
var RecordingStorageModeSchema = _enum([
|
|
7284
7284
|
"off",
|
|
7285
7285
|
"events",
|
|
7286
7286
|
"continuous"
|
|
7287
7287
|
]);
|
|
7288
|
-
/** Which detectors trigger an `events`-mode
|
|
7288
|
+
/** Which detectors trigger an `events`-mode band. */
|
|
7289
7289
|
var RecordingTriggersSchema = object({
|
|
7290
7290
|
motion: boolean().optional(),
|
|
7291
7291
|
audioThresholdDbfs: number().optional()
|
|
@@ -7321,18 +7321,6 @@ var RecordingBandSchema = object({
|
|
|
7321
7321
|
preBufferSec: number().min(0).optional(),
|
|
7322
7322
|
postBufferSec: number().min(0).optional()
|
|
7323
7323
|
});
|
|
7324
|
-
var RecordingRuleSchema = object({
|
|
7325
|
-
schedule: RecordingScheduleSchema,
|
|
7326
|
-
mode: RecordingModeSchema,
|
|
7327
|
-
/** Seconds of footage to retain BEFORE a trigger (applied at keep/discard). */
|
|
7328
|
-
preBufferSec: number().min(0).default(0),
|
|
7329
|
-
/** Keep recording until this many seconds after the last trigger. */
|
|
7330
|
-
postBufferSec: number().min(0).default(0),
|
|
7331
|
-
/** Each new trigger restarts the post-buffer window. */
|
|
7332
|
-
resetTimeoutOnNewEvent: boolean().default(true),
|
|
7333
|
-
/** onAudioThreshold only — dBFS level that counts as a trigger. */
|
|
7334
|
-
thresholdDbfs: number().optional()
|
|
7335
|
-
});
|
|
7336
7324
|
/**
|
|
7337
7325
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
7338
7326
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -7366,40 +7354,28 @@ var ScrubThumbnailPresetSchema = _enum([
|
|
|
7366
7354
|
/**
|
|
7367
7355
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7368
7356
|
*
|
|
7369
|
-
* `
|
|
7370
|
-
*
|
|
7371
|
-
*
|
|
7372
|
-
*
|
|
7357
|
+
* `bands` is the ONLY authored recording intent: what to record, when, and on
|
|
7358
|
+
* which trigger. `mode` is a derived summary the recorder stamps on save; every
|
|
7359
|
+
* other field is a storage knob (profiles, segment length, retention, scrub).
|
|
7360
|
+
*
|
|
7361
|
+
* STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
|
|
7362
|
+
* `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30.
|
|
7363
|
+
* A stale caller must fail loudly — silently stripping its legacy intent would
|
|
7364
|
+
* persist a band-less config, i.e. silently stop recording the camera.
|
|
7373
7365
|
*/
|
|
7374
7366
|
var RecordingConfigSchema = object({
|
|
7375
7367
|
enabled: boolean(),
|
|
7376
|
-
/**
|
|
7377
|
-
*
|
|
7368
|
+
/** DERIVED summary of `bands`, stamped by the recorder on every save.
|
|
7369
|
+
* Authoring it has no effect — see {@link RecordingStorageModeSchema}. */
|
|
7378
7370
|
mode: RecordingStorageModeSchema.optional(),
|
|
7379
7371
|
profiles: array(CamProfileSchema).optional(),
|
|
7380
7372
|
segmentSeconds: number().int().positive().optional(),
|
|
7381
|
-
/** Shared recording time-bands for `events` & `continuous` — record only when
|
|
7382
|
-
* the wall-clock falls inside one of these windows. Omit or empty = always.
|
|
7383
|
-
* `continuous` compiles to one rule per band; `events` to band × trigger. */
|
|
7384
|
-
schedules: array(RecordingScheduleSchema).optional(),
|
|
7385
|
-
/** Legacy single-band predecessor of `schedules`. Read-compat only — it is
|
|
7386
|
-
* normalized into `schedules` on read and never written going forward. (Not
|
|
7387
|
-
* tagged `@deprecated`: the normalization paths must read it cast-free.) */
|
|
7388
|
-
schedule: RecordingScheduleSchema.optional(),
|
|
7389
|
-
/** `events`-mode only — which detectors trigger a recording. */
|
|
7390
|
-
triggers: RecordingTriggersSchema.optional(),
|
|
7391
|
-
/** `events`-mode only — seconds retained before / after a trigger. */
|
|
7392
|
-
preBufferSec: number().min(0).optional(),
|
|
7393
|
-
postBufferSec: number().min(0).optional(),
|
|
7394
|
-
/** DEPRECATED authoring input; retained for migration/transition. */
|
|
7395
|
-
rules: array(RecordingRuleSchema).optional(),
|
|
7396
7373
|
/**
|
|
7397
|
-
* AUTHORITATIVE mode-per-band recording model
|
|
7398
|
-
*
|
|
7399
|
-
*
|
|
7400
|
-
* derived into bands once via `migrateConfigToBands`.
|
|
7374
|
+
* AUTHORITATIVE mode-per-band recording model — the single source of truth
|
|
7375
|
+
* the recorder's band engine consumes. An empty array = record nothing;
|
|
7376
|
+
* "off" is the absence of a covering band, never a band value.
|
|
7401
7377
|
*/
|
|
7402
|
-
bands: array(RecordingBandSchema).
|
|
7378
|
+
bands: array(RecordingBandSchema).default([]),
|
|
7403
7379
|
retention: RecordingRetentionSchema.optional(),
|
|
7404
7380
|
/**
|
|
7405
7381
|
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
@@ -7407,8 +7383,15 @@ var RecordingConfigSchema = object({
|
|
|
7407
7383
|
* windows only — existing sheets are immutable, and each window's index
|
|
7408
7384
|
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7409
7385
|
*/
|
|
7410
|
-
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7411
|
-
|
|
7386
|
+
scrubThumbnails: ScrubThumbnailPresetSchema.optional(),
|
|
7387
|
+
/**
|
|
7388
|
+
* OPT-IN thumbnail-strip generation for this camera: every keyframe of the
|
|
7389
|
+
* low recording saved as a JPEG (the fast-drag scrub depth), a derived
|
|
7390
|
+
* cache that eviction reclaims with the footage. Absent/false = no strips
|
|
7391
|
+
* are written and scrub reads exact keyframes at every velocity.
|
|
7392
|
+
*/
|
|
7393
|
+
stripsEnabled: boolean().optional()
|
|
7394
|
+
}).strict();
|
|
7412
7395
|
/**
|
|
7413
7396
|
* Ops-log — the durable, append-only operations audit shared by the
|
|
7414
7397
|
* recordings and events management surfaces.
|
|
@@ -7427,7 +7410,8 @@ var OpsLogOpSchema = _enum([
|
|
|
7427
7410
|
"prune",
|
|
7428
7411
|
"manual-delete",
|
|
7429
7412
|
"rescan",
|
|
7430
|
-
"retention-run"
|
|
7413
|
+
"retention-run",
|
|
7414
|
+
"relocate"
|
|
7431
7415
|
]);
|
|
7432
7416
|
/** Why the operation ran. */
|
|
7433
7417
|
var OpsLogReasonSchema = _enum([
|
|
@@ -7466,6 +7450,55 @@ var OpsLogQueryInputSchema = object({
|
|
|
7466
7450
|
limit: number().int().min(1).max(1e3).optional()
|
|
7467
7451
|
});
|
|
7468
7452
|
/**
|
|
7453
|
+
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
7454
|
+
*
|
|
7455
|
+
* One shape shared by the recorder's `relocateFootage` (segments + strips) and
|
|
7456
|
+
* pipeline-analytics' `relocateMedia` (event media blobs) so the admin Data
|
|
7457
|
+
* page renders both movers with one component. Jobs are in-RAM (a restart
|
|
7458
|
+
* forgets them — re-running is safe by construction: copy-if-absent, delete
|
|
7459
|
+
* after verify) and each completed/failed run also lands one durable ops-log
|
|
7460
|
+
* row on the owning addon's surface.
|
|
7461
|
+
*/
|
|
7462
|
+
var RelocateJobStateSchema = _enum([
|
|
7463
|
+
"running",
|
|
7464
|
+
"done",
|
|
7465
|
+
"failed",
|
|
7466
|
+
"cancelled"
|
|
7467
|
+
]);
|
|
7468
|
+
var RelocateJobSchema = object({
|
|
7469
|
+
jobId: string(),
|
|
7470
|
+
state: RelocateJobStateSchema,
|
|
7471
|
+
/** Source location — for media relocation this is informational ('*': rows
|
|
7472
|
+
* move from wherever they are to the target). */
|
|
7473
|
+
fromLocationId: string(),
|
|
7474
|
+
toLocationId: string(),
|
|
7475
|
+
/** Scoped device, or null = every device. */
|
|
7476
|
+
deviceId: number().nullable(),
|
|
7477
|
+
/** What the job moves (owner-addon specific: segments/strips or media). */
|
|
7478
|
+
entities: array(string()),
|
|
7479
|
+
filesMoved: number().int(),
|
|
7480
|
+
bytesMoved: number().int(),
|
|
7481
|
+
/** Total files discovered up front; null while (or when) unknown. */
|
|
7482
|
+
filesTotal: number().int().nullable(),
|
|
7483
|
+
startedAt: number(),
|
|
7484
|
+
finishedAt: number().nullable(),
|
|
7485
|
+
error: string().nullable()
|
|
7486
|
+
});
|
|
7487
|
+
var RelocateFootageInputSchema = object({
|
|
7488
|
+
deviceId: number().optional(),
|
|
7489
|
+
fromLocationId: string(),
|
|
7490
|
+
toLocationId: string(),
|
|
7491
|
+
entities: array(_enum(["segments", "strips"])).optional(),
|
|
7492
|
+
/** Copy throttle in MB/s (default 40) — the drain is a background chore,
|
|
7493
|
+
* never allowed to starve live writers. */
|
|
7494
|
+
throttleMbps: number().min(1).max(1e3).optional()
|
|
7495
|
+
});
|
|
7496
|
+
var RelocateMediaInputSchema = object({
|
|
7497
|
+
deviceId: number().optional(),
|
|
7498
|
+
toLocationId: string(),
|
|
7499
|
+
throttleMbps: number().min(1).max(1e3).optional()
|
|
7500
|
+
});
|
|
7501
|
+
/**
|
|
7469
7502
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
7470
7503
|
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
7471
7504
|
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
@@ -7515,6 +7548,13 @@ var StorageLocationSchema = object({
|
|
|
7515
7548
|
nodeId: string().optional(),
|
|
7516
7549
|
isDefault: boolean().default(false),
|
|
7517
7550
|
isSystem: boolean().default(false),
|
|
7551
|
+
/** COMPUTED at read time by the orchestrator (statfs of the backing volume
|
|
7552
|
+
* for node-local locations it can reach) — never persisted, absent when the
|
|
7553
|
+
* volume is remote/unreachable. The single capacity truth every UI reads. */
|
|
7554
|
+
capacity: object({
|
|
7555
|
+
totalBytes: number(),
|
|
7556
|
+
availableBytes: number()
|
|
7557
|
+
}).nullable().optional(),
|
|
7518
7558
|
createdAt: number(),
|
|
7519
7559
|
updatedAt: number()
|
|
7520
7560
|
});
|
|
@@ -7576,16 +7616,23 @@ var StorageLocationDeclarationSchema = object({
|
|
|
7576
7616
|
* Which node root the seeded `<id>:default` instance is placed under on a
|
|
7577
7617
|
* FRESH install:
|
|
7578
7618
|
* - `'data'` (default) — the node's data dir (`CAMSTACK_DATA` / boot dir),
|
|
7579
|
-
* the appData volume. Right for small/durable data (
|
|
7619
|
+
* the appData volume. Right for small/durable data (logs, models).
|
|
7580
7620
|
* - `'media'` — the dedicated media volume (`CAMSTACK_MEDIA_ROOT`) when that
|
|
7581
7621
|
* env is set, else falls back to the data root. Right for bulky, hot media
|
|
7582
7622
|
* (recordings, event media) that should stay off the appData disk.
|
|
7623
|
+
* - `'backup'` — the dedicated backup volume (`CAMSTACK_BACKUP_ROOT`, default
|
|
7624
|
+
* `/backups` in the image) so archives live on their own mount rather than
|
|
7625
|
+
* filling the appData disk. Falls back to the data root when unset.
|
|
7583
7626
|
*
|
|
7584
7627
|
* Only affects the seeded default's `basePath`; operators can repoint any
|
|
7585
7628
|
* location afterwards, and a `defaultsTo` slot inherits its parent's root
|
|
7586
7629
|
* regardless of this field. Absent (the common case) is treated as `'data'`.
|
|
7587
7630
|
*/
|
|
7588
|
-
defaultRoot: _enum([
|
|
7631
|
+
defaultRoot: _enum([
|
|
7632
|
+
"data",
|
|
7633
|
+
"media",
|
|
7634
|
+
"backup"
|
|
7635
|
+
]).optional()
|
|
7589
7636
|
});
|
|
7590
7637
|
var DecoderStatsSchema = object({
|
|
7591
7638
|
inputFps: number(),
|
|
@@ -8275,7 +8322,8 @@ var NcTaxonomyEntrySchema = object({
|
|
|
8275
8322
|
/** Macro/category parent for grouping ('car' → 'vehicle'); null for a top. */
|
|
8276
8323
|
parentKind: string().nullable()
|
|
8277
8324
|
});
|
|
8278
|
-
|
|
8325
|
+
/** The complete NC picker taxonomy — three grouped buckets. */
|
|
8326
|
+
var NcTaxonomySchema = object({
|
|
8279
8327
|
videoClasses: array(NcTaxonomyEntrySchema),
|
|
8280
8328
|
audioKinds: array(NcTaxonomyEntrySchema),
|
|
8281
8329
|
labels: array(NcTaxonomyEntrySchema)
|
|
@@ -8935,6 +8983,7 @@ var AccessoryKind = {
|
|
|
8935
8983
|
};
|
|
8936
8984
|
AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
|
|
8937
8985
|
DeviceFeature.BatteryOperated;
|
|
8986
|
+
new Set(["devices", "classes"]);
|
|
8938
8987
|
/**
|
|
8939
8988
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
8940
8989
|
* motion-zones, and the detection zones/lines editor all speak this one
|
|
@@ -9093,6 +9142,29 @@ var NcOccupancyConditionSchema = object({
|
|
|
9093
9142
|
count: number().int().min(0).default(1),
|
|
9094
9143
|
sustainSeconds: number().int().min(0).max(3600).default(15)
|
|
9095
9144
|
});
|
|
9145
|
+
/**
|
|
9146
|
+
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
9147
|
+
*
|
|
9148
|
+
* The values are not symmetric, and deliberately so — the absent value has to
|
|
9149
|
+
* mean exactly what every rule authored before this condition existed already
|
|
9150
|
+
* does:
|
|
9151
|
+
* - `enter` — entries and every NON-crossing record (movement state,
|
|
9152
|
+
* package, sensor). Exits are rejected. **This is the absent behaviour**:
|
|
9153
|
+
* an operator who never asked for exits must not start receiving them.
|
|
9154
|
+
* - `exit` — ONLY an exit crossing. A record that is not a crossing at all
|
|
9155
|
+
* fails closed, because "the car left the drive" is a question about a
|
|
9156
|
+
* boundary, not about a detection.
|
|
9157
|
+
* - `any` — no direction filter; entries, exits and non-crossings alike.
|
|
9158
|
+
*
|
|
9159
|
+
* A rule asking for a direction should normally also scope `zones`, which the
|
|
9160
|
+
* engine evaluates against the crossed zone as well as the current membership
|
|
9161
|
+
* (an exit's membership no longer contains the zone it just left).
|
|
9162
|
+
*/
|
|
9163
|
+
var NcCrossingSchema = _enum([
|
|
9164
|
+
"enter",
|
|
9165
|
+
"exit",
|
|
9166
|
+
"any"
|
|
9167
|
+
]);
|
|
9096
9168
|
/** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
|
|
9097
9169
|
var NcZoneConditionSchema = object({
|
|
9098
9170
|
ids: array(string().min(1)).min(1),
|
|
@@ -9117,6 +9189,13 @@ var NcConditionsSchema = object({
|
|
|
9117
9189
|
/** Veto zones — any hit fails the rule. */
|
|
9118
9190
|
zonesExclude: array(string().min(1)).optional(),
|
|
9119
9191
|
/**
|
|
9192
|
+
* Zone-crossing direction. IMMEDIATE only — a crossing is a per-event fact
|
|
9193
|
+
* and a closed track carries none, so a `track-end` rule asking for one
|
|
9194
|
+
* fails closed (use `zones`, which tests `zonesVisited`). ABSENT = `enter`,
|
|
9195
|
+
* which is exactly today's behaviour. See {@link NcCrossingSchema}.
|
|
9196
|
+
*/
|
|
9197
|
+
crossing: NcCrossingSchema.optional(),
|
|
9198
|
+
/**
|
|
9120
9199
|
* Exact (case-insensitive) match on the record's collapsed `label`
|
|
9121
9200
|
* (identity name / plate text / subclass).
|
|
9122
9201
|
*/
|
|
@@ -9251,17 +9330,85 @@ var NcRuleTargetSchema = object({
|
|
|
9251
9330
|
* - `keyFrame` — the clean scene frame (no subject box).
|
|
9252
9331
|
* - `none` — no attachment.
|
|
9253
9332
|
*/
|
|
9254
|
-
|
|
9255
|
-
|
|
9256
|
-
|
|
9257
|
-
|
|
9258
|
-
|
|
9259
|
-
|
|
9333
|
+
/**
|
|
9334
|
+
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
9335
|
+
* conflate it with the selection strategy and betray the request: asking for
|
|
9336
|
+
* the clean scene frame on an object-event owner used to start at
|
|
9337
|
+
* `fullFrameBoxed`, i.e. the annotated frame (2026-07-30).
|
|
9338
|
+
* - `cropped` — the subject, tight. What "who is at the door" wants.
|
|
9339
|
+
* - `full` — the clean scene, no annotation. What "what is going on" wants.
|
|
9340
|
+
* - `boxed` — the scene WITH the detection boxes drawn, for verifying what
|
|
9341
|
+
* the pipeline actually saw.
|
|
9342
|
+
*/
|
|
9343
|
+
var NcMediaFrameSchema = _enum([
|
|
9344
|
+
"cropped",
|
|
9345
|
+
"full",
|
|
9346
|
+
"boxed"
|
|
9347
|
+
]);
|
|
9348
|
+
var NcMediaPolicySchema = object({
|
|
9349
|
+
attach: _enum([
|
|
9350
|
+
"best",
|
|
9351
|
+
"best-matching",
|
|
9352
|
+
"keyFrame",
|
|
9353
|
+
"none"
|
|
9354
|
+
]).default("best"),
|
|
9355
|
+
/** What the still shows. Absent = `cropped` (the historical `best` shape). */
|
|
9356
|
+
frame: NcMediaFrameSchema.optional(),
|
|
9357
|
+
/** Crop the attached still to the rule's condition-zone bbox (padded) —
|
|
9358
|
+
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
9359
|
+
zoneCrop: boolean().optional(),
|
|
9360
|
+
/**
|
|
9361
|
+
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
9362
|
+
* event — NOT from the recording, so the camera does not have to be
|
|
9363
|
+
* recording, and the window sits AROUND the moment instead of a segment
|
|
9364
|
+
* behind it. Fail-closed: a window the ring does not cover contributes no
|
|
9365
|
+
* gif, never a failed notification.
|
|
9366
|
+
*/
|
|
9367
|
+
gif: boolean().optional(),
|
|
9368
|
+
/**
|
|
9369
|
+
* Also attach a short MP4 CLIP of the same cut. Same source and the same
|
|
9370
|
+
* fail-closed rule as `gif`. Prefer it where the backend takes video
|
|
9371
|
+
* (telegram, discord, zentik, webhook); backends that do not are handled by
|
|
9372
|
+
* the degrade engine, which drops the video and keeps the still.
|
|
9373
|
+
*/
|
|
9374
|
+
clip: boolean().optional(),
|
|
9375
|
+
/** Seconds of footage BEFORE / AFTER the event instant. Defaults 3 / 7. */
|
|
9376
|
+
clipPreRollSec: number().int().min(0).max(30).optional(),
|
|
9377
|
+
clipPostRollSec: number().int().min(0).max(30).optional(),
|
|
9378
|
+
/**
|
|
9379
|
+
* Which stream profile the footage is cut from. Absent = the CHEAPEST
|
|
9380
|
+
* assigned profile: a notification is watched on a phone, so the 4K
|
|
9381
|
+
* rendition would burn CPU to produce a file the client downscales anyway.
|
|
9382
|
+
* A profile that is not assigned falls back to the cheapest, and the render
|
|
9383
|
+
* reports which one actually ran.
|
|
9384
|
+
*/
|
|
9385
|
+
profile: CamProfileSchema.optional()
|
|
9386
|
+
});
|
|
9387
|
+
/**
|
|
9388
|
+
* Cooldown GRANULARITY over the subject's class — how much a fired
|
|
9389
|
+
* notification suppresses.
|
|
9390
|
+
* - `shared` (default, and the absent value) — one window for the whole
|
|
9391
|
+
* rule/scope: a cat silences the next dog for `cooldownSec`.
|
|
9392
|
+
* - `per-class` — an independent window per detected class, so cat→dog fires
|
|
9393
|
+
* at once and cat→cat still waits.
|
|
9394
|
+
*
|
|
9395
|
+
* AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
|
|
9396
|
+
* must not be swallowed by a bark's window (the precedent this generalizes —
|
|
9397
|
+
* see `cooldownKey` in the rule engine).
|
|
9398
|
+
*/
|
|
9399
|
+
var NcThrottleGranularitySchema = _enum(["shared", "per-class"]);
|
|
9260
9400
|
/** Throttle — cooldown survives restarts (rebuilt from the outbox on boot). */
|
|
9261
9401
|
var NcThrottleSchema = object({
|
|
9262
9402
|
cooldownSec: number().int().min(0).max(86400).default(60),
|
|
9263
9403
|
/** `rule` = one shared cooldown; `rule-device` = per-camera cooldown. */
|
|
9264
|
-
scope: _enum(["rule", "rule-device"]).default("rule-device")
|
|
9404
|
+
scope: _enum(["rule", "rule-device"]).default("rule-device"),
|
|
9405
|
+
/**
|
|
9406
|
+
* Class granularity of the cooldown key. Optional rather than defaulted:
|
|
9407
|
+
* a Zod default does NOT run on the addon→addon cap path, so a persisted
|
|
9408
|
+
* rule authored before this field simply carries none — and the engine
|
|
9409
|
+
* reads absent as `shared`, the pre-existing behaviour.
|
|
9410
|
+
*/
|
|
9411
|
+
granularity: NcThrottleGranularitySchema.optional()
|
|
9265
9412
|
});
|
|
9266
9413
|
/** Client-supplied rule fields (server stamps id/createdBy/createdAt/updatedAt). */
|
|
9267
9414
|
var NcRuleInputSchema = object({
|
|
@@ -9270,7 +9417,19 @@ var NcRuleInputSchema = object({
|
|
|
9270
9417
|
delivery: NcDeliverySchema,
|
|
9271
9418
|
conditions: NcConditionsSchema.default({}),
|
|
9272
9419
|
schedule: NcScheduleSchema.optional(),
|
|
9273
|
-
|
|
9420
|
+
/** May be empty when `targetUsers` addresses at least one user — the
|
|
9421
|
+
* "at least one addressee" invariant is enforced by the provider, because
|
|
9422
|
+
* a cross-field refine here would break `NcRulePatchSchema.partial()`. */
|
|
9423
|
+
targets: array(NcRuleTargetSchema),
|
|
9424
|
+
/**
|
|
9425
|
+
* USERS this rule addresses in addition to `targets` (Phase 4). At fire
|
|
9426
|
+
* time each user fans out to the personal targets they own
|
|
9427
|
+
* (`config.ownerUserId`), filtered by that user's `allowedDevices` for the
|
|
9428
|
+
* firing camera — a user is never notified about a device they cannot open.
|
|
9429
|
+
* Per-user opt-outs (`disabledTargetIds`) still apply to the fanned-out
|
|
9430
|
+
* targets.
|
|
9431
|
+
*/
|
|
9432
|
+
targetUsers: array(string()).optional(),
|
|
9274
9433
|
media: NcMediaPolicySchema.default({ attach: "best" }),
|
|
9275
9434
|
throttle: NcThrottleSchema.default({
|
|
9276
9435
|
cooldownSec: 60,
|
|
@@ -9357,6 +9516,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
9357
9516
|
"schedule",
|
|
9358
9517
|
"plateMatcher",
|
|
9359
9518
|
"packagePhase",
|
|
9519
|
+
"crossingSelect",
|
|
9360
9520
|
"polygonDraw",
|
|
9361
9521
|
"occupancy"
|
|
9362
9522
|
]),
|
|
@@ -9483,7 +9643,10 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
9483
9643
|
}), object({ results: array(NcTestResultSchema) }), {
|
|
9484
9644
|
kind: "mutation",
|
|
9485
9645
|
auth: "admin"
|
|
9486
|
-
}), method(object({}), object({
|
|
9646
|
+
}), method(object({}), object({
|
|
9647
|
+
catalog: array(NcConditionDescriptorSchema),
|
|
9648
|
+
taxonomy: NcTaxonomySchema.optional()
|
|
9649
|
+
})), method(object({ filter: NcHistoryFilterSchema.default({ limit: 100 }) }), object({ entries: array(NcHistoryEntrySchema) }), { auth: "admin" });
|
|
9487
9650
|
/**
|
|
9488
9651
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
9489
9652
|
*
|
|
@@ -10220,6 +10383,28 @@ method(object({
|
|
|
10220
10383
|
}), object({ success: literal(true) }), {
|
|
10221
10384
|
kind: "mutation",
|
|
10222
10385
|
auth: "admin"
|
|
10386
|
+
}), method(object({
|
|
10387
|
+
deviceId: number(),
|
|
10388
|
+
/** Absent = the LOWEST assigned profile — a notification attachment is
|
|
10389
|
+
* watched on a phone, and the cheap rendition is the right default. */
|
|
10390
|
+
profile: CamProfileSchema.optional(),
|
|
10391
|
+
aroundMs: number(),
|
|
10392
|
+
preRollSec: number().min(0).max(20).default(3),
|
|
10393
|
+
postRollSec: number().min(0).max(20).default(5),
|
|
10394
|
+
format: _enum(["gif", "mp4"]).default("gif"),
|
|
10395
|
+
maxWidth: number().int().min(120).max(1920).default(480),
|
|
10396
|
+
/** GIF only — MP4 keeps the source cadence. */
|
|
10397
|
+
fps: number().int().min(1).max(15).default(5)
|
|
10398
|
+
}), object({
|
|
10399
|
+
base64: string(),
|
|
10400
|
+
mime: string(),
|
|
10401
|
+
bytes: number().int(),
|
|
10402
|
+
/** The profile actually rendered (what the default resolved to). */
|
|
10403
|
+
profile: CamProfileSchema,
|
|
10404
|
+
durationMs: number()
|
|
10405
|
+
}), {
|
|
10406
|
+
kind: "mutation",
|
|
10407
|
+
auth: "admin"
|
|
10223
10408
|
}), method(_void(), array(CameraStreamSchema).readonly()), method(_void(), array(ProfileSlotSchema).readonly()), method(object({ brokerId: string() }), BrokerStatsSchema), method(object({ brokerId: string() }), object({
|
|
10224
10409
|
probed: boolean(),
|
|
10225
10410
|
summary: string()
|
|
@@ -14570,11 +14755,53 @@ var LocationStatSchema = object({
|
|
|
14570
14755
|
fileCount: number(),
|
|
14571
14756
|
present: boolean()
|
|
14572
14757
|
});
|
|
14758
|
+
/**
|
|
14759
|
+
* A backup schedule — the N:M "entry" that binds one cron cadence to a
|
|
14760
|
+
* SET of destination locations. Supersedes the per-location cron on
|
|
14761
|
+
* `BackupDestinationPolicy`: an operator creates a schedule, picks the
|
|
14762
|
+
* `backups` locations it should write to, and the orchestrator fans a
|
|
14763
|
+
* single archive out to all of them when the cron fires.
|
|
14764
|
+
*
|
|
14765
|
+
* `retentionCount` is per-schedule (D-decision 2026-07-28): every
|
|
14766
|
+
* location targeted by this schedule keeps this many archives from
|
|
14767
|
+
* this schedule's runs.
|
|
14768
|
+
*
|
|
14769
|
+
* `dataSources` optionally narrows which top-level state locations
|
|
14770
|
+
* (db, addons, tls, …) are archived; omitted = the orchestrator's
|
|
14771
|
+
* default full set.
|
|
14772
|
+
*/
|
|
14773
|
+
var BackupScheduleSchema = object({
|
|
14774
|
+
/** Stable id. Generated by the orchestrator on first upsert if absent. */
|
|
14775
|
+
id: string(),
|
|
14776
|
+
/** Operator-facing display name. */
|
|
14777
|
+
label: string(),
|
|
14778
|
+
/** 5-field POSIX cron. Empty = disabled cadence (kept for editing). */
|
|
14779
|
+
cron: string(),
|
|
14780
|
+
/** Master on/off toggle for the whole schedule. */
|
|
14781
|
+
enabled: boolean(),
|
|
14782
|
+
/** `backups`-location ids this schedule writes to (fan-out set). */
|
|
14783
|
+
locationIds: array(string()).readonly(),
|
|
14784
|
+
/** Archives kept per targeted location for this schedule. */
|
|
14785
|
+
retentionCount: number().int().min(1).max(1e3),
|
|
14786
|
+
/** Optional subset of source locations to include; omitted = all. */
|
|
14787
|
+
dataSources: array(string()).readonly().optional(),
|
|
14788
|
+
/** ms-epoch of last successful run. */
|
|
14789
|
+
lastRunAt: number().optional(),
|
|
14790
|
+
/** ms-epoch of next computed firing (read-only, filled on list). */
|
|
14791
|
+
nextRunAt: number().optional()
|
|
14792
|
+
});
|
|
14573
14793
|
method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
14574
14794
|
/** Subset of registered `backup-destination` addon ids to write to. */
|
|
14575
14795
|
destinations: array(string()).optional(),
|
|
14576
14796
|
locations: array(string()).optional(),
|
|
14577
|
-
label: string().optional()
|
|
14797
|
+
label: string().optional(),
|
|
14798
|
+
/**
|
|
14799
|
+
* Per-run retention override applied to every targeted
|
|
14800
|
+
* destination. Used by schedule-driven runs (per-entry
|
|
14801
|
+
* retention). Omitted = each destination's own policy
|
|
14802
|
+
* retention (manual runs).
|
|
14803
|
+
*/
|
|
14804
|
+
retentionCount: number().int().min(1).max(1e3).optional()
|
|
14578
14805
|
}).optional(), array(BackupEntrySchema).readonly(), {
|
|
14579
14806
|
kind: "mutation",
|
|
14580
14807
|
auth: "admin"
|
|
@@ -14623,7 +14850,21 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
|
|
|
14623
14850
|
ok: boolean(),
|
|
14624
14851
|
error: string().optional(),
|
|
14625
14852
|
nextRuns: array(number()).readonly()
|
|
14626
|
-
}))
|
|
14853
|
+
})), method(_void(), array(BackupScheduleSchema).readonly(), { auth: "admin" }), method(object({
|
|
14854
|
+
id: string().optional(),
|
|
14855
|
+
label: string(),
|
|
14856
|
+
cron: string(),
|
|
14857
|
+
enabled: boolean(),
|
|
14858
|
+
locationIds: array(string()).readonly(),
|
|
14859
|
+
retentionCount: number().int().min(1).max(1e3),
|
|
14860
|
+
dataSources: array(string()).readonly().optional()
|
|
14861
|
+
}), BackupScheduleSchema, {
|
|
14862
|
+
kind: "mutation",
|
|
14863
|
+
auth: "admin"
|
|
14864
|
+
}), method(object({ id: string() }), _void(), {
|
|
14865
|
+
kind: "mutation",
|
|
14866
|
+
auth: "admin"
|
|
14867
|
+
});
|
|
14627
14868
|
/**
|
|
14628
14869
|
* `broker` — unified pub/sub broker registry, system-scoped collection.
|
|
14629
14870
|
*
|
|
@@ -15758,7 +15999,10 @@ method(object({
|
|
|
15758
15999
|
}), method(object({
|
|
15759
16000
|
deviceId: number(),
|
|
15760
16001
|
caps: array(string()).readonly().optional()
|
|
15761
|
-
}), record(string(), unknown().nullable()))
|
|
16002
|
+
}), record(string(), unknown().nullable())), method(object({
|
|
16003
|
+
deviceIds: array(number()).readonly(),
|
|
16004
|
+
caps: array(string()).readonly().optional()
|
|
16005
|
+
}), record(string(), record(string(), unknown().nullable())));
|
|
15762
16006
|
method(object({ deviceId: number() }), record(string(), record(string(), unknown()))), method(object({
|
|
15763
16007
|
deviceId: number(),
|
|
15764
16008
|
capName: string()
|
|
@@ -16734,6 +16978,36 @@ var TargetKindSchema = object({
|
|
|
16734
16978
|
icon: string(),
|
|
16735
16979
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
16736
16980
|
addonId: string(),
|
|
16981
|
+
/**
|
|
16982
|
+
* URL of the kind's bundled BRAND icon, served by the providing addon over
|
|
16983
|
+
* its own `addon-routes` surface (`/addon/<addonId>/icons/<kind>`). Absent
|
|
16984
|
+
* when the addon bundles no icon for that kind — the client then falls back
|
|
16985
|
+
* to a neutral glyph rather than rendering the raw `icon` NAME as text.
|
|
16986
|
+
*
|
|
16987
|
+
* Root-relative on purpose: it resolves against whatever origin serves a web
|
|
16988
|
+
* client, and a native client joins it onto its own hub base.
|
|
16989
|
+
*
|
|
16990
|
+
* DECLARED here deliberately. It used to travel as an undeclared passthrough
|
|
16991
|
+
* field that survived only because the runtime cap-router forwards provider
|
|
16992
|
+
* output verbatim — so every consumer had to re-declare it by hand to stop
|
|
16993
|
+
* its own Zod parse from stripping it, and the whole arrangement would have
|
|
16994
|
+
* broken silently the moment output validation was tightened anywhere.
|
|
16995
|
+
*/
|
|
16996
|
+
iconUrl: string().optional(),
|
|
16997
|
+
/**
|
|
16998
|
+
* Media type of {@link iconUrl} (`image/svg+xml`, `image/png`, …).
|
|
16999
|
+
*
|
|
17000
|
+
* The server knows this and therefore says it, because the client cannot
|
|
17001
|
+
* safely guess: a React-Native client renders SVG and raster through two
|
|
17002
|
+
* DIFFERENT components (`react-native-svg` vs `expo-image` — expo-image does
|
|
17003
|
+
* not decode SVG on iOS/Android), so without this it silently fell back to a
|
|
17004
|
+
* placeholder glyph for every vector icon while the web build looked fine.
|
|
17005
|
+
*
|
|
17006
|
+
* Absent when {@link iconUrl} is absent, or for a legacy provider that has
|
|
17007
|
+
* not been updated — a client that cannot determine the type should prefer
|
|
17008
|
+
* its raster path, which is the safe default for an unknown image.
|
|
17009
|
+
*/
|
|
17010
|
+
iconMediaType: string().optional(),
|
|
16737
17011
|
configSchema: ConfigSchemaPassthrough,
|
|
16738
17012
|
supportsDiscovery: boolean(),
|
|
16739
17013
|
caps: TargetKindCapsSchema
|
|
@@ -17181,6 +17455,29 @@ var MotionEventSchema = object({
|
|
|
17181
17455
|
* Absent on legacy rows ⇒ treat as `pipeline`.
|
|
17182
17456
|
*/
|
|
17183
17457
|
var DetectionSourceSchema = _enum(["pipeline", "onboard"]);
|
|
17458
|
+
/**
|
|
17459
|
+
* The confirmed zone crossing that produced an object event. Present ONLY on
|
|
17460
|
+
* an event emitted BY a crossing (`zone.enter` / `zone.exit`); a movement-state
|
|
17461
|
+
* event (`object.entering` / `leaving` / `stationary` / `loitering`) and an
|
|
17462
|
+
* appearance event carry none, so a rule asking for a direction fails closed
|
|
17463
|
+
* on them.
|
|
17464
|
+
*
|
|
17465
|
+
* Exactly ONE crossing per event: the emitter turns each confirmed crossing
|
|
17466
|
+
* into its own event, so a frame in which a track enters A while leaving B
|
|
17467
|
+
* produces two events with two directions — never one ambiguous row.
|
|
17468
|
+
*
|
|
17469
|
+
* `zoneId` is load-bearing for an EXIT: the event's `zones` list is the
|
|
17470
|
+
* membership the box has NOW, and by definition it no longer contains the zone
|
|
17471
|
+
* that was just left. Without the id here, a zone-scoped rule could never match
|
|
17472
|
+
* the exit it asked for.
|
|
17473
|
+
*/
|
|
17474
|
+
var ZoneCrossingSchema = object({
|
|
17475
|
+
direction: _enum(["enter", "exit"]),
|
|
17476
|
+
/** Admin zone id crossed. */
|
|
17477
|
+
zoneId: string(),
|
|
17478
|
+
/** Zone display name at crossing time (falls back to the id). */
|
|
17479
|
+
zoneName: string().optional()
|
|
17480
|
+
});
|
|
17184
17481
|
var ObjectEventSchema = object({
|
|
17185
17482
|
...BaseEventFields,
|
|
17186
17483
|
kind: literal("object"),
|
|
@@ -17207,6 +17504,12 @@ var ObjectEventSchema = object({
|
|
|
17207
17504
|
zones: array(string()).readonly().optional(),
|
|
17208
17505
|
/** Omitted in slim projection. */
|
|
17209
17506
|
state: TrackStateSchema.optional(),
|
|
17507
|
+
/**
|
|
17508
|
+
* The zone crossing this event IS, when it is one. Absent on every other
|
|
17509
|
+
* event kind (movement state, appearance, package) — see
|
|
17510
|
+
* {@link ZoneCrossingSchema}. Omitted in slim projection.
|
|
17511
|
+
*/
|
|
17512
|
+
zoneCrossing: ZoneCrossingSchema.optional(),
|
|
17210
17513
|
/** Detection-frame dimensions in pixels — let consumers normalize the
|
|
17211
17514
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
17212
17515
|
frameWidth: number().optional(),
|
|
@@ -17465,6 +17768,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17465
17768
|
}), method(object({ deviceId: number() }), EventPruneCountsSchema, {
|
|
17466
17769
|
kind: "mutation",
|
|
17467
17770
|
auth: "admin"
|
|
17771
|
+
}), method(RelocateMediaInputSchema, object({ jobId: string() }), {
|
|
17772
|
+
kind: "mutation",
|
|
17773
|
+
auth: "admin"
|
|
17774
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
17775
|
+
kind: "query",
|
|
17776
|
+
auth: "admin"
|
|
17777
|
+
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17778
|
+
kind: "mutation",
|
|
17779
|
+
auth: "admin"
|
|
17468
17780
|
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
17469
17781
|
kind: "query",
|
|
17470
17782
|
auth: "admin"
|
|
@@ -19944,6 +20256,17 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
19944
20256
|
*/
|
|
19945
20257
|
priority: number()
|
|
19946
20258
|
})).readonly() });
|
|
20259
|
+
/**
|
|
20260
|
+
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
20261
|
+
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
20262
|
+
* what AUTO currently picks, so the UI can show the effective value either way.
|
|
20263
|
+
*/
|
|
20264
|
+
var NotificationEndpointSchema = object({
|
|
20265
|
+
/** The operator's explicit choice, or null for AUTO. */
|
|
20266
|
+
baseUrl: string().nullable(),
|
|
20267
|
+
/** What the ranking currently resolves to (null when nothing is reachable). */
|
|
20268
|
+
resolved: string().nullable()
|
|
20269
|
+
});
|
|
19947
20270
|
var AllowedAddressesSchema = object({
|
|
19948
20271
|
/**
|
|
19949
20272
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -19966,7 +20289,7 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
19966
20289
|
* to avoid mixed-content blocks in the browser. The public
|
|
19967
20290
|
* tunnel always emits `https://` regardless. */
|
|
19968
20291
|
scheme: _enum(["http", "https"]).optional()
|
|
19969
|
-
}), GetConnectionEndpointsResultSchema), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" });
|
|
20292
|
+
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" });
|
|
19970
20293
|
/**
|
|
19971
20294
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
19972
20295
|
*
|
|
@@ -20765,7 +21088,12 @@ var RecordingDeviceUsageSchema = object({
|
|
|
20765
21088
|
var RecordingLocationUsageSchema = object({
|
|
20766
21089
|
/** StorageLocation id; null for the legacy/degraded single-root fallback. */
|
|
20767
21090
|
locationId: string().nullable(),
|
|
20768
|
-
/**
|
|
21091
|
+
/** Every location id sharing this row's PHYSICAL volume (aliases). One row
|
|
21092
|
+
* is emitted per physical disk (2026-07-29): two locations on one root
|
|
21093
|
+
* previously rendered as two identical "disks" with a nonsensical used
|
|
21094
|
+
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
21095
|
+
locationIds: array(string()).optional(),
|
|
21096
|
+
/** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
|
|
20769
21097
|
usedBytes: number(),
|
|
20770
21098
|
/** Free bytes on the location's volume; null when capacity is unknown (remote). */
|
|
20771
21099
|
availableBytes: number().nullable(),
|
|
@@ -20877,6 +21205,44 @@ method(object({
|
|
|
20877
21205
|
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
20878
21206
|
kind: "query",
|
|
20879
21207
|
auth: "admin"
|
|
21208
|
+
}), method(object({
|
|
21209
|
+
deviceId: number(),
|
|
21210
|
+
aroundMs: number(),
|
|
21211
|
+
preRollSec: number().min(0).max(30).default(2),
|
|
21212
|
+
postRollSec: number().min(0).max(30).default(5),
|
|
21213
|
+
maxWidth: number().int().min(120).max(1280).default(480),
|
|
21214
|
+
fps: number().int().min(1).max(15).default(5)
|
|
21215
|
+
}), object({
|
|
21216
|
+
gifBase64: string(),
|
|
21217
|
+
fromMs: number(),
|
|
21218
|
+
toMs: number()
|
|
21219
|
+
}), {
|
|
21220
|
+
kind: "mutation",
|
|
21221
|
+
auth: "admin"
|
|
21222
|
+
}), method(object({
|
|
21223
|
+
deviceId: number(),
|
|
21224
|
+
aroundMs: number(),
|
|
21225
|
+
preRollSec: number().min(0).max(30).default(3),
|
|
21226
|
+
postRollSec: number().min(0).max(30).default(7),
|
|
21227
|
+
maxWidth: number().int().min(160).max(1920).default(640)
|
|
21228
|
+
}), object({
|
|
21229
|
+
clipBase64: string(),
|
|
21230
|
+
mime: string(),
|
|
21231
|
+
fromMs: number(),
|
|
21232
|
+
toMs: number(),
|
|
21233
|
+
bytes: number().int()
|
|
21234
|
+
}), {
|
|
21235
|
+
kind: "mutation",
|
|
21236
|
+
auth: "admin"
|
|
21237
|
+
}), method(RelocateFootageInputSchema, object({ jobId: string() }), {
|
|
21238
|
+
kind: "mutation",
|
|
21239
|
+
auth: "admin"
|
|
21240
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
21241
|
+
kind: "query",
|
|
21242
|
+
auth: "admin"
|
|
21243
|
+
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
21244
|
+
kind: "mutation",
|
|
21245
|
+
auth: "admin"
|
|
20880
21246
|
});
|
|
20881
21247
|
/**
|
|
20882
21248
|
* `recordingExport` cap — render a footage time range into a single downloadable
|
|
@@ -21790,6 +22156,12 @@ Object.freeze({
|
|
|
21790
22156
|
addonId: null,
|
|
21791
22157
|
access: "delete"
|
|
21792
22158
|
},
|
|
22159
|
+
"backup.deleteSchedule": {
|
|
22160
|
+
capName: "backup",
|
|
22161
|
+
capScope: "system",
|
|
22162
|
+
addonId: null,
|
|
22163
|
+
access: "delete"
|
|
22164
|
+
},
|
|
21793
22165
|
"backup.getEntries": {
|
|
21794
22166
|
capName: "backup",
|
|
21795
22167
|
capScope: "system",
|
|
@@ -21820,6 +22192,12 @@ Object.freeze({
|
|
|
21820
22192
|
addonId: null,
|
|
21821
22193
|
access: "view"
|
|
21822
22194
|
},
|
|
22195
|
+
"backup.listSchedules": {
|
|
22196
|
+
capName: "backup",
|
|
22197
|
+
capScope: "system",
|
|
22198
|
+
addonId: null,
|
|
22199
|
+
access: "view"
|
|
22200
|
+
},
|
|
21823
22201
|
"backup.previewSchedule": {
|
|
21824
22202
|
capName: "backup",
|
|
21825
22203
|
capScope: "system",
|
|
@@ -21844,6 +22222,12 @@ Object.freeze({
|
|
|
21844
22222
|
addonId: null,
|
|
21845
22223
|
access: "create"
|
|
21846
22224
|
},
|
|
22225
|
+
"backup.upsertSchedule": {
|
|
22226
|
+
capName: "backup",
|
|
22227
|
+
capScope: "system",
|
|
22228
|
+
addonId: null,
|
|
22229
|
+
access: "create"
|
|
22230
|
+
},
|
|
21847
22231
|
"battery.wakeForStream": {
|
|
21848
22232
|
capName: "battery",
|
|
21849
22233
|
capScope: "device",
|
|
@@ -22450,6 +22834,12 @@ Object.freeze({
|
|
|
22450
22834
|
addonId: null,
|
|
22451
22835
|
access: "view"
|
|
22452
22836
|
},
|
|
22837
|
+
"deviceManager.getDeviceStatusAggregateBatch": {
|
|
22838
|
+
capName: "device-manager",
|
|
22839
|
+
capScope: "system",
|
|
22840
|
+
addonId: null,
|
|
22841
|
+
access: "view"
|
|
22842
|
+
},
|
|
22453
22843
|
"deviceManager.getLinkedDevices": {
|
|
22454
22844
|
capName: "device-manager",
|
|
22455
22845
|
capScope: "system",
|
|
@@ -23344,6 +23734,12 @@ Object.freeze({
|
|
|
23344
23734
|
addonId: null,
|
|
23345
23735
|
access: "view"
|
|
23346
23736
|
},
|
|
23737
|
+
"localNetwork.getNotificationEndpoint": {
|
|
23738
|
+
capName: "local-network",
|
|
23739
|
+
capScope: "system",
|
|
23740
|
+
addonId: null,
|
|
23741
|
+
access: "view"
|
|
23742
|
+
},
|
|
23347
23743
|
"localNetwork.getPreferred": {
|
|
23348
23744
|
capName: "local-network",
|
|
23349
23745
|
capScope: "system",
|
|
@@ -23368,6 +23764,12 @@ Object.freeze({
|
|
|
23368
23764
|
addonId: null,
|
|
23369
23765
|
access: "create"
|
|
23370
23766
|
},
|
|
23767
|
+
"localNetwork.setNotificationEndpoint": {
|
|
23768
|
+
capName: "local-network",
|
|
23769
|
+
capScope: "system",
|
|
23770
|
+
addonId: null,
|
|
23771
|
+
access: "create"
|
|
23772
|
+
},
|
|
23371
23773
|
"lockControl.lock": {
|
|
23372
23774
|
capName: "lock-control",
|
|
23373
23775
|
capScope: "device",
|
|
@@ -24010,6 +24412,12 @@ Object.freeze({
|
|
|
24010
24412
|
addonId: null,
|
|
24011
24413
|
access: "create"
|
|
24012
24414
|
},
|
|
24415
|
+
"pipelineAnalytics.cancelMediaRelocate": {
|
|
24416
|
+
capName: "pipeline-analytics",
|
|
24417
|
+
capScope: "device",
|
|
24418
|
+
addonId: null,
|
|
24419
|
+
access: "create"
|
|
24420
|
+
},
|
|
24013
24421
|
"pipelineAnalytics.clearTracks": {
|
|
24014
24422
|
capName: "pipeline-analytics",
|
|
24015
24423
|
capScope: "device",
|
|
@@ -24064,6 +24472,12 @@ Object.freeze({
|
|
|
24064
24472
|
addonId: null,
|
|
24065
24473
|
access: "view"
|
|
24066
24474
|
},
|
|
24475
|
+
"pipelineAnalytics.getMediaRelocateStatus": {
|
|
24476
|
+
capName: "pipeline-analytics",
|
|
24477
|
+
capScope: "device",
|
|
24478
|
+
addonId: null,
|
|
24479
|
+
access: "view"
|
|
24480
|
+
},
|
|
24067
24481
|
"pipelineAnalytics.getMotionEvents": {
|
|
24068
24482
|
capName: "pipeline-analytics",
|
|
24069
24483
|
capScope: "device",
|
|
@@ -24136,6 +24550,12 @@ Object.freeze({
|
|
|
24136
24550
|
addonId: null,
|
|
24137
24551
|
access: "create"
|
|
24138
24552
|
},
|
|
24553
|
+
"pipelineAnalytics.relocateMedia": {
|
|
24554
|
+
capName: "pipeline-analytics",
|
|
24555
|
+
capScope: "device",
|
|
24556
|
+
addonId: null,
|
|
24557
|
+
access: "create"
|
|
24558
|
+
},
|
|
24139
24559
|
"pipelineAnalytics.searchObjectEvents": {
|
|
24140
24560
|
capName: "pipeline-analytics",
|
|
24141
24561
|
capScope: "device",
|
|
@@ -24898,6 +25318,12 @@ Object.freeze({
|
|
|
24898
25318
|
addonId: null,
|
|
24899
25319
|
access: "create"
|
|
24900
25320
|
},
|
|
25321
|
+
"recording.cancelRelocate": {
|
|
25322
|
+
capName: "recording",
|
|
25323
|
+
capScope: "system",
|
|
25324
|
+
addonId: null,
|
|
25325
|
+
access: "create"
|
|
25326
|
+
},
|
|
24901
25327
|
"recording.deleteFootprint": {
|
|
24902
25328
|
capName: "recording",
|
|
24903
25329
|
capScope: "system",
|
|
@@ -24928,6 +25354,12 @@ Object.freeze({
|
|
|
24928
25354
|
addonId: null,
|
|
24929
25355
|
access: "view"
|
|
24930
25356
|
},
|
|
25357
|
+
"recording.getRelocateStatus": {
|
|
25358
|
+
capName: "recording",
|
|
25359
|
+
capScope: "system",
|
|
25360
|
+
addonId: null,
|
|
25361
|
+
access: "view"
|
|
25362
|
+
},
|
|
24931
25363
|
"recording.getStorageUsage": {
|
|
24932
25364
|
capName: "recording",
|
|
24933
25365
|
capScope: "system",
|
|
@@ -24958,6 +25390,24 @@ Object.freeze({
|
|
|
24958
25390
|
addonId: null,
|
|
24959
25391
|
access: "view"
|
|
24960
25392
|
},
|
|
25393
|
+
"recording.relocateFootage": {
|
|
25394
|
+
capName: "recording",
|
|
25395
|
+
capScope: "system",
|
|
25396
|
+
addonId: null,
|
|
25397
|
+
access: "create"
|
|
25398
|
+
},
|
|
25399
|
+
"recording.renderClip": {
|
|
25400
|
+
capName: "recording",
|
|
25401
|
+
capScope: "system",
|
|
25402
|
+
addonId: null,
|
|
25403
|
+
access: "create"
|
|
25404
|
+
},
|
|
25405
|
+
"recording.renderGif": {
|
|
25406
|
+
capName: "recording",
|
|
25407
|
+
capScope: "system",
|
|
25408
|
+
addonId: null,
|
|
25409
|
+
access: "create"
|
|
25410
|
+
},
|
|
24961
25411
|
"recording.rescanStorage": {
|
|
24962
25412
|
capName: "recording",
|
|
24963
25413
|
capScope: "system",
|
|
@@ -25552,6 +26002,12 @@ Object.freeze({
|
|
|
25552
26002
|
addonId: null,
|
|
25553
26003
|
access: "create"
|
|
25554
26004
|
},
|
|
26005
|
+
"streamBroker.renderPreBufferClip": {
|
|
26006
|
+
capName: "stream-broker",
|
|
26007
|
+
capScope: "system",
|
|
26008
|
+
addonId: null,
|
|
26009
|
+
access: "create"
|
|
26010
|
+
},
|
|
25555
26011
|
"streamBroker.restartProfile": {
|
|
25556
26012
|
capName: "stream-broker",
|
|
25557
26013
|
capScope: "system",
|