@camstack/addon-export-alexa 1.2.78 → 1.2.79
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.
|
@@ -6472,6 +6472,21 @@ var CameraStreamSchema = object({
|
|
|
6472
6472
|
*/
|
|
6473
6473
|
autoEligible: boolean().optional(),
|
|
6474
6474
|
/**
|
|
6475
|
+
* The profile slot the PUBLISHER says this stream is: `low` for a stream
|
|
6476
|
+
* whose only sensible role is the low-bandwidth one, `high` for a main
|
|
6477
|
+
* stream. Consulted by the broker's automatic ranking
|
|
6478
|
+
* (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
|
|
6479
|
+
* an operator's manual assignment still wins, and an absent hint is the
|
|
6480
|
+
* pixel-ranked default every camera had before this field existed.
|
|
6481
|
+
*
|
|
6482
|
+
* Why it exists: a camera with ONE stream ranked to `mid` — the slot no
|
|
6483
|
+
* storage class is written for on its own (`recordings` is high|mid,
|
|
6484
|
+
* `recordingsLow` is low) and the one profile scrub does not read. The robot
|
|
6485
|
+
* camera's single 720p relay is a `low` in every respect except the slot the
|
|
6486
|
+
* heuristic put it in.
|
|
6487
|
+
*/
|
|
6488
|
+
profileHint: CamProfileSchema.optional(),
|
|
6489
|
+
/**
|
|
6475
6490
|
* Transport-specific opaque metadata. The broker passes it through to
|
|
6476
6491
|
* the source reader without inspecting it. Currently used by
|
|
6477
6492
|
* `pull-rfc4571` streams to carry the upstream SDP (so the reader can
|
|
@@ -8062,7 +8077,22 @@ var RecordingTriggersSchema = object({
|
|
|
8062
8077
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
8063
8078
|
* registrare.
|
|
8064
8079
|
*/
|
|
8065
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
8080
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
|
|
8081
|
+
/**
|
|
8082
|
+
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
8083
|
+
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
8084
|
+
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
8085
|
+
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
8086
|
+
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
8087
|
+
*
|
|
8088
|
+
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
8089
|
+
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
8090
|
+
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
8091
|
+
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
8092
|
+
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
8093
|
+
* (`holdTrigger` / `releaseTrigger`).
|
|
8094
|
+
*/
|
|
8095
|
+
deviceSignal: boolean().optional()
|
|
8066
8096
|
});
|
|
8067
8097
|
/**
|
|
8068
8098
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -11606,6 +11636,8 @@ method(object({
|
|
|
11606
11636
|
label: string().optional(),
|
|
11607
11637
|
deviceFeatures: array(string()).optional(),
|
|
11608
11638
|
autoEligible: boolean().optional(),
|
|
11639
|
+
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
11640
|
+
profileHint: CamProfileSchema.optional(),
|
|
11609
11641
|
metadata: record(string(), unknown()).optional(),
|
|
11610
11642
|
/** Required when kind === 'derived' — the source camStreamId the
|
|
11611
11643
|
* derived broker reads its encoded plane from.
|
|
@@ -27978,6 +28010,47 @@ method(object({
|
|
|
27978
28010
|
auth: "protected"
|
|
27979
28011
|
});
|
|
27980
28012
|
/**
|
|
28013
|
+
* A camera's own "record me NOW" LEVEL — a signal the device raises while
|
|
28014
|
+
* something it knows about is happening (a robot vacuum cleaning, a machine
|
|
28015
|
+
* running, a gate open) and lowers when it stops.
|
|
28016
|
+
*
|
|
28017
|
+
* It is a level, not an edge. The sensor triggers the recorder already listens
|
|
28018
|
+
* to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
|
|
28019
|
+
* post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
|
|
28020
|
+
* still happening" cannot be expressed as an edge plus a post-buffer without
|
|
28021
|
+
* either re-triggering on a timer (polling — D224 forbids the consumer keeping
|
|
28022
|
+
* the fact fresh) or picking a post-buffer long enough to cover every job,
|
|
28023
|
+
* which records the dock for that long after every short one. So the recorder
|
|
28024
|
+
* reads the LEVEL: it records for as long as `active` is true, plus the band's
|
|
28025
|
+
* own post-buffer once it falls.
|
|
28026
|
+
*
|
|
28027
|
+
* Who owns the fact: the PROVIDER of the device, which already reads the state
|
|
28028
|
+
* the signal is derived from (the vacuum's lifecycle state, for Dreame). It
|
|
28029
|
+
* writes this slice on every change; consumers subscribe to the kernel's
|
|
28030
|
+
* `DeviceStateChanged` for it and read it back through
|
|
28031
|
+
* `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
|
|
28032
|
+
* against the device (D224, D8/D11).
|
|
28033
|
+
*
|
|
28034
|
+
* Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
|
|
28035
|
+
* to Home Assistant, HomeKit and the sensor picker as a thing an operator can
|
|
28036
|
+
* bind, and "the camera wants to record" is not a room sensor. It is a fact
|
|
28037
|
+
* about the camera, on the camera.
|
|
28038
|
+
*/
|
|
28039
|
+
var RecordingSignalStatusSchema = object({
|
|
28040
|
+
/** True while the device asks to be recorded. */
|
|
28041
|
+
active: boolean(),
|
|
28042
|
+
/**
|
|
28043
|
+
* Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
|
|
28044
|
+
* …). Free text for the log line and the UI badge; the recorder never
|
|
28045
|
+
* branches on it.
|
|
28046
|
+
*/
|
|
28047
|
+
reason: string(),
|
|
28048
|
+
/** Ms epoch of the last `active` transition. 0 if never observed. */
|
|
28049
|
+
lastChangedAt: number()
|
|
28050
|
+
});
|
|
28051
|
+
RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
|
|
28052
|
+
DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
|
|
28053
|
+
/**
|
|
27981
28054
|
* scene-monitor — device-scoped reference-region state cap. An operator marks
|
|
27982
28055
|
* a rect ROI on a camera frame and names one or more states; the engine
|
|
27983
28056
|
* (pipeline-analytics, designated post-processing node) reports which state is
|
|
@@ -28350,6 +28423,8 @@ var CamStreamDescriptorSchema = object({
|
|
|
28350
28423
|
deviceFeatures: array(string()).optional(),
|
|
28351
28424
|
/** Eligible for automatic profile assignment. Absent = `true`. */
|
|
28352
28425
|
autoEligible: boolean().optional(),
|
|
28426
|
+
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
28427
|
+
profileHint: CamProfileSchema.optional(),
|
|
28353
28428
|
/** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
|
|
28354
28429
|
metadata: record(string(), unknown()).optional()
|
|
28355
28430
|
});
|
|
@@ -34295,6 +34370,12 @@ Object.freeze({
|
|
|
34295
34370
|
addonId: null,
|
|
34296
34371
|
access: "view"
|
|
34297
34372
|
},
|
|
34373
|
+
"recordingSignal.getStatus": {
|
|
34374
|
+
capName: "recording-signal",
|
|
34375
|
+
capScope: "device",
|
|
34376
|
+
addonId: null,
|
|
34377
|
+
access: "view"
|
|
34378
|
+
},
|
|
34298
34379
|
"sceneMonitor.captureReference": {
|
|
34299
34380
|
capName: "scene-monitor",
|
|
34300
34381
|
capScope: "device",
|
|
@@ -37287,6 +37368,11 @@ Object.freeze({
|
|
|
37287
37368
|
form: "single",
|
|
37288
37369
|
optional: true
|
|
37289
37370
|
}],
|
|
37371
|
+
"recordingSignal.getStatus": [{
|
|
37372
|
+
name: "deviceId",
|
|
37373
|
+
form: "single",
|
|
37374
|
+
optional: false
|
|
37375
|
+
}],
|
|
37290
37376
|
"sceneMonitor.captureReference": [{
|
|
37291
37377
|
name: "deviceId",
|
|
37292
37378
|
form: "single",
|
|
@@ -6445,6 +6445,21 @@ var CameraStreamSchema = object({
|
|
|
6445
6445
|
*/
|
|
6446
6446
|
autoEligible: boolean().optional(),
|
|
6447
6447
|
/**
|
|
6448
|
+
* The profile slot the PUBLISHER says this stream is: `low` for a stream
|
|
6449
|
+
* whose only sensible role is the low-bandwidth one, `high` for a main
|
|
6450
|
+
* stream. Consulted by the broker's automatic ranking
|
|
6451
|
+
* (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
|
|
6452
|
+
* an operator's manual assignment still wins, and an absent hint is the
|
|
6453
|
+
* pixel-ranked default every camera had before this field existed.
|
|
6454
|
+
*
|
|
6455
|
+
* Why it exists: a camera with ONE stream ranked to `mid` — the slot no
|
|
6456
|
+
* storage class is written for on its own (`recordings` is high|mid,
|
|
6457
|
+
* `recordingsLow` is low) and the one profile scrub does not read. The robot
|
|
6458
|
+
* camera's single 720p relay is a `low` in every respect except the slot the
|
|
6459
|
+
* heuristic put it in.
|
|
6460
|
+
*/
|
|
6461
|
+
profileHint: CamProfileSchema.optional(),
|
|
6462
|
+
/**
|
|
6448
6463
|
* Transport-specific opaque metadata. The broker passes it through to
|
|
6449
6464
|
* the source reader without inspecting it. Currently used by
|
|
6450
6465
|
* `pull-rfc4571` streams to carry the upstream SDP (so the reader can
|
|
@@ -8035,7 +8050,22 @@ var RecordingTriggersSchema = object({
|
|
|
8035
8050
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
8036
8051
|
* registrare.
|
|
8037
8052
|
*/
|
|
8038
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
8053
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
|
|
8054
|
+
/**
|
|
8055
|
+
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
8056
|
+
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
8057
|
+
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
8058
|
+
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
8059
|
+
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
8060
|
+
*
|
|
8061
|
+
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
8062
|
+
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
8063
|
+
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
8064
|
+
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
8065
|
+
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
8066
|
+
* (`holdTrigger` / `releaseTrigger`).
|
|
8067
|
+
*/
|
|
8068
|
+
deviceSignal: boolean().optional()
|
|
8039
8069
|
});
|
|
8040
8070
|
/**
|
|
8041
8071
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -11579,6 +11609,8 @@ method(object({
|
|
|
11579
11609
|
label: string().optional(),
|
|
11580
11610
|
deviceFeatures: array(string()).optional(),
|
|
11581
11611
|
autoEligible: boolean().optional(),
|
|
11612
|
+
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
11613
|
+
profileHint: CamProfileSchema.optional(),
|
|
11582
11614
|
metadata: record(string(), unknown()).optional(),
|
|
11583
11615
|
/** Required when kind === 'derived' — the source camStreamId the
|
|
11584
11616
|
* derived broker reads its encoded plane from.
|
|
@@ -27951,6 +27983,47 @@ method(object({
|
|
|
27951
27983
|
auth: "protected"
|
|
27952
27984
|
});
|
|
27953
27985
|
/**
|
|
27986
|
+
* A camera's own "record me NOW" LEVEL — a signal the device raises while
|
|
27987
|
+
* something it knows about is happening (a robot vacuum cleaning, a machine
|
|
27988
|
+
* running, a gate open) and lowers when it stops.
|
|
27989
|
+
*
|
|
27990
|
+
* It is a level, not an edge. The sensor triggers the recorder already listens
|
|
27991
|
+
* to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
|
|
27992
|
+
* post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
|
|
27993
|
+
* still happening" cannot be expressed as an edge plus a post-buffer without
|
|
27994
|
+
* either re-triggering on a timer (polling — D224 forbids the consumer keeping
|
|
27995
|
+
* the fact fresh) or picking a post-buffer long enough to cover every job,
|
|
27996
|
+
* which records the dock for that long after every short one. So the recorder
|
|
27997
|
+
* reads the LEVEL: it records for as long as `active` is true, plus the band's
|
|
27998
|
+
* own post-buffer once it falls.
|
|
27999
|
+
*
|
|
28000
|
+
* Who owns the fact: the PROVIDER of the device, which already reads the state
|
|
28001
|
+
* the signal is derived from (the vacuum's lifecycle state, for Dreame). It
|
|
28002
|
+
* writes this slice on every change; consumers subscribe to the kernel's
|
|
28003
|
+
* `DeviceStateChanged` for it and read it back through
|
|
28004
|
+
* `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
|
|
28005
|
+
* against the device (D224, D8/D11).
|
|
28006
|
+
*
|
|
28007
|
+
* Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
|
|
28008
|
+
* to Home Assistant, HomeKit and the sensor picker as a thing an operator can
|
|
28009
|
+
* bind, and "the camera wants to record" is not a room sensor. It is a fact
|
|
28010
|
+
* about the camera, on the camera.
|
|
28011
|
+
*/
|
|
28012
|
+
var RecordingSignalStatusSchema = object({
|
|
28013
|
+
/** True while the device asks to be recorded. */
|
|
28014
|
+
active: boolean(),
|
|
28015
|
+
/**
|
|
28016
|
+
* Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
|
|
28017
|
+
* …). Free text for the log line and the UI badge; the recorder never
|
|
28018
|
+
* branches on it.
|
|
28019
|
+
*/
|
|
28020
|
+
reason: string(),
|
|
28021
|
+
/** Ms epoch of the last `active` transition. 0 if never observed. */
|
|
28022
|
+
lastChangedAt: number()
|
|
28023
|
+
});
|
|
28024
|
+
RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
|
|
28025
|
+
DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
|
|
28026
|
+
/**
|
|
27954
28027
|
* scene-monitor — device-scoped reference-region state cap. An operator marks
|
|
27955
28028
|
* a rect ROI on a camera frame and names one or more states; the engine
|
|
27956
28029
|
* (pipeline-analytics, designated post-processing node) reports which state is
|
|
@@ -28323,6 +28396,8 @@ var CamStreamDescriptorSchema = object({
|
|
|
28323
28396
|
deviceFeatures: array(string()).optional(),
|
|
28324
28397
|
/** Eligible for automatic profile assignment. Absent = `true`. */
|
|
28325
28398
|
autoEligible: boolean().optional(),
|
|
28399
|
+
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
28400
|
+
profileHint: CamProfileSchema.optional(),
|
|
28326
28401
|
/** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
|
|
28327
28402
|
metadata: record(string(), unknown()).optional()
|
|
28328
28403
|
});
|
|
@@ -34268,6 +34343,12 @@ Object.freeze({
|
|
|
34268
34343
|
addonId: null,
|
|
34269
34344
|
access: "view"
|
|
34270
34345
|
},
|
|
34346
|
+
"recordingSignal.getStatus": {
|
|
34347
|
+
capName: "recording-signal",
|
|
34348
|
+
capScope: "device",
|
|
34349
|
+
addonId: null,
|
|
34350
|
+
access: "view"
|
|
34351
|
+
},
|
|
34271
34352
|
"sceneMonitor.captureReference": {
|
|
34272
34353
|
capName: "scene-monitor",
|
|
34273
34354
|
capScope: "device",
|
|
@@ -37260,6 +37341,11 @@ Object.freeze({
|
|
|
37260
37341
|
form: "single",
|
|
37261
37342
|
optional: true
|
|
37262
37343
|
}],
|
|
37344
|
+
"recordingSignal.getStatus": [{
|
|
37345
|
+
name: "deviceId",
|
|
37346
|
+
form: "single",
|
|
37347
|
+
optional: false
|
|
37348
|
+
}],
|
|
37263
37349
|
"sceneMonitor.captureReference": [{
|
|
37264
37350
|
name: "deviceId",
|
|
37265
37351
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-alexa",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.79",
|
|
4
4
|
"description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|