@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/application.js
CHANGED
|
@@ -1,14 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HookRpcResponse = exports.HookRpcRequest = exports.HookRequest = exports.ApplicationPkgNames = exports.ApplicationProcesses = exports.ApplicationProcess = exports.ApplicationInfo = exports.ApplicationPermissions = exports.ApplicationActivityInfoList = exports.ApplicationActivityInfo = exports.ApplicationActivityRequest = exports.ApplicationRequest = exports.ScriptRuntime = exports.DataEncode = exports.GrantType = exports.protobufPackage = void 0;
|
|
4
|
+
exports.grantTypeFromJSON = grantTypeFromJSON;
|
|
5
|
+
exports.grantTypeToJSON = grantTypeToJSON;
|
|
6
|
+
exports.dataEncodeFromJSON = dataEncodeFromJSON;
|
|
7
|
+
exports.dataEncodeToJSON = dataEncodeToJSON;
|
|
8
|
+
exports.scriptRuntimeFromJSON = scriptRuntimeFromJSON;
|
|
9
|
+
exports.scriptRuntimeToJSON = scriptRuntimeToJSON;
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
const struct_1 = require("./google/protobuf/struct");
|
|
12
|
+
exports.protobufPackage = "lamda.rpc";
|
|
13
|
+
var GrantType;
|
|
5
14
|
(function (GrantType) {
|
|
6
15
|
GrantType[GrantType["GRANT_ALLOW"] = 0] = "GRANT_ALLOW";
|
|
7
16
|
GrantType[GrantType["GRANT_DENY"] = 1] = "GRANT_DENY";
|
|
8
17
|
GrantType[GrantType["GRANT_IGNORE"] = 2] = "GRANT_IGNORE";
|
|
9
18
|
GrantType[GrantType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
10
|
-
})(GrantType || (GrantType = {}));
|
|
11
|
-
|
|
19
|
+
})(GrantType || (exports.GrantType = GrantType = {}));
|
|
20
|
+
function grantTypeFromJSON(object) {
|
|
12
21
|
switch (object) {
|
|
13
22
|
case 0:
|
|
14
23
|
case "GRANT_ALLOW":
|
|
@@ -25,7 +34,7 @@ export function grantTypeFromJSON(object) {
|
|
|
25
34
|
return GrantType.UNRECOGNIZED;
|
|
26
35
|
}
|
|
27
36
|
}
|
|
28
|
-
|
|
37
|
+
function grantTypeToJSON(object) {
|
|
29
38
|
switch (object) {
|
|
30
39
|
case GrantType.GRANT_ALLOW:
|
|
31
40
|
return "GRANT_ALLOW";
|
|
@@ -38,13 +47,13 @@ export function grantTypeToJSON(object) {
|
|
|
38
47
|
return "UNRECOGNIZED";
|
|
39
48
|
}
|
|
40
49
|
}
|
|
41
|
-
|
|
50
|
+
var DataEncode;
|
|
42
51
|
(function (DataEncode) {
|
|
43
52
|
DataEncode[DataEncode["DATA_ENCODE_NONE"] = 0] = "DATA_ENCODE_NONE";
|
|
44
53
|
DataEncode[DataEncode["DATA_ENCODE_ZLIB"] = 1] = "DATA_ENCODE_ZLIB";
|
|
45
54
|
DataEncode[DataEncode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
46
|
-
})(DataEncode || (DataEncode = {}));
|
|
47
|
-
|
|
55
|
+
})(DataEncode || (exports.DataEncode = DataEncode = {}));
|
|
56
|
+
function dataEncodeFromJSON(object) {
|
|
48
57
|
switch (object) {
|
|
49
58
|
case 0:
|
|
50
59
|
case "DATA_ENCODE_NONE":
|
|
@@ -58,7 +67,7 @@ export function dataEncodeFromJSON(object) {
|
|
|
58
67
|
return DataEncode.UNRECOGNIZED;
|
|
59
68
|
}
|
|
60
69
|
}
|
|
61
|
-
|
|
70
|
+
function dataEncodeToJSON(object) {
|
|
62
71
|
switch (object) {
|
|
63
72
|
case DataEncode.DATA_ENCODE_NONE:
|
|
64
73
|
return "DATA_ENCODE_NONE";
|
|
@@ -69,13 +78,13 @@ export function dataEncodeToJSON(object) {
|
|
|
69
78
|
return "UNRECOGNIZED";
|
|
70
79
|
}
|
|
71
80
|
}
|
|
72
|
-
|
|
81
|
+
var ScriptRuntime;
|
|
73
82
|
(function (ScriptRuntime) {
|
|
74
83
|
ScriptRuntime[ScriptRuntime["RUNTIME_QJS"] = 0] = "RUNTIME_QJS";
|
|
75
84
|
ScriptRuntime[ScriptRuntime["RUNTIME_V8"] = 1] = "RUNTIME_V8";
|
|
76
85
|
ScriptRuntime[ScriptRuntime["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
77
|
-
})(ScriptRuntime || (ScriptRuntime = {}));
|
|
78
|
-
|
|
86
|
+
})(ScriptRuntime || (exports.ScriptRuntime = ScriptRuntime = {}));
|
|
87
|
+
function scriptRuntimeFromJSON(object) {
|
|
79
88
|
switch (object) {
|
|
80
89
|
case 0:
|
|
81
90
|
case "RUNTIME_QJS":
|
|
@@ -89,7 +98,7 @@ export function scriptRuntimeFromJSON(object) {
|
|
|
89
98
|
return ScriptRuntime.UNRECOGNIZED;
|
|
90
99
|
}
|
|
91
100
|
}
|
|
92
|
-
|
|
101
|
+
function scriptRuntimeToJSON(object) {
|
|
93
102
|
switch (object) {
|
|
94
103
|
case ScriptRuntime.RUNTIME_QJS:
|
|
95
104
|
return "RUNTIME_QJS";
|
|
@@ -103,8 +112,8 @@ export function scriptRuntimeToJSON(object) {
|
|
|
103
112
|
function createBaseApplicationRequest() {
|
|
104
113
|
return { name: "", permission: "", mode: 0, path: "", user: 0 };
|
|
105
114
|
}
|
|
106
|
-
|
|
107
|
-
encode(message, writer = new BinaryWriter()) {
|
|
115
|
+
exports.ApplicationRequest = {
|
|
116
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
108
117
|
if (message.name !== "") {
|
|
109
118
|
writer.uint32(10).string(message.name);
|
|
110
119
|
}
|
|
@@ -123,7 +132,7 @@ export const ApplicationRequest = {
|
|
|
123
132
|
return writer;
|
|
124
133
|
},
|
|
125
134
|
decode(input, length) {
|
|
126
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
135
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
127
136
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
128
137
|
const message = createBaseApplicationRequest();
|
|
129
138
|
while (reader.pos < end) {
|
|
@@ -201,7 +210,7 @@ export const ApplicationRequest = {
|
|
|
201
210
|
return obj;
|
|
202
211
|
},
|
|
203
212
|
create(base) {
|
|
204
|
-
return ApplicationRequest.fromPartial(base ?? {});
|
|
213
|
+
return exports.ApplicationRequest.fromPartial(base ?? {});
|
|
205
214
|
},
|
|
206
215
|
fromPartial(object) {
|
|
207
216
|
const message = createBaseApplicationRequest();
|
|
@@ -227,8 +236,8 @@ function createBaseApplicationActivityRequest() {
|
|
|
227
236
|
user: 0,
|
|
228
237
|
};
|
|
229
238
|
}
|
|
230
|
-
|
|
231
|
-
encode(message, writer = new BinaryWriter()) {
|
|
239
|
+
exports.ApplicationActivityRequest = {
|
|
240
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
232
241
|
if (message.package !== "") {
|
|
233
242
|
writer.uint32(10).string(message.package);
|
|
234
243
|
}
|
|
@@ -242,7 +251,7 @@ export const ApplicationActivityRequest = {
|
|
|
242
251
|
writer.uint32(34).string(message.component);
|
|
243
252
|
}
|
|
244
253
|
if (message.extras !== undefined) {
|
|
245
|
-
Struct.encode(Struct.wrap(message.extras), writer.uint32(42).fork()).join();
|
|
254
|
+
struct_1.Struct.encode(struct_1.Struct.wrap(message.extras), writer.uint32(42).fork()).join();
|
|
246
255
|
}
|
|
247
256
|
for (const v of message.categories) {
|
|
248
257
|
writer.uint32(50).string(v);
|
|
@@ -262,7 +271,7 @@ export const ApplicationActivityRequest = {
|
|
|
262
271
|
return writer;
|
|
263
272
|
},
|
|
264
273
|
decode(input, length) {
|
|
265
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
274
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
266
275
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
267
276
|
const message = createBaseApplicationActivityRequest();
|
|
268
277
|
while (reader.pos < end) {
|
|
@@ -300,7 +309,7 @@ export const ApplicationActivityRequest = {
|
|
|
300
309
|
if (tag !== 42) {
|
|
301
310
|
break;
|
|
302
311
|
}
|
|
303
|
-
message.extras = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
312
|
+
message.extras = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
|
|
304
313
|
continue;
|
|
305
314
|
}
|
|
306
315
|
case 6: {
|
|
@@ -397,7 +406,7 @@ export const ApplicationActivityRequest = {
|
|
|
397
406
|
return obj;
|
|
398
407
|
},
|
|
399
408
|
create(base) {
|
|
400
|
-
return ApplicationActivityRequest.fromPartial(base ?? {});
|
|
409
|
+
return exports.ApplicationActivityRequest.fromPartial(base ?? {});
|
|
401
410
|
},
|
|
402
411
|
fromPartial(object) {
|
|
403
412
|
const message = createBaseApplicationActivityRequest();
|
|
@@ -428,8 +437,8 @@ function createBaseApplicationActivityInfo() {
|
|
|
428
437
|
user: 0,
|
|
429
438
|
};
|
|
430
439
|
}
|
|
431
|
-
|
|
432
|
-
encode(message, writer = new BinaryWriter()) {
|
|
440
|
+
exports.ApplicationActivityInfo = {
|
|
441
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
433
442
|
if (message.package !== "") {
|
|
434
443
|
writer.uint32(10).string(message.package);
|
|
435
444
|
}
|
|
@@ -443,7 +452,7 @@ export const ApplicationActivityInfo = {
|
|
|
443
452
|
writer.uint32(34).string(message.component);
|
|
444
453
|
}
|
|
445
454
|
if (message.extras !== undefined) {
|
|
446
|
-
Struct.encode(Struct.wrap(message.extras), writer.uint32(42).fork()).join();
|
|
455
|
+
struct_1.Struct.encode(struct_1.Struct.wrap(message.extras), writer.uint32(42).fork()).join();
|
|
447
456
|
}
|
|
448
457
|
for (const v of message.categories) {
|
|
449
458
|
writer.uint32(50).string(v);
|
|
@@ -463,7 +472,7 @@ export const ApplicationActivityInfo = {
|
|
|
463
472
|
return writer;
|
|
464
473
|
},
|
|
465
474
|
decode(input, length) {
|
|
466
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
475
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
467
476
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
468
477
|
const message = createBaseApplicationActivityInfo();
|
|
469
478
|
while (reader.pos < end) {
|
|
@@ -501,7 +510,7 @@ export const ApplicationActivityInfo = {
|
|
|
501
510
|
if (tag !== 42) {
|
|
502
511
|
break;
|
|
503
512
|
}
|
|
504
|
-
message.extras = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
513
|
+
message.extras = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
|
|
505
514
|
continue;
|
|
506
515
|
}
|
|
507
516
|
case 6: {
|
|
@@ -598,7 +607,7 @@ export const ApplicationActivityInfo = {
|
|
|
598
607
|
return obj;
|
|
599
608
|
},
|
|
600
609
|
create(base) {
|
|
601
|
-
return ApplicationActivityInfo.fromPartial(base ?? {});
|
|
610
|
+
return exports.ApplicationActivityInfo.fromPartial(base ?? {});
|
|
602
611
|
},
|
|
603
612
|
fromPartial(object) {
|
|
604
613
|
const message = createBaseApplicationActivityInfo();
|
|
@@ -618,15 +627,15 @@ export const ApplicationActivityInfo = {
|
|
|
618
627
|
function createBaseApplicationActivityInfoList() {
|
|
619
628
|
return { activities: [] };
|
|
620
629
|
}
|
|
621
|
-
|
|
622
|
-
encode(message, writer = new BinaryWriter()) {
|
|
630
|
+
exports.ApplicationActivityInfoList = {
|
|
631
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
623
632
|
for (const v of message.activities) {
|
|
624
|
-
ApplicationActivityInfo.encode(v, writer.uint32(10).fork()).join();
|
|
633
|
+
exports.ApplicationActivityInfo.encode(v, writer.uint32(10).fork()).join();
|
|
625
634
|
}
|
|
626
635
|
return writer;
|
|
627
636
|
},
|
|
628
637
|
decode(input, length) {
|
|
629
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
638
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
630
639
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
631
640
|
const message = createBaseApplicationActivityInfoList();
|
|
632
641
|
while (reader.pos < end) {
|
|
@@ -636,7 +645,7 @@ export const ApplicationActivityInfoList = {
|
|
|
636
645
|
if (tag !== 10) {
|
|
637
646
|
break;
|
|
638
647
|
}
|
|
639
|
-
message.activities.push(ApplicationActivityInfo.decode(reader, reader.uint32()));
|
|
648
|
+
message.activities.push(exports.ApplicationActivityInfo.decode(reader, reader.uint32()));
|
|
640
649
|
continue;
|
|
641
650
|
}
|
|
642
651
|
}
|
|
@@ -650,38 +659,38 @@ export const ApplicationActivityInfoList = {
|
|
|
650
659
|
fromJSON(object) {
|
|
651
660
|
return {
|
|
652
661
|
activities: globalThis.Array.isArray(object?.activities)
|
|
653
|
-
? object.activities.map((e) => ApplicationActivityInfo.fromJSON(e))
|
|
662
|
+
? object.activities.map((e) => exports.ApplicationActivityInfo.fromJSON(e))
|
|
654
663
|
: [],
|
|
655
664
|
};
|
|
656
665
|
},
|
|
657
666
|
toJSON(message) {
|
|
658
667
|
const obj = {};
|
|
659
668
|
if (message.activities?.length) {
|
|
660
|
-
obj.activities = message.activities.map((e) => ApplicationActivityInfo.toJSON(e));
|
|
669
|
+
obj.activities = message.activities.map((e) => exports.ApplicationActivityInfo.toJSON(e));
|
|
661
670
|
}
|
|
662
671
|
return obj;
|
|
663
672
|
},
|
|
664
673
|
create(base) {
|
|
665
|
-
return ApplicationActivityInfoList.fromPartial(base ?? {});
|
|
674
|
+
return exports.ApplicationActivityInfoList.fromPartial(base ?? {});
|
|
666
675
|
},
|
|
667
676
|
fromPartial(object) {
|
|
668
677
|
const message = createBaseApplicationActivityInfoList();
|
|
669
|
-
message.activities = object.activities?.map((e) => ApplicationActivityInfo.fromPartial(e)) || [];
|
|
678
|
+
message.activities = object.activities?.map((e) => exports.ApplicationActivityInfo.fromPartial(e)) || [];
|
|
670
679
|
return message;
|
|
671
680
|
},
|
|
672
681
|
};
|
|
673
682
|
function createBaseApplicationPermissions() {
|
|
674
683
|
return { permissions: [] };
|
|
675
684
|
}
|
|
676
|
-
|
|
677
|
-
encode(message, writer = new BinaryWriter()) {
|
|
685
|
+
exports.ApplicationPermissions = {
|
|
686
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
678
687
|
for (const v of message.permissions) {
|
|
679
688
|
writer.uint32(10).string(v);
|
|
680
689
|
}
|
|
681
690
|
return writer;
|
|
682
691
|
},
|
|
683
692
|
decode(input, length) {
|
|
684
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
693
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
685
694
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
686
695
|
const message = createBaseApplicationPermissions();
|
|
687
696
|
while (reader.pos < end) {
|
|
@@ -717,7 +726,7 @@ export const ApplicationPermissions = {
|
|
|
717
726
|
return obj;
|
|
718
727
|
},
|
|
719
728
|
create(base) {
|
|
720
|
-
return ApplicationPermissions.fromPartial(base ?? {});
|
|
729
|
+
return exports.ApplicationPermissions.fromPartial(base ?? {});
|
|
721
730
|
},
|
|
722
731
|
fromPartial(object) {
|
|
723
732
|
const message = createBaseApplicationPermissions();
|
|
@@ -742,8 +751,8 @@ function createBaseApplicationInfo() {
|
|
|
742
751
|
user: 0,
|
|
743
752
|
};
|
|
744
753
|
}
|
|
745
|
-
|
|
746
|
-
encode(message, writer = new BinaryWriter()) {
|
|
754
|
+
exports.ApplicationInfo = {
|
|
755
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
747
756
|
if (message.packageName !== "") {
|
|
748
757
|
writer.uint32(10).string(message.packageName);
|
|
749
758
|
}
|
|
@@ -786,7 +795,7 @@ export const ApplicationInfo = {
|
|
|
786
795
|
return writer;
|
|
787
796
|
},
|
|
788
797
|
decode(input, length) {
|
|
789
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
798
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
790
799
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
791
800
|
const message = createBaseApplicationInfo();
|
|
792
801
|
while (reader.pos < end) {
|
|
@@ -952,7 +961,7 @@ export const ApplicationInfo = {
|
|
|
952
961
|
return obj;
|
|
953
962
|
},
|
|
954
963
|
create(base) {
|
|
955
|
-
return ApplicationInfo.fromPartial(base ?? {});
|
|
964
|
+
return exports.ApplicationInfo.fromPartial(base ?? {});
|
|
956
965
|
},
|
|
957
966
|
fromPartial(object) {
|
|
958
967
|
const message = createBaseApplicationInfo();
|
|
@@ -975,8 +984,8 @@ export const ApplicationInfo = {
|
|
|
975
984
|
function createBaseApplicationProcess() {
|
|
976
985
|
return { packages: [], processName: "", uid: 0, pid: 0 };
|
|
977
986
|
}
|
|
978
|
-
|
|
979
|
-
encode(message, writer = new BinaryWriter()) {
|
|
987
|
+
exports.ApplicationProcess = {
|
|
988
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
980
989
|
for (const v of message.packages) {
|
|
981
990
|
writer.uint32(10).string(v);
|
|
982
991
|
}
|
|
@@ -992,7 +1001,7 @@ export const ApplicationProcess = {
|
|
|
992
1001
|
return writer;
|
|
993
1002
|
},
|
|
994
1003
|
decode(input, length) {
|
|
995
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1004
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
996
1005
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
997
1006
|
const message = createBaseApplicationProcess();
|
|
998
1007
|
while (reader.pos < end) {
|
|
@@ -1059,7 +1068,7 @@ export const ApplicationProcess = {
|
|
|
1059
1068
|
return obj;
|
|
1060
1069
|
},
|
|
1061
1070
|
create(base) {
|
|
1062
|
-
return ApplicationProcess.fromPartial(base ?? {});
|
|
1071
|
+
return exports.ApplicationProcess.fromPartial(base ?? {});
|
|
1063
1072
|
},
|
|
1064
1073
|
fromPartial(object) {
|
|
1065
1074
|
const message = createBaseApplicationProcess();
|
|
@@ -1073,15 +1082,15 @@ export const ApplicationProcess = {
|
|
|
1073
1082
|
function createBaseApplicationProcesses() {
|
|
1074
1083
|
return { processes: [] };
|
|
1075
1084
|
}
|
|
1076
|
-
|
|
1077
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1085
|
+
exports.ApplicationProcesses = {
|
|
1086
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1078
1087
|
for (const v of message.processes) {
|
|
1079
|
-
ApplicationProcess.encode(v, writer.uint32(10).fork()).join();
|
|
1088
|
+
exports.ApplicationProcess.encode(v, writer.uint32(10).fork()).join();
|
|
1080
1089
|
}
|
|
1081
1090
|
return writer;
|
|
1082
1091
|
},
|
|
1083
1092
|
decode(input, length) {
|
|
1084
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1093
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1085
1094
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1086
1095
|
const message = createBaseApplicationProcesses();
|
|
1087
1096
|
while (reader.pos < end) {
|
|
@@ -1091,7 +1100,7 @@ export const ApplicationProcesses = {
|
|
|
1091
1100
|
if (tag !== 10) {
|
|
1092
1101
|
break;
|
|
1093
1102
|
}
|
|
1094
|
-
message.processes.push(ApplicationProcess.decode(reader, reader.uint32()));
|
|
1103
|
+
message.processes.push(exports.ApplicationProcess.decode(reader, reader.uint32()));
|
|
1095
1104
|
continue;
|
|
1096
1105
|
}
|
|
1097
1106
|
}
|
|
@@ -1105,38 +1114,38 @@ export const ApplicationProcesses = {
|
|
|
1105
1114
|
fromJSON(object) {
|
|
1106
1115
|
return {
|
|
1107
1116
|
processes: globalThis.Array.isArray(object?.processes)
|
|
1108
|
-
? object.processes.map((e) => ApplicationProcess.fromJSON(e))
|
|
1117
|
+
? object.processes.map((e) => exports.ApplicationProcess.fromJSON(e))
|
|
1109
1118
|
: [],
|
|
1110
1119
|
};
|
|
1111
1120
|
},
|
|
1112
1121
|
toJSON(message) {
|
|
1113
1122
|
const obj = {};
|
|
1114
1123
|
if (message.processes?.length) {
|
|
1115
|
-
obj.processes = message.processes.map((e) => ApplicationProcess.toJSON(e));
|
|
1124
|
+
obj.processes = message.processes.map((e) => exports.ApplicationProcess.toJSON(e));
|
|
1116
1125
|
}
|
|
1117
1126
|
return obj;
|
|
1118
1127
|
},
|
|
1119
1128
|
create(base) {
|
|
1120
|
-
return ApplicationProcesses.fromPartial(base ?? {});
|
|
1129
|
+
return exports.ApplicationProcesses.fromPartial(base ?? {});
|
|
1121
1130
|
},
|
|
1122
1131
|
fromPartial(object) {
|
|
1123
1132
|
const message = createBaseApplicationProcesses();
|
|
1124
|
-
message.processes = object.processes?.map((e) => ApplicationProcess.fromPartial(e)) || [];
|
|
1133
|
+
message.processes = object.processes?.map((e) => exports.ApplicationProcess.fromPartial(e)) || [];
|
|
1125
1134
|
return message;
|
|
1126
1135
|
},
|
|
1127
1136
|
};
|
|
1128
1137
|
function createBaseApplicationPkgNames() {
|
|
1129
1138
|
return { names: [] };
|
|
1130
1139
|
}
|
|
1131
|
-
|
|
1132
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1140
|
+
exports.ApplicationPkgNames = {
|
|
1141
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1133
1142
|
for (const v of message.names) {
|
|
1134
1143
|
writer.uint32(10).string(v);
|
|
1135
1144
|
}
|
|
1136
1145
|
return writer;
|
|
1137
1146
|
},
|
|
1138
1147
|
decode(input, length) {
|
|
1139
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1148
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1140
1149
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1141
1150
|
const message = createBaseApplicationPkgNames();
|
|
1142
1151
|
while (reader.pos < end) {
|
|
@@ -1168,7 +1177,7 @@ export const ApplicationPkgNames = {
|
|
|
1168
1177
|
return obj;
|
|
1169
1178
|
},
|
|
1170
1179
|
create(base) {
|
|
1171
|
-
return ApplicationPkgNames.fromPartial(base ?? {});
|
|
1180
|
+
return exports.ApplicationPkgNames.fromPartial(base ?? {});
|
|
1172
1181
|
},
|
|
1173
1182
|
fromPartial(object) {
|
|
1174
1183
|
const message = createBaseApplicationPkgNames();
|
|
@@ -1188,8 +1197,8 @@ function createBaseHookRequest() {
|
|
|
1188
1197
|
user: 0,
|
|
1189
1198
|
};
|
|
1190
1199
|
}
|
|
1191
|
-
|
|
1192
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1200
|
+
exports.HookRequest = {
|
|
1201
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1193
1202
|
if (message.package !== "") {
|
|
1194
1203
|
writer.uint32(10).string(message.package);
|
|
1195
1204
|
}
|
|
@@ -1217,7 +1226,7 @@ export const HookRequest = {
|
|
|
1217
1226
|
return writer;
|
|
1218
1227
|
},
|
|
1219
1228
|
decode(input, length) {
|
|
1220
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1229
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1221
1230
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1222
1231
|
const message = createBaseHookRequest();
|
|
1223
1232
|
while (reader.pos < end) {
|
|
@@ -1328,7 +1337,7 @@ export const HookRequest = {
|
|
|
1328
1337
|
return obj;
|
|
1329
1338
|
},
|
|
1330
1339
|
create(base) {
|
|
1331
|
-
return HookRequest.fromPartial(base ?? {});
|
|
1340
|
+
return exports.HookRequest.fromPartial(base ?? {});
|
|
1332
1341
|
},
|
|
1333
1342
|
fromPartial(object) {
|
|
1334
1343
|
const message = createBaseHookRequest();
|
|
@@ -1346,8 +1355,8 @@ export const HookRequest = {
|
|
|
1346
1355
|
function createBaseHookRpcRequest() {
|
|
1347
1356
|
return { package: "", callinfo: "", user: 0 };
|
|
1348
1357
|
}
|
|
1349
|
-
|
|
1350
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1358
|
+
exports.HookRpcRequest = {
|
|
1359
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1351
1360
|
if (message.package !== "") {
|
|
1352
1361
|
writer.uint32(10).string(message.package);
|
|
1353
1362
|
}
|
|
@@ -1360,7 +1369,7 @@ export const HookRpcRequest = {
|
|
|
1360
1369
|
return writer;
|
|
1361
1370
|
},
|
|
1362
1371
|
decode(input, length) {
|
|
1363
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1372
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1364
1373
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1365
1374
|
const message = createBaseHookRpcRequest();
|
|
1366
1375
|
while (reader.pos < end) {
|
|
@@ -1416,7 +1425,7 @@ export const HookRpcRequest = {
|
|
|
1416
1425
|
return obj;
|
|
1417
1426
|
},
|
|
1418
1427
|
create(base) {
|
|
1419
|
-
return HookRpcRequest.fromPartial(base ?? {});
|
|
1428
|
+
return exports.HookRpcRequest.fromPartial(base ?? {});
|
|
1420
1429
|
},
|
|
1421
1430
|
fromPartial(object) {
|
|
1422
1431
|
const message = createBaseHookRpcRequest();
|
|
@@ -1429,8 +1438,8 @@ export const HookRpcRequest = {
|
|
|
1429
1438
|
function createBaseHookRpcResponse() {
|
|
1430
1439
|
return { package: "", callresult: "" };
|
|
1431
1440
|
}
|
|
1432
|
-
|
|
1433
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1441
|
+
exports.HookRpcResponse = {
|
|
1442
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1434
1443
|
if (message.package !== "") {
|
|
1435
1444
|
writer.uint32(10).string(message.package);
|
|
1436
1445
|
}
|
|
@@ -1440,7 +1449,7 @@ export const HookRpcResponse = {
|
|
|
1440
1449
|
return writer;
|
|
1441
1450
|
},
|
|
1442
1451
|
decode(input, length) {
|
|
1443
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1452
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1444
1453
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1445
1454
|
const message = createBaseHookRpcResponse();
|
|
1446
1455
|
while (reader.pos < end) {
|
|
@@ -1485,7 +1494,7 @@ export const HookRpcResponse = {
|
|
|
1485
1494
|
return obj;
|
|
1486
1495
|
},
|
|
1487
1496
|
create(base) {
|
|
1488
|
-
return HookRpcResponse.fromPartial(base ?? {});
|
|
1497
|
+
return exports.HookRpcResponse.fromPartial(base ?? {});
|
|
1489
1498
|
},
|
|
1490
1499
|
fromPartial(object) {
|
|
1491
1500
|
const message = createBaseHookRpcResponse();
|
package/dist/rpc/debug.js
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ADBDConfigRequest = exports.protobufPackage = void 0;
|
|
4
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
5
|
+
exports.protobufPackage = "lamda.rpc";
|
|
3
6
|
function createBaseADBDConfigRequest() {
|
|
4
7
|
return { adbPubkey: "" };
|
|
5
8
|
}
|
|
6
|
-
|
|
7
|
-
encode(message, writer = new BinaryWriter()) {
|
|
9
|
+
exports.ADBDConfigRequest = {
|
|
10
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8
11
|
if (message.adbPubkey !== "") {
|
|
9
12
|
writer.uint32(10).string(message.adbPubkey);
|
|
10
13
|
}
|
|
11
14
|
return writer;
|
|
12
15
|
},
|
|
13
16
|
decode(input, length) {
|
|
14
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
17
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
15
18
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
16
19
|
const message = createBaseADBDConfigRequest();
|
|
17
20
|
while (reader.pos < end) {
|
|
@@ -43,7 +46,7 @@ export const ADBDConfigRequest = {
|
|
|
43
46
|
return obj;
|
|
44
47
|
},
|
|
45
48
|
create(base) {
|
|
46
|
-
return ADBDConfigRequest.fromPartial(base ?? {});
|
|
49
|
+
return exports.ADBDConfigRequest.fromPartial(base ?? {});
|
|
47
50
|
},
|
|
48
51
|
fromPartial(object) {
|
|
49
52
|
const message = createBaseADBDConfigRequest();
|
package/dist/rpc/file.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileDataResponse = exports.FileRequest = exports.FileStat = exports.protobufPackage = void 0;
|
|
4
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
5
|
+
exports.protobufPackage = "lamda.rpc";
|
|
3
6
|
function createBaseFileStat() {
|
|
4
7
|
return {
|
|
5
8
|
name: "",
|
|
@@ -14,8 +17,8 @@ function createBaseFileStat() {
|
|
|
14
17
|
stSize: 0,
|
|
15
18
|
};
|
|
16
19
|
}
|
|
17
|
-
|
|
18
|
-
encode(message, writer = new BinaryWriter()) {
|
|
20
|
+
exports.FileStat = {
|
|
21
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
19
22
|
if (message.name !== "") {
|
|
20
23
|
writer.uint32(10).string(message.name);
|
|
21
24
|
}
|
|
@@ -49,7 +52,7 @@ export const FileStat = {
|
|
|
49
52
|
return writer;
|
|
50
53
|
},
|
|
51
54
|
decode(input, length) {
|
|
52
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
55
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
53
56
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
54
57
|
const message = createBaseFileStat();
|
|
55
58
|
while (reader.pos < end) {
|
|
@@ -182,7 +185,7 @@ export const FileStat = {
|
|
|
182
185
|
return obj;
|
|
183
186
|
},
|
|
184
187
|
create(base) {
|
|
185
|
-
return FileStat.fromPartial(base ?? {});
|
|
188
|
+
return exports.FileStat.fromPartial(base ?? {});
|
|
186
189
|
},
|
|
187
190
|
fromPartial(object) {
|
|
188
191
|
const message = createBaseFileStat();
|
|
@@ -202,8 +205,8 @@ export const FileStat = {
|
|
|
202
205
|
function createBaseFileRequest() {
|
|
203
206
|
return { path: "", mode: 0, payload: new Uint8Array(0) };
|
|
204
207
|
}
|
|
205
|
-
|
|
206
|
-
encode(message, writer = new BinaryWriter()) {
|
|
208
|
+
exports.FileRequest = {
|
|
209
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
207
210
|
if (message.path !== "") {
|
|
208
211
|
writer.uint32(10).string(message.path);
|
|
209
212
|
}
|
|
@@ -216,7 +219,7 @@ export const FileRequest = {
|
|
|
216
219
|
return writer;
|
|
217
220
|
},
|
|
218
221
|
decode(input, length) {
|
|
219
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
222
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
220
223
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
221
224
|
const message = createBaseFileRequest();
|
|
222
225
|
while (reader.pos < end) {
|
|
@@ -272,7 +275,7 @@ export const FileRequest = {
|
|
|
272
275
|
return obj;
|
|
273
276
|
},
|
|
274
277
|
create(base) {
|
|
275
|
-
return FileRequest.fromPartial(base ?? {});
|
|
278
|
+
return exports.FileRequest.fromPartial(base ?? {});
|
|
276
279
|
},
|
|
277
280
|
fromPartial(object) {
|
|
278
281
|
const message = createBaseFileRequest();
|
|
@@ -285,15 +288,15 @@ export const FileRequest = {
|
|
|
285
288
|
function createBaseFileDataResponse() {
|
|
286
289
|
return { payload: new Uint8Array(0) };
|
|
287
290
|
}
|
|
288
|
-
|
|
289
|
-
encode(message, writer = new BinaryWriter()) {
|
|
291
|
+
exports.FileDataResponse = {
|
|
292
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
290
293
|
if (message.payload.length !== 0) {
|
|
291
294
|
writer.uint32(10).bytes(message.payload);
|
|
292
295
|
}
|
|
293
296
|
return writer;
|
|
294
297
|
},
|
|
295
298
|
decode(input, length) {
|
|
296
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
299
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
297
300
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
298
301
|
const message = createBaseFileDataResponse();
|
|
299
302
|
while (reader.pos < end) {
|
|
@@ -325,7 +328,7 @@ export const FileDataResponse = {
|
|
|
325
328
|
return obj;
|
|
326
329
|
},
|
|
327
330
|
create(base) {
|
|
328
|
-
return FileDataResponse.fromPartial(base ?? {});
|
|
331
|
+
return exports.FileDataResponse.fromPartial(base ?? {});
|
|
329
332
|
},
|
|
330
333
|
fromPartial(object) {
|
|
331
334
|
const message = createBaseFileDataResponse();
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Any = exports.protobufPackage = void 0;
|
|
4
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
5
|
+
exports.protobufPackage = "google.protobuf";
|
|
3
6
|
function createBaseAny() {
|
|
4
7
|
return { typeUrl: "", value: new Uint8Array(0) };
|
|
5
8
|
}
|
|
6
|
-
|
|
7
|
-
encode(message, writer = new BinaryWriter()) {
|
|
9
|
+
exports.Any = {
|
|
10
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8
11
|
if (message.typeUrl !== "") {
|
|
9
12
|
writer.uint32(10).string(message.typeUrl);
|
|
10
13
|
}
|
|
@@ -14,7 +17,7 @@ export const Any = {
|
|
|
14
17
|
return writer;
|
|
15
18
|
},
|
|
16
19
|
decode(input, length) {
|
|
17
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
20
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
18
21
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
19
22
|
const message = createBaseAny();
|
|
20
23
|
while (reader.pos < end) {
|
|
@@ -59,7 +62,7 @@ export const Any = {
|
|
|
59
62
|
return obj;
|
|
60
63
|
},
|
|
61
64
|
create(base) {
|
|
62
|
-
return Any.fromPartial(base ?? {});
|
|
65
|
+
return exports.Any.fromPartial(base ?? {});
|
|
63
66
|
},
|
|
64
67
|
fromPartial(object) {
|
|
65
68
|
const message = createBaseAny();
|