@camstack/addon-provider-amcrest 0.2.101 → 0.2.103
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
|
|
@@ -12513,6 +12546,16 @@ method(object({
|
|
|
12513
12546
|
filter: QueryFilterSchema.optional(),
|
|
12514
12547
|
columns: array(string()).readonly().optional()
|
|
12515
12548
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12549
|
+
namespace: string().optional(),
|
|
12550
|
+
collection: string(),
|
|
12551
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12552
|
+
* index on the collection. Never empty. */
|
|
12553
|
+
conflict: array(string()).readonly(),
|
|
12554
|
+
record: BulkRecordSchema
|
|
12555
|
+
}), object({
|
|
12556
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12557
|
+
* row's own id on an update. */
|
|
12558
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12516
12559
|
namespace: string().optional(),
|
|
12517
12560
|
collection: string(),
|
|
12518
12561
|
record: object({
|
|
@@ -12647,6 +12690,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12647
12690
|
id: union([string(), number()]) }), {
|
|
12648
12691
|
kind: "mutation",
|
|
12649
12692
|
auth: "admin"
|
|
12693
|
+
}), method(object({
|
|
12694
|
+
namespace: string().optional(),
|
|
12695
|
+
collection: string(),
|
|
12696
|
+
conflict: array(string()).readonly(),
|
|
12697
|
+
record: BulkRecordSchema
|
|
12698
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12699
|
+
kind: "mutation",
|
|
12700
|
+
auth: "admin"
|
|
12650
12701
|
}), method(object({
|
|
12651
12702
|
namespace: string().optional(),
|
|
12652
12703
|
collection: string(),
|
|
@@ -19129,8 +19180,8 @@ var TrackPositionSchema = object({
|
|
|
19129
19180
|
var TrackSnapshotSchema = object({
|
|
19130
19181
|
timestamp: number(),
|
|
19131
19182
|
position: TrackPositionSchema,
|
|
19132
|
-
/**
|
|
19133
|
-
|
|
19183
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
19184
|
+
mediaId: number().int()
|
|
19134
19185
|
});
|
|
19135
19186
|
/**
|
|
19136
19187
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -19734,14 +19785,14 @@ var ObjectEventSchema = object({
|
|
|
19734
19785
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
19735
19786
|
frameWidth: number().optional(),
|
|
19736
19787
|
frameHeight: number().optional(),
|
|
19737
|
-
/**
|
|
19738
|
-
|
|
19739
|
-
/** Design B:
|
|
19788
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
19789
|
+
mediaId: number().int().optional(),
|
|
19790
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
19740
19791
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
19741
|
-
* (`/addon/<addonId>/event-media/<
|
|
19792
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
19742
19793
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
19743
|
-
* sources — consumers fall back to `
|
|
19744
|
-
|
|
19794
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
19795
|
+
keyFrameMediaId: number().int().optional(),
|
|
19745
19796
|
/** Populated by B5 (recording playback URL for this event). */
|
|
19746
19797
|
mediaUrl: string().optional(),
|
|
19747
19798
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -19791,7 +19842,7 @@ var MediaFileKindEnum = _enum([
|
|
|
19791
19842
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
19792
19843
|
*
|
|
19793
19844
|
* `url` points at the `event-media` data plane
|
|
19794
|
-
* (`/addon/<addonId>/event-media/<
|
|
19845
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
19795
19846
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
19796
19847
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
19797
19848
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -19799,10 +19850,13 @@ var MediaFileKindEnum = _enum([
|
|
|
19799
19850
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
19800
19851
|
* (per-device scoping).
|
|
19801
19852
|
*
|
|
19802
|
-
* The URL is built from the row's
|
|
19803
|
-
*
|
|
19853
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
19854
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
19855
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
19804
19856
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
19805
|
-
* `faceCrop`/`plateCrop
|
|
19857
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
19858
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
19859
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
19806
19860
|
*
|
|
19807
19861
|
* ## `base64` is TRANSITIONAL and is going away
|
|
19808
19862
|
*
|
|
@@ -19815,7 +19869,19 @@ var MediaFileKindEnum = _enum([
|
|
|
19815
19869
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
19816
19870
|
*/
|
|
19817
19871
|
var MediaFileSchema = object({
|
|
19818
|
-
|
|
19872
|
+
/**
|
|
19873
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
19874
|
+
*
|
|
19875
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
19876
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
19877
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
19878
|
+
* different rows that spell the same number, and a track whose
|
|
19879
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
19880
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
19881
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
19882
|
+
* at all.
|
|
19883
|
+
*/
|
|
19884
|
+
mediaId: number().int(),
|
|
19819
19885
|
kind: MediaFileKindEnum,
|
|
19820
19886
|
sizeBytes: number(),
|
|
19821
19887
|
timestamp: number()
|
|
@@ -19923,7 +19989,7 @@ var RetrainTrackSchema = object({
|
|
|
19923
19989
|
});
|
|
19924
19990
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
19925
19991
|
var RetrainFrameCandidateSchema = object({
|
|
19926
|
-
|
|
19992
|
+
mediaId: number().int(),
|
|
19927
19993
|
kind: MediaFileKindEnum,
|
|
19928
19994
|
timestamp: number(),
|
|
19929
19995
|
sizeBytes: number().int(),
|
|
@@ -19937,7 +20003,7 @@ var RetrainFrameSchema = object({
|
|
|
19937
20003
|
deviceId: number(),
|
|
19938
20004
|
trackId: string(),
|
|
19939
20005
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
19940
|
-
|
|
20006
|
+
sourceMediaId: number().int(),
|
|
19941
20007
|
sourceKind: MediaFileKindEnum,
|
|
19942
20008
|
sizeBytes: number().int(),
|
|
19943
20009
|
width: number().int(),
|
|
@@ -19953,7 +20019,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
19953
20019
|
var RetrainFrameSelectionSchema = object({
|
|
19954
20020
|
copied: array(RetrainFrameSchema).readonly(),
|
|
19955
20021
|
refused: array(object({
|
|
19956
|
-
|
|
20022
|
+
sourceMediaId: number().int(),
|
|
19957
20023
|
reason: RetrainCopyRefusalSchema
|
|
19958
20024
|
})).readonly()
|
|
19959
20025
|
});
|
|
@@ -19961,7 +20027,7 @@ var RetrainFrameListSchema = object({
|
|
|
19961
20027
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
19962
20028
|
copies: array(RetrainFrameSchema).readonly(),
|
|
19963
20029
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
19964
|
-
|
|
20030
|
+
autoPickMediaId: number().int().optional()
|
|
19965
20031
|
});
|
|
19966
20032
|
/** What the operator asked the assist to look for. */
|
|
19967
20033
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -20056,9 +20122,11 @@ var RecentTracksQueryInput = object({
|
|
|
20056
20122
|
});
|
|
20057
20123
|
/**
|
|
20058
20124
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
20059
|
-
* `
|
|
20060
|
-
* served by the event-media plane
|
|
20061
|
-
* member visible has been materialised
|
|
20125
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
20126
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
20127
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
20128
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
20129
|
+
* row once event ids became per-table rowids).
|
|
20062
20130
|
*/
|
|
20063
20131
|
var SummarySchema = object({
|
|
20064
20132
|
id: string(),
|
|
@@ -20067,19 +20135,115 @@ var SummarySchema = object({
|
|
|
20067
20135
|
lastActiveAt: number(),
|
|
20068
20136
|
sealedAt: number().nullable(),
|
|
20069
20137
|
memberCount: number().int().nonnegative(),
|
|
20070
|
-
|
|
20138
|
+
groupShotMediaId: number().int().nullable()
|
|
20071
20139
|
});
|
|
20072
20140
|
var SummariesQueryInput = object({
|
|
20073
20141
|
deviceIds: array(number()).min(1),
|
|
20074
20142
|
since: number().optional(),
|
|
20075
20143
|
until: number().optional(),
|
|
20076
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20144
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20145
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20146
|
+
* meaning of "dog" on every summary surface. */
|
|
20147
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20077
20148
|
});
|
|
20078
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20079
20149
|
var SummaryDetailSchema = object({
|
|
20080
20150
|
summary: SummarySchema,
|
|
20081
|
-
/**
|
|
20082
|
-
|
|
20151
|
+
/** Members in absorption order, oldest join first. */
|
|
20152
|
+
members: array(object({
|
|
20153
|
+
trackId: string(),
|
|
20154
|
+
/**
|
|
20155
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20156
|
+
* and the track no longer exists to fill it.
|
|
20157
|
+
*
|
|
20158
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20159
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20160
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20161
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20162
|
+
* drift from the members it claims to describe.
|
|
20163
|
+
*/
|
|
20164
|
+
className: string().nullable(),
|
|
20165
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20166
|
+
role: _enum([
|
|
20167
|
+
"primary",
|
|
20168
|
+
"sibling",
|
|
20169
|
+
"child"
|
|
20170
|
+
]).nullable(),
|
|
20171
|
+
joinedAt: number(),
|
|
20172
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20173
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20174
|
+
label: string().optional(),
|
|
20175
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20176
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20177
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20178
|
+
subLabel: string().optional()
|
|
20179
|
+
})).readonly()
|
|
20180
|
+
});
|
|
20181
|
+
/**
|
|
20182
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20183
|
+
*
|
|
20184
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20185
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20186
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20187
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20188
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20189
|
+
* draw two hundred badges.
|
|
20190
|
+
*/
|
|
20191
|
+
var SummaryListItemSchema = object({
|
|
20192
|
+
summary: SummarySchema,
|
|
20193
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20194
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20195
|
+
classes: array(object({
|
|
20196
|
+
className: string().nullable(),
|
|
20197
|
+
count: number().int().positive()
|
|
20198
|
+
})).readonly()
|
|
20199
|
+
});
|
|
20200
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20201
|
+
/**
|
|
20202
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20203
|
+
*
|
|
20204
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20205
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20206
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20207
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20208
|
+
* "newest" means, on one screen.
|
|
20209
|
+
*/
|
|
20210
|
+
var RecentSummariesQueryInput = object({
|
|
20211
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20212
|
+
deviceIds: array(number()),
|
|
20213
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20214
|
+
since: number().optional(),
|
|
20215
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20216
|
+
until: number().optional(),
|
|
20217
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20218
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20219
|
+
cursor: string().optional(),
|
|
20220
|
+
/**
|
|
20221
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20222
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20223
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20224
|
+
* make the operator's one filter component produce two shapes.
|
|
20225
|
+
*
|
|
20226
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20227
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20228
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20229
|
+
* about its primary.
|
|
20230
|
+
*
|
|
20231
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20232
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20233
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20234
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20235
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20236
|
+
*
|
|
20237
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20238
|
+
*/
|
|
20239
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20240
|
+
});
|
|
20241
|
+
var RecentSummariesPageSchema = object({
|
|
20242
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20243
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20244
|
+
* whichever feed drew it. */
|
|
20245
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20246
|
+
nextCursor: string().nullable()
|
|
20083
20247
|
});
|
|
20084
20248
|
var RecentTracksPageSchema = object({
|
|
20085
20249
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20493,7 +20657,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20493
20657
|
classes: array(string()).optional(),
|
|
20494
20658
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20495
20659
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20496
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20660
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20497
20661
|
kind: "mutation",
|
|
20498
20662
|
auth: "admin"
|
|
20499
20663
|
}), 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({
|
|
@@ -20621,7 +20785,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20621
20785
|
}), method(object({
|
|
20622
20786
|
deviceId: number(),
|
|
20623
20787
|
trackId: string(),
|
|
20624
|
-
|
|
20788
|
+
mediaIds: array(number().int()).min(1)
|
|
20625
20789
|
}), RetrainFrameSelectionSchema, {
|
|
20626
20790
|
kind: "mutation",
|
|
20627
20791
|
auth: "admin"
|
|
@@ -20689,7 +20853,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20689
20853
|
kind: "query",
|
|
20690
20854
|
auth: "admin"
|
|
20691
20855
|
}), method(object({
|
|
20692
|
-
|
|
20856
|
+
/** Which of the three event tables owns the row. */
|
|
20857
|
+
ownerType: EventOwnerTypeSchema,
|
|
20858
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
20859
|
+
eventId: number().int(),
|
|
20693
20860
|
kind: MediaFileKindEnum.optional(),
|
|
20694
20861
|
deviceId: number()
|
|
20695
20862
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -20700,7 +20867,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20700
20867
|
trackId: string(),
|
|
20701
20868
|
deviceId: number()
|
|
20702
20869
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
20703
|
-
|
|
20870
|
+
ownerType: EventOwnerTypeSchema,
|
|
20871
|
+
eventId: number().int(),
|
|
20704
20872
|
deviceId: number()
|
|
20705
20873
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
20706
20874
|
kind: "mutation",
|
|
@@ -25997,8 +26165,8 @@ var IdentitySchema = object({
|
|
|
25997
26165
|
id: string(),
|
|
25998
26166
|
name: string(),
|
|
25999
26167
|
sampleCount: number().int().nonnegative(),
|
|
26000
|
-
|
|
26001
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
26168
|
+
coverMediaId: number().int().optional(),
|
|
26169
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
26002
26170
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
26003
26171
|
coverBase64: string().optional()
|
|
26004
26172
|
});
|
|
@@ -26024,8 +26192,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
26024
26192
|
enrolledAt: number().int(),
|
|
26025
26193
|
deviceId: number().int().optional(),
|
|
26026
26194
|
source: _enum(["detected", "photo"]),
|
|
26027
|
-
/** The enrolled crop's media
|
|
26028
|
-
|
|
26195
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
26196
|
+
mediaId: number().int().optional(),
|
|
26029
26197
|
/**
|
|
26030
26198
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
26031
26199
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -26094,15 +26262,15 @@ var FaceInfoSchema = object({
|
|
|
26094
26262
|
*/
|
|
26095
26263
|
cropUrl: string().optional(),
|
|
26096
26264
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
26097
|
-
* view draw the box over the native `
|
|
26265
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
26098
26266
|
* legacy rows written before design B. */
|
|
26099
26267
|
faceBbox: BoundingBoxSchema.optional(),
|
|
26100
26268
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
26101
26269
|
* Fetch the native JPEG via the event-media data-plane
|
|
26102
|
-
* (`/addon/<addonId>/event-media/<
|
|
26270
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
26103
26271
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
26104
26272
|
* back to the inline `base64` face crop. */
|
|
26105
|
-
|
|
26273
|
+
keyFrameMediaId: number().int().optional(),
|
|
26106
26274
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
26107
26275
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
26108
26276
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -26171,11 +26339,14 @@ var FaceClusterSchema = object({
|
|
|
26171
26339
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
26172
26340
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
26173
26341
|
*
|
|
26174
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
26175
|
-
* media
|
|
26342
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
26343
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
26344
|
+
* access decision.
|
|
26176
26345
|
*/
|
|
26177
26346
|
var MediaFileLiteSchema$1 = object({
|
|
26178
|
-
|
|
26347
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
26348
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
26349
|
+
mediaId: number().int(),
|
|
26179
26350
|
kind: string(),
|
|
26180
26351
|
url: string(),
|
|
26181
26352
|
sizeBytes: number(),
|
|
@@ -26192,7 +26363,7 @@ method(object({
|
|
|
26192
26363
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
26193
26364
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
26194
26365
|
*
|
|
26195
|
-
* Nothing loses its avatar: `
|
|
26366
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
26196
26367
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
26197
26368
|
*
|
|
26198
26369
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -29626,8 +29797,8 @@ var VehicleSchema = object({
|
|
|
29626
29797
|
id: string(),
|
|
29627
29798
|
name: string(),
|
|
29628
29799
|
sampleCount: number().int().nonnegative(),
|
|
29629
|
-
|
|
29630
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
29800
|
+
coverMediaId: number().int().optional(),
|
|
29801
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
29631
29802
|
coverBase64: string().optional()
|
|
29632
29803
|
});
|
|
29633
29804
|
var VehicleSampleInfoSchema = object({
|
|
@@ -29660,7 +29831,7 @@ var PlateInfoSchema = object({
|
|
|
29660
29831
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
29661
29832
|
plateBbox: BoundingBoxSchema.optional(),
|
|
29662
29833
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
29663
|
-
|
|
29834
|
+
keyFrameMediaId: number().int().optional(),
|
|
29664
29835
|
base64: string().optional(),
|
|
29665
29836
|
/**
|
|
29666
29837
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -29681,11 +29852,14 @@ var PlateInfoSchema = object({
|
|
|
29681
29852
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
29682
29853
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
29683
29854
|
*
|
|
29684
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
29685
|
-
* media
|
|
29855
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
29856
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
29857
|
+
* access decision.
|
|
29686
29858
|
*/
|
|
29687
29859
|
var MediaFileLiteSchema = object({
|
|
29688
|
-
|
|
29860
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
29861
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
29862
|
+
mediaId: number().int(),
|
|
29689
29863
|
kind: string(),
|
|
29690
29864
|
url: string(),
|
|
29691
29865
|
sizeBytes: number(),
|
|
@@ -29744,7 +29918,7 @@ method(object({
|
|
|
29744
29918
|
}), method(object({
|
|
29745
29919
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
29746
29920
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
29747
|
-
* option; `
|
|
29921
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
29748
29922
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
29749
29923
|
* resolves to `false` and is exactly the intended default. */
|
|
29750
29924
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -31375,7 +31549,14 @@ var SceneReferenceSchema = object({
|
|
|
31375
31549
|
modelId: string(),
|
|
31376
31550
|
condition: SceneConditionSchema,
|
|
31377
31551
|
capturedAt: number(),
|
|
31378
|
-
|
|
31552
|
+
/**
|
|
31553
|
+
* The reference thumbnail's media ROW id (D482).
|
|
31554
|
+
*
|
|
31555
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
31556
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
31557
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
31558
|
+
*/
|
|
31559
|
+
thumbnailMediaId: number().int().optional(),
|
|
31379
31560
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
31380
31561
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
31381
31562
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -32664,7 +32845,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
32664
32845
|
* disarmed the channels it did not mention would make the Levels page and
|
|
32665
32846
|
* the Diagnostics page fight over the same value.
|
|
32666
32847
|
*/
|
|
32667
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
32848
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
32849
|
+
/**
|
|
32850
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
32851
|
+
* retention actually deleted.
|
|
32852
|
+
*
|
|
32853
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
32854
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
32855
|
+
* this system is configured through this one document, and a retention audit
|
|
32856
|
+
* configured somewhere else is a second place to look when the question is
|
|
32857
|
+
* "what happened to my data".
|
|
32858
|
+
*
|
|
32859
|
+
* That placement has a cost worth stating: this document ships in the
|
|
32860
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
32861
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
32862
|
+
*
|
|
32863
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
32864
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
32865
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
32866
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
32867
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
32868
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
32869
|
+
*/
|
|
32870
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
32668
32871
|
});
|
|
32669
32872
|
/**
|
|
32670
32873
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -32737,6 +32940,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
32737
32940
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
32738
32941
|
/** The channels ARMED right now, each with its deadline. */
|
|
32739
32942
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
32943
|
+
/**
|
|
32944
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
32945
|
+
*
|
|
32946
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
32947
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
32948
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
32949
|
+
*/
|
|
32950
|
+
opsLogRetentionDays: number().int().min(0),
|
|
32740
32951
|
persisted: boolean()
|
|
32741
32952
|
});
|
|
32742
32953
|
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(), {
|
|
@@ -33557,7 +33768,7 @@ var StationaryObjectSchema = object({
|
|
|
33557
33768
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
33558
33769
|
label: string().optional(),
|
|
33559
33770
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
33560
|
-
|
|
33771
|
+
keyFrameMediaId: number().int().optional()
|
|
33561
33772
|
});
|
|
33562
33773
|
var CameraOccupancySnapshotSchema = object({
|
|
33563
33774
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -36501,6 +36712,12 @@ Object.freeze({
|
|
|
36501
36712
|
addonId: null,
|
|
36502
36713
|
access: "create"
|
|
36503
36714
|
},
|
|
36715
|
+
"dataStoreProvider.upsert": {
|
|
36716
|
+
capName: "data-store-provider",
|
|
36717
|
+
capScope: "system",
|
|
36718
|
+
addonId: null,
|
|
36719
|
+
access: "create"
|
|
36720
|
+
},
|
|
36504
36721
|
"dayNight.getOptions": {
|
|
36505
36722
|
capName: "day-night",
|
|
36506
36723
|
capScope: "device",
|
|
@@ -38937,6 +39154,12 @@ Object.freeze({
|
|
|
38937
39154
|
addonId: null,
|
|
38938
39155
|
access: "view"
|
|
38939
39156
|
},
|
|
39157
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
39158
|
+
capName: "pipeline-analytics",
|
|
39159
|
+
capScope: "device",
|
|
39160
|
+
addonId: null,
|
|
39161
|
+
access: "view"
|
|
39162
|
+
},
|
|
38940
39163
|
"pipelineAnalytics.listRecentTracks": {
|
|
38941
39164
|
capName: "pipeline-analytics",
|
|
38942
39165
|
capScope: "device",
|
|
@@ -40365,6 +40588,12 @@ Object.freeze({
|
|
|
40365
40588
|
addonId: null,
|
|
40366
40589
|
access: "create"
|
|
40367
40590
|
},
|
|
40591
|
+
"settingsStore.upsert": {
|
|
40592
|
+
capName: "settings-store",
|
|
40593
|
+
capScope: "system",
|
|
40594
|
+
addonId: null,
|
|
40595
|
+
access: "create"
|
|
40596
|
+
},
|
|
40368
40597
|
"smtpProvider.getStatus": {
|
|
40369
40598
|
capName: "smtp-provider",
|
|
40370
40599
|
capScope: "system",
|
|
@@ -42758,6 +42987,11 @@ Object.freeze({
|
|
|
42758
42987
|
form: "single",
|
|
42759
42988
|
optional: true
|
|
42760
42989
|
}],
|
|
42990
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
42991
|
+
name: "deviceIds",
|
|
42992
|
+
form: "array",
|
|
42993
|
+
optional: false
|
|
42994
|
+
}],
|
|
42761
42995
|
"pipelineAnalytics.listRecentTracks": [{
|
|
42762
42996
|
name: "deviceIds",
|
|
42763
42997
|
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
|
|
@@ -12514,6 +12547,16 @@ method(object({
|
|
|
12514
12547
|
filter: QueryFilterSchema.optional(),
|
|
12515
12548
|
columns: array(string()).readonly().optional()
|
|
12516
12549
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12550
|
+
namespace: string().optional(),
|
|
12551
|
+
collection: string(),
|
|
12552
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12553
|
+
* index on the collection. Never empty. */
|
|
12554
|
+
conflict: array(string()).readonly(),
|
|
12555
|
+
record: BulkRecordSchema
|
|
12556
|
+
}), object({
|
|
12557
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12558
|
+
* row's own id on an update. */
|
|
12559
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12517
12560
|
namespace: string().optional(),
|
|
12518
12561
|
collection: string(),
|
|
12519
12562
|
record: object({
|
|
@@ -12648,6 +12691,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12648
12691
|
id: union([string(), number()]) }), {
|
|
12649
12692
|
kind: "mutation",
|
|
12650
12693
|
auth: "admin"
|
|
12694
|
+
}), method(object({
|
|
12695
|
+
namespace: string().optional(),
|
|
12696
|
+
collection: string(),
|
|
12697
|
+
conflict: array(string()).readonly(),
|
|
12698
|
+
record: BulkRecordSchema
|
|
12699
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12700
|
+
kind: "mutation",
|
|
12701
|
+
auth: "admin"
|
|
12651
12702
|
}), method(object({
|
|
12652
12703
|
namespace: string().optional(),
|
|
12653
12704
|
collection: string(),
|
|
@@ -19130,8 +19181,8 @@ var TrackPositionSchema = object({
|
|
|
19130
19181
|
var TrackSnapshotSchema = object({
|
|
19131
19182
|
timestamp: number(),
|
|
19132
19183
|
position: TrackPositionSchema,
|
|
19133
|
-
/**
|
|
19134
|
-
|
|
19184
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
19185
|
+
mediaId: number().int()
|
|
19135
19186
|
});
|
|
19136
19187
|
/**
|
|
19137
19188
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -19735,14 +19786,14 @@ var ObjectEventSchema = object({
|
|
|
19735
19786
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
19736
19787
|
frameWidth: number().optional(),
|
|
19737
19788
|
frameHeight: number().optional(),
|
|
19738
|
-
/**
|
|
19739
|
-
|
|
19740
|
-
/** Design B:
|
|
19789
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
19790
|
+
mediaId: number().int().optional(),
|
|
19791
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
19741
19792
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
19742
|
-
* (`/addon/<addonId>/event-media/<
|
|
19793
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
19743
19794
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
19744
|
-
* sources — consumers fall back to `
|
|
19745
|
-
|
|
19795
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
19796
|
+
keyFrameMediaId: number().int().optional(),
|
|
19746
19797
|
/** Populated by B5 (recording playback URL for this event). */
|
|
19747
19798
|
mediaUrl: string().optional(),
|
|
19748
19799
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -19792,7 +19843,7 @@ var MediaFileKindEnum = _enum([
|
|
|
19792
19843
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
19793
19844
|
*
|
|
19794
19845
|
* `url` points at the `event-media` data plane
|
|
19795
|
-
* (`/addon/<addonId>/event-media/<
|
|
19846
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
19796
19847
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
19797
19848
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
19798
19849
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -19800,10 +19851,13 @@ var MediaFileKindEnum = _enum([
|
|
|
19800
19851
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
19801
19852
|
* (per-device scoping).
|
|
19802
19853
|
*
|
|
19803
|
-
* The URL is built from the row's
|
|
19804
|
-
*
|
|
19854
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
19855
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
19856
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
19805
19857
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
19806
|
-
* `faceCrop`/`plateCrop
|
|
19858
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
19859
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
19860
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
19807
19861
|
*
|
|
19808
19862
|
* ## `base64` is TRANSITIONAL and is going away
|
|
19809
19863
|
*
|
|
@@ -19816,7 +19870,19 @@ var MediaFileKindEnum = _enum([
|
|
|
19816
19870
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
19817
19871
|
*/
|
|
19818
19872
|
var MediaFileSchema = object({
|
|
19819
|
-
|
|
19873
|
+
/**
|
|
19874
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
19875
|
+
*
|
|
19876
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
19877
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
19878
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
19879
|
+
* different rows that spell the same number, and a track whose
|
|
19880
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
19881
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
19882
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
19883
|
+
* at all.
|
|
19884
|
+
*/
|
|
19885
|
+
mediaId: number().int(),
|
|
19820
19886
|
kind: MediaFileKindEnum,
|
|
19821
19887
|
sizeBytes: number(),
|
|
19822
19888
|
timestamp: number()
|
|
@@ -19924,7 +19990,7 @@ var RetrainTrackSchema = object({
|
|
|
19924
19990
|
});
|
|
19925
19991
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
19926
19992
|
var RetrainFrameCandidateSchema = object({
|
|
19927
|
-
|
|
19993
|
+
mediaId: number().int(),
|
|
19928
19994
|
kind: MediaFileKindEnum,
|
|
19929
19995
|
timestamp: number(),
|
|
19930
19996
|
sizeBytes: number().int(),
|
|
@@ -19938,7 +20004,7 @@ var RetrainFrameSchema = object({
|
|
|
19938
20004
|
deviceId: number(),
|
|
19939
20005
|
trackId: string(),
|
|
19940
20006
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
19941
|
-
|
|
20007
|
+
sourceMediaId: number().int(),
|
|
19942
20008
|
sourceKind: MediaFileKindEnum,
|
|
19943
20009
|
sizeBytes: number().int(),
|
|
19944
20010
|
width: number().int(),
|
|
@@ -19954,7 +20020,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
19954
20020
|
var RetrainFrameSelectionSchema = object({
|
|
19955
20021
|
copied: array(RetrainFrameSchema).readonly(),
|
|
19956
20022
|
refused: array(object({
|
|
19957
|
-
|
|
20023
|
+
sourceMediaId: number().int(),
|
|
19958
20024
|
reason: RetrainCopyRefusalSchema
|
|
19959
20025
|
})).readonly()
|
|
19960
20026
|
});
|
|
@@ -19962,7 +20028,7 @@ var RetrainFrameListSchema = object({
|
|
|
19962
20028
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
19963
20029
|
copies: array(RetrainFrameSchema).readonly(),
|
|
19964
20030
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
19965
|
-
|
|
20031
|
+
autoPickMediaId: number().int().optional()
|
|
19966
20032
|
});
|
|
19967
20033
|
/** What the operator asked the assist to look for. */
|
|
19968
20034
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -20057,9 +20123,11 @@ var RecentTracksQueryInput = object({
|
|
|
20057
20123
|
});
|
|
20058
20124
|
/**
|
|
20059
20125
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
20060
|
-
* `
|
|
20061
|
-
* served by the event-media plane
|
|
20062
|
-
* member visible has been materialised
|
|
20126
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
20127
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
20128
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
20129
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
20130
|
+
* row once event ids became per-table rowids).
|
|
20063
20131
|
*/
|
|
20064
20132
|
var SummarySchema = object({
|
|
20065
20133
|
id: string(),
|
|
@@ -20068,19 +20136,115 @@ var SummarySchema = object({
|
|
|
20068
20136
|
lastActiveAt: number(),
|
|
20069
20137
|
sealedAt: number().nullable(),
|
|
20070
20138
|
memberCount: number().int().nonnegative(),
|
|
20071
|
-
|
|
20139
|
+
groupShotMediaId: number().int().nullable()
|
|
20072
20140
|
});
|
|
20073
20141
|
var SummariesQueryInput = object({
|
|
20074
20142
|
deviceIds: array(number()).min(1),
|
|
20075
20143
|
since: number().optional(),
|
|
20076
20144
|
until: number().optional(),
|
|
20077
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20145
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20146
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20147
|
+
* meaning of "dog" on every summary surface. */
|
|
20148
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20078
20149
|
});
|
|
20079
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20080
20150
|
var SummaryDetailSchema = object({
|
|
20081
20151
|
summary: SummarySchema,
|
|
20082
|
-
/**
|
|
20083
|
-
|
|
20152
|
+
/** Members in absorption order, oldest join first. */
|
|
20153
|
+
members: array(object({
|
|
20154
|
+
trackId: string(),
|
|
20155
|
+
/**
|
|
20156
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20157
|
+
* and the track no longer exists to fill it.
|
|
20158
|
+
*
|
|
20159
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20160
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20161
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20162
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20163
|
+
* drift from the members it claims to describe.
|
|
20164
|
+
*/
|
|
20165
|
+
className: string().nullable(),
|
|
20166
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20167
|
+
role: _enum([
|
|
20168
|
+
"primary",
|
|
20169
|
+
"sibling",
|
|
20170
|
+
"child"
|
|
20171
|
+
]).nullable(),
|
|
20172
|
+
joinedAt: number(),
|
|
20173
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20174
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20175
|
+
label: string().optional(),
|
|
20176
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20177
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20178
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20179
|
+
subLabel: string().optional()
|
|
20180
|
+
})).readonly()
|
|
20181
|
+
});
|
|
20182
|
+
/**
|
|
20183
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20184
|
+
*
|
|
20185
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20186
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20187
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20188
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20189
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20190
|
+
* draw two hundred badges.
|
|
20191
|
+
*/
|
|
20192
|
+
var SummaryListItemSchema = object({
|
|
20193
|
+
summary: SummarySchema,
|
|
20194
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20195
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20196
|
+
classes: array(object({
|
|
20197
|
+
className: string().nullable(),
|
|
20198
|
+
count: number().int().positive()
|
|
20199
|
+
})).readonly()
|
|
20200
|
+
});
|
|
20201
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20202
|
+
/**
|
|
20203
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20204
|
+
*
|
|
20205
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20206
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20207
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20208
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20209
|
+
* "newest" means, on one screen.
|
|
20210
|
+
*/
|
|
20211
|
+
var RecentSummariesQueryInput = object({
|
|
20212
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20213
|
+
deviceIds: array(number()),
|
|
20214
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20215
|
+
since: number().optional(),
|
|
20216
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20217
|
+
until: number().optional(),
|
|
20218
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20219
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20220
|
+
cursor: string().optional(),
|
|
20221
|
+
/**
|
|
20222
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20223
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20224
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20225
|
+
* make the operator's one filter component produce two shapes.
|
|
20226
|
+
*
|
|
20227
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20228
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20229
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20230
|
+
* about its primary.
|
|
20231
|
+
*
|
|
20232
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20233
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20234
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20235
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20236
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20237
|
+
*
|
|
20238
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20239
|
+
*/
|
|
20240
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20241
|
+
});
|
|
20242
|
+
var RecentSummariesPageSchema = object({
|
|
20243
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20244
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20245
|
+
* whichever feed drew it. */
|
|
20246
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20247
|
+
nextCursor: string().nullable()
|
|
20084
20248
|
});
|
|
20085
20249
|
var RecentTracksPageSchema = object({
|
|
20086
20250
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20494,7 +20658,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20494
20658
|
classes: array(string()).optional(),
|
|
20495
20659
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20496
20660
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20497
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20661
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20498
20662
|
kind: "mutation",
|
|
20499
20663
|
auth: "admin"
|
|
20500
20664
|
}), 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({
|
|
@@ -20622,7 +20786,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20622
20786
|
}), method(object({
|
|
20623
20787
|
deviceId: number(),
|
|
20624
20788
|
trackId: string(),
|
|
20625
|
-
|
|
20789
|
+
mediaIds: array(number().int()).min(1)
|
|
20626
20790
|
}), RetrainFrameSelectionSchema, {
|
|
20627
20791
|
kind: "mutation",
|
|
20628
20792
|
auth: "admin"
|
|
@@ -20690,7 +20854,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20690
20854
|
kind: "query",
|
|
20691
20855
|
auth: "admin"
|
|
20692
20856
|
}), method(object({
|
|
20693
|
-
|
|
20857
|
+
/** Which of the three event tables owns the row. */
|
|
20858
|
+
ownerType: EventOwnerTypeSchema,
|
|
20859
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
20860
|
+
eventId: number().int(),
|
|
20694
20861
|
kind: MediaFileKindEnum.optional(),
|
|
20695
20862
|
deviceId: number()
|
|
20696
20863
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -20701,7 +20868,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20701
20868
|
trackId: string(),
|
|
20702
20869
|
deviceId: number()
|
|
20703
20870
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
20704
|
-
|
|
20871
|
+
ownerType: EventOwnerTypeSchema,
|
|
20872
|
+
eventId: number().int(),
|
|
20705
20873
|
deviceId: number()
|
|
20706
20874
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
20707
20875
|
kind: "mutation",
|
|
@@ -25998,8 +26166,8 @@ var IdentitySchema = object({
|
|
|
25998
26166
|
id: string(),
|
|
25999
26167
|
name: string(),
|
|
26000
26168
|
sampleCount: number().int().nonnegative(),
|
|
26001
|
-
|
|
26002
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
26169
|
+
coverMediaId: number().int().optional(),
|
|
26170
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
26003
26171
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
26004
26172
|
coverBase64: string().optional()
|
|
26005
26173
|
});
|
|
@@ -26025,8 +26193,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
26025
26193
|
enrolledAt: number().int(),
|
|
26026
26194
|
deviceId: number().int().optional(),
|
|
26027
26195
|
source: _enum(["detected", "photo"]),
|
|
26028
|
-
/** The enrolled crop's media
|
|
26029
|
-
|
|
26196
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
26197
|
+
mediaId: number().int().optional(),
|
|
26030
26198
|
/**
|
|
26031
26199
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
26032
26200
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -26095,15 +26263,15 @@ var FaceInfoSchema = object({
|
|
|
26095
26263
|
*/
|
|
26096
26264
|
cropUrl: string().optional(),
|
|
26097
26265
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
26098
|
-
* view draw the box over the native `
|
|
26266
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
26099
26267
|
* legacy rows written before design B. */
|
|
26100
26268
|
faceBbox: BoundingBoxSchema.optional(),
|
|
26101
26269
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
26102
26270
|
* Fetch the native JPEG via the event-media data-plane
|
|
26103
|
-
* (`/addon/<addonId>/event-media/<
|
|
26271
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
26104
26272
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
26105
26273
|
* back to the inline `base64` face crop. */
|
|
26106
|
-
|
|
26274
|
+
keyFrameMediaId: number().int().optional(),
|
|
26107
26275
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
26108
26276
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
26109
26277
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -26172,11 +26340,14 @@ var FaceClusterSchema = object({
|
|
|
26172
26340
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
26173
26341
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
26174
26342
|
*
|
|
26175
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
26176
|
-
* media
|
|
26343
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
26344
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
26345
|
+
* access decision.
|
|
26177
26346
|
*/
|
|
26178
26347
|
var MediaFileLiteSchema$1 = object({
|
|
26179
|
-
|
|
26348
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
26349
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
26350
|
+
mediaId: number().int(),
|
|
26180
26351
|
kind: string(),
|
|
26181
26352
|
url: string(),
|
|
26182
26353
|
sizeBytes: number(),
|
|
@@ -26193,7 +26364,7 @@ method(object({
|
|
|
26193
26364
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
26194
26365
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
26195
26366
|
*
|
|
26196
|
-
* Nothing loses its avatar: `
|
|
26367
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
26197
26368
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
26198
26369
|
*
|
|
26199
26370
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -29627,8 +29798,8 @@ var VehicleSchema = object({
|
|
|
29627
29798
|
id: string(),
|
|
29628
29799
|
name: string(),
|
|
29629
29800
|
sampleCount: number().int().nonnegative(),
|
|
29630
|
-
|
|
29631
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
29801
|
+
coverMediaId: number().int().optional(),
|
|
29802
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
29632
29803
|
coverBase64: string().optional()
|
|
29633
29804
|
});
|
|
29634
29805
|
var VehicleSampleInfoSchema = object({
|
|
@@ -29661,7 +29832,7 @@ var PlateInfoSchema = object({
|
|
|
29661
29832
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
29662
29833
|
plateBbox: BoundingBoxSchema.optional(),
|
|
29663
29834
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
29664
|
-
|
|
29835
|
+
keyFrameMediaId: number().int().optional(),
|
|
29665
29836
|
base64: string().optional(),
|
|
29666
29837
|
/**
|
|
29667
29838
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -29682,11 +29853,14 @@ var PlateInfoSchema = object({
|
|
|
29682
29853
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
29683
29854
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
29684
29855
|
*
|
|
29685
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
29686
|
-
* media
|
|
29856
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
29857
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
29858
|
+
* access decision.
|
|
29687
29859
|
*/
|
|
29688
29860
|
var MediaFileLiteSchema = object({
|
|
29689
|
-
|
|
29861
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
29862
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
29863
|
+
mediaId: number().int(),
|
|
29690
29864
|
kind: string(),
|
|
29691
29865
|
url: string(),
|
|
29692
29866
|
sizeBytes: number(),
|
|
@@ -29745,7 +29919,7 @@ method(object({
|
|
|
29745
29919
|
}), method(object({
|
|
29746
29920
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
29747
29921
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
29748
|
-
* option; `
|
|
29922
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
29749
29923
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
29750
29924
|
* resolves to `false` and is exactly the intended default. */
|
|
29751
29925
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -31376,7 +31550,14 @@ var SceneReferenceSchema = object({
|
|
|
31376
31550
|
modelId: string(),
|
|
31377
31551
|
condition: SceneConditionSchema,
|
|
31378
31552
|
capturedAt: number(),
|
|
31379
|
-
|
|
31553
|
+
/**
|
|
31554
|
+
* The reference thumbnail's media ROW id (D482).
|
|
31555
|
+
*
|
|
31556
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
31557
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
31558
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
31559
|
+
*/
|
|
31560
|
+
thumbnailMediaId: number().int().optional(),
|
|
31380
31561
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
31381
31562
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
31382
31563
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -32665,7 +32846,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
32665
32846
|
* disarmed the channels it did not mention would make the Levels page and
|
|
32666
32847
|
* the Diagnostics page fight over the same value.
|
|
32667
32848
|
*/
|
|
32668
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
32849
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
32850
|
+
/**
|
|
32851
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
32852
|
+
* retention actually deleted.
|
|
32853
|
+
*
|
|
32854
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
32855
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
32856
|
+
* this system is configured through this one document, and a retention audit
|
|
32857
|
+
* configured somewhere else is a second place to look when the question is
|
|
32858
|
+
* "what happened to my data".
|
|
32859
|
+
*
|
|
32860
|
+
* That placement has a cost worth stating: this document ships in the
|
|
32861
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
32862
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
32863
|
+
*
|
|
32864
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
32865
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
32866
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
32867
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
32868
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
32869
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
32870
|
+
*/
|
|
32871
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
32669
32872
|
});
|
|
32670
32873
|
/**
|
|
32671
32874
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -32738,6 +32941,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
32738
32941
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
32739
32942
|
/** The channels ARMED right now, each with its deadline. */
|
|
32740
32943
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
32944
|
+
/**
|
|
32945
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
32946
|
+
*
|
|
32947
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
32948
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
32949
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
32950
|
+
*/
|
|
32951
|
+
opsLogRetentionDays: number().int().min(0),
|
|
32741
32952
|
persisted: boolean()
|
|
32742
32953
|
});
|
|
32743
32954
|
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(), {
|
|
@@ -33558,7 +33769,7 @@ var StationaryObjectSchema = object({
|
|
|
33558
33769
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
33559
33770
|
label: string().optional(),
|
|
33560
33771
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
33561
|
-
|
|
33772
|
+
keyFrameMediaId: number().int().optional()
|
|
33562
33773
|
});
|
|
33563
33774
|
var CameraOccupancySnapshotSchema = object({
|
|
33564
33775
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -36502,6 +36713,12 @@ Object.freeze({
|
|
|
36502
36713
|
addonId: null,
|
|
36503
36714
|
access: "create"
|
|
36504
36715
|
},
|
|
36716
|
+
"dataStoreProvider.upsert": {
|
|
36717
|
+
capName: "data-store-provider",
|
|
36718
|
+
capScope: "system",
|
|
36719
|
+
addonId: null,
|
|
36720
|
+
access: "create"
|
|
36721
|
+
},
|
|
36505
36722
|
"dayNight.getOptions": {
|
|
36506
36723
|
capName: "day-night",
|
|
36507
36724
|
capScope: "device",
|
|
@@ -38938,6 +39155,12 @@ Object.freeze({
|
|
|
38938
39155
|
addonId: null,
|
|
38939
39156
|
access: "view"
|
|
38940
39157
|
},
|
|
39158
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
39159
|
+
capName: "pipeline-analytics",
|
|
39160
|
+
capScope: "device",
|
|
39161
|
+
addonId: null,
|
|
39162
|
+
access: "view"
|
|
39163
|
+
},
|
|
38941
39164
|
"pipelineAnalytics.listRecentTracks": {
|
|
38942
39165
|
capName: "pipeline-analytics",
|
|
38943
39166
|
capScope: "device",
|
|
@@ -40366,6 +40589,12 @@ Object.freeze({
|
|
|
40366
40589
|
addonId: null,
|
|
40367
40590
|
access: "create"
|
|
40368
40591
|
},
|
|
40592
|
+
"settingsStore.upsert": {
|
|
40593
|
+
capName: "settings-store",
|
|
40594
|
+
capScope: "system",
|
|
40595
|
+
addonId: null,
|
|
40596
|
+
access: "create"
|
|
40597
|
+
},
|
|
40369
40598
|
"smtpProvider.getStatus": {
|
|
40370
40599
|
capName: "smtp-provider",
|
|
40371
40600
|
capScope: "system",
|
|
@@ -42759,6 +42988,11 @@ Object.freeze({
|
|
|
42759
42988
|
form: "single",
|
|
42760
42989
|
optional: true
|
|
42761
42990
|
}],
|
|
42991
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
42992
|
+
name: "deviceIds",
|
|
42993
|
+
form: "array",
|
|
42994
|
+
optional: false
|
|
42995
|
+
}],
|
|
42762
42996
|
"pipelineAnalytics.listRecentTracks": [{
|
|
42763
42997
|
name: "deviceIds",
|
|
42764
42998
|
form: "array",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-amcrest",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.103",
|
|
4
4
|
"description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|