@camstack/addon-tailscale 1.2.99 → 1.2.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/tailscale.addon.js +1 -1
- package/dist/client/tailscale.addon.mjs +1 -1
- package/dist/{dist-BOzLlTTG.js → dist-BfWsQb9o.js} +292 -58
- package/dist/{dist-mGk9oSvk.mjs → dist-Gl7DmccH.mjs} +292 -58
- package/dist/ingress/tailscale-ingress.addon.js +1 -1
- package/dist/ingress/tailscale-ingress.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
//#endregion
|
|
27
|
-
const require_dist = require("../dist-
|
|
27
|
+
const require_dist = require("../dist-BfWsQb9o.js");
|
|
28
28
|
let node_child_process = require("node:child_process");
|
|
29
29
|
let node_util = require("node:util");
|
|
30
30
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-
|
|
1
|
+
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-Gl7DmccH.mjs";
|
|
2
2
|
import { execFile, spawn } from "node:child_process";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import * as fs from "node:fs";
|
|
@@ -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).
|
|
@@ -7330,13 +7330,30 @@ new Set([
|
|
|
7330
7330
|
"scene",
|
|
7331
7331
|
"motion",
|
|
7332
7332
|
"object",
|
|
7333
|
-
"audio"
|
|
7333
|
+
"audio",
|
|
7334
|
+
"mosaic"
|
|
7334
7335
|
]);
|
|
7335
|
-
|
|
7336
|
+
/**
|
|
7337
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
7338
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
7339
|
+
* does not re-spell the list and drift from it.
|
|
7340
|
+
*/
|
|
7341
|
+
var EVENT_OWNER_TYPES = [
|
|
7336
7342
|
"motion",
|
|
7337
7343
|
"object",
|
|
7338
7344
|
"audio"
|
|
7339
|
-
]
|
|
7345
|
+
];
|
|
7346
|
+
/**
|
|
7347
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
7348
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
7349
|
+
* `(table, id)`).
|
|
7350
|
+
*
|
|
7351
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
7352
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
7353
|
+
* nothing failing until a caller asked.
|
|
7354
|
+
*/
|
|
7355
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
7356
|
+
new Set(EVENT_OWNER_TYPES);
|
|
7340
7357
|
var EncodeProfileSchema = object({
|
|
7341
7358
|
video: object({
|
|
7342
7359
|
codec: _enum([
|
|
@@ -7375,7 +7392,23 @@ var EncodeProfileSchema = object({
|
|
|
7375
7392
|
"zerolatency",
|
|
7376
7393
|
"film",
|
|
7377
7394
|
"animation"
|
|
7378
|
-
]).optional()
|
|
7395
|
+
]).optional(),
|
|
7396
|
+
/**
|
|
7397
|
+
* ONE slice per access unit.
|
|
7398
|
+
*
|
|
7399
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7400
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7401
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7402
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7403
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7404
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7405
|
+
*
|
|
7406
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7407
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7408
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7409
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7410
|
+
*/
|
|
7411
|
+
singleSlicePerFrame: boolean().optional()
|
|
7379
7412
|
}),
|
|
7380
7413
|
audio: union([literal("passthrough"), object({
|
|
7381
7414
|
codec: _enum([
|
|
@@ -7425,7 +7458,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7425
7458
|
audio: "passthrough"
|
|
7426
7459
|
};
|
|
7427
7460
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7428
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7461
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7429
7462
|
/**
|
|
7430
7463
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7431
7464
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -12433,6 +12466,16 @@ method(object({
|
|
|
12433
12466
|
filter: QueryFilterSchema.optional(),
|
|
12434
12467
|
columns: array(string()).readonly().optional()
|
|
12435
12468
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12469
|
+
namespace: string().optional(),
|
|
12470
|
+
collection: string(),
|
|
12471
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12472
|
+
* index on the collection. Never empty. */
|
|
12473
|
+
conflict: array(string()).readonly(),
|
|
12474
|
+
record: BulkRecordSchema
|
|
12475
|
+
}), object({
|
|
12476
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12477
|
+
* row's own id on an update. */
|
|
12478
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12436
12479
|
namespace: string().optional(),
|
|
12437
12480
|
collection: string(),
|
|
12438
12481
|
record: object({
|
|
@@ -12567,6 +12610,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12567
12610
|
id: union([string(), number()]) }), {
|
|
12568
12611
|
kind: "mutation",
|
|
12569
12612
|
auth: "admin"
|
|
12613
|
+
}), method(object({
|
|
12614
|
+
namespace: string().optional(),
|
|
12615
|
+
collection: string(),
|
|
12616
|
+
conflict: array(string()).readonly(),
|
|
12617
|
+
record: BulkRecordSchema
|
|
12618
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12619
|
+
kind: "mutation",
|
|
12620
|
+
auth: "admin"
|
|
12570
12621
|
}), method(object({
|
|
12571
12622
|
namespace: string().optional(),
|
|
12572
12623
|
collection: string(),
|
|
@@ -18800,8 +18851,8 @@ var TrackPositionSchema = object({
|
|
|
18800
18851
|
var TrackSnapshotSchema = object({
|
|
18801
18852
|
timestamp: number(),
|
|
18802
18853
|
position: TrackPositionSchema,
|
|
18803
|
-
/**
|
|
18804
|
-
|
|
18854
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
18855
|
+
mediaId: number().int()
|
|
18805
18856
|
});
|
|
18806
18857
|
/**
|
|
18807
18858
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -19405,14 +19456,14 @@ var ObjectEventSchema = object({
|
|
|
19405
19456
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
19406
19457
|
frameWidth: number().optional(),
|
|
19407
19458
|
frameHeight: number().optional(),
|
|
19408
|
-
/**
|
|
19409
|
-
|
|
19410
|
-
/** Design B:
|
|
19459
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
19460
|
+
mediaId: number().int().optional(),
|
|
19461
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
19411
19462
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
19412
|
-
* (`/addon/<addonId>/event-media/<
|
|
19463
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
19413
19464
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
19414
|
-
* sources — consumers fall back to `
|
|
19415
|
-
|
|
19465
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
19466
|
+
keyFrameMediaId: number().int().optional(),
|
|
19416
19467
|
/** Populated by B5 (recording playback URL for this event). */
|
|
19417
19468
|
mediaUrl: string().optional(),
|
|
19418
19469
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -19462,7 +19513,7 @@ var MediaFileKindEnum = _enum([
|
|
|
19462
19513
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
19463
19514
|
*
|
|
19464
19515
|
* `url` points at the `event-media` data plane
|
|
19465
|
-
* (`/addon/<addonId>/event-media/<
|
|
19516
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
19466
19517
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
19467
19518
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
19468
19519
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -19470,10 +19521,13 @@ var MediaFileKindEnum = _enum([
|
|
|
19470
19521
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
19471
19522
|
* (per-device scoping).
|
|
19472
19523
|
*
|
|
19473
|
-
* The URL is built from the row's
|
|
19474
|
-
*
|
|
19524
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
19525
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
19526
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
19475
19527
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
19476
|
-
* `faceCrop`/`plateCrop
|
|
19528
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
19529
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
19530
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
19477
19531
|
*
|
|
19478
19532
|
* ## `base64` is TRANSITIONAL and is going away
|
|
19479
19533
|
*
|
|
@@ -19486,7 +19540,19 @@ var MediaFileKindEnum = _enum([
|
|
|
19486
19540
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
19487
19541
|
*/
|
|
19488
19542
|
var MediaFileSchema = object({
|
|
19489
|
-
|
|
19543
|
+
/**
|
|
19544
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
19545
|
+
*
|
|
19546
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
19547
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
19548
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
19549
|
+
* different rows that spell the same number, and a track whose
|
|
19550
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
19551
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
19552
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
19553
|
+
* at all.
|
|
19554
|
+
*/
|
|
19555
|
+
mediaId: number().int(),
|
|
19490
19556
|
kind: MediaFileKindEnum,
|
|
19491
19557
|
sizeBytes: number(),
|
|
19492
19558
|
timestamp: number()
|
|
@@ -19594,7 +19660,7 @@ var RetrainTrackSchema = object({
|
|
|
19594
19660
|
});
|
|
19595
19661
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
19596
19662
|
var RetrainFrameCandidateSchema = object({
|
|
19597
|
-
|
|
19663
|
+
mediaId: number().int(),
|
|
19598
19664
|
kind: MediaFileKindEnum,
|
|
19599
19665
|
timestamp: number(),
|
|
19600
19666
|
sizeBytes: number().int(),
|
|
@@ -19608,7 +19674,7 @@ var RetrainFrameSchema = object({
|
|
|
19608
19674
|
deviceId: number(),
|
|
19609
19675
|
trackId: string(),
|
|
19610
19676
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
19611
|
-
|
|
19677
|
+
sourceMediaId: number().int(),
|
|
19612
19678
|
sourceKind: MediaFileKindEnum,
|
|
19613
19679
|
sizeBytes: number().int(),
|
|
19614
19680
|
width: number().int(),
|
|
@@ -19624,7 +19690,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
19624
19690
|
var RetrainFrameSelectionSchema = object({
|
|
19625
19691
|
copied: array(RetrainFrameSchema).readonly(),
|
|
19626
19692
|
refused: array(object({
|
|
19627
|
-
|
|
19693
|
+
sourceMediaId: number().int(),
|
|
19628
19694
|
reason: RetrainCopyRefusalSchema
|
|
19629
19695
|
})).readonly()
|
|
19630
19696
|
});
|
|
@@ -19632,7 +19698,7 @@ var RetrainFrameListSchema = object({
|
|
|
19632
19698
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
19633
19699
|
copies: array(RetrainFrameSchema).readonly(),
|
|
19634
19700
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
19635
|
-
|
|
19701
|
+
autoPickMediaId: number().int().optional()
|
|
19636
19702
|
});
|
|
19637
19703
|
/** What the operator asked the assist to look for. */
|
|
19638
19704
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -19727,9 +19793,11 @@ var RecentTracksQueryInput = object({
|
|
|
19727
19793
|
});
|
|
19728
19794
|
/**
|
|
19729
19795
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
19730
|
-
* `
|
|
19731
|
-
* served by the event-media plane
|
|
19732
|
-
* member visible has been materialised
|
|
19796
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
19797
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
19798
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
19799
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
19800
|
+
* row once event ids became per-table rowids).
|
|
19733
19801
|
*/
|
|
19734
19802
|
var SummarySchema = object({
|
|
19735
19803
|
id: string(),
|
|
@@ -19738,19 +19806,115 @@ var SummarySchema = object({
|
|
|
19738
19806
|
lastActiveAt: number(),
|
|
19739
19807
|
sealedAt: number().nullable(),
|
|
19740
19808
|
memberCount: number().int().nonnegative(),
|
|
19741
|
-
|
|
19809
|
+
groupShotMediaId: number().int().nullable()
|
|
19742
19810
|
});
|
|
19743
19811
|
var SummariesQueryInput = object({
|
|
19744
19812
|
deviceIds: array(number()).min(1),
|
|
19745
19813
|
since: number().optional(),
|
|
19746
19814
|
until: number().optional(),
|
|
19747
|
-
limit: number().int().min(1).max(200).default(50)
|
|
19815
|
+
limit: number().int().min(1).max(200).default(50),
|
|
19816
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
19817
|
+
* meaning of "dog" on every summary surface. */
|
|
19818
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19748
19819
|
});
|
|
19749
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19750
19820
|
var SummaryDetailSchema = object({
|
|
19751
19821
|
summary: SummarySchema,
|
|
19752
|
-
/**
|
|
19753
|
-
|
|
19822
|
+
/** Members in absorption order, oldest join first. */
|
|
19823
|
+
members: array(object({
|
|
19824
|
+
trackId: string(),
|
|
19825
|
+
/**
|
|
19826
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
19827
|
+
* and the track no longer exists to fill it.
|
|
19828
|
+
*
|
|
19829
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
19830
|
+
* class afterwards, and a group's composition is the history of who came
|
|
19831
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
19832
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
19833
|
+
* drift from the members it claims to describe.
|
|
19834
|
+
*/
|
|
19835
|
+
className: string().nullable(),
|
|
19836
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
19837
|
+
role: _enum([
|
|
19838
|
+
"primary",
|
|
19839
|
+
"sibling",
|
|
19840
|
+
"child"
|
|
19841
|
+
]).nullable(),
|
|
19842
|
+
joinedAt: number(),
|
|
19843
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
19844
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
19845
|
+
label: string().optional(),
|
|
19846
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
19847
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
19848
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
19849
|
+
subLabel: string().optional()
|
|
19850
|
+
})).readonly()
|
|
19851
|
+
});
|
|
19852
|
+
/**
|
|
19853
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
19854
|
+
*
|
|
19855
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
19856
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
19857
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
19858
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
19859
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
19860
|
+
* draw two hundred badges.
|
|
19861
|
+
*/
|
|
19862
|
+
var SummaryListItemSchema = object({
|
|
19863
|
+
summary: SummarySchema,
|
|
19864
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
19865
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
19866
|
+
classes: array(object({
|
|
19867
|
+
className: string().nullable(),
|
|
19868
|
+
count: number().int().positive()
|
|
19869
|
+
})).readonly()
|
|
19870
|
+
});
|
|
19871
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
19872
|
+
/**
|
|
19873
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
19874
|
+
*
|
|
19875
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
19876
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
19877
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
19878
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
19879
|
+
* "newest" means, on one screen.
|
|
19880
|
+
*/
|
|
19881
|
+
var RecentSummariesQueryInput = object({
|
|
19882
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
19883
|
+
deviceIds: array(number()),
|
|
19884
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
19885
|
+
since: number().optional(),
|
|
19886
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
19887
|
+
until: number().optional(),
|
|
19888
|
+
limit: number().int().min(1).max(500).default(100),
|
|
19889
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
19890
|
+
cursor: string().optional(),
|
|
19891
|
+
/**
|
|
19892
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
19893
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
19894
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
19895
|
+
* make the operator's one filter component produce two shapes.
|
|
19896
|
+
*
|
|
19897
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
19898
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
19899
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
19900
|
+
* about its primary.
|
|
19901
|
+
*
|
|
19902
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
19903
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
19904
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
19905
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
19906
|
+
* that read only the class would answer "animal" and never "dog".
|
|
19907
|
+
*
|
|
19908
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
19909
|
+
*/
|
|
19910
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19911
|
+
});
|
|
19912
|
+
var RecentSummariesPageSchema = object({
|
|
19913
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
19914
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
19915
|
+
* whichever feed drew it. */
|
|
19916
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
19917
|
+
nextCursor: string().nullable()
|
|
19754
19918
|
});
|
|
19755
19919
|
var RecentTracksPageSchema = object({
|
|
19756
19920
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20164,7 +20328,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20164
20328
|
classes: array(string()).optional(),
|
|
20165
20329
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20166
20330
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20167
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20331
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20168
20332
|
kind: "mutation",
|
|
20169
20333
|
auth: "admin"
|
|
20170
20334
|
}), 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({
|
|
@@ -20292,7 +20456,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20292
20456
|
}), method(object({
|
|
20293
20457
|
deviceId: number(),
|
|
20294
20458
|
trackId: string(),
|
|
20295
|
-
|
|
20459
|
+
mediaIds: array(number().int()).min(1)
|
|
20296
20460
|
}), RetrainFrameSelectionSchema, {
|
|
20297
20461
|
kind: "mutation",
|
|
20298
20462
|
auth: "admin"
|
|
@@ -20360,7 +20524,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20360
20524
|
kind: "query",
|
|
20361
20525
|
auth: "admin"
|
|
20362
20526
|
}), method(object({
|
|
20363
|
-
|
|
20527
|
+
/** Which of the three event tables owns the row. */
|
|
20528
|
+
ownerType: EventOwnerTypeSchema,
|
|
20529
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
20530
|
+
eventId: number().int(),
|
|
20364
20531
|
kind: MediaFileKindEnum.optional(),
|
|
20365
20532
|
deviceId: number()
|
|
20366
20533
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -20371,7 +20538,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20371
20538
|
trackId: string(),
|
|
20372
20539
|
deviceId: number()
|
|
20373
20540
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
20374
|
-
|
|
20541
|
+
ownerType: EventOwnerTypeSchema,
|
|
20542
|
+
eventId: number().int(),
|
|
20375
20543
|
deviceId: number()
|
|
20376
20544
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
20377
20545
|
kind: "mutation",
|
|
@@ -24834,8 +25002,8 @@ var IdentitySchema = object({
|
|
|
24834
25002
|
id: string(),
|
|
24835
25003
|
name: string(),
|
|
24836
25004
|
sampleCount: number().int().nonnegative(),
|
|
24837
|
-
|
|
24838
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
25005
|
+
coverMediaId: number().int().optional(),
|
|
25006
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
24839
25007
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
24840
25008
|
coverBase64: string().optional()
|
|
24841
25009
|
});
|
|
@@ -24861,8 +25029,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
24861
25029
|
enrolledAt: number().int(),
|
|
24862
25030
|
deviceId: number().int().optional(),
|
|
24863
25031
|
source: _enum(["detected", "photo"]),
|
|
24864
|
-
/** The enrolled crop's media
|
|
24865
|
-
|
|
25032
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
25033
|
+
mediaId: number().int().optional(),
|
|
24866
25034
|
/**
|
|
24867
25035
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
24868
25036
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -24931,15 +25099,15 @@ var FaceInfoSchema = object({
|
|
|
24931
25099
|
*/
|
|
24932
25100
|
cropUrl: string().optional(),
|
|
24933
25101
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
24934
|
-
* view draw the box over the native `
|
|
25102
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
24935
25103
|
* legacy rows written before design B. */
|
|
24936
25104
|
faceBbox: BoundingBoxSchema.optional(),
|
|
24937
25105
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
24938
25106
|
* Fetch the native JPEG via the event-media data-plane
|
|
24939
|
-
* (`/addon/<addonId>/event-media/<
|
|
25107
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
24940
25108
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
24941
25109
|
* back to the inline `base64` face crop. */
|
|
24942
|
-
|
|
25110
|
+
keyFrameMediaId: number().int().optional(),
|
|
24943
25111
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
24944
25112
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
24945
25113
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -25008,11 +25176,14 @@ var FaceClusterSchema = object({
|
|
|
25008
25176
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
25009
25177
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
25010
25178
|
*
|
|
25011
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
25012
|
-
* media
|
|
25179
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
25180
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
25181
|
+
* access decision.
|
|
25013
25182
|
*/
|
|
25014
25183
|
var MediaFileLiteSchema$1 = object({
|
|
25015
|
-
|
|
25184
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
25185
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
25186
|
+
mediaId: number().int(),
|
|
25016
25187
|
kind: string(),
|
|
25017
25188
|
url: string(),
|
|
25018
25189
|
sizeBytes: number(),
|
|
@@ -25029,7 +25200,7 @@ method(object({
|
|
|
25029
25200
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
25030
25201
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
25031
25202
|
*
|
|
25032
|
-
* Nothing loses its avatar: `
|
|
25203
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
25033
25204
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
25034
25205
|
*
|
|
25035
25206
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -27558,8 +27729,8 @@ var VehicleSchema = object({
|
|
|
27558
27729
|
id: string(),
|
|
27559
27730
|
name: string(),
|
|
27560
27731
|
sampleCount: number().int().nonnegative(),
|
|
27561
|
-
|
|
27562
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
27732
|
+
coverMediaId: number().int().optional(),
|
|
27733
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
27563
27734
|
coverBase64: string().optional()
|
|
27564
27735
|
});
|
|
27565
27736
|
var VehicleSampleInfoSchema = object({
|
|
@@ -27592,7 +27763,7 @@ var PlateInfoSchema = object({
|
|
|
27592
27763
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
27593
27764
|
plateBbox: BoundingBoxSchema.optional(),
|
|
27594
27765
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
27595
|
-
|
|
27766
|
+
keyFrameMediaId: number().int().optional(),
|
|
27596
27767
|
base64: string().optional(),
|
|
27597
27768
|
/**
|
|
27598
27769
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -27613,11 +27784,14 @@ var PlateInfoSchema = object({
|
|
|
27613
27784
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
27614
27785
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
27615
27786
|
*
|
|
27616
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
27617
|
-
* media
|
|
27787
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
27788
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
27789
|
+
* access decision.
|
|
27618
27790
|
*/
|
|
27619
27791
|
var MediaFileLiteSchema = object({
|
|
27620
|
-
|
|
27792
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
27793
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
27794
|
+
mediaId: number().int(),
|
|
27621
27795
|
kind: string(),
|
|
27622
27796
|
url: string(),
|
|
27623
27797
|
sizeBytes: number(),
|
|
@@ -27676,7 +27850,7 @@ method(object({
|
|
|
27676
27850
|
}), method(object({
|
|
27677
27851
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
27678
27852
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
27679
|
-
* option; `
|
|
27853
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
27680
27854
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
27681
27855
|
* resolves to `false` and is exactly the intended default. */
|
|
27682
27856
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -29000,7 +29174,14 @@ var SceneReferenceSchema = object({
|
|
|
29000
29174
|
modelId: string(),
|
|
29001
29175
|
condition: SceneConditionSchema,
|
|
29002
29176
|
capturedAt: number(),
|
|
29003
|
-
|
|
29177
|
+
/**
|
|
29178
|
+
* The reference thumbnail's media ROW id (D482).
|
|
29179
|
+
*
|
|
29180
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
29181
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
29182
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
29183
|
+
*/
|
|
29184
|
+
thumbnailMediaId: number().int().optional(),
|
|
29004
29185
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
29005
29186
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
29006
29187
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -29814,7 +29995,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29814
29995
|
* disarmed the channels it did not mention would make the Levels page and
|
|
29815
29996
|
* the Diagnostics page fight over the same value.
|
|
29816
29997
|
*/
|
|
29817
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
29998
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
29999
|
+
/**
|
|
30000
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30001
|
+
* retention actually deleted.
|
|
30002
|
+
*
|
|
30003
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30004
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30005
|
+
* this system is configured through this one document, and a retention audit
|
|
30006
|
+
* configured somewhere else is a second place to look when the question is
|
|
30007
|
+
* "what happened to my data".
|
|
30008
|
+
*
|
|
30009
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30010
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30011
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30012
|
+
*
|
|
30013
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30014
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30015
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30016
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30017
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30018
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30019
|
+
*/
|
|
30020
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
29818
30021
|
});
|
|
29819
30022
|
/**
|
|
29820
30023
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -29887,6 +30090,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
29887
30090
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
29888
30091
|
/** The channels ARMED right now, each with its deadline. */
|
|
29889
30092
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30093
|
+
/**
|
|
30094
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30095
|
+
*
|
|
30096
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30097
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30098
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30099
|
+
*/
|
|
30100
|
+
opsLogRetentionDays: number().int().min(0),
|
|
29890
30101
|
persisted: boolean()
|
|
29891
30102
|
});
|
|
29892
30103
|
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(), {
|
|
@@ -30448,7 +30659,7 @@ var StationaryObjectSchema = object({
|
|
|
30448
30659
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
30449
30660
|
label: string().optional(),
|
|
30450
30661
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
30451
|
-
|
|
30662
|
+
keyFrameMediaId: number().int().optional()
|
|
30452
30663
|
});
|
|
30453
30664
|
var CameraOccupancySnapshotSchema = object({
|
|
30454
30665
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -31604,6 +31815,12 @@ Object.freeze({
|
|
|
31604
31815
|
addonId: null,
|
|
31605
31816
|
access: "create"
|
|
31606
31817
|
},
|
|
31818
|
+
"dataStoreProvider.upsert": {
|
|
31819
|
+
capName: "data-store-provider",
|
|
31820
|
+
capScope: "system",
|
|
31821
|
+
addonId: null,
|
|
31822
|
+
access: "create"
|
|
31823
|
+
},
|
|
31607
31824
|
"dayNight.getOptions": {
|
|
31608
31825
|
capName: "day-night",
|
|
31609
31826
|
capScope: "device",
|
|
@@ -34040,6 +34257,12 @@ Object.freeze({
|
|
|
34040
34257
|
addonId: null,
|
|
34041
34258
|
access: "view"
|
|
34042
34259
|
},
|
|
34260
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34261
|
+
capName: "pipeline-analytics",
|
|
34262
|
+
capScope: "device",
|
|
34263
|
+
addonId: null,
|
|
34264
|
+
access: "view"
|
|
34265
|
+
},
|
|
34043
34266
|
"pipelineAnalytics.listRecentTracks": {
|
|
34044
34267
|
capName: "pipeline-analytics",
|
|
34045
34268
|
capScope: "device",
|
|
@@ -35468,6 +35691,12 @@ Object.freeze({
|
|
|
35468
35691
|
addonId: null,
|
|
35469
35692
|
access: "create"
|
|
35470
35693
|
},
|
|
35694
|
+
"settingsStore.upsert": {
|
|
35695
|
+
capName: "settings-store",
|
|
35696
|
+
capScope: "system",
|
|
35697
|
+
addonId: null,
|
|
35698
|
+
access: "create"
|
|
35699
|
+
},
|
|
35471
35700
|
"smtpProvider.getStatus": {
|
|
35472
35701
|
capName: "smtp-provider",
|
|
35473
35702
|
capScope: "system",
|
|
@@ -37861,6 +38090,11 @@ Object.freeze({
|
|
|
37861
38090
|
form: "single",
|
|
37862
38091
|
optional: true
|
|
37863
38092
|
}],
|
|
38093
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38094
|
+
name: "deviceIds",
|
|
38095
|
+
form: "array",
|
|
38096
|
+
optional: false
|
|
38097
|
+
}],
|
|
37864
38098
|
"pipelineAnalytics.listRecentTracks": [{
|
|
37865
38099
|
name: "deviceIds",
|
|
37866
38100
|
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).
|
|
@@ -7330,13 +7330,30 @@ new Set([
|
|
|
7330
7330
|
"scene",
|
|
7331
7331
|
"motion",
|
|
7332
7332
|
"object",
|
|
7333
|
-
"audio"
|
|
7333
|
+
"audio",
|
|
7334
|
+
"mosaic"
|
|
7334
7335
|
]);
|
|
7335
|
-
|
|
7336
|
+
/**
|
|
7337
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
7338
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
7339
|
+
* does not re-spell the list and drift from it.
|
|
7340
|
+
*/
|
|
7341
|
+
var EVENT_OWNER_TYPES = [
|
|
7336
7342
|
"motion",
|
|
7337
7343
|
"object",
|
|
7338
7344
|
"audio"
|
|
7339
|
-
]
|
|
7345
|
+
];
|
|
7346
|
+
/**
|
|
7347
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
7348
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
7349
|
+
* `(table, id)`).
|
|
7350
|
+
*
|
|
7351
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
7352
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
7353
|
+
* nothing failing until a caller asked.
|
|
7354
|
+
*/
|
|
7355
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
7356
|
+
new Set(EVENT_OWNER_TYPES);
|
|
7340
7357
|
var EncodeProfileSchema = object({
|
|
7341
7358
|
video: object({
|
|
7342
7359
|
codec: _enum([
|
|
@@ -7375,7 +7392,23 @@ var EncodeProfileSchema = object({
|
|
|
7375
7392
|
"zerolatency",
|
|
7376
7393
|
"film",
|
|
7377
7394
|
"animation"
|
|
7378
|
-
]).optional()
|
|
7395
|
+
]).optional(),
|
|
7396
|
+
/**
|
|
7397
|
+
* ONE slice per access unit.
|
|
7398
|
+
*
|
|
7399
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7400
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7401
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7402
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7403
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7404
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7405
|
+
*
|
|
7406
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7407
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7408
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7409
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7410
|
+
*/
|
|
7411
|
+
singleSlicePerFrame: boolean().optional()
|
|
7379
7412
|
}),
|
|
7380
7413
|
audio: union([literal("passthrough"), object({
|
|
7381
7414
|
codec: _enum([
|
|
@@ -7425,7 +7458,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7425
7458
|
audio: "passthrough"
|
|
7426
7459
|
};
|
|
7427
7460
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7428
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7461
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7429
7462
|
/**
|
|
7430
7463
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7431
7464
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -12433,6 +12466,16 @@ method(object({
|
|
|
12433
12466
|
filter: QueryFilterSchema.optional(),
|
|
12434
12467
|
columns: array(string()).readonly().optional()
|
|
12435
12468
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12469
|
+
namespace: string().optional(),
|
|
12470
|
+
collection: string(),
|
|
12471
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12472
|
+
* index on the collection. Never empty. */
|
|
12473
|
+
conflict: array(string()).readonly(),
|
|
12474
|
+
record: BulkRecordSchema
|
|
12475
|
+
}), object({
|
|
12476
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12477
|
+
* row's own id on an update. */
|
|
12478
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12436
12479
|
namespace: string().optional(),
|
|
12437
12480
|
collection: string(),
|
|
12438
12481
|
record: object({
|
|
@@ -12567,6 +12610,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12567
12610
|
id: union([string(), number()]) }), {
|
|
12568
12611
|
kind: "mutation",
|
|
12569
12612
|
auth: "admin"
|
|
12613
|
+
}), method(object({
|
|
12614
|
+
namespace: string().optional(),
|
|
12615
|
+
collection: string(),
|
|
12616
|
+
conflict: array(string()).readonly(),
|
|
12617
|
+
record: BulkRecordSchema
|
|
12618
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12619
|
+
kind: "mutation",
|
|
12620
|
+
auth: "admin"
|
|
12570
12621
|
}), method(object({
|
|
12571
12622
|
namespace: string().optional(),
|
|
12572
12623
|
collection: string(),
|
|
@@ -18800,8 +18851,8 @@ var TrackPositionSchema = object({
|
|
|
18800
18851
|
var TrackSnapshotSchema = object({
|
|
18801
18852
|
timestamp: number(),
|
|
18802
18853
|
position: TrackPositionSchema,
|
|
18803
|
-
/**
|
|
18804
|
-
|
|
18854
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
18855
|
+
mediaId: number().int()
|
|
18805
18856
|
});
|
|
18806
18857
|
/**
|
|
18807
18858
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -19405,14 +19456,14 @@ var ObjectEventSchema = object({
|
|
|
19405
19456
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
19406
19457
|
frameWidth: number().optional(),
|
|
19407
19458
|
frameHeight: number().optional(),
|
|
19408
|
-
/**
|
|
19409
|
-
|
|
19410
|
-
/** Design B:
|
|
19459
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
19460
|
+
mediaId: number().int().optional(),
|
|
19461
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
19411
19462
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
19412
|
-
* (`/addon/<addonId>/event-media/<
|
|
19463
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
19413
19464
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
19414
|
-
* sources — consumers fall back to `
|
|
19415
|
-
|
|
19465
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
19466
|
+
keyFrameMediaId: number().int().optional(),
|
|
19416
19467
|
/** Populated by B5 (recording playback URL for this event). */
|
|
19417
19468
|
mediaUrl: string().optional(),
|
|
19418
19469
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -19462,7 +19513,7 @@ var MediaFileKindEnum = _enum([
|
|
|
19462
19513
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
19463
19514
|
*
|
|
19464
19515
|
* `url` points at the `event-media` data plane
|
|
19465
|
-
* (`/addon/<addonId>/event-media/<
|
|
19516
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
19466
19517
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
19467
19518
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
19468
19519
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -19470,10 +19521,13 @@ var MediaFileKindEnum = _enum([
|
|
|
19470
19521
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
19471
19522
|
* (per-device scoping).
|
|
19472
19523
|
*
|
|
19473
|
-
* The URL is built from the row's
|
|
19474
|
-
*
|
|
19524
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
19525
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
19526
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
19475
19527
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
19476
|
-
* `faceCrop`/`plateCrop
|
|
19528
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
19529
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
19530
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
19477
19531
|
*
|
|
19478
19532
|
* ## `base64` is TRANSITIONAL and is going away
|
|
19479
19533
|
*
|
|
@@ -19486,7 +19540,19 @@ var MediaFileKindEnum = _enum([
|
|
|
19486
19540
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
19487
19541
|
*/
|
|
19488
19542
|
var MediaFileSchema = object({
|
|
19489
|
-
|
|
19543
|
+
/**
|
|
19544
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
19545
|
+
*
|
|
19546
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
19547
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
19548
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
19549
|
+
* different rows that spell the same number, and a track whose
|
|
19550
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
19551
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
19552
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
19553
|
+
* at all.
|
|
19554
|
+
*/
|
|
19555
|
+
mediaId: number().int(),
|
|
19490
19556
|
kind: MediaFileKindEnum,
|
|
19491
19557
|
sizeBytes: number(),
|
|
19492
19558
|
timestamp: number()
|
|
@@ -19594,7 +19660,7 @@ var RetrainTrackSchema = object({
|
|
|
19594
19660
|
});
|
|
19595
19661
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
19596
19662
|
var RetrainFrameCandidateSchema = object({
|
|
19597
|
-
|
|
19663
|
+
mediaId: number().int(),
|
|
19598
19664
|
kind: MediaFileKindEnum,
|
|
19599
19665
|
timestamp: number(),
|
|
19600
19666
|
sizeBytes: number().int(),
|
|
@@ -19608,7 +19674,7 @@ var RetrainFrameSchema = object({
|
|
|
19608
19674
|
deviceId: number(),
|
|
19609
19675
|
trackId: string(),
|
|
19610
19676
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
19611
|
-
|
|
19677
|
+
sourceMediaId: number().int(),
|
|
19612
19678
|
sourceKind: MediaFileKindEnum,
|
|
19613
19679
|
sizeBytes: number().int(),
|
|
19614
19680
|
width: number().int(),
|
|
@@ -19624,7 +19690,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
19624
19690
|
var RetrainFrameSelectionSchema = object({
|
|
19625
19691
|
copied: array(RetrainFrameSchema).readonly(),
|
|
19626
19692
|
refused: array(object({
|
|
19627
|
-
|
|
19693
|
+
sourceMediaId: number().int(),
|
|
19628
19694
|
reason: RetrainCopyRefusalSchema
|
|
19629
19695
|
})).readonly()
|
|
19630
19696
|
});
|
|
@@ -19632,7 +19698,7 @@ var RetrainFrameListSchema = object({
|
|
|
19632
19698
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
19633
19699
|
copies: array(RetrainFrameSchema).readonly(),
|
|
19634
19700
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
19635
|
-
|
|
19701
|
+
autoPickMediaId: number().int().optional()
|
|
19636
19702
|
});
|
|
19637
19703
|
/** What the operator asked the assist to look for. */
|
|
19638
19704
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -19727,9 +19793,11 @@ var RecentTracksQueryInput = object({
|
|
|
19727
19793
|
});
|
|
19728
19794
|
/**
|
|
19729
19795
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
19730
|
-
* `
|
|
19731
|
-
* served by the event-media plane
|
|
19732
|
-
* member visible has been materialised
|
|
19796
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
19797
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
19798
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
19799
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
19800
|
+
* row once event ids became per-table rowids).
|
|
19733
19801
|
*/
|
|
19734
19802
|
var SummarySchema = object({
|
|
19735
19803
|
id: string(),
|
|
@@ -19738,19 +19806,115 @@ var SummarySchema = object({
|
|
|
19738
19806
|
lastActiveAt: number(),
|
|
19739
19807
|
sealedAt: number().nullable(),
|
|
19740
19808
|
memberCount: number().int().nonnegative(),
|
|
19741
|
-
|
|
19809
|
+
groupShotMediaId: number().int().nullable()
|
|
19742
19810
|
});
|
|
19743
19811
|
var SummariesQueryInput = object({
|
|
19744
19812
|
deviceIds: array(number()).min(1),
|
|
19745
19813
|
since: number().optional(),
|
|
19746
19814
|
until: number().optional(),
|
|
19747
|
-
limit: number().int().min(1).max(200).default(50)
|
|
19815
|
+
limit: number().int().min(1).max(200).default(50),
|
|
19816
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
19817
|
+
* meaning of "dog" on every summary surface. */
|
|
19818
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19748
19819
|
});
|
|
19749
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19750
19820
|
var SummaryDetailSchema = object({
|
|
19751
19821
|
summary: SummarySchema,
|
|
19752
|
-
/**
|
|
19753
|
-
|
|
19822
|
+
/** Members in absorption order, oldest join first. */
|
|
19823
|
+
members: array(object({
|
|
19824
|
+
trackId: string(),
|
|
19825
|
+
/**
|
|
19826
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
19827
|
+
* and the track no longer exists to fill it.
|
|
19828
|
+
*
|
|
19829
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
19830
|
+
* class afterwards, and a group's composition is the history of who came
|
|
19831
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
19832
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
19833
|
+
* drift from the members it claims to describe.
|
|
19834
|
+
*/
|
|
19835
|
+
className: string().nullable(),
|
|
19836
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
19837
|
+
role: _enum([
|
|
19838
|
+
"primary",
|
|
19839
|
+
"sibling",
|
|
19840
|
+
"child"
|
|
19841
|
+
]).nullable(),
|
|
19842
|
+
joinedAt: number(),
|
|
19843
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
19844
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
19845
|
+
label: string().optional(),
|
|
19846
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
19847
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
19848
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
19849
|
+
subLabel: string().optional()
|
|
19850
|
+
})).readonly()
|
|
19851
|
+
});
|
|
19852
|
+
/**
|
|
19853
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
19854
|
+
*
|
|
19855
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
19856
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
19857
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
19858
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
19859
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
19860
|
+
* draw two hundred badges.
|
|
19861
|
+
*/
|
|
19862
|
+
var SummaryListItemSchema = object({
|
|
19863
|
+
summary: SummarySchema,
|
|
19864
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
19865
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
19866
|
+
classes: array(object({
|
|
19867
|
+
className: string().nullable(),
|
|
19868
|
+
count: number().int().positive()
|
|
19869
|
+
})).readonly()
|
|
19870
|
+
});
|
|
19871
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
19872
|
+
/**
|
|
19873
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
19874
|
+
*
|
|
19875
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
19876
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
19877
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
19878
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
19879
|
+
* "newest" means, on one screen.
|
|
19880
|
+
*/
|
|
19881
|
+
var RecentSummariesQueryInput = object({
|
|
19882
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
19883
|
+
deviceIds: array(number()),
|
|
19884
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
19885
|
+
since: number().optional(),
|
|
19886
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
19887
|
+
until: number().optional(),
|
|
19888
|
+
limit: number().int().min(1).max(500).default(100),
|
|
19889
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
19890
|
+
cursor: string().optional(),
|
|
19891
|
+
/**
|
|
19892
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
19893
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
19894
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
19895
|
+
* make the operator's one filter component produce two shapes.
|
|
19896
|
+
*
|
|
19897
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
19898
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
19899
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
19900
|
+
* about its primary.
|
|
19901
|
+
*
|
|
19902
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
19903
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
19904
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
19905
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
19906
|
+
* that read only the class would answer "animal" and never "dog".
|
|
19907
|
+
*
|
|
19908
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
19909
|
+
*/
|
|
19910
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19911
|
+
});
|
|
19912
|
+
var RecentSummariesPageSchema = object({
|
|
19913
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
19914
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
19915
|
+
* whichever feed drew it. */
|
|
19916
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
19917
|
+
nextCursor: string().nullable()
|
|
19754
19918
|
});
|
|
19755
19919
|
var RecentTracksPageSchema = object({
|
|
19756
19920
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20164,7 +20328,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20164
20328
|
classes: array(string()).optional(),
|
|
20165
20329
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20166
20330
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20167
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20331
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20168
20332
|
kind: "mutation",
|
|
20169
20333
|
auth: "admin"
|
|
20170
20334
|
}), 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({
|
|
@@ -20292,7 +20456,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20292
20456
|
}), method(object({
|
|
20293
20457
|
deviceId: number(),
|
|
20294
20458
|
trackId: string(),
|
|
20295
|
-
|
|
20459
|
+
mediaIds: array(number().int()).min(1)
|
|
20296
20460
|
}), RetrainFrameSelectionSchema, {
|
|
20297
20461
|
kind: "mutation",
|
|
20298
20462
|
auth: "admin"
|
|
@@ -20360,7 +20524,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20360
20524
|
kind: "query",
|
|
20361
20525
|
auth: "admin"
|
|
20362
20526
|
}), method(object({
|
|
20363
|
-
|
|
20527
|
+
/** Which of the three event tables owns the row. */
|
|
20528
|
+
ownerType: EventOwnerTypeSchema,
|
|
20529
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
20530
|
+
eventId: number().int(),
|
|
20364
20531
|
kind: MediaFileKindEnum.optional(),
|
|
20365
20532
|
deviceId: number()
|
|
20366
20533
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -20371,7 +20538,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20371
20538
|
trackId: string(),
|
|
20372
20539
|
deviceId: number()
|
|
20373
20540
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
20374
|
-
|
|
20541
|
+
ownerType: EventOwnerTypeSchema,
|
|
20542
|
+
eventId: number().int(),
|
|
20375
20543
|
deviceId: number()
|
|
20376
20544
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
20377
20545
|
kind: "mutation",
|
|
@@ -24834,8 +25002,8 @@ var IdentitySchema = object({
|
|
|
24834
25002
|
id: string(),
|
|
24835
25003
|
name: string(),
|
|
24836
25004
|
sampleCount: number().int().nonnegative(),
|
|
24837
|
-
|
|
24838
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
25005
|
+
coverMediaId: number().int().optional(),
|
|
25006
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
24839
25007
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
24840
25008
|
coverBase64: string().optional()
|
|
24841
25009
|
});
|
|
@@ -24861,8 +25029,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
24861
25029
|
enrolledAt: number().int(),
|
|
24862
25030
|
deviceId: number().int().optional(),
|
|
24863
25031
|
source: _enum(["detected", "photo"]),
|
|
24864
|
-
/** The enrolled crop's media
|
|
24865
|
-
|
|
25032
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
25033
|
+
mediaId: number().int().optional(),
|
|
24866
25034
|
/**
|
|
24867
25035
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
24868
25036
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -24931,15 +25099,15 @@ var FaceInfoSchema = object({
|
|
|
24931
25099
|
*/
|
|
24932
25100
|
cropUrl: string().optional(),
|
|
24933
25101
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
24934
|
-
* view draw the box over the native `
|
|
25102
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
24935
25103
|
* legacy rows written before design B. */
|
|
24936
25104
|
faceBbox: BoundingBoxSchema.optional(),
|
|
24937
25105
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
24938
25106
|
* Fetch the native JPEG via the event-media data-plane
|
|
24939
|
-
* (`/addon/<addonId>/event-media/<
|
|
25107
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
24940
25108
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
24941
25109
|
* back to the inline `base64` face crop. */
|
|
24942
|
-
|
|
25110
|
+
keyFrameMediaId: number().int().optional(),
|
|
24943
25111
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
24944
25112
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
24945
25113
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -25008,11 +25176,14 @@ var FaceClusterSchema = object({
|
|
|
25008
25176
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
25009
25177
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
25010
25178
|
*
|
|
25011
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
25012
|
-
* media
|
|
25179
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
25180
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
25181
|
+
* access decision.
|
|
25013
25182
|
*/
|
|
25014
25183
|
var MediaFileLiteSchema$1 = object({
|
|
25015
|
-
|
|
25184
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
25185
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
25186
|
+
mediaId: number().int(),
|
|
25016
25187
|
kind: string(),
|
|
25017
25188
|
url: string(),
|
|
25018
25189
|
sizeBytes: number(),
|
|
@@ -25029,7 +25200,7 @@ method(object({
|
|
|
25029
25200
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
25030
25201
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
25031
25202
|
*
|
|
25032
|
-
* Nothing loses its avatar: `
|
|
25203
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
25033
25204
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
25034
25205
|
*
|
|
25035
25206
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -27558,8 +27729,8 @@ var VehicleSchema = object({
|
|
|
27558
27729
|
id: string(),
|
|
27559
27730
|
name: string(),
|
|
27560
27731
|
sampleCount: number().int().nonnegative(),
|
|
27561
|
-
|
|
27562
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
27732
|
+
coverMediaId: number().int().optional(),
|
|
27733
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
27563
27734
|
coverBase64: string().optional()
|
|
27564
27735
|
});
|
|
27565
27736
|
var VehicleSampleInfoSchema = object({
|
|
@@ -27592,7 +27763,7 @@ var PlateInfoSchema = object({
|
|
|
27592
27763
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
27593
27764
|
plateBbox: BoundingBoxSchema.optional(),
|
|
27594
27765
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
27595
|
-
|
|
27766
|
+
keyFrameMediaId: number().int().optional(),
|
|
27596
27767
|
base64: string().optional(),
|
|
27597
27768
|
/**
|
|
27598
27769
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -27613,11 +27784,14 @@ var PlateInfoSchema = object({
|
|
|
27613
27784
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
27614
27785
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
27615
27786
|
*
|
|
27616
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
27617
|
-
* media
|
|
27787
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
27788
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
27789
|
+
* access decision.
|
|
27618
27790
|
*/
|
|
27619
27791
|
var MediaFileLiteSchema = object({
|
|
27620
|
-
|
|
27792
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
27793
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
27794
|
+
mediaId: number().int(),
|
|
27621
27795
|
kind: string(),
|
|
27622
27796
|
url: string(),
|
|
27623
27797
|
sizeBytes: number(),
|
|
@@ -27676,7 +27850,7 @@ method(object({
|
|
|
27676
27850
|
}), method(object({
|
|
27677
27851
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
27678
27852
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
27679
|
-
* option; `
|
|
27853
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
27680
27854
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
27681
27855
|
* resolves to `false` and is exactly the intended default. */
|
|
27682
27856
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -29000,7 +29174,14 @@ var SceneReferenceSchema = object({
|
|
|
29000
29174
|
modelId: string(),
|
|
29001
29175
|
condition: SceneConditionSchema,
|
|
29002
29176
|
capturedAt: number(),
|
|
29003
|
-
|
|
29177
|
+
/**
|
|
29178
|
+
* The reference thumbnail's media ROW id (D482).
|
|
29179
|
+
*
|
|
29180
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
29181
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
29182
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
29183
|
+
*/
|
|
29184
|
+
thumbnailMediaId: number().int().optional(),
|
|
29004
29185
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
29005
29186
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
29006
29187
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -29814,7 +29995,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29814
29995
|
* disarmed the channels it did not mention would make the Levels page and
|
|
29815
29996
|
* the Diagnostics page fight over the same value.
|
|
29816
29997
|
*/
|
|
29817
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
29998
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
29999
|
+
/**
|
|
30000
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30001
|
+
* retention actually deleted.
|
|
30002
|
+
*
|
|
30003
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30004
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30005
|
+
* this system is configured through this one document, and a retention audit
|
|
30006
|
+
* configured somewhere else is a second place to look when the question is
|
|
30007
|
+
* "what happened to my data".
|
|
30008
|
+
*
|
|
30009
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30010
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30011
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30012
|
+
*
|
|
30013
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30014
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30015
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30016
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30017
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30018
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30019
|
+
*/
|
|
30020
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
29818
30021
|
});
|
|
29819
30022
|
/**
|
|
29820
30023
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -29887,6 +30090,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
29887
30090
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
29888
30091
|
/** The channels ARMED right now, each with its deadline. */
|
|
29889
30092
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30093
|
+
/**
|
|
30094
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30095
|
+
*
|
|
30096
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30097
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30098
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30099
|
+
*/
|
|
30100
|
+
opsLogRetentionDays: number().int().min(0),
|
|
29890
30101
|
persisted: boolean()
|
|
29891
30102
|
});
|
|
29892
30103
|
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(), {
|
|
@@ -30448,7 +30659,7 @@ var StationaryObjectSchema = object({
|
|
|
30448
30659
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
30449
30660
|
label: string().optional(),
|
|
30450
30661
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
30451
|
-
|
|
30662
|
+
keyFrameMediaId: number().int().optional()
|
|
30452
30663
|
});
|
|
30453
30664
|
var CameraOccupancySnapshotSchema = object({
|
|
30454
30665
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -31604,6 +31815,12 @@ Object.freeze({
|
|
|
31604
31815
|
addonId: null,
|
|
31605
31816
|
access: "create"
|
|
31606
31817
|
},
|
|
31818
|
+
"dataStoreProvider.upsert": {
|
|
31819
|
+
capName: "data-store-provider",
|
|
31820
|
+
capScope: "system",
|
|
31821
|
+
addonId: null,
|
|
31822
|
+
access: "create"
|
|
31823
|
+
},
|
|
31607
31824
|
"dayNight.getOptions": {
|
|
31608
31825
|
capName: "day-night",
|
|
31609
31826
|
capScope: "device",
|
|
@@ -34040,6 +34257,12 @@ Object.freeze({
|
|
|
34040
34257
|
addonId: null,
|
|
34041
34258
|
access: "view"
|
|
34042
34259
|
},
|
|
34260
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34261
|
+
capName: "pipeline-analytics",
|
|
34262
|
+
capScope: "device",
|
|
34263
|
+
addonId: null,
|
|
34264
|
+
access: "view"
|
|
34265
|
+
},
|
|
34043
34266
|
"pipelineAnalytics.listRecentTracks": {
|
|
34044
34267
|
capName: "pipeline-analytics",
|
|
34045
34268
|
capScope: "device",
|
|
@@ -35468,6 +35691,12 @@ Object.freeze({
|
|
|
35468
35691
|
addonId: null,
|
|
35469
35692
|
access: "create"
|
|
35470
35693
|
},
|
|
35694
|
+
"settingsStore.upsert": {
|
|
35695
|
+
capName: "settings-store",
|
|
35696
|
+
capScope: "system",
|
|
35697
|
+
addonId: null,
|
|
35698
|
+
access: "create"
|
|
35699
|
+
},
|
|
35471
35700
|
"smtpProvider.getStatus": {
|
|
35472
35701
|
capName: "smtp-provider",
|
|
35473
35702
|
capScope: "system",
|
|
@@ -37861,6 +38090,11 @@ Object.freeze({
|
|
|
37861
38090
|
form: "single",
|
|
37862
38091
|
optional: true
|
|
37863
38092
|
}],
|
|
38093
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38094
|
+
name: "deviceIds",
|
|
38095
|
+
form: "array",
|
|
38096
|
+
optional: false
|
|
38097
|
+
}],
|
|
37864
38098
|
"pipelineAnalytics.listRecentTracks": [{
|
|
37865
38099
|
name: "deviceIds",
|
|
37866
38100
|
form: "array",
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-BfWsQb9o.js");
|
|
6
6
|
let node_crypto = require("node:crypto");
|
|
7
7
|
let node_child_process = require("node:child_process");
|
|
8
8
|
//#region src/ingress/tailscale-cli.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-
|
|
1
|
+
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-Gl7DmccH.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { execFile } from "node:child_process";
|
|
4
4
|
import { promisify } from "node:util";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-tailscale",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.101",
|
|
4
4
|
"description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|