@lazycatcloud/sdk 0.1.129 → 0.1.130

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 (159) hide show
  1. package/dist/common/box.d.ts +55 -13
  2. package/dist/common/box.d.ts.map +1 -1
  3. package/dist/common/box.js +46 -47
  4. package/dist/common/box.js.map +1 -1
  5. package/dist/common/browseronly.d.ts +40 -12
  6. package/dist/common/browseronly.d.ts.map +1 -1
  7. package/dist/common/browseronly.js +50 -33
  8. package/dist/common/browseronly.js.map +1 -1
  9. package/dist/common/end_device.d.ts +103 -16
  10. package/dist/common/end_device.d.ts.map +1 -1
  11. package/dist/common/end_device.js +59 -49
  12. package/dist/common/end_device.js.map +1 -1
  13. package/dist/common/file_handler.d.ts +70 -14
  14. package/dist/common/file_handler.d.ts.map +1 -1
  15. package/dist/common/file_handler.js +43 -21
  16. package/dist/common/file_handler.js.map +1 -1
  17. package/dist/common/filetrans.d.ts +660 -91
  18. package/dist/common/filetrans.d.ts.map +1 -1
  19. package/dist/common/filetrans.js +163 -220
  20. package/dist/common/filetrans.js.map +1 -1
  21. package/dist/common/gateway.d.ts +61 -15
  22. package/dist/common/gateway.d.ts.map +1 -1
  23. package/dist/common/gateway.js +55 -41
  24. package/dist/common/gateway.js.map +1 -1
  25. package/dist/common/message.d.ts +21 -2
  26. package/dist/common/message.d.ts.map +1 -1
  27. package/dist/common/message.js +18 -25
  28. package/dist/common/message.js.map +1 -1
  29. package/dist/common/peripheral_device.d.ts +143 -20
  30. package/dist/common/peripheral_device.d.ts.map +1 -1
  31. package/dist/common/peripheral_device.js +59 -53
  32. package/dist/common/peripheral_device.js.map +1 -1
  33. package/dist/common/security_context.d.ts +54 -15
  34. package/dist/common/security_context.d.ts.map +1 -1
  35. package/dist/common/security_context.js +52 -39
  36. package/dist/common/security_context.js.map +1 -1
  37. package/dist/common/users.d.ts +96 -25
  38. package/dist/common/users.d.ts.map +1 -1
  39. package/dist/common/users.js +87 -46
  40. package/dist/common/users.js.map +1 -1
  41. package/dist/dlna/dlna.d.ts +102 -20
  42. package/dist/dlna/dlna.d.ts.map +1 -1
  43. package/dist/dlna/dlna.js +73 -68
  44. package/dist/dlna/dlna.js.map +1 -1
  45. package/dist/extentions/safe_app.d.ts +3 -3
  46. package/dist/extentions/safe_app.d.ts.map +1 -1
  47. package/dist/extentions/safe_app.js +10 -1
  48. package/dist/extentions/safe_app.js.map +1 -1
  49. package/dist/google/protobuf/descriptor.d.ts +54951 -4489
  50. package/dist/google/protobuf/descriptor.d.ts.map +1 -1
  51. package/dist/google/protobuf/descriptor.js +265 -414
  52. package/dist/google/protobuf/descriptor.js.map +1 -1
  53. package/dist/google/protobuf/empty.d.ts +2 -1
  54. package/dist/google/protobuf/empty.d.ts.map +1 -1
  55. package/dist/google/protobuf/empty.js +3 -0
  56. package/dist/google/protobuf/empty.js.map +1 -1
  57. package/dist/google/protobuf/timestamp.d.ts +9 -4
  58. package/dist/google/protobuf/timestamp.d.ts.map +1 -1
  59. package/dist/google/protobuf/timestamp.js +14 -8
  60. package/dist/google/protobuf/timestamp.js.map +1 -1
  61. package/dist/grpcweb.d.ts +1 -1
  62. package/dist/grpcweb.d.ts.map +1 -1
  63. package/dist/lanforward/lanforward.d.ts +22 -9
  64. package/dist/lanforward/lanforward.d.ts.map +1 -1
  65. package/dist/lanforward/lanforward.js +33 -16
  66. package/dist/lanforward/lanforward.js.map +1 -1
  67. package/dist/localdevice/clipboard.d.ts +36 -13
  68. package/dist/localdevice/clipboard.d.ts.map +1 -1
  69. package/dist/localdevice/clipboard.js +47 -40
  70. package/dist/localdevice/clipboard.js.map +1 -1
  71. package/dist/localdevice/config.d.ts +25 -8
  72. package/dist/localdevice/config.d.ts.map +1 -1
  73. package/dist/localdevice/config.js +29 -12
  74. package/dist/localdevice/config.js.map +1 -1
  75. package/dist/localdevice/device.d.ts +19 -7
  76. package/dist/localdevice/device.d.ts.map +1 -1
  77. package/dist/localdevice/device.js +27 -13
  78. package/dist/localdevice/device.js.map +1 -1
  79. package/dist/localdevice/dialog.d.ts +69 -19
  80. package/dist/localdevice/dialog.d.ts.map +1 -1
  81. package/dist/localdevice/dialog.js +58 -32
  82. package/dist/localdevice/dialog.js.map +1 -1
  83. package/dist/localdevice/local-launch.d.ts +94 -15
  84. package/dist/localdevice/local-launch.d.ts.map +1 -1
  85. package/dist/localdevice/local-launch.js +206 -27
  86. package/dist/localdevice/local-launch.js.map +1 -1
  87. package/dist/localdevice/network.d.ts +15 -7
  88. package/dist/localdevice/network.d.ts.map +1 -1
  89. package/dist/localdevice/network.js +26 -10
  90. package/dist/localdevice/network.js.map +1 -1
  91. package/dist/localdevice/permission.d.ts +60 -17
  92. package/dist/localdevice/permission.d.ts.map +1 -1
  93. package/dist/localdevice/permission.js +57 -52
  94. package/dist/localdevice/permission.js.map +1 -1
  95. package/dist/localdevice/photo.d.ts +193 -29
  96. package/dist/localdevice/photo.d.ts.map +1 -1
  97. package/dist/localdevice/photo.js +122 -172
  98. package/dist/localdevice/photo.js.map +1 -1
  99. package/dist/ssdp/ssdp.d.ts +28 -9
  100. package/dist/ssdp/ssdp.d.ts.map +1 -1
  101. package/dist/ssdp/ssdp.js +32 -13
  102. package/dist/ssdp/ssdp.js.map +1 -1
  103. package/dist/sys/OS_daemon.d.ts +29 -11
  104. package/dist/sys/OS_daemon.d.ts.map +1 -1
  105. package/dist/sys/OS_daemon.js +37 -20
  106. package/dist/sys/OS_daemon.js.map +1 -1
  107. package/dist/sys/OS_snapshot.d.ts +181 -33
  108. package/dist/sys/OS_snapshot.d.ts.map +1 -1
  109. package/dist/sys/OS_snapshot.js +141 -121
  110. package/dist/sys/OS_snapshot.js.map +1 -1
  111. package/dist/sys/OS_upgrader.d.ts +48 -13
  112. package/dist/sys/OS_upgrader.d.ts.map +1 -1
  113. package/dist/sys/OS_upgrader.js +68 -63
  114. package/dist/sys/OS_upgrader.js.map +1 -1
  115. package/dist/sys/event.d.ts +92 -20
  116. package/dist/sys/event.d.ts.map +1 -1
  117. package/dist/sys/event.js +65 -40
  118. package/dist/sys/event.js.map +1 -1
  119. package/dist/sys/hc-core/hc-core.d.ts +246 -34
  120. package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
  121. package/dist/sys/hc-core/hc-core.js +125 -102
  122. package/dist/sys/hc-core/hc-core.js.map +1 -1
  123. package/dist/sys/ingress.d.ts +97 -27
  124. package/dist/sys/ingress.d.ts.map +1 -1
  125. package/dist/sys/ingress.js +93 -82
  126. package/dist/sys/ingress.js.map +1 -1
  127. package/dist/sys/network_manager.d.ts +138 -17
  128. package/dist/sys/network_manager.d.ts.map +1 -1
  129. package/dist/sys/network_manager.js +72 -78
  130. package/dist/sys/network_manager.js.map +1 -1
  131. package/dist/sys/package_manager.d.ts +304 -41
  132. package/dist/sys/package_manager.d.ts.map +1 -1
  133. package/dist/sys/package_manager.js +121 -95
  134. package/dist/sys/package_manager.js.map +1 -1
  135. package/dist/sys/portal-server/portal-server.d.ts +335 -61
  136. package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
  137. package/dist/sys/portal-server/portal-server.js +215 -206
  138. package/dist/sys/portal-server/portal-server.js.map +1 -1
  139. package/dist/sys/snapd.d.ts +106 -19
  140. package/dist/sys/snapd.d.ts.map +1 -1
  141. package/dist/sys/snapd.js +82 -68
  142. package/dist/sys/snapd.js.map +1 -1
  143. package/package.json +1 -1
  144. package/dist/API.d.ts +0 -24
  145. package/dist/API.d.ts.map +0 -1
  146. package/dist/API.js +0 -117
  147. package/dist/API.js.map +0 -1
  148. package/dist/google/protobuf/wrappers.d.ts +0 -182
  149. package/dist/google/protobuf/wrappers.d.ts.map +0 -1
  150. package/dist/google/protobuf/wrappers.js +0 -458
  151. package/dist/google/protobuf/wrappers.js.map +0 -1
  152. package/dist/sys/message.d.ts +0 -186
  153. package/dist/sys/message.d.ts.map +0 -1
  154. package/dist/sys/message.js +0 -493
  155. package/dist/sys/message.js.map +0 -1
  156. package/dist/sys/settings.d.ts +0 -68
  157. package/dist/sys/settings.d.ts.map +0 -1
  158. package/dist/sys/settings.js +0 -183
  159. package/dist/sys/settings.js.map +0 -1
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.GrpcWebError = exports.GrpcWebImpl = exports.OSSnapshotServiceStopTransferDesc = exports.OSSnapshotServiceGetStatusDesc = exports.OSSnapshotServiceSnapshotBackupRestoreDesc = exports.OSSnapshotServiceSnapshotBackupListDesc = exports.OSSnapshotServiceSnapshotBackupDelDesc = exports.OSSnapshotServiceSnapshotBackupAddDesc = exports.OSSnapshotServiceSnapshotRestoreDesc = exports.OSSnapshotServiceSnapshotListDesc = exports.OSSnapshotServiceSnapshotDelDesc = exports.OSSnapshotServiceSnapshotAddDesc = exports.OSSnapshotServiceDatasetBackupListDesc = exports.OSSnapshotServiceDatasetBackupDelDesc = exports.OSSnapshotServiceDatasetListDesc = exports.OSSnapshotServiceDatasetDelDesc = exports.OSSnapshotServiceDatasetAddDesc = exports.OSSnapshotServiceBackupPoolListDesc = exports.OSSnapshotServiceBackupPoolDelDesc = exports.OSSnapshotServiceBackupPoolAddDesc = exports.OSSnapshotServiceDesc = exports.OSSnapshotServiceClientImpl = exports.SnapshotStatusResponse = exports.SnapshotBackupListRequest = exports.SnapshotBackupTransferResponse = exports.SnapshotBackupTransferRequest = exports.SnapshotBackupRequest = exports.SnapshotListResponse = exports.SnapshotDesc = exports.SnapshotRequest = exports.SnapshotDatasetListResponse = exports.SnapshotDatasetDesc = exports.SnapshotDatasetBackupRequest = exports.SnapshotDatasetRequest = exports.SnapshotBackupPoolListResponse = exports.SnapshotBackupPoolRequest = exports.snapshotTransferModeToJSON = exports.snapshotTransferModeFromJSON = exports.SnapshotTransferMode = exports.snapshotManagerStatusToJSON = exports.snapshotManagerStatusFromJSON = exports.SnapshotManagerStatus = void 0;
7
7
  /* eslint-disable */
