@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,1015 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/rpc/wifi.ts
|
|
20
|
+
var wifi_exports = {};
|
|
21
|
+
__export(wifi_exports, {
|
|
22
|
+
Network: () => Network,
|
|
23
|
+
NetworkConfig: () => NetworkConfig,
|
|
24
|
+
NetworkList: () => NetworkList,
|
|
25
|
+
ScanResult: () => ScanResult,
|
|
26
|
+
SignalPoll: () => SignalPoll,
|
|
27
|
+
WifiBlacklist: () => WifiBlacklist,
|
|
28
|
+
WifiConfig: () => WifiConfig,
|
|
29
|
+
WifiInfo: () => WifiInfo,
|
|
30
|
+
WifiStatus: () => WifiStatus,
|
|
31
|
+
protobufPackage: () => protobufPackage
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(wifi_exports);
|
|
34
|
+
var import_wire = require("@bufbuild/protobuf/wire");
|
|
35
|
+
var protobufPackage = "lamda.rpc";
|
|
36
|
+
function createBaseWifiStatus() {
|
|
37
|
+
return {
|
|
38
|
+
id: "",
|
|
39
|
+
address: "",
|
|
40
|
+
bssid: "",
|
|
41
|
+
freq: "",
|
|
42
|
+
groupCipher: "",
|
|
43
|
+
ipAddress: "",
|
|
44
|
+
keyMgmt: "",
|
|
45
|
+
mode: "",
|
|
46
|
+
pairwiseCipher: "",
|
|
47
|
+
ssid: "",
|
|
48
|
+
wifiGeneration: "",
|
|
49
|
+
wpaState: ""
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
var WifiStatus = {
|
|
53
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
54
|
+
if (message.id !== "") {
|
|
55
|
+
writer.uint32(10).string(message.id);
|
|
56
|
+
}
|
|
57
|
+
if (message.address !== "") {
|
|
58
|
+
writer.uint32(18).string(message.address);
|
|
59
|
+
}
|
|
60
|
+
if (message.bssid !== "") {
|
|
61
|
+
writer.uint32(26).string(message.bssid);
|
|
62
|
+
}
|
|
63
|
+
if (message.freq !== "") {
|
|
64
|
+
writer.uint32(34).string(message.freq);
|
|
65
|
+
}
|
|
66
|
+
if (message.groupCipher !== "") {
|
|
67
|
+
writer.uint32(42).string(message.groupCipher);
|
|
68
|
+
}
|
|
69
|
+
if (message.ipAddress !== "") {
|
|
70
|
+
writer.uint32(50).string(message.ipAddress);
|
|
71
|
+
}
|
|
72
|
+
if (message.keyMgmt !== "") {
|
|
73
|
+
writer.uint32(58).string(message.keyMgmt);
|
|
74
|
+
}
|
|
75
|
+
if (message.mode !== "") {
|
|
76
|
+
writer.uint32(66).string(message.mode);
|
|
77
|
+
}
|
|
78
|
+
if (message.pairwiseCipher !== "") {
|
|
79
|
+
writer.uint32(74).string(message.pairwiseCipher);
|
|
80
|
+
}
|
|
81
|
+
if (message.ssid !== "") {
|
|
82
|
+
writer.uint32(82).string(message.ssid);
|
|
83
|
+
}
|
|
84
|
+
if (message.wifiGeneration !== "") {
|
|
85
|
+
writer.uint32(90).string(message.wifiGeneration);
|
|
86
|
+
}
|
|
87
|
+
if (message.wpaState !== "") {
|
|
88
|
+
writer.uint32(98).string(message.wpaState);
|
|
89
|
+
}
|
|
90
|
+
return writer;
|
|
91
|
+
},
|
|
92
|
+
decode(input, length) {
|
|
93
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
94
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
95
|
+
const message = createBaseWifiStatus();
|
|
96
|
+
while (reader.pos < end) {
|
|
97
|
+
const tag = reader.uint32();
|
|
98
|
+
switch (tag >>> 3) {
|
|
99
|
+
case 1: {
|
|
100
|
+
if (tag !== 10) {
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
message.id = reader.string();
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
106
|
+
case 2: {
|
|
107
|
+
if (tag !== 18) {
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
message.address = reader.string();
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
case 3: {
|
|
114
|
+
if (tag !== 26) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
message.bssid = reader.string();
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
case 4: {
|
|
121
|
+
if (tag !== 34) {
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
message.freq = reader.string();
|
|
125
|
+
continue;
|
|
126
|
+
}
|
|
127
|
+
case 5: {
|
|
128
|
+
if (tag !== 42) {
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
message.groupCipher = reader.string();
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
134
|
+
case 6: {
|
|
135
|
+
if (tag !== 50) {
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
message.ipAddress = reader.string();
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
case 7: {
|
|
142
|
+
if (tag !== 58) {
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
message.keyMgmt = reader.string();
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
case 8: {
|
|
149
|
+
if (tag !== 66) {
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
message.mode = reader.string();
|
|
153
|
+
continue;
|
|
154
|
+
}
|
|
155
|
+
case 9: {
|
|
156
|
+
if (tag !== 74) {
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
message.pairwiseCipher = reader.string();
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
case 10: {
|
|
163
|
+
if (tag !== 82) {
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
message.ssid = reader.string();
|
|
167
|
+
continue;
|
|
168
|
+
}
|
|
169
|
+
case 11: {
|
|
170
|
+
if (tag !== 90) {
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
message.wifiGeneration = reader.string();
|
|
174
|
+
continue;
|
|
175
|
+
}
|
|
176
|
+
case 12: {
|
|
177
|
+
if (tag !== 98) {
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
message.wpaState = reader.string();
|
|
181
|
+
continue;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
reader.skip(tag & 7);
|
|
188
|
+
}
|
|
189
|
+
return message;
|
|
190
|
+
},
|
|
191
|
+
fromJSON(object) {
|
|
192
|
+
return {
|
|
193
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
194
|
+
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
195
|
+
bssid: isSet(object.bssid) ? globalThis.String(object.bssid) : "",
|
|
196
|
+
freq: isSet(object.freq) ? globalThis.String(object.freq) : "",
|
|
197
|
+
groupCipher: isSet(object.groupCipher) ? globalThis.String(object.groupCipher) : "",
|
|
198
|
+
ipAddress: isSet(object.ipAddress) ? globalThis.String(object.ipAddress) : "",
|
|
199
|
+
keyMgmt: isSet(object.keyMgmt) ? globalThis.String(object.keyMgmt) : "",
|
|
200
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
201
|
+
pairwiseCipher: isSet(object.pairwiseCipher) ? globalThis.String(object.pairwiseCipher) : "",
|
|
202
|
+
ssid: isSet(object.ssid) ? globalThis.String(object.ssid) : "",
|
|
203
|
+
wifiGeneration: isSet(object.wifiGeneration) ? globalThis.String(object.wifiGeneration) : "",
|
|
204
|
+
wpaState: isSet(object.wpaState) ? globalThis.String(object.wpaState) : ""
|
|
205
|
+
};
|
|
206
|
+
},
|
|
207
|
+
toJSON(message) {
|
|
208
|
+
const obj = {};
|
|
209
|
+
if (message.id !== "") {
|
|
210
|
+
obj.id = message.id;
|
|
211
|
+
}
|
|
212
|
+
if (message.address !== "") {
|
|
213
|
+
obj.address = message.address;
|
|
214
|
+
}
|
|
215
|
+
if (message.bssid !== "") {
|
|
216
|
+
obj.bssid = message.bssid;
|
|
217
|
+
}
|
|
218
|
+
if (message.freq !== "") {
|
|
219
|
+
obj.freq = message.freq;
|
|
220
|
+
}
|
|
221
|
+
if (message.groupCipher !== "") {
|
|
222
|
+
obj.groupCipher = message.groupCipher;
|
|
223
|
+
}
|
|
224
|
+
if (message.ipAddress !== "") {
|
|
225
|
+
obj.ipAddress = message.ipAddress;
|
|
226
|
+
}
|
|
227
|
+
if (message.keyMgmt !== "") {
|
|
228
|
+
obj.keyMgmt = message.keyMgmt;
|
|
229
|
+
}
|
|
230
|
+
if (message.mode !== "") {
|
|
231
|
+
obj.mode = message.mode;
|
|
232
|
+
}
|
|
233
|
+
if (message.pairwiseCipher !== "") {
|
|
234
|
+
obj.pairwiseCipher = message.pairwiseCipher;
|
|
235
|
+
}
|
|
236
|
+
if (message.ssid !== "") {
|
|
237
|
+
obj.ssid = message.ssid;
|
|
238
|
+
}
|
|
239
|
+
if (message.wifiGeneration !== "") {
|
|
240
|
+
obj.wifiGeneration = message.wifiGeneration;
|
|
241
|
+
}
|
|
242
|
+
if (message.wpaState !== "") {
|
|
243
|
+
obj.wpaState = message.wpaState;
|
|
244
|
+
}
|
|
245
|
+
return obj;
|
|
246
|
+
},
|
|
247
|
+
create(base) {
|
|
248
|
+
return WifiStatus.fromPartial(base ?? {});
|
|
249
|
+
},
|
|
250
|
+
fromPartial(object) {
|
|
251
|
+
const message = createBaseWifiStatus();
|
|
252
|
+
message.id = object.id ?? "";
|
|
253
|
+
message.address = object.address ?? "";
|
|
254
|
+
message.bssid = object.bssid ?? "";
|
|
255
|
+
message.freq = object.freq ?? "";
|
|
256
|
+
message.groupCipher = object.groupCipher ?? "";
|
|
257
|
+
message.ipAddress = object.ipAddress ?? "";
|
|
258
|
+
message.keyMgmt = object.keyMgmt ?? "";
|
|
259
|
+
message.mode = object.mode ?? "";
|
|
260
|
+
message.pairwiseCipher = object.pairwiseCipher ?? "";
|
|
261
|
+
message.ssid = object.ssid ?? "";
|
|
262
|
+
message.wifiGeneration = object.wifiGeneration ?? "";
|
|
263
|
+
message.wpaState = object.wpaState ?? "";
|
|
264
|
+
return message;
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
function createBaseSignalPoll() {
|
|
268
|
+
return {
|
|
269
|
+
RSSI: "",
|
|
270
|
+
LINKSPEED: "",
|
|
271
|
+
NOISE: "",
|
|
272
|
+
FREQUENCY: "",
|
|
273
|
+
WIDTH: "",
|
|
274
|
+
avgRssi: "",
|
|
275
|
+
avgBeaconRssi: "",
|
|
276
|
+
centerFrq1: ""
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
var SignalPoll = {
|
|
280
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
281
|
+
if (message.RSSI !== "") {
|
|
282
|
+
writer.uint32(10).string(message.RSSI);
|
|
283
|
+
}
|
|
284
|
+
if (message.LINKSPEED !== "") {
|
|
285
|
+
writer.uint32(18).string(message.LINKSPEED);
|
|
286
|
+
}
|
|
287
|
+
if (message.NOISE !== "") {
|
|
288
|
+
writer.uint32(26).string(message.NOISE);
|
|
289
|
+
}
|
|
290
|
+
if (message.FREQUENCY !== "") {
|
|
291
|
+
writer.uint32(34).string(message.FREQUENCY);
|
|
292
|
+
}
|
|
293
|
+
if (message.WIDTH !== "") {
|
|
294
|
+
writer.uint32(42).string(message.WIDTH);
|
|
295
|
+
}
|
|
296
|
+
if (message.avgRssi !== "") {
|
|
297
|
+
writer.uint32(50).string(message.avgRssi);
|
|
298
|
+
}
|
|
299
|
+
if (message.avgBeaconRssi !== "") {
|
|
300
|
+
writer.uint32(58).string(message.avgBeaconRssi);
|
|
301
|
+
}
|
|
302
|
+
if (message.centerFrq1 !== "") {
|
|
303
|
+
writer.uint32(66).string(message.centerFrq1);
|
|
304
|
+
}
|
|
305
|
+
return writer;
|
|
306
|
+
},
|
|
307
|
+
decode(input, length) {
|
|
308
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
309
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
310
|
+
const message = createBaseSignalPoll();
|
|
311
|
+
while (reader.pos < end) {
|
|
312
|
+
const tag = reader.uint32();
|
|
313
|
+
switch (tag >>> 3) {
|
|
314
|
+
case 1: {
|
|
315
|
+
if (tag !== 10) {
|
|
316
|
+
break;
|
|
317
|
+
}
|
|
318
|
+
message.RSSI = reader.string();
|
|
319
|
+
continue;
|
|
320
|
+
}
|
|
321
|
+
case 2: {
|
|
322
|
+
if (tag !== 18) {
|
|
323
|
+
break;
|
|
324
|
+
}
|
|
325
|
+
message.LINKSPEED = reader.string();
|
|
326
|
+
continue;
|
|
327
|
+
}
|
|
328
|
+
case 3: {
|
|
329
|
+
if (tag !== 26) {
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
332
|
+
message.NOISE = reader.string();
|
|
333
|
+
continue;
|
|
334
|
+
}
|
|
335
|
+
case 4: {
|
|
336
|
+
if (tag !== 34) {
|
|
337
|
+
break;
|
|
338
|
+
}
|
|
339
|
+
message.FREQUENCY = reader.string();
|
|
340
|
+
continue;
|
|
341
|
+
}
|
|
342
|
+
case 5: {
|
|
343
|
+
if (tag !== 42) {
|
|
344
|
+
break;
|
|
345
|
+
}
|
|
346
|
+
message.WIDTH = reader.string();
|
|
347
|
+
continue;
|
|
348
|
+
}
|
|
349
|
+
case 6: {
|
|
350
|
+
if (tag !== 50) {
|
|
351
|
+
break;
|
|
352
|
+
}
|
|
353
|
+
message.avgRssi = reader.string();
|
|
354
|
+
continue;
|
|
355
|
+
}
|
|
356
|
+
case 7: {
|
|
357
|
+
if (tag !== 58) {
|
|
358
|
+
break;
|
|
359
|
+
}
|
|
360
|
+
message.avgBeaconRssi = reader.string();
|
|
361
|
+
continue;
|
|
362
|
+
}
|
|
363
|
+
case 8: {
|
|
364
|
+
if (tag !== 66) {
|
|
365
|
+
break;
|
|
366
|
+
}
|
|
367
|
+
message.centerFrq1 = reader.string();
|
|
368
|
+
continue;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
372
|
+
break;
|
|
373
|
+
}
|
|
374
|
+
reader.skip(tag & 7);
|
|
375
|
+
}
|
|
376
|
+
return message;
|
|
377
|
+
},
|
|
378
|
+
fromJSON(object) {
|
|
379
|
+
return {
|
|
380
|
+
RSSI: isSet(object.RSSI) ? globalThis.String(object.RSSI) : "",
|
|
381
|
+
LINKSPEED: isSet(object.LINKSPEED) ? globalThis.String(object.LINKSPEED) : "",
|
|
382
|
+
NOISE: isSet(object.NOISE) ? globalThis.String(object.NOISE) : "",
|
|
383
|
+
FREQUENCY: isSet(object.FREQUENCY) ? globalThis.String(object.FREQUENCY) : "",
|
|
384
|
+
WIDTH: isSet(object.WIDTH) ? globalThis.String(object.WIDTH) : "",
|
|
385
|
+
avgRssi: isSet(object.AVGRSSI) ? globalThis.String(object.AVGRSSI) : "",
|
|
386
|
+
avgBeaconRssi: isSet(object.AVGBEACONRSSI) ? globalThis.String(object.AVGBEACONRSSI) : "",
|
|
387
|
+
centerFrq1: isSet(object.CENTERFRQ1) ? globalThis.String(object.CENTERFRQ1) : ""
|
|
388
|
+
};
|
|
389
|
+
},
|
|
390
|
+
toJSON(message) {
|
|
391
|
+
const obj = {};
|
|
392
|
+
if (message.RSSI !== "") {
|
|
393
|
+
obj.RSSI = message.RSSI;
|
|
394
|
+
}
|
|
395
|
+
if (message.LINKSPEED !== "") {
|
|
396
|
+
obj.LINKSPEED = message.LINKSPEED;
|
|
397
|
+
}
|
|
398
|
+
if (message.NOISE !== "") {
|
|
399
|
+
obj.NOISE = message.NOISE;
|
|
400
|
+
}
|
|
401
|
+
if (message.FREQUENCY !== "") {
|
|
402
|
+
obj.FREQUENCY = message.FREQUENCY;
|
|
403
|
+
}
|
|
404
|
+
if (message.WIDTH !== "") {
|
|
405
|
+
obj.WIDTH = message.WIDTH;
|
|
406
|
+
}
|
|
407
|
+
if (message.avgRssi !== "") {
|
|
408
|
+
obj.AVGRSSI = message.avgRssi;
|
|
409
|
+
}
|
|
410
|
+
if (message.avgBeaconRssi !== "") {
|
|
411
|
+
obj.AVGBEACONRSSI = message.avgBeaconRssi;
|
|
412
|
+
}
|
|
413
|
+
if (message.centerFrq1 !== "") {
|
|
414
|
+
obj.CENTERFRQ1 = message.centerFrq1;
|
|
415
|
+
}
|
|
416
|
+
return obj;
|
|
417
|
+
},
|
|
418
|
+
create(base) {
|
|
419
|
+
return SignalPoll.fromPartial(base ?? {});
|
|
420
|
+
},
|
|
421
|
+
fromPartial(object) {
|
|
422
|
+
const message = createBaseSignalPoll();
|
|
423
|
+
message.RSSI = object.RSSI ?? "";
|
|
424
|
+
message.LINKSPEED = object.LINKSPEED ?? "";
|
|
425
|
+
message.NOISE = object.NOISE ?? "";
|
|
426
|
+
message.FREQUENCY = object.FREQUENCY ?? "";
|
|
427
|
+
message.WIDTH = object.WIDTH ?? "";
|
|
428
|
+
message.avgRssi = object.avgRssi ?? "";
|
|
429
|
+
message.avgBeaconRssi = object.avgBeaconRssi ?? "";
|
|
430
|
+
message.centerFrq1 = object.centerFrq1 ?? "";
|
|
431
|
+
return message;
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
function createBaseWifiInfo() {
|
|
435
|
+
return { id: "", bssid: "", ssid: "", freq: "", noise: "", level: "", tsf: "", flags: "" };
|
|
436
|
+
}
|
|
437
|
+
var WifiInfo = {
|
|
438
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
439
|
+
if (message.id !== "") {
|
|
440
|
+
writer.uint32(10).string(message.id);
|
|
441
|
+
}
|
|
442
|
+
if (message.bssid !== "") {
|
|
443
|
+
writer.uint32(18).string(message.bssid);
|
|
444
|
+
}
|
|
445
|
+
if (message.ssid !== "") {
|
|
446
|
+
writer.uint32(26).string(message.ssid);
|
|
447
|
+
}
|
|
448
|
+
if (message.freq !== "") {
|
|
449
|
+
writer.uint32(34).string(message.freq);
|
|
450
|
+
}
|
|
451
|
+
if (message.noise !== "") {
|
|
452
|
+
writer.uint32(42).string(message.noise);
|
|
453
|
+
}
|
|
454
|
+
if (message.level !== "") {
|
|
455
|
+
writer.uint32(50).string(message.level);
|
|
456
|
+
}
|
|
457
|
+
if (message.tsf !== "") {
|
|
458
|
+
writer.uint32(58).string(message.tsf);
|
|
459
|
+
}
|
|
460
|
+
if (message.flags !== "") {
|
|
461
|
+
writer.uint32(66).string(message.flags);
|
|
462
|
+
}
|
|
463
|
+
return writer;
|
|
464
|
+
},
|
|
465
|
+
decode(input, length) {
|
|
466
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
467
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
468
|
+
const message = createBaseWifiInfo();
|
|
469
|
+
while (reader.pos < end) {
|
|
470
|
+
const tag = reader.uint32();
|
|
471
|
+
switch (tag >>> 3) {
|
|
472
|
+
case 1: {
|
|
473
|
+
if (tag !== 10) {
|
|
474
|
+
break;
|
|
475
|
+
}
|
|
476
|
+
message.id = reader.string();
|
|
477
|
+
continue;
|
|
478
|
+
}
|
|
479
|
+
case 2: {
|
|
480
|
+
if (tag !== 18) {
|
|
481
|
+
break;
|
|
482
|
+
}
|
|
483
|
+
message.bssid = reader.string();
|
|
484
|
+
continue;
|
|
485
|
+
}
|
|
486
|
+
case 3: {
|
|
487
|
+
if (tag !== 26) {
|
|
488
|
+
break;
|
|
489
|
+
}
|
|
490
|
+
message.ssid = reader.string();
|
|
491
|
+
continue;
|
|
492
|
+
}
|
|
493
|
+
case 4: {
|
|
494
|
+
if (tag !== 34) {
|
|
495
|
+
break;
|
|
496
|
+
}
|
|
497
|
+
message.freq = reader.string();
|
|
498
|
+
continue;
|
|
499
|
+
}
|
|
500
|
+
case 5: {
|
|
501
|
+
if (tag !== 42) {
|
|
502
|
+
break;
|
|
503
|
+
}
|
|
504
|
+
message.noise = reader.string();
|
|
505
|
+
continue;
|
|
506
|
+
}
|
|
507
|
+
case 6: {
|
|
508
|
+
if (tag !== 50) {
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
message.level = reader.string();
|
|
512
|
+
continue;
|
|
513
|
+
}
|
|
514
|
+
case 7: {
|
|
515
|
+
if (tag !== 58) {
|
|
516
|
+
break;
|
|
517
|
+
}
|
|
518
|
+
message.tsf = reader.string();
|
|
519
|
+
continue;
|
|
520
|
+
}
|
|
521
|
+
case 8: {
|
|
522
|
+
if (tag !== 66) {
|
|
523
|
+
break;
|
|
524
|
+
}
|
|
525
|
+
message.flags = reader.string();
|
|
526
|
+
continue;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
530
|
+
break;
|
|
531
|
+
}
|
|
532
|
+
reader.skip(tag & 7);
|
|
533
|
+
}
|
|
534
|
+
return message;
|
|
535
|
+
},
|
|
536
|
+
fromJSON(object) {
|
|
537
|
+
return {
|
|
538
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
539
|
+
bssid: isSet(object.bssid) ? globalThis.String(object.bssid) : "",
|
|
540
|
+
ssid: isSet(object.ssid) ? globalThis.String(object.ssid) : "",
|
|
541
|
+
freq: isSet(object.freq) ? globalThis.String(object.freq) : "",
|
|
542
|
+
noise: isSet(object.noise) ? globalThis.String(object.noise) : "",
|
|
543
|
+
level: isSet(object.level) ? globalThis.String(object.level) : "",
|
|
544
|
+
tsf: isSet(object.tsf) ? globalThis.String(object.tsf) : "",
|
|
545
|
+
flags: isSet(object.flags) ? globalThis.String(object.flags) : ""
|
|
546
|
+
};
|
|
547
|
+
},
|
|
548
|
+
toJSON(message) {
|
|
549
|
+
const obj = {};
|
|
550
|
+
if (message.id !== "") {
|
|
551
|
+
obj.id = message.id;
|
|
552
|
+
}
|
|
553
|
+
if (message.bssid !== "") {
|
|
554
|
+
obj.bssid = message.bssid;
|
|
555
|
+
}
|
|
556
|
+
if (message.ssid !== "") {
|
|
557
|
+
obj.ssid = message.ssid;
|
|
558
|
+
}
|
|
559
|
+
if (message.freq !== "") {
|
|
560
|
+
obj.freq = message.freq;
|
|
561
|
+
}
|
|
562
|
+
if (message.noise !== "") {
|
|
563
|
+
obj.noise = message.noise;
|
|
564
|
+
}
|
|
565
|
+
if (message.level !== "") {
|
|
566
|
+
obj.level = message.level;
|
|
567
|
+
}
|
|
568
|
+
if (message.tsf !== "") {
|
|
569
|
+
obj.tsf = message.tsf;
|
|
570
|
+
}
|
|
571
|
+
if (message.flags !== "") {
|
|
572
|
+
obj.flags = message.flags;
|
|
573
|
+
}
|
|
574
|
+
return obj;
|
|
575
|
+
},
|
|
576
|
+
create(base) {
|
|
577
|
+
return WifiInfo.fromPartial(base ?? {});
|
|
578
|
+
},
|
|
579
|
+
fromPartial(object) {
|
|
580
|
+
const message = createBaseWifiInfo();
|
|
581
|
+
message.id = object.id ?? "";
|
|
582
|
+
message.bssid = object.bssid ?? "";
|
|
583
|
+
message.ssid = object.ssid ?? "";
|
|
584
|
+
message.freq = object.freq ?? "";
|
|
585
|
+
message.noise = object.noise ?? "";
|
|
586
|
+
message.level = object.level ?? "";
|
|
587
|
+
message.tsf = object.tsf ?? "";
|
|
588
|
+
message.flags = object.flags ?? "";
|
|
589
|
+
return message;
|
|
590
|
+
}
|
|
591
|
+
};
|
|
592
|
+
function createBaseScanResult() {
|
|
593
|
+
return { stations: [] };
|
|
594
|
+
}
|
|
595
|
+
var ScanResult = {
|
|
596
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
597
|
+
for (const v of message.stations) {
|
|
598
|
+
WifiInfo.encode(v, writer.uint32(10).fork()).join();
|
|
599
|
+
}
|
|
600
|
+
return writer;
|
|
601
|
+
},
|
|
602
|
+
decode(input, length) {
|
|
603
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
604
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
605
|
+
const message = createBaseScanResult();
|
|
606
|
+
while (reader.pos < end) {
|
|
607
|
+
const tag = reader.uint32();
|
|
608
|
+
switch (tag >>> 3) {
|
|
609
|
+
case 1: {
|
|
610
|
+
if (tag !== 10) {
|
|
611
|
+
break;
|
|
612
|
+
}
|
|
613
|
+
message.stations.push(WifiInfo.decode(reader, reader.uint32()));
|
|
614
|
+
continue;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
618
|
+
break;
|
|
619
|
+
}
|
|
620
|
+
reader.skip(tag & 7);
|
|
621
|
+
}
|
|
622
|
+
return message;
|
|
623
|
+
},
|
|
624
|
+
fromJSON(object) {
|
|
625
|
+
return {
|
|
626
|
+
stations: globalThis.Array.isArray(object?.stations) ? object.stations.map((e) => WifiInfo.fromJSON(e)) : []
|
|
627
|
+
};
|
|
628
|
+
},
|
|
629
|
+
toJSON(message) {
|
|
630
|
+
const obj = {};
|
|
631
|
+
if (message.stations?.length) {
|
|
632
|
+
obj.stations = message.stations.map((e) => WifiInfo.toJSON(e));
|
|
633
|
+
}
|
|
634
|
+
return obj;
|
|
635
|
+
},
|
|
636
|
+
create(base) {
|
|
637
|
+
return ScanResult.fromPartial(base ?? {});
|
|
638
|
+
},
|
|
639
|
+
fromPartial(object) {
|
|
640
|
+
const message = createBaseScanResult();
|
|
641
|
+
message.stations = object.stations?.map((e) => WifiInfo.fromPartial(e)) || [];
|
|
642
|
+
return message;
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
function createBaseNetwork() {
|
|
646
|
+
return { nid: 0, bssid: "", ssid: "", flags: "" };
|
|
647
|
+
}
|
|
648
|
+
var Network = {
|
|
649
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
650
|
+
if (message.nid !== 0) {
|
|
651
|
+
writer.uint32(8).int32(message.nid);
|
|
652
|
+
}
|
|
653
|
+
if (message.bssid !== "") {
|
|
654
|
+
writer.uint32(18).string(message.bssid);
|
|
655
|
+
}
|
|
656
|
+
if (message.ssid !== "") {
|
|
657
|
+
writer.uint32(26).string(message.ssid);
|
|
658
|
+
}
|
|
659
|
+
if (message.flags !== "") {
|
|
660
|
+
writer.uint32(34).string(message.flags);
|
|
661
|
+
}
|
|
662
|
+
return writer;
|
|
663
|
+
},
|
|
664
|
+
decode(input, length) {
|
|
665
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
666
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
667
|
+
const message = createBaseNetwork();
|
|
668
|
+
while (reader.pos < end) {
|
|
669
|
+
const tag = reader.uint32();
|
|
670
|
+
switch (tag >>> 3) {
|
|
671
|
+
case 1: {
|
|
672
|
+
if (tag !== 8) {
|
|
673
|
+
break;
|
|
674
|
+
}
|
|
675
|
+
message.nid = reader.int32();
|
|
676
|
+
continue;
|
|
677
|
+
}
|
|
678
|
+
case 2: {
|
|
679
|
+
if (tag !== 18) {
|
|
680
|
+
break;
|
|
681
|
+
}
|
|
682
|
+
message.bssid = reader.string();
|
|
683
|
+
continue;
|
|
684
|
+
}
|
|
685
|
+
case 3: {
|
|
686
|
+
if (tag !== 26) {
|
|
687
|
+
break;
|
|
688
|
+
}
|
|
689
|
+
message.ssid = reader.string();
|
|
690
|
+
continue;
|
|
691
|
+
}
|
|
692
|
+
case 4: {
|
|
693
|
+
if (tag !== 34) {
|
|
694
|
+
break;
|
|
695
|
+
}
|
|
696
|
+
message.flags = reader.string();
|
|
697
|
+
continue;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
701
|
+
break;
|
|
702
|
+
}
|
|
703
|
+
reader.skip(tag & 7);
|
|
704
|
+
}
|
|
705
|
+
return message;
|
|
706
|
+
},
|
|
707
|
+
fromJSON(object) {
|
|
708
|
+
return {
|
|
709
|
+
nid: isSet(object.nid) ? globalThis.Number(object.nid) : 0,
|
|
710
|
+
bssid: isSet(object.bssid) ? globalThis.String(object.bssid) : "",
|
|
711
|
+
ssid: isSet(object.ssid) ? globalThis.String(object.ssid) : "",
|
|
712
|
+
flags: isSet(object.flags) ? globalThis.String(object.flags) : ""
|
|
713
|
+
};
|
|
714
|
+
},
|
|
715
|
+
toJSON(message) {
|
|
716
|
+
const obj = {};
|
|
717
|
+
if (message.nid !== 0) {
|
|
718
|
+
obj.nid = Math.round(message.nid);
|
|
719
|
+
}
|
|
720
|
+
if (message.bssid !== "") {
|
|
721
|
+
obj.bssid = message.bssid;
|
|
722
|
+
}
|
|
723
|
+
if (message.ssid !== "") {
|
|
724
|
+
obj.ssid = message.ssid;
|
|
725
|
+
}
|
|
726
|
+
if (message.flags !== "") {
|
|
727
|
+
obj.flags = message.flags;
|
|
728
|
+
}
|
|
729
|
+
return obj;
|
|
730
|
+
},
|
|
731
|
+
create(base) {
|
|
732
|
+
return Network.fromPartial(base ?? {});
|
|
733
|
+
},
|
|
734
|
+
fromPartial(object) {
|
|
735
|
+
const message = createBaseNetwork();
|
|
736
|
+
message.nid = object.nid ?? 0;
|
|
737
|
+
message.bssid = object.bssid ?? "";
|
|
738
|
+
message.ssid = object.ssid ?? "";
|
|
739
|
+
message.flags = object.flags ?? "";
|
|
740
|
+
return message;
|
|
741
|
+
}
|
|
742
|
+
};
|
|
743
|
+
function createBaseNetworkList() {
|
|
744
|
+
return { networks: [] };
|
|
745
|
+
}
|
|
746
|
+
var NetworkList = {
|
|
747
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
748
|
+
for (const v of message.networks) {
|
|
749
|
+
Network.encode(v, writer.uint32(10).fork()).join();
|
|
750
|
+
}
|
|
751
|
+
return writer;
|
|
752
|
+
},
|
|
753
|
+
decode(input, length) {
|
|
754
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
755
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
756
|
+
const message = createBaseNetworkList();
|
|
757
|
+
while (reader.pos < end) {
|
|
758
|
+
const tag = reader.uint32();
|
|
759
|
+
switch (tag >>> 3) {
|
|
760
|
+
case 1: {
|
|
761
|
+
if (tag !== 10) {
|
|
762
|
+
break;
|
|
763
|
+
}
|
|
764
|
+
message.networks.push(Network.decode(reader, reader.uint32()));
|
|
765
|
+
continue;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
769
|
+
break;
|
|
770
|
+
}
|
|
771
|
+
reader.skip(tag & 7);
|
|
772
|
+
}
|
|
773
|
+
return message;
|
|
774
|
+
},
|
|
775
|
+
fromJSON(object) {
|
|
776
|
+
return {
|
|
777
|
+
networks: globalThis.Array.isArray(object?.networks) ? object.networks.map((e) => Network.fromJSON(e)) : []
|
|
778
|
+
};
|
|
779
|
+
},
|
|
780
|
+
toJSON(message) {
|
|
781
|
+
const obj = {};
|
|
782
|
+
if (message.networks?.length) {
|
|
783
|
+
obj.networks = message.networks.map((e) => Network.toJSON(e));
|
|
784
|
+
}
|
|
785
|
+
return obj;
|
|
786
|
+
},
|
|
787
|
+
create(base) {
|
|
788
|
+
return NetworkList.fromPartial(base ?? {});
|
|
789
|
+
},
|
|
790
|
+
fromPartial(object) {
|
|
791
|
+
const message = createBaseNetworkList();
|
|
792
|
+
message.networks = object.networks?.map((e) => Network.fromPartial(e)) || [];
|
|
793
|
+
return message;
|
|
794
|
+
}
|
|
795
|
+
};
|
|
796
|
+
function createBaseNetworkConfig() {
|
|
797
|
+
return { network: void 0, name: "", value: "" };
|
|
798
|
+
}
|
|
799
|
+
var NetworkConfig = {
|
|
800
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
801
|
+
if (message.network !== void 0) {
|
|
802
|
+
Network.encode(message.network, writer.uint32(10).fork()).join();
|
|
803
|
+
}
|
|
804
|
+
if (message.name !== "") {
|
|
805
|
+
writer.uint32(18).string(message.name);
|
|
806
|
+
}
|
|
807
|
+
if (message.value !== "") {
|
|
808
|
+
writer.uint32(26).string(message.value);
|
|
809
|
+
}
|
|
810
|
+
return writer;
|
|
811
|
+
},
|
|
812
|
+
decode(input, length) {
|
|
813
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
814
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
815
|
+
const message = createBaseNetworkConfig();
|
|
816
|
+
while (reader.pos < end) {
|
|
817
|
+
const tag = reader.uint32();
|
|
818
|
+
switch (tag >>> 3) {
|
|
819
|
+
case 1: {
|
|
820
|
+
if (tag !== 10) {
|
|
821
|
+
break;
|
|
822
|
+
}
|
|
823
|
+
message.network = Network.decode(reader, reader.uint32());
|
|
824
|
+
continue;
|
|
825
|
+
}
|
|
826
|
+
case 2: {
|
|
827
|
+
if (tag !== 18) {
|
|
828
|
+
break;
|
|
829
|
+
}
|
|
830
|
+
message.name = reader.string();
|
|
831
|
+
continue;
|
|
832
|
+
}
|
|
833
|
+
case 3: {
|
|
834
|
+
if (tag !== 26) {
|
|
835
|
+
break;
|
|
836
|
+
}
|
|
837
|
+
message.value = reader.string();
|
|
838
|
+
continue;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
842
|
+
break;
|
|
843
|
+
}
|
|
844
|
+
reader.skip(tag & 7);
|
|
845
|
+
}
|
|
846
|
+
return message;
|
|
847
|
+
},
|
|
848
|
+
fromJSON(object) {
|
|
849
|
+
return {
|
|
850
|
+
network: isSet(object.network) ? Network.fromJSON(object.network) : void 0,
|
|
851
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
852
|
+
value: isSet(object.value) ? globalThis.String(object.value) : ""
|
|
853
|
+
};
|
|
854
|
+
},
|
|
855
|
+
toJSON(message) {
|
|
856
|
+
const obj = {};
|
|
857
|
+
if (message.network !== void 0) {
|
|
858
|
+
obj.network = Network.toJSON(message.network);
|
|
859
|
+
}
|
|
860
|
+
if (message.name !== "") {
|
|
861
|
+
obj.name = message.name;
|
|
862
|
+
}
|
|
863
|
+
if (message.value !== "") {
|
|
864
|
+
obj.value = message.value;
|
|
865
|
+
}
|
|
866
|
+
return obj;
|
|
867
|
+
},
|
|
868
|
+
create(base) {
|
|
869
|
+
return NetworkConfig.fromPartial(base ?? {});
|
|
870
|
+
},
|
|
871
|
+
fromPartial(object) {
|
|
872
|
+
const message = createBaseNetworkConfig();
|
|
873
|
+
message.network = object.network !== void 0 && object.network !== null ? Network.fromPartial(object.network) : void 0;
|
|
874
|
+
message.name = object.name ?? "";
|
|
875
|
+
message.value = object.value ?? "";
|
|
876
|
+
return message;
|
|
877
|
+
}
|
|
878
|
+
};
|
|
879
|
+
function createBaseWifiConfig() {
|
|
880
|
+
return { name: "", value: "" };
|
|
881
|
+
}
|
|
882
|
+
var WifiConfig = {
|
|
883
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
884
|
+
if (message.name !== "") {
|
|
885
|
+
writer.uint32(10).string(message.name);
|
|
886
|
+
}
|
|
887
|
+
if (message.value !== "") {
|
|
888
|
+
writer.uint32(18).string(message.value);
|
|
889
|
+
}
|
|
890
|
+
return writer;
|
|
891
|
+
},
|
|
892
|
+
decode(input, length) {
|
|
893
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
894
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
895
|
+
const message = createBaseWifiConfig();
|
|
896
|
+
while (reader.pos < end) {
|
|
897
|
+
const tag = reader.uint32();
|
|
898
|
+
switch (tag >>> 3) {
|
|
899
|
+
case 1: {
|
|
900
|
+
if (tag !== 10) {
|
|
901
|
+
break;
|
|
902
|
+
}
|
|
903
|
+
message.name = reader.string();
|
|
904
|
+
continue;
|
|
905
|
+
}
|
|
906
|
+
case 2: {
|
|
907
|
+
if (tag !== 18) {
|
|
908
|
+
break;
|
|
909
|
+
}
|
|
910
|
+
message.value = reader.string();
|
|
911
|
+
continue;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
915
|
+
break;
|
|
916
|
+
}
|
|
917
|
+
reader.skip(tag & 7);
|
|
918
|
+
}
|
|
919
|
+
return message;
|
|
920
|
+
},
|
|
921
|
+
fromJSON(object) {
|
|
922
|
+
return {
|
|
923
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
924
|
+
value: isSet(object.value) ? globalThis.String(object.value) : ""
|
|
925
|
+
};
|
|
926
|
+
},
|
|
927
|
+
toJSON(message) {
|
|
928
|
+
const obj = {};
|
|
929
|
+
if (message.name !== "") {
|
|
930
|
+
obj.name = message.name;
|
|
931
|
+
}
|
|
932
|
+
if (message.value !== "") {
|
|
933
|
+
obj.value = message.value;
|
|
934
|
+
}
|
|
935
|
+
return obj;
|
|
936
|
+
},
|
|
937
|
+
create(base) {
|
|
938
|
+
return WifiConfig.fromPartial(base ?? {});
|
|
939
|
+
},
|
|
940
|
+
fromPartial(object) {
|
|
941
|
+
const message = createBaseWifiConfig();
|
|
942
|
+
message.name = object.name ?? "";
|
|
943
|
+
message.value = object.value ?? "";
|
|
944
|
+
return message;
|
|
945
|
+
}
|
|
946
|
+
};
|
|
947
|
+
function createBaseWifiBlacklist() {
|
|
948
|
+
return { bssids: [] };
|
|
949
|
+
}
|
|
950
|
+
var WifiBlacklist = {
|
|
951
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
952
|
+
for (const v of message.bssids) {
|
|
953
|
+
writer.uint32(10).string(v);
|
|
954
|
+
}
|
|
955
|
+
return writer;
|
|
956
|
+
},
|
|
957
|
+
decode(input, length) {
|
|
958
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
959
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
960
|
+
const message = createBaseWifiBlacklist();
|
|
961
|
+
while (reader.pos < end) {
|
|
962
|
+
const tag = reader.uint32();
|
|
963
|
+
switch (tag >>> 3) {
|
|
964
|
+
case 1: {
|
|
965
|
+
if (tag !== 10) {
|
|
966
|
+
break;
|
|
967
|
+
}
|
|
968
|
+
message.bssids.push(reader.string());
|
|
969
|
+
continue;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
973
|
+
break;
|
|
974
|
+
}
|
|
975
|
+
reader.skip(tag & 7);
|
|
976
|
+
}
|
|
977
|
+
return message;
|
|
978
|
+
},
|
|
979
|
+
fromJSON(object) {
|
|
980
|
+
return {
|
|
981
|
+
bssids: globalThis.Array.isArray(object?.bssids) ? object.bssids.map((e) => globalThis.String(e)) : []
|
|
982
|
+
};
|
|
983
|
+
},
|
|
984
|
+
toJSON(message) {
|
|
985
|
+
const obj = {};
|
|
986
|
+
if (message.bssids?.length) {
|
|
987
|
+
obj.bssids = message.bssids;
|
|
988
|
+
}
|
|
989
|
+
return obj;
|
|
990
|
+
},
|
|
991
|
+
create(base) {
|
|
992
|
+
return WifiBlacklist.fromPartial(base ?? {});
|
|
993
|
+
},
|
|
994
|
+
fromPartial(object) {
|
|
995
|
+
const message = createBaseWifiBlacklist();
|
|
996
|
+
message.bssids = object.bssids?.map((e) => e) || [];
|
|
997
|
+
return message;
|
|
998
|
+
}
|
|
999
|
+
};
|
|
1000
|
+
function isSet(value) {
|
|
1001
|
+
return value !== null && value !== void 0;
|
|
1002
|
+
}
|
|
1003
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1004
|
+
0 && (module.exports = {
|
|
1005
|
+
Network,
|
|
1006
|
+
NetworkConfig,
|
|
1007
|
+
NetworkList,
|
|
1008
|
+
ScanResult,
|
|
1009
|
+
SignalPoll,
|
|
1010
|
+
WifiBlacklist,
|
|
1011
|
+
WifiConfig,
|
|
1012
|
+
WifiInfo,
|
|
1013
|
+
WifiStatus,
|
|
1014
|
+
protobufPackage
|
|
1015
|
+
});
|