@lazycatcloud/sdk 0.1.457 → 0.1.459

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 (51) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/localdevice/ble.d.ts +414 -0
  6. package/dist/localdevice/ble.d.ts.map +1 -0
  7. package/dist/localdevice/ble.js +859 -0
  8. package/dist/localdevice/ble.js.map +1 -0
  9. package/dist/package.json +1 -1
  10. package/dist/sys/hal.d.ts +174 -0
  11. package/dist/sys/hal.d.ts.map +1 -1
  12. package/dist/sys/hal.js +553 -1
  13. package/dist/sys/hal.js.map +1 -1
  14. package/dist/sys/package_manager.d.ts +524 -214
  15. package/dist/sys/package_manager.d.ts.map +1 -1
  16. package/dist/sys/package_manager.js +741 -323
  17. package/dist/sys/package_manager.js.map +1 -1
  18. package/dist/tsconfig.tsbuildinfo +1 -1
  19. package/package.json +1 -1
  20. package/dist/localdevice/clipboard.d.ts +0 -137
  21. package/dist/localdevice/clipboard.d.ts.map +0 -1
  22. package/dist/localdevice/clipboard.js +0 -433
  23. package/dist/localdevice/clipboard.js.map +0 -1
  24. package/dist/sys/OS_snapshot.d.ts +0 -585
  25. package/dist/sys/OS_snapshot.d.ts.map +0 -1
  26. package/dist/sys/OS_snapshot.js +0 -1543
  27. package/dist/sys/OS_snapshot.js.map +0 -1
  28. package/dist/sys/OS_upgrader.d.ts +0 -202
  29. package/dist/sys/OS_upgrader.d.ts.map +0 -1
  30. package/dist/sys/OS_upgrader.js +0 -639
  31. package/dist/sys/OS_upgrader.js.map +0 -1
  32. package/dist/sys/hc-core/hc-core.d.ts +0 -691
  33. package/dist/sys/hc-core/hc-core.d.ts.map +0 -1
  34. package/dist/sys/hc-core/hc-core.js +0 -1484
  35. package/dist/sys/hc-core/hc-core.js.map +0 -1
  36. package/dist/sys/installer.d.ts +0 -277
  37. package/dist/sys/installer.d.ts.map +0 -1
  38. package/dist/sys/installer.js +0 -796
  39. package/dist/sys/installer.js.map +0 -1
  40. package/dist/sys/osupgrader.d.ts +0 -256
  41. package/dist/sys/osupgrader.d.ts.map +0 -1
  42. package/dist/sys/osupgrader.js +0 -536
  43. package/dist/sys/osupgrader.js.map +0 -1
  44. package/dist/sys/portal-server/portal-server.d.ts +0 -947
  45. package/dist/sys/portal-server/portal-server.d.ts.map +0 -1
  46. package/dist/sys/portal-server/portal-server.js +0 -2756
  47. package/dist/sys/portal-server/portal-server.js.map +0 -1
  48. package/dist/sys/snapd.d.ts +0 -343
  49. package/dist/sys/snapd.d.ts.map +0 -1
  50. package/dist/sys/snapd.js +0 -798
  51. package/dist/sys/snapd.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.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_UserdataEntry = 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 = exports.PackageManagerGetAppDownloadProgressDesc = 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 !== "") {
406
- obj.sha256 = message.sha256;
524
+ if (message.waitUnitDone !== undefined) {
525
+ obj.waitUnitDone = message.waitUnitDone;
407
526
  }
408
- if (message.appid !== undefined) {
409
- obj.appid = message.appid;
527
+ if (message.sha256 !== undefined) {
528
+ obj.sha256 = message.sha256;
410
529
  }
411
- if (message.subdomain !== undefined) {
412
- obj.subdomain = message.subdomain;
530
+ if (message.pkgId !== undefined) {
531
+ obj.pkgId = message.pkgId;
413
532
  }
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
  };
@@ -578,7 +749,9 @@ function createBaseAppInfo() {
578
749
  builtin: undefined,
579
750
  errorReason: undefined,
580
751
  unsupportedPlatforms: [],
581
- multiInstance: false,
752
+ deployId: "",
753
+ subdomain: "",
754
+ owner: "",
582
755
  };
583
756
  }
584
757
  exports.AppInfo = {
@@ -619,8 +792,14 @@ exports.AppInfo = {
619
792
  for (const v of message.unsupportedPlatforms) {
620
793
  writer.uint32(90).string(v);
621
794
  }
622
- if (message.multiInstance === true) {
623
- writer.uint32(104).bool(message.multiInstance);
795
+ if (message.deployId !== "") {
796
+ writer.uint32(114).string(message.deployId);
797
+ }
798
+ if (message.subdomain !== "") {
799
+ writer.uint32(122).string(message.subdomain);
800
+ }
801
+ if (message.owner !== "") {
802
+ writer.uint32(130).string(message.owner);
624
803
  }
625
804
  return writer;
626
805
  },
@@ -703,11 +882,23 @@ exports.AppInfo = {
703
882
  }
704
883
  message.unsupportedPlatforms.push(reader.string());
705
884
  continue;
706
- case 13:
707
- if (tag !== 104) {
885
+ case 14:
886
+ if (tag !== 114) {
887
+ break;
888
+ }
889
+ message.deployId = reader.string();
890
+ continue;
891
+ case 15:
892
+ if (tag !== 122) {
893
+ break;
894
+ }
895
+ message.subdomain = reader.string();
896
+ continue;
897
+ case 16:
898
+ if (tag !== 130) {
708
899
  break;
709
900
  }
710
- message.multiInstance = reader.bool();
901
+ message.owner = reader.string();
711
902
  continue;
712
903
  }
713
904
  if ((tag & 7) === 4 || tag === 0) {
@@ -735,7 +926,9 @@ exports.AppInfo = {
735
926
  unsupportedPlatforms: Array.isArray(object === null || object === void 0 ? void 0 : object.unsupportedPlatforms)
736
927
  ? object.unsupportedPlatforms.map((e) => String(e))
737
928
  : [],
738
- multiInstance: isSet(object.multiInstance) ? Boolean(object.multiInstance) : false,
929
+ deployId: isSet(object.deployId) ? String(object.deployId) : "",
930
+ subdomain: isSet(object.subdomain) ? String(object.subdomain) : "",
931
+ owner: isSet(object.owner) ? String(object.owner) : "",
739
932
  };
740
933
  },
741
934
  toJSON(message) {
@@ -777,8 +970,14 @@ exports.AppInfo = {
777
970
  if ((_a = message.unsupportedPlatforms) === null || _a === void 0 ? void 0 : _a.length) {
778
971
  obj.unsupportedPlatforms = message.unsupportedPlatforms;
779
972
  }
780
- if (message.multiInstance === true) {
781
- obj.multiInstance = message.multiInstance;
973
+ if (message.deployId !== "") {
974
+ obj.deployId = message.deployId;
975
+ }
976
+ if (message.subdomain !== "") {
977
+ obj.subdomain = message.subdomain;
978
+ }
979
+ if (message.owner !== "") {
980
+ obj.owner = message.owner;
782
981
  }
783
982
  return obj;
784
983
  },
@@ -786,7 +985,7 @@ exports.AppInfo = {
786
985
  return exports.AppInfo.fromPartial(base !== null && base !== void 0 ? base : {});
787
986
  },
788
987
  fromPartial(object) {
789
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
988
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
790
989
  const message = createBaseAppInfo();
791
990
  message.appid = (_a = object.appid) !== null && _a !== void 0 ? _a : "";
792
991
  message.status = (_b = object.status) !== null && _b !== void 0 ? _b : 0;
@@ -802,7 +1001,9 @@ exports.AppInfo = {
802
1001
  message.builtin = (_j = object.builtin) !== null && _j !== void 0 ? _j : undefined;
803
1002
  message.errorReason = (_k = object.errorReason) !== null && _k !== void 0 ? _k : undefined;
804
1003
  message.unsupportedPlatforms = ((_l = object.unsupportedPlatforms) === null || _l === void 0 ? void 0 : _l.map((e) => e)) || [];
805
- message.multiInstance = (_m = object.multiInstance) !== null && _m !== void 0 ? _m : false;
1004
+ message.deployId = (_m = object.deployId) !== null && _m !== void 0 ? _m : "";
1005
+ message.subdomain = (_o = object.subdomain) !== null && _o !== void 0 ? _o : "";
1006
+ message.owner = (_p = object.owner) !== null && _p !== void 0 ? _p : "";
806
1007
  return message;
807
1008
  },
808
1009
  };
@@ -1026,13 +1227,22 @@ exports.SetAppCfgRequest = {
1026
1227
  },
1027
1228
  };
1028
1229
  function createBaseQueryApplicationRequest() {
1029
- return { appidList: [] };
1230
+ return { todoRemoveAppidList: [], otherUid: undefined, onlyOwner: undefined, ignorePendingPkg: undefined };
1030
1231
  }
1031
1232
  exports.QueryApplicationRequest = {
1032
1233
  encode(message, writer = minimal_1.default.Writer.create()) {
1033
- for (const v of message.appidList) {
1234
+ for (const v of message.todoRemoveAppidList) {
1034
1235
  writer.uint32(10).string(v);
1035
1236
  }
1237
+ if (message.otherUid !== undefined) {
1238
+ writer.uint32(18).string(message.otherUid);
1239
+ }
1240
+ if (message.onlyOwner !== undefined) {
1241
+ writer.uint32(24).bool(message.onlyOwner);
1242
+ }
1243
+ if (message.ignorePendingPkg !== undefined) {
1244
+ writer.uint32(32).bool(message.ignorePendingPkg);
1245
+ }
1036
1246
  return writer;
1037
1247
  },
1038
1248
  decode(input, length) {
@@ -1046,7 +1256,25 @@ exports.QueryApplicationRequest = {
1046
1256
  if (tag !== 10) {
1047
1257
  break;
1048
1258
  }
1049
- message.appidList.push(reader.string());
1259
+ message.todoRemoveAppidList.push(reader.string());
1260
+ continue;
1261
+ case 2:
1262
+ if (tag !== 18) {
1263
+ break;
1264
+ }
1265
+ message.otherUid = reader.string();
1266
+ continue;
1267
+ case 3:
1268
+ if (tag !== 24) {
1269
+ break;
1270
+ }
1271
+ message.onlyOwner = reader.bool();
1272
+ continue;
1273
+ case 4:
1274
+ if (tag !== 32) {
1275
+ break;
1276
+ }
1277
+ message.ignorePendingPkg = reader.bool();
1050
1278
  continue;
1051
1279
  }
1052
1280
  if ((tag & 7) === 4 || tag === 0) {
@@ -1057,13 +1285,29 @@ exports.QueryApplicationRequest = {
1057
1285
  return message;
1058
1286
  },
1059
1287
  fromJSON(object) {
1060
- return { appidList: Array.isArray(object === null || object === void 0 ? void 0 : object.appidList) ? object.appidList.map((e) => String(e)) : [] };
1288
+ return {
1289
+ todoRemoveAppidList: Array.isArray(object === null || object === void 0 ? void 0 : object.todoRemoveAppidList)
1290
+ ? object.todoRemoveAppidList.map((e) => String(e))
1291
+ : [],
1292
+ otherUid: isSet(object.otherUid) ? String(object.otherUid) : undefined,
1293
+ onlyOwner: isSet(object.onlyOwner) ? Boolean(object.onlyOwner) : undefined,
1294
+ ignorePendingPkg: isSet(object.ignorePendingPkg) ? Boolean(object.ignorePendingPkg) : undefined,
1295
+ };
1061
1296
  },
1062
1297
  toJSON(message) {
1063
1298
  var _a;
1064
1299
  const obj = {};
1065
- if ((_a = message.appidList) === null || _a === void 0 ? void 0 : _a.length) {
1066
- obj.appidList = message.appidList;
1300
+ if ((_a = message.todoRemoveAppidList) === null || _a === void 0 ? void 0 : _a.length) {
1301
+ obj.todoRemoveAppidList = message.todoRemoveAppidList;
1302
+ }
1303
+ if (message.otherUid !== undefined) {
1304
+ obj.otherUid = message.otherUid;
1305
+ }
1306
+ if (message.onlyOwner !== undefined) {
1307
+ obj.onlyOwner = message.onlyOwner;
1308
+ }
1309
+ if (message.ignorePendingPkg !== undefined) {
1310
+ obj.ignorePendingPkg = message.ignorePendingPkg;
1067
1311
  }
1068
1312
  return obj;
1069
1313
  },
@@ -1071,9 +1315,12 @@ exports.QueryApplicationRequest = {
1071
1315
  return exports.QueryApplicationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1072
1316
  },
1073
1317
  fromPartial(object) {
1074
- var _a;
1318
+ var _a, _b, _c, _d;
1075
1319
  const message = createBaseQueryApplicationRequest();
1076
- message.appidList = ((_a = object.appidList) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
1320
+ message.todoRemoveAppidList = ((_a = object.todoRemoveAppidList) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
1321
+ message.otherUid = (_b = object.otherUid) !== null && _b !== void 0 ? _b : undefined;
1322
+ message.onlyOwner = (_c = object.onlyOwner) !== null && _c !== void 0 ? _c : undefined;
1323
+ message.ignorePendingPkg = (_d = object.ignorePendingPkg) !== null && _d !== void 0 ? _d : undefined;
1077
1324
  return message;
1078
1325
  },
1079
1326
  };
@@ -1275,7 +1522,7 @@ exports.QueryAppStorageUsageRequest = {
1275
1522
  },
1276
1523
  };
1277
1524
  function createBaseAppStorageUsage() {
1278
- return { pkg: 0, data: 0, cache: 0, tmp: 0, userdata: {}, image: 0 };
1525
+ return { pkg: 0, data: 0, cache: 0, tmp: 0, image: 0 };
1279
1526
  }
1280
1527
  exports.AppStorageUsage = {
1281
1528
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -1291,9 +1538,6 @@ exports.AppStorageUsage = {
1291
1538
  if (message.tmp !== 0) {
1292
1539
  writer.uint32(32).uint64(message.tmp);
1293
1540
  }
1294
- Object.entries(message.userdata).forEach(([key, value]) => {
1295
- exports.AppStorageUsage_UserdataEntry.encode({ key: key, value }, writer.uint32(42).fork()).ldelim();
1296
- });
1297
1541
  if (message.image !== 0) {
1298
1542
  writer.uint32(48).uint64(message.image);
1299
1543
  }
@@ -1330,15 +1574,6 @@ exports.AppStorageUsage = {
1330
1574
  }
1331
1575
  message.tmp = longToNumber(reader.uint64());
1332
1576
  continue;
1333
- case 5:
1334
- if (tag !== 42) {
1335
- break;
1336
- }
1337
- const entry5 = exports.AppStorageUsage_UserdataEntry.decode(reader, reader.uint32());
1338
- if (entry5.value !== undefined) {
1339
- message.userdata[entry5.key] = entry5.value;
1340
- }
1341
- continue;
1342
1577
  case 6:
1343
1578
  if (tag !== 48) {
1344
1579
  break;
@@ -1359,12 +1594,6 @@ exports.AppStorageUsage = {
1359
1594
  data: isSet(object.data) ? Number(object.data) : 0,
1360
1595
  cache: isSet(object.cache) ? Number(object.cache) : 0,
1361
1596
  tmp: isSet(object.tmp) ? Number(object.tmp) : 0,
1362
- userdata: isObject(object.userdata)
1363
- ? Object.entries(object.userdata).reduce((acc, [key, value]) => {
1364
- acc[key] = Number(value);
1365
- return acc;
1366
- }, {})
1367
- : {},
1368
1597
  image: isSet(object.image) ? Number(object.image) : 0,
1369
1598
  };
1370
1599
  },
@@ -1382,15 +1611,6 @@ exports.AppStorageUsage = {
1382
1611
  if (message.tmp !== 0) {
1383
1612
  obj.tmp = Math.round(message.tmp);
1384
1613
  }
1385
- if (message.userdata) {
1386
- const entries = Object.entries(message.userdata);
1387
- if (entries.length > 0) {
1388
- obj.userdata = {};
1389
- entries.forEach(([k, v]) => {
1390
- obj.userdata[k] = Math.round(v);
1391
- });
1392
- }
1393
- }
1394
1614
  if (message.image !== 0) {
1395
1615
  obj.image = Math.round(message.image);
1396
1616
  }
@@ -1400,39 +1620,33 @@ exports.AppStorageUsage = {
1400
1620
  return exports.AppStorageUsage.fromPartial(base !== null && base !== void 0 ? base : {});
1401
1621
  },
1402
1622
  fromPartial(object) {
1403
- var _a, _b, _c, _d, _e, _f;
1623
+ var _a, _b, _c, _d, _e;
1404
1624
  const message = createBaseAppStorageUsage();
1405
1625
  message.pkg = (_a = object.pkg) !== null && _a !== void 0 ? _a : 0;
1406
1626
  message.data = (_b = object.data) !== null && _b !== void 0 ? _b : 0;
1407
1627
  message.cache = (_c = object.cache) !== null && _c !== void 0 ? _c : 0;
1408
1628
  message.tmp = (_d = object.tmp) !== null && _d !== void 0 ? _d : 0;
1409
- message.userdata = Object.entries((_e = object.userdata) !== null && _e !== void 0 ? _e : {}).reduce((acc, [key, value]) => {
1410
- if (value !== undefined) {
1411
- acc[key] = Number(value);
1412
- }
1413
- return acc;
1414
- }, {});
1415
- message.image = (_f = object.image) !== null && _f !== void 0 ? _f : 0;
1629
+ message.image = (_e = object.image) !== null && _e !== void 0 ? _e : 0;
1416
1630
  return message;
1417
1631
  },
1418
1632
  };
1419
- function createBaseAppStorageUsage_UserdataEntry() {
1420
- return { key: "", value: 0 };
1633
+ function createBaseUserPermission() {
1634
+ return { uid: "", allowInstallApp: false };
1421
1635
  }
1422
- exports.AppStorageUsage_UserdataEntry = {
1636
+ exports.UserPermission = {
1423
1637
  encode(message, writer = minimal_1.default.Writer.create()) {
1424
- if (message.key !== "") {
1425
- writer.uint32(10).string(message.key);
1638
+ if (message.uid !== "") {
1639
+ writer.uint32(10).string(message.uid);
1426
1640
  }
1427
- if (message.value !== 0) {
1428
- writer.uint32(16).uint64(message.value);
1641
+ if (message.allowInstallApp === true) {
1642
+ writer.uint32(16).bool(message.allowInstallApp);
1429
1643
  }
1430
1644
  return writer;
1431
1645
  },
1432
1646
  decode(input, length) {
1433
1647
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
1434
1648
  let end = length === undefined ? reader.len : reader.pos + length;
1435
- const message = createBaseAppStorageUsage_UserdataEntry();
1649
+ const message = createBaseUserPermission();
1436
1650
  while (reader.pos < end) {
1437
1651
  const tag = reader.uint32();
1438
1652
  switch (tag >>> 3) {
@@ -1440,13 +1654,13 @@ exports.AppStorageUsage_UserdataEntry = {
1440
1654
  if (tag !== 10) {
1441
1655
  break;
1442
1656
  }
1443
- message.key = reader.string();
1657
+ message.uid = reader.string();
1444
1658
  continue;
1445
1659
  case 2:
1446
1660
  if (tag !== 16) {
1447
1661
  break;
1448
1662
  }
1449
- message.value = longToNumber(reader.uint64());
1663
+ message.allowInstallApp = reader.bool();
1450
1664
  continue;
1451
1665
  }
1452
1666
  if ((tag & 7) === 4 || tag === 0) {
@@ -1457,100 +1671,36 @@ exports.AppStorageUsage_UserdataEntry = {
1457
1671
  return message;
1458
1672
  },
1459
1673
  fromJSON(object) {
1460
- return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? Number(object.value) : 0 };
1674
+ return {
1675
+ uid: isSet(object.uid) ? String(object.uid) : "",
1676
+ allowInstallApp: isSet(object.allowInstallApp) ? Boolean(object.allowInstallApp) : false,
1677
+ };
1461
1678
  },
1462
1679
  toJSON(message) {
1463
1680
  const obj = {};
1464
- if (message.key !== "") {
1465
- obj.key = message.key;
1681
+ if (message.uid !== "") {
1682
+ obj.uid = message.uid;
1466
1683
  }
1467
- if (message.value !== 0) {
1468
- obj.value = Math.round(message.value);
1684
+ if (message.allowInstallApp === true) {
1685
+ obj.allowInstallApp = message.allowInstallApp;
1469
1686
  }
1470
1687
  return obj;
1471
1688
  },
1472
1689
  create(base) {
1473
- return exports.AppStorageUsage_UserdataEntry.fromPartial(base !== null && base !== void 0 ? base : {});
1690
+ return exports.UserPermission.fromPartial(base !== null && base !== void 0 ? base : {});
1474
1691
  },
1475
1692
  fromPartial(object) {
1476
1693
  var _a, _b;
1477
- const message = createBaseAppStorageUsage_UserdataEntry();
1478
- message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
1479
- message.value = (_b = object.value) !== null && _b !== void 0 ? _b : 0;
1694
+ const message = createBaseUserPermission();
1695
+ message.uid = (_a = object.uid) !== null && _a !== void 0 ? _a : "";
1696
+ message.allowInstallApp = (_b = object.allowInstallApp) !== null && _b !== void 0 ? _b : false;
1480
1697
  return message;
1481
1698
  },
1482
1699
  };
1483
- function createBaseUserPermission() {
1484
- return { uid: "", allowInstallApp: false };
1700
+ function createBaseGetUserPermissionsRequest() {
1701
+ return { uid: "" };
1485
1702
  }
1486
- exports.UserPermission = {
1487
- encode(message, writer = minimal_1.default.Writer.create()) {
1488
- if (message.uid !== "") {
1489
- writer.uint32(10).string(message.uid);
1490
- }
1491
- if (message.allowInstallApp === true) {
1492
- writer.uint32(16).bool(message.allowInstallApp);
1493
- }
1494
- return writer;
1495
- },
1496
- decode(input, length) {
1497
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
1498
- let end = length === undefined ? reader.len : reader.pos + length;
1499
- const message = createBaseUserPermission();
1500
- while (reader.pos < end) {
1501
- const tag = reader.uint32();
1502
- switch (tag >>> 3) {
1503
- case 1:
1504
- if (tag !== 10) {
1505
- break;
1506
- }
1507
- message.uid = reader.string();
1508
- continue;
1509
- case 2:
1510
- if (tag !== 16) {
1511
- break;
1512
- }
1513
- message.allowInstallApp = reader.bool();
1514
- continue;
1515
- }
1516
- if ((tag & 7) === 4 || tag === 0) {
1517
- break;
1518
- }
1519
- reader.skipType(tag & 7);
1520
- }
1521
- return message;
1522
- },
1523
- fromJSON(object) {
1524
- return {
1525
- uid: isSet(object.uid) ? String(object.uid) : "",
1526
- allowInstallApp: isSet(object.allowInstallApp) ? Boolean(object.allowInstallApp) : false,
1527
- };
1528
- },
1529
- toJSON(message) {
1530
- const obj = {};
1531
- if (message.uid !== "") {
1532
- obj.uid = message.uid;
1533
- }
1534
- if (message.allowInstallApp === true) {
1535
- obj.allowInstallApp = message.allowInstallApp;
1536
- }
1537
- return obj;
1538
- },
1539
- create(base) {
1540
- return exports.UserPermission.fromPartial(base !== null && base !== void 0 ? base : {});
1541
- },
1542
- fromPartial(object) {
1543
- var _a, _b;
1544
- const message = createBaseUserPermission();
1545
- message.uid = (_a = object.uid) !== null && _a !== void 0 ? _a : "";
1546
- message.allowInstallApp = (_b = object.allowInstallApp) !== null && _b !== void 0 ? _b : false;
1547
- return message;
1548
- },
1549
- };
1550
- function createBaseGetUserPermissionsRequest() {
1551
- return { uid: "" };
1552
- }
1553
- exports.GetUserPermissionsRequest = {
1703
+ exports.GetUserPermissionsRequest = {
1554
1704
  encode(message, writer = minimal_1.default.Writer.create()) {
1555
1705
  if (message.uid !== "") {
1556
1706
  writer.uint32(10).string(message.uid);
@@ -2120,20 +2270,62 @@ exports.SubscribeAppChangeResponse = {
2120
2270
  return message;
2121
2271
  },
2122
2272
  };
2123
- function createBaseGetAppDownloadProgressRequest() {
2124
- return { appidList: [] };
2273
+ function createBasePendingTaskInfo() {
2274
+ return {
2275
+ taskId: "",
2276
+ status: 0,
2277
+ createAt: undefined,
2278
+ downloadUrl: "",
2279
+ totalSize: undefined,
2280
+ downloadedSize: 0,
2281
+ taskSha256: undefined,
2282
+ taskTitle: undefined,
2283
+ taskPkgId: undefined,
2284
+ realPkgId: undefined,
2285
+ detail: undefined,
2286
+ };
2125
2287
  }
2126
- exports.GetAppDownloadProgressRequest = {
2288
+ exports.PendingTaskInfo = {
2127
2289
  encode(message, writer = minimal_1.default.Writer.create()) {
2128
- for (const v of message.appidList) {
2129
- writer.uint32(10).string(v);
2290
+ if (message.taskId !== "") {
2291
+ writer.uint32(10).string(message.taskId);
2292
+ }
2293
+ if (message.status !== 0) {
2294
+ writer.uint32(16).int32(message.status);
2295
+ }
2296
+ if (message.createAt !== undefined) {
2297
+ timestamp_1.Timestamp.encode(toTimestamp(message.createAt), writer.uint32(26).fork()).ldelim();
2298
+ }
2299
+ if (message.downloadUrl !== "") {
2300
+ writer.uint32(34).string(message.downloadUrl);
2301
+ }
2302
+ if (message.totalSize !== undefined) {
2303
+ writer.uint32(40).uint64(message.totalSize);
2304
+ }
2305
+ if (message.downloadedSize !== 0) {
2306
+ writer.uint32(48).uint64(message.downloadedSize);
2307
+ }
2308
+ if (message.taskSha256 !== undefined) {
2309
+ writer.uint32(58).string(message.taskSha256);
2310
+ }
2311
+ if (message.taskTitle !== undefined) {
2312
+ writer.uint32(66).string(message.taskTitle);
2313
+ }
2314
+ if (message.taskPkgId !== undefined) {
2315
+ writer.uint32(74).string(message.taskPkgId);
2316
+ }
2317
+ if (message.realPkgId !== undefined) {
2318
+ writer.uint32(82).string(message.realPkgId);
2319
+ }
2320
+ if (message.detail !== undefined) {
2321
+ writer.uint32(90).string(message.detail);
2130
2322
  }
2131
2323
  return writer;
2132
2324
  },
2133
2325
  decode(input, length) {
2134
2326
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2135
2327
  let end = length === undefined ? reader.len : reader.pos + length;
2136
- const message = createBaseGetAppDownloadProgressRequest();
2328
+ const message = createBasePendingTaskInfo();
2137
2329
  while (reader.pos < end) {
2138
2330
  const tag = reader.uint32();
2139
2331
  switch (tag >>> 3) {
@@ -2141,7 +2333,67 @@ exports.GetAppDownloadProgressRequest = {
2141
2333
  if (tag !== 10) {
2142
2334
  break;
2143
2335
  }
2144
- message.appidList.push(reader.string());
2336
+ message.taskId = reader.string();
2337
+ continue;
2338
+ case 2:
2339
+ if (tag !== 16) {
2340
+ break;
2341
+ }
2342
+ message.status = reader.int32();
2343
+ continue;
2344
+ case 3:
2345
+ if (tag !== 26) {
2346
+ break;
2347
+ }
2348
+ message.createAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
2349
+ continue;
2350
+ case 4:
2351
+ if (tag !== 34) {
2352
+ break;
2353
+ }
2354
+ message.downloadUrl = reader.string();
2355
+ continue;
2356
+ case 5:
2357
+ if (tag !== 40) {
2358
+ break;
2359
+ }
2360
+ message.totalSize = longToNumber(reader.uint64());
2361
+ continue;
2362
+ case 6:
2363
+ if (tag !== 48) {
2364
+ break;
2365
+ }
2366
+ message.downloadedSize = longToNumber(reader.uint64());
2367
+ continue;
2368
+ case 7:
2369
+ if (tag !== 58) {
2370
+ break;
2371
+ }
2372
+ message.taskSha256 = reader.string();
2373
+ continue;
2374
+ case 8:
2375
+ if (tag !== 66) {
2376
+ break;
2377
+ }
2378
+ message.taskTitle = reader.string();
2379
+ continue;
2380
+ case 9:
2381
+ if (tag !== 74) {
2382
+ break;
2383
+ }
2384
+ message.taskPkgId = reader.string();
2385
+ continue;
2386
+ case 10:
2387
+ if (tag !== 82) {
2388
+ break;
2389
+ }
2390
+ message.realPkgId = reader.string();
2391
+ continue;
2392
+ case 11:
2393
+ if (tag !== 90) {
2394
+ break;
2395
+ }
2396
+ message.detail = reader.string();
2145
2397
  continue;
2146
2398
  }
2147
2399
  if ((tag & 7) === 4 || tag === 0) {
@@ -2152,41 +2404,128 @@ exports.GetAppDownloadProgressRequest = {
2152
2404
  return message;
2153
2405
  },
2154
2406
  fromJSON(object) {
2155
- return { appidList: Array.isArray(object === null || object === void 0 ? void 0 : object.appidList) ? object.appidList.map((e) => String(e)) : [] };
2407
+ return {
2408
+ taskId: isSet(object.taskId) ? String(object.taskId) : "",
2409
+ status: isSet(object.status) ? pendingTaskInfo_PendingTaskStatusFromJSON(object.status) : 0,
2410
+ createAt: isSet(object.createAt) ? fromJsonTimestamp(object.createAt) : undefined,
2411
+ downloadUrl: isSet(object.downloadUrl) ? String(object.downloadUrl) : "",
2412
+ totalSize: isSet(object.totalSize) ? Number(object.totalSize) : undefined,
2413
+ downloadedSize: isSet(object.downloadedSize) ? Number(object.downloadedSize) : 0,
2414
+ taskSha256: isSet(object.taskSha256) ? String(object.taskSha256) : undefined,
2415
+ taskTitle: isSet(object.taskTitle) ? String(object.taskTitle) : undefined,
2416
+ taskPkgId: isSet(object.taskPkgId) ? String(object.taskPkgId) : undefined,
2417
+ realPkgId: isSet(object.realPkgId) ? String(object.realPkgId) : undefined,
2418
+ detail: isSet(object.detail) ? String(object.detail) : undefined,
2419
+ };
2156
2420
  },
2157
2421
  toJSON(message) {
2158
- var _a;
2159
2422
  const obj = {};
2160
- if ((_a = message.appidList) === null || _a === void 0 ? void 0 : _a.length) {
2161
- obj.appidList = message.appidList;
2423
+ if (message.taskId !== "") {
2424
+ obj.taskId = message.taskId;
2425
+ }
2426
+ if (message.status !== 0) {
2427
+ obj.status = pendingTaskInfo_PendingTaskStatusToJSON(message.status);
2428
+ }
2429
+ if (message.createAt !== undefined) {
2430
+ obj.createAt = message.createAt.toISOString();
2431
+ }
2432
+ if (message.downloadUrl !== "") {
2433
+ obj.downloadUrl = message.downloadUrl;
2434
+ }
2435
+ if (message.totalSize !== undefined) {
2436
+ obj.totalSize = Math.round(message.totalSize);
2437
+ }
2438
+ if (message.downloadedSize !== 0) {
2439
+ obj.downloadedSize = Math.round(message.downloadedSize);
2440
+ }
2441
+ if (message.taskSha256 !== undefined) {
2442
+ obj.taskSha256 = message.taskSha256;
2443
+ }
2444
+ if (message.taskTitle !== undefined) {
2445
+ obj.taskTitle = message.taskTitle;
2446
+ }
2447
+ if (message.taskPkgId !== undefined) {
2448
+ obj.taskPkgId = message.taskPkgId;
2449
+ }
2450
+ if (message.realPkgId !== undefined) {
2451
+ obj.realPkgId = message.realPkgId;
2452
+ }
2453
+ if (message.detail !== undefined) {
2454
+ obj.detail = message.detail;
2162
2455
  }
2163
2456
  return obj;
2164
2457
  },
2165
2458
  create(base) {
2166
- return exports.GetAppDownloadProgressRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2459
+ return exports.PendingTaskInfo.fromPartial(base !== null && base !== void 0 ? base : {});
2167
2460
  },
2168
2461
  fromPartial(object) {
2169
- var _a;
2170
- const message = createBaseGetAppDownloadProgressRequest();
2171
- message.appidList = ((_a = object.appidList) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
2462
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
2463
+ const message = createBasePendingTaskInfo();
2464
+ message.taskId = (_a = object.taskId) !== null && _a !== void 0 ? _a : "";
2465
+ message.status = (_b = object.status) !== null && _b !== void 0 ? _b : 0;
2466
+ message.createAt = (_c = object.createAt) !== null && _c !== void 0 ? _c : undefined;
2467
+ message.downloadUrl = (_d = object.downloadUrl) !== null && _d !== void 0 ? _d : "";
2468
+ message.totalSize = (_e = object.totalSize) !== null && _e !== void 0 ? _e : undefined;
2469
+ message.downloadedSize = (_f = object.downloadedSize) !== null && _f !== void 0 ? _f : 0;
2470
+ message.taskSha256 = (_g = object.taskSha256) !== null && _g !== void 0 ? _g : undefined;
2471
+ message.taskTitle = (_h = object.taskTitle) !== null && _h !== void 0 ? _h : undefined;
2472
+ message.taskPkgId = (_j = object.taskPkgId) !== null && _j !== void 0 ? _j : undefined;
2473
+ message.realPkgId = (_k = object.realPkgId) !== null && _k !== void 0 ? _k : undefined;
2474
+ message.detail = (_l = object.detail) !== null && _l !== void 0 ? _l : undefined;
2172
2475
  return message;
2173
2476
  },
2174
2477
  };
2175
- function createBaseGetAppDownloadProgressResponse() {
2176
- return { progresses: {} };
2478
+ function createBaseQueryPendingTaskRequest() {
2479
+ return {};
2177
2480
  }
2178
- exports.GetAppDownloadProgressResponse = {
2481
+ exports.QueryPendingTaskRequest = {
2482
+ encode(_, writer = minimal_1.default.Writer.create()) {
2483
+ return writer;
2484
+ },
2485
+ decode(input, length) {
2486
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2487
+ let end = length === undefined ? reader.len : reader.pos + length;
2488
+ const message = createBaseQueryPendingTaskRequest();
2489
+ while (reader.pos < end) {
2490
+ const tag = reader.uint32();
2491
+ switch (tag >>> 3) {
2492
+ }
2493
+ if ((tag & 7) === 4 || tag === 0) {
2494
+ break;
2495
+ }
2496
+ reader.skipType(tag & 7);
2497
+ }
2498
+ return message;
2499
+ },
2500
+ fromJSON(_) {
2501
+ return {};
2502
+ },
2503
+ toJSON(_) {
2504
+ const obj = {};
2505
+ return obj;
2506
+ },
2507
+ create(base) {
2508
+ return exports.QueryPendingTaskRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2509
+ },
2510
+ fromPartial(_) {
2511
+ const message = createBaseQueryPendingTaskRequest();
2512
+ return message;
2513
+ },
2514
+ };
2515
+ function createBaseQueryPendingTaskResponse() {
2516
+ return { infos: [] };
2517
+ }
2518
+ exports.QueryPendingTaskResponse = {
2179
2519
  encode(message, writer = minimal_1.default.Writer.create()) {
2180
- Object.entries(message.progresses).forEach(([key, value]) => {
2181
- exports.GetAppDownloadProgressResponse_ProgressesEntry.encode({ key: key, value }, writer.uint32(10).fork())
2182
- .ldelim();
2183
- });
2520
+ for (const v of message.infos) {
2521
+ exports.PendingTaskInfo.encode(v, writer.uint32(10).fork()).ldelim();
2522
+ }
2184
2523
  return writer;
2185
2524
  },
2186
2525
  decode(input, length) {
2187
2526
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2188
2527
  let end = length === undefined ? reader.len : reader.pos + length;
2189
- const message = createBaseGetAppDownloadProgressResponse();
2528
+ const message = createBaseQueryPendingTaskResponse();
2190
2529
  while (reader.pos < end) {
2191
2530
  const tag = reader.uint32();
2192
2531
  switch (tag >>> 3) {
@@ -2194,10 +2533,7 @@ exports.GetAppDownloadProgressResponse = {
2194
2533
  if (tag !== 10) {
2195
2534
  break;
2196
2535
  }
2197
- const entry1 = exports.GetAppDownloadProgressResponse_ProgressesEntry.decode(reader, reader.uint32());
2198
- if (entry1.value !== undefined) {
2199
- message.progresses[entry1.key] = entry1.value;
2200
- }
2536
+ message.infos.push(exports.PendingTaskInfo.decode(reader, reader.uint32()));
2201
2537
  continue;
2202
2538
  }
2203
2539
  if ((tag & 7) === 4 || tag === 0) {
@@ -2208,60 +2544,43 @@ exports.GetAppDownloadProgressResponse = {
2208
2544
  return message;
2209
2545
  },
2210
2546
  fromJSON(object) {
2211
- return {
2212
- progresses: isObject(object.progresses)
2213
- ? Object.entries(object.progresses).reduce((acc, [key, value]) => {
2214
- acc[key] = exports.AppDownloadProgress.fromJSON(value);
2215
- return acc;
2216
- }, {})
2217
- : {},
2218
- };
2547
+ return { infos: Array.isArray(object === null || object === void 0 ? void 0 : object.infos) ? object.infos.map((e) => exports.PendingTaskInfo.fromJSON(e)) : [] };
2219
2548
  },
2220
2549
  toJSON(message) {
2550
+ var _a;
2221
2551
  const obj = {};
2222
- if (message.progresses) {
2223
- const entries = Object.entries(message.progresses);
2224
- if (entries.length > 0) {
2225
- obj.progresses = {};
2226
- entries.forEach(([k, v]) => {
2227
- obj.progresses[k] = exports.AppDownloadProgress.toJSON(v);
2228
- });
2229
- }
2552
+ if ((_a = message.infos) === null || _a === void 0 ? void 0 : _a.length) {
2553
+ obj.infos = message.infos.map((e) => exports.PendingTaskInfo.toJSON(e));
2230
2554
  }
2231
2555
  return obj;
2232
2556
  },
2233
2557
  create(base) {
2234
- return exports.GetAppDownloadProgressResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2558
+ return exports.QueryPendingTaskResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2235
2559
  },
2236
2560
  fromPartial(object) {
2237
2561
  var _a;
2238
- const message = createBaseGetAppDownloadProgressResponse();
2239
- message.progresses = Object.entries((_a = object.progresses) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
2240
- if (value !== undefined) {
2241
- acc[key] = exports.AppDownloadProgress.fromPartial(value);
2242
- }
2243
- return acc;
2244
- }, {});
2562
+ const message = createBaseQueryPendingTaskResponse();
2563
+ message.infos = ((_a = object.infos) === null || _a === void 0 ? void 0 : _a.map((e) => exports.PendingTaskInfo.fromPartial(e))) || [];
2245
2564
  return message;
2246
2565
  },
2247
2566
  };
2248
- function createBaseGetAppDownloadProgressResponse_ProgressesEntry() {
2249
- return { key: "", value: undefined };
2567
+ function createBaseCancelPendingTaskRequest() {
2568
+ return { taskId: "", onlyPause: false };
2250
2569
  }
2251
- exports.GetAppDownloadProgressResponse_ProgressesEntry = {
2570
+ exports.CancelPendingTaskRequest = {
2252
2571
  encode(message, writer = minimal_1.default.Writer.create()) {
2253
- if (message.key !== "") {
2254
- writer.uint32(10).string(message.key);
2572
+ if (message.taskId !== "") {
2573
+ writer.uint32(10).string(message.taskId);
2255
2574
  }
2256
- if (message.value !== undefined) {
2257
- exports.AppDownloadProgress.encode(message.value, writer.uint32(18).fork()).ldelim();
2575
+ if (message.onlyPause === true) {
2576
+ writer.uint32(16).bool(message.onlyPause);
2258
2577
  }
2259
2578
  return writer;
2260
2579
  },
2261
2580
  decode(input, length) {
2262
2581
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2263
2582
  let end = length === undefined ? reader.len : reader.pos + length;
2264
- const message = createBaseGetAppDownloadProgressResponse_ProgressesEntry();
2583
+ const message = createBaseCancelPendingTaskRequest();
2265
2584
  while (reader.pos < end) {
2266
2585
  const tag = reader.uint32();
2267
2586
  switch (tag >>> 3) {
@@ -2269,13 +2588,13 @@ exports.GetAppDownloadProgressResponse_ProgressesEntry = {
2269
2588
  if (tag !== 10) {
2270
2589
  break;
2271
2590
  }
2272
- message.key = reader.string();
2591
+ message.taskId = reader.string();
2273
2592
  continue;
2274
2593
  case 2:
2275
- if (tag !== 18) {
2594
+ if (tag !== 16) {
2276
2595
  break;
2277
2596
  }
2278
- message.value = exports.AppDownloadProgress.decode(reader, reader.uint32());
2597
+ message.onlyPause = reader.bool();
2279
2598
  continue;
2280
2599
  }
2281
2600
  if ((tag & 7) === 4 || tag === 0) {
@@ -2287,37 +2606,72 @@ exports.GetAppDownloadProgressResponse_ProgressesEntry = {
2287
2606
  },
2288
2607
  fromJSON(object) {
2289
2608
  return {
2290
- key: isSet(object.key) ? String(object.key) : "",
2291
- value: isSet(object.value) ? exports.AppDownloadProgress.fromJSON(object.value) : undefined,
2609
+ taskId: isSet(object.taskId) ? String(object.taskId) : "",
2610
+ onlyPause: isSet(object.onlyPause) ? Boolean(object.onlyPause) : false,
2292
2611
  };
2293
2612
  },
2294
2613
  toJSON(message) {
2295
2614
  const obj = {};
2296
- if (message.key !== "") {
2297
- obj.key = message.key;
2615
+ if (message.taskId !== "") {
2616
+ obj.taskId = message.taskId;
2298
2617
  }
2299
- if (message.value !== undefined) {
2300
- obj.value = exports.AppDownloadProgress.toJSON(message.value);
2618
+ if (message.onlyPause === true) {
2619
+ obj.onlyPause = message.onlyPause;
2301
2620
  }
2302
2621
  return obj;
2303
2622
  },
2304
2623
  create(base) {
2305
- return exports.GetAppDownloadProgressResponse_ProgressesEntry.fromPartial(base !== null && base !== void 0 ? base : {});
2624
+ return exports.CancelPendingTaskRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2306
2625
  },
2307
2626
  fromPartial(object) {
2308
- var _a;
2309
- const message = createBaseGetAppDownloadProgressResponse_ProgressesEntry();
2310
- message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
2311
- message.value = (object.value !== undefined && object.value !== null)
2312
- ? exports.AppDownloadProgress.fromPartial(object.value)
2313
- : undefined;
2627
+ var _a, _b;
2628
+ const message = createBaseCancelPendingTaskRequest();
2629
+ message.taskId = (_a = object.taskId) !== null && _a !== void 0 ? _a : "";
2630
+ message.onlyPause = (_b = object.onlyPause) !== null && _b !== void 0 ? _b : false;
2631
+ return message;
2632
+ },
2633
+ };
2634
+ function createBaseCancelPendingTaskResponse() {
2635
+ return {};
2636
+ }
2637
+ exports.CancelPendingTaskResponse = {
2638
+ encode(_, writer = minimal_1.default.Writer.create()) {
2639
+ return writer;
2640
+ },
2641
+ decode(input, length) {
2642
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2643
+ let end = length === undefined ? reader.len : reader.pos + length;
2644
+ const message = createBaseCancelPendingTaskResponse();
2645
+ while (reader.pos < end) {
2646
+ const tag = reader.uint32();
2647
+ switch (tag >>> 3) {
2648
+ }
2649
+ if ((tag & 7) === 4 || tag === 0) {
2650
+ break;
2651
+ }
2652
+ reader.skipType(tag & 7);
2653
+ }
2654
+ return message;
2655
+ },
2656
+ fromJSON(_) {
2657
+ return {};
2658
+ },
2659
+ toJSON(_) {
2660
+ const obj = {};
2661
+ return obj;
2662
+ },
2663
+ create(base) {
2664
+ return exports.CancelPendingTaskResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2665
+ },
2666
+ fromPartial(_) {
2667
+ const message = createBaseCancelPendingTaskResponse();
2314
2668
  return message;
2315
2669
  },
2316
2670
  };
2317
2671
  class PackageManagerClientImpl {
2318
2672
  constructor(rpc) {
2319
2673
  this.rpc = rpc;
2320
- this.Install = this.Install.bind(this);
2674
+ this.InstallLPK = this.InstallLPK.bind(this);
2321
2675
  this.Uninstall = this.Uninstall.bind(this);
2322
2676
  this.Pause = this.Pause.bind(this);
2323
2677
  this.Resume = this.Resume.bind(this);
@@ -2325,18 +2679,20 @@ class PackageManagerClientImpl {
2325
2679
  this.GetAppCfg = this.GetAppCfg.bind(this);
2326
2680
  this.SetAppCfg = this.SetAppCfg.bind(this);
2327
2681
  this.QueryApplication = this.QueryApplication.bind(this);
2682
+ this.QueryPendingTask = this.QueryPendingTask.bind(this);
2683
+ this.CancelPendingTask = this.CancelPendingTask.bind(this);
2328
2684
  this.SubscribeAppChange = this.SubscribeAppChange.bind(this);
2329
- this.GetAppDownloadProgress = this.GetAppDownloadProgress.bind(this);
2330
2685
  this.QueryAppStorageUsage = this.QueryAppStorageUsage.bind(this);
2331
2686
  this.SetUserPermissions = this.SetUserPermissions.bind(this);
2332
2687
  this.GetUserPermissions = this.GetUserPermissions.bind(this);
2333
- this.PauseAppDownload = this.PauseAppDownload.bind(this);
2334
2688
  this.GetActionURL = this.GetActionURL.bind(this);
2335
2689
  this.ListFileHandler = this.ListFileHandler.bind(this);
2336
2690
  this.StopMySelf = this.StopMySelf.bind(this);
2691
+ this.PauseAppDownload = this.PauseAppDownload.bind(this);
2692
+ this.Install = this.Install.bind(this);
2337
2693
  }
2338
- Install(request, metadata, abortSignal) {
2339
- return this.rpc.unary(exports.PackageManagerInstallDesc, exports.InstallRequest.fromPartial(request), metadata, abortSignal);
2694
+ InstallLPK(request, metadata, abortSignal) {
2695
+ return this.rpc.unary(exports.PackageManagerInstallLPKDesc, exports.InstallLPKRequest.fromPartial(request), metadata, abortSignal);
2340
2696
  }
2341
2697
  Uninstall(request, metadata, abortSignal) {
2342
2698
  return this.rpc.unary(exports.PackageManagerUninstallDesc, exports.UninstallRequest.fromPartial(request), metadata, abortSignal);
@@ -2359,12 +2715,15 @@ class PackageManagerClientImpl {
2359
2715
  QueryApplication(request, metadata, abortSignal) {
2360
2716
  return this.rpc.unary(exports.PackageManagerQueryApplicationDesc, exports.QueryApplicationRequest.fromPartial(request), metadata, abortSignal);
2361
2717
  }
2718
+ QueryPendingTask(request, metadata, abortSignal) {
2719
+ return this.rpc.unary(exports.PackageManagerQueryPendingTaskDesc, exports.QueryPendingTaskRequest.fromPartial(request), metadata, abortSignal);
2720
+ }
2721
+ CancelPendingTask(request, metadata, abortSignal) {
2722
+ return this.rpc.unary(exports.PackageManagerCancelPendingTaskDesc, exports.CancelPendingTaskRequest.fromPartial(request), metadata, abortSignal);
2723
+ }
2362
2724
  SubscribeAppChange(request, metadata, abortSignal) {
2363
2725
  return this.rpc.invoke(exports.PackageManagerSubscribeAppChangeDesc, exports.SubscribeAppChangeRequest.fromPartial(request), metadata, abortSignal);
2364
2726
  }
2365
- GetAppDownloadProgress(request, metadata, abortSignal) {
2366
- return this.rpc.unary(exports.PackageManagerGetAppDownloadProgressDesc, exports.GetAppDownloadProgressRequest.fromPartial(request), metadata, abortSignal);
2367
- }
2368
2727
  QueryAppStorageUsage(request, metadata, abortSignal) {
2369
2728
  return this.rpc.unary(exports.PackageManagerQueryAppStorageUsageDesc, exports.QueryAppStorageUsageRequest.fromPartial(request), metadata, abortSignal);
2370
2729
  }
@@ -2374,9 +2733,6 @@ class PackageManagerClientImpl {
2374
2733
  GetUserPermissions(request, metadata, abortSignal) {
2375
2734
  return this.rpc.unary(exports.PackageManagerGetUserPermissionsDesc, exports.GetUserPermissionsRequest.fromPartial(request), metadata, abortSignal);
2376
2735
  }
2377
- PauseAppDownload(request, metadata, abortSignal) {
2378
- return this.rpc.unary(exports.PackageManagerPauseAppDownloadDesc, exports.Appid.fromPartial(request), metadata, abortSignal);
2379
- }
2380
2736
  GetActionURL(request, metadata, abortSignal) {
2381
2737
  return this.rpc.unary(exports.PackageManagerGetActionURLDesc, exports.GetActionURLRequest.fromPartial(request), metadata, abortSignal);
2382
2738
  }
@@ -2386,22 +2742,28 @@ class PackageManagerClientImpl {
2386
2742
  StopMySelf(request, metadata, abortSignal) {
2387
2743
  return this.rpc.unary(exports.PackageManagerStopMySelfDesc, exports.StopMySelfRequest.fromPartial(request), metadata, abortSignal);
2388
2744
  }
2745
+ PauseAppDownload(request, metadata, abortSignal) {
2746
+ return this.rpc.unary(exports.PackageManagerPauseAppDownloadDesc, exports.Appid.fromPartial(request), metadata, abortSignal);
2747
+ }
2748
+ Install(request, metadata, abortSignal) {
2749
+ return this.rpc.unary(exports.PackageManagerInstallDesc, exports.InstallRequest.fromPartial(request), metadata, abortSignal);
2750
+ }
2389
2751
  }
2390
2752
  exports.PackageManagerClientImpl = PackageManagerClientImpl;
2391
2753
  exports.PackageManagerDesc = { serviceName: "cloud.lazycat.apis.sys.PackageManager" };
2392
- exports.PackageManagerInstallDesc = {
2393
- methodName: "Install",
2754
+ exports.PackageManagerInstallLPKDesc = {
2755
+ methodName: "InstallLPK",
2394
2756
  service: exports.PackageManagerDesc,
2395
2757
  requestStream: false,
2396
2758
  responseStream: false,
2397
2759
  requestType: {
2398
2760
  serializeBinary() {
2399
- return exports.InstallRequest.encode(this).finish();
2761
+ return exports.InstallLPKRequest.encode(this).finish();
2400
2762
  },
2401
2763
  },
2402
2764
  responseType: {
2403
2765
  deserializeBinary(data) {
2404
- const value = empty_1.Empty.decode(data);
2766
+ const value = exports.InstallLPKResponse.decode(data);
2405
2767
  return Object.assign(Object.assign({}, value), { toObject() {
2406
2768
  return value;
2407
2769
  } });
@@ -2541,38 +2903,57 @@ exports.PackageManagerQueryApplicationDesc = {
2541
2903
  },
2542
2904
  },
2543
2905
  };
2544
- exports.PackageManagerSubscribeAppChangeDesc = {
2545
- methodName: "SubscribeAppChange",
2906
+ exports.PackageManagerQueryPendingTaskDesc = {
2907
+ methodName: "QueryPendingTask",
2546
2908
  service: exports.PackageManagerDesc,
2547
2909
  requestStream: false,
2548
- responseStream: true,
2910
+ responseStream: false,
2549
2911
  requestType: {
2550
2912
  serializeBinary() {
2551
- return exports.SubscribeAppChangeRequest.encode(this).finish();
2913
+ return exports.QueryPendingTaskRequest.encode(this).finish();
2552
2914
  },
2553
2915
  },
2554
2916
  responseType: {
2555
2917
  deserializeBinary(data) {
2556
- const value = exports.SubscribeAppChangeResponse.decode(data);
2918
+ const value = exports.QueryPendingTaskResponse.decode(data);
2557
2919
  return Object.assign(Object.assign({}, value), { toObject() {
2558
2920
  return value;
2559
2921
  } });
2560
2922
  },
2561
2923
  },
2562
2924
  };
2563
- exports.PackageManagerGetAppDownloadProgressDesc = {
2564
- methodName: "GetAppDownloadProgress",
2925
+ exports.PackageManagerCancelPendingTaskDesc = {
2926
+ methodName: "CancelPendingTask",
2565
2927
  service: exports.PackageManagerDesc,
2566
2928
  requestStream: false,
2567
2929
  responseStream: false,
2568
2930
  requestType: {
2569
2931
  serializeBinary() {
2570
- return exports.GetAppDownloadProgressRequest.encode(this).finish();
2932
+ return exports.CancelPendingTaskRequest.encode(this).finish();
2933
+ },
2934
+ },
2935
+ responseType: {
2936
+ deserializeBinary(data) {
2937
+ const value = exports.CancelPendingTaskResponse.decode(data);
2938
+ return Object.assign(Object.assign({}, value), { toObject() {
2939
+ return value;
2940
+ } });
2941
+ },
2942
+ },
2943
+ };
2944
+ exports.PackageManagerSubscribeAppChangeDesc = {
2945
+ methodName: "SubscribeAppChange",
2946
+ service: exports.PackageManagerDesc,
2947
+ requestStream: false,
2948
+ responseStream: true,
2949
+ requestType: {
2950
+ serializeBinary() {
2951
+ return exports.SubscribeAppChangeRequest.encode(this).finish();
2571
2952
  },
2572
2953
  },
2573
2954
  responseType: {
2574
2955
  deserializeBinary(data) {
2575
- const value = exports.GetAppDownloadProgressResponse.decode(data);
2956
+ const value = exports.SubscribeAppChangeResponse.decode(data);
2576
2957
  return Object.assign(Object.assign({}, value), { toObject() {
2577
2958
  return value;
2578
2959
  } });
@@ -2636,76 +3017,95 @@ exports.PackageManagerGetUserPermissionsDesc = {
2636
3017
  },
2637
3018
  },
2638
3019
  };
2639
- exports.PackageManagerPauseAppDownloadDesc = {
2640
- methodName: "PauseAppDownload",
3020
+ exports.PackageManagerGetActionURLDesc = {
3021
+ methodName: "GetActionURL",
2641
3022
  service: exports.PackageManagerDesc,
2642
3023
  requestStream: false,
2643
3024
  responseStream: false,
2644
3025
  requestType: {
2645
3026
  serializeBinary() {
2646
- return exports.Appid.encode(this).finish();
3027
+ return exports.GetActionURLRequest.encode(this).finish();
2647
3028
  },
2648
3029
  },
2649
3030
  responseType: {
2650
3031
  deserializeBinary(data) {
2651
- const value = empty_1.Empty.decode(data);
3032
+ const value = exports.GetActionURLResponse.decode(data);
2652
3033
  return Object.assign(Object.assign({}, value), { toObject() {
2653
3034
  return value;
2654
3035
  } });
2655
3036
  },
2656
3037
  },
2657
3038
  };
2658
- exports.PackageManagerGetActionURLDesc = {
2659
- methodName: "GetActionURL",
3039
+ exports.PackageManagerListFileHandlerDesc = {
3040
+ methodName: "ListFileHandler",
2660
3041
  service: exports.PackageManagerDesc,
2661
3042
  requestStream: false,
2662
3043
  responseStream: false,
2663
3044
  requestType: {
2664
3045
  serializeBinary() {
2665
- return exports.GetActionURLRequest.encode(this).finish();
3046
+ return exports.ListFileHandlerRequest.encode(this).finish();
2666
3047
  },
2667
3048
  },
2668
3049
  responseType: {
2669
3050
  deserializeBinary(data) {
2670
- const value = exports.GetActionURLResponse.decode(data);
3051
+ const value = exports.ListFileHandlerResponse.decode(data);
2671
3052
  return Object.assign(Object.assign({}, value), { toObject() {
2672
3053
  return value;
2673
3054
  } });
2674
3055
  },
2675
3056
  },
2676
3057
  };
2677
- exports.PackageManagerListFileHandlerDesc = {
2678
- methodName: "ListFileHandler",
3058
+ exports.PackageManagerStopMySelfDesc = {
3059
+ methodName: "StopMySelf",
2679
3060
  service: exports.PackageManagerDesc,
2680
3061
  requestStream: false,
2681
3062
  responseStream: false,
2682
3063
  requestType: {
2683
3064
  serializeBinary() {
2684
- return exports.ListFileHandlerRequest.encode(this).finish();
3065
+ return exports.StopMySelfRequest.encode(this).finish();
2685
3066
  },
2686
3067
  },
2687
3068
  responseType: {
2688
3069
  deserializeBinary(data) {
2689
- const value = exports.ListFileHandlerResponse.decode(data);
3070
+ const value = exports.RestartMySelfResponse.decode(data);
2690
3071
  return Object.assign(Object.assign({}, value), { toObject() {
2691
3072
  return value;
2692
3073
  } });
2693
3074
  },
2694
3075
  },
2695
3076
  };
2696
- exports.PackageManagerStopMySelfDesc = {
2697
- methodName: "StopMySelf",
3077
+ exports.PackageManagerPauseAppDownloadDesc = {
3078
+ methodName: "PauseAppDownload",
2698
3079
  service: exports.PackageManagerDesc,
2699
3080
  requestStream: false,
2700
3081
  responseStream: false,
2701
3082
  requestType: {
2702
3083
  serializeBinary() {
2703
- return exports.StopMySelfRequest.encode(this).finish();
3084
+ return exports.Appid.encode(this).finish();
2704
3085
  },
2705
3086
  },
2706
3087
  responseType: {
2707
3088
  deserializeBinary(data) {
2708
- const value = exports.RestartMySelfResponse.decode(data);
3089
+ const value = empty_1.Empty.decode(data);
3090
+ return Object.assign(Object.assign({}, value), { toObject() {
3091
+ return value;
3092
+ } });
3093
+ },
3094
+ },
3095
+ };
3096
+ exports.PackageManagerInstallDesc = {
3097
+ methodName: "Install",
3098
+ service: exports.PackageManagerDesc,
3099
+ requestStream: false,
3100
+ responseStream: false,
3101
+ requestType: {
3102
+ serializeBinary() {
3103
+ return exports.InstallRequest.encode(this).finish();
3104
+ },
3105
+ },
3106
+ responseType: {
3107
+ deserializeBinary(data) {
3108
+ const value = empty_1.Empty.decode(data);
2709
3109
  return Object.assign(Object.assign({}, value), { toObject() {
2710
3110
  return value;
2711
3111
  } });
@@ -2800,6 +3200,27 @@ const tsProtoGlobalThis = (() => {
2800
3200
  }
2801
3201
  throw "Unable to locate global object";
2802
3202
  })();
3203
+ function toTimestamp(date) {
3204
+ const seconds = date.getTime() / 1000;
3205
+ const nanos = (date.getTime() % 1000) * 1000000;
3206
+ return { seconds, nanos };
3207
+ }
3208
+ function fromTimestamp(t) {
3209
+ let millis = (t.seconds || 0) * 1000;
3210
+ millis += (t.nanos || 0) / 1000000;
3211
+ return new Date(millis);
3212
+ }
3213
+ function fromJsonTimestamp(o) {
3214
+ if (o instanceof Date) {
3215
+ return o;
3216
+ }
3217
+ else if (typeof o === "string") {
3218
+ return new Date(o);
3219
+ }
3220
+ else {
3221
+ return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
3222
+ }
3223
+ }
2803
3224
  function longToNumber(long) {
2804
3225
  if (long.gt(Number.MAX_SAFE_INTEGER)) {
2805
3226
  throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
@@ -2810,9 +3231,6 @@ if (minimal_1.default.util.Long !== long_1.default) {
2810
3231
  minimal_1.default.util.Long = long_1.default;
2811
3232
  minimal_1.default.configure();
2812
3233
  }
2813
- function isObject(value) {
2814
- return typeof value === "object" && value !== null;
2815
- }
2816
3234
  function isSet(value) {
2817
3235
  return value !== null && value !== undefined;
2818
3236
  }