@apocaliss92/nodelink-js 0.6.5 → 0.6.6

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
@@ -7033,10 +7033,12 @@ declare class ReolinkBaichuanApi {
7033
7033
  * @param options.source - Data source for the channel list (default: `"cgi"`):
7034
7034
  * - `"cgi"`: Uses HTTP `GetChannelstatus` — returns the channel list immediately,
7035
7035
  * no dependency on async push messages. Recommended for first-call discovery.
7036
- * - `"baichuan"`: Uses the cmd_id 145 push cache populated when the NVR sends channel
7037
- * info after login + event subscription. This push is *asynchronous*: if it has not
7038
- * arrived yet, the result will have zero channels. Callers must retry (nvr.ts does this
7039
- * with a 1-second loop). Note: explicitly requesting cmd_id 145 is not supported.
7036
+ * - `"baichuan"`: HTTP-free discovery. Prefers the cmd_id 145 push cache when
7037
+ * populated; otherwise actively probes the channel slots advertised by Support
7038
+ * (`items[].chnID`) via `getInfo`. Use this for hubs with HTTP disabled.
7039
+ *
7040
+ * When the api was constructed with `nativeOnly`, the source is forced to
7041
+ * `"baichuan"` regardless of this option (no HTTP/CGI is ever attempted).
7040
7042
  */
7041
7043
  getNvrChannelsSummary(options?: {
7042
7044
  channels?: number[];
package/dist/index.d.ts CHANGED
@@ -8363,10 +8363,12 @@ export declare class ReolinkBaichuanApi {
8363
8363
  * @param options.source - Data source for the channel list (default: `"cgi"`):
8364
8364
  * - `"cgi"`: Uses HTTP `GetChannelstatus` — returns the channel list immediately,
8365
8365
  * no dependency on async push messages. Recommended for first-call discovery.
8366
- * - `"baichuan"`: Uses the cmd_id 145 push cache populated when the NVR sends channel
8367
- * info after login + event subscription. This push is *asynchronous*: if it has not
8368
- * arrived yet, the result will have zero channels. Callers must retry (nvr.ts does this
8369
- * with a 1-second loop). Note: explicitly requesting cmd_id 145 is not supported.
8366
+ * - `"baichuan"`: HTTP-free discovery. Prefers the cmd_id 145 push cache when
8367
+ * populated; otherwise actively probes the channel slots advertised by Support
8368
+ * (`items[].chnID`) via `getInfo`. Use this for hubs with HTTP disabled.
8369
+ *
8370
+ * When the api was constructed with `nativeOnly`, the source is forced to
8371
+ * `"baichuan"` regardless of this option (no HTTP/CGI is ever attempted).
8370
8372
  */
8371
8373
  getNvrChannelsSummary(options?: {
8372
8374
  channels?: number[];
package/dist/index.js CHANGED
@@ -76,7 +76,7 @@ import {
76
76
  setGlobalLogger,
77
77
  tcpReachabilityProbe,
78
78
  xmlIndicatesFloodlight
79
- } from "./chunk-WQ2TQCYP.js";
79
+ } from "./chunk-JQ5NSEVD.js";
80
80
  import {
81
81
  ReolinkCgiApi,
82
82
  ReolinkHttpClient,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apocaliss92/nodelink-js",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
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": "",