@camstack/addon-import-alexa 0.2.98 → 0.2.100
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
|
@@ -38,7 +38,7 @@ let node_os = require("node:os");
|
|
|
38
38
|
let node_fs = require("node:fs");
|
|
39
39
|
let node_path = require("node:path");
|
|
40
40
|
node_path = __toESM(node_path);
|
|
41
|
-
//#region ../types/dist/event-category-
|
|
41
|
+
//#region ../types/dist/event-category-ZyX6jcse.mjs
|
|
42
42
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
43
43
|
EventCategory["SystemBoot"] = "system.boot";
|
|
44
44
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -599,7 +599,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
599
599
|
* a package zone — a newly-appeared stationary object of a package class
|
|
600
600
|
* that cleared the class / zone / dwell / size gates. Payload:
|
|
601
601
|
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
602
|
-
* entryId, className, zoneIds,
|
|
602
|
+
* entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
|
|
603
603
|
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
604
604
|
* this bus topic drives notifier rules + live UI. See
|
|
605
605
|
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
@@ -5385,7 +5385,7 @@ var ZodIssueCode = {
|
|
|
5385
5385
|
var ZodFirstPartyTypeKind;
|
|
5386
5386
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5387
5387
|
//#endregion
|
|
5388
|
-
//#region ../types/dist/sleep-
|
|
5388
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5389
5389
|
/**
|
|
5390
5390
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5391
5391
|
* window to float samples (D455).
|
|
@@ -7352,13 +7352,30 @@ new Set([
|
|
|
7352
7352
|
"scene",
|
|
7353
7353
|
"motion",
|
|
7354
7354
|
"object",
|
|
7355
|
-
"audio"
|
|
7355
|
+
"audio",
|
|
7356
|
+
"mosaic"
|
|
7356
7357
|
]);
|
|
7357
|
-
|
|
7358
|
+
/**
|
|
7359
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
7360
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
7361
|
+
* does not re-spell the list and drift from it.
|
|
7362
|
+
*/
|
|
7363
|
+
var EVENT_OWNER_TYPES = [
|
|
7358
7364
|
"motion",
|
|
7359
7365
|
"object",
|
|
7360
7366
|
"audio"
|
|
7361
|
-
]
|
|
7367
|
+
];
|
|
7368
|
+
/**
|
|
7369
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
7370
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
7371
|
+
* `(table, id)`).
|
|
7372
|
+
*
|
|
7373
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
7374
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
7375
|
+
* nothing failing until a caller asked.
|
|
7376
|
+
*/
|
|
7377
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
7378
|
+
new Set(EVENT_OWNER_TYPES);
|
|
7362
7379
|
/**
|
|
7363
7380
|
* Build an `IAddonRouteProvider` from a list of routes. Implements
|
|
7364
7381
|
* both the operator-facing `getRoutes` (returning route descriptors
|
|
@@ -7514,7 +7531,23 @@ var EncodeProfileSchema = object({
|
|
|
7514
7531
|
"zerolatency",
|
|
7515
7532
|
"film",
|
|
7516
7533
|
"animation"
|
|
7517
|
-
]).optional()
|
|
7534
|
+
]).optional(),
|
|
7535
|
+
/**
|
|
7536
|
+
* ONE slice per access unit.
|
|
7537
|
+
*
|
|
7538
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7539
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7540
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7541
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7542
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7543
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7544
|
+
*
|
|
7545
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7546
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7547
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7548
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7549
|
+
*/
|
|
7550
|
+
singleSlicePerFrame: boolean().optional()
|
|
7518
7551
|
}),
|
|
7519
7552
|
audio: union([literal("passthrough"), object({
|
|
7520
7553
|
codec: _enum([
|
|
@@ -7564,7 +7597,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7564
7597
|
audio: "passthrough"
|
|
7565
7598
|
};
|
|
7566
7599
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7567
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7600
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7568
7601
|
/**
|
|
7569
7602
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7570
7603
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -12742,6 +12775,16 @@ method(object({
|
|
|
12742
12775
|
filter: QueryFilterSchema.optional(),
|
|
12743
12776
|
columns: array(string()).readonly().optional()
|
|
12744
12777
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12778
|
+
namespace: string().optional(),
|
|
12779
|
+
collection: string(),
|
|
12780
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12781
|
+
* index on the collection. Never empty. */
|
|
12782
|
+
conflict: array(string()).readonly(),
|
|
12783
|
+
record: BulkRecordSchema
|
|
12784
|
+
}), object({
|
|
12785
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12786
|
+
* row's own id on an update. */
|
|
12787
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12745
12788
|
namespace: string().optional(),
|
|
12746
12789
|
collection: string(),
|
|
12747
12790
|
record: object({
|
|
@@ -12876,6 +12919,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12876
12919
|
id: union([string(), number()]) }), {
|
|
12877
12920
|
kind: "mutation",
|
|
12878
12921
|
auth: "admin"
|
|
12922
|
+
}), method(object({
|
|
12923
|
+
namespace: string().optional(),
|
|
12924
|
+
collection: string(),
|
|
12925
|
+
conflict: array(string()).readonly(),
|
|
12926
|
+
record: BulkRecordSchema
|
|
12927
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12928
|
+
kind: "mutation",
|
|
12929
|
+
auth: "admin"
|
|
12879
12930
|
}), method(object({
|
|
12880
12931
|
namespace: string().optional(),
|
|
12881
12932
|
collection: string(),
|
|
@@ -19375,8 +19426,8 @@ var TrackPositionSchema = object({
|
|
|
19375
19426
|
var TrackSnapshotSchema = object({
|
|
19376
19427
|
timestamp: number(),
|
|
19377
19428
|
position: TrackPositionSchema,
|
|
19378
|
-
/**
|
|
19379
|
-
|
|
19429
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
19430
|
+
mediaId: number().int()
|
|
19380
19431
|
});
|
|
19381
19432
|
/**
|
|
19382
19433
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -19980,14 +20031,14 @@ var ObjectEventSchema = object({
|
|
|
19980
20031
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
19981
20032
|
frameWidth: number().optional(),
|
|
19982
20033
|
frameHeight: number().optional(),
|
|
19983
|
-
/**
|
|
19984
|
-
|
|
19985
|
-
/** Design B:
|
|
20034
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
20035
|
+
mediaId: number().int().optional(),
|
|
20036
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
19986
20037
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
19987
|
-
* (`/addon/<addonId>/event-media/<
|
|
20038
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
19988
20039
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
19989
|
-
* sources — consumers fall back to `
|
|
19990
|
-
|
|
20040
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
20041
|
+
keyFrameMediaId: number().int().optional(),
|
|
19991
20042
|
/** Populated by B5 (recording playback URL for this event). */
|
|
19992
20043
|
mediaUrl: string().optional(),
|
|
19993
20044
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -20037,7 +20088,7 @@ var MediaFileKindEnum = _enum([
|
|
|
20037
20088
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
20038
20089
|
*
|
|
20039
20090
|
* `url` points at the `event-media` data plane
|
|
20040
|
-
* (`/addon/<addonId>/event-media/<
|
|
20091
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
20041
20092
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
20042
20093
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
20043
20094
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -20045,10 +20096,13 @@ var MediaFileKindEnum = _enum([
|
|
|
20045
20096
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
20046
20097
|
* (per-device scoping).
|
|
20047
20098
|
*
|
|
20048
|
-
* The URL is built from the row's
|
|
20049
|
-
*
|
|
20099
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
20100
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
20101
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
20050
20102
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
20051
|
-
* `faceCrop`/`plateCrop
|
|
20103
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
20104
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
20105
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
20052
20106
|
*
|
|
20053
20107
|
* ## `base64` is TRANSITIONAL and is going away
|
|
20054
20108
|
*
|
|
@@ -20061,7 +20115,19 @@ var MediaFileKindEnum = _enum([
|
|
|
20061
20115
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
20062
20116
|
*/
|
|
20063
20117
|
var MediaFileSchema = object({
|
|
20064
|
-
|
|
20118
|
+
/**
|
|
20119
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
20120
|
+
*
|
|
20121
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
20122
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
20123
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
20124
|
+
* different rows that spell the same number, and a track whose
|
|
20125
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
20126
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
20127
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
20128
|
+
* at all.
|
|
20129
|
+
*/
|
|
20130
|
+
mediaId: number().int(),
|
|
20065
20131
|
kind: MediaFileKindEnum,
|
|
20066
20132
|
sizeBytes: number(),
|
|
20067
20133
|
timestamp: number()
|
|
@@ -20169,7 +20235,7 @@ var RetrainTrackSchema = object({
|
|
|
20169
20235
|
});
|
|
20170
20236
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
20171
20237
|
var RetrainFrameCandidateSchema = object({
|
|
20172
|
-
|
|
20238
|
+
mediaId: number().int(),
|
|
20173
20239
|
kind: MediaFileKindEnum,
|
|
20174
20240
|
timestamp: number(),
|
|
20175
20241
|
sizeBytes: number().int(),
|
|
@@ -20183,7 +20249,7 @@ var RetrainFrameSchema = object({
|
|
|
20183
20249
|
deviceId: number(),
|
|
20184
20250
|
trackId: string(),
|
|
20185
20251
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
20186
|
-
|
|
20252
|
+
sourceMediaId: number().int(),
|
|
20187
20253
|
sourceKind: MediaFileKindEnum,
|
|
20188
20254
|
sizeBytes: number().int(),
|
|
20189
20255
|
width: number().int(),
|
|
@@ -20199,7 +20265,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
20199
20265
|
var RetrainFrameSelectionSchema = object({
|
|
20200
20266
|
copied: array(RetrainFrameSchema).readonly(),
|
|
20201
20267
|
refused: array(object({
|
|
20202
|
-
|
|
20268
|
+
sourceMediaId: number().int(),
|
|
20203
20269
|
reason: RetrainCopyRefusalSchema
|
|
20204
20270
|
})).readonly()
|
|
20205
20271
|
});
|
|
@@ -20207,7 +20273,7 @@ var RetrainFrameListSchema = object({
|
|
|
20207
20273
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
20208
20274
|
copies: array(RetrainFrameSchema).readonly(),
|
|
20209
20275
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
20210
|
-
|
|
20276
|
+
autoPickMediaId: number().int().optional()
|
|
20211
20277
|
});
|
|
20212
20278
|
/** What the operator asked the assist to look for. */
|
|
20213
20279
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -20302,9 +20368,11 @@ var RecentTracksQueryInput = object({
|
|
|
20302
20368
|
});
|
|
20303
20369
|
/**
|
|
20304
20370
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
20305
|
-
* `
|
|
20306
|
-
* served by the event-media plane
|
|
20307
|
-
* member visible has been materialised
|
|
20371
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
20372
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
20373
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
20374
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
20375
|
+
* row once event ids became per-table rowids).
|
|
20308
20376
|
*/
|
|
20309
20377
|
var SummarySchema = object({
|
|
20310
20378
|
id: string(),
|
|
@@ -20313,19 +20381,115 @@ var SummarySchema = object({
|
|
|
20313
20381
|
lastActiveAt: number(),
|
|
20314
20382
|
sealedAt: number().nullable(),
|
|
20315
20383
|
memberCount: number().int().nonnegative(),
|
|
20316
|
-
|
|
20384
|
+
groupShotMediaId: number().int().nullable()
|
|
20317
20385
|
});
|
|
20318
20386
|
var SummariesQueryInput = object({
|
|
20319
20387
|
deviceIds: array(number()).min(1),
|
|
20320
20388
|
since: number().optional(),
|
|
20321
20389
|
until: number().optional(),
|
|
20322
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20390
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20391
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20392
|
+
* meaning of "dog" on every summary surface. */
|
|
20393
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20323
20394
|
});
|
|
20324
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20325
20395
|
var SummaryDetailSchema = object({
|
|
20326
20396
|
summary: SummarySchema,
|
|
20327
|
-
/**
|
|
20328
|
-
|
|
20397
|
+
/** Members in absorption order, oldest join first. */
|
|
20398
|
+
members: array(object({
|
|
20399
|
+
trackId: string(),
|
|
20400
|
+
/**
|
|
20401
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20402
|
+
* and the track no longer exists to fill it.
|
|
20403
|
+
*
|
|
20404
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20405
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20406
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20407
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20408
|
+
* drift from the members it claims to describe.
|
|
20409
|
+
*/
|
|
20410
|
+
className: string().nullable(),
|
|
20411
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20412
|
+
role: _enum([
|
|
20413
|
+
"primary",
|
|
20414
|
+
"sibling",
|
|
20415
|
+
"child"
|
|
20416
|
+
]).nullable(),
|
|
20417
|
+
joinedAt: number(),
|
|
20418
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20419
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20420
|
+
label: string().optional(),
|
|
20421
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20422
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20423
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20424
|
+
subLabel: string().optional()
|
|
20425
|
+
})).readonly()
|
|
20426
|
+
});
|
|
20427
|
+
/**
|
|
20428
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20429
|
+
*
|
|
20430
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20431
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20432
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20433
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20434
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20435
|
+
* draw two hundred badges.
|
|
20436
|
+
*/
|
|
20437
|
+
var SummaryListItemSchema = object({
|
|
20438
|
+
summary: SummarySchema,
|
|
20439
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20440
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20441
|
+
classes: array(object({
|
|
20442
|
+
className: string().nullable(),
|
|
20443
|
+
count: number().int().positive()
|
|
20444
|
+
})).readonly()
|
|
20445
|
+
});
|
|
20446
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20447
|
+
/**
|
|
20448
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20449
|
+
*
|
|
20450
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20451
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20452
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20453
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20454
|
+
* "newest" means, on one screen.
|
|
20455
|
+
*/
|
|
20456
|
+
var RecentSummariesQueryInput = object({
|
|
20457
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20458
|
+
deviceIds: array(number()),
|
|
20459
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20460
|
+
since: number().optional(),
|
|
20461
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20462
|
+
until: number().optional(),
|
|
20463
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20464
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20465
|
+
cursor: string().optional(),
|
|
20466
|
+
/**
|
|
20467
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20468
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20469
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20470
|
+
* make the operator's one filter component produce two shapes.
|
|
20471
|
+
*
|
|
20472
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20473
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20474
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20475
|
+
* about its primary.
|
|
20476
|
+
*
|
|
20477
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20478
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20479
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20480
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20481
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20482
|
+
*
|
|
20483
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20484
|
+
*/
|
|
20485
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20486
|
+
});
|
|
20487
|
+
var RecentSummariesPageSchema = object({
|
|
20488
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20489
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20490
|
+
* whichever feed drew it. */
|
|
20491
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20492
|
+
nextCursor: string().nullable()
|
|
20329
20493
|
});
|
|
20330
20494
|
var RecentTracksPageSchema = object({
|
|
20331
20495
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20739,7 +20903,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20739
20903
|
classes: array(string()).optional(),
|
|
20740
20904
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20741
20905
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20742
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20906
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20743
20907
|
kind: "mutation",
|
|
20744
20908
|
auth: "admin"
|
|
20745
20909
|
}), 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({
|
|
@@ -20867,7 +21031,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20867
21031
|
}), method(object({
|
|
20868
21032
|
deviceId: number(),
|
|
20869
21033
|
trackId: string(),
|
|
20870
|
-
|
|
21034
|
+
mediaIds: array(number().int()).min(1)
|
|
20871
21035
|
}), RetrainFrameSelectionSchema, {
|
|
20872
21036
|
kind: "mutation",
|
|
20873
21037
|
auth: "admin"
|
|
@@ -20935,7 +21099,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20935
21099
|
kind: "query",
|
|
20936
21100
|
auth: "admin"
|
|
20937
21101
|
}), method(object({
|
|
20938
|
-
|
|
21102
|
+
/** Which of the three event tables owns the row. */
|
|
21103
|
+
ownerType: EventOwnerTypeSchema,
|
|
21104
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
21105
|
+
eventId: number().int(),
|
|
20939
21106
|
kind: MediaFileKindEnum.optional(),
|
|
20940
21107
|
deviceId: number()
|
|
20941
21108
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -20946,7 +21113,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20946
21113
|
trackId: string(),
|
|
20947
21114
|
deviceId: number()
|
|
20948
21115
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
20949
|
-
|
|
21116
|
+
ownerType: EventOwnerTypeSchema,
|
|
21117
|
+
eventId: number().int(),
|
|
20950
21118
|
deviceId: number()
|
|
20951
21119
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
20952
21120
|
kind: "mutation",
|
|
@@ -26156,8 +26324,8 @@ var IdentitySchema = object({
|
|
|
26156
26324
|
id: string(),
|
|
26157
26325
|
name: string(),
|
|
26158
26326
|
sampleCount: number().int().nonnegative(),
|
|
26159
|
-
|
|
26160
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
26327
|
+
coverMediaId: number().int().optional(),
|
|
26328
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
26161
26329
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
26162
26330
|
coverBase64: string().optional()
|
|
26163
26331
|
});
|
|
@@ -26183,8 +26351,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
26183
26351
|
enrolledAt: number().int(),
|
|
26184
26352
|
deviceId: number().int().optional(),
|
|
26185
26353
|
source: _enum(["detected", "photo"]),
|
|
26186
|
-
/** The enrolled crop's media
|
|
26187
|
-
|
|
26354
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
26355
|
+
mediaId: number().int().optional(),
|
|
26188
26356
|
/**
|
|
26189
26357
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
26190
26358
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -26253,15 +26421,15 @@ var FaceInfoSchema = object({
|
|
|
26253
26421
|
*/
|
|
26254
26422
|
cropUrl: string().optional(),
|
|
26255
26423
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
26256
|
-
* view draw the box over the native `
|
|
26424
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
26257
26425
|
* legacy rows written before design B. */
|
|
26258
26426
|
faceBbox: BoundingBoxSchema.optional(),
|
|
26259
26427
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
26260
26428
|
* Fetch the native JPEG via the event-media data-plane
|
|
26261
|
-
* (`/addon/<addonId>/event-media/<
|
|
26429
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
26262
26430
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
26263
26431
|
* back to the inline `base64` face crop. */
|
|
26264
|
-
|
|
26432
|
+
keyFrameMediaId: number().int().optional(),
|
|
26265
26433
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
26266
26434
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
26267
26435
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -26330,11 +26498,14 @@ var FaceClusterSchema = object({
|
|
|
26330
26498
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
26331
26499
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
26332
26500
|
*
|
|
26333
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
26334
|
-
* media
|
|
26501
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
26502
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
26503
|
+
* access decision.
|
|
26335
26504
|
*/
|
|
26336
26505
|
var MediaFileLiteSchema$1 = object({
|
|
26337
|
-
|
|
26506
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
26507
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
26508
|
+
mediaId: number().int(),
|
|
26338
26509
|
kind: string(),
|
|
26339
26510
|
url: string(),
|
|
26340
26511
|
sizeBytes: number(),
|
|
@@ -26351,7 +26522,7 @@ method(object({
|
|
|
26351
26522
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
26352
26523
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
26353
26524
|
*
|
|
26354
|
-
* Nothing loses its avatar: `
|
|
26525
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
26355
26526
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
26356
26527
|
*
|
|
26357
26528
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -29714,8 +29885,8 @@ var VehicleSchema = object({
|
|
|
29714
29885
|
id: string(),
|
|
29715
29886
|
name: string(),
|
|
29716
29887
|
sampleCount: number().int().nonnegative(),
|
|
29717
|
-
|
|
29718
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
29888
|
+
coverMediaId: number().int().optional(),
|
|
29889
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
29719
29890
|
coverBase64: string().optional()
|
|
29720
29891
|
});
|
|
29721
29892
|
var VehicleSampleInfoSchema = object({
|
|
@@ -29748,7 +29919,7 @@ var PlateInfoSchema = object({
|
|
|
29748
29919
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
29749
29920
|
plateBbox: BoundingBoxSchema.optional(),
|
|
29750
29921
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
29751
|
-
|
|
29922
|
+
keyFrameMediaId: number().int().optional(),
|
|
29752
29923
|
base64: string().optional(),
|
|
29753
29924
|
/**
|
|
29754
29925
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -29769,11 +29940,14 @@ var PlateInfoSchema = object({
|
|
|
29769
29940
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
29770
29941
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
29771
29942
|
*
|
|
29772
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
29773
|
-
* media
|
|
29943
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
29944
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
29945
|
+
* access decision.
|
|
29774
29946
|
*/
|
|
29775
29947
|
var MediaFileLiteSchema = object({
|
|
29776
|
-
|
|
29948
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
29949
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
29950
|
+
mediaId: number().int(),
|
|
29777
29951
|
kind: string(),
|
|
29778
29952
|
url: string(),
|
|
29779
29953
|
sizeBytes: number(),
|
|
@@ -29832,7 +30006,7 @@ method(object({
|
|
|
29832
30006
|
}), method(object({
|
|
29833
30007
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
29834
30008
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
29835
|
-
* option; `
|
|
30009
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
29836
30010
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
29837
30011
|
* resolves to `false` and is exactly the intended default. */
|
|
29838
30012
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -31401,7 +31575,14 @@ var SceneReferenceSchema = object({
|
|
|
31401
31575
|
modelId: string(),
|
|
31402
31576
|
condition: SceneConditionSchema,
|
|
31403
31577
|
capturedAt: number(),
|
|
31404
|
-
|
|
31578
|
+
/**
|
|
31579
|
+
* The reference thumbnail's media ROW id (D482).
|
|
31580
|
+
*
|
|
31581
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
31582
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
31583
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
31584
|
+
*/
|
|
31585
|
+
thumbnailMediaId: number().int().optional(),
|
|
31405
31586
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
31406
31587
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
31407
31588
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -32492,7 +32673,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
32492
32673
|
* disarmed the channels it did not mention would make the Levels page and
|
|
32493
32674
|
* the Diagnostics page fight over the same value.
|
|
32494
32675
|
*/
|
|
32495
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
32676
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
32677
|
+
/**
|
|
32678
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
32679
|
+
* retention actually deleted.
|
|
32680
|
+
*
|
|
32681
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
32682
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
32683
|
+
* this system is configured through this one document, and a retention audit
|
|
32684
|
+
* configured somewhere else is a second place to look when the question is
|
|
32685
|
+
* "what happened to my data".
|
|
32686
|
+
*
|
|
32687
|
+
* That placement has a cost worth stating: this document ships in the
|
|
32688
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
32689
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
32690
|
+
*
|
|
32691
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
32692
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
32693
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
32694
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
32695
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
32696
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
32697
|
+
*/
|
|
32698
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
32496
32699
|
});
|
|
32497
32700
|
/**
|
|
32498
32701
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -32565,6 +32768,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
32565
32768
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
32566
32769
|
/** The channels ARMED right now, each with its deadline. */
|
|
32567
32770
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
32771
|
+
/**
|
|
32772
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
32773
|
+
*
|
|
32774
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
32775
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
32776
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
32777
|
+
*/
|
|
32778
|
+
opsLogRetentionDays: number().int().min(0),
|
|
32568
32779
|
persisted: boolean()
|
|
32569
32780
|
});
|
|
32570
32781
|
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(), {
|
|
@@ -33385,7 +33596,7 @@ var StationaryObjectSchema = object({
|
|
|
33385
33596
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
33386
33597
|
label: string().optional(),
|
|
33387
33598
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
33388
|
-
|
|
33599
|
+
keyFrameMediaId: number().int().optional()
|
|
33389
33600
|
});
|
|
33390
33601
|
var CameraOccupancySnapshotSchema = object({
|
|
33391
33602
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -36123,6 +36334,12 @@ Object.freeze({
|
|
|
36123
36334
|
addonId: null,
|
|
36124
36335
|
access: "create"
|
|
36125
36336
|
},
|
|
36337
|
+
"dataStoreProvider.upsert": {
|
|
36338
|
+
capName: "data-store-provider",
|
|
36339
|
+
capScope: "system",
|
|
36340
|
+
addonId: null,
|
|
36341
|
+
access: "create"
|
|
36342
|
+
},
|
|
36126
36343
|
"dayNight.getOptions": {
|
|
36127
36344
|
capName: "day-night",
|
|
36128
36345
|
capScope: "device",
|
|
@@ -38559,6 +38776,12 @@ Object.freeze({
|
|
|
38559
38776
|
addonId: null,
|
|
38560
38777
|
access: "view"
|
|
38561
38778
|
},
|
|
38779
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
38780
|
+
capName: "pipeline-analytics",
|
|
38781
|
+
capScope: "device",
|
|
38782
|
+
addonId: null,
|
|
38783
|
+
access: "view"
|
|
38784
|
+
},
|
|
38562
38785
|
"pipelineAnalytics.listRecentTracks": {
|
|
38563
38786
|
capName: "pipeline-analytics",
|
|
38564
38787
|
capScope: "device",
|
|
@@ -39987,6 +40210,12 @@ Object.freeze({
|
|
|
39987
40210
|
addonId: null,
|
|
39988
40211
|
access: "create"
|
|
39989
40212
|
},
|
|
40213
|
+
"settingsStore.upsert": {
|
|
40214
|
+
capName: "settings-store",
|
|
40215
|
+
capScope: "system",
|
|
40216
|
+
addonId: null,
|
|
40217
|
+
access: "create"
|
|
40218
|
+
},
|
|
39990
40219
|
"smtpProvider.getStatus": {
|
|
39991
40220
|
capName: "smtp-provider",
|
|
39992
40221
|
capScope: "system",
|
|
@@ -42380,6 +42609,11 @@ Object.freeze({
|
|
|
42380
42609
|
form: "single",
|
|
42381
42610
|
optional: true
|
|
42382
42611
|
}],
|
|
42612
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
42613
|
+
name: "deviceIds",
|
|
42614
|
+
form: "array",
|
|
42615
|
+
optional: false
|
|
42616
|
+
}],
|
|
42383
42617
|
"pipelineAnalytics.listRecentTracks": [{
|
|
42384
42618
|
name: "deviceIds",
|
|
42385
42619
|
form: "array",
|
package/dist/addon.mjs
CHANGED
|
@@ -38,7 +38,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
38
38
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
39
39
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
40
40
|
//#endregion
|
|
41
|
-
//#region ../types/dist/event-category-
|
|
41
|
+
//#region ../types/dist/event-category-ZyX6jcse.mjs
|
|
42
42
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
43
43
|
EventCategory["SystemBoot"] = "system.boot";
|
|
44
44
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -599,7 +599,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
599
599
|
* a package zone — a newly-appeared stationary object of a package class
|
|
600
600
|
* that cleared the class / zone / dwell / size gates. Payload:
|
|
601
601
|
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
602
|
-
* entryId, className, zoneIds,
|
|
602
|
+
* entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
|
|
603
603
|
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
604
604
|
* this bus topic drives notifier rules + live UI. See
|
|
605
605
|
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
@@ -5385,7 +5385,7 @@ var ZodIssueCode = {
|
|
|
5385
5385
|
var ZodFirstPartyTypeKind;
|
|
5386
5386
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5387
5387
|
//#endregion
|
|
5388
|
-
//#region ../types/dist/sleep-
|
|
5388
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5389
5389
|
/**
|
|
5390
5390
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5391
5391
|
* window to float samples (D455).
|
|
@@ -7352,13 +7352,30 @@ new Set([
|
|
|
7352
7352
|
"scene",
|
|
7353
7353
|
"motion",
|
|
7354
7354
|
"object",
|
|
7355
|
-
"audio"
|
|
7355
|
+
"audio",
|
|
7356
|
+
"mosaic"
|
|
7356
7357
|
]);
|
|
7357
|
-
|
|
7358
|
+
/**
|
|
7359
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
7360
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
7361
|
+
* does not re-spell the list and drift from it.
|
|
7362
|
+
*/
|
|
7363
|
+
var EVENT_OWNER_TYPES = [
|
|
7358
7364
|
"motion",
|
|
7359
7365
|
"object",
|
|
7360
7366
|
"audio"
|
|
7361
|
-
]
|
|
7367
|
+
];
|
|
7368
|
+
/**
|
|
7369
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
7370
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
7371
|
+
* `(table, id)`).
|
|
7372
|
+
*
|
|
7373
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
7374
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
7375
|
+
* nothing failing until a caller asked.
|
|
7376
|
+
*/
|
|
7377
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
7378
|
+
new Set(EVENT_OWNER_TYPES);
|
|
7362
7379
|
/**
|
|
7363
7380
|
* Build an `IAddonRouteProvider` from a list of routes. Implements
|
|
7364
7381
|
* both the operator-facing `getRoutes` (returning route descriptors
|
|
@@ -7514,7 +7531,23 @@ var EncodeProfileSchema = object({
|
|
|
7514
7531
|
"zerolatency",
|
|
7515
7532
|
"film",
|
|
7516
7533
|
"animation"
|
|
7517
|
-
]).optional()
|
|
7534
|
+
]).optional(),
|
|
7535
|
+
/**
|
|
7536
|
+
* ONE slice per access unit.
|
|
7537
|
+
*
|
|
7538
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7539
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7540
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7541
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7542
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7543
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7544
|
+
*
|
|
7545
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7546
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7547
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7548
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7549
|
+
*/
|
|
7550
|
+
singleSlicePerFrame: boolean().optional()
|
|
7518
7551
|
}),
|
|
7519
7552
|
audio: union([literal("passthrough"), object({
|
|
7520
7553
|
codec: _enum([
|
|
@@ -7564,7 +7597,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7564
7597
|
audio: "passthrough"
|
|
7565
7598
|
};
|
|
7566
7599
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7567
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7600
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7568
7601
|
/**
|
|
7569
7602
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7570
7603
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -12742,6 +12775,16 @@ method(object({
|
|
|
12742
12775
|
filter: QueryFilterSchema.optional(),
|
|
12743
12776
|
columns: array(string()).readonly().optional()
|
|
12744
12777
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12778
|
+
namespace: string().optional(),
|
|
12779
|
+
collection: string(),
|
|
12780
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12781
|
+
* index on the collection. Never empty. */
|
|
12782
|
+
conflict: array(string()).readonly(),
|
|
12783
|
+
record: BulkRecordSchema
|
|
12784
|
+
}), object({
|
|
12785
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12786
|
+
* row's own id on an update. */
|
|
12787
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12745
12788
|
namespace: string().optional(),
|
|
12746
12789
|
collection: string(),
|
|
12747
12790
|
record: object({
|
|
@@ -12876,6 +12919,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12876
12919
|
id: union([string(), number()]) }), {
|
|
12877
12920
|
kind: "mutation",
|
|
12878
12921
|
auth: "admin"
|
|
12922
|
+
}), method(object({
|
|
12923
|
+
namespace: string().optional(),
|
|
12924
|
+
collection: string(),
|
|
12925
|
+
conflict: array(string()).readonly(),
|
|
12926
|
+
record: BulkRecordSchema
|
|
12927
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12928
|
+
kind: "mutation",
|
|
12929
|
+
auth: "admin"
|
|
12879
12930
|
}), method(object({
|
|
12880
12931
|
namespace: string().optional(),
|
|
12881
12932
|
collection: string(),
|
|
@@ -19375,8 +19426,8 @@ var TrackPositionSchema = object({
|
|
|
19375
19426
|
var TrackSnapshotSchema = object({
|
|
19376
19427
|
timestamp: number(),
|
|
19377
19428
|
position: TrackPositionSchema,
|
|
19378
|
-
/**
|
|
19379
|
-
|
|
19429
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
19430
|
+
mediaId: number().int()
|
|
19380
19431
|
});
|
|
19381
19432
|
/**
|
|
19382
19433
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -19980,14 +20031,14 @@ var ObjectEventSchema = object({
|
|
|
19980
20031
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
19981
20032
|
frameWidth: number().optional(),
|
|
19982
20033
|
frameHeight: number().optional(),
|
|
19983
|
-
/**
|
|
19984
|
-
|
|
19985
|
-
/** Design B:
|
|
20034
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
20035
|
+
mediaId: number().int().optional(),
|
|
20036
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
19986
20037
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
19987
|
-
* (`/addon/<addonId>/event-media/<
|
|
20038
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
19988
20039
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
19989
|
-
* sources — consumers fall back to `
|
|
19990
|
-
|
|
20040
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
20041
|
+
keyFrameMediaId: number().int().optional(),
|
|
19991
20042
|
/** Populated by B5 (recording playback URL for this event). */
|
|
19992
20043
|
mediaUrl: string().optional(),
|
|
19993
20044
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -20037,7 +20088,7 @@ var MediaFileKindEnum = _enum([
|
|
|
20037
20088
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
20038
20089
|
*
|
|
20039
20090
|
* `url` points at the `event-media` data plane
|
|
20040
|
-
* (`/addon/<addonId>/event-media/<
|
|
20091
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
20041
20092
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
20042
20093
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
20043
20094
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -20045,10 +20096,13 @@ var MediaFileKindEnum = _enum([
|
|
|
20045
20096
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
20046
20097
|
* (per-device scoping).
|
|
20047
20098
|
*
|
|
20048
|
-
* The URL is built from the row's
|
|
20049
|
-
*
|
|
20099
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
20100
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
20101
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
20050
20102
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
20051
|
-
* `faceCrop`/`plateCrop
|
|
20103
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
20104
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
20105
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
20052
20106
|
*
|
|
20053
20107
|
* ## `base64` is TRANSITIONAL and is going away
|
|
20054
20108
|
*
|
|
@@ -20061,7 +20115,19 @@ var MediaFileKindEnum = _enum([
|
|
|
20061
20115
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
20062
20116
|
*/
|
|
20063
20117
|
var MediaFileSchema = object({
|
|
20064
|
-
|
|
20118
|
+
/**
|
|
20119
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
20120
|
+
*
|
|
20121
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
20122
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
20123
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
20124
|
+
* different rows that spell the same number, and a track whose
|
|
20125
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
20126
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
20127
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
20128
|
+
* at all.
|
|
20129
|
+
*/
|
|
20130
|
+
mediaId: number().int(),
|
|
20065
20131
|
kind: MediaFileKindEnum,
|
|
20066
20132
|
sizeBytes: number(),
|
|
20067
20133
|
timestamp: number()
|
|
@@ -20169,7 +20235,7 @@ var RetrainTrackSchema = object({
|
|
|
20169
20235
|
});
|
|
20170
20236
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
20171
20237
|
var RetrainFrameCandidateSchema = object({
|
|
20172
|
-
|
|
20238
|
+
mediaId: number().int(),
|
|
20173
20239
|
kind: MediaFileKindEnum,
|
|
20174
20240
|
timestamp: number(),
|
|
20175
20241
|
sizeBytes: number().int(),
|
|
@@ -20183,7 +20249,7 @@ var RetrainFrameSchema = object({
|
|
|
20183
20249
|
deviceId: number(),
|
|
20184
20250
|
trackId: string(),
|
|
20185
20251
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
20186
|
-
|
|
20252
|
+
sourceMediaId: number().int(),
|
|
20187
20253
|
sourceKind: MediaFileKindEnum,
|
|
20188
20254
|
sizeBytes: number().int(),
|
|
20189
20255
|
width: number().int(),
|
|
@@ -20199,7 +20265,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
20199
20265
|
var RetrainFrameSelectionSchema = object({
|
|
20200
20266
|
copied: array(RetrainFrameSchema).readonly(),
|
|
20201
20267
|
refused: array(object({
|
|
20202
|
-
|
|
20268
|
+
sourceMediaId: number().int(),
|
|
20203
20269
|
reason: RetrainCopyRefusalSchema
|
|
20204
20270
|
})).readonly()
|
|
20205
20271
|
});
|
|
@@ -20207,7 +20273,7 @@ var RetrainFrameListSchema = object({
|
|
|
20207
20273
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
20208
20274
|
copies: array(RetrainFrameSchema).readonly(),
|
|
20209
20275
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
20210
|
-
|
|
20276
|
+
autoPickMediaId: number().int().optional()
|
|
20211
20277
|
});
|
|
20212
20278
|
/** What the operator asked the assist to look for. */
|
|
20213
20279
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -20302,9 +20368,11 @@ var RecentTracksQueryInput = object({
|
|
|
20302
20368
|
});
|
|
20303
20369
|
/**
|
|
20304
20370
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
20305
|
-
* `
|
|
20306
|
-
* served by the event-media plane
|
|
20307
|
-
* member visible has been materialised
|
|
20371
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
20372
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
20373
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
20374
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
20375
|
+
* row once event ids became per-table rowids).
|
|
20308
20376
|
*/
|
|
20309
20377
|
var SummarySchema = object({
|
|
20310
20378
|
id: string(),
|
|
@@ -20313,19 +20381,115 @@ var SummarySchema = object({
|
|
|
20313
20381
|
lastActiveAt: number(),
|
|
20314
20382
|
sealedAt: number().nullable(),
|
|
20315
20383
|
memberCount: number().int().nonnegative(),
|
|
20316
|
-
|
|
20384
|
+
groupShotMediaId: number().int().nullable()
|
|
20317
20385
|
});
|
|
20318
20386
|
var SummariesQueryInput = object({
|
|
20319
20387
|
deviceIds: array(number()).min(1),
|
|
20320
20388
|
since: number().optional(),
|
|
20321
20389
|
until: number().optional(),
|
|
20322
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20390
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20391
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20392
|
+
* meaning of "dog" on every summary surface. */
|
|
20393
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20323
20394
|
});
|
|
20324
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20325
20395
|
var SummaryDetailSchema = object({
|
|
20326
20396
|
summary: SummarySchema,
|
|
20327
|
-
/**
|
|
20328
|
-
|
|
20397
|
+
/** Members in absorption order, oldest join first. */
|
|
20398
|
+
members: array(object({
|
|
20399
|
+
trackId: string(),
|
|
20400
|
+
/**
|
|
20401
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20402
|
+
* and the track no longer exists to fill it.
|
|
20403
|
+
*
|
|
20404
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20405
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20406
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20407
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20408
|
+
* drift from the members it claims to describe.
|
|
20409
|
+
*/
|
|
20410
|
+
className: string().nullable(),
|
|
20411
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20412
|
+
role: _enum([
|
|
20413
|
+
"primary",
|
|
20414
|
+
"sibling",
|
|
20415
|
+
"child"
|
|
20416
|
+
]).nullable(),
|
|
20417
|
+
joinedAt: number(),
|
|
20418
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20419
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20420
|
+
label: string().optional(),
|
|
20421
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20422
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20423
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20424
|
+
subLabel: string().optional()
|
|
20425
|
+
})).readonly()
|
|
20426
|
+
});
|
|
20427
|
+
/**
|
|
20428
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20429
|
+
*
|
|
20430
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20431
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20432
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20433
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20434
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20435
|
+
* draw two hundred badges.
|
|
20436
|
+
*/
|
|
20437
|
+
var SummaryListItemSchema = object({
|
|
20438
|
+
summary: SummarySchema,
|
|
20439
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20440
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20441
|
+
classes: array(object({
|
|
20442
|
+
className: string().nullable(),
|
|
20443
|
+
count: number().int().positive()
|
|
20444
|
+
})).readonly()
|
|
20445
|
+
});
|
|
20446
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20447
|
+
/**
|
|
20448
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20449
|
+
*
|
|
20450
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20451
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20452
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20453
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20454
|
+
* "newest" means, on one screen.
|
|
20455
|
+
*/
|
|
20456
|
+
var RecentSummariesQueryInput = object({
|
|
20457
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20458
|
+
deviceIds: array(number()),
|
|
20459
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20460
|
+
since: number().optional(),
|
|
20461
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20462
|
+
until: number().optional(),
|
|
20463
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20464
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20465
|
+
cursor: string().optional(),
|
|
20466
|
+
/**
|
|
20467
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20468
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20469
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20470
|
+
* make the operator's one filter component produce two shapes.
|
|
20471
|
+
*
|
|
20472
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20473
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20474
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20475
|
+
* about its primary.
|
|
20476
|
+
*
|
|
20477
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20478
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20479
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20480
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20481
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20482
|
+
*
|
|
20483
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20484
|
+
*/
|
|
20485
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20486
|
+
});
|
|
20487
|
+
var RecentSummariesPageSchema = object({
|
|
20488
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20489
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20490
|
+
* whichever feed drew it. */
|
|
20491
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20492
|
+
nextCursor: string().nullable()
|
|
20329
20493
|
});
|
|
20330
20494
|
var RecentTracksPageSchema = object({
|
|
20331
20495
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20739,7 +20903,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20739
20903
|
classes: array(string()).optional(),
|
|
20740
20904
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20741
20905
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20742
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20906
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20743
20907
|
kind: "mutation",
|
|
20744
20908
|
auth: "admin"
|
|
20745
20909
|
}), 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({
|
|
@@ -20867,7 +21031,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20867
21031
|
}), method(object({
|
|
20868
21032
|
deviceId: number(),
|
|
20869
21033
|
trackId: string(),
|
|
20870
|
-
|
|
21034
|
+
mediaIds: array(number().int()).min(1)
|
|
20871
21035
|
}), RetrainFrameSelectionSchema, {
|
|
20872
21036
|
kind: "mutation",
|
|
20873
21037
|
auth: "admin"
|
|
@@ -20935,7 +21099,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20935
21099
|
kind: "query",
|
|
20936
21100
|
auth: "admin"
|
|
20937
21101
|
}), method(object({
|
|
20938
|
-
|
|
21102
|
+
/** Which of the three event tables owns the row. */
|
|
21103
|
+
ownerType: EventOwnerTypeSchema,
|
|
21104
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
21105
|
+
eventId: number().int(),
|
|
20939
21106
|
kind: MediaFileKindEnum.optional(),
|
|
20940
21107
|
deviceId: number()
|
|
20941
21108
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -20946,7 +21113,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20946
21113
|
trackId: string(),
|
|
20947
21114
|
deviceId: number()
|
|
20948
21115
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
20949
|
-
|
|
21116
|
+
ownerType: EventOwnerTypeSchema,
|
|
21117
|
+
eventId: number().int(),
|
|
20950
21118
|
deviceId: number()
|
|
20951
21119
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
20952
21120
|
kind: "mutation",
|
|
@@ -26156,8 +26324,8 @@ var IdentitySchema = object({
|
|
|
26156
26324
|
id: string(),
|
|
26157
26325
|
name: string(),
|
|
26158
26326
|
sampleCount: number().int().nonnegative(),
|
|
26159
|
-
|
|
26160
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
26327
|
+
coverMediaId: number().int().optional(),
|
|
26328
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
26161
26329
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
26162
26330
|
coverBase64: string().optional()
|
|
26163
26331
|
});
|
|
@@ -26183,8 +26351,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
26183
26351
|
enrolledAt: number().int(),
|
|
26184
26352
|
deviceId: number().int().optional(),
|
|
26185
26353
|
source: _enum(["detected", "photo"]),
|
|
26186
|
-
/** The enrolled crop's media
|
|
26187
|
-
|
|
26354
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
26355
|
+
mediaId: number().int().optional(),
|
|
26188
26356
|
/**
|
|
26189
26357
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
26190
26358
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -26253,15 +26421,15 @@ var FaceInfoSchema = object({
|
|
|
26253
26421
|
*/
|
|
26254
26422
|
cropUrl: string().optional(),
|
|
26255
26423
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
26256
|
-
* view draw the box over the native `
|
|
26424
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
26257
26425
|
* legacy rows written before design B. */
|
|
26258
26426
|
faceBbox: BoundingBoxSchema.optional(),
|
|
26259
26427
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
26260
26428
|
* Fetch the native JPEG via the event-media data-plane
|
|
26261
|
-
* (`/addon/<addonId>/event-media/<
|
|
26429
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
26262
26430
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
26263
26431
|
* back to the inline `base64` face crop. */
|
|
26264
|
-
|
|
26432
|
+
keyFrameMediaId: number().int().optional(),
|
|
26265
26433
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
26266
26434
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
26267
26435
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -26330,11 +26498,14 @@ var FaceClusterSchema = object({
|
|
|
26330
26498
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
26331
26499
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
26332
26500
|
*
|
|
26333
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
26334
|
-
* media
|
|
26501
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
26502
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
26503
|
+
* access decision.
|
|
26335
26504
|
*/
|
|
26336
26505
|
var MediaFileLiteSchema$1 = object({
|
|
26337
|
-
|
|
26506
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
26507
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
26508
|
+
mediaId: number().int(),
|
|
26338
26509
|
kind: string(),
|
|
26339
26510
|
url: string(),
|
|
26340
26511
|
sizeBytes: number(),
|
|
@@ -26351,7 +26522,7 @@ method(object({
|
|
|
26351
26522
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
26352
26523
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
26353
26524
|
*
|
|
26354
|
-
* Nothing loses its avatar: `
|
|
26525
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
26355
26526
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
26356
26527
|
*
|
|
26357
26528
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -29714,8 +29885,8 @@ var VehicleSchema = object({
|
|
|
29714
29885
|
id: string(),
|
|
29715
29886
|
name: string(),
|
|
29716
29887
|
sampleCount: number().int().nonnegative(),
|
|
29717
|
-
|
|
29718
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
29888
|
+
coverMediaId: number().int().optional(),
|
|
29889
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
29719
29890
|
coverBase64: string().optional()
|
|
29720
29891
|
});
|
|
29721
29892
|
var VehicleSampleInfoSchema = object({
|
|
@@ -29748,7 +29919,7 @@ var PlateInfoSchema = object({
|
|
|
29748
29919
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
29749
29920
|
plateBbox: BoundingBoxSchema.optional(),
|
|
29750
29921
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
29751
|
-
|
|
29922
|
+
keyFrameMediaId: number().int().optional(),
|
|
29752
29923
|
base64: string().optional(),
|
|
29753
29924
|
/**
|
|
29754
29925
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -29769,11 +29940,14 @@ var PlateInfoSchema = object({
|
|
|
29769
29940
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
29770
29941
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
29771
29942
|
*
|
|
29772
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
29773
|
-
* media
|
|
29943
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
29944
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
29945
|
+
* access decision.
|
|
29774
29946
|
*/
|
|
29775
29947
|
var MediaFileLiteSchema = object({
|
|
29776
|
-
|
|
29948
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
29949
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
29950
|
+
mediaId: number().int(),
|
|
29777
29951
|
kind: string(),
|
|
29778
29952
|
url: string(),
|
|
29779
29953
|
sizeBytes: number(),
|
|
@@ -29832,7 +30006,7 @@ method(object({
|
|
|
29832
30006
|
}), method(object({
|
|
29833
30007
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
29834
30008
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
29835
|
-
* option; `
|
|
30009
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
29836
30010
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
29837
30011
|
* resolves to `false` and is exactly the intended default. */
|
|
29838
30012
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -31401,7 +31575,14 @@ var SceneReferenceSchema = object({
|
|
|
31401
31575
|
modelId: string(),
|
|
31402
31576
|
condition: SceneConditionSchema,
|
|
31403
31577
|
capturedAt: number(),
|
|
31404
|
-
|
|
31578
|
+
/**
|
|
31579
|
+
* The reference thumbnail's media ROW id (D482).
|
|
31580
|
+
*
|
|
31581
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
31582
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
31583
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
31584
|
+
*/
|
|
31585
|
+
thumbnailMediaId: number().int().optional(),
|
|
31405
31586
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
31406
31587
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
31407
31588
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -32492,7 +32673,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
32492
32673
|
* disarmed the channels it did not mention would make the Levels page and
|
|
32493
32674
|
* the Diagnostics page fight over the same value.
|
|
32494
32675
|
*/
|
|
32495
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
32676
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
32677
|
+
/**
|
|
32678
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
32679
|
+
* retention actually deleted.
|
|
32680
|
+
*
|
|
32681
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
32682
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
32683
|
+
* this system is configured through this one document, and a retention audit
|
|
32684
|
+
* configured somewhere else is a second place to look when the question is
|
|
32685
|
+
* "what happened to my data".
|
|
32686
|
+
*
|
|
32687
|
+
* That placement has a cost worth stating: this document ships in the
|
|
32688
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
32689
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
32690
|
+
*
|
|
32691
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
32692
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
32693
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
32694
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
32695
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
32696
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
32697
|
+
*/
|
|
32698
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
32496
32699
|
});
|
|
32497
32700
|
/**
|
|
32498
32701
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -32565,6 +32768,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
32565
32768
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
32566
32769
|
/** The channels ARMED right now, each with its deadline. */
|
|
32567
32770
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
32771
|
+
/**
|
|
32772
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
32773
|
+
*
|
|
32774
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
32775
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
32776
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
32777
|
+
*/
|
|
32778
|
+
opsLogRetentionDays: number().int().min(0),
|
|
32568
32779
|
persisted: boolean()
|
|
32569
32780
|
});
|
|
32570
32781
|
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(), {
|
|
@@ -33385,7 +33596,7 @@ var StationaryObjectSchema = object({
|
|
|
33385
33596
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
33386
33597
|
label: string().optional(),
|
|
33387
33598
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
33388
|
-
|
|
33599
|
+
keyFrameMediaId: number().int().optional()
|
|
33389
33600
|
});
|
|
33390
33601
|
var CameraOccupancySnapshotSchema = object({
|
|
33391
33602
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -36123,6 +36334,12 @@ Object.freeze({
|
|
|
36123
36334
|
addonId: null,
|
|
36124
36335
|
access: "create"
|
|
36125
36336
|
},
|
|
36337
|
+
"dataStoreProvider.upsert": {
|
|
36338
|
+
capName: "data-store-provider",
|
|
36339
|
+
capScope: "system",
|
|
36340
|
+
addonId: null,
|
|
36341
|
+
access: "create"
|
|
36342
|
+
},
|
|
36126
36343
|
"dayNight.getOptions": {
|
|
36127
36344
|
capName: "day-night",
|
|
36128
36345
|
capScope: "device",
|
|
@@ -38559,6 +38776,12 @@ Object.freeze({
|
|
|
38559
38776
|
addonId: null,
|
|
38560
38777
|
access: "view"
|
|
38561
38778
|
},
|
|
38779
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
38780
|
+
capName: "pipeline-analytics",
|
|
38781
|
+
capScope: "device",
|
|
38782
|
+
addonId: null,
|
|
38783
|
+
access: "view"
|
|
38784
|
+
},
|
|
38562
38785
|
"pipelineAnalytics.listRecentTracks": {
|
|
38563
38786
|
capName: "pipeline-analytics",
|
|
38564
38787
|
capScope: "device",
|
|
@@ -39987,6 +40210,12 @@ Object.freeze({
|
|
|
39987
40210
|
addonId: null,
|
|
39988
40211
|
access: "create"
|
|
39989
40212
|
},
|
|
40213
|
+
"settingsStore.upsert": {
|
|
40214
|
+
capName: "settings-store",
|
|
40215
|
+
capScope: "system",
|
|
40216
|
+
addonId: null,
|
|
40217
|
+
access: "create"
|
|
40218
|
+
},
|
|
39990
40219
|
"smtpProvider.getStatus": {
|
|
39991
40220
|
capName: "smtp-provider",
|
|
39992
40221
|
capScope: "system",
|
|
@@ -42380,6 +42609,11 @@ Object.freeze({
|
|
|
42380
42609
|
form: "single",
|
|
42381
42610
|
optional: true
|
|
42382
42611
|
}],
|
|
42612
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
42613
|
+
name: "deviceIds",
|
|
42614
|
+
form: "array",
|
|
42615
|
+
optional: false
|
|
42616
|
+
}],
|
|
42383
42617
|
"pipelineAnalytics.listRecentTracks": [{
|
|
42384
42618
|
name: "deviceIds",
|
|
42385
42619
|
form: "array",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-import-alexa",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.100",
|
|
4
4
|
"description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|