@camstack/addon-matter-broker 0.2.73 → 0.2.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +47 -34
- package/dist/addon.mjs +47 -34
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -7863,17 +7863,29 @@ var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
|
7863
7863
|
/**
|
|
7864
7864
|
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
7865
7865
|
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
7866
|
-
* - `off`
|
|
7867
|
-
* - `events`
|
|
7868
|
-
* - `continuous`
|
|
7869
|
-
*
|
|
7870
|
-
*
|
|
7871
|
-
*
|
|
7866
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
7867
|
+
* - `events` — every band records around triggers only.
|
|
7868
|
+
* - `continuous` — at least one band records continuously.
|
|
7869
|
+
* - `on-device-decision`— the DEVICE decides: recording runs for as long as the
|
|
7870
|
+
* camera raises its own `recording-signal` level (a robot that cleans). There
|
|
7871
|
+
* is no schedule to author, because there is no hour to program — see
|
|
7872
|
+
* {@link RecordingConfigSchema}`.deviceDecision`.
|
|
7873
|
+
*
|
|
7874
|
+
* NEVER authored: the recorder stamps it from the authoritative intent
|
|
7875
|
+
* (`bands` + `deviceDecision`) on every save (`activeModeForConfig`). Writing it
|
|
7876
|
+
* has no effect.
|
|
7877
|
+
*
|
|
7878
|
+
* `on-device-decision` is named for WHO decides, not for how the recording is
|
|
7879
|
+
* requested. `on-demand` was rejected: in this repo's vocabulary a "demand" is
|
|
7880
|
+
* something the operator makes (the live gate is the recorder's own "demand
|
|
7881
|
+
* window"), and a knob whose name suggests the operator starts it while the
|
|
7882
|
+
* device actually does is the D62 shape — a control nobody can predict.
|
|
7872
7883
|
*/
|
|
7873
7884
|
var RecordingStorageModeSchema = _enum([
|
|
7874
7885
|
"off",
|
|
7875
7886
|
"events",
|
|
7876
|
-
"continuous"
|
|
7887
|
+
"continuous",
|
|
7888
|
+
"on-device-decision"
|
|
7877
7889
|
]);
|
|
7878
7890
|
/**
|
|
7879
7891
|
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
@@ -7923,22 +7935,7 @@ var RecordingTriggersSchema = object({
|
|
|
7923
7935
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7924
7936
|
* registrare.
|
|
7925
7937
|
*/
|
|
7926
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7927
|
-
/**
|
|
7928
|
-
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
7929
|
-
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
7930
|
-
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
7931
|
-
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
7932
|
-
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
7933
|
-
*
|
|
7934
|
-
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
7935
|
-
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
7936
|
-
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
7937
|
-
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
7938
|
-
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
7939
|
-
* (`holdTrigger` / `releaseTrigger`).
|
|
7940
|
-
*/
|
|
7941
|
-
deviceSignal: boolean().optional()
|
|
7938
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7942
7939
|
});
|
|
7943
7940
|
/**
|
|
7944
7941
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8022,8 +8019,29 @@ var RecordingConfigSchema = object({
|
|
|
8022
8019
|
* "off" is the absence of a covering band, never a band value.
|
|
8023
8020
|
*/
|
|
8024
8021
|
bands: array(RecordingBandSchema).default([]),
|
|
8022
|
+
/**
|
|
8023
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
8024
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
8025
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
8026
|
+
* recording intent that is not a band.
|
|
8027
|
+
*
|
|
8028
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
8029
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
8030
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
8031
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
8032
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
8033
|
+
* job however long it is, and closes one pad after the fall.
|
|
8034
|
+
*
|
|
8035
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
8036
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
8037
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
8038
|
+
*/
|
|
8039
|
+
deviceDecision: boolean().optional(),
|
|
8025
8040
|
retention: RecordingRetentionSchema.optional()
|
|
8026
|
-
}).strict()
|
|
8041
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
8042
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
8043
|
+
path: ["bands"]
|
|
8044
|
+
});
|
|
8027
8045
|
/**
|
|
8028
8046
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
8029
8047
|
*
|
|
@@ -21105,11 +21123,7 @@ var CameraAudioStatusSchema = object({
|
|
|
21105
21123
|
});
|
|
21106
21124
|
/** Recording block — null when no recording cap is active for this device. */
|
|
21107
21125
|
var CameraRecordingStatusSchema = object({
|
|
21108
|
-
mode:
|
|
21109
|
-
"off",
|
|
21110
|
-
"continuous",
|
|
21111
|
-
"events"
|
|
21112
|
-
]),
|
|
21126
|
+
mode: RecordingStorageModeSchema,
|
|
21113
21127
|
active: boolean(),
|
|
21114
21128
|
storageBytes: number()
|
|
21115
21129
|
});
|
|
@@ -29380,11 +29394,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
29380
29394
|
var RecordingStatusSchema = object({
|
|
29381
29395
|
deviceId: number(),
|
|
29382
29396
|
enabled: boolean(),
|
|
29383
|
-
|
|
29384
|
-
|
|
29385
|
-
|
|
29386
|
-
|
|
29387
|
-
]),
|
|
29397
|
+
/** THE derived storage mode, from the one definition
|
|
29398
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
29399
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
29400
|
+
activeMode: RecordingStorageModeSchema,
|
|
29388
29401
|
nodeId: string$2(),
|
|
29389
29402
|
storageBytes: number()
|
|
29390
29403
|
});
|
package/dist/addon.mjs
CHANGED
|
@@ -7861,17 +7861,29 @@ var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
|
7861
7861
|
/**
|
|
7862
7862
|
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
7863
7863
|
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
7864
|
-
* - `off`
|
|
7865
|
-
* - `events`
|
|
7866
|
-
* - `continuous`
|
|
7867
|
-
*
|
|
7868
|
-
*
|
|
7869
|
-
*
|
|
7864
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
7865
|
+
* - `events` — every band records around triggers only.
|
|
7866
|
+
* - `continuous` — at least one band records continuously.
|
|
7867
|
+
* - `on-device-decision`— the DEVICE decides: recording runs for as long as the
|
|
7868
|
+
* camera raises its own `recording-signal` level (a robot that cleans). There
|
|
7869
|
+
* is no schedule to author, because there is no hour to program — see
|
|
7870
|
+
* {@link RecordingConfigSchema}`.deviceDecision`.
|
|
7871
|
+
*
|
|
7872
|
+
* NEVER authored: the recorder stamps it from the authoritative intent
|
|
7873
|
+
* (`bands` + `deviceDecision`) on every save (`activeModeForConfig`). Writing it
|
|
7874
|
+
* has no effect.
|
|
7875
|
+
*
|
|
7876
|
+
* `on-device-decision` is named for WHO decides, not for how the recording is
|
|
7877
|
+
* requested. `on-demand` was rejected: in this repo's vocabulary a "demand" is
|
|
7878
|
+
* something the operator makes (the live gate is the recorder's own "demand
|
|
7879
|
+
* window"), and a knob whose name suggests the operator starts it while the
|
|
7880
|
+
* device actually does is the D62 shape — a control nobody can predict.
|
|
7870
7881
|
*/
|
|
7871
7882
|
var RecordingStorageModeSchema = _enum([
|
|
7872
7883
|
"off",
|
|
7873
7884
|
"events",
|
|
7874
|
-
"continuous"
|
|
7885
|
+
"continuous",
|
|
7886
|
+
"on-device-decision"
|
|
7875
7887
|
]);
|
|
7876
7888
|
/**
|
|
7877
7889
|
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
@@ -7921,22 +7933,7 @@ var RecordingTriggersSchema = object({
|
|
|
7921
7933
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7922
7934
|
* registrare.
|
|
7923
7935
|
*/
|
|
7924
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7925
|
-
/**
|
|
7926
|
-
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
7927
|
-
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
7928
|
-
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
7929
|
-
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
7930
|
-
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
7931
|
-
*
|
|
7932
|
-
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
7933
|
-
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
7934
|
-
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
7935
|
-
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
7936
|
-
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
7937
|
-
* (`holdTrigger` / `releaseTrigger`).
|
|
7938
|
-
*/
|
|
7939
|
-
deviceSignal: boolean().optional()
|
|
7936
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7940
7937
|
});
|
|
7941
7938
|
/**
|
|
7942
7939
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8020,8 +8017,29 @@ var RecordingConfigSchema = object({
|
|
|
8020
8017
|
* "off" is the absence of a covering band, never a band value.
|
|
8021
8018
|
*/
|
|
8022
8019
|
bands: array(RecordingBandSchema).default([]),
|
|
8020
|
+
/**
|
|
8021
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
8022
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
8023
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
8024
|
+
* recording intent that is not a band.
|
|
8025
|
+
*
|
|
8026
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
8027
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
8028
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
8029
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
8030
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
8031
|
+
* job however long it is, and closes one pad after the fall.
|
|
8032
|
+
*
|
|
8033
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
8034
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
8035
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
8036
|
+
*/
|
|
8037
|
+
deviceDecision: boolean().optional(),
|
|
8023
8038
|
retention: RecordingRetentionSchema.optional()
|
|
8024
|
-
}).strict()
|
|
8039
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
8040
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
8041
|
+
path: ["bands"]
|
|
8042
|
+
});
|
|
8025
8043
|
/**
|
|
8026
8044
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
8027
8045
|
*
|
|
@@ -21103,11 +21121,7 @@ var CameraAudioStatusSchema = object({
|
|
|
21103
21121
|
});
|
|
21104
21122
|
/** Recording block — null when no recording cap is active for this device. */
|
|
21105
21123
|
var CameraRecordingStatusSchema = object({
|
|
21106
|
-
mode:
|
|
21107
|
-
"off",
|
|
21108
|
-
"continuous",
|
|
21109
|
-
"events"
|
|
21110
|
-
]),
|
|
21124
|
+
mode: RecordingStorageModeSchema,
|
|
21111
21125
|
active: boolean(),
|
|
21112
21126
|
storageBytes: number()
|
|
21113
21127
|
});
|
|
@@ -29378,11 +29392,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
29378
29392
|
var RecordingStatusSchema = object({
|
|
29379
29393
|
deviceId: number(),
|
|
29380
29394
|
enabled: boolean(),
|
|
29381
|
-
|
|
29382
|
-
|
|
29383
|
-
|
|
29384
|
-
|
|
29385
|
-
]),
|
|
29395
|
+
/** THE derived storage mode, from the one definition
|
|
29396
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
29397
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
29398
|
+
activeMode: RecordingStorageModeSchema,
|
|
29386
29399
|
nodeId: string$2(),
|
|
29387
29400
|
storageBytes: number()
|
|
29388
29401
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-matter-broker",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.75",
|
|
4
4
|
"description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|