@lazycatcloud/sdk 0.1.189 → 0.1.190
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 +25 -8
- package/dist/common/apk_shell.d.ts.map +1 -1
- package/dist/common/apk_shell.js +58 -29
- package/dist/common/apk_shell.js.map +1 -1
- package/dist/common/appshell.d.ts +83 -85
- package/dist/common/appshell.d.ts.map +1 -1
- package/dist/common/appshell.js +241 -228
- package/dist/common/appshell.js.map +1 -1
- package/dist/common/box.d.ts +54 -12
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +93 -39
- 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 +104 -38
- 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 +135 -50
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/file_handler.d.ts +70 -14
- package/dist/common/file_handler.d.ts.map +1 -1
- package/dist/common/file_handler.js +108 -39
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +855 -55
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +469 -202
- 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 +129 -44
- 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 +62 -27
- 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 +145 -66
- 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 +154 -66
- 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 +129 -53
- 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 +225 -90
- 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 +189 -69
- 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 +934 -374
- 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/lanforward/lanforward.d.ts +65 -84
- package/dist/lanforward/lanforward.d.ts.map +1 -1
- package/dist/lanforward/lanforward.js +197 -217
- package/dist/localdevice/clipboard.d.ts +35 -12
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +90 -46
- 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 +98 -33
- 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 +47 -13
- 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 +146 -55
- 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 +178 -71
- 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 +39 -11
- 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 +119 -56
- 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 +334 -130
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/ssdp/ssdp.d.ts +73 -92
- package/dist/ssdp/ssdp.d.ts.map +1 -1
- package/dist/ssdp/ssdp.js +226 -246
- package/dist/sys/OS_daemon.d.ts +35 -12
- package/dist/sys/OS_daemon.d.ts.map +1 -1
- package/dist/sys/OS_daemon.js +68 -32
- package/dist/sys/OS_daemon.js.map +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 +305 -135
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +65 -14
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +141 -66
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/box-status.d.ts +208 -16
- package/dist/sys/box-status.d.ts.map +1 -1
- package/dist/sys/box-status.js +162 -66
- package/dist/sys/box-status.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 +117 -51
- package/dist/sys/btrfs.js.map +1 -1
- package/dist/sys/devopt.d.ts +24 -6
- package/dist/sys/devopt.d.ts.map +1 -1
- package/dist/sys/devopt.js +64 -17
- 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 +54 -29
- 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 +169 -63
- 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 +276 -129
- 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 +167 -78
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/network_manager.d.ts +137 -16
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +164 -59
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +317 -42
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +432 -168
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +730 -231
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +1464 -565
- 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 +170 -68
- package/dist/sys/snapd.js.map +1 -1
- package/package.json +1 -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();
|
|
@@ -160,7 +170,7 @@ exports.PkgURL = {
|
|
|
160
170
|
},
|
|
161
171
|
};
|
|
162
172
|
function createBaseInstallRequest() {
|
|
163
|
-
return { appid: "", url: "", sha256: "", subdomain: undefined };
|
|
173
|
+
return { appid: "", url: "", sha256: "", subdomain: undefined, noResume: undefined };
|
|
164
174
|
}
|
|
165
175
|
exports.InstallRequest = {
|
|
166
176
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -176,31 +186,53 @@ exports.InstallRequest = {
|
|
|
176
186
|
if (message.subdomain !== undefined) {
|
|
177
187
|
writer.uint32(34).string(message.subdomain);
|
|
178
188
|
}
|
|
189
|
+
if (message.noResume !== undefined) {
|
|
190
|
+
writer.uint32(40).bool(message.noResume);
|
|
191
|
+
}
|
|
179
192
|
return writer;
|
|
180
193
|
},
|
|
181
194
|
decode(input, length) {
|
|
182
|
-
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);
|
|
183
196
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
184
197
|
const message = createBaseInstallRequest();
|
|
185
198
|
while (reader.pos < end) {
|
|
186
199
|
const tag = reader.uint32();
|
|
187
200
|
switch (tag >>> 3) {
|
|
188
201
|
case 1:
|
|
202
|
+
if (tag != 10) {
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
189
205
|
message.appid = reader.string();
|
|
190
|
-
|
|
206
|
+
continue;
|
|
191
207
|
case 2:
|
|
208
|
+
if (tag != 18) {
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
192
211
|
message.url = reader.string();
|
|
193
|
-
|
|
212
|
+
continue;
|
|
194
213
|
case 3:
|
|
214
|
+
if (tag != 26) {
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
195
217
|
message.sha256 = reader.string();
|
|
196
|
-
|
|
218
|
+
continue;
|
|
197
219
|
case 4:
|
|
220
|
+
if (tag != 34) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
198
223
|
message.subdomain = reader.string();
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
224
|
+
continue;
|
|
225
|
+
case 5:
|
|
226
|
+
if (tag != 40) {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
message.noResume = reader.bool();
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
233
|
+
break;
|
|
203
234
|
}
|
|
235
|
+
reader.skipType(tag & 7);
|
|
204
236
|
}
|
|
205
237
|
return message;
|
|
206
238
|
},
|
|
@@ -210,6 +242,7 @@ exports.InstallRequest = {
|
|
|
210
242
|
url: isSet(object.url) ? String(object.url) : "",
|
|
211
243
|
sha256: isSet(object.sha256) ? String(object.sha256) : "",
|
|
212
244
|
subdomain: isSet(object.subdomain) ? String(object.subdomain) : undefined,
|
|
245
|
+
noResume: isSet(object.noResume) ? Boolean(object.noResume) : undefined,
|
|
213
246
|
};
|
|
214
247
|
},
|
|
215
248
|
toJSON(message) {
|
|
@@ -218,15 +251,20 @@ exports.InstallRequest = {
|
|
|
218
251
|
message.url !== undefined && (obj.url = message.url);
|
|
219
252
|
message.sha256 !== undefined && (obj.sha256 = message.sha256);
|
|
220
253
|
message.subdomain !== undefined && (obj.subdomain = message.subdomain);
|
|
254
|
+
message.noResume !== undefined && (obj.noResume = message.noResume);
|
|
221
255
|
return obj;
|
|
222
256
|
},
|
|
257
|
+
create(base) {
|
|
258
|
+
return exports.InstallRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
259
|
+
},
|
|
223
260
|
fromPartial(object) {
|
|
224
|
-
var _a, _b, _c, _d;
|
|
261
|
+
var _a, _b, _c, _d, _e;
|
|
225
262
|
const message = createBaseInstallRequest();
|
|
226
263
|
message.appid = (_a = object.appid) !== null && _a !== void 0 ? _a : "";
|
|
227
264
|
message.url = (_b = object.url) !== null && _b !== void 0 ? _b : "";
|
|
228
265
|
message.sha256 = (_c = object.sha256) !== null && _c !== void 0 ? _c : "";
|
|
229
266
|
message.subdomain = (_d = object.subdomain) !== null && _d !== void 0 ? _d : undefined;
|
|
267
|
+
message.noResume = (_e = object.noResume) !== null && _e !== void 0 ? _e : undefined;
|
|
230
268
|
return message;
|
|
231
269
|
},
|
|
232
270
|
};
|
|
@@ -244,22 +282,29 @@ exports.UninstallRequest = {
|
|
|
244
282
|
return writer;
|
|
245
283
|
},
|
|
246
284
|
decode(input, length) {
|
|
247
|
-
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);
|
|
248
286
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
249
287
|
const message = createBaseUninstallRequest();
|
|
250
288
|
while (reader.pos < end) {
|
|
251
289
|
const tag = reader.uint32();
|
|
252
290
|
switch (tag >>> 3) {
|
|
253
291
|
case 1:
|
|
292
|
+
if (tag != 10) {
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
254
295
|
message.appid = reader.string();
|
|
255
|
-
|
|
296
|
+
continue;
|
|
256
297
|
case 2:
|
|
298
|
+
if (tag != 16) {
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
257
301
|
message.clearData = reader.bool();
|
|
258
|
-
|
|
259
|
-
default:
|
|
260
|
-
reader.skipType(tag & 7);
|
|
261
|
-
break;
|
|
302
|
+
continue;
|
|
262
303
|
}
|
|
304
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
reader.skipType(tag & 7);
|
|
263
308
|
}
|
|
264
309
|
return message;
|
|
265
310
|
},
|
|
@@ -275,6 +320,9 @@ exports.UninstallRequest = {
|
|
|
275
320
|
message.clearData !== undefined && (obj.clearData = message.clearData);
|
|
276
321
|
return obj;
|
|
277
322
|
},
|
|
323
|
+
create(base) {
|
|
324
|
+
return exports.UninstallRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
325
|
+
},
|
|
278
326
|
fromPartial(object) {
|
|
279
327
|
var _a, _b;
|
|
280
328
|
const message = createBaseUninstallRequest();
|
|
@@ -297,22 +345,29 @@ exports.AppDownloadProgress = {
|
|
|
297
345
|
return writer;
|
|
298
346
|
},
|
|
299
347
|
decode(input, length) {
|
|
300
|
-
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);
|
|
301
349
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
302
350
|
const message = createBaseAppDownloadProgress();
|
|
303
351
|
while (reader.pos < end) {
|
|
304
352
|
const tag = reader.uint32();
|
|
305
353
|
switch (tag >>> 3) {
|
|
306
354
|
case 1:
|
|
355
|
+
if (tag != 8) {
|
|
356
|
+
break;
|
|
357
|
+
}
|
|
307
358
|
message.current = longToNumber(reader.uint64());
|
|
308
|
-
|
|
359
|
+
continue;
|
|
309
360
|
case 2:
|
|
361
|
+
if (tag != 16) {
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
310
364
|
message.total = longToNumber(reader.uint64());
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
365
|
+
continue;
|
|
366
|
+
}
|
|
367
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
368
|
+
break;
|
|
315
369
|
}
|
|
370
|
+
reader.skipType(tag & 7);
|
|
316
371
|
}
|
|
317
372
|
return message;
|
|
318
373
|
},
|
|
@@ -328,6 +383,9 @@ exports.AppDownloadProgress = {
|
|
|
328
383
|
message.total !== undefined && (obj.total = Math.round(message.total));
|
|
329
384
|
return obj;
|
|
330
385
|
},
|
|
386
|
+
create(base) {
|
|
387
|
+
return exports.AppDownloadProgress.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
388
|
+
},
|
|
331
389
|
fromPartial(object) {
|
|
332
390
|
var _a, _b;
|
|
333
391
|
const message = createBaseAppDownloadProgress();
|
|
@@ -385,46 +443,77 @@ exports.AppInfo = {
|
|
|
385
443
|
return writer;
|
|
386
444
|
},
|
|
387
445
|
decode(input, length) {
|
|
388
|
-
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);
|
|
389
447
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
390
448
|
const message = createBaseAppInfo();
|
|
391
449
|
while (reader.pos < end) {
|
|
392
450
|
const tag = reader.uint32();
|
|
393
451
|
switch (tag >>> 3) {
|
|
394
452
|
case 1:
|
|
453
|
+
if (tag != 10) {
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
395
456
|
message.appid = reader.string();
|
|
396
|
-
|
|
457
|
+
continue;
|
|
397
458
|
case 2:
|
|
459
|
+
if (tag != 16) {
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
398
462
|
message.status = reader.int32();
|
|
399
|
-
|
|
463
|
+
continue;
|
|
400
464
|
case 3:
|
|
465
|
+
if (tag != 26) {
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
401
468
|
message.version = reader.string();
|
|
402
|
-
|
|
469
|
+
continue;
|
|
403
470
|
case 4:
|
|
471
|
+
if (tag != 34) {
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
404
474
|
message.title = reader.string();
|
|
405
|
-
|
|
475
|
+
continue;
|
|
406
476
|
case 5:
|
|
477
|
+
if (tag != 42) {
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
407
480
|
message.description = reader.string();
|
|
408
|
-
|
|
481
|
+
continue;
|
|
409
482
|
case 6:
|
|
483
|
+
if (tag != 50) {
|
|
484
|
+
break;
|
|
485
|
+
}
|
|
410
486
|
message.icon = reader.string();
|
|
411
|
-
|
|
487
|
+
continue;
|
|
412
488
|
case 7:
|
|
489
|
+
if (tag != 58) {
|
|
490
|
+
break;
|
|
491
|
+
}
|
|
413
492
|
message.domain = reader.string();
|
|
414
|
-
|
|
493
|
+
continue;
|
|
415
494
|
case 8:
|
|
495
|
+
if (tag != 66) {
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
416
498
|
message.downloadProgress = exports.AppDownloadProgress.decode(reader, reader.uint32());
|
|
417
|
-
|
|
499
|
+
continue;
|
|
418
500
|
case 9:
|
|
501
|
+
if (tag != 72) {
|
|
502
|
+
break;
|
|
503
|
+
}
|
|
419
504
|
message.builtin = reader.bool();
|
|
420
|
-
|
|
505
|
+
continue;
|
|
421
506
|
case 10:
|
|
507
|
+
if (tag != 82) {
|
|
508
|
+
break;
|
|
509
|
+
}
|
|
422
510
|
message.errorReason = reader.string();
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
511
|
+
continue;
|
|
512
|
+
}
|
|
513
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
514
|
+
break;
|
|
427
515
|
}
|
|
516
|
+
reader.skipType(tag & 7);
|
|
428
517
|
}
|
|
429
518
|
return message;
|
|
430
519
|
},
|
|
@@ -437,7 +526,9 @@ exports.AppInfo = {
|
|
|
437
526
|
description: isSet(object.description) ? String(object.description) : undefined,
|
|
438
527
|
icon: isSet(object.icon) ? String(object.icon) : undefined,
|
|
439
528
|
domain: isSet(object.domain) ? String(object.domain) : undefined,
|
|
440
|
-
downloadProgress: isSet(object.downloadProgress)
|
|
529
|
+
downloadProgress: isSet(object.downloadProgress)
|
|
530
|
+
? exports.AppDownloadProgress.fromJSON(object.downloadProgress)
|
|
531
|
+
: undefined,
|
|
441
532
|
builtin: isSet(object.builtin) ? Boolean(object.builtin) : undefined,
|
|
442
533
|
errorReason: isSet(object.errorReason) ? String(object.errorReason) : undefined,
|
|
443
534
|
};
|
|
@@ -451,11 +542,16 @@ exports.AppInfo = {
|
|
|
451
542
|
message.description !== undefined && (obj.description = message.description);
|
|
452
543
|
message.icon !== undefined && (obj.icon = message.icon);
|
|
453
544
|
message.domain !== undefined && (obj.domain = message.domain);
|
|
454
|
-
message.downloadProgress !== undefined && (obj.downloadProgress = message.downloadProgress
|
|
545
|
+
message.downloadProgress !== undefined && (obj.downloadProgress = message.downloadProgress
|
|
546
|
+
? exports.AppDownloadProgress.toJSON(message.downloadProgress)
|
|
547
|
+
: undefined);
|
|
455
548
|
message.builtin !== undefined && (obj.builtin = message.builtin);
|
|
456
549
|
message.errorReason !== undefined && (obj.errorReason = message.errorReason);
|
|
457
550
|
return obj;
|
|
458
551
|
},
|
|
552
|
+
create(base) {
|
|
553
|
+
return exports.AppInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
554
|
+
},
|
|
459
555
|
fromPartial(object) {
|
|
460
556
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
461
557
|
const message = createBaseAppInfo();
|
|
@@ -466,7 +562,9 @@ exports.AppInfo = {
|
|
|
466
562
|
message.description = (_e = object.description) !== null && _e !== void 0 ? _e : undefined;
|
|
467
563
|
message.icon = (_f = object.icon) !== null && _f !== void 0 ? _f : undefined;
|
|
468
564
|
message.domain = (_g = object.domain) !== null && _g !== void 0 ? _g : undefined;
|
|
469
|
-
message.downloadProgress = object.downloadProgress !== undefined && object.downloadProgress !== null
|
|
565
|
+
message.downloadProgress = (object.downloadProgress !== undefined && object.downloadProgress !== null)
|
|
566
|
+
? exports.AppDownloadProgress.fromPartial(object.downloadProgress)
|
|
567
|
+
: undefined;
|
|
470
568
|
message.builtin = (_h = object.builtin) !== null && _h !== void 0 ? _h : undefined;
|
|
471
569
|
message.errorReason = (_j = object.errorReason) !== null && _j !== void 0 ? _j : undefined;
|
|
472
570
|
return message;
|
|
@@ -483,19 +581,23 @@ exports.QueryApplicationRequest = {
|
|
|
483
581
|
return writer;
|
|
484
582
|
},
|
|
485
583
|
decode(input, length) {
|
|
486
|
-
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);
|
|
487
585
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
488
586
|
const message = createBaseQueryApplicationRequest();
|
|
489
587
|
while (reader.pos < end) {
|
|
490
588
|
const tag = reader.uint32();
|
|
491
589
|
switch (tag >>> 3) {
|
|
492
590
|
case 1:
|
|
591
|
+
if (tag != 10) {
|
|
592
|
+
break;
|
|
593
|
+
}
|
|
493
594
|
message.appidList.push(reader.string());
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
595
|
+
continue;
|
|
596
|
+
}
|
|
597
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
598
|
+
break;
|
|
498
599
|
}
|
|
600
|
+
reader.skipType(tag & 7);
|
|
499
601
|
}
|
|
500
602
|
return message;
|
|
501
603
|
},
|
|
@@ -505,17 +607,20 @@ exports.QueryApplicationRequest = {
|
|
|
505
607
|
toJSON(message) {
|
|
506
608
|
const obj = {};
|
|
507
609
|
if (message.appidList) {
|
|
508
|
-
obj.appidList = message.appidList.map(e => e);
|
|
610
|
+
obj.appidList = message.appidList.map((e) => e);
|
|
509
611
|
}
|
|
510
612
|
else {
|
|
511
613
|
obj.appidList = [];
|
|
512
614
|
}
|
|
513
615
|
return obj;
|
|
514
616
|
},
|
|
617
|
+
create(base) {
|
|
618
|
+
return exports.QueryApplicationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
619
|
+
},
|
|
515
620
|
fromPartial(object) {
|
|
516
621
|
var _a;
|
|
517
622
|
const message = createBaseQueryApplicationRequest();
|
|
518
|
-
message.appidList = ((_a = object.appidList) === null || _a === void 0 ? void 0 : _a.map(e => e)) || [];
|
|
623
|
+
message.appidList = ((_a = object.appidList) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
519
624
|
return message;
|
|
520
625
|
},
|
|
521
626
|
};
|
|
@@ -530,19 +635,23 @@ exports.QueryApplicationResponse = {
|
|
|
530
635
|
return writer;
|
|
531
636
|
},
|
|
532
637
|
decode(input, length) {
|
|
533
|
-
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);
|
|
534
639
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
535
640
|
const message = createBaseQueryApplicationResponse();
|
|
536
641
|
while (reader.pos < end) {
|
|
537
642
|
const tag = reader.uint32();
|
|
538
643
|
switch (tag >>> 3) {
|
|
539
644
|
case 1:
|
|
645
|
+
if (tag != 10) {
|
|
646
|
+
break;
|
|
647
|
+
}
|
|
540
648
|
message.infoList.push(exports.AppInfo.decode(reader, reader.uint32()));
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
649
|
+
continue;
|
|
650
|
+
}
|
|
651
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
652
|
+
break;
|
|
545
653
|
}
|
|
654
|
+
reader.skipType(tag & 7);
|
|
546
655
|
}
|
|
547
656
|
return message;
|
|
548
657
|
},
|
|
@@ -552,17 +661,20 @@ exports.QueryApplicationResponse = {
|
|
|
552
661
|
toJSON(message) {
|
|
553
662
|
const obj = {};
|
|
554
663
|
if (message.infoList) {
|
|
555
|
-
obj.infoList = message.infoList.map(e =>
|
|
664
|
+
obj.infoList = message.infoList.map((e) => e ? exports.AppInfo.toJSON(e) : undefined);
|
|
556
665
|
}
|
|
557
666
|
else {
|
|
558
667
|
obj.infoList = [];
|
|
559
668
|
}
|
|
560
669
|
return obj;
|
|
561
670
|
},
|
|
671
|
+
create(base) {
|
|
672
|
+
return exports.QueryApplicationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
673
|
+
},
|
|
562
674
|
fromPartial(object) {
|
|
563
675
|
var _a;
|
|
564
676
|
const message = createBaseQueryApplicationResponse();
|
|
565
|
-
message.infoList = ((_a = object.infoList) === null || _a === void 0 ? void 0 : _a.map(e => exports.AppInfo.fromPartial(e))) || [];
|
|
677
|
+
message.infoList = ((_a = object.infoList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.AppInfo.fromPartial(e))) || [];
|
|
566
678
|
return message;
|
|
567
679
|
},
|
|
568
680
|
};
|
|
@@ -603,37 +715,59 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
603
715
|
return writer;
|
|
604
716
|
},
|
|
605
717
|
decode(input, length) {
|
|
606
|
-
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);
|
|
607
719
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
608
720
|
const message = createBaseQueryAppStorageUsageRequest();
|
|
609
721
|
while (reader.pos < end) {
|
|
610
722
|
const tag = reader.uint32();
|
|
611
723
|
switch (tag >>> 3) {
|
|
612
724
|
case 1:
|
|
725
|
+
if (tag != 10) {
|
|
726
|
+
break;
|
|
727
|
+
}
|
|
613
728
|
message.appid = reader.string();
|
|
614
|
-
|
|
729
|
+
continue;
|
|
615
730
|
case 2:
|
|
731
|
+
if (tag != 16) {
|
|
732
|
+
break;
|
|
733
|
+
}
|
|
616
734
|
message.needPkg = reader.bool();
|
|
617
|
-
|
|
735
|
+
continue;
|
|
618
736
|
case 3:
|
|
737
|
+
if (tag != 24) {
|
|
738
|
+
break;
|
|
739
|
+
}
|
|
619
740
|
message.needData = reader.bool();
|
|
620
|
-
|
|
741
|
+
continue;
|
|
621
742
|
case 4:
|
|
743
|
+
if (tag != 32) {
|
|
744
|
+
break;
|
|
745
|
+
}
|
|
622
746
|
message.needCache = reader.bool();
|
|
623
|
-
|
|
747
|
+
continue;
|
|
624
748
|
case 5:
|
|
749
|
+
if (tag != 40) {
|
|
750
|
+
break;
|
|
751
|
+
}
|
|
625
752
|
message.needTmp = reader.bool();
|
|
626
|
-
|
|
753
|
+
continue;
|
|
627
754
|
case 6:
|
|
755
|
+
if (tag != 48) {
|
|
756
|
+
break;
|
|
757
|
+
}
|
|
628
758
|
message.needUserdata = reader.bool();
|
|
629
|
-
|
|
759
|
+
continue;
|
|
630
760
|
case 7:
|
|
761
|
+
if (tag != 56) {
|
|
762
|
+
break;
|
|
763
|
+
}
|
|
631
764
|
message.needImage = reader.bool();
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
765
|
+
continue;
|
|
766
|
+
}
|
|
767
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
768
|
+
break;
|
|
636
769
|
}
|
|
770
|
+
reader.skipType(tag & 7);
|
|
637
771
|
}
|
|
638
772
|
return message;
|
|
639
773
|
},
|
|
@@ -659,6 +793,9 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
659
793
|
message.needImage !== undefined && (obj.needImage = message.needImage);
|
|
660
794
|
return obj;
|
|
661
795
|
},
|
|
796
|
+
create(base) {
|
|
797
|
+
return exports.QueryAppStorageUsageRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
798
|
+
},
|
|
662
799
|
fromPartial(object) {
|
|
663
800
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
664
801
|
const message = createBaseQueryAppStorageUsageRequest();
|
|
@@ -698,37 +835,56 @@ exports.AppStorageUsage = {
|
|
|
698
835
|
return writer;
|
|
699
836
|
},
|
|
700
837
|
decode(input, length) {
|
|
701
|
-
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);
|
|
702
839
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
703
840
|
const message = createBaseAppStorageUsage();
|
|
704
841
|
while (reader.pos < end) {
|
|
705
842
|
const tag = reader.uint32();
|
|
706
843
|
switch (tag >>> 3) {
|
|
707
844
|
case 1:
|
|
845
|
+
if (tag != 8) {
|
|
846
|
+
break;
|
|
847
|
+
}
|
|
708
848
|
message.pkg = longToNumber(reader.uint64());
|
|
709
|
-
|
|
849
|
+
continue;
|
|
710
850
|
case 2:
|
|
851
|
+
if (tag != 16) {
|
|
852
|
+
break;
|
|
853
|
+
}
|
|
711
854
|
message.data = longToNumber(reader.uint64());
|
|
712
|
-
|
|
855
|
+
continue;
|
|
713
856
|
case 3:
|
|
857
|
+
if (tag != 24) {
|
|
858
|
+
break;
|
|
859
|
+
}
|
|
714
860
|
message.cache = longToNumber(reader.uint64());
|
|
715
|
-
|
|
861
|
+
continue;
|
|
716
862
|
case 4:
|
|
863
|
+
if (tag != 32) {
|
|
864
|
+
break;
|
|
865
|
+
}
|
|
717
866
|
message.tmp = longToNumber(reader.uint64());
|
|
718
|
-
|
|
867
|
+
continue;
|
|
719
868
|
case 5:
|
|
869
|
+
if (tag != 42) {
|
|
870
|
+
break;
|
|
871
|
+
}
|
|
720
872
|
const entry5 = exports.AppStorageUsage_UserdataEntry.decode(reader, reader.uint32());
|
|
721
873
|
if (entry5.value !== undefined) {
|
|
722
874
|
message.userdata[entry5.key] = entry5.value;
|
|
723
875
|
}
|
|
724
|
-
|
|
876
|
+
continue;
|
|
725
877
|
case 6:
|
|
878
|
+
if (tag != 48) {
|
|
879
|
+
break;
|
|
880
|
+
}
|
|
726
881
|
message.image = longToNumber(reader.uint64());
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
882
|
+
continue;
|
|
883
|
+
}
|
|
884
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
885
|
+
break;
|
|
731
886
|
}
|
|
887
|
+
reader.skipType(tag & 7);
|
|
732
888
|
}
|
|
733
889
|
return message;
|
|
734
890
|
},
|
|
@@ -762,6 +918,9 @@ exports.AppStorageUsage = {
|
|
|
762
918
|
message.image !== undefined && (obj.image = Math.round(message.image));
|
|
763
919
|
return obj;
|
|
764
920
|
},
|
|
921
|
+
create(base) {
|
|
922
|
+
return exports.AppStorageUsage.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
923
|
+
},
|
|
765
924
|
fromPartial(object) {
|
|
766
925
|
var _a, _b, _c, _d, _e, _f;
|
|
767
926
|
const message = createBaseAppStorageUsage();
|
|
@@ -793,22 +952,29 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
793
952
|
return writer;
|
|
794
953
|
},
|
|
795
954
|
decode(input, length) {
|
|
796
|
-
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);
|
|
797
956
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
798
957
|
const message = createBaseAppStorageUsage_UserdataEntry();
|
|
799
958
|
while (reader.pos < end) {
|
|
800
959
|
const tag = reader.uint32();
|
|
801
960
|
switch (tag >>> 3) {
|
|
802
961
|
case 1:
|
|
962
|
+
if (tag != 10) {
|
|
963
|
+
break;
|
|
964
|
+
}
|
|
803
965
|
message.key = reader.string();
|
|
804
|
-
|
|
966
|
+
continue;
|
|
805
967
|
case 2:
|
|
968
|
+
if (tag != 16) {
|
|
969
|
+
break;
|
|
970
|
+
}
|
|
806
971
|
message.value = longToNumber(reader.uint64());
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
972
|
+
continue;
|
|
973
|
+
}
|
|
974
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
975
|
+
break;
|
|
811
976
|
}
|
|
977
|
+
reader.skipType(tag & 7);
|
|
812
978
|
}
|
|
813
979
|
return message;
|
|
814
980
|
},
|
|
@@ -821,6 +987,9 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
821
987
|
message.value !== undefined && (obj.value = Math.round(message.value));
|
|
822
988
|
return obj;
|
|
823
989
|
},
|
|
990
|
+
create(base) {
|
|
991
|
+
return exports.AppStorageUsage_UserdataEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
992
|
+
},
|
|
824
993
|
fromPartial(object) {
|
|
825
994
|
var _a, _b;
|
|
826
995
|
const message = createBaseAppStorageUsage_UserdataEntry();
|
|
@@ -843,22 +1012,29 @@ exports.UserPermission = {
|
|
|
843
1012
|
return writer;
|
|
844
1013
|
},
|
|
845
1014
|
decode(input, length) {
|
|
846
|
-
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);
|
|
847
1016
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
848
1017
|
const message = createBaseUserPermission();
|
|
849
1018
|
while (reader.pos < end) {
|
|
850
1019
|
const tag = reader.uint32();
|
|
851
1020
|
switch (tag >>> 3) {
|
|
852
1021
|
case 1:
|
|
1022
|
+
if (tag != 10) {
|
|
1023
|
+
break;
|
|
1024
|
+
}
|
|
853
1025
|
message.uid = reader.string();
|
|
854
|
-
|
|
1026
|
+
continue;
|
|
855
1027
|
case 2:
|
|
1028
|
+
if (tag != 16) {
|
|
1029
|
+
break;
|
|
1030
|
+
}
|
|
856
1031
|
message.allowInstallApp = reader.bool();
|
|
857
|
-
|
|
858
|
-
default:
|
|
859
|
-
reader.skipType(tag & 7);
|
|
860
|
-
break;
|
|
1032
|
+
continue;
|
|
861
1033
|
}
|
|
1034
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1035
|
+
break;
|
|
1036
|
+
}
|
|
1037
|
+
reader.skipType(tag & 7);
|
|
862
1038
|
}
|
|
863
1039
|
return message;
|
|
864
1040
|
},
|
|
@@ -874,6 +1050,9 @@ exports.UserPermission = {
|
|
|
874
1050
|
message.allowInstallApp !== undefined && (obj.allowInstallApp = message.allowInstallApp);
|
|
875
1051
|
return obj;
|
|
876
1052
|
},
|
|
1053
|
+
create(base) {
|
|
1054
|
+
return exports.UserPermission.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1055
|
+
},
|
|
877
1056
|
fromPartial(object) {
|
|
878
1057
|
var _a, _b;
|
|
879
1058
|
const message = createBaseUserPermission();
|
|
@@ -893,19 +1072,23 @@ exports.GetUserPermissionsRequest = {
|
|
|
893
1072
|
return writer;
|
|
894
1073
|
},
|
|
895
1074
|
decode(input, length) {
|
|
896
|
-
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);
|
|
897
1076
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
898
1077
|
const message = createBaseGetUserPermissionsRequest();
|
|
899
1078
|
while (reader.pos < end) {
|
|
900
1079
|
const tag = reader.uint32();
|
|
901
1080
|
switch (tag >>> 3) {
|
|
902
1081
|
case 1:
|
|
1082
|
+
if (tag != 10) {
|
|
1083
|
+
break;
|
|
1084
|
+
}
|
|
903
1085
|
message.uid = reader.string();
|
|
904
|
-
|
|
905
|
-
default:
|
|
906
|
-
reader.skipType(tag & 7);
|
|
907
|
-
break;
|
|
1086
|
+
continue;
|
|
908
1087
|
}
|
|
1088
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1089
|
+
break;
|
|
1090
|
+
}
|
|
1091
|
+
reader.skipType(tag & 7);
|
|
909
1092
|
}
|
|
910
1093
|
return message;
|
|
911
1094
|
},
|
|
@@ -917,6 +1100,9 @@ exports.GetUserPermissionsRequest = {
|
|
|
917
1100
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
918
1101
|
return obj;
|
|
919
1102
|
},
|
|
1103
|
+
create(base) {
|
|
1104
|
+
return exports.GetUserPermissionsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1105
|
+
},
|
|
920
1106
|
fromPartial(object) {
|
|
921
1107
|
var _a;
|
|
922
1108
|
const message = createBaseGetUserPermissionsRequest();
|
|
@@ -935,19 +1121,23 @@ exports.Appid = {
|
|
|
935
1121
|
return writer;
|
|
936
1122
|
},
|
|
937
1123
|
decode(input, length) {
|
|
938
|
-
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);
|
|
939
1125
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
940
1126
|
const message = createBaseAppid();
|
|
941
1127
|
while (reader.pos < end) {
|
|
942
1128
|
const tag = reader.uint32();
|
|
943
1129
|
switch (tag >>> 3) {
|
|
944
1130
|
case 1:
|
|
1131
|
+
if (tag != 10) {
|
|
1132
|
+
break;
|
|
1133
|
+
}
|
|
945
1134
|
message.appid = reader.string();
|
|
946
|
-
|
|
947
|
-
default:
|
|
948
|
-
reader.skipType(tag & 7);
|
|
949
|
-
break;
|
|
1135
|
+
continue;
|
|
950
1136
|
}
|
|
1137
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1138
|
+
break;
|
|
1139
|
+
}
|
|
1140
|
+
reader.skipType(tag & 7);
|
|
951
1141
|
}
|
|
952
1142
|
return message;
|
|
953
1143
|
},
|
|
@@ -959,6 +1149,9 @@ exports.Appid = {
|
|
|
959
1149
|
message.appid !== undefined && (obj.appid = message.appid);
|
|
960
1150
|
return obj;
|
|
961
1151
|
},
|
|
1152
|
+
create(base) {
|
|
1153
|
+
return exports.Appid.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1154
|
+
},
|
|
962
1155
|
fromPartial(object) {
|
|
963
1156
|
var _a;
|
|
964
1157
|
const message = createBaseAppid();
|
|
@@ -983,25 +1176,35 @@ exports.GetActionURLRequest = {
|
|
|
983
1176
|
return writer;
|
|
984
1177
|
},
|
|
985
1178
|
decode(input, length) {
|
|
986
|
-
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);
|
|
987
1180
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
988
1181
|
const message = createBaseGetActionURLRequest();
|
|
989
1182
|
while (reader.pos < end) {
|
|
990
1183
|
const tag = reader.uint32();
|
|
991
1184
|
switch (tag >>> 3) {
|
|
992
1185
|
case 1:
|
|
1186
|
+
if (tag != 10) {
|
|
1187
|
+
break;
|
|
1188
|
+
}
|
|
993
1189
|
message.path = reader.string();
|
|
994
|
-
|
|
1190
|
+
continue;
|
|
995
1191
|
case 2:
|
|
1192
|
+
if (tag != 18) {
|
|
1193
|
+
break;
|
|
1194
|
+
}
|
|
996
1195
|
message.appid = reader.string();
|
|
997
|
-
|
|
1196
|
+
continue;
|
|
998
1197
|
case 3:
|
|
1198
|
+
if (tag != 24) {
|
|
1199
|
+
break;
|
|
1200
|
+
}
|
|
999
1201
|
message.action = reader.int32();
|
|
1000
|
-
|
|
1001
|
-
default:
|
|
1002
|
-
reader.skipType(tag & 7);
|
|
1003
|
-
break;
|
|
1202
|
+
continue;
|
|
1004
1203
|
}
|
|
1204
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1205
|
+
break;
|
|
1206
|
+
}
|
|
1207
|
+
reader.skipType(tag & 7);
|
|
1005
1208
|
}
|
|
1006
1209
|
return message;
|
|
1007
1210
|
},
|
|
@@ -1019,6 +1222,9 @@ exports.GetActionURLRequest = {
|
|
|
1019
1222
|
message.action !== undefined && (obj.action = actionToJSON(message.action));
|
|
1020
1223
|
return obj;
|
|
1021
1224
|
},
|
|
1225
|
+
create(base) {
|
|
1226
|
+
return exports.GetActionURLRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1227
|
+
},
|
|
1022
1228
|
fromPartial(object) {
|
|
1023
1229
|
var _a, _b, _c;
|
|
1024
1230
|
const message = createBaseGetActionURLRequest();
|
|
@@ -1039,19 +1245,23 @@ exports.GetActionURLResponse = {
|
|
|
1039
1245
|
return writer;
|
|
1040
1246
|
},
|
|
1041
1247
|
decode(input, length) {
|
|
1042
|
-
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);
|
|
1043
1249
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1044
1250
|
const message = createBaseGetActionURLResponse();
|
|
1045
1251
|
while (reader.pos < end) {
|
|
1046
1252
|
const tag = reader.uint32();
|
|
1047
1253
|
switch (tag >>> 3) {
|
|
1048
1254
|
case 1:
|
|
1255
|
+
if (tag != 10) {
|
|
1256
|
+
break;
|
|
1257
|
+
}
|
|
1049
1258
|
message.url = reader.string();
|
|
1050
|
-
|
|
1051
|
-
default:
|
|
1052
|
-
reader.skipType(tag & 7);
|
|
1053
|
-
break;
|
|
1259
|
+
continue;
|
|
1054
1260
|
}
|
|
1261
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1262
|
+
break;
|
|
1263
|
+
}
|
|
1264
|
+
reader.skipType(tag & 7);
|
|
1055
1265
|
}
|
|
1056
1266
|
return message;
|
|
1057
1267
|
},
|
|
@@ -1063,6 +1273,9 @@ exports.GetActionURLResponse = {
|
|
|
1063
1273
|
message.url !== undefined && (obj.url = message.url);
|
|
1064
1274
|
return obj;
|
|
1065
1275
|
},
|
|
1276
|
+
create(base) {
|
|
1277
|
+
return exports.GetActionURLResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1278
|
+
},
|
|
1066
1279
|
fromPartial(object) {
|
|
1067
1280
|
var _a;
|
|
1068
1281
|
const message = createBaseGetActionURLResponse();
|
|
@@ -1081,19 +1294,23 @@ exports.ListFileHandlerRequest = {
|
|
|
1081
1294
|
return writer;
|
|
1082
1295
|
},
|
|
1083
1296
|
decode(input, length) {
|
|
1084
|
-
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);
|
|
1085
1298
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1086
1299
|
const message = createBaseListFileHandlerRequest();
|
|
1087
1300
|
while (reader.pos < end) {
|
|
1088
1301
|
const tag = reader.uint32();
|
|
1089
1302
|
switch (tag >>> 3) {
|
|
1090
1303
|
case 1:
|
|
1304
|
+
if (tag != 10) {
|
|
1305
|
+
break;
|
|
1306
|
+
}
|
|
1091
1307
|
message.mimetype = reader.string();
|
|
1092
|
-
|
|
1093
|
-
default:
|
|
1094
|
-
reader.skipType(tag & 7);
|
|
1095
|
-
break;
|
|
1308
|
+
continue;
|
|
1096
1309
|
}
|
|
1310
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1311
|
+
break;
|
|
1312
|
+
}
|
|
1313
|
+
reader.skipType(tag & 7);
|
|
1097
1314
|
}
|
|
1098
1315
|
return message;
|
|
1099
1316
|
},
|
|
@@ -1105,6 +1322,9 @@ exports.ListFileHandlerRequest = {
|
|
|
1105
1322
|
message.mimetype !== undefined && (obj.mimetype = message.mimetype);
|
|
1106
1323
|
return obj;
|
|
1107
1324
|
},
|
|
1325
|
+
create(base) {
|
|
1326
|
+
return exports.ListFileHandlerRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1327
|
+
},
|
|
1108
1328
|
fromPartial(object) {
|
|
1109
1329
|
var _a;
|
|
1110
1330
|
const message = createBaseListFileHandlerRequest();
|
|
@@ -1129,25 +1349,35 @@ exports.FileHandlerInfo = {
|
|
|
1129
1349
|
return writer;
|
|
1130
1350
|
},
|
|
1131
1351
|
decode(input, length) {
|
|
1132
|
-
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);
|
|
1133
1353
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1134
1354
|
const message = createBaseFileHandlerInfo();
|
|
1135
1355
|
while (reader.pos < end) {
|
|
1136
1356
|
const tag = reader.uint32();
|
|
1137
1357
|
switch (tag >>> 3) {
|
|
1138
1358
|
case 1:
|
|
1359
|
+
if (tag != 10) {
|
|
1360
|
+
break;
|
|
1361
|
+
}
|
|
1139
1362
|
message.appid = reader.string();
|
|
1140
|
-
|
|
1363
|
+
continue;
|
|
1141
1364
|
case 2:
|
|
1365
|
+
if (tag != 18) {
|
|
1366
|
+
break;
|
|
1367
|
+
}
|
|
1142
1368
|
message.title = reader.string();
|
|
1143
|
-
|
|
1369
|
+
continue;
|
|
1144
1370
|
case 3:
|
|
1371
|
+
if (tag != 26) {
|
|
1372
|
+
break;
|
|
1373
|
+
}
|
|
1145
1374
|
message.icon = reader.string();
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1375
|
+
continue;
|
|
1376
|
+
}
|
|
1377
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1378
|
+
break;
|
|
1150
1379
|
}
|
|
1380
|
+
reader.skipType(tag & 7);
|
|
1151
1381
|
}
|
|
1152
1382
|
return message;
|
|
1153
1383
|
},
|
|
@@ -1165,6 +1395,9 @@ exports.FileHandlerInfo = {
|
|
|
1165
1395
|
message.icon !== undefined && (obj.icon = message.icon);
|
|
1166
1396
|
return obj;
|
|
1167
1397
|
},
|
|
1398
|
+
create(base) {
|
|
1399
|
+
return exports.FileHandlerInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1400
|
+
},
|
|
1168
1401
|
fromPartial(object) {
|
|
1169
1402
|
var _a, _b, _c;
|
|
1170
1403
|
const message = createBaseFileHandlerInfo();
|
|
@@ -1185,19 +1418,23 @@ exports.ListFileHandlerResponse = {
|
|
|
1185
1418
|
return writer;
|
|
1186
1419
|
},
|
|
1187
1420
|
decode(input, length) {
|
|
1188
|
-
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);
|
|
1189
1422
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1190
1423
|
const message = createBaseListFileHandlerResponse();
|
|
1191
1424
|
while (reader.pos < end) {
|
|
1192
1425
|
const tag = reader.uint32();
|
|
1193
1426
|
switch (tag >>> 3) {
|
|
1194
1427
|
case 1:
|
|
1428
|
+
if (tag != 10) {
|
|
1429
|
+
break;
|
|
1430
|
+
}
|
|
1195
1431
|
message.infoList.push(exports.FileHandlerInfo.decode(reader, reader.uint32()));
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1432
|
+
continue;
|
|
1433
|
+
}
|
|
1434
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1435
|
+
break;
|
|
1200
1436
|
}
|
|
1437
|
+
reader.skipType(tag & 7);
|
|
1201
1438
|
}
|
|
1202
1439
|
return message;
|
|
1203
1440
|
},
|
|
@@ -1209,17 +1446,20 @@ exports.ListFileHandlerResponse = {
|
|
|
1209
1446
|
toJSON(message) {
|
|
1210
1447
|
const obj = {};
|
|
1211
1448
|
if (message.infoList) {
|
|
1212
|
-
obj.infoList = message.infoList.map(e =>
|
|
1449
|
+
obj.infoList = message.infoList.map((e) => e ? exports.FileHandlerInfo.toJSON(e) : undefined);
|
|
1213
1450
|
}
|
|
1214
1451
|
else {
|
|
1215
1452
|
obj.infoList = [];
|
|
1216
1453
|
}
|
|
1217
1454
|
return obj;
|
|
1218
1455
|
},
|
|
1456
|
+
create(base) {
|
|
1457
|
+
return exports.ListFileHandlerResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1458
|
+
},
|
|
1219
1459
|
fromPartial(object) {
|
|
1220
1460
|
var _a;
|
|
1221
1461
|
const message = createBaseListFileHandlerResponse();
|
|
1222
|
-
message.infoList = ((_a = object.infoList) === null || _a === void 0 ? void 0 : _a.map(e => exports.FileHandlerInfo.fromPartial(e))) || [];
|
|
1462
|
+
message.infoList = ((_a = object.infoList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.FileHandlerInfo.fromPartial(e))) || [];
|
|
1223
1463
|
return message;
|
|
1224
1464
|
},
|
|
1225
1465
|
};
|
|
@@ -1237,22 +1477,29 @@ exports.AppInstance = {
|
|
|
1237
1477
|
return writer;
|
|
1238
1478
|
},
|
|
1239
1479
|
decode(input, length) {
|
|
1240
|
-
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);
|
|
1241
1481
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1242
1482
|
const message = createBaseAppInstance();
|
|
1243
1483
|
while (reader.pos < end) {
|
|
1244
1484
|
const tag = reader.uint32();
|
|
1245
1485
|
switch (tag >>> 3) {
|
|
1246
1486
|
case 1:
|
|
1487
|
+
if (tag != 10) {
|
|
1488
|
+
break;
|
|
1489
|
+
}
|
|
1247
1490
|
message.appid = reader.string();
|
|
1248
|
-
|
|
1491
|
+
continue;
|
|
1249
1492
|
case 2:
|
|
1493
|
+
if (tag != 18) {
|
|
1494
|
+
break;
|
|
1495
|
+
}
|
|
1250
1496
|
message.uid = reader.string();
|
|
1251
|
-
|
|
1252
|
-
default:
|
|
1253
|
-
reader.skipType(tag & 7);
|
|
1254
|
-
break;
|
|
1497
|
+
continue;
|
|
1255
1498
|
}
|
|
1499
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1500
|
+
break;
|
|
1501
|
+
}
|
|
1502
|
+
reader.skipType(tag & 7);
|
|
1256
1503
|
}
|
|
1257
1504
|
return message;
|
|
1258
1505
|
},
|
|
@@ -1265,6 +1512,9 @@ exports.AppInstance = {
|
|
|
1265
1512
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
1266
1513
|
return obj;
|
|
1267
1514
|
},
|
|
1515
|
+
create(base) {
|
|
1516
|
+
return exports.AppInstance.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1517
|
+
},
|
|
1268
1518
|
fromPartial(object) {
|
|
1269
1519
|
var _a, _b;
|
|
1270
1520
|
const message = createBaseAppInstance();
|
|
@@ -1340,8 +1590,9 @@ exports.PackageManagerInstallDesc = {
|
|
|
1340
1590
|
},
|
|
1341
1591
|
responseType: {
|
|
1342
1592
|
deserializeBinary(data) {
|
|
1343
|
-
|
|
1344
|
-
|
|
1593
|
+
const value = empty_1.Empty.decode(data);
|
|
1594
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1595
|
+
return value;
|
|
1345
1596
|
} });
|
|
1346
1597
|
},
|
|
1347
1598
|
},
|
|
@@ -1358,8 +1609,9 @@ exports.PackageManagerUninstallDesc = {
|
|
|
1358
1609
|
},
|
|
1359
1610
|
responseType: {
|
|
1360
1611
|
deserializeBinary(data) {
|
|
1361
|
-
|
|
1362
|
-
|
|
1612
|
+
const value = empty_1.Empty.decode(data);
|
|
1613
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1614
|
+
return value;
|
|
1363
1615
|
} });
|
|
1364
1616
|
},
|
|
1365
1617
|
},
|
|
@@ -1376,8 +1628,9 @@ exports.PackageManagerPauseDesc = {
|
|
|
1376
1628
|
},
|
|
1377
1629
|
responseType: {
|
|
1378
1630
|
deserializeBinary(data) {
|
|
1379
|
-
|
|
1380
|
-
|
|
1631
|
+
const value = empty_1.Empty.decode(data);
|
|
1632
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1633
|
+
return value;
|
|
1381
1634
|
} });
|
|
1382
1635
|
},
|
|
1383
1636
|
},
|
|
@@ -1394,8 +1647,9 @@ exports.PackageManagerResumeDesc = {
|
|
|
1394
1647
|
},
|
|
1395
1648
|
responseType: {
|
|
1396
1649
|
deserializeBinary(data) {
|
|
1397
|
-
|
|
1398
|
-
|
|
1650
|
+
const value = empty_1.Empty.decode(data);
|
|
1651
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1652
|
+
return value;
|
|
1399
1653
|
} });
|
|
1400
1654
|
},
|
|
1401
1655
|
},
|
|
@@ -1412,8 +1666,9 @@ exports.PackageManagerClearCacheDesc = {
|
|
|
1412
1666
|
},
|
|
1413
1667
|
responseType: {
|
|
1414
1668
|
deserializeBinary(data) {
|
|
1415
|
-
|
|
1416
|
-
|
|
1669
|
+
const value = empty_1.Empty.decode(data);
|
|
1670
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1671
|
+
return value;
|
|
1417
1672
|
} });
|
|
1418
1673
|
},
|
|
1419
1674
|
},
|
|
@@ -1430,8 +1685,9 @@ exports.PackageManagerQueryApplicationDesc = {
|
|
|
1430
1685
|
},
|
|
1431
1686
|
responseType: {
|
|
1432
1687
|
deserializeBinary(data) {
|
|
1433
|
-
|
|
1434
|
-
|
|
1688
|
+
const value = exports.QueryApplicationResponse.decode(data);
|
|
1689
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1690
|
+
return value;
|
|
1435
1691
|
} });
|
|
1436
1692
|
},
|
|
1437
1693
|
},
|
|
@@ -1448,8 +1704,9 @@ exports.PackageManagerQueryAppStorageUsageDesc = {
|
|
|
1448
1704
|
},
|
|
1449
1705
|
responseType: {
|
|
1450
1706
|
deserializeBinary(data) {
|
|
1451
|
-
|
|
1452
|
-
|
|
1707
|
+
const value = exports.AppStorageUsage.decode(data);
|
|
1708
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1709
|
+
return value;
|
|
1453
1710
|
} });
|
|
1454
1711
|
},
|
|
1455
1712
|
},
|
|
@@ -1466,8 +1723,9 @@ exports.PackageManagerSetUserPermissionsDesc = {
|
|
|
1466
1723
|
},
|
|
1467
1724
|
responseType: {
|
|
1468
1725
|
deserializeBinary(data) {
|
|
1469
|
-
|
|
1470
|
-
|
|
1726
|
+
const value = empty_1.Empty.decode(data);
|
|
1727
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1728
|
+
return value;
|
|
1471
1729
|
} });
|
|
1472
1730
|
},
|
|
1473
1731
|
},
|
|
@@ -1484,8 +1742,9 @@ exports.PackageManagerGetUserPermissionsDesc = {
|
|
|
1484
1742
|
},
|
|
1485
1743
|
responseType: {
|
|
1486
1744
|
deserializeBinary(data) {
|
|
1487
|
-
|
|
1488
|
-
|
|
1745
|
+
const value = exports.UserPermission.decode(data);
|
|
1746
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1747
|
+
return value;
|
|
1489
1748
|
} });
|
|
1490
1749
|
},
|
|
1491
1750
|
},
|
|
@@ -1502,8 +1761,9 @@ exports.PackageManagerPauseAppDownloadDesc = {
|
|
|
1502
1761
|
},
|
|
1503
1762
|
responseType: {
|
|
1504
1763
|
deserializeBinary(data) {
|
|
1505
|
-
|
|
1506
|
-
|
|
1764
|
+
const value = empty_1.Empty.decode(data);
|
|
1765
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1766
|
+
return value;
|
|
1507
1767
|
} });
|
|
1508
1768
|
},
|
|
1509
1769
|
},
|
|
@@ -1520,8 +1780,9 @@ exports.PackageManagerGetActionURLDesc = {
|
|
|
1520
1780
|
},
|
|
1521
1781
|
responseType: {
|
|
1522
1782
|
deserializeBinary(data) {
|
|
1523
|
-
|
|
1524
|
-
|
|
1783
|
+
const value = exports.GetActionURLResponse.decode(data);
|
|
1784
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1785
|
+
return value;
|
|
1525
1786
|
} });
|
|
1526
1787
|
},
|
|
1527
1788
|
},
|
|
@@ -1538,8 +1799,9 @@ exports.PackageManagerListFileHandlerDesc = {
|
|
|
1538
1799
|
},
|
|
1539
1800
|
responseType: {
|
|
1540
1801
|
deserializeBinary(data) {
|
|
1541
|
-
|
|
1542
|
-
|
|
1802
|
+
const value = exports.ListFileHandlerResponse.decode(data);
|
|
1803
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1804
|
+
return value;
|
|
1543
1805
|
} });
|
|
1544
1806
|
},
|
|
1545
1807
|
},
|
|
@@ -1552,7 +1814,9 @@ class GrpcWebImpl {
|
|
|
1552
1814
|
unary(methodDesc, _request, metadata) {
|
|
1553
1815
|
var _a;
|
|
1554
1816
|
const request = Object.assign(Object.assign({}, _request), methodDesc.requestType);
|
|
1555
|
-
const maybeCombinedMetadata = metadata && this.options.metadata
|
|
1817
|
+
const maybeCombinedMetadata = metadata && this.options.metadata
|
|
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))
|
|
1819
|
+
: metadata || this.options.metadata;
|
|
1556
1820
|
return new Promise((resolve, reject) => {
|
|
1557
1821
|
grpc_web_1.grpc.unary(methodDesc, {
|
|
1558
1822
|
request,
|
|
@@ -1562,7 +1826,7 @@ class GrpcWebImpl {
|
|
|
1562
1826
|
debug: this.options.debug,
|
|
1563
1827
|
onEnd: function (response) {
|
|
1564
1828
|
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
1565
|
-
resolve(response.message);
|
|
1829
|
+
resolve(response.message.toObject());
|
|
1566
1830
|
}
|
|
1567
1831
|
else {
|
|
1568
1832
|
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
@@ -1574,7 +1838,7 @@ class GrpcWebImpl {
|
|
|
1574
1838
|
}
|
|
1575
1839
|
}
|
|
1576
1840
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
1577
|
-
var
|
|
1841
|
+
var tsProtoGlobalThis = (() => {
|
|
1578
1842
|
if (typeof globalThis !== "undefined") {
|
|
1579
1843
|
return globalThis;
|
|
1580
1844
|
}
|
|
@@ -1591,7 +1855,7 @@ var globalThis = (() => {
|
|
|
1591
1855
|
})();
|
|
1592
1856
|
function longToNumber(long) {
|
|
1593
1857
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
1594
|
-
throw new
|
|
1858
|
+
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1595
1859
|
}
|
|
1596
1860
|
return long.toNumber();
|
|
1597
1861
|
}
|
|
@@ -1605,7 +1869,7 @@ function isObject(value) {
|
|
|
1605
1869
|
function isSet(value) {
|
|
1606
1870
|
return value !== null && value !== undefined;
|
|
1607
1871
|
}
|
|
1608
|
-
class GrpcWebError extends Error {
|
|
1872
|
+
class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
1609
1873
|
constructor(message, code, metadata) {
|
|
1610
1874
|
super(message);
|
|
1611
1875
|
this.code = code;
|