@ekhein/lamda-node-sdk 1.0.1 → 1.0.2
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/chunk-3HDKHFYE.js +1602 -0
- package/dist/chunk-3JBDAA2H.js +439 -0
- package/dist/chunk-4AHM55IO.js +1172 -0
- package/dist/chunk-6HD35RPW.js +5370 -0
- package/dist/chunk-7XF22HAW.js +907 -0
- package/dist/chunk-7YGA6EOV.js +109 -0
- package/dist/chunk-ADS4GRIL.js +14 -0
- package/dist/chunk-FSLE4VGI.js +48 -0
- package/dist/chunk-H7Z6XFBF.js +134 -0
- package/dist/chunk-KJKSI2WL.js +62 -0
- package/dist/chunk-O52JGDU7.js +800 -0
- package/dist/chunk-ORXTTWPB.js +379 -0
- package/dist/chunk-OZJH6SR7.js +20 -0
- package/dist/chunk-P53F45YO.js +64 -0
- package/dist/chunk-QXMPY6EE.js +289 -0
- package/dist/chunk-SBFKX3ZY.js +1554 -0
- package/dist/chunk-WFQEBPE6.js +300 -0
- package/dist/chunk-X4LTH2UN.js +983 -0
- package/dist/chunk-XAX5BZL3.js +132 -0
- package/dist/chunk-ZXF5DGTC.js +45 -0
- package/dist/constants/activity.flag.cjs +92 -0
- package/dist/constants/activity.flag.d.cts +24 -0
- package/dist/constants/activity.flag.d.ts +24 -0
- package/dist/constants/activity.flag.js +49 -0
- package/dist/constants/android.permission.cjs +116 -0
- package/dist/constants/android.permission.d.cts +32 -0
- package/dist/constants/android.permission.d.ts +32 -0
- package/dist/constants/android.permission.js +65 -0
- package/dist/constants/index.cjs +186 -0
- package/dist/constants/index.d.cts +2 -0
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/index.js +111 -0
- package/dist/decorators/inject.decorator.cjs +43 -0
- package/dist/decorators/inject.decorator.d.cts +5 -0
- package/dist/decorators/inject.decorator.d.ts +5 -0
- package/dist/decorators/inject.decorator.js +7 -0
- package/dist/main.cjs +1 -2
- package/dist/main.d.cts +17 -1152
- package/dist/main.d.ts +17 -1152
- package/dist/main.js +36 -11873
- package/dist/rpc/application.cjs +2019 -0
- package/dist/rpc/application.d.cts +138 -0
- package/dist/rpc/application.d.ts +138 -0
- package/dist/rpc/application.js +50 -0
- package/dist/rpc/debug.cjs +86 -0
- package/dist/rpc/debug.d.cts +21 -0
- package/dist/rpc/debug.d.ts +21 -0
- package/dist/rpc/debug.js +9 -0
- package/dist/rpc/file.cjs +405 -0
- package/dist/rpc/file.d.cts +40 -0
- package/dist/rpc/file.d.ts +40 -0
- package/dist/rpc/file.js +13 -0
- package/dist/rpc/google/protobuf/any.cjs +126 -0
- package/dist/rpc/google/protobuf/any.d.cts +22 -0
- package/dist/rpc/google/protobuf/any.d.ts +22 -0
- package/dist/rpc/google/protobuf/any.js +103 -0
- package/dist/rpc/google/protobuf/empty.cjs +69 -0
- package/dist/rpc/google/protobuf/empty.d.cts +20 -0
- package/dist/rpc/google/protobuf/empty.d.ts +20 -0
- package/dist/rpc/google/protobuf/empty.js +9 -0
- package/dist/rpc/google/protobuf/struct.cjs +469 -0
- package/dist/rpc/google/protobuf/struct.d.cts +65 -0
- package/dist/rpc/google/protobuf/struct.d.ts +65 -0
- package/dist/rpc/google/protobuf/struct.js +21 -0
- package/dist/rpc/policy.cjs +133 -0
- package/dist/rpc/policy.d.cts +24 -0
- package/dist/rpc/policy.d.ts +24 -0
- package/dist/rpc/policy.js +9 -0
- package/dist/rpc/proxy.cjs +1109 -0
- package/dist/rpc/proxy.d.cts +108 -0
- package/dist/rpc/proxy.d.ts +108 -0
- package/dist/rpc/proxy.js +49 -0
- package/dist/rpc/services.cjs +11898 -0
- package/dist/rpc/services.d.cts +1920 -0
- package/dist/rpc/services.d.ts +1920 -0
- package/dist/rpc/services.js +48 -0
- package/dist/rpc/settings.cjs +161 -0
- package/dist/rpc/settings.d.cts +31 -0
- package/dist/rpc/settings.d.ts +31 -0
- package/dist/rpc/settings.js +15 -0
- package/dist/rpc/shell.cjs +326 -0
- package/dist/rpc/shell.d.cts +36 -0
- package/dist/rpc/shell.d.ts +36 -0
- package/dist/rpc/shell.js +13 -0
- package/dist/rpc/status.cjs +936 -0
- package/dist/rpc/status.d.cts +76 -0
- package/dist/rpc/status.d.ts +76 -0
- package/dist/rpc/status.js +19 -0
- package/dist/rpc/storage.cjs +156 -0
- package/dist/rpc/storage.d.cts +24 -0
- package/dist/rpc/storage.d.ts +24 -0
- package/dist/rpc/storage.js +9 -0
- package/dist/rpc/types.cjs +317 -0
- package/dist/rpc/types.d.cts +36 -0
- package/dist/rpc/types.d.ts +36 -0
- package/dist/rpc/types.js +17 -0
- package/dist/rpc/uiautomator.cjs +5446 -0
- package/dist/rpc/uiautomator.d.cts +618 -0
- package/dist/rpc/uiautomator.d.ts +618 -0
- package/dist/rpc/uiautomator.js +113 -0
- package/dist/rpc/util.cjs +1212 -0
- package/dist/rpc/util.d.cts +103 -0
- package/dist/rpc/util.d.ts +103 -0
- package/dist/rpc/util.js +41 -0
- package/dist/rpc/wifi.cjs +1015 -0
- package/dist/rpc/wifi.d.cts +84 -0
- package/dist/rpc/wifi.d.ts +84 -0
- package/dist/rpc/wifi.js +25 -0
- package/package.json +3 -4
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
|
|
2
|
+
|
|
3
|
+
declare const protobufPackage = "lamda.rpc";
|
|
4
|
+
interface WifiStatus {
|
|
5
|
+
id: string;
|
|
6
|
+
address: string;
|
|
7
|
+
bssid: string;
|
|
8
|
+
freq: string;
|
|
9
|
+
groupCipher: string;
|
|
10
|
+
ipAddress: string;
|
|
11
|
+
keyMgmt: string;
|
|
12
|
+
mode: string;
|
|
13
|
+
pairwiseCipher: string;
|
|
14
|
+
ssid: string;
|
|
15
|
+
wifiGeneration: string;
|
|
16
|
+
wpaState: string;
|
|
17
|
+
}
|
|
18
|
+
declare const WifiStatus: MessageFns<WifiStatus>;
|
|
19
|
+
interface SignalPoll {
|
|
20
|
+
RSSI: string;
|
|
21
|
+
LINKSPEED: string;
|
|
22
|
+
NOISE: string;
|
|
23
|
+
FREQUENCY: string;
|
|
24
|
+
WIDTH: string;
|
|
25
|
+
avgRssi: string;
|
|
26
|
+
avgBeaconRssi: string;
|
|
27
|
+
centerFrq1: string;
|
|
28
|
+
}
|
|
29
|
+
declare const SignalPoll: MessageFns<SignalPoll>;
|
|
30
|
+
interface WifiInfo {
|
|
31
|
+
id: string;
|
|
32
|
+
bssid: string;
|
|
33
|
+
ssid: string;
|
|
34
|
+
freq: string;
|
|
35
|
+
noise: string;
|
|
36
|
+
level: string;
|
|
37
|
+
tsf: string;
|
|
38
|
+
flags: string;
|
|
39
|
+
}
|
|
40
|
+
declare const WifiInfo: MessageFns<WifiInfo>;
|
|
41
|
+
interface ScanResult {
|
|
42
|
+
stations: WifiInfo[];
|
|
43
|
+
}
|
|
44
|
+
declare const ScanResult: MessageFns<ScanResult>;
|
|
45
|
+
interface Network {
|
|
46
|
+
nid: number;
|
|
47
|
+
bssid: string;
|
|
48
|
+
ssid: string;
|
|
49
|
+
flags: string;
|
|
50
|
+
}
|
|
51
|
+
declare const Network: MessageFns<Network>;
|
|
52
|
+
interface NetworkList {
|
|
53
|
+
networks: Network[];
|
|
54
|
+
}
|
|
55
|
+
declare const NetworkList: MessageFns<NetworkList>;
|
|
56
|
+
interface NetworkConfig {
|
|
57
|
+
network: Network | undefined;
|
|
58
|
+
name: string;
|
|
59
|
+
value: string;
|
|
60
|
+
}
|
|
61
|
+
declare const NetworkConfig: MessageFns<NetworkConfig>;
|
|
62
|
+
interface WifiConfig {
|
|
63
|
+
name: string;
|
|
64
|
+
value: string;
|
|
65
|
+
}
|
|
66
|
+
declare const WifiConfig: MessageFns<WifiConfig>;
|
|
67
|
+
interface WifiBlacklist {
|
|
68
|
+
bssids: string[];
|
|
69
|
+
}
|
|
70
|
+
declare const WifiBlacklist: MessageFns<WifiBlacklist>;
|
|
71
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
72
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
73
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
74
|
+
} : Partial<T>;
|
|
75
|
+
interface MessageFns<T> {
|
|
76
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
77
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
78
|
+
fromJSON(object: any): T;
|
|
79
|
+
toJSON(message: T): unknown;
|
|
80
|
+
create(base?: DeepPartial<T>): T;
|
|
81
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export { type DeepPartial, type MessageFns, Network, NetworkConfig, NetworkList, ScanResult, SignalPoll, WifiBlacklist, WifiConfig, WifiInfo, WifiStatus, protobufPackage };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
|
|
2
|
+
|
|
3
|
+
declare const protobufPackage = "lamda.rpc";
|
|
4
|
+
interface WifiStatus {
|
|
5
|
+
id: string;
|
|
6
|
+
address: string;
|
|
7
|
+
bssid: string;
|
|
8
|
+
freq: string;
|
|
9
|
+
groupCipher: string;
|
|
10
|
+
ipAddress: string;
|
|
11
|
+
keyMgmt: string;
|
|
12
|
+
mode: string;
|
|
13
|
+
pairwiseCipher: string;
|
|
14
|
+
ssid: string;
|
|
15
|
+
wifiGeneration: string;
|
|
16
|
+
wpaState: string;
|
|
17
|
+
}
|
|
18
|
+
declare const WifiStatus: MessageFns<WifiStatus>;
|
|
19
|
+
interface SignalPoll {
|
|
20
|
+
RSSI: string;
|
|
21
|
+
LINKSPEED: string;
|
|
22
|
+
NOISE: string;
|
|
23
|
+
FREQUENCY: string;
|
|
24
|
+
WIDTH: string;
|
|
25
|
+
avgRssi: string;
|
|
26
|
+
avgBeaconRssi: string;
|
|
27
|
+
centerFrq1: string;
|
|
28
|
+
}
|
|
29
|
+
declare const SignalPoll: MessageFns<SignalPoll>;
|
|
30
|
+
interface WifiInfo {
|
|
31
|
+
id: string;
|
|
32
|
+
bssid: string;
|
|
33
|
+
ssid: string;
|
|
34
|
+
freq: string;
|
|
35
|
+
noise: string;
|
|
36
|
+
level: string;
|
|
37
|
+
tsf: string;
|
|
38
|
+
flags: string;
|
|
39
|
+
}
|
|
40
|
+
declare const WifiInfo: MessageFns<WifiInfo>;
|
|
41
|
+
interface ScanResult {
|
|
42
|
+
stations: WifiInfo[];
|
|
43
|
+
}
|
|
44
|
+
declare const ScanResult: MessageFns<ScanResult>;
|
|
45
|
+
interface Network {
|
|
46
|
+
nid: number;
|
|
47
|
+
bssid: string;
|
|
48
|
+
ssid: string;
|
|
49
|
+
flags: string;
|
|
50
|
+
}
|
|
51
|
+
declare const Network: MessageFns<Network>;
|
|
52
|
+
interface NetworkList {
|
|
53
|
+
networks: Network[];
|
|
54
|
+
}
|
|
55
|
+
declare const NetworkList: MessageFns<NetworkList>;
|
|
56
|
+
interface NetworkConfig {
|
|
57
|
+
network: Network | undefined;
|
|
58
|
+
name: string;
|
|
59
|
+
value: string;
|
|
60
|
+
}
|
|
61
|
+
declare const NetworkConfig: MessageFns<NetworkConfig>;
|
|
62
|
+
interface WifiConfig {
|
|
63
|
+
name: string;
|
|
64
|
+
value: string;
|
|
65
|
+
}
|
|
66
|
+
declare const WifiConfig: MessageFns<WifiConfig>;
|
|
67
|
+
interface WifiBlacklist {
|
|
68
|
+
bssids: string[];
|
|
69
|
+
}
|
|
70
|
+
declare const WifiBlacklist: MessageFns<WifiBlacklist>;
|
|
71
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
72
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
73
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
74
|
+
} : Partial<T>;
|
|
75
|
+
interface MessageFns<T> {
|
|
76
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
77
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
78
|
+
fromJSON(object: any): T;
|
|
79
|
+
toJSON(message: T): unknown;
|
|
80
|
+
create(base?: DeepPartial<T>): T;
|
|
81
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export { type DeepPartial, type MessageFns, Network, NetworkConfig, NetworkList, ScanResult, SignalPoll, WifiBlacklist, WifiConfig, WifiInfo, WifiStatus, protobufPackage };
|
package/dist/rpc/wifi.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Network,
|
|
3
|
+
NetworkConfig,
|
|
4
|
+
NetworkList,
|
|
5
|
+
ScanResult,
|
|
6
|
+
SignalPoll,
|
|
7
|
+
WifiBlacklist,
|
|
8
|
+
WifiConfig,
|
|
9
|
+
WifiInfo,
|
|
10
|
+
WifiStatus,
|
|
11
|
+
protobufPackage
|
|
12
|
+
} from "../chunk-X4LTH2UN.js";
|
|
13
|
+
import "../chunk-ADS4GRIL.js";
|
|
14
|
+
export {
|
|
15
|
+
Network,
|
|
16
|
+
NetworkConfig,
|
|
17
|
+
NetworkList,
|
|
18
|
+
ScanResult,
|
|
19
|
+
SignalPoll,
|
|
20
|
+
WifiBlacklist,
|
|
21
|
+
WifiConfig,
|
|
22
|
+
WifiInfo,
|
|
23
|
+
WifiStatus,
|
|
24
|
+
protobufPackage
|
|
25
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ekhein/lamda-node-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/main.cjs",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"dist/**/*"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsup src
|
|
13
|
+
"build": "tsup 'src/**/*.ts' --format cjs,esm --dts --clean",
|
|
14
14
|
"watch": "pnpm build --watch src",
|
|
15
15
|
"dev": "tsx example/index.ts"
|
|
16
16
|
},
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
"long": "^5.3.2",
|
|
25
25
|
"nice-grpc": "^2.1.12",
|
|
26
26
|
"nice-grpc-common": "^2.0.2",
|
|
27
|
-
"protobufjs": "^7.5.2"
|
|
28
|
-
"reflect-metadata": "^0.2.2"
|
|
27
|
+
"protobufjs": "^7.5.2"
|
|
29
28
|
},
|
|
30
29
|
"devDependencies": {
|
|
31
30
|
"protoc-gen-ts": "^0.8.7",
|