camstack 1.2.144 → 1.2.146
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.
|
@@ -14522,7 +14522,7 @@ function date4(params) {
|
|
|
14522
14522
|
// ../../node_modules/zod/v4/classic/external.js
|
|
14523
14523
|
config(en_default());
|
|
14524
14524
|
|
|
14525
|
-
// ../types/dist/sleep-
|
|
14525
|
+
// ../types/dist/sleep-DBKu2-U5.mjs
|
|
14526
14526
|
var AUDIO_CHUNK_FORMATS = [
|
|
14527
14527
|
"f32le",
|
|
14528
14528
|
"pcmu",
|
|
@@ -15384,7 +15384,7 @@ function sleep(ms) {
|
|
|
15384
15384
|
return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
|
|
15385
15385
|
}
|
|
15386
15386
|
|
|
15387
|
-
// ../types/dist/canonical-hash-
|
|
15387
|
+
// ../types/dist/canonical-hash-Ch5bSjFG.mjs
|
|
15388
15388
|
import { createHash } from "crypto";
|
|
15389
15389
|
var DEFAULT_MAX_UNIT_BYTES = 16 * 1024 * 1024;
|
|
15390
15390
|
|
|
@@ -15399,7 +15399,8 @@ var MEDIA_OWNER_TYPES = [
|
|
|
15399
15399
|
"scene",
|
|
15400
15400
|
"motion",
|
|
15401
15401
|
"object",
|
|
15402
|
-
"audio"
|
|
15402
|
+
"audio",
|
|
15403
|
+
"mosaic"
|
|
15403
15404
|
];
|
|
15404
15405
|
var OWNER_TYPES = new Set(MEDIA_OWNER_TYPES);
|
|
15405
15406
|
var EVENT_OWNER_TYPES = [
|
|
@@ -15407,6 +15408,7 @@ var EVENT_OWNER_TYPES = [
|
|
|
15407
15408
|
"object",
|
|
15408
15409
|
"audio"
|
|
15409
15410
|
];
|
|
15411
|
+
var EventOwnerTypeSchema = external_exports.enum(EVENT_OWNER_TYPES);
|
|
15410
15412
|
var EVENT_OWNER_TYPE_SET = new Set(EVENT_OWNER_TYPES);
|
|
15411
15413
|
var VideoEncodeSchema = external_exports.object({
|
|
15412
15414
|
codec: external_exports.enum([
|
|
@@ -15445,7 +15447,23 @@ var VideoEncodeSchema = external_exports.object({
|
|
|
15445
15447
|
"zerolatency",
|
|
15446
15448
|
"film",
|
|
15447
15449
|
"animation"
|
|
15448
|
-
]).optional()
|
|
15450
|
+
]).optional(),
|
|
15451
|
+
/**
|
|
15452
|
+
* ONE slice per access unit.
|
|
15453
|
+
*
|
|
15454
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
15455
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
15456
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
15457
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
15458
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
15459
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
15460
|
+
*
|
|
15461
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
15462
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
15463
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
15464
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
15465
|
+
*/
|
|
15466
|
+
singleSlicePerFrame: external_exports.boolean().optional()
|
|
15449
15467
|
});
|
|
15450
15468
|
var AudioEncodeSchema = external_exports.union([external_exports.literal("passthrough"), external_exports.object({
|
|
15451
15469
|
codec: external_exports.enum([
|
|
@@ -15504,7 +15522,11 @@ var WEBRTC_EGRESS_PROFILE = {
|
|
|
15504
15522
|
};
|
|
15505
15523
|
var ALEXA_EGRESS_PROFILE = {
|
|
15506
15524
|
...BASE_LIVE_EGRESS_PROFILE,
|
|
15507
|
-
audio: { codec: "opus" }
|
|
15525
|
+
audio: { codec: "opus" },
|
|
15526
|
+
video: {
|
|
15527
|
+
...BASE_LIVE_EGRESS_PROFILE.video,
|
|
15528
|
+
singleSlicePerFrame: true
|
|
15529
|
+
}
|
|
15508
15530
|
};
|
|
15509
15531
|
var wiringProbeKindSchema = external_exports.enum([
|
|
15510
15532
|
"singleton",
|
|
@@ -20006,6 +20028,60 @@ var settingsStoreCapability = {
|
|
|
20006
20028
|
filter: QueryFilterSchema.optional(),
|
|
20007
20029
|
columns: external_exports.array(external_exports.string()).readonly().optional()
|
|
20008
20030
|
}), external_exports.array(SettingsRecordSchema).readonly()),
|
|
20031
|
+
/**
|
|
20032
|
+
* Make a SLOT hold this row — insert it, or update whatever already
|
|
20033
|
+
* occupies the slot — and answer with the id the row HAS.
|
|
20034
|
+
*
|
|
20035
|
+
* ## Why the store needed this
|
|
20036
|
+
*
|
|
20037
|
+
* {@link set} is already an upsert, but its slot is the PRIMARY KEY: the
|
|
20038
|
+
* caller has to know the id to address the row. That is exactly what a
|
|
20039
|
+
* collection keyed by an `INTEGER` rowid alias cannot do — SQLite assigns
|
|
20040
|
+
* the id, so a writer whose uniqueness rule is "one row per
|
|
20041
|
+
* `(ownerKind, ownerId, kind, slot)`" has no id to name and no way to
|
|
20042
|
+
* express the rule. {@link insert} can express it (a UNIQUE index
|
|
20043
|
+
* arbitrates) but only by THROWING at the loser of a race, and the loser
|
|
20044
|
+
* here is a legitimate re-capture, not an error.
|
|
20045
|
+
*
|
|
20046
|
+
* Getting there without this method means read-then-write: query the slot,
|
|
20047
|
+
* then `insert` or `update`. Two statements instead of one, a race between
|
|
20048
|
+
* them, and a recovery path that has to recognise a UNIQUE violation by its
|
|
20049
|
+
* MESSAGE — across a process boundary, because the store lives behind an
|
|
20050
|
+
* RPC door. A string match would be the whole gate, and a store that
|
|
20051
|
+
* rephrased its error would lose the row silently. One statement has no
|
|
20052
|
+
* such gate (D482).
|
|
20053
|
+
*
|
|
20054
|
+
* ## The contract
|
|
20055
|
+
*
|
|
20056
|
+
* `conflict` names the DECLARED columns that identify the slot. They must
|
|
20057
|
+
* be covered by a UNIQUE index on the collection — SQLite resolves an
|
|
20058
|
+
* `ON CONFLICT` target against its indexes and REFUSES the statement when
|
|
20059
|
+
* none matches, so a wrong list is a loud error on the first write, never a
|
|
20060
|
+
* silently duplicated row. An empty list is refused rather than passed on:
|
|
20061
|
+
* `ON CONFLICT()` is not valid SQL, and the intent it would most likely
|
|
20062
|
+
* encode ("no slot, just insert") is {@link insert}.
|
|
20063
|
+
*
|
|
20064
|
+
* Row shape is {@link insert}'s: `record.id` is used when the collection
|
|
20065
|
+
* needs a supplied key and IGNORED when the primary key is an `INTEGER`
|
|
20066
|
+
* rowid alias — exactly as `insert` and `insertMany` already treat it.
|
|
20067
|
+
*
|
|
20068
|
+
* Returns the id either way: the one SQLite assigned on an insert, or the
|
|
20069
|
+
* one the row it updated already had. A caller cannot tell which happened,
|
|
20070
|
+
* and deliberately — every caller wants the slot's id, and one that needed
|
|
20071
|
+
* to distinguish creation from replacement would have to read first anyway.
|
|
20072
|
+
*/
|
|
20073
|
+
upsert: method(external_exports.object({
|
|
20074
|
+
namespace: external_exports.string().optional(),
|
|
20075
|
+
collection: external_exports.string(),
|
|
20076
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
20077
|
+
* index on the collection. Never empty. */
|
|
20078
|
+
conflict: external_exports.array(external_exports.string()).readonly(),
|
|
20079
|
+
record: BulkRecordSchema
|
|
20080
|
+
}), external_exports.object({
|
|
20081
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
20082
|
+
* row's own id on an update. */
|
|
20083
|
+
id: external_exports.union([external_exports.string(), external_exports.number()])
|
|
20084
|
+
}), { kind: "mutation" }),
|
|
20009
20085
|
/** Insert a new record. */
|
|
20010
20086
|
insert: method(external_exports.object({
|
|
20011
20087
|
namespace: external_exports.string().optional(),
|
|
@@ -20249,6 +20325,20 @@ var dataStoreProviderCapability = {
|
|
|
20249
20325
|
kind: "mutation",
|
|
20250
20326
|
auth: "admin"
|
|
20251
20327
|
}),
|
|
20328
|
+
/**
|
|
20329
|
+
* Make a slot hold this row, and answer with the id the row HAS. The
|
|
20330
|
+
* engine half of `settings-store.upsert` — read that docblock for why the
|
|
20331
|
+
* store needed a slot that is not the primary key (D482).
|
|
20332
|
+
*/
|
|
20333
|
+
upsert: method(external_exports.object({
|
|
20334
|
+
namespace: external_exports.string().optional(),
|
|
20335
|
+
collection: external_exports.string(),
|
|
20336
|
+
conflict: external_exports.array(external_exports.string()).readonly(),
|
|
20337
|
+
record: BulkRecordSchema
|
|
20338
|
+
}), external_exports.object({ id: external_exports.union([external_exports.string(), external_exports.number()]) }), {
|
|
20339
|
+
kind: "mutation",
|
|
20340
|
+
auth: "admin"
|
|
20341
|
+
}),
|
|
20252
20342
|
/** Insert many records in ONE transaction. All or nothing. */
|
|
20253
20343
|
insertMany: method(external_exports.object({
|
|
20254
20344
|
namespace: external_exports.string().optional(),
|
|
@@ -26551,8 +26641,8 @@ var TrackPositionSchema = external_exports.object({
|
|
|
26551
26641
|
var TrackSnapshotSchema = external_exports.object({
|
|
26552
26642
|
timestamp: external_exports.number(),
|
|
26553
26643
|
position: TrackPositionSchema,
|
|
26554
|
-
/**
|
|
26555
|
-
|
|
26644
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
26645
|
+
mediaId: external_exports.number().int()
|
|
26556
26646
|
});
|
|
26557
26647
|
var TrackEnvelopeSchema = external_exports.object({
|
|
26558
26648
|
minX: external_exports.number(),
|
|
@@ -26991,14 +27081,14 @@ var ObjectEventSchema = external_exports.object({
|
|
|
26991
27081
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
26992
27082
|
frameWidth: external_exports.number().optional(),
|
|
26993
27083
|
frameHeight: external_exports.number().optional(),
|
|
26994
|
-
/**
|
|
26995
|
-
|
|
26996
|
-
/** Design B:
|
|
27084
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
27085
|
+
mediaId: external_exports.number().int().optional(),
|
|
27086
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
26997
27087
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
26998
|
-
* (`/addon/<addonId>/event-media/<
|
|
27088
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
26999
27089
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
27000
|
-
* sources — consumers fall back to `
|
|
27001
|
-
|
|
27090
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
27091
|
+
keyFrameMediaId: external_exports.number().int().optional(),
|
|
27002
27092
|
/** Populated by B5 (recording playback URL for this event). */
|
|
27003
27093
|
mediaUrl: external_exports.string().optional(),
|
|
27004
27094
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -27035,7 +27125,19 @@ var MediaFileKindEnum = external_exports.enum([
|
|
|
27035
27125
|
"sceneFrame"
|
|
27036
27126
|
]);
|
|
27037
27127
|
var MediaFileRefSchema = external_exports.object({
|
|
27038
|
-
|
|
27128
|
+
/**
|
|
27129
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
27130
|
+
*
|
|
27131
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
27132
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
27133
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
27134
|
+
* different rows that spell the same number, and a track whose
|
|
27135
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
27136
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
27137
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
27138
|
+
* at all.
|
|
27139
|
+
*/
|
|
27140
|
+
mediaId: external_exports.number().int(),
|
|
27039
27141
|
kind: MediaFileKindEnum,
|
|
27040
27142
|
sizeBytes: external_exports.number(),
|
|
27041
27143
|
timestamp: external_exports.number()
|
|
@@ -27103,7 +27205,7 @@ var RetrainTrackSchema = external_exports.object({
|
|
|
27103
27205
|
annotationCount: external_exports.number().int()
|
|
27104
27206
|
});
|
|
27105
27207
|
var RetrainFrameCandidateSchema = external_exports.object({
|
|
27106
|
-
|
|
27208
|
+
mediaId: external_exports.number().int(),
|
|
27107
27209
|
kind: MediaFileKindEnum,
|
|
27108
27210
|
timestamp: external_exports.number(),
|
|
27109
27211
|
sizeBytes: external_exports.number().int(),
|
|
@@ -27116,7 +27218,7 @@ var RetrainFrameSchema = external_exports.object({
|
|
|
27116
27218
|
deviceId: external_exports.number(),
|
|
27117
27219
|
trackId: external_exports.string(),
|
|
27118
27220
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
27119
|
-
|
|
27221
|
+
sourceMediaId: external_exports.number().int(),
|
|
27120
27222
|
sourceKind: MediaFileKindEnum,
|
|
27121
27223
|
sizeBytes: external_exports.number().int(),
|
|
27122
27224
|
width: external_exports.number().int(),
|
|
@@ -27131,7 +27233,7 @@ var RetrainCopyRefusalSchema = external_exports.enum([
|
|
|
27131
27233
|
var RetrainFrameSelectionSchema = external_exports.object({
|
|
27132
27234
|
copied: external_exports.array(RetrainFrameSchema).readonly(),
|
|
27133
27235
|
refused: external_exports.array(external_exports.object({
|
|
27134
|
-
|
|
27236
|
+
sourceMediaId: external_exports.number().int(),
|
|
27135
27237
|
reason: RetrainCopyRefusalSchema
|
|
27136
27238
|
})).readonly()
|
|
27137
27239
|
});
|
|
@@ -27139,7 +27241,7 @@ var RetrainFrameListSchema = external_exports.object({
|
|
|
27139
27241
|
candidates: external_exports.array(RetrainFrameCandidateSchema).readonly(),
|
|
27140
27242
|
copies: external_exports.array(RetrainFrameSchema).readonly(),
|
|
27141
27243
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
27142
|
-
|
|
27244
|
+
autoPickMediaId: external_exports.number().int().optional()
|
|
27143
27245
|
});
|
|
27144
27246
|
var RetrainAssistSubjectSchema = external_exports.discriminatedUnion("kind", [external_exports.object({
|
|
27145
27247
|
kind: external_exports.literal("package"),
|
|
@@ -27232,19 +27334,97 @@ var SummarySchema = external_exports.object({
|
|
|
27232
27334
|
lastActiveAt: external_exports.number(),
|
|
27233
27335
|
sealedAt: external_exports.number().nullable(),
|
|
27234
27336
|
memberCount: external_exports.number().int().nonnegative(),
|
|
27235
|
-
|
|
27337
|
+
groupShotMediaId: external_exports.number().int().nullable()
|
|
27236
27338
|
});
|
|
27237
27339
|
var SummariesQueryInput = external_exports.object({
|
|
27238
27340
|
deviceIds: external_exports.array(external_exports.number()).min(1),
|
|
27239
27341
|
since: external_exports.number().optional(),
|
|
27240
27342
|
until: external_exports.number().optional(),
|
|
27241
|
-
limit: external_exports.number().int().min(1).max(200).default(50)
|
|
27343
|
+
limit: external_exports.number().int().min(1).max(200).default(50),
|
|
27344
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
27345
|
+
* meaning of "dog" on every summary surface. */
|
|
27346
|
+
classes: external_exports.array(external_exports.string().min(1).max(60)).max(40).optional()
|
|
27347
|
+
});
|
|
27348
|
+
var SummaryMemberSchema = external_exports.object({
|
|
27349
|
+
trackId: external_exports.string(),
|
|
27350
|
+
/**
|
|
27351
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
27352
|
+
* and the track no longer exists to fill it.
|
|
27353
|
+
*
|
|
27354
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
27355
|
+
* class afterwards, and a group's composition is the history of who came
|
|
27356
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
27357
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
27358
|
+
* drift from the members it claims to describe.
|
|
27359
|
+
*/
|
|
27360
|
+
className: external_exports.string().nullable(),
|
|
27361
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
27362
|
+
role: external_exports.enum([
|
|
27363
|
+
"primary",
|
|
27364
|
+
"sibling",
|
|
27365
|
+
"child"
|
|
27366
|
+
]).nullable(),
|
|
27367
|
+
joinedAt: external_exports.number(),
|
|
27368
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
27369
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
27370
|
+
label: external_exports.string().optional(),
|
|
27371
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
27372
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
27373
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
27374
|
+
subLabel: external_exports.string().optional()
|
|
27242
27375
|
});
|
|
27243
|
-
var SummariesPageSchema = external_exports.object({ summaries: external_exports.array(SummarySchema).readonly() });
|
|
27244
27376
|
var SummaryDetailSchema = external_exports.object({
|
|
27245
27377
|
summary: SummarySchema,
|
|
27246
|
-
/**
|
|
27247
|
-
|
|
27378
|
+
/** Members in absorption order, oldest join first. */
|
|
27379
|
+
members: external_exports.array(SummaryMemberSchema).readonly()
|
|
27380
|
+
});
|
|
27381
|
+
var SummaryListItemSchema = external_exports.object({
|
|
27382
|
+
summary: SummarySchema,
|
|
27383
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
27384
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
27385
|
+
classes: external_exports.array(external_exports.object({
|
|
27386
|
+
className: external_exports.string().nullable(),
|
|
27387
|
+
count: external_exports.number().int().positive()
|
|
27388
|
+
})).readonly()
|
|
27389
|
+
});
|
|
27390
|
+
var SummariesPageSchema = external_exports.object({ summaries: external_exports.array(SummaryListItemSchema).readonly() });
|
|
27391
|
+
var RecentSummariesQueryInput = external_exports.object({
|
|
27392
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
27393
|
+
deviceIds: external_exports.array(external_exports.number()),
|
|
27394
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
27395
|
+
since: external_exports.number().optional(),
|
|
27396
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
27397
|
+
until: external_exports.number().optional(),
|
|
27398
|
+
limit: external_exports.number().int().min(1).max(500).default(100),
|
|
27399
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
27400
|
+
cursor: external_exports.string().optional(),
|
|
27401
|
+
/**
|
|
27402
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
27403
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
27404
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
27405
|
+
* make the operator's one filter component produce two shapes.
|
|
27406
|
+
*
|
|
27407
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
27408
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
27409
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
27410
|
+
* about its primary.
|
|
27411
|
+
*
|
|
27412
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
27413
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
27414
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
27415
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
27416
|
+
* that read only the class would answer "animal" and never "dog".
|
|
27417
|
+
*
|
|
27418
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
27419
|
+
*/
|
|
27420
|
+
classes: external_exports.array(external_exports.string().min(1).max(60)).max(40).optional()
|
|
27421
|
+
});
|
|
27422
|
+
var RecentSummariesPageSchema = external_exports.object({
|
|
27423
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
27424
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
27425
|
+
* whichever feed drew it. */
|
|
27426
|
+
summaries: external_exports.array(SummaryListItemSchema).readonly(),
|
|
27427
|
+
nextCursor: external_exports.string().nullable()
|
|
27248
27428
|
});
|
|
27249
27429
|
var RecentTracksPageSchema = external_exports.object({
|
|
27250
27430
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -27596,6 +27776,11 @@ var pipelineAnalyticsCapability = {
|
|
|
27596
27776
|
listRecentTracks: method(RecentTracksQueryInput, RecentTracksPageSchema),
|
|
27597
27777
|
/** Newest first by `openedAt`, for a camera set, inside an optional window. */
|
|
27598
27778
|
listSummaries: method(SummariesQueryInput, SummariesPageSchema),
|
|
27779
|
+
/**
|
|
27780
|
+
* The PAGED feed — the reel and the Events gallery. Same cursor contract as
|
|
27781
|
+
* {@link listRecentTracks}, so one screen cannot hold two ideas of newest.
|
|
27782
|
+
*/
|
|
27783
|
+
listRecentSummaries: method(RecentSummariesQueryInput, RecentSummariesPageSchema),
|
|
27599
27784
|
/** One summary with its member track ids; `null` for an id nobody wrote. */
|
|
27600
27785
|
getSummary: method(external_exports.object({ id: external_exports.string() }), SummaryDetailSchema.nullable()),
|
|
27601
27786
|
clearTracks: method(external_exports.object({ deviceId: external_exports.number() }), external_exports.void(), {
|
|
@@ -28125,7 +28310,7 @@ var pipelineAnalyticsCapability = {
|
|
|
28125
28310
|
selectRetrainFrames: method(external_exports.object({
|
|
28126
28311
|
deviceId: external_exports.number(),
|
|
28127
28312
|
trackId: external_exports.string(),
|
|
28128
|
-
|
|
28313
|
+
mediaIds: external_exports.array(external_exports.number().int()).min(1)
|
|
28129
28314
|
}), RetrainFrameSelectionSchema, {
|
|
28130
28315
|
kind: "mutation",
|
|
28131
28316
|
auth: "admin"
|
|
@@ -28289,8 +28474,29 @@ var pipelineAnalyticsCapability = {
|
|
|
28289
28474
|
kind: "query",
|
|
28290
28475
|
auth: "admin"
|
|
28291
28476
|
}),
|
|
28477
|
+
/**
|
|
28478
|
+
* The media an EVENT owns.
|
|
28479
|
+
*
|
|
28480
|
+
* `ownerType` is REQUIRED, and that is the whole correction (D482). An
|
|
28481
|
+
* event is a row in ONE of three tables, and since D474 each numbers from
|
|
28482
|
+
* 1 independently: `motion:101314` and `object:101314` both exist. This
|
|
28483
|
+
* method took a bare `eventId` and the provider probed motion → object →
|
|
28484
|
+
* audio, stopping at the first hit — so on the live hub, where object
|
|
28485
|
+
* events own no media of their own and 299 883 of 300 559 media rows are
|
|
28486
|
+
* motion-owned, EVERY object event resolved to its motion namesake. A
|
|
28487
|
+
* track from 17:34 on camera 615 was served a snapshot from 22:35 eleven
|
|
28488
|
+
* days earlier, silently.
|
|
28489
|
+
*
|
|
28490
|
+
* D476 had already disambiguated the KEY (`motion:` vs `object:`); this is
|
|
28491
|
+
* the API catching up to it. Naming the table is not a "qualification" of
|
|
28492
|
+
* the ambiguity — a listing BY OWNER has no address to make surrogate: the
|
|
28493
|
+
* owner IS (table, id), and half of it is not a question.
|
|
28494
|
+
*/
|
|
28292
28495
|
getEventMedia: method(external_exports.object({
|
|
28293
|
-
|
|
28496
|
+
/** Which of the three event tables owns the row. */
|
|
28497
|
+
ownerType: EventOwnerTypeSchema,
|
|
28498
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
28499
|
+
eventId: external_exports.number().int(),
|
|
28294
28500
|
kind: MediaFileKindEnum.optional(),
|
|
28295
28501
|
deviceId: external_exports.number()
|
|
28296
28502
|
}), external_exports.array(MediaFileSchema).readonly()),
|
|
@@ -28335,11 +28541,14 @@ var pipelineAnalyticsCapability = {
|
|
|
28335
28541
|
* the live hub: one event's `fullFrameBoxed` is 2 824 077 B, base64'd to
|
|
28336
28542
|
* ~3.8 MB, allocated whole in hub-main's heap, for a list of keys.
|
|
28337
28543
|
*
|
|
28338
|
-
* Same `deviceId` authorization subject as `getEventMedia`,
|
|
28339
|
-
*
|
|
28544
|
+
* Same `deviceId` authorization subject as `getEventMedia`, the same
|
|
28545
|
+
* REQUIRED `ownerType` (read that method's docblock for the night-time
|
|
28546
|
+
* thumbnail this closes — D482), and the same rows: this is a projection
|
|
28547
|
+
* of that method, never a different question.
|
|
28340
28548
|
*/
|
|
28341
28549
|
listEventMedia: method(external_exports.object({
|
|
28342
|
-
|
|
28550
|
+
ownerType: EventOwnerTypeSchema,
|
|
28551
|
+
eventId: external_exports.number().int(),
|
|
28343
28552
|
deviceId: external_exports.number()
|
|
28344
28553
|
}), external_exports.array(MediaFileInfoSchema).readonly()),
|
|
28345
28554
|
/**
|
|
@@ -34018,8 +34227,8 @@ var IdentitySchema = external_exports.object({
|
|
|
34018
34227
|
id: external_exports.string(),
|
|
34019
34228
|
name: external_exports.string(),
|
|
34020
34229
|
sampleCount: external_exports.number().int().nonnegative(),
|
|
34021
|
-
|
|
34022
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
34230
|
+
coverMediaId: external_exports.number().int().optional(),
|
|
34231
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
34023
34232
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
34024
34233
|
coverBase64: external_exports.string().optional()
|
|
34025
34234
|
});
|
|
@@ -34035,8 +34244,8 @@ var IdentitySampleAuditRowSchema = external_exports.object({
|
|
|
34035
34244
|
enrolledAt: external_exports.number().int(),
|
|
34036
34245
|
deviceId: external_exports.number().int().optional(),
|
|
34037
34246
|
source: external_exports.enum(["detected", "photo"]),
|
|
34038
|
-
/** The enrolled crop's media
|
|
34039
|
-
|
|
34247
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
34248
|
+
mediaId: external_exports.number().int().optional(),
|
|
34040
34249
|
/**
|
|
34041
34250
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
34042
34251
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -34105,15 +34314,15 @@ var FaceInfoSchema = external_exports.object({
|
|
|
34105
34314
|
*/
|
|
34106
34315
|
cropUrl: external_exports.string().optional(),
|
|
34107
34316
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
34108
|
-
* view draw the box over the native `
|
|
34317
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
34109
34318
|
* legacy rows written before design B. */
|
|
34110
34319
|
faceBbox: BoundingBoxSchema.optional(),
|
|
34111
34320
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
34112
34321
|
* Fetch the native JPEG via the event-media data-plane
|
|
34113
|
-
* (`/addon/<addonId>/event-media/<
|
|
34322
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
34114
34323
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
34115
34324
|
* back to the inline `base64` face crop. */
|
|
34116
|
-
|
|
34325
|
+
keyFrameMediaId: external_exports.number().int().optional(),
|
|
34117
34326
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
34118
34327
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
34119
34328
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -34151,7 +34360,9 @@ var FaceClusterSchema = external_exports.object({
|
|
|
34151
34360
|
cohesion: external_exports.number()
|
|
34152
34361
|
});
|
|
34153
34362
|
var MediaFileLiteSchema$1 = external_exports.object({
|
|
34154
|
-
|
|
34363
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
34364
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
34365
|
+
mediaId: external_exports.number().int(),
|
|
34155
34366
|
kind: external_exports.string(),
|
|
34156
34367
|
url: external_exports.string(),
|
|
34157
34368
|
sizeBytes: external_exports.number(),
|
|
@@ -34173,7 +34384,7 @@ var faceGalleryCapability = {
|
|
|
34173
34384
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
34174
34385
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
34175
34386
|
*
|
|
34176
|
-
* Nothing loses its avatar: `
|
|
34387
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
34177
34388
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
34178
34389
|
*
|
|
34179
34390
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -37303,8 +37514,8 @@ var VehicleSchema = external_exports.object({
|
|
|
37303
37514
|
id: external_exports.string(),
|
|
37304
37515
|
name: external_exports.string(),
|
|
37305
37516
|
sampleCount: external_exports.number().int().nonnegative(),
|
|
37306
|
-
|
|
37307
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
37517
|
+
coverMediaId: external_exports.number().int().optional(),
|
|
37518
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
37308
37519
|
coverBase64: external_exports.string().optional()
|
|
37309
37520
|
});
|
|
37310
37521
|
var VehicleSampleInfoSchema = external_exports.object({
|
|
@@ -37337,7 +37548,7 @@ var PlateInfoSchema = external_exports.object({
|
|
|
37337
37548
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
37338
37549
|
plateBbox: BoundingBoxSchema.optional(),
|
|
37339
37550
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
37340
|
-
|
|
37551
|
+
keyFrameMediaId: external_exports.number().int().optional(),
|
|
37341
37552
|
base64: external_exports.string().optional(),
|
|
37342
37553
|
/**
|
|
37343
37554
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -37348,7 +37559,9 @@ var PlateInfoSchema = external_exports.object({
|
|
|
37348
37559
|
cropUrl: external_exports.string().optional()
|
|
37349
37560
|
});
|
|
37350
37561
|
var MediaFileLiteSchema = external_exports.object({
|
|
37351
|
-
|
|
37562
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
37563
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
37564
|
+
mediaId: external_exports.number().int(),
|
|
37352
37565
|
kind: external_exports.string(),
|
|
37353
37566
|
url: external_exports.string(),
|
|
37354
37567
|
sizeBytes: external_exports.number(),
|
|
@@ -37422,7 +37635,7 @@ var plateGalleryCapability = {
|
|
|
37422
37635
|
listVehicles: method(external_exports.object({
|
|
37423
37636
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
37424
37637
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
37425
|
-
* option; `
|
|
37638
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
37426
37639
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
37427
37640
|
* resolves to `false` and is exactly the intended default. */
|
|
37428
37641
|
includeCrops: external_exports.boolean().optional()
|
|
@@ -38920,7 +39133,14 @@ var SceneReferenceSchema = external_exports.object({
|
|
|
38920
39133
|
modelId: external_exports.string(),
|
|
38921
39134
|
condition: SceneConditionSchema,
|
|
38922
39135
|
capturedAt: external_exports.number(),
|
|
38923
|
-
|
|
39136
|
+
/**
|
|
39137
|
+
* The reference thumbnail's media ROW id (D482).
|
|
39138
|
+
*
|
|
39139
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
39140
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
39141
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
39142
|
+
*/
|
|
39143
|
+
thumbnailMediaId: external_exports.number().int().optional(),
|
|
38924
39144
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
38925
39145
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
38926
39146
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -39750,7 +39970,29 @@ var LoggingSettingsPatchSchema = external_exports.object({
|
|
|
39750
39970
|
* disarmed the channels it did not mention would make the Levels page and
|
|
39751
39971
|
* the Diagnostics page fight over the same value.
|
|
39752
39972
|
*/
|
|
39753
|
-
channels: external_exports.array(LogChannelWindowPatchSchema).readonly().optional()
|
|
39973
|
+
channels: external_exports.array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
39974
|
+
/**
|
|
39975
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
39976
|
+
* retention actually deleted.
|
|
39977
|
+
*
|
|
39978
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
39979
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
39980
|
+
* this system is configured through this one document, and a retention audit
|
|
39981
|
+
* configured somewhere else is a second place to look when the question is
|
|
39982
|
+
* "what happened to my data".
|
|
39983
|
+
*
|
|
39984
|
+
* That placement has a cost worth stating: this document ships in the
|
|
39985
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
39986
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
39987
|
+
*
|
|
39988
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
39989
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
39990
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
39991
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
39992
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
39993
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
39994
|
+
*/
|
|
39995
|
+
opsLogRetentionDays: external_exports.number().int().min(0).max(3650).optional()
|
|
39754
39996
|
});
|
|
39755
39997
|
var ReportedLoadContributionSchema = LoadContributionSchema.extend({ addonId: external_exports.string() });
|
|
39756
39998
|
var ReportedFailureContributionSchema = FailureContributionSchema.extend({ addonId: external_exports.string() });
|
|
@@ -39789,6 +40031,14 @@ var LoggingSettingsStateSchema = external_exports.object({
|
|
|
39789
40031
|
channels: external_exports.array(LogChannelDescriptorSchema).readonly(),
|
|
39790
40032
|
/** The channels ARMED right now, each with its deadline. */
|
|
39791
40033
|
activeChannels: external_exports.array(LogChannelWindowStateSchema).readonly(),
|
|
40034
|
+
/**
|
|
40035
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
40036
|
+
*
|
|
40037
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
40038
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
40039
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
40040
|
+
*/
|
|
40041
|
+
opsLogRetentionDays: external_exports.number().int().min(0),
|
|
39792
40042
|
persisted: external_exports.boolean()
|
|
39793
40043
|
});
|
|
39794
40044
|
var systemCapability = {
|
|
@@ -40612,7 +40862,7 @@ var StationaryObjectSchema = external_exports.object({
|
|
|
40612
40862
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
40613
40863
|
label: external_exports.string().optional(),
|
|
40614
40864
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
40615
|
-
|
|
40865
|
+
keyFrameMediaId: external_exports.number().int().optional()
|
|
40616
40866
|
});
|
|
40617
40867
|
var CameraOccupancySnapshotSchema = external_exports.object({
|
|
40618
40868
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -41876,6 +42126,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
41876
42126
|
addonId: null,
|
|
41877
42127
|
access: "create"
|
|
41878
42128
|
},
|
|
42129
|
+
"dataStoreProvider.upsert": {
|
|
42130
|
+
capName: "data-store-provider",
|
|
42131
|
+
capScope: "system",
|
|
42132
|
+
addonId: null,
|
|
42133
|
+
access: "create"
|
|
42134
|
+
},
|
|
41879
42135
|
"dayNight.getOptions": {
|
|
41880
42136
|
capName: "day-night",
|
|
41881
42137
|
capScope: "device",
|
|
@@ -44312,6 +44568,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
44312
44568
|
addonId: null,
|
|
44313
44569
|
access: "view"
|
|
44314
44570
|
},
|
|
44571
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
44572
|
+
capName: "pipeline-analytics",
|
|
44573
|
+
capScope: "device",
|
|
44574
|
+
addonId: null,
|
|
44575
|
+
access: "view"
|
|
44576
|
+
},
|
|
44315
44577
|
"pipelineAnalytics.listRecentTracks": {
|
|
44316
44578
|
capName: "pipeline-analytics",
|
|
44317
44579
|
capScope: "device",
|
|
@@ -45740,6 +46002,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
45740
46002
|
addonId: null,
|
|
45741
46003
|
access: "create"
|
|
45742
46004
|
},
|
|
46005
|
+
"settingsStore.upsert": {
|
|
46006
|
+
capName: "settings-store",
|
|
46007
|
+
capScope: "system",
|
|
46008
|
+
addonId: null,
|
|
46009
|
+
access: "create"
|
|
46010
|
+
},
|
|
45743
46011
|
"smtpProvider.getStatus": {
|
|
45744
46012
|
capName: "smtp-provider",
|
|
45745
46013
|
capScope: "system",
|
|
@@ -48133,6 +48401,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
|
|
|
48133
48401
|
form: "single",
|
|
48134
48402
|
optional: true
|
|
48135
48403
|
}],
|
|
48404
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
48405
|
+
name: "deviceIds",
|
|
48406
|
+
form: "array",
|
|
48407
|
+
optional: false
|
|
48408
|
+
}],
|
|
48136
48409
|
"pipelineAnalytics.listRecentTracks": [{
|
|
48137
48410
|
name: "deviceIds",
|
|
48138
48411
|
form: "array",
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runDiscover
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-F3AFDVKF.js";
|
|
5
5
|
import "./chunk-LMMQX4CK.js";
|
|
6
6
|
|
|
7
7
|
// src/cli.ts
|
|
@@ -38,7 +38,7 @@ async function runServe(args) {
|
|
|
38
38
|
...typeof values.data === "string" ? { data: values.data } : {}
|
|
39
39
|
};
|
|
40
40
|
Object.assign(process.env, buildServeEnv(opts));
|
|
41
|
-
await import("./launcher-
|
|
41
|
+
await import("./launcher-L5YPTDNE.js");
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// src/commands/agent.ts
|
|
@@ -83,7 +83,7 @@ async function runAgent(args) {
|
|
|
83
83
|
...typeof values.port === "string" ? { port: values.port } : {}
|
|
84
84
|
};
|
|
85
85
|
Object.assign(process.env, buildAgentEnv(opts));
|
|
86
|
-
await import("./launcher-
|
|
86
|
+
await import("./launcher-L5YPTDNE.js");
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
// src/commands/setup.ts
|
|
@@ -1140,7 +1140,7 @@ function isUnknown(_value) {
|
|
|
1140
1140
|
return true;
|
|
1141
1141
|
}
|
|
1142
1142
|
async function resolveServerInteractive(presetNamespace) {
|
|
1143
|
-
const { discoverNodes, resolveHubFromDiscovered, filterHubNodes, DEFAULT_HUB_HTTPS_PORT } = await import("./discover-
|
|
1143
|
+
const { discoverNodes, resolveHubFromDiscovered, filterHubNodes, DEFAULT_HUB_HTTPS_PORT } = await import("./discover-CLO7P5ID.js");
|
|
1144
1144
|
if (presetNamespace) {
|
|
1145
1145
|
const spinner4 = clack.spinner();
|
|
1146
1146
|
spinner4.start(`Discovering hub on LAN (namespace "${presetNamespace}")`);
|