@camstack/addon-provider-dreame 0.2.100 → 0.2.102
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
|
@@ -52672,7 +52672,7 @@ var DreameCameraStream = class extends TypedEmitter {
|
|
|
52672
52672
|
}
|
|
52673
52673
|
};
|
|
52674
52674
|
//#endregion
|
|
52675
|
-
//#region ../types/dist/event-category-
|
|
52675
|
+
//#region ../types/dist/event-category-ZyX6jcse.mjs
|
|
52676
52676
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
52677
52677
|
EventCategory["SystemBoot"] = "system.boot";
|
|
52678
52678
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -53233,7 +53233,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
53233
53233
|
* a package zone — a newly-appeared stationary object of a package class
|
|
53234
53234
|
* that cleared the class / zone / dwell / size gates. Payload:
|
|
53235
53235
|
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
53236
|
-
* entryId, className, zoneIds,
|
|
53236
|
+
* entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
|
|
53237
53237
|
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
53238
53238
|
* this bus topic drives notifier rules + live UI. See
|
|
53239
53239
|
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
@@ -58019,7 +58019,7 @@ var ZodIssueCode = {
|
|
|
58019
58019
|
var ZodFirstPartyTypeKind;
|
|
58020
58020
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
58021
58021
|
//#endregion
|
|
58022
|
-
//#region ../types/dist/sleep-
|
|
58022
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
58023
58023
|
/**
|
|
58024
58024
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
58025
58025
|
* window to float samples (D455).
|
|
@@ -59986,13 +59986,30 @@ new Set([
|
|
|
59986
59986
|
"scene",
|
|
59987
59987
|
"motion",
|
|
59988
59988
|
"object",
|
|
59989
|
-
"audio"
|
|
59989
|
+
"audio",
|
|
59990
|
+
"mosaic"
|
|
59990
59991
|
]);
|
|
59991
|
-
|
|
59992
|
+
/**
|
|
59993
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
59994
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
59995
|
+
* does not re-spell the list and drift from it.
|
|
59996
|
+
*/
|
|
59997
|
+
var EVENT_OWNER_TYPES = [
|
|
59992
59998
|
"motion",
|
|
59993
59999
|
"object",
|
|
59994
60000
|
"audio"
|
|
59995
|
-
]
|
|
60001
|
+
];
|
|
60002
|
+
/**
|
|
60003
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
60004
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
60005
|
+
* `(table, id)`).
|
|
60006
|
+
*
|
|
60007
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
60008
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
60009
|
+
* nothing failing until a caller asked.
|
|
60010
|
+
*/
|
|
60011
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
60012
|
+
new Set(EVENT_OWNER_TYPES);
|
|
59996
60013
|
var EncodeProfileSchema = object({
|
|
59997
60014
|
video: object({
|
|
59998
60015
|
codec: _enum([
|
|
@@ -60031,7 +60048,23 @@ var EncodeProfileSchema = object({
|
|
|
60031
60048
|
"zerolatency",
|
|
60032
60049
|
"film",
|
|
60033
60050
|
"animation"
|
|
60034
|
-
]).optional()
|
|
60051
|
+
]).optional(),
|
|
60052
|
+
/**
|
|
60053
|
+
* ONE slice per access unit.
|
|
60054
|
+
*
|
|
60055
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
60056
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
60057
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
60058
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
60059
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
60060
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
60061
|
+
*
|
|
60062
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
60063
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
60064
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
60065
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
60066
|
+
*/
|
|
60067
|
+
singleSlicePerFrame: boolean().optional()
|
|
60035
60068
|
}),
|
|
60036
60069
|
audio: union([literal("passthrough"), object({
|
|
60037
60070
|
codec: _enum([
|
|
@@ -60081,7 +60114,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
60081
60114
|
audio: "passthrough"
|
|
60082
60115
|
};
|
|
60083
60116
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
60084
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
60117
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
60085
60118
|
/**
|
|
60086
60119
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
60087
60120
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -65191,6 +65224,16 @@ method(object({
|
|
|
65191
65224
|
filter: QueryFilterSchema.optional(),
|
|
65192
65225
|
columns: array(string()).readonly().optional()
|
|
65193
65226
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
65227
|
+
namespace: string().optional(),
|
|
65228
|
+
collection: string(),
|
|
65229
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
65230
|
+
* index on the collection. Never empty. */
|
|
65231
|
+
conflict: array(string()).readonly(),
|
|
65232
|
+
record: BulkRecordSchema
|
|
65233
|
+
}), object({
|
|
65234
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
65235
|
+
* row's own id on an update. */
|
|
65236
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
65194
65237
|
namespace: string().optional(),
|
|
65195
65238
|
collection: string(),
|
|
65196
65239
|
record: object({
|
|
@@ -65325,6 +65368,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
65325
65368
|
id: union([string(), number()]) }), {
|
|
65326
65369
|
kind: "mutation",
|
|
65327
65370
|
auth: "admin"
|
|
65371
|
+
}), method(object({
|
|
65372
|
+
namespace: string().optional(),
|
|
65373
|
+
collection: string(),
|
|
65374
|
+
conflict: array(string()).readonly(),
|
|
65375
|
+
record: BulkRecordSchema
|
|
65376
|
+
}), object({ id: union([string(), number()]) }), {
|
|
65377
|
+
kind: "mutation",
|
|
65378
|
+
auth: "admin"
|
|
65328
65379
|
}), method(object({
|
|
65329
65380
|
namespace: string().optional(),
|
|
65330
65381
|
collection: string(),
|
|
@@ -71824,8 +71875,8 @@ var TrackPositionSchema = object({
|
|
|
71824
71875
|
var TrackSnapshotSchema = object({
|
|
71825
71876
|
timestamp: number(),
|
|
71826
71877
|
position: TrackPositionSchema,
|
|
71827
|
-
/**
|
|
71828
|
-
|
|
71878
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
71879
|
+
mediaId: number().int()
|
|
71829
71880
|
});
|
|
71830
71881
|
/**
|
|
71831
71882
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -72429,14 +72480,14 @@ var ObjectEventSchema = object({
|
|
|
72429
72480
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
72430
72481
|
frameWidth: number().optional(),
|
|
72431
72482
|
frameHeight: number().optional(),
|
|
72432
|
-
/**
|
|
72433
|
-
|
|
72434
|
-
/** Design B:
|
|
72483
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
72484
|
+
mediaId: number().int().optional(),
|
|
72485
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
72435
72486
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
72436
|
-
* (`/addon/<addonId>/event-media/<
|
|
72487
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
72437
72488
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
72438
|
-
* sources — consumers fall back to `
|
|
72439
|
-
|
|
72489
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
72490
|
+
keyFrameMediaId: number().int().optional(),
|
|
72440
72491
|
/** Populated by B5 (recording playback URL for this event). */
|
|
72441
72492
|
mediaUrl: string().optional(),
|
|
72442
72493
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -72486,7 +72537,7 @@ var MediaFileKindEnum = _enum([
|
|
|
72486
72537
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
72487
72538
|
*
|
|
72488
72539
|
* `url` points at the `event-media` data plane
|
|
72489
|
-
* (`/addon/<addonId>/event-media/<
|
|
72540
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
72490
72541
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
72491
72542
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
72492
72543
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -72494,10 +72545,13 @@ var MediaFileKindEnum = _enum([
|
|
|
72494
72545
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
72495
72546
|
* (per-device scoping).
|
|
72496
72547
|
*
|
|
72497
|
-
* The URL is built from the row's
|
|
72498
|
-
*
|
|
72548
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
72549
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
72550
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
72499
72551
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
72500
|
-
* `faceCrop`/`plateCrop
|
|
72552
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
72553
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
72554
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
72501
72555
|
*
|
|
72502
72556
|
* ## `base64` is TRANSITIONAL and is going away
|
|
72503
72557
|
*
|
|
@@ -72510,7 +72564,19 @@ var MediaFileKindEnum = _enum([
|
|
|
72510
72564
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
72511
72565
|
*/
|
|
72512
72566
|
var MediaFileSchema = object({
|
|
72513
|
-
|
|
72567
|
+
/**
|
|
72568
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
72569
|
+
*
|
|
72570
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
72571
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
72572
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
72573
|
+
* different rows that spell the same number, and a track whose
|
|
72574
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
72575
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
72576
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
72577
|
+
* at all.
|
|
72578
|
+
*/
|
|
72579
|
+
mediaId: number().int(),
|
|
72514
72580
|
kind: MediaFileKindEnum,
|
|
72515
72581
|
sizeBytes: number(),
|
|
72516
72582
|
timestamp: number()
|
|
@@ -72618,7 +72684,7 @@ var RetrainTrackSchema = object({
|
|
|
72618
72684
|
});
|
|
72619
72685
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
72620
72686
|
var RetrainFrameCandidateSchema = object({
|
|
72621
|
-
|
|
72687
|
+
mediaId: number().int(),
|
|
72622
72688
|
kind: MediaFileKindEnum,
|
|
72623
72689
|
timestamp: number(),
|
|
72624
72690
|
sizeBytes: number().int(),
|
|
@@ -72632,7 +72698,7 @@ var RetrainFrameSchema = object({
|
|
|
72632
72698
|
deviceId: number(),
|
|
72633
72699
|
trackId: string(),
|
|
72634
72700
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
72635
|
-
|
|
72701
|
+
sourceMediaId: number().int(),
|
|
72636
72702
|
sourceKind: MediaFileKindEnum,
|
|
72637
72703
|
sizeBytes: number().int(),
|
|
72638
72704
|
width: number().int(),
|
|
@@ -72648,7 +72714,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
72648
72714
|
var RetrainFrameSelectionSchema = object({
|
|
72649
72715
|
copied: array(RetrainFrameSchema).readonly(),
|
|
72650
72716
|
refused: array(object({
|
|
72651
|
-
|
|
72717
|
+
sourceMediaId: number().int(),
|
|
72652
72718
|
reason: RetrainCopyRefusalSchema
|
|
72653
72719
|
})).readonly()
|
|
72654
72720
|
});
|
|
@@ -72656,7 +72722,7 @@ var RetrainFrameListSchema = object({
|
|
|
72656
72722
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
72657
72723
|
copies: array(RetrainFrameSchema).readonly(),
|
|
72658
72724
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
72659
|
-
|
|
72725
|
+
autoPickMediaId: number().int().optional()
|
|
72660
72726
|
});
|
|
72661
72727
|
/** What the operator asked the assist to look for. */
|
|
72662
72728
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -72751,9 +72817,11 @@ var RecentTracksQueryInput = object({
|
|
|
72751
72817
|
});
|
|
72752
72818
|
/**
|
|
72753
72819
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
72754
|
-
* `
|
|
72755
|
-
* served by the event-media plane
|
|
72756
|
-
* member visible has been materialised
|
|
72820
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
72821
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
72822
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
72823
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
72824
|
+
* row once event ids became per-table rowids).
|
|
72757
72825
|
*/
|
|
72758
72826
|
var SummarySchema = object({
|
|
72759
72827
|
id: string(),
|
|
@@ -72762,19 +72830,115 @@ var SummarySchema = object({
|
|
|
72762
72830
|
lastActiveAt: number(),
|
|
72763
72831
|
sealedAt: number().nullable(),
|
|
72764
72832
|
memberCount: number().int().nonnegative(),
|
|
72765
|
-
|
|
72833
|
+
groupShotMediaId: number().int().nullable()
|
|
72766
72834
|
});
|
|
72767
72835
|
var SummariesQueryInput = object({
|
|
72768
72836
|
deviceIds: array(number()).min(1),
|
|
72769
72837
|
since: number().optional(),
|
|
72770
72838
|
until: number().optional(),
|
|
72771
|
-
limit: number().int().min(1).max(200).default(50)
|
|
72839
|
+
limit: number().int().min(1).max(200).default(50),
|
|
72840
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
72841
|
+
* meaning of "dog" on every summary surface. */
|
|
72842
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
72772
72843
|
});
|
|
72773
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
72774
72844
|
var SummaryDetailSchema = object({
|
|
72775
72845
|
summary: SummarySchema,
|
|
72776
|
-
/**
|
|
72777
|
-
|
|
72846
|
+
/** Members in absorption order, oldest join first. */
|
|
72847
|
+
members: array(object({
|
|
72848
|
+
trackId: string(),
|
|
72849
|
+
/**
|
|
72850
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
72851
|
+
* and the track no longer exists to fill it.
|
|
72852
|
+
*
|
|
72853
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
72854
|
+
* class afterwards, and a group's composition is the history of who came
|
|
72855
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
72856
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
72857
|
+
* drift from the members it claims to describe.
|
|
72858
|
+
*/
|
|
72859
|
+
className: string().nullable(),
|
|
72860
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
72861
|
+
role: _enum([
|
|
72862
|
+
"primary",
|
|
72863
|
+
"sibling",
|
|
72864
|
+
"child"
|
|
72865
|
+
]).nullable(),
|
|
72866
|
+
joinedAt: number(),
|
|
72867
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
72868
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
72869
|
+
label: string().optional(),
|
|
72870
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
72871
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
72872
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
72873
|
+
subLabel: string().optional()
|
|
72874
|
+
})).readonly()
|
|
72875
|
+
});
|
|
72876
|
+
/**
|
|
72877
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
72878
|
+
*
|
|
72879
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
72880
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
72881
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
72882
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
72883
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
72884
|
+
* draw two hundred badges.
|
|
72885
|
+
*/
|
|
72886
|
+
var SummaryListItemSchema = object({
|
|
72887
|
+
summary: SummarySchema,
|
|
72888
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
72889
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
72890
|
+
classes: array(object({
|
|
72891
|
+
className: string().nullable(),
|
|
72892
|
+
count: number().int().positive()
|
|
72893
|
+
})).readonly()
|
|
72894
|
+
});
|
|
72895
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
72896
|
+
/**
|
|
72897
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
72898
|
+
*
|
|
72899
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
72900
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
72901
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
72902
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
72903
|
+
* "newest" means, on one screen.
|
|
72904
|
+
*/
|
|
72905
|
+
var RecentSummariesQueryInput = object({
|
|
72906
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
72907
|
+
deviceIds: array(number()),
|
|
72908
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
72909
|
+
since: number().optional(),
|
|
72910
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
72911
|
+
until: number().optional(),
|
|
72912
|
+
limit: number().int().min(1).max(500).default(100),
|
|
72913
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
72914
|
+
cursor: string().optional(),
|
|
72915
|
+
/**
|
|
72916
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
72917
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
72918
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
72919
|
+
* make the operator's one filter component produce two shapes.
|
|
72920
|
+
*
|
|
72921
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
72922
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
72923
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
72924
|
+
* about its primary.
|
|
72925
|
+
*
|
|
72926
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
72927
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
72928
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
72929
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
72930
|
+
* that read only the class would answer "animal" and never "dog".
|
|
72931
|
+
*
|
|
72932
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
72933
|
+
*/
|
|
72934
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
72935
|
+
});
|
|
72936
|
+
var RecentSummariesPageSchema = object({
|
|
72937
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
72938
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
72939
|
+
* whichever feed drew it. */
|
|
72940
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
72941
|
+
nextCursor: string().nullable()
|
|
72778
72942
|
});
|
|
72779
72943
|
var RecentTracksPageSchema = object({
|
|
72780
72944
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -73188,7 +73352,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
73188
73352
|
classes: array(string()).optional(),
|
|
73189
73353
|
/** See {@link ExcludeSourcesDoc}. */
|
|
73190
73354
|
excludeSources: array(TrackSourceSchema).optional()
|
|
73191
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
73355
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
73192
73356
|
kind: "mutation",
|
|
73193
73357
|
auth: "admin"
|
|
73194
73358
|
}), 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({
|
|
@@ -73316,7 +73480,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
73316
73480
|
}), method(object({
|
|
73317
73481
|
deviceId: number(),
|
|
73318
73482
|
trackId: string(),
|
|
73319
|
-
|
|
73483
|
+
mediaIds: array(number().int()).min(1)
|
|
73320
73484
|
}), RetrainFrameSelectionSchema, {
|
|
73321
73485
|
kind: "mutation",
|
|
73322
73486
|
auth: "admin"
|
|
@@ -73384,7 +73548,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
73384
73548
|
kind: "query",
|
|
73385
73549
|
auth: "admin"
|
|
73386
73550
|
}), method(object({
|
|
73387
|
-
|
|
73551
|
+
/** Which of the three event tables owns the row. */
|
|
73552
|
+
ownerType: EventOwnerTypeSchema,
|
|
73553
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
73554
|
+
eventId: number().int(),
|
|
73388
73555
|
kind: MediaFileKindEnum.optional(),
|
|
73389
73556
|
deviceId: number()
|
|
73390
73557
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -73395,7 +73562,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
73395
73562
|
trackId: string(),
|
|
73396
73563
|
deviceId: number()
|
|
73397
73564
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
73398
|
-
|
|
73565
|
+
ownerType: EventOwnerTypeSchema,
|
|
73566
|
+
eventId: number().int(),
|
|
73399
73567
|
deviceId: number()
|
|
73400
73568
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
73401
73569
|
kind: "mutation",
|
|
@@ -78613,8 +78781,8 @@ var IdentitySchema = object({
|
|
|
78613
78781
|
id: string(),
|
|
78614
78782
|
name: string(),
|
|
78615
78783
|
sampleCount: number().int().nonnegative(),
|
|
78616
|
-
|
|
78617
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
78784
|
+
coverMediaId: number().int().optional(),
|
|
78785
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
78618
78786
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
78619
78787
|
coverBase64: string().optional()
|
|
78620
78788
|
});
|
|
@@ -78640,8 +78808,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
78640
78808
|
enrolledAt: number().int(),
|
|
78641
78809
|
deviceId: number().int().optional(),
|
|
78642
78810
|
source: _enum(["detected", "photo"]),
|
|
78643
|
-
/** The enrolled crop's media
|
|
78644
|
-
|
|
78811
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
78812
|
+
mediaId: number().int().optional(),
|
|
78645
78813
|
/**
|
|
78646
78814
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
78647
78815
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -78710,15 +78878,15 @@ var FaceInfoSchema = object({
|
|
|
78710
78878
|
*/
|
|
78711
78879
|
cropUrl: string().optional(),
|
|
78712
78880
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
78713
|
-
* view draw the box over the native `
|
|
78881
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
78714
78882
|
* legacy rows written before design B. */
|
|
78715
78883
|
faceBbox: BoundingBoxSchema.optional(),
|
|
78716
78884
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
78717
78885
|
* Fetch the native JPEG via the event-media data-plane
|
|
78718
|
-
* (`/addon/<addonId>/event-media/<
|
|
78886
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
78719
78887
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
78720
78888
|
* back to the inline `base64` face crop. */
|
|
78721
|
-
|
|
78889
|
+
keyFrameMediaId: number().int().optional(),
|
|
78722
78890
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
78723
78891
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
78724
78892
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -78787,11 +78955,14 @@ var FaceClusterSchema = object({
|
|
|
78787
78955
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
78788
78956
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
78789
78957
|
*
|
|
78790
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
78791
|
-
* media
|
|
78958
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
78959
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
78960
|
+
* access decision.
|
|
78792
78961
|
*/
|
|
78793
78962
|
var MediaFileLiteSchema$1 = object({
|
|
78794
|
-
|
|
78963
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
78964
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
78965
|
+
mediaId: number().int(),
|
|
78795
78966
|
kind: string(),
|
|
78796
78967
|
url: string(),
|
|
78797
78968
|
sizeBytes: number(),
|
|
@@ -78808,7 +78979,7 @@ method(object({
|
|
|
78808
78979
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
78809
78980
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
78810
78981
|
*
|
|
78811
|
-
* Nothing loses its avatar: `
|
|
78982
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
78812
78983
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
78813
78984
|
*
|
|
78814
78985
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -82319,8 +82490,8 @@ var VehicleSchema = object({
|
|
|
82319
82490
|
id: string(),
|
|
82320
82491
|
name: string(),
|
|
82321
82492
|
sampleCount: number().int().nonnegative(),
|
|
82322
|
-
|
|
82323
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
82493
|
+
coverMediaId: number().int().optional(),
|
|
82494
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
82324
82495
|
coverBase64: string().optional()
|
|
82325
82496
|
});
|
|
82326
82497
|
var VehicleSampleInfoSchema = object({
|
|
@@ -82353,7 +82524,7 @@ var PlateInfoSchema = object({
|
|
|
82353
82524
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
82354
82525
|
plateBbox: BoundingBoxSchema.optional(),
|
|
82355
82526
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
82356
|
-
|
|
82527
|
+
keyFrameMediaId: number().int().optional(),
|
|
82357
82528
|
base64: string().optional(),
|
|
82358
82529
|
/**
|
|
82359
82530
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -82374,11 +82545,14 @@ var PlateInfoSchema = object({
|
|
|
82374
82545
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
82375
82546
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
82376
82547
|
*
|
|
82377
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
82378
|
-
* media
|
|
82548
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
82549
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
82550
|
+
* access decision.
|
|
82379
82551
|
*/
|
|
82380
82552
|
var MediaFileLiteSchema = object({
|
|
82381
|
-
|
|
82553
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
82554
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
82555
|
+
mediaId: number().int(),
|
|
82382
82556
|
kind: string(),
|
|
82383
82557
|
url: string(),
|
|
82384
82558
|
sizeBytes: number(),
|
|
@@ -82437,7 +82611,7 @@ method(object({
|
|
|
82437
82611
|
}), method(object({
|
|
82438
82612
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
82439
82613
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
82440
|
-
* option; `
|
|
82614
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
82441
82615
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
82442
82616
|
* resolves to `false` and is exactly the intended default. */
|
|
82443
82617
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -84006,7 +84180,14 @@ var SceneReferenceSchema = object({
|
|
|
84006
84180
|
modelId: string(),
|
|
84007
84181
|
condition: SceneConditionSchema,
|
|
84008
84182
|
capturedAt: number(),
|
|
84009
|
-
|
|
84183
|
+
/**
|
|
84184
|
+
* The reference thumbnail's media ROW id (D482).
|
|
84185
|
+
*
|
|
84186
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
84187
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
84188
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
84189
|
+
*/
|
|
84190
|
+
thumbnailMediaId: number().int().optional(),
|
|
84010
84191
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
84011
84192
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
84012
84193
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -85097,7 +85278,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
85097
85278
|
* disarmed the channels it did not mention would make the Levels page and
|
|
85098
85279
|
* the Diagnostics page fight over the same value.
|
|
85099
85280
|
*/
|
|
85100
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
85281
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
85282
|
+
/**
|
|
85283
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
85284
|
+
* retention actually deleted.
|
|
85285
|
+
*
|
|
85286
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
85287
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
85288
|
+
* this system is configured through this one document, and a retention audit
|
|
85289
|
+
* configured somewhere else is a second place to look when the question is
|
|
85290
|
+
* "what happened to my data".
|
|
85291
|
+
*
|
|
85292
|
+
* That placement has a cost worth stating: this document ships in the
|
|
85293
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
85294
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
85295
|
+
*
|
|
85296
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
85297
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
85298
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
85299
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
85300
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
85301
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
85302
|
+
*/
|
|
85303
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
85101
85304
|
});
|
|
85102
85305
|
/**
|
|
85103
85306
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -85170,6 +85373,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
85170
85373
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
85171
85374
|
/** The channels ARMED right now, each with its deadline. */
|
|
85172
85375
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
85376
|
+
/**
|
|
85377
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
85378
|
+
*
|
|
85379
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
85380
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
85381
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
85382
|
+
*/
|
|
85383
|
+
opsLogRetentionDays: number().int().min(0),
|
|
85173
85384
|
persisted: boolean()
|
|
85174
85385
|
});
|
|
85175
85386
|
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(), {
|
|
@@ -85990,7 +86201,7 @@ var StationaryObjectSchema = object({
|
|
|
85990
86201
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
85991
86202
|
label: string().optional(),
|
|
85992
86203
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
85993
|
-
|
|
86204
|
+
keyFrameMediaId: number().int().optional()
|
|
85994
86205
|
});
|
|
85995
86206
|
var CameraOccupancySnapshotSchema = object({
|
|
85996
86207
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -88728,6 +88939,12 @@ Object.freeze({
|
|
|
88728
88939
|
addonId: null,
|
|
88729
88940
|
access: "create"
|
|
88730
88941
|
},
|
|
88942
|
+
"dataStoreProvider.upsert": {
|
|
88943
|
+
capName: "data-store-provider",
|
|
88944
|
+
capScope: "system",
|
|
88945
|
+
addonId: null,
|
|
88946
|
+
access: "create"
|
|
88947
|
+
},
|
|
88731
88948
|
"dayNight.getOptions": {
|
|
88732
88949
|
capName: "day-night",
|
|
88733
88950
|
capScope: "device",
|
|
@@ -91164,6 +91381,12 @@ Object.freeze({
|
|
|
91164
91381
|
addonId: null,
|
|
91165
91382
|
access: "view"
|
|
91166
91383
|
},
|
|
91384
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
91385
|
+
capName: "pipeline-analytics",
|
|
91386
|
+
capScope: "device",
|
|
91387
|
+
addonId: null,
|
|
91388
|
+
access: "view"
|
|
91389
|
+
},
|
|
91167
91390
|
"pipelineAnalytics.listRecentTracks": {
|
|
91168
91391
|
capName: "pipeline-analytics",
|
|
91169
91392
|
capScope: "device",
|
|
@@ -92592,6 +92815,12 @@ Object.freeze({
|
|
|
92592
92815
|
addonId: null,
|
|
92593
92816
|
access: "create"
|
|
92594
92817
|
},
|
|
92818
|
+
"settingsStore.upsert": {
|
|
92819
|
+
capName: "settings-store",
|
|
92820
|
+
capScope: "system",
|
|
92821
|
+
addonId: null,
|
|
92822
|
+
access: "create"
|
|
92823
|
+
},
|
|
92595
92824
|
"smtpProvider.getStatus": {
|
|
92596
92825
|
capName: "smtp-provider",
|
|
92597
92826
|
capScope: "system",
|
|
@@ -94985,6 +95214,11 @@ Object.freeze({
|
|
|
94985
95214
|
form: "single",
|
|
94986
95215
|
optional: true
|
|
94987
95216
|
}],
|
|
95217
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
95218
|
+
name: "deviceIds",
|
|
95219
|
+
form: "array",
|
|
95220
|
+
optional: false
|
|
95221
|
+
}],
|
|
94988
95222
|
"pipelineAnalytics.listRecentTracks": [{
|
|
94989
95223
|
name: "deviceIds",
|
|
94990
95224
|
form: "array",
|
package/dist/addon.mjs
CHANGED
|
@@ -52669,7 +52669,7 @@ var DreameCameraStream = class extends TypedEmitter {
|
|
|
52669
52669
|
}
|
|
52670
52670
|
};
|
|
52671
52671
|
//#endregion
|
|
52672
|
-
//#region ../types/dist/event-category-
|
|
52672
|
+
//#region ../types/dist/event-category-ZyX6jcse.mjs
|
|
52673
52673
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
52674
52674
|
EventCategory["SystemBoot"] = "system.boot";
|
|
52675
52675
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -53230,7 +53230,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
53230
53230
|
* a package zone — a newly-appeared stationary object of a package class
|
|
53231
53231
|
* that cleared the class / zone / dwell / size gates. Payload:
|
|
53232
53232
|
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
53233
|
-
* entryId, className, zoneIds,
|
|
53233
|
+
* entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
|
|
53234
53234
|
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
53235
53235
|
* this bus topic drives notifier rules + live UI. See
|
|
53236
53236
|
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
@@ -58016,7 +58016,7 @@ var ZodIssueCode = {
|
|
|
58016
58016
|
var ZodFirstPartyTypeKind;
|
|
58017
58017
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
58018
58018
|
//#endregion
|
|
58019
|
-
//#region ../types/dist/sleep-
|
|
58019
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
58020
58020
|
/**
|
|
58021
58021
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
58022
58022
|
* window to float samples (D455).
|
|
@@ -59983,13 +59983,30 @@ new Set([
|
|
|
59983
59983
|
"scene",
|
|
59984
59984
|
"motion",
|
|
59985
59985
|
"object",
|
|
59986
|
-
"audio"
|
|
59986
|
+
"audio",
|
|
59987
|
+
"mosaic"
|
|
59987
59988
|
]);
|
|
59988
|
-
|
|
59989
|
+
/**
|
|
59990
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
59991
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
59992
|
+
* does not re-spell the list and drift from it.
|
|
59993
|
+
*/
|
|
59994
|
+
var EVENT_OWNER_TYPES = [
|
|
59989
59995
|
"motion",
|
|
59990
59996
|
"object",
|
|
59991
59997
|
"audio"
|
|
59992
|
-
]
|
|
59998
|
+
];
|
|
59999
|
+
/**
|
|
60000
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
60001
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
60002
|
+
* `(table, id)`).
|
|
60003
|
+
*
|
|
60004
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
60005
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
60006
|
+
* nothing failing until a caller asked.
|
|
60007
|
+
*/
|
|
60008
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
60009
|
+
new Set(EVENT_OWNER_TYPES);
|
|
59993
60010
|
var EncodeProfileSchema = object({
|
|
59994
60011
|
video: object({
|
|
59995
60012
|
codec: _enum([
|
|
@@ -60028,7 +60045,23 @@ var EncodeProfileSchema = object({
|
|
|
60028
60045
|
"zerolatency",
|
|
60029
60046
|
"film",
|
|
60030
60047
|
"animation"
|
|
60031
|
-
]).optional()
|
|
60048
|
+
]).optional(),
|
|
60049
|
+
/**
|
|
60050
|
+
* ONE slice per access unit.
|
|
60051
|
+
*
|
|
60052
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
60053
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
60054
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
60055
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
60056
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
60057
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
60058
|
+
*
|
|
60059
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
60060
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
60061
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
60062
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
60063
|
+
*/
|
|
60064
|
+
singleSlicePerFrame: boolean().optional()
|
|
60032
60065
|
}),
|
|
60033
60066
|
audio: union([literal("passthrough"), object({
|
|
60034
60067
|
codec: _enum([
|
|
@@ -60078,7 +60111,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
60078
60111
|
audio: "passthrough"
|
|
60079
60112
|
};
|
|
60080
60113
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
60081
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
60114
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
60082
60115
|
/**
|
|
60083
60116
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
60084
60117
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -65188,6 +65221,16 @@ method(object({
|
|
|
65188
65221
|
filter: QueryFilterSchema.optional(),
|
|
65189
65222
|
columns: array(string()).readonly().optional()
|
|
65190
65223
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
65224
|
+
namespace: string().optional(),
|
|
65225
|
+
collection: string(),
|
|
65226
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
65227
|
+
* index on the collection. Never empty. */
|
|
65228
|
+
conflict: array(string()).readonly(),
|
|
65229
|
+
record: BulkRecordSchema
|
|
65230
|
+
}), object({
|
|
65231
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
65232
|
+
* row's own id on an update. */
|
|
65233
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
65191
65234
|
namespace: string().optional(),
|
|
65192
65235
|
collection: string(),
|
|
65193
65236
|
record: object({
|
|
@@ -65322,6 +65365,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
65322
65365
|
id: union([string(), number()]) }), {
|
|
65323
65366
|
kind: "mutation",
|
|
65324
65367
|
auth: "admin"
|
|
65368
|
+
}), method(object({
|
|
65369
|
+
namespace: string().optional(),
|
|
65370
|
+
collection: string(),
|
|
65371
|
+
conflict: array(string()).readonly(),
|
|
65372
|
+
record: BulkRecordSchema
|
|
65373
|
+
}), object({ id: union([string(), number()]) }), {
|
|
65374
|
+
kind: "mutation",
|
|
65375
|
+
auth: "admin"
|
|
65325
65376
|
}), method(object({
|
|
65326
65377
|
namespace: string().optional(),
|
|
65327
65378
|
collection: string(),
|
|
@@ -71821,8 +71872,8 @@ var TrackPositionSchema = object({
|
|
|
71821
71872
|
var TrackSnapshotSchema = object({
|
|
71822
71873
|
timestamp: number(),
|
|
71823
71874
|
position: TrackPositionSchema,
|
|
71824
|
-
/**
|
|
71825
|
-
|
|
71875
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
71876
|
+
mediaId: number().int()
|
|
71826
71877
|
});
|
|
71827
71878
|
/**
|
|
71828
71879
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -72426,14 +72477,14 @@ var ObjectEventSchema = object({
|
|
|
72426
72477
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
72427
72478
|
frameWidth: number().optional(),
|
|
72428
72479
|
frameHeight: number().optional(),
|
|
72429
|
-
/**
|
|
72430
|
-
|
|
72431
|
-
/** Design B:
|
|
72480
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
72481
|
+
mediaId: number().int().optional(),
|
|
72482
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
72432
72483
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
72433
|
-
* (`/addon/<addonId>/event-media/<
|
|
72484
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
72434
72485
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
72435
|
-
* sources — consumers fall back to `
|
|
72436
|
-
|
|
72486
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
72487
|
+
keyFrameMediaId: number().int().optional(),
|
|
72437
72488
|
/** Populated by B5 (recording playback URL for this event). */
|
|
72438
72489
|
mediaUrl: string().optional(),
|
|
72439
72490
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -72483,7 +72534,7 @@ var MediaFileKindEnum = _enum([
|
|
|
72483
72534
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
72484
72535
|
*
|
|
72485
72536
|
* `url` points at the `event-media` data plane
|
|
72486
|
-
* (`/addon/<addonId>/event-media/<
|
|
72537
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
72487
72538
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
72488
72539
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
72489
72540
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -72491,10 +72542,13 @@ var MediaFileKindEnum = _enum([
|
|
|
72491
72542
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
72492
72543
|
* (per-device scoping).
|
|
72493
72544
|
*
|
|
72494
|
-
* The URL is built from the row's
|
|
72495
|
-
*
|
|
72545
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
72546
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
72547
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
72496
72548
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
72497
|
-
* `faceCrop`/`plateCrop
|
|
72549
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
72550
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
72551
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
72498
72552
|
*
|
|
72499
72553
|
* ## `base64` is TRANSITIONAL and is going away
|
|
72500
72554
|
*
|
|
@@ -72507,7 +72561,19 @@ var MediaFileKindEnum = _enum([
|
|
|
72507
72561
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
72508
72562
|
*/
|
|
72509
72563
|
var MediaFileSchema = object({
|
|
72510
|
-
|
|
72564
|
+
/**
|
|
72565
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
72566
|
+
*
|
|
72567
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
72568
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
72569
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
72570
|
+
* different rows that spell the same number, and a track whose
|
|
72571
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
72572
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
72573
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
72574
|
+
* at all.
|
|
72575
|
+
*/
|
|
72576
|
+
mediaId: number().int(),
|
|
72511
72577
|
kind: MediaFileKindEnum,
|
|
72512
72578
|
sizeBytes: number(),
|
|
72513
72579
|
timestamp: number()
|
|
@@ -72615,7 +72681,7 @@ var RetrainTrackSchema = object({
|
|
|
72615
72681
|
});
|
|
72616
72682
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
72617
72683
|
var RetrainFrameCandidateSchema = object({
|
|
72618
|
-
|
|
72684
|
+
mediaId: number().int(),
|
|
72619
72685
|
kind: MediaFileKindEnum,
|
|
72620
72686
|
timestamp: number(),
|
|
72621
72687
|
sizeBytes: number().int(),
|
|
@@ -72629,7 +72695,7 @@ var RetrainFrameSchema = object({
|
|
|
72629
72695
|
deviceId: number(),
|
|
72630
72696
|
trackId: string(),
|
|
72631
72697
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
72632
|
-
|
|
72698
|
+
sourceMediaId: number().int(),
|
|
72633
72699
|
sourceKind: MediaFileKindEnum,
|
|
72634
72700
|
sizeBytes: number().int(),
|
|
72635
72701
|
width: number().int(),
|
|
@@ -72645,7 +72711,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
72645
72711
|
var RetrainFrameSelectionSchema = object({
|
|
72646
72712
|
copied: array(RetrainFrameSchema).readonly(),
|
|
72647
72713
|
refused: array(object({
|
|
72648
|
-
|
|
72714
|
+
sourceMediaId: number().int(),
|
|
72649
72715
|
reason: RetrainCopyRefusalSchema
|
|
72650
72716
|
})).readonly()
|
|
72651
72717
|
});
|
|
@@ -72653,7 +72719,7 @@ var RetrainFrameListSchema = object({
|
|
|
72653
72719
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
72654
72720
|
copies: array(RetrainFrameSchema).readonly(),
|
|
72655
72721
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
72656
|
-
|
|
72722
|
+
autoPickMediaId: number().int().optional()
|
|
72657
72723
|
});
|
|
72658
72724
|
/** What the operator asked the assist to look for. */
|
|
72659
72725
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -72748,9 +72814,11 @@ var RecentTracksQueryInput = object({
|
|
|
72748
72814
|
});
|
|
72749
72815
|
/**
|
|
72750
72816
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
72751
|
-
* `
|
|
72752
|
-
* served by the event-media plane
|
|
72753
|
-
* member visible has been materialised
|
|
72817
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
72818
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
72819
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
72820
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
72821
|
+
* row once event ids became per-table rowids).
|
|
72754
72822
|
*/
|
|
72755
72823
|
var SummarySchema = object({
|
|
72756
72824
|
id: string(),
|
|
@@ -72759,19 +72827,115 @@ var SummarySchema = object({
|
|
|
72759
72827
|
lastActiveAt: number(),
|
|
72760
72828
|
sealedAt: number().nullable(),
|
|
72761
72829
|
memberCount: number().int().nonnegative(),
|
|
72762
|
-
|
|
72830
|
+
groupShotMediaId: number().int().nullable()
|
|
72763
72831
|
});
|
|
72764
72832
|
var SummariesQueryInput = object({
|
|
72765
72833
|
deviceIds: array(number()).min(1),
|
|
72766
72834
|
since: number().optional(),
|
|
72767
72835
|
until: number().optional(),
|
|
72768
|
-
limit: number().int().min(1).max(200).default(50)
|
|
72836
|
+
limit: number().int().min(1).max(200).default(50),
|
|
72837
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
72838
|
+
* meaning of "dog" on every summary surface. */
|
|
72839
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
72769
72840
|
});
|
|
72770
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
72771
72841
|
var SummaryDetailSchema = object({
|
|
72772
72842
|
summary: SummarySchema,
|
|
72773
|
-
/**
|
|
72774
|
-
|
|
72843
|
+
/** Members in absorption order, oldest join first. */
|
|
72844
|
+
members: array(object({
|
|
72845
|
+
trackId: string(),
|
|
72846
|
+
/**
|
|
72847
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
72848
|
+
* and the track no longer exists to fill it.
|
|
72849
|
+
*
|
|
72850
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
72851
|
+
* class afterwards, and a group's composition is the history of who came
|
|
72852
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
72853
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
72854
|
+
* drift from the members it claims to describe.
|
|
72855
|
+
*/
|
|
72856
|
+
className: string().nullable(),
|
|
72857
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
72858
|
+
role: _enum([
|
|
72859
|
+
"primary",
|
|
72860
|
+
"sibling",
|
|
72861
|
+
"child"
|
|
72862
|
+
]).nullable(),
|
|
72863
|
+
joinedAt: number(),
|
|
72864
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
72865
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
72866
|
+
label: string().optional(),
|
|
72867
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
72868
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
72869
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
72870
|
+
subLabel: string().optional()
|
|
72871
|
+
})).readonly()
|
|
72872
|
+
});
|
|
72873
|
+
/**
|
|
72874
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
72875
|
+
*
|
|
72876
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
72877
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
72878
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
72879
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
72880
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
72881
|
+
* draw two hundred badges.
|
|
72882
|
+
*/
|
|
72883
|
+
var SummaryListItemSchema = object({
|
|
72884
|
+
summary: SummarySchema,
|
|
72885
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
72886
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
72887
|
+
classes: array(object({
|
|
72888
|
+
className: string().nullable(),
|
|
72889
|
+
count: number().int().positive()
|
|
72890
|
+
})).readonly()
|
|
72891
|
+
});
|
|
72892
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
72893
|
+
/**
|
|
72894
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
72895
|
+
*
|
|
72896
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
72897
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
72898
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
72899
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
72900
|
+
* "newest" means, on one screen.
|
|
72901
|
+
*/
|
|
72902
|
+
var RecentSummariesQueryInput = object({
|
|
72903
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
72904
|
+
deviceIds: array(number()),
|
|
72905
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
72906
|
+
since: number().optional(),
|
|
72907
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
72908
|
+
until: number().optional(),
|
|
72909
|
+
limit: number().int().min(1).max(500).default(100),
|
|
72910
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
72911
|
+
cursor: string().optional(),
|
|
72912
|
+
/**
|
|
72913
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
72914
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
72915
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
72916
|
+
* make the operator's one filter component produce two shapes.
|
|
72917
|
+
*
|
|
72918
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
72919
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
72920
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
72921
|
+
* about its primary.
|
|
72922
|
+
*
|
|
72923
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
72924
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
72925
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
72926
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
72927
|
+
* that read only the class would answer "animal" and never "dog".
|
|
72928
|
+
*
|
|
72929
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
72930
|
+
*/
|
|
72931
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
72932
|
+
});
|
|
72933
|
+
var RecentSummariesPageSchema = object({
|
|
72934
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
72935
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
72936
|
+
* whichever feed drew it. */
|
|
72937
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
72938
|
+
nextCursor: string().nullable()
|
|
72775
72939
|
});
|
|
72776
72940
|
var RecentTracksPageSchema = object({
|
|
72777
72941
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -73185,7 +73349,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
73185
73349
|
classes: array(string()).optional(),
|
|
73186
73350
|
/** See {@link ExcludeSourcesDoc}. */
|
|
73187
73351
|
excludeSources: array(TrackSourceSchema).optional()
|
|
73188
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
73352
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
73189
73353
|
kind: "mutation",
|
|
73190
73354
|
auth: "admin"
|
|
73191
73355
|
}), 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({
|
|
@@ -73313,7 +73477,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
73313
73477
|
}), method(object({
|
|
73314
73478
|
deviceId: number(),
|
|
73315
73479
|
trackId: string(),
|
|
73316
|
-
|
|
73480
|
+
mediaIds: array(number().int()).min(1)
|
|
73317
73481
|
}), RetrainFrameSelectionSchema, {
|
|
73318
73482
|
kind: "mutation",
|
|
73319
73483
|
auth: "admin"
|
|
@@ -73381,7 +73545,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
73381
73545
|
kind: "query",
|
|
73382
73546
|
auth: "admin"
|
|
73383
73547
|
}), method(object({
|
|
73384
|
-
|
|
73548
|
+
/** Which of the three event tables owns the row. */
|
|
73549
|
+
ownerType: EventOwnerTypeSchema,
|
|
73550
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
73551
|
+
eventId: number().int(),
|
|
73385
73552
|
kind: MediaFileKindEnum.optional(),
|
|
73386
73553
|
deviceId: number()
|
|
73387
73554
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -73392,7 +73559,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
73392
73559
|
trackId: string(),
|
|
73393
73560
|
deviceId: number()
|
|
73394
73561
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
73395
|
-
|
|
73562
|
+
ownerType: EventOwnerTypeSchema,
|
|
73563
|
+
eventId: number().int(),
|
|
73396
73564
|
deviceId: number()
|
|
73397
73565
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
73398
73566
|
kind: "mutation",
|
|
@@ -78610,8 +78778,8 @@ var IdentitySchema = object({
|
|
|
78610
78778
|
id: string(),
|
|
78611
78779
|
name: string(),
|
|
78612
78780
|
sampleCount: number().int().nonnegative(),
|
|
78613
|
-
|
|
78614
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
78781
|
+
coverMediaId: number().int().optional(),
|
|
78782
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
78615
78783
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
78616
78784
|
coverBase64: string().optional()
|
|
78617
78785
|
});
|
|
@@ -78637,8 +78805,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
78637
78805
|
enrolledAt: number().int(),
|
|
78638
78806
|
deviceId: number().int().optional(),
|
|
78639
78807
|
source: _enum(["detected", "photo"]),
|
|
78640
|
-
/** The enrolled crop's media
|
|
78641
|
-
|
|
78808
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
78809
|
+
mediaId: number().int().optional(),
|
|
78642
78810
|
/**
|
|
78643
78811
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
78644
78812
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -78707,15 +78875,15 @@ var FaceInfoSchema = object({
|
|
|
78707
78875
|
*/
|
|
78708
78876
|
cropUrl: string().optional(),
|
|
78709
78877
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
78710
|
-
* view draw the box over the native `
|
|
78878
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
78711
78879
|
* legacy rows written before design B. */
|
|
78712
78880
|
faceBbox: BoundingBoxSchema.optional(),
|
|
78713
78881
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
78714
78882
|
* Fetch the native JPEG via the event-media data-plane
|
|
78715
|
-
* (`/addon/<addonId>/event-media/<
|
|
78883
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
78716
78884
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
78717
78885
|
* back to the inline `base64` face crop. */
|
|
78718
|
-
|
|
78886
|
+
keyFrameMediaId: number().int().optional(),
|
|
78719
78887
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
78720
78888
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
78721
78889
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -78784,11 +78952,14 @@ var FaceClusterSchema = object({
|
|
|
78784
78952
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
78785
78953
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
78786
78954
|
*
|
|
78787
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
78788
|
-
* media
|
|
78955
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
78956
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
78957
|
+
* access decision.
|
|
78789
78958
|
*/
|
|
78790
78959
|
var MediaFileLiteSchema$1 = object({
|
|
78791
|
-
|
|
78960
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
78961
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
78962
|
+
mediaId: number().int(),
|
|
78792
78963
|
kind: string(),
|
|
78793
78964
|
url: string(),
|
|
78794
78965
|
sizeBytes: number(),
|
|
@@ -78805,7 +78976,7 @@ method(object({
|
|
|
78805
78976
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
78806
78977
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
78807
78978
|
*
|
|
78808
|
-
* Nothing loses its avatar: `
|
|
78979
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
78809
78980
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
78810
78981
|
*
|
|
78811
78982
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -82316,8 +82487,8 @@ var VehicleSchema = object({
|
|
|
82316
82487
|
id: string(),
|
|
82317
82488
|
name: string(),
|
|
82318
82489
|
sampleCount: number().int().nonnegative(),
|
|
82319
|
-
|
|
82320
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
82490
|
+
coverMediaId: number().int().optional(),
|
|
82491
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
82321
82492
|
coverBase64: string().optional()
|
|
82322
82493
|
});
|
|
82323
82494
|
var VehicleSampleInfoSchema = object({
|
|
@@ -82350,7 +82521,7 @@ var PlateInfoSchema = object({
|
|
|
82350
82521
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
82351
82522
|
plateBbox: BoundingBoxSchema.optional(),
|
|
82352
82523
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
82353
|
-
|
|
82524
|
+
keyFrameMediaId: number().int().optional(),
|
|
82354
82525
|
base64: string().optional(),
|
|
82355
82526
|
/**
|
|
82356
82527
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -82371,11 +82542,14 @@ var PlateInfoSchema = object({
|
|
|
82371
82542
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
82372
82543
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
82373
82544
|
*
|
|
82374
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
82375
|
-
* media
|
|
82545
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
82546
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
82547
|
+
* access decision.
|
|
82376
82548
|
*/
|
|
82377
82549
|
var MediaFileLiteSchema = object({
|
|
82378
|
-
|
|
82550
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
82551
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
82552
|
+
mediaId: number().int(),
|
|
82379
82553
|
kind: string(),
|
|
82380
82554
|
url: string(),
|
|
82381
82555
|
sizeBytes: number(),
|
|
@@ -82434,7 +82608,7 @@ method(object({
|
|
|
82434
82608
|
}), method(object({
|
|
82435
82609
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
82436
82610
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
82437
|
-
* option; `
|
|
82611
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
82438
82612
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
82439
82613
|
* resolves to `false` and is exactly the intended default. */
|
|
82440
82614
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -84003,7 +84177,14 @@ var SceneReferenceSchema = object({
|
|
|
84003
84177
|
modelId: string(),
|
|
84004
84178
|
condition: SceneConditionSchema,
|
|
84005
84179
|
capturedAt: number(),
|
|
84006
|
-
|
|
84180
|
+
/**
|
|
84181
|
+
* The reference thumbnail's media ROW id (D482).
|
|
84182
|
+
*
|
|
84183
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
84184
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
84185
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
84186
|
+
*/
|
|
84187
|
+
thumbnailMediaId: number().int().optional(),
|
|
84007
84188
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
84008
84189
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
84009
84190
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -85094,7 +85275,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
85094
85275
|
* disarmed the channels it did not mention would make the Levels page and
|
|
85095
85276
|
* the Diagnostics page fight over the same value.
|
|
85096
85277
|
*/
|
|
85097
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
85278
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
85279
|
+
/**
|
|
85280
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
85281
|
+
* retention actually deleted.
|
|
85282
|
+
*
|
|
85283
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
85284
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
85285
|
+
* this system is configured through this one document, and a retention audit
|
|
85286
|
+
* configured somewhere else is a second place to look when the question is
|
|
85287
|
+
* "what happened to my data".
|
|
85288
|
+
*
|
|
85289
|
+
* That placement has a cost worth stating: this document ships in the
|
|
85290
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
85291
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
85292
|
+
*
|
|
85293
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
85294
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
85295
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
85296
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
85297
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
85298
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
85299
|
+
*/
|
|
85300
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
85098
85301
|
});
|
|
85099
85302
|
/**
|
|
85100
85303
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -85167,6 +85370,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
85167
85370
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
85168
85371
|
/** The channels ARMED right now, each with its deadline. */
|
|
85169
85372
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
85373
|
+
/**
|
|
85374
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
85375
|
+
*
|
|
85376
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
85377
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
85378
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
85379
|
+
*/
|
|
85380
|
+
opsLogRetentionDays: number().int().min(0),
|
|
85170
85381
|
persisted: boolean()
|
|
85171
85382
|
});
|
|
85172
85383
|
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(), {
|
|
@@ -85987,7 +86198,7 @@ var StationaryObjectSchema = object({
|
|
|
85987
86198
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
85988
86199
|
label: string().optional(),
|
|
85989
86200
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
85990
|
-
|
|
86201
|
+
keyFrameMediaId: number().int().optional()
|
|
85991
86202
|
});
|
|
85992
86203
|
var CameraOccupancySnapshotSchema = object({
|
|
85993
86204
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -88725,6 +88936,12 @@ Object.freeze({
|
|
|
88725
88936
|
addonId: null,
|
|
88726
88937
|
access: "create"
|
|
88727
88938
|
},
|
|
88939
|
+
"dataStoreProvider.upsert": {
|
|
88940
|
+
capName: "data-store-provider",
|
|
88941
|
+
capScope: "system",
|
|
88942
|
+
addonId: null,
|
|
88943
|
+
access: "create"
|
|
88944
|
+
},
|
|
88728
88945
|
"dayNight.getOptions": {
|
|
88729
88946
|
capName: "day-night",
|
|
88730
88947
|
capScope: "device",
|
|
@@ -91161,6 +91378,12 @@ Object.freeze({
|
|
|
91161
91378
|
addonId: null,
|
|
91162
91379
|
access: "view"
|
|
91163
91380
|
},
|
|
91381
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
91382
|
+
capName: "pipeline-analytics",
|
|
91383
|
+
capScope: "device",
|
|
91384
|
+
addonId: null,
|
|
91385
|
+
access: "view"
|
|
91386
|
+
},
|
|
91164
91387
|
"pipelineAnalytics.listRecentTracks": {
|
|
91165
91388
|
capName: "pipeline-analytics",
|
|
91166
91389
|
capScope: "device",
|
|
@@ -92589,6 +92812,12 @@ Object.freeze({
|
|
|
92589
92812
|
addonId: null,
|
|
92590
92813
|
access: "create"
|
|
92591
92814
|
},
|
|
92815
|
+
"settingsStore.upsert": {
|
|
92816
|
+
capName: "settings-store",
|
|
92817
|
+
capScope: "system",
|
|
92818
|
+
addonId: null,
|
|
92819
|
+
access: "create"
|
|
92820
|
+
},
|
|
92592
92821
|
"smtpProvider.getStatus": {
|
|
92593
92822
|
capName: "smtp-provider",
|
|
92594
92823
|
capScope: "system",
|
|
@@ -94982,6 +95211,11 @@ Object.freeze({
|
|
|
94982
95211
|
form: "single",
|
|
94983
95212
|
optional: true
|
|
94984
95213
|
}],
|
|
95214
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
95215
|
+
name: "deviceIds",
|
|
95216
|
+
form: "array",
|
|
95217
|
+
optional: false
|
|
95218
|
+
}],
|
|
94985
95219
|
"pipelineAnalytics.listRecentTracks": [{
|
|
94986
95220
|
name: "deviceIds",
|
|
94987
95221
|
form: "array",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreame",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.102",
|
|
4
4
|
"description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|