@camstack/addon-provider-dreo 0.2.100 → 0.2.102
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 +349 -16
- package/dist/addon.mjs +349 -16
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -35,7 +35,7 @@ var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["modu
|
|
|
35
35
|
//#endregion
|
|
36
36
|
let crypto$1 = require("crypto");
|
|
37
37
|
let events = require("events");
|
|
38
|
-
//#region ../types/dist/event-category-
|
|
38
|
+
//#region ../types/dist/event-category-BVDXG4tB.mjs
|
|
39
39
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
40
40
|
EventCategory["SystemBoot"] = "system.boot";
|
|
41
41
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -652,6 +652,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
652
652
|
* pull-reconcile from the provider's `getStatus` on reconnect. */
|
|
653
653
|
EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
|
|
654
654
|
EventCategory["BackupCompleted"] = "backup.completed";
|
|
655
|
+
/**
|
|
656
|
+
* A whole backup RUN finished — every destination attempted, win or lose.
|
|
657
|
+
*
|
|
658
|
+
* `backup.completed` fires once per DESTINATION, which is the right grain for
|
|
659
|
+
* a progress UI and the wrong one for a notification: an operator with three
|
|
660
|
+
* destinations would be told three times. And a run where two of three
|
|
661
|
+
* destinations succeeded is not a clean success — a single "backup
|
|
662
|
+
* completed" that hid the failed one would be a lie, so the count of each is
|
|
663
|
+
* carried here and the message says both.
|
|
664
|
+
*
|
|
665
|
+
* Emitted by the backup orchestrator only after the destination loop, so a
|
|
666
|
+
* run that dies during the BUILD phase produces no completion at all.
|
|
667
|
+
*/
|
|
668
|
+
EventCategory["BackupRunCompleted"] = "backup.run-completed";
|
|
655
669
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
656
670
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
657
671
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
@@ -5382,7 +5396,7 @@ var ZodIssueCode = {
|
|
|
5382
5396
|
var ZodFirstPartyTypeKind;
|
|
5383
5397
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5384
5398
|
//#endregion
|
|
5385
|
-
//#region ../types/dist/sleep-
|
|
5399
|
+
//#region ../types/dist/sleep-DEuj7E3j.mjs
|
|
5386
5400
|
/**
|
|
5387
5401
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5388
5402
|
* window to float samples (D455).
|
|
@@ -7411,7 +7425,23 @@ var EncodeProfileSchema = object({
|
|
|
7411
7425
|
"zerolatency",
|
|
7412
7426
|
"film",
|
|
7413
7427
|
"animation"
|
|
7414
|
-
]).optional()
|
|
7428
|
+
]).optional(),
|
|
7429
|
+
/**
|
|
7430
|
+
* ONE slice per access unit.
|
|
7431
|
+
*
|
|
7432
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7433
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7434
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7435
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7436
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7437
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7438
|
+
*
|
|
7439
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7440
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7441
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7442
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7443
|
+
*/
|
|
7444
|
+
singleSlicePerFrame: boolean().optional()
|
|
7415
7445
|
}),
|
|
7416
7446
|
audio: union([literal("passthrough"), object({
|
|
7417
7447
|
codec: _enum([
|
|
@@ -7461,7 +7491,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7461
7491
|
audio: "passthrough"
|
|
7462
7492
|
};
|
|
7463
7493
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7464
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7494
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7465
7495
|
/**
|
|
7466
7496
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7467
7497
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -11510,6 +11540,72 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
11510
11540
|
auth: "admin"
|
|
11511
11541
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
11512
11542
|
DeviceType.Camera;
|
|
11543
|
+
/**
|
|
11544
|
+
* The signals a device can emit to WAKE its own stream.
|
|
11545
|
+
*
|
|
11546
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
11547
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
11548
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
11549
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
11550
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
11551
|
+
* itself, with no stream running.
|
|
11552
|
+
*
|
|
11553
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
11554
|
+
*
|
|
11555
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
11556
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
11557
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
11558
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
11559
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
11560
|
+
*
|
|
11561
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
11562
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
11563
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
11564
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
11565
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
11566
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
11567
|
+
* camera. Two questions, two authorities.
|
|
11568
|
+
*
|
|
11569
|
+
* ## Availability is not permission
|
|
11570
|
+
*
|
|
11571
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
11572
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
11573
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
11574
|
+
* provider declaring a signal is not a provider enabling it.
|
|
11575
|
+
*/
|
|
11576
|
+
/** One signal a device can emit. */
|
|
11577
|
+
var StreamSignalSchema = object({
|
|
11578
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
11579
|
+
code: string().min(1),
|
|
11580
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
11581
|
+
label: string().min(1),
|
|
11582
|
+
/**
|
|
11583
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
11584
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
11585
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
11586
|
+
* both of its own.
|
|
11587
|
+
*/
|
|
11588
|
+
recommended: boolean()
|
|
11589
|
+
});
|
|
11590
|
+
var StreamSignalsStatusSchema = object({
|
|
11591
|
+
signals: array(StreamSignalSchema),
|
|
11592
|
+
lastFetchedAt: number()
|
|
11593
|
+
});
|
|
11594
|
+
var streamSignalsCapability = {
|
|
11595
|
+
name: "stream-signals",
|
|
11596
|
+
scope: "device",
|
|
11597
|
+
deviceNative: true,
|
|
11598
|
+
mode: "singleton",
|
|
11599
|
+
deviceTypes: Object.values(DeviceType),
|
|
11600
|
+
runtimeState: StreamSignalsStatusSchema,
|
|
11601
|
+
methods: {
|
|
11602
|
+
/**
|
|
11603
|
+
* What this device can emit. Empty is a valid and common answer — most
|
|
11604
|
+
* cameras have nothing to offer here, and an empty list is what makes the
|
|
11605
|
+
* broker's picker show nothing rather than a false choice.
|
|
11606
|
+
*/
|
|
11607
|
+
listSignals: method(_void(), array(StreamSignalSchema).readonly()) }
|
|
11608
|
+
};
|
|
11513
11609
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
11514
11610
|
var StreamFormatSchema = _enum([
|
|
11515
11611
|
"webrtc",
|
|
@@ -11906,6 +12002,22 @@ var EgressTranscodeSchema = object({
|
|
|
11906
12002
|
camStreamId: string().nullable()
|
|
11907
12003
|
});
|
|
11908
12004
|
method(object({
|
|
12005
|
+
deviceId: number().int().nonnegative(),
|
|
12006
|
+
/** The provider's signal code. */
|
|
12007
|
+
code: string().min(1),
|
|
12008
|
+
/** Ms epoch. Absent ⇒ now. */
|
|
12009
|
+
at: number().optional()
|
|
12010
|
+
}), object({
|
|
12011
|
+
/** Whether the broker acted on it, and if not, why. */
|
|
12012
|
+
accepted: boolean(),
|
|
12013
|
+
reason: _enum([
|
|
12014
|
+
"woke",
|
|
12015
|
+
"hold-extended",
|
|
12016
|
+
"not-enabled",
|
|
12017
|
+
"no-consumer",
|
|
12018
|
+
"unknown-code"
|
|
12019
|
+
])
|
|
12020
|
+
}), { kind: "mutation" }), method(object({
|
|
11909
12021
|
deviceId: number().int().nonnegative(),
|
|
11910
12022
|
camStreamId: string().min(1),
|
|
11911
12023
|
kind: CamStreamKindSchema,
|
|
@@ -12160,6 +12272,16 @@ var PickStreamRequirementsSchema = object({
|
|
|
12160
12272
|
acceptCodecs: array(StreamCodecSchema).readonly().optional(),
|
|
12161
12273
|
/** Minimum vertical resolution. Streams shorter than this are dropped. */
|
|
12162
12274
|
minHeight: number().int().positive().optional(),
|
|
12275
|
+
/**
|
|
12276
|
+
* Maximum vertical resolution. Streams TALLER than this are dropped.
|
|
12277
|
+
*
|
|
12278
|
+
* A consumer can have a ceiling as real as its floor: Alexa documents
|
|
12279
|
+
* 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
|
|
12280
|
+
* Without this the ceiling had to be re-implemented by every caller — and
|
|
12281
|
+
* one caller implementing it privately is how a second scoring authority
|
|
12282
|
+
* gets born.
|
|
12283
|
+
*/
|
|
12284
|
+
maxHeight: number().int().positive().optional(),
|
|
12163
12285
|
/** Minimum horizontal resolution. */
|
|
12164
12286
|
minWidth: number().int().positive().optional(),
|
|
12165
12287
|
/**
|
|
@@ -12176,7 +12298,22 @@ var PickStreamRequirementsSchema = object({
|
|
|
12176
12298
|
* transcoded" guard: if the device is already serving the consumer's
|
|
12177
12299
|
* codec end-to-end, there's nothing to optimise.
|
|
12178
12300
|
*/
|
|
12179
|
-
requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
|
|
12301
|
+
requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
|
|
12302
|
+
/**
|
|
12303
|
+
* Whether a stream the consumer CANNOT decode may still be picked, on the
|
|
12304
|
+
* understanding that it will be transcoded.
|
|
12305
|
+
*
|
|
12306
|
+
* Default `false` — today's behaviour, and the right one for a bypass
|
|
12307
|
+
* question ("is there a stream I can forward untouched?"). Set `true` to
|
|
12308
|
+
* ask the larger question: "what is the best stream for me, transcoding if
|
|
12309
|
+
* I must?" A stream that satisfies `acceptCodecs` always outranks one that
|
|
12310
|
+
* does not, so a passthrough is never lost to a transcode; the answer says
|
|
12311
|
+
* which it is in {@link PickedCamStreamSchema.transcodes}.
|
|
12312
|
+
*
|
|
12313
|
+
* This is what lets one picker serve both the bypass and the full source
|
|
12314
|
+
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12315
|
+
*/
|
|
12316
|
+
allowTranscode: boolean().optional()
|
|
12180
12317
|
}).readonly();
|
|
12181
12318
|
var PickStreamPreferencesSchema = object({
|
|
12182
12319
|
/**
|
|
@@ -12190,12 +12327,32 @@ var PickStreamPreferencesSchema = object({
|
|
|
12190
12327
|
* picks the tallest stream; `'lowest'` picks the shortest (used by
|
|
12191
12328
|
* memory-constrained consumers / Apple Home guest sessions).
|
|
12192
12329
|
*/
|
|
12193
|
-
resolutionPreference: _enum(["highest", "lowest"]).optional()
|
|
12330
|
+
resolutionPreference: _enum(["highest", "lowest"]).optional(),
|
|
12331
|
+
/**
|
|
12332
|
+
* The height the consumer actually wants to DELIVER.
|
|
12333
|
+
*
|
|
12334
|
+
* Not a constraint — an ordering. With it set, the SMALLEST stream at or
|
|
12335
|
+
* above the target wins, and only if nothing reaches it does the tallest
|
|
12336
|
+
* take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
|
|
12337
|
+
* a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
|
|
12338
|
+
* express that: it says "as big as possible", which is a different wish.
|
|
12339
|
+
*
|
|
12340
|
+
* Ignored when absent, so every existing caller keeps its ordering.
|
|
12341
|
+
*/
|
|
12342
|
+
targetHeight: number().int().positive().optional()
|
|
12194
12343
|
}).readonly();
|
|
12195
12344
|
var PickedCamStreamSchema = object({
|
|
12196
12345
|
camStreamId: string(),
|
|
12197
12346
|
codec: string().optional(),
|
|
12198
12347
|
resolution: CamStreamResolutionSchema.optional(),
|
|
12348
|
+
/**
|
|
12349
|
+
* Whether serving this stream requires a decode + re-encode.
|
|
12350
|
+
*
|
|
12351
|
+
* `false` is a stream the consumer can take as it stands. Only ever `true`
|
|
12352
|
+
* when the caller asked for it with `allowTranscode`, so a caller that did
|
|
12353
|
+
* not ask cannot be handed a cost it never agreed to pay.
|
|
12354
|
+
*/
|
|
12355
|
+
transcodes: boolean(),
|
|
12199
12356
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12200
12357
|
reason: string()
|
|
12201
12358
|
});
|
|
@@ -16729,6 +16886,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16729
16886
|
"device-enabled",
|
|
16730
16887
|
"device-battery-low",
|
|
16731
16888
|
"device-battery-normal",
|
|
16889
|
+
"device-consumable-low",
|
|
16890
|
+
"device-consumable-normal",
|
|
16732
16891
|
"stream-online",
|
|
16733
16892
|
"stream-offline",
|
|
16734
16893
|
"node-online",
|
|
@@ -16747,6 +16906,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16747
16906
|
"addon-updated",
|
|
16748
16907
|
"server-updated",
|
|
16749
16908
|
"export-completed",
|
|
16909
|
+
"backup-completed",
|
|
16750
16910
|
"camera-online",
|
|
16751
16911
|
"camera-offline",
|
|
16752
16912
|
"camera-disabled",
|
|
@@ -20183,13 +20343,109 @@ var SummariesQueryInput = object({
|
|
|
20183
20343
|
deviceIds: array(number()).min(1),
|
|
20184
20344
|
since: number().optional(),
|
|
20185
20345
|
until: number().optional(),
|
|
20186
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20346
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20347
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20348
|
+
* meaning of "dog" on every summary surface. */
|
|
20349
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20187
20350
|
});
|
|
20188
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20189
20351
|
var SummaryDetailSchema = object({
|
|
20190
20352
|
summary: SummarySchema,
|
|
20191
|
-
/**
|
|
20192
|
-
|
|
20353
|
+
/** Members in absorption order, oldest join first. */
|
|
20354
|
+
members: array(object({
|
|
20355
|
+
trackId: string(),
|
|
20356
|
+
/**
|
|
20357
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20358
|
+
* and the track no longer exists to fill it.
|
|
20359
|
+
*
|
|
20360
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20361
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20362
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20363
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20364
|
+
* drift from the members it claims to describe.
|
|
20365
|
+
*/
|
|
20366
|
+
className: string().nullable(),
|
|
20367
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20368
|
+
role: _enum([
|
|
20369
|
+
"primary",
|
|
20370
|
+
"sibling",
|
|
20371
|
+
"child"
|
|
20372
|
+
]).nullable(),
|
|
20373
|
+
joinedAt: number(),
|
|
20374
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20375
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20376
|
+
label: string().optional(),
|
|
20377
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20378
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20379
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20380
|
+
subLabel: string().optional()
|
|
20381
|
+
})).readonly()
|
|
20382
|
+
});
|
|
20383
|
+
/**
|
|
20384
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20385
|
+
*
|
|
20386
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20387
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20388
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20389
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20390
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20391
|
+
* draw two hundred badges.
|
|
20392
|
+
*/
|
|
20393
|
+
var SummaryListItemSchema = object({
|
|
20394
|
+
summary: SummarySchema,
|
|
20395
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20396
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20397
|
+
classes: array(object({
|
|
20398
|
+
className: string().nullable(),
|
|
20399
|
+
count: number().int().positive()
|
|
20400
|
+
})).readonly()
|
|
20401
|
+
});
|
|
20402
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20403
|
+
/**
|
|
20404
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20405
|
+
*
|
|
20406
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20407
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20408
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20409
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20410
|
+
* "newest" means, on one screen.
|
|
20411
|
+
*/
|
|
20412
|
+
var RecentSummariesQueryInput = object({
|
|
20413
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20414
|
+
deviceIds: array(number()),
|
|
20415
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20416
|
+
since: number().optional(),
|
|
20417
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20418
|
+
until: number().optional(),
|
|
20419
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20420
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20421
|
+
cursor: string().optional(),
|
|
20422
|
+
/**
|
|
20423
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20424
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20425
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20426
|
+
* make the operator's one filter component produce two shapes.
|
|
20427
|
+
*
|
|
20428
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20429
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20430
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20431
|
+
* about its primary.
|
|
20432
|
+
*
|
|
20433
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20434
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20435
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20436
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20437
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20438
|
+
*
|
|
20439
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20440
|
+
*/
|
|
20441
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20442
|
+
});
|
|
20443
|
+
var RecentSummariesPageSchema = object({
|
|
20444
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20445
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20446
|
+
* whichever feed drew it. */
|
|
20447
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20448
|
+
nextCursor: string().nullable()
|
|
20193
20449
|
});
|
|
20194
20450
|
var RecentTracksPageSchema = object({
|
|
20195
20451
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20603,7 +20859,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20603
20859
|
classes: array(string()).optional(),
|
|
20604
20860
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20605
20861
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20606
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20862
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20607
20863
|
kind: "mutation",
|
|
20608
20864
|
auth: "admin"
|
|
20609
20865
|
}), 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({
|
|
@@ -23932,10 +24188,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
23932
24188
|
}), boolean()), method(object({
|
|
23933
24189
|
deviceId: number().int().nonnegative(),
|
|
23934
24190
|
sessionId: string()
|
|
23935
|
-
}), object({
|
|
23936
|
-
|
|
23937
|
-
|
|
23938
|
-
|
|
24191
|
+
}), object({
|
|
24192
|
+
pendingRenegotiation: object({
|
|
24193
|
+
target: WebrtcStreamTargetSchema,
|
|
24194
|
+
epoch: number()
|
|
24195
|
+
}).nullable(),
|
|
24196
|
+
/**
|
|
24197
|
+
* Whether the session still EXISTS.
|
|
24198
|
+
*
|
|
24199
|
+
* A consumer that holds a resource for the life of a session needs to
|
|
24200
|
+
* be able to ask, because a session does not always end the way it
|
|
24201
|
+
* began. Measured on this hub 2026-09-13: an Echo that got stuck never
|
|
24202
|
+
* sent `SessionDisconnected`, so the Alexa exporter's
|
|
24203
|
+
* `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
|
|
24204
|
+
* H.264 transcode kept running for NOBODY for more than twenty
|
|
24205
|
+
* minutes. The WebRTC session had logged `WebRTC session closed`
|
|
24206
|
+
* minutes earlier — the broker knew; the holder had no way to ask.
|
|
24207
|
+
*
|
|
24208
|
+
* `false` for a session id the provider has never heard of, which is
|
|
24209
|
+
* the same answer as "it ended": either way nothing is holding it up.
|
|
24210
|
+
*/
|
|
24211
|
+
alive: boolean()
|
|
24212
|
+
}));
|
|
23939
24213
|
object({
|
|
23940
24214
|
/** All accessory children of the parent. */
|
|
23941
24215
|
childDeviceIds: array(number()).readonly(),
|
|
@@ -32364,7 +32638,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
32364
32638
|
* disarmed the channels it did not mention would make the Levels page and
|
|
32365
32639
|
* the Diagnostics page fight over the same value.
|
|
32366
32640
|
*/
|
|
32367
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
32641
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
32642
|
+
/**
|
|
32643
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
32644
|
+
* retention actually deleted.
|
|
32645
|
+
*
|
|
32646
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
32647
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
32648
|
+
* this system is configured through this one document, and a retention audit
|
|
32649
|
+
* configured somewhere else is a second place to look when the question is
|
|
32650
|
+
* "what happened to my data".
|
|
32651
|
+
*
|
|
32652
|
+
* That placement has a cost worth stating: this document ships in the
|
|
32653
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
32654
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
32655
|
+
*
|
|
32656
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
32657
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
32658
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
32659
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
32660
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
32661
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
32662
|
+
*/
|
|
32663
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
32368
32664
|
});
|
|
32369
32665
|
/**
|
|
32370
32666
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -32437,6 +32733,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
32437
32733
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
32438
32734
|
/** The channels ARMED right now, each with its deadline. */
|
|
32439
32735
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
32736
|
+
/**
|
|
32737
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
32738
|
+
*
|
|
32739
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
32740
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
32741
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
32742
|
+
*/
|
|
32743
|
+
opsLogRetentionDays: number().int().min(0),
|
|
32440
32744
|
persisted: boolean()
|
|
32441
32745
|
});
|
|
32442
32746
|
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(), {
|
|
@@ -33832,6 +34136,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
33832
34136
|
smoke: smokeCapability,
|
|
33833
34137
|
streamCatalog: streamCatalogCapability,
|
|
33834
34138
|
streamParams: streamParamsCapability,
|
|
34139
|
+
streamSignals: streamSignalsCapability,
|
|
33835
34140
|
switch: switchCapability,
|
|
33836
34141
|
tamper: tamperCapability,
|
|
33837
34142
|
temperatureSensor: temperatureSensorCapability,
|
|
@@ -38437,6 +38742,12 @@ Object.freeze({
|
|
|
38437
38742
|
addonId: null,
|
|
38438
38743
|
access: "view"
|
|
38439
38744
|
},
|
|
38745
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
38746
|
+
capName: "pipeline-analytics",
|
|
38747
|
+
capScope: "device",
|
|
38748
|
+
addonId: null,
|
|
38749
|
+
access: "view"
|
|
38750
|
+
},
|
|
38440
38751
|
"pipelineAnalytics.listRecentTracks": {
|
|
38441
38752
|
capName: "pipeline-analytics",
|
|
38442
38753
|
capScope: "device",
|
|
@@ -40399,6 +40710,12 @@ Object.freeze({
|
|
|
40399
40710
|
addonId: null,
|
|
40400
40711
|
access: "create"
|
|
40401
40712
|
},
|
|
40713
|
+
"streamBroker.reportStreamSignal": {
|
|
40714
|
+
capName: "stream-broker",
|
|
40715
|
+
capScope: "system",
|
|
40716
|
+
addonId: null,
|
|
40717
|
+
access: "create"
|
|
40718
|
+
},
|
|
40402
40719
|
"streamBroker.restartProfile": {
|
|
40403
40720
|
capName: "stream-broker",
|
|
40404
40721
|
capScope: "system",
|
|
@@ -40483,6 +40800,12 @@ Object.freeze({
|
|
|
40483
40800
|
addonId: null,
|
|
40484
40801
|
access: "create"
|
|
40485
40802
|
},
|
|
40803
|
+
"streamSignals.listSignals": {
|
|
40804
|
+
capName: "stream-signals",
|
|
40805
|
+
capScope: "device",
|
|
40806
|
+
addonId: null,
|
|
40807
|
+
access: "view"
|
|
40808
|
+
},
|
|
40486
40809
|
"switch.setState": {
|
|
40487
40810
|
capName: "switch",
|
|
40488
40811
|
capScope: "device",
|
|
@@ -42264,6 +42587,11 @@ Object.freeze({
|
|
|
42264
42587
|
form: "single",
|
|
42265
42588
|
optional: true
|
|
42266
42589
|
}],
|
|
42590
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
42591
|
+
name: "deviceIds",
|
|
42592
|
+
form: "array",
|
|
42593
|
+
optional: false
|
|
42594
|
+
}],
|
|
42267
42595
|
"pipelineAnalytics.listRecentTracks": [{
|
|
42268
42596
|
name: "deviceIds",
|
|
42269
42597
|
form: "array",
|
|
@@ -42850,6 +43178,11 @@ Object.freeze({
|
|
|
42850
43178
|
form: "single",
|
|
42851
43179
|
optional: false
|
|
42852
43180
|
}],
|
|
43181
|
+
"streamBroker.reportStreamSignal": [{
|
|
43182
|
+
name: "deviceId",
|
|
43183
|
+
form: "single",
|
|
43184
|
+
optional: false
|
|
43185
|
+
}],
|
|
42853
43186
|
"streamBroker.restartProfile": [{
|
|
42854
43187
|
name: "deviceId",
|
|
42855
43188
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
36
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
37
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region ../types/dist/event-category-
|
|
39
|
+
//#region ../types/dist/event-category-BVDXG4tB.mjs
|
|
40
40
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
41
41
|
EventCategory["SystemBoot"] = "system.boot";
|
|
42
42
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -653,6 +653,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
653
653
|
* pull-reconcile from the provider's `getStatus` on reconnect. */
|
|
654
654
|
EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
|
|
655
655
|
EventCategory["BackupCompleted"] = "backup.completed";
|
|
656
|
+
/**
|
|
657
|
+
* A whole backup RUN finished — every destination attempted, win or lose.
|
|
658
|
+
*
|
|
659
|
+
* `backup.completed` fires once per DESTINATION, which is the right grain for
|
|
660
|
+
* a progress UI and the wrong one for a notification: an operator with three
|
|
661
|
+
* destinations would be told three times. And a run where two of three
|
|
662
|
+
* destinations succeeded is not a clean success — a single "backup
|
|
663
|
+
* completed" that hid the failed one would be a lie, so the count of each is
|
|
664
|
+
* carried here and the message says both.
|
|
665
|
+
*
|
|
666
|
+
* Emitted by the backup orchestrator only after the destination loop, so a
|
|
667
|
+
* run that dies during the BUILD phase produces no completion at all.
|
|
668
|
+
*/
|
|
669
|
+
EventCategory["BackupRunCompleted"] = "backup.run-completed";
|
|
656
670
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
657
671
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
658
672
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
@@ -5383,7 +5397,7 @@ var ZodIssueCode = {
|
|
|
5383
5397
|
var ZodFirstPartyTypeKind;
|
|
5384
5398
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5385
5399
|
//#endregion
|
|
5386
|
-
//#region ../types/dist/sleep-
|
|
5400
|
+
//#region ../types/dist/sleep-DEuj7E3j.mjs
|
|
5387
5401
|
/**
|
|
5388
5402
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5389
5403
|
* window to float samples (D455).
|
|
@@ -7412,7 +7426,23 @@ var EncodeProfileSchema = object({
|
|
|
7412
7426
|
"zerolatency",
|
|
7413
7427
|
"film",
|
|
7414
7428
|
"animation"
|
|
7415
|
-
]).optional()
|
|
7429
|
+
]).optional(),
|
|
7430
|
+
/**
|
|
7431
|
+
* ONE slice per access unit.
|
|
7432
|
+
*
|
|
7433
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7434
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7435
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7436
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7437
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7438
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7439
|
+
*
|
|
7440
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7441
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7442
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7443
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7444
|
+
*/
|
|
7445
|
+
singleSlicePerFrame: boolean().optional()
|
|
7416
7446
|
}),
|
|
7417
7447
|
audio: union([literal("passthrough"), object({
|
|
7418
7448
|
codec: _enum([
|
|
@@ -7462,7 +7492,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7462
7492
|
audio: "passthrough"
|
|
7463
7493
|
};
|
|
7464
7494
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7465
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7495
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7466
7496
|
/**
|
|
7467
7497
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7468
7498
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -11511,6 +11541,72 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
11511
11541
|
auth: "admin"
|
|
11512
11542
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
11513
11543
|
DeviceType.Camera;
|
|
11544
|
+
/**
|
|
11545
|
+
* The signals a device can emit to WAKE its own stream.
|
|
11546
|
+
*
|
|
11547
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
11548
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
11549
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
11550
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
11551
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
11552
|
+
* itself, with no stream running.
|
|
11553
|
+
*
|
|
11554
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
11555
|
+
*
|
|
11556
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
11557
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
11558
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
11559
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
11560
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
11561
|
+
*
|
|
11562
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
11563
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
11564
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
11565
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
11566
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
11567
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
11568
|
+
* camera. Two questions, two authorities.
|
|
11569
|
+
*
|
|
11570
|
+
* ## Availability is not permission
|
|
11571
|
+
*
|
|
11572
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
11573
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
11574
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
11575
|
+
* provider declaring a signal is not a provider enabling it.
|
|
11576
|
+
*/
|
|
11577
|
+
/** One signal a device can emit. */
|
|
11578
|
+
var StreamSignalSchema = object({
|
|
11579
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
11580
|
+
code: string().min(1),
|
|
11581
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
11582
|
+
label: string().min(1),
|
|
11583
|
+
/**
|
|
11584
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
11585
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
11586
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
11587
|
+
* both of its own.
|
|
11588
|
+
*/
|
|
11589
|
+
recommended: boolean()
|
|
11590
|
+
});
|
|
11591
|
+
var StreamSignalsStatusSchema = object({
|
|
11592
|
+
signals: array(StreamSignalSchema),
|
|
11593
|
+
lastFetchedAt: number()
|
|
11594
|
+
});
|
|
11595
|
+
var streamSignalsCapability = {
|
|
11596
|
+
name: "stream-signals",
|
|
11597
|
+
scope: "device",
|
|
11598
|
+
deviceNative: true,
|
|
11599
|
+
mode: "singleton",
|
|
11600
|
+
deviceTypes: Object.values(DeviceType),
|
|
11601
|
+
runtimeState: StreamSignalsStatusSchema,
|
|
11602
|
+
methods: {
|
|
11603
|
+
/**
|
|
11604
|
+
* What this device can emit. Empty is a valid and common answer — most
|
|
11605
|
+
* cameras have nothing to offer here, and an empty list is what makes the
|
|
11606
|
+
* broker's picker show nothing rather than a false choice.
|
|
11607
|
+
*/
|
|
11608
|
+
listSignals: method(_void(), array(StreamSignalSchema).readonly()) }
|
|
11609
|
+
};
|
|
11514
11610
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
11515
11611
|
var StreamFormatSchema = _enum([
|
|
11516
11612
|
"webrtc",
|
|
@@ -11907,6 +12003,22 @@ var EgressTranscodeSchema = object({
|
|
|
11907
12003
|
camStreamId: string().nullable()
|
|
11908
12004
|
});
|
|
11909
12005
|
method(object({
|
|
12006
|
+
deviceId: number().int().nonnegative(),
|
|
12007
|
+
/** The provider's signal code. */
|
|
12008
|
+
code: string().min(1),
|
|
12009
|
+
/** Ms epoch. Absent ⇒ now. */
|
|
12010
|
+
at: number().optional()
|
|
12011
|
+
}), object({
|
|
12012
|
+
/** Whether the broker acted on it, and if not, why. */
|
|
12013
|
+
accepted: boolean(),
|
|
12014
|
+
reason: _enum([
|
|
12015
|
+
"woke",
|
|
12016
|
+
"hold-extended",
|
|
12017
|
+
"not-enabled",
|
|
12018
|
+
"no-consumer",
|
|
12019
|
+
"unknown-code"
|
|
12020
|
+
])
|
|
12021
|
+
}), { kind: "mutation" }), method(object({
|
|
11910
12022
|
deviceId: number().int().nonnegative(),
|
|
11911
12023
|
camStreamId: string().min(1),
|
|
11912
12024
|
kind: CamStreamKindSchema,
|
|
@@ -12161,6 +12273,16 @@ var PickStreamRequirementsSchema = object({
|
|
|
12161
12273
|
acceptCodecs: array(StreamCodecSchema).readonly().optional(),
|
|
12162
12274
|
/** Minimum vertical resolution. Streams shorter than this are dropped. */
|
|
12163
12275
|
minHeight: number().int().positive().optional(),
|
|
12276
|
+
/**
|
|
12277
|
+
* Maximum vertical resolution. Streams TALLER than this are dropped.
|
|
12278
|
+
*
|
|
12279
|
+
* A consumer can have a ceiling as real as its floor: Alexa documents
|
|
12280
|
+
* 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
|
|
12281
|
+
* Without this the ceiling had to be re-implemented by every caller — and
|
|
12282
|
+
* one caller implementing it privately is how a second scoring authority
|
|
12283
|
+
* gets born.
|
|
12284
|
+
*/
|
|
12285
|
+
maxHeight: number().int().positive().optional(),
|
|
12164
12286
|
/** Minimum horizontal resolution. */
|
|
12165
12287
|
minWidth: number().int().positive().optional(),
|
|
12166
12288
|
/**
|
|
@@ -12177,7 +12299,22 @@ var PickStreamRequirementsSchema = object({
|
|
|
12177
12299
|
* transcoded" guard: if the device is already serving the consumer's
|
|
12178
12300
|
* codec end-to-end, there's nothing to optimise.
|
|
12179
12301
|
*/
|
|
12180
|
-
requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
|
|
12302
|
+
requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
|
|
12303
|
+
/**
|
|
12304
|
+
* Whether a stream the consumer CANNOT decode may still be picked, on the
|
|
12305
|
+
* understanding that it will be transcoded.
|
|
12306
|
+
*
|
|
12307
|
+
* Default `false` — today's behaviour, and the right one for a bypass
|
|
12308
|
+
* question ("is there a stream I can forward untouched?"). Set `true` to
|
|
12309
|
+
* ask the larger question: "what is the best stream for me, transcoding if
|
|
12310
|
+
* I must?" A stream that satisfies `acceptCodecs` always outranks one that
|
|
12311
|
+
* does not, so a passthrough is never lost to a transcode; the answer says
|
|
12312
|
+
* which it is in {@link PickedCamStreamSchema.transcodes}.
|
|
12313
|
+
*
|
|
12314
|
+
* This is what lets one picker serve both the bypass and the full source
|
|
12315
|
+
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12316
|
+
*/
|
|
12317
|
+
allowTranscode: boolean().optional()
|
|
12181
12318
|
}).readonly();
|
|
12182
12319
|
var PickStreamPreferencesSchema = object({
|
|
12183
12320
|
/**
|
|
@@ -12191,12 +12328,32 @@ var PickStreamPreferencesSchema = object({
|
|
|
12191
12328
|
* picks the tallest stream; `'lowest'` picks the shortest (used by
|
|
12192
12329
|
* memory-constrained consumers / Apple Home guest sessions).
|
|
12193
12330
|
*/
|
|
12194
|
-
resolutionPreference: _enum(["highest", "lowest"]).optional()
|
|
12331
|
+
resolutionPreference: _enum(["highest", "lowest"]).optional(),
|
|
12332
|
+
/**
|
|
12333
|
+
* The height the consumer actually wants to DELIVER.
|
|
12334
|
+
*
|
|
12335
|
+
* Not a constraint — an ordering. With it set, the SMALLEST stream at or
|
|
12336
|
+
* above the target wins, and only if nothing reaches it does the tallest
|
|
12337
|
+
* take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
|
|
12338
|
+
* a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
|
|
12339
|
+
* express that: it says "as big as possible", which is a different wish.
|
|
12340
|
+
*
|
|
12341
|
+
* Ignored when absent, so every existing caller keeps its ordering.
|
|
12342
|
+
*/
|
|
12343
|
+
targetHeight: number().int().positive().optional()
|
|
12195
12344
|
}).readonly();
|
|
12196
12345
|
var PickedCamStreamSchema = object({
|
|
12197
12346
|
camStreamId: string(),
|
|
12198
12347
|
codec: string().optional(),
|
|
12199
12348
|
resolution: CamStreamResolutionSchema.optional(),
|
|
12349
|
+
/**
|
|
12350
|
+
* Whether serving this stream requires a decode + re-encode.
|
|
12351
|
+
*
|
|
12352
|
+
* `false` is a stream the consumer can take as it stands. Only ever `true`
|
|
12353
|
+
* when the caller asked for it with `allowTranscode`, so a caller that did
|
|
12354
|
+
* not ask cannot be handed a cost it never agreed to pay.
|
|
12355
|
+
*/
|
|
12356
|
+
transcodes: boolean(),
|
|
12200
12357
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12201
12358
|
reason: string()
|
|
12202
12359
|
});
|
|
@@ -16730,6 +16887,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16730
16887
|
"device-enabled",
|
|
16731
16888
|
"device-battery-low",
|
|
16732
16889
|
"device-battery-normal",
|
|
16890
|
+
"device-consumable-low",
|
|
16891
|
+
"device-consumable-normal",
|
|
16733
16892
|
"stream-online",
|
|
16734
16893
|
"stream-offline",
|
|
16735
16894
|
"node-online",
|
|
@@ -16748,6 +16907,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16748
16907
|
"addon-updated",
|
|
16749
16908
|
"server-updated",
|
|
16750
16909
|
"export-completed",
|
|
16910
|
+
"backup-completed",
|
|
16751
16911
|
"camera-online",
|
|
16752
16912
|
"camera-offline",
|
|
16753
16913
|
"camera-disabled",
|
|
@@ -20184,13 +20344,109 @@ var SummariesQueryInput = object({
|
|
|
20184
20344
|
deviceIds: array(number()).min(1),
|
|
20185
20345
|
since: number().optional(),
|
|
20186
20346
|
until: number().optional(),
|
|
20187
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20347
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20348
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20349
|
+
* meaning of "dog" on every summary surface. */
|
|
20350
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20188
20351
|
});
|
|
20189
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20190
20352
|
var SummaryDetailSchema = object({
|
|
20191
20353
|
summary: SummarySchema,
|
|
20192
|
-
/**
|
|
20193
|
-
|
|
20354
|
+
/** Members in absorption order, oldest join first. */
|
|
20355
|
+
members: array(object({
|
|
20356
|
+
trackId: string(),
|
|
20357
|
+
/**
|
|
20358
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20359
|
+
* and the track no longer exists to fill it.
|
|
20360
|
+
*
|
|
20361
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20362
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20363
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20364
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20365
|
+
* drift from the members it claims to describe.
|
|
20366
|
+
*/
|
|
20367
|
+
className: string().nullable(),
|
|
20368
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20369
|
+
role: _enum([
|
|
20370
|
+
"primary",
|
|
20371
|
+
"sibling",
|
|
20372
|
+
"child"
|
|
20373
|
+
]).nullable(),
|
|
20374
|
+
joinedAt: number(),
|
|
20375
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20376
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20377
|
+
label: string().optional(),
|
|
20378
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20379
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20380
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20381
|
+
subLabel: string().optional()
|
|
20382
|
+
})).readonly()
|
|
20383
|
+
});
|
|
20384
|
+
/**
|
|
20385
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20386
|
+
*
|
|
20387
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20388
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20389
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20390
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20391
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20392
|
+
* draw two hundred badges.
|
|
20393
|
+
*/
|
|
20394
|
+
var SummaryListItemSchema = object({
|
|
20395
|
+
summary: SummarySchema,
|
|
20396
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20397
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20398
|
+
classes: array(object({
|
|
20399
|
+
className: string().nullable(),
|
|
20400
|
+
count: number().int().positive()
|
|
20401
|
+
})).readonly()
|
|
20402
|
+
});
|
|
20403
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20404
|
+
/**
|
|
20405
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20406
|
+
*
|
|
20407
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20408
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20409
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20410
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20411
|
+
* "newest" means, on one screen.
|
|
20412
|
+
*/
|
|
20413
|
+
var RecentSummariesQueryInput = object({
|
|
20414
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20415
|
+
deviceIds: array(number()),
|
|
20416
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20417
|
+
since: number().optional(),
|
|
20418
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20419
|
+
until: number().optional(),
|
|
20420
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20421
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20422
|
+
cursor: string().optional(),
|
|
20423
|
+
/**
|
|
20424
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20425
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20426
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20427
|
+
* make the operator's one filter component produce two shapes.
|
|
20428
|
+
*
|
|
20429
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20430
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20431
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20432
|
+
* about its primary.
|
|
20433
|
+
*
|
|
20434
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20435
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20436
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20437
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20438
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20439
|
+
*
|
|
20440
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20441
|
+
*/
|
|
20442
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20443
|
+
});
|
|
20444
|
+
var RecentSummariesPageSchema = object({
|
|
20445
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20446
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20447
|
+
* whichever feed drew it. */
|
|
20448
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20449
|
+
nextCursor: string().nullable()
|
|
20194
20450
|
});
|
|
20195
20451
|
var RecentTracksPageSchema = object({
|
|
20196
20452
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20604,7 +20860,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20604
20860
|
classes: array(string()).optional(),
|
|
20605
20861
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20606
20862
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20607
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20863
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20608
20864
|
kind: "mutation",
|
|
20609
20865
|
auth: "admin"
|
|
20610
20866
|
}), 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({
|
|
@@ -23933,10 +24189,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
23933
24189
|
}), boolean()), method(object({
|
|
23934
24190
|
deviceId: number().int().nonnegative(),
|
|
23935
24191
|
sessionId: string()
|
|
23936
|
-
}), object({
|
|
23937
|
-
|
|
23938
|
-
|
|
23939
|
-
|
|
24192
|
+
}), object({
|
|
24193
|
+
pendingRenegotiation: object({
|
|
24194
|
+
target: WebrtcStreamTargetSchema,
|
|
24195
|
+
epoch: number()
|
|
24196
|
+
}).nullable(),
|
|
24197
|
+
/**
|
|
24198
|
+
* Whether the session still EXISTS.
|
|
24199
|
+
*
|
|
24200
|
+
* A consumer that holds a resource for the life of a session needs to
|
|
24201
|
+
* be able to ask, because a session does not always end the way it
|
|
24202
|
+
* began. Measured on this hub 2026-09-13: an Echo that got stuck never
|
|
24203
|
+
* sent `SessionDisconnected`, so the Alexa exporter's
|
|
24204
|
+
* `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
|
|
24205
|
+
* H.264 transcode kept running for NOBODY for more than twenty
|
|
24206
|
+
* minutes. The WebRTC session had logged `WebRTC session closed`
|
|
24207
|
+
* minutes earlier — the broker knew; the holder had no way to ask.
|
|
24208
|
+
*
|
|
24209
|
+
* `false` for a session id the provider has never heard of, which is
|
|
24210
|
+
* the same answer as "it ended": either way nothing is holding it up.
|
|
24211
|
+
*/
|
|
24212
|
+
alive: boolean()
|
|
24213
|
+
}));
|
|
23940
24214
|
object({
|
|
23941
24215
|
/** All accessory children of the parent. */
|
|
23942
24216
|
childDeviceIds: array(number()).readonly(),
|
|
@@ -32365,7 +32639,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
32365
32639
|
* disarmed the channels it did not mention would make the Levels page and
|
|
32366
32640
|
* the Diagnostics page fight over the same value.
|
|
32367
32641
|
*/
|
|
32368
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
32642
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
32643
|
+
/**
|
|
32644
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
32645
|
+
* retention actually deleted.
|
|
32646
|
+
*
|
|
32647
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
32648
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
32649
|
+
* this system is configured through this one document, and a retention audit
|
|
32650
|
+
* configured somewhere else is a second place to look when the question is
|
|
32651
|
+
* "what happened to my data".
|
|
32652
|
+
*
|
|
32653
|
+
* That placement has a cost worth stating: this document ships in the
|
|
32654
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
32655
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
32656
|
+
*
|
|
32657
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
32658
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
32659
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
32660
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
32661
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
32662
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
32663
|
+
*/
|
|
32664
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
32369
32665
|
});
|
|
32370
32666
|
/**
|
|
32371
32667
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -32438,6 +32734,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
32438
32734
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
32439
32735
|
/** The channels ARMED right now, each with its deadline. */
|
|
32440
32736
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
32737
|
+
/**
|
|
32738
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
32739
|
+
*
|
|
32740
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
32741
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
32742
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
32743
|
+
*/
|
|
32744
|
+
opsLogRetentionDays: number().int().min(0),
|
|
32441
32745
|
persisted: boolean()
|
|
32442
32746
|
});
|
|
32443
32747
|
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(), {
|
|
@@ -33833,6 +34137,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
33833
34137
|
smoke: smokeCapability,
|
|
33834
34138
|
streamCatalog: streamCatalogCapability,
|
|
33835
34139
|
streamParams: streamParamsCapability,
|
|
34140
|
+
streamSignals: streamSignalsCapability,
|
|
33836
34141
|
switch: switchCapability,
|
|
33837
34142
|
tamper: tamperCapability,
|
|
33838
34143
|
temperatureSensor: temperatureSensorCapability,
|
|
@@ -38438,6 +38743,12 @@ Object.freeze({
|
|
|
38438
38743
|
addonId: null,
|
|
38439
38744
|
access: "view"
|
|
38440
38745
|
},
|
|
38746
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
38747
|
+
capName: "pipeline-analytics",
|
|
38748
|
+
capScope: "device",
|
|
38749
|
+
addonId: null,
|
|
38750
|
+
access: "view"
|
|
38751
|
+
},
|
|
38441
38752
|
"pipelineAnalytics.listRecentTracks": {
|
|
38442
38753
|
capName: "pipeline-analytics",
|
|
38443
38754
|
capScope: "device",
|
|
@@ -40400,6 +40711,12 @@ Object.freeze({
|
|
|
40400
40711
|
addonId: null,
|
|
40401
40712
|
access: "create"
|
|
40402
40713
|
},
|
|
40714
|
+
"streamBroker.reportStreamSignal": {
|
|
40715
|
+
capName: "stream-broker",
|
|
40716
|
+
capScope: "system",
|
|
40717
|
+
addonId: null,
|
|
40718
|
+
access: "create"
|
|
40719
|
+
},
|
|
40403
40720
|
"streamBroker.restartProfile": {
|
|
40404
40721
|
capName: "stream-broker",
|
|
40405
40722
|
capScope: "system",
|
|
@@ -40484,6 +40801,12 @@ Object.freeze({
|
|
|
40484
40801
|
addonId: null,
|
|
40485
40802
|
access: "create"
|
|
40486
40803
|
},
|
|
40804
|
+
"streamSignals.listSignals": {
|
|
40805
|
+
capName: "stream-signals",
|
|
40806
|
+
capScope: "device",
|
|
40807
|
+
addonId: null,
|
|
40808
|
+
access: "view"
|
|
40809
|
+
},
|
|
40487
40810
|
"switch.setState": {
|
|
40488
40811
|
capName: "switch",
|
|
40489
40812
|
capScope: "device",
|
|
@@ -42265,6 +42588,11 @@ Object.freeze({
|
|
|
42265
42588
|
form: "single",
|
|
42266
42589
|
optional: true
|
|
42267
42590
|
}],
|
|
42591
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
42592
|
+
name: "deviceIds",
|
|
42593
|
+
form: "array",
|
|
42594
|
+
optional: false
|
|
42595
|
+
}],
|
|
42268
42596
|
"pipelineAnalytics.listRecentTracks": [{
|
|
42269
42597
|
name: "deviceIds",
|
|
42270
42598
|
form: "array",
|
|
@@ -42851,6 +43179,11 @@ Object.freeze({
|
|
|
42851
43179
|
form: "single",
|
|
42852
43180
|
optional: false
|
|
42853
43181
|
}],
|
|
43182
|
+
"streamBroker.reportStreamSignal": [{
|
|
43183
|
+
name: "deviceId",
|
|
43184
|
+
form: "single",
|
|
43185
|
+
optional: false
|
|
43186
|
+
}],
|
|
42854
43187
|
"streamBroker.restartProfile": [{
|
|
42855
43188
|
name: "deviceId",
|
|
42856
43189
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreo",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.102",
|
|
4
4
|
"description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|