@camstack/addon-smtp-nodemailer 1.2.73 → 1.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/smtp.addon.js +47 -34
- package/dist/smtp.addon.mjs +47 -34
- package/package.json +1 -1
package/dist/smtp.addon.js
CHANGED
|
@@ -7870,17 +7870,29 @@ var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
|
7870
7870
|
/**
|
|
7871
7871
|
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
7872
7872
|
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
7873
|
-
* - `off`
|
|
7874
|
-
* - `events`
|
|
7875
|
-
* - `continuous`
|
|
7876
|
-
*
|
|
7877
|
-
*
|
|
7878
|
-
*
|
|
7873
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
7874
|
+
* - `events` — every band records around triggers only.
|
|
7875
|
+
* - `continuous` — at least one band records continuously.
|
|
7876
|
+
* - `on-device-decision`— the DEVICE decides: recording runs for as long as the
|
|
7877
|
+
* camera raises its own `recording-signal` level (a robot that cleans). There
|
|
7878
|
+
* is no schedule to author, because there is no hour to program — see
|
|
7879
|
+
* {@link RecordingConfigSchema}`.deviceDecision`.
|
|
7880
|
+
*
|
|
7881
|
+
* NEVER authored: the recorder stamps it from the authoritative intent
|
|
7882
|
+
* (`bands` + `deviceDecision`) on every save (`activeModeForConfig`). Writing it
|
|
7883
|
+
* has no effect.
|
|
7884
|
+
*
|
|
7885
|
+
* `on-device-decision` is named for WHO decides, not for how the recording is
|
|
7886
|
+
* requested. `on-demand` was rejected: in this repo's vocabulary a "demand" is
|
|
7887
|
+
* something the operator makes (the live gate is the recorder's own "demand
|
|
7888
|
+
* window"), and a knob whose name suggests the operator starts it while the
|
|
7889
|
+
* device actually does is the D62 shape — a control nobody can predict.
|
|
7879
7890
|
*/
|
|
7880
7891
|
var RecordingStorageModeSchema = _enum([
|
|
7881
7892
|
"off",
|
|
7882
7893
|
"events",
|
|
7883
|
-
"continuous"
|
|
7894
|
+
"continuous",
|
|
7895
|
+
"on-device-decision"
|
|
7884
7896
|
]);
|
|
7885
7897
|
/**
|
|
7886
7898
|
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
@@ -7930,22 +7942,7 @@ var RecordingTriggersSchema = object({
|
|
|
7930
7942
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7931
7943
|
* registrare.
|
|
7932
7944
|
*/
|
|
7933
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7934
|
-
/**
|
|
7935
|
-
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
7936
|
-
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
7937
|
-
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
7938
|
-
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
7939
|
-
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
7940
|
-
*
|
|
7941
|
-
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
7942
|
-
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
7943
|
-
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
7944
|
-
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
7945
|
-
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
7946
|
-
* (`holdTrigger` / `releaseTrigger`).
|
|
7947
|
-
*/
|
|
7948
|
-
deviceSignal: boolean().optional()
|
|
7945
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7949
7946
|
});
|
|
7950
7947
|
/**
|
|
7951
7948
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8029,8 +8026,29 @@ var RecordingConfigSchema = object({
|
|
|
8029
8026
|
* "off" is the absence of a covering band, never a band value.
|
|
8030
8027
|
*/
|
|
8031
8028
|
bands: array(RecordingBandSchema).default([]),
|
|
8029
|
+
/**
|
|
8030
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
8031
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
8032
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
8033
|
+
* recording intent that is not a band.
|
|
8034
|
+
*
|
|
8035
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
8036
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
8037
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
8038
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
8039
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
8040
|
+
* job however long it is, and closes one pad after the fall.
|
|
8041
|
+
*
|
|
8042
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
8043
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
8044
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
8045
|
+
*/
|
|
8046
|
+
deviceDecision: boolean().optional(),
|
|
8032
8047
|
retention: RecordingRetentionSchema.optional()
|
|
8033
|
-
}).strict()
|
|
8048
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
8049
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
8050
|
+
path: ["bands"]
|
|
8051
|
+
});
|
|
8034
8052
|
/**
|
|
8035
8053
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
8036
8054
|
*
|
|
@@ -20678,11 +20696,7 @@ var CameraAudioStatusSchema = object({
|
|
|
20678
20696
|
});
|
|
20679
20697
|
/** Recording block — null when no recording cap is active for this device. */
|
|
20680
20698
|
var CameraRecordingStatusSchema = object({
|
|
20681
|
-
mode:
|
|
20682
|
-
"off",
|
|
20683
|
-
"continuous",
|
|
20684
|
-
"events"
|
|
20685
|
-
]),
|
|
20699
|
+
mode: RecordingStorageModeSchema,
|
|
20686
20700
|
active: boolean(),
|
|
20687
20701
|
storageBytes: number()
|
|
20688
20702
|
});
|
|
@@ -27101,11 +27115,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
27101
27115
|
var RecordingStatusSchema = object({
|
|
27102
27116
|
deviceId: number(),
|
|
27103
27117
|
enabled: boolean(),
|
|
27104
|
-
|
|
27105
|
-
|
|
27106
|
-
|
|
27107
|
-
|
|
27108
|
-
]),
|
|
27118
|
+
/** THE derived storage mode, from the one definition
|
|
27119
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
27120
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
27121
|
+
activeMode: RecordingStorageModeSchema,
|
|
27109
27122
|
nodeId: string(),
|
|
27110
27123
|
storageBytes: number()
|
|
27111
27124
|
});
|
package/dist/smtp.addon.mjs
CHANGED
|
@@ -7868,17 +7868,29 @@ var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
|
7868
7868
|
/**
|
|
7869
7869
|
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
7870
7870
|
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
7871
|
-
* - `off`
|
|
7872
|
-
* - `events`
|
|
7873
|
-
* - `continuous`
|
|
7874
|
-
*
|
|
7875
|
-
*
|
|
7876
|
-
*
|
|
7871
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
7872
|
+
* - `events` — every band records around triggers only.
|
|
7873
|
+
* - `continuous` — at least one band records continuously.
|
|
7874
|
+
* - `on-device-decision`— the DEVICE decides: recording runs for as long as the
|
|
7875
|
+
* camera raises its own `recording-signal` level (a robot that cleans). There
|
|
7876
|
+
* is no schedule to author, because there is no hour to program — see
|
|
7877
|
+
* {@link RecordingConfigSchema}`.deviceDecision`.
|
|
7878
|
+
*
|
|
7879
|
+
* NEVER authored: the recorder stamps it from the authoritative intent
|
|
7880
|
+
* (`bands` + `deviceDecision`) on every save (`activeModeForConfig`). Writing it
|
|
7881
|
+
* has no effect.
|
|
7882
|
+
*
|
|
7883
|
+
* `on-device-decision` is named for WHO decides, not for how the recording is
|
|
7884
|
+
* requested. `on-demand` was rejected: in this repo's vocabulary a "demand" is
|
|
7885
|
+
* something the operator makes (the live gate is the recorder's own "demand
|
|
7886
|
+
* window"), and a knob whose name suggests the operator starts it while the
|
|
7887
|
+
* device actually does is the D62 shape — a control nobody can predict.
|
|
7877
7888
|
*/
|
|
7878
7889
|
var RecordingStorageModeSchema = _enum([
|
|
7879
7890
|
"off",
|
|
7880
7891
|
"events",
|
|
7881
|
-
"continuous"
|
|
7892
|
+
"continuous",
|
|
7893
|
+
"on-device-decision"
|
|
7882
7894
|
]);
|
|
7883
7895
|
/**
|
|
7884
7896
|
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
@@ -7928,22 +7940,7 @@ var RecordingTriggersSchema = object({
|
|
|
7928
7940
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7929
7941
|
* registrare.
|
|
7930
7942
|
*/
|
|
7931
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7932
|
-
/**
|
|
7933
|
-
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
7934
|
-
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
7935
|
-
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
7936
|
-
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
7937
|
-
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
7938
|
-
*
|
|
7939
|
-
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
7940
|
-
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
7941
|
-
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
7942
|
-
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
7943
|
-
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
7944
|
-
* (`holdTrigger` / `releaseTrigger`).
|
|
7945
|
-
*/
|
|
7946
|
-
deviceSignal: boolean().optional()
|
|
7943
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7947
7944
|
});
|
|
7948
7945
|
/**
|
|
7949
7946
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8027,8 +8024,29 @@ var RecordingConfigSchema = object({
|
|
|
8027
8024
|
* "off" is the absence of a covering band, never a band value.
|
|
8028
8025
|
*/
|
|
8029
8026
|
bands: array(RecordingBandSchema).default([]),
|
|
8027
|
+
/**
|
|
8028
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
8029
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
8030
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
8031
|
+
* recording intent that is not a band.
|
|
8032
|
+
*
|
|
8033
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
8034
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
8035
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
8036
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
8037
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
8038
|
+
* job however long it is, and closes one pad after the fall.
|
|
8039
|
+
*
|
|
8040
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
8041
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
8042
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
8043
|
+
*/
|
|
8044
|
+
deviceDecision: boolean().optional(),
|
|
8030
8045
|
retention: RecordingRetentionSchema.optional()
|
|
8031
|
-
}).strict()
|
|
8046
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
8047
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
8048
|
+
path: ["bands"]
|
|
8049
|
+
});
|
|
8032
8050
|
/**
|
|
8033
8051
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
8034
8052
|
*
|
|
@@ -20676,11 +20694,7 @@ var CameraAudioStatusSchema = object({
|
|
|
20676
20694
|
});
|
|
20677
20695
|
/** Recording block — null when no recording cap is active for this device. */
|
|
20678
20696
|
var CameraRecordingStatusSchema = object({
|
|
20679
|
-
mode:
|
|
20680
|
-
"off",
|
|
20681
|
-
"continuous",
|
|
20682
|
-
"events"
|
|
20683
|
-
]),
|
|
20697
|
+
mode: RecordingStorageModeSchema,
|
|
20684
20698
|
active: boolean(),
|
|
20685
20699
|
storageBytes: number()
|
|
20686
20700
|
});
|
|
@@ -27099,11 +27113,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
27099
27113
|
var RecordingStatusSchema = object({
|
|
27100
27114
|
deviceId: number(),
|
|
27101
27115
|
enabled: boolean(),
|
|
27102
|
-
|
|
27103
|
-
|
|
27104
|
-
|
|
27105
|
-
|
|
27106
|
-
]),
|
|
27116
|
+
/** THE derived storage mode, from the one definition
|
|
27117
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
27118
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
27119
|
+
activeMode: RecordingStorageModeSchema,
|
|
27107
27120
|
nodeId: string(),
|
|
27108
27121
|
storageBytes: number()
|
|
27109
27122
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-smtp-nodemailer",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.75",
|
|
4
4
|
"description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|