@camstack/addon-provider-homeassistant 1.2.115 → 1.2.117
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 +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/{dist-BPuEMYlM.mjs → dist-Badx--6A.mjs} +292 -58
- package/dist/{dist-1-owndOS.js → dist-By4s88My.js} +292 -58
- package/dist/ha-export/ha-export.addon.js +1 -1
- package/dist/ha-export/ha-export.addon.mjs +1 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-By4s88My.js");
|
|
3
3
|
let node_crypto = require("node:crypto");
|
|
4
4
|
let node_zlib = require("node:zlib");
|
|
5
5
|
//#region src/ha-device-source.ts
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-
|
|
1
|
+
import { $ as presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-Badx--6A.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
|
|
4
4
|
//#region src/ha-device-source.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-ZyX6jcse.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -559,7 +559,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
559
559
|
* a package zone — a newly-appeared stationary object of a package class
|
|
560
560
|
* that cleared the class / zone / dwell / size gates. Payload:
|
|
561
561
|
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
562
|
-
* entryId, className, zoneIds,
|
|
562
|
+
* entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
|
|
563
563
|
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
564
564
|
* this bus topic drives notifier rules + live UI. See
|
|
565
565
|
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
@@ -5345,7 +5345,7 @@ var ZodIssueCode = {
|
|
|
5345
5345
|
var ZodFirstPartyTypeKind;
|
|
5346
5346
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5347
5347
|
//#endregion
|
|
5348
|
-
//#region ../types/dist/sleep-
|
|
5348
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5349
5349
|
/**
|
|
5350
5350
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5351
5351
|
* window to float samples (D455).
|
|
@@ -7371,13 +7371,30 @@ new Set([
|
|
|
7371
7371
|
"scene",
|
|
7372
7372
|
"motion",
|
|
7373
7373
|
"object",
|
|
7374
|
-
"audio"
|
|
7374
|
+
"audio",
|
|
7375
|
+
"mosaic"
|
|
7375
7376
|
]);
|
|
7376
|
-
|
|
7377
|
+
/**
|
|
7378
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
7379
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
7380
|
+
* does not re-spell the list and drift from it.
|
|
7381
|
+
*/
|
|
7382
|
+
var EVENT_OWNER_TYPES = [
|
|
7377
7383
|
"motion",
|
|
7378
7384
|
"object",
|
|
7379
7385
|
"audio"
|
|
7380
|
-
]
|
|
7386
|
+
];
|
|
7387
|
+
/**
|
|
7388
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
7389
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
7390
|
+
* `(table, id)`).
|
|
7391
|
+
*
|
|
7392
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
7393
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
7394
|
+
* nothing failing until a caller asked.
|
|
7395
|
+
*/
|
|
7396
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
7397
|
+
new Set(EVENT_OWNER_TYPES);
|
|
7381
7398
|
/**
|
|
7382
7399
|
* Build an `IAddonRouteProvider` from a list of routes. Implements
|
|
7383
7400
|
* both the operator-facing `getRoutes` (returning route descriptors
|
|
@@ -7533,7 +7550,23 @@ var EncodeProfileSchema = object({
|
|
|
7533
7550
|
"zerolatency",
|
|
7534
7551
|
"film",
|
|
7535
7552
|
"animation"
|
|
7536
|
-
]).optional()
|
|
7553
|
+
]).optional(),
|
|
7554
|
+
/**
|
|
7555
|
+
* ONE slice per access unit.
|
|
7556
|
+
*
|
|
7557
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7558
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7559
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7560
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7561
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7562
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7563
|
+
*
|
|
7564
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7565
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7566
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7567
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7568
|
+
*/
|
|
7569
|
+
singleSlicePerFrame: boolean().optional()
|
|
7537
7570
|
}),
|
|
7538
7571
|
audio: union([literal("passthrough"), object({
|
|
7539
7572
|
codec: _enum([
|
|
@@ -7583,7 +7616,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7583
7616
|
audio: "passthrough"
|
|
7584
7617
|
};
|
|
7585
7618
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7586
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7619
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7587
7620
|
/**
|
|
7588
7621
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7589
7622
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -12787,6 +12820,16 @@ method(object({
|
|
|
12787
12820
|
filter: QueryFilterSchema.optional(),
|
|
12788
12821
|
columns: array(string()).readonly().optional()
|
|
12789
12822
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12823
|
+
namespace: string().optional(),
|
|
12824
|
+
collection: string(),
|
|
12825
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12826
|
+
* index on the collection. Never empty. */
|
|
12827
|
+
conflict: array(string()).readonly(),
|
|
12828
|
+
record: BulkRecordSchema
|
|
12829
|
+
}), object({
|
|
12830
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12831
|
+
* row's own id on an update. */
|
|
12832
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12790
12833
|
namespace: string().optional(),
|
|
12791
12834
|
collection: string(),
|
|
12792
12835
|
record: object({
|
|
@@ -12921,6 +12964,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12921
12964
|
id: union([string(), number()]) }), {
|
|
12922
12965
|
kind: "mutation",
|
|
12923
12966
|
auth: "admin"
|
|
12967
|
+
}), method(object({
|
|
12968
|
+
namespace: string().optional(),
|
|
12969
|
+
collection: string(),
|
|
12970
|
+
conflict: array(string()).readonly(),
|
|
12971
|
+
record: BulkRecordSchema
|
|
12972
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12973
|
+
kind: "mutation",
|
|
12974
|
+
auth: "admin"
|
|
12924
12975
|
}), method(object({
|
|
12925
12976
|
namespace: string().optional(),
|
|
12926
12977
|
collection: string(),
|
|
@@ -19520,8 +19571,8 @@ var TrackPositionSchema = object({
|
|
|
19520
19571
|
var TrackSnapshotSchema = object({
|
|
19521
19572
|
timestamp: number(),
|
|
19522
19573
|
position: TrackPositionSchema,
|
|
19523
|
-
/**
|
|
19524
|
-
|
|
19574
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
19575
|
+
mediaId: number().int()
|
|
19525
19576
|
});
|
|
19526
19577
|
/**
|
|
19527
19578
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -20125,14 +20176,14 @@ var ObjectEventSchema = object({
|
|
|
20125
20176
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
20126
20177
|
frameWidth: number().optional(),
|
|
20127
20178
|
frameHeight: number().optional(),
|
|
20128
|
-
/**
|
|
20129
|
-
|
|
20130
|
-
/** Design B:
|
|
20179
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
20180
|
+
mediaId: number().int().optional(),
|
|
20181
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
20131
20182
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
20132
|
-
* (`/addon/<addonId>/event-media/<
|
|
20183
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
20133
20184
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
20134
|
-
* sources — consumers fall back to `
|
|
20135
|
-
|
|
20185
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
20186
|
+
keyFrameMediaId: number().int().optional(),
|
|
20136
20187
|
/** Populated by B5 (recording playback URL for this event). */
|
|
20137
20188
|
mediaUrl: string().optional(),
|
|
20138
20189
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -20182,7 +20233,7 @@ var MediaFileKindEnum = _enum([
|
|
|
20182
20233
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
20183
20234
|
*
|
|
20184
20235
|
* `url` points at the `event-media` data plane
|
|
20185
|
-
* (`/addon/<addonId>/event-media/<
|
|
20236
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
20186
20237
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
20187
20238
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
20188
20239
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -20190,10 +20241,13 @@ var MediaFileKindEnum = _enum([
|
|
|
20190
20241
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
20191
20242
|
* (per-device scoping).
|
|
20192
20243
|
*
|
|
20193
|
-
* The URL is built from the row's
|
|
20194
|
-
*
|
|
20244
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
20245
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
20246
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
20195
20247
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
20196
|
-
* `faceCrop`/`plateCrop
|
|
20248
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
20249
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
20250
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
20197
20251
|
*
|
|
20198
20252
|
* ## `base64` is TRANSITIONAL and is going away
|
|
20199
20253
|
*
|
|
@@ -20206,7 +20260,19 @@ var MediaFileKindEnum = _enum([
|
|
|
20206
20260
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
20207
20261
|
*/
|
|
20208
20262
|
var MediaFileSchema = object({
|
|
20209
|
-
|
|
20263
|
+
/**
|
|
20264
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
20265
|
+
*
|
|
20266
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
20267
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
20268
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
20269
|
+
* different rows that spell the same number, and a track whose
|
|
20270
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
20271
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
20272
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
20273
|
+
* at all.
|
|
20274
|
+
*/
|
|
20275
|
+
mediaId: number().int(),
|
|
20210
20276
|
kind: MediaFileKindEnum,
|
|
20211
20277
|
sizeBytes: number(),
|
|
20212
20278
|
timestamp: number()
|
|
@@ -20314,7 +20380,7 @@ var RetrainTrackSchema = object({
|
|
|
20314
20380
|
});
|
|
20315
20381
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
20316
20382
|
var RetrainFrameCandidateSchema = object({
|
|
20317
|
-
|
|
20383
|
+
mediaId: number().int(),
|
|
20318
20384
|
kind: MediaFileKindEnum,
|
|
20319
20385
|
timestamp: number(),
|
|
20320
20386
|
sizeBytes: number().int(),
|
|
@@ -20328,7 +20394,7 @@ var RetrainFrameSchema = object({
|
|
|
20328
20394
|
deviceId: number(),
|
|
20329
20395
|
trackId: string(),
|
|
20330
20396
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
20331
|
-
|
|
20397
|
+
sourceMediaId: number().int(),
|
|
20332
20398
|
sourceKind: MediaFileKindEnum,
|
|
20333
20399
|
sizeBytes: number().int(),
|
|
20334
20400
|
width: number().int(),
|
|
@@ -20344,7 +20410,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
20344
20410
|
var RetrainFrameSelectionSchema = object({
|
|
20345
20411
|
copied: array(RetrainFrameSchema).readonly(),
|
|
20346
20412
|
refused: array(object({
|
|
20347
|
-
|
|
20413
|
+
sourceMediaId: number().int(),
|
|
20348
20414
|
reason: RetrainCopyRefusalSchema
|
|
20349
20415
|
})).readonly()
|
|
20350
20416
|
});
|
|
@@ -20352,7 +20418,7 @@ var RetrainFrameListSchema = object({
|
|
|
20352
20418
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
20353
20419
|
copies: array(RetrainFrameSchema).readonly(),
|
|
20354
20420
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
20355
|
-
|
|
20421
|
+
autoPickMediaId: number().int().optional()
|
|
20356
20422
|
});
|
|
20357
20423
|
/** What the operator asked the assist to look for. */
|
|
20358
20424
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -20447,9 +20513,11 @@ var RecentTracksQueryInput = object({
|
|
|
20447
20513
|
});
|
|
20448
20514
|
/**
|
|
20449
20515
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
20450
|
-
* `
|
|
20451
|
-
* served by the event-media plane
|
|
20452
|
-
* member visible has been materialised
|
|
20516
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
20517
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
20518
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
20519
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
20520
|
+
* row once event ids became per-table rowids).
|
|
20453
20521
|
*/
|
|
20454
20522
|
var SummarySchema = object({
|
|
20455
20523
|
id: string(),
|
|
@@ -20458,19 +20526,115 @@ var SummarySchema = object({
|
|
|
20458
20526
|
lastActiveAt: number(),
|
|
20459
20527
|
sealedAt: number().nullable(),
|
|
20460
20528
|
memberCount: number().int().nonnegative(),
|
|
20461
|
-
|
|
20529
|
+
groupShotMediaId: number().int().nullable()
|
|
20462
20530
|
});
|
|
20463
20531
|
var SummariesQueryInput = object({
|
|
20464
20532
|
deviceIds: array(number()).min(1),
|
|
20465
20533
|
since: number().optional(),
|
|
20466
20534
|
until: number().optional(),
|
|
20467
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20535
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20536
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20537
|
+
* meaning of "dog" on every summary surface. */
|
|
20538
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20468
20539
|
});
|
|
20469
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20470
20540
|
var SummaryDetailSchema = object({
|
|
20471
20541
|
summary: SummarySchema,
|
|
20472
|
-
/**
|
|
20473
|
-
|
|
20542
|
+
/** Members in absorption order, oldest join first. */
|
|
20543
|
+
members: array(object({
|
|
20544
|
+
trackId: string(),
|
|
20545
|
+
/**
|
|
20546
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20547
|
+
* and the track no longer exists to fill it.
|
|
20548
|
+
*
|
|
20549
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20550
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20551
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20552
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20553
|
+
* drift from the members it claims to describe.
|
|
20554
|
+
*/
|
|
20555
|
+
className: string().nullable(),
|
|
20556
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20557
|
+
role: _enum([
|
|
20558
|
+
"primary",
|
|
20559
|
+
"sibling",
|
|
20560
|
+
"child"
|
|
20561
|
+
]).nullable(),
|
|
20562
|
+
joinedAt: number(),
|
|
20563
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20564
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20565
|
+
label: string().optional(),
|
|
20566
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20567
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20568
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20569
|
+
subLabel: string().optional()
|
|
20570
|
+
})).readonly()
|
|
20571
|
+
});
|
|
20572
|
+
/**
|
|
20573
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20574
|
+
*
|
|
20575
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20576
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20577
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20578
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20579
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20580
|
+
* draw two hundred badges.
|
|
20581
|
+
*/
|
|
20582
|
+
var SummaryListItemSchema = object({
|
|
20583
|
+
summary: SummarySchema,
|
|
20584
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20585
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20586
|
+
classes: array(object({
|
|
20587
|
+
className: string().nullable(),
|
|
20588
|
+
count: number().int().positive()
|
|
20589
|
+
})).readonly()
|
|
20590
|
+
});
|
|
20591
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20592
|
+
/**
|
|
20593
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20594
|
+
*
|
|
20595
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20596
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20597
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20598
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20599
|
+
* "newest" means, on one screen.
|
|
20600
|
+
*/
|
|
20601
|
+
var RecentSummariesQueryInput = object({
|
|
20602
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20603
|
+
deviceIds: array(number()),
|
|
20604
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20605
|
+
since: number().optional(),
|
|
20606
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20607
|
+
until: number().optional(),
|
|
20608
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20609
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20610
|
+
cursor: string().optional(),
|
|
20611
|
+
/**
|
|
20612
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20613
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20614
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20615
|
+
* make the operator's one filter component produce two shapes.
|
|
20616
|
+
*
|
|
20617
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20618
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20619
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20620
|
+
* about its primary.
|
|
20621
|
+
*
|
|
20622
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20623
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20624
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20625
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20626
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20627
|
+
*
|
|
20628
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20629
|
+
*/
|
|
20630
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20631
|
+
});
|
|
20632
|
+
var RecentSummariesPageSchema = object({
|
|
20633
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20634
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20635
|
+
* whichever feed drew it. */
|
|
20636
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20637
|
+
nextCursor: string().nullable()
|
|
20474
20638
|
});
|
|
20475
20639
|
var RecentTracksPageSchema = object({
|
|
20476
20640
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20884,7 +21048,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20884
21048
|
classes: array(string()).optional(),
|
|
20885
21049
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20886
21050
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20887
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
21051
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20888
21052
|
kind: "mutation",
|
|
20889
21053
|
auth: "admin"
|
|
20890
21054
|
}), 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({
|
|
@@ -21012,7 +21176,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21012
21176
|
}), method(object({
|
|
21013
21177
|
deviceId: number(),
|
|
21014
21178
|
trackId: string(),
|
|
21015
|
-
|
|
21179
|
+
mediaIds: array(number().int()).min(1)
|
|
21016
21180
|
}), RetrainFrameSelectionSchema, {
|
|
21017
21181
|
kind: "mutation",
|
|
21018
21182
|
auth: "admin"
|
|
@@ -21080,7 +21244,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21080
21244
|
kind: "query",
|
|
21081
21245
|
auth: "admin"
|
|
21082
21246
|
}), method(object({
|
|
21083
|
-
|
|
21247
|
+
/** Which of the three event tables owns the row. */
|
|
21248
|
+
ownerType: EventOwnerTypeSchema,
|
|
21249
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
21250
|
+
eventId: number().int(),
|
|
21084
21251
|
kind: MediaFileKindEnum.optional(),
|
|
21085
21252
|
deviceId: number()
|
|
21086
21253
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -21091,7 +21258,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21091
21258
|
trackId: string(),
|
|
21092
21259
|
deviceId: number()
|
|
21093
21260
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
21094
|
-
|
|
21261
|
+
ownerType: EventOwnerTypeSchema,
|
|
21262
|
+
eventId: number().int(),
|
|
21095
21263
|
deviceId: number()
|
|
21096
21264
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
21097
21265
|
kind: "mutation",
|
|
@@ -26373,8 +26541,8 @@ var IdentitySchema = object({
|
|
|
26373
26541
|
id: string(),
|
|
26374
26542
|
name: string(),
|
|
26375
26543
|
sampleCount: number().int().nonnegative(),
|
|
26376
|
-
|
|
26377
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
26544
|
+
coverMediaId: number().int().optional(),
|
|
26545
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
26378
26546
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
26379
26547
|
coverBase64: string().optional()
|
|
26380
26548
|
});
|
|
@@ -26400,8 +26568,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
26400
26568
|
enrolledAt: number().int(),
|
|
26401
26569
|
deviceId: number().int().optional(),
|
|
26402
26570
|
source: _enum(["detected", "photo"]),
|
|
26403
|
-
/** The enrolled crop's media
|
|
26404
|
-
|
|
26571
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
26572
|
+
mediaId: number().int().optional(),
|
|
26405
26573
|
/**
|
|
26406
26574
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
26407
26575
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -26470,15 +26638,15 @@ var FaceInfoSchema = object({
|
|
|
26470
26638
|
*/
|
|
26471
26639
|
cropUrl: string().optional(),
|
|
26472
26640
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
26473
|
-
* view draw the box over the native `
|
|
26641
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
26474
26642
|
* legacy rows written before design B. */
|
|
26475
26643
|
faceBbox: BoundingBoxSchema.optional(),
|
|
26476
26644
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
26477
26645
|
* Fetch the native JPEG via the event-media data-plane
|
|
26478
|
-
* (`/addon/<addonId>/event-media/<
|
|
26646
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
26479
26647
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
26480
26648
|
* back to the inline `base64` face crop. */
|
|
26481
|
-
|
|
26649
|
+
keyFrameMediaId: number().int().optional(),
|
|
26482
26650
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
26483
26651
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
26484
26652
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -26547,11 +26715,14 @@ var FaceClusterSchema = object({
|
|
|
26547
26715
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
26548
26716
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
26549
26717
|
*
|
|
26550
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
26551
|
-
* media
|
|
26718
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
26719
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
26720
|
+
* access decision.
|
|
26552
26721
|
*/
|
|
26553
26722
|
var MediaFileLiteSchema$1 = object({
|
|
26554
|
-
|
|
26723
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
26724
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
26725
|
+
mediaId: number().int(),
|
|
26555
26726
|
kind: string(),
|
|
26556
26727
|
url: string(),
|
|
26557
26728
|
sizeBytes: number(),
|
|
@@ -26568,7 +26739,7 @@ method(object({
|
|
|
26568
26739
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
26569
26740
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
26570
26741
|
*
|
|
26571
|
-
* Nothing loses its avatar: `
|
|
26742
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
26572
26743
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
26573
26744
|
*
|
|
26574
26745
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -29931,8 +30102,8 @@ var VehicleSchema = object({
|
|
|
29931
30102
|
id: string(),
|
|
29932
30103
|
name: string(),
|
|
29933
30104
|
sampleCount: number().int().nonnegative(),
|
|
29934
|
-
|
|
29935
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
30105
|
+
coverMediaId: number().int().optional(),
|
|
30106
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
29936
30107
|
coverBase64: string().optional()
|
|
29937
30108
|
});
|
|
29938
30109
|
var VehicleSampleInfoSchema = object({
|
|
@@ -29965,7 +30136,7 @@ var PlateInfoSchema = object({
|
|
|
29965
30136
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
29966
30137
|
plateBbox: BoundingBoxSchema.optional(),
|
|
29967
30138
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
29968
|
-
|
|
30139
|
+
keyFrameMediaId: number().int().optional(),
|
|
29969
30140
|
base64: string().optional(),
|
|
29970
30141
|
/**
|
|
29971
30142
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -29986,11 +30157,14 @@ var PlateInfoSchema = object({
|
|
|
29986
30157
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
29987
30158
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
29988
30159
|
*
|
|
29989
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
29990
|
-
* media
|
|
30160
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
30161
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
30162
|
+
* access decision.
|
|
29991
30163
|
*/
|
|
29992
30164
|
var MediaFileLiteSchema = object({
|
|
29993
|
-
|
|
30165
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
30166
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
30167
|
+
mediaId: number().int(),
|
|
29994
30168
|
kind: string(),
|
|
29995
30169
|
url: string(),
|
|
29996
30170
|
sizeBytes: number(),
|
|
@@ -30049,7 +30223,7 @@ method(object({
|
|
|
30049
30223
|
}), method(object({
|
|
30050
30224
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
30051
30225
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
30052
|
-
* option; `
|
|
30226
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
30053
30227
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
30054
30228
|
* resolves to `false` and is exactly the intended default. */
|
|
30055
30229
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -31618,7 +31792,14 @@ var SceneReferenceSchema = object({
|
|
|
31618
31792
|
modelId: string(),
|
|
31619
31793
|
condition: SceneConditionSchema,
|
|
31620
31794
|
capturedAt: number(),
|
|
31621
|
-
|
|
31795
|
+
/**
|
|
31796
|
+
* The reference thumbnail's media ROW id (D482).
|
|
31797
|
+
*
|
|
31798
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
31799
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
31800
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
31801
|
+
*/
|
|
31802
|
+
thumbnailMediaId: number().int().optional(),
|
|
31622
31803
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
31623
31804
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
31624
31805
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -32709,7 +32890,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
32709
32890
|
* disarmed the channels it did not mention would make the Levels page and
|
|
32710
32891
|
* the Diagnostics page fight over the same value.
|
|
32711
32892
|
*/
|
|
32712
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
32893
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
32894
|
+
/**
|
|
32895
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
32896
|
+
* retention actually deleted.
|
|
32897
|
+
*
|
|
32898
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
32899
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
32900
|
+
* this system is configured through this one document, and a retention audit
|
|
32901
|
+
* configured somewhere else is a second place to look when the question is
|
|
32902
|
+
* "what happened to my data".
|
|
32903
|
+
*
|
|
32904
|
+
* That placement has a cost worth stating: this document ships in the
|
|
32905
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
32906
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
32907
|
+
*
|
|
32908
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
32909
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
32910
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
32911
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
32912
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
32913
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
32914
|
+
*/
|
|
32915
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
32713
32916
|
});
|
|
32714
32917
|
/**
|
|
32715
32918
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -32782,6 +32985,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
32782
32985
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
32783
32986
|
/** The channels ARMED right now, each with its deadline. */
|
|
32784
32987
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
32988
|
+
/**
|
|
32989
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
32990
|
+
*
|
|
32991
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
32992
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
32993
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
32994
|
+
*/
|
|
32995
|
+
opsLogRetentionDays: number().int().min(0),
|
|
32785
32996
|
persisted: boolean()
|
|
32786
32997
|
});
|
|
32787
32998
|
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(), {
|
|
@@ -33602,7 +33813,7 @@ var StationaryObjectSchema = object({
|
|
|
33602
33813
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
33603
33814
|
label: string().optional(),
|
|
33604
33815
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
33605
|
-
|
|
33816
|
+
keyFrameMediaId: number().int().optional()
|
|
33606
33817
|
});
|
|
33607
33818
|
var CameraOccupancySnapshotSchema = object({
|
|
33608
33819
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -36340,6 +36551,12 @@ Object.freeze({
|
|
|
36340
36551
|
addonId: null,
|
|
36341
36552
|
access: "create"
|
|
36342
36553
|
},
|
|
36554
|
+
"dataStoreProvider.upsert": {
|
|
36555
|
+
capName: "data-store-provider",
|
|
36556
|
+
capScope: "system",
|
|
36557
|
+
addonId: null,
|
|
36558
|
+
access: "create"
|
|
36559
|
+
},
|
|
36343
36560
|
"dayNight.getOptions": {
|
|
36344
36561
|
capName: "day-night",
|
|
36345
36562
|
capScope: "device",
|
|
@@ -38776,6 +38993,12 @@ Object.freeze({
|
|
|
38776
38993
|
addonId: null,
|
|
38777
38994
|
access: "view"
|
|
38778
38995
|
},
|
|
38996
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
38997
|
+
capName: "pipeline-analytics",
|
|
38998
|
+
capScope: "device",
|
|
38999
|
+
addonId: null,
|
|
39000
|
+
access: "view"
|
|
39001
|
+
},
|
|
38779
39002
|
"pipelineAnalytics.listRecentTracks": {
|
|
38780
39003
|
capName: "pipeline-analytics",
|
|
38781
39004
|
capScope: "device",
|
|
@@ -40204,6 +40427,12 @@ Object.freeze({
|
|
|
40204
40427
|
addonId: null,
|
|
40205
40428
|
access: "create"
|
|
40206
40429
|
},
|
|
40430
|
+
"settingsStore.upsert": {
|
|
40431
|
+
capName: "settings-store",
|
|
40432
|
+
capScope: "system",
|
|
40433
|
+
addonId: null,
|
|
40434
|
+
access: "create"
|
|
40435
|
+
},
|
|
40207
40436
|
"smtpProvider.getStatus": {
|
|
40208
40437
|
capName: "smtp-provider",
|
|
40209
40438
|
capScope: "system",
|
|
@@ -42597,6 +42826,11 @@ Object.freeze({
|
|
|
42597
42826
|
form: "single",
|
|
42598
42827
|
optional: true
|
|
42599
42828
|
}],
|
|
42829
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
42830
|
+
name: "deviceIds",
|
|
42831
|
+
form: "array",
|
|
42832
|
+
optional: false
|
|
42833
|
+
}],
|
|
42600
42834
|
"pipelineAnalytics.listRecentTracks": [{
|
|
42601
42835
|
name: "deviceIds",
|
|
42602
42836
|
form: "array",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-ZyX6jcse.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -559,7 +559,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
559
559
|
* a package zone — a newly-appeared stationary object of a package class
|
|
560
560
|
* that cleared the class / zone / dwell / size gates. Payload:
|
|
561
561
|
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
562
|
-
* entryId, className, zoneIds,
|
|
562
|
+
* entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
|
|
563
563
|
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
564
564
|
* this bus topic drives notifier rules + live UI. See
|
|
565
565
|
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
@@ -5345,7 +5345,7 @@ var ZodIssueCode = {
|
|
|
5345
5345
|
var ZodFirstPartyTypeKind;
|
|
5346
5346
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5347
5347
|
//#endregion
|
|
5348
|
-
//#region ../types/dist/sleep-
|
|
5348
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5349
5349
|
/**
|
|
5350
5350
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5351
5351
|
* window to float samples (D455).
|
|
@@ -7371,13 +7371,30 @@ new Set([
|
|
|
7371
7371
|
"scene",
|
|
7372
7372
|
"motion",
|
|
7373
7373
|
"object",
|
|
7374
|
-
"audio"
|
|
7374
|
+
"audio",
|
|
7375
|
+
"mosaic"
|
|
7375
7376
|
]);
|
|
7376
|
-
|
|
7377
|
+
/**
|
|
7378
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
7379
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
7380
|
+
* does not re-spell the list and drift from it.
|
|
7381
|
+
*/
|
|
7382
|
+
var EVENT_OWNER_TYPES = [
|
|
7377
7383
|
"motion",
|
|
7378
7384
|
"object",
|
|
7379
7385
|
"audio"
|
|
7380
|
-
]
|
|
7386
|
+
];
|
|
7387
|
+
/**
|
|
7388
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
7389
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
7390
|
+
* `(table, id)`).
|
|
7391
|
+
*
|
|
7392
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
7393
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
7394
|
+
* nothing failing until a caller asked.
|
|
7395
|
+
*/
|
|
7396
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
7397
|
+
new Set(EVENT_OWNER_TYPES);
|
|
7381
7398
|
/**
|
|
7382
7399
|
* Build an `IAddonRouteProvider` from a list of routes. Implements
|
|
7383
7400
|
* both the operator-facing `getRoutes` (returning route descriptors
|
|
@@ -7533,7 +7550,23 @@ var EncodeProfileSchema = object({
|
|
|
7533
7550
|
"zerolatency",
|
|
7534
7551
|
"film",
|
|
7535
7552
|
"animation"
|
|
7536
|
-
]).optional()
|
|
7553
|
+
]).optional(),
|
|
7554
|
+
/**
|
|
7555
|
+
* ONE slice per access unit.
|
|
7556
|
+
*
|
|
7557
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7558
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7559
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7560
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7561
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7562
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7563
|
+
*
|
|
7564
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7565
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7566
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7567
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7568
|
+
*/
|
|
7569
|
+
singleSlicePerFrame: boolean().optional()
|
|
7537
7570
|
}),
|
|
7538
7571
|
audio: union([literal("passthrough"), object({
|
|
7539
7572
|
codec: _enum([
|
|
@@ -7583,7 +7616,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7583
7616
|
audio: "passthrough"
|
|
7584
7617
|
};
|
|
7585
7618
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7586
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7619
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7587
7620
|
/**
|
|
7588
7621
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7589
7622
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -12787,6 +12820,16 @@ method(object({
|
|
|
12787
12820
|
filter: QueryFilterSchema.optional(),
|
|
12788
12821
|
columns: array(string()).readonly().optional()
|
|
12789
12822
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12823
|
+
namespace: string().optional(),
|
|
12824
|
+
collection: string(),
|
|
12825
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12826
|
+
* index on the collection. Never empty. */
|
|
12827
|
+
conflict: array(string()).readonly(),
|
|
12828
|
+
record: BulkRecordSchema
|
|
12829
|
+
}), object({
|
|
12830
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12831
|
+
* row's own id on an update. */
|
|
12832
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12790
12833
|
namespace: string().optional(),
|
|
12791
12834
|
collection: string(),
|
|
12792
12835
|
record: object({
|
|
@@ -12921,6 +12964,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12921
12964
|
id: union([string(), number()]) }), {
|
|
12922
12965
|
kind: "mutation",
|
|
12923
12966
|
auth: "admin"
|
|
12967
|
+
}), method(object({
|
|
12968
|
+
namespace: string().optional(),
|
|
12969
|
+
collection: string(),
|
|
12970
|
+
conflict: array(string()).readonly(),
|
|
12971
|
+
record: BulkRecordSchema
|
|
12972
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12973
|
+
kind: "mutation",
|
|
12974
|
+
auth: "admin"
|
|
12924
12975
|
}), method(object({
|
|
12925
12976
|
namespace: string().optional(),
|
|
12926
12977
|
collection: string(),
|
|
@@ -19520,8 +19571,8 @@ var TrackPositionSchema = object({
|
|
|
19520
19571
|
var TrackSnapshotSchema = object({
|
|
19521
19572
|
timestamp: number(),
|
|
19522
19573
|
position: TrackPositionSchema,
|
|
19523
|
-
/**
|
|
19524
|
-
|
|
19574
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
19575
|
+
mediaId: number().int()
|
|
19525
19576
|
});
|
|
19526
19577
|
/**
|
|
19527
19578
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -20125,14 +20176,14 @@ var ObjectEventSchema = object({
|
|
|
20125
20176
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
20126
20177
|
frameWidth: number().optional(),
|
|
20127
20178
|
frameHeight: number().optional(),
|
|
20128
|
-
/**
|
|
20129
|
-
|
|
20130
|
-
/** Design B:
|
|
20179
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
20180
|
+
mediaId: number().int().optional(),
|
|
20181
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
20131
20182
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
20132
|
-
* (`/addon/<addonId>/event-media/<
|
|
20183
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
20133
20184
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
20134
|
-
* sources — consumers fall back to `
|
|
20135
|
-
|
|
20185
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
20186
|
+
keyFrameMediaId: number().int().optional(),
|
|
20136
20187
|
/** Populated by B5 (recording playback URL for this event). */
|
|
20137
20188
|
mediaUrl: string().optional(),
|
|
20138
20189
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -20182,7 +20233,7 @@ var MediaFileKindEnum = _enum([
|
|
|
20182
20233
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
20183
20234
|
*
|
|
20184
20235
|
* `url` points at the `event-media` data plane
|
|
20185
|
-
* (`/addon/<addonId>/event-media/<
|
|
20236
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
20186
20237
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
20187
20238
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
20188
20239
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -20190,10 +20241,13 @@ var MediaFileKindEnum = _enum([
|
|
|
20190
20241
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
20191
20242
|
* (per-device scoping).
|
|
20192
20243
|
*
|
|
20193
|
-
* The URL is built from the row's
|
|
20194
|
-
*
|
|
20244
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
20245
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
20246
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
20195
20247
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
20196
|
-
* `faceCrop`/`plateCrop
|
|
20248
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
20249
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
20250
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
20197
20251
|
*
|
|
20198
20252
|
* ## `base64` is TRANSITIONAL and is going away
|
|
20199
20253
|
*
|
|
@@ -20206,7 +20260,19 @@ var MediaFileKindEnum = _enum([
|
|
|
20206
20260
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
20207
20261
|
*/
|
|
20208
20262
|
var MediaFileSchema = object({
|
|
20209
|
-
|
|
20263
|
+
/**
|
|
20264
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
20265
|
+
*
|
|
20266
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
20267
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
20268
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
20269
|
+
* different rows that spell the same number, and a track whose
|
|
20270
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
20271
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
20272
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
20273
|
+
* at all.
|
|
20274
|
+
*/
|
|
20275
|
+
mediaId: number().int(),
|
|
20210
20276
|
kind: MediaFileKindEnum,
|
|
20211
20277
|
sizeBytes: number(),
|
|
20212
20278
|
timestamp: number()
|
|
@@ -20314,7 +20380,7 @@ var RetrainTrackSchema = object({
|
|
|
20314
20380
|
});
|
|
20315
20381
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
20316
20382
|
var RetrainFrameCandidateSchema = object({
|
|
20317
|
-
|
|
20383
|
+
mediaId: number().int(),
|
|
20318
20384
|
kind: MediaFileKindEnum,
|
|
20319
20385
|
timestamp: number(),
|
|
20320
20386
|
sizeBytes: number().int(),
|
|
@@ -20328,7 +20394,7 @@ var RetrainFrameSchema = object({
|
|
|
20328
20394
|
deviceId: number(),
|
|
20329
20395
|
trackId: string(),
|
|
20330
20396
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
20331
|
-
|
|
20397
|
+
sourceMediaId: number().int(),
|
|
20332
20398
|
sourceKind: MediaFileKindEnum,
|
|
20333
20399
|
sizeBytes: number().int(),
|
|
20334
20400
|
width: number().int(),
|
|
@@ -20344,7 +20410,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
20344
20410
|
var RetrainFrameSelectionSchema = object({
|
|
20345
20411
|
copied: array(RetrainFrameSchema).readonly(),
|
|
20346
20412
|
refused: array(object({
|
|
20347
|
-
|
|
20413
|
+
sourceMediaId: number().int(),
|
|
20348
20414
|
reason: RetrainCopyRefusalSchema
|
|
20349
20415
|
})).readonly()
|
|
20350
20416
|
});
|
|
@@ -20352,7 +20418,7 @@ var RetrainFrameListSchema = object({
|
|
|
20352
20418
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
20353
20419
|
copies: array(RetrainFrameSchema).readonly(),
|
|
20354
20420
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
20355
|
-
|
|
20421
|
+
autoPickMediaId: number().int().optional()
|
|
20356
20422
|
});
|
|
20357
20423
|
/** What the operator asked the assist to look for. */
|
|
20358
20424
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -20447,9 +20513,11 @@ var RecentTracksQueryInput = object({
|
|
|
20447
20513
|
});
|
|
20448
20514
|
/**
|
|
20449
20515
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
20450
|
-
* `
|
|
20451
|
-
* served by the event-media plane
|
|
20452
|
-
* member visible has been materialised
|
|
20516
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
20517
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
20518
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
20519
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
20520
|
+
* row once event ids became per-table rowids).
|
|
20453
20521
|
*/
|
|
20454
20522
|
var SummarySchema = object({
|
|
20455
20523
|
id: string(),
|
|
@@ -20458,19 +20526,115 @@ var SummarySchema = object({
|
|
|
20458
20526
|
lastActiveAt: number(),
|
|
20459
20527
|
sealedAt: number().nullable(),
|
|
20460
20528
|
memberCount: number().int().nonnegative(),
|
|
20461
|
-
|
|
20529
|
+
groupShotMediaId: number().int().nullable()
|
|
20462
20530
|
});
|
|
20463
20531
|
var SummariesQueryInput = object({
|
|
20464
20532
|
deviceIds: array(number()).min(1),
|
|
20465
20533
|
since: number().optional(),
|
|
20466
20534
|
until: number().optional(),
|
|
20467
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20535
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20536
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20537
|
+
* meaning of "dog" on every summary surface. */
|
|
20538
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20468
20539
|
});
|
|
20469
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20470
20540
|
var SummaryDetailSchema = object({
|
|
20471
20541
|
summary: SummarySchema,
|
|
20472
|
-
/**
|
|
20473
|
-
|
|
20542
|
+
/** Members in absorption order, oldest join first. */
|
|
20543
|
+
members: array(object({
|
|
20544
|
+
trackId: string(),
|
|
20545
|
+
/**
|
|
20546
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20547
|
+
* and the track no longer exists to fill it.
|
|
20548
|
+
*
|
|
20549
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20550
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20551
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20552
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20553
|
+
* drift from the members it claims to describe.
|
|
20554
|
+
*/
|
|
20555
|
+
className: string().nullable(),
|
|
20556
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20557
|
+
role: _enum([
|
|
20558
|
+
"primary",
|
|
20559
|
+
"sibling",
|
|
20560
|
+
"child"
|
|
20561
|
+
]).nullable(),
|
|
20562
|
+
joinedAt: number(),
|
|
20563
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20564
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20565
|
+
label: string().optional(),
|
|
20566
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20567
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20568
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20569
|
+
subLabel: string().optional()
|
|
20570
|
+
})).readonly()
|
|
20571
|
+
});
|
|
20572
|
+
/**
|
|
20573
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20574
|
+
*
|
|
20575
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20576
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20577
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20578
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20579
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20580
|
+
* draw two hundred badges.
|
|
20581
|
+
*/
|
|
20582
|
+
var SummaryListItemSchema = object({
|
|
20583
|
+
summary: SummarySchema,
|
|
20584
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20585
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20586
|
+
classes: array(object({
|
|
20587
|
+
className: string().nullable(),
|
|
20588
|
+
count: number().int().positive()
|
|
20589
|
+
})).readonly()
|
|
20590
|
+
});
|
|
20591
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20592
|
+
/**
|
|
20593
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20594
|
+
*
|
|
20595
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20596
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20597
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20598
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20599
|
+
* "newest" means, on one screen.
|
|
20600
|
+
*/
|
|
20601
|
+
var RecentSummariesQueryInput = object({
|
|
20602
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20603
|
+
deviceIds: array(number()),
|
|
20604
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20605
|
+
since: number().optional(),
|
|
20606
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20607
|
+
until: number().optional(),
|
|
20608
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20609
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20610
|
+
cursor: string().optional(),
|
|
20611
|
+
/**
|
|
20612
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20613
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20614
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20615
|
+
* make the operator's one filter component produce two shapes.
|
|
20616
|
+
*
|
|
20617
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20618
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20619
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20620
|
+
* about its primary.
|
|
20621
|
+
*
|
|
20622
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20623
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20624
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20625
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20626
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20627
|
+
*
|
|
20628
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20629
|
+
*/
|
|
20630
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20631
|
+
});
|
|
20632
|
+
var RecentSummariesPageSchema = object({
|
|
20633
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20634
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20635
|
+
* whichever feed drew it. */
|
|
20636
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20637
|
+
nextCursor: string().nullable()
|
|
20474
20638
|
});
|
|
20475
20639
|
var RecentTracksPageSchema = object({
|
|
20476
20640
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20884,7 +21048,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20884
21048
|
classes: array(string()).optional(),
|
|
20885
21049
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20886
21050
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20887
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
21051
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20888
21052
|
kind: "mutation",
|
|
20889
21053
|
auth: "admin"
|
|
20890
21054
|
}), 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({
|
|
@@ -21012,7 +21176,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21012
21176
|
}), method(object({
|
|
21013
21177
|
deviceId: number(),
|
|
21014
21178
|
trackId: string(),
|
|
21015
|
-
|
|
21179
|
+
mediaIds: array(number().int()).min(1)
|
|
21016
21180
|
}), RetrainFrameSelectionSchema, {
|
|
21017
21181
|
kind: "mutation",
|
|
21018
21182
|
auth: "admin"
|
|
@@ -21080,7 +21244,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21080
21244
|
kind: "query",
|
|
21081
21245
|
auth: "admin"
|
|
21082
21246
|
}), method(object({
|
|
21083
|
-
|
|
21247
|
+
/** Which of the three event tables owns the row. */
|
|
21248
|
+
ownerType: EventOwnerTypeSchema,
|
|
21249
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
21250
|
+
eventId: number().int(),
|
|
21084
21251
|
kind: MediaFileKindEnum.optional(),
|
|
21085
21252
|
deviceId: number()
|
|
21086
21253
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -21091,7 +21258,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21091
21258
|
trackId: string(),
|
|
21092
21259
|
deviceId: number()
|
|
21093
21260
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
21094
|
-
|
|
21261
|
+
ownerType: EventOwnerTypeSchema,
|
|
21262
|
+
eventId: number().int(),
|
|
21095
21263
|
deviceId: number()
|
|
21096
21264
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
21097
21265
|
kind: "mutation",
|
|
@@ -26373,8 +26541,8 @@ var IdentitySchema = object({
|
|
|
26373
26541
|
id: string(),
|
|
26374
26542
|
name: string(),
|
|
26375
26543
|
sampleCount: number().int().nonnegative(),
|
|
26376
|
-
|
|
26377
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
26544
|
+
coverMediaId: number().int().optional(),
|
|
26545
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
26378
26546
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
26379
26547
|
coverBase64: string().optional()
|
|
26380
26548
|
});
|
|
@@ -26400,8 +26568,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
26400
26568
|
enrolledAt: number().int(),
|
|
26401
26569
|
deviceId: number().int().optional(),
|
|
26402
26570
|
source: _enum(["detected", "photo"]),
|
|
26403
|
-
/** The enrolled crop's media
|
|
26404
|
-
|
|
26571
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
26572
|
+
mediaId: number().int().optional(),
|
|
26405
26573
|
/**
|
|
26406
26574
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
26407
26575
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -26470,15 +26638,15 @@ var FaceInfoSchema = object({
|
|
|
26470
26638
|
*/
|
|
26471
26639
|
cropUrl: string().optional(),
|
|
26472
26640
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
26473
|
-
* view draw the box over the native `
|
|
26641
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
26474
26642
|
* legacy rows written before design B. */
|
|
26475
26643
|
faceBbox: BoundingBoxSchema.optional(),
|
|
26476
26644
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
26477
26645
|
* Fetch the native JPEG via the event-media data-plane
|
|
26478
|
-
* (`/addon/<addonId>/event-media/<
|
|
26646
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
26479
26647
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
26480
26648
|
* back to the inline `base64` face crop. */
|
|
26481
|
-
|
|
26649
|
+
keyFrameMediaId: number().int().optional(),
|
|
26482
26650
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
26483
26651
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
26484
26652
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -26547,11 +26715,14 @@ var FaceClusterSchema = object({
|
|
|
26547
26715
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
26548
26716
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
26549
26717
|
*
|
|
26550
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
26551
|
-
* media
|
|
26718
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
26719
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
26720
|
+
* access decision.
|
|
26552
26721
|
*/
|
|
26553
26722
|
var MediaFileLiteSchema$1 = object({
|
|
26554
|
-
|
|
26723
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
26724
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
26725
|
+
mediaId: number().int(),
|
|
26555
26726
|
kind: string(),
|
|
26556
26727
|
url: string(),
|
|
26557
26728
|
sizeBytes: number(),
|
|
@@ -26568,7 +26739,7 @@ method(object({
|
|
|
26568
26739
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
26569
26740
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
26570
26741
|
*
|
|
26571
|
-
* Nothing loses its avatar: `
|
|
26742
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
26572
26743
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
26573
26744
|
*
|
|
26574
26745
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -29931,8 +30102,8 @@ var VehicleSchema = object({
|
|
|
29931
30102
|
id: string(),
|
|
29932
30103
|
name: string(),
|
|
29933
30104
|
sampleCount: number().int().nonnegative(),
|
|
29934
|
-
|
|
29935
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
30105
|
+
coverMediaId: number().int().optional(),
|
|
30106
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
29936
30107
|
coverBase64: string().optional()
|
|
29937
30108
|
});
|
|
29938
30109
|
var VehicleSampleInfoSchema = object({
|
|
@@ -29965,7 +30136,7 @@ var PlateInfoSchema = object({
|
|
|
29965
30136
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
29966
30137
|
plateBbox: BoundingBoxSchema.optional(),
|
|
29967
30138
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
29968
|
-
|
|
30139
|
+
keyFrameMediaId: number().int().optional(),
|
|
29969
30140
|
base64: string().optional(),
|
|
29970
30141
|
/**
|
|
29971
30142
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -29986,11 +30157,14 @@ var PlateInfoSchema = object({
|
|
|
29986
30157
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
29987
30158
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
29988
30159
|
*
|
|
29989
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
29990
|
-
* media
|
|
30160
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
30161
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
30162
|
+
* access decision.
|
|
29991
30163
|
*/
|
|
29992
30164
|
var MediaFileLiteSchema = object({
|
|
29993
|
-
|
|
30165
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
30166
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
30167
|
+
mediaId: number().int(),
|
|
29994
30168
|
kind: string(),
|
|
29995
30169
|
url: string(),
|
|
29996
30170
|
sizeBytes: number(),
|
|
@@ -30049,7 +30223,7 @@ method(object({
|
|
|
30049
30223
|
}), method(object({
|
|
30050
30224
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
30051
30225
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
30052
|
-
* option; `
|
|
30226
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
30053
30227
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
30054
30228
|
* resolves to `false` and is exactly the intended default. */
|
|
30055
30229
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -31618,7 +31792,14 @@ var SceneReferenceSchema = object({
|
|
|
31618
31792
|
modelId: string(),
|
|
31619
31793
|
condition: SceneConditionSchema,
|
|
31620
31794
|
capturedAt: number(),
|
|
31621
|
-
|
|
31795
|
+
/**
|
|
31796
|
+
* The reference thumbnail's media ROW id (D482).
|
|
31797
|
+
*
|
|
31798
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
31799
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
31800
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
31801
|
+
*/
|
|
31802
|
+
thumbnailMediaId: number().int().optional(),
|
|
31622
31803
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
31623
31804
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
31624
31805
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -32709,7 +32890,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
32709
32890
|
* disarmed the channels it did not mention would make the Levels page and
|
|
32710
32891
|
* the Diagnostics page fight over the same value.
|
|
32711
32892
|
*/
|
|
32712
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
32893
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
32894
|
+
/**
|
|
32895
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
32896
|
+
* retention actually deleted.
|
|
32897
|
+
*
|
|
32898
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
32899
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
32900
|
+
* this system is configured through this one document, and a retention audit
|
|
32901
|
+
* configured somewhere else is a second place to look when the question is
|
|
32902
|
+
* "what happened to my data".
|
|
32903
|
+
*
|
|
32904
|
+
* That placement has a cost worth stating: this document ships in the
|
|
32905
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
32906
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
32907
|
+
*
|
|
32908
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
32909
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
32910
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
32911
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
32912
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
32913
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
32914
|
+
*/
|
|
32915
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
32713
32916
|
});
|
|
32714
32917
|
/**
|
|
32715
32918
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -32782,6 +32985,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
32782
32985
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
32783
32986
|
/** The channels ARMED right now, each with its deadline. */
|
|
32784
32987
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
32988
|
+
/**
|
|
32989
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
32990
|
+
*
|
|
32991
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
32992
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
32993
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
32994
|
+
*/
|
|
32995
|
+
opsLogRetentionDays: number().int().min(0),
|
|
32785
32996
|
persisted: boolean()
|
|
32786
32997
|
});
|
|
32787
32998
|
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(), {
|
|
@@ -33602,7 +33813,7 @@ var StationaryObjectSchema = object({
|
|
|
33602
33813
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
33603
33814
|
label: string().optional(),
|
|
33604
33815
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
33605
|
-
|
|
33816
|
+
keyFrameMediaId: number().int().optional()
|
|
33606
33817
|
});
|
|
33607
33818
|
var CameraOccupancySnapshotSchema = object({
|
|
33608
33819
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -36340,6 +36551,12 @@ Object.freeze({
|
|
|
36340
36551
|
addonId: null,
|
|
36341
36552
|
access: "create"
|
|
36342
36553
|
},
|
|
36554
|
+
"dataStoreProvider.upsert": {
|
|
36555
|
+
capName: "data-store-provider",
|
|
36556
|
+
capScope: "system",
|
|
36557
|
+
addonId: null,
|
|
36558
|
+
access: "create"
|
|
36559
|
+
},
|
|
36343
36560
|
"dayNight.getOptions": {
|
|
36344
36561
|
capName: "day-night",
|
|
36345
36562
|
capScope: "device",
|
|
@@ -38776,6 +38993,12 @@ Object.freeze({
|
|
|
38776
38993
|
addonId: null,
|
|
38777
38994
|
access: "view"
|
|
38778
38995
|
},
|
|
38996
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
38997
|
+
capName: "pipeline-analytics",
|
|
38998
|
+
capScope: "device",
|
|
38999
|
+
addonId: null,
|
|
39000
|
+
access: "view"
|
|
39001
|
+
},
|
|
38779
39002
|
"pipelineAnalytics.listRecentTracks": {
|
|
38780
39003
|
capName: "pipeline-analytics",
|
|
38781
39004
|
capScope: "device",
|
|
@@ -40204,6 +40427,12 @@ Object.freeze({
|
|
|
40204
40427
|
addonId: null,
|
|
40205
40428
|
access: "create"
|
|
40206
40429
|
},
|
|
40430
|
+
"settingsStore.upsert": {
|
|
40431
|
+
capName: "settings-store",
|
|
40432
|
+
capScope: "system",
|
|
40433
|
+
addonId: null,
|
|
40434
|
+
access: "create"
|
|
40435
|
+
},
|
|
40207
40436
|
"smtpProvider.getStatus": {
|
|
40208
40437
|
capName: "smtp-provider",
|
|
40209
40438
|
capScope: "system",
|
|
@@ -42597,6 +42826,11 @@ Object.freeze({
|
|
|
42597
42826
|
form: "single",
|
|
42598
42827
|
optional: true
|
|
42599
42828
|
}],
|
|
42829
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
42830
|
+
name: "deviceIds",
|
|
42831
|
+
form: "array",
|
|
42832
|
+
optional: false
|
|
42833
|
+
}],
|
|
42600
42834
|
"pipelineAnalytics.listRecentTracks": [{
|
|
42601
42835
|
name: "deviceIds",
|
|
42602
42836
|
form: "array",
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
//#endregion
|
|
6
|
-
const require_dist = require("../dist-
|
|
6
|
+
const require_dist = require("../dist-By4s88My.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
//#region src/ha-export/topics.ts
|
|
9
9
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-
|
|
1
|
+
import { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-Badx--6A.mjs";
|
|
2
2
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
//#region src/ha-export/topics.ts
|
|
4
4
|
/**
|