@camstack/addon-remote-storage 1.2.98 → 1.2.100
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/s3.addon.js +1 -1
- package/dist/s3.addon.mjs +1 -1
- package/dist/sftp.addon.js +1 -1
- package/dist/sftp.addon.mjs +1 -1
- package/dist/{shared-DOPOfpNg.js → shared-CFfHkuDQ.js} +292 -58
- package/dist/{shared-DW9PrJ9O.mjs → shared-mQ768xoI.mjs} +292 -58
- package/dist/smb.addon.js +1 -1
- package/dist/smb.addon.mjs +1 -1
- package/dist/webdav.addon.js +1 -1
- package/dist/webdav.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
let node_crypto = require("node:crypto");
|
|
24
24
|
let node_path = require("node:path");
|
|
25
25
|
node_path = __toESM(node_path);
|
|
26
|
-
//#region ../types/dist/event-category-
|
|
26
|
+
//#region ../types/dist/event-category-ZyX6jcse.mjs
|
|
27
27
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
28
28
|
EventCategory["SystemBoot"] = "system.boot";
|
|
29
29
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -584,7 +584,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
584
584
|
* a package zone — a newly-appeared stationary object of a package class
|
|
585
585
|
* that cleared the class / zone / dwell / size gates. Payload:
|
|
586
586
|
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
587
|
-
* entryId, className, zoneIds,
|
|
587
|
+
* entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
|
|
588
588
|
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
589
589
|
* this bus topic drives notifier rules + live UI. See
|
|
590
590
|
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
@@ -5370,7 +5370,7 @@ var ZodIssueCode = {
|
|
|
5370
5370
|
var ZodFirstPartyTypeKind;
|
|
5371
5371
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5372
5372
|
//#endregion
|
|
5373
|
-
//#region ../types/dist/sleep-
|
|
5373
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5374
5374
|
/**
|
|
5375
5375
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5376
5376
|
* window to float samples (D455).
|
|
@@ -7321,13 +7321,30 @@ new Set([
|
|
|
7321
7321
|
"scene",
|
|
7322
7322
|
"motion",
|
|
7323
7323
|
"object",
|
|
7324
|
-
"audio"
|
|
7324
|
+
"audio",
|
|
7325
|
+
"mosaic"
|
|
7325
7326
|
]);
|
|
7326
|
-
|
|
7327
|
+
/**
|
|
7328
|
+
* The owner types that are event tables, in the order the event-media resolver
|
|
7329
|
+
* should consider them. Exported so a consumer asking "is this key an event?"
|
|
7330
|
+
* does not re-spell the list and drift from it.
|
|
7331
|
+
*/
|
|
7332
|
+
var EVENT_OWNER_TYPES = [
|
|
7327
7333
|
"motion",
|
|
7328
7334
|
"object",
|
|
7329
7335
|
"audio"
|
|
7330
|
-
]
|
|
7336
|
+
];
|
|
7337
|
+
/**
|
|
7338
|
+
* The same list as a Zod enum, for the cap inputs that must NAME the table
|
|
7339
|
+
* (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
|
|
7340
|
+
* `(table, id)`).
|
|
7341
|
+
*
|
|
7342
|
+
* Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
|
|
7343
|
+
* table would otherwise be accepted by the codec and refused at the door, with
|
|
7344
|
+
* nothing failing until a caller asked.
|
|
7345
|
+
*/
|
|
7346
|
+
var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
|
|
7347
|
+
new Set(EVENT_OWNER_TYPES);
|
|
7331
7348
|
var EncodeProfileSchema = object({
|
|
7332
7349
|
video: object({
|
|
7333
7350
|
codec: _enum([
|
|
@@ -7366,7 +7383,23 @@ var EncodeProfileSchema = object({
|
|
|
7366
7383
|
"zerolatency",
|
|
7367
7384
|
"film",
|
|
7368
7385
|
"animation"
|
|
7369
|
-
]).optional()
|
|
7386
|
+
]).optional(),
|
|
7387
|
+
/**
|
|
7388
|
+
* ONE slice per access unit.
|
|
7389
|
+
*
|
|
7390
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7391
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7392
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7393
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7394
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7395
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7396
|
+
*
|
|
7397
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7398
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7399
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7400
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7401
|
+
*/
|
|
7402
|
+
singleSlicePerFrame: boolean().optional()
|
|
7370
7403
|
}),
|
|
7371
7404
|
audio: union([literal("passthrough"), object({
|
|
7372
7405
|
codec: _enum([
|
|
@@ -7416,7 +7449,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7416
7449
|
audio: "passthrough"
|
|
7417
7450
|
};
|
|
7418
7451
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7419
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7452
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7420
7453
|
/**
|
|
7421
7454
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7422
7455
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -12424,6 +12457,16 @@ method(object({
|
|
|
12424
12457
|
filter: QueryFilterSchema.optional(),
|
|
12425
12458
|
columns: array(string()).readonly().optional()
|
|
12426
12459
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
12460
|
+
namespace: string().optional(),
|
|
12461
|
+
collection: string(),
|
|
12462
|
+
/** Declared columns identifying the slot; must be covered by a UNIQUE
|
|
12463
|
+
* index on the collection. Never empty. */
|
|
12464
|
+
conflict: array(string()).readonly(),
|
|
12465
|
+
record: BulkRecordSchema
|
|
12466
|
+
}), object({
|
|
12467
|
+
/** The id the row HAS: assigned by SQLite on an insert, or the existing
|
|
12468
|
+
* row's own id on an update. */
|
|
12469
|
+
id: union([string(), number()]) }), { kind: "mutation" }), method(object({
|
|
12427
12470
|
namespace: string().optional(),
|
|
12428
12471
|
collection: string(),
|
|
12429
12472
|
record: object({
|
|
@@ -12558,6 +12601,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
12558
12601
|
id: union([string(), number()]) }), {
|
|
12559
12602
|
kind: "mutation",
|
|
12560
12603
|
auth: "admin"
|
|
12604
|
+
}), method(object({
|
|
12605
|
+
namespace: string().optional(),
|
|
12606
|
+
collection: string(),
|
|
12607
|
+
conflict: array(string()).readonly(),
|
|
12608
|
+
record: BulkRecordSchema
|
|
12609
|
+
}), object({ id: union([string(), number()]) }), {
|
|
12610
|
+
kind: "mutation",
|
|
12611
|
+
auth: "admin"
|
|
12561
12612
|
}), method(object({
|
|
12562
12613
|
namespace: string().optional(),
|
|
12563
12614
|
collection: string(),
|
|
@@ -18774,8 +18825,8 @@ var TrackPositionSchema = object({
|
|
|
18774
18825
|
var TrackSnapshotSchema = object({
|
|
18775
18826
|
timestamp: number(),
|
|
18776
18827
|
position: TrackPositionSchema,
|
|
18777
|
-
/**
|
|
18778
|
-
|
|
18828
|
+
/** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
|
|
18829
|
+
mediaId: number().int()
|
|
18779
18830
|
});
|
|
18780
18831
|
/**
|
|
18781
18832
|
* Normalized 0..1 trajectory envelope (min/max over every position bbox,
|
|
@@ -19379,14 +19430,14 @@ var ObjectEventSchema = object({
|
|
|
19379
19430
|
* pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
|
|
19380
19431
|
frameWidth: number().optional(),
|
|
19381
19432
|
frameHeight: number().optional(),
|
|
19382
|
-
/**
|
|
19383
|
-
|
|
19384
|
-
/** Design B:
|
|
19433
|
+
/** Media row id of the crop attached to this event (if any) — D482. */
|
|
19434
|
+
mediaId: number().int().optional(),
|
|
19435
|
+
/** Design B: media row id of the track's native-resolution key frame (the
|
|
19385
19436
|
* best-detection full frame). Resolve via the event-media data-plane
|
|
19386
|
-
* (`/addon/<addonId>/event-media/<
|
|
19437
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
|
|
19387
19438
|
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
19388
|
-
* sources — consumers fall back to `
|
|
19389
|
-
|
|
19439
|
+
* sources — consumers fall back to `mediaId` (the tight crop). */
|
|
19440
|
+
keyFrameMediaId: number().int().optional(),
|
|
19390
19441
|
/** Populated by B5 (recording playback URL for this event). */
|
|
19391
19442
|
mediaUrl: string().optional(),
|
|
19392
19443
|
/** The parent track's key-event importance [0,1], propagated to every object
|
|
@@ -19436,7 +19487,7 @@ var MediaFileKindEnum = _enum([
|
|
|
19436
19487
|
* hub-main's heap on the way past — for an `<img>` that would have cached it.
|
|
19437
19488
|
*
|
|
19438
19489
|
* `url` points at the `event-media` data plane
|
|
19439
|
-
* (`/addon/<addonId>/event-media/<
|
|
19490
|
+
* (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
|
|
19440
19491
|
* with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
|
|
19441
19492
|
* render a `?variant=thumb`, and streams. The hub gate in front of it requires
|
|
19442
19493
|
* a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
|
|
@@ -19444,10 +19495,13 @@ var MediaFileKindEnum = _enum([
|
|
|
19444
19495
|
* `data-plane-access.ts` for the rule and the one gap it does not close
|
|
19445
19496
|
* (per-device scoping).
|
|
19446
19497
|
*
|
|
19447
|
-
* The URL is built from the row's
|
|
19448
|
-
*
|
|
19498
|
+
* The URL is built from the row's own id, which since D482 says nothing about
|
|
19499
|
+
* the row's owner or kind — and that is the point. The published `kind` is not
|
|
19500
|
+
* the stored one (a track's face/plate crop is stored as `crop` under
|
|
19449
19501
|
* `('face'|'plate', '<prefix>-<trackId>')` and published as
|
|
19450
|
-
* `faceCrop`/`plateCrop
|
|
19502
|
+
* `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
|
|
19503
|
+
* taken from `row.key` verbatim or it 404'd exactly those two rows. An id
|
|
19504
|
+
* cannot be mis-reconstructed, because there is nothing in it to reconstruct.
|
|
19451
19505
|
*
|
|
19452
19506
|
* ## `base64` is TRANSITIONAL and is going away
|
|
19453
19507
|
*
|
|
@@ -19460,7 +19514,19 @@ var MediaFileKindEnum = _enum([
|
|
|
19460
19514
|
* `analytics-query-facade.ts`; nothing else reads it.
|
|
19461
19515
|
*/
|
|
19462
19516
|
var MediaFileSchema = object({
|
|
19463
|
-
|
|
19517
|
+
/**
|
|
19518
|
+
* The media row's OWN id — the rowid SQLite assigned it (D482).
|
|
19519
|
+
*
|
|
19520
|
+
* It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
|
|
19521
|
+
* [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
|
|
19522
|
+
* per-table rowid aliases, so `object:101314` and `motion:101314` are two
|
|
19523
|
+
* different rows that spell the same number, and a track whose
|
|
19524
|
+
* `bestEventId` was an object event was served a motion event's snapshot —
|
|
19525
|
+
* a night-time thumbnail on an afternoon track, with no error anywhere. A
|
|
19526
|
+
* surrogate id cannot name the wrong row's owner, because it names no owner
|
|
19527
|
+
* at all.
|
|
19528
|
+
*/
|
|
19529
|
+
mediaId: number().int(),
|
|
19464
19530
|
kind: MediaFileKindEnum,
|
|
19465
19531
|
sizeBytes: number(),
|
|
19466
19532
|
timestamp: number()
|
|
@@ -19568,7 +19634,7 @@ var RetrainTrackSchema = object({
|
|
|
19568
19634
|
});
|
|
19569
19635
|
/** A frame the picker may offer — an index row, no blob was read to produce it. */
|
|
19570
19636
|
var RetrainFrameCandidateSchema = object({
|
|
19571
|
-
|
|
19637
|
+
mediaId: number().int(),
|
|
19572
19638
|
kind: MediaFileKindEnum,
|
|
19573
19639
|
timestamp: number(),
|
|
19574
19640
|
sizeBytes: number().int(),
|
|
@@ -19582,7 +19648,7 @@ var RetrainFrameSchema = object({
|
|
|
19582
19648
|
deviceId: number(),
|
|
19583
19649
|
trackId: string(),
|
|
19584
19650
|
/** Provenance only. It may already point at nothing — that is expected. */
|
|
19585
|
-
|
|
19651
|
+
sourceMediaId: number().int(),
|
|
19586
19652
|
sourceKind: MediaFileKindEnum,
|
|
19587
19653
|
sizeBytes: number().int(),
|
|
19588
19654
|
width: number().int(),
|
|
@@ -19598,7 +19664,7 @@ var RetrainCopyRefusalSchema = _enum([
|
|
|
19598
19664
|
var RetrainFrameSelectionSchema = object({
|
|
19599
19665
|
copied: array(RetrainFrameSchema).readonly(),
|
|
19600
19666
|
refused: array(object({
|
|
19601
|
-
|
|
19667
|
+
sourceMediaId: number().int(),
|
|
19602
19668
|
reason: RetrainCopyRefusalSchema
|
|
19603
19669
|
})).readonly()
|
|
19604
19670
|
});
|
|
@@ -19606,7 +19672,7 @@ var RetrainFrameListSchema = object({
|
|
|
19606
19672
|
candidates: array(RetrainFrameCandidateSchema).readonly(),
|
|
19607
19673
|
copies: array(RetrainFrameSchema).readonly(),
|
|
19608
19674
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
19609
|
-
|
|
19675
|
+
autoPickMediaId: number().int().optional()
|
|
19610
19676
|
});
|
|
19611
19677
|
/** What the operator asked the assist to look for. */
|
|
19612
19678
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
@@ -19701,9 +19767,11 @@ var RecentTracksQueryInput = object({
|
|
|
19701
19767
|
});
|
|
19702
19768
|
/**
|
|
19703
19769
|
* A Summary (D359): the per-camera session envelope that references tracks.
|
|
19704
|
-
* `
|
|
19705
|
-
* served by the event-media plane
|
|
19706
|
-
* member visible has been materialised
|
|
19770
|
+
* `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
|
|
19771
|
+
* 'summary'`, served by the event-media plane at `/m/<id>`), null until the
|
|
19772
|
+
* first frame with a member visible has been materialised (D482 — it was the
|
|
19773
|
+
* row's composite key, which embedded the owner and could name another table's
|
|
19774
|
+
* row once event ids became per-table rowids).
|
|
19707
19775
|
*/
|
|
19708
19776
|
var SummarySchema = object({
|
|
19709
19777
|
id: string(),
|
|
@@ -19712,19 +19780,115 @@ var SummarySchema = object({
|
|
|
19712
19780
|
lastActiveAt: number(),
|
|
19713
19781
|
sealedAt: number().nullable(),
|
|
19714
19782
|
memberCount: number().int().nonnegative(),
|
|
19715
|
-
|
|
19783
|
+
groupShotMediaId: number().int().nullable()
|
|
19716
19784
|
});
|
|
19717
19785
|
var SummariesQueryInput = object({
|
|
19718
19786
|
deviceIds: array(number()).min(1),
|
|
19719
19787
|
since: number().optional(),
|
|
19720
19788
|
until: number().optional(),
|
|
19721
|
-
limit: number().int().min(1).max(200).default(50)
|
|
19789
|
+
limit: number().int().min(1).max(200).default(50),
|
|
19790
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
19791
|
+
* meaning of "dog" on every summary surface. */
|
|
19792
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19722
19793
|
});
|
|
19723
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19724
19794
|
var SummaryDetailSchema = object({
|
|
19725
19795
|
summary: SummarySchema,
|
|
19726
|
-
/**
|
|
19727
|
-
|
|
19796
|
+
/** Members in absorption order, oldest join first. */
|
|
19797
|
+
members: array(object({
|
|
19798
|
+
trackId: string(),
|
|
19799
|
+
/**
|
|
19800
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
19801
|
+
* and the track no longer exists to fill it.
|
|
19802
|
+
*
|
|
19803
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
19804
|
+
* class afterwards, and a group's composition is the history of who came
|
|
19805
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
19806
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
19807
|
+
* drift from the members it claims to describe.
|
|
19808
|
+
*/
|
|
19809
|
+
className: string().nullable(),
|
|
19810
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
19811
|
+
role: _enum([
|
|
19812
|
+
"primary",
|
|
19813
|
+
"sibling",
|
|
19814
|
+
"child"
|
|
19815
|
+
]).nullable(),
|
|
19816
|
+
joinedAt: number(),
|
|
19817
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
19818
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
19819
|
+
label: string().optional(),
|
|
19820
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
19821
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
19822
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
19823
|
+
subLabel: string().optional()
|
|
19824
|
+
})).readonly()
|
|
19825
|
+
});
|
|
19826
|
+
/**
|
|
19827
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
19828
|
+
*
|
|
19829
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
19830
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
19831
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
19832
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
19833
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
19834
|
+
* draw two hundred badges.
|
|
19835
|
+
*/
|
|
19836
|
+
var SummaryListItemSchema = object({
|
|
19837
|
+
summary: SummarySchema,
|
|
19838
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
19839
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
19840
|
+
classes: array(object({
|
|
19841
|
+
className: string().nullable(),
|
|
19842
|
+
count: number().int().positive()
|
|
19843
|
+
})).readonly()
|
|
19844
|
+
});
|
|
19845
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
19846
|
+
/**
|
|
19847
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
19848
|
+
*
|
|
19849
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
19850
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
19851
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
19852
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
19853
|
+
* "newest" means, on one screen.
|
|
19854
|
+
*/
|
|
19855
|
+
var RecentSummariesQueryInput = object({
|
|
19856
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
19857
|
+
deviceIds: array(number()),
|
|
19858
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
19859
|
+
since: number().optional(),
|
|
19860
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
19861
|
+
until: number().optional(),
|
|
19862
|
+
limit: number().int().min(1).max(500).default(100),
|
|
19863
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
19864
|
+
cursor: string().optional(),
|
|
19865
|
+
/**
|
|
19866
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
19867
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
19868
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
19869
|
+
* make the operator's one filter component produce two shapes.
|
|
19870
|
+
*
|
|
19871
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
19872
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
19873
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
19874
|
+
* about its primary.
|
|
19875
|
+
*
|
|
19876
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
19877
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
19878
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
19879
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
19880
|
+
* that read only the class would answer "animal" and never "dog".
|
|
19881
|
+
*
|
|
19882
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
19883
|
+
*/
|
|
19884
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19885
|
+
});
|
|
19886
|
+
var RecentSummariesPageSchema = object({
|
|
19887
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
19888
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
19889
|
+
* whichever feed drew it. */
|
|
19890
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
19891
|
+
nextCursor: string().nullable()
|
|
19728
19892
|
});
|
|
19729
19893
|
var RecentTracksPageSchema = object({
|
|
19730
19894
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20138,7 +20302,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20138
20302
|
classes: array(string()).optional(),
|
|
20139
20303
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20140
20304
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20141
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20305
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20142
20306
|
kind: "mutation",
|
|
20143
20307
|
auth: "admin"
|
|
20144
20308
|
}), 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({
|
|
@@ -20266,7 +20430,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20266
20430
|
}), method(object({
|
|
20267
20431
|
deviceId: number(),
|
|
20268
20432
|
trackId: string(),
|
|
20269
|
-
|
|
20433
|
+
mediaIds: array(number().int()).min(1)
|
|
20270
20434
|
}), RetrainFrameSelectionSchema, {
|
|
20271
20435
|
kind: "mutation",
|
|
20272
20436
|
auth: "admin"
|
|
@@ -20334,7 +20498,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20334
20498
|
kind: "query",
|
|
20335
20499
|
auth: "admin"
|
|
20336
20500
|
}), method(object({
|
|
20337
|
-
|
|
20501
|
+
/** Which of the three event tables owns the row. */
|
|
20502
|
+
ownerType: EventOwnerTypeSchema,
|
|
20503
|
+
/** The event's rowid in that table (D474: an event id is a number). */
|
|
20504
|
+
eventId: number().int(),
|
|
20338
20505
|
kind: MediaFileKindEnum.optional(),
|
|
20339
20506
|
deviceId: number()
|
|
20340
20507
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
@@ -20345,7 +20512,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20345
20512
|
trackId: string(),
|
|
20346
20513
|
deviceId: number()
|
|
20347
20514
|
}), array(MediaFileInfoSchema).readonly()), method(object({
|
|
20348
|
-
|
|
20515
|
+
ownerType: EventOwnerTypeSchema,
|
|
20516
|
+
eventId: number().int(),
|
|
20349
20517
|
deviceId: number()
|
|
20350
20518
|
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
20351
20519
|
kind: "mutation",
|
|
@@ -24868,8 +25036,8 @@ var IdentitySchema = object({
|
|
|
24868
25036
|
id: string(),
|
|
24869
25037
|
name: string(),
|
|
24870
25038
|
sampleCount: number().int().nonnegative(),
|
|
24871
|
-
|
|
24872
|
-
/** Inline base64 of the cover sample's crop, resolved from `
|
|
25039
|
+
coverMediaId: number().int().optional(),
|
|
25040
|
+
/** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
|
|
24873
25041
|
* Lets the UI render the person's face avatar instead of a placeholder icon. */
|
|
24874
25042
|
coverBase64: string().optional()
|
|
24875
25043
|
});
|
|
@@ -24895,8 +25063,8 @@ var IdentitySampleAuditRowSchema = object({
|
|
|
24895
25063
|
enrolledAt: number().int(),
|
|
24896
25064
|
deviceId: number().int().optional(),
|
|
24897
25065
|
source: _enum(["detected", "photo"]),
|
|
24898
|
-
/** The enrolled crop's media
|
|
24899
|
-
|
|
25066
|
+
/** The enrolled crop's media row id, so the panel can show the evidence. */
|
|
25067
|
+
mediaId: number().int().optional(),
|
|
24900
25068
|
/**
|
|
24901
25069
|
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
24902
25070
|
* across feature spaces is a well-formed float with no meaning. Every number
|
|
@@ -24965,15 +25133,15 @@ var FaceInfoSchema = object({
|
|
|
24965
25133
|
*/
|
|
24966
25134
|
cropUrl: string().optional(),
|
|
24967
25135
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
24968
|
-
* view draw the box over the native `
|
|
25136
|
+
* view draw the box over the native `keyFrameMediaId` frame. Absent on
|
|
24969
25137
|
* legacy rows written before design B. */
|
|
24970
25138
|
faceBbox: BoundingBoxSchema.optional(),
|
|
24971
25139
|
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
24972
25140
|
* Fetch the native JPEG via the event-media data-plane
|
|
24973
|
-
* (`/addon/<addonId>/event-media/<
|
|
25141
|
+
* (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
|
|
24974
25142
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
24975
25143
|
* back to the inline `base64` face crop. */
|
|
24976
|
-
|
|
25144
|
+
keyFrameMediaId: number().int().optional(),
|
|
24977
25145
|
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
24978
25146
|
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
24979
25147
|
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
@@ -25042,11 +25210,14 @@ var FaceClusterSchema = object({
|
|
|
25042
25210
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
25043
25211
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
25044
25212
|
*
|
|
25045
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
25046
|
-
* media
|
|
25213
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
25214
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
25215
|
+
* access decision.
|
|
25047
25216
|
*/
|
|
25048
25217
|
var MediaFileLiteSchema$1 = object({
|
|
25049
|
-
|
|
25218
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
25219
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
25220
|
+
mediaId: number().int(),
|
|
25050
25221
|
kind: string(),
|
|
25051
25222
|
url: string(),
|
|
25052
25223
|
sizeBytes: number(),
|
|
@@ -25063,7 +25234,7 @@ method(object({
|
|
|
25063
25234
|
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
25064
25235
|
* four times and the viewer holds at `staleTime: 30_000`.
|
|
25065
25236
|
*
|
|
25066
|
-
* Nothing loses its avatar: `
|
|
25237
|
+
* Nothing loses its avatar: `coverMediaId` is already on every row and
|
|
25067
25238
|
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
25068
25239
|
*
|
|
25069
25240
|
* **This is an INPUT field, so it does not reach the addon until the
|
|
@@ -27531,8 +27702,8 @@ var VehicleSchema = object({
|
|
|
27531
27702
|
id: string(),
|
|
27532
27703
|
name: string(),
|
|
27533
27704
|
sampleCount: number().int().nonnegative(),
|
|
27534
|
-
|
|
27535
|
-
/** Inline base64 of the cover sample's plate crop, resolved from `
|
|
27705
|
+
coverMediaId: number().int().optional(),
|
|
27706
|
+
/** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
|
|
27536
27707
|
coverBase64: string().optional()
|
|
27537
27708
|
});
|
|
27538
27709
|
var VehicleSampleInfoSchema = object({
|
|
@@ -27565,7 +27736,7 @@ var PlateInfoSchema = object({
|
|
|
27565
27736
|
/** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
|
|
27566
27737
|
plateBbox: BoundingBoxSchema.optional(),
|
|
27567
27738
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
27568
|
-
|
|
27739
|
+
keyFrameMediaId: number().int().optional(),
|
|
27569
27740
|
base64: string().optional(),
|
|
27570
27741
|
/**
|
|
27571
27742
|
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
@@ -27586,11 +27757,14 @@ var PlateInfoSchema = object({
|
|
|
27586
27757
|
* `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
|
|
27587
27758
|
* dialog already rendering its key FRAME from the `event-media` plane.
|
|
27588
27759
|
*
|
|
27589
|
-
* `url` is `/addon/<addonId>/event-media/<
|
|
27590
|
-
* media
|
|
27760
|
+
* `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
|
|
27761
|
+
* resolves a media row by its own id, so this needed no new plane and no new
|
|
27762
|
+
* access decision.
|
|
27591
27763
|
*/
|
|
27592
27764
|
var MediaFileLiteSchema = object({
|
|
27593
|
-
|
|
27765
|
+
/** The media row's own id — the same address `MediaFileRef.mediaId` carries
|
|
27766
|
+
* (D482). It was the row's composite key, which embedded the owner. */
|
|
27767
|
+
mediaId: number().int(),
|
|
27594
27768
|
kind: string(),
|
|
27595
27769
|
url: string(),
|
|
27596
27770
|
sizeBytes: number(),
|
|
@@ -27649,7 +27823,7 @@ method(object({
|
|
|
27649
27823
|
}), method(object({
|
|
27650
27824
|
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
27651
27825
|
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
27652
|
-
* option; `
|
|
27826
|
+
* option; `coverMediaId` + the `event-media` plane carry the picture.
|
|
27653
27827
|
* INPUT field: stripped by the hub router until the train ships, which
|
|
27654
27828
|
* resolves to `false` and is exactly the intended default. */
|
|
27655
27829
|
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
@@ -28973,7 +29147,14 @@ var SceneReferenceSchema = object({
|
|
|
28973
29147
|
modelId: string(),
|
|
28974
29148
|
condition: SceneConditionSchema,
|
|
28975
29149
|
capturedAt: number(),
|
|
28976
|
-
|
|
29150
|
+
/**
|
|
29151
|
+
* The reference thumbnail's media ROW id (D482).
|
|
29152
|
+
*
|
|
29153
|
+
* The name already said `mediaId` while the value was the row's composite
|
|
29154
|
+
* key — a leftover that read as done and was not. It is the row's own id
|
|
29155
|
+
* now, addressed at `/addon/<addonId>/event-media/m/<id>`.
|
|
29156
|
+
*/
|
|
29157
|
+
thumbnailMediaId: number().int().optional(),
|
|
28977
29158
|
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
28978
29159
|
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
28979
29160
|
* normalized rect frame a different piece of world, and the scene would
|
|
@@ -29787,7 +29968,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29787
29968
|
* disarmed the channels it did not mention would make the Levels page and
|
|
29788
29969
|
* the Diagnostics page fight over the same value.
|
|
29789
29970
|
*/
|
|
29790
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
29971
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
29972
|
+
/**
|
|
29973
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
29974
|
+
* retention actually deleted.
|
|
29975
|
+
*
|
|
29976
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
29977
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
29978
|
+
* this system is configured through this one document, and a retention audit
|
|
29979
|
+
* configured somewhere else is a second place to look when the question is
|
|
29980
|
+
* "what happened to my data".
|
|
29981
|
+
*
|
|
29982
|
+
* That placement has a cost worth stating: this document ships in the
|
|
29983
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
29984
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
29985
|
+
*
|
|
29986
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
29987
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
29988
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
29989
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
29990
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
29991
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
29992
|
+
*/
|
|
29993
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
29791
29994
|
});
|
|
29792
29995
|
/**
|
|
29793
29996
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -29860,6 +30063,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
29860
30063
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
29861
30064
|
/** The channels ARMED right now, each with its deadline. */
|
|
29862
30065
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30066
|
+
/**
|
|
30067
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30068
|
+
*
|
|
30069
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30070
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30071
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30072
|
+
*/
|
|
30073
|
+
opsLogRetentionDays: number().int().min(0),
|
|
29863
30074
|
persisted: boolean()
|
|
29864
30075
|
});
|
|
29865
30076
|
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(), {
|
|
@@ -30421,7 +30632,7 @@ var StationaryObjectSchema = object({
|
|
|
30421
30632
|
/** Enrichment label carried from the source track (identity / plate). */
|
|
30422
30633
|
label: string().optional(),
|
|
30423
30634
|
/** Native-resolution key-frame media key for the parked object's best image. */
|
|
30424
|
-
|
|
30635
|
+
keyFrameMediaId: number().int().optional()
|
|
30425
30636
|
});
|
|
30426
30637
|
var CameraOccupancySnapshotSchema = object({
|
|
30427
30638
|
/** Frame timestamp of the inference result that produced this snapshot. */
|
|
@@ -31577,6 +31788,12 @@ Object.freeze({
|
|
|
31577
31788
|
addonId: null,
|
|
31578
31789
|
access: "create"
|
|
31579
31790
|
},
|
|
31791
|
+
"dataStoreProvider.upsert": {
|
|
31792
|
+
capName: "data-store-provider",
|
|
31793
|
+
capScope: "system",
|
|
31794
|
+
addonId: null,
|
|
31795
|
+
access: "create"
|
|
31796
|
+
},
|
|
31580
31797
|
"dayNight.getOptions": {
|
|
31581
31798
|
capName: "day-night",
|
|
31582
31799
|
capScope: "device",
|
|
@@ -34013,6 +34230,12 @@ Object.freeze({
|
|
|
34013
34230
|
addonId: null,
|
|
34014
34231
|
access: "view"
|
|
34015
34232
|
},
|
|
34233
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34234
|
+
capName: "pipeline-analytics",
|
|
34235
|
+
capScope: "device",
|
|
34236
|
+
addonId: null,
|
|
34237
|
+
access: "view"
|
|
34238
|
+
},
|
|
34016
34239
|
"pipelineAnalytics.listRecentTracks": {
|
|
34017
34240
|
capName: "pipeline-analytics",
|
|
34018
34241
|
capScope: "device",
|
|
@@ -35441,6 +35664,12 @@ Object.freeze({
|
|
|
35441
35664
|
addonId: null,
|
|
35442
35665
|
access: "create"
|
|
35443
35666
|
},
|
|
35667
|
+
"settingsStore.upsert": {
|
|
35668
|
+
capName: "settings-store",
|
|
35669
|
+
capScope: "system",
|
|
35670
|
+
addonId: null,
|
|
35671
|
+
access: "create"
|
|
35672
|
+
},
|
|
35444
35673
|
"smtpProvider.getStatus": {
|
|
35445
35674
|
capName: "smtp-provider",
|
|
35446
35675
|
capScope: "system",
|
|
@@ -37834,6 +38063,11 @@ Object.freeze({
|
|
|
37834
38063
|
form: "single",
|
|
37835
38064
|
optional: true
|
|
37836
38065
|
}],
|
|
38066
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38067
|
+
name: "deviceIds",
|
|
38068
|
+
form: "array",
|
|
38069
|
+
optional: false
|
|
38070
|
+
}],
|
|
37837
38071
|
"pipelineAnalytics.listRecentTracks": [{
|
|
37838
38072
|
name: "deviceIds",
|
|
37839
38073
|
form: "array",
|