@camstack/addon-export-google 0.1.63 → 0.1.65
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/export-google.addon.js +292 -58
- package/dist/export-google.addon.mjs +292 -58
- package/package.json +1 -1
|
@@ -77,7 +77,7 @@ function createApiDeviceGateway(deps) {
|
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
//#endregion
|
|
80
|
-
//#region ../types/dist/event-category-
|
|
80
|
+
//#region ../types/dist/event-category-ZyX6jcse.mjs
|
|
81
81
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
82
82
|
EventCategory["SystemBoot"] = "system.boot";
|
|
83
83
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -638,7 +638,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
638
638
|
* a package zone — a newly-appeared stationary object of a package class
|
|
639
639
|
* that cleared the class / zone / dwell / size gates. Payload:
|
|
640
640
|
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
641
|
-
* entryId, className, zoneIds,
|
|
641
|
+
* entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
|
|
642
642
|
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
643
643
|
* this bus topic drives notifier rules + live UI. See
|
|
644
644
|
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
@@ -5424,7 +5424,7 @@ var ZodIssueCode = {
|
|
|
5424
5424
|
var ZodFirstPartyTypeKind;
|
|
5425
5425
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5426
5426
|
//#endregion
|
|
5427
|
-
//#region ../types/dist/sleep-
|
|
5427
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5428
5428
|
/**
|
|
5429
5429
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5430
5430
|
* window to float samples (D455).
|
|
@@ -7387,13 +7387,30 @@ new Set([
|
|
|
7387
7387
|
"scene",
|
|
7388
7388
|
"motion",
|
|
7389
7389
|
"object",
|
|
7390
|
-
"audio"
|
|
7390
|
+
"audio",
|
|
7391
|
+
"mosaic"
|
|
7391
7392
|
]);
|
|
7392
|
-
|
|
7393
|
+
/**
|
|
7394
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
7395
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
7396
|
+
* does not re-spell the list and drift from it.
|
|
7397
|
+
*/
|
|
7398
|
+
var EVENT_OWNER_TYPES = [
|
|
7393
7399
|
"motion",
|
|
7394
7400
|
"object",
|
|
7395
7401
|
"audio"
|
|
7396
|
-
]
|
|
7402
|
+
];
|
|
7403
|
+
/**
|
|
7404
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
7405
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
7406
|
+
* `(table, id)`).
|
|
7407
|
+
*
|
|
7408
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
7409
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
7410
|
+
* nothing failing until a caller asked.
|
|
7411
|
+
*/
|
|
7412
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
7413
|
+
new Set(EVENT_OWNER_TYPES);
|
|
7397
7414
|
/**
|
|
7398
7415
|
* Build an `IAddonRouteProvider` from a list of routes. Implements
|
|
7399
7416
|
* both the operator-facing `getRoutes` (returning route descriptors
|
|
@@ -7549,7 +7566,23 @@ var EncodeProfileSchema = object({
|
|
|
7549
7566
|
"zerolatency",
|
|
7550
7567
|
"film",
|
|
7551
7568
|
"animation"
|
|
7552
|
-
]).optional()
|
|
7569
|
+
]).optional(),
|
|
7570
|
+
/**
|
|
7571
|
+
* ONE slice per access unit.
|
|
7572
|
+
*
|
|
7573
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7574
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7575
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7576
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7577
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7578
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7579
|
+
*
|
|
7580
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7581
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7582
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7583
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7584
|
+
*/
|
|
7585
|
+
singleSlicePerFrame: boolean().optional()
|
|
7553
7586
|
}),
|
|
7554
7587
|
audio: union([literal("passthrough"), object({
|
|
7555
7588
|
codec: _enum([
|
|
@@ -7599,7 +7632,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7599
7632
|
audio: "passthrough"
|
|
7600
7633
|
};
|
|
7601
7634
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7602
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7635
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7603
7636
|
/**
|
|
7604
7637
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7605
7638
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -12655,6 +12688,16 @@ method(object({
|
|
|
12655
12688
|
filter: QueryFilterSchema.optional(),
|
|
12656
12689
|
columns: array(string()).readonly().optional()
|
|
12657
12690
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12691
|
+
namespace: string().optional(),
|
|
12692
|
+
collection: string(),
|
|
12693
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12694
|
+
* index on the collection. Never empty. */
|
|
12695
|
+
conflict: array(string()).readonly(),
|
|
12696
|
+
record: BulkRecordSchema
|
|
12697
|
+
}), object({
|
|
12698
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12699
|
+
* row's own id on an update. */
|
|
12700
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12658
12701
|
namespace: string().optional(),
|
|
12659
12702
|
collection: string(),
|
|
12660
12703
|
record: object({
|
|
@@ -12789,6 +12832,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12789
12832
|
id: union([string(), number()]) }), {
|
|
12790
12833
|
kind: "mutation",
|
|
12791
12834
|
auth: "admin"
|
|
12835
|
+
}), method(object({
|
|
12836
|
+
namespace: string().optional(),
|
|
12837
|
+
collection: string(),
|
|
12838
|
+
conflict: array(string()).readonly(),
|
|
12839
|
+
record: BulkRecordSchema
|
|
12840
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12841
|
+
kind: "mutation",
|
|
12842
|
+
auth: "admin"
|
|
12792
12843
|
}), method(object({
|
|
12793
12844
|
namespace: string().optional(),
|
|
12794
12845
|
collection: string(),
|
|
@@ -19046,8 +19097,8 @@ var TrackPositionSchema = object({
|
|
|
19046
19097
|
var TrackSnapshotSchema = object({
|
|
19047
19098
|
timestamp: number(),
|
|
19048
19099
|
position: TrackPositionSchema,
|
|
19049
|
-
/**
|
|
19050
|
-
|
|
19100
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
19101
|
+
mediaId: number().int()
|
|
19051
19102
|
});
|
|
19052
19103
|
/**
|
|
19053
19104
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -19651,14 +19702,14 @@ var ObjectEventSchema = object({
|
|
|
19651
19702
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
19652
19703
|
frameWidth: number().optional(),
|
|
19653
19704
|
frameHeight: number().optional(),
|
|
19654
|
-
/**
|
|
19655
|
-
|
|
19656
|
-
/** Design B:
|
|
19705
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
19706
|
+
mediaId: number().int().optional(),
|
|
19707
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
19657
19708
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
19658
|
-
* (`/addon/<addonId>/event-media/<
|
|
19709
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
19659
19710
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
19660
|
-
* sources — consumers fall back to `
|
|
19661
|
-
|
|
19711
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
19712
|
+
keyFrameMediaId: number().int().optional(),
|
|
19662
19713
|
/** Populated by B5 (recording playback URL for this event). */
|
|
19663
19714
|
mediaUrl: string().optional(),
|
|
19664
19715
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -19708,7 +19759,7 @@ var MediaFileKindEnum = _enum([
|
|
|
19708
19759
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
19709
19760
|
*
|
|
19710
19761
|
* `url` points at the `event-media` data plane
|
|
19711
|
-
* (`/addon/<addonId>/event-media/<
|
|
19762
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
19712
19763
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
19713
19764
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
19714
19765
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -19716,10 +19767,13 @@ var MediaFileKindEnum = _enum([
|
|
|
19716
19767
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
19717
19768
|
* (per-device scoping).
|
|
19718
19769
|
*
|
|
19719
|
-
* The URL is built from the row's
|
|
19720
|
-
*
|
|
19770
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
19771
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
19772
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
19721
19773
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
19722
|
-
* `faceCrop`/`plateCrop
|
|
19774
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
19775
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
19776
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
19723
19777
|
*
|
|
19724
19778
|
* ## `base64` is TRANSITIONAL and is going away
|
|
19725
19779
|
*
|
|
@@ -19732,7 +19786,19 @@ var MediaFileKindEnum = _enum([
|
|
|
19732
19786
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
19733
19787
|
*/
|
|
19734
19788
|
var MediaFileSchema = object({
|
|
19735
|
-
|
|
19789
|
+
/**
|
|
19790
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
19791
|
+
*
|
|
19792
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
19793
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
19794
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
19795
|
+
* different rows that spell the same number, and a track whose
|
|
19796
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
19797
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
19798
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
19799
|
+
* at all.
|
|
19800
|
+
*/
|
|
19801
|
+
mediaId: number().int(),
|
|
19736
19802
|
kind: MediaFileKindEnum,
|
|
19737
19803
|
sizeBytes: number(),
|
|
19738
19804
|
timestamp: number()
|
|
@@ -19840,7 +19906,7 @@ var RetrainTrackSchema = object({
|
|
|
19840
19906
|
});
|
|
19841
19907
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
19842
19908
|
var RetrainFrameCandidateSchema = object({
|
|
19843
|
-
|
|
19909
|
+
mediaId: number().int(),
|
|
19844
19910
|
kind: MediaFileKindEnum,
|
|
19845
19911
|
timestamp: number(),
|
|
19846
19912
|
sizeBytes: number().int(),
|
|
@@ -19854,7 +19920,7 @@ var RetrainFrameSchema = object({
|
|
|
19854
19920
|
deviceId: number(),
|
|
19855
19921
|
trackId: string(),
|
|
19856
19922
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
19857
|
-
|
|
19923
|
+
sourceMediaId: number().int(),
|
|
19858
19924
|
sourceKind: MediaFileKindEnum,
|
|
19859
19925
|
sizeBytes: number().int(),
|
|
19860
19926
|
width: number().int(),
|
|
@@ -19870,7 +19936,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
19870
19936
|
var RetrainFrameSelectionSchema = object({
|
|
19871
19937
|
copied: array(RetrainFrameSchema).readonly(),
|
|
19872
19938
|
refused: array(object({
|
|
19873
|
-
|
|
19939
|
+
sourceMediaId: number().int(),
|
|
19874
19940
|
reason: RetrainCopyRefusalSchema
|
|
19875
19941
|
})).readonly()
|
|
19876
19942
|
});
|
|
@@ -19878,7 +19944,7 @@ var RetrainFrameListSchema = object({
|
|
|
19878
19944
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
19879
19945
|
copies: array(RetrainFrameSchema).readonly(),
|
|
19880
19946
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
19881
|
-
|
|
19947
|
+
autoPickMediaId: number().int().optional()
|
|
19882
19948
|
});
|
|
19883
19949
|
/** What the operator asked the assist to look for. */
|
|
19884
19950
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -19973,9 +20039,11 @@ var RecentTracksQueryInput = object({
|
|
|
19973
20039
|
});
|
|
19974
20040
|
/**
|
|
19975
20041
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
19976
|
-
* `
|
|
19977
|
-
* served by the event-media plane
|
|
19978
|
-
* member visible has been materialised
|
|
20042
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
20043
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
20044
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
20045
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
20046
|
+
* row once event ids became per-table rowids).
|
|
19979
20047
|
*/
|
|
19980
20048
|
var SummarySchema = object({
|
|
19981
20049
|
id: string(),
|
|
@@ -19984,19 +20052,115 @@ var SummarySchema = object({
|
|
|
19984
20052
|
lastActiveAt: number(),
|
|
19985
20053
|
sealedAt: number().nullable(),
|
|
19986
20054
|
memberCount: number().int().nonnegative(),
|
|
19987
|
-
|
|
20055
|
+
groupShotMediaId: number().int().nullable()
|
|
19988
20056
|
});
|
|
19989
20057
|
var SummariesQueryInput = object({
|
|
19990
20058
|
deviceIds: array(number()).min(1),
|
|
19991
20059
|
since: number().optional(),
|
|
19992
20060
|
until: number().optional(),
|
|
19993
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20061
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20062
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20063
|
+
* meaning of "dog" on every summary surface. */
|
|
20064
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19994
20065
|
});
|
|
19995
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19996
20066
|
var SummaryDetailSchema = object({
|
|
19997
20067
|
summary: SummarySchema,
|
|
19998
|
-
/**
|
|
19999
|
-
|
|
20068
|
+
/** Members in absorption order, oldest join first. */
|
|
20069
|
+
members: array(object({
|
|
20070
|
+
trackId: string(),
|
|
20071
|
+
/**
|
|
20072
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20073
|
+
* and the track no longer exists to fill it.
|
|
20074
|
+
*
|
|
20075
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20076
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20077
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20078
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20079
|
+
* drift from the members it claims to describe.
|
|
20080
|
+
*/
|
|
20081
|
+
className: string().nullable(),
|
|
20082
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20083
|
+
role: _enum([
|
|
20084
|
+
"primary",
|
|
20085
|
+
"sibling",
|
|
20086
|
+
"child"
|
|
20087
|
+
]).nullable(),
|
|
20088
|
+
joinedAt: number(),
|
|
20089
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20090
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20091
|
+
label: string().optional(),
|
|
20092
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20093
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20094
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20095
|
+
subLabel: string().optional()
|
|
20096
|
+
})).readonly()
|
|
20097
|
+
});
|
|
20098
|
+
/**
|
|
20099
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20100
|
+
*
|
|
20101
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20102
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20103
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20104
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20105
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20106
|
+
* draw two hundred badges.
|
|
20107
|
+
*/
|
|
20108
|
+
var SummaryListItemSchema = object({
|
|
20109
|
+
summary: SummarySchema,
|
|
20110
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20111
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20112
|
+
classes: array(object({
|
|
20113
|
+
className: string().nullable(),
|
|
20114
|
+
count: number().int().positive()
|
|
20115
|
+
})).readonly()
|
|
20116
|
+
});
|
|
20117
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20118
|
+
/**
|
|
20119
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20120
|
+
*
|
|
20121
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20122
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20123
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20124
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20125
|
+
* "newest" means, on one screen.
|
|
20126
|
+
*/
|
|
20127
|
+
var RecentSummariesQueryInput = object({
|
|
20128
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20129
|
+
deviceIds: array(number()),
|
|
20130
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20131
|
+
since: number().optional(),
|
|
20132
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20133
|
+
until: number().optional(),
|
|
20134
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20135
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20136
|
+
cursor: string().optional(),
|
|
20137
|
+
/**
|
|
20138
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20139
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20140
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20141
|
+
* make the operator's one filter component produce two shapes.
|
|
20142
|
+
*
|
|
20143
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20144
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20145
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20146
|
+
* about its primary.
|
|
20147
|
+
*
|
|
20148
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20149
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20150
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20151
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20152
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20153
|
+
*
|
|
20154
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20155
|
+
*/
|
|
20156
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20157
|
+
});
|
|
20158
|
+
var RecentSummariesPageSchema = object({
|
|
20159
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20160
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20161
|
+
* whichever feed drew it. */
|
|
20162
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20163
|
+
nextCursor: string().nullable()
|
|
20000
20164
|
});
|
|
20001
20165
|
var RecentTracksPageSchema = object({
|
|
20002
20166
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20410,7 +20574,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20410
20574
|
classes: array(string()).optional(),
|
|
20411
20575
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20412
20576
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20413
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20577
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20414
20578
|
kind: "mutation",
|
|
20415
20579
|
auth: "admin"
|
|
20416
20580
|
}), 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({
|
|
@@ -20538,7 +20702,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20538
20702
|
}), method(object({
|
|
20539
20703
|
deviceId: number(),
|
|
20540
20704
|
trackId: string(),
|
|
20541
|
-
|
|
20705
|
+
mediaIds: array(number().int()).min(1)
|
|
20542
20706
|
}), RetrainFrameSelectionSchema, {
|
|
20543
20707
|
kind: "mutation",
|
|
20544
20708
|
auth: "admin"
|
|
@@ -20606,7 +20770,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20606
20770
|
kind: "query",
|
|
20607
20771
|
auth: "admin"
|
|
20608
20772
|
}), method(object({
|
|
20609
|
-
|
|
20773
|
+
/** Which of the three event tables owns the row. */
|
|
20774
|
+
ownerType: EventOwnerTypeSchema,
|
|
20775
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
20776
|
+
eventId: number().int(),
|
|
20610
20777
|
kind: MediaFileKindEnum.optional(),
|
|
20611
20778
|
deviceId: number()
|
|
20612
20779
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -20617,7 +20784,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20617
20784
|
trackId: string(),
|
|
20618
20785
|
deviceId: number()
|
|
20619
20786
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
20620
|
-
|
|
20787
|
+
ownerType: EventOwnerTypeSchema,
|
|
20788
|
+
eventId: number().int(),
|
|
20621
20789
|
deviceId: number()
|
|
20622
20790
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
20623
20791
|
kind: "mutation",
|
|
@@ -25092,8 +25260,8 @@ var IdentitySchema = object({
|
|
|
25092
25260
|
id: string(),
|
|
25093
25261
|
name: string(),
|
|
25094
25262
|
sampleCount: number().int().nonnegative(),
|
|
25095
|
-
|
|
25096
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
25263
|
+
coverMediaId: number().int().optional(),
|
|
25264
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
25097
25265
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
25098
25266
|
coverBase64: string().optional()
|
|
25099
25267
|
});
|
|
@@ -25119,8 +25287,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
25119
25287
|
enrolledAt: number().int(),
|
|
25120
25288
|
deviceId: number().int().optional(),
|
|
25121
25289
|
source: _enum(["detected", "photo"]),
|
|
25122
|
-
/** The enrolled crop's media
|
|
25123
|
-
|
|
25290
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
25291
|
+
mediaId: number().int().optional(),
|
|
25124
25292
|
/**
|
|
25125
25293
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
25126
25294
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -25189,15 +25357,15 @@ var FaceInfoSchema = object({
|
|
|
25189
25357
|
*/
|
|
25190
25358
|
cropUrl: string().optional(),
|
|
25191
25359
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
25192
|
-
* view draw the box over the native `
|
|
25360
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
25193
25361
|
* legacy rows written before design B. */
|
|
25194
25362
|
faceBbox: BoundingBoxSchema.optional(),
|
|
25195
25363
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
25196
25364
|
* Fetch the native JPEG via the event-media data-plane
|
|
25197
|
-
* (`/addon/<addonId>/event-media/<
|
|
25365
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
25198
25366
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
25199
25367
|
* back to the inline `base64` face crop. */
|
|
25200
|
-
|
|
25368
|
+
keyFrameMediaId: number().int().optional(),
|
|
25201
25369
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
25202
25370
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
25203
25371
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -25266,11 +25434,14 @@ var FaceClusterSchema = object({
|
|
|
25266
25434
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
25267
25435
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
25268
25436
|
*
|
|
25269
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
25270
|
-
* media
|
|
25437
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
25438
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
25439
|
+
* access decision.
|
|
25271
25440
|
*/
|
|
25272
25441
|
var MediaFileLiteSchema$1 = object({
|
|
25273
|
-
|
|
25442
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
25443
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
25444
|
+
mediaId: number().int(),
|
|
25274
25445
|
kind: string(),
|
|
25275
25446
|
url: string(),
|
|
25276
25447
|
sizeBytes: number(),
|
|
@@ -25287,7 +25458,7 @@ method(object({
|
|
|
25287
25458
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
25288
25459
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
25289
25460
|
*
|
|
25290
|
-
* Nothing loses its avatar: `
|
|
25461
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
25291
25462
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
25292
25463
|
*
|
|
25293
25464
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -27755,8 +27926,8 @@ var VehicleSchema = object({
|
|
|
27755
27926
|
id: string(),
|
|
27756
27927
|
name: string(),
|
|
27757
27928
|
sampleCount: number().int().nonnegative(),
|
|
27758
|
-
|
|
27759
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
27929
|
+
coverMediaId: number().int().optional(),
|
|
27930
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
27760
27931
|
coverBase64: string().optional()
|
|
27761
27932
|
});
|
|
27762
27933
|
var VehicleSampleInfoSchema = object({
|
|
@@ -27789,7 +27960,7 @@ var PlateInfoSchema = object({
|
|
|
27789
27960
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
27790
27961
|
plateBbox: BoundingBoxSchema.optional(),
|
|
27791
27962
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
27792
|
-
|
|
27963
|
+
keyFrameMediaId: number().int().optional(),
|
|
27793
27964
|
base64: string().optional(),
|
|
27794
27965
|
/**
|
|
27795
27966
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -27810,11 +27981,14 @@ var PlateInfoSchema = object({
|
|
|
27810
27981
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
27811
27982
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
27812
27983
|
*
|
|
27813
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
27814
|
-
* media
|
|
27984
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
27985
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
27986
|
+
* access decision.
|
|
27815
27987
|
*/
|
|
27816
27988
|
var MediaFileLiteSchema = object({
|
|
27817
|
-
|
|
27989
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
27990
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
27991
|
+
mediaId: number().int(),
|
|
27818
27992
|
kind: string(),
|
|
27819
27993
|
url: string(),
|
|
27820
27994
|
sizeBytes: number(),
|
|
@@ -27873,7 +28047,7 @@ method(object({
|
|
|
27873
28047
|
}), method(object({
|
|
27874
28048
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
27875
28049
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
27876
|
-
* option; `
|
|
28050
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
27877
28051
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
27878
28052
|
* resolves to `false` and is exactly the intended default. */
|
|
27879
28053
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -29197,7 +29371,14 @@ var SceneReferenceSchema = object({
|
|
|
29197
29371
|
modelId: string(),
|
|
29198
29372
|
condition: SceneConditionSchema,
|
|
29199
29373
|
capturedAt: number(),
|
|
29200
|
-
|
|
29374
|
+
/**
|
|
29375
|
+
* The reference thumbnail's media ROW id (D482).
|
|
29376
|
+
*
|
|
29377
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
29378
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
29379
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
29380
|
+
*/
|
|
29381
|
+
thumbnailMediaId: number().int().optional(),
|
|
29201
29382
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
29202
29383
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
29203
29384
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -30018,7 +30199,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
30018
30199
|
* disarmed the channels it did not mention would make the Levels page and
|
|
30019
30200
|
* the Diagnostics page fight over the same value.
|
|
30020
30201
|
*/
|
|
30021
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30202
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30203
|
+
/**
|
|
30204
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30205
|
+
* retention actually deleted.
|
|
30206
|
+
*
|
|
30207
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30208
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30209
|
+
* this system is configured through this one document, and a retention audit
|
|
30210
|
+
* configured somewhere else is a second place to look when the question is
|
|
30211
|
+
* "what happened to my data".
|
|
30212
|
+
*
|
|
30213
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30214
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30215
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30216
|
+
*
|
|
30217
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30218
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30219
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30220
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30221
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30222
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30223
|
+
*/
|
|
30224
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
30022
30225
|
});
|
|
30023
30226
|
/**
|
|
30024
30227
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -30091,6 +30294,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
30091
30294
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
30092
30295
|
/** The channels ARMED right now, each with its deadline. */
|
|
30093
30296
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30297
|
+
/**
|
|
30298
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30299
|
+
*
|
|
30300
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30301
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30302
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30303
|
+
*/
|
|
30304
|
+
opsLogRetentionDays: number().int().min(0),
|
|
30094
30305
|
persisted: boolean()
|
|
30095
30306
|
});
|
|
30096
30307
|
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(), {
|
|
@@ -30652,7 +30863,7 @@ var StationaryObjectSchema = object({
|
|
|
30652
30863
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
30653
30864
|
label: string().optional(),
|
|
30654
30865
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
30655
|
-
|
|
30866
|
+
keyFrameMediaId: number().int().optional()
|
|
30656
30867
|
});
|
|
30657
30868
|
var CameraOccupancySnapshotSchema = object({
|
|
30658
30869
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -31808,6 +32019,12 @@ Object.freeze({
|
|
|
31808
32019
|
addonId: null,
|
|
31809
32020
|
access: "create"
|
|
31810
32021
|
},
|
|
32022
|
+
"dataStoreProvider.upsert": {
|
|
32023
|
+
capName: "data-store-provider",
|
|
32024
|
+
capScope: "system",
|
|
32025
|
+
addonId: null,
|
|
32026
|
+
access: "create"
|
|
32027
|
+
},
|
|
31811
32028
|
"dayNight.getOptions": {
|
|
31812
32029
|
capName: "day-night",
|
|
31813
32030
|
capScope: "device",
|
|
@@ -34244,6 +34461,12 @@ Object.freeze({
|
|
|
34244
34461
|
addonId: null,
|
|
34245
34462
|
access: "view"
|
|
34246
34463
|
},
|
|
34464
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34465
|
+
capName: "pipeline-analytics",
|
|
34466
|
+
capScope: "device",
|
|
34467
|
+
addonId: null,
|
|
34468
|
+
access: "view"
|
|
34469
|
+
},
|
|
34247
34470
|
"pipelineAnalytics.listRecentTracks": {
|
|
34248
34471
|
capName: "pipeline-analytics",
|
|
34249
34472
|
capScope: "device",
|
|
@@ -35672,6 +35895,12 @@ Object.freeze({
|
|
|
35672
35895
|
addonId: null,
|
|
35673
35896
|
access: "create"
|
|
35674
35897
|
},
|
|
35898
|
+
"settingsStore.upsert": {
|
|
35899
|
+
capName: "settings-store",
|
|
35900
|
+
capScope: "system",
|
|
35901
|
+
addonId: null,
|
|
35902
|
+
access: "create"
|
|
35903
|
+
},
|
|
35675
35904
|
"smtpProvider.getStatus": {
|
|
35676
35905
|
capName: "smtp-provider",
|
|
35677
35906
|
capScope: "system",
|
|
@@ -38065,6 +38294,11 @@ Object.freeze({
|
|
|
38065
38294
|
form: "single",
|
|
38066
38295
|
optional: true
|
|
38067
38296
|
}],
|
|
38297
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38298
|
+
name: "deviceIds",
|
|
38299
|
+
form: "array",
|
|
38300
|
+
optional: false
|
|
38301
|
+
}],
|
|
38068
38302
|
"pipelineAnalytics.listRecentTracks": [{
|
|
38069
38303
|
name: "deviceIds",
|
|
38070
38304
|
form: "array",
|
|
@@ -73,7 +73,7 @@ function createApiDeviceGateway(deps) {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
//#endregion
|
|
76
|
-
//#region ../types/dist/event-category-
|
|
76
|
+
//#region ../types/dist/event-category-ZyX6jcse.mjs
|
|
77
77
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
78
78
|
EventCategory["SystemBoot"] = "system.boot";
|
|
79
79
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -634,7 +634,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
634
634
|
* a package zone — a newly-appeared stationary object of a package class
|
|
635
635
|
* that cleared the class / zone / dwell / size gates. Payload:
|
|
636
636
|
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
637
|
-
* entryId, className, zoneIds,
|
|
637
|
+
* entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
|
|
638
638
|
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
639
639
|
* this bus topic drives notifier rules + live UI. See
|
|
640
640
|
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
@@ -5420,7 +5420,7 @@ var ZodIssueCode = {
|
|
|
5420
5420
|
var ZodFirstPartyTypeKind;
|
|
5421
5421
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5422
5422
|
//#endregion
|
|
5423
|
-
//#region ../types/dist/sleep-
|
|
5423
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5424
5424
|
/**
|
|
5425
5425
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5426
5426
|
* window to float samples (D455).
|
|
@@ -7383,13 +7383,30 @@ new Set([
|
|
|
7383
7383
|
"scene",
|
|
7384
7384
|
"motion",
|
|
7385
7385
|
"object",
|
|
7386
|
-
"audio"
|
|
7386
|
+
"audio",
|
|
7387
|
+
"mosaic"
|
|
7387
7388
|
]);
|
|
7388
|
-
|
|
7389
|
+
/**
|
|
7390
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
7391
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
7392
|
+
* does not re-spell the list and drift from it.
|
|
7393
|
+
*/
|
|
7394
|
+
var EVENT_OWNER_TYPES = [
|
|
7389
7395
|
"motion",
|
|
7390
7396
|
"object",
|
|
7391
7397
|
"audio"
|
|
7392
|
-
]
|
|
7398
|
+
];
|
|
7399
|
+
/**
|
|
7400
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
7401
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
7402
|
+
* `(table, id)`).
|
|
7403
|
+
*
|
|
7404
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
7405
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
7406
|
+
* nothing failing until a caller asked.
|
|
7407
|
+
*/
|
|
7408
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
7409
|
+
new Set(EVENT_OWNER_TYPES);
|
|
7393
7410
|
/**
|
|
7394
7411
|
* Build an `IAddonRouteProvider` from a list of routes. Implements
|
|
7395
7412
|
* both the operator-facing `getRoutes` (returning route descriptors
|
|
@@ -7545,7 +7562,23 @@ var EncodeProfileSchema = object({
|
|
|
7545
7562
|
"zerolatency",
|
|
7546
7563
|
"film",
|
|
7547
7564
|
"animation"
|
|
7548
|
-
]).optional()
|
|
7565
|
+
]).optional(),
|
|
7566
|
+
/**
|
|
7567
|
+
* ONE slice per access unit.
|
|
7568
|
+
*
|
|
7569
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7570
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7571
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7572
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7573
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7574
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7575
|
+
*
|
|
7576
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7577
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7578
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7579
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7580
|
+
*/
|
|
7581
|
+
singleSlicePerFrame: boolean().optional()
|
|
7549
7582
|
}),
|
|
7550
7583
|
audio: union([literal("passthrough"), object({
|
|
7551
7584
|
codec: _enum([
|
|
@@ -7595,7 +7628,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7595
7628
|
audio: "passthrough"
|
|
7596
7629
|
};
|
|
7597
7630
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7598
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7631
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7599
7632
|
/**
|
|
7600
7633
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7601
7634
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -12651,6 +12684,16 @@ method(object({
|
|
|
12651
12684
|
filter: QueryFilterSchema.optional(),
|
|
12652
12685
|
columns: array(string()).readonly().optional()
|
|
12653
12686
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12687
|
+
namespace: string().optional(),
|
|
12688
|
+
collection: string(),
|
|
12689
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12690
|
+
* index on the collection. Never empty. */
|
|
12691
|
+
conflict: array(string()).readonly(),
|
|
12692
|
+
record: BulkRecordSchema
|
|
12693
|
+
}), object({
|
|
12694
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12695
|
+
* row's own id on an update. */
|
|
12696
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12654
12697
|
namespace: string().optional(),
|
|
12655
12698
|
collection: string(),
|
|
12656
12699
|
record: object({
|
|
@@ -12785,6 +12828,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12785
12828
|
id: union([string(), number()]) }), {
|
|
12786
12829
|
kind: "mutation",
|
|
12787
12830
|
auth: "admin"
|
|
12831
|
+
}), method(object({
|
|
12832
|
+
namespace: string().optional(),
|
|
12833
|
+
collection: string(),
|
|
12834
|
+
conflict: array(string()).readonly(),
|
|
12835
|
+
record: BulkRecordSchema
|
|
12836
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12837
|
+
kind: "mutation",
|
|
12838
|
+
auth: "admin"
|
|
12788
12839
|
}), method(object({
|
|
12789
12840
|
namespace: string().optional(),
|
|
12790
12841
|
collection: string(),
|
|
@@ -19042,8 +19093,8 @@ var TrackPositionSchema = object({
|
|
|
19042
19093
|
var TrackSnapshotSchema = object({
|
|
19043
19094
|
timestamp: number(),
|
|
19044
19095
|
position: TrackPositionSchema,
|
|
19045
|
-
/**
|
|
19046
|
-
|
|
19096
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
19097
|
+
mediaId: number().int()
|
|
19047
19098
|
});
|
|
19048
19099
|
/**
|
|
19049
19100
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -19647,14 +19698,14 @@ var ObjectEventSchema = object({
|
|
|
19647
19698
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
19648
19699
|
frameWidth: number().optional(),
|
|
19649
19700
|
frameHeight: number().optional(),
|
|
19650
|
-
/**
|
|
19651
|
-
|
|
19652
|
-
/** Design B:
|
|
19701
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
19702
|
+
mediaId: number().int().optional(),
|
|
19703
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
19653
19704
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
19654
|
-
* (`/addon/<addonId>/event-media/<
|
|
19705
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
19655
19706
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
19656
|
-
* sources — consumers fall back to `
|
|
19657
|
-
|
|
19707
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
19708
|
+
keyFrameMediaId: number().int().optional(),
|
|
19658
19709
|
/** Populated by B5 (recording playback URL for this event). */
|
|
19659
19710
|
mediaUrl: string().optional(),
|
|
19660
19711
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -19704,7 +19755,7 @@ var MediaFileKindEnum = _enum([
|
|
|
19704
19755
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
19705
19756
|
*
|
|
19706
19757
|
* `url` points at the `event-media` data plane
|
|
19707
|
-
* (`/addon/<addonId>/event-media/<
|
|
19758
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
19708
19759
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
19709
19760
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
19710
19761
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -19712,10 +19763,13 @@ var MediaFileKindEnum = _enum([
|
|
|
19712
19763
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
19713
19764
|
* (per-device scoping).
|
|
19714
19765
|
*
|
|
19715
|
-
* The URL is built from the row's
|
|
19716
|
-
*
|
|
19766
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
19767
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
19768
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
19717
19769
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
19718
|
-
* `faceCrop`/`plateCrop
|
|
19770
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
19771
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
19772
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
19719
19773
|
*
|
|
19720
19774
|
* ## `base64` is TRANSITIONAL and is going away
|
|
19721
19775
|
*
|
|
@@ -19728,7 +19782,19 @@ var MediaFileKindEnum = _enum([
|
|
|
19728
19782
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
19729
19783
|
*/
|
|
19730
19784
|
var MediaFileSchema = object({
|
|
19731
|
-
|
|
19785
|
+
/**
|
|
19786
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
19787
|
+
*
|
|
19788
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
19789
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
19790
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
19791
|
+
* different rows that spell the same number, and a track whose
|
|
19792
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
19793
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
19794
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
19795
|
+
* at all.
|
|
19796
|
+
*/
|
|
19797
|
+
mediaId: number().int(),
|
|
19732
19798
|
kind: MediaFileKindEnum,
|
|
19733
19799
|
sizeBytes: number(),
|
|
19734
19800
|
timestamp: number()
|
|
@@ -19836,7 +19902,7 @@ var RetrainTrackSchema = object({
|
|
|
19836
19902
|
});
|
|
19837
19903
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
19838
19904
|
var RetrainFrameCandidateSchema = object({
|
|
19839
|
-
|
|
19905
|
+
mediaId: number().int(),
|
|
19840
19906
|
kind: MediaFileKindEnum,
|
|
19841
19907
|
timestamp: number(),
|
|
19842
19908
|
sizeBytes: number().int(),
|
|
@@ -19850,7 +19916,7 @@ var RetrainFrameSchema = object({
|
|
|
19850
19916
|
deviceId: number(),
|
|
19851
19917
|
trackId: string(),
|
|
19852
19918
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
19853
|
-
|
|
19919
|
+
sourceMediaId: number().int(),
|
|
19854
19920
|
sourceKind: MediaFileKindEnum,
|
|
19855
19921
|
sizeBytes: number().int(),
|
|
19856
19922
|
width: number().int(),
|
|
@@ -19866,7 +19932,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
19866
19932
|
var RetrainFrameSelectionSchema = object({
|
|
19867
19933
|
copied: array(RetrainFrameSchema).readonly(),
|
|
19868
19934
|
refused: array(object({
|
|
19869
|
-
|
|
19935
|
+
sourceMediaId: number().int(),
|
|
19870
19936
|
reason: RetrainCopyRefusalSchema
|
|
19871
19937
|
})).readonly()
|
|
19872
19938
|
});
|
|
@@ -19874,7 +19940,7 @@ var RetrainFrameListSchema = object({
|
|
|
19874
19940
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
19875
19941
|
copies: array(RetrainFrameSchema).readonly(),
|
|
19876
19942
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
19877
|
-
|
|
19943
|
+
autoPickMediaId: number().int().optional()
|
|
19878
19944
|
});
|
|
19879
19945
|
/** What the operator asked the assist to look for. */
|
|
19880
19946
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -19969,9 +20035,11 @@ var RecentTracksQueryInput = object({
|
|
|
19969
20035
|
});
|
|
19970
20036
|
/**
|
|
19971
20037
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
19972
|
-
* `
|
|
19973
|
-
* served by the event-media plane
|
|
19974
|
-
* member visible has been materialised
|
|
20038
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
20039
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
20040
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
20041
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
20042
|
+
* row once event ids became per-table rowids).
|
|
19975
20043
|
*/
|
|
19976
20044
|
var SummarySchema = object({
|
|
19977
20045
|
id: string(),
|
|
@@ -19980,19 +20048,115 @@ var SummarySchema = object({
|
|
|
19980
20048
|
lastActiveAt: number(),
|
|
19981
20049
|
sealedAt: number().nullable(),
|
|
19982
20050
|
memberCount: number().int().nonnegative(),
|
|
19983
|
-
|
|
20051
|
+
groupShotMediaId: number().int().nullable()
|
|
19984
20052
|
});
|
|
19985
20053
|
var SummariesQueryInput = object({
|
|
19986
20054
|
deviceIds: array(number()).min(1),
|
|
19987
20055
|
since: number().optional(),
|
|
19988
20056
|
until: number().optional(),
|
|
19989
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20057
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20058
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20059
|
+
* meaning of "dog" on every summary surface. */
|
|
20060
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19990
20061
|
});
|
|
19991
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19992
20062
|
var SummaryDetailSchema = object({
|
|
19993
20063
|
summary: SummarySchema,
|
|
19994
|
-
/**
|
|
19995
|
-
|
|
20064
|
+
/** Members in absorption order, oldest join first. */
|
|
20065
|
+
members: array(object({
|
|
20066
|
+
trackId: string(),
|
|
20067
|
+
/**
|
|
20068
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20069
|
+
* and the track no longer exists to fill it.
|
|
20070
|
+
*
|
|
20071
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20072
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20073
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20074
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20075
|
+
* drift from the members it claims to describe.
|
|
20076
|
+
*/
|
|
20077
|
+
className: string().nullable(),
|
|
20078
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20079
|
+
role: _enum([
|
|
20080
|
+
"primary",
|
|
20081
|
+
"sibling",
|
|
20082
|
+
"child"
|
|
20083
|
+
]).nullable(),
|
|
20084
|
+
joinedAt: number(),
|
|
20085
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20086
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20087
|
+
label: string().optional(),
|
|
20088
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20089
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20090
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20091
|
+
subLabel: string().optional()
|
|
20092
|
+
})).readonly()
|
|
20093
|
+
});
|
|
20094
|
+
/**
|
|
20095
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20096
|
+
*
|
|
20097
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20098
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20099
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20100
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20101
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20102
|
+
* draw two hundred badges.
|
|
20103
|
+
*/
|
|
20104
|
+
var SummaryListItemSchema = object({
|
|
20105
|
+
summary: SummarySchema,
|
|
20106
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20107
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20108
|
+
classes: array(object({
|
|
20109
|
+
className: string().nullable(),
|
|
20110
|
+
count: number().int().positive()
|
|
20111
|
+
})).readonly()
|
|
20112
|
+
});
|
|
20113
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20114
|
+
/**
|
|
20115
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20116
|
+
*
|
|
20117
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20118
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20119
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20120
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20121
|
+
* "newest" means, on one screen.
|
|
20122
|
+
*/
|
|
20123
|
+
var RecentSummariesQueryInput = object({
|
|
20124
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20125
|
+
deviceIds: array(number()),
|
|
20126
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20127
|
+
since: number().optional(),
|
|
20128
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20129
|
+
until: number().optional(),
|
|
20130
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20131
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20132
|
+
cursor: string().optional(),
|
|
20133
|
+
/**
|
|
20134
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20135
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20136
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20137
|
+
* make the operator's one filter component produce two shapes.
|
|
20138
|
+
*
|
|
20139
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20140
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20141
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20142
|
+
* about its primary.
|
|
20143
|
+
*
|
|
20144
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20145
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20146
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20147
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20148
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20149
|
+
*
|
|
20150
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20151
|
+
*/
|
|
20152
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20153
|
+
});
|
|
20154
|
+
var RecentSummariesPageSchema = object({
|
|
20155
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20156
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20157
|
+
* whichever feed drew it. */
|
|
20158
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20159
|
+
nextCursor: string().nullable()
|
|
19996
20160
|
});
|
|
19997
20161
|
var RecentTracksPageSchema = object({
|
|
19998
20162
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20406,7 +20570,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20406
20570
|
classes: array(string()).optional(),
|
|
20407
20571
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20408
20572
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20409
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20573
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20410
20574
|
kind: "mutation",
|
|
20411
20575
|
auth: "admin"
|
|
20412
20576
|
}), 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({
|
|
@@ -20534,7 +20698,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20534
20698
|
}), method(object({
|
|
20535
20699
|
deviceId: number(),
|
|
20536
20700
|
trackId: string(),
|
|
20537
|
-
|
|
20701
|
+
mediaIds: array(number().int()).min(1)
|
|
20538
20702
|
}), RetrainFrameSelectionSchema, {
|
|
20539
20703
|
kind: "mutation",
|
|
20540
20704
|
auth: "admin"
|
|
@@ -20602,7 +20766,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20602
20766
|
kind: "query",
|
|
20603
20767
|
auth: "admin"
|
|
20604
20768
|
}), method(object({
|
|
20605
|
-
|
|
20769
|
+
/** Which of the three event tables owns the row. */
|
|
20770
|
+
ownerType: EventOwnerTypeSchema,
|
|
20771
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
20772
|
+
eventId: number().int(),
|
|
20606
20773
|
kind: MediaFileKindEnum.optional(),
|
|
20607
20774
|
deviceId: number()
|
|
20608
20775
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -20613,7 +20780,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20613
20780
|
trackId: string(),
|
|
20614
20781
|
deviceId: number()
|
|
20615
20782
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
20616
|
-
|
|
20783
|
+
ownerType: EventOwnerTypeSchema,
|
|
20784
|
+
eventId: number().int(),
|
|
20617
20785
|
deviceId: number()
|
|
20618
20786
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
20619
20787
|
kind: "mutation",
|
|
@@ -25088,8 +25256,8 @@ var IdentitySchema = object({
|
|
|
25088
25256
|
id: string(),
|
|
25089
25257
|
name: string(),
|
|
25090
25258
|
sampleCount: number().int().nonnegative(),
|
|
25091
|
-
|
|
25092
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
25259
|
+
coverMediaId: number().int().optional(),
|
|
25260
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
25093
25261
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
25094
25262
|
coverBase64: string().optional()
|
|
25095
25263
|
});
|
|
@@ -25115,8 +25283,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
25115
25283
|
enrolledAt: number().int(),
|
|
25116
25284
|
deviceId: number().int().optional(),
|
|
25117
25285
|
source: _enum(["detected", "photo"]),
|
|
25118
|
-
/** The enrolled crop's media
|
|
25119
|
-
|
|
25286
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
25287
|
+
mediaId: number().int().optional(),
|
|
25120
25288
|
/**
|
|
25121
25289
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
25122
25290
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -25185,15 +25353,15 @@ var FaceInfoSchema = object({
|
|
|
25185
25353
|
*/
|
|
25186
25354
|
cropUrl: string().optional(),
|
|
25187
25355
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
25188
|
-
* view draw the box over the native `
|
|
25356
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
25189
25357
|
* legacy rows written before design B. */
|
|
25190
25358
|
faceBbox: BoundingBoxSchema.optional(),
|
|
25191
25359
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
25192
25360
|
* Fetch the native JPEG via the event-media data-plane
|
|
25193
|
-
* (`/addon/<addonId>/event-media/<
|
|
25361
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
25194
25362
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
25195
25363
|
* back to the inline `base64` face crop. */
|
|
25196
|
-
|
|
25364
|
+
keyFrameMediaId: number().int().optional(),
|
|
25197
25365
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
25198
25366
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
25199
25367
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -25262,11 +25430,14 @@ var FaceClusterSchema = object({
|
|
|
25262
25430
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
25263
25431
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
25264
25432
|
*
|
|
25265
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
25266
|
-
* media
|
|
25433
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
25434
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
25435
|
+
* access decision.
|
|
25267
25436
|
*/
|
|
25268
25437
|
var MediaFileLiteSchema$1 = object({
|
|
25269
|
-
|
|
25438
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
25439
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
25440
|
+
mediaId: number().int(),
|
|
25270
25441
|
kind: string(),
|
|
25271
25442
|
url: string(),
|
|
25272
25443
|
sizeBytes: number(),
|
|
@@ -25283,7 +25454,7 @@ method(object({
|
|
|
25283
25454
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
25284
25455
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
25285
25456
|
*
|
|
25286
|
-
* Nothing loses its avatar: `
|
|
25457
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
25287
25458
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
25288
25459
|
*
|
|
25289
25460
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -27751,8 +27922,8 @@ var VehicleSchema = object({
|
|
|
27751
27922
|
id: string(),
|
|
27752
27923
|
name: string(),
|
|
27753
27924
|
sampleCount: number().int().nonnegative(),
|
|
27754
|
-
|
|
27755
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
27925
|
+
coverMediaId: number().int().optional(),
|
|
27926
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
27756
27927
|
coverBase64: string().optional()
|
|
27757
27928
|
});
|
|
27758
27929
|
var VehicleSampleInfoSchema = object({
|
|
@@ -27785,7 +27956,7 @@ var PlateInfoSchema = object({
|
|
|
27785
27956
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
27786
27957
|
plateBbox: BoundingBoxSchema.optional(),
|
|
27787
27958
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
27788
|
-
|
|
27959
|
+
keyFrameMediaId: number().int().optional(),
|
|
27789
27960
|
base64: string().optional(),
|
|
27790
27961
|
/**
|
|
27791
27962
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -27806,11 +27977,14 @@ var PlateInfoSchema = object({
|
|
|
27806
27977
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
27807
27978
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
27808
27979
|
*
|
|
27809
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
27810
|
-
* media
|
|
27980
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
27981
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
27982
|
+
* access decision.
|
|
27811
27983
|
*/
|
|
27812
27984
|
var MediaFileLiteSchema = object({
|
|
27813
|
-
|
|
27985
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
27986
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
27987
|
+
mediaId: number().int(),
|
|
27814
27988
|
kind: string(),
|
|
27815
27989
|
url: string(),
|
|
27816
27990
|
sizeBytes: number(),
|
|
@@ -27869,7 +28043,7 @@ method(object({
|
|
|
27869
28043
|
}), method(object({
|
|
27870
28044
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
27871
28045
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
27872
|
-
* option; `
|
|
28046
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
27873
28047
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
27874
28048
|
* resolves to `false` and is exactly the intended default. */
|
|
27875
28049
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -29193,7 +29367,14 @@ var SceneReferenceSchema = object({
|
|
|
29193
29367
|
modelId: string(),
|
|
29194
29368
|
condition: SceneConditionSchema,
|
|
29195
29369
|
capturedAt: number(),
|
|
29196
|
-
|
|
29370
|
+
/**
|
|
29371
|
+
* The reference thumbnail's media ROW id (D482).
|
|
29372
|
+
*
|
|
29373
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
29374
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
29375
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
29376
|
+
*/
|
|
29377
|
+
thumbnailMediaId: number().int().optional(),
|
|
29197
29378
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
29198
29379
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
29199
29380
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -30014,7 +30195,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
30014
30195
|
* disarmed the channels it did not mention would make the Levels page and
|
|
30015
30196
|
* the Diagnostics page fight over the same value.
|
|
30016
30197
|
*/
|
|
30017
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30198
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30199
|
+
/**
|
|
30200
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30201
|
+
* retention actually deleted.
|
|
30202
|
+
*
|
|
30203
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30204
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30205
|
+
* this system is configured through this one document, and a retention audit
|
|
30206
|
+
* configured somewhere else is a second place to look when the question is
|
|
30207
|
+
* "what happened to my data".
|
|
30208
|
+
*
|
|
30209
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30210
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30211
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30212
|
+
*
|
|
30213
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30214
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30215
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30216
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30217
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30218
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30219
|
+
*/
|
|
30220
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
30018
30221
|
});
|
|
30019
30222
|
/**
|
|
30020
30223
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -30087,6 +30290,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
30087
30290
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
30088
30291
|
/** The channels ARMED right now, each with its deadline. */
|
|
30089
30292
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30293
|
+
/**
|
|
30294
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30295
|
+
*
|
|
30296
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30297
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30298
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30299
|
+
*/
|
|
30300
|
+
opsLogRetentionDays: number().int().min(0),
|
|
30090
30301
|
persisted: boolean()
|
|
30091
30302
|
});
|
|
30092
30303
|
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(), {
|
|
@@ -30648,7 +30859,7 @@ var StationaryObjectSchema = object({
|
|
|
30648
30859
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
30649
30860
|
label: string().optional(),
|
|
30650
30861
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
30651
|
-
|
|
30862
|
+
keyFrameMediaId: number().int().optional()
|
|
30652
30863
|
});
|
|
30653
30864
|
var CameraOccupancySnapshotSchema = object({
|
|
30654
30865
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -31804,6 +32015,12 @@ Object.freeze({
|
|
|
31804
32015
|
addonId: null,
|
|
31805
32016
|
access: "create"
|
|
31806
32017
|
},
|
|
32018
|
+
"dataStoreProvider.upsert": {
|
|
32019
|
+
capName: "data-store-provider",
|
|
32020
|
+
capScope: "system",
|
|
32021
|
+
addonId: null,
|
|
32022
|
+
access: "create"
|
|
32023
|
+
},
|
|
31807
32024
|
"dayNight.getOptions": {
|
|
31808
32025
|
capName: "day-night",
|
|
31809
32026
|
capScope: "device",
|
|
@@ -34240,6 +34457,12 @@ Object.freeze({
|
|
|
34240
34457
|
addonId: null,
|
|
34241
34458
|
access: "view"
|
|
34242
34459
|
},
|
|
34460
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34461
|
+
capName: "pipeline-analytics",
|
|
34462
|
+
capScope: "device",
|
|
34463
|
+
addonId: null,
|
|
34464
|
+
access: "view"
|
|
34465
|
+
},
|
|
34243
34466
|
"pipelineAnalytics.listRecentTracks": {
|
|
34244
34467
|
capName: "pipeline-analytics",
|
|
34245
34468
|
capScope: "device",
|
|
@@ -35668,6 +35891,12 @@ Object.freeze({
|
|
|
35668
35891
|
addonId: null,
|
|
35669
35892
|
access: "create"
|
|
35670
35893
|
},
|
|
35894
|
+
"settingsStore.upsert": {
|
|
35895
|
+
capName: "settings-store",
|
|
35896
|
+
capScope: "system",
|
|
35897
|
+
addonId: null,
|
|
35898
|
+
access: "create"
|
|
35899
|
+
},
|
|
35671
35900
|
"smtpProvider.getStatus": {
|
|
35672
35901
|
capName: "smtp-provider",
|
|
35673
35902
|
capScope: "system",
|
|
@@ -38061,6 +38290,11 @@ Object.freeze({
|
|
|
38061
38290
|
form: "single",
|
|
38062
38291
|
optional: true
|
|
38063
38292
|
}],
|
|
38293
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38294
|
+
name: "deviceIds",
|
|
38295
|
+
form: "array",
|
|
38296
|
+
optional: false
|
|
38297
|
+
}],
|
|
38064
38298
|
"pipelineAnalytics.listRecentTracks": [{
|
|
38065
38299
|
name: "deviceIds",
|
|
38066
38300
|
form: "array",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-google",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.65",
|
|
4
4
|
"description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|