@camstack/addon-export-google 0.1.64 → 0.1.66
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/export-google.addon.js +334 -16
- package/dist/export-google.addon.mjs +334 -16
- package/package.json +1 -1
|
@@ -77,7 +77,7 @@ function createApiDeviceGateway(deps) {
|
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
//#endregion
|
|
80
|
-
//#region ../types/dist/event-category-
|
|
80
|
+
//#region ../types/dist/event-category-BVDXG4tB.mjs
|
|
81
81
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
82
82
|
EventCategory["SystemBoot"] = "system.boot";
|
|
83
83
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -694,6 +694,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
694
694
|
* pull-reconcile from the provider's `getStatus` on reconnect. */
|
|
695
695
|
EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
|
|
696
696
|
EventCategory["BackupCompleted"] = "backup.completed";
|
|
697
|
+
/**
|
|
698
|
+
* A whole backup RUN finished — every destination attempted, win or lose.
|
|
699
|
+
*
|
|
700
|
+
* `backup.completed` fires once per DESTINATION, which is the right grain for
|
|
701
|
+
* a progress UI and the wrong one for a notification: an operator with three
|
|
702
|
+
* destinations would be told three times. And a run where two of three
|
|
703
|
+
* destinations succeeded is not a clean success — a single "backup
|
|
704
|
+
* completed" that hid the failed one would be a lie, so the count of each is
|
|
705
|
+
* carried here and the message says both.
|
|
706
|
+
*
|
|
707
|
+
* Emitted by the backup orchestrator only after the destination loop, so a
|
|
708
|
+
* run that dies during the BUILD phase produces no completion at all.
|
|
709
|
+
*/
|
|
710
|
+
EventCategory["BackupRunCompleted"] = "backup.run-completed";
|
|
697
711
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
698
712
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
699
713
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
@@ -5424,7 +5438,7 @@ var ZodIssueCode = {
|
|
|
5424
5438
|
var ZodFirstPartyTypeKind;
|
|
5425
5439
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5426
5440
|
//#endregion
|
|
5427
|
-
//#region ../types/dist/sleep-
|
|
5441
|
+
//#region ../types/dist/sleep-DEuj7E3j.mjs
|
|
5428
5442
|
/**
|
|
5429
5443
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5430
5444
|
* window to float samples (D455).
|
|
@@ -7566,7 +7580,23 @@ var EncodeProfileSchema = object({
|
|
|
7566
7580
|
"zerolatency",
|
|
7567
7581
|
"film",
|
|
7568
7582
|
"animation"
|
|
7569
|
-
]).optional()
|
|
7583
|
+
]).optional(),
|
|
7584
|
+
/**
|
|
7585
|
+
* ONE slice per access unit.
|
|
7586
|
+
*
|
|
7587
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7588
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7589
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7590
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7591
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7592
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7593
|
+
*
|
|
7594
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7595
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7596
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7597
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7598
|
+
*/
|
|
7599
|
+
singleSlicePerFrame: boolean().optional()
|
|
7570
7600
|
}),
|
|
7571
7601
|
audio: union([literal("passthrough"), object({
|
|
7572
7602
|
codec: _enum([
|
|
@@ -7616,7 +7646,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7616
7646
|
audio: "passthrough"
|
|
7617
7647
|
};
|
|
7618
7648
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7619
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7649
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7620
7650
|
/**
|
|
7621
7651
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7622
7652
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -11691,6 +11721,58 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
11691
11721
|
auth: "admin"
|
|
11692
11722
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
11693
11723
|
DeviceType.Camera;
|
|
11724
|
+
/**
|
|
11725
|
+
* The signals a device can emit to WAKE its own stream.
|
|
11726
|
+
*
|
|
11727
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
11728
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
11729
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
11730
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
11731
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
11732
|
+
* itself, with no stream running.
|
|
11733
|
+
*
|
|
11734
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
11735
|
+
*
|
|
11736
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
11737
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
11738
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
11739
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
11740
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
11741
|
+
*
|
|
11742
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
11743
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
11744
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
11745
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
11746
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
11747
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
11748
|
+
* camera. Two questions, two authorities.
|
|
11749
|
+
*
|
|
11750
|
+
* ## Availability is not permission
|
|
11751
|
+
*
|
|
11752
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
11753
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
11754
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
11755
|
+
* provider declaring a signal is not a provider enabling it.
|
|
11756
|
+
*/
|
|
11757
|
+
/** One signal a device can emit. */
|
|
11758
|
+
var StreamSignalSchema = object({
|
|
11759
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
11760
|
+
code: string().min(1),
|
|
11761
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
11762
|
+
label: string().min(1),
|
|
11763
|
+
/**
|
|
11764
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
11765
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
11766
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
11767
|
+
* both of its own.
|
|
11768
|
+
*/
|
|
11769
|
+
recommended: boolean()
|
|
11770
|
+
});
|
|
11771
|
+
object({
|
|
11772
|
+
signals: array(StreamSignalSchema),
|
|
11773
|
+
lastFetchedAt: number()
|
|
11774
|
+
});
|
|
11775
|
+
Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
|
|
11694
11776
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
11695
11777
|
var StreamFormatSchema = _enum([
|
|
11696
11778
|
"webrtc",
|
|
@@ -12087,6 +12169,22 @@ var EgressTranscodeSchema = object({
|
|
|
12087
12169
|
camStreamId: string().nullable()
|
|
12088
12170
|
});
|
|
12089
12171
|
method(object({
|
|
12172
|
+
deviceId: number().int().nonnegative(),
|
|
12173
|
+
/** The provider's signal code. */
|
|
12174
|
+
code: string().min(1),
|
|
12175
|
+
/** Ms epoch. Absent ⇒ now. */
|
|
12176
|
+
at: number().optional()
|
|
12177
|
+
}), object({
|
|
12178
|
+
/** Whether the broker acted on it, and if not, why. */
|
|
12179
|
+
accepted: boolean(),
|
|
12180
|
+
reason: _enum([
|
|
12181
|
+
"woke",
|
|
12182
|
+
"hold-extended",
|
|
12183
|
+
"not-enabled",
|
|
12184
|
+
"no-consumer",
|
|
12185
|
+
"unknown-code"
|
|
12186
|
+
])
|
|
12187
|
+
}), { kind: "mutation" }), method(object({
|
|
12090
12188
|
deviceId: number().int().nonnegative(),
|
|
12091
12189
|
camStreamId: string().min(1),
|
|
12092
12190
|
kind: CamStreamKindSchema,
|
|
@@ -12341,6 +12439,16 @@ var PickStreamRequirementsSchema = object({
|
|
|
12341
12439
|
acceptCodecs: array(StreamCodecSchema).readonly().optional(),
|
|
12342
12440
|
/** Minimum vertical resolution. Streams shorter than this are dropped. */
|
|
12343
12441
|
minHeight: number().int().positive().optional(),
|
|
12442
|
+
/**
|
|
12443
|
+
* Maximum vertical resolution. Streams TALLER than this are dropped.
|
|
12444
|
+
*
|
|
12445
|
+
* A consumer can have a ceiling as real as its floor: Alexa documents
|
|
12446
|
+
* 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
|
|
12447
|
+
* Without this the ceiling had to be re-implemented by every caller — and
|
|
12448
|
+
* one caller implementing it privately is how a second scoring authority
|
|
12449
|
+
* gets born.
|
|
12450
|
+
*/
|
|
12451
|
+
maxHeight: number().int().positive().optional(),
|
|
12344
12452
|
/** Minimum horizontal resolution. */
|
|
12345
12453
|
minWidth: number().int().positive().optional(),
|
|
12346
12454
|
/**
|
|
@@ -12357,7 +12465,22 @@ var PickStreamRequirementsSchema = object({
|
|
|
12357
12465
|
* transcoded" guard: if the device is already serving the consumer's
|
|
12358
12466
|
* codec end-to-end, there's nothing to optimise.
|
|
12359
12467
|
*/
|
|
12360
|
-
requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
|
|
12468
|
+
requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
|
|
12469
|
+
/**
|
|
12470
|
+
* Whether a stream the consumer CANNOT decode may still be picked, on the
|
|
12471
|
+
* understanding that it will be transcoded.
|
|
12472
|
+
*
|
|
12473
|
+
* Default `false` — today's behaviour, and the right one for a bypass
|
|
12474
|
+
* question ("is there a stream I can forward untouched?"). Set `true` to
|
|
12475
|
+
* ask the larger question: "what is the best stream for me, transcoding if
|
|
12476
|
+
* I must?" A stream that satisfies `acceptCodecs` always outranks one that
|
|
12477
|
+
* does not, so a passthrough is never lost to a transcode; the answer says
|
|
12478
|
+
* which it is in {@link PickedCamStreamSchema.transcodes}.
|
|
12479
|
+
*
|
|
12480
|
+
* This is what lets one picker serve both the bypass and the full source
|
|
12481
|
+
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12482
|
+
*/
|
|
12483
|
+
allowTranscode: boolean().optional()
|
|
12361
12484
|
}).readonly();
|
|
12362
12485
|
var PickStreamPreferencesSchema = object({
|
|
12363
12486
|
/**
|
|
@@ -12371,12 +12494,32 @@ var PickStreamPreferencesSchema = object({
|
|
|
12371
12494
|
* picks the tallest stream; `'lowest'` picks the shortest (used by
|
|
12372
12495
|
* memory-constrained consumers / Apple Home guest sessions).
|
|
12373
12496
|
*/
|
|
12374
|
-
resolutionPreference: _enum(["highest", "lowest"]).optional()
|
|
12497
|
+
resolutionPreference: _enum(["highest", "lowest"]).optional(),
|
|
12498
|
+
/**
|
|
12499
|
+
* The height the consumer actually wants to DELIVER.
|
|
12500
|
+
*
|
|
12501
|
+
* Not a constraint — an ordering. With it set, the SMALLEST stream at or
|
|
12502
|
+
* above the target wins, and only if nothing reaches it does the tallest
|
|
12503
|
+
* take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
|
|
12504
|
+
* a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
|
|
12505
|
+
* express that: it says "as big as possible", which is a different wish.
|
|
12506
|
+
*
|
|
12507
|
+
* Ignored when absent, so every existing caller keeps its ordering.
|
|
12508
|
+
*/
|
|
12509
|
+
targetHeight: number().int().positive().optional()
|
|
12375
12510
|
}).readonly();
|
|
12376
12511
|
var PickedCamStreamSchema = object({
|
|
12377
12512
|
camStreamId: string(),
|
|
12378
12513
|
codec: string().optional(),
|
|
12379
12514
|
resolution: CamStreamResolutionSchema.optional(),
|
|
12515
|
+
/**
|
|
12516
|
+
* Whether serving this stream requires a decode + re-encode.
|
|
12517
|
+
*
|
|
12518
|
+
* `false` is a stream the consumer can take as it stands. Only ever `true`
|
|
12519
|
+
* when the caller asked for it with `allowTranscode`, so a caller that did
|
|
12520
|
+
* not ask cannot be handed a cost it never agreed to pay.
|
|
12521
|
+
*/
|
|
12522
|
+
transcodes: boolean(),
|
|
12380
12523
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12381
12524
|
reason: string()
|
|
12382
12525
|
});
|
|
@@ -16612,6 +16755,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16612
16755
|
"device-enabled",
|
|
16613
16756
|
"device-battery-low",
|
|
16614
16757
|
"device-battery-normal",
|
|
16758
|
+
"device-consumable-low",
|
|
16759
|
+
"device-consumable-normal",
|
|
16615
16760
|
"stream-online",
|
|
16616
16761
|
"stream-offline",
|
|
16617
16762
|
"node-online",
|
|
@@ -16630,6 +16775,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16630
16775
|
"addon-updated",
|
|
16631
16776
|
"server-updated",
|
|
16632
16777
|
"export-completed",
|
|
16778
|
+
"backup-completed",
|
|
16633
16779
|
"camera-online",
|
|
16634
16780
|
"camera-offline",
|
|
16635
16781
|
"camera-disabled",
|
|
@@ -20042,13 +20188,109 @@ var SummariesQueryInput = object({
|
|
|
20042
20188
|
deviceIds: array(number()).min(1),
|
|
20043
20189
|
since: number().optional(),
|
|
20044
20190
|
until: number().optional(),
|
|
20045
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20191
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20192
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20193
|
+
* meaning of "dog" on every summary surface. */
|
|
20194
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20046
20195
|
});
|
|
20047
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20048
20196
|
var SummaryDetailSchema = object({
|
|
20049
20197
|
summary: SummarySchema,
|
|
20050
|
-
/**
|
|
20051
|
-
|
|
20198
|
+
/** Members in absorption order, oldest join first. */
|
|
20199
|
+
members: array(object({
|
|
20200
|
+
trackId: string(),
|
|
20201
|
+
/**
|
|
20202
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20203
|
+
* and the track no longer exists to fill it.
|
|
20204
|
+
*
|
|
20205
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20206
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20207
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20208
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20209
|
+
* drift from the members it claims to describe.
|
|
20210
|
+
*/
|
|
20211
|
+
className: string().nullable(),
|
|
20212
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20213
|
+
role: _enum([
|
|
20214
|
+
"primary",
|
|
20215
|
+
"sibling",
|
|
20216
|
+
"child"
|
|
20217
|
+
]).nullable(),
|
|
20218
|
+
joinedAt: number(),
|
|
20219
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20220
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20221
|
+
label: string().optional(),
|
|
20222
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20223
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20224
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20225
|
+
subLabel: string().optional()
|
|
20226
|
+
})).readonly()
|
|
20227
|
+
});
|
|
20228
|
+
/**
|
|
20229
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20230
|
+
*
|
|
20231
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20232
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20233
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20234
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20235
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20236
|
+
* draw two hundred badges.
|
|
20237
|
+
*/
|
|
20238
|
+
var SummaryListItemSchema = object({
|
|
20239
|
+
summary: SummarySchema,
|
|
20240
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20241
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20242
|
+
classes: array(object({
|
|
20243
|
+
className: string().nullable(),
|
|
20244
|
+
count: number().int().positive()
|
|
20245
|
+
})).readonly()
|
|
20246
|
+
});
|
|
20247
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20248
|
+
/**
|
|
20249
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20250
|
+
*
|
|
20251
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20252
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20253
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20254
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20255
|
+
* "newest" means, on one screen.
|
|
20256
|
+
*/
|
|
20257
|
+
var RecentSummariesQueryInput = object({
|
|
20258
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20259
|
+
deviceIds: array(number()),
|
|
20260
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20261
|
+
since: number().optional(),
|
|
20262
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20263
|
+
until: number().optional(),
|
|
20264
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20265
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20266
|
+
cursor: string().optional(),
|
|
20267
|
+
/**
|
|
20268
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20269
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20270
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20271
|
+
* make the operator's one filter component produce two shapes.
|
|
20272
|
+
*
|
|
20273
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20274
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20275
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20276
|
+
* about its primary.
|
|
20277
|
+
*
|
|
20278
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20279
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20280
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20281
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20282
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20283
|
+
*
|
|
20284
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20285
|
+
*/
|
|
20286
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20287
|
+
});
|
|
20288
|
+
var RecentSummariesPageSchema = object({
|
|
20289
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20290
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20291
|
+
* whichever feed drew it. */
|
|
20292
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20293
|
+
nextCursor: string().nullable()
|
|
20052
20294
|
});
|
|
20053
20295
|
var RecentTracksPageSchema = object({
|
|
20054
20296
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20462,7 +20704,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20462
20704
|
classes: array(string()).optional(),
|
|
20463
20705
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20464
20706
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20465
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20707
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20466
20708
|
kind: "mutation",
|
|
20467
20709
|
auth: "admin"
|
|
20468
20710
|
}), 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({
|
|
@@ -23791,10 +24033,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
23791
24033
|
}), boolean()), method(object({
|
|
23792
24034
|
deviceId: number().int().nonnegative(),
|
|
23793
24035
|
sessionId: string()
|
|
23794
|
-
}), object({
|
|
23795
|
-
|
|
23796
|
-
|
|
23797
|
-
|
|
24036
|
+
}), object({
|
|
24037
|
+
pendingRenegotiation: object({
|
|
24038
|
+
target: WebrtcStreamTargetSchema,
|
|
24039
|
+
epoch: number()
|
|
24040
|
+
}).nullable(),
|
|
24041
|
+
/**
|
|
24042
|
+
* Whether the session still EXISTS.
|
|
24043
|
+
*
|
|
24044
|
+
* A consumer that holds a resource for the life of a session needs to
|
|
24045
|
+
* be able to ask, because a session does not always end the way it
|
|
24046
|
+
* began. Measured on this hub 2026-09-13: an Echo that got stuck never
|
|
24047
|
+
* sent `SessionDisconnected`, so the Alexa exporter's
|
|
24048
|
+
* `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
|
|
24049
|
+
* H.264 transcode kept running for NOBODY for more than twenty
|
|
24050
|
+
* minutes. The WebRTC session had logged `WebRTC session closed`
|
|
24051
|
+
* minutes earlier — the broker knew; the holder had no way to ask.
|
|
24052
|
+
*
|
|
24053
|
+
* `false` for a session id the provider has never heard of, which is
|
|
24054
|
+
* the same answer as "it ended": either way nothing is holding it up.
|
|
24055
|
+
*/
|
|
24056
|
+
alive: boolean()
|
|
24057
|
+
}));
|
|
23798
24058
|
object({
|
|
23799
24059
|
/** All accessory children of the parent. */
|
|
23800
24060
|
childDeviceIds: array(number()).readonly(),
|
|
@@ -30087,7 +30347,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
30087
30347
|
* disarmed the channels it did not mention would make the Levels page and
|
|
30088
30348
|
* the Diagnostics page fight over the same value.
|
|
30089
30349
|
*/
|
|
30090
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30350
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30351
|
+
/**
|
|
30352
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30353
|
+
* retention actually deleted.
|
|
30354
|
+
*
|
|
30355
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30356
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30357
|
+
* this system is configured through this one document, and a retention audit
|
|
30358
|
+
* configured somewhere else is a second place to look when the question is
|
|
30359
|
+
* "what happened to my data".
|
|
30360
|
+
*
|
|
30361
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30362
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30363
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30364
|
+
*
|
|
30365
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30366
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30367
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30368
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30369
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30370
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30371
|
+
*/
|
|
30372
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
30091
30373
|
});
|
|
30092
30374
|
/**
|
|
30093
30375
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -30160,6 +30442,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
30160
30442
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
30161
30443
|
/** The channels ARMED right now, each with its deadline. */
|
|
30162
30444
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30445
|
+
/**
|
|
30446
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30447
|
+
*
|
|
30448
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30449
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30450
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30451
|
+
*/
|
|
30452
|
+
opsLogRetentionDays: number().int().min(0),
|
|
30163
30453
|
persisted: boolean()
|
|
30164
30454
|
});
|
|
30165
30455
|
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(), {
|
|
@@ -34319,6 +34609,12 @@ Object.freeze({
|
|
|
34319
34609
|
addonId: null,
|
|
34320
34610
|
access: "view"
|
|
34321
34611
|
},
|
|
34612
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34613
|
+
capName: "pipeline-analytics",
|
|
34614
|
+
capScope: "device",
|
|
34615
|
+
addonId: null,
|
|
34616
|
+
access: "view"
|
|
34617
|
+
},
|
|
34322
34618
|
"pipelineAnalytics.listRecentTracks": {
|
|
34323
34619
|
capName: "pipeline-analytics",
|
|
34324
34620
|
capScope: "device",
|
|
@@ -36281,6 +36577,12 @@ Object.freeze({
|
|
|
36281
36577
|
addonId: null,
|
|
36282
36578
|
access: "create"
|
|
36283
36579
|
},
|
|
36580
|
+
"streamBroker.reportStreamSignal": {
|
|
36581
|
+
capName: "stream-broker",
|
|
36582
|
+
capScope: "system",
|
|
36583
|
+
addonId: null,
|
|
36584
|
+
access: "create"
|
|
36585
|
+
},
|
|
36284
36586
|
"streamBroker.restartProfile": {
|
|
36285
36587
|
capName: "stream-broker",
|
|
36286
36588
|
capScope: "system",
|
|
@@ -36365,6 +36667,12 @@ Object.freeze({
|
|
|
36365
36667
|
addonId: null,
|
|
36366
36668
|
access: "create"
|
|
36367
36669
|
},
|
|
36670
|
+
"streamSignals.listSignals": {
|
|
36671
|
+
capName: "stream-signals",
|
|
36672
|
+
capScope: "device",
|
|
36673
|
+
addonId: null,
|
|
36674
|
+
access: "view"
|
|
36675
|
+
},
|
|
36368
36676
|
"switch.setState": {
|
|
36369
36677
|
capName: "switch",
|
|
36370
36678
|
capScope: "device",
|
|
@@ -38146,6 +38454,11 @@ Object.freeze({
|
|
|
38146
38454
|
form: "single",
|
|
38147
38455
|
optional: true
|
|
38148
38456
|
}],
|
|
38457
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38458
|
+
name: "deviceIds",
|
|
38459
|
+
form: "array",
|
|
38460
|
+
optional: false
|
|
38461
|
+
}],
|
|
38149
38462
|
"pipelineAnalytics.listRecentTracks": [{
|
|
38150
38463
|
name: "deviceIds",
|
|
38151
38464
|
form: "array",
|
|
@@ -38732,6 +39045,11 @@ Object.freeze({
|
|
|
38732
39045
|
form: "single",
|
|
38733
39046
|
optional: false
|
|
38734
39047
|
}],
|
|
39048
|
+
"streamBroker.reportStreamSignal": [{
|
|
39049
|
+
name: "deviceId",
|
|
39050
|
+
form: "single",
|
|
39051
|
+
optional: false
|
|
39052
|
+
}],
|
|
38735
39053
|
"streamBroker.restartProfile": [{
|
|
38736
39054
|
name: "deviceId",
|
|
38737
39055
|
form: "single",
|
|
@@ -73,7 +73,7 @@ function createApiDeviceGateway(deps) {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
//#endregion
|
|
76
|
-
//#region ../types/dist/event-category-
|
|
76
|
+
//#region ../types/dist/event-category-BVDXG4tB.mjs
|
|
77
77
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
78
78
|
EventCategory["SystemBoot"] = "system.boot";
|
|
79
79
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -690,6 +690,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
690
690
|
* pull-reconcile from the provider's `getStatus` on reconnect. */
|
|
691
691
|
EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
|
|
692
692
|
EventCategory["BackupCompleted"] = "backup.completed";
|
|
693
|
+
/**
|
|
694
|
+
* A whole backup RUN finished — every destination attempted, win or lose.
|
|
695
|
+
*
|
|
696
|
+
* `backup.completed` fires once per DESTINATION, which is the right grain for
|
|
697
|
+
* a progress UI and the wrong one for a notification: an operator with three
|
|
698
|
+
* destinations would be told three times. And a run where two of three
|
|
699
|
+
* destinations succeeded is not a clean success — a single "backup
|
|
700
|
+
* completed" that hid the failed one would be a lie, so the count of each is
|
|
701
|
+
* carried here and the message says both.
|
|
702
|
+
*
|
|
703
|
+
* Emitted by the backup orchestrator only after the destination loop, so a
|
|
704
|
+
* run that dies during the BUILD phase produces no completion at all.
|
|
705
|
+
*/
|
|
706
|
+
EventCategory["BackupRunCompleted"] = "backup.run-completed";
|
|
693
707
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
694
708
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
695
709
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
@@ -5420,7 +5434,7 @@ var ZodIssueCode = {
|
|
|
5420
5434
|
var ZodFirstPartyTypeKind;
|
|
5421
5435
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5422
5436
|
//#endregion
|
|
5423
|
-
//#region ../types/dist/sleep-
|
|
5437
|
+
//#region ../types/dist/sleep-DEuj7E3j.mjs
|
|
5424
5438
|
/**
|
|
5425
5439
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5426
5440
|
* window to float samples (D455).
|
|
@@ -7562,7 +7576,23 @@ var EncodeProfileSchema = object({
|
|
|
7562
7576
|
"zerolatency",
|
|
7563
7577
|
"film",
|
|
7564
7578
|
"animation"
|
|
7565
|
-
]).optional()
|
|
7579
|
+
]).optional(),
|
|
7580
|
+
/**
|
|
7581
|
+
* ONE slice per access unit.
|
|
7582
|
+
*
|
|
7583
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7584
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7585
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7586
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7587
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7588
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7589
|
+
*
|
|
7590
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7591
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7592
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7593
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7594
|
+
*/
|
|
7595
|
+
singleSlicePerFrame: boolean().optional()
|
|
7566
7596
|
}),
|
|
7567
7597
|
audio: union([literal("passthrough"), object({
|
|
7568
7598
|
codec: _enum([
|
|
@@ -7612,7 +7642,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7612
7642
|
audio: "passthrough"
|
|
7613
7643
|
};
|
|
7614
7644
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7615
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7645
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7616
7646
|
/**
|
|
7617
7647
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7618
7648
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -11687,6 +11717,58 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
11687
11717
|
auth: "admin"
|
|
11688
11718
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
11689
11719
|
DeviceType.Camera;
|
|
11720
|
+
/**
|
|
11721
|
+
* The signals a device can emit to WAKE its own stream.
|
|
11722
|
+
*
|
|
11723
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
11724
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
11725
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
11726
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
11727
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
11728
|
+
* itself, with no stream running.
|
|
11729
|
+
*
|
|
11730
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
11731
|
+
*
|
|
11732
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
11733
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
11734
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
11735
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
11736
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
11737
|
+
*
|
|
11738
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
11739
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
11740
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
11741
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
11742
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
11743
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
11744
|
+
* camera. Two questions, two authorities.
|
|
11745
|
+
*
|
|
11746
|
+
* ## Availability is not permission
|
|
11747
|
+
*
|
|
11748
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
11749
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
11750
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
11751
|
+
* provider declaring a signal is not a provider enabling it.
|
|
11752
|
+
*/
|
|
11753
|
+
/** One signal a device can emit. */
|
|
11754
|
+
var StreamSignalSchema = object({
|
|
11755
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
11756
|
+
code: string().min(1),
|
|
11757
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
11758
|
+
label: string().min(1),
|
|
11759
|
+
/**
|
|
11760
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
11761
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
11762
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
11763
|
+
* both of its own.
|
|
11764
|
+
*/
|
|
11765
|
+
recommended: boolean()
|
|
11766
|
+
});
|
|
11767
|
+
object({
|
|
11768
|
+
signals: array(StreamSignalSchema),
|
|
11769
|
+
lastFetchedAt: number()
|
|
11770
|
+
});
|
|
11771
|
+
Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
|
|
11690
11772
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
11691
11773
|
var StreamFormatSchema = _enum([
|
|
11692
11774
|
"webrtc",
|
|
@@ -12083,6 +12165,22 @@ var EgressTranscodeSchema = object({
|
|
|
12083
12165
|
camStreamId: string().nullable()
|
|
12084
12166
|
});
|
|
12085
12167
|
method(object({
|
|
12168
|
+
deviceId: number().int().nonnegative(),
|
|
12169
|
+
/** The provider's signal code. */
|
|
12170
|
+
code: string().min(1),
|
|
12171
|
+
/** Ms epoch. Absent ⇒ now. */
|
|
12172
|
+
at: number().optional()
|
|
12173
|
+
}), object({
|
|
12174
|
+
/** Whether the broker acted on it, and if not, why. */
|
|
12175
|
+
accepted: boolean(),
|
|
12176
|
+
reason: _enum([
|
|
12177
|
+
"woke",
|
|
12178
|
+
"hold-extended",
|
|
12179
|
+
"not-enabled",
|
|
12180
|
+
"no-consumer",
|
|
12181
|
+
"unknown-code"
|
|
12182
|
+
])
|
|
12183
|
+
}), { kind: "mutation" }), method(object({
|
|
12086
12184
|
deviceId: number().int().nonnegative(),
|
|
12087
12185
|
camStreamId: string().min(1),
|
|
12088
12186
|
kind: CamStreamKindSchema,
|
|
@@ -12337,6 +12435,16 @@ var PickStreamRequirementsSchema = object({
|
|
|
12337
12435
|
acceptCodecs: array(StreamCodecSchema).readonly().optional(),
|
|
12338
12436
|
/** Minimum vertical resolution. Streams shorter than this are dropped. */
|
|
12339
12437
|
minHeight: number().int().positive().optional(),
|
|
12438
|
+
/**
|
|
12439
|
+
* Maximum vertical resolution. Streams TALLER than this are dropped.
|
|
12440
|
+
*
|
|
12441
|
+
* A consumer can have a ceiling as real as its floor: Alexa documents
|
|
12442
|
+
* 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
|
|
12443
|
+
* Without this the ceiling had to be re-implemented by every caller — and
|
|
12444
|
+
* one caller implementing it privately is how a second scoring authority
|
|
12445
|
+
* gets born.
|
|
12446
|
+
*/
|
|
12447
|
+
maxHeight: number().int().positive().optional(),
|
|
12340
12448
|
/** Minimum horizontal resolution. */
|
|
12341
12449
|
minWidth: number().int().positive().optional(),
|
|
12342
12450
|
/**
|
|
@@ -12353,7 +12461,22 @@ var PickStreamRequirementsSchema = object({
|
|
|
12353
12461
|
* transcoded" guard: if the device is already serving the consumer's
|
|
12354
12462
|
* codec end-to-end, there's nothing to optimise.
|
|
12355
12463
|
*/
|
|
12356
|
-
requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
|
|
12464
|
+
requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
|
|
12465
|
+
/**
|
|
12466
|
+
* Whether a stream the consumer CANNOT decode may still be picked, on the
|
|
12467
|
+
* understanding that it will be transcoded.
|
|
12468
|
+
*
|
|
12469
|
+
* Default `false` — today's behaviour, and the right one for a bypass
|
|
12470
|
+
* question ("is there a stream I can forward untouched?"). Set `true` to
|
|
12471
|
+
* ask the larger question: "what is the best stream for me, transcoding if
|
|
12472
|
+
* I must?" A stream that satisfies `acceptCodecs` always outranks one that
|
|
12473
|
+
* does not, so a passthrough is never lost to a transcode; the answer says
|
|
12474
|
+
* which it is in {@link PickedCamStreamSchema.transcodes}.
|
|
12475
|
+
*
|
|
12476
|
+
* This is what lets one picker serve both the bypass and the full source
|
|
12477
|
+
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12478
|
+
*/
|
|
12479
|
+
allowTranscode: boolean().optional()
|
|
12357
12480
|
}).readonly();
|
|
12358
12481
|
var PickStreamPreferencesSchema = object({
|
|
12359
12482
|
/**
|
|
@@ -12367,12 +12490,32 @@ var PickStreamPreferencesSchema = object({
|
|
|
12367
12490
|
* picks the tallest stream; `'lowest'` picks the shortest (used by
|
|
12368
12491
|
* memory-constrained consumers / Apple Home guest sessions).
|
|
12369
12492
|
*/
|
|
12370
|
-
resolutionPreference: _enum(["highest", "lowest"]).optional()
|
|
12493
|
+
resolutionPreference: _enum(["highest", "lowest"]).optional(),
|
|
12494
|
+
/**
|
|
12495
|
+
* The height the consumer actually wants to DELIVER.
|
|
12496
|
+
*
|
|
12497
|
+
* Not a constraint — an ordering. With it set, the SMALLEST stream at or
|
|
12498
|
+
* above the target wins, and only if nothing reaches it does the tallest
|
|
12499
|
+
* take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
|
|
12500
|
+
* a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
|
|
12501
|
+
* express that: it says "as big as possible", which is a different wish.
|
|
12502
|
+
*
|
|
12503
|
+
* Ignored when absent, so every existing caller keeps its ordering.
|
|
12504
|
+
*/
|
|
12505
|
+
targetHeight: number().int().positive().optional()
|
|
12371
12506
|
}).readonly();
|
|
12372
12507
|
var PickedCamStreamSchema = object({
|
|
12373
12508
|
camStreamId: string(),
|
|
12374
12509
|
codec: string().optional(),
|
|
12375
12510
|
resolution: CamStreamResolutionSchema.optional(),
|
|
12511
|
+
/**
|
|
12512
|
+
* Whether serving this stream requires a decode + re-encode.
|
|
12513
|
+
*
|
|
12514
|
+
* `false` is a stream the consumer can take as it stands. Only ever `true`
|
|
12515
|
+
* when the caller asked for it with `allowTranscode`, so a caller that did
|
|
12516
|
+
* not ask cannot be handed a cost it never agreed to pay.
|
|
12517
|
+
*/
|
|
12518
|
+
transcodes: boolean(),
|
|
12376
12519
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12377
12520
|
reason: string()
|
|
12378
12521
|
});
|
|
@@ -16608,6 +16751,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16608
16751
|
"device-enabled",
|
|
16609
16752
|
"device-battery-low",
|
|
16610
16753
|
"device-battery-normal",
|
|
16754
|
+
"device-consumable-low",
|
|
16755
|
+
"device-consumable-normal",
|
|
16611
16756
|
"stream-online",
|
|
16612
16757
|
"stream-offline",
|
|
16613
16758
|
"node-online",
|
|
@@ -16626,6 +16771,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16626
16771
|
"addon-updated",
|
|
16627
16772
|
"server-updated",
|
|
16628
16773
|
"export-completed",
|
|
16774
|
+
"backup-completed",
|
|
16629
16775
|
"camera-online",
|
|
16630
16776
|
"camera-offline",
|
|
16631
16777
|
"camera-disabled",
|
|
@@ -20038,13 +20184,109 @@ var SummariesQueryInput = object({
|
|
|
20038
20184
|
deviceIds: array(number()).min(1),
|
|
20039
20185
|
since: number().optional(),
|
|
20040
20186
|
until: number().optional(),
|
|
20041
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20187
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20188
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20189
|
+
* meaning of "dog" on every summary surface. */
|
|
20190
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20042
20191
|
});
|
|
20043
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20044
20192
|
var SummaryDetailSchema = object({
|
|
20045
20193
|
summary: SummarySchema,
|
|
20046
|
-
/**
|
|
20047
|
-
|
|
20194
|
+
/** Members in absorption order, oldest join first. */
|
|
20195
|
+
members: array(object({
|
|
20196
|
+
trackId: string(),
|
|
20197
|
+
/**
|
|
20198
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20199
|
+
* and the track no longer exists to fill it.
|
|
20200
|
+
*
|
|
20201
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20202
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20203
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20204
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20205
|
+
* drift from the members it claims to describe.
|
|
20206
|
+
*/
|
|
20207
|
+
className: string().nullable(),
|
|
20208
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20209
|
+
role: _enum([
|
|
20210
|
+
"primary",
|
|
20211
|
+
"sibling",
|
|
20212
|
+
"child"
|
|
20213
|
+
]).nullable(),
|
|
20214
|
+
joinedAt: number(),
|
|
20215
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20216
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20217
|
+
label: string().optional(),
|
|
20218
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20219
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20220
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20221
|
+
subLabel: string().optional()
|
|
20222
|
+
})).readonly()
|
|
20223
|
+
});
|
|
20224
|
+
/**
|
|
20225
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20226
|
+
*
|
|
20227
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20228
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20229
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20230
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20231
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20232
|
+
* draw two hundred badges.
|
|
20233
|
+
*/
|
|
20234
|
+
var SummaryListItemSchema = object({
|
|
20235
|
+
summary: SummarySchema,
|
|
20236
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20237
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20238
|
+
classes: array(object({
|
|
20239
|
+
className: string().nullable(),
|
|
20240
|
+
count: number().int().positive()
|
|
20241
|
+
})).readonly()
|
|
20242
|
+
});
|
|
20243
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20244
|
+
/**
|
|
20245
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20246
|
+
*
|
|
20247
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20248
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20249
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20250
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20251
|
+
* "newest" means, on one screen.
|
|
20252
|
+
*/
|
|
20253
|
+
var RecentSummariesQueryInput = object({
|
|
20254
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20255
|
+
deviceIds: array(number()),
|
|
20256
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20257
|
+
since: number().optional(),
|
|
20258
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20259
|
+
until: number().optional(),
|
|
20260
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20261
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20262
|
+
cursor: string().optional(),
|
|
20263
|
+
/**
|
|
20264
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20265
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20266
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20267
|
+
* make the operator's one filter component produce two shapes.
|
|
20268
|
+
*
|
|
20269
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20270
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20271
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20272
|
+
* about its primary.
|
|
20273
|
+
*
|
|
20274
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20275
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20276
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20277
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20278
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20279
|
+
*
|
|
20280
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20281
|
+
*/
|
|
20282
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20283
|
+
});
|
|
20284
|
+
var RecentSummariesPageSchema = object({
|
|
20285
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20286
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20287
|
+
* whichever feed drew it. */
|
|
20288
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20289
|
+
nextCursor: string().nullable()
|
|
20048
20290
|
});
|
|
20049
20291
|
var RecentTracksPageSchema = object({
|
|
20050
20292
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20458,7 +20700,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20458
20700
|
classes: array(string()).optional(),
|
|
20459
20701
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20460
20702
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20461
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20703
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20462
20704
|
kind: "mutation",
|
|
20463
20705
|
auth: "admin"
|
|
20464
20706
|
}), 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({
|
|
@@ -23787,10 +24029,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
23787
24029
|
}), boolean()), method(object({
|
|
23788
24030
|
deviceId: number().int().nonnegative(),
|
|
23789
24031
|
sessionId: string()
|
|
23790
|
-
}), object({
|
|
23791
|
-
|
|
23792
|
-
|
|
23793
|
-
|
|
24032
|
+
}), object({
|
|
24033
|
+
pendingRenegotiation: object({
|
|
24034
|
+
target: WebrtcStreamTargetSchema,
|
|
24035
|
+
epoch: number()
|
|
24036
|
+
}).nullable(),
|
|
24037
|
+
/**
|
|
24038
|
+
* Whether the session still EXISTS.
|
|
24039
|
+
*
|
|
24040
|
+
* A consumer that holds a resource for the life of a session needs to
|
|
24041
|
+
* be able to ask, because a session does not always end the way it
|
|
24042
|
+
* began. Measured on this hub 2026-09-13: an Echo that got stuck never
|
|
24043
|
+
* sent `SessionDisconnected`, so the Alexa exporter's
|
|
24044
|
+
* `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
|
|
24045
|
+
* H.264 transcode kept running for NOBODY for more than twenty
|
|
24046
|
+
* minutes. The WebRTC session had logged `WebRTC session closed`
|
|
24047
|
+
* minutes earlier — the broker knew; the holder had no way to ask.
|
|
24048
|
+
*
|
|
24049
|
+
* `false` for a session id the provider has never heard of, which is
|
|
24050
|
+
* the same answer as "it ended": either way nothing is holding it up.
|
|
24051
|
+
*/
|
|
24052
|
+
alive: boolean()
|
|
24053
|
+
}));
|
|
23794
24054
|
object({
|
|
23795
24055
|
/** All accessory children of the parent. */
|
|
23796
24056
|
childDeviceIds: array(number()).readonly(),
|
|
@@ -30083,7 +30343,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
30083
30343
|
* disarmed the channels it did not mention would make the Levels page and
|
|
30084
30344
|
* the Diagnostics page fight over the same value.
|
|
30085
30345
|
*/
|
|
30086
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30346
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30347
|
+
/**
|
|
30348
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30349
|
+
* retention actually deleted.
|
|
30350
|
+
*
|
|
30351
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30352
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30353
|
+
* this system is configured through this one document, and a retention audit
|
|
30354
|
+
* configured somewhere else is a second place to look when the question is
|
|
30355
|
+
* "what happened to my data".
|
|
30356
|
+
*
|
|
30357
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30358
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30359
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30360
|
+
*
|
|
30361
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30362
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30363
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30364
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30365
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30366
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30367
|
+
*/
|
|
30368
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
30087
30369
|
});
|
|
30088
30370
|
/**
|
|
30089
30371
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -30156,6 +30438,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
30156
30438
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
30157
30439
|
/** The channels ARMED right now, each with its deadline. */
|
|
30158
30440
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30441
|
+
/**
|
|
30442
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30443
|
+
*
|
|
30444
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30445
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30446
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30447
|
+
*/
|
|
30448
|
+
opsLogRetentionDays: number().int().min(0),
|
|
30159
30449
|
persisted: boolean()
|
|
30160
30450
|
});
|
|
30161
30451
|
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(), {
|
|
@@ -34315,6 +34605,12 @@ Object.freeze({
|
|
|
34315
34605
|
addonId: null,
|
|
34316
34606
|
access: "view"
|
|
34317
34607
|
},
|
|
34608
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34609
|
+
capName: "pipeline-analytics",
|
|
34610
|
+
capScope: "device",
|
|
34611
|
+
addonId: null,
|
|
34612
|
+
access: "view"
|
|
34613
|
+
},
|
|
34318
34614
|
"pipelineAnalytics.listRecentTracks": {
|
|
34319
34615
|
capName: "pipeline-analytics",
|
|
34320
34616
|
capScope: "device",
|
|
@@ -36277,6 +36573,12 @@ Object.freeze({
|
|
|
36277
36573
|
addonId: null,
|
|
36278
36574
|
access: "create"
|
|
36279
36575
|
},
|
|
36576
|
+
"streamBroker.reportStreamSignal": {
|
|
36577
|
+
capName: "stream-broker",
|
|
36578
|
+
capScope: "system",
|
|
36579
|
+
addonId: null,
|
|
36580
|
+
access: "create"
|
|
36581
|
+
},
|
|
36280
36582
|
"streamBroker.restartProfile": {
|
|
36281
36583
|
capName: "stream-broker",
|
|
36282
36584
|
capScope: "system",
|
|
@@ -36361,6 +36663,12 @@ Object.freeze({
|
|
|
36361
36663
|
addonId: null,
|
|
36362
36664
|
access: "create"
|
|
36363
36665
|
},
|
|
36666
|
+
"streamSignals.listSignals": {
|
|
36667
|
+
capName: "stream-signals",
|
|
36668
|
+
capScope: "device",
|
|
36669
|
+
addonId: null,
|
|
36670
|
+
access: "view"
|
|
36671
|
+
},
|
|
36364
36672
|
"switch.setState": {
|
|
36365
36673
|
capName: "switch",
|
|
36366
36674
|
capScope: "device",
|
|
@@ -38142,6 +38450,11 @@ Object.freeze({
|
|
|
38142
38450
|
form: "single",
|
|
38143
38451
|
optional: true
|
|
38144
38452
|
}],
|
|
38453
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38454
|
+
name: "deviceIds",
|
|
38455
|
+
form: "array",
|
|
38456
|
+
optional: false
|
|
38457
|
+
}],
|
|
38145
38458
|
"pipelineAnalytics.listRecentTracks": [{
|
|
38146
38459
|
name: "deviceIds",
|
|
38147
38460
|
form: "array",
|
|
@@ -38728,6 +39041,11 @@ Object.freeze({
|
|
|
38728
39041
|
form: "single",
|
|
38729
39042
|
optional: false
|
|
38730
39043
|
}],
|
|
39044
|
+
"streamBroker.reportStreamSignal": [{
|
|
39045
|
+
name: "deviceId",
|
|
39046
|
+
form: "single",
|
|
39047
|
+
optional: false
|
|
39048
|
+
}],
|
|
38731
39049
|
"streamBroker.restartProfile": [{
|
|
38732
39050
|
name: "deviceId",
|
|
38733
39051
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-google",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.66",
|
|
4
4
|
"description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|