@lazycatcloud/sdk 0.1.190 → 0.1.192

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 (166) hide show
  1. package/dist/common/apk_shell.d.ts +8 -25
  2. package/dist/common/apk_shell.d.ts.map +1 -1
  3. package/dist/common/apk_shell.js +24 -48
  4. package/dist/common/apk_shell.js.map +1 -1
  5. package/dist/common/appshell.d.ts +85 -83
  6. package/dist/common/appshell.d.ts.map +1 -1
  7. package/dist/common/appshell.js +228 -241
  8. package/dist/common/appshell.js.map +1 -1
  9. package/dist/common/box.d.ts +124 -53
  10. package/dist/common/box.d.ts.map +1 -1
  11. package/dist/common/box.js +252 -86
  12. package/dist/common/box.js.map +1 -1
  13. package/dist/common/browseronly.d.ts +10 -38
  14. package/dist/common/browseronly.d.ts.map +1 -1
  15. package/dist/common/browseronly.js +32 -94
  16. package/dist/common/browseronly.js.map +1 -1
  17. package/dist/common/end_device.d.ts +14 -101
  18. package/dist/common/end_device.d.ts.map +1 -1
  19. package/dist/common/end_device.js +42 -123
  20. package/dist/common/end_device.js.map +1 -1
  21. package/dist/common/file_handler.d.ts +14 -70
  22. package/dist/common/file_handler.d.ts.map +1 -1
  23. package/dist/common/file_handler.js +36 -103
  24. package/dist/common/file_handler.js.map +1 -1
  25. package/dist/common/filetrans.d.ts +53 -853
  26. package/dist/common/filetrans.d.ts.map +1 -1
  27. package/dist/common/filetrans.js +163 -412
  28. package/dist/common/filetrans.js.map +1 -1
  29. package/dist/common/gateway.d.ts +14 -60
  30. package/dist/common/gateway.d.ts.map +1 -1
  31. package/dist/common/gateway.js +43 -126
  32. package/dist/common/gateway.js.map +1 -1
  33. package/dist/common/media_meta.d.ts +8 -27
  34. package/dist/common/media_meta.d.ts.map +1 -1
  35. package/dist/common/media_meta.js +21 -52
  36. package/dist/common/media_meta.js.map +1 -1
  37. package/dist/common/message.d.ts +16 -106
  38. package/dist/common/message.d.ts.map +1 -1
  39. package/dist/common/message.js +58 -133
  40. package/dist/common/message.js.map +1 -1
  41. package/dist/common/peripheral_device.d.ts +18 -141
  42. package/dist/common/peripheral_device.d.ts.map +1 -1
  43. package/dist/common/peripheral_device.js +56 -140
  44. package/dist/common/peripheral_device.js.map +1 -1
  45. package/dist/common/security_context.d.ts +15 -54
  46. package/dist/common/security_context.d.ts.map +1 -1
  47. package/dist/common/security_context.js +47 -119
  48. package/dist/common/security_context.js.map +1 -1
  49. package/dist/common/users.d.ts +23 -98
  50. package/dist/common/users.d.ts.map +1 -1
  51. package/dist/common/users.js +83 -216
  52. package/dist/common/users.js.map +1 -1
  53. package/dist/dlna/dlna.d.ts +18 -107
  54. package/dist/dlna/dlna.d.ts.map +1 -1
  55. package/dist/dlna/dlna.js +60 -174
  56. package/dist/dlna/dlna.js.map +1 -1
  57. package/dist/google/protobuf/descriptor.d.ts +4640 -55103
  58. package/dist/google/protobuf/descriptor.d.ts.map +1 -1
  59. package/dist/google/protobuf/descriptor.js +257 -738
  60. package/dist/google/protobuf/descriptor.js.map +1 -1
  61. package/dist/google/protobuf/empty.d.ts +1 -2
  62. package/dist/google/protobuf/empty.d.ts.map +1 -1
  63. package/dist/google/protobuf/empty.js +4 -8
  64. package/dist/google/protobuf/empty.js.map +1 -1
  65. package/dist/google/protobuf/timestamp.d.ts +2 -9
  66. package/dist/google/protobuf/timestamp.d.ts.map +1 -1
  67. package/dist/google/protobuf/timestamp.js +8 -18
  68. package/dist/google/protobuf/timestamp.js.map +1 -1
  69. package/dist/grpcweb.d.ts +1 -1
  70. package/dist/grpcweb.d.ts.map +1 -1
  71. package/dist/lanforward/lanforward.d.ts +84 -65
  72. package/dist/lanforward/lanforward.d.ts.map +1 -1
  73. package/dist/lanforward/lanforward.js +217 -197
  74. package/dist/localdevice/clipboard.d.ts +12 -35
  75. package/dist/localdevice/clipboard.d.ts.map +1 -1
  76. package/dist/localdevice/clipboard.js +37 -75
  77. package/dist/localdevice/clipboard.js.map +1 -1
  78. package/dist/localdevice/config.d.ts +11 -42
  79. package/dist/localdevice/config.d.ts.map +1 -1
  80. package/dist/localdevice/config.js +32 -95
  81. package/dist/localdevice/config.js.map +1 -1
  82. package/dist/localdevice/device.d.ts +6 -18
  83. package/dist/localdevice/device.d.ts.map +1 -1
  84. package/dist/localdevice/device.js +12 -44
  85. package/dist/localdevice/device.js.map +1 -1
  86. package/dist/localdevice/dialog.d.ts +18 -68
  87. package/dist/localdevice/dialog.d.ts.map +1 -1
  88. package/dist/localdevice/dialog.js +52 -141
  89. package/dist/localdevice/dialog.js.map +1 -1
  90. package/dist/localdevice/local-launch.d.ts +18 -70
  91. package/dist/localdevice/local-launch.d.ts.map +1 -1
  92. package/dist/localdevice/local-launch.js +67 -170
  93. package/dist/localdevice/local-launch.js.map +1 -1
  94. package/dist/localdevice/network.d.ts +6 -14
  95. package/dist/localdevice/network.d.ts.map +1 -1
  96. package/dist/localdevice/network.js +10 -36
  97. package/dist/localdevice/network.js.map +1 -1
  98. package/dist/localdevice/permission.d.ts +16 -61
  99. package/dist/localdevice/permission.d.ts.map +1 -1
  100. package/dist/localdevice/permission.js +51 -109
  101. package/dist/localdevice/permission.js.map +1 -1
  102. package/dist/localdevice/photo.d.ts +28 -192
  103. package/dist/localdevice/photo.d.ts.map +1 -1
  104. package/dist/localdevice/photo.js +111 -307
  105. package/dist/localdevice/photo.js.map +1 -1
  106. package/dist/package.json +1 -1
  107. package/dist/ssdp/ssdp.d.ts +92 -73
  108. package/dist/ssdp/ssdp.d.ts.map +1 -1
  109. package/dist/ssdp/ssdp.js +246 -226
  110. package/dist/sys/OS_daemon.d.ts +12 -35
  111. package/dist/sys/OS_daemon.d.ts.map +1 -1
  112. package/dist/sys/OS_daemon.js +31 -65
  113. package/dist/sys/OS_daemon.js.map +1 -1
  114. package/dist/sys/OS_snapshot.d.ts +32 -180
  115. package/dist/sys/OS_snapshot.d.ts.map +1 -1
  116. package/dist/sys/OS_snapshot.js +126 -290
  117. package/dist/sys/OS_snapshot.js.map +1 -1
  118. package/dist/sys/OS_upgrader.d.ts +14 -65
  119. package/dist/sys/OS_upgrader.d.ts.map +1 -1
  120. package/dist/sys/OS_upgrader.js +59 -129
  121. package/dist/sys/OS_upgrader.js.map +1 -1
  122. package/dist/sys/box-status.d.ts +51 -219
  123. package/dist/sys/box-status.d.ts.map +1 -1
  124. package/dist/sys/box-status.js +152 -156
  125. package/dist/sys/box-status.js.map +1 -1
  126. package/dist/sys/btrfs.d.ts +16 -59
  127. package/dist/sys/btrfs.d.ts.map +1 -1
  128. package/dist/sys/btrfs.js +48 -112
  129. package/dist/sys/btrfs.js.map +1 -1
  130. package/dist/sys/devopt.d.ts +6 -20
  131. package/dist/sys/devopt.d.ts.map +1 -1
  132. package/dist/sys/devopt.js +15 -51
  133. package/dist/sys/devopt.js.map +1 -1
  134. package/dist/sys/dirmon.d.ts +8 -23
  135. package/dist/sys/dirmon.d.ts.map +1 -1
  136. package/dist/sys/dirmon.js +23 -44
  137. package/dist/sys/dirmon.js.map +1 -1
  138. package/dist/sys/event.d.ts +18 -90
  139. package/dist/sys/event.d.ts.map +1 -1
  140. package/dist/sys/event.js +55 -154
  141. package/dist/sys/event.js.map +1 -1
  142. package/dist/sys/hc-core/hc-core.d.ts +32 -244
  143. package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
  144. package/dist/sys/hc-core/hc-core.js +118 -258
  145. package/dist/sys/hc-core/hc-core.js.map +1 -1
  146. package/dist/sys/ingress.d.ts +24 -81
  147. package/dist/sys/ingress.d.ts.map +1 -1
  148. package/dist/sys/ingress.js +73 -160
  149. package/dist/sys/ingress.js.map +1 -1
  150. package/dist/sys/network_manager.d.ts +16 -137
  151. package/dist/sys/network_manager.d.ts.map +1 -1
  152. package/dist/sys/network_manager.js +55 -156
  153. package/dist/sys/network_manager.js.map +1 -1
  154. package/dist/sys/package_manager.d.ts +42 -314
  155. package/dist/sys/package_manager.d.ts.map +1 -1
  156. package/dist/sys/package_manager.js +157 -404
  157. package/dist/sys/package_manager.js.map +1 -1
  158. package/dist/sys/portal-server/portal-server.d.ts +71 -373
  159. package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
  160. package/dist/sys/portal-server/portal-server.js +280 -685
  161. package/dist/sys/portal-server/portal-server.js.map +1 -1
  162. package/dist/sys/snapd.d.ts +18 -105
  163. package/dist/sys/snapd.d.ts.map +1 -1
  164. package/dist/sys/snapd.js +61 -157
  165. package/dist/sys/snapd.js.map +1 -1
  166. package/package.json +1 -1
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.GrpcWebError = exports.GrpcWebImpl = exports.BoxStatusServiceFormatDesc = exports.BoxStatusServiceGetAllDesc = exports.BoxStatusServiceDesc = exports.BoxStatusServiceClientImpl = exports.BoxStatus = exports.StartupStatus = exports.Disks = exports.DataPartitionStatus = exports.DiskDetail = exports.DiskSmartInfo = exports.shutdownReasonTypeToJSON = exports.shutdownReasonTypeFromJSON = exports.ShutdownReasonType = exports.startupExceptionTypeToJSON = exports.startupExceptionTypeFromJSON = exports.StartupExceptionType = exports.startupStatusTypeToJSON = exports.startupStatusTypeFromJSON = exports.StartupStatusType = exports.dataPartitionExceptionTypeToJSON = exports.dataPartitionExceptionTypeFromJSON = exports.DataPartitionExceptionType = exports.dataPartitionStatusTypeToJSON = exports.dataPartitionStatusTypeFromJSON = exports.DataPartitionStatusType = void 0;
6
+ exports.GrpcWebError = exports.GrpcWebImpl = exports.BoxStatusServiceDataDecryptDesc = exports.BoxStatusServiceDataFormatDesc = exports.BoxStatusServiceGetAllDesc = exports.BoxStatusServiceDesc = exports.BoxStatusServiceClientImpl = exports.BoxStatus = exports.StartupStatus = exports.DataDiskDecrypt = exports.DataDiskFormat = exports.DataPartitionStatus = exports.DiskDetail = exports.DiskSmartInfo = exports.shutdownReasonTypeToJSON = exports.shutdownReasonTypeFromJSON = exports.ShutdownReasonType = exports.startupExceptionTypeToJSON = exports.startupExceptionTypeFromJSON = exports.StartupExceptionType = exports.startupStatusTypeToJSON = exports.startupStatusTypeFromJSON = exports.StartupStatusType = exports.dataPartitionExceptionTypeToJSON = exports.dataPartitionExceptionTypeFromJSON = exports.DataPartitionExceptionType = exports.dataPartitionStatusTypeToJSON = exports.dataPartitionStatusTypeFromJSON = exports.DataPartitionStatusType = void 0;
7
7
  /* eslint-disable */
