@ekhein/lamda-node-sdk 1.0.3 → 2.0.0
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/src/constants/activity.flag.d.ts +22 -0
- package/dist/src/constants/activity.flag.js +22 -0
- package/dist/src/constants/android.intent.d.ts +56 -0
- package/dist/src/constants/android.intent.js +56 -0
- package/dist/src/constants/android.permission.d.ts +30 -0
- package/dist/src/constants/android.permission.js +30 -0
- package/dist/src/constants/index.d.ts +3 -0
- package/dist/src/constants/index.js +3 -0
- package/dist/src/decorators/inject.decorator.d.ts +2 -0
- package/dist/src/decorators/inject.decorator.js +15 -0
- package/dist/src/exceptions/remoteCall.exception.d.ts +7 -0
- package/dist/src/exceptions/remoteCall.exception.js +12 -0
- package/dist/src/exceptions/timeout.exception.d.ts +4 -0
- package/dist/src/exceptions/timeout.exception.js +6 -0
- package/dist/src/interceptor/remoteException.Interceptor.d.ts +2 -0
- package/dist/src/interceptor/remoteException.Interceptor.js +13 -0
- package/dist/{main.d.ts → src/main.d.ts} +9 -21
- package/dist/src/main.js +135 -0
- package/dist/src/rpc/application.d.ts +136 -0
- package/dist/src/rpc/application.js +1537 -0
- package/dist/src/rpc/debug.d.ts +19 -0
- package/dist/src/rpc/debug.js +56 -0
- package/dist/{rpc → src/rpc}/file.d.ts +11 -13
- package/dist/src/rpc/file.js +373 -0
- package/dist/src/rpc/google/protobuf/any.d.ts +20 -0
- package/dist/src/rpc/google/protobuf/any.js +98 -0
- package/dist/src/rpc/google/protobuf/empty.d.ts +18 -0
- package/dist/src/rpc/google/protobuf/empty.js +39 -0
- package/dist/{rpc → src/rpc}/google/protobuf/struct.d.ts +19 -21
- package/dist/src/rpc/google/protobuf/struct.js +438 -0
- package/dist/src/rpc/policy.d.ts +22 -0
- package/dist/src/rpc/policy.js +103 -0
- package/dist/src/rpc/proxy.d.ts +106 -0
- package/dist/src/rpc/proxy.js +774 -0
- package/dist/{rpc → src/rpc}/services.d.ts +421 -424
- package/dist/src/rpc/services.js +1493 -0
- package/dist/src/rpc/settings.d.ts +29 -0
- package/dist/src/rpc/settings.js +125 -0
- package/dist/src/rpc/shell.d.ts +34 -0
- package/dist/src/rpc/shell.js +294 -0
- package/dist/{rpc → src/rpc}/status.d.ts +17 -19
- package/dist/src/rpc/status.js +896 -0
- package/dist/src/rpc/storage.d.ts +22 -0
- package/dist/src/rpc/storage.js +128 -0
- package/dist/src/rpc/types.d.ts +34 -0
- package/dist/src/rpc/types.js +281 -0
- package/dist/{rpc → src/rpc}/uiautomator.d.ts +87 -89
- package/dist/src/rpc/uiautomator.js +5350 -0
- package/dist/src/rpc/util.d.ts +101 -0
- package/dist/src/rpc/util.js +1158 -0
- package/dist/{rpc → src/rpc}/wifi.d.ts +23 -25
- package/dist/src/rpc/wifi.js +971 -0
- package/package.json +4 -9
- package/dist/chunk-3JBDAA2H.js +0 -439
- package/dist/chunk-4AHM55IO.js +0 -1172
- package/dist/chunk-4NKGYNMS.js +0 -116
- package/dist/chunk-6HD35RPW.js +0 -5370
- package/dist/chunk-76Y3OVVH.js +0 -1602
- package/dist/chunk-7XF22HAW.js +0 -907
- package/dist/chunk-7YGA6EOV.js +0 -109
- package/dist/chunk-ADS4GRIL.js +0 -14
- package/dist/chunk-FSLE4VGI.js +0 -48
- package/dist/chunk-H7Z6XFBF.js +0 -134
- package/dist/chunk-KJKSI2WL.js +0 -62
- package/dist/chunk-O52JGDU7.js +0 -800
- package/dist/chunk-ORXTTWPB.js +0 -379
- package/dist/chunk-OZJH6SR7.js +0 -20
- package/dist/chunk-P53F45YO.js +0 -64
- package/dist/chunk-QXMPY6EE.js +0 -289
- package/dist/chunk-SBFKX3ZY.js +0 -1554
- package/dist/chunk-WFQEBPE6.js +0 -300
- package/dist/chunk-X4LTH2UN.js +0 -983
- package/dist/chunk-XAX5BZL3.js +0 -132
- package/dist/chunk-ZXF5DGTC.js +0 -45
- package/dist/constants/activity.flag.cjs +0 -92
- package/dist/constants/activity.flag.d.cts +0 -24
- package/dist/constants/activity.flag.d.ts +0 -24
- package/dist/constants/activity.flag.js +0 -49
- package/dist/constants/android.intent.cjs +0 -194
- package/dist/constants/android.intent.d.cts +0 -58
- package/dist/constants/android.intent.d.ts +0 -58
- package/dist/constants/android.intent.js +0 -117
- package/dist/constants/android.permission.cjs +0 -116
- package/dist/constants/android.permission.d.cts +0 -32
- package/dist/constants/android.permission.d.ts +0 -32
- package/dist/constants/android.permission.js +0 -65
- package/dist/constants/index.cjs +0 -356
- package/dist/constants/index.d.cts +0 -3
- package/dist/constants/index.d.ts +0 -3
- package/dist/constants/index.js +0 -225
- package/dist/decorators/inject.decorator.cjs +0 -43
- package/dist/decorators/inject.decorator.d.cts +0 -5
- package/dist/decorators/inject.decorator.d.ts +0 -5
- package/dist/decorators/inject.decorator.js +0 -7
- package/dist/main.cjs +0 -11969
- package/dist/main.d.cts +0 -37
- package/dist/main.js +0 -112
- package/dist/rpc/application.cjs +0 -2019
- package/dist/rpc/application.d.cts +0 -138
- package/dist/rpc/application.d.ts +0 -138
- package/dist/rpc/application.js +0 -50
- package/dist/rpc/debug.cjs +0 -86
- package/dist/rpc/debug.d.cts +0 -21
- package/dist/rpc/debug.d.ts +0 -21
- package/dist/rpc/debug.js +0 -9
- package/dist/rpc/file.cjs +0 -405
- package/dist/rpc/file.d.cts +0 -40
- package/dist/rpc/file.js +0 -13
- package/dist/rpc/google/protobuf/any.cjs +0 -126
- package/dist/rpc/google/protobuf/any.d.cts +0 -22
- package/dist/rpc/google/protobuf/any.d.ts +0 -22
- package/dist/rpc/google/protobuf/any.js +0 -103
- package/dist/rpc/google/protobuf/empty.cjs +0 -69
- package/dist/rpc/google/protobuf/empty.d.cts +0 -20
- package/dist/rpc/google/protobuf/empty.d.ts +0 -20
- package/dist/rpc/google/protobuf/empty.js +0 -9
- package/dist/rpc/google/protobuf/struct.cjs +0 -469
- package/dist/rpc/google/protobuf/struct.d.cts +0 -65
- package/dist/rpc/google/protobuf/struct.js +0 -21
- package/dist/rpc/policy.cjs +0 -133
- package/dist/rpc/policy.d.cts +0 -24
- package/dist/rpc/policy.d.ts +0 -24
- package/dist/rpc/policy.js +0 -9
- package/dist/rpc/proxy.cjs +0 -1109
- package/dist/rpc/proxy.d.cts +0 -108
- package/dist/rpc/proxy.d.ts +0 -108
- package/dist/rpc/proxy.js +0 -49
- package/dist/rpc/services.cjs +0 -11898
- package/dist/rpc/services.d.cts +0 -1920
- package/dist/rpc/services.js +0 -48
- package/dist/rpc/settings.cjs +0 -161
- package/dist/rpc/settings.d.cts +0 -31
- package/dist/rpc/settings.d.ts +0 -31
- package/dist/rpc/settings.js +0 -15
- package/dist/rpc/shell.cjs +0 -326
- package/dist/rpc/shell.d.cts +0 -36
- package/dist/rpc/shell.d.ts +0 -36
- package/dist/rpc/shell.js +0 -13
- package/dist/rpc/status.cjs +0 -936
- package/dist/rpc/status.d.cts +0 -76
- package/dist/rpc/status.js +0 -19
- package/dist/rpc/storage.cjs +0 -156
- package/dist/rpc/storage.d.cts +0 -24
- package/dist/rpc/storage.d.ts +0 -24
- package/dist/rpc/storage.js +0 -9
- package/dist/rpc/types.cjs +0 -317
- package/dist/rpc/types.d.cts +0 -36
- package/dist/rpc/types.d.ts +0 -36
- package/dist/rpc/types.js +0 -17
- package/dist/rpc/uiautomator.cjs +0 -5446
- package/dist/rpc/uiautomator.d.cts +0 -618
- package/dist/rpc/uiautomator.js +0 -113
- package/dist/rpc/util.cjs +0 -1212
- package/dist/rpc/util.d.cts +0 -103
- package/dist/rpc/util.d.ts +0 -103
- package/dist/rpc/util.js +0 -41
- package/dist/rpc/wifi.cjs +0 -1015
- package/dist/rpc/wifi.d.cts +0 -84
- package/dist/rpc/wifi.js +0 -25
package/dist/chunk-SBFKX3ZY.js
DELETED
|
@@ -1,1554 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Struct
|
|
3
|
-
} from "./chunk-3JBDAA2H.js";
|
|
4
|
-
|
|
5
|
-
// src/rpc/application.ts
|
|
6
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
7
|
-
var protobufPackage = "lamda.rpc";
|
|
8
|
-
var GrantType = /* @__PURE__ */ ((GrantType2) => {
|
|
9
|
-
GrantType2[GrantType2["GRANT_ALLOW"] = 0] = "GRANT_ALLOW";
|
|
10
|
-
GrantType2[GrantType2["GRANT_DENY"] = 1] = "GRANT_DENY";
|
|
11
|
-
GrantType2[GrantType2["GRANT_IGNORE"] = 2] = "GRANT_IGNORE";
|
|
12
|
-
GrantType2[GrantType2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
13
|
-
return GrantType2;
|
|
14
|
-
})(GrantType || {});
|
|
15
|
-
function grantTypeFromJSON(object) {
|
|
16
|
-
switch (object) {
|
|
17
|
-
case 0:
|
|
18
|
-
case "GRANT_ALLOW":
|
|
19
|
-
return 0 /* GRANT_ALLOW */;
|
|
20
|
-
case 1:
|
|
21
|
-
case "GRANT_DENY":
|
|
22
|
-
return 1 /* GRANT_DENY */;
|
|
23
|
-
case 2:
|
|
24
|
-
case "GRANT_IGNORE":
|
|
25
|
-
return 2 /* GRANT_IGNORE */;
|
|
26
|
-
case -1:
|
|
27
|
-
case "UNRECOGNIZED":
|
|
28
|
-
default:
|
|
29
|
-
return -1 /* UNRECOGNIZED */;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
function grantTypeToJSON(object) {
|
|
33
|
-
switch (object) {
|
|
34
|
-
case 0 /* GRANT_ALLOW */:
|
|
35
|
-
return "GRANT_ALLOW";
|
|
36
|
-
case 1 /* GRANT_DENY */:
|
|
37
|
-
return "GRANT_DENY";
|
|
38
|
-
case 2 /* GRANT_IGNORE */:
|
|
39
|
-
return "GRANT_IGNORE";
|
|
40
|
-
case -1 /* UNRECOGNIZED */:
|
|
41
|
-
default:
|
|
42
|
-
return "UNRECOGNIZED";
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
var DataEncode = /* @__PURE__ */ ((DataEncode2) => {
|
|
46
|
-
DataEncode2[DataEncode2["DATA_ENCODE_NONE"] = 0] = "DATA_ENCODE_NONE";
|
|
47
|
-
DataEncode2[DataEncode2["DATA_ENCODE_ZLIB"] = 1] = "DATA_ENCODE_ZLIB";
|
|
48
|
-
DataEncode2[DataEncode2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
49
|
-
return DataEncode2;
|
|
50
|
-
})(DataEncode || {});
|
|
51
|
-
function dataEncodeFromJSON(object) {
|
|
52
|
-
switch (object) {
|
|
53
|
-
case 0:
|
|
54
|
-
case "DATA_ENCODE_NONE":
|
|
55
|
-
return 0 /* DATA_ENCODE_NONE */;
|
|
56
|
-
case 1:
|
|
57
|
-
case "DATA_ENCODE_ZLIB":
|
|
58
|
-
return 1 /* DATA_ENCODE_ZLIB */;
|
|
59
|
-
case -1:
|
|
60
|
-
case "UNRECOGNIZED":
|
|
61
|
-
default:
|
|
62
|
-
return -1 /* UNRECOGNIZED */;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function dataEncodeToJSON(object) {
|
|
66
|
-
switch (object) {
|
|
67
|
-
case 0 /* DATA_ENCODE_NONE */:
|
|
68
|
-
return "DATA_ENCODE_NONE";
|
|
69
|
-
case 1 /* DATA_ENCODE_ZLIB */:
|
|
70
|
-
return "DATA_ENCODE_ZLIB";
|
|
71
|
-
case -1 /* UNRECOGNIZED */:
|
|
72
|
-
default:
|
|
73
|
-
return "UNRECOGNIZED";
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
var ScriptRuntime = /* @__PURE__ */ ((ScriptRuntime2) => {
|
|
77
|
-
ScriptRuntime2[ScriptRuntime2["RUNTIME_QJS"] = 0] = "RUNTIME_QJS";
|
|
78
|
-
ScriptRuntime2[ScriptRuntime2["RUNTIME_V8"] = 1] = "RUNTIME_V8";
|
|
79
|
-
ScriptRuntime2[ScriptRuntime2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
80
|
-
return ScriptRuntime2;
|
|
81
|
-
})(ScriptRuntime || {});
|
|
82
|
-
function scriptRuntimeFromJSON(object) {
|
|
83
|
-
switch (object) {
|
|
84
|
-
case 0:
|
|
85
|
-
case "RUNTIME_QJS":
|
|
86
|
-
return 0 /* RUNTIME_QJS */;
|
|
87
|
-
case 1:
|
|
88
|
-
case "RUNTIME_V8":
|
|
89
|
-
return 1 /* RUNTIME_V8 */;
|
|
90
|
-
case -1:
|
|
91
|
-
case "UNRECOGNIZED":
|
|
92
|
-
default:
|
|
93
|
-
return -1 /* UNRECOGNIZED */;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
function scriptRuntimeToJSON(object) {
|
|
97
|
-
switch (object) {
|
|
98
|
-
case 0 /* RUNTIME_QJS */:
|
|
99
|
-
return "RUNTIME_QJS";
|
|
100
|
-
case 1 /* RUNTIME_V8 */:
|
|
101
|
-
return "RUNTIME_V8";
|
|
102
|
-
case -1 /* UNRECOGNIZED */:
|
|
103
|
-
default:
|
|
104
|
-
return "UNRECOGNIZED";
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
function createBaseApplicationRequest() {
|
|
108
|
-
return { name: "", permission: "", mode: 0, path: "", user: 0 };
|
|
109
|
-
}
|
|
110
|
-
var ApplicationRequest = {
|
|
111
|
-
encode(message, writer = new BinaryWriter()) {
|
|
112
|
-
if (message.name !== "") {
|
|
113
|
-
writer.uint32(10).string(message.name);
|
|
114
|
-
}
|
|
115
|
-
if (message.permission !== "") {
|
|
116
|
-
writer.uint32(18).string(message.permission);
|
|
117
|
-
}
|
|
118
|
-
if (message.mode !== 0) {
|
|
119
|
-
writer.uint32(24).int32(message.mode);
|
|
120
|
-
}
|
|
121
|
-
if (message.path !== "") {
|
|
122
|
-
writer.uint32(34).string(message.path);
|
|
123
|
-
}
|
|
124
|
-
if (message.user !== 0) {
|
|
125
|
-
writer.uint32(40).uint32(message.user);
|
|
126
|
-
}
|
|
127
|
-
return writer;
|
|
128
|
-
},
|
|
129
|
-
decode(input, length) {
|
|
130
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
131
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
132
|
-
const message = createBaseApplicationRequest();
|
|
133
|
-
while (reader.pos < end) {
|
|
134
|
-
const tag = reader.uint32();
|
|
135
|
-
switch (tag >>> 3) {
|
|
136
|
-
case 1: {
|
|
137
|
-
if (tag !== 10) {
|
|
138
|
-
break;
|
|
139
|
-
}
|
|
140
|
-
message.name = reader.string();
|
|
141
|
-
continue;
|
|
142
|
-
}
|
|
143
|
-
case 2: {
|
|
144
|
-
if (tag !== 18) {
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
message.permission = reader.string();
|
|
148
|
-
continue;
|
|
149
|
-
}
|
|
150
|
-
case 3: {
|
|
151
|
-
if (tag !== 24) {
|
|
152
|
-
break;
|
|
153
|
-
}
|
|
154
|
-
message.mode = reader.int32();
|
|
155
|
-
continue;
|
|
156
|
-
}
|
|
157
|
-
case 4: {
|
|
158
|
-
if (tag !== 34) {
|
|
159
|
-
break;
|
|
160
|
-
}
|
|
161
|
-
message.path = reader.string();
|
|
162
|
-
continue;
|
|
163
|
-
}
|
|
164
|
-
case 5: {
|
|
165
|
-
if (tag !== 40) {
|
|
166
|
-
break;
|
|
167
|
-
}
|
|
168
|
-
message.user = reader.uint32();
|
|
169
|
-
continue;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
reader.skip(tag & 7);
|
|
176
|
-
}
|
|
177
|
-
return message;
|
|
178
|
-
},
|
|
179
|
-
fromJSON(object) {
|
|
180
|
-
return {
|
|
181
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
182
|
-
permission: isSet(object.permission) ? globalThis.String(object.permission) : "",
|
|
183
|
-
mode: isSet(object.mode) ? grantTypeFromJSON(object.mode) : 0,
|
|
184
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
185
|
-
user: isSet(object.user) ? globalThis.Number(object.user) : 0
|
|
186
|
-
};
|
|
187
|
-
},
|
|
188
|
-
toJSON(message) {
|
|
189
|
-
const obj = {};
|
|
190
|
-
if (message.name !== "") {
|
|
191
|
-
obj.name = message.name;
|
|
192
|
-
}
|
|
193
|
-
if (message.permission !== "") {
|
|
194
|
-
obj.permission = message.permission;
|
|
195
|
-
}
|
|
196
|
-
if (message.mode !== 0) {
|
|
197
|
-
obj.mode = grantTypeToJSON(message.mode);
|
|
198
|
-
}
|
|
199
|
-
if (message.path !== "") {
|
|
200
|
-
obj.path = message.path;
|
|
201
|
-
}
|
|
202
|
-
if (message.user !== 0) {
|
|
203
|
-
obj.user = Math.round(message.user);
|
|
204
|
-
}
|
|
205
|
-
return obj;
|
|
206
|
-
},
|
|
207
|
-
create(base) {
|
|
208
|
-
return ApplicationRequest.fromPartial(base ?? {});
|
|
209
|
-
},
|
|
210
|
-
fromPartial(object) {
|
|
211
|
-
const message = createBaseApplicationRequest();
|
|
212
|
-
message.name = object.name ?? "";
|
|
213
|
-
message.permission = object.permission ?? "";
|
|
214
|
-
message.mode = object.mode ?? 0;
|
|
215
|
-
message.path = object.path ?? "";
|
|
216
|
-
message.user = object.user ?? 0;
|
|
217
|
-
return message;
|
|
218
|
-
}
|
|
219
|
-
};
|
|
220
|
-
function createBaseApplicationActivityRequest() {
|
|
221
|
-
return {
|
|
222
|
-
package: "",
|
|
223
|
-
action: "",
|
|
224
|
-
category: "",
|
|
225
|
-
component: "",
|
|
226
|
-
extras: void 0,
|
|
227
|
-
categories: [],
|
|
228
|
-
flags: 0,
|
|
229
|
-
debug: false,
|
|
230
|
-
data: "",
|
|
231
|
-
user: 0
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
var ApplicationActivityRequest = {
|
|
235
|
-
encode(message, writer = new BinaryWriter()) {
|
|
236
|
-
if (message.package !== "") {
|
|
237
|
-
writer.uint32(10).string(message.package);
|
|
238
|
-
}
|
|
239
|
-
if (message.action !== "") {
|
|
240
|
-
writer.uint32(18).string(message.action);
|
|
241
|
-
}
|
|
242
|
-
if (message.category !== "") {
|
|
243
|
-
writer.uint32(26).string(message.category);
|
|
244
|
-
}
|
|
245
|
-
if (message.component !== "") {
|
|
246
|
-
writer.uint32(34).string(message.component);
|
|
247
|
-
}
|
|
248
|
-
if (message.extras !== void 0) {
|
|
249
|
-
Struct.encode(Struct.wrap(message.extras), writer.uint32(42).fork()).join();
|
|
250
|
-
}
|
|
251
|
-
for (const v of message.categories) {
|
|
252
|
-
writer.uint32(50).string(v);
|
|
253
|
-
}
|
|
254
|
-
if (message.flags !== 0) {
|
|
255
|
-
writer.uint32(56).int64(message.flags);
|
|
256
|
-
}
|
|
257
|
-
if (message.debug !== false) {
|
|
258
|
-
writer.uint32(64).bool(message.debug);
|
|
259
|
-
}
|
|
260
|
-
if (message.data !== "") {
|
|
261
|
-
writer.uint32(74).string(message.data);
|
|
262
|
-
}
|
|
263
|
-
if (message.user !== 0) {
|
|
264
|
-
writer.uint32(80).uint32(message.user);
|
|
265
|
-
}
|
|
266
|
-
return writer;
|
|
267
|
-
},
|
|
268
|
-
decode(input, length) {
|
|
269
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
270
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
271
|
-
const message = createBaseApplicationActivityRequest();
|
|
272
|
-
while (reader.pos < end) {
|
|
273
|
-
const tag = reader.uint32();
|
|
274
|
-
switch (tag >>> 3) {
|
|
275
|
-
case 1: {
|
|
276
|
-
if (tag !== 10) {
|
|
277
|
-
break;
|
|
278
|
-
}
|
|
279
|
-
message.package = reader.string();
|
|
280
|
-
continue;
|
|
281
|
-
}
|
|
282
|
-
case 2: {
|
|
283
|
-
if (tag !== 18) {
|
|
284
|
-
break;
|
|
285
|
-
}
|
|
286
|
-
message.action = reader.string();
|
|
287
|
-
continue;
|
|
288
|
-
}
|
|
289
|
-
case 3: {
|
|
290
|
-
if (tag !== 26) {
|
|
291
|
-
break;
|
|
292
|
-
}
|
|
293
|
-
message.category = reader.string();
|
|
294
|
-
continue;
|
|
295
|
-
}
|
|
296
|
-
case 4: {
|
|
297
|
-
if (tag !== 34) {
|
|
298
|
-
break;
|
|
299
|
-
}
|
|
300
|
-
message.component = reader.string();
|
|
301
|
-
continue;
|
|
302
|
-
}
|
|
303
|
-
case 5: {
|
|
304
|
-
if (tag !== 42) {
|
|
305
|
-
break;
|
|
306
|
-
}
|
|
307
|
-
message.extras = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
308
|
-
continue;
|
|
309
|
-
}
|
|
310
|
-
case 6: {
|
|
311
|
-
if (tag !== 50) {
|
|
312
|
-
break;
|
|
313
|
-
}
|
|
314
|
-
message.categories.push(reader.string());
|
|
315
|
-
continue;
|
|
316
|
-
}
|
|
317
|
-
case 7: {
|
|
318
|
-
if (tag !== 56) {
|
|
319
|
-
break;
|
|
320
|
-
}
|
|
321
|
-
message.flags = longToNumber(reader.int64());
|
|
322
|
-
continue;
|
|
323
|
-
}
|
|
324
|
-
case 8: {
|
|
325
|
-
if (tag !== 64) {
|
|
326
|
-
break;
|
|
327
|
-
}
|
|
328
|
-
message.debug = reader.bool();
|
|
329
|
-
continue;
|
|
330
|
-
}
|
|
331
|
-
case 9: {
|
|
332
|
-
if (tag !== 74) {
|
|
333
|
-
break;
|
|
334
|
-
}
|
|
335
|
-
message.data = reader.string();
|
|
336
|
-
continue;
|
|
337
|
-
}
|
|
338
|
-
case 10: {
|
|
339
|
-
if (tag !== 80) {
|
|
340
|
-
break;
|
|
341
|
-
}
|
|
342
|
-
message.user = reader.uint32();
|
|
343
|
-
continue;
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
347
|
-
break;
|
|
348
|
-
}
|
|
349
|
-
reader.skip(tag & 7);
|
|
350
|
-
}
|
|
351
|
-
return message;
|
|
352
|
-
},
|
|
353
|
-
fromJSON(object) {
|
|
354
|
-
return {
|
|
355
|
-
package: isSet(object.package) ? globalThis.String(object.package) : "",
|
|
356
|
-
action: isSet(object.action) ? globalThis.String(object.action) : "",
|
|
357
|
-
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
358
|
-
component: isSet(object.component) ? globalThis.String(object.component) : "",
|
|
359
|
-
extras: isObject(object.extras) ? object.extras : void 0,
|
|
360
|
-
categories: globalThis.Array.isArray(object?.categories) ? object.categories.map((e) => globalThis.String(e)) : [],
|
|
361
|
-
flags: isSet(object.flags) ? globalThis.Number(object.flags) : 0,
|
|
362
|
-
debug: isSet(object.debug) ? globalThis.Boolean(object.debug) : false,
|
|
363
|
-
data: isSet(object.data) ? globalThis.String(object.data) : "",
|
|
364
|
-
user: isSet(object.user) ? globalThis.Number(object.user) : 0
|
|
365
|
-
};
|
|
366
|
-
},
|
|
367
|
-
toJSON(message) {
|
|
368
|
-
const obj = {};
|
|
369
|
-
if (message.package !== "") {
|
|
370
|
-
obj.package = message.package;
|
|
371
|
-
}
|
|
372
|
-
if (message.action !== "") {
|
|
373
|
-
obj.action = message.action;
|
|
374
|
-
}
|
|
375
|
-
if (message.category !== "") {
|
|
376
|
-
obj.category = message.category;
|
|
377
|
-
}
|
|
378
|
-
if (message.component !== "") {
|
|
379
|
-
obj.component = message.component;
|
|
380
|
-
}
|
|
381
|
-
if (message.extras !== void 0) {
|
|
382
|
-
obj.extras = message.extras;
|
|
383
|
-
}
|
|
384
|
-
if (message.categories?.length) {
|
|
385
|
-
obj.categories = message.categories;
|
|
386
|
-
}
|
|
387
|
-
if (message.flags !== 0) {
|
|
388
|
-
obj.flags = Math.round(message.flags);
|
|
389
|
-
}
|
|
390
|
-
if (message.debug !== false) {
|
|
391
|
-
obj.debug = message.debug;
|
|
392
|
-
}
|
|
393
|
-
if (message.data !== "") {
|
|
394
|
-
obj.data = message.data;
|
|
395
|
-
}
|
|
396
|
-
if (message.user !== 0) {
|
|
397
|
-
obj.user = Math.round(message.user);
|
|
398
|
-
}
|
|
399
|
-
return obj;
|
|
400
|
-
},
|
|
401
|
-
create(base) {
|
|
402
|
-
return ApplicationActivityRequest.fromPartial(base ?? {});
|
|
403
|
-
},
|
|
404
|
-
fromPartial(object) {
|
|
405
|
-
const message = createBaseApplicationActivityRequest();
|
|
406
|
-
message.package = object.package ?? "";
|
|
407
|
-
message.action = object.action ?? "";
|
|
408
|
-
message.category = object.category ?? "";
|
|
409
|
-
message.component = object.component ?? "";
|
|
410
|
-
message.extras = object.extras ?? void 0;
|
|
411
|
-
message.categories = object.categories?.map((e) => e) || [];
|
|
412
|
-
message.flags = object.flags ?? 0;
|
|
413
|
-
message.debug = object.debug ?? false;
|
|
414
|
-
message.data = object.data ?? "";
|
|
415
|
-
message.user = object.user ?? 0;
|
|
416
|
-
return message;
|
|
417
|
-
}
|
|
418
|
-
};
|
|
419
|
-
function createBaseApplicationActivityInfo() {
|
|
420
|
-
return {
|
|
421
|
-
package: "",
|
|
422
|
-
action: "",
|
|
423
|
-
category: "",
|
|
424
|
-
component: "",
|
|
425
|
-
extras: void 0,
|
|
426
|
-
categories: [],
|
|
427
|
-
flags: 0,
|
|
428
|
-
debug: false,
|
|
429
|
-
data: "",
|
|
430
|
-
user: 0
|
|
431
|
-
};
|
|
432
|
-
}
|
|
433
|
-
var ApplicationActivityInfo = {
|
|
434
|
-
encode(message, writer = new BinaryWriter()) {
|
|
435
|
-
if (message.package !== "") {
|
|
436
|
-
writer.uint32(10).string(message.package);
|
|
437
|
-
}
|
|
438
|
-
if (message.action !== "") {
|
|
439
|
-
writer.uint32(18).string(message.action);
|
|
440
|
-
}
|
|
441
|
-
if (message.category !== "") {
|
|
442
|
-
writer.uint32(26).string(message.category);
|
|
443
|
-
}
|
|
444
|
-
if (message.component !== "") {
|
|
445
|
-
writer.uint32(34).string(message.component);
|
|
446
|
-
}
|
|
447
|
-
if (message.extras !== void 0) {
|
|
448
|
-
Struct.encode(Struct.wrap(message.extras), writer.uint32(42).fork()).join();
|
|
449
|
-
}
|
|
450
|
-
for (const v of message.categories) {
|
|
451
|
-
writer.uint32(50).string(v);
|
|
452
|
-
}
|
|
453
|
-
if (message.flags !== 0) {
|
|
454
|
-
writer.uint32(56).int64(message.flags);
|
|
455
|
-
}
|
|
456
|
-
if (message.debug !== false) {
|
|
457
|
-
writer.uint32(64).bool(message.debug);
|
|
458
|
-
}
|
|
459
|
-
if (message.data !== "") {
|
|
460
|
-
writer.uint32(74).string(message.data);
|
|
461
|
-
}
|
|
462
|
-
if (message.user !== 0) {
|
|
463
|
-
writer.uint32(80).uint32(message.user);
|
|
464
|
-
}
|
|
465
|
-
return writer;
|
|
466
|
-
},
|
|
467
|
-
decode(input, length) {
|
|
468
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
469
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
470
|
-
const message = createBaseApplicationActivityInfo();
|
|
471
|
-
while (reader.pos < end) {
|
|
472
|
-
const tag = reader.uint32();
|
|
473
|
-
switch (tag >>> 3) {
|
|
474
|
-
case 1: {
|
|
475
|
-
if (tag !== 10) {
|
|
476
|
-
break;
|
|
477
|
-
}
|
|
478
|
-
message.package = reader.string();
|
|
479
|
-
continue;
|
|
480
|
-
}
|
|
481
|
-
case 2: {
|
|
482
|
-
if (tag !== 18) {
|
|
483
|
-
break;
|
|
484
|
-
}
|
|
485
|
-
message.action = reader.string();
|
|
486
|
-
continue;
|
|
487
|
-
}
|
|
488
|
-
case 3: {
|
|
489
|
-
if (tag !== 26) {
|
|
490
|
-
break;
|
|
491
|
-
}
|
|
492
|
-
message.category = reader.string();
|
|
493
|
-
continue;
|
|
494
|
-
}
|
|
495
|
-
case 4: {
|
|
496
|
-
if (tag !== 34) {
|
|
497
|
-
break;
|
|
498
|
-
}
|
|
499
|
-
message.component = reader.string();
|
|
500
|
-
continue;
|
|
501
|
-
}
|
|
502
|
-
case 5: {
|
|
503
|
-
if (tag !== 42) {
|
|
504
|
-
break;
|
|
505
|
-
}
|
|
506
|
-
message.extras = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
507
|
-
continue;
|
|
508
|
-
}
|
|
509
|
-
case 6: {
|
|
510
|
-
if (tag !== 50) {
|
|
511
|
-
break;
|
|
512
|
-
}
|
|
513
|
-
message.categories.push(reader.string());
|
|
514
|
-
continue;
|
|
515
|
-
}
|
|
516
|
-
case 7: {
|
|
517
|
-
if (tag !== 56) {
|
|
518
|
-
break;
|
|
519
|
-
}
|
|
520
|
-
message.flags = longToNumber(reader.int64());
|
|
521
|
-
continue;
|
|
522
|
-
}
|
|
523
|
-
case 8: {
|
|
524
|
-
if (tag !== 64) {
|
|
525
|
-
break;
|
|
526
|
-
}
|
|
527
|
-
message.debug = reader.bool();
|
|
528
|
-
continue;
|
|
529
|
-
}
|
|
530
|
-
case 9: {
|
|
531
|
-
if (tag !== 74) {
|
|
532
|
-
break;
|
|
533
|
-
}
|
|
534
|
-
message.data = reader.string();
|
|
535
|
-
continue;
|
|
536
|
-
}
|
|
537
|
-
case 10: {
|
|
538
|
-
if (tag !== 80) {
|
|
539
|
-
break;
|
|
540
|
-
}
|
|
541
|
-
message.user = reader.uint32();
|
|
542
|
-
continue;
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
546
|
-
break;
|
|
547
|
-
}
|
|
548
|
-
reader.skip(tag & 7);
|
|
549
|
-
}
|
|
550
|
-
return message;
|
|
551
|
-
},
|
|
552
|
-
fromJSON(object) {
|
|
553
|
-
return {
|
|
554
|
-
package: isSet(object.package) ? globalThis.String(object.package) : "",
|
|
555
|
-
action: isSet(object.action) ? globalThis.String(object.action) : "",
|
|
556
|
-
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
557
|
-
component: isSet(object.component) ? globalThis.String(object.component) : "",
|
|
558
|
-
extras: isObject(object.extras) ? object.extras : void 0,
|
|
559
|
-
categories: globalThis.Array.isArray(object?.categories) ? object.categories.map((e) => globalThis.String(e)) : [],
|
|
560
|
-
flags: isSet(object.flags) ? globalThis.Number(object.flags) : 0,
|
|
561
|
-
debug: isSet(object.debug) ? globalThis.Boolean(object.debug) : false,
|
|
562
|
-
data: isSet(object.data) ? globalThis.String(object.data) : "",
|
|
563
|
-
user: isSet(object.user) ? globalThis.Number(object.user) : 0
|
|
564
|
-
};
|
|
565
|
-
},
|
|
566
|
-
toJSON(message) {
|
|
567
|
-
const obj = {};
|
|
568
|
-
if (message.package !== "") {
|
|
569
|
-
obj.package = message.package;
|
|
570
|
-
}
|
|
571
|
-
if (message.action !== "") {
|
|
572
|
-
obj.action = message.action;
|
|
573
|
-
}
|
|
574
|
-
if (message.category !== "") {
|
|
575
|
-
obj.category = message.category;
|
|
576
|
-
}
|
|
577
|
-
if (message.component !== "") {
|
|
578
|
-
obj.component = message.component;
|
|
579
|
-
}
|
|
580
|
-
if (message.extras !== void 0) {
|
|
581
|
-
obj.extras = message.extras;
|
|
582
|
-
}
|
|
583
|
-
if (message.categories?.length) {
|
|
584
|
-
obj.categories = message.categories;
|
|
585
|
-
}
|
|
586
|
-
if (message.flags !== 0) {
|
|
587
|
-
obj.flags = Math.round(message.flags);
|
|
588
|
-
}
|
|
589
|
-
if (message.debug !== false) {
|
|
590
|
-
obj.debug = message.debug;
|
|
591
|
-
}
|
|
592
|
-
if (message.data !== "") {
|
|
593
|
-
obj.data = message.data;
|
|
594
|
-
}
|
|
595
|
-
if (message.user !== 0) {
|
|
596
|
-
obj.user = Math.round(message.user);
|
|
597
|
-
}
|
|
598
|
-
return obj;
|
|
599
|
-
},
|
|
600
|
-
create(base) {
|
|
601
|
-
return ApplicationActivityInfo.fromPartial(base ?? {});
|
|
602
|
-
},
|
|
603
|
-
fromPartial(object) {
|
|
604
|
-
const message = createBaseApplicationActivityInfo();
|
|
605
|
-
message.package = object.package ?? "";
|
|
606
|
-
message.action = object.action ?? "";
|
|
607
|
-
message.category = object.category ?? "";
|
|
608
|
-
message.component = object.component ?? "";
|
|
609
|
-
message.extras = object.extras ?? void 0;
|
|
610
|
-
message.categories = object.categories?.map((e) => e) || [];
|
|
611
|
-
message.flags = object.flags ?? 0;
|
|
612
|
-
message.debug = object.debug ?? false;
|
|
613
|
-
message.data = object.data ?? "";
|
|
614
|
-
message.user = object.user ?? 0;
|
|
615
|
-
return message;
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
|
-
function createBaseApplicationActivityInfoList() {
|
|
619
|
-
return { activities: [] };
|
|
620
|
-
}
|
|
621
|
-
var ApplicationActivityInfoList = {
|
|
622
|
-
encode(message, writer = new BinaryWriter()) {
|
|
623
|
-
for (const v of message.activities) {
|
|
624
|
-
ApplicationActivityInfo.encode(v, writer.uint32(10).fork()).join();
|
|
625
|
-
}
|
|
626
|
-
return writer;
|
|
627
|
-
},
|
|
628
|
-
decode(input, length) {
|
|
629
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
630
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
631
|
-
const message = createBaseApplicationActivityInfoList();
|
|
632
|
-
while (reader.pos < end) {
|
|
633
|
-
const tag = reader.uint32();
|
|
634
|
-
switch (tag >>> 3) {
|
|
635
|
-
case 1: {
|
|
636
|
-
if (tag !== 10) {
|
|
637
|
-
break;
|
|
638
|
-
}
|
|
639
|
-
message.activities.push(ApplicationActivityInfo.decode(reader, reader.uint32()));
|
|
640
|
-
continue;
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
644
|
-
break;
|
|
645
|
-
}
|
|
646
|
-
reader.skip(tag & 7);
|
|
647
|
-
}
|
|
648
|
-
return message;
|
|
649
|
-
},
|
|
650
|
-
fromJSON(object) {
|
|
651
|
-
return {
|
|
652
|
-
activities: globalThis.Array.isArray(object?.activities) ? object.activities.map((e) => ApplicationActivityInfo.fromJSON(e)) : []
|
|
653
|
-
};
|
|
654
|
-
},
|
|
655
|
-
toJSON(message) {
|
|
656
|
-
const obj = {};
|
|
657
|
-
if (message.activities?.length) {
|
|
658
|
-
obj.activities = message.activities.map((e) => ApplicationActivityInfo.toJSON(e));
|
|
659
|
-
}
|
|
660
|
-
return obj;
|
|
661
|
-
},
|
|
662
|
-
create(base) {
|
|
663
|
-
return ApplicationActivityInfoList.fromPartial(base ?? {});
|
|
664
|
-
},
|
|
665
|
-
fromPartial(object) {
|
|
666
|
-
const message = createBaseApplicationActivityInfoList();
|
|
667
|
-
message.activities = object.activities?.map((e) => ApplicationActivityInfo.fromPartial(e)) || [];
|
|
668
|
-
return message;
|
|
669
|
-
}
|
|
670
|
-
};
|
|
671
|
-
function createBaseApplicationPermissions() {
|
|
672
|
-
return { permissions: [] };
|
|
673
|
-
}
|
|
674
|
-
var ApplicationPermissions = {
|
|
675
|
-
encode(message, writer = new BinaryWriter()) {
|
|
676
|
-
for (const v of message.permissions) {
|
|
677
|
-
writer.uint32(10).string(v);
|
|
678
|
-
}
|
|
679
|
-
return writer;
|
|
680
|
-
},
|
|
681
|
-
decode(input, length) {
|
|
682
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
683
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
684
|
-
const message = createBaseApplicationPermissions();
|
|
685
|
-
while (reader.pos < end) {
|
|
686
|
-
const tag = reader.uint32();
|
|
687
|
-
switch (tag >>> 3) {
|
|
688
|
-
case 1: {
|
|
689
|
-
if (tag !== 10) {
|
|
690
|
-
break;
|
|
691
|
-
}
|
|
692
|
-
message.permissions.push(reader.string());
|
|
693
|
-
continue;
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
697
|
-
break;
|
|
698
|
-
}
|
|
699
|
-
reader.skip(tag & 7);
|
|
700
|
-
}
|
|
701
|
-
return message;
|
|
702
|
-
},
|
|
703
|
-
fromJSON(object) {
|
|
704
|
-
return {
|
|
705
|
-
permissions: globalThis.Array.isArray(object?.permissions) ? object.permissions.map((e) => globalThis.String(e)) : []
|
|
706
|
-
};
|
|
707
|
-
},
|
|
708
|
-
toJSON(message) {
|
|
709
|
-
const obj = {};
|
|
710
|
-
if (message.permissions?.length) {
|
|
711
|
-
obj.permissions = message.permissions;
|
|
712
|
-
}
|
|
713
|
-
return obj;
|
|
714
|
-
},
|
|
715
|
-
create(base) {
|
|
716
|
-
return ApplicationPermissions.fromPartial(base ?? {});
|
|
717
|
-
},
|
|
718
|
-
fromPartial(object) {
|
|
719
|
-
const message = createBaseApplicationPermissions();
|
|
720
|
-
message.permissions = object.permissions?.map((e) => e) || [];
|
|
721
|
-
return message;
|
|
722
|
-
}
|
|
723
|
-
};
|
|
724
|
-
function createBaseApplicationInfo() {
|
|
725
|
-
return {
|
|
726
|
-
packageName: "",
|
|
727
|
-
uid: 0,
|
|
728
|
-
enabled: false,
|
|
729
|
-
processName: "",
|
|
730
|
-
sourceDir: "",
|
|
731
|
-
dataDir: "",
|
|
732
|
-
baseRevisionCode: 0,
|
|
733
|
-
firstInstallTime: 0,
|
|
734
|
-
lastUpdateTime: 0,
|
|
735
|
-
versionCode: 0,
|
|
736
|
-
versionName: "",
|
|
737
|
-
activity: "",
|
|
738
|
-
user: 0
|
|
739
|
-
};
|
|
740
|
-
}
|
|
741
|
-
var ApplicationInfo = {
|
|
742
|
-
encode(message, writer = new BinaryWriter()) {
|
|
743
|
-
if (message.packageName !== "") {
|
|
744
|
-
writer.uint32(10).string(message.packageName);
|
|
745
|
-
}
|
|
746
|
-
if (message.uid !== 0) {
|
|
747
|
-
writer.uint32(16).uint32(message.uid);
|
|
748
|
-
}
|
|
749
|
-
if (message.enabled !== false) {
|
|
750
|
-
writer.uint32(24).bool(message.enabled);
|
|
751
|
-
}
|
|
752
|
-
if (message.processName !== "") {
|
|
753
|
-
writer.uint32(34).string(message.processName);
|
|
754
|
-
}
|
|
755
|
-
if (message.sourceDir !== "") {
|
|
756
|
-
writer.uint32(42).string(message.sourceDir);
|
|
757
|
-
}
|
|
758
|
-
if (message.dataDir !== "") {
|
|
759
|
-
writer.uint32(50).string(message.dataDir);
|
|
760
|
-
}
|
|
761
|
-
if (message.baseRevisionCode !== 0) {
|
|
762
|
-
writer.uint32(56).uint32(message.baseRevisionCode);
|
|
763
|
-
}
|
|
764
|
-
if (message.firstInstallTime !== 0) {
|
|
765
|
-
writer.uint32(64).int64(message.firstInstallTime);
|
|
766
|
-
}
|
|
767
|
-
if (message.lastUpdateTime !== 0) {
|
|
768
|
-
writer.uint32(72).int64(message.lastUpdateTime);
|
|
769
|
-
}
|
|
770
|
-
if (message.versionCode !== 0) {
|
|
771
|
-
writer.uint32(80).uint32(message.versionCode);
|
|
772
|
-
}
|
|
773
|
-
if (message.versionName !== "") {
|
|
774
|
-
writer.uint32(90).string(message.versionName);
|
|
775
|
-
}
|
|
776
|
-
if (message.activity !== "") {
|
|
777
|
-
writer.uint32(98).string(message.activity);
|
|
778
|
-
}
|
|
779
|
-
if (message.user !== 0) {
|
|
780
|
-
writer.uint32(104).uint32(message.user);
|
|
781
|
-
}
|
|
782
|
-
return writer;
|
|
783
|
-
},
|
|
784
|
-
decode(input, length) {
|
|
785
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
786
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
787
|
-
const message = createBaseApplicationInfo();
|
|
788
|
-
while (reader.pos < end) {
|
|
789
|
-
const tag = reader.uint32();
|
|
790
|
-
switch (tag >>> 3) {
|
|
791
|
-
case 1: {
|
|
792
|
-
if (tag !== 10) {
|
|
793
|
-
break;
|
|
794
|
-
}
|
|
795
|
-
message.packageName = reader.string();
|
|
796
|
-
continue;
|
|
797
|
-
}
|
|
798
|
-
case 2: {
|
|
799
|
-
if (tag !== 16) {
|
|
800
|
-
break;
|
|
801
|
-
}
|
|
802
|
-
message.uid = reader.uint32();
|
|
803
|
-
continue;
|
|
804
|
-
}
|
|
805
|
-
case 3: {
|
|
806
|
-
if (tag !== 24) {
|
|
807
|
-
break;
|
|
808
|
-
}
|
|
809
|
-
message.enabled = reader.bool();
|
|
810
|
-
continue;
|
|
811
|
-
}
|
|
812
|
-
case 4: {
|
|
813
|
-
if (tag !== 34) {
|
|
814
|
-
break;
|
|
815
|
-
}
|
|
816
|
-
message.processName = reader.string();
|
|
817
|
-
continue;
|
|
818
|
-
}
|
|
819
|
-
case 5: {
|
|
820
|
-
if (tag !== 42) {
|
|
821
|
-
break;
|
|
822
|
-
}
|
|
823
|
-
message.sourceDir = reader.string();
|
|
824
|
-
continue;
|
|
825
|
-
}
|
|
826
|
-
case 6: {
|
|
827
|
-
if (tag !== 50) {
|
|
828
|
-
break;
|
|
829
|
-
}
|
|
830
|
-
message.dataDir = reader.string();
|
|
831
|
-
continue;
|
|
832
|
-
}
|
|
833
|
-
case 7: {
|
|
834
|
-
if (tag !== 56) {
|
|
835
|
-
break;
|
|
836
|
-
}
|
|
837
|
-
message.baseRevisionCode = reader.uint32();
|
|
838
|
-
continue;
|
|
839
|
-
}
|
|
840
|
-
case 8: {
|
|
841
|
-
if (tag !== 64) {
|
|
842
|
-
break;
|
|
843
|
-
}
|
|
844
|
-
message.firstInstallTime = longToNumber(reader.int64());
|
|
845
|
-
continue;
|
|
846
|
-
}
|
|
847
|
-
case 9: {
|
|
848
|
-
if (tag !== 72) {
|
|
849
|
-
break;
|
|
850
|
-
}
|
|
851
|
-
message.lastUpdateTime = longToNumber(reader.int64());
|
|
852
|
-
continue;
|
|
853
|
-
}
|
|
854
|
-
case 10: {
|
|
855
|
-
if (tag !== 80) {
|
|
856
|
-
break;
|
|
857
|
-
}
|
|
858
|
-
message.versionCode = reader.uint32();
|
|
859
|
-
continue;
|
|
860
|
-
}
|
|
861
|
-
case 11: {
|
|
862
|
-
if (tag !== 90) {
|
|
863
|
-
break;
|
|
864
|
-
}
|
|
865
|
-
message.versionName = reader.string();
|
|
866
|
-
continue;
|
|
867
|
-
}
|
|
868
|
-
case 12: {
|
|
869
|
-
if (tag !== 98) {
|
|
870
|
-
break;
|
|
871
|
-
}
|
|
872
|
-
message.activity = reader.string();
|
|
873
|
-
continue;
|
|
874
|
-
}
|
|
875
|
-
case 13: {
|
|
876
|
-
if (tag !== 104) {
|
|
877
|
-
break;
|
|
878
|
-
}
|
|
879
|
-
message.user = reader.uint32();
|
|
880
|
-
continue;
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
884
|
-
break;
|
|
885
|
-
}
|
|
886
|
-
reader.skip(tag & 7);
|
|
887
|
-
}
|
|
888
|
-
return message;
|
|
889
|
-
},
|
|
890
|
-
fromJSON(object) {
|
|
891
|
-
return {
|
|
892
|
-
packageName: isSet(object.packageName) ? globalThis.String(object.packageName) : "",
|
|
893
|
-
uid: isSet(object.uid) ? globalThis.Number(object.uid) : 0,
|
|
894
|
-
enabled: isSet(object.enabled) ? globalThis.Boolean(object.enabled) : false,
|
|
895
|
-
processName: isSet(object.processName) ? globalThis.String(object.processName) : "",
|
|
896
|
-
sourceDir: isSet(object.sourceDir) ? globalThis.String(object.sourceDir) : "",
|
|
897
|
-
dataDir: isSet(object.dataDir) ? globalThis.String(object.dataDir) : "",
|
|
898
|
-
baseRevisionCode: isSet(object.baseRevisionCode) ? globalThis.Number(object.baseRevisionCode) : 0,
|
|
899
|
-
firstInstallTime: isSet(object.firstInstallTime) ? globalThis.Number(object.firstInstallTime) : 0,
|
|
900
|
-
lastUpdateTime: isSet(object.lastUpdateTime) ? globalThis.Number(object.lastUpdateTime) : 0,
|
|
901
|
-
versionCode: isSet(object.versionCode) ? globalThis.Number(object.versionCode) : 0,
|
|
902
|
-
versionName: isSet(object.versionName) ? globalThis.String(object.versionName) : "",
|
|
903
|
-
activity: isSet(object.activity) ? globalThis.String(object.activity) : "",
|
|
904
|
-
user: isSet(object.user) ? globalThis.Number(object.user) : 0
|
|
905
|
-
};
|
|
906
|
-
},
|
|
907
|
-
toJSON(message) {
|
|
908
|
-
const obj = {};
|
|
909
|
-
if (message.packageName !== "") {
|
|
910
|
-
obj.packageName = message.packageName;
|
|
911
|
-
}
|
|
912
|
-
if (message.uid !== 0) {
|
|
913
|
-
obj.uid = Math.round(message.uid);
|
|
914
|
-
}
|
|
915
|
-
if (message.enabled !== false) {
|
|
916
|
-
obj.enabled = message.enabled;
|
|
917
|
-
}
|
|
918
|
-
if (message.processName !== "") {
|
|
919
|
-
obj.processName = message.processName;
|
|
920
|
-
}
|
|
921
|
-
if (message.sourceDir !== "") {
|
|
922
|
-
obj.sourceDir = message.sourceDir;
|
|
923
|
-
}
|
|
924
|
-
if (message.dataDir !== "") {
|
|
925
|
-
obj.dataDir = message.dataDir;
|
|
926
|
-
}
|
|
927
|
-
if (message.baseRevisionCode !== 0) {
|
|
928
|
-
obj.baseRevisionCode = Math.round(message.baseRevisionCode);
|
|
929
|
-
}
|
|
930
|
-
if (message.firstInstallTime !== 0) {
|
|
931
|
-
obj.firstInstallTime = Math.round(message.firstInstallTime);
|
|
932
|
-
}
|
|
933
|
-
if (message.lastUpdateTime !== 0) {
|
|
934
|
-
obj.lastUpdateTime = Math.round(message.lastUpdateTime);
|
|
935
|
-
}
|
|
936
|
-
if (message.versionCode !== 0) {
|
|
937
|
-
obj.versionCode = Math.round(message.versionCode);
|
|
938
|
-
}
|
|
939
|
-
if (message.versionName !== "") {
|
|
940
|
-
obj.versionName = message.versionName;
|
|
941
|
-
}
|
|
942
|
-
if (message.activity !== "") {
|
|
943
|
-
obj.activity = message.activity;
|
|
944
|
-
}
|
|
945
|
-
if (message.user !== 0) {
|
|
946
|
-
obj.user = Math.round(message.user);
|
|
947
|
-
}
|
|
948
|
-
return obj;
|
|
949
|
-
},
|
|
950
|
-
create(base) {
|
|
951
|
-
return ApplicationInfo.fromPartial(base ?? {});
|
|
952
|
-
},
|
|
953
|
-
fromPartial(object) {
|
|
954
|
-
const message = createBaseApplicationInfo();
|
|
955
|
-
message.packageName = object.packageName ?? "";
|
|
956
|
-
message.uid = object.uid ?? 0;
|
|
957
|
-
message.enabled = object.enabled ?? false;
|
|
958
|
-
message.processName = object.processName ?? "";
|
|
959
|
-
message.sourceDir = object.sourceDir ?? "";
|
|
960
|
-
message.dataDir = object.dataDir ?? "";
|
|
961
|
-
message.baseRevisionCode = object.baseRevisionCode ?? 0;
|
|
962
|
-
message.firstInstallTime = object.firstInstallTime ?? 0;
|
|
963
|
-
message.lastUpdateTime = object.lastUpdateTime ?? 0;
|
|
964
|
-
message.versionCode = object.versionCode ?? 0;
|
|
965
|
-
message.versionName = object.versionName ?? "";
|
|
966
|
-
message.activity = object.activity ?? "";
|
|
967
|
-
message.user = object.user ?? 0;
|
|
968
|
-
return message;
|
|
969
|
-
}
|
|
970
|
-
};
|
|
971
|
-
function createBaseApplicationProcess() {
|
|
972
|
-
return { packages: [], processName: "", uid: 0, pid: 0 };
|
|
973
|
-
}
|
|
974
|
-
var ApplicationProcess = {
|
|
975
|
-
encode(message, writer = new BinaryWriter()) {
|
|
976
|
-
for (const v of message.packages) {
|
|
977
|
-
writer.uint32(10).string(v);
|
|
978
|
-
}
|
|
979
|
-
if (message.processName !== "") {
|
|
980
|
-
writer.uint32(18).string(message.processName);
|
|
981
|
-
}
|
|
982
|
-
if (message.uid !== 0) {
|
|
983
|
-
writer.uint32(24).int64(message.uid);
|
|
984
|
-
}
|
|
985
|
-
if (message.pid !== 0) {
|
|
986
|
-
writer.uint32(32).int64(message.pid);
|
|
987
|
-
}
|
|
988
|
-
return writer;
|
|
989
|
-
},
|
|
990
|
-
decode(input, length) {
|
|
991
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
992
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
993
|
-
const message = createBaseApplicationProcess();
|
|
994
|
-
while (reader.pos < end) {
|
|
995
|
-
const tag = reader.uint32();
|
|
996
|
-
switch (tag >>> 3) {
|
|
997
|
-
case 1: {
|
|
998
|
-
if (tag !== 10) {
|
|
999
|
-
break;
|
|
1000
|
-
}
|
|
1001
|
-
message.packages.push(reader.string());
|
|
1002
|
-
continue;
|
|
1003
|
-
}
|
|
1004
|
-
case 2: {
|
|
1005
|
-
if (tag !== 18) {
|
|
1006
|
-
break;
|
|
1007
|
-
}
|
|
1008
|
-
message.processName = reader.string();
|
|
1009
|
-
continue;
|
|
1010
|
-
}
|
|
1011
|
-
case 3: {
|
|
1012
|
-
if (tag !== 24) {
|
|
1013
|
-
break;
|
|
1014
|
-
}
|
|
1015
|
-
message.uid = longToNumber(reader.int64());
|
|
1016
|
-
continue;
|
|
1017
|
-
}
|
|
1018
|
-
case 4: {
|
|
1019
|
-
if (tag !== 32) {
|
|
1020
|
-
break;
|
|
1021
|
-
}
|
|
1022
|
-
message.pid = longToNumber(reader.int64());
|
|
1023
|
-
continue;
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1027
|
-
break;
|
|
1028
|
-
}
|
|
1029
|
-
reader.skip(tag & 7);
|
|
1030
|
-
}
|
|
1031
|
-
return message;
|
|
1032
|
-
},
|
|
1033
|
-
fromJSON(object) {
|
|
1034
|
-
return {
|
|
1035
|
-
packages: globalThis.Array.isArray(object?.packages) ? object.packages.map((e) => globalThis.String(e)) : [],
|
|
1036
|
-
processName: isSet(object.processName) ? globalThis.String(object.processName) : "",
|
|
1037
|
-
uid: isSet(object.uid) ? globalThis.Number(object.uid) : 0,
|
|
1038
|
-
pid: isSet(object.pid) ? globalThis.Number(object.pid) : 0
|
|
1039
|
-
};
|
|
1040
|
-
},
|
|
1041
|
-
toJSON(message) {
|
|
1042
|
-
const obj = {};
|
|
1043
|
-
if (message.packages?.length) {
|
|
1044
|
-
obj.packages = message.packages;
|
|
1045
|
-
}
|
|
1046
|
-
if (message.processName !== "") {
|
|
1047
|
-
obj.processName = message.processName;
|
|
1048
|
-
}
|
|
1049
|
-
if (message.uid !== 0) {
|
|
1050
|
-
obj.uid = Math.round(message.uid);
|
|
1051
|
-
}
|
|
1052
|
-
if (message.pid !== 0) {
|
|
1053
|
-
obj.pid = Math.round(message.pid);
|
|
1054
|
-
}
|
|
1055
|
-
return obj;
|
|
1056
|
-
},
|
|
1057
|
-
create(base) {
|
|
1058
|
-
return ApplicationProcess.fromPartial(base ?? {});
|
|
1059
|
-
},
|
|
1060
|
-
fromPartial(object) {
|
|
1061
|
-
const message = createBaseApplicationProcess();
|
|
1062
|
-
message.packages = object.packages?.map((e) => e) || [];
|
|
1063
|
-
message.processName = object.processName ?? "";
|
|
1064
|
-
message.uid = object.uid ?? 0;
|
|
1065
|
-
message.pid = object.pid ?? 0;
|
|
1066
|
-
return message;
|
|
1067
|
-
}
|
|
1068
|
-
};
|
|
1069
|
-
function createBaseApplicationProcesses() {
|
|
1070
|
-
return { processes: [] };
|
|
1071
|
-
}
|
|
1072
|
-
var ApplicationProcesses = {
|
|
1073
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1074
|
-
for (const v of message.processes) {
|
|
1075
|
-
ApplicationProcess.encode(v, writer.uint32(10).fork()).join();
|
|
1076
|
-
}
|
|
1077
|
-
return writer;
|
|
1078
|
-
},
|
|
1079
|
-
decode(input, length) {
|
|
1080
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1081
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1082
|
-
const message = createBaseApplicationProcesses();
|
|
1083
|
-
while (reader.pos < end) {
|
|
1084
|
-
const tag = reader.uint32();
|
|
1085
|
-
switch (tag >>> 3) {
|
|
1086
|
-
case 1: {
|
|
1087
|
-
if (tag !== 10) {
|
|
1088
|
-
break;
|
|
1089
|
-
}
|
|
1090
|
-
message.processes.push(ApplicationProcess.decode(reader, reader.uint32()));
|
|
1091
|
-
continue;
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1095
|
-
break;
|
|
1096
|
-
}
|
|
1097
|
-
reader.skip(tag & 7);
|
|
1098
|
-
}
|
|
1099
|
-
return message;
|
|
1100
|
-
},
|
|
1101
|
-
fromJSON(object) {
|
|
1102
|
-
return {
|
|
1103
|
-
processes: globalThis.Array.isArray(object?.processes) ? object.processes.map((e) => ApplicationProcess.fromJSON(e)) : []
|
|
1104
|
-
};
|
|
1105
|
-
},
|
|
1106
|
-
toJSON(message) {
|
|
1107
|
-
const obj = {};
|
|
1108
|
-
if (message.processes?.length) {
|
|
1109
|
-
obj.processes = message.processes.map((e) => ApplicationProcess.toJSON(e));
|
|
1110
|
-
}
|
|
1111
|
-
return obj;
|
|
1112
|
-
},
|
|
1113
|
-
create(base) {
|
|
1114
|
-
return ApplicationProcesses.fromPartial(base ?? {});
|
|
1115
|
-
},
|
|
1116
|
-
fromPartial(object) {
|
|
1117
|
-
const message = createBaseApplicationProcesses();
|
|
1118
|
-
message.processes = object.processes?.map((e) => ApplicationProcess.fromPartial(e)) || [];
|
|
1119
|
-
return message;
|
|
1120
|
-
}
|
|
1121
|
-
};
|
|
1122
|
-
function createBaseApplicationPkgNames() {
|
|
1123
|
-
return { names: [] };
|
|
1124
|
-
}
|
|
1125
|
-
var ApplicationPkgNames = {
|
|
1126
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1127
|
-
for (const v of message.names) {
|
|
1128
|
-
writer.uint32(10).string(v);
|
|
1129
|
-
}
|
|
1130
|
-
return writer;
|
|
1131
|
-
},
|
|
1132
|
-
decode(input, length) {
|
|
1133
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1134
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1135
|
-
const message = createBaseApplicationPkgNames();
|
|
1136
|
-
while (reader.pos < end) {
|
|
1137
|
-
const tag = reader.uint32();
|
|
1138
|
-
switch (tag >>> 3) {
|
|
1139
|
-
case 1: {
|
|
1140
|
-
if (tag !== 10) {
|
|
1141
|
-
break;
|
|
1142
|
-
}
|
|
1143
|
-
message.names.push(reader.string());
|
|
1144
|
-
continue;
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1148
|
-
break;
|
|
1149
|
-
}
|
|
1150
|
-
reader.skip(tag & 7);
|
|
1151
|
-
}
|
|
1152
|
-
return message;
|
|
1153
|
-
},
|
|
1154
|
-
fromJSON(object) {
|
|
1155
|
-
return { names: globalThis.Array.isArray(object?.names) ? object.names.map((e) => globalThis.String(e)) : [] };
|
|
1156
|
-
},
|
|
1157
|
-
toJSON(message) {
|
|
1158
|
-
const obj = {};
|
|
1159
|
-
if (message.names?.length) {
|
|
1160
|
-
obj.names = message.names;
|
|
1161
|
-
}
|
|
1162
|
-
return obj;
|
|
1163
|
-
},
|
|
1164
|
-
create(base) {
|
|
1165
|
-
return ApplicationPkgNames.fromPartial(base ?? {});
|
|
1166
|
-
},
|
|
1167
|
-
fromPartial(object) {
|
|
1168
|
-
const message = createBaseApplicationPkgNames();
|
|
1169
|
-
message.names = object.names?.map((e) => e) || [];
|
|
1170
|
-
return message;
|
|
1171
|
-
}
|
|
1172
|
-
};
|
|
1173
|
-
function createBaseHookRequest() {
|
|
1174
|
-
return {
|
|
1175
|
-
package: "",
|
|
1176
|
-
script: new Uint8Array(0),
|
|
1177
|
-
runtime: 0,
|
|
1178
|
-
destination: "",
|
|
1179
|
-
encode: 0,
|
|
1180
|
-
standup: 0,
|
|
1181
|
-
spawn: false,
|
|
1182
|
-
user: 0
|
|
1183
|
-
};
|
|
1184
|
-
}
|
|
1185
|
-
var HookRequest = {
|
|
1186
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1187
|
-
if (message.package !== "") {
|
|
1188
|
-
writer.uint32(10).string(message.package);
|
|
1189
|
-
}
|
|
1190
|
-
if (message.script.length !== 0) {
|
|
1191
|
-
writer.uint32(18).bytes(message.script);
|
|
1192
|
-
}
|
|
1193
|
-
if (message.runtime !== 0) {
|
|
1194
|
-
writer.uint32(24).int32(message.runtime);
|
|
1195
|
-
}
|
|
1196
|
-
if (message.destination !== "") {
|
|
1197
|
-
writer.uint32(34).string(message.destination);
|
|
1198
|
-
}
|
|
1199
|
-
if (message.encode !== 0) {
|
|
1200
|
-
writer.uint32(40).int32(message.encode);
|
|
1201
|
-
}
|
|
1202
|
-
if (message.standup !== 0) {
|
|
1203
|
-
writer.uint32(48).uint32(message.standup);
|
|
1204
|
-
}
|
|
1205
|
-
if (message.spawn !== false) {
|
|
1206
|
-
writer.uint32(56).bool(message.spawn);
|
|
1207
|
-
}
|
|
1208
|
-
if (message.user !== 0) {
|
|
1209
|
-
writer.uint32(64).uint32(message.user);
|
|
1210
|
-
}
|
|
1211
|
-
return writer;
|
|
1212
|
-
},
|
|
1213
|
-
decode(input, length) {
|
|
1214
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1215
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1216
|
-
const message = createBaseHookRequest();
|
|
1217
|
-
while (reader.pos < end) {
|
|
1218
|
-
const tag = reader.uint32();
|
|
1219
|
-
switch (tag >>> 3) {
|
|
1220
|
-
case 1: {
|
|
1221
|
-
if (tag !== 10) {
|
|
1222
|
-
break;
|
|
1223
|
-
}
|
|
1224
|
-
message.package = reader.string();
|
|
1225
|
-
continue;
|
|
1226
|
-
}
|
|
1227
|
-
case 2: {
|
|
1228
|
-
if (tag !== 18) {
|
|
1229
|
-
break;
|
|
1230
|
-
}
|
|
1231
|
-
message.script = reader.bytes();
|
|
1232
|
-
continue;
|
|
1233
|
-
}
|
|
1234
|
-
case 3: {
|
|
1235
|
-
if (tag !== 24) {
|
|
1236
|
-
break;
|
|
1237
|
-
}
|
|
1238
|
-
message.runtime = reader.int32();
|
|
1239
|
-
continue;
|
|
1240
|
-
}
|
|
1241
|
-
case 4: {
|
|
1242
|
-
if (tag !== 34) {
|
|
1243
|
-
break;
|
|
1244
|
-
}
|
|
1245
|
-
message.destination = reader.string();
|
|
1246
|
-
continue;
|
|
1247
|
-
}
|
|
1248
|
-
case 5: {
|
|
1249
|
-
if (tag !== 40) {
|
|
1250
|
-
break;
|
|
1251
|
-
}
|
|
1252
|
-
message.encode = reader.int32();
|
|
1253
|
-
continue;
|
|
1254
|
-
}
|
|
1255
|
-
case 6: {
|
|
1256
|
-
if (tag !== 48) {
|
|
1257
|
-
break;
|
|
1258
|
-
}
|
|
1259
|
-
message.standup = reader.uint32();
|
|
1260
|
-
continue;
|
|
1261
|
-
}
|
|
1262
|
-
case 7: {
|
|
1263
|
-
if (tag !== 56) {
|
|
1264
|
-
break;
|
|
1265
|
-
}
|
|
1266
|
-
message.spawn = reader.bool();
|
|
1267
|
-
continue;
|
|
1268
|
-
}
|
|
1269
|
-
case 8: {
|
|
1270
|
-
if (tag !== 64) {
|
|
1271
|
-
break;
|
|
1272
|
-
}
|
|
1273
|
-
message.user = reader.uint32();
|
|
1274
|
-
continue;
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1278
|
-
break;
|
|
1279
|
-
}
|
|
1280
|
-
reader.skip(tag & 7);
|
|
1281
|
-
}
|
|
1282
|
-
return message;
|
|
1283
|
-
},
|
|
1284
|
-
fromJSON(object) {
|
|
1285
|
-
return {
|
|
1286
|
-
package: isSet(object.package) ? globalThis.String(object.package) : "",
|
|
1287
|
-
script: isSet(object.script) ? bytesFromBase64(object.script) : new Uint8Array(0),
|
|
1288
|
-
runtime: isSet(object.runtime) ? scriptRuntimeFromJSON(object.runtime) : 0,
|
|
1289
|
-
destination: isSet(object.destination) ? globalThis.String(object.destination) : "",
|
|
1290
|
-
encode: isSet(object.encode) ? dataEncodeFromJSON(object.encode) : 0,
|
|
1291
|
-
standup: isSet(object.standup) ? globalThis.Number(object.standup) : 0,
|
|
1292
|
-
spawn: isSet(object.spawn) ? globalThis.Boolean(object.spawn) : false,
|
|
1293
|
-
user: isSet(object.user) ? globalThis.Number(object.user) : 0
|
|
1294
|
-
};
|
|
1295
|
-
},
|
|
1296
|
-
toJSON(message) {
|
|
1297
|
-
const obj = {};
|
|
1298
|
-
if (message.package !== "") {
|
|
1299
|
-
obj.package = message.package;
|
|
1300
|
-
}
|
|
1301
|
-
if (message.script.length !== 0) {
|
|
1302
|
-
obj.script = base64FromBytes(message.script);
|
|
1303
|
-
}
|
|
1304
|
-
if (message.runtime !== 0) {
|
|
1305
|
-
obj.runtime = scriptRuntimeToJSON(message.runtime);
|
|
1306
|
-
}
|
|
1307
|
-
if (message.destination !== "") {
|
|
1308
|
-
obj.destination = message.destination;
|
|
1309
|
-
}
|
|
1310
|
-
if (message.encode !== 0) {
|
|
1311
|
-
obj.encode = dataEncodeToJSON(message.encode);
|
|
1312
|
-
}
|
|
1313
|
-
if (message.standup !== 0) {
|
|
1314
|
-
obj.standup = Math.round(message.standup);
|
|
1315
|
-
}
|
|
1316
|
-
if (message.spawn !== false) {
|
|
1317
|
-
obj.spawn = message.spawn;
|
|
1318
|
-
}
|
|
1319
|
-
if (message.user !== 0) {
|
|
1320
|
-
obj.user = Math.round(message.user);
|
|
1321
|
-
}
|
|
1322
|
-
return obj;
|
|
1323
|
-
},
|
|
1324
|
-
create(base) {
|
|
1325
|
-
return HookRequest.fromPartial(base ?? {});
|
|
1326
|
-
},
|
|
1327
|
-
fromPartial(object) {
|
|
1328
|
-
const message = createBaseHookRequest();
|
|
1329
|
-
message.package = object.package ?? "";
|
|
1330
|
-
message.script = object.script ?? new Uint8Array(0);
|
|
1331
|
-
message.runtime = object.runtime ?? 0;
|
|
1332
|
-
message.destination = object.destination ?? "";
|
|
1333
|
-
message.encode = object.encode ?? 0;
|
|
1334
|
-
message.standup = object.standup ?? 0;
|
|
1335
|
-
message.spawn = object.spawn ?? false;
|
|
1336
|
-
message.user = object.user ?? 0;
|
|
1337
|
-
return message;
|
|
1338
|
-
}
|
|
1339
|
-
};
|
|
1340
|
-
function createBaseHookRpcRequest() {
|
|
1341
|
-
return { package: "", callinfo: "", user: 0 };
|
|
1342
|
-
}
|
|
1343
|
-
var HookRpcRequest = {
|
|
1344
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1345
|
-
if (message.package !== "") {
|
|
1346
|
-
writer.uint32(10).string(message.package);
|
|
1347
|
-
}
|
|
1348
|
-
if (message.callinfo !== "") {
|
|
1349
|
-
writer.uint32(18).string(message.callinfo);
|
|
1350
|
-
}
|
|
1351
|
-
if (message.user !== 0) {
|
|
1352
|
-
writer.uint32(24).uint32(message.user);
|
|
1353
|
-
}
|
|
1354
|
-
return writer;
|
|
1355
|
-
},
|
|
1356
|
-
decode(input, length) {
|
|
1357
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1358
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1359
|
-
const message = createBaseHookRpcRequest();
|
|
1360
|
-
while (reader.pos < end) {
|
|
1361
|
-
const tag = reader.uint32();
|
|
1362
|
-
switch (tag >>> 3) {
|
|
1363
|
-
case 1: {
|
|
1364
|
-
if (tag !== 10) {
|
|
1365
|
-
break;
|
|
1366
|
-
}
|
|
1367
|
-
message.package = reader.string();
|
|
1368
|
-
continue;
|
|
1369
|
-
}
|
|
1370
|
-
case 2: {
|
|
1371
|
-
if (tag !== 18) {
|
|
1372
|
-
break;
|
|
1373
|
-
}
|
|
1374
|
-
message.callinfo = reader.string();
|
|
1375
|
-
continue;
|
|
1376
|
-
}
|
|
1377
|
-
case 3: {
|
|
1378
|
-
if (tag !== 24) {
|
|
1379
|
-
break;
|
|
1380
|
-
}
|
|
1381
|
-
message.user = reader.uint32();
|
|
1382
|
-
continue;
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1386
|
-
break;
|
|
1387
|
-
}
|
|
1388
|
-
reader.skip(tag & 7);
|
|
1389
|
-
}
|
|
1390
|
-
return message;
|
|
1391
|
-
},
|
|
1392
|
-
fromJSON(object) {
|
|
1393
|
-
return {
|
|
1394
|
-
package: isSet(object.package) ? globalThis.String(object.package) : "",
|
|
1395
|
-
callinfo: isSet(object.callinfo) ? globalThis.String(object.callinfo) : "",
|
|
1396
|
-
user: isSet(object.user) ? globalThis.Number(object.user) : 0
|
|
1397
|
-
};
|
|
1398
|
-
},
|
|
1399
|
-
toJSON(message) {
|
|
1400
|
-
const obj = {};
|
|
1401
|
-
if (message.package !== "") {
|
|
1402
|
-
obj.package = message.package;
|
|
1403
|
-
}
|
|
1404
|
-
if (message.callinfo !== "") {
|
|
1405
|
-
obj.callinfo = message.callinfo;
|
|
1406
|
-
}
|
|
1407
|
-
if (message.user !== 0) {
|
|
1408
|
-
obj.user = Math.round(message.user);
|
|
1409
|
-
}
|
|
1410
|
-
return obj;
|
|
1411
|
-
},
|
|
1412
|
-
create(base) {
|
|
1413
|
-
return HookRpcRequest.fromPartial(base ?? {});
|
|
1414
|
-
},
|
|
1415
|
-
fromPartial(object) {
|
|
1416
|
-
const message = createBaseHookRpcRequest();
|
|
1417
|
-
message.package = object.package ?? "";
|
|
1418
|
-
message.callinfo = object.callinfo ?? "";
|
|
1419
|
-
message.user = object.user ?? 0;
|
|
1420
|
-
return message;
|
|
1421
|
-
}
|
|
1422
|
-
};
|
|
1423
|
-
function createBaseHookRpcResponse() {
|
|
1424
|
-
return { package: "", callresult: "" };
|
|
1425
|
-
}
|
|
1426
|
-
var HookRpcResponse = {
|
|
1427
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1428
|
-
if (message.package !== "") {
|
|
1429
|
-
writer.uint32(10).string(message.package);
|
|
1430
|
-
}
|
|
1431
|
-
if (message.callresult !== "") {
|
|
1432
|
-
writer.uint32(18).string(message.callresult);
|
|
1433
|
-
}
|
|
1434
|
-
return writer;
|
|
1435
|
-
},
|
|
1436
|
-
decode(input, length) {
|
|
1437
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1438
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1439
|
-
const message = createBaseHookRpcResponse();
|
|
1440
|
-
while (reader.pos < end) {
|
|
1441
|
-
const tag = reader.uint32();
|
|
1442
|
-
switch (tag >>> 3) {
|
|
1443
|
-
case 1: {
|
|
1444
|
-
if (tag !== 10) {
|
|
1445
|
-
break;
|
|
1446
|
-
}
|
|
1447
|
-
message.package = reader.string();
|
|
1448
|
-
continue;
|
|
1449
|
-
}
|
|
1450
|
-
case 2: {
|
|
1451
|
-
if (tag !== 18) {
|
|
1452
|
-
break;
|
|
1453
|
-
}
|
|
1454
|
-
message.callresult = reader.string();
|
|
1455
|
-
continue;
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1459
|
-
break;
|
|
1460
|
-
}
|
|
1461
|
-
reader.skip(tag & 7);
|
|
1462
|
-
}
|
|
1463
|
-
return message;
|
|
1464
|
-
},
|
|
1465
|
-
fromJSON(object) {
|
|
1466
|
-
return {
|
|
1467
|
-
package: isSet(object.package) ? globalThis.String(object.package) : "",
|
|
1468
|
-
callresult: isSet(object.callresult) ? globalThis.String(object.callresult) : ""
|
|
1469
|
-
};
|
|
1470
|
-
},
|
|
1471
|
-
toJSON(message) {
|
|
1472
|
-
const obj = {};
|
|
1473
|
-
if (message.package !== "") {
|
|
1474
|
-
obj.package = message.package;
|
|
1475
|
-
}
|
|
1476
|
-
if (message.callresult !== "") {
|
|
1477
|
-
obj.callresult = message.callresult;
|
|
1478
|
-
}
|
|
1479
|
-
return obj;
|
|
1480
|
-
},
|
|
1481
|
-
create(base) {
|
|
1482
|
-
return HookRpcResponse.fromPartial(base ?? {});
|
|
1483
|
-
},
|
|
1484
|
-
fromPartial(object) {
|
|
1485
|
-
const message = createBaseHookRpcResponse();
|
|
1486
|
-
message.package = object.package ?? "";
|
|
1487
|
-
message.callresult = object.callresult ?? "";
|
|
1488
|
-
return message;
|
|
1489
|
-
}
|
|
1490
|
-
};
|
|
1491
|
-
function bytesFromBase64(b64) {
|
|
1492
|
-
if (globalThis.Buffer) {
|
|
1493
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
1494
|
-
} else {
|
|
1495
|
-
const bin = globalThis.atob(b64);
|
|
1496
|
-
const arr = new Uint8Array(bin.length);
|
|
1497
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
1498
|
-
arr[i] = bin.charCodeAt(i);
|
|
1499
|
-
}
|
|
1500
|
-
return arr;
|
|
1501
|
-
}
|
|
1502
|
-
}
|
|
1503
|
-
function base64FromBytes(arr) {
|
|
1504
|
-
if (globalThis.Buffer) {
|
|
1505
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
1506
|
-
} else {
|
|
1507
|
-
const bin = [];
|
|
1508
|
-
arr.forEach((byte) => {
|
|
1509
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
1510
|
-
});
|
|
1511
|
-
return globalThis.btoa(bin.join(""));
|
|
1512
|
-
}
|
|
1513
|
-
}
|
|
1514
|
-
function longToNumber(int64) {
|
|
1515
|
-
const num = globalThis.Number(int64.toString());
|
|
1516
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
1517
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1518
|
-
}
|
|
1519
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
1520
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
1521
|
-
}
|
|
1522
|
-
return num;
|
|
1523
|
-
}
|
|
1524
|
-
function isObject(value) {
|
|
1525
|
-
return typeof value === "object" && value !== null;
|
|
1526
|
-
}
|
|
1527
|
-
function isSet(value) {
|
|
1528
|
-
return value !== null && value !== void 0;
|
|
1529
|
-
}
|
|
1530
|
-
|
|
1531
|
-
export {
|
|
1532
|
-
protobufPackage,
|
|
1533
|
-
GrantType,
|
|
1534
|
-
grantTypeFromJSON,
|
|
1535
|
-
grantTypeToJSON,
|
|
1536
|
-
DataEncode,
|
|
1537
|
-
dataEncodeFromJSON,
|
|
1538
|
-
dataEncodeToJSON,
|
|
1539
|
-
ScriptRuntime,
|
|
1540
|
-
scriptRuntimeFromJSON,
|
|
1541
|
-
scriptRuntimeToJSON,
|
|
1542
|
-
ApplicationRequest,
|
|
1543
|
-
ApplicationActivityRequest,
|
|
1544
|
-
ApplicationActivityInfo,
|
|
1545
|
-
ApplicationActivityInfoList,
|
|
1546
|
-
ApplicationPermissions,
|
|
1547
|
-
ApplicationInfo,
|
|
1548
|
-
ApplicationProcess,
|
|
1549
|
-
ApplicationProcesses,
|
|
1550
|
-
ApplicationPkgNames,
|
|
1551
|
-
HookRequest,
|
|
1552
|
-
HookRpcRequest,
|
|
1553
|
-
HookRpcResponse
|
|
1554
|
-
};
|