@ekhein/lamda-node-sdk 1.0.1 → 1.0.3
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/chunk-3JBDAA2H.js +439 -0
- package/dist/chunk-4AHM55IO.js +1172 -0
- package/dist/chunk-4NKGYNMS.js +116 -0
- package/dist/chunk-6HD35RPW.js +5370 -0
- package/dist/chunk-76Y3OVVH.js +1602 -0
- package/dist/chunk-7XF22HAW.js +907 -0
- package/dist/chunk-7YGA6EOV.js +109 -0
- package/dist/chunk-ADS4GRIL.js +14 -0
- package/dist/chunk-FSLE4VGI.js +48 -0
- package/dist/chunk-H7Z6XFBF.js +134 -0
- package/dist/chunk-KJKSI2WL.js +62 -0
- package/dist/chunk-O52JGDU7.js +800 -0
- package/dist/chunk-ORXTTWPB.js +379 -0
- package/dist/chunk-OZJH6SR7.js +20 -0
- package/dist/chunk-P53F45YO.js +64 -0
- package/dist/chunk-QXMPY6EE.js +289 -0
- package/dist/chunk-SBFKX3ZY.js +1554 -0
- package/dist/chunk-WFQEBPE6.js +300 -0
- package/dist/chunk-X4LTH2UN.js +983 -0
- package/dist/chunk-XAX5BZL3.js +132 -0
- package/dist/chunk-ZXF5DGTC.js +45 -0
- package/dist/constants/activity.flag.cjs +92 -0
- package/dist/constants/activity.flag.d.cts +24 -0
- package/dist/constants/activity.flag.d.ts +24 -0
- package/dist/constants/activity.flag.js +49 -0
- package/dist/constants/android.intent.cjs +194 -0
- package/dist/constants/android.intent.d.cts +58 -0
- package/dist/constants/android.intent.d.ts +58 -0
- package/dist/constants/android.intent.js +117 -0
- package/dist/constants/android.permission.cjs +116 -0
- package/dist/constants/android.permission.d.cts +32 -0
- package/dist/constants/android.permission.d.ts +32 -0
- package/dist/constants/android.permission.js +65 -0
- package/dist/constants/index.cjs +356 -0
- package/dist/constants/index.d.cts +3 -0
- package/dist/constants/index.d.ts +3 -0
- package/dist/constants/index.js +225 -0
- package/dist/decorators/inject.decorator.cjs +43 -0
- package/dist/decorators/inject.decorator.d.cts +5 -0
- package/dist/decorators/inject.decorator.d.ts +5 -0
- package/dist/decorators/inject.decorator.js +7 -0
- package/dist/main.cjs +1 -2
- package/dist/main.d.cts +17 -1152
- package/dist/main.d.ts +17 -1152
- package/dist/main.js +36 -11873
- package/dist/rpc/application.cjs +2019 -0
- package/dist/rpc/application.d.cts +138 -0
- package/dist/rpc/application.d.ts +138 -0
- package/dist/rpc/application.js +50 -0
- package/dist/rpc/debug.cjs +86 -0
- package/dist/rpc/debug.d.cts +21 -0
- package/dist/rpc/debug.d.ts +21 -0
- package/dist/rpc/debug.js +9 -0
- package/dist/rpc/file.cjs +405 -0
- package/dist/rpc/file.d.cts +40 -0
- package/dist/rpc/file.d.ts +40 -0
- package/dist/rpc/file.js +13 -0
- package/dist/rpc/google/protobuf/any.cjs +126 -0
- package/dist/rpc/google/protobuf/any.d.cts +22 -0
- package/dist/rpc/google/protobuf/any.d.ts +22 -0
- package/dist/rpc/google/protobuf/any.js +103 -0
- package/dist/rpc/google/protobuf/empty.cjs +69 -0
- package/dist/rpc/google/protobuf/empty.d.cts +20 -0
- package/dist/rpc/google/protobuf/empty.d.ts +20 -0
- package/dist/rpc/google/protobuf/empty.js +9 -0
- package/dist/rpc/google/protobuf/struct.cjs +469 -0
- package/dist/rpc/google/protobuf/struct.d.cts +65 -0
- package/dist/rpc/google/protobuf/struct.d.ts +65 -0
- package/dist/rpc/google/protobuf/struct.js +21 -0
- package/dist/rpc/policy.cjs +133 -0
- package/dist/rpc/policy.d.cts +24 -0
- package/dist/rpc/policy.d.ts +24 -0
- package/dist/rpc/policy.js +9 -0
- package/dist/rpc/proxy.cjs +1109 -0
- package/dist/rpc/proxy.d.cts +108 -0
- package/dist/rpc/proxy.d.ts +108 -0
- package/dist/rpc/proxy.js +49 -0
- package/dist/rpc/services.cjs +11898 -0
- package/dist/rpc/services.d.cts +1920 -0
- package/dist/rpc/services.d.ts +1920 -0
- package/dist/rpc/services.js +48 -0
- package/dist/rpc/settings.cjs +161 -0
- package/dist/rpc/settings.d.cts +31 -0
- package/dist/rpc/settings.d.ts +31 -0
- package/dist/rpc/settings.js +15 -0
- package/dist/rpc/shell.cjs +326 -0
- package/dist/rpc/shell.d.cts +36 -0
- package/dist/rpc/shell.d.ts +36 -0
- package/dist/rpc/shell.js +13 -0
- package/dist/rpc/status.cjs +936 -0
- package/dist/rpc/status.d.cts +76 -0
- package/dist/rpc/status.d.ts +76 -0
- package/dist/rpc/status.js +19 -0
- package/dist/rpc/storage.cjs +156 -0
- package/dist/rpc/storage.d.cts +24 -0
- package/dist/rpc/storage.d.ts +24 -0
- package/dist/rpc/storage.js +9 -0
- package/dist/rpc/types.cjs +317 -0
- package/dist/rpc/types.d.cts +36 -0
- package/dist/rpc/types.d.ts +36 -0
- package/dist/rpc/types.js +17 -0
- package/dist/rpc/uiautomator.cjs +5446 -0
- package/dist/rpc/uiautomator.d.cts +618 -0
- package/dist/rpc/uiautomator.d.ts +618 -0
- package/dist/rpc/uiautomator.js +113 -0
- package/dist/rpc/util.cjs +1212 -0
- package/dist/rpc/util.d.cts +103 -0
- package/dist/rpc/util.d.ts +103 -0
- package/dist/rpc/util.js +41 -0
- package/dist/rpc/wifi.cjs +1015 -0
- package/dist/rpc/wifi.d.cts +84 -0
- package/dist/rpc/wifi.d.ts +84 -0
- package/dist/rpc/wifi.js +25 -0
- package/package.json +3 -4
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// src/rpc/policy.ts
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
3
|
+
var protobufPackage = "lamda.rpc";
|
|
4
|
+
function createBaseSelinuxPolicyRequest() {
|
|
5
|
+
return { source: "", target: "", tclass: "", action: "" };
|
|
6
|
+
}
|
|
7
|
+
var SelinuxPolicyRequest = {
|
|
8
|
+
encode(message, writer = new BinaryWriter()) {
|
|
9
|
+
if (message.source !== "") {
|
|
10
|
+
writer.uint32(10).string(message.source);
|
|
11
|
+
}
|
|
12
|
+
if (message.target !== "") {
|
|
13
|
+
writer.uint32(18).string(message.target);
|
|
14
|
+
}
|
|
15
|
+
if (message.tclass !== "") {
|
|
16
|
+
writer.uint32(26).string(message.tclass);
|
|
17
|
+
}
|
|
18
|
+
if (message.action !== "") {
|
|
19
|
+
writer.uint32(34).string(message.action);
|
|
20
|
+
}
|
|
21
|
+
return writer;
|
|
22
|
+
},
|
|
23
|
+
decode(input, length) {
|
|
24
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
25
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
26
|
+
const message = createBaseSelinuxPolicyRequest();
|
|
27
|
+
while (reader.pos < end) {
|
|
28
|
+
const tag = reader.uint32();
|
|
29
|
+
switch (tag >>> 3) {
|
|
30
|
+
case 1: {
|
|
31
|
+
if (tag !== 10) {
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
message.source = reader.string();
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
case 2: {
|
|
38
|
+
if (tag !== 18) {
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
message.target = reader.string();
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
case 3: {
|
|
45
|
+
if (tag !== 26) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.tclass = reader.string();
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
case 4: {
|
|
52
|
+
if (tag !== 34) {
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
message.action = reader.string();
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
reader.skip(tag & 7);
|
|
63
|
+
}
|
|
64
|
+
return message;
|
|
65
|
+
},
|
|
66
|
+
fromJSON(object) {
|
|
67
|
+
return {
|
|
68
|
+
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
69
|
+
target: isSet(object.target) ? globalThis.String(object.target) : "",
|
|
70
|
+
tclass: isSet(object.tclass) ? globalThis.String(object.tclass) : "",
|
|
71
|
+
action: isSet(object.action) ? globalThis.String(object.action) : ""
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
toJSON(message) {
|
|
75
|
+
const obj = {};
|
|
76
|
+
if (message.source !== "") {
|
|
77
|
+
obj.source = message.source;
|
|
78
|
+
}
|
|
79
|
+
if (message.target !== "") {
|
|
80
|
+
obj.target = message.target;
|
|
81
|
+
}
|
|
82
|
+
if (message.tclass !== "") {
|
|
83
|
+
obj.tclass = message.tclass;
|
|
84
|
+
}
|
|
85
|
+
if (message.action !== "") {
|
|
86
|
+
obj.action = message.action;
|
|
87
|
+
}
|
|
88
|
+
return obj;
|
|
89
|
+
},
|
|
90
|
+
create(base) {
|
|
91
|
+
return SelinuxPolicyRequest.fromPartial(base ?? {});
|
|
92
|
+
},
|
|
93
|
+
fromPartial(object) {
|
|
94
|
+
const message = createBaseSelinuxPolicyRequest();
|
|
95
|
+
message.source = object.source ?? "";
|
|
96
|
+
message.target = object.target ?? "";
|
|
97
|
+
message.tclass = object.tclass ?? "";
|
|
98
|
+
message.action = object.action ?? "";
|
|
99
|
+
return message;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== void 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export {
|
|
107
|
+
protobufPackage,
|
|
108
|
+
SelinuxPolicyRequest
|
|
109
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
9
|
+
return result;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
__decorateClass
|
|
14
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// src/constants/activity.flag.ts
|
|
2
|
+
var FLAG_ACTIVITY_BROUGHT_TO_FRONT = 4194304;
|
|
3
|
+
var FLAG_ACTIVITY_CLEAR_TASK = 32768;
|
|
4
|
+
var FLAG_ACTIVITY_CLEAR_TOP = 67108864;
|
|
5
|
+
var FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS = 8388608;
|
|
6
|
+
var FLAG_ACTIVITY_FORWARD_RESULT = 33554432;
|
|
7
|
+
var FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY = 1048576;
|
|
8
|
+
var FLAG_ACTIVITY_LAUNCH_ADJACENT = 4096;
|
|
9
|
+
var FLAG_ACTIVITY_MATCH_EXTERNAL = 2048;
|
|
10
|
+
var FLAG_ACTIVITY_MULTIPLE_TASK = 134217728;
|
|
11
|
+
var FLAG_ACTIVITY_NEW_DOCUMENT = 524288;
|
|
12
|
+
var FLAG_ACTIVITY_NEW_TASK = 268435456;
|
|
13
|
+
var FLAG_ACTIVITY_NO_ANIMATION = 65536;
|
|
14
|
+
var FLAG_ACTIVITY_NO_HISTORY = 1073741824;
|
|
15
|
+
var FLAG_ACTIVITY_NO_USER_ACTION = 262144;
|
|
16
|
+
var FLAG_ACTIVITY_PREVIOUS_IS_TOP = 16777216;
|
|
17
|
+
var FLAG_ACTIVITY_REORDER_TO_FRONT = 131072;
|
|
18
|
+
var FLAG_ACTIVITY_REQUIRE_DEFAULT = 512;
|
|
19
|
+
var FLAG_ACTIVITY_REQUIRE_NON_BROWSER = 1024;
|
|
20
|
+
var FLAG_ACTIVITY_RESET_TASK_IF_NEEDED = 2097152;
|
|
21
|
+
var FLAG_ACTIVITY_RETAIN_IN_RECENTS = 8192;
|
|
22
|
+
var FLAG_ACTIVITY_SINGLE_TOP = 536870912;
|
|
23
|
+
var FLAG_ACTIVITY_TASK_ON_HOME = 16384;
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
FLAG_ACTIVITY_BROUGHT_TO_FRONT,
|
|
27
|
+
FLAG_ACTIVITY_CLEAR_TASK,
|
|
28
|
+
FLAG_ACTIVITY_CLEAR_TOP,
|
|
29
|
+
FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS,
|
|
30
|
+
FLAG_ACTIVITY_FORWARD_RESULT,
|
|
31
|
+
FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY,
|
|
32
|
+
FLAG_ACTIVITY_LAUNCH_ADJACENT,
|
|
33
|
+
FLAG_ACTIVITY_MATCH_EXTERNAL,
|
|
34
|
+
FLAG_ACTIVITY_MULTIPLE_TASK,
|
|
35
|
+
FLAG_ACTIVITY_NEW_DOCUMENT,
|
|
36
|
+
FLAG_ACTIVITY_NEW_TASK,
|
|
37
|
+
FLAG_ACTIVITY_NO_ANIMATION,
|
|
38
|
+
FLAG_ACTIVITY_NO_HISTORY,
|
|
39
|
+
FLAG_ACTIVITY_NO_USER_ACTION,
|
|
40
|
+
FLAG_ACTIVITY_PREVIOUS_IS_TOP,
|
|
41
|
+
FLAG_ACTIVITY_REORDER_TO_FRONT,
|
|
42
|
+
FLAG_ACTIVITY_REQUIRE_DEFAULT,
|
|
43
|
+
FLAG_ACTIVITY_REQUIRE_NON_BROWSER,
|
|
44
|
+
FLAG_ACTIVITY_RESET_TASK_IF_NEEDED,
|
|
45
|
+
FLAG_ACTIVITY_RETAIN_IN_RECENTS,
|
|
46
|
+
FLAG_ACTIVITY_SINGLE_TOP,
|
|
47
|
+
FLAG_ACTIVITY_TASK_ON_HOME
|
|
48
|
+
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// src/rpc/settings.ts
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
3
|
+
var protobufPackage = "lamda.rpc";
|
|
4
|
+
var Group = /* @__PURE__ */ ((Group2) => {
|
|
5
|
+
Group2[Group2["GROUP_SYSTEM"] = 0] = "GROUP_SYSTEM";
|
|
6
|
+
Group2[Group2["GROUP_SECURE"] = 1] = "GROUP_SECURE";
|
|
7
|
+
Group2[Group2["GROUP_GLOBAL"] = 2] = "GROUP_GLOBAL";
|
|
8
|
+
Group2[Group2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
9
|
+
return Group2;
|
|
10
|
+
})(Group || {});
|
|
11
|
+
function groupFromJSON(object) {
|
|
12
|
+
switch (object) {
|
|
13
|
+
case 0:
|
|
14
|
+
case "GROUP_SYSTEM":
|
|
15
|
+
return 0 /* GROUP_SYSTEM */;
|
|
16
|
+
case 1:
|
|
17
|
+
case "GROUP_SECURE":
|
|
18
|
+
return 1 /* GROUP_SECURE */;
|
|
19
|
+
case 2:
|
|
20
|
+
case "GROUP_GLOBAL":
|
|
21
|
+
return 2 /* GROUP_GLOBAL */;
|
|
22
|
+
case -1:
|
|
23
|
+
case "UNRECOGNIZED":
|
|
24
|
+
default:
|
|
25
|
+
return -1 /* UNRECOGNIZED */;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function groupToJSON(object) {
|
|
29
|
+
switch (object) {
|
|
30
|
+
case 0 /* GROUP_SYSTEM */:
|
|
31
|
+
return "GROUP_SYSTEM";
|
|
32
|
+
case 1 /* GROUP_SECURE */:
|
|
33
|
+
return "GROUP_SECURE";
|
|
34
|
+
case 2 /* GROUP_GLOBAL */:
|
|
35
|
+
return "GROUP_GLOBAL";
|
|
36
|
+
case -1 /* UNRECOGNIZED */:
|
|
37
|
+
default:
|
|
38
|
+
return "UNRECOGNIZED";
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function createBaseSettingsRequest() {
|
|
42
|
+
return { group: 0, name: "", value: "" };
|
|
43
|
+
}
|
|
44
|
+
var SettingsRequest = {
|
|
45
|
+
encode(message, writer = new BinaryWriter()) {
|
|
46
|
+
if (message.group !== 0) {
|
|
47
|
+
writer.uint32(8).int32(message.group);
|
|
48
|
+
}
|
|
49
|
+
if (message.name !== "") {
|
|
50
|
+
writer.uint32(18).string(message.name);
|
|
51
|
+
}
|
|
52
|
+
if (message.value !== "") {
|
|
53
|
+
writer.uint32(26).string(message.value);
|
|
54
|
+
}
|
|
55
|
+
return writer;
|
|
56
|
+
},
|
|
57
|
+
decode(input, length) {
|
|
58
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
59
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
60
|
+
const message = createBaseSettingsRequest();
|
|
61
|
+
while (reader.pos < end) {
|
|
62
|
+
const tag = reader.uint32();
|
|
63
|
+
switch (tag >>> 3) {
|
|
64
|
+
case 1: {
|
|
65
|
+
if (tag !== 8) {
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
message.group = reader.int32();
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
case 2: {
|
|
72
|
+
if (tag !== 18) {
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
message.name = reader.string();
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
case 3: {
|
|
79
|
+
if (tag !== 26) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.value = reader.string();
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
reader.skip(tag & 7);
|
|
90
|
+
}
|
|
91
|
+
return message;
|
|
92
|
+
},
|
|
93
|
+
fromJSON(object) {
|
|
94
|
+
return {
|
|
95
|
+
group: isSet(object.group) ? groupFromJSON(object.group) : 0,
|
|
96
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
97
|
+
value: isSet(object.value) ? globalThis.String(object.value) : ""
|
|
98
|
+
};
|
|
99
|
+
},
|
|
100
|
+
toJSON(message) {
|
|
101
|
+
const obj = {};
|
|
102
|
+
if (message.group !== 0) {
|
|
103
|
+
obj.group = groupToJSON(message.group);
|
|
104
|
+
}
|
|
105
|
+
if (message.name !== "") {
|
|
106
|
+
obj.name = message.name;
|
|
107
|
+
}
|
|
108
|
+
if (message.value !== "") {
|
|
109
|
+
obj.value = message.value;
|
|
110
|
+
}
|
|
111
|
+
return obj;
|
|
112
|
+
},
|
|
113
|
+
create(base) {
|
|
114
|
+
return SettingsRequest.fromPartial(base ?? {});
|
|
115
|
+
},
|
|
116
|
+
fromPartial(object) {
|
|
117
|
+
const message = createBaseSettingsRequest();
|
|
118
|
+
message.group = object.group ?? 0;
|
|
119
|
+
message.name = object.name ?? "";
|
|
120
|
+
message.value = object.value ?? "";
|
|
121
|
+
return message;
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
function isSet(value) {
|
|
125
|
+
return value !== null && value !== void 0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export {
|
|
129
|
+
protobufPackage,
|
|
130
|
+
Group,
|
|
131
|
+
groupFromJSON,
|
|
132
|
+
groupToJSON,
|
|
133
|
+
SettingsRequest
|
|
134
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// src/rpc/debug.ts
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
3
|
+
var protobufPackage = "lamda.rpc";
|
|
4
|
+
function createBaseADBDConfigRequest() {
|
|
5
|
+
return { adbPubkey: "" };
|
|
6
|
+
}
|
|
7
|
+
var ADBDConfigRequest = {
|
|
8
|
+
encode(message, writer = new BinaryWriter()) {
|
|
9
|
+
if (message.adbPubkey !== "") {
|
|
10
|
+
writer.uint32(10).string(message.adbPubkey);
|
|
11
|
+
}
|
|
12
|
+
return writer;
|
|
13
|
+
},
|
|
14
|
+
decode(input, length) {
|
|
15
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
17
|
+
const message = createBaseADBDConfigRequest();
|
|
18
|
+
while (reader.pos < end) {
|
|
19
|
+
const tag = reader.uint32();
|
|
20
|
+
switch (tag >>> 3) {
|
|
21
|
+
case 1: {
|
|
22
|
+
if (tag !== 10) {
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
message.adbPubkey = reader.string();
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
reader.skip(tag & 7);
|
|
33
|
+
}
|
|
34
|
+
return message;
|
|
35
|
+
},
|
|
36
|
+
fromJSON(object) {
|
|
37
|
+
return { adbPubkey: isSet(object.adbPubkey) ? globalThis.String(object.adbPubkey) : "" };
|
|
38
|
+
},
|
|
39
|
+
toJSON(message) {
|
|
40
|
+
const obj = {};
|
|
41
|
+
if (message.adbPubkey !== "") {
|
|
42
|
+
obj.adbPubkey = message.adbPubkey;
|
|
43
|
+
}
|
|
44
|
+
return obj;
|
|
45
|
+
},
|
|
46
|
+
create(base) {
|
|
47
|
+
return ADBDConfigRequest.fromPartial(base ?? {});
|
|
48
|
+
},
|
|
49
|
+
fromPartial(object) {
|
|
50
|
+
const message = createBaseADBDConfigRequest();
|
|
51
|
+
message.adbPubkey = object.adbPubkey ?? "";
|
|
52
|
+
return message;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
function isSet(value) {
|
|
56
|
+
return value !== null && value !== void 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
protobufPackage,
|
|
61
|
+
ADBDConfigRequest
|
|
62
|
+
};
|