@lazycatcloud/sdk 0.1.458 → 0.1.460

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 (47) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/package.json +1 -1
  6. package/dist/sys/OS_snapshot.d.ts +39 -39
  7. package/dist/sys/OS_snapshot.d.ts.map +1 -1
  8. package/dist/sys/OS_snapshot.js +140 -92
  9. package/dist/sys/OS_snapshot.js.map +1 -1
  10. package/dist/sys/OS_upgrader.d.ts +21 -21
  11. package/dist/sys/OS_upgrader.d.ts.map +1 -1
  12. package/dist/sys/OS_upgrader.js +61 -45
  13. package/dist/sys/OS_upgrader.js.map +1 -1
  14. package/dist/sys/hc-core/hc-core.d.ts +1 -6
  15. package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
  16. package/dist/sys/hc-core/hc-core.js +6 -36
  17. package/dist/sys/hc-core/hc-core.js.map +1 -1
  18. package/dist/sys/installer.d.ts +19 -19
  19. package/dist/sys/installer.d.ts.map +1 -1
  20. package/dist/sys/installer.js +88 -65
  21. package/dist/sys/installer.js.map +1 -1
  22. package/dist/sys/osupgrader.d.ts +256 -0
  23. package/dist/sys/osupgrader.d.ts.map +1 -0
  24. package/dist/sys/osupgrader.js +536 -0
  25. package/dist/sys/osupgrader.js.map +1 -0
  26. package/dist/sys/package_manager.d.ts +461 -145
  27. package/dist/sys/package_manager.d.ts.map +1 -1
  28. package/dist/sys/package_manager.js +650 -182
  29. package/dist/sys/package_manager.js.map +1 -1
  30. package/dist/sys/snapd.d.ts +19 -19
  31. package/dist/sys/snapd.d.ts.map +1 -1
  32. package/dist/sys/snapd.js +73 -51
  33. package/dist/sys/snapd.js.map +1 -1
  34. package/dist/tsconfig.tsbuildinfo +1 -1
  35. package/package.json +1 -1
  36. package/dist/sys/OS_daemon.d.ts +0 -133
  37. package/dist/sys/OS_daemon.d.ts.map +0 -1
  38. package/dist/sys/OS_daemon.js +0 -364
  39. package/dist/sys/OS_daemon.js.map +0 -1
  40. package/dist/sys/box-status.d.ts +0 -603
  41. package/dist/sys/box-status.d.ts.map +0 -1
  42. package/dist/sys/box-status.js +0 -1004
  43. package/dist/sys/box-status.js.map +0 -1
  44. package/dist/sys/portal-server/portal-server.d.ts +0 -849
  45. package/dist/sys/portal-server/portal-server.d.ts.map +0 -1
  46. package/dist/sys/portal-server/portal-server.js +0 -2350
  47. package/dist/sys/portal-server/portal-server.js.map +0 -1
@@ -3,8 +3,8 @@ 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.PackageManagerGetAppDownloadProgressDesc = exports.PackageManagerSubscribeAppChangeDesc = exports.PackageManagerQueryApplicationDesc = exports.PackageManagerSetAppCfgDesc = exports.PackageManagerGetAppCfgDesc = exports.PackageManagerClearCacheDesc = exports.PackageManagerResumeDesc = exports.PackageManagerPauseDesc = exports.PackageManagerUninstallDesc = exports.PackageManagerInstallDesc = exports.PackageManagerDesc = exports.PackageManagerClientImpl = exports.GetAppDownloadProgressResponse_ProgressesEntry = exports.GetAppDownloadProgressResponse = exports.GetAppDownloadProgressRequest = exports.SubscribeAppChangeResponse = exports.SubscribeAppChangeRequest = exports.AppInstance = exports.ListFileHandlerResponse = exports.FileHandlerInfo = exports.ListFileHandlerRequest = exports.GetActionURLResponse = exports.GetActionURLRequest = exports.Appid = exports.GetUserPermissionsRequest = exports.UserPermission = exports.AppStorageUsage = exports.QueryAppStorageUsageRequest = exports.QueryApplicationResponse = exports.QueryApplicationRequest = exports.SetAppCfgRequest = exports.GetAppCfgResponse = exports.GetAppCfgRequest = exports.AppCfg = exports.AppInfo = exports.AppDownloadProgress = exports.UninstallRequest = exports.InstallRequest = exports.PkgURL = exports.RestartMySelfResponse = exports.StopMySelfRequest = exports.actionToJSON = exports.actionFromJSON = exports.Action = exports.instanceStatusToJSON = exports.instanceStatusFromJSON = exports.InstanceStatus = exports.appStatusToJSON = exports.appStatusFromJSON = exports.AppStatus = void 0;
7
- exports.GrpcWebError = exports.GrpcWebImpl = exports.PackageManagerStopMySelfDesc = exports.PackageManagerListFileHandlerDesc = exports.PackageManagerGetActionURLDesc = exports.PackageManagerPauseAppDownloadDesc = exports.PackageManagerGetUserPermissionsDesc = exports.PackageManagerSetUserPermissionsDesc = exports.PackageManagerQueryAppStorageUsageDesc = void 0;
6
+ exports.PackageManagerResumeDesc = exports.PackageManagerPauseDesc = exports.PackageManagerUninstallDesc = exports.PackageManagerInstallLPKDesc = exports.PackageManagerDesc = exports.PackageManagerClientImpl = exports.CancelPendingTaskResponse = exports.CancelPendingTaskRequest = exports.QueryPendingTaskResponse = exports.QueryPendingTaskRequest = exports.PendingTaskInfo = exports.SubscribeAppChangeResponse = exports.SubscribeAppChangeRequest = exports.AppInstance = exports.ListFileHandlerResponse = exports.FileHandlerInfo = exports.ListFileHandlerRequest = exports.GetActionURLResponse = exports.GetActionURLRequest = exports.Appid = exports.GetUserPermissionsRequest = exports.UserPermission = exports.AppStorageUsage = exports.QueryAppStorageUsageRequest = exports.QueryApplicationResponse = exports.QueryApplicationRequest = exports.SetAppCfgRequest = exports.GetAppCfgResponse = exports.GetAppCfgRequest = exports.AppCfg = exports.AppInfo = exports.AppDownloadProgress = exports.UninstallRequest = exports.InstallLPKResponse = exports.InstallLPKRequest = exports.InstallRequest = exports.RestartMySelfResponse = exports.StopMySelfRequest = exports.pendingTaskInfo_PendingTaskStatusToJSON = exports.pendingTaskInfo_PendingTaskStatusFromJSON = exports.PendingTaskInfo_PendingTaskStatus = exports.actionToJSON = exports.actionFromJSON = exports.Action = exports.instanceStatusToJSON = exports.instanceStatusFromJSON = exports.InstanceStatus = exports.appStatusToJSON = exports.appStatusFromJSON = exports.AppStatus = void 0;
7
+ exports.GrpcWebError = exports.GrpcWebImpl = exports.PackageManagerInstallDesc = exports.PackageManagerPauseAppDownloadDesc = exports.PackageManagerStopMySelfDesc = exports.PackageManagerListFileHandlerDesc = exports.PackageManagerGetActionURLDesc = exports.PackageManagerGetUserPermissionsDesc = exports.PackageManagerSetUserPermissionsDesc = exports.PackageManagerQueryAppStorageUsageDesc = exports.PackageManagerSubscribeAppChangeDesc = exports.PackageManagerCancelPendingTaskDesc = exports.PackageManagerQueryPendingTaskDesc = exports.PackageManagerQueryApplicationDesc = exports.PackageManagerSetAppCfgDesc = exports.PackageManagerGetAppCfgDesc = exports.PackageManagerClearCacheDesc = void 0;
8
8
  /* eslint-disable */
9
9
  const grpc_web_1 = require("@improbable-eng/grpc-web");
10
10
  const browser_headers_1 = require("browser-headers");
@@ -13,6 +13,7 @@ const minimal_1 = __importDefault(require("protobufjs/minimal"));
13
13
  const rxjs_1 = require("rxjs");
14
14
  const operators_1 = require("rxjs/operators");
15
15
  const empty_1 = require("../google/protobuf/empty");
16
+ const timestamp_1 = require("../google/protobuf/timestamp");
16
17
  var AppStatus;