8
8
  const grpc_web_1 = require("@improbable-eng/grpc-web");
9
- const empty_1 = require("../google/protobuf/empty");
10
9
  const browser_headers_1 = require("browser-headers");
11
10
  const long_1 = __importDefault(require("long"));
12
11
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
12
+ const empty_1 = require("../google/protobuf/empty");
13
13
  var SnapshotManagerStatus;
14
14
  (function (SnapshotManagerStatus) {
15
15
  SnapshotManagerStatus[SnapshotManagerStatus["Stopped"] = 0] = "Stopped";
@@ -112,15 +112,16 @@ exports.SnapshotBackupPoolRequest = {
112
112
  return message;
113
113
  },
114
114
  fromJSON(object) {
115
- return {
116
- PoolName: isSet(object.PoolName) ? String(object.PoolName) : "",
117
- };
115
+ return { PoolName: isSet(object.PoolName) ? String(object.PoolName) : "" };
118
116
  },
119
117
  toJSON(message) {
120
118
  const obj = {};
121
119
  message.PoolName !== undefined && (obj.PoolName = message.PoolName);
122
120
  return obj;
123
121
  },
122
+ create(base) {
123
+ return exports.SnapshotBackupPoolRequest.fromPartial(base !== null && base !== void 0 ? base : {});
124
+ },
124
125
  fromPartial(object) {
125
126
  var _a;
126
127
  const message = createBaseSnapshotBackupPoolRequest();
@@ -156,11 +157,7 @@ exports.SnapshotBackupPoolListResponse = {
156
157
  return message;
157
158
  },
158
159
  fromJSON(object) {
159
- return {
160
- PoolNameList: Array.isArray(object === null || object === void 0 ? void 0 : object.PoolNameList)
161
- ? object.PoolNameList.map((e) => String(e))
162
- : [],
163
- };
160
+ return { PoolNameList: Array.isArray(object === null || object === void 0 ? void 0 : object.PoolNameList) ? object.PoolNameList.map((e) => String(e)) : [] };
164
161
  },
165
162
  toJSON(message) {
166
163
  const obj = {};
@@ -172,6 +169,9 @@ exports.SnapshotBackupPoolListResponse = {
172
169
  }
173
170
  return obj;
174
171
  },
172
+ create(base) {
173
+ return exports.SnapshotBackupPoolListResponse.fromPartial(base !== null && base !== void 0 ? base : {});
174
+ },
175
175
  fromPartial(object) {
176
176
  var _a;
177
177
  const message = createBaseSnapshotBackupPoolListResponse();
@@ -207,16 +207,16 @@ exports.SnapshotDatasetRequest = {
207
207
  return message;
208
208
  },
209
209
  fromJSON(object) {
210
- return {
211
- DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
212
- };
210
+ return { DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "" };
213
211
  },
214
212
  toJSON(message) {
215
213
  const obj = {};
216
- message.DatasetPath !== undefined &&
217
- (obj.DatasetPath = message.DatasetPath);
214
+ message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
218
215
  return obj;
219
216
  },
217
+ create(base) {
218
+ return exports.SnapshotDatasetRequest.fromPartial(base !== null && base !== void 0 ? base : {});
219
+ },
220
220
  fromPartial(object) {
221
221
  var _a;
222
222
  const message = createBaseSnapshotDatasetRequest();
@@ -266,10 +266,12 @@ exports.SnapshotDatasetBackupRequest = {
266
266
  toJSON(message) {
267
267
  const obj = {};
268
268
  message.PoolName !== undefined && (obj.PoolName = message.PoolName);
269
- message.DatasetPath !== undefined &&
270
- (obj.DatasetPath = message.DatasetPath);
269
+ message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
271
270
  return obj;
272
271
  },
272
+ create(base) {
273
+ return exports.SnapshotDatasetBackupRequest.fromPartial(base !== null && base !== void 0 ? base : {});
274
+ },
273
275
  fromPartial(object) {
274
276
  var _a, _b;
275
277
  const message = createBaseSnapshotDatasetBackupRequest();
@@ -327,23 +329,21 @@ exports.SnapshotDatasetDesc = {
327
329
  return {
328
330
  Path: isSet(object.Path) ? String(object.Path) : "",
329
331
  BytesUsed: isSet(object.BytesUsed) ? Number(object.BytesUsed) : 0,
330
- SnapshotBytesUsed: isSet(object.SnapshotBytesUsed)
331
- ? Number(object.SnapshotBytesUsed)
332
- : 0,
332
+ SnapshotBytesUsed: isSet(object.SnapshotBytesUsed) ? Number(object.SnapshotBytesUsed) : 0,
333
333
  CreatedAt: isSet(object.CreatedAt) ? Number(object.CreatedAt) : 0,
334
334
  };
335
335
  },
336
336
  toJSON(message) {
337
337
  const obj = {};
338
338
  message.Path !== undefined && (obj.Path = message.Path);
339
- message.BytesUsed !== undefined &&
340
- (obj.BytesUsed = Math.round(message.BytesUsed));
341
- message.SnapshotBytesUsed !== undefined &&
342
- (obj.SnapshotBytesUsed = Math.round(message.SnapshotBytesUsed));
343
- message.CreatedAt !== undefined &&
344
- (obj.CreatedAt = Math.round(message.CreatedAt));
339
+ message.BytesUsed !== undefined && (obj.BytesUsed = Math.round(message.BytesUsed));
340
+ message.SnapshotBytesUsed !== undefined && (obj.SnapshotBytesUsed = Math.round(message.SnapshotBytesUsed));
341
+ message.CreatedAt !== undefined && (obj.CreatedAt = Math.round(message.CreatedAt));
345
342
  return obj;
346
343
  },
344
+ create(base) {
345
+ return exports.SnapshotDatasetDesc.fromPartial(base !== null && base !== void 0 ? base : {});
346
+ },
347
347
  fromPartial(object) {
348
348
  var _a, _b, _c, _d;
349
349
  const message = createBaseSnapshotDatasetDesc();
@@ -398,11 +398,13 @@ exports.SnapshotDatasetListResponse = {
398
398
  }
399
399
  return obj;
400
400
  },
401
+ create(base) {
402
+ return exports.SnapshotDatasetListResponse.fromPartial(base !== null && base !== void 0 ? base : {});
403
+ },
401
404
  fromPartial(object) {
402
405
  var _a;
403
406
  const message = createBaseSnapshotDatasetListResponse();
404
- message.DatasetList =
405
- ((_a = object.DatasetList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.SnapshotDatasetDesc.fromPartial(e))) || [];
407
+ message.DatasetList = ((_a = object.DatasetList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.SnapshotDatasetDesc.fromPartial(e))) || [];
406
408
  return message;
407
409
  },
408
410
  };
@@ -442,19 +444,18 @@ exports.SnapshotRequest = {
442
444
  fromJSON(object) {
443
445
  return {
444
446
  DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
445
- SnapshotName: isSet(object.SnapshotName)
446
- ? String(object.SnapshotName)
447
- : "",
447
+ SnapshotName: isSet(object.SnapshotName) ? String(object.SnapshotName) : "",
448
448
  };
449
449
  },
450
450
  toJSON(message) {
451
451
  const obj = {};
452
- message.DatasetPath !== undefined &&
453
- (obj.DatasetPath = message.DatasetPath);
454
- message.SnapshotName !== undefined &&
455
- (obj.SnapshotName = message.SnapshotName);
452
+ message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
453
+ message.SnapshotName !== undefined && (obj.SnapshotName = message.SnapshotName);
456
454
  return obj;
457
455
  },
456
+ create(base) {
457
+ return exports.SnapshotRequest.fromPartial(base !== null && base !== void 0 ? base : {});
458
+ },
458
459
  fromPartial(object) {
459
460
  var _a, _b;
460
461
  const message = createBaseSnapshotRequest();
@@ -512,12 +513,13 @@ exports.SnapshotDesc = {
512
513
  toJSON(message) {
513
514
  const obj = {};
514
515
  message.Name !== undefined && (obj.Name = message.Name);
515
- message.BytesUsed !== undefined &&
516
- (obj.BytesUsed = Math.round(message.BytesUsed));
517
- message.CreatedAt !== undefined &&
518
- (obj.CreatedAt = Math.round(message.CreatedAt));
516
+ message.BytesUsed !== undefined && (obj.BytesUsed = Math.round(message.BytesUsed));
517
+ message.CreatedAt !== undefined && (obj.CreatedAt = Math.round(message.CreatedAt));
519
518
  return obj;
520
519
  },
520
+ create(base) {
521
+ return exports.SnapshotDesc.fromPartial(base !== null && base !== void 0 ? base : {});
522
+ },
521
523
  fromPartial(object) {
522
524
  var _a, _b, _c;
523
525
  const message = createBaseSnapshotDesc();
@@ -571,11 +573,13 @@ exports.SnapshotListResponse = {
571
573
  }
572
574
  return obj;
573
575
  },
576
+ create(base) {
577
+ return exports.SnapshotListResponse.fromPartial(base !== null && base !== void 0 ? base : {});
578
+ },
574
579
  fromPartial(object) {
575
580
  var _a;
576
581
  const message = createBaseSnapshotListResponse();
577
- message.SnapshotList =
578
- ((_a = object.SnapshotList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.SnapshotDesc.fromPartial(e))) || [];
582
+ message.SnapshotList = ((_a = object.SnapshotList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.SnapshotDesc.fromPartial(e))) || [];
579
583
  return message;
580
584
  },
581
585
  };
@@ -622,20 +626,19 @@ exports.SnapshotBackupRequest = {
622
626
  return {
623
627
  PoolName: isSet(object.PoolName) ? String(object.PoolName) : "",
624
628
  DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
625
- SnapshotName: isSet(object.SnapshotName)
626
- ? String(object.SnapshotName)
627
- : "",
629
+ SnapshotName: isSet(object.SnapshotName) ? String(object.SnapshotName) : "",
628
630
  };
629
631
  },
630
632
  toJSON(message) {
631
633
  const obj = {};
632
634
  message.PoolName !== undefined && (obj.PoolName = message.PoolName);
633
- message.DatasetPath !== undefined &&
634
- (obj.DatasetPath = message.DatasetPath);
635
- message.SnapshotName !== undefined &&
636
- (obj.SnapshotName = message.SnapshotName);
635
+ message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
636
+ message.SnapshotName !== undefined && (obj.SnapshotName = message.SnapshotName);
637
637
  return obj;
638
638
  },
639
+ create(base) {
640
+ return exports.SnapshotBackupRequest.fromPartial(base !== null && base !== void 0 ? base : {});
641
+ },
639
642
  fromPartial(object) {
640
643
  var _a, _b, _c;
641
644
  const message = createBaseSnapshotBackupRequest();
@@ -694,25 +697,21 @@ exports.SnapshotBackupTransferRequest = {
694
697
  return {
695
698
  PoolName: isSet(object.PoolName) ? String(object.PoolName) : "",
696
699
  DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
697
- SnapshotName: isSet(object.SnapshotName)
698
- ? String(object.SnapshotName)
699
- : "",
700
- TransferMode: isSet(object.TransferMode)
701
- ? snapshotTransferModeFromJSON(object.TransferMode)
702
- : 0,
700
+ SnapshotName: isSet(object.SnapshotName) ? String(object.SnapshotName) : "",
701
+ TransferMode: isSet(object.TransferMode) ? snapshotTransferModeFromJSON(object.TransferMode) : 0,
703
702
  };
704
703
  },
705
704
  toJSON(message) {
706
705
  const obj = {};
707
706
  message.PoolName !== undefined && (obj.PoolName = message.PoolName);
708
- message.DatasetPath !== undefined &&
709
- (obj.DatasetPath = message.DatasetPath);
710
- message.SnapshotName !== undefined &&
711
- (obj.SnapshotName = message.SnapshotName);
712
- message.TransferMode !== undefined &&
713
- (obj.TransferMode = snapshotTransferModeToJSON(message.TransferMode));
707
+ message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
708
+ message.SnapshotName !== undefined && (obj.SnapshotName = message.SnapshotName);
709
+ message.TransferMode !== undefined && (obj.TransferMode = snapshotTransferModeToJSON(message.TransferMode));
714
710
  return obj;
715
711
  },
712
+ create(base) {
713
+ return exports.SnapshotBackupTransferRequest.fromPartial(base !== null && base !== void 0 ? base : {});
714
+ },
716
715
  fromPartial(object) {
717
716
  var _a, _b, _c, _d;
718
717
  const message = createBaseSnapshotBackupTransferRequest();
@@ -764,12 +763,13 @@ exports.SnapshotBackupTransferResponse = {
764
763
  },
765
764
  toJSON(message) {
766
765
  const obj = {};
767
- message.BytesSent !== undefined &&
768
- (obj.BytesSent = Math.round(message.BytesSent));
769
- message.BytesTotal !== undefined &&
770
- (obj.BytesTotal = Math.round(message.BytesTotal));
766
+ message.BytesSent !== undefined && (obj.BytesSent = Math.round(message.BytesSent));
767
+ message.BytesTotal !== undefined && (obj.BytesTotal = Math.round(message.BytesTotal));
771
768
  return obj;
772
769
  },
770
+ create(base) {
771
+ return exports.SnapshotBackupTransferResponse.fromPartial(base !== null && base !== void 0 ? base : {});
772
+ },
773
773
  fromPartial(object) {
774
774
  var _a, _b;
775
775
  const message = createBaseSnapshotBackupTransferResponse();
@@ -820,10 +820,12 @@ exports.SnapshotBackupListRequest = {
820
820
  toJSON(message) {
821
821
  const obj = {};
822
822
  message.PoolName !== undefined && (obj.PoolName = message.PoolName);
823
- message.DatasetPath !== undefined &&
824
- (obj.DatasetPath = message.DatasetPath);
823
+ message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
825
824
  return obj;
826
825
  },
826
+ create(base) {
827
+ return exports.SnapshotBackupListRequest.fromPartial(base !== null && base !== void 0 ? base : {});
828
+ },
827
829
  fromPartial(object) {
828
830
  var _a, _b;
829
831
  const message = createBaseSnapshotBackupListRequest();
@@ -873,23 +875,21 @@ exports.SnapshotStatusResponse = {
873
875
  },
874
876
  fromJSON(object) {
875
877
  return {
876
- Status: isSet(object.Status)
877
- ? snapshotManagerStatusFromJSON(object.Status)
878
- : 0,
878
+ Status: isSet(object.Status) ? snapshotManagerStatusFromJSON(object.Status) : 0,
879
879
  BytesSent: isSet(object.BytesSent) ? Number(object.BytesSent) : 0,
880
880
  BytesTotal: isSet(object.BytesTotal) ? Number(object.BytesTotal) : 0,
881
881
  };
882
882
  },
883
883
  toJSON(message) {
884
884
  const obj = {};
885
- message.Status !== undefined &&
886
- (obj.Status = snapshotManagerStatusToJSON(message.Status));
887
- message.BytesSent !== undefined &&
888
- (obj.BytesSent = Math.round(message.BytesSent));
889
- message.BytesTotal !== undefined &&
890
- (obj.BytesTotal = Math.round(message.BytesTotal));
885
+ message.Status !== undefined && (obj.Status = snapshotManagerStatusToJSON(message.Status));
886
+ message.BytesSent !== undefined && (obj.BytesSent = Math.round(message.BytesSent));
887
+ message.BytesTotal !== undefined && (obj.BytesTotal = Math.round(message.BytesTotal));
891
888
  return obj;
892
889
  },
890
+ create(base) {
891
+ return exports.SnapshotStatusResponse.fromPartial(base !== null && base !== void 0 ? base : {});
892
+ },
893
893
  fromPartial(object) {
894
894
  var _a, _b, _c;
895
895
  const message = createBaseSnapshotStatusResponse();
@@ -977,9 +977,7 @@ class OSSnapshotServiceClientImpl {
977
977
  }
978
978
  }
979
979
  exports.OSSnapshotServiceClientImpl = OSSnapshotServiceClientImpl;
980
- exports.OSSnapshotServiceDesc = {
981
- serviceName: "cloud.lazycat.apis.sys.OSSnapshotService",
982
- };
980
+ exports.OSSnapshotServiceDesc = { serviceName: "cloud.lazycat.apis.sys.OSSnapshotService" };
983
981
  exports.OSSnapshotServiceBackupPoolAddDesc = {
984
982
  methodName: "BackupPoolAdd",
985
983
  service: exports.OSSnapshotServiceDesc,
@@ -992,8 +990,9 @@ exports.OSSnapshotServiceBackupPoolAddDesc = {
992
990
  },
993
991
  responseType: {
994
992
  deserializeBinary(data) {
995
- return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
996
- return this;
993
+ const value = empty_1.Empty.decode(data);
994
+ return Object.assign(Object.assign({}, value), { toObject() {
995
+ return value;
997
996
  } });
998
997
  },
999
998
  },
@@ -1010,8 +1009,9 @@ exports.OSSnapshotServiceBackupPoolDelDesc = {
1010
1009
  },
1011
1010
  responseType: {
1012
1011
  deserializeBinary(data) {
1013
- return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
1014
- return this;
1012
+ const value = empty_1.Empty.decode(data);
1013
+ return Object.assign(Object.assign({}, value), { toObject() {
1014
+ return value;
1015
1015
  } });
1016
1016
  },
1017
1017
  },
@@ -1028,8 +1028,9 @@ exports.OSSnapshotServiceBackupPoolListDesc = {
1028
1028
  },
1029
1029
  responseType: {
1030
1030
  deserializeBinary(data) {
1031
- return Object.assign(Object.assign({}, exports.SnapshotBackupPoolListResponse.decode(data)), { toObject() {
1032
- return this;
1031
+ const value = exports.SnapshotBackupPoolListResponse.decode(data);
1032
+ return Object.assign(Object.assign({}, value), { toObject() {
1033
+ return value;
1033
1034
  } });
1034
1035
  },
1035
1036
  },
@@ -1046,8 +1047,9 @@ exports.OSSnapshotServiceDatasetAddDesc = {
1046
1047
  },
1047
1048
  responseType: {
1048
1049
  deserializeBinary(data) {
1049
- return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
1050
- return this;
1050
+ const value = empty_1.Empty.decode(data);
1051
+ return Object.assign(Object.assign({}, value), { toObject() {
1052
+ return value;
1051
1053
  } });
1052
1054
  },
1053
1055
  },
@@ -1064,8 +1066,9 @@ exports.OSSnapshotServiceDatasetDelDesc = {
1064
1066
  },
1065
1067
  responseType: {
1066
1068
  deserializeBinary(data) {
1067
- return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
1068
- return this;
1069
+ const value = empty_1.Empty.decode(data);
1070
+ return Object.assign(Object.assign({}, value), { toObject() {
1071
+ return value;
1069
1072
  } });
1070
1073
  },
1071
1074
  },
@@ -1082,8 +1085,9 @@ exports.OSSnapshotServiceDatasetListDesc = {
1082
1085
  },
1083
1086
  responseType: {
1084
1087
  deserializeBinary(data) {
1085
- return Object.assign(Object.assign({}, exports.SnapshotDatasetListResponse.decode(data)), { toObject() {
1086
- return this;
1088
+ const value = exports.SnapshotDatasetListResponse.decode(data);
1089
+ return Object.assign(Object.assign({}, value), { toObject() {
1090
+ return value;
1087
1091
  } });
1088
1092
  },
1089
1093
  },
@@ -1100,8 +1104,9 @@ exports.OSSnapshotServiceDatasetBackupDelDesc = {
1100
1104
  },
1101
1105
  responseType: {
1102
1106
  deserializeBinary(data) {
1103
- return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
1104
- return this;
1107
+ const value = empty_1.Empty.decode(data);
1108
+ return Object.assign(Object.assign({}, value), { toObject() {
1109
+ return value;
1105
1110
  } });
1106
1111
  },
1107
1112
  },
@@ -1118,8 +1123,9 @@ exports.OSSnapshotServiceDatasetBackupListDesc = {
1118
1123
  },
1119
1124
  responseType: {
1120
1125
  deserializeBinary(data) {
1121
- return Object.assign(Object.assign({}, exports.SnapshotDatasetListResponse.decode(data)), { toObject() {
1122
- return this;
1126
+ const value = exports.SnapshotDatasetListResponse.decode(data);
1127
+ return Object.assign(Object.assign({}, value), { toObject() {
1128
+ return value;
1123
1129
  } });
1124
1130
  },
1125
1131
  },
@@ -1136,8 +1142,9 @@ exports.OSSnapshotServiceSnapshotAddDesc = {
1136
1142
  },
1137
1143
  responseType: {
1138
1144
  deserializeBinary(data) {
1139
- return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
1140
- return this;
1145
+ const value = empty_1.Empty.decode(data);
1146
+ return Object.assign(Object.assign({}, value), { toObject() {
1147
+ return value;
1141
1148
  } });
1142
1149
  },
1143
1150
  },
@@ -1154,8 +1161,9 @@ exports.OSSnapshotServiceSnapshotDelDesc = {
1154
1161
  },
1155
1162
  responseType: {
1156
1163
  deserializeBinary(data) {
1157
- return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
1158
- return this;
1164
+ const value = empty_1.Empty.decode(data);
1165
+ return Object.assign(Object.assign({}, value), { toObject() {
1166
+ return value;
1159
1167
  } });
1160
1168
  },
1161
1169
  },
@@ -1172,8 +1180,9 @@ exports.OSSnapshotServiceSnapshotListDesc = {
1172
1180
  },
1173
1181
  responseType: {
1174
1182
  deserializeBinary(data) {
1175
- return Object.assign(Object.assign({}, exports.SnapshotListResponse.decode(data)), { toObject() {
1176
- return this;
1183
+ const value = exports.SnapshotListResponse.decode(data);
1184
+ return Object.assign(Object.assign({}, value), { toObject() {
1185
+ return value;
1177
1186
  } });
1178
1187
  },
1179
1188
  },
@@ -1190,8 +1199,9 @@ exports.OSSnapshotServiceSnapshotRestoreDesc = {
1190
1199
  },
1191
1200
  responseType: {
1192
1201
  deserializeBinary(data) {
1193
- return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
1194
- return this;
1202
+ const value = empty_1.Empty.decode(data);
1203
+ return Object.assign(Object.assign({}, value), { toObject() {
1204
+ return value;
1195
1205
  } });
1196
1206
  },
1197
1207
  },
@@ -1208,8 +1218,9 @@ exports.OSSnapshotServiceSnapshotBackupAddDesc = {
1208
1218
  },
1209
1219
  responseType: {
1210
1220
  deserializeBinary(data) {
1211
- return Object.assign(Object.assign({}, exports.SnapshotBackupTransferResponse.decode(data)), { toObject() {
1212
- return this;
1221
+ const value = exports.SnapshotBackupTransferResponse.decode(data);
1222
+ return Object.assign(Object.assign({}, value), { toObject() {
1223
+ return value;
1213
1224
  } });
1214
1225
  },
1215
1226
  },
@@ -1226,8 +1237,9 @@ exports.OSSnapshotServiceSnapshotBackupDelDesc = {
1226
1237
  },
1227
1238
  responseType: {
1228
1239
  deserializeBinary(data) {
1229
- return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
1230
- return this;
1240
+ const value = empty_1.Empty.decode(data);
1241
+ return Object.assign(Object.assign({}, value), { toObject() {
1242
+ return value;
1231
1243
  } });
1232
1244
  },
1233
1245
  },
@@ -1244,8 +1256,9 @@ exports.OSSnapshotServiceSnapshotBackupListDesc = {
1244
1256
  },
1245
1257
  responseType: {
1246
1258
  deserializeBinary(data) {
1247
- return Object.assign(Object.assign({}, exports.SnapshotListResponse.decode(data)), { toObject() {
1248
- return this;
1259
+ const value = exports.SnapshotListResponse.decode(data);
1260
+ return Object.assign(Object.assign({}, value), { toObject() {
1261
+ return value;
1249
1262
  } });
1250
1263
  },
1251
1264
  },
@@ -1262,8 +1275,9 @@ exports.OSSnapshotServiceSnapshotBackupRestoreDesc = {
1262
1275
  },
1263
1276
  responseType: {
1264
1277
  deserializeBinary(data) {
1265
- return Object.assign(Object.assign({}, exports.SnapshotBackupTransferResponse.decode(data)), { toObject() {
1266
- return this;
1278
+ const value = exports.SnapshotBackupTransferResponse.decode(data);
1279
+ return Object.assign(Object.assign({}, value), { toObject() {
1280
+ return value;
1267
1281
  } });
1268
1282
  },
1269
1283
  },
@@ -1280,8 +1294,9 @@ exports.OSSnapshotServiceGetStatusDesc = {
1280
1294
  },
1281
1295
  responseType: {
1282
1296
  deserializeBinary(data) {
1283
- return Object.assign(Object.assign({}, exports.SnapshotStatusResponse.decode(data)), { toObject() {
1284
- return this;
1297
+ const value = exports.SnapshotStatusResponse.decode(data);
1298
+ return Object.assign(Object.assign({}, value), { toObject() {
1299
+ return value;
1285
1300
  } });
1286
1301
  },
1287
1302
  },
@@ -1298,8 +1313,9 @@ exports.OSSnapshotServiceStopTransferDesc = {
1298
1313
  },
1299
1314
  responseType: {
1300
1315
  deserializeBinary(data) {
1301
- return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
1302
- return this;
1316
+ const value = empty_1.Empty.decode(data);
1317
+ return Object.assign(Object.assign({}, value), { toObject() {
1318
+ return value;
1303
1319
  } });
1304
1320
  },
1305
1321
  },
@@ -1324,7 +1340,7 @@ class GrpcWebImpl {
1324
1340
  debug: this.options.debug,
1325
1341
  onEnd: function (response) {
1326
1342
  if (response.status === grpc_web_1.grpc.Code.OK) {
1327
- resolve(response.message);
1343
+ resolve(response.message.toObject());
1328
1344
  }
1329
1345
  else {
1330
1346
  const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
@@ -1336,20 +1352,24 @@ class GrpcWebImpl {
1336
1352
  }
1337
1353
  }
1338
1354
  exports.GrpcWebImpl = GrpcWebImpl;
1339
- var globalThis = (() => {
1340
- if (typeof globalThis !== "undefined")
1355
+ var tsProtoGlobalThis = (() => {
1356
+ if (typeof globalThis !== "undefined") {
1341
1357
  return globalThis;
1342
- if (typeof self !== "undefined")
1358
+ }
1359
+ if (typeof self !== "undefined") {
1343
1360
  return self;
1344
- if (typeof window !== "undefined")
1361
+ }
1362
+ if (typeof window !== "undefined") {
1345
1363
  return window;
1346
- if (typeof global !== "undefined")
1364
+ }
1365
+ if (typeof global !== "undefined") {
1347
1366
  return global;
1367
+ }
1348
1368
  throw "Unable to locate global object";
1349
1369
  })();
1350
1370
  function longToNumber(long) {
1351
1371
  if (long.gt(Number.MAX_SAFE_INTEGER)) {
1352
- throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
1372
+ throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
1353
1373
  }
1354
1374
  return long.toNumber();
1355
1375
  }
@@ -1360,7 +1380,7 @@ if (minimal_1.default.util.Long !== long_1.default) {
1360
1380
  function isSet(value) {
1361
1381
  return value !== null && value !== undefined;
1362
1382
  }
1363
- class GrpcWebError extends Error {
1383
+ class GrpcWebError extends tsProtoGlobalThis.Error {
1364
1384
  constructor(message, code, metadata) {
1365
1385
  super(message);
1366
1386
  this.code = code;