@mega-yfue/eufy-sdk 0.5.0-beta.95 → 0.6.0-beta.1
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.
|
@@ -204,6 +204,7 @@ export declare const ARMING_MEMBERS: {
|
|
|
204
204
|
* MODE_SWITCH carries no value. Live qualification on a standalone camera showed that authoritative
|
|
205
205
|
* readback requires a bounded cloud-list refresh, and that its P2P session must be reset after
|
|
206
206
|
* convergence before a following mode write; an attached device must never reset its shared HomeBase.
|
|
207
|
+
* A standalone T8423's level-1 session is kept open instead.
|
|
207
208
|
*/
|
|
208
209
|
readonly mode: {
|
|
209
210
|
readonly accepts: ArmingMode;
|
|
@@ -34,9 +34,9 @@ export declare const MOWER_DP: {
|
|
|
34
34
|
readonly SPARSE_LAWN_OPTIMIZATION: 141;
|
|
35
35
|
};
|
|
36
36
|
/** The `net_media_type` (DP 134) range, as the schema lists it. */
|
|
37
|
-
declare const MOWER_NETWORKS: readonly ["None", "Wifi", "Cellular"];
|
|
37
|
+
export declare const MOWER_NETWORKS: readonly ["None", "Wifi", "Cellular"];
|
|
38
38
|
/** The mower's network link (DP 134). */
|
|
39
|
-
type MowerNetwork = (typeof MOWER_NETWORKS)[number];
|
|
39
|
+
export type MowerNetwork = (typeof MOWER_NETWORKS)[number];
|
|
40
40
|
/**
|
|
41
41
|
* Every `mower` read, declared once.
|
|
42
42
|
*
|
|
@@ -228,4 +228,3 @@ export declare const MOWER_MEMBERS: {
|
|
|
228
228
|
export type MowerActions = Surface<typeof MOWER_MEMBERS>;
|
|
229
229
|
/** `mower` — robot-mower state from its Tuya data points. */
|
|
230
230
|
export declare const MOWER: CapabilityModule;
|
|
231
|
-
export {};
|
|
@@ -116,7 +116,7 @@ export interface EciesUnwrapOptions {
|
|
|
116
116
|
*/
|
|
117
117
|
export declare function eciesUnwrap(envelope: Buffer, eccPrivateKeyHex: string, options?: EciesUnwrapOptions): Buffer | undefined;
|
|
118
118
|
/** The two random inputs of {@link eciesWrap}, injectable so a spec can pin an envelope's bytes. */
|
|
119
|
-
interface EciesWrapOptions {
|
|
119
|
+
export interface EciesWrapOptions {
|
|
120
120
|
/** The ephemeral P-256 private key for the exchange (32 bytes); generated fresh when absent. */
|
|
121
121
|
ephemeralPrivateKey?: Buffer;
|
|
122
122
|
/** The AES-128-CBC IV, which the envelope carries (16 bytes); random when absent. */
|
|
@@ -240,4 +240,3 @@ export declare function parseRelayTo(msg: Buffer): {
|
|
|
240
240
|
} | undefined;
|
|
241
241
|
/** Read a NUL-terminated UTF-8 string (CMD_NOTIFY_PAYLOAD carries JSON this way). */
|
|
242
242
|
export declare function readNullTerminatedString(data: Buffer, encoding?: BufferEncoding): string;
|
|
243
|
-
export {};
|
|
@@ -171,7 +171,11 @@ export declare class P2PCommandRouter {
|
|
|
171
171
|
* serial itself if the device isn't loaded (a standalone device is its own station).
|
|
172
172
|
*/
|
|
173
173
|
stationKeyOf(sn: string): string;
|
|
174
|
-
/**
|
|
174
|
+
/**
|
|
175
|
+
* Reset only a standalone device's session; an attached device must not close its shared HomeBase.
|
|
176
|
+
*
|
|
177
|
+
* A {@link KEEP_LEVEL1_SESSION_MODELS} station whose open session holds no level-2 key is left open.
|
|
178
|
+
*/
|
|
175
179
|
resetStandaloneSession(sn: string): Promise<void>;
|
|
176
180
|
/**
|
|
177
181
|
* Open (or reuse) the P2P session for a station **on demand**, coalescing concurrent cold opens via
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mega-yfue/eufy-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0-beta.1",
|
|
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",
|