@ekhein/lamda-node-sdk 1.0.1 → 1.0.3

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.
Files changed (114) hide show
  1. package/dist/chunk-3JBDAA2H.js +439 -0
  2. package/dist/chunk-4AHM55IO.js +1172 -0
  3. package/dist/chunk-4NKGYNMS.js +116 -0
  4. package/dist/chunk-6HD35RPW.js +5370 -0
  5. package/dist/chunk-76Y3OVVH.js +1602 -0
  6. package/dist/chunk-7XF22HAW.js +907 -0
  7. package/dist/chunk-7YGA6EOV.js +109 -0
  8. package/dist/chunk-ADS4GRIL.js +14 -0
  9. package/dist/chunk-FSLE4VGI.js +48 -0
  10. package/dist/chunk-H7Z6XFBF.js +134 -0
  11. package/dist/chunk-KJKSI2WL.js +62 -0
  12. package/dist/chunk-O52JGDU7.js +800 -0
  13. package/dist/chunk-ORXTTWPB.js +379 -0
  14. package/dist/chunk-OZJH6SR7.js +20 -0
  15. package/dist/chunk-P53F45YO.js +64 -0
  16. package/dist/chunk-QXMPY6EE.js +289 -0
  17. package/dist/chunk-SBFKX3ZY.js +1554 -0
  18. package/dist/chunk-WFQEBPE6.js +300 -0
  19. package/dist/chunk-X4LTH2UN.js +983 -0
  20. package/dist/chunk-XAX5BZL3.js +132 -0
  21. package/dist/chunk-ZXF5DGTC.js +45 -0
  22. package/dist/constants/activity.flag.cjs +92 -0
  23. package/dist/constants/activity.flag.d.cts +24 -0
  24. package/dist/constants/activity.flag.d.ts +24 -0
  25. package/dist/constants/activity.flag.js +49 -0
  26. package/dist/constants/android.intent.cjs +194 -0
  27. package/dist/constants/android.intent.d.cts +58 -0
  28. package/dist/constants/android.intent.d.ts +58 -0
  29. package/dist/constants/android.intent.js +117 -0
  30. package/dist/constants/android.permission.cjs +116 -0
  31. package/dist/constants/android.permission.d.cts +32 -0
  32. package/dist/constants/android.permission.d.ts +32 -0
  33. package/dist/constants/android.permission.js +65 -0
  34. package/dist/constants/index.cjs +356 -0
  35. package/dist/constants/index.d.cts +3 -0
  36. package/dist/constants/index.d.ts +3 -0
  37. package/dist/constants/index.js +225 -0
  38. package/dist/decorators/inject.decorator.cjs +43 -0
  39. package/dist/decorators/inject.decorator.d.cts +5 -0
  40. package/dist/decorators/inject.decorator.d.ts +5 -0
  41. package/dist/decorators/inject.decorator.js +7 -0
  42. package/dist/main.cjs +1 -2
  43. package/dist/main.d.cts +17 -1152
  44. package/dist/main.d.ts +17 -1152
  45. package/dist/main.js +36 -11873
  46. package/dist/rpc/application.cjs +2019 -0
  47. package/dist/rpc/application.d.cts +138 -0
  48. package/dist/rpc/application.d.ts +138 -0
  49. package/dist/rpc/application.js +50 -0
  50. package/dist/rpc/debug.cjs +86 -0
  51. package/dist/rpc/debug.d.cts +21 -0
  52. package/dist/rpc/debug.d.ts +21 -0
  53. package/dist/rpc/debug.js +9 -0
  54. package/dist/rpc/file.cjs +405 -0
  55. package/dist/rpc/file.d.cts +40 -0
  56. package/dist/rpc/file.d.ts +40 -0
  57. package/dist/rpc/file.js +13 -0
  58. package/dist/rpc/google/protobuf/any.cjs +126 -0
  59. package/dist/rpc/google/protobuf/any.d.cts +22 -0
  60. package/dist/rpc/google/protobuf/any.d.ts +22 -0
  61. package/dist/rpc/google/protobuf/any.js +103 -0
  62. package/dist/rpc/google/protobuf/empty.cjs +69 -0
  63. package/dist/rpc/google/protobuf/empty.d.cts +20 -0
  64. package/dist/rpc/google/protobuf/empty.d.ts +20 -0
  65. package/dist/rpc/google/protobuf/empty.js +9 -0
  66. package/dist/rpc/google/protobuf/struct.cjs +469 -0
  67. package/dist/rpc/google/protobuf/struct.d.cts +65 -0
  68. package/dist/rpc/google/protobuf/struct.d.ts +65 -0
  69. package/dist/rpc/google/protobuf/struct.js +21 -0
  70. package/dist/rpc/policy.cjs +133 -0
  71. package/dist/rpc/policy.d.cts +24 -0
  72. package/dist/rpc/policy.d.ts +24 -0
  73. package/dist/rpc/policy.js +9 -0
  74. package/dist/rpc/proxy.cjs +1109 -0
  75. package/dist/rpc/proxy.d.cts +108 -0
  76. package/dist/rpc/proxy.d.ts +108 -0
  77. package/dist/rpc/proxy.js +49 -0
  78. package/dist/rpc/services.cjs +11898 -0
  79. package/dist/rpc/services.d.cts +1920 -0
  80. package/dist/rpc/services.d.ts +1920 -0
  81. package/dist/rpc/services.js +48 -0
  82. package/dist/rpc/settings.cjs +161 -0
  83. package/dist/rpc/settings.d.cts +31 -0
  84. package/dist/rpc/settings.d.ts +31 -0
  85. package/dist/rpc/settings.js +15 -0
  86. package/dist/rpc/shell.cjs +326 -0
  87. package/dist/rpc/shell.d.cts +36 -0
  88. package/dist/rpc/shell.d.ts +36 -0
  89. package/dist/rpc/shell.js +13 -0
  90. package/dist/rpc/status.cjs +936 -0
  91. package/dist/rpc/status.d.cts +76 -0
  92. package/dist/rpc/status.d.ts +76 -0
  93. package/dist/rpc/status.js +19 -0
  94. package/dist/rpc/storage.cjs +156 -0
  95. package/dist/rpc/storage.d.cts +24 -0
  96. package/dist/rpc/storage.d.ts +24 -0
  97. package/dist/rpc/storage.js +9 -0
  98. package/dist/rpc/types.cjs +317 -0
  99. package/dist/rpc/types.d.cts +36 -0
  100. package/dist/rpc/types.d.ts +36 -0
  101. package/dist/rpc/types.js +17 -0
  102. package/dist/rpc/uiautomator.cjs +5446 -0
  103. package/dist/rpc/uiautomator.d.cts +618 -0
  104. package/dist/rpc/uiautomator.d.ts +618 -0
  105. package/dist/rpc/uiautomator.js +113 -0
  106. package/dist/rpc/util.cjs +1212 -0
  107. package/dist/rpc/util.d.cts +103 -0
  108. package/dist/rpc/util.d.ts +103 -0
  109. package/dist/rpc/util.js +41 -0
  110. package/dist/rpc/wifi.cjs +1015 -0
  111. package/dist/rpc/wifi.d.cts +84 -0
  112. package/dist/rpc/wifi.d.ts +84 -0
  113. package/dist/rpc/wifi.js +25 -0
  114. 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 };
@@ -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.1",
3
+ "version": "1.0.3",
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/main.ts --format cjs,esm --dts --clean",
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",