@apocaliss92/nodelink-js 0.4.31 → 0.4.32

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/index.d.cts CHANGED
@@ -5702,6 +5702,13 @@ declare class ReolinkBaichuanApi {
5702
5702
  * Once closed, the API instance should not be reused.
5703
5703
  */
5704
5704
  private _closed;
5705
+ /**
5706
+ * Off-handle for the auto-bridge between the global email-push bus
5707
+ * and this api's `simpleEventListeners`. Set in the constructor
5708
+ * when `emailPushCameraId` is provided; released in `close()`.
5709
+ * `undefined` means no bridge was requested for this api.
5710
+ */
5711
+ private emailPushAutoBridgeOff;
5705
5712
  /**
5706
5713
  * Socket pool with tag-based allocation strategy.
5707
5714
  * Tags determine which sockets are shared vs dedicated:
@@ -6216,6 +6223,23 @@ declare class ReolinkBaichuanApi {
6216
6223
  * out on TCP, or `true` to opt in on UDP (not recommended).
6217
6224
  */
6218
6225
  enableEventResubscribe?: boolean;
6226
+ /**
6227
+ * When set, the api auto-subscribes to the global email-push bus
6228
+ * and translates each matching delivery (`event.cameraId ===
6229
+ * emailPushCameraId`) into `dispatchSimpleEvent` — so any
6230
+ * consumer registered via `api.onSimpleEvent(...)` receives
6231
+ * native Baichuan push AND SMTP-delivered motion through the
6232
+ * exact same stream, with no second subscription needed. The
6233
+ * bridge survives TCP transient disconnects (it's a JS-level
6234
+ * fan-out, not a network operation) and is released
6235
+ * automatically by `close()`.
6236
+ *
6237
+ * Pair with `emailPushChannel` when the camera lives on a
6238
+ * non-zero channel (NVR children, multi-channel cams).
6239
+ */
6240
+ emailPushCameraId?: string;
6241
+ /** Channel reported on the synthesised event. Default 0. */
6242
+ emailPushChannel?: number;
6219
6243
  });
6220
6244
  /**
6221
6245
  * CGI forward: fetch RTSP URL for a channel via `GetRtspUrl`.
package/dist/index.d.ts CHANGED
@@ -6687,6 +6687,13 @@ export declare class ReolinkBaichuanApi {
6687
6687
  * Once closed, the API instance should not be reused.
6688
6688
  */
6689
6689
  private _closed;
6690
+ /**
6691
+ * Off-handle for the auto-bridge between the global email-push bus
6692
+ * and this api's `simpleEventListeners`. Set in the constructor
6693
+ * when `emailPushCameraId` is provided; released in `close()`.
6694
+ * `undefined` means no bridge was requested for this api.
6695
+ */
6696
+ private emailPushAutoBridgeOff;
6690
6697
  /**
6691
6698
  * Socket pool with tag-based allocation strategy.
6692
6699
  * Tags determine which sockets are shared vs dedicated:
@@ -7201,6 +7208,23 @@ export declare class ReolinkBaichuanApi {
7201
7208
  * out on TCP, or `true` to opt in on UDP (not recommended).
7202
7209
  */
7203
7210
  enableEventResubscribe?: boolean;
7211
+ /**
7212
+ * When set, the api auto-subscribes to the global email-push bus
7213
+ * and translates each matching delivery (`event.cameraId ===
7214
+ * emailPushCameraId`) into `dispatchSimpleEvent` — so any
7215
+ * consumer registered via `api.onSimpleEvent(...)` receives
7216
+ * native Baichuan push AND SMTP-delivered motion through the
7217
+ * exact same stream, with no second subscription needed. The
7218
+ * bridge survives TCP transient disconnects (it's a JS-level
7219
+ * fan-out, not a network operation) and is released
7220
+ * automatically by `close()`.
7221
+ *
7222
+ * Pair with `emailPushChannel` when the camera lives on a
7223
+ * non-zero channel (NVR children, multi-channel cams).
7224
+ */
7225
+ emailPushCameraId?: string;
7226
+ /** Channel reported on the synthesised event. Default 0. */
7227
+ emailPushChannel?: number;
7204
7228
  });
7205
7229
  /**
7206
7230
  * CGI forward: fetch RTSP URL for a channel via `GetRtspUrl`.
package/dist/index.js CHANGED
@@ -65,7 +65,7 @@ import {
65
65
  setEmailPushCameraResolver,
66
66
  setGlobalLogger,
67
67
  xmlIndicatesFloodlight
68
- } from "./chunk-XVFCEFM6.js";
68
+ } from "./chunk-5Z7NVPV6.js";
69
69
  import {
70
70
  ReolinkCgiApi,
71
71
  ReolinkHttpClient,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apocaliss92/nodelink-js",
3
- "version": "0.4.31",
3
+ "version": "0.4.32",
4
4
  "description": "TypeScript library implementing Reolink Baichuan protocol (control + streaming) with CGI and RTSP helpers. Full TypeScript support with comprehensive type definitions.",
5
5
  "license": "MIT",
6
6
  "author": "",