esp-idf-provisioning-web 0.0.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.
Files changed (58) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +129 -0
  3. package/dist/ESPDevice.d.ts +66 -0
  4. package/dist/ESPDevice.d.ts.map +1 -0
  5. package/dist/ESPProvisionManager.d.ts +34 -0
  6. package/dist/ESPProvisionManager.d.ts.map +1 -0
  7. package/dist/constants.d.ts +19 -0
  8. package/dist/constants.d.ts.map +1 -0
  9. package/dist/index.d.ts +16 -0
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.es.js +5085 -0
  12. package/dist/protocol/protocol.d.ts +4 -0
  13. package/dist/protocol/protocol.d.ts.map +1 -0
  14. package/dist/protocol/wifiConfig.d.ts +8 -0
  15. package/dist/protocol/wifiConfig.d.ts.map +1 -0
  16. package/dist/protocol/wifiScan.d.ts +8 -0
  17. package/dist/protocol/wifiScan.d.ts.map +1 -0
  18. package/dist/security/Security.d.ts +26 -0
  19. package/dist/security/Security.d.ts.map +1 -0
  20. package/dist/security/Security0.d.ts +13 -0
  21. package/dist/security/Security0.d.ts.map +1 -0
  22. package/dist/transport/BLETransport.d.ts +22 -0
  23. package/dist/transport/BLETransport.d.ts.map +1 -0
  24. package/dist/transport/SoftAPTransport.d.ts +27 -0
  25. package/dist/transport/SoftAPTransport.d.ts.map +1 -0
  26. package/dist/transport/Transport.d.ts +22 -0
  27. package/dist/transport/Transport.d.ts.map +1 -0
  28. package/dist/types.d.ts +73 -0
  29. package/dist/types.d.ts.map +1 -0
  30. package/dist/utils/crypto.d.ts +44 -0
  31. package/dist/utils/crypto.d.ts.map +1 -0
  32. package/package.json +60 -0
  33. package/src/ESPDevice.ts +231 -0
  34. package/src/ESPProvisionManager.ts +78 -0
  35. package/src/constants.ts +29 -0
  36. package/src/generated/.gitkeep +0 -0
  37. package/src/generated/proto.d.ts +3418 -0
  38. package/src/generated/proto.js +10006 -0
  39. package/src/index.ts +31 -0
  40. package/src/proto/constants.proto +14 -0
  41. package/src/proto/sec0.proto +28 -0
  42. package/src/proto/sec1.proto +45 -0
  43. package/src/proto/sec2.proto +48 -0
  44. package/src/proto/session.proto +25 -0
  45. package/src/proto/wifi_config.proto +57 -0
  46. package/src/proto/wifi_constants.proto +32 -0
  47. package/src/proto/wifi_ctrl.proto +38 -0
  48. package/src/proto/wifi_scan.proto +63 -0
  49. package/src/protocol/protocol.ts +23 -0
  50. package/src/protocol/wifiConfig.ts +108 -0
  51. package/src/protocol/wifiScan.ts +91 -0
  52. package/src/security/Security.ts +29 -0
  53. package/src/security/Security0.ts +40 -0
  54. package/src/transport/BLETransport.ts +111 -0
  55. package/src/transport/SoftAPTransport.ts +89 -0
  56. package/src/transport/Transport.ts +24 -0
  57. package/src/types.ts +86 -0
  58. package/src/utils/crypto.ts +129 -0
