@apocaliss92/nodelink-js 0.4.32 → 0.4.33

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
@@ -5879,6 +5879,21 @@ declare class ReolinkBaichuanApi {
5879
5879
  private simpleEventWatchdogLastRecoveryAt;
5880
5880
  private readonly simpleEventWatchdogIntervalMs;
5881
5881
  private readonly simpleEventWatchdogSilenceThresholdMs;
5882
+ /**
5883
+ * Whether the silence-based resubscribe path of the watchdog is
5884
+ * enabled. On UDP (battery cameras) silence is the *normal* state
5885
+ * while the device sleeps — firing `ensureSimpleEventSubscribed`
5886
+ * every 5 minutes wakes the camera on every tick, drains the
5887
+ * battery, and is observably wrong because the cam emits a
5888
+ * sleep/awake push when it actually wakes for motion.
5889
+ *
5890
+ * Defaults: `false` on UDP, `true` on TCP / `auto`. The subscription-
5891
+ * failed recovery path (Case 2) stays active regardless — it only
5892
+ * runs when the connection is alive, doesn't wake anyone, and is
5893
+ * useful on every transport when the initial subscribe call lost
5894
+ * the response packet.
5895
+ */
5896
+ private eventWatchdogSilenceResubscribeEnabled;
5882
5897
  private statePollingInterval;
5883
5898
  private udpSleepInferenceInterval;
5884
5899
  private readonly udpLastInferredSleepStateByChannel;
@@ -6240,6 +6255,20 @@ declare class ReolinkBaichuanApi {
6240
6255
  emailPushCameraId?: string;
6241
6256
  /** Channel reported on the synthesised event. Default 0. */
6242
6257
  emailPushChannel?: number;
6258
+ /**
6259
+ * Enable the watchdog's silence-based resubscribe path (Case 1
6260
+ * in `simpleEventWatchdogTick`): when no event arrives for 5
6261
+ * minutes the lib forces an `ensureSimpleEventSubscribed` call.
6262
+ *
6263
+ * Default: `true` for non-UDP transports (TCP / `auto`),
6264
+ * `false` for UDP. On UDP (battery cams) silence is the normal
6265
+ * state while the device sleeps — running this path wakes the
6266
+ * cam every 5 minutes for no real benefit, since the cam emits
6267
+ * its own sleep/awake push when it actually wakes for motion.
6268
+ * The subscription-failed recovery path (Case 2) stays active
6269
+ * regardless and is safe on every transport.
6270
+ */
6271
+ enableEventWatchdogSilenceResubscribe?: boolean;
6243
6272
  });
6244
6273
  /**
6245
6274
  * CGI forward: fetch RTSP URL for a channel via `GetRtspUrl`.
package/dist/index.d.ts CHANGED
@@ -6864,6 +6864,21 @@ export declare class ReolinkBaichuanApi {
6864
6864
  private simpleEventWatchdogLastRecoveryAt;
6865
6865
  private readonly simpleEventWatchdogIntervalMs;
6866
6866
  private readonly simpleEventWatchdogSilenceThresholdMs;
6867
+ /**
6868
+ * Whether the silence-based resubscribe path of the watchdog is
6869
+ * enabled. On UDP (battery cameras) silence is the *normal* state
6870
+ * while the device sleeps — firing `ensureSimpleEventSubscribed`
6871
+ * every 5 minutes wakes the camera on every tick, drains the
6872
+ * battery, and is observably wrong because the cam emits a
6873
+ * sleep/awake push when it actually wakes for motion.
6874
+ *
6875
+ * Defaults: `false` on UDP, `true` on TCP / `auto`. The subscription-
6876
+ * failed recovery path (Case 2) stays active regardless — it only
6877
+ * runs when the connection is alive, doesn't wake anyone, and is
6878
+ * useful on every transport when the initial subscribe call lost
6879
+ * the response packet.
6880
+ */
6881
+ private eventWatchdogSilenceResubscribeEnabled;
6867
6882
  private statePollingInterval;
6868
6883
  private udpSleepInferenceInterval;
6869
6884
  private readonly udpLastInferredSleepStateByChannel;
@@ -7225,6 +7240,20 @@ export declare class ReolinkBaichuanApi {
7225
7240
  emailPushCameraId?: string;
7226
7241
  /** Channel reported on the synthesised event. Default 0. */
7227
7242
  emailPushChannel?: number;
7243
+ /**
7244
+ * Enable the watchdog's silence-based resubscribe path (Case 1
7245
+ * in `simpleEventWatchdogTick`): when no event arrives for 5
7246
+ * minutes the lib forces an `ensureSimpleEventSubscribed` call.
7247
+ *
7248
+ * Default: `true` for non-UDP transports (TCP / `auto`),
7249
+ * `false` for UDP. On UDP (battery cams) silence is the normal
7250
+ * state while the device sleeps — running this path wakes the
7251
+ * cam every 5 minutes for no real benefit, since the cam emits
7252
+ * its own sleep/awake push when it actually wakes for motion.
7253
+ * The subscription-failed recovery path (Case 2) stays active
7254
+ * regardless and is safe on every transport.
7255
+ */
7256
+ enableEventWatchdogSilenceResubscribe?: boolean;
7228
7257
  });
7229
7258
  /**
7230
7259
  * 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-5Z7NVPV6.js";
68
+ } from "./chunk-OZL6C2YJ.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.32",
3
+ "version": "0.4.33",
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": "",