8
8
  const grpc_web_1 = require("@improbable-eng/grpc-web");
9
9
  const browser_headers_1 = require("browser-headers");
@@ -69,12 +69,14 @@ exports.dataPartitionStatusTypeToJSON = dataPartitionStatusTypeToJSON;
69
69
  var DataPartitionExceptionType;
70
70
  (function (DataPartitionExceptionType) {
71
71
  DataPartitionExceptionType[DataPartitionExceptionType["DATA_PARTITION_EXCEPTION_OK"] = 0] = "DATA_PARTITION_EXCEPTION_OK";
72
+ /** DATA_PARTITION_EXCEPTION_NO_SUPPORTED - 不支持的系统环境 */
73
+ DataPartitionExceptionType[DataPartitionExceptionType["DATA_PARTITION_EXCEPTION_NO_SUPPORTED"] = 1] = "DATA_PARTITION_EXCEPTION_NO_SUPPORTED";
72
74
  /** DATA_PARTITION_EXCEPTION_LSBLK - 执行 lsblk 出错 */
73
- DataPartitionExceptionType[DataPartitionExceptionType["DATA_PARTITION_EXCEPTION_LSBLK"] = 1] = "DATA_PARTITION_EXCEPTION_LSBLK";
75
+ DataPartitionExceptionType[DataPartitionExceptionType["DATA_PARTITION_EXCEPTION_LSBLK"] = 2] = "DATA_PARTITION_EXCEPTION_LSBLK";
74
76
  /** DATA_PARTITION_EXCEPTION_EJECTED - 数据盘已被异常拔出(未找到数据盘挂载点对应的设备) */
75
- DataPartitionExceptionType[DataPartitionExceptionType["DATA_PARTITION_EXCEPTION_EJECTED"] = 2] = "DATA_PARTITION_EXCEPTION_EJECTED";
77
+ DataPartitionExceptionType[DataPartitionExceptionType["DATA_PARTITION_EXCEPTION_EJECTED"] = 3] = "DATA_PARTITION_EXCEPTION_EJECTED";
76
78
  /** DATA_PARTITION_EXCEPTION_NOT_MOUNTED - 数据盘已初始化但未挂载 */
77
- DataPartitionExceptionType[DataPartitionExceptionType["DATA_PARTITION_EXCEPTION_NOT_MOUNTED"] = 3] = "DATA_PARTITION_EXCEPTION_NOT_MOUNTED";
79
+ DataPartitionExceptionType[DataPartitionExceptionType["DATA_PARTITION_EXCEPTION_NOT_MOUNTED"] = 4] = "DATA_PARTITION_EXCEPTION_NOT_MOUNTED";
78
80
  DataPartitionExceptionType[DataPartitionExceptionType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
79
81
  })(DataPartitionExceptionType = exports.DataPartitionExceptionType || (exports.DataPartitionExceptionType = {}));
80
82
  function dataPartitionExceptionTypeFromJSON(object) {
@@ -83,12 +85,15 @@ function dataPartitionExceptionTypeFromJSON(object) {
83
85
  case "DATA_PARTITION_EXCEPTION_OK":
84
86
  return DataPartitionExceptionType.DATA_PARTITION_EXCEPTION_OK;
85
87
  case 1:
88
+ case "DATA_PARTITION_EXCEPTION_NO_SUPPORTED":
89
+ return DataPartitionExceptionType.DATA_PARTITION_EXCEPTION_NO_SUPPORTED;
90
+ case 2:
86
91
  case "DATA_PARTITION_EXCEPTION_LSBLK":
87
92
  return DataPartitionExceptionType.DATA_PARTITION_EXCEPTION_LSBLK;
88
- case 2:
93
+ case 3:
89
94
  case "DATA_PARTITION_EXCEPTION_EJECTED":
90
95
  return DataPartitionExceptionType.DATA_PARTITION_EXCEPTION_EJECTED;
91
- case 3:
96
+ case 4:
92
97
  case "DATA_PARTITION_EXCEPTION_NOT_MOUNTED":
93
98
  return DataPartitionExceptionType.DATA_PARTITION_EXCEPTION_NOT_MOUNTED;
94
99
  case -1:
@@ -102,6 +107,8 @@ function dataPartitionExceptionTypeToJSON(object) {
102
107
  switch (object) {
103
108
  case DataPartitionExceptionType.DATA_PARTITION_EXCEPTION_OK:
104
109
  return "DATA_PARTITION_EXCEPTION_OK";
110
+ case DataPartitionExceptionType.DATA_PARTITION_EXCEPTION_NO_SUPPORTED:
111
+ return "DATA_PARTITION_EXCEPTION_NO_SUPPORTED";
105
112
  case DataPartitionExceptionType.DATA_PARTITION_EXCEPTION_LSBLK:
106
113
  return "DATA_PARTITION_EXCEPTION_LSBLK";
107
114
  case DataPartitionExceptionType.DATA_PARTITION_EXCEPTION_EJECTED:
@@ -295,29 +302,22 @@ exports.DiskSmartInfo = {
295
302
  return writer;
296
303
  },
297
304
  decode(input, length) {
298
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
305
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
299
306
  let end = length === undefined ? reader.len : reader.pos + length;
300
307
  const message = createBaseDiskSmartInfo();
301
308
  while (reader.pos < end) {
302
309
  const tag = reader.uint32();
303
310
  switch (tag >>> 3) {
304
311
  case 1:
305
- if (tag != 8) {
306
- break;
307
- }
308
312
  message.temperature = reader.int32();
309
- continue;
313
+ break;
310
314
  case 2:
311
- if (tag != 16) {
312
- break;
313
- }
314
315
  message.usedTime = longToNumber(reader.int64());
315
- continue;
316
- }
317
- if ((tag & 7) == 4 || tag == 0) {
318
- break;
316
+ break;
317
+ default:
318
+ reader.skipType(tag & 7);
319
+ break;
319
320
  }
320
- reader.skipType(tag & 7);
321
321
  }
322
322
  return message;
323
323
  },
@@ -333,9 +333,6 @@ exports.DiskSmartInfo = {
333
333
  message.usedTime !== undefined && (obj.usedTime = Math.round(message.usedTime));
334
334
  return obj;
335
335
  },
336
- create(base) {
337
- return exports.DiskSmartInfo.fromPartial(base !== null && base !== void 0 ? base : {});
338
- },
339
336
  fromPartial(object) {
340
337
  var _a, _b;
341
338
  const message = createBaseDiskSmartInfo();
@@ -364,41 +361,28 @@ exports.DiskDetail = {
364
361
  return writer;
365
362
  },
366
363
  decode(input, length) {
367
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
364
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
368
365
  let end = length === undefined ? reader.len : reader.pos + length;
369
366
  const message = createBaseDiskDetail();
370
367
  while (reader.pos < end) {
371
368
  const tag = reader.uint32();
372
369
  switch (tag >>> 3) {
373
370
  case 1:
374
- if (tag != 10) {
375
- break;
376
- }
377
371
  message.devices.push(reader.string());
378
- continue;
372
+ break;
379
373
  case 2:
380
- if (tag != 16) {
381
- break;
382
- }
383
374
  message.total = longToNumber(reader.uint64());
384
- continue;
375
+ break;
385
376
  case 3:
386
- if (tag != 24) {
387
- break;
388
- }
389
377
  message.used = longToNumber(reader.uint64());
390
- continue;
378
+ break;
391
379
  case 4:
392
- if (tag != 34) {
393
- break;
394
- }
395
380
  message.smart = exports.DiskSmartInfo.decode(reader, reader.uint32());
396
- continue;
397
- }
398
- if ((tag & 7) == 4 || tag == 0) {
399
- break;
381
+ break;
382
+ default:
383
+ reader.skipType(tag & 7);
384
+ break;
400
385
  }
401
- reader.skipType(tag & 7);
402
386
  }
403
387
  return message;
404
388
  },
@@ -423,9 +407,6 @@ exports.DiskDetail = {
423
407
  message.smart !== undefined && (obj.smart = message.smart ? exports.DiskSmartInfo.toJSON(message.smart) : undefined);
424
408
  return obj;
425
409
  },
426
- create(base) {
427
- return exports.DiskDetail.fromPartial(base !== null && base !== void 0 ? base : {});
428
- },
429
410
  fromPartial(object) {
430
411
  var _a, _b, _c;
431
412
  const message = createBaseDiskDetail();
@@ -461,47 +442,31 @@ exports.DataPartitionStatus = {
461
442
  return writer;
462
443
  },
463
444
  decode(input, length) {
464
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
445
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
465
446
  let end = length === undefined ? reader.len : reader.pos + length;
466
447
  const message = createBaseDataPartitionStatus();
467
448
  while (reader.pos < end) {
468
449
  const tag = reader.uint32();
469
450
  switch (tag >>> 3) {
470
451
  case 1:
471
- if (tag != 8) {
472
- break;
473
- }
474
452
  message.status = reader.int32();
475
- continue;
453
+ break;
476
454
  case 2:
477
- if (tag != 16) {
478
- break;
479
- }
480
455
  message.exception = reader.int32();
481
- continue;
456
+ break;
482
457
  case 3:
483
- if (tag != 26) {
484
- break;
485
- }
486
458
  message.msg = reader.string();
487
- continue;
459
+ break;
488
460
  case 4:
489
- if (tag != 34) {
490
- break;
491
- }
492
461
  message.disks.push(reader.string());
493
- continue;
462
+ break;
494
463
  case 5:
495
- if (tag != 42) {
496
- break;
497
- }
498
464
  message.details.push(exports.DiskDetail.decode(reader, reader.uint32()));
499
- continue;
500
- }
501
- if ((tag & 7) == 4 || tag == 0) {
502
- break;
465
+ break;
466
+ default:
467
+ reader.skipType(tag & 7);
468
+ break;
503
469
  }
504
- reader.skipType(tag & 7);
505
470
  }
506
471
  return message;
507
472
  },
@@ -533,9 +498,6 @@ exports.DataPartitionStatus = {
533
498
  }
534
499
  return obj;
535
500
  },
536
- create(base) {
537
- return exports.DataPartitionStatus.fromPartial(base !== null && base !== void 0 ? base : {});
538
- },
539
501
  fromPartial(object) {
540
502
  var _a, _b, _c, _d, _e;
541
503
  const message = createBaseDataPartitionStatus();
@@ -547,39 +509,44 @@ exports.DataPartitionStatus = {
547
509
  return message;
548
510
  },
549
511
  };
550
- function createBaseDisks() {
551
- return { disks: [] };
512
+ function createBaseDataDiskFormat() {
513
+ return { disks: [], password: "" };
552
514
  }
553
- exports.Disks = {
515
+ exports.DataDiskFormat = {
554
516
  encode(message, writer = minimal_1.default.Writer.create()) {
555
517
  for (const v of message.disks) {
556
518
  writer.uint32(10).string(v);
557
519
  }
520
+ if (message.password !== "") {
521
+ writer.uint32(18).string(message.password);
522
+ }
558
523
  return writer;
559
524
  },
560
525
  decode(input, length) {
561
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
526
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
562
527
  let end = length === undefined ? reader.len : reader.pos + length;
563
- const message = createBaseDisks();
528
+ const message = createBaseDataDiskFormat();
564
529
  while (reader.pos < end) {
565
530
  const tag = reader.uint32();
566
531
  switch (tag >>> 3) {
567
532
  case 1:
568
- if (tag != 10) {
569
- break;
570
- }
571
533
  message.disks.push(reader.string());
572
- continue;
573
- }
574
- if ((tag & 7) == 4 || tag == 0) {
575
- break;
534
+ break;
535
+ case 2:
536
+ message.password = reader.string();
537
+ break;
538
+ default:
539
+ reader.skipType(tag & 7);
540
+ break;
576
541
  }
577
- reader.skipType(tag & 7);
578
542
  }
579
543
  return message;
580
544
  },
581
545
  fromJSON(object) {
582
- return { disks: Array.isArray(object === null || object === void 0 ? void 0 : object.disks) ? object.disks.map((e) => String(e)) : [] };
546
+ return {
547
+ disks: Array.isArray(object === null || object === void 0 ? void 0 : object.disks) ? object.disks.map((e) => String(e)) : [],
548
+ password: isSet(object.password) ? String(object.password) : "",
549
+ };
583
550
  },
584
551
  toJSON(message) {
585
552
  const obj = {};
@@ -589,15 +556,56 @@ exports.Disks = {
589
556
  else {
590
557
  obj.disks = [];
591
558
  }
559
+ message.password !== undefined && (obj.password = message.password);
592
560
  return obj;
593
561
  },
594
- create(base) {
595
- return exports.Disks.fromPartial(base !== null && base !== void 0 ? base : {});
562
+ fromPartial(object) {
563
+ var _a, _b;
564
+ const message = createBaseDataDiskFormat();
565
+ message.disks = ((_a = object.disks) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
566
+ message.password = (_b = object.password) !== null && _b !== void 0 ? _b : "";
567
+ return message;
568
+ },
569
+ };
570
+ function createBaseDataDiskDecrypt() {
571
+ return { password: "" };
572
+ }
573
+ exports.DataDiskDecrypt = {
574
+ encode(message, writer = minimal_1.default.Writer.create()) {
575
+ if (message.password !== "") {
576
+ writer.uint32(10).string(message.password);
577
+ }
578
+ return writer;
579
+ },
580
+ decode(input, length) {
581
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
582
+ let end = length === undefined ? reader.len : reader.pos + length;
583
+ const message = createBaseDataDiskDecrypt();
584
+ while (reader.pos < end) {
585
+ const tag = reader.uint32();
586
+ switch (tag >>> 3) {
587
+ case 1:
588
+ message.password = reader.string();
589
+ break;
590
+ default:
591
+ reader.skipType(tag & 7);
592
+ break;
593
+ }
594
+ }
595
+ return message;
596
+ },
597
+ fromJSON(object) {
598
+ return { password: isSet(object.password) ? String(object.password) : "" };
599
+ },
600
+ toJSON(message) {
601
+ const obj = {};
602
+ message.password !== undefined && (obj.password = message.password);
603
+ return obj;
596
604
  },
597
605
  fromPartial(object) {
598
606
  var _a;
599
- const message = createBaseDisks();
600
- message.disks = ((_a = object.disks) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
607
+ const message = createBaseDataDiskDecrypt();
608
+ message.password = (_a = object.password) !== null && _a !== void 0 ? _a : "";
601
609
  return message;
602
610
  },
603
611
  };
@@ -618,35 +626,25 @@ exports.StartupStatus = {
618
626
  return writer;
619
627
  },
620
628
  decode(input, length) {
621
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
629
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
622
630
  let end = length === undefined ? reader.len : reader.pos + length;
623
631
  const message = createBaseStartupStatus();
624
632
  while (reader.pos < end) {
625
633
  const tag = reader.uint32();
626
634
  switch (tag >>> 3) {
627
635
  case 1:
628
- if (tag != 8) {
629
- break;
630
- }
631
636
  message.status = reader.int32();
632
- continue;
637
+ break;
633
638
  case 2:
634
- if (tag != 16) {
635
- break;
636
- }
637
639
  message.exception = reader.int32();
638
- continue;
640
+ break;
639
641
  case 3:
640
- if (tag != 26) {
641
- break;
642
- }
643
642
  message.exceptionData = reader.string();
644
- continue;
645
- }
646
- if ((tag & 7) == 4 || tag == 0) {
647
- break;
643
+ break;
644
+ default:
645
+ reader.skipType(tag & 7);
646
+ break;
648
647
  }
649
- reader.skipType(tag & 7);
650
648
  }
651
649
  return message;
652
650
  },
@@ -664,9 +662,6 @@ exports.StartupStatus = {
664
662
  message.exceptionData !== undefined && (obj.exceptionData = message.exceptionData);
665
663
  return obj;
666
664
  },
667
- create(base) {
668
- return exports.StartupStatus.fromPartial(base !== null && base !== void 0 ? base : {});
669
- },
670
665
  fromPartial(object) {
671
666
  var _a, _b, _c;
672
667
  const message = createBaseStartupStatus();
@@ -705,47 +700,31 @@ exports.BoxStatus = {
705
700
  return writer;
706
701
  },
707
702
  decode(input, length) {
708
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
703
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
709
704
  let end = length === undefined ? reader.len : reader.pos + length;
710
705
  const message = createBaseBoxStatus();
711
706
  while (reader.pos < end) {
712
707
  const tag = reader.uint32();
713
708
  switch (tag >>> 3) {
714
709
  case 1:
715
- if (tag != 10) {
716
- break;
717
- }
718
710
  message.dataPartition = exports.DataPartitionStatus.decode(reader, reader.uint32());
719
- continue;
711
+ break;
720
712
  case 2:
721
- if (tag != 16) {
722
- break;
723
- }
724
713
  message.hasInternet = reader.bool();
725
- continue;
714
+ break;
726
715
  case 3:
727
- if (tag != 24) {
728
- break;
729
- }
730
716
  message.hportalInitialized = reader.bool();
731
- continue;
717
+ break;
732
718
  case 4:
733
- if (tag != 34) {
734
- break;
735
- }
736
719
  message.startupStatus = exports.StartupStatus.decode(reader, reader.uint32());
737
- continue;
720
+ break;
738
721
  case 5:
739
- if (tag != 40) {
740
- break;
741
- }
742
722
  message.shutdownReason = reader.int32();
743
- continue;
744
- }
745
- if ((tag & 7) == 4 || tag == 0) {
746
- break;
723
+ break;
724
+ default:
725
+ reader.skipType(tag & 7);
726
+ break;
747
727
  }
748
- reader.skipType(tag & 7);
749
728
  }
750
729
  return message;
751
730
  },
@@ -769,9 +748,6 @@ exports.BoxStatus = {
769
748
  message.shutdownReason !== undefined && (obj.shutdownReason = shutdownReasonTypeToJSON(message.shutdownReason));
770
749
  return obj;
771
750
  },
772
- create(base) {
773
- return exports.BoxStatus.fromPartial(base !== null && base !== void 0 ? base : {});
774
- },
775
751
  fromPartial(object) {
776
752
  var _a, _b, _c;
777
753
  const message = createBaseBoxStatus();
@@ -791,13 +767,17 @@ class BoxStatusServiceClientImpl {
791
767
  constructor(rpc) {
792
768
  this.rpc = rpc;
793
769
  this.GetAll = this.GetAll.bind(this);
794
- this.Format = this.Format.bind(this);
770
+ this.DataFormat = this.DataFormat.bind(this);
771
+ this.DataDecrypt = this.DataDecrypt.bind(this);
795
772
  }
796
773
  GetAll(request, metadata) {
797
774
  return this.rpc.unary(exports.BoxStatusServiceGetAllDesc, empty_1.Empty.fromPartial(request), metadata);
798
775
  }
799
- Format(request, metadata) {
800
- return this.rpc.unary(exports.BoxStatusServiceFormatDesc, exports.Disks.fromPartial(request), metadata);
776
+ DataFormat(request, metadata) {
777
+ return this.rpc.unary(exports.BoxStatusServiceDataFormatDesc, exports.DataDiskFormat.fromPartial(request), metadata);
778
+ }
779
+ DataDecrypt(request, metadata) {
780
+ return this.rpc.unary(exports.BoxStatusServiceDataDecryptDesc, exports.DataDiskDecrypt.fromPartial(request), metadata);
801
781
  }
802
782
  }
803
783
  exports.BoxStatusServiceClientImpl = BoxStatusServiceClientImpl;
@@ -814,28 +794,44 @@ exports.BoxStatusServiceGetAllDesc = {
814
794
  },
815
795
  responseType: {
816
796
  deserializeBinary(data) {
817
- const value = exports.BoxStatus.decode(data);
818
- return Object.assign(Object.assign({}, value), { toObject() {
819
- return value;
797
+ return Object.assign(Object.assign({}, exports.BoxStatus.decode(data)), { toObject() {
798
+ return this;
799
+ } });
800
+ },
801
+ },
802
+ };
803
+ exports.BoxStatusServiceDataFormatDesc = {
804
+ methodName: "DataFormat",
805
+ service: exports.BoxStatusServiceDesc,
806
+ requestStream: false,
807
+ responseStream: false,
808
+ requestType: {
809
+ serializeBinary() {
810
+ return exports.DataDiskFormat.encode(this).finish();
811
+ },
812
+ },
813
+ responseType: {
814
+ deserializeBinary(data) {
815
+ return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
816
+ return this;
820
817
  } });
821
818
  },
822
819
  },
823
820
  };
824
- exports.BoxStatusServiceFormatDesc = {
825
- methodName: "Format",
821
+ exports.BoxStatusServiceDataDecryptDesc = {
822
+ methodName: "DataDecrypt",
826
823
  service: exports.BoxStatusServiceDesc,
827
824
  requestStream: false,
828
825
  responseStream: false,
829
826
  requestType: {
830
827
  serializeBinary() {
831
- return exports.Disks.encode(this).finish();
828
+ return exports.DataDiskDecrypt.encode(this).finish();
832
829
  },
833
830
  },
834
831
  responseType: {
835
832
  deserializeBinary(data) {
836
- const value = empty_1.Empty.decode(data);
837
- return Object.assign(Object.assign({}, value), { toObject() {
838
- return value;
833
+ return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
834
+ return this;
839
835
  } });
840
836
  },
841
837
  },
@@ -860,7 +856,7 @@ class GrpcWebImpl {
860
856
  debug: this.options.debug,
861
857
  onEnd: function (response) {
862
858
  if (response.status === grpc_web_1.grpc.Code.OK) {
863
- resolve(response.message.toObject());
859
+ resolve(response.message);
864
860
  }
865
861
  else {
866
862
  const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
@@ -872,7 +868,7 @@ class GrpcWebImpl {
872
868
  }
873
869
  }
874
870
  exports.GrpcWebImpl = GrpcWebImpl;
875
- var tsProtoGlobalThis = (() => {
871
+ var globalThis = (() => {
876
872
  if (typeof globalThis !== "undefined") {
877
873
  return globalThis;
878
874
  }
@@ -889,7 +885,7 @@ var tsProtoGlobalThis = (() => {
889
885
  })();
890
886
  function longToNumber(long) {
891
887
  if (long.gt(Number.MAX_SAFE_INTEGER)) {
892
- throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
888
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
893
889
  }
894
890
  return long.toNumber();
895
891
  }
@@ -900,7 +896,7 @@ if (minimal_1.default.util.Long !== long_1.default) {
900
896
  function isSet(value) {
901
897
  return value !== null && value !== undefined;
902
898
  }
903
- class GrpcWebError extends tsProtoGlobalThis.Error {
899
+ class GrpcWebError extends Error {
904
900
  constructor(message, code, metadata) {
905
901
  super(message);
906
902
  this.code = code;