@camstack/addon-provider-velux 0.2.99 → 0.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/addon.js +292 -58
- package/dist/addon.mjs +292 -58
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
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).
|
|
@@ -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
|
|
@@ -12518,6 +12551,16 @@ method(object({
|
|
|
12518
12551
|
filter: QueryFilterSchema.optional(),
|
|
12519
12552
|
columns: array(string()).readonly().optional()
|
|
12520
12553
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12554
|
+
namespace: string().optional(),
|
|
12555
|
+
collection: string(),
|
|
12556
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12557
|
+
* index on the collection. Never empty. */
|
|
12558
|
+
conflict: array(string()).readonly(),
|
|
12559
|
+
record: BulkRecordSchema
|
|
12560
|
+
}), object({
|
|
12561
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12562
|
+
* row's own id on an update. */
|
|
12563
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12521
12564
|
namespace: string().optional(),
|
|
12522
12565
|
collection: string(),
|
|
12523
12566
|
record: object({
|
|
@@ -12652,6 +12695,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12652
12695
|
id: union([string(), number()]) }), {
|
|
12653
12696
|
kind: "mutation",
|
|
12654
12697
|
auth: "admin"
|
|
12698
|
+
}), method(object({
|
|
12699
|
+
namespace: string().optional(),
|
|
12700
|
+
collection: string(),
|
|
12701
|
+
conflict: array(string()).readonly(),
|
|
12702
|
+
record: BulkRecordSchema
|
|
12703
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12704
|
+
kind: "mutation",
|
|
12705
|
+
auth: "admin"
|
|
12655
12706
|
}), method(object({
|
|
12656
12707
|
namespace: string().optional(),
|
|
12657
12708
|
collection: string(),
|
|
@@ -19134,8 +19185,8 @@ var TrackPositionSchema = object({
|
|
|
19134
19185
|
var TrackSnapshotSchema = object({
|
|
19135
19186
|
timestamp: number(),
|
|
19136
19187
|
position: TrackPositionSchema,
|
|
19137
|
-
/**
|
|
19138
|
-
|
|
19188
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
19189
|
+
mediaId: number().int()
|
|
19139
19190
|
});
|
|
19140
19191
|
/**
|
|
19141
19192
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -19739,14 +19790,14 @@ var ObjectEventSchema = object({
|
|
|
19739
19790
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
19740
19791
|
frameWidth: number().optional(),
|
|
19741
19792
|
frameHeight: number().optional(),
|
|
19742
|
-
/**
|
|
19743
|
-
|
|
19744
|
-
/** Design B:
|
|
19793
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
19794
|
+
mediaId: number().int().optional(),
|
|
19795
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
19745
19796
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
19746
|
-
* (`/addon/<addonId>/event-media/<
|
|
19797
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
19747
19798
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
19748
|
-
* sources — consumers fall back to `
|
|
19749
|
-
|
|
19799
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
19800
|
+
keyFrameMediaId: number().int().optional(),
|
|
19750
19801
|
/** Populated by B5 (recording playback URL for this event). */
|
|
19751
19802
|
mediaUrl: string().optional(),
|
|
19752
19803
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -19796,7 +19847,7 @@ var MediaFileKindEnum = _enum([
|
|
|
19796
19847
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
19797
19848
|
*
|
|
19798
19849
|
* `url` points at the `event-media` data plane
|
|
19799
|
-
* (`/addon/<addonId>/event-media/<
|
|
19850
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
19800
19851
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
19801
19852
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
19802
19853
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -19804,10 +19855,13 @@ var MediaFileKindEnum = _enum([
|
|
|
19804
19855
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
19805
19856
|
* (per-device scoping).
|
|
19806
19857
|
*
|
|
19807
|
-
* The URL is built from the row's
|
|
19808
|
-
*
|
|
19858
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
19859
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
19860
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
19809
19861
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
19810
|
-
* `faceCrop`/`plateCrop
|
|
19862
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
19863
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
19864
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
19811
19865
|
*
|
|
19812
19866
|
* ## `base64` is TRANSITIONAL and is going away
|
|
19813
19867
|
*
|
|
@@ -19820,7 +19874,19 @@ var MediaFileKindEnum = _enum([
|
|
|
19820
19874
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
19821
19875
|
*/
|
|
19822
19876
|
var MediaFileSchema = object({
|
|
19823
|
-
|
|
19877
|
+
/**
|
|
19878
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
19879
|
+
*
|
|
19880
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
19881
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
19882
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
19883
|
+
* different rows that spell the same number, and a track whose
|
|
19884
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
19885
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
19886
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
19887
|
+
* at all.
|
|
19888
|
+
*/
|
|
19889
|
+
mediaId: number().int(),
|
|
19824
19890
|
kind: MediaFileKindEnum,
|
|
19825
19891
|
sizeBytes: number(),
|
|
19826
19892
|
timestamp: number()
|
|
@@ -19928,7 +19994,7 @@ var RetrainTrackSchema = object({
|
|
|
19928
19994
|
});
|
|
19929
19995
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
19930
19996
|
var RetrainFrameCandidateSchema = object({
|
|
19931
|
-
|
|
19997
|
+
mediaId: number().int(),
|
|
19932
19998
|
kind: MediaFileKindEnum,
|
|
19933
19999
|
timestamp: number(),
|
|
19934
20000
|
sizeBytes: number().int(),
|
|
@@ -19942,7 +20008,7 @@ var RetrainFrameSchema = object({
|
|
|
19942
20008
|
deviceId: number(),
|
|
19943
20009
|
trackId: string(),
|
|
19944
20010
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
19945
|
-
|
|
20011
|
+
sourceMediaId: number().int(),
|
|
19946
20012
|
sourceKind: MediaFileKindEnum,
|
|
19947
20013
|
sizeBytes: number().int(),
|
|
19948
20014
|
width: number().int(),
|
|
@@ -19958,7 +20024,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
19958
20024
|
var RetrainFrameSelectionSchema = object({
|
|
19959
20025
|
copied: array(RetrainFrameSchema).readonly(),
|
|
19960
20026
|
refused: array(object({
|
|
19961
|
-
|
|
20027
|
+
sourceMediaId: number().int(),
|
|
19962
20028
|
reason: RetrainCopyRefusalSchema
|
|
19963
20029
|
})).readonly()
|
|
19964
20030
|
});
|
|
@@ -19966,7 +20032,7 @@ var RetrainFrameListSchema = object({
|
|
|
19966
20032
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
19967
20033
|
copies: array(RetrainFrameSchema).readonly(),
|
|
19968
20034
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
19969
|
-
|
|
20035
|
+
autoPickMediaId: number().int().optional()
|
|
19970
20036
|
});
|
|
19971
20037
|
/** What the operator asked the assist to look for. */
|
|
19972
20038
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -20061,9 +20127,11 @@ var RecentTracksQueryInput = object({
|
|
|
20061
20127
|
});
|
|
20062
20128
|
/**
|
|
20063
20129
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
20064
|
-
* `
|
|
20065
|
-
* served by the event-media plane
|
|
20066
|
-
* member visible has been materialised
|
|
20130
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
20131
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
20132
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
20133
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
20134
|
+
* row once event ids became per-table rowids).
|
|
20067
20135
|
*/
|
|
20068
20136
|
var SummarySchema = object({
|
|
20069
20137
|
id: string(),
|
|
@@ -20072,19 +20140,115 @@ var SummarySchema = object({
|
|
|
20072
20140
|
lastActiveAt: number(),
|
|
20073
20141
|
sealedAt: number().nullable(),
|
|
20074
20142
|
memberCount: number().int().nonnegative(),
|
|
20075
|
-
|
|
20143
|
+
groupShotMediaId: number().int().nullable()
|
|
20076
20144
|
});
|
|
20077
20145
|
var SummariesQueryInput = object({
|
|
20078
20146
|
deviceIds: array(number()).min(1),
|
|
20079
20147
|
since: number().optional(),
|
|
20080
20148
|
until: number().optional(),
|
|
20081
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20149
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20150
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20151
|
+
* meaning of "dog" on every summary surface. */
|
|
20152
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20082
20153
|
});
|
|
20083
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20084
20154
|
var SummaryDetailSchema = object({
|
|
20085
20155
|
summary: SummarySchema,
|
|
20086
|
-
/**
|
|
20087
|
-
|
|
20156
|
+
/** Members in absorption order, oldest join first. */
|
|
20157
|
+
members: array(object({
|
|
20158
|
+
trackId: string(),
|
|
20159
|
+
/**
|
|
20160
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20161
|
+
* and the track no longer exists to fill it.
|
|
20162
|
+
*
|
|
20163
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20164
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20165
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20166
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20167
|
+
* drift from the members it claims to describe.
|
|
20168
|
+
*/
|
|
20169
|
+
className: string().nullable(),
|
|
20170
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20171
|
+
role: _enum([
|
|
20172
|
+
"primary",
|
|
20173
|
+
"sibling",
|
|
20174
|
+
"child"
|
|
20175
|
+
]).nullable(),
|
|
20176
|
+
joinedAt: number(),
|
|
20177
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20178
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20179
|
+
label: string().optional(),
|
|
20180
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20181
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20182
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20183
|
+
subLabel: string().optional()
|
|
20184
|
+
})).readonly()
|
|
20185
|
+
});
|
|
20186
|
+
/**
|
|
20187
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20188
|
+
*
|
|
20189
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20190
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20191
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20192
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20193
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20194
|
+
* draw two hundred badges.
|
|
20195
|
+
*/
|
|
20196
|
+
var SummaryListItemSchema = object({
|
|
20197
|
+
summary: SummarySchema,
|
|
20198
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20199
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20200
|
+
classes: array(object({
|
|
20201
|
+
className: string().nullable(),
|
|
20202
|
+
count: number().int().positive()
|
|
20203
|
+
})).readonly()
|
|
20204
|
+
});
|
|
20205
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20206
|
+
/**
|
|
20207
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20208
|
+
*
|
|
20209
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20210
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20211
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20212
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20213
|
+
* "newest" means, on one screen.
|
|
20214
|
+
*/
|
|
20215
|
+
var RecentSummariesQueryInput = object({
|
|
20216
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20217
|
+
deviceIds: array(number()),
|
|
20218
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20219
|
+
since: number().optional(),
|
|
20220
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20221
|
+
until: number().optional(),
|
|
20222
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20223
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20224
|
+
cursor: string().optional(),
|
|
20225
|
+
/**
|
|
20226
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20227
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20228
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20229
|
+
* make the operator's one filter component produce two shapes.
|
|
20230
|
+
*
|
|
20231
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20232
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20233
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20234
|
+
* about its primary.
|
|
20235
|
+
*
|
|
20236
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20237
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20238
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20239
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20240
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20241
|
+
*
|
|
20242
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20243
|
+
*/
|
|
20244
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20245
|
+
});
|
|
20246
|
+
var RecentSummariesPageSchema = object({
|
|
20247
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20248
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20249
|
+
* whichever feed drew it. */
|
|
20250
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20251
|
+
nextCursor: string().nullable()
|
|
20088
20252
|
});
|
|
20089
20253
|
var RecentTracksPageSchema = object({
|
|
20090
20254
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20498,7 +20662,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20498
20662
|
classes: array(string()).optional(),
|
|
20499
20663
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20500
20664
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20501
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20665
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20502
20666
|
kind: "mutation",
|
|
20503
20667
|
auth: "admin"
|
|
20504
20668
|
}), 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({
|
|
@@ -20626,7 +20790,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20626
20790
|
}), method(object({
|
|
20627
20791
|
deviceId: number(),
|
|
20628
20792
|
trackId: string(),
|
|
20629
|
-
|
|
20793
|
+
mediaIds: array(number().int()).min(1)
|
|
20630
20794
|
}), RetrainFrameSelectionSchema, {
|
|
20631
20795
|
kind: "mutation",
|
|
20632
20796
|
auth: "admin"
|
|
@@ -20694,7 +20858,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20694
20858
|
kind: "query",
|
|
20695
20859
|
auth: "admin"
|
|
20696
20860
|
}), method(object({
|
|
20697
|
-
|
|
20861
|
+
/** Which of the three event tables owns the row. */
|
|
20862
|
+
ownerType: EventOwnerTypeSchema,
|
|
20863
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
20864
|
+
eventId: number().int(),
|
|
20698
20865
|
kind: MediaFileKindEnum.optional(),
|
|
20699
20866
|
deviceId: number()
|
|
20700
20867
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -20705,7 +20872,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20705
20872
|
trackId: string(),
|
|
20706
20873
|
deviceId: number()
|
|
20707
20874
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
20708
|
-
|
|
20875
|
+
ownerType: EventOwnerTypeSchema,
|
|
20876
|
+
eventId: number().int(),
|
|
20709
20877
|
deviceId: number()
|
|
20710
20878
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
20711
20879
|
kind: "mutation",
|
|
@@ -25898,8 +26066,8 @@ var IdentitySchema = object({
|
|
|
25898
26066
|
id: string(),
|
|
25899
26067
|
name: string(),
|
|
25900
26068
|
sampleCount: number().int().nonnegative(),
|
|
25901
|
-
|
|
25902
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
26069
|
+
coverMediaId: number().int().optional(),
|
|
26070
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
25903
26071
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
25904
26072
|
coverBase64: string().optional()
|
|
25905
26073
|
});
|
|
@@ -25925,8 +26093,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
25925
26093
|
enrolledAt: number().int(),
|
|
25926
26094
|
deviceId: number().int().optional(),
|
|
25927
26095
|
source: _enum(["detected", "photo"]),
|
|
25928
|
-
/** The enrolled crop's media
|
|
25929
|
-
|
|
26096
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
26097
|
+
mediaId: number().int().optional(),
|
|
25930
26098
|
/**
|
|
25931
26099
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
25932
26100
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -25995,15 +26163,15 @@ var FaceInfoSchema = object({
|
|
|
25995
26163
|
*/
|
|
25996
26164
|
cropUrl: string().optional(),
|
|
25997
26165
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
25998
|
-
* view draw the box over the native `
|
|
26166
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
25999
26167
|
* legacy rows written before design B. */
|
|
26000
26168
|
faceBbox: BoundingBoxSchema.optional(),
|
|
26001
26169
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
26002
26170
|
* Fetch the native JPEG via the event-media data-plane
|
|
26003
|
-
* (`/addon/<addonId>/event-media/<
|
|
26171
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
26004
26172
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
26005
26173
|
* back to the inline `base64` face crop. */
|
|
26006
|
-
|
|
26174
|
+
keyFrameMediaId: number().int().optional(),
|
|
26007
26175
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
26008
26176
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
26009
26177
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -26072,11 +26240,14 @@ var FaceClusterSchema = object({
|
|
|
26072
26240
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
26073
26241
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
26074
26242
|
*
|
|
26075
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
26076
|
-
* media
|
|
26243
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
26244
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
26245
|
+
* access decision.
|
|
26077
26246
|
*/
|
|
26078
26247
|
var MediaFileLiteSchema$1 = object({
|
|
26079
|
-
|
|
26248
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
26249
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
26250
|
+
mediaId: number().int(),
|
|
26080
26251
|
kind: string(),
|
|
26081
26252
|
url: string(),
|
|
26082
26253
|
sizeBytes: number(),
|
|
@@ -26093,7 +26264,7 @@ method(object({
|
|
|
26093
26264
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
26094
26265
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
26095
26266
|
*
|
|
26096
|
-
* Nothing loses its avatar: `
|
|
26267
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
26097
26268
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
26098
26269
|
*
|
|
26099
26270
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -29456,8 +29627,8 @@ var VehicleSchema = object({
|
|
|
29456
29627
|
id: string(),
|
|
29457
29628
|
name: string(),
|
|
29458
29629
|
sampleCount: number().int().nonnegative(),
|
|
29459
|
-
|
|
29460
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
29630
|
+
coverMediaId: number().int().optional(),
|
|
29631
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
29461
29632
|
coverBase64: string().optional()
|
|
29462
29633
|
});
|
|
29463
29634
|
var VehicleSampleInfoSchema = object({
|
|
@@ -29490,7 +29661,7 @@ var PlateInfoSchema = object({
|
|
|
29490
29661
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
29491
29662
|
plateBbox: BoundingBoxSchema.optional(),
|
|
29492
29663
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
29493
|
-
|
|
29664
|
+
keyFrameMediaId: number().int().optional(),
|
|
29494
29665
|
base64: string().optional(),
|
|
29495
29666
|
/**
|
|
29496
29667
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -29511,11 +29682,14 @@ var PlateInfoSchema = object({
|
|
|
29511
29682
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
29512
29683
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
29513
29684
|
*
|
|
29514
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
29515
|
-
* media
|
|
29685
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
29686
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
29687
|
+
* access decision.
|
|
29516
29688
|
*/
|
|
29517
29689
|
var MediaFileLiteSchema = object({
|
|
29518
|
-
|
|
29690
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
29691
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
29692
|
+
mediaId: number().int(),
|
|
29519
29693
|
kind: string(),
|
|
29520
29694
|
url: string(),
|
|
29521
29695
|
sizeBytes: number(),
|
|
@@ -29574,7 +29748,7 @@ method(object({
|
|
|
29574
29748
|
}), method(object({
|
|
29575
29749
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
29576
29750
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
29577
|
-
* option; `
|
|
29751
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
29578
29752
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
29579
29753
|
* resolves to `false` and is exactly the intended default. */
|
|
29580
29754
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -31143,7 +31317,14 @@ var SceneReferenceSchema = object({
|
|
|
31143
31317
|
modelId: string(),
|
|
31144
31318
|
condition: SceneConditionSchema,
|
|
31145
31319
|
capturedAt: number(),
|
|
31146
|
-
|
|
31320
|
+
/**
|
|
31321
|
+
* The reference thumbnail's media ROW id (D482).
|
|
31322
|
+
*
|
|
31323
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
31324
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
31325
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
31326
|
+
*/
|
|
31327
|
+
thumbnailMediaId: number().int().optional(),
|
|
31147
31328
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
31148
31329
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
31149
31330
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -32234,7 +32415,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
32234
32415
|
* disarmed the channels it did not mention would make the Levels page and
|
|
32235
32416
|
* the Diagnostics page fight over the same value.
|
|
32236
32417
|
*/
|
|
32237
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
32418
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
32419
|
+
/**
|
|
32420
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
32421
|
+
* retention actually deleted.
|
|
32422
|
+
*
|
|
32423
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
32424
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
32425
|
+
* this system is configured through this one document, and a retention audit
|
|
32426
|
+
* configured somewhere else is a second place to look when the question is
|
|
32427
|
+
* "what happened to my data".
|
|
32428
|
+
*
|
|
32429
|
+
* That placement has a cost worth stating: this document ships in the
|
|
32430
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
32431
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
32432
|
+
*
|
|
32433
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
32434
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
32435
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
32436
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
32437
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
32438
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
32439
|
+
*/
|
|
32440
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
32238
32441
|
});
|
|
32239
32442
|
/**
|
|
32240
32443
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -32307,6 +32510,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
32307
32510
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
32308
32511
|
/** The channels ARMED right now, each with its deadline. */
|
|
32309
32512
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
32513
|
+
/**
|
|
32514
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
32515
|
+
*
|
|
32516
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
32517
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
32518
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
32519
|
+
*/
|
|
32520
|
+
opsLogRetentionDays: number().int().min(0),
|
|
32310
32521
|
persisted: boolean()
|
|
32311
32522
|
});
|
|
32312
32523
|
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(), {
|
|
@@ -33127,7 +33338,7 @@ var StationaryObjectSchema = object({
|
|
|
33127
33338
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
33128
33339
|
label: string().optional(),
|
|
33129
33340
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
33130
|
-
|
|
33341
|
+
keyFrameMediaId: number().int().optional()
|
|
33131
33342
|
});
|
|
33132
33343
|
var CameraOccupancySnapshotSchema = object({
|
|
33133
33344
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -35865,6 +36076,12 @@ Object.freeze({
|
|
|
35865
36076
|
addonId: null,
|
|
35866
36077
|
access: "create"
|
|
35867
36078
|
},
|
|
36079
|
+
"dataStoreProvider.upsert": {
|
|
36080
|
+
capName: "data-store-provider",
|
|
36081
|
+
capScope: "system",
|
|
36082
|
+
addonId: null,
|
|
36083
|
+
access: "create"
|
|
36084
|
+
},
|
|
35868
36085
|
"dayNight.getOptions": {
|
|
35869
36086
|
capName: "day-night",
|
|
35870
36087
|
capScope: "device",
|
|
@@ -38301,6 +38518,12 @@ Object.freeze({
|
|
|
38301
38518
|
addonId: null,
|
|
38302
38519
|
access: "view"
|
|
38303
38520
|
},
|
|
38521
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
38522
|
+
capName: "pipeline-analytics",
|
|
38523
|
+
capScope: "device",
|
|
38524
|
+
addonId: null,
|
|
38525
|
+
access: "view"
|
|
38526
|
+
},
|
|
38304
38527
|
"pipelineAnalytics.listRecentTracks": {
|
|
38305
38528
|
capName: "pipeline-analytics",
|
|
38306
38529
|
capScope: "device",
|
|
@@ -39729,6 +39952,12 @@ Object.freeze({
|
|
|
39729
39952
|
addonId: null,
|
|
39730
39953
|
access: "create"
|
|
39731
39954
|
},
|
|
39955
|
+
"settingsStore.upsert": {
|
|
39956
|
+
capName: "settings-store",
|
|
39957
|
+
capScope: "system",
|
|
39958
|
+
addonId: null,
|
|
39959
|
+
access: "create"
|
|
39960
|
+
},
|
|
39732
39961
|
"smtpProvider.getStatus": {
|
|
39733
39962
|
capName: "smtp-provider",
|
|
39734
39963
|
capScope: "system",
|
|
@@ -42122,6 +42351,11 @@ Object.freeze({
|
|
|
42122
42351
|
form: "single",
|
|
42123
42352
|
optional: true
|
|
42124
42353
|
}],
|
|
42354
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
42355
|
+
name: "deviceIds",
|
|
42356
|
+
form: "array",
|
|
42357
|
+
optional: false
|
|
42358
|
+
}],
|
|
42125
42359
|
"pipelineAnalytics.listRecentTracks": [{
|
|
42126
42360
|
name: "deviceIds",
|
|
42127
42361
|
form: "array",
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-ZyX6jcse.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -559,7 +559,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
559
559
|
* a package zone — a newly-appeared stationary object of a package class
|
|
560
560
|
* that cleared the class / zone / dwell / size gates. Payload:
|
|
561
561
|
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
562
|
-
* entryId, className, zoneIds,
|
|
562
|
+
* entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
|
|
563
563
|
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
564
564
|
* this bus topic drives notifier rules + live UI. See
|
|
565
565
|
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
@@ -5345,7 +5345,7 @@ var ZodIssueCode = {
|
|
|
5345
5345
|
var ZodFirstPartyTypeKind;
|
|
5346
5346
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5347
5347
|
//#endregion
|
|
5348
|
-
//#region ../types/dist/sleep-
|
|
5348
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5349
5349
|
/**
|
|
5350
5350
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5351
5351
|
* window to float samples (D455).
|
|
@@ -7312,13 +7312,30 @@ new Set([
|
|
|
7312
7312
|
"scene",
|
|
7313
7313
|
"motion",
|
|
7314
7314
|
"object",
|
|
7315
|
-
"audio"
|
|
7315
|
+
"audio",
|
|
7316
|
+
"mosaic"
|
|
7316
7317
|
]);
|
|
7317
|
-
|
|
7318
|
+
/**
|
|
7319
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
7320
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
7321
|
+
* does not re-spell the list and drift from it.
|
|
7322
|
+
*/
|
|
7323
|
+
var EVENT_OWNER_TYPES = [
|
|
7318
7324
|
"motion",
|
|
7319
7325
|
"object",
|
|
7320
7326
|
"audio"
|
|
7321
|
-
]
|
|
7327
|
+
];
|
|
7328
|
+
/**
|
|
7329
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
7330
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
7331
|
+
* `(table, id)`).
|
|
7332
|
+
*
|
|
7333
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
7334
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
7335
|
+
* nothing failing until a caller asked.
|
|
7336
|
+
*/
|
|
7337
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
7338
|
+
new Set(EVENT_OWNER_TYPES);
|
|
7322
7339
|
var EncodeProfileSchema = object({
|
|
7323
7340
|
video: object({
|
|
7324
7341
|
codec: _enum([
|
|
@@ -7357,7 +7374,23 @@ var EncodeProfileSchema = object({
|
|
|
7357
7374
|
"zerolatency",
|
|
7358
7375
|
"film",
|
|
7359
7376
|
"animation"
|
|
7360
|
-
]).optional()
|
|
7377
|
+
]).optional(),
|
|
7378
|
+
/**
|
|
7379
|
+
* ONE slice per access unit.
|
|
7380
|
+
*
|
|
7381
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7382
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7383
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7384
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7385
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7386
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7387
|
+
*
|
|
7388
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7389
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7390
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7391
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7392
|
+
*/
|
|
7393
|
+
singleSlicePerFrame: boolean().optional()
|
|
7361
7394
|
}),
|
|
7362
7395
|
audio: union([literal("passthrough"), object({
|
|
7363
7396
|
codec: _enum([
|
|
@@ -7407,7 +7440,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7407
7440
|
audio: "passthrough"
|
|
7408
7441
|
};
|
|
7409
7442
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7410
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7443
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7411
7444
|
/**
|
|
7412
7445
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7413
7446
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -12517,6 +12550,16 @@ method(object({
|
|
|
12517
12550
|
filter: QueryFilterSchema.optional(),
|
|
12518
12551
|
columns: array(string()).readonly().optional()
|
|
12519
12552
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12553
|
+
namespace: string().optional(),
|
|
12554
|
+
collection: string(),
|
|
12555
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12556
|
+
* index on the collection. Never empty. */
|
|
12557
|
+
conflict: array(string()).readonly(),
|
|
12558
|
+
record: BulkRecordSchema
|
|
12559
|
+
}), object({
|
|
12560
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12561
|
+
* row's own id on an update. */
|
|
12562
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12520
12563
|
namespace: string().optional(),
|
|
12521
12564
|
collection: string(),
|
|
12522
12565
|
record: object({
|
|
@@ -12651,6 +12694,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12651
12694
|
id: union([string(), number()]) }), {
|
|
12652
12695
|
kind: "mutation",
|
|
12653
12696
|
auth: "admin"
|
|
12697
|
+
}), method(object({
|
|
12698
|
+
namespace: string().optional(),
|
|
12699
|
+
collection: string(),
|
|
12700
|
+
conflict: array(string()).readonly(),
|
|
12701
|
+
record: BulkRecordSchema
|
|
12702
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12703
|
+
kind: "mutation",
|
|
12704
|
+
auth: "admin"
|
|
12654
12705
|
}), method(object({
|
|
12655
12706
|
namespace: string().optional(),
|
|
12656
12707
|
collection: string(),
|
|
@@ -19133,8 +19184,8 @@ var TrackPositionSchema = object({
|
|
|
19133
19184
|
var TrackSnapshotSchema = object({
|
|
19134
19185
|
timestamp: number(),
|
|
19135
19186
|
position: TrackPositionSchema,
|
|
19136
|
-
/**
|
|
19137
|
-
|
|
19187
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
19188
|
+
mediaId: number().int()
|
|
19138
19189
|
});
|
|
19139
19190
|
/**
|
|
19140
19191
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -19738,14 +19789,14 @@ var ObjectEventSchema = object({
|
|
|
19738
19789
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
19739
19790
|
frameWidth: number().optional(),
|
|
19740
19791
|
frameHeight: number().optional(),
|
|
19741
|
-
/**
|
|
19742
|
-
|
|
19743
|
-
/** Design B:
|
|
19792
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
19793
|
+
mediaId: number().int().optional(),
|
|
19794
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
19744
19795
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
19745
|
-
* (`/addon/<addonId>/event-media/<
|
|
19796
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
19746
19797
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
19747
|
-
* sources — consumers fall back to `
|
|
19748
|
-
|
|
19798
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
19799
|
+
keyFrameMediaId: number().int().optional(),
|
|
19749
19800
|
/** Populated by B5 (recording playback URL for this event). */
|
|
19750
19801
|
mediaUrl: string().optional(),
|
|
19751
19802
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -19795,7 +19846,7 @@ var MediaFileKindEnum = _enum([
|
|
|
19795
19846
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
19796
19847
|
*
|
|
19797
19848
|
* `url` points at the `event-media` data plane
|
|
19798
|
-
* (`/addon/<addonId>/event-media/<
|
|
19849
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
19799
19850
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
19800
19851
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
19801
19852
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -19803,10 +19854,13 @@ var MediaFileKindEnum = _enum([
|
|
|
19803
19854
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
19804
19855
|
* (per-device scoping).
|
|
19805
19856
|
*
|
|
19806
|
-
* The URL is built from the row's
|
|
19807
|
-
*
|
|
19857
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
19858
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
19859
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
19808
19860
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
19809
|
-
* `faceCrop`/`plateCrop
|
|
19861
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
19862
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
19863
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
19810
19864
|
*
|
|
19811
19865
|
* ## `base64` is TRANSITIONAL and is going away
|
|
19812
19866
|
*
|
|
@@ -19819,7 +19873,19 @@ var MediaFileKindEnum = _enum([
|
|
|
19819
19873
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
19820
19874
|
*/
|
|
19821
19875
|
var MediaFileSchema = object({
|
|
19822
|
-
|
|
19876
|
+
/**
|
|
19877
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
19878
|
+
*
|
|
19879
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
19880
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
19881
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
19882
|
+
* different rows that spell the same number, and a track whose
|
|
19883
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
19884
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
19885
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
19886
|
+
* at all.
|
|
19887
|
+
*/
|
|
19888
|
+
mediaId: number().int(),
|
|
19823
19889
|
kind: MediaFileKindEnum,
|
|
19824
19890
|
sizeBytes: number(),
|
|
19825
19891
|
timestamp: number()
|
|
@@ -19927,7 +19993,7 @@ var RetrainTrackSchema = object({
|
|
|
19927
19993
|
});
|
|
19928
19994
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
19929
19995
|
var RetrainFrameCandidateSchema = object({
|
|
19930
|
-
|
|
19996
|
+
mediaId: number().int(),
|
|
19931
19997
|
kind: MediaFileKindEnum,
|
|
19932
19998
|
timestamp: number(),
|
|
19933
19999
|
sizeBytes: number().int(),
|
|
@@ -19941,7 +20007,7 @@ var RetrainFrameSchema = object({
|
|
|
19941
20007
|
deviceId: number(),
|
|
19942
20008
|
trackId: string(),
|
|
19943
20009
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
19944
|
-
|
|
20010
|
+
sourceMediaId: number().int(),
|
|
19945
20011
|
sourceKind: MediaFileKindEnum,
|
|
19946
20012
|
sizeBytes: number().int(),
|
|
19947
20013
|
width: number().int(),
|
|
@@ -19957,7 +20023,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
19957
20023
|
var RetrainFrameSelectionSchema = object({
|
|
19958
20024
|
copied: array(RetrainFrameSchema).readonly(),
|
|
19959
20025
|
refused: array(object({
|
|
19960
|
-
|
|
20026
|
+
sourceMediaId: number().int(),
|
|
19961
20027
|
reason: RetrainCopyRefusalSchema
|
|
19962
20028
|
})).readonly()
|
|
19963
20029
|
});
|
|
@@ -19965,7 +20031,7 @@ var RetrainFrameListSchema = object({
|
|
|
19965
20031
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
19966
20032
|
copies: array(RetrainFrameSchema).readonly(),
|
|
19967
20033
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
19968
|
-
|
|
20034
|
+
autoPickMediaId: number().int().optional()
|
|
19969
20035
|
});
|
|
19970
20036
|
/** What the operator asked the assist to look for. */
|
|
19971
20037
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -20060,9 +20126,11 @@ var RecentTracksQueryInput = object({
|
|
|
20060
20126
|
});
|
|
20061
20127
|
/**
|
|
20062
20128
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
20063
|
-
* `
|
|
20064
|
-
* served by the event-media plane
|
|
20065
|
-
* member visible has been materialised
|
|
20129
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
20130
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
20131
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
20132
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
20133
|
+
* row once event ids became per-table rowids).
|
|
20066
20134
|
*/
|
|
20067
20135
|
var SummarySchema = object({
|
|
20068
20136
|
id: string(),
|
|
@@ -20071,19 +20139,115 @@ var SummarySchema = object({
|
|
|
20071
20139
|
lastActiveAt: number(),
|
|
20072
20140
|
sealedAt: number().nullable(),
|
|
20073
20141
|
memberCount: number().int().nonnegative(),
|
|
20074
|
-
|
|
20142
|
+
groupShotMediaId: number().int().nullable()
|
|
20075
20143
|
});
|
|
20076
20144
|
var SummariesQueryInput = object({
|
|
20077
20145
|
deviceIds: array(number()).min(1),
|
|
20078
20146
|
since: number().optional(),
|
|
20079
20147
|
until: number().optional(),
|
|
20080
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20148
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20149
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20150
|
+
* meaning of "dog" on every summary surface. */
|
|
20151
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20081
20152
|
});
|
|
20082
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20083
20153
|
var SummaryDetailSchema = object({
|
|
20084
20154
|
summary: SummarySchema,
|
|
20085
|
-
/**
|
|
20086
|
-
|
|
20155
|
+
/** Members in absorption order, oldest join first. */
|
|
20156
|
+
members: array(object({
|
|
20157
|
+
trackId: string(),
|
|
20158
|
+
/**
|
|
20159
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20160
|
+
* and the track no longer exists to fill it.
|
|
20161
|
+
*
|
|
20162
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20163
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20164
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20165
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20166
|
+
* drift from the members it claims to describe.
|
|
20167
|
+
*/
|
|
20168
|
+
className: string().nullable(),
|
|
20169
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20170
|
+
role: _enum([
|
|
20171
|
+
"primary",
|
|
20172
|
+
"sibling",
|
|
20173
|
+
"child"
|
|
20174
|
+
]).nullable(),
|
|
20175
|
+
joinedAt: number(),
|
|
20176
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20177
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20178
|
+
label: string().optional(),
|
|
20179
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20180
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20181
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20182
|
+
subLabel: string().optional()
|
|
20183
|
+
})).readonly()
|
|
20184
|
+
});
|
|
20185
|
+
/**
|
|
20186
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20187
|
+
*
|
|
20188
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20189
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20190
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20191
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20192
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20193
|
+
* draw two hundred badges.
|
|
20194
|
+
*/
|
|
20195
|
+
var SummaryListItemSchema = object({
|
|
20196
|
+
summary: SummarySchema,
|
|
20197
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20198
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20199
|
+
classes: array(object({
|
|
20200
|
+
className: string().nullable(),
|
|
20201
|
+
count: number().int().positive()
|
|
20202
|
+
})).readonly()
|
|
20203
|
+
});
|
|
20204
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20205
|
+
/**
|
|
20206
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20207
|
+
*
|
|
20208
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20209
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20210
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20211
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20212
|
+
* "newest" means, on one screen.
|
|
20213
|
+
*/
|
|
20214
|
+
var RecentSummariesQueryInput = object({
|
|
20215
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20216
|
+
deviceIds: array(number()),
|
|
20217
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20218
|
+
since: number().optional(),
|
|
20219
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20220
|
+
until: number().optional(),
|
|
20221
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20222
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20223
|
+
cursor: string().optional(),
|
|
20224
|
+
/**
|
|
20225
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20226
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20227
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20228
|
+
* make the operator's one filter component produce two shapes.
|
|
20229
|
+
*
|
|
20230
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20231
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20232
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20233
|
+
* about its primary.
|
|
20234
|
+
*
|
|
20235
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20236
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20237
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20238
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20239
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20240
|
+
*
|
|
20241
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20242
|
+
*/
|
|
20243
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20244
|
+
});
|
|
20245
|
+
var RecentSummariesPageSchema = object({
|
|
20246
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20247
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20248
|
+
* whichever feed drew it. */
|
|
20249
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20250
|
+
nextCursor: string().nullable()
|
|
20087
20251
|
});
|
|
20088
20252
|
var RecentTracksPageSchema = object({
|
|
20089
20253
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20497,7 +20661,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20497
20661
|
classes: array(string()).optional(),
|
|
20498
20662
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20499
20663
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20500
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20664
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20501
20665
|
kind: "mutation",
|
|
20502
20666
|
auth: "admin"
|
|
20503
20667
|
}), 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({
|
|
@@ -20625,7 +20789,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20625
20789
|
}), method(object({
|
|
20626
20790
|
deviceId: number(),
|
|
20627
20791
|
trackId: string(),
|
|
20628
|
-
|
|
20792
|
+
mediaIds: array(number().int()).min(1)
|
|
20629
20793
|
}), RetrainFrameSelectionSchema, {
|
|
20630
20794
|
kind: "mutation",
|
|
20631
20795
|
auth: "admin"
|
|
@@ -20693,7 +20857,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20693
20857
|
kind: "query",
|
|
20694
20858
|
auth: "admin"
|
|
20695
20859
|
}), method(object({
|
|
20696
|
-
|
|
20860
|
+
/** Which of the three event tables owns the row. */
|
|
20861
|
+
ownerType: EventOwnerTypeSchema,
|
|
20862
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
20863
|
+
eventId: number().int(),
|
|
20697
20864
|
kind: MediaFileKindEnum.optional(),
|
|
20698
20865
|
deviceId: number()
|
|
20699
20866
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -20704,7 +20871,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20704
20871
|
trackId: string(),
|
|
20705
20872
|
deviceId: number()
|
|
20706
20873
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
20707
|
-
|
|
20874
|
+
ownerType: EventOwnerTypeSchema,
|
|
20875
|
+
eventId: number().int(),
|
|
20708
20876
|
deviceId: number()
|
|
20709
20877
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
20710
20878
|
kind: "mutation",
|
|
@@ -25897,8 +26065,8 @@ var IdentitySchema = object({
|
|
|
25897
26065
|
id: string(),
|
|
25898
26066
|
name: string(),
|
|
25899
26067
|
sampleCount: number().int().nonnegative(),
|
|
25900
|
-
|
|
25901
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
26068
|
+
coverMediaId: number().int().optional(),
|
|
26069
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
25902
26070
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
25903
26071
|
coverBase64: string().optional()
|
|
25904
26072
|
});
|
|
@@ -25924,8 +26092,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
25924
26092
|
enrolledAt: number().int(),
|
|
25925
26093
|
deviceId: number().int().optional(),
|
|
25926
26094
|
source: _enum(["detected", "photo"]),
|
|
25927
|
-
/** The enrolled crop's media
|
|
25928
|
-
|
|
26095
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
26096
|
+
mediaId: number().int().optional(),
|
|
25929
26097
|
/**
|
|
25930
26098
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
25931
26099
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -25994,15 +26162,15 @@ var FaceInfoSchema = object({
|
|
|
25994
26162
|
*/
|
|
25995
26163
|
cropUrl: string().optional(),
|
|
25996
26164
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
25997
|
-
* view draw the box over the native `
|
|
26165
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
25998
26166
|
* legacy rows written before design B. */
|
|
25999
26167
|
faceBbox: BoundingBoxSchema.optional(),
|
|
26000
26168
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
26001
26169
|
* Fetch the native JPEG via the event-media data-plane
|
|
26002
|
-
* (`/addon/<addonId>/event-media/<
|
|
26170
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
26003
26171
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
26004
26172
|
* back to the inline `base64` face crop. */
|
|
26005
|
-
|
|
26173
|
+
keyFrameMediaId: number().int().optional(),
|
|
26006
26174
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
26007
26175
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
26008
26176
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -26071,11 +26239,14 @@ var FaceClusterSchema = object({
|
|
|
26071
26239
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
26072
26240
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
26073
26241
|
*
|
|
26074
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
26075
|
-
* media
|
|
26242
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
26243
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
26244
|
+
* access decision.
|
|
26076
26245
|
*/
|
|
26077
26246
|
var MediaFileLiteSchema$1 = object({
|
|
26078
|
-
|
|
26247
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
26248
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
26249
|
+
mediaId: number().int(),
|
|
26079
26250
|
kind: string(),
|
|
26080
26251
|
url: string(),
|
|
26081
26252
|
sizeBytes: number(),
|
|
@@ -26092,7 +26263,7 @@ method(object({
|
|
|
26092
26263
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
26093
26264
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
26094
26265
|
*
|
|
26095
|
-
* Nothing loses its avatar: `
|
|
26266
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
26096
26267
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
26097
26268
|
*
|
|
26098
26269
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -29455,8 +29626,8 @@ var VehicleSchema = object({
|
|
|
29455
29626
|
id: string(),
|
|
29456
29627
|
name: string(),
|
|
29457
29628
|
sampleCount: number().int().nonnegative(),
|
|
29458
|
-
|
|
29459
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
29629
|
+
coverMediaId: number().int().optional(),
|
|
29630
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
29460
29631
|
coverBase64: string().optional()
|
|
29461
29632
|
});
|
|
29462
29633
|
var VehicleSampleInfoSchema = object({
|
|
@@ -29489,7 +29660,7 @@ var PlateInfoSchema = object({
|
|
|
29489
29660
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
29490
29661
|
plateBbox: BoundingBoxSchema.optional(),
|
|
29491
29662
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
29492
|
-
|
|
29663
|
+
keyFrameMediaId: number().int().optional(),
|
|
29493
29664
|
base64: string().optional(),
|
|
29494
29665
|
/**
|
|
29495
29666
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -29510,11 +29681,14 @@ var PlateInfoSchema = object({
|
|
|
29510
29681
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
29511
29682
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
29512
29683
|
*
|
|
29513
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
29514
|
-
* media
|
|
29684
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
29685
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
29686
|
+
* access decision.
|
|
29515
29687
|
*/
|
|
29516
29688
|
var MediaFileLiteSchema = object({
|
|
29517
|
-
|
|
29689
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
29690
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
29691
|
+
mediaId: number().int(),
|
|
29518
29692
|
kind: string(),
|
|
29519
29693
|
url: string(),
|
|
29520
29694
|
sizeBytes: number(),
|
|
@@ -29573,7 +29747,7 @@ method(object({
|
|
|
29573
29747
|
}), method(object({
|
|
29574
29748
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
29575
29749
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
29576
|
-
* option; `
|
|
29750
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
29577
29751
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
29578
29752
|
* resolves to `false` and is exactly the intended default. */
|
|
29579
29753
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -31142,7 +31316,14 @@ var SceneReferenceSchema = object({
|
|
|
31142
31316
|
modelId: string(),
|
|
31143
31317
|
condition: SceneConditionSchema,
|
|
31144
31318
|
capturedAt: number(),
|
|
31145
|
-
|
|
31319
|
+
/**
|
|
31320
|
+
* The reference thumbnail's media ROW id (D482).
|
|
31321
|
+
*
|
|
31322
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
31323
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
31324
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
31325
|
+
*/
|
|
31326
|
+
thumbnailMediaId: number().int().optional(),
|
|
31146
31327
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
31147
31328
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
31148
31329
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -32233,7 +32414,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
32233
32414
|
* disarmed the channels it did not mention would make the Levels page and
|
|
32234
32415
|
* the Diagnostics page fight over the same value.
|
|
32235
32416
|
*/
|
|
32236
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
32417
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
32418
|
+
/**
|
|
32419
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
32420
|
+
* retention actually deleted.
|
|
32421
|
+
*
|
|
32422
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
32423
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
32424
|
+
* this system is configured through this one document, and a retention audit
|
|
32425
|
+
* configured somewhere else is a second place to look when the question is
|
|
32426
|
+
* "what happened to my data".
|
|
32427
|
+
*
|
|
32428
|
+
* That placement has a cost worth stating: this document ships in the
|
|
32429
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
32430
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
32431
|
+
*
|
|
32432
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
32433
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
32434
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
32435
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
32436
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
32437
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
32438
|
+
*/
|
|
32439
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
32237
32440
|
});
|
|
32238
32441
|
/**
|
|
32239
32442
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -32306,6 +32509,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
32306
32509
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
32307
32510
|
/** The channels ARMED right now, each with its deadline. */
|
|
32308
32511
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
32512
|
+
/**
|
|
32513
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
32514
|
+
*
|
|
32515
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
32516
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
32517
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
32518
|
+
*/
|
|
32519
|
+
opsLogRetentionDays: number().int().min(0),
|
|
32309
32520
|
persisted: boolean()
|
|
32310
32521
|
});
|
|
32311
32522
|
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(), {
|
|
@@ -33126,7 +33337,7 @@ var StationaryObjectSchema = object({
|
|
|
33126
33337
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
33127
33338
|
label: string().optional(),
|
|
33128
33339
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
33129
|
-
|
|
33340
|
+
keyFrameMediaId: number().int().optional()
|
|
33130
33341
|
});
|
|
33131
33342
|
var CameraOccupancySnapshotSchema = object({
|
|
33132
33343
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -35864,6 +36075,12 @@ Object.freeze({
|
|
|
35864
36075
|
addonId: null,
|
|
35865
36076
|
access: "create"
|
|
35866
36077
|
},
|
|
36078
|
+
"dataStoreProvider.upsert": {
|
|
36079
|
+
capName: "data-store-provider",
|
|
36080
|
+
capScope: "system",
|
|
36081
|
+
addonId: null,
|
|
36082
|
+
access: "create"
|
|
36083
|
+
},
|
|
35867
36084
|
"dayNight.getOptions": {
|
|
35868
36085
|
capName: "day-night",
|
|
35869
36086
|
capScope: "device",
|
|
@@ -38300,6 +38517,12 @@ Object.freeze({
|
|
|
38300
38517
|
addonId: null,
|
|
38301
38518
|
access: "view"
|
|
38302
38519
|
},
|
|
38520
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
38521
|
+
capName: "pipeline-analytics",
|
|
38522
|
+
capScope: "device",
|
|
38523
|
+
addonId: null,
|
|
38524
|
+
access: "view"
|
|
38525
|
+
},
|
|
38303
38526
|
"pipelineAnalytics.listRecentTracks": {
|
|
38304
38527
|
capName: "pipeline-analytics",
|
|
38305
38528
|
capScope: "device",
|
|
@@ -39728,6 +39951,12 @@ Object.freeze({
|
|
|
39728
39951
|
addonId: null,
|
|
39729
39952
|
access: "create"
|
|
39730
39953
|
},
|
|
39954
|
+
"settingsStore.upsert": {
|
|
39955
|
+
capName: "settings-store",
|
|
39956
|
+
capScope: "system",
|
|
39957
|
+
addonId: null,
|
|
39958
|
+
access: "create"
|
|
39959
|
+
},
|
|
39731
39960
|
"smtpProvider.getStatus": {
|
|
39732
39961
|
capName: "smtp-provider",
|
|
39733
39962
|
capScope: "system",
|
|
@@ -42121,6 +42350,11 @@ Object.freeze({
|
|
|
42121
42350
|
form: "single",
|
|
42122
42351
|
optional: true
|
|
42123
42352
|
}],
|
|
42353
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
42354
|
+
name: "deviceIds",
|
|
42355
|
+
form: "array",
|
|
42356
|
+
optional: false
|
|
42357
|
+
}],
|
|
42124
42358
|
"pipelineAnalytics.listRecentTracks": [{
|
|
42125
42359
|
name: "deviceIds",
|
|
42126
42360
|
form: "array",
|
package/package.json
CHANGED