@lazycatcloud/sdk 0.1.166 → 0.1.167
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/appshell.d.ts +103 -0
- package/dist/common/appshell.d.ts.map +1 -0
- package/dist/common/appshell.js +265 -0
- package/dist/common/appshell.js.map +1 -0
- package/dist/common/box.d.ts +55 -13
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +106 -73
- 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 +106 -55
- 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 +141 -83
- 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 +108 -51
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +851 -53
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +509 -400
- 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 +140 -76
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/media_meta.d.ts +28 -9
- package/dist/common/media_meta.d.ts.map +1 -1
- package/dist/common/media_meta.js +66 -34
- package/dist/common/media_meta.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 +55 -37
- 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 +162 -95
- 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 +130 -80
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +103 -25
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +240 -112
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts +119 -18
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +184 -61
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/extentions/app_common.js +7 -1
- package/dist/extentions/app_common.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 +914 -663
- 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 +8 -4
- 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 +27 -14
- 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.d.ts +5 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -45
- package/dist/index.js.map +1 -1
- package/dist/lanforward/lanforward.d.ts +21 -8
- package/dist/lanforward/lanforward.d.ts.map +1 -1
- package/dist/lanforward/lanforward.js +53 -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 +92 -62
- 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 +59 -25
- 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 +48 -21
- 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 +149 -74
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/local-launch.d.ts +70 -18
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +179 -99
- 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 +39 -16
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts +62 -17
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +129 -89
- 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 +371 -267
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/ssdp/ssdp.d.ts +27 -8
- package/dist/ssdp/ssdp.d.ts.map +1 -1
- package/dist/ssdp/ssdp.js +65 -19
- 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 +68 -36
- 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 +331 -207
- 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 +132 -90
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/box-status.d.ts +209 -17
- package/dist/sys/box-status.d.ts.map +1 -1
- package/dist/sys/box-status.js +186 -151
- package/dist/sys/box-status.js.map +1 -1
- package/dist/sys/btrfs.d.ts +49 -15
- package/dist/sys/btrfs.d.ts.map +1 -1
- package/dist/sys/btrfs.js +103 -61
- package/dist/sys/btrfs.js.map +1 -1
- package/dist/sys/devopt.d.ts +19 -7
- package/dist/sys/devopt.d.ts.map +1 -1
- package/dist/sys/devopt.js +56 -39
- package/dist/sys/devopt.js.map +1 -1
- package/dist/sys/dirmon.d.ts +23 -8
- package/dist/sys/dirmon.d.ts.map +1 -1
- package/dist/sys/dirmon.js +56 -39
- package/dist/sys/dirmon.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 +169 -85
- 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 +287 -181
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +82 -25
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +179 -109
- 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 +178 -121
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +313 -43
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +437 -233
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +360 -67
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +705 -423
- 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 +177 -111
- 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/portal-server/remote_socks.d.ts +0 -138
- package/dist/sys/portal-server/remote_socks.d.ts.map +0 -1
- package/dist/sys/portal-server/remote_socks.js +0 -436
- package/dist/sys/portal-server/remote_socks.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.PackageManagerClearCacheDesc = exports.PackageManagerResumeDesc = exports.PackageManagerPauseDesc = exports.PackageManagerUninstallDesc = exports.PackageManagerInstallDesc = exports.PackageManagerDesc = exports.PackageManagerClientImpl = 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.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";
|
|
@@ -120,22 +120,29 @@ exports.PkgURL = {
|
|
|
120
120
|
return writer;
|
|
121
121
|
},
|
|
122
122
|
decode(input, length) {
|
|
123
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
123
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
124
124
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
125
125
|
const message = createBasePkgURL();
|
|
126
126
|
while (reader.pos < end) {
|
|
127
127
|
const tag = reader.uint32();
|
|
128
128
|
switch (tag >>> 3) {
|
|
129
129
|
case 1:
|
|
130
|
+
if (tag != 10) {
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
130
133
|
message.url = reader.string();
|
|
131
|
-
|
|
134
|
+
continue;
|
|
132
135
|
case 2:
|
|
136
|
+
if (tag != 18) {
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
133
139
|
message.sha256 = reader.string();
|
|
134
|
-
|
|
135
|
-
default:
|
|
136
|
-
reader.skipType(tag & 7);
|
|
137
|
-
break;
|
|
140
|
+
continue;
|
|
138
141
|
}
|
|
142
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
reader.skipType(tag & 7);
|
|
139
146
|
}
|
|
140
147
|
return message;
|
|
141
148
|
},
|
|
@@ -151,6 +158,9 @@ exports.PkgURL = {
|
|
|
151
158
|
message.sha256 !== undefined && (obj.sha256 = message.sha256);
|
|
152
159
|
return obj;
|
|
153
160
|
},
|
|
161
|
+
create(base) {
|
|
162
|
+
return exports.PkgURL.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
163
|
+
},
|
|
154
164
|
fromPartial(object) {
|
|
155
165
|
var _a, _b;
|
|
156
166
|
const message = createBasePkgURL();
|
|
@@ -179,28 +189,41 @@ exports.InstallRequest = {
|
|
|
179
189
|
return writer;
|
|
180
190
|
},
|
|
181
191
|
decode(input, length) {
|
|
182
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
192
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
183
193
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
184
194
|
const message = createBaseInstallRequest();
|
|
185
195
|
while (reader.pos < end) {
|
|
186
196
|
const tag = reader.uint32();
|
|
187
197
|
switch (tag >>> 3) {
|
|
188
198
|
case 1:
|
|
199
|
+
if (tag != 10) {
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
189
202
|
message.appid = reader.string();
|
|
190
|
-
|
|
203
|
+
continue;
|
|
191
204
|
case 2:
|
|
205
|
+
if (tag != 18) {
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
192
208
|
message.url = reader.string();
|
|
193
|
-
|
|
209
|
+
continue;
|
|
194
210
|
case 3:
|
|
211
|
+
if (tag != 26) {
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
195
214
|
message.sha256 = reader.string();
|
|
196
|
-
|
|
215
|
+
continue;
|
|
197
216
|
case 4:
|
|
217
|
+
if (tag != 34) {
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
198
220
|
message.subdomain = reader.string();
|
|
199
|
-
|
|
200
|
-
default:
|
|
201
|
-
reader.skipType(tag & 7);
|
|
202
|
-
break;
|
|
221
|
+
continue;
|
|
203
222
|
}
|
|
223
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
reader.skipType(tag & 7);
|
|
204
227
|
}
|
|
205
228
|
return message;
|
|
206
229
|
},
|
|
@@ -220,6 +243,9 @@ exports.InstallRequest = {
|
|
|
220
243
|
message.subdomain !== undefined && (obj.subdomain = message.subdomain);
|
|
221
244
|
return obj;
|
|
222
245
|
},
|
|
246
|
+
create(base) {
|
|
247
|
+
return exports.InstallRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
248
|
+
},
|
|
223
249
|
fromPartial(object) {
|
|
224
250
|
var _a, _b, _c, _d;
|
|
225
251
|
const message = createBaseInstallRequest();
|
|
@@ -244,22 +270,29 @@ exports.UninstallRequest = {
|
|
|
244
270
|
return writer;
|
|
245
271
|
},
|
|
246
272
|
decode(input, length) {
|
|
247
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
273
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
248
274
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
249
275
|
const message = createBaseUninstallRequest();
|
|
250
276
|
while (reader.pos < end) {
|
|
251
277
|
const tag = reader.uint32();
|
|
252
278
|
switch (tag >>> 3) {
|
|
253
279
|
case 1:
|
|
280
|
+
if (tag != 10) {
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
254
283
|
message.appid = reader.string();
|
|
255
|
-
|
|
284
|
+
continue;
|
|
256
285
|
case 2:
|
|
286
|
+
if (tag != 16) {
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
257
289
|
message.clearData = reader.bool();
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
290
|
+
continue;
|
|
291
|
+
}
|
|
292
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
293
|
+
break;
|
|
262
294
|
}
|
|
295
|
+
reader.skipType(tag & 7);
|
|
263
296
|
}
|
|
264
297
|
return message;
|
|
265
298
|
},
|
|
@@ -275,6 +308,9 @@ exports.UninstallRequest = {
|
|
|
275
308
|
message.clearData !== undefined && (obj.clearData = message.clearData);
|
|
276
309
|
return obj;
|
|
277
310
|
},
|
|
311
|
+
create(base) {
|
|
312
|
+
return exports.UninstallRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
313
|
+
},
|
|
278
314
|
fromPartial(object) {
|
|
279
315
|
var _a, _b;
|
|
280
316
|
const message = createBaseUninstallRequest();
|
|
@@ -297,22 +333,29 @@ exports.AppDownloadProgress = {
|
|
|
297
333
|
return writer;
|
|
298
334
|
},
|
|
299
335
|
decode(input, length) {
|
|
300
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
336
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
301
337
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
302
338
|
const message = createBaseAppDownloadProgress();
|
|
303
339
|
while (reader.pos < end) {
|
|
304
340
|
const tag = reader.uint32();
|
|
305
341
|
switch (tag >>> 3) {
|
|
306
342
|
case 1:
|
|
343
|
+
if (tag != 8) {
|
|
344
|
+
break;
|
|
345
|
+
}
|
|
307
346
|
message.current = longToNumber(reader.uint64());
|
|
308
|
-
|
|
347
|
+
continue;
|
|
309
348
|
case 2:
|
|
349
|
+
if (tag != 16) {
|
|
350
|
+
break;
|
|
351
|
+
}
|
|
310
352
|
message.total = longToNumber(reader.uint64());
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
353
|
+
continue;
|
|
354
|
+
}
|
|
355
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
356
|
+
break;
|
|
315
357
|
}
|
|
358
|
+
reader.skipType(tag & 7);
|
|
316
359
|
}
|
|
317
360
|
return message;
|
|
318
361
|
},
|
|
@@ -324,11 +367,13 @@ exports.AppDownloadProgress = {
|
|
|
324
367
|
},
|
|
325
368
|
toJSON(message) {
|
|
326
369
|
const obj = {};
|
|
327
|
-
message.current !== undefined &&
|
|
328
|
-
(obj.current = Math.round(message.current));
|
|
370
|
+
message.current !== undefined && (obj.current = Math.round(message.current));
|
|
329
371
|
message.total !== undefined && (obj.total = Math.round(message.total));
|
|
330
372
|
return obj;
|
|
331
373
|
},
|
|
374
|
+
create(base) {
|
|
375
|
+
return exports.AppDownloadProgress.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
376
|
+
},
|
|
332
377
|
fromPartial(object) {
|
|
333
378
|
var _a, _b;
|
|
334
379
|
const message = createBaseAppDownloadProgress();
|
|
@@ -386,46 +431,77 @@ exports.AppInfo = {
|
|
|
386
431
|
return writer;
|
|
387
432
|
},
|
|
388
433
|
decode(input, length) {
|
|
389
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
434
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
390
435
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
391
436
|
const message = createBaseAppInfo();
|
|
392
437
|
while (reader.pos < end) {
|
|
393
438
|
const tag = reader.uint32();
|
|
394
439
|
switch (tag >>> 3) {
|
|
395
440
|
case 1:
|
|
441
|
+
if (tag != 10) {
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
396
444
|
message.appid = reader.string();
|
|
397
|
-
|
|
445
|
+
continue;
|
|
398
446
|
case 2:
|
|
447
|
+
if (tag != 16) {
|
|
448
|
+
break;
|
|
449
|
+
}
|
|
399
450
|
message.status = reader.int32();
|
|
400
|
-
|
|
451
|
+
continue;
|
|
401
452
|
case 3:
|
|
453
|
+
if (tag != 26) {
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
402
456
|
message.version = reader.string();
|
|
403
|
-
|
|
457
|
+
continue;
|
|
404
458
|
case 4:
|
|
459
|
+
if (tag != 34) {
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
405
462
|
message.title = reader.string();
|
|
406
|
-
|
|
463
|
+
continue;
|
|
407
464
|
case 5:
|
|
465
|
+
if (tag != 42) {
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
408
468
|
message.description = reader.string();
|
|
409
|
-
|
|
469
|
+
continue;
|
|
410
470
|
case 6:
|
|
471
|
+
if (tag != 50) {
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
411
474
|
message.icon = reader.string();
|
|
412
|
-
|
|
475
|
+
continue;
|
|
413
476
|
case 7:
|
|
477
|
+
if (tag != 58) {
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
414
480
|
message.domain = reader.string();
|
|
415
|
-
|
|
481
|
+
continue;
|
|
416
482
|
case 8:
|
|
483
|
+
if (tag != 66) {
|
|
484
|
+
break;
|
|
485
|
+
}
|
|
417
486
|
message.downloadProgress = exports.AppDownloadProgress.decode(reader, reader.uint32());
|
|
418
|
-
|
|
487
|
+
continue;
|
|
419
488
|
case 9:
|
|
489
|
+
if (tag != 72) {
|
|
490
|
+
break;
|
|
491
|
+
}
|
|
420
492
|
message.builtin = reader.bool();
|
|
421
|
-
|
|
493
|
+
continue;
|
|
422
494
|
case 10:
|
|
495
|
+
if (tag != 82) {
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
423
498
|
message.errorReason = reader.string();
|
|
424
|
-
|
|
425
|
-
default:
|
|
426
|
-
reader.skipType(tag & 7);
|
|
427
|
-
break;
|
|
499
|
+
continue;
|
|
428
500
|
}
|
|
501
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
502
|
+
break;
|
|
503
|
+
}
|
|
504
|
+
reader.skipType(tag & 7);
|
|
429
505
|
}
|
|
430
506
|
return message;
|
|
431
507
|
},
|
|
@@ -435,40 +511,35 @@ exports.AppInfo = {
|
|
|
435
511
|
status: isSet(object.status) ? appStatusFromJSON(object.status) : 0,
|
|
436
512
|
version: isSet(object.version) ? String(object.version) : undefined,
|
|
437
513
|
title: isSet(object.title) ? String(object.title) : undefined,
|
|
438
|
-
description: isSet(object.description)
|
|
439
|
-
? String(object.description)
|
|
440
|
-
: undefined,
|
|
514
|
+
description: isSet(object.description) ? String(object.description) : undefined,
|
|
441
515
|
icon: isSet(object.icon) ? String(object.icon) : undefined,
|
|
442
516
|
domain: isSet(object.domain) ? String(object.domain) : undefined,
|
|
443
517
|
downloadProgress: isSet(object.downloadProgress)
|
|
444
518
|
? exports.AppDownloadProgress.fromJSON(object.downloadProgress)
|
|
445
519
|
: undefined,
|
|
446
520
|
builtin: isSet(object.builtin) ? Boolean(object.builtin) : undefined,
|
|
447
|
-
errorReason: isSet(object.errorReason)
|
|
448
|
-
? String(object.errorReason)
|
|
449
|
-
: undefined,
|
|
521
|
+
errorReason: isSet(object.errorReason) ? String(object.errorReason) : undefined,
|
|
450
522
|
};
|
|
451
523
|
},
|
|
452
524
|
toJSON(message) {
|
|
453
525
|
const obj = {};
|
|
454
526
|
message.appid !== undefined && (obj.appid = message.appid);
|
|
455
|
-
message.status !== undefined &&
|
|
456
|
-
(obj.status = appStatusToJSON(message.status));
|
|
527
|
+
message.status !== undefined && (obj.status = appStatusToJSON(message.status));
|
|
457
528
|
message.version !== undefined && (obj.version = message.version);
|
|
458
529
|
message.title !== undefined && (obj.title = message.title);
|
|
459
|
-
message.description !== undefined &&
|
|
460
|
-
(obj.description = message.description);
|
|
530
|
+
message.description !== undefined && (obj.description = message.description);
|
|
461
531
|
message.icon !== undefined && (obj.icon = message.icon);
|
|
462
532
|
message.domain !== undefined && (obj.domain = message.domain);
|
|
463
|
-
message.downloadProgress !== undefined &&
|
|
464
|
-
(
|
|
465
|
-
|
|
466
|
-
: undefined);
|
|
533
|
+
message.downloadProgress !== undefined && (obj.downloadProgress = message.downloadProgress
|
|
534
|
+
? exports.AppDownloadProgress.toJSON(message.downloadProgress)
|
|
535
|
+
: undefined);
|
|
467
536
|
message.builtin !== undefined && (obj.builtin = message.builtin);
|
|
468
|
-
message.errorReason !== undefined &&
|
|
469
|
-
(obj.errorReason = message.errorReason);
|
|
537
|
+
message.errorReason !== undefined && (obj.errorReason = message.errorReason);
|
|
470
538
|
return obj;
|
|
471
539
|
},
|
|
540
|
+
create(base) {
|
|
541
|
+
return exports.AppInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
542
|
+
},
|
|
472
543
|
fromPartial(object) {
|
|
473
544
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
474
545
|
const message = createBaseAppInfo();
|
|
@@ -479,10 +550,9 @@ exports.AppInfo = {
|
|
|
479
550
|
message.description = (_e = object.description) !== null && _e !== void 0 ? _e : undefined;
|
|
480
551
|
message.icon = (_f = object.icon) !== null && _f !== void 0 ? _f : undefined;
|
|
481
552
|
message.domain = (_g = object.domain) !== null && _g !== void 0 ? _g : undefined;
|
|
482
|
-
message.downloadProgress =
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
: undefined;
|
|
553
|
+
message.downloadProgress = (object.downloadProgress !== undefined && object.downloadProgress !== null)
|
|
554
|
+
? exports.AppDownloadProgress.fromPartial(object.downloadProgress)
|
|
555
|
+
: undefined;
|
|
486
556
|
message.builtin = (_h = object.builtin) !== null && _h !== void 0 ? _h : undefined;
|
|
487
557
|
message.errorReason = (_j = object.errorReason) !== null && _j !== void 0 ? _j : undefined;
|
|
488
558
|
return message;
|
|
@@ -499,28 +569,28 @@ exports.QueryApplicationRequest = {
|
|
|
499
569
|
return writer;
|
|
500
570
|
},
|
|
501
571
|
decode(input, length) {
|
|
502
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
572
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
503
573
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
504
574
|
const message = createBaseQueryApplicationRequest();
|
|
505
575
|
while (reader.pos < end) {
|
|
506
576
|
const tag = reader.uint32();
|
|
507
577
|
switch (tag >>> 3) {
|
|
508
578
|
case 1:
|
|
579
|
+
if (tag != 10) {
|
|
580
|
+
break;
|
|
581
|
+
}
|
|
509
582
|
message.appidList.push(reader.string());
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
583
|
+
continue;
|
|
584
|
+
}
|
|
585
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
586
|
+
break;
|
|
514
587
|
}
|
|
588
|
+
reader.skipType(tag & 7);
|
|
515
589
|
}
|
|
516
590
|
return message;
|
|
517
591
|
},
|
|
518
592
|
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
|
-
};
|
|
593
|
+
return { appidList: Array.isArray(object === null || object === void 0 ? void 0 : object.appidList) ? object.appidList.map((e) => String(e)) : [] };
|
|
524
594
|
},
|
|
525
595
|
toJSON(message) {
|
|
526
596
|
const obj = {};
|
|
@@ -532,6 +602,9 @@ exports.QueryApplicationRequest = {
|
|
|
532
602
|
}
|
|
533
603
|
return obj;
|
|
534
604
|
},
|
|
605
|
+
create(base) {
|
|
606
|
+
return exports.QueryApplicationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
607
|
+
},
|
|
535
608
|
fromPartial(object) {
|
|
536
609
|
var _a;
|
|
537
610
|
const message = createBaseQueryApplicationRequest();
|
|
@@ -550,28 +623,28 @@ exports.QueryApplicationResponse = {
|
|
|
550
623
|
return writer;
|
|
551
624
|
},
|
|
552
625
|
decode(input, length) {
|
|
553
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
626
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
554
627
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
555
628
|
const message = createBaseQueryApplicationResponse();
|
|
556
629
|
while (reader.pos < end) {
|
|
557
630
|
const tag = reader.uint32();
|
|
558
631
|
switch (tag >>> 3) {
|
|
559
632
|
case 1:
|
|
633
|
+
if (tag != 10) {
|
|
634
|
+
break;
|
|
635
|
+
}
|
|
560
636
|
message.infoList.push(exports.AppInfo.decode(reader, reader.uint32()));
|
|
561
|
-
|
|
562
|
-
default:
|
|
563
|
-
reader.skipType(tag & 7);
|
|
564
|
-
break;
|
|
637
|
+
continue;
|
|
565
638
|
}
|
|
639
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
640
|
+
break;
|
|
641
|
+
}
|
|
642
|
+
reader.skipType(tag & 7);
|
|
566
643
|
}
|
|
567
644
|
return message;
|
|
568
645
|
},
|
|
569
646
|
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
|
-
};
|
|
647
|
+
return { infoList: Array.isArray(object === null || object === void 0 ? void 0 : object.infoList) ? object.infoList.map((e) => exports.AppInfo.fromJSON(e)) : [] };
|
|
575
648
|
},
|
|
576
649
|
toJSON(message) {
|
|
577
650
|
const obj = {};
|
|
@@ -583,11 +656,13 @@ exports.QueryApplicationResponse = {
|
|
|
583
656
|
}
|
|
584
657
|
return obj;
|
|
585
658
|
},
|
|
659
|
+
create(base) {
|
|
660
|
+
return exports.QueryApplicationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
661
|
+
},
|
|
586
662
|
fromPartial(object) {
|
|
587
663
|
var _a;
|
|
588
664
|
const message = createBaseQueryApplicationResponse();
|
|
589
|
-
message.infoList =
|
|
590
|
-
((_a = object.infoList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.AppInfo.fromPartial(e))) || [];
|
|
665
|
+
message.infoList = ((_a = object.infoList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.AppInfo.fromPartial(e))) || [];
|
|
591
666
|
return message;
|
|
592
667
|
},
|
|
593
668
|
};
|
|
@@ -628,37 +703,59 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
628
703
|
return writer;
|
|
629
704
|
},
|
|
630
705
|
decode(input, length) {
|
|
631
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
706
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
632
707
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
633
708
|
const message = createBaseQueryAppStorageUsageRequest();
|
|
634
709
|
while (reader.pos < end) {
|
|
635
710
|
const tag = reader.uint32();
|
|
636
711
|
switch (tag >>> 3) {
|
|
637
712
|
case 1:
|
|
713
|
+
if (tag != 10) {
|
|
714
|
+
break;
|
|
715
|
+
}
|
|
638
716
|
message.appid = reader.string();
|
|
639
|
-
|
|
717
|
+
continue;
|
|
640
718
|
case 2:
|
|
719
|
+
if (tag != 16) {
|
|
720
|
+
break;
|
|
721
|
+
}
|
|
641
722
|
message.needPkg = reader.bool();
|
|
642
|
-
|
|
723
|
+
continue;
|
|
643
724
|
case 3:
|
|
725
|
+
if (tag != 24) {
|
|
726
|
+
break;
|
|
727
|
+
}
|
|
644
728
|
message.needData = reader.bool();
|
|
645
|
-
|
|
729
|
+
continue;
|
|
646
730
|
case 4:
|
|
731
|
+
if (tag != 32) {
|
|
732
|
+
break;
|
|
733
|
+
}
|
|
647
734
|
message.needCache = reader.bool();
|
|
648
|
-
|
|
735
|
+
continue;
|
|
649
736
|
case 5:
|
|
737
|
+
if (tag != 40) {
|
|
738
|
+
break;
|
|
739
|
+
}
|
|
650
740
|
message.needTmp = reader.bool();
|
|
651
|
-
|
|
741
|
+
continue;
|
|
652
742
|
case 6:
|
|
743
|
+
if (tag != 48) {
|
|
744
|
+
break;
|
|
745
|
+
}
|
|
653
746
|
message.needUserdata = reader.bool();
|
|
654
|
-
|
|
747
|
+
continue;
|
|
655
748
|
case 7:
|
|
749
|
+
if (tag != 56) {
|
|
750
|
+
break;
|
|
751
|
+
}
|
|
656
752
|
message.needImage = reader.bool();
|
|
657
|
-
|
|
658
|
-
default:
|
|
659
|
-
reader.skipType(tag & 7);
|
|
660
|
-
break;
|
|
753
|
+
continue;
|
|
661
754
|
}
|
|
755
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
756
|
+
break;
|
|
757
|
+
}
|
|
758
|
+
reader.skipType(tag & 7);
|
|
662
759
|
}
|
|
663
760
|
return message;
|
|
664
761
|
},
|
|
@@ -669,9 +766,7 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
669
766
|
needData: isSet(object.needData) ? Boolean(object.needData) : false,
|
|
670
767
|
needCache: isSet(object.needCache) ? Boolean(object.needCache) : false,
|
|
671
768
|
needTmp: isSet(object.needTmp) ? Boolean(object.needTmp) : false,
|
|
672
|
-
needUserdata: isSet(object.needUserdata)
|
|
673
|
-
? Boolean(object.needUserdata)
|
|
674
|
-
: false,
|
|
769
|
+
needUserdata: isSet(object.needUserdata) ? Boolean(object.needUserdata) : false,
|
|
675
770
|
needImage: isSet(object.needImage) ? Boolean(object.needImage) : false,
|
|
676
771
|
};
|
|
677
772
|
},
|
|
@@ -682,11 +777,13 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
682
777
|
message.needData !== undefined && (obj.needData = message.needData);
|
|
683
778
|
message.needCache !== undefined && (obj.needCache = message.needCache);
|
|
684
779
|
message.needTmp !== undefined && (obj.needTmp = message.needTmp);
|
|
685
|
-
message.needUserdata !== undefined &&
|
|
686
|
-
(obj.needUserdata = message.needUserdata);
|
|
780
|
+
message.needUserdata !== undefined && (obj.needUserdata = message.needUserdata);
|
|
687
781
|
message.needImage !== undefined && (obj.needImage = message.needImage);
|
|
688
782
|
return obj;
|
|
689
783
|
},
|
|
784
|
+
create(base) {
|
|
785
|
+
return exports.QueryAppStorageUsageRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
786
|
+
},
|
|
690
787
|
fromPartial(object) {
|
|
691
788
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
692
789
|
const message = createBaseQueryAppStorageUsageRequest();
|
|
@@ -726,37 +823,56 @@ exports.AppStorageUsage = {
|
|
|
726
823
|
return writer;
|
|
727
824
|
},
|
|
728
825
|
decode(input, length) {
|
|
729
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
826
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
730
827
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
731
828
|
const message = createBaseAppStorageUsage();
|
|
732
829
|
while (reader.pos < end) {
|
|
733
830
|
const tag = reader.uint32();
|
|
734
831
|
switch (tag >>> 3) {
|
|
735
832
|
case 1:
|
|
833
|
+
if (tag != 8) {
|
|
834
|
+
break;
|
|
835
|
+
}
|
|
736
836
|
message.pkg = longToNumber(reader.uint64());
|
|
737
|
-
|
|
837
|
+
continue;
|
|
738
838
|
case 2:
|
|
839
|
+
if (tag != 16) {
|
|
840
|
+
break;
|
|
841
|
+
}
|
|
739
842
|
message.data = longToNumber(reader.uint64());
|
|
740
|
-
|
|
843
|
+
continue;
|
|
741
844
|
case 3:
|
|
845
|
+
if (tag != 24) {
|
|
846
|
+
break;
|
|
847
|
+
}
|
|
742
848
|
message.cache = longToNumber(reader.uint64());
|
|
743
|
-
|
|
849
|
+
continue;
|
|
744
850
|
case 4:
|
|
851
|
+
if (tag != 32) {
|
|
852
|
+
break;
|
|
853
|
+
}
|
|
745
854
|
message.tmp = longToNumber(reader.uint64());
|
|
746
|
-
|
|
855
|
+
continue;
|
|
747
856
|
case 5:
|
|
857
|
+
if (tag != 42) {
|
|
858
|
+
break;
|
|
859
|
+
}
|
|
748
860
|
const entry5 = exports.AppStorageUsage_UserdataEntry.decode(reader, reader.uint32());
|
|
749
861
|
if (entry5.value !== undefined) {
|
|
750
862
|
message.userdata[entry5.key] = entry5.value;
|
|
751
863
|
}
|
|
752
|
-
|
|
864
|
+
continue;
|
|
753
865
|
case 6:
|
|
866
|
+
if (tag != 48) {
|
|
867
|
+
break;
|
|
868
|
+
}
|
|
754
869
|
message.image = longToNumber(reader.uint64());
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
870
|
+
continue;
|
|
871
|
+
}
|
|
872
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
873
|
+
break;
|
|
759
874
|
}
|
|
875
|
+
reader.skipType(tag & 7);
|
|
760
876
|
}
|
|
761
877
|
return message;
|
|
762
878
|
},
|
|
@@ -790,6 +906,9 @@ exports.AppStorageUsage = {
|
|
|
790
906
|
message.image !== undefined && (obj.image = Math.round(message.image));
|
|
791
907
|
return obj;
|
|
792
908
|
},
|
|
909
|
+
create(base) {
|
|
910
|
+
return exports.AppStorageUsage.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
911
|
+
},
|
|
793
912
|
fromPartial(object) {
|
|
794
913
|
var _a, _b, _c, _d, _e, _f;
|
|
795
914
|
const message = createBaseAppStorageUsage();
|
|
@@ -821,30 +940,34 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
821
940
|
return writer;
|
|
822
941
|
},
|
|
823
942
|
decode(input, length) {
|
|
824
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
943
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
825
944
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
826
945
|
const message = createBaseAppStorageUsage_UserdataEntry();
|
|
827
946
|
while (reader.pos < end) {
|
|
828
947
|
const tag = reader.uint32();
|
|
829
948
|
switch (tag >>> 3) {
|
|
830
949
|
case 1:
|
|
950
|
+
if (tag != 10) {
|
|
951
|
+
break;
|
|
952
|
+
}
|
|
831
953
|
message.key = reader.string();
|
|
832
|
-
|
|
954
|
+
continue;
|
|
833
955
|
case 2:
|
|
956
|
+
if (tag != 16) {
|
|
957
|
+
break;
|
|
958
|
+
}
|
|
834
959
|
message.value = longToNumber(reader.uint64());
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
960
|
+
continue;
|
|
961
|
+
}
|
|
962
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
963
|
+
break;
|
|
839
964
|
}
|
|
965
|
+
reader.skipType(tag & 7);
|
|
840
966
|
}
|
|
841
967
|
return message;
|
|
842
968
|
},
|
|
843
969
|
fromJSON(object) {
|
|
844
|
-
return {
|
|
845
|
-
key: isSet(object.key) ? String(object.key) : "",
|
|
846
|
-
value: isSet(object.value) ? Number(object.value) : 0,
|
|
847
|
-
};
|
|
970
|
+
return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? Number(object.value) : 0 };
|
|
848
971
|
},
|
|
849
972
|
toJSON(message) {
|
|
850
973
|
const obj = {};
|
|
@@ -852,6 +975,9 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
852
975
|
message.value !== undefined && (obj.value = Math.round(message.value));
|
|
853
976
|
return obj;
|
|
854
977
|
},
|
|
978
|
+
create(base) {
|
|
979
|
+
return exports.AppStorageUsage_UserdataEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
980
|
+
},
|
|
855
981
|
fromPartial(object) {
|
|
856
982
|
var _a, _b;
|
|
857
983
|
const message = createBaseAppStorageUsage_UserdataEntry();
|
|
@@ -874,40 +1000,47 @@ exports.UserPermission = {
|
|
|
874
1000
|
return writer;
|
|
875
1001
|
},
|
|
876
1002
|
decode(input, length) {
|
|
877
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1003
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
878
1004
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
879
1005
|
const message = createBaseUserPermission();
|
|
880
1006
|
while (reader.pos < end) {
|
|
881
1007
|
const tag = reader.uint32();
|
|
882
1008
|
switch (tag >>> 3) {
|
|
883
1009
|
case 1:
|
|
1010
|
+
if (tag != 10) {
|
|
1011
|
+
break;
|
|
1012
|
+
}
|
|
884
1013
|
message.uid = reader.string();
|
|
885
|
-
|
|
1014
|
+
continue;
|
|
886
1015
|
case 2:
|
|
1016
|
+
if (tag != 16) {
|
|
1017
|
+
break;
|
|
1018
|
+
}
|
|
887
1019
|
message.allowInstallApp = reader.bool();
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
1020
|
+
continue;
|
|
1021
|
+
}
|
|
1022
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1023
|
+
break;
|
|
892
1024
|
}
|
|
1025
|
+
reader.skipType(tag & 7);
|
|
893
1026
|
}
|
|
894
1027
|
return message;
|
|
895
1028
|
},
|
|
896
1029
|
fromJSON(object) {
|
|
897
1030
|
return {
|
|
898
1031
|
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
899
|
-
allowInstallApp: isSet(object.allowInstallApp)
|
|
900
|
-
? Boolean(object.allowInstallApp)
|
|
901
|
-
: false,
|
|
1032
|
+
allowInstallApp: isSet(object.allowInstallApp) ? Boolean(object.allowInstallApp) : false,
|
|
902
1033
|
};
|
|
903
1034
|
},
|
|
904
1035
|
toJSON(message) {
|
|
905
1036
|
const obj = {};
|
|
906
1037
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
907
|
-
message.allowInstallApp !== undefined &&
|
|
908
|
-
(obj.allowInstallApp = message.allowInstallApp);
|
|
1038
|
+
message.allowInstallApp !== undefined && (obj.allowInstallApp = message.allowInstallApp);
|
|
909
1039
|
return obj;
|
|
910
1040
|
},
|
|
1041
|
+
create(base) {
|
|
1042
|
+
return exports.UserPermission.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1043
|
+
},
|
|
911
1044
|
fromPartial(object) {
|
|
912
1045
|
var _a, _b;
|
|
913
1046
|
const message = createBaseUserPermission();
|
|
@@ -927,32 +1060,37 @@ exports.GetUserPermissionsRequest = {
|
|
|
927
1060
|
return writer;
|
|
928
1061
|
},
|
|
929
1062
|
decode(input, length) {
|
|
930
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1063
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
931
1064
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
932
1065
|
const message = createBaseGetUserPermissionsRequest();
|
|
933
1066
|
while (reader.pos < end) {
|
|
934
1067
|
const tag = reader.uint32();
|
|
935
1068
|
switch (tag >>> 3) {
|
|
936
1069
|
case 1:
|
|
1070
|
+
if (tag != 10) {
|
|
1071
|
+
break;
|
|
1072
|
+
}
|
|
937
1073
|
message.uid = reader.string();
|
|
938
|
-
|
|
939
|
-
default:
|
|
940
|
-
reader.skipType(tag & 7);
|
|
941
|
-
break;
|
|
1074
|
+
continue;
|
|
942
1075
|
}
|
|
1076
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1077
|
+
break;
|
|
1078
|
+
}
|
|
1079
|
+
reader.skipType(tag & 7);
|
|
943
1080
|
}
|
|
944
1081
|
return message;
|
|
945
1082
|
},
|
|
946
1083
|
fromJSON(object) {
|
|
947
|
-
return {
|
|
948
|
-
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
949
|
-
};
|
|
1084
|
+
return { uid: isSet(object.uid) ? String(object.uid) : "" };
|
|
950
1085
|
},
|
|
951
1086
|
toJSON(message) {
|
|
952
1087
|
const obj = {};
|
|
953
1088
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
954
1089
|
return obj;
|
|
955
1090
|
},
|
|
1091
|
+
create(base) {
|
|
1092
|
+
return exports.GetUserPermissionsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1093
|
+
},
|
|
956
1094
|
fromPartial(object) {
|
|
957
1095
|
var _a;
|
|
958
1096
|
const message = createBaseGetUserPermissionsRequest();
|
|
@@ -971,32 +1109,37 @@ exports.Appid = {
|
|
|
971
1109
|
return writer;
|
|
972
1110
|
},
|
|
973
1111
|
decode(input, length) {
|
|
974
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1112
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
975
1113
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
976
1114
|
const message = createBaseAppid();
|
|
977
1115
|
while (reader.pos < end) {
|
|
978
1116
|
const tag = reader.uint32();
|
|
979
1117
|
switch (tag >>> 3) {
|
|
980
1118
|
case 1:
|
|
1119
|
+
if (tag != 10) {
|
|
1120
|
+
break;
|
|
1121
|
+
}
|
|
981
1122
|
message.appid = reader.string();
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
1123
|
+
continue;
|
|
1124
|
+
}
|
|
1125
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1126
|
+
break;
|
|
986
1127
|
}
|
|
1128
|
+
reader.skipType(tag & 7);
|
|
987
1129
|
}
|
|
988
1130
|
return message;
|
|
989
1131
|
},
|
|
990
1132
|
fromJSON(object) {
|
|
991
|
-
return {
|
|
992
|
-
appid: isSet(object.appid) ? String(object.appid) : "",
|
|
993
|
-
};
|
|
1133
|
+
return { appid: isSet(object.appid) ? String(object.appid) : "" };
|
|
994
1134
|
},
|
|
995
1135
|
toJSON(message) {
|
|
996
1136
|
const obj = {};
|
|
997
1137
|
message.appid !== undefined && (obj.appid = message.appid);
|
|
998
1138
|
return obj;
|
|
999
1139
|
},
|
|
1140
|
+
create(base) {
|
|
1141
|
+
return exports.Appid.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1142
|
+
},
|
|
1000
1143
|
fromPartial(object) {
|
|
1001
1144
|
var _a;
|
|
1002
1145
|
const message = createBaseAppid();
|
|
@@ -1021,25 +1164,35 @@ exports.GetActionURLRequest = {
|
|
|
1021
1164
|
return writer;
|
|
1022
1165
|
},
|
|
1023
1166
|
decode(input, length) {
|
|
1024
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1167
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1025
1168
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1026
1169
|
const message = createBaseGetActionURLRequest();
|
|
1027
1170
|
while (reader.pos < end) {
|
|
1028
1171
|
const tag = reader.uint32();
|
|
1029
1172
|
switch (tag >>> 3) {
|
|
1030
1173
|
case 1:
|
|
1174
|
+
if (tag != 10) {
|
|
1175
|
+
break;
|
|
1176
|
+
}
|
|
1031
1177
|
message.path = reader.string();
|
|
1032
|
-
|
|
1178
|
+
continue;
|
|
1033
1179
|
case 2:
|
|
1180
|
+
if (tag != 18) {
|
|
1181
|
+
break;
|
|
1182
|
+
}
|
|
1034
1183
|
message.appid = reader.string();
|
|
1035
|
-
|
|
1184
|
+
continue;
|
|
1036
1185
|
case 3:
|
|
1186
|
+
if (tag != 24) {
|
|
1187
|
+
break;
|
|
1188
|
+
}
|
|
1037
1189
|
message.action = reader.int32();
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1190
|
+
continue;
|
|
1191
|
+
}
|
|
1192
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1193
|
+
break;
|
|
1042
1194
|
}
|
|
1195
|
+
reader.skipType(tag & 7);
|
|
1043
1196
|
}
|
|
1044
1197
|
return message;
|
|
1045
1198
|
},
|
|
@@ -1057,6 +1210,9 @@ exports.GetActionURLRequest = {
|
|
|
1057
1210
|
message.action !== undefined && (obj.action = actionToJSON(message.action));
|
|
1058
1211
|
return obj;
|
|
1059
1212
|
},
|
|
1213
|
+
create(base) {
|
|
1214
|
+
return exports.GetActionURLRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1215
|
+
},
|
|
1060
1216
|
fromPartial(object) {
|
|
1061
1217
|
var _a, _b, _c;
|
|
1062
1218
|
const message = createBaseGetActionURLRequest();
|
|
@@ -1077,32 +1233,37 @@ exports.GetActionURLResponse = {
|
|
|
1077
1233
|
return writer;
|
|
1078
1234
|
},
|
|
1079
1235
|
decode(input, length) {
|
|
1080
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1236
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1081
1237
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1082
1238
|
const message = createBaseGetActionURLResponse();
|
|
1083
1239
|
while (reader.pos < end) {
|
|
1084
1240
|
const tag = reader.uint32();
|
|
1085
1241
|
switch (tag >>> 3) {
|
|
1086
1242
|
case 1:
|
|
1243
|
+
if (tag != 10) {
|
|
1244
|
+
break;
|
|
1245
|
+
}
|
|
1087
1246
|
message.url = reader.string();
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1247
|
+
continue;
|
|
1248
|
+
}
|
|
1249
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1250
|
+
break;
|
|
1092
1251
|
}
|
|
1252
|
+
reader.skipType(tag & 7);
|
|
1093
1253
|
}
|
|
1094
1254
|
return message;
|
|
1095
1255
|
},
|
|
1096
1256
|
fromJSON(object) {
|
|
1097
|
-
return {
|
|
1098
|
-
url: isSet(object.url) ? String(object.url) : "",
|
|
1099
|
-
};
|
|
1257
|
+
return { url: isSet(object.url) ? String(object.url) : "" };
|
|
1100
1258
|
},
|
|
1101
1259
|
toJSON(message) {
|
|
1102
1260
|
const obj = {};
|
|
1103
1261
|
message.url !== undefined && (obj.url = message.url);
|
|
1104
1262
|
return obj;
|
|
1105
1263
|
},
|
|
1264
|
+
create(base) {
|
|
1265
|
+
return exports.GetActionURLResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1266
|
+
},
|
|
1106
1267
|
fromPartial(object) {
|
|
1107
1268
|
var _a;
|
|
1108
1269
|
const message = createBaseGetActionURLResponse();
|
|
@@ -1121,32 +1282,37 @@ exports.ListFileHandlerRequest = {
|
|
|
1121
1282
|
return writer;
|
|
1122
1283
|
},
|
|
1123
1284
|
decode(input, length) {
|
|
1124
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1285
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1125
1286
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1126
1287
|
const message = createBaseListFileHandlerRequest();
|
|
1127
1288
|
while (reader.pos < end) {
|
|
1128
1289
|
const tag = reader.uint32();
|
|
1129
1290
|
switch (tag >>> 3) {
|
|
1130
1291
|
case 1:
|
|
1292
|
+
if (tag != 10) {
|
|
1293
|
+
break;
|
|
1294
|
+
}
|
|
1131
1295
|
message.mimetype = reader.string();
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1296
|
+
continue;
|
|
1297
|
+
}
|
|
1298
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1299
|
+
break;
|
|
1136
1300
|
}
|
|
1301
|
+
reader.skipType(tag & 7);
|
|
1137
1302
|
}
|
|
1138
1303
|
return message;
|
|
1139
1304
|
},
|
|
1140
1305
|
fromJSON(object) {
|
|
1141
|
-
return {
|
|
1142
|
-
mimetype: isSet(object.mimetype) ? String(object.mimetype) : "",
|
|
1143
|
-
};
|
|
1306
|
+
return { mimetype: isSet(object.mimetype) ? String(object.mimetype) : "" };
|
|
1144
1307
|
},
|
|
1145
1308
|
toJSON(message) {
|
|
1146
1309
|
const obj = {};
|
|
1147
1310
|
message.mimetype !== undefined && (obj.mimetype = message.mimetype);
|
|
1148
1311
|
return obj;
|
|
1149
1312
|
},
|
|
1313
|
+
create(base) {
|
|
1314
|
+
return exports.ListFileHandlerRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1315
|
+
},
|
|
1150
1316
|
fromPartial(object) {
|
|
1151
1317
|
var _a;
|
|
1152
1318
|
const message = createBaseListFileHandlerRequest();
|
|
@@ -1171,25 +1337,35 @@ exports.FileHandlerInfo = {
|
|
|
1171
1337
|
return writer;
|
|
1172
1338
|
},
|
|
1173
1339
|
decode(input, length) {
|
|
1174
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1340
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1175
1341
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1176
1342
|
const message = createBaseFileHandlerInfo();
|
|
1177
1343
|
while (reader.pos < end) {
|
|
1178
1344
|
const tag = reader.uint32();
|
|
1179
1345
|
switch (tag >>> 3) {
|
|
1180
1346
|
case 1:
|
|
1347
|
+
if (tag != 10) {
|
|
1348
|
+
break;
|
|
1349
|
+
}
|
|
1181
1350
|
message.appid = reader.string();
|
|
1182
|
-
|
|
1351
|
+
continue;
|
|
1183
1352
|
case 2:
|
|
1353
|
+
if (tag != 18) {
|
|
1354
|
+
break;
|
|
1355
|
+
}
|
|
1184
1356
|
message.title = reader.string();
|
|
1185
|
-
|
|
1357
|
+
continue;
|
|
1186
1358
|
case 3:
|
|
1359
|
+
if (tag != 26) {
|
|
1360
|
+
break;
|
|
1361
|
+
}
|
|
1187
1362
|
message.icon = reader.string();
|
|
1188
|
-
|
|
1189
|
-
default:
|
|
1190
|
-
reader.skipType(tag & 7);
|
|
1191
|
-
break;
|
|
1363
|
+
continue;
|
|
1192
1364
|
}
|
|
1365
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1366
|
+
break;
|
|
1367
|
+
}
|
|
1368
|
+
reader.skipType(tag & 7);
|
|
1193
1369
|
}
|
|
1194
1370
|
return message;
|
|
1195
1371
|
},
|
|
@@ -1207,6 +1383,9 @@ exports.FileHandlerInfo = {
|
|
|
1207
1383
|
message.icon !== undefined && (obj.icon = message.icon);
|
|
1208
1384
|
return obj;
|
|
1209
1385
|
},
|
|
1386
|
+
create(base) {
|
|
1387
|
+
return exports.FileHandlerInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1388
|
+
},
|
|
1210
1389
|
fromPartial(object) {
|
|
1211
1390
|
var _a, _b, _c;
|
|
1212
1391
|
const message = createBaseFileHandlerInfo();
|
|
@@ -1227,27 +1406,29 @@ exports.ListFileHandlerResponse = {
|
|
|
1227
1406
|
return writer;
|
|
1228
1407
|
},
|
|
1229
1408
|
decode(input, length) {
|
|
1230
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1409
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1231
1410
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1232
1411
|
const message = createBaseListFileHandlerResponse();
|
|
1233
1412
|
while (reader.pos < end) {
|
|
1234
1413
|
const tag = reader.uint32();
|
|
1235
1414
|
switch (tag >>> 3) {
|
|
1236
1415
|
case 1:
|
|
1416
|
+
if (tag != 10) {
|
|
1417
|
+
break;
|
|
1418
|
+
}
|
|
1237
1419
|
message.infoList.push(exports.FileHandlerInfo.decode(reader, reader.uint32()));
|
|
1238
|
-
|
|
1239
|
-
default:
|
|
1240
|
-
reader.skipType(tag & 7);
|
|
1241
|
-
break;
|
|
1420
|
+
continue;
|
|
1242
1421
|
}
|
|
1422
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1423
|
+
break;
|
|
1424
|
+
}
|
|
1425
|
+
reader.skipType(tag & 7);
|
|
1243
1426
|
}
|
|
1244
1427
|
return message;
|
|
1245
1428
|
},
|
|
1246
1429
|
fromJSON(object) {
|
|
1247
1430
|
return {
|
|
1248
|
-
infoList: Array.isArray(object === null || object === void 0 ? void 0 : object.infoList)
|
|
1249
|
-
? object.infoList.map((e) => exports.FileHandlerInfo.fromJSON(e))
|
|
1250
|
-
: [],
|
|
1431
|
+
infoList: Array.isArray(object === null || object === void 0 ? void 0 : object.infoList) ? object.infoList.map((e) => exports.FileHandlerInfo.fromJSON(e)) : [],
|
|
1251
1432
|
};
|
|
1252
1433
|
},
|
|
1253
1434
|
toJSON(message) {
|
|
@@ -1260,11 +1441,13 @@ exports.ListFileHandlerResponse = {
|
|
|
1260
1441
|
}
|
|
1261
1442
|
return obj;
|
|
1262
1443
|
},
|
|
1444
|
+
create(base) {
|
|
1445
|
+
return exports.ListFileHandlerResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1446
|
+
},
|
|
1263
1447
|
fromPartial(object) {
|
|
1264
1448
|
var _a;
|
|
1265
1449
|
const message = createBaseListFileHandlerResponse();
|
|
1266
|
-
message.infoList =
|
|
1267
|
-
((_a = object.infoList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.FileHandlerInfo.fromPartial(e))) || [];
|
|
1450
|
+
message.infoList = ((_a = object.infoList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.FileHandlerInfo.fromPartial(e))) || [];
|
|
1268
1451
|
return message;
|
|
1269
1452
|
},
|
|
1270
1453
|
};
|
|
@@ -1282,30 +1465,34 @@ exports.AppInstance = {
|
|
|
1282
1465
|
return writer;
|
|
1283
1466
|
},
|
|
1284
1467
|
decode(input, length) {
|
|
1285
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1468
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1286
1469
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1287
1470
|
const message = createBaseAppInstance();
|
|
1288
1471
|
while (reader.pos < end) {
|
|
1289
1472
|
const tag = reader.uint32();
|
|
1290
1473
|
switch (tag >>> 3) {
|
|
1291
1474
|
case 1:
|
|
1475
|
+
if (tag != 10) {
|
|
1476
|
+
break;
|
|
1477
|
+
}
|
|
1292
1478
|
message.appid = reader.string();
|
|
1293
|
-
|
|
1479
|
+
continue;
|
|
1294
1480
|
case 2:
|
|
1481
|
+
if (tag != 18) {
|
|
1482
|
+
break;
|
|
1483
|
+
}
|
|
1295
1484
|
message.uid = reader.string();
|
|
1296
|
-
|
|
1297
|
-
default:
|
|
1298
|
-
reader.skipType(tag & 7);
|
|
1299
|
-
break;
|
|
1485
|
+
continue;
|
|
1300
1486
|
}
|
|
1487
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1488
|
+
break;
|
|
1489
|
+
}
|
|
1490
|
+
reader.skipType(tag & 7);
|
|
1301
1491
|
}
|
|
1302
1492
|
return message;
|
|
1303
1493
|
},
|
|
1304
1494
|
fromJSON(object) {
|
|
1305
|
-
return {
|
|
1306
|
-
appid: isSet(object.appid) ? String(object.appid) : "",
|
|
1307
|
-
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
1308
|
-
};
|
|
1495
|
+
return { appid: isSet(object.appid) ? String(object.appid) : "", uid: isSet(object.uid) ? String(object.uid) : "" };
|
|
1309
1496
|
},
|
|
1310
1497
|
toJSON(message) {
|
|
1311
1498
|
const obj = {};
|
|
@@ -1313,6 +1500,9 @@ exports.AppInstance = {
|
|
|
1313
1500
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
1314
1501
|
return obj;
|
|
1315
1502
|
},
|
|
1503
|
+
create(base) {
|
|
1504
|
+
return exports.AppInstance.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1505
|
+
},
|
|
1316
1506
|
fromPartial(object) {
|
|
1317
1507
|
var _a, _b;
|
|
1318
1508
|
const message = createBaseAppInstance();
|
|
@@ -1375,9 +1565,7 @@ class PackageManagerClientImpl {
|
|
|
1375
1565
|
}
|
|
1376
1566
|
}
|
|
1377
1567
|
exports.PackageManagerClientImpl = PackageManagerClientImpl;
|
|
1378
|
-
exports.PackageManagerDesc = {
|
|
1379
|
-
serviceName: "cloud.lazycat.apis.sys.PackageManager",
|
|
1380
|
-
};
|
|
1568
|
+
exports.PackageManagerDesc = { serviceName: "cloud.lazycat.apis.sys.PackageManager" };
|
|
1381
1569
|
exports.PackageManagerInstallDesc = {
|
|
1382
1570
|
methodName: "Install",
|
|
1383
1571
|
service: exports.PackageManagerDesc,
|
|
@@ -1390,8 +1578,9 @@ exports.PackageManagerInstallDesc = {
|
|
|
1390
1578
|
},
|
|
1391
1579
|
responseType: {
|
|
1392
1580
|
deserializeBinary(data) {
|
|
1393
|
-
|
|
1394
|
-
|
|
1581
|
+
const value = empty_1.Empty.decode(data);
|
|
1582
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1583
|
+
return value;
|
|
1395
1584
|
} });
|
|
1396
1585
|
},
|
|
1397
1586
|
},
|
|
@@ -1408,8 +1597,9 @@ exports.PackageManagerUninstallDesc = {
|
|
|
1408
1597
|
},
|
|
1409
1598
|
responseType: {
|
|
1410
1599
|
deserializeBinary(data) {
|
|
1411
|
-
|
|
1412
|
-
|
|
1600
|
+
const value = empty_1.Empty.decode(data);
|
|
1601
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1602
|
+
return value;
|
|
1413
1603
|
} });
|
|
1414
1604
|
},
|
|
1415
1605
|
},
|
|
@@ -1426,8 +1616,9 @@ exports.PackageManagerPauseDesc = {
|
|
|
1426
1616
|
},
|
|
1427
1617
|
responseType: {
|
|
1428
1618
|
deserializeBinary(data) {
|
|
1429
|
-
|
|
1430
|
-
|
|
1619
|
+
const value = empty_1.Empty.decode(data);
|
|
1620
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1621
|
+
return value;
|
|
1431
1622
|
} });
|
|
1432
1623
|
},
|
|
1433
1624
|
},
|
|
@@ -1444,8 +1635,9 @@ exports.PackageManagerResumeDesc = {
|
|
|
1444
1635
|
},
|
|
1445
1636
|
responseType: {
|
|
1446
1637
|
deserializeBinary(data) {
|
|
1447
|
-
|
|
1448
|
-
|
|
1638
|
+
const value = empty_1.Empty.decode(data);
|
|
1639
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1640
|
+
return value;
|
|
1449
1641
|
} });
|
|
1450
1642
|
},
|
|
1451
1643
|
},
|
|
@@ -1462,8 +1654,9 @@ exports.PackageManagerClearCacheDesc = {
|
|
|
1462
1654
|
},
|
|
1463
1655
|
responseType: {
|
|
1464
1656
|
deserializeBinary(data) {
|
|
1465
|
-
|
|
1466
|
-
|
|
1657
|
+
const value = empty_1.Empty.decode(data);
|
|
1658
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1659
|
+
return value;
|
|
1467
1660
|
} });
|
|
1468
1661
|
},
|
|
1469
1662
|
},
|
|
@@ -1480,8 +1673,9 @@ exports.PackageManagerQueryApplicationDesc = {
|
|
|
1480
1673
|
},
|
|
1481
1674
|
responseType: {
|
|
1482
1675
|
deserializeBinary(data) {
|
|
1483
|
-
|
|
1484
|
-
|
|
1676
|
+
const value = exports.QueryApplicationResponse.decode(data);
|
|
1677
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1678
|
+
return value;
|
|
1485
1679
|
} });
|
|
1486
1680
|
},
|
|
1487
1681
|
},
|
|
@@ -1498,8 +1692,9 @@ exports.PackageManagerQueryAppStorageUsageDesc = {
|
|
|
1498
1692
|
},
|
|
1499
1693
|
responseType: {
|
|
1500
1694
|
deserializeBinary(data) {
|
|
1501
|
-
|
|
1502
|
-
|
|
1695
|
+
const value = exports.AppStorageUsage.decode(data);
|
|
1696
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1697
|
+
return value;
|
|
1503
1698
|
} });
|
|
1504
1699
|
},
|
|
1505
1700
|
},
|
|
@@ -1516,8 +1711,9 @@ exports.PackageManagerSetUserPermissionsDesc = {
|
|
|
1516
1711
|
},
|
|
1517
1712
|
responseType: {
|
|
1518
1713
|
deserializeBinary(data) {
|
|
1519
|
-
|
|
1520
|
-
|
|
1714
|
+
const value = empty_1.Empty.decode(data);
|
|
1715
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1716
|
+
return value;
|
|
1521
1717
|
} });
|
|
1522
1718
|
},
|
|
1523
1719
|
},
|
|
@@ -1534,8 +1730,9 @@ exports.PackageManagerGetUserPermissionsDesc = {
|
|
|
1534
1730
|
},
|
|
1535
1731
|
responseType: {
|
|
1536
1732
|
deserializeBinary(data) {
|
|
1537
|
-
|
|
1538
|
-
|
|
1733
|
+
const value = exports.UserPermission.decode(data);
|
|
1734
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1735
|
+
return value;
|
|
1539
1736
|
} });
|
|
1540
1737
|
},
|
|
1541
1738
|
},
|
|
@@ -1552,8 +1749,9 @@ exports.PackageManagerPauseAppDownloadDesc = {
|
|
|
1552
1749
|
},
|
|
1553
1750
|
responseType: {
|
|
1554
1751
|
deserializeBinary(data) {
|
|
1555
|
-
|
|
1556
|
-
|
|
1752
|
+
const value = empty_1.Empty.decode(data);
|
|
1753
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1754
|
+
return value;
|
|
1557
1755
|
} });
|
|
1558
1756
|
},
|
|
1559
1757
|
},
|
|
@@ -1570,8 +1768,9 @@ exports.PackageManagerGetActionURLDesc = {
|
|
|
1570
1768
|
},
|
|
1571
1769
|
responseType: {
|
|
1572
1770
|
deserializeBinary(data) {
|
|
1573
|
-
|
|
1574
|
-
|
|
1771
|
+
const value = exports.GetActionURLResponse.decode(data);
|
|
1772
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1773
|
+
return value;
|
|
1575
1774
|
} });
|
|
1576
1775
|
},
|
|
1577
1776
|
},
|
|
@@ -1588,8 +1787,9 @@ exports.PackageManagerListFileHandlerDesc = {
|
|
|
1588
1787
|
},
|
|
1589
1788
|
responseType: {
|
|
1590
1789
|
deserializeBinary(data) {
|
|
1591
|
-
|
|
1592
|
-
|
|
1790
|
+
const value = exports.ListFileHandlerResponse.decode(data);
|
|
1791
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1792
|
+
return value;
|
|
1593
1793
|
} });
|
|
1594
1794
|
},
|
|
1595
1795
|
},
|
|
@@ -1614,7 +1814,7 @@ class GrpcWebImpl {
|
|
|
1614
1814
|
debug: this.options.debug,
|
|
1615
1815
|
onEnd: function (response) {
|
|
1616
1816
|
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
1617
|
-
resolve(response.message);
|
|
1817
|
+
resolve(response.message.toObject());
|
|
1618
1818
|
}
|
|
1619
1819
|
else {
|
|
1620
1820
|
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
@@ -1626,20 +1826,24 @@ class GrpcWebImpl {
|
|
|
1626
1826
|
}
|
|
1627
1827
|
}
|
|
1628
1828
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
1629
|
-
var
|
|
1630
|
-
if (typeof globalThis !== "undefined")
|
|
1829
|
+
var tsProtoGlobalThis = (() => {
|
|
1830
|
+
if (typeof globalThis !== "undefined") {
|
|
1631
1831
|
return globalThis;
|
|
1632
|
-
|
|
1832
|
+
}
|
|
1833
|
+
if (typeof self !== "undefined") {
|
|
1633
1834
|
return self;
|
|
1634
|
-
|
|
1835
|
+
}
|
|
1836
|
+
if (typeof window !== "undefined") {
|
|
1635
1837
|
return window;
|
|
1636
|
-
|
|
1838
|
+
}
|
|
1839
|
+
if (typeof global !== "undefined") {
|
|
1637
1840
|
return global;
|
|
1841
|
+
}
|
|
1638
1842
|
throw "Unable to locate global object";
|
|
1639
1843
|
})();
|
|
1640
1844
|
function longToNumber(long) {
|
|
1641
1845
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
1642
|
-
throw new
|
|
1846
|
+
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1643
1847
|
}
|
|
1644
1848
|
return long.toNumber();
|
|
1645
1849
|
}
|
|
@@ -1653,7 +1857,7 @@ function isObject(value) {
|
|
|
1653
1857
|
function isSet(value) {
|
|
1654
1858
|
return value !== null && value !== undefined;
|
|
1655
1859
|
}
|
|
1656
|
-
class GrpcWebError extends Error {
|
|
1860
|
+
class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
1657
1861
|
constructor(message, code, metadata) {
|
|
1658
1862
|
super(message);
|
|
1659
1863
|
this.code = code;
|