@camstack/addon-provider-rtsp 1.2.74 → 1.2.76
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
|
@@ -7905,17 +7905,29 @@ var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
|
7905
7905
|
/**
|
|
7906
7906
|
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
7907
7907
|
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
7908
|
-
* - `off`
|
|
7909
|
-
* - `events`
|
|
7910
|
-
* - `continuous`
|
|
7911
|
-
*
|
|
7912
|
-
*
|
|
7913
|
-
*
|
|
7908
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
7909
|
+
* - `events` — every band records around triggers only.
|
|
7910
|
+
* - `continuous` — at least one band records continuously.
|
|
7911
|
+
* - `on-device-decision`— the DEVICE decides: recording runs for as long as the
|
|
7912
|
+
* camera raises its own `recording-signal` level (a robot that cleans). There
|
|
7913
|
+
* is no schedule to author, because there is no hour to program — see
|
|
7914
|
+
* {@link RecordingConfigSchema}`.deviceDecision`.
|
|
7915
|
+
*
|
|
7916
|
+
* NEVER authored: the recorder stamps it from the authoritative intent
|
|
7917
|
+
* (`bands` + `deviceDecision`) on every save (`activeModeForConfig`). Writing it
|
|
7918
|
+
* has no effect.
|
|
7919
|
+
*
|
|
7920
|
+
* `on-device-decision` is named for WHO decides, not for how the recording is
|
|
7921
|
+
* requested. `on-demand` was rejected: in this repo's vocabulary a "demand" is
|
|
7922
|
+
* something the operator makes (the live gate is the recorder's own "demand
|
|
7923
|
+
* window"), and a knob whose name suggests the operator starts it while the
|
|
7924
|
+
* device actually does is the D62 shape — a control nobody can predict.
|
|
7914
7925
|
*/
|
|
7915
7926
|
var RecordingStorageModeSchema = _enum([
|
|
7916
7927
|
"off",
|
|
7917
7928
|
"events",
|
|
7918
|
-
"continuous"
|
|
7929
|
+
"continuous",
|
|
7930
|
+
"on-device-decision"
|
|
7919
7931
|
]);
|
|
7920
7932
|
/**
|
|
7921
7933
|
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
@@ -7965,22 +7977,7 @@ var RecordingTriggersSchema = object({
|
|
|
7965
7977
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7966
7978
|
* registrare.
|
|
7967
7979
|
*/
|
|
7968
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7969
|
-
/**
|
|
7970
|
-
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
7971
|
-
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
7972
|
-
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
7973
|
-
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
7974
|
-
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
7975
|
-
*
|
|
7976
|
-
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
7977
|
-
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
7978
|
-
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
7979
|
-
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
7980
|
-
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
7981
|
-
* (`holdTrigger` / `releaseTrigger`).
|
|
7982
|
-
*/
|
|
7983
|
-
deviceSignal: boolean().optional()
|
|
7980
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7984
7981
|
});
|
|
7985
7982
|
/**
|
|
7986
7983
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8064,8 +8061,29 @@ var RecordingConfigSchema = object({
|
|
|
8064
8061
|
* "off" is the absence of a covering band, never a band value.
|
|
8065
8062
|
*/
|
|
8066
8063
|
bands: array(RecordingBandSchema).default([]),
|
|
8064
|
+
/**
|
|
8065
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
8066
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
8067
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
8068
|
+
* recording intent that is not a band.
|
|
8069
|
+
*
|
|
8070
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
8071
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
8072
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
8073
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
8074
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
8075
|
+
* job however long it is, and closes one pad after the fall.
|
|
8076
|
+
*
|
|
8077
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
8078
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
8079
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
8080
|
+
*/
|
|
8081
|
+
deviceDecision: boolean().optional(),
|
|
8067
8082
|
retention: RecordingRetentionSchema.optional()
|
|
8068
|
-
}).strict()
|
|
8083
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
8084
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
8085
|
+
path: ["bands"]
|
|
8086
|
+
});
|
|
8069
8087
|
/**
|
|
8070
8088
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
8071
8089
|
*
|
|
@@ -21081,11 +21099,7 @@ var CameraAudioStatusSchema = object({
|
|
|
21081
21099
|
});
|
|
21082
21100
|
/** Recording block — null when no recording cap is active for this device. */
|
|
21083
21101
|
var CameraRecordingStatusSchema = object({
|
|
21084
|
-
mode:
|
|
21085
|
-
"off",
|
|
21086
|
-
"continuous",
|
|
21087
|
-
"events"
|
|
21088
|
-
]),
|
|
21102
|
+
mode: RecordingStorageModeSchema,
|
|
21089
21103
|
active: boolean(),
|
|
21090
21104
|
storageBytes: number()
|
|
21091
21105
|
});
|
|
@@ -29451,11 +29465,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
29451
29465
|
var RecordingStatusSchema = object({
|
|
29452
29466
|
deviceId: number(),
|
|
29453
29467
|
enabled: boolean(),
|
|
29454
|
-
|
|
29455
|
-
|
|
29456
|
-
|
|
29457
|
-
|
|
29458
|
-
]),
|
|
29468
|
+
/** THE derived storage mode, from the one definition
|
|
29469
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
29470
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
29471
|
+
activeMode: RecordingStorageModeSchema,
|
|
29459
29472
|
nodeId: string(),
|
|
29460
29473
|
storageBytes: number()
|
|
29461
29474
|
});
|
package/dist/addon.mjs
CHANGED
|
@@ -7881,17 +7881,29 @@ var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
|
7881
7881
|
/**
|
|
7882
7882
|
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
7883
7883
|
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
7884
|
-
* - `off`
|
|
7885
|
-
* - `events`
|
|
7886
|
-
* - `continuous`
|
|
7887
|
-
*
|
|
7888
|
-
*
|
|
7889
|
-
*
|
|
7884
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
7885
|
+
* - `events` — every band records around triggers only.
|
|
7886
|
+
* - `continuous` — at least one band records continuously.
|
|
7887
|
+
* - `on-device-decision`— the DEVICE decides: recording runs for as long as the
|
|
7888
|
+
* camera raises its own `recording-signal` level (a robot that cleans). There
|
|
7889
|
+
* is no schedule to author, because there is no hour to program — see
|
|
7890
|
+
* {@link RecordingConfigSchema}`.deviceDecision`.
|
|
7891
|
+
*
|
|
7892
|
+
* NEVER authored: the recorder stamps it from the authoritative intent
|
|
7893
|
+
* (`bands` + `deviceDecision`) on every save (`activeModeForConfig`). Writing it
|
|
7894
|
+
* has no effect.
|
|
7895
|
+
*
|
|
7896
|
+
* `on-device-decision` is named for WHO decides, not for how the recording is
|
|
7897
|
+
* requested. `on-demand` was rejected: in this repo's vocabulary a "demand" is
|
|
7898
|
+
* something the operator makes (the live gate is the recorder's own "demand
|
|
7899
|
+
* window"), and a knob whose name suggests the operator starts it while the
|
|
7900
|
+
* device actually does is the D62 shape — a control nobody can predict.
|
|
7890
7901
|
*/
|
|
7891
7902
|
var RecordingStorageModeSchema = _enum([
|
|
7892
7903
|
"off",
|
|
7893
7904
|
"events",
|
|
7894
|
-
"continuous"
|
|
7905
|
+
"continuous",
|
|
7906
|
+
"on-device-decision"
|
|
7895
7907
|
]);
|
|
7896
7908
|
/**
|
|
7897
7909
|
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
@@ -7941,22 +7953,7 @@ var RecordingTriggersSchema = object({
|
|
|
7941
7953
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7942
7954
|
* registrare.
|
|
7943
7955
|
*/
|
|
7944
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7945
|
-
/**
|
|
7946
|
-
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
7947
|
-
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
7948
|
-
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
7949
|
-
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
7950
|
-
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
7951
|
-
*
|
|
7952
|
-
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
7953
|
-
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
7954
|
-
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
7955
|
-
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
7956
|
-
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
7957
|
-
* (`holdTrigger` / `releaseTrigger`).
|
|
7958
|
-
*/
|
|
7959
|
-
deviceSignal: boolean().optional()
|
|
7956
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7960
7957
|
});
|
|
7961
7958
|
/**
|
|
7962
7959
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8040,8 +8037,29 @@ var RecordingConfigSchema = object({
|
|
|
8040
8037
|
* "off" is the absence of a covering band, never a band value.
|
|
8041
8038
|
*/
|
|
8042
8039
|
bands: array(RecordingBandSchema).default([]),
|
|
8040
|
+
/**
|
|
8041
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
8042
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
8043
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
8044
|
+
* recording intent that is not a band.
|
|
8045
|
+
*
|
|
8046
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
8047
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
8048
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
8049
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
8050
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
8051
|
+
* job however long it is, and closes one pad after the fall.
|
|
8052
|
+
*
|
|
8053
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
8054
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
8055
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
8056
|
+
*/
|
|
8057
|
+
deviceDecision: boolean().optional(),
|
|
8043
8058
|
retention: RecordingRetentionSchema.optional()
|
|
8044
|
-
}).strict()
|
|
8059
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
8060
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
8061
|
+
path: ["bands"]
|
|
8062
|
+
});
|
|
8045
8063
|
/**
|
|
8046
8064
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
8047
8065
|
*
|
|
@@ -21057,11 +21075,7 @@ var CameraAudioStatusSchema = object({
|
|
|
21057
21075
|
});
|
|
21058
21076
|
/** Recording block — null when no recording cap is active for this device. */
|
|
21059
21077
|
var CameraRecordingStatusSchema = object({
|
|
21060
|
-
mode:
|
|
21061
|
-
"off",
|
|
21062
|
-
"continuous",
|
|
21063
|
-
"events"
|
|
21064
|
-
]),
|
|
21078
|
+
mode: RecordingStorageModeSchema,
|
|
21065
21079
|
active: boolean(),
|
|
21066
21080
|
storageBytes: number()
|
|
21067
21081
|
});
|
|
@@ -29427,11 +29441,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
29427
29441
|
var RecordingStatusSchema = object({
|
|
29428
29442
|
deviceId: number(),
|
|
29429
29443
|
enabled: boolean(),
|
|
29430
|
-
|
|
29431
|
-
|
|
29432
|
-
|
|
29433
|
-
|
|
29434
|
-
]),
|
|
29444
|
+
/** THE derived storage mode, from the one definition
|
|
29445
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
29446
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
29447
|
+
activeMode: RecordingStorageModeSchema,
|
|
29435
29448
|
nodeId: string(),
|
|
29436
29449
|
storageBytes: number()
|
|
29437
29450
|
});
|