@camstack/addon-notifiers 1.2.104 → 1.2.106
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 +334 -16
- package/dist/addon.mjs +334 -16
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -29,7 +29,7 @@ let node_fs = require("node:fs");
|
|
|
29
29
|
let node_path = require("node:path");
|
|
30
30
|
node_path = __toESM(node_path);
|
|
31
31
|
let node_url = require("node:url");
|
|
32
|
-
//#region ../types/dist/event-category-
|
|
32
|
+
//#region ../types/dist/event-category-BVDXG4tB.mjs
|
|
33
33
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
34
34
|
EventCategory["SystemBoot"] = "system.boot";
|
|
35
35
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -646,6 +646,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
646
646
|
* pull-reconcile from the provider's `getStatus` on reconnect. */
|
|
647
647
|
EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
|
|
648
648
|
EventCategory["BackupCompleted"] = "backup.completed";
|
|
649
|
+
/**
|
|
650
|
+
* A whole backup RUN finished — every destination attempted, win or lose.
|
|
651
|
+
*
|
|
652
|
+
* `backup.completed` fires once per DESTINATION, which is the right grain for
|
|
653
|
+
* a progress UI and the wrong one for a notification: an operator with three
|
|
654
|
+
* destinations would be told three times. And a run where two of three
|
|
655
|
+
* destinations succeeded is not a clean success — a single "backup
|
|
656
|
+
* completed" that hid the failed one would be a lie, so the count of each is
|
|
657
|
+
* carried here and the message says both.
|
|
658
|
+
*
|
|
659
|
+
* Emitted by the backup orchestrator only after the destination loop, so a
|
|
660
|
+
* run that dies during the BUILD phase produces no completion at all.
|
|
661
|
+
*/
|
|
662
|
+
EventCategory["BackupRunCompleted"] = "backup.run-completed";
|
|
649
663
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
650
664
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
651
665
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
@@ -5376,7 +5390,7 @@ var ZodIssueCode = {
|
|
|
5376
5390
|
var ZodFirstPartyTypeKind;
|
|
5377
5391
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5378
5392
|
//#endregion
|
|
5379
|
-
//#region ../types/dist/sleep-
|
|
5393
|
+
//#region ../types/dist/sleep-DEuj7E3j.mjs
|
|
5380
5394
|
/**
|
|
5381
5395
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5382
5396
|
* window to float samples (D455).
|
|
@@ -7506,7 +7520,23 @@ var EncodeProfileSchema = object({
|
|
|
7506
7520
|
"zerolatency",
|
|
7507
7521
|
"film",
|
|
7508
7522
|
"animation"
|
|
7509
|
-
]).optional()
|
|
7523
|
+
]).optional(),
|
|
7524
|
+
/**
|
|
7525
|
+
* ONE slice per access unit.
|
|
7526
|
+
*
|
|
7527
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7528
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7529
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7530
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7531
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7532
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7533
|
+
*
|
|
7534
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7535
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7536
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7537
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7538
|
+
*/
|
|
7539
|
+
singleSlicePerFrame: boolean().optional()
|
|
7510
7540
|
}),
|
|
7511
7541
|
audio: union([literal("passthrough"), object({
|
|
7512
7542
|
codec: _enum([
|
|
@@ -7556,7 +7586,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7556
7586
|
audio: "passthrough"
|
|
7557
7587
|
};
|
|
7558
7588
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7559
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7589
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7560
7590
|
/**
|
|
7561
7591
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7562
7592
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -11624,6 +11654,58 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
11624
11654
|
auth: "admin"
|
|
11625
11655
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
11626
11656
|
DeviceType.Camera;
|
|
11657
|
+
/**
|
|
11658
|
+
* The signals a device can emit to WAKE its own stream.
|
|
11659
|
+
*
|
|
11660
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
11661
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
11662
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
11663
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
11664
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
11665
|
+
* itself, with no stream running.
|
|
11666
|
+
*
|
|
11667
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
11668
|
+
*
|
|
11669
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
11670
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
11671
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
11672
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
11673
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
11674
|
+
*
|
|
11675
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
11676
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
11677
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
11678
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
11679
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
11680
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
11681
|
+
* camera. Two questions, two authorities.
|
|
11682
|
+
*
|
|
11683
|
+
* ## Availability is not permission
|
|
11684
|
+
*
|
|
11685
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
11686
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
11687
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
11688
|
+
* provider declaring a signal is not a provider enabling it.
|
|
11689
|
+
*/
|
|
11690
|
+
/** One signal a device can emit. */
|
|
11691
|
+
var StreamSignalSchema = object({
|
|
11692
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
11693
|
+
code: string().min(1),
|
|
11694
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
11695
|
+
label: string().min(1),
|
|
11696
|
+
/**
|
|
11697
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
11698
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
11699
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
11700
|
+
* both of its own.
|
|
11701
|
+
*/
|
|
11702
|
+
recommended: boolean()
|
|
11703
|
+
});
|
|
11704
|
+
object({
|
|
11705
|
+
signals: array(StreamSignalSchema),
|
|
11706
|
+
lastFetchedAt: number()
|
|
11707
|
+
});
|
|
11708
|
+
Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
|
|
11627
11709
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
11628
11710
|
var StreamFormatSchema = _enum([
|
|
11629
11711
|
"webrtc",
|
|
@@ -12020,6 +12102,22 @@ var EgressTranscodeSchema = object({
|
|
|
12020
12102
|
camStreamId: string().nullable()
|
|
12021
12103
|
});
|
|
12022
12104
|
method(object({
|
|
12105
|
+
deviceId: number().int().nonnegative(),
|
|
12106
|
+
/** The provider's signal code. */
|
|
12107
|
+
code: string().min(1),
|
|
12108
|
+
/** Ms epoch. Absent ⇒ now. */
|
|
12109
|
+
at: number().optional()
|
|
12110
|
+
}), object({
|
|
12111
|
+
/** Whether the broker acted on it, and if not, why. */
|
|
12112
|
+
accepted: boolean(),
|
|
12113
|
+
reason: _enum([
|
|
12114
|
+
"woke",
|
|
12115
|
+
"hold-extended",
|
|
12116
|
+
"not-enabled",
|
|
12117
|
+
"no-consumer",
|
|
12118
|
+
"unknown-code"
|
|
12119
|
+
])
|
|
12120
|
+
}), { kind: "mutation" }), method(object({
|
|
12023
12121
|
deviceId: number().int().nonnegative(),
|
|
12024
12122
|
camStreamId: string().min(1),
|
|
12025
12123
|
kind: CamStreamKindSchema,
|
|
@@ -12274,6 +12372,16 @@ var PickStreamRequirementsSchema = object({
|
|
|
12274
12372
|
acceptCodecs: array(StreamCodecSchema).readonly().optional(),
|
|
12275
12373
|
/** Minimum vertical resolution. Streams shorter than this are dropped. */
|
|
12276
12374
|
minHeight: number().int().positive().optional(),
|
|
12375
|
+
/**
|
|
12376
|
+
* Maximum vertical resolution. Streams TALLER than this are dropped.
|
|
12377
|
+
*
|
|
12378
|
+
* A consumer can have a ceiling as real as its floor: Alexa documents
|
|
12379
|
+
* 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
|
|
12380
|
+
* Without this the ceiling had to be re-implemented by every caller — and
|
|
12381
|
+
* one caller implementing it privately is how a second scoring authority
|
|
12382
|
+
* gets born.
|
|
12383
|
+
*/
|
|
12384
|
+
maxHeight: number().int().positive().optional(),
|
|
12277
12385
|
/** Minimum horizontal resolution. */
|
|
12278
12386
|
minWidth: number().int().positive().optional(),
|
|
12279
12387
|
/**
|
|
@@ -12290,7 +12398,22 @@ var PickStreamRequirementsSchema = object({
|
|
|
12290
12398
|
* transcoded" guard: if the device is already serving the consumer's
|
|
12291
12399
|
* codec end-to-end, there's nothing to optimise.
|
|
12292
12400
|
*/
|
|
12293
|
-
requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
|
|
12401
|
+
requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
|
|
12402
|
+
/**
|
|
12403
|
+
* Whether a stream the consumer CANNOT decode may still be picked, on the
|
|
12404
|
+
* understanding that it will be transcoded.
|
|
12405
|
+
*
|
|
12406
|
+
* Default `false` — today's behaviour, and the right one for a bypass
|
|
12407
|
+
* question ("is there a stream I can forward untouched?"). Set `true` to
|
|
12408
|
+
* ask the larger question: "what is the best stream for me, transcoding if
|
|
12409
|
+
* I must?" A stream that satisfies `acceptCodecs` always outranks one that
|
|
12410
|
+
* does not, so a passthrough is never lost to a transcode; the answer says
|
|
12411
|
+
* which it is in {@link PickedCamStreamSchema.transcodes}.
|
|
12412
|
+
*
|
|
12413
|
+
* This is what lets one picker serve both the bypass and the full source
|
|
12414
|
+
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12415
|
+
*/
|
|
12416
|
+
allowTranscode: boolean().optional()
|
|
12294
12417
|
}).readonly();
|
|
12295
12418
|
var PickStreamPreferencesSchema = object({
|
|
12296
12419
|
/**
|
|
@@ -12304,12 +12427,32 @@ var PickStreamPreferencesSchema = object({
|
|
|
12304
12427
|
* picks the tallest stream; `'lowest'` picks the shortest (used by
|
|
12305
12428
|
* memory-constrained consumers / Apple Home guest sessions).
|
|
12306
12429
|
*/
|
|
12307
|
-
resolutionPreference: _enum(["highest", "lowest"]).optional()
|
|
12430
|
+
resolutionPreference: _enum(["highest", "lowest"]).optional(),
|
|
12431
|
+
/**
|
|
12432
|
+
* The height the consumer actually wants to DELIVER.
|
|
12433
|
+
*
|
|
12434
|
+
* Not a constraint — an ordering. With it set, the SMALLEST stream at or
|
|
12435
|
+
* above the target wins, and only if nothing reaches it does the tallest
|
|
12436
|
+
* take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
|
|
12437
|
+
* a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
|
|
12438
|
+
* express that: it says "as big as possible", which is a different wish.
|
|
12439
|
+
*
|
|
12440
|
+
* Ignored when absent, so every existing caller keeps its ordering.
|
|
12441
|
+
*/
|
|
12442
|
+
targetHeight: number().int().positive().optional()
|
|
12308
12443
|
}).readonly();
|
|
12309
12444
|
var PickedCamStreamSchema = object({
|
|
12310
12445
|
camStreamId: string(),
|
|
12311
12446
|
codec: string().optional(),
|
|
12312
12447
|
resolution: CamStreamResolutionSchema.optional(),
|
|
12448
|
+
/**
|
|
12449
|
+
* Whether serving this stream requires a decode + re-encode.
|
|
12450
|
+
*
|
|
12451
|
+
* `false` is a stream the consumer can take as it stands. Only ever `true`
|
|
12452
|
+
* when the caller asked for it with `allowTranscode`, so a caller that did
|
|
12453
|
+
* not ask cannot be handed a cost it never agreed to pay.
|
|
12454
|
+
*/
|
|
12455
|
+
transcodes: boolean(),
|
|
12313
12456
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12314
12457
|
reason: string()
|
|
12315
12458
|
});
|
|
@@ -16534,6 +16677,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16534
16677
|
"device-enabled",
|
|
16535
16678
|
"device-battery-low",
|
|
16536
16679
|
"device-battery-normal",
|
|
16680
|
+
"device-consumable-low",
|
|
16681
|
+
"device-consumable-normal",
|
|
16537
16682
|
"stream-online",
|
|
16538
16683
|
"stream-offline",
|
|
16539
16684
|
"node-online",
|
|
@@ -16552,6 +16697,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16552
16697
|
"addon-updated",
|
|
16553
16698
|
"server-updated",
|
|
16554
16699
|
"export-completed",
|
|
16700
|
+
"backup-completed",
|
|
16555
16701
|
"camera-online",
|
|
16556
16702
|
"camera-offline",
|
|
16557
16703
|
"camera-disabled",
|
|
@@ -19948,13 +20094,109 @@ var SummariesQueryInput = object({
|
|
|
19948
20094
|
deviceIds: array(number()).min(1),
|
|
19949
20095
|
since: number().optional(),
|
|
19950
20096
|
until: number().optional(),
|
|
19951
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20097
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20098
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20099
|
+
* meaning of "dog" on every summary surface. */
|
|
20100
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19952
20101
|
});
|
|
19953
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19954
20102
|
var SummaryDetailSchema = object({
|
|
19955
20103
|
summary: SummarySchema,
|
|
19956
|
-
/**
|
|
19957
|
-
|
|
20104
|
+
/** Members in absorption order, oldest join first. */
|
|
20105
|
+
members: array(object({
|
|
20106
|
+
trackId: string(),
|
|
20107
|
+
/**
|
|
20108
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20109
|
+
* and the track no longer exists to fill it.
|
|
20110
|
+
*
|
|
20111
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20112
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20113
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20114
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20115
|
+
* drift from the members it claims to describe.
|
|
20116
|
+
*/
|
|
20117
|
+
className: string().nullable(),
|
|
20118
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20119
|
+
role: _enum([
|
|
20120
|
+
"primary",
|
|
20121
|
+
"sibling",
|
|
20122
|
+
"child"
|
|
20123
|
+
]).nullable(),
|
|
20124
|
+
joinedAt: number(),
|
|
20125
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20126
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20127
|
+
label: string().optional(),
|
|
20128
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20129
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20130
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20131
|
+
subLabel: string().optional()
|
|
20132
|
+
})).readonly()
|
|
20133
|
+
});
|
|
20134
|
+
/**
|
|
20135
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20136
|
+
*
|
|
20137
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20138
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20139
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20140
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20141
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20142
|
+
* draw two hundred badges.
|
|
20143
|
+
*/
|
|
20144
|
+
var SummaryListItemSchema = object({
|
|
20145
|
+
summary: SummarySchema,
|
|
20146
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20147
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20148
|
+
classes: array(object({
|
|
20149
|
+
className: string().nullable(),
|
|
20150
|
+
count: number().int().positive()
|
|
20151
|
+
})).readonly()
|
|
20152
|
+
});
|
|
20153
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20154
|
+
/**
|
|
20155
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20156
|
+
*
|
|
20157
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20158
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20159
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20160
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20161
|
+
* "newest" means, on one screen.
|
|
20162
|
+
*/
|
|
20163
|
+
var RecentSummariesQueryInput = object({
|
|
20164
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20165
|
+
deviceIds: array(number()),
|
|
20166
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20167
|
+
since: number().optional(),
|
|
20168
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20169
|
+
until: number().optional(),
|
|
20170
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20171
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20172
|
+
cursor: string().optional(),
|
|
20173
|
+
/**
|
|
20174
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20175
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20176
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20177
|
+
* make the operator's one filter component produce two shapes.
|
|
20178
|
+
*
|
|
20179
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20180
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20181
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20182
|
+
* about its primary.
|
|
20183
|
+
*
|
|
20184
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20185
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20186
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20187
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20188
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20189
|
+
*
|
|
20190
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20191
|
+
*/
|
|
20192
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20193
|
+
});
|
|
20194
|
+
var RecentSummariesPageSchema = object({
|
|
20195
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20196
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20197
|
+
* whichever feed drew it. */
|
|
20198
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20199
|
+
nextCursor: string().nullable()
|
|
19958
20200
|
});
|
|
19959
20201
|
var RecentTracksPageSchema = object({
|
|
19960
20202
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20368,7 +20610,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20368
20610
|
classes: array(string()).optional(),
|
|
20369
20611
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20370
20612
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20371
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20613
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20372
20614
|
kind: "mutation",
|
|
20373
20615
|
auth: "admin"
|
|
20374
20616
|
}), 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({
|
|
@@ -23697,10 +23939,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
23697
23939
|
}), boolean()), method(object({
|
|
23698
23940
|
deviceId: number().int().nonnegative(),
|
|
23699
23941
|
sessionId: string()
|
|
23700
|
-
}), object({
|
|
23701
|
-
|
|
23702
|
-
|
|
23703
|
-
|
|
23942
|
+
}), object({
|
|
23943
|
+
pendingRenegotiation: object({
|
|
23944
|
+
target: WebrtcStreamTargetSchema,
|
|
23945
|
+
epoch: number()
|
|
23946
|
+
}).nullable(),
|
|
23947
|
+
/**
|
|
23948
|
+
* Whether the session still EXISTS.
|
|
23949
|
+
*
|
|
23950
|
+
* A consumer that holds a resource for the life of a session needs to
|
|
23951
|
+
* be able to ask, because a session does not always end the way it
|
|
23952
|
+
* began. Measured on this hub 2026-09-13: an Echo that got stuck never
|
|
23953
|
+
* sent `SessionDisconnected`, so the Alexa exporter's
|
|
23954
|
+
* `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
|
|
23955
|
+
* H.264 transcode kept running for NOBODY for more than twenty
|
|
23956
|
+
* minutes. The WebRTC session had logged `WebRTC session closed`
|
|
23957
|
+
* minutes earlier — the broker knew; the holder had no way to ask.
|
|
23958
|
+
*
|
|
23959
|
+
* `false` for a session id the provider has never heard of, which is
|
|
23960
|
+
* the same answer as "it ended": either way nothing is holding it up.
|
|
23961
|
+
*/
|
|
23962
|
+
alive: boolean()
|
|
23963
|
+
}));
|
|
23704
23964
|
object({
|
|
23705
23965
|
/** All accessory children of the parent. */
|
|
23706
23966
|
childDeviceIds: array(number()).readonly(),
|
|
@@ -29974,7 +30234,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29974
30234
|
* disarmed the channels it did not mention would make the Levels page and
|
|
29975
30235
|
* the Diagnostics page fight over the same value.
|
|
29976
30236
|
*/
|
|
29977
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30237
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30238
|
+
/**
|
|
30239
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30240
|
+
* retention actually deleted.
|
|
30241
|
+
*
|
|
30242
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30243
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30244
|
+
* this system is configured through this one document, and a retention audit
|
|
30245
|
+
* configured somewhere else is a second place to look when the question is
|
|
30246
|
+
* "what happened to my data".
|
|
30247
|
+
*
|
|
30248
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30249
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30250
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30251
|
+
*
|
|
30252
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30253
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30254
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30255
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30256
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30257
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30258
|
+
*/
|
|
30259
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
29978
30260
|
});
|
|
29979
30261
|
/**
|
|
29980
30262
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -30047,6 +30329,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
30047
30329
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
30048
30330
|
/** The channels ARMED right now, each with its deadline. */
|
|
30049
30331
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30332
|
+
/**
|
|
30333
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30334
|
+
*
|
|
30335
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30336
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30337
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30338
|
+
*/
|
|
30339
|
+
opsLogRetentionDays: number().int().min(0),
|
|
30050
30340
|
persisted: boolean()
|
|
30051
30341
|
});
|
|
30052
30342
|
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(), {
|
|
@@ -34206,6 +34496,12 @@ Object.freeze({
|
|
|
34206
34496
|
addonId: null,
|
|
34207
34497
|
access: "view"
|
|
34208
34498
|
},
|
|
34499
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34500
|
+
capName: "pipeline-analytics",
|
|
34501
|
+
capScope: "device",
|
|
34502
|
+
addonId: null,
|
|
34503
|
+
access: "view"
|
|
34504
|
+
},
|
|
34209
34505
|
"pipelineAnalytics.listRecentTracks": {
|
|
34210
34506
|
capName: "pipeline-analytics",
|
|
34211
34507
|
capScope: "device",
|
|
@@ -36168,6 +36464,12 @@ Object.freeze({
|
|
|
36168
36464
|
addonId: null,
|
|
36169
36465
|
access: "create"
|
|
36170
36466
|
},
|
|
36467
|
+
"streamBroker.reportStreamSignal": {
|
|
36468
|
+
capName: "stream-broker",
|
|
36469
|
+
capScope: "system",
|
|
36470
|
+
addonId: null,
|
|
36471
|
+
access: "create"
|
|
36472
|
+
},
|
|
36171
36473
|
"streamBroker.restartProfile": {
|
|
36172
36474
|
capName: "stream-broker",
|
|
36173
36475
|
capScope: "system",
|
|
@@ -36252,6 +36554,12 @@ Object.freeze({
|
|
|
36252
36554
|
addonId: null,
|
|
36253
36555
|
access: "create"
|
|
36254
36556
|
},
|
|
36557
|
+
"streamSignals.listSignals": {
|
|
36558
|
+
capName: "stream-signals",
|
|
36559
|
+
capScope: "device",
|
|
36560
|
+
addonId: null,
|
|
36561
|
+
access: "view"
|
|
36562
|
+
},
|
|
36255
36563
|
"switch.setState": {
|
|
36256
36564
|
capName: "switch",
|
|
36257
36565
|
capScope: "device",
|
|
@@ -38033,6 +38341,11 @@ Object.freeze({
|
|
|
38033
38341
|
form: "single",
|
|
38034
38342
|
optional: true
|
|
38035
38343
|
}],
|
|
38344
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38345
|
+
name: "deviceIds",
|
|
38346
|
+
form: "array",
|
|
38347
|
+
optional: false
|
|
38348
|
+
}],
|
|
38036
38349
|
"pipelineAnalytics.listRecentTracks": [{
|
|
38037
38350
|
name: "deviceIds",
|
|
38038
38351
|
form: "array",
|
|
@@ -38619,6 +38932,11 @@ Object.freeze({
|
|
|
38619
38932
|
form: "single",
|
|
38620
38933
|
optional: false
|
|
38621
38934
|
}],
|
|
38935
|
+
"streamBroker.reportStreamSignal": [{
|
|
38936
|
+
name: "deviceId",
|
|
38937
|
+
form: "single",
|
|
38938
|
+
optional: false
|
|
38939
|
+
}],
|
|
38622
38940
|
"streamBroker.restartProfile": [{
|
|
38623
38941
|
name: "deviceId",
|
|
38624
38942
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
|
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
//#region ../types/dist/event-category-
|
|
5
|
+
//#region ../types/dist/event-category-BVDXG4tB.mjs
|
|
6
6
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
7
7
|
EventCategory["SystemBoot"] = "system.boot";
|
|
8
8
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -619,6 +619,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
619
619
|
* pull-reconcile from the provider's `getStatus` on reconnect. */
|
|
620
620
|
EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
|
|
621
621
|
EventCategory["BackupCompleted"] = "backup.completed";
|
|
622
|
+
/**
|
|
623
|
+
* A whole backup RUN finished — every destination attempted, win or lose.
|
|
624
|
+
*
|
|
625
|
+
* `backup.completed` fires once per DESTINATION, which is the right grain for
|
|
626
|
+
* a progress UI and the wrong one for a notification: an operator with three
|
|
627
|
+
* destinations would be told three times. And a run where two of three
|
|
628
|
+
* destinations succeeded is not a clean success — a single "backup
|
|
629
|
+
* completed" that hid the failed one would be a lie, so the count of each is
|
|
630
|
+
* carried here and the message says both.
|
|
631
|
+
*
|
|
632
|
+
* Emitted by the backup orchestrator only after the destination loop, so a
|
|
633
|
+
* run that dies during the BUILD phase produces no completion at all.
|
|
634
|
+
*/
|
|
635
|
+
EventCategory["BackupRunCompleted"] = "backup.run-completed";
|
|
622
636
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
623
637
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
624
638
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
@@ -5349,7 +5363,7 @@ var ZodIssueCode = {
|
|
|
5349
5363
|
var ZodFirstPartyTypeKind;
|
|
5350
5364
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5351
5365
|
//#endregion
|
|
5352
|
-
//#region ../types/dist/sleep-
|
|
5366
|
+
//#region ../types/dist/sleep-DEuj7E3j.mjs
|
|
5353
5367
|
/**
|
|
5354
5368
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5355
5369
|
* window to float samples (D455).
|
|
@@ -7479,7 +7493,23 @@ var EncodeProfileSchema = object({
|
|
|
7479
7493
|
"zerolatency",
|
|
7480
7494
|
"film",
|
|
7481
7495
|
"animation"
|
|
7482
|
-
]).optional()
|
|
7496
|
+
]).optional(),
|
|
7497
|
+
/**
|
|
7498
|
+
* ONE slice per access unit.
|
|
7499
|
+
*
|
|
7500
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7501
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7502
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7503
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7504
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7505
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7506
|
+
*
|
|
7507
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7508
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7509
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7510
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7511
|
+
*/
|
|
7512
|
+
singleSlicePerFrame: boolean().optional()
|
|
7483
7513
|
}),
|
|
7484
7514
|
audio: union([literal("passthrough"), object({
|
|
7485
7515
|
codec: _enum([
|
|
@@ -7529,7 +7559,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7529
7559
|
audio: "passthrough"
|
|
7530
7560
|
};
|
|
7531
7561
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7532
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7562
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7533
7563
|
/**
|
|
7534
7564
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7535
7565
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -11597,6 +11627,58 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
11597
11627
|
auth: "admin"
|
|
11598
11628
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
11599
11629
|
DeviceType.Camera;
|
|
11630
|
+
/**
|
|
11631
|
+
* The signals a device can emit to WAKE its own stream.
|
|
11632
|
+
*
|
|
11633
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
11634
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
11635
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
11636
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
11637
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
11638
|
+
* itself, with no stream running.
|
|
11639
|
+
*
|
|
11640
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
11641
|
+
*
|
|
11642
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
11643
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
11644
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
11645
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
11646
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
11647
|
+
*
|
|
11648
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
11649
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
11650
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
11651
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
11652
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
11653
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
11654
|
+
* camera. Two questions, two authorities.
|
|
11655
|
+
*
|
|
11656
|
+
* ## Availability is not permission
|
|
11657
|
+
*
|
|
11658
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
11659
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
11660
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
11661
|
+
* provider declaring a signal is not a provider enabling it.
|
|
11662
|
+
*/
|
|
11663
|
+
/** One signal a device can emit. */
|
|
11664
|
+
var StreamSignalSchema = object({
|
|
11665
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
11666
|
+
code: string().min(1),
|
|
11667
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
11668
|
+
label: string().min(1),
|
|
11669
|
+
/**
|
|
11670
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
11671
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
11672
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
11673
|
+
* both of its own.
|
|
11674
|
+
*/
|
|
11675
|
+
recommended: boolean()
|
|
11676
|
+
});
|
|
11677
|
+
object({
|
|
11678
|
+
signals: array(StreamSignalSchema),
|
|
11679
|
+
lastFetchedAt: number()
|
|
11680
|
+
});
|
|
11681
|
+
Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
|
|
11600
11682
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
11601
11683
|
var StreamFormatSchema = _enum([
|
|
11602
11684
|
"webrtc",
|
|
@@ -11993,6 +12075,22 @@ var EgressTranscodeSchema = object({
|
|
|
11993
12075
|
camStreamId: string().nullable()
|
|
11994
12076
|
});
|
|
11995
12077
|
method(object({
|
|
12078
|
+
deviceId: number().int().nonnegative(),
|
|
12079
|
+
/** The provider's signal code. */
|
|
12080
|
+
code: string().min(1),
|
|
12081
|
+
/** Ms epoch. Absent ⇒ now. */
|
|
12082
|
+
at: number().optional()
|
|
12083
|
+
}), object({
|
|
12084
|
+
/** Whether the broker acted on it, and if not, why. */
|
|
12085
|
+
accepted: boolean(),
|
|
12086
|
+
reason: _enum([
|
|
12087
|
+
"woke",
|
|
12088
|
+
"hold-extended",
|
|
12089
|
+
"not-enabled",
|
|
12090
|
+
"no-consumer",
|
|
12091
|
+
"unknown-code"
|
|
12092
|
+
])
|
|
12093
|
+
}), { kind: "mutation" }), method(object({
|
|
11996
12094
|
deviceId: number().int().nonnegative(),
|
|
11997
12095
|
camStreamId: string().min(1),
|
|
11998
12096
|
kind: CamStreamKindSchema,
|
|
@@ -12247,6 +12345,16 @@ var PickStreamRequirementsSchema = object({
|
|
|
12247
12345
|
acceptCodecs: array(StreamCodecSchema).readonly().optional(),
|
|
12248
12346
|
/** Minimum vertical resolution. Streams shorter than this are dropped. */
|
|
12249
12347
|
minHeight: number().int().positive().optional(),
|
|
12348
|
+
/**
|
|
12349
|
+
* Maximum vertical resolution. Streams TALLER than this are dropped.
|
|
12350
|
+
*
|
|
12351
|
+
* A consumer can have a ceiling as real as its floor: Alexa documents
|
|
12352
|
+
* 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
|
|
12353
|
+
* Without this the ceiling had to be re-implemented by every caller — and
|
|
12354
|
+
* one caller implementing it privately is how a second scoring authority
|
|
12355
|
+
* gets born.
|
|
12356
|
+
*/
|
|
12357
|
+
maxHeight: number().int().positive().optional(),
|
|
12250
12358
|
/** Minimum horizontal resolution. */
|
|
12251
12359
|
minWidth: number().int().positive().optional(),
|
|
12252
12360
|
/**
|
|
@@ -12263,7 +12371,22 @@ var PickStreamRequirementsSchema = object({
|
|
|
12263
12371
|
* transcoded" guard: if the device is already serving the consumer's
|
|
12264
12372
|
* codec end-to-end, there's nothing to optimise.
|
|
12265
12373
|
*/
|
|
12266
|
-
requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
|
|
12374
|
+
requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
|
|
12375
|
+
/**
|
|
12376
|
+
* Whether a stream the consumer CANNOT decode may still be picked, on the
|
|
12377
|
+
* understanding that it will be transcoded.
|
|
12378
|
+
*
|
|
12379
|
+
* Default `false` — today's behaviour, and the right one for a bypass
|
|
12380
|
+
* question ("is there a stream I can forward untouched?"). Set `true` to
|
|
12381
|
+
* ask the larger question: "what is the best stream for me, transcoding if
|
|
12382
|
+
* I must?" A stream that satisfies `acceptCodecs` always outranks one that
|
|
12383
|
+
* does not, so a passthrough is never lost to a transcode; the answer says
|
|
12384
|
+
* which it is in {@link PickedCamStreamSchema.transcodes}.
|
|
12385
|
+
*
|
|
12386
|
+
* This is what lets one picker serve both the bypass and the full source
|
|
12387
|
+
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12388
|
+
*/
|
|
12389
|
+
allowTranscode: boolean().optional()
|
|
12267
12390
|
}).readonly();
|
|
12268
12391
|
var PickStreamPreferencesSchema = object({
|
|
12269
12392
|
/**
|
|
@@ -12277,12 +12400,32 @@ var PickStreamPreferencesSchema = object({
|
|
|
12277
12400
|
* picks the tallest stream; `'lowest'` picks the shortest (used by
|
|
12278
12401
|
* memory-constrained consumers / Apple Home guest sessions).
|
|
12279
12402
|
*/
|
|
12280
|
-
resolutionPreference: _enum(["highest", "lowest"]).optional()
|
|
12403
|
+
resolutionPreference: _enum(["highest", "lowest"]).optional(),
|
|
12404
|
+
/**
|
|
12405
|
+
* The height the consumer actually wants to DELIVER.
|
|
12406
|
+
*
|
|
12407
|
+
* Not a constraint — an ordering. With it set, the SMALLEST stream at or
|
|
12408
|
+
* above the target wins, and only if nothing reaches it does the tallest
|
|
12409
|
+
* take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
|
|
12410
|
+
* a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
|
|
12411
|
+
* express that: it says "as big as possible", which is a different wish.
|
|
12412
|
+
*
|
|
12413
|
+
* Ignored when absent, so every existing caller keeps its ordering.
|
|
12414
|
+
*/
|
|
12415
|
+
targetHeight: number().int().positive().optional()
|
|
12281
12416
|
}).readonly();
|
|
12282
12417
|
var PickedCamStreamSchema = object({
|
|
12283
12418
|
camStreamId: string(),
|
|
12284
12419
|
codec: string().optional(),
|
|
12285
12420
|
resolution: CamStreamResolutionSchema.optional(),
|
|
12421
|
+
/**
|
|
12422
|
+
* Whether serving this stream requires a decode + re-encode.
|
|
12423
|
+
*
|
|
12424
|
+
* `false` is a stream the consumer can take as it stands. Only ever `true`
|
|
12425
|
+
* when the caller asked for it with `allowTranscode`, so a caller that did
|
|
12426
|
+
* not ask cannot be handed a cost it never agreed to pay.
|
|
12427
|
+
*/
|
|
12428
|
+
transcodes: boolean(),
|
|
12286
12429
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12287
12430
|
reason: string()
|
|
12288
12431
|
});
|
|
@@ -16507,6 +16650,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16507
16650
|
"device-enabled",
|
|
16508
16651
|
"device-battery-low",
|
|
16509
16652
|
"device-battery-normal",
|
|
16653
|
+
"device-consumable-low",
|
|
16654
|
+
"device-consumable-normal",
|
|
16510
16655
|
"stream-online",
|
|
16511
16656
|
"stream-offline",
|
|
16512
16657
|
"node-online",
|
|
@@ -16525,6 +16670,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16525
16670
|
"addon-updated",
|
|
16526
16671
|
"server-updated",
|
|
16527
16672
|
"export-completed",
|
|
16673
|
+
"backup-completed",
|
|
16528
16674
|
"camera-online",
|
|
16529
16675
|
"camera-offline",
|
|
16530
16676
|
"camera-disabled",
|
|
@@ -19921,13 +20067,109 @@ var SummariesQueryInput = object({
|
|
|
19921
20067
|
deviceIds: array(number()).min(1),
|
|
19922
20068
|
since: number().optional(),
|
|
19923
20069
|
until: number().optional(),
|
|
19924
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20070
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20071
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20072
|
+
* meaning of "dog" on every summary surface. */
|
|
20073
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19925
20074
|
});
|
|
19926
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19927
20075
|
var SummaryDetailSchema = object({
|
|
19928
20076
|
summary: SummarySchema,
|
|
19929
|
-
/**
|
|
19930
|
-
|
|
20077
|
+
/** Members in absorption order, oldest join first. */
|
|
20078
|
+
members: array(object({
|
|
20079
|
+
trackId: string(),
|
|
20080
|
+
/**
|
|
20081
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20082
|
+
* and the track no longer exists to fill it.
|
|
20083
|
+
*
|
|
20084
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20085
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20086
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20087
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20088
|
+
* drift from the members it claims to describe.
|
|
20089
|
+
*/
|
|
20090
|
+
className: string().nullable(),
|
|
20091
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20092
|
+
role: _enum([
|
|
20093
|
+
"primary",
|
|
20094
|
+
"sibling",
|
|
20095
|
+
"child"
|
|
20096
|
+
]).nullable(),
|
|
20097
|
+
joinedAt: number(),
|
|
20098
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20099
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20100
|
+
label: string().optional(),
|
|
20101
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20102
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20103
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20104
|
+
subLabel: string().optional()
|
|
20105
|
+
})).readonly()
|
|
20106
|
+
});
|
|
20107
|
+
/**
|
|
20108
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20109
|
+
*
|
|
20110
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20111
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20112
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20113
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20114
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20115
|
+
* draw two hundred badges.
|
|
20116
|
+
*/
|
|
20117
|
+
var SummaryListItemSchema = object({
|
|
20118
|
+
summary: SummarySchema,
|
|
20119
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20120
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20121
|
+
classes: array(object({
|
|
20122
|
+
className: string().nullable(),
|
|
20123
|
+
count: number().int().positive()
|
|
20124
|
+
})).readonly()
|
|
20125
|
+
});
|
|
20126
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20127
|
+
/**
|
|
20128
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20129
|
+
*
|
|
20130
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20131
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20132
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20133
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20134
|
+
* "newest" means, on one screen.
|
|
20135
|
+
*/
|
|
20136
|
+
var RecentSummariesQueryInput = object({
|
|
20137
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20138
|
+
deviceIds: array(number()),
|
|
20139
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20140
|
+
since: number().optional(),
|
|
20141
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20142
|
+
until: number().optional(),
|
|
20143
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20144
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20145
|
+
cursor: string().optional(),
|
|
20146
|
+
/**
|
|
20147
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20148
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20149
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20150
|
+
* make the operator's one filter component produce two shapes.
|
|
20151
|
+
*
|
|
20152
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20153
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20154
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20155
|
+
* about its primary.
|
|
20156
|
+
*
|
|
20157
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20158
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20159
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20160
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20161
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20162
|
+
*
|
|
20163
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20164
|
+
*/
|
|
20165
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20166
|
+
});
|
|
20167
|
+
var RecentSummariesPageSchema = object({
|
|
20168
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20169
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20170
|
+
* whichever feed drew it. */
|
|
20171
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20172
|
+
nextCursor: string().nullable()
|
|
19931
20173
|
});
|
|
19932
20174
|
var RecentTracksPageSchema = object({
|
|
19933
20175
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20341,7 +20583,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20341
20583
|
classes: array(string()).optional(),
|
|
20342
20584
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20343
20585
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20344
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20586
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20345
20587
|
kind: "mutation",
|
|
20346
20588
|
auth: "admin"
|
|
20347
20589
|
}), 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({
|
|
@@ -23670,10 +23912,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
23670
23912
|
}), boolean()), method(object({
|
|
23671
23913
|
deviceId: number().int().nonnegative(),
|
|
23672
23914
|
sessionId: string()
|
|
23673
|
-
}), object({
|
|
23674
|
-
|
|
23675
|
-
|
|
23676
|
-
|
|
23915
|
+
}), object({
|
|
23916
|
+
pendingRenegotiation: object({
|
|
23917
|
+
target: WebrtcStreamTargetSchema,
|
|
23918
|
+
epoch: number()
|
|
23919
|
+
}).nullable(),
|
|
23920
|
+
/**
|
|
23921
|
+
* Whether the session still EXISTS.
|
|
23922
|
+
*
|
|
23923
|
+
* A consumer that holds a resource for the life of a session needs to
|
|
23924
|
+
* be able to ask, because a session does not always end the way it
|
|
23925
|
+
* began. Measured on this hub 2026-09-13: an Echo that got stuck never
|
|
23926
|
+
* sent `SessionDisconnected`, so the Alexa exporter's
|
|
23927
|
+
* `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
|
|
23928
|
+
* H.264 transcode kept running for NOBODY for more than twenty
|
|
23929
|
+
* minutes. The WebRTC session had logged `WebRTC session closed`
|
|
23930
|
+
* minutes earlier — the broker knew; the holder had no way to ask.
|
|
23931
|
+
*
|
|
23932
|
+
* `false` for a session id the provider has never heard of, which is
|
|
23933
|
+
* the same answer as "it ended": either way nothing is holding it up.
|
|
23934
|
+
*/
|
|
23935
|
+
alive: boolean()
|
|
23936
|
+
}));
|
|
23677
23937
|
object({
|
|
23678
23938
|
/** All accessory children of the parent. */
|
|
23679
23939
|
childDeviceIds: array(number()).readonly(),
|
|
@@ -29947,7 +30207,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29947
30207
|
* disarmed the channels it did not mention would make the Levels page and
|
|
29948
30208
|
* the Diagnostics page fight over the same value.
|
|
29949
30209
|
*/
|
|
29950
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30210
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30211
|
+
/**
|
|
30212
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30213
|
+
* retention actually deleted.
|
|
30214
|
+
*
|
|
30215
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30216
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30217
|
+
* this system is configured through this one document, and a retention audit
|
|
30218
|
+
* configured somewhere else is a second place to look when the question is
|
|
30219
|
+
* "what happened to my data".
|
|
30220
|
+
*
|
|
30221
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30222
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30223
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30224
|
+
*
|
|
30225
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30226
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30227
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30228
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30229
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30230
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30231
|
+
*/
|
|
30232
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
29951
30233
|
});
|
|
29952
30234
|
/**
|
|
29953
30235
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -30020,6 +30302,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
30020
30302
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
30021
30303
|
/** The channels ARMED right now, each with its deadline. */
|
|
30022
30304
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30305
|
+
/**
|
|
30306
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30307
|
+
*
|
|
30308
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30309
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30310
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30311
|
+
*/
|
|
30312
|
+
opsLogRetentionDays: number().int().min(0),
|
|
30023
30313
|
persisted: boolean()
|
|
30024
30314
|
});
|
|
30025
30315
|
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(), {
|
|
@@ -34179,6 +34469,12 @@ Object.freeze({
|
|
|
34179
34469
|
addonId: null,
|
|
34180
34470
|
access: "view"
|
|
34181
34471
|
},
|
|
34472
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34473
|
+
capName: "pipeline-analytics",
|
|
34474
|
+
capScope: "device",
|
|
34475
|
+
addonId: null,
|
|
34476
|
+
access: "view"
|
|
34477
|
+
},
|
|
34182
34478
|
"pipelineAnalytics.listRecentTracks": {
|
|
34183
34479
|
capName: "pipeline-analytics",
|
|
34184
34480
|
capScope: "device",
|
|
@@ -36141,6 +36437,12 @@ Object.freeze({
|
|
|
36141
36437
|
addonId: null,
|
|
36142
36438
|
access: "create"
|
|
36143
36439
|
},
|
|
36440
|
+
"streamBroker.reportStreamSignal": {
|
|
36441
|
+
capName: "stream-broker",
|
|
36442
|
+
capScope: "system",
|
|
36443
|
+
addonId: null,
|
|
36444
|
+
access: "create"
|
|
36445
|
+
},
|
|
36144
36446
|
"streamBroker.restartProfile": {
|
|
36145
36447
|
capName: "stream-broker",
|
|
36146
36448
|
capScope: "system",
|
|
@@ -36225,6 +36527,12 @@ Object.freeze({
|
|
|
36225
36527
|
addonId: null,
|
|
36226
36528
|
access: "create"
|
|
36227
36529
|
},
|
|
36530
|
+
"streamSignals.listSignals": {
|
|
36531
|
+
capName: "stream-signals",
|
|
36532
|
+
capScope: "device",
|
|
36533
|
+
addonId: null,
|
|
36534
|
+
access: "view"
|
|
36535
|
+
},
|
|
36228
36536
|
"switch.setState": {
|
|
36229
36537
|
capName: "switch",
|
|
36230
36538
|
capScope: "device",
|
|
@@ -38006,6 +38314,11 @@ Object.freeze({
|
|
|
38006
38314
|
form: "single",
|
|
38007
38315
|
optional: true
|
|
38008
38316
|
}],
|
|
38317
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38318
|
+
name: "deviceIds",
|
|
38319
|
+
form: "array",
|
|
38320
|
+
optional: false
|
|
38321
|
+
}],
|
|
38009
38322
|
"pipelineAnalytics.listRecentTracks": [{
|
|
38010
38323
|
name: "deviceIds",
|
|
38011
38324
|
form: "array",
|
|
@@ -38592,6 +38905,11 @@ Object.freeze({
|
|
|
38592
38905
|
form: "single",
|
|
38593
38906
|
optional: false
|
|
38594
38907
|
}],
|
|
38908
|
+
"streamBroker.reportStreamSignal": [{
|
|
38909
|
+
name: "deviceId",
|
|
38910
|
+
form: "single",
|
|
38911
|
+
optional: false
|
|
38912
|
+
}],
|
|
38595
38913
|
"streamBroker.restartProfile": [{
|
|
38596
38914
|
name: "deviceId",
|
|
38597
38915
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-notifiers",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.106",
|
|
4
4
|
"description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|