@camstack/addon-export-google 0.1.65 → 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 +173 -8
- package/dist/export-google.addon.mjs +173 -8
- 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).
|
|
@@ -11707,6 +11721,58 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
11707
11721
|
auth: "admin"
|
|
11708
11722
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
11709
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());
|
|
11710
11776
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
11711
11777
|
var StreamFormatSchema = _enum([
|
|
11712
11778
|
"webrtc",
|
|
@@ -12103,6 +12169,22 @@ var EgressTranscodeSchema = object({
|
|
|
12103
12169
|
camStreamId: string().nullable()
|
|
12104
12170
|
});
|
|
12105
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({
|
|
12106
12188
|
deviceId: number().int().nonnegative(),
|
|
12107
12189
|
camStreamId: string().min(1),
|
|
12108
12190
|
kind: CamStreamKindSchema,
|
|
@@ -12357,6 +12439,16 @@ var PickStreamRequirementsSchema = object({
|
|
|
12357
12439
|
acceptCodecs: array(StreamCodecSchema).readonly().optional(),
|
|
12358
12440
|
/** Minimum vertical resolution. Streams shorter than this are dropped. */
|
|
12359
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(),
|
|
12360
12452
|
/** Minimum horizontal resolution. */
|
|
12361
12453
|
minWidth: number().int().positive().optional(),
|
|
12362
12454
|
/**
|
|
@@ -12373,7 +12465,22 @@ var PickStreamRequirementsSchema = object({
|
|
|
12373
12465
|
* transcoded" guard: if the device is already serving the consumer's
|
|
12374
12466
|
* codec end-to-end, there's nothing to optimise.
|
|
12375
12467
|
*/
|
|
12376
|
-
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()
|
|
12377
12484
|
}).readonly();
|
|
12378
12485
|
var PickStreamPreferencesSchema = object({
|
|
12379
12486
|
/**
|
|
@@ -12387,12 +12494,32 @@ var PickStreamPreferencesSchema = object({
|
|
|
12387
12494
|
* picks the tallest stream; `'lowest'` picks the shortest (used by
|
|
12388
12495
|
* memory-constrained consumers / Apple Home guest sessions).
|
|
12389
12496
|
*/
|
|
12390
|
-
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()
|
|
12391
12510
|
}).readonly();
|
|
12392
12511
|
var PickedCamStreamSchema = object({
|
|
12393
12512
|
camStreamId: string(),
|
|
12394
12513
|
codec: string().optional(),
|
|
12395
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(),
|
|
12396
12523
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12397
12524
|
reason: string()
|
|
12398
12525
|
});
|
|
@@ -16628,6 +16755,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16628
16755
|
"device-enabled",
|
|
16629
16756
|
"device-battery-low",
|
|
16630
16757
|
"device-battery-normal",
|
|
16758
|
+
"device-consumable-low",
|
|
16759
|
+
"device-consumable-normal",
|
|
16631
16760
|
"stream-online",
|
|
16632
16761
|
"stream-offline",
|
|
16633
16762
|
"node-online",
|
|
@@ -16646,6 +16775,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16646
16775
|
"addon-updated",
|
|
16647
16776
|
"server-updated",
|
|
16648
16777
|
"export-completed",
|
|
16778
|
+
"backup-completed",
|
|
16649
16779
|
"camera-online",
|
|
16650
16780
|
"camera-offline",
|
|
16651
16781
|
"camera-disabled",
|
|
@@ -23903,10 +24033,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
23903
24033
|
}), boolean()), method(object({
|
|
23904
24034
|
deviceId: number().int().nonnegative(),
|
|
23905
24035
|
sessionId: string()
|
|
23906
|
-
}), object({
|
|
23907
|
-
|
|
23908
|
-
|
|
23909
|
-
|
|
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
|
+
}));
|
|
23910
24058
|
object({
|
|
23911
24059
|
/** All accessory children of the parent. */
|
|
23912
24060
|
childDeviceIds: array(number()).readonly(),
|
|
@@ -36429,6 +36577,12 @@ Object.freeze({
|
|
|
36429
36577
|
addonId: null,
|
|
36430
36578
|
access: "create"
|
|
36431
36579
|
},
|
|
36580
|
+
"streamBroker.reportStreamSignal": {
|
|
36581
|
+
capName: "stream-broker",
|
|
36582
|
+
capScope: "system",
|
|
36583
|
+
addonId: null,
|
|
36584
|
+
access: "create"
|
|
36585
|
+
},
|
|
36432
36586
|
"streamBroker.restartProfile": {
|
|
36433
36587
|
capName: "stream-broker",
|
|
36434
36588
|
capScope: "system",
|
|
@@ -36513,6 +36667,12 @@ Object.freeze({
|
|
|
36513
36667
|
addonId: null,
|
|
36514
36668
|
access: "create"
|
|
36515
36669
|
},
|
|
36670
|
+
"streamSignals.listSignals": {
|
|
36671
|
+
capName: "stream-signals",
|
|
36672
|
+
capScope: "device",
|
|
36673
|
+
addonId: null,
|
|
36674
|
+
access: "view"
|
|
36675
|
+
},
|
|
36516
36676
|
"switch.setState": {
|
|
36517
36677
|
capName: "switch",
|
|
36518
36678
|
capScope: "device",
|
|
@@ -38885,6 +39045,11 @@ Object.freeze({
|
|
|
38885
39045
|
form: "single",
|
|
38886
39046
|
optional: false
|
|
38887
39047
|
}],
|
|
39048
|
+
"streamBroker.reportStreamSignal": [{
|
|
39049
|
+
name: "deviceId",
|
|
39050
|
+
form: "single",
|
|
39051
|
+
optional: false
|
|
39052
|
+
}],
|
|
38888
39053
|
"streamBroker.restartProfile": [{
|
|
38889
39054
|
name: "deviceId",
|
|
38890
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).
|
|
@@ -11703,6 +11717,58 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
11703
11717
|
auth: "admin"
|
|
11704
11718
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
11705
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());
|
|
11706
11772
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
11707
11773
|
var StreamFormatSchema = _enum([
|
|
11708
11774
|
"webrtc",
|
|
@@ -12099,6 +12165,22 @@ var EgressTranscodeSchema = object({
|
|
|
12099
12165
|
camStreamId: string().nullable()
|
|
12100
12166
|
});
|
|
12101
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({
|
|
12102
12184
|
deviceId: number().int().nonnegative(),
|
|
12103
12185
|
camStreamId: string().min(1),
|
|
12104
12186
|
kind: CamStreamKindSchema,
|
|
@@ -12353,6 +12435,16 @@ var PickStreamRequirementsSchema = object({
|
|
|
12353
12435
|
acceptCodecs: array(StreamCodecSchema).readonly().optional(),
|
|
12354
12436
|
/** Minimum vertical resolution. Streams shorter than this are dropped. */
|
|
12355
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(),
|
|
12356
12448
|
/** Minimum horizontal resolution. */
|
|
12357
12449
|
minWidth: number().int().positive().optional(),
|
|
12358
12450
|
/**
|
|
@@ -12369,7 +12461,22 @@ var PickStreamRequirementsSchema = object({
|
|
|
12369
12461
|
* transcoded" guard: if the device is already serving the consumer's
|
|
12370
12462
|
* codec end-to-end, there's nothing to optimise.
|
|
12371
12463
|
*/
|
|
12372
|
-
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()
|
|
12373
12480
|
}).readonly();
|
|
12374
12481
|
var PickStreamPreferencesSchema = object({
|
|
12375
12482
|
/**
|
|
@@ -12383,12 +12490,32 @@ var PickStreamPreferencesSchema = object({
|
|
|
12383
12490
|
* picks the tallest stream; `'lowest'` picks the shortest (used by
|
|
12384
12491
|
* memory-constrained consumers / Apple Home guest sessions).
|
|
12385
12492
|
*/
|
|
12386
|
-
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()
|
|
12387
12506
|
}).readonly();
|
|
12388
12507
|
var PickedCamStreamSchema = object({
|
|
12389
12508
|
camStreamId: string(),
|
|
12390
12509
|
codec: string().optional(),
|
|
12391
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(),
|
|
12392
12519
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12393
12520
|
reason: string()
|
|
12394
12521
|
});
|
|
@@ -16624,6 +16751,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16624
16751
|
"device-enabled",
|
|
16625
16752
|
"device-battery-low",
|
|
16626
16753
|
"device-battery-normal",
|
|
16754
|
+
"device-consumable-low",
|
|
16755
|
+
"device-consumable-normal",
|
|
16627
16756
|
"stream-online",
|
|
16628
16757
|
"stream-offline",
|
|
16629
16758
|
"node-online",
|
|
@@ -16642,6 +16771,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16642
16771
|
"addon-updated",
|
|
16643
16772
|
"server-updated",
|
|
16644
16773
|
"export-completed",
|
|
16774
|
+
"backup-completed",
|
|
16645
16775
|
"camera-online",
|
|
16646
16776
|
"camera-offline",
|
|
16647
16777
|
"camera-disabled",
|
|
@@ -23899,10 +24029,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
23899
24029
|
}), boolean()), method(object({
|
|
23900
24030
|
deviceId: number().int().nonnegative(),
|
|
23901
24031
|
sessionId: string()
|
|
23902
|
-
}), object({
|
|
23903
|
-
|
|
23904
|
-
|
|
23905
|
-
|
|
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
|
+
}));
|
|
23906
24054
|
object({
|
|
23907
24055
|
/** All accessory children of the parent. */
|
|
23908
24056
|
childDeviceIds: array(number()).readonly(),
|
|
@@ -36425,6 +36573,12 @@ Object.freeze({
|
|
|
36425
36573
|
addonId: null,
|
|
36426
36574
|
access: "create"
|
|
36427
36575
|
},
|
|
36576
|
+
"streamBroker.reportStreamSignal": {
|
|
36577
|
+
capName: "stream-broker",
|
|
36578
|
+
capScope: "system",
|
|
36579
|
+
addonId: null,
|
|
36580
|
+
access: "create"
|
|
36581
|
+
},
|
|
36428
36582
|
"streamBroker.restartProfile": {
|
|
36429
36583
|
capName: "stream-broker",
|
|
36430
36584
|
capScope: "system",
|
|
@@ -36509,6 +36663,12 @@ Object.freeze({
|
|
|
36509
36663
|
addonId: null,
|
|
36510
36664
|
access: "create"
|
|
36511
36665
|
},
|
|
36666
|
+
"streamSignals.listSignals": {
|
|
36667
|
+
capName: "stream-signals",
|
|
36668
|
+
capScope: "device",
|
|
36669
|
+
addonId: null,
|
|
36670
|
+
access: "view"
|
|
36671
|
+
},
|
|
36512
36672
|
"switch.setState": {
|
|
36513
36673
|
capName: "switch",
|
|
36514
36674
|
capScope: "device",
|
|
@@ -38881,6 +39041,11 @@ Object.freeze({
|
|
|
38881
39041
|
form: "single",
|
|
38882
39042
|
optional: false
|
|
38883
39043
|
}],
|
|
39044
|
+
"streamBroker.reportStreamSignal": [{
|
|
39045
|
+
name: "deviceId",
|
|
39046
|
+
form: "single",
|
|
39047
|
+
optional: false
|
|
39048
|
+
}],
|
|
38884
39049
|
"streamBroker.restartProfile": [{
|
|
38885
39050
|
name: "deviceId",
|
|
38886
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",
|