@camstack/addon-post-analysis 1.2.152 → 1.2.154
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-DSg_jDMt.mjs → dist-D6iC--Gh.mjs} +346 -2
- package/dist/{dist-Bw6cidiJ.js → dist-Ds6x9Agm.js} +351 -1
- package/dist/embedding-encoder/index.js +1 -1
- package/dist/embedding-encoder/index.mjs +1 -1
- package/dist/pipeline-analytics/_stub.js +1 -1
- package/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-DTO1HvN7.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-CnB4y-xY.mjs} +3 -3
- package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DdANt7Ia.mjs +26 -0
- package/dist/pipeline-analytics/{hostInit-r4RyRXk7.mjs → hostInit-BqnSOQO7.mjs} +3 -3
- package/dist/pipeline-analytics/index.js +1387 -198
- package/dist/pipeline-analytics/index.mjs +1387 -198
- package/dist/pipeline-analytics/remoteEntry.js +1 -1
- package/package.json +1 -1
- package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DxVeMmnD.mjs +0 -26
|
@@ -8288,6 +8288,20 @@ var RelocateJobSchema = object({
|
|
|
8288
8288
|
* in its row, not in its name, so `MediaRelocateEngine` never reconciles one.
|
|
8289
8289
|
*/
|
|
8290
8290
|
rowsReconciled: number().int().nonnegative().optional(),
|
|
8291
|
+
/**
|
|
8292
|
+
* Rows this run FORGOT because the file they name is not on disk.
|
|
8293
|
+
*
|
|
8294
|
+
* The mover derived the path from the row's own fields and `stat`ed it; an
|
|
8295
|
+
* ENOENT there is a per-path confirmation that the segment is gone (D296),
|
|
8296
|
+
* and the durable row is dropped through the same channel eviction uses. It
|
|
8297
|
+
* is reported for the same reason `rowsReconciled` is: this is a durable
|
|
8298
|
+
* mutation nobody asked for, and a migration that quietly erases hour rows is
|
|
8299
|
+
* the same failure as one that quietly skips them (D295).
|
|
8300
|
+
*
|
|
8301
|
+
* The production drain of 2026-08-30 would have reported 11 074 here — the
|
|
8302
|
+
* ledger claimed 5.65 GB of footage that no longer existed.
|
|
8303
|
+
*/
|
|
8304
|
+
rowsForgotten: number().int().nonnegative().optional(),
|
|
8291
8305
|
startedAt: number(),
|
|
8292
8306
|
finishedAt: number().nullable(),
|
|
8293
8307
|
error: string().nullable()
|
|
@@ -8651,6 +8665,91 @@ var RelocateResidueSchema = object({
|
|
|
8651
8665
|
segments: number().int().nonnegative(),
|
|
8652
8666
|
bytes: number().int().nonnegative()
|
|
8653
8667
|
}).nullable();
|
|
8668
|
+
/**
|
|
8669
|
+
* Ask one location whether its durable hour rows describe the disk — the walk
|
|
8670
|
+
* (D319).
|
|
8671
|
+
*
|
|
8672
|
+
* `apply` DEFAULTS TO FALSE and that default is the product: the operator's
|
|
8673
|
+
* missing tool is the question, and the dry run is how they sanity-check the
|
|
8674
|
+
* destructive run before authorising it.
|
|
8675
|
+
*/
|
|
8676
|
+
var LedgerWalkInputSchema = object({
|
|
8677
|
+
locationId: string().min(1),
|
|
8678
|
+
/** Forget the confirmed-absent rows, rather than only counting them. */
|
|
8679
|
+
apply: boolean().optional(),
|
|
8680
|
+
/** Narrow to one camera. */
|
|
8681
|
+
deviceId: number().int().positive().optional(),
|
|
8682
|
+
/** Narrow to these recording profiles; empty/absent = every profile. */
|
|
8683
|
+
profiles: array(string().min(1)).optional()
|
|
8684
|
+
});
|
|
8685
|
+
/** Why a whole walk did nothing. Every one leaves the ledger untouched. */
|
|
8686
|
+
var LedgerWalkRefusalSchema = _enum([
|
|
8687
|
+
"location-unknown",
|
|
8688
|
+
"source-writable",
|
|
8689
|
+
"no-ledger",
|
|
8690
|
+
"archive-unreadable",
|
|
8691
|
+
"anchor-absent",
|
|
8692
|
+
"anchor-unreadable",
|
|
8693
|
+
"anchor-moved"
|
|
8694
|
+
]);
|
|
8695
|
+
_enum([
|
|
8696
|
+
"live-tail",
|
|
8697
|
+
"listing-error",
|
|
8698
|
+
"path-mismatch",
|
|
8699
|
+
"durable-refused"
|
|
8700
|
+
]);
|
|
8701
|
+
/** Every skip reason, always present, always a number — so a reason that never
|
|
8702
|
+
* fired reports as zero rather than absent and the report shape is constant
|
|
8703
|
+
* between passes. Spelled out rather than `z.record` for exactly that. */
|
|
8704
|
+
var LedgerWalkSkipCountsSchema = object({
|
|
8705
|
+
"live-tail": number().int().nonnegative(),
|
|
8706
|
+
"listing-error": number().int().nonnegative(),
|
|
8707
|
+
"path-mismatch": number().int().nonnegative(),
|
|
8708
|
+
"durable-refused": number().int().nonnegative()
|
|
8709
|
+
});
|
|
8710
|
+
/** One camera's share of a walk, so a report names cameras and not rows. */
|
|
8711
|
+
var LedgerWalkDeviceReportSchema = object({
|
|
8712
|
+
deviceId: number().int(),
|
|
8713
|
+
hoursWalked: number().int().nonnegative(),
|
|
8714
|
+
hoursMissing: number().int().nonnegative(),
|
|
8715
|
+
ghostSegments: number().int().nonnegative(),
|
|
8716
|
+
ghostBytes: number().int().nonnegative(),
|
|
8717
|
+
forgottenSegments: number().int().nonnegative(),
|
|
8718
|
+
orphanFiles: number().int().nonnegative()
|
|
8719
|
+
});
|
|
8720
|
+
/**
|
|
8721
|
+
* What one walk claimed, listed, found and (only when armed) forgot.
|
|
8722
|
+
*
|
|
8723
|
+
* `archiveSegments` is the **M** and `segmentsClaimed` the **N** (D295), so a
|
|
8724
|
+
* walk that saw a fraction of the location is visible in its own report rather
|
|
8725
|
+
* than in the absence of one.
|
|
8726
|
+
*/
|
|
8727
|
+
var LedgerWalkReportSchema = object({
|
|
8728
|
+
locationId: string(),
|
|
8729
|
+
applied: boolean(),
|
|
8730
|
+
refused: LedgerWalkRefusalSchema.nullable(),
|
|
8731
|
+
archiveSegments: number().int().nonnegative().nullable(),
|
|
8732
|
+
archiveBytes: number().int().nonnegative().nullable(),
|
|
8733
|
+
hoursClaimed: number().int().nonnegative(),
|
|
8734
|
+
hoursWalked: number().int().nonnegative(),
|
|
8735
|
+
hoursMissing: number().int().nonnegative(),
|
|
8736
|
+
/** `readdir` calls issued — the cost, stated in the unit that is paid. */
|
|
8737
|
+
listings: number().int().nonnegative(),
|
|
8738
|
+
segmentsClaimed: number().int().nonnegative(),
|
|
8739
|
+
ghostSegments: number().int().nonnegative(),
|
|
8740
|
+
ghostBytes: number().int().nonnegative(),
|
|
8741
|
+
ghostHoursWhole: number().int().nonnegative(),
|
|
8742
|
+
forgottenSegments: number().int().nonnegative(),
|
|
8743
|
+
forgottenBytes: number().int().nonnegative(),
|
|
8744
|
+
/** Files under a claimed hour that no durable row names. Never deleted. */
|
|
8745
|
+
orphanFiles: number().int().nonnegative(),
|
|
8746
|
+
orphanSample: array(string()).readonly(),
|
|
8747
|
+
hoursSkipped: number().int().nonnegative(),
|
|
8748
|
+
skippedByReason: LedgerWalkSkipCountsSchema,
|
|
8749
|
+
/** The walk stopped at its per-pass hour bound with claims unwalked. */
|
|
8750
|
+
bounded: boolean(),
|
|
8751
|
+
byDevice: array(LedgerWalkDeviceReportSchema).readonly()
|
|
8752
|
+
});
|
|
8654
8753
|
/** How many rows a media pass would still act on against a given target — the
|
|
8655
8754
|
* media lane's denominator AND its residue, from ONE derivation so the two can
|
|
8656
8755
|
* never disagree. `null` = the count could not be taken. */
|
|
@@ -20026,13 +20125,15 @@ var ListGroupsPageSchema = object({
|
|
|
20026
20125
|
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
20027
20126
|
nextCursor: string().nullable()
|
|
20028
20127
|
});
|
|
20128
|
+
var KEY_EVENTS_DEFAULT_LIMIT = 50;
|
|
20129
|
+
var KEY_EVENTS_MAX_LIMIT = 200;
|
|
20029
20130
|
var KeyEventQueryInput = object({
|
|
20030
20131
|
deviceId: number(),
|
|
20031
20132
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
20032
20133
|
since: number(),
|
|
20033
20134
|
/** Window upper bound (track firstSeen ≤ until). */
|
|
20034
20135
|
until: number(),
|
|
20035
|
-
limit: number().int().min(1).max(
|
|
20136
|
+
limit: number().int().min(1).max(KEY_EVENTS_MAX_LIMIT).default(KEY_EVENTS_DEFAULT_LIMIT),
|
|
20036
20137
|
/** Drop tracks scoring below this importance. */
|
|
20037
20138
|
minImportance: number().min(0).max(1).optional(),
|
|
20038
20139
|
/** Restrict to a single class (e.g. 'person'). */
|
|
@@ -20054,6 +20155,32 @@ var KeyEventSchema = object({
|
|
|
20054
20155
|
...TrackFlagFields,
|
|
20055
20156
|
...TrackRetrainFields
|
|
20056
20157
|
});
|
|
20158
|
+
/** `getKeyEvents`' window and filters, asked of a SET of cameras at once. */
|
|
20159
|
+
var KeyEventBatchQueryInput = object({
|
|
20160
|
+
deviceIds: array(number()).min(1).max(200),
|
|
20161
|
+
since: number(),
|
|
20162
|
+
until: number(),
|
|
20163
|
+
/** Applied PER CAMERA, exactly as `getKeyEvents.limit` is — never a total
|
|
20164
|
+
* across the set, which would let a busy camera starve a quiet one of its
|
|
20165
|
+
* rows and change what the merged feed contains. */
|
|
20166
|
+
limit: number().int().min(1).max(KEY_EVENTS_MAX_LIMIT).default(KEY_EVENTS_DEFAULT_LIMIT),
|
|
20167
|
+
minImportance: number().min(0).max(1).optional(),
|
|
20168
|
+
classFilter: string().optional()
|
|
20169
|
+
});
|
|
20170
|
+
/**
|
|
20171
|
+
* One camera's key events in a batch answer.
|
|
20172
|
+
*
|
|
20173
|
+
* The row exists for every requested id. `getKeyEvents` degrades to `[]` on
|
|
20174
|
+
* error rather than throwing, so a camera whose store read failed and one with
|
|
20175
|
+
* no events in the window were ALREADY indistinguishable per camera — the
|
|
20176
|
+
* batch does not make that worse, and the row keeps the deviceId the single
|
|
20177
|
+
* method's output never carried (the caller used to stamp it from the fan-out
|
|
20178
|
+
* key, which only worked because there was one query per camera).
|
|
20179
|
+
*/
|
|
20180
|
+
var KeyEventsForDeviceSchema = object({
|
|
20181
|
+
deviceId: number(),
|
|
20182
|
+
events: array(KeyEventSchema).readonly()
|
|
20183
|
+
});
|
|
20057
20184
|
object({
|
|
20058
20185
|
trackId: string(),
|
|
20059
20186
|
className: string(),
|
|
@@ -20125,6 +20252,50 @@ var EventStoreFootprintSchema = object({
|
|
|
20125
20252
|
totalBytes: number().int(),
|
|
20126
20253
|
devices: array(EventStoreDeviceFootprintSchema).readonly()
|
|
20127
20254
|
});
|
|
20255
|
+
/** Event-media footprint for one {@link MediaFileKind}. */
|
|
20256
|
+
var EventMediaKindFootprintSchema = object({
|
|
20257
|
+
kind: MediaFileKindEnum,
|
|
20258
|
+
/** Media rows of this kind. */
|
|
20259
|
+
rows: number().int(),
|
|
20260
|
+
/** Bytes on disk held by those rows. */
|
|
20261
|
+
bytes: number().int()
|
|
20262
|
+
});
|
|
20263
|
+
/**
|
|
20264
|
+
* The media footprint broken down by KIND — the axis a deletion decision
|
|
20265
|
+
* actually turns on.
|
|
20266
|
+
*
|
|
20267
|
+
* A byte total says how much there is; it cannot say what is safe to remove.
|
|
20268
|
+
* The deletable set (the periodic `snapshot` filmstrip, the surplus per-edge
|
|
20269
|
+
* motion stills) and the keep set (`firstFrame`, rolling `lastFrame`,
|
|
20270
|
+
* `thumbnail`/`thumbnailSmall`, `keyFrame`/`keyFrameSmall`, the face/plate
|
|
20271
|
+
* buffers, gallery media, the CLIP `crop`) are distinguished by `kind` and by
|
|
20272
|
+
* nothing else, so sizing a deletion means summing per kind.
|
|
20273
|
+
*
|
|
20274
|
+
* ## Why `unaccounted*` exists
|
|
20275
|
+
*
|
|
20276
|
+
* `kinds` is enumerated from {@link MediaFileKindEnum} — the closed set the
|
|
20277
|
+
* writers use — and summed one kind at a time. `totalRows` / `totalBytes` come
|
|
20278
|
+
* from a SEPARATE unfiltered aggregate over the same rows, never from adding
|
|
20279
|
+
* `kinds` up. A row whose stored `kind` is not in the enum (written by a
|
|
20280
|
+
* retired code path, or by a version that knew a kind this one does not) would
|
|
20281
|
+
* otherwise vanish from the total silently, and an operator would delete
|
|
20282
|
+
* against a denominator smaller than the disk.
|
|
20283
|
+
*
|
|
20284
|
+
* `unaccountedRows` / `unaccountedBytes` are the difference. They are normally
|
|
20285
|
+
* zero; a non-zero value is a real finding and must be shown, not rounded away.
|
|
20286
|
+
*/
|
|
20287
|
+
var EventMediaKindBreakdownSchema = object({
|
|
20288
|
+
/** Every media row in scope, from one unfiltered aggregate. */
|
|
20289
|
+
totalRows: number().int(),
|
|
20290
|
+
/** Every media byte in scope, from that same aggregate. */
|
|
20291
|
+
totalBytes: number().int(),
|
|
20292
|
+
/** Per-kind footprint, ordered by bytes descending. */
|
|
20293
|
+
kinds: array(EventMediaKindFootprintSchema).readonly(),
|
|
20294
|
+
/** `totalRows` minus the summed `kinds` rows — see the schema note. */
|
|
20295
|
+
unaccountedRows: number().int(),
|
|
20296
|
+
/** `totalBytes` minus the summed `kinds` bytes — see the schema note. */
|
|
20297
|
+
unaccountedBytes: number().int()
|
|
20298
|
+
});
|
|
20128
20299
|
/** Per-kind counts returned by the event-prune / device-delete mutations. */
|
|
20129
20300
|
var EventPruneCountsSchema = object({
|
|
20130
20301
|
motion: number().int(),
|
|
@@ -20358,6 +20529,21 @@ var pipelineAnalyticsCapability = {
|
|
|
20358
20529
|
* scored on-read (no write). Degrades to `[]` on error.
|
|
20359
20530
|
*/
|
|
20360
20531
|
getKeyEvents: method(KeyEventQueryInput, array(KeyEventSchema).readonly()),
|
|
20532
|
+
/**
|
|
20533
|
+
* The same ranking, for a SET of cameras, in one round trip.
|
|
20534
|
+
*
|
|
20535
|
+
* The Detection Intelligence events feed asks this of every selected
|
|
20536
|
+
* camera and re-asks on a 30s timer. Fanned out client-side that is N
|
|
20537
|
+
* round trips — browser → hub → post-analysis — for N independent,
|
|
20538
|
+
* already-indexed store queries. Batched, the queries are unchanged and
|
|
20539
|
+
* run concurrently INSIDE the owner; only the transport collapses.
|
|
20540
|
+
*
|
|
20541
|
+
* Deliberately per-device rather than pre-merged: `limit` stays per
|
|
20542
|
+
* camera (a total would let a busy camera starve a quiet one), and a
|
|
20543
|
+
* caller that renders one camera's lane needs to know which camera a row
|
|
20544
|
+
* came from. `getKeyEvents` stays for single-device callers.
|
|
20545
|
+
*/
|
|
20546
|
+
getKeyEventsBatch: method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()),
|
|
20361
20547
|
/** Server-side bucketed event counts for the 24-hour timeline.
|
|
20362
20548
|
* Returns one entry per non-empty bucket; empty buckets are omitted. */
|
|
20363
20549
|
getEventDensity: method(object({
|
|
@@ -20506,6 +20692,22 @@ var pipelineAnalyticsCapability = {
|
|
|
20506
20692
|
auth: "admin"
|
|
20507
20693
|
}),
|
|
20508
20694
|
/**
|
|
20695
|
+
* The same media footprint, broken down by {@link MediaFileKind} instead of
|
|
20696
|
+
* by camera — fleet-wide, or for one camera with `deviceId`.
|
|
20697
|
+
*
|
|
20698
|
+
* Separate from {@link getEventStoreFootprint} rather than a field on it:
|
|
20699
|
+
* the two answer different questions on different axes, the per-camera one
|
|
20700
|
+
* is what the management table renders on every open, and nothing should
|
|
20701
|
+
* pay for a per-kind pass to draw it. See
|
|
20702
|
+
* {@link EventMediaKindBreakdownSchema} for why `unaccounted*` exists —
|
|
20703
|
+
* `kinds` is enumerated, `totalBytes` is not, and the gap must be visible
|
|
20704
|
+
* to anyone sizing a deletion against it.
|
|
20705
|
+
*/
|
|
20706
|
+
getEventMediaFootprintByKind: method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
|
|
20707
|
+
kind: "query",
|
|
20708
|
+
auth: "admin"
|
|
20709
|
+
}),
|
|
20710
|
+
/**
|
|
20509
20711
|
* Cluster-wide prune of events older than `olderThanMs` (exclusive) across
|
|
20510
20712
|
* every camera, deleting each event's media in lockstep. Logged to the
|
|
20511
20713
|
* events ops-log with `reason` (default `'retention'`). Returns the summed
|
|
@@ -22798,6 +23000,20 @@ method(object({
|
|
|
22798
23000
|
error: string().optional()
|
|
22799
23001
|
}), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
|
|
22800
23002
|
providerId: string(),
|
|
23003
|
+
/**
|
|
23004
|
+
* The location this config is an UNSAVED edit of, when there is one.
|
|
23005
|
+
*
|
|
23006
|
+
* `listLocations` replaces every declared secret with the redaction
|
|
23007
|
+
* sentinel, so the edit modal's form state holds the sentinel for any
|
|
23008
|
+
* credential the operator did not retype — and posting that here
|
|
23009
|
+
* without a way to resolve it makes the provider try to authenticate
|
|
23010
|
+
* as `__camstack_redacted__` and report the operator's own working
|
|
23011
|
+
* password as wrong. Given this id, the orchestrator restores each
|
|
23012
|
+
* sentinel from the stored config (same rule as `upsertLocation`)
|
|
23013
|
+
* before dispatching. Omitted by the "Add location" wizard, where
|
|
23014
|
+
* every value was typed just now and nothing is stored yet.
|
|
23015
|
+
*/
|
|
23016
|
+
locationId: string().optional(),
|
|
22801
23017
|
config: record(string(), unknown())
|
|
22802
23018
|
}), object({
|
|
22803
23019
|
ok: boolean(),
|
|
@@ -30222,6 +30438,9 @@ method(object({
|
|
|
30222
30438
|
}), method(RelocateResidueInputSchema, RelocateResidueSchema, {
|
|
30223
30439
|
kind: "query",
|
|
30224
30440
|
auth: "admin"
|
|
30441
|
+
}), method(LedgerWalkInputSchema, LedgerWalkReportSchema, {
|
|
30442
|
+
kind: "mutation",
|
|
30443
|
+
auth: "admin"
|
|
30225
30444
|
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
30226
30445
|
kind: "mutation",
|
|
30227
30446
|
auth: "admin"
|
|
@@ -30638,6 +30857,25 @@ var SceneMonitorStatusSchema = object({
|
|
|
30638
30857
|
monitors: array(SceneMonitorSchema),
|
|
30639
30858
|
lastFetchedAt: number()
|
|
30640
30859
|
});
|
|
30860
|
+
/**
|
|
30861
|
+
* One camera's row in a `listScenesBatch` answer.
|
|
30862
|
+
*
|
|
30863
|
+
* `status` is NULLABLE and the nullability is the whole point. `scene-monitor`
|
|
30864
|
+
* is a `defaultActive` wrapper, so every camera is asked; a camera whose
|
|
30865
|
+
* provider is absent (pipeline-analytics not deployed, the post-processing node
|
|
30866
|
+
* down) cannot answer, and that is not the same fact as a camera with no scenes
|
|
30867
|
+
* configured. Fanned out per camera the difference was visible — one query
|
|
30868
|
+
* errored while the others resolved — and a batch that returned only the rows
|
|
30869
|
+
* it managed would have destroyed it, silently, by making an unreachable camera
|
|
30870
|
+
* indistinguishable from one that answered `monitors: []`.
|
|
30871
|
+
*
|
|
30872
|
+
* So: EVERY requested deviceId gets a row. `status: null` means "this camera
|
|
30873
|
+
* could not be read"; `status.monitors: []` means "read, and it has none".
|
|
30874
|
+
*/
|
|
30875
|
+
var SceneMonitorStatusForDeviceSchema = object({
|
|
30876
|
+
deviceId: number(),
|
|
30877
|
+
status: SceneMonitorStatusSchema.nullable()
|
|
30878
|
+
});
|
|
30641
30879
|
var sceneMonitorCapability = {
|
|
30642
30880
|
name: "scene-monitor",
|
|
30643
30881
|
scope: "device",
|
|
@@ -30647,6 +30885,22 @@ var sceneMonitorCapability = {
|
|
|
30647
30885
|
deviceTypes: [DeviceType.Camera],
|
|
30648
30886
|
methods: {
|
|
30649
30887
|
listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
|
|
30888
|
+
/**
|
|
30889
|
+
* The same answer, for a SET of cameras, in one round trip.
|
|
30890
|
+
*
|
|
30891
|
+
* `/scenes` renders every camera and re-reads them on a 30s safety-net
|
|
30892
|
+
* poll behind the push slice. Fanned out client-side that was one query
|
|
30893
|
+
* per camera — 29 round trips through the browser, the hub and the
|
|
30894
|
+
* post-analysis runner every 30 seconds to read an in-memory map the
|
|
30895
|
+
* owner had already merged. The work is unchanged (`statusFor` per
|
|
30896
|
+
* device, all in-process at the owner); what collapses is the transport.
|
|
30897
|
+
*
|
|
30898
|
+
* A camera that cannot answer still gets a row, with `status: null` —
|
|
30899
|
+
* see {@link SceneMonitorStatusForDeviceSchema}. Never fewer rows than
|
|
30900
|
+
* ids: a caller that asked for twenty-nine and got twenty-seven cannot
|
|
30901
|
+
* tell which two are missing, or that any are.
|
|
30902
|
+
*/
|
|
30903
|
+
listScenesBatch: method(object({ deviceIds: array(number()).min(1).max(200) }), array(SceneMonitorStatusForDeviceSchema).readonly()),
|
|
30650
30904
|
createScene: method(object({
|
|
30651
30905
|
deviceId: number(),
|
|
30652
30906
|
label: string(),
|
|
@@ -32482,6 +32736,27 @@ var CameraOccupancySnapshotSchema = object({
|
|
|
32482
32736
|
stationaryObjects: array(StationaryObjectSchema).readonly().optional()
|
|
32483
32737
|
});
|
|
32484
32738
|
/**
|
|
32739
|
+
* One camera's row in a `getCurrentSnapshotBatch` answer.
|
|
32740
|
+
*
|
|
32741
|
+
* THREE outcomes, and the single-camera method could only express two of them
|
|
32742
|
+
* because `snapshot: null` was already spoken for:
|
|
32743
|
+
*
|
|
32744
|
+
* - `read: 'read'`, `snapshot` present — the live occupancy reading.
|
|
32745
|
+
* - `read: 'read'`, `snapshot: null` — read, and this camera has no reading
|
|
32746
|
+
* yet: no frame since boot, and no parked-object registry to hydrate from.
|
|
32747
|
+
* - `read: 'unreadable'` — the owner could not answer for this
|
|
32748
|
+
* camera. `snapshot` is null, and it does NOT mean "nothing parked here".
|
|
32749
|
+
*
|
|
32750
|
+
* Collapsing the last two is the failure this field exists to prevent: a
|
|
32751
|
+
* hydration that threw would otherwise render as an empty Stationary section,
|
|
32752
|
+
* which is a definite claim about a camera nobody could read.
|
|
32753
|
+
*/
|
|
32754
|
+
var CameraOccupancySnapshotForDeviceSchema = object({
|
|
32755
|
+
deviceId: number(),
|
|
32756
|
+
read: _enum(["read", "unreadable"]),
|
|
32757
|
+
snapshot: CameraOccupancySnapshotSchema.nullable()
|
|
32758
|
+
});
|
|
32759
|
+
/**
|
|
32485
32760
|
* Time-series resolution. The history methods return one bucket per
|
|
32486
32761
|
* step over the requested range. Smaller resolutions cost more
|
|
32487
32762
|
* memory + bandwidth; bound to discrete steps so caller cannot ask
|
|
@@ -32538,6 +32813,20 @@ var zoneAnalyticsCapability = {
|
|
|
32538
32813
|
* (no inference result emitted since boot or since binding was
|
|
32539
32814
|
* activated). */
|
|
32540
32815
|
getCurrentSnapshot: method(object({ deviceId: number() }), CameraOccupancySnapshotSchema.nullable()),
|
|
32816
|
+
/**
|
|
32817
|
+
* The same snapshot, for a SET of cameras, in one round trip.
|
|
32818
|
+
*
|
|
32819
|
+
* The Events page's Stationary section polls this every 15s for every
|
|
32820
|
+
* selected camera. Fanned out client-side that is one query per camera to
|
|
32821
|
+
* read a `Map.get` at the owner — the answer costs nothing, the round trip
|
|
32822
|
+
* costs everything. Batched, N transports become one and the per-device
|
|
32823
|
+
* work is unchanged.
|
|
32824
|
+
*
|
|
32825
|
+
* Every requested deviceId gets a row, tagged `read` — see
|
|
32826
|
+
* {@link CameraOccupancySnapshotForDeviceSchema}. A camera the owner could
|
|
32827
|
+
* not answer for is `'unreadable'`, never an empty reading.
|
|
32828
|
+
*/
|
|
32829
|
+
getCurrentSnapshotBatch: method(object({ deviceIds: array(number()).min(1).max(200) }), array(CameraOccupancySnapshotForDeviceSchema).readonly()),
|
|
32541
32830
|
/** Time-series object count inside one zone. `className` optional —
|
|
32542
32831
|
* omit to count every class in the zone. */
|
|
32543
32832
|
getZoneHistory: method(object({
|
|
@@ -37127,6 +37416,12 @@ Object.freeze({
|
|
|
37127
37416
|
addonId: null,
|
|
37128
37417
|
access: "view"
|
|
37129
37418
|
},
|
|
37419
|
+
"pipelineAnalytics.getEventMediaFootprintByKind": {
|
|
37420
|
+
capName: "pipeline-analytics",
|
|
37421
|
+
capScope: "device",
|
|
37422
|
+
addonId: null,
|
|
37423
|
+
access: "view"
|
|
37424
|
+
},
|
|
37130
37425
|
"pipelineAnalytics.getEventStoreFootprint": {
|
|
37131
37426
|
capName: "pipeline-analytics",
|
|
37132
37427
|
capScope: "device",
|
|
@@ -37145,6 +37440,12 @@ Object.freeze({
|
|
|
37145
37440
|
addonId: null,
|
|
37146
37441
|
access: "view"
|
|
37147
37442
|
},
|
|
37443
|
+
"pipelineAnalytics.getKeyEventsBatch": {
|
|
37444
|
+
capName: "pipeline-analytics",
|
|
37445
|
+
capScope: "device",
|
|
37446
|
+
addonId: null,
|
|
37447
|
+
access: "view"
|
|
37448
|
+
},
|
|
37148
37449
|
"pipelineAnalytics.getMotionEvents": {
|
|
37149
37450
|
capName: "pipeline-analytics",
|
|
37150
37451
|
capScope: "device",
|
|
@@ -38321,6 +38622,12 @@ Object.freeze({
|
|
|
38321
38622
|
addonId: null,
|
|
38322
38623
|
access: "view"
|
|
38323
38624
|
},
|
|
38625
|
+
"recording.reconcileLedgerAgainstDisk": {
|
|
38626
|
+
capName: "recording",
|
|
38627
|
+
capScope: "system",
|
|
38628
|
+
addonId: null,
|
|
38629
|
+
access: "create"
|
|
38630
|
+
},
|
|
38324
38631
|
"recording.refreshStorageLocationsForMigration": {
|
|
38325
38632
|
capName: "recording",
|
|
38326
38633
|
capScope: "system",
|
|
@@ -38447,6 +38754,12 @@ Object.freeze({
|
|
|
38447
38754
|
addonId: null,
|
|
38448
38755
|
access: "view"
|
|
38449
38756
|
},
|
|
38757
|
+
"sceneMonitor.listScenesBatch": {
|
|
38758
|
+
capName: "scene-monitor",
|
|
38759
|
+
capScope: "device",
|
|
38760
|
+
addonId: null,
|
|
38761
|
+
access: "view"
|
|
38762
|
+
},
|
|
38450
38763
|
"sceneMonitor.recheckNow": {
|
|
38451
38764
|
capName: "scene-monitor",
|
|
38452
38765
|
capScope: "device",
|
|
@@ -39803,6 +40116,12 @@ Object.freeze({
|
|
|
39803
40116
|
addonId: null,
|
|
39804
40117
|
access: "view"
|
|
39805
40118
|
},
|
|
40119
|
+
"zoneAnalytics.getCurrentSnapshotBatch": {
|
|
40120
|
+
capName: "zone-analytics",
|
|
40121
|
+
capScope: "device",
|
|
40122
|
+
addonId: null,
|
|
40123
|
+
access: "view"
|
|
40124
|
+
},
|
|
39806
40125
|
"zoneAnalytics.getUnzonedHistory": {
|
|
39807
40126
|
capName: "zone-analytics",
|
|
39808
40127
|
capScope: "device",
|
|
@@ -40792,6 +41111,11 @@ Object.freeze({
|
|
|
40792
41111
|
form: "single",
|
|
40793
41112
|
optional: false
|
|
40794
41113
|
}],
|
|
41114
|
+
"pipelineAnalytics.getEventMediaFootprintByKind": [{
|
|
41115
|
+
name: "deviceId",
|
|
41116
|
+
form: "single",
|
|
41117
|
+
optional: true
|
|
41118
|
+
}],
|
|
40795
41119
|
"pipelineAnalytics.getGroup": [{
|
|
40796
41120
|
name: "deviceId",
|
|
40797
41121
|
form: "single",
|
|
@@ -40802,6 +41126,11 @@ Object.freeze({
|
|
|
40802
41126
|
form: "single",
|
|
40803
41127
|
optional: false
|
|
40804
41128
|
}],
|
|
41129
|
+
"pipelineAnalytics.getKeyEventsBatch": [{
|
|
41130
|
+
name: "deviceIds",
|
|
41131
|
+
form: "array",
|
|
41132
|
+
optional: false
|
|
41133
|
+
}],
|
|
40805
41134
|
"pipelineAnalytics.getMotionEvents": [{
|
|
40806
41135
|
name: "deviceId",
|
|
40807
41136
|
form: "single",
|
|
@@ -41242,6 +41571,11 @@ Object.freeze({
|
|
|
41242
41571
|
form: "single",
|
|
41243
41572
|
optional: false
|
|
41244
41573
|
}],
|
|
41574
|
+
"recording.reconcileLedgerAgainstDisk": [{
|
|
41575
|
+
name: "deviceId",
|
|
41576
|
+
form: "single",
|
|
41577
|
+
optional: true
|
|
41578
|
+
}],
|
|
41245
41579
|
"recording.relocateFootage": [{
|
|
41246
41580
|
name: "deviceId",
|
|
41247
41581
|
form: "single",
|
|
@@ -41307,6 +41641,11 @@ Object.freeze({
|
|
|
41307
41641
|
form: "single",
|
|
41308
41642
|
optional: false
|
|
41309
41643
|
}],
|
|
41644
|
+
"sceneMonitor.listScenesBatch": [{
|
|
41645
|
+
name: "deviceIds",
|
|
41646
|
+
form: "array",
|
|
41647
|
+
optional: false
|
|
41648
|
+
}],
|
|
41310
41649
|
"sceneMonitor.recheckNow": [{
|
|
41311
41650
|
name: "deviceId",
|
|
41312
41651
|
form: "single",
|
|
@@ -41568,6 +41907,11 @@ Object.freeze({
|
|
|
41568
41907
|
form: "single",
|
|
41569
41908
|
optional: false
|
|
41570
41909
|
}],
|
|
41910
|
+
"zoneAnalytics.getCurrentSnapshotBatch": [{
|
|
41911
|
+
name: "deviceIds",
|
|
41912
|
+
form: "array",
|
|
41913
|
+
optional: false
|
|
41914
|
+
}],
|
|
41571
41915
|
"zoneAnalytics.getUnzonedHistory": [{
|
|
41572
41916
|
name: "deviceId",
|
|
41573
41917
|
form: "single",
|
|
@@ -42843,6 +43187,12 @@ Object.defineProperty(exports, "MACRO_LABELS", {
|
|
|
42843
43187
|
return MACRO_LABELS;
|
|
42844
43188
|
}
|
|
42845
43189
|
});
|
|
43190
|
+
Object.defineProperty(exports, "MediaFileKindEnum", {
|
|
43191
|
+
enumerable: true,
|
|
43192
|
+
get: function() {
|
|
43193
|
+
return MediaFileKindEnum;
|
|
43194
|
+
}
|
|
43195
|
+
});
|
|
42846
43196
|
Object.defineProperty(exports, "NC_ALARM_SYSTEM_EVENT_KINDS", {
|
|
42847
43197
|
enumerable: true,
|
|
42848
43198
|
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-Ds6x9Agm.js");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
7
7
|
node_fs = require_dist.__toESM(node_fs);
|
|
8
8
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ct as resolvePoolMemoryPolicy, I as PoolMemoryWatchdog, _t as parseProcStatus, dt as hfModelUrl, jt as BaseAddon, ot as embeddingEncoderCapability } from "../dist-D6iC--Gh.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, i as t, n, o as r, r as i, t as a } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare__react__loadShare__.js-C0AuF9av.mjs";
|
|
2
2
|
import { t as o } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-B3Wx5J80.mjs";
|
|
3
|
-
import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-
|
|
3
|
+
import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DdANt7Ia.mjs";
|
|
4
4
|
import { n as m, r as h, t as g } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-Bm-iyjmq.mjs";
|
|
5
5
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
6
6
|
var _ = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), v = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), y = (e) => {
|
|
@@ -3,7 +3,7 @@ import "./dist-CYZr2fwk.mjs";
|
|
|
3
3
|
var e = {
|
|
4
4
|
"@camstack/sdk": {
|
|
5
5
|
name: "@camstack/sdk",
|
|
6
|
-
version: "1.2.
|
|
6
|
+
version: "1.2.52",
|
|
7
7
|
scope: ["default"],
|
|
8
8
|
loaded: !1,
|
|
9
9
|
from: "addon_pipeline_analytics_widgets",
|
|
@@ -18,7 +18,7 @@ var e = {
|
|
|
18
18
|
},
|
|
19
19
|
"@camstack/types": {
|
|
20
20
|
name: "@camstack/types",
|
|
21
|
-
version: "1.2.
|
|
21
|
+
version: "1.2.130",
|
|
22
22
|
scope: ["default"],
|
|
23
23
|
loaded: !1,
|
|
24
24
|
from: "addon_pipeline_analytics_widgets",
|
|
@@ -33,7 +33,7 @@ var e = {
|
|
|
33
33
|
},
|
|
34
34
|
"@camstack/ui-library": {
|
|
35
35
|
name: "@camstack/ui-library",
|
|
36
|
-
version: "1.2.
|
|
36
|
+
version: "1.2.93",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_pipeline_analytics_widgets",
|