@lazycatcloud/sdk 0.1.298 → 0.1.299
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/apk_shell.d.ts +2 -3
- package/dist/common/apk_shell.d.ts.map +1 -1
- package/dist/common/apk_shell.js +54 -67
- package/dist/common/apk_shell.js.map +1 -1
- package/dist/common/box.d.ts +2 -3
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +134 -113
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +2 -3
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +86 -91
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +2 -3
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +115 -112
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/file_handler.d.ts +2 -3
- package/dist/common/file_handler.d.ts.map +1 -1
- package/dist/common/file_handler.js +195 -162
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +2 -3
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +355 -273
- package/dist/common/filetrans.js.map +1 -1
- package/dist/common/gateway.d.ts +2 -3
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +87 -79
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/media_meta.d.ts +2 -3
- package/dist/common/media_meta.d.ts.map +1 -1
- package/dist/common/media_meta.js +81 -90
- package/dist/common/media_meta.js.map +1 -1
- package/dist/common/message.d.ts +2 -3
- package/dist/common/message.d.ts.map +1 -1
- package/dist/common/message.js +141 -128
- package/dist/common/message.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +2 -3
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +128 -124
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts +2 -3
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +69 -75
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +2 -3
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +133 -117
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts +2 -3
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +144 -129
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/extentions/app_common.d.ts +3 -3
- package/dist/extentions/app_common.d.ts.map +1 -1
- package/dist/extentions/app_common.js +6 -6
- package/dist/extentions/app_common.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +724 -607
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.d.ts.map +1 -1
- package/dist/google/protobuf/empty.js +1 -1
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +13 -24
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/localdevice/client.d.ts +2 -3
- package/dist/localdevice/client.d.ts.map +1 -1
- package/dist/localdevice/client.js +22 -40
- package/dist/localdevice/client.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts +2 -3
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +74 -89
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/config.d.ts +2 -3
- package/dist/localdevice/config.d.ts.map +1 -1
- package/dist/localdevice/config.js +63 -65
- package/dist/localdevice/config.js.map +1 -1
- package/dist/localdevice/device.d.ts +2 -3
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +35 -47
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +2 -3
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +85 -83
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/local-launch.d.ts +2 -3
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +96 -90
- package/dist/localdevice/local-launch.js.map +1 -1
- package/dist/localdevice/network.d.ts +2 -3
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +19 -37
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts +2 -3
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +84 -88
- package/dist/localdevice/permission.js.map +1 -1
- package/dist/localdevice/photo.d.ts +2 -3
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +348 -280
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/localdevice/remote-input-method.d.ts +6 -3
- package/dist/localdevice/remote-input-method.d.ts.map +1 -1
- package/dist/localdevice/remote-input-method.js +76 -70
- package/dist/localdevice/remote-input-method.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/sys/OS_snapshot.d.ts +2 -3
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +177 -147
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +2 -3
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +66 -70
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/btled.d.ts +2 -3
- package/dist/sys/btled.d.ts.map +1 -1
- package/dist/sys/btled.js +70 -80
- package/dist/sys/btled.js.map +1 -1
- package/dist/sys/btrfs.d.ts +2 -3
- package/dist/sys/btrfs.d.ts.map +1 -1
- package/dist/sys/btrfs.js +80 -76
- package/dist/sys/btrfs.js.map +1 -1
- package/dist/sys/devopt.d.ts +2 -3
- package/dist/sys/devopt.d.ts.map +1 -1
- package/dist/sys/devopt.js +52 -58
- package/dist/sys/devopt.js.map +1 -1
- package/dist/sys/dirmon.d.ts +2 -3
- package/dist/sys/dirmon.d.ts.map +1 -1
- package/dist/sys/dirmon.js +41 -61
- package/dist/sys/dirmon.js.map +1 -1
- package/dist/sys/event.d.ts +2 -3
- package/dist/sys/event.d.ts.map +1 -1
- package/dist/sys/event.js +82 -87
- package/dist/sys/event.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +2 -3
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +155 -134
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +2 -3
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +44 -58
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/installer.d.ts +2 -3
- package/dist/sys/installer.d.ts.map +1 -1
- package/dist/sys/installer.js +99 -101
- package/dist/sys/installer.js.map +1 -1
- package/dist/sys/network_manager.d.ts +2 -3
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +144 -117
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +2 -3
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +313 -230
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +2 -3
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +358 -270
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +2 -3
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +88 -88
- package/dist/sys/snapd.js.map +1 -1
- package/dist/sys/version.d.ts +2 -3
- package/dist/sys/version.d.ts.map +1 -1
- package/dist/sys/version.js +15 -35
- package/dist/sys/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/lanforward/lanforward.d.ts +0 -99
- package/dist/lanforward/lanforward.d.ts.map +0 -1
- package/dist/lanforward/lanforward.js +0 -254
- package/dist/lanforward/lanforward.js.map +0 -1
- package/dist/ssdp/ssdp.d.ts +0 -113
- package/dist/ssdp/ssdp.d.ts.map +0 -1
- package/dist/ssdp/ssdp.js +0 -292
- package/dist/ssdp/ssdp.js.map +0 -1
- package/dist/sys/OS_daemon.d.ts +0 -111
- package/dist/sys/OS_daemon.d.ts.map +0 -1
- package/dist/sys/OS_daemon.js +0 -281
- package/dist/sys/OS_daemon.js.map +0 -1
- package/dist/sys/box-status.d.ts +0 -572
- package/dist/sys/box-status.d.ts.map +0 -1
- package/dist/sys/box-status.js +0 -911
- package/dist/sys/box-status.js.map +0 -1
|
@@ -82,31 +82,31 @@ exports.WalkDirRequest = {
|
|
|
82
82
|
const tag = reader.uint32();
|
|
83
83
|
switch (tag >>> 3) {
|
|
84
84
|
case 1:
|
|
85
|
-
if (tag
|
|
85
|
+
if (tag !== 10) {
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
88
|
message.path = reader.string();
|
|
89
89
|
continue;
|
|
90
90
|
case 2:
|
|
91
|
-
if (tag
|
|
91
|
+
if (tag !== 18) {
|
|
92
92
|
break;
|
|
93
93
|
}
|
|
94
94
|
message.pattern = reader.string();
|
|
95
95
|
continue;
|
|
96
96
|
case 3:
|
|
97
|
-
if (tag
|
|
97
|
+
if (tag !== 24) {
|
|
98
98
|
break;
|
|
99
99
|
}
|
|
100
100
|
message.workerCount = reader.int32();
|
|
101
101
|
continue;
|
|
102
102
|
case 4:
|
|
103
|
-
if (tag
|
|
103
|
+
if (tag !== 32) {
|
|
104
104
|
break;
|
|
105
105
|
}
|
|
106
106
|
message.depth = reader.int32();
|
|
107
107
|
continue;
|
|
108
108
|
}
|
|
109
|
-
if ((tag & 7)
|
|
109
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
110
110
|
break;
|
|
111
111
|
}
|
|
112
112
|
reader.skipType(tag & 7);
|
|
@@ -115,18 +115,26 @@ exports.WalkDirRequest = {
|
|
|
115
115
|
},
|
|
116
116
|
fromJSON(object) {
|
|
117
117
|
return {
|
|
118
|
-
path: isSet(object.path) ? String(object.path) : "",
|
|
119
|
-
pattern: isSet(object.pattern) ? String(object.pattern) : undefined,
|
|
120
|
-
workerCount: isSet(object.workerCount) ? Number(object.workerCount) : undefined,
|
|
121
|
-
depth: isSet(object.depth) ? Number(object.depth) : undefined,
|
|
118
|
+
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
119
|
+
pattern: isSet(object.pattern) ? globalThis.String(object.pattern) : undefined,
|
|
120
|
+
workerCount: isSet(object.workerCount) ? globalThis.Number(object.workerCount) : undefined,
|
|
121
|
+
depth: isSet(object.depth) ? globalThis.Number(object.depth) : undefined,
|
|
122
122
|
};
|
|
123
123
|
},
|
|
124
124
|
toJSON(message) {
|
|
125
125
|
const obj = {};
|
|
126
|
-
message.path !==
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
message.
|
|
126
|
+
if (message.path !== "") {
|
|
127
|
+
obj.path = message.path;
|
|
128
|
+
}
|
|
129
|
+
if (message.pattern !== undefined) {
|
|
130
|
+
obj.pattern = message.pattern;
|
|
131
|
+
}
|
|
132
|
+
if (message.workerCount !== undefined) {
|
|
133
|
+
obj.workerCount = Math.round(message.workerCount);
|
|
134
|
+
}
|
|
135
|
+
if (message.depth !== undefined) {
|
|
136
|
+
obj.depth = Math.round(message.depth);
|
|
137
|
+
}
|
|
130
138
|
return obj;
|
|
131
139
|
},
|
|
132
140
|
create(base) {
|
|
@@ -172,37 +180,37 @@ exports.WalkDirReply = {
|
|
|
172
180
|
const tag = reader.uint32();
|
|
173
181
|
switch (tag >>> 3) {
|
|
174
182
|
case 1:
|
|
175
|
-
if (tag
|
|
183
|
+
if (tag !== 10) {
|
|
176
184
|
break;
|
|
177
185
|
}
|
|
178
186
|
message.path = reader.string();
|
|
179
187
|
continue;
|
|
180
188
|
case 2:
|
|
181
|
-
if (tag
|
|
189
|
+
if (tag !== 18) {
|
|
182
190
|
break;
|
|
183
191
|
}
|
|
184
192
|
message.base = reader.string();
|
|
185
193
|
continue;
|
|
186
194
|
case 3:
|
|
187
|
-
if (tag
|
|
195
|
+
if (tag !== 24) {
|
|
188
196
|
break;
|
|
189
197
|
}
|
|
190
198
|
message.size = longToNumber(reader.int64());
|
|
191
199
|
continue;
|
|
192
200
|
case 4:
|
|
193
|
-
if (tag
|
|
201
|
+
if (tag !== 32) {
|
|
194
202
|
break;
|
|
195
203
|
}
|
|
196
204
|
message.isDir = reader.bool();
|
|
197
205
|
continue;
|
|
198
206
|
case 5:
|
|
199
|
-
if (tag
|
|
207
|
+
if (tag !== 42) {
|
|
200
208
|
break;
|
|
201
209
|
}
|
|
202
210
|
message.mtime = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
203
211
|
continue;
|
|
204
212
|
}
|
|
205
|
-
if ((tag & 7)
|
|
213
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
206
214
|
break;
|
|
207
215
|
}
|
|
208
216
|
reader.skipType(tag & 7);
|
|
@@ -211,20 +219,30 @@ exports.WalkDirReply = {
|
|
|
211
219
|
},
|
|
212
220
|
fromJSON(object) {
|
|
213
221
|
return {
|
|
214
|
-
path: isSet(object.path) ? String(object.path) : "",
|
|
215
|
-
base: isSet(object.base) ? String(object.base) : "",
|
|
216
|
-
size: isSet(object.size) ? Number(object.size) : 0,
|
|
217
|
-
isDir: isSet(object.isDir) ? Boolean(object.isDir) : false,
|
|
222
|
+
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
223
|
+
base: isSet(object.base) ? globalThis.String(object.base) : "",
|
|
224
|
+
size: isSet(object.size) ? globalThis.Number(object.size) : 0,
|
|
225
|
+
isDir: isSet(object.isDir) ? globalThis.Boolean(object.isDir) : false,
|
|
218
226
|
mtime: isSet(object.mtime) ? fromJsonTimestamp(object.mtime) : undefined,
|
|
219
227
|
};
|
|
220
228
|
},
|
|
221
229
|
toJSON(message) {
|
|
222
230
|
const obj = {};
|
|
223
|
-
message.path !==
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
message.
|
|
227
|
-
|
|
231
|
+
if (message.path !== "") {
|
|
232
|
+
obj.path = message.path;
|
|
233
|
+
}
|
|
234
|
+
if (message.base !== "") {
|
|
235
|
+
obj.base = message.base;
|
|
236
|
+
}
|
|
237
|
+
if (message.size !== 0) {
|
|
238
|
+
obj.size = Math.round(message.size);
|
|
239
|
+
}
|
|
240
|
+
if (message.isDir === true) {
|
|
241
|
+
obj.isDir = message.isDir;
|
|
242
|
+
}
|
|
243
|
+
if (message.mtime !== undefined) {
|
|
244
|
+
obj.mtime = message.mtime.toISOString();
|
|
245
|
+
}
|
|
228
246
|
return obj;
|
|
229
247
|
},
|
|
230
248
|
create(base) {
|
|
@@ -259,13 +277,13 @@ exports.CreateDirRequest = {
|
|
|
259
277
|
const tag = reader.uint32();
|
|
260
278
|
switch (tag >>> 3) {
|
|
261
279
|
case 1:
|
|
262
|
-
if (tag
|
|
280
|
+
if (tag !== 10) {
|
|
263
281
|
break;
|
|
264
282
|
}
|
|
265
283
|
message.path = reader.string();
|
|
266
284
|
continue;
|
|
267
285
|
}
|
|
268
|
-
if ((tag & 7)
|
|
286
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
269
287
|
break;
|
|
270
288
|
}
|
|
271
289
|
reader.skipType(tag & 7);
|
|
@@ -273,11 +291,13 @@ exports.CreateDirRequest = {
|
|
|
273
291
|
return message;
|
|
274
292
|
},
|
|
275
293
|
fromJSON(object) {
|
|
276
|
-
return { path: isSet(object.path) ? String(object.path) : "" };
|
|
294
|
+
return { path: isSet(object.path) ? globalThis.String(object.path) : "" };
|
|
277
295
|
},
|
|
278
296
|
toJSON(message) {
|
|
279
297
|
const obj = {};
|
|
280
|
-
message.path !==
|
|
298
|
+
if (message.path !== "") {
|
|
299
|
+
obj.path = message.path;
|
|
300
|
+
}
|
|
281
301
|
return obj;
|
|
282
302
|
},
|
|
283
303
|
create(base) {
|
|
@@ -308,13 +328,13 @@ exports.OpenFileManagerRequest = {
|
|
|
308
328
|
const tag = reader.uint32();
|
|
309
329
|
switch (tag >>> 3) {
|
|
310
330
|
case 1:
|
|
311
|
-
if (tag
|
|
331
|
+
if (tag !== 10) {
|
|
312
332
|
break;
|
|
313
333
|
}
|
|
314
334
|
message.path = reader.string();
|
|
315
335
|
continue;
|
|
316
336
|
}
|
|
317
|
-
if ((tag & 7)
|
|
337
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
318
338
|
break;
|
|
319
339
|
}
|
|
320
340
|
reader.skipType(tag & 7);
|
|
@@ -322,11 +342,13 @@ exports.OpenFileManagerRequest = {
|
|
|
322
342
|
return message;
|
|
323
343
|
},
|
|
324
344
|
fromJSON(object) {
|
|
325
|
-
return { path: isSet(object.path) ? String(object.path) : "" };
|
|
345
|
+
return { path: isSet(object.path) ? globalThis.String(object.path) : "" };
|
|
326
346
|
},
|
|
327
347
|
toJSON(message) {
|
|
328
348
|
const obj = {};
|
|
329
|
-
message.path !==
|
|
349
|
+
if (message.path !== "") {
|
|
350
|
+
obj.path = message.path;
|
|
351
|
+
}
|
|
330
352
|
return obj;
|
|
331
353
|
},
|
|
332
354
|
create(base) {
|
|
@@ -363,25 +385,25 @@ exports.OpenRequest = {
|
|
|
363
385
|
const tag = reader.uint32();
|
|
364
386
|
switch (tag >>> 3) {
|
|
365
387
|
case 1:
|
|
366
|
-
if (tag
|
|
388
|
+
if (tag !== 10) {
|
|
367
389
|
break;
|
|
368
390
|
}
|
|
369
391
|
message.appId = reader.string();
|
|
370
392
|
continue;
|
|
371
393
|
case 2:
|
|
372
|
-
if (tag
|
|
394
|
+
if (tag !== 18) {
|
|
373
395
|
break;
|
|
374
396
|
}
|
|
375
397
|
message.path = reader.string();
|
|
376
398
|
continue;
|
|
377
399
|
case 4:
|
|
378
|
-
if (tag
|
|
400
|
+
if (tag !== 32) {
|
|
379
401
|
break;
|
|
380
402
|
}
|
|
381
403
|
message.intentAction = reader.int32();
|
|
382
404
|
continue;
|
|
383
405
|
}
|
|
384
|
-
if ((tag & 7)
|
|
406
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
385
407
|
break;
|
|
386
408
|
}
|
|
387
409
|
reader.skipType(tag & 7);
|
|
@@ -390,16 +412,22 @@ exports.OpenRequest = {
|
|
|
390
412
|
},
|
|
391
413
|
fromJSON(object) {
|
|
392
414
|
return {
|
|
393
|
-
appId: isSet(object.appId) ? String(object.appId) : "",
|
|
394
|
-
path: isSet(object.path) ? String(object.path) : "",
|
|
415
|
+
appId: isSet(object.appId) ? globalThis.String(object.appId) : "",
|
|
416
|
+
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
395
417
|
intentAction: isSet(object.intentAction) ? intentActionFromJSON(object.intentAction) : 0,
|
|
396
418
|
};
|
|
397
419
|
},
|
|
398
420
|
toJSON(message) {
|
|
399
421
|
const obj = {};
|
|
400
|
-
message.appId !==
|
|
401
|
-
|
|
402
|
-
|
|
422
|
+
if (message.appId !== "") {
|
|
423
|
+
obj.appId = message.appId;
|
|
424
|
+
}
|
|
425
|
+
if (message.path !== "") {
|
|
426
|
+
obj.path = message.path;
|
|
427
|
+
}
|
|
428
|
+
if (message.intentAction !== 0) {
|
|
429
|
+
obj.intentAction = intentActionToJSON(message.intentAction);
|
|
430
|
+
}
|
|
403
431
|
return obj;
|
|
404
432
|
},
|
|
405
433
|
create(base) {
|
|
@@ -432,13 +460,13 @@ exports.OpenReply = {
|
|
|
432
460
|
const tag = reader.uint32();
|
|
433
461
|
switch (tag >>> 3) {
|
|
434
462
|
case 1:
|
|
435
|
-
if (tag
|
|
463
|
+
if (tag !== 10) {
|
|
436
464
|
break;
|
|
437
465
|
}
|
|
438
466
|
message.url = reader.string();
|
|
439
467
|
continue;
|
|
440
468
|
}
|
|
441
|
-
if ((tag & 7)
|
|
469
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
442
470
|
break;
|
|
443
471
|
}
|
|
444
472
|
reader.skipType(tag & 7);
|
|
@@ -446,11 +474,13 @@ exports.OpenReply = {
|
|
|
446
474
|
return message;
|
|
447
475
|
},
|
|
448
476
|
fromJSON(object) {
|
|
449
|
-
return { url: isSet(object.url) ? String(object.url) : undefined };
|
|
477
|
+
return { url: isSet(object.url) ? globalThis.String(object.url) : undefined };
|
|
450
478
|
},
|
|
451
479
|
toJSON(message) {
|
|
452
480
|
const obj = {};
|
|
453
|
-
message.url !== undefined
|
|
481
|
+
if (message.url !== undefined) {
|
|
482
|
+
obj.url = message.url;
|
|
483
|
+
}
|
|
454
484
|
return obj;
|
|
455
485
|
},
|
|
456
486
|
create(base) {
|
|
@@ -487,25 +517,25 @@ exports.QueryRequest = {
|
|
|
487
517
|
const tag = reader.uint32();
|
|
488
518
|
switch (tag >>> 3) {
|
|
489
519
|
case 1:
|
|
490
|
-
if (tag
|
|
520
|
+
if (tag !== 10) {
|
|
491
521
|
break;
|
|
492
522
|
}
|
|
493
523
|
message.mime = reader.string();
|
|
494
524
|
continue;
|
|
495
525
|
case 2:
|
|
496
|
-
if (tag
|
|
526
|
+
if (tag !== 18) {
|
|
497
527
|
break;
|
|
498
528
|
}
|
|
499
529
|
message.path = reader.string();
|
|
500
530
|
continue;
|
|
501
531
|
case 3:
|
|
502
|
-
if (tag
|
|
532
|
+
if (tag !== 24) {
|
|
503
533
|
break;
|
|
504
534
|
}
|
|
505
535
|
message.iconSize = reader.int32();
|
|
506
536
|
continue;
|
|
507
537
|
}
|
|
508
|
-
if ((tag & 7)
|
|
538
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
509
539
|
break;
|
|
510
540
|
}
|
|
511
541
|
reader.skipType(tag & 7);
|
|
@@ -514,16 +544,22 @@ exports.QueryRequest = {
|
|
|
514
544
|
},
|
|
515
545
|
fromJSON(object) {
|
|
516
546
|
return {
|
|
517
|
-
mime: isSet(object.mime) ? String(object.mime) : "",
|
|
518
|
-
path: isSet(object.path) ? String(object.path) : undefined,
|
|
519
|
-
iconSize: isSet(object.iconSize) ? Number(object.iconSize) : undefined,
|
|
547
|
+
mime: isSet(object.mime) ? globalThis.String(object.mime) : "",
|
|
548
|
+
path: isSet(object.path) ? globalThis.String(object.path) : undefined,
|
|
549
|
+
iconSize: isSet(object.iconSize) ? globalThis.Number(object.iconSize) : undefined,
|
|
520
550
|
};
|
|
521
551
|
},
|
|
522
552
|
toJSON(message) {
|
|
523
553
|
const obj = {};
|
|
524
|
-
message.mime !==
|
|
525
|
-
|
|
526
|
-
|
|
554
|
+
if (message.mime !== "") {
|
|
555
|
+
obj.mime = message.mime;
|
|
556
|
+
}
|
|
557
|
+
if (message.path !== undefined) {
|
|
558
|
+
obj.path = message.path;
|
|
559
|
+
}
|
|
560
|
+
if (message.iconSize !== undefined) {
|
|
561
|
+
obj.iconSize = Math.round(message.iconSize);
|
|
562
|
+
}
|
|
527
563
|
return obj;
|
|
528
564
|
},
|
|
529
565
|
create(base) {
|
|
@@ -556,13 +592,13 @@ exports.QueryReply = {
|
|
|
556
592
|
const tag = reader.uint32();
|
|
557
593
|
switch (tag >>> 3) {
|
|
558
594
|
case 1:
|
|
559
|
-
if (tag
|
|
595
|
+
if (tag !== 10) {
|
|
560
596
|
break;
|
|
561
597
|
}
|
|
562
598
|
message.appList.push(exports.AppShortcut.decode(reader, reader.uint32()));
|
|
563
599
|
continue;
|
|
564
600
|
}
|
|
565
|
-
if ((tag & 7)
|
|
601
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
566
602
|
break;
|
|
567
603
|
}
|
|
568
604
|
reader.skipType(tag & 7);
|
|
@@ -570,15 +606,15 @@ exports.QueryReply = {
|
|
|
570
606
|
return message;
|
|
571
607
|
},
|
|
572
608
|
fromJSON(object) {
|
|
573
|
-
return {
|
|
609
|
+
return {
|
|
610
|
+
appList: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.appList) ? object.appList.map((e) => exports.AppShortcut.fromJSON(e)) : [],
|
|
611
|
+
};
|
|
574
612
|
},
|
|
575
613
|
toJSON(message) {
|
|
614
|
+
var _a;
|
|
576
615
|
const obj = {};
|
|
577
|
-
if (message.appList) {
|
|
578
|
-
obj.appList = message.appList.map((e) =>
|
|
579
|
-
}
|
|
580
|
-
else {
|
|
581
|
-
obj.appList = [];
|
|
616
|
+
if ((_a = message.appList) === null || _a === void 0 ? void 0 : _a.length) {
|
|
617
|
+
obj.appList = message.appList.map((e) => exports.AppShortcut.toJSON(e));
|
|
582
618
|
}
|
|
583
619
|
return obj;
|
|
584
620
|
},
|
|
@@ -619,31 +655,31 @@ exports.AppShortcut = {
|
|
|
619
655
|
const tag = reader.uint32();
|
|
620
656
|
switch (tag >>> 3) {
|
|
621
657
|
case 1:
|
|
622
|
-
if (tag
|
|
658
|
+
if (tag !== 10) {
|
|
623
659
|
break;
|
|
624
660
|
}
|
|
625
661
|
message.appId = reader.string();
|
|
626
662
|
continue;
|
|
627
663
|
case 2:
|
|
628
|
-
if (tag
|
|
664
|
+
if (tag !== 18) {
|
|
629
665
|
break;
|
|
630
666
|
}
|
|
631
667
|
message.title = reader.string();
|
|
632
668
|
continue;
|
|
633
669
|
case 3:
|
|
634
|
-
if (tag
|
|
670
|
+
if (tag !== 26) {
|
|
635
671
|
break;
|
|
636
672
|
}
|
|
637
673
|
message.icon = reader.string();
|
|
638
674
|
continue;
|
|
639
675
|
case 4:
|
|
640
|
-
if (tag
|
|
676
|
+
if (tag !== 32) {
|
|
641
677
|
break;
|
|
642
678
|
}
|
|
643
679
|
message.intentAction = reader.int32();
|
|
644
680
|
continue;
|
|
645
681
|
}
|
|
646
|
-
if ((tag & 7)
|
|
682
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
647
683
|
break;
|
|
648
684
|
}
|
|
649
685
|
reader.skipType(tag & 7);
|
|
@@ -652,18 +688,26 @@ exports.AppShortcut = {
|
|
|
652
688
|
},
|
|
653
689
|
fromJSON(object) {
|
|
654
690
|
return {
|
|
655
|
-
appId: isSet(object.appId) ? String(object.appId) : "",
|
|
656
|
-
title: isSet(object.title) ? String(object.title) : "",
|
|
657
|
-
icon: isSet(object.icon) ? String(object.icon) : "",
|
|
691
|
+
appId: isSet(object.appId) ? globalThis.String(object.appId) : "",
|
|
692
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
693
|
+
icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
|
|
658
694
|
intentAction: isSet(object.intentAction) ? intentActionFromJSON(object.intentAction) : 0,
|
|
659
695
|
};
|
|
660
696
|
},
|
|
661
697
|
toJSON(message) {
|
|
662
698
|
const obj = {};
|
|
663
|
-
message.appId !==
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
message.
|
|
699
|
+
if (message.appId !== "") {
|
|
700
|
+
obj.appId = message.appId;
|
|
701
|
+
}
|
|
702
|
+
if (message.title !== "") {
|
|
703
|
+
obj.title = message.title;
|
|
704
|
+
}
|
|
705
|
+
if (message.icon !== "") {
|
|
706
|
+
obj.icon = message.icon;
|
|
707
|
+
}
|
|
708
|
+
if (message.intentAction !== 0) {
|
|
709
|
+
obj.intentAction = intentActionToJSON(message.intentAction);
|
|
710
|
+
}
|
|
667
711
|
return obj;
|
|
668
712
|
},
|
|
669
713
|
create(base) {
|
|
@@ -697,13 +741,13 @@ exports.StatRequest = {
|
|
|
697
741
|
const tag = reader.uint32();
|
|
698
742
|
switch (tag >>> 3) {
|
|
699
743
|
case 1:
|
|
700
|
-
if (tag
|
|
744
|
+
if (tag !== 10) {
|
|
701
745
|
break;
|
|
702
746
|
}
|
|
703
747
|
message.path = reader.string();
|
|
704
748
|
continue;
|
|
705
749
|
}
|
|
706
|
-
if ((tag & 7)
|
|
750
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
707
751
|
break;
|
|
708
752
|
}
|
|
709
753
|
reader.skipType(tag & 7);
|
|
@@ -711,11 +755,13 @@ exports.StatRequest = {
|
|
|
711
755
|
return message;
|
|
712
756
|
},
|
|
713
757
|
fromJSON(object) {
|
|
714
|
-
return { path: isSet(object.path) ? String(object.path) : "" };
|
|
758
|
+
return { path: isSet(object.path) ? globalThis.String(object.path) : "" };
|
|
715
759
|
},
|
|
716
760
|
toJSON(message) {
|
|
717
761
|
const obj = {};
|
|
718
|
-
message.path !==
|
|
762
|
+
if (message.path !== "") {
|
|
763
|
+
obj.path = message.path;
|
|
764
|
+
}
|
|
719
765
|
return obj;
|
|
720
766
|
},
|
|
721
767
|
create(base) {
|
|
@@ -758,37 +804,37 @@ exports.StatReply = {
|
|
|
758
804
|
const tag = reader.uint32();
|
|
759
805
|
switch (tag >>> 3) {
|
|
760
806
|
case 1:
|
|
761
|
-
if (tag
|
|
807
|
+
if (tag !== 10) {
|
|
762
808
|
break;
|
|
763
809
|
}
|
|
764
810
|
message.name = reader.string();
|
|
765
811
|
continue;
|
|
766
812
|
case 2:
|
|
767
|
-
if (tag
|
|
813
|
+
if (tag !== 16) {
|
|
768
814
|
break;
|
|
769
815
|
}
|
|
770
816
|
message.size = longToNumber(reader.int64());
|
|
771
817
|
continue;
|
|
772
818
|
case 3:
|
|
773
|
-
if (tag
|
|
819
|
+
if (tag !== 24) {
|
|
774
820
|
break;
|
|
775
821
|
}
|
|
776
822
|
message.mode = reader.uint32();
|
|
777
823
|
continue;
|
|
778
824
|
case 4:
|
|
779
|
-
if (tag
|
|
825
|
+
if (tag !== 34) {
|
|
780
826
|
break;
|
|
781
827
|
}
|
|
782
828
|
message.modTime = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
783
829
|
continue;
|
|
784
830
|
case 5:
|
|
785
|
-
if (tag
|
|
831
|
+
if (tag !== 40) {
|
|
786
832
|
break;
|
|
787
833
|
}
|
|
788
834
|
message.isDir = reader.bool();
|
|
789
835
|
continue;
|
|
790
836
|
}
|
|
791
|
-
if ((tag & 7)
|
|
837
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
792
838
|
break;
|
|
793
839
|
}
|
|
794
840
|
reader.skipType(tag & 7);
|
|
@@ -797,20 +843,30 @@ exports.StatReply = {
|
|
|
797
843
|
},
|
|
798
844
|
fromJSON(object) {
|
|
799
845
|
return {
|
|
800
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
801
|
-
size: isSet(object.size) ? Number(object.size) : 0,
|
|
802
|
-
mode: isSet(object.mode) ? Number(object.mode) : 0,
|
|
846
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
847
|
+
size: isSet(object.size) ? globalThis.Number(object.size) : 0,
|
|
848
|
+
mode: isSet(object.mode) ? globalThis.Number(object.mode) : 0,
|
|
803
849
|
modTime: isSet(object.modTime) ? fromJsonTimestamp(object.modTime) : undefined,
|
|
804
|
-
isDir: isSet(object.isDir) ? Boolean(object.isDir) : false,
|
|
850
|
+
isDir: isSet(object.isDir) ? globalThis.Boolean(object.isDir) : false,
|
|
805
851
|
};
|
|
806
852
|
},
|
|
807
853
|
toJSON(message) {
|
|
808
854
|
const obj = {};
|
|
809
|
-
message.name !==
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
message.
|
|
813
|
-
|
|
855
|
+
if (message.name !== "") {
|
|
856
|
+
obj.name = message.name;
|
|
857
|
+
}
|
|
858
|
+
if (message.size !== 0) {
|
|
859
|
+
obj.size = Math.round(message.size);
|
|
860
|
+
}
|
|
861
|
+
if (message.mode !== 0) {
|
|
862
|
+
obj.mode = Math.round(message.mode);
|
|
863
|
+
}
|
|
864
|
+
if (message.modTime !== undefined) {
|
|
865
|
+
obj.modTime = message.modTime.toISOString();
|
|
866
|
+
}
|
|
867
|
+
if (message.isDir === true) {
|
|
868
|
+
obj.isDir = message.isDir;
|
|
869
|
+
}
|
|
814
870
|
return obj;
|
|
815
871
|
},
|
|
816
872
|
create(base) {
|
|
@@ -963,15 +1019,10 @@ class GrpcWebImpl {
|
|
|
963
1019
|
const request = Object.assign(Object.assign({}, _request), methodDesc.requestType);
|
|
964
1020
|
const maybeCombinedMetadata = metadata && this.options.metadata
|
|
965
1021
|
? 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))
|
|
966
|
-
: metadata
|
|
1022
|
+
: metadata !== null && metadata !== void 0 ? metadata : this.options.metadata;
|
|
967
1023
|
return new Promise((resolve, reject) => {
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
host: this.host,
|
|
971
|
-
metadata: maybeCombinedMetadata,
|
|
972
|
-
transport: this.options.transport,
|
|
973
|
-
debug: this.options.debug,
|
|
974
|
-
onEnd: function (response) {
|
|
1024
|
+
var _a;
|
|
1025
|
+
const client = grpc_web_1.grpc.unary(methodDesc, Object.assign(Object.assign({ request, host: this.host, metadata: maybeCombinedMetadata !== null && maybeCombinedMetadata !== void 0 ? maybeCombinedMetadata : {} }, (this.options.transport !== undefined ? { transport: this.options.transport } : {})), { debug: (_a = this.options.debug) !== null && _a !== void 0 ? _a : false, onEnd: function (response) {
|
|
975
1026
|
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
976
1027
|
resolve(response.message.toObject());
|
|
977
1028
|
}
|
|
@@ -979,35 +1030,28 @@ class GrpcWebImpl {
|
|
|
979
1030
|
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
980
1031
|
reject(err);
|
|
981
1032
|
}
|
|
982
|
-
}
|
|
983
|
-
});
|
|
984
|
-
const abortHandler = () => {
|
|
985
|
-
client.close();
|
|
986
|
-
reject(new Error("Aborted"));
|
|
987
|
-
};
|
|
1033
|
+
} }));
|
|
988
1034
|
if (abortSignal) {
|
|
989
|
-
abortSignal.addEventListener("abort",
|
|
1035
|
+
abortSignal.addEventListener("abort", () => {
|
|
1036
|
+
client.close();
|
|
1037
|
+
reject(abortSignal.reason);
|
|
1038
|
+
});
|
|
990
1039
|
}
|
|
991
1040
|
});
|
|
992
1041
|
}
|
|
993
1042
|
invoke(methodDesc, _request, metadata, abortSignal) {
|
|
994
|
-
var _a;
|
|
995
|
-
const upStreamCodes = this.options.upStreamRetryCodes
|
|
1043
|
+
var _a, _b, _c;
|
|
1044
|
+
const upStreamCodes = (_a = this.options.upStreamRetryCodes) !== null && _a !== void 0 ? _a : [];
|
|
996
1045
|
const DEFAULT_TIMEOUT_TIME = 3000;
|
|
997
1046
|
const request = Object.assign(Object.assign({}, _request), methodDesc.requestType);
|
|
1047
|
+
const transport = (_b = this.options.streamingTransport) !== null && _b !== void 0 ? _b : this.options.transport;
|
|
998
1048
|
const maybeCombinedMetadata = metadata && this.options.metadata
|
|
999
|
-
? new browser_headers_1.BrowserHeaders(Object.assign(Object.assign({}, (
|
|
1000
|
-
: metadata
|
|
1049
|
+
? new browser_headers_1.BrowserHeaders(Object.assign(Object.assign({}, (_c = this.options) === null || _c === void 0 ? void 0 : _c.metadata.headersMap), metadata === null || metadata === void 0 ? void 0 : metadata.headersMap))
|
|
1050
|
+
: metadata !== null && metadata !== void 0 ? metadata : this.options.metadata;
|
|
1001
1051
|
return new rxjs_1.Observable((observer) => {
|
|
1002
|
-
const upStream = (
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
request,
|
|
1006
|
-
transport: this.options.streamingTransport || this.options.transport,
|
|
1007
|
-
metadata: maybeCombinedMetadata,
|
|
1008
|
-
debug: this.options.debug,
|
|
1009
|
-
onMessage: (next) => observer.next(next),
|
|
1010
|
-
onEnd: (code, message, trailers) => {
|
|
1052
|
+
const upStream = () => {
|
|
1053
|
+
var _a;
|
|
1054
|
+
const client = grpc_web_1.grpc.invoke(methodDesc, Object.assign(Object.assign({ host: this.host, request }, (transport !== undefined ? { transport } : {})), { metadata: maybeCombinedMetadata !== null && maybeCombinedMetadata !== void 0 ? maybeCombinedMetadata : {}, debug: (_a = this.options.debug) !== null && _a !== void 0 ? _a : false, onMessage: (next) => observer.next(next), onEnd: (code, message, trailers) => {
|
|
1011
1055
|
if (code === 0) {
|
|
1012
1056
|
observer.complete();
|
|
1013
1057
|
}
|
|
@@ -1020,65 +1064,54 @@ class GrpcWebImpl {
|
|
|
1020
1064
|
err.metadata = trailers;
|
|
1021
1065
|
observer.error(err);
|
|
1022
1066
|
}
|
|
1023
|
-
}
|
|
1024
|
-
});
|
|
1025
|
-
observer.add(() => {
|
|
1026
|
-
if (!observer.closed) {
|
|
1027
|
-
return client.close();
|
|
1028
|
-
}
|
|
1029
|
-
});
|
|
1030
|
-
const abortHandler = () => {
|
|
1031
|
-
observer.error("Aborted");
|
|
1032
|
-
client.close();
|
|
1033
|
-
};
|
|
1067
|
+
} }));
|
|
1034
1068
|
if (abortSignal) {
|
|
1035
|
-
|
|
1069
|
+
const abort = () => {
|
|
1070
|
+
observer.error(abortSignal.reason);
|
|
1071
|
+
client.close();
|
|
1072
|
+
};
|
|
1073
|
+
abortSignal.addEventListener("abort", abort);
|
|
1074
|
+
observer.add(() => {
|
|
1075
|
+
if (abortSignal.aborted) {
|
|
1076
|
+
return;
|
|
1077
|
+
}
|
|
1078
|
+
abortSignal.removeEventListener("abort", abort);
|
|
1079
|
+
client.close();
|
|
1080
|
+
});
|
|
1036
1081
|
}
|
|
1037
|
-
|
|
1082
|
+
else {
|
|
1083
|
+
observer.add(() => client.close());
|
|
1084
|
+
}
|
|
1085
|
+
};
|
|
1038
1086
|
upStream();
|
|
1039
1087
|
}).pipe((0, operators_1.share)());
|
|
1040
1088
|
}
|
|
1041
1089
|
}
|
|
1042
1090
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
1043
|
-
var tsProtoGlobalThis = (() => {
|
|
1044
|
-
if (typeof globalThis !== "undefined") {
|
|
1045
|
-
return globalThis;
|
|
1046
|
-
}
|
|
1047
|
-
if (typeof self !== "undefined") {
|
|
1048
|
-
return self;
|
|
1049
|
-
}
|
|
1050
|
-
if (typeof window !== "undefined") {
|
|
1051
|
-
return window;
|
|
1052
|
-
}
|
|
1053
|
-
if (typeof global !== "undefined") {
|
|
1054
|
-
return global;
|
|
1055
|
-
}
|
|
1056
|
-
throw "Unable to locate global object";
|
|
1057
|
-
})();
|
|
1058
1091
|
function toTimestamp(date) {
|
|
1059
1092
|
const seconds = date.getTime() / 1000;
|
|
1060
1093
|
const nanos = (date.getTime() % 1000) * 1000000;
|
|
1061
1094
|
return { seconds, nanos };
|
|
1062
1095
|
}
|
|
1063
1096
|
function fromTimestamp(t) {
|
|
1064
|
-
let millis = t.seconds * 1000;
|
|
1065
|
-
millis += t.nanos / 1000000;
|
|
1066
|
-
return new Date(millis);
|
|
1097
|
+
let millis = (t.seconds || 0) * 1000;
|
|
1098
|
+
millis += (t.nanos || 0) / 1000000;
|
|
1099
|
+
return new globalThis.Date(millis);
|
|
1067
1100
|
}
|
|
1068
1101
|
function fromJsonTimestamp(o) {
|
|
1069
|
-
if (o instanceof Date) {
|
|
1102
|
+
if (o instanceof globalThis.Date) {
|
|
1070
1103
|
return o;
|
|
1071
1104
|
}
|
|
1072
1105
|
else if (typeof o === "string") {
|
|
1073
|
-
return new Date(o);
|
|
1106
|
+
return new globalThis.Date(o);
|
|
1074
1107
|
}
|
|
1075
1108
|
else {
|
|
1076
1109
|
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
1077
1110
|
}
|
|
1078
1111
|
}
|
|
1079
1112
|
function longToNumber(long) {
|
|
1080
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
1081
|
-
throw new
|
|
1113
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
1114
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1082
1115
|
}
|
|
1083
1116
|
return long.toNumber();
|
|
1084
1117
|
}
|
|
@@ -1089,7 +1122,7 @@ if (minimal_1.default.util.Long !== long_1.default) {
|
|
|
1089
1122
|
function isSet(value) {
|
|
1090
1123
|
return value !== null && value !== undefined;
|
|
1091
1124
|
}
|
|
1092
|
-
class GrpcWebError extends
|
|
1125
|
+
class GrpcWebError extends globalThis.Error {
|
|
1093
1126
|
constructor(message, code, metadata) {
|
|
1094
1127
|
super(message);
|
|
1095
1128
|
this.code = code;
|