@lazycatcloud/sdk 0.1.23 → 0.1.26
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 +12 -6
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +22 -39
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +10 -4
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +25 -37
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +14 -8
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +29 -41
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/gateway.d.ts +12 -6
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +23 -37
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +15 -9
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +22 -39
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts +15 -9
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +25 -39
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +18 -12
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +33 -47
- package/dist/common/users.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts +1644 -1644
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +78 -95
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.d.ts +2 -2
- package/dist/google/protobuf/empty.d.ts.map +1 -1
- package/dist/google/protobuf/empty.js +5 -25
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts +2 -2
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +6 -29
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts +11 -5
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +47 -53
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/device.d.ts +8 -2
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +15 -29
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +12 -6
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +23 -37
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/network.d.ts +8 -2
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +15 -29
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/photo.d.ts +25 -19
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +44 -59
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/sys/OS_snapshot.d.ts +26 -20
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +42 -59
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +13 -7
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +22 -39
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +35 -29
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +61 -69
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +17 -11
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +30 -47
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/package_manager.d.ts +142 -19
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +379 -55
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +68 -32
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +162 -89
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +31 -99
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +61 -233
- package/dist/sys/snapd.js.map +1 -1
- package/package.json +1 -1
- package/dist/common/permissions.d.ts +0 -93
- package/dist/common/permissions.d.ts.map +0 -1
- package/dist/common/permissions.js +0 -267
- package/dist/common/permissions.js.map +0 -1
|
@@ -1,38 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.GrpcWebImpl = exports.PackageManagerPauseAppDownloadDesc = exports.PackageManagerSetUserPermissionsDesc = exports.PackageManagerQueryAppStorageUsageDesc = exports.PackageManagerQueryApplicationDesc = exports.PackageManagerUninstallDesc = exports.PackageManagerInstallDesc = exports.PackageManagerDesc = exports.PackageManagerClientImpl = exports.Appid = exports.SetUserPermissionsRequest = exports.AppStorageUsage_UserdataEntry = exports.AppStorageUsage = exports.QueryAppStorageUsageRequest = exports.QueryApplicationResponse = exports.QueryApplicationRequest = exports.AppInfo = exports.AppDownloadProgress = exports.UninstallRequest = exports.InstallRequest = exports.PkgURL = exports.appStatusToJSON = exports.appStatusFromJSON = exports.AppStatus = void 0;
|
|
6
|
+
exports.GrpcWebError = exports.GrpcWebImpl = exports.PackageManagerListFileHandlerDesc = exports.PackageManagerGetActionURLDesc = exports.PackageManagerPauseAppDownloadDesc = 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.SetUserPermissionsRequest = 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;
|
|
30
7
|
/* eslint-disable */
|
|
31
8
|
const grpc_web_1 = require("@improbable-eng/grpc-web");
|
|
32
9
|
const empty_1 = require("../google/protobuf/empty");
|
|
33
10
|
const browser_headers_1 = require("browser-headers");
|
|
34
11
|
const long_1 = __importDefault(require("long"));
|
|
35
|
-
const
|
|
12
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
36
13
|
var AppStatus;
|
|
37
14
|
(function (AppStatus) {
|
|
38
15
|
AppStatus[AppStatus["NotInstalled"] = 0] = "NotInstalled";
|
|
@@ -90,11 +67,44 @@ function appStatusToJSON(object) {
|
|
|
90
67
|
}
|
|
91
68
|
}
|
|
92
69
|
exports.appStatusToJSON = appStatusToJSON;
|
|
70
|
+
var Action;
|
|
71
|
+
(function (Action) {
|
|
72
|
+
Action[Action["Open"] = 0] = "Open";
|
|
73
|
+
Action[Action["New"] = 1] = "New";
|
|
74
|
+
Action[Action["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
75
|
+
})(Action = exports.Action || (exports.Action = {}));
|
|
76
|
+
function actionFromJSON(object) {
|
|
77
|
+
switch (object) {
|
|
78
|
+
case 0:
|
|
79
|
+
case "Open":
|
|
80
|
+
return Action.Open;
|
|
81
|
+
case 1:
|
|
82
|
+
case "New":
|
|
83
|
+
return Action.New;
|
|
84
|
+
case -1:
|
|
85
|
+
case "UNRECOGNIZED":
|
|
86
|
+
default:
|
|
87
|
+
return Action.UNRECOGNIZED;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.actionFromJSON = actionFromJSON;
|
|
91
|
+
function actionToJSON(object) {
|
|
92
|
+
switch (object) {
|
|
93
|
+
case Action.Open:
|
|
94
|
+
return "Open";
|
|
95
|
+
case Action.New:
|
|
96
|
+
return "New";
|
|
97
|
+
case Action.UNRECOGNIZED:
|
|
98
|
+
default:
|
|
99
|
+
return "UNRECOGNIZED";
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.actionToJSON = actionToJSON;
|
|
93
103
|
function createBasePkgURL() {
|
|
94
104
|
return { url: "", sha256: "" };
|
|
95
105
|
}
|
|
96
106
|
exports.PkgURL = {
|
|
97
|
-
encode(message, writer =
|
|
107
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
98
108
|
if (message.url !== "") {
|
|
99
109
|
writer.uint32(10).string(message.url);
|
|
100
110
|
}
|
|
@@ -104,7 +114,7 @@ exports.PkgURL = {
|
|
|
104
114
|
return writer;
|
|
105
115
|
},
|
|
106
116
|
decode(input, length) {
|
|
107
|
-
const reader = input instanceof
|
|
117
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
108
118
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
109
119
|
const message = createBasePkgURL();
|
|
110
120
|
while (reader.pos < end) {
|
|
@@ -147,7 +157,7 @@ function createBaseInstallRequest() {
|
|
|
147
157
|
return { appid: "", url: "", sha256: "", subdomain: undefined };
|
|
148
158
|
}
|
|
149
159
|
exports.InstallRequest = {
|
|
150
|
-
encode(message, writer =
|
|
160
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
151
161
|
if (message.appid !== "") {
|
|
152
162
|
writer.uint32(10).string(message.appid);
|
|
153
163
|
}
|
|
@@ -163,7 +173,7 @@ exports.InstallRequest = {
|
|
|
163
173
|
return writer;
|
|
164
174
|
},
|
|
165
175
|
decode(input, length) {
|
|
166
|
-
const reader = input instanceof
|
|
176
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
167
177
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
168
178
|
const message = createBaseInstallRequest();
|
|
169
179
|
while (reader.pos < end) {
|
|
@@ -218,7 +228,7 @@ function createBaseUninstallRequest() {
|
|
|
218
228
|
return { appid: "", clearData: false };
|
|
219
229
|
}
|
|
220
230
|
exports.UninstallRequest = {
|
|
221
|
-
encode(message, writer =
|
|
231
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
222
232
|
if (message.appid !== "") {
|
|
223
233
|
writer.uint32(10).string(message.appid);
|
|
224
234
|
}
|
|
@@ -228,7 +238,7 @@ exports.UninstallRequest = {
|
|
|
228
238
|
return writer;
|
|
229
239
|
},
|
|
230
240
|
decode(input, length) {
|
|
231
|
-
const reader = input instanceof
|
|
241
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
232
242
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
233
243
|
const message = createBaseUninstallRequest();
|
|
234
244
|
while (reader.pos < end) {
|
|
@@ -271,7 +281,7 @@ function createBaseAppDownloadProgress() {
|
|
|
271
281
|
return { current: 0, total: 0 };
|
|
272
282
|
}
|
|
273
283
|
exports.AppDownloadProgress = {
|
|
274
|
-
encode(message, writer =
|
|
284
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
275
285
|
if (message.current !== 0) {
|
|
276
286
|
writer.uint32(8).uint64(message.current);
|
|
277
287
|
}
|
|
@@ -281,7 +291,7 @@ exports.AppDownloadProgress = {
|
|
|
281
291
|
return writer;
|
|
282
292
|
},
|
|
283
293
|
decode(input, length) {
|
|
284
|
-
const reader = input instanceof
|
|
294
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
285
295
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
286
296
|
const message = createBaseAppDownloadProgress();
|
|
287
297
|
while (reader.pos < end) {
|
|
@@ -336,7 +346,7 @@ function createBaseAppInfo() {
|
|
|
336
346
|
};
|
|
337
347
|
}
|
|
338
348
|
exports.AppInfo = {
|
|
339
|
-
encode(message, writer =
|
|
349
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
340
350
|
if (message.appid !== "") {
|
|
341
351
|
writer.uint32(10).string(message.appid);
|
|
342
352
|
}
|
|
@@ -370,7 +380,7 @@ exports.AppInfo = {
|
|
|
370
380
|
return writer;
|
|
371
381
|
},
|
|
372
382
|
decode(input, length) {
|
|
373
|
-
const reader = input instanceof
|
|
383
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
374
384
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
375
385
|
const message = createBaseAppInfo();
|
|
376
386
|
while (reader.pos < end) {
|
|
@@ -476,14 +486,14 @@ function createBaseQueryApplicationRequest() {
|
|
|
476
486
|
return { appidList: [] };
|
|
477
487
|
}
|
|
478
488
|
exports.QueryApplicationRequest = {
|
|
479
|
-
encode(message, writer =
|
|
489
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
480
490
|
for (const v of message.appidList) {
|
|
481
491
|
writer.uint32(10).string(v);
|
|
482
492
|
}
|
|
483
493
|
return writer;
|
|
484
494
|
},
|
|
485
495
|
decode(input, length) {
|
|
486
|
-
const reader = input instanceof
|
|
496
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
487
497
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
488
498
|
const message = createBaseQueryApplicationRequest();
|
|
489
499
|
while (reader.pos < end) {
|
|
@@ -527,14 +537,14 @@ function createBaseQueryApplicationResponse() {
|
|
|
527
537
|
return { infoList: [] };
|
|
528
538
|
}
|
|
529
539
|
exports.QueryApplicationResponse = {
|
|
530
|
-
encode(message, writer =
|
|
540
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
531
541
|
for (const v of message.infoList) {
|
|
532
542
|
exports.AppInfo.encode(v, writer.uint32(10).fork()).ldelim();
|
|
533
543
|
}
|
|
534
544
|
return writer;
|
|
535
545
|
},
|
|
536
546
|
decode(input, length) {
|
|
537
|
-
const reader = input instanceof
|
|
547
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
538
548
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
539
549
|
const message = createBaseQueryApplicationResponse();
|
|
540
550
|
while (reader.pos < end) {
|
|
@@ -586,7 +596,7 @@ function createBaseQueryAppStorageUsageRequest() {
|
|
|
586
596
|
};
|
|
587
597
|
}
|
|
588
598
|
exports.QueryAppStorageUsageRequest = {
|
|
589
|
-
encode(message, writer =
|
|
599
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
590
600
|
if (message.appid !== "") {
|
|
591
601
|
writer.uint32(10).string(message.appid);
|
|
592
602
|
}
|
|
@@ -608,7 +618,7 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
608
618
|
return writer;
|
|
609
619
|
},
|
|
610
620
|
decode(input, length) {
|
|
611
|
-
const reader = input instanceof
|
|
621
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
612
622
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
613
623
|
const message = createBaseQueryAppStorageUsageRequest();
|
|
614
624
|
while (reader.pos < end) {
|
|
@@ -678,7 +688,7 @@ function createBaseAppStorageUsage() {
|
|
|
678
688
|
return { pkg: 0, data: 0, cache: 0, tmp: 0, userdata: {} };
|
|
679
689
|
}
|
|
680
690
|
exports.AppStorageUsage = {
|
|
681
|
-
encode(message, writer =
|
|
691
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
682
692
|
if (message.pkg !== 0) {
|
|
683
693
|
writer.uint32(8).uint64(message.pkg);
|
|
684
694
|
}
|
|
@@ -697,7 +707,7 @@ exports.AppStorageUsage = {
|
|
|
697
707
|
return writer;
|
|
698
708
|
},
|
|
699
709
|
decode(input, length) {
|
|
700
|
-
const reader = input instanceof
|
|
710
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
701
711
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
702
712
|
const message = createBaseAppStorageUsage();
|
|
703
713
|
while (reader.pos < end) {
|
|
@@ -776,7 +786,7 @@ function createBaseAppStorageUsage_UserdataEntry() {
|
|
|
776
786
|
return { key: "", value: 0 };
|
|
777
787
|
}
|
|
778
788
|
exports.AppStorageUsage_UserdataEntry = {
|
|
779
|
-
encode(message, writer =
|
|
789
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
780
790
|
if (message.key !== "") {
|
|
781
791
|
writer.uint32(10).string(message.key);
|
|
782
792
|
}
|
|
@@ -786,7 +796,7 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
786
796
|
return writer;
|
|
787
797
|
},
|
|
788
798
|
decode(input, length) {
|
|
789
|
-
const reader = input instanceof
|
|
799
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
790
800
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
791
801
|
const message = createBaseAppStorageUsage_UserdataEntry();
|
|
792
802
|
while (reader.pos < end) {
|
|
@@ -829,7 +839,7 @@ function createBaseSetUserPermissionsRequest() {
|
|
|
829
839
|
return { uid: "", allowInstallApp: false, allowUninstallApp: false };
|
|
830
840
|
}
|
|
831
841
|
exports.SetUserPermissionsRequest = {
|
|
832
|
-
encode(message, writer =
|
|
842
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
833
843
|
if (message.uid !== "") {
|
|
834
844
|
writer.uint32(10).string(message.uid);
|
|
835
845
|
}
|
|
@@ -842,7 +852,7 @@ exports.SetUserPermissionsRequest = {
|
|
|
842
852
|
return writer;
|
|
843
853
|
},
|
|
844
854
|
decode(input, length) {
|
|
845
|
-
const reader = input instanceof
|
|
855
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
846
856
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
847
857
|
const message = createBaseSetUserPermissionsRequest();
|
|
848
858
|
while (reader.pos < end) {
|
|
@@ -897,14 +907,14 @@ function createBaseAppid() {
|
|
|
897
907
|
return { appid: "" };
|
|
898
908
|
}
|
|
899
909
|
exports.Appid = {
|
|
900
|
-
encode(message, writer =
|
|
910
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
901
911
|
if (message.appid !== "") {
|
|
902
912
|
writer.uint32(10).string(message.appid);
|
|
903
913
|
}
|
|
904
914
|
return writer;
|
|
905
915
|
},
|
|
906
916
|
decode(input, length) {
|
|
907
|
-
const reader = input instanceof
|
|
917
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
908
918
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
909
919
|
const message = createBaseAppid();
|
|
910
920
|
while (reader.pos < end) {
|
|
@@ -937,6 +947,270 @@ exports.Appid = {
|
|
|
937
947
|
return message;
|
|
938
948
|
},
|
|
939
949
|
};
|
|
950
|
+
function createBaseGetActionURLRequest() {
|
|
951
|
+
return { path: "", appid: "", action: 0 };
|
|
952
|
+
}
|
|
953
|
+
exports.GetActionURLRequest = {
|
|
954
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
955
|
+
if (message.path !== "") {
|
|
956
|
+
writer.uint32(10).string(message.path);
|
|
957
|
+
}
|
|
958
|
+
if (message.appid !== "") {
|
|
959
|
+
writer.uint32(18).string(message.appid);
|
|
960
|
+
}
|
|
961
|
+
if (message.action !== 0) {
|
|
962
|
+
writer.uint32(24).int32(message.action);
|
|
963
|
+
}
|
|
964
|
+
return writer;
|
|
965
|
+
},
|
|
966
|
+
decode(input, length) {
|
|
967
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
968
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
969
|
+
const message = createBaseGetActionURLRequest();
|
|
970
|
+
while (reader.pos < end) {
|
|
971
|
+
const tag = reader.uint32();
|
|
972
|
+
switch (tag >>> 3) {
|
|
973
|
+
case 1:
|
|
974
|
+
message.path = reader.string();
|
|
975
|
+
break;
|
|
976
|
+
case 2:
|
|
977
|
+
message.appid = reader.string();
|
|
978
|
+
break;
|
|
979
|
+
case 3:
|
|
980
|
+
message.action = reader.int32();
|
|
981
|
+
break;
|
|
982
|
+
default:
|
|
983
|
+
reader.skipType(tag & 7);
|
|
984
|
+
break;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
return message;
|
|
988
|
+
},
|
|
989
|
+
fromJSON(object) {
|
|
990
|
+
return {
|
|
991
|
+
path: isSet(object.path) ? String(object.path) : "",
|
|
992
|
+
appid: isSet(object.appid) ? String(object.appid) : "",
|
|
993
|
+
action: isSet(object.action) ? actionFromJSON(object.action) : 0,
|
|
994
|
+
};
|
|
995
|
+
},
|
|
996
|
+
toJSON(message) {
|
|
997
|
+
const obj = {};
|
|
998
|
+
message.path !== undefined && (obj.path = message.path);
|
|
999
|
+
message.appid !== undefined && (obj.appid = message.appid);
|
|
1000
|
+
message.action !== undefined && (obj.action = actionToJSON(message.action));
|
|
1001
|
+
return obj;
|
|
1002
|
+
},
|
|
1003
|
+
fromPartial(object) {
|
|
1004
|
+
var _a, _b, _c;
|
|
1005
|
+
const message = createBaseGetActionURLRequest();
|
|
1006
|
+
message.path = (_a = object.path) !== null && _a !== void 0 ? _a : "";
|
|
1007
|
+
message.appid = (_b = object.appid) !== null && _b !== void 0 ? _b : "";
|
|
1008
|
+
message.action = (_c = object.action) !== null && _c !== void 0 ? _c : 0;
|
|
1009
|
+
return message;
|
|
1010
|
+
},
|
|
1011
|
+
};
|
|
1012
|
+
function createBaseGetActionURLResponse() {
|
|
1013
|
+
return { url: "" };
|
|
1014
|
+
}
|
|
1015
|
+
exports.GetActionURLResponse = {
|
|
1016
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1017
|
+
if (message.url !== "") {
|
|
1018
|
+
writer.uint32(10).string(message.url);
|
|
1019
|
+
}
|
|
1020
|
+
return writer;
|
|
1021
|
+
},
|
|
1022
|
+
decode(input, length) {
|
|
1023
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1024
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1025
|
+
const message = createBaseGetActionURLResponse();
|
|
1026
|
+
while (reader.pos < end) {
|
|
1027
|
+
const tag = reader.uint32();
|
|
1028
|
+
switch (tag >>> 3) {
|
|
1029
|
+
case 1:
|
|
1030
|
+
message.url = reader.string();
|
|
1031
|
+
break;
|
|
1032
|
+
default:
|
|
1033
|
+
reader.skipType(tag & 7);
|
|
1034
|
+
break;
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
return message;
|
|
1038
|
+
},
|
|
1039
|
+
fromJSON(object) {
|
|
1040
|
+
return {
|
|
1041
|
+
url: isSet(object.url) ? String(object.url) : "",
|
|
1042
|
+
};
|
|
1043
|
+
},
|
|
1044
|
+
toJSON(message) {
|
|
1045
|
+
const obj = {};
|
|
1046
|
+
message.url !== undefined && (obj.url = message.url);
|
|
1047
|
+
return obj;
|
|
1048
|
+
},
|
|
1049
|
+
fromPartial(object) {
|
|
1050
|
+
var _a;
|
|
1051
|
+
const message = createBaseGetActionURLResponse();
|
|
1052
|
+
message.url = (_a = object.url) !== null && _a !== void 0 ? _a : "";
|
|
1053
|
+
return message;
|
|
1054
|
+
},
|
|
1055
|
+
};
|
|
1056
|
+
function createBaseListFileHandlerRequest() {
|
|
1057
|
+
return { mimetype: "" };
|
|
1058
|
+
}
|
|
1059
|
+
exports.ListFileHandlerRequest = {
|
|
1060
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1061
|
+
if (message.mimetype !== "") {
|
|
1062
|
+
writer.uint32(10).string(message.mimetype);
|
|
1063
|
+
}
|
|
1064
|
+
return writer;
|
|
1065
|
+
},
|
|
1066
|
+
decode(input, length) {
|
|
1067
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1068
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1069
|
+
const message = createBaseListFileHandlerRequest();
|
|
1070
|
+
while (reader.pos < end) {
|
|
1071
|
+
const tag = reader.uint32();
|
|
1072
|
+
switch (tag >>> 3) {
|
|
1073
|
+
case 1:
|
|
1074
|
+
message.mimetype = reader.string();
|
|
1075
|
+
break;
|
|
1076
|
+
default:
|
|
1077
|
+
reader.skipType(tag & 7);
|
|
1078
|
+
break;
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
return message;
|
|
1082
|
+
},
|
|
1083
|
+
fromJSON(object) {
|
|
1084
|
+
return {
|
|
1085
|
+
mimetype: isSet(object.mimetype) ? String(object.mimetype) : "",
|
|
1086
|
+
};
|
|
1087
|
+
},
|
|
1088
|
+
toJSON(message) {
|
|
1089
|
+
const obj = {};
|
|
1090
|
+
message.mimetype !== undefined && (obj.mimetype = message.mimetype);
|
|
1091
|
+
return obj;
|
|
1092
|
+
},
|
|
1093
|
+
fromPartial(object) {
|
|
1094
|
+
var _a;
|
|
1095
|
+
const message = createBaseListFileHandlerRequest();
|
|
1096
|
+
message.mimetype = (_a = object.mimetype) !== null && _a !== void 0 ? _a : "";
|
|
1097
|
+
return message;
|
|
1098
|
+
},
|
|
1099
|
+
};
|
|
1100
|
+
function createBaseFileHandlerInfo() {
|
|
1101
|
+
return { appid: "", title: "", icon: "" };
|
|
1102
|
+
}
|
|
1103
|
+
exports.FileHandlerInfo = {
|
|
1104
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1105
|
+
if (message.appid !== "") {
|
|
1106
|
+
writer.uint32(10).string(message.appid);
|
|
1107
|
+
}
|
|
1108
|
+
if (message.title !== "") {
|
|
1109
|
+
writer.uint32(18).string(message.title);
|
|
1110
|
+
}
|
|
1111
|
+
if (message.icon !== "") {
|
|
1112
|
+
writer.uint32(26).string(message.icon);
|
|
1113
|
+
}
|
|
1114
|
+
return writer;
|
|
1115
|
+
},
|
|
1116
|
+
decode(input, length) {
|
|
1117
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1118
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1119
|
+
const message = createBaseFileHandlerInfo();
|
|
1120
|
+
while (reader.pos < end) {
|
|
1121
|
+
const tag = reader.uint32();
|
|
1122
|
+
switch (tag >>> 3) {
|
|
1123
|
+
case 1:
|
|
1124
|
+
message.appid = reader.string();
|
|
1125
|
+
break;
|
|
1126
|
+
case 2:
|
|
1127
|
+
message.title = reader.string();
|
|
1128
|
+
break;
|
|
1129
|
+
case 3:
|
|
1130
|
+
message.icon = reader.string();
|
|
1131
|
+
break;
|
|
1132
|
+
default:
|
|
1133
|
+
reader.skipType(tag & 7);
|
|
1134
|
+
break;
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
return message;
|
|
1138
|
+
},
|
|
1139
|
+
fromJSON(object) {
|
|
1140
|
+
return {
|
|
1141
|
+
appid: isSet(object.appid) ? String(object.appid) : "",
|
|
1142
|
+
title: isSet(object.title) ? String(object.title) : "",
|
|
1143
|
+
icon: isSet(object.icon) ? String(object.icon) : "",
|
|
1144
|
+
};
|
|
1145
|
+
},
|
|
1146
|
+
toJSON(message) {
|
|
1147
|
+
const obj = {};
|
|
1148
|
+
message.appid !== undefined && (obj.appid = message.appid);
|
|
1149
|
+
message.title !== undefined && (obj.title = message.title);
|
|
1150
|
+
message.icon !== undefined && (obj.icon = message.icon);
|
|
1151
|
+
return obj;
|
|
1152
|
+
},
|
|
1153
|
+
fromPartial(object) {
|
|
1154
|
+
var _a, _b, _c;
|
|
1155
|
+
const message = createBaseFileHandlerInfo();
|
|
1156
|
+
message.appid = (_a = object.appid) !== null && _a !== void 0 ? _a : "";
|
|
1157
|
+
message.title = (_b = object.title) !== null && _b !== void 0 ? _b : "";
|
|
1158
|
+
message.icon = (_c = object.icon) !== null && _c !== void 0 ? _c : "";
|
|
1159
|
+
return message;
|
|
1160
|
+
},
|
|
1161
|
+
};
|
|
1162
|
+
function createBaseListFileHandlerResponse() {
|
|
1163
|
+
return { infoList: [] };
|
|
1164
|
+
}
|
|
1165
|
+
exports.ListFileHandlerResponse = {
|
|
1166
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1167
|
+
for (const v of message.infoList) {
|
|
1168
|
+
exports.FileHandlerInfo.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1169
|
+
}
|
|
1170
|
+
return writer;
|
|
1171
|
+
},
|
|
1172
|
+
decode(input, length) {
|
|
1173
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1174
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1175
|
+
const message = createBaseListFileHandlerResponse();
|
|
1176
|
+
while (reader.pos < end) {
|
|
1177
|
+
const tag = reader.uint32();
|
|
1178
|
+
switch (tag >>> 3) {
|
|
1179
|
+
case 1:
|
|
1180
|
+
message.infoList.push(exports.FileHandlerInfo.decode(reader, reader.uint32()));
|
|
1181
|
+
break;
|
|
1182
|
+
default:
|
|
1183
|
+
reader.skipType(tag & 7);
|
|
1184
|
+
break;
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
return message;
|
|
1188
|
+
},
|
|
1189
|
+
fromJSON(object) {
|
|
1190
|
+
return {
|
|
1191
|
+
infoList: Array.isArray(object === null || object === void 0 ? void 0 : object.infoList)
|
|
1192
|
+
? object.infoList.map((e) => exports.FileHandlerInfo.fromJSON(e))
|
|
1193
|
+
: [],
|
|
1194
|
+
};
|
|
1195
|
+
},
|
|
1196
|
+
toJSON(message) {
|
|
1197
|
+
const obj = {};
|
|
1198
|
+
if (message.infoList) {
|
|
1199
|
+
obj.infoList = message.infoList.map((e) => e ? exports.FileHandlerInfo.toJSON(e) : undefined);
|
|
1200
|
+
}
|
|
1201
|
+
else {
|
|
1202
|
+
obj.infoList = [];
|
|
1203
|
+
}
|
|
1204
|
+
return obj;
|
|
1205
|
+
},
|
|
1206
|
+
fromPartial(object) {
|
|
1207
|
+
var _a;
|
|
1208
|
+
const message = createBaseListFileHandlerResponse();
|
|
1209
|
+
message.infoList =
|
|
1210
|
+
((_a = object.infoList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.FileHandlerInfo.fromPartial(e))) || [];
|
|
1211
|
+
return message;
|
|
1212
|
+
},
|
|
1213
|
+
};
|
|
940
1214
|
class PackageManagerClientImpl {
|
|
941
1215
|
constructor(rpc) {
|
|
942
1216
|
this.rpc = rpc;
|
|
@@ -946,6 +1220,8 @@ class PackageManagerClientImpl {
|
|
|
946
1220
|
this.QueryAppStorageUsage = this.QueryAppStorageUsage.bind(this);
|
|
947
1221
|
this.SetUserPermissions = this.SetUserPermissions.bind(this);
|
|
948
1222
|
this.PauseAppDownload = this.PauseAppDownload.bind(this);
|
|
1223
|
+
this.GetActionURL = this.GetActionURL.bind(this);
|
|
1224
|
+
this.ListFileHandler = this.ListFileHandler.bind(this);
|
|
949
1225
|
}
|
|
950
1226
|
Install(request, metadata) {
|
|
951
1227
|
return this.rpc.unary(exports.PackageManagerInstallDesc, exports.InstallRequest.fromPartial(request), metadata);
|
|
@@ -965,6 +1241,12 @@ class PackageManagerClientImpl {
|
|
|
965
1241
|
PauseAppDownload(request, metadata) {
|
|
966
1242
|
return this.rpc.unary(exports.PackageManagerPauseAppDownloadDesc, exports.Appid.fromPartial(request), metadata);
|
|
967
1243
|
}
|
|
1244
|
+
GetActionURL(request, metadata) {
|
|
1245
|
+
return this.rpc.unary(exports.PackageManagerGetActionURLDesc, exports.GetActionURLRequest.fromPartial(request), metadata);
|
|
1246
|
+
}
|
|
1247
|
+
ListFileHandler(request, metadata) {
|
|
1248
|
+
return this.rpc.unary(exports.PackageManagerListFileHandlerDesc, exports.ListFileHandlerRequest.fromPartial(request), metadata);
|
|
1249
|
+
}
|
|
968
1250
|
}
|
|
969
1251
|
exports.PackageManagerClientImpl = PackageManagerClientImpl;
|
|
970
1252
|
exports.PackageManagerDesc = {
|
|
@@ -1078,6 +1360,42 @@ exports.PackageManagerPauseAppDownloadDesc = {
|
|
|
1078
1360
|
},
|
|
1079
1361
|
},
|
|
1080
1362
|
};
|
|
1363
|
+
exports.PackageManagerGetActionURLDesc = {
|
|
1364
|
+
methodName: "GetActionURL",
|
|
1365
|
+
service: exports.PackageManagerDesc,
|
|
1366
|
+
requestStream: false,
|
|
1367
|
+
responseStream: false,
|
|
1368
|
+
requestType: {
|
|
1369
|
+
serializeBinary() {
|
|
1370
|
+
return exports.GetActionURLRequest.encode(this).finish();
|
|
1371
|
+
},
|
|
1372
|
+
},
|
|
1373
|
+
responseType: {
|
|
1374
|
+
deserializeBinary(data) {
|
|
1375
|
+
return Object.assign(Object.assign({}, exports.GetActionURLResponse.decode(data)), { toObject() {
|
|
1376
|
+
return this;
|
|
1377
|
+
} });
|
|
1378
|
+
},
|
|
1379
|
+
},
|
|
1380
|
+
};
|
|
1381
|
+
exports.PackageManagerListFileHandlerDesc = {
|
|
1382
|
+
methodName: "ListFileHandler",
|
|
1383
|
+
service: exports.PackageManagerDesc,
|
|
1384
|
+
requestStream: false,
|
|
1385
|
+
responseStream: false,
|
|
1386
|
+
requestType: {
|
|
1387
|
+
serializeBinary() {
|
|
1388
|
+
return exports.ListFileHandlerRequest.encode(this).finish();
|
|
1389
|
+
},
|
|
1390
|
+
},
|
|
1391
|
+
responseType: {
|
|
1392
|
+
deserializeBinary(data) {
|
|
1393
|
+
return Object.assign(Object.assign({}, exports.ListFileHandlerResponse.decode(data)), { toObject() {
|
|
1394
|
+
return this;
|
|
1395
|
+
} });
|
|
1396
|
+
},
|
|
1397
|
+
},
|
|
1398
|
+
};
|
|
1081
1399
|
class GrpcWebImpl {
|
|
1082
1400
|
constructor(host, options) {
|
|
1083
1401
|
this.host = host;
|
|
@@ -1101,9 +1419,7 @@ class GrpcWebImpl {
|
|
|
1101
1419
|
resolve(response.message);
|
|
1102
1420
|
}
|
|
1103
1421
|
else {
|
|
1104
|
-
const err = new
|
|
1105
|
-
err.code = response.status;
|
|
1106
|
-
err.metadata = response.trailers;
|
|
1422
|
+
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
1107
1423
|
reject(err);
|
|
1108
1424
|
}
|
|
1109
1425
|
},
|
|
@@ -1129,9 +1445,9 @@ function longToNumber(long) {
|
|
|
1129
1445
|
}
|
|
1130
1446
|
return long.toNumber();
|
|
1131
1447
|
}
|
|
1132
|
-
if (
|
|
1133
|
-
|
|
1134
|
-
|
|
1448
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
1449
|
+
minimal_1.default.util.Long = long_1.default;
|
|
1450
|
+
minimal_1.default.configure();
|
|
1135
1451
|
}
|
|
1136
1452
|
function isObject(value) {
|
|
1137
1453
|
return typeof value === "object" && value !== null;
|
|
@@ -1139,4 +1455,12 @@ function isObject(value) {
|
|
|
1139
1455
|
function isSet(value) {
|
|
1140
1456
|
return value !== null && value !== undefined;
|
|
1141
1457
|
}
|
|
1458
|
+
class GrpcWebError extends Error {
|
|
1459
|
+
constructor(message, code, metadata) {
|
|
1460
|
+
super(message);
|
|
1461
|
+
this.code = code;
|
|
1462
|
+
this.metadata = metadata;
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
exports.GrpcWebError = GrpcWebError;
|
|
1142
1466
|
//# sourceMappingURL=package_manager.js.map
|