@camstack/addon-post-analysis 1.2.17 → 1.2.19
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/{dist-ggFRVg94.mjs → dist-C41w6Xvl.mjs} +366 -75
- package/dist/{dist-BR-Tbrvb.js → dist-CjwPOJKc.js} +383 -74
- package/dist/embedding-encoder/index.js +1 -1
- package/dist/embedding-encoder/index.mjs +3 -1
- package/dist/{node-BuPMb-ti.mjs → node-BmVBZiOw.mjs} +11 -10
- package/dist/{node-DVltm5ai.js → node-Dwh-F2Zf.js} +2 -1
- package/dist/pipeline-analytics/_stub.js +1 -1
- package/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-rep6ZaCi.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-C0HgiJXz.mjs} +2 -2
- package/dist/pipeline-analytics/{_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Cd6cUNQT.mjs → _virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-54-w8Eqz.mjs} +1 -1
- package/dist/pipeline-analytics/{hostInit-Bxinx42V.mjs → hostInit-DisaD6Xu.mjs} +2 -2
- package/dist/pipeline-analytics/index.js +1875 -179
- package/dist/pipeline-analytics/index.mjs +1875 -181
- package/dist/pipeline-analytics/remoteEntry.js +1 -1
- package/package.json +1 -1
|
@@ -7265,35 +7265,22 @@ var EVENT_PAD_MS = {
|
|
|
7265
7265
|
*/
|
|
7266
7266
|
var RecordingWeekdaySchema = number().int().min(0).max(6);
|
|
7267
7267
|
var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
7268
|
-
var RecordingScheduleSchema = discriminatedUnion("kind", [object({ kind: literal("always") }), object({
|
|
7269
|
-
kind: literal("timeOfDay"),
|
|
7270
|
-
start: string().regex(HHMM),
|
|
7271
|
-
end: string().regex(HHMM),
|
|
7272
|
-
/** Restrict to these weekdays; omit = every day. */
|
|
7273
|
-
days: array(RecordingWeekdaySchema).optional()
|
|
7274
|
-
})]);
|
|
7275
|
-
var RecordingModeSchema = _enum([
|
|
7276
|
-
"continuous",
|
|
7277
|
-
"onMotion",
|
|
7278
|
-
"onAudioThreshold"
|
|
7279
|
-
]);
|
|
7280
7268
|
/**
|
|
7281
|
-
*
|
|
7282
|
-
*
|
|
7283
|
-
* - `off` —
|
|
7284
|
-
* - `events` —
|
|
7285
|
-
*
|
|
7286
|
-
* - `continuous` — record 24/7 within the schedule.
|
|
7269
|
+
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
7270
|
+
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
7271
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
7272
|
+
* - `events` — every band records around triggers only.
|
|
7273
|
+
* - `continuous` — at least one band records continuously.
|
|
7287
7274
|
*
|
|
7288
|
-
*
|
|
7289
|
-
*
|
|
7275
|
+
* NEVER authored: the recorder stamps it from the authoritative `bands` on
|
|
7276
|
+
* every save (`activeModeForConfig`). Writing it has no effect.
|
|
7290
7277
|
*/
|
|
7291
7278
|
var RecordingStorageModeSchema = _enum([
|
|
7292
7279
|
"off",
|
|
7293
7280
|
"events",
|
|
7294
7281
|
"continuous"
|
|
7295
7282
|
]);
|
|
7296
|
-
/** Which detectors trigger an `events`-mode
|
|
7283
|
+
/** Which detectors trigger an `events`-mode band. */
|
|
7297
7284
|
var RecordingTriggersSchema = object({
|
|
7298
7285
|
motion: boolean().optional(),
|
|
7299
7286
|
audioThresholdDbfs: number().optional()
|
|
@@ -7329,18 +7316,6 @@ var RecordingBandSchema = object({
|
|
|
7329
7316
|
preBufferSec: number().min(0).optional(),
|
|
7330
7317
|
postBufferSec: number().min(0).optional()
|
|
7331
7318
|
});
|
|
7332
|
-
var RecordingRuleSchema = object({
|
|
7333
|
-
schedule: RecordingScheduleSchema,
|
|
7334
|
-
mode: RecordingModeSchema,
|
|
7335
|
-
/** Seconds of footage to retain BEFORE a trigger (applied at keep/discard). */
|
|
7336
|
-
preBufferSec: number().min(0).default(0),
|
|
7337
|
-
/** Keep recording until this many seconds after the last trigger. */
|
|
7338
|
-
postBufferSec: number().min(0).default(0),
|
|
7339
|
-
/** Each new trigger restarts the post-buffer window. */
|
|
7340
|
-
resetTimeoutOnNewEvent: boolean().default(true),
|
|
7341
|
-
/** onAudioThreshold only — dBFS level that counts as a trigger. */
|
|
7342
|
-
thresholdDbfs: number().optional()
|
|
7343
|
-
});
|
|
7344
7319
|
/**
|
|
7345
7320
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
7346
7321
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -7374,40 +7349,28 @@ var ScrubThumbnailPresetSchema = _enum([
|
|
|
7374
7349
|
/**
|
|
7375
7350
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7376
7351
|
*
|
|
7377
|
-
* `
|
|
7378
|
-
*
|
|
7379
|
-
*
|
|
7380
|
-
*
|
|
7352
|
+
* `bands` is the ONLY authored recording intent: what to record, when, and on
|
|
7353
|
+
* which trigger. `mode` is a derived summary the recorder stamps on save; every
|
|
7354
|
+
* other field is a storage knob (profiles, segment length, retention, scrub).
|
|
7355
|
+
*
|
|
7356
|
+
* STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
|
|
7357
|
+
* `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30.
|
|
7358
|
+
* A stale caller must fail loudly — silently stripping its legacy intent would
|
|
7359
|
+
* persist a band-less config, i.e. silently stop recording the camera.
|
|
7381
7360
|
*/
|
|
7382
7361
|
var RecordingConfigSchema = object({
|
|
7383
7362
|
enabled: boolean(),
|
|
7384
|
-
/**
|
|
7385
|
-
*
|
|
7363
|
+
/** DERIVED summary of `bands`, stamped by the recorder on every save.
|
|
7364
|
+
* Authoring it has no effect — see {@link RecordingStorageModeSchema}. */
|
|
7386
7365
|
mode: RecordingStorageModeSchema.optional(),
|
|
7387
7366
|
profiles: array(CamProfileSchema).optional(),
|
|
7388
7367
|
segmentSeconds: number().int().positive().optional(),
|
|
7389
|
-
/**
|
|
7390
|
-
*
|
|
7391
|
-
*
|
|
7392
|
-
|
|
7393
|
-
/** Legacy single-band predecessor of `schedules`. Read-compat only — it is
|
|
7394
|
-
* normalized into `schedules` on read and never written going forward. (Not
|
|
7395
|
-
* tagged `@deprecated`: the normalization paths must read it cast-free.) */
|
|
7396
|
-
schedule: RecordingScheduleSchema.optional(),
|
|
7397
|
-
/** `events`-mode only — which detectors trigger a recording. */
|
|
7398
|
-
triggers: RecordingTriggersSchema.optional(),
|
|
7399
|
-
/** `events`-mode only — seconds retained before / after a trigger. */
|
|
7400
|
-
preBufferSec: number().min(0).optional(),
|
|
7401
|
-
postBufferSec: number().min(0).optional(),
|
|
7402
|
-
/** DEPRECATED authoring input; retained for migration/transition. */
|
|
7403
|
-
rules: array(RecordingRuleSchema).optional(),
|
|
7404
|
-
/**
|
|
7405
|
-
* AUTHORITATIVE mode-per-band recording model (recorder). When present it
|
|
7406
|
-
* is the single source of truth; the legacy `mode`/`schedules`/`schedule`/
|
|
7407
|
-
* `triggers`/`rules` fields above are kept for READ-COMPAT only and are
|
|
7408
|
-
* derived into bands once via `migrateConfigToBands`.
|
|
7368
|
+
/**
|
|
7369
|
+
* AUTHORITATIVE mode-per-band recording model — the single source of truth
|
|
7370
|
+
* the recorder's band engine consumes. An empty array = record nothing;
|
|
7371
|
+
* "off" is the absence of a covering band, never a band value.
|
|
7409
7372
|
*/
|
|
7410
|
-
bands: array(RecordingBandSchema).
|
|
7373
|
+
bands: array(RecordingBandSchema).default([]),
|
|
7411
7374
|
retention: RecordingRetentionSchema.optional(),
|
|
7412
7375
|
/**
|
|
7413
7376
|
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
@@ -7415,8 +7378,15 @@ var RecordingConfigSchema = object({
|
|
|
7415
7378
|
* windows only — existing sheets are immutable, and each window's index
|
|
7416
7379
|
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7417
7380
|
*/
|
|
7418
|
-
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7419
|
-
|
|
7381
|
+
scrubThumbnails: ScrubThumbnailPresetSchema.optional(),
|
|
7382
|
+
/**
|
|
7383
|
+
* OPT-IN thumbnail-strip generation for this camera: every keyframe of the
|
|
7384
|
+
* low recording saved as a JPEG (the fast-drag scrub depth), a derived
|
|
7385
|
+
* cache that eviction reclaims with the footage. Absent/false = no strips
|
|
7386
|
+
* are written and scrub reads exact keyframes at every velocity.
|
|
7387
|
+
*/
|
|
7388
|
+
stripsEnabled: boolean().optional()
|
|
7389
|
+
}).strict();
|
|
7420
7390
|
/**
|
|
7421
7391
|
* Ops-log — the durable, append-only operations audit shared by the
|
|
7422
7392
|
* recordings and events management surfaces.
|
|
@@ -7435,7 +7405,8 @@ var OpsLogOpSchema = _enum([
|
|
|
7435
7405
|
"prune",
|
|
7436
7406
|
"manual-delete",
|
|
7437
7407
|
"rescan",
|
|
7438
|
-
"retention-run"
|
|
7408
|
+
"retention-run",
|
|
7409
|
+
"relocate"
|
|
7439
7410
|
]);
|
|
7440
7411
|
/** Why the operation ran. */
|
|
7441
7412
|
var OpsLogReasonSchema = _enum([
|
|
@@ -7474,6 +7445,55 @@ var OpsLogQueryInputSchema = object({
|
|
|
7474
7445
|
limit: number().int().min(1).max(1e3).optional()
|
|
7475
7446
|
});
|
|
7476
7447
|
/**
|
|
7448
|
+
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
7449
|
+
*
|
|
7450
|
+
* One shape shared by the recorder's `relocateFootage` (segments + strips) and
|
|
7451
|
+
* pipeline-analytics' `relocateMedia` (event media blobs) so the admin Data
|
|
7452
|
+
* page renders both movers with one component. Jobs are in-RAM (a restart
|
|
7453
|
+
* forgets them — re-running is safe by construction: copy-if-absent, delete
|
|
7454
|
+
* after verify) and each completed/failed run also lands one durable ops-log
|
|
7455
|
+
* row on the owning addon's surface.
|
|
7456
|
+
*/
|
|
7457
|
+
var RelocateJobStateSchema = _enum([
|
|
7458
|
+
"running",
|
|
7459
|
+
"done",
|
|
7460
|
+
"failed",
|
|
7461
|
+
"cancelled"
|
|
7462
|
+
]);
|
|
7463
|
+
var RelocateJobSchema = object({
|
|
7464
|
+
jobId: string(),
|
|
7465
|
+
state: RelocateJobStateSchema,
|
|
7466
|
+
/** Source location — for media relocation this is informational ('*': rows
|
|
7467
|
+
* move from wherever they are to the target). */
|
|
7468
|
+
fromLocationId: string(),
|
|
7469
|
+
toLocationId: string(),
|
|
7470
|
+
/** Scoped device, or null = every device. */
|
|
7471
|
+
deviceId: number().nullable(),
|
|
7472
|
+
/** What the job moves (owner-addon specific: segments/strips or media). */
|
|
7473
|
+
entities: array(string()),
|
|
7474
|
+
filesMoved: number().int(),
|
|
7475
|
+
bytesMoved: number().int(),
|
|
7476
|
+
/** Total files discovered up front; null while (or when) unknown. */
|
|
7477
|
+
filesTotal: number().int().nullable(),
|
|
7478
|
+
startedAt: number(),
|
|
7479
|
+
finishedAt: number().nullable(),
|
|
7480
|
+
error: string().nullable()
|
|
7481
|
+
});
|
|
7482
|
+
var RelocateFootageInputSchema = object({
|
|
7483
|
+
deviceId: number().optional(),
|
|
7484
|
+
fromLocationId: string(),
|
|
7485
|
+
toLocationId: string(),
|
|
7486
|
+
entities: array(_enum(["segments", "strips"])).optional(),
|
|
7487
|
+
/** Copy throttle in MB/s (default 40) — the drain is a background chore,
|
|
7488
|
+
* never allowed to starve live writers. */
|
|
7489
|
+
throttleMbps: number().min(1).max(1e3).optional()
|
|
7490
|
+
});
|
|
7491
|
+
var RelocateMediaInputSchema = object({
|
|
7492
|
+
deviceId: number().optional(),
|
|
7493
|
+
toLocationId: string(),
|
|
7494
|
+
throttleMbps: number().min(1).max(1e3).optional()
|
|
7495
|
+
});
|
|
7496
|
+
/**
|
|
7477
7497
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
7478
7498
|
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
7479
7499
|
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
@@ -7523,6 +7543,13 @@ var StorageLocationSchema = object({
|
|
|
7523
7543
|
nodeId: string().optional(),
|
|
7524
7544
|
isDefault: boolean().default(false),
|
|
7525
7545
|
isSystem: boolean().default(false),
|
|
7546
|
+
/** COMPUTED at read time by the orchestrator (statfs of the backing volume
|
|
7547
|
+
* for node-local locations it can reach) — never persisted, absent when the
|
|
7548
|
+
* volume is remote/unreachable. The single capacity truth every UI reads. */
|
|
7549
|
+
capacity: object({
|
|
7550
|
+
totalBytes: number(),
|
|
7551
|
+
availableBytes: number()
|
|
7552
|
+
}).nullable().optional(),
|
|
7526
7553
|
createdAt: number(),
|
|
7527
7554
|
updatedAt: number()
|
|
7528
7555
|
});
|
|
@@ -8995,6 +9022,7 @@ var AccessoryKind = {
|
|
|
8995
9022
|
};
|
|
8996
9023
|
AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
|
|
8997
9024
|
DeviceFeature.BatteryOperated;
|
|
9025
|
+
new Set(["devices", "classes"]);
|
|
8998
9026
|
/**
|
|
8999
9027
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
9000
9028
|
* motion-zones, and the detection zones/lines editor all speak this one
|
|
@@ -9311,12 +9339,60 @@ var NcRuleTargetSchema = object({
|
|
|
9311
9339
|
* - `keyFrame` — the clean scene frame (no subject box).
|
|
9312
9340
|
* - `none` — no attachment.
|
|
9313
9341
|
*/
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
|
|
9319
|
-
|
|
9342
|
+
/**
|
|
9343
|
+
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
9344
|
+
* conflate it with the selection strategy and betray the request: asking for
|
|
9345
|
+
* the clean scene frame on an object-event owner used to start at
|
|
9346
|
+
* `fullFrameBoxed`, i.e. the annotated frame (2026-07-30).
|
|
9347
|
+
* - `cropped` — the subject, tight. What "who is at the door" wants.
|
|
9348
|
+
* - `full` — the clean scene, no annotation. What "what is going on" wants.
|
|
9349
|
+
* - `boxed` — the scene WITH the detection boxes drawn, for verifying what
|
|
9350
|
+
* the pipeline actually saw.
|
|
9351
|
+
*/
|
|
9352
|
+
var NcMediaFrameSchema = _enum([
|
|
9353
|
+
"cropped",
|
|
9354
|
+
"full",
|
|
9355
|
+
"boxed"
|
|
9356
|
+
]);
|
|
9357
|
+
var NcMediaPolicySchema = object({
|
|
9358
|
+
attach: _enum([
|
|
9359
|
+
"best",
|
|
9360
|
+
"best-matching",
|
|
9361
|
+
"keyFrame",
|
|
9362
|
+
"none"
|
|
9363
|
+
]).default("best"),
|
|
9364
|
+
/** What the still shows. Absent = `cropped` (the historical `best` shape). */
|
|
9365
|
+
frame: NcMediaFrameSchema.optional(),
|
|
9366
|
+
/** Crop the attached still to the rule's condition-zone bbox (padded) —
|
|
9367
|
+
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
9368
|
+
zoneCrop: boolean().optional(),
|
|
9369
|
+
/**
|
|
9370
|
+
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
9371
|
+
* event — NOT from the recording, so the camera does not have to be
|
|
9372
|
+
* recording, and the window sits AROUND the moment instead of a segment
|
|
9373
|
+
* behind it. Fail-closed: a window the ring does not cover contributes no
|
|
9374
|
+
* gif, never a failed notification.
|
|
9375
|
+
*/
|
|
9376
|
+
gif: boolean().optional(),
|
|
9377
|
+
/**
|
|
9378
|
+
* Also attach a short MP4 CLIP of the same cut. Same source and the same
|
|
9379
|
+
* fail-closed rule as `gif`. Prefer it where the backend takes video
|
|
9380
|
+
* (telegram, discord, zentik, webhook); backends that do not are handled by
|
|
9381
|
+
* the degrade engine, which drops the video and keeps the still.
|
|
9382
|
+
*/
|
|
9383
|
+
clip: boolean().optional(),
|
|
9384
|
+
/** Seconds of footage BEFORE / AFTER the event instant. Defaults 3 / 7. */
|
|
9385
|
+
clipPreRollSec: number().int().min(0).max(30).optional(),
|
|
9386
|
+
clipPostRollSec: number().int().min(0).max(30).optional(),
|
|
9387
|
+
/**
|
|
9388
|
+
* Which stream profile the footage is cut from. Absent = the CHEAPEST
|
|
9389
|
+
* assigned profile: a notification is watched on a phone, so the 4K
|
|
9390
|
+
* rendition would burn CPU to produce a file the client downscales anyway.
|
|
9391
|
+
* A profile that is not assigned falls back to the cheapest, and the render
|
|
9392
|
+
* reports which one actually ran.
|
|
9393
|
+
*/
|
|
9394
|
+
profile: CamProfileSchema.optional()
|
|
9395
|
+
});
|
|
9320
9396
|
/** Throttle — cooldown survives restarts (rebuilt from the outbox on boot). */
|
|
9321
9397
|
var NcThrottleSchema = object({
|
|
9322
9398
|
cooldownSec: number().int().min(0).max(86400).default(60),
|
|
@@ -9330,7 +9406,19 @@ var NcRuleInputSchema = object({
|
|
|
9330
9406
|
delivery: NcDeliverySchema,
|
|
9331
9407
|
conditions: NcConditionsSchema.default({}),
|
|
9332
9408
|
schedule: NcScheduleSchema.optional(),
|
|
9333
|
-
|
|
9409
|
+
/** May be empty when `targetUsers` addresses at least one user — the
|
|
9410
|
+
* "at least one addressee" invariant is enforced by the provider, because
|
|
9411
|
+
* a cross-field refine here would break `NcRulePatchSchema.partial()`. */
|
|
9412
|
+
targets: array(NcRuleTargetSchema),
|
|
9413
|
+
/**
|
|
9414
|
+
* USERS this rule addresses in addition to `targets` (Phase 4). At fire
|
|
9415
|
+
* time each user fans out to the personal targets they own
|
|
9416
|
+
* (`config.ownerUserId`), filtered by that user's `allowedDevices` for the
|
|
9417
|
+
* firing camera — a user is never notified about a device they cannot open.
|
|
9418
|
+
* Per-user opt-outs (`disabledTargetIds`) still apply to the fanned-out
|
|
9419
|
+
* targets.
|
|
9420
|
+
*/
|
|
9421
|
+
targetUsers: array(string()).optional(),
|
|
9334
9422
|
media: NcMediaPolicySchema.default({ attach: "best" }),
|
|
9335
9423
|
throttle: NcThrottleSchema.default({
|
|
9336
9424
|
cooldownSec: 60,
|
|
@@ -9802,7 +9890,20 @@ var notificationRulesCapability = {
|
|
|
9802
9890
|
kind: "mutation",
|
|
9803
9891
|
auth: "admin"
|
|
9804
9892
|
}),
|
|
9805
|
-
|
|
9893
|
+
/**
|
|
9894
|
+
* The machine-readable condition surface a rule editor renders from, plus
|
|
9895
|
+
* the picker VOCABULARY those conditions draw on.
|
|
9896
|
+
*
|
|
9897
|
+
* `taxonomy` is optional so an older provider that only returns `catalog`
|
|
9898
|
+
* still validates; a client that receives none keeps free-text inputs.
|
|
9899
|
+
* It was previously served ONLY on the `nc.getConditionCatalog` bridge
|
|
9900
|
+
* action, which is why the viewer had grouped pickers and the admin UI —
|
|
9901
|
+
* which reaches this cap — was stuck typing `person` from memory.
|
|
9902
|
+
*/
|
|
9903
|
+
getConditionCatalog: method(object({}), object({
|
|
9904
|
+
catalog: array(NcConditionDescriptorSchema),
|
|
9905
|
+
taxonomy: NcTaxonomySchema.optional()
|
|
9906
|
+
})),
|
|
9806
9907
|
/**
|
|
9807
9908
|
* Queryable delivery history — a read-only view over the durable outbox
|
|
9808
9909
|
* (fired rule, subject summary, target, status, timestamps, error on a
|
|
@@ -9886,7 +9987,8 @@ object({
|
|
|
9886
9987
|
template: TimelapseTemplateSchema.nullable().optional(),
|
|
9887
9988
|
priority: PriorityField.optional()
|
|
9888
9989
|
});
|
|
9889
|
-
|
|
9990
|
+
/** A persisted timelapse rule. */
|
|
9991
|
+
var TimelapseRuleSchema = TimelapseRuleInputSchema.extend({
|
|
9890
9992
|
id: string(),
|
|
9891
9993
|
/**
|
|
9892
9994
|
* Ownership/visibility key. Absent = admin/global rule (visible to all).
|
|
@@ -10580,6 +10682,28 @@ method(object({
|
|
|
10580
10682
|
}), object({ success: literal(true) }), {
|
|
10581
10683
|
kind: "mutation",
|
|
10582
10684
|
auth: "admin"
|
|
10685
|
+
}), method(object({
|
|
10686
|
+
deviceId: number(),
|
|
10687
|
+
/** Absent = the LOWEST assigned profile — a notification attachment is
|
|
10688
|
+
* watched on a phone, and the cheap rendition is the right default. */
|
|
10689
|
+
profile: CamProfileSchema.optional(),
|
|
10690
|
+
aroundMs: number(),
|
|
10691
|
+
preRollSec: number().min(0).max(20).default(3),
|
|
10692
|
+
postRollSec: number().min(0).max(20).default(5),
|
|
10693
|
+
format: _enum(["gif", "mp4"]).default("gif"),
|
|
10694
|
+
maxWidth: number().int().min(120).max(1920).default(480),
|
|
10695
|
+
/** GIF only — MP4 keeps the source cadence. */
|
|
10696
|
+
fps: number().int().min(1).max(15).default(5)
|
|
10697
|
+
}), object({
|
|
10698
|
+
base64: string(),
|
|
10699
|
+
mime: string(),
|
|
10700
|
+
bytes: number().int(),
|
|
10701
|
+
/** The profile actually rendered (what the default resolved to). */
|
|
10702
|
+
profile: CamProfileSchema,
|
|
10703
|
+
durationMs: number()
|
|
10704
|
+
}), {
|
|
10705
|
+
kind: "mutation",
|
|
10706
|
+
auth: "admin"
|
|
10583
10707
|
}), method(_void(), array(CameraStreamSchema).readonly()), method(_void(), array(ProfileSlotSchema).readonly()), method(object({ brokerId: string() }), BrokerStatsSchema), method(object({ brokerId: string() }), object({
|
|
10584
10708
|
probed: boolean(),
|
|
10585
10709
|
summary: string()
|
|
@@ -17192,6 +17316,36 @@ var TargetKindSchema = object({
|
|
|
17192
17316
|
icon: string(),
|
|
17193
17317
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
17194
17318
|
addonId: string(),
|
|
17319
|
+
/**
|
|
17320
|
+
* URL of the kind's bundled BRAND icon, served by the providing addon over
|
|
17321
|
+
* its own `addon-routes` surface (`/addon/<addonId>/icons/<kind>`). Absent
|
|
17322
|
+
* when the addon bundles no icon for that kind — the client then falls back
|
|
17323
|
+
* to a neutral glyph rather than rendering the raw `icon` NAME as text.
|
|
17324
|
+
*
|
|
17325
|
+
* Root-relative on purpose: it resolves against whatever origin serves a web
|
|
17326
|
+
* client, and a native client joins it onto its own hub base.
|
|
17327
|
+
*
|
|
17328
|
+
* DECLARED here deliberately. It used to travel as an undeclared passthrough
|
|
17329
|
+
* field that survived only because the runtime cap-router forwards provider
|
|
17330
|
+
* output verbatim — so every consumer had to re-declare it by hand to stop
|
|
17331
|
+
* its own Zod parse from stripping it, and the whole arrangement would have
|
|
17332
|
+
* broken silently the moment output validation was tightened anywhere.
|
|
17333
|
+
*/
|
|
17334
|
+
iconUrl: string().optional(),
|
|
17335
|
+
/**
|
|
17336
|
+
* Media type of {@link iconUrl} (`image/svg+xml`, `image/png`, …).
|
|
17337
|
+
*
|
|
17338
|
+
* The server knows this and therefore says it, because the client cannot
|
|
17339
|
+
* safely guess: a React-Native client renders SVG and raster through two
|
|
17340
|
+
* DIFFERENT components (`react-native-svg` vs `expo-image` — expo-image does
|
|
17341
|
+
* not decode SVG on iOS/Android), so without this it silently fell back to a
|
|
17342
|
+
* placeholder glyph for every vector icon while the web build looked fine.
|
|
17343
|
+
*
|
|
17344
|
+
* Absent when {@link iconUrl} is absent, or for a legacy provider that has
|
|
17345
|
+
* not been updated — a client that cannot determine the type should prefer
|
|
17346
|
+
* its raster path, which is the safe default for an unknown image.
|
|
17347
|
+
*/
|
|
17348
|
+
iconMediaType: string().optional(),
|
|
17195
17349
|
configSchema: ConfigSchemaPassthrough,
|
|
17196
17350
|
supportsDiscovery: boolean(),
|
|
17197
17351
|
caps: TargetKindCapsSchema
|
|
@@ -18044,6 +18198,23 @@ var pipelineAnalyticsCapability = {
|
|
|
18044
18198
|
}),
|
|
18045
18199
|
/** The events ops-log rows (newest-first), optionally scoped to one camera.
|
|
18046
18200
|
* Backed by a declared pipeline-analytics SQLite collection. */
|
|
18201
|
+
/**
|
|
18202
|
+
* Move event-media blobs onto `toLocationId` (entity-routing spec Phase
|
|
18203
|
+
* 4): per-row copy → stamp row.locationId → delete old blob. Rows already
|
|
18204
|
+
* at the target are skipped, so a re-run resumes. Single-flight.
|
|
18205
|
+
*/
|
|
18206
|
+
relocateMedia: method(RelocateMediaInputSchema, object({ jobId: string() }), {
|
|
18207
|
+
kind: "mutation",
|
|
18208
|
+
auth: "admin"
|
|
18209
|
+
}),
|
|
18210
|
+
getMediaRelocateStatus: method(object({}), array(RelocateJobSchema).readonly(), {
|
|
18211
|
+
kind: "query",
|
|
18212
|
+
auth: "admin"
|
|
18213
|
+
}),
|
|
18214
|
+
cancelMediaRelocate: method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
18215
|
+
kind: "mutation",
|
|
18216
|
+
auth: "admin"
|
|
18217
|
+
}),
|
|
18047
18218
|
listOpsLog: method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
18048
18219
|
kind: "query",
|
|
18049
18220
|
auth: "admin"
|
|
@@ -20623,6 +20794,17 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
20623
20794
|
*/
|
|
20624
20795
|
priority: number()
|
|
20625
20796
|
})).readonly() });
|
|
20797
|
+
/**
|
|
20798
|
+
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
20799
|
+
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
20800
|
+
* what AUTO currently picks, so the UI can show the effective value either way.
|
|
20801
|
+
*/
|
|
20802
|
+
var NotificationEndpointSchema = object({
|
|
20803
|
+
/** The operator's explicit choice, or null for AUTO. */
|
|
20804
|
+
baseUrl: string().nullable(),
|
|
20805
|
+
/** What the ranking currently resolves to (null when nothing is reachable). */
|
|
20806
|
+
resolved: string().nullable()
|
|
20807
|
+
});
|
|
20626
20808
|
var AllowedAddressesSchema = object({
|
|
20627
20809
|
/**
|
|
20628
20810
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -20645,7 +20827,7 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
20645
20827
|
* to avoid mixed-content blocks in the browser. The public
|
|
20646
20828
|
* tunnel always emits `https://` regardless. */
|
|
20647
20829
|
scheme: _enum(["http", "https"]).optional()
|
|
20648
|
-
}), GetConnectionEndpointsResultSchema), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" });
|
|
20830
|
+
}), 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" });
|
|
20649
20831
|
/**
|
|
20650
20832
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
20651
20833
|
*
|
|
@@ -21478,7 +21660,12 @@ var RecordingDeviceUsageSchema = object({
|
|
|
21478
21660
|
var RecordingLocationUsageSchema = object({
|
|
21479
21661
|
/** StorageLocation id; null for the legacy/degraded single-root fallback. */
|
|
21480
21662
|
locationId: string().nullable(),
|
|
21481
|
-
/**
|
|
21663
|
+
/** Every location id sharing this row's PHYSICAL volume (aliases). One row
|
|
21664
|
+
* is emitted per physical disk (2026-07-29): two locations on one root
|
|
21665
|
+
* previously rendered as two identical "disks" with a nonsensical used
|
|
21666
|
+
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
21667
|
+
locationIds: array(string()).optional(),
|
|
21668
|
+
/** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
|
|
21482
21669
|
usedBytes: number(),
|
|
21483
21670
|
/** Free bytes on the location's volume; null when capacity is unknown (remote). */
|
|
21484
21671
|
availableBytes: number().nullable(),
|
|
@@ -21590,6 +21777,44 @@ method(object({
|
|
|
21590
21777
|
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
21591
21778
|
kind: "query",
|
|
21592
21779
|
auth: "admin"
|
|
21780
|
+
}), method(object({
|
|
21781
|
+
deviceId: number(),
|
|
21782
|
+
aroundMs: number(),
|
|
21783
|
+
preRollSec: number().min(0).max(30).default(2),
|
|
21784
|
+
postRollSec: number().min(0).max(30).default(5),
|
|
21785
|
+
maxWidth: number().int().min(120).max(1280).default(480),
|
|
21786
|
+
fps: number().int().min(1).max(15).default(5)
|
|
21787
|
+
}), object({
|
|
21788
|
+
gifBase64: string(),
|
|
21789
|
+
fromMs: number(),
|
|
21790
|
+
toMs: number()
|
|
21791
|
+
}), {
|
|
21792
|
+
kind: "mutation",
|
|
21793
|
+
auth: "admin"
|
|
21794
|
+
}), method(object({
|
|
21795
|
+
deviceId: number(),
|
|
21796
|
+
aroundMs: number(),
|
|
21797
|
+
preRollSec: number().min(0).max(30).default(3),
|
|
21798
|
+
postRollSec: number().min(0).max(30).default(7),
|
|
21799
|
+
maxWidth: number().int().min(160).max(1920).default(640)
|
|
21800
|
+
}), object({
|
|
21801
|
+
clipBase64: string(),
|
|
21802
|
+
mime: string(),
|
|
21803
|
+
fromMs: number(),
|
|
21804
|
+
toMs: number(),
|
|
21805
|
+
bytes: number().int()
|
|
21806
|
+
}), {
|
|
21807
|
+
kind: "mutation",
|
|
21808
|
+
auth: "admin"
|
|
21809
|
+
}), method(RelocateFootageInputSchema, object({ jobId: string() }), {
|
|
21810
|
+
kind: "mutation",
|
|
21811
|
+
auth: "admin"
|
|
21812
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
21813
|
+
kind: "query",
|
|
21814
|
+
auth: "admin"
|
|
21815
|
+
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
21816
|
+
kind: "mutation",
|
|
21817
|
+
auth: "admin"
|
|
21593
21818
|
});
|
|
21594
21819
|
/**
|
|
21595
21820
|
* `recordingExport` cap — render a footage time range into a single downloadable
|
|
@@ -24075,6 +24300,12 @@ Object.freeze({
|
|
|
24075
24300
|
addonId: null,
|
|
24076
24301
|
access: "view"
|
|
24077
24302
|
},
|
|
24303
|
+
"localNetwork.getNotificationEndpoint": {
|
|
24304
|
+
capName: "local-network",
|
|
24305
|
+
capScope: "system",
|
|
24306
|
+
addonId: null,
|
|
24307
|
+
access: "view"
|
|
24308
|
+
},
|
|
24078
24309
|
"localNetwork.getPreferred": {
|
|
24079
24310
|
capName: "local-network",
|
|
24080
24311
|
capScope: "system",
|
|
@@ -24099,6 +24330,12 @@ Object.freeze({
|
|
|
24099
24330
|
addonId: null,
|
|
24100
24331
|
access: "create"
|
|
24101
24332
|
},
|
|
24333
|
+
"localNetwork.setNotificationEndpoint": {
|
|
24334
|
+
capName: "local-network",
|
|
24335
|
+
capScope: "system",
|
|
24336
|
+
addonId: null,
|
|
24337
|
+
access: "create"
|
|
24338
|
+
},
|
|
24102
24339
|
"lockControl.lock": {
|
|
24103
24340
|
capName: "lock-control",
|
|
24104
24341
|
capScope: "device",
|
|
@@ -24741,6 +24978,12 @@ Object.freeze({
|
|
|
24741
24978
|
addonId: null,
|
|
24742
24979
|
access: "create"
|
|
24743
24980
|
},
|
|
24981
|
+
"pipelineAnalytics.cancelMediaRelocate": {
|
|
24982
|
+
capName: "pipeline-analytics",
|
|
24983
|
+
capScope: "device",
|
|
24984
|
+
addonId: null,
|
|
24985
|
+
access: "create"
|
|
24986
|
+
},
|
|
24744
24987
|
"pipelineAnalytics.clearTracks": {
|
|
24745
24988
|
capName: "pipeline-analytics",
|
|
24746
24989
|
capScope: "device",
|
|
@@ -24795,6 +25038,12 @@ Object.freeze({
|
|
|
24795
25038
|
addonId: null,
|
|
24796
25039
|
access: "view"
|
|
24797
25040
|
},
|
|
25041
|
+
"pipelineAnalytics.getMediaRelocateStatus": {
|
|
25042
|
+
capName: "pipeline-analytics",
|
|
25043
|
+
capScope: "device",
|
|
25044
|
+
addonId: null,
|
|
25045
|
+
access: "view"
|
|
25046
|
+
},
|
|
24798
25047
|
"pipelineAnalytics.getMotionEvents": {
|
|
24799
25048
|
capName: "pipeline-analytics",
|
|
24800
25049
|
capScope: "device",
|
|
@@ -24867,6 +25116,12 @@ Object.freeze({
|
|
|
24867
25116
|
addonId: null,
|
|
24868
25117
|
access: "create"
|
|
24869
25118
|
},
|
|
25119
|
+
"pipelineAnalytics.relocateMedia": {
|
|
25120
|
+
capName: "pipeline-analytics",
|
|
25121
|
+
capScope: "device",
|
|
25122
|
+
addonId: null,
|
|
25123
|
+
access: "create"
|
|
25124
|
+
},
|
|
24870
25125
|
"pipelineAnalytics.searchObjectEvents": {
|
|
24871
25126
|
capName: "pipeline-analytics",
|
|
24872
25127
|
capScope: "device",
|
|
@@ -25629,6 +25884,12 @@ Object.freeze({
|
|
|
25629
25884
|
addonId: null,
|
|
25630
25885
|
access: "create"
|
|
25631
25886
|
},
|
|
25887
|
+
"recording.cancelRelocate": {
|
|
25888
|
+
capName: "recording",
|
|
25889
|
+
capScope: "system",
|
|
25890
|
+
addonId: null,
|
|
25891
|
+
access: "create"
|
|
25892
|
+
},
|
|
25632
25893
|
"recording.deleteFootprint": {
|
|
25633
25894
|
capName: "recording",
|
|
25634
25895
|
capScope: "system",
|
|
@@ -25659,6 +25920,12 @@ Object.freeze({
|
|
|
25659
25920
|
addonId: null,
|
|
25660
25921
|
access: "view"
|
|
25661
25922
|
},
|
|
25923
|
+
"recording.getRelocateStatus": {
|
|
25924
|
+
capName: "recording",
|
|
25925
|
+
capScope: "system",
|
|
25926
|
+
addonId: null,
|
|
25927
|
+
access: "view"
|
|
25928
|
+
},
|
|
25662
25929
|
"recording.getStorageUsage": {
|
|
25663
25930
|
capName: "recording",
|
|
25664
25931
|
capScope: "system",
|
|
@@ -25689,6 +25956,24 @@ Object.freeze({
|
|
|
25689
25956
|
addonId: null,
|
|
25690
25957
|
access: "view"
|
|
25691
25958
|
},
|
|
25959
|
+
"recording.relocateFootage": {
|
|
25960
|
+
capName: "recording",
|
|
25961
|
+
capScope: "system",
|
|
25962
|
+
addonId: null,
|
|
25963
|
+
access: "create"
|
|
25964
|
+
},
|
|
25965
|
+
"recording.renderClip": {
|
|
25966
|
+
capName: "recording",
|
|
25967
|
+
capScope: "system",
|
|
25968
|
+
addonId: null,
|
|
25969
|
+
access: "create"
|
|
25970
|
+
},
|
|
25971
|
+
"recording.renderGif": {
|
|
25972
|
+
capName: "recording",
|
|
25973
|
+
capScope: "system",
|
|
25974
|
+
addonId: null,
|
|
25975
|
+
access: "create"
|
|
25976
|
+
},
|
|
25692
25977
|
"recording.rescanStorage": {
|
|
25693
25978
|
capName: "recording",
|
|
25694
25979
|
capScope: "system",
|
|
@@ -26283,6 +26568,12 @@ Object.freeze({
|
|
|
26283
26568
|
addonId: null,
|
|
26284
26569
|
access: "create"
|
|
26285
26570
|
},
|
|
26571
|
+
"streamBroker.renderPreBufferClip": {
|
|
26572
|
+
capName: "stream-broker",
|
|
26573
|
+
capScope: "system",
|
|
26574
|
+
addonId: null,
|
|
26575
|
+
access: "create"
|
|
26576
|
+
},
|
|
26286
26577
|
"streamBroker.restartProfile": {
|
|
26287
26578
|
capName: "stream-broker",
|
|
26288
26579
|
capScope: "system",
|
|
@@ -26990,12 +27281,30 @@ Object.defineProperty(exports, "OpsLogEntrySchema", {
|
|
|
26990
27281
|
return OpsLogEntrySchema;
|
|
26991
27282
|
}
|
|
26992
27283
|
});
|
|
27284
|
+
Object.defineProperty(exports, "TimelapseRuleInputSchema", {
|
|
27285
|
+
enumerable: true,
|
|
27286
|
+
get: function() {
|
|
27287
|
+
return TimelapseRuleInputSchema;
|
|
27288
|
+
}
|
|
27289
|
+
});
|
|
27290
|
+
Object.defineProperty(exports, "TimelapseRuleSchema", {
|
|
27291
|
+
enumerable: true,
|
|
27292
|
+
get: function() {
|
|
27293
|
+
return TimelapseRuleSchema;
|
|
27294
|
+
}
|
|
27295
|
+
});
|
|
26993
27296
|
Object.defineProperty(exports, "__toESM", {
|
|
26994
27297
|
enumerable: true,
|
|
26995
27298
|
get: function() {
|
|
26996
27299
|
return __toESM;
|
|
26997
27300
|
}
|
|
26998
27301
|
});
|
|
27302
|
+
Object.defineProperty(exports, "_enum", {
|
|
27303
|
+
enumerable: true,
|
|
27304
|
+
get: function() {
|
|
27305
|
+
return _enum;
|
|
27306
|
+
}
|
|
27307
|
+
});
|
|
26999
27308
|
Object.defineProperty(exports, "addonWidgetsSourceCapability", {
|
|
27000
27309
|
enumerable: true,
|
|
27001
27310
|
get: function() {
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-CjwPOJKc.js");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
7
7
|
let node_fs$1 = require_dist.__toESM(node_fs, 1);
|
|
8
8
|
node_fs = require_dist.__toESM(node_fs);
|