@lazycatcloud/sdk 0.1.128 → 0.1.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/box.d.ts +55 -13
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +46 -47
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +40 -12
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +50 -33
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +103 -16
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +59 -49
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/file_handler.d.ts +70 -14
- package/dist/common/file_handler.d.ts.map +1 -1
- package/dist/common/file_handler.js +43 -21
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +660 -91
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +163 -220
- package/dist/common/filetrans.js.map +1 -1
- package/dist/common/gateway.d.ts +61 -15
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +55 -41
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/message.d.ts +21 -2
- package/dist/common/message.d.ts.map +1 -1
- package/dist/common/message.js +18 -25
- package/dist/common/message.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +143 -20
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +59 -53
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts +54 -15
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +52 -39
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +96 -25
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +87 -46
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts +102 -20
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +73 -68
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/extentions/safe_app.d.ts +3 -3
- package/dist/extentions/safe_app.d.ts.map +1 -1
- package/dist/extentions/safe_app.js +10 -1
- package/dist/extentions/safe_app.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts +54951 -4489
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +265 -414
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.d.ts +2 -1
- package/dist/google/protobuf/empty.d.ts.map +1 -1
- package/dist/google/protobuf/empty.js +3 -0
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts +9 -4
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +14 -8
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/grpcweb.d.ts +1 -1
- package/dist/grpcweb.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lanforward/lanforward.d.ts +22 -9
- package/dist/lanforward/lanforward.d.ts.map +1 -1
- package/dist/lanforward/lanforward.js +33 -16
- package/dist/lanforward/lanforward.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts +36 -13
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +47 -40
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/config.d.ts +25 -8
- package/dist/localdevice/config.d.ts.map +1 -1
- package/dist/localdevice/config.js +29 -12
- package/dist/localdevice/config.js.map +1 -1
- package/dist/localdevice/device.d.ts +19 -7
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +27 -13
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +69 -19
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +58 -32
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/local-launch.d.ts +94 -15
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +206 -27
- package/dist/localdevice/local-launch.js.map +1 -1
- package/dist/localdevice/network.d.ts +15 -7
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +26 -10
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts +60 -17
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +57 -52
- package/dist/localdevice/permission.js.map +1 -1
- package/dist/localdevice/photo.d.ts +193 -29
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +122 -172
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/ssdp/ssdp.d.ts +28 -9
- package/dist/ssdp/ssdp.d.ts.map +1 -1
- package/dist/ssdp/ssdp.js +32 -13
- package/dist/ssdp/ssdp.js.map +1 -1
- package/dist/sys/OS_daemon.d.ts +29 -11
- package/dist/sys/OS_daemon.d.ts.map +1 -1
- package/dist/sys/OS_daemon.js +37 -20
- package/dist/sys/OS_daemon.js.map +1 -1
- package/dist/sys/OS_snapshot.d.ts +181 -33
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +141 -121
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +48 -13
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +68 -63
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/event.d.ts +92 -20
- package/dist/sys/event.d.ts.map +1 -1
- package/dist/sys/event.js +65 -40
- package/dist/sys/event.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +246 -34
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +125 -102
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +97 -27
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +93 -82
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/network_manager.d.ts +138 -17
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +72 -78
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +304 -41
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +121 -95
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +335 -61
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +215 -206
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +106 -19
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +82 -68
- package/dist/sys/snapd.js.map +1 -1
- package/package.json +1 -1
- package/dist/API.d.ts +0 -24
- package/dist/API.d.ts.map +0 -1
- package/dist/API.js +0 -117
- package/dist/API.js.map +0 -1
- package/dist/google/protobuf/wrappers.d.ts +0 -182
- package/dist/google/protobuf/wrappers.d.ts.map +0 -1
- package/dist/google/protobuf/wrappers.js +0 -458
- package/dist/google/protobuf/wrappers.js.map +0 -1
- package/dist/sys/message.d.ts +0 -186
- package/dist/sys/message.d.ts.map +0 -1
- package/dist/sys/message.js +0 -493
- package/dist/sys/message.js.map +0 -1
- package/dist/sys/settings.d.ts +0 -68
- package/dist/sys/settings.d.ts.map +0 -1
- package/dist/sys/settings.js +0 -183
- package/dist/sys/settings.js.map +0 -1
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.GrpcWebError = exports.GrpcWebImpl = exports.PackageManagerListFileHandlerDesc = exports.PackageManagerGetActionURLDesc = exports.PackageManagerPauseAppDownloadDesc = exports.PackageManagerGetUserPermissionsDesc = exports.PackageManagerSetUserPermissionsDesc = exports.PackageManagerQueryAppStorageUsageDesc = exports.PackageManagerQueryApplicationDesc = exports.PackageManagerUninstallDesc = exports.PackageManagerInstallDesc = exports.PackageManagerDesc = exports.PackageManagerClientImpl = 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.AppInfo = exports.AppDownloadProgress = exports.UninstallRequest = exports.InstallRequest = exports.PkgURL = exports.actionToJSON = exports.actionFromJSON = exports.Action = exports.appStatusToJSON = exports.appStatusFromJSON = exports.AppStatus = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const grpc_web_1 = require("@improbable-eng/grpc-web");
|
|
9
|
-
const empty_1 = require("../google/protobuf/empty");
|
|
10
9
|
const browser_headers_1 = require("browser-headers");
|
|
11
10
|
const long_1 = __importDefault(require("long"));
|
|
12
11
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
12
|
+
const empty_1 = require("../google/protobuf/empty");
|
|
13
13
|
var AppStatus;
|
|
14
14
|
(function (AppStatus) {
|
|
15
15
|
AppStatus[AppStatus["NotInstalled"] = 0] = "NotInstalled";
|
|
@@ -151,6 +151,9 @@ exports.PkgURL = {
|
|
|
151
151
|
message.sha256 !== undefined && (obj.sha256 = message.sha256);
|
|
152
152
|
return obj;
|
|
153
153
|
},
|
|
154
|
+
create(base) {
|
|
155
|
+
return exports.PkgURL.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
156
|
+
},
|
|
154
157
|
fromPartial(object) {
|
|
155
158
|
var _a, _b;
|
|
156
159
|
const message = createBasePkgURL();
|
|
@@ -220,6 +223,9 @@ exports.InstallRequest = {
|
|
|
220
223
|
message.subdomain !== undefined && (obj.subdomain = message.subdomain);
|
|
221
224
|
return obj;
|
|
222
225
|
},
|
|
226
|
+
create(base) {
|
|
227
|
+
return exports.InstallRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
228
|
+
},
|
|
223
229
|
fromPartial(object) {
|
|
224
230
|
var _a, _b, _c, _d;
|
|
225
231
|
const message = createBaseInstallRequest();
|
|
@@ -275,6 +281,9 @@ exports.UninstallRequest = {
|
|
|
275
281
|
message.clearData !== undefined && (obj.clearData = message.clearData);
|
|
276
282
|
return obj;
|
|
277
283
|
},
|
|
284
|
+
create(base) {
|
|
285
|
+
return exports.UninstallRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
286
|
+
},
|
|
278
287
|
fromPartial(object) {
|
|
279
288
|
var _a, _b;
|
|
280
289
|
const message = createBaseUninstallRequest();
|
|
@@ -324,11 +333,13 @@ exports.AppDownloadProgress = {
|
|
|
324
333
|
},
|
|
325
334
|
toJSON(message) {
|
|
326
335
|
const obj = {};
|
|
327
|
-
message.current !== undefined &&
|
|
328
|
-
(obj.current = Math.round(message.current));
|
|
336
|
+
message.current !== undefined && (obj.current = Math.round(message.current));
|
|
329
337
|
message.total !== undefined && (obj.total = Math.round(message.total));
|
|
330
338
|
return obj;
|
|
331
339
|
},
|
|
340
|
+
create(base) {
|
|
341
|
+
return exports.AppDownloadProgress.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
342
|
+
},
|
|
332
343
|
fromPartial(object) {
|
|
333
344
|
var _a, _b;
|
|
334
345
|
const message = createBaseAppDownloadProgress();
|
|
@@ -435,40 +446,35 @@ exports.AppInfo = {
|
|
|
435
446
|
status: isSet(object.status) ? appStatusFromJSON(object.status) : 0,
|
|
436
447
|
version: isSet(object.version) ? String(object.version) : undefined,
|
|
437
448
|
title: isSet(object.title) ? String(object.title) : undefined,
|
|
438
|
-
description: isSet(object.description)
|
|
439
|
-
? String(object.description)
|
|
440
|
-
: undefined,
|
|
449
|
+
description: isSet(object.description) ? String(object.description) : undefined,
|
|
441
450
|
icon: isSet(object.icon) ? String(object.icon) : undefined,
|
|
442
451
|
domain: isSet(object.domain) ? String(object.domain) : undefined,
|
|
443
452
|
downloadProgress: isSet(object.downloadProgress)
|
|
444
453
|
? exports.AppDownloadProgress.fromJSON(object.downloadProgress)
|
|
445
454
|
: undefined,
|
|
446
455
|
builtin: isSet(object.builtin) ? Boolean(object.builtin) : undefined,
|
|
447
|
-
errorReason: isSet(object.errorReason)
|
|
448
|
-
? String(object.errorReason)
|
|
449
|
-
: undefined,
|
|
456
|
+
errorReason: isSet(object.errorReason) ? String(object.errorReason) : undefined,
|
|
450
457
|
};
|
|
451
458
|
},
|
|
452
459
|
toJSON(message) {
|
|
453
460
|
const obj = {};
|
|
454
461
|
message.appid !== undefined && (obj.appid = message.appid);
|
|
455
|
-
message.status !== undefined &&
|
|
456
|
-
(obj.status = appStatusToJSON(message.status));
|
|
462
|
+
message.status !== undefined && (obj.status = appStatusToJSON(message.status));
|
|
457
463
|
message.version !== undefined && (obj.version = message.version);
|
|
458
464
|
message.title !== undefined && (obj.title = message.title);
|
|
459
|
-
message.description !== undefined &&
|
|
460
|
-
(obj.description = message.description);
|
|
465
|
+
message.description !== undefined && (obj.description = message.description);
|
|
461
466
|
message.icon !== undefined && (obj.icon = message.icon);
|
|
462
467
|
message.domain !== undefined && (obj.domain = message.domain);
|
|
463
|
-
message.downloadProgress !== undefined &&
|
|
464
|
-
(
|
|
465
|
-
|
|
466
|
-
: undefined);
|
|
468
|
+
message.downloadProgress !== undefined && (obj.downloadProgress = message.downloadProgress
|
|
469
|
+
? exports.AppDownloadProgress.toJSON(message.downloadProgress)
|
|
470
|
+
: undefined);
|
|
467
471
|
message.builtin !== undefined && (obj.builtin = message.builtin);
|
|
468
|
-
message.errorReason !== undefined &&
|
|
469
|
-
(obj.errorReason = message.errorReason);
|
|
472
|
+
message.errorReason !== undefined && (obj.errorReason = message.errorReason);
|
|
470
473
|
return obj;
|
|
471
474
|
},
|
|
475
|
+
create(base) {
|
|
476
|
+
return exports.AppInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
477
|
+
},
|
|
472
478
|
fromPartial(object) {
|
|
473
479
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
474
480
|
const message = createBaseAppInfo();
|
|
@@ -479,10 +485,9 @@ exports.AppInfo = {
|
|
|
479
485
|
message.description = (_e = object.description) !== null && _e !== void 0 ? _e : undefined;
|
|
480
486
|
message.icon = (_f = object.icon) !== null && _f !== void 0 ? _f : undefined;
|
|
481
487
|
message.domain = (_g = object.domain) !== null && _g !== void 0 ? _g : undefined;
|
|
482
|
-
message.downloadProgress =
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
: undefined;
|
|
488
|
+
message.downloadProgress = (object.downloadProgress !== undefined && object.downloadProgress !== null)
|
|
489
|
+
? exports.AppDownloadProgress.fromPartial(object.downloadProgress)
|
|
490
|
+
: undefined;
|
|
486
491
|
message.builtin = (_h = object.builtin) !== null && _h !== void 0 ? _h : undefined;
|
|
487
492
|
message.errorReason = (_j = object.errorReason) !== null && _j !== void 0 ? _j : undefined;
|
|
488
493
|
return message;
|
|
@@ -516,11 +521,7 @@ exports.QueryApplicationRequest = {
|
|
|
516
521
|
return message;
|
|
517
522
|
},
|
|
518
523
|
fromJSON(object) {
|
|
519
|
-
return {
|
|
520
|
-
appidList: Array.isArray(object === null || object === void 0 ? void 0 : object.appidList)
|
|
521
|
-
? object.appidList.map((e) => String(e))
|
|
522
|
-
: [],
|
|
523
|
-
};
|
|
524
|
+
return { appidList: Array.isArray(object === null || object === void 0 ? void 0 : object.appidList) ? object.appidList.map((e) => String(e)) : [] };
|
|
524
525
|
},
|
|
525
526
|
toJSON(message) {
|
|
526
527
|
const obj = {};
|
|
@@ -532,6 +533,9 @@ exports.QueryApplicationRequest = {
|
|
|
532
533
|
}
|
|
533
534
|
return obj;
|
|
534
535
|
},
|
|
536
|
+
create(base) {
|
|
537
|
+
return exports.QueryApplicationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
538
|
+
},
|
|
535
539
|
fromPartial(object) {
|
|
536
540
|
var _a;
|
|
537
541
|
const message = createBaseQueryApplicationRequest();
|
|
@@ -567,11 +571,7 @@ exports.QueryApplicationResponse = {
|
|
|
567
571
|
return message;
|
|
568
572
|
},
|
|
569
573
|
fromJSON(object) {
|
|
570
|
-
return {
|
|
571
|
-
infoList: Array.isArray(object === null || object === void 0 ? void 0 : object.infoList)
|
|
572
|
-
? object.infoList.map((e) => exports.AppInfo.fromJSON(e))
|
|
573
|
-
: [],
|
|
574
|
-
};
|
|
574
|
+
return { infoList: Array.isArray(object === null || object === void 0 ? void 0 : object.infoList) ? object.infoList.map((e) => exports.AppInfo.fromJSON(e)) : [] };
|
|
575
575
|
},
|
|
576
576
|
toJSON(message) {
|
|
577
577
|
const obj = {};
|
|
@@ -583,11 +583,13 @@ exports.QueryApplicationResponse = {
|
|
|
583
583
|
}
|
|
584
584
|
return obj;
|
|
585
585
|
},
|
|
586
|
+
create(base) {
|
|
587
|
+
return exports.QueryApplicationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
588
|
+
},
|
|
586
589
|
fromPartial(object) {
|
|
587
590
|
var _a;
|
|
588
591
|
const message = createBaseQueryApplicationResponse();
|
|
589
|
-
message.infoList =
|
|
590
|
-
((_a = object.infoList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.AppInfo.fromPartial(e))) || [];
|
|
592
|
+
message.infoList = ((_a = object.infoList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.AppInfo.fromPartial(e))) || [];
|
|
591
593
|
return message;
|
|
592
594
|
},
|
|
593
595
|
};
|
|
@@ -669,9 +671,7 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
669
671
|
needData: isSet(object.needData) ? Boolean(object.needData) : false,
|
|
670
672
|
needCache: isSet(object.needCache) ? Boolean(object.needCache) : false,
|
|
671
673
|
needTmp: isSet(object.needTmp) ? Boolean(object.needTmp) : false,
|
|
672
|
-
needUserdata: isSet(object.needUserdata)
|
|
673
|
-
? Boolean(object.needUserdata)
|
|
674
|
-
: false,
|
|
674
|
+
needUserdata: isSet(object.needUserdata) ? Boolean(object.needUserdata) : false,
|
|
675
675
|
needImage: isSet(object.needImage) ? Boolean(object.needImage) : false,
|
|
676
676
|
};
|
|
677
677
|
},
|
|
@@ -682,11 +682,13 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
682
682
|
message.needData !== undefined && (obj.needData = message.needData);
|
|
683
683
|
message.needCache !== undefined && (obj.needCache = message.needCache);
|
|
684
684
|
message.needTmp !== undefined && (obj.needTmp = message.needTmp);
|
|
685
|
-
message.needUserdata !== undefined &&
|
|
686
|
-
(obj.needUserdata = message.needUserdata);
|
|
685
|
+
message.needUserdata !== undefined && (obj.needUserdata = message.needUserdata);
|
|
687
686
|
message.needImage !== undefined && (obj.needImage = message.needImage);
|
|
688
687
|
return obj;
|
|
689
688
|
},
|
|
689
|
+
create(base) {
|
|
690
|
+
return exports.QueryAppStorageUsageRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
691
|
+
},
|
|
690
692
|
fromPartial(object) {
|
|
691
693
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
692
694
|
const message = createBaseQueryAppStorageUsageRequest();
|
|
@@ -790,6 +792,9 @@ exports.AppStorageUsage = {
|
|
|
790
792
|
message.image !== undefined && (obj.image = Math.round(message.image));
|
|
791
793
|
return obj;
|
|
792
794
|
},
|
|
795
|
+
create(base) {
|
|
796
|
+
return exports.AppStorageUsage.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
797
|
+
},
|
|
793
798
|
fromPartial(object) {
|
|
794
799
|
var _a, _b, _c, _d, _e, _f;
|
|
795
800
|
const message = createBaseAppStorageUsage();
|
|
@@ -841,10 +846,7 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
841
846
|
return message;
|
|
842
847
|
},
|
|
843
848
|
fromJSON(object) {
|
|
844
|
-
return {
|
|
845
|
-
key: isSet(object.key) ? String(object.key) : "",
|
|
846
|
-
value: isSet(object.value) ? Number(object.value) : 0,
|
|
847
|
-
};
|
|
849
|
+
return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? Number(object.value) : 0 };
|
|
848
850
|
},
|
|
849
851
|
toJSON(message) {
|
|
850
852
|
const obj = {};
|
|
@@ -852,6 +854,9 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
852
854
|
message.value !== undefined && (obj.value = Math.round(message.value));
|
|
853
855
|
return obj;
|
|
854
856
|
},
|
|
857
|
+
create(base) {
|
|
858
|
+
return exports.AppStorageUsage_UserdataEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
859
|
+
},
|
|
855
860
|
fromPartial(object) {
|
|
856
861
|
var _a, _b;
|
|
857
862
|
const message = createBaseAppStorageUsage_UserdataEntry();
|
|
@@ -896,18 +901,18 @@ exports.UserPermission = {
|
|
|
896
901
|
fromJSON(object) {
|
|
897
902
|
return {
|
|
898
903
|
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
899
|
-
allowInstallApp: isSet(object.allowInstallApp)
|
|
900
|
-
? Boolean(object.allowInstallApp)
|
|
901
|
-
: false,
|
|
904
|
+
allowInstallApp: isSet(object.allowInstallApp) ? Boolean(object.allowInstallApp) : false,
|
|
902
905
|
};
|
|
903
906
|
},
|
|
904
907
|
toJSON(message) {
|
|
905
908
|
const obj = {};
|
|
906
909
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
907
|
-
message.allowInstallApp !== undefined &&
|
|
908
|
-
(obj.allowInstallApp = message.allowInstallApp);
|
|
910
|
+
message.allowInstallApp !== undefined && (obj.allowInstallApp = message.allowInstallApp);
|
|
909
911
|
return obj;
|
|
910
912
|
},
|
|
913
|
+
create(base) {
|
|
914
|
+
return exports.UserPermission.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
915
|
+
},
|
|
911
916
|
fromPartial(object) {
|
|
912
917
|
var _a, _b;
|
|
913
918
|
const message = createBaseUserPermission();
|
|
@@ -944,15 +949,16 @@ exports.GetUserPermissionsRequest = {
|
|
|
944
949
|
return message;
|
|
945
950
|
},
|
|
946
951
|
fromJSON(object) {
|
|
947
|
-
return {
|
|
948
|
-
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
949
|
-
};
|
|
952
|
+
return { uid: isSet(object.uid) ? String(object.uid) : "" };
|
|
950
953
|
},
|
|
951
954
|
toJSON(message) {
|
|
952
955
|
const obj = {};
|
|
953
956
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
954
957
|
return obj;
|
|
955
958
|
},
|
|
959
|
+
create(base) {
|
|
960
|
+
return exports.GetUserPermissionsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
961
|
+
},
|
|
956
962
|
fromPartial(object) {
|
|
957
963
|
var _a;
|
|
958
964
|
const message = createBaseGetUserPermissionsRequest();
|
|
@@ -988,15 +994,16 @@ exports.Appid = {
|
|
|
988
994
|
return message;
|
|
989
995
|
},
|
|
990
996
|
fromJSON(object) {
|
|
991
|
-
return {
|
|
992
|
-
appid: isSet(object.appid) ? String(object.appid) : "",
|
|
993
|
-
};
|
|
997
|
+
return { appid: isSet(object.appid) ? String(object.appid) : "" };
|
|
994
998
|
},
|
|
995
999
|
toJSON(message) {
|
|
996
1000
|
const obj = {};
|
|
997
1001
|
message.appid !== undefined && (obj.appid = message.appid);
|
|
998
1002
|
return obj;
|
|
999
1003
|
},
|
|
1004
|
+
create(base) {
|
|
1005
|
+
return exports.Appid.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1006
|
+
},
|
|
1000
1007
|
fromPartial(object) {
|
|
1001
1008
|
var _a;
|
|
1002
1009
|
const message = createBaseAppid();
|
|
@@ -1057,6 +1064,9 @@ exports.GetActionURLRequest = {
|
|
|
1057
1064
|
message.action !== undefined && (obj.action = actionToJSON(message.action));
|
|
1058
1065
|
return obj;
|
|
1059
1066
|
},
|
|
1067
|
+
create(base) {
|
|
1068
|
+
return exports.GetActionURLRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1069
|
+
},
|
|
1060
1070
|
fromPartial(object) {
|
|
1061
1071
|
var _a, _b, _c;
|
|
1062
1072
|
const message = createBaseGetActionURLRequest();
|
|
@@ -1094,15 +1104,16 @@ exports.GetActionURLResponse = {
|
|
|
1094
1104
|
return message;
|
|
1095
1105
|
},
|
|
1096
1106
|
fromJSON(object) {
|
|
1097
|
-
return {
|
|
1098
|
-
url: isSet(object.url) ? String(object.url) : "",
|
|
1099
|
-
};
|
|
1107
|
+
return { url: isSet(object.url) ? String(object.url) : "" };
|
|
1100
1108
|
},
|
|
1101
1109
|
toJSON(message) {
|
|
1102
1110
|
const obj = {};
|
|
1103
1111
|
message.url !== undefined && (obj.url = message.url);
|
|
1104
1112
|
return obj;
|
|
1105
1113
|
},
|
|
1114
|
+
create(base) {
|
|
1115
|
+
return exports.GetActionURLResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1116
|
+
},
|
|
1106
1117
|
fromPartial(object) {
|
|
1107
1118
|
var _a;
|
|
1108
1119
|
const message = createBaseGetActionURLResponse();
|
|
@@ -1138,15 +1149,16 @@ exports.ListFileHandlerRequest = {
|
|
|
1138
1149
|
return message;
|
|
1139
1150
|
},
|
|
1140
1151
|
fromJSON(object) {
|
|
1141
|
-
return {
|
|
1142
|
-
mimetype: isSet(object.mimetype) ? String(object.mimetype) : "",
|
|
1143
|
-
};
|
|
1152
|
+
return { mimetype: isSet(object.mimetype) ? String(object.mimetype) : "" };
|
|
1144
1153
|
},
|
|
1145
1154
|
toJSON(message) {
|
|
1146
1155
|
const obj = {};
|
|
1147
1156
|
message.mimetype !== undefined && (obj.mimetype = message.mimetype);
|
|
1148
1157
|
return obj;
|
|
1149
1158
|
},
|
|
1159
|
+
create(base) {
|
|
1160
|
+
return exports.ListFileHandlerRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1161
|
+
},
|
|
1150
1162
|
fromPartial(object) {
|
|
1151
1163
|
var _a;
|
|
1152
1164
|
const message = createBaseListFileHandlerRequest();
|
|
@@ -1207,6 +1219,9 @@ exports.FileHandlerInfo = {
|
|
|
1207
1219
|
message.icon !== undefined && (obj.icon = message.icon);
|
|
1208
1220
|
return obj;
|
|
1209
1221
|
},
|
|
1222
|
+
create(base) {
|
|
1223
|
+
return exports.FileHandlerInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1224
|
+
},
|
|
1210
1225
|
fromPartial(object) {
|
|
1211
1226
|
var _a, _b, _c;
|
|
1212
1227
|
const message = createBaseFileHandlerInfo();
|
|
@@ -1245,9 +1260,7 @@ exports.ListFileHandlerResponse = {
|
|
|
1245
1260
|
},
|
|
1246
1261
|
fromJSON(object) {
|
|
1247
1262
|
return {
|
|
1248
|
-
infoList: Array.isArray(object === null || object === void 0 ? void 0 : object.infoList)
|
|
1249
|
-
? object.infoList.map((e) => exports.FileHandlerInfo.fromJSON(e))
|
|
1250
|
-
: [],
|
|
1263
|
+
infoList: Array.isArray(object === null || object === void 0 ? void 0 : object.infoList) ? object.infoList.map((e) => exports.FileHandlerInfo.fromJSON(e)) : [],
|
|
1251
1264
|
};
|
|
1252
1265
|
},
|
|
1253
1266
|
toJSON(message) {
|
|
@@ -1260,11 +1273,13 @@ exports.ListFileHandlerResponse = {
|
|
|
1260
1273
|
}
|
|
1261
1274
|
return obj;
|
|
1262
1275
|
},
|
|
1276
|
+
create(base) {
|
|
1277
|
+
return exports.ListFileHandlerResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1278
|
+
},
|
|
1263
1279
|
fromPartial(object) {
|
|
1264
1280
|
var _a;
|
|
1265
1281
|
const message = createBaseListFileHandlerResponse();
|
|
1266
|
-
message.infoList =
|
|
1267
|
-
((_a = object.infoList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.FileHandlerInfo.fromPartial(e))) || [];
|
|
1282
|
+
message.infoList = ((_a = object.infoList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.FileHandlerInfo.fromPartial(e))) || [];
|
|
1268
1283
|
return message;
|
|
1269
1284
|
},
|
|
1270
1285
|
};
|
|
@@ -1310,9 +1325,7 @@ class PackageManagerClientImpl {
|
|
|
1310
1325
|
}
|
|
1311
1326
|
}
|
|
1312
1327
|
exports.PackageManagerClientImpl = PackageManagerClientImpl;
|
|
1313
|
-
exports.PackageManagerDesc = {
|
|
1314
|
-
serviceName: "cloud.lazycat.apis.sys.PackageManager",
|
|
1315
|
-
};
|
|
1328
|
+
exports.PackageManagerDesc = { serviceName: "cloud.lazycat.apis.sys.PackageManager" };
|
|
1316
1329
|
exports.PackageManagerInstallDesc = {
|
|
1317
1330
|
methodName: "Install",
|
|
1318
1331
|
service: exports.PackageManagerDesc,
|
|
@@ -1325,8 +1338,9 @@ exports.PackageManagerInstallDesc = {
|
|
|
1325
1338
|
},
|
|
1326
1339
|
responseType: {
|
|
1327
1340
|
deserializeBinary(data) {
|
|
1328
|
-
|
|
1329
|
-
|
|
1341
|
+
const value = empty_1.Empty.decode(data);
|
|
1342
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1343
|
+
return value;
|
|
1330
1344
|
} });
|
|
1331
1345
|
},
|
|
1332
1346
|
},
|
|
@@ -1343,8 +1357,9 @@ exports.PackageManagerUninstallDesc = {
|
|
|
1343
1357
|
},
|
|
1344
1358
|
responseType: {
|
|
1345
1359
|
deserializeBinary(data) {
|
|
1346
|
-
|
|
1347
|
-
|
|
1360
|
+
const value = empty_1.Empty.decode(data);
|
|
1361
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1362
|
+
return value;
|
|
1348
1363
|
} });
|
|
1349
1364
|
},
|
|
1350
1365
|
},
|
|
@@ -1361,8 +1376,9 @@ exports.PackageManagerQueryApplicationDesc = {
|
|
|
1361
1376
|
},
|
|
1362
1377
|
responseType: {
|
|
1363
1378
|
deserializeBinary(data) {
|
|
1364
|
-
|
|
1365
|
-
|
|
1379
|
+
const value = exports.QueryApplicationResponse.decode(data);
|
|
1380
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1381
|
+
return value;
|
|
1366
1382
|
} });
|
|
1367
1383
|
},
|
|
1368
1384
|
},
|
|
@@ -1379,8 +1395,9 @@ exports.PackageManagerQueryAppStorageUsageDesc = {
|
|
|
1379
1395
|
},
|
|
1380
1396
|
responseType: {
|
|
1381
1397
|
deserializeBinary(data) {
|
|
1382
|
-
|
|
1383
|
-
|
|
1398
|
+
const value = exports.AppStorageUsage.decode(data);
|
|
1399
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1400
|
+
return value;
|
|
1384
1401
|
} });
|
|
1385
1402
|
},
|
|
1386
1403
|
},
|
|
@@ -1397,8 +1414,9 @@ exports.PackageManagerSetUserPermissionsDesc = {
|
|
|
1397
1414
|
},
|
|
1398
1415
|
responseType: {
|
|
1399
1416
|
deserializeBinary(data) {
|
|
1400
|
-
|
|
1401
|
-
|
|
1417
|
+
const value = empty_1.Empty.decode(data);
|
|
1418
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1419
|
+
return value;
|
|
1402
1420
|
} });
|
|
1403
1421
|
},
|
|
1404
1422
|
},
|
|
@@ -1415,8 +1433,9 @@ exports.PackageManagerGetUserPermissionsDesc = {
|
|
|
1415
1433
|
},
|
|
1416
1434
|
responseType: {
|
|
1417
1435
|
deserializeBinary(data) {
|
|
1418
|
-
|
|
1419
|
-
|
|
1436
|
+
const value = exports.UserPermission.decode(data);
|
|
1437
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1438
|
+
return value;
|
|
1420
1439
|
} });
|
|
1421
1440
|
},
|
|
1422
1441
|
},
|
|
@@ -1433,8 +1452,9 @@ exports.PackageManagerPauseAppDownloadDesc = {
|
|
|
1433
1452
|
},
|
|
1434
1453
|
responseType: {
|
|
1435
1454
|
deserializeBinary(data) {
|
|
1436
|
-
|
|
1437
|
-
|
|
1455
|
+
const value = empty_1.Empty.decode(data);
|
|
1456
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1457
|
+
return value;
|
|
1438
1458
|
} });
|
|
1439
1459
|
},
|
|
1440
1460
|
},
|
|
@@ -1451,8 +1471,9 @@ exports.PackageManagerGetActionURLDesc = {
|
|
|
1451
1471
|
},
|
|
1452
1472
|
responseType: {
|
|
1453
1473
|
deserializeBinary(data) {
|
|
1454
|
-
|
|
1455
|
-
|
|
1474
|
+
const value = exports.GetActionURLResponse.decode(data);
|
|
1475
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1476
|
+
return value;
|
|
1456
1477
|
} });
|
|
1457
1478
|
},
|
|
1458
1479
|
},
|
|
@@ -1469,8 +1490,9 @@ exports.PackageManagerListFileHandlerDesc = {
|
|
|
1469
1490
|
},
|
|
1470
1491
|
responseType: {
|
|
1471
1492
|
deserializeBinary(data) {
|
|
1472
|
-
|
|
1473
|
-
|
|
1493
|
+
const value = exports.ListFileHandlerResponse.decode(data);
|
|
1494
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1495
|
+
return value;
|
|
1474
1496
|
} });
|
|
1475
1497
|
},
|
|
1476
1498
|
},
|
|
@@ -1495,7 +1517,7 @@ class GrpcWebImpl {
|
|
|
1495
1517
|
debug: this.options.debug,
|
|
1496
1518
|
onEnd: function (response) {
|
|
1497
1519
|
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
1498
|
-
resolve(response.message);
|
|
1520
|
+
resolve(response.message.toObject());
|
|
1499
1521
|
}
|
|
1500
1522
|
else {
|
|
1501
1523
|
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
@@ -1507,20 +1529,24 @@ class GrpcWebImpl {
|
|
|
1507
1529
|
}
|
|
1508
1530
|
}
|
|
1509
1531
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
1510
|
-
var
|
|
1511
|
-
if (typeof globalThis !== "undefined")
|
|
1532
|
+
var tsProtoGlobalThis = (() => {
|
|
1533
|
+
if (typeof globalThis !== "undefined") {
|
|
1512
1534
|
return globalThis;
|
|
1513
|
-
|
|
1535
|
+
}
|
|
1536
|
+
if (typeof self !== "undefined") {
|
|
1514
1537
|
return self;
|
|
1515
|
-
|
|
1538
|
+
}
|
|
1539
|
+
if (typeof window !== "undefined") {
|
|
1516
1540
|
return window;
|
|
1517
|
-
|
|
1541
|
+
}
|
|
1542
|
+
if (typeof global !== "undefined") {
|
|
1518
1543
|
return global;
|
|
1544
|
+
}
|
|
1519
1545
|
throw "Unable to locate global object";
|
|
1520
1546
|
})();
|
|
1521
1547
|
function longToNumber(long) {
|
|
1522
1548
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
1523
|
-
throw new
|
|
1549
|
+
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1524
1550
|
}
|
|
1525
1551
|
return long.toNumber();
|
|
1526
1552
|
}
|
|
@@ -1534,7 +1560,7 @@ function isObject(value) {
|
|
|
1534
1560
|
function isSet(value) {
|
|
1535
1561
|
return value !== null && value !== undefined;
|
|
1536
1562
|
}
|
|
1537
|
-
class GrpcWebError extends Error {
|
|
1563
|
+
class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
1538
1564
|
constructor(message, code, metadata) {
|
|
1539
1565
|
super(message);
|
|
1540
1566
|
this.code = code;
|