@camstack/addon-decoder-nodeav 1.2.99 → 1.2.101
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/index.js +292 -58
- package/dist/index.mjs +292 -58
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
|
-
//#region ../types/dist/event-category-
|
|
6
|
+
//#region ../types/dist/event-category-ZyX6jcse.mjs
|
|
7
7
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
8
8
|
EventCategory["SystemBoot"] = "system.boot";
|
|
9
9
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -564,7 +564,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
564
564
|
* a package zone — a newly-appeared stationary object of a package class
|
|
565
565
|
* that cleared the class / zone / dwell / size gates. Payload:
|
|
566
566
|
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
567
|
-
* entryId, className, zoneIds,
|
|
567
|
+
* entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
|
|
568
568
|
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
569
569
|
* this bus topic drives notifier rules + live UI. See
|
|
570
570
|
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
@@ -5350,7 +5350,7 @@ var ZodIssueCode = {
|
|
|
5350
5350
|
var ZodFirstPartyTypeKind;
|
|
5351
5351
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5352
5352
|
//#endregion
|
|
5353
|
-
//#region ../types/dist/sleep-
|
|
5353
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5354
5354
|
/**
|
|
5355
5355
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5356
5356
|
* window to float samples (D455).
|
|
@@ -7313,13 +7313,30 @@ new Set([
|
|
|
7313
7313
|
"scene",
|
|
7314
7314
|
"motion",
|
|
7315
7315
|
"object",
|
|
7316
|
-
"audio"
|
|
7316
|
+
"audio",
|
|
7317
|
+
"mosaic"
|
|
7317
7318
|
]);
|
|
7318
|
-
|
|
7319
|
+
/**
|
|
7320
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
7321
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
7322
|
+
* does not re-spell the list and drift from it.
|
|
7323
|
+
*/
|
|
7324
|
+
var EVENT_OWNER_TYPES = [
|
|
7319
7325
|
"motion",
|
|
7320
7326
|
"object",
|
|
7321
7327
|
"audio"
|
|
7322
|
-
]
|
|
7328
|
+
];
|
|
7329
|
+
/**
|
|
7330
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
7331
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
7332
|
+
* `(table, id)`).
|
|
7333
|
+
*
|
|
7334
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
7335
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
7336
|
+
* nothing failing until a caller asked.
|
|
7337
|
+
*/
|
|
7338
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
7339
|
+
new Set(EVENT_OWNER_TYPES);
|
|
7323
7340
|
var EncodeProfileSchema = object({
|
|
7324
7341
|
video: object({
|
|
7325
7342
|
codec: _enum([
|
|
@@ -7358,7 +7375,23 @@ var EncodeProfileSchema = object({
|
|
|
7358
7375
|
"zerolatency",
|
|
7359
7376
|
"film",
|
|
7360
7377
|
"animation"
|
|
7361
|
-
]).optional()
|
|
7378
|
+
]).optional(),
|
|
7379
|
+
/**
|
|
7380
|
+
* ONE slice per access unit.
|
|
7381
|
+
*
|
|
7382
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7383
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7384
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7385
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7386
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7387
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7388
|
+
*
|
|
7389
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7390
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7391
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7392
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7393
|
+
*/
|
|
7394
|
+
singleSlicePerFrame: boolean().optional()
|
|
7362
7395
|
}),
|
|
7363
7396
|
audio: union([literal("passthrough"), object({
|
|
7364
7397
|
codec: _enum([
|
|
@@ -7408,7 +7441,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7408
7441
|
audio: "passthrough"
|
|
7409
7442
|
};
|
|
7410
7443
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7411
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7444
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7412
7445
|
/**
|
|
7413
7446
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7414
7447
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -12453,6 +12486,16 @@ method(object({
|
|
|
12453
12486
|
filter: QueryFilterSchema.optional(),
|
|
12454
12487
|
columns: array(string()).readonly().optional()
|
|
12455
12488
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12489
|
+
namespace: string().optional(),
|
|
12490
|
+
collection: string(),
|
|
12491
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12492
|
+
* index on the collection. Never empty. */
|
|
12493
|
+
conflict: array(string()).readonly(),
|
|
12494
|
+
record: BulkRecordSchema
|
|
12495
|
+
}), object({
|
|
12496
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12497
|
+
* row's own id on an update. */
|
|
12498
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12456
12499
|
namespace: string().optional(),
|
|
12457
12500
|
collection: string(),
|
|
12458
12501
|
record: object({
|
|
@@ -12587,6 +12630,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12587
12630
|
id: union([string(), number()]) }), {
|
|
12588
12631
|
kind: "mutation",
|
|
12589
12632
|
auth: "admin"
|
|
12633
|
+
}), method(object({
|
|
12634
|
+
namespace: string().optional(),
|
|
12635
|
+
collection: string(),
|
|
12636
|
+
conflict: array(string()).readonly(),
|
|
12637
|
+
record: BulkRecordSchema
|
|
12638
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12639
|
+
kind: "mutation",
|
|
12640
|
+
auth: "admin"
|
|
12590
12641
|
}), method(object({
|
|
12591
12642
|
namespace: string().optional(),
|
|
12592
12643
|
collection: string(),
|
|
@@ -18896,8 +18947,8 @@ var TrackPositionSchema = object({
|
|
|
18896
18947
|
var TrackSnapshotSchema = object({
|
|
18897
18948
|
timestamp: number(),
|
|
18898
18949
|
position: TrackPositionSchema,
|
|
18899
|
-
/**
|
|
18900
|
-
|
|
18950
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
18951
|
+
mediaId: number().int()
|
|
18901
18952
|
});
|
|
18902
18953
|
/**
|
|
18903
18954
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -19501,14 +19552,14 @@ var ObjectEventSchema = object({
|
|
|
19501
19552
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
19502
19553
|
frameWidth: number().optional(),
|
|
19503
19554
|
frameHeight: number().optional(),
|
|
19504
|
-
/**
|
|
19505
|
-
|
|
19506
|
-
/** Design B:
|
|
19555
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
19556
|
+
mediaId: number().int().optional(),
|
|
19557
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
19507
19558
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
19508
|
-
* (`/addon/<addonId>/event-media/<
|
|
19559
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
19509
19560
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
19510
|
-
* sources — consumers fall back to `
|
|
19511
|
-
|
|
19561
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
19562
|
+
keyFrameMediaId: number().int().optional(),
|
|
19512
19563
|
/** Populated by B5 (recording playback URL for this event). */
|
|
19513
19564
|
mediaUrl: string().optional(),
|
|
19514
19565
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -19558,7 +19609,7 @@ var MediaFileKindEnum = _enum([
|
|
|
19558
19609
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
19559
19610
|
*
|
|
19560
19611
|
* `url` points at the `event-media` data plane
|
|
19561
|
-
* (`/addon/<addonId>/event-media/<
|
|
19612
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
19562
19613
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
19563
19614
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
19564
19615
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -19566,10 +19617,13 @@ var MediaFileKindEnum = _enum([
|
|
|
19566
19617
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
19567
19618
|
* (per-device scoping).
|
|
19568
19619
|
*
|
|
19569
|
-
* The URL is built from the row's
|
|
19570
|
-
*
|
|
19620
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
19621
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
19622
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
19571
19623
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
19572
|
-
* `faceCrop`/`plateCrop
|
|
19624
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
19625
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
19626
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
19573
19627
|
*
|
|
19574
19628
|
* ## `base64` is TRANSITIONAL and is going away
|
|
19575
19629
|
*
|
|
@@ -19582,7 +19636,19 @@ var MediaFileKindEnum = _enum([
|
|
|
19582
19636
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
19583
19637
|
*/
|
|
19584
19638
|
var MediaFileSchema = object({
|
|
19585
|
-
|
|
19639
|
+
/**
|
|
19640
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
19641
|
+
*
|
|
19642
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
19643
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
19644
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
19645
|
+
* different rows that spell the same number, and a track whose
|
|
19646
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
19647
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
19648
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
19649
|
+
* at all.
|
|
19650
|
+
*/
|
|
19651
|
+
mediaId: number().int(),
|
|
19586
19652
|
kind: MediaFileKindEnum,
|
|
19587
19653
|
sizeBytes: number(),
|
|
19588
19654
|
timestamp: number()
|
|
@@ -19690,7 +19756,7 @@ var RetrainTrackSchema = object({
|
|
|
19690
19756
|
});
|
|
19691
19757
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
19692
19758
|
var RetrainFrameCandidateSchema = object({
|
|
19693
|
-
|
|
19759
|
+
mediaId: number().int(),
|
|
19694
19760
|
kind: MediaFileKindEnum,
|
|
19695
19761
|
timestamp: number(),
|
|
19696
19762
|
sizeBytes: number().int(),
|
|
@@ -19704,7 +19770,7 @@ var RetrainFrameSchema = object({
|
|
|
19704
19770
|
deviceId: number(),
|
|
19705
19771
|
trackId: string(),
|
|
19706
19772
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
19707
|
-
|
|
19773
|
+
sourceMediaId: number().int(),
|
|
19708
19774
|
sourceKind: MediaFileKindEnum,
|
|
19709
19775
|
sizeBytes: number().int(),
|
|
19710
19776
|
width: number().int(),
|
|
@@ -19720,7 +19786,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
19720
19786
|
var RetrainFrameSelectionSchema = object({
|
|
19721
19787
|
copied: array(RetrainFrameSchema).readonly(),
|
|
19722
19788
|
refused: array(object({
|
|
19723
|
-
|
|
19789
|
+
sourceMediaId: number().int(),
|
|
19724
19790
|
reason: RetrainCopyRefusalSchema
|
|
19725
19791
|
})).readonly()
|
|
19726
19792
|
});
|
|
@@ -19728,7 +19794,7 @@ var RetrainFrameListSchema = object({
|
|
|
19728
19794
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
19729
19795
|
copies: array(RetrainFrameSchema).readonly(),
|
|
19730
19796
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
19731
|
-
|
|
19797
|
+
autoPickMediaId: number().int().optional()
|
|
19732
19798
|
});
|
|
19733
19799
|
/** What the operator asked the assist to look for. */
|
|
19734
19800
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -19823,9 +19889,11 @@ var RecentTracksQueryInput = object({
|
|
|
19823
19889
|
});
|
|
19824
19890
|
/**
|
|
19825
19891
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
19826
|
-
* `
|
|
19827
|
-
* served by the event-media plane
|
|
19828
|
-
* member visible has been materialised
|
|
19892
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
19893
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
19894
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
19895
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
19896
|
+
* row once event ids became per-table rowids).
|
|
19829
19897
|
*/
|
|
19830
19898
|
var SummarySchema = object({
|
|
19831
19899
|
id: string(),
|
|
@@ -19834,19 +19902,115 @@ var SummarySchema = object({
|
|
|
19834
19902
|
lastActiveAt: number(),
|
|
19835
19903
|
sealedAt: number().nullable(),
|
|
19836
19904
|
memberCount: number().int().nonnegative(),
|
|
19837
|
-
|
|
19905
|
+
groupShotMediaId: number().int().nullable()
|
|
19838
19906
|
});
|
|
19839
19907
|
var SummariesQueryInput = object({
|
|
19840
19908
|
deviceIds: array(number()).min(1),
|
|
19841
19909
|
since: number().optional(),
|
|
19842
19910
|
until: number().optional(),
|
|
19843
|
-
limit: number().int().min(1).max(200).default(50)
|
|
19911
|
+
limit: number().int().min(1).max(200).default(50),
|
|
19912
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
19913
|
+
* meaning of "dog" on every summary surface. */
|
|
19914
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19844
19915
|
});
|
|
19845
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19846
19916
|
var SummaryDetailSchema = object({
|
|
19847
19917
|
summary: SummarySchema,
|
|
19848
|
-
/**
|
|
19849
|
-
|
|
19918
|
+
/** Members in absorption order, oldest join first. */
|
|
19919
|
+
members: array(object({
|
|
19920
|
+
trackId: string(),
|
|
19921
|
+
/**
|
|
19922
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
19923
|
+
* and the track no longer exists to fill it.
|
|
19924
|
+
*
|
|
19925
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
19926
|
+
* class afterwards, and a group's composition is the history of who came
|
|
19927
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
19928
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
19929
|
+
* drift from the members it claims to describe.
|
|
19930
|
+
*/
|
|
19931
|
+
className: string().nullable(),
|
|
19932
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
19933
|
+
role: _enum([
|
|
19934
|
+
"primary",
|
|
19935
|
+
"sibling",
|
|
19936
|
+
"child"
|
|
19937
|
+
]).nullable(),
|
|
19938
|
+
joinedAt: number(),
|
|
19939
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
19940
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
19941
|
+
label: string().optional(),
|
|
19942
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
19943
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
19944
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
19945
|
+
subLabel: string().optional()
|
|
19946
|
+
})).readonly()
|
|
19947
|
+
});
|
|
19948
|
+
/**
|
|
19949
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
19950
|
+
*
|
|
19951
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
19952
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
19953
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
19954
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
19955
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
19956
|
+
* draw two hundred badges.
|
|
19957
|
+
*/
|
|
19958
|
+
var SummaryListItemSchema = object({
|
|
19959
|
+
summary: SummarySchema,
|
|
19960
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
19961
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
19962
|
+
classes: array(object({
|
|
19963
|
+
className: string().nullable(),
|
|
19964
|
+
count: number().int().positive()
|
|
19965
|
+
})).readonly()
|
|
19966
|
+
});
|
|
19967
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
19968
|
+
/**
|
|
19969
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
19970
|
+
*
|
|
19971
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
19972
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
19973
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
19974
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
19975
|
+
* "newest" means, on one screen.
|
|
19976
|
+
*/
|
|
19977
|
+
var RecentSummariesQueryInput = object({
|
|
19978
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
19979
|
+
deviceIds: array(number()),
|
|
19980
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
19981
|
+
since: number().optional(),
|
|
19982
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
19983
|
+
until: number().optional(),
|
|
19984
|
+
limit: number().int().min(1).max(500).default(100),
|
|
19985
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
19986
|
+
cursor: string().optional(),
|
|
19987
|
+
/**
|
|
19988
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
19989
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
19990
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
19991
|
+
* make the operator's one filter component produce two shapes.
|
|
19992
|
+
*
|
|
19993
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
19994
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
19995
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
19996
|
+
* about its primary.
|
|
19997
|
+
*
|
|
19998
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
19999
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20000
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20001
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20002
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20003
|
+
*
|
|
20004
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20005
|
+
*/
|
|
20006
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20007
|
+
});
|
|
20008
|
+
var RecentSummariesPageSchema = object({
|
|
20009
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20010
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20011
|
+
* whichever feed drew it. */
|
|
20012
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20013
|
+
nextCursor: string().nullable()
|
|
19850
20014
|
});
|
|
19851
20015
|
var RecentTracksPageSchema = object({
|
|
19852
20016
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20260,7 +20424,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20260
20424
|
classes: array(string()).optional(),
|
|
20261
20425
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20262
20426
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20263
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20427
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20264
20428
|
kind: "mutation",
|
|
20265
20429
|
auth: "admin"
|
|
20266
20430
|
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
|
|
@@ -20388,7 +20552,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20388
20552
|
}), method(object({
|
|
20389
20553
|
deviceId: number(),
|
|
20390
20554
|
trackId: string(),
|
|
20391
|
-
|
|
20555
|
+
mediaIds: array(number().int()).min(1)
|
|
20392
20556
|
}), RetrainFrameSelectionSchema, {
|
|
20393
20557
|
kind: "mutation",
|
|
20394
20558
|
auth: "admin"
|
|
@@ -20456,7 +20620,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20456
20620
|
kind: "query",
|
|
20457
20621
|
auth: "admin"
|
|
20458
20622
|
}), method(object({
|
|
20459
|
-
|
|
20623
|
+
/** Which of the three event tables owns the row. */
|
|
20624
|
+
ownerType: EventOwnerTypeSchema,
|
|
20625
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
20626
|
+
eventId: number().int(),
|
|
20460
20627
|
kind: MediaFileKindEnum.optional(),
|
|
20461
20628
|
deviceId: number()
|
|
20462
20629
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -20467,7 +20634,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20467
20634
|
trackId: string(),
|
|
20468
20635
|
deviceId: number()
|
|
20469
20636
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
20470
|
-
|
|
20637
|
+
ownerType: EventOwnerTypeSchema,
|
|
20638
|
+
eventId: number().int(),
|
|
20471
20639
|
deviceId: number()
|
|
20472
20640
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
20473
20641
|
kind: "mutation",
|
|
@@ -24930,8 +25098,8 @@ var IdentitySchema = object({
|
|
|
24930
25098
|
id: string(),
|
|
24931
25099
|
name: string(),
|
|
24932
25100
|
sampleCount: number().int().nonnegative(),
|
|
24933
|
-
|
|
24934
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
25101
|
+
coverMediaId: number().int().optional(),
|
|
25102
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
24935
25103
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
24936
25104
|
coverBase64: string().optional()
|
|
24937
25105
|
});
|
|
@@ -24957,8 +25125,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
24957
25125
|
enrolledAt: number().int(),
|
|
24958
25126
|
deviceId: number().int().optional(),
|
|
24959
25127
|
source: _enum(["detected", "photo"]),
|
|
24960
|
-
/** The enrolled crop's media
|
|
24961
|
-
|
|
25128
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
25129
|
+
mediaId: number().int().optional(),
|
|
24962
25130
|
/**
|
|
24963
25131
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
24964
25132
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -25027,15 +25195,15 @@ var FaceInfoSchema = object({
|
|
|
25027
25195
|
*/
|
|
25028
25196
|
cropUrl: string().optional(),
|
|
25029
25197
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
25030
|
-
* view draw the box over the native `
|
|
25198
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
25031
25199
|
* legacy rows written before design B. */
|
|
25032
25200
|
faceBbox: BoundingBoxSchema.optional(),
|
|
25033
25201
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
25034
25202
|
* Fetch the native JPEG via the event-media data-plane
|
|
25035
|
-
* (`/addon/<addonId>/event-media/<
|
|
25203
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
25036
25204
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
25037
25205
|
* back to the inline `base64` face crop. */
|
|
25038
|
-
|
|
25206
|
+
keyFrameMediaId: number().int().optional(),
|
|
25039
25207
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
25040
25208
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
25041
25209
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -25104,11 +25272,14 @@ var FaceClusterSchema = object({
|
|
|
25104
25272
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
25105
25273
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
25106
25274
|
*
|
|
25107
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
25108
|
-
* media
|
|
25275
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
25276
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
25277
|
+
* access decision.
|
|
25109
25278
|
*/
|
|
25110
25279
|
var MediaFileLiteSchema$1 = object({
|
|
25111
|
-
|
|
25280
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
25281
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
25282
|
+
mediaId: number().int(),
|
|
25112
25283
|
kind: string(),
|
|
25113
25284
|
url: string(),
|
|
25114
25285
|
sizeBytes: number(),
|
|
@@ -25125,7 +25296,7 @@ method(object({
|
|
|
25125
25296
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
25126
25297
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
25127
25298
|
*
|
|
25128
|
-
* Nothing loses its avatar: `
|
|
25299
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
25129
25300
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
25130
25301
|
*
|
|
25131
25302
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -27593,8 +27764,8 @@ var VehicleSchema = object({
|
|
|
27593
27764
|
id: string(),
|
|
27594
27765
|
name: string(),
|
|
27595
27766
|
sampleCount: number().int().nonnegative(),
|
|
27596
|
-
|
|
27597
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
27767
|
+
coverMediaId: number().int().optional(),
|
|
27768
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
27598
27769
|
coverBase64: string().optional()
|
|
27599
27770
|
});
|
|
27600
27771
|
var VehicleSampleInfoSchema = object({
|
|
@@ -27627,7 +27798,7 @@ var PlateInfoSchema = object({
|
|
|
27627
27798
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
27628
27799
|
plateBbox: BoundingBoxSchema.optional(),
|
|
27629
27800
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
27630
|
-
|
|
27801
|
+
keyFrameMediaId: number().int().optional(),
|
|
27631
27802
|
base64: string().optional(),
|
|
27632
27803
|
/**
|
|
27633
27804
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -27648,11 +27819,14 @@ var PlateInfoSchema = object({
|
|
|
27648
27819
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
27649
27820
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
27650
27821
|
*
|
|
27651
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
27652
|
-
* media
|
|
27822
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
27823
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
27824
|
+
* access decision.
|
|
27653
27825
|
*/
|
|
27654
27826
|
var MediaFileLiteSchema = object({
|
|
27655
|
-
|
|
27827
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
27828
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
27829
|
+
mediaId: number().int(),
|
|
27656
27830
|
kind: string(),
|
|
27657
27831
|
url: string(),
|
|
27658
27832
|
sizeBytes: number(),
|
|
@@ -27711,7 +27885,7 @@ method(object({
|
|
|
27711
27885
|
}), method(object({
|
|
27712
27886
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
27713
27887
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
27714
|
-
* option; `
|
|
27888
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
27715
27889
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
27716
27890
|
* resolves to `false` and is exactly the intended default. */
|
|
27717
27891
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -29035,7 +29209,14 @@ var SceneReferenceSchema = object({
|
|
|
29035
29209
|
modelId: string(),
|
|
29036
29210
|
condition: SceneConditionSchema,
|
|
29037
29211
|
capturedAt: number(),
|
|
29038
|
-
|
|
29212
|
+
/**
|
|
29213
|
+
* The reference thumbnail's media ROW id (D482).
|
|
29214
|
+
*
|
|
29215
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
29216
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
29217
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
29218
|
+
*/
|
|
29219
|
+
thumbnailMediaId: number().int().optional(),
|
|
29039
29220
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
29040
29221
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
29041
29222
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -29849,7 +30030,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29849
30030
|
* disarmed the channels it did not mention would make the Levels page and
|
|
29850
30031
|
* the Diagnostics page fight over the same value.
|
|
29851
30032
|
*/
|
|
29852
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30033
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30034
|
+
/**
|
|
30035
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30036
|
+
* retention actually deleted.
|
|
30037
|
+
*
|
|
30038
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30039
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30040
|
+
* this system is configured through this one document, and a retention audit
|
|
30041
|
+
* configured somewhere else is a second place to look when the question is
|
|
30042
|
+
* "what happened to my data".
|
|
30043
|
+
*
|
|
30044
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30045
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30046
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30047
|
+
*
|
|
30048
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30049
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30050
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30051
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30052
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30053
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30054
|
+
*/
|
|
30055
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
29853
30056
|
});
|
|
29854
30057
|
/**
|
|
29855
30058
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -29922,6 +30125,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
29922
30125
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
29923
30126
|
/** The channels ARMED right now, each with its deadline. */
|
|
29924
30127
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30128
|
+
/**
|
|
30129
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30130
|
+
*
|
|
30131
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30132
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30133
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30134
|
+
*/
|
|
30135
|
+
opsLogRetentionDays: number().int().min(0),
|
|
29925
30136
|
persisted: boolean()
|
|
29926
30137
|
});
|
|
29927
30138
|
method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
|
|
@@ -30483,7 +30694,7 @@ var StationaryObjectSchema = object({
|
|
|
30483
30694
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
30484
30695
|
label: string().optional(),
|
|
30485
30696
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
30486
|
-
|
|
30697
|
+
keyFrameMediaId: number().int().optional()
|
|
30487
30698
|
});
|
|
30488
30699
|
var CameraOccupancySnapshotSchema = object({
|
|
30489
30700
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -31639,6 +31850,12 @@ Object.freeze({
|
|
|
31639
31850
|
addonId: null,
|
|
31640
31851
|
access: "create"
|
|
31641
31852
|
},
|
|
31853
|
+
"dataStoreProvider.upsert": {
|
|
31854
|
+
capName: "data-store-provider",
|
|
31855
|
+
capScope: "system",
|
|
31856
|
+
addonId: null,
|
|
31857
|
+
access: "create"
|
|
31858
|
+
},
|
|
31642
31859
|
"dayNight.getOptions": {
|
|
31643
31860
|
capName: "day-night",
|
|
31644
31861
|
capScope: "device",
|
|
@@ -34075,6 +34292,12 @@ Object.freeze({
|
|
|
34075
34292
|
addonId: null,
|
|
34076
34293
|
access: "view"
|
|
34077
34294
|
},
|
|
34295
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34296
|
+
capName: "pipeline-analytics",
|
|
34297
|
+
capScope: "device",
|
|
34298
|
+
addonId: null,
|
|
34299
|
+
access: "view"
|
|
34300
|
+
},
|
|
34078
34301
|
"pipelineAnalytics.listRecentTracks": {
|
|
34079
34302
|
capName: "pipeline-analytics",
|
|
34080
34303
|
capScope: "device",
|
|
@@ -35503,6 +35726,12 @@ Object.freeze({
|
|
|
35503
35726
|
addonId: null,
|
|
35504
35727
|
access: "create"
|
|
35505
35728
|
},
|
|
35729
|
+
"settingsStore.upsert": {
|
|
35730
|
+
capName: "settings-store",
|
|
35731
|
+
capScope: "system",
|
|
35732
|
+
addonId: null,
|
|
35733
|
+
access: "create"
|
|
35734
|
+
},
|
|
35506
35735
|
"smtpProvider.getStatus": {
|
|
35507
35736
|
capName: "smtp-provider",
|
|
35508
35737
|
capScope: "system",
|
|
@@ -37896,6 +38125,11 @@ Object.freeze({
|
|
|
37896
38125
|
form: "single",
|
|
37897
38126
|
optional: true
|
|
37898
38127
|
}],
|
|
38128
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38129
|
+
name: "deviceIds",
|
|
38130
|
+
form: "array",
|
|
38131
|
+
optional: false
|
|
38132
|
+
}],
|
|
37899
38133
|
"pipelineAnalytics.listRecentTracks": [{
|
|
37900
38134
|
name: "deviceIds",
|
|
37901
38135
|
form: "array",
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto";
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-ZyX6jcse.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -560,7 +560,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
560
560
|
* a package zone — a newly-appeared stationary object of a package class
|
|
561
561
|
* that cleared the class / zone / dwell / size gates. Payload:
|
|
562
562
|
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
563
|
-
* entryId, className, zoneIds,
|
|
563
|
+
* entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
|
|
564
564
|
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
565
565
|
* this bus topic drives notifier rules + live UI. See
|
|
566
566
|
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
@@ -5346,7 +5346,7 @@ var ZodIssueCode = {
|
|
|
5346
5346
|
var ZodFirstPartyTypeKind;
|
|
5347
5347
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5348
5348
|
//#endregion
|
|
5349
|
-
//#region ../types/dist/sleep-
|
|
5349
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5350
5350
|
/**
|
|
5351
5351
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5352
5352
|
* window to float samples (D455).
|
|
@@ -7309,13 +7309,30 @@ new Set([
|
|
|
7309
7309
|
"scene",
|
|
7310
7310
|
"motion",
|
|
7311
7311
|
"object",
|
|
7312
|
-
"audio"
|
|
7312
|
+
"audio",
|
|
7313
|
+
"mosaic"
|
|
7313
7314
|
]);
|
|
7314
|
-
|
|
7315
|
+
/**
|
|
7316
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
7317
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
7318
|
+
* does not re-spell the list and drift from it.
|
|
7319
|
+
*/
|
|
7320
|
+
var EVENT_OWNER_TYPES = [
|
|
7315
7321
|
"motion",
|
|
7316
7322
|
"object",
|
|
7317
7323
|
"audio"
|
|
7318
|
-
]
|
|
7324
|
+
];
|
|
7325
|
+
/**
|
|
7326
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
7327
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
7328
|
+
* `(table, id)`).
|
|
7329
|
+
*
|
|
7330
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
7331
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
7332
|
+
* nothing failing until a caller asked.
|
|
7333
|
+
*/
|
|
7334
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
7335
|
+
new Set(EVENT_OWNER_TYPES);
|
|
7319
7336
|
var EncodeProfileSchema = object({
|
|
7320
7337
|
video: object({
|
|
7321
7338
|
codec: _enum([
|
|
@@ -7354,7 +7371,23 @@ var EncodeProfileSchema = object({
|
|
|
7354
7371
|
"zerolatency",
|
|
7355
7372
|
"film",
|
|
7356
7373
|
"animation"
|
|
7357
|
-
]).optional()
|
|
7374
|
+
]).optional(),
|
|
7375
|
+
/**
|
|
7376
|
+
* ONE slice per access unit.
|
|
7377
|
+
*
|
|
7378
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7379
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7380
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7381
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7382
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7383
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7384
|
+
*
|
|
7385
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7386
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7387
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7388
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7389
|
+
*/
|
|
7390
|
+
singleSlicePerFrame: boolean().optional()
|
|
7358
7391
|
}),
|
|
7359
7392
|
audio: union([literal("passthrough"), object({
|
|
7360
7393
|
codec: _enum([
|
|
@@ -7404,7 +7437,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7404
7437
|
audio: "passthrough"
|
|
7405
7438
|
};
|
|
7406
7439
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7407
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7440
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7408
7441
|
/**
|
|
7409
7442
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7410
7443
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -12449,6 +12482,16 @@ method(object({
|
|
|
12449
12482
|
filter: QueryFilterSchema.optional(),
|
|
12450
12483
|
columns: array(string()).readonly().optional()
|
|
12451
12484
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12485
|
+
namespace: string().optional(),
|
|
12486
|
+
collection: string(),
|
|
12487
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12488
|
+
* index on the collection. Never empty. */
|
|
12489
|
+
conflict: array(string()).readonly(),
|
|
12490
|
+
record: BulkRecordSchema
|
|
12491
|
+
}), object({
|
|
12492
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12493
|
+
* row's own id on an update. */
|
|
12494
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12452
12495
|
namespace: string().optional(),
|
|
12453
12496
|
collection: string(),
|
|
12454
12497
|
record: object({
|
|
@@ -12583,6 +12626,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12583
12626
|
id: union([string(), number()]) }), {
|
|
12584
12627
|
kind: "mutation",
|
|
12585
12628
|
auth: "admin"
|
|
12629
|
+
}), method(object({
|
|
12630
|
+
namespace: string().optional(),
|
|
12631
|
+
collection: string(),
|
|
12632
|
+
conflict: array(string()).readonly(),
|
|
12633
|
+
record: BulkRecordSchema
|
|
12634
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12635
|
+
kind: "mutation",
|
|
12636
|
+
auth: "admin"
|
|
12586
12637
|
}), method(object({
|
|
12587
12638
|
namespace: string().optional(),
|
|
12588
12639
|
collection: string(),
|
|
@@ -18892,8 +18943,8 @@ var TrackPositionSchema = object({
|
|
|
18892
18943
|
var TrackSnapshotSchema = object({
|
|
18893
18944
|
timestamp: number(),
|
|
18894
18945
|
position: TrackPositionSchema,
|
|
18895
|
-
/**
|
|
18896
|
-
|
|
18946
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
18947
|
+
mediaId: number().int()
|
|
18897
18948
|
});
|
|
18898
18949
|
/**
|
|
18899
18950
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -19497,14 +19548,14 @@ var ObjectEventSchema = object({
|
|
|
19497
19548
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
19498
19549
|
frameWidth: number().optional(),
|
|
19499
19550
|
frameHeight: number().optional(),
|
|
19500
|
-
/**
|
|
19501
|
-
|
|
19502
|
-
/** Design B:
|
|
19551
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
19552
|
+
mediaId: number().int().optional(),
|
|
19553
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
19503
19554
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
19504
|
-
* (`/addon/<addonId>/event-media/<
|
|
19555
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
19505
19556
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
19506
|
-
* sources — consumers fall back to `
|
|
19507
|
-
|
|
19557
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
19558
|
+
keyFrameMediaId: number().int().optional(),
|
|
19508
19559
|
/** Populated by B5 (recording playback URL for this event). */
|
|
19509
19560
|
mediaUrl: string().optional(),
|
|
19510
19561
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -19554,7 +19605,7 @@ var MediaFileKindEnum = _enum([
|
|
|
19554
19605
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
19555
19606
|
*
|
|
19556
19607
|
* `url` points at the `event-media` data plane
|
|
19557
|
-
* (`/addon/<addonId>/event-media/<
|
|
19608
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
19558
19609
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
19559
19610
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
19560
19611
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -19562,10 +19613,13 @@ var MediaFileKindEnum = _enum([
|
|
|
19562
19613
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
19563
19614
|
* (per-device scoping).
|
|
19564
19615
|
*
|
|
19565
|
-
* The URL is built from the row's
|
|
19566
|
-
*
|
|
19616
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
19617
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
19618
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
19567
19619
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
19568
|
-
* `faceCrop`/`plateCrop
|
|
19620
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
19621
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
19622
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
19569
19623
|
*
|
|
19570
19624
|
* ## `base64` is TRANSITIONAL and is going away
|
|
19571
19625
|
*
|
|
@@ -19578,7 +19632,19 @@ var MediaFileKindEnum = _enum([
|
|
|
19578
19632
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
19579
19633
|
*/
|
|
19580
19634
|
var MediaFileSchema = object({
|
|
19581
|
-
|
|
19635
|
+
/**
|
|
19636
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
19637
|
+
*
|
|
19638
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
19639
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
19640
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
19641
|
+
* different rows that spell the same number, and a track whose
|
|
19642
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
19643
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
19644
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
19645
|
+
* at all.
|
|
19646
|
+
*/
|
|
19647
|
+
mediaId: number().int(),
|
|
19582
19648
|
kind: MediaFileKindEnum,
|
|
19583
19649
|
sizeBytes: number(),
|
|
19584
19650
|
timestamp: number()
|
|
@@ -19686,7 +19752,7 @@ var RetrainTrackSchema = object({
|
|
|
19686
19752
|
});
|
|
19687
19753
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
19688
19754
|
var RetrainFrameCandidateSchema = object({
|
|
19689
|
-
|
|
19755
|
+
mediaId: number().int(),
|
|
19690
19756
|
kind: MediaFileKindEnum,
|
|
19691
19757
|
timestamp: number(),
|
|
19692
19758
|
sizeBytes: number().int(),
|
|
@@ -19700,7 +19766,7 @@ var RetrainFrameSchema = object({
|
|
|
19700
19766
|
deviceId: number(),
|
|
19701
19767
|
trackId: string(),
|
|
19702
19768
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
19703
|
-
|
|
19769
|
+
sourceMediaId: number().int(),
|
|
19704
19770
|
sourceKind: MediaFileKindEnum,
|
|
19705
19771
|
sizeBytes: number().int(),
|
|
19706
19772
|
width: number().int(),
|
|
@@ -19716,7 +19782,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
19716
19782
|
var RetrainFrameSelectionSchema = object({
|
|
19717
19783
|
copied: array(RetrainFrameSchema).readonly(),
|
|
19718
19784
|
refused: array(object({
|
|
19719
|
-
|
|
19785
|
+
sourceMediaId: number().int(),
|
|
19720
19786
|
reason: RetrainCopyRefusalSchema
|
|
19721
19787
|
})).readonly()
|
|
19722
19788
|
});
|
|
@@ -19724,7 +19790,7 @@ var RetrainFrameListSchema = object({
|
|
|
19724
19790
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
19725
19791
|
copies: array(RetrainFrameSchema).readonly(),
|
|
19726
19792
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
19727
|
-
|
|
19793
|
+
autoPickMediaId: number().int().optional()
|
|
19728
19794
|
});
|
|
19729
19795
|
/** What the operator asked the assist to look for. */
|
|
19730
19796
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -19819,9 +19885,11 @@ var RecentTracksQueryInput = object({
|
|
|
19819
19885
|
});
|
|
19820
19886
|
/**
|
|
19821
19887
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
19822
|
-
* `
|
|
19823
|
-
* served by the event-media plane
|
|
19824
|
-
* member visible has been materialised
|
|
19888
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
19889
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
19890
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
19891
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
19892
|
+
* row once event ids became per-table rowids).
|
|
19825
19893
|
*/
|
|
19826
19894
|
var SummarySchema = object({
|
|
19827
19895
|
id: string(),
|
|
@@ -19830,19 +19898,115 @@ var SummarySchema = object({
|
|
|
19830
19898
|
lastActiveAt: number(),
|
|
19831
19899
|
sealedAt: number().nullable(),
|
|
19832
19900
|
memberCount: number().int().nonnegative(),
|
|
19833
|
-
|
|
19901
|
+
groupShotMediaId: number().int().nullable()
|
|
19834
19902
|
});
|
|
19835
19903
|
var SummariesQueryInput = object({
|
|
19836
19904
|
deviceIds: array(number()).min(1),
|
|
19837
19905
|
since: number().optional(),
|
|
19838
19906
|
until: number().optional(),
|
|
19839
|
-
limit: number().int().min(1).max(200).default(50)
|
|
19907
|
+
limit: number().int().min(1).max(200).default(50),
|
|
19908
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
19909
|
+
* meaning of "dog" on every summary surface. */
|
|
19910
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19840
19911
|
});
|
|
19841
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19842
19912
|
var SummaryDetailSchema = object({
|
|
19843
19913
|
summary: SummarySchema,
|
|
19844
|
-
/**
|
|
19845
|
-
|
|
19914
|
+
/** Members in absorption order, oldest join first. */
|
|
19915
|
+
members: array(object({
|
|
19916
|
+
trackId: string(),
|
|
19917
|
+
/**
|
|
19918
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
19919
|
+
* and the track no longer exists to fill it.
|
|
19920
|
+
*
|
|
19921
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
19922
|
+
* class afterwards, and a group's composition is the history of who came
|
|
19923
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
19924
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
19925
|
+
* drift from the members it claims to describe.
|
|
19926
|
+
*/
|
|
19927
|
+
className: string().nullable(),
|
|
19928
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
19929
|
+
role: _enum([
|
|
19930
|
+
"primary",
|
|
19931
|
+
"sibling",
|
|
19932
|
+
"child"
|
|
19933
|
+
]).nullable(),
|
|
19934
|
+
joinedAt: number(),
|
|
19935
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
19936
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
19937
|
+
label: string().optional(),
|
|
19938
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
19939
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
19940
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
19941
|
+
subLabel: string().optional()
|
|
19942
|
+
})).readonly()
|
|
19943
|
+
});
|
|
19944
|
+
/**
|
|
19945
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
19946
|
+
*
|
|
19947
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
19948
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
19949
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
19950
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
19951
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
19952
|
+
* draw two hundred badges.
|
|
19953
|
+
*/
|
|
19954
|
+
var SummaryListItemSchema = object({
|
|
19955
|
+
summary: SummarySchema,
|
|
19956
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
19957
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
19958
|
+
classes: array(object({
|
|
19959
|
+
className: string().nullable(),
|
|
19960
|
+
count: number().int().positive()
|
|
19961
|
+
})).readonly()
|
|
19962
|
+
});
|
|
19963
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
19964
|
+
/**
|
|
19965
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
19966
|
+
*
|
|
19967
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
19968
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
19969
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
19970
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
19971
|
+
* "newest" means, on one screen.
|
|
19972
|
+
*/
|
|
19973
|
+
var RecentSummariesQueryInput = object({
|
|
19974
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
19975
|
+
deviceIds: array(number()),
|
|
19976
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
19977
|
+
since: number().optional(),
|
|
19978
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
19979
|
+
until: number().optional(),
|
|
19980
|
+
limit: number().int().min(1).max(500).default(100),
|
|
19981
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
19982
|
+
cursor: string().optional(),
|
|
19983
|
+
/**
|
|
19984
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
19985
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
19986
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
19987
|
+
* make the operator's one filter component produce two shapes.
|
|
19988
|
+
*
|
|
19989
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
19990
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
19991
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
19992
|
+
* about its primary.
|
|
19993
|
+
*
|
|
19994
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
19995
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
19996
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
19997
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
19998
|
+
* that read only the class would answer "animal" and never "dog".
|
|
19999
|
+
*
|
|
20000
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20001
|
+
*/
|
|
20002
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20003
|
+
});
|
|
20004
|
+
var RecentSummariesPageSchema = object({
|
|
20005
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20006
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20007
|
+
* whichever feed drew it. */
|
|
20008
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20009
|
+
nextCursor: string().nullable()
|
|
19846
20010
|
});
|
|
19847
20011
|
var RecentTracksPageSchema = object({
|
|
19848
20012
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20256,7 +20420,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20256
20420
|
classes: array(string()).optional(),
|
|
20257
20421
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20258
20422
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20259
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20423
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20260
20424
|
kind: "mutation",
|
|
20261
20425
|
auth: "admin"
|
|
20262
20426
|
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
|
|
@@ -20384,7 +20548,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20384
20548
|
}), method(object({
|
|
20385
20549
|
deviceId: number(),
|
|
20386
20550
|
trackId: string(),
|
|
20387
|
-
|
|
20551
|
+
mediaIds: array(number().int()).min(1)
|
|
20388
20552
|
}), RetrainFrameSelectionSchema, {
|
|
20389
20553
|
kind: "mutation",
|
|
20390
20554
|
auth: "admin"
|
|
@@ -20452,7 +20616,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20452
20616
|
kind: "query",
|
|
20453
20617
|
auth: "admin"
|
|
20454
20618
|
}), method(object({
|
|
20455
|
-
|
|
20619
|
+
/** Which of the three event tables owns the row. */
|
|
20620
|
+
ownerType: EventOwnerTypeSchema,
|
|
20621
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
20622
|
+
eventId: number().int(),
|
|
20456
20623
|
kind: MediaFileKindEnum.optional(),
|
|
20457
20624
|
deviceId: number()
|
|
20458
20625
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -20463,7 +20630,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20463
20630
|
trackId: string(),
|
|
20464
20631
|
deviceId: number()
|
|
20465
20632
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
20466
|
-
|
|
20633
|
+
ownerType: EventOwnerTypeSchema,
|
|
20634
|
+
eventId: number().int(),
|
|
20467
20635
|
deviceId: number()
|
|
20468
20636
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
20469
20637
|
kind: "mutation",
|
|
@@ -24926,8 +25094,8 @@ var IdentitySchema = object({
|
|
|
24926
25094
|
id: string(),
|
|
24927
25095
|
name: string(),
|
|
24928
25096
|
sampleCount: number().int().nonnegative(),
|
|
24929
|
-
|
|
24930
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
25097
|
+
coverMediaId: number().int().optional(),
|
|
25098
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
24931
25099
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
24932
25100
|
coverBase64: string().optional()
|
|
24933
25101
|
});
|
|
@@ -24953,8 +25121,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
24953
25121
|
enrolledAt: number().int(),
|
|
24954
25122
|
deviceId: number().int().optional(),
|
|
24955
25123
|
source: _enum(["detected", "photo"]),
|
|
24956
|
-
/** The enrolled crop's media
|
|
24957
|
-
|
|
25124
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
25125
|
+
mediaId: number().int().optional(),
|
|
24958
25126
|
/**
|
|
24959
25127
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
24960
25128
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -25023,15 +25191,15 @@ var FaceInfoSchema = object({
|
|
|
25023
25191
|
*/
|
|
25024
25192
|
cropUrl: string().optional(),
|
|
25025
25193
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
25026
|
-
* view draw the box over the native `
|
|
25194
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
25027
25195
|
* legacy rows written before design B. */
|
|
25028
25196
|
faceBbox: BoundingBoxSchema.optional(),
|
|
25029
25197
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
25030
25198
|
* Fetch the native JPEG via the event-media data-plane
|
|
25031
|
-
* (`/addon/<addonId>/event-media/<
|
|
25199
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
25032
25200
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
25033
25201
|
* back to the inline `base64` face crop. */
|
|
25034
|
-
|
|
25202
|
+
keyFrameMediaId: number().int().optional(),
|
|
25035
25203
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
25036
25204
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
25037
25205
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -25100,11 +25268,14 @@ var FaceClusterSchema = object({
|
|
|
25100
25268
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
25101
25269
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
25102
25270
|
*
|
|
25103
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
25104
|
-
* media
|
|
25271
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
25272
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
25273
|
+
* access decision.
|
|
25105
25274
|
*/
|
|
25106
25275
|
var MediaFileLiteSchema$1 = object({
|
|
25107
|
-
|
|
25276
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
25277
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
25278
|
+
mediaId: number().int(),
|
|
25108
25279
|
kind: string(),
|
|
25109
25280
|
url: string(),
|
|
25110
25281
|
sizeBytes: number(),
|
|
@@ -25121,7 +25292,7 @@ method(object({
|
|
|
25121
25292
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
25122
25293
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
25123
25294
|
*
|
|
25124
|
-
* Nothing loses its avatar: `
|
|
25295
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
25125
25296
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
25126
25297
|
*
|
|
25127
25298
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -27589,8 +27760,8 @@ var VehicleSchema = object({
|
|
|
27589
27760
|
id: string(),
|
|
27590
27761
|
name: string(),
|
|
27591
27762
|
sampleCount: number().int().nonnegative(),
|
|
27592
|
-
|
|
27593
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
27763
|
+
coverMediaId: number().int().optional(),
|
|
27764
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
27594
27765
|
coverBase64: string().optional()
|
|
27595
27766
|
});
|
|
27596
27767
|
var VehicleSampleInfoSchema = object({
|
|
@@ -27623,7 +27794,7 @@ var PlateInfoSchema = object({
|
|
|
27623
27794
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
27624
27795
|
plateBbox: BoundingBoxSchema.optional(),
|
|
27625
27796
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
27626
|
-
|
|
27797
|
+
keyFrameMediaId: number().int().optional(),
|
|
27627
27798
|
base64: string().optional(),
|
|
27628
27799
|
/**
|
|
27629
27800
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -27644,11 +27815,14 @@ var PlateInfoSchema = object({
|
|
|
27644
27815
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
27645
27816
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
27646
27817
|
*
|
|
27647
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
27648
|
-
* media
|
|
27818
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
27819
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
27820
|
+
* access decision.
|
|
27649
27821
|
*/
|
|
27650
27822
|
var MediaFileLiteSchema = object({
|
|
27651
|
-
|
|
27823
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
27824
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
27825
|
+
mediaId: number().int(),
|
|
27652
27826
|
kind: string(),
|
|
27653
27827
|
url: string(),
|
|
27654
27828
|
sizeBytes: number(),
|
|
@@ -27707,7 +27881,7 @@ method(object({
|
|
|
27707
27881
|
}), method(object({
|
|
27708
27882
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
27709
27883
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
27710
|
-
* option; `
|
|
27884
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
27711
27885
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
27712
27886
|
* resolves to `false` and is exactly the intended default. */
|
|
27713
27887
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -29031,7 +29205,14 @@ var SceneReferenceSchema = object({
|
|
|
29031
29205
|
modelId: string(),
|
|
29032
29206
|
condition: SceneConditionSchema,
|
|
29033
29207
|
capturedAt: number(),
|
|
29034
|
-
|
|
29208
|
+
/**
|
|
29209
|
+
* The reference thumbnail's media ROW id (D482).
|
|
29210
|
+
*
|
|
29211
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
29212
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
29213
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
29214
|
+
*/
|
|
29215
|
+
thumbnailMediaId: number().int().optional(),
|
|
29035
29216
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
29036
29217
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
29037
29218
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -29845,7 +30026,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29845
30026
|
* disarmed the channels it did not mention would make the Levels page and
|
|
29846
30027
|
* the Diagnostics page fight over the same value.
|
|
29847
30028
|
*/
|
|
29848
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30029
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30030
|
+
/**
|
|
30031
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30032
|
+
* retention actually deleted.
|
|
30033
|
+
*
|
|
30034
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30035
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30036
|
+
* this system is configured through this one document, and a retention audit
|
|
30037
|
+
* configured somewhere else is a second place to look when the question is
|
|
30038
|
+
* "what happened to my data".
|
|
30039
|
+
*
|
|
30040
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30041
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30042
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30043
|
+
*
|
|
30044
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30045
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30046
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30047
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30048
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30049
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30050
|
+
*/
|
|
30051
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
29849
30052
|
});
|
|
29850
30053
|
/**
|
|
29851
30054
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -29918,6 +30121,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
29918
30121
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
29919
30122
|
/** The channels ARMED right now, each with its deadline. */
|
|
29920
30123
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30124
|
+
/**
|
|
30125
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30126
|
+
*
|
|
30127
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30128
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30129
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30130
|
+
*/
|
|
30131
|
+
opsLogRetentionDays: number().int().min(0),
|
|
29921
30132
|
persisted: boolean()
|
|
29922
30133
|
});
|
|
29923
30134
|
method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
|
|
@@ -30479,7 +30690,7 @@ var StationaryObjectSchema = object({
|
|
|
30479
30690
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
30480
30691
|
label: string().optional(),
|
|
30481
30692
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
30482
|
-
|
|
30693
|
+
keyFrameMediaId: number().int().optional()
|
|
30483
30694
|
});
|
|
30484
30695
|
var CameraOccupancySnapshotSchema = object({
|
|
30485
30696
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -31635,6 +31846,12 @@ Object.freeze({
|
|
|
31635
31846
|
addonId: null,
|
|
31636
31847
|
access: "create"
|
|
31637
31848
|
},
|
|
31849
|
+
"dataStoreProvider.upsert": {
|
|
31850
|
+
capName: "data-store-provider",
|
|
31851
|
+
capScope: "system",
|
|
31852
|
+
addonId: null,
|
|
31853
|
+
access: "create"
|
|
31854
|
+
},
|
|
31638
31855
|
"dayNight.getOptions": {
|
|
31639
31856
|
capName: "day-night",
|
|
31640
31857
|
capScope: "device",
|
|
@@ -34071,6 +34288,12 @@ Object.freeze({
|
|
|
34071
34288
|
addonId: null,
|
|
34072
34289
|
access: "view"
|
|
34073
34290
|
},
|
|
34291
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34292
|
+
capName: "pipeline-analytics",
|
|
34293
|
+
capScope: "device",
|
|
34294
|
+
addonId: null,
|
|
34295
|
+
access: "view"
|
|
34296
|
+
},
|
|
34074
34297
|
"pipelineAnalytics.listRecentTracks": {
|
|
34075
34298
|
capName: "pipeline-analytics",
|
|
34076
34299
|
capScope: "device",
|
|
@@ -35499,6 +35722,12 @@ Object.freeze({
|
|
|
35499
35722
|
addonId: null,
|
|
35500
35723
|
access: "create"
|
|
35501
35724
|
},
|
|
35725
|
+
"settingsStore.upsert": {
|
|
35726
|
+
capName: "settings-store",
|
|
35727
|
+
capScope: "system",
|
|
35728
|
+
addonId: null,
|
|
35729
|
+
access: "create"
|
|
35730
|
+
},
|
|
35502
35731
|
"smtpProvider.getStatus": {
|
|
35503
35732
|
capName: "smtp-provider",
|
|
35504
35733
|
capScope: "system",
|
|
@@ -37892,6 +38121,11 @@ Object.freeze({
|
|
|
37892
38121
|
form: "single",
|
|
37893
38122
|
optional: true
|
|
37894
38123
|
}],
|
|
38124
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38125
|
+
name: "deviceIds",
|
|
38126
|
+
form: "array",
|
|
38127
|
+
optional: false
|
|
38128
|
+
}],
|
|
37895
38129
|
"pipelineAnalytics.listRecentTracks": [{
|
|
37896
38130
|
name: "deviceIds",
|
|
37897
38131
|
form: "array",
|