@mega-yfue/eufy-sdk 0.4.0-beta.11 → 0.4.0-beta.13

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.
@@ -27,7 +27,7 @@ export declare const SIREN_CMD: {
27
27
  readonly ALARM_TEST: 1826;
28
28
  /** Manually stop a sounding alarm (app `APP_CMD_SIREN_SENSOR_MANUAL_STOP_ALARM`). */
29
29
  readonly MANUAL_STOP: 1871;
30
- /** Station-family HomeBase duration alarm, verified live on T8010 (app `SET_TONE_FILE`). */
30
+ /** Station-family HomeBase duration alarm, verified live on T8010 and T8030 (app `SET_TONE_FILE`). */
31
31
  readonly HOMEBASE_TONE: 1201;
32
32
  /** HomeBase alarm volume percentage (app `CMD_SET_HUB_SPK_VOLUME`). */
33
33
  readonly HUB_SPK_VOLUME: 1235;
@@ -510,11 +510,6 @@ export declare class P2PSession extends EventEmitter {
510
510
  * camera is selected by `mChannel` (= the device's `device_channel`) AND the frame-header channel.
511
511
  */
512
512
  private sendMediaPayloadLevel2;
513
- /**
514
- * Encrypt a level-2 command body (signCode 8): `tag(16) ‖ nonce(12) ‖ [seq,03,02,01](4) ‖
515
- * ciphertext`, AES-256-GCM under the negotiated session key, AAD "eufy security". Inverse of
516
- * `decryptLevel2`. The 4-byte sub-header is cleartext (skipped on decrypt); `seq` is a counter.
517
- */
518
513
  /**
519
514
  * Decode a `CMD_VIDEO_FRAME` (1300) payload into clean Annex-B H.264 (the 22-byte frame header
520
515
  * stripped). Reversed from the V6 app + live H.264 captures: the 22-byte header is
@@ -538,6 +533,11 @@ export declare class P2PSession extends EventEmitter {
538
533
  * key. Lazily generates a keypair; `rsaPrivateKey` decrypts the media key the station returns.
539
534
  */
540
535
  private rsaModulus;
536
+ /**
537
+ * Encrypt a level-2 command body (signCode 8): `tag(16) ‖ nonce(12) ‖ seq(4) ‖ ciphertext`,
538
+ * AES-256-GCM under the negotiated session key, AAD "eufy security". Inverse of `decryptLevel2`.
539
+ * The 4-byte sub-header is cleartext (skipped on decrypt); `seq` counts up from {@link LEVEL2_SEQ_BASE}.
540
+ */
541
541
  private encryptLevel2;
542
542
  /** Send a no-arg command frame (e.g. CMD_GATEWAYINFO) on a channel (default: the station channel). */
543
543
  private sendCommand;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mega-yfue/eufy-sdk",
3
- "version": "0.4.0-beta.11",
3
+ "version": "0.4.0-beta.13",
4
4
  "description": "One typed TypeScript client for the Anker eufy v6 cloud — capability-driven devices, realtime events over P2P/MQTT/push, and live media",
5
5
  "license": "Apache-2.0",
6
6
  "author": "mega-yfue",