@@ -0,0 +1,3418 @@
1
+ import * as $protobuf from "protobufjs";
2
+ import Long = require("long");
3
+ /** Status enum. */
4
+ export enum Status {
5
+ Success = 0,
6
+ InvalidSecScheme = 1,
7
+ InvalidProto = 2,
8
+ TooManySessions = 3,
9
+ InvalidArgument = 4,
10
+ InternalError = 5,
11
+ CryptoError = 6,
12
+ InvalidSession = 7
13
+ }
14
+
15
+ /** Represents a S0SessionCmd. */
16
+ export class S0SessionCmd implements IS0SessionCmd {
17
+
18
+ /**
19
+ * Constructs a new S0SessionCmd.
20
+ * @param [properties] Properties to set
21
+ */
22
+ constructor(properties?: IS0SessionCmd);
23
+
24
+ /**
25
+ * Creates a new S0SessionCmd instance using the specified properties.
26
+ * @param [properties] Properties to set
27
+ * @returns S0SessionCmd instance
28
+ */
29
+ public static create(properties?: IS0SessionCmd): S0SessionCmd;
30
+
31
+ /**
32
+ * Encodes the specified S0SessionCmd message. Does not implicitly {@link S0SessionCmd.verify|verify} messages.
33
+ * @param message S0SessionCmd message or plain object to encode
34
+ * @param [writer] Writer to encode to
35
+ * @returns Writer
36
+ */
37
+ public static encode(message: IS0SessionCmd, writer?: $protobuf.Writer): $protobuf.Writer;
38
+
39
+ /**
40
+ * Encodes the specified S0SessionCmd message, length delimited. Does not implicitly {@link S0SessionCmd.verify|verify} messages.
41
+ * @param message S0SessionCmd message or plain object to encode
42
+ * @param [writer] Writer to encode to
43
+ * @returns Writer
44
+ */
45
+ public static encodeDelimited(message: IS0SessionCmd, writer?: $protobuf.Writer): $protobuf.Writer;
46
+
47
+ /**
48
+ * Decodes a S0SessionCmd message from the specified reader or buffer.
49
+ * @param reader Reader or buffer to decode from
50
+ * @param [length] Message length if known beforehand
51
+ * @returns S0SessionCmd
52
+ * @throws {Error} If the payload is not a reader or valid buffer
53
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
54
+ */
55
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): S0SessionCmd;
56
+
57
+ /**
58
+ * Decodes a S0SessionCmd message from the specified reader or buffer, length delimited.
59
+ * @param reader Reader or buffer to decode from
60
+ * @returns S0SessionCmd
61
+ * @throws {Error} If the payload is not a reader or valid buffer
62
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
63
+ */
64
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): S0SessionCmd;
65
+
66
+ /**
67
+ * Verifies a S0SessionCmd message.
68
+ * @param message Plain object to verify
69
+ * @returns `null` if valid, otherwise the reason why it is not
70
+ */
71
+ public static verify(message: { [k: string]: any }): (string|null);
72
+
73
+ /**
74
+ * Creates a S0SessionCmd message from a plain object. Also converts values to their respective internal types.
75
+ * @param object Plain object
76
+ * @returns S0SessionCmd
77
+ */
78
+ public static fromObject(object: { [k: string]: any }): S0SessionCmd;
79
+
80
+ /**
81
+ * Creates a plain object from a S0SessionCmd message. Also converts values to other types if specified.
82
+ * @param message S0SessionCmd
83
+ * @param [options] Conversion options
84
+ * @returns Plain object
85
+ */
86
+ public static toObject(message: S0SessionCmd, options?: $protobuf.IConversionOptions): { [k: string]: any };
87
+
88
+ /**
89
+ * Converts this S0SessionCmd to JSON.
90
+ * @returns JSON object
91
+ */
92
+ public toJSON(): { [k: string]: any };
93
+
94
+ /**
95
+ * Gets the default type url for S0SessionCmd
96
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
97
+ * @returns The default type url
98
+ */
99
+ public static getTypeUrl(typeUrlPrefix?: string): string;
100
+ }
101
+
102
+ /** Represents a S0SessionResp. */
103
+ export class S0SessionResp implements IS0SessionResp {
104
+
105
+ /**
106
+ * Constructs a new S0SessionResp.
107
+ * @param [properties] Properties to set
108
+ */
109
+ constructor(properties?: IS0SessionResp);
110
+
111
+ /** S0SessionResp status. */
112
+ public status: Status;
113
+
114
+ /**
115
+ * Creates a new S0SessionResp instance using the specified properties.
116
+ * @param [properties] Properties to set
117
+ * @returns S0SessionResp instance
118
+ */
119
+ public static create(properties?: IS0SessionResp): S0SessionResp;
120
+
121
+ /**
122
+ * Encodes the specified S0SessionResp message. Does not implicitly {@link S0SessionResp.verify|verify} messages.
123
+ * @param message S0SessionResp message or plain object to encode
124
+ * @param [writer] Writer to encode to
125
+ * @returns Writer
126
+ */
127
+ public static encode(message: IS0SessionResp, writer?: $protobuf.Writer): $protobuf.Writer;
128
+
129
+ /**
130
+ * Encodes the specified S0SessionResp message, length delimited. Does not implicitly {@link S0SessionResp.verify|verify} messages.
131
+ * @param message S0SessionResp message or plain object to encode
132
+ * @param [writer] Writer to encode to
133
+ * @returns Writer
134
+ */
135
+ public static encodeDelimited(message: IS0SessionResp, writer?: $protobuf.Writer): $protobuf.Writer;
136
+
137
+ /**
138
+ * Decodes a S0SessionResp message from the specified reader or buffer.
139
+ * @param reader Reader or buffer to decode from
140
+ * @param [length] Message length if known beforehand
141
+ * @returns S0SessionResp
142
+ * @throws {Error} If the payload is not a reader or valid buffer
143
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
144
+ */
145
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): S0SessionResp;
146
+
147
+ /**
148
+ * Decodes a S0SessionResp message from the specified reader or buffer, length delimited.
149
+ * @param reader Reader or buffer to decode from
150
+ * @returns S0SessionResp
151
+ * @throws {Error} If the payload is not a reader or valid buffer
152
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
153
+ */
154
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): S0SessionResp;
155
+
156
+ /**
157
+ * Verifies a S0SessionResp message.
158
+ * @param message Plain object to verify
159
+ * @returns `null` if valid, otherwise the reason why it is not
160
+ */
161
+ public static verify(message: { [k: string]: any }): (string|null);
162
+
163
+ /**
164
+ * Creates a S0SessionResp message from a plain object. Also converts values to their respective internal types.
165
+ * @param object Plain object
166
+ * @returns S0SessionResp
167
+ */
168
+ public static fromObject(object: { [k: string]: any }): S0SessionResp;
169
+
170
+ /**
171
+ * Creates a plain object from a S0SessionResp message. Also converts values to other types if specified.
172
+ * @param message S0SessionResp
173
+ * @param [options] Conversion options
174
+ * @returns Plain object
175
+ */
176
+ public static toObject(message: S0SessionResp, options?: $protobuf.IConversionOptions): { [k: string]: any };
177
+
178
+ /**
179
+ * Converts this S0SessionResp to JSON.
180
+ * @returns JSON object
181
+ */
182
+ public toJSON(): { [k: string]: any };
183
+
184
+ /**
185
+ * Gets the default type url for S0SessionResp
186
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
187
+ * @returns The default type url
188
+ */
189
+ public static getTypeUrl(typeUrlPrefix?: string): string;
190
+ }
191
+
192
+ /** Sec0MsgType enum. */
193
+ export enum Sec0MsgType {
194
+ S0_Session_Command = 0,
195
+ S0_Session_Response = 1
196
+ }
197
+
198
+ /** Represents a Sec0Payload. */
199
+ export class Sec0Payload implements ISec0Payload {
200
+
201
+ /**
202
+ * Constructs a new Sec0Payload.
203
+ * @param [properties] Properties to set
204
+ */
205
+ constructor(properties?: ISec0Payload);
206
+
207
+ /** Sec0Payload msg. */
208
+ public msg: Sec0MsgType;
209
+
210
+ /** Sec0Payload sc. */
211
+ public sc?: (IS0SessionCmd|null);
212
+
213
+ /** Sec0Payload sr. */
214
+ public sr?: (IS0SessionResp|null);
215
+
216
+ /** Sec0Payload payload. */
217
+ public payload?: ("sc"|"sr");
218
+
219
+ /**
220
+ * Creates a new Sec0Payload instance using the specified properties.
221
+ * @param [properties] Properties to set
222
+ * @returns Sec0Payload instance
223
+ */
224
+ public static create(properties?: ISec0Payload): Sec0Payload;
225
+
226
+ /**
227
+ * Encodes the specified Sec0Payload message. Does not implicitly {@link Sec0Payload.verify|verify} messages.
228
+ * @param message Sec0Payload message or plain object to encode
229
+ * @param [writer] Writer to encode to
230
+ * @returns Writer
231
+ */
232
+ public static encode(message: ISec0Payload, writer?: $protobuf.Writer): $protobuf.Writer;
233
+
234
+ /**
235
+ * Encodes the specified Sec0Payload message, length delimited. Does not implicitly {@link Sec0Payload.verify|verify} messages.
236
+ * @param message Sec0Payload message or plain object to encode
237
+ * @param [writer] Writer to encode to
238
+ * @returns Writer
239
+ */
240
+ public static encodeDelimited(message: ISec0Payload, writer?: $protobuf.Writer): $protobuf.Writer;
241
+
242
+ /**
243
+ * Decodes a Sec0Payload message from the specified reader or buffer.
244
+ * @param reader Reader or buffer to decode from
245
+ * @param [length] Message length if known beforehand
246
+ * @returns Sec0Payload
247
+ * @throws {Error} If the payload is not a reader or valid buffer
248
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
249
+ */
250
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Sec0Payload;
251
+
252
+ /**
253
+ * Decodes a Sec0Payload message from the specified reader or buffer, length delimited.
254
+ * @param reader Reader or buffer to decode from
255
+ * @returns Sec0Payload
256
+ * @throws {Error} If the payload is not a reader or valid buffer
257
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
258
+ */
259
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Sec0Payload;
260
+
261
+ /**
262
+ * Verifies a Sec0Payload message.
263
+ * @param message Plain object to verify
264
+ * @returns `null` if valid, otherwise the reason why it is not
265
+ */
266
+ public static verify(message: { [k: string]: any }): (string|null);
267
+
268
+ /**
269
+ * Creates a Sec0Payload message from a plain object. Also converts values to their respective internal types.
270
+ * @param object Plain object
271
+ * @returns Sec0Payload
272
+ */
273
+ public static fromObject(object: { [k: string]: any }): Sec0Payload;
274
+
275
+ /**
276
+ * Creates a plain object from a Sec0Payload message. Also converts values to other types if specified.
277
+ * @param message Sec0Payload
278
+ * @param [options] Conversion options
279
+ * @returns Plain object
280
+ */
281
+ public static toObject(message: Sec0Payload, options?: $protobuf.IConversionOptions): { [k: string]: any };
282
+
283
+ /**
284
+ * Converts this Sec0Payload to JSON.
285
+ * @returns JSON object
286
+ */
287
+ public toJSON(): { [k: string]: any };
288
+
289
+ /**
290
+ * Gets the default type url for Sec0Payload
291
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
292
+ * @returns The default type url
293
+ */
294
+ public static getTypeUrl(typeUrlPrefix?: string): string;
295
+ }
296
+
297
+ /** Represents a SessionCmd1. */
298
+ export class SessionCmd1 implements ISessionCmd1 {
299
+
300
+ /**
301
+ * Constructs a new SessionCmd1.
302
+ * @param [properties] Properties to set
303
+ */
304
+ constructor(properties?: ISessionCmd1);
305
+
306
+ /** SessionCmd1 clientVerifyData. */
307
+ public clientVerifyData: Uint8Array;
308
+
309
+ /**
310
+ * Creates a new SessionCmd1 instance using the specified properties.
311
+ * @param [properties] Properties to set
312
+ * @returns SessionCmd1 instance
313
+ */
314
+ public static create(properties?: ISessionCmd1): SessionCmd1;
315
+
316
+ /**
317
+ * Encodes the specified SessionCmd1 message. Does not implicitly {@link SessionCmd1.verify|verify} messages.
318
+ * @param message SessionCmd1 message or plain object to encode
319
+ * @param [writer] Writer to encode to
320
+ * @returns Writer
321
+ */
322
+ public static encode(message: ISessionCmd1, writer?: $protobuf.Writer): $protobuf.Writer;
323
+
324
+ /**
325
+ * Encodes the specified SessionCmd1 message, length delimited. Does not implicitly {@link SessionCmd1.verify|verify} messages.
326
+ * @param message SessionCmd1 message or plain object to encode
327
+ * @param [writer] Writer to encode to
328
+ * @returns Writer
329
+ */
330
+ public static encodeDelimited(message: ISessionCmd1, writer?: $protobuf.Writer): $protobuf.Writer;
331
+
332
+ /**
333
+ * Decodes a SessionCmd1 message from the specified reader or buffer.
334
+ * @param reader Reader or buffer to decode from
335
+ * @param [length] Message length if known beforehand
336
+ * @returns SessionCmd1
337
+ * @throws {Error} If the payload is not a reader or valid buffer
338
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
339
+ */
340
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SessionCmd1;
341
+
342
+ /**
343
+ * Decodes a SessionCmd1 message from the specified reader or buffer, length delimited.
344
+ * @param reader Reader or buffer to decode from
345
+ * @returns SessionCmd1
346
+ * @throws {Error} If the payload is not a reader or valid buffer
347
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
348
+ */
349
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SessionCmd1;
350
+
351
+ /**
352
+ * Verifies a SessionCmd1 message.
353
+ * @param message Plain object to verify
354
+ * @returns `null` if valid, otherwise the reason why it is not
355
+ */
356
+ public static verify(message: { [k: string]: any }): (string|null);
357
+
358
+ /**
359
+ * Creates a SessionCmd1 message from a plain object. Also converts values to their respective internal types.
360
+ * @param object Plain object
361
+ * @returns SessionCmd1
362
+ */
363
+ public static fromObject(object: { [k: string]: any }): SessionCmd1;
364
+
365
+ /**
366
+ * Creates a plain object from a SessionCmd1 message. Also converts values to other types if specified.
367
+ * @param message SessionCmd1
368
+ * @param [options] Conversion options
369
+ * @returns Plain object
370
+ */
371
+ public static toObject(message: SessionCmd1, options?: $protobuf.IConversionOptions): { [k: string]: any };
372
+
373
+ /**
374
+ * Converts this SessionCmd1 to JSON.
375
+ * @returns JSON object
376
+ */
377
+ public toJSON(): { [k: string]: any };
378
+
379
+ /**
380
+ * Gets the default type url for SessionCmd1
381
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
382
+ * @returns The default type url
383
+ */
384
+ public static getTypeUrl(typeUrlPrefix?: string): string;
385
+ }
386
+
387
+ /** Represents a SessionResp1. */
388
+ export class SessionResp1 implements ISessionResp1 {
389
+
390
+ /**
391
+ * Constructs a new SessionResp1.
392
+ * @param [properties] Properties to set
393
+ */
394
+ constructor(properties?: ISessionResp1);
395
+
396
+ /** SessionResp1 status. */
397
+ public status: Status;
398
+
399
+ /** SessionResp1 deviceVerifyData. */
400
+ public deviceVerifyData: Uint8Array;
401
+
402
+ /**
403
+ * Creates a new SessionResp1 instance using the specified properties.
404
+ * @param [properties] Properties to set
405
+ * @returns SessionResp1 instance
406
+ */
407
+ public static create(properties?: ISessionResp1): SessionResp1;
408
+
409
+ /**
410
+ * Encodes the specified SessionResp1 message. Does not implicitly {@link SessionResp1.verify|verify} messages.
411
+ * @param message SessionResp1 message or plain object to encode
412
+ * @param [writer] Writer to encode to
413
+ * @returns Writer
414
+ */
415
+ public static encode(message: ISessionResp1, writer?: $protobuf.Writer): $protobuf.Writer;
416
+
417
+ /**
418
+ * Encodes the specified SessionResp1 message, length delimited. Does not implicitly {@link SessionResp1.verify|verify} messages.
419
+ * @param message SessionResp1 message or plain object to encode
420
+ * @param [writer] Writer to encode to
421
+ * @returns Writer
422
+ */
423
+ public static encodeDelimited(message: ISessionResp1, writer?: $protobuf.Writer): $protobuf.Writer;
424
+
425
+ /**
426
+ * Decodes a SessionResp1 message from the specified reader or buffer.
427
+ * @param reader Reader or buffer to decode from
428
+ * @param [length] Message length if known beforehand
429
+ * @returns SessionResp1
430
+ * @throws {Error} If the payload is not a reader or valid buffer
431
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
432
+ */
433
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SessionResp1;
434
+
435
+ /**
436
+ * Decodes a SessionResp1 message from the specified reader or buffer, length delimited.
437
+ * @param reader Reader or buffer to decode from
438
+ * @returns SessionResp1
439
+ * @throws {Error} If the payload is not a reader or valid buffer
440
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
441
+ */
442
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SessionResp1;
443
+
444
+ /**
445
+ * Verifies a SessionResp1 message.
446
+ * @param message Plain object to verify
447
+ * @returns `null` if valid, otherwise the reason why it is not
448
+ */
449
+ public static verify(message: { [k: string]: any }): (string|null);
450
+
451
+ /**
452
+ * Creates a SessionResp1 message from a plain object. Also converts values to their respective internal types.
453
+ * @param object Plain object
454
+ * @returns SessionResp1
455
+ */
456
+ public static fromObject(object: { [k: string]: any }): SessionResp1;
457
+
458
+ /**
459
+ * Creates a plain object from a SessionResp1 message. Also converts values to other types if specified.
460
+ * @param message SessionResp1
461
+ * @param [options] Conversion options
462
+ * @returns Plain object
463
+ */
464
+ public static toObject(message: SessionResp1, options?: $protobuf.IConversionOptions): { [k: string]: any };
465
+
466
+ /**
467
+ * Converts this SessionResp1 to JSON.
468
+ * @returns JSON object
469
+ */
470
+ public toJSON(): { [k: string]: any };
471
+
472
+ /**
473
+ * Gets the default type url for SessionResp1
474
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
475
+ * @returns The default type url
476
+ */
477
+ public static getTypeUrl(typeUrlPrefix?: string): string;
478
+ }
479
+
480
+ /** Represents a SessionCmd0. */
481
+ export class SessionCmd0 implements ISessionCmd0 {
482
+
483
+ /**
484
+ * Constructs a new SessionCmd0.
485
+ * @param [properties] Properties to set
486
+ */
487
+ constructor(properties?: ISessionCmd0);
488
+
489
+ /** SessionCmd0 clientPubkey. */
490
+ public clientPubkey: Uint8Array;
491
+
492
+ /**
493
+ * Creates a new SessionCmd0 instance using the specified properties.
494
+ * @param [properties] Properties to set
495
+ * @returns SessionCmd0 instance
496
+ */
497
+ public static create(properties?: ISessionCmd0): SessionCmd0;
498
+
499
+ /**
500
+ * Encodes the specified SessionCmd0 message. Does not implicitly {@link SessionCmd0.verify|verify} messages.
501
+ * @param message SessionCmd0 message or plain object to encode
502
+ * @param [writer] Writer to encode to
503
+ * @returns Writer
504
+ */
505
+ public static encode(message: ISessionCmd0, writer?: $protobuf.Writer): $protobuf.Writer;
506
+
507
+ /**
508
+ * Encodes the specified SessionCmd0 message, length delimited. Does not implicitly {@link SessionCmd0.verify|verify} messages.
509
+ * @param message SessionCmd0 message or plain object to encode
510
+ * @param [writer] Writer to encode to
511
+ * @returns Writer
512
+ */
513
+ public static encodeDelimited(message: ISessionCmd0, writer?: $protobuf.Writer): $protobuf.Writer;
514
+
515
+ /**
516
+ * Decodes a SessionCmd0 message from the specified reader or buffer.
517
+ * @param reader Reader or buffer to decode from
518
+ * @param [length] Message length if known beforehand
519
+ * @returns SessionCmd0
520
+ * @throws {Error} If the payload is not a reader or valid buffer
521
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
522
+ */
523
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SessionCmd0;
524
+
525
+ /**
526
+ * Decodes a SessionCmd0 message from the specified reader or buffer, length delimited.
527
+ * @param reader Reader or buffer to decode from
528
+ * @returns SessionCmd0
529
+ * @throws {Error} If the payload is not a reader or valid buffer
530
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
531
+ */
532
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SessionCmd0;
533
+
534
+ /**
535
+ * Verifies a SessionCmd0 message.
536
+ * @param message Plain object to verify
537
+ * @returns `null` if valid, otherwise the reason why it is not
538
+ */
539
+ public static verify(message: { [k: string]: any }): (string|null);
540
+
541
+ /**
542
+ * Creates a SessionCmd0 message from a plain object. Also converts values to their respective internal types.
543
+ * @param object Plain object
544
+ * @returns SessionCmd0
545
+ */
546
+ public static fromObject(object: { [k: string]: any }): SessionCmd0;
547
+
548
+ /**
549
+ * Creates a plain object from a SessionCmd0 message. Also converts values to other types if specified.
550
+ * @param message SessionCmd0
551
+ * @param [options] Conversion options
552
+ * @returns Plain object
553
+ */
554
+ public static toObject(message: SessionCmd0, options?: $protobuf.IConversionOptions): { [k: string]: any };
555
+
556
+ /**
557
+ * Converts this SessionCmd0 to JSON.
558
+ * @returns JSON object
559
+ */
560
+ public toJSON(): { [k: string]: any };
561
+
562
+ /**
563
+ * Gets the default type url for SessionCmd0
564
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
565
+ * @returns The default type url
566
+ */
567
+ public static getTypeUrl(typeUrlPrefix?: string): string;
568
+ }
569
+
570
+ /** Represents a SessionResp0. */
571
+ export class SessionResp0 implements ISessionResp0 {
572
+
573
+ /**
574
+ * Constructs a new SessionResp0.
575
+ * @param [properties] Properties to set
576
+ */
577
+ constructor(properties?: ISessionResp0);
578
+
579
+ /** SessionResp0 status. */
580
+ public status: Status;
581
+
582
+ /** SessionResp0 devicePubkey. */
583
+ public devicePubkey: Uint8Array;
584
+
585
+ /** SessionResp0 deviceRandom. */
586
+ public deviceRandom: Uint8Array;
587
+
588
+ /**
589
+ * Creates a new SessionResp0 instance using the specified properties.
590
+ * @param [properties] Properties to set
591
+ * @returns SessionResp0 instance
592
+ */
593
+ public static create(properties?: ISessionResp0): SessionResp0;
594
+
595
+ /**
596
+ * Encodes the specified SessionResp0 message. Does not implicitly {@link SessionResp0.verify|verify} messages.
597
+ * @param message SessionResp0 message or plain object to encode
598
+ * @param [writer] Writer to encode to
599
+ * @returns Writer
600
+ */
601
+ public static encode(message: ISessionResp0, writer?: $protobuf.Writer): $protobuf.Writer;
602
+
603
+ /**
604
+ * Encodes the specified SessionResp0 message, length delimited. Does not implicitly {@link SessionResp0.verify|verify} messages.
605
+ * @param message SessionResp0 message or plain object to encode
606
+ * @param [writer] Writer to encode to
607
+ * @returns Writer
608
+ */
609
+ public static encodeDelimited(message: ISessionResp0, writer?: $protobuf.Writer): $protobuf.Writer;
610
+
611
+ /**
612
+ * Decodes a SessionResp0 message from the specified reader or buffer.
613
+ * @param reader Reader or buffer to decode from
614
+ * @param [length] Message length if known beforehand
615
+ * @returns SessionResp0
616
+ * @throws {Error} If the payload is not a reader or valid buffer
617
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
618
+ */
619
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SessionResp0;
620
+
621
+ /**
622
+ * Decodes a SessionResp0 message from the specified reader or buffer, length delimited.
623
+ * @param reader Reader or buffer to decode from
624
+ * @returns SessionResp0
625
+ * @throws {Error} If the payload is not a reader or valid buffer
626
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
627
+ */
628
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SessionResp0;
629
+
630
+ /**
631
+ * Verifies a SessionResp0 message.
632
+ * @param message Plain object to verify
633
+ * @returns `null` if valid, otherwise the reason why it is not
634
+ */
635
+ public static verify(message: { [k: string]: any }): (string|null);
636
+
637
+ /**
638
+ * Creates a SessionResp0 message from a plain object. Also converts values to their respective internal types.
639
+ * @param object Plain object
640
+ * @returns SessionResp0
641
+ */
642
+ public static fromObject(object: { [k: string]: any }): SessionResp0;
643
+
644
+ /**
645
+ * Creates a plain object from a SessionResp0 message. Also converts values to other types if specified.
646
+ * @param message SessionResp0
647
+ * @param [options] Conversion options
648
+ * @returns Plain object
649
+ */
650
+ public static toObject(message: SessionResp0, options?: $protobuf.IConversionOptions): { [k: string]: any };
651
+
652
+ /**
653
+ * Converts this SessionResp0 to JSON.
654
+ * @returns JSON object
655
+ */
656
+ public toJSON(): { [k: string]: any };
657
+
658
+ /**
659
+ * Gets the default type url for SessionResp0
660
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
661
+ * @returns The default type url
662
+ */
663
+ public static getTypeUrl(typeUrlPrefix?: string): string;
664
+ }
665
+
666
+ /** Sec1MsgType enum. */
667
+ export enum Sec1MsgType {
668
+ Session_Command0 = 0,
669
+ Session_Response0 = 1,
670
+ Session_Command1 = 2,
671
+ Session_Response1 = 3
672
+ }
673
+
674
+ /** Represents a Sec1Payload. */
675
+ export class Sec1Payload implements ISec1Payload {
676
+
677
+ /**
678
+ * Constructs a new Sec1Payload.
679
+ * @param [properties] Properties to set
680
+ */
681
+ constructor(properties?: ISec1Payload);
682
+
683
+ /** Sec1Payload msg. */
684
+ public msg: Sec1MsgType;
685
+
686
+ /** Sec1Payload sc0. */
687
+ public sc0?: (ISessionCmd0|null);
688
+
689
+ /** Sec1Payload sr0. */
690
+ public sr0?: (ISessionResp0|null);
691
+
692
+ /** Sec1Payload sc1. */
693
+ public sc1?: (ISessionCmd1|null);
694
+
695
+ /** Sec1Payload sr1. */
696
+ public sr1?: (ISessionResp1|null);
697
+
698
+ /** Sec1Payload payload. */
699
+ public payload?: ("sc0"|"sr0"|"sc1"|"sr1");
700
+
701
+ /**
702
+ * Creates a new Sec1Payload instance using the specified properties.
703
+ * @param [properties] Properties to set
704
+ * @returns Sec1Payload instance
705
+ */
706
+ public static create(properties?: ISec1Payload): Sec1Payload;
707
+
708
+ /**
709
+ * Encodes the specified Sec1Payload message. Does not implicitly {@link Sec1Payload.verify|verify} messages.
710
+ * @param message Sec1Payload message or plain object to encode
711
+ * @param [writer] Writer to encode to
712
+ * @returns Writer
713
+ */
714
+ public static encode(message: ISec1Payload, writer?: $protobuf.Writer): $protobuf.Writer;
715
+
716
+ /**
717
+ * Encodes the specified Sec1Payload message, length delimited. Does not implicitly {@link Sec1Payload.verify|verify} messages.
718
+ * @param message Sec1Payload message or plain object to encode
719
+ * @param [writer] Writer to encode to
720
+ * @returns Writer
721
+ */
722
+ public static encodeDelimited(message: ISec1Payload, writer?: $protobuf.Writer): $protobuf.Writer;
723
+
724
+ /**
725
+ * Decodes a Sec1Payload message from the specified reader or buffer.
726
+ * @param reader Reader or buffer to decode from
727
+ * @param [length] Message length if known beforehand
728
+ * @returns Sec1Payload
729
+ * @throws {Error} If the payload is not a reader or valid buffer
730
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
731
+ */
732
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Sec1Payload;
733
+
734
+ /**
735
+ * Decodes a Sec1Payload message from the specified reader or buffer, length delimited.
736
+ * @param reader Reader or buffer to decode from
737
+ * @returns Sec1Payload
738
+ * @throws {Error} If the payload is not a reader or valid buffer
739
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
740
+ */
741
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Sec1Payload;
742
+
743
+ /**
744
+ * Verifies a Sec1Payload message.
745
+ * @param message Plain object to verify
746
+ * @returns `null` if valid, otherwise the reason why it is not
747
+ */
748
+ public static verify(message: { [k: string]: any }): (string|null);
749
+
750
+ /**
751
+ * Creates a Sec1Payload message from a plain object. Also converts values to their respective internal types.
752
+ * @param object Plain object
753
+ * @returns Sec1Payload
754
+ */
755
+ public static fromObject(object: { [k: string]: any }): Sec1Payload;
756
+
757
+ /**
758
+ * Creates a plain object from a Sec1Payload message. Also converts values to other types if specified.
759
+ * @param message Sec1Payload
760
+ * @param [options] Conversion options
761
+ * @returns Plain object
762
+ */
763
+ public static toObject(message: Sec1Payload, options?: $protobuf.IConversionOptions): { [k: string]: any };
764
+
765
+ /**
766
+ * Converts this Sec1Payload to JSON.
767
+ * @returns JSON object
768
+ */
769
+ public toJSON(): { [k: string]: any };
770
+
771
+ /**
772
+ * Gets the default type url for Sec1Payload
773
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
774
+ * @returns The default type url
775
+ */
776
+ public static getTypeUrl(typeUrlPrefix?: string): string;
777
+ }
778
+
779
+ /** Sec2MsgType enum. */
780
+ export enum Sec2MsgType {
781
+ S2Session_Command0 = 0,
782
+ S2Session_Response0 = 1,
783
+ S2Session_Command1 = 2,
784
+ S2Session_Response1 = 3
785
+ }
786
+
787
+ /** Represents a S2SessionCmd0. */
788
+ export class S2SessionCmd0 implements IS2SessionCmd0 {
789
+
790
+ /**
791
+ * Constructs a new S2SessionCmd0.
792
+ * @param [properties] Properties to set
793
+ */
794
+ constructor(properties?: IS2SessionCmd0);
795
+
796
+ /** S2SessionCmd0 clientUsername. */
797
+ public clientUsername: Uint8Array;
798
+
799
+ /** S2SessionCmd0 clientPubkey. */
800
+ public clientPubkey: Uint8Array;
801
+
802
+ /**
803
+ * Creates a new S2SessionCmd0 instance using the specified properties.
804
+ * @param [properties] Properties to set
805
+ * @returns S2SessionCmd0 instance
806
+ */
807
+ public static create(properties?: IS2SessionCmd0): S2SessionCmd0;
808
+
809
+ /**
810
+ * Encodes the specified S2SessionCmd0 message. Does not implicitly {@link S2SessionCmd0.verify|verify} messages.
811
+ * @param message S2SessionCmd0 message or plain object to encode
812
+ * @param [writer] Writer to encode to
813
+ * @returns Writer
814
+ */
815
+ public static encode(message: IS2SessionCmd0, writer?: $protobuf.Writer): $protobuf.Writer;
816
+
817
+ /**
818
+ * Encodes the specified S2SessionCmd0 message, length delimited. Does not implicitly {@link S2SessionCmd0.verify|verify} messages.
819
+ * @param message S2SessionCmd0 message or plain object to encode
820
+ * @param [writer] Writer to encode to
821
+ * @returns Writer
822
+ */
823
+ public static encodeDelimited(message: IS2SessionCmd0, writer?: $protobuf.Writer): $protobuf.Writer;
824
+
825
+ /**
826
+ * Decodes a S2SessionCmd0 message from the specified reader or buffer.
827
+ * @param reader Reader or buffer to decode from
828
+ * @param [length] Message length if known beforehand
829
+ * @returns S2SessionCmd0
830
+ * @throws {Error} If the payload is not a reader or valid buffer
831
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
832
+ */
833
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): S2SessionCmd0;
834
+
835
+ /**
836
+ * Decodes a S2SessionCmd0 message from the specified reader or buffer, length delimited.
837
+ * @param reader Reader or buffer to decode from
838
+ * @returns S2SessionCmd0
839
+ * @throws {Error} If the payload is not a reader or valid buffer
840
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
841
+ */
842
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): S2SessionCmd0;
843
+
844
+ /**
845
+ * Verifies a S2SessionCmd0 message.
846
+ * @param message Plain object to verify
847
+ * @returns `null` if valid, otherwise the reason why it is not
848
+ */
849
+ public static verify(message: { [k: string]: any }): (string|null);
850
+
851
+ /**
852
+ * Creates a S2SessionCmd0 message from a plain object. Also converts values to their respective internal types.
853
+ * @param object Plain object
854
+ * @returns S2SessionCmd0
855
+ */
856
+ public static fromObject(object: { [k: string]: any }): S2SessionCmd0;
857
+
858
+ /**
859
+ * Creates a plain object from a S2SessionCmd0 message. Also converts values to other types if specified.
860
+ * @param message S2SessionCmd0
861
+ * @param [options] Conversion options
862
+ * @returns Plain object
863
+ */
864
+ public static toObject(message: S2SessionCmd0, options?: $protobuf.IConversionOptions): { [k: string]: any };
865
+
866
+ /**
867
+ * Converts this S2SessionCmd0 to JSON.
868
+ * @returns JSON object
869
+ */
870
+ public toJSON(): { [k: string]: any };
871
+
872
+ /**
873
+ * Gets the default type url for S2SessionCmd0
874
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
875
+ * @returns The default type url
876
+ */
877
+ public static getTypeUrl(typeUrlPrefix?: string): string;
878
+ }
879
+
880
+ /** Represents a S2SessionResp0. */
881
+ export class S2SessionResp0 implements IS2SessionResp0 {
882
+
883
+ /**
884
+ * Constructs a new S2SessionResp0.
885
+ * @param [properties] Properties to set
886
+ */
887
+ constructor(properties?: IS2SessionResp0);
888
+
889
+ /** S2SessionResp0 status. */
890
+ public status: Status;
891
+
892
+ /** S2SessionResp0 devicePubkey. */
893
+ public devicePubkey: Uint8Array;
894
+
895
+ /** S2SessionResp0 deviceSalt. */
896
+ public deviceSalt: Uint8Array;
897
+
898
+ /**
899
+ * Creates a new S2SessionResp0 instance using the specified properties.
900
+ * @param [properties] Properties to set
901
+ * @returns S2SessionResp0 instance
902
+ */
903
+ public static create(properties?: IS2SessionResp0): S2SessionResp0;
904
+
905
+ /**
906
+ * Encodes the specified S2SessionResp0 message. Does not implicitly {@link S2SessionResp0.verify|verify} messages.
907
+ * @param message S2SessionResp0 message or plain object to encode
908
+ * @param [writer] Writer to encode to
909
+ * @returns Writer
910
+ */
911
+ public static encode(message: IS2SessionResp0, writer?: $protobuf.Writer): $protobuf.Writer;
912
+
913
+ /**
914
+ * Encodes the specified S2SessionResp0 message, length delimited. Does not implicitly {@link S2SessionResp0.verify|verify} messages.
915
+ * @param message S2SessionResp0 message or plain object to encode
916
+ * @param [writer] Writer to encode to
917
+ * @returns Writer
918
+ */
919
+ public static encodeDelimited(message: IS2SessionResp0, writer?: $protobuf.Writer): $protobuf.Writer;
920
+
921
+ /**
922
+ * Decodes a S2SessionResp0 message from the specified reader or buffer.
923
+ * @param reader Reader or buffer to decode from
924
+ * @param [length] Message length if known beforehand
925
+ * @returns S2SessionResp0
926
+ * @throws {Error} If the payload is not a reader or valid buffer
927
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
928
+ */
929
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): S2SessionResp0;
930
+
931
+ /**
932
+ * Decodes a S2SessionResp0 message from the specified reader or buffer, length delimited.
933
+ * @param reader Reader or buffer to decode from
934
+ * @returns S2SessionResp0
935
+ * @throws {Error} If the payload is not a reader or valid buffer
936
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
937
+ */
938
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): S2SessionResp0;
939
+
940
+ /**
941
+ * Verifies a S2SessionResp0 message.
942
+ * @param message Plain object to verify
943
+ * @returns `null` if valid, otherwise the reason why it is not
944
+ */
945
+ public static verify(message: { [k: string]: any }): (string|null);
946
+
947
+ /**
948
+ * Creates a S2SessionResp0 message from a plain object. Also converts values to their respective internal types.
949
+ * @param object Plain object
950
+ * @returns S2SessionResp0
951
+ */
952
+ public static fromObject(object: { [k: string]: any }): S2SessionResp0;
953
+
954
+ /**
955
+ * Creates a plain object from a S2SessionResp0 message. Also converts values to other types if specified.
956
+ * @param message S2SessionResp0
957
+ * @param [options] Conversion options
958
+ * @returns Plain object
959
+ */
960
+ public static toObject(message: S2SessionResp0, options?: $protobuf.IConversionOptions): { [k: string]: any };
961
+
962
+ /**
963
+ * Converts this S2SessionResp0 to JSON.
964
+ * @returns JSON object
965
+ */
966
+ public toJSON(): { [k: string]: any };
967
+
968
+ /**
969
+ * Gets the default type url for S2SessionResp0
970
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
971
+ * @returns The default type url
972
+ */
973
+ public static getTypeUrl(typeUrlPrefix?: string): string;
974
+ }
975
+
976
+ /** Represents a S2SessionCmd1. */
977
+ export class S2SessionCmd1 implements IS2SessionCmd1 {
978
+
979
+ /**
980
+ * Constructs a new S2SessionCmd1.
981
+ * @param [properties] Properties to set
982
+ */
983
+ constructor(properties?: IS2SessionCmd1);
984
+
985
+ /** S2SessionCmd1 clientProof. */
986
+ public clientProof: Uint8Array;
987
+
988
+ /**
989
+ * Creates a new S2SessionCmd1 instance using the specified properties.
990
+ * @param [properties] Properties to set
991
+ * @returns S2SessionCmd1 instance
992
+ */
993
+ public static create(properties?: IS2SessionCmd1): S2SessionCmd1;
994
+
995
+ /**
996
+ * Encodes the specified S2SessionCmd1 message. Does not implicitly {@link S2SessionCmd1.verify|verify} messages.
997
+ * @param message S2SessionCmd1 message or plain object to encode
998
+ * @param [writer] Writer to encode to
999
+ * @returns Writer
1000
+ */
1001
+ public static encode(message: IS2SessionCmd1, writer?: $protobuf.Writer): $protobuf.Writer;
1002
+
1003
+ /**
1004
+ * Encodes the specified S2SessionCmd1 message, length delimited. Does not implicitly {@link S2SessionCmd1.verify|verify} messages.
1005
+ * @param message S2SessionCmd1 message or plain object to encode
1006
+ * @param [writer] Writer to encode to
1007
+ * @returns Writer
1008
+ */
1009
+ public static encodeDelimited(message: IS2SessionCmd1, writer?: $protobuf.Writer): $protobuf.Writer;
1010
+
1011
+ /**
1012
+ * Decodes a S2SessionCmd1 message from the specified reader or buffer.
1013
+ * @param reader Reader or buffer to decode from
1014
+ * @param [length] Message length if known beforehand
1015
+ * @returns S2SessionCmd1
1016
+ * @throws {Error} If the payload is not a reader or valid buffer
1017
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1018
+ */
1019
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): S2SessionCmd1;
1020
+
1021
+ /**
1022
+ * Decodes a S2SessionCmd1 message from the specified reader or buffer, length delimited.
1023
+ * @param reader Reader or buffer to decode from
1024
+ * @returns S2SessionCmd1
1025
+ * @throws {Error} If the payload is not a reader or valid buffer
1026
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1027
+ */
1028
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): S2SessionCmd1;
1029
+
1030
+ /**
1031
+ * Verifies a S2SessionCmd1 message.
1032
+ * @param message Plain object to verify
1033
+ * @returns `null` if valid, otherwise the reason why it is not
1034
+ */
1035
+ public static verify(message: { [k: string]: any }): (string|null);
1036
+
1037
+ /**
1038
+ * Creates a S2SessionCmd1 message from a plain object. Also converts values to their respective internal types.
1039
+ * @param object Plain object
1040
+ * @returns S2SessionCmd1
1041
+ */
1042
+ public static fromObject(object: { [k: string]: any }): S2SessionCmd1;
1043
+
1044
+ /**
1045
+ * Creates a plain object from a S2SessionCmd1 message. Also converts values to other types if specified.
1046
+ * @param message S2SessionCmd1
1047
+ * @param [options] Conversion options
1048
+ * @returns Plain object
1049
+ */
1050
+ public static toObject(message: S2SessionCmd1, options?: $protobuf.IConversionOptions): { [k: string]: any };
1051
+
1052
+ /**
1053
+ * Converts this S2SessionCmd1 to JSON.
1054
+ * @returns JSON object
1055
+ */
1056
+ public toJSON(): { [k: string]: any };
1057
+
1058
+ /**
1059
+ * Gets the default type url for S2SessionCmd1
1060
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1061
+ * @returns The default type url
1062
+ */
1063
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1064
+ }
1065
+
1066
+ /** Represents a S2SessionResp1. */
1067
+ export class S2SessionResp1 implements IS2SessionResp1 {
1068
+
1069
+ /**
1070
+ * Constructs a new S2SessionResp1.
1071
+ * @param [properties] Properties to set
1072
+ */
1073
+ constructor(properties?: IS2SessionResp1);
1074
+
1075
+ /** S2SessionResp1 status. */
1076
+ public status: Status;
1077
+
1078
+ /** S2SessionResp1 deviceProof. */
1079
+ public deviceProof: Uint8Array;
1080
+
1081
+ /** S2SessionResp1 deviceNonce. */
1082
+ public deviceNonce: Uint8Array;
1083
+
1084
+ /**
1085
+ * Creates a new S2SessionResp1 instance using the specified properties.
1086
+ * @param [properties] Properties to set
1087
+ * @returns S2SessionResp1 instance
1088
+ */
1089
+ public static create(properties?: IS2SessionResp1): S2SessionResp1;
1090
+
1091
+ /**
1092
+ * Encodes the specified S2SessionResp1 message. Does not implicitly {@link S2SessionResp1.verify|verify} messages.
1093
+ * @param message S2SessionResp1 message or plain object to encode
1094
+ * @param [writer] Writer to encode to
1095
+ * @returns Writer
1096
+ */
1097
+ public static encode(message: IS2SessionResp1, writer?: $protobuf.Writer): $protobuf.Writer;
1098
+
1099
+ /**
1100
+ * Encodes the specified S2SessionResp1 message, length delimited. Does not implicitly {@link S2SessionResp1.verify|verify} messages.
1101
+ * @param message S2SessionResp1 message or plain object to encode
1102
+ * @param [writer] Writer to encode to
1103
+ * @returns Writer
1104
+ */
1105
+ public static encodeDelimited(message: IS2SessionResp1, writer?: $protobuf.Writer): $protobuf.Writer;
1106
+
1107
+ /**
1108
+ * Decodes a S2SessionResp1 message from the specified reader or buffer.
1109
+ * @param reader Reader or buffer to decode from
1110
+ * @param [length] Message length if known beforehand
1111
+ * @returns S2SessionResp1
1112
+ * @throws {Error} If the payload is not a reader or valid buffer
1113
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1114
+ */
1115
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): S2SessionResp1;
1116
+
1117
+ /**
1118
+ * Decodes a S2SessionResp1 message from the specified reader or buffer, length delimited.
1119
+ * @param reader Reader or buffer to decode from
1120
+ * @returns S2SessionResp1
1121
+ * @throws {Error} If the payload is not a reader or valid buffer
1122
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1123
+ */
1124
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): S2SessionResp1;
1125
+
1126
+ /**
1127
+ * Verifies a S2SessionResp1 message.
1128
+ * @param message Plain object to verify
1129
+ * @returns `null` if valid, otherwise the reason why it is not
1130
+ */
1131
+ public static verify(message: { [k: string]: any }): (string|null);
1132
+
1133
+ /**
1134
+ * Creates a S2SessionResp1 message from a plain object. Also converts values to their respective internal types.
1135
+ * @param object Plain object
1136
+ * @returns S2SessionResp1
1137
+ */
1138
+ public static fromObject(object: { [k: string]: any }): S2SessionResp1;
1139
+
1140
+ /**
1141
+ * Creates a plain object from a S2SessionResp1 message. Also converts values to other types if specified.
1142
+ * @param message S2SessionResp1
1143
+ * @param [options] Conversion options
1144
+ * @returns Plain object
1145
+ */
1146
+ public static toObject(message: S2SessionResp1, options?: $protobuf.IConversionOptions): { [k: string]: any };
1147
+
1148
+ /**
1149
+ * Converts this S2SessionResp1 to JSON.
1150
+ * @returns JSON object
1151
+ */
1152
+ public toJSON(): { [k: string]: any };
1153
+
1154
+ /**
1155
+ * Gets the default type url for S2SessionResp1
1156
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1157
+ * @returns The default type url
1158
+ */
1159
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1160
+ }
1161
+
1162
+ /** Represents a Sec2Payload. */
1163
+ export class Sec2Payload implements ISec2Payload {
1164
+
1165
+ /**
1166
+ * Constructs a new Sec2Payload.
1167
+ * @param [properties] Properties to set
1168
+ */
1169
+ constructor(properties?: ISec2Payload);
1170
+
1171
+ /** Sec2Payload msg. */
1172
+ public msg: Sec2MsgType;
1173
+
1174
+ /** Sec2Payload sc0. */
1175
+ public sc0?: (IS2SessionCmd0|null);
1176
+
1177
+ /** Sec2Payload sr0. */
1178
+ public sr0?: (IS2SessionResp0|null);
1179
+
1180
+ /** Sec2Payload sc1. */
1181
+ public sc1?: (IS2SessionCmd1|null);
1182
+
1183
+ /** Sec2Payload sr1. */
1184
+ public sr1?: (IS2SessionResp1|null);
1185
+
1186
+ /** Sec2Payload payload. */
1187
+ public payload?: ("sc0"|"sr0"|"sc1"|"sr1");
1188
+
1189
+ /**
1190
+ * Creates a new Sec2Payload instance using the specified properties.
1191
+ * @param [properties] Properties to set
1192
+ * @returns Sec2Payload instance
1193
+ */
1194
+ public static create(properties?: ISec2Payload): Sec2Payload;
1195
+
1196
+ /**
1197
+ * Encodes the specified Sec2Payload message. Does not implicitly {@link Sec2Payload.verify|verify} messages.
1198
+ * @param message Sec2Payload message or plain object to encode
1199
+ * @param [writer] Writer to encode to
1200
+ * @returns Writer
1201
+ */
1202
+ public static encode(message: ISec2Payload, writer?: $protobuf.Writer): $protobuf.Writer;
1203
+
1204
+ /**
1205
+ * Encodes the specified Sec2Payload message, length delimited. Does not implicitly {@link Sec2Payload.verify|verify} messages.
1206
+ * @param message Sec2Payload message or plain object to encode
1207
+ * @param [writer] Writer to encode to
1208
+ * @returns Writer
1209
+ */
1210
+ public static encodeDelimited(message: ISec2Payload, writer?: $protobuf.Writer): $protobuf.Writer;
1211
+
1212
+ /**
1213
+ * Decodes a Sec2Payload message from the specified reader or buffer.
1214
+ * @param reader Reader or buffer to decode from
1215
+ * @param [length] Message length if known beforehand
1216
+ * @returns Sec2Payload
1217
+ * @throws {Error} If the payload is not a reader or valid buffer
1218
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1219
+ */
1220
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Sec2Payload;
1221
+
1222
+ /**
1223
+ * Decodes a Sec2Payload message from the specified reader or buffer, length delimited.
1224
+ * @param reader Reader or buffer to decode from
1225
+ * @returns Sec2Payload
1226
+ * @throws {Error} If the payload is not a reader or valid buffer
1227
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1228
+ */
1229
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Sec2Payload;
1230
+
1231
+ /**
1232
+ * Verifies a Sec2Payload message.
1233
+ * @param message Plain object to verify
1234
+ * @returns `null` if valid, otherwise the reason why it is not
1235
+ */
1236
+ public static verify(message: { [k: string]: any }): (string|null);
1237
+
1238
+ /**
1239
+ * Creates a Sec2Payload message from a plain object. Also converts values to their respective internal types.
1240
+ * @param object Plain object
1241
+ * @returns Sec2Payload
1242
+ */
1243
+ public static fromObject(object: { [k: string]: any }): Sec2Payload;
1244
+
1245
+ /**
1246
+ * Creates a plain object from a Sec2Payload message. Also converts values to other types if specified.
1247
+ * @param message Sec2Payload
1248
+ * @param [options] Conversion options
1249
+ * @returns Plain object
1250
+ */
1251
+ public static toObject(message: Sec2Payload, options?: $protobuf.IConversionOptions): { [k: string]: any };
1252
+
1253
+ /**
1254
+ * Converts this Sec2Payload to JSON.
1255
+ * @returns JSON object
1256
+ */
1257
+ public toJSON(): { [k: string]: any };
1258
+
1259
+ /**
1260
+ * Gets the default type url for Sec2Payload
1261
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1262
+ * @returns The default type url
1263
+ */
1264
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1265
+ }
1266
+
1267
+ /** SecSchemeVersion enum. */
1268
+ export enum SecSchemeVersion {
1269
+ SecScheme0 = 0,
1270
+ SecScheme1 = 1,
1271
+ SecScheme2 = 2
1272
+ }
1273
+
1274
+ /** Represents a SessionData. */
1275
+ export class SessionData implements ISessionData {
1276
+
1277
+ /**
1278
+ * Constructs a new SessionData.
1279
+ * @param [properties] Properties to set
1280
+ */
1281
+ constructor(properties?: ISessionData);
1282
+
1283
+ /** SessionData secVer. */
1284
+ public secVer: SecSchemeVersion;
1285
+
1286
+ /** SessionData sec0. */
1287
+ public sec0?: (ISec0Payload|null);
1288
+
1289
+ /** SessionData sec1. */
1290
+ public sec1?: (ISec1Payload|null);
1291
+
1292
+ /** SessionData sec2. */
1293
+ public sec2?: (ISec2Payload|null);
1294
+
1295
+ /** SessionData proto. */
1296
+ public proto?: ("sec0"|"sec1"|"sec2");
1297
+
1298
+ /**
1299
+ * Creates a new SessionData instance using the specified properties.
1300
+ * @param [properties] Properties to set
1301
+ * @returns SessionData instance
1302
+ */
1303
+ public static create(properties?: ISessionData): SessionData;
1304
+
1305
+ /**
1306
+ * Encodes the specified SessionData message. Does not implicitly {@link SessionData.verify|verify} messages.
1307
+ * @param message SessionData message or plain object to encode
1308
+ * @param [writer] Writer to encode to
1309
+ * @returns Writer
1310
+ */
1311
+ public static encode(message: ISessionData, writer?: $protobuf.Writer): $protobuf.Writer;
1312
+
1313
+ /**
1314
+ * Encodes the specified SessionData message, length delimited. Does not implicitly {@link SessionData.verify|verify} messages.
1315
+ * @param message SessionData message or plain object to encode
1316
+ * @param [writer] Writer to encode to
1317
+ * @returns Writer
1318
+ */
1319
+ public static encodeDelimited(message: ISessionData, writer?: $protobuf.Writer): $protobuf.Writer;
1320
+
1321
+ /**
1322
+ * Decodes a SessionData message from the specified reader or buffer.
1323
+ * @param reader Reader or buffer to decode from
1324
+ * @param [length] Message length if known beforehand
1325
+ * @returns SessionData
1326
+ * @throws {Error} If the payload is not a reader or valid buffer
1327
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1328
+ */
1329
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SessionData;
1330
+
1331
+ /**
1332
+ * Decodes a SessionData message from the specified reader or buffer, length delimited.
1333
+ * @param reader Reader or buffer to decode from
1334
+ * @returns SessionData
1335
+ * @throws {Error} If the payload is not a reader or valid buffer
1336
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1337
+ */
1338
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SessionData;
1339
+
1340
+ /**
1341
+ * Verifies a SessionData message.
1342
+ * @param message Plain object to verify
1343
+ * @returns `null` if valid, otherwise the reason why it is not
1344
+ */
1345
+ public static verify(message: { [k: string]: any }): (string|null);
1346
+
1347
+ /**
1348
+ * Creates a SessionData message from a plain object. Also converts values to their respective internal types.
1349
+ * @param object Plain object
1350
+ * @returns SessionData
1351
+ */
1352
+ public static fromObject(object: { [k: string]: any }): SessionData;
1353
+
1354
+ /**
1355
+ * Creates a plain object from a SessionData message. Also converts values to other types if specified.
1356
+ * @param message SessionData
1357
+ * @param [options] Conversion options
1358
+ * @returns Plain object
1359
+ */
1360
+ public static toObject(message: SessionData, options?: $protobuf.IConversionOptions): { [k: string]: any };
1361
+
1362
+ /**
1363
+ * Converts this SessionData to JSON.
1364
+ * @returns JSON object
1365
+ */
1366
+ public toJSON(): { [k: string]: any };
1367
+
1368
+ /**
1369
+ * Gets the default type url for SessionData
1370
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1371
+ * @returns The default type url
1372
+ */
1373
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1374
+ }
1375
+
1376
+ /** Represents a CmdGetStatus. */
1377
+ export class CmdGetStatus implements ICmdGetStatus {
1378
+
1379
+ /**
1380
+ * Constructs a new CmdGetStatus.
1381
+ * @param [properties] Properties to set
1382
+ */
1383
+ constructor(properties?: ICmdGetStatus);
1384
+
1385
+ /**
1386
+ * Creates a new CmdGetStatus instance using the specified properties.
1387
+ * @param [properties] Properties to set
1388
+ * @returns CmdGetStatus instance
1389
+ */
1390
+ public static create(properties?: ICmdGetStatus): CmdGetStatus;
1391
+
1392
+ /**
1393
+ * Encodes the specified CmdGetStatus message. Does not implicitly {@link CmdGetStatus.verify|verify} messages.
1394
+ * @param message CmdGetStatus message or plain object to encode
1395
+ * @param [writer] Writer to encode to
1396
+ * @returns Writer
1397
+ */
1398
+ public static encode(message: ICmdGetStatus, writer?: $protobuf.Writer): $protobuf.Writer;
1399
+
1400
+ /**
1401
+ * Encodes the specified CmdGetStatus message, length delimited. Does not implicitly {@link CmdGetStatus.verify|verify} messages.
1402
+ * @param message CmdGetStatus message or plain object to encode
1403
+ * @param [writer] Writer to encode to
1404
+ * @returns Writer
1405
+ */
1406
+ public static encodeDelimited(message: ICmdGetStatus, writer?: $protobuf.Writer): $protobuf.Writer;
1407
+
1408
+ /**
1409
+ * Decodes a CmdGetStatus message from the specified reader or buffer.
1410
+ * @param reader Reader or buffer to decode from
1411
+ * @param [length] Message length if known beforehand
1412
+ * @returns CmdGetStatus
1413
+ * @throws {Error} If the payload is not a reader or valid buffer
1414
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1415
+ */
1416
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CmdGetStatus;
1417
+
1418
+ /**
1419
+ * Decodes a CmdGetStatus message from the specified reader or buffer, length delimited.
1420
+ * @param reader Reader or buffer to decode from
1421
+ * @returns CmdGetStatus
1422
+ * @throws {Error} If the payload is not a reader or valid buffer
1423
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1424
+ */
1425
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CmdGetStatus;
1426
+
1427
+ /**
1428
+ * Verifies a CmdGetStatus message.
1429
+ * @param message Plain object to verify
1430
+ * @returns `null` if valid, otherwise the reason why it is not
1431
+ */
1432
+ public static verify(message: { [k: string]: any }): (string|null);
1433
+
1434
+ /**
1435
+ * Creates a CmdGetStatus message from a plain object. Also converts values to their respective internal types.
1436
+ * @param object Plain object
1437
+ * @returns CmdGetStatus
1438
+ */
1439
+ public static fromObject(object: { [k: string]: any }): CmdGetStatus;
1440
+
1441
+ /**
1442
+ * Creates a plain object from a CmdGetStatus message. Also converts values to other types if specified.
1443
+ * @param message CmdGetStatus
1444
+ * @param [options] Conversion options
1445
+ * @returns Plain object
1446
+ */
1447
+ public static toObject(message: CmdGetStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
1448
+
1449
+ /**
1450
+ * Converts this CmdGetStatus to JSON.
1451
+ * @returns JSON object
1452
+ */
1453
+ public toJSON(): { [k: string]: any };
1454
+
1455
+ /**
1456
+ * Gets the default type url for CmdGetStatus
1457
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1458
+ * @returns The default type url
1459
+ */
1460
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1461
+ }
1462
+
1463
+ /** Represents a RespGetStatus. */
1464
+ export class RespGetStatus implements IRespGetStatus {
1465
+
1466
+ /**
1467
+ * Constructs a new RespGetStatus.
1468
+ * @param [properties] Properties to set
1469
+ */
1470
+ constructor(properties?: IRespGetStatus);
1471
+
1472
+ /** RespGetStatus status. */
1473
+ public status: Status;
1474
+
1475
+ /** RespGetStatus staState. */
1476
+ public staState: WifiStationState;
1477
+
1478
+ /** RespGetStatus failReason. */
1479
+ public failReason?: (WifiConnectFailedReason|null);
1480
+
1481
+ /** RespGetStatus connected. */
1482
+ public connected?: (IWifiConnectedState|null);
1483
+
1484
+ /** RespGetStatus state. */
1485
+ public state?: ("failReason"|"connected");
1486
+
1487
+ /**
1488
+ * Creates a new RespGetStatus instance using the specified properties.
1489
+ * @param [properties] Properties to set
1490
+ * @returns RespGetStatus instance
1491
+ */
1492
+ public static create(properties?: IRespGetStatus): RespGetStatus;
1493
+
1494
+ /**
1495
+ * Encodes the specified RespGetStatus message. Does not implicitly {@link RespGetStatus.verify|verify} messages.
1496
+ * @param message RespGetStatus message or plain object to encode
1497
+ * @param [writer] Writer to encode to
1498
+ * @returns Writer
1499
+ */
1500
+ public static encode(message: IRespGetStatus, writer?: $protobuf.Writer): $protobuf.Writer;
1501
+
1502
+ /**
1503
+ * Encodes the specified RespGetStatus message, length delimited. Does not implicitly {@link RespGetStatus.verify|verify} messages.
1504
+ * @param message RespGetStatus message or plain object to encode
1505
+ * @param [writer] Writer to encode to
1506
+ * @returns Writer
1507
+ */
1508
+ public static encodeDelimited(message: IRespGetStatus, writer?: $protobuf.Writer): $protobuf.Writer;
1509
+
1510
+ /**
1511
+ * Decodes a RespGetStatus message from the specified reader or buffer.
1512
+ * @param reader Reader or buffer to decode from
1513
+ * @param [length] Message length if known beforehand
1514
+ * @returns RespGetStatus
1515
+ * @throws {Error} If the payload is not a reader or valid buffer
1516
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1517
+ */
1518
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): RespGetStatus;
1519
+
1520
+ /**
1521
+ * Decodes a RespGetStatus message from the specified reader or buffer, length delimited.
1522
+ * @param reader Reader or buffer to decode from
1523
+ * @returns RespGetStatus
1524
+ * @throws {Error} If the payload is not a reader or valid buffer
1525
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1526
+ */
1527
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): RespGetStatus;
1528
+
1529
+ /**
1530
+ * Verifies a RespGetStatus message.
1531
+ * @param message Plain object to verify
1532
+ * @returns `null` if valid, otherwise the reason why it is not
1533
+ */
1534
+ public static verify(message: { [k: string]: any }): (string|null);
1535
+
1536
+ /**
1537
+ * Creates a RespGetStatus message from a plain object. Also converts values to their respective internal types.
1538
+ * @param object Plain object
1539
+ * @returns RespGetStatus
1540
+ */
1541
+ public static fromObject(object: { [k: string]: any }): RespGetStatus;
1542
+
1543
+ /**
1544
+ * Creates a plain object from a RespGetStatus message. Also converts values to other types if specified.
1545
+ * @param message RespGetStatus
1546
+ * @param [options] Conversion options
1547
+ * @returns Plain object
1548
+ */
1549
+ public static toObject(message: RespGetStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
1550
+
1551
+ /**
1552
+ * Converts this RespGetStatus to JSON.
1553
+ * @returns JSON object
1554
+ */
1555
+ public toJSON(): { [k: string]: any };
1556
+
1557
+ /**
1558
+ * Gets the default type url for RespGetStatus
1559
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1560
+ * @returns The default type url
1561
+ */
1562
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1563
+ }
1564
+
1565
+ /** Represents a CmdSetConfig. */
1566
+ export class CmdSetConfig implements ICmdSetConfig {
1567
+
1568
+ /**
1569
+ * Constructs a new CmdSetConfig.
1570
+ * @param [properties] Properties to set
1571
+ */
1572
+ constructor(properties?: ICmdSetConfig);
1573
+
1574
+ /** CmdSetConfig ssid. */
1575
+ public ssid: Uint8Array;
1576
+
1577
+ /** CmdSetConfig passphrase. */
1578
+ public passphrase: Uint8Array;
1579
+
1580
+ /** CmdSetConfig bssid. */
1581
+ public bssid: Uint8Array;
1582
+
1583
+ /** CmdSetConfig channel. */
1584
+ public channel: number;
1585
+
1586
+ /**
1587
+ * Creates a new CmdSetConfig instance using the specified properties.
1588
+ * @param [properties] Properties to set
1589
+ * @returns CmdSetConfig instance
1590
+ */
1591
+ public static create(properties?: ICmdSetConfig): CmdSetConfig;
1592
+
1593
+ /**
1594
+ * Encodes the specified CmdSetConfig message. Does not implicitly {@link CmdSetConfig.verify|verify} messages.
1595
+ * @param message CmdSetConfig message or plain object to encode
1596
+ * @param [writer] Writer to encode to
1597
+ * @returns Writer
1598
+ */
1599
+ public static encode(message: ICmdSetConfig, writer?: $protobuf.Writer): $protobuf.Writer;
1600
+
1601
+ /**
1602
+ * Encodes the specified CmdSetConfig message, length delimited. Does not implicitly {@link CmdSetConfig.verify|verify} messages.
1603
+ * @param message CmdSetConfig message or plain object to encode
1604
+ * @param [writer] Writer to encode to
1605
+ * @returns Writer
1606
+ */
1607
+ public static encodeDelimited(message: ICmdSetConfig, writer?: $protobuf.Writer): $protobuf.Writer;
1608
+
1609
+ /**
1610
+ * Decodes a CmdSetConfig message from the specified reader or buffer.
1611
+ * @param reader Reader or buffer to decode from
1612
+ * @param [length] Message length if known beforehand
1613
+ * @returns CmdSetConfig
1614
+ * @throws {Error} If the payload is not a reader or valid buffer
1615
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1616
+ */
1617
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CmdSetConfig;
1618
+
1619
+ /**
1620
+ * Decodes a CmdSetConfig message from the specified reader or buffer, length delimited.
1621
+ * @param reader Reader or buffer to decode from
1622
+ * @returns CmdSetConfig
1623
+ * @throws {Error} If the payload is not a reader or valid buffer
1624
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1625
+ */
1626
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CmdSetConfig;
1627
+
1628
+ /**
1629
+ * Verifies a CmdSetConfig message.
1630
+ * @param message Plain object to verify
1631
+ * @returns `null` if valid, otherwise the reason why it is not
1632
+ */
1633
+ public static verify(message: { [k: string]: any }): (string|null);
1634
+
1635
+ /**
1636
+ * Creates a CmdSetConfig message from a plain object. Also converts values to their respective internal types.
1637
+ * @param object Plain object
1638
+ * @returns CmdSetConfig
1639
+ */
1640
+ public static fromObject(object: { [k: string]: any }): CmdSetConfig;
1641
+
1642
+ /**
1643
+ * Creates a plain object from a CmdSetConfig message. Also converts values to other types if specified.
1644
+ * @param message CmdSetConfig
1645
+ * @param [options] Conversion options
1646
+ * @returns Plain object
1647
+ */
1648
+ public static toObject(message: CmdSetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
1649
+
1650
+ /**
1651
+ * Converts this CmdSetConfig to JSON.
1652
+ * @returns JSON object
1653
+ */
1654
+ public toJSON(): { [k: string]: any };
1655
+
1656
+ /**
1657
+ * Gets the default type url for CmdSetConfig
1658
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1659
+ * @returns The default type url
1660
+ */
1661
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1662
+ }
1663
+
1664
+ /** Represents a RespSetConfig. */
1665
+ export class RespSetConfig implements IRespSetConfig {
1666
+
1667
+ /**
1668
+ * Constructs a new RespSetConfig.
1669
+ * @param [properties] Properties to set
1670
+ */
1671
+ constructor(properties?: IRespSetConfig);
1672
+
1673
+ /** RespSetConfig status. */
1674
+ public status: Status;
1675
+
1676
+ /**
1677
+ * Creates a new RespSetConfig instance using the specified properties.
1678
+ * @param [properties] Properties to set
1679
+ * @returns RespSetConfig instance
1680
+ */
1681
+ public static create(properties?: IRespSetConfig): RespSetConfig;
1682
+
1683
+ /**
1684
+ * Encodes the specified RespSetConfig message. Does not implicitly {@link RespSetConfig.verify|verify} messages.
1685
+ * @param message RespSetConfig message or plain object to encode
1686
+ * @param [writer] Writer to encode to
1687
+ * @returns Writer
1688
+ */
1689
+ public static encode(message: IRespSetConfig, writer?: $protobuf.Writer): $protobuf.Writer;
1690
+
1691
+ /**
1692
+ * Encodes the specified RespSetConfig message, length delimited. Does not implicitly {@link RespSetConfig.verify|verify} messages.
1693
+ * @param message RespSetConfig message or plain object to encode
1694
+ * @param [writer] Writer to encode to
1695
+ * @returns Writer
1696
+ */
1697
+ public static encodeDelimited(message: IRespSetConfig, writer?: $protobuf.Writer): $protobuf.Writer;
1698
+
1699
+ /**
1700
+ * Decodes a RespSetConfig message from the specified reader or buffer.
1701
+ * @param reader Reader or buffer to decode from
1702
+ * @param [length] Message length if known beforehand
1703
+ * @returns RespSetConfig
1704
+ * @throws {Error} If the payload is not a reader or valid buffer
1705
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1706
+ */
1707
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): RespSetConfig;
1708
+
1709
+ /**
1710
+ * Decodes a RespSetConfig message from the specified reader or buffer, length delimited.
1711
+ * @param reader Reader or buffer to decode from
1712
+ * @returns RespSetConfig
1713
+ * @throws {Error} If the payload is not a reader or valid buffer
1714
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1715
+ */
1716
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): RespSetConfig;
1717
+
1718
+ /**
1719
+ * Verifies a RespSetConfig message.
1720
+ * @param message Plain object to verify
1721
+ * @returns `null` if valid, otherwise the reason why it is not
1722
+ */
1723
+ public static verify(message: { [k: string]: any }): (string|null);
1724
+
1725
+ /**
1726
+ * Creates a RespSetConfig message from a plain object. Also converts values to their respective internal types.
1727
+ * @param object Plain object
1728
+ * @returns RespSetConfig
1729
+ */
1730
+ public static fromObject(object: { [k: string]: any }): RespSetConfig;
1731
+
1732
+ /**
1733
+ * Creates a plain object from a RespSetConfig message. Also converts values to other types if specified.
1734
+ * @param message RespSetConfig
1735
+ * @param [options] Conversion options
1736
+ * @returns Plain object
1737
+ */
1738
+ public static toObject(message: RespSetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
1739
+
1740
+ /**
1741
+ * Converts this RespSetConfig to JSON.
1742
+ * @returns JSON object
1743
+ */
1744
+ public toJSON(): { [k: string]: any };
1745
+
1746
+ /**
1747
+ * Gets the default type url for RespSetConfig
1748
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1749
+ * @returns The default type url
1750
+ */
1751
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1752
+ }
1753
+
1754
+ /** Represents a CmdApplyConfig. */
1755
+ export class CmdApplyConfig implements ICmdApplyConfig {
1756
+
1757
+ /**
1758
+ * Constructs a new CmdApplyConfig.
1759
+ * @param [properties] Properties to set
1760
+ */
1761
+ constructor(properties?: ICmdApplyConfig);
1762
+
1763
+ /**
1764
+ * Creates a new CmdApplyConfig instance using the specified properties.
1765
+ * @param [properties] Properties to set
1766
+ * @returns CmdApplyConfig instance
1767
+ */
1768
+ public static create(properties?: ICmdApplyConfig): CmdApplyConfig;
1769
+
1770
+ /**
1771
+ * Encodes the specified CmdApplyConfig message. Does not implicitly {@link CmdApplyConfig.verify|verify} messages.
1772
+ * @param message CmdApplyConfig message or plain object to encode
1773
+ * @param [writer] Writer to encode to
1774
+ * @returns Writer
1775
+ */
1776
+ public static encode(message: ICmdApplyConfig, writer?: $protobuf.Writer): $protobuf.Writer;
1777
+
1778
+ /**
1779
+ * Encodes the specified CmdApplyConfig message, length delimited. Does not implicitly {@link CmdApplyConfig.verify|verify} messages.
1780
+ * @param message CmdApplyConfig message or plain object to encode
1781
+ * @param [writer] Writer to encode to
1782
+ * @returns Writer
1783
+ */
1784
+ public static encodeDelimited(message: ICmdApplyConfig, writer?: $protobuf.Writer): $protobuf.Writer;
1785
+
1786
+ /**
1787
+ * Decodes a CmdApplyConfig message from the specified reader or buffer.
1788
+ * @param reader Reader or buffer to decode from
1789
+ * @param [length] Message length if known beforehand
1790
+ * @returns CmdApplyConfig
1791
+ * @throws {Error} If the payload is not a reader or valid buffer
1792
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1793
+ */
1794
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CmdApplyConfig;
1795
+
1796
+ /**
1797
+ * Decodes a CmdApplyConfig message from the specified reader or buffer, length delimited.
1798
+ * @param reader Reader or buffer to decode from
1799
+ * @returns CmdApplyConfig
1800
+ * @throws {Error} If the payload is not a reader or valid buffer
1801
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1802
+ */
1803
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CmdApplyConfig;
1804
+
1805
+ /**
1806
+ * Verifies a CmdApplyConfig message.
1807
+ * @param message Plain object to verify
1808
+ * @returns `null` if valid, otherwise the reason why it is not
1809
+ */
1810
+ public static verify(message: { [k: string]: any }): (string|null);
1811
+
1812
+ /**
1813
+ * Creates a CmdApplyConfig message from a plain object. Also converts values to their respective internal types.
1814
+ * @param object Plain object
1815
+ * @returns CmdApplyConfig
1816
+ */
1817
+ public static fromObject(object: { [k: string]: any }): CmdApplyConfig;
1818
+
1819
+ /**
1820
+ * Creates a plain object from a CmdApplyConfig message. Also converts values to other types if specified.
1821
+ * @param message CmdApplyConfig
1822
+ * @param [options] Conversion options
1823
+ * @returns Plain object
1824
+ */
1825
+ public static toObject(message: CmdApplyConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
1826
+
1827
+ /**
1828
+ * Converts this CmdApplyConfig to JSON.
1829
+ * @returns JSON object
1830
+ */
1831
+ public toJSON(): { [k: string]: any };
1832
+
1833
+ /**
1834
+ * Gets the default type url for CmdApplyConfig
1835
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1836
+ * @returns The default type url
1837
+ */
1838
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1839
+ }
1840
+
1841
+ /** Represents a RespApplyConfig. */
1842
+ export class RespApplyConfig implements IRespApplyConfig {
1843
+
1844
+ /**
1845
+ * Constructs a new RespApplyConfig.
1846
+ * @param [properties] Properties to set
1847
+ */
1848
+ constructor(properties?: IRespApplyConfig);
1849
+
1850
+ /** RespApplyConfig status. */
1851
+ public status: Status;
1852
+
1853
+ /**
1854
+ * Creates a new RespApplyConfig instance using the specified properties.
1855
+ * @param [properties] Properties to set
1856
+ * @returns RespApplyConfig instance
1857
+ */
1858
+ public static create(properties?: IRespApplyConfig): RespApplyConfig;
1859
+
1860
+ /**
1861
+ * Encodes the specified RespApplyConfig message. Does not implicitly {@link RespApplyConfig.verify|verify} messages.
1862
+ * @param message RespApplyConfig message or plain object to encode
1863
+ * @param [writer] Writer to encode to
1864
+ * @returns Writer
1865
+ */
1866
+ public static encode(message: IRespApplyConfig, writer?: $protobuf.Writer): $protobuf.Writer;
1867
+
1868
+ /**
1869
+ * Encodes the specified RespApplyConfig message, length delimited. Does not implicitly {@link RespApplyConfig.verify|verify} messages.
1870
+ * @param message RespApplyConfig message or plain object to encode
1871
+ * @param [writer] Writer to encode to
1872
+ * @returns Writer
1873
+ */
1874
+ public static encodeDelimited(message: IRespApplyConfig, writer?: $protobuf.Writer): $protobuf.Writer;
1875
+
1876
+ /**
1877
+ * Decodes a RespApplyConfig message from the specified reader or buffer.
1878
+ * @param reader Reader or buffer to decode from
1879
+ * @param [length] Message length if known beforehand
1880
+ * @returns RespApplyConfig
1881
+ * @throws {Error} If the payload is not a reader or valid buffer
1882
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1883
+ */
1884
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): RespApplyConfig;
1885
+
1886
+ /**
1887
+ * Decodes a RespApplyConfig message from the specified reader or buffer, length delimited.
1888
+ * @param reader Reader or buffer to decode from
1889
+ * @returns RespApplyConfig
1890
+ * @throws {Error} If the payload is not a reader or valid buffer
1891
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1892
+ */
1893
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): RespApplyConfig;
1894
+
1895
+ /**
1896
+ * Verifies a RespApplyConfig message.
1897
+ * @param message Plain object to verify
1898
+ * @returns `null` if valid, otherwise the reason why it is not
1899
+ */
1900
+ public static verify(message: { [k: string]: any }): (string|null);
1901
+
1902
+ /**
1903
+ * Creates a RespApplyConfig message from a plain object. Also converts values to their respective internal types.
1904
+ * @param object Plain object
1905
+ * @returns RespApplyConfig
1906
+ */
1907
+ public static fromObject(object: { [k: string]: any }): RespApplyConfig;
1908
+
1909
+ /**
1910
+ * Creates a plain object from a RespApplyConfig message. Also converts values to other types if specified.
1911
+ * @param message RespApplyConfig
1912
+ * @param [options] Conversion options
1913
+ * @returns Plain object
1914
+ */
1915
+ public static toObject(message: RespApplyConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
1916
+
1917
+ /**
1918
+ * Converts this RespApplyConfig to JSON.
1919
+ * @returns JSON object
1920
+ */
1921
+ public toJSON(): { [k: string]: any };
1922
+
1923
+ /**
1924
+ * Gets the default type url for RespApplyConfig
1925
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1926
+ * @returns The default type url
1927
+ */
1928
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1929
+ }
1930
+
1931
+ /** WiFiConfigMsgType enum. */
1932
+ export enum WiFiConfigMsgType {
1933
+ TypeCmdGetStatus = 0,
1934
+ TypeRespGetStatus = 1,
1935
+ TypeCmdSetConfig = 2,
1936
+ TypeRespSetConfig = 3,
1937
+ TypeCmdApplyConfig = 4,
1938
+ TypeRespApplyConfig = 5
1939
+ }
1940
+
1941
+ /** Represents a WiFiConfigPayload. */
1942
+ export class WiFiConfigPayload implements IWiFiConfigPayload {
1943
+
1944
+ /**
1945
+ * Constructs a new WiFiConfigPayload.
1946
+ * @param [properties] Properties to set
1947
+ */
1948
+ constructor(properties?: IWiFiConfigPayload);
1949
+
1950
+ /** WiFiConfigPayload msg. */
1951
+ public msg: WiFiConfigMsgType;
1952
+
1953
+ /** WiFiConfigPayload cmdGetStatus. */
1954
+ public cmdGetStatus?: (ICmdGetStatus|null);
1955
+
1956
+ /** WiFiConfigPayload respGetStatus. */
1957
+ public respGetStatus?: (IRespGetStatus|null);
1958
+
1959
+ /** WiFiConfigPayload cmdSetConfig. */
1960
+ public cmdSetConfig?: (ICmdSetConfig|null);
1961
+
1962
+ /** WiFiConfigPayload respSetConfig. */
1963
+ public respSetConfig?: (IRespSetConfig|null);
1964
+
1965
+ /** WiFiConfigPayload cmdApplyConfig. */
1966
+ public cmdApplyConfig?: (ICmdApplyConfig|null);
1967
+
1968
+ /** WiFiConfigPayload respApplyConfig. */
1969
+ public respApplyConfig?: (IRespApplyConfig|null);
1970
+
1971
+ /** WiFiConfigPayload payload. */
1972
+ public payload?: ("cmdGetStatus"|"respGetStatus"|"cmdSetConfig"|"respSetConfig"|"cmdApplyConfig"|"respApplyConfig");
1973
+
1974
+ /**
1975
+ * Creates a new WiFiConfigPayload instance using the specified properties.
1976
+ * @param [properties] Properties to set
1977
+ * @returns WiFiConfigPayload instance
1978
+ */
1979
+ public static create(properties?: IWiFiConfigPayload): WiFiConfigPayload;
1980
+
1981
+ /**
1982
+ * Encodes the specified WiFiConfigPayload message. Does not implicitly {@link WiFiConfigPayload.verify|verify} messages.
1983
+ * @param message WiFiConfigPayload message or plain object to encode
1984
+ * @param [writer] Writer to encode to
1985
+ * @returns Writer
1986
+ */
1987
+ public static encode(message: IWiFiConfigPayload, writer?: $protobuf.Writer): $protobuf.Writer;
1988
+
1989
+ /**
1990
+ * Encodes the specified WiFiConfigPayload message, length delimited. Does not implicitly {@link WiFiConfigPayload.verify|verify} messages.
1991
+ * @param message WiFiConfigPayload message or plain object to encode
1992
+ * @param [writer] Writer to encode to
1993
+ * @returns Writer
1994
+ */
1995
+ public static encodeDelimited(message: IWiFiConfigPayload, writer?: $protobuf.Writer): $protobuf.Writer;
1996
+
1997
+ /**
1998
+ * Decodes a WiFiConfigPayload message from the specified reader or buffer.
1999
+ * @param reader Reader or buffer to decode from
2000
+ * @param [length] Message length if known beforehand
2001
+ * @returns WiFiConfigPayload
2002
+ * @throws {Error} If the payload is not a reader or valid buffer
2003
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2004
+ */
2005
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): WiFiConfigPayload;
2006
+
2007
+ /**
2008
+ * Decodes a WiFiConfigPayload message from the specified reader or buffer, length delimited.
2009
+ * @param reader Reader or buffer to decode from
2010
+ * @returns WiFiConfigPayload
2011
+ * @throws {Error} If the payload is not a reader or valid buffer
2012
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2013
+ */
2014
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): WiFiConfigPayload;
2015
+
2016
+ /**
2017
+ * Verifies a WiFiConfigPayload message.
2018
+ * @param message Plain object to verify
2019
+ * @returns `null` if valid, otherwise the reason why it is not
2020
+ */
2021
+ public static verify(message: { [k: string]: any }): (string|null);
2022
+
2023
+ /**
2024
+ * Creates a WiFiConfigPayload message from a plain object. Also converts values to their respective internal types.
2025
+ * @param object Plain object
2026
+ * @returns WiFiConfigPayload
2027
+ */
2028
+ public static fromObject(object: { [k: string]: any }): WiFiConfigPayload;
2029
+
2030
+ /**
2031
+ * Creates a plain object from a WiFiConfigPayload message. Also converts values to other types if specified.
2032
+ * @param message WiFiConfigPayload
2033
+ * @param [options] Conversion options
2034
+ * @returns Plain object
2035
+ */
2036
+ public static toObject(message: WiFiConfigPayload, options?: $protobuf.IConversionOptions): { [k: string]: any };
2037
+
2038
+ /**
2039
+ * Converts this WiFiConfigPayload to JSON.
2040
+ * @returns JSON object
2041
+ */
2042
+ public toJSON(): { [k: string]: any };
2043
+
2044
+ /**
2045
+ * Gets the default type url for WiFiConfigPayload
2046
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2047
+ * @returns The default type url
2048
+ */
2049
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2050
+ }
2051
+
2052
+ /** WifiStationState enum. */
2053
+ export enum WifiStationState {
2054
+ Connected = 0,
2055
+ Connecting = 1,
2056
+ Disconnected = 2,
2057
+ ConnectionFailed = 3
2058
+ }
2059
+
2060
+ /** WifiConnectFailedReason enum. */
2061
+ export enum WifiConnectFailedReason {
2062
+ AuthError = 0,
2063
+ NetworkNotFound = 1
2064
+ }
2065
+
2066
+ /** WifiAuthMode enum. */
2067
+ export enum WifiAuthMode {
2068
+ Open = 0,
2069
+ WEP = 1,
2070
+ WPA_PSK = 2,
2071
+ WPA2_PSK = 3,
2072
+ WPA_WPA2_PSK = 4,
2073
+ WPA2_ENTERPRISE = 5,
2074
+ WPA3_PSK = 6,
2075
+ WPA2_WPA3_PSK = 7
2076
+ }
2077
+
2078
+ /** Represents a WifiConnectedState. */
2079
+ export class WifiConnectedState implements IWifiConnectedState {
2080
+
2081
+ /**
2082
+ * Constructs a new WifiConnectedState.
2083
+ * @param [properties] Properties to set
2084
+ */
2085
+ constructor(properties?: IWifiConnectedState);
2086
+
2087
+ /** WifiConnectedState ip4Addr. */
2088
+ public ip4Addr: string;
2089
+
2090
+ /** WifiConnectedState authMode. */
2091
+ public authMode: WifiAuthMode;
2092
+
2093
+ /** WifiConnectedState ssid. */
2094
+ public ssid: Uint8Array;
2095
+
2096
+ /** WifiConnectedState bssid. */
2097
+ public bssid: Uint8Array;
2098
+
2099
+ /** WifiConnectedState channel. */
2100
+ public channel: number;
2101
+
2102
+ /**
2103
+ * Creates a new WifiConnectedState instance using the specified properties.
2104
+ * @param [properties] Properties to set
2105
+ * @returns WifiConnectedState instance
2106
+ */
2107
+ public static create(properties?: IWifiConnectedState): WifiConnectedState;
2108
+
2109
+ /**
2110
+ * Encodes the specified WifiConnectedState message. Does not implicitly {@link WifiConnectedState.verify|verify} messages.
2111
+ * @param message WifiConnectedState message or plain object to encode
2112
+ * @param [writer] Writer to encode to
2113
+ * @returns Writer
2114
+ */
2115
+ public static encode(message: IWifiConnectedState, writer?: $protobuf.Writer): $protobuf.Writer;
2116
+
2117
+ /**
2118
+ * Encodes the specified WifiConnectedState message, length delimited. Does not implicitly {@link WifiConnectedState.verify|verify} messages.
2119
+ * @param message WifiConnectedState message or plain object to encode
2120
+ * @param [writer] Writer to encode to
2121
+ * @returns Writer
2122
+ */
2123
+ public static encodeDelimited(message: IWifiConnectedState, writer?: $protobuf.Writer): $protobuf.Writer;
2124
+
2125
+ /**
2126
+ * Decodes a WifiConnectedState message from the specified reader or buffer.
2127
+ * @param reader Reader or buffer to decode from
2128
+ * @param [length] Message length if known beforehand
2129
+ * @returns WifiConnectedState
2130
+ * @throws {Error} If the payload is not a reader or valid buffer
2131
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2132
+ */
2133
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): WifiConnectedState;
2134
+
2135
+ /**
2136
+ * Decodes a WifiConnectedState message from the specified reader or buffer, length delimited.
2137
+ * @param reader Reader or buffer to decode from
2138
+ * @returns WifiConnectedState
2139
+ * @throws {Error} If the payload is not a reader or valid buffer
2140
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2141
+ */
2142
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): WifiConnectedState;
2143
+
2144
+ /**
2145
+ * Verifies a WifiConnectedState message.
2146
+ * @param message Plain object to verify
2147
+ * @returns `null` if valid, otherwise the reason why it is not
2148
+ */
2149
+ public static verify(message: { [k: string]: any }): (string|null);
2150
+
2151
+ /**
2152
+ * Creates a WifiConnectedState message from a plain object. Also converts values to their respective internal types.
2153
+ * @param object Plain object
2154
+ * @returns WifiConnectedState
2155
+ */
2156
+ public static fromObject(object: { [k: string]: any }): WifiConnectedState;
2157
+
2158
+ /**
2159
+ * Creates a plain object from a WifiConnectedState message. Also converts values to other types if specified.
2160
+ * @param message WifiConnectedState
2161
+ * @param [options] Conversion options
2162
+ * @returns Plain object
2163
+ */
2164
+ public static toObject(message: WifiConnectedState, options?: $protobuf.IConversionOptions): { [k: string]: any };
2165
+
2166
+ /**
2167
+ * Converts this WifiConnectedState to JSON.
2168
+ * @returns JSON object
2169
+ */
2170
+ public toJSON(): { [k: string]: any };
2171
+
2172
+ /**
2173
+ * Gets the default type url for WifiConnectedState
2174
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2175
+ * @returns The default type url
2176
+ */
2177
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2178
+ }
2179
+
2180
+ /** Represents a CmdCtrlReset. */
2181
+ export class CmdCtrlReset implements ICmdCtrlReset {
2182
+
2183
+ /**
2184
+ * Constructs a new CmdCtrlReset.
2185
+ * @param [properties] Properties to set
2186
+ */
2187
+ constructor(properties?: ICmdCtrlReset);
2188
+
2189
+ /**
2190
+ * Creates a new CmdCtrlReset instance using the specified properties.
2191
+ * @param [properties] Properties to set
2192
+ * @returns CmdCtrlReset instance
2193
+ */
2194
+ public static create(properties?: ICmdCtrlReset): CmdCtrlReset;
2195
+
2196
+ /**
2197
+ * Encodes the specified CmdCtrlReset message. Does not implicitly {@link CmdCtrlReset.verify|verify} messages.
2198
+ * @param message CmdCtrlReset message or plain object to encode
2199
+ * @param [writer] Writer to encode to
2200
+ * @returns Writer
2201
+ */
2202
+ public static encode(message: ICmdCtrlReset, writer?: $protobuf.Writer): $protobuf.Writer;
2203
+
2204
+ /**
2205
+ * Encodes the specified CmdCtrlReset message, length delimited. Does not implicitly {@link CmdCtrlReset.verify|verify} messages.
2206
+ * @param message CmdCtrlReset message or plain object to encode
2207
+ * @param [writer] Writer to encode to
2208
+ * @returns Writer
2209
+ */
2210
+ public static encodeDelimited(message: ICmdCtrlReset, writer?: $protobuf.Writer): $protobuf.Writer;
2211
+
2212
+ /**
2213
+ * Decodes a CmdCtrlReset message from the specified reader or buffer.
2214
+ * @param reader Reader or buffer to decode from
2215
+ * @param [length] Message length if known beforehand
2216
+ * @returns CmdCtrlReset
2217
+ * @throws {Error} If the payload is not a reader or valid buffer
2218
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2219
+ */
2220
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CmdCtrlReset;
2221
+
2222
+ /**
2223
+ * Decodes a CmdCtrlReset message from the specified reader or buffer, length delimited.
2224
+ * @param reader Reader or buffer to decode from
2225
+ * @returns CmdCtrlReset
2226
+ * @throws {Error} If the payload is not a reader or valid buffer
2227
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2228
+ */
2229
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CmdCtrlReset;
2230
+
2231
+ /**
2232
+ * Verifies a CmdCtrlReset message.
2233
+ * @param message Plain object to verify
2234
+ * @returns `null` if valid, otherwise the reason why it is not
2235
+ */
2236
+ public static verify(message: { [k: string]: any }): (string|null);
2237
+
2238
+ /**
2239
+ * Creates a CmdCtrlReset message from a plain object. Also converts values to their respective internal types.
2240
+ * @param object Plain object
2241
+ * @returns CmdCtrlReset
2242
+ */
2243
+ public static fromObject(object: { [k: string]: any }): CmdCtrlReset;
2244
+
2245
+ /**
2246
+ * Creates a plain object from a CmdCtrlReset message. Also converts values to other types if specified.
2247
+ * @param message CmdCtrlReset
2248
+ * @param [options] Conversion options
2249
+ * @returns Plain object
2250
+ */
2251
+ public static toObject(message: CmdCtrlReset, options?: $protobuf.IConversionOptions): { [k: string]: any };
2252
+
2253
+ /**
2254
+ * Converts this CmdCtrlReset to JSON.
2255
+ * @returns JSON object
2256
+ */
2257
+ public toJSON(): { [k: string]: any };
2258
+
2259
+ /**
2260
+ * Gets the default type url for CmdCtrlReset
2261
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2262
+ * @returns The default type url
2263
+ */
2264
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2265
+ }
2266
+
2267
+ /** Represents a RespCtrlReset. */
2268
+ export class RespCtrlReset implements IRespCtrlReset {
2269
+
2270
+ /**
2271
+ * Constructs a new RespCtrlReset.
2272
+ * @param [properties] Properties to set
2273
+ */
2274
+ constructor(properties?: IRespCtrlReset);
2275
+
2276
+ /**
2277
+ * Creates a new RespCtrlReset instance using the specified properties.
2278
+ * @param [properties] Properties to set
2279
+ * @returns RespCtrlReset instance
2280
+ */
2281
+ public static create(properties?: IRespCtrlReset): RespCtrlReset;
2282
+
2283
+ /**
2284
+ * Encodes the specified RespCtrlReset message. Does not implicitly {@link RespCtrlReset.verify|verify} messages.
2285
+ * @param message RespCtrlReset message or plain object to encode
2286
+ * @param [writer] Writer to encode to
2287
+ * @returns Writer
2288
+ */
2289
+ public static encode(message: IRespCtrlReset, writer?: $protobuf.Writer): $protobuf.Writer;
2290
+
2291
+ /**
2292
+ * Encodes the specified RespCtrlReset message, length delimited. Does not implicitly {@link RespCtrlReset.verify|verify} messages.
2293
+ * @param message RespCtrlReset message or plain object to encode
2294
+ * @param [writer] Writer to encode to
2295
+ * @returns Writer
2296
+ */
2297
+ public static encodeDelimited(message: IRespCtrlReset, writer?: $protobuf.Writer): $protobuf.Writer;
2298
+
2299
+ /**
2300
+ * Decodes a RespCtrlReset message from the specified reader or buffer.
2301
+ * @param reader Reader or buffer to decode from
2302
+ * @param [length] Message length if known beforehand
2303
+ * @returns RespCtrlReset
2304
+ * @throws {Error} If the payload is not a reader or valid buffer
2305
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2306
+ */
2307
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): RespCtrlReset;
2308
+
2309
+ /**
2310
+ * Decodes a RespCtrlReset message from the specified reader or buffer, length delimited.
2311
+ * @param reader Reader or buffer to decode from
2312
+ * @returns RespCtrlReset
2313
+ * @throws {Error} If the payload is not a reader or valid buffer
2314
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2315
+ */
2316
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): RespCtrlReset;
2317
+
2318
+ /**
2319
+ * Verifies a RespCtrlReset message.
2320
+ * @param message Plain object to verify
2321
+ * @returns `null` if valid, otherwise the reason why it is not
2322
+ */
2323
+ public static verify(message: { [k: string]: any }): (string|null);
2324
+
2325
+ /**
2326
+ * Creates a RespCtrlReset message from a plain object. Also converts values to their respective internal types.
2327
+ * @param object Plain object
2328
+ * @returns RespCtrlReset
2329
+ */
2330
+ public static fromObject(object: { [k: string]: any }): RespCtrlReset;
2331
+
2332
+ /**
2333
+ * Creates a plain object from a RespCtrlReset message. Also converts values to other types if specified.
2334
+ * @param message RespCtrlReset
2335
+ * @param [options] Conversion options
2336
+ * @returns Plain object
2337
+ */
2338
+ public static toObject(message: RespCtrlReset, options?: $protobuf.IConversionOptions): { [k: string]: any };
2339
+
2340
+ /**
2341
+ * Converts this RespCtrlReset to JSON.
2342
+ * @returns JSON object
2343
+ */
2344
+ public toJSON(): { [k: string]: any };
2345
+
2346
+ /**
2347
+ * Gets the default type url for RespCtrlReset
2348
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2349
+ * @returns The default type url
2350
+ */
2351
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2352
+ }
2353
+
2354
+ /** Represents a CmdCtrlReprov. */
2355
+ export class CmdCtrlReprov implements ICmdCtrlReprov {
2356
+
2357
+ /**
2358
+ * Constructs a new CmdCtrlReprov.
2359
+ * @param [properties] Properties to set
2360
+ */
2361
+ constructor(properties?: ICmdCtrlReprov);
2362
+
2363
+ /**
2364
+ * Creates a new CmdCtrlReprov instance using the specified properties.
2365
+ * @param [properties] Properties to set
2366
+ * @returns CmdCtrlReprov instance
2367
+ */
2368
+ public static create(properties?: ICmdCtrlReprov): CmdCtrlReprov;
2369
+
2370
+ /**
2371
+ * Encodes the specified CmdCtrlReprov message. Does not implicitly {@link CmdCtrlReprov.verify|verify} messages.
2372
+ * @param message CmdCtrlReprov message or plain object to encode
2373
+ * @param [writer] Writer to encode to
2374
+ * @returns Writer
2375
+ */
2376
+ public static encode(message: ICmdCtrlReprov, writer?: $protobuf.Writer): $protobuf.Writer;
2377
+
2378
+ /**
2379
+ * Encodes the specified CmdCtrlReprov message, length delimited. Does not implicitly {@link CmdCtrlReprov.verify|verify} messages.
2380
+ * @param message CmdCtrlReprov message or plain object to encode
2381
+ * @param [writer] Writer to encode to
2382
+ * @returns Writer
2383
+ */
2384
+ public static encodeDelimited(message: ICmdCtrlReprov, writer?: $protobuf.Writer): $protobuf.Writer;
2385
+
2386
+ /**
2387
+ * Decodes a CmdCtrlReprov message from the specified reader or buffer.
2388
+ * @param reader Reader or buffer to decode from
2389
+ * @param [length] Message length if known beforehand
2390
+ * @returns CmdCtrlReprov
2391
+ * @throws {Error} If the payload is not a reader or valid buffer
2392
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2393
+ */
2394
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CmdCtrlReprov;
2395
+
2396
+ /**
2397
+ * Decodes a CmdCtrlReprov message from the specified reader or buffer, length delimited.
2398
+ * @param reader Reader or buffer to decode from
2399
+ * @returns CmdCtrlReprov
2400
+ * @throws {Error} If the payload is not a reader or valid buffer
2401
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2402
+ */
2403
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CmdCtrlReprov;
2404
+
2405
+ /**
2406
+ * Verifies a CmdCtrlReprov message.
2407
+ * @param message Plain object to verify
2408
+ * @returns `null` if valid, otherwise the reason why it is not
2409
+ */
2410
+ public static verify(message: { [k: string]: any }): (string|null);
2411
+
2412
+ /**
2413
+ * Creates a CmdCtrlReprov message from a plain object. Also converts values to their respective internal types.
2414
+ * @param object Plain object
2415
+ * @returns CmdCtrlReprov
2416
+ */
2417
+ public static fromObject(object: { [k: string]: any }): CmdCtrlReprov;
2418
+
2419
+ /**
2420
+ * Creates a plain object from a CmdCtrlReprov message. Also converts values to other types if specified.
2421
+ * @param message CmdCtrlReprov
2422
+ * @param [options] Conversion options
2423
+ * @returns Plain object
2424
+ */
2425
+ public static toObject(message: CmdCtrlReprov, options?: $protobuf.IConversionOptions): { [k: string]: any };
2426
+
2427
+ /**
2428
+ * Converts this CmdCtrlReprov to JSON.
2429
+ * @returns JSON object
2430
+ */
2431
+ public toJSON(): { [k: string]: any };
2432
+
2433
+ /**
2434
+ * Gets the default type url for CmdCtrlReprov
2435
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2436
+ * @returns The default type url
2437
+ */
2438
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2439
+ }
2440
+
2441
+ /** Represents a RespCtrlReprov. */
2442
+ export class RespCtrlReprov implements IRespCtrlReprov {
2443
+
2444
+ /**
2445
+ * Constructs a new RespCtrlReprov.
2446
+ * @param [properties] Properties to set
2447
+ */
2448
+ constructor(properties?: IRespCtrlReprov);
2449
+
2450
+ /**
2451
+ * Creates a new RespCtrlReprov instance using the specified properties.
2452
+ * @param [properties] Properties to set
2453
+ * @returns RespCtrlReprov instance
2454
+ */
2455
+ public static create(properties?: IRespCtrlReprov): RespCtrlReprov;
2456
+
2457
+ /**
2458
+ * Encodes the specified RespCtrlReprov message. Does not implicitly {@link RespCtrlReprov.verify|verify} messages.
2459
+ * @param message RespCtrlReprov message or plain object to encode
2460
+ * @param [writer] Writer to encode to
2461
+ * @returns Writer
2462
+ */
2463
+ public static encode(message: IRespCtrlReprov, writer?: $protobuf.Writer): $protobuf.Writer;
2464
+
2465
+ /**
2466
+ * Encodes the specified RespCtrlReprov message, length delimited. Does not implicitly {@link RespCtrlReprov.verify|verify} messages.
2467
+ * @param message RespCtrlReprov message or plain object to encode
2468
+ * @param [writer] Writer to encode to
2469
+ * @returns Writer
2470
+ */
2471
+ public static encodeDelimited(message: IRespCtrlReprov, writer?: $protobuf.Writer): $protobuf.Writer;
2472
+
2473
+ /**
2474
+ * Decodes a RespCtrlReprov message from the specified reader or buffer.
2475
+ * @param reader Reader or buffer to decode from
2476
+ * @param [length] Message length if known beforehand
2477
+ * @returns RespCtrlReprov
2478
+ * @throws {Error} If the payload is not a reader or valid buffer
2479
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2480
+ */
2481
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): RespCtrlReprov;
2482
+
2483
+ /**
2484
+ * Decodes a RespCtrlReprov message from the specified reader or buffer, length delimited.
2485
+ * @param reader Reader or buffer to decode from
2486
+ * @returns RespCtrlReprov
2487
+ * @throws {Error} If the payload is not a reader or valid buffer
2488
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2489
+ */
2490
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): RespCtrlReprov;
2491
+
2492
+ /**
2493
+ * Verifies a RespCtrlReprov message.
2494
+ * @param message Plain object to verify
2495
+ * @returns `null` if valid, otherwise the reason why it is not
2496
+ */
2497
+ public static verify(message: { [k: string]: any }): (string|null);
2498
+
2499
+ /**
2500
+ * Creates a RespCtrlReprov message from a plain object. Also converts values to their respective internal types.
2501
+ * @param object Plain object
2502
+ * @returns RespCtrlReprov
2503
+ */
2504
+ public static fromObject(object: { [k: string]: any }): RespCtrlReprov;
2505
+
2506
+ /**
2507
+ * Creates a plain object from a RespCtrlReprov message. Also converts values to other types if specified.
2508
+ * @param message RespCtrlReprov
2509
+ * @param [options] Conversion options
2510
+ * @returns Plain object
2511
+ */
2512
+ public static toObject(message: RespCtrlReprov, options?: $protobuf.IConversionOptions): { [k: string]: any };
2513
+
2514
+ /**
2515
+ * Converts this RespCtrlReprov to JSON.
2516
+ * @returns JSON object
2517
+ */
2518
+ public toJSON(): { [k: string]: any };
2519
+
2520
+ /**
2521
+ * Gets the default type url for RespCtrlReprov
2522
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2523
+ * @returns The default type url
2524
+ */
2525
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2526
+ }
2527
+
2528
+ /** WiFiCtrlMsgType enum. */
2529
+ export enum WiFiCtrlMsgType {
2530
+ TypeCtrlReserved = 0,
2531
+ TypeCmdCtrlReset = 1,
2532
+ TypeRespCtrlReset = 2,
2533
+ TypeCmdCtrlReprov = 3,
2534
+ TypeRespCtrlReprov = 4
2535
+ }
2536
+
2537
+ /** Represents a WiFiCtrlPayload. */
2538
+ export class WiFiCtrlPayload implements IWiFiCtrlPayload {
2539
+
2540
+ /**
2541
+ * Constructs a new WiFiCtrlPayload.
2542
+ * @param [properties] Properties to set
2543
+ */
2544
+ constructor(properties?: IWiFiCtrlPayload);
2545
+
2546
+ /** WiFiCtrlPayload msg. */
2547
+ public msg: WiFiCtrlMsgType;
2548
+
2549
+ /** WiFiCtrlPayload status. */
2550
+ public status: Status;
2551
+
2552
+ /** WiFiCtrlPayload cmdCtrlReset. */
2553
+ public cmdCtrlReset?: (ICmdCtrlReset|null);
2554
+
2555
+ /** WiFiCtrlPayload respCtrlReset. */
2556
+ public respCtrlReset?: (IRespCtrlReset|null);
2557
+
2558
+ /** WiFiCtrlPayload cmdCtrlReprov. */
2559
+ public cmdCtrlReprov?: (ICmdCtrlReprov|null);
2560
+
2561
+ /** WiFiCtrlPayload respCtrlReprov. */
2562
+ public respCtrlReprov?: (IRespCtrlReprov|null);
2563
+
2564
+ /** WiFiCtrlPayload payload. */
2565
+ public payload?: ("cmdCtrlReset"|"respCtrlReset"|"cmdCtrlReprov"|"respCtrlReprov");
2566
+
2567
+ /**
2568
+ * Creates a new WiFiCtrlPayload instance using the specified properties.
2569
+ * @param [properties] Properties to set
2570
+ * @returns WiFiCtrlPayload instance
2571
+ */
2572
+ public static create(properties?: IWiFiCtrlPayload): WiFiCtrlPayload;
2573
+
2574
+ /**
2575
+ * Encodes the specified WiFiCtrlPayload message. Does not implicitly {@link WiFiCtrlPayload.verify|verify} messages.
2576
+ * @param message WiFiCtrlPayload message or plain object to encode
2577
+ * @param [writer] Writer to encode to
2578
+ * @returns Writer
2579
+ */
2580
+ public static encode(message: IWiFiCtrlPayload, writer?: $protobuf.Writer): $protobuf.Writer;
2581
+
2582
+ /**
2583
+ * Encodes the specified WiFiCtrlPayload message, length delimited. Does not implicitly {@link WiFiCtrlPayload.verify|verify} messages.
2584
+ * @param message WiFiCtrlPayload message or plain object to encode
2585
+ * @param [writer] Writer to encode to
2586
+ * @returns Writer
2587
+ */
2588
+ public static encodeDelimited(message: IWiFiCtrlPayload, writer?: $protobuf.Writer): $protobuf.Writer;
2589
+
2590
+ /**
2591
+ * Decodes a WiFiCtrlPayload message from the specified reader or buffer.
2592
+ * @param reader Reader or buffer to decode from
2593
+ * @param [length] Message length if known beforehand
2594
+ * @returns WiFiCtrlPayload
2595
+ * @throws {Error} If the payload is not a reader or valid buffer
2596
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2597
+ */
2598
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): WiFiCtrlPayload;
2599
+
2600
+ /**
2601
+ * Decodes a WiFiCtrlPayload message from the specified reader or buffer, length delimited.
2602
+ * @param reader Reader or buffer to decode from
2603
+ * @returns WiFiCtrlPayload
2604
+ * @throws {Error} If the payload is not a reader or valid buffer
2605
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2606
+ */
2607
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): WiFiCtrlPayload;
2608
+
2609
+ /**
2610
+ * Verifies a WiFiCtrlPayload message.
2611
+ * @param message Plain object to verify
2612
+ * @returns `null` if valid, otherwise the reason why it is not
2613
+ */
2614
+ public static verify(message: { [k: string]: any }): (string|null);
2615
+
2616
+ /**
2617
+ * Creates a WiFiCtrlPayload message from a plain object. Also converts values to their respective internal types.
2618
+ * @param object Plain object
2619
+ * @returns WiFiCtrlPayload
2620
+ */
2621
+ public static fromObject(object: { [k: string]: any }): WiFiCtrlPayload;
2622
+
2623
+ /**
2624
+ * Creates a plain object from a WiFiCtrlPayload message. Also converts values to other types if specified.
2625
+ * @param message WiFiCtrlPayload
2626
+ * @param [options] Conversion options
2627
+ * @returns Plain object
2628
+ */
2629
+ public static toObject(message: WiFiCtrlPayload, options?: $protobuf.IConversionOptions): { [k: string]: any };
2630
+
2631
+ /**
2632
+ * Converts this WiFiCtrlPayload to JSON.
2633
+ * @returns JSON object
2634
+ */
2635
+ public toJSON(): { [k: string]: any };
2636
+
2637
+ /**
2638
+ * Gets the default type url for WiFiCtrlPayload
2639
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2640
+ * @returns The default type url
2641
+ */
2642
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2643
+ }
2644
+
2645
+ /** Represents a CmdScanStart. */
2646
+ export class CmdScanStart implements ICmdScanStart {
2647
+
2648
+ /**
2649
+ * Constructs a new CmdScanStart.
2650
+ * @param [properties] Properties to set
2651
+ */
2652
+ constructor(properties?: ICmdScanStart);
2653
+
2654
+ /** CmdScanStart blocking. */
2655
+ public blocking: boolean;
2656
+
2657
+ /** CmdScanStart passive. */
2658
+ public passive: boolean;
2659
+
2660
+ /** CmdScanStart groupChannels. */
2661
+ public groupChannels: number;
2662
+
2663
+ /** CmdScanStart periodMs. */
2664
+ public periodMs: number;
2665
+
2666
+ /**
2667
+ * Creates a new CmdScanStart instance using the specified properties.
2668
+ * @param [properties] Properties to set
2669
+ * @returns CmdScanStart instance
2670
+ */
2671
+ public static create(properties?: ICmdScanStart): CmdScanStart;
2672
+
2673
+ /**
2674
+ * Encodes the specified CmdScanStart message. Does not implicitly {@link CmdScanStart.verify|verify} messages.
2675
+ * @param message CmdScanStart message or plain object to encode
2676
+ * @param [writer] Writer to encode to
2677
+ * @returns Writer
2678
+ */
2679
+ public static encode(message: ICmdScanStart, writer?: $protobuf.Writer): $protobuf.Writer;
2680
+
2681
+ /**
2682
+ * Encodes the specified CmdScanStart message, length delimited. Does not implicitly {@link CmdScanStart.verify|verify} messages.
2683
+ * @param message CmdScanStart message or plain object to encode
2684
+ * @param [writer] Writer to encode to
2685
+ * @returns Writer
2686
+ */
2687
+ public static encodeDelimited(message: ICmdScanStart, writer?: $protobuf.Writer): $protobuf.Writer;
2688
+
2689
+ /**
2690
+ * Decodes a CmdScanStart message from the specified reader or buffer.
2691
+ * @param reader Reader or buffer to decode from
2692
+ * @param [length] Message length if known beforehand
2693
+ * @returns CmdScanStart
2694
+ * @throws {Error} If the payload is not a reader or valid buffer
2695
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2696
+ */
2697
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CmdScanStart;
2698
+
2699
+ /**
2700
+ * Decodes a CmdScanStart message from the specified reader or buffer, length delimited.
2701
+ * @param reader Reader or buffer to decode from
2702
+ * @returns CmdScanStart
2703
+ * @throws {Error} If the payload is not a reader or valid buffer
2704
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2705
+ */
2706
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CmdScanStart;
2707
+
2708
+ /**
2709
+ * Verifies a CmdScanStart message.
2710
+ * @param message Plain object to verify
2711
+ * @returns `null` if valid, otherwise the reason why it is not
2712
+ */
2713
+ public static verify(message: { [k: string]: any }): (string|null);
2714
+
2715
+ /**
2716
+ * Creates a CmdScanStart message from a plain object. Also converts values to their respective internal types.
2717
+ * @param object Plain object
2718
+ * @returns CmdScanStart
2719
+ */
2720
+ public static fromObject(object: { [k: string]: any }): CmdScanStart;
2721
+
2722
+ /**
2723
+ * Creates a plain object from a CmdScanStart message. Also converts values to other types if specified.
2724
+ * @param message CmdScanStart
2725
+ * @param [options] Conversion options
2726
+ * @returns Plain object
2727
+ */
2728
+ public static toObject(message: CmdScanStart, options?: $protobuf.IConversionOptions): { [k: string]: any };
2729
+
2730
+ /**
2731
+ * Converts this CmdScanStart to JSON.
2732
+ * @returns JSON object
2733
+ */
2734
+ public toJSON(): { [k: string]: any };
2735
+
2736
+ /**
2737
+ * Gets the default type url for CmdScanStart
2738
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2739
+ * @returns The default type url
2740
+ */
2741
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2742
+ }
2743
+
2744
+ /** Represents a RespScanStart. */
2745
+ export class RespScanStart implements IRespScanStart {
2746
+
2747
+ /**
2748
+ * Constructs a new RespScanStart.
2749
+ * @param [properties] Properties to set
2750
+ */
2751
+ constructor(properties?: IRespScanStart);
2752
+
2753
+ /**
2754
+ * Creates a new RespScanStart instance using the specified properties.
2755
+ * @param [properties] Properties to set
2756
+ * @returns RespScanStart instance
2757
+ */
2758
+ public static create(properties?: IRespScanStart): RespScanStart;
2759
+
2760
+ /**
2761
+ * Encodes the specified RespScanStart message. Does not implicitly {@link RespScanStart.verify|verify} messages.
2762
+ * @param message RespScanStart message or plain object to encode
2763
+ * @param [writer] Writer to encode to
2764
+ * @returns Writer
2765
+ */
2766
+ public static encode(message: IRespScanStart, writer?: $protobuf.Writer): $protobuf.Writer;
2767
+
2768
+ /**
2769
+ * Encodes the specified RespScanStart message, length delimited. Does not implicitly {@link RespScanStart.verify|verify} messages.
2770
+ * @param message RespScanStart message or plain object to encode
2771
+ * @param [writer] Writer to encode to
2772
+ * @returns Writer
2773
+ */
2774
+ public static encodeDelimited(message: IRespScanStart, writer?: $protobuf.Writer): $protobuf.Writer;
2775
+
2776
+ /**
2777
+ * Decodes a RespScanStart message from the specified reader or buffer.
2778
+ * @param reader Reader or buffer to decode from
2779
+ * @param [length] Message length if known beforehand
2780
+ * @returns RespScanStart
2781
+ * @throws {Error} If the payload is not a reader or valid buffer
2782
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2783
+ */
2784
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): RespScanStart;
2785
+
2786
+ /**
2787
+ * Decodes a RespScanStart message from the specified reader or buffer, length delimited.
2788
+ * @param reader Reader or buffer to decode from
2789
+ * @returns RespScanStart
2790
+ * @throws {Error} If the payload is not a reader or valid buffer
2791
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2792
+ */
2793
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): RespScanStart;
2794
+
2795
+ /**
2796
+ * Verifies a RespScanStart message.
2797
+ * @param message Plain object to verify
2798
+ * @returns `null` if valid, otherwise the reason why it is not
2799
+ */
2800
+ public static verify(message: { [k: string]: any }): (string|null);
2801
+
2802
+ /**
2803
+ * Creates a RespScanStart message from a plain object. Also converts values to their respective internal types.
2804
+ * @param object Plain object
2805
+ * @returns RespScanStart
2806
+ */
2807
+ public static fromObject(object: { [k: string]: any }): RespScanStart;
2808
+
2809
+ /**
2810
+ * Creates a plain object from a RespScanStart message. Also converts values to other types if specified.
2811
+ * @param message RespScanStart
2812
+ * @param [options] Conversion options
2813
+ * @returns Plain object
2814
+ */
2815
+ public static toObject(message: RespScanStart, options?: $protobuf.IConversionOptions): { [k: string]: any };
2816
+
2817
+ /**
2818
+ * Converts this RespScanStart to JSON.
2819
+ * @returns JSON object
2820
+ */
2821
+ public toJSON(): { [k: string]: any };
2822
+
2823
+ /**
2824
+ * Gets the default type url for RespScanStart
2825
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2826
+ * @returns The default type url
2827
+ */
2828
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2829
+ }
2830
+
2831
+ /** Represents a CmdScanStatus. */
2832
+ export class CmdScanStatus implements ICmdScanStatus {
2833
+
2834
+ /**
2835
+ * Constructs a new CmdScanStatus.
2836
+ * @param [properties] Properties to set
2837
+ */
2838
+ constructor(properties?: ICmdScanStatus);
2839
+
2840
+ /**
2841
+ * Creates a new CmdScanStatus instance using the specified properties.
2842
+ * @param [properties] Properties to set
2843
+ * @returns CmdScanStatus instance
2844
+ */
2845
+ public static create(properties?: ICmdScanStatus): CmdScanStatus;
2846
+
2847
+ /**
2848
+ * Encodes the specified CmdScanStatus message. Does not implicitly {@link CmdScanStatus.verify|verify} messages.
2849
+ * @param message CmdScanStatus message or plain object to encode
2850
+ * @param [writer] Writer to encode to
2851
+ * @returns Writer
2852
+ */
2853
+ public static encode(message: ICmdScanStatus, writer?: $protobuf.Writer): $protobuf.Writer;
2854
+
2855
+ /**
2856
+ * Encodes the specified CmdScanStatus message, length delimited. Does not implicitly {@link CmdScanStatus.verify|verify} messages.
2857
+ * @param message CmdScanStatus message or plain object to encode
2858
+ * @param [writer] Writer to encode to
2859
+ * @returns Writer
2860
+ */
2861
+ public static encodeDelimited(message: ICmdScanStatus, writer?: $protobuf.Writer): $protobuf.Writer;
2862
+
2863
+ /**
2864
+ * Decodes a CmdScanStatus message from the specified reader or buffer.
2865
+ * @param reader Reader or buffer to decode from
2866
+ * @param [length] Message length if known beforehand
2867
+ * @returns CmdScanStatus
2868
+ * @throws {Error} If the payload is not a reader or valid buffer
2869
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2870
+ */
2871
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CmdScanStatus;
2872
+
2873
+ /**
2874
+ * Decodes a CmdScanStatus message from the specified reader or buffer, length delimited.
2875
+ * @param reader Reader or buffer to decode from
2876
+ * @returns CmdScanStatus
2877
+ * @throws {Error} If the payload is not a reader or valid buffer
2878
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2879
+ */
2880
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CmdScanStatus;
2881
+
2882
+ /**
2883
+ * Verifies a CmdScanStatus message.
2884
+ * @param message Plain object to verify
2885
+ * @returns `null` if valid, otherwise the reason why it is not
2886
+ */
2887
+ public static verify(message: { [k: string]: any }): (string|null);
2888
+
2889
+ /**
2890
+ * Creates a CmdScanStatus message from a plain object. Also converts values to their respective internal types.
2891
+ * @param object Plain object
2892
+ * @returns CmdScanStatus
2893
+ */
2894
+ public static fromObject(object: { [k: string]: any }): CmdScanStatus;
2895
+
2896
+ /**
2897
+ * Creates a plain object from a CmdScanStatus message. Also converts values to other types if specified.
2898
+ * @param message CmdScanStatus
2899
+ * @param [options] Conversion options
2900
+ * @returns Plain object
2901
+ */
2902
+ public static toObject(message: CmdScanStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
2903
+
2904
+ /**
2905
+ * Converts this CmdScanStatus to JSON.
2906
+ * @returns JSON object
2907
+ */
2908
+ public toJSON(): { [k: string]: any };
2909
+
2910
+ /**
2911
+ * Gets the default type url for CmdScanStatus
2912
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2913
+ * @returns The default type url
2914
+ */
2915
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2916
+ }
2917
+
2918
+ /** Represents a RespScanStatus. */
2919
+ export class RespScanStatus implements IRespScanStatus {
2920
+
2921
+ /**
2922
+ * Constructs a new RespScanStatus.
2923
+ * @param [properties] Properties to set
2924
+ */
2925
+ constructor(properties?: IRespScanStatus);
2926
+
2927
+ /** RespScanStatus scanFinished. */
2928
+ public scanFinished: boolean;
2929
+
2930
+ /** RespScanStatus resultCount. */
2931
+ public resultCount: number;
2932
+
2933
+ /**
2934
+ * Creates a new RespScanStatus instance using the specified properties.
2935
+ * @param [properties] Properties to set
2936
+ * @returns RespScanStatus instance
2937
+ */
2938
+ public static create(properties?: IRespScanStatus): RespScanStatus;
2939
+
2940
+ /**
2941
+ * Encodes the specified RespScanStatus message. Does not implicitly {@link RespScanStatus.verify|verify} messages.
2942
+ * @param message RespScanStatus message or plain object to encode
2943
+ * @param [writer] Writer to encode to
2944
+ * @returns Writer
2945
+ */
2946
+ public static encode(message: IRespScanStatus, writer?: $protobuf.Writer): $protobuf.Writer;
2947
+
2948
+ /**
2949
+ * Encodes the specified RespScanStatus message, length delimited. Does not implicitly {@link RespScanStatus.verify|verify} messages.
2950
+ * @param message RespScanStatus message or plain object to encode
2951
+ * @param [writer] Writer to encode to
2952
+ * @returns Writer
2953
+ */
2954
+ public static encodeDelimited(message: IRespScanStatus, writer?: $protobuf.Writer): $protobuf.Writer;
2955
+
2956
+ /**
2957
+ * Decodes a RespScanStatus message from the specified reader or buffer.
2958
+ * @param reader Reader or buffer to decode from
2959
+ * @param [length] Message length if known beforehand
2960
+ * @returns RespScanStatus
2961
+ * @throws {Error} If the payload is not a reader or valid buffer
2962
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2963
+ */
2964
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): RespScanStatus;
2965
+
2966
+ /**
2967
+ * Decodes a RespScanStatus message from the specified reader or buffer, length delimited.
2968
+ * @param reader Reader or buffer to decode from
2969
+ * @returns RespScanStatus
2970
+ * @throws {Error} If the payload is not a reader or valid buffer
2971
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2972
+ */
2973
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): RespScanStatus;
2974
+
2975
+ /**
2976
+ * Verifies a RespScanStatus message.
2977
+ * @param message Plain object to verify
2978
+ * @returns `null` if valid, otherwise the reason why it is not
2979
+ */
2980
+ public static verify(message: { [k: string]: any }): (string|null);
2981
+
2982
+ /**
2983
+ * Creates a RespScanStatus message from a plain object. Also converts values to their respective internal types.
2984
+ * @param object Plain object
2985
+ * @returns RespScanStatus
2986
+ */
2987
+ public static fromObject(object: { [k: string]: any }): RespScanStatus;
2988
+
2989
+ /**
2990
+ * Creates a plain object from a RespScanStatus message. Also converts values to other types if specified.
2991
+ * @param message RespScanStatus
2992
+ * @param [options] Conversion options
2993
+ * @returns Plain object
2994
+ */
2995
+ public static toObject(message: RespScanStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
2996
+
2997
+ /**
2998
+ * Converts this RespScanStatus to JSON.
2999
+ * @returns JSON object
3000
+ */
3001
+ public toJSON(): { [k: string]: any };
3002
+
3003
+ /**
3004
+ * Gets the default type url for RespScanStatus
3005
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3006
+ * @returns The default type url
3007
+ */
3008
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3009
+ }
3010
+
3011
+ /** Represents a CmdScanResult. */
3012
+ export class CmdScanResult implements ICmdScanResult {
3013
+
3014
+ /**
3015
+ * Constructs a new CmdScanResult.
3016
+ * @param [properties] Properties to set
3017
+ */
3018
+ constructor(properties?: ICmdScanResult);
3019
+
3020
+ /** CmdScanResult startIndex. */
3021
+ public startIndex: number;
3022
+
3023
+ /** CmdScanResult count. */
3024
+ public count: number;
3025
+
3026
+ /**
3027
+ * Creates a new CmdScanResult instance using the specified properties.
3028
+ * @param [properties] Properties to set
3029
+ * @returns CmdScanResult instance
3030
+ */
3031
+ public static create(properties?: ICmdScanResult): CmdScanResult;
3032
+
3033
+ /**
3034
+ * Encodes the specified CmdScanResult message. Does not implicitly {@link CmdScanResult.verify|verify} messages.
3035
+ * @param message CmdScanResult message or plain object to encode
3036
+ * @param [writer] Writer to encode to
3037
+ * @returns Writer
3038
+ */
3039
+ public static encode(message: ICmdScanResult, writer?: $protobuf.Writer): $protobuf.Writer;
3040
+
3041
+ /**
3042
+ * Encodes the specified CmdScanResult message, length delimited. Does not implicitly {@link CmdScanResult.verify|verify} messages.
3043
+ * @param message CmdScanResult message or plain object to encode
3044
+ * @param [writer] Writer to encode to
3045
+ * @returns Writer
3046
+ */
3047
+ public static encodeDelimited(message: ICmdScanResult, writer?: $protobuf.Writer): $protobuf.Writer;
3048
+
3049
+ /**
3050
+ * Decodes a CmdScanResult message from the specified reader or buffer.
3051
+ * @param reader Reader or buffer to decode from
3052
+ * @param [length] Message length if known beforehand
3053
+ * @returns CmdScanResult
3054
+ * @throws {Error} If the payload is not a reader or valid buffer
3055
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3056
+ */
3057
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CmdScanResult;
3058
+
3059
+ /**
3060
+ * Decodes a CmdScanResult message from the specified reader or buffer, length delimited.
3061
+ * @param reader Reader or buffer to decode from
3062
+ * @returns CmdScanResult
3063
+ * @throws {Error} If the payload is not a reader or valid buffer
3064
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3065
+ */
3066
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CmdScanResult;
3067
+
3068
+ /**
3069
+ * Verifies a CmdScanResult message.
3070
+ * @param message Plain object to verify
3071
+ * @returns `null` if valid, otherwise the reason why it is not
3072
+ */
3073
+ public static verify(message: { [k: string]: any }): (string|null);
3074
+
3075
+ /**
3076
+ * Creates a CmdScanResult message from a plain object. Also converts values to their respective internal types.
3077
+ * @param object Plain object
3078
+ * @returns CmdScanResult
3079
+ */
3080
+ public static fromObject(object: { [k: string]: any }): CmdScanResult;
3081
+
3082
+ /**
3083
+ * Creates a plain object from a CmdScanResult message. Also converts values to other types if specified.
3084
+ * @param message CmdScanResult
3085
+ * @param [options] Conversion options
3086
+ * @returns Plain object
3087
+ */
3088
+ public static toObject(message: CmdScanResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
3089
+
3090
+ /**
3091
+ * Converts this CmdScanResult to JSON.
3092
+ * @returns JSON object
3093
+ */
3094
+ public toJSON(): { [k: string]: any };
3095
+
3096
+ /**
3097
+ * Gets the default type url for CmdScanResult
3098
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3099
+ * @returns The default type url
3100
+ */
3101
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3102
+ }
3103
+
3104
+ /** Represents a WiFiScanResult. */
3105
+ export class WiFiScanResult implements IWiFiScanResult {
3106
+
3107
+ /**
3108
+ * Constructs a new WiFiScanResult.
3109
+ * @param [properties] Properties to set
3110
+ */
3111
+ constructor(properties?: IWiFiScanResult);
3112
+
3113
+ /** WiFiScanResult ssid. */
3114
+ public ssid: Uint8Array;
3115
+
3116
+ /** WiFiScanResult channel. */
3117
+ public channel: number;
3118
+
3119
+ /** WiFiScanResult rssi. */
3120
+ public rssi: number;
3121
+
3122
+ /** WiFiScanResult bssid. */
3123
+ public bssid: Uint8Array;
3124
+
3125
+ /** WiFiScanResult auth. */
3126
+ public auth: WifiAuthMode;
3127
+
3128
+ /**
3129
+ * Creates a new WiFiScanResult instance using the specified properties.
3130
+ * @param [properties] Properties to set
3131
+ * @returns WiFiScanResult instance
3132
+ */
3133
+ public static create(properties?: IWiFiScanResult): WiFiScanResult;
3134
+
3135
+ /**
3136
+ * Encodes the specified WiFiScanResult message. Does not implicitly {@link WiFiScanResult.verify|verify} messages.
3137
+ * @param message WiFiScanResult message or plain object to encode
3138
+ * @param [writer] Writer to encode to
3139
+ * @returns Writer
3140
+ */
3141
+ public static encode(message: IWiFiScanResult, writer?: $protobuf.Writer): $protobuf.Writer;
3142
+
3143
+ /**
3144
+ * Encodes the specified WiFiScanResult message, length delimited. Does not implicitly {@link WiFiScanResult.verify|verify} messages.
3145
+ * @param message WiFiScanResult message or plain object to encode
3146
+ * @param [writer] Writer to encode to
3147
+ * @returns Writer
3148
+ */
3149
+ public static encodeDelimited(message: IWiFiScanResult, writer?: $protobuf.Writer): $protobuf.Writer;
3150
+
3151
+ /**
3152
+ * Decodes a WiFiScanResult message from the specified reader or buffer.
3153
+ * @param reader Reader or buffer to decode from
3154
+ * @param [length] Message length if known beforehand
3155
+ * @returns WiFiScanResult
3156
+ * @throws {Error} If the payload is not a reader or valid buffer
3157
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3158
+ */
3159
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): WiFiScanResult;
3160
+
3161
+ /**
3162
+ * Decodes a WiFiScanResult message from the specified reader or buffer, length delimited.
3163
+ * @param reader Reader or buffer to decode from
3164
+ * @returns WiFiScanResult
3165
+ * @throws {Error} If the payload is not a reader or valid buffer
3166
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3167
+ */
3168
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): WiFiScanResult;
3169
+
3170
+ /**
3171
+ * Verifies a WiFiScanResult message.
3172
+ * @param message Plain object to verify
3173
+ * @returns `null` if valid, otherwise the reason why it is not
3174
+ */
3175
+ public static verify(message: { [k: string]: any }): (string|null);
3176
+
3177
+ /**
3178
+ * Creates a WiFiScanResult message from a plain object. Also converts values to their respective internal types.
3179
+ * @param object Plain object
3180
+ * @returns WiFiScanResult
3181
+ */
3182
+ public static fromObject(object: { [k: string]: any }): WiFiScanResult;
3183
+
3184
+ /**
3185
+ * Creates a plain object from a WiFiScanResult message. Also converts values to other types if specified.
3186
+ * @param message WiFiScanResult
3187
+ * @param [options] Conversion options
3188
+ * @returns Plain object
3189
+ */
3190
+ public static toObject(message: WiFiScanResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
3191
+
3192
+ /**
3193
+ * Converts this WiFiScanResult to JSON.
3194
+ * @returns JSON object
3195
+ */
3196
+ public toJSON(): { [k: string]: any };
3197
+
3198
+ /**
3199
+ * Gets the default type url for WiFiScanResult
3200
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3201
+ * @returns The default type url
3202
+ */
3203
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3204
+ }
3205
+
3206
+ /** Represents a RespScanResult. */
3207
+ export class RespScanResult implements IRespScanResult {
3208
+
3209
+ /**
3210
+ * Constructs a new RespScanResult.
3211
+ * @param [properties] Properties to set
3212
+ */
3213
+ constructor(properties?: IRespScanResult);
3214
+
3215
+ /** RespScanResult entries. */
3216
+ public entries: IWiFiScanResult[];
3217
+
3218
+ /**
3219
+ * Creates a new RespScanResult instance using the specified properties.
3220
+ * @param [properties] Properties to set
3221
+ * @returns RespScanResult instance
3222
+ */
3223
+ public static create(properties?: IRespScanResult): RespScanResult;
3224
+
3225
+ /**
3226
+ * Encodes the specified RespScanResult message. Does not implicitly {@link RespScanResult.verify|verify} messages.
3227
+ * @param message RespScanResult message or plain object to encode
3228
+ * @param [writer] Writer to encode to
3229
+ * @returns Writer
3230
+ */
3231
+ public static encode(message: IRespScanResult, writer?: $protobuf.Writer): $protobuf.Writer;
3232
+
3233
+ /**
3234
+ * Encodes the specified RespScanResult message, length delimited. Does not implicitly {@link RespScanResult.verify|verify} messages.
3235
+ * @param message RespScanResult message or plain object to encode
3236
+ * @param [writer] Writer to encode to
3237
+ * @returns Writer
3238
+ */
3239
+ public static encodeDelimited(message: IRespScanResult, writer?: $protobuf.Writer): $protobuf.Writer;
3240
+
3241
+ /**
3242
+ * Decodes a RespScanResult message from the specified reader or buffer.
3243
+ * @param reader Reader or buffer to decode from
3244
+ * @param [length] Message length if known beforehand
3245
+ * @returns RespScanResult
3246
+ * @throws {Error} If the payload is not a reader or valid buffer
3247
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3248
+ */
3249
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): RespScanResult;
3250
+
3251
+ /**
3252
+ * Decodes a RespScanResult message from the specified reader or buffer, length delimited.
3253
+ * @param reader Reader or buffer to decode from
3254
+ * @returns RespScanResult
3255
+ * @throws {Error} If the payload is not a reader or valid buffer
3256
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3257
+ */
3258
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): RespScanResult;
3259
+
3260
+ /**
3261
+ * Verifies a RespScanResult message.
3262
+ * @param message Plain object to verify
3263
+ * @returns `null` if valid, otherwise the reason why it is not
3264
+ */
3265
+ public static verify(message: { [k: string]: any }): (string|null);
3266
+
3267
+ /**
3268
+ * Creates a RespScanResult message from a plain object. Also converts values to their respective internal types.
3269
+ * @param object Plain object
3270
+ * @returns RespScanResult
3271
+ */
3272
+ public static fromObject(object: { [k: string]: any }): RespScanResult;
3273
+
3274
+ /**
3275
+ * Creates a plain object from a RespScanResult message. Also converts values to other types if specified.
3276
+ * @param message RespScanResult
3277
+ * @param [options] Conversion options
3278
+ * @returns Plain object
3279
+ */
3280
+ public static toObject(message: RespScanResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
3281
+
3282
+ /**
3283
+ * Converts this RespScanResult to JSON.
3284
+ * @returns JSON object
3285
+ */
3286
+ public toJSON(): { [k: string]: any };
3287
+
3288
+ /**
3289
+ * Gets the default type url for RespScanResult
3290
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3291
+ * @returns The default type url
3292
+ */
3293
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3294
+ }
3295
+
3296
+ /** WiFiScanMsgType enum. */
3297
+ export enum WiFiScanMsgType {
3298
+ TypeCmdScanStart = 0,
3299
+ TypeRespScanStart = 1,
3300
+ TypeCmdScanStatus = 2,
3301
+ TypeRespScanStatus = 3,
3302
+ TypeCmdScanResult = 4,
3303
+ TypeRespScanResult = 5
3304
+ }
3305
+
3306
+ /** Represents a WiFiScanPayload. */
3307
+ export class WiFiScanPayload implements IWiFiScanPayload {
3308
+
3309
+ /**
3310
+ * Constructs a new WiFiScanPayload.
3311
+ * @param [properties] Properties to set
3312
+ */
3313
+ constructor(properties?: IWiFiScanPayload);
3314
+
3315
+ /** WiFiScanPayload msg. */
3316
+ public msg: WiFiScanMsgType;
3317
+
3318
+ /** WiFiScanPayload status. */
3319
+ public status: Status;
3320
+
3321
+ /** WiFiScanPayload cmdScanStart. */
3322
+ public cmdScanStart?: (ICmdScanStart|null);
3323
+
3324
+ /** WiFiScanPayload respScanStart. */
3325
+ public respScanStart?: (IRespScanStart|null);
3326
+
3327
+ /** WiFiScanPayload cmdScanStatus. */
3328
+ public cmdScanStatus?: (ICmdScanStatus|null);
3329
+
3330
+ /** WiFiScanPayload respScanStatus. */
3331
+ public respScanStatus?: (IRespScanStatus|null);
3332
+
3333
+ /** WiFiScanPayload cmdScanResult. */
3334
+ public cmdScanResult?: (ICmdScanResult|null);
3335
+
3336
+ /** WiFiScanPayload respScanResult. */
3337
+ public respScanResult?: (IRespScanResult|null);
3338
+
3339
+ /** WiFiScanPayload payload. */
3340
+ public payload?: ("cmdScanStart"|"respScanStart"|"cmdScanStatus"|"respScanStatus"|"cmdScanResult"|"respScanResult");
3341
+
3342
+ /**
3343
+ * Creates a new WiFiScanPayload instance using the specified properties.
3344
+ * @param [properties] Properties to set
3345
+ * @returns WiFiScanPayload instance
3346
+ */
3347
+ public static create(properties?: IWiFiScanPayload): WiFiScanPayload;
3348
+
3349
+ /**
3350
+ * Encodes the specified WiFiScanPayload message. Does not implicitly {@link WiFiScanPayload.verify|verify} messages.
3351
+ * @param message WiFiScanPayload message or plain object to encode
3352
+ * @param [writer] Writer to encode to
3353
+ * @returns Writer
3354
+ */
3355
+ public static encode(message: IWiFiScanPayload, writer?: $protobuf.Writer): $protobuf.Writer;
3356
+
3357
+ /**
3358
+ * Encodes the specified WiFiScanPayload message, length delimited. Does not implicitly {@link WiFiScanPayload.verify|verify} messages.
3359
+ * @param message WiFiScanPayload message or plain object to encode
3360
+ * @param [writer] Writer to encode to
3361
+ * @returns Writer
3362
+ */
3363
+ public static encodeDelimited(message: IWiFiScanPayload, writer?: $protobuf.Writer): $protobuf.Writer;
3364
+
3365
+ /**
3366
+ * Decodes a WiFiScanPayload message from the specified reader or buffer.
3367
+ * @param reader Reader or buffer to decode from
3368
+ * @param [length] Message length if known beforehand
3369
+ * @returns WiFiScanPayload
3370
+ * @throws {Error} If the payload is not a reader or valid buffer
3371
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3372
+ */
3373
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): WiFiScanPayload;
3374
+
3375
+ /**
3376
+ * Decodes a WiFiScanPayload message from the specified reader or buffer, length delimited.
3377
+ * @param reader Reader or buffer to decode from
3378
+ * @returns WiFiScanPayload
3379
+ * @throws {Error} If the payload is not a reader or valid buffer
3380
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3381
+ */
3382
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): WiFiScanPayload;
3383
+
3384
+ /**
3385
+ * Verifies a WiFiScanPayload message.
3386
+ * @param message Plain object to verify
3387
+ * @returns `null` if valid, otherwise the reason why it is not
3388
+ */
3389
+ public static verify(message: { [k: string]: any }): (string|null);
3390
+
3391
+ /**
3392
+ * Creates a WiFiScanPayload message from a plain object. Also converts values to their respective internal types.
3393
+ * @param object Plain object
3394
+ * @returns WiFiScanPayload
3395
+ */
3396
+ public static fromObject(object: { [k: string]: any }): WiFiScanPayload;
3397
+
3398
+ /**
3399
+ * Creates a plain object from a WiFiScanPayload message. Also converts values to other types if specified.
3400
+ * @param message WiFiScanPayload
3401
+ * @param [options] Conversion options
3402
+ * @returns Plain object
3403
+ */
3404
+ public static toObject(message: WiFiScanPayload, options?: $protobuf.IConversionOptions): { [k: string]: any };
3405
+
3406
+ /**
3407
+ * Converts this WiFiScanPayload to JSON.
3408
+ * @returns JSON object
3409
+ */
3410
+ public toJSON(): { [k: string]: any };
3411
+
3412
+ /**
3413
+ * Gets the default type url for WiFiScanPayload
3414
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3415
+ * @returns The default type url
3416
+ */
3417
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3418
+ }