@mega-yfue/eufy-sdk 0.5.0-beta.85 → 0.5.0-beta.86
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.js +17 -2
- package/dist/index.js.map +2 -2
- package/dist/model/capabilities/camera.d.ts +14 -0
- package/package.json +1 -1
|
@@ -49,6 +49,8 @@ export declare const CAMERA_CMD: {
|
|
|
49
49
|
* (1013). (Some models omit full colour; enum in {@link NightVision}.)
|
|
50
50
|
*/
|
|
51
51
|
readonly NIGHT_VISION_TYPE: 1277;
|
|
52
|
+
/** T8442 infrared night vision on/off: direct L1 int-string, hardware verified (0/1). */
|
|
53
|
+
readonly IC_NIGHT_VISION_TYPE: 1013;
|
|
52
54
|
/**
|
|
53
55
|
* Push-notification STYLE — how much a detection push carries: text alone, a thumbnail, or text
|
|
54
56
|
* followed by a thumbnail. App `CMD_INDOOR_PUSH_NOTIFY_TYPE`, and the "indoor" is a misnomer: the
|
|
@@ -259,6 +261,8 @@ export type CameraActions = Surface<typeof CAMERA_MEMBERS> & {
|
|
|
259
261
|
/** Power the camera off. */
|
|
260
262
|
off(): Promise<void>;
|
|
261
263
|
};
|
|
264
|
+
/** T8442 has a binary night-vision wire, unlike cameras with the three-mode 1277 control. */
|
|
265
|
+
declare function isT8442(ctx: AvailabilityContext): boolean;
|
|
262
266
|
/**
|
|
263
267
|
* Every `camera` feature, declared once. The property schema, the typed getters, the derived setters,
|
|
264
268
|
* the intent routes, the media methods and the descriptions all come out of this table.
|
|
@@ -445,8 +449,17 @@ export declare const CAMERA_MEMBERS: {
|
|
|
445
449
|
readonly 1: "Infrared";
|
|
446
450
|
readonly 2: "Full Color";
|
|
447
451
|
};
|
|
452
|
+
readonly enumValuesFor: (ctx: AvailabilityContext) => {
|
|
453
|
+
0: string;
|
|
454
|
+
1: string;
|
|
455
|
+
} | undefined;
|
|
448
456
|
readonly provenance: "verified";
|
|
449
457
|
readonly available: typeof isCameraCodec;
|
|
458
|
+
readonly readAvailable: (ctx: AvailabilityContext) => boolean;
|
|
459
|
+
readonly readAliases: readonly [{
|
|
460
|
+
readonly paramType: 2002;
|
|
461
|
+
readonly available: typeof isT8442;
|
|
462
|
+
}];
|
|
450
463
|
readonly description: string;
|
|
451
464
|
readonly write: (v: string | number | boolean, ctx: CommandContext) => Command | undefined;
|
|
452
465
|
};
|
|
@@ -596,3 +609,4 @@ export declare const CAMERA_MEMBERS: {
|
|
|
596
609
|
readonly talkback: import("./members.js").ProvidedMember<"media", false | ((opts?: Parameters<NonNullable<MediaProvider["talkback"]>>[0]) => Promise<import("../../core/contracts.js").TalkbackHandle>) | undefined>;
|
|
597
610
|
};
|
|
598
611
|
export declare const CAMERA: CapabilityModule;
|
|
612
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mega-yfue/eufy-sdk",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.86",
|
|
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",
|