@camstack/addon-provider-unifi 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",
|
|
@@ -25915,8 +26083,8 @@ var IdentitySchema = object({
|
|
|
25915
26083
|
id: string(),
|
|
25916
26084
|
name: string(),
|
|
25917
26085
|
sampleCount: number().int().nonnegative(),
|
|
25918
|
-
|
|
25919
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
26086
|
+
coverMediaId: number().int().optional(),
|
|
26087
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
25920
26088
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
25921
26089
|
coverBase64: string().optional()
|
|
25922
26090
|
});
|
|
@@ -25942,8 +26110,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
25942
26110
|
enrolledAt: number().int(),
|
|
25943
26111
|
deviceId: number().int().optional(),
|
|
25944
26112
|
source: _enum(["detected", "photo"]),
|
|
25945
|
-
/** The enrolled crop's media
|
|
25946
|
-
|
|
26113
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
26114
|
+
mediaId: number().int().optional(),
|
|
25947
26115
|
/**
|
|
25948
26116
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
25949
26117
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -26012,15 +26180,15 @@ var FaceInfoSchema = object({
|
|
|
26012
26180
|
*/
|
|
26013
26181
|
cropUrl: string().optional(),
|
|
26014
26182
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
26015
|
-
* view draw the box over the native `
|
|
26183
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
26016
26184
|
* legacy rows written before design B. */
|
|
26017
26185
|
faceBbox: BoundingBoxSchema.optional(),
|
|
26018
26186
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
26019
26187
|
* Fetch the native JPEG via the event-media data-plane
|
|
26020
|
-
* (`/addon/<addonId>/event-media/<
|
|
26188
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
26021
26189
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
26022
26190
|
* back to the inline `base64` face crop. */
|
|
26023
|
-
|
|
26191
|
+
keyFrameMediaId: number().int().optional(),
|
|
26024
26192
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
26025
26193
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
26026
26194
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -26089,11 +26257,14 @@ var FaceClusterSchema = object({
|
|
|
26089
26257
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
26090
26258
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
26091
26259
|
*
|
|
26092
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
26093
|
-
* media
|
|
26260
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
26261
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
26262
|
+
* access decision.
|
|
26094
26263
|
*/
|
|
26095
26264
|
var MediaFileLiteSchema$1 = object({
|
|
26096
|
-
|
|
26265
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
26266
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
26267
|
+
mediaId: number().int(),
|
|
26097
26268
|
kind: string(),
|
|
26098
26269
|
url: string(),
|
|
26099
26270
|
sizeBytes: number(),
|
|
@@ -26110,7 +26281,7 @@ method(object({
|
|
|
26110
26281
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
26111
26282
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
26112
26283
|
*
|
|
26113
|
-
* Nothing loses its avatar: `
|
|
26284
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
26114
26285
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
26115
26286
|
*
|
|
26116
26287
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -29473,8 +29644,8 @@ var VehicleSchema = object({
|
|
|
29473
29644
|
id: string(),
|
|
29474
29645
|
name: string(),
|
|
29475
29646
|
sampleCount: number().int().nonnegative(),
|
|
29476
|
-
|
|
29477
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
29647
|
+
coverMediaId: number().int().optional(),
|
|
29648
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
29478
29649
|
coverBase64: string().optional()
|
|
29479
29650
|
});
|
|
29480
29651
|
var VehicleSampleInfoSchema = object({
|
|
@@ -29507,7 +29678,7 @@ var PlateInfoSchema = object({
|
|
|
29507
29678
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
29508
29679
|
plateBbox: BoundingBoxSchema.optional(),
|
|
29509
29680
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
29510
|
-
|
|
29681
|
+
keyFrameMediaId: number().int().optional(),
|
|
29511
29682
|
base64: string().optional(),
|
|
29512
29683
|
/**
|
|
29513
29684
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -29528,11 +29699,14 @@ var PlateInfoSchema = object({
|
|
|
29528
29699
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
29529
29700
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
29530
29701
|
*
|
|
29531
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
29532
|
-
* media
|
|
29702
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
29703
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
29704
|
+
* access decision.
|
|
29533
29705
|
*/
|
|
29534
29706
|
var MediaFileLiteSchema = object({
|
|
29535
|
-
|
|
29707
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
29708
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
29709
|
+
mediaId: number().int(),
|
|
29536
29710
|
kind: string(),
|
|
29537
29711
|
url: string(),
|
|
29538
29712
|
sizeBytes: number(),
|
|
@@ -29591,7 +29765,7 @@ method(object({
|
|
|
29591
29765
|
}), method(object({
|
|
29592
29766
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
29593
29767
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
29594
|
-
* option; `
|
|
29768
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
29595
29769
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
29596
29770
|
* resolves to `false` and is exactly the intended default. */
|
|
29597
29771
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -31160,7 +31334,14 @@ var SceneReferenceSchema = object({
|
|
|
31160
31334
|
modelId: string(),
|
|
31161
31335
|
condition: SceneConditionSchema,
|
|
31162
31336
|
capturedAt: number(),
|
|
31163
|
-
|
|
31337
|
+
/**
|
|
31338
|
+
* The reference thumbnail's media ROW id (D482).
|
|
31339
|
+
*
|
|
31340
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
31341
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
31342
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
31343
|
+
*/
|
|
31344
|
+
thumbnailMediaId: number().int().optional(),
|
|
31164
31345
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
31165
31346
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
31166
31347
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -32251,7 +32432,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
32251
32432
|
* disarmed the channels it did not mention would make the Levels page and
|
|
32252
32433
|
* the Diagnostics page fight over the same value.
|
|
32253
32434
|
*/
|
|
32254
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
32435
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
32436
|
+
/**
|
|
32437
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
32438
|
+
* retention actually deleted.
|
|
32439
|
+
*
|
|
32440
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
32441
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
32442
|
+
* this system is configured through this one document, and a retention audit
|
|
32443
|
+
* configured somewhere else is a second place to look when the question is
|
|
32444
|
+
* "what happened to my data".
|
|
32445
|
+
*
|
|
32446
|
+
* That placement has a cost worth stating: this document ships in the
|
|
32447
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
32448
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
32449
|
+
*
|
|
32450
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
32451
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
32452
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
32453
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
32454
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
32455
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
32456
|
+
*/
|
|
32457
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
32255
32458
|
});
|
|
32256
32459
|
/**
|
|
32257
32460
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -32324,6 +32527,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
32324
32527
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
32325
32528
|
/** The channels ARMED right now, each with its deadline. */
|
|
32326
32529
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
32530
|
+
/**
|
|
32531
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
32532
|
+
*
|
|
32533
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
32534
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
32535
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
32536
|
+
*/
|
|
32537
|
+
opsLogRetentionDays: number().int().min(0),
|
|
32327
32538
|
persisted: boolean()
|
|
32328
32539
|
});
|
|
32329
32540
|
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(), {
|
|
@@ -33144,7 +33355,7 @@ var StationaryObjectSchema = object({
|
|
|
33144
33355
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
33145
33356
|
label: string().optional(),
|
|
33146
33357
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
33147
|
-
|
|
33358
|
+
keyFrameMediaId: number().int().optional()
|
|
33148
33359
|
});
|
|
33149
33360
|
var CameraOccupancySnapshotSchema = object({
|
|
33150
33361
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -35882,6 +36093,12 @@ Object.freeze({
|
|
|
35882
36093
|
addonId: null,
|
|
35883
36094
|
access: "create"
|
|
35884
36095
|
},
|
|
36096
|
+
"dataStoreProvider.upsert": {
|
|
36097
|
+
capName: "data-store-provider",
|
|
36098
|
+
capScope: "system",
|
|
36099
|
+
addonId: null,
|
|
36100
|
+
access: "create"
|
|
36101
|
+
},
|
|
35885
36102
|
"dayNight.getOptions": {
|
|
35886
36103
|
capName: "day-night",
|
|
35887
36104
|
capScope: "device",
|
|
@@ -38318,6 +38535,12 @@ Object.freeze({
|
|
|
38318
38535
|
addonId: null,
|
|
38319
38536
|
access: "view"
|
|
38320
38537
|
},
|
|
38538
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
38539
|
+
capName: "pipeline-analytics",
|
|
38540
|
+
capScope: "device",
|
|
38541
|
+
addonId: null,
|
|
38542
|
+
access: "view"
|
|
38543
|
+
},
|
|
38321
38544
|
"pipelineAnalytics.listRecentTracks": {
|
|
38322
38545
|
capName: "pipeline-analytics",
|
|
38323
38546
|
capScope: "device",
|
|
@@ -39746,6 +39969,12 @@ Object.freeze({
|
|
|
39746
39969
|
addonId: null,
|
|
39747
39970
|
access: "create"
|
|
39748
39971
|
},
|
|
39972
|
+
"settingsStore.upsert": {
|
|
39973
|
+
capName: "settings-store",
|
|
39974
|
+
capScope: "system",
|
|
39975
|
+
addonId: null,
|
|
39976
|
+
access: "create"
|
|
39977
|
+
},
|
|
39749
39978
|
"smtpProvider.getStatus": {
|
|
39750
39979
|
capName: "smtp-provider",
|
|
39751
39980
|
capScope: "system",
|
|
@@ -42139,6 +42368,11 @@ Object.freeze({
|
|
|
42139
42368
|
form: "single",
|
|
42140
42369
|
optional: true
|
|
42141
42370
|
}],
|
|
42371
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
42372
|
+
name: "deviceIds",
|
|
42373
|
+
form: "array",
|
|
42374
|
+
optional: false
|
|
42375
|
+
}],
|
|
42142
42376
|
"pipelineAnalytics.listRecentTracks": [{
|
|
42143
42377
|
name: "deviceIds",
|
|
42144
42378
|
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",
|
|
@@ -25914,8 +26082,8 @@ var IdentitySchema = object({
|
|
|
25914
26082
|
id: string(),
|
|
25915
26083
|
name: string(),
|
|
25916
26084
|
sampleCount: number().int().nonnegative(),
|
|
25917
|
-
|
|
25918
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
26085
|
+
coverMediaId: number().int().optional(),
|
|
26086
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
25919
26087
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
25920
26088
|
coverBase64: string().optional()
|
|
25921
26089
|
});
|
|
@@ -25941,8 +26109,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
25941
26109
|
enrolledAt: number().int(),
|
|
25942
26110
|
deviceId: number().int().optional(),
|
|
25943
26111
|
source: _enum(["detected", "photo"]),
|
|
25944
|
-
/** The enrolled crop's media
|
|
25945
|
-
|
|
26112
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
26113
|
+
mediaId: number().int().optional(),
|
|
25946
26114
|
/**
|
|
25947
26115
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
25948
26116
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -26011,15 +26179,15 @@ var FaceInfoSchema = object({
|
|
|
26011
26179
|
*/
|
|
26012
26180
|
cropUrl: string().optional(),
|
|
26013
26181
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
26014
|
-
* view draw the box over the native `
|
|
26182
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
26015
26183
|
* legacy rows written before design B. */
|
|
26016
26184
|
faceBbox: BoundingBoxSchema.optional(),
|
|
26017
26185
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
26018
26186
|
* Fetch the native JPEG via the event-media data-plane
|
|
26019
|
-
* (`/addon/<addonId>/event-media/<
|
|
26187
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
26020
26188
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
26021
26189
|
* back to the inline `base64` face crop. */
|
|
26022
|
-
|
|
26190
|
+
keyFrameMediaId: number().int().optional(),
|
|
26023
26191
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
26024
26192
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
26025
26193
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -26088,11 +26256,14 @@ var FaceClusterSchema = object({
|
|
|
26088
26256
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
26089
26257
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
26090
26258
|
*
|
|
26091
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
26092
|
-
* media
|
|
26259
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
26260
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
26261
|
+
* access decision.
|
|
26093
26262
|
*/
|
|
26094
26263
|
var MediaFileLiteSchema$1 = object({
|
|
26095
|
-
|
|
26264
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
26265
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
26266
|
+
mediaId: number().int(),
|
|
26096
26267
|
kind: string(),
|
|
26097
26268
|
url: string(),
|
|
26098
26269
|
sizeBytes: number(),
|
|
@@ -26109,7 +26280,7 @@ method(object({
|
|
|
26109
26280
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
26110
26281
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
26111
26282
|
*
|
|
26112
|
-
* Nothing loses its avatar: `
|
|
26283
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
26113
26284
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
26114
26285
|
*
|
|
26115
26286
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -29472,8 +29643,8 @@ var VehicleSchema = object({
|
|
|
29472
29643
|
id: string(),
|
|
29473
29644
|
name: string(),
|
|
29474
29645
|
sampleCount: number().int().nonnegative(),
|
|
29475
|
-
|
|
29476
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
29646
|
+
coverMediaId: number().int().optional(),
|
|
29647
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
29477
29648
|
coverBase64: string().optional()
|
|
29478
29649
|
});
|
|
29479
29650
|
var VehicleSampleInfoSchema = object({
|
|
@@ -29506,7 +29677,7 @@ var PlateInfoSchema = object({
|
|
|
29506
29677
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
29507
29678
|
plateBbox: BoundingBoxSchema.optional(),
|
|
29508
29679
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
29509
|
-
|
|
29680
|
+
keyFrameMediaId: number().int().optional(),
|
|
29510
29681
|
base64: string().optional(),
|
|
29511
29682
|
/**
|
|
29512
29683
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -29527,11 +29698,14 @@ var PlateInfoSchema = object({
|
|
|
29527
29698
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
29528
29699
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
29529
29700
|
*
|
|
29530
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
29531
|
-
* media
|
|
29701
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
29702
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
29703
|
+
* access decision.
|
|
29532
29704
|
*/
|
|
29533
29705
|
var MediaFileLiteSchema = object({
|
|
29534
|
-
|
|
29706
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
29707
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
29708
|
+
mediaId: number().int(),
|
|
29535
29709
|
kind: string(),
|
|
29536
29710
|
url: string(),
|
|
29537
29711
|
sizeBytes: number(),
|
|
@@ -29590,7 +29764,7 @@ method(object({
|
|
|
29590
29764
|
}), method(object({
|
|
29591
29765
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
29592
29766
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
29593
|
-
* option; `
|
|
29767
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
29594
29768
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
29595
29769
|
* resolves to `false` and is exactly the intended default. */
|
|
29596
29770
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -31159,7 +31333,14 @@ var SceneReferenceSchema = object({
|
|
|
31159
31333
|
modelId: string(),
|
|
31160
31334
|
condition: SceneConditionSchema,
|
|
31161
31335
|
capturedAt: number(),
|
|
31162
|
-
|
|
31336
|
+
/**
|
|
31337
|
+
* The reference thumbnail's media ROW id (D482).
|
|
31338
|
+
*
|
|
31339
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
31340
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
31341
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
31342
|
+
*/
|
|
31343
|
+
thumbnailMediaId: number().int().optional(),
|
|
31163
31344
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
31164
31345
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
31165
31346
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -32250,7 +32431,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
32250
32431
|
* disarmed the channels it did not mention would make the Levels page and
|
|
32251
32432
|
* the Diagnostics page fight over the same value.
|
|
32252
32433
|
*/
|
|
32253
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
32434
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
32435
|
+
/**
|
|
32436
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
32437
|
+
* retention actually deleted.
|
|
32438
|
+
*
|
|
32439
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
32440
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
32441
|
+
* this system is configured through this one document, and a retention audit
|
|
32442
|
+
* configured somewhere else is a second place to look when the question is
|
|
32443
|
+
* "what happened to my data".
|
|
32444
|
+
*
|
|
32445
|
+
* That placement has a cost worth stating: this document ships in the
|
|
32446
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
32447
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
32448
|
+
*
|
|
32449
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
32450
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
32451
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
32452
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
32453
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
32454
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
32455
|
+
*/
|
|
32456
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
32254
32457
|
});
|
|
32255
32458
|
/**
|
|
32256
32459
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -32323,6 +32526,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
32323
32526
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
32324
32527
|
/** The channels ARMED right now, each with its deadline. */
|
|
32325
32528
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
32529
|
+
/**
|
|
32530
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
32531
|
+
*
|
|
32532
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
32533
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
32534
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
32535
|
+
*/
|
|
32536
|
+
opsLogRetentionDays: number().int().min(0),
|
|
32326
32537
|
persisted: boolean()
|
|
32327
32538
|
});
|
|
32328
32539
|
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(), {
|
|
@@ -33143,7 +33354,7 @@ var StationaryObjectSchema = object({
|
|
|
33143
33354
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
33144
33355
|
label: string().optional(),
|
|
33145
33356
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
33146
|
-
|
|
33357
|
+
keyFrameMediaId: number().int().optional()
|
|
33147
33358
|
});
|
|
33148
33359
|
var CameraOccupancySnapshotSchema = object({
|
|
33149
33360
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -35881,6 +36092,12 @@ Object.freeze({
|
|
|
35881
36092
|
addonId: null,
|
|
35882
36093
|
access: "create"
|
|
35883
36094
|
},
|
|
36095
|
+
"dataStoreProvider.upsert": {
|
|
36096
|
+
capName: "data-store-provider",
|
|
36097
|
+
capScope: "system",
|
|
36098
|
+
addonId: null,
|
|
36099
|
+
access: "create"
|
|
36100
|
+
},
|
|
35884
36101
|
"dayNight.getOptions": {
|
|
35885
36102
|
capName: "day-night",
|
|
35886
36103
|
capScope: "device",
|
|
@@ -38317,6 +38534,12 @@ Object.freeze({
|
|
|
38317
38534
|
addonId: null,
|
|
38318
38535
|
access: "view"
|
|
38319
38536
|
},
|
|
38537
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
38538
|
+
capName: "pipeline-analytics",
|
|
38539
|
+
capScope: "device",
|
|
38540
|
+
addonId: null,
|
|
38541
|
+
access: "view"
|
|
38542
|
+
},
|
|
38320
38543
|
"pipelineAnalytics.listRecentTracks": {
|
|
38321
38544
|
capName: "pipeline-analytics",
|
|
38322
38545
|
capScope: "device",
|
|
@@ -39745,6 +39968,12 @@ Object.freeze({
|
|
|
39745
39968
|
addonId: null,
|
|
39746
39969
|
access: "create"
|
|
39747
39970
|
},
|
|
39971
|
+
"settingsStore.upsert": {
|
|
39972
|
+
capName: "settings-store",
|
|
39973
|
+
capScope: "system",
|
|
39974
|
+
addonId: null,
|
|
39975
|
+
access: "create"
|
|
39976
|
+
},
|
|
39748
39977
|
"smtpProvider.getStatus": {
|
|
39749
39978
|
capName: "smtp-provider",
|
|
39750
39979
|
capScope: "system",
|
|
@@ -42138,6 +42367,11 @@ Object.freeze({
|
|
|
42138
42367
|
form: "single",
|
|
42139
42368
|
optional: true
|
|
42140
42369
|
}],
|
|
42370
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
42371
|
+
name: "deviceIds",
|
|
42372
|
+
form: "array",
|
|
42373
|
+
optional: false
|
|
42374
|
+
}],
|
|
42141
42375
|
"pipelineAnalytics.listRecentTracks": [{
|
|
42142
42376
|
name: "deviceIds",
|
|
42143
42377
|
form: "array",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-unifi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.101",
|
|
4
4
|
"description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. NO cameras/Protect.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|