@ekhein/lamda-node-sdk 2.0.6 → 2.0.7
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/constants/activity.flag.js +25 -22
- package/dist/constants/android.intent.js +60 -56
- package/dist/constants/android.permission.js +33 -30
- package/dist/constants/index.js +19 -3
- package/dist/decorators/inject.decorator.js +4 -1
- package/dist/exceptions/remoteCall.exception.js +7 -3
- package/dist/exceptions/remoteRpc.exception.js +7 -3
- package/dist/exceptions/timeout.exception.js +7 -3
- package/dist/interceptor/remoteException.Interceptor.js +8 -5
- package/dist/main.js +32 -28
- package/dist/rpc/application.js +86 -77
- package/dist/rpc/debug.js +9 -6
- package/dist/rpc/file.js +17 -14
- package/dist/rpc/google/protobuf/any.js +9 -6
- package/dist/rpc/google/protobuf/empty.js +9 -6
- package/dist/rpc/google/protobuf/struct.js +37 -32
- package/dist/rpc/policy.js +9 -6
- package/dist/rpc/proxy.js +55 -40
- package/dist/rpc/services.js +381 -378
- package/dist/rpc/settings.js +15 -10
- package/dist/rpc/shell.js +17 -14
- package/dist/rpc/status.js +29 -26
- package/dist/rpc/storage.js +9 -6
- package/dist/rpc/types.js +25 -22
- package/dist/rpc/uiautomator.js +309 -290
- package/dist/rpc/util.js +102 -97
- package/dist/rpc/wifi.js +56 -53
- package/package.json +1 -1
package/dist/rpc/util.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HexPatchResponse = exports.HexPatchItem = exports.HexPatchRequest = exports.ServerInfoResponse = exports.ShowToastRequest = exports.CertifiRequest = exports.SetPropRequest = exports.PerformTouchRequest = exports.TouchSequence = exports.TouchAction = exports.TouchWait = exports.TouchMove = exports.TouchUp = exports.TouchDown = exports.ToastDuration = exports.protobufPackage = void 0;
|
|
4
|
+
exports.toastDurationFromJSON = toastDurationFromJSON;
|
|
5
|
+
exports.toastDurationToJSON = toastDurationToJSON;
|
|
6
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
7
|
+
exports.protobufPackage = "lamda.rpc";
|
|
8
|
+
var ToastDuration;
|
|
4
9
|
(function (ToastDuration) {
|
|
5
10
|
ToastDuration[ToastDuration["TD_SHORT"] = 0] = "TD_SHORT";
|
|
6
11
|
ToastDuration[ToastDuration["TD_LONG"] = 1] = "TD_LONG";
|
|
7
12
|
ToastDuration[ToastDuration["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
8
|
-
})(ToastDuration || (ToastDuration = {}));
|
|
9
|
-
|
|
13
|
+
})(ToastDuration || (exports.ToastDuration = ToastDuration = {}));
|
|
14
|
+
function toastDurationFromJSON(object) {
|
|
10
15
|
switch (object) {
|
|
11
16
|
case 0:
|
|
12
17
|
case "TD_SHORT":
|
|
@@ -20,7 +25,7 @@ export function toastDurationFromJSON(object) {
|
|
|
20
25
|
return ToastDuration.UNRECOGNIZED;
|
|
21
26
|
}
|
|
22
27
|
}
|
|
23
|
-
|
|
28
|
+
function toastDurationToJSON(object) {
|
|
24
29
|
switch (object) {
|
|
25
30
|
case ToastDuration.TD_SHORT:
|
|
26
31
|
return "TD_SHORT";
|
|
@@ -34,8 +39,8 @@ export function toastDurationToJSON(object) {
|
|
|
34
39
|
function createBaseTouchDown() {
|
|
35
40
|
return { tid: 0, x: 0, y: 0, pressure: 0 };
|
|
36
41
|
}
|
|
37
|
-
|
|
38
|
-
encode(message, writer = new BinaryWriter()) {
|
|
42
|
+
exports.TouchDown = {
|
|
43
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
39
44
|
if (message.tid !== 0) {
|
|
40
45
|
writer.uint32(8).int32(message.tid);
|
|
41
46
|
}
|
|
@@ -51,7 +56,7 @@ export const TouchDown = {
|
|
|
51
56
|
return writer;
|
|
52
57
|
},
|
|
53
58
|
decode(input, length) {
|
|
54
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
59
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
55
60
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
56
61
|
const message = createBaseTouchDown();
|
|
57
62
|
while (reader.pos < end) {
|
|
@@ -118,7 +123,7 @@ export const TouchDown = {
|
|
|
118
123
|
return obj;
|
|
119
124
|
},
|
|
120
125
|
create(base) {
|
|
121
|
-
return TouchDown.fromPartial(base ?? {});
|
|
126
|
+
return exports.TouchDown.fromPartial(base ?? {});
|
|
122
127
|
},
|
|
123
128
|
fromPartial(object) {
|
|
124
129
|
const message = createBaseTouchDown();
|
|
@@ -132,15 +137,15 @@ export const TouchDown = {
|
|
|
132
137
|
function createBaseTouchUp() {
|
|
133
138
|
return { tid: 0 };
|
|
134
139
|
}
|
|
135
|
-
|
|
136
|
-
encode(message, writer = new BinaryWriter()) {
|
|
140
|
+
exports.TouchUp = {
|
|
141
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
137
142
|
if (message.tid !== 0) {
|
|
138
143
|
writer.uint32(8).int32(message.tid);
|
|
139
144
|
}
|
|
140
145
|
return writer;
|
|
141
146
|
},
|
|
142
147
|
decode(input, length) {
|
|
143
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
148
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
144
149
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
145
150
|
const message = createBaseTouchUp();
|
|
146
151
|
while (reader.pos < end) {
|
|
@@ -172,7 +177,7 @@ export const TouchUp = {
|
|
|
172
177
|
return obj;
|
|
173
178
|
},
|
|
174
179
|
create(base) {
|
|
175
|
-
return TouchUp.fromPartial(base ?? {});
|
|
180
|
+
return exports.TouchUp.fromPartial(base ?? {});
|
|
176
181
|
},
|
|
177
182
|
fromPartial(object) {
|
|
178
183
|
const message = createBaseTouchUp();
|
|
@@ -183,8 +188,8 @@ export const TouchUp = {
|
|
|
183
188
|
function createBaseTouchMove() {
|
|
184
189
|
return { tid: 0, x: 0, y: 0, pressure: 0 };
|
|
185
190
|
}
|
|
186
|
-
|
|
187
|
-
encode(message, writer = new BinaryWriter()) {
|
|
191
|
+
exports.TouchMove = {
|
|
192
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
188
193
|
if (message.tid !== 0) {
|
|
189
194
|
writer.uint32(8).int32(message.tid);
|
|
190
195
|
}
|
|
@@ -200,7 +205,7 @@ export const TouchMove = {
|
|
|
200
205
|
return writer;
|
|
201
206
|
},
|
|
202
207
|
decode(input, length) {
|
|
203
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
208
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
204
209
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
205
210
|
const message = createBaseTouchMove();
|
|
206
211
|
while (reader.pos < end) {
|
|
@@ -267,7 +272,7 @@ export const TouchMove = {
|
|
|
267
272
|
return obj;
|
|
268
273
|
},
|
|
269
274
|
create(base) {
|
|
270
|
-
return TouchMove.fromPartial(base ?? {});
|
|
275
|
+
return exports.TouchMove.fromPartial(base ?? {});
|
|
271
276
|
},
|
|
272
277
|
fromPartial(object) {
|
|
273
278
|
const message = createBaseTouchMove();
|
|
@@ -281,15 +286,15 @@ export const TouchMove = {
|
|
|
281
286
|
function createBaseTouchWait() {
|
|
282
287
|
return { wait: 0 };
|
|
283
288
|
}
|
|
284
|
-
|
|
285
|
-
encode(message, writer = new BinaryWriter()) {
|
|
289
|
+
exports.TouchWait = {
|
|
290
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
286
291
|
if (message.wait !== 0) {
|
|
287
292
|
writer.uint32(8).uint32(message.wait);
|
|
288
293
|
}
|
|
289
294
|
return writer;
|
|
290
295
|
},
|
|
291
296
|
decode(input, length) {
|
|
292
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
297
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
293
298
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
294
299
|
const message = createBaseTouchWait();
|
|
295
300
|
while (reader.pos < end) {
|
|
@@ -321,7 +326,7 @@ export const TouchWait = {
|
|
|
321
326
|
return obj;
|
|
322
327
|
},
|
|
323
328
|
create(base) {
|
|
324
|
-
return TouchWait.fromPartial(base ?? {});
|
|
329
|
+
return exports.TouchWait.fromPartial(base ?? {});
|
|
325
330
|
},
|
|
326
331
|
fromPartial(object) {
|
|
327
332
|
const message = createBaseTouchWait();
|
|
@@ -332,24 +337,24 @@ export const TouchWait = {
|
|
|
332
337
|
function createBaseTouchAction() {
|
|
333
338
|
return { down: undefined, move: undefined, wait: undefined, up: undefined };
|
|
334
339
|
}
|
|
335
|
-
|
|
336
|
-
encode(message, writer = new BinaryWriter()) {
|
|
340
|
+
exports.TouchAction = {
|
|
341
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
337
342
|
if (message.down !== undefined) {
|
|
338
|
-
TouchDown.encode(message.down, writer.uint32(10).fork()).join();
|
|
343
|
+
exports.TouchDown.encode(message.down, writer.uint32(10).fork()).join();
|
|
339
344
|
}
|
|
340
345
|
if (message.move !== undefined) {
|
|
341
|
-
TouchMove.encode(message.move, writer.uint32(18).fork()).join();
|
|
346
|
+
exports.TouchMove.encode(message.move, writer.uint32(18).fork()).join();
|
|
342
347
|
}
|
|
343
348
|
if (message.wait !== undefined) {
|
|
344
|
-
TouchWait.encode(message.wait, writer.uint32(26).fork()).join();
|
|
349
|
+
exports.TouchWait.encode(message.wait, writer.uint32(26).fork()).join();
|
|
345
350
|
}
|
|
346
351
|
if (message.up !== undefined) {
|
|
347
|
-
TouchUp.encode(message.up, writer.uint32(34).fork()).join();
|
|
352
|
+
exports.TouchUp.encode(message.up, writer.uint32(34).fork()).join();
|
|
348
353
|
}
|
|
349
354
|
return writer;
|
|
350
355
|
},
|
|
351
356
|
decode(input, length) {
|
|
352
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
357
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
353
358
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
354
359
|
const message = createBaseTouchAction();
|
|
355
360
|
while (reader.pos < end) {
|
|
@@ -359,28 +364,28 @@ export const TouchAction = {
|
|
|
359
364
|
if (tag !== 10) {
|
|
360
365
|
break;
|
|
361
366
|
}
|
|
362
|
-
message.down = TouchDown.decode(reader, reader.uint32());
|
|
367
|
+
message.down = exports.TouchDown.decode(reader, reader.uint32());
|
|
363
368
|
continue;
|
|
364
369
|
}
|
|
365
370
|
case 2: {
|
|
366
371
|
if (tag !== 18) {
|
|
367
372
|
break;
|
|
368
373
|
}
|
|
369
|
-
message.move = TouchMove.decode(reader, reader.uint32());
|
|
374
|
+
message.move = exports.TouchMove.decode(reader, reader.uint32());
|
|
370
375
|
continue;
|
|
371
376
|
}
|
|
372
377
|
case 3: {
|
|
373
378
|
if (tag !== 26) {
|
|
374
379
|
break;
|
|
375
380
|
}
|
|
376
|
-
message.wait = TouchWait.decode(reader, reader.uint32());
|
|
381
|
+
message.wait = exports.TouchWait.decode(reader, reader.uint32());
|
|
377
382
|
continue;
|
|
378
383
|
}
|
|
379
384
|
case 4: {
|
|
380
385
|
if (tag !== 34) {
|
|
381
386
|
break;
|
|
382
387
|
}
|
|
383
|
-
message.up = TouchUp.decode(reader, reader.uint32());
|
|
388
|
+
message.up = exports.TouchUp.decode(reader, reader.uint32());
|
|
384
389
|
continue;
|
|
385
390
|
}
|
|
386
391
|
}
|
|
@@ -393,52 +398,52 @@ export const TouchAction = {
|
|
|
393
398
|
},
|
|
394
399
|
fromJSON(object) {
|
|
395
400
|
return {
|
|
396
|
-
down: isSet(object.down) ? TouchDown.fromJSON(object.down) : undefined,
|
|
397
|
-
move: isSet(object.move) ? TouchMove.fromJSON(object.move) : undefined,
|
|
398
|
-
wait: isSet(object.wait) ? TouchWait.fromJSON(object.wait) : undefined,
|
|
399
|
-
up: isSet(object.up) ? TouchUp.fromJSON(object.up) : undefined,
|
|
401
|
+
down: isSet(object.down) ? exports.TouchDown.fromJSON(object.down) : undefined,
|
|
402
|
+
move: isSet(object.move) ? exports.TouchMove.fromJSON(object.move) : undefined,
|
|
403
|
+
wait: isSet(object.wait) ? exports.TouchWait.fromJSON(object.wait) : undefined,
|
|
404
|
+
up: isSet(object.up) ? exports.TouchUp.fromJSON(object.up) : undefined,
|
|
400
405
|
};
|
|
401
406
|
},
|
|
402
407
|
toJSON(message) {
|
|
403
408
|
const obj = {};
|
|
404
409
|
if (message.down !== undefined) {
|
|
405
|
-
obj.down = TouchDown.toJSON(message.down);
|
|
410
|
+
obj.down = exports.TouchDown.toJSON(message.down);
|
|
406
411
|
}
|
|
407
412
|
if (message.move !== undefined) {
|
|
408
|
-
obj.move = TouchMove.toJSON(message.move);
|
|
413
|
+
obj.move = exports.TouchMove.toJSON(message.move);
|
|
409
414
|
}
|
|
410
415
|
if (message.wait !== undefined) {
|
|
411
|
-
obj.wait = TouchWait.toJSON(message.wait);
|
|
416
|
+
obj.wait = exports.TouchWait.toJSON(message.wait);
|
|
412
417
|
}
|
|
413
418
|
if (message.up !== undefined) {
|
|
414
|
-
obj.up = TouchUp.toJSON(message.up);
|
|
419
|
+
obj.up = exports.TouchUp.toJSON(message.up);
|
|
415
420
|
}
|
|
416
421
|
return obj;
|
|
417
422
|
},
|
|
418
423
|
create(base) {
|
|
419
|
-
return TouchAction.fromPartial(base ?? {});
|
|
424
|
+
return exports.TouchAction.fromPartial(base ?? {});
|
|
420
425
|
},
|
|
421
426
|
fromPartial(object) {
|
|
422
427
|
const message = createBaseTouchAction();
|
|
423
|
-
message.down = (object.down !== undefined && object.down !== null) ? TouchDown.fromPartial(object.down) : undefined;
|
|
424
|
-
message.move = (object.move !== undefined && object.move !== null) ? TouchMove.fromPartial(object.move) : undefined;
|
|
425
|
-
message.wait = (object.wait !== undefined && object.wait !== null) ? TouchWait.fromPartial(object.wait) : undefined;
|
|
426
|
-
message.up = (object.up !== undefined && object.up !== null) ? TouchUp.fromPartial(object.up) : undefined;
|
|
428
|
+
message.down = (object.down !== undefined && object.down !== null) ? exports.TouchDown.fromPartial(object.down) : undefined;
|
|
429
|
+
message.move = (object.move !== undefined && object.move !== null) ? exports.TouchMove.fromPartial(object.move) : undefined;
|
|
430
|
+
message.wait = (object.wait !== undefined && object.wait !== null) ? exports.TouchWait.fromPartial(object.wait) : undefined;
|
|
431
|
+
message.up = (object.up !== undefined && object.up !== null) ? exports.TouchUp.fromPartial(object.up) : undefined;
|
|
427
432
|
return message;
|
|
428
433
|
},
|
|
429
434
|
};
|
|
430
435
|
function createBaseTouchSequence() {
|
|
431
436
|
return { sequence: [] };
|
|
432
437
|
}
|
|
433
|
-
|
|
434
|
-
encode(message, writer = new BinaryWriter()) {
|
|
438
|
+
exports.TouchSequence = {
|
|
439
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
435
440
|
for (const v of message.sequence) {
|
|
436
|
-
TouchAction.encode(v, writer.uint32(10).fork()).join();
|
|
441
|
+
exports.TouchAction.encode(v, writer.uint32(10).fork()).join();
|
|
437
442
|
}
|
|
438
443
|
return writer;
|
|
439
444
|
},
|
|
440
445
|
decode(input, length) {
|
|
441
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
446
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
442
447
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
443
448
|
const message = createBaseTouchSequence();
|
|
444
449
|
while (reader.pos < end) {
|
|
@@ -448,7 +453,7 @@ export const TouchSequence = {
|
|
|
448
453
|
if (tag !== 10) {
|
|
449
454
|
break;
|
|
450
455
|
}
|
|
451
|
-
message.sequence.push(TouchAction.decode(reader, reader.uint32()));
|
|
456
|
+
message.sequence.push(exports.TouchAction.decode(reader, reader.uint32()));
|
|
452
457
|
continue;
|
|
453
458
|
}
|
|
454
459
|
}
|
|
@@ -462,33 +467,33 @@ export const TouchSequence = {
|
|
|
462
467
|
fromJSON(object) {
|
|
463
468
|
return {
|
|
464
469
|
sequence: globalThis.Array.isArray(object?.sequence)
|
|
465
|
-
? object.sequence.map((e) => TouchAction.fromJSON(e))
|
|
470
|
+
? object.sequence.map((e) => exports.TouchAction.fromJSON(e))
|
|
466
471
|
: [],
|
|
467
472
|
};
|
|
468
473
|
},
|
|
469
474
|
toJSON(message) {
|
|
470
475
|
const obj = {};
|
|
471
476
|
if (message.sequence?.length) {
|
|
472
|
-
obj.sequence = message.sequence.map((e) => TouchAction.toJSON(e));
|
|
477
|
+
obj.sequence = message.sequence.map((e) => exports.TouchAction.toJSON(e));
|
|
473
478
|
}
|
|
474
479
|
return obj;
|
|
475
480
|
},
|
|
476
481
|
create(base) {
|
|
477
|
-
return TouchSequence.fromPartial(base ?? {});
|
|
482
|
+
return exports.TouchSequence.fromPartial(base ?? {});
|
|
478
483
|
},
|
|
479
484
|
fromPartial(object) {
|
|
480
485
|
const message = createBaseTouchSequence();
|
|
481
|
-
message.sequence = object.sequence?.map((e) => TouchAction.fromPartial(e)) || [];
|
|
486
|
+
message.sequence = object.sequence?.map((e) => exports.TouchAction.fromPartial(e)) || [];
|
|
482
487
|
return message;
|
|
483
488
|
},
|
|
484
489
|
};
|
|
485
490
|
function createBasePerformTouchRequest() {
|
|
486
491
|
return { sequence: undefined, wait: false };
|
|
487
492
|
}
|
|
488
|
-
|
|
489
|
-
encode(message, writer = new BinaryWriter()) {
|
|
493
|
+
exports.PerformTouchRequest = {
|
|
494
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
490
495
|
if (message.sequence !== undefined) {
|
|
491
|
-
TouchSequence.encode(message.sequence, writer.uint32(10).fork()).join();
|
|
496
|
+
exports.TouchSequence.encode(message.sequence, writer.uint32(10).fork()).join();
|
|
492
497
|
}
|
|
493
498
|
if (message.wait !== false) {
|
|
494
499
|
writer.uint32(16).bool(message.wait);
|
|
@@ -496,7 +501,7 @@ export const PerformTouchRequest = {
|
|
|
496
501
|
return writer;
|
|
497
502
|
},
|
|
498
503
|
decode(input, length) {
|
|
499
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
504
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
500
505
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
501
506
|
const message = createBasePerformTouchRequest();
|
|
502
507
|
while (reader.pos < end) {
|
|
@@ -506,7 +511,7 @@ export const PerformTouchRequest = {
|
|
|
506
511
|
if (tag !== 10) {
|
|
507
512
|
break;
|
|
508
513
|
}
|
|
509
|
-
message.sequence = TouchSequence.decode(reader, reader.uint32());
|
|
514
|
+
message.sequence = exports.TouchSequence.decode(reader, reader.uint32());
|
|
510
515
|
continue;
|
|
511
516
|
}
|
|
512
517
|
case 2: {
|
|
@@ -526,14 +531,14 @@ export const PerformTouchRequest = {
|
|
|
526
531
|
},
|
|
527
532
|
fromJSON(object) {
|
|
528
533
|
return {
|
|
529
|
-
sequence: isSet(object.sequence) ? TouchSequence.fromJSON(object.sequence) : undefined,
|
|
534
|
+
sequence: isSet(object.sequence) ? exports.TouchSequence.fromJSON(object.sequence) : undefined,
|
|
530
535
|
wait: isSet(object.wait) ? globalThis.Boolean(object.wait) : false,
|
|
531
536
|
};
|
|
532
537
|
},
|
|
533
538
|
toJSON(message) {
|
|
534
539
|
const obj = {};
|
|
535
540
|
if (message.sequence !== undefined) {
|
|
536
|
-
obj.sequence = TouchSequence.toJSON(message.sequence);
|
|
541
|
+
obj.sequence = exports.TouchSequence.toJSON(message.sequence);
|
|
537
542
|
}
|
|
538
543
|
if (message.wait !== false) {
|
|
539
544
|
obj.wait = message.wait;
|
|
@@ -541,12 +546,12 @@ export const PerformTouchRequest = {
|
|
|
541
546
|
return obj;
|
|
542
547
|
},
|
|
543
548
|
create(base) {
|
|
544
|
-
return PerformTouchRequest.fromPartial(base ?? {});
|
|
549
|
+
return exports.PerformTouchRequest.fromPartial(base ?? {});
|
|
545
550
|
},
|
|
546
551
|
fromPartial(object) {
|
|
547
552
|
const message = createBasePerformTouchRequest();
|
|
548
553
|
message.sequence = (object.sequence !== undefined && object.sequence !== null)
|
|
549
|
-
? TouchSequence.fromPartial(object.sequence)
|
|
554
|
+
? exports.TouchSequence.fromPartial(object.sequence)
|
|
550
555
|
: undefined;
|
|
551
556
|
message.wait = object.wait ?? false;
|
|
552
557
|
return message;
|
|
@@ -555,8 +560,8 @@ export const PerformTouchRequest = {
|
|
|
555
560
|
function createBaseSetPropRequest() {
|
|
556
561
|
return { name: "", value: "" };
|
|
557
562
|
}
|
|
558
|
-
|
|
559
|
-
encode(message, writer = new BinaryWriter()) {
|
|
563
|
+
exports.SetPropRequest = {
|
|
564
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
560
565
|
if (message.name !== "") {
|
|
561
566
|
writer.uint32(10).string(message.name);
|
|
562
567
|
}
|
|
@@ -566,7 +571,7 @@ export const SetPropRequest = {
|
|
|
566
571
|
return writer;
|
|
567
572
|
},
|
|
568
573
|
decode(input, length) {
|
|
569
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
574
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
570
575
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
571
576
|
const message = createBaseSetPropRequest();
|
|
572
577
|
while (reader.pos < end) {
|
|
@@ -611,7 +616,7 @@ export const SetPropRequest = {
|
|
|
611
616
|
return obj;
|
|
612
617
|
},
|
|
613
618
|
create(base) {
|
|
614
|
-
return SetPropRequest.fromPartial(base ?? {});
|
|
619
|
+
return exports.SetPropRequest.fromPartial(base ?? {});
|
|
615
620
|
},
|
|
616
621
|
fromPartial(object) {
|
|
617
622
|
const message = createBaseSetPropRequest();
|
|
@@ -623,15 +628,15 @@ export const SetPropRequest = {
|
|
|
623
628
|
function createBaseCertifiRequest() {
|
|
624
629
|
return { cert: new Uint8Array(0) };
|
|
625
630
|
}
|
|
626
|
-
|
|
627
|
-
encode(message, writer = new BinaryWriter()) {
|
|
631
|
+
exports.CertifiRequest = {
|
|
632
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
628
633
|
if (message.cert.length !== 0) {
|
|
629
634
|
writer.uint32(10).bytes(message.cert);
|
|
630
635
|
}
|
|
631
636
|
return writer;
|
|
632
637
|
},
|
|
633
638
|
decode(input, length) {
|
|
634
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
639
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
635
640
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
636
641
|
const message = createBaseCertifiRequest();
|
|
637
642
|
while (reader.pos < end) {
|
|
@@ -663,7 +668,7 @@ export const CertifiRequest = {
|
|
|
663
668
|
return obj;
|
|
664
669
|
},
|
|
665
670
|
create(base) {
|
|
666
|
-
return CertifiRequest.fromPartial(base ?? {});
|
|
671
|
+
return exports.CertifiRequest.fromPartial(base ?? {});
|
|
667
672
|
},
|
|
668
673
|
fromPartial(object) {
|
|
669
674
|
const message = createBaseCertifiRequest();
|
|
@@ -674,8 +679,8 @@ export const CertifiRequest = {
|
|
|
674
679
|
function createBaseShowToastRequest() {
|
|
675
680
|
return { text: "", duration: 0 };
|
|
676
681
|
}
|
|
677
|
-
|
|
678
|
-
encode(message, writer = new BinaryWriter()) {
|
|
682
|
+
exports.ShowToastRequest = {
|
|
683
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
679
684
|
if (message.text !== "") {
|
|
680
685
|
writer.uint32(10).string(message.text);
|
|
681
686
|
}
|
|
@@ -685,7 +690,7 @@ export const ShowToastRequest = {
|
|
|
685
690
|
return writer;
|
|
686
691
|
},
|
|
687
692
|
decode(input, length) {
|
|
688
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
693
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
689
694
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
690
695
|
const message = createBaseShowToastRequest();
|
|
691
696
|
while (reader.pos < end) {
|
|
@@ -730,7 +735,7 @@ export const ShowToastRequest = {
|
|
|
730
735
|
return obj;
|
|
731
736
|
},
|
|
732
737
|
create(base) {
|
|
733
|
-
return ShowToastRequest.fromPartial(base ?? {});
|
|
738
|
+
return exports.ShowToastRequest.fromPartial(base ?? {});
|
|
734
739
|
},
|
|
735
740
|
fromPartial(object) {
|
|
736
741
|
const message = createBaseShowToastRequest();
|
|
@@ -742,8 +747,8 @@ export const ShowToastRequest = {
|
|
|
742
747
|
function createBaseServerInfoResponse() {
|
|
743
748
|
return { uniqueId: "", version: "", architecture: "", uptime: 0, secure: false };
|
|
744
749
|
}
|
|
745
|
-
|
|
746
|
-
encode(message, writer = new BinaryWriter()) {
|
|
750
|
+
exports.ServerInfoResponse = {
|
|
751
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
747
752
|
if (message.uniqueId !== "") {
|
|
748
753
|
writer.uint32(10).string(message.uniqueId);
|
|
749
754
|
}
|
|
@@ -762,7 +767,7 @@ export const ServerInfoResponse = {
|
|
|
762
767
|
return writer;
|
|
763
768
|
},
|
|
764
769
|
decode(input, length) {
|
|
765
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
770
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
766
771
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
767
772
|
const message = createBaseServerInfoResponse();
|
|
768
773
|
while (reader.pos < end) {
|
|
@@ -840,7 +845,7 @@ export const ServerInfoResponse = {
|
|
|
840
845
|
return obj;
|
|
841
846
|
},
|
|
842
847
|
create(base) {
|
|
843
|
-
return ServerInfoResponse.fromPartial(base ?? {});
|
|
848
|
+
return exports.ServerInfoResponse.fromPartial(base ?? {});
|
|
844
849
|
},
|
|
845
850
|
fromPartial(object) {
|
|
846
851
|
const message = createBaseServerInfoResponse();
|
|
@@ -855,8 +860,8 @@ export const ServerInfoResponse = {
|
|
|
855
860
|
function createBaseHexPatchRequest() {
|
|
856
861
|
return { pattern: "", replacement: "", path: "", maxreplace: 0, dryrun: false };
|
|
857
862
|
}
|
|
858
|
-
|
|
859
|
-
encode(message, writer = new BinaryWriter()) {
|
|
863
|
+
exports.HexPatchRequest = {
|
|
864
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
860
865
|
if (message.pattern !== "") {
|
|
861
866
|
writer.uint32(10).string(message.pattern);
|
|
862
867
|
}
|
|
@@ -875,7 +880,7 @@ export const HexPatchRequest = {
|
|
|
875
880
|
return writer;
|
|
876
881
|
},
|
|
877
882
|
decode(input, length) {
|
|
878
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
883
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
879
884
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
880
885
|
const message = createBaseHexPatchRequest();
|
|
881
886
|
while (reader.pos < end) {
|
|
@@ -953,7 +958,7 @@ export const HexPatchRequest = {
|
|
|
953
958
|
return obj;
|
|
954
959
|
},
|
|
955
960
|
create(base) {
|
|
956
|
-
return HexPatchRequest.fromPartial(base ?? {});
|
|
961
|
+
return exports.HexPatchRequest.fromPartial(base ?? {});
|
|
957
962
|
},
|
|
958
963
|
fromPartial(object) {
|
|
959
964
|
const message = createBaseHexPatchRequest();
|
|
@@ -968,8 +973,8 @@ export const HexPatchRequest = {
|
|
|
968
973
|
function createBaseHexPatchItem() {
|
|
969
974
|
return { path: "", index: 0, offset: 0 };
|
|
970
975
|
}
|
|
971
|
-
|
|
972
|
-
encode(message, writer = new BinaryWriter()) {
|
|
976
|
+
exports.HexPatchItem = {
|
|
977
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
973
978
|
if (message.path !== "") {
|
|
974
979
|
writer.uint32(10).string(message.path);
|
|
975
980
|
}
|
|
@@ -982,7 +987,7 @@ export const HexPatchItem = {
|
|
|
982
987
|
return writer;
|
|
983
988
|
},
|
|
984
989
|
decode(input, length) {
|
|
985
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
990
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
986
991
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
987
992
|
const message = createBaseHexPatchItem();
|
|
988
993
|
while (reader.pos < end) {
|
|
@@ -1038,7 +1043,7 @@ export const HexPatchItem = {
|
|
|
1038
1043
|
return obj;
|
|
1039
1044
|
},
|
|
1040
1045
|
create(base) {
|
|
1041
|
-
return HexPatchItem.fromPartial(base ?? {});
|
|
1046
|
+
return exports.HexPatchItem.fromPartial(base ?? {});
|
|
1042
1047
|
},
|
|
1043
1048
|
fromPartial(object) {
|
|
1044
1049
|
const message = createBaseHexPatchItem();
|
|
@@ -1051,18 +1056,18 @@ export const HexPatchItem = {
|
|
|
1051
1056
|
function createBaseHexPatchResponse() {
|
|
1052
1057
|
return { count: 0, replaces: [] };
|
|
1053
1058
|
}
|
|
1054
|
-
|
|
1055
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1059
|
+
exports.HexPatchResponse = {
|
|
1060
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1056
1061
|
if (message.count !== 0) {
|
|
1057
1062
|
writer.uint32(8).int32(message.count);
|
|
1058
1063
|
}
|
|
1059
1064
|
for (const v of message.replaces) {
|
|
1060
|
-
HexPatchItem.encode(v, writer.uint32(18).fork()).join();
|
|
1065
|
+
exports.HexPatchItem.encode(v, writer.uint32(18).fork()).join();
|
|
1061
1066
|
}
|
|
1062
1067
|
return writer;
|
|
1063
1068
|
},
|
|
1064
1069
|
decode(input, length) {
|
|
1065
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1070
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1066
1071
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1067
1072
|
const message = createBaseHexPatchResponse();
|
|
1068
1073
|
while (reader.pos < end) {
|
|
@@ -1079,7 +1084,7 @@ export const HexPatchResponse = {
|
|
|
1079
1084
|
if (tag !== 18) {
|
|
1080
1085
|
break;
|
|
1081
1086
|
}
|
|
1082
|
-
message.replaces.push(HexPatchItem.decode(reader, reader.uint32()));
|
|
1087
|
+
message.replaces.push(exports.HexPatchItem.decode(reader, reader.uint32()));
|
|
1083
1088
|
continue;
|
|
1084
1089
|
}
|
|
1085
1090
|
}
|
|
@@ -1094,7 +1099,7 @@ export const HexPatchResponse = {
|
|
|
1094
1099
|
return {
|
|
1095
1100
|
count: isSet(object.count) ? globalThis.Number(object.count) : 0,
|
|
1096
1101
|
replaces: globalThis.Array.isArray(object?.replaces)
|
|
1097
|
-
? object.replaces.map((e) => HexPatchItem.fromJSON(e))
|
|
1102
|
+
? object.replaces.map((e) => exports.HexPatchItem.fromJSON(e))
|
|
1098
1103
|
: [],
|
|
1099
1104
|
};
|
|
1100
1105
|
},
|
|
@@ -1104,17 +1109,17 @@ export const HexPatchResponse = {
|
|
|
1104
1109
|
obj.count = Math.round(message.count);
|
|
1105
1110
|
}
|
|
1106
1111
|
if (message.replaces?.length) {
|
|
1107
|
-
obj.replaces = message.replaces.map((e) => HexPatchItem.toJSON(e));
|
|
1112
|
+
obj.replaces = message.replaces.map((e) => exports.HexPatchItem.toJSON(e));
|
|
1108
1113
|
}
|
|
1109
1114
|
return obj;
|
|
1110
1115
|
},
|
|
1111
1116
|
create(base) {
|
|
1112
|
-
return HexPatchResponse.fromPartial(base ?? {});
|
|
1117
|
+
return exports.HexPatchResponse.fromPartial(base ?? {});
|
|
1113
1118
|
},
|
|
1114
1119
|
fromPartial(object) {
|
|
1115
1120
|
const message = createBaseHexPatchResponse();
|
|
1116
1121
|
message.count = object.count ?? 0;
|
|
1117
|
-
message.replaces = object.replaces?.map((e) => HexPatchItem.fromPartial(e)) || [];
|
|
1122
|
+
message.replaces = object.replaces?.map((e) => exports.HexPatchItem.fromPartial(e)) || [];
|
|
1118
1123
|
return message;
|
|
1119
1124
|
},
|
|
1120
1125
|
};
|