@lazycatcloud/sdk 0.1.272 → 0.1.274
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/apk_shell.d.ts +1 -1
- package/dist/common/apk_shell.d.ts.map +1 -1
- package/dist/common/apk_shell.js +40 -37
- package/dist/common/apk_shell.js.map +1 -1
- package/dist/common/box.d.ts +1 -1
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +109 -72
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +1 -1
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +55 -51
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +1 -1
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +73 -65
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/file_handler.d.ts +1 -1
- package/dist/common/file_handler.d.ts.map +1 -1
- package/dist/common/file_handler.js +139 -101
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +1 -1
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +293 -207
- package/dist/common/filetrans.js.map +1 -1
- package/dist/common/gateway.d.ts +1 -1
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +70 -46
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/media_meta.d.ts +1 -1
- package/dist/common/media_meta.d.ts.map +1 -1
- package/dist/common/media_meta.js +49 -51
- package/dist/common/media_meta.js.map +1 -1
- package/dist/common/message.d.ts +1 -1
- package/dist/common/message.d.ts.map +1 -1
- package/dist/common/message.js +102 -80
- package/dist/common/message.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +1 -1
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +87 -76
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts +1 -1
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +54 -46
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +2 -1
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +105 -77
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts +1 -1
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +105 -81
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/extentions/safe_app.d.ts +0 -1
- package/dist/extentions/safe_app.d.ts.map +1 -1
- package/dist/extentions/safe_app.js +0 -4
- package/dist/extentions/safe_app.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +563 -463
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.js +1 -1
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +10 -6
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/localdevice/client.d.ts +1 -1
- package/dist/localdevice/client.d.ts.map +1 -1
- package/dist/localdevice/client.js +14 -16
- package/dist/localdevice/client.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts +1 -1
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +44 -50
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/config.d.ts +1 -1
- package/dist/localdevice/config.d.ts.map +1 -1
- package/dist/localdevice/config.js +49 -35
- package/dist/localdevice/config.js.map +1 -1
- package/dist/localdevice/device.d.ts +1 -1
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +22 -20
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +1 -1
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +68 -50
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/local-launch.d.ts +1 -1
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +78 -56
- package/dist/localdevice/local-launch.js.map +1 -1
- package/dist/localdevice/network.d.ts +1 -1
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +14 -16
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts +1 -1
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +64 -52
- package/dist/localdevice/permission.js.map +1 -1
- package/dist/localdevice/photo.d.ts +1 -1
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +273 -198
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/sys/OS_snapshot.d.ts +1 -1
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +139 -97
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +1 -1
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +49 -39
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/btled.d.ts +1 -1
- package/dist/sys/btled.d.ts.map +1 -1
- package/dist/sys/btled.js +45 -46
- package/dist/sys/btled.js.map +1 -1
- package/dist/sys/btrfs.d.ts +1 -1
- package/dist/sys/btrfs.d.ts.map +1 -1
- package/dist/sys/btrfs.js +58 -44
- package/dist/sys/btrfs.js.map +1 -1
- package/dist/sys/devopt.d.ts +1 -1
- package/dist/sys/devopt.d.ts.map +1 -1
- package/dist/sys/devopt.js +40 -30
- package/dist/sys/devopt.js.map +1 -1
- package/dist/sys/dirmon.d.ts +1 -1
- package/dist/sys/dirmon.d.ts.map +1 -1
- package/dist/sys/dirmon.js +28 -32
- package/dist/sys/dirmon.js.map +1 -1
- package/dist/sys/event.d.ts +1 -1
- package/dist/sys/event.d.ts.map +1 -1
- package/dist/sys/event.js +53 -49
- package/dist/sys/event.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +1 -1
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +121 -92
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +1 -1
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +32 -30
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/installer.d.ts +1 -1
- package/dist/sys/installer.d.ts.map +1 -1
- package/dist/sys/installer.js +71 -64
- package/dist/sys/installer.js.map +1 -1
- package/dist/sys/network_manager.d.ts +53 -1
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +232 -67
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +1 -1
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +244 -159
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +1 -1
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +262 -175
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +1 -1
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +71 -55
- package/dist/sys/snapd.js.map +1 -1
- package/dist/sys/version.d.ts +1 -1
- package/dist/sys/version.d.ts.map +1 -1
- package/dist/sys/version.js +10 -14
- package/dist/sys/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/lanforward/lanforward.d.ts +0 -99
- package/dist/lanforward/lanforward.d.ts.map +0 -1
- package/dist/lanforward/lanforward.js +0 -254
- package/dist/lanforward/lanforward.js.map +0 -1
- package/dist/ssdp/ssdp.d.ts +0 -113
- package/dist/ssdp/ssdp.d.ts.map +0 -1
- package/dist/ssdp/ssdp.js +0 -292
- package/dist/ssdp/ssdp.js.map +0 -1
- package/dist/sys/OS_daemon.d.ts +0 -111
- package/dist/sys/OS_daemon.d.ts.map +0 -1
- package/dist/sys/OS_daemon.js +0 -281
- package/dist/sys/OS_daemon.js.map +0 -1
- package/dist/sys/box-status.d.ts +0 -572
- package/dist/sys/box-status.d.ts.map +0 -1
- package/dist/sys/box-status.js +0 -911
- package/dist/sys/box-status.js.map +0 -1
|
@@ -206,49 +206,49 @@ exports.RegisterBoxServiceRequest = {
|
|
|
206
206
|
const tag = reader.uint32();
|
|
207
207
|
switch (tag >>> 3) {
|
|
208
208
|
case 1:
|
|
209
|
-
if (tag
|
|
209
|
+
if (tag !== 10) {
|
|
210
210
|
break;
|
|
211
211
|
}
|
|
212
212
|
message.serviceName = reader.string();
|
|
213
213
|
continue;
|
|
214
214
|
case 2:
|
|
215
|
-
if (tag
|
|
215
|
+
if (tag !== 18) {
|
|
216
216
|
break;
|
|
217
217
|
}
|
|
218
218
|
message.serviceNetwork = reader.string();
|
|
219
219
|
continue;
|
|
220
220
|
case 3:
|
|
221
|
-
if (tag
|
|
221
|
+
if (tag !== 26) {
|
|
222
222
|
break;
|
|
223
223
|
}
|
|
224
224
|
message.serviceAddress = reader.string();
|
|
225
225
|
continue;
|
|
226
226
|
case 4:
|
|
227
|
-
if (tag
|
|
227
|
+
if (tag !== 34) {
|
|
228
228
|
break;
|
|
229
229
|
}
|
|
230
230
|
message.description = reader.string();
|
|
231
231
|
continue;
|
|
232
232
|
case 6:
|
|
233
|
-
if (tag
|
|
233
|
+
if (tag !== 50) {
|
|
234
234
|
break;
|
|
235
235
|
}
|
|
236
236
|
message.extraInfo = reader.string();
|
|
237
237
|
continue;
|
|
238
238
|
case 7:
|
|
239
|
-
if (tag
|
|
239
|
+
if (tag !== 56) {
|
|
240
240
|
break;
|
|
241
241
|
}
|
|
242
242
|
message.requireDialerRole = reader.int32();
|
|
243
243
|
continue;
|
|
244
244
|
case 8:
|
|
245
|
-
if (tag
|
|
245
|
+
if (tag !== 64) {
|
|
246
246
|
break;
|
|
247
247
|
}
|
|
248
248
|
message.requireTrustDev = reader.bool();
|
|
249
249
|
continue;
|
|
250
250
|
}
|
|
251
|
-
if ((tag & 7)
|
|
251
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
252
252
|
break;
|
|
253
253
|
}
|
|
254
254
|
reader.skipType(tag & 7);
|
|
@@ -268,13 +268,27 @@ exports.RegisterBoxServiceRequest = {
|
|
|
268
268
|
},
|
|
269
269
|
toJSON(message) {
|
|
270
270
|
const obj = {};
|
|
271
|
-
message.serviceName !==
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
message.
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
message.
|
|
271
|
+
if (message.serviceName !== "") {
|
|
272
|
+
obj.serviceName = message.serviceName;
|
|
273
|
+
}
|
|
274
|
+
if (message.serviceNetwork !== "") {
|
|
275
|
+
obj.serviceNetwork = message.serviceNetwork;
|
|
276
|
+
}
|
|
277
|
+
if (message.serviceAddress !== "") {
|
|
278
|
+
obj.serviceAddress = message.serviceAddress;
|
|
279
|
+
}
|
|
280
|
+
if (message.description !== "") {
|
|
281
|
+
obj.description = message.description;
|
|
282
|
+
}
|
|
283
|
+
if (message.extraInfo !== "") {
|
|
284
|
+
obj.extraInfo = message.extraInfo;
|
|
285
|
+
}
|
|
286
|
+
if (message.requireDialerRole !== 0) {
|
|
287
|
+
obj.requireDialerRole = dialerRoleToJSON(message.requireDialerRole);
|
|
288
|
+
}
|
|
289
|
+
if (message.requireTrustDev === true) {
|
|
290
|
+
obj.requireTrustDev = message.requireTrustDev;
|
|
291
|
+
}
|
|
278
292
|
return obj;
|
|
279
293
|
},
|
|
280
294
|
create(base) {
|
|
@@ -308,7 +322,7 @@ exports.RegisterBoxServiceReply = {
|
|
|
308
322
|
const tag = reader.uint32();
|
|
309
323
|
switch (tag >>> 3) {
|
|
310
324
|
}
|
|
311
|
-
if ((tag & 7)
|
|
325
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
312
326
|
break;
|
|
313
327
|
}
|
|
314
328
|
reader.skipType(tag & 7);
|
|
@@ -348,13 +362,13 @@ exports.EmitBoxServiceChangedRequest = {
|
|
|
348
362
|
const tag = reader.uint32();
|
|
349
363
|
switch (tag >>> 3) {
|
|
350
364
|
case 1:
|
|
351
|
-
if (tag
|
|
365
|
+
if (tag !== 10) {
|
|
352
366
|
break;
|
|
353
367
|
}
|
|
354
368
|
message.serviceName = reader.string();
|
|
355
369
|
continue;
|
|
356
370
|
}
|
|
357
|
-
if ((tag & 7)
|
|
371
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
358
372
|
break;
|
|
359
373
|
}
|
|
360
374
|
reader.skipType(tag & 7);
|
|
@@ -366,7 +380,9 @@ exports.EmitBoxServiceChangedRequest = {
|
|
|
366
380
|
},
|
|
367
381
|
toJSON(message) {
|
|
368
382
|
const obj = {};
|
|
369
|
-
message.serviceName !==
|
|
383
|
+
if (message.serviceName !== "") {
|
|
384
|
+
obj.serviceName = message.serviceName;
|
|
385
|
+
}
|
|
370
386
|
return obj;
|
|
371
387
|
},
|
|
372
388
|
create(base) {
|
|
@@ -403,25 +419,25 @@ exports.QueryBoxServicePeerCredRequest = {
|
|
|
403
419
|
const tag = reader.uint32();
|
|
404
420
|
switch (tag >>> 3) {
|
|
405
421
|
case 1:
|
|
406
|
-
if (tag
|
|
422
|
+
if (tag !== 10) {
|
|
407
423
|
break;
|
|
408
424
|
}
|
|
409
425
|
message.remoteAddr = reader.string();
|
|
410
426
|
continue;
|
|
411
427
|
case 2:
|
|
412
|
-
if (tag
|
|
428
|
+
if (tag !== 18) {
|
|
413
429
|
break;
|
|
414
430
|
}
|
|
415
431
|
message.localAddr = reader.string();
|
|
416
432
|
continue;
|
|
417
433
|
case 3:
|
|
418
|
-
if (tag
|
|
434
|
+
if (tag !== 26) {
|
|
419
435
|
break;
|
|
420
436
|
}
|
|
421
437
|
message.protocol = reader.string();
|
|
422
438
|
continue;
|
|
423
439
|
}
|
|
424
|
-
if ((tag & 7)
|
|
440
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
425
441
|
break;
|
|
426
442
|
}
|
|
427
443
|
reader.skipType(tag & 7);
|
|
@@ -437,9 +453,15 @@ exports.QueryBoxServicePeerCredRequest = {
|
|
|
437
453
|
},
|
|
438
454
|
toJSON(message) {
|
|
439
455
|
const obj = {};
|
|
440
|
-
message.remoteAddr !==
|
|
441
|
-
|
|
442
|
-
|
|
456
|
+
if (message.remoteAddr !== "") {
|
|
457
|
+
obj.remoteAddr = message.remoteAddr;
|
|
458
|
+
}
|
|
459
|
+
if (message.localAddr !== "") {
|
|
460
|
+
obj.localAddr = message.localAddr;
|
|
461
|
+
}
|
|
462
|
+
if (message.protocol !== "") {
|
|
463
|
+
obj.protocol = message.protocol;
|
|
464
|
+
}
|
|
443
465
|
return obj;
|
|
444
466
|
},
|
|
445
467
|
create(base) {
|
|
@@ -487,43 +509,43 @@ exports.QueryBoxServicePeerCredResponse = {
|
|
|
487
509
|
const tag = reader.uint32();
|
|
488
510
|
switch (tag >>> 3) {
|
|
489
511
|
case 1:
|
|
490
|
-
if (tag
|
|
512
|
+
if (tag !== 10) {
|
|
491
513
|
break;
|
|
492
514
|
}
|
|
493
515
|
message.uid = reader.string();
|
|
494
516
|
continue;
|
|
495
517
|
case 3:
|
|
496
|
-
if (tag
|
|
518
|
+
if (tag !== 26) {
|
|
497
519
|
break;
|
|
498
520
|
}
|
|
499
521
|
message.deviceVersion = reader.string();
|
|
500
522
|
continue;
|
|
501
523
|
case 4:
|
|
502
|
-
if (tag
|
|
524
|
+
if (tag !== 34) {
|
|
503
525
|
break;
|
|
504
526
|
}
|
|
505
527
|
message.virtualIp = reader.string();
|
|
506
528
|
continue;
|
|
507
529
|
case 5:
|
|
508
|
-
if (tag
|
|
530
|
+
if (tag !== 42) {
|
|
509
531
|
break;
|
|
510
532
|
}
|
|
511
533
|
message.peerId = reader.string();
|
|
512
534
|
continue;
|
|
513
535
|
case 6:
|
|
514
|
-
if (tag
|
|
536
|
+
if (tag !== 48) {
|
|
515
537
|
break;
|
|
516
538
|
}
|
|
517
539
|
message.isLogined = reader.bool();
|
|
518
540
|
continue;
|
|
519
541
|
case 7:
|
|
520
|
-
if (tag
|
|
542
|
+
if (tag !== 56) {
|
|
521
543
|
break;
|
|
522
544
|
}
|
|
523
545
|
message.isTrustDev = reader.bool();
|
|
524
546
|
continue;
|
|
525
547
|
}
|
|
526
|
-
if ((tag & 7)
|
|
548
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
527
549
|
break;
|
|
528
550
|
}
|
|
529
551
|
reader.skipType(tag & 7);
|
|
@@ -542,12 +564,24 @@ exports.QueryBoxServicePeerCredResponse = {
|
|
|
542
564
|
},
|
|
543
565
|
toJSON(message) {
|
|
544
566
|
const obj = {};
|
|
545
|
-
message.uid !==
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
message.
|
|
549
|
-
|
|
550
|
-
|
|
567
|
+
if (message.uid !== "") {
|
|
568
|
+
obj.uid = message.uid;
|
|
569
|
+
}
|
|
570
|
+
if (message.deviceVersion !== "") {
|
|
571
|
+
obj.deviceVersion = message.deviceVersion;
|
|
572
|
+
}
|
|
573
|
+
if (message.virtualIp !== "") {
|
|
574
|
+
obj.virtualIp = message.virtualIp;
|
|
575
|
+
}
|
|
576
|
+
if (message.peerId !== "") {
|
|
577
|
+
obj.peerId = message.peerId;
|
|
578
|
+
}
|
|
579
|
+
if (message.isLogined === true) {
|
|
580
|
+
obj.isLogined = message.isLogined;
|
|
581
|
+
}
|
|
582
|
+
if (message.isTrustDev === true) {
|
|
583
|
+
obj.isTrustDev = message.isTrustDev;
|
|
584
|
+
}
|
|
551
585
|
return obj;
|
|
552
586
|
},
|
|
553
587
|
create(base) {
|
|
@@ -586,19 +620,19 @@ exports.RemoteSocksRequest = {
|
|
|
586
620
|
const tag = reader.uint32();
|
|
587
621
|
switch (tag >>> 3) {
|
|
588
622
|
case 1:
|
|
589
|
-
if (tag
|
|
623
|
+
if (tag !== 8) {
|
|
590
624
|
break;
|
|
591
625
|
}
|
|
592
626
|
message.locationType = reader.int32();
|
|
593
627
|
continue;
|
|
594
628
|
case 2:
|
|
595
|
-
if (tag
|
|
629
|
+
if (tag !== 18) {
|
|
596
630
|
break;
|
|
597
631
|
}
|
|
598
632
|
message.target = reader.string();
|
|
599
633
|
continue;
|
|
600
634
|
}
|
|
601
|
-
if ((tag & 7)
|
|
635
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
602
636
|
break;
|
|
603
637
|
}
|
|
604
638
|
reader.skipType(tag & 7);
|
|
@@ -613,9 +647,12 @@ exports.RemoteSocksRequest = {
|
|
|
613
647
|
},
|
|
614
648
|
toJSON(message) {
|
|
615
649
|
const obj = {};
|
|
616
|
-
message.locationType !==
|
|
617
|
-
|
|
618
|
-
|
|
650
|
+
if (message.locationType !== 0) {
|
|
651
|
+
obj.locationType = remoteSocksRequest_LocationTypeToJSON(message.locationType);
|
|
652
|
+
}
|
|
653
|
+
if (message.target !== "") {
|
|
654
|
+
obj.target = message.target;
|
|
655
|
+
}
|
|
619
656
|
return obj;
|
|
620
657
|
},
|
|
621
658
|
create(base) {
|
|
@@ -647,13 +684,13 @@ exports.RemoteSocksReply = {
|
|
|
647
684
|
const tag = reader.uint32();
|
|
648
685
|
switch (tag >>> 3) {
|
|
649
686
|
case 1:
|
|
650
|
-
if (tag
|
|
687
|
+
if (tag !== 10) {
|
|
651
688
|
break;
|
|
652
689
|
}
|
|
653
690
|
message.serverUrl = reader.string();
|
|
654
691
|
continue;
|
|
655
692
|
}
|
|
656
|
-
if ((tag & 7)
|
|
693
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
657
694
|
break;
|
|
658
695
|
}
|
|
659
696
|
reader.skipType(tag & 7);
|
|
@@ -665,7 +702,9 @@ exports.RemoteSocksReply = {
|
|
|
665
702
|
},
|
|
666
703
|
toJSON(message) {
|
|
667
704
|
const obj = {};
|
|
668
|
-
message.serverUrl !==
|
|
705
|
+
if (message.serverUrl !== "") {
|
|
706
|
+
obj.serverUrl = message.serverUrl;
|
|
707
|
+
}
|
|
669
708
|
return obj;
|
|
670
709
|
},
|
|
671
710
|
create(base) {
|
|
@@ -696,13 +735,13 @@ exports.ListUsersReply = {
|
|
|
696
735
|
const tag = reader.uint32();
|
|
697
736
|
switch (tag >>> 3) {
|
|
698
737
|
case 1:
|
|
699
|
-
if (tag
|
|
738
|
+
if (tag !== 10) {
|
|
700
739
|
break;
|
|
701
740
|
}
|
|
702
741
|
message.uids.push(reader.string());
|
|
703
742
|
continue;
|
|
704
743
|
}
|
|
705
|
-
if ((tag & 7)
|
|
744
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
706
745
|
break;
|
|
707
746
|
}
|
|
708
747
|
reader.skipType(tag & 7);
|
|
@@ -713,12 +752,10 @@ exports.ListUsersReply = {
|
|
|
713
752
|
return { uids: Array.isArray(object === null || object === void 0 ? void 0 : object.uids) ? object.uids.map((e) => String(e)) : [] };
|
|
714
753
|
},
|
|
715
754
|
toJSON(message) {
|
|
755
|
+
var _a;
|
|
716
756
|
const obj = {};
|
|
717
|
-
if (message.uids) {
|
|
718
|
-
obj.uids = message.uids
|
|
719
|
-
}
|
|
720
|
-
else {
|
|
721
|
-
obj.uids = [];
|
|
757
|
+
if ((_a = message.uids) === null || _a === void 0 ? void 0 : _a.length) {
|
|
758
|
+
obj.uids = message.uids;
|
|
722
759
|
}
|
|
723
760
|
return obj;
|
|
724
761
|
},
|
|
@@ -762,37 +799,37 @@ exports.HServerInfo = {
|
|
|
762
799
|
const tag = reader.uint32();
|
|
763
800
|
switch (tag >>> 3) {
|
|
764
801
|
case 1:
|
|
765
|
-
if (tag
|
|
802
|
+
if (tag !== 10) {
|
|
766
803
|
break;
|
|
767
804
|
}
|
|
768
805
|
message.originServer = reader.string();
|
|
769
806
|
continue;
|
|
770
807
|
case 2:
|
|
771
|
-
if (tag
|
|
808
|
+
if (tag !== 18) {
|
|
772
809
|
break;
|
|
773
810
|
}
|
|
774
811
|
message.virtualIp = reader.string();
|
|
775
812
|
continue;
|
|
776
813
|
case 3:
|
|
777
|
-
if (tag
|
|
814
|
+
if (tag !== 26) {
|
|
778
815
|
break;
|
|
779
816
|
}
|
|
780
817
|
message.boxId = reader.string();
|
|
781
818
|
continue;
|
|
782
819
|
case 4:
|
|
783
|
-
if (tag
|
|
820
|
+
if (tag !== 34) {
|
|
784
821
|
break;
|
|
785
822
|
}
|
|
786
823
|
message.boxName = reader.string();
|
|
787
824
|
continue;
|
|
788
825
|
case 5:
|
|
789
|
-
if (tag
|
|
826
|
+
if (tag !== 42) {
|
|
790
827
|
break;
|
|
791
828
|
}
|
|
792
829
|
message.boxDomain = reader.string();
|
|
793
830
|
continue;
|
|
794
831
|
}
|
|
795
|
-
if ((tag & 7)
|
|
832
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
796
833
|
break;
|
|
797
834
|
}
|
|
798
835
|
reader.skipType(tag & 7);
|
|
@@ -810,11 +847,21 @@ exports.HServerInfo = {
|
|
|
810
847
|
},
|
|
811
848
|
toJSON(message) {
|
|
812
849
|
const obj = {};
|
|
813
|
-
message.originServer !==
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
message.
|
|
817
|
-
|
|
850
|
+
if (message.originServer !== "") {
|
|
851
|
+
obj.originServer = message.originServer;
|
|
852
|
+
}
|
|
853
|
+
if (message.virtualIp !== "") {
|
|
854
|
+
obj.virtualIp = message.virtualIp;
|
|
855
|
+
}
|
|
856
|
+
if (message.boxId !== "") {
|
|
857
|
+
obj.boxId = message.boxId;
|
|
858
|
+
}
|
|
859
|
+
if (message.boxName !== "") {
|
|
860
|
+
obj.boxName = message.boxName;
|
|
861
|
+
}
|
|
862
|
+
if (message.boxDomain !== "") {
|
|
863
|
+
obj.boxDomain = message.boxDomain;
|
|
864
|
+
}
|
|
818
865
|
return obj;
|
|
819
866
|
},
|
|
820
867
|
create(base) {
|
|
@@ -855,25 +902,25 @@ exports.Device = {
|
|
|
855
902
|
const tag = reader.uint32();
|
|
856
903
|
switch (tag >>> 3) {
|
|
857
904
|
case 1:
|
|
858
|
-
if (tag
|
|
905
|
+
if (tag !== 10) {
|
|
859
906
|
break;
|
|
860
907
|
}
|
|
861
908
|
message.peerId = reader.string();
|
|
862
909
|
continue;
|
|
863
910
|
case 2:
|
|
864
|
-
if (tag
|
|
911
|
+
if (tag !== 16) {
|
|
865
912
|
break;
|
|
866
913
|
}
|
|
867
914
|
message.isOnline = reader.bool();
|
|
868
915
|
continue;
|
|
869
916
|
case 6:
|
|
870
|
-
if (tag
|
|
917
|
+
if (tag !== 50) {
|
|
871
918
|
break;
|
|
872
919
|
}
|
|
873
920
|
message.bindingTime = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
874
921
|
continue;
|
|
875
922
|
}
|
|
876
|
-
if ((tag & 7)
|
|
923
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
877
924
|
break;
|
|
878
925
|
}
|
|
879
926
|
reader.skipType(tag & 7);
|
|
@@ -889,9 +936,15 @@ exports.Device = {
|
|
|
889
936
|
},
|
|
890
937
|
toJSON(message) {
|
|
891
938
|
const obj = {};
|
|
892
|
-
message.peerId !==
|
|
893
|
-
|
|
894
|
-
|
|
939
|
+
if (message.peerId !== "") {
|
|
940
|
+
obj.peerId = message.peerId;
|
|
941
|
+
}
|
|
942
|
+
if (message.isOnline === true) {
|
|
943
|
+
obj.isOnline = message.isOnline;
|
|
944
|
+
}
|
|
945
|
+
if (message.bindingTime !== undefined) {
|
|
946
|
+
obj.bindingTime = message.bindingTime.toISOString();
|
|
947
|
+
}
|
|
895
948
|
return obj;
|
|
896
949
|
},
|
|
897
950
|
create(base) {
|
|
@@ -924,13 +977,13 @@ exports.ListEndDeviceRequest = {
|
|
|
924
977
|
const tag = reader.uint32();
|
|
925
978
|
switch (tag >>> 3) {
|
|
926
979
|
case 1:
|
|
927
|
-
if (tag
|
|
980
|
+
if (tag !== 10) {
|
|
928
981
|
break;
|
|
929
982
|
}
|
|
930
983
|
message.uid = reader.string();
|
|
931
984
|
continue;
|
|
932
985
|
}
|
|
933
|
-
if ((tag & 7)
|
|
986
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
934
987
|
break;
|
|
935
988
|
}
|
|
936
989
|
reader.skipType(tag & 7);
|
|
@@ -942,7 +995,9 @@ exports.ListEndDeviceRequest = {
|
|
|
942
995
|
},
|
|
943
996
|
toJSON(message) {
|
|
944
997
|
const obj = {};
|
|
945
|
-
message.uid !==
|
|
998
|
+
if (message.uid !== "") {
|
|
999
|
+
obj.uid = message.uid;
|
|
1000
|
+
}
|
|
946
1001
|
return obj;
|
|
947
1002
|
},
|
|
948
1003
|
create(base) {
|
|
@@ -973,13 +1028,13 @@ exports.ListEndDeviceReply = {
|
|
|
973
1028
|
const tag = reader.uint32();
|
|
974
1029
|
switch (tag >>> 3) {
|
|
975
1030
|
case 1:
|
|
976
|
-
if (tag
|
|
1031
|
+
if (tag !== 10) {
|
|
977
1032
|
break;
|
|
978
1033
|
}
|
|
979
1034
|
message.devices.push(exports.Device.decode(reader, reader.uint32()));
|
|
980
1035
|
continue;
|
|
981
1036
|
}
|
|
982
|
-
if ((tag & 7)
|
|
1037
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
983
1038
|
break;
|
|
984
1039
|
}
|
|
985
1040
|
reader.skipType(tag & 7);
|
|
@@ -990,12 +1045,10 @@ exports.ListEndDeviceReply = {
|
|
|
990
1045
|
return { devices: Array.isArray(object === null || object === void 0 ? void 0 : object.devices) ? object.devices.map((e) => exports.Device.fromJSON(e)) : [] };
|
|
991
1046
|
},
|
|
992
1047
|
toJSON(message) {
|
|
1048
|
+
var _a;
|
|
993
1049
|
const obj = {};
|
|
994
|
-
if (message.devices) {
|
|
995
|
-
obj.devices = message.devices.map((e) =>
|
|
996
|
-
}
|
|
997
|
-
else {
|
|
998
|
-
obj.devices = [];
|
|
1050
|
+
if ((_a = message.devices) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1051
|
+
obj.devices = message.devices.map((e) => exports.Device.toJSON(e));
|
|
999
1052
|
}
|
|
1000
1053
|
return obj;
|
|
1001
1054
|
},
|
|
@@ -1027,13 +1080,13 @@ exports.UserID = {
|
|
|
1027
1080
|
const tag = reader.uint32();
|
|
1028
1081
|
switch (tag >>> 3) {
|
|
1029
1082
|
case 1:
|
|
1030
|
-
if (tag
|
|
1083
|
+
if (tag !== 10) {
|
|
1031
1084
|
break;
|
|
1032
1085
|
}
|
|
1033
1086
|
message.uid = reader.string();
|
|
1034
1087
|
continue;
|
|
1035
1088
|
}
|
|
1036
|
-
if ((tag & 7)
|
|
1089
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1037
1090
|
break;
|
|
1038
1091
|
}
|
|
1039
1092
|
reader.skipType(tag & 7);
|
|
@@ -1045,7 +1098,9 @@ exports.UserID = {
|
|
|
1045
1098
|
},
|
|
1046
1099
|
toJSON(message) {
|
|
1047
1100
|
const obj = {};
|
|
1048
|
-
message.uid !==
|
|
1101
|
+
if (message.uid !== "") {
|
|
1102
|
+
obj.uid = message.uid;
|
|
1103
|
+
}
|
|
1049
1104
|
return obj;
|
|
1050
1105
|
},
|
|
1051
1106
|
create(base) {
|
|
@@ -1079,19 +1134,19 @@ exports.ChangeRoleReqeust = {
|
|
|
1079
1134
|
const tag = reader.uint32();
|
|
1080
1135
|
switch (tag >>> 3) {
|
|
1081
1136
|
case 1:
|
|
1082
|
-
if (tag
|
|
1137
|
+
if (tag !== 10) {
|
|
1083
1138
|
break;
|
|
1084
1139
|
}
|
|
1085
1140
|
message.uid = reader.string();
|
|
1086
1141
|
continue;
|
|
1087
1142
|
case 2:
|
|
1088
|
-
if (tag
|
|
1143
|
+
if (tag !== 16) {
|
|
1089
1144
|
break;
|
|
1090
1145
|
}
|
|
1091
1146
|
message.role = reader.int32();
|
|
1092
1147
|
continue;
|
|
1093
1148
|
}
|
|
1094
|
-
if ((tag & 7)
|
|
1149
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1095
1150
|
break;
|
|
1096
1151
|
}
|
|
1097
1152
|
reader.skipType(tag & 7);
|
|
@@ -1106,8 +1161,12 @@ exports.ChangeRoleReqeust = {
|
|
|
1106
1161
|
},
|
|
1107
1162
|
toJSON(message) {
|
|
1108
1163
|
const obj = {};
|
|
1109
|
-
message.uid !==
|
|
1110
|
-
|
|
1164
|
+
if (message.uid !== "") {
|
|
1165
|
+
obj.uid = message.uid;
|
|
1166
|
+
}
|
|
1167
|
+
if (message.role !== 0) {
|
|
1168
|
+
obj.role = roleToJSON(message.role);
|
|
1169
|
+
}
|
|
1111
1170
|
return obj;
|
|
1112
1171
|
},
|
|
1113
1172
|
create(base) {
|
|
@@ -1142,19 +1201,19 @@ exports.QueryRoleReply = {
|
|
|
1142
1201
|
const tag = reader.uint32();
|
|
1143
1202
|
switch (tag >>> 3) {
|
|
1144
1203
|
case 1:
|
|
1145
|
-
if (tag
|
|
1204
|
+
if (tag !== 10) {
|
|
1146
1205
|
break;
|
|
1147
1206
|
}
|
|
1148
1207
|
message.uid = reader.string();
|
|
1149
1208
|
continue;
|
|
1150
1209
|
case 2:
|
|
1151
|
-
if (tag
|
|
1210
|
+
if (tag !== 16) {
|
|
1152
1211
|
break;
|
|
1153
1212
|
}
|
|
1154
1213
|
message.role = reader.int32();
|
|
1155
1214
|
continue;
|
|
1156
1215
|
}
|
|
1157
|
-
if ((tag & 7)
|
|
1216
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1158
1217
|
break;
|
|
1159
1218
|
}
|
|
1160
1219
|
reader.skipType(tag & 7);
|
|
@@ -1169,8 +1228,12 @@ exports.QueryRoleReply = {
|
|
|
1169
1228
|
},
|
|
1170
1229
|
toJSON(message) {
|
|
1171
1230
|
const obj = {};
|
|
1172
|
-
message.uid !==
|
|
1173
|
-
|
|
1231
|
+
if (message.uid !== "") {
|
|
1232
|
+
obj.uid = message.uid;
|
|
1233
|
+
}
|
|
1234
|
+
if (message.role !== 0) {
|
|
1235
|
+
obj.role = roleToJSON(message.role);
|
|
1236
|
+
}
|
|
1174
1237
|
return obj;
|
|
1175
1238
|
},
|
|
1176
1239
|
create(base) {
|
|
@@ -1205,19 +1268,19 @@ exports.ResetPasswordRequest = {
|
|
|
1205
1268
|
const tag = reader.uint32();
|
|
1206
1269
|
switch (tag >>> 3) {
|
|
1207
1270
|
case 1:
|
|
1208
|
-
if (tag
|
|
1271
|
+
if (tag !== 10) {
|
|
1209
1272
|
break;
|
|
1210
1273
|
}
|
|
1211
1274
|
message.uid = reader.string();
|
|
1212
1275
|
continue;
|
|
1213
1276
|
case 3:
|
|
1214
|
-
if (tag
|
|
1277
|
+
if (tag !== 26) {
|
|
1215
1278
|
break;
|
|
1216
1279
|
}
|
|
1217
1280
|
message.newPassword = reader.string();
|
|
1218
1281
|
continue;
|
|
1219
1282
|
}
|
|
1220
|
-
if ((tag & 7)
|
|
1283
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1221
1284
|
break;
|
|
1222
1285
|
}
|
|
1223
1286
|
reader.skipType(tag & 7);
|
|
@@ -1232,8 +1295,12 @@ exports.ResetPasswordRequest = {
|
|
|
1232
1295
|
},
|
|
1233
1296
|
toJSON(message) {
|
|
1234
1297
|
const obj = {};
|
|
1235
|
-
message.uid !==
|
|
1236
|
-
|
|
1298
|
+
if (message.uid !== "") {
|
|
1299
|
+
obj.uid = message.uid;
|
|
1300
|
+
}
|
|
1301
|
+
if (message.newPassword !== "") {
|
|
1302
|
+
obj.newPassword = message.newPassword;
|
|
1303
|
+
}
|
|
1237
1304
|
return obj;
|
|
1238
1305
|
},
|
|
1239
1306
|
create(base) {
|
|
@@ -1265,13 +1332,13 @@ exports.DeleteUserRequest = {
|
|
|
1265
1332
|
const tag = reader.uint32();
|
|
1266
1333
|
switch (tag >>> 3) {
|
|
1267
1334
|
case 1:
|
|
1268
|
-
if (tag
|
|
1335
|
+
if (tag !== 10) {
|
|
1269
1336
|
break;
|
|
1270
1337
|
}
|
|
1271
1338
|
message.uid = reader.string();
|
|
1272
1339
|
continue;
|
|
1273
1340
|
}
|
|
1274
|
-
if ((tag & 7)
|
|
1341
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1275
1342
|
break;
|
|
1276
1343
|
}
|
|
1277
1344
|
reader.skipType(tag & 7);
|
|
@@ -1283,7 +1350,9 @@ exports.DeleteUserRequest = {
|
|
|
1283
1350
|
},
|
|
1284
1351
|
toJSON(message) {
|
|
1285
1352
|
const obj = {};
|
|
1286
|
-
message.uid !==
|
|
1353
|
+
if (message.uid !== "") {
|
|
1354
|
+
obj.uid = message.uid;
|
|
1355
|
+
}
|
|
1287
1356
|
return obj;
|
|
1288
1357
|
},
|
|
1289
1358
|
create(base) {
|
|
@@ -1320,25 +1389,25 @@ exports.CreateUserRequest = {
|
|
|
1320
1389
|
const tag = reader.uint32();
|
|
1321
1390
|
switch (tag >>> 3) {
|
|
1322
1391
|
case 1:
|
|
1323
|
-
if (tag
|
|
1392
|
+
if (tag !== 10) {
|
|
1324
1393
|
break;
|
|
1325
1394
|
}
|
|
1326
1395
|
message.uid = reader.string();
|
|
1327
1396
|
continue;
|
|
1328
1397
|
case 2:
|
|
1329
|
-
if (tag
|
|
1398
|
+
if (tag !== 18) {
|
|
1330
1399
|
break;
|
|
1331
1400
|
}
|
|
1332
1401
|
message.password = reader.string();
|
|
1333
1402
|
continue;
|
|
1334
1403
|
case 3:
|
|
1335
|
-
if (tag
|
|
1404
|
+
if (tag !== 24) {
|
|
1336
1405
|
break;
|
|
1337
1406
|
}
|
|
1338
1407
|
message.role = reader.int32();
|
|
1339
1408
|
continue;
|
|
1340
1409
|
}
|
|
1341
|
-
if ((tag & 7)
|
|
1410
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1342
1411
|
break;
|
|
1343
1412
|
}
|
|
1344
1413
|
reader.skipType(tag & 7);
|
|
@@ -1354,9 +1423,15 @@ exports.CreateUserRequest = {
|
|
|
1354
1423
|
},
|
|
1355
1424
|
toJSON(message) {
|
|
1356
1425
|
const obj = {};
|
|
1357
|
-
message.uid !==
|
|
1358
|
-
|
|
1359
|
-
|
|
1426
|
+
if (message.uid !== "") {
|
|
1427
|
+
obj.uid = message.uid;
|
|
1428
|
+
}
|
|
1429
|
+
if (message.password !== "") {
|
|
1430
|
+
obj.password = message.password;
|
|
1431
|
+
}
|
|
1432
|
+
if (message.role !== 0) {
|
|
1433
|
+
obj.role = roleToJSON(message.role);
|
|
1434
|
+
}
|
|
1360
1435
|
return obj;
|
|
1361
1436
|
},
|
|
1362
1437
|
create(base) {
|
|
@@ -1392,19 +1467,19 @@ exports.CheckPasswordRequest = {
|
|
|
1392
1467
|
const tag = reader.uint32();
|
|
1393
1468
|
switch (tag >>> 3) {
|
|
1394
1469
|
case 1:
|
|
1395
|
-
if (tag
|
|
1470
|
+
if (tag !== 10) {
|
|
1396
1471
|
break;
|
|
1397
1472
|
}
|
|
1398
1473
|
message.uid = reader.string();
|
|
1399
1474
|
continue;
|
|
1400
1475
|
case 2:
|
|
1401
|
-
if (tag
|
|
1476
|
+
if (tag !== 18) {
|
|
1402
1477
|
break;
|
|
1403
1478
|
}
|
|
1404
1479
|
message.password = reader.string();
|
|
1405
1480
|
continue;
|
|
1406
1481
|
}
|
|
1407
|
-
if ((tag & 7)
|
|
1482
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1408
1483
|
break;
|
|
1409
1484
|
}
|
|
1410
1485
|
reader.skipType(tag & 7);
|
|
@@ -1419,8 +1494,12 @@ exports.CheckPasswordRequest = {
|
|
|
1419
1494
|
},
|
|
1420
1495
|
toJSON(message) {
|
|
1421
1496
|
const obj = {};
|
|
1422
|
-
message.uid !==
|
|
1423
|
-
|
|
1497
|
+
if (message.uid !== "") {
|
|
1498
|
+
obj.uid = message.uid;
|
|
1499
|
+
}
|
|
1500
|
+
if (message.password !== "") {
|
|
1501
|
+
obj.password = message.password;
|
|
1502
|
+
}
|
|
1424
1503
|
return obj;
|
|
1425
1504
|
},
|
|
1426
1505
|
create(base) {
|
|
@@ -1458,25 +1537,25 @@ exports.ChangeTrustEndDeviceRequest = {
|
|
|
1458
1537
|
const tag = reader.uint32();
|
|
1459
1538
|
switch (tag >>> 3) {
|
|
1460
1539
|
case 1:
|
|
1461
|
-
if (tag
|
|
1540
|
+
if (tag !== 10) {
|
|
1462
1541
|
break;
|
|
1463
1542
|
}
|
|
1464
1543
|
message.uid = reader.string();
|
|
1465
1544
|
continue;
|
|
1466
1545
|
case 2:
|
|
1467
|
-
if (tag
|
|
1546
|
+
if (tag !== 18) {
|
|
1468
1547
|
break;
|
|
1469
1548
|
}
|
|
1470
1549
|
message.cid = reader.string();
|
|
1471
1550
|
continue;
|
|
1472
1551
|
case 3:
|
|
1473
|
-
if (tag
|
|
1552
|
+
if (tag !== 24) {
|
|
1474
1553
|
break;
|
|
1475
1554
|
}
|
|
1476
1555
|
message.action = reader.int32();
|
|
1477
1556
|
continue;
|
|
1478
1557
|
}
|
|
1479
|
-
if ((tag & 7)
|
|
1558
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1480
1559
|
break;
|
|
1481
1560
|
}
|
|
1482
1561
|
reader.skipType(tag & 7);
|
|
@@ -1492,9 +1571,15 @@ exports.ChangeTrustEndDeviceRequest = {
|
|
|
1492
1571
|
},
|
|
1493
1572
|
toJSON(message) {
|
|
1494
1573
|
const obj = {};
|
|
1495
|
-
message.uid !==
|
|
1496
|
-
|
|
1497
|
-
|
|
1574
|
+
if (message.uid !== "") {
|
|
1575
|
+
obj.uid = message.uid;
|
|
1576
|
+
}
|
|
1577
|
+
if (message.cid !== "") {
|
|
1578
|
+
obj.cid = message.cid;
|
|
1579
|
+
}
|
|
1580
|
+
if (message.action !== 0) {
|
|
1581
|
+
obj.action = changeTrustEndDeviceRequest_ActionToJSON(message.action);
|
|
1582
|
+
}
|
|
1498
1583
|
return obj;
|
|
1499
1584
|
},
|
|
1500
1585
|
create(base) {
|
|
@@ -1524,7 +1609,7 @@ exports.ChangeTrustEndDeviceReply = {
|
|
|
1524
1609
|
const tag = reader.uint32();
|
|
1525
1610
|
switch (tag >>> 3) {
|
|
1526
1611
|
}
|
|
1527
|
-
if ((tag & 7)
|
|
1612
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1528
1613
|
break;
|
|
1529
1614
|
}
|
|
1530
1615
|
reader.skipType(tag & 7);
|
|
@@ -1573,31 +1658,31 @@ exports.SetupHServerRequest = {
|
|
|
1573
1658
|
const tag = reader.uint32();
|
|
1574
1659
|
switch (tag >>> 3) {
|
|
1575
1660
|
case 1:
|
|
1576
|
-
if (tag
|
|
1661
|
+
if (tag !== 10) {
|
|
1577
1662
|
break;
|
|
1578
1663
|
}
|
|
1579
1664
|
message.originServer = reader.string();
|
|
1580
1665
|
continue;
|
|
1581
1666
|
case 2:
|
|
1582
|
-
if (tag
|
|
1667
|
+
if (tag !== 18) {
|
|
1583
1668
|
break;
|
|
1584
1669
|
}
|
|
1585
1670
|
message.boxName = reader.string();
|
|
1586
1671
|
continue;
|
|
1587
1672
|
case 3:
|
|
1588
|
-
if (tag
|
|
1673
|
+
if (tag !== 26) {
|
|
1589
1674
|
break;
|
|
1590
1675
|
}
|
|
1591
1676
|
message.username = reader.string();
|
|
1592
1677
|
continue;
|
|
1593
1678
|
case 4:
|
|
1594
|
-
if (tag
|
|
1679
|
+
if (tag !== 34) {
|
|
1595
1680
|
break;
|
|
1596
1681
|
}
|
|
1597
1682
|
message.password = reader.string();
|
|
1598
1683
|
continue;
|
|
1599
1684
|
}
|
|
1600
|
-
if ((tag & 7)
|
|
1685
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1601
1686
|
break;
|
|
1602
1687
|
}
|
|
1603
1688
|
reader.skipType(tag & 7);
|
|
@@ -1614,10 +1699,18 @@ exports.SetupHServerRequest = {
|
|
|
1614
1699
|
},
|
|
1615
1700
|
toJSON(message) {
|
|
1616
1701
|
const obj = {};
|
|
1617
|
-
message.originServer !==
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
message.
|
|
1702
|
+
if (message.originServer !== "") {
|
|
1703
|
+
obj.originServer = message.originServer;
|
|
1704
|
+
}
|
|
1705
|
+
if (message.boxName !== "") {
|
|
1706
|
+
obj.boxName = message.boxName;
|
|
1707
|
+
}
|
|
1708
|
+
if (message.username !== "") {
|
|
1709
|
+
obj.username = message.username;
|
|
1710
|
+
}
|
|
1711
|
+
if (message.password !== "") {
|
|
1712
|
+
obj.password = message.password;
|
|
1713
|
+
}
|
|
1621
1714
|
return obj;
|
|
1622
1715
|
},
|
|
1623
1716
|
create(base) {
|
|
@@ -1654,19 +1747,19 @@ exports.SetupHServerReply = {
|
|
|
1654
1747
|
const tag = reader.uint32();
|
|
1655
1748
|
switch (tag >>> 3) {
|
|
1656
1749
|
case 1:
|
|
1657
|
-
if (tag
|
|
1750
|
+
if (tag !== 8) {
|
|
1658
1751
|
break;
|
|
1659
1752
|
}
|
|
1660
1753
|
message.ok = reader.bool();
|
|
1661
1754
|
continue;
|
|
1662
1755
|
case 2:
|
|
1663
|
-
if (tag
|
|
1756
|
+
if (tag !== 18) {
|
|
1664
1757
|
break;
|
|
1665
1758
|
}
|
|
1666
1759
|
message.reason = reader.string();
|
|
1667
1760
|
continue;
|
|
1668
1761
|
}
|
|
1669
|
-
if ((tag & 7)
|
|
1762
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1670
1763
|
break;
|
|
1671
1764
|
}
|
|
1672
1765
|
reader.skipType(tag & 7);
|
|
@@ -1681,8 +1774,12 @@ exports.SetupHServerReply = {
|
|
|
1681
1774
|
},
|
|
1682
1775
|
toJSON(message) {
|
|
1683
1776
|
const obj = {};
|
|
1684
|
-
|
|
1685
|
-
|
|
1777
|
+
if (message.ok === true) {
|
|
1778
|
+
obj.ok = message.ok;
|
|
1779
|
+
}
|
|
1780
|
+
if (message.reason !== "") {
|
|
1781
|
+
obj.reason = message.reason;
|
|
1782
|
+
}
|
|
1686
1783
|
return obj;
|
|
1687
1784
|
},
|
|
1688
1785
|
create(base) {
|
|
@@ -1714,13 +1811,13 @@ exports.ResetHServerRequest = {
|
|
|
1714
1811
|
const tag = reader.uint32();
|
|
1715
1812
|
switch (tag >>> 3) {
|
|
1716
1813
|
case 1:
|
|
1717
|
-
if (tag
|
|
1814
|
+
if (tag !== 10) {
|
|
1718
1815
|
break;
|
|
1719
1816
|
}
|
|
1720
1817
|
message.originServer = reader.string();
|
|
1721
1818
|
continue;
|
|
1722
1819
|
}
|
|
1723
|
-
if ((tag & 7)
|
|
1820
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1724
1821
|
break;
|
|
1725
1822
|
}
|
|
1726
1823
|
reader.skipType(tag & 7);
|
|
@@ -1732,7 +1829,9 @@ exports.ResetHServerRequest = {
|
|
|
1732
1829
|
},
|
|
1733
1830
|
toJSON(message) {
|
|
1734
1831
|
const obj = {};
|
|
1735
|
-
message.originServer !==
|
|
1832
|
+
if (message.originServer !== "") {
|
|
1833
|
+
obj.originServer = message.originServer;
|
|
1834
|
+
}
|
|
1736
1835
|
return obj;
|
|
1737
1836
|
},
|
|
1738
1837
|
create(base) {
|
|
@@ -1760,7 +1859,7 @@ exports.ResetHServerReply = {
|
|
|
1760
1859
|
const tag = reader.uint32();
|
|
1761
1860
|
switch (tag >>> 3) {
|
|
1762
1861
|
}
|
|
1763
|
-
if ((tag & 7)
|
|
1862
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1764
1863
|
break;
|
|
1765
1864
|
}
|
|
1766
1865
|
reader.skipType(tag & 7);
|
|
@@ -1800,13 +1899,13 @@ exports.PeersInfo = {
|
|
|
1800
1899
|
const tag = reader.uint32();
|
|
1801
1900
|
switch (tag >>> 3) {
|
|
1802
1901
|
case 1:
|
|
1803
|
-
if (tag
|
|
1902
|
+
if (tag !== 10) {
|
|
1804
1903
|
break;
|
|
1805
1904
|
}
|
|
1806
1905
|
message.peerInfo = reader.string();
|
|
1807
1906
|
continue;
|
|
1808
1907
|
}
|
|
1809
|
-
if ((tag & 7)
|
|
1908
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1810
1909
|
break;
|
|
1811
1910
|
}
|
|
1812
1911
|
reader.skipType(tag & 7);
|
|
@@ -1818,7 +1917,9 @@ exports.PeersInfo = {
|
|
|
1818
1917
|
},
|
|
1819
1918
|
toJSON(message) {
|
|
1820
1919
|
const obj = {};
|
|
1821
|
-
message.peerInfo !==
|
|
1920
|
+
if (message.peerInfo !== "") {
|
|
1921
|
+
obj.peerInfo = message.peerInfo;
|
|
1922
|
+
}
|
|
1822
1923
|
return obj;
|
|
1823
1924
|
},
|
|
1824
1925
|
create(base) {
|
|
@@ -2239,15 +2340,10 @@ class GrpcWebImpl {
|
|
|
2239
2340
|
const request = Object.assign(Object.assign({}, _request), methodDesc.requestType);
|
|
2240
2341
|
const maybeCombinedMetadata = metadata && this.options.metadata
|
|
2241
2342
|
? new browser_headers_1.BrowserHeaders(Object.assign(Object.assign({}, (_a = this.options) === null || _a === void 0 ? void 0 : _a.metadata.headersMap), metadata === null || metadata === void 0 ? void 0 : metadata.headersMap))
|
|
2242
|
-
: metadata
|
|
2343
|
+
: metadata !== null && metadata !== void 0 ? metadata : this.options.metadata;
|
|
2243
2344
|
return new Promise((resolve, reject) => {
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
host: this.host,
|
|
2247
|
-
metadata: maybeCombinedMetadata,
|
|
2248
|
-
transport: this.options.transport,
|
|
2249
|
-
debug: this.options.debug,
|
|
2250
|
-
onEnd: function (response) {
|
|
2345
|
+
var _a;
|
|
2346
|
+
grpc_web_1.grpc.unary(methodDesc, Object.assign(Object.assign({ request, host: this.host, metadata: maybeCombinedMetadata !== null && maybeCombinedMetadata !== void 0 ? maybeCombinedMetadata : {} }, (this.options.transport !== undefined ? { transport: this.options.transport } : {})), { debug: (_a = this.options.debug) !== null && _a !== void 0 ? _a : false, onEnd: function (response) {
|
|
2251
2347
|
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
2252
2348
|
resolve(response.message.toObject());
|
|
2253
2349
|
}
|
|
@@ -2255,28 +2351,22 @@ class GrpcWebImpl {
|
|
|
2255
2351
|
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
2256
2352
|
reject(err);
|
|
2257
2353
|
}
|
|
2258
|
-
}
|
|
2259
|
-
});
|
|
2354
|
+
} }));
|
|
2260
2355
|
});
|
|
2261
2356
|
}
|
|
2262
2357
|
invoke(methodDesc, _request, metadata) {
|
|
2263
|
-
var _a;
|
|
2264
|
-
const upStreamCodes = this.options.upStreamRetryCodes
|
|
2358
|
+
var _a, _b, _c;
|
|
2359
|
+
const upStreamCodes = (_a = this.options.upStreamRetryCodes) !== null && _a !== void 0 ? _a : [];
|
|
2265
2360
|
const DEFAULT_TIMEOUT_TIME = 3000;
|
|
2266
2361
|
const request = Object.assign(Object.assign({}, _request), methodDesc.requestType);
|
|
2362
|
+
const transport = (_b = this.options.streamingTransport) !== null && _b !== void 0 ? _b : this.options.transport;
|
|
2267
2363
|
const maybeCombinedMetadata = metadata && this.options.metadata
|
|
2268
|
-
? new browser_headers_1.BrowserHeaders(Object.assign(Object.assign({}, (
|
|
2269
|
-
: metadata
|
|
2364
|
+
? new browser_headers_1.BrowserHeaders(Object.assign(Object.assign({}, (_c = this.options) === null || _c === void 0 ? void 0 : _c.metadata.headersMap), metadata === null || metadata === void 0 ? void 0 : metadata.headersMap))
|
|
2365
|
+
: metadata !== null && metadata !== void 0 ? metadata : this.options.metadata;
|
|
2270
2366
|
return new rxjs_1.Observable((observer) => {
|
|
2271
2367
|
const upStream = (() => {
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
request,
|
|
2275
|
-
transport: this.options.streamingTransport || this.options.transport,
|
|
2276
|
-
metadata: maybeCombinedMetadata,
|
|
2277
|
-
debug: this.options.debug,
|
|
2278
|
-
onMessage: (next) => observer.next(next),
|
|
2279
|
-
onEnd: (code, message, trailers) => {
|
|
2368
|
+
var _a;
|
|
2369
|
+
const client = grpc_web_1.grpc.invoke(methodDesc, Object.assign(Object.assign({ host: this.host, request }, (transport !== undefined ? { transport } : {})), { metadata: maybeCombinedMetadata !== null && maybeCombinedMetadata !== void 0 ? maybeCombinedMetadata : {}, debug: (_a = this.options.debug) !== null && _a !== void 0 ? _a : false, onMessage: (next) => observer.next(next), onEnd: (code, message, trailers) => {
|
|
2280
2370
|
if (code === 0) {
|
|
2281
2371
|
observer.complete();
|
|
2282
2372
|
}
|
|
@@ -2289,12 +2379,9 @@ class GrpcWebImpl {
|
|
|
2289
2379
|
err.metadata = trailers;
|
|
2290
2380
|
observer.error(err);
|
|
2291
2381
|
}
|
|
2292
|
-
}
|
|
2293
|
-
});
|
|
2382
|
+
} }));
|
|
2294
2383
|
observer.add(() => {
|
|
2295
|
-
|
|
2296
|
-
return client.close();
|
|
2297
|
-
}
|
|
2384
|
+
return client.close();
|
|
2298
2385
|
});
|
|
2299
2386
|
});
|
|
2300
2387
|
upStream();
|
|
@@ -2302,7 +2389,7 @@ class GrpcWebImpl {
|
|
|
2302
2389
|
}
|
|
2303
2390
|
}
|
|
2304
2391
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
2305
|
-
|
|
2392
|
+
const tsProtoGlobalThis = (() => {
|
|
2306
2393
|
if (typeof globalThis !== "undefined") {
|
|
2307
2394
|
return globalThis;
|
|
2308
2395
|
}
|
|
@@ -2323,8 +2410,8 @@ function toTimestamp(date) {
|
|
|
2323
2410
|
return { seconds, nanos };
|
|
2324
2411
|
}
|
|
2325
2412
|
function fromTimestamp(t) {
|
|
2326
|
-
let millis = t.seconds * 1000;
|
|
2327
|
-
millis += t.nanos / 1000000;
|
|
2413
|
+
let millis = (t.seconds || 0) * 1000;
|
|
2414
|
+
millis += (t.nanos || 0) / 1000000;
|
|
2328
2415
|
return new Date(millis);
|
|
2329
2416
|
}
|
|
2330
2417
|
function fromJsonTimestamp(o) {
|