@camstack/addon-export-alexa 1.2.77 → 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.
|
@@ -5433,6 +5433,12 @@ Object.fromEntries([
|
|
|
5433
5433
|
icon: "move",
|
|
5434
5434
|
order: 40
|
|
5435
5435
|
},
|
|
5436
|
+
{
|
|
5437
|
+
id: "navigation",
|
|
5438
|
+
label: "Navigation",
|
|
5439
|
+
icon: "compass",
|
|
5440
|
+
order: 41
|
|
5441
|
+
},
|
|
5436
5442
|
{
|
|
5437
5443
|
id: "consumables",
|
|
5438
5444
|
label: "Consumables",
|
|
@@ -6466,6 +6472,21 @@ var CameraStreamSchema = object({
|
|
|
6466
6472
|
*/
|
|
6467
6473
|
autoEligible: boolean().optional(),
|
|
6468
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
|
+
/**
|
|
6469
6490
|
* Transport-specific opaque metadata. The broker passes it through to
|
|
6470
6491
|
* the source reader without inspecting it. Currently used by
|
|
6471
6492
|
* `pull-rfc4571` streams to carry the upstream SDP (so the reader can
|
|
@@ -8056,7 +8077,22 @@ var RecordingTriggersSchema = object({
|
|
|
8056
8077
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
8057
8078
|
* registrare.
|
|
8058
8079
|
*/
|
|
8059
|
-
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()
|
|
8060
8096
|
});
|
|
8061
8097
|
/**
|
|
8062
8098
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -11600,6 +11636,8 @@ method(object({
|
|
|
11600
11636
|
label: string().optional(),
|
|
11601
11637
|
deviceFeatures: array(string()).optional(),
|
|
11602
11638
|
autoEligible: boolean().optional(),
|
|
11639
|
+
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
11640
|
+
profileHint: CamProfileSchema.optional(),
|
|
11603
11641
|
metadata: record(string(), unknown()).optional(),
|
|
11604
11642
|
/** Required when kind === 'derived' — the source camStreamId the
|
|
11605
11643
|
* derived broker reads its encoded plane from.
|
|
@@ -27972,6 +28010,47 @@ method(object({
|
|
|
27972
28010
|
auth: "protected"
|
|
27973
28011
|
});
|
|
27974
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
|
+
/**
|
|
27975
28054
|
* scene-monitor — device-scoped reference-region state cap. An operator marks
|
|
27976
28055
|
* a rect ROI on a camera frame and names one or more states; the engine
|
|
27977
28056
|
* (pipeline-analytics, designated post-processing node) reports which state is
|
|
@@ -28344,6 +28423,8 @@ var CamStreamDescriptorSchema = object({
|
|
|
28344
28423
|
deviceFeatures: array(string()).optional(),
|
|
28345
28424
|
/** Eligible for automatic profile assignment. Absent = `true`. */
|
|
28346
28425
|
autoEligible: boolean().optional(),
|
|
28426
|
+
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
28427
|
+
profileHint: CamProfileSchema.optional(),
|
|
28347
28428
|
/** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
|
|
28348
28429
|
metadata: record(string(), unknown()).optional()
|
|
28349
28430
|
});
|
|
@@ -34289,6 +34370,12 @@ Object.freeze({
|
|
|
34289
34370
|
addonId: null,
|
|
34290
34371
|
access: "view"
|
|
34291
34372
|
},
|
|
34373
|
+
"recordingSignal.getStatus": {
|
|
34374
|
+
capName: "recording-signal",
|
|
34375
|
+
capScope: "device",
|
|
34376
|
+
addonId: null,
|
|
34377
|
+
access: "view"
|
|
34378
|
+
},
|
|
34292
34379
|
"sceneMonitor.captureReference": {
|
|
34293
34380
|
capName: "scene-monitor",
|
|
34294
34381
|
capScope: "device",
|
|
@@ -37281,6 +37368,11 @@ Object.freeze({
|
|
|
37281
37368
|
form: "single",
|
|
37282
37369
|
optional: true
|
|
37283
37370
|
}],
|
|
37371
|
+
"recordingSignal.getStatus": [{
|
|
37372
|
+
name: "deviceId",
|
|
37373
|
+
form: "single",
|
|
37374
|
+
optional: false
|
|
37375
|
+
}],
|
|
37284
37376
|
"sceneMonitor.captureReference": [{
|
|
37285
37377
|
name: "deviceId",
|
|
37286
37378
|
form: "single",
|
|
@@ -5406,6 +5406,12 @@ Object.fromEntries([
|
|
|
5406
5406
|
icon: "move",
|
|
5407
5407
|
order: 40
|
|
5408
5408
|
},
|
|
5409
|
+
{
|
|
5410
|
+
id: "navigation",
|
|
5411
|
+
label: "Navigation",
|
|
5412
|
+
icon: "compass",
|
|
5413
|
+
order: 41
|
|
5414
|
+
},
|
|
5409
5415
|
{
|
|
5410
5416
|
id: "consumables",
|
|
5411
5417
|
label: "Consumables",
|
|
@@ -6439,6 +6445,21 @@ var CameraStreamSchema = object({
|
|
|
6439
6445
|
*/
|
|
6440
6446
|
autoEligible: boolean().optional(),
|
|
6441
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
|
+
/**
|
|
6442
6463
|
* Transport-specific opaque metadata. The broker passes it through to
|
|
6443
6464
|
* the source reader without inspecting it. Currently used by
|
|
6444
6465
|
* `pull-rfc4571` streams to carry the upstream SDP (so the reader can
|
|
@@ -8029,7 +8050,22 @@ var RecordingTriggersSchema = object({
|
|
|
8029
8050
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
8030
8051
|
* registrare.
|
|
8031
8052
|
*/
|
|
8032
|
-
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()
|
|
8033
8069
|
});
|
|
8034
8070
|
/**
|
|
8035
8071
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -11573,6 +11609,8 @@ method(object({
|
|
|
11573
11609
|
label: string().optional(),
|
|
11574
11610
|
deviceFeatures: array(string()).optional(),
|
|
11575
11611
|
autoEligible: boolean().optional(),
|
|
11612
|
+
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
11613
|
+
profileHint: CamProfileSchema.optional(),
|
|
11576
11614
|
metadata: record(string(), unknown()).optional(),
|
|
11577
11615
|
/** Required when kind === 'derived' — the source camStreamId the
|
|
11578
11616
|
* derived broker reads its encoded plane from.
|
|
@@ -27945,6 +27983,47 @@ method(object({
|
|
|
27945
27983
|
auth: "protected"
|
|
27946
27984
|
});
|
|
27947
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
|
+
/**
|
|
27948
28027
|
* scene-monitor — device-scoped reference-region state cap. An operator marks
|
|
27949
28028
|
* a rect ROI on a camera frame and names one or more states; the engine
|
|
27950
28029
|
* (pipeline-analytics, designated post-processing node) reports which state is
|
|
@@ -28317,6 +28396,8 @@ var CamStreamDescriptorSchema = object({
|
|
|
28317
28396
|
deviceFeatures: array(string()).optional(),
|
|
28318
28397
|
/** Eligible for automatic profile assignment. Absent = `true`. */
|
|
28319
28398
|
autoEligible: boolean().optional(),
|
|
28399
|
+
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
28400
|
+
profileHint: CamProfileSchema.optional(),
|
|
28320
28401
|
/** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
|
|
28321
28402
|
metadata: record(string(), unknown()).optional()
|
|
28322
28403
|
});
|
|
@@ -34262,6 +34343,12 @@ Object.freeze({
|
|
|
34262
34343
|
addonId: null,
|
|
34263
34344
|
access: "view"
|
|
34264
34345
|
},
|
|
34346
|
+
"recordingSignal.getStatus": {
|
|
34347
|
+
capName: "recording-signal",
|
|
34348
|
+
capScope: "device",
|
|
34349
|
+
addonId: null,
|
|
34350
|
+
access: "view"
|
|
34351
|
+
},
|
|
34265
34352
|
"sceneMonitor.captureReference": {
|
|
34266
34353
|
capName: "scene-monitor",
|
|
34267
34354
|
capScope: "device",
|
|
@@ -37254,6 +37341,11 @@ Object.freeze({
|
|
|
37254
37341
|
form: "single",
|
|
37255
37342
|
optional: true
|
|
37256
37343
|
}],
|
|
37344
|
+
"recordingSignal.getStatus": [{
|
|
37345
|
+
name: "deviceId",
|
|
37346
|
+
form: "single",
|
|
37347
|
+
optional: false
|
|
37348
|
+
}],
|
|
37257
37349
|
"sceneMonitor.captureReference": [{
|
|
37258
37350
|
name: "deviceId",
|
|
37259
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",
|