@camstack/addon-provider-homematic 1.2.100 → 1.2.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +131 -50
- package/dist/addon.mjs +131 -50
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -8,7 +8,7 @@ let http = require("http");
|
|
|
8
8
|
let crypto$1 = require("crypto");
|
|
9
9
|
let fs_promises = require("fs/promises");
|
|
10
10
|
let path = require("path");
|
|
11
|
-
//#region ../types/dist/event-category-
|
|
11
|
+
//#region ../types/dist/event-category-ZyX6jcse.mjs
|
|
12
12
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
13
13
|
EventCategory["SystemBoot"] = "system.boot";
|
|
14
14
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -569,7 +569,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
569
569
|
* a package zone — a newly-appeared stationary object of a package class
|
|
570
570
|
* that cleared the class / zone / dwell / size gates. Payload:
|
|
571
571
|
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
572
|
-
* entryId, className, zoneIds,
|
|
572
|
+
* entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
|
|
573
573
|
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
574
574
|
* this bus topic drives notifier rules + live UI. See
|
|
575
575
|
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
@@ -5355,7 +5355,7 @@ var ZodIssueCode = {
|
|
|
5355
5355
|
var ZodFirstPartyTypeKind;
|
|
5356
5356
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5357
5357
|
//#endregion
|
|
5358
|
-
//#region ../types/dist/sleep-
|
|
5358
|
+
//#region ../types/dist/sleep-CnLyvg3w.mjs
|
|
5359
5359
|
/**
|
|
5360
5360
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5361
5361
|
* window to float samples (D455).
|
|
@@ -7322,13 +7322,30 @@ new Set([
|
|
|
7322
7322
|
"scene",
|
|
7323
7323
|
"motion",
|
|
7324
7324
|
"object",
|
|
7325
|
-
"audio"
|
|
7325
|
+
"audio",
|
|
7326
|
+
"mosaic"
|
|
7326
7327
|
]);
|
|
7327
|
-
|
|
7328
|
+
/**
|
|
7329
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
7330
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
7331
|
+
* does not re-spell the list and drift from it.
|
|
7332
|
+
*/
|
|
7333
|
+
var EVENT_OWNER_TYPES = [
|
|
7328
7334
|
"motion",
|
|
7329
7335
|
"object",
|
|
7330
7336
|
"audio"
|
|
7331
|
-
]
|
|
7337
|
+
];
|
|
7338
|
+
/**
|
|
7339
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
7340
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
7341
|
+
* `(table, id)`).
|
|
7342
|
+
*
|
|
7343
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
7344
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
7345
|
+
* nothing failing until a caller asked.
|
|
7346
|
+
*/
|
|
7347
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
7348
|
+
new Set(EVENT_OWNER_TYPES);
|
|
7332
7349
|
var EncodeProfileSchema = object({
|
|
7333
7350
|
video: object({
|
|
7334
7351
|
codec: _enum([
|
|
@@ -12576,6 +12593,16 @@ method(object({
|
|
|
12576
12593
|
filter: QueryFilterSchema.optional(),
|
|
12577
12594
|
columns: array(string()).readonly().optional()
|
|
12578
12595
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12596
|
+
namespace: string().optional(),
|
|
12597
|
+
collection: string(),
|
|
12598
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12599
|
+
* index on the collection. Never empty. */
|
|
12600
|
+
conflict: array(string()).readonly(),
|
|
12601
|
+
record: BulkRecordSchema
|
|
12602
|
+
}), object({
|
|
12603
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12604
|
+
* row's own id on an update. */
|
|
12605
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12579
12606
|
namespace: string().optional(),
|
|
12580
12607
|
collection: string(),
|
|
12581
12608
|
record: object({
|
|
@@ -12710,6 +12737,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12710
12737
|
id: union([string(), number()]) }), {
|
|
12711
12738
|
kind: "mutation",
|
|
12712
12739
|
auth: "admin"
|
|
12740
|
+
}), method(object({
|
|
12741
|
+
namespace: string().optional(),
|
|
12742
|
+
collection: string(),
|
|
12743
|
+
conflict: array(string()).readonly(),
|
|
12744
|
+
record: BulkRecordSchema
|
|
12745
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12746
|
+
kind: "mutation",
|
|
12747
|
+
auth: "admin"
|
|
12713
12748
|
}), method(object({
|
|
12714
12749
|
namespace: string().optional(),
|
|
12715
12750
|
collection: string(),
|
|
@@ -19209,8 +19244,8 @@ var TrackPositionSchema = object({
|
|
|
19209
19244
|
var TrackSnapshotSchema = object({
|
|
19210
19245
|
timestamp: number(),
|
|
19211
19246
|
position: TrackPositionSchema,
|
|
19212
|
-
/**
|
|
19213
|
-
|
|
19247
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
19248
|
+
mediaId: number().int()
|
|
19214
19249
|
});
|
|
19215
19250
|
/**
|
|
19216
19251
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -19814,14 +19849,14 @@ var ObjectEventSchema = object({
|
|
|
19814
19849
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
19815
19850
|
frameWidth: number().optional(),
|
|
19816
19851
|
frameHeight: number().optional(),
|
|
19817
|
-
/**
|
|
19818
|
-
|
|
19819
|
-
/** Design B:
|
|
19852
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
19853
|
+
mediaId: number().int().optional(),
|
|
19854
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
19820
19855
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
19821
|
-
* (`/addon/<addonId>/event-media/<
|
|
19856
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
19822
19857
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
19823
|
-
* sources — consumers fall back to `
|
|
19824
|
-
|
|
19858
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
19859
|
+
keyFrameMediaId: number().int().optional(),
|
|
19825
19860
|
/** Populated by B5 (recording playback URL for this event). */
|
|
19826
19861
|
mediaUrl: string().optional(),
|
|
19827
19862
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -19871,7 +19906,7 @@ var MediaFileKindEnum = _enum([
|
|
|
19871
19906
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
19872
19907
|
*
|
|
19873
19908
|
* `url` points at the `event-media` data plane
|
|
19874
|
-
* (`/addon/<addonId>/event-media/<
|
|
19909
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
19875
19910
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
19876
19911
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
19877
19912
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -19879,10 +19914,13 @@ var MediaFileKindEnum = _enum([
|
|
|
19879
19914
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
19880
19915
|
* (per-device scoping).
|
|
19881
19916
|
*
|
|
19882
|
-
* The URL is built from the row's
|
|
19883
|
-
*
|
|
19917
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
19918
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
19919
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
19884
19920
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
19885
|
-
* `faceCrop`/`plateCrop
|
|
19921
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
19922
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
19923
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
19886
19924
|
*
|
|
19887
19925
|
* ## `base64` is TRANSITIONAL and is going away
|
|
19888
19926
|
*
|
|
@@ -19895,7 +19933,19 @@ var MediaFileKindEnum = _enum([
|
|
|
19895
19933
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
19896
19934
|
*/
|
|
19897
19935
|
var MediaFileSchema = object({
|
|
19898
|
-
|
|
19936
|
+
/**
|
|
19937
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
19938
|
+
*
|
|
19939
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
19940
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
19941
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
19942
|
+
* different rows that spell the same number, and a track whose
|
|
19943
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
19944
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
19945
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
19946
|
+
* at all.
|
|
19947
|
+
*/
|
|
19948
|
+
mediaId: number().int(),
|
|
19899
19949
|
kind: MediaFileKindEnum,
|
|
19900
19950
|
sizeBytes: number(),
|
|
19901
19951
|
timestamp: number()
|
|
@@ -20003,7 +20053,7 @@ var RetrainTrackSchema = object({
|
|
|
20003
20053
|
});
|
|
20004
20054
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
20005
20055
|
var RetrainFrameCandidateSchema = object({
|
|
20006
|
-
|
|
20056
|
+
mediaId: number().int(),
|
|
20007
20057
|
kind: MediaFileKindEnum,
|
|
20008
20058
|
timestamp: number(),
|
|
20009
20059
|
sizeBytes: number().int(),
|
|
@@ -20017,7 +20067,7 @@ var RetrainFrameSchema = object({
|
|
|
20017
20067
|
deviceId: number(),
|
|
20018
20068
|
trackId: string(),
|
|
20019
20069
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
20020
|
-
|
|
20070
|
+
sourceMediaId: number().int(),
|
|
20021
20071
|
sourceKind: MediaFileKindEnum,
|
|
20022
20072
|
sizeBytes: number().int(),
|
|
20023
20073
|
width: number().int(),
|
|
@@ -20033,7 +20083,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
20033
20083
|
var RetrainFrameSelectionSchema = object({
|
|
20034
20084
|
copied: array(RetrainFrameSchema).readonly(),
|
|
20035
20085
|
refused: array(object({
|
|
20036
|
-
|
|
20086
|
+
sourceMediaId: number().int(),
|
|
20037
20087
|
reason: RetrainCopyRefusalSchema
|
|
20038
20088
|
})).readonly()
|
|
20039
20089
|
});
|
|
@@ -20041,7 +20091,7 @@ var RetrainFrameListSchema = object({
|
|
|
20041
20091
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
20042
20092
|
copies: array(RetrainFrameSchema).readonly(),
|
|
20043
20093
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
20044
|
-
|
|
20094
|
+
autoPickMediaId: number().int().optional()
|
|
20045
20095
|
});
|
|
20046
20096
|
/** What the operator asked the assist to look for. */
|
|
20047
20097
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -20136,9 +20186,11 @@ var RecentTracksQueryInput = object({
|
|
|
20136
20186
|
});
|
|
20137
20187
|
/**
|
|
20138
20188
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
20139
|
-
* `
|
|
20140
|
-
* served by the event-media plane
|
|
20141
|
-
* member visible has been materialised
|
|
20189
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
20190
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
20191
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
20192
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
20193
|
+
* row once event ids became per-table rowids).
|
|
20142
20194
|
*/
|
|
20143
20195
|
var SummarySchema = object({
|
|
20144
20196
|
id: string(),
|
|
@@ -20147,7 +20199,7 @@ var SummarySchema = object({
|
|
|
20147
20199
|
lastActiveAt: number(),
|
|
20148
20200
|
sealedAt: number().nullable(),
|
|
20149
20201
|
memberCount: number().int().nonnegative(),
|
|
20150
|
-
|
|
20202
|
+
groupShotMediaId: number().int().nullable()
|
|
20151
20203
|
});
|
|
20152
20204
|
var SummariesQueryInput = object({
|
|
20153
20205
|
deviceIds: array(number()).min(1),
|
|
@@ -20701,7 +20753,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20701
20753
|
}), method(object({
|
|
20702
20754
|
deviceId: number(),
|
|
20703
20755
|
trackId: string(),
|
|
20704
|
-
|
|
20756
|
+
mediaIds: array(number().int()).min(1)
|
|
20705
20757
|
}), RetrainFrameSelectionSchema, {
|
|
20706
20758
|
kind: "mutation",
|
|
20707
20759
|
auth: "admin"
|
|
@@ -20769,7 +20821,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20769
20821
|
kind: "query",
|
|
20770
20822
|
auth: "admin"
|
|
20771
20823
|
}), method(object({
|
|
20772
|
-
|
|
20824
|
+
/** Which of the three event tables owns the row. */
|
|
20825
|
+
ownerType: EventOwnerTypeSchema,
|
|
20826
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
20827
|
+
eventId: number().int(),
|
|
20773
20828
|
kind: MediaFileKindEnum.optional(),
|
|
20774
20829
|
deviceId: number()
|
|
20775
20830
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -20780,7 +20835,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20780
20835
|
trackId: string(),
|
|
20781
20836
|
deviceId: number()
|
|
20782
20837
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
20783
|
-
|
|
20838
|
+
ownerType: EventOwnerTypeSchema,
|
|
20839
|
+
eventId: number().int(),
|
|
20784
20840
|
deviceId: number()
|
|
20785
20841
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
20786
20842
|
kind: "mutation",
|
|
@@ -25973,8 +26029,8 @@ var IdentitySchema = object({
|
|
|
25973
26029
|
id: string(),
|
|
25974
26030
|
name: string(),
|
|
25975
26031
|
sampleCount: number().int().nonnegative(),
|
|
25976
|
-
|
|
25977
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
26032
|
+
coverMediaId: number().int().optional(),
|
|
26033
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
25978
26034
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
25979
26035
|
coverBase64: string().optional()
|
|
25980
26036
|
});
|
|
@@ -26000,8 +26056,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
26000
26056
|
enrolledAt: number().int(),
|
|
26001
26057
|
deviceId: number().int().optional(),
|
|
26002
26058
|
source: _enum(["detected", "photo"]),
|
|
26003
|
-
/** The enrolled crop's media
|
|
26004
|
-
|
|
26059
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
26060
|
+
mediaId: number().int().optional(),
|
|
26005
26061
|
/**
|
|
26006
26062
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
26007
26063
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -26070,15 +26126,15 @@ var FaceInfoSchema = object({
|
|
|
26070
26126
|
*/
|
|
26071
26127
|
cropUrl: string().optional(),
|
|
26072
26128
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
26073
|
-
* view draw the box over the native `
|
|
26129
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
26074
26130
|
* legacy rows written before design B. */
|
|
26075
26131
|
faceBbox: BoundingBoxSchema.optional(),
|
|
26076
26132
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
26077
26133
|
* Fetch the native JPEG via the event-media data-plane
|
|
26078
|
-
* (`/addon/<addonId>/event-media/<
|
|
26134
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
26079
26135
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
26080
26136
|
* back to the inline `base64` face crop. */
|
|
26081
|
-
|
|
26137
|
+
keyFrameMediaId: number().int().optional(),
|
|
26082
26138
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
26083
26139
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
26084
26140
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -26147,11 +26203,14 @@ var FaceClusterSchema = object({
|
|
|
26147
26203
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
26148
26204
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
26149
26205
|
*
|
|
26150
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
26151
|
-
* media
|
|
26206
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
26207
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
26208
|
+
* access decision.
|
|
26152
26209
|
*/
|
|
26153
26210
|
var MediaFileLiteSchema$1 = object({
|
|
26154
|
-
|
|
26211
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
26212
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
26213
|
+
mediaId: number().int(),
|
|
26155
26214
|
kind: string(),
|
|
26156
26215
|
url: string(),
|
|
26157
26216
|
sizeBytes: number(),
|
|
@@ -26168,7 +26227,7 @@ method(object({
|
|
|
26168
26227
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
26169
26228
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
26170
26229
|
*
|
|
26171
|
-
* Nothing loses its avatar: `
|
|
26230
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
26172
26231
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
26173
26232
|
*
|
|
26174
26233
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -29531,8 +29590,8 @@ var VehicleSchema = object({
|
|
|
29531
29590
|
id: string(),
|
|
29532
29591
|
name: string(),
|
|
29533
29592
|
sampleCount: number().int().nonnegative(),
|
|
29534
|
-
|
|
29535
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
29593
|
+
coverMediaId: number().int().optional(),
|
|
29594
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
29536
29595
|
coverBase64: string().optional()
|
|
29537
29596
|
});
|
|
29538
29597
|
var VehicleSampleInfoSchema = object({
|
|
@@ -29565,7 +29624,7 @@ var PlateInfoSchema = object({
|
|
|
29565
29624
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
29566
29625
|
plateBbox: BoundingBoxSchema.optional(),
|
|
29567
29626
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
29568
|
-
|
|
29627
|
+
keyFrameMediaId: number().int().optional(),
|
|
29569
29628
|
base64: string().optional(),
|
|
29570
29629
|
/**
|
|
29571
29630
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -29586,11 +29645,14 @@ var PlateInfoSchema = object({
|
|
|
29586
29645
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
29587
29646
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
29588
29647
|
*
|
|
29589
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
29590
|
-
* media
|
|
29648
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
29649
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
29650
|
+
* access decision.
|
|
29591
29651
|
*/
|
|
29592
29652
|
var MediaFileLiteSchema = object({
|
|
29593
|
-
|
|
29653
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
29654
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
29655
|
+
mediaId: number().int(),
|
|
29594
29656
|
kind: string(),
|
|
29595
29657
|
url: string(),
|
|
29596
29658
|
sizeBytes: number(),
|
|
@@ -29649,7 +29711,7 @@ method(object({
|
|
|
29649
29711
|
}), method(object({
|
|
29650
29712
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
29651
29713
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
29652
|
-
* option; `
|
|
29714
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
29653
29715
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
29654
29716
|
* resolves to `false` and is exactly the intended default. */
|
|
29655
29717
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -31218,7 +31280,14 @@ var SceneReferenceSchema = object({
|
|
|
31218
31280
|
modelId: string(),
|
|
31219
31281
|
condition: SceneConditionSchema,
|
|
31220
31282
|
capturedAt: number(),
|
|
31221
|
-
|
|
31283
|
+
/**
|
|
31284
|
+
* The reference thumbnail's media ROW id (D482).
|
|
31285
|
+
*
|
|
31286
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
31287
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
31288
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
31289
|
+
*/
|
|
31290
|
+
thumbnailMediaId: number().int().optional(),
|
|
31222
31291
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
31223
31292
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
31224
31293
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -33202,7 +33271,7 @@ var StationaryObjectSchema = object({
|
|
|
33202
33271
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
33203
33272
|
label: string().optional(),
|
|
33204
33273
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
33205
|
-
|
|
33274
|
+
keyFrameMediaId: number().int().optional()
|
|
33206
33275
|
});
|
|
33207
33276
|
var CameraOccupancySnapshotSchema = object({
|
|
33208
33277
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -35940,6 +36009,12 @@ Object.freeze({
|
|
|
35940
36009
|
addonId: null,
|
|
35941
36010
|
access: "create"
|
|
35942
36011
|
},
|
|
36012
|
+
"dataStoreProvider.upsert": {
|
|
36013
|
+
capName: "data-store-provider",
|
|
36014
|
+
capScope: "system",
|
|
36015
|
+
addonId: null,
|
|
36016
|
+
access: "create"
|
|
36017
|
+
},
|
|
35943
36018
|
"dayNight.getOptions": {
|
|
35944
36019
|
capName: "day-night",
|
|
35945
36020
|
capScope: "device",
|
|
@@ -39804,6 +39879,12 @@ Object.freeze({
|
|
|
39804
39879
|
addonId: null,
|
|
39805
39880
|
access: "create"
|
|
39806
39881
|
},
|
|
39882
|
+
"settingsStore.upsert": {
|
|
39883
|
+
capName: "settings-store",
|
|
39884
|
+
capScope: "system",
|
|
39885
|
+
addonId: null,
|
|
39886
|
+
access: "create"
|
|
39887
|
+
},
|
|
39807
39888
|
"smtpProvider.getStatus": {
|
|
39808
39889
|
capName: "smtp-provider",
|
|
39809
39890
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { join } from "path";
|
|
|
9
9
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
10
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region ../types/dist/event-category-
|
|
12
|
+
//#region ../types/dist/event-category-ZyX6jcse.mjs
|
|
13
13
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
14
14
|
EventCategory["SystemBoot"] = "system.boot";
|
|
15
15
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -570,7 +570,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
570
570
|
* a package zone — a newly-appeared stationary object of a package class
|
|
571
571
|
* that cleared the class / zone / dwell / size gates. Payload:
|
|
572
572
|
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
573
|
-
* entryId, className, zoneIds,
|
|
573
|
+
* entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
|
|
574
574
|
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
575
575
|
* this bus topic drives notifier rules + live UI. See
|
|
576
576
|
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
@@ -5356,7 +5356,7 @@ var ZodIssueCode = {
|
|
|
5356
5356
|
var ZodFirstPartyTypeKind;
|
|
5357
5357
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5358
5358
|
//#endregion
|
|
5359
|
-
//#region ../types/dist/sleep-
|
|
5359
|
+
//#region ../types/dist/sleep-CnLyvg3w.mjs
|
|
5360
5360
|
/**
|
|
5361
5361
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5362
5362
|
* window to float samples (D455).
|
|
@@ -7323,13 +7323,30 @@ new Set([
|
|
|
7323
7323
|
"scene",
|
|
7324
7324
|
"motion",
|
|
7325
7325
|
"object",
|
|
7326
|
-
"audio"
|
|
7326
|
+
"audio",
|
|
7327
|
+
"mosaic"
|
|
7327
7328
|
]);
|
|
7328
|
-
|
|
7329
|
+
/**
|
|
7330
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
7331
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
7332
|
+
* does not re-spell the list and drift from it.
|
|
7333
|
+
*/
|
|
7334
|
+
var EVENT_OWNER_TYPES = [
|
|
7329
7335
|
"motion",
|
|
7330
7336
|
"object",
|
|
7331
7337
|
"audio"
|
|
7332
|
-
]
|
|
7338
|
+
];
|
|
7339
|
+
/**
|
|
7340
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
7341
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
7342
|
+
* `(table, id)`).
|
|
7343
|
+
*
|
|
7344
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
7345
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
7346
|
+
* nothing failing until a caller asked.
|
|
7347
|
+
*/
|
|
7348
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
7349
|
+
new Set(EVENT_OWNER_TYPES);
|
|
7333
7350
|
var EncodeProfileSchema = object({
|
|
7334
7351
|
video: object({
|
|
7335
7352
|
codec: _enum([
|
|
@@ -12577,6 +12594,16 @@ method(object({
|
|
|
12577
12594
|
filter: QueryFilterSchema.optional(),
|
|
12578
12595
|
columns: array(string()).readonly().optional()
|
|
12579
12596
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12597
|
+
namespace: string().optional(),
|
|
12598
|
+
collection: string(),
|
|
12599
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12600
|
+
* index on the collection. Never empty. */
|
|
12601
|
+
conflict: array(string()).readonly(),
|
|
12602
|
+
record: BulkRecordSchema
|
|
12603
|
+
}), object({
|
|
12604
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12605
|
+
* row's own id on an update. */
|
|
12606
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12580
12607
|
namespace: string().optional(),
|
|
12581
12608
|
collection: string(),
|
|
12582
12609
|
record: object({
|
|
@@ -12711,6 +12738,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12711
12738
|
id: union([string(), number()]) }), {
|
|
12712
12739
|
kind: "mutation",
|
|
12713
12740
|
auth: "admin"
|
|
12741
|
+
}), method(object({
|
|
12742
|
+
namespace: string().optional(),
|
|
12743
|
+
collection: string(),
|
|
12744
|
+
conflict: array(string()).readonly(),
|
|
12745
|
+
record: BulkRecordSchema
|
|
12746
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12747
|
+
kind: "mutation",
|
|
12748
|
+
auth: "admin"
|
|
12714
12749
|
}), method(object({
|
|
12715
12750
|
namespace: string().optional(),
|
|
12716
12751
|
collection: string(),
|
|
@@ -19210,8 +19245,8 @@ var TrackPositionSchema = object({
|
|
|
19210
19245
|
var TrackSnapshotSchema = object({
|
|
19211
19246
|
timestamp: number(),
|
|
19212
19247
|
position: TrackPositionSchema,
|
|
19213
|
-
/**
|
|
19214
|
-
|
|
19248
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
19249
|
+
mediaId: number().int()
|
|
19215
19250
|
});
|
|
19216
19251
|
/**
|
|
19217
19252
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -19815,14 +19850,14 @@ var ObjectEventSchema = object({
|
|
|
19815
19850
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
19816
19851
|
frameWidth: number().optional(),
|
|
19817
19852
|
frameHeight: number().optional(),
|
|
19818
|
-
/**
|
|
19819
|
-
|
|
19820
|
-
/** Design B:
|
|
19853
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
19854
|
+
mediaId: number().int().optional(),
|
|
19855
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
19821
19856
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
19822
|
-
* (`/addon/<addonId>/event-media/<
|
|
19857
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
19823
19858
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
19824
|
-
* sources — consumers fall back to `
|
|
19825
|
-
|
|
19859
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
19860
|
+
keyFrameMediaId: number().int().optional(),
|
|
19826
19861
|
/** Populated by B5 (recording playback URL for this event). */
|
|
19827
19862
|
mediaUrl: string().optional(),
|
|
19828
19863
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -19872,7 +19907,7 @@ var MediaFileKindEnum = _enum([
|
|
|
19872
19907
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
19873
19908
|
*
|
|
19874
19909
|
* `url` points at the `event-media` data plane
|
|
19875
|
-
* (`/addon/<addonId>/event-media/<
|
|
19910
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
19876
19911
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
19877
19912
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
19878
19913
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -19880,10 +19915,13 @@ var MediaFileKindEnum = _enum([
|
|
|
19880
19915
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
19881
19916
|
* (per-device scoping).
|
|
19882
19917
|
*
|
|
19883
|
-
* The URL is built from the row's
|
|
19884
|
-
*
|
|
19918
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
19919
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
19920
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
19885
19921
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
19886
|
-
* `faceCrop`/`plateCrop
|
|
19922
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
19923
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
19924
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
19887
19925
|
*
|
|
19888
19926
|
* ## `base64` is TRANSITIONAL and is going away
|
|
19889
19927
|
*
|
|
@@ -19896,7 +19934,19 @@ var MediaFileKindEnum = _enum([
|
|
|
19896
19934
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
19897
19935
|
*/
|
|
19898
19936
|
var MediaFileSchema = object({
|
|
19899
|
-
|
|
19937
|
+
/**
|
|
19938
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
19939
|
+
*
|
|
19940
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
19941
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
19942
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
19943
|
+
* different rows that spell the same number, and a track whose
|
|
19944
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
19945
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
19946
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
19947
|
+
* at all.
|
|
19948
|
+
*/
|
|
19949
|
+
mediaId: number().int(),
|
|
19900
19950
|
kind: MediaFileKindEnum,
|
|
19901
19951
|
sizeBytes: number(),
|
|
19902
19952
|
timestamp: number()
|
|
@@ -20004,7 +20054,7 @@ var RetrainTrackSchema = object({
|
|
|
20004
20054
|
});
|
|
20005
20055
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
20006
20056
|
var RetrainFrameCandidateSchema = object({
|
|
20007
|
-
|
|
20057
|
+
mediaId: number().int(),
|
|
20008
20058
|
kind: MediaFileKindEnum,
|
|
20009
20059
|
timestamp: number(),
|
|
20010
20060
|
sizeBytes: number().int(),
|
|
@@ -20018,7 +20068,7 @@ var RetrainFrameSchema = object({
|
|
|
20018
20068
|
deviceId: number(),
|
|
20019
20069
|
trackId: string(),
|
|
20020
20070
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
20021
|
-
|
|
20071
|
+
sourceMediaId: number().int(),
|
|
20022
20072
|
sourceKind: MediaFileKindEnum,
|
|
20023
20073
|
sizeBytes: number().int(),
|
|
20024
20074
|
width: number().int(),
|
|
@@ -20034,7 +20084,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
20034
20084
|
var RetrainFrameSelectionSchema = object({
|
|
20035
20085
|
copied: array(RetrainFrameSchema).readonly(),
|
|
20036
20086
|
refused: array(object({
|
|
20037
|
-
|
|
20087
|
+
sourceMediaId: number().int(),
|
|
20038
20088
|
reason: RetrainCopyRefusalSchema
|
|
20039
20089
|
})).readonly()
|
|
20040
20090
|
});
|
|
@@ -20042,7 +20092,7 @@ var RetrainFrameListSchema = object({
|
|
|
20042
20092
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
20043
20093
|
copies: array(RetrainFrameSchema).readonly(),
|
|
20044
20094
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
20045
|
-
|
|
20095
|
+
autoPickMediaId: number().int().optional()
|
|
20046
20096
|
});
|
|
20047
20097
|
/** What the operator asked the assist to look for. */
|
|
20048
20098
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -20137,9 +20187,11 @@ var RecentTracksQueryInput = object({
|
|
|
20137
20187
|
});
|
|
20138
20188
|
/**
|
|
20139
20189
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
20140
|
-
* `
|
|
20141
|
-
* served by the event-media plane
|
|
20142
|
-
* member visible has been materialised
|
|
20190
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
20191
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
20192
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
20193
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
20194
|
+
* row once event ids became per-table rowids).
|
|
20143
20195
|
*/
|
|
20144
20196
|
var SummarySchema = object({
|
|
20145
20197
|
id: string(),
|
|
@@ -20148,7 +20200,7 @@ var SummarySchema = object({
|
|
|
20148
20200
|
lastActiveAt: number(),
|
|
20149
20201
|
sealedAt: number().nullable(),
|
|
20150
20202
|
memberCount: number().int().nonnegative(),
|
|
20151
|
-
|
|
20203
|
+
groupShotMediaId: number().int().nullable()
|
|
20152
20204
|
});
|
|
20153
20205
|
var SummariesQueryInput = object({
|
|
20154
20206
|
deviceIds: array(number()).min(1),
|
|
@@ -20702,7 +20754,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20702
20754
|
}), method(object({
|
|
20703
20755
|
deviceId: number(),
|
|
20704
20756
|
trackId: string(),
|
|
20705
|
-
|
|
20757
|
+
mediaIds: array(number().int()).min(1)
|
|
20706
20758
|
}), RetrainFrameSelectionSchema, {
|
|
20707
20759
|
kind: "mutation",
|
|
20708
20760
|
auth: "admin"
|
|
@@ -20770,7 +20822,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20770
20822
|
kind: "query",
|
|
20771
20823
|
auth: "admin"
|
|
20772
20824
|
}), method(object({
|
|
20773
|
-
|
|
20825
|
+
/** Which of the three event tables owns the row. */
|
|
20826
|
+
ownerType: EventOwnerTypeSchema,
|
|
20827
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
20828
|
+
eventId: number().int(),
|
|
20774
20829
|
kind: MediaFileKindEnum.optional(),
|
|
20775
20830
|
deviceId: number()
|
|
20776
20831
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -20781,7 +20836,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20781
20836
|
trackId: string(),
|
|
20782
20837
|
deviceId: number()
|
|
20783
20838
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
20784
|
-
|
|
20839
|
+
ownerType: EventOwnerTypeSchema,
|
|
20840
|
+
eventId: number().int(),
|
|
20785
20841
|
deviceId: number()
|
|
20786
20842
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
20787
20843
|
kind: "mutation",
|
|
@@ -25974,8 +26030,8 @@ var IdentitySchema = object({
|
|
|
25974
26030
|
id: string(),
|
|
25975
26031
|
name: string(),
|
|
25976
26032
|
sampleCount: number().int().nonnegative(),
|
|
25977
|
-
|
|
25978
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
26033
|
+
coverMediaId: number().int().optional(),
|
|
26034
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
25979
26035
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
25980
26036
|
coverBase64: string().optional()
|
|
25981
26037
|
});
|
|
@@ -26001,8 +26057,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
26001
26057
|
enrolledAt: number().int(),
|
|
26002
26058
|
deviceId: number().int().optional(),
|
|
26003
26059
|
source: _enum(["detected", "photo"]),
|
|
26004
|
-
/** The enrolled crop's media
|
|
26005
|
-
|
|
26060
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
26061
|
+
mediaId: number().int().optional(),
|
|
26006
26062
|
/**
|
|
26007
26063
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
26008
26064
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -26071,15 +26127,15 @@ var FaceInfoSchema = object({
|
|
|
26071
26127
|
*/
|
|
26072
26128
|
cropUrl: string().optional(),
|
|
26073
26129
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
26074
|
-
* view draw the box over the native `
|
|
26130
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
26075
26131
|
* legacy rows written before design B. */
|
|
26076
26132
|
faceBbox: BoundingBoxSchema.optional(),
|
|
26077
26133
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
26078
26134
|
* Fetch the native JPEG via the event-media data-plane
|
|
26079
|
-
* (`/addon/<addonId>/event-media/<
|
|
26135
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
26080
26136
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
26081
26137
|
* back to the inline `base64` face crop. */
|
|
26082
|
-
|
|
26138
|
+
keyFrameMediaId: number().int().optional(),
|
|
26083
26139
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
26084
26140
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
26085
26141
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -26148,11 +26204,14 @@ var FaceClusterSchema = object({
|
|
|
26148
26204
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
26149
26205
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
26150
26206
|
*
|
|
26151
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
26152
|
-
* media
|
|
26207
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
26208
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
26209
|
+
* access decision.
|
|
26153
26210
|
*/
|
|
26154
26211
|
var MediaFileLiteSchema$1 = object({
|
|
26155
|
-
|
|
26212
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
26213
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
26214
|
+
mediaId: number().int(),
|
|
26156
26215
|
kind: string(),
|
|
26157
26216
|
url: string(),
|
|
26158
26217
|
sizeBytes: number(),
|
|
@@ -26169,7 +26228,7 @@ method(object({
|
|
|
26169
26228
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
26170
26229
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
26171
26230
|
*
|
|
26172
|
-
* Nothing loses its avatar: `
|
|
26231
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
26173
26232
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
26174
26233
|
*
|
|
26175
26234
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -29532,8 +29591,8 @@ var VehicleSchema = object({
|
|
|
29532
29591
|
id: string(),
|
|
29533
29592
|
name: string(),
|
|
29534
29593
|
sampleCount: number().int().nonnegative(),
|
|
29535
|
-
|
|
29536
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
29594
|
+
coverMediaId: number().int().optional(),
|
|
29595
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
29537
29596
|
coverBase64: string().optional()
|
|
29538
29597
|
});
|
|
29539
29598
|
var VehicleSampleInfoSchema = object({
|
|
@@ -29566,7 +29625,7 @@ var PlateInfoSchema = object({
|
|
|
29566
29625
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
29567
29626
|
plateBbox: BoundingBoxSchema.optional(),
|
|
29568
29627
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
29569
|
-
|
|
29628
|
+
keyFrameMediaId: number().int().optional(),
|
|
29570
29629
|
base64: string().optional(),
|
|
29571
29630
|
/**
|
|
29572
29631
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -29587,11 +29646,14 @@ var PlateInfoSchema = object({
|
|
|
29587
29646
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
29588
29647
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
29589
29648
|
*
|
|
29590
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
29591
|
-
* media
|
|
29649
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
29650
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
29651
|
+
* access decision.
|
|
29592
29652
|
*/
|
|
29593
29653
|
var MediaFileLiteSchema = object({
|
|
29594
|
-
|
|
29654
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
29655
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
29656
|
+
mediaId: number().int(),
|
|
29595
29657
|
kind: string(),
|
|
29596
29658
|
url: string(),
|
|
29597
29659
|
sizeBytes: number(),
|
|
@@ -29650,7 +29712,7 @@ method(object({
|
|
|
29650
29712
|
}), method(object({
|
|
29651
29713
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
29652
29714
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
29653
|
-
* option; `
|
|
29715
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
29654
29716
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
29655
29717
|
* resolves to `false` and is exactly the intended default. */
|
|
29656
29718
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -31219,7 +31281,14 @@ var SceneReferenceSchema = object({
|
|
|
31219
31281
|
modelId: string(),
|
|
31220
31282
|
condition: SceneConditionSchema,
|
|
31221
31283
|
capturedAt: number(),
|
|
31222
|
-
|
|
31284
|
+
/**
|
|
31285
|
+
* The reference thumbnail's media ROW id (D482).
|
|
31286
|
+
*
|
|
31287
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
31288
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
31289
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
31290
|
+
*/
|
|
31291
|
+
thumbnailMediaId: number().int().optional(),
|
|
31223
31292
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
31224
31293
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
31225
31294
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -33203,7 +33272,7 @@ var StationaryObjectSchema = object({
|
|
|
33203
33272
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
33204
33273
|
label: string().optional(),
|
|
33205
33274
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
33206
|
-
|
|
33275
|
+
keyFrameMediaId: number().int().optional()
|
|
33207
33276
|
});
|
|
33208
33277
|
var CameraOccupancySnapshotSchema = object({
|
|
33209
33278
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -35941,6 +36010,12 @@ Object.freeze({
|
|
|
35941
36010
|
addonId: null,
|
|
35942
36011
|
access: "create"
|
|
35943
36012
|
},
|
|
36013
|
+
"dataStoreProvider.upsert": {
|
|
36014
|
+
capName: "data-store-provider",
|
|
36015
|
+
capScope: "system",
|
|
36016
|
+
addonId: null,
|
|
36017
|
+
access: "create"
|
|
36018
|
+
},
|
|
35944
36019
|
"dayNight.getOptions": {
|
|
35945
36020
|
capName: "day-night",
|
|
35946
36021
|
capScope: "device",
|
|
@@ -39805,6 +39880,12 @@ Object.freeze({
|
|
|
39805
39880
|
addonId: null,
|
|
39806
39881
|
access: "create"
|
|
39807
39882
|
},
|
|
39883
|
+
"settingsStore.upsert": {
|
|
39884
|
+
capName: "settings-store",
|
|
39885
|
+
capScope: "system",
|
|
39886
|
+
addonId: null,
|
|
39887
|
+
access: "create"
|
|
39888
|
+
},
|
|
39808
39889
|
"smtpProvider.getStatus": {
|
|
39809
39890
|
capName: "smtp-provider",
|
|
39810
39891
|
capScope: "system",
|
package/package.json
CHANGED