@camstack/addon-agent-ui 1.2.105 → 1.2.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +335 -17
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
//#region ../types/dist/event-category-
|
|
3
|
+
//#region ../types/dist/event-category-BVDXG4tB.mjs
|
|
4
4
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
5
5
|
EventCategory["SystemBoot"] = "system.boot";
|
|
6
6
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -617,6 +617,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
617
617
|
* pull-reconcile from the provider's `getStatus` on reconnect. */
|
|
618
618
|
EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
|
|
619
619
|
EventCategory["BackupCompleted"] = "backup.completed";
|
|
620
|
+
/**
|
|
621
|
+
* A whole backup RUN finished — every destination attempted, win or lose.
|
|
622
|
+
*
|
|
623
|
+
* `backup.completed` fires once per DESTINATION, which is the right grain for
|
|
624
|
+
* a progress UI and the wrong one for a notification: an operator with three
|
|
625
|
+
* destinations would be told three times. And a run where two of three
|
|
626
|
+
* destinations succeeded is not a clean success — a single "backup
|
|
627
|
+
* completed" that hid the failed one would be a lie, so the count of each is
|
|
628
|
+
* carried here and the message says both.
|
|
629
|
+
*
|
|
630
|
+
* Emitted by the backup orchestrator only after the destination loop, so a
|
|
631
|
+
* run that dies during the BUILD phase produces no completion at all.
|
|
632
|
+
*/
|
|
633
|
+
EventCategory["BackupRunCompleted"] = "backup.run-completed";
|
|
620
634
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
621
635
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
622
636
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
@@ -5347,7 +5361,7 @@ var ZodIssueCode = {
|
|
|
5347
5361
|
var ZodFirstPartyTypeKind;
|
|
5348
5362
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5349
5363
|
//#endregion
|
|
5350
|
-
//#region ../types/dist/sleep-
|
|
5364
|
+
//#region ../types/dist/sleep-DEuj7E3j.mjs
|
|
5351
5365
|
/**
|
|
5352
5366
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5353
5367
|
* window to float samples (D455).
|
|
@@ -7378,7 +7392,23 @@ var EncodeProfileSchema = object({
|
|
|
7378
7392
|
"zerolatency",
|
|
7379
7393
|
"film",
|
|
7380
7394
|
"animation"
|
|
7381
|
-
]).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()
|
|
7382
7412
|
}),
|
|
7383
7413
|
audio: union([literal("passthrough"), object({
|
|
7384
7414
|
codec: _enum([
|
|
@@ -7428,7 +7458,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7428
7458
|
audio: "passthrough"
|
|
7429
7459
|
};
|
|
7430
7460
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7431
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7461
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7432
7462
|
/**
|
|
7433
7463
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7434
7464
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -11477,6 +11507,58 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
11477
11507
|
auth: "admin"
|
|
11478
11508
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
11479
11509
|
DeviceType.Camera;
|
|
11510
|
+
/**
|
|
11511
|
+
* The signals a device can emit to WAKE its own stream.
|
|
11512
|
+
*
|
|
11513
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
11514
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
11515
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
11516
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
11517
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
11518
|
+
* itself, with no stream running.
|
|
11519
|
+
*
|
|
11520
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
11521
|
+
*
|
|
11522
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
11523
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
11524
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
11525
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
11526
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
11527
|
+
*
|
|
11528
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
11529
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
11530
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
11531
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
11532
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
11533
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
11534
|
+
* camera. Two questions, two authorities.
|
|
11535
|
+
*
|
|
11536
|
+
* ## Availability is not permission
|
|
11537
|
+
*
|
|
11538
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
11539
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
11540
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
11541
|
+
* provider declaring a signal is not a provider enabling it.
|
|
11542
|
+
*/
|
|
11543
|
+
/** One signal a device can emit. */
|
|
11544
|
+
var StreamSignalSchema = object({
|
|
11545
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
11546
|
+
code: string().min(1),
|
|
11547
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
11548
|
+
label: string().min(1),
|
|
11549
|
+
/**
|
|
11550
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
11551
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
11552
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
11553
|
+
* both of its own.
|
|
11554
|
+
*/
|
|
11555
|
+
recommended: boolean()
|
|
11556
|
+
});
|
|
11557
|
+
object({
|
|
11558
|
+
signals: array(StreamSignalSchema),
|
|
11559
|
+
lastFetchedAt: number()
|
|
11560
|
+
});
|
|
11561
|
+
Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
|
|
11480
11562
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
11481
11563
|
var StreamFormatSchema = _enum([
|
|
11482
11564
|
"webrtc",
|
|
@@ -11873,6 +11955,22 @@ var EgressTranscodeSchema = object({
|
|
|
11873
11955
|
camStreamId: string().nullable()
|
|
11874
11956
|
});
|
|
11875
11957
|
method(object({
|
|
11958
|
+
deviceId: number().int().nonnegative(),
|
|
11959
|
+
/** The provider's signal code. */
|
|
11960
|
+
code: string().min(1),
|
|
11961
|
+
/** Ms epoch. Absent ⇒ now. */
|
|
11962
|
+
at: number().optional()
|
|
11963
|
+
}), object({
|
|
11964
|
+
/** Whether the broker acted on it, and if not, why. */
|
|
11965
|
+
accepted: boolean(),
|
|
11966
|
+
reason: _enum([
|
|
11967
|
+
"woke",
|
|
11968
|
+
"hold-extended",
|
|
11969
|
+
"not-enabled",
|
|
11970
|
+
"no-consumer",
|
|
11971
|
+
"unknown-code"
|
|
11972
|
+
])
|
|
11973
|
+
}), { kind: "mutation" }), method(object({
|
|
11876
11974
|
deviceId: number().int().nonnegative(),
|
|
11877
11975
|
camStreamId: string().min(1),
|
|
11878
11976
|
kind: CamStreamKindSchema,
|
|
@@ -12127,6 +12225,16 @@ var PickStreamRequirementsSchema = object({
|
|
|
12127
12225
|
acceptCodecs: array(StreamCodecSchema).readonly().optional(),
|
|
12128
12226
|
/** Minimum vertical resolution. Streams shorter than this are dropped. */
|
|
12129
12227
|
minHeight: number().int().positive().optional(),
|
|
12228
|
+
/**
|
|
12229
|
+
* Maximum vertical resolution. Streams TALLER than this are dropped.
|
|
12230
|
+
*
|
|
12231
|
+
* A consumer can have a ceiling as real as its floor: Alexa documents
|
|
12232
|
+
* 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
|
|
12233
|
+
* Without this the ceiling had to be re-implemented by every caller — and
|
|
12234
|
+
* one caller implementing it privately is how a second scoring authority
|
|
12235
|
+
* gets born.
|
|
12236
|
+
*/
|
|
12237
|
+
maxHeight: number().int().positive().optional(),
|
|
12130
12238
|
/** Minimum horizontal resolution. */
|
|
12131
12239
|
minWidth: number().int().positive().optional(),
|
|
12132
12240
|
/**
|
|
@@ -12143,7 +12251,22 @@ var PickStreamRequirementsSchema = object({
|
|
|
12143
12251
|
* transcoded" guard: if the device is already serving the consumer's
|
|
12144
12252
|
* codec end-to-end, there's nothing to optimise.
|
|
12145
12253
|
*/
|
|
12146
|
-
requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
|
|
12254
|
+
requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
|
|
12255
|
+
/**
|
|
12256
|
+
* Whether a stream the consumer CANNOT decode may still be picked, on the
|
|
12257
|
+
* understanding that it will be transcoded.
|
|
12258
|
+
*
|
|
12259
|
+
* Default `false` — today's behaviour, and the right one for a bypass
|
|
12260
|
+
* question ("is there a stream I can forward untouched?"). Set `true` to
|
|
12261
|
+
* ask the larger question: "what is the best stream for me, transcoding if
|
|
12262
|
+
* I must?" A stream that satisfies `acceptCodecs` always outranks one that
|
|
12263
|
+
* does not, so a passthrough is never lost to a transcode; the answer says
|
|
12264
|
+
* which it is in {@link PickedCamStreamSchema.transcodes}.
|
|
12265
|
+
*
|
|
12266
|
+
* This is what lets one picker serve both the bypass and the full source
|
|
12267
|
+
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12268
|
+
*/
|
|
12269
|
+
allowTranscode: boolean().optional()
|
|
12147
12270
|
}).readonly();
|
|
12148
12271
|
var PickStreamPreferencesSchema = object({
|
|
12149
12272
|
/**
|
|
@@ -12157,12 +12280,32 @@ var PickStreamPreferencesSchema = object({
|
|
|
12157
12280
|
* picks the tallest stream; `'lowest'` picks the shortest (used by
|
|
12158
12281
|
* memory-constrained consumers / Apple Home guest sessions).
|
|
12159
12282
|
*/
|
|
12160
|
-
resolutionPreference: _enum(["highest", "lowest"]).optional()
|
|
12283
|
+
resolutionPreference: _enum(["highest", "lowest"]).optional(),
|
|
12284
|
+
/**
|
|
12285
|
+
* The height the consumer actually wants to DELIVER.
|
|
12286
|
+
*
|
|
12287
|
+
* Not a constraint — an ordering. With it set, the SMALLEST stream at or
|
|
12288
|
+
* above the target wins, and only if nothing reaches it does the tallest
|
|
12289
|
+
* take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
|
|
12290
|
+
* a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
|
|
12291
|
+
* express that: it says "as big as possible", which is a different wish.
|
|
12292
|
+
*
|
|
12293
|
+
* Ignored when absent, so every existing caller keeps its ordering.
|
|
12294
|
+
*/
|
|
12295
|
+
targetHeight: number().int().positive().optional()
|
|
12161
12296
|
}).readonly();
|
|
12162
12297
|
var PickedCamStreamSchema = object({
|
|
12163
12298
|
camStreamId: string(),
|
|
12164
12299
|
codec: string().optional(),
|
|
12165
12300
|
resolution: CamStreamResolutionSchema.optional(),
|
|
12301
|
+
/**
|
|
12302
|
+
* Whether serving this stream requires a decode + re-encode.
|
|
12303
|
+
*
|
|
12304
|
+
* `false` is a stream the consumer can take as it stands. Only ever `true`
|
|
12305
|
+
* when the caller asked for it with `allowTranscode`, so a caller that did
|
|
12306
|
+
* not ask cannot be handed a cost it never agreed to pay.
|
|
12307
|
+
*/
|
|
12308
|
+
transcodes: boolean(),
|
|
12166
12309
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12167
12310
|
reason: string()
|
|
12168
12311
|
});
|
|
@@ -16351,6 +16494,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16351
16494
|
"device-enabled",
|
|
16352
16495
|
"device-battery-low",
|
|
16353
16496
|
"device-battery-normal",
|
|
16497
|
+
"device-consumable-low",
|
|
16498
|
+
"device-consumable-normal",
|
|
16354
16499
|
"stream-online",
|
|
16355
16500
|
"stream-offline",
|
|
16356
16501
|
"node-online",
|
|
@@ -16369,6 +16514,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16369
16514
|
"addon-updated",
|
|
16370
16515
|
"server-updated",
|
|
16371
16516
|
"export-completed",
|
|
16517
|
+
"backup-completed",
|
|
16372
16518
|
"camera-online",
|
|
16373
16519
|
"camera-offline",
|
|
16374
16520
|
"camera-disabled",
|
|
@@ -19765,13 +19911,109 @@ var SummariesQueryInput = object({
|
|
|
19765
19911
|
deviceIds: array(number()).min(1),
|
|
19766
19912
|
since: number().optional(),
|
|
19767
19913
|
until: number().optional(),
|
|
19768
|
-
limit: number().int().min(1).max(200).default(50)
|
|
19914
|
+
limit: number().int().min(1).max(200).default(50),
|
|
19915
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
19916
|
+
* meaning of "dog" on every summary surface. */
|
|
19917
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19769
19918
|
});
|
|
19770
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19771
19919
|
var SummaryDetailSchema = object({
|
|
19772
19920
|
summary: SummarySchema,
|
|
19773
|
-
/**
|
|
19774
|
-
|
|
19921
|
+
/** Members in absorption order, oldest join first. */
|
|
19922
|
+
members: array(object({
|
|
19923
|
+
trackId: string(),
|
|
19924
|
+
/**
|
|
19925
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
19926
|
+
* and the track no longer exists to fill it.
|
|
19927
|
+
*
|
|
19928
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
19929
|
+
* class afterwards, and a group's composition is the history of who came
|
|
19930
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
19931
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
19932
|
+
* drift from the members it claims to describe.
|
|
19933
|
+
*/
|
|
19934
|
+
className: string().nullable(),
|
|
19935
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
19936
|
+
role: _enum([
|
|
19937
|
+
"primary",
|
|
19938
|
+
"sibling",
|
|
19939
|
+
"child"
|
|
19940
|
+
]).nullable(),
|
|
19941
|
+
joinedAt: number(),
|
|
19942
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
19943
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
19944
|
+
label: string().optional(),
|
|
19945
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
19946
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
19947
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
19948
|
+
subLabel: string().optional()
|
|
19949
|
+
})).readonly()
|
|
19950
|
+
});
|
|
19951
|
+
/**
|
|
19952
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
19953
|
+
*
|
|
19954
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
19955
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
19956
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
19957
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
19958
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
19959
|
+
* draw two hundred badges.
|
|
19960
|
+
*/
|
|
19961
|
+
var SummaryListItemSchema = object({
|
|
19962
|
+
summary: SummarySchema,
|
|
19963
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
19964
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
19965
|
+
classes: array(object({
|
|
19966
|
+
className: string().nullable(),
|
|
19967
|
+
count: number().int().positive()
|
|
19968
|
+
})).readonly()
|
|
19969
|
+
});
|
|
19970
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
19971
|
+
/**
|
|
19972
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
19973
|
+
*
|
|
19974
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
19975
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
19976
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
19977
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
19978
|
+
* "newest" means, on one screen.
|
|
19979
|
+
*/
|
|
19980
|
+
var RecentSummariesQueryInput = object({
|
|
19981
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
19982
|
+
deviceIds: array(number()),
|
|
19983
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
19984
|
+
since: number().optional(),
|
|
19985
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
19986
|
+
until: number().optional(),
|
|
19987
|
+
limit: number().int().min(1).max(500).default(100),
|
|
19988
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
19989
|
+
cursor: string().optional(),
|
|
19990
|
+
/**
|
|
19991
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
19992
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
19993
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
19994
|
+
* make the operator's one filter component produce two shapes.
|
|
19995
|
+
*
|
|
19996
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
19997
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
19998
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
19999
|
+
* about its primary.
|
|
20000
|
+
*
|
|
20001
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20002
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20003
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20004
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20005
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20006
|
+
*
|
|
20007
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20008
|
+
*/
|
|
20009
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20010
|
+
});
|
|
20011
|
+
var RecentSummariesPageSchema = object({
|
|
20012
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20013
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20014
|
+
* whichever feed drew it. */
|
|
20015
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20016
|
+
nextCursor: string().nullable()
|
|
19775
20017
|
});
|
|
19776
20018
|
var RecentTracksPageSchema = object({
|
|
19777
20019
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20185,7 +20427,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20185
20427
|
classes: array(string()).optional(),
|
|
20186
20428
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20187
20429
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20188
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20430
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20189
20431
|
kind: "mutation",
|
|
20190
20432
|
auth: "admin"
|
|
20191
20433
|
}), 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({
|
|
@@ -23514,10 +23756,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
23514
23756
|
}), boolean()), method(object({
|
|
23515
23757
|
deviceId: number().int().nonnegative(),
|
|
23516
23758
|
sessionId: string()
|
|
23517
|
-
}), object({
|
|
23518
|
-
|
|
23519
|
-
|
|
23520
|
-
|
|
23759
|
+
}), object({
|
|
23760
|
+
pendingRenegotiation: object({
|
|
23761
|
+
target: WebrtcStreamTargetSchema,
|
|
23762
|
+
epoch: number()
|
|
23763
|
+
}).nullable(),
|
|
23764
|
+
/**
|
|
23765
|
+
* Whether the session still EXISTS.
|
|
23766
|
+
*
|
|
23767
|
+
* A consumer that holds a resource for the life of a session needs to
|
|
23768
|
+
* be able to ask, because a session does not always end the way it
|
|
23769
|
+
* began. Measured on this hub 2026-09-13: an Echo that got stuck never
|
|
23770
|
+
* sent `SessionDisconnected`, so the Alexa exporter's
|
|
23771
|
+
* `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
|
|
23772
|
+
* H.264 transcode kept running for NOBODY for more than twenty
|
|
23773
|
+
* minutes. The WebRTC session had logged `WebRTC session closed`
|
|
23774
|
+
* minutes earlier — the broker knew; the holder had no way to ask.
|
|
23775
|
+
*
|
|
23776
|
+
* `false` for a session id the provider has never heard of, which is
|
|
23777
|
+
* the same answer as "it ended": either way nothing is holding it up.
|
|
23778
|
+
*/
|
|
23779
|
+
alive: boolean()
|
|
23780
|
+
}));
|
|
23521
23781
|
object({
|
|
23522
23782
|
/** All accessory children of the parent. */
|
|
23523
23783
|
childDeviceIds: array(number()).readonly(),
|
|
@@ -29791,7 +30051,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29791
30051
|
* disarmed the channels it did not mention would make the Levels page and
|
|
29792
30052
|
* the Diagnostics page fight over the same value.
|
|
29793
30053
|
*/
|
|
29794
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30054
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30055
|
+
/**
|
|
30056
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30057
|
+
* retention actually deleted.
|
|
30058
|
+
*
|
|
30059
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30060
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30061
|
+
* this system is configured through this one document, and a retention audit
|
|
30062
|
+
* configured somewhere else is a second place to look when the question is
|
|
30063
|
+
* "what happened to my data".
|
|
30064
|
+
*
|
|
30065
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30066
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30067
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30068
|
+
*
|
|
30069
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30070
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30071
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30072
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30073
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30074
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30075
|
+
*/
|
|
30076
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
29795
30077
|
});
|
|
29796
30078
|
/**
|
|
29797
30079
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -29864,6 +30146,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
29864
30146
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
29865
30147
|
/** The channels ARMED right now, each with its deadline. */
|
|
29866
30148
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30149
|
+
/**
|
|
30150
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30151
|
+
*
|
|
30152
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30153
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30154
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30155
|
+
*/
|
|
30156
|
+
opsLogRetentionDays: number().int().min(0),
|
|
29867
30157
|
persisted: boolean()
|
|
29868
30158
|
});
|
|
29869
30159
|
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(), {
|
|
@@ -34023,6 +34313,12 @@ Object.freeze({
|
|
|
34023
34313
|
addonId: null,
|
|
34024
34314
|
access: "view"
|
|
34025
34315
|
},
|
|
34316
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34317
|
+
capName: "pipeline-analytics",
|
|
34318
|
+
capScope: "device",
|
|
34319
|
+
addonId: null,
|
|
34320
|
+
access: "view"
|
|
34321
|
+
},
|
|
34026
34322
|
"pipelineAnalytics.listRecentTracks": {
|
|
34027
34323
|
capName: "pipeline-analytics",
|
|
34028
34324
|
capScope: "device",
|
|
@@ -35985,6 +36281,12 @@ Object.freeze({
|
|
|
35985
36281
|
addonId: null,
|
|
35986
36282
|
access: "create"
|
|
35987
36283
|
},
|
|
36284
|
+
"streamBroker.reportStreamSignal": {
|
|
36285
|
+
capName: "stream-broker",
|
|
36286
|
+
capScope: "system",
|
|
36287
|
+
addonId: null,
|
|
36288
|
+
access: "create"
|
|
36289
|
+
},
|
|
35988
36290
|
"streamBroker.restartProfile": {
|
|
35989
36291
|
capName: "stream-broker",
|
|
35990
36292
|
capScope: "system",
|
|
@@ -36069,6 +36371,12 @@ Object.freeze({
|
|
|
36069
36371
|
addonId: null,
|
|
36070
36372
|
access: "create"
|
|
36071
36373
|
},
|
|
36374
|
+
"streamSignals.listSignals": {
|
|
36375
|
+
capName: "stream-signals",
|
|
36376
|
+
capScope: "device",
|
|
36377
|
+
addonId: null,
|
|
36378
|
+
access: "view"
|
|
36379
|
+
},
|
|
36072
36380
|
"switch.setState": {
|
|
36073
36381
|
capName: "switch",
|
|
36074
36382
|
capScope: "device",
|
|
@@ -37850,6 +38158,11 @@ Object.freeze({
|
|
|
37850
38158
|
form: "single",
|
|
37851
38159
|
optional: true
|
|
37852
38160
|
}],
|
|
38161
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38162
|
+
name: "deviceIds",
|
|
38163
|
+
form: "array",
|
|
38164
|
+
optional: false
|
|
38165
|
+
}],
|
|
37853
38166
|
"pipelineAnalytics.listRecentTracks": [{
|
|
37854
38167
|
name: "deviceIds",
|
|
37855
38168
|
form: "array",
|
|
@@ -38436,6 +38749,11 @@ Object.freeze({
|
|
|
38436
38749
|
form: "single",
|
|
38437
38750
|
optional: false
|
|
38438
38751
|
}],
|
|
38752
|
+
"streamBroker.reportStreamSignal": [{
|
|
38753
|
+
name: "deviceId",
|
|
38754
|
+
form: "single",
|
|
38755
|
+
optional: false
|
|
38756
|
+
}],
|
|
38439
38757
|
"streamBroker.restartProfile": [{
|
|
38440
38758
|
name: "deviceId",
|
|
38441
38759
|
form: "single",
|
|
@@ -39215,7 +39533,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
39215
39533
|
capability: adminUiCapability,
|
|
39216
39534
|
provider: {
|
|
39217
39535
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
39218
|
-
getVersion: async () => ({ version: "1.2.
|
|
39536
|
+
getVersion: async () => ({ version: "1.2.107" })
|
|
39219
39537
|
}
|
|
39220
39538
|
}];
|
|
39221
39539
|
}
|