@camstack/addon-provider-rtsp 1.2.75 → 1.2.77
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 +66 -38
- package/dist/addon.mjs +66 -38
- 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.
|
|
@@ -8010,13 +8007,28 @@ var RecordingBandSchema = object({
|
|
|
8010
8007
|
end: string().regex(HHMM),
|
|
8011
8008
|
mode: RecordingBandModeSchema,
|
|
8012
8009
|
triggers: RecordingBandTriggersSchema.optional(),
|
|
8010
|
+
/**
|
|
8011
|
+
* RETIRED (D381). A band no longer carries a pre-buffer of its own.
|
|
8012
|
+
*
|
|
8013
|
+
* It was the retroactive KEEP bound — which already-written segments survive
|
|
8014
|
+
* a trigger — and it had to be at least as wide as the widest pre-roll the
|
|
8015
|
+
* broker could serve, or the gate would delete the seconds the ring had just
|
|
8016
|
+
* handed the writer. That "at least as wide as" is the tell: it was a second
|
|
8017
|
+
* expression of the broker's retention, in different units, in a different
|
|
8018
|
+
* addon, with an invariant the operator had to maintain by hand. The keep
|
|
8019
|
+
* bound is now derived from the one prebuffer ceiling and there is nothing
|
|
8020
|
+
* left to configure here.
|
|
8021
|
+
*
|
|
8022
|
+
* The key survives in the SHAPE so a config written before that record still
|
|
8023
|
+
* parses and can be migrated deliberately — `RecordingBandSchema` is not
|
|
8024
|
+
* strict, so simply deleting it would strip an operator's value in silence on
|
|
8025
|
+
* the next save (the failure D380 came one commit from shipping). Nothing
|
|
8026
|
+
* reads it: {@link stripRetiredBandPreBufferSec} removes it on load.
|
|
8027
|
+
*/
|
|
8013
8028
|
preBufferSec: number().min(0).optional(),
|
|
8014
8029
|
postBufferSec: number().min(0).optional()
|
|
8015
8030
|
});
|
|
8016
|
-
({
|
|
8017
|
-
preBufferSec: 15,
|
|
8018
|
-
postBufferSec: 30
|
|
8019
|
-
}).postBufferSec * 1e3;
|
|
8031
|
+
({ postBufferSec: 30 }).postBufferSec * 1e3;
|
|
8020
8032
|
/**
|
|
8021
8033
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
8022
8034
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -8064,8 +8076,29 @@ var RecordingConfigSchema = object({
|
|
|
8064
8076
|
* "off" is the absence of a covering band, never a band value.
|
|
8065
8077
|
*/
|
|
8066
8078
|
bands: array(RecordingBandSchema).default([]),
|
|
8079
|
+
/**
|
|
8080
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
8081
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
8082
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
8083
|
+
* recording intent that is not a band.
|
|
8084
|
+
*
|
|
8085
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
8086
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
8087
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
8088
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
8089
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
8090
|
+
* job however long it is, and closes one pad after the fall.
|
|
8091
|
+
*
|
|
8092
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
8093
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
8094
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
8095
|
+
*/
|
|
8096
|
+
deviceDecision: boolean().optional(),
|
|
8067
8097
|
retention: RecordingRetentionSchema.optional()
|
|
8068
|
-
}).strict()
|
|
8098
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
8099
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
8100
|
+
path: ["bands"]
|
|
8101
|
+
});
|
|
8069
8102
|
/**
|
|
8070
8103
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
8071
8104
|
*
|
|
@@ -21081,11 +21114,7 @@ var CameraAudioStatusSchema = object({
|
|
|
21081
21114
|
});
|
|
21082
21115
|
/** Recording block — null when no recording cap is active for this device. */
|
|
21083
21116
|
var CameraRecordingStatusSchema = object({
|
|
21084
|
-
mode:
|
|
21085
|
-
"off",
|
|
21086
|
-
"continuous",
|
|
21087
|
-
"events"
|
|
21088
|
-
]),
|
|
21117
|
+
mode: RecordingStorageModeSchema,
|
|
21089
21118
|
active: boolean(),
|
|
21090
21119
|
storageBytes: number()
|
|
21091
21120
|
});
|
|
@@ -29451,11 +29480,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
29451
29480
|
var RecordingStatusSchema = object({
|
|
29452
29481
|
deviceId: number(),
|
|
29453
29482
|
enabled: boolean(),
|
|
29454
|
-
|
|
29455
|
-
|
|
29456
|
-
|
|
29457
|
-
|
|
29458
|
-
]),
|
|
29483
|
+
/** THE derived storage mode, from the one definition
|
|
29484
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
29485
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
29486
|
+
activeMode: RecordingStorageModeSchema,
|
|
29459
29487
|
nodeId: string(),
|
|
29460
29488
|
storageBytes: number()
|
|
29461
29489
|
});
|
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.
|
|
@@ -7986,13 +7983,28 @@ var RecordingBandSchema = object({
|
|
|
7986
7983
|
end: string().regex(HHMM),
|
|
7987
7984
|
mode: RecordingBandModeSchema,
|
|
7988
7985
|
triggers: RecordingBandTriggersSchema.optional(),
|
|
7986
|
+
/**
|
|
7987
|
+
* RETIRED (D381). A band no longer carries a pre-buffer of its own.
|
|
7988
|
+
*
|
|
7989
|
+
* It was the retroactive KEEP bound — which already-written segments survive
|
|
7990
|
+
* a trigger — and it had to be at least as wide as the widest pre-roll the
|
|
7991
|
+
* broker could serve, or the gate would delete the seconds the ring had just
|
|
7992
|
+
* handed the writer. That "at least as wide as" is the tell: it was a second
|
|
7993
|
+
* expression of the broker's retention, in different units, in a different
|
|
7994
|
+
* addon, with an invariant the operator had to maintain by hand. The keep
|
|
7995
|
+
* bound is now derived from the one prebuffer ceiling and there is nothing
|
|
7996
|
+
* left to configure here.
|
|
7997
|
+
*
|
|
7998
|
+
* The key survives in the SHAPE so a config written before that record still
|
|
7999
|
+
* parses and can be migrated deliberately — `RecordingBandSchema` is not
|
|
8000
|
+
* strict, so simply deleting it would strip an operator's value in silence on
|
|
8001
|
+
* the next save (the failure D380 came one commit from shipping). Nothing
|
|
8002
|
+
* reads it: {@link stripRetiredBandPreBufferSec} removes it on load.
|
|
8003
|
+
*/
|
|
7989
8004
|
preBufferSec: number().min(0).optional(),
|
|
7990
8005
|
postBufferSec: number().min(0).optional()
|
|
7991
8006
|
});
|
|
7992
|
-
({
|
|
7993
|
-
preBufferSec: 15,
|
|
7994
|
-
postBufferSec: 30
|
|
7995
|
-
}).postBufferSec * 1e3;
|
|
8007
|
+
({ postBufferSec: 30 }).postBufferSec * 1e3;
|
|
7996
8008
|
/**
|
|
7997
8009
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
7998
8010
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -8040,8 +8052,29 @@ var RecordingConfigSchema = object({
|
|
|
8040
8052
|
* "off" is the absence of a covering band, never a band value.
|
|
8041
8053
|
*/
|
|
8042
8054
|
bands: array(RecordingBandSchema).default([]),
|
|
8055
|
+
/**
|
|
8056
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
8057
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
8058
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
8059
|
+
* recording intent that is not a band.
|
|
8060
|
+
*
|
|
8061
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
8062
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
8063
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
8064
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
8065
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
8066
|
+
* job however long it is, and closes one pad after the fall.
|
|
8067
|
+
*
|
|
8068
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
8069
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
8070
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
8071
|
+
*/
|
|
8072
|
+
deviceDecision: boolean().optional(),
|
|
8043
8073
|
retention: RecordingRetentionSchema.optional()
|
|
8044
|
-
}).strict()
|
|
8074
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
8075
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
8076
|
+
path: ["bands"]
|
|
8077
|
+
});
|
|
8045
8078
|
/**
|
|
8046
8079
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
8047
8080
|
*
|
|
@@ -21057,11 +21090,7 @@ var CameraAudioStatusSchema = object({
|
|
|
21057
21090
|
});
|
|
21058
21091
|
/** Recording block — null when no recording cap is active for this device. */
|
|
21059
21092
|
var CameraRecordingStatusSchema = object({
|
|
21060
|
-
mode:
|
|
21061
|
-
"off",
|
|
21062
|
-
"continuous",
|
|
21063
|
-
"events"
|
|
21064
|
-
]),
|
|
21093
|
+
mode: RecordingStorageModeSchema,
|
|
21065
21094
|
active: boolean(),
|
|
21066
21095
|
storageBytes: number()
|
|
21067
21096
|
});
|
|
@@ -29427,11 +29456,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
29427
29456
|
var RecordingStatusSchema = object({
|
|
29428
29457
|
deviceId: number(),
|
|
29429
29458
|
enabled: boolean(),
|
|
29430
|
-
|
|
29431
|
-
|
|
29432
|
-
|
|
29433
|
-
|
|
29434
|
-
]),
|
|
29459
|
+
/** THE derived storage mode, from the one definition
|
|
29460
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
29461
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
29462
|
+
activeMode: RecordingStorageModeSchema,
|
|
29435
29463
|
nodeId: string(),
|
|
29436
29464
|
storageBytes: number()
|
|
29437
29465
|
});
|