17
18
  (function (AppStatus) {
18
19
  /** NotInstalled - 应用未安装 */
@@ -166,6 +167,82 @@ function actionToJSON(object) {
166
167
  }
167
168
  }
168
169
  exports.actionToJSON = actionToJSON;
170
+ var PendingTaskInfo_PendingTaskStatus;
171
+ (function (PendingTaskInfo_PendingTaskStatus) {
172
+ PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["Unknown"] = 0] = "Unknown";
173
+ PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["CREATING"] = 1] = "CREATING";
174
+ PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["DOWNLOADING"] = 2] = "DOWNLOADING";
175
+ /** IMAGE_PULLING - 拉取镜像中 */
176
+ PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["IMAGE_PULLING"] = 3] = "IMAGE_PULLING";
177
+ PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["INSTALLING"] = 4] = "INSTALLING";
178
+ PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["PAUSED"] = 5] = "PAUSED";
179
+ PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["DOWNLOAD_ERR"] = 6] = "DOWNLOAD_ERR";
180
+ PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["INSTALL_ERR"] = 7] = "INSTALL_ERR";
181
+ PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["INSTALL_OK"] = 8] = "INSTALL_OK";
182
+ PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
183
+ })(PendingTaskInfo_PendingTaskStatus = exports.PendingTaskInfo_PendingTaskStatus || (exports.PendingTaskInfo_PendingTaskStatus = {}));
184
+ function pendingTaskInfo_PendingTaskStatusFromJSON(object) {
185
+ switch (object) {
186
+ case 0:
187
+ case "Unknown":
188
+ return PendingTaskInfo_PendingTaskStatus.Unknown;
189
+ case 1:
190
+ case "CREATING":
191
+ return PendingTaskInfo_PendingTaskStatus.CREATING;
192
+ case 2:
193
+ case "DOWNLOADING":
194
+ return PendingTaskInfo_PendingTaskStatus.DOWNLOADING;
195
+ case 3:
196
+ case "IMAGE_PULLING":
197
+ return PendingTaskInfo_PendingTaskStatus.IMAGE_PULLING;
198
+ case 4:
199
+ case "INSTALLING":
200
+ return PendingTaskInfo_PendingTaskStatus.INSTALLING;
201
+ case 5:
202
+ case "PAUSED":
203
+ return PendingTaskInfo_PendingTaskStatus.PAUSED;
204
+ case 6:
205
+ case "DOWNLOAD_ERR":
206
+ return PendingTaskInfo_PendingTaskStatus.DOWNLOAD_ERR;
207
+ case 7:
208
+ case "INSTALL_ERR":
209
+ return PendingTaskInfo_PendingTaskStatus.INSTALL_ERR;
210
+ case 8:
211
+ case "INSTALL_OK":
212
+ return PendingTaskInfo_PendingTaskStatus.INSTALL_OK;
213
+ case -1:
214
+ case "UNRECOGNIZED":
215
+ default:
216
+ return PendingTaskInfo_PendingTaskStatus.UNRECOGNIZED;
217
+ }
218
+ }
219
+ exports.pendingTaskInfo_PendingTaskStatusFromJSON = pendingTaskInfo_PendingTaskStatusFromJSON;
220
+ function pendingTaskInfo_PendingTaskStatusToJSON(object) {
221
+ switch (object) {
222
+ case PendingTaskInfo_PendingTaskStatus.Unknown:
223
+ return "Unknown";
224
+ case PendingTaskInfo_PendingTaskStatus.CREATING:
225
+ return "CREATING";
226
+ case PendingTaskInfo_PendingTaskStatus.DOWNLOADING:
227
+ return "DOWNLOADING";
228
+ case PendingTaskInfo_PendingTaskStatus.IMAGE_PULLING:
229
+ return "IMAGE_PULLING";
230
+ case PendingTaskInfo_PendingTaskStatus.INSTALLING:
231
+ return "INSTALLING";
232
+ case PendingTaskInfo_PendingTaskStatus.PAUSED:
233
+ return "PAUSED";
234
+ case PendingTaskInfo_PendingTaskStatus.DOWNLOAD_ERR:
235
+ return "DOWNLOAD_ERR";
236
+ case PendingTaskInfo_PendingTaskStatus.INSTALL_ERR:
237
+ return "INSTALL_ERR";
238
+ case PendingTaskInfo_PendingTaskStatus.INSTALL_OK:
239
+ return "INSTALL_OK";
240
+ case PendingTaskInfo_PendingTaskStatus.UNRECOGNIZED:
241
+ default:
242
+ return "UNRECOGNIZED";
243
+ }
244
+ }
245
+ exports.pendingTaskInfo_PendingTaskStatusToJSON = pendingTaskInfo_PendingTaskStatusToJSON;
169
246
  function createBaseStopMySelfRequest() {
170
247
  return { needRestart: false };
171
248
  }
@@ -254,38 +331,65 @@ exports.RestartMySelfResponse = {
254
331
  return message;
255
332
  },
256
333
  };
