@lazycatcloud/sdk 0.1.130 → 0.1.132

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