@camstack/addon-import-alexa 0.2.99 → 0.2.101
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
|
@@ -38,7 +38,7 @@ let node_os = require("node:os");
|
|
|
38
38
|
let node_fs = require("node:fs");
|
|
39
39
|
let node_path = require("node:path");
|
|
40
40
|
node_path = __toESM(node_path);
|
|
41
|
-
//#region ../types/dist/event-category-
|
|
41
|
+
//#region ../types/dist/event-category-BVDXG4tB.mjs
|
|
42
42
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
43
43
|
EventCategory["SystemBoot"] = "system.boot";
|
|
44
44
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -655,6 +655,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
655
655
|
* pull-reconcile from the provider's `getStatus` on reconnect. */
|
|
656
656
|
EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
|
|
657
657
|
EventCategory["BackupCompleted"] = "backup.completed";
|
|
658
|
+
/**
|
|
659
|
+
* A whole backup RUN finished — every destination attempted, win or lose.
|
|
660
|
+
*
|
|
661
|
+
* `backup.completed` fires once per DESTINATION, which is the right grain for
|
|
662
|
+
* a progress UI and the wrong one for a notification: an operator with three
|
|
663
|
+
* destinations would be told three times. And a run where two of three
|
|
664
|
+
* destinations succeeded is not a clean success — a single "backup
|
|
665
|
+
* completed" that hid the failed one would be a lie, so the count of each is
|
|
666
|
+
* carried here and the message says both.
|
|
667
|
+
*
|
|
668
|
+
* Emitted by the backup orchestrator only after the destination loop, so a
|
|
669
|
+
* run that dies during the BUILD phase produces no completion at all.
|
|
670
|
+
*/
|
|
671
|
+
EventCategory["BackupRunCompleted"] = "backup.run-completed";
|
|
658
672
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
659
673
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
660
674
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
@@ -5385,7 +5399,7 @@ var ZodIssueCode = {
|
|
|
5385
5399
|
var ZodFirstPartyTypeKind;
|
|
5386
5400
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5387
5401
|
//#endregion
|
|
5388
|
-
//#region ../types/dist/sleep-
|
|
5402
|
+
//#region ../types/dist/sleep-DEuj7E3j.mjs
|
|
5389
5403
|
/**
|
|
5390
5404
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5391
5405
|
* window to float samples (D455).
|
|
@@ -7531,7 +7545,23 @@ var EncodeProfileSchema = object({
|
|
|
7531
7545
|
"zerolatency",
|
|
7532
7546
|
"film",
|
|
7533
7547
|
"animation"
|
|
7534
|
-
]).optional()
|
|
7548
|
+
]).optional(),
|
|
7549
|
+
/**
|
|
7550
|
+
* ONE slice per access unit.
|
|
7551
|
+
*
|
|
7552
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7553
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7554
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7555
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7556
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7557
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7558
|
+
*
|
|
7559
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7560
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7561
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7562
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7563
|
+
*/
|
|
7564
|
+
singleSlicePerFrame: boolean().optional()
|
|
7535
7565
|
}),
|
|
7536
7566
|
audio: union([literal("passthrough"), object({
|
|
7537
7567
|
codec: _enum([
|
|
@@ -7581,7 +7611,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7581
7611
|
audio: "passthrough"
|
|
7582
7612
|
};
|
|
7583
7613
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7584
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7614
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7585
7615
|
/**
|
|
7586
7616
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7587
7617
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -11698,6 +11728,72 @@ var brokerCapability = {
|
|
|
11698
11728
|
}
|
|
11699
11729
|
};
|
|
11700
11730
|
DeviceType.Camera;
|
|
11731
|
+
/**
|
|
11732
|
+
* The signals a device can emit to WAKE its own stream.
|
|
11733
|
+
*
|
|
11734
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
11735
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
11736
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
11737
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
11738
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
11739
|
+
* itself, with no stream running.
|
|
11740
|
+
*
|
|
11741
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
11742
|
+
*
|
|
11743
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
11744
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
11745
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
11746
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
11747
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
11748
|
+
*
|
|
11749
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
11750
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
11751
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
11752
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
11753
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
11754
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
11755
|
+
* camera. Two questions, two authorities.
|
|
11756
|
+
*
|
|
11757
|
+
* ## Availability is not permission
|
|
11758
|
+
*
|
|
11759
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
11760
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
11761
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
11762
|
+
* provider declaring a signal is not a provider enabling it.
|
|
11763
|
+
*/
|
|
11764
|
+
/** One signal a device can emit. */
|
|
11765
|
+
var StreamSignalSchema = object({
|
|
11766
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
11767
|
+
code: string().min(1),
|
|
11768
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
11769
|
+
label: string().min(1),
|
|
11770
|
+
/**
|
|
11771
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
11772
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
11773
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
11774
|
+
* both of its own.
|
|
11775
|
+
*/
|
|
11776
|
+
recommended: boolean()
|
|
11777
|
+
});
|
|
11778
|
+
var StreamSignalsStatusSchema = object({
|
|
11779
|
+
signals: array(StreamSignalSchema),
|
|
11780
|
+
lastFetchedAt: number()
|
|
11781
|
+
});
|
|
11782
|
+
var streamSignalsCapability = {
|
|
11783
|
+
name: "stream-signals",
|
|
11784
|
+
scope: "device",
|
|
11785
|
+
deviceNative: true,
|
|
11786
|
+
mode: "singleton",
|
|
11787
|
+
deviceTypes: Object.values(DeviceType),
|
|
11788
|
+
runtimeState: StreamSignalsStatusSchema,
|
|
11789
|
+
methods: {
|
|
11790
|
+
/**
|
|
11791
|
+
* What this device can emit. Empty is a valid and common answer — most
|
|
11792
|
+
* cameras have nothing to offer here, and an empty list is what makes the
|
|
11793
|
+
* broker's picker show nothing rather than a false choice.
|
|
11794
|
+
*/
|
|
11795
|
+
listSignals: method(_void(), array(StreamSignalSchema).readonly()) }
|
|
11796
|
+
};
|
|
11701
11797
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
11702
11798
|
var StreamFormatSchema = _enum([
|
|
11703
11799
|
"webrtc",
|
|
@@ -12094,6 +12190,22 @@ var EgressTranscodeSchema = object({
|
|
|
12094
12190
|
camStreamId: string().nullable()
|
|
12095
12191
|
});
|
|
12096
12192
|
method(object({
|
|
12193
|
+
deviceId: number().int().nonnegative(),
|
|
12194
|
+
/** The provider's signal code. */
|
|
12195
|
+
code: string().min(1),
|
|
12196
|
+
/** Ms epoch. Absent ⇒ now. */
|
|
12197
|
+
at: number().optional()
|
|
12198
|
+
}), object({
|
|
12199
|
+
/** Whether the broker acted on it, and if not, why. */
|
|
12200
|
+
accepted: boolean(),
|
|
12201
|
+
reason: _enum([
|
|
12202
|
+
"woke",
|
|
12203
|
+
"hold-extended",
|
|
12204
|
+
"not-enabled",
|
|
12205
|
+
"no-consumer",
|
|
12206
|
+
"unknown-code"
|
|
12207
|
+
])
|
|
12208
|
+
}), { kind: "mutation" }), method(object({
|
|
12097
12209
|
deviceId: number().int().nonnegative(),
|
|
12098
12210
|
camStreamId: string().min(1),
|
|
12099
12211
|
kind: CamStreamKindSchema,
|
|
@@ -12348,6 +12460,16 @@ var PickStreamRequirementsSchema = object({
|
|
|
12348
12460
|
acceptCodecs: array(StreamCodecSchema).readonly().optional(),
|
|
12349
12461
|
/** Minimum vertical resolution. Streams shorter than this are dropped. */
|
|
12350
12462
|
minHeight: number().int().positive().optional(),
|
|
12463
|
+
/**
|
|
12464
|
+
* Maximum vertical resolution. Streams TALLER than this are dropped.
|
|
12465
|
+
*
|
|
12466
|
+
* A consumer can have a ceiling as real as its floor: Alexa documents
|
|
12467
|
+
* 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
|
|
12468
|
+
* Without this the ceiling had to be re-implemented by every caller — and
|
|
12469
|
+
* one caller implementing it privately is how a second scoring authority
|
|
12470
|
+
* gets born.
|
|
12471
|
+
*/
|
|
12472
|
+
maxHeight: number().int().positive().optional(),
|
|
12351
12473
|
/** Minimum horizontal resolution. */
|
|
12352
12474
|
minWidth: number().int().positive().optional(),
|
|
12353
12475
|
/**
|
|
@@ -12364,7 +12486,22 @@ var PickStreamRequirementsSchema = object({
|
|
|
12364
12486
|
* transcoded" guard: if the device is already serving the consumer's
|
|
12365
12487
|
* codec end-to-end, there's nothing to optimise.
|
|
12366
12488
|
*/
|
|
12367
|
-
requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
|
|
12489
|
+
requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
|
|
12490
|
+
/**
|
|
12491
|
+
* Whether a stream the consumer CANNOT decode may still be picked, on the
|
|
12492
|
+
* understanding that it will be transcoded.
|
|
12493
|
+
*
|
|
12494
|
+
* Default `false` — today's behaviour, and the right one for a bypass
|
|
12495
|
+
* question ("is there a stream I can forward untouched?"). Set `true` to
|
|
12496
|
+
* ask the larger question: "what is the best stream for me, transcoding if
|
|
12497
|
+
* I must?" A stream that satisfies `acceptCodecs` always outranks one that
|
|
12498
|
+
* does not, so a passthrough is never lost to a transcode; the answer says
|
|
12499
|
+
* which it is in {@link PickedCamStreamSchema.transcodes}.
|
|
12500
|
+
*
|
|
12501
|
+
* This is what lets one picker serve both the bypass and the full source
|
|
12502
|
+
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12503
|
+
*/
|
|
12504
|
+
allowTranscode: boolean().optional()
|
|
12368
12505
|
}).readonly();
|
|
12369
12506
|
var PickStreamPreferencesSchema = object({
|
|
12370
12507
|
/**
|
|
@@ -12378,12 +12515,32 @@ var PickStreamPreferencesSchema = object({
|
|
|
12378
12515
|
* picks the tallest stream; `'lowest'` picks the shortest (used by
|
|
12379
12516
|
* memory-constrained consumers / Apple Home guest sessions).
|
|
12380
12517
|
*/
|
|
12381
|
-
resolutionPreference: _enum(["highest", "lowest"]).optional()
|
|
12518
|
+
resolutionPreference: _enum(["highest", "lowest"]).optional(),
|
|
12519
|
+
/**
|
|
12520
|
+
* The height the consumer actually wants to DELIVER.
|
|
12521
|
+
*
|
|
12522
|
+
* Not a constraint — an ordering. With it set, the SMALLEST stream at or
|
|
12523
|
+
* above the target wins, and only if nothing reaches it does the tallest
|
|
12524
|
+
* take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
|
|
12525
|
+
* a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
|
|
12526
|
+
* express that: it says "as big as possible", which is a different wish.
|
|
12527
|
+
*
|
|
12528
|
+
* Ignored when absent, so every existing caller keeps its ordering.
|
|
12529
|
+
*/
|
|
12530
|
+
targetHeight: number().int().positive().optional()
|
|
12382
12531
|
}).readonly();
|
|
12383
12532
|
var PickedCamStreamSchema = object({
|
|
12384
12533
|
camStreamId: string(),
|
|
12385
12534
|
codec: string().optional(),
|
|
12386
12535
|
resolution: CamStreamResolutionSchema.optional(),
|
|
12536
|
+
/**
|
|
12537
|
+
* Whether serving this stream requires a decode + re-encode.
|
|
12538
|
+
*
|
|
12539
|
+
* `false` is a stream the consumer can take as it stands. Only ever `true`
|
|
12540
|
+
* when the caller asked for it with `allowTranscode`, so a caller that did
|
|
12541
|
+
* not ask cannot be handed a cost it never agreed to pay.
|
|
12542
|
+
*/
|
|
12543
|
+
transcodes: boolean(),
|
|
12387
12544
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12388
12545
|
reason: string()
|
|
12389
12546
|
});
|
|
@@ -16917,6 +17074,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16917
17074
|
"device-enabled",
|
|
16918
17075
|
"device-battery-low",
|
|
16919
17076
|
"device-battery-normal",
|
|
17077
|
+
"device-consumable-low",
|
|
17078
|
+
"device-consumable-normal",
|
|
16920
17079
|
"stream-online",
|
|
16921
17080
|
"stream-offline",
|
|
16922
17081
|
"node-online",
|
|
@@ -16935,6 +17094,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16935
17094
|
"addon-updated",
|
|
16936
17095
|
"server-updated",
|
|
16937
17096
|
"export-completed",
|
|
17097
|
+
"backup-completed",
|
|
16938
17098
|
"camera-online",
|
|
16939
17099
|
"camera-offline",
|
|
16940
17100
|
"camera-disabled",
|
|
@@ -20371,13 +20531,109 @@ var SummariesQueryInput = object({
|
|
|
20371
20531
|
deviceIds: array(number()).min(1),
|
|
20372
20532
|
since: number().optional(),
|
|
20373
20533
|
until: number().optional(),
|
|
20374
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20534
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20535
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20536
|
+
* meaning of "dog" on every summary surface. */
|
|
20537
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20375
20538
|
});
|
|
20376
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20377
20539
|
var SummaryDetailSchema = object({
|
|
20378
20540
|
summary: SummarySchema,
|
|
20379
|
-
/**
|
|
20380
|
-
|
|
20541
|
+
/** Members in absorption order, oldest join first. */
|
|
20542
|
+
members: array(object({
|
|
20543
|
+
trackId: string(),
|
|
20544
|
+
/**
|
|
20545
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20546
|
+
* and the track no longer exists to fill it.
|
|
20547
|
+
*
|
|
20548
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20549
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20550
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20551
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20552
|
+
* drift from the members it claims to describe.
|
|
20553
|
+
*/
|
|
20554
|
+
className: string().nullable(),
|
|
20555
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20556
|
+
role: _enum([
|
|
20557
|
+
"primary",
|
|
20558
|
+
"sibling",
|
|
20559
|
+
"child"
|
|
20560
|
+
]).nullable(),
|
|
20561
|
+
joinedAt: number(),
|
|
20562
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20563
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20564
|
+
label: string().optional(),
|
|
20565
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20566
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20567
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20568
|
+
subLabel: string().optional()
|
|
20569
|
+
})).readonly()
|
|
20570
|
+
});
|
|
20571
|
+
/**
|
|
20572
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20573
|
+
*
|
|
20574
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20575
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20576
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20577
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20578
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20579
|
+
* draw two hundred badges.
|
|
20580
|
+
*/
|
|
20581
|
+
var SummaryListItemSchema = object({
|
|
20582
|
+
summary: SummarySchema,
|
|
20583
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20584
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20585
|
+
classes: array(object({
|
|
20586
|
+
className: string().nullable(),
|
|
20587
|
+
count: number().int().positive()
|
|
20588
|
+
})).readonly()
|
|
20589
|
+
});
|
|
20590
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20591
|
+
/**
|
|
20592
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20593
|
+
*
|
|
20594
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20595
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20596
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20597
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20598
|
+
* "newest" means, on one screen.
|
|
20599
|
+
*/
|
|
20600
|
+
var RecentSummariesQueryInput = object({
|
|
20601
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20602
|
+
deviceIds: array(number()),
|
|
20603
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20604
|
+
since: number().optional(),
|
|
20605
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20606
|
+
until: number().optional(),
|
|
20607
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20608
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20609
|
+
cursor: string().optional(),
|
|
20610
|
+
/**
|
|
20611
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20612
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20613
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20614
|
+
* make the operator's one filter component produce two shapes.
|
|
20615
|
+
*
|
|
20616
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20617
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20618
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20619
|
+
* about its primary.
|
|
20620
|
+
*
|
|
20621
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20622
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20623
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20624
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20625
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20626
|
+
*
|
|
20627
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20628
|
+
*/
|
|
20629
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20630
|
+
});
|
|
20631
|
+
var RecentSummariesPageSchema = object({
|
|
20632
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20633
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20634
|
+
* whichever feed drew it. */
|
|
20635
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20636
|
+
nextCursor: string().nullable()
|
|
20381
20637
|
});
|
|
20382
20638
|
var RecentTracksPageSchema = object({
|
|
20383
20639
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20791,7 +21047,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20791
21047
|
classes: array(string()).optional(),
|
|
20792
21048
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20793
21049
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20794
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
21050
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20795
21051
|
kind: "mutation",
|
|
20796
21052
|
auth: "admin"
|
|
20797
21053
|
}), 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({
|
|
@@ -24120,10 +24376,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
24120
24376
|
}), boolean()), method(object({
|
|
24121
24377
|
deviceId: number().int().nonnegative(),
|
|
24122
24378
|
sessionId: string()
|
|
24123
|
-
}), object({
|
|
24124
|
-
|
|
24125
|
-
|
|
24126
|
-
|
|
24379
|
+
}), object({
|
|
24380
|
+
pendingRenegotiation: object({
|
|
24381
|
+
target: WebrtcStreamTargetSchema,
|
|
24382
|
+
epoch: number()
|
|
24383
|
+
}).nullable(),
|
|
24384
|
+
/**
|
|
24385
|
+
* Whether the session still EXISTS.
|
|
24386
|
+
*
|
|
24387
|
+
* A consumer that holds a resource for the life of a session needs to
|
|
24388
|
+
* be able to ask, because a session does not always end the way it
|
|
24389
|
+
* began. Measured on this hub 2026-09-13: an Echo that got stuck never
|
|
24390
|
+
* sent `SessionDisconnected`, so the Alexa exporter's
|
|
24391
|
+
* `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
|
|
24392
|
+
* H.264 transcode kept running for NOBODY for more than twenty
|
|
24393
|
+
* minutes. The WebRTC session had logged `WebRTC session closed`
|
|
24394
|
+
* minutes earlier — the broker knew; the holder had no way to ask.
|
|
24395
|
+
*
|
|
24396
|
+
* `false` for a session id the provider has never heard of, which is
|
|
24397
|
+
* the same answer as "it ended": either way nothing is holding it up.
|
|
24398
|
+
*/
|
|
24399
|
+
alive: boolean()
|
|
24400
|
+
}));
|
|
24127
24401
|
object({
|
|
24128
24402
|
/** All accessory children of the parent. */
|
|
24129
24403
|
childDeviceIds: array(number()).readonly(),
|
|
@@ -32561,7 +32835,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
32561
32835
|
* disarmed the channels it did not mention would make the Levels page and
|
|
32562
32836
|
* the Diagnostics page fight over the same value.
|
|
32563
32837
|
*/
|
|
32564
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
32838
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
32839
|
+
/**
|
|
32840
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
32841
|
+
* retention actually deleted.
|
|
32842
|
+
*
|
|
32843
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
32844
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
32845
|
+
* this system is configured through this one document, and a retention audit
|
|
32846
|
+
* configured somewhere else is a second place to look when the question is
|
|
32847
|
+
* "what happened to my data".
|
|
32848
|
+
*
|
|
32849
|
+
* That placement has a cost worth stating: this document ships in the
|
|
32850
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
32851
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
32852
|
+
*
|
|
32853
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
32854
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
32855
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
32856
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
32857
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
32858
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
32859
|
+
*/
|
|
32860
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
32565
32861
|
});
|
|
32566
32862
|
/**
|
|
32567
32863
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -32634,6 +32930,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
32634
32930
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
32635
32931
|
/** The channels ARMED right now, each with its deadline. */
|
|
32636
32932
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
32933
|
+
/**
|
|
32934
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
32935
|
+
*
|
|
32936
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
32937
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
32938
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
32939
|
+
*/
|
|
32940
|
+
opsLogRetentionDays: number().int().min(0),
|
|
32637
32941
|
persisted: boolean()
|
|
32638
32942
|
});
|
|
32639
32943
|
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(), {
|
|
@@ -34029,6 +34333,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
34029
34333
|
smoke: smokeCapability,
|
|
34030
34334
|
streamCatalog: streamCatalogCapability,
|
|
34031
34335
|
streamParams: streamParamsCapability,
|
|
34336
|
+
streamSignals: streamSignalsCapability,
|
|
34032
34337
|
switch: switchCapability,
|
|
34033
34338
|
tamper: tamperCapability,
|
|
34034
34339
|
temperatureSensor: temperatureSensorCapability,
|
|
@@ -38634,6 +38939,12 @@ Object.freeze({
|
|
|
38634
38939
|
addonId: null,
|
|
38635
38940
|
access: "view"
|
|
38636
38941
|
},
|
|
38942
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
38943
|
+
capName: "pipeline-analytics",
|
|
38944
|
+
capScope: "device",
|
|
38945
|
+
addonId: null,
|
|
38946
|
+
access: "view"
|
|
38947
|
+
},
|
|
38637
38948
|
"pipelineAnalytics.listRecentTracks": {
|
|
38638
38949
|
capName: "pipeline-analytics",
|
|
38639
38950
|
capScope: "device",
|
|
@@ -40596,6 +40907,12 @@ Object.freeze({
|
|
|
40596
40907
|
addonId: null,
|
|
40597
40908
|
access: "create"
|
|
40598
40909
|
},
|
|
40910
|
+
"streamBroker.reportStreamSignal": {
|
|
40911
|
+
capName: "stream-broker",
|
|
40912
|
+
capScope: "system",
|
|
40913
|
+
addonId: null,
|
|
40914
|
+
access: "create"
|
|
40915
|
+
},
|
|
40599
40916
|
"streamBroker.restartProfile": {
|
|
40600
40917
|
capName: "stream-broker",
|
|
40601
40918
|
capScope: "system",
|
|
@@ -40680,6 +40997,12 @@ Object.freeze({
|
|
|
40680
40997
|
addonId: null,
|
|
40681
40998
|
access: "create"
|
|
40682
40999
|
},
|
|
41000
|
+
"streamSignals.listSignals": {
|
|
41001
|
+
capName: "stream-signals",
|
|
41002
|
+
capScope: "device",
|
|
41003
|
+
addonId: null,
|
|
41004
|
+
access: "view"
|
|
41005
|
+
},
|
|
40683
41006
|
"switch.setState": {
|
|
40684
41007
|
capName: "switch",
|
|
40685
41008
|
capScope: "device",
|
|
@@ -42461,6 +42784,11 @@ Object.freeze({
|
|
|
42461
42784
|
form: "single",
|
|
42462
42785
|
optional: true
|
|
42463
42786
|
}],
|
|
42787
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
42788
|
+
name: "deviceIds",
|
|
42789
|
+
form: "array",
|
|
42790
|
+
optional: false
|
|
42791
|
+
}],
|
|
42464
42792
|
"pipelineAnalytics.listRecentTracks": [{
|
|
42465
42793
|
name: "deviceIds",
|
|
42466
42794
|
form: "array",
|
|
@@ -43047,6 +43375,11 @@ Object.freeze({
|
|
|
43047
43375
|
form: "single",
|
|
43048
43376
|
optional: false
|
|
43049
43377
|
}],
|
|
43378
|
+
"streamBroker.reportStreamSignal": [{
|
|
43379
|
+
name: "deviceId",
|
|
43380
|
+
form: "single",
|
|
43381
|
+
optional: false
|
|
43382
|
+
}],
|
|
43050
43383
|
"streamBroker.restartProfile": [{
|
|
43051
43384
|
name: "deviceId",
|
|
43052
43385
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -38,7 +38,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
38
38
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
39
39
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
40
40
|
//#endregion
|
|
41
|
-
//#region ../types/dist/event-category-
|
|
41
|
+
//#region ../types/dist/event-category-BVDXG4tB.mjs
|
|
42
42
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
43
43
|
EventCategory["SystemBoot"] = "system.boot";
|
|
44
44
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -655,6 +655,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
655
655
|
* pull-reconcile from the provider's `getStatus` on reconnect. */
|
|
656
656
|
EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
|
|
657
657
|
EventCategory["BackupCompleted"] = "backup.completed";
|
|
658
|
+
/**
|
|
659
|
+
* A whole backup RUN finished — every destination attempted, win or lose.
|
|
660
|
+
*
|
|
661
|
+
* `backup.completed` fires once per DESTINATION, which is the right grain for
|
|
662
|
+
* a progress UI and the wrong one for a notification: an operator with three
|
|
663
|
+
* destinations would be told three times. And a run where two of three
|
|
664
|
+
* destinations succeeded is not a clean success — a single "backup
|
|
665
|
+
* completed" that hid the failed one would be a lie, so the count of each is
|
|
666
|
+
* carried here and the message says both.
|
|
667
|
+
*
|
|
668
|
+
* Emitted by the backup orchestrator only after the destination loop, so a
|
|
669
|
+
* run that dies during the BUILD phase produces no completion at all.
|
|
670
|
+
*/
|
|
671
|
+
EventCategory["BackupRunCompleted"] = "backup.run-completed";
|
|
658
672
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
659
673
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
660
674
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
@@ -5385,7 +5399,7 @@ var ZodIssueCode = {
|
|
|
5385
5399
|
var ZodFirstPartyTypeKind;
|
|
5386
5400
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5387
5401
|
//#endregion
|
|
5388
|
-
//#region ../types/dist/sleep-
|
|
5402
|
+
//#region ../types/dist/sleep-DEuj7E3j.mjs
|
|
5389
5403
|
/**
|
|
5390
5404
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5391
5405
|
* window to float samples (D455).
|
|
@@ -7531,7 +7545,23 @@ var EncodeProfileSchema = object({
|
|
|
7531
7545
|
"zerolatency",
|
|
7532
7546
|
"film",
|
|
7533
7547
|
"animation"
|
|
7534
|
-
]).optional()
|
|
7548
|
+
]).optional(),
|
|
7549
|
+
/**
|
|
7550
|
+
* ONE slice per access unit.
|
|
7551
|
+
*
|
|
7552
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7553
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7554
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7555
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7556
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7557
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7558
|
+
*
|
|
7559
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7560
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7561
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7562
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7563
|
+
*/
|
|
7564
|
+
singleSlicePerFrame: boolean().optional()
|
|
7535
7565
|
}),
|
|
7536
7566
|
audio: union([literal("passthrough"), object({
|
|
7537
7567
|
codec: _enum([
|
|
@@ -7581,7 +7611,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7581
7611
|
audio: "passthrough"
|
|
7582
7612
|
};
|
|
7583
7613
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7584
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7614
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7585
7615
|
/**
|
|
7586
7616
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7587
7617
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -11698,6 +11728,72 @@ var brokerCapability = {
|
|
|
11698
11728
|
}
|
|
11699
11729
|
};
|
|
11700
11730
|
DeviceType.Camera;
|
|
11731
|
+
/**
|
|
11732
|
+
* The signals a device can emit to WAKE its own stream.
|
|
11733
|
+
*
|
|
11734
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
11735
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
11736
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
11737
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
11738
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
11739
|
+
* itself, with no stream running.
|
|
11740
|
+
*
|
|
11741
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
11742
|
+
*
|
|
11743
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
11744
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
11745
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
11746
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
11747
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
11748
|
+
*
|
|
11749
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
11750
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
11751
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
11752
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
11753
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
11754
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
11755
|
+
* camera. Two questions, two authorities.
|
|
11756
|
+
*
|
|
11757
|
+
* ## Availability is not permission
|
|
11758
|
+
*
|
|
11759
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
11760
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
11761
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
11762
|
+
* provider declaring a signal is not a provider enabling it.
|
|
11763
|
+
*/
|
|
11764
|
+
/** One signal a device can emit. */
|
|
11765
|
+
var StreamSignalSchema = object({
|
|
11766
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
11767
|
+
code: string().min(1),
|
|
11768
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
11769
|
+
label: string().min(1),
|
|
11770
|
+
/**
|
|
11771
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
11772
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
11773
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
11774
|
+
* both of its own.
|
|
11775
|
+
*/
|
|
11776
|
+
recommended: boolean()
|
|
11777
|
+
});
|
|
11778
|
+
var StreamSignalsStatusSchema = object({
|
|
11779
|
+
signals: array(StreamSignalSchema),
|
|
11780
|
+
lastFetchedAt: number()
|
|
11781
|
+
});
|
|
11782
|
+
var streamSignalsCapability = {
|
|
11783
|
+
name: "stream-signals",
|
|
11784
|
+
scope: "device",
|
|
11785
|
+
deviceNative: true,
|
|
11786
|
+
mode: "singleton",
|
|
11787
|
+
deviceTypes: Object.values(DeviceType),
|
|
11788
|
+
runtimeState: StreamSignalsStatusSchema,
|
|
11789
|
+
methods: {
|
|
11790
|
+
/**
|
|
11791
|
+
* What this device can emit. Empty is a valid and common answer — most
|
|
11792
|
+
* cameras have nothing to offer here, and an empty list is what makes the
|
|
11793
|
+
* broker's picker show nothing rather than a false choice.
|
|
11794
|
+
*/
|
|
11795
|
+
listSignals: method(_void(), array(StreamSignalSchema).readonly()) }
|
|
11796
|
+
};
|
|
11701
11797
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
11702
11798
|
var StreamFormatSchema = _enum([
|
|
11703
11799
|
"webrtc",
|
|
@@ -12094,6 +12190,22 @@ var EgressTranscodeSchema = object({
|
|
|
12094
12190
|
camStreamId: string().nullable()
|
|
12095
12191
|
});
|
|
12096
12192
|
method(object({
|
|
12193
|
+
deviceId: number().int().nonnegative(),
|
|
12194
|
+
/** The provider's signal code. */
|
|
12195
|
+
code: string().min(1),
|
|
12196
|
+
/** Ms epoch. Absent ⇒ now. */
|
|
12197
|
+
at: number().optional()
|
|
12198
|
+
}), object({
|
|
12199
|
+
/** Whether the broker acted on it, and if not, why. */
|
|
12200
|
+
accepted: boolean(),
|
|
12201
|
+
reason: _enum([
|
|
12202
|
+
"woke",
|
|
12203
|
+
"hold-extended",
|
|
12204
|
+
"not-enabled",
|
|
12205
|
+
"no-consumer",
|
|
12206
|
+
"unknown-code"
|
|
12207
|
+
])
|
|
12208
|
+
}), { kind: "mutation" }), method(object({
|
|
12097
12209
|
deviceId: number().int().nonnegative(),
|
|
12098
12210
|
camStreamId: string().min(1),
|
|
12099
12211
|
kind: CamStreamKindSchema,
|
|
@@ -12348,6 +12460,16 @@ var PickStreamRequirementsSchema = object({
|
|
|
12348
12460
|
acceptCodecs: array(StreamCodecSchema).readonly().optional(),
|
|
12349
12461
|
/** Minimum vertical resolution. Streams shorter than this are dropped. */
|
|
12350
12462
|
minHeight: number().int().positive().optional(),
|
|
12463
|
+
/**
|
|
12464
|
+
* Maximum vertical resolution. Streams TALLER than this are dropped.
|
|
12465
|
+
*
|
|
12466
|
+
* A consumer can have a ceiling as real as its floor: Alexa documents
|
|
12467
|
+
* 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
|
|
12468
|
+
* Without this the ceiling had to be re-implemented by every caller — and
|
|
12469
|
+
* one caller implementing it privately is how a second scoring authority
|
|
12470
|
+
* gets born.
|
|
12471
|
+
*/
|
|
12472
|
+
maxHeight: number().int().positive().optional(),
|
|
12351
12473
|
/** Minimum horizontal resolution. */
|
|
12352
12474
|
minWidth: number().int().positive().optional(),
|
|
12353
12475
|
/**
|
|
@@ -12364,7 +12486,22 @@ var PickStreamRequirementsSchema = object({
|
|
|
12364
12486
|
* transcoded" guard: if the device is already serving the consumer's
|
|
12365
12487
|
* codec end-to-end, there's nothing to optimise.
|
|
12366
12488
|
*/
|
|
12367
|
-
requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
|
|
12489
|
+
requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
|
|
12490
|
+
/**
|
|
12491
|
+
* Whether a stream the consumer CANNOT decode may still be picked, on the
|
|
12492
|
+
* understanding that it will be transcoded.
|
|
12493
|
+
*
|
|
12494
|
+
* Default `false` — today's behaviour, and the right one for a bypass
|
|
12495
|
+
* question ("is there a stream I can forward untouched?"). Set `true` to
|
|
12496
|
+
* ask the larger question: "what is the best stream for me, transcoding if
|
|
12497
|
+
* I must?" A stream that satisfies `acceptCodecs` always outranks one that
|
|
12498
|
+
* does not, so a passthrough is never lost to a transcode; the answer says
|
|
12499
|
+
* which it is in {@link PickedCamStreamSchema.transcodes}.
|
|
12500
|
+
*
|
|
12501
|
+
* This is what lets one picker serve both the bypass and the full source
|
|
12502
|
+
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12503
|
+
*/
|
|
12504
|
+
allowTranscode: boolean().optional()
|
|
12368
12505
|
}).readonly();
|
|
12369
12506
|
var PickStreamPreferencesSchema = object({
|
|
12370
12507
|
/**
|
|
@@ -12378,12 +12515,32 @@ var PickStreamPreferencesSchema = object({
|
|
|
12378
12515
|
* picks the tallest stream; `'lowest'` picks the shortest (used by
|
|
12379
12516
|
* memory-constrained consumers / Apple Home guest sessions).
|
|
12380
12517
|
*/
|
|
12381
|
-
resolutionPreference: _enum(["highest", "lowest"]).optional()
|
|
12518
|
+
resolutionPreference: _enum(["highest", "lowest"]).optional(),
|
|
12519
|
+
/**
|
|
12520
|
+
* The height the consumer actually wants to DELIVER.
|
|
12521
|
+
*
|
|
12522
|
+
* Not a constraint — an ordering. With it set, the SMALLEST stream at or
|
|
12523
|
+
* above the target wins, and only if nothing reaches it does the tallest
|
|
12524
|
+
* take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
|
|
12525
|
+
* a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
|
|
12526
|
+
* express that: it says "as big as possible", which is a different wish.
|
|
12527
|
+
*
|
|
12528
|
+
* Ignored when absent, so every existing caller keeps its ordering.
|
|
12529
|
+
*/
|
|
12530
|
+
targetHeight: number().int().positive().optional()
|
|
12382
12531
|
}).readonly();
|
|
12383
12532
|
var PickedCamStreamSchema = object({
|
|
12384
12533
|
camStreamId: string(),
|
|
12385
12534
|
codec: string().optional(),
|
|
12386
12535
|
resolution: CamStreamResolutionSchema.optional(),
|
|
12536
|
+
/**
|
|
12537
|
+
* Whether serving this stream requires a decode + re-encode.
|
|
12538
|
+
*
|
|
12539
|
+
* `false` is a stream the consumer can take as it stands. Only ever `true`
|
|
12540
|
+
* when the caller asked for it with `allowTranscode`, so a caller that did
|
|
12541
|
+
* not ask cannot be handed a cost it never agreed to pay.
|
|
12542
|
+
*/
|
|
12543
|
+
transcodes: boolean(),
|
|
12387
12544
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12388
12545
|
reason: string()
|
|
12389
12546
|
});
|
|
@@ -16917,6 +17074,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16917
17074
|
"device-enabled",
|
|
16918
17075
|
"device-battery-low",
|
|
16919
17076
|
"device-battery-normal",
|
|
17077
|
+
"device-consumable-low",
|
|
17078
|
+
"device-consumable-normal",
|
|
16920
17079
|
"stream-online",
|
|
16921
17080
|
"stream-offline",
|
|
16922
17081
|
"node-online",
|
|
@@ -16935,6 +17094,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16935
17094
|
"addon-updated",
|
|
16936
17095
|
"server-updated",
|
|
16937
17096
|
"export-completed",
|
|
17097
|
+
"backup-completed",
|
|
16938
17098
|
"camera-online",
|
|
16939
17099
|
"camera-offline",
|
|
16940
17100
|
"camera-disabled",
|
|
@@ -20371,13 +20531,109 @@ var SummariesQueryInput = object({
|
|
|
20371
20531
|
deviceIds: array(number()).min(1),
|
|
20372
20532
|
since: number().optional(),
|
|
20373
20533
|
until: number().optional(),
|
|
20374
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20534
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20535
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20536
|
+
* meaning of "dog" on every summary surface. */
|
|
20537
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20375
20538
|
});
|
|
20376
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20377
20539
|
var SummaryDetailSchema = object({
|
|
20378
20540
|
summary: SummarySchema,
|
|
20379
|
-
/**
|
|
20380
|
-
|
|
20541
|
+
/** Members in absorption order, oldest join first. */
|
|
20542
|
+
members: array(object({
|
|
20543
|
+
trackId: string(),
|
|
20544
|
+
/**
|
|
20545
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20546
|
+
* and the track no longer exists to fill it.
|
|
20547
|
+
*
|
|
20548
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20549
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20550
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20551
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20552
|
+
* drift from the members it claims to describe.
|
|
20553
|
+
*/
|
|
20554
|
+
className: string().nullable(),
|
|
20555
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20556
|
+
role: _enum([
|
|
20557
|
+
"primary",
|
|
20558
|
+
"sibling",
|
|
20559
|
+
"child"
|
|
20560
|
+
]).nullable(),
|
|
20561
|
+
joinedAt: number(),
|
|
20562
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20563
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20564
|
+
label: string().optional(),
|
|
20565
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20566
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20567
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20568
|
+
subLabel: string().optional()
|
|
20569
|
+
})).readonly()
|
|
20570
|
+
});
|
|
20571
|
+
/**
|
|
20572
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20573
|
+
*
|
|
20574
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20575
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20576
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20577
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20578
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20579
|
+
* draw two hundred badges.
|
|
20580
|
+
*/
|
|
20581
|
+
var SummaryListItemSchema = object({
|
|
20582
|
+
summary: SummarySchema,
|
|
20583
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20584
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20585
|
+
classes: array(object({
|
|
20586
|
+
className: string().nullable(),
|
|
20587
|
+
count: number().int().positive()
|
|
20588
|
+
})).readonly()
|
|
20589
|
+
});
|
|
20590
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20591
|
+
/**
|
|
20592
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20593
|
+
*
|
|
20594
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20595
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20596
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20597
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20598
|
+
* "newest" means, on one screen.
|
|
20599
|
+
*/
|
|
20600
|
+
var RecentSummariesQueryInput = object({
|
|
20601
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20602
|
+
deviceIds: array(number()),
|
|
20603
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20604
|
+
since: number().optional(),
|
|
20605
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20606
|
+
until: number().optional(),
|
|
20607
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20608
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20609
|
+
cursor: string().optional(),
|
|
20610
|
+
/**
|
|
20611
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20612
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20613
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20614
|
+
* make the operator's one filter component produce two shapes.
|
|
20615
|
+
*
|
|
20616
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20617
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20618
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20619
|
+
* about its primary.
|
|
20620
|
+
*
|
|
20621
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20622
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20623
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20624
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20625
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20626
|
+
*
|
|
20627
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20628
|
+
*/
|
|
20629
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20630
|
+
});
|
|
20631
|
+
var RecentSummariesPageSchema = object({
|
|
20632
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20633
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20634
|
+
* whichever feed drew it. */
|
|
20635
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20636
|
+
nextCursor: string().nullable()
|
|
20381
20637
|
});
|
|
20382
20638
|
var RecentTracksPageSchema = object({
|
|
20383
20639
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20791,7 +21047,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20791
21047
|
classes: array(string()).optional(),
|
|
20792
21048
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20793
21049
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20794
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
21050
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20795
21051
|
kind: "mutation",
|
|
20796
21052
|
auth: "admin"
|
|
20797
21053
|
}), 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({
|
|
@@ -24120,10 +24376,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
24120
24376
|
}), boolean()), method(object({
|
|
24121
24377
|
deviceId: number().int().nonnegative(),
|
|
24122
24378
|
sessionId: string()
|
|
24123
|
-
}), object({
|
|
24124
|
-
|
|
24125
|
-
|
|
24126
|
-
|
|
24379
|
+
}), object({
|
|
24380
|
+
pendingRenegotiation: object({
|
|
24381
|
+
target: WebrtcStreamTargetSchema,
|
|
24382
|
+
epoch: number()
|
|
24383
|
+
}).nullable(),
|
|
24384
|
+
/**
|
|
24385
|
+
* Whether the session still EXISTS.
|
|
24386
|
+
*
|
|
24387
|
+
* A consumer that holds a resource for the life of a session needs to
|
|
24388
|
+
* be able to ask, because a session does not always end the way it
|
|
24389
|
+
* began. Measured on this hub 2026-09-13: an Echo that got stuck never
|
|
24390
|
+
* sent `SessionDisconnected`, so the Alexa exporter's
|
|
24391
|
+
* `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
|
|
24392
|
+
* H.264 transcode kept running for NOBODY for more than twenty
|
|
24393
|
+
* minutes. The WebRTC session had logged `WebRTC session closed`
|
|
24394
|
+
* minutes earlier — the broker knew; the holder had no way to ask.
|
|
24395
|
+
*
|
|
24396
|
+
* `false` for a session id the provider has never heard of, which is
|
|
24397
|
+
* the same answer as "it ended": either way nothing is holding it up.
|
|
24398
|
+
*/
|
|
24399
|
+
alive: boolean()
|
|
24400
|
+
}));
|
|
24127
24401
|
object({
|
|
24128
24402
|
/** All accessory children of the parent. */
|
|
24129
24403
|
childDeviceIds: array(number()).readonly(),
|
|
@@ -32561,7 +32835,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
32561
32835
|
* disarmed the channels it did not mention would make the Levels page and
|
|
32562
32836
|
* the Diagnostics page fight over the same value.
|
|
32563
32837
|
*/
|
|
32564
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
32838
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
32839
|
+
/**
|
|
32840
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
32841
|
+
* retention actually deleted.
|
|
32842
|
+
*
|
|
32843
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
32844
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
32845
|
+
* this system is configured through this one document, and a retention audit
|
|
32846
|
+
* configured somewhere else is a second place to look when the question is
|
|
32847
|
+
* "what happened to my data".
|
|
32848
|
+
*
|
|
32849
|
+
* That placement has a cost worth stating: this document ships in the
|
|
32850
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
32851
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
32852
|
+
*
|
|
32853
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
32854
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
32855
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
32856
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
32857
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
32858
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
32859
|
+
*/
|
|
32860
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
32565
32861
|
});
|
|
32566
32862
|
/**
|
|
32567
32863
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -32634,6 +32930,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
32634
32930
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
32635
32931
|
/** The channels ARMED right now, each with its deadline. */
|
|
32636
32932
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
32933
|
+
/**
|
|
32934
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
32935
|
+
*
|
|
32936
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
32937
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
32938
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
32939
|
+
*/
|
|
32940
|
+
opsLogRetentionDays: number().int().min(0),
|
|
32637
32941
|
persisted: boolean()
|
|
32638
32942
|
});
|
|
32639
32943
|
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(), {
|
|
@@ -34029,6 +34333,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
34029
34333
|
smoke: smokeCapability,
|
|
34030
34334
|
streamCatalog: streamCatalogCapability,
|
|
34031
34335
|
streamParams: streamParamsCapability,
|
|
34336
|
+
streamSignals: streamSignalsCapability,
|
|
34032
34337
|
switch: switchCapability,
|
|
34033
34338
|
tamper: tamperCapability,
|
|
34034
34339
|
temperatureSensor: temperatureSensorCapability,
|
|
@@ -38634,6 +38939,12 @@ Object.freeze({
|
|
|
38634
38939
|
addonId: null,
|
|
38635
38940
|
access: "view"
|
|
38636
38941
|
},
|
|
38942
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
38943
|
+
capName: "pipeline-analytics",
|
|
38944
|
+
capScope: "device",
|
|
38945
|
+
addonId: null,
|
|
38946
|
+
access: "view"
|
|
38947
|
+
},
|
|
38637
38948
|
"pipelineAnalytics.listRecentTracks": {
|
|
38638
38949
|
capName: "pipeline-analytics",
|
|
38639
38950
|
capScope: "device",
|
|
@@ -40596,6 +40907,12 @@ Object.freeze({
|
|
|
40596
40907
|
addonId: null,
|
|
40597
40908
|
access: "create"
|
|
40598
40909
|
},
|
|
40910
|
+
"streamBroker.reportStreamSignal": {
|
|
40911
|
+
capName: "stream-broker",
|
|
40912
|
+
capScope: "system",
|
|
40913
|
+
addonId: null,
|
|
40914
|
+
access: "create"
|
|
40915
|
+
},
|
|
40599
40916
|
"streamBroker.restartProfile": {
|
|
40600
40917
|
capName: "stream-broker",
|
|
40601
40918
|
capScope: "system",
|
|
@@ -40680,6 +40997,12 @@ Object.freeze({
|
|
|
40680
40997
|
addonId: null,
|
|
40681
40998
|
access: "create"
|
|
40682
40999
|
},
|
|
41000
|
+
"streamSignals.listSignals": {
|
|
41001
|
+
capName: "stream-signals",
|
|
41002
|
+
capScope: "device",
|
|
41003
|
+
addonId: null,
|
|
41004
|
+
access: "view"
|
|
41005
|
+
},
|
|
40683
41006
|
"switch.setState": {
|
|
40684
41007
|
capName: "switch",
|
|
40685
41008
|
capScope: "device",
|
|
@@ -42461,6 +42784,11 @@ Object.freeze({
|
|
|
42461
42784
|
form: "single",
|
|
42462
42785
|
optional: true
|
|
42463
42786
|
}],
|
|
42787
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
42788
|
+
name: "deviceIds",
|
|
42789
|
+
form: "array",
|
|
42790
|
+
optional: false
|
|
42791
|
+
}],
|
|
42464
42792
|
"pipelineAnalytics.listRecentTracks": [{
|
|
42465
42793
|
name: "deviceIds",
|
|
42466
42794
|
form: "array",
|
|
@@ -43047,6 +43375,11 @@ Object.freeze({
|
|
|
43047
43375
|
form: "single",
|
|
43048
43376
|
optional: false
|
|
43049
43377
|
}],
|
|
43378
|
+
"streamBroker.reportStreamSignal": [{
|
|
43379
|
+
name: "deviceId",
|
|
43380
|
+
form: "single",
|
|
43381
|
+
optional: false
|
|
43382
|
+
}],
|
|
43050
43383
|
"streamBroker.restartProfile": [{
|
|
43051
43384
|
name: "deviceId",
|
|
43052
43385
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-import-alexa",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.101",
|
|
4
4
|
"description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|