@camstack/addon-tailscale 1.2.100 → 1.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/client/tailscale.addon.js +1 -1
- package/dist/client/tailscale.addon.mjs +1 -1
- package/dist/{dist-cjpimBLk.mjs → dist-AkkjrQjN.mjs} +334 -16
- package/dist/{dist-DJhzrxHQ.js → dist-BcyUFopm.js} +334 -16
- package/dist/ingress/tailscale-ingress.addon.js +1 -1
- package/dist/ingress/tailscale-ingress.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
//#endregion
|
|
27
|
-
const require_dist = require("../dist-
|
|
27
|
+
const require_dist = require("../dist-BcyUFopm.js");
|
|
28
28
|
let node_child_process = require("node:child_process");
|
|
29
29
|
let node_util = require("node:util");
|
|
30
30
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-
|
|
1
|
+
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-AkkjrQjN.mjs";
|
|
2
2
|
import { execFile, spawn } from "node:child_process";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import * as fs from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-BVDXG4tB.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -615,6 +615,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
615
615
|
* pull-reconcile from the provider's `getStatus` on reconnect. */
|
|
616
616
|
EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
|
|
617
617
|
EventCategory["BackupCompleted"] = "backup.completed";
|
|
618
|
+
/**
|
|
619
|
+
* A whole backup RUN finished — every destination attempted, win or lose.
|
|
620
|
+
*
|
|
621
|
+
* `backup.completed` fires once per DESTINATION, which is the right grain for
|
|
622
|
+
* a progress UI and the wrong one for a notification: an operator with three
|
|
623
|
+
* destinations would be told three times. And a run where two of three
|
|
624
|
+
* destinations succeeded is not a clean success — a single "backup
|
|
625
|
+
* completed" that hid the failed one would be a lie, so the count of each is
|
|
626
|
+
* carried here and the message says both.
|
|
627
|
+
*
|
|
628
|
+
* Emitted by the backup orchestrator only after the destination loop, so a
|
|
629
|
+
* run that dies during the BUILD phase produces no completion at all.
|
|
630
|
+
*/
|
|
631
|
+
EventCategory["BackupRunCompleted"] = "backup.run-completed";
|
|
618
632
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
619
633
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
620
634
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
@@ -5345,7 +5359,7 @@ var ZodIssueCode = {
|
|
|
5345
5359
|
var ZodFirstPartyTypeKind;
|
|
5346
5360
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5347
5361
|
//#endregion
|
|
5348
|
-
//#region ../types/dist/sleep-
|
|
5362
|
+
//#region ../types/dist/sleep-DEuj7E3j.mjs
|
|
5349
5363
|
/**
|
|
5350
5364
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5351
5365
|
* window to float samples (D455).
|
|
@@ -7392,7 +7406,23 @@ var EncodeProfileSchema = object({
|
|
|
7392
7406
|
"zerolatency",
|
|
7393
7407
|
"film",
|
|
7394
7408
|
"animation"
|
|
7395
|
-
]).optional()
|
|
7409
|
+
]).optional(),
|
|
7410
|
+
/**
|
|
7411
|
+
* ONE slice per access unit.
|
|
7412
|
+
*
|
|
7413
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7414
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7415
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7416
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7417
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7418
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7419
|
+
*
|
|
7420
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7421
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7422
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7423
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7424
|
+
*/
|
|
7425
|
+
singleSlicePerFrame: boolean().optional()
|
|
7396
7426
|
}),
|
|
7397
7427
|
audio: union([literal("passthrough"), object({
|
|
7398
7428
|
codec: _enum([
|
|
@@ -7442,7 +7472,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7442
7472
|
audio: "passthrough"
|
|
7443
7473
|
};
|
|
7444
7474
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7445
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7475
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7446
7476
|
/**
|
|
7447
7477
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7448
7478
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -11491,6 +11521,58 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
11491
11521
|
auth: "admin"
|
|
11492
11522
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
11493
11523
|
DeviceType.Camera;
|
|
11524
|
+
/**
|
|
11525
|
+
* The signals a device can emit to WAKE its own stream.
|
|
11526
|
+
*
|
|
11527
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
11528
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
11529
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
11530
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
11531
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
11532
|
+
* itself, with no stream running.
|
|
11533
|
+
*
|
|
11534
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
11535
|
+
*
|
|
11536
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
11537
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
11538
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
11539
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
11540
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
11541
|
+
*
|
|
11542
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
11543
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
11544
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
11545
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
11546
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
11547
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
11548
|
+
* camera. Two questions, two authorities.
|
|
11549
|
+
*
|
|
11550
|
+
* ## Availability is not permission
|
|
11551
|
+
*
|
|
11552
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
11553
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
11554
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
11555
|
+
* provider declaring a signal is not a provider enabling it.
|
|
11556
|
+
*/
|
|
11557
|
+
/** One signal a device can emit. */
|
|
11558
|
+
var StreamSignalSchema = object({
|
|
11559
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
11560
|
+
code: string().min(1),
|
|
11561
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
11562
|
+
label: string().min(1),
|
|
11563
|
+
/**
|
|
11564
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
11565
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
11566
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
11567
|
+
* both of its own.
|
|
11568
|
+
*/
|
|
11569
|
+
recommended: boolean()
|
|
11570
|
+
});
|
|
11571
|
+
object({
|
|
11572
|
+
signals: array(StreamSignalSchema),
|
|
11573
|
+
lastFetchedAt: number()
|
|
11574
|
+
});
|
|
11575
|
+
Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
|
|
11494
11576
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
11495
11577
|
var StreamFormatSchema = _enum([
|
|
11496
11578
|
"webrtc",
|
|
@@ -11887,6 +11969,22 @@ var EgressTranscodeSchema = object({
|
|
|
11887
11969
|
camStreamId: string().nullable()
|
|
11888
11970
|
});
|
|
11889
11971
|
method(object({
|
|
11972
|
+
deviceId: number().int().nonnegative(),
|
|
11973
|
+
/** The provider's signal code. */
|
|
11974
|
+
code: string().min(1),
|
|
11975
|
+
/** Ms epoch. Absent ⇒ now. */
|
|
11976
|
+
at: number().optional()
|
|
11977
|
+
}), object({
|
|
11978
|
+
/** Whether the broker acted on it, and if not, why. */
|
|
11979
|
+
accepted: boolean(),
|
|
11980
|
+
reason: _enum([
|
|
11981
|
+
"woke",
|
|
11982
|
+
"hold-extended",
|
|
11983
|
+
"not-enabled",
|
|
11984
|
+
"no-consumer",
|
|
11985
|
+
"unknown-code"
|
|
11986
|
+
])
|
|
11987
|
+
}), { kind: "mutation" }), method(object({
|
|
11890
11988
|
deviceId: number().int().nonnegative(),
|
|
11891
11989
|
camStreamId: string().min(1),
|
|
11892
11990
|
kind: CamStreamKindSchema,
|
|
@@ -12141,6 +12239,16 @@ var PickStreamRequirementsSchema = object({
|
|
|
12141
12239
|
acceptCodecs: array(StreamCodecSchema).readonly().optional(),
|
|
12142
12240
|
/** Minimum vertical resolution. Streams shorter than this are dropped. */
|
|
12143
12241
|
minHeight: number().int().positive().optional(),
|
|
12242
|
+
/**
|
|
12243
|
+
* Maximum vertical resolution. Streams TALLER than this are dropped.
|
|
12244
|
+
*
|
|
12245
|
+
* A consumer can have a ceiling as real as its floor: Alexa documents
|
|
12246
|
+
* 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
|
|
12247
|
+
* Without this the ceiling had to be re-implemented by every caller — and
|
|
12248
|
+
* one caller implementing it privately is how a second scoring authority
|
|
12249
|
+
* gets born.
|
|
12250
|
+
*/
|
|
12251
|
+
maxHeight: number().int().positive().optional(),
|
|
12144
12252
|
/** Minimum horizontal resolution. */
|
|
12145
12253
|
minWidth: number().int().positive().optional(),
|
|
12146
12254
|
/**
|
|
@@ -12157,7 +12265,22 @@ var PickStreamRequirementsSchema = object({
|
|
|
12157
12265
|
* transcoded" guard: if the device is already serving the consumer's
|
|
12158
12266
|
* codec end-to-end, there's nothing to optimise.
|
|
12159
12267
|
*/
|
|
12160
|
-
requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
|
|
12268
|
+
requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
|
|
12269
|
+
/**
|
|
12270
|
+
* Whether a stream the consumer CANNOT decode may still be picked, on the
|
|
12271
|
+
* understanding that it will be transcoded.
|
|
12272
|
+
*
|
|
12273
|
+
* Default `false` — today's behaviour, and the right one for a bypass
|
|
12274
|
+
* question ("is there a stream I can forward untouched?"). Set `true` to
|
|
12275
|
+
* ask the larger question: "what is the best stream for me, transcoding if
|
|
12276
|
+
* I must?" A stream that satisfies `acceptCodecs` always outranks one that
|
|
12277
|
+
* does not, so a passthrough is never lost to a transcode; the answer says
|
|
12278
|
+
* which it is in {@link PickedCamStreamSchema.transcodes}.
|
|
12279
|
+
*
|
|
12280
|
+
* This is what lets one picker serve both the bypass and the full source
|
|
12281
|
+
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12282
|
+
*/
|
|
12283
|
+
allowTranscode: boolean().optional()
|
|
12161
12284
|
}).readonly();
|
|
12162
12285
|
var PickStreamPreferencesSchema = object({
|
|
12163
12286
|
/**
|
|
@@ -12171,12 +12294,32 @@ var PickStreamPreferencesSchema = object({
|
|
|
12171
12294
|
* picks the tallest stream; `'lowest'` picks the shortest (used by
|
|
12172
12295
|
* memory-constrained consumers / Apple Home guest sessions).
|
|
12173
12296
|
*/
|
|
12174
|
-
resolutionPreference: _enum(["highest", "lowest"]).optional()
|
|
12297
|
+
resolutionPreference: _enum(["highest", "lowest"]).optional(),
|
|
12298
|
+
/**
|
|
12299
|
+
* The height the consumer actually wants to DELIVER.
|
|
12300
|
+
*
|
|
12301
|
+
* Not a constraint — an ordering. With it set, the SMALLEST stream at or
|
|
12302
|
+
* above the target wins, and only if nothing reaches it does the tallest
|
|
12303
|
+
* take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
|
|
12304
|
+
* a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
|
|
12305
|
+
* express that: it says "as big as possible", which is a different wish.
|
|
12306
|
+
*
|
|
12307
|
+
* Ignored when absent, so every existing caller keeps its ordering.
|
|
12308
|
+
*/
|
|
12309
|
+
targetHeight: number().int().positive().optional()
|
|
12175
12310
|
}).readonly();
|
|
12176
12311
|
var PickedCamStreamSchema = object({
|
|
12177
12312
|
camStreamId: string(),
|
|
12178
12313
|
codec: string().optional(),
|
|
12179
12314
|
resolution: CamStreamResolutionSchema.optional(),
|
|
12315
|
+
/**
|
|
12316
|
+
* Whether serving this stream requires a decode + re-encode.
|
|
12317
|
+
*
|
|
12318
|
+
* `false` is a stream the consumer can take as it stands. Only ever `true`
|
|
12319
|
+
* when the caller asked for it with `allowTranscode`, so a caller that did
|
|
12320
|
+
* not ask cannot be handed a cost it never agreed to pay.
|
|
12321
|
+
*/
|
|
12322
|
+
transcodes: boolean(),
|
|
12180
12323
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12181
12324
|
reason: string()
|
|
12182
12325
|
});
|
|
@@ -16382,6 +16525,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16382
16525
|
"device-enabled",
|
|
16383
16526
|
"device-battery-low",
|
|
16384
16527
|
"device-battery-normal",
|
|
16528
|
+
"device-consumable-low",
|
|
16529
|
+
"device-consumable-normal",
|
|
16385
16530
|
"stream-online",
|
|
16386
16531
|
"stream-offline",
|
|
16387
16532
|
"node-online",
|
|
@@ -16400,6 +16545,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16400
16545
|
"addon-updated",
|
|
16401
16546
|
"server-updated",
|
|
16402
16547
|
"export-completed",
|
|
16548
|
+
"backup-completed",
|
|
16403
16549
|
"camera-online",
|
|
16404
16550
|
"camera-offline",
|
|
16405
16551
|
"camera-disabled",
|
|
@@ -19796,13 +19942,109 @@ var SummariesQueryInput = object({
|
|
|
19796
19942
|
deviceIds: array(number()).min(1),
|
|
19797
19943
|
since: number().optional(),
|
|
19798
19944
|
until: number().optional(),
|
|
19799
|
-
limit: number().int().min(1).max(200).default(50)
|
|
19945
|
+
limit: number().int().min(1).max(200).default(50),
|
|
19946
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
19947
|
+
* meaning of "dog" on every summary surface. */
|
|
19948
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19800
19949
|
});
|
|
19801
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19802
19950
|
var SummaryDetailSchema = object({
|
|
19803
19951
|
summary: SummarySchema,
|
|
19804
|
-
/**
|
|
19805
|
-
|
|
19952
|
+
/** Members in absorption order, oldest join first. */
|
|
19953
|
+
members: array(object({
|
|
19954
|
+
trackId: string(),
|
|
19955
|
+
/**
|
|
19956
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
19957
|
+
* and the track no longer exists to fill it.
|
|
19958
|
+
*
|
|
19959
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
19960
|
+
* class afterwards, and a group's composition is the history of who came
|
|
19961
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
19962
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
19963
|
+
* drift from the members it claims to describe.
|
|
19964
|
+
*/
|
|
19965
|
+
className: string().nullable(),
|
|
19966
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
19967
|
+
role: _enum([
|
|
19968
|
+
"primary",
|
|
19969
|
+
"sibling",
|
|
19970
|
+
"child"
|
|
19971
|
+
]).nullable(),
|
|
19972
|
+
joinedAt: number(),
|
|
19973
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
19974
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
19975
|
+
label: string().optional(),
|
|
19976
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
19977
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
19978
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
19979
|
+
subLabel: string().optional()
|
|
19980
|
+
})).readonly()
|
|
19981
|
+
});
|
|
19982
|
+
/**
|
|
19983
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
19984
|
+
*
|
|
19985
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
19986
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
19987
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
19988
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
19989
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
19990
|
+
* draw two hundred badges.
|
|
19991
|
+
*/
|
|
19992
|
+
var SummaryListItemSchema = object({
|
|
19993
|
+
summary: SummarySchema,
|
|
19994
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
19995
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
19996
|
+
classes: array(object({
|
|
19997
|
+
className: string().nullable(),
|
|
19998
|
+
count: number().int().positive()
|
|
19999
|
+
})).readonly()
|
|
20000
|
+
});
|
|
20001
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20002
|
+
/**
|
|
20003
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20004
|
+
*
|
|
20005
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20006
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20007
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20008
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20009
|
+
* "newest" means, on one screen.
|
|
20010
|
+
*/
|
|
20011
|
+
var RecentSummariesQueryInput = object({
|
|
20012
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20013
|
+
deviceIds: array(number()),
|
|
20014
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20015
|
+
since: number().optional(),
|
|
20016
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20017
|
+
until: number().optional(),
|
|
20018
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20019
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20020
|
+
cursor: string().optional(),
|
|
20021
|
+
/**
|
|
20022
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20023
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20024
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20025
|
+
* make the operator's one filter component produce two shapes.
|
|
20026
|
+
*
|
|
20027
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20028
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20029
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20030
|
+
* about its primary.
|
|
20031
|
+
*
|
|
20032
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20033
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20034
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20035
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20036
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20037
|
+
*
|
|
20038
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20039
|
+
*/
|
|
20040
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20041
|
+
});
|
|
20042
|
+
var RecentSummariesPageSchema = object({
|
|
20043
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20044
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20045
|
+
* whichever feed drew it. */
|
|
20046
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20047
|
+
nextCursor: string().nullable()
|
|
19806
20048
|
});
|
|
19807
20049
|
var RecentTracksPageSchema = object({
|
|
19808
20050
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20216,7 +20458,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20216
20458
|
classes: array(string()).optional(),
|
|
20217
20459
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20218
20460
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20219
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20461
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20220
20462
|
kind: "mutation",
|
|
20221
20463
|
auth: "admin"
|
|
20222
20464
|
}), 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({
|
|
@@ -23545,10 +23787,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
23545
23787
|
}), boolean()), method(object({
|
|
23546
23788
|
deviceId: number().int().nonnegative(),
|
|
23547
23789
|
sessionId: string()
|
|
23548
|
-
}), object({
|
|
23549
|
-
|
|
23550
|
-
|
|
23551
|
-
|
|
23790
|
+
}), object({
|
|
23791
|
+
pendingRenegotiation: object({
|
|
23792
|
+
target: WebrtcStreamTargetSchema,
|
|
23793
|
+
epoch: number()
|
|
23794
|
+
}).nullable(),
|
|
23795
|
+
/**
|
|
23796
|
+
* Whether the session still EXISTS.
|
|
23797
|
+
*
|
|
23798
|
+
* A consumer that holds a resource for the life of a session needs to
|
|
23799
|
+
* be able to ask, because a session does not always end the way it
|
|
23800
|
+
* began. Measured on this hub 2026-09-13: an Echo that got stuck never
|
|
23801
|
+
* sent `SessionDisconnected`, so the Alexa exporter's
|
|
23802
|
+
* `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
|
|
23803
|
+
* H.264 transcode kept running for NOBODY for more than twenty
|
|
23804
|
+
* minutes. The WebRTC session had logged `WebRTC session closed`
|
|
23805
|
+
* minutes earlier — the broker knew; the holder had no way to ask.
|
|
23806
|
+
*
|
|
23807
|
+
* `false` for a session id the provider has never heard of, which is
|
|
23808
|
+
* the same answer as "it ended": either way nothing is holding it up.
|
|
23809
|
+
*/
|
|
23810
|
+
alive: boolean()
|
|
23811
|
+
}));
|
|
23552
23812
|
object({
|
|
23553
23813
|
/** All accessory children of the parent. */
|
|
23554
23814
|
childDeviceIds: array(number()).readonly(),
|
|
@@ -29883,7 +30143,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29883
30143
|
* disarmed the channels it did not mention would make the Levels page and
|
|
29884
30144
|
* the Diagnostics page fight over the same value.
|
|
29885
30145
|
*/
|
|
29886
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30146
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30147
|
+
/**
|
|
30148
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30149
|
+
* retention actually deleted.
|
|
30150
|
+
*
|
|
30151
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30152
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30153
|
+
* this system is configured through this one document, and a retention audit
|
|
30154
|
+
* configured somewhere else is a second place to look when the question is
|
|
30155
|
+
* "what happened to my data".
|
|
30156
|
+
*
|
|
30157
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30158
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30159
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30160
|
+
*
|
|
30161
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30162
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30163
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30164
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30165
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30166
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30167
|
+
*/
|
|
30168
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
29887
30169
|
});
|
|
29888
30170
|
/**
|
|
29889
30171
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -29956,6 +30238,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
29956
30238
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
29957
30239
|
/** The channels ARMED right now, each with its deadline. */
|
|
29958
30240
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30241
|
+
/**
|
|
30242
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30243
|
+
*
|
|
30244
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30245
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30246
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30247
|
+
*/
|
|
30248
|
+
opsLogRetentionDays: number().int().min(0),
|
|
29959
30249
|
persisted: boolean()
|
|
29960
30250
|
});
|
|
29961
30251
|
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(), {
|
|
@@ -34115,6 +34405,12 @@ Object.freeze({
|
|
|
34115
34405
|
addonId: null,
|
|
34116
34406
|
access: "view"
|
|
34117
34407
|
},
|
|
34408
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34409
|
+
capName: "pipeline-analytics",
|
|
34410
|
+
capScope: "device",
|
|
34411
|
+
addonId: null,
|
|
34412
|
+
access: "view"
|
|
34413
|
+
},
|
|
34118
34414
|
"pipelineAnalytics.listRecentTracks": {
|
|
34119
34415
|
capName: "pipeline-analytics",
|
|
34120
34416
|
capScope: "device",
|
|
@@ -36077,6 +36373,12 @@ Object.freeze({
|
|
|
36077
36373
|
addonId: null,
|
|
36078
36374
|
access: "create"
|
|
36079
36375
|
},
|
|
36376
|
+
"streamBroker.reportStreamSignal": {
|
|
36377
|
+
capName: "stream-broker",
|
|
36378
|
+
capScope: "system",
|
|
36379
|
+
addonId: null,
|
|
36380
|
+
access: "create"
|
|
36381
|
+
},
|
|
36080
36382
|
"streamBroker.restartProfile": {
|
|
36081
36383
|
capName: "stream-broker",
|
|
36082
36384
|
capScope: "system",
|
|
@@ -36161,6 +36463,12 @@ Object.freeze({
|
|
|
36161
36463
|
addonId: null,
|
|
36162
36464
|
access: "create"
|
|
36163
36465
|
},
|
|
36466
|
+
"streamSignals.listSignals": {
|
|
36467
|
+
capName: "stream-signals",
|
|
36468
|
+
capScope: "device",
|
|
36469
|
+
addonId: null,
|
|
36470
|
+
access: "view"
|
|
36471
|
+
},
|
|
36164
36472
|
"switch.setState": {
|
|
36165
36473
|
capName: "switch",
|
|
36166
36474
|
capScope: "device",
|
|
@@ -37942,6 +38250,11 @@ Object.freeze({
|
|
|
37942
38250
|
form: "single",
|
|
37943
38251
|
optional: true
|
|
37944
38252
|
}],
|
|
38253
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38254
|
+
name: "deviceIds",
|
|
38255
|
+
form: "array",
|
|
38256
|
+
optional: false
|
|
38257
|
+
}],
|
|
37945
38258
|
"pipelineAnalytics.listRecentTracks": [{
|
|
37946
38259
|
name: "deviceIds",
|
|
37947
38260
|
form: "array",
|
|
@@ -38528,6 +38841,11 @@ Object.freeze({
|
|
|
38528
38841
|
form: "single",
|
|
38529
38842
|
optional: false
|
|
38530
38843
|
}],
|
|
38844
|
+
"streamBroker.reportStreamSignal": [{
|
|
38845
|
+
name: "deviceId",
|
|
38846
|
+
form: "single",
|
|
38847
|
+
optional: false
|
|
38848
|
+
}],
|
|
38531
38849
|
"streamBroker.restartProfile": [{
|
|
38532
38850
|
name: "deviceId",
|
|
38533
38851
|
form: "single",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-BVDXG4tB.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -615,6 +615,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
615
615
|
* pull-reconcile from the provider's `getStatus` on reconnect. */
|
|
616
616
|
EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
|
|
617
617
|
EventCategory["BackupCompleted"] = "backup.completed";
|
|
618
|
+
/**
|
|
619
|
+
* A whole backup RUN finished — every destination attempted, win or lose.
|
|
620
|
+
*
|
|
621
|
+
* `backup.completed` fires once per DESTINATION, which is the right grain for
|
|
622
|
+
* a progress UI and the wrong one for a notification: an operator with three
|
|
623
|
+
* destinations would be told three times. And a run where two of three
|
|
624
|
+
* destinations succeeded is not a clean success — a single "backup
|
|
625
|
+
* completed" that hid the failed one would be a lie, so the count of each is
|
|
626
|
+
* carried here and the message says both.
|
|
627
|
+
*
|
|
628
|
+
* Emitted by the backup orchestrator only after the destination loop, so a
|
|
629
|
+
* run that dies during the BUILD phase produces no completion at all.
|
|
630
|
+
*/
|
|
631
|
+
EventCategory["BackupRunCompleted"] = "backup.run-completed";
|
|
618
632
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
619
633
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
620
634
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
@@ -5345,7 +5359,7 @@ var ZodIssueCode = {
|
|
|
5345
5359
|
var ZodFirstPartyTypeKind;
|
|
5346
5360
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5347
5361
|
//#endregion
|
|
5348
|
-
//#region ../types/dist/sleep-
|
|
5362
|
+
//#region ../types/dist/sleep-DEuj7E3j.mjs
|
|
5349
5363
|
/**
|
|
5350
5364
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5351
5365
|
* window to float samples (D455).
|
|
@@ -7392,7 +7406,23 @@ var EncodeProfileSchema = object({
|
|
|
7392
7406
|
"zerolatency",
|
|
7393
7407
|
"film",
|
|
7394
7408
|
"animation"
|
|
7395
|
-
]).optional()
|
|
7409
|
+
]).optional(),
|
|
7410
|
+
/**
|
|
7411
|
+
* ONE slice per access unit.
|
|
7412
|
+
*
|
|
7413
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7414
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7415
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7416
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7417
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7418
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7419
|
+
*
|
|
7420
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7421
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7422
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7423
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7424
|
+
*/
|
|
7425
|
+
singleSlicePerFrame: boolean().optional()
|
|
7396
7426
|
}),
|
|
7397
7427
|
audio: union([literal("passthrough"), object({
|
|
7398
7428
|
codec: _enum([
|
|
@@ -7442,7 +7472,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7442
7472
|
audio: "passthrough"
|
|
7443
7473
|
};
|
|
7444
7474
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7445
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7475
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7446
7476
|
/**
|
|
7447
7477
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7448
7478
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -11491,6 +11521,58 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
11491
11521
|
auth: "admin"
|
|
11492
11522
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
11493
11523
|
DeviceType.Camera;
|
|
11524
|
+
/**
|
|
11525
|
+
* The signals a device can emit to WAKE its own stream.
|
|
11526
|
+
*
|
|
11527
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
11528
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
11529
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
11530
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
11531
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
11532
|
+
* itself, with no stream running.
|
|
11533
|
+
*
|
|
11534
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
11535
|
+
*
|
|
11536
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
11537
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
11538
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
11539
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
11540
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
11541
|
+
*
|
|
11542
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
11543
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
11544
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
11545
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
11546
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
11547
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
11548
|
+
* camera. Two questions, two authorities.
|
|
11549
|
+
*
|
|
11550
|
+
* ## Availability is not permission
|
|
11551
|
+
*
|
|
11552
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
11553
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
11554
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
11555
|
+
* provider declaring a signal is not a provider enabling it.
|
|
11556
|
+
*/
|
|
11557
|
+
/** One signal a device can emit. */
|
|
11558
|
+
var StreamSignalSchema = object({
|
|
11559
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
11560
|
+
code: string().min(1),
|
|
11561
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
11562
|
+
label: string().min(1),
|
|
11563
|
+
/**
|
|
11564
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
11565
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
11566
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
11567
|
+
* both of its own.
|
|
11568
|
+
*/
|
|
11569
|
+
recommended: boolean()
|
|
11570
|
+
});
|
|
11571
|
+
object({
|
|
11572
|
+
signals: array(StreamSignalSchema),
|
|
11573
|
+
lastFetchedAt: number()
|
|
11574
|
+
});
|
|
11575
|
+
Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
|
|
11494
11576
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
11495
11577
|
var StreamFormatSchema = _enum([
|
|
11496
11578
|
"webrtc",
|
|
@@ -11887,6 +11969,22 @@ var EgressTranscodeSchema = object({
|
|
|
11887
11969
|
camStreamId: string().nullable()
|
|
11888
11970
|
});
|
|
11889
11971
|
method(object({
|
|
11972
|
+
deviceId: number().int().nonnegative(),
|
|
11973
|
+
/** The provider's signal code. */
|
|
11974
|
+
code: string().min(1),
|
|
11975
|
+
/** Ms epoch. Absent ⇒ now. */
|
|
11976
|
+
at: number().optional()
|
|
11977
|
+
}), object({
|
|
11978
|
+
/** Whether the broker acted on it, and if not, why. */
|
|
11979
|
+
accepted: boolean(),
|
|
11980
|
+
reason: _enum([
|
|
11981
|
+
"woke",
|
|
11982
|
+
"hold-extended",
|
|
11983
|
+
"not-enabled",
|
|
11984
|
+
"no-consumer",
|
|
11985
|
+
"unknown-code"
|
|
11986
|
+
])
|
|
11987
|
+
}), { kind: "mutation" }), method(object({
|
|
11890
11988
|
deviceId: number().int().nonnegative(),
|
|
11891
11989
|
camStreamId: string().min(1),
|
|
11892
11990
|
kind: CamStreamKindSchema,
|
|
@@ -12141,6 +12239,16 @@ var PickStreamRequirementsSchema = object({
|
|
|
12141
12239
|
acceptCodecs: array(StreamCodecSchema).readonly().optional(),
|
|
12142
12240
|
/** Minimum vertical resolution. Streams shorter than this are dropped. */
|
|
12143
12241
|
minHeight: number().int().positive().optional(),
|
|
12242
|
+
/**
|
|
12243
|
+
* Maximum vertical resolution. Streams TALLER than this are dropped.
|
|
12244
|
+
*
|
|
12245
|
+
* A consumer can have a ceiling as real as its floor: Alexa documents
|
|
12246
|
+
* 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
|
|
12247
|
+
* Without this the ceiling had to be re-implemented by every caller — and
|
|
12248
|
+
* one caller implementing it privately is how a second scoring authority
|
|
12249
|
+
* gets born.
|
|
12250
|
+
*/
|
|
12251
|
+
maxHeight: number().int().positive().optional(),
|
|
12144
12252
|
/** Minimum horizontal resolution. */
|
|
12145
12253
|
minWidth: number().int().positive().optional(),
|
|
12146
12254
|
/**
|
|
@@ -12157,7 +12265,22 @@ var PickStreamRequirementsSchema = object({
|
|
|
12157
12265
|
* transcoded" guard: if the device is already serving the consumer's
|
|
12158
12266
|
* codec end-to-end, there's nothing to optimise.
|
|
12159
12267
|
*/
|
|
12160
|
-
requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
|
|
12268
|
+
requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
|
|
12269
|
+
/**
|
|
12270
|
+
* Whether a stream the consumer CANNOT decode may still be picked, on the
|
|
12271
|
+
* understanding that it will be transcoded.
|
|
12272
|
+
*
|
|
12273
|
+
* Default `false` — today's behaviour, and the right one for a bypass
|
|
12274
|
+
* question ("is there a stream I can forward untouched?"). Set `true` to
|
|
12275
|
+
* ask the larger question: "what is the best stream for me, transcoding if
|
|
12276
|
+
* I must?" A stream that satisfies `acceptCodecs` always outranks one that
|
|
12277
|
+
* does not, so a passthrough is never lost to a transcode; the answer says
|
|
12278
|
+
* which it is in {@link PickedCamStreamSchema.transcodes}.
|
|
12279
|
+
*
|
|
12280
|
+
* This is what lets one picker serve both the bypass and the full source
|
|
12281
|
+
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12282
|
+
*/
|
|
12283
|
+
allowTranscode: boolean().optional()
|
|
12161
12284
|
}).readonly();
|
|
12162
12285
|
var PickStreamPreferencesSchema = object({
|
|
12163
12286
|
/**
|
|
@@ -12171,12 +12294,32 @@ var PickStreamPreferencesSchema = object({
|
|
|
12171
12294
|
* picks the tallest stream; `'lowest'` picks the shortest (used by
|
|
12172
12295
|
* memory-constrained consumers / Apple Home guest sessions).
|
|
12173
12296
|
*/
|
|
12174
|
-
resolutionPreference: _enum(["highest", "lowest"]).optional()
|
|
12297
|
+
resolutionPreference: _enum(["highest", "lowest"]).optional(),
|
|
12298
|
+
/**
|
|
12299
|
+
* The height the consumer actually wants to DELIVER.
|
|
12300
|
+
*
|
|
12301
|
+
* Not a constraint — an ordering. With it set, the SMALLEST stream at or
|
|
12302
|
+
* above the target wins, and only if nothing reaches it does the tallest
|
|
12303
|
+
* take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
|
|
12304
|
+
* a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
|
|
12305
|
+
* express that: it says "as big as possible", which is a different wish.
|
|
12306
|
+
*
|
|
12307
|
+
* Ignored when absent, so every existing caller keeps its ordering.
|
|
12308
|
+
*/
|
|
12309
|
+
targetHeight: number().int().positive().optional()
|
|
12175
12310
|
}).readonly();
|
|
12176
12311
|
var PickedCamStreamSchema = object({
|
|
12177
12312
|
camStreamId: string(),
|
|
12178
12313
|
codec: string().optional(),
|
|
12179
12314
|
resolution: CamStreamResolutionSchema.optional(),
|
|
12315
|
+
/**
|
|
12316
|
+
* Whether serving this stream requires a decode + re-encode.
|
|
12317
|
+
*
|
|
12318
|
+
* `false` is a stream the consumer can take as it stands. Only ever `true`
|
|
12319
|
+
* when the caller asked for it with `allowTranscode`, so a caller that did
|
|
12320
|
+
* not ask cannot be handed a cost it never agreed to pay.
|
|
12321
|
+
*/
|
|
12322
|
+
transcodes: boolean(),
|
|
12180
12323
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12181
12324
|
reason: string()
|
|
12182
12325
|
});
|
|
@@ -16382,6 +16525,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16382
16525
|
"device-enabled",
|
|
16383
16526
|
"device-battery-low",
|
|
16384
16527
|
"device-battery-normal",
|
|
16528
|
+
"device-consumable-low",
|
|
16529
|
+
"device-consumable-normal",
|
|
16385
16530
|
"stream-online",
|
|
16386
16531
|
"stream-offline",
|
|
16387
16532
|
"node-online",
|
|
@@ -16400,6 +16545,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16400
16545
|
"addon-updated",
|
|
16401
16546
|
"server-updated",
|
|
16402
16547
|
"export-completed",
|
|
16548
|
+
"backup-completed",
|
|
16403
16549
|
"camera-online",
|
|
16404
16550
|
"camera-offline",
|
|
16405
16551
|
"camera-disabled",
|
|
@@ -19796,13 +19942,109 @@ var SummariesQueryInput = object({
|
|
|
19796
19942
|
deviceIds: array(number()).min(1),
|
|
19797
19943
|
since: number().optional(),
|
|
19798
19944
|
until: number().optional(),
|
|
19799
|
-
limit: number().int().min(1).max(200).default(50)
|
|
19945
|
+
limit: number().int().min(1).max(200).default(50),
|
|
19946
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
19947
|
+
* meaning of "dog" on every summary surface. */
|
|
19948
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19800
19949
|
});
|
|
19801
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19802
19950
|
var SummaryDetailSchema = object({
|
|
19803
19951
|
summary: SummarySchema,
|
|
19804
|
-
/**
|
|
19805
|
-
|
|
19952
|
+
/** Members in absorption order, oldest join first. */
|
|
19953
|
+
members: array(object({
|
|
19954
|
+
trackId: string(),
|
|
19955
|
+
/**
|
|
19956
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
19957
|
+
* and the track no longer exists to fill it.
|
|
19958
|
+
*
|
|
19959
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
19960
|
+
* class afterwards, and a group's composition is the history of who came
|
|
19961
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
19962
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
19963
|
+
* drift from the members it claims to describe.
|
|
19964
|
+
*/
|
|
19965
|
+
className: string().nullable(),
|
|
19966
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
19967
|
+
role: _enum([
|
|
19968
|
+
"primary",
|
|
19969
|
+
"sibling",
|
|
19970
|
+
"child"
|
|
19971
|
+
]).nullable(),
|
|
19972
|
+
joinedAt: number(),
|
|
19973
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
19974
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
19975
|
+
label: string().optional(),
|
|
19976
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
19977
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
19978
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
19979
|
+
subLabel: string().optional()
|
|
19980
|
+
})).readonly()
|
|
19981
|
+
});
|
|
19982
|
+
/**
|
|
19983
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
19984
|
+
*
|
|
19985
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
19986
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
19987
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
19988
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
19989
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
19990
|
+
* draw two hundred badges.
|
|
19991
|
+
*/
|
|
19992
|
+
var SummaryListItemSchema = object({
|
|
19993
|
+
summary: SummarySchema,
|
|
19994
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
19995
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
19996
|
+
classes: array(object({
|
|
19997
|
+
className: string().nullable(),
|
|
19998
|
+
count: number().int().positive()
|
|
19999
|
+
})).readonly()
|
|
20000
|
+
});
|
|
20001
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20002
|
+
/**
|
|
20003
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20004
|
+
*
|
|
20005
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20006
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20007
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20008
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20009
|
+
* "newest" means, on one screen.
|
|
20010
|
+
*/
|
|
20011
|
+
var RecentSummariesQueryInput = object({
|
|
20012
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20013
|
+
deviceIds: array(number()),
|
|
20014
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20015
|
+
since: number().optional(),
|
|
20016
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20017
|
+
until: number().optional(),
|
|
20018
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20019
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20020
|
+
cursor: string().optional(),
|
|
20021
|
+
/**
|
|
20022
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20023
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20024
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20025
|
+
* make the operator's one filter component produce two shapes.
|
|
20026
|
+
*
|
|
20027
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20028
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20029
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20030
|
+
* about its primary.
|
|
20031
|
+
*
|
|
20032
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20033
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20034
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20035
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20036
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20037
|
+
*
|
|
20038
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20039
|
+
*/
|
|
20040
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20041
|
+
});
|
|
20042
|
+
var RecentSummariesPageSchema = object({
|
|
20043
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20044
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20045
|
+
* whichever feed drew it. */
|
|
20046
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20047
|
+
nextCursor: string().nullable()
|
|
19806
20048
|
});
|
|
19807
20049
|
var RecentTracksPageSchema = object({
|
|
19808
20050
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20216,7 +20458,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20216
20458
|
classes: array(string()).optional(),
|
|
20217
20459
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20218
20460
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20219
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20461
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20220
20462
|
kind: "mutation",
|
|
20221
20463
|
auth: "admin"
|
|
20222
20464
|
}), 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({
|
|
@@ -23545,10 +23787,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
23545
23787
|
}), boolean()), method(object({
|
|
23546
23788
|
deviceId: number().int().nonnegative(),
|
|
23547
23789
|
sessionId: string()
|
|
23548
|
-
}), object({
|
|
23549
|
-
|
|
23550
|
-
|
|
23551
|
-
|
|
23790
|
+
}), object({
|
|
23791
|
+
pendingRenegotiation: object({
|
|
23792
|
+
target: WebrtcStreamTargetSchema,
|
|
23793
|
+
epoch: number()
|
|
23794
|
+
}).nullable(),
|
|
23795
|
+
/**
|
|
23796
|
+
* Whether the session still EXISTS.
|
|
23797
|
+
*
|
|
23798
|
+
* A consumer that holds a resource for the life of a session needs to
|
|
23799
|
+
* be able to ask, because a session does not always end the way it
|
|
23800
|
+
* began. Measured on this hub 2026-09-13: an Echo that got stuck never
|
|
23801
|
+
* sent `SessionDisconnected`, so the Alexa exporter's
|
|
23802
|
+
* `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
|
|
23803
|
+
* H.264 transcode kept running for NOBODY for more than twenty
|
|
23804
|
+
* minutes. The WebRTC session had logged `WebRTC session closed`
|
|
23805
|
+
* minutes earlier — the broker knew; the holder had no way to ask.
|
|
23806
|
+
*
|
|
23807
|
+
* `false` for a session id the provider has never heard of, which is
|
|
23808
|
+
* the same answer as "it ended": either way nothing is holding it up.
|
|
23809
|
+
*/
|
|
23810
|
+
alive: boolean()
|
|
23811
|
+
}));
|
|
23552
23812
|
object({
|
|
23553
23813
|
/** All accessory children of the parent. */
|
|
23554
23814
|
childDeviceIds: array(number()).readonly(),
|
|
@@ -29883,7 +30143,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29883
30143
|
* disarmed the channels it did not mention would make the Levels page and
|
|
29884
30144
|
* the Diagnostics page fight over the same value.
|
|
29885
30145
|
*/
|
|
29886
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30146
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30147
|
+
/**
|
|
30148
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30149
|
+
* retention actually deleted.
|
|
30150
|
+
*
|
|
30151
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30152
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30153
|
+
* this system is configured through this one document, and a retention audit
|
|
30154
|
+
* configured somewhere else is a second place to look when the question is
|
|
30155
|
+
* "what happened to my data".
|
|
30156
|
+
*
|
|
30157
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30158
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30159
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30160
|
+
*
|
|
30161
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30162
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30163
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30164
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30165
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30166
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30167
|
+
*/
|
|
30168
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
29887
30169
|
});
|
|
29888
30170
|
/**
|
|
29889
30171
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -29956,6 +30238,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
29956
30238
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
29957
30239
|
/** The channels ARMED right now, each with its deadline. */
|
|
29958
30240
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30241
|
+
/**
|
|
30242
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30243
|
+
*
|
|
30244
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30245
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30246
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30247
|
+
*/
|
|
30248
|
+
opsLogRetentionDays: number().int().min(0),
|
|
29959
30249
|
persisted: boolean()
|
|
29960
30250
|
});
|
|
29961
30251
|
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(), {
|
|
@@ -34115,6 +34405,12 @@ Object.freeze({
|
|
|
34115
34405
|
addonId: null,
|
|
34116
34406
|
access: "view"
|
|
34117
34407
|
},
|
|
34408
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34409
|
+
capName: "pipeline-analytics",
|
|
34410
|
+
capScope: "device",
|
|
34411
|
+
addonId: null,
|
|
34412
|
+
access: "view"
|
|
34413
|
+
},
|
|
34118
34414
|
"pipelineAnalytics.listRecentTracks": {
|
|
34119
34415
|
capName: "pipeline-analytics",
|
|
34120
34416
|
capScope: "device",
|
|
@@ -36077,6 +36373,12 @@ Object.freeze({
|
|
|
36077
36373
|
addonId: null,
|
|
36078
36374
|
access: "create"
|
|
36079
36375
|
},
|
|
36376
|
+
"streamBroker.reportStreamSignal": {
|
|
36377
|
+
capName: "stream-broker",
|
|
36378
|
+
capScope: "system",
|
|
36379
|
+
addonId: null,
|
|
36380
|
+
access: "create"
|
|
36381
|
+
},
|
|
36080
36382
|
"streamBroker.restartProfile": {
|
|
36081
36383
|
capName: "stream-broker",
|
|
36082
36384
|
capScope: "system",
|
|
@@ -36161,6 +36463,12 @@ Object.freeze({
|
|
|
36161
36463
|
addonId: null,
|
|
36162
36464
|
access: "create"
|
|
36163
36465
|
},
|
|
36466
|
+
"streamSignals.listSignals": {
|
|
36467
|
+
capName: "stream-signals",
|
|
36468
|
+
capScope: "device",
|
|
36469
|
+
addonId: null,
|
|
36470
|
+
access: "view"
|
|
36471
|
+
},
|
|
36164
36472
|
"switch.setState": {
|
|
36165
36473
|
capName: "switch",
|
|
36166
36474
|
capScope: "device",
|
|
@@ -37942,6 +38250,11 @@ Object.freeze({
|
|
|
37942
38250
|
form: "single",
|
|
37943
38251
|
optional: true
|
|
37944
38252
|
}],
|
|
38253
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38254
|
+
name: "deviceIds",
|
|
38255
|
+
form: "array",
|
|
38256
|
+
optional: false
|
|
38257
|
+
}],
|
|
37945
38258
|
"pipelineAnalytics.listRecentTracks": [{
|
|
37946
38259
|
name: "deviceIds",
|
|
37947
38260
|
form: "array",
|
|
@@ -38528,6 +38841,11 @@ Object.freeze({
|
|
|
38528
38841
|
form: "single",
|
|
38529
38842
|
optional: false
|
|
38530
38843
|
}],
|
|
38844
|
+
"streamBroker.reportStreamSignal": [{
|
|
38845
|
+
name: "deviceId",
|
|
38846
|
+
form: "single",
|
|
38847
|
+
optional: false
|
|
38848
|
+
}],
|
|
38531
38849
|
"streamBroker.restartProfile": [{
|
|
38532
38850
|
name: "deviceId",
|
|
38533
38851
|
form: "single",
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-BcyUFopm.js");
|
|
6
6
|
let node_crypto = require("node:crypto");
|
|
7
7
|
let node_child_process = require("node:child_process");
|
|
8
8
|
//#region src/ingress/tailscale-cli.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-
|
|
1
|
+
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-AkkjrQjN.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { execFile } from "node:child_process";
|
|
4
4
|
import { promisify } from "node:util";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-tailscale",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.102",
|
|
4
4
|
"description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|