@mega-yfue/eufy-sdk 0.5.0-beta.83 → 0.5.0-beta.84

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.
@@ -185,10 +185,6 @@ export declare class P2PSession extends EventEmitter {
185
185
  * change (the level-2 key arrived after an initial level-1 start), otherwise sends the 1139 nudge.
186
186
  */
187
187
  private readonly liveStartedChannels;
188
- /** The `cipher_id` this connection's `CMD_GATEWAYINFO` reply named, once its negotiation has read it. */
189
- private gatewayCipherId?;
190
- /** The `n` of the last `[0x01, n]` header this connection sent in the clear — see {@link nextClearCommandBytes}. */
191
- private clearCommandCount;
192
188
  private readonly unackedLiveStarts;
193
189
  private liveStartRetransmitTimer?;
194
190
  private readonly logger;
@@ -400,9 +396,6 @@ export declare class P2PSession extends EventEmitter {
400
396
  * `video_type` is 12, and `transaction` is the millisecond timestamp as a string. The device answers a
401
397
  * start carrying these values with a keyframe; `encryptkey` is the modulus it RSA-wraps each keyframe's
402
398
  * AES media key with (unwrapped by {@link decodeVideoFrame}).
403
- *
404
- * With `clearMsgId`, the body of a start sent in the clear: `{accountId, encryptkey, msg_id, streamtype: 1}`
405
- * only, `msg_id` being `clearMsgId`, which changes from one start to the next.
406
399
  */
407
400
  private startLiveJson;
408
401
  /**
@@ -410,20 +403,8 @@ export declare class P2PSession extends EventEmitter {
410
403
  * (GCM, signCode 8, frame type 10) when the session has a negotiated key, else level-1 (AES-128-ECB,
411
404
  * signCode 1, frame type 11) — chosen by the session key, not the device family. The camera RSA-wraps
412
405
  * each keyframe's AES media key with the `encryptkey` modulus (unwrapped by {@link decodeVideoFrame}).
413
- * A session that {@link sendsInTheClear} sends it unencrypted instead: signCode 0, frame type 0, header
414
- * bytes `[0x01, n]` from {@link nextClearCommandBytes}, and `n` as the body's `msg_id`.
415
406
  */
416
407
  private sendStartLiveOwnSession;
417
- /**
418
- * Whether this session's own-session start and stop go in the clear: its `CMD_GATEWAYINFO` reply named
419
- * `cipher_id` 0.
420
- */
421
- private sendsInTheClear;
422
- /**
423
- * Header bytes 10-11 of this connection's next command sent in the clear: `[0x01, n]`, with `n` counting
424
- * those commands from 1 and never 0. A retransmit repeats its `n`, and the device's reply echoes it.
425
- */
426
- private nextClearCommandBytes;
427
408
  /**
428
409
  * Repeat unacknowledged own-session live starts until the device takes one. Runs only while a start is
429
410
  * outstanding.
@@ -494,8 +475,6 @@ export declare class P2PSession extends EventEmitter {
494
475
  * `uint32`, the same 4-byte body as the attached talkback frames. The app sends this frame on closing
495
476
  * an own-session camera's live view; the camera stops streaming on it within a second, and keeps
496
477
  * streaming through the 1350-wrapped form.
497
- * - own-session on a session that {@link sendsInTheClear}: the same 4-byte body unencrypted, signCode 0,
498
- * header bytes from {@link nextClearCommandBytes}.
499
478
  * - without a level-2 key: the bare 1004 command.
500
479
  */
501
480
  stopLiveMedia(channel?: number, accountId?: string, homeBaseAttached?: boolean): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mega-yfue/eufy-sdk",
3
- "version": "0.5.0-beta.83",
3
+ "version": "0.5.0-beta.84",
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",