@camstack/addon-provider-hikvision 1.2.107 → 1.2.109
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
|
@@ -6,7 +6,7 @@ let node_crypto = require("node:crypto");
|
|
|
6
6
|
let node_http = require("node:http");
|
|
7
7
|
let node_https = require("node:https");
|
|
8
8
|
let node_os = require("node:os");
|
|
9
|
-
//#region ../types/dist/event-category-
|
|
9
|
+
//#region ../types/dist/event-category-ZyX6jcse.mjs
|
|
10
10
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
11
11
|
EventCategory["SystemBoot"] = "system.boot";
|
|
12
12
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -567,7 +567,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
567
567
|
* a package zone — a newly-appeared stationary object of a package class
|
|
568
568
|
* that cleared the class / zone / dwell / size gates. Payload:
|
|
569
569
|
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
570
|
-
* entryId, className, zoneIds,
|
|
570
|
+
* entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
|
|
571
571
|
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
572
572
|
* this bus topic drives notifier rules + live UI. See
|
|
573
573
|
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
@@ -5353,7 +5353,7 @@ var ZodIssueCode = {
|
|
|
5353
5353
|
var ZodFirstPartyTypeKind;
|
|
5354
5354
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5355
5355
|
//#endregion
|
|
5356
|
-
//#region ../types/dist/sleep-
|
|
5356
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5357
5357
|
/**
|
|
5358
5358
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5359
5359
|
* window to float samples (D455).
|
|
@@ -7308,13 +7308,30 @@ new Set([
|
|
|
7308
7308
|
"scene",
|
|
7309
7309
|
"motion",
|
|
7310
7310
|
"object",
|
|
7311
|
-
"audio"
|
|
7311
|
+
"audio",
|
|
7312
|
+
"mosaic"
|
|
7312
7313
|
]);
|
|
7313
|
-
|
|
7314
|
+
/**
|
|
7315
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
7316
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
7317
|
+
* does not re-spell the list and drift from it.
|
|
7318
|
+
*/
|
|
7319
|
+
var EVENT_OWNER_TYPES = [
|
|
7314
7320
|
"motion",
|
|
7315
7321
|
"object",
|
|
7316
7322
|
"audio"
|
|
7317
|
-
]
|
|
7323
|
+
];
|
|
7324
|
+
/**
|
|
7325
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
7326
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
7327
|
+
* `(table, id)`).
|
|
7328
|
+
*
|
|
7329
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
7330
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
7331
|
+
* nothing failing until a caller asked.
|
|
7332
|
+
*/
|
|
7333
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
7334
|
+
new Set(EVENT_OWNER_TYPES);
|
|
7318
7335
|
var EncodeProfileSchema = object({
|
|
7319
7336
|
video: object({
|
|
7320
7337
|
codec: _enum([
|
|
@@ -7353,7 +7370,23 @@ var EncodeProfileSchema = object({
|
|
|
7353
7370
|
"zerolatency",
|
|
7354
7371
|
"film",
|
|
7355
7372
|
"animation"
|
|
7356
|
-
]).optional()
|
|
7373
|
+
]).optional(),
|
|
7374
|
+
/**
|
|
7375
|
+
* ONE slice per access unit.
|
|
7376
|
+
*
|
|
7377
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7378
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7379
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7380
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7381
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7382
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7383
|
+
*
|
|
7384
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7385
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7386
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7387
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7388
|
+
*/
|
|
7389
|
+
singleSlicePerFrame: boolean().optional()
|
|
7357
7390
|
}),
|
|
7358
7391
|
audio: union([literal("passthrough"), object({
|
|
7359
7392
|
codec: _enum([
|
|
@@ -7403,7 +7436,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7403
7436
|
audio: "passthrough"
|
|
7404
7437
|
};
|
|
7405
7438
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7406
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7439
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7407
7440
|
/**
|
|
7408
7441
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7409
7442
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -12806,6 +12839,16 @@ method(object({
|
|
|
12806
12839
|
filter: QueryFilterSchema.optional(),
|
|
12807
12840
|
columns: array(string()).readonly().optional()
|
|
12808
12841
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12842
|
+
namespace: string().optional(),
|
|
12843
|
+
collection: string(),
|
|
12844
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12845
|
+
* index on the collection. Never empty. */
|
|
12846
|
+
conflict: array(string()).readonly(),
|
|
12847
|
+
record: BulkRecordSchema
|
|
12848
|
+
}), object({
|
|
12849
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12850
|
+
* row's own id on an update. */
|
|
12851
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12809
12852
|
namespace: string().optional(),
|
|
12810
12853
|
collection: string(),
|
|
12811
12854
|
record: object({
|
|
@@ -12940,6 +12983,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12940
12983
|
id: union([string(), number()]) }), {
|
|
12941
12984
|
kind: "mutation",
|
|
12942
12985
|
auth: "admin"
|
|
12986
|
+
}), method(object({
|
|
12987
|
+
namespace: string().optional(),
|
|
12988
|
+
collection: string(),
|
|
12989
|
+
conflict: array(string()).readonly(),
|
|
12990
|
+
record: BulkRecordSchema
|
|
12991
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12992
|
+
kind: "mutation",
|
|
12993
|
+
auth: "admin"
|
|
12943
12994
|
}), method(object({
|
|
12944
12995
|
namespace: string().optional(),
|
|
12945
12996
|
collection: string(),
|
|
@@ -19441,8 +19492,8 @@ var TrackPositionSchema = object({
|
|
|
19441
19492
|
var TrackSnapshotSchema = object({
|
|
19442
19493
|
timestamp: number(),
|
|
19443
19494
|
position: TrackPositionSchema,
|
|
19444
|
-
/**
|
|
19445
|
-
|
|
19495
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
19496
|
+
mediaId: number().int()
|
|
19446
19497
|
});
|
|
19447
19498
|
/**
|
|
19448
19499
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -20046,14 +20097,14 @@ var ObjectEventSchema = object({
|
|
|
20046
20097
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
20047
20098
|
frameWidth: number().optional(),
|
|
20048
20099
|
frameHeight: number().optional(),
|
|
20049
|
-
/**
|
|
20050
|
-
|
|
20051
|
-
/** Design B:
|
|
20100
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
20101
|
+
mediaId: number().int().optional(),
|
|
20102
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
20052
20103
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
20053
|
-
* (`/addon/<addonId>/event-media/<
|
|
20104
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
20054
20105
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
20055
|
-
* sources — consumers fall back to `
|
|
20056
|
-
|
|
20106
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
20107
|
+
keyFrameMediaId: number().int().optional(),
|
|
20057
20108
|
/** Populated by B5 (recording playback URL for this event). */
|
|
20058
20109
|
mediaUrl: string().optional(),
|
|
20059
20110
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -20103,7 +20154,7 @@ var MediaFileKindEnum = _enum([
|
|
|
20103
20154
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
20104
20155
|
*
|
|
20105
20156
|
* `url` points at the `event-media` data plane
|
|
20106
|
-
* (`/addon/<addonId>/event-media/<
|
|
20157
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
20107
20158
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
20108
20159
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
20109
20160
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -20111,10 +20162,13 @@ var MediaFileKindEnum = _enum([
|
|
|
20111
20162
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
20112
20163
|
* (per-device scoping).
|
|
20113
20164
|
*
|
|
20114
|
-
* The URL is built from the row's
|
|
20115
|
-
*
|
|
20165
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
20166
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
20167
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
20116
20168
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
20117
|
-
* `faceCrop`/`plateCrop
|
|
20169
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
20170
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
20171
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
20118
20172
|
*
|
|
20119
20173
|
* ## `base64` is TRANSITIONAL and is going away
|
|
20120
20174
|
*
|
|
@@ -20127,7 +20181,19 @@ var MediaFileKindEnum = _enum([
|
|
|
20127
20181
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
20128
20182
|
*/
|
|
20129
20183
|
var MediaFileSchema = object({
|
|
20130
|
-
|
|
20184
|
+
/**
|
|
20185
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
20186
|
+
*
|
|
20187
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
20188
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
20189
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
20190
|
+
* different rows that spell the same number, and a track whose
|
|
20191
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
20192
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
20193
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
20194
|
+
* at all.
|
|
20195
|
+
*/
|
|
20196
|
+
mediaId: number().int(),
|
|
20131
20197
|
kind: MediaFileKindEnum,
|
|
20132
20198
|
sizeBytes: number(),
|
|
20133
20199
|
timestamp: number()
|
|
@@ -20235,7 +20301,7 @@ var RetrainTrackSchema = object({
|
|
|
20235
20301
|
});
|
|
20236
20302
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
20237
20303
|
var RetrainFrameCandidateSchema = object({
|
|
20238
|
-
|
|
20304
|
+
mediaId: number().int(),
|
|
20239
20305
|
kind: MediaFileKindEnum,
|
|
20240
20306
|
timestamp: number(),
|
|
20241
20307
|
sizeBytes: number().int(),
|
|
@@ -20249,7 +20315,7 @@ var RetrainFrameSchema = object({
|
|
|
20249
20315
|
deviceId: number(),
|
|
20250
20316
|
trackId: string(),
|
|
20251
20317
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
20252
|
-
|
|
20318
|
+
sourceMediaId: number().int(),
|
|
20253
20319
|
sourceKind: MediaFileKindEnum,
|
|
20254
20320
|
sizeBytes: number().int(),
|
|
20255
20321
|
width: number().int(),
|
|
@@ -20265,7 +20331,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
20265
20331
|
var RetrainFrameSelectionSchema = object({
|
|
20266
20332
|
copied: array(RetrainFrameSchema).readonly(),
|
|
20267
20333
|
refused: array(object({
|
|
20268
|
-
|
|
20334
|
+
sourceMediaId: number().int(),
|
|
20269
20335
|
reason: RetrainCopyRefusalSchema
|
|
20270
20336
|
})).readonly()
|
|
20271
20337
|
});
|
|
@@ -20273,7 +20339,7 @@ var RetrainFrameListSchema = object({
|
|
|
20273
20339
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
20274
20340
|
copies: array(RetrainFrameSchema).readonly(),
|
|
20275
20341
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
20276
|
-
|
|
20342
|
+
autoPickMediaId: number().int().optional()
|
|
20277
20343
|
});
|
|
20278
20344
|
/** What the operator asked the assist to look for. */
|
|
20279
20345
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -20368,9 +20434,11 @@ var RecentTracksQueryInput = object({
|
|
|
20368
20434
|
});
|
|
20369
20435
|
/**
|
|
20370
20436
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
20371
|
-
* `
|
|
20372
|
-
* served by the event-media plane
|
|
20373
|
-
* member visible has been materialised
|
|
20437
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
20438
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
20439
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
20440
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
20441
|
+
* row once event ids became per-table rowids).
|
|
20374
20442
|
*/
|
|
20375
20443
|
var SummarySchema = object({
|
|
20376
20444
|
id: string(),
|
|
@@ -20379,19 +20447,115 @@ var SummarySchema = object({
|
|
|
20379
20447
|
lastActiveAt: number(),
|
|
20380
20448
|
sealedAt: number().nullable(),
|
|
20381
20449
|
memberCount: number().int().nonnegative(),
|
|
20382
|
-
|
|
20450
|
+
groupShotMediaId: number().int().nullable()
|
|
20383
20451
|
});
|
|
20384
20452
|
var SummariesQueryInput = object({
|
|
20385
20453
|
deviceIds: array(number()).min(1),
|
|
20386
20454
|
since: number().optional(),
|
|
20387
20455
|
until: number().optional(),
|
|
20388
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20456
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20457
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20458
|
+
* meaning of "dog" on every summary surface. */
|
|
20459
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20389
20460
|
});
|
|
20390
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20391
20461
|
var SummaryDetailSchema = object({
|
|
20392
20462
|
summary: SummarySchema,
|
|
20393
|
-
/**
|
|
20394
|
-
|
|
20463
|
+
/** Members in absorption order, oldest join first. */
|
|
20464
|
+
members: array(object({
|
|
20465
|
+
trackId: string(),
|
|
20466
|
+
/**
|
|
20467
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20468
|
+
* and the track no longer exists to fill it.
|
|
20469
|
+
*
|
|
20470
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20471
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20472
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20473
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20474
|
+
* drift from the members it claims to describe.
|
|
20475
|
+
*/
|
|
20476
|
+
className: string().nullable(),
|
|
20477
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20478
|
+
role: _enum([
|
|
20479
|
+
"primary",
|
|
20480
|
+
"sibling",
|
|
20481
|
+
"child"
|
|
20482
|
+
]).nullable(),
|
|
20483
|
+
joinedAt: number(),
|
|
20484
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20485
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20486
|
+
label: string().optional(),
|
|
20487
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20488
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20489
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20490
|
+
subLabel: string().optional()
|
|
20491
|
+
})).readonly()
|
|
20492
|
+
});
|
|
20493
|
+
/**
|
|
20494
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20495
|
+
*
|
|
20496
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20497
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20498
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20499
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20500
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20501
|
+
* draw two hundred badges.
|
|
20502
|
+
*/
|
|
20503
|
+
var SummaryListItemSchema = object({
|
|
20504
|
+
summary: SummarySchema,
|
|
20505
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20506
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20507
|
+
classes: array(object({
|
|
20508
|
+
className: string().nullable(),
|
|
20509
|
+
count: number().int().positive()
|
|
20510
|
+
})).readonly()
|
|
20511
|
+
});
|
|
20512
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20513
|
+
/**
|
|
20514
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20515
|
+
*
|
|
20516
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20517
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20518
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20519
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20520
|
+
* "newest" means, on one screen.
|
|
20521
|
+
*/
|
|
20522
|
+
var RecentSummariesQueryInput = object({
|
|
20523
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20524
|
+
deviceIds: array(number()),
|
|
20525
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20526
|
+
since: number().optional(),
|
|
20527
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20528
|
+
until: number().optional(),
|
|
20529
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20530
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20531
|
+
cursor: string().optional(),
|
|
20532
|
+
/**
|
|
20533
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20534
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20535
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20536
|
+
* make the operator's one filter component produce two shapes.
|
|
20537
|
+
*
|
|
20538
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20539
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20540
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20541
|
+
* about its primary.
|
|
20542
|
+
*
|
|
20543
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20544
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20545
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20546
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20547
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20548
|
+
*
|
|
20549
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20550
|
+
*/
|
|
20551
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20552
|
+
});
|
|
20553
|
+
var RecentSummariesPageSchema = object({
|
|
20554
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20555
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20556
|
+
* whichever feed drew it. */
|
|
20557
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20558
|
+
nextCursor: string().nullable()
|
|
20395
20559
|
});
|
|
20396
20560
|
var RecentTracksPageSchema = object({
|
|
20397
20561
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20805,7 +20969,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20805
20969
|
classes: array(string()).optional(),
|
|
20806
20970
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20807
20971
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20808
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20972
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20809
20973
|
kind: "mutation",
|
|
20810
20974
|
auth: "admin"
|
|
20811
20975
|
}), 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({
|
|
@@ -20933,7 +21097,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20933
21097
|
}), method(object({
|
|
20934
21098
|
deviceId: number(),
|
|
20935
21099
|
trackId: string(),
|
|
20936
|
-
|
|
21100
|
+
mediaIds: array(number().int()).min(1)
|
|
20937
21101
|
}), RetrainFrameSelectionSchema, {
|
|
20938
21102
|
kind: "mutation",
|
|
20939
21103
|
auth: "admin"
|
|
@@ -21001,7 +21165,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21001
21165
|
kind: "query",
|
|
21002
21166
|
auth: "admin"
|
|
21003
21167
|
}), method(object({
|
|
21004
|
-
|
|
21168
|
+
/** Which of the three event tables owns the row. */
|
|
21169
|
+
ownerType: EventOwnerTypeSchema,
|
|
21170
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
21171
|
+
eventId: number().int(),
|
|
21005
21172
|
kind: MediaFileKindEnum.optional(),
|
|
21006
21173
|
deviceId: number()
|
|
21007
21174
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -21012,7 +21179,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21012
21179
|
trackId: string(),
|
|
21013
21180
|
deviceId: number()
|
|
21014
21181
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
21015
|
-
|
|
21182
|
+
ownerType: EventOwnerTypeSchema,
|
|
21183
|
+
eventId: number().int(),
|
|
21016
21184
|
deviceId: number()
|
|
21017
21185
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
21018
21186
|
kind: "mutation",
|
|
@@ -26309,8 +26477,8 @@ var IdentitySchema = object({
|
|
|
26309
26477
|
id: string(),
|
|
26310
26478
|
name: string(),
|
|
26311
26479
|
sampleCount: number().int().nonnegative(),
|
|
26312
|
-
|
|
26313
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
26480
|
+
coverMediaId: number().int().optional(),
|
|
26481
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
26314
26482
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
26315
26483
|
coverBase64: string().optional()
|
|
26316
26484
|
});
|
|
@@ -26336,8 +26504,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
26336
26504
|
enrolledAt: number().int(),
|
|
26337
26505
|
deviceId: number().int().optional(),
|
|
26338
26506
|
source: _enum(["detected", "photo"]),
|
|
26339
|
-
/** The enrolled crop's media
|
|
26340
|
-
|
|
26507
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
26508
|
+
mediaId: number().int().optional(),
|
|
26341
26509
|
/**
|
|
26342
26510
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
26343
26511
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -26406,15 +26574,15 @@ var FaceInfoSchema = object({
|
|
|
26406
26574
|
*/
|
|
26407
26575
|
cropUrl: string().optional(),
|
|
26408
26576
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
26409
|
-
* view draw the box over the native `
|
|
26577
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
26410
26578
|
* legacy rows written before design B. */
|
|
26411
26579
|
faceBbox: BoundingBoxSchema.optional(),
|
|
26412
26580
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
26413
26581
|
* Fetch the native JPEG via the event-media data-plane
|
|
26414
|
-
* (`/addon/<addonId>/event-media/<
|
|
26582
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
26415
26583
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
26416
26584
|
* back to the inline `base64` face crop. */
|
|
26417
|
-
|
|
26585
|
+
keyFrameMediaId: number().int().optional(),
|
|
26418
26586
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
26419
26587
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
26420
26588
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -26483,11 +26651,14 @@ var FaceClusterSchema = object({
|
|
|
26483
26651
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
26484
26652
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
26485
26653
|
*
|
|
26486
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
26487
|
-
* media
|
|
26654
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
26655
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
26656
|
+
* access decision.
|
|
26488
26657
|
*/
|
|
26489
26658
|
var MediaFileLiteSchema$1 = object({
|
|
26490
|
-
|
|
26659
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
26660
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
26661
|
+
mediaId: number().int(),
|
|
26491
26662
|
kind: string(),
|
|
26492
26663
|
url: string(),
|
|
26493
26664
|
sizeBytes: number(),
|
|
@@ -26504,7 +26675,7 @@ method(object({
|
|
|
26504
26675
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
26505
26676
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
26506
26677
|
*
|
|
26507
|
-
* Nothing loses its avatar: `
|
|
26678
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
26508
26679
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
26509
26680
|
*
|
|
26510
26681
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -29938,8 +30109,8 @@ var VehicleSchema = object({
|
|
|
29938
30109
|
id: string(),
|
|
29939
30110
|
name: string(),
|
|
29940
30111
|
sampleCount: number().int().nonnegative(),
|
|
29941
|
-
|
|
29942
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
30112
|
+
coverMediaId: number().int().optional(),
|
|
30113
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
29943
30114
|
coverBase64: string().optional()
|
|
29944
30115
|
});
|
|
29945
30116
|
var VehicleSampleInfoSchema = object({
|
|
@@ -29972,7 +30143,7 @@ var PlateInfoSchema = object({
|
|
|
29972
30143
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
29973
30144
|
plateBbox: BoundingBoxSchema.optional(),
|
|
29974
30145
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
29975
|
-
|
|
30146
|
+
keyFrameMediaId: number().int().optional(),
|
|
29976
30147
|
base64: string().optional(),
|
|
29977
30148
|
/**
|
|
29978
30149
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -29993,11 +30164,14 @@ var PlateInfoSchema = object({
|
|
|
29993
30164
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
29994
30165
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
29995
30166
|
*
|
|
29996
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
29997
|
-
* media
|
|
30167
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
30168
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
30169
|
+
* access decision.
|
|
29998
30170
|
*/
|
|
29999
30171
|
var MediaFileLiteSchema = object({
|
|
30000
|
-
|
|
30172
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
30173
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
30174
|
+
mediaId: number().int(),
|
|
30001
30175
|
kind: string(),
|
|
30002
30176
|
url: string(),
|
|
30003
30177
|
sizeBytes: number(),
|
|
@@ -30056,7 +30230,7 @@ method(object({
|
|
|
30056
30230
|
}), method(object({
|
|
30057
30231
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
30058
30232
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
30059
|
-
* option; `
|
|
30233
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
30060
30234
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
30061
30235
|
* resolves to `false` and is exactly the intended default. */
|
|
30062
30236
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -31712,7 +31886,14 @@ var SceneReferenceSchema = object({
|
|
|
31712
31886
|
modelId: string(),
|
|
31713
31887
|
condition: SceneConditionSchema,
|
|
31714
31888
|
capturedAt: number(),
|
|
31715
|
-
|
|
31889
|
+
/**
|
|
31890
|
+
* The reference thumbnail's media ROW id (D482).
|
|
31891
|
+
*
|
|
31892
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
31893
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
31894
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
31895
|
+
*/
|
|
31896
|
+
thumbnailMediaId: number().int().optional(),
|
|
31716
31897
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
31717
31898
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
31718
31899
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -33001,7 +33182,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
33001
33182
|
* disarmed the channels it did not mention would make the Levels page and
|
|
33002
33183
|
* the Diagnostics page fight over the same value.
|
|
33003
33184
|
*/
|
|
33004
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
33185
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
33186
|
+
/**
|
|
33187
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
33188
|
+
* retention actually deleted.
|
|
33189
|
+
*
|
|
33190
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
33191
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
33192
|
+
* this system is configured through this one document, and a retention audit
|
|
33193
|
+
* configured somewhere else is a second place to look when the question is
|
|
33194
|
+
* "what happened to my data".
|
|
33195
|
+
*
|
|
33196
|
+
* That placement has a cost worth stating: this document ships in the
|
|
33197
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
33198
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
33199
|
+
*
|
|
33200
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
33201
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
33202
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
33203
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
33204
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
33205
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
33206
|
+
*/
|
|
33207
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
33005
33208
|
});
|
|
33006
33209
|
/**
|
|
33007
33210
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -33074,6 +33277,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
33074
33277
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
33075
33278
|
/** The channels ARMED right now, each with its deadline. */
|
|
33076
33279
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
33280
|
+
/**
|
|
33281
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
33282
|
+
*
|
|
33283
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
33284
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
33285
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
33286
|
+
*/
|
|
33287
|
+
opsLogRetentionDays: number().int().min(0),
|
|
33077
33288
|
persisted: boolean()
|
|
33078
33289
|
});
|
|
33079
33290
|
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(), {
|
|
@@ -33894,7 +34105,7 @@ var StationaryObjectSchema = object({
|
|
|
33894
34105
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
33895
34106
|
label: string().optional(),
|
|
33896
34107
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
33897
|
-
|
|
34108
|
+
keyFrameMediaId: number().int().optional()
|
|
33898
34109
|
});
|
|
33899
34110
|
var CameraOccupancySnapshotSchema = object({
|
|
33900
34111
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -36865,6 +37076,12 @@ Object.freeze({
|
|
|
36865
37076
|
addonId: null,
|
|
36866
37077
|
access: "create"
|
|
36867
37078
|
},
|
|
37079
|
+
"dataStoreProvider.upsert": {
|
|
37080
|
+
capName: "data-store-provider",
|
|
37081
|
+
capScope: "system",
|
|
37082
|
+
addonId: null,
|
|
37083
|
+
access: "create"
|
|
37084
|
+
},
|
|
36868
37085
|
"dayNight.getOptions": {
|
|
36869
37086
|
capName: "day-night",
|
|
36870
37087
|
capScope: "device",
|
|
@@ -39301,6 +39518,12 @@ Object.freeze({
|
|
|
39301
39518
|
addonId: null,
|
|
39302
39519
|
access: "view"
|
|
39303
39520
|
},
|
|
39521
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
39522
|
+
capName: "pipeline-analytics",
|
|
39523
|
+
capScope: "device",
|
|
39524
|
+
addonId: null,
|
|
39525
|
+
access: "view"
|
|
39526
|
+
},
|
|
39304
39527
|
"pipelineAnalytics.listRecentTracks": {
|
|
39305
39528
|
capName: "pipeline-analytics",
|
|
39306
39529
|
capScope: "device",
|
|
@@ -40729,6 +40952,12 @@ Object.freeze({
|
|
|
40729
40952
|
addonId: null,
|
|
40730
40953
|
access: "create"
|
|
40731
40954
|
},
|
|
40955
|
+
"settingsStore.upsert": {
|
|
40956
|
+
capName: "settings-store",
|
|
40957
|
+
capScope: "system",
|
|
40958
|
+
addonId: null,
|
|
40959
|
+
access: "create"
|
|
40960
|
+
},
|
|
40732
40961
|
"smtpProvider.getStatus": {
|
|
40733
40962
|
capName: "smtp-provider",
|
|
40734
40963
|
capScope: "system",
|
|
@@ -43122,6 +43351,11 @@ Object.freeze({
|
|
|
43122
43351
|
form: "single",
|
|
43123
43352
|
optional: true
|
|
43124
43353
|
}],
|
|
43354
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
43355
|
+
name: "deviceIds",
|
|
43356
|
+
form: "array",
|
|
43357
|
+
optional: false
|
|
43358
|
+
}],
|
|
43125
43359
|
"pipelineAnalytics.listRecentTracks": [{
|
|
43126
43360
|
name: "deviceIds",
|
|
43127
43361
|
form: "array",
|
package/dist/addon.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { networkInterfaces } from "node:os";
|
|
|
7
7
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
8
8
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
9
9
|
//#endregion
|
|
10
|
-
//#region ../types/dist/event-category-
|
|
10
|
+
//#region ../types/dist/event-category-ZyX6jcse.mjs
|
|
11
11
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
12
12
|
EventCategory["SystemBoot"] = "system.boot";
|
|
13
13
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -568,7 +568,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
568
568
|
* a package zone — a newly-appeared stationary object of a package class
|
|
569
569
|
* that cleared the class / zone / dwell / size gates. Payload:
|
|
570
570
|
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
571
|
-
* entryId, className, zoneIds,
|
|
571
|
+
* entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
|
|
572
572
|
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
573
573
|
* this bus topic drives notifier rules + live UI. See
|
|
574
574
|
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
@@ -5354,7 +5354,7 @@ var ZodIssueCode = {
|
|
|
5354
5354
|
var ZodFirstPartyTypeKind;
|
|
5355
5355
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5356
5356
|
//#endregion
|
|
5357
|
-
//#region ../types/dist/sleep-
|
|
5357
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5358
5358
|
/**
|
|
5359
5359
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5360
5360
|
* window to float samples (D455).
|
|
@@ -7309,13 +7309,30 @@ new Set([
|
|
|
7309
7309
|
"scene",
|
|
7310
7310
|
"motion",
|
|
7311
7311
|
"object",
|
|
7312
|
-
"audio"
|
|
7312
|
+
"audio",
|
|
7313
|
+
"mosaic"
|
|
7313
7314
|
]);
|
|
7314
|
-
|
|
7315
|
+
/**
|
|
7316
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
7317
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
7318
|
+
* does not re-spell the list and drift from it.
|
|
7319
|
+
*/
|
|
7320
|
+
var EVENT_OWNER_TYPES = [
|
|
7315
7321
|
"motion",
|
|
7316
7322
|
"object",
|
|
7317
7323
|
"audio"
|
|
7318
|
-
]
|
|
7324
|
+
];
|
|
7325
|
+
/**
|
|
7326
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
7327
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
7328
|
+
* `(table, id)`).
|
|
7329
|
+
*
|
|
7330
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
7331
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
7332
|
+
* nothing failing until a caller asked.
|
|
7333
|
+
*/
|
|
7334
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
7335
|
+
new Set(EVENT_OWNER_TYPES);
|
|
7319
7336
|
var EncodeProfileSchema = object({
|
|
7320
7337
|
video: object({
|
|
7321
7338
|
codec: _enum([
|
|
@@ -7354,7 +7371,23 @@ var EncodeProfileSchema = object({
|
|
|
7354
7371
|
"zerolatency",
|
|
7355
7372
|
"film",
|
|
7356
7373
|
"animation"
|
|
7357
|
-
]).optional()
|
|
7374
|
+
]).optional(),
|
|
7375
|
+
/**
|
|
7376
|
+
* ONE slice per access unit.
|
|
7377
|
+
*
|
|
7378
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7379
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7380
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7381
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7382
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7383
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7384
|
+
*
|
|
7385
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7386
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7387
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7388
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7389
|
+
*/
|
|
7390
|
+
singleSlicePerFrame: boolean().optional()
|
|
7358
7391
|
}),
|
|
7359
7392
|
audio: union([literal("passthrough"), object({
|
|
7360
7393
|
codec: _enum([
|
|
@@ -7404,7 +7437,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7404
7437
|
audio: "passthrough"
|
|
7405
7438
|
};
|
|
7406
7439
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7407
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7440
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7408
7441
|
/**
|
|
7409
7442
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7410
7443
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -12807,6 +12840,16 @@ method(object({
|
|
|
12807
12840
|
filter: QueryFilterSchema.optional(),
|
|
12808
12841
|
columns: array(string()).readonly().optional()
|
|
12809
12842
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12843
|
+
namespace: string().optional(),
|
|
12844
|
+
collection: string(),
|
|
12845
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12846
|
+
* index on the collection. Never empty. */
|
|
12847
|
+
conflict: array(string()).readonly(),
|
|
12848
|
+
record: BulkRecordSchema
|
|
12849
|
+
}), object({
|
|
12850
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12851
|
+
* row's own id on an update. */
|
|
12852
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12810
12853
|
namespace: string().optional(),
|
|
12811
12854
|
collection: string(),
|
|
12812
12855
|
record: object({
|
|
@@ -12941,6 +12984,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12941
12984
|
id: union([string(), number()]) }), {
|
|
12942
12985
|
kind: "mutation",
|
|
12943
12986
|
auth: "admin"
|
|
12987
|
+
}), method(object({
|
|
12988
|
+
namespace: string().optional(),
|
|
12989
|
+
collection: string(),
|
|
12990
|
+
conflict: array(string()).readonly(),
|
|
12991
|
+
record: BulkRecordSchema
|
|
12992
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12993
|
+
kind: "mutation",
|
|
12994
|
+
auth: "admin"
|
|
12944
12995
|
}), method(object({
|
|
12945
12996
|
namespace: string().optional(),
|
|
12946
12997
|
collection: string(),
|
|
@@ -19442,8 +19493,8 @@ var TrackPositionSchema = object({
|
|
|
19442
19493
|
var TrackSnapshotSchema = object({
|
|
19443
19494
|
timestamp: number(),
|
|
19444
19495
|
position: TrackPositionSchema,
|
|
19445
|
-
/**
|
|
19446
|
-
|
|
19496
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
19497
|
+
mediaId: number().int()
|
|
19447
19498
|
});
|
|
19448
19499
|
/**
|
|
19449
19500
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -20047,14 +20098,14 @@ var ObjectEventSchema = object({
|
|
|
20047
20098
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
20048
20099
|
frameWidth: number().optional(),
|
|
20049
20100
|
frameHeight: number().optional(),
|
|
20050
|
-
/**
|
|
20051
|
-
|
|
20052
|
-
/** Design B:
|
|
20101
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
20102
|
+
mediaId: number().int().optional(),
|
|
20103
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
20053
20104
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
20054
|
-
* (`/addon/<addonId>/event-media/<
|
|
20105
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
20055
20106
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
20056
|
-
* sources — consumers fall back to `
|
|
20057
|
-
|
|
20107
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
20108
|
+
keyFrameMediaId: number().int().optional(),
|
|
20058
20109
|
/** Populated by B5 (recording playback URL for this event). */
|
|
20059
20110
|
mediaUrl: string().optional(),
|
|
20060
20111
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -20104,7 +20155,7 @@ var MediaFileKindEnum = _enum([
|
|
|
20104
20155
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
20105
20156
|
*
|
|
20106
20157
|
* `url` points at the `event-media` data plane
|
|
20107
|
-
* (`/addon/<addonId>/event-media/<
|
|
20158
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
20108
20159
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
20109
20160
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
20110
20161
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -20112,10 +20163,13 @@ var MediaFileKindEnum = _enum([
|
|
|
20112
20163
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
20113
20164
|
* (per-device scoping).
|
|
20114
20165
|
*
|
|
20115
|
-
* The URL is built from the row's
|
|
20116
|
-
*
|
|
20166
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
20167
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
20168
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
20117
20169
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
20118
|
-
* `faceCrop`/`plateCrop
|
|
20170
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
20171
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
20172
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
20119
20173
|
*
|
|
20120
20174
|
* ## `base64` is TRANSITIONAL and is going away
|
|
20121
20175
|
*
|
|
@@ -20128,7 +20182,19 @@ var MediaFileKindEnum = _enum([
|
|
|
20128
20182
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
20129
20183
|
*/
|
|
20130
20184
|
var MediaFileSchema = object({
|
|
20131
|
-
|
|
20185
|
+
/**
|
|
20186
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
20187
|
+
*
|
|
20188
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
20189
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
20190
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
20191
|
+
* different rows that spell the same number, and a track whose
|
|
20192
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
20193
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
20194
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
20195
|
+
* at all.
|
|
20196
|
+
*/
|
|
20197
|
+
mediaId: number().int(),
|
|
20132
20198
|
kind: MediaFileKindEnum,
|
|
20133
20199
|
sizeBytes: number(),
|
|
20134
20200
|
timestamp: number()
|
|
@@ -20236,7 +20302,7 @@ var RetrainTrackSchema = object({
|
|
|
20236
20302
|
});
|
|
20237
20303
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
20238
20304
|
var RetrainFrameCandidateSchema = object({
|
|
20239
|
-
|
|
20305
|
+
mediaId: number().int(),
|
|
20240
20306
|
kind: MediaFileKindEnum,
|
|
20241
20307
|
timestamp: number(),
|
|
20242
20308
|
sizeBytes: number().int(),
|
|
@@ -20250,7 +20316,7 @@ var RetrainFrameSchema = object({
|
|
|
20250
20316
|
deviceId: number(),
|
|
20251
20317
|
trackId: string(),
|
|
20252
20318
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
20253
|
-
|
|
20319
|
+
sourceMediaId: number().int(),
|
|
20254
20320
|
sourceKind: MediaFileKindEnum,
|
|
20255
20321
|
sizeBytes: number().int(),
|
|
20256
20322
|
width: number().int(),
|
|
@@ -20266,7 +20332,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
20266
20332
|
var RetrainFrameSelectionSchema = object({
|
|
20267
20333
|
copied: array(RetrainFrameSchema).readonly(),
|
|
20268
20334
|
refused: array(object({
|
|
20269
|
-
|
|
20335
|
+
sourceMediaId: number().int(),
|
|
20270
20336
|
reason: RetrainCopyRefusalSchema
|
|
20271
20337
|
})).readonly()
|
|
20272
20338
|
});
|
|
@@ -20274,7 +20340,7 @@ var RetrainFrameListSchema = object({
|
|
|
20274
20340
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
20275
20341
|
copies: array(RetrainFrameSchema).readonly(),
|
|
20276
20342
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
20277
|
-
|
|
20343
|
+
autoPickMediaId: number().int().optional()
|
|
20278
20344
|
});
|
|
20279
20345
|
/** What the operator asked the assist to look for. */
|
|
20280
20346
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -20369,9 +20435,11 @@ var RecentTracksQueryInput = object({
|
|
|
20369
20435
|
});
|
|
20370
20436
|
/**
|
|
20371
20437
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
20372
|
-
* `
|
|
20373
|
-
* served by the event-media plane
|
|
20374
|
-
* member visible has been materialised
|
|
20438
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
20439
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
20440
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
20441
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
20442
|
+
* row once event ids became per-table rowids).
|
|
20375
20443
|
*/
|
|
20376
20444
|
var SummarySchema = object({
|
|
20377
20445
|
id: string(),
|
|
@@ -20380,19 +20448,115 @@ var SummarySchema = object({
|
|
|
20380
20448
|
lastActiveAt: number(),
|
|
20381
20449
|
sealedAt: number().nullable(),
|
|
20382
20450
|
memberCount: number().int().nonnegative(),
|
|
20383
|
-
|
|
20451
|
+
groupShotMediaId: number().int().nullable()
|
|
20384
20452
|
});
|
|
20385
20453
|
var SummariesQueryInput = object({
|
|
20386
20454
|
deviceIds: array(number()).min(1),
|
|
20387
20455
|
since: number().optional(),
|
|
20388
20456
|
until: number().optional(),
|
|
20389
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20457
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20458
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20459
|
+
* meaning of "dog" on every summary surface. */
|
|
20460
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20390
20461
|
});
|
|
20391
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20392
20462
|
var SummaryDetailSchema = object({
|
|
20393
20463
|
summary: SummarySchema,
|
|
20394
|
-
/**
|
|
20395
|
-
|
|
20464
|
+
/** Members in absorption order, oldest join first. */
|
|
20465
|
+
members: array(object({
|
|
20466
|
+
trackId: string(),
|
|
20467
|
+
/**
|
|
20468
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20469
|
+
* and the track no longer exists to fill it.
|
|
20470
|
+
*
|
|
20471
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20472
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20473
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20474
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20475
|
+
* drift from the members it claims to describe.
|
|
20476
|
+
*/
|
|
20477
|
+
className: string().nullable(),
|
|
20478
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20479
|
+
role: _enum([
|
|
20480
|
+
"primary",
|
|
20481
|
+
"sibling",
|
|
20482
|
+
"child"
|
|
20483
|
+
]).nullable(),
|
|
20484
|
+
joinedAt: number(),
|
|
20485
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20486
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20487
|
+
label: string().optional(),
|
|
20488
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20489
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20490
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20491
|
+
subLabel: string().optional()
|
|
20492
|
+
})).readonly()
|
|
20493
|
+
});
|
|
20494
|
+
/**
|
|
20495
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20496
|
+
*
|
|
20497
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20498
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20499
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20500
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20501
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20502
|
+
* draw two hundred badges.
|
|
20503
|
+
*/
|
|
20504
|
+
var SummaryListItemSchema = object({
|
|
20505
|
+
summary: SummarySchema,
|
|
20506
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20507
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20508
|
+
classes: array(object({
|
|
20509
|
+
className: string().nullable(),
|
|
20510
|
+
count: number().int().positive()
|
|
20511
|
+
})).readonly()
|
|
20512
|
+
});
|
|
20513
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20514
|
+
/**
|
|
20515
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20516
|
+
*
|
|
20517
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20518
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20519
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20520
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20521
|
+
* "newest" means, on one screen.
|
|
20522
|
+
*/
|
|
20523
|
+
var RecentSummariesQueryInput = object({
|
|
20524
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20525
|
+
deviceIds: array(number()),
|
|
20526
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20527
|
+
since: number().optional(),
|
|
20528
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20529
|
+
until: number().optional(),
|
|
20530
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20531
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20532
|
+
cursor: string().optional(),
|
|
20533
|
+
/**
|
|
20534
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20535
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20536
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20537
|
+
* make the operator's one filter component produce two shapes.
|
|
20538
|
+
*
|
|
20539
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20540
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20541
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20542
|
+
* about its primary.
|
|
20543
|
+
*
|
|
20544
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20545
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20546
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20547
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20548
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20549
|
+
*
|
|
20550
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20551
|
+
*/
|
|
20552
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20553
|
+
});
|
|
20554
|
+
var RecentSummariesPageSchema = object({
|
|
20555
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20556
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20557
|
+
* whichever feed drew it. */
|
|
20558
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20559
|
+
nextCursor: string().nullable()
|
|
20396
20560
|
});
|
|
20397
20561
|
var RecentTracksPageSchema = object({
|
|
20398
20562
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20806,7 +20970,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20806
20970
|
classes: array(string()).optional(),
|
|
20807
20971
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20808
20972
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20809
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20973
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20810
20974
|
kind: "mutation",
|
|
20811
20975
|
auth: "admin"
|
|
20812
20976
|
}), 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({
|
|
@@ -20934,7 +21098,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20934
21098
|
}), method(object({
|
|
20935
21099
|
deviceId: number(),
|
|
20936
21100
|
trackId: string(),
|
|
20937
|
-
|
|
21101
|
+
mediaIds: array(number().int()).min(1)
|
|
20938
21102
|
}), RetrainFrameSelectionSchema, {
|
|
20939
21103
|
kind: "mutation",
|
|
20940
21104
|
auth: "admin"
|
|
@@ -21002,7 +21166,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21002
21166
|
kind: "query",
|
|
21003
21167
|
auth: "admin"
|
|
21004
21168
|
}), method(object({
|
|
21005
|
-
|
|
21169
|
+
/** Which of the three event tables owns the row. */
|
|
21170
|
+
ownerType: EventOwnerTypeSchema,
|
|
21171
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
21172
|
+
eventId: number().int(),
|
|
21006
21173
|
kind: MediaFileKindEnum.optional(),
|
|
21007
21174
|
deviceId: number()
|
|
21008
21175
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -21013,7 +21180,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21013
21180
|
trackId: string(),
|
|
21014
21181
|
deviceId: number()
|
|
21015
21182
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
21016
|
-
|
|
21183
|
+
ownerType: EventOwnerTypeSchema,
|
|
21184
|
+
eventId: number().int(),
|
|
21017
21185
|
deviceId: number()
|
|
21018
21186
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
21019
21187
|
kind: "mutation",
|
|
@@ -26310,8 +26478,8 @@ var IdentitySchema = object({
|
|
|
26310
26478
|
id: string(),
|
|
26311
26479
|
name: string(),
|
|
26312
26480
|
sampleCount: number().int().nonnegative(),
|
|
26313
|
-
|
|
26314
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
26481
|
+
coverMediaId: number().int().optional(),
|
|
26482
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
26315
26483
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
26316
26484
|
coverBase64: string().optional()
|
|
26317
26485
|
});
|
|
@@ -26337,8 +26505,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
26337
26505
|
enrolledAt: number().int(),
|
|
26338
26506
|
deviceId: number().int().optional(),
|
|
26339
26507
|
source: _enum(["detected", "photo"]),
|
|
26340
|
-
/** The enrolled crop's media
|
|
26341
|
-
|
|
26508
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
26509
|
+
mediaId: number().int().optional(),
|
|
26342
26510
|
/**
|
|
26343
26511
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
26344
26512
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -26407,15 +26575,15 @@ var FaceInfoSchema = object({
|
|
|
26407
26575
|
*/
|
|
26408
26576
|
cropUrl: string().optional(),
|
|
26409
26577
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
26410
|
-
* view draw the box over the native `
|
|
26578
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
26411
26579
|
* legacy rows written before design B. */
|
|
26412
26580
|
faceBbox: BoundingBoxSchema.optional(),
|
|
26413
26581
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
26414
26582
|
* Fetch the native JPEG via the event-media data-plane
|
|
26415
|
-
* (`/addon/<addonId>/event-media/<
|
|
26583
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
26416
26584
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
26417
26585
|
* back to the inline `base64` face crop. */
|
|
26418
|
-
|
|
26586
|
+
keyFrameMediaId: number().int().optional(),
|
|
26419
26587
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
26420
26588
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
26421
26589
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -26484,11 +26652,14 @@ var FaceClusterSchema = object({
|
|
|
26484
26652
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
26485
26653
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
26486
26654
|
*
|
|
26487
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
26488
|
-
* media
|
|
26655
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
26656
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
26657
|
+
* access decision.
|
|
26489
26658
|
*/
|
|
26490
26659
|
var MediaFileLiteSchema$1 = object({
|
|
26491
|
-
|
|
26660
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
26661
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
26662
|
+
mediaId: number().int(),
|
|
26492
26663
|
kind: string(),
|
|
26493
26664
|
url: string(),
|
|
26494
26665
|
sizeBytes: number(),
|
|
@@ -26505,7 +26676,7 @@ method(object({
|
|
|
26505
26676
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
26506
26677
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
26507
26678
|
*
|
|
26508
|
-
* Nothing loses its avatar: `
|
|
26679
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
26509
26680
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
26510
26681
|
*
|
|
26511
26682
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -29939,8 +30110,8 @@ var VehicleSchema = object({
|
|
|
29939
30110
|
id: string(),
|
|
29940
30111
|
name: string(),
|
|
29941
30112
|
sampleCount: number().int().nonnegative(),
|
|
29942
|
-
|
|
29943
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
30113
|
+
coverMediaId: number().int().optional(),
|
|
30114
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
29944
30115
|
coverBase64: string().optional()
|
|
29945
30116
|
});
|
|
29946
30117
|
var VehicleSampleInfoSchema = object({
|
|
@@ -29973,7 +30144,7 @@ var PlateInfoSchema = object({
|
|
|
29973
30144
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
29974
30145
|
plateBbox: BoundingBoxSchema.optional(),
|
|
29975
30146
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
29976
|
-
|
|
30147
|
+
keyFrameMediaId: number().int().optional(),
|
|
29977
30148
|
base64: string().optional(),
|
|
29978
30149
|
/**
|
|
29979
30150
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -29994,11 +30165,14 @@ var PlateInfoSchema = object({
|
|
|
29994
30165
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
29995
30166
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
29996
30167
|
*
|
|
29997
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
29998
|
-
* media
|
|
30168
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
30169
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
30170
|
+
* access decision.
|
|
29999
30171
|
*/
|
|
30000
30172
|
var MediaFileLiteSchema = object({
|
|
30001
|
-
|
|
30173
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
30174
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
30175
|
+
mediaId: number().int(),
|
|
30002
30176
|
kind: string(),
|
|
30003
30177
|
url: string(),
|
|
30004
30178
|
sizeBytes: number(),
|
|
@@ -30057,7 +30231,7 @@ method(object({
|
|
|
30057
30231
|
}), method(object({
|
|
30058
30232
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
30059
30233
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
30060
|
-
* option; `
|
|
30234
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
30061
30235
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
30062
30236
|
* resolves to `false` and is exactly the intended default. */
|
|
30063
30237
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -31713,7 +31887,14 @@ var SceneReferenceSchema = object({
|
|
|
31713
31887
|
modelId: string(),
|
|
31714
31888
|
condition: SceneConditionSchema,
|
|
31715
31889
|
capturedAt: number(),
|
|
31716
|
-
|
|
31890
|
+
/**
|
|
31891
|
+
* The reference thumbnail's media ROW id (D482).
|
|
31892
|
+
*
|
|
31893
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
31894
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
31895
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
31896
|
+
*/
|
|
31897
|
+
thumbnailMediaId: number().int().optional(),
|
|
31717
31898
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
31718
31899
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
31719
31900
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -33002,7 +33183,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
33002
33183
|
* disarmed the channels it did not mention would make the Levels page and
|
|
33003
33184
|
* the Diagnostics page fight over the same value.
|
|
33004
33185
|
*/
|
|
33005
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
33186
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
33187
|
+
/**
|
|
33188
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
33189
|
+
* retention actually deleted.
|
|
33190
|
+
*
|
|
33191
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
33192
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
33193
|
+
* this system is configured through this one document, and a retention audit
|
|
33194
|
+
* configured somewhere else is a second place to look when the question is
|
|
33195
|
+
* "what happened to my data".
|
|
33196
|
+
*
|
|
33197
|
+
* That placement has a cost worth stating: this document ships in the
|
|
33198
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
33199
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
33200
|
+
*
|
|
33201
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
33202
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
33203
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
33204
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
33205
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
33206
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
33207
|
+
*/
|
|
33208
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
33006
33209
|
});
|
|
33007
33210
|
/**
|
|
33008
33211
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -33075,6 +33278,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
33075
33278
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
33076
33279
|
/** The channels ARMED right now, each with its deadline. */
|
|
33077
33280
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
33281
|
+
/**
|
|
33282
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
33283
|
+
*
|
|
33284
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
33285
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
33286
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
33287
|
+
*/
|
|
33288
|
+
opsLogRetentionDays: number().int().min(0),
|
|
33078
33289
|
persisted: boolean()
|
|
33079
33290
|
});
|
|
33080
33291
|
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(), {
|
|
@@ -33895,7 +34106,7 @@ var StationaryObjectSchema = object({
|
|
|
33895
34106
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
33896
34107
|
label: string().optional(),
|
|
33897
34108
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
33898
|
-
|
|
34109
|
+
keyFrameMediaId: number().int().optional()
|
|
33899
34110
|
});
|
|
33900
34111
|
var CameraOccupancySnapshotSchema = object({
|
|
33901
34112
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -36866,6 +37077,12 @@ Object.freeze({
|
|
|
36866
37077
|
addonId: null,
|
|
36867
37078
|
access: "create"
|
|
36868
37079
|
},
|
|
37080
|
+
"dataStoreProvider.upsert": {
|
|
37081
|
+
capName: "data-store-provider",
|
|
37082
|
+
capScope: "system",
|
|
37083
|
+
addonId: null,
|
|
37084
|
+
access: "create"
|
|
37085
|
+
},
|
|
36869
37086
|
"dayNight.getOptions": {
|
|
36870
37087
|
capName: "day-night",
|
|
36871
37088
|
capScope: "device",
|
|
@@ -39302,6 +39519,12 @@ Object.freeze({
|
|
|
39302
39519
|
addonId: null,
|
|
39303
39520
|
access: "view"
|
|
39304
39521
|
},
|
|
39522
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
39523
|
+
capName: "pipeline-analytics",
|
|
39524
|
+
capScope: "device",
|
|
39525
|
+
addonId: null,
|
|
39526
|
+
access: "view"
|
|
39527
|
+
},
|
|
39305
39528
|
"pipelineAnalytics.listRecentTracks": {
|
|
39306
39529
|
capName: "pipeline-analytics",
|
|
39307
39530
|
capScope: "device",
|
|
@@ -40730,6 +40953,12 @@ Object.freeze({
|
|
|
40730
40953
|
addonId: null,
|
|
40731
40954
|
access: "create"
|
|
40732
40955
|
},
|
|
40956
|
+
"settingsStore.upsert": {
|
|
40957
|
+
capName: "settings-store",
|
|
40958
|
+
capScope: "system",
|
|
40959
|
+
addonId: null,
|
|
40960
|
+
access: "create"
|
|
40961
|
+
},
|
|
40733
40962
|
"smtpProvider.getStatus": {
|
|
40734
40963
|
capName: "smtp-provider",
|
|
40735
40964
|
capScope: "system",
|
|
@@ -43123,6 +43352,11 @@ Object.freeze({
|
|
|
43123
43352
|
form: "single",
|
|
43124
43353
|
optional: true
|
|
43125
43354
|
}],
|
|
43355
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
43356
|
+
name: "deviceIds",
|
|
43357
|
+
form: "array",
|
|
43358
|
+
optional: false
|
|
43359
|
+
}],
|
|
43126
43360
|
"pipelineAnalytics.listRecentTracks": [{
|
|
43127
43361
|
name: "deviceIds",
|
|
43128
43362
|
form: "array",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-hikvision",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.109",
|
|
4
4
|
"description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|