@camstack/addon-osd-manager 0.1.40 → 0.1.42
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/{MotionZonesSettings-BTOqeXRd.mjs → MotionZonesSettings-CdyvFlWR.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-BgmE0tQu.mjs → PrivacyMaskSettings-CUfurhy1.mjs} +4 -4
- package/dist/{SceneMonitorEditor-D4oig7v9.mjs → SceneMonitorEditor-E_PU8Px7.mjs} +3 -3
- package/dist/_stub.js +2208 -2209
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-C4iHNnmw.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BmuIjiOx.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BI_yNGG4.mjs +26 -0
- package/dist/{hostInit-DzLQY4CO.mjs → hostInit-Bf1t6pHC.mjs} +3 -3
- package/dist/index.js +359 -1
- package/dist/index.mjs +359 -1
- package/dist/{player-overlays-DaucHym7.mjs → player-overlays-9-h959au.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-DC2YNF2r.mjs → responsive-DuPMoboD.mjs} +1 -1
- package/dist/{square-DuMw_5RG.mjs → square-CbixHwGb.mjs} +1 -1
- package/dist/{trash-2-C54qifas.mjs → trash-2---I9LVPc.mjs} +1 -1
- package/dist/{use-device-snapshot-BVTu9rWV.mjs → use-device-snapshot-DtmjvvAg.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-B-XuFKdU.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-B5mIR9KJ.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Blhr4EyN.mjs +0 -26
package/dist/index.js
CHANGED
|
@@ -8117,6 +8117,20 @@ var RelocateJobSchema = object({
|
|
|
8117
8117
|
* in its row, not in its name, so `MediaRelocateEngine` never reconciles one.
|
|
8118
8118
|
*/
|
|
8119
8119
|
rowsReconciled: number().int().nonnegative().optional(),
|
|
8120
|
+
/**
|
|
8121
|
+
* Rows this run FORGOT because the file they name is not on disk.
|
|
8122
|
+
*
|
|
8123
|
+
* The mover derived the path from the row's own fields and `stat`ed it; an
|
|
8124
|
+
* ENOENT there is a per-path confirmation that the segment is gone (D296),
|
|
8125
|
+
* and the durable row is dropped through the same channel eviction uses. It
|
|
8126
|
+
* is reported for the same reason `rowsReconciled` is: this is a durable
|
|
8127
|
+
* mutation nobody asked for, and a migration that quietly erases hour rows is
|
|
8128
|
+
* the same failure as one that quietly skips them (D295).
|
|
8129
|
+
*
|
|
8130
|
+
* The production drain of 2026-08-30 would have reported 11 074 here — the
|
|
8131
|
+
* ledger claimed 5.65 GB of footage that no longer existed.
|
|
8132
|
+
*/
|
|
8133
|
+
rowsForgotten: number().int().nonnegative().optional(),
|
|
8120
8134
|
startedAt: number(),
|
|
8121
8135
|
finishedAt: number().nullable(),
|
|
8122
8136
|
error: string().nullable()
|
|
@@ -8480,6 +8494,91 @@ var RelocateResidueSchema = object({
|
|
|
8480
8494
|
segments: number().int().nonnegative(),
|
|
8481
8495
|
bytes: number().int().nonnegative()
|
|
8482
8496
|
}).nullable();
|
|
8497
|
+
/**
|
|
8498
|
+
* Ask one location whether its durable hour rows describe the disk — the walk
|
|
8499
|
+
* (D319).
|
|
8500
|
+
*
|
|
8501
|
+
* `apply` DEFAULTS TO FALSE and that default is the product: the operator's
|
|
8502
|
+
* missing tool is the question, and the dry run is how they sanity-check the
|
|
8503
|
+
* destructive run before authorising it.
|
|
8504
|
+
*/
|
|
8505
|
+
var LedgerWalkInputSchema = object({
|
|
8506
|
+
locationId: string().min(1),
|
|
8507
|
+
/** Forget the confirmed-absent rows, rather than only counting them. */
|
|
8508
|
+
apply: boolean().optional(),
|
|
8509
|
+
/** Narrow to one camera. */
|
|
8510
|
+
deviceId: number().int().positive().optional(),
|
|
8511
|
+
/** Narrow to these recording profiles; empty/absent = every profile. */
|
|
8512
|
+
profiles: array(string().min(1)).optional()
|
|
8513
|
+
});
|
|
8514
|
+
/** Why a whole walk did nothing. Every one leaves the ledger untouched. */
|
|
8515
|
+
var LedgerWalkRefusalSchema = _enum([
|
|
8516
|
+
"location-unknown",
|
|
8517
|
+
"source-writable",
|
|
8518
|
+
"no-ledger",
|
|
8519
|
+
"archive-unreadable",
|
|
8520
|
+
"anchor-absent",
|
|
8521
|
+
"anchor-unreadable",
|
|
8522
|
+
"anchor-moved"
|
|
8523
|
+
]);
|
|
8524
|
+
_enum([
|
|
8525
|
+
"live-tail",
|
|
8526
|
+
"listing-error",
|
|
8527
|
+
"path-mismatch",
|
|
8528
|
+
"durable-refused"
|
|
8529
|
+
]);
|
|
8530
|
+
/** Every skip reason, always present, always a number — so a reason that never
|
|
8531
|
+
* fired reports as zero rather than absent and the report shape is constant
|
|
8532
|
+
* between passes. Spelled out rather than `z.record` for exactly that. */
|
|
8533
|
+
var LedgerWalkSkipCountsSchema = object({
|
|
8534
|
+
"live-tail": number().int().nonnegative(),
|
|
8535
|
+
"listing-error": number().int().nonnegative(),
|
|
8536
|
+
"path-mismatch": number().int().nonnegative(),
|
|
8537
|
+
"durable-refused": number().int().nonnegative()
|
|
8538
|
+
});
|
|
8539
|
+
/** One camera's share of a walk, so a report names cameras and not rows. */
|
|
8540
|
+
var LedgerWalkDeviceReportSchema = object({
|
|
8541
|
+
deviceId: number().int(),
|
|
8542
|
+
hoursWalked: number().int().nonnegative(),
|
|
8543
|
+
hoursMissing: number().int().nonnegative(),
|
|
8544
|
+
ghostSegments: number().int().nonnegative(),
|
|
8545
|
+
ghostBytes: number().int().nonnegative(),
|
|
8546
|
+
forgottenSegments: number().int().nonnegative(),
|
|
8547
|
+
orphanFiles: number().int().nonnegative()
|
|
8548
|
+
});
|
|
8549
|
+
/**
|
|
8550
|
+
* What one walk claimed, listed, found and (only when armed) forgot.
|
|
8551
|
+
*
|
|
8552
|
+
* `archiveSegments` is the **M** and `segmentsClaimed` the **N** (D295), so a
|
|
8553
|
+
* walk that saw a fraction of the location is visible in its own report rather
|
|
8554
|
+
* than in the absence of one.
|
|
8555
|
+
*/
|
|
8556
|
+
var LedgerWalkReportSchema = object({
|
|
8557
|
+
locationId: string(),
|
|
8558
|
+
applied: boolean(),
|
|
8559
|
+
refused: LedgerWalkRefusalSchema.nullable(),
|
|
8560
|
+
archiveSegments: number().int().nonnegative().nullable(),
|
|
8561
|
+
archiveBytes: number().int().nonnegative().nullable(),
|
|
8562
|
+
hoursClaimed: number().int().nonnegative(),
|
|
8563
|
+
hoursWalked: number().int().nonnegative(),
|
|
8564
|
+
hoursMissing: number().int().nonnegative(),
|
|
8565
|
+
/** `readdir` calls issued — the cost, stated in the unit that is paid. */
|
|
8566
|
+
listings: number().int().nonnegative(),
|
|
8567
|
+
segmentsClaimed: number().int().nonnegative(),
|
|
8568
|
+
ghostSegments: number().int().nonnegative(),
|
|
8569
|
+
ghostBytes: number().int().nonnegative(),
|
|
8570
|
+
ghostHoursWhole: number().int().nonnegative(),
|
|
8571
|
+
forgottenSegments: number().int().nonnegative(),
|
|
8572
|
+
forgottenBytes: number().int().nonnegative(),
|
|
8573
|
+
/** Files under a claimed hour that no durable row names. Never deleted. */
|
|
8574
|
+
orphanFiles: number().int().nonnegative(),
|
|
8575
|
+
orphanSample: array(string()).readonly(),
|
|
8576
|
+
hoursSkipped: number().int().nonnegative(),
|
|
8577
|
+
skippedByReason: LedgerWalkSkipCountsSchema,
|
|
8578
|
+
/** The walk stopped at its per-pass hour bound with claims unwalked. */
|
|
8579
|
+
bounded: boolean(),
|
|
8580
|
+
byDevice: array(LedgerWalkDeviceReportSchema).readonly()
|
|
8581
|
+
});
|
|
8483
8582
|
/** How many rows a media pass would still act on against a given target — the
|
|
8484
8583
|
* media lane's denominator AND its residue, from ONE derivation so the two can
|
|
8485
8584
|
* never disagree. `null` = the count could not be taken. */
|
|
@@ -21616,13 +21715,15 @@ var ListGroupsPageSchema = object({
|
|
|
21616
21715
|
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
21617
21716
|
nextCursor: string().nullable()
|
|
21618
21717
|
});
|
|
21718
|
+
var KEY_EVENTS_DEFAULT_LIMIT = 50;
|
|
21719
|
+
var KEY_EVENTS_MAX_LIMIT = 200;
|
|
21619
21720
|
var KeyEventQueryInput = object({
|
|
21620
21721
|
deviceId: number(),
|
|
21621
21722
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
21622
21723
|
since: number(),
|
|
21623
21724
|
/** Window upper bound (track firstSeen ≤ until). */
|
|
21624
21725
|
until: number(),
|
|
21625
|
-
limit: number().int().min(1).max(
|
|
21726
|
+
limit: number().int().min(1).max(KEY_EVENTS_MAX_LIMIT).default(KEY_EVENTS_DEFAULT_LIMIT),
|
|
21626
21727
|
/** Drop tracks scoring below this importance. */
|
|
21627
21728
|
minImportance: number().min(0).max(1).optional(),
|
|
21628
21729
|
/** Restrict to a single class (e.g. 'person'). */
|
|
@@ -21644,6 +21745,32 @@ var KeyEventSchema = object({
|
|
|
21644
21745
|
...TrackFlagFields,
|
|
21645
21746
|
...TrackRetrainFields
|
|
21646
21747
|
});
|
|
21748
|
+
/** `getKeyEvents`' window and filters, asked of a SET of cameras at once. */
|
|
21749
|
+
var KeyEventBatchQueryInput = object({
|
|
21750
|
+
deviceIds: array(number()).min(1).max(200),
|
|
21751
|
+
since: number(),
|
|
21752
|
+
until: number(),
|
|
21753
|
+
/** Applied PER CAMERA, exactly as `getKeyEvents.limit` is — never a total
|
|
21754
|
+
* across the set, which would let a busy camera starve a quiet one of its
|
|
21755
|
+
* rows and change what the merged feed contains. */
|
|
21756
|
+
limit: number().int().min(1).max(KEY_EVENTS_MAX_LIMIT).default(KEY_EVENTS_DEFAULT_LIMIT),
|
|
21757
|
+
minImportance: number().min(0).max(1).optional(),
|
|
21758
|
+
classFilter: string().optional()
|
|
21759
|
+
});
|
|
21760
|
+
/**
|
|
21761
|
+
* One camera's key events in a batch answer.
|
|
21762
|
+
*
|
|
21763
|
+
* The row exists for every requested id. `getKeyEvents` degrades to `[]` on
|
|
21764
|
+
* error rather than throwing, so a camera whose store read failed and one with
|
|
21765
|
+
* no events in the window were ALREADY indistinguishable per camera — the
|
|
21766
|
+
* batch does not make that worse, and the row keeps the deviceId the single
|
|
21767
|
+
* method's output never carried (the caller used to stamp it from the fan-out
|
|
21768
|
+
* key, which only worked because there was one query per camera).
|
|
21769
|
+
*/
|
|
21770
|
+
var KeyEventsForDeviceSchema = object({
|
|
21771
|
+
deviceId: number(),
|
|
21772
|
+
events: array(KeyEventSchema).readonly()
|
|
21773
|
+
});
|
|
21647
21774
|
object({
|
|
21648
21775
|
trackId: string(),
|
|
21649
21776
|
className: string(),
|
|
@@ -21715,6 +21842,50 @@ var EventStoreFootprintSchema = object({
|
|
|
21715
21842
|
totalBytes: number().int(),
|
|
21716
21843
|
devices: array(EventStoreDeviceFootprintSchema).readonly()
|
|
21717
21844
|
});
|
|
21845
|
+
/** Event-media footprint for one {@link MediaFileKind}. */
|
|
21846
|
+
var EventMediaKindFootprintSchema = object({
|
|
21847
|
+
kind: MediaFileKindEnum,
|
|
21848
|
+
/** Media rows of this kind. */
|
|
21849
|
+
rows: number().int(),
|
|
21850
|
+
/** Bytes on disk held by those rows. */
|
|
21851
|
+
bytes: number().int()
|
|
21852
|
+
});
|
|
21853
|
+
/**
|
|
21854
|
+
* The media footprint broken down by KIND — the axis a deletion decision
|
|
21855
|
+
* actually turns on.
|
|
21856
|
+
*
|
|
21857
|
+
* A byte total says how much there is; it cannot say what is safe to remove.
|
|
21858
|
+
* The deletable set (the periodic `snapshot` filmstrip, the surplus per-edge
|
|
21859
|
+
* motion stills) and the keep set (`firstFrame`, rolling `lastFrame`,
|
|
21860
|
+
* `thumbnail`/`thumbnailSmall`, `keyFrame`/`keyFrameSmall`, the face/plate
|
|
21861
|
+
* buffers, gallery media, the CLIP `crop`) are distinguished by `kind` and by
|
|
21862
|
+
* nothing else, so sizing a deletion means summing per kind.
|
|
21863
|
+
*
|
|
21864
|
+
* ## Why `unaccounted*` exists
|
|
21865
|
+
*
|
|
21866
|
+
* `kinds` is enumerated from {@link MediaFileKindEnum} — the closed set the
|
|
21867
|
+
* writers use — and summed one kind at a time. `totalRows` / `totalBytes` come
|
|
21868
|
+
* from a SEPARATE unfiltered aggregate over the same rows, never from adding
|
|
21869
|
+
* `kinds` up. A row whose stored `kind` is not in the enum (written by a
|
|
21870
|
+
* retired code path, or by a version that knew a kind this one does not) would
|
|
21871
|
+
* otherwise vanish from the total silently, and an operator would delete
|
|
21872
|
+
* against a denominator smaller than the disk.
|
|
21873
|
+
*
|
|
21874
|
+
* `unaccountedRows` / `unaccountedBytes` are the difference. They are normally
|
|
21875
|
+
* zero; a non-zero value is a real finding and must be shown, not rounded away.
|
|
21876
|
+
*/
|
|
21877
|
+
var EventMediaKindBreakdownSchema = object({
|
|
21878
|
+
/** Every media row in scope, from one unfiltered aggregate. */
|
|
21879
|
+
totalRows: number().int(),
|
|
21880
|
+
/** Every media byte in scope, from that same aggregate. */
|
|
21881
|
+
totalBytes: number().int(),
|
|
21882
|
+
/** Per-kind footprint, ordered by bytes descending. */
|
|
21883
|
+
kinds: array(EventMediaKindFootprintSchema).readonly(),
|
|
21884
|
+
/** `totalRows` minus the summed `kinds` rows — see the schema note. */
|
|
21885
|
+
unaccountedRows: number().int(),
|
|
21886
|
+
/** `totalBytes` minus the summed `kinds` bytes — see the schema note. */
|
|
21887
|
+
unaccountedBytes: number().int()
|
|
21888
|
+
});
|
|
21718
21889
|
/** Per-kind counts returned by the event-prune / device-delete mutations. */
|
|
21719
21890
|
var EventPruneCountsSchema = object({
|
|
21720
21891
|
motion: number().int(),
|
|
@@ -21948,6 +22119,21 @@ var pipelineAnalyticsCapability = {
|
|
|
21948
22119
|
* scored on-read (no write). Degrades to `[]` on error.
|
|
21949
22120
|
*/
|
|
21950
22121
|
getKeyEvents: method(KeyEventQueryInput, array(KeyEventSchema).readonly()),
|
|
22122
|
+
/**
|
|
22123
|
+
* The same ranking, for a SET of cameras, in one round trip.
|
|
22124
|
+
*
|
|
22125
|
+
* The Detection Intelligence events feed asks this of every selected
|
|
22126
|
+
* camera and re-asks on a 30s timer. Fanned out client-side that is N
|
|
22127
|
+
* round trips — browser → hub → post-analysis — for N independent,
|
|
22128
|
+
* already-indexed store queries. Batched, the queries are unchanged and
|
|
22129
|
+
* run concurrently INSIDE the owner; only the transport collapses.
|
|
22130
|
+
*
|
|
22131
|
+
* Deliberately per-device rather than pre-merged: `limit` stays per
|
|
22132
|
+
* camera (a total would let a busy camera starve a quiet one), and a
|
|
22133
|
+
* caller that renders one camera's lane needs to know which camera a row
|
|
22134
|
+
* came from. `getKeyEvents` stays for single-device callers.
|
|
22135
|
+
*/
|
|
22136
|
+
getKeyEventsBatch: method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()),
|
|
21951
22137
|
/** Server-side bucketed event counts for the 24-hour timeline.
|
|
21952
22138
|
* Returns one entry per non-empty bucket; empty buckets are omitted. */
|
|
21953
22139
|
getEventDensity: method(object({
|
|
@@ -22096,6 +22282,22 @@ var pipelineAnalyticsCapability = {
|
|
|
22096
22282
|
auth: "admin"
|
|
22097
22283
|
}),
|
|
22098
22284
|
/**
|
|
22285
|
+
* The same media footprint, broken down by {@link MediaFileKind} instead of
|
|
22286
|
+
* by camera — fleet-wide, or for one camera with `deviceId`.
|
|
22287
|
+
*
|
|
22288
|
+
* Separate from {@link getEventStoreFootprint} rather than a field on it:
|
|
22289
|
+
* the two answer different questions on different axes, the per-camera one
|
|
22290
|
+
* is what the management table renders on every open, and nothing should
|
|
22291
|
+
* pay for a per-kind pass to draw it. See
|
|
22292
|
+
* {@link EventMediaKindBreakdownSchema} for why `unaccounted*` exists —
|
|
22293
|
+
* `kinds` is enumerated, `totalBytes` is not, and the gap must be visible
|
|
22294
|
+
* to anyone sizing a deletion against it.
|
|
22295
|
+
*/
|
|
22296
|
+
getEventMediaFootprintByKind: method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
|
|
22297
|
+
kind: "query",
|
|
22298
|
+
auth: "admin"
|
|
22299
|
+
}),
|
|
22300
|
+
/**
|
|
22099
22301
|
* Cluster-wide prune of events older than `olderThanMs` (exclusive) across
|
|
22100
22302
|
* every camera, deleting each event's media in lockstep. Logged to the
|
|
22101
22303
|
* events ops-log with `reason` (default `'retention'`). Returns the summed
|
|
@@ -25041,6 +25243,20 @@ var storageCapability = {
|
|
|
25041
25243
|
listProviders: method(_void(), array(ProviderListEntrySchema).readonly()),
|
|
25042
25244
|
testConfig: method(object({
|
|
25043
25245
|
providerId: string(),
|
|
25246
|
+
/**
|
|
25247
|
+
* The location this config is an UNSAVED edit of, when there is one.
|
|
25248
|
+
*
|
|
25249
|
+
* `listLocations` replaces every declared secret with the redaction
|
|
25250
|
+
* sentinel, so the edit modal's form state holds the sentinel for any
|
|
25251
|
+
* credential the operator did not retype — and posting that here
|
|
25252
|
+
* without a way to resolve it makes the provider try to authenticate
|
|
25253
|
+
* as `__camstack_redacted__` and report the operator's own working
|
|
25254
|
+
* password as wrong. Given this id, the orchestrator restores each
|
|
25255
|
+
* sentinel from the stored config (same rule as `upsertLocation`)
|
|
25256
|
+
* before dispatching. Omitted by the "Add location" wizard, where
|
|
25257
|
+
* every value was typed just now and nothing is stored yet.
|
|
25258
|
+
*/
|
|
25259
|
+
locationId: string().optional(),
|
|
25044
25260
|
config: record(string(), unknown())
|
|
25045
25261
|
}), object({
|
|
25046
25262
|
ok: boolean(),
|
|
@@ -33622,6 +33838,23 @@ var recordingCapability = {
|
|
|
33622
33838
|
kind: "query",
|
|
33623
33839
|
auth: "admin"
|
|
33624
33840
|
}),
|
|
33841
|
+
/**
|
|
33842
|
+
* Does this location's LEDGER tell the truth about its disk? (D319)
|
|
33843
|
+
*
|
|
33844
|
+
* One `readdir` per claimed hour, diffed both ways: durable rows whose file
|
|
33845
|
+
* is not there, and files no durable row names. `apply` defaults to FALSE —
|
|
33846
|
+
* the report is the product, and the dry run is how an operator
|
|
33847
|
+
* sanity-checks the destructive run before authorising it.
|
|
33848
|
+
*
|
|
33849
|
+
* REFUSES a source that is still a write target: a listing of a live
|
|
33850
|
+
* location is a lower bound, which is not the strong evidence that lets
|
|
33851
|
+
* this pass forget without a budget. A live location is reconciled by the
|
|
33852
|
+
* mover, under D318's bound.
|
|
33853
|
+
*/
|
|
33854
|
+
reconcileLedgerAgainstDisk: method(LedgerWalkInputSchema, LedgerWalkReportSchema, {
|
|
33855
|
+
kind: "mutation",
|
|
33856
|
+
auth: "admin"
|
|
33857
|
+
}),
|
|
33625
33858
|
/** Cancel a running or queued relocate job. A queued job never runs. */
|
|
33626
33859
|
cancelRelocateJob: method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
33627
33860
|
kind: "mutation",
|
|
@@ -34056,6 +34289,25 @@ var SceneMonitorStatusSchema = object({
|
|
|
34056
34289
|
monitors: array(SceneMonitorSchema),
|
|
34057
34290
|
lastFetchedAt: number()
|
|
34058
34291
|
});
|
|
34292
|
+
/**
|
|
34293
|
+
* One camera's row in a `listScenesBatch` answer.
|
|
34294
|
+
*
|
|
34295
|
+
* `status` is NULLABLE and the nullability is the whole point. `scene-monitor`
|
|
34296
|
+
* is a `defaultActive` wrapper, so every camera is asked; a camera whose
|
|
34297
|
+
* provider is absent (pipeline-analytics not deployed, the post-processing node
|
|
34298
|
+
* down) cannot answer, and that is not the same fact as a camera with no scenes
|
|
34299
|
+
* configured. Fanned out per camera the difference was visible — one query
|
|
34300
|
+
* errored while the others resolved — and a batch that returned only the rows
|
|
34301
|
+
* it managed would have destroyed it, silently, by making an unreachable camera
|
|
34302
|
+
* indistinguishable from one that answered `monitors: []`.
|
|
34303
|
+
*
|
|
34304
|
+
* So: EVERY requested deviceId gets a row. `status: null` means "this camera
|
|
34305
|
+
* could not be read"; `status.monitors: []` means "read, and it has none".
|
|
34306
|
+
*/
|
|
34307
|
+
var SceneMonitorStatusForDeviceSchema = object({
|
|
34308
|
+
deviceId: number(),
|
|
34309
|
+
status: SceneMonitorStatusSchema.nullable()
|
|
34310
|
+
});
|
|
34059
34311
|
var sceneMonitorCapability = {
|
|
34060
34312
|
name: "scene-monitor",
|
|
34061
34313
|
scope: "device",
|
|
@@ -34065,6 +34317,22 @@ var sceneMonitorCapability = {
|
|
|
34065
34317
|
deviceTypes: [DeviceType.Camera],
|
|
34066
34318
|
methods: {
|
|
34067
34319
|
listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
|
|
34320
|
+
/**
|
|
34321
|
+
* The same answer, for a SET of cameras, in one round trip.
|
|
34322
|
+
*
|
|
34323
|
+
* `/scenes` renders every camera and re-reads them on a 30s safety-net
|
|
34324
|
+
* poll behind the push slice. Fanned out client-side that was one query
|
|
34325
|
+
* per camera — 29 round trips through the browser, the hub and the
|
|
34326
|
+
* post-analysis runner every 30 seconds to read an in-memory map the
|
|
34327
|
+
* owner had already merged. The work is unchanged (`statusFor` per
|
|
34328
|
+
* device, all in-process at the owner); what collapses is the transport.
|
|
34329
|
+
*
|
|
34330
|
+
* A camera that cannot answer still gets a row, with `status: null` —
|
|
34331
|
+
* see {@link SceneMonitorStatusForDeviceSchema}. Never fewer rows than
|
|
34332
|
+
* ids: a caller that asked for twenty-nine and got twenty-seven cannot
|
|
34333
|
+
* tell which two are missing, or that any are.
|
|
34334
|
+
*/
|
|
34335
|
+
listScenesBatch: method(object({ deviceIds: array(number()).min(1).max(200) }), array(SceneMonitorStatusForDeviceSchema).readonly()),
|
|
34068
34336
|
createScene: method(object({
|
|
34069
34337
|
deviceId: number(),
|
|
34070
34338
|
label: string(),
|
|
@@ -36051,6 +36319,27 @@ var CameraOccupancySnapshotSchema = object({
|
|
|
36051
36319
|
stationaryObjects: array(StationaryObjectSchema).readonly().optional()
|
|
36052
36320
|
});
|
|
36053
36321
|
/**
|
|
36322
|
+
* One camera's row in a `getCurrentSnapshotBatch` answer.
|
|
36323
|
+
*
|
|
36324
|
+
* THREE outcomes, and the single-camera method could only express two of them
|
|
36325
|
+
* because `snapshot: null` was already spoken for:
|
|
36326
|
+
*
|
|
36327
|
+
* - `read: 'read'`, `snapshot` present — the live occupancy reading.
|
|
36328
|
+
* - `read: 'read'`, `snapshot: null` — read, and this camera has no reading
|
|
36329
|
+
* yet: no frame since boot, and no parked-object registry to hydrate from.
|
|
36330
|
+
* - `read: 'unreadable'` — the owner could not answer for this
|
|
36331
|
+
* camera. `snapshot` is null, and it does NOT mean "nothing parked here".
|
|
36332
|
+
*
|
|
36333
|
+
* Collapsing the last two is the failure this field exists to prevent: a
|
|
36334
|
+
* hydration that threw would otherwise render as an empty Stationary section,
|
|
36335
|
+
* which is a definite claim about a camera nobody could read.
|
|
36336
|
+
*/
|
|
36337
|
+
var CameraOccupancySnapshotForDeviceSchema = object({
|
|
36338
|
+
deviceId: number(),
|
|
36339
|
+
read: _enum(["read", "unreadable"]),
|
|
36340
|
+
snapshot: CameraOccupancySnapshotSchema.nullable()
|
|
36341
|
+
});
|
|
36342
|
+
/**
|
|
36054
36343
|
* Time-series resolution. The history methods return one bucket per
|
|
36055
36344
|
* step over the requested range. Smaller resolutions cost more
|
|
36056
36345
|
* memory + bandwidth; bound to discrete steps so caller cannot ask
|
|
@@ -36107,6 +36396,20 @@ var zoneAnalyticsCapability = {
|
|
|
36107
36396
|
* (no inference result emitted since boot or since binding was
|
|
36108
36397
|
* activated). */
|
|
36109
36398
|
getCurrentSnapshot: method(object({ deviceId: number() }), CameraOccupancySnapshotSchema.nullable()),
|
|
36399
|
+
/**
|
|
36400
|
+
* The same snapshot, for a SET of cameras, in one round trip.
|
|
36401
|
+
*
|
|
36402
|
+
* The Events page's Stationary section polls this every 15s for every
|
|
36403
|
+
* selected camera. Fanned out client-side that is one query per camera to
|
|
36404
|
+
* read a `Map.get` at the owner — the answer costs nothing, the round trip
|
|
36405
|
+
* costs everything. Batched, N transports become one and the per-device
|
|
36406
|
+
* work is unchanged.
|
|
36407
|
+
*
|
|
36408
|
+
* Every requested deviceId gets a row, tagged `read` — see
|
|
36409
|
+
* {@link CameraOccupancySnapshotForDeviceSchema}. A camera the owner could
|
|
36410
|
+
* not answer for is `'unreadable'`, never an empty reading.
|
|
36411
|
+
*/
|
|
36412
|
+
getCurrentSnapshotBatch: method(object({ deviceIds: array(number()).min(1).max(200) }), array(CameraOccupancySnapshotForDeviceSchema).readonly()),
|
|
36110
36413
|
/** Time-series object count inside one zone. `className` optional —
|
|
36111
36414
|
* omit to count every class in the zone. */
|
|
36112
36415
|
getZoneHistory: method(object({
|
|
@@ -39684,6 +39987,12 @@ Object.freeze({
|
|
|
39684
39987
|
addonId: null,
|
|
39685
39988
|
access: "view"
|
|
39686
39989
|
},
|
|
39990
|
+
"pipelineAnalytics.getEventMediaFootprintByKind": {
|
|
39991
|
+
capName: "pipeline-analytics",
|
|
39992
|
+
capScope: "device",
|
|
39993
|
+
addonId: null,
|
|
39994
|
+
access: "view"
|
|
39995
|
+
},
|
|
39687
39996
|
"pipelineAnalytics.getEventStoreFootprint": {
|
|
39688
39997
|
capName: "pipeline-analytics",
|
|
39689
39998
|
capScope: "device",
|
|
@@ -39702,6 +40011,12 @@ Object.freeze({
|
|
|
39702
40011
|
addonId: null,
|
|
39703
40012
|
access: "view"
|
|
39704
40013
|
},
|
|
40014
|
+
"pipelineAnalytics.getKeyEventsBatch": {
|
|
40015
|
+
capName: "pipeline-analytics",
|
|
40016
|
+
capScope: "device",
|
|
40017
|
+
addonId: null,
|
|
40018
|
+
access: "view"
|
|
40019
|
+
},
|
|
39705
40020
|
"pipelineAnalytics.getMotionEvents": {
|
|
39706
40021
|
capName: "pipeline-analytics",
|
|
39707
40022
|
capScope: "device",
|
|
@@ -40878,6 +41193,12 @@ Object.freeze({
|
|
|
40878
41193
|
addonId: null,
|
|
40879
41194
|
access: "view"
|
|
40880
41195
|
},
|
|
41196
|
+
"recording.reconcileLedgerAgainstDisk": {
|
|
41197
|
+
capName: "recording",
|
|
41198
|
+
capScope: "system",
|
|
41199
|
+
addonId: null,
|
|
41200
|
+
access: "create"
|
|
41201
|
+
},
|
|
40881
41202
|
"recording.refreshStorageLocationsForMigration": {
|
|
40882
41203
|
capName: "recording",
|
|
40883
41204
|
capScope: "system",
|
|
@@ -41004,6 +41325,12 @@ Object.freeze({
|
|
|
41004
41325
|
addonId: null,
|
|
41005
41326
|
access: "view"
|
|
41006
41327
|
},
|
|
41328
|
+
"sceneMonitor.listScenesBatch": {
|
|
41329
|
+
capName: "scene-monitor",
|
|
41330
|
+
capScope: "device",
|
|
41331
|
+
addonId: null,
|
|
41332
|
+
access: "view"
|
|
41333
|
+
},
|
|
41007
41334
|
"sceneMonitor.recheckNow": {
|
|
41008
41335
|
capName: "scene-monitor",
|
|
41009
41336
|
capScope: "device",
|
|
@@ -42360,6 +42687,12 @@ Object.freeze({
|
|
|
42360
42687
|
addonId: null,
|
|
42361
42688
|
access: "view"
|
|
42362
42689
|
},
|
|
42690
|
+
"zoneAnalytics.getCurrentSnapshotBatch": {
|
|
42691
|
+
capName: "zone-analytics",
|
|
42692
|
+
capScope: "device",
|
|
42693
|
+
addonId: null,
|
|
42694
|
+
access: "view"
|
|
42695
|
+
},
|
|
42363
42696
|
"zoneAnalytics.getUnzonedHistory": {
|
|
42364
42697
|
capName: "zone-analytics",
|
|
42365
42698
|
capScope: "device",
|
|
@@ -43349,6 +43682,11 @@ Object.freeze({
|
|
|
43349
43682
|
form: "single",
|
|
43350
43683
|
optional: false
|
|
43351
43684
|
}],
|
|
43685
|
+
"pipelineAnalytics.getEventMediaFootprintByKind": [{
|
|
43686
|
+
name: "deviceId",
|
|
43687
|
+
form: "single",
|
|
43688
|
+
optional: true
|
|
43689
|
+
}],
|
|
43352
43690
|
"pipelineAnalytics.getGroup": [{
|
|
43353
43691
|
name: "deviceId",
|
|
43354
43692
|
form: "single",
|
|
@@ -43359,6 +43697,11 @@ Object.freeze({
|
|
|
43359
43697
|
form: "single",
|
|
43360
43698
|
optional: false
|
|
43361
43699
|
}],
|
|
43700
|
+
"pipelineAnalytics.getKeyEventsBatch": [{
|
|
43701
|
+
name: "deviceIds",
|
|
43702
|
+
form: "array",
|
|
43703
|
+
optional: false
|
|
43704
|
+
}],
|
|
43362
43705
|
"pipelineAnalytics.getMotionEvents": [{
|
|
43363
43706
|
name: "deviceId",
|
|
43364
43707
|
form: "single",
|
|
@@ -43799,6 +44142,11 @@ Object.freeze({
|
|
|
43799
44142
|
form: "single",
|
|
43800
44143
|
optional: false
|
|
43801
44144
|
}],
|
|
44145
|
+
"recording.reconcileLedgerAgainstDisk": [{
|
|
44146
|
+
name: "deviceId",
|
|
44147
|
+
form: "single",
|
|
44148
|
+
optional: true
|
|
44149
|
+
}],
|
|
43802
44150
|
"recording.relocateFootage": [{
|
|
43803
44151
|
name: "deviceId",
|
|
43804
44152
|
form: "single",
|
|
@@ -43864,6 +44212,11 @@ Object.freeze({
|
|
|
43864
44212
|
form: "single",
|
|
43865
44213
|
optional: false
|
|
43866
44214
|
}],
|
|
44215
|
+
"sceneMonitor.listScenesBatch": [{
|
|
44216
|
+
name: "deviceIds",
|
|
44217
|
+
form: "array",
|
|
44218
|
+
optional: false
|
|
44219
|
+
}],
|
|
43867
44220
|
"sceneMonitor.recheckNow": [{
|
|
43868
44221
|
name: "deviceId",
|
|
43869
44222
|
form: "single",
|
|
@@ -44125,6 +44478,11 @@ Object.freeze({
|
|
|
44125
44478
|
form: "single",
|
|
44126
44479
|
optional: false
|
|
44127
44480
|
}],
|
|
44481
|
+
"zoneAnalytics.getCurrentSnapshotBatch": [{
|
|
44482
|
+
name: "deviceIds",
|
|
44483
|
+
form: "array",
|
|
44484
|
+
optional: false
|
|
44485
|
+
}],
|
|
44128
44486
|
"zoneAnalytics.getUnzonedHistory": [{
|
|
44129
44487
|
name: "deviceId",
|
|
44130
44488
|
form: "single",
|