@camstack/addon-provider-rademacher 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
|
@@ -984,7 +984,7 @@ var Rademacher = class {
|
|
|
984
984
|
}
|
|
985
985
|
};
|
|
986
986
|
//#endregion
|
|
987
|
-
//#region ../types/dist/event-category-
|
|
987
|
+
//#region ../types/dist/event-category-BVDXG4tB.mjs
|
|
988
988
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
989
989
|
EventCategory["SystemBoot"] = "system.boot";
|
|
990
990
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -1601,6 +1601,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
1601
1601
|
* pull-reconcile from the provider's `getStatus` on reconnect. */
|
|
1602
1602
|
EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
|
|
1603
1603
|
EventCategory["BackupCompleted"] = "backup.completed";
|
|
1604
|
+
/**
|
|
1605
|
+
* A whole backup RUN finished — every destination attempted, win or lose.
|
|
1606
|
+
*
|
|
1607
|
+
* `backup.completed` fires once per DESTINATION, which is the right grain for
|
|
1608
|
+
* a progress UI and the wrong one for a notification: an operator with three
|
|
1609
|
+
* destinations would be told three times. And a run where two of three
|
|
1610
|
+
* destinations succeeded is not a clean success — a single "backup
|
|
1611
|
+
* completed" that hid the failed one would be a lie, so the count of each is
|
|
1612
|
+
* carried here and the message says both.
|
|
1613
|
+
*
|
|
1614
|
+
* Emitted by the backup orchestrator only after the destination loop, so a
|
|
1615
|
+
* run that dies during the BUILD phase produces no completion at all.
|
|
1616
|
+
*/
|
|
1617
|
+
EventCategory["BackupRunCompleted"] = "backup.run-completed";
|
|
1604
1618
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
1605
1619
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
1606
1620
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
@@ -6331,7 +6345,7 @@ var ZodIssueCode = {
|
|
|
6331
6345
|
var ZodFirstPartyTypeKind;
|
|
6332
6346
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6333
6347
|
//#endregion
|
|
6334
|
-
//#region ../types/dist/sleep-
|
|
6348
|
+
//#region ../types/dist/sleep-DEuj7E3j.mjs
|
|
6335
6349
|
/**
|
|
6336
6350
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6337
6351
|
* window to float samples (D455).
|
|
@@ -8360,7 +8374,23 @@ var EncodeProfileSchema = object({
|
|
|
8360
8374
|
"zerolatency",
|
|
8361
8375
|
"film",
|
|
8362
8376
|
"animation"
|
|
8363
|
-
]).optional()
|
|
8377
|
+
]).optional(),
|
|
8378
|
+
/**
|
|
8379
|
+
* ONE slice per access unit.
|
|
8380
|
+
*
|
|
8381
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
8382
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
8383
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
8384
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
8385
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
8386
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
8387
|
+
*
|
|
8388
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
8389
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
8390
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
8391
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
8392
|
+
*/
|
|
8393
|
+
singleSlicePerFrame: boolean().optional()
|
|
8364
8394
|
}),
|
|
8365
8395
|
audio: union([literal("passthrough"), object({
|
|
8366
8396
|
codec: _enum([
|
|
@@ -8410,7 +8440,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
8410
8440
|
audio: "passthrough"
|
|
8411
8441
|
};
|
|
8412
8442
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
8413
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
8443
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
8414
8444
|
/**
|
|
8415
8445
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
8416
8446
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -12459,6 +12489,72 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
12459
12489
|
auth: "admin"
|
|
12460
12490
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
12461
12491
|
DeviceType.Camera;
|
|
12492
|
+
/**
|
|
12493
|
+
* The signals a device can emit to WAKE its own stream.
|
|
12494
|
+
*
|
|
12495
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
12496
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
12497
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
12498
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
12499
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
12500
|
+
* itself, with no stream running.
|
|
12501
|
+
*
|
|
12502
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
12503
|
+
*
|
|
12504
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
12505
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
12506
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
12507
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
12508
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
12509
|
+
*
|
|
12510
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
12511
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
12512
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
12513
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
12514
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
12515
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
12516
|
+
* camera. Two questions, two authorities.
|
|
12517
|
+
*
|
|
12518
|
+
* ## Availability is not permission
|
|
12519
|
+
*
|
|
12520
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
12521
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
12522
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
12523
|
+
* provider declaring a signal is not a provider enabling it.
|
|
12524
|
+
*/
|
|
12525
|
+
/** One signal a device can emit. */
|
|
12526
|
+
var StreamSignalSchema = object({
|
|
12527
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
12528
|
+
code: string().min(1),
|
|
12529
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
12530
|
+
label: string().min(1),
|
|
12531
|
+
/**
|
|
12532
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
12533
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
12534
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
12535
|
+
* both of its own.
|
|
12536
|
+
*/
|
|
12537
|
+
recommended: boolean()
|
|
12538
|
+
});
|
|
12539
|
+
var StreamSignalsStatusSchema = object({
|
|
12540
|
+
signals: array(StreamSignalSchema),
|
|
12541
|
+
lastFetchedAt: number()
|
|
12542
|
+
});
|
|
12543
|
+
var streamSignalsCapability = {
|
|
12544
|
+
name: "stream-signals",
|
|
12545
|
+
scope: "device",
|
|
12546
|
+
deviceNative: true,
|
|
12547
|
+
mode: "singleton",
|
|
12548
|
+
deviceTypes: Object.values(DeviceType),
|
|
12549
|
+
runtimeState: StreamSignalsStatusSchema,
|
|
12550
|
+
methods: {
|
|
12551
|
+
/**
|
|
12552
|
+
* What this device can emit. Empty is a valid and common answer — most
|
|
12553
|
+
* cameras have nothing to offer here, and an empty list is what makes the
|
|
12554
|
+
* broker's picker show nothing rather than a false choice.
|
|
12555
|
+
*/
|
|
12556
|
+
listSignals: method(_void(), array(StreamSignalSchema).readonly()) }
|
|
12557
|
+
};
|
|
12462
12558
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
12463
12559
|
var StreamFormatSchema = _enum([
|
|
12464
12560
|
"webrtc",
|
|
@@ -12855,6 +12951,22 @@ var EgressTranscodeSchema = object({
|
|
|
12855
12951
|
camStreamId: string().nullable()
|
|
12856
12952
|
});
|
|
12857
12953
|
method(object({
|
|
12954
|
+
deviceId: number().int().nonnegative(),
|
|
12955
|
+
/** The provider's signal code. */
|
|
12956
|
+
code: string().min(1),
|
|
12957
|
+
/** Ms epoch. Absent ⇒ now. */
|
|
12958
|
+
at: number().optional()
|
|
12959
|
+
}), object({
|
|
12960
|
+
/** Whether the broker acted on it, and if not, why. */
|
|
12961
|
+
accepted: boolean(),
|
|
12962
|
+
reason: _enum([
|
|
12963
|
+
"woke",
|
|
12964
|
+
"hold-extended",
|
|
12965
|
+
"not-enabled",
|
|
12966
|
+
"no-consumer",
|
|
12967
|
+
"unknown-code"
|
|
12968
|
+
])
|
|
12969
|
+
}), { kind: "mutation" }), method(object({
|
|
12858
12970
|
deviceId: number().int().nonnegative(),
|
|
12859
12971
|
camStreamId: string().min(1),
|
|
12860
12972
|
kind: CamStreamKindSchema,
|
|
@@ -13109,6 +13221,16 @@ var PickStreamRequirementsSchema = object({
|
|
|
13109
13221
|
acceptCodecs: array(StreamCodecSchema).readonly().optional(),
|
|
13110
13222
|
/** Minimum vertical resolution. Streams shorter than this are dropped. */
|
|
13111
13223
|
minHeight: number().int().positive().optional(),
|
|
13224
|
+
/**
|
|
13225
|
+
* Maximum vertical resolution. Streams TALLER than this are dropped.
|
|
13226
|
+
*
|
|
13227
|
+
* A consumer can have a ceiling as real as its floor: Alexa documents
|
|
13228
|
+
* 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
|
|
13229
|
+
* Without this the ceiling had to be re-implemented by every caller — and
|
|
13230
|
+
* one caller implementing it privately is how a second scoring authority
|
|
13231
|
+
* gets born.
|
|
13232
|
+
*/
|
|
13233
|
+
maxHeight: number().int().positive().optional(),
|
|
13112
13234
|
/** Minimum horizontal resolution. */
|
|
13113
13235
|
minWidth: number().int().positive().optional(),
|
|
13114
13236
|
/**
|
|
@@ -13125,7 +13247,22 @@ var PickStreamRequirementsSchema = object({
|
|
|
13125
13247
|
* transcoded" guard: if the device is already serving the consumer's
|
|
13126
13248
|
* codec end-to-end, there's nothing to optimise.
|
|
13127
13249
|
*/
|
|
13128
|
-
requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
|
|
13250
|
+
requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
|
|
13251
|
+
/**
|
|
13252
|
+
* Whether a stream the consumer CANNOT decode may still be picked, on the
|
|
13253
|
+
* understanding that it will be transcoded.
|
|
13254
|
+
*
|
|
13255
|
+
* Default `false` — today's behaviour, and the right one for a bypass
|
|
13256
|
+
* question ("is there a stream I can forward untouched?"). Set `true` to
|
|
13257
|
+
* ask the larger question: "what is the best stream for me, transcoding if
|
|
13258
|
+
* I must?" A stream that satisfies `acceptCodecs` always outranks one that
|
|
13259
|
+
* does not, so a passthrough is never lost to a transcode; the answer says
|
|
13260
|
+
* which it is in {@link PickedCamStreamSchema.transcodes}.
|
|
13261
|
+
*
|
|
13262
|
+
* This is what lets one picker serve both the bypass and the full source
|
|
13263
|
+
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
13264
|
+
*/
|
|
13265
|
+
allowTranscode: boolean().optional()
|
|
13129
13266
|
}).readonly();
|
|
13130
13267
|
var PickStreamPreferencesSchema = object({
|
|
13131
13268
|
/**
|
|
@@ -13139,12 +13276,32 @@ var PickStreamPreferencesSchema = object({
|
|
|
13139
13276
|
* picks the tallest stream; `'lowest'` picks the shortest (used by
|
|
13140
13277
|
* memory-constrained consumers / Apple Home guest sessions).
|
|
13141
13278
|
*/
|
|
13142
|
-
resolutionPreference: _enum(["highest", "lowest"]).optional()
|
|
13279
|
+
resolutionPreference: _enum(["highest", "lowest"]).optional(),
|
|
13280
|
+
/**
|
|
13281
|
+
* The height the consumer actually wants to DELIVER.
|
|
13282
|
+
*
|
|
13283
|
+
* Not a constraint — an ordering. With it set, the SMALLEST stream at or
|
|
13284
|
+
* above the target wins, and only if nothing reaches it does the tallest
|
|
13285
|
+
* take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
|
|
13286
|
+
* a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
|
|
13287
|
+
* express that: it says "as big as possible", which is a different wish.
|
|
13288
|
+
*
|
|
13289
|
+
* Ignored when absent, so every existing caller keeps its ordering.
|
|
13290
|
+
*/
|
|
13291
|
+
targetHeight: number().int().positive().optional()
|
|
13143
13292
|
}).readonly();
|
|
13144
13293
|
var PickedCamStreamSchema = object({
|
|
13145
13294
|
camStreamId: string(),
|
|
13146
13295
|
codec: string().optional(),
|
|
13147
13296
|
resolution: CamStreamResolutionSchema.optional(),
|
|
13297
|
+
/**
|
|
13298
|
+
* Whether serving this stream requires a decode + re-encode.
|
|
13299
|
+
*
|
|
13300
|
+
* `false` is a stream the consumer can take as it stands. Only ever `true`
|
|
13301
|
+
* when the caller asked for it with `allowTranscode`, so a caller that did
|
|
13302
|
+
* not ask cannot be handed a cost it never agreed to pay.
|
|
13303
|
+
*/
|
|
13304
|
+
transcodes: boolean(),
|
|
13148
13305
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
13149
13306
|
reason: string()
|
|
13150
13307
|
});
|
|
@@ -17661,6 +17818,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
17661
17818
|
"device-enabled",
|
|
17662
17819
|
"device-battery-low",
|
|
17663
17820
|
"device-battery-normal",
|
|
17821
|
+
"device-consumable-low",
|
|
17822
|
+
"device-consumable-normal",
|
|
17664
17823
|
"stream-online",
|
|
17665
17824
|
"stream-offline",
|
|
17666
17825
|
"node-online",
|
|
@@ -17679,6 +17838,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
17679
17838
|
"addon-updated",
|
|
17680
17839
|
"server-updated",
|
|
17681
17840
|
"export-completed",
|
|
17841
|
+
"backup-completed",
|
|
17682
17842
|
"camera-online",
|
|
17683
17843
|
"camera-offline",
|
|
17684
17844
|
"camera-disabled",
|
|
@@ -21115,13 +21275,109 @@ var SummariesQueryInput = object({
|
|
|
21115
21275
|
deviceIds: array(number()).min(1),
|
|
21116
21276
|
since: number().optional(),
|
|
21117
21277
|
until: number().optional(),
|
|
21118
|
-
limit: number().int().min(1).max(200).default(50)
|
|
21278
|
+
limit: number().int().min(1).max(200).default(50),
|
|
21279
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
21280
|
+
* meaning of "dog" on every summary surface. */
|
|
21281
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
21119
21282
|
});
|
|
21120
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
21121
21283
|
var SummaryDetailSchema = object({
|
|
21122
21284
|
summary: SummarySchema,
|
|
21123
|
-
/**
|
|
21124
|
-
|
|
21285
|
+
/** Members in absorption order, oldest join first. */
|
|
21286
|
+
members: array(object({
|
|
21287
|
+
trackId: string(),
|
|
21288
|
+
/**
|
|
21289
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
21290
|
+
* and the track no longer exists to fill it.
|
|
21291
|
+
*
|
|
21292
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
21293
|
+
* class afterwards, and a group's composition is the history of who came
|
|
21294
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
21295
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
21296
|
+
* drift from the members it claims to describe.
|
|
21297
|
+
*/
|
|
21298
|
+
className: string().nullable(),
|
|
21299
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
21300
|
+
role: _enum([
|
|
21301
|
+
"primary",
|
|
21302
|
+
"sibling",
|
|
21303
|
+
"child"
|
|
21304
|
+
]).nullable(),
|
|
21305
|
+
joinedAt: number(),
|
|
21306
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
21307
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
21308
|
+
label: string().optional(),
|
|
21309
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
21310
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
21311
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
21312
|
+
subLabel: string().optional()
|
|
21313
|
+
})).readonly()
|
|
21314
|
+
});
|
|
21315
|
+
/**
|
|
21316
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
21317
|
+
*
|
|
21318
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
21319
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
21320
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
21321
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
21322
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
21323
|
+
* draw two hundred badges.
|
|
21324
|
+
*/
|
|
21325
|
+
var SummaryListItemSchema = object({
|
|
21326
|
+
summary: SummarySchema,
|
|
21327
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
21328
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
21329
|
+
classes: array(object({
|
|
21330
|
+
className: string().nullable(),
|
|
21331
|
+
count: number().int().positive()
|
|
21332
|
+
})).readonly()
|
|
21333
|
+
});
|
|
21334
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
21335
|
+
/**
|
|
21336
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
21337
|
+
*
|
|
21338
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
21339
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
21340
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
21341
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
21342
|
+
* "newest" means, on one screen.
|
|
21343
|
+
*/
|
|
21344
|
+
var RecentSummariesQueryInput = object({
|
|
21345
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
21346
|
+
deviceIds: array(number()),
|
|
21347
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
21348
|
+
since: number().optional(),
|
|
21349
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
21350
|
+
until: number().optional(),
|
|
21351
|
+
limit: number().int().min(1).max(500).default(100),
|
|
21352
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
21353
|
+
cursor: string().optional(),
|
|
21354
|
+
/**
|
|
21355
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
21356
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
21357
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
21358
|
+
* make the operator's one filter component produce two shapes.
|
|
21359
|
+
*
|
|
21360
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
21361
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
21362
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
21363
|
+
* about its primary.
|
|
21364
|
+
*
|
|
21365
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
21366
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
21367
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
21368
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
21369
|
+
* that read only the class would answer "animal" and never "dog".
|
|
21370
|
+
*
|
|
21371
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
21372
|
+
*/
|
|
21373
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
21374
|
+
});
|
|
21375
|
+
var RecentSummariesPageSchema = object({
|
|
21376
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
21377
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
21378
|
+
* whichever feed drew it. */
|
|
21379
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
21380
|
+
nextCursor: string().nullable()
|
|
21125
21381
|
});
|
|
21126
21382
|
var RecentTracksPageSchema = object({
|
|
21127
21383
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -21535,7 +21791,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21535
21791
|
classes: array(string()).optional(),
|
|
21536
21792
|
/** See {@link ExcludeSourcesDoc}. */
|
|
21537
21793
|
excludeSources: array(TrackSourceSchema).optional()
|
|
21538
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
21794
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
21539
21795
|
kind: "mutation",
|
|
21540
21796
|
auth: "admin"
|
|
21541
21797
|
}), 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({
|
|
@@ -24864,10 +25120,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
24864
25120
|
}), boolean()), method(object({
|
|
24865
25121
|
deviceId: number().int().nonnegative(),
|
|
24866
25122
|
sessionId: string()
|
|
24867
|
-
}), object({
|
|
24868
|
-
|
|
24869
|
-
|
|
24870
|
-
|
|
25123
|
+
}), object({
|
|
25124
|
+
pendingRenegotiation: object({
|
|
25125
|
+
target: WebrtcStreamTargetSchema,
|
|
25126
|
+
epoch: number()
|
|
25127
|
+
}).nullable(),
|
|
25128
|
+
/**
|
|
25129
|
+
* Whether the session still EXISTS.
|
|
25130
|
+
*
|
|
25131
|
+
* A consumer that holds a resource for the life of a session needs to
|
|
25132
|
+
* be able to ask, because a session does not always end the way it
|
|
25133
|
+
* began. Measured on this hub 2026-09-13: an Echo that got stuck never
|
|
25134
|
+
* sent `SessionDisconnected`, so the Alexa exporter's
|
|
25135
|
+
* `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
|
|
25136
|
+
* H.264 transcode kept running for NOBODY for more than twenty
|
|
25137
|
+
* minutes. The WebRTC session had logged `WebRTC session closed`
|
|
25138
|
+
* minutes earlier — the broker knew; the holder had no way to ask.
|
|
25139
|
+
*
|
|
25140
|
+
* `false` for a session id the provider has never heard of, which is
|
|
25141
|
+
* the same answer as "it ended": either way nothing is holding it up.
|
|
25142
|
+
*/
|
|
25143
|
+
alive: boolean()
|
|
25144
|
+
}));
|
|
24871
25145
|
object({
|
|
24872
25146
|
/** All accessory children of the parent. */
|
|
24873
25147
|
childDeviceIds: array(number()).readonly(),
|
|
@@ -33288,7 +33562,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
33288
33562
|
* disarmed the channels it did not mention would make the Levels page and
|
|
33289
33563
|
* the Diagnostics page fight over the same value.
|
|
33290
33564
|
*/
|
|
33291
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
33565
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
33566
|
+
/**
|
|
33567
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
33568
|
+
* retention actually deleted.
|
|
33569
|
+
*
|
|
33570
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
33571
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
33572
|
+
* this system is configured through this one document, and a retention audit
|
|
33573
|
+
* configured somewhere else is a second place to look when the question is
|
|
33574
|
+
* "what happened to my data".
|
|
33575
|
+
*
|
|
33576
|
+
* That placement has a cost worth stating: this document ships in the
|
|
33577
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
33578
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
33579
|
+
*
|
|
33580
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
33581
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
33582
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
33583
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
33584
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
33585
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
33586
|
+
*/
|
|
33587
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
33292
33588
|
});
|
|
33293
33589
|
/**
|
|
33294
33590
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -33361,6 +33657,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
33361
33657
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
33362
33658
|
/** The channels ARMED right now, each with its deadline. */
|
|
33363
33659
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
33660
|
+
/**
|
|
33661
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
33662
|
+
*
|
|
33663
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
33664
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
33665
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
33666
|
+
*/
|
|
33667
|
+
opsLogRetentionDays: number().int().min(0),
|
|
33364
33668
|
persisted: boolean()
|
|
33365
33669
|
});
|
|
33366
33670
|
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(), {
|
|
@@ -34756,6 +35060,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
34756
35060
|
smoke: smokeCapability,
|
|
34757
35061
|
streamCatalog: streamCatalogCapability,
|
|
34758
35062
|
streamParams: streamParamsCapability,
|
|
35063
|
+
streamSignals: streamSignalsCapability,
|
|
34759
35064
|
switch: switchCapability,
|
|
34760
35065
|
tamper: tamperCapability,
|
|
34761
35066
|
temperatureSensor: temperatureSensorCapability,
|
|
@@ -39361,6 +39666,12 @@ Object.freeze({
|
|
|
39361
39666
|
addonId: null,
|
|
39362
39667
|
access: "view"
|
|
39363
39668
|
},
|
|
39669
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
39670
|
+
capName: "pipeline-analytics",
|
|
39671
|
+
capScope: "device",
|
|
39672
|
+
addonId: null,
|
|
39673
|
+
access: "view"
|
|
39674
|
+
},
|
|
39364
39675
|
"pipelineAnalytics.listRecentTracks": {
|
|
39365
39676
|
capName: "pipeline-analytics",
|
|
39366
39677
|
capScope: "device",
|
|
@@ -41323,6 +41634,12 @@ Object.freeze({
|
|
|
41323
41634
|
addonId: null,
|
|
41324
41635
|
access: "create"
|
|
41325
41636
|
},
|
|
41637
|
+
"streamBroker.reportStreamSignal": {
|
|
41638
|
+
capName: "stream-broker",
|
|
41639
|
+
capScope: "system",
|
|
41640
|
+
addonId: null,
|
|
41641
|
+
access: "create"
|
|
41642
|
+
},
|
|
41326
41643
|
"streamBroker.restartProfile": {
|
|
41327
41644
|
capName: "stream-broker",
|
|
41328
41645
|
capScope: "system",
|
|
@@ -41407,6 +41724,12 @@ Object.freeze({
|
|
|
41407
41724
|
addonId: null,
|
|
41408
41725
|
access: "create"
|
|
41409
41726
|
},
|
|
41727
|
+
"streamSignals.listSignals": {
|
|
41728
|
+
capName: "stream-signals",
|
|
41729
|
+
capScope: "device",
|
|
41730
|
+
addonId: null,
|
|
41731
|
+
access: "view"
|
|
41732
|
+
},
|
|
41410
41733
|
"switch.setState": {
|
|
41411
41734
|
capName: "switch",
|
|
41412
41735
|
capScope: "device",
|
|
@@ -43188,6 +43511,11 @@ Object.freeze({
|
|
|
43188
43511
|
form: "single",
|
|
43189
43512
|
optional: true
|
|
43190
43513
|
}],
|
|
43514
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
43515
|
+
name: "deviceIds",
|
|
43516
|
+
form: "array",
|
|
43517
|
+
optional: false
|
|
43518
|
+
}],
|
|
43191
43519
|
"pipelineAnalytics.listRecentTracks": [{
|
|
43192
43520
|
name: "deviceIds",
|
|
43193
43521
|
form: "array",
|
|
@@ -43774,6 +44102,11 @@ Object.freeze({
|
|
|
43774
44102
|
form: "single",
|
|
43775
44103
|
optional: false
|
|
43776
44104
|
}],
|
|
44105
|
+
"streamBroker.reportStreamSignal": [{
|
|
44106
|
+
name: "deviceId",
|
|
44107
|
+
form: "single",
|
|
44108
|
+
optional: false
|
|
44109
|
+
}],
|
|
43777
44110
|
"streamBroker.restartProfile": [{
|
|
43778
44111
|
name: "deviceId",
|
|
43779
44112
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -983,7 +983,7 @@ var Rademacher = class {
|
|
|
983
983
|
}
|
|
984
984
|
};
|
|
985
985
|
//#endregion
|
|
986
|
-
//#region ../types/dist/event-category-
|
|
986
|
+
//#region ../types/dist/event-category-BVDXG4tB.mjs
|
|
987
987
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
988
988
|
EventCategory["SystemBoot"] = "system.boot";
|
|
989
989
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -1600,6 +1600,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
1600
1600
|
* pull-reconcile from the provider's `getStatus` on reconnect. */
|
|
1601
1601
|
EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
|
|
1602
1602
|
EventCategory["BackupCompleted"] = "backup.completed";
|
|
1603
|
+
/**
|
|
1604
|
+
* A whole backup RUN finished — every destination attempted, win or lose.
|
|
1605
|
+
*
|
|
1606
|
+
* `backup.completed` fires once per DESTINATION, which is the right grain for
|
|
1607
|
+
* a progress UI and the wrong one for a notification: an operator with three
|
|
1608
|
+
* destinations would be told three times. And a run where two of three
|
|
1609
|
+
* destinations succeeded is not a clean success — a single "backup
|
|
1610
|
+
* completed" that hid the failed one would be a lie, so the count of each is
|
|
1611
|
+
* carried here and the message says both.
|
|
1612
|
+
*
|
|
1613
|
+
* Emitted by the backup orchestrator only after the destination loop, so a
|
|
1614
|
+
* run that dies during the BUILD phase produces no completion at all.
|
|
1615
|
+
*/
|
|
1616
|
+
EventCategory["BackupRunCompleted"] = "backup.run-completed";
|
|
1603
1617
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
1604
1618
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
1605
1619
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
@@ -6330,7 +6344,7 @@ var ZodIssueCode = {
|
|
|
6330
6344
|
var ZodFirstPartyTypeKind;
|
|
6331
6345
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6332
6346
|
//#endregion
|
|
6333
|
-
//#region ../types/dist/sleep-
|
|
6347
|
+
//#region ../types/dist/sleep-DEuj7E3j.mjs
|
|
6334
6348
|
/**
|
|
6335
6349
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6336
6350
|
* window to float samples (D455).
|
|
@@ -8359,7 +8373,23 @@ var EncodeProfileSchema = object({
|
|
|
8359
8373
|
"zerolatency",
|
|
8360
8374
|
"film",
|
|
8361
8375
|
"animation"
|
|
8362
|
-
]).optional()
|
|
8376
|
+
]).optional(),
|
|
8377
|
+
/**
|
|
8378
|
+
* ONE slice per access unit.
|
|
8379
|
+
*
|
|
8380
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
8381
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
8382
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
8383
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
8384
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
8385
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
8386
|
+
*
|
|
8387
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
8388
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
8389
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
8390
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
8391
|
+
*/
|
|
8392
|
+
singleSlicePerFrame: boolean().optional()
|
|
8363
8393
|
}),
|
|
8364
8394
|
audio: union([literal("passthrough"), object({
|
|
8365
8395
|
codec: _enum([
|
|
@@ -8409,7 +8439,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
8409
8439
|
audio: "passthrough"
|
|
8410
8440
|
};
|
|
8411
8441
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
8412
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
8442
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
8413
8443
|
/**
|
|
8414
8444
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
8415
8445
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -12458,6 +12488,72 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
12458
12488
|
auth: "admin"
|
|
12459
12489
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
12460
12490
|
DeviceType.Camera;
|
|
12491
|
+
/**
|
|
12492
|
+
* The signals a device can emit to WAKE its own stream.
|
|
12493
|
+
*
|
|
12494
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
12495
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
12496
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
12497
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
12498
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
12499
|
+
* itself, with no stream running.
|
|
12500
|
+
*
|
|
12501
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
12502
|
+
*
|
|
12503
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
12504
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
12505
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
12506
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
12507
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
12508
|
+
*
|
|
12509
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
12510
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
12511
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
12512
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
12513
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
12514
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
12515
|
+
* camera. Two questions, two authorities.
|
|
12516
|
+
*
|
|
12517
|
+
* ## Availability is not permission
|
|
12518
|
+
*
|
|
12519
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
12520
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
12521
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
12522
|
+
* provider declaring a signal is not a provider enabling it.
|
|
12523
|
+
*/
|
|
12524
|
+
/** One signal a device can emit. */
|
|
12525
|
+
var StreamSignalSchema = object({
|
|
12526
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
12527
|
+
code: string().min(1),
|
|
12528
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
12529
|
+
label: string().min(1),
|
|
12530
|
+
/**
|
|
12531
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
12532
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
12533
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
12534
|
+
* both of its own.
|
|
12535
|
+
*/
|
|
12536
|
+
recommended: boolean()
|
|
12537
|
+
});
|
|
12538
|
+
var StreamSignalsStatusSchema = object({
|
|
12539
|
+
signals: array(StreamSignalSchema),
|
|
12540
|
+
lastFetchedAt: number()
|
|
12541
|
+
});
|
|
12542
|
+
var streamSignalsCapability = {
|
|
12543
|
+
name: "stream-signals",
|
|
12544
|
+
scope: "device",
|
|
12545
|
+
deviceNative: true,
|
|
12546
|
+
mode: "singleton",
|
|
12547
|
+
deviceTypes: Object.values(DeviceType),
|
|
12548
|
+
runtimeState: StreamSignalsStatusSchema,
|
|
12549
|
+
methods: {
|
|
12550
|
+
/**
|
|
12551
|
+
* What this device can emit. Empty is a valid and common answer — most
|
|
12552
|
+
* cameras have nothing to offer here, and an empty list is what makes the
|
|
12553
|
+
* broker's picker show nothing rather than a false choice.
|
|
12554
|
+
*/
|
|
12555
|
+
listSignals: method(_void(), array(StreamSignalSchema).readonly()) }
|
|
12556
|
+
};
|
|
12461
12557
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
12462
12558
|
var StreamFormatSchema = _enum([
|
|
12463
12559
|
"webrtc",
|
|
@@ -12854,6 +12950,22 @@ var EgressTranscodeSchema = object({
|
|
|
12854
12950
|
camStreamId: string().nullable()
|
|
12855
12951
|
});
|
|
12856
12952
|
method(object({
|
|
12953
|
+
deviceId: number().int().nonnegative(),
|
|
12954
|
+
/** The provider's signal code. */
|
|
12955
|
+
code: string().min(1),
|
|
12956
|
+
/** Ms epoch. Absent ⇒ now. */
|
|
12957
|
+
at: number().optional()
|
|
12958
|
+
}), object({
|
|
12959
|
+
/** Whether the broker acted on it, and if not, why. */
|
|
12960
|
+
accepted: boolean(),
|
|
12961
|
+
reason: _enum([
|
|
12962
|
+
"woke",
|
|
12963
|
+
"hold-extended",
|
|
12964
|
+
"not-enabled",
|
|
12965
|
+
"no-consumer",
|
|
12966
|
+
"unknown-code"
|
|
12967
|
+
])
|
|
12968
|
+
}), { kind: "mutation" }), method(object({
|
|
12857
12969
|
deviceId: number().int().nonnegative(),
|
|
12858
12970
|
camStreamId: string().min(1),
|
|
12859
12971
|
kind: CamStreamKindSchema,
|
|
@@ -13108,6 +13220,16 @@ var PickStreamRequirementsSchema = object({
|
|
|
13108
13220
|
acceptCodecs: array(StreamCodecSchema).readonly().optional(),
|
|
13109
13221
|
/** Minimum vertical resolution. Streams shorter than this are dropped. */
|
|
13110
13222
|
minHeight: number().int().positive().optional(),
|
|
13223
|
+
/**
|
|
13224
|
+
* Maximum vertical resolution. Streams TALLER than this are dropped.
|
|
13225
|
+
*
|
|
13226
|
+
* A consumer can have a ceiling as real as its floor: Alexa documents
|
|
13227
|
+
* 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
|
|
13228
|
+
* Without this the ceiling had to be re-implemented by every caller — and
|
|
13229
|
+
* one caller implementing it privately is how a second scoring authority
|
|
13230
|
+
* gets born.
|
|
13231
|
+
*/
|
|
13232
|
+
maxHeight: number().int().positive().optional(),
|
|
13111
13233
|
/** Minimum horizontal resolution. */
|
|
13112
13234
|
minWidth: number().int().positive().optional(),
|
|
13113
13235
|
/**
|
|
@@ -13124,7 +13246,22 @@ var PickStreamRequirementsSchema = object({
|
|
|
13124
13246
|
* transcoded" guard: if the device is already serving the consumer's
|
|
13125
13247
|
* codec end-to-end, there's nothing to optimise.
|
|
13126
13248
|
*/
|
|
13127
|
-
requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
|
|
13249
|
+
requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
|
|
13250
|
+
/**
|
|
13251
|
+
* Whether a stream the consumer CANNOT decode may still be picked, on the
|
|
13252
|
+
* understanding that it will be transcoded.
|
|
13253
|
+
*
|
|
13254
|
+
* Default `false` — today's behaviour, and the right one for a bypass
|
|
13255
|
+
* question ("is there a stream I can forward untouched?"). Set `true` to
|
|
13256
|
+
* ask the larger question: "what is the best stream for me, transcoding if
|
|
13257
|
+
* I must?" A stream that satisfies `acceptCodecs` always outranks one that
|
|
13258
|
+
* does not, so a passthrough is never lost to a transcode; the answer says
|
|
13259
|
+
* which it is in {@link PickedCamStreamSchema.transcodes}.
|
|
13260
|
+
*
|
|
13261
|
+
* This is what lets one picker serve both the bypass and the full source
|
|
13262
|
+
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
13263
|
+
*/
|
|
13264
|
+
allowTranscode: boolean().optional()
|
|
13128
13265
|
}).readonly();
|
|
13129
13266
|
var PickStreamPreferencesSchema = object({
|
|
13130
13267
|
/**
|
|
@@ -13138,12 +13275,32 @@ var PickStreamPreferencesSchema = object({
|
|
|
13138
13275
|
* picks the tallest stream; `'lowest'` picks the shortest (used by
|
|
13139
13276
|
* memory-constrained consumers / Apple Home guest sessions).
|
|
13140
13277
|
*/
|
|
13141
|
-
resolutionPreference: _enum(["highest", "lowest"]).optional()
|
|
13278
|
+
resolutionPreference: _enum(["highest", "lowest"]).optional(),
|
|
13279
|
+
/**
|
|
13280
|
+
* The height the consumer actually wants to DELIVER.
|
|
13281
|
+
*
|
|
13282
|
+
* Not a constraint — an ordering. With it set, the SMALLEST stream at or
|
|
13283
|
+
* above the target wins, and only if nothing reaches it does the tallest
|
|
13284
|
+
* take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
|
|
13285
|
+
* a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
|
|
13286
|
+
* express that: it says "as big as possible", which is a different wish.
|
|
13287
|
+
*
|
|
13288
|
+
* Ignored when absent, so every existing caller keeps its ordering.
|
|
13289
|
+
*/
|
|
13290
|
+
targetHeight: number().int().positive().optional()
|
|
13142
13291
|
}).readonly();
|
|
13143
13292
|
var PickedCamStreamSchema = object({
|
|
13144
13293
|
camStreamId: string(),
|
|
13145
13294
|
codec: string().optional(),
|
|
13146
13295
|
resolution: CamStreamResolutionSchema.optional(),
|
|
13296
|
+
/**
|
|
13297
|
+
* Whether serving this stream requires a decode + re-encode.
|
|
13298
|
+
*
|
|
13299
|
+
* `false` is a stream the consumer can take as it stands. Only ever `true`
|
|
13300
|
+
* when the caller asked for it with `allowTranscode`, so a caller that did
|
|
13301
|
+
* not ask cannot be handed a cost it never agreed to pay.
|
|
13302
|
+
*/
|
|
13303
|
+
transcodes: boolean(),
|
|
13147
13304
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
13148
13305
|
reason: string()
|
|
13149
13306
|
});
|
|
@@ -17660,6 +17817,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
17660
17817
|
"device-enabled",
|
|
17661
17818
|
"device-battery-low",
|
|
17662
17819
|
"device-battery-normal",
|
|
17820
|
+
"device-consumable-low",
|
|
17821
|
+
"device-consumable-normal",
|
|
17663
17822
|
"stream-online",
|
|
17664
17823
|
"stream-offline",
|
|
17665
17824
|
"node-online",
|
|
@@ -17678,6 +17837,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
17678
17837
|
"addon-updated",
|
|
17679
17838
|
"server-updated",
|
|
17680
17839
|
"export-completed",
|
|
17840
|
+
"backup-completed",
|
|
17681
17841
|
"camera-online",
|
|
17682
17842
|
"camera-offline",
|
|
17683
17843
|
"camera-disabled",
|
|
@@ -21114,13 +21274,109 @@ var SummariesQueryInput = object({
|
|
|
21114
21274
|
deviceIds: array(number()).min(1),
|
|
21115
21275
|
since: number().optional(),
|
|
21116
21276
|
until: number().optional(),
|
|
21117
|
-
limit: number().int().min(1).max(200).default(50)
|
|
21277
|
+
limit: number().int().min(1).max(200).default(50),
|
|
21278
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
21279
|
+
* meaning of "dog" on every summary surface. */
|
|
21280
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
21118
21281
|
});
|
|
21119
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
21120
21282
|
var SummaryDetailSchema = object({
|
|
21121
21283
|
summary: SummarySchema,
|
|
21122
|
-
/**
|
|
21123
|
-
|
|
21284
|
+
/** Members in absorption order, oldest join first. */
|
|
21285
|
+
members: array(object({
|
|
21286
|
+
trackId: string(),
|
|
21287
|
+
/**
|
|
21288
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
21289
|
+
* and the track no longer exists to fill it.
|
|
21290
|
+
*
|
|
21291
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
21292
|
+
* class afterwards, and a group's composition is the history of who came
|
|
21293
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
21294
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
21295
|
+
* drift from the members it claims to describe.
|
|
21296
|
+
*/
|
|
21297
|
+
className: string().nullable(),
|
|
21298
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
21299
|
+
role: _enum([
|
|
21300
|
+
"primary",
|
|
21301
|
+
"sibling",
|
|
21302
|
+
"child"
|
|
21303
|
+
]).nullable(),
|
|
21304
|
+
joinedAt: number(),
|
|
21305
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
21306
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
21307
|
+
label: string().optional(),
|
|
21308
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
21309
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
21310
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
21311
|
+
subLabel: string().optional()
|
|
21312
|
+
})).readonly()
|
|
21313
|
+
});
|
|
21314
|
+
/**
|
|
21315
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
21316
|
+
*
|
|
21317
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
21318
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
21319
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
21320
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
21321
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
21322
|
+
* draw two hundred badges.
|
|
21323
|
+
*/
|
|
21324
|
+
var SummaryListItemSchema = object({
|
|
21325
|
+
summary: SummarySchema,
|
|
21326
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
21327
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
21328
|
+
classes: array(object({
|
|
21329
|
+
className: string().nullable(),
|
|
21330
|
+
count: number().int().positive()
|
|
21331
|
+
})).readonly()
|
|
21332
|
+
});
|
|
21333
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
21334
|
+
/**
|
|
21335
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
21336
|
+
*
|
|
21337
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
21338
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
21339
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
21340
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
21341
|
+
* "newest" means, on one screen.
|
|
21342
|
+
*/
|
|
21343
|
+
var RecentSummariesQueryInput = object({
|
|
21344
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
21345
|
+
deviceIds: array(number()),
|
|
21346
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
21347
|
+
since: number().optional(),
|
|
21348
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
21349
|
+
until: number().optional(),
|
|
21350
|
+
limit: number().int().min(1).max(500).default(100),
|
|
21351
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
21352
|
+
cursor: string().optional(),
|
|
21353
|
+
/**
|
|
21354
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
21355
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
21356
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
21357
|
+
* make the operator's one filter component produce two shapes.
|
|
21358
|
+
*
|
|
21359
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
21360
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
21361
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
21362
|
+
* about its primary.
|
|
21363
|
+
*
|
|
21364
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
21365
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
21366
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
21367
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
21368
|
+
* that read only the class would answer "animal" and never "dog".
|
|
21369
|
+
*
|
|
21370
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
21371
|
+
*/
|
|
21372
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
21373
|
+
});
|
|
21374
|
+
var RecentSummariesPageSchema = object({
|
|
21375
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
21376
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
21377
|
+
* whichever feed drew it. */
|
|
21378
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
21379
|
+
nextCursor: string().nullable()
|
|
21124
21380
|
});
|
|
21125
21381
|
var RecentTracksPageSchema = object({
|
|
21126
21382
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -21534,7 +21790,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21534
21790
|
classes: array(string()).optional(),
|
|
21535
21791
|
/** See {@link ExcludeSourcesDoc}. */
|
|
21536
21792
|
excludeSources: array(TrackSourceSchema).optional()
|
|
21537
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
21793
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
21538
21794
|
kind: "mutation",
|
|
21539
21795
|
auth: "admin"
|
|
21540
21796
|
}), 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({
|
|
@@ -24863,10 +25119,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
24863
25119
|
}), boolean()), method(object({
|
|
24864
25120
|
deviceId: number().int().nonnegative(),
|
|
24865
25121
|
sessionId: string()
|
|
24866
|
-
}), object({
|
|
24867
|
-
|
|
24868
|
-
|
|
24869
|
-
|
|
25122
|
+
}), object({
|
|
25123
|
+
pendingRenegotiation: object({
|
|
25124
|
+
target: WebrtcStreamTargetSchema,
|
|
25125
|
+
epoch: number()
|
|
25126
|
+
}).nullable(),
|
|
25127
|
+
/**
|
|
25128
|
+
* Whether the session still EXISTS.
|
|
25129
|
+
*
|
|
25130
|
+
* A consumer that holds a resource for the life of a session needs to
|
|
25131
|
+
* be able to ask, because a session does not always end the way it
|
|
25132
|
+
* began. Measured on this hub 2026-09-13: an Echo that got stuck never
|
|
25133
|
+
* sent `SessionDisconnected`, so the Alexa exporter's
|
|
25134
|
+
* `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
|
|
25135
|
+
* H.264 transcode kept running for NOBODY for more than twenty
|
|
25136
|
+
* minutes. The WebRTC session had logged `WebRTC session closed`
|
|
25137
|
+
* minutes earlier — the broker knew; the holder had no way to ask.
|
|
25138
|
+
*
|
|
25139
|
+
* `false` for a session id the provider has never heard of, which is
|
|
25140
|
+
* the same answer as "it ended": either way nothing is holding it up.
|
|
25141
|
+
*/
|
|
25142
|
+
alive: boolean()
|
|
25143
|
+
}));
|
|
24870
25144
|
object({
|
|
24871
25145
|
/** All accessory children of the parent. */
|
|
24872
25146
|
childDeviceIds: array(number()).readonly(),
|
|
@@ -33287,7 +33561,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
33287
33561
|
* disarmed the channels it did not mention would make the Levels page and
|
|
33288
33562
|
* the Diagnostics page fight over the same value.
|
|
33289
33563
|
*/
|
|
33290
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
33564
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
33565
|
+
/**
|
|
33566
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
33567
|
+
* retention actually deleted.
|
|
33568
|
+
*
|
|
33569
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
33570
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
33571
|
+
* this system is configured through this one document, and a retention audit
|
|
33572
|
+
* configured somewhere else is a second place to look when the question is
|
|
33573
|
+
* "what happened to my data".
|
|
33574
|
+
*
|
|
33575
|
+
* That placement has a cost worth stating: this document ships in the
|
|
33576
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
33577
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
33578
|
+
*
|
|
33579
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
33580
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
33581
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
33582
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
33583
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
33584
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
33585
|
+
*/
|
|
33586
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
33291
33587
|
});
|
|
33292
33588
|
/**
|
|
33293
33589
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -33360,6 +33656,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
33360
33656
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
33361
33657
|
/** The channels ARMED right now, each with its deadline. */
|
|
33362
33658
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
33659
|
+
/**
|
|
33660
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
33661
|
+
*
|
|
33662
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
33663
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
33664
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
33665
|
+
*/
|
|
33666
|
+
opsLogRetentionDays: number().int().min(0),
|
|
33363
33667
|
persisted: boolean()
|
|
33364
33668
|
});
|
|
33365
33669
|
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(), {
|
|
@@ -34755,6 +35059,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
34755
35059
|
smoke: smokeCapability,
|
|
34756
35060
|
streamCatalog: streamCatalogCapability,
|
|
34757
35061
|
streamParams: streamParamsCapability,
|
|
35062
|
+
streamSignals: streamSignalsCapability,
|
|
34758
35063
|
switch: switchCapability,
|
|
34759
35064
|
tamper: tamperCapability,
|
|
34760
35065
|
temperatureSensor: temperatureSensorCapability,
|
|
@@ -39360,6 +39665,12 @@ Object.freeze({
|
|
|
39360
39665
|
addonId: null,
|
|
39361
39666
|
access: "view"
|
|
39362
39667
|
},
|
|
39668
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
39669
|
+
capName: "pipeline-analytics",
|
|
39670
|
+
capScope: "device",
|
|
39671
|
+
addonId: null,
|
|
39672
|
+
access: "view"
|
|
39673
|
+
},
|
|
39363
39674
|
"pipelineAnalytics.listRecentTracks": {
|
|
39364
39675
|
capName: "pipeline-analytics",
|
|
39365
39676
|
capScope: "device",
|
|
@@ -41322,6 +41633,12 @@ Object.freeze({
|
|
|
41322
41633
|
addonId: null,
|
|
41323
41634
|
access: "create"
|
|
41324
41635
|
},
|
|
41636
|
+
"streamBroker.reportStreamSignal": {
|
|
41637
|
+
capName: "stream-broker",
|
|
41638
|
+
capScope: "system",
|
|
41639
|
+
addonId: null,
|
|
41640
|
+
access: "create"
|
|
41641
|
+
},
|
|
41325
41642
|
"streamBroker.restartProfile": {
|
|
41326
41643
|
capName: "stream-broker",
|
|
41327
41644
|
capScope: "system",
|
|
@@ -41406,6 +41723,12 @@ Object.freeze({
|
|
|
41406
41723
|
addonId: null,
|
|
41407
41724
|
access: "create"
|
|
41408
41725
|
},
|
|
41726
|
+
"streamSignals.listSignals": {
|
|
41727
|
+
capName: "stream-signals",
|
|
41728
|
+
capScope: "device",
|
|
41729
|
+
addonId: null,
|
|
41730
|
+
access: "view"
|
|
41731
|
+
},
|
|
41409
41732
|
"switch.setState": {
|
|
41410
41733
|
capName: "switch",
|
|
41411
41734
|
capScope: "device",
|
|
@@ -43187,6 +43510,11 @@ Object.freeze({
|
|
|
43187
43510
|
form: "single",
|
|
43188
43511
|
optional: true
|
|
43189
43512
|
}],
|
|
43513
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
43514
|
+
name: "deviceIds",
|
|
43515
|
+
form: "array",
|
|
43516
|
+
optional: false
|
|
43517
|
+
}],
|
|
43190
43518
|
"pipelineAnalytics.listRecentTracks": [{
|
|
43191
43519
|
name: "deviceIds",
|
|
43192
43520
|
form: "array",
|
|
@@ -43773,6 +44101,11 @@ Object.freeze({
|
|
|
43773
44101
|
form: "single",
|
|
43774
44102
|
optional: false
|
|
43775
44103
|
}],
|
|
44104
|
+
"streamBroker.reportStreamSignal": [{
|
|
44105
|
+
name: "deviceId",
|
|
44106
|
+
form: "single",
|
|
44107
|
+
optional: false
|
|
44108
|
+
}],
|
|
43776
44109
|
"streamBroker.restartProfile": [{
|
|
43777
44110
|
name: "deviceId",
|
|
43778
44111
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-rademacher",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.101",
|
|
4
4
|
"description": "Rademacher HomePilot device-provider addon for CamStack — wraps the @apocaliss92/noderademacher local-hub client (roller shutters over the cover cap)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|