@apocaliss92/nodelink-js 0.4.22 → 0.4.23
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/BaichuanVideoStream-NTIGPHYJ.js +7 -0
- package/dist/{DiagnosticsTools-HO3VI6D5.js → DiagnosticsTools-ILDDJZL7.js} +3 -3
- package/dist/{chunk-S2UTGNFN.js → chunk-AHY4L7JI.js} +2 -2
- package/dist/{chunk-C57QV7IL.js → chunk-GVWJGQPT.js} +5 -1
- package/dist/chunk-GVWJGQPT.js.map +1 -0
- package/dist/{chunk-EZ7WNPLB.js → chunk-P4X5OU25.js} +521 -19
- package/dist/chunk-P4X5OU25.js.map +1 -0
- package/dist/cli/rtsp-server.cjs +506 -14
- package/dist/cli/rtsp-server.cjs.map +1 -1
- package/dist/cli/rtsp-server.js +3 -3
- package/dist/index.cjs +534 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +327 -1
- package/dist/index.d.ts +343 -0
- package/dist/index.js +31 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/BaichuanVideoStream-HGPU2MZ3.js +0 -7
- package/dist/chunk-C57QV7IL.js.map +0 -1
- package/dist/chunk-EZ7WNPLB.js.map +0 -1
- /package/dist/{BaichuanVideoStream-HGPU2MZ3.js.map → BaichuanVideoStream-NTIGPHYJ.js.map} +0 -0
- /package/dist/{DiagnosticsTools-HO3VI6D5.js.map → DiagnosticsTools-ILDDJZL7.js.map} +0 -0
- /package/dist/{chunk-S2UTGNFN.js.map → chunk-AHY4L7JI.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -86,6 +86,8 @@ declare const BC_CMD_ID_FLOODLIGHT_STATUS_LIST = 291;
|
|
|
86
86
|
declare const BC_CMD_ID_ABILITY_INFO = 151;
|
|
87
87
|
declare const BC_CMD_ID_SUPPORT = 199;
|
|
88
88
|
declare const BC_CMD_ID_PING = 93;
|
|
89
|
+
declare const BC_CMD_ID_GET_SNAPSHOT = 109;
|
|
90
|
+
declare const BC_CMD_ID_GET_UID = 114;
|
|
89
91
|
declare const BC_CMD_ID_CHANNEL_INFO_ALL = 145;
|
|
90
92
|
declare const BC_CMD_ID_GET_OSD_DATETIME = 44;
|
|
91
93
|
declare const BC_CMD_ID_SET_OSD_DATETIME = 45;
|
|
@@ -5319,6 +5321,232 @@ declare class CompositeStream extends EventEmitter<{
|
|
|
5319
5321
|
isActive(): boolean;
|
|
5320
5322
|
}
|
|
5321
5323
|
|
|
5324
|
+
/**
|
|
5325
|
+
* Privacy-mask (Shelter) helpers.
|
|
5326
|
+
*
|
|
5327
|
+
* Reolink's GetMask response (cmd_id=52) carries up to `maxNum` rectangular
|
|
5328
|
+
* zones inside `<shelterList>` plus up to `maxTrackShelterNum` PTZ-tracking
|
|
5329
|
+
* zones inside `<trackShelterList>` (the tracking zones move with the PTZ
|
|
5330
|
+
* preset they were saved at — see `pPos`/`tPos`/`zPos`).
|
|
5331
|
+
*
|
|
5332
|
+
* Wire encoding observed on E1 Zoom firmware: every coordinate is a 32-bit
|
|
5333
|
+
* integer packing `(pixel << 16) | canvas_dimension`. The canvas dimension
|
|
5334
|
+
* is the camera's mask coord-space and is identical across all coords of
|
|
5335
|
+
* the same axis in the same response (so it can be lifted from any rect
|
|
5336
|
+
* in the list). For E1 Zoom we observe 540 × 304 (16:9-ish). Different
|
|
5337
|
+
* firmwares can ship different canvases — never assume the constants.
|
|
5338
|
+
*
|
|
5339
|
+
* value = pixel * 65536 + canvas_dim
|
|
5340
|
+
* pixel = value >>> 16
|
|
5341
|
+
* canvas_dim = value & 0xFFFF
|
|
5342
|
+
*
|
|
5343
|
+
* To keep consumers (UI) decoupled from the wire encoding we surface
|
|
5344
|
+
* rectangles with normalized 0..1 coordinates and a `canvas` block that
|
|
5345
|
+
* remembers the original dimensions for an exact round-trip on SET.
|
|
5346
|
+
*
|
|
5347
|
+
* This mirrors the motion-zone helper pattern: pure encode/decode utilities
|
|
5348
|
+
* that can be used from both the library and the React UI.
|
|
5349
|
+
*/
|
|
5350
|
+
interface ShelterCanvas {
|
|
5351
|
+
/** Camera-reported X canvas dimension (low-16 of every X coord on the wire). */
|
|
5352
|
+
width: number;
|
|
5353
|
+
/** Camera-reported Y canvas dimension (low-16 of every Y coord on the wire). */
|
|
5354
|
+
height: number;
|
|
5355
|
+
}
|
|
5356
|
+
/**
|
|
5357
|
+
* E1 Zoom default canvas (camera-observed). Used as a fallback when the
|
|
5358
|
+
* GET response carries no rectangles to extract canvas dims from. Caller
|
|
5359
|
+
* can always override via the explicit `canvas` argument.
|
|
5360
|
+
*/
|
|
5361
|
+
declare const DEFAULT_SHELTER_CANVAS: ShelterCanvas;
|
|
5362
|
+
interface ShelterRect {
|
|
5363
|
+
/** Stable id (camera assigns `<id>` 0..maxNum-1; tracking rects use `<name>`). */
|
|
5364
|
+
id: number;
|
|
5365
|
+
/** Zone active flag. */
|
|
5366
|
+
enable: boolean;
|
|
5367
|
+
/** Z-order; observed values 0 on the wire. */
|
|
5368
|
+
layer: number;
|
|
5369
|
+
/** Color (camera-side enum). */
|
|
5370
|
+
color: number;
|
|
5371
|
+
/** Top-left X, 0..1 of the camera mask canvas. */
|
|
5372
|
+
x: number;
|
|
5373
|
+
/** Top-left Y, 0..1 of the camera mask canvas. */
|
|
5374
|
+
y: number;
|
|
5375
|
+
/** Width, 0..1 of the camera mask canvas. */
|
|
5376
|
+
width: number;
|
|
5377
|
+
/** Height, 0..1 of the camera mask canvas. */
|
|
5378
|
+
height: number;
|
|
5379
|
+
}
|
|
5380
|
+
interface TrackShelterRect extends ShelterRect {
|
|
5381
|
+
/** PTZ pan position the tracking mask is anchored to. -1 = unset. */
|
|
5382
|
+
pPos: number;
|
|
5383
|
+
/** PTZ tilt position the tracking mask is anchored to. -1 = unset. */
|
|
5384
|
+
tPos: number;
|
|
5385
|
+
/** PTZ zoom position the tracking mask is anchored to. -1 = unset. */
|
|
5386
|
+
zPos: number;
|
|
5387
|
+
}
|
|
5388
|
+
interface PrivacyMaskZones {
|
|
5389
|
+
enable: boolean;
|
|
5390
|
+
maxNum: number;
|
|
5391
|
+
shelterList: ShelterRect[];
|
|
5392
|
+
trackEnable: boolean;
|
|
5393
|
+
maxTrackShelterNum: number;
|
|
5394
|
+
trackShelterList: TrackShelterRect[];
|
|
5395
|
+
canvas: ShelterCanvas;
|
|
5396
|
+
}
|
|
5397
|
+
/**
|
|
5398
|
+
* Decode a single wire coordinate into its `{pixel, canvas}` pair.
|
|
5399
|
+
* Zero values are sentinel "uninitialized" and surface as `canvas=0`.
|
|
5400
|
+
*/
|
|
5401
|
+
declare function decodeShelterCoord(value: number): {
|
|
5402
|
+
pixel: number;
|
|
5403
|
+
canvas: number;
|
|
5404
|
+
};
|
|
5405
|
+
/**
|
|
5406
|
+
* Encode a `(pixel, canvas)` pair into the camera wire value.
|
|
5407
|
+
* Negative inputs are clamped to 0; values are floored to 16-bit pixels.
|
|
5408
|
+
*/
|
|
5409
|
+
declare function encodeShelterCoord(pixel: number, canvas: number): number;
|
|
5410
|
+
/**
|
|
5411
|
+
* Extract the camera canvas dimensions from the first non-empty rectangle
|
|
5412
|
+
* in the lists. Returns `DEFAULT_SHELTER_CANVAS` if every coord is zero.
|
|
5413
|
+
*/
|
|
5414
|
+
declare function extractCanvasFromShelterXml(xml: string): ShelterCanvas;
|
|
5415
|
+
/**
|
|
5416
|
+
* Parse the full `<Shelter>` block (the cmd_id=52 response body) into a
|
|
5417
|
+
* normalized {@link PrivacyMaskZones} structure with 0..1 coordinates.
|
|
5418
|
+
*
|
|
5419
|
+
* Accepts both the trimmed `<body>...</body>` payload and the raw XML
|
|
5420
|
+
* including the `<?xml?>` declaration.
|
|
5421
|
+
*/
|
|
5422
|
+
declare function decodePrivacyMaskZones(xml: string): PrivacyMaskZones;
|
|
5423
|
+
/**
|
|
5424
|
+
* Build the `<shelterList>` XML fragment for the cmd_id=53 SetMask payload.
|
|
5425
|
+
* The camera always expects exactly `maxNum` `<Shelter>` entries — missing
|
|
5426
|
+
* ones get padded with disabled zero-rects, matching what the camera ships
|
|
5427
|
+
* on the read side.
|
|
5428
|
+
*/
|
|
5429
|
+
declare function encodeShelterListXml(rects: ShelterRect[], canvas: ShelterCanvas, maxNum: number): string;
|
|
5430
|
+
/**
|
|
5431
|
+
* Build the `<trackShelterList>` fragment. PTZ-tracking masks carry their
|
|
5432
|
+
* anchor preset via `pPos/tPos/zPos`; -1 marks the slot as unset.
|
|
5433
|
+
*/
|
|
5434
|
+
declare function encodeTrackShelterListXml(rects: TrackShelterRect[], canvas: ShelterCanvas, maxNum: number): string;
|
|
5435
|
+
/**
|
|
5436
|
+
* Patch a `<Shelter>` block XML (cmd_id=52 response) by replacing the
|
|
5437
|
+
* `<shelterList>` / `<trackShelterList>` sub-blocks and the enable flags.
|
|
5438
|
+
* Use this to build the cmd_id=53 payload as a read-modify-write of the
|
|
5439
|
+
* camera's GET response — preserves any camera-specific extension tags.
|
|
5440
|
+
*/
|
|
5441
|
+
declare function patchShelterXml(shelterXml: string, patch: {
|
|
5442
|
+
enable?: boolean;
|
|
5443
|
+
shelterList?: ShelterRect[];
|
|
5444
|
+
trackEnable?: boolean;
|
|
5445
|
+
trackShelterList?: TrackShelterRect[];
|
|
5446
|
+
}, canvas: ShelterCanvas, maxNum: number, maxTrackShelterNum: number): string;
|
|
5447
|
+
|
|
5448
|
+
/**
|
|
5449
|
+
* AI-detection per-type config helpers (cmd_id 342 GET / 345 SET full).
|
|
5450
|
+
*
|
|
5451
|
+
* Each AI type (people, dog_cat, vehicle, face, package, ...) carries its
|
|
5452
|
+
* own `<AiDetectCfg>` block:
|
|
5453
|
+
*
|
|
5454
|
+
* <AiDetectCfg version="1.1">
|
|
5455
|
+
* <chn>0</chn>
|
|
5456
|
+
* <type>people</type>
|
|
5457
|
+
* <sensitivity>60</sensitivity>
|
|
5458
|
+
* <stayTime>0</stayTime>
|
|
5459
|
+
* <minTargetHeight>0.5</minTargetHeight>
|
|
5460
|
+
* <minTargetWidth>0.5</minTargetWidth>
|
|
5461
|
+
* <maxTargetHeight>0.5</maxTargetHeight>
|
|
5462
|
+
* <maxTargetWidth>0.5</maxTargetWidth>
|
|
5463
|
+
* <width>60</width> <height>33</height>
|
|
5464
|
+
* <area>{base64 width*height bitmap}</area>
|
|
5465
|
+
* </AiDetectCfg>
|
|
5466
|
+
*
|
|
5467
|
+
* cmd_id=343 (`SetAiAlarm`) only edits sensitivity + stayTime. The full
|
|
5468
|
+
* setter is cmd_id=345 — it accepts the entire block including the area
|
|
5469
|
+
* bitmap and target size thresholds. The bitmap layout is identical to
|
|
5470
|
+
* the motion-detection `<valueTable>` so we reuse the motion-zone
|
|
5471
|
+
* helpers for encode/decode.
|
|
5472
|
+
*
|
|
5473
|
+
* Target size fields are camera-side fractions in [0,1] of the frame.
|
|
5474
|
+
*/
|
|
5475
|
+
interface AiDetectCfgZone {
|
|
5476
|
+
chn: number;
|
|
5477
|
+
type: string;
|
|
5478
|
+
sensitivity: number;
|
|
5479
|
+
stayTime: number;
|
|
5480
|
+
minTargetWidth: number;
|
|
5481
|
+
minTargetHeight: number;
|
|
5482
|
+
maxTargetWidth: number;
|
|
5483
|
+
maxTargetHeight: number;
|
|
5484
|
+
/** Grid columns (width) for the `<area>` bitmap. */
|
|
5485
|
+
width: number;
|
|
5486
|
+
/** Grid rows (height) for the `<area>` bitmap. */
|
|
5487
|
+
height: number;
|
|
5488
|
+
/** Raw base64 area bitmap (use `decodeMotionScopeBitmap` to expand). */
|
|
5489
|
+
area: string;
|
|
5490
|
+
}
|
|
5491
|
+
/**
|
|
5492
|
+
* Parse an `<AiDetectCfg>` response body (cmd_id=342) into a typed zone.
|
|
5493
|
+
* Throws if the required fields aren't present.
|
|
5494
|
+
*/
|
|
5495
|
+
declare function decodeAiDetectCfg(xml: string): AiDetectCfgZone;
|
|
5496
|
+
/**
|
|
5497
|
+
* Patch an existing cmd_id=342 GET response body, replacing only the
|
|
5498
|
+
* tags whose new value was supplied. Use this to build the cmd_id=345
|
|
5499
|
+
* SetAiDetectCfg payload (read-modify-write).
|
|
5500
|
+
*/
|
|
5501
|
+
declare function patchAiDetectCfgXml(currentXml: string, patch: Partial<Pick<AiDetectCfgZone, "sensitivity" | "stayTime" | "minTargetWidth" | "minTargetHeight" | "maxTargetWidth" | "maxTargetHeight" | "area">>): string;
|
|
5502
|
+
|
|
5503
|
+
/**
|
|
5504
|
+
* Motion-detection per-time-band sensitivity schedule helper.
|
|
5505
|
+
*
|
|
5506
|
+
* Reolink's GetMdAlarm response (cmd_id=46) carries an array of
|
|
5507
|
+
* `<sensitivityInfo>` entries inside `<sensitivityInfoList>`:
|
|
5508
|
+
*
|
|
5509
|
+
* <sensitivityInfoList>
|
|
5510
|
+
* <sensitivityInfo>
|
|
5511
|
+
* <id>0</id>
|
|
5512
|
+
* <sensitivity>10</sensitivity>
|
|
5513
|
+
* <beginHour>0</beginHour> <beginMinute>0</beginMinute>
|
|
5514
|
+
* <endHour>6</endHour> <endMinute>0</endMinute>
|
|
5515
|
+
* </sensitivityInfo>
|
|
5516
|
+
* ... up to 4 bands by default ...
|
|
5517
|
+
* </sensitivityInfoList>
|
|
5518
|
+
*
|
|
5519
|
+
* The camera-wide default lives in `<sensInfoNew><sensitivityDefault>`.
|
|
5520
|
+
* This helper builds the `<sensitivityInfoList>` fragment used by the
|
|
5521
|
+
* cmd_id=47 SetMdAlarm payload as part of a read-modify-write flow.
|
|
5522
|
+
*/
|
|
5523
|
+
interface MotionSensitivityBand {
|
|
5524
|
+
/** 0-based band id (camera assigns 0..N-1). */
|
|
5525
|
+
id: number;
|
|
5526
|
+
/** Sensitivity for this band, 0..50 (higher = more sensitive). */
|
|
5527
|
+
sensitivity: number;
|
|
5528
|
+
/** Band start hour, 0..23. */
|
|
5529
|
+
beginHour: number;
|
|
5530
|
+
/** Band start minute, 0..59. */
|
|
5531
|
+
beginMinute: number;
|
|
5532
|
+
/** Band end hour, 0..23. */
|
|
5533
|
+
endHour: number;
|
|
5534
|
+
/** Band end minute, 0..59. */
|
|
5535
|
+
endMinute: number;
|
|
5536
|
+
}
|
|
5537
|
+
/**
|
|
5538
|
+
* Build the `<sensitivityInfoList>` XML fragment from the typed bands.
|
|
5539
|
+
* Bands are emitted in id-ascending order; out-of-range scalars are
|
|
5540
|
+
* clamped to the firmware-accepted ranges.
|
|
5541
|
+
*/
|
|
5542
|
+
declare function encodeMotionSensitivityListXml(bands: MotionSensitivityBand[]): string;
|
|
5543
|
+
/**
|
|
5544
|
+
* Patch the `<sensitivityInfoList>` block inside a `<MD>` response XML
|
|
5545
|
+
* (cmd_id=46 GET) with a new schedule. Used by `setMotionAlarmFull` as
|
|
5546
|
+
* part of the read-modify-write flow.
|
|
5547
|
+
*/
|
|
5548
|
+
declare function patchMotionSensitivityListXml(currentXml: string, bands: MotionSensitivityBand[]): string;
|
|
5549
|
+
|
|
5322
5550
|
/**
|
|
5323
5551
|
* Parse FloodlightTask XML to extract floodlight-on-motion state.
|
|
5324
5552
|
* Returns the alarmMode (1 = floodlight turns on when motion detected, 0 = off)
|
|
@@ -7272,6 +7500,22 @@ declare class ReolinkBaichuanApi {
|
|
|
7272
7500
|
enabled?: boolean;
|
|
7273
7501
|
sensitivity?: number;
|
|
7274
7502
|
valueTable?: string;
|
|
7503
|
+
/**
|
|
7504
|
+
* Per-time-band sensitivity schedule.
|
|
7505
|
+
*
|
|
7506
|
+
* KNOWN ISSUE (verified on E1 Zoom firmware, May 2026):
|
|
7507
|
+
* the cmd_id=46 response ships TWO sensitivity blocks —
|
|
7508
|
+
* 1. `<sensitivityInfoList>` (legacy, 4 fixed time bands)
|
|
7509
|
+
* 2. `<sensInfoNew><sensInfoList>` (modern, dynamic schedule)
|
|
7510
|
+
* On this firmware, writing the legacy `<sensitivityInfoList>` is
|
|
7511
|
+
* silently ignored — the camera only reads from `sensInfoNew`. The
|
|
7512
|
+
* camera ships an empty `<sensInfoList />` so the effective sensitivity
|
|
7513
|
+
* is `<sensInfoNew><sensitivityDefault>` (use `sensitivity` above for
|
|
7514
|
+
* that). A populated `<sensInfoNew><sensInfoList>` capture is needed
|
|
7515
|
+
* to wire up the modern per-band setter. Use `sensitivity` (single
|
|
7516
|
+
* default value) until then.
|
|
7517
|
+
*/
|
|
7518
|
+
sensitivitySchedule?: MotionSensitivityBand[];
|
|
7275
7519
|
}): Promise<void>;
|
|
7276
7520
|
/**
|
|
7277
7521
|
* Set AI detection settings via Baichuan.
|
|
@@ -7284,6 +7528,37 @@ declare class ReolinkBaichuanApi {
|
|
|
7284
7528
|
*/
|
|
7285
7529
|
setAiDetection(aiType: string, sensitivity?: number, stayTime?: number, channel?: number): Promise<void>;
|
|
7286
7530
|
setAiDetection(channel: number, aiType: string, sensitivity?: number, stayTime?: number): Promise<void>;
|
|
7531
|
+
/**
|
|
7532
|
+
* SetAiDetectionFull (cmd_id=343 — same as `setAiDetection`).
|
|
7533
|
+
*
|
|
7534
|
+
* Pcap-confirmed (May 2026, E1 Zoom): the Reolink app sends the full
|
|
7535
|
+
* `<AiDetectCfg>` block via cmd_id=343 for ALL fields — area mask,
|
|
7536
|
+
* min/maxTarget* thresholds, sensitivity, stayTime — in one round-trip.
|
|
7537
|
+
* There's no separate "full setter" command (we previously suspected
|
|
7538
|
+
* cmd_id=345 but that's used for something else not yet identified).
|
|
7539
|
+
*
|
|
7540
|
+
* Wire format note: min/maxTarget* fractions are serialized in
|
|
7541
|
+
* scientific notation with 6 decimal places (e.g. "5.000000e-01" for
|
|
7542
|
+
* 0.5). The helper {@link patchAiDetectCfgXml} handles the formatting.
|
|
7543
|
+
*
|
|
7544
|
+
* @param channel 0-based channel
|
|
7545
|
+
* @param aiType one of "people" / "vehicle" / "dog_cat" / "face" / "package"
|
|
7546
|
+
* @param patch partial edit; any omitted field is preserved as-is
|
|
7547
|
+
*/
|
|
7548
|
+
setAiDetectionFull(channel: number, aiType: string, patch: {
|
|
7549
|
+
sensitivity?: number;
|
|
7550
|
+
stayTime?: number;
|
|
7551
|
+
minTargetWidth?: number;
|
|
7552
|
+
minTargetHeight?: number;
|
|
7553
|
+
maxTargetWidth?: number;
|
|
7554
|
+
maxTargetHeight?: number;
|
|
7555
|
+
area?: string;
|
|
7556
|
+
}): Promise<void>;
|
|
7557
|
+
/**
|
|
7558
|
+
* GetAiDetectionFull (cmd_id=342). Typed version of `getAiAlarmRaw`
|
|
7559
|
+
* returning the full {@link AiDetectCfgZone} for a single AI type.
|
|
7560
|
+
*/
|
|
7561
|
+
getAiDetectionFull(channel: number, aiType: string): Promise<AiDetectCfgZone>;
|
|
7287
7562
|
/**
|
|
7288
7563
|
* Get siren/audio alarm status via Baichuan.
|
|
7289
7564
|
* cmd_id: 547 (GetAudioAlarm - push event, not a request)
|
|
@@ -7699,6 +7974,49 @@ declare class ReolinkBaichuanApi {
|
|
|
7699
7974
|
}, options?: {
|
|
7700
7975
|
timeoutMs?: number;
|
|
7701
7976
|
}): Promise<void>;
|
|
7977
|
+
/**
|
|
7978
|
+
* GetMaskZones (cmdId=52) returning a typed structure with normalized
|
|
7979
|
+
* 0..1 rectangles instead of the raw camera fixed-point integers.
|
|
7980
|
+
*
|
|
7981
|
+
* The camera-side coord system is `(pixel << 16) | canvas_dim` where
|
|
7982
|
+
* `canvas_dim` is the firmware-specific mask canvas (E1 Zoom = 540×304).
|
|
7983
|
+
* The returned `canvas` block remembers those dims so callers can
|
|
7984
|
+
* round-trip without re-fetching.
|
|
7985
|
+
*
|
|
7986
|
+
* @see decodePrivacyMaskZones — pure helper exported for UI consumers.
|
|
7987
|
+
*/
|
|
7988
|
+
getMaskZones(channel?: number, options?: {
|
|
7989
|
+
timeoutMs?: number;
|
|
7990
|
+
}): Promise<PrivacyMaskZones>;
|
|
7991
|
+
/**
|
|
7992
|
+
* SetMaskZones (cmdId=53, read-modify-write of cmdId=52).
|
|
7993
|
+
*
|
|
7994
|
+
* Edits the rectangular shelter list and/or PTZ-tracking shelter list
|
|
7995
|
+
* in one call. Coordinates are normalized 0..1 of the camera mask
|
|
7996
|
+
* canvas — the lib re-fetches the current Shelter block, extracts the
|
|
7997
|
+
* canvas dims from the wire (low-16 of any non-zero coord), and
|
|
7998
|
+
* denormalizes back to the camera's pixel × canvas encoding.
|
|
7999
|
+
*
|
|
8000
|
+
* Pass `enable`/`trackEnable` to toggle the master enable flags without
|
|
8001
|
+
* touching the rectangle data. Pass `shelterList`/`trackShelterList` to
|
|
8002
|
+
* replace the corresponding list — missing slots are padded with
|
|
8003
|
+
* disabled zero-rects matching the camera's idle pattern.
|
|
8004
|
+
*
|
|
8005
|
+
* @param channel 0-based channel
|
|
8006
|
+
* @param patch partial edit; any omitted field is preserved as-is
|
|
8007
|
+
* @param options.canvas override the auto-detected mask canvas (only
|
|
8008
|
+
* needed when the GET response has no non-zero coords to extract from)
|
|
8009
|
+
* @param options.timeoutMs custom request timeout
|
|
8010
|
+
*/
|
|
8011
|
+
setMaskZones(channel: number, patch: {
|
|
8012
|
+
enable?: boolean;
|
|
8013
|
+
shelterList?: ShelterRect[];
|
|
8014
|
+
trackEnable?: boolean;
|
|
8015
|
+
trackShelterList?: TrackShelterRect[];
|
|
8016
|
+
}, options?: {
|
|
8017
|
+
canvas?: ShelterCanvas;
|
|
8018
|
+
timeoutMs?: number;
|
|
8019
|
+
}): Promise<void>;
|
|
7702
8020
|
/**
|
|
7703
8021
|
* GetAudioNoise via Baichuan (cmdId=439). Reads `enable` + `level`
|
|
7704
8022
|
* from the aiDenoise block. Mirrors reolink_aio's `GetAudioNoise`.
|
|
@@ -7923,6 +8241,14 @@ declare class ReolinkBaichuanApi {
|
|
|
7923
8241
|
getVersionInfo(options?: {
|
|
7924
8242
|
timeoutMs?: number;
|
|
7925
8243
|
}): Promise<BaichuanVersionInfo>;
|
|
8244
|
+
/**
|
|
8245
|
+
* GetUid (cmd_id=114). Returns the device UID / serial visible in the
|
|
8246
|
+
* Reolink app. Response shape: `<Uid><uid>9527000XXXXX</uid></Uid>`.
|
|
8247
|
+
* Device-global — no channel parameter.
|
|
8248
|
+
*/
|
|
8249
|
+
getUid(options?: {
|
|
8250
|
+
timeoutMs?: number;
|
|
8251
|
+
}): Promise<string>;
|
|
7926
8252
|
getLedState(channel: number, options?: {
|
|
7927
8253
|
timeoutMs?: number;
|
|
7928
8254
|
}): Promise<BaichuanLedState>;
|
|
@@ -11084,4 +11410,4 @@ declare function encodeMotionScopeBitmap(scope: MotionZoneScope): string;
|
|
|
11084
11410
|
*/
|
|
11085
11411
|
declare function fullCoverageScope(columns: number, rows: number, width?: number, height?: number): MotionZoneScope;
|
|
11086
11412
|
|
|
11087
|
-
export { type AIDetectionState, type AIEvent, type AIState, type AbilityInfo, type AccessUserListConfig, AesStreamDecryptor, type AiAlarmConfig, type AiConfig, type AiDenoiseConfig, type AiKey, type AiTypesCacheEntry, type AnyBuffer, type AudioAlarmParams, type AudioCfgConfig, type AudioConfig, type AudioNoiseConfig, type AudioTaskConfig, type AutoDetectInputs, type AutoDetectMode, type AutoDetectResult, type AutoFocusConfig, type AutoRebootConfig, type AutoRebootConfigPatch, AutodiscoveryClient, type AutodiscoveryClientOptions, BC_AES_IV, BC_CLASS_FILE_DOWNLOAD, BC_CLASS_LEGACY, BC_CLASS_MODERN_20, BC_CLASS_MODERN_24, BC_CLASS_MODERN_24_ALT, BC_CMD_ID_ABILITY_INFO, BC_CMD_ID_ALARM_EVENT_LIST, BC_CMD_ID_AUDIO_ALARM_PLAY, BC_CMD_ID_CHANNEL_INFO_ALL, BC_CMD_ID_CMD_123, BC_CMD_ID_CMD_209, BC_CMD_ID_CMD_265, BC_CMD_ID_CMD_440, BC_CMD_ID_COVER_PREVIEW, BC_CMD_ID_COVER_RESPONSE, BC_CMD_ID_COVER_STANDALONE_458, BC_CMD_ID_COVER_STANDALONE_459, BC_CMD_ID_COVER_STANDALONE_460, BC_CMD_ID_COVER_STANDALONE_461, BC_CMD_ID_COVER_STANDALONE_462, BC_CMD_ID_DING_DONG_CTRL, BC_CMD_ID_DING_DONG_OPT, BC_CMD_ID_FILE_INFO_LIST_CLOSE, BC_CMD_ID_FILE_INFO_LIST_DL_VIDEO, BC_CMD_ID_FILE_INFO_LIST_DOWNLOAD, BC_CMD_ID_FILE_INFO_LIST_GET, BC_CMD_ID_FILE_INFO_LIST_OPEN, BC_CMD_ID_FILE_INFO_LIST_REPLAY, BC_CMD_ID_FILE_INFO_LIST_STOP, BC_CMD_ID_FIND_REC_VIDEO_CLOSE, BC_CMD_ID_FIND_REC_VIDEO_GET, BC_CMD_ID_FIND_REC_VIDEO_OPEN, BC_CMD_ID_FLOODLIGHT_STATUS_LIST, BC_CMD_ID_GET_ABILITY_SUPPORT, BC_CMD_ID_GET_ACCESS_USER_LIST, BC_CMD_ID_GET_AI_ALARM, BC_CMD_ID_GET_AI_CFG, BC_CMD_ID_GET_AI_DENOISE, BC_CMD_ID_GET_AUDIO_ALARM, BC_CMD_ID_GET_AUDIO_CFG, BC_CMD_ID_GET_AUDIO_TASK, BC_CMD_ID_GET_AUTO_FOCUS, BC_CMD_ID_GET_AUTO_REBOOT, BC_CMD_ID_GET_BATTERY_INFO, BC_CMD_ID_GET_BATTERY_INFO_LIST, BC_CMD_ID_GET_DAY_NIGHT_THRESHOLD, BC_CMD_ID_GET_DAY_RECORDS, BC_CMD_ID_GET_DING_DONG_CFG, BC_CMD_ID_GET_DING_DONG_LIST, BC_CMD_ID_GET_DING_DONG_SILENT, BC_CMD_ID_GET_DST, BC_CMD_ID_GET_EMAIL, BC_CMD_ID_GET_EMAIL_TASK, BC_CMD_ID_GET_ENC, BC_CMD_ID_GET_FTP_TASK, BC_CMD_ID_GET_HDD_INFO_LIST, BC_CMD_ID_GET_KIT_AP_CFG, BC_CMD_ID_GET_LED_STATE, BC_CMD_ID_GET_MOTION_ALARM, BC_CMD_ID_GET_NTP, BC_CMD_ID_GET_ONLINE_USER_LIST, BC_CMD_ID_GET_OSD_DATETIME, BC_CMD_ID_GET_PIR_INFO, BC_CMD_ID_GET_PRIVACY_MASK, BC_CMD_ID_GET_PTZ_POSITION, BC_CMD_ID_GET_PTZ_PRESET, BC_CMD_ID_GET_PUSH_TASK, BC_CMD_ID_GET_RECORD, BC_CMD_ID_GET_RECORD_CFG, BC_CMD_ID_GET_REC_ENC_CFG, BC_CMD_ID_GET_SIREN_STATUS, BC_CMD_ID_GET_SLEEP_STATE, BC_CMD_ID_GET_STREAM_INFO_LIST, BC_CMD_ID_GET_SUPPORT, BC_CMD_ID_GET_SYSTEM_GENERAL, BC_CMD_ID_GET_TIMELAPSE_CFG, BC_CMD_ID_GET_VERSION_INFO, BC_CMD_ID_GET_VIDEO_INPUT, BC_CMD_ID_GET_WHITE_LED, BC_CMD_ID_GET_WIFI, BC_CMD_ID_GET_WIFI_SIGNAL, BC_CMD_ID_GET_ZOOM_FOCUS, BC_CMD_ID_LOGIN, BC_CMD_ID_LOGOUT, BC_CMD_ID_PING, BC_CMD_ID_PTZ_CONTROL, BC_CMD_ID_PTZ_CONTROL_PRESET, BC_CMD_ID_PUSH_COORDINATE_POINT_LIST, BC_CMD_ID_PUSH_DINGDONG_LIST, BC_CMD_ID_PUSH_NET_INFO, BC_CMD_ID_PUSH_SERIAL, BC_CMD_ID_PUSH_SLEEP_STATUS, BC_CMD_ID_PUSH_VIDEO_INPUT, BC_CMD_ID_QUICK_REPLY_PLAY, BC_CMD_ID_SET_AI_ALARM, BC_CMD_ID_SET_AI_CFG, BC_CMD_ID_SET_AI_DENOISE, BC_CMD_ID_SET_AUDIO_CFG, BC_CMD_ID_SET_AUDIO_TASK, BC_CMD_ID_SET_AUTO_FOCUS, BC_CMD_ID_SET_AUTO_REBOOT, BC_CMD_ID_SET_DAY_NIGHT_THRESHOLD, BC_CMD_ID_SET_DING_DONG_CFG, BC_CMD_ID_SET_DING_DONG_SILENT, BC_CMD_ID_SET_DST, BC_CMD_ID_SET_EMAIL, BC_CMD_ID_SET_EMAIL_TASK, BC_CMD_ID_SET_ENC, BC_CMD_ID_SET_LED_STATE, BC_CMD_ID_SET_MOTION_ALARM, BC_CMD_ID_SET_NTP, BC_CMD_ID_SET_OSD_DATETIME, BC_CMD_ID_SET_PIR_INFO, BC_CMD_ID_SET_PRIVACY_MASK, BC_CMD_ID_SET_PUSH_TASK, BC_CMD_ID_SET_RECORD, BC_CMD_ID_SET_RECORD_CFG, BC_CMD_ID_SET_SYSTEM_GENERAL, BC_CMD_ID_SET_VIDEO_INPUT, BC_CMD_ID_SET_WHITE_LED_STATE, BC_CMD_ID_SET_WHITE_LED_TASK, BC_CMD_ID_SET_ZOOM_FOCUS, BC_CMD_ID_SUPPORT, BC_CMD_ID_TALK, BC_CMD_ID_TALK_ABILITY, BC_CMD_ID_TALK_CONFIG, BC_CMD_ID_TALK_RESET, BC_CMD_ID_TEST_EMAIL, BC_CMD_ID_UDP_KEEP_ALIVE, BC_CMD_ID_VIDEO, BC_CMD_ID_VIDEO_STOP, BC_MAGIC, BC_MAGIC_REV, BC_TCP_DEFAULT_PORT, BC_XML_KEY, type BaichuanCachedPush, BaichuanClient, type BaichuanClientOptions, type BaichuanCoordinatePointListPush, type BaichuanDingdongListPush, type BaichuanEndpointsServerOptions, BaichuanEventEmitter, type BaichuanFrame, BaichuanFrameParser, type BaichuanGetOsdDatetimeResult, type BaichuanHeader, BaichuanHlsServer, type BaichuanHlsServerOptions, BaichuanHttpStreamServer, type BaichuanHttpStreamServerOptions, type BaichuanLedState, BaichuanMjpegServer, type BaichuanMjpegServerOptions, type BaichuanNetInfoPush, type BaichuanOsdChannelName, type BaichuanOsdDatetime, type BaichuanRecordCfg, type BaichuanRecordSchedule, BaichuanRtspServer, type BaichuanRtspServerOptions, type BaichuanSerialPush, type BaichuanSettingsPushCacheEntry, type BaichuanSleepState, type BaichuanSleepStatusPush, type BaichuanStreamEncodeTable, type BaichuanStreamInfo, type BaichuanStreamInfoList, type BaichuanTransport, type BaichuanVersionInfo, type BaichuanVideoInputPush, BaichuanVideoStream, type BaichuanVideoStreamOptions, BaichuanWebRTCServer, type BaichuanWebRTCServerOptions, type BaichuanWifi, type BaichuanWifiSignal, type BatteryInfo, type BatteryInfoResponse, type BcMedia, type BcMediaAac, type BcMediaAdpcm, BcMediaAnnexBDecoder, type BcMediaAnnexBDecoderStats, type BcMediaAnnexBInfo, type BcMediaAudioFrame, type BcMediaAudioType, BcMediaCodec, type BcMediaIframe, type BcMediaInfoV1, type BcMediaInfoV2, type BcMediaPframe, type BcMediaType, type BcMediaVideoFrame, type BcMediaVideoType, type BcUdpDiscoveryMethod, BcUdpStream, type BcUdpStreamOptions, type CgiAbility, type CgiAbilityChn, type CgiAbilityLeaf, type CgiAiAlarm, type CgiAiCfg, type CgiAiKey, type CgiAiStateValue, type CgiAudioAlarm, type CgiAudioAlarmPlayParam, type CgiAudioCfg, type CgiAudioNoise, type CgiAutoFocus, type CgiBattery, type CgiChannelStatusEntry, type CgiChnTypeInfoValue, type CgiDetectionState, type CgiDevInfo, type CgiDeviceInfoEntries, type CgiEmail, type CgiEnc, type CgiEncStream, type CgiEncValue, type CgiGetAbilityResponse, type CgiGetAbilityValue, type CgiGetAiAlarmValue, type CgiGetAiCfgValue, type CgiGetAiStateResponse, type CgiGetAudioAlarmValue, type CgiGetAudioCfgValue, type CgiGetAudioNoiseValue, type CgiGetAutoFocusValue, type CgiGetChannelstatusResponse, type CgiGetChannelstatusValue, type CgiGetChnTypeInfoResponse, type CgiGetDevInfoResponse, type CgiGetDevInfoValue, type CgiGetEmailValue, type CgiGetEncResponse, type CgiGetImageValue, type CgiGetIrLightsValue, type CgiGetIspValue, type CgiGetMaskValue, type CgiGetMdAlarmValue, type CgiGetOsdValue, type CgiGetPushValue, type CgiGetRecValue, type CgiGetRtspUrlResponse, type CgiGetRtspUrlValue, type CgiGetVideoclipsParams, type CgiImage, type CgiIrLights, type CgiIsp, type CgiMask, type CgiMaskShelter, type CgiMdAlarm, type CgiMdAlarmScope, type CgiMdAlarmSens, type CgiNetPort, type CgiOsd, type CgiPirInfo, type CgiPtzPreset, type CgiPush, type CgiRec, type CgiRecSchedule, type CgiSetAiAlarmParam, type CgiSetAiCfgParam, type CgiSetAudioAlarmParam, type CgiSetAudioCfgParam, type CgiSetAudioNoiseParam, type CgiSetAutoFocusParam, type CgiSetEmailParam, type CgiSetEncParam, type CgiSetImageParam, type CgiSetIrLightsParam, type CgiSetIspParam, type CgiSetMaskParam, type CgiSetMdAlarmParam, type CgiSetOsdParam, type CgiSetPirInfoParam, type CgiSetPushParam, type CgiSetRecParam, type CgiSetWhiteLedParam, type CgiWhiteLed, type ChannelPushCacheEntry, type ChannelPushDataEntry, type ChannelRecordingFile, type ChannelStreamMetadata, type ChimeAlarmCfg, type ChimeCfg, type ChimeDevice, type ChimeParams, type CollectNvrDiagnosticsOptions, CompositeRtspServer, type CompositeRtspServerOptions, CompositeStream, type CompositeStreamOptions, type CompositeStreamPipOptions, type CompressionStream, DUAL_LENS_DUAL_MOTION_MODELS, DUAL_LENS_MODELS, DUAL_LENS_SINGLE_MOTION_MODELS, type DayNightThresholdConfig, type DayOfWeek, type DebugConfig, type DebugOptions, type DeviceAbilities, type DeviceCapabilities, type DeviceCapabilitiesCacheEntry, type DeviceCapabilitiesDebugInfo, type DeviceCapabilitiesResult, type DeviceInfoResponse, type DeviceInputData, type DeviceObjectType, type DeviceStatusResponse, type DeviceSupportFlags, type DeviceType, type DiagnosticsCollectorResult, type DiagnosticsStreamKind, type DiscoveredDevice, type DiscoveryOptions, type DownloadRecordingParams, type DstConfig, type DstConfigPatch, type DualLensChannelAnalysis, type DualLensChannelInfo, type EmailAttachmentType, type EmailConfig, type EmailConfigPatch, type EmailTaskConfig, type EmailTaskScheduleItem, type EmailTextType, type EncConfig, type EncOptions, type EncResolutionOption, type EncStreamOptions, type EncStreamPatch, type EncryptionProtocol, type Events, type EventsResponse, type FloodlightTaskConfig, type FloodlightTaskState, type FtpTaskConfig, type GetRecordingVideoResult, type GetRecordingVideoStats, type GetVideoclipsParams, type GetVodUrlParams, Go2rtcTcpServer, type Go2rtcTcpServerOptions, H264RtpDepacketizer, H265RtpDepacketizer, type HardwiredChimeState, type HddInfoListConfig, type HlsCodec, type HlsHttpResponse, type HlsServerStatus, type HlsSession, HlsSessionManager, type HlsSessionManagerOptions, type HlsSessionParams, Intercom, type IntercomOptions, type IrLightsConfig, type IspConfig, type JsonObject, type JsonPrimitive, type JsonValue, type LastSleepProbe, type LogLevel, type Logger, type LoggerCallback, type LoginResponseValue, type MaskConfig, type MaxEncryption, type MediaStream, type MjpegFrame, MjpegTransformer, type MjpegTransformerOptions, type ModelFixtureCaptureResult, type MotionAlarmConfig, type MotionEvent, type MotionZoneScope, MpegTsMuxer, type MpegTsMuxerOptions, NVR_HUB_EXACT_TYPES, NVR_HUB_MODEL_PATTERNS, type NativeVideoStreamVariant, type NtpConfig, type NtpConfigPatch, type NvrChannelsSummaryCacheEntry, type OnlineUserListConfig, type OsdChannel, type OsdConfig, type OsdDateFormat, type OsdTime, type ParsedRecordingFileName, type PipPosition, type PirConfig, type PirState, type PlaybackSnapshotStreamInfo, type PtzCommand, type PtzPosition, type PtzPreset, type RecEncConfig, type RecordingAudioCodec, type RecordingDetectionClass, type RecordingDevType, type RecordingFile, type RecordingPlaybackUrls, type RecordingStreamType, type RecordingVideoCodec, type RecordingVodFlags, type RecordingVodStreamHint, type RecordingsCacheEntry, type RecordingsQueueItem, type ReolinkAiNotification, ReolinkBaichuanApi, type ReolinkBaichuanChannelIdentity, type ReolinkBaichuanChannelInfo, type ReolinkBaichuanDeviceSummary, type ReolinkBaichuanNetworkInfo, type ReolinkBaichuanPorts, ReolinkCgiApi, type ReolinkCmdRequest, type ReolinkCmdResponse, type ReolinkCmdResponseExt, type ReolinkDayNightNotification, type ReolinkDetectionBox, type ReolinkDetectionDecodeState, type ReolinkDetectionEvent, type ReolinkDeviceInfo, type ReolinkDeviceInfoTag, type ReolinkEvent, ReolinkHttpClient, type ReolinkHttpClientOptions, type ReolinkJson, type ReolinkMotionNotification, type ReolinkNvrChannelInfo, type ReolinkNvrDeviceGroupSummary, type ReolinkNvrDeviceGroupsResult, type ReolinkSimpleEvent, type ReolinkSimpleEventType, type ReolinkSupportedStream, type ReolinkVideoStreamOptionsResult, type ReolinkVisitorNotification, type ReplayHttpServer, type ReplayHttpServerOptions, type ResponseMediaStreamOptions, type Rfc4571ApiFactoryContext, type Rfc4571Client, Rfc4571Muxer, type Rfc4571ReplayServer, type Rfc4571ReplayServerOptions, type Rfc4571TcpServer, type Rfc4571TcpServerOptions, type RtpPacketizationOptions, type RtspCreateOptions, type RtspProxyServerOptions, type RtspStreamProfile, type RunAllDiagnosticsConsecutivelyParams, type RunAllDiagnosticsConsecutivelyResult, type RunMultifocalDiagnosticsConsecutivelyParams, type RunMultifocalDiagnosticsConsecutivelyResult, type SirenState, type SirenStatusConfig, type SleepInferenceDecision, type SleepInferenceInput, type SleepInferencePending, type SleepState, type SleepStatus, type StreamMetadata, type StreamProfile, type StreamSamplingOptions, type StreamSamplingSelection, type SupportConfig, type SupportInfo, type SupportItem, type SystemGeneralConfig, type SystemGeneralPatch, type TalkAbility$1 as TalkAbility, type TalkAudioConfig, type TalkConfig, type TalkSession$1 as TalkSession, type TalkSessionInfo, type TimeFormat, type TimelapseCfgConfig, type TwoWayAudioConfig, type UnknownChunkListener, type VideoCodec, type VideoInputConfig, type VideoParamSets, type VideoStreamOptions, type VideoStreamOptionsCacheEntry, type VideoType, type VideoclipClientInfo, type VideoclipModeDecision, type VideoclipThumbnailResult, type VideoclipTranscodeMode, type VodFile, type VodSearchResponse, type VodSearchResult, type VodSearchStatus, type WakeUpOptions, type WebRTCAnswer, type WebRTCIceCandidate, type WebRTCOffer, type WebRTCSessionInfo, type WhiteLedConfig, type WhiteLedState, type WirelessChimeSilentState, type XmlJsonObject, type XmlJsonPrimitive, type XmlJsonValue, type ZoomFocusStatus, type ZoomFocusTriplet, abilitiesHasAny, aesDecrypt, aesEncrypt, applyStreamPatch, applyXmlTagPatch, asLogger, autoDetectDeviceType, bcDecrypt, bcEncrypt, bcHeaderHasPayloadOffset, buildAacAudioSpecificConfigHex, buildAbilityInfoExtensionXml, buildBinaryExtensionXml, buildChannelExtensionXml, buildFloodlightManualXml, buildHlsRedirectUrl, buildLoginXml, buildLogoutXml, buildPreviewStopXml, buildPreviewStopXmlV11, buildPreviewXml, buildPreviewXmlV11, buildPtzControlXml, buildPtzPresetXml, buildPtzPresetXmlV2, buildRfc4571Sdp, buildRtspPath, buildRtspUrl, buildSirenManualXml, buildSirenTimesXml, buildStartZoomFocusXml, buildWhiteLedStateXml, captureModelFixtures, collectCgiDiagnostics, collectMultifocalDiagnostics, collectNativeDiagnostics, collectNvrDiagnostics, computeDeviceCapabilities, computeExpectedStreamCompatibility, convertToAnnexB as convertH265ToAnnexB, convertToAnnexB$1 as convertToAnnexB, convertToLengthPrefixed, createBaichuanEndpointsServer, createDebugGateLogger, createDiagnosticsBundle, createLogger, createMjpegBoundary, createNativeStream, createNullLogger, createReplayHttpServer, createRfc4571TcpServer, createRfc4571TcpServerForReplay, createRtspProxyServer, createTaggedLogger, decideSleepInferenceTransition, decideVideoclipTranscodeMode, decodeHeader, decodeMotionScopeBitmap, deriveAesKey, detectIosClient, detectVideoCodecFromNal, discoverReolinkDevices, discoverViaArpTable, discoverViaDhcpListener, discoverViaHttpScan, discoverViaOnvif, discoverViaTcpPortScan, discoverViaUdpBroadcast, discoverViaUdpDirect, encodeHeader, encodeMotionScopeBitmap, ensureXmlHeader, extractH264ParamSetsFromAccessUnit, extractH265ParamSetsFromAccessUnit, extractPpsFromAnnexB, extractSpsFromAnnexB, extractVpsFromAnnexB, flattenAbilitiesForChannel, formatMjpegFrame, fullCoverageScope, getConstructedVideoStreamOptions, getGlobalLogger, getH265NalType, getMjpegContentType, getSupportItemForChannel, getVideoStream, getVideoclipClientInfo, getXmlText, hasStartCodes as hasH265StartCodes, hasStartCodes$1 as hasStartCodes, isDualLenseModel, isH264KeyframeAnnexB, isH265Irap, isH265KeyframeAnnexB, isNvrHubModel, isTcpFailureThatShouldFallbackToUdp, isValidH264AnnexBAccessUnit, isValidH265AnnexBAccessUnit, maskUid, md5HexUpper, md5StrModern, normalizeDayNightMode, normalizeOpenClose, normalizeUid, packetizeAacAdtsFrame, packetizeAacRawFrame, packetizeH264, packetizeH265, parseAdtsHeader, parseBcMedia, parseRecordingFileName, parseSupportXml, patchNestedTag, printNvrDiagnostics, runAllDiagnosticsConsecutively, runMultifocalDiagnosticsConsecutively, sampleStreams, sanitizeFixtureData, setGlobalLogger, splitAnnexBToNalPayloads$1 as splitAnnexBToNalPayloads, splitAnnexBToNals, splitAnnexBToNalPayloads as splitH265AnnexBToNalPayloads, testChannelStreams, upsertXmlTag, xmlEscape, xmlIndicatesFloodlight, zipDirectory };
|
|
11413
|
+
export { type AIDetectionState, type AIEvent, type AIState, type AbilityInfo, type AccessUserListConfig, AesStreamDecryptor, type AiAlarmConfig, type AiConfig, type AiDenoiseConfig, type AiDetectCfgZone, type AiKey, type AiTypesCacheEntry, type AnyBuffer, type AudioAlarmParams, type AudioCfgConfig, type AudioConfig, type AudioNoiseConfig, type AudioTaskConfig, type AutoDetectInputs, type AutoDetectMode, type AutoDetectResult, type AutoFocusConfig, type AutoRebootConfig, type AutoRebootConfigPatch, AutodiscoveryClient, type AutodiscoveryClientOptions, BC_AES_IV, BC_CLASS_FILE_DOWNLOAD, BC_CLASS_LEGACY, BC_CLASS_MODERN_20, BC_CLASS_MODERN_24, BC_CLASS_MODERN_24_ALT, BC_CMD_ID_ABILITY_INFO, BC_CMD_ID_ALARM_EVENT_LIST, BC_CMD_ID_AUDIO_ALARM_PLAY, BC_CMD_ID_CHANNEL_INFO_ALL, BC_CMD_ID_CMD_123, BC_CMD_ID_CMD_209, BC_CMD_ID_CMD_265, BC_CMD_ID_CMD_440, BC_CMD_ID_COVER_PREVIEW, BC_CMD_ID_COVER_RESPONSE, BC_CMD_ID_COVER_STANDALONE_458, BC_CMD_ID_COVER_STANDALONE_459, BC_CMD_ID_COVER_STANDALONE_460, BC_CMD_ID_COVER_STANDALONE_461, BC_CMD_ID_COVER_STANDALONE_462, BC_CMD_ID_DING_DONG_CTRL, BC_CMD_ID_DING_DONG_OPT, BC_CMD_ID_FILE_INFO_LIST_CLOSE, BC_CMD_ID_FILE_INFO_LIST_DL_VIDEO, BC_CMD_ID_FILE_INFO_LIST_DOWNLOAD, BC_CMD_ID_FILE_INFO_LIST_GET, BC_CMD_ID_FILE_INFO_LIST_OPEN, BC_CMD_ID_FILE_INFO_LIST_REPLAY, BC_CMD_ID_FILE_INFO_LIST_STOP, BC_CMD_ID_FIND_REC_VIDEO_CLOSE, BC_CMD_ID_FIND_REC_VIDEO_GET, BC_CMD_ID_FIND_REC_VIDEO_OPEN, BC_CMD_ID_FLOODLIGHT_STATUS_LIST, BC_CMD_ID_GET_ABILITY_SUPPORT, BC_CMD_ID_GET_ACCESS_USER_LIST, BC_CMD_ID_GET_AI_ALARM, BC_CMD_ID_GET_AI_CFG, BC_CMD_ID_GET_AI_DENOISE, BC_CMD_ID_GET_AUDIO_ALARM, BC_CMD_ID_GET_AUDIO_CFG, BC_CMD_ID_GET_AUDIO_TASK, BC_CMD_ID_GET_AUTO_FOCUS, BC_CMD_ID_GET_AUTO_REBOOT, BC_CMD_ID_GET_BATTERY_INFO, BC_CMD_ID_GET_BATTERY_INFO_LIST, BC_CMD_ID_GET_DAY_NIGHT_THRESHOLD, BC_CMD_ID_GET_DAY_RECORDS, BC_CMD_ID_GET_DING_DONG_CFG, BC_CMD_ID_GET_DING_DONG_LIST, BC_CMD_ID_GET_DING_DONG_SILENT, BC_CMD_ID_GET_DST, BC_CMD_ID_GET_EMAIL, BC_CMD_ID_GET_EMAIL_TASK, BC_CMD_ID_GET_ENC, BC_CMD_ID_GET_FTP_TASK, BC_CMD_ID_GET_HDD_INFO_LIST, BC_CMD_ID_GET_KIT_AP_CFG, BC_CMD_ID_GET_LED_STATE, BC_CMD_ID_GET_MOTION_ALARM, BC_CMD_ID_GET_NTP, BC_CMD_ID_GET_ONLINE_USER_LIST, BC_CMD_ID_GET_OSD_DATETIME, BC_CMD_ID_GET_PIR_INFO, BC_CMD_ID_GET_PRIVACY_MASK, BC_CMD_ID_GET_PTZ_POSITION, BC_CMD_ID_GET_PTZ_PRESET, BC_CMD_ID_GET_PUSH_TASK, BC_CMD_ID_GET_RECORD, BC_CMD_ID_GET_RECORD_CFG, BC_CMD_ID_GET_REC_ENC_CFG, BC_CMD_ID_GET_SIREN_STATUS, BC_CMD_ID_GET_SLEEP_STATE, BC_CMD_ID_GET_SNAPSHOT, BC_CMD_ID_GET_STREAM_INFO_LIST, BC_CMD_ID_GET_SUPPORT, BC_CMD_ID_GET_SYSTEM_GENERAL, BC_CMD_ID_GET_TIMELAPSE_CFG, BC_CMD_ID_GET_UID, BC_CMD_ID_GET_VERSION_INFO, BC_CMD_ID_GET_VIDEO_INPUT, BC_CMD_ID_GET_WHITE_LED, BC_CMD_ID_GET_WIFI, BC_CMD_ID_GET_WIFI_SIGNAL, BC_CMD_ID_GET_ZOOM_FOCUS, BC_CMD_ID_LOGIN, BC_CMD_ID_LOGOUT, BC_CMD_ID_PING, BC_CMD_ID_PTZ_CONTROL, BC_CMD_ID_PTZ_CONTROL_PRESET, BC_CMD_ID_PUSH_COORDINATE_POINT_LIST, BC_CMD_ID_PUSH_DINGDONG_LIST, BC_CMD_ID_PUSH_NET_INFO, BC_CMD_ID_PUSH_SERIAL, BC_CMD_ID_PUSH_SLEEP_STATUS, BC_CMD_ID_PUSH_VIDEO_INPUT, BC_CMD_ID_QUICK_REPLY_PLAY, BC_CMD_ID_SET_AI_ALARM, BC_CMD_ID_SET_AI_CFG, BC_CMD_ID_SET_AI_DENOISE, BC_CMD_ID_SET_AUDIO_CFG, BC_CMD_ID_SET_AUDIO_TASK, BC_CMD_ID_SET_AUTO_FOCUS, BC_CMD_ID_SET_AUTO_REBOOT, BC_CMD_ID_SET_DAY_NIGHT_THRESHOLD, BC_CMD_ID_SET_DING_DONG_CFG, BC_CMD_ID_SET_DING_DONG_SILENT, BC_CMD_ID_SET_DST, BC_CMD_ID_SET_EMAIL, BC_CMD_ID_SET_EMAIL_TASK, BC_CMD_ID_SET_ENC, BC_CMD_ID_SET_LED_STATE, BC_CMD_ID_SET_MOTION_ALARM, BC_CMD_ID_SET_NTP, BC_CMD_ID_SET_OSD_DATETIME, BC_CMD_ID_SET_PIR_INFO, BC_CMD_ID_SET_PRIVACY_MASK, BC_CMD_ID_SET_PUSH_TASK, BC_CMD_ID_SET_RECORD, BC_CMD_ID_SET_RECORD_CFG, BC_CMD_ID_SET_SYSTEM_GENERAL, BC_CMD_ID_SET_VIDEO_INPUT, BC_CMD_ID_SET_WHITE_LED_STATE, BC_CMD_ID_SET_WHITE_LED_TASK, BC_CMD_ID_SET_ZOOM_FOCUS, BC_CMD_ID_SUPPORT, BC_CMD_ID_TALK, BC_CMD_ID_TALK_ABILITY, BC_CMD_ID_TALK_CONFIG, BC_CMD_ID_TALK_RESET, BC_CMD_ID_TEST_EMAIL, BC_CMD_ID_UDP_KEEP_ALIVE, BC_CMD_ID_VIDEO, BC_CMD_ID_VIDEO_STOP, BC_MAGIC, BC_MAGIC_REV, BC_TCP_DEFAULT_PORT, BC_XML_KEY, type BaichuanCachedPush, BaichuanClient, type BaichuanClientOptions, type BaichuanCoordinatePointListPush, type BaichuanDingdongListPush, type BaichuanEndpointsServerOptions, BaichuanEventEmitter, type BaichuanFrame, BaichuanFrameParser, type BaichuanGetOsdDatetimeResult, type BaichuanHeader, BaichuanHlsServer, type BaichuanHlsServerOptions, BaichuanHttpStreamServer, type BaichuanHttpStreamServerOptions, type BaichuanLedState, BaichuanMjpegServer, type BaichuanMjpegServerOptions, type BaichuanNetInfoPush, type BaichuanOsdChannelName, type BaichuanOsdDatetime, type BaichuanRecordCfg, type BaichuanRecordSchedule, BaichuanRtspServer, type BaichuanRtspServerOptions, type BaichuanSerialPush, type BaichuanSettingsPushCacheEntry, type BaichuanSleepState, type BaichuanSleepStatusPush, type BaichuanStreamEncodeTable, type BaichuanStreamInfo, type BaichuanStreamInfoList, type BaichuanTransport, type BaichuanVersionInfo, type BaichuanVideoInputPush, BaichuanVideoStream, type BaichuanVideoStreamOptions, BaichuanWebRTCServer, type BaichuanWebRTCServerOptions, type BaichuanWifi, type BaichuanWifiSignal, type BatteryInfo, type BatteryInfoResponse, type BcMedia, type BcMediaAac, type BcMediaAdpcm, BcMediaAnnexBDecoder, type BcMediaAnnexBDecoderStats, type BcMediaAnnexBInfo, type BcMediaAudioFrame, type BcMediaAudioType, BcMediaCodec, type BcMediaIframe, type BcMediaInfoV1, type BcMediaInfoV2, type BcMediaPframe, type BcMediaType, type BcMediaVideoFrame, type BcMediaVideoType, type BcUdpDiscoveryMethod, BcUdpStream, type BcUdpStreamOptions, type CgiAbility, type CgiAbilityChn, type CgiAbilityLeaf, type CgiAiAlarm, type CgiAiCfg, type CgiAiKey, type CgiAiStateValue, type CgiAudioAlarm, type CgiAudioAlarmPlayParam, type CgiAudioCfg, type CgiAudioNoise, type CgiAutoFocus, type CgiBattery, type CgiChannelStatusEntry, type CgiChnTypeInfoValue, type CgiDetectionState, type CgiDevInfo, type CgiDeviceInfoEntries, type CgiEmail, type CgiEnc, type CgiEncStream, type CgiEncValue, type CgiGetAbilityResponse, type CgiGetAbilityValue, type CgiGetAiAlarmValue, type CgiGetAiCfgValue, type CgiGetAiStateResponse, type CgiGetAudioAlarmValue, type CgiGetAudioCfgValue, type CgiGetAudioNoiseValue, type CgiGetAutoFocusValue, type CgiGetChannelstatusResponse, type CgiGetChannelstatusValue, type CgiGetChnTypeInfoResponse, type CgiGetDevInfoResponse, type CgiGetDevInfoValue, type CgiGetEmailValue, type CgiGetEncResponse, type CgiGetImageValue, type CgiGetIrLightsValue, type CgiGetIspValue, type CgiGetMaskValue, type CgiGetMdAlarmValue, type CgiGetOsdValue, type CgiGetPushValue, type CgiGetRecValue, type CgiGetRtspUrlResponse, type CgiGetRtspUrlValue, type CgiGetVideoclipsParams, type CgiImage, type CgiIrLights, type CgiIsp, type CgiMask, type CgiMaskShelter, type CgiMdAlarm, type CgiMdAlarmScope, type CgiMdAlarmSens, type CgiNetPort, type CgiOsd, type CgiPirInfo, type CgiPtzPreset, type CgiPush, type CgiRec, type CgiRecSchedule, type CgiSetAiAlarmParam, type CgiSetAiCfgParam, type CgiSetAudioAlarmParam, type CgiSetAudioCfgParam, type CgiSetAudioNoiseParam, type CgiSetAutoFocusParam, type CgiSetEmailParam, type CgiSetEncParam, type CgiSetImageParam, type CgiSetIrLightsParam, type CgiSetIspParam, type CgiSetMaskParam, type CgiSetMdAlarmParam, type CgiSetOsdParam, type CgiSetPirInfoParam, type CgiSetPushParam, type CgiSetRecParam, type CgiSetWhiteLedParam, type CgiWhiteLed, type ChannelPushCacheEntry, type ChannelPushDataEntry, type ChannelRecordingFile, type ChannelStreamMetadata, type ChimeAlarmCfg, type ChimeCfg, type ChimeDevice, type ChimeParams, type CollectNvrDiagnosticsOptions, CompositeRtspServer, type CompositeRtspServerOptions, CompositeStream, type CompositeStreamOptions, type CompositeStreamPipOptions, type CompressionStream, DEFAULT_SHELTER_CANVAS, DUAL_LENS_DUAL_MOTION_MODELS, DUAL_LENS_MODELS, DUAL_LENS_SINGLE_MOTION_MODELS, type DayNightThresholdConfig, type DayOfWeek, type DebugConfig, type DebugOptions, type DeviceAbilities, type DeviceCapabilities, type DeviceCapabilitiesCacheEntry, type DeviceCapabilitiesDebugInfo, type DeviceCapabilitiesResult, type DeviceInfoResponse, type DeviceInputData, type DeviceObjectType, type DeviceStatusResponse, type DeviceSupportFlags, type DeviceType, type DiagnosticsCollectorResult, type DiagnosticsStreamKind, type DiscoveredDevice, type DiscoveryOptions, type DownloadRecordingParams, type DstConfig, type DstConfigPatch, type DualLensChannelAnalysis, type DualLensChannelInfo, type EmailAttachmentType, type EmailConfig, type EmailConfigPatch, type EmailTaskConfig, type EmailTaskScheduleItem, type EmailTextType, type EncConfig, type EncOptions, type EncResolutionOption, type EncStreamOptions, type EncStreamPatch, type EncryptionProtocol, type Events, type EventsResponse, type FloodlightTaskConfig, type FloodlightTaskState, type FtpTaskConfig, type GetRecordingVideoResult, type GetRecordingVideoStats, type GetVideoclipsParams, type GetVodUrlParams, Go2rtcTcpServer, type Go2rtcTcpServerOptions, H264RtpDepacketizer, H265RtpDepacketizer, type HardwiredChimeState, type HddInfoListConfig, type HlsCodec, type HlsHttpResponse, type HlsServerStatus, type HlsSession, HlsSessionManager, type HlsSessionManagerOptions, type HlsSessionParams, Intercom, type IntercomOptions, type IrLightsConfig, type IspConfig, type JsonObject, type JsonPrimitive, type JsonValue, type LastSleepProbe, type LogLevel, type Logger, type LoggerCallback, type LoginResponseValue, type MaskConfig, type MaxEncryption, type MediaStream, type MjpegFrame, MjpegTransformer, type MjpegTransformerOptions, type ModelFixtureCaptureResult, type MotionAlarmConfig, type MotionEvent, type MotionSensitivityBand, type MotionZoneScope, MpegTsMuxer, type MpegTsMuxerOptions, NVR_HUB_EXACT_TYPES, NVR_HUB_MODEL_PATTERNS, type NativeVideoStreamVariant, type NtpConfig, type NtpConfigPatch, type NvrChannelsSummaryCacheEntry, type OnlineUserListConfig, type OsdChannel, type OsdConfig, type OsdDateFormat, type OsdTime, type ParsedRecordingFileName, type PipPosition, type PirConfig, type PirState, type PlaybackSnapshotStreamInfo, type PrivacyMaskZones, type PtzCommand, type PtzPosition, type PtzPreset, type RecEncConfig, type RecordingAudioCodec, type RecordingDetectionClass, type RecordingDevType, type RecordingFile, type RecordingPlaybackUrls, type RecordingStreamType, type RecordingVideoCodec, type RecordingVodFlags, type RecordingVodStreamHint, type RecordingsCacheEntry, type RecordingsQueueItem, type ReolinkAiNotification, ReolinkBaichuanApi, type ReolinkBaichuanChannelIdentity, type ReolinkBaichuanChannelInfo, type ReolinkBaichuanDeviceSummary, type ReolinkBaichuanNetworkInfo, type ReolinkBaichuanPorts, ReolinkCgiApi, type ReolinkCmdRequest, type ReolinkCmdResponse, type ReolinkCmdResponseExt, type ReolinkDayNightNotification, type ReolinkDetectionBox, type ReolinkDetectionDecodeState, type ReolinkDetectionEvent, type ReolinkDeviceInfo, type ReolinkDeviceInfoTag, type ReolinkEvent, ReolinkHttpClient, type ReolinkHttpClientOptions, type ReolinkJson, type ReolinkMotionNotification, type ReolinkNvrChannelInfo, type ReolinkNvrDeviceGroupSummary, type ReolinkNvrDeviceGroupsResult, type ReolinkSimpleEvent, type ReolinkSimpleEventType, type ReolinkSupportedStream, type ReolinkVideoStreamOptionsResult, type ReolinkVisitorNotification, type ReplayHttpServer, type ReplayHttpServerOptions, type ResponseMediaStreamOptions, type Rfc4571ApiFactoryContext, type Rfc4571Client, Rfc4571Muxer, type Rfc4571ReplayServer, type Rfc4571ReplayServerOptions, type Rfc4571TcpServer, type Rfc4571TcpServerOptions, type RtpPacketizationOptions, type RtspCreateOptions, type RtspProxyServerOptions, type RtspStreamProfile, type RunAllDiagnosticsConsecutivelyParams, type RunAllDiagnosticsConsecutivelyResult, type RunMultifocalDiagnosticsConsecutivelyParams, type RunMultifocalDiagnosticsConsecutivelyResult, type ShelterCanvas, type ShelterRect, type SirenState, type SirenStatusConfig, type SleepInferenceDecision, type SleepInferenceInput, type SleepInferencePending, type SleepState, type SleepStatus, type StreamMetadata, type StreamProfile, type StreamSamplingOptions, type StreamSamplingSelection, type SupportConfig, type SupportInfo, type SupportItem, type SystemGeneralConfig, type SystemGeneralPatch, type TalkAbility$1 as TalkAbility, type TalkAudioConfig, type TalkConfig, type TalkSession$1 as TalkSession, type TalkSessionInfo, type TimeFormat, type TimelapseCfgConfig, type TrackShelterRect, type TwoWayAudioConfig, type UnknownChunkListener, type VideoCodec, type VideoInputConfig, type VideoParamSets, type VideoStreamOptions, type VideoStreamOptionsCacheEntry, type VideoType, type VideoclipClientInfo, type VideoclipModeDecision, type VideoclipThumbnailResult, type VideoclipTranscodeMode, type VodFile, type VodSearchResponse, type VodSearchResult, type VodSearchStatus, type WakeUpOptions, type WebRTCAnswer, type WebRTCIceCandidate, type WebRTCOffer, type WebRTCSessionInfo, type WhiteLedConfig, type WhiteLedState, type WirelessChimeSilentState, type XmlJsonObject, type XmlJsonPrimitive, type XmlJsonValue, type ZoomFocusStatus, type ZoomFocusTriplet, abilitiesHasAny, aesDecrypt, aesEncrypt, applyStreamPatch, applyXmlTagPatch, asLogger, autoDetectDeviceType, bcDecrypt, bcEncrypt, bcHeaderHasPayloadOffset, buildAacAudioSpecificConfigHex, buildAbilityInfoExtensionXml, buildBinaryExtensionXml, buildChannelExtensionXml, buildFloodlightManualXml, buildHlsRedirectUrl, buildLoginXml, buildLogoutXml, buildPreviewStopXml, buildPreviewStopXmlV11, buildPreviewXml, buildPreviewXmlV11, buildPtzControlXml, buildPtzPresetXml, buildPtzPresetXmlV2, buildRfc4571Sdp, buildRtspPath, buildRtspUrl, buildSirenManualXml, buildSirenTimesXml, buildStartZoomFocusXml, buildWhiteLedStateXml, captureModelFixtures, collectCgiDiagnostics, collectMultifocalDiagnostics, collectNativeDiagnostics, collectNvrDiagnostics, computeDeviceCapabilities, computeExpectedStreamCompatibility, convertToAnnexB as convertH265ToAnnexB, convertToAnnexB$1 as convertToAnnexB, convertToLengthPrefixed, createBaichuanEndpointsServer, createDebugGateLogger, createDiagnosticsBundle, createLogger, createMjpegBoundary, createNativeStream, createNullLogger, createReplayHttpServer, createRfc4571TcpServer, createRfc4571TcpServerForReplay, createRtspProxyServer, createTaggedLogger, decideSleepInferenceTransition, decideVideoclipTranscodeMode, decodeAiDetectCfg, decodeHeader, decodeMotionScopeBitmap, decodePrivacyMaskZones, decodeShelterCoord, deriveAesKey, detectIosClient, detectVideoCodecFromNal, discoverReolinkDevices, discoverViaArpTable, discoverViaDhcpListener, discoverViaHttpScan, discoverViaOnvif, discoverViaTcpPortScan, discoverViaUdpBroadcast, discoverViaUdpDirect, encodeHeader, encodeMotionScopeBitmap, encodeMotionSensitivityListXml, encodeShelterCoord, encodeShelterListXml, encodeTrackShelterListXml, ensureXmlHeader, extractCanvasFromShelterXml, extractH264ParamSetsFromAccessUnit, extractH265ParamSetsFromAccessUnit, extractPpsFromAnnexB, extractSpsFromAnnexB, extractVpsFromAnnexB, flattenAbilitiesForChannel, formatMjpegFrame, fullCoverageScope, getConstructedVideoStreamOptions, getGlobalLogger, getH265NalType, getMjpegContentType, getSupportItemForChannel, getVideoStream, getVideoclipClientInfo, getXmlText, hasStartCodes as hasH265StartCodes, hasStartCodes$1 as hasStartCodes, isDualLenseModel, isH264KeyframeAnnexB, isH265Irap, isH265KeyframeAnnexB, isNvrHubModel, isTcpFailureThatShouldFallbackToUdp, isValidH264AnnexBAccessUnit, isValidH265AnnexBAccessUnit, maskUid, md5HexUpper, md5StrModern, normalizeDayNightMode, normalizeOpenClose, normalizeUid, packetizeAacAdtsFrame, packetizeAacRawFrame, packetizeH264, packetizeH265, parseAdtsHeader, parseBcMedia, parseRecordingFileName, parseSupportXml, patchAiDetectCfgXml, patchMotionSensitivityListXml, patchNestedTag, patchShelterXml, printNvrDiagnostics, runAllDiagnosticsConsecutively, runMultifocalDiagnosticsConsecutively, sampleStreams, sanitizeFixtureData, setGlobalLogger, splitAnnexBToNalPayloads$1 as splitAnnexBToNalPayloads, splitAnnexBToNals, splitAnnexBToNalPayloads as splitH265AnnexBToNalPayloads, testChannelStreams, upsertXmlTag, xmlEscape, xmlIndicatesFloodlight, zipDirectory };
|