@lazycatcloud/sdk 0.1.295 → 0.1.297
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/apk_shell.d.ts +2 -3
- package/dist/common/apk_shell.d.ts.map +1 -1
- package/dist/common/apk_shell.js +54 -67
- package/dist/common/apk_shell.js.map +1 -1
- package/dist/common/box.d.ts +2 -3
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +134 -113
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +2 -3
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +86 -91
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +2 -3
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +115 -112
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/file_handler.d.ts +2 -3
- package/dist/common/file_handler.d.ts.map +1 -1
- package/dist/common/file_handler.js +195 -162
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +2 -3
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +355 -273
- package/dist/common/filetrans.js.map +1 -1
- package/dist/common/gateway.d.ts +2 -3
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +87 -79
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/media_meta.d.ts +2 -3
- package/dist/common/media_meta.d.ts.map +1 -1
- package/dist/common/media_meta.js +81 -90
- package/dist/common/media_meta.js.map +1 -1
- package/dist/common/message.d.ts +2 -3
- package/dist/common/message.d.ts.map +1 -1
- package/dist/common/message.js +141 -128
- package/dist/common/message.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +2 -3
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +128 -124
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts +2 -3
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +69 -75
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +2 -3
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +133 -117
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts +2 -3
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +144 -129
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/extentions/app_common.d.ts.map +1 -1
- package/dist/extentions/app_common.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +724 -607
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.d.ts.map +1 -1
- package/dist/google/protobuf/empty.js +1 -1
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +13 -24
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/localdevice/client.d.ts +2 -3
- package/dist/localdevice/client.d.ts.map +1 -1
- package/dist/localdevice/client.js +22 -40
- package/dist/localdevice/client.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts +2 -3
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +74 -89
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/config.d.ts +2 -3
- package/dist/localdevice/config.d.ts.map +1 -1
- package/dist/localdevice/config.js +63 -65
- package/dist/localdevice/config.js.map +1 -1
- package/dist/localdevice/device.d.ts +8 -3
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +46 -46
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +2 -3
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +85 -83
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/local-launch.d.ts +2 -3
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +96 -90
- package/dist/localdevice/local-launch.js.map +1 -1
- package/dist/localdevice/network.d.ts +2 -3
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +19 -37
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts +2 -3
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +84 -88
- package/dist/localdevice/permission.js.map +1 -1
- package/dist/localdevice/photo.d.ts +2 -3
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +348 -280
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/localdevice/remote-input-method.d.ts +2 -3
- package/dist/localdevice/remote-input-method.d.ts.map +1 -1
- package/dist/localdevice/remote-input-method.js +52 -69
- package/dist/localdevice/remote-input-method.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/sys/OS_snapshot.d.ts +2 -3
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +177 -147
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +2 -3
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +66 -70
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/btled.d.ts +2 -3
- package/dist/sys/btled.d.ts.map +1 -1
- package/dist/sys/btled.js +70 -80
- package/dist/sys/btled.js.map +1 -1
- package/dist/sys/btrfs.d.ts +2 -3
- package/dist/sys/btrfs.d.ts.map +1 -1
- package/dist/sys/btrfs.js +80 -76
- package/dist/sys/btrfs.js.map +1 -1
- package/dist/sys/devopt.d.ts +2 -3
- package/dist/sys/devopt.d.ts.map +1 -1
- package/dist/sys/devopt.js +52 -58
- package/dist/sys/devopt.js.map +1 -1
- package/dist/sys/dirmon.d.ts +2 -3
- package/dist/sys/dirmon.d.ts.map +1 -1
- package/dist/sys/dirmon.js +41 -61
- package/dist/sys/dirmon.js.map +1 -1
- package/dist/sys/event.d.ts +2 -3
- package/dist/sys/event.d.ts.map +1 -1
- package/dist/sys/event.js +82 -87
- package/dist/sys/event.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +2 -3
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +155 -134
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +2 -3
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +44 -58
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/installer.d.ts +2 -3
- package/dist/sys/installer.d.ts.map +1 -1
- package/dist/sys/installer.js +99 -101
- package/dist/sys/installer.js.map +1 -1
- package/dist/sys/network_manager.d.ts +2 -3
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +144 -117
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +2 -3
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +313 -230
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +2 -3
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +358 -270
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +2 -3
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +88 -88
- package/dist/sys/snapd.js.map +1 -1
- package/dist/sys/version.d.ts +2 -3
- package/dist/sys/version.d.ts.map +1 -1
- package/dist/sys/version.js +15 -35
- package/dist/sys/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/lanforward/lanforward.d.ts +0 -99
- package/dist/lanforward/lanforward.d.ts.map +0 -1
- package/dist/lanforward/lanforward.js +0 -254
- package/dist/lanforward/lanforward.js.map +0 -1
- package/dist/ssdp/ssdp.d.ts +0 -113
- package/dist/ssdp/ssdp.d.ts.map +0 -1
- package/dist/ssdp/ssdp.js +0 -292
- package/dist/ssdp/ssdp.js.map +0 -1
- package/dist/sys/OS_daemon.d.ts +0 -111
- package/dist/sys/OS_daemon.d.ts.map +0 -1
- package/dist/sys/OS_daemon.js +0 -281
- package/dist/sys/OS_daemon.js.map +0 -1
- package/dist/sys/box-status.d.ts +0 -572
- package/dist/sys/box-status.d.ts.map +0 -1
- package/dist/sys/box-status.js +0 -911
- package/dist/sys/box-status.js.map +0 -1
|
@@ -184,19 +184,19 @@ exports.PkgURL = {
|
|
|
184
184
|
const tag = reader.uint32();
|
|
185
185
|
switch (tag >>> 3) {
|
|
186
186
|
case 1:
|
|
187
|
-
if (tag
|
|
187
|
+
if (tag !== 10) {
|
|
188
188
|
break;
|
|
189
189
|
}
|
|
190
190
|
message.url = reader.string();
|
|
191
191
|
continue;
|
|
192
192
|
case 2:
|
|
193
|
-
if (tag
|
|
193
|
+
if (tag !== 18) {
|
|
194
194
|
break;
|
|
195
195
|
}
|
|
196
196
|
message.sha256 = reader.string();
|
|
197
197
|
continue;
|
|
198
198
|
}
|
|
199
|
-
if ((tag & 7)
|
|
199
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
200
200
|
break;
|
|
201
201
|
}
|
|
202
202
|
reader.skipType(tag & 7);
|
|
@@ -205,14 +205,18 @@ exports.PkgURL = {
|
|
|
205
205
|
},
|
|
206
206
|
fromJSON(object) {
|
|
207
207
|
return {
|
|
208
|
-
url: isSet(object.url) ? String(object.url) : "",
|
|
209
|
-
sha256: isSet(object.sha256) ? String(object.sha256) : "",
|
|
208
|
+
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
209
|
+
sha256: isSet(object.sha256) ? globalThis.String(object.sha256) : "",
|
|
210
210
|
};
|
|
211
211
|
},
|
|
212
212
|
toJSON(message) {
|
|
213
213
|
const obj = {};
|
|
214
|
-
message.url !==
|
|
215
|
-
|
|
214
|
+
if (message.url !== "") {
|
|
215
|
+
obj.url = message.url;
|
|
216
|
+
}
|
|
217
|
+
if (message.sha256 !== "") {
|
|
218
|
+
obj.sha256 = message.sha256;
|
|
219
|
+
}
|
|
216
220
|
return obj;
|
|
217
221
|
},
|
|
218
222
|
create(base) {
|
|
@@ -253,31 +257,31 @@ exports.InstallRequest = {
|
|
|
253
257
|
const tag = reader.uint32();
|
|
254
258
|
switch (tag >>> 3) {
|
|
255
259
|
case 2:
|
|
256
|
-
if (tag
|
|
260
|
+
if (tag !== 18) {
|
|
257
261
|
break;
|
|
258
262
|
}
|
|
259
263
|
message.url = reader.string();
|
|
260
264
|
continue;
|
|
261
265
|
case 3:
|
|
262
|
-
if (tag
|
|
266
|
+
if (tag !== 26) {
|
|
263
267
|
break;
|
|
264
268
|
}
|
|
265
269
|
message.sha256 = reader.string();
|
|
266
270
|
continue;
|
|
267
271
|
case 1:
|
|
268
|
-
if (tag
|
|
272
|
+
if (tag !== 10) {
|
|
269
273
|
break;
|
|
270
274
|
}
|
|
271
275
|
message.appid = reader.string();
|
|
272
276
|
continue;
|
|
273
277
|
case 4:
|
|
274
|
-
if (tag
|
|
278
|
+
if (tag !== 34) {
|
|
275
279
|
break;
|
|
276
280
|
}
|
|
277
281
|
message.subdomain = reader.string();
|
|
278
282
|
continue;
|
|
279
283
|
}
|
|
280
|
-
if ((tag & 7)
|
|
284
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
281
285
|
break;
|
|
282
286
|
}
|
|
283
287
|
reader.skipType(tag & 7);
|
|
@@ -286,18 +290,26 @@ exports.InstallRequest = {
|
|
|
286
290
|
},
|
|
287
291
|
fromJSON(object) {
|
|
288
292
|
return {
|
|
289
|
-
url: isSet(object.url) ? String(object.url) : "",
|
|
290
|
-
sha256: isSet(object.sha256) ? String(object.sha256) : "",
|
|
291
|
-
appid: isSet(object.appid) ? String(object.appid) : undefined,
|
|
292
|
-
subdomain: isSet(object.subdomain) ? String(object.subdomain) : undefined,
|
|
293
|
+
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
294
|
+
sha256: isSet(object.sha256) ? globalThis.String(object.sha256) : "",
|
|
295
|
+
appid: isSet(object.appid) ? globalThis.String(object.appid) : undefined,
|
|
296
|
+
subdomain: isSet(object.subdomain) ? globalThis.String(object.subdomain) : undefined,
|
|
293
297
|
};
|
|
294
298
|
},
|
|
295
299
|
toJSON(message) {
|
|
296
300
|
const obj = {};
|
|
297
|
-
message.url !==
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
message.
|
|
301
|
+
if (message.url !== "") {
|
|
302
|
+
obj.url = message.url;
|
|
303
|
+
}
|
|
304
|
+
if (message.sha256 !== "") {
|
|
305
|
+
obj.sha256 = message.sha256;
|
|
306
|
+
}
|
|
307
|
+
if (message.appid !== undefined) {
|
|
308
|
+
obj.appid = message.appid;
|
|
309
|
+
}
|
|
310
|
+
if (message.subdomain !== undefined) {
|
|
311
|
+
obj.subdomain = message.subdomain;
|
|
312
|
+
}
|
|
301
313
|
return obj;
|
|
302
314
|
},
|
|
303
315
|
create(base) {
|
|
@@ -334,19 +346,19 @@ exports.UninstallRequest = {
|
|
|
334
346
|
const tag = reader.uint32();
|
|
335
347
|
switch (tag >>> 3) {
|
|
336
348
|
case 1:
|
|
337
|
-
if (tag
|
|
349
|
+
if (tag !== 10) {
|
|
338
350
|
break;
|
|
339
351
|
}
|
|
340
352
|
message.appid = reader.string();
|
|
341
353
|
continue;
|
|
342
354
|
case 2:
|
|
343
|
-
if (tag
|
|
355
|
+
if (tag !== 16) {
|
|
344
356
|
break;
|
|
345
357
|
}
|
|
346
358
|
message.clearData = reader.bool();
|
|
347
359
|
continue;
|
|
348
360
|
}
|
|
349
|
-
if ((tag & 7)
|
|
361
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
350
362
|
break;
|
|
351
363
|
}
|
|
352
364
|
reader.skipType(tag & 7);
|
|
@@ -355,14 +367,18 @@ exports.UninstallRequest = {
|
|
|
355
367
|
},
|
|
356
368
|
fromJSON(object) {
|
|
357
369
|
return {
|
|
358
|
-
appid: isSet(object.appid) ? String(object.appid) : "",
|
|
359
|
-
clearData: isSet(object.clearData) ? Boolean(object.clearData) : false,
|
|
370
|
+
appid: isSet(object.appid) ? globalThis.String(object.appid) : "",
|
|
371
|
+
clearData: isSet(object.clearData) ? globalThis.Boolean(object.clearData) : false,
|
|
360
372
|
};
|
|
361
373
|
},
|
|
362
374
|
toJSON(message) {
|
|
363
375
|
const obj = {};
|
|
364
|
-
message.appid !==
|
|
365
|
-
|
|
376
|
+
if (message.appid !== "") {
|
|
377
|
+
obj.appid = message.appid;
|
|
378
|
+
}
|
|
379
|
+
if (message.clearData === true) {
|
|
380
|
+
obj.clearData = message.clearData;
|
|
381
|
+
}
|
|
366
382
|
return obj;
|
|
367
383
|
},
|
|
368
384
|
create(base) {
|
|
@@ -397,19 +413,19 @@ exports.AppDownloadProgress = {
|
|
|
397
413
|
const tag = reader.uint32();
|
|
398
414
|
switch (tag >>> 3) {
|
|
399
415
|
case 1:
|
|
400
|
-
if (tag
|
|
416
|
+
if (tag !== 8) {
|
|
401
417
|
break;
|
|
402
418
|
}
|
|
403
419
|
message.current = longToNumber(reader.uint64());
|
|
404
420
|
continue;
|
|
405
421
|
case 2:
|
|
406
|
-
if (tag
|
|
422
|
+
if (tag !== 16) {
|
|
407
423
|
break;
|
|
408
424
|
}
|
|
409
425
|
message.total = longToNumber(reader.uint64());
|
|
410
426
|
continue;
|
|
411
427
|
}
|
|
412
|
-
if ((tag & 7)
|
|
428
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
413
429
|
break;
|
|
414
430
|
}
|
|
415
431
|
reader.skipType(tag & 7);
|
|
@@ -418,14 +434,18 @@ exports.AppDownloadProgress = {
|
|
|
418
434
|
},
|
|
419
435
|
fromJSON(object) {
|
|
420
436
|
return {
|
|
421
|
-
current: isSet(object.current) ? Number(object.current) : 0,
|
|
422
|
-
total: isSet(object.total) ? Number(object.total) : 0,
|
|
437
|
+
current: isSet(object.current) ? globalThis.Number(object.current) : 0,
|
|
438
|
+
total: isSet(object.total) ? globalThis.Number(object.total) : 0,
|
|
423
439
|
};
|
|
424
440
|
},
|
|
425
441
|
toJSON(message) {
|
|
426
442
|
const obj = {};
|
|
427
|
-
message.current !==
|
|
428
|
-
|
|
443
|
+
if (message.current !== 0) {
|
|
444
|
+
obj.current = Math.round(message.current);
|
|
445
|
+
}
|
|
446
|
+
if (message.total !== 0) {
|
|
447
|
+
obj.total = Math.round(message.total);
|
|
448
|
+
}
|
|
429
449
|
return obj;
|
|
430
450
|
},
|
|
431
451
|
create(base) {
|
|
@@ -503,79 +523,79 @@ exports.AppInfo = {
|
|
|
503
523
|
const tag = reader.uint32();
|
|
504
524
|
switch (tag >>> 3) {
|
|
505
525
|
case 1:
|
|
506
|
-
if (tag
|
|
526
|
+
if (tag !== 10) {
|
|
507
527
|
break;
|
|
508
528
|
}
|
|
509
529
|
message.appid = reader.string();
|
|
510
530
|
continue;
|
|
511
531
|
case 2:
|
|
512
|
-
if (tag
|
|
532
|
+
if (tag !== 16) {
|
|
513
533
|
break;
|
|
514
534
|
}
|
|
515
535
|
message.status = reader.int32();
|
|
516
536
|
continue;
|
|
517
537
|
case 12:
|
|
518
|
-
if (tag
|
|
538
|
+
if (tag !== 96) {
|
|
519
539
|
break;
|
|
520
540
|
}
|
|
521
541
|
message.instanceStatus = reader.int32();
|
|
522
542
|
continue;
|
|
523
543
|
case 3:
|
|
524
|
-
if (tag
|
|
544
|
+
if (tag !== 26) {
|
|
525
545
|
break;
|
|
526
546
|
}
|
|
527
547
|
message.version = reader.string();
|
|
528
548
|
continue;
|
|
529
549
|
case 4:
|
|
530
|
-
if (tag
|
|
550
|
+
if (tag !== 34) {
|
|
531
551
|
break;
|
|
532
552
|
}
|
|
533
553
|
message.title = reader.string();
|
|
534
554
|
continue;
|
|
535
555
|
case 5:
|
|
536
|
-
if (tag
|
|
556
|
+
if (tag !== 42) {
|
|
537
557
|
break;
|
|
538
558
|
}
|
|
539
559
|
message.description = reader.string();
|
|
540
560
|
continue;
|
|
541
561
|
case 6:
|
|
542
|
-
if (tag
|
|
562
|
+
if (tag !== 50) {
|
|
543
563
|
break;
|
|
544
564
|
}
|
|
545
565
|
message.icon = reader.string();
|
|
546
566
|
continue;
|
|
547
567
|
case 7:
|
|
548
|
-
if (tag
|
|
568
|
+
if (tag !== 58) {
|
|
549
569
|
break;
|
|
550
570
|
}
|
|
551
571
|
message.domain = reader.string();
|
|
552
572
|
continue;
|
|
553
573
|
case 8:
|
|
554
|
-
if (tag
|
|
574
|
+
if (tag !== 66) {
|
|
555
575
|
break;
|
|
556
576
|
}
|
|
557
577
|
message.downloadProgress = exports.AppDownloadProgress.decode(reader, reader.uint32());
|
|
558
578
|
continue;
|
|
559
579
|
case 9:
|
|
560
|
-
if (tag
|
|
580
|
+
if (tag !== 72) {
|
|
561
581
|
break;
|
|
562
582
|
}
|
|
563
583
|
message.builtin = reader.bool();
|
|
564
584
|
continue;
|
|
565
585
|
case 10:
|
|
566
|
-
if (tag
|
|
586
|
+
if (tag !== 82) {
|
|
567
587
|
break;
|
|
568
588
|
}
|
|
569
589
|
message.errorReason = reader.string();
|
|
570
590
|
continue;
|
|
571
591
|
case 11:
|
|
572
|
-
if (tag
|
|
592
|
+
if (tag !== 90) {
|
|
573
593
|
break;
|
|
574
594
|
}
|
|
575
595
|
message.unsupportedPlatforms.push(reader.string());
|
|
576
596
|
continue;
|
|
577
597
|
}
|
|
578
|
-
if ((tag & 7)
|
|
598
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
579
599
|
break;
|
|
580
600
|
}
|
|
581
601
|
reader.skipType(tag & 7);
|
|
@@ -584,44 +604,62 @@ exports.AppInfo = {
|
|
|
584
604
|
},
|
|
585
605
|
fromJSON(object) {
|
|
586
606
|
return {
|
|
587
|
-
appid: isSet(object.appid) ? String(object.appid) : "",
|
|
607
|
+
appid: isSet(object.appid) ? globalThis.String(object.appid) : "",
|
|
588
608
|
status: isSet(object.status) ? appStatusFromJSON(object.status) : 0,
|
|
589
609
|
instanceStatus: isSet(object.instanceStatus) ? instanceStatusFromJSON(object.instanceStatus) : 0,
|
|
590
|
-
version: isSet(object.version) ? String(object.version) : undefined,
|
|
591
|
-
title: isSet(object.title) ? String(object.title) : undefined,
|
|
592
|
-
description: isSet(object.description) ? String(object.description) : undefined,
|
|
593
|
-
icon: isSet(object.icon) ? String(object.icon) : undefined,
|
|
594
|
-
domain: isSet(object.domain) ? String(object.domain) : undefined,
|
|
610
|
+
version: isSet(object.version) ? globalThis.String(object.version) : undefined,
|
|
611
|
+
title: isSet(object.title) ? globalThis.String(object.title) : undefined,
|
|
612
|
+
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
613
|
+
icon: isSet(object.icon) ? globalThis.String(object.icon) : undefined,
|
|
614
|
+
domain: isSet(object.domain) ? globalThis.String(object.domain) : undefined,
|
|
595
615
|
downloadProgress: isSet(object.downloadProgress)
|
|
596
616
|
? exports.AppDownloadProgress.fromJSON(object.downloadProgress)
|
|
597
617
|
: undefined,
|
|
598
|
-
builtin: isSet(object.builtin) ? Boolean(object.builtin) : undefined,
|
|
599
|
-
errorReason: isSet(object.errorReason) ? String(object.errorReason) : undefined,
|
|
600
|
-
unsupportedPlatforms: Array.isArray(object === null || object === void 0 ? void 0 : object.unsupportedPlatforms)
|
|
601
|
-
? object.unsupportedPlatforms.map((e) => String(e))
|
|
618
|
+
builtin: isSet(object.builtin) ? globalThis.Boolean(object.builtin) : undefined,
|
|
619
|
+
errorReason: isSet(object.errorReason) ? globalThis.String(object.errorReason) : undefined,
|
|
620
|
+
unsupportedPlatforms: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.unsupportedPlatforms)
|
|
621
|
+
? object.unsupportedPlatforms.map((e) => globalThis.String(e))
|
|
602
622
|
: [],
|
|
603
623
|
};
|
|
604
624
|
},
|
|
605
625
|
toJSON(message) {
|
|
626
|
+
var _a;
|
|
606
627
|
const obj = {};
|
|
607
|
-
message.appid !==
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
message.
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
message.
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
message.
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
628
|
+
if (message.appid !== "") {
|
|
629
|
+
obj.appid = message.appid;
|
|
630
|
+
}
|
|
631
|
+
if (message.status !== 0) {
|
|
632
|
+
obj.status = appStatusToJSON(message.status);
|
|
633
|
+
}
|
|
634
|
+
if (message.instanceStatus !== 0) {
|
|
635
|
+
obj.instanceStatus = instanceStatusToJSON(message.instanceStatus);
|
|
636
|
+
}
|
|
637
|
+
if (message.version !== undefined) {
|
|
638
|
+
obj.version = message.version;
|
|
639
|
+
}
|
|
640
|
+
if (message.title !== undefined) {
|
|
641
|
+
obj.title = message.title;
|
|
642
|
+
}
|
|
643
|
+
if (message.description !== undefined) {
|
|
644
|
+
obj.description = message.description;
|
|
645
|
+
}
|
|
646
|
+
if (message.icon !== undefined) {
|
|
647
|
+
obj.icon = message.icon;
|
|
648
|
+
}
|
|
649
|
+
if (message.domain !== undefined) {
|
|
650
|
+
obj.domain = message.domain;
|
|
651
|
+
}
|
|
652
|
+
if (message.downloadProgress !== undefined) {
|
|
653
|
+
obj.downloadProgress = exports.AppDownloadProgress.toJSON(message.downloadProgress);
|
|
654
|
+
}
|
|
655
|
+
if (message.builtin !== undefined) {
|
|
656
|
+
obj.builtin = message.builtin;
|
|
657
|
+
}
|
|
658
|
+
if (message.errorReason !== undefined) {
|
|
659
|
+
obj.errorReason = message.errorReason;
|
|
660
|
+
}
|
|
661
|
+
if ((_a = message.unsupportedPlatforms) === null || _a === void 0 ? void 0 : _a.length) {
|
|
662
|
+
obj.unsupportedPlatforms = message.unsupportedPlatforms;
|
|
625
663
|
}
|
|
626
664
|
return obj;
|
|
627
665
|
},
|
|
@@ -666,13 +704,13 @@ exports.QueryApplicationRequest = {
|
|
|
666
704
|
const tag = reader.uint32();
|
|
667
705
|
switch (tag >>> 3) {
|
|
668
706
|
case 1:
|
|
669
|
-
if (tag
|
|
707
|
+
if (tag !== 10) {
|
|
670
708
|
break;
|
|
671
709
|
}
|
|
672
710
|
message.appidList.push(reader.string());
|
|
673
711
|
continue;
|
|
674
712
|
}
|
|
675
|
-
if ((tag & 7)
|
|
713
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
676
714
|
break;
|
|
677
715
|
}
|
|
678
716
|
reader.skipType(tag & 7);
|
|
@@ -680,15 +718,17 @@ exports.QueryApplicationRequest = {
|
|
|
680
718
|
return message;
|
|
681
719
|
},
|
|
682
720
|
fromJSON(object) {
|
|
683
|
-
return {
|
|
721
|
+
return {
|
|
722
|
+
appidList: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.appidList)
|
|
723
|
+
? object.appidList.map((e) => globalThis.String(e))
|
|
724
|
+
: [],
|
|
725
|
+
};
|
|
684
726
|
},
|
|
685
727
|
toJSON(message) {
|
|
728
|
+
var _a;
|
|
686
729
|
const obj = {};
|
|
687
|
-
if (message.appidList) {
|
|
688
|
-
obj.appidList = message.appidList
|
|
689
|
-
}
|
|
690
|
-
else {
|
|
691
|
-
obj.appidList = [];
|
|
730
|
+
if ((_a = message.appidList) === null || _a === void 0 ? void 0 : _a.length) {
|
|
731
|
+
obj.appidList = message.appidList;
|
|
692
732
|
}
|
|
693
733
|
return obj;
|
|
694
734
|
},
|
|
@@ -720,13 +760,13 @@ exports.QueryApplicationResponse = {
|
|
|
720
760
|
const tag = reader.uint32();
|
|
721
761
|
switch (tag >>> 3) {
|
|
722
762
|
case 1:
|
|
723
|
-
if (tag
|
|
763
|
+
if (tag !== 10) {
|
|
724
764
|
break;
|
|
725
765
|
}
|
|
726
766
|
message.infoList.push(exports.AppInfo.decode(reader, reader.uint32()));
|
|
727
767
|
continue;
|
|
728
768
|
}
|
|
729
|
-
if ((tag & 7)
|
|
769
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
730
770
|
break;
|
|
731
771
|
}
|
|
732
772
|
reader.skipType(tag & 7);
|
|
@@ -734,15 +774,15 @@ exports.QueryApplicationResponse = {
|
|
|
734
774
|
return message;
|
|
735
775
|
},
|
|
736
776
|
fromJSON(object) {
|
|
737
|
-
return {
|
|
777
|
+
return {
|
|
778
|
+
infoList: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.infoList) ? object.infoList.map((e) => exports.AppInfo.fromJSON(e)) : [],
|
|
779
|
+
};
|
|
738
780
|
},
|
|
739
781
|
toJSON(message) {
|
|
782
|
+
var _a;
|
|
740
783
|
const obj = {};
|
|
741
|
-
if (message.infoList) {
|
|
742
|
-
obj.infoList = message.infoList.map((e) =>
|
|
743
|
-
}
|
|
744
|
-
else {
|
|
745
|
-
obj.infoList = [];
|
|
784
|
+
if ((_a = message.infoList) === null || _a === void 0 ? void 0 : _a.length) {
|
|
785
|
+
obj.infoList = message.infoList.map((e) => exports.AppInfo.toJSON(e));
|
|
746
786
|
}
|
|
747
787
|
return obj;
|
|
748
788
|
},
|
|
@@ -800,49 +840,49 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
800
840
|
const tag = reader.uint32();
|
|
801
841
|
switch (tag >>> 3) {
|
|
802
842
|
case 1:
|
|
803
|
-
if (tag
|
|
843
|
+
if (tag !== 10) {
|
|
804
844
|
break;
|
|
805
845
|
}
|
|
806
846
|
message.appid = reader.string();
|
|
807
847
|
continue;
|
|
808
848
|
case 2:
|
|
809
|
-
if (tag
|
|
849
|
+
if (tag !== 16) {
|
|
810
850
|
break;
|
|
811
851
|
}
|
|
812
852
|
message.needPkg = reader.bool();
|
|
813
853
|
continue;
|
|
814
854
|
case 3:
|
|
815
|
-
if (tag
|
|
855
|
+
if (tag !== 24) {
|
|
816
856
|
break;
|
|
817
857
|
}
|
|
818
858
|
message.needData = reader.bool();
|
|
819
859
|
continue;
|
|
820
860
|
case 4:
|
|
821
|
-
if (tag
|
|
861
|
+
if (tag !== 32) {
|
|
822
862
|
break;
|
|
823
863
|
}
|
|
824
864
|
message.needCache = reader.bool();
|
|
825
865
|
continue;
|
|
826
866
|
case 5:
|
|
827
|
-
if (tag
|
|
867
|
+
if (tag !== 40) {
|
|
828
868
|
break;
|
|
829
869
|
}
|
|
830
870
|
message.needTmp = reader.bool();
|
|
831
871
|
continue;
|
|
832
872
|
case 6:
|
|
833
|
-
if (tag
|
|
873
|
+
if (tag !== 48) {
|
|
834
874
|
break;
|
|
835
875
|
}
|
|
836
876
|
message.needUserdata = reader.bool();
|
|
837
877
|
continue;
|
|
838
878
|
case 7:
|
|
839
|
-
if (tag
|
|
879
|
+
if (tag !== 56) {
|
|
840
880
|
break;
|
|
841
881
|
}
|
|
842
882
|
message.needImage = reader.bool();
|
|
843
883
|
continue;
|
|
844
884
|
}
|
|
845
|
-
if ((tag & 7)
|
|
885
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
846
886
|
break;
|
|
847
887
|
}
|
|
848
888
|
reader.skipType(tag & 7);
|
|
@@ -851,24 +891,38 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
851
891
|
},
|
|
852
892
|
fromJSON(object) {
|
|
853
893
|
return {
|
|
854
|
-
appid: isSet(object.appid) ? String(object.appid) : "",
|
|
855
|
-
needPkg: isSet(object.needPkg) ? Boolean(object.needPkg) : false,
|
|
856
|
-
needData: isSet(object.needData) ? Boolean(object.needData) : false,
|
|
857
|
-
needCache: isSet(object.needCache) ? Boolean(object.needCache) : false,
|
|
858
|
-
needTmp: isSet(object.needTmp) ? Boolean(object.needTmp) : false,
|
|
859
|
-
needUserdata: isSet(object.needUserdata) ? Boolean(object.needUserdata) : false,
|
|
860
|
-
needImage: isSet(object.needImage) ? Boolean(object.needImage) : false,
|
|
894
|
+
appid: isSet(object.appid) ? globalThis.String(object.appid) : "",
|
|
895
|
+
needPkg: isSet(object.needPkg) ? globalThis.Boolean(object.needPkg) : false,
|
|
896
|
+
needData: isSet(object.needData) ? globalThis.Boolean(object.needData) : false,
|
|
897
|
+
needCache: isSet(object.needCache) ? globalThis.Boolean(object.needCache) : false,
|
|
898
|
+
needTmp: isSet(object.needTmp) ? globalThis.Boolean(object.needTmp) : false,
|
|
899
|
+
needUserdata: isSet(object.needUserdata) ? globalThis.Boolean(object.needUserdata) : false,
|
|
900
|
+
needImage: isSet(object.needImage) ? globalThis.Boolean(object.needImage) : false,
|
|
861
901
|
};
|
|
862
902
|
},
|
|
863
903
|
toJSON(message) {
|
|
864
904
|
const obj = {};
|
|
865
|
-
message.appid !==
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
905
|
+
if (message.appid !== "") {
|
|
906
|
+
obj.appid = message.appid;
|
|
907
|
+
}
|
|
908
|
+
if (message.needPkg === true) {
|
|
909
|
+
obj.needPkg = message.needPkg;
|
|
910
|
+
}
|
|
911
|
+
if (message.needData === true) {
|
|
912
|
+
obj.needData = message.needData;
|
|
913
|
+
}
|
|
914
|
+
if (message.needCache === true) {
|
|
915
|
+
obj.needCache = message.needCache;
|
|
916
|
+
}
|
|
917
|
+
if (message.needTmp === true) {
|
|
918
|
+
obj.needTmp = message.needTmp;
|
|
919
|
+
}
|
|
920
|
+
if (message.needUserdata === true) {
|
|
921
|
+
obj.needUserdata = message.needUserdata;
|
|
922
|
+
}
|
|
923
|
+
if (message.needImage === true) {
|
|
924
|
+
obj.needImage = message.needImage;
|
|
925
|
+
}
|
|
872
926
|
return obj;
|
|
873
927
|
},
|
|
874
928
|
create(base) {
|
|
@@ -920,31 +974,31 @@ exports.AppStorageUsage = {
|
|
|
920
974
|
const tag = reader.uint32();
|
|
921
975
|
switch (tag >>> 3) {
|
|
922
976
|
case 1:
|
|
923
|
-
if (tag
|
|
977
|
+
if (tag !== 8) {
|
|
924
978
|
break;
|
|
925
979
|
}
|
|
926
980
|
message.pkg = longToNumber(reader.uint64());
|
|
927
981
|
continue;
|
|
928
982
|
case 2:
|
|
929
|
-
if (tag
|
|
983
|
+
if (tag !== 16) {
|
|
930
984
|
break;
|
|
931
985
|
}
|
|
932
986
|
message.data = longToNumber(reader.uint64());
|
|
933
987
|
continue;
|
|
934
988
|
case 3:
|
|
935
|
-
if (tag
|
|
989
|
+
if (tag !== 24) {
|
|
936
990
|
break;
|
|
937
991
|
}
|
|
938
992
|
message.cache = longToNumber(reader.uint64());
|
|
939
993
|
continue;
|
|
940
994
|
case 4:
|
|
941
|
-
if (tag
|
|
995
|
+
if (tag !== 32) {
|
|
942
996
|
break;
|
|
943
997
|
}
|
|
944
998
|
message.tmp = longToNumber(reader.uint64());
|
|
945
999
|
continue;
|
|
946
1000
|
case 5:
|
|
947
|
-
if (tag
|
|
1001
|
+
if (tag !== 42) {
|
|
948
1002
|
break;
|
|
949
1003
|
}
|
|
950
1004
|
const entry5 = exports.AppStorageUsage_UserdataEntry.decode(reader, reader.uint32());
|
|
@@ -953,13 +1007,13 @@ exports.AppStorageUsage = {
|
|
|
953
1007
|
}
|
|
954
1008
|
continue;
|
|
955
1009
|
case 6:
|
|
956
|
-
if (tag
|
|
1010
|
+
if (tag !== 48) {
|
|
957
1011
|
break;
|
|
958
1012
|
}
|
|
959
1013
|
message.image = longToNumber(reader.uint64());
|
|
960
1014
|
continue;
|
|
961
1015
|
}
|
|
962
|
-
if ((tag & 7)
|
|
1016
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
963
1017
|
break;
|
|
964
1018
|
}
|
|
965
1019
|
reader.skipType(tag & 7);
|
|
@@ -968,32 +1022,45 @@ exports.AppStorageUsage = {
|
|
|
968
1022
|
},
|
|
969
1023
|
fromJSON(object) {
|
|
970
1024
|
return {
|
|
971
|
-
pkg: isSet(object.pkg) ? Number(object.pkg) : 0,
|
|
972
|
-
data: isSet(object.data) ? Number(object.data) : 0,
|
|
973
|
-
cache: isSet(object.cache) ? Number(object.cache) : 0,
|
|
974
|
-
tmp: isSet(object.tmp) ? Number(object.tmp) : 0,
|
|
1025
|
+
pkg: isSet(object.pkg) ? globalThis.Number(object.pkg) : 0,
|
|
1026
|
+
data: isSet(object.data) ? globalThis.Number(object.data) : 0,
|
|
1027
|
+
cache: isSet(object.cache) ? globalThis.Number(object.cache) : 0,
|
|
1028
|
+
tmp: isSet(object.tmp) ? globalThis.Number(object.tmp) : 0,
|
|
975
1029
|
userdata: isObject(object.userdata)
|
|
976
1030
|
? Object.entries(object.userdata).reduce((acc, [key, value]) => {
|
|
977
1031
|
acc[key] = Number(value);
|
|
978
1032
|
return acc;
|
|
979
1033
|
}, {})
|
|
980
1034
|
: {},
|
|
981
|
-
image: isSet(object.image) ? Number(object.image) : 0,
|
|
1035
|
+
image: isSet(object.image) ? globalThis.Number(object.image) : 0,
|
|
982
1036
|
};
|
|
983
1037
|
},
|
|
984
1038
|
toJSON(message) {
|
|
985
1039
|
const obj = {};
|
|
986
|
-
message.pkg !==
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
message.
|
|
990
|
-
|
|
1040
|
+
if (message.pkg !== 0) {
|
|
1041
|
+
obj.pkg = Math.round(message.pkg);
|
|
1042
|
+
}
|
|
1043
|
+
if (message.data !== 0) {
|
|
1044
|
+
obj.data = Math.round(message.data);
|
|
1045
|
+
}
|
|
1046
|
+
if (message.cache !== 0) {
|
|
1047
|
+
obj.cache = Math.round(message.cache);
|
|
1048
|
+
}
|
|
1049
|
+
if (message.tmp !== 0) {
|
|
1050
|
+
obj.tmp = Math.round(message.tmp);
|
|
1051
|
+
}
|
|
991
1052
|
if (message.userdata) {
|
|
992
|
-
Object.entries(message.userdata)
|
|
993
|
-
|
|
994
|
-
|
|
1053
|
+
const entries = Object.entries(message.userdata);
|
|
1054
|
+
if (entries.length > 0) {
|
|
1055
|
+
obj.userdata = {};
|
|
1056
|
+
entries.forEach(([k, v]) => {
|
|
1057
|
+
obj.userdata[k] = Math.round(v);
|
|
1058
|
+
});
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
if (message.image !== 0) {
|
|
1062
|
+
obj.image = Math.round(message.image);
|
|
995
1063
|
}
|
|
996
|
-
message.image !== undefined && (obj.image = Math.round(message.image));
|
|
997
1064
|
return obj;
|
|
998
1065
|
},
|
|
999
1066
|
create(base) {
|
|
@@ -1008,7 +1075,7 @@ exports.AppStorageUsage = {
|
|
|
1008
1075
|
message.tmp = (_d = object.tmp) !== null && _d !== void 0 ? _d : 0;
|
|
1009
1076
|
message.userdata = Object.entries((_e = object.userdata) !== null && _e !== void 0 ? _e : {}).reduce((acc, [key, value]) => {
|
|
1010
1077
|
if (value !== undefined) {
|
|
1011
|
-
acc[key] = Number(value);
|
|
1078
|
+
acc[key] = globalThis.Number(value);
|
|
1012
1079
|
}
|
|
1013
1080
|
return acc;
|
|
1014
1081
|
}, {});
|
|
@@ -1037,19 +1104,19 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
1037
1104
|
const tag = reader.uint32();
|
|
1038
1105
|
switch (tag >>> 3) {
|
|
1039
1106
|
case 1:
|
|
1040
|
-
if (tag
|
|
1107
|
+
if (tag !== 10) {
|
|
1041
1108
|
break;
|
|
1042
1109
|
}
|
|
1043
1110
|
message.key = reader.string();
|
|
1044
1111
|
continue;
|
|
1045
1112
|
case 2:
|
|
1046
|
-
if (tag
|
|
1113
|
+
if (tag !== 16) {
|
|
1047
1114
|
break;
|
|
1048
1115
|
}
|
|
1049
1116
|
message.value = longToNumber(reader.uint64());
|
|
1050
1117
|
continue;
|
|
1051
1118
|
}
|
|
1052
|
-
if ((tag & 7)
|
|
1119
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1053
1120
|
break;
|
|
1054
1121
|
}
|
|
1055
1122
|
reader.skipType(tag & 7);
|
|
@@ -1057,12 +1124,19 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
1057
1124
|
return message;
|
|
1058
1125
|
},
|
|
1059
1126
|
fromJSON(object) {
|
|
1060
|
-
return {
|
|
1127
|
+
return {
|
|
1128
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
1129
|
+
value: isSet(object.value) ? globalThis.Number(object.value) : 0,
|
|
1130
|
+
};
|
|
1061
1131
|
},
|
|
1062
1132
|
toJSON(message) {
|
|
1063
1133
|
const obj = {};
|
|
1064
|
-
message.key !==
|
|
1065
|
-
|
|
1134
|
+
if (message.key !== "") {
|
|
1135
|
+
obj.key = message.key;
|
|
1136
|
+
}
|
|
1137
|
+
if (message.value !== 0) {
|
|
1138
|
+
obj.value = Math.round(message.value);
|
|
1139
|
+
}
|
|
1066
1140
|
return obj;
|
|
1067
1141
|
},
|
|
1068
1142
|
create(base) {
|
|
@@ -1097,19 +1171,19 @@ exports.UserPermission = {
|
|
|
1097
1171
|
const tag = reader.uint32();
|
|
1098
1172
|
switch (tag >>> 3) {
|
|
1099
1173
|
case 1:
|
|
1100
|
-
if (tag
|
|
1174
|
+
if (tag !== 10) {
|
|
1101
1175
|
break;
|
|
1102
1176
|
}
|
|
1103
1177
|
message.uid = reader.string();
|
|
1104
1178
|
continue;
|
|
1105
1179
|
case 2:
|
|
1106
|
-
if (tag
|
|
1180
|
+
if (tag !== 16) {
|
|
1107
1181
|
break;
|
|
1108
1182
|
}
|
|
1109
1183
|
message.allowInstallApp = reader.bool();
|
|
1110
1184
|
continue;
|
|
1111
1185
|
}
|
|
1112
|
-
if ((tag & 7)
|
|
1186
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1113
1187
|
break;
|
|
1114
1188
|
}
|
|
1115
1189
|
reader.skipType(tag & 7);
|
|
@@ -1118,14 +1192,18 @@ exports.UserPermission = {
|
|
|
1118
1192
|
},
|
|
1119
1193
|
fromJSON(object) {
|
|
1120
1194
|
return {
|
|
1121
|
-
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
1122
|
-
allowInstallApp: isSet(object.allowInstallApp) ? Boolean(object.allowInstallApp) : false,
|
|
1195
|
+
uid: isSet(object.uid) ? globalThis.String(object.uid) : "",
|
|
1196
|
+
allowInstallApp: isSet(object.allowInstallApp) ? globalThis.Boolean(object.allowInstallApp) : false,
|
|
1123
1197
|
};
|
|
1124
1198
|
},
|
|
1125
1199
|
toJSON(message) {
|
|
1126
1200
|
const obj = {};
|
|
1127
|
-
message.uid !==
|
|
1128
|
-
|
|
1201
|
+
if (message.uid !== "") {
|
|
1202
|
+
obj.uid = message.uid;
|
|
1203
|
+
}
|
|
1204
|
+
if (message.allowInstallApp === true) {
|
|
1205
|
+
obj.allowInstallApp = message.allowInstallApp;
|
|
1206
|
+
}
|
|
1129
1207
|
return obj;
|
|
1130
1208
|
},
|
|
1131
1209
|
create(base) {
|
|
@@ -1157,13 +1235,13 @@ exports.GetUserPermissionsRequest = {
|
|
|
1157
1235
|
const tag = reader.uint32();
|
|
1158
1236
|
switch (tag >>> 3) {
|
|
1159
1237
|
case 1:
|
|
1160
|
-
if (tag
|
|
1238
|
+
if (tag !== 10) {
|
|
1161
1239
|
break;
|
|
1162
1240
|
}
|
|
1163
1241
|
message.uid = reader.string();
|
|
1164
1242
|
continue;
|
|
1165
1243
|
}
|
|
1166
|
-
if ((tag & 7)
|
|
1244
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1167
1245
|
break;
|
|
1168
1246
|
}
|
|
1169
1247
|
reader.skipType(tag & 7);
|
|
@@ -1171,11 +1249,13 @@ exports.GetUserPermissionsRequest = {
|
|
|
1171
1249
|
return message;
|
|
1172
1250
|
},
|
|
1173
1251
|
fromJSON(object) {
|
|
1174
|
-
return { uid: isSet(object.uid) ? String(object.uid) : "" };
|
|
1252
|
+
return { uid: isSet(object.uid) ? globalThis.String(object.uid) : "" };
|
|
1175
1253
|
},
|
|
1176
1254
|
toJSON(message) {
|
|
1177
1255
|
const obj = {};
|
|
1178
|
-
message.uid !==
|
|
1256
|
+
if (message.uid !== "") {
|
|
1257
|
+
obj.uid = message.uid;
|
|
1258
|
+
}
|
|
1179
1259
|
return obj;
|
|
1180
1260
|
},
|
|
1181
1261
|
create(base) {
|
|
@@ -1206,13 +1286,13 @@ exports.Appid = {
|
|
|
1206
1286
|
const tag = reader.uint32();
|
|
1207
1287
|
switch (tag >>> 3) {
|
|
1208
1288
|
case 1:
|
|
1209
|
-
if (tag
|
|
1289
|
+
if (tag !== 10) {
|
|
1210
1290
|
break;
|
|
1211
1291
|
}
|
|
1212
1292
|
message.appid = reader.string();
|
|
1213
1293
|
continue;
|
|
1214
1294
|
}
|
|
1215
|
-
if ((tag & 7)
|
|
1295
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1216
1296
|
break;
|
|
1217
1297
|
}
|
|
1218
1298
|
reader.skipType(tag & 7);
|
|
@@ -1220,11 +1300,13 @@ exports.Appid = {
|
|
|
1220
1300
|
return message;
|
|
1221
1301
|
},
|
|
1222
1302
|
fromJSON(object) {
|
|
1223
|
-
return { appid: isSet(object.appid) ? String(object.appid) : "" };
|
|
1303
|
+
return { appid: isSet(object.appid) ? globalThis.String(object.appid) : "" };
|
|
1224
1304
|
},
|
|
1225
1305
|
toJSON(message) {
|
|
1226
1306
|
const obj = {};
|
|
1227
|
-
message.appid !==
|
|
1307
|
+
if (message.appid !== "") {
|
|
1308
|
+
obj.appid = message.appid;
|
|
1309
|
+
}
|
|
1228
1310
|
return obj;
|
|
1229
1311
|
},
|
|
1230
1312
|
create(base) {
|
|
@@ -1261,25 +1343,25 @@ exports.GetActionURLRequest = {
|
|
|
1261
1343
|
const tag = reader.uint32();
|
|
1262
1344
|
switch (tag >>> 3) {
|
|
1263
1345
|
case 1:
|
|
1264
|
-
if (tag
|
|
1346
|
+
if (tag !== 10) {
|
|
1265
1347
|
break;
|
|
1266
1348
|
}
|
|
1267
1349
|
message.path = reader.string();
|
|
1268
1350
|
continue;
|
|
1269
1351
|
case 2:
|
|
1270
|
-
if (tag
|
|
1352
|
+
if (tag !== 18) {
|
|
1271
1353
|
break;
|
|
1272
1354
|
}
|
|
1273
1355
|
message.appid = reader.string();
|
|
1274
1356
|
continue;
|
|
1275
1357
|
case 3:
|
|
1276
|
-
if (tag
|
|
1358
|
+
if (tag !== 24) {
|
|
1277
1359
|
break;
|
|
1278
1360
|
}
|
|
1279
1361
|
message.action = reader.int32();
|
|
1280
1362
|
continue;
|
|
1281
1363
|
}
|
|
1282
|
-
if ((tag & 7)
|
|
1364
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1283
1365
|
break;
|
|
1284
1366
|
}
|
|
1285
1367
|
reader.skipType(tag & 7);
|
|
@@ -1288,16 +1370,22 @@ exports.GetActionURLRequest = {
|
|
|
1288
1370
|
},
|
|
1289
1371
|
fromJSON(object) {
|
|
1290
1372
|
return {
|
|
1291
|
-
path: isSet(object.path) ? String(object.path) : "",
|
|
1292
|
-
appid: isSet(object.appid) ? String(object.appid) : "",
|
|
1373
|
+
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
1374
|
+
appid: isSet(object.appid) ? globalThis.String(object.appid) : "",
|
|
1293
1375
|
action: isSet(object.action) ? actionFromJSON(object.action) : 0,
|
|
1294
1376
|
};
|
|
1295
1377
|
},
|
|
1296
1378
|
toJSON(message) {
|
|
1297
1379
|
const obj = {};
|
|
1298
|
-
message.path !==
|
|
1299
|
-
|
|
1300
|
-
|
|
1380
|
+
if (message.path !== "") {
|
|
1381
|
+
obj.path = message.path;
|
|
1382
|
+
}
|
|
1383
|
+
if (message.appid !== "") {
|
|
1384
|
+
obj.appid = message.appid;
|
|
1385
|
+
}
|
|
1386
|
+
if (message.action !== 0) {
|
|
1387
|
+
obj.action = actionToJSON(message.action);
|
|
1388
|
+
}
|
|
1301
1389
|
return obj;
|
|
1302
1390
|
},
|
|
1303
1391
|
create(base) {
|
|
@@ -1330,13 +1418,13 @@ exports.GetActionURLResponse = {
|
|
|
1330
1418
|
const tag = reader.uint32();
|
|
1331
1419
|
switch (tag >>> 3) {
|
|
1332
1420
|
case 1:
|
|
1333
|
-
if (tag
|
|
1421
|
+
if (tag !== 10) {
|
|
1334
1422
|
break;
|
|
1335
1423
|
}
|
|
1336
1424
|
message.url = reader.string();
|
|
1337
1425
|
continue;
|
|
1338
1426
|
}
|
|
1339
|
-
if ((tag & 7)
|
|
1427
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1340
1428
|
break;
|
|
1341
1429
|
}
|
|
1342
1430
|
reader.skipType(tag & 7);
|
|
@@ -1344,11 +1432,13 @@ exports.GetActionURLResponse = {
|
|
|
1344
1432
|
return message;
|
|
1345
1433
|
},
|
|
1346
1434
|
fromJSON(object) {
|
|
1347
|
-
return { url: isSet(object.url) ? String(object.url) : "" };
|
|
1435
|
+
return { url: isSet(object.url) ? globalThis.String(object.url) : "" };
|
|
1348
1436
|
},
|
|
1349
1437
|
toJSON(message) {
|
|
1350
1438
|
const obj = {};
|
|
1351
|
-
message.url !==
|
|
1439
|
+
if (message.url !== "") {
|
|
1440
|
+
obj.url = message.url;
|
|
1441
|
+
}
|
|
1352
1442
|
return obj;
|
|
1353
1443
|
},
|
|
1354
1444
|
create(base) {
|
|
@@ -1379,13 +1469,13 @@ exports.ListFileHandlerRequest = {
|
|
|
1379
1469
|
const tag = reader.uint32();
|
|
1380
1470
|
switch (tag >>> 3) {
|
|
1381
1471
|
case 1:
|
|
1382
|
-
if (tag
|
|
1472
|
+
if (tag !== 10) {
|
|
1383
1473
|
break;
|
|
1384
1474
|
}
|
|
1385
1475
|
message.mimetype = reader.string();
|
|
1386
1476
|
continue;
|
|
1387
1477
|
}
|
|
1388
|
-
if ((tag & 7)
|
|
1478
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1389
1479
|
break;
|
|
1390
1480
|
}
|
|
1391
1481
|
reader.skipType(tag & 7);
|
|
@@ -1393,11 +1483,13 @@ exports.ListFileHandlerRequest = {
|
|
|
1393
1483
|
return message;
|
|
1394
1484
|
},
|
|
1395
1485
|
fromJSON(object) {
|
|
1396
|
-
return { mimetype: isSet(object.mimetype) ? String(object.mimetype) : "" };
|
|
1486
|
+
return { mimetype: isSet(object.mimetype) ? globalThis.String(object.mimetype) : "" };
|
|
1397
1487
|
},
|
|
1398
1488
|
toJSON(message) {
|
|
1399
1489
|
const obj = {};
|
|
1400
|
-
message.mimetype !==
|
|
1490
|
+
if (message.mimetype !== "") {
|
|
1491
|
+
obj.mimetype = message.mimetype;
|
|
1492
|
+
}
|
|
1401
1493
|
return obj;
|
|
1402
1494
|
},
|
|
1403
1495
|
create(base) {
|
|
@@ -1434,25 +1526,25 @@ exports.FileHandlerInfo = {
|
|
|
1434
1526
|
const tag = reader.uint32();
|
|
1435
1527
|
switch (tag >>> 3) {
|
|
1436
1528
|
case 1:
|
|
1437
|
-
if (tag
|
|
1529
|
+
if (tag !== 10) {
|
|
1438
1530
|
break;
|
|
1439
1531
|
}
|
|
1440
1532
|
message.appid = reader.string();
|
|
1441
1533
|
continue;
|
|
1442
1534
|
case 2:
|
|
1443
|
-
if (tag
|
|
1535
|
+
if (tag !== 18) {
|
|
1444
1536
|
break;
|
|
1445
1537
|
}
|
|
1446
1538
|
message.title = reader.string();
|
|
1447
1539
|
continue;
|
|
1448
1540
|
case 3:
|
|
1449
|
-
if (tag
|
|
1541
|
+
if (tag !== 26) {
|
|
1450
1542
|
break;
|
|
1451
1543
|
}
|
|
1452
1544
|
message.icon = reader.string();
|
|
1453
1545
|
continue;
|
|
1454
1546
|
}
|
|
1455
|
-
if ((tag & 7)
|
|
1547
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1456
1548
|
break;
|
|
1457
1549
|
}
|
|
1458
1550
|
reader.skipType(tag & 7);
|
|
@@ -1461,16 +1553,22 @@ exports.FileHandlerInfo = {
|
|
|
1461
1553
|
},
|
|
1462
1554
|
fromJSON(object) {
|
|
1463
1555
|
return {
|
|
1464
|
-
appid: isSet(object.appid) ? String(object.appid) : "",
|
|
1465
|
-
title: isSet(object.title) ? String(object.title) : "",
|
|
1466
|
-
icon: isSet(object.icon) ? String(object.icon) : "",
|
|
1556
|
+
appid: isSet(object.appid) ? globalThis.String(object.appid) : "",
|
|
1557
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
1558
|
+
icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
|
|
1467
1559
|
};
|
|
1468
1560
|
},
|
|
1469
1561
|
toJSON(message) {
|
|
1470
1562
|
const obj = {};
|
|
1471
|
-
message.appid !==
|
|
1472
|
-
|
|
1473
|
-
|
|
1563
|
+
if (message.appid !== "") {
|
|
1564
|
+
obj.appid = message.appid;
|
|
1565
|
+
}
|
|
1566
|
+
if (message.title !== "") {
|
|
1567
|
+
obj.title = message.title;
|
|
1568
|
+
}
|
|
1569
|
+
if (message.icon !== "") {
|
|
1570
|
+
obj.icon = message.icon;
|
|
1571
|
+
}
|
|
1474
1572
|
return obj;
|
|
1475
1573
|
},
|
|
1476
1574
|
create(base) {
|
|
@@ -1503,13 +1601,13 @@ exports.ListFileHandlerResponse = {
|
|
|
1503
1601
|
const tag = reader.uint32();
|
|
1504
1602
|
switch (tag >>> 3) {
|
|
1505
1603
|
case 1:
|
|
1506
|
-
if (tag
|
|
1604
|
+
if (tag !== 10) {
|
|
1507
1605
|
break;
|
|
1508
1606
|
}
|
|
1509
1607
|
message.infoList.push(exports.FileHandlerInfo.decode(reader, reader.uint32()));
|
|
1510
1608
|
continue;
|
|
1511
1609
|
}
|
|
1512
|
-
if ((tag & 7)
|
|
1610
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1513
1611
|
break;
|
|
1514
1612
|
}
|
|
1515
1613
|
reader.skipType(tag & 7);
|
|
@@ -1518,16 +1616,16 @@ exports.ListFileHandlerResponse = {
|
|
|
1518
1616
|
},
|
|
1519
1617
|
fromJSON(object) {
|
|
1520
1618
|
return {
|
|
1521
|
-
infoList: Array.isArray(object === null || object === void 0 ? void 0 : object.infoList)
|
|
1619
|
+
infoList: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.infoList)
|
|
1620
|
+
? object.infoList.map((e) => exports.FileHandlerInfo.fromJSON(e))
|
|
1621
|
+
: [],
|
|
1522
1622
|
};
|
|
1523
1623
|
},
|
|
1524
1624
|
toJSON(message) {
|
|
1625
|
+
var _a;
|
|
1525
1626
|
const obj = {};
|
|
1526
|
-
if (message.infoList) {
|
|
1527
|
-
obj.infoList = message.infoList.map((e) =>
|
|
1528
|
-
}
|
|
1529
|
-
else {
|
|
1530
|
-
obj.infoList = [];
|
|
1627
|
+
if ((_a = message.infoList) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1628
|
+
obj.infoList = message.infoList.map((e) => exports.FileHandlerInfo.toJSON(e));
|
|
1531
1629
|
}
|
|
1532
1630
|
return obj;
|
|
1533
1631
|
},
|
|
@@ -1562,19 +1660,19 @@ exports.AppInstance = {
|
|
|
1562
1660
|
const tag = reader.uint32();
|
|
1563
1661
|
switch (tag >>> 3) {
|
|
1564
1662
|
case 1:
|
|
1565
|
-
if (tag
|
|
1663
|
+
if (tag !== 10) {
|
|
1566
1664
|
break;
|
|
1567
1665
|
}
|
|
1568
1666
|
message.appid = reader.string();
|
|
1569
1667
|
continue;
|
|
1570
1668
|
case 2:
|
|
1571
|
-
if (tag
|
|
1669
|
+
if (tag !== 18) {
|
|
1572
1670
|
break;
|
|
1573
1671
|
}
|
|
1574
1672
|
message.uid = reader.string();
|
|
1575
1673
|
continue;
|
|
1576
1674
|
}
|
|
1577
|
-
if ((tag & 7)
|
|
1675
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1578
1676
|
break;
|
|
1579
1677
|
}
|
|
1580
1678
|
reader.skipType(tag & 7);
|
|
@@ -1582,12 +1680,19 @@ exports.AppInstance = {
|
|
|
1582
1680
|
return message;
|
|
1583
1681
|
},
|
|
1584
1682
|
fromJSON(object) {
|
|
1585
|
-
return {
|
|
1683
|
+
return {
|
|
1684
|
+
appid: isSet(object.appid) ? globalThis.String(object.appid) : "",
|
|
1685
|
+
uid: isSet(object.uid) ? globalThis.String(object.uid) : "",
|
|
1686
|
+
};
|
|
1586
1687
|
},
|
|
1587
1688
|
toJSON(message) {
|
|
1588
1689
|
const obj = {};
|
|
1589
|
-
message.appid !==
|
|
1590
|
-
|
|
1690
|
+
if (message.appid !== "") {
|
|
1691
|
+
obj.appid = message.appid;
|
|
1692
|
+
}
|
|
1693
|
+
if (message.uid !== "") {
|
|
1694
|
+
obj.uid = message.uid;
|
|
1695
|
+
}
|
|
1591
1696
|
return obj;
|
|
1592
1697
|
},
|
|
1593
1698
|
create(base) {
|
|
@@ -1894,15 +1999,10 @@ class GrpcWebImpl {
|
|
|
1894
1999
|
const request = Object.assign(Object.assign({}, _request), methodDesc.requestType);
|
|
1895
2000
|
const maybeCombinedMetadata = metadata && this.options.metadata
|
|
1896
2001
|
? new browser_headers_1.BrowserHeaders(Object.assign(Object.assign({}, (_a = this.options) === null || _a === void 0 ? void 0 : _a.metadata.headersMap), metadata === null || metadata === void 0 ? void 0 : metadata.headersMap))
|
|
1897
|
-
: metadata
|
|
2002
|
+
: metadata !== null && metadata !== void 0 ? metadata : this.options.metadata;
|
|
1898
2003
|
return new Promise((resolve, reject) => {
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
host: this.host,
|
|
1902
|
-
metadata: maybeCombinedMetadata,
|
|
1903
|
-
transport: this.options.transport,
|
|
1904
|
-
debug: this.options.debug,
|
|
1905
|
-
onEnd: function (response) {
|
|
2004
|
+
var _a;
|
|
2005
|
+
const client = grpc_web_1.grpc.unary(methodDesc, Object.assign(Object.assign({ request, host: this.host, metadata: maybeCombinedMetadata !== null && maybeCombinedMetadata !== void 0 ? maybeCombinedMetadata : {} }, (this.options.transport !== undefined ? { transport: this.options.transport } : {})), { debug: (_a = this.options.debug) !== null && _a !== void 0 ? _a : false, onEnd: function (response) {
|
|
1906
2006
|
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
1907
2007
|
resolve(response.message.toObject());
|
|
1908
2008
|
}
|
|
@@ -1910,37 +2010,20 @@ class GrpcWebImpl {
|
|
|
1910
2010
|
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
1911
2011
|
reject(err);
|
|
1912
2012
|
}
|
|
1913
|
-
}
|
|
1914
|
-
});
|
|
1915
|
-
const abortHandler = () => {
|
|
1916
|
-
client.close();
|
|
1917
|
-
reject(new Error("Aborted"));
|
|
1918
|
-
};
|
|
2013
|
+
} }));
|
|
1919
2014
|
if (abortSignal) {
|
|
1920
|
-
abortSignal.addEventListener("abort",
|
|
2015
|
+
abortSignal.addEventListener("abort", () => {
|
|
2016
|
+
client.close();
|
|
2017
|
+
reject(abortSignal.reason);
|
|
2018
|
+
});
|
|
1921
2019
|
}
|
|
1922
2020
|
});
|
|
1923
2021
|
}
|
|
1924
2022
|
}
|
|
1925
2023
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
1926
|
-
var tsProtoGlobalThis = (() => {
|
|
1927
|
-
if (typeof globalThis !== "undefined") {
|
|
1928
|
-
return globalThis;
|
|
1929
|
-
}
|
|
1930
|
-
if (typeof self !== "undefined") {
|
|
1931
|
-
return self;
|
|
1932
|
-
}
|
|
1933
|
-
if (typeof window !== "undefined") {
|
|
1934
|
-
return window;
|
|
1935
|
-
}
|
|
1936
|
-
if (typeof global !== "undefined") {
|
|
1937
|
-
return global;
|
|
1938
|
-
}
|
|
1939
|
-
throw "Unable to locate global object";
|
|
1940
|
-
})();
|
|
1941
2024
|
function longToNumber(long) {
|
|
1942
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
1943
|
-
throw new
|
|
2025
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
2026
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1944
2027
|
}
|
|
1945
2028
|
return long.toNumber();
|
|
1946
2029
|
}
|
|
@@ -1954,7 +2037,7 @@ function isObject(value) {
|
|
|
1954
2037
|
function isSet(value) {
|
|
1955
2038
|
return value !== null && value !== undefined;
|
|
1956
2039
|
}
|
|
1957
|
-
class GrpcWebError extends
|
|
2040
|
+
class GrpcWebError extends globalThis.Error {
|
|
1958
2041
|
constructor(message, code, metadata) {
|
|
1959
2042
|
super(message);
|
|
1960
2043
|
this.code = code;
|