@lazycatcloud/sdk 0.1.206 → 0.1.208
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 +32 -10
- package/dist/common/apk_shell.d.ts.map +1 -1
- package/dist/common/apk_shell.js +78 -52
- package/dist/common/apk_shell.js.map +1 -1
- package/dist/common/box.d.ts +127 -16
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +144 -65
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +38 -10
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +105 -57
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +101 -14
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +134 -67
- 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 +107 -46
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +959 -60
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +472 -193
- package/dist/common/filetrans.js.map +1 -1
- package/dist/common/gateway.d.ts +60 -14
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +130 -53
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/media_meta.d.ts +27 -8
- package/dist/common/media_meta.d.ts.map +1 -1
- package/dist/common/media_meta.js +61 -44
- package/dist/common/media_meta.js.map +1 -1
- package/dist/common/message.d.ts +106 -16
- package/dist/common/message.d.ts.map +1 -1
- package/dist/common/message.js +142 -81
- package/dist/common/message.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +141 -18
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +149 -79
- 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 +123 -57
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +98 -23
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +220 -93
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts +107 -18
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +183 -83
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts +54717 -4254
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +742 -261
- 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 -2
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +18 -8
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/grpcweb.d.ts +1 -1
- package/dist/grpcweb.d.ts.map +1 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -8
- package/dist/index.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts +35 -12
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +92 -68
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/config.d.ts +42 -11
- package/dist/localdevice/config.d.ts.map +1 -1
- package/dist/localdevice/config.js +99 -42
- package/dist/localdevice/config.js.map +1 -1
- package/dist/localdevice/device.d.ts +18 -6
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +48 -22
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +68 -18
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +145 -62
- 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 +174 -77
- package/dist/localdevice/local-launch.js.map +1 -1
- package/dist/localdevice/network.d.ts +14 -6
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +40 -20
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts +61 -16
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +125 -73
- package/dist/localdevice/permission.js.map +1 -1
- package/dist/localdevice/photo.d.ts +192 -28
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +318 -136
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/sys/OS_snapshot.d.ts +180 -32
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +294 -136
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/btled.d.ts +46 -10
- package/dist/sys/btled.d.ts.map +1 -1
- package/dist/sys/btled.js +83 -45
- package/dist/sys/btled.js.map +1 -1
- package/dist/sys/btrfs.d.ts +59 -16
- package/dist/sys/btrfs.d.ts.map +1 -1
- package/dist/sys/btrfs.js +116 -58
- package/dist/sys/btrfs.js.map +1 -1
- package/dist/sys/devopt.d.ts +20 -6
- package/dist/sys/devopt.d.ts.map +1 -1
- package/dist/sys/devopt.js +55 -25
- 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 -41
- package/dist/sys/dirmon.js.map +1 -1
- package/dist/sys/event.d.ts +90 -18
- package/dist/sys/event.d.ts.map +1 -1
- package/dist/sys/event.js +165 -80
- package/dist/sys/event.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +244 -32
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +266 -132
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +81 -24
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +164 -83
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/installer.d.ts +85 -21
- package/dist/sys/installer.d.ts.map +1 -1
- package/dist/sys/installer.js +204 -78
- package/dist/sys/installer.js.map +1 -1
- package/dist/sys/network_manager.d.ts +139 -16
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +164 -66
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +314 -42
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +408 -167
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +462 -251
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +953 -814
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +105 -18
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +161 -71
- package/dist/sys/snapd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/common/appshell.d.ts +0 -105
- package/dist/common/appshell.d.ts.map +0 -1
- package/dist/common/appshell.js +0 -252
- package/dist/common/appshell.js.map +0 -1
- package/dist/lanforward/lanforward.d.ts +0 -105
- package/dist/lanforward/lanforward.d.ts.map +0 -1
- package/dist/lanforward/lanforward.js +0 -237
- 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 -266
- package/dist/ssdp/ssdp.js.map +0 -1
- package/dist/sys/OS_daemon.d.ts +0 -110
- package/dist/sys/OS_daemon.d.ts.map +0 -1
- package/dist/sys/OS_daemon.js +0 -330
- package/dist/sys/OS_daemon.js.map +0 -1
- package/dist/sys/OS_upgrader.d.ts +0 -215
- package/dist/sys/OS_upgrader.d.ts.map +0 -1
- package/dist/sys/OS_upgrader.js +0 -684
- package/dist/sys/OS_upgrader.js.map +0 -1
- package/dist/sys/box-status.d.ts +0 -404
- package/dist/sys/box-status.d.ts.map +0 -1
- package/dist/sys/box-status.js +0 -907
- package/dist/sys/box-status.js.map +0 -1
|
@@ -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
|
-
|
|
136
|
-
|
|
137
|
-
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
143
|
+
break;
|
|
138
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();
|
|
@@ -182,31 +192,47 @@ exports.InstallRequest = {
|
|
|
182
192
|
return writer;
|
|
183
193
|
},
|
|
184
194
|
decode(input, length) {
|
|
185
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
195
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
186
196
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
187
197
|
const message = createBaseInstallRequest();
|
|
188
198
|
while (reader.pos < end) {
|
|
189
199
|
const tag = reader.uint32();
|
|
190
200
|
switch (tag >>> 3) {
|
|
191
201
|
case 2:
|
|
202
|
+
if (tag !== 18) {
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
192
205
|
message.url = reader.string();
|
|
193
|
-
|
|
206
|
+
continue;
|
|
194
207
|
case 3:
|
|
208
|
+
if (tag !== 26) {
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
195
211
|
message.sha256 = reader.string();
|
|
196
|
-
|
|
212
|
+
continue;
|
|
197
213
|
case 1:
|
|
214
|
+
if (tag !== 10) {
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
198
217
|
message.appid = reader.string();
|
|
199
|
-
|
|
218
|
+
continue;
|
|
200
219
|
case 4:
|
|
220
|
+
if (tag !== 34) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
201
223
|
message.subdomain = reader.string();
|
|
202
|
-
|
|
224
|
+
continue;
|
|
203
225
|
case 5:
|
|
226
|
+
if (tag !== 40) {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
204
229
|
message.noResume = reader.bool();
|
|
205
|
-
|
|
206
|
-
default:
|
|
207
|
-
reader.skipType(tag & 7);
|
|
208
|
-
break;
|
|
230
|
+
continue;
|
|
209
231
|
}
|
|
232
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
reader.skipType(tag & 7);
|
|
210
236
|
}
|
|
211
237
|
return message;
|
|
212
238
|
},
|
|
@@ -228,6 +254,9 @@ exports.InstallRequest = {
|
|
|
228
254
|
message.noResume !== undefined && (obj.noResume = message.noResume);
|
|
229
255
|
return obj;
|
|
230
256
|
},
|
|
257
|
+
create(base) {
|
|
258
|
+
return exports.InstallRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
259
|
+
},
|
|
231
260
|
fromPartial(object) {
|
|
232
261
|
var _a, _b, _c, _d, _e;
|
|
233
262
|
const message = createBaseInstallRequest();
|
|
@@ -253,22 +282,29 @@ exports.UninstallRequest = {
|
|
|
253
282
|
return writer;
|
|
254
283
|
},
|
|
255
284
|
decode(input, length) {
|
|
256
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
285
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
257
286
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
258
287
|
const message = createBaseUninstallRequest();
|
|
259
288
|
while (reader.pos < end) {
|
|
260
289
|
const tag = reader.uint32();
|
|
261
290
|
switch (tag >>> 3) {
|
|
262
291
|
case 1:
|
|
292
|
+
if (tag !== 10) {
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
263
295
|
message.appid = reader.string();
|
|
264
|
-
|
|
296
|
+
continue;
|
|
265
297
|
case 2:
|
|
298
|
+
if (tag !== 16) {
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
266
301
|
message.clearData = reader.bool();
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
304
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
305
|
+
break;
|
|
271
306
|
}
|
|
307
|
+
reader.skipType(tag & 7);
|
|
272
308
|
}
|
|
273
309
|
return message;
|
|
274
310
|
},
|
|
@@ -284,6 +320,9 @@ exports.UninstallRequest = {
|
|
|
284
320
|
message.clearData !== undefined && (obj.clearData = message.clearData);
|
|
285
321
|
return obj;
|
|
286
322
|
},
|
|
323
|
+
create(base) {
|
|
324
|
+
return exports.UninstallRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
325
|
+
},
|
|
287
326
|
fromPartial(object) {
|
|
288
327
|
var _a, _b;
|
|
289
328
|
const message = createBaseUninstallRequest();
|
|
@@ -306,22 +345,29 @@ exports.AppDownloadProgress = {
|
|
|
306
345
|
return writer;
|
|
307
346
|
},
|
|
308
347
|
decode(input, length) {
|
|
309
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
348
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
310
349
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
311
350
|
const message = createBaseAppDownloadProgress();
|
|
312
351
|
while (reader.pos < end) {
|
|
313
352
|
const tag = reader.uint32();
|
|
314
353
|
switch (tag >>> 3) {
|
|
315
354
|
case 1:
|
|
355
|
+
if (tag !== 8) {
|
|
356
|
+
break;
|
|
357
|
+
}
|
|
316
358
|
message.current = longToNumber(reader.uint64());
|
|
317
|
-
|
|
359
|
+
continue;
|
|
318
360
|
case 2:
|
|
361
|
+
if (tag !== 16) {
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
319
364
|
message.total = longToNumber(reader.uint64());
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
365
|
+
continue;
|
|
366
|
+
}
|
|
367
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
368
|
+
break;
|
|
324
369
|
}
|
|
370
|
+
reader.skipType(tag & 7);
|
|
325
371
|
}
|
|
326
372
|
return message;
|
|
327
373
|
},
|
|
@@ -337,6 +383,9 @@ exports.AppDownloadProgress = {
|
|
|
337
383
|
message.total !== undefined && (obj.total = Math.round(message.total));
|
|
338
384
|
return obj;
|
|
339
385
|
},
|
|
386
|
+
create(base) {
|
|
387
|
+
return exports.AppDownloadProgress.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
388
|
+
},
|
|
340
389
|
fromPartial(object) {
|
|
341
390
|
var _a, _b;
|
|
342
391
|
const message = createBaseAppDownloadProgress();
|
|
@@ -394,46 +443,77 @@ exports.AppInfo = {
|
|
|
394
443
|
return writer;
|
|
395
444
|
},
|
|
396
445
|
decode(input, length) {
|
|
397
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
446
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
398
447
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
399
448
|
const message = createBaseAppInfo();
|
|
400
449
|
while (reader.pos < end) {
|
|
401
450
|
const tag = reader.uint32();
|
|
402
451
|
switch (tag >>> 3) {
|
|
403
452
|
case 1:
|
|
453
|
+
if (tag !== 10) {
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
404
456
|
message.appid = reader.string();
|
|
405
|
-
|
|
457
|
+
continue;
|
|
406
458
|
case 2:
|
|
459
|
+
if (tag !== 16) {
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
407
462
|
message.status = reader.int32();
|
|
408
|
-
|
|
463
|
+
continue;
|
|
409
464
|
case 3:
|
|
465
|
+
if (tag !== 26) {
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
410
468
|
message.version = reader.string();
|
|
411
|
-
|
|
469
|
+
continue;
|
|
412
470
|
case 4:
|
|
471
|
+
if (tag !== 34) {
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
413
474
|
message.title = reader.string();
|
|
414
|
-
|
|
475
|
+
continue;
|
|
415
476
|
case 5:
|
|
477
|
+
if (tag !== 42) {
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
416
480
|
message.description = reader.string();
|
|
417
|
-
|
|
481
|
+
continue;
|
|
418
482
|
case 6:
|
|
483
|
+
if (tag !== 50) {
|
|
484
|
+
break;
|
|
485
|
+
}
|
|
419
486
|
message.icon = reader.string();
|
|
420
|
-
|
|
487
|
+
continue;
|
|
421
488
|
case 7:
|
|
489
|
+
if (tag !== 58) {
|
|
490
|
+
break;
|
|
491
|
+
}
|
|
422
492
|
message.domain = reader.string();
|
|
423
|
-
|
|
493
|
+
continue;
|
|
424
494
|
case 8:
|
|
495
|
+
if (tag !== 66) {
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
425
498
|
message.downloadProgress = exports.AppDownloadProgress.decode(reader, reader.uint32());
|
|
426
|
-
|
|
499
|
+
continue;
|
|
427
500
|
case 9:
|
|
501
|
+
if (tag !== 72) {
|
|
502
|
+
break;
|
|
503
|
+
}
|
|
428
504
|
message.builtin = reader.bool();
|
|
429
|
-
|
|
505
|
+
continue;
|
|
430
506
|
case 10:
|
|
507
|
+
if (tag !== 82) {
|
|
508
|
+
break;
|
|
509
|
+
}
|
|
431
510
|
message.errorReason = reader.string();
|
|
432
|
-
|
|
433
|
-
default:
|
|
434
|
-
reader.skipType(tag & 7);
|
|
435
|
-
break;
|
|
511
|
+
continue;
|
|
436
512
|
}
|
|
513
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
514
|
+
break;
|
|
515
|
+
}
|
|
516
|
+
reader.skipType(tag & 7);
|
|
437
517
|
}
|
|
438
518
|
return message;
|
|
439
519
|
},
|
|
@@ -469,6 +549,9 @@ exports.AppInfo = {
|
|
|
469
549
|
message.errorReason !== undefined && (obj.errorReason = message.errorReason);
|
|
470
550
|
return obj;
|
|
471
551
|
},
|
|
552
|
+
create(base) {
|
|
553
|
+
return exports.AppInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
554
|
+
},
|
|
472
555
|
fromPartial(object) {
|
|
473
556
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
474
557
|
const message = createBaseAppInfo();
|
|
@@ -498,19 +581,23 @@ exports.QueryApplicationRequest = {
|
|
|
498
581
|
return writer;
|
|
499
582
|
},
|
|
500
583
|
decode(input, length) {
|
|
501
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
584
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
502
585
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
503
586
|
const message = createBaseQueryApplicationRequest();
|
|
504
587
|
while (reader.pos < end) {
|
|
505
588
|
const tag = reader.uint32();
|
|
506
589
|
switch (tag >>> 3) {
|
|
507
590
|
case 1:
|
|
591
|
+
if (tag !== 10) {
|
|
592
|
+
break;
|
|
593
|
+
}
|
|
508
594
|
message.appidList.push(reader.string());
|
|
509
|
-
|
|
510
|
-
default:
|
|
511
|
-
reader.skipType(tag & 7);
|
|
512
|
-
break;
|
|
595
|
+
continue;
|
|
513
596
|
}
|
|
597
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
598
|
+
break;
|
|
599
|
+
}
|
|
600
|
+
reader.skipType(tag & 7);
|
|
514
601
|
}
|
|
515
602
|
return message;
|
|
516
603
|
},
|
|
@@ -527,6 +614,9 @@ exports.QueryApplicationRequest = {
|
|
|
527
614
|
}
|
|
528
615
|
return obj;
|
|
529
616
|
},
|
|
617
|
+
create(base) {
|
|
618
|
+
return exports.QueryApplicationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
619
|
+
},
|
|
530
620
|
fromPartial(object) {
|
|
531
621
|
var _a;
|
|
532
622
|
const message = createBaseQueryApplicationRequest();
|
|
@@ -545,19 +635,23 @@ exports.QueryApplicationResponse = {
|
|
|
545
635
|
return writer;
|
|
546
636
|
},
|
|
547
637
|
decode(input, length) {
|
|
548
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
638
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
549
639
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
550
640
|
const message = createBaseQueryApplicationResponse();
|
|
551
641
|
while (reader.pos < end) {
|
|
552
642
|
const tag = reader.uint32();
|
|
553
643
|
switch (tag >>> 3) {
|
|
554
644
|
case 1:
|
|
645
|
+
if (tag !== 10) {
|
|
646
|
+
break;
|
|
647
|
+
}
|
|
555
648
|
message.infoList.push(exports.AppInfo.decode(reader, reader.uint32()));
|
|
556
|
-
|
|
557
|
-
default:
|
|
558
|
-
reader.skipType(tag & 7);
|
|
559
|
-
break;
|
|
649
|
+
continue;
|
|
560
650
|
}
|
|
651
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
652
|
+
break;
|
|
653
|
+
}
|
|
654
|
+
reader.skipType(tag & 7);
|
|
561
655
|
}
|
|
562
656
|
return message;
|
|
563
657
|
},
|
|
@@ -574,6 +668,9 @@ exports.QueryApplicationResponse = {
|
|
|
574
668
|
}
|
|
575
669
|
return obj;
|
|
576
670
|
},
|
|
671
|
+
create(base) {
|
|
672
|
+
return exports.QueryApplicationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
673
|
+
},
|
|
577
674
|
fromPartial(object) {
|
|
578
675
|
var _a;
|
|
579
676
|
const message = createBaseQueryApplicationResponse();
|
|
@@ -618,37 +715,59 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
618
715
|
return writer;
|
|
619
716
|
},
|
|
620
717
|
decode(input, length) {
|
|
621
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
718
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
622
719
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
623
720
|
const message = createBaseQueryAppStorageUsageRequest();
|
|
624
721
|
while (reader.pos < end) {
|
|
625
722
|
const tag = reader.uint32();
|
|
626
723
|
switch (tag >>> 3) {
|
|
627
724
|
case 1:
|
|
725
|
+
if (tag !== 10) {
|
|
726
|
+
break;
|
|
727
|
+
}
|
|
628
728
|
message.appid = reader.string();
|
|
629
|
-
|
|
729
|
+
continue;
|
|
630
730
|
case 2:
|
|
731
|
+
if (tag !== 16) {
|
|
732
|
+
break;
|
|
733
|
+
}
|
|
631
734
|
message.needPkg = reader.bool();
|
|
632
|
-
|
|
735
|
+
continue;
|
|
633
736
|
case 3:
|
|
737
|
+
if (tag !== 24) {
|
|
738
|
+
break;
|
|
739
|
+
}
|
|
634
740
|
message.needData = reader.bool();
|
|
635
|
-
|
|
741
|
+
continue;
|
|
636
742
|
case 4:
|
|
743
|
+
if (tag !== 32) {
|
|
744
|
+
break;
|
|
745
|
+
}
|
|
637
746
|
message.needCache = reader.bool();
|
|
638
|
-
|
|
747
|
+
continue;
|
|
639
748
|
case 5:
|
|
749
|
+
if (tag !== 40) {
|
|
750
|
+
break;
|
|
751
|
+
}
|
|
640
752
|
message.needTmp = reader.bool();
|
|
641
|
-
|
|
753
|
+
continue;
|
|
642
754
|
case 6:
|
|
755
|
+
if (tag !== 48) {
|
|
756
|
+
break;
|
|
757
|
+
}
|
|
643
758
|
message.needUserdata = reader.bool();
|
|
644
|
-
|
|
759
|
+
continue;
|
|
645
760
|
case 7:
|
|
761
|
+
if (tag !== 56) {
|
|
762
|
+
break;
|
|
763
|
+
}
|
|
646
764
|
message.needImage = reader.bool();
|
|
647
|
-
|
|
648
|
-
default:
|
|
649
|
-
reader.skipType(tag & 7);
|
|
650
|
-
break;
|
|
765
|
+
continue;
|
|
651
766
|
}
|
|
767
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
768
|
+
break;
|
|
769
|
+
}
|
|
770
|
+
reader.skipType(tag & 7);
|
|
652
771
|
}
|
|
653
772
|
return message;
|
|
654
773
|
},
|
|
@@ -674,6 +793,9 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
674
793
|
message.needImage !== undefined && (obj.needImage = message.needImage);
|
|
675
794
|
return obj;
|
|
676
795
|
},
|
|
796
|
+
create(base) {
|
|
797
|
+
return exports.QueryAppStorageUsageRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
798
|
+
},
|
|
677
799
|
fromPartial(object) {
|
|
678
800
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
679
801
|
const message = createBaseQueryAppStorageUsageRequest();
|
|
@@ -713,37 +835,56 @@ exports.AppStorageUsage = {
|
|
|
713
835
|
return writer;
|
|
714
836
|
},
|
|
715
837
|
decode(input, length) {
|
|
716
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
838
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
717
839
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
718
840
|
const message = createBaseAppStorageUsage();
|
|
719
841
|
while (reader.pos < end) {
|
|
720
842
|
const tag = reader.uint32();
|
|
721
843
|
switch (tag >>> 3) {
|
|
722
844
|
case 1:
|
|
845
|
+
if (tag !== 8) {
|
|
846
|
+
break;
|
|
847
|
+
}
|
|
723
848
|
message.pkg = longToNumber(reader.uint64());
|
|
724
|
-
|
|
849
|
+
continue;
|
|
725
850
|
case 2:
|
|
851
|
+
if (tag !== 16) {
|
|
852
|
+
break;
|
|
853
|
+
}
|
|
726
854
|
message.data = longToNumber(reader.uint64());
|
|
727
|
-
|
|
855
|
+
continue;
|
|
728
856
|
case 3:
|
|
857
|
+
if (tag !== 24) {
|
|
858
|
+
break;
|
|
859
|
+
}
|
|
729
860
|
message.cache = longToNumber(reader.uint64());
|
|
730
|
-
|
|
861
|
+
continue;
|
|
731
862
|
case 4:
|
|
863
|
+
if (tag !== 32) {
|
|
864
|
+
break;
|
|
865
|
+
}
|
|
732
866
|
message.tmp = longToNumber(reader.uint64());
|
|
733
|
-
|
|
867
|
+
continue;
|
|
734
868
|
case 5:
|
|
869
|
+
if (tag !== 42) {
|
|
870
|
+
break;
|
|
871
|
+
}
|
|
735
872
|
const entry5 = exports.AppStorageUsage_UserdataEntry.decode(reader, reader.uint32());
|
|
736
873
|
if (entry5.value !== undefined) {
|
|
737
874
|
message.userdata[entry5.key] = entry5.value;
|
|
738
875
|
}
|
|
739
|
-
|
|
876
|
+
continue;
|
|
740
877
|
case 6:
|
|
878
|
+
if (tag !== 48) {
|
|
879
|
+
break;
|
|
880
|
+
}
|
|
741
881
|
message.image = longToNumber(reader.uint64());
|
|
742
|
-
|
|
743
|
-
default:
|
|
744
|
-
reader.skipType(tag & 7);
|
|
745
|
-
break;
|
|
882
|
+
continue;
|
|
746
883
|
}
|
|
884
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
885
|
+
break;
|
|
886
|
+
}
|
|
887
|
+
reader.skipType(tag & 7);
|
|
747
888
|
}
|
|
748
889
|
return message;
|
|
749
890
|
},
|
|
@@ -777,6 +918,9 @@ exports.AppStorageUsage = {
|
|
|
777
918
|
message.image !== undefined && (obj.image = Math.round(message.image));
|
|
778
919
|
return obj;
|
|
779
920
|
},
|
|
921
|
+
create(base) {
|
|
922
|
+
return exports.AppStorageUsage.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
923
|
+
},
|
|
780
924
|
fromPartial(object) {
|
|
781
925
|
var _a, _b, _c, _d, _e, _f;
|
|
782
926
|
const message = createBaseAppStorageUsage();
|
|
@@ -808,22 +952,29 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
808
952
|
return writer;
|
|
809
953
|
},
|
|
810
954
|
decode(input, length) {
|
|
811
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
955
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
812
956
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
813
957
|
const message = createBaseAppStorageUsage_UserdataEntry();
|
|
814
958
|
while (reader.pos < end) {
|
|
815
959
|
const tag = reader.uint32();
|
|
816
960
|
switch (tag >>> 3) {
|
|
817
961
|
case 1:
|
|
962
|
+
if (tag !== 10) {
|
|
963
|
+
break;
|
|
964
|
+
}
|
|
818
965
|
message.key = reader.string();
|
|
819
|
-
|
|
966
|
+
continue;
|
|
820
967
|
case 2:
|
|
968
|
+
if (tag !== 16) {
|
|
969
|
+
break;
|
|
970
|
+
}
|
|
821
971
|
message.value = longToNumber(reader.uint64());
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
972
|
+
continue;
|
|
973
|
+
}
|
|
974
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
975
|
+
break;
|
|
826
976
|
}
|
|
977
|
+
reader.skipType(tag & 7);
|
|
827
978
|
}
|
|
828
979
|
return message;
|
|
829
980
|
},
|
|
@@ -836,6 +987,9 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
836
987
|
message.value !== undefined && (obj.value = Math.round(message.value));
|
|
837
988
|
return obj;
|
|
838
989
|
},
|
|
990
|
+
create(base) {
|
|
991
|
+
return exports.AppStorageUsage_UserdataEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
992
|
+
},
|
|
839
993
|
fromPartial(object) {
|
|
840
994
|
var _a, _b;
|
|
841
995
|
const message = createBaseAppStorageUsage_UserdataEntry();
|
|
@@ -858,22 +1012,29 @@ exports.UserPermission = {
|
|
|
858
1012
|
return writer;
|
|
859
1013
|
},
|
|
860
1014
|
decode(input, length) {
|
|
861
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1015
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
862
1016
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
863
1017
|
const message = createBaseUserPermission();
|
|
864
1018
|
while (reader.pos < end) {
|
|
865
1019
|
const tag = reader.uint32();
|
|
866
1020
|
switch (tag >>> 3) {
|
|
867
1021
|
case 1:
|
|
1022
|
+
if (tag !== 10) {
|
|
1023
|
+
break;
|
|
1024
|
+
}
|
|
868
1025
|
message.uid = reader.string();
|
|
869
|
-
|
|
1026
|
+
continue;
|
|
870
1027
|
case 2:
|
|
1028
|
+
if (tag !== 16) {
|
|
1029
|
+
break;
|
|
1030
|
+
}
|
|
871
1031
|
message.allowInstallApp = reader.bool();
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
1032
|
+
continue;
|
|
1033
|
+
}
|
|
1034
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1035
|
+
break;
|
|
876
1036
|
}
|
|
1037
|
+
reader.skipType(tag & 7);
|
|
877
1038
|
}
|
|
878
1039
|
return message;
|
|
879
1040
|
},
|
|
@@ -889,6 +1050,9 @@ exports.UserPermission = {
|
|
|
889
1050
|
message.allowInstallApp !== undefined && (obj.allowInstallApp = message.allowInstallApp);
|
|
890
1051
|
return obj;
|
|
891
1052
|
},
|
|
1053
|
+
create(base) {
|
|
1054
|
+
return exports.UserPermission.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1055
|
+
},
|
|
892
1056
|
fromPartial(object) {
|
|
893
1057
|
var _a, _b;
|
|
894
1058
|
const message = createBaseUserPermission();
|
|
@@ -908,19 +1072,23 @@ exports.GetUserPermissionsRequest = {
|
|
|
908
1072
|
return writer;
|
|
909
1073
|
},
|
|
910
1074
|
decode(input, length) {
|
|
911
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1075
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
912
1076
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
913
1077
|
const message = createBaseGetUserPermissionsRequest();
|
|
914
1078
|
while (reader.pos < end) {
|
|
915
1079
|
const tag = reader.uint32();
|
|
916
1080
|
switch (tag >>> 3) {
|
|
917
1081
|
case 1:
|
|
1082
|
+
if (tag !== 10) {
|
|
1083
|
+
break;
|
|
1084
|
+
}
|
|
918
1085
|
message.uid = reader.string();
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
1086
|
+
continue;
|
|
1087
|
+
}
|
|
1088
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1089
|
+
break;
|
|
923
1090
|
}
|
|
1091
|
+
reader.skipType(tag & 7);
|
|
924
1092
|
}
|
|
925
1093
|
return message;
|
|
926
1094
|
},
|
|
@@ -932,6 +1100,9 @@ exports.GetUserPermissionsRequest = {
|
|
|
932
1100
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
933
1101
|
return obj;
|
|
934
1102
|
},
|
|
1103
|
+
create(base) {
|
|
1104
|
+
return exports.GetUserPermissionsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1105
|
+
},
|
|
935
1106
|
fromPartial(object) {
|
|
936
1107
|
var _a;
|
|
937
1108
|
const message = createBaseGetUserPermissionsRequest();
|
|
@@ -950,19 +1121,23 @@ exports.Appid = {
|
|
|
950
1121
|
return writer;
|
|
951
1122
|
},
|
|
952
1123
|
decode(input, length) {
|
|
953
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1124
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
954
1125
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
955
1126
|
const message = createBaseAppid();
|
|
956
1127
|
while (reader.pos < end) {
|
|
957
1128
|
const tag = reader.uint32();
|
|
958
1129
|
switch (tag >>> 3) {
|
|
959
1130
|
case 1:
|
|
1131
|
+
if (tag !== 10) {
|
|
1132
|
+
break;
|
|
1133
|
+
}
|
|
960
1134
|
message.appid = reader.string();
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
1135
|
+
continue;
|
|
1136
|
+
}
|
|
1137
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1138
|
+
break;
|
|
965
1139
|
}
|
|
1140
|
+
reader.skipType(tag & 7);
|
|
966
1141
|
}
|
|
967
1142
|
return message;
|
|
968
1143
|
},
|
|
@@ -974,6 +1149,9 @@ exports.Appid = {
|
|
|
974
1149
|
message.appid !== undefined && (obj.appid = message.appid);
|
|
975
1150
|
return obj;
|
|
976
1151
|
},
|
|
1152
|
+
create(base) {
|
|
1153
|
+
return exports.Appid.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1154
|
+
},
|
|
977
1155
|
fromPartial(object) {
|
|
978
1156
|
var _a;
|
|
979
1157
|
const message = createBaseAppid();
|
|
@@ -998,25 +1176,35 @@ exports.GetActionURLRequest = {
|
|
|
998
1176
|
return writer;
|
|
999
1177
|
},
|
|
1000
1178
|
decode(input, length) {
|
|
1001
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1179
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1002
1180
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1003
1181
|
const message = createBaseGetActionURLRequest();
|
|
1004
1182
|
while (reader.pos < end) {
|
|
1005
1183
|
const tag = reader.uint32();
|
|
1006
1184
|
switch (tag >>> 3) {
|
|
1007
1185
|
case 1:
|
|
1186
|
+
if (tag !== 10) {
|
|
1187
|
+
break;
|
|
1188
|
+
}
|
|
1008
1189
|
message.path = reader.string();
|
|
1009
|
-
|
|
1190
|
+
continue;
|
|
1010
1191
|
case 2:
|
|
1192
|
+
if (tag !== 18) {
|
|
1193
|
+
break;
|
|
1194
|
+
}
|
|
1011
1195
|
message.appid = reader.string();
|
|
1012
|
-
|
|
1196
|
+
continue;
|
|
1013
1197
|
case 3:
|
|
1198
|
+
if (tag !== 24) {
|
|
1199
|
+
break;
|
|
1200
|
+
}
|
|
1014
1201
|
message.action = reader.int32();
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1202
|
+
continue;
|
|
1203
|
+
}
|
|
1204
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1205
|
+
break;
|
|
1019
1206
|
}
|
|
1207
|
+
reader.skipType(tag & 7);
|
|
1020
1208
|
}
|
|
1021
1209
|
return message;
|
|
1022
1210
|
},
|
|
@@ -1034,6 +1222,9 @@ exports.GetActionURLRequest = {
|
|
|
1034
1222
|
message.action !== undefined && (obj.action = actionToJSON(message.action));
|
|
1035
1223
|
return obj;
|
|
1036
1224
|
},
|
|
1225
|
+
create(base) {
|
|
1226
|
+
return exports.GetActionURLRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1227
|
+
},
|
|
1037
1228
|
fromPartial(object) {
|
|
1038
1229
|
var _a, _b, _c;
|
|
1039
1230
|
const message = createBaseGetActionURLRequest();
|
|
@@ -1054,19 +1245,23 @@ exports.GetActionURLResponse = {
|
|
|
1054
1245
|
return writer;
|
|
1055
1246
|
},
|
|
1056
1247
|
decode(input, length) {
|
|
1057
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1248
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1058
1249
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1059
1250
|
const message = createBaseGetActionURLResponse();
|
|
1060
1251
|
while (reader.pos < end) {
|
|
1061
1252
|
const tag = reader.uint32();
|
|
1062
1253
|
switch (tag >>> 3) {
|
|
1063
1254
|
case 1:
|
|
1255
|
+
if (tag !== 10) {
|
|
1256
|
+
break;
|
|
1257
|
+
}
|
|
1064
1258
|
message.url = reader.string();
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1259
|
+
continue;
|
|
1260
|
+
}
|
|
1261
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1262
|
+
break;
|
|
1069
1263
|
}
|
|
1264
|
+
reader.skipType(tag & 7);
|
|
1070
1265
|
}
|
|
1071
1266
|
return message;
|
|
1072
1267
|
},
|
|
@@ -1078,6 +1273,9 @@ exports.GetActionURLResponse = {
|
|
|
1078
1273
|
message.url !== undefined && (obj.url = message.url);
|
|
1079
1274
|
return obj;
|
|
1080
1275
|
},
|
|
1276
|
+
create(base) {
|
|
1277
|
+
return exports.GetActionURLResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1278
|
+
},
|
|
1081
1279
|
fromPartial(object) {
|
|
1082
1280
|
var _a;
|
|
1083
1281
|
const message = createBaseGetActionURLResponse();
|
|
@@ -1096,19 +1294,23 @@ exports.ListFileHandlerRequest = {
|
|
|
1096
1294
|
return writer;
|
|
1097
1295
|
},
|
|
1098
1296
|
decode(input, length) {
|
|
1099
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1297
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1100
1298
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1101
1299
|
const message = createBaseListFileHandlerRequest();
|
|
1102
1300
|
while (reader.pos < end) {
|
|
1103
1301
|
const tag = reader.uint32();
|
|
1104
1302
|
switch (tag >>> 3) {
|
|
1105
1303
|
case 1:
|
|
1304
|
+
if (tag !== 10) {
|
|
1305
|
+
break;
|
|
1306
|
+
}
|
|
1106
1307
|
message.mimetype = reader.string();
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1308
|
+
continue;
|
|
1309
|
+
}
|
|
1310
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1311
|
+
break;
|
|
1111
1312
|
}
|
|
1313
|
+
reader.skipType(tag & 7);
|
|
1112
1314
|
}
|
|
1113
1315
|
return message;
|
|
1114
1316
|
},
|
|
@@ -1120,6 +1322,9 @@ exports.ListFileHandlerRequest = {
|
|
|
1120
1322
|
message.mimetype !== undefined && (obj.mimetype = message.mimetype);
|
|
1121
1323
|
return obj;
|
|
1122
1324
|
},
|
|
1325
|
+
create(base) {
|
|
1326
|
+
return exports.ListFileHandlerRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1327
|
+
},
|
|
1123
1328
|
fromPartial(object) {
|
|
1124
1329
|
var _a;
|
|
1125
1330
|
const message = createBaseListFileHandlerRequest();
|
|
@@ -1144,25 +1349,35 @@ exports.FileHandlerInfo = {
|
|
|
1144
1349
|
return writer;
|
|
1145
1350
|
},
|
|
1146
1351
|
decode(input, length) {
|
|
1147
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1352
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1148
1353
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1149
1354
|
const message = createBaseFileHandlerInfo();
|
|
1150
1355
|
while (reader.pos < end) {
|
|
1151
1356
|
const tag = reader.uint32();
|
|
1152
1357
|
switch (tag >>> 3) {
|
|
1153
1358
|
case 1:
|
|
1359
|
+
if (tag !== 10) {
|
|
1360
|
+
break;
|
|
1361
|
+
}
|
|
1154
1362
|
message.appid = reader.string();
|
|
1155
|
-
|
|
1363
|
+
continue;
|
|
1156
1364
|
case 2:
|
|
1365
|
+
if (tag !== 18) {
|
|
1366
|
+
break;
|
|
1367
|
+
}
|
|
1157
1368
|
message.title = reader.string();
|
|
1158
|
-
|
|
1369
|
+
continue;
|
|
1159
1370
|
case 3:
|
|
1371
|
+
if (tag !== 26) {
|
|
1372
|
+
break;
|
|
1373
|
+
}
|
|
1160
1374
|
message.icon = reader.string();
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1375
|
+
continue;
|
|
1376
|
+
}
|
|
1377
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1378
|
+
break;
|
|
1165
1379
|
}
|
|
1380
|
+
reader.skipType(tag & 7);
|
|
1166
1381
|
}
|
|
1167
1382
|
return message;
|
|
1168
1383
|
},
|
|
@@ -1180,6 +1395,9 @@ exports.FileHandlerInfo = {
|
|
|
1180
1395
|
message.icon !== undefined && (obj.icon = message.icon);
|
|
1181
1396
|
return obj;
|
|
1182
1397
|
},
|
|
1398
|
+
create(base) {
|
|
1399
|
+
return exports.FileHandlerInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1400
|
+
},
|
|
1183
1401
|
fromPartial(object) {
|
|
1184
1402
|
var _a, _b, _c;
|
|
1185
1403
|
const message = createBaseFileHandlerInfo();
|
|
@@ -1200,19 +1418,23 @@ exports.ListFileHandlerResponse = {
|
|
|
1200
1418
|
return writer;
|
|
1201
1419
|
},
|
|
1202
1420
|
decode(input, length) {
|
|
1203
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1421
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1204
1422
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1205
1423
|
const message = createBaseListFileHandlerResponse();
|
|
1206
1424
|
while (reader.pos < end) {
|
|
1207
1425
|
const tag = reader.uint32();
|
|
1208
1426
|
switch (tag >>> 3) {
|
|
1209
1427
|
case 1:
|
|
1428
|
+
if (tag !== 10) {
|
|
1429
|
+
break;
|
|
1430
|
+
}
|
|
1210
1431
|
message.infoList.push(exports.FileHandlerInfo.decode(reader, reader.uint32()));
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1432
|
+
continue;
|
|
1433
|
+
}
|
|
1434
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1435
|
+
break;
|
|
1215
1436
|
}
|
|
1437
|
+
reader.skipType(tag & 7);
|
|
1216
1438
|
}
|
|
1217
1439
|
return message;
|
|
1218
1440
|
},
|
|
@@ -1231,6 +1453,9 @@ exports.ListFileHandlerResponse = {
|
|
|
1231
1453
|
}
|
|
1232
1454
|
return obj;
|
|
1233
1455
|
},
|
|
1456
|
+
create(base) {
|
|
1457
|
+
return exports.ListFileHandlerResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1458
|
+
},
|
|
1234
1459
|
fromPartial(object) {
|
|
1235
1460
|
var _a;
|
|
1236
1461
|
const message = createBaseListFileHandlerResponse();
|
|
@@ -1252,22 +1477,29 @@ exports.AppInstance = {
|
|
|
1252
1477
|
return writer;
|
|
1253
1478
|
},
|
|
1254
1479
|
decode(input, length) {
|
|
1255
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1480
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1256
1481
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1257
1482
|
const message = createBaseAppInstance();
|
|
1258
1483
|
while (reader.pos < end) {
|
|
1259
1484
|
const tag = reader.uint32();
|
|
1260
1485
|
switch (tag >>> 3) {
|
|
1261
1486
|
case 1:
|
|
1487
|
+
if (tag !== 10) {
|
|
1488
|
+
break;
|
|
1489
|
+
}
|
|
1262
1490
|
message.appid = reader.string();
|
|
1263
|
-
|
|
1491
|
+
continue;
|
|
1264
1492
|
case 2:
|
|
1493
|
+
if (tag !== 18) {
|
|
1494
|
+
break;
|
|
1495
|
+
}
|
|
1265
1496
|
message.uid = reader.string();
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1497
|
+
continue;
|
|
1498
|
+
}
|
|
1499
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1500
|
+
break;
|
|
1270
1501
|
}
|
|
1502
|
+
reader.skipType(tag & 7);
|
|
1271
1503
|
}
|
|
1272
1504
|
return message;
|
|
1273
1505
|
},
|
|
@@ -1280,6 +1512,9 @@ exports.AppInstance = {
|
|
|
1280
1512
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
1281
1513
|
return obj;
|
|
1282
1514
|
},
|
|
1515
|
+
create(base) {
|
|
1516
|
+
return exports.AppInstance.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1517
|
+
},
|
|
1283
1518
|
fromPartial(object) {
|
|
1284
1519
|
var _a, _b;
|
|
1285
1520
|
const message = createBaseAppInstance();
|
|
@@ -1355,8 +1590,9 @@ exports.PackageManagerInstallDesc = {
|
|
|
1355
1590
|
},
|
|
1356
1591
|
responseType: {
|
|
1357
1592
|
deserializeBinary(data) {
|
|
1358
|
-
|
|
1359
|
-
|
|
1593
|
+
const value = empty_1.Empty.decode(data);
|
|
1594
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1595
|
+
return value;
|
|
1360
1596
|
} });
|
|
1361
1597
|
},
|
|
1362
1598
|
},
|
|
@@ -1373,8 +1609,9 @@ exports.PackageManagerUninstallDesc = {
|
|
|
1373
1609
|
},
|
|
1374
1610
|
responseType: {
|
|
1375
1611
|
deserializeBinary(data) {
|
|
1376
|
-
|
|
1377
|
-
|
|
1612
|
+
const value = empty_1.Empty.decode(data);
|
|
1613
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1614
|
+
return value;
|
|
1378
1615
|
} });
|
|
1379
1616
|
},
|
|
1380
1617
|
},
|
|
@@ -1391,8 +1628,9 @@ exports.PackageManagerPauseDesc = {
|
|
|
1391
1628
|
},
|
|
1392
1629
|
responseType: {
|
|
1393
1630
|
deserializeBinary(data) {
|
|
1394
|
-
|
|
1395
|
-
|
|
1631
|
+
const value = empty_1.Empty.decode(data);
|
|
1632
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1633
|
+
return value;
|
|
1396
1634
|
} });
|
|
1397
1635
|
},
|
|
1398
1636
|
},
|
|
@@ -1409,8 +1647,9 @@ exports.PackageManagerResumeDesc = {
|
|
|
1409
1647
|
},
|
|
1410
1648
|
responseType: {
|
|
1411
1649
|
deserializeBinary(data) {
|
|
1412
|
-
|
|
1413
|
-
|
|
1650
|
+
const value = empty_1.Empty.decode(data);
|
|
1651
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1652
|
+
return value;
|
|
1414
1653
|
} });
|
|
1415
1654
|
},
|
|
1416
1655
|
},
|
|
@@ -1427,8 +1666,9 @@ exports.PackageManagerClearCacheDesc = {
|
|
|
1427
1666
|
},
|
|
1428
1667
|
responseType: {
|
|
1429
1668
|
deserializeBinary(data) {
|
|
1430
|
-
|
|
1431
|
-
|
|
1669
|
+
const value = empty_1.Empty.decode(data);
|
|
1670
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1671
|
+
return value;
|
|
1432
1672
|
} });
|
|
1433
1673
|
},
|
|
1434
1674
|
},
|
|
@@ -1445,8 +1685,9 @@ exports.PackageManagerQueryApplicationDesc = {
|
|
|
1445
1685
|
},
|
|
1446
1686
|
responseType: {
|
|
1447
1687
|
deserializeBinary(data) {
|
|
1448
|
-
|
|
1449
|
-
|
|
1688
|
+
const value = exports.QueryApplicationResponse.decode(data);
|
|
1689
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1690
|
+
return value;
|
|
1450
1691
|
} });
|
|
1451
1692
|
},
|
|
1452
1693
|
},
|
|
@@ -1463,8 +1704,9 @@ exports.PackageManagerQueryAppStorageUsageDesc = {
|
|
|
1463
1704
|
},
|
|
1464
1705
|
responseType: {
|
|
1465
1706
|
deserializeBinary(data) {
|
|
1466
|
-
|
|
1467
|
-
|
|
1707
|
+
const value = exports.AppStorageUsage.decode(data);
|
|
1708
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1709
|
+
return value;
|
|
1468
1710
|
} });
|
|
1469
1711
|
},
|
|
1470
1712
|
},
|
|
@@ -1481,8 +1723,9 @@ exports.PackageManagerSetUserPermissionsDesc = {
|
|
|
1481
1723
|
},
|
|
1482
1724
|
responseType: {
|
|
1483
1725
|
deserializeBinary(data) {
|
|
1484
|
-
|
|
1485
|
-
|
|
1726
|
+
const value = empty_1.Empty.decode(data);
|
|
1727
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1728
|
+
return value;
|
|
1486
1729
|
} });
|
|
1487
1730
|
},
|
|
1488
1731
|
},
|
|
@@ -1499,8 +1742,9 @@ exports.PackageManagerGetUserPermissionsDesc = {
|
|
|
1499
1742
|
},
|
|
1500
1743
|
responseType: {
|
|
1501
1744
|
deserializeBinary(data) {
|
|
1502
|
-
|
|
1503
|
-
|
|
1745
|
+
const value = exports.UserPermission.decode(data);
|
|
1746
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1747
|
+
return value;
|
|
1504
1748
|
} });
|
|
1505
1749
|
},
|
|
1506
1750
|
},
|
|
@@ -1517,8 +1761,9 @@ exports.PackageManagerPauseAppDownloadDesc = {
|
|
|
1517
1761
|
},
|
|
1518
1762
|
responseType: {
|
|
1519
1763
|
deserializeBinary(data) {
|
|
1520
|
-
|
|
1521
|
-
|
|
1764
|
+
const value = empty_1.Empty.decode(data);
|
|
1765
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1766
|
+
return value;
|
|
1522
1767
|
} });
|
|
1523
1768
|
},
|
|
1524
1769
|
},
|
|
@@ -1535,8 +1780,9 @@ exports.PackageManagerGetActionURLDesc = {
|
|
|
1535
1780
|
},
|
|
1536
1781
|
responseType: {
|
|
1537
1782
|
deserializeBinary(data) {
|
|
1538
|
-
|
|
1539
|
-
|
|
1783
|
+
const value = exports.GetActionURLResponse.decode(data);
|
|
1784
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1785
|
+
return value;
|
|
1540
1786
|
} });
|
|
1541
1787
|
},
|
|
1542
1788
|
},
|
|
@@ -1553,8 +1799,9 @@ exports.PackageManagerListFileHandlerDesc = {
|
|
|
1553
1799
|
},
|
|
1554
1800
|
responseType: {
|
|
1555
1801
|
deserializeBinary(data) {
|
|
1556
|
-
|
|
1557
|
-
|
|
1802
|
+
const value = exports.ListFileHandlerResponse.decode(data);
|
|
1803
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1804
|
+
return value;
|
|
1558
1805
|
} });
|
|
1559
1806
|
},
|
|
1560
1807
|
},
|
|
@@ -1569,29 +1816,23 @@ class GrpcWebImpl {
|
|
|
1569
1816
|
const request = Object.assign(Object.assign({}, _request), methodDesc.requestType);
|
|
1570
1817
|
const maybeCombinedMetadata = metadata && this.options.metadata
|
|
1571
1818
|
? 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))
|
|
1572
|
-
: metadata
|
|
1819
|
+
: metadata !== null && metadata !== void 0 ? metadata : this.options.metadata;
|
|
1573
1820
|
return new Promise((resolve, reject) => {
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
host: this.host,
|
|
1577
|
-
metadata: maybeCombinedMetadata,
|
|
1578
|
-
transport: this.options.transport,
|
|
1579
|
-
debug: this.options.debug,
|
|
1580
|
-
onEnd: function (response) {
|
|
1821
|
+
var _a;
|
|
1822
|
+
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) {
|
|
1581
1823
|
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
1582
|
-
resolve(response.message);
|
|
1824
|
+
resolve(response.message.toObject());
|
|
1583
1825
|
}
|
|
1584
1826
|
else {
|
|
1585
1827
|
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
1586
1828
|
reject(err);
|
|
1587
1829
|
}
|
|
1588
|
-
}
|
|
1589
|
-
});
|
|
1830
|
+
} }));
|
|
1590
1831
|
});
|
|
1591
1832
|
}
|
|
1592
1833
|
}
|
|
1593
1834
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
1594
|
-
|
|
1835
|
+
const tsProtoGlobalThis = (() => {
|
|
1595
1836
|
if (typeof globalThis !== "undefined") {
|
|
1596
1837
|
return globalThis;
|
|
1597
1838
|
}
|
|
@@ -1608,7 +1849,7 @@ var globalThis = (() => {
|
|
|
1608
1849
|
})();
|
|
1609
1850
|
function longToNumber(long) {
|
|
1610
1851
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
1611
|
-
throw new
|
|
1852
|
+
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1612
1853
|
}
|
|
1613
1854
|
return long.toNumber();
|
|
1614
1855
|
}
|
|
@@ -1622,7 +1863,7 @@ function isObject(value) {
|
|
|
1622
1863
|
function isSet(value) {
|
|
1623
1864
|
return value !== null && value !== undefined;
|
|
1624
1865
|
}
|
|
1625
|
-
class GrpcWebError extends Error {
|
|
1866
|
+
class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
1626
1867
|
constructor(message, code, metadata) {
|
|
1627
1868
|
super(message);
|
|
1628
1869
|
this.code = code;
|