257
- function createBasePkgURL() {
258
- return { url: "", sha256: "" };
334
+ function createBaseInstallRequest() {
335
+ return { url: "", sha256: "", appid: undefined, subdomain: undefined, title: undefined };
259
336
  }
260
- exports.PkgURL = {
337
+ exports.InstallRequest = {
261
338
  encode(message, writer = minimal_1.default.Writer.create()) {
262
339
  if (message.url !== "") {
263
- writer.uint32(10).string(message.url);
340
+ writer.uint32(18).string(message.url);
264
341
  }
265
342
  if (message.sha256 !== "") {
266
- writer.uint32(18).string(message.sha256);
343
+ writer.uint32(26).string(message.sha256);
344
+ }
345
+ if (message.appid !== undefined) {
346
+ writer.uint32(10).string(message.appid);
347
+ }
348
+ if (message.subdomain !== undefined) {
349
+ writer.uint32(34).string(message.subdomain);
350
+ }
351
+ if (message.title !== undefined) {
352
+ writer.uint32(42).string(message.title);
267
353
  }
268
354
  return writer;
269
355
  },
270
356
  decode(input, length) {
271
357
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
272
358
  let end = length === undefined ? reader.len : reader.pos + length;
273
- const message = createBasePkgURL();
359
+ const message = createBaseInstallRequest();
274
360
  while (reader.pos < end) {
275
361
  const tag = reader.uint32();
276
362
  switch (tag >>> 3) {
277
- case 1:
278
- if (tag !== 10) {
363
+ case 2:
364
+ if (tag !== 18) {
279
365
  break;
280
366
  }
281
367
  message.url = reader.string();
282
368
  continue;
283
- case 2:
284
- if (tag !== 18) {
369
+ case 3:
370
+ if (tag !== 26) {
285
371
  break;
286
372
  }
287
373
  message.sha256 = reader.string();
288
374
  continue;
375
+ case 1:
376
+ if (tag !== 10) {
377
+ break;
378
+ }
379
+ message.appid = reader.string();
380
+ continue;
381
+ case 4:
382
+ if (tag !== 34) {
383
+ break;
384
+ }
385
+ message.subdomain = reader.string();
386
+ continue;
387
+ case 5:
388
+ if (tag !== 42) {
389
+ break;
390
+ }
391
+ message.title = reader.string();
392
+ continue;
289
393
  }
290
394
  if ((tag & 7) === 4 || tag === 0) {
291
395
  break;
@@ -298,6 +402,9 @@ exports.PkgURL = {
298
402
  return {
299
403
  url: isSet(object.url) ? String(object.url) : "",
300
404
  sha256: isSet(object.sha256) ? String(object.sha256) : "",
405
+ appid: isSet(object.appid) ? String(object.appid) : undefined,
406
+ subdomain: isSet(object.subdomain) ? String(object.subdomain) : undefined,
407
+ title: isSet(object.title) ? String(object.title) : undefined,
301
408
  };
302
409
  },
303
410
  toJSON(message) {
@@ -308,53 +415,71 @@ exports.PkgURL = {
308
415
  if (message.sha256 !== "") {
309
416
  obj.sha256 = message.sha256;
310
417
  }
418
+ if (message.appid !== undefined) {
419
+ obj.appid = message.appid;
420
+ }
421
+ if (message.subdomain !== undefined) {
422
+ obj.subdomain = message.subdomain;
423
+ }
424
+ if (message.title !== undefined) {
425
+ obj.title = message.title;
426
+ }
311
427
  return obj;
312
428
  },
313
429
  create(base) {
314
- return exports.PkgURL.fromPartial(base !== null && base !== void 0 ? base : {});
430
+ return exports.InstallRequest.fromPartial(base !== null && base !== void 0 ? base : {});
315
431
  },
316
432
  fromPartial(object) {
317
- var _a, _b;
318
- const message = createBasePkgURL();
433
+ var _a, _b, _c, _d, _e;
434
+ const message = createBaseInstallRequest();
319
435
  message.url = (_a = object.url) !== null && _a !== void 0 ? _a : "";
320
436
  message.sha256 = (_b = object.sha256) !== null && _b !== void 0 ? _b : "";
437
+ message.appid = (_c = object.appid) !== null && _c !== void 0 ? _c : undefined;
438
+ message.subdomain = (_d = object.subdomain) !== null && _d !== void 0 ? _d : undefined;
439
+ message.title = (_e = object.title) !== null && _e !== void 0 ? _e : undefined;
321
440
  return message;
322
441
  },
323
442
  };
324
- function createBaseInstallRequest() {
325
- return { url: "", sha256: "", appid: undefined, subdomain: undefined, title: undefined };
443
+ function createBaseInstallLPKRequest() {
444
+ return { lpkUrl: "", waitUnitDone: undefined, sha256: undefined, pkgId: undefined, tmpTitle: undefined };
326
445
  }
327
- exports.InstallRequest = {
446
+ exports.InstallLPKRequest = {
328
447
  encode(message, writer = minimal_1.default.Writer.create()) {
329
- if (message.url !== "") {
330
- writer.uint32(18).string(message.url);
448
+ if (message.lpkUrl !== "") {
449
+ writer.uint32(10).string(message.lpkUrl);
331
450
  }
332
- if (message.sha256 !== "") {
333
- writer.uint32(26).string(message.sha256);
451
+ if (message.waitUnitDone !== undefined) {
452
+ writer.uint32(16).bool(message.waitUnitDone);
334
453
  }
335
- if (message.appid !== undefined) {
336
- writer.uint32(10).string(message.appid);
454
+ if (message.sha256 !== undefined) {
455
+ writer.uint32(26).string(message.sha256);
337
456
  }
338
- if (message.subdomain !== undefined) {
339
- writer.uint32(34).string(message.subdomain);
457
+ if (message.pkgId !== undefined) {
458
+ writer.uint32(34).string(message.pkgId);
340
459
  }
341
- if (message.title !== undefined) {
342
- writer.uint32(42).string(message.title);
460
+ if (message.tmpTitle !== undefined) {
461
+ writer.uint32(42).string(message.tmpTitle);
343
462
  }
344
463
  return writer;
345
464
  },
346
465
  decode(input, length) {
347
466
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
348
467
  let end = length === undefined ? reader.len : reader.pos + length;
349
- const message = createBaseInstallRequest();
468
+ const message = createBaseInstallLPKRequest();
350
469
  while (reader.pos < end) {
351
470
  const tag = reader.uint32();
352
471
  switch (tag >>> 3) {
472
+ case 1:
473
+ if (tag !== 10) {
474
+ break;
475
+ }
476
+ message.lpkUrl = reader.string();
477
+ continue;
353
478
  case 2:
354
- if (tag !== 18) {
479
+ if (tag !== 16) {
355
480
  break;
356
481
  }
357
- message.url = reader.string();
482
+ message.waitUnitDone = reader.bool();
358
483
  continue;
359
484
  case 3:
360
485
  if (tag !== 26) {
@@ -362,23 +487,17 @@ exports.InstallRequest = {
362
487
  }
363
488
  message.sha256 = reader.string();
364
489
  continue;
365
- case 1:
366
- if (tag !== 10) {
367
- break;
368
- }
369
- message.appid = reader.string();
370
- continue;
371
490
  case 4:
372
491
  if (tag !== 34) {
373
492
  break;
374
493
  }
375
- message.subdomain = reader.string();
494
+ message.pkgId = reader.string();
376
495
  continue;
377
496
  case 5:
378
497
  if (tag !== 42) {
379
498
  break;
380
499
  }
381
- message.title = reader.string();
500
+ message.tmpTitle = reader.string();
382
501
  continue;
383
502
  }
384
503
  if ((tag & 7) === 4 || tag === 0) {
@@ -390,43 +509,95 @@ exports.InstallRequest = {
390
509
  },
391
510
  fromJSON(object) {
392
511
  return {
393
- url: isSet(object.url) ? String(object.url) : "",
394
- sha256: isSet(object.sha256) ? String(object.sha256) : "",
395
- appid: isSet(object.appid) ? String(object.appid) : undefined,
396
- subdomain: isSet(object.subdomain) ? String(object.subdomain) : undefined,
397
- title: isSet(object.title) ? String(object.title) : undefined,
512
+ lpkUrl: isSet(object.lpkUrl) ? String(object.lpkUrl) : "",
513
+ waitUnitDone: isSet(object.waitUnitDone) ? Boolean(object.waitUnitDone) : undefined,
514
+ sha256: isSet(object.sha256) ? String(object.sha256) : undefined,
515
+ pkgId: isSet(object.pkgId) ? String(object.pkgId) : undefined,
516
+ tmpTitle: isSet(object.tmpTitle) ? String(object.tmpTitle) : undefined,
398
517
  };
399
518
  },
400
519
  toJSON(message) {
401
520
  const obj = {};
402
- if (message.url !== "") {
403
- obj.url = message.url;
521
+ if (message.lpkUrl !== "") {
522
+ obj.lpkUrl = message.lpkUrl;
404
523
  }
405
- if (message.sha256 !== "") {
524
+ if (message.waitUnitDone !== undefined) {
525
+ obj.waitUnitDone = message.waitUnitDone;
526
+ }
527
+ if (message.sha256 !== undefined) {
406
528
  obj.sha256 = message.sha256;
407
529
  }
408
- if (message.appid !== undefined) {
409
- obj.appid = message.appid;
530
+ if (message.pkgId !== undefined) {
531
+ obj.pkgId = message.pkgId;
410
532
  }
411
- if (message.subdomain !== undefined) {
412
- obj.subdomain = message.subdomain;
413
- }
414
- if (message.title !== undefined) {
415
- obj.title = message.title;
533
+ if (message.tmpTitle !== undefined) {
534
+ obj.tmpTitle = message.tmpTitle;
416
535
  }
417
536
  return obj;
418
537
  },
419
538
  create(base) {
420
- return exports.InstallRequest.fromPartial(base !== null && base !== void 0 ? base : {});
539
+ return exports.InstallLPKRequest.fromPartial(base !== null && base !== void 0 ? base : {});
421
540
  },
422
541
  fromPartial(object) {
423
542
  var _a, _b, _c, _d, _e;
424
- const message = createBaseInstallRequest();
425
- message.url = (_a = object.url) !== null && _a !== void 0 ? _a : "";
426
- message.sha256 = (_b = object.sha256) !== null && _b !== void 0 ? _b : "";
427
- message.appid = (_c = object.appid) !== null && _c !== void 0 ? _c : undefined;
428
- message.subdomain = (_d = object.subdomain) !== null && _d !== void 0 ? _d : undefined;
429
- message.title = (_e = object.title) !== null && _e !== void 0 ? _e : undefined;
543
+ const message = createBaseInstallLPKRequest();
544
+ message.lpkUrl = (_a = object.lpkUrl) !== null && _a !== void 0 ? _a : "";
545
+ message.waitUnitDone = (_b = object.waitUnitDone) !== null && _b !== void 0 ? _b : undefined;
546
+ message.sha256 = (_c = object.sha256) !== null && _c !== void 0 ? _c : undefined;
547
+ message.pkgId = (_d = object.pkgId) !== null && _d !== void 0 ? _d : undefined;
548
+ message.tmpTitle = (_e = object.tmpTitle) !== null && _e !== void 0 ? _e : undefined;
549
+ return message;
550
+ },
551
+ };
552
+ function createBaseInstallLPKResponse() {
553
+ return { taskInfo: undefined };
554
+ }
555
+ exports.InstallLPKResponse = {
556
+ encode(message, writer = minimal_1.default.Writer.create()) {
557
+ if (message.taskInfo !== undefined) {
558
+ exports.PendingTaskInfo.encode(message.taskInfo, writer.uint32(10).fork()).ldelim();
559
+ }
560
+ return writer;
561
+ },
562
+ decode(input, length) {
563
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
564
+ let end = length === undefined ? reader.len : reader.pos + length;
565
+ const message = createBaseInstallLPKResponse();
566
+ while (reader.pos < end) {
567
+ const tag = reader.uint32();
568
+ switch (tag >>> 3) {
569
+ case 1:
570
+ if (tag !== 10) {
571
+ break;
572
+ }
573
+ message.taskInfo = exports.PendingTaskInfo.decode(reader, reader.uint32());
574
+ continue;
575
+ }
576
+ if ((tag & 7) === 4 || tag === 0) {
577
+ break;
578
+ }
579
+ reader.skipType(tag & 7);
580
+ }
581
+ return message;
582
+ },
583
+ fromJSON(object) {
584
+ return { taskInfo: isSet(object.taskInfo) ? exports.PendingTaskInfo.fromJSON(object.taskInfo) : undefined };
585
+ },
586
+ toJSON(message) {
587
+ const obj = {};
588
+ if (message.taskInfo !== undefined) {
589
+ obj.taskInfo = exports.PendingTaskInfo.toJSON(message.taskInfo);
590
+ }
591
+ return obj;
592
+ },
593
+ create(base) {
594
+ return exports.InstallLPKResponse.fromPartial(base !== null && base !== void 0 ? base : {});
595
+ },
596
+ fromPartial(object) {
597
+ const message = createBaseInstallLPKResponse();
598
+ message.taskInfo = (object.taskInfo !== undefined && object.taskInfo !== null)
599
+ ? exports.PendingTaskInfo.fromPartial(object.taskInfo)
600
+ : undefined;
430
601
  return message;
431
602
  },
432
603
  };
@@ -581,6 +752,7 @@ function createBaseAppInfo() {
581
752
  deployId: "",
582
753
  subdomain: "",
583
754
  owner: "",
755
+ supportDeployParams: false,
584
756
  };
585
757
  }
586
758
  exports.AppInfo = {
@@ -630,6 +802,9 @@ exports.AppInfo = {
630
802
  if (message.owner !== "") {
631
803
  writer.uint32(130).string(message.owner);
632
804
  }
805
+ if (message.supportDeployParams === true) {
806
+ writer.uint32(136).bool(message.supportDeployParams);
807
+ }
633
808
  return writer;
634
809
  },
635
810
  decode(input, length) {
@@ -729,6 +904,12 @@ exports.AppInfo = {
729
904
  }
730
905
  message.owner = reader.string();
731
906
  continue;
907
+ case 17:
908
+ if (tag !== 136) {
909
+ break;
910
+ }
911
+ message.supportDeployParams = reader.bool();
912
+ continue;
732
913
  }
733
914
  if ((tag & 7) === 4 || tag === 0) {
734
915
  break;
@@ -758,6 +939,7 @@ exports.AppInfo = {
758
939
  deployId: isSet(object.deployId) ? String(object.deployId) : "",
759
940
  subdomain: isSet(object.subdomain) ? String(object.subdomain) : "",
760
941
  owner: isSet(object.owner) ? String(object.owner) : "",
942
+ supportDeployParams: isSet(object.supportDeployParams) ? Boolean(object.supportDeployParams) : false,
761
943
  };
762
944
  },
763
945
  toJSON(message) {
@@ -808,13 +990,16 @@ exports.AppInfo = {
808
990
  if (message.owner !== "") {
809
991
  obj.owner = message.owner;
810
992
  }
993
+ if (message.supportDeployParams === true) {
994
+ obj.supportDeployParams = message.supportDeployParams;
995
+ }
811
996
  return obj;
812
997
  },
813
998
  create(base) {
814
999
  return exports.AppInfo.fromPartial(base !== null && base !== void 0 ? base : {});
815
1000
  },
816
1001
  fromPartial(object) {
817
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
1002
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
818
1003
  const message = createBaseAppInfo();
819
1004
  message.appid = (_a = object.appid) !== null && _a !== void 0 ? _a : "";
820
1005
  message.status = (_b = object.status) !== null && _b !== void 0 ? _b : 0;
@@ -833,6 +1018,7 @@ exports.AppInfo = {
833
1018
  message.deployId = (_m = object.deployId) !== null && _m !== void 0 ? _m : "";
834
1019
  message.subdomain = (_o = object.subdomain) !== null && _o !== void 0 ? _o : "";
835
1020
  message.owner = (_p = object.owner) !== null && _p !== void 0 ? _p : "";
1021
+ message.supportDeployParams = (_q = object.supportDeployParams) !== null && _q !== void 0 ? _q : false;
836
1022
  return message;
837
1023
  },
838
1024
  };
@@ -1056,7 +1242,7 @@ exports.SetAppCfgRequest = {
1056
1242
  },
1057
1243
  };
1058
1244
  function createBaseQueryApplicationRequest() {
1059
- return { todoRemoveAppidList: [], otherUid: undefined, onlyOwner: undefined };
1245
+ return { todoRemoveAppidList: [], otherUid: undefined, onlyOwner: undefined, ignorePendingPkg: undefined };
1060
1246
  }
1061
1247
  exports.QueryApplicationRequest = {
1062
1248
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -1069,6 +1255,9 @@ exports.QueryApplicationRequest = {
1069
1255
  if (message.onlyOwner !== undefined) {
1070
1256
  writer.uint32(24).bool(message.onlyOwner);
1071
1257
  }
1258
+ if (message.ignorePendingPkg !== undefined) {
1259
+ writer.uint32(32).bool(message.ignorePendingPkg);
1260
+ }
1072
1261
  return writer;
1073
1262
  },
1074
1263
  decode(input, length) {
@@ -1096,6 +1285,12 @@ exports.QueryApplicationRequest = {
1096
1285
  }
1097
1286
  message.onlyOwner = reader.bool();
1098
1287
  continue;
1288
+ case 4:
1289
+ if (tag !== 32) {
1290
+ break;
1291
+ }
1292
+ message.ignorePendingPkg = reader.bool();
1293
+ continue;
1099
1294
  }
1100
1295
  if ((tag & 7) === 4 || tag === 0) {
1101
1296
  break;
@@ -1111,6 +1306,7 @@ exports.QueryApplicationRequest = {
1111
1306
  : [],
1112
1307
  otherUid: isSet(object.otherUid) ? String(object.otherUid) : undefined,
1113
1308
  onlyOwner: isSet(object.onlyOwner) ? Boolean(object.onlyOwner) : undefined,
1309
+ ignorePendingPkg: isSet(object.ignorePendingPkg) ? Boolean(object.ignorePendingPkg) : undefined,
1114
1310
  };
1115
1311
  },
1116
1312
  toJSON(message) {
@@ -1125,17 +1321,21 @@ exports.QueryApplicationRequest = {
1125
1321
  if (message.onlyOwner !== undefined) {
1126
1322
  obj.onlyOwner = message.onlyOwner;
1127
1323
  }
1324
+ if (message.ignorePendingPkg !== undefined) {
1325
+ obj.ignorePendingPkg = message.ignorePendingPkg;
1326
+ }
1128
1327
  return obj;
1129
1328
  },
1130
1329
  create(base) {
1131
1330
  return exports.QueryApplicationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1132
1331
  },
1133
1332
  fromPartial(object) {
1134
- var _a, _b, _c;
1333
+ var _a, _b, _c, _d;
1135
1334
  const message = createBaseQueryApplicationRequest();
1136
1335
  message.todoRemoveAppidList = ((_a = object.todoRemoveAppidList) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
1137
1336
  message.otherUid = (_b = object.otherUid) !== null && _b !== void 0 ? _b : undefined;
1138
1337
  message.onlyOwner = (_c = object.onlyOwner) !== null && _c !== void 0 ? _c : undefined;
1338
+ message.ignorePendingPkg = (_d = object.ignorePendingPkg) !== null && _d !== void 0 ? _d : undefined;
1139
1339
  return message;
1140
1340
  },
1141
1341
  };
@@ -2085,20 +2285,62 @@ exports.SubscribeAppChangeResponse = {
2085
2285
  return message;
2086
2286
  },
2087
2287
  };
2088
- function createBaseGetAppDownloadProgressRequest() {
2089
- return { appidList: [] };
2288
+ function createBasePendingTaskInfo() {
2289
+ return {
2290
+ taskId: "",
2291
+ status: 0,
2292
+ createAt: undefined,
2293
+ downloadUrl: "",
2294
+ totalSize: undefined,
2295
+ downloadedSize: 0,
2296
+ taskSha256: undefined,
2297
+ taskTitle: undefined,
2298
+ taskPkgId: undefined,
2299
+ realPkgId: undefined,
2300
+ detail: undefined,
2301
+ };
2090
2302
  }
2091
- exports.GetAppDownloadProgressRequest = {
2303
+ exports.PendingTaskInfo = {
2092
2304
  encode(message, writer = minimal_1.default.Writer.create()) {
2093
- for (const v of message.appidList) {
2094
- writer.uint32(10).string(v);
2305
+ if (message.taskId !== "") {
2306
+ writer.uint32(10).string(message.taskId);
2307
+ }
2308
+ if (message.status !== 0) {
2309
+ writer.uint32(16).int32(message.status);
2310
+ }
2311
+ if (message.createAt !== undefined) {
2312
+ timestamp_1.Timestamp.encode(toTimestamp(message.createAt), writer.uint32(26).fork()).ldelim();
2313
+ }
2314
+ if (message.downloadUrl !== "") {
2315
+ writer.uint32(34).string(message.downloadUrl);
2316
+ }
2317
+ if (message.totalSize !== undefined) {
2318
+ writer.uint32(40).uint64(message.totalSize);
2319
+ }
2320
+ if (message.downloadedSize !== 0) {
2321
+ writer.uint32(48).uint64(message.downloadedSize);
2322
+ }
2323
+ if (message.taskSha256 !== undefined) {
2324
+ writer.uint32(58).string(message.taskSha256);
2325
+ }
2326
+ if (message.taskTitle !== undefined) {
2327
+ writer.uint32(66).string(message.taskTitle);
2328
+ }
2329
+ if (message.taskPkgId !== undefined) {
2330
+ writer.uint32(74).string(message.taskPkgId);
2331
+ }
2332
+ if (message.realPkgId !== undefined) {
2333
+ writer.uint32(82).string(message.realPkgId);
2334
+ }
2335
+ if (message.detail !== undefined) {
2336
+ writer.uint32(90).string(message.detail);
2095
2337
  }
2096
2338
  return writer;
2097
2339
  },
2098
2340
  decode(input, length) {
2099
2341
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2100
2342
  let end = length === undefined ? reader.len : reader.pos + length;
2101
- const message = createBaseGetAppDownloadProgressRequest();
2343
+ const message = createBasePendingTaskInfo();
2102
2344
  while (reader.pos < end) {
2103
2345
  const tag = reader.uint32();
2104
2346
  switch (tag >>> 3) {
@@ -2106,7 +2348,67 @@ exports.GetAppDownloadProgressRequest = {
2106
2348
  if (tag !== 10) {
2107
2349
  break;
2108
2350
  }
2109
- message.appidList.push(reader.string());
2351
+ message.taskId = reader.string();
2352
+ continue;
2353
+ case 2:
2354
+ if (tag !== 16) {
2355
+ break;
2356
+ }
2357
+ message.status = reader.int32();
2358
+ continue;
2359
+ case 3:
2360
+ if (tag !== 26) {
2361
+ break;
2362
+ }
2363
+ message.createAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
2364
+ continue;
2365
+ case 4:
2366
+ if (tag !== 34) {
2367
+ break;
2368
+ }
2369
+ message.downloadUrl = reader.string();
2370
+ continue;
2371
+ case 5:
2372
+ if (tag !== 40) {
2373
+ break;
2374
+ }
2375
+ message.totalSize = longToNumber(reader.uint64());
2376
+ continue;
2377
+ case 6:
2378
+ if (tag !== 48) {
2379
+ break;
2380
+ }
2381
+ message.downloadedSize = longToNumber(reader.uint64());
2382
+ continue;
2383
+ case 7:
2384
+ if (tag !== 58) {
2385
+ break;
2386
+ }
2387
+ message.taskSha256 = reader.string();
2388
+ continue;
2389
+ case 8:
2390
+ if (tag !== 66) {
2391
+ break;
2392
+ }
2393
+ message.taskTitle = reader.string();
2394
+ continue;
2395
+ case 9:
2396
+ if (tag !== 74) {
2397
+ break;
2398
+ }
2399
+ message.taskPkgId = reader.string();
2400
+ continue;
2401
+ case 10:
2402
+ if (tag !== 82) {
2403
+ break;
2404
+ }
2405
+ message.realPkgId = reader.string();
2406
+ continue;
2407
+ case 11:
2408
+ if (tag !== 90) {
2409
+ break;
2410
+ }
2411
+ message.detail = reader.string();
2110
2412
  continue;
2111
2413
  }
2112
2414
  if ((tag & 7) === 4 || tag === 0) {
@@ -2117,41 +2419,128 @@ exports.GetAppDownloadProgressRequest = {
2117
2419
  return message;
2118
2420
  },
2119
2421
  fromJSON(object) {
2120
- return { appidList: Array.isArray(object === null || object === void 0 ? void 0 : object.appidList) ? object.appidList.map((e) => String(e)) : [] };
2422
+ return {
2423
+ taskId: isSet(object.taskId) ? String(object.taskId) : "",
2424
+ status: isSet(object.status) ? pendingTaskInfo_PendingTaskStatusFromJSON(object.status) : 0,
2425
+ createAt: isSet(object.createAt) ? fromJsonTimestamp(object.createAt) : undefined,
2426
+ downloadUrl: isSet(object.downloadUrl) ? String(object.downloadUrl) : "",
2427
+ totalSize: isSet(object.totalSize) ? Number(object.totalSize) : undefined,
2428
+ downloadedSize: isSet(object.downloadedSize) ? Number(object.downloadedSize) : 0,
2429
+ taskSha256: isSet(object.taskSha256) ? String(object.taskSha256) : undefined,
2430
+ taskTitle: isSet(object.taskTitle) ? String(object.taskTitle) : undefined,
2431
+ taskPkgId: isSet(object.taskPkgId) ? String(object.taskPkgId) : undefined,
2432
+ realPkgId: isSet(object.realPkgId) ? String(object.realPkgId) : undefined,
2433
+ detail: isSet(object.detail) ? String(object.detail) : undefined,
2434
+ };
2121
2435
  },
2122
2436
  toJSON(message) {
2123
- var _a;
2124
2437
  const obj = {};
2125
- if ((_a = message.appidList) === null || _a === void 0 ? void 0 : _a.length) {
2126
- obj.appidList = message.appidList;
2438
+ if (message.taskId !== "") {
2439
+ obj.taskId = message.taskId;
2440
+ }
2441
+ if (message.status !== 0) {
2442
+ obj.status = pendingTaskInfo_PendingTaskStatusToJSON(message.status);
2443
+ }
2444
+ if (message.createAt !== undefined) {
2445
+ obj.createAt = message.createAt.toISOString();
2446
+ }
2447
+ if (message.downloadUrl !== "") {
2448
+ obj.downloadUrl = message.downloadUrl;
2449
+ }
2450
+ if (message.totalSize !== undefined) {
2451
+ obj.totalSize = Math.round(message.totalSize);
2452
+ }
2453
+ if (message.downloadedSize !== 0) {
2454
+ obj.downloadedSize = Math.round(message.downloadedSize);
2455
+ }
2456
+ if (message.taskSha256 !== undefined) {
2457
+ obj.taskSha256 = message.taskSha256;
2458
+ }
2459
+ if (message.taskTitle !== undefined) {
2460
+ obj.taskTitle = message.taskTitle;
2461
+ }
2462
+ if (message.taskPkgId !== undefined) {
2463
+ obj.taskPkgId = message.taskPkgId;
2464
+ }
2465
+ if (message.realPkgId !== undefined) {
2466
+ obj.realPkgId = message.realPkgId;
2467
+ }
2468
+ if (message.detail !== undefined) {
2469
+ obj.detail = message.detail;
2127
2470
  }
2128
2471
  return obj;
2129
2472
  },
2130
2473
  create(base) {
2131
- return exports.GetAppDownloadProgressRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2474
+ return exports.PendingTaskInfo.fromPartial(base !== null && base !== void 0 ? base : {});
2132
2475
  },
2133
2476
  fromPartial(object) {
2134
- var _a;
2135
- const message = createBaseGetAppDownloadProgressRequest();
2136
- message.appidList = ((_a = object.appidList) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
2477
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
2478
+ const message = createBasePendingTaskInfo();
2479
+ message.taskId = (_a = object.taskId) !== null && _a !== void 0 ? _a : "";
2480
+ message.status = (_b = object.status) !== null && _b !== void 0 ? _b : 0;
2481
+ message.createAt = (_c = object.createAt) !== null && _c !== void 0 ? _c : undefined;
2482
+ message.downloadUrl = (_d = object.downloadUrl) !== null && _d !== void 0 ? _d : "";
2483
+ message.totalSize = (_e = object.totalSize) !== null && _e !== void 0 ? _e : undefined;
2484
+ message.downloadedSize = (_f = object.downloadedSize) !== null && _f !== void 0 ? _f : 0;
2485
+ message.taskSha256 = (_g = object.taskSha256) !== null && _g !== void 0 ? _g : undefined;
2486
+ message.taskTitle = (_h = object.taskTitle) !== null && _h !== void 0 ? _h : undefined;
2487
+ message.taskPkgId = (_j = object.taskPkgId) !== null && _j !== void 0 ? _j : undefined;
2488
+ message.realPkgId = (_k = object.realPkgId) !== null && _k !== void 0 ? _k : undefined;
2489
+ message.detail = (_l = object.detail) !== null && _l !== void 0 ? _l : undefined;
2490
+ return message;
2491
+ },
2492
+ };
2493
+ function createBaseQueryPendingTaskRequest() {
2494
+ return {};
2495
+ }
2496
+ exports.QueryPendingTaskRequest = {
2497
+ encode(_, writer = minimal_1.default.Writer.create()) {
2498
+ return writer;
2499
+ },
2500
+ decode(input, length) {
2501
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2502
+ let end = length === undefined ? reader.len : reader.pos + length;
2503
+ const message = createBaseQueryPendingTaskRequest();
2504
+ while (reader.pos < end) {
2505
+ const tag = reader.uint32();
2506
+ switch (tag >>> 3) {
2507
+ }
2508
+ if ((tag & 7) === 4 || tag === 0) {
2509
+ break;
2510
+ }
2511
+ reader.skipType(tag & 7);
2512
+ }
2513
+ return message;
2514
+ },
2515
+ fromJSON(_) {
2516
+ return {};
2517
+ },
2518
+ toJSON(_) {
2519
+ const obj = {};
2520
+ return obj;
2521
+ },
2522
+ create(base) {
2523
+ return exports.QueryPendingTaskRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2524
+ },
2525
+ fromPartial(_) {
2526
+ const message = createBaseQueryPendingTaskRequest();
2137
2527
  return message;
2138
2528
  },
2139
2529
  };
2140
- function createBaseGetAppDownloadProgressResponse() {
2141
- return { progresses: {} };
2530
+ function createBaseQueryPendingTaskResponse() {
2531
+ return { infos: [] };
2142
2532
  }
2143
- exports.GetAppDownloadProgressResponse = {
2533
+ exports.QueryPendingTaskResponse = {
2144
2534
  encode(message, writer = minimal_1.default.Writer.create()) {
2145
- Object.entries(message.progresses).forEach(([key, value]) => {
2146
- exports.GetAppDownloadProgressResponse_ProgressesEntry.encode({ key: key, value }, writer.uint32(10).fork())
2147
- .ldelim();
2148
- });
2535
+ for (const v of message.infos) {
2536
+ exports.PendingTaskInfo.encode(v, writer.uint32(10).fork()).ldelim();
2537
+ }
2149
2538
  return writer;
2150
2539
  },
2151
2540
  decode(input, length) {
2152
2541
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2153
2542
  let end = length === undefined ? reader.len : reader.pos + length;
2154
- const message = createBaseGetAppDownloadProgressResponse();
2543
+ const message = createBaseQueryPendingTaskResponse();
2155
2544
  while (reader.pos < end) {
2156
2545
  const tag = reader.uint32();
2157
2546
  switch (tag >>> 3) {
@@ -2159,10 +2548,7 @@ exports.GetAppDownloadProgressResponse = {
2159
2548
  if (tag !== 10) {
2160
2549
  break;
2161
2550
  }
2162
- const entry1 = exports.GetAppDownloadProgressResponse_ProgressesEntry.decode(reader, reader.uint32());
2163
- if (entry1.value !== undefined) {
2164
- message.progresses[entry1.key] = entry1.value;
2165
- }
2551
+ message.infos.push(exports.PendingTaskInfo.decode(reader, reader.uint32()));
2166
2552
  continue;
2167
2553
  }
2168
2554
  if ((tag & 7) === 4 || tag === 0) {
@@ -2173,60 +2559,43 @@ exports.GetAppDownloadProgressResponse = {
2173
2559
  return message;
2174
2560
  },
2175
2561
  fromJSON(object) {
2176
- return {
2177
- progresses: isObject(object.progresses)
2178
- ? Object.entries(object.progresses).reduce((acc, [key, value]) => {
2179
- acc[key] = exports.AppDownloadProgress.fromJSON(value);
2180
- return acc;
2181
- }, {})
2182
- : {},
2183
- };
2562
+ return { infos: Array.isArray(object === null || object === void 0 ? void 0 : object.infos) ? object.infos.map((e) => exports.PendingTaskInfo.fromJSON(e)) : [] };
2184
2563
  },
2185
2564
  toJSON(message) {
2565
+ var _a;
2186
2566
  const obj = {};
2187
- if (message.progresses) {
2188
- const entries = Object.entries(message.progresses);
2189
- if (entries.length > 0) {
2190
- obj.progresses = {};
2191
- entries.forEach(([k, v]) => {
2192
- obj.progresses[k] = exports.AppDownloadProgress.toJSON(v);
2193
- });
2194
- }
2567
+ if ((_a = message.infos) === null || _a === void 0 ? void 0 : _a.length) {
2568
+ obj.infos = message.infos.map((e) => exports.PendingTaskInfo.toJSON(e));
2195
2569
  }
2196
2570
  return obj;
2197
2571
  },
2198
2572
  create(base) {
2199
- return exports.GetAppDownloadProgressResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2573
+ return exports.QueryPendingTaskResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2200
2574
  },
2201
2575
  fromPartial(object) {
2202
2576
  var _a;
2203
- const message = createBaseGetAppDownloadProgressResponse();
2204
- message.progresses = Object.entries((_a = object.progresses) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
2205
- if (value !== undefined) {
2206
- acc[key] = exports.AppDownloadProgress.fromPartial(value);
2207
- }
2208
- return acc;
2209
- }, {});
2577
+ const message = createBaseQueryPendingTaskResponse();
2578
+ message.infos = ((_a = object.infos) === null || _a === void 0 ? void 0 : _a.map((e) => exports.PendingTaskInfo.fromPartial(e))) || [];
2210
2579
  return message;
2211
2580
  },
2212
2581
  };
2213
- function createBaseGetAppDownloadProgressResponse_ProgressesEntry() {
2214
- return { key: "", value: undefined };
2582
+ function createBaseCancelPendingTaskRequest() {
2583
+ return { taskId: "", onlyPause: false };
2215
2584
  }
2216
- exports.GetAppDownloadProgressResponse_ProgressesEntry = {
2585
+ exports.CancelPendingTaskRequest = {
2217
2586
  encode(message, writer = minimal_1.default.Writer.create()) {
2218
- if (message.key !== "") {
2219
- writer.uint32(10).string(message.key);
2587
+ if (message.taskId !== "") {
2588
+ writer.uint32(10).string(message.taskId);
2220
2589
  }
2221
- if (message.value !== undefined) {
2222
- exports.AppDownloadProgress.encode(message.value, writer.uint32(18).fork()).ldelim();
2590
+ if (message.onlyPause === true) {
2591
+ writer.uint32(16).bool(message.onlyPause);
2223
2592
  }
2224
2593
  return writer;
2225
2594
  },
2226
2595
  decode(input, length) {
2227
2596
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2228
2597
  let end = length === undefined ? reader.len : reader.pos + length;
2229
- const message = createBaseGetAppDownloadProgressResponse_ProgressesEntry();
2598
+ const message = createBaseCancelPendingTaskRequest();
2230
2599
  while (reader.pos < end) {
2231
2600
  const tag = reader.uint32();
2232
2601
  switch (tag >>> 3) {
@@ -2234,13 +2603,13 @@ exports.GetAppDownloadProgressResponse_ProgressesEntry = {
2234
2603
  if (tag !== 10) {
2235
2604
  break;
2236
2605
  }
2237
- message.key = reader.string();
2606
+ message.taskId = reader.string();
2238
2607
  continue;
2239
2608
  case 2:
2240
- if (tag !== 18) {
2609
+ if (tag !== 16) {
2241
2610
  break;
2242
2611
  }
2243
- message.value = exports.AppDownloadProgress.decode(reader, reader.uint32());
2612
+ message.onlyPause = reader.bool();
2244
2613
  continue;
2245
2614
  }
2246
2615
  if ((tag & 7) === 4 || tag === 0) {
@@ -2252,37 +2621,72 @@ exports.GetAppDownloadProgressResponse_ProgressesEntry = {
2252
2621
  },
2253
2622
  fromJSON(object) {
2254
2623
  return {
2255
- key: isSet(object.key) ? String(object.key) : "",
2256
- value: isSet(object.value) ? exports.AppDownloadProgress.fromJSON(object.value) : undefined,
2624
+ taskId: isSet(object.taskId) ? String(object.taskId) : "",
2625
+ onlyPause: isSet(object.onlyPause) ? Boolean(object.onlyPause) : false,
2257
2626
  };
2258
2627
  },
2259
2628
  toJSON(message) {
2260
2629
  const obj = {};
2261
- if (message.key !== "") {
2262
- obj.key = message.key;
2630
+ if (message.taskId !== "") {
2631
+ obj.taskId = message.taskId;
2263
2632
  }
2264
- if (message.value !== undefined) {
2265
- obj.value = exports.AppDownloadProgress.toJSON(message.value);
2633
+ if (message.onlyPause === true) {
2634
+ obj.onlyPause = message.onlyPause;
2266
2635
  }
2267
2636
  return obj;
2268
2637
  },
2269
2638
  create(base) {
2270
- return exports.GetAppDownloadProgressResponse_ProgressesEntry.fromPartial(base !== null && base !== void 0 ? base : {});
2639
+ return exports.CancelPendingTaskRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2271
2640
  },
2272
2641
  fromPartial(object) {
2273
- var _a;
2274
- const message = createBaseGetAppDownloadProgressResponse_ProgressesEntry();
2275
- message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
2276
- message.value = (object.value !== undefined && object.value !== null)
2277
- ? exports.AppDownloadProgress.fromPartial(object.value)
2278
- : undefined;
2642
+ var _a, _b;
2643
+ const message = createBaseCancelPendingTaskRequest();
2644
+ message.taskId = (_a = object.taskId) !== null && _a !== void 0 ? _a : "";
2645
+ message.onlyPause = (_b = object.onlyPause) !== null && _b !== void 0 ? _b : false;
2646
+ return message;
2647
+ },
2648
+ };
2649
+ function createBaseCancelPendingTaskResponse() {
2650
+ return {};
2651
+ }
2652
+ exports.CancelPendingTaskResponse = {
2653
+ encode(_, writer = minimal_1.default.Writer.create()) {
2654
+ return writer;
2655
+ },
2656
+ decode(input, length) {
2657
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2658
+ let end = length === undefined ? reader.len : reader.pos + length;
2659
+ const message = createBaseCancelPendingTaskResponse();
2660
+ while (reader.pos < end) {
2661
+ const tag = reader.uint32();
2662
+ switch (tag >>> 3) {
2663
+ }
2664
+ if ((tag & 7) === 4 || tag === 0) {
2665
+ break;
2666
+ }
2667
+ reader.skipType(tag & 7);
2668
+ }
2669
+ return message;
2670
+ },
2671
+ fromJSON(_) {
2672
+ return {};
2673
+ },
2674
+ toJSON(_) {
2675
+ const obj = {};
2676
+ return obj;
2677
+ },
2678
+ create(base) {
2679
+ return exports.CancelPendingTaskResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2680
+ },
2681
+ fromPartial(_) {
2682
+ const message = createBaseCancelPendingTaskResponse();
2279
2683
  return message;
2280
2684
  },
2281
2685
  };
2282
2686
  class PackageManagerClientImpl {
2283
2687
  constructor(rpc) {
2284
2688
  this.rpc = rpc;
2285
- this.Install = this.Install.bind(this);
2689
+ this.InstallLPK = this.InstallLPK.bind(this);
2286
2690
  this.Uninstall = this.Uninstall.bind(this);
2287
2691
  this.Pause = this.Pause.bind(this);
2288
2692
  this.Resume = this.Resume.bind(this);
@@ -2290,18 +2694,20 @@ class PackageManagerClientImpl {
2290
2694
  this.GetAppCfg = this.GetAppCfg.bind(this);
2291
2695
  this.SetAppCfg = this.SetAppCfg.bind(this);
2292
2696
  this.QueryApplication = this.QueryApplication.bind(this);
2697
+ this.QueryPendingTask = this.QueryPendingTask.bind(this);
2698
+ this.CancelPendingTask = this.CancelPendingTask.bind(this);
2293
2699
  this.SubscribeAppChange = this.SubscribeAppChange.bind(this);
2294
- this.GetAppDownloadProgress = this.GetAppDownloadProgress.bind(this);
2295
2700
  this.QueryAppStorageUsage = this.QueryAppStorageUsage.bind(this);
2296
2701
  this.SetUserPermissions = this.SetUserPermissions.bind(this);
2297
2702
  this.GetUserPermissions = this.GetUserPermissions.bind(this);
2298
- this.PauseAppDownload = this.PauseAppDownload.bind(this);
2299
2703
  this.GetActionURL = this.GetActionURL.bind(this);
2300
2704
  this.ListFileHandler = this.ListFileHandler.bind(this);
2301
2705
  this.StopMySelf = this.StopMySelf.bind(this);
2706
+ this.PauseAppDownload = this.PauseAppDownload.bind(this);
2707
+ this.Install = this.Install.bind(this);
2302
2708
  }
2303
- Install(request, metadata, abortSignal) {
2304
- return this.rpc.unary(exports.PackageManagerInstallDesc, exports.InstallRequest.fromPartial(request), metadata, abortSignal);
2709
+ InstallLPK(request, metadata, abortSignal) {
2710
+ return this.rpc.unary(exports.PackageManagerInstallLPKDesc, exports.InstallLPKRequest.fromPartial(request), metadata, abortSignal);
2305
2711
  }
2306
2712
  Uninstall(request, metadata, abortSignal) {
2307
2713
  return this.rpc.unary(exports.PackageManagerUninstallDesc, exports.UninstallRequest.fromPartial(request), metadata, abortSignal);
@@ -2324,12 +2730,15 @@ class PackageManagerClientImpl {
2324
2730
  QueryApplication(request, metadata, abortSignal) {
2325
2731
  return this.rpc.unary(exports.PackageManagerQueryApplicationDesc, exports.QueryApplicationRequest.fromPartial(request), metadata, abortSignal);
2326
2732
  }
2733
+ QueryPendingTask(request, metadata, abortSignal) {
2734
+ return this.rpc.unary(exports.PackageManagerQueryPendingTaskDesc, exports.QueryPendingTaskRequest.fromPartial(request), metadata, abortSignal);
2735
+ }
2736
+ CancelPendingTask(request, metadata, abortSignal) {
2737
+ return this.rpc.unary(exports.PackageManagerCancelPendingTaskDesc, exports.CancelPendingTaskRequest.fromPartial(request), metadata, abortSignal);
2738
+ }
2327
2739
  SubscribeAppChange(request, metadata, abortSignal) {
2328
2740
  return this.rpc.invoke(exports.PackageManagerSubscribeAppChangeDesc, exports.SubscribeAppChangeRequest.fromPartial(request), metadata, abortSignal);
2329
2741
  }
2330
- GetAppDownloadProgress(request, metadata, abortSignal) {
2331
- return this.rpc.unary(exports.PackageManagerGetAppDownloadProgressDesc, exports.GetAppDownloadProgressRequest.fromPartial(request), metadata, abortSignal);
2332
- }
2333
2742
  QueryAppStorageUsage(request, metadata, abortSignal) {
2334
2743
  return this.rpc.unary(exports.PackageManagerQueryAppStorageUsageDesc, exports.QueryAppStorageUsageRequest.fromPartial(request), metadata, abortSignal);
2335
2744
  }
@@ -2339,9 +2748,6 @@ class PackageManagerClientImpl {
2339
2748
  GetUserPermissions(request, metadata, abortSignal) {
2340
2749
  return this.rpc.unary(exports.PackageManagerGetUserPermissionsDesc, exports.GetUserPermissionsRequest.fromPartial(request), metadata, abortSignal);
2341
2750
  }
2342
- PauseAppDownload(request, metadata, abortSignal) {
2343
- return this.rpc.unary(exports.PackageManagerPauseAppDownloadDesc, exports.Appid.fromPartial(request), metadata, abortSignal);
2344
- }
2345
2751
  GetActionURL(request, metadata, abortSignal) {
2346
2752
  return this.rpc.unary(exports.PackageManagerGetActionURLDesc, exports.GetActionURLRequest.fromPartial(request), metadata, abortSignal);
2347
2753
  }
@@ -2351,22 +2757,28 @@ class PackageManagerClientImpl {
2351
2757
  StopMySelf(request, metadata, abortSignal) {
2352
2758
  return this.rpc.unary(exports.PackageManagerStopMySelfDesc, exports.StopMySelfRequest.fromPartial(request), metadata, abortSignal);
2353
2759
  }
2760
+ PauseAppDownload(request, metadata, abortSignal) {
2761
+ return this.rpc.unary(exports.PackageManagerPauseAppDownloadDesc, exports.Appid.fromPartial(request), metadata, abortSignal);
2762
+ }
2763
+ Install(request, metadata, abortSignal) {
2764
+ return this.rpc.unary(exports.PackageManagerInstallDesc, exports.InstallRequest.fromPartial(request), metadata, abortSignal);
2765
+ }
2354
2766
  }
2355
2767
  exports.PackageManagerClientImpl = PackageManagerClientImpl;
2356
2768
  exports.PackageManagerDesc = { serviceName: "cloud.lazycat.apis.sys.PackageManager" };
2357
- exports.PackageManagerInstallDesc = {
2358
- methodName: "Install",
2769
+ exports.PackageManagerInstallLPKDesc = {
2770
+ methodName: "InstallLPK",
2359
2771
  service: exports.PackageManagerDesc,
2360
2772
  requestStream: false,
2361
2773
  responseStream: false,
2362
2774
  requestType: {
2363
2775
  serializeBinary() {
2364
- return exports.InstallRequest.encode(this).finish();
2776
+ return exports.InstallLPKRequest.encode(this).finish();
2365
2777
  },
2366
2778
  },
2367
2779
  responseType: {
2368
2780
  deserializeBinary(data) {
2369
- const value = empty_1.Empty.decode(data);
2781
+ const value = exports.InstallLPKResponse.decode(data);
2370
2782
  return Object.assign(Object.assign({}, value), { toObject() {
2371
2783
  return value;
2372
2784
  } });
@@ -2506,38 +2918,57 @@ exports.PackageManagerQueryApplicationDesc = {
2506
2918
  },
2507
2919
  },
2508
2920
  };
2509
- exports.PackageManagerSubscribeAppChangeDesc = {
2510
- methodName: "SubscribeAppChange",
2921
+ exports.PackageManagerQueryPendingTaskDesc = {
2922
+ methodName: "QueryPendingTask",
2511
2923
  service: exports.PackageManagerDesc,
2512
2924
  requestStream: false,
2513
- responseStream: true,
2925
+ responseStream: false,
2514
2926
  requestType: {
2515
2927
  serializeBinary() {
2516
- return exports.SubscribeAppChangeRequest.encode(this).finish();
2928
+ return exports.QueryPendingTaskRequest.encode(this).finish();
2517
2929
  },
2518
2930
  },
2519
2931
  responseType: {
2520
2932
  deserializeBinary(data) {
2521
- const value = exports.SubscribeAppChangeResponse.decode(data);
2933
+ const value = exports.QueryPendingTaskResponse.decode(data);
2522
2934
  return Object.assign(Object.assign({}, value), { toObject() {
2523
2935
  return value;
2524
2936
  } });
2525
2937
  },
2526
2938
  },
2527
2939
  };
2528
- exports.PackageManagerGetAppDownloadProgressDesc = {
2529
- methodName: "GetAppDownloadProgress",
2940
+ exports.PackageManagerCancelPendingTaskDesc = {
2941
+ methodName: "CancelPendingTask",
2530
2942
  service: exports.PackageManagerDesc,
2531
2943
  requestStream: false,
2532
2944
  responseStream: false,
2533
2945
  requestType: {
2534
2946
  serializeBinary() {
2535
- return exports.GetAppDownloadProgressRequest.encode(this).finish();
2947
+ return exports.CancelPendingTaskRequest.encode(this).finish();
2948
+ },
2949
+ },
2950
+ responseType: {
2951
+ deserializeBinary(data) {
2952
+ const value = exports.CancelPendingTaskResponse.decode(data);
2953
+ return Object.assign(Object.assign({}, value), { toObject() {
2954
+ return value;
2955
+ } });
2956
+ },
2957
+ },
2958
+ };
2959
+ exports.PackageManagerSubscribeAppChangeDesc = {
2960
+ methodName: "SubscribeAppChange",
2961
+ service: exports.PackageManagerDesc,
2962
+ requestStream: false,
2963
+ responseStream: true,
2964
+ requestType: {
2965
+ serializeBinary() {
2966
+ return exports.SubscribeAppChangeRequest.encode(this).finish();
2536
2967
  },
2537
2968
  },
2538
2969
  responseType: {
2539
2970
  deserializeBinary(data) {
2540
- const value = exports.GetAppDownloadProgressResponse.decode(data);
2971
+ const value = exports.SubscribeAppChangeResponse.decode(data);
2541
2972
  return Object.assign(Object.assign({}, value), { toObject() {
2542
2973
  return value;
2543
2974
  } });
@@ -2601,76 +3032,95 @@ exports.PackageManagerGetUserPermissionsDesc = {
2601
3032
  },
2602
3033
  },
2603
3034
  };
2604
- exports.PackageManagerPauseAppDownloadDesc = {
2605
- methodName: "PauseAppDownload",
3035
+ exports.PackageManagerGetActionURLDesc = {
3036
+ methodName: "GetActionURL",
2606
3037
  service: exports.PackageManagerDesc,
2607
3038
  requestStream: false,
2608
3039
  responseStream: false,
2609
3040
  requestType: {
2610
3041
  serializeBinary() {
2611
- return exports.Appid.encode(this).finish();
3042
+ return exports.GetActionURLRequest.encode(this).finish();
2612
3043
  },
2613
3044
  },
2614
3045
  responseType: {
2615
3046
  deserializeBinary(data) {
2616
- const value = empty_1.Empty.decode(data);
3047
+ const value = exports.GetActionURLResponse.decode(data);
2617
3048
  return Object.assign(Object.assign({}, value), { toObject() {
2618
3049
  return value;
2619
3050
  } });
2620
3051
  },
2621
3052
  },
2622
3053
  };
2623
- exports.PackageManagerGetActionURLDesc = {
2624
- methodName: "GetActionURL",
3054
+ exports.PackageManagerListFileHandlerDesc = {
3055
+ methodName: "ListFileHandler",
2625
3056
  service: exports.PackageManagerDesc,
2626
3057
  requestStream: false,
2627
3058
  responseStream: false,
2628
3059
  requestType: {
2629
3060
  serializeBinary() {
2630
- return exports.GetActionURLRequest.encode(this).finish();
3061
+ return exports.ListFileHandlerRequest.encode(this).finish();
2631
3062
  },
2632
3063
  },
2633
3064
  responseType: {
2634
3065
  deserializeBinary(data) {
2635
- const value = exports.GetActionURLResponse.decode(data);
3066
+ const value = exports.ListFileHandlerResponse.decode(data);
2636
3067
  return Object.assign(Object.assign({}, value), { toObject() {
2637
3068
  return value;
2638
3069
  } });
2639
3070
  },
2640
3071
  },
2641
3072
  };
2642
- exports.PackageManagerListFileHandlerDesc = {
2643
- methodName: "ListFileHandler",
3073
+ exports.PackageManagerStopMySelfDesc = {
3074
+ methodName: "StopMySelf",
2644
3075
  service: exports.PackageManagerDesc,
2645
3076
  requestStream: false,
2646
3077
  responseStream: false,
2647
3078
  requestType: {
2648
3079
  serializeBinary() {
2649
- return exports.ListFileHandlerRequest.encode(this).finish();
3080
+ return exports.StopMySelfRequest.encode(this).finish();
2650
3081
  },
2651
3082
  },
2652
3083
  responseType: {
2653
3084
  deserializeBinary(data) {
2654
- const value = exports.ListFileHandlerResponse.decode(data);
3085
+ const value = exports.RestartMySelfResponse.decode(data);
2655
3086
  return Object.assign(Object.assign({}, value), { toObject() {
2656
3087
  return value;
2657
3088
  } });
2658
3089
  },
2659
3090
  },
2660
3091
  };
2661
- exports.PackageManagerStopMySelfDesc = {
2662
- methodName: "StopMySelf",
3092
+ exports.PackageManagerPauseAppDownloadDesc = {
3093
+ methodName: "PauseAppDownload",
2663
3094
  service: exports.PackageManagerDesc,
2664
3095
  requestStream: false,
2665
3096
  responseStream: false,
2666
3097
  requestType: {
2667
3098
  serializeBinary() {
2668
- return exports.StopMySelfRequest.encode(this).finish();
3099
+ return exports.Appid.encode(this).finish();
2669
3100
  },
2670
3101
  },
2671
3102
  responseType: {
2672
3103
  deserializeBinary(data) {
2673
- const value = exports.RestartMySelfResponse.decode(data);
3104
+ const value = empty_1.Empty.decode(data);
3105
+ return Object.assign(Object.assign({}, value), { toObject() {
3106
+ return value;
3107
+ } });
3108
+ },
3109
+ },
3110
+ };
3111
+ exports.PackageManagerInstallDesc = {
3112
+ methodName: "Install",
3113
+ service: exports.PackageManagerDesc,
3114
+ requestStream: false,
3115
+ responseStream: false,
3116
+ requestType: {
3117
+ serializeBinary() {
3118
+ return exports.InstallRequest.encode(this).finish();
3119
+ },
3120
+ },
3121
+ responseType: {
3122
+ deserializeBinary(data) {
3123
+ const value = empty_1.Empty.decode(data);
2674
3124
  return Object.assign(Object.assign({}, value), { toObject() {
2675
3125
  return value;
2676
3126
  } });
@@ -2765,6 +3215,27 @@ const tsProtoGlobalThis = (() => {
2765
3215
  }
2766
3216
  throw "Unable to locate global object";
2767
3217
  })();
3218
+ function toTimestamp(date) {
3219
+ const seconds = date.getTime() / 1000;
3220
+ const nanos = (date.getTime() % 1000) * 1000000;
3221
+ return { seconds, nanos };
3222
+ }
3223
+ function fromTimestamp(t) {
3224
+ let millis = (t.seconds || 0) * 1000;
3225
+ millis += (t.nanos || 0) / 1000000;
3226
+ return new Date(millis);
3227
+ }
3228
+ function fromJsonTimestamp(o) {
3229
+ if (o instanceof Date) {
3230
+ return o;
3231
+ }
3232
+ else if (typeof o === "string") {
3233
+ return new Date(o);
3234
+ }
3235
+ else {
3236
+ return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
3237
+ }
3238
+ }
2768
3239
  function longToNumber(long) {
2769
3240
  if (long.gt(Number.MAX_SAFE_INTEGER)) {
2770
3241
  throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
@@ -2775,9 +3246,6 @@ if (minimal_1.default.util.Long !== long_1.default) {
2775
3246
  minimal_1.default.util.Long = long_1.default;
2776
3247
  minimal_1.default.configure();
2777
3248
  }
2778
- function isObject(value) {
2779
- return typeof value === "object" && value !== null;
2780
- }
2781
3249
  function isSet(value) {
2782
3250
  return value !== null && value !== undefined;
2783
3